@bpmn-io/element-templates-validator 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { forEach, filter } from 'min-dash';
2
2
 
3
3
  var name$1 = "@camunda/element-templates-json-schema";
4
- var version$1 = "0.9.0";
4
+ var version$1 = "0.9.1";
5
5
 
6
6
  // do not edit .js files directly - edit src/index.jst
7
7
 
@@ -52,7 +52,7 @@ var fastDeepEqual = function equal(a, b) {
52
52
  // https://github.com/ajv-validator/ajv/issues/889
53
53
  var equal = fastDeepEqual;
54
54
 
55
- var standaloneValidator = validate14$1;var _default$1 = 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":"number","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."},"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]+$","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}]}}},"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"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"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"}}}},"documentationRef":{"$id":"#/documentaionRef","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"],"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}},"allOf":[{"if":{"properties":{"type":{"enum":["bpmn:Error"]}},"required":["type"]},"then":{"required":["id"],"errorMessage":"invalid scope ${0/type}, missing id"}}]}}}};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":{"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."}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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\""}}}},{"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"],"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 }","description":"The type of a property binding."},"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)."}}}}}}]};const schema19 = {"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":{"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."}},"required":["value","name"],"errorMessage":"{ 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."}}}};const schema20 = {"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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\""}}}},{"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"],"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 }","description":"The type of a property binding."},"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)."}}}}}};const pattern0$1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern2$1 = new RegExp("^(https|http)://.*", "u");const obj0$1 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};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){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};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.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0$1.test(data6)){const err9 = {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 = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {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 = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.elementType !== undefined){let data7 = data.elementType;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.value !== undefined){let data8 = data7.value;if(typeof data8 === "string"){if(!pattern0$1.test(data8)){const err15 = {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 = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {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 = [err16];}else {vErrors.push(err16);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err17 of vErrors){if((((((err17.keyword !== "errorMessage") && (!err17.emUsed)) && (err17.dataPath === dataPath+"/elementType/value")) && (err17.keyword in emErrors1)) && (err17.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err17.schemaPath.slice(49)))){emErrors1[err17.keyword].push(err17);err17.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err18 = {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 = [err18];}else {vErrors.push(err18);}errors++;}}const emErrs1 = [];for(const err19 of vErrors){if(!err19.emUsed){emErrs1.push(err19);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err20 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.metadata !== undefined){let data9 = data.metadata;if(!(data9 && typeof data9 == "object" && !Array.isArray(data9))){const err21 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.groups !== undefined){let data11 = data.groups;if(Array.isArray(data11)){const len1 = data11.length;for(let i1=0; i1<len1; i1++){let data12 = data11[i1];if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.id === undefined){const err23 = {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 = [err23];}else {vErrors.push(err23);}errors++;}if(data12.label === undefined){const err24 = {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 = [err24];}else {vErrors.push(err24);}errors++;}if(data12.id !== undefined){if(typeof data12.id !== "string"){const err25 = {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 = [err25];}else {vErrors.push(err25);}errors++;}}if(data12.label !== undefined){if(typeof data12.label !== "string"){const err26 = {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 = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(errors > 0){const emErrors2 = {"required":{"id":[],"label":[]}};const templates2 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err28 of vErrors){if((((((err28.keyword !== "errorMessage") && (!err28.emUsed)) && (err28.dataPath === dataPath+"/groups/" + i1)) && (err28.keyword in emErrors2)) && (err28.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err28.schemaPath.slice(33)))){emPropParams0 = obj0$1[err28.keyword];emParamsErrors0 = emErrors2[err28.keyword][err28.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err28);err28.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 err29 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17$1.allOf[0].properties.groups.items.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}const emErrs2 = [];for(const err30 of vErrors){if(!err30.emUsed){emErrs2.push(err30);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err31 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.documentationRef !== undefined){let data15 = data.documentationRef;if(typeof data15 === "string"){if(!pattern2$1.test(data15)){const err32 = {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 = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(errors > 0){const emErrors3 = {"pattern":[]};const templates3 = {};for(const err34 of vErrors){if((((((err34.keyword !== "errorMessage") && (!err34.emUsed)) && (err34.dataPath === dataPath+"/documentationRef")) && (err34.keyword in emErrors3)) && (err34.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err34.schemaPath.slice(37)))){emErrors3[err34.keyword].push(err34);err34.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err35 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema17$1.allOf[0].properties.documentationRef.errorMessage[key3]};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}const emErrs3 = [];for(const err36 of vErrors){if(!err36.emUsed){emErrs3.push(err36);}}vErrors = emErrs3;errors = emErrs3.length;}}}if(errors > 0){const emErrors4 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates4 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err37 of vErrors){if((((((err37.keyword !== "errorMessage") && (!err37.emUsed)) && (err37.dataPath === dataPath)) && (err37.keyword in emErrors4)) && (err37.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err37.schemaPath.slice(9)))){emPropParams1 = obj0$1[err37.keyword];emParamsErrors1 = emErrors4[err37.keyword][err37.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err37);err37.emUsed = true;}}}for(const key4 in emErrors4){for(const keyProp1 in emErrors4[key4]){emParamsErrors1 = emErrors4[key4][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates4[key4] && templates4[key4][keyProp1];const err38 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17$1.allOf[0].errorMessage[key4][keyProp1]};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}const emErrs4 = [];for(const err39 of vErrors){if(!err39.emUsed){emErrs4.push(err39);}}vErrors = emErrs4;errors = emErrs4.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data16 = data.properties;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];const _errs41 = errors;let valid18 = true;const _errs42 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if((data17.type === undefined) && ("type")){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {if(data17.type !== undefined){if(!equal(data17.type, "Dropdown")){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}}var _valid0 = _errs42 === errors;errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}if(_valid0){const _errs44 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.choices === undefined){const err42 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(errors > 0){const emErrs5 = [];for(const err43 of vErrors){if(((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && ((err43.dataPath === dataPath+"/properties/" + i2) || ((err43.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err43.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err43.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs5.push(err43);err43.emUsed = true;}}if(emErrs5.length){const err44 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs5},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}const emErrs6 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs6.push(err45);}}vErrors = emErrs6;errors = emErrs6.length;}var _valid0 = _errs44 === errors;valid18 = _valid0;}if(!valid18){const err46 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){let data19 = data17.value;if((typeof data19 !== "string") && (typeof data19 !== "boolean")){const err47 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/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 = [err47];}else {vErrors.push(err47);}errors++;}}if(data17.description !== undefined){if(typeof data17.description !== "string"){const err48 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err49 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data17.type !== undefined){if(typeof data17.type !== "string"){const err50 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data17.editable !== undefined){if(typeof data17.editable !== "boolean"){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data17.choices !== undefined){let data24 = data17.choices;if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err52 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data25.name === undefined){const err53 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data25.name !== undefined){if(typeof data25.name !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data25.value !== undefined){if(typeof data25.value !== "string"){const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(errors > 0){const emErrs7 = [];for(const err57 of vErrors){if(((((err57.keyword !== "errorMessage") && (!err57.emUsed)) && ((err57.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err57.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err57.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err57.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err57.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs7.push(err57);err57.emUsed = true;}}if(emErrs7.length){const err58 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs7},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}const emErrs8 = [];for(const err59 of vErrors){if(!err59.emUsed){emErrs8.push(err59);}}vErrors = emErrs8;errors = emErrs8.length;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data17.constraints !== undefined){let data28 = data17.constraints;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.notEmpty !== undefined){if(typeof data28.notEmpty !== "boolean"){const err61 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data28.minLength !== undefined){if(!(typeof data28.minLength == "number")){const err62 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data28.maxLength !== undefined){if(!(typeof data28.maxLength == "number")){const err63 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data28.pattern !== undefined){let data32 = data28.pattern;const _errs72 = errors;let valid26 = false;let passing0 = null;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){if(typeof data32.value !== "string"){const err64 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data32.message !== undefined){if(typeof data32.message !== "string"){const err65 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}else {const err66 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid1 = _errs73 === errors;if(_valid1){valid26 = true;passing0 = 0;}const _errs79 = errors;if(typeof data32 !== "string"){const err67 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid1 = _errs79 === errors;if(_valid1 && valid26){valid26 = false;passing0 = [passing0, 1];}else {if(_valid1){valid26 = true;passing0 = 1;}}if(!valid26){const err68 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}}}else {const err69 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data17.group !== undefined){if(typeof data17.group !== "string"){const err70 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(Array.isArray(data16)){const len4 = data16.length;for(let i4=0; i4<len4; i4++){let data36 = data16[i4];const _errs88 = errors;let valid31 = true;const _errs89 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data37.type !== undefined){if(!equal(data37.type, "property")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var _valid2 = _errs89 === errors;errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}if(_valid2){const _errs92 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err76 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err76];}else {vErrors.push(err76);}errors++;}if(errors > 0){const emErrs9 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.dataPath === dataPath+"/properties/" + i4+"/type") || ((err77.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err77.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err77.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err77.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs9.push(err77);err77.emUsed = true;}}if(emErrs9.length){const err78 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs10 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs10.push(err79);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid2 = _errs92 === errors;valid31 = _valid2;}if(!valid31){const err80 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const _errs95 = errors;let valid35 = true;const _errs96 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {if(data40.type !== undefined){if(!equal(data40.type, "camunda:executionListener")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}}}}}var _valid3 = _errs96 === errors;errors = _errs95;if(vErrors !== null){if(_errs95){vErrors.length = _errs95;}else {vErrors = null;}}if(_valid3){const _errs99 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){if(!(data36.type === "Hidden")){const err84 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err84];}else {vErrors.push(err84);}errors++;}if(errors > 0){const emErrs11 = [];for(const err85 of vErrors){if(((((err85.keyword !== "errorMessage") && (!err85.emUsed)) && ((err85.dataPath === dataPath+"/properties/" + i4+"/type") || ((err85.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err85.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err85.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err85.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs11.push(err85);err85.emUsed = true;}}if(emErrs11.length){const err86 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data36 && data36.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const emErrs12 = [];for(const err87 of vErrors){if(!err87.emUsed){emErrs12.push(err87);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid3 = _errs99 === errors;valid35 = _valid3;}if(!valid35){const err88 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const _errs102 = errors;let valid39 = true;const _errs103 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {if(data36.binding !== undefined){let data43 = data36.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {if(data43.type !== undefined){let data44 = data43.type;if(!((((((data44 === "camunda:property") || (data44 === "camunda:outputParameter")) || (data44 === "camunda:in")) || (data44 === "camunda:in:businessKey")) || (data44 === "camunda:out")) || (data44 === "camunda:errorEventDefinition"))){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}}}}}}var _valid4 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid4){const _errs106 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data45 = data36.type;if(!(((data45 === "String") || (data45 === "Hidden")) || (data45 === "Dropdown"))){const err92 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrs13 = [];for(const err93 of vErrors){if(((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && ((err93.dataPath === dataPath+"/properties/" + i4+"/type") || ((err93.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err93.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err93.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err93.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs13.push(err93);err93.emUsed = true;}}if(emErrs13.length){const err94 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs13},message:"invalid property type " + JSON.stringify(data45) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const emErrs14 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs14.push(err95);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid4 = _errs106 === errors;valid39 = _valid4;}if(!valid39){const err96 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const _errs109 = errors;let valid43 = true;const _errs110 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data36.binding !== undefined){let data46 = data36.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}else {if(data46.type !== undefined){let data47 = data46.type;if(!((data47 === "camunda:inputParameter") || (data47 === "camunda:field"))){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}}}}}var _valid5 = _errs110 === errors;errors = _errs109;if(vErrors !== null){if(_errs109){vErrors.length = _errs109;}else {vErrors = null;}}if(_valid5){const _errs113 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data48 = data36.type;if(!((((data48 === "String") || (data48 === "Text")) || (data48 === "Hidden")) || (data48 === "Dropdown"))){const err100 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err100];}else {vErrors.push(err100);}errors++;}if(errors > 0){const emErrs15 = [];for(const err101 of vErrors){if(((((err101.keyword !== "errorMessage") && (!err101.emUsed)) && ((err101.dataPath === dataPath+"/properties/" + i4+"/type") || ((err101.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err101.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err101.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err101.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs15.push(err101);err101.emUsed = true;}}if(emErrs15.length){const err102 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs15},message:"invalid property type " + JSON.stringify(data48) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}const emErrs16 = [];for(const err103 of vErrors){if(!err103.emUsed){emErrs16.push(err103);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid5 = _errs113 === errors;valid43 = _valid5;}if(!valid43){const err104 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err105 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data36.binding !== undefined){let data49 = data36.binding;const _errs118 = errors;let valid49 = true;const _errs119 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data49.type !== undefined){let data50 = data49.type;if(!((((data50 === "property") || (data50 === "camunda:property")) || (data50 === "camunda:inputParameter")) || (data50 === "camunda:field"))){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}}var _valid6 = _errs119 === errors;errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}if(_valid6){const _errs121 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.name === undefined){const err108 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err108];}else {vErrors.push(err108);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err109 of vErrors){if(((((err109.keyword !== "errorMessage") && (!err109.emUsed)) && ((err109.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err109.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err109.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err109.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err109.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs17.push(err109);err109.emUsed = true;}}if(emErrs17.length){const err110 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires name"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const emErrs18 = [];for(const err111 of vErrors){if(!err111.emUsed){emErrs18.push(err111);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid6 = _errs121 === errors;valid49 = _valid6;}if(!valid49){const err112 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}const _errs123 = errors;let valid51 = true;const _errs124 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err113 = {};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:outputParameter")){const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}}}var _valid7 = _errs124 === errors;errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}if(_valid7){const _errs126 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.source === undefined){const err115 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err115];}else {vErrors.push(err115);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err116 of vErrors){if(((((err116.keyword !== "errorMessage") && (!err116.emUsed)) && ((err116.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err116.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err116.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err116.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err116.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs19.push(err116);err116.emUsed = true;}}if(emErrs19.length){const err117 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires source"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const emErrs20 = [];for(const err118 of vErrors){if(!err118.emUsed){emErrs20.push(err118);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid7 = _errs126 === errors;valid51 = _valid7;}if(!valid51){const err119 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}const _errs128 = errors;let valid53 = true;const _errs129 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:in")){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}}}var _valid8 = _errs129 === errors;errors = _errs128;if(vErrors !== null){if(_errs128){vErrors.length = _errs128;}else {vErrors = null;}}if(_valid8){const _errs131 = errors;const _errs132 = errors;let valid55 = false;const _errs133 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err122 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err122];}else {vErrors.push(err122);}errors++;}}var _valid9 = _errs133 === errors;valid55 = valid55 || _valid9;if(!valid55){const _errs134 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.target === undefined){const err123 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err123];}else {vErrors.push(err123);}errors++;}}var _valid9 = _errs134 === errors;valid55 = valid55 || _valid9;}if(!valid55){const err124 = {keyword:"anyOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err124];}else {vErrors.push(err124);}errors++;}else {errors = _errs132;if(vErrors !== null){if(_errs132){vErrors.length = _errs132;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err125 of vErrors){if(((((err125.keyword !== "errorMessage") && (!err125.emUsed)) && ((err125.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err125.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err125.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err125.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err125.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs21.push(err125);err125.emUsed = true;}}if(emErrs21.length){const err126 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const emErrs22 = [];for(const err127 of vErrors){if(!err127.emUsed){emErrs22.push(err127);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid8 = _errs131 === errors;valid53 = _valid8;}if(!valid53){const err128 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}const _errs136 = errors;let valid56 = true;const _errs137 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:out")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}}var _valid10 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid10){const _errs139 = errors;const _errs140 = errors;let valid58 = false;let passing1 = null;const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;const _errs144 = errors;let valid60 = false;const _errs145 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.source === undefined) && ("source")){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}var _valid12 = _errs145 === errors;valid60 = valid60 || _valid12;if(!valid60){const _errs146 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.sourceExpression === undefined) && ("sourceExpression")){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}var _valid12 = _errs146 === errors;valid60 = valid60 || _valid12;}if(!valid60){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}var valid59 = _errs143 === errors;if(!valid59){errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}}else {const err134 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err134];}else {vErrors.push(err134);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err135 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err135];}else {vErrors.push(err135);}errors++;}}var _valid11 = _errs141 === errors;if(_valid11){valid58 = true;passing1 = 0;}const _errs147 = errors;const _errs148 = errors;const _errs149 = errors;const _errs150 = errors;let valid62 = false;const _errs151 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.variables === undefined) && ("variables")){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid13 = _errs151 === errors;valid62 = valid62 || _valid13;if(!valid62){const _errs152 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.sourceExpression === undefined) && ("sourceExpression")){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}var _valid13 = _errs152 === errors;valid62 = valid62 || _valid13;}if(!valid62){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}var valid61 = _errs149 === errors;if(!valid61){errors = _errs148;if(vErrors !== null){if(_errs148){vErrors.length = _errs148;}else {vErrors = null;}}}else {const err139 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err139];}else {vErrors.push(err139);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.source === undefined){const err140 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err140];}else {vErrors.push(err140);}errors++;}}var _valid11 = _errs147 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 1];}else {if(_valid11){valid58 = true;passing1 = 1;}const _errs153 = errors;const _errs154 = errors;const _errs155 = errors;const _errs156 = errors;let valid64 = false;const _errs157 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.variables === undefined) && ("variables")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid14 = _errs157 === errors;valid64 = valid64 || _valid14;if(!valid64){const _errs158 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.source === undefined) && ("source")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var _valid14 = _errs158 === errors;valid64 = valid64 || _valid14;}if(!valid64){const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs156;if(vErrors !== null){if(_errs156){vErrors.length = _errs156;}else {vErrors = null;}}}var valid63 = _errs155 === errors;if(!valid63){errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}}else {const err144 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err144];}else {vErrors.push(err144);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.sourceExpression === undefined){const err145 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err145];}else {vErrors.push(err145);}errors++;}}var _valid11 = _errs153 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 2];}else {if(_valid11){valid58 = true;passing1 = 2;}const _errs159 = errors;const _errs160 = errors;const _errs161 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.source === undefined) && ("source")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}var valid65 = _errs161 === errors;if(!valid65){errors = _errs160;if(vErrors !== null){if(_errs160){vErrors.length = _errs160;}else {vErrors = null;}}}else {const err147 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err147];}else {vErrors.push(err147);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err148 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err148];}else {vErrors.push(err148);}errors++;}if(data49.sourceExpression === undefined){const err149 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err149];}else {vErrors.push(err149);}errors++;}}var _valid11 = _errs159 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 3];}else {if(_valid11){valid58 = true;passing1 = 3;}const _errs162 = errors;const _errs163 = errors;const _errs164 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.sourceExpression === undefined) && ("sourceExpression")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var valid66 = _errs164 === errors;if(!valid66){errors = _errs163;if(vErrors !== null){if(_errs163){vErrors.length = _errs163;}else {vErrors = null;}}}else {const err151 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err151];}else {vErrors.push(err151);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err152 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err152];}else {vErrors.push(err152);}errors++;}if(data49.source === undefined){const err153 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err153];}else {vErrors.push(err153);}errors++;}}var _valid11 = _errs162 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 4];}else {if(_valid11){valid58 = true;passing1 = 4;}}}}}if(!valid58){const err154 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err154];}else {vErrors.push(err154);}errors++;}else {errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}}if(errors > 0){const emErrs23 = [];for(const err155 of vErrors){if(((((err155.keyword !== "errorMessage") && (!err155.emUsed)) && ((err155.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err155.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err155.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err155.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err155.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs23.push(err155);err155.emUsed = true;}}if(emErrs23.length){const err156 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const emErrs24 = [];for(const err157 of vErrors){if(!err157.emUsed){emErrs24.push(err157);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid10 = _errs139 === errors;valid56 = _valid10;}if(!valid56){const err158 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}const _errs166 = errors;let valid67 = true;const _errs167 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:errorEventDefinition")){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}}var _valid15 = _errs167 === errors;errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}if(_valid15){const _errs169 = errors;const _errs170 = errors;let valid69 = false;let passing2 = null;const _errs171 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.errorRef === undefined){const err161 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err161];}else {vErrors.push(err161);}errors++;}}var _valid16 = _errs171 === errors;if(_valid16){valid69 = true;passing2 = 0;}if(!valid69){const err162 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err162];}else {vErrors.push(err162);}errors++;}else {errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}}if(errors > 0){const emErrs25 = [];for(const err163 of vErrors){if(((((err163.keyword !== "errorMessage") && (!err163.emUsed)) && ((err163.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err163.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err163.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err163.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err163.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs25.push(err163);err163.emUsed = true;}}if(emErrs25.length){const err164 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs25},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires errorRef"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}const emErrs26 = [];for(const err165 of vErrors){if(!err165.emUsed){emErrs26.push(err165);}}vErrors = emErrs26;errors = emErrs26.length;}var _valid15 = _errs169 === errors;valid67 = _valid15;}if(!valid67){const err166 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.type === undefined){const err167 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data49.type !== undefined){let data55 = data49.type;if(typeof data55 !== "string"){const err168 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}if(!((((((((((data55 === "property") || (data55 === "camunda:property")) || (data55 === "camunda:inputParameter")) || (data55 === "camunda:outputParameter")) || (data55 === "camunda:in")) || (data55 === "camunda:out")) || (data55 === "camunda:in:businessKey")) || (data55 === "camunda:executionListener")) || (data55 === "camunda:field")) || (data55 === "camunda:errorEventDefinition"))){const err169 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/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 = [err169];}else {vErrors.push(err169);}errors++;}if(errors > 0){const emErrs27 = [];for(const err170 of vErrors){if(((((err170.keyword !== "errorMessage") && (!err170.emUsed)) && ((err170.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err170.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err170.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err170.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err170.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs27.push(err170);err170.emUsed = true;}}if(emErrs27.length){const err171 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs27},message:"invalid property.binding type " + JSON.stringify(data55) + "; 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 = [err171];}else {vErrors.push(err171);}errors++;}const emErrs28 = [];for(const err172 of vErrors){if(!err172.emUsed){emErrs28.push(err172);}}vErrors = emErrs28;errors = emErrs28.length;}}if(data49.name !== undefined){if(typeof data49.name !== "string"){const err173 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data49.event !== undefined){if(typeof data49.event !== "string"){const err174 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data49.scriptFormat !== undefined){if(typeof data49.scriptFormat !== "string"){const err175 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data49.source !== undefined){if(typeof data49.source !== "string"){const err176 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data49.target !== undefined){if(typeof data49.target !== "string"){const err177 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data49.expression !== undefined){if(typeof data49.expression !== "boolean"){const err178 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data49.variables !== undefined){let data62 = data49.variables;if(typeof data62 !== "string"){const err179 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if(!((data62 === "all") || (data62 === "local"))){const err180 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/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 = [err180];}else {vErrors.push(err180);}errors++;}}if(data49.sourceExpression !== undefined){if(typeof data49.sourceExpression !== "string"){const err181 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}else {const err182 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(errors > 0){const emErrors5 = {"required":{"binding":[]}};const templates5 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err184 of vErrors){if((((((err184.keyword !== "errorMessage") && (!err184.emUsed)) && (err184.dataPath === dataPath+"/properties/" + i4)) && (err184.keyword in emErrors5)) && (err184.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err184.schemaPath.slice(38)))){emPropParams2 = obj0$1[err184.keyword];emParamsErrors2 = emErrors5[err184.keyword][err184.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err184);err184.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 err185 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18$1.allOf[1].items.errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}}const emErrs29 = [];for(const err186 of vErrors){if(!err186.emUsed){emErrs29.push(err186);}}vErrors = emErrs29;errors = emErrs29.length;}}}else {const err187 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}if(data.scopes !== undefined){let data64 = data.scopes;if(Array.isArray(data64)){const len5 = data64.length;for(let i5=0; i5<len5; i5++){let data65 = data64[i5];const _errs195 = errors;let valid75 = true;const _errs196 = errors;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if((data65.type === undefined) && ("type")){const err188 = {};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}else {if(data65.type !== undefined){if(!(data65.type === "bpmn:Error")){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}}}var _valid17 = _errs196 === errors;errors = _errs195;if(vErrors !== null){if(_errs195){vErrors.length = _errs195;}else {vErrors = null;}}if(_valid17){const _errs198 = errors;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.id === undefined){const err190 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/then/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(errors > 0){const emErrs30 = [];for(const err191 of vErrors){if(((((err191.keyword !== "errorMessage") && (!err191.emUsed)) && ((err191.dataPath === dataPath+"/scopes/" + i5) || ((err191.dataPath.indexOf(dataPath+"/scopes/" + i5) === 0) && (err191.dataPath[dataPath+"/scopes/" + i5.length] === "/")))) && (err191.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err191.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs30.push(err191);err191.emUsed = true;}}if(emErrs30.length){const err192 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",params:{errors: emErrs30},message:"invalid scope " + JSON.stringify(data65 && data65.type) + ", missing id"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}const emErrs31 = [];for(const err193 of vErrors){if(!err193.emUsed){emErrs31.push(err193);}}vErrors = emErrs31;errors = emErrs31.length;}var _valid17 = _errs198 === errors;valid75 = _valid17;}if(!valid75){const err194 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.type === undefined){const err195 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data65.properties === undefined){const err196 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data65.type !== undefined){let data67 = data65.type;if(typeof data67 !== "string"){const err197 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(!((data67 === "camunda:Connector") || (data67 === "bpmn:Error"))){const err198 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/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 = [err198];}else {vErrors.push(err198);}errors++;}if(errors > 0){const emErrs32 = [];for(const err199 of vErrors){if(((((err199.keyword !== "errorMessage") && (!err199.emUsed)) && ((err199.dataPath === dataPath+"/scopes/" + i5+"/type") || ((err199.dataPath.indexOf(dataPath+"/scopes/" + i5+"/type") === 0) && (err199.dataPath[dataPath+"/scopes/" + i5+"/type".length] === "/")))) && (err199.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err199.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs32.push(err199);err199.emUsed = true;}}if(emErrs32.length){const err200 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",params:{errors: emErrs32},message:"invalid scope type " + JSON.stringify(data67) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}const emErrs33 = [];for(const err201 of vErrors){if(!err201.emUsed){emErrs33.push(err201);}}vErrors = emErrs33;errors = emErrs33.length;}}if(data65.properties !== undefined){let data68 = data65.properties;if(Array.isArray(data68)){const len6 = data68.length;for(let i6=0; i6<len6; i6++){let data69 = data68[i6];const _errs208 = errors;let valid84 = true;const _errs209 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if((data69.type === undefined) && ("type")){const err202 = {};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}else {if(data69.type !== undefined){if(!equal(data69.type, "Dropdown")){const err203 = {};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}}}var _valid18 = _errs209 === errors;errors = _errs208;if(vErrors !== null){if(_errs208){vErrors.length = _errs208;}else {vErrors = null;}}if(_valid18){const _errs211 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.choices === undefined){const err204 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(errors > 0){const emErrs34 = [];for(const err205 of vErrors){if(((((err205.keyword !== "errorMessage") && (!err205.emUsed)) && ((err205.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i6) || ((err205.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i6) === 0) && (err205.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i6.length] === "/")))) && (err205.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err205.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs34.push(err205);err205.emUsed = true;}}if(emErrs34.length){const err206 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs34},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}const emErrs35 = [];for(const err207 of vErrors){if(!err207.emUsed){emErrs35.push(err207);}}vErrors = emErrs35;errors = emErrs35.length;}var _valid18 = _errs211 === errors;valid84 = _valid18;}if(!valid84){const err208 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.value !== undefined){let data71 = data69.value;if((typeof data71 !== "string") && (typeof data71 !== "boolean")){const err209 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema19.items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(data69.description !== undefined){if(typeof data69.description !== "string"){const err210 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(data69.label !== undefined){if(typeof data69.label !== "string"){const err211 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data69.type !== undefined){if(typeof data69.type !== "string"){const err212 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data69.editable !== undefined){if(typeof data69.editable !== "boolean"){const err213 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data69.choices !== undefined){let data76 = data69.choices;if(Array.isArray(data76)){const len7 = data76.length;for(let i7=0; i7<len7; i7++){let data77 = data76[i7];if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.value === undefined){const err214 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if(data77.name === undefined){const err215 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if(data77.name !== undefined){if(typeof data77.name !== "string"){const err216 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data77.value !== undefined){if(typeof data77.value !== "string"){const err217 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}}else {const err218 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}if(errors > 0){const emErrs36 = [];for(const err219 of vErrors){if(((((err219.keyword !== "errorMessage") && (!err219.emUsed)) && ((err219.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7) || ((err219.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7) === 0) && (err219.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7.length] === "/")))) && (err219.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err219.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs36.push(err219);err219.emUsed = true;}}if(emErrs36.length){const err220 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs36},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}const emErrs37 = [];for(const err221 of vErrors){if(!err221.emUsed){emErrs37.push(err221);}}vErrors = emErrs37;errors = emErrs37.length;}}}else {const err222 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}if(data69.constraints !== undefined){let data80 = data69.constraints;if(data80 && typeof data80 == "object" && !Array.isArray(data80)){if(data80.notEmpty !== undefined){if(typeof data80.notEmpty !== "boolean"){const err223 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data80.minLength !== undefined){if(!(typeof data80.minLength == "number")){const err224 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}if(data80.maxLength !== undefined){if(!(typeof data80.maxLength == "number")){const err225 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}if(data80.pattern !== undefined){let data84 = data80.pattern;const _errs239 = errors;let valid92 = false;let passing3 = null;const _errs240 = errors;if(data84 && typeof data84 == "object" && !Array.isArray(data84)){if(data84.value !== undefined){if(typeof data84.value !== "string"){const err226 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}if(data84.message !== undefined){if(typeof data84.message !== "string"){const err227 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}}else {const err228 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}var _valid19 = _errs240 === errors;if(_valid19){valid92 = true;passing3 = 0;}const _errs246 = errors;if(typeof data84 !== "string"){const err229 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}var _valid19 = _errs246 === errors;if(_valid19 && valid92){valid92 = false;passing3 = [passing3, 1];}else {if(_valid19){valid92 = true;passing3 = 1;}}if(!valid92){const err230 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}else {errors = _errs239;if(vErrors !== null){if(_errs239){vErrors.length = _errs239;}else {vErrors = null;}}}}}else {const err231 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}if(data69.group !== undefined){if(typeof data69.group !== "string"){const err232 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}}else {const err233 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}else {const err234 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}if(Array.isArray(data68)){const len8 = data68.length;for(let i8=0; i8<len8; i8++){let data88 = data68[i8];const _errs256 = errors;let valid98 = true;const _errs257 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err235 = {};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}else {if(data88.binding !== undefined){let data89 = data88.binding;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if((data89.type === undefined) && ("type")){const err236 = {};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}else {if(data89.type !== undefined){if(!equal(data89.type, "property")){const err237 = {};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}}}}}var _valid20 = _errs257 === errors;errors = _errs256;if(vErrors !== null){if(_errs256){vErrors.length = _errs256;}else {vErrors = null;}}if(_valid20){const _errs260 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){let data91 = data88.type;if(!(((((data91 === "String") || (data91 === "Text")) || (data91 === "Hidden")) || (data91 === "Dropdown")) || (data91 === "Boolean"))){const err238 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}if(errors > 0){const emErrs38 = [];for(const err239 of vErrors){if(((((err239.keyword !== "errorMessage") && (!err239.emUsed)) && ((err239.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err239.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err239.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err239.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err239.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs38.push(err239);err239.emUsed = true;}}if(emErrs38.length){const err240 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs38},message:"invalid property type " + JSON.stringify(data91) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}const emErrs39 = [];for(const err241 of vErrors){if(!err241.emUsed){emErrs39.push(err241);}}vErrors = emErrs39;errors = emErrs39.length;}}}var _valid20 = _errs260 === errors;valid98 = _valid20;}if(!valid98){const err242 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}const _errs263 = errors;let valid102 = true;const _errs264 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err243 = {};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}else {if(data88.binding !== undefined){let data92 = data88.binding;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if((data92.type === undefined) && ("type")){const err244 = {};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}else {if(data92.type !== undefined){if(!equal(data92.type, "camunda:executionListener")){const err245 = {};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}}}}}}var _valid21 = _errs264 === errors;errors = _errs263;if(vErrors !== null){if(_errs263){vErrors.length = _errs263;}else {vErrors = null;}}if(_valid21){const _errs267 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){if(!(data88.type === "Hidden")){const err246 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}if(errors > 0){const emErrs40 = [];for(const err247 of vErrors){if(((((err247.keyword !== "errorMessage") && (!err247.emUsed)) && ((err247.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err247.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err247.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err247.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err247.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs40.push(err247);err247.emUsed = true;}}if(emErrs40.length){const err248 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs40},message:"invalid property type " + JSON.stringify(data88 && data88.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}const emErrs41 = [];for(const err249 of vErrors){if(!err249.emUsed){emErrs41.push(err249);}}vErrors = emErrs41;errors = emErrs41.length;}}}var _valid21 = _errs267 === errors;valid102 = _valid21;}if(!valid102){const err250 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}const _errs270 = errors;let valid106 = true;const _errs271 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err251 = {};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}else {if(data88.binding !== undefined){let data95 = data88.binding;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if((data95.type === undefined) && ("type")){const err252 = {};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}else {if(data95.type !== undefined){let data96 = data95.type;if(!((((((data96 === "camunda:property") || (data96 === "camunda:outputParameter")) || (data96 === "camunda:in")) || (data96 === "camunda:in:businessKey")) || (data96 === "camunda:out")) || (data96 === "camunda:errorEventDefinition"))){const err253 = {};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}}}}}var _valid22 = _errs271 === errors;errors = _errs270;if(vErrors !== null){if(_errs270){vErrors.length = _errs270;}else {vErrors = null;}}if(_valid22){const _errs274 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){let data97 = data88.type;if(!(((data97 === "String") || (data97 === "Hidden")) || (data97 === "Dropdown"))){const err254 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}if(errors > 0){const emErrs42 = [];for(const err255 of vErrors){if(((((err255.keyword !== "errorMessage") && (!err255.emUsed)) && ((err255.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err255.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err255.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err255.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err255.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs42.push(err255);err255.emUsed = true;}}if(emErrs42.length){const err256 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs42},message:"invalid property type " + JSON.stringify(data97) + " for binding type " + JSON.stringify(data88 && data88.binding && data88.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}const emErrs43 = [];for(const err257 of vErrors){if(!err257.emUsed){emErrs43.push(err257);}}vErrors = emErrs43;errors = emErrs43.length;}}}var _valid22 = _errs274 === errors;valid106 = _valid22;}if(!valid106){const err258 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}const _errs277 = errors;let valid110 = true;const _errs278 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err259 = {};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}else {if(data88.binding !== undefined){let data98 = data88.binding;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err260 = {};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}else {if(data98.type !== undefined){let data99 = data98.type;if(!((data99 === "camunda:inputParameter") || (data99 === "camunda:field"))){const err261 = {};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}}}}}}var _valid23 = _errs278 === errors;errors = _errs277;if(vErrors !== null){if(_errs277){vErrors.length = _errs277;}else {vErrors = null;}}if(_valid23){const _errs281 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){let data100 = data88.type;if(!((((data100 === "String") || (data100 === "Text")) || (data100 === "Hidden")) || (data100 === "Dropdown"))){const err262 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if(errors > 0){const emErrs44 = [];for(const err263 of vErrors){if(((((err263.keyword !== "errorMessage") && (!err263.emUsed)) && ((err263.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err263.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err263.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err263.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err263.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs44.push(err263);err263.emUsed = true;}}if(emErrs44.length){const err264 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs44},message:"invalid property type " + JSON.stringify(data100) + " for binding type " + JSON.stringify(data88 && data88.binding && data88.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}const emErrs45 = [];for(const err265 of vErrors){if(!err265.emUsed){emErrs45.push(err265);}}vErrors = emErrs45;errors = emErrs45.length;}}}var _valid23 = _errs281 === errors;valid110 = _valid23;}if(!valid110){const err266 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.binding === undefined){const err267 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}if(data88.binding !== undefined){let data101 = data88.binding;const _errs286 = errors;let valid116 = true;const _errs287 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err268 = {};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}else {if(data101.type !== undefined){let data102 = data101.type;if(!((((data102 === "property") || (data102 === "camunda:property")) || (data102 === "camunda:inputParameter")) || (data102 === "camunda:field"))){const err269 = {};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}}}var _valid24 = _errs287 === errors;errors = _errs286;if(vErrors !== null){if(_errs286){vErrors.length = _errs286;}else {vErrors = null;}}if(_valid24){const _errs289 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.name === undefined){const err270 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err270];}else {vErrors.push(err270);}errors++;}}if(errors > 0){const emErrs46 = [];for(const err271 of vErrors){if(((((err271.keyword !== "errorMessage") && (!err271.emUsed)) && ((err271.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err271.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err271.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err271.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err271.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs46.push(err271);err271.emUsed = true;}}if(emErrs46.length){const err272 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs46},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires name"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}const emErrs47 = [];for(const err273 of vErrors){if(!err273.emUsed){emErrs47.push(err273);}}vErrors = emErrs47;errors = emErrs47.length;}var _valid24 = _errs289 === errors;valid116 = _valid24;}if(!valid116){const err274 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}const _errs291 = errors;let valid118 = true;const _errs292 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err275 = {};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:outputParameter")){const err276 = {};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}}var _valid25 = _errs292 === errors;errors = _errs291;if(vErrors !== null){if(_errs291){vErrors.length = _errs291;}else {vErrors = null;}}if(_valid25){const _errs294 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.source === undefined){const err277 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err277];}else {vErrors.push(err277);}errors++;}}if(errors > 0){const emErrs48 = [];for(const err278 of vErrors){if(((((err278.keyword !== "errorMessage") && (!err278.emUsed)) && ((err278.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err278.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err278.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err278.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err278.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs48.push(err278);err278.emUsed = true;}}if(emErrs48.length){const err279 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs48},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires source"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}const emErrs49 = [];for(const err280 of vErrors){if(!err280.emUsed){emErrs49.push(err280);}}vErrors = emErrs49;errors = emErrs49.length;}var _valid25 = _errs294 === errors;valid118 = _valid25;}if(!valid118){const err281 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}const _errs296 = errors;let valid120 = true;const _errs297 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err282 = {};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:in")){const err283 = {};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}}}var _valid26 = _errs297 === errors;errors = _errs296;if(vErrors !== null){if(_errs296){vErrors.length = _errs296;}else {vErrors = null;}}if(_valid26){const _errs299 = errors;const _errs300 = errors;let valid122 = false;const _errs301 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err284 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err284];}else {vErrors.push(err284);}errors++;}}var _valid27 = _errs301 === errors;valid122 = valid122 || _valid27;if(!valid122){const _errs302 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.target === undefined){const err285 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err285];}else {vErrors.push(err285);}errors++;}}var _valid27 = _errs302 === errors;valid122 = valid122 || _valid27;}if(!valid122){const err286 = {keyword:"anyOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err286];}else {vErrors.push(err286);}errors++;}else {errors = _errs300;if(vErrors !== null){if(_errs300){vErrors.length = _errs300;}else {vErrors = null;}}}if(errors > 0){const emErrs50 = [];for(const err287 of vErrors){if(((((err287.keyword !== "errorMessage") && (!err287.emUsed)) && ((err287.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err287.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err287.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err287.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err287.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs50.push(err287);err287.emUsed = true;}}if(emErrs50.length){const err288 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs50},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}const emErrs51 = [];for(const err289 of vErrors){if(!err289.emUsed){emErrs51.push(err289);}}vErrors = emErrs51;errors = emErrs51.length;}var _valid26 = _errs299 === errors;valid120 = _valid26;}if(!valid120){const err290 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}const _errs304 = errors;let valid123 = true;const _errs305 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err291 = {};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:out")){const err292 = {};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}}}var _valid28 = _errs305 === errors;errors = _errs304;if(vErrors !== null){if(_errs304){vErrors.length = _errs304;}else {vErrors = null;}}if(_valid28){const _errs307 = errors;const _errs308 = errors;let valid125 = false;let passing4 = null;const _errs309 = errors;const _errs310 = errors;const _errs311 = errors;const _errs312 = errors;let valid127 = false;const _errs313 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.source === undefined) && ("source")){const err293 = {};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}}var _valid30 = _errs313 === errors;valid127 = valid127 || _valid30;if(!valid127){const _errs314 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.sourceExpression === undefined) && ("sourceExpression")){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}var _valid30 = _errs314 === errors;valid127 = valid127 || _valid30;}if(!valid127){const err295 = {};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}else {errors = _errs312;if(vErrors !== null){if(_errs312){vErrors.length = _errs312;}else {vErrors = null;}}}var valid126 = _errs311 === errors;if(!valid126){errors = _errs310;if(vErrors !== null){if(_errs310){vErrors.length = _errs310;}else {vErrors = null;}}}else {const err296 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err296];}else {vErrors.push(err296);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err297 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err297];}else {vErrors.push(err297);}errors++;}}var _valid29 = _errs309 === errors;if(_valid29){valid125 = true;passing4 = 0;}const _errs315 = errors;const _errs316 = errors;const _errs317 = errors;const _errs318 = errors;let valid129 = false;const _errs319 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.variables === undefined) && ("variables")){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}var _valid31 = _errs319 === errors;valid129 = valid129 || _valid31;if(!valid129){const _errs320 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.sourceExpression === undefined) && ("sourceExpression")){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}var _valid31 = _errs320 === errors;valid129 = valid129 || _valid31;}if(!valid129){const err300 = {};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}else {errors = _errs318;if(vErrors !== null){if(_errs318){vErrors.length = _errs318;}else {vErrors = null;}}}var valid128 = _errs317 === errors;if(!valid128){errors = _errs316;if(vErrors !== null){if(_errs316){vErrors.length = _errs316;}else {vErrors = null;}}}else {const err301 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err301];}else {vErrors.push(err301);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.source === undefined){const err302 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err302];}else {vErrors.push(err302);}errors++;}}var _valid29 = _errs315 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 1];}else {if(_valid29){valid125 = true;passing4 = 1;}const _errs321 = errors;const _errs322 = errors;const _errs323 = errors;const _errs324 = errors;let valid131 = false;const _errs325 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.variables === undefined) && ("variables")){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}var _valid32 = _errs325 === errors;valid131 = valid131 || _valid32;if(!valid131){const _errs326 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.source === undefined) && ("source")){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}}var _valid32 = _errs326 === errors;valid131 = valid131 || _valid32;}if(!valid131){const err305 = {};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}else {errors = _errs324;if(vErrors !== null){if(_errs324){vErrors.length = _errs324;}else {vErrors = null;}}}var valid130 = _errs323 === errors;if(!valid130){errors = _errs322;if(vErrors !== null){if(_errs322){vErrors.length = _errs322;}else {vErrors = null;}}}else {const err306 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err306];}else {vErrors.push(err306);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.sourceExpression === undefined){const err307 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err307];}else {vErrors.push(err307);}errors++;}}var _valid29 = _errs321 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 2];}else {if(_valid29){valid125 = true;passing4 = 2;}const _errs327 = errors;const _errs328 = errors;const _errs329 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.source === undefined) && ("source")){const err308 = {};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}var valid132 = _errs329 === errors;if(!valid132){errors = _errs328;if(vErrors !== null){if(_errs328){vErrors.length = _errs328;}else {vErrors = null;}}}else {const err309 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err309];}else {vErrors.push(err309);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err310 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err310];}else {vErrors.push(err310);}errors++;}if(data101.sourceExpression === undefined){const err311 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err311];}else {vErrors.push(err311);}errors++;}}var _valid29 = _errs327 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 3];}else {if(_valid29){valid125 = true;passing4 = 3;}const _errs330 = errors;const _errs331 = errors;const _errs332 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.sourceExpression === undefined) && ("sourceExpression")){const err312 = {};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}}var valid133 = _errs332 === errors;if(!valid133){errors = _errs331;if(vErrors !== null){if(_errs331){vErrors.length = _errs331;}else {vErrors = null;}}}else {const err313 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err313];}else {vErrors.push(err313);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err314 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err314];}else {vErrors.push(err314);}errors++;}if(data101.source === undefined){const err315 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err315];}else {vErrors.push(err315);}errors++;}}var _valid29 = _errs330 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 4];}else {if(_valid29){valid125 = true;passing4 = 4;}}}}}if(!valid125){const err316 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing4},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}else {errors = _errs308;if(vErrors !== null){if(_errs308){vErrors.length = _errs308;}else {vErrors = null;}}}if(errors > 0){const emErrs52 = [];for(const err317 of vErrors){if(((((err317.keyword !== "errorMessage") && (!err317.emUsed)) && ((err317.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err317.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err317.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err317.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err317.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs52.push(err317);err317.emUsed = true;}}if(emErrs52.length){const err318 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs52},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}const emErrs53 = [];for(const err319 of vErrors){if(!err319.emUsed){emErrs53.push(err319);}}vErrors = emErrs53;errors = emErrs53.length;}var _valid28 = _errs307 === errors;valid123 = _valid28;}if(!valid123){const err320 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}const _errs334 = errors;let valid134 = true;const _errs335 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err321 = {};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:errorEventDefinition")){const err322 = {};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}}}}var _valid33 = _errs335 === errors;errors = _errs334;if(vErrors !== null){if(_errs334){vErrors.length = _errs334;}else {vErrors = null;}}if(_valid33){const _errs337 = errors;const _errs338 = errors;let valid136 = false;let passing5 = null;const _errs339 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.errorRef === undefined){const err323 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err323];}else {vErrors.push(err323);}errors++;}}var _valid34 = _errs339 === errors;if(_valid34){valid136 = true;passing5 = 0;}if(!valid136){const err324 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing5},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}else {errors = _errs338;if(vErrors !== null){if(_errs338){vErrors.length = _errs338;}else {vErrors = null;}}}if(errors > 0){const emErrs54 = [];for(const err325 of vErrors){if(((((err325.keyword !== "errorMessage") && (!err325.emUsed)) && ((err325.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err325.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err325.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err325.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err325.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs54.push(err325);err325.emUsed = true;}}if(emErrs54.length){const err326 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs54},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires errorRef"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}const emErrs55 = [];for(const err327 of vErrors){if(!err327.emUsed){emErrs55.push(err327);}}vErrors = emErrs55;errors = emErrs55.length;}var _valid33 = _errs337 === errors;valid134 = _valid33;}if(!valid134){const err328 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.type === undefined){const err329 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}if(data101.type !== undefined){let data107 = data101.type;if(typeof data107 !== "string"){const err330 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}if(!((((((((((data107 === "property") || (data107 === "camunda:property")) || (data107 === "camunda:inputParameter")) || (data107 === "camunda:outputParameter")) || (data107 === "camunda:in")) || (data107 === "camunda:out")) || (data107 === "camunda:in:businessKey")) || (data107 === "camunda:executionListener")) || (data107 === "camunda:field")) || (data107 === "camunda:errorEventDefinition"))){const err331 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema20.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if(errors > 0){const emErrs56 = [];for(const err332 of vErrors){if(((((err332.keyword !== "errorMessage") && (!err332.emUsed)) && ((err332.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type") || ((err332.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type") === 0) && (err332.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type".length] === "/")))) && (err332.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err332.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs56.push(err332);err332.emUsed = true;}}if(emErrs56.length){const err333 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs56},message:"invalid property.binding type " + JSON.stringify(data107) + "; 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 = [err333];}else {vErrors.push(err333);}errors++;}const emErrs57 = [];for(const err334 of vErrors){if(!err334.emUsed){emErrs57.push(err334);}}vErrors = emErrs57;errors = emErrs57.length;}}if(data101.name !== undefined){if(typeof data101.name !== "string"){const err335 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}if(data101.event !== undefined){if(typeof data101.event !== "string"){const err336 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}}if(data101.scriptFormat !== undefined){if(typeof data101.scriptFormat !== "string"){const err337 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}if(data101.source !== undefined){if(typeof data101.source !== "string"){const err338 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}}if(data101.target !== undefined){if(typeof data101.target !== "string"){const err339 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}if(data101.expression !== undefined){if(typeof data101.expression !== "boolean"){const err340 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}}if(data101.variables !== undefined){let data114 = data101.variables;if(typeof data114 !== "string"){const err341 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if(!((data114 === "all") || (data114 === "local"))){const err342 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema20.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}if(data101.sourceExpression !== undefined){if(typeof data101.sourceExpression !== "string"){const err343 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}}else {const err344 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}}else {const err345 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}if(errors > 0){const emErrors6 = {"required":{"binding":[]}};const templates6 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i8) + "\""}}};let emPropParams3;let emParamsErrors3;for(const err346 of vErrors){if((((((err346.keyword !== "errorMessage") && (!err346.emUsed)) && (err346.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8)) && (err346.keyword in emErrors6)) && (err346.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err346.schemaPath.slice(38)))){emPropParams3 = obj0$1[err346.keyword];emParamsErrors3 = emErrors6[err346.keyword][err346.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err346);err346.emUsed = true;}}}for(const key6 in emErrors6){for(const keyProp3 in emErrors6[key6]){emParamsErrors3 = emErrors6[key6][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates6[key6] && templates6[key6][keyProp3];const err347 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema20.items.errorMessage[key6][keyProp3]};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}}}const emErrs58 = [];for(const err348 of vErrors){if(!err348.emUsed){emErrs58.push(err348);}}vErrors = emErrs58;errors = emErrs58.length;}}}else {const err349 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}}}else {const err350 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if(errors > 0){const emErrors7 = {"required":{"type":[],"properties":[]}};const templates7 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data65 && data65.type) + ", missing properties=[]"}}};let emPropParams4;let emParamsErrors4;for(const err351 of vErrors){if((((((err351.keyword !== "errorMessage") && (!err351.emUsed)) && (err351.dataPath === dataPath+"/scopes/" + i5)) && (err351.keyword in emErrors7)) && (err351.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err351.schemaPath.slice(25)))){emPropParams4 = obj0$1[err351.keyword];emParamsErrors4 = emErrors7[err351.keyword][err351.params[emPropParams4]];if(emParamsErrors4){emParamsErrors4.push(err351);err351.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp4 in emErrors7[key7]){emParamsErrors4 = emErrors7[key7][keyProp4];if(emParamsErrors4.length){const tmpl4 = templates7[key7] && templates7[key7][keyProp4];const err352 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/errorMessage",params:{errors: emParamsErrors4},message:tmpl4 ? tmpl4() : schema17$1.properties.scopes.items.errorMessage[key7][keyProp4]};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}}}const emErrs59 = [];for(const err353 of vErrors){if(!err353.emUsed){emErrs59.push(err353);}}vErrors = emErrs59;errors = emErrs59.length;}}}else {const err354 = {keyword:"type",dataPath:dataPath+"/scopes",schemaPath:"#/properties/scopes/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}}}else {const err355 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}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;}
55
+ var standaloneValidator = validate14$1;var _default$1 = 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":"number","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."},"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]+$","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"errorMessage":{"required":{"value":"missing elementType value"}},"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}]}}},"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"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"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"}}}},"documentationRef":{"$id":"#/documentaionRef","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"],"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}},"allOf":[{"if":{"properties":{"type":{"enum":["bpmn:Error"]}},"required":["type"]},"then":{"required":["id"],"errorMessage":"invalid scope ${0/type}, missing id"}}]}}}};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":{"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."}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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\""}}}},{"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"],"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 }","description":"The type of a property binding."},"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)."}}}}}}]};const schema19 = {"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":{"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."}},"required":["value","name"],"errorMessage":"{ 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."}}}};const schema20 = {"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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\""}}}},{"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"],"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 }","description":"The type of a property binding."},"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)."}}}}}};const pattern0$1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern2$1 = new RegExp("^(https|http)://.*", "u");const obj0$1 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};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){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};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.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0$1.test(data6)){const err9 = {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 = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {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 = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.elementType !== undefined){let data7 = data.elementType;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.value === undefined){const err15 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data7.value !== undefined){let data8 = data7.value;if(typeof data8 === "string"){if(!pattern0$1.test(data8)){const err16 = {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 = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {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 = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/elementType/value")) && (err18.keyword in emErrors1)) && (err18.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(49)))){emErrors1[err18.keyword].push(err18);err18.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err19 = {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 = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs1 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs1.push(err20);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/elementType")) && (err22.keyword in emErrors2)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(32)))){emPropParams0 = obj0$1[err22.keyword];emParamsErrors0 = emErrors2[err22.keyword][err22.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err22);err22.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 err23 = {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 = [err23];}else {vErrors.push(err23);}errors++;}}}const emErrs2 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs2.push(err24);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data9 = data.metadata;if(!(data9 && typeof data9 == "object" && !Array.isArray(data9))){const err25 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err26 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.groups !== undefined){let data11 = data.groups;if(Array.isArray(data11)){const len1 = data11.length;for(let i1=0; i1<len1; i1++){let data12 = data11[i1];if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.id === undefined){const err27 = {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 = [err27];}else {vErrors.push(err27);}errors++;}if(data12.label === undefined){const err28 = {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 = [err28];}else {vErrors.push(err28);}errors++;}if(data12.id !== undefined){if(typeof data12.id !== "string"){const err29 = {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 = [err29];}else {vErrors.push(err29);}errors++;}}if(data12.label !== undefined){if(typeof data12.label !== "string"){const err30 = {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 = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}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 err32 of vErrors){if((((((err32.keyword !== "errorMessage") && (!err32.emUsed)) && (err32.dataPath === dataPath+"/groups/" + i1)) && (err32.keyword in emErrors3)) && (err32.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err32.schemaPath.slice(33)))){emPropParams1 = obj0$1[err32.keyword];emParamsErrors1 = emErrors3[err32.keyword][err32.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err32);err32.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 err33 = {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 = [err33];}else {vErrors.push(err33);}errors++;}}}const emErrs3 = [];for(const err34 of vErrors){if(!err34.emUsed){emErrs3.push(err34);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err35 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.documentationRef !== undefined){let data15 = data.documentationRef;if(typeof data15 === "string"){if(!pattern2$1.test(data15)){const err36 = {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 = [err36];}else {vErrors.push(err36);}errors++;}}else {const err37 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err38 of vErrors){if((((((err38.keyword !== "errorMessage") && (!err38.emUsed)) && (err38.dataPath === dataPath+"/documentationRef")) && (err38.keyword in emErrors4)) && (err38.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err38.schemaPath.slice(37)))){emErrors4[err38.keyword].push(err38);err38.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err39 = {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 = [err39];}else {vErrors.push(err39);}errors++;}}const emErrs4 = [];for(const err40 of vErrors){if(!err40.emUsed){emErrs4.push(err40);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err41 of vErrors){if((((((err41.keyword !== "errorMessage") && (!err41.emUsed)) && (err41.dataPath === dataPath)) && (err41.keyword in emErrors5)) && (err41.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err41.schemaPath.slice(9)))){emPropParams2 = obj0$1[err41.keyword];emParamsErrors2 = emErrors5[err41.keyword][err41.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err41);err41.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 err42 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17$1.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}const emErrs5 = [];for(const err43 of vErrors){if(!err43.emUsed){emErrs5.push(err43);}}vErrors = emErrs5;errors = emErrs5.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data16 = data.properties;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];const _errs41 = errors;let valid18 = true;const _errs42 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if((data17.type === undefined) && ("type")){const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}else {if(data17.type !== undefined){if(!equal(data17.type, "Dropdown")){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}}var _valid0 = _errs42 === errors;errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}if(_valid0){const _errs44 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.choices === undefined){const err46 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(errors > 0){const emErrs6 = [];for(const err47 of vErrors){if(((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && ((err47.dataPath === dataPath+"/properties/" + i2) || ((err47.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err47.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err47.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs6.push(err47);err47.emUsed = true;}}if(emErrs6.length){const err48 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs6},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}const emErrs7 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs7.push(err49);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid0 = _errs44 === errors;valid18 = _valid0;}if(!valid18){const err50 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){let data19 = data17.value;if((typeof data19 !== "string") && (typeof data19 !== "boolean")){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/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 = [err51];}else {vErrors.push(err51);}errors++;}}if(data17.description !== undefined){if(typeof data17.description !== "string"){const err52 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err53 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data17.type !== undefined){if(typeof data17.type !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data17.editable !== undefined){if(typeof data17.editable !== "boolean"){const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data17.choices !== undefined){let data24 = data17.choices;if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err56 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data25.name === undefined){const err57 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data25.name !== undefined){if(typeof data25.name !== "string"){const err58 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data25.value !== undefined){if(typeof data25.value !== "string"){const err59 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(errors > 0){const emErrs8 = [];for(const err61 of vErrors){if(((((err61.keyword !== "errorMessage") && (!err61.emUsed)) && ((err61.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err61.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err61.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err61.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err61.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs8.push(err61);err61.emUsed = true;}}if(emErrs8.length){const err62 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs8},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const emErrs9 = [];for(const err63 of vErrors){if(!err63.emUsed){emErrs9.push(err63);}}vErrors = emErrs9;errors = emErrs9.length;}}}else {const err64 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data17.constraints !== undefined){let data28 = data17.constraints;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.notEmpty !== undefined){if(typeof data28.notEmpty !== "boolean"){const err65 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data28.minLength !== undefined){if(!(typeof data28.minLength == "number")){const err66 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data28.maxLength !== undefined){if(!(typeof data28.maxLength == "number")){const err67 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data28.pattern !== undefined){let data32 = data28.pattern;const _errs72 = errors;let valid26 = false;let passing0 = null;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){if(typeof data32.value !== "string"){const err68 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data32.message !== undefined){if(typeof data32.message !== "string"){const err69 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}else {const err70 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var _valid1 = _errs73 === errors;if(_valid1){valid26 = true;passing0 = 0;}const _errs79 = errors;if(typeof data32 !== "string"){const err71 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var _valid1 = _errs79 === errors;if(_valid1 && valid26){valid26 = false;passing0 = [passing0, 1];}else {if(_valid1){valid26 = true;passing0 = 1;}}if(!valid26){const err72 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}}}else {const err73 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data17.group !== undefined){if(typeof data17.group !== "string"){const err74 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}else {const err75 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}else {const err76 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(Array.isArray(data16)){const len4 = data16.length;for(let i4=0; i4<len4; i4++){let data36 = data16[i4];const _errs88 = errors;let valid31 = true;const _errs89 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data37.type !== undefined){if(!equal(data37.type, "property")){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}}}}var _valid2 = _errs89 === errors;errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}if(_valid2){const _errs92 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err80 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err80];}else {vErrors.push(err80);}errors++;}if(errors > 0){const emErrs10 = [];for(const err81 of vErrors){if(((((err81.keyword !== "errorMessage") && (!err81.emUsed)) && ((err81.dataPath === dataPath+"/properties/" + i4+"/type") || ((err81.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err81.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err81.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err81.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs10.push(err81);err81.emUsed = true;}}if(emErrs10.length){const err82 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const emErrs11 = [];for(const err83 of vErrors){if(!err83.emUsed){emErrs11.push(err83);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid2 = _errs92 === errors;valid31 = _valid2;}if(!valid31){const err84 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}const _errs95 = errors;let valid35 = true;const _errs96 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {if(data40.type !== undefined){if(!equal(data40.type, "camunda:executionListener")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}}}}}}var _valid3 = _errs96 === errors;errors = _errs95;if(vErrors !== null){if(_errs95){vErrors.length = _errs95;}else {vErrors = null;}}if(_valid3){const _errs99 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){if(!(data36.type === "Hidden")){const err88 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err88];}else {vErrors.push(err88);}errors++;}if(errors > 0){const emErrs12 = [];for(const err89 of vErrors){if(((((err89.keyword !== "errorMessage") && (!err89.emUsed)) && ((err89.dataPath === dataPath+"/properties/" + i4+"/type") || ((err89.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err89.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err89.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err89.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs12.push(err89);err89.emUsed = true;}}if(emErrs12.length){const err90 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs12},message:"invalid property type " + JSON.stringify(data36 && data36.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}const emErrs13 = [];for(const err91 of vErrors){if(!err91.emUsed){emErrs13.push(err91);}}vErrors = emErrs13;errors = emErrs13.length;}}}var _valid3 = _errs99 === errors;valid35 = _valid3;}if(!valid35){const err92 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const _errs102 = errors;let valid39 = true;const _errs103 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data36.binding !== undefined){let data43 = data36.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}else {if(data43.type !== undefined){let data44 = data43.type;if(!((((((data44 === "camunda:property") || (data44 === "camunda:outputParameter")) || (data44 === "camunda:in")) || (data44 === "camunda:in:businessKey")) || (data44 === "camunda:out")) || (data44 === "camunda:errorEventDefinition"))){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}}}}}}var _valid4 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid4){const _errs106 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data45 = data36.type;if(!(((data45 === "String") || (data45 === "Hidden")) || (data45 === "Dropdown"))){const err96 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err96];}else {vErrors.push(err96);}errors++;}if(errors > 0){const emErrs14 = [];for(const err97 of vErrors){if(((((err97.keyword !== "errorMessage") && (!err97.emUsed)) && ((err97.dataPath === dataPath+"/properties/" + i4+"/type") || ((err97.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err97.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err97.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err97.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs14.push(err97);err97.emUsed = true;}}if(emErrs14.length){const err98 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs14},message:"invalid property type " + JSON.stringify(data45) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}const emErrs15 = [];for(const err99 of vErrors){if(!err99.emUsed){emErrs15.push(err99);}}vErrors = emErrs15;errors = emErrs15.length;}}}var _valid4 = _errs106 === errors;valid39 = _valid4;}if(!valid39){const err100 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const _errs109 = errors;let valid43 = true;const _errs110 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data36.binding !== undefined){let data46 = data36.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data46.type !== undefined){let data47 = data46.type;if(!((data47 === "camunda:inputParameter") || (data47 === "camunda:field"))){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}}}}var _valid5 = _errs110 === errors;errors = _errs109;if(vErrors !== null){if(_errs109){vErrors.length = _errs109;}else {vErrors = null;}}if(_valid5){const _errs113 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data48 = data36.type;if(!((((data48 === "String") || (data48 === "Text")) || (data48 === "Hidden")) || (data48 === "Dropdown"))){const err104 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err104];}else {vErrors.push(err104);}errors++;}if(errors > 0){const emErrs16 = [];for(const err105 of vErrors){if(((((err105.keyword !== "errorMessage") && (!err105.emUsed)) && ((err105.dataPath === dataPath+"/properties/" + i4+"/type") || ((err105.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err105.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err105.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err105.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs16.push(err105);err105.emUsed = true;}}if(emErrs16.length){const err106 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs16},message:"invalid property type " + JSON.stringify(data48) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const emErrs17 = [];for(const err107 of vErrors){if(!err107.emUsed){emErrs17.push(err107);}}vErrors = emErrs17;errors = emErrs17.length;}}}var _valid5 = _errs113 === errors;valid43 = _valid5;}if(!valid43){const err108 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err109 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(data36.binding !== undefined){let data49 = data36.binding;const _errs118 = errors;let valid49 = true;const _errs119 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}else {if(data49.type !== undefined){let data50 = data49.type;if(!((((data50 === "property") || (data50 === "camunda:property")) || (data50 === "camunda:inputParameter")) || (data50 === "camunda:field"))){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}}var _valid6 = _errs119 === errors;errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}if(_valid6){const _errs121 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.name === undefined){const err112 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err112];}else {vErrors.push(err112);}errors++;}}if(errors > 0){const emErrs18 = [];for(const err113 of vErrors){if(((((err113.keyword !== "errorMessage") && (!err113.emUsed)) && ((err113.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err113.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err113.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err113.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err113.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs18.push(err113);err113.emUsed = true;}}if(emErrs18.length){const err114 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs18},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires name"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}const emErrs19 = [];for(const err115 of vErrors){if(!err115.emUsed){emErrs19.push(err115);}}vErrors = emErrs19;errors = emErrs19.length;}var _valid6 = _errs121 === errors;valid49 = _valid6;}if(!valid49){const err116 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}const _errs123 = errors;let valid51 = true;const _errs124 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:outputParameter")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}}}var _valid7 = _errs124 === errors;errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}if(_valid7){const _errs126 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.source === undefined){const err119 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err119];}else {vErrors.push(err119);}errors++;}}if(errors > 0){const emErrs20 = [];for(const err120 of vErrors){if(((((err120.keyword !== "errorMessage") && (!err120.emUsed)) && ((err120.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err120.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err120.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err120.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err120.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs20.push(err120);err120.emUsed = true;}}if(emErrs20.length){const err121 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires source"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const emErrs21 = [];for(const err122 of vErrors){if(!err122.emUsed){emErrs21.push(err122);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid7 = _errs126 === errors;valid51 = _valid7;}if(!valid51){const err123 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}const _errs128 = errors;let valid53 = true;const _errs129 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:in")){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}}var _valid8 = _errs129 === errors;errors = _errs128;if(vErrors !== null){if(_errs128){vErrors.length = _errs128;}else {vErrors = null;}}if(_valid8){const _errs131 = errors;const _errs132 = errors;let valid55 = false;const _errs133 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err126 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err126];}else {vErrors.push(err126);}errors++;}}var _valid9 = _errs133 === errors;valid55 = valid55 || _valid9;if(!valid55){const _errs134 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.target === undefined){const err127 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err127];}else {vErrors.push(err127);}errors++;}}var _valid9 = _errs134 === errors;valid55 = valid55 || _valid9;}if(!valid55){const err128 = {keyword:"anyOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err128];}else {vErrors.push(err128);}errors++;}else {errors = _errs132;if(vErrors !== null){if(_errs132){vErrors.length = _errs132;}else {vErrors = null;}}}if(errors > 0){const emErrs22 = [];for(const err129 of vErrors){if(((((err129.keyword !== "errorMessage") && (!err129.emUsed)) && ((err129.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err129.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err129.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err129.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err129.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs22.push(err129);err129.emUsed = true;}}if(emErrs22.length){const err130 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const emErrs23 = [];for(const err131 of vErrors){if(!err131.emUsed){emErrs23.push(err131);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid8 = _errs131 === errors;valid53 = _valid8;}if(!valid53){const err132 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const _errs136 = errors;let valid56 = true;const _errs137 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:out")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}}var _valid10 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid10){const _errs139 = errors;const _errs140 = errors;let valid58 = false;let passing1 = null;const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;const _errs144 = errors;let valid60 = false;const _errs145 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.source === undefined) && ("source")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var _valid12 = _errs145 === errors;valid60 = valid60 || _valid12;if(!valid60){const _errs146 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.sourceExpression === undefined) && ("sourceExpression")){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid12 = _errs146 === errors;valid60 = valid60 || _valid12;}if(!valid60){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}var valid59 = _errs143 === errors;if(!valid59){errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}}else {const err138 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err138];}else {vErrors.push(err138);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err139 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err139];}else {vErrors.push(err139);}errors++;}}var _valid11 = _errs141 === errors;if(_valid11){valid58 = true;passing1 = 0;}const _errs147 = errors;const _errs148 = errors;const _errs149 = errors;const _errs150 = errors;let valid62 = false;const _errs151 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.variables === undefined) && ("variables")){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var _valid13 = _errs151 === errors;valid62 = valid62 || _valid13;if(!valid62){const _errs152 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.sourceExpression === undefined) && ("sourceExpression")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid13 = _errs152 === errors;valid62 = valid62 || _valid13;}if(!valid62){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}else {errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}var valid61 = _errs149 === errors;if(!valid61){errors = _errs148;if(vErrors !== null){if(_errs148){vErrors.length = _errs148;}else {vErrors = null;}}}else {const err143 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err143];}else {vErrors.push(err143);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.source === undefined){const err144 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err144];}else {vErrors.push(err144);}errors++;}}var _valid11 = _errs147 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 1];}else {if(_valid11){valid58 = true;passing1 = 1;}const _errs153 = errors;const _errs154 = errors;const _errs155 = errors;const _errs156 = errors;let valid64 = false;const _errs157 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.variables === undefined) && ("variables")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}var _valid14 = _errs157 === errors;valid64 = valid64 || _valid14;if(!valid64){const _errs158 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.source === undefined) && ("source")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}var _valid14 = _errs158 === errors;valid64 = valid64 || _valid14;}if(!valid64){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}else {errors = _errs156;if(vErrors !== null){if(_errs156){vErrors.length = _errs156;}else {vErrors = null;}}}var valid63 = _errs155 === errors;if(!valid63){errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}}else {const err148 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err148];}else {vErrors.push(err148);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.sourceExpression === undefined){const err149 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err149];}else {vErrors.push(err149);}errors++;}}var _valid11 = _errs153 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 2];}else {if(_valid11){valid58 = true;passing1 = 2;}const _errs159 = errors;const _errs160 = errors;const _errs161 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.source === undefined) && ("source")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var valid65 = _errs161 === errors;if(!valid65){errors = _errs160;if(vErrors !== null){if(_errs160){vErrors.length = _errs160;}else {vErrors = null;}}}else {const err151 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err151];}else {vErrors.push(err151);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err152 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err152];}else {vErrors.push(err152);}errors++;}if(data49.sourceExpression === undefined){const err153 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err153];}else {vErrors.push(err153);}errors++;}}var _valid11 = _errs159 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 3];}else {if(_valid11){valid58 = true;passing1 = 3;}const _errs162 = errors;const _errs163 = errors;const _errs164 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.sourceExpression === undefined) && ("sourceExpression")){const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var valid66 = _errs164 === errors;if(!valid66){errors = _errs163;if(vErrors !== null){if(_errs163){vErrors.length = _errs163;}else {vErrors = null;}}}else {const err155 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err155];}else {vErrors.push(err155);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err156 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err156];}else {vErrors.push(err156);}errors++;}if(data49.source === undefined){const err157 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err157];}else {vErrors.push(err157);}errors++;}}var _valid11 = _errs162 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 4];}else {if(_valid11){valid58 = true;passing1 = 4;}}}}}if(!valid58){const err158 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err158];}else {vErrors.push(err158);}errors++;}else {errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err159 of vErrors){if(((((err159.keyword !== "errorMessage") && (!err159.emUsed)) && ((err159.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err159.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err159.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err159.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err159.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs24.push(err159);err159.emUsed = true;}}if(emErrs24.length){const err160 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs24},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}const emErrs25 = [];for(const err161 of vErrors){if(!err161.emUsed){emErrs25.push(err161);}}vErrors = emErrs25;errors = emErrs25.length;}var _valid10 = _errs139 === errors;valid56 = _valid10;}if(!valid56){const err162 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const _errs166 = errors;let valid67 = true;const _errs167 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err163 = {};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:errorEventDefinition")){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}}}var _valid15 = _errs167 === errors;errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}if(_valid15){const _errs169 = errors;const _errs170 = errors;let valid69 = false;let passing2 = null;const _errs171 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.errorRef === undefined){const err165 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err165];}else {vErrors.push(err165);}errors++;}}var _valid16 = _errs171 === errors;if(_valid16){valid69 = true;passing2 = 0;}if(!valid69){const err166 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err166];}else {vErrors.push(err166);}errors++;}else {errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}}if(errors > 0){const emErrs26 = [];for(const err167 of vErrors){if(((((err167.keyword !== "errorMessage") && (!err167.emUsed)) && ((err167.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err167.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err167.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err167.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err167.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs26.push(err167);err167.emUsed = true;}}if(emErrs26.length){const err168 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs26},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires errorRef"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}const emErrs27 = [];for(const err169 of vErrors){if(!err169.emUsed){emErrs27.push(err169);}}vErrors = emErrs27;errors = emErrs27.length;}var _valid15 = _errs169 === errors;valid67 = _valid15;}if(!valid67){const err170 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.type === undefined){const err171 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if(data49.type !== undefined){let data55 = data49.type;if(typeof data55 !== "string"){const err172 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(!((((((((((data55 === "property") || (data55 === "camunda:property")) || (data55 === "camunda:inputParameter")) || (data55 === "camunda:outputParameter")) || (data55 === "camunda:in")) || (data55 === "camunda:out")) || (data55 === "camunda:in:businessKey")) || (data55 === "camunda:executionListener")) || (data55 === "camunda:field")) || (data55 === "camunda:errorEventDefinition"))){const err173 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/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 = [err173];}else {vErrors.push(err173);}errors++;}if(errors > 0){const emErrs28 = [];for(const err174 of vErrors){if(((((err174.keyword !== "errorMessage") && (!err174.emUsed)) && ((err174.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err174.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err174.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err174.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err174.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs28.push(err174);err174.emUsed = true;}}if(emErrs28.length){const err175 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs28},message:"invalid property.binding type " + JSON.stringify(data55) + "; 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 = [err175];}else {vErrors.push(err175);}errors++;}const emErrs29 = [];for(const err176 of vErrors){if(!err176.emUsed){emErrs29.push(err176);}}vErrors = emErrs29;errors = emErrs29.length;}}if(data49.name !== undefined){if(typeof data49.name !== "string"){const err177 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data49.event !== undefined){if(typeof data49.event !== "string"){const err178 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data49.scriptFormat !== undefined){if(typeof data49.scriptFormat !== "string"){const err179 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data49.source !== undefined){if(typeof data49.source !== "string"){const err180 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data49.target !== undefined){if(typeof data49.target !== "string"){const err181 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data49.expression !== undefined){if(typeof data49.expression !== "boolean"){const err182 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data49.variables !== undefined){let data62 = data49.variables;if(typeof data62 !== "string"){const err183 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(!((data62 === "all") || (data62 === "local"))){const err184 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/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 = [err184];}else {vErrors.push(err184);}errors++;}}if(data49.sourceExpression !== undefined){if(typeof data49.sourceExpression !== "string"){const err185 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}}else {const err186 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}}else {const err187 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(errors > 0){const emErrors6 = {"required":{"binding":[]}};const templates6 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams3;let emParamsErrors3;for(const err188 of vErrors){if((((((err188.keyword !== "errorMessage") && (!err188.emUsed)) && (err188.dataPath === dataPath+"/properties/" + i4)) && (err188.keyword in emErrors6)) && (err188.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err188.schemaPath.slice(38)))){emPropParams3 = obj0$1[err188.keyword];emParamsErrors3 = emErrors6[err188.keyword][err188.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err188);err188.emUsed = true;}}}for(const key6 in emErrors6){for(const keyProp3 in emErrors6[key6]){emParamsErrors3 = emErrors6[key6][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates6[key6] && templates6[key6][keyProp3];const err189 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema18$1.allOf[1].items.errorMessage[key6][keyProp3]};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}}const emErrs30 = [];for(const err190 of vErrors){if(!err190.emUsed){emErrs30.push(err190);}}vErrors = emErrs30;errors = emErrs30.length;}}}else {const err191 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data.scopes !== undefined){let data64 = data.scopes;if(Array.isArray(data64)){const len5 = data64.length;for(let i5=0; i5<len5; i5++){let data65 = data64[i5];const _errs195 = errors;let valid75 = true;const _errs196 = errors;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if((data65.type === undefined) && ("type")){const err192 = {};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}else {if(data65.type !== undefined){if(!(data65.type === "bpmn:Error")){const err193 = {};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}}}var _valid17 = _errs196 === errors;errors = _errs195;if(vErrors !== null){if(_errs195){vErrors.length = _errs195;}else {vErrors = null;}}if(_valid17){const _errs198 = errors;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.id === undefined){const err194 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/then/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(errors > 0){const emErrs31 = [];for(const err195 of vErrors){if(((((err195.keyword !== "errorMessage") && (!err195.emUsed)) && ((err195.dataPath === dataPath+"/scopes/" + i5) || ((err195.dataPath.indexOf(dataPath+"/scopes/" + i5) === 0) && (err195.dataPath[dataPath+"/scopes/" + i5.length] === "/")))) && (err195.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err195.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs31.push(err195);err195.emUsed = true;}}if(emErrs31.length){const err196 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",params:{errors: emErrs31},message:"invalid scope " + JSON.stringify(data65 && data65.type) + ", missing id"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}const emErrs32 = [];for(const err197 of vErrors){if(!err197.emUsed){emErrs32.push(err197);}}vErrors = emErrs32;errors = emErrs32.length;}var _valid17 = _errs198 === errors;valid75 = _valid17;}if(!valid75){const err198 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.type === undefined){const err199 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if(data65.properties === undefined){const err200 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}if(data65.type !== undefined){let data67 = data65.type;if(typeof data67 !== "string"){const err201 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if(!((data67 === "camunda:Connector") || (data67 === "bpmn:Error"))){const err202 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/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 = [err202];}else {vErrors.push(err202);}errors++;}if(errors > 0){const emErrs33 = [];for(const err203 of vErrors){if(((((err203.keyword !== "errorMessage") && (!err203.emUsed)) && ((err203.dataPath === dataPath+"/scopes/" + i5+"/type") || ((err203.dataPath.indexOf(dataPath+"/scopes/" + i5+"/type") === 0) && (err203.dataPath[dataPath+"/scopes/" + i5+"/type".length] === "/")))) && (err203.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err203.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs33.push(err203);err203.emUsed = true;}}if(emErrs33.length){const err204 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",params:{errors: emErrs33},message:"invalid scope type " + JSON.stringify(data67) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}const emErrs34 = [];for(const err205 of vErrors){if(!err205.emUsed){emErrs34.push(err205);}}vErrors = emErrs34;errors = emErrs34.length;}}if(data65.properties !== undefined){let data68 = data65.properties;if(Array.isArray(data68)){const len6 = data68.length;for(let i6=0; i6<len6; i6++){let data69 = data68[i6];const _errs208 = errors;let valid84 = true;const _errs209 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if((data69.type === undefined) && ("type")){const err206 = {};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}else {if(data69.type !== undefined){if(!equal(data69.type, "Dropdown")){const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}}}var _valid18 = _errs209 === errors;errors = _errs208;if(vErrors !== null){if(_errs208){vErrors.length = _errs208;}else {vErrors = null;}}if(_valid18){const _errs211 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.choices === undefined){const err208 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(errors > 0){const emErrs35 = [];for(const err209 of vErrors){if(((((err209.keyword !== "errorMessage") && (!err209.emUsed)) && ((err209.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i6) || ((err209.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i6) === 0) && (err209.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i6.length] === "/")))) && (err209.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err209.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs35.push(err209);err209.emUsed = true;}}if(emErrs35.length){const err210 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs35},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}const emErrs36 = [];for(const err211 of vErrors){if(!err211.emUsed){emErrs36.push(err211);}}vErrors = emErrs36;errors = emErrs36.length;}var _valid18 = _errs211 === errors;valid84 = _valid18;}if(!valid84){const err212 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.value !== undefined){let data71 = data69.value;if((typeof data71 !== "string") && (typeof data71 !== "boolean")){const err213 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema19.items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data69.description !== undefined){if(typeof data69.description !== "string"){const err214 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}if(data69.label !== undefined){if(typeof data69.label !== "string"){const err215 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data69.type !== undefined){if(typeof data69.type !== "string"){const err216 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data69.editable !== undefined){if(typeof data69.editable !== "boolean"){const err217 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data69.choices !== undefined){let data76 = data69.choices;if(Array.isArray(data76)){const len7 = data76.length;for(let i7=0; i7<len7; i7++){let data77 = data76[i7];if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.value === undefined){const err218 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}if(data77.name === undefined){const err219 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}if(data77.name !== undefined){if(typeof data77.name !== "string"){const err220 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data77.value !== undefined){if(typeof data77.value !== "string"){const err221 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}else {const err222 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}if(errors > 0){const emErrs37 = [];for(const err223 of vErrors){if(((((err223.keyword !== "errorMessage") && (!err223.emUsed)) && ((err223.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7) || ((err223.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7) === 0) && (err223.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7.length] === "/")))) && (err223.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err223.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs37.push(err223);err223.emUsed = true;}}if(emErrs37.length){const err224 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs37},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}const emErrs38 = [];for(const err225 of vErrors){if(!err225.emUsed){emErrs38.push(err225);}}vErrors = emErrs38;errors = emErrs38.length;}}}else {const err226 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}if(data69.constraints !== undefined){let data80 = data69.constraints;if(data80 && typeof data80 == "object" && !Array.isArray(data80)){if(data80.notEmpty !== undefined){if(typeof data80.notEmpty !== "boolean"){const err227 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}if(data80.minLength !== undefined){if(!(typeof data80.minLength == "number")){const err228 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data80.maxLength !== undefined){if(!(typeof data80.maxLength == "number")){const err229 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}if(data80.pattern !== undefined){let data84 = data80.pattern;const _errs239 = errors;let valid92 = false;let passing3 = null;const _errs240 = errors;if(data84 && typeof data84 == "object" && !Array.isArray(data84)){if(data84.value !== undefined){if(typeof data84.value !== "string"){const err230 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(data84.message !== undefined){if(typeof data84.message !== "string"){const err231 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}}else {const err232 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}var _valid19 = _errs240 === errors;if(_valid19){valid92 = true;passing3 = 0;}const _errs246 = errors;if(typeof data84 !== "string"){const err233 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}var _valid19 = _errs246 === errors;if(_valid19 && valid92){valid92 = false;passing3 = [passing3, 1];}else {if(_valid19){valid92 = true;passing3 = 1;}}if(!valid92){const err234 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}else {errors = _errs239;if(vErrors !== null){if(_errs239){vErrors.length = _errs239;}else {vErrors = null;}}}}}else {const err235 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}if(data69.group !== undefined){if(typeof data69.group !== "string"){const err236 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}}else {const err237 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}else {const err238 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}if(Array.isArray(data68)){const len8 = data68.length;for(let i8=0; i8<len8; i8++){let data88 = data68[i8];const _errs256 = errors;let valid98 = true;const _errs257 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}else {if(data88.binding !== undefined){let data89 = data88.binding;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if((data89.type === undefined) && ("type")){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}else {if(data89.type !== undefined){if(!equal(data89.type, "property")){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}}}}}}var _valid20 = _errs257 === errors;errors = _errs256;if(vErrors !== null){if(_errs256){vErrors.length = _errs256;}else {vErrors = null;}}if(_valid20){const _errs260 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){let data91 = data88.type;if(!(((((data91 === "String") || (data91 === "Text")) || (data91 === "Hidden")) || (data91 === "Dropdown")) || (data91 === "Boolean"))){const err242 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}if(errors > 0){const emErrs39 = [];for(const err243 of vErrors){if(((((err243.keyword !== "errorMessage") && (!err243.emUsed)) && ((err243.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err243.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err243.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err243.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err243.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs39.push(err243);err243.emUsed = true;}}if(emErrs39.length){const err244 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs39},message:"invalid property type " + JSON.stringify(data91) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}const emErrs40 = [];for(const err245 of vErrors){if(!err245.emUsed){emErrs40.push(err245);}}vErrors = emErrs40;errors = emErrs40.length;}}}var _valid20 = _errs260 === errors;valid98 = _valid20;}if(!valid98){const err246 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}const _errs263 = errors;let valid102 = true;const _errs264 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err247 = {};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}else {if(data88.binding !== undefined){let data92 = data88.binding;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if((data92.type === undefined) && ("type")){const err248 = {};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}else {if(data92.type !== undefined){if(!equal(data92.type, "camunda:executionListener")){const err249 = {};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}}}}}}var _valid21 = _errs264 === errors;errors = _errs263;if(vErrors !== null){if(_errs263){vErrors.length = _errs263;}else {vErrors = null;}}if(_valid21){const _errs267 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){if(!(data88.type === "Hidden")){const err250 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if(errors > 0){const emErrs41 = [];for(const err251 of vErrors){if(((((err251.keyword !== "errorMessage") && (!err251.emUsed)) && ((err251.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err251.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err251.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err251.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err251.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs41.push(err251);err251.emUsed = true;}}if(emErrs41.length){const err252 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs41},message:"invalid property type " + JSON.stringify(data88 && data88.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}const emErrs42 = [];for(const err253 of vErrors){if(!err253.emUsed){emErrs42.push(err253);}}vErrors = emErrs42;errors = emErrs42.length;}}}var _valid21 = _errs267 === errors;valid102 = _valid21;}if(!valid102){const err254 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}const _errs270 = errors;let valid106 = true;const _errs271 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err255 = {};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}else {if(data88.binding !== undefined){let data95 = data88.binding;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if((data95.type === undefined) && ("type")){const err256 = {};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}else {if(data95.type !== undefined){let data96 = data95.type;if(!((((((data96 === "camunda:property") || (data96 === "camunda:outputParameter")) || (data96 === "camunda:in")) || (data96 === "camunda:in:businessKey")) || (data96 === "camunda:out")) || (data96 === "camunda:errorEventDefinition"))){const err257 = {};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}}}}}}}var _valid22 = _errs271 === errors;errors = _errs270;if(vErrors !== null){if(_errs270){vErrors.length = _errs270;}else {vErrors = null;}}if(_valid22){const _errs274 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){let data97 = data88.type;if(!(((data97 === "String") || (data97 === "Hidden")) || (data97 === "Dropdown"))){const err258 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}if(errors > 0){const emErrs43 = [];for(const err259 of vErrors){if(((((err259.keyword !== "errorMessage") && (!err259.emUsed)) && ((err259.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err259.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err259.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err259.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err259.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs43.push(err259);err259.emUsed = true;}}if(emErrs43.length){const err260 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs43},message:"invalid property type " + JSON.stringify(data97) + " for binding type " + JSON.stringify(data88 && data88.binding && data88.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}const emErrs44 = [];for(const err261 of vErrors){if(!err261.emUsed){emErrs44.push(err261);}}vErrors = emErrs44;errors = emErrs44.length;}}}var _valid22 = _errs274 === errors;valid106 = _valid22;}if(!valid106){const err262 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}const _errs277 = errors;let valid110 = true;const _errs278 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err263 = {};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}else {if(data88.binding !== undefined){let data98 = data88.binding;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err264 = {};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}else {if(data98.type !== undefined){let data99 = data98.type;if(!((data99 === "camunda:inputParameter") || (data99 === "camunda:field"))){const err265 = {};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}}}}}}var _valid23 = _errs278 === errors;errors = _errs277;if(vErrors !== null){if(_errs277){vErrors.length = _errs277;}else {vErrors = null;}}if(_valid23){const _errs281 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){let data100 = data88.type;if(!((((data100 === "String") || (data100 === "Text")) || (data100 === "Hidden")) || (data100 === "Dropdown"))){const err266 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(errors > 0){const emErrs45 = [];for(const err267 of vErrors){if(((((err267.keyword !== "errorMessage") && (!err267.emUsed)) && ((err267.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err267.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err267.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err267.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err267.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs45.push(err267);err267.emUsed = true;}}if(emErrs45.length){const err268 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs45},message:"invalid property type " + JSON.stringify(data100) + " for binding type " + JSON.stringify(data88 && data88.binding && data88.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}const emErrs46 = [];for(const err269 of vErrors){if(!err269.emUsed){emErrs46.push(err269);}}vErrors = emErrs46;errors = emErrs46.length;}}}var _valid23 = _errs281 === errors;valid110 = _valid23;}if(!valid110){const err270 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.binding === undefined){const err271 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}if(data88.binding !== undefined){let data101 = data88.binding;const _errs286 = errors;let valid116 = true;const _errs287 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}else {if(data101.type !== undefined){let data102 = data101.type;if(!((((data102 === "property") || (data102 === "camunda:property")) || (data102 === "camunda:inputParameter")) || (data102 === "camunda:field"))){const err273 = {};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}}}}var _valid24 = _errs287 === errors;errors = _errs286;if(vErrors !== null){if(_errs286){vErrors.length = _errs286;}else {vErrors = null;}}if(_valid24){const _errs289 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.name === undefined){const err274 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err274];}else {vErrors.push(err274);}errors++;}}if(errors > 0){const emErrs47 = [];for(const err275 of vErrors){if(((((err275.keyword !== "errorMessage") && (!err275.emUsed)) && ((err275.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err275.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err275.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err275.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err275.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs47.push(err275);err275.emUsed = true;}}if(emErrs47.length){const err276 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs47},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires name"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}const emErrs48 = [];for(const err277 of vErrors){if(!err277.emUsed){emErrs48.push(err277);}}vErrors = emErrs48;errors = emErrs48.length;}var _valid24 = _errs289 === errors;valid116 = _valid24;}if(!valid116){const err278 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}const _errs291 = errors;let valid118 = true;const _errs292 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err279 = {};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:outputParameter")){const err280 = {};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}}}var _valid25 = _errs292 === errors;errors = _errs291;if(vErrors !== null){if(_errs291){vErrors.length = _errs291;}else {vErrors = null;}}if(_valid25){const _errs294 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.source === undefined){const err281 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err281];}else {vErrors.push(err281);}errors++;}}if(errors > 0){const emErrs49 = [];for(const err282 of vErrors){if(((((err282.keyword !== "errorMessage") && (!err282.emUsed)) && ((err282.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err282.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err282.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err282.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err282.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs49.push(err282);err282.emUsed = true;}}if(emErrs49.length){const err283 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs49},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires source"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}const emErrs50 = [];for(const err284 of vErrors){if(!err284.emUsed){emErrs50.push(err284);}}vErrors = emErrs50;errors = emErrs50.length;}var _valid25 = _errs294 === errors;valid118 = _valid25;}if(!valid118){const err285 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}const _errs296 = errors;let valid120 = true;const _errs297 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err286 = {};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:in")){const err287 = {};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}}}var _valid26 = _errs297 === errors;errors = _errs296;if(vErrors !== null){if(_errs296){vErrors.length = _errs296;}else {vErrors = null;}}if(_valid26){const _errs299 = errors;const _errs300 = errors;let valid122 = false;const _errs301 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err288 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err288];}else {vErrors.push(err288);}errors++;}}var _valid27 = _errs301 === errors;valid122 = valid122 || _valid27;if(!valid122){const _errs302 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.target === undefined){const err289 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err289];}else {vErrors.push(err289);}errors++;}}var _valid27 = _errs302 === errors;valid122 = valid122 || _valid27;}if(!valid122){const err290 = {keyword:"anyOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err290];}else {vErrors.push(err290);}errors++;}else {errors = _errs300;if(vErrors !== null){if(_errs300){vErrors.length = _errs300;}else {vErrors = null;}}}if(errors > 0){const emErrs51 = [];for(const err291 of vErrors){if(((((err291.keyword !== "errorMessage") && (!err291.emUsed)) && ((err291.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err291.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err291.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err291.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err291.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs51.push(err291);err291.emUsed = true;}}if(emErrs51.length){const err292 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs51},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}const emErrs52 = [];for(const err293 of vErrors){if(!err293.emUsed){emErrs52.push(err293);}}vErrors = emErrs52;errors = emErrs52.length;}var _valid26 = _errs299 === errors;valid120 = _valid26;}if(!valid120){const err294 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}const _errs304 = errors;let valid123 = true;const _errs305 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err295 = {};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:out")){const err296 = {};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}}}var _valid28 = _errs305 === errors;errors = _errs304;if(vErrors !== null){if(_errs304){vErrors.length = _errs304;}else {vErrors = null;}}if(_valid28){const _errs307 = errors;const _errs308 = errors;let valid125 = false;let passing4 = null;const _errs309 = errors;const _errs310 = errors;const _errs311 = errors;const _errs312 = errors;let valid127 = false;const _errs313 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.source === undefined) && ("source")){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}var _valid30 = _errs313 === errors;valid127 = valid127 || _valid30;if(!valid127){const _errs314 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.sourceExpression === undefined) && ("sourceExpression")){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}var _valid30 = _errs314 === errors;valid127 = valid127 || _valid30;}if(!valid127){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}else {errors = _errs312;if(vErrors !== null){if(_errs312){vErrors.length = _errs312;}else {vErrors = null;}}}var valid126 = _errs311 === errors;if(!valid126){errors = _errs310;if(vErrors !== null){if(_errs310){vErrors.length = _errs310;}else {vErrors = null;}}}else {const err300 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err300];}else {vErrors.push(err300);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err301 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err301];}else {vErrors.push(err301);}errors++;}}var _valid29 = _errs309 === errors;if(_valid29){valid125 = true;passing4 = 0;}const _errs315 = errors;const _errs316 = errors;const _errs317 = errors;const _errs318 = errors;let valid129 = false;const _errs319 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.variables === undefined) && ("variables")){const err302 = {};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}var _valid31 = _errs319 === errors;valid129 = valid129 || _valid31;if(!valid129){const _errs320 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.sourceExpression === undefined) && ("sourceExpression")){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}var _valid31 = _errs320 === errors;valid129 = valid129 || _valid31;}if(!valid129){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}else {errors = _errs318;if(vErrors !== null){if(_errs318){vErrors.length = _errs318;}else {vErrors = null;}}}var valid128 = _errs317 === errors;if(!valid128){errors = _errs316;if(vErrors !== null){if(_errs316){vErrors.length = _errs316;}else {vErrors = null;}}}else {const err305 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err305];}else {vErrors.push(err305);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.source === undefined){const err306 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err306];}else {vErrors.push(err306);}errors++;}}var _valid29 = _errs315 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 1];}else {if(_valid29){valid125 = true;passing4 = 1;}const _errs321 = errors;const _errs322 = errors;const _errs323 = errors;const _errs324 = errors;let valid131 = false;const _errs325 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.variables === undefined) && ("variables")){const err307 = {};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}}var _valid32 = _errs325 === errors;valid131 = valid131 || _valid32;if(!valid131){const _errs326 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.source === undefined) && ("source")){const err308 = {};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}var _valid32 = _errs326 === errors;valid131 = valid131 || _valid32;}if(!valid131){const err309 = {};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}else {errors = _errs324;if(vErrors !== null){if(_errs324){vErrors.length = _errs324;}else {vErrors = null;}}}var valid130 = _errs323 === errors;if(!valid130){errors = _errs322;if(vErrors !== null){if(_errs322){vErrors.length = _errs322;}else {vErrors = null;}}}else {const err310 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err310];}else {vErrors.push(err310);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.sourceExpression === undefined){const err311 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err311];}else {vErrors.push(err311);}errors++;}}var _valid29 = _errs321 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 2];}else {if(_valid29){valid125 = true;passing4 = 2;}const _errs327 = errors;const _errs328 = errors;const _errs329 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.source === undefined) && ("source")){const err312 = {};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}}var valid132 = _errs329 === errors;if(!valid132){errors = _errs328;if(vErrors !== null){if(_errs328){vErrors.length = _errs328;}else {vErrors = null;}}}else {const err313 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err313];}else {vErrors.push(err313);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err314 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err314];}else {vErrors.push(err314);}errors++;}if(data101.sourceExpression === undefined){const err315 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err315];}else {vErrors.push(err315);}errors++;}}var _valid29 = _errs327 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 3];}else {if(_valid29){valid125 = true;passing4 = 3;}const _errs330 = errors;const _errs331 = errors;const _errs332 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.sourceExpression === undefined) && ("sourceExpression")){const err316 = {};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}}var valid133 = _errs332 === errors;if(!valid133){errors = _errs331;if(vErrors !== null){if(_errs331){vErrors.length = _errs331;}else {vErrors = null;}}}else {const err317 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err317];}else {vErrors.push(err317);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err318 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err318];}else {vErrors.push(err318);}errors++;}if(data101.source === undefined){const err319 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err319];}else {vErrors.push(err319);}errors++;}}var _valid29 = _errs330 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 4];}else {if(_valid29){valid125 = true;passing4 = 4;}}}}}if(!valid125){const err320 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing4},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}else {errors = _errs308;if(vErrors !== null){if(_errs308){vErrors.length = _errs308;}else {vErrors = null;}}}if(errors > 0){const emErrs53 = [];for(const err321 of vErrors){if(((((err321.keyword !== "errorMessage") && (!err321.emUsed)) && ((err321.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err321.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err321.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err321.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err321.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs53.push(err321);err321.emUsed = true;}}if(emErrs53.length){const err322 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs53},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}const emErrs54 = [];for(const err323 of vErrors){if(!err323.emUsed){emErrs54.push(err323);}}vErrors = emErrs54;errors = emErrs54.length;}var _valid28 = _errs307 === errors;valid123 = _valid28;}if(!valid123){const err324 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}const _errs334 = errors;let valid134 = true;const _errs335 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err325 = {};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:errorEventDefinition")){const err326 = {};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}}}}var _valid33 = _errs335 === errors;errors = _errs334;if(vErrors !== null){if(_errs334){vErrors.length = _errs334;}else {vErrors = null;}}if(_valid33){const _errs337 = errors;const _errs338 = errors;let valid136 = false;let passing5 = null;const _errs339 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.errorRef === undefined){const err327 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err327];}else {vErrors.push(err327);}errors++;}}var _valid34 = _errs339 === errors;if(_valid34){valid136 = true;passing5 = 0;}if(!valid136){const err328 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing5},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}else {errors = _errs338;if(vErrors !== null){if(_errs338){vErrors.length = _errs338;}else {vErrors = null;}}}if(errors > 0){const emErrs55 = [];for(const err329 of vErrors){if(((((err329.keyword !== "errorMessage") && (!err329.emUsed)) && ((err329.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err329.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err329.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err329.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err329.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs55.push(err329);err329.emUsed = true;}}if(emErrs55.length){const err330 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs55},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires errorRef"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}const emErrs56 = [];for(const err331 of vErrors){if(!err331.emUsed){emErrs56.push(err331);}}vErrors = emErrs56;errors = emErrs56.length;}var _valid33 = _errs337 === errors;valid134 = _valid33;}if(!valid134){const err332 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.type === undefined){const err333 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}if(data101.type !== undefined){let data107 = data101.type;if(typeof data107 !== "string"){const err334 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if(!((((((((((data107 === "property") || (data107 === "camunda:property")) || (data107 === "camunda:inputParameter")) || (data107 === "camunda:outputParameter")) || (data107 === "camunda:in")) || (data107 === "camunda:out")) || (data107 === "camunda:in:businessKey")) || (data107 === "camunda:executionListener")) || (data107 === "camunda:field")) || (data107 === "camunda:errorEventDefinition"))){const err335 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema20.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}if(errors > 0){const emErrs57 = [];for(const err336 of vErrors){if(((((err336.keyword !== "errorMessage") && (!err336.emUsed)) && ((err336.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type") || ((err336.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type") === 0) && (err336.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type".length] === "/")))) && (err336.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err336.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs57.push(err336);err336.emUsed = true;}}if(emErrs57.length){const err337 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs57},message:"invalid property.binding type " + JSON.stringify(data107) + "; 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 = [err337];}else {vErrors.push(err337);}errors++;}const emErrs58 = [];for(const err338 of vErrors){if(!err338.emUsed){emErrs58.push(err338);}}vErrors = emErrs58;errors = emErrs58.length;}}if(data101.name !== undefined){if(typeof data101.name !== "string"){const err339 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}if(data101.event !== undefined){if(typeof data101.event !== "string"){const err340 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}}if(data101.scriptFormat !== undefined){if(typeof data101.scriptFormat !== "string"){const err341 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}}if(data101.source !== undefined){if(typeof data101.source !== "string"){const err342 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}if(data101.target !== undefined){if(typeof data101.target !== "string"){const err343 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}if(data101.expression !== undefined){if(typeof data101.expression !== "boolean"){const err344 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}if(data101.variables !== undefined){let data114 = data101.variables;if(typeof data114 !== "string"){const err345 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}if(!((data114 === "all") || (data114 === "local"))){const err346 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema20.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}}if(data101.sourceExpression !== undefined){if(typeof data101.sourceExpression !== "string"){const err347 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}}}else {const err348 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}}else {const err349 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}if(errors > 0){const emErrors7 = {"required":{"binding":[]}};const templates7 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i8) + "\""}}};let emPropParams4;let emParamsErrors4;for(const err350 of vErrors){if((((((err350.keyword !== "errorMessage") && (!err350.emUsed)) && (err350.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8)) && (err350.keyword in emErrors7)) && (err350.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err350.schemaPath.slice(38)))){emPropParams4 = obj0$1[err350.keyword];emParamsErrors4 = emErrors7[err350.keyword][err350.params[emPropParams4]];if(emParamsErrors4){emParamsErrors4.push(err350);err350.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp4 in emErrors7[key7]){emParamsErrors4 = emErrors7[key7][keyProp4];if(emParamsErrors4.length){const tmpl4 = templates7[key7] && templates7[key7][keyProp4];const err351 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors4},message:tmpl4 ? tmpl4() : schema20.items.errorMessage[key7][keyProp4]};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}}}const emErrs59 = [];for(const err352 of vErrors){if(!err352.emUsed){emErrs59.push(err352);}}vErrors = emErrs59;errors = emErrs59.length;}}}else {const err353 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}}}else {const err354 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}if(errors > 0){const emErrors8 = {"required":{"type":[],"properties":[]}};const templates8 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data65 && data65.type) + ", missing properties=[]"}}};let emPropParams5;let emParamsErrors5;for(const err355 of vErrors){if((((((err355.keyword !== "errorMessage") && (!err355.emUsed)) && (err355.dataPath === dataPath+"/scopes/" + i5)) && (err355.keyword in emErrors8)) && (err355.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err355.schemaPath.slice(25)))){emPropParams5 = obj0$1[err355.keyword];emParamsErrors5 = emErrors8[err355.keyword][err355.params[emPropParams5]];if(emParamsErrors5){emParamsErrors5.push(err355);err355.emUsed = true;}}}for(const key8 in emErrors8){for(const keyProp5 in emErrors8[key8]){emParamsErrors5 = emErrors8[key8][keyProp5];if(emParamsErrors5.length){const tmpl5 = templates8[key8] && templates8[key8][keyProp5];const err356 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/errorMessage",params:{errors: emParamsErrors5},message:tmpl5 ? tmpl5() : schema17$1.properties.scopes.items.errorMessage[key8][keyProp5]};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}}}const emErrs60 = [];for(const err357 of vErrors){if(!err357.emUsed){emErrs60.push(err357);}}vErrors = emErrs60;errors = emErrs60.length;}}}else {const err358 = {keyword:"type",dataPath:dataPath+"/scopes",schemaPath:"#/properties/scopes/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}}}else {const err359 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}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;}
56
56
  standaloneValidator.default = _default$1;
57
57
 
58
58
  var escapedChars = {
@@ -664,9 +664,9 @@ function validateAll(objects) {
664
664
  }
665
665
 
666
666
  var name = "@camunda/zeebe-element-templates-json-schema";
667
- var version = "0.4.0";
667
+ var version = "0.4.1";
668
668
 
669
- var standaloneZeebeValidator = validate14;var _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":"number","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."},"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]+$","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}]}}},"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"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"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"}}}},"documentationRef":{"$id":"#/documentaionRef","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"},"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"}}}}};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":{"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."}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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:taskHeader","zeebe:taskDefinition:type"]}},"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"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output }"}},"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"]}}],"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:input"]}},"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"}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:taskDefinition:type"},{"type":"zeebe:taskHeader","key":"key"}]}],"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:taskHeader"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"},"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)."}}},"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"]}}}}]};const pattern0 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern2 = new RegExp("^(https|http)://.*", "u");const pattern3 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};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){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};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.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0.test(data6)){const err9 = {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 = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {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 = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.elementType !== undefined){let data7 = data.elementType;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.value !== undefined){let data8 = data7.value;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err15 = {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 = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {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 = [err16];}else {vErrors.push(err16);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err17 of vErrors){if((((((err17.keyword !== "errorMessage") && (!err17.emUsed)) && (err17.dataPath === dataPath+"/elementType/value")) && (err17.keyword in emErrors1)) && (err17.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err17.schemaPath.slice(49)))){emErrors1[err17.keyword].push(err17);err17.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err18 = {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 = [err18];}else {vErrors.push(err18);}errors++;}}const emErrs1 = [];for(const err19 of vErrors){if(!err19.emUsed){emErrs1.push(err19);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err20 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.metadata !== undefined){let data9 = data.metadata;if(!(data9 && typeof data9 == "object" && !Array.isArray(data9))){const err21 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.groups !== undefined){let data11 = data.groups;if(Array.isArray(data11)){const len1 = data11.length;for(let i1=0; i1<len1; i1++){let data12 = data11[i1];if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.id === undefined){const err23 = {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 = [err23];}else {vErrors.push(err23);}errors++;}if(data12.label === undefined){const err24 = {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 = [err24];}else {vErrors.push(err24);}errors++;}if(data12.id !== undefined){if(typeof data12.id !== "string"){const err25 = {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 = [err25];}else {vErrors.push(err25);}errors++;}}if(data12.label !== undefined){if(typeof data12.label !== "string"){const err26 = {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 = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(errors > 0){const emErrors2 = {"required":{"id":[],"label":[]}};const templates2 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err28 of vErrors){if((((((err28.keyword !== "errorMessage") && (!err28.emUsed)) && (err28.dataPath === dataPath+"/groups/" + i1)) && (err28.keyword in emErrors2)) && (err28.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err28.schemaPath.slice(33)))){emPropParams0 = obj0[err28.keyword];emParamsErrors0 = emErrors2[err28.keyword][err28.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err28);err28.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 err29 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.groups.items.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}const emErrs2 = [];for(const err30 of vErrors){if(!err30.emUsed){emErrs2.push(err30);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err31 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.documentationRef !== undefined){let data15 = data.documentationRef;if(typeof data15 === "string"){if(!pattern2.test(data15)){const err32 = {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 = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(errors > 0){const emErrors3 = {"pattern":[]};const templates3 = {};for(const err34 of vErrors){if((((((err34.keyword !== "errorMessage") && (!err34.emUsed)) && (err34.dataPath === dataPath+"/documentationRef")) && (err34.keyword in emErrors3)) && (err34.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err34.schemaPath.slice(37)))){emErrors3[err34.keyword].push(err34);err34.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err35 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema17.allOf[0].properties.documentationRef.errorMessage[key3]};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}const emErrs3 = [];for(const err36 of vErrors){if(!err36.emUsed){emErrs3.push(err36);}}vErrors = emErrs3;errors = emErrs3.length;}}}if(errors > 0){const emErrors4 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates4 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err37 of vErrors){if((((((err37.keyword !== "errorMessage") && (!err37.emUsed)) && (err37.dataPath === dataPath)) && (err37.keyword in emErrors4)) && (err37.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err37.schemaPath.slice(9)))){emPropParams1 = obj0[err37.keyword];emParamsErrors1 = emErrors4[err37.keyword][err37.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err37);err37.emUsed = true;}}}for(const key4 in emErrors4){for(const keyProp1 in emErrors4[key4]){emParamsErrors1 = emErrors4[key4][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates4[key4] && templates4[key4][keyProp1];const err38 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].errorMessage[key4][keyProp1]};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}const emErrs4 = [];for(const err39 of vErrors){if(!err39.emUsed){emErrs4.push(err39);}}vErrors = emErrs4;errors = emErrs4.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data16 = data.properties;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];const _errs41 = errors;let valid18 = true;const _errs42 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if((data17.type === undefined) && ("type")){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {if(data17.type !== undefined){if(!equal(data17.type, "Dropdown")){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}}var _valid0 = _errs42 === errors;errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}if(_valid0){const _errs44 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.choices === undefined){const err42 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(errors > 0){const emErrs5 = [];for(const err43 of vErrors){if(((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && ((err43.dataPath === dataPath+"/properties/" + i2) || ((err43.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err43.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err43.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs5.push(err43);err43.emUsed = true;}}if(emErrs5.length){const err44 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs5},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}const emErrs6 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs6.push(err45);}}vErrors = emErrs6;errors = emErrs6.length;}var _valid0 = _errs44 === errors;valid18 = _valid0;}if(!valid18){const err46 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){let data19 = data17.value;if((typeof data19 !== "string") && (typeof data19 !== "boolean")){const err47 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data17.description !== undefined){if(typeof data17.description !== "string"){const err48 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err49 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data17.type !== undefined){if(typeof data17.type !== "string"){const err50 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data17.editable !== undefined){if(typeof data17.editable !== "boolean"){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data17.choices !== undefined){let data24 = data17.choices;if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err52 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data25.name === undefined){const err53 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data25.name !== undefined){if(typeof data25.name !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data25.value !== undefined){if(typeof data25.value !== "string"){const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(errors > 0){const emErrs7 = [];for(const err57 of vErrors){if(((((err57.keyword !== "errorMessage") && (!err57.emUsed)) && ((err57.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err57.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err57.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err57.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err57.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs7.push(err57);err57.emUsed = true;}}if(emErrs7.length){const err58 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs7},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}const emErrs8 = [];for(const err59 of vErrors){if(!err59.emUsed){emErrs8.push(err59);}}vErrors = emErrs8;errors = emErrs8.length;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data17.constraints !== undefined){let data28 = data17.constraints;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.notEmpty !== undefined){if(typeof data28.notEmpty !== "boolean"){const err61 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data28.minLength !== undefined){if(!(typeof data28.minLength == "number")){const err62 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data28.maxLength !== undefined){if(!(typeof data28.maxLength == "number")){const err63 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data28.pattern !== undefined){let data32 = data28.pattern;const _errs72 = errors;let valid26 = false;let passing0 = null;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){if(typeof data32.value !== "string"){const err64 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data32.message !== undefined){if(typeof data32.message !== "string"){const err65 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}else {const err66 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid1 = _errs73 === errors;if(_valid1){valid26 = true;passing0 = 0;}const _errs79 = errors;if(typeof data32 !== "string"){const err67 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid1 = _errs79 === errors;if(_valid1 && valid26){valid26 = false;passing0 = [passing0, 1];}else {if(_valid1){valid26 = true;passing0 = 1;}}if(!valid26){const err68 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}}}else {const err69 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data17.group !== undefined){if(typeof data17.group !== "string"){const err70 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(Array.isArray(data16)){const len4 = data16.length;for(let i4=0; i4<len4; i4++){let data36 = data16[i4];const _errs88 = errors;let valid31 = true;const _errs89 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data37.type !== undefined){if(!equal(data37.type, "property")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var _valid2 = _errs89 === errors;errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}if(_valid2){const _errs92 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err76 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err76];}else {vErrors.push(err76);}errors++;}if(errors > 0){const emErrs9 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.dataPath === dataPath+"/properties/" + i4+"/type") || ((err77.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err77.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err77.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err77.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs9.push(err77);err77.emUsed = true;}}if(emErrs9.length){const err78 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs10 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs10.push(err79);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid2 = _errs92 === errors;valid31 = _valid2;}if(!valid31){const err80 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const _errs95 = errors;let valid35 = true;const _errs96 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!((((data41 === "zeebe:input") || (data41 === "zeebe:output")) || (data41 === "zeebe:taskHeader")) || (data41 === "zeebe:taskDefinition:type"))){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}}}}}var _valid3 = _errs96 === errors;errors = _errs95;if(vErrors !== null){if(_errs95){vErrors.length = _errs95;}else {vErrors = null;}}if(_valid3){const _errs99 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data42 = data36.type;if(!((((data42 === "String") || (data42 === "Text")) || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err84 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err84];}else {vErrors.push(err84);}errors++;}if(errors > 0){const emErrs11 = [];for(const err85 of vErrors){if(((((err85.keyword !== "errorMessage") && (!err85.emUsed)) && ((err85.dataPath === dataPath+"/properties/" + i4+"/type") || ((err85.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err85.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err85.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err85.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs11.push(err85);err85.emUsed = true;}}if(emErrs11.length){const err86 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const emErrs12 = [];for(const err87 of vErrors){if(!err87.emUsed){emErrs12.push(err87);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid3 = _errs99 === errors;valid35 = _valid3;}if(!valid35){const err88 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const _errs102 = errors;let valid39 = true;const _errs103 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}var _valid4 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid4){const _errs105 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding !== undefined){let data44 = data36.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type === undefined){const err91 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data44.type !== undefined){let data45 = data44.type;if(!((data45 === "zeebe:input") || (data45 === "zeebe:output"))){const err92 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/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 = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrs13 = [];for(const err93 of vErrors){if(((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && ((err93.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err93.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err93.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err93.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err93.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs13.push(err93);err93.emUsed = true;}}if(emErrs13.length){const err94 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs13},message:"optional is not supported for binding type " + JSON.stringify(data45) + "; must be any of { zeebe:input, zeebe:output }"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const emErrs14 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs14.push(err95);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid4 = _errs105 === errors;valid39 = _valid4;}if(!valid39){const err96 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const _errs109 = errors;let valid43 = true;const _errs110 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}}var _valid5 = _errs110 === errors;errors = _errs109;if(vErrors !== null){if(_errs109){vErrors.length = _errs109;}else {vErrors = null;}}if(_valid5){const _errs112 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.constraints !== undefined){let data47 = data36.constraints;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.notEmpty === undefined){const err99 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/constraints",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data47.notEmpty !== undefined){if(!equal(data47.notEmpty, false)){const err100 = {keyword:"const",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(errors > 0){const emErrs15 = [];for(const err101 of vErrors){if(((((err101.keyword !== "errorMessage") && (!err101.emUsed)) && ((err101.dataPath === dataPath+"/properties/" + i4+"/constraints/notEmpty") || ((err101.dataPath.indexOf(dataPath+"/properties/" + i4+"/constraints/notEmpty") === 0) && (err101.dataPath[dataPath+"/properties/" + i4+"/constraints/notEmpty".length] === "/")))) && (err101.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err101.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs15.push(err101);err101.emUsed = true;}}if(emErrs15.length){const err102 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs15},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}const emErrs16 = [];for(const err103 of vErrors){if(!err103.emUsed){emErrs16.push(err103);}}vErrors = emErrs16;errors = emErrs16.length;}}}}}var _valid5 = _errs112 === errors;valid43 = _valid5;}if(!valid43){const err104 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}const _errs116 = errors;let valid47 = true;const _errs117 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.feel === undefined) && ("feel")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data36.feel !== undefined){const _errs119 = errors;const _errs120 = errors;if(!equal(data36.feel, schema18.allOf[1].items.allOf[4].if.properties.feel.not.const)){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}var valid49 = _errs120 === errors;if(!valid49){errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}else {const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}}var _valid6 = _errs117 === errors;errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}if(_valid6){const _errs121 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type === undefined){const err108 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data36.type !== undefined){let data50 = data36.type;if(!((data50 === "String") || (data50 === "Text"))){const err109 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err109];}else {vErrors.push(err109);}errors++;}if(errors > 0){const emErrs17 = [];for(const err110 of vErrors){if(((((err110.keyword !== "errorMessage") && (!err110.emUsed)) && ((err110.dataPath === dataPath+"/properties/" + i4+"/type") || ((err110.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err110.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err110.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err110.schemaPath["#/definitions/properties/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs17.push(err110);err110.emUsed = true;}}if(emErrs17.length){const err111 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs17},message:"feel is only supported for \"String\" and \"Text\" type"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const emErrs18 = [];for(const err112 of vErrors){if(!err112.emUsed){emErrs18.push(err112);}}vErrors = emErrs18;errors = emErrs18.length;}}}var _valid6 = _errs121 === errors;valid47 = _valid6;}if(!valid47){const err113 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err114 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data36.binding !== undefined){let data51 = data36.binding;const _errs126 = errors;let valid53 = true;const _errs127 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {if(data51.type !== undefined){let data52 = data51.type;if(!((data52 === "property") || (data52 === "zeebe:input"))){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}}var _valid7 = _errs127 === errors;errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}if(_valid7){const _errs129 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.name === undefined){const err117 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err117];}else {vErrors.push(err117);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err118 of vErrors){if(((((err118.keyword !== "errorMessage") && (!err118.emUsed)) && ((err118.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err118.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err118.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err118.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err118.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs19.push(err118);err118.emUsed = true;}}if(emErrs19.length){const err119 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires name"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}const emErrs20 = [];for(const err120 of vErrors){if(!err120.emUsed){emErrs20.push(err120);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid7 = _errs129 === errors;valid53 = _valid7;}if(!valid53){const err121 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const _errs131 = errors;let valid55 = true;const _errs132 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:output")){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}}var _valid8 = _errs132 === errors;errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}if(_valid8){const _errs134 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.source === undefined){const err124 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err124];}else {vErrors.push(err124);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err125 of vErrors){if(((((err125.keyword !== "errorMessage") && (!err125.emUsed)) && ((err125.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err125.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err125.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err125.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err125.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs21.push(err125);err125.emUsed = true;}}if(emErrs21.length){const err126 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires source"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const emErrs22 = [];for(const err127 of vErrors){if(!err127.emUsed){emErrs22.push(err127);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid8 = _errs134 === errors;valid55 = _valid8;}if(!valid55){const err128 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}const _errs136 = errors;let valid57 = true;const _errs137 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:taskHeader")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}}var _valid9 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid9){const _errs139 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.key === undefined){const err131 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(errors > 0){const emErrs23 = [];for(const err132 of vErrors){if(((((err132.keyword !== "errorMessage") && (!err132.emUsed)) && ((err132.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err132.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err132.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err132.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err132.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs23.push(err132);err132.emUsed = true;}}if(emErrs23.length){const err133 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires key"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}const emErrs24 = [];for(const err134 of vErrors){if(!err134.emUsed){emErrs24.push(err134);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid9 = _errs139 === errors;valid57 = _valid9;}if(!valid57){const err135 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.type === undefined){const err136 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(data51.type !== undefined){let data55 = data51.type;if(typeof data55 !== "string"){const err137 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(!(((((data55 === "property") || (data55 === "zeebe:taskDefinition:type")) || (data55 === "zeebe:input")) || (data55 === "zeebe:output")) || (data55 === "zeebe:taskHeader"))){const err138 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/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 = [err138];}else {vErrors.push(err138);}errors++;}if(errors > 0){const emErrs25 = [];for(const err139 of vErrors){if(((((err139.keyword !== "errorMessage") && (!err139.emUsed)) && ((err139.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err139.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err139.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err139.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err139.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err139);err139.emUsed = true;}}if(emErrs25.length){const err140 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data55) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const emErrs26 = [];for(const err141 of vErrors){if(!err141.emUsed){emErrs26.push(err141);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data51.name !== undefined){if(typeof data51.name !== "string"){const err142 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}if(data51.source !== undefined){if(typeof data51.source !== "string"){const err143 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data51.key !== undefined){if(typeof data51.key !== "string"){const err144 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/key",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}}else {const err145 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data36.optional !== undefined){if(typeof data36.optional !== "boolean"){const err146 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/optional",schemaPath:"#/definitions/properties/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data36.feel !== undefined){let data60 = data36.feel;if(typeof data60 !== "string"){const err147 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if(!(((data60 === null) || (data60 === "optional")) || (data60 === "required"))){const err148 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/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 = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(errors > 0){const emErrors5 = {"required":{"binding":[]}};const templates5 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err150 of vErrors){if((((((err150.keyword !== "errorMessage") && (!err150.emUsed)) && (err150.dataPath === dataPath+"/properties/" + i4)) && (err150.keyword in emErrors5)) && (err150.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err150.schemaPath.slice(38)))){emPropParams2 = obj0[err150.keyword];emParamsErrors2 = emErrors5[err150.keyword][err150.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err150);err150.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 err151 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}const emErrs27 = [];for(const err152 of vErrors){if(!err152.emUsed){emErrs27.push(err152);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err153 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(data.icon !== undefined){let data61 = data.icon;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.contents === undefined){const err154 = {keyword:"required",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/required",params:{missingProperty: "contents"},message:"should have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(data61.contents !== undefined){let data62 = data61.contents;if(typeof data62 === "string"){if(!pattern3.test(data62)){const err155 = {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 = [err155];}else {vErrors.push(err155);}errors++;}}else {const err156 = {keyword:"type",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err157 of vErrors){if((((((err157.keyword !== "errorMessage") && (!err157.emUsed)) && (err157.dataPath === dataPath+"/icon/contents")) && (err157.keyword in emErrors6)) && (err157.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err157.schemaPath.slice(37)))){emErrors6[err157.keyword].push(err157);err157.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err158 = {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 = [err158];}else {vErrors.push(err158);}errors++;}}const emErrs28 = [];for(const err159 of vErrors){if(!err159.emUsed){emErrs28.push(err159);}}vErrors = emErrs28;errors = emErrs28.length;}}}else {const err160 = {keyword:"type",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err161 of vErrors){if((((((err161.keyword !== "errorMessage") && (!err161.emUsed)) && (err161.dataPath === dataPath+"/icon")) && (err161.keyword in emErrors7)) && (err161.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err161.schemaPath.slice(17)))){emPropParams3 = obj0[err161.keyword];emParamsErrors3 = emErrors7[err161.keyword][err161.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err161);err161.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 err162 = {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 = [err162];}else {vErrors.push(err162);}errors++;}}}const emErrs29 = [];for(const err163 of vErrors){if(!err163.emUsed){emErrs29.push(err163);}}vErrors = emErrs29;errors = emErrs29.length;}}}else {const err164 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}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;}
669
+ var standaloneZeebeValidator = validate14;var _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":"number","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."},"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]+$","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"errorMessage":{"required":{"value":"missing elementType value"}},"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}]}}},"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"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"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"}}}},"documentationRef":{"$id":"#/documentaionRef","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"},"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"}}}}};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":{"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."}},"required":["value","name"],"errorMessage":"{ name, value } must be specified for \"Dropdown\" choices"}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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:taskHeader","zeebe:taskDefinition:type"]}},"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"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output }"}},"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"]}}],"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:input"]}},"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"}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:taskDefinition:type"},{"type":"zeebe:taskHeader","key":"key"}]}],"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:taskHeader"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"},"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)."}}},"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"]}}}}]};const pattern0 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern2 = new RegExp("^(https|http)://.*", "u");const pattern3 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};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){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};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.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0.test(data6)){const err9 = {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 = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {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 = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.elementType !== undefined){let data7 = data.elementType;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.value === undefined){const err15 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data7.value !== undefined){let data8 = data7.value;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err16 = {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 = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {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 = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/elementType/value")) && (err18.keyword in emErrors1)) && (err18.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(49)))){emErrors1[err18.keyword].push(err18);err18.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err19 = {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 = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs1 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs1.push(err20);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/elementType")) && (err22.keyword in emErrors2)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(32)))){emPropParams0 = obj0[err22.keyword];emParamsErrors0 = emErrors2[err22.keyword][err22.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err22);err22.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 err23 = {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 = [err23];}else {vErrors.push(err23);}errors++;}}}const emErrs2 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs2.push(err24);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data9 = data.metadata;if(!(data9 && typeof data9 == "object" && !Array.isArray(data9))){const err25 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err26 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.groups !== undefined){let data11 = data.groups;if(Array.isArray(data11)){const len1 = data11.length;for(let i1=0; i1<len1; i1++){let data12 = data11[i1];if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.id === undefined){const err27 = {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 = [err27];}else {vErrors.push(err27);}errors++;}if(data12.label === undefined){const err28 = {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 = [err28];}else {vErrors.push(err28);}errors++;}if(data12.id !== undefined){if(typeof data12.id !== "string"){const err29 = {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 = [err29];}else {vErrors.push(err29);}errors++;}}if(data12.label !== undefined){if(typeof data12.label !== "string"){const err30 = {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 = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}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 err32 of vErrors){if((((((err32.keyword !== "errorMessage") && (!err32.emUsed)) && (err32.dataPath === dataPath+"/groups/" + i1)) && (err32.keyword in emErrors3)) && (err32.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err32.schemaPath.slice(33)))){emPropParams1 = obj0[err32.keyword];emParamsErrors1 = emErrors3[err32.keyword][err32.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err32);err32.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 err33 = {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 = [err33];}else {vErrors.push(err33);}errors++;}}}const emErrs3 = [];for(const err34 of vErrors){if(!err34.emUsed){emErrs3.push(err34);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err35 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.documentationRef !== undefined){let data15 = data.documentationRef;if(typeof data15 === "string"){if(!pattern2.test(data15)){const err36 = {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 = [err36];}else {vErrors.push(err36);}errors++;}}else {const err37 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err38 of vErrors){if((((((err38.keyword !== "errorMessage") && (!err38.emUsed)) && (err38.dataPath === dataPath+"/documentationRef")) && (err38.keyword in emErrors4)) && (err38.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err38.schemaPath.slice(37)))){emErrors4[err38.keyword].push(err38);err38.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err39 = {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 = [err39];}else {vErrors.push(err39);}errors++;}}const emErrs4 = [];for(const err40 of vErrors){if(!err40.emUsed){emErrs4.push(err40);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err41 of vErrors){if((((((err41.keyword !== "errorMessage") && (!err41.emUsed)) && (err41.dataPath === dataPath)) && (err41.keyword in emErrors5)) && (err41.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err41.schemaPath.slice(9)))){emPropParams2 = obj0[err41.keyword];emParamsErrors2 = emErrors5[err41.keyword][err41.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err41);err41.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 err42 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}const emErrs5 = [];for(const err43 of vErrors){if(!err43.emUsed){emErrs5.push(err43);}}vErrors = emErrs5;errors = emErrs5.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data16 = data.properties;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];const _errs41 = errors;let valid18 = true;const _errs42 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if((data17.type === undefined) && ("type")){const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}else {if(data17.type !== undefined){if(!equal(data17.type, "Dropdown")){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}}var _valid0 = _errs42 === errors;errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}if(_valid0){const _errs44 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.choices === undefined){const err46 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(errors > 0){const emErrs6 = [];for(const err47 of vErrors){if(((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && ((err47.dataPath === dataPath+"/properties/" + i2) || ((err47.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err47.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err47.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs6.push(err47);err47.emUsed = true;}}if(emErrs6.length){const err48 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs6},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}const emErrs7 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs7.push(err49);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid0 = _errs44 === errors;valid18 = _valid0;}if(!valid18){const err50 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){let data19 = data17.value;if((typeof data19 !== "string") && (typeof data19 !== "boolean")){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data17.description !== undefined){if(typeof data17.description !== "string"){const err52 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err53 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data17.type !== undefined){if(typeof data17.type !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data17.editable !== undefined){if(typeof data17.editable !== "boolean"){const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data17.choices !== undefined){let data24 = data17.choices;if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err56 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data25.name === undefined){const err57 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data25.name !== undefined){if(typeof data25.name !== "string"){const err58 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data25.value !== undefined){if(typeof data25.value !== "string"){const err59 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(errors > 0){const emErrs8 = [];for(const err61 of vErrors){if(((((err61.keyword !== "errorMessage") && (!err61.emUsed)) && ((err61.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err61.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err61.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err61.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err61.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs8.push(err61);err61.emUsed = true;}}if(emErrs8.length){const err62 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs8},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const emErrs9 = [];for(const err63 of vErrors){if(!err63.emUsed){emErrs9.push(err63);}}vErrors = emErrs9;errors = emErrs9.length;}}}else {const err64 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data17.constraints !== undefined){let data28 = data17.constraints;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.notEmpty !== undefined){if(typeof data28.notEmpty !== "boolean"){const err65 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data28.minLength !== undefined){if(!(typeof data28.minLength == "number")){const err66 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data28.maxLength !== undefined){if(!(typeof data28.maxLength == "number")){const err67 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data28.pattern !== undefined){let data32 = data28.pattern;const _errs72 = errors;let valid26 = false;let passing0 = null;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){if(typeof data32.value !== "string"){const err68 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data32.message !== undefined){if(typeof data32.message !== "string"){const err69 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}else {const err70 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var _valid1 = _errs73 === errors;if(_valid1){valid26 = true;passing0 = 0;}const _errs79 = errors;if(typeof data32 !== "string"){const err71 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var _valid1 = _errs79 === errors;if(_valid1 && valid26){valid26 = false;passing0 = [passing0, 1];}else {if(_valid1){valid26 = true;passing0 = 1;}}if(!valid26){const err72 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}}}else {const err73 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data17.group !== undefined){if(typeof data17.group !== "string"){const err74 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}else {const err75 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}else {const err76 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(Array.isArray(data16)){const len4 = data16.length;for(let i4=0; i4<len4; i4++){let data36 = data16[i4];const _errs88 = errors;let valid31 = true;const _errs89 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data37.type !== undefined){if(!equal(data37.type, "property")){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}}}}var _valid2 = _errs89 === errors;errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}if(_valid2){const _errs92 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err80 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err80];}else {vErrors.push(err80);}errors++;}if(errors > 0){const emErrs10 = [];for(const err81 of vErrors){if(((((err81.keyword !== "errorMessage") && (!err81.emUsed)) && ((err81.dataPath === dataPath+"/properties/" + i4+"/type") || ((err81.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err81.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err81.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err81.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs10.push(err81);err81.emUsed = true;}}if(emErrs10.length){const err82 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const emErrs11 = [];for(const err83 of vErrors){if(!err83.emUsed){emErrs11.push(err83);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid2 = _errs92 === errors;valid31 = _valid2;}if(!valid31){const err84 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}const _errs95 = errors;let valid35 = true;const _errs96 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!((((data41 === "zeebe:input") || (data41 === "zeebe:output")) || (data41 === "zeebe:taskHeader")) || (data41 === "zeebe:taskDefinition:type"))){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}}}}}}var _valid3 = _errs96 === errors;errors = _errs95;if(vErrors !== null){if(_errs95){vErrors.length = _errs95;}else {vErrors = null;}}if(_valid3){const _errs99 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data42 = data36.type;if(!((((data42 === "String") || (data42 === "Text")) || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err88 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err88];}else {vErrors.push(err88);}errors++;}if(errors > 0){const emErrs12 = [];for(const err89 of vErrors){if(((((err89.keyword !== "errorMessage") && (!err89.emUsed)) && ((err89.dataPath === dataPath+"/properties/" + i4+"/type") || ((err89.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err89.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err89.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err89.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs12.push(err89);err89.emUsed = true;}}if(emErrs12.length){const err90 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs12},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}const emErrs13 = [];for(const err91 of vErrors){if(!err91.emUsed){emErrs13.push(err91);}}vErrors = emErrs13;errors = emErrs13.length;}}}var _valid3 = _errs99 === errors;valid35 = _valid3;}if(!valid35){const err92 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const _errs102 = errors;let valid39 = true;const _errs103 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}var _valid4 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid4){const _errs105 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding !== undefined){let data44 = data36.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type === undefined){const err95 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(data44.type !== undefined){let data45 = data44.type;if(!((data45 === "zeebe:input") || (data45 === "zeebe:output"))){const err96 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/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 = [err96];}else {vErrors.push(err96);}errors++;}if(errors > 0){const emErrs14 = [];for(const err97 of vErrors){if(((((err97.keyword !== "errorMessage") && (!err97.emUsed)) && ((err97.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err97.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err97.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err97.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err97.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs14.push(err97);err97.emUsed = true;}}if(emErrs14.length){const err98 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs14},message:"optional is not supported for binding type " + JSON.stringify(data45) + "; must be any of { zeebe:input, zeebe:output }"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}const emErrs15 = [];for(const err99 of vErrors){if(!err99.emUsed){emErrs15.push(err99);}}vErrors = emErrs15;errors = emErrs15.length;}}}}}var _valid4 = _errs105 === errors;valid39 = _valid4;}if(!valid39){const err100 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const _errs109 = errors;let valid43 = true;const _errs110 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data36.optional !== undefined){if(!equal(data36.optional, true)){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}var _valid5 = _errs110 === errors;errors = _errs109;if(vErrors !== null){if(_errs109){vErrors.length = _errs109;}else {vErrors = null;}}if(_valid5){const _errs112 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.constraints !== undefined){let data47 = data36.constraints;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.notEmpty === undefined){const err103 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/constraints",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data47.notEmpty !== undefined){if(!equal(data47.notEmpty, false)){const err104 = {keyword:"const",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(errors > 0){const emErrs16 = [];for(const err105 of vErrors){if(((((err105.keyword !== "errorMessage") && (!err105.emUsed)) && ((err105.dataPath === dataPath+"/properties/" + i4+"/constraints/notEmpty") || ((err105.dataPath.indexOf(dataPath+"/properties/" + i4+"/constraints/notEmpty") === 0) && (err105.dataPath[dataPath+"/properties/" + i4+"/constraints/notEmpty".length] === "/")))) && (err105.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err105.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs16.push(err105);err105.emUsed = true;}}if(emErrs16.length){const err106 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs16},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const emErrs17 = [];for(const err107 of vErrors){if(!err107.emUsed){emErrs17.push(err107);}}vErrors = emErrs17;errors = emErrs17.length;}}}}}var _valid5 = _errs112 === errors;valid43 = _valid5;}if(!valid43){const err108 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const _errs116 = errors;let valid47 = true;const _errs117 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.feel === undefined) && ("feel")){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}else {if(data36.feel !== undefined){const _errs119 = errors;const _errs120 = errors;if(!equal(data36.feel, schema18.allOf[1].items.allOf[4].if.properties.feel.not.const)){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}var valid49 = _errs120 === errors;if(!valid49){errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}else {const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}}var _valid6 = _errs117 === errors;errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}if(_valid6){const _errs121 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type === undefined){const err112 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data36.type !== undefined){let data50 = data36.type;if(!((data50 === "String") || (data50 === "Text"))){const err113 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err113];}else {vErrors.push(err113);}errors++;}if(errors > 0){const emErrs18 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.dataPath === dataPath+"/properties/" + i4+"/type") || ((err114.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err114.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err114.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err114.schemaPath["#/definitions/properties/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs18.push(err114);err114.emUsed = true;}}if(emErrs18.length){const err115 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs18},message:"feel is only supported for \"String\" and \"Text\" type"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs19 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs19.push(err116);}}vErrors = emErrs19;errors = emErrs19.length;}}}var _valid6 = _errs121 === errors;valid47 = _valid6;}if(!valid47){const err117 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err118 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(data36.binding !== undefined){let data51 = data36.binding;const _errs126 = errors;let valid53 = true;const _errs127 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}else {if(data51.type !== undefined){let data52 = data51.type;if(!((data52 === "property") || (data52 === "zeebe:input"))){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}}}var _valid7 = _errs127 === errors;errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}if(_valid7){const _errs129 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.name === undefined){const err121 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err121];}else {vErrors.push(err121);}errors++;}}if(errors > 0){const emErrs20 = [];for(const err122 of vErrors){if(((((err122.keyword !== "errorMessage") && (!err122.emUsed)) && ((err122.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err122.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err122.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err122.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err122.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs20.push(err122);err122.emUsed = true;}}if(emErrs20.length){const err123 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires name"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}const emErrs21 = [];for(const err124 of vErrors){if(!err124.emUsed){emErrs21.push(err124);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid7 = _errs129 === errors;valid53 = _valid7;}if(!valid53){const err125 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}const _errs131 = errors;let valid55 = true;const _errs132 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:output")){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}}var _valid8 = _errs132 === errors;errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}if(_valid8){const _errs134 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.source === undefined){const err128 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err128];}else {vErrors.push(err128);}errors++;}}if(errors > 0){const emErrs22 = [];for(const err129 of vErrors){if(((((err129.keyword !== "errorMessage") && (!err129.emUsed)) && ((err129.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err129.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err129.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err129.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err129.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs22.push(err129);err129.emUsed = true;}}if(emErrs22.length){const err130 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires source"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const emErrs23 = [];for(const err131 of vErrors){if(!err131.emUsed){emErrs23.push(err131);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid8 = _errs134 === errors;valid55 = _valid8;}if(!valid55){const err132 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const _errs136 = errors;let valid57 = true;const _errs137 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if((data51.type === undefined) && ("type")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {if(data51.type !== undefined){if(!equal(data51.type, "zeebe:taskHeader")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}}var _valid9 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid9){const _errs139 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.key === undefined){const err135 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(errors > 0){const emErrs24 = [];for(const err136 of vErrors){if(((((err136.keyword !== "errorMessage") && (!err136.emUsed)) && ((err136.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err136.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err136.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err136.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err136.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs24.push(err136);err136.emUsed = true;}}if(emErrs24.length){const err137 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs24},message:"property.binding " + JSON.stringify(data51 && data51.type) + " requires key"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}const emErrs25 = [];for(const err138 of vErrors){if(!err138.emUsed){emErrs25.push(err138);}}vErrors = emErrs25;errors = emErrs25.length;}var _valid9 = _errs139 === errors;valid57 = _valid9;}if(!valid57){const err139 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.type === undefined){const err140 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data51.type !== undefined){let data55 = data51.type;if(typeof data55 !== "string"){const err141 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(!(((((data55 === "property") || (data55 === "zeebe:taskDefinition:type")) || (data55 === "zeebe:input")) || (data55 === "zeebe:output")) || (data55 === "zeebe:taskHeader"))){const err142 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/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 = [err142];}else {vErrors.push(err142);}errors++;}if(errors > 0){const emErrs26 = [];for(const err143 of vErrors){if(((((err143.keyword !== "errorMessage") && (!err143.emUsed)) && ((err143.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err143.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err143.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err143.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err143.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs26.push(err143);err143.emUsed = true;}}if(emErrs26.length){const err144 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs26},message:"invalid property.binding type " + JSON.stringify(data55) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const emErrs27 = [];for(const err145 of vErrors){if(!err145.emUsed){emErrs27.push(err145);}}vErrors = emErrs27;errors = emErrs27.length;}}if(data51.name !== undefined){if(typeof data51.name !== "string"){const err146 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data51.source !== undefined){if(typeof data51.source !== "string"){const err147 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}if(data51.key !== undefined){if(typeof data51.key !== "string"){const err148 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/key",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(data36.optional !== undefined){if(typeof data36.optional !== "boolean"){const err150 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/optional",schemaPath:"#/definitions/properties/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}if(data36.feel !== undefined){let data60 = data36.feel;if(typeof data60 !== "string"){const err151 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(!(((data60 === null) || (data60 === "optional")) || (data60 === "required"))){const err152 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/feel",schemaPath:"#/definitions/properties/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 = [err152];}else {vErrors.push(err152);}errors++;}}}else {const err153 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(errors > 0){const emErrors6 = {"required":{"binding":[]}};const templates6 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams3;let emParamsErrors3;for(const err154 of vErrors){if((((((err154.keyword !== "errorMessage") && (!err154.emUsed)) && (err154.dataPath === dataPath+"/properties/" + i4)) && (err154.keyword in emErrors6)) && (err154.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err154.schemaPath.slice(38)))){emPropParams3 = obj0[err154.keyword];emParamsErrors3 = emErrors6[err154.keyword][err154.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err154);err154.emUsed = true;}}}for(const key6 in emErrors6){for(const keyProp3 in emErrors6[key6]){emParamsErrors3 = emErrors6[key6][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates6[key6] && templates6[key6][keyProp3];const err155 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema18.allOf[1].items.errorMessage[key6][keyProp3]};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}}const emErrs28 = [];for(const err156 of vErrors){if(!err156.emUsed){emErrs28.push(err156);}}vErrors = emErrs28;errors = emErrs28.length;}}}else {const err157 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data.icon !== undefined){let data61 = data.icon;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.contents === undefined){const err158 = {keyword:"required",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/required",params:{missingProperty: "contents"},message:"should have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data61.contents !== undefined){let data62 = data61.contents;if(typeof data62 === "string"){if(!pattern3.test(data62)){const err159 = {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 = [err159];}else {vErrors.push(err159);}errors++;}}else {const err160 = {keyword:"type",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(errors > 0){const emErrors7 = {"pattern":[]};const templates7 = {};for(const err161 of vErrors){if((((((err161.keyword !== "errorMessage") && (!err161.emUsed)) && (err161.dataPath === dataPath+"/icon/contents")) && (err161.keyword in emErrors7)) && (err161.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err161.schemaPath.slice(37)))){emErrors7[err161.keyword].push(err161);err161.emUsed = true;}}for(const key7 in emErrors7){if(emErrors7[key7].length){const err162 = {keyword:"errorMessage",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",params:{errors: emErrors7[key7]},message:key7 in templates7 ? templates7[key7]() : schema17.properties.icon.properties.contents.errorMessage[key7]};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}const emErrs29 = [];for(const err163 of vErrors){if(!err163.emUsed){emErrs29.push(err163);}}vErrors = emErrs29;errors = emErrs29.length;}}}else {const err164 = {keyword:"type",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(errors > 0){const emErrors8 = {"required":{"contents":[]}};const templates8 = {required:{}};let emPropParams4;let emParamsErrors4;for(const err165 of vErrors){if((((((err165.keyword !== "errorMessage") && (!err165.emUsed)) && (err165.dataPath === dataPath+"/icon")) && (err165.keyword in emErrors8)) && (err165.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err165.schemaPath.slice(17)))){emPropParams4 = obj0[err165.keyword];emParamsErrors4 = emErrors8[err165.keyword][err165.params[emPropParams4]];if(emParamsErrors4){emParamsErrors4.push(err165);err165.emUsed = true;}}}for(const key8 in emErrors8){for(const keyProp4 in emErrors8[key8]){emParamsErrors4 = emErrors8[key8][keyProp4];if(emParamsErrors4.length){const tmpl4 = templates8[key8] && templates8[key8][keyProp4];const err166 = {keyword:"errorMessage",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/errorMessage",params:{errors: emParamsErrors4},message:tmpl4 ? tmpl4() : schema17.properties.icon.errorMessage[key8][keyProp4]};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}const emErrs30 = [];for(const err167 of vErrors){if(!err167.emUsed){emErrs30.push(err167);}}vErrors = emErrs30;errors = emErrs30.length;}}}else {const err168 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}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;}
670
670
  standaloneZeebeValidator.default = _default;
671
671
 
672
672
  function getZeebeSchemaPackage() {