@bpmn-io/element-templates-validator 1.1.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +715 -0
- package/dist/index.js +10 -21
- package/package.json +10 -9
- package/dist/index.esm.js +0 -704
package/dist/index.cjs
ADDED
@@ -0,0 +1,715 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var minDash = require('min-dash');
|
6
|
+
|
7
|
+
var name$1 = "@camunda/element-templates-json-schema";
|
8
|
+
var version$1 = "0.15.0";
|
9
|
+
|
10
|
+
var standaloneValidator = {exports: {}};
|
11
|
+
|
12
|
+
var equal = {exports: {}};
|
13
|
+
|
14
|
+
// do not edit .js files directly - edit src/index.jst
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
var fastDeepEqual = function equal(a, b) {
|
19
|
+
if (a === b) return true;
|
20
|
+
|
21
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
22
|
+
if (a.constructor !== b.constructor) return false;
|
23
|
+
|
24
|
+
var length, i, keys;
|
25
|
+
if (Array.isArray(a)) {
|
26
|
+
length = a.length;
|
27
|
+
if (length != b.length) return false;
|
28
|
+
for (i = length; i-- !== 0;)
|
29
|
+
if (!equal(a[i], b[i])) return false;
|
30
|
+
return true;
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
36
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
37
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
38
|
+
|
39
|
+
keys = Object.keys(a);
|
40
|
+
length = keys.length;
|
41
|
+
if (length !== Object.keys(b).length) return false;
|
42
|
+
|
43
|
+
for (i = length; i-- !== 0;)
|
44
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
45
|
+
|
46
|
+
for (i = length; i-- !== 0;) {
|
47
|
+
var key = keys[i];
|
48
|
+
|
49
|
+
if (!equal(a[key], b[key])) return false;
|
50
|
+
}
|
51
|
+
|
52
|
+
return true;
|
53
|
+
}
|
54
|
+
|
55
|
+
// true if both NaN, false otherwise
|
56
|
+
return a!==a && b!==b;
|
57
|
+
};
|
58
|
+
|
59
|
+
(function (module) {
|
60
|
+
// do NOT remove this file - it would break pre-compiled schemas
|
61
|
+
// https://github.com/ajv-validator/ajv/issues/889
|
62
|
+
module.exports = fastDeepEqual;
|
63
|
+
|
64
|
+
} (equal));
|
65
|
+
|
66
|
+
standaloneValidator.exports = validate14$1;standaloneValidator.exports.default = validate14$1;const schema17$1 = {"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=[]"}}}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"scopes":{"$id":"#/scopes","type":"array","description":"Special scoped bindings that allow you to configure nested elements.","allOf":[{"examples":[[{"type":"bpmn:Error","id":"Error_1","properties":[{"value":"error-code","binding":{"type":"property","name":"errorCode"}},{"value":"error-message","binding":{"type":"property","name":"camunda:errorMessage"}},{"value":"error-name","binding":{"type":"property","name":"name"}}]}]]}],"items":{"$id":"#/scopes/item","type":"object","default":{},"properties":{"type":{"$id":"#scopes/item/type","type":"string","description":"The type of a scope.","enum":["camunda:Connector","bpmn:Error"],"errorMessage":"invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"},"properties":{"$id":"#/scopes/properties","description":"List of properties of a scope.","default":[],"allOf":[{"$ref":"#/definitions/properties/allOf/0"},{"$ref":"#/definitions/properties/allOf/1"}]}},"required":["type","properties"],"allOf":[{"if":{"properties":{"type":{"enum":["bpmn:Error"]}},"required":["type"]},"then":{"required":["id"],"errorMessage":"invalid scope ${0/type}, missing id"}}],"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}}}}}};const schema27 = {"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}};const pattern0$1 = new RegExp("^(https|http)://.*", "u");const pattern1$1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const obj0$1 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const schema18$1 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."},"condition":{"$id":"#/condition","type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}}},"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}}]};const schema20$1 = {"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"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};const func0$1 = equal.exports;function validate17$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {keyword:"type",dataPath:dataPath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {keyword:"type",dataPath:dataPath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {keyword:"type",dataPath:dataPath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}}if(!valid2){const err6 = {keyword:"oneOf",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}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 err7 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.type !== undefined){if(!func0$1(data.type, "simple")){const err8 = {keyword:"const",dataPath:dataPath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}else {const err10 = {keyword:"type",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(81)))){emPropParams0 = obj0$1[err11.keyword];emParamsErrors0 = emErrors0[err11.keyword][err11.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err11);err11.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 err12 = {keyword:"errorMessage",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err14 = {keyword:"required",dataPath,schemaPath:"#/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data.allMatch !== undefined){let data5 = data.allMatch;if(Array.isArray(data5)){if(data5.length < 1){const err15 = {keyword:"minItems",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}const len1 = data5.length;for(let i1=0; i1<len1; i1++){let data6 = data5[i1];const _errs23 = errors;let valid12 = false;let passing2 = null;const _errs24 = errors;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.equals === undefined){const err16 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data6.equals !== undefined){let data7 = data6.equals;if(((typeof data7 !== "string") && (!(typeof data7 == "number"))) && (typeof data7 !== "boolean")){const err17 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}var _valid2 = _errs24 === errors;if(_valid2){valid12 = true;passing2 = 0;}const _errs27 = errors;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.oneOf === undefined){const err18 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data6.oneOf !== undefined){let data8 = data6.oneOf;if(Array.isArray(data8)){const len2 = data8.length;for(let i2=0; i2<len2; i2++){let data9 = data8[i2];if((typeof data9 !== "string") && (!(typeof data9 == "number"))){const err19 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}else {const err20 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2 && valid12){valid12 = false;passing2 = [passing2, 1];}else {if(_valid2){valid12 = true;passing2 = 1;}}if(!valid12){const err21 = {keyword:"oneOf",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.property === undefined){const err22 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data6.type !== undefined){if(!func0$1(data6.type, "simple")){const err23 = {keyword:"const",dataPath:dataPath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data6.property !== undefined){if(typeof data6.property !== "string"){const err24 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/allMatch/" + i1)) && (err26.keyword in emErrors1)) && (err26.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(81)))){emPropParams1 = obj0$1[err26.keyword];emParamsErrors1 = emErrors1[err26.keyword][err26.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err26);err26.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 err27 = {keyword:"errorMessage",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs1 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs1.push(err28);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err29 = {keyword:"type",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}var _valid0 = _errs17 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err30 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17$1.errors = vErrors;return errors === 0;}function validate16$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if(!func0$1(data0.type, "Dropdown")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err7 = {keyword:"type",dataPath:dataPath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err8 = {keyword:"type",dataPath:dataPath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",params:{type: schema18$1.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err12 = {keyword:"type",dataPath:dataPath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data0.choices !== undefined){let data8 = data0.choices;if(Array.isArray(data8)){const len1 = data8.length;for(let i1=0; i1<len1; i1++){let data9 = data8[i1];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.value === undefined){const err13 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data9.name === undefined){const err14 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.name !== undefined){if(typeof data9.name !== "string"){const err15 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err16 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.condition !== undefined){if(!(validate17$1(data9.condition, {dataPath:dataPath+"/" + i0+"/choices/" + i1+"/condition",parentData:data9,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17$1.errors : vErrors.concat(validate17$1.errors);errors = vErrors.length;}}}else {const err17 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/" + i0+"/choices/" + i1)) && (err18.keyword in emErrors0)) && (err18.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(40)))){emErrors0[err18.keyword].push(err18);err18.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema18$1.allOf[0].items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.constraints !== undefined){let data13 = data0.constraints;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.notEmpty !== undefined){if(typeof data13.notEmpty !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.minLength !== undefined){if(!(typeof data13.minLength == "number")){const err23 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data13.maxLength !== undefined){if(!(typeof data13.maxLength == "number")){const err24 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data13.pattern !== undefined){let data17 = data13.pattern;const _errs39 = errors;let valid13 = false;let passing0 = null;const _errs40 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){if(typeof data17.value !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data17.message !== undefined){if(typeof data17.message !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid1 = _errs40 === errors;if(_valid1){valid13 = true;passing0 = 0;}const _errs46 = errors;if(typeof data17 !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid1 = _errs46 === errors;if(_valid1 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid1){valid13 = true;passing0 = 1;}}if(!valid13){const err29 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}}}else {const err30 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err31 = {keyword:"type",dataPath:dataPath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data0.condition !== undefined){let data21 = data0.condition;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err32 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const _errs52 = errors;let valid15 = false;let passing1 = null;const _errs53 = errors;const _errs56 = errors;let valid17 = false;let passing2 = null;const _errs57 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.equals === undefined){const err33 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data21.equals !== undefined){let data22 = data21.equals;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err34 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid3 = _errs57 === errors;if(_valid3){valid17 = true;passing2 = 0;}const _errs60 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.oneOf === undefined){const err35 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data21.oneOf !== undefined){let data23 = data21.oneOf;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if((typeof data24 !== "string") && (!(typeof data24 == "number"))){const err36 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid3 = _errs60 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 1];}else {if(_valid3){valid17 = true;passing2 = 1;}}if(!valid17){const err38 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.property === undefined){const err39 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data21.type !== undefined){if(!func0$1(data21.type, "simple")){const err40 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data21.property !== undefined){if(typeof data21.property !== "string"){const err41 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err43 of vErrors){if((((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && (err43.dataPath === dataPath+"/" + i0+"/condition")) && (err43.keyword in emErrors1)) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err43.schemaPath.slice(81)))){emPropParams0 = obj0$1[err43.keyword];emParamsErrors0 = emErrors1[err43.keyword][err43.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err43);err43.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err44 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}const emErrs3 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs3.push(err45);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid2 = _errs53 === errors;if(_valid2){valid15 = true;passing1 = 0;}const _errs68 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.allMatch === undefined){const err46 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data21.allMatch !== undefined){let data27 = data21.allMatch;if(Array.isArray(data27)){if(data27.length < 1){const err47 = {keyword:"minItems",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}const len3 = data27.length;for(let i3=0; i3<len3; i3++){let data28 = data27[i3];const _errs74 = errors;let valid27 = false;let passing3 = null;const _errs75 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.equals === undefined){const err48 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(data28.equals !== undefined){let data29 = data28.equals;if(((typeof data29 !== "string") && (!(typeof data29 == "number"))) && (typeof data29 !== "boolean")){const err49 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}var _valid4 = _errs75 === errors;if(_valid4){valid27 = true;passing3 = 0;}const _errs78 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.oneOf === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data28.oneOf !== undefined){let data30 = data28.oneOf;if(Array.isArray(data30)){const len4 = data30.length;for(let i4=0; i4<len4; i4++){let data31 = data30[i4];if((typeof data31 !== "string") && (!(typeof data31 == "number"))){const err51 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf/" + i4,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}else {const err52 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var _valid4 = _errs78 === errors;if(_valid4 && valid27){valid27 = false;passing3 = [passing3, 1];}else {if(_valid4){valid27 = true;passing3 = 1;}}if(!valid27){const err53 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}}if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.property === undefined){const err54 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data28.type !== undefined){if(!func0$1(data28.type, "simple")){const err55 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data28.property !== undefined){if(typeof data28.property !== "string"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err58 of vErrors){if((((((err58.keyword !== "errorMessage") && (!err58.emUsed)) && (err58.dataPath === dataPath+"/" + i0+"/condition/allMatch/" + i3)) && (err58.keyword in emErrors2)) && (err58.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err58.schemaPath.slice(81)))){emPropParams1 = obj0$1[err58.keyword];emParamsErrors1 = emErrors2[err58.keyword][err58.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err58);err58.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err59 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}const emErrs4 = [];for(const err60 of vErrors){if(!err60.emUsed){emErrs4.push(err60);}}vErrors = emErrs4;errors = emErrs4.length;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}var _valid2 = _errs68 === errors;if(_valid2 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid2){valid15 = true;passing1 = 1;}}if(!valid15){const err62 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}}}else {const err63 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}else {const err64 = {keyword:"type",dataPath,schemaPath:"#/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data34 = data[i5];const _errs91 = errors;let valid37 = true;const _errs92 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {if(data34.binding !== undefined){let data35 = data34.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {if(data35.type !== undefined){if(!func0$1(data35.type, "property")){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}}}}var _valid5 = _errs92 === errors;errors = _errs91;if(vErrors !== null){if(_errs91){vErrors.length = _errs91;}else {vErrors = null;}}if(_valid5){const _errs95 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){let data37 = data34.type;if(!(((((data37 === "String") || (data37 === "Text")) || (data37 === "Hidden")) || (data37 === "Dropdown")) || (data37 === "Boolean"))){const err68 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(errors > 0){const emErrs5 = [];for(const err69 of vErrors){if(((((err69.keyword !== "errorMessage") && (!err69.emUsed)) && ((err69.dataPath === dataPath+"/" + i5+"/type") || ((err69.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err69.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err69.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err69.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs5.push(err69);err69.emUsed = true;}}if(emErrs5.length){const err70 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs5},message:"invalid property type " + JSON.stringify(data37) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const emErrs6 = [];for(const err71 of vErrors){if(!err71.emUsed){emErrs6.push(err71);}}vErrors = emErrs6;errors = emErrs6.length;}}}var _valid5 = _errs95 === errors;valid37 = _valid5;}if(!valid37){const err72 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}const _errs98 = errors;let valid41 = true;const _errs99 = 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 data38 = data34.binding;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if((data38.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data38.type !== undefined){if(!func0$1(data38.type, "camunda:executionListener")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var _valid6 = _errs99 === errors;errors = _errs98;if(vErrors !== null){if(_errs98){vErrors.length = _errs98;}else {vErrors = null;}}if(_valid6){const _errs102 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){if(!(data34.type === "Hidden")){const err76 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(errors > 0){const emErrs7 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.dataPath === dataPath+"/" + i5+"/type") || ((err77.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err77.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err77.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err77.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs7.push(err77);err77.emUsed = true;}}if(emErrs7.length){const err78 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data34 && data34.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs8 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs8.push(err79);}}vErrors = emErrs8;errors = emErrs8.length;}}if(data34.binding !== undefined){let data41 = data34.binding;const _errs105 = errors;let valid45 = false;let passing4 = null;const _errs106 = errors;const _errs107 = errors;const _errs108 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.implementationType !== undefined){if(!func0$1(data41.implementationType, "script")){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}var valid46 = _errs108 === errors;if(!valid46){errors = _errs107;if(vErrors !== null){if(_errs107){vErrors.length = _errs107;}else {vErrors = null;}}}else {const err81 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid7 = _errs106 === errors;if(_valid7){valid45 = true;passing4 = 0;}const _errs110 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.scriptFormat === undefined){const err82 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",params:{missingProperty: "scriptFormat"},message:"should have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var _valid7 = _errs110 === errors;if(_valid7 && valid45){valid45 = false;passing4 = [passing4, 1];}else {if(_valid7){valid45 = true;passing4 = 1;}const _errs111 = errors;const _errs113 = errors;const _errs114 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.implementationType === undefined) && ("implementationType")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}var valid49 = _errs114 === errors;if(!valid49){errors = _errs113;if(vErrors !== null){if(_errs113){vErrors.length = _errs113;}else {vErrors = null;}}}else {const err84 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}const _errs116 = errors;const _errs117 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.scriptFormat === undefined) && ("scriptFormat")){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var valid50 = _errs117 === errors;if(!valid50){errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}else {const err86 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid7 = _errs111 === errors;if(_valid7 && valid45){valid45 = false;passing4 = [passing4, 2];}else {if(_valid7){valid45 = true;passing4 = 2;}}}if(!valid45){const err87 = {keyword:"oneOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf",params:{passingSchemas: passing4},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs105;if(vErrors !== null){if(_errs105){vErrors.length = _errs105;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.implementationType !== undefined){let data43 = data41.implementationType;if(!((((data43 === "class") || (data43 === "delegateExpression")) || (data43 === "expression")) || (data43 === "script"))){const err88 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/implementationType",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}}}var _valid6 = _errs102 === errors;valid41 = _valid6;}if(!valid41){const err89 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}const _errs120 = errors;let valid52 = true;const _errs121 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {if(data34.binding !== undefined){let data44 = data34.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.type === undefined) && ("type")){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {if(data44.type !== undefined){let data45 = data44.type;if(!((((((data45 === "camunda:property") || (data45 === "camunda:outputParameter")) || (data45 === "camunda:in")) || (data45 === "camunda:in:businessKey")) || (data45 === "camunda:out")) || (data45 === "camunda:errorEventDefinition"))){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}}}}}var _valid8 = _errs121 === errors;errors = _errs120;if(vErrors !== null){if(_errs120){vErrors.length = _errs120;}else {vErrors = null;}}if(_valid8){const _errs124 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){let data46 = data34.type;if(!(((data46 === "String") || (data46 === "Hidden")) || (data46 === "Dropdown"))){const err93 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(errors > 0){const emErrs9 = [];for(const err94 of vErrors){if(((((err94.keyword !== "errorMessage") && (!err94.emUsed)) && ((err94.dataPath === dataPath+"/" + i5+"/type") || ((err94.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err94.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err94.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err94.schemaPath["#/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs9.push(err94);err94.emUsed = true;}}if(emErrs9.length){const err95 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data46) + " for binding type " + JSON.stringify(data34 && data34.binding && data34.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}const emErrs10 = [];for(const err96 of vErrors){if(!err96.emUsed){emErrs10.push(err96);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid8 = _errs124 === errors;valid52 = _valid8;}if(!valid52){const err97 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const _errs127 = errors;let valid56 = true;const _errs128 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}else {if(data34.binding !== undefined){let data47 = data34.binding;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if((data47.type === undefined) && ("type")){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}else {if(data47.type !== undefined){let data48 = data47.type;if(!((data48 === "camunda:inputParameter") || (data48 === "camunda:field"))){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}}}}}var _valid9 = _errs128 === errors;errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}if(_valid9){const _errs131 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){let data49 = data34.type;if(!((((data49 === "String") || (data49 === "Text")) || (data49 === "Hidden")) || (data49 === "Dropdown"))){const err101 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(errors > 0){const emErrs11 = [];for(const err102 of vErrors){if(((((err102.keyword !== "errorMessage") && (!err102.emUsed)) && ((err102.dataPath === dataPath+"/" + i5+"/type") || ((err102.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err102.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err102.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err102.schemaPath["#/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs11.push(err102);err102.emUsed = true;}}if(emErrs11.length){const err103 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data49) + " for binding type " + JSON.stringify(data34 && data34.binding && data34.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}const emErrs12 = [];for(const err104 of vErrors){if(!err104.emUsed){emErrs12.push(err104);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid9 = _errs131 === errors;valid56 = _valid9;}if(!valid56){const err105 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.binding === undefined){const err106 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(data34.binding !== undefined){let data50 = data34.binding;const _errs136 = errors;let valid62 = true;const _errs137 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(data50.type !== undefined){let data51 = data50.type;if(!((((data51 === "property") || (data51 === "camunda:property")) || (data51 === "camunda:inputParameter")) || (data51 === "camunda:field"))){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}var _valid10 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid10){const _errs139 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.name === undefined){const err109 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(errors > 0){const emErrs13 = [];for(const err110 of vErrors){if(((((err110.keyword !== "errorMessage") && (!err110.emUsed)) && ((err110.dataPath === dataPath+"/" + i5+"/binding") || ((err110.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err110.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err110.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err110.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs13.push(err110);err110.emUsed = true;}}if(emErrs13.length){const err111 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs13},message:"property.binding " + JSON.stringify(data50 && data50.type) + " requires name"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const emErrs14 = [];for(const err112 of vErrors){if(!err112.emUsed){emErrs14.push(err112);}}vErrors = emErrs14;errors = emErrs14.length;}var _valid10 = _errs139 === errors;valid62 = _valid10;}if(!valid62){const err113 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const _errs141 = errors;let valid64 = true;const _errs142 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {if(data50.type !== undefined){if(!func0$1(data50.type, "camunda:outputParameter")){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}}var _valid11 = _errs142 === errors;errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}if(_valid11){const _errs144 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.source === undefined){const err116 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(errors > 0){const emErrs15 = [];for(const err117 of vErrors){if(((((err117.keyword !== "errorMessage") && (!err117.emUsed)) && ((err117.dataPath === dataPath+"/" + i5+"/binding") || ((err117.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err117.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err117.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err117.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs15.push(err117);err117.emUsed = true;}}if(emErrs15.length){const err118 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs15},message:"property.binding " + JSON.stringify(data50 && data50.type) + " requires source"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const emErrs16 = [];for(const err119 of vErrors){if(!err119.emUsed){emErrs16.push(err119);}}vErrors = emErrs16;errors = emErrs16.length;}var _valid11 = _errs144 === errors;valid64 = _valid11;}if(!valid64){const err120 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}const _errs146 = errors;let valid66 = true;const _errs147 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {if(data50.type !== undefined){if(!func0$1(data50.type, "camunda:in")){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}}}var _valid12 = _errs147 === errors;errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}if(_valid12){const _errs149 = errors;const _errs150 = errors;let valid68 = false;const _errs151 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.variables === undefined){const err123 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}var _valid13 = _errs151 === errors;valid68 = valid68 || _valid13;if(!valid68){const _errs152 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.target === undefined){const err124 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty: "target"},message:"should have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}var _valid13 = _errs152 === errors;valid68 = valid68 || _valid13;}if(!valid68){const err125 = {keyword:"anyOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}if(errors > 0){const emErrs17 = [];for(const err126 of vErrors){if(((((err126.keyword !== "errorMessage") && (!err126.emUsed)) && ((err126.dataPath === dataPath+"/" + i5+"/binding") || ((err126.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err126.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err126.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err126.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs17.push(err126);err126.emUsed = true;}}if(emErrs17.length){const err127 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data50 && data50.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}const emErrs18 = [];for(const err128 of vErrors){if(!err128.emUsed){emErrs18.push(err128);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid12 = _errs149 === errors;valid66 = _valid12;}if(!valid66){const err129 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}const _errs154 = errors;let valid69 = true;const _errs155 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}else {if(data50.type !== undefined){if(!func0$1(data50.type, "camunda:out")){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}}}var _valid14 = _errs155 === errors;errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}if(_valid14){const _errs157 = errors;const _errs158 = errors;let valid71 = false;let passing5 = null;const _errs159 = errors;const _errs160 = errors;const _errs161 = errors;const _errs162 = errors;let valid73 = false;const _errs163 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.source === undefined) && ("source")){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}var _valid16 = _errs163 === errors;valid73 = valid73 || _valid16;if(!valid73){const _errs164 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.sourceExpression === undefined) && ("sourceExpression")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}var _valid16 = _errs164 === errors;valid73 = valid73 || _valid16;}if(!valid73){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}}var valid72 = _errs161 === errors;if(!valid72){errors = _errs160;if(vErrors !== null){if(_errs160){vErrors.length = _errs160;}else {vErrors = null;}}}else {const err135 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.variables === undefined){const err136 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid15 = _errs159 === errors;if(_valid15){valid71 = true;passing5 = 0;}const _errs165 = errors;const _errs166 = errors;const _errs167 = errors;const _errs168 = errors;let valid75 = false;const _errs169 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.variables === undefined) && ("variables")){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}var _valid17 = _errs169 === errors;valid75 = valid75 || _valid17;if(!valid75){const _errs170 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.sourceExpression === undefined) && ("sourceExpression")){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid17 = _errs170 === errors;valid75 = valid75 || _valid17;}if(!valid75){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {errors = _errs168;if(vErrors !== null){if(_errs168){vErrors.length = _errs168;}else {vErrors = null;}}}var valid74 = _errs167 === errors;if(!valid74){errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}}else {const err140 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.source === undefined){const err141 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid15 = _errs165 === errors;if(_valid15 && valid71){valid71 = false;passing5 = [passing5, 1];}else {if(_valid15){valid71 = true;passing5 = 1;}const _errs171 = errors;const _errs172 = errors;const _errs173 = errors;const _errs174 = errors;let valid77 = false;const _errs175 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.variables === undefined) && ("variables")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var _valid18 = _errs175 === errors;valid77 = valid77 || _valid18;if(!valid77){const _errs176 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.source === undefined) && ("source")){const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}var _valid18 = _errs176 === errors;valid77 = valid77 || _valid18;}if(!valid77){const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}else {errors = _errs174;if(vErrors !== null){if(_errs174){vErrors.length = _errs174;}else {vErrors = null;}}}var valid76 = _errs173 === errors;if(!valid76){errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}else {const err145 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.sourceExpression === undefined){const err146 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}var _valid15 = _errs171 === errors;if(_valid15 && valid71){valid71 = false;passing5 = [passing5, 2];}else {if(_valid15){valid71 = true;passing5 = 2;}const _errs177 = errors;const _errs178 = errors;const _errs179 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.source === undefined) && ("source")){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var valid78 = _errs179 === errors;if(!valid78){errors = _errs178;if(vErrors !== null){if(_errs178){vErrors.length = _errs178;}else {vErrors = null;}}}else {const err148 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.variables === undefined){const err149 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data50.sourceExpression === undefined){const err150 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var _valid15 = _errs177 === errors;if(_valid15 && valid71){valid71 = false;passing5 = [passing5, 3];}else {if(_valid15){valid71 = true;passing5 = 3;}const _errs180 = errors;const _errs181 = errors;const _errs182 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.sourceExpression === undefined) && ("sourceExpression")){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var valid79 = _errs182 === errors;if(!valid79){errors = _errs181;if(vErrors !== null){if(_errs181){vErrors.length = _errs181;}else {vErrors = null;}}}else {const err152 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.variables === undefined){const err153 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data50.source === undefined){const err154 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var _valid15 = _errs180 === errors;if(_valid15 && valid71){valid71 = false;passing5 = [passing5, 4];}else {if(_valid15){valid71 = true;passing5 = 4;}}}}}if(!valid71){const err155 = {keyword:"oneOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing5},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {errors = _errs158;if(vErrors !== null){if(_errs158){vErrors.length = _errs158;}else {vErrors = null;}}}if(errors > 0){const emErrs19 = [];for(const err156 of vErrors){if(((((err156.keyword !== "errorMessage") && (!err156.emUsed)) && ((err156.dataPath === dataPath+"/" + i5+"/binding") || ((err156.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err156.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err156.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err156.schemaPath["#/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs19.push(err156);err156.emUsed = true;}}if(emErrs19.length){const err157 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data50 && data50.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}const emErrs20 = [];for(const err158 of vErrors){if(!err158.emUsed){emErrs20.push(err158);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid14 = _errs157 === errors;valid69 = _valid14;}if(!valid69){const err159 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}const _errs184 = errors;let valid80 = true;const _errs185 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}else {if(data50.type !== undefined){if(!func0$1(data50.type, "camunda:errorEventDefinition")){const err161 = {};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}}var _valid19 = _errs185 === errors;errors = _errs184;if(vErrors !== null){if(_errs184){vErrors.length = _errs184;}else {vErrors = null;}}if(_valid19){const _errs187 = errors;const _errs188 = errors;let valid82 = false;let passing6 = null;const _errs189 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.errorRef === undefined){const err162 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty: "errorRef"},message:"should have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}var _valid20 = _errs189 === errors;if(_valid20){valid82 = true;passing6 = 0;}if(!valid82){const err163 = {keyword:"oneOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing6},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {errors = _errs188;if(vErrors !== null){if(_errs188){vErrors.length = _errs188;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err164 of vErrors){if(((((err164.keyword !== "errorMessage") && (!err164.emUsed)) && ((err164.dataPath === dataPath+"/" + i5+"/binding") || ((err164.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err164.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err164.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err164.schemaPath["#/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs21.push(err164);err164.emUsed = true;}}if(emErrs21.length){const err165 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data50 && data50.type) + " requires errorRef"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}const emErrs22 = [];for(const err166 of vErrors){if(!err166.emUsed){emErrs22.push(err166);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid19 = _errs187 === errors;valid80 = _valid19;}if(!valid80){const err167 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.type === undefined){const err168 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}if(data50.type !== undefined){let data56 = data50.type;if(typeof data56 !== "string"){const err169 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(!((((((((((data56 === "property") || (data56 === "camunda:property")) || (data56 === "camunda:inputParameter")) || (data56 === "camunda:outputParameter")) || (data56 === "camunda:in")) || (data56 === "camunda:out")) || (data56 === "camunda:in:businessKey")) || (data56 === "camunda:executionListener")) || (data56 === "camunda:field")) || (data56 === "camunda:errorEventDefinition"))){const err170 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(errors > 0){const emErrs23 = [];for(const err171 of vErrors){if(((((err171.keyword !== "errorMessage") && (!err171.emUsed)) && ((err171.dataPath === dataPath+"/" + i5+"/binding/type") || ((err171.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err171.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err171.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err171.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs23.push(err171);err171.emUsed = true;}}if(emErrs23.length){const err172 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs23},message:"invalid property.binding type " + JSON.stringify(data56) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}const emErrs24 = [];for(const err173 of vErrors){if(!err173.emUsed){emErrs24.push(err173);}}vErrors = emErrs24;errors = emErrs24.length;}}if(data50.name !== undefined){if(typeof data50.name !== "string"){const err174 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data50.event !== undefined){if(typeof data50.event !== "string"){const err175 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/event",schemaPath:"#/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data50.scriptFormat !== undefined){if(typeof data50.scriptFormat !== "string"){const err176 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/scriptFormat",schemaPath:"#/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data50.source !== undefined){if(typeof data50.source !== "string"){const err177 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data50.target !== undefined){if(typeof data50.target !== "string"){const err178 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/target",schemaPath:"#/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data50.expression !== undefined){if(typeof data50.expression !== "boolean"){const err179 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/expression",schemaPath:"#/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data50.variables !== undefined){let data63 = data50.variables;if(typeof data63 !== "string"){const err180 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(!((data63 === "all") || (data63 === "local"))){const err181 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema18$1.allOf[1].items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data50.sourceExpression !== undefined){if(typeof data50.sourceExpression !== "string"){const err182 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/sourceExpression",schemaPath:"#/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {keyword:"type",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if(errors > 0){const emErrors3 = {"required":[]};const templates3 = {required:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}};for(const err185 of vErrors){if((((((err185.keyword !== "errorMessage") && (!err185.emUsed)) && (err185.dataPath === dataPath+"/" + i5)) && (err185.keyword in emErrors3)) && (err185.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err185.schemaPath.slice(15)))){emErrors3[err185.keyword].push(err185);err185.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err186 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema18$1.allOf[1].items.errorMessage[key3]};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}const emErrs25 = [];for(const err187 of vErrors){if(!err187.emUsed){emErrs25.push(err187);}}vErrors = emErrs25;errors = emErrs25.length;}}}else {const err188 = {keyword:"type",dataPath,schemaPath:"#/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}validate16$1.errors = vErrors;return errors === 0;}const schema24 = {"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."},"condition":{"$id":"#/condition","type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}}},"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}}};function validate20(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs4 = errors;let valid4 = true;const _errs5 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if(!func0$1(data0.type, "Dropdown")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs5 === errors;errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}if(_valid0){const _errs7 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/items/allOf/0/then") === 0)) && (err3.schemaPath["#/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs7 === errors;valid4 = _valid0;}if(!valid4){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err7 = {keyword:"type",dataPath:dataPath+"/" + i0+"/id",schemaPath:"#/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err8 = {keyword:"type",dataPath:dataPath+"/" + i0+"/value",schemaPath:"#/items/properties/value/type",params:{type: schema24.items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/description",schemaPath:"#/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err12 = {keyword:"type",dataPath:dataPath+"/" + i0+"/editable",schemaPath:"#/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data0.choices !== undefined){let data8 = data0.choices;if(Array.isArray(data8)){const len1 = data8.length;for(let i1=0; i1<len1; i1++){let data9 = data8[i1];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.value === undefined){const err13 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data9.name === undefined){const err14 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.name !== undefined){if(typeof data9.name !== "string"){const err15 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err16 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.condition !== undefined){if(!(validate17$1(data9.condition, {dataPath:dataPath+"/" + i0+"/choices/" + i1+"/condition",parentData:data9,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17$1.errors : vErrors.concat(validate17$1.errors);errors = vErrors.length;}}}else {const err17 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/" + i0+"/choices/" + i1)) && (err18.keyword in emErrors0)) && (err18.schemaPath.indexOf("#/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(32)))){emErrors0[err18.keyword].push(err18);err18.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema24.items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices",schemaPath:"#/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.constraints !== undefined){let data13 = data0.constraints;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.notEmpty !== undefined){if(typeof data13.notEmpty !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.minLength !== undefined){if(!(typeof data13.minLength == "number")){const err23 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/minLength",schemaPath:"#/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data13.maxLength !== undefined){if(!(typeof data13.maxLength == "number")){const err24 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/maxLength",schemaPath:"#/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data13.pattern !== undefined){let data17 = data13.pattern;const _errs38 = errors;let valid12 = false;let passing0 = null;const _errs39 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){if(typeof data17.value !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data17.message !== undefined){if(typeof data17.message !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid1 = _errs39 === errors;if(_valid1){valid12 = true;passing0 = 0;}const _errs45 = errors;if(typeof data17 !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid1 = _errs45 === errors;if(_valid1 && valid12){valid12 = false;passing0 = [passing0, 1];}else {if(_valid1){valid12 = true;passing0 = 1;}}if(!valid12){const err29 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}}}else {const err30 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints",schemaPath:"#/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err31 = {keyword:"type",dataPath:dataPath+"/" + i0+"/group",schemaPath:"#/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data0.condition !== undefined){let data21 = data0.condition;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err32 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/items/properties/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const _errs51 = errors;let valid14 = false;let passing1 = null;const _errs52 = errors;const _errs55 = errors;let valid16 = false;let passing2 = null;const _errs56 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.equals === undefined){const err33 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data21.equals !== undefined){let data22 = data21.equals;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err34 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid3 = _errs56 === errors;if(_valid3){valid16 = true;passing2 = 0;}const _errs59 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.oneOf === undefined){const err35 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data21.oneOf !== undefined){let data23 = data21.oneOf;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if((typeof data24 !== "string") && (!(typeof data24 == "number"))){const err36 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid3 = _errs59 === errors;if(_valid3 && valid16){valid16 = false;passing2 = [passing2, 1];}else {if(_valid3){valid16 = true;passing2 = 1;}}if(!valid16){const err38 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs55;if(vErrors !== null){if(_errs55){vErrors.length = _errs55;}else {vErrors = null;}}}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.property === undefined){const err39 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data21.type !== undefined){if(!func0$1(data21.type, "simple")){const err40 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data21.property !== undefined){if(typeof data21.property !== "string"){const err41 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err43 of vErrors){if((((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && (err43.dataPath === dataPath+"/" + i0+"/condition")) && (err43.keyword in emErrors1)) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err43.schemaPath.slice(81)))){emPropParams0 = obj0$1[err43.keyword];emParamsErrors0 = emErrors1[err43.keyword][err43.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err43);err43.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err44 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}const emErrs3 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs3.push(err45);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid2 = _errs52 === errors;if(_valid2){valid14 = true;passing1 = 0;}const _errs67 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.allMatch === undefined){const err46 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/items/properties/condition/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data21.allMatch !== undefined){let data27 = data21.allMatch;if(Array.isArray(data27)){if(data27.length < 1){const err47 = {keyword:"minItems",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}const len3 = data27.length;for(let i3=0; i3<len3; i3++){let data28 = data27[i3];const _errs73 = errors;let valid26 = false;let passing3 = null;const _errs74 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.equals === undefined){const err48 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(data28.equals !== undefined){let data29 = data28.equals;if(((typeof data29 !== "string") && (!(typeof data29 == "number"))) && (typeof data29 !== "boolean")){const err49 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}var _valid4 = _errs74 === errors;if(_valid4){valid26 = true;passing3 = 0;}const _errs77 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.oneOf === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data28.oneOf !== undefined){let data30 = data28.oneOf;if(Array.isArray(data30)){const len4 = data30.length;for(let i4=0; i4<len4; i4++){let data31 = data30[i4];if((typeof data31 !== "string") && (!(typeof data31 == "number"))){const err51 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf/" + i4,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}else {const err52 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var _valid4 = _errs77 === errors;if(_valid4 && valid26){valid26 = false;passing3 = [passing3, 1];}else {if(_valid4){valid26 = true;passing3 = 1;}}if(!valid26){const err53 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {errors = _errs73;if(vErrors !== null){if(_errs73){vErrors.length = _errs73;}else {vErrors = null;}}}if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.property === undefined){const err54 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data28.type !== undefined){if(!func0$1(data28.type, "simple")){const err55 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data28.property !== undefined){if(typeof data28.property !== "string"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err58 of vErrors){if((((((err58.keyword !== "errorMessage") && (!err58.emUsed)) && (err58.dataPath === dataPath+"/" + i0+"/condition/allMatch/" + i3)) && (err58.keyword in emErrors2)) && (err58.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err58.schemaPath.slice(81)))){emPropParams1 = obj0$1[err58.keyword];emParamsErrors1 = emErrors2[err58.keyword][err58.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err58);err58.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err59 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}const emErrs4 = [];for(const err60 of vErrors){if(!err60.emUsed){emErrs4.push(err60);}}vErrors = emErrs4;errors = emErrs4.length;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}var _valid2 = _errs67 === errors;if(_valid2 && valid14){valid14 = false;passing1 = [passing1, 1];}else {if(_valid2){valid14 = true;passing1 = 1;}}if(!valid14){const err62 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/items/properties/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {errors = _errs51;if(vErrors !== null){if(_errs51){vErrors.length = _errs51;}else {vErrors = null;}}}}}else {const err63 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}else {const err64 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}validate20.errors = vErrors;return errors === 0;}function validate15$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "integer"},message:"should be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {keyword:"type",dataPath:dataPath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",params:{type: schema17$1.allOf[0].properties.deprecated.type},message:"should be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0$1.test(data7)){const err11 = {keyword:"pattern",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {keyword:"type",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1$1.test(data9)){const err13 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.dataPath === dataPath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17$1.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1$1.test(data11)){const err20 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17$1.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0$1[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {keyword:"errorMessage",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17$1.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.dataPath === dataPath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0$1[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17$1.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0$1.test(data18)){const err40 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.dataPath === dataPath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17$1.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0$1[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17$1.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;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16$1(data.properties, {dataPath:dataPath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16$1.errors : vErrors.concat(validate16$1.errors);errors = vErrors.length;}}if(data.scopes !== undefined){let data20 = data.scopes;if(Array.isArray(data20)){const len2 = data20.length;for(let i2=0; i2<len2; i2++){let data21 = data20[i2];const _errs46 = errors;let valid17 = true;const _errs47 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data21.type !== undefined){if(!(data21.type === "bpmn:Error")){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}}var _valid0 = _errs47 === errors;errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}if(_valid0){const _errs49 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.id === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/then/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(errors > 0){const emErrs6 = [];for(const err51 of vErrors){if(((((err51.keyword !== "errorMessage") && (!err51.emUsed)) && ((err51.dataPath === dataPath+"/scopes/" + i2) || ((err51.dataPath.indexOf(dataPath+"/scopes/" + i2) === 0) && (err51.dataPath[dataPath+"/scopes/" + i2.length] === "/")))) && (err51.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err51.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs6.push(err51);err51.emUsed = true;}}if(emErrs6.length){const err52 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",params:{errors: emErrs6},message:"invalid scope " + JSON.stringify(data21 && data21.type) + ", missing id"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}const emErrs7 = [];for(const err53 of vErrors){if(!err53.emUsed){emErrs7.push(err53);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid0 = _errs49 === errors;valid17 = _valid0;}if(!valid17){const err54 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.type === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data21.properties === undefined){const err56 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data21.type !== undefined){let data23 = data21.type;if(typeof data23 !== "string"){const err57 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(!((data23 === "camunda:Connector") || (data23 === "bpmn:Error"))){const err58 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/enum",params:{allowedValues: schema17$1.properties.scopes.items.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(errors > 0){const emErrs8 = [];for(const err59 of vErrors){if(((((err59.keyword !== "errorMessage") && (!err59.emUsed)) && ((err59.dataPath === dataPath+"/scopes/" + i2+"/type") || ((err59.dataPath.indexOf(dataPath+"/scopes/" + i2+"/type") === 0) && (err59.dataPath[dataPath+"/scopes/" + i2+"/type".length] === "/")))) && (err59.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err59.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs8.push(err59);err59.emUsed = true;}}if(emErrs8.length){const err60 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",params:{errors: emErrs8},message:"invalid scope type " + JSON.stringify(data23) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}const emErrs9 = [];for(const err61 of vErrors){if(!err61.emUsed){emErrs9.push(err61);}}vErrors = emErrs9;errors = emErrs9.length;}}if(data21.properties !== undefined){let data24 = data21.properties;if(!(validate20(data24, {dataPath:dataPath+"/scopes/" + i2+"/properties",parentData:data21,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];const _errs60 = errors;let valid25 = true;const _errs61 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data25.binding !== undefined){let data26 = data25.binding;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if((data26.type === undefined) && ("type")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data26.type !== undefined){if(!func0$1(data26.type, "property")){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}}}}}var _valid1 = _errs61 === errors;errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}if(_valid1){const _errs64 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data28 = data25.type;if(!(((((data28 === "String") || (data28 === "Text")) || (data28 === "Hidden")) || (data28 === "Dropdown")) || (data28 === "Boolean"))){const err65 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(errors > 0){const emErrs10 = [];for(const err66 of vErrors){if(((((err66.keyword !== "errorMessage") && (!err66.emUsed)) && ((err66.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err66.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err66.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err66.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err66.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs10.push(err66);err66.emUsed = true;}}if(emErrs10.length){const err67 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data28) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}const emErrs11 = [];for(const err68 of vErrors){if(!err68.emUsed){emErrs11.push(err68);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid1 = _errs64 === errors;valid25 = _valid1;}if(!valid25){const err69 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}const _errs67 = errors;let valid29 = true;const _errs68 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data25.binding !== undefined){let data29 = data25.binding;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if((data29.type === undefined) && ("type")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {if(data29.type !== undefined){if(!func0$1(data29.type, "camunda:executionListener")){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}}}}var _valid2 = _errs68 === errors;errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}if(_valid2){const _errs71 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){if(!(data25.type === "Hidden")){const err73 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(errors > 0){const emErrs12 = [];for(const err74 of vErrors){if(((((err74.keyword !== "errorMessage") && (!err74.emUsed)) && ((err74.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err74.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err74.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err74.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err74.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs12.push(err74);err74.emUsed = true;}}if(emErrs12.length){const err75 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs12},message:"invalid property type " + JSON.stringify(data25 && data25.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const emErrs13 = [];for(const err76 of vErrors){if(!err76.emUsed){emErrs13.push(err76);}}vErrors = emErrs13;errors = emErrs13.length;}}if(data25.binding !== undefined){let data32 = data25.binding;const _errs74 = errors;let valid33 = false;let passing0 = null;const _errs75 = errors;const _errs76 = errors;const _errs77 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.implementationType !== undefined){if(!func0$1(data32.implementationType, "script")){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}var valid34 = _errs77 === errors;if(!valid34){errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}else {const err78 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}var _valid3 = _errs75 === errors;if(_valid3){valid33 = true;passing0 = 0;}const _errs79 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.scriptFormat === undefined){const err79 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",params:{missingProperty: "scriptFormat"},message:"should have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var _valid3 = _errs79 === errors;if(_valid3 && valid33){valid33 = false;passing0 = [passing0, 1];}else {if(_valid3){valid33 = true;passing0 = 1;}const _errs80 = errors;const _errs82 = errors;const _errs83 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if((data32.implementationType === undefined) && ("implementationType")){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}var valid37 = _errs83 === errors;if(!valid37){errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}else {const err81 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}const _errs85 = errors;const _errs86 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if((data32.scriptFormat === undefined) && ("scriptFormat")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var valid38 = _errs86 === errors;if(!valid38){errors = _errs85;if(vErrors !== null){if(_errs85){vErrors.length = _errs85;}else {vErrors = null;}}}else {const err83 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var _valid3 = _errs80 === errors;if(_valid3 && valid33){valid33 = false;passing0 = [passing0, 2];}else {if(_valid3){valid33 = true;passing0 = 2;}}}if(!valid33){const err84 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}}if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.implementationType !== undefined){let data34 = data32.implementationType;if(!((((data34 === "class") || (data34 === "delegateExpression")) || (data34 === "expression")) || (data34 === "script"))){const err85 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/implementationType",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",params:{allowedValues: schema27.items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}}}var _valid2 = _errs71 === errors;valid29 = _valid2;}if(!valid29){const err86 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const _errs89 = errors;let valid40 = true;const _errs90 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {if(data25.binding !== undefined){let data35 = data25.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(data35.type !== undefined){let data36 = data35.type;if(!((((((data36 === "camunda:property") || (data36 === "camunda:outputParameter")) || (data36 === "camunda:in")) || (data36 === "camunda:in:businessKey")) || (data36 === "camunda:out")) || (data36 === "camunda:errorEventDefinition"))){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}}}}}var _valid4 = _errs90 === errors;errors = _errs89;if(vErrors !== null){if(_errs89){vErrors.length = _errs89;}else {vErrors = null;}}if(_valid4){const _errs93 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data37 = data25.type;if(!(((data37 === "String") || (data37 === "Hidden")) || (data37 === "Dropdown"))){const err90 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(errors > 0){const emErrs14 = [];for(const err91 of vErrors){if(((((err91.keyword !== "errorMessage") && (!err91.emUsed)) && ((err91.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err91.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err91.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err91.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err91.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs14.push(err91);err91.emUsed = true;}}if(emErrs14.length){const err92 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs14},message:"invalid property type " + JSON.stringify(data37) + " for binding type " + JSON.stringify(data25 && data25.binding && data25.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const emErrs15 = [];for(const err93 of vErrors){if(!err93.emUsed){emErrs15.push(err93);}}vErrors = emErrs15;errors = emErrs15.length;}}}var _valid4 = _errs93 === errors;valid40 = _valid4;}if(!valid40){const err94 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const _errs96 = errors;let valid44 = true;const _errs97 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {if(data25.binding !== undefined){let data38 = data25.binding;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if((data38.type === undefined) && ("type")){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {if(data38.type !== undefined){let data39 = data38.type;if(!((data39 === "camunda:inputParameter") || (data39 === "camunda:field"))){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}}}}}var _valid5 = _errs97 === errors;errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}if(_valid5){const _errs100 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data40 = data25.type;if(!((((data40 === "String") || (data40 === "Text")) || (data40 === "Hidden")) || (data40 === "Dropdown"))){const err98 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(errors > 0){const emErrs16 = [];for(const err99 of vErrors){if(((((err99.keyword !== "errorMessage") && (!err99.emUsed)) && ((err99.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err99.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err99.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err99.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err99.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs16.push(err99);err99.emUsed = true;}}if(emErrs16.length){const err100 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs16},message:"invalid property type " + JSON.stringify(data40) + " for binding type " + JSON.stringify(data25 && data25.binding && data25.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const emErrs17 = [];for(const err101 of vErrors){if(!err101.emUsed){emErrs17.push(err101);}}vErrors = emErrs17;errors = emErrs17.length;}}}var _valid5 = _errs100 === errors;valid44 = _valid5;}if(!valid44){const err102 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.binding === undefined){const err103 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data25.binding !== undefined){let data41 = data25.binding;const _errs105 = errors;let valid50 = true;const _errs106 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}else {if(data41.type !== undefined){let data42 = data41.type;if(!((((data42 === "property") || (data42 === "camunda:property")) || (data42 === "camunda:inputParameter")) || (data42 === "camunda:field"))){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}}}var _valid6 = _errs106 === errors;errors = _errs105;if(vErrors !== null){if(_errs105){vErrors.length = _errs105;}else {vErrors = null;}}if(_valid6){const _errs108 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.name === undefined){const err106 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(errors > 0){const emErrs18 = [];for(const err107 of vErrors){if(((((err107.keyword !== "errorMessage") && (!err107.emUsed)) && ((err107.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err107.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err107.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err107.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err107.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs18.push(err107);err107.emUsed = true;}}if(emErrs18.length){const err108 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs18},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires name"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const emErrs19 = [];for(const err109 of vErrors){if(!err109.emUsed){emErrs19.push(err109);}}vErrors = emErrs19;errors = emErrs19.length;}var _valid6 = _errs108 === errors;valid50 = _valid6;}if(!valid50){const err110 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const _errs110 = errors;let valid52 = true;const _errs111 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:outputParameter")){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}var _valid7 = _errs111 === errors;errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}if(_valid7){const _errs113 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.source === undefined){const err113 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(errors > 0){const emErrs20 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err114.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err114.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err114.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err114.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs20.push(err114);err114.emUsed = true;}}if(emErrs20.length){const err115 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires source"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs21 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs21.push(err116);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid7 = _errs113 === errors;valid52 = _valid7;}if(!valid52){const err117 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs115 = errors;let valid54 = true;const _errs116 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:in")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}var _valid8 = _errs116 === errors;errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}if(_valid8){const _errs118 = errors;const _errs119 = errors;let valid56 = false;const _errs120 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err120 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}var _valid9 = _errs120 === errors;valid56 = valid56 || _valid9;if(!valid56){const _errs121 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.target === undefined){const err121 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty: "target"},message:"should have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}var _valid9 = _errs121 === errors;valid56 = valid56 || _valid9;}if(!valid56){const err122 = {keyword:"anyOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}if(errors > 0){const emErrs22 = [];for(const err123 of vErrors){if(((((err123.keyword !== "errorMessage") && (!err123.emUsed)) && ((err123.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err123.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err123.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err123.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err123.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs22.push(err123);err123.emUsed = true;}}if(emErrs22.length){const err124 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}const emErrs23 = [];for(const err125 of vErrors){if(!err125.emUsed){emErrs23.push(err125);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid8 = _errs118 === errors;valid54 = _valid8;}if(!valid54){const err126 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const _errs123 = errors;let valid57 = true;const _errs124 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:out")){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}}var _valid10 = _errs124 === errors;errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}if(_valid10){const _errs126 = errors;const _errs127 = errors;let valid59 = false;let passing1 = null;const _errs128 = errors;const _errs129 = errors;const _errs130 = errors;const _errs131 = errors;let valid61 = false;const _errs132 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid12 = _errs132 === errors;valid61 = valid61 || _valid12;if(!valid61){const _errs133 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}var _valid12 = _errs133 === errors;valid61 = valid61 || _valid12;}if(!valid61){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}}var valid60 = _errs130 === errors;if(!valid60){errors = _errs129;if(vErrors !== null){if(_errs129){vErrors.length = _errs129;}else {vErrors = null;}}}else {const err132 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err133 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}var _valid11 = _errs128 === errors;if(_valid11){valid59 = true;passing1 = 0;}const _errs134 = errors;const _errs135 = errors;const _errs136 = errors;const _errs137 = errors;let valid63 = false;const _errs138 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.variables === undefined) && ("variables")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}var _valid13 = _errs138 === errors;valid63 = valid63 || _valid13;if(!valid63){const _errs139 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var _valid13 = _errs139 === errors;valid63 = valid63 || _valid13;}if(!valid63){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {errors = _errs137;if(vErrors !== null){if(_errs137){vErrors.length = _errs137;}else {vErrors = null;}}}var valid62 = _errs136 === errors;if(!valid62){errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}else {const err137 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.source === undefined){const err138 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid11 = _errs134 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 1];}else {if(_valid11){valid59 = true;passing1 = 1;}const _errs140 = errors;const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;let valid65 = false;const _errs144 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.variables === undefined) && ("variables")){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}var _valid14 = _errs144 === errors;valid65 = valid65 || _valid14;if(!valid65){const _errs145 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var _valid14 = _errs145 === errors;valid65 = valid65 || _valid14;}if(!valid65){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}else {errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}}var valid64 = _errs142 === errors;if(!valid64){errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}}else {const err142 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.sourceExpression === undefined){const err143 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}var _valid11 = _errs140 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 2];}else {if(_valid11){valid59 = true;passing1 = 2;}const _errs146 = errors;const _errs147 = errors;const _errs148 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var valid66 = _errs148 === errors;if(!valid66){errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}else {const err145 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err146 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(data41.sourceExpression === undefined){const err147 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var _valid11 = _errs146 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 3];}else {if(_valid11){valid59 = true;passing1 = 3;}const _errs149 = errors;const _errs150 = errors;const _errs151 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}var valid67 = _errs151 === errors;if(!valid67){errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}else {const err149 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err150 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data41.source === undefined){const err151 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var _valid11 = _errs149 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 4];}else {if(_valid11){valid59 = true;passing1 = 4;}}}}}if(!valid59){const err152 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err153 of vErrors){if(((((err153.keyword !== "errorMessage") && (!err153.emUsed)) && ((err153.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err153.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err153.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err153.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err153.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs24.push(err153);err153.emUsed = true;}}if(emErrs24.length){const err154 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs24},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const emErrs25 = [];for(const err155 of vErrors){if(!err155.emUsed){emErrs25.push(err155);}}vErrors = emErrs25;errors = emErrs25.length;}var _valid10 = _errs126 === errors;valid57 = _valid10;}if(!valid57){const err156 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const _errs153 = errors;let valid68 = true;const _errs154 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:errorEventDefinition")){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}var _valid15 = _errs154 === errors;errors = _errs153;if(vErrors !== null){if(_errs153){vErrors.length = _errs153;}else {vErrors = null;}}if(_valid15){const _errs156 = errors;const _errs157 = errors;let valid70 = false;let passing2 = null;const _errs158 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.errorRef === undefined){const err159 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty: "errorRef"},message:"should have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var _valid16 = _errs158 === errors;if(_valid16){valid70 = true;passing2 = 0;}if(!valid70){const err160 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}else {errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}}if(errors > 0){const emErrs26 = [];for(const err161 of vErrors){if(((((err161.keyword !== "errorMessage") && (!err161.emUsed)) && ((err161.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err161.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err161.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err161.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err161.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs26.push(err161);err161.emUsed = true;}}if(emErrs26.length){const err162 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs26},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires errorRef"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const emErrs27 = [];for(const err163 of vErrors){if(!err163.emUsed){emErrs27.push(err163);}}vErrors = emErrs27;errors = emErrs27.length;}var _valid15 = _errs156 === errors;valid68 = _valid15;}if(!valid68){const err164 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.type === undefined){const err165 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data41.type !== undefined){let data47 = data41.type;if(typeof data47 !== "string"){const err166 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(!((((((((((data47 === "property") || (data47 === "camunda:property")) || (data47 === "camunda:inputParameter")) || (data47 === "camunda:outputParameter")) || (data47 === "camunda:in")) || (data47 === "camunda:out")) || (data47 === "camunda:in:businessKey")) || (data47 === "camunda:executionListener")) || (data47 === "camunda:field")) || (data47 === "camunda:errorEventDefinition"))){const err167 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema27.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(errors > 0){const emErrs28 = [];for(const err168 of vErrors){if(((((err168.keyword !== "errorMessage") && (!err168.emUsed)) && ((err168.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type") || ((err168.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type") === 0) && (err168.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type".length] === "/")))) && (err168.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err168.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs28.push(err168);err168.emUsed = true;}}if(emErrs28.length){const err169 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs28},message:"invalid property.binding type " + JSON.stringify(data47) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}const emErrs29 = [];for(const err170 of vErrors){if(!err170.emUsed){emErrs29.push(err170);}}vErrors = emErrs29;errors = emErrs29.length;}}if(data41.name !== undefined){if(typeof data41.name !== "string"){const err171 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data41.event !== undefined){if(typeof data41.event !== "string"){const err172 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data41.scriptFormat !== undefined){if(typeof data41.scriptFormat !== "string"){const err173 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data41.source !== undefined){if(typeof data41.source !== "string"){const err174 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data41.target !== undefined){if(typeof data41.target !== "string"){const err175 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data41.expression !== undefined){if(typeof data41.expression !== "boolean"){const err176 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data41.variables !== undefined){let data54 = data41.variables;if(typeof data54 !== "string"){const err177 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(!((data54 === "all") || (data54 === "local"))){const err178 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema27.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data41.sourceExpression !== undefined){if(typeof data41.sourceExpression !== "string"){const err179 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}}else {const err180 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}else {const err181 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(errors > 0){const emErrors6 = {"required":[]};const templates6 = {required:function(){return "missing binding for property \"" + JSON.stringify(i3) + "\""}};for(const err182 of vErrors){if((((((err182.keyword !== "errorMessage") && (!err182.emUsed)) && (err182.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3)) && (err182.keyword in emErrors6)) && (err182.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err182.schemaPath.slice(38)))){emErrors6[err182.keyword].push(err182);err182.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err183 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema27.items.errorMessage[key6]};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}const emErrs30 = [];for(const err184 of vErrors){if(!err184.emUsed){emErrs30.push(err184);}}vErrors = emErrs30;errors = emErrs30.length;}}}else {const err185 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}}else {const err186 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(errors > 0){const emErrors7 = {"required":{"type":[],"properties":[]}};const templates7 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data21 && data21.type) + ", missing properties=[]"}}};let emPropParams3;let emParamsErrors3;for(const err187 of vErrors){if((((((err187.keyword !== "errorMessage") && (!err187.emUsed)) && (err187.dataPath === dataPath+"/scopes/" + i2)) && (err187.keyword in emErrors7)) && (err187.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err187.schemaPath.slice(25)))){emPropParams3 = obj0$1[err187.keyword];emParamsErrors3 = emErrors7[err187.keyword][err187.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err187);err187.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 err188 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17$1.properties.scopes.items.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}const emErrs31 = [];for(const err189 of vErrors){if(!err189.emUsed){emErrs31.push(err189);}}vErrors = emErrs31;errors = emErrs31.length;}}}else {const err190 = {keyword:"type",dataPath:dataPath+"/scopes",schemaPath:"#/properties/scopes/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}else {const err191 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}validate15$1.errors = vErrors;return errors === 0;}function validate14$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15$1(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15$1.errors : vErrors.concat(validate15$1.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$1(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15$1.errors : vErrors.concat(validate15$1.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14$1.errors = vErrors;return errors === 0;}
|
67
|
+
|
68
|
+
var jsonSourceMap = {};
|
69
|
+
|
70
|
+
var escapedChars = {
|
71
|
+
'b': '\b',
|
72
|
+
'f': '\f',
|
73
|
+
'n': '\n',
|
74
|
+
'r': '\r',
|
75
|
+
't': '\t',
|
76
|
+
'"': '"',
|
77
|
+
'/': '/',
|
78
|
+
'\\': '\\'
|
79
|
+
};
|
80
|
+
|
81
|
+
var A_CODE = 'a'.charCodeAt();
|
82
|
+
|
83
|
+
|
84
|
+
jsonSourceMap.parse = function (source, _, options) {
|
85
|
+
var pointers = {};
|
86
|
+
var line = 0;
|
87
|
+
var column = 0;
|
88
|
+
var pos = 0;
|
89
|
+
var bigint = options && options.bigint && typeof BigInt != 'undefined';
|
90
|
+
return {
|
91
|
+
data: _parse('', true),
|
92
|
+
pointers: pointers
|
93
|
+
};
|
94
|
+
|
95
|
+
function _parse(ptr, topLevel) {
|
96
|
+
whitespace();
|
97
|
+
var data;
|
98
|
+
map(ptr, 'value');
|
99
|
+
var char = getChar();
|
100
|
+
switch (char) {
|
101
|
+
case 't': read('rue'); data = true; break;
|
102
|
+
case 'f': read('alse'); data = false; break;
|
103
|
+
case 'n': read('ull'); data = null; break;
|
104
|
+
case '"': data = parseString(); break;
|
105
|
+
case '[': data = parseArray(ptr); break;
|
106
|
+
case '{': data = parseObject(ptr); break;
|
107
|
+
default:
|
108
|
+
backChar();
|
109
|
+
if ('-0123456789'.indexOf(char) >= 0)
|
110
|
+
data = parseNumber();
|
111
|
+
else
|
112
|
+
unexpectedToken();
|
113
|
+
}
|
114
|
+
map(ptr, 'valueEnd');
|
115
|
+
whitespace();
|
116
|
+
if (topLevel && pos < source.length) unexpectedToken();
|
117
|
+
return data;
|
118
|
+
}
|
119
|
+
|
120
|
+
function whitespace() {
|
121
|
+
loop:
|
122
|
+
while (pos < source.length) {
|
123
|
+
switch (source[pos]) {
|
124
|
+
case ' ': column++; break;
|
125
|
+
case '\t': column += 4; break;
|
126
|
+
case '\r': column = 0; break;
|
127
|
+
case '\n': column = 0; line++; break;
|
128
|
+
default: break loop;
|
129
|
+
}
|
130
|
+
pos++;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
function parseString() {
|
135
|
+
var str = '';
|
136
|
+
var char;
|
137
|
+
while (true) {
|
138
|
+
char = getChar();
|
139
|
+
if (char == '"') {
|
140
|
+
break;
|
141
|
+
} else if (char == '\\') {
|
142
|
+
char = getChar();
|
143
|
+
if (char in escapedChars)
|
144
|
+
str += escapedChars[char];
|
145
|
+
else if (char == 'u')
|
146
|
+
str += getCharCode();
|
147
|
+
else
|
148
|
+
wasUnexpectedToken();
|
149
|
+
} else {
|
150
|
+
str += char;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
return str;
|
154
|
+
}
|
155
|
+
|
156
|
+
function parseNumber() {
|
157
|
+
var numStr = '';
|
158
|
+
var integer = true;
|
159
|
+
if (source[pos] == '-') numStr += getChar();
|
160
|
+
|
161
|
+
numStr += source[pos] == '0'
|
162
|
+
? getChar()
|
163
|
+
: getDigits();
|
164
|
+
|
165
|
+
if (source[pos] == '.') {
|
166
|
+
numStr += getChar() + getDigits();
|
167
|
+
integer = false;
|
168
|
+
}
|
169
|
+
|
170
|
+
if (source[pos] == 'e' || source[pos] == 'E') {
|
171
|
+
numStr += getChar();
|
172
|
+
if (source[pos] == '+' || source[pos] == '-') numStr += getChar();
|
173
|
+
numStr += getDigits();
|
174
|
+
integer = false;
|
175
|
+
}
|
176
|
+
|
177
|
+
var result = +numStr;
|
178
|
+
return bigint && integer && (result > Number.MAX_SAFE_INTEGER || result < Number.MIN_SAFE_INTEGER)
|
179
|
+
? BigInt(numStr)
|
180
|
+
: result;
|
181
|
+
}
|
182
|
+
|
183
|
+
function parseArray(ptr) {
|
184
|
+
whitespace();
|
185
|
+
var arr = [];
|
186
|
+
var i = 0;
|
187
|
+
if (getChar() == ']') return arr;
|
188
|
+
backChar();
|
189
|
+
|
190
|
+
while (true) {
|
191
|
+
var itemPtr = ptr + '/' + i;
|
192
|
+
arr.push(_parse(itemPtr));
|
193
|
+
whitespace();
|
194
|
+
var char = getChar();
|
195
|
+
if (char == ']') break;
|
196
|
+
if (char != ',') wasUnexpectedToken();
|
197
|
+
whitespace();
|
198
|
+
i++;
|
199
|
+
}
|
200
|
+
return arr;
|
201
|
+
}
|
202
|
+
|
203
|
+
function parseObject(ptr) {
|
204
|
+
whitespace();
|
205
|
+
var obj = {};
|
206
|
+
if (getChar() == '}') return obj;
|
207
|
+
backChar();
|
208
|
+
|
209
|
+
while (true) {
|
210
|
+
var loc = getLoc();
|
211
|
+
if (getChar() != '"') wasUnexpectedToken();
|
212
|
+
var key = parseString();
|
213
|
+
var propPtr = ptr + '/' + escapeJsonPointer(key);
|
214
|
+
mapLoc(propPtr, 'key', loc);
|
215
|
+
map(propPtr, 'keyEnd');
|
216
|
+
whitespace();
|
217
|
+
if (getChar() != ':') wasUnexpectedToken();
|
218
|
+
whitespace();
|
219
|
+
obj[key] = _parse(propPtr);
|
220
|
+
whitespace();
|
221
|
+
var char = getChar();
|
222
|
+
if (char == '}') break;
|
223
|
+
if (char != ',') wasUnexpectedToken();
|
224
|
+
whitespace();
|
225
|
+
}
|
226
|
+
return obj;
|
227
|
+
}
|
228
|
+
|
229
|
+
function read(str) {
|
230
|
+
for (var i=0; i<str.length; i++)
|
231
|
+
if (getChar() !== str[i]) wasUnexpectedToken();
|
232
|
+
}
|
233
|
+
|
234
|
+
function getChar() {
|
235
|
+
checkUnexpectedEnd();
|
236
|
+
var char = source[pos];
|
237
|
+
pos++;
|
238
|
+
column++; // new line?
|
239
|
+
return char;
|
240
|
+
}
|
241
|
+
|
242
|
+
function backChar() {
|
243
|
+
pos--;
|
244
|
+
column--;
|
245
|
+
}
|
246
|
+
|
247
|
+
function getCharCode() {
|
248
|
+
var count = 4;
|
249
|
+
var code = 0;
|
250
|
+
while (count--) {
|
251
|
+
code <<= 4;
|
252
|
+
var char = getChar().toLowerCase();
|
253
|
+
if (char >= 'a' && char <= 'f')
|
254
|
+
code += char.charCodeAt() - A_CODE + 10;
|
255
|
+
else if (char >= '0' && char <= '9')
|
256
|
+
code += +char;
|
257
|
+
else
|
258
|
+
wasUnexpectedToken();
|
259
|
+
}
|
260
|
+
return String.fromCharCode(code);
|
261
|
+
}
|
262
|
+
|
263
|
+
function getDigits() {
|
264
|
+
var digits = '';
|
265
|
+
while (source[pos] >= '0' && source[pos] <= '9')
|
266
|
+
digits += getChar();
|
267
|
+
|
268
|
+
if (digits.length) return digits;
|
269
|
+
checkUnexpectedEnd();
|
270
|
+
unexpectedToken();
|
271
|
+
}
|
272
|
+
|
273
|
+
function map(ptr, prop) {
|
274
|
+
mapLoc(ptr, prop, getLoc());
|
275
|
+
}
|
276
|
+
|
277
|
+
function mapLoc(ptr, prop, loc) {
|
278
|
+
pointers[ptr] = pointers[ptr] || {};
|
279
|
+
pointers[ptr][prop] = loc;
|
280
|
+
}
|
281
|
+
|
282
|
+
function getLoc() {
|
283
|
+
return {
|
284
|
+
line: line,
|
285
|
+
column: column,
|
286
|
+
pos: pos
|
287
|
+
};
|
288
|
+
}
|
289
|
+
|
290
|
+
function unexpectedToken() {
|
291
|
+
throw new SyntaxError('Unexpected token ' + source[pos] + ' in JSON at position ' + pos);
|
292
|
+
}
|
293
|
+
|
294
|
+
function wasUnexpectedToken() {
|
295
|
+
backChar();
|
296
|
+
unexpectedToken();
|
297
|
+
}
|
298
|
+
|
299
|
+
function checkUnexpectedEnd() {
|
300
|
+
if (pos >= source.length)
|
301
|
+
throw new SyntaxError('Unexpected end of JSON input');
|
302
|
+
}
|
303
|
+
};
|
304
|
+
|
305
|
+
|
306
|
+
jsonSourceMap.stringify = function (data, _, options) {
|
307
|
+
if (!validType(data)) return;
|
308
|
+
var wsLine = 0;
|
309
|
+
var wsPos, wsColumn;
|
310
|
+
var whitespace = typeof options == 'object'
|
311
|
+
? options.space
|
312
|
+
: options;
|
313
|
+
switch (typeof whitespace) {
|
314
|
+
case 'number':
|
315
|
+
var len = whitespace > 10
|
316
|
+
? 10
|
317
|
+
: whitespace < 0
|
318
|
+
? 0
|
319
|
+
: Math.floor(whitespace);
|
320
|
+
whitespace = len && repeat(len, ' ');
|
321
|
+
wsPos = len;
|
322
|
+
wsColumn = len;
|
323
|
+
break;
|
324
|
+
case 'string':
|
325
|
+
whitespace = whitespace.slice(0, 10);
|
326
|
+
wsPos = 0;
|
327
|
+
wsColumn = 0;
|
328
|
+
for (var j=0; j<whitespace.length; j++) {
|
329
|
+
var char = whitespace[j];
|
330
|
+
switch (char) {
|
331
|
+
case ' ': wsColumn++; break;
|
332
|
+
case '\t': wsColumn += 4; break;
|
333
|
+
case '\r': wsColumn = 0; break;
|
334
|
+
case '\n': wsColumn = 0; wsLine++; break;
|
335
|
+
default: throw new Error('whitespace characters not allowed in JSON');
|
336
|
+
}
|
337
|
+
wsPos++;
|
338
|
+
}
|
339
|
+
break;
|
340
|
+
default:
|
341
|
+
whitespace = undefined;
|
342
|
+
}
|
343
|
+
|
344
|
+
var json = '';
|
345
|
+
var pointers = {};
|
346
|
+
var line = 0;
|
347
|
+
var column = 0;
|
348
|
+
var pos = 0;
|
349
|
+
var es6 = options && options.es6 && typeof Map == 'function';
|
350
|
+
_stringify(data, 0, '');
|
351
|
+
return {
|
352
|
+
json: json,
|
353
|
+
pointers: pointers
|
354
|
+
};
|
355
|
+
|
356
|
+
function _stringify(_data, lvl, ptr) {
|
357
|
+
map(ptr, 'value');
|
358
|
+
switch (typeof _data) {
|
359
|
+
case 'number':
|
360
|
+
case 'bigint':
|
361
|
+
case 'boolean':
|
362
|
+
out('' + _data); break;
|
363
|
+
case 'string':
|
364
|
+
out(quoted(_data)); break;
|
365
|
+
case 'object':
|
366
|
+
if (_data === null) {
|
367
|
+
out('null');
|
368
|
+
} else if (typeof _data.toJSON == 'function') {
|
369
|
+
out(quoted(_data.toJSON()));
|
370
|
+
} else if (Array.isArray(_data)) {
|
371
|
+
stringifyArray();
|
372
|
+
} else if (es6) {
|
373
|
+
if (_data.constructor.BYTES_PER_ELEMENT)
|
374
|
+
stringifyArray();
|
375
|
+
else if (_data instanceof Map)
|
376
|
+
stringifyMapSet();
|
377
|
+
else if (_data instanceof Set)
|
378
|
+
stringifyMapSet(true);
|
379
|
+
else
|
380
|
+
stringifyObject();
|
381
|
+
} else {
|
382
|
+
stringifyObject();
|
383
|
+
}
|
384
|
+
}
|
385
|
+
map(ptr, 'valueEnd');
|
386
|
+
|
387
|
+
function stringifyArray() {
|
388
|
+
if (_data.length) {
|
389
|
+
out('[');
|
390
|
+
var itemLvl = lvl + 1;
|
391
|
+
for (var i=0; i<_data.length; i++) {
|
392
|
+
if (i) out(',');
|
393
|
+
indent(itemLvl);
|
394
|
+
var item = validType(_data[i]) ? _data[i] : null;
|
395
|
+
var itemPtr = ptr + '/' + i;
|
396
|
+
_stringify(item, itemLvl, itemPtr);
|
397
|
+
}
|
398
|
+
indent(lvl);
|
399
|
+
out(']');
|
400
|
+
} else {
|
401
|
+
out('[]');
|
402
|
+
}
|
403
|
+
}
|
404
|
+
|
405
|
+
function stringifyObject() {
|
406
|
+
var keys = Object.keys(_data);
|
407
|
+
if (keys.length) {
|
408
|
+
out('{');
|
409
|
+
var propLvl = lvl + 1;
|
410
|
+
for (var i=0; i<keys.length; i++) {
|
411
|
+
var key = keys[i];
|
412
|
+
var value = _data[key];
|
413
|
+
if (validType(value)) {
|
414
|
+
if (i) out(',');
|
415
|
+
var propPtr = ptr + '/' + escapeJsonPointer(key);
|
416
|
+
indent(propLvl);
|
417
|
+
map(propPtr, 'key');
|
418
|
+
out(quoted(key));
|
419
|
+
map(propPtr, 'keyEnd');
|
420
|
+
out(':');
|
421
|
+
if (whitespace) out(' ');
|
422
|
+
_stringify(value, propLvl, propPtr);
|
423
|
+
}
|
424
|
+
}
|
425
|
+
indent(lvl);
|
426
|
+
out('}');
|
427
|
+
} else {
|
428
|
+
out('{}');
|
429
|
+
}
|
430
|
+
}
|
431
|
+
|
432
|
+
function stringifyMapSet(isSet) {
|
433
|
+
if (_data.size) {
|
434
|
+
out('{');
|
435
|
+
var propLvl = lvl + 1;
|
436
|
+
var first = true;
|
437
|
+
var entries = _data.entries();
|
438
|
+
var entry = entries.next();
|
439
|
+
while (!entry.done) {
|
440
|
+
var item = entry.value;
|
441
|
+
var key = item[0];
|
442
|
+
var value = isSet ? true : item[1];
|
443
|
+
if (validType(value)) {
|
444
|
+
if (!first) out(',');
|
445
|
+
first = false;
|
446
|
+
var propPtr = ptr + '/' + escapeJsonPointer(key);
|
447
|
+
indent(propLvl);
|
448
|
+
map(propPtr, 'key');
|
449
|
+
out(quoted(key));
|
450
|
+
map(propPtr, 'keyEnd');
|
451
|
+
out(':');
|
452
|
+
if (whitespace) out(' ');
|
453
|
+
_stringify(value, propLvl, propPtr);
|
454
|
+
}
|
455
|
+
entry = entries.next();
|
456
|
+
}
|
457
|
+
indent(lvl);
|
458
|
+
out('}');
|
459
|
+
} else {
|
460
|
+
out('{}');
|
461
|
+
}
|
462
|
+
}
|
463
|
+
}
|
464
|
+
|
465
|
+
function out(str) {
|
466
|
+
column += str.length;
|
467
|
+
pos += str.length;
|
468
|
+
json += str;
|
469
|
+
}
|
470
|
+
|
471
|
+
function indent(lvl) {
|
472
|
+
if (whitespace) {
|
473
|
+
json += '\n' + repeat(lvl, whitespace);
|
474
|
+
line++;
|
475
|
+
column = 0;
|
476
|
+
while (lvl--) {
|
477
|
+
if (wsLine) {
|
478
|
+
line += wsLine;
|
479
|
+
column = wsColumn;
|
480
|
+
} else {
|
481
|
+
column += wsColumn;
|
482
|
+
}
|
483
|
+
pos += wsPos;
|
484
|
+
}
|
485
|
+
pos += 1; // \n character
|
486
|
+
}
|
487
|
+
}
|
488
|
+
|
489
|
+
function map(ptr, prop) {
|
490
|
+
pointers[ptr] = pointers[ptr] || {};
|
491
|
+
pointers[ptr][prop] = {
|
492
|
+
line: line,
|
493
|
+
column: column,
|
494
|
+
pos: pos
|
495
|
+
};
|
496
|
+
}
|
497
|
+
|
498
|
+
function repeat(n, str) {
|
499
|
+
return Array(n + 1).join(str);
|
500
|
+
}
|
501
|
+
};
|
502
|
+
|
503
|
+
|
504
|
+
var VALID_TYPES = ['number', 'bigint', 'boolean', 'string', 'object'];
|
505
|
+
function validType(data) {
|
506
|
+
return VALID_TYPES.indexOf(typeof data) >= 0;
|
507
|
+
}
|
508
|
+
|
509
|
+
|
510
|
+
var ESC_QUOTE = /"|\\/g;
|
511
|
+
var ESC_B = /[\b]/g;
|
512
|
+
var ESC_F = /\f/g;
|
513
|
+
var ESC_N = /\n/g;
|
514
|
+
var ESC_R = /\r/g;
|
515
|
+
var ESC_T = /\t/g;
|
516
|
+
function quoted(str) {
|
517
|
+
str = str.replace(ESC_QUOTE, '\\$&')
|
518
|
+
.replace(ESC_F, '\\f')
|
519
|
+
.replace(ESC_B, '\\b')
|
520
|
+
.replace(ESC_N, '\\n')
|
521
|
+
.replace(ESC_R, '\\r')
|
522
|
+
.replace(ESC_T, '\\t');
|
523
|
+
return '"' + str + '"';
|
524
|
+
}
|
525
|
+
|
526
|
+
|
527
|
+
var ESC_0 = /~/g;
|
528
|
+
var ESC_1 = /\//g;
|
529
|
+
function escapeJsonPointer(str) {
|
530
|
+
return str.replace(ESC_0, '~0')
|
531
|
+
.replace(ESC_1, '~1');
|
532
|
+
}
|
533
|
+
|
534
|
+
function _validate(object, validateFn) {
|
535
|
+
const dataPointerMap = generateDataPointerMap(object);
|
536
|
+
|
537
|
+
const valid = validateFn(object);
|
538
|
+
|
539
|
+
let errors = validateFn.errors;
|
540
|
+
|
541
|
+
if (errors && errors.length) {
|
542
|
+
|
543
|
+
// @pinussilvestrus: the <ajv-errors> extensions produces a couple of
|
544
|
+
// unnecessary errors when using an <errorMessage> attribute.
|
545
|
+
// Therefore, we should flatten the produced errors a bit to not
|
546
|
+
// confuse the consumer of this library.
|
547
|
+
|
548
|
+
// (1) wrap raw errors in case of custom errorMessage attribute
|
549
|
+
minDash.forEach(errors, wrapRawErrors);
|
550
|
+
|
551
|
+
// (2) ignore supportive error messages (e.g. "if-then-rules")
|
552
|
+
errors = ignoreSupportiveErrors(errors);
|
553
|
+
|
554
|
+
// (3) set data pointer for each error
|
555
|
+
minDash.forEach(errors, function(error) {
|
556
|
+
setDataPointer(error, dataPointerMap);
|
557
|
+
});
|
558
|
+
}
|
559
|
+
|
560
|
+
return {
|
561
|
+
valid: valid,
|
562
|
+
object: object,
|
563
|
+
errors: errors
|
564
|
+
};
|
565
|
+
}
|
566
|
+
|
567
|
+
function _validateAll(objects, validateFn) {
|
568
|
+
|
569
|
+
const results = [];
|
570
|
+
|
571
|
+
let allValid = true;
|
572
|
+
|
573
|
+
minDash.forEach(objects, function(object) {
|
574
|
+
const result = validateFn(object);
|
575
|
+
|
576
|
+
if (!result.valid) {
|
577
|
+
allValid = false;
|
578
|
+
}
|
579
|
+
|
580
|
+
results.push(result);
|
581
|
+
});
|
582
|
+
|
583
|
+
return {
|
584
|
+
valid: allValid,
|
585
|
+
results: results
|
586
|
+
};
|
587
|
+
}
|
588
|
+
|
589
|
+
|
590
|
+
// helper //////////////
|
591
|
+
function wrapRawErrors(error) {
|
592
|
+
const params = error.params;
|
593
|
+
|
594
|
+
if (params && params.errors) {
|
595
|
+
params.rawErrors = params.errors;
|
596
|
+
delete params.errors;
|
597
|
+
}
|
598
|
+
}
|
599
|
+
|
600
|
+
function setDataPointer(error, dataPointerMap) {
|
601
|
+
const dataPath = error.dataPath;
|
602
|
+
|
603
|
+
const pointer = dataPointerMap[dataPath];
|
604
|
+
|
605
|
+
error.dataPointer = pointer;
|
606
|
+
}
|
607
|
+
|
608
|
+
function ignoreSupportiveErrors(errors) {
|
609
|
+
return minDash.filter(errors, function(error) {
|
610
|
+
return error.keyword !== 'if';
|
611
|
+
});
|
612
|
+
}
|
613
|
+
|
614
|
+
/**
|
615
|
+
* Generates a key-pointer map for the object.
|
616
|
+
*
|
617
|
+
* Example:
|
618
|
+
*
|
619
|
+
* {
|
620
|
+
* foo: 'bar'
|
621
|
+
* }
|
622
|
+
*
|
623
|
+
* =>
|
624
|
+
*
|
625
|
+
* {
|
626
|
+
* '': {
|
627
|
+
* value: { line: 0, column: 0, pos: 0 },
|
628
|
+
* valueEnd: { line: 2, column: 1, pos: 18 }
|
629
|
+
* },
|
630
|
+
* '/foo': {
|
631
|
+
* key: { line: 1, column: 2, pos: 4 },
|
632
|
+
* keyEnd: { line: 1, column: 7, pos: 9 },
|
633
|
+
* value: { line: 1, column: 9, pos: 11 },
|
634
|
+
* valueEnd: { line: 1, column: 14, pos: 16 }
|
635
|
+
* }
|
636
|
+
* }
|
637
|
+
*
|
638
|
+
* @param {Object} object
|
639
|
+
* @return {Object}
|
640
|
+
*/
|
641
|
+
function generateDataPointerMap(object) {
|
642
|
+
return jsonSourceMap.stringify(object, null, 2).pointers;
|
643
|
+
}
|
644
|
+
|
645
|
+
function getSchemaVersion() {
|
646
|
+
return version$1;
|
647
|
+
}
|
648
|
+
|
649
|
+
function getSchemaPackage() {
|
650
|
+
return name$1;
|
651
|
+
}
|
652
|
+
|
653
|
+
/**
|
654
|
+
* Validate a single object.
|
655
|
+
*
|
656
|
+
* @param {Object} object
|
657
|
+
* @return {Object} single object validation result
|
658
|
+
*/
|
659
|
+
function validate(object) {
|
660
|
+
return _validate(object, standaloneValidator.exports);
|
661
|
+
}
|
662
|
+
|
663
|
+
/**
|
664
|
+
* Validate a list of objects
|
665
|
+
*
|
666
|
+
* @param {Object[]} objects
|
667
|
+
* @return {Object} list validation result
|
668
|
+
*/
|
669
|
+
function validateAll(objects) {
|
670
|
+
return _validateAll(objects, validate);
|
671
|
+
}
|
672
|
+
|
673
|
+
var name = "@camunda/zeebe-element-templates-json-schema";
|
674
|
+
var version = "0.14.0";
|
675
|
+
|
676
|
+
var standaloneZeebeValidator = {exports: {}};
|
677
|
+
|
678
|
+
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":{"enum":["bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},"required":["type"]}}}}}},"then":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"}},"required":["eventDefinition"]}}}}]}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"icon":{"$id":"#/icon","type":"object","description":"Custom icon to be shown on the element","default":{},"properties":{"contents":{"$id":"#/icon/contents","type":"string","description":"The URL of an icon.","pattern":"^(https?|data):.*","errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"required":["contents"],"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","enum":["bpmn:MessageEventDefinition"]}}},{"if":{"properties":{"eventDefinition":{"enum":["bpmn:MessageEventDefinition"]}},"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}}]}]},"groups":{"items":{"properties":{"tooltip":{"$id":"#/groups/group/tooltip","type":"string"},"openByDefault":{"$id":"#/groups/group/openByDefault","type":"boolean","description":"Specifies whether the Group should be opened when first viewed. Defaults to true.","default":true}}}}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern4 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = equal.exports;const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."},"condition":{"$id":"#/condition","type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}}},"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text"],"errorMessage":"feel is only supported for \"String\" and \"Text\" type"}},"required":["type"]}},{"if":{"properties":{"language":{"not":{"const":null}}},"required":["language"]},"then":{"properties":{"type":{"enum":["Text"],"errorMessage":"language is only supported for \"Text\" type"}}}},{"if":{"required":["value"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["Boolean","Dropdown"]}},"required":["type"]},"then":{"not":{"required":["generatedValue"]}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["type","retries"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition:type"}},"required":["type"]},"then":{"deprecated":true}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:property","name":"property"},{"type":"zeebe:taskHeader","key":"key"},{"type":"zeebe:taskDefinition","property":"retries"},{"type":"zeebe:taskDefinition","property":"type"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"The name of the property defined in the binding."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","default":null,"description":"Indicates whether the property can be a feel expression","enum":[null,"optional","required"]},"language":{"$id":"#/properties/property/language","type":"string","description":"Indicates that the field is a custom language editor"},"generatedValue":{"$id":"#/properties/property/generatedValue","type":"object","required":["type"],"properties":{"type":{"const":"uuid"}},"description":"Sets property to a generated value according to given scheme."},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}}]};const schema20 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};function validate17(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {keyword:"type",dataPath:dataPath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {keyword:"type",dataPath:dataPath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {keyword:"type",dataPath:dataPath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}}if(!valid2){const err6 = {keyword:"oneOf",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}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 err7 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.type !== undefined){if(!func0(data.type, "simple")){const err8 = {keyword:"const",dataPath:dataPath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}else {const err10 = {keyword:"type",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(81)))){emPropParams0 = obj0[err11.keyword];emParamsErrors0 = emErrors0[err11.keyword][err11.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err11);err11.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 err12 = {keyword:"errorMessage",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err14 = {keyword:"required",dataPath,schemaPath:"#/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data.allMatch !== undefined){let data5 = data.allMatch;if(Array.isArray(data5)){if(data5.length < 1){const err15 = {keyword:"minItems",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}const len1 = data5.length;for(let i1=0; i1<len1; i1++){let data6 = data5[i1];const _errs23 = errors;let valid12 = false;let passing2 = null;const _errs24 = errors;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.equals === undefined){const err16 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data6.equals !== undefined){let data7 = data6.equals;if(((typeof data7 !== "string") && (!(typeof data7 == "number"))) && (typeof data7 !== "boolean")){const err17 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}var _valid2 = _errs24 === errors;if(_valid2){valid12 = true;passing2 = 0;}const _errs27 = errors;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.oneOf === undefined){const err18 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data6.oneOf !== undefined){let data8 = data6.oneOf;if(Array.isArray(data8)){const len2 = data8.length;for(let i2=0; i2<len2; i2++){let data9 = data8[i2];if((typeof data9 !== "string") && (!(typeof data9 == "number"))){const err19 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}else {const err20 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2 && valid12){valid12 = false;passing2 = [passing2, 1];}else {if(_valid2){valid12 = true;passing2 = 1;}}if(!valid12){const err21 = {keyword:"oneOf",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.property === undefined){const err22 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data6.type !== undefined){if(!func0(data6.type, "simple")){const err23 = {keyword:"const",dataPath:dataPath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data6.property !== undefined){if(typeof data6.property !== "string"){const err24 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/allMatch/" + i1)) && (err26.keyword in emErrors1)) && (err26.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(81)))){emPropParams1 = obj0[err26.keyword];emParamsErrors1 = emErrors1[err26.keyword][err26.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err26);err26.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 err27 = {keyword:"errorMessage",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs1 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs1.push(err28);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err29 = {keyword:"type",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}var _valid0 = _errs17 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err30 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if(!func0(data0.type, "Dropdown")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err7 = {keyword:"type",dataPath:dataPath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err8 = {keyword:"type",dataPath:dataPath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err12 = {keyword:"type",dataPath:dataPath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data0.choices !== undefined){let data8 = data0.choices;if(Array.isArray(data8)){const len1 = data8.length;for(let i1=0; i1<len1; i1++){let data9 = data8[i1];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.value === undefined){const err13 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data9.name === undefined){const err14 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.name !== undefined){if(typeof data9.name !== "string"){const err15 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err16 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.condition !== undefined){if(!(validate17(data9.condition, {dataPath:dataPath+"/" + i0+"/choices/" + i1+"/condition",parentData:data9,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err17 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/" + i0+"/choices/" + i1)) && (err18.keyword in emErrors0)) && (err18.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(40)))){emErrors0[err18.keyword].push(err18);err18.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.constraints !== undefined){let data13 = data0.constraints;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.notEmpty !== undefined){if(typeof data13.notEmpty !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.minLength !== undefined){if(!(typeof data13.minLength == "number")){const err23 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data13.maxLength !== undefined){if(!(typeof data13.maxLength == "number")){const err24 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data13.pattern !== undefined){let data17 = data13.pattern;const _errs39 = errors;let valid13 = false;let passing0 = null;const _errs40 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){if(typeof data17.value !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data17.message !== undefined){if(typeof data17.message !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid1 = _errs40 === errors;if(_valid1){valid13 = true;passing0 = 0;}const _errs46 = errors;if(typeof data17 !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid1 = _errs46 === errors;if(_valid1 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid1){valid13 = true;passing0 = 1;}}if(!valid13){const err29 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}}}else {const err30 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err31 = {keyword:"type",dataPath:dataPath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data0.condition !== undefined){let data21 = data0.condition;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err32 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const _errs52 = errors;let valid15 = false;let passing1 = null;const _errs53 = errors;const _errs56 = errors;let valid17 = false;let passing2 = null;const _errs57 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.equals === undefined){const err33 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data21.equals !== undefined){let data22 = data21.equals;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err34 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid3 = _errs57 === errors;if(_valid3){valid17 = true;passing2 = 0;}const _errs60 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.oneOf === undefined){const err35 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data21.oneOf !== undefined){let data23 = data21.oneOf;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if((typeof data24 !== "string") && (!(typeof data24 == "number"))){const err36 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid3 = _errs60 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 1];}else {if(_valid3){valid17 = true;passing2 = 1;}}if(!valid17){const err38 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.property === undefined){const err39 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data21.type !== undefined){if(!func0(data21.type, "simple")){const err40 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data21.property !== undefined){if(typeof data21.property !== "string"){const err41 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err43 of vErrors){if((((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && (err43.dataPath === dataPath+"/" + i0+"/condition")) && (err43.keyword in emErrors1)) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err43.schemaPath.slice(81)))){emPropParams0 = obj0[err43.keyword];emParamsErrors0 = emErrors1[err43.keyword][err43.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err43);err43.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err44 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}const emErrs3 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs3.push(err45);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid2 = _errs53 === errors;if(_valid2){valid15 = true;passing1 = 0;}const _errs68 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.allMatch === undefined){const err46 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data21.allMatch !== undefined){let data27 = data21.allMatch;if(Array.isArray(data27)){if(data27.length < 1){const err47 = {keyword:"minItems",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}const len3 = data27.length;for(let i3=0; i3<len3; i3++){let data28 = data27[i3];const _errs74 = errors;let valid27 = false;let passing3 = null;const _errs75 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.equals === undefined){const err48 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(data28.equals !== undefined){let data29 = data28.equals;if(((typeof data29 !== "string") && (!(typeof data29 == "number"))) && (typeof data29 !== "boolean")){const err49 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}var _valid4 = _errs75 === errors;if(_valid4){valid27 = true;passing3 = 0;}const _errs78 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.oneOf === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data28.oneOf !== undefined){let data30 = data28.oneOf;if(Array.isArray(data30)){const len4 = data30.length;for(let i4=0; i4<len4; i4++){let data31 = data30[i4];if((typeof data31 !== "string") && (!(typeof data31 == "number"))){const err51 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf/" + i4,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}else {const err52 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var _valid4 = _errs78 === errors;if(_valid4 && valid27){valid27 = false;passing3 = [passing3, 1];}else {if(_valid4){valid27 = true;passing3 = 1;}}if(!valid27){const err53 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}}if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.property === undefined){const err54 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data28.type !== undefined){if(!func0(data28.type, "simple")){const err55 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data28.property !== undefined){if(typeof data28.property !== "string"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err58 of vErrors){if((((((err58.keyword !== "errorMessage") && (!err58.emUsed)) && (err58.dataPath === dataPath+"/" + i0+"/condition/allMatch/" + i3)) && (err58.keyword in emErrors2)) && (err58.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err58.schemaPath.slice(81)))){emPropParams1 = obj0[err58.keyword];emParamsErrors1 = emErrors2[err58.keyword][err58.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err58);err58.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err59 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}const emErrs4 = [];for(const err60 of vErrors){if(!err60.emUsed){emErrs4.push(err60);}}vErrors = emErrs4;errors = emErrs4.length;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}var _valid2 = _errs68 === errors;if(_valid2 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid2){valid15 = true;passing1 = 1;}}if(!valid15){const err62 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}}}else {const err63 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}else {const err64 = {keyword:"type",dataPath,schemaPath:"#/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data34 = data[i5];const _errs91 = errors;let valid37 = true;const _errs92 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {if(data34.binding !== undefined){let data35 = data34.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {if(data35.type !== undefined){if(!func0(data35.type, "property")){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}}}}var _valid5 = _errs92 === errors;errors = _errs91;if(vErrors !== null){if(_errs91){vErrors.length = _errs91;}else {vErrors = null;}}if(_valid5){const _errs95 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){let data37 = data34.type;if(!(((((data37 === "String") || (data37 === "Text")) || (data37 === "Hidden")) || (data37 === "Dropdown")) || (data37 === "Boolean"))){const err68 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(errors > 0){const emErrs5 = [];for(const err69 of vErrors){if(((((err69.keyword !== "errorMessage") && (!err69.emUsed)) && ((err69.dataPath === dataPath+"/" + i5+"/type") || ((err69.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err69.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err69.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err69.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs5.push(err69);err69.emUsed = true;}}if(emErrs5.length){const err70 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs5},message:"invalid property type " + JSON.stringify(data37) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const emErrs6 = [];for(const err71 of vErrors){if(!err71.emUsed){emErrs6.push(err71);}}vErrors = emErrs6;errors = emErrs6.length;}}}var _valid5 = _errs95 === errors;valid37 = _valid5;}if(!valid37){const err72 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}const _errs98 = errors;let valid41 = true;const _errs99 = 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 data38 = data34.binding;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if((data38.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data38.type !== undefined){let data39 = data38.type;if(!((((((((data39 === "zeebe:input") || (data39 === "zeebe:output")) || (data39 === "zeebe:property")) || (data39 === "zeebe:taskHeader")) || (data39 === "zeebe:taskDefinition:type")) || (data39 === "bpmn:Message#property")) || (data39 === "bpmn:Message#zeebe:subscription#property")) || (data39 === "zeebe:taskDefinition"))){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var _valid6 = _errs99 === errors;errors = _errs98;if(vErrors !== null){if(_errs98){vErrors.length = _errs98;}else {vErrors = null;}}if(_valid6){const _errs102 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){let data40 = data34.type;if(!((((data40 === "String") || (data40 === "Text")) || (data40 === "Hidden")) || (data40 === "Dropdown"))){const err76 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(errors > 0){const emErrs7 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.dataPath === dataPath+"/" + i5+"/type") || ((err77.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err77.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err77.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err77.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs7.push(err77);err77.emUsed = true;}}if(emErrs7.length){const err78 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data40) + " for binding type " + JSON.stringify(data34 && data34.binding && data34.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs8 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs8.push(err79);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid6 = _errs102 === errors;valid41 = _valid6;}if(!valid41){const err80 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const _errs105 = errors;let valid45 = true;const _errs106 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.optional === undefined) && ("optional")){const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data34.optional !== undefined){if(!func0(data34.optional, true)){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}}}var _valid7 = _errs106 === errors;errors = _errs105;if(vErrors !== null){if(_errs105){vErrors.length = _errs105;}else {vErrors = null;}}if(_valid7){const _errs108 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.binding !== undefined){let data42 = data34.binding;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err83 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(data42.type !== undefined){let data43 = data42.type;if(!((((data43 === "zeebe:input") || (data43 === "zeebe:output")) || (data43 === "zeebe:property")) || (data43 === "zeebe:taskHeader"))){const err84 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(errors > 0){const emErrs9 = [];for(const err85 of vErrors){if(((((err85.keyword !== "errorMessage") && (!err85.emUsed)) && ((err85.dataPath === dataPath+"/" + i5+"/binding/type") || ((err85.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err85.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err85.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err85.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs9.push(err85);err85.emUsed = true;}}if(emErrs9.length){const err86 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs9},message:"optional is not supported for binding type " + JSON.stringify(data43) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const emErrs10 = [];for(const err87 of vErrors){if(!err87.emUsed){emErrs10.push(err87);}}vErrors = emErrs10;errors = emErrs10.length;}}}}}var _valid7 = _errs108 === errors;valid45 = _valid7;}if(!valid45){const err88 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const _errs112 = errors;let valid49 = true;const _errs113 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.optional === undefined) && ("optional")){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {if(data34.optional !== undefined){if(!func0(data34.optional, true)){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}var _valid8 = _errs113 === errors;errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}if(_valid8){const _errs115 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.constraints !== undefined){let data45 = data34.constraints;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.notEmpty === undefined){const err91 = {keyword:"required",dataPath:dataPath+"/" + i5+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data45.notEmpty !== undefined){if(!func0(data45.notEmpty, false)){const err92 = {keyword:"const",dataPath:dataPath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrs11 = [];for(const err93 of vErrors){if(((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && ((err93.dataPath === dataPath+"/" + i5+"/constraints/notEmpty") || ((err93.dataPath.indexOf(dataPath+"/" + i5+"/constraints/notEmpty") === 0) && (err93.dataPath[dataPath+"/" + i5+"/constraints/notEmpty".length] === "/")))) && (err93.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err93.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs11.push(err93);err93.emUsed = true;}}if(emErrs11.length){const err94 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs11},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const emErrs12 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs12.push(err95);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid8 = _errs115 === errors;valid49 = _valid8;}if(!valid49){const err96 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const _errs119 = errors;let valid53 = true;const _errs120 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.feel === undefined) && ("feel")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data34.feel !== undefined){const _errs122 = errors;const _errs123 = errors;if(!func0(data34.feel, schema18.allOf[1].items.allOf[4].if.properties.feel.not.const)){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}var valid55 = _errs123 === errors;if(!valid55){errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}}else {const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}}var _valid9 = _errs120 === errors;errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}if(_valid9){const _errs124 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type === undefined){const err100 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/then/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(data34.type !== undefined){let data48 = data34.type;if(!((data48 === "String") || (data48 === "Text"))){const err101 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(errors > 0){const emErrs13 = [];for(const err102 of vErrors){if(((((err102.keyword !== "errorMessage") && (!err102.emUsed)) && ((err102.dataPath === dataPath+"/" + i5+"/type") || ((err102.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err102.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err102.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err102.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs13.push(err102);err102.emUsed = true;}}if(emErrs13.length){const err103 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs13},message:"feel is only supported for \"String\" and \"Text\" type"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}const emErrs14 = [];for(const err104 of vErrors){if(!err104.emUsed){emErrs14.push(err104);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid9 = _errs124 === errors;valid53 = _valid9;}if(!valid53){const err105 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const _errs127 = errors;let valid57 = true;const _errs128 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.language === undefined) && ("language")){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data34.language !== undefined){const _errs130 = errors;const _errs131 = errors;if(!func0(data34.language, schema18.allOf[1].items.allOf[5].if.properties.language.not.const)){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var valid59 = _errs131 === errors;if(!valid59){errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}}else {const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}var _valid10 = _errs128 === errors;errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}if(_valid10){const _errs132 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){if(!(data34.type === "Text")){const err109 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[5].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(errors > 0){const emErrs15 = [];for(const err110 of vErrors){if(((((err110.keyword !== "errorMessage") && (!err110.emUsed)) && ((err110.dataPath === dataPath+"/" + i5+"/type") || ((err110.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err110.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err110.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err110.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs15.push(err110);err110.emUsed = true;}}if(emErrs15.length){const err111 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",params:{errors: emErrs15},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const emErrs16 = [];for(const err112 of vErrors){if(!err112.emUsed){emErrs16.push(err112);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid10 = _errs132 === errors;valid57 = _valid10;}if(!valid57){const err113 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/5/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const _errs135 = errors;let valid61 = true;const _errs136 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.value === undefined) && ("value")){const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}var _valid11 = _errs136 === errors;errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}if(_valid11){const _errs137 = errors;const _errs138 = errors;const _errs139 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.generatedValue === undefined) && ("generatedValue")){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}var valid62 = _errs139 === errors;if(!valid62){errors = _errs138;if(vErrors !== null){if(_errs138){vErrors.length = _errs138;}else {vErrors = null;}}}else {const err116 = {keyword:"not",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/then/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var _valid11 = _errs137 === errors;valid61 = _valid11;}if(!valid61){const err117 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs141 = errors;let valid63 = true;const _errs142 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data34.type !== undefined){let data51 = data34.type;if(!((data51 === "Boolean") || (data51 === "Dropdown"))){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}var _valid12 = _errs142 === errors;errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}if(_valid12){const _errs144 = errors;const _errs145 = errors;const _errs146 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.generatedValue === undefined) && ("generatedValue")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}var valid65 = _errs146 === errors;if(!valid65){errors = _errs145;if(vErrors !== null){if(_errs145){vErrors.length = _errs145;}else {vErrors = null;}}}else {const err121 = {keyword:"not",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/then/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid12 = _errs144 === errors;valid63 = _valid12;}if(!valid63){const err122 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.binding === undefined){const err123 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data34.binding !== undefined){let data52 = data34.binding;const _errs150 = errors;let valid68 = true;const _errs151 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {if(data52.type !== undefined){let data53 = data52.type;if(!(((((data53 === "property") || (data53 === "zeebe:property")) || (data53 === "zeebe:input")) || (data53 === "bpmn:Message#property")) || (data53 === "bpmn:Message#zeebe:subscription#property"))){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}}var _valid13 = _errs151 === errors;errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}if(_valid13){const _errs153 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.name === undefined){const err126 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err127 of vErrors){if(((((err127.keyword !== "errorMessage") && (!err127.emUsed)) && ((err127.dataPath === dataPath+"/" + i5+"/binding") || ((err127.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err127.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err127.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err127.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs17.push(err127);err127.emUsed = true;}}if(emErrs17.length){const err128 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data52 && data52.type) + " requires name"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}const emErrs18 = [];for(const err129 of vErrors){if(!err129.emUsed){emErrs18.push(err129);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid13 = _errs153 === errors;valid68 = _valid13;}if(!valid68){const err130 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const _errs155 = errors;let valid70 = true;const _errs156 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {if(data52.type !== undefined){if(!func0(data52.type, "zeebe:output")){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}}}var _valid14 = _errs156 === errors;errors = _errs155;if(vErrors !== null){if(_errs155){vErrors.length = _errs155;}else {vErrors = null;}}if(_valid14){const _errs158 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.source === undefined){const err133 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err134 of vErrors){if(((((err134.keyword !== "errorMessage") && (!err134.emUsed)) && ((err134.dataPath === dataPath+"/" + i5+"/binding") || ((err134.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err134.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err134.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err134.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs19.push(err134);err134.emUsed = true;}}if(emErrs19.length){const err135 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data52 && data52.type) + " requires source"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}const emErrs20 = [];for(const err136 of vErrors){if(!err136.emUsed){emErrs20.push(err136);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid14 = _errs158 === errors;valid70 = _valid14;}if(!valid70){const err137 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}const _errs160 = errors;let valid72 = true;const _errs161 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {if(data52.type !== undefined){if(!func0(data52.type, "zeebe:taskHeader")){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}}var _valid15 = _errs161 === errors;errors = _errs160;if(vErrors !== null){if(_errs160){vErrors.length = _errs160;}else {vErrors = null;}}if(_valid15){const _errs163 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.key === undefined){const err140 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err141 of vErrors){if(((((err141.keyword !== "errorMessage") && (!err141.emUsed)) && ((err141.dataPath === dataPath+"/" + i5+"/binding") || ((err141.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err141.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err141.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err141.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs21.push(err141);err141.emUsed = true;}}if(emErrs21.length){const err142 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data52 && data52.type) + " requires key"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}const emErrs22 = [];for(const err143 of vErrors){if(!err143.emUsed){emErrs22.push(err143);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid15 = _errs163 === errors;valid72 = _valid15;}if(!valid72){const err144 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const _errs165 = errors;let valid74 = true;const _errs166 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data52.type !== undefined){if(!func0(data52.type, "zeebe:taskDefinition")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}}var _valid16 = _errs166 === errors;errors = _errs165;if(vErrors !== null){if(_errs165){vErrors.length = _errs165;}else {vErrors = null;}}if(_valid16){const _errs168 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.property === undefined){const err147 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if(data52.property !== undefined){let data57 = data52.property;if(!((data57 === "type") || (data57 === "retries"))){const err148 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}var _valid16 = _errs168 === errors;valid74 = _valid16;}if(!valid74){const err149 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.type === undefined){const err150 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data52.type !== undefined){let data58 = data52.type;if(typeof data58 !== "string"){const err151 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(!(((((((((data58 === "property") || (data58 === "zeebe:taskDefinition:type")) || (data58 === "zeebe:input")) || (data58 === "zeebe:output")) || (data58 === "zeebe:property")) || (data58 === "zeebe:taskHeader")) || (data58 === "bpmn:Message#property")) || (data58 === "bpmn:Message#zeebe:subscription#property")) || (data58 === "zeebe:taskDefinition"))){const err152 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(errors > 0){const emErrs23 = [];for(const err153 of vErrors){if(((((err153.keyword !== "errorMessage") && (!err153.emUsed)) && ((err153.dataPath === dataPath+"/" + i5+"/binding/type") || ((err153.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err153.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err153.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err153.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs23.push(err153);err153.emUsed = true;}}if(emErrs23.length){const err154 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs23},message:"invalid property.binding type " + JSON.stringify(data58) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const emErrs24 = [];for(const err155 of vErrors){if(!err155.emUsed){emErrs24.push(err155);}}vErrors = emErrs24;errors = emErrs24.length;}}if(data52.name !== undefined){if(typeof data52.name !== "string"){const err156 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}if(data52.source !== undefined){if(typeof data52.source !== "string"){const err157 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data52.key !== undefined){if(typeof data52.key !== "string"){const err158 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(data52.property !== undefined){if(typeof data52.property !== "string"){const err159 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}}else {const err160 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data34.optional !== undefined){if(typeof data34.optional !== "boolean"){const err161 = {keyword:"type",dataPath:dataPath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data34.feel !== undefined){let data64 = data34.feel;if(typeof data64 !== "string"){const err162 = {keyword:"type",dataPath:dataPath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(!(((data64 === null) || (data64 === "optional")) || (data64 === "required"))){const err163 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data34.language !== undefined){if(typeof data34.language !== "string"){const err164 = {keyword:"type",dataPath:dataPath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data34.generatedValue !== undefined){let data66 = data34.generatedValue;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.type === undefined){const err165 = {keyword:"required",dataPath:dataPath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data66.type !== undefined){if(!func0(data66.type, "uuid")){const err166 = {keyword:"const",dataPath:dataPath+"/" + i5+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",params:{allowedValue: "uuid"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}else {const err167 = {keyword:"type",dataPath:dataPath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data34.tooltip !== undefined){if(typeof data34.tooltip !== "string"){const err168 = {keyword:"type",dataPath:dataPath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}}else {const err169 = {keyword:"type",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}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 err170 of vErrors){if((((((err170.keyword !== "errorMessage") && (!err170.emUsed)) && (err170.dataPath === dataPath+"/" + i5)) && (err170.keyword in emErrors3)) && (err170.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err170.schemaPath.slice(15)))){emPropParams2 = obj0[err170.keyword];emParamsErrors2 = emErrors3[err170.keyword][err170.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err170);err170.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 err171 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}const emErrs25 = [];for(const err172 of vErrors){if(!err172.emUsed){emErrs25.push(err172);}}vErrors = emErrs25;errors = emErrs25.length;}}}else {const err173 = {keyword:"type",dataPath,schemaPath:"#/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}validate16.errors = vErrors;return errors === 0;}function validate15(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "integer"},message:"should be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {keyword:"type",dataPath:dataPath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"should be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0.test(data7)){const err11 = {keyword:"pattern",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {keyword:"type",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1.test(data9)){const err13 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.dataPath === dataPath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1.test(data11)){const err20 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {keyword:"errorMessage",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.dataPath === dataPath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0.test(data18)){const err40 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.dataPath === dataPath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs5 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs5.push(err47);}}vErrors = emErrs5;errors = emErrs5.length;}const _errs42 = errors;let valid13 = true;const _errs43 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){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){let data21 = data20.binding;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data21.type !== undefined){let data22 = data21.type;if(!((data22 === "bpmn:Message#property") || (data22 === "bpmn:Message#zeebe:subscription#property"))){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}}}}var valid15 = _errs46 === errors;if(valid15){break;}}if(!valid15){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}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){let data23 = data.elementType;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.eventDefinition === undefined){const err51 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",params:{missingProperty: "eventDefinition"},message:"should have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(data23.eventDefinition !== undefined){if(!func0(data23.eventDefinition, "bpmn:MessageEventDefinition")){const err52 = {keyword:"const",dataPath:dataPath+"/elementType/eventDefinition",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/eventDefinition/const",params:{allowedValue: "bpmn:MessageEventDefinition"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}}}var _valid0 = _errs49 === errors;valid13 = _valid0;}if(!valid13){const err53 = {keyword:"if",dataPath,schemaPath:"#/allOf/1/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {dataPath:dataPath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.icon !== undefined){let data26 = data.icon;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.contents === undefined){const err54 = {keyword:"required",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/required",params:{missingProperty: "contents"},message:"should have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data26.contents !== undefined){let data27 = data26.contents;if(typeof data27 === "string"){if(!pattern4.test(data27)){const err55 = {keyword:"pattern",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",params:{pattern: "^(https?|data):.*"},message:"should match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}else {const err56 = {keyword:"type",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err57 of vErrors){if((((((err57.keyword !== "errorMessage") && (!err57.emUsed)) && (err57.dataPath === dataPath+"/icon/contents")) && (err57.keyword in emErrors6)) && (err57.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err57.schemaPath.slice(37)))){emErrors6[err57.keyword].push(err57);err57.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err58 = {keyword:"errorMessage",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}const emErrs6 = [];for(const err59 of vErrors){if(!err59.emUsed){emErrs6.push(err59);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err61 of vErrors){if((((((err61.keyword !== "errorMessage") && (!err61.emUsed)) && (err61.dataPath === dataPath+"/icon")) && (err61.keyword in emErrors7)) && (err61.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err61.schemaPath.slice(17)))){emPropParams3 = obj0[err61.keyword];emParamsErrors3 = emErrors7[err61.keyword][err61.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err61);err61.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 err62 = {keyword:"errorMessage",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}const emErrs7 = [];for(const err63 of vErrors){if(!err63.emUsed){emErrs7.push(err63);}}vErrors = emErrs7;errors = emErrs7.length;}}if(data.elementType !== undefined){let data28 = data.elementType;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.eventDefinition !== undefined){if(!(data28.eventDefinition === "bpmn:MessageEventDefinition")){const err64 = {keyword:"enum",dataPath:dataPath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}const _errs62 = errors;let valid25 = true;const _errs63 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if((data28.eventDefinition === undefined) && ("eventDefinition")){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {if(data28.eventDefinition !== undefined){if(!(data28.eventDefinition === "bpmn:MessageEventDefinition")){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}}var _valid1 = _errs63 === errors;errors = _errs62;if(vErrors !== null){if(_errs62){vErrors.length = _errs62;}else {vErrors = null;}}if(_valid1){const _errs65 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.value === undefined){const err67 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(data28.value !== undefined){let data31 = data28.value;if(!(((((data31 === "bpmn:StartEvent") || (data31 === "bpmn:IntermediateCatchEvent")) || (data31 === "bpmn:IntermediateThrowEvent")) || (data31 === "bpmn:BoundaryEvent")) || (data31 === "bpmn:EndEvent"))){const err68 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var _valid1 = _errs65 === errors;valid25 = _valid1;}if(!valid25){const err69 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data.groups !== undefined){let data32 = data.groups;if(Array.isArray(data32)){const len3 = data32.length;for(let i3=0; i3<len3; i3++){let data33 = data32[i3];if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.tooltip !== undefined){if(typeof data33.tooltip !== "string"){const err70 = {keyword:"type",dataPath:dataPath+"/groups/" + i3+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data33.openByDefault !== undefined){if(typeof data33.openByDefault !== "boolean"){const err71 = {keyword:"type",dataPath:dataPath+"/groups/" + i3+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}}}}}else {const err72 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
|
679
|
+
|
680
|
+
function getZeebeSchemaPackage() {
|
681
|
+
return name;
|
682
|
+
}
|
683
|
+
|
684
|
+
function getZeebeSchemaVersion() {
|
685
|
+
return version;
|
686
|
+
}
|
687
|
+
|
688
|
+
/**
|
689
|
+
* Validate a single object.
|
690
|
+
*
|
691
|
+
* @param {Object} object
|
692
|
+
* @return {Object} single object validation result
|
693
|
+
*/
|
694
|
+
function validateZeebe(object) {
|
695
|
+
return _validate(object, standaloneZeebeValidator.exports);
|
696
|
+
}
|
697
|
+
|
698
|
+
/**
|
699
|
+
* Validate a list of objects
|
700
|
+
*
|
701
|
+
* @param {Object[]} objects
|
702
|
+
* @return {Object} list validation result
|
703
|
+
*/
|
704
|
+
function validateAllZeebe(objects) {
|
705
|
+
return _validateAll(objects, validateZeebe);
|
706
|
+
}
|
707
|
+
|
708
|
+
exports.getSchemaPackage = getSchemaPackage;
|
709
|
+
exports.getSchemaVersion = getSchemaVersion;
|
710
|
+
exports.getZeebeSchemaPackage = getZeebeSchemaPackage;
|
711
|
+
exports.getZeebeSchemaVersion = getZeebeSchemaVersion;
|
712
|
+
exports.validate = validate;
|
713
|
+
exports.validateAll = validateAll;
|
714
|
+
exports.validateAllZeebe = validateAllZeebe;
|
715
|
+
exports.validateZeebe = validateZeebe;
|