@orunelle/theme-contract 0.0.0-stage → 2.0.0-alpha.14
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.d.ts +83 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/merchant-editing.d.ts +16 -0
- package/dist/merchant-editing.d.ts.map +1 -0
- package/dist/merchant-editing.js +115 -0
- package/dist/merchant-lifecycle.d.ts +86 -0
- package/dist/merchant-lifecycle.d.ts.map +1 -0
- package/dist/merchant-lifecycle.js +1 -0
- package/dist/merchant-schema.json +1180 -0
- package/dist/merchant-types.d.ts +168 -0
- package/dist/merchant-types.d.ts.map +1 -0
- package/dist/merchant-types.js +1 -0
- package/dist/merchant-validation.d.ts +13 -0
- package/dist/merchant-validation.d.ts.map +1 -0
- package/dist/merchant-validation.js +419 -0
- package/dist/preview.d.ts +559 -0
- package/dist/preview.d.ts.map +1 -0
- package/dist/preview.js +168 -0
- package/dist/store-text.d.ts +116 -0
- package/dist/store-text.d.ts.map +1 -0
- package/dist/store-text.js +68 -0
- package/dist/validators.generated.cjs +2 -0
- package/package.json +40 -3
- package/README.md +0 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// Generated from merchant-schema.json. Do not edit.
|
|
2
|
+
"use strict";exports.manifest = validate11;const schema12 = {"type":"object","properties":{"schemaVersion":{"const":2},"runtimeAbi":{"const":"orunelle.react.v2/1"},"id":{"$ref":"#/definitions/key"},"version":{"type":"string","maxLength":32,"minLength":1,"pattern":"^\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.-]+)?$","allOf":[{"not":{"type":"string","pattern":"[\r\n\u2028\u2029]"}}]},"name":{"$ref":"#/definitions/label"},"editor":{"$ref":"#/definitions/editor"}},"required":["schemaVersion","runtimeAbi","id","version","name"],"additionalProperties":false};const schema13 = {"allOf":[{"type":"string","maxLength":100,"minLength":1,"pattern":"^[a-z0-9]+([._-][a-z0-9]+)*$","allOf":[{"not":{"type":"string","pattern":"[\r\n\u2028\u2029]"}}]},{"not":{"enum":["constructor","prototype","__proto__"]}}]};const schema14 = {"type":"object","properties":{"en":{"type":"string","maxLength":200,"minLength":1},"ar":{"type":"string","maxLength":200,"minLength":1}},"required":["en","ar"],"additionalProperties":false};const func0 = Object.prototype.hasOwnProperty;const func53 = require("ajv/dist/runtime/ucs2length").default;const pattern0 = new RegExp("[\r\n\u2028\u2029]", "u");const pattern1 = new RegExp("^[a-z0-9]+([._-][a-z0-9]+)*$", "u");const pattern3 = new RegExp("^\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.-]+)?$", "u");const schema15 = {"type":"object","properties":{"settings":{"$ref":"#/definitions/settings"},"nodeTypes":{"type":"object","propertyNames":{"$ref":"#/definitions/key"},"additionalProperties":{"$ref":"#/definitions/nodeType"},"maxProperties":100},"templates":{"type":"object","propertyNames":{"$ref":"#/definitions/key"},"additionalProperties":{"$ref":"#/definitions/template"},"maxProperties":50},"groups":{"type":"object","propertyNames":{"$ref":"#/definitions/key"},"additionalProperties":{"$ref":"#/definitions/composition"},"maxProperties":20},"strings":{"type":"object","propertyNames":{"$ref":"#/definitions/key"},"additionalProperties":{"type":"object","properties":{"label":{"$ref":"#/definitions/label"},"default":{"$ref":"#/definitions/storeText"}},"required":["label","default"],"additionalProperties":false},"maxProperties":300}},"required":["settings","nodeTypes","templates","groups"],"additionalProperties":false};const schema73 = {"type":"object","properties":{"en":{"type":"string","maxLength":300},"ar":{"type":"string","maxLength":300}},"required":["en","ar"],"additionalProperties":false};const schema16 = {"type":"object","propertyNames":{"$ref":"#/definitions/key"},"additionalProperties":{"$ref":"#/definitions/setting"},"maxProperties":100};const schema18 = {"oneOf":[{"type":"object","properties":{"kind":{"const":"text"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"},"maxLength":{"type":"integer","minimum":1,"maximum":10000}},"required":["kind","label","maxLength"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"localizedText"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"},"maxLength":{"type":"integer","minimum":1,"maximum":10000}},"required":["kind","label","maxLength"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"boolean"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"}},"required":["kind","label"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"number"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"},"min":{"type":"number","minimum":-1000000,"maximum":1000000},"max":{"type":"number","minimum":-1000000,"maximum":1000000},"step":{"type":"number","exclusiveMinimum":0,"maximum":1000000},"unit":{"enum":["px","%","rem","em","s","ms","deg","vh","vw"]}},"required":["kind","label","min","max"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"color"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"}},"required":["kind","label"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"select"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"$ref":"#/definitions/key"},"label":{"$ref":"#/definitions/label"}},"required":["value","label"],"additionalProperties":false},"maxItems":100,"minItems":1}},"required":["kind","label","options"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"font"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"$ref":"#/definitions/key"},"label":{"$ref":"#/definitions/label"}},"required":["value","label"],"additionalProperties":false},"maxItems":100,"minItems":1}},"required":["kind","label","options"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"link"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"}},"required":["kind","label"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"image"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"}},"required":["kind","label"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"resource"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"},"resourceKind":{"enum":["product","collection","page"]}},"required":["kind","label","resourceKind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"richtext"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"}},"required":["kind","label"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"responsive"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"},"min":{"type":"number","minimum":-1000000,"maximum":1000000},"max":{"type":"number","minimum":-1000000,"maximum":1000000},"step":{"type":"number","exclusiveMinimum":0,"maximum":1000000},"unit":{"enum":["px","%","rem","em","s","ms","deg","vh","vw"]}},"required":["kind","label","min","max"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"menu"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"},"maxItems":{"type":"integer","minimum":1,"maximum":50}},"required":["kind","label","maxItems"],"additionalProperties":false},{"type":"object","properties":{"kind":{"const":"resourceList"},"label":{"$ref":"#/definitions/label"},"required":{"type":"boolean"},"default":{"$ref":"#/definitions/literal"},"resourceKind":{"enum":["product","collection","page"]},"maxItems":{"type":"integer","minimum":1,"maximum":50}},"required":["kind","label","resourceKind","maxItems"],"additionalProperties":false}]};const schema20 = {"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number","minimum":-1000000,"maximum":1000000},{"type":"string","maxLength":10000},{"$ref":"#/definitions/localized"},{"$ref":"#/definitions/image"},{"$ref":"#/definitions/resource"},{"type":"array","items":{"$ref":"#/definitions/paragraph"},"maxItems":20},{"$ref":"#/definitions/responsive"},{"type":"array","items":{"$ref":"#/definitions/menuItem"},"maxItems":50},{"type":"array","items":{"$ref":"#/definitions/resource"},"maxItems":50}]};const schema21 = {"type":"object","properties":{"en":{"type":"string","maxLength":10000},"ar":{"type":"string","maxLength":10000}},"required":["en","ar"],"additionalProperties":false};const schema29 = {"type":"object","properties":{"base":{"type":"number","minimum":-1000000,"maximum":1000000},"sm":{"type":"number","minimum":-1000000,"maximum":1000000},"lg":{"type":"number","minimum":-1000000,"maximum":1000000}},"required":["base"],"additionalProperties":false};const schema22 = {"type":"object","properties":{"assetId":{"$ref":"#/definitions/uuid"},"alt":{"$ref":"#/definitions/localized"},"focalPoint":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1}},"required":["x","y"],"additionalProperties":false}},"required":["assetId","alt"],"additionalProperties":false};const schema23 = {"type":"string","maxLength":36,"minLength":36,"pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$","allOf":[{"not":{"type":"string","pattern":"[\r\n\u2028\u2029]"}}]};const pattern7 = new RegExp("^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$", "u");function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.assetId === undefined) || (!(func0.call(data, "assetId")))) && (missing0 = "assetId")) || (((data.alt === undefined) || (!(func0.call(data, "alt")))) && (missing0 = "alt"))){validate16.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(((key0 === "assetId") || (key0 === "alt")) || (key0 === "focalPoint"))){validate16.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.assetId !== undefined && func0.call(data, "assetId")){let data0 = data.assetId;const _errs2 = errors;const _errs3 = errors;const _errs6 = errors;const _errs7 = errors;if(errors === _errs7){if(typeof data0 === "string"){if(!pattern0.test(data0)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid3 = _errs7 === errors;if(valid3){validate16.errors = [{instancePath:instancePath+"/assetId",schemaPath:"#/definitions/uuid/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}if(errors === _errs3){if(typeof data0 === "string"){if(func53(data0) > 36){validate16.errors = [{instancePath:instancePath+"/assetId",schemaPath:"#/definitions/uuid/maxLength",keyword:"maxLength",params:{limit: 36},message:"must NOT have more than 36 characters"}];return false;}else {if(func53(data0) < 36){validate16.errors = [{instancePath:instancePath+"/assetId",schemaPath:"#/definitions/uuid/minLength",keyword:"minLength",params:{limit: 36},message:"must NOT have fewer than 36 characters"}];return false;}else {if(!pattern7.test(data0)){validate16.errors = [{instancePath:instancePath+"/assetId",schemaPath:"#/definitions/uuid/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"},message:"must match pattern \""+"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"+"\""}];return false;}}}}else {validate16.errors = [{instancePath:instancePath+"/assetId",schemaPath:"#/definitions/uuid/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.alt !== undefined && func0.call(data, "alt")){let data1 = data.alt;const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){let missing1;if((((data1.en === undefined) || (!(func0.call(data1, "en")))) && (missing1 = "en")) || (((data1.ar === undefined) || (!(func0.call(data1, "ar")))) && (missing1 = "ar"))){validate16.errors = [{instancePath:instancePath+"/alt",schemaPath:"#/definitions/localized/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs12 = errors;for(const key1 of Object.keys(data1)){if(!((key1 === "en") || (key1 === "ar"))){validate16.errors = [{instancePath:instancePath+"/alt",schemaPath:"#/definitions/localized/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs12 === errors){if(data1.en !== undefined && func0.call(data1, "en")){let data2 = data1.en;const _errs13 = errors;if(errors === _errs13){if(typeof data2 === "string"){if(func53(data2) > 10000){validate16.errors = [{instancePath:instancePath+"/alt/en",schemaPath:"#/definitions/localized/properties/en/maxLength",keyword:"maxLength",params:{limit: 10000},message:"must NOT have more than 10000 characters"}];return false;}}else {validate16.errors = [{instancePath:instancePath+"/alt/en",schemaPath:"#/definitions/localized/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs13 === errors;}else {var valid5 = true;}if(valid5){if(data1.ar !== undefined && func0.call(data1, "ar")){let data3 = data1.ar;const _errs15 = errors;if(errors === _errs15){if(typeof data3 === "string"){if(func53(data3) > 10000){validate16.errors = [{instancePath:instancePath+"/alt/ar",schemaPath:"#/definitions/localized/properties/ar/maxLength",keyword:"maxLength",params:{limit: 10000},message:"must NOT have more than 10000 characters"}];return false;}}else {validate16.errors = [{instancePath:instancePath+"/alt/ar",schemaPath:"#/definitions/localized/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs15 === errors;}else {var valid5 = true;}}}}}else {validate16.errors = [{instancePath:instancePath+"/alt",schemaPath:"#/definitions/localized/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.focalPoint !== undefined && func0.call(data, "focalPoint")){let data4 = data.focalPoint;const _errs17 = errors;if(errors === _errs17){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing2;if((((data4.x === undefined) || (!(func0.call(data4, "x")))) && (missing2 = "x")) || (((data4.y === undefined) || (!(func0.call(data4, "y")))) && (missing2 = "y"))){validate16.errors = [{instancePath:instancePath+"/focalPoint",schemaPath:"#/properties/focalPoint/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {const _errs19 = errors;for(const key2 of Object.keys(data4)){if(!((key2 === "x") || (key2 === "y"))){validate16.errors = [{instancePath:instancePath+"/focalPoint",schemaPath:"#/properties/focalPoint/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"}];return false;break;}}if(_errs19 === errors){if(data4.x !== undefined && func0.call(data4, "x")){let data5 = data4.x;const _errs20 = errors;if(errors === _errs20){if((typeof data5 == "number") && (isFinite(data5))){if(data5 > 1 || isNaN(data5)){validate16.errors = [{instancePath:instancePath+"/focalPoint/x",schemaPath:"#/properties/focalPoint/properties/x/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"}];return false;}else {if(data5 < 0 || isNaN(data5)){validate16.errors = [{instancePath:instancePath+"/focalPoint/x",schemaPath:"#/properties/focalPoint/properties/x/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate16.errors = [{instancePath:instancePath+"/focalPoint/x",schemaPath:"#/properties/focalPoint/properties/x/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid6 = _errs20 === errors;}else {var valid6 = true;}if(valid6){if(data4.y !== undefined && func0.call(data4, "y")){let data6 = data4.y;const _errs22 = errors;if(errors === _errs22){if((typeof data6 == "number") && (isFinite(data6))){if(data6 > 1 || isNaN(data6)){validate16.errors = [{instancePath:instancePath+"/focalPoint/y",schemaPath:"#/properties/focalPoint/properties/y/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"}];return false;}else {if(data6 < 0 || isNaN(data6)){validate16.errors = [{instancePath:instancePath+"/focalPoint/y",schemaPath:"#/properties/focalPoint/properties/y/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate16.errors = [{instancePath:instancePath+"/focalPoint/y",schemaPath:"#/properties/focalPoint/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid6 = _errs22 === errors;}else {var valid6 = true;}}}}}else {validate16.errors = [{instancePath:instancePath+"/focalPoint",schemaPath:"#/properties/focalPoint/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs17 === errors;}else {var valid0 = true;}}}}}}else {validate16.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate16.errors = vErrors;return errors === 0;}const schema25 = {"type":"object","properties":{"kind":{"enum":["product","collection","page"]},"id":{"$ref":"#/definitions/uuid"}},"required":["kind","id"],"additionalProperties":false};function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing0 = "kind")) || (((data.id === undefined) || (!(func0.call(data, "id")))) && (missing0 = "id"))){validate18.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!((key0 === "kind") || (key0 === "id"))){validate18.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.kind !== undefined && func0.call(data, "kind")){let data0 = data.kind;const _errs2 = errors;if(!(((data0 === "product") || (data0 === "collection")) || (data0 === "page"))){validate18.errors = [{instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema25.properties.kind.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined && func0.call(data, "id")){let data1 = data.id;const _errs3 = errors;const _errs4 = errors;const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(typeof data1 === "string"){if(!pattern0.test(data1)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid3 = _errs8 === errors;if(valid3){validate18.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/uuid/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}if(errors === _errs4){if(typeof data1 === "string"){if(func53(data1) > 36){validate18.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/uuid/maxLength",keyword:"maxLength",params:{limit: 36},message:"must NOT have more than 36 characters"}];return false;}else {if(func53(data1) < 36){validate18.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/uuid/minLength",keyword:"minLength",params:{limit: 36},message:"must NOT have fewer than 36 characters"}];return false;}else {if(!pattern7.test(data1)){validate18.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/uuid/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"},message:"must match pattern \""+"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"+"\""}];return false;}}}}else {validate18.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/uuid/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}}else {validate18.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate18.errors = vErrors;return errors === 0;}const schema27 = {"type":"object","properties":{"type":{"const":"paragraph"},"children":{"type":"array","items":{"$ref":"#/definitions/run"},"maxItems":100}},"required":["type","children"],"additionalProperties":false};const schema28 = {"type":"object","properties":{"text":{"type":"string","maxLength":10000},"marks":{"type":"array","items":{"enum":["bold","italic"]},"maxItems":2,"uniqueItems":true}},"required":["text","marks"],"additionalProperties":false};const func32 = require("ajv/dist/runtime/equal").default;function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.type === undefined) || (!(func0.call(data, "type")))) && (missing0 = "type")) || (((data.children === undefined) || (!(func0.call(data, "children")))) && (missing0 = "children"))){validate20.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!((key0 === "type") || (key0 === "children"))){validate20.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined && func0.call(data, "type")){const _errs2 = errors;if("paragraph" !== data.type){validate20.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "paragraph"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined && func0.call(data, "children")){let data1 = data.children;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){if(data1.length > 100){validate20.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs5 = errors;const _errs6 = errors;if(errors === _errs6){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((((data2.text === undefined) || (!(func0.call(data2, "text")))) && (missing1 = "text")) || (((data2.marks === undefined) || (!(func0.call(data2, "marks")))) && (missing1 = "marks"))){validate20.errors = [{instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/run/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs8 = errors;for(const key1 of Object.keys(data2)){if(!((key1 === "text") || (key1 === "marks"))){validate20.errors = [{instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/run/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs8 === errors){if(data2.text !== undefined && func0.call(data2, "text")){let data3 = data2.text;const _errs9 = errors;if(errors === _errs9){if(typeof data3 === "string"){if(func53(data3) > 10000){validate20.errors = [{instancePath:instancePath+"/children/" + i0+"/text",schemaPath:"#/definitions/run/properties/text/maxLength",keyword:"maxLength",params:{limit: 10000},message:"must NOT have more than 10000 characters"}];return false;}}else {validate20.errors = [{instancePath:instancePath+"/children/" + i0+"/text",schemaPath:"#/definitions/run/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid3 = _errs9 === errors;}else {var valid3 = true;}if(valid3){if(data2.marks !== undefined && func0.call(data2, "marks")){let data4 = data2.marks;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data4)){if(data4.length > 2){validate20.errors = [{instancePath:instancePath+"/children/" + i0+"/marks",schemaPath:"#/definitions/run/properties/marks/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"}];return false;}else {var valid4 = true;const len1 = data4.length;for(let i1=0; i1<len1; i1++){let data5 = data4[i1];const _errs13 = errors;if(!((data5 === "bold") || (data5 === "italic"))){validate20.errors = [{instancePath:instancePath+"/children/" + i0+"/marks/" + i1,schemaPath:"#/definitions/run/properties/marks/items/enum",keyword:"enum",params:{allowedValues: schema28.properties.marks.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid4 = _errs13 === errors;if(!valid4){break;}}if(valid4){let i2 = data4.length;let j0;if(i2 > 1){outer0:for(;i2--;){for(j0 = i2; j0--;){if(func32(data4[i2], data4[j0])){validate20.errors = [{instancePath:instancePath+"/children/" + i0+"/marks",schemaPath:"#/definitions/run/properties/marks/uniqueItems",keyword:"uniqueItems",params:{i: i2, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i2+" are identical)"}];return false;break outer0;}}}}}}}else {validate20.errors = [{instancePath:instancePath+"/children/" + i0+"/marks",schemaPath:"#/definitions/run/properties/marks/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid3 = _errs11 === errors;}else {var valid3 = true;}}}}}else {validate20.errors = [{instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/run/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs5 === errors;if(!valid1){break;}}}}else {validate20.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}}else {validate20.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate20.errors = vErrors;return errors === 0;}const schema30 = {"type":"object","properties":{"label":{"$ref":"#/definitions/localized"},"href":{"type":"string","maxLength":2048},"children":{"type":"array","items":{"$ref":"#/definitions/menuLink"},"maxItems":50}},"required":["label","href"],"additionalProperties":false};const schema32 = {"type":"object","properties":{"label":{"$ref":"#/definitions/localized"},"href":{"type":"string","maxLength":2048}},"required":["label","href"],"additionalProperties":false};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.label === undefined) || (!(func0.call(data, "label")))) && (missing0 = "label")) || (((data.href === undefined) || (!(func0.call(data, "href")))) && (missing0 = "href"))){validate23.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!((key0 === "label") || (key0 === "href"))){validate23.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.label !== undefined && func0.call(data, "label")){let data0 = data.label;const _errs2 = errors;const _errs3 = errors;if(errors === _errs3){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.en === undefined) || (!(func0.call(data0, "en")))) && (missing1 = "en")) || (((data0.ar === undefined) || (!(func0.call(data0, "ar")))) && (missing1 = "ar"))){validate23.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/localized/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs5 = errors;for(const key1 of Object.keys(data0)){if(!((key1 === "en") || (key1 === "ar"))){validate23.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/localized/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs5 === errors){if(data0.en !== undefined && func0.call(data0, "en")){let data1 = data0.en;const _errs6 = errors;if(errors === _errs6){if(typeof data1 === "string"){if(func53(data1) > 10000){validate23.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/localized/properties/en/maxLength",keyword:"maxLength",params:{limit: 10000},message:"must NOT have more than 10000 characters"}];return false;}}else {validate23.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/localized/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data0.ar !== undefined && func0.call(data0, "ar")){let data2 = data0.ar;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func53(data2) > 10000){validate23.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/localized/properties/ar/maxLength",keyword:"maxLength",params:{limit: 10000},message:"must NOT have more than 10000 characters"}];return false;}}else {validate23.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/localized/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs8 === errors;}else {var valid2 = true;}}}}}else {validate23.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/localized/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.href !== undefined && func0.call(data, "href")){let data3 = data.href;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(func53(data3) > 2048){validate23.errors = [{instancePath:instancePath+"/href",schemaPath:"#/properties/href/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate23.errors = [{instancePath:instancePath+"/href",schemaPath:"#/properties/href/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}}}}}else {validate23.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate23.errors = vErrors;return errors === 0;}function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.label === undefined) || (!(func0.call(data, "label")))) && (missing0 = "label")) || (((data.href === undefined) || (!(func0.call(data, "href")))) && (missing0 = "href"))){validate22.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(((key0 === "label") || (key0 === "href")) || (key0 === "children"))){validate22.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.label !== undefined && func0.call(data, "label")){let data0 = data.label;const _errs2 = errors;const _errs3 = errors;if(errors === _errs3){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.en === undefined) || (!(func0.call(data0, "en")))) && (missing1 = "en")) || (((data0.ar === undefined) || (!(func0.call(data0, "ar")))) && (missing1 = "ar"))){validate22.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/localized/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs5 = errors;for(const key1 of Object.keys(data0)){if(!((key1 === "en") || (key1 === "ar"))){validate22.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/localized/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs5 === errors){if(data0.en !== undefined && func0.call(data0, "en")){let data1 = data0.en;const _errs6 = errors;if(errors === _errs6){if(typeof data1 === "string"){if(func53(data1) > 10000){validate22.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/localized/properties/en/maxLength",keyword:"maxLength",params:{limit: 10000},message:"must NOT have more than 10000 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/localized/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data0.ar !== undefined && func0.call(data0, "ar")){let data2 = data0.ar;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func53(data2) > 10000){validate22.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/localized/properties/ar/maxLength",keyword:"maxLength",params:{limit: 10000},message:"must NOT have more than 10000 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/localized/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs8 === errors;}else {var valid2 = true;}}}}}else {validate22.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/localized/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.href !== undefined && func0.call(data, "href")){let data3 = data.href;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(func53(data3) > 2048){validate22.errors = [{instancePath:instancePath+"/href",schemaPath:"#/properties/href/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/href",schemaPath:"#/properties/href/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined && func0.call(data, "children")){let data4 = data.children;const _errs12 = errors;if(errors === _errs12){if(Array.isArray(data4)){if(data4.length > 50){validate22.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/maxItems",keyword:"maxItems",params:{limit: 50},message:"must NOT have more than 50 items"}];return false;}else {var valid3 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs14 = errors;if(!(validate23(data4[i0], {instancePath:instancePath+"/children/" + i0,parentData:data4,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);errors = vErrors.length;}var valid3 = _errs14 === errors;if(!valid3){break;}}}}else {validate22.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}}}}}}else {validate22.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate22.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(data !== null){const err0 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs3 = errors;if(typeof data !== "boolean"){const err1 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs3 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs5 = errors;if(errors === _errs5){if((typeof data == "number") && (isFinite(data))){if(data > 1000000 || isNaN(data)){const err2 = {instancePath,schemaPath:"#/anyOf/2/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1000000},message:"must be <= 1000000"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {if(data < -1000000 || isNaN(data)){const err3 = {instancePath,schemaPath:"#/anyOf/2/minimum",keyword:"minimum",params:{comparison: ">=", limit: -1000000},message:"must be >= -1000000"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid0 = _errs5 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs7 = errors;if(errors === _errs7){if(typeof data === "string"){if(func53(data) > 10000){const err5 = {instancePath,schemaPath:"#/anyOf/3/maxLength",keyword:"maxLength",params:{limit: 10000},message:"must NOT have more than 10000 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs7 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.en === undefined) || (!(func0.call(data, "en")))) && (missing0 = "en")) || (((data.ar === undefined) || (!(func0.call(data, "ar")))) && (missing0 = "ar"))){const err7 = {instancePath,schemaPath:"#/definitions/localized/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {const _errs12 = errors;for(const key0 of Object.keys(data)){if(!((key0 === "en") || (key0 === "ar"))){const err8 = {instancePath,schemaPath:"#/definitions/localized/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;break;}}if(_errs12 === errors){if(data.en !== undefined && func0.call(data, "en")){let data0 = data.en;const _errs13 = errors;if(errors === _errs13){if(typeof data0 === "string"){if(func53(data0) > 10000){const err9 = {instancePath:instancePath+"/en",schemaPath:"#/definitions/localized/properties/en/maxLength",keyword:"maxLength",params:{limit: 10000},message:"must NOT have more than 10000 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/en",schemaPath:"#/definitions/localized/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.ar !== undefined && func0.call(data, "ar")){let data1 = data.ar;const _errs15 = errors;if(errors === _errs15){if(typeof data1 === "string"){if(func53(data1) > 10000){const err11 = {instancePath:instancePath+"/ar",schemaPath:"#/definitions/localized/properties/ar/maxLength",keyword:"maxLength",params:{limit: 10000},message:"must NOT have more than 10000 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/ar",schemaPath:"#/definitions/localized/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var valid2 = _errs15 === errors;}else {var valid2 = true;}}}}}else {const err13 = {instancePath,schemaPath:"#/definitions/localized/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs17 = errors;if(!(validate16(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}var _valid0 = _errs17 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs18 = errors;if(!(validate18(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate18.errors : vErrors.concat(validate18.errors);errors = vErrors.length;}var _valid0 = _errs18 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(Array.isArray(data)){if(data.length > 20){const err14 = {instancePath,schemaPath:"#/anyOf/7/maxItems",keyword:"maxItems",params:{limit: 20},message:"must NOT have more than 20 items"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {var valid3 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){const _errs21 = errors;if(!(validate20(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}var valid3 = _errs21 === errors;if(!valid3){break;}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs22 = errors;const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((data.base === undefined) || (!(func0.call(data, "base")))) && (missing1 = "base")){const err16 = {instancePath,schemaPath:"#/definitions/responsive/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {const _errs25 = errors;for(const key1 of Object.keys(data)){if(!(((key1 === "base") || (key1 === "sm")) || (key1 === "lg"))){const err17 = {instancePath,schemaPath:"#/definitions/responsive/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;break;}}if(_errs25 === errors){if(data.base !== undefined && func0.call(data, "base")){let data3 = data.base;const _errs26 = errors;if(errors === _errs26){if((typeof data3 == "number") && (isFinite(data3))){if(data3 > 1000000 || isNaN(data3)){const err18 = {instancePath:instancePath+"/base",schemaPath:"#/definitions/responsive/properties/base/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1000000},message:"must be <= 1000000"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {if(data3 < -1000000 || isNaN(data3)){const err19 = {instancePath:instancePath+"/base",schemaPath:"#/definitions/responsive/properties/base/minimum",keyword:"minimum",params:{comparison: ">=", limit: -1000000},message:"must be >= -1000000"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}else {const err20 = {instancePath:instancePath+"/base",schemaPath:"#/definitions/responsive/properties/base/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}var valid5 = _errs26 === errors;}else {var valid5 = true;}if(valid5){if(data.sm !== undefined && func0.call(data, "sm")){let data4 = data.sm;const _errs28 = errors;if(errors === _errs28){if((typeof data4 == "number") && (isFinite(data4))){if(data4 > 1000000 || isNaN(data4)){const err21 = {instancePath:instancePath+"/sm",schemaPath:"#/definitions/responsive/properties/sm/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1000000},message:"must be <= 1000000"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {if(data4 < -1000000 || isNaN(data4)){const err22 = {instancePath:instancePath+"/sm",schemaPath:"#/definitions/responsive/properties/sm/minimum",keyword:"minimum",params:{comparison: ">=", limit: -1000000},message:"must be >= -1000000"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath:instancePath+"/sm",schemaPath:"#/definitions/responsive/properties/sm/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var valid5 = _errs28 === errors;}else {var valid5 = true;}if(valid5){if(data.lg !== undefined && func0.call(data, "lg")){let data5 = data.lg;const _errs30 = errors;if(errors === _errs30){if((typeof data5 == "number") && (isFinite(data5))){if(data5 > 1000000 || isNaN(data5)){const err24 = {instancePath:instancePath+"/lg",schemaPath:"#/definitions/responsive/properties/lg/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1000000},message:"must be <= 1000000"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {if(data5 < -1000000 || isNaN(data5)){const err25 = {instancePath:instancePath+"/lg",schemaPath:"#/definitions/responsive/properties/lg/minimum",keyword:"minimum",params:{comparison: ">=", limit: -1000000},message:"must be >= -1000000"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}else {const err26 = {instancePath:instancePath+"/lg",schemaPath:"#/definitions/responsive/properties/lg/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid5 = _errs30 === errors;}else {var valid5 = true;}}}}}}else {const err27 = {instancePath,schemaPath:"#/definitions/responsive/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var _valid0 = _errs22 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs32 = errors;if(errors === _errs32){if(Array.isArray(data)){if(data.length > 50){const err28 = {instancePath,schemaPath:"#/anyOf/9/maxItems",keyword:"maxItems",params:{limit: 50},message:"must NOT have more than 50 items"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {var valid6 = true;const len1 = data.length;for(let i1=0; i1<len1; i1++){const _errs34 = errors;if(!(validate22(data[i1], {instancePath:instancePath+"/" + i1,parentData:data,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var valid6 = _errs34 === errors;if(!valid6){break;}}}}else {const err29 = {instancePath,schemaPath:"#/anyOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var _valid0 = _errs32 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(Array.isArray(data)){if(data.length > 50){const err30 = {instancePath,schemaPath:"#/anyOf/10/maxItems",keyword:"maxItems",params:{limit: 50},message:"must NOT have more than 50 items"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {var valid7 = true;const len2 = data.length;for(let i2=0; i2<len2; i2++){const _errs37 = errors;if(!(validate18(data[i2], {instancePath:instancePath+"/" + i2,parentData:data,parentDataProperty:i2,rootData}))){vErrors = vErrors === null ? validate18.errors : vErrors.concat(validate18.errors);errors = vErrors.length;}var valid7 = _errs37 === errors;if(!valid7){break;}}}}else {const err31 = {instancePath,schemaPath:"#/anyOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;}}}}}}}}}}if(!valid0){const err32 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;validate15.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing0 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing0 = "label"))) || (((data.maxLength === undefined) || (!(func0.call(data, "maxLength")))) && (missing0 = "maxLength"))){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {const _errs3 = errors;for(const key0 of Object.keys(data)){if(!(((((key0 === "kind") || (key0 === "label")) || (key0 === "required")) || (key0 === "default")) || (key0 === "maxLength"))){const err1 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;break;}}if(_errs3 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs4 = errors;if("text" !== data.kind){const err2 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/0/properties/kind/const",keyword:"const",params:{allowedValue: "text"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.label !== undefined && func0.call(data, "label")){let data1 = data.label;const _errs5 = errors;const _errs6 = errors;if(errors === _errs6){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){let missing1;if((((data1.en === undefined) || (!(func0.call(data1, "en")))) && (missing1 = "en")) || (((data1.ar === undefined) || (!(func0.call(data1, "ar")))) && (missing1 = "ar"))){const err3 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {const _errs8 = errors;for(const key1 of Object.keys(data1)){if(!((key1 === "en") || (key1 === "ar"))){const err4 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;break;}}if(_errs8 === errors){if(data1.en !== undefined && func0.call(data1, "en")){let data2 = data1.en;const _errs9 = errors;if(errors === _errs9){if(typeof data2 === "string"){if(func53(data2) > 200){const err5 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {if(func53(data2) < 1){const err6 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}var valid3 = _errs9 === errors;}else {var valid3 = true;}if(valid3){if(data1.ar !== undefined && func0.call(data1, "ar")){let data3 = data1.ar;const _errs11 = errors;if(errors === _errs11){if(typeof data3 === "string"){if(func53(data3) > 200){const err8 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(func53(data3) < 1){const err9 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}else {const err10 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid3 = _errs11 === errors;}else {var valid3 = true;}}}}}else {const err11 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.required !== undefined && func0.call(data, "required")){const _errs13 = errors;if(typeof data.required !== "boolean"){const err12 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/0/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data.default !== undefined && func0.call(data, "default")){const _errs15 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data.maxLength !== undefined && func0.call(data, "maxLength")){let data6 = data.maxLength;const _errs16 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err13 = {instancePath:instancePath+"/maxLength",schemaPath:"#/oneOf/0/properties/maxLength/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(errors === _errs16){if((typeof data6 == "number") && (isFinite(data6))){if(data6 > 10000 || isNaN(data6)){const err14 = {instancePath:instancePath+"/maxLength",schemaPath:"#/oneOf/0/properties/maxLength/maximum",keyword:"maximum",params:{comparison: "<=", limit: 10000},message:"must be <= 10000"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {if(data6 < 1 || isNaN(data6)){const err15 = {instancePath:instancePath+"/maxLength",schemaPath:"#/oneOf/0/properties/maxLength/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}}var valid1 = _errs16 === errors;}else {var valid1 = true;}}}}}}}}else {const err16 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs18 = errors;if(errors === _errs18){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing2 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing2 = "label"))) || (((data.maxLength === undefined) || (!(func0.call(data, "maxLength")))) && (missing2 = "maxLength"))){const err17 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {const _errs20 = errors;for(const key2 of Object.keys(data)){if(!(((((key2 === "kind") || (key2 === "label")) || (key2 === "required")) || (key2 === "default")) || (key2 === "maxLength"))){const err18 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;break;}}if(_errs20 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs21 = errors;if("localizedText" !== data.kind){const err19 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/1/properties/kind/const",keyword:"const",params:{allowedValue: "localizedText"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid4 = _errs21 === errors;}else {var valid4 = true;}if(valid4){if(data.label !== undefined && func0.call(data, "label")){let data8 = data.label;const _errs22 = errors;const _errs23 = errors;if(errors === _errs23){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){let missing3;if((((data8.en === undefined) || (!(func0.call(data8, "en")))) && (missing3 = "en")) || (((data8.ar === undefined) || (!(func0.call(data8, "ar")))) && (missing3 = "ar"))){const err20 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {const _errs25 = errors;for(const key3 of Object.keys(data8)){if(!((key3 === "en") || (key3 === "ar"))){const err21 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;break;}}if(_errs25 === errors){if(data8.en !== undefined && func0.call(data8, "en")){let data9 = data8.en;const _errs26 = errors;if(errors === _errs26){if(typeof data9 === "string"){if(func53(data9) > 200){const err22 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(func53(data9) < 1){const err23 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}else {const err24 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var valid6 = _errs26 === errors;}else {var valid6 = true;}if(valid6){if(data8.ar !== undefined && func0.call(data8, "ar")){let data10 = data8.ar;const _errs28 = errors;if(errors === _errs28){if(typeof data10 === "string"){if(func53(data10) > 200){const err25 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(func53(data10) < 1){const err26 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var valid6 = _errs28 === errors;}else {var valid6 = true;}}}}}else {const err28 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid4 = _errs22 === errors;}else {var valid4 = true;}if(valid4){if(data.required !== undefined && func0.call(data, "required")){const _errs30 = errors;if(typeof data.required !== "boolean"){const err29 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/1/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid4 = _errs30 === errors;}else {var valid4 = true;}if(valid4){if(data.default !== undefined && func0.call(data, "default")){const _errs32 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid4 = _errs32 === errors;}else {var valid4 = true;}if(valid4){if(data.maxLength !== undefined && func0.call(data, "maxLength")){let data13 = data.maxLength;const _errs33 = errors;if(!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))){const err30 = {instancePath:instancePath+"/maxLength",schemaPath:"#/oneOf/1/properties/maxLength/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(errors === _errs33){if((typeof data13 == "number") && (isFinite(data13))){if(data13 > 10000 || isNaN(data13)){const err31 = {instancePath:instancePath+"/maxLength",schemaPath:"#/oneOf/1/properties/maxLength/maximum",keyword:"maximum",params:{comparison: "<=", limit: 10000},message:"must be <= 10000"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data13 < 1 || isNaN(data13)){const err32 = {instancePath:instancePath+"/maxLength",schemaPath:"#/oneOf/1/properties/maxLength/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}}}var valid4 = _errs33 === errors;}else {var valid4 = true;}}}}}}}}else {const err33 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs18 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing4 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing4 = "label"))){const err34 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {const _errs37 = errors;for(const key4 of Object.keys(data)){if(!((((key4 === "kind") || (key4 === "label")) || (key4 === "required")) || (key4 === "default"))){const err35 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;break;}}if(_errs37 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs38 = errors;if("boolean" !== data.kind){const err36 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/2/properties/kind/const",keyword:"const",params:{allowedValue: "boolean"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid7 = _errs38 === errors;}else {var valid7 = true;}if(valid7){if(data.label !== undefined && func0.call(data, "label")){let data15 = data.label;const _errs39 = errors;const _errs40 = errors;if(errors === _errs40){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){let missing5;if((((data15.en === undefined) || (!(func0.call(data15, "en")))) && (missing5 = "en")) || (((data15.ar === undefined) || (!(func0.call(data15, "ar")))) && (missing5 = "ar"))){const err37 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {const _errs42 = errors;for(const key5 of Object.keys(data15)){if(!((key5 === "en") || (key5 === "ar"))){const err38 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;break;}}if(_errs42 === errors){if(data15.en !== undefined && func0.call(data15, "en")){let data16 = data15.en;const _errs43 = errors;if(errors === _errs43){if(typeof data16 === "string"){if(func53(data16) > 200){const err39 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {if(func53(data16) < 1){const err40 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}else {const err41 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var valid9 = _errs43 === errors;}else {var valid9 = true;}if(valid9){if(data15.ar !== undefined && func0.call(data15, "ar")){let data17 = data15.ar;const _errs45 = errors;if(errors === _errs45){if(typeof data17 === "string"){if(func53(data17) > 200){const err42 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(func53(data17) < 1){const err43 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}var valid9 = _errs45 === errors;}else {var valid9 = true;}}}}}else {const err45 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}var valid7 = _errs39 === errors;}else {var valid7 = true;}if(valid7){if(data.required !== undefined && func0.call(data, "required")){const _errs47 = errors;if(typeof data.required !== "boolean"){const err46 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/2/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid7 = _errs47 === errors;}else {var valid7 = true;}if(valid7){if(data.default !== undefined && func0.call(data, "default")){const _errs49 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid7 = _errs49 === errors;}else {var valid7 = true;}}}}}}}else {const err47 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}var _valid0 = _errs35 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;}const _errs50 = errors;if(errors === _errs50){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if((((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing6 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing6 = "label"))) || (((data.min === undefined) || (!(func0.call(data, "min")))) && (missing6 = "min"))) || (((data.max === undefined) || (!(func0.call(data, "max")))) && (missing6 = "max"))){const err48 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {const _errs52 = errors;for(const key6 of Object.keys(data)){if(!((((((((key6 === "kind") || (key6 === "label")) || (key6 === "required")) || (key6 === "default")) || (key6 === "min")) || (key6 === "max")) || (key6 === "step")) || (key6 === "unit"))){const err49 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;break;}}if(_errs52 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs53 = errors;if("number" !== data.kind){const err50 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/3/properties/kind/const",keyword:"const",params:{allowedValue: "number"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid10 = _errs53 === errors;}else {var valid10 = true;}if(valid10){if(data.label !== undefined && func0.call(data, "label")){let data21 = data.label;const _errs54 = errors;const _errs55 = errors;if(errors === _errs55){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){let missing7;if((((data21.en === undefined) || (!(func0.call(data21, "en")))) && (missing7 = "en")) || (((data21.ar === undefined) || (!(func0.call(data21, "ar")))) && (missing7 = "ar"))){const err51 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {const _errs57 = errors;for(const key7 of Object.keys(data21)){if(!((key7 === "en") || (key7 === "ar"))){const err52 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;break;}}if(_errs57 === errors){if(data21.en !== undefined && func0.call(data21, "en")){let data22 = data21.en;const _errs58 = errors;if(errors === _errs58){if(typeof data22 === "string"){if(func53(data22) > 200){const err53 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(func53(data22) < 1){const err54 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var valid12 = _errs58 === errors;}else {var valid12 = true;}if(valid12){if(data21.ar !== undefined && func0.call(data21, "ar")){let data23 = data21.ar;const _errs60 = errors;if(errors === _errs60){if(typeof data23 === "string"){if(func53(data23) > 200){const err56 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}else {if(func53(data23) < 1){const err57 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}else {const err58 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var valid12 = _errs60 === errors;}else {var valid12 = true;}}}}}else {const err59 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid10 = _errs54 === errors;}else {var valid10 = true;}if(valid10){if(data.required !== undefined && func0.call(data, "required")){const _errs62 = errors;if(typeof data.required !== "boolean"){const err60 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/3/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid10 = _errs62 === errors;}else {var valid10 = true;}if(valid10){if(data.default !== undefined && func0.call(data, "default")){const _errs64 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid10 = _errs64 === errors;}else {var valid10 = true;}if(valid10){if(data.min !== undefined && func0.call(data, "min")){let data26 = data.min;const _errs65 = errors;if(errors === _errs65){if((typeof data26 == "number") && (isFinite(data26))){if(data26 > 1000000 || isNaN(data26)){const err61 = {instancePath:instancePath+"/min",schemaPath:"#/oneOf/3/properties/min/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1000000},message:"must be <= 1000000"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {if(data26 < -1000000 || isNaN(data26)){const err62 = {instancePath:instancePath+"/min",schemaPath:"#/oneOf/3/properties/min/minimum",keyword:"minimum",params:{comparison: ">=", limit: -1000000},message:"must be >= -1000000"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}else {const err63 = {instancePath:instancePath+"/min",schemaPath:"#/oneOf/3/properties/min/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid10 = _errs65 === errors;}else {var valid10 = true;}if(valid10){if(data.max !== undefined && func0.call(data, "max")){let data27 = data.max;const _errs67 = errors;if(errors === _errs67){if((typeof data27 == "number") && (isFinite(data27))){if(data27 > 1000000 || isNaN(data27)){const err64 = {instancePath:instancePath+"/max",schemaPath:"#/oneOf/3/properties/max/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1000000},message:"must be <= 1000000"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data27 < -1000000 || isNaN(data27)){const err65 = {instancePath:instancePath+"/max",schemaPath:"#/oneOf/3/properties/max/minimum",keyword:"minimum",params:{comparison: ">=", limit: -1000000},message:"must be >= -1000000"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}else {const err66 = {instancePath:instancePath+"/max",schemaPath:"#/oneOf/3/properties/max/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}var valid10 = _errs67 === errors;}else {var valid10 = true;}if(valid10){if(data.step !== undefined && func0.call(data, "step")){let data28 = data.step;const _errs69 = errors;if(errors === _errs69){if((typeof data28 == "number") && (isFinite(data28))){if(data28 > 1000000 || isNaN(data28)){const err67 = {instancePath:instancePath+"/step",schemaPath:"#/oneOf/3/properties/step/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1000000},message:"must be <= 1000000"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}else {if(data28 <= 0 || isNaN(data28)){const err68 = {instancePath:instancePath+"/step",schemaPath:"#/oneOf/3/properties/step/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}else {const err69 = {instancePath:instancePath+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}var valid10 = _errs69 === errors;}else {var valid10 = true;}if(valid10){if(data.unit !== undefined && func0.call(data, "unit")){let data29 = data.unit;const _errs71 = errors;if(!(((((((((data29 === "px") || (data29 === "%")) || (data29 === "rem")) || (data29 === "em")) || (data29 === "s")) || (data29 === "ms")) || (data29 === "deg")) || (data29 === "vh")) || (data29 === "vw"))){const err70 = {instancePath:instancePath+"/unit",schemaPath:"#/oneOf/3/properties/unit/enum",keyword:"enum",params:{allowedValues: schema18.oneOf[3].properties.unit.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid10 = _errs71 === errors;}else {var valid10 = true;}}}}}}}}}}}else {const err71 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}var _valid0 = _errs50 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;}const _errs72 = errors;if(errors === _errs72){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing8 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing8 = "label"))){const err72 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {const _errs74 = errors;for(const key8 of Object.keys(data)){if(!((((key8 === "kind") || (key8 === "label")) || (key8 === "required")) || (key8 === "default"))){const err73 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;break;}}if(_errs74 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs75 = errors;if("color" !== data.kind){const err74 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/4/properties/kind/const",keyword:"const",params:{allowedValue: "color"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid13 = _errs75 === errors;}else {var valid13 = true;}if(valid13){if(data.label !== undefined && func0.call(data, "label")){let data31 = data.label;const _errs76 = errors;const _errs77 = errors;if(errors === _errs77){if(data31 && typeof data31 == "object" && !Array.isArray(data31)){let missing9;if((((data31.en === undefined) || (!(func0.call(data31, "en")))) && (missing9 = "en")) || (((data31.ar === undefined) || (!(func0.call(data31, "ar")))) && (missing9 = "ar"))){const err75 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {const _errs79 = errors;for(const key9 of Object.keys(data31)){if(!((key9 === "en") || (key9 === "ar"))){const err76 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;break;}}if(_errs79 === errors){if(data31.en !== undefined && func0.call(data31, "en")){let data32 = data31.en;const _errs80 = errors;if(errors === _errs80){if(typeof data32 === "string"){if(func53(data32) > 200){const err77 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(func53(data32) < 1){const err78 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var valid15 = _errs80 === errors;}else {var valid15 = true;}if(valid15){if(data31.ar !== undefined && func0.call(data31, "ar")){let data33 = data31.ar;const _errs82 = errors;if(errors === _errs82){if(typeof data33 === "string"){if(func53(data33) > 200){const err80 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}else {if(func53(data33) < 1){const err81 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var valid15 = _errs82 === errors;}else {var valid15 = true;}}}}}else {const err83 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}var valid13 = _errs76 === errors;}else {var valid13 = true;}if(valid13){if(data.required !== undefined && func0.call(data, "required")){const _errs84 = errors;if(typeof data.required !== "boolean"){const err84 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/4/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var valid13 = _errs84 === errors;}else {var valid13 = true;}if(valid13){if(data.default !== undefined && func0.call(data, "default")){const _errs86 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid13 = _errs86 === errors;}else {var valid13 = true;}}}}}}}else {const err85 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var _valid0 = _errs72 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;}const _errs87 = errors;if(errors === _errs87){if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if(((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing10 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing10 = "label"))) || (((data.options === undefined) || (!(func0.call(data, "options")))) && (missing10 = "options"))){const err86 = {instancePath,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {const _errs89 = errors;for(const key10 of Object.keys(data)){if(!(((((key10 === "kind") || (key10 === "label")) || (key10 === "required")) || (key10 === "default")) || (key10 === "options"))){const err87 = {instancePath,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;break;}}if(_errs89 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs90 = errors;if("select" !== data.kind){const err88 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/5/properties/kind/const",keyword:"const",params:{allowedValue: "select"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var valid16 = _errs90 === errors;}else {var valid16 = true;}if(valid16){if(data.label !== undefined && func0.call(data, "label")){let data37 = data.label;const _errs91 = errors;const _errs92 = errors;if(errors === _errs92){if(data37 && typeof data37 == "object" && !Array.isArray(data37)){let missing11;if((((data37.en === undefined) || (!(func0.call(data37, "en")))) && (missing11 = "en")) || (((data37.ar === undefined) || (!(func0.call(data37, "ar")))) && (missing11 = "ar"))){const err89 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing11},message:"must have required property '"+missing11+"'"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {const _errs94 = errors;for(const key11 of Object.keys(data37)){if(!((key11 === "en") || (key11 === "ar"))){const err90 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;break;}}if(_errs94 === errors){if(data37.en !== undefined && func0.call(data37, "en")){let data38 = data37.en;const _errs95 = errors;if(errors === _errs95){if(typeof data38 === "string"){if(func53(data38) > 200){const err91 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {if(func53(data38) < 1){const err92 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}else {const err93 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}var valid18 = _errs95 === errors;}else {var valid18 = true;}if(valid18){if(data37.ar !== undefined && func0.call(data37, "ar")){let data39 = data37.ar;const _errs97 = errors;if(errors === _errs97){if(typeof data39 === "string"){if(func53(data39) > 200){const err94 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}else {if(func53(data39) < 1){const err95 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}}else {const err96 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}var valid18 = _errs97 === errors;}else {var valid18 = true;}}}}}else {const err97 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}var valid16 = _errs91 === errors;}else {var valid16 = true;}if(valid16){if(data.required !== undefined && func0.call(data, "required")){const _errs99 = errors;if(typeof data.required !== "boolean"){const err98 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/5/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}var valid16 = _errs99 === errors;}else {var valid16 = true;}if(valid16){if(data.default !== undefined && func0.call(data, "default")){const _errs101 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid16 = _errs101 === errors;}else {var valid16 = true;}if(valid16){if(data.options !== undefined && func0.call(data, "options")){let data42 = data.options;const _errs102 = errors;if(errors === _errs102){if(Array.isArray(data42)){if(data42.length > 100){const err99 = {instancePath:instancePath+"/options",schemaPath:"#/oneOf/5/properties/options/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}else {if(data42.length < 1){const err100 = {instancePath:instancePath+"/options",schemaPath:"#/oneOf/5/properties/options/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {var valid19 = true;const len0 = data42.length;for(let i0=0; i0<len0; i0++){let data43 = data42[i0];const _errs104 = errors;if(errors === _errs104){if(data43 && typeof data43 == "object" && !Array.isArray(data43)){let missing12;if((((data43.value === undefined) || (!(func0.call(data43, "value")))) && (missing12 = "value")) || (((data43.label === undefined) || (!(func0.call(data43, "label")))) && (missing12 = "label"))){const err101 = {instancePath:instancePath+"/options/" + i0,schemaPath:"#/oneOf/5/properties/options/items/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {const _errs106 = errors;for(const key12 of Object.keys(data43)){if(!((key12 === "value") || (key12 === "label"))){const err102 = {instancePath:instancePath+"/options/" + i0,schemaPath:"#/oneOf/5/properties/options/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;break;}}if(_errs106 === errors){if(data43.value !== undefined && func0.call(data43, "value")){let data44 = data43.value;const _errs107 = errors;const _errs109 = errors;const _errs112 = errors;const _errs113 = errors;if(errors === _errs113){if(typeof data44 === "string"){if(!pattern0.test(data44)){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}else {const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}var valid24 = _errs113 === errors;if(valid24){const err105 = {instancePath:instancePath+"/options/" + i0+"/value",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}}if(errors === _errs109){if(typeof data44 === "string"){if(func53(data44) > 100){const err106 = {instancePath:instancePath+"/options/" + i0+"/value",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(func53(data44) < 1){const err107 = {instancePath:instancePath+"/options/" + i0+"/value",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(!pattern1.test(data44)){const err108 = {instancePath:instancePath+"/options/" + i0+"/value",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}else {const err109 = {instancePath:instancePath+"/options/" + i0+"/value",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}var valid22 = _errs109 === errors;if(valid22){const _errs115 = errors;const _errs116 = errors;const _errs117 = errors;if(!(((data44 === "constructor") || (data44 === "prototype")) || (data44 === "__proto__"))){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}var valid25 = _errs117 === errors;if(valid25){const err111 = {instancePath:instancePath+"/options/" + i0+"/value",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}var valid22 = _errs115 === errors;}var valid20 = _errs107 === errors;}else {var valid20 = true;}if(valid20){if(data43.label !== undefined && func0.call(data43, "label")){let data45 = data43.label;const _errs118 = errors;const _errs119 = errors;if(errors === _errs119){if(data45 && typeof data45 == "object" && !Array.isArray(data45)){let missing13;if((((data45.en === undefined) || (!(func0.call(data45, "en")))) && (missing13 = "en")) || (((data45.ar === undefined) || (!(func0.call(data45, "ar")))) && (missing13 = "ar"))){const err112 = {instancePath:instancePath+"/options/" + i0+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing13},message:"must have required property '"+missing13+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}else {const _errs121 = errors;for(const key13 of Object.keys(data45)){if(!((key13 === "en") || (key13 === "ar"))){const err113 = {instancePath:instancePath+"/options/" + i0+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;break;}}if(_errs121 === errors){if(data45.en !== undefined && func0.call(data45, "en")){let data46 = data45.en;const _errs122 = errors;if(errors === _errs122){if(typeof data46 === "string"){if(func53(data46) > 200){const err114 = {instancePath:instancePath+"/options/" + i0+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {if(func53(data46) < 1){const err115 = {instancePath:instancePath+"/options/" + i0+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}else {const err116 = {instancePath:instancePath+"/options/" + i0+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}var valid27 = _errs122 === errors;}else {var valid27 = true;}if(valid27){if(data45.ar !== undefined && func0.call(data45, "ar")){let data47 = data45.ar;const _errs124 = errors;if(errors === _errs124){if(typeof data47 === "string"){if(func53(data47) > 200){const err117 = {instancePath:instancePath+"/options/" + i0+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {if(func53(data47) < 1){const err118 = {instancePath:instancePath+"/options/" + i0+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}}else {const err119 = {instancePath:instancePath+"/options/" + i0+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}var valid27 = _errs124 === errors;}else {var valid27 = true;}}}}}else {const err120 = {instancePath:instancePath+"/options/" + i0+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}var valid20 = _errs118 === errors;}else {var valid20 = true;}}}}}else {const err121 = {instancePath:instancePath+"/options/" + i0,schemaPath:"#/oneOf/5/properties/options/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}var valid19 = _errs104 === errors;if(!valid19){break;}}}}}else {const err122 = {instancePath:instancePath+"/options",schemaPath:"#/oneOf/5/properties/options/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}var valid16 = _errs102 === errors;}else {var valid16 = true;}}}}}}}}else {const err123 = {instancePath,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}var _valid0 = _errs87 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 5];}else {if(_valid0){valid0 = true;passing0 = 5;}const _errs126 = errors;if(errors === _errs126){if(data && typeof data == "object" && !Array.isArray(data)){let missing14;if(((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing14 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing14 = "label"))) || (((data.options === undefined) || (!(func0.call(data, "options")))) && (missing14 = "options"))){const err124 = {instancePath,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty: missing14},message:"must have required property '"+missing14+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {const _errs128 = errors;for(const key14 of Object.keys(data)){if(!(((((key14 === "kind") || (key14 === "label")) || (key14 === "required")) || (key14 === "default")) || (key14 === "options"))){const err125 = {instancePath,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;break;}}if(_errs128 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs129 = errors;if("font" !== data.kind){const err126 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/6/properties/kind/const",keyword:"const",params:{allowedValue: "font"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var valid28 = _errs129 === errors;}else {var valid28 = true;}if(valid28){if(data.label !== undefined && func0.call(data, "label")){let data49 = data.label;const _errs130 = errors;const _errs131 = errors;if(errors === _errs131){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing15;if((((data49.en === undefined) || (!(func0.call(data49, "en")))) && (missing15 = "en")) || (((data49.ar === undefined) || (!(func0.call(data49, "ar")))) && (missing15 = "ar"))){const err127 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing15},message:"must have required property '"+missing15+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {const _errs133 = errors;for(const key15 of Object.keys(data49)){if(!((key15 === "en") || (key15 === "ar"))){const err128 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;break;}}if(_errs133 === errors){if(data49.en !== undefined && func0.call(data49, "en")){let data50 = data49.en;const _errs134 = errors;if(errors === _errs134){if(typeof data50 === "string"){if(func53(data50) > 200){const err129 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {if(func53(data50) < 1){const err130 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}else {const err131 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}var valid30 = _errs134 === errors;}else {var valid30 = true;}if(valid30){if(data49.ar !== undefined && func0.call(data49, "ar")){let data51 = data49.ar;const _errs136 = errors;if(errors === _errs136){if(typeof data51 === "string"){if(func53(data51) > 200){const err132 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {if(func53(data51) < 1){const err133 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}}else {const err134 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}var valid30 = _errs136 === errors;}else {var valid30 = true;}}}}}else {const err135 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var valid28 = _errs130 === errors;}else {var valid28 = true;}if(valid28){if(data.required !== undefined && func0.call(data, "required")){const _errs138 = errors;if(typeof data.required !== "boolean"){const err136 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/6/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var valid28 = _errs138 === errors;}else {var valid28 = true;}if(valid28){if(data.default !== undefined && func0.call(data, "default")){const _errs140 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid28 = _errs140 === errors;}else {var valid28 = true;}if(valid28){if(data.options !== undefined && func0.call(data, "options")){let data54 = data.options;const _errs141 = errors;if(errors === _errs141){if(Array.isArray(data54)){if(data54.length > 100){const err137 = {instancePath:instancePath+"/options",schemaPath:"#/oneOf/6/properties/options/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {if(data54.length < 1){const err138 = {instancePath:instancePath+"/options",schemaPath:"#/oneOf/6/properties/options/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {var valid31 = true;const len1 = data54.length;for(let i1=0; i1<len1; i1++){let data55 = data54[i1];const _errs143 = errors;if(errors === _errs143){if(data55 && typeof data55 == "object" && !Array.isArray(data55)){let missing16;if((((data55.value === undefined) || (!(func0.call(data55, "value")))) && (missing16 = "value")) || (((data55.label === undefined) || (!(func0.call(data55, "label")))) && (missing16 = "label"))){const err139 = {instancePath:instancePath+"/options/" + i1,schemaPath:"#/oneOf/6/properties/options/items/required",keyword:"required",params:{missingProperty: missing16},message:"must have required property '"+missing16+"'"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {const _errs145 = errors;for(const key16 of Object.keys(data55)){if(!((key16 === "value") || (key16 === "label"))){const err140 = {instancePath:instancePath+"/options/" + i1,schemaPath:"#/oneOf/6/properties/options/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;break;}}if(_errs145 === errors){if(data55.value !== undefined && func0.call(data55, "value")){let data56 = data55.value;const _errs146 = errors;const _errs148 = errors;const _errs151 = errors;const _errs152 = errors;if(errors === _errs152){if(typeof data56 === "string"){if(!pattern0.test(data56)){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}else {const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var valid36 = _errs152 === errors;if(valid36){const err143 = {instancePath:instancePath+"/options/" + i1+"/value",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs151;if(vErrors !== null){if(_errs151){vErrors.length = _errs151;}else {vErrors = null;}}}if(errors === _errs148){if(typeof data56 === "string"){if(func53(data56) > 100){const err144 = {instancePath:instancePath+"/options/" + i1+"/value",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}else {if(func53(data56) < 1){const err145 = {instancePath:instancePath+"/options/" + i1+"/value",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(!pattern1.test(data56)){const err146 = {instancePath:instancePath+"/options/" + i1+"/value",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}}else {const err147 = {instancePath:instancePath+"/options/" + i1+"/value",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var valid34 = _errs148 === errors;if(valid34){const _errs154 = errors;const _errs155 = errors;const _errs156 = errors;if(!(((data56 === "constructor") || (data56 === "prototype")) || (data56 === "__proto__"))){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var valid37 = _errs156 === errors;if(valid37){const err149 = {instancePath:instancePath+"/options/" + i1+"/value",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}else {errors = _errs155;if(vErrors !== null){if(_errs155){vErrors.length = _errs155;}else {vErrors = null;}}}var valid34 = _errs154 === errors;}var valid32 = _errs146 === errors;}else {var valid32 = true;}if(valid32){if(data55.label !== undefined && func0.call(data55, "label")){let data57 = data55.label;const _errs157 = errors;const _errs158 = errors;if(errors === _errs158){if(data57 && typeof data57 == "object" && !Array.isArray(data57)){let missing17;if((((data57.en === undefined) || (!(func0.call(data57, "en")))) && (missing17 = "en")) || (((data57.ar === undefined) || (!(func0.call(data57, "ar")))) && (missing17 = "ar"))){const err150 = {instancePath:instancePath+"/options/" + i1+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing17},message:"must have required property '"+missing17+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}else {const _errs160 = errors;for(const key17 of Object.keys(data57)){if(!((key17 === "en") || (key17 === "ar"))){const err151 = {instancePath:instancePath+"/options/" + i1+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;break;}}if(_errs160 === errors){if(data57.en !== undefined && func0.call(data57, "en")){let data58 = data57.en;const _errs161 = errors;if(errors === _errs161){if(typeof data58 === "string"){if(func53(data58) > 200){const err152 = {instancePath:instancePath+"/options/" + i1+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {if(func53(data58) < 1){const err153 = {instancePath:instancePath+"/options/" + i1+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath:instancePath+"/options/" + i1+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var valid39 = _errs161 === errors;}else {var valid39 = true;}if(valid39){if(data57.ar !== undefined && func0.call(data57, "ar")){let data59 = data57.ar;const _errs163 = errors;if(errors === _errs163){if(typeof data59 === "string"){if(func53(data59) > 200){const err155 = {instancePath:instancePath+"/options/" + i1+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {if(func53(data59) < 1){const err156 = {instancePath:instancePath+"/options/" + i1+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}else {const err157 = {instancePath:instancePath+"/options/" + i1+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}var valid39 = _errs163 === errors;}else {var valid39 = true;}}}}}else {const err158 = {instancePath:instancePath+"/options/" + i1+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}var valid32 = _errs157 === errors;}else {var valid32 = true;}}}}}else {const err159 = {instancePath:instancePath+"/options/" + i1,schemaPath:"#/oneOf/6/properties/options/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var valid31 = _errs143 === errors;if(!valid31){break;}}}}}else {const err160 = {instancePath:instancePath+"/options",schemaPath:"#/oneOf/6/properties/options/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}var valid28 = _errs141 === errors;}else {var valid28 = true;}}}}}}}}else {const err161 = {instancePath,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}var _valid0 = _errs126 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 6];}else {if(_valid0){valid0 = true;passing0 = 6;}const _errs165 = errors;if(errors === _errs165){if(data && typeof data == "object" && !Array.isArray(data)){let missing18;if((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing18 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing18 = "label"))){const err162 = {instancePath,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty: missing18},message:"must have required property '"+missing18+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}else {const _errs167 = errors;for(const key18 of Object.keys(data)){if(!((((key18 === "kind") || (key18 === "label")) || (key18 === "required")) || (key18 === "default"))){const err163 = {instancePath,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;break;}}if(_errs167 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs168 = errors;if("link" !== data.kind){const err164 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/7/properties/kind/const",keyword:"const",params:{allowedValue: "link"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}var valid40 = _errs168 === errors;}else {var valid40 = true;}if(valid40){if(data.label !== undefined && func0.call(data, "label")){let data61 = data.label;const _errs169 = errors;const _errs170 = errors;if(errors === _errs170){if(data61 && typeof data61 == "object" && !Array.isArray(data61)){let missing19;if((((data61.en === undefined) || (!(func0.call(data61, "en")))) && (missing19 = "en")) || (((data61.ar === undefined) || (!(func0.call(data61, "ar")))) && (missing19 = "ar"))){const err165 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing19},message:"must have required property '"+missing19+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}else {const _errs172 = errors;for(const key19 of Object.keys(data61)){if(!((key19 === "en") || (key19 === "ar"))){const err166 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key19},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;break;}}if(_errs172 === errors){if(data61.en !== undefined && func0.call(data61, "en")){let data62 = data61.en;const _errs173 = errors;if(errors === _errs173){if(typeof data62 === "string"){if(func53(data62) > 200){const err167 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}else {if(func53(data62) < 1){const err168 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}}else {const err169 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}var valid42 = _errs173 === errors;}else {var valid42 = true;}if(valid42){if(data61.ar !== undefined && func0.call(data61, "ar")){let data63 = data61.ar;const _errs175 = errors;if(errors === _errs175){if(typeof data63 === "string"){if(func53(data63) > 200){const err170 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}else {if(func53(data63) < 1){const err171 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}else {const err172 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}var valid42 = _errs175 === errors;}else {var valid42 = true;}}}}}else {const err173 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}var valid40 = _errs169 === errors;}else {var valid40 = true;}if(valid40){if(data.required !== undefined && func0.call(data, "required")){const _errs177 = errors;if(typeof data.required !== "boolean"){const err174 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/7/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}var valid40 = _errs177 === errors;}else {var valid40 = true;}if(valid40){if(data.default !== undefined && func0.call(data, "default")){const _errs179 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid40 = _errs179 === errors;}else {var valid40 = true;}}}}}}}else {const err175 = {instancePath,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}var _valid0 = _errs165 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 7];}else {if(_valid0){valid0 = true;passing0 = 7;}const _errs180 = errors;if(errors === _errs180){if(data && typeof data == "object" && !Array.isArray(data)){let missing20;if((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing20 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing20 = "label"))){const err176 = {instancePath,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty: missing20},message:"must have required property '"+missing20+"'"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}else {const _errs182 = errors;for(const key20 of Object.keys(data)){if(!((((key20 === "kind") || (key20 === "label")) || (key20 === "required")) || (key20 === "default"))){const err177 = {instancePath,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key20},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;break;}}if(_errs182 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs183 = errors;if("image" !== data.kind){const err178 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/8/properties/kind/const",keyword:"const",params:{allowedValue: "image"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}var valid43 = _errs183 === errors;}else {var valid43 = true;}if(valid43){if(data.label !== undefined && func0.call(data, "label")){let data67 = data.label;const _errs184 = errors;const _errs185 = errors;if(errors === _errs185){if(data67 && typeof data67 == "object" && !Array.isArray(data67)){let missing21;if((((data67.en === undefined) || (!(func0.call(data67, "en")))) && (missing21 = "en")) || (((data67.ar === undefined) || (!(func0.call(data67, "ar")))) && (missing21 = "ar"))){const err179 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing21},message:"must have required property '"+missing21+"'"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {const _errs187 = errors;for(const key21 of Object.keys(data67)){if(!((key21 === "en") || (key21 === "ar"))){const err180 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key21},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;break;}}if(_errs187 === errors){if(data67.en !== undefined && func0.call(data67, "en")){let data68 = data67.en;const _errs188 = errors;if(errors === _errs188){if(typeof data68 === "string"){if(func53(data68) > 200){const err181 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}else {if(func53(data68) < 1){const err182 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}var valid45 = _errs188 === errors;}else {var valid45 = true;}if(valid45){if(data67.ar !== undefined && func0.call(data67, "ar")){let data69 = data67.ar;const _errs190 = errors;if(errors === _errs190){if(typeof data69 === "string"){if(func53(data69) > 200){const err184 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {if(func53(data69) < 1){const err185 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}}else {const err186 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}var valid45 = _errs190 === errors;}else {var valid45 = true;}}}}}else {const err187 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}var valid43 = _errs184 === errors;}else {var valid43 = true;}if(valid43){if(data.required !== undefined && func0.call(data, "required")){const _errs192 = errors;if(typeof data.required !== "boolean"){const err188 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/8/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}var valid43 = _errs192 === errors;}else {var valid43 = true;}if(valid43){if(data.default !== undefined && func0.call(data, "default")){const _errs194 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid43 = _errs194 === errors;}else {var valid43 = true;}}}}}}}else {const err189 = {instancePath,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}var _valid0 = _errs180 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 8];}else {if(_valid0){valid0 = true;passing0 = 8;}const _errs195 = errors;if(errors === _errs195){if(data && typeof data == "object" && !Array.isArray(data)){let missing22;if(((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing22 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing22 = "label"))) || (((data.resourceKind === undefined) || (!(func0.call(data, "resourceKind")))) && (missing22 = "resourceKind"))){const err190 = {instancePath,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty: missing22},message:"must have required property '"+missing22+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}else {const _errs197 = errors;for(const key22 of Object.keys(data)){if(!(((((key22 === "kind") || (key22 === "label")) || (key22 === "required")) || (key22 === "default")) || (key22 === "resourceKind"))){const err191 = {instancePath,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key22},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;break;}}if(_errs197 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs198 = errors;if("resource" !== data.kind){const err192 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/9/properties/kind/const",keyword:"const",params:{allowedValue: "resource"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}var valid46 = _errs198 === errors;}else {var valid46 = true;}if(valid46){if(data.label !== undefined && func0.call(data, "label")){let data73 = data.label;const _errs199 = errors;const _errs200 = errors;if(errors === _errs200){if(data73 && typeof data73 == "object" && !Array.isArray(data73)){let missing23;if((((data73.en === undefined) || (!(func0.call(data73, "en")))) && (missing23 = "en")) || (((data73.ar === undefined) || (!(func0.call(data73, "ar")))) && (missing23 = "ar"))){const err193 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing23},message:"must have required property '"+missing23+"'"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}else {const _errs202 = errors;for(const key23 of Object.keys(data73)){if(!((key23 === "en") || (key23 === "ar"))){const err194 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key23},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;break;}}if(_errs202 === errors){if(data73.en !== undefined && func0.call(data73, "en")){let data74 = data73.en;const _errs203 = errors;if(errors === _errs203){if(typeof data74 === "string"){if(func53(data74) > 200){const err195 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}else {if(func53(data74) < 1){const err196 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}}else {const err197 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}var valid48 = _errs203 === errors;}else {var valid48 = true;}if(valid48){if(data73.ar !== undefined && func0.call(data73, "ar")){let data75 = data73.ar;const _errs205 = errors;if(errors === _errs205){if(typeof data75 === "string"){if(func53(data75) > 200){const err198 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}else {if(func53(data75) < 1){const err199 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}}else {const err200 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}var valid48 = _errs205 === errors;}else {var valid48 = true;}}}}}else {const err201 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}var valid46 = _errs199 === errors;}else {var valid46 = true;}if(valid46){if(data.required !== undefined && func0.call(data, "required")){const _errs207 = errors;if(typeof data.required !== "boolean"){const err202 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/9/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}var valid46 = _errs207 === errors;}else {var valid46 = true;}if(valid46){if(data.default !== undefined && func0.call(data, "default")){const _errs209 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid46 = _errs209 === errors;}else {var valid46 = true;}if(valid46){if(data.resourceKind !== undefined && func0.call(data, "resourceKind")){let data78 = data.resourceKind;const _errs210 = errors;if(!(((data78 === "product") || (data78 === "collection")) || (data78 === "page"))){const err203 = {instancePath:instancePath+"/resourceKind",schemaPath:"#/oneOf/9/properties/resourceKind/enum",keyword:"enum",params:{allowedValues: schema18.oneOf[9].properties.resourceKind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}var valid46 = _errs210 === errors;}else {var valid46 = true;}}}}}}}}else {const err204 = {instancePath,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}var _valid0 = _errs195 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 9];}else {if(_valid0){valid0 = true;passing0 = 9;}const _errs211 = errors;if(errors === _errs211){if(data && typeof data == "object" && !Array.isArray(data)){let missing24;if((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing24 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing24 = "label"))){const err205 = {instancePath,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty: missing24},message:"must have required property '"+missing24+"'"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}else {const _errs213 = errors;for(const key24 of Object.keys(data)){if(!((((key24 === "kind") || (key24 === "label")) || (key24 === "required")) || (key24 === "default"))){const err206 = {instancePath,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key24},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;break;}}if(_errs213 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs214 = errors;if("richtext" !== data.kind){const err207 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/10/properties/kind/const",keyword:"const",params:{allowedValue: "richtext"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}var valid49 = _errs214 === errors;}else {var valid49 = true;}if(valid49){if(data.label !== undefined && func0.call(data, "label")){let data80 = data.label;const _errs215 = errors;const _errs216 = errors;if(errors === _errs216){if(data80 && typeof data80 == "object" && !Array.isArray(data80)){let missing25;if((((data80.en === undefined) || (!(func0.call(data80, "en")))) && (missing25 = "en")) || (((data80.ar === undefined) || (!(func0.call(data80, "ar")))) && (missing25 = "ar"))){const err208 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing25},message:"must have required property '"+missing25+"'"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}else {const _errs218 = errors;for(const key25 of Object.keys(data80)){if(!((key25 === "en") || (key25 === "ar"))){const err209 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key25},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;break;}}if(_errs218 === errors){if(data80.en !== undefined && func0.call(data80, "en")){let data81 = data80.en;const _errs219 = errors;if(errors === _errs219){if(typeof data81 === "string"){if(func53(data81) > 200){const err210 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}else {if(func53(data81) < 1){const err211 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}else {const err212 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}var valid51 = _errs219 === errors;}else {var valid51 = true;}if(valid51){if(data80.ar !== undefined && func0.call(data80, "ar")){let data82 = data80.ar;const _errs221 = errors;if(errors === _errs221){if(typeof data82 === "string"){if(func53(data82) > 200){const err213 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}else {if(func53(data82) < 1){const err214 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}}else {const err215 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}var valid51 = _errs221 === errors;}else {var valid51 = true;}}}}}else {const err216 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}var valid49 = _errs215 === errors;}else {var valid49 = true;}if(valid49){if(data.required !== undefined && func0.call(data, "required")){const _errs223 = errors;if(typeof data.required !== "boolean"){const err217 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/10/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}var valid49 = _errs223 === errors;}else {var valid49 = true;}if(valid49){if(data.default !== undefined && func0.call(data, "default")){const _errs225 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid49 = _errs225 === errors;}else {var valid49 = true;}}}}}}}else {const err218 = {instancePath,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}var _valid0 = _errs211 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 10];}else {if(_valid0){valid0 = true;passing0 = 10;}const _errs226 = errors;if(errors === _errs226){if(data && typeof data == "object" && !Array.isArray(data)){let missing26;if((((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing26 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing26 = "label"))) || (((data.min === undefined) || (!(func0.call(data, "min")))) && (missing26 = "min"))) || (((data.max === undefined) || (!(func0.call(data, "max")))) && (missing26 = "max"))){const err219 = {instancePath,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty: missing26},message:"must have required property '"+missing26+"'"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}else {const _errs228 = errors;for(const key26 of Object.keys(data)){if(!((((((((key26 === "kind") || (key26 === "label")) || (key26 === "required")) || (key26 === "default")) || (key26 === "min")) || (key26 === "max")) || (key26 === "step")) || (key26 === "unit"))){const err220 = {instancePath,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key26},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;break;}}if(_errs228 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs229 = errors;if("responsive" !== data.kind){const err221 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/11/properties/kind/const",keyword:"const",params:{allowedValue: "responsive"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}var valid52 = _errs229 === errors;}else {var valid52 = true;}if(valid52){if(data.label !== undefined && func0.call(data, "label")){let data86 = data.label;const _errs230 = errors;const _errs231 = errors;if(errors === _errs231){if(data86 && typeof data86 == "object" && !Array.isArray(data86)){let missing27;if((((data86.en === undefined) || (!(func0.call(data86, "en")))) && (missing27 = "en")) || (((data86.ar === undefined) || (!(func0.call(data86, "ar")))) && (missing27 = "ar"))){const err222 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing27},message:"must have required property '"+missing27+"'"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}else {const _errs233 = errors;for(const key27 of Object.keys(data86)){if(!((key27 === "en") || (key27 === "ar"))){const err223 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key27},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;break;}}if(_errs233 === errors){if(data86.en !== undefined && func0.call(data86, "en")){let data87 = data86.en;const _errs234 = errors;if(errors === _errs234){if(typeof data87 === "string"){if(func53(data87) > 200){const err224 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {if(func53(data87) < 1){const err225 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}}else {const err226 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}var valid54 = _errs234 === errors;}else {var valid54 = true;}if(valid54){if(data86.ar !== undefined && func0.call(data86, "ar")){let data88 = data86.ar;const _errs236 = errors;if(errors === _errs236){if(typeof data88 === "string"){if(func53(data88) > 200){const err227 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}else {if(func53(data88) < 1){const err228 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}}else {const err229 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}var valid54 = _errs236 === errors;}else {var valid54 = true;}}}}}else {const err230 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}var valid52 = _errs230 === errors;}else {var valid52 = true;}if(valid52){if(data.required !== undefined && func0.call(data, "required")){const _errs238 = errors;if(typeof data.required !== "boolean"){const err231 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/11/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var valid52 = _errs238 === errors;}else {var valid52 = true;}if(valid52){if(data.default !== undefined && func0.call(data, "default")){const _errs240 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid52 = _errs240 === errors;}else {var valid52 = true;}if(valid52){if(data.min !== undefined && func0.call(data, "min")){let data91 = data.min;const _errs241 = errors;if(errors === _errs241){if((typeof data91 == "number") && (isFinite(data91))){if(data91 > 1000000 || isNaN(data91)){const err232 = {instancePath:instancePath+"/min",schemaPath:"#/oneOf/11/properties/min/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1000000},message:"must be <= 1000000"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}else {if(data91 < -1000000 || isNaN(data91)){const err233 = {instancePath:instancePath+"/min",schemaPath:"#/oneOf/11/properties/min/minimum",keyword:"minimum",params:{comparison: ">=", limit: -1000000},message:"must be >= -1000000"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}else {const err234 = {instancePath:instancePath+"/min",schemaPath:"#/oneOf/11/properties/min/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}var valid52 = _errs241 === errors;}else {var valid52 = true;}if(valid52){if(data.max !== undefined && func0.call(data, "max")){let data92 = data.max;const _errs243 = errors;if(errors === _errs243){if((typeof data92 == "number") && (isFinite(data92))){if(data92 > 1000000 || isNaN(data92)){const err235 = {instancePath:instancePath+"/max",schemaPath:"#/oneOf/11/properties/max/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1000000},message:"must be <= 1000000"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}else {if(data92 < -1000000 || isNaN(data92)){const err236 = {instancePath:instancePath+"/max",schemaPath:"#/oneOf/11/properties/max/minimum",keyword:"minimum",params:{comparison: ">=", limit: -1000000},message:"must be >= -1000000"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}}else {const err237 = {instancePath:instancePath+"/max",schemaPath:"#/oneOf/11/properties/max/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}var valid52 = _errs243 === errors;}else {var valid52 = true;}if(valid52){if(data.step !== undefined && func0.call(data, "step")){let data93 = data.step;const _errs245 = errors;if(errors === _errs245){if((typeof data93 == "number") && (isFinite(data93))){if(data93 > 1000000 || isNaN(data93)){const err238 = {instancePath:instancePath+"/step",schemaPath:"#/oneOf/11/properties/step/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1000000},message:"must be <= 1000000"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}else {if(data93 <= 0 || isNaN(data93)){const err239 = {instancePath:instancePath+"/step",schemaPath:"#/oneOf/11/properties/step/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}}}else {const err240 = {instancePath:instancePath+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}}var valid52 = _errs245 === errors;}else {var valid52 = true;}if(valid52){if(data.unit !== undefined && func0.call(data, "unit")){let data94 = data.unit;const _errs247 = errors;if(!(((((((((data94 === "px") || (data94 === "%")) || (data94 === "rem")) || (data94 === "em")) || (data94 === "s")) || (data94 === "ms")) || (data94 === "deg")) || (data94 === "vh")) || (data94 === "vw"))){const err241 = {instancePath:instancePath+"/unit",schemaPath:"#/oneOf/11/properties/unit/enum",keyword:"enum",params:{allowedValues: schema18.oneOf[11].properties.unit.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}var valid52 = _errs247 === errors;}else {var valid52 = true;}}}}}}}}}}}else {const err242 = {instancePath,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}var _valid0 = _errs226 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 11];}else {if(_valid0){valid0 = true;passing0 = 11;}const _errs248 = errors;if(errors === _errs248){if(data && typeof data == "object" && !Array.isArray(data)){let missing28;if(((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing28 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing28 = "label"))) || (((data.maxItems === undefined) || (!(func0.call(data, "maxItems")))) && (missing28 = "maxItems"))){const err243 = {instancePath,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty: missing28},message:"must have required property '"+missing28+"'"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}else {const _errs250 = errors;for(const key28 of Object.keys(data)){if(!(((((key28 === "kind") || (key28 === "label")) || (key28 === "required")) || (key28 === "default")) || (key28 === "maxItems"))){const err244 = {instancePath,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key28},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;break;}}if(_errs250 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs251 = errors;if("menu" !== data.kind){const err245 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/12/properties/kind/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}var valid55 = _errs251 === errors;}else {var valid55 = true;}if(valid55){if(data.label !== undefined && func0.call(data, "label")){let data96 = data.label;const _errs252 = errors;const _errs253 = errors;if(errors === _errs253){if(data96 && typeof data96 == "object" && !Array.isArray(data96)){let missing29;if((((data96.en === undefined) || (!(func0.call(data96, "en")))) && (missing29 = "en")) || (((data96.ar === undefined) || (!(func0.call(data96, "ar")))) && (missing29 = "ar"))){const err246 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing29},message:"must have required property '"+missing29+"'"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}else {const _errs255 = errors;for(const key29 of Object.keys(data96)){if(!((key29 === "en") || (key29 === "ar"))){const err247 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key29},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;break;}}if(_errs255 === errors){if(data96.en !== undefined && func0.call(data96, "en")){let data97 = data96.en;const _errs256 = errors;if(errors === _errs256){if(typeof data97 === "string"){if(func53(data97) > 200){const err248 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}else {if(func53(data97) < 1){const err249 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}}else {const err250 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}var valid57 = _errs256 === errors;}else {var valid57 = true;}if(valid57){if(data96.ar !== undefined && func0.call(data96, "ar")){let data98 = data96.ar;const _errs258 = errors;if(errors === _errs258){if(typeof data98 === "string"){if(func53(data98) > 200){const err251 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}else {if(func53(data98) < 1){const err252 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}}else {const err253 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}var valid57 = _errs258 === errors;}else {var valid57 = true;}}}}}else {const err254 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}var valid55 = _errs252 === errors;}else {var valid55 = true;}if(valid55){if(data.required !== undefined && func0.call(data, "required")){const _errs260 = errors;if(typeof data.required !== "boolean"){const err255 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/12/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}var valid55 = _errs260 === errors;}else {var valid55 = true;}if(valid55){if(data.default !== undefined && func0.call(data, "default")){const _errs262 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid55 = _errs262 === errors;}else {var valid55 = true;}if(valid55){if(data.maxItems !== undefined && func0.call(data, "maxItems")){let data101 = data.maxItems;const _errs263 = errors;if(!(((typeof data101 == "number") && (!(data101 % 1) && !isNaN(data101))) && (isFinite(data101)))){const err256 = {instancePath:instancePath+"/maxItems",schemaPath:"#/oneOf/12/properties/maxItems/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}if(errors === _errs263){if((typeof data101 == "number") && (isFinite(data101))){if(data101 > 50 || isNaN(data101)){const err257 = {instancePath:instancePath+"/maxItems",schemaPath:"#/oneOf/12/properties/maxItems/maximum",keyword:"maximum",params:{comparison: "<=", limit: 50},message:"must be <= 50"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}else {if(data101 < 1 || isNaN(data101)){const err258 = {instancePath:instancePath+"/maxItems",schemaPath:"#/oneOf/12/properties/maxItems/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}}}var valid55 = _errs263 === errors;}else {var valid55 = true;}}}}}}}}else {const err259 = {instancePath,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}var _valid0 = _errs248 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 12];}else {if(_valid0){valid0 = true;passing0 = 12;}const _errs265 = errors;if(errors === _errs265){if(data && typeof data == "object" && !Array.isArray(data)){let missing30;if((((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing30 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing30 = "label"))) || (((data.resourceKind === undefined) || (!(func0.call(data, "resourceKind")))) && (missing30 = "resourceKind"))) || (((data.maxItems === undefined) || (!(func0.call(data, "maxItems")))) && (missing30 = "maxItems"))){const err260 = {instancePath,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty: missing30},message:"must have required property '"+missing30+"'"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}else {const _errs267 = errors;for(const key30 of Object.keys(data)){if(!((((((key30 === "kind") || (key30 === "label")) || (key30 === "required")) || (key30 === "default")) || (key30 === "resourceKind")) || (key30 === "maxItems"))){const err261 = {instancePath,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key30},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;break;}}if(_errs267 === errors){if(data.kind !== undefined && func0.call(data, "kind")){const _errs268 = errors;if("resourceList" !== data.kind){const err262 = {instancePath:instancePath+"/kind",schemaPath:"#/oneOf/13/properties/kind/const",keyword:"const",params:{allowedValue: "resourceList"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}var valid58 = _errs268 === errors;}else {var valid58 = true;}if(valid58){if(data.label !== undefined && func0.call(data, "label")){let data103 = data.label;const _errs269 = errors;const _errs270 = errors;if(errors === _errs270){if(data103 && typeof data103 == "object" && !Array.isArray(data103)){let missing31;if((((data103.en === undefined) || (!(func0.call(data103, "en")))) && (missing31 = "en")) || (((data103.ar === undefined) || (!(func0.call(data103, "ar")))) && (missing31 = "ar"))){const err263 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing31},message:"must have required property '"+missing31+"'"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}else {const _errs272 = errors;for(const key31 of Object.keys(data103)){if(!((key31 === "en") || (key31 === "ar"))){const err264 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key31},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;break;}}if(_errs272 === errors){if(data103.en !== undefined && func0.call(data103, "en")){let data104 = data103.en;const _errs273 = errors;if(errors === _errs273){if(typeof data104 === "string"){if(func53(data104) > 200){const err265 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}else {if(func53(data104) < 1){const err266 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}}else {const err267 = {instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}var valid60 = _errs273 === errors;}else {var valid60 = true;}if(valid60){if(data103.ar !== undefined && func0.call(data103, "ar")){let data105 = data103.ar;const _errs275 = errors;if(errors === _errs275){if(typeof data105 === "string"){if(func53(data105) > 200){const err268 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}else {if(func53(data105) < 1){const err269 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}}else {const err270 = {instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}var valid60 = _errs275 === errors;}else {var valid60 = true;}}}}}else {const err271 = {instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}var valid58 = _errs269 === errors;}else {var valid58 = true;}if(valid58){if(data.required !== undefined && func0.call(data, "required")){const _errs277 = errors;if(typeof data.required !== "boolean"){const err272 = {instancePath:instancePath+"/required",schemaPath:"#/oneOf/13/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}var valid58 = _errs277 === errors;}else {var valid58 = true;}if(valid58){if(data.default !== undefined && func0.call(data, "default")){const _errs279 = errors;if(!(validate15(data.default, {instancePath:instancePath+"/default",parentData:data,parentDataProperty:"default",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid58 = _errs279 === errors;}else {var valid58 = true;}if(valid58){if(data.resourceKind !== undefined && func0.call(data, "resourceKind")){let data108 = data.resourceKind;const _errs280 = errors;if(!(((data108 === "product") || (data108 === "collection")) || (data108 === "page"))){const err273 = {instancePath:instancePath+"/resourceKind",schemaPath:"#/oneOf/13/properties/resourceKind/enum",keyword:"enum",params:{allowedValues: schema18.oneOf[13].properties.resourceKind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}var valid58 = _errs280 === errors;}else {var valid58 = true;}if(valid58){if(data.maxItems !== undefined && func0.call(data, "maxItems")){let data109 = data.maxItems;const _errs281 = errors;if(!(((typeof data109 == "number") && (!(data109 % 1) && !isNaN(data109))) && (isFinite(data109)))){const err274 = {instancePath:instancePath+"/maxItems",schemaPath:"#/oneOf/13/properties/maxItems/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}if(errors === _errs281){if((typeof data109 == "number") && (isFinite(data109))){if(data109 > 50 || isNaN(data109)){const err275 = {instancePath:instancePath+"/maxItems",schemaPath:"#/oneOf/13/properties/maxItems/maximum",keyword:"maximum",params:{comparison: "<=", limit: 50},message:"must be <= 50"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}else {if(data109 < 1 || isNaN(data109)){const err276 = {instancePath:instancePath+"/maxItems",schemaPath:"#/oneOf/13/properties/maxItems/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}}var valid58 = _errs281 === errors;}else {var valid58 = true;}}}}}}}}}else {const err277 = {instancePath,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}var _valid0 = _errs265 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 13];}else {if(_valid0){valid0 = true;passing0 = 13;}}}}}}}}}}}}}}if(!valid0){const err278 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;validate14.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length > 100){validate13.errors = [{instancePath,schemaPath:"#/maxProperties",keyword:"maxProperties",params:{limit: 100},message:"must NOT have more than 100 properties"}];return false;}else {for(const key0 of Object.keys(data)){const _errs1 = errors;const _errs3 = errors;const _errs6 = errors;const _errs7 = errors;if(errors === _errs7){if(typeof key0 === "string"){if(!pattern0.test(key0)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid4 = _errs7 === errors;if(valid4){const err2 = {instancePath,schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key0};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}if(errors === _errs3){if(typeof key0 === "string"){if(func53(key0) > 100){const err3 = {instancePath,schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters",propertyName:key0};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(func53(key0) < 1){const err4 = {instancePath,schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key0};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {if(!pattern1.test(key0)){const err5 = {instancePath,schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\"",propertyName:key0};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}}else {const err6 = {instancePath,schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key0};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var valid2 = _errs3 === errors;if(valid2){const _errs9 = errors;const _errs10 = errors;const _errs11 = errors;if(!(((key0 === "constructor") || (key0 === "prototype")) || (key0 === "__proto__"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid5 = _errs11 === errors;if(valid5){const err8 = {instancePath,schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key0};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var valid2 = _errs9 === errors;}var valid0 = _errs1 === errors;if(!valid0){const err9 = {instancePath,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName: key0},message:"property name must be valid"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate13.errors = vErrors;return false;break;}}if(valid0){for(const key1 of Object.keys(data)){const _errs13 = errors;if(!(validate14(data[key1], {instancePath:instancePath+"/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data,parentDataProperty:key1,rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}var valid6 = _errs13 === errors;if(!valid6){break;}}}}}else {validate13.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate13.errors = vErrors;return errors === 0;}const schema52 = {"type":"object","properties":{"kind":{"enum":["section","block"]},"label":{"$ref":"#/definitions/label"},"settings":{"$ref":"#/definitions/settings"},"allowedChildren":{"type":"array","items":{"$ref":"#/definitions/key"},"maxItems":100,"uniqueItems":true},"minChildren":{"type":"integer","minimum":0,"maximum":100},"maxChildren":{"type":"integer","minimum":0,"maximum":100},"maxInstances":{"type":"integer","minimum":1,"maximum":500},"allowedLocations":{"type":"array","items":{"type":"string","maxLength":110,"minLength":1,"pattern":"^(template|group):[a-z0-9]+([._-][a-z0-9]+)*$","allOf":[{"not":{"type":"string","pattern":"[\r\n\u2028\u2029]"}}]},"maxItems":100,"uniqueItems":true},"presets":{"type":"array","items":{"$ref":"#/definitions/preset"},"maxItems":10}},"required":["kind","label","settings","allowedChildren","maxChildren","allowedLocations"],"additionalProperties":false};const schema55 = {"type":"object","properties":{"label":{"$ref":"#/definitions/label"},"settings":{"$ref":"#/definitions/values"},"blocks":{"type":"array","items":{"$ref":"#/definitions/presetBlock"},"maxItems":50}},"required":["label"],"additionalProperties":false};const schema57 = {"type":"object","propertyNames":{"$ref":"#/definitions/key"},"additionalProperties":{"$ref":"#/definitions/value"},"maxProperties":100};const schema59 = {"anyOf":[{"$ref":"#/definitions/literal"},{"$ref":"#/definitions/binding"}]};const schema60 = {"type":"object","properties":{"binding":{"enum":["store.name","store.logo","product.name","product.description","product.image","collection.name"]},"fallback":{"$ref":"#/definitions/literal"}},"required":["binding","fallback"],"additionalProperties":false};function validate49(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.binding === undefined) || (!(func0.call(data, "binding")))) && (missing0 = "binding")) || (((data.fallback === undefined) || (!(func0.call(data, "fallback")))) && (missing0 = "fallback"))){validate49.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!((key0 === "binding") || (key0 === "fallback"))){validate49.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.binding !== undefined && func0.call(data, "binding")){let data0 = data.binding;const _errs2 = errors;if(!((((((data0 === "store.name") || (data0 === "store.logo")) || (data0 === "product.name")) || (data0 === "product.description")) || (data0 === "product.image")) || (data0 === "collection.name"))){validate49.errors = [{instancePath:instancePath+"/binding",schemaPath:"#/properties/binding/enum",keyword:"enum",params:{allowedValues: schema60.properties.binding.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.fallback !== undefined && func0.call(data, "fallback")){const _errs3 = errors;if(!(validate15(data.fallback, {instancePath:instancePath+"/fallback",parentData:data,parentDataProperty:"fallback",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}}else {validate49.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate49.errors = vErrors;return errors === 0;}function validate47(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(!(validate15(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs2 = errors;if(!(validate49(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);errors = vErrors.length;}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err0 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;validate47.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate47.errors = vErrors;return errors === 0;}function validate46(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length > 100){validate46.errors = [{instancePath,schemaPath:"#/maxProperties",keyword:"maxProperties",params:{limit: 100},message:"must NOT have more than 100 properties"}];return false;}else {for(const key0 of Object.keys(data)){const _errs1 = errors;const _errs3 = errors;const _errs6 = errors;const _errs7 = errors;if(errors === _errs7){if(typeof key0 === "string"){if(!pattern0.test(key0)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid4 = _errs7 === errors;if(valid4){const err2 = {instancePath,schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key0};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}if(errors === _errs3){if(typeof key0 === "string"){if(func53(key0) > 100){const err3 = {instancePath,schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters",propertyName:key0};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(func53(key0) < 1){const err4 = {instancePath,schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key0};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {if(!pattern1.test(key0)){const err5 = {instancePath,schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\"",propertyName:key0};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}}else {const err6 = {instancePath,schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key0};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var valid2 = _errs3 === errors;if(valid2){const _errs9 = errors;const _errs10 = errors;const _errs11 = errors;if(!(((key0 === "constructor") || (key0 === "prototype")) || (key0 === "__proto__"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid5 = _errs11 === errors;if(valid5){const err8 = {instancePath,schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key0};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var valid2 = _errs9 === errors;}var valid0 = _errs1 === errors;if(!valid0){const err9 = {instancePath,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName: key0},message:"property name must be valid"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate46.errors = vErrors;return false;break;}}if(valid0){for(const key1 of Object.keys(data)){const _errs13 = errors;if(!(validate47(data[key1], {instancePath:instancePath+"/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data,parentDataProperty:key1,rootData}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}var valid6 = _errs13 === errors;if(!valid6){break;}}}}}else {validate46.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate46.errors = vErrors;return errors === 0;}const schema61 = {"type":"object","properties":{"type":{"$ref":"#/definitions/key"},"settings":{"$ref":"#/definitions/values"},"blocks":{"type":"array","items":{"$ref":"#/definitions/presetBlock"},"maxItems":50}},"required":["type"],"additionalProperties":false};const wrapper0 = {validate: validate54};function validate54(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) || (!(func0.call(data, "type")))) && (missing0 = "type")){validate54.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(((key0 === "type") || (key0 === "settings")) || (key0 === "blocks"))){validate54.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined && func0.call(data, "type")){let data0 = data.type;const _errs2 = errors;const _errs4 = errors;const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(typeof data0 === "string"){if(!pattern0.test(data0)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid4 = _errs8 === errors;if(valid4){validate54.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}if(errors === _errs4){if(typeof data0 === "string"){if(func53(data0) > 100){validate54.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data0) < 1){validate54.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data0)){validate54.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate54.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs4 === errors;if(valid2){const _errs10 = errors;const _errs11 = errors;const _errs12 = errors;if(!(((data0 === "constructor") || (data0 === "prototype")) || (data0 === "__proto__"))){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid5 = _errs12 === errors;if(valid5){validate54.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}var valid2 = _errs10 === errors;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined && func0.call(data, "settings")){const _errs13 = errors;if(!(validate46(data.settings, {instancePath:instancePath+"/settings",parentData:data,parentDataProperty:"settings",rootData}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.blocks !== undefined && func0.call(data, "blocks")){let data2 = data.blocks;const _errs14 = errors;if(errors === _errs14){if(Array.isArray(data2)){if(data2.length > 50){validate54.errors = [{instancePath:instancePath+"/blocks",schemaPath:"#/properties/blocks/maxItems",keyword:"maxItems",params:{limit: 50},message:"must NOT have more than 50 items"}];return false;}else {var valid6 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){const _errs16 = errors;if(!(wrapper0.validate(data2[i0], {instancePath:instancePath+"/blocks/" + i0,parentData:data2,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}var valid6 = _errs16 === errors;if(!valid6){break;}}}}else {validate54.errors = [{instancePath:instancePath+"/blocks",schemaPath:"#/properties/blocks/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs14 === errors;}else {var valid0 = true;}}}}}}else {validate54.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate54.errors = vErrors;return errors === 0;}function validate45(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.label === undefined) || (!(func0.call(data, "label")))) && (missing0 = "label")){validate45.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(((key0 === "label") || (key0 === "settings")) || (key0 === "blocks"))){validate45.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.label !== undefined && func0.call(data, "label")){let data0 = data.label;const _errs2 = errors;const _errs3 = errors;if(errors === _errs3){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.en === undefined) || (!(func0.call(data0, "en")))) && (missing1 = "en")) || (((data0.ar === undefined) || (!(func0.call(data0, "ar")))) && (missing1 = "ar"))){validate45.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs5 = errors;for(const key1 of Object.keys(data0)){if(!((key1 === "en") || (key1 === "ar"))){validate45.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs5 === errors){if(data0.en !== undefined && func0.call(data0, "en")){let data1 = data0.en;const _errs6 = errors;if(errors === _errs6){if(typeof data1 === "string"){if(func53(data1) > 200){validate45.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data1) < 1){validate45.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate45.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data0.ar !== undefined && func0.call(data0, "ar")){let data2 = data0.ar;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func53(data2) > 200){validate45.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data2) < 1){validate45.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate45.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs8 === errors;}else {var valid2 = true;}}}}}else {validate45.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined && func0.call(data, "settings")){const _errs10 = errors;if(!(validate46(data.settings, {instancePath:instancePath+"/settings",parentData:data,parentDataProperty:"settings",rootData}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}var valid0 = _errs10 === errors;}else {var valid0 = true;}if(valid0){if(data.blocks !== undefined && func0.call(data, "blocks")){let data4 = data.blocks;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data4)){if(data4.length > 50){validate45.errors = [{instancePath:instancePath+"/blocks",schemaPath:"#/properties/blocks/maxItems",keyword:"maxItems",params:{limit: 50},message:"must NOT have more than 50 items"}];return false;}else {var valid3 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs13 = errors;if(!(validate54(data4[i0], {instancePath:instancePath+"/blocks/" + i0,parentData:data4,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);errors = vErrors.length;}var valid3 = _errs13 === errors;if(!valid3){break;}}}}else {validate45.errors = [{instancePath:instancePath+"/blocks",schemaPath:"#/properties/blocks/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}}}}}}else {validate45.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate45.errors = vErrors;return errors === 0;}const pattern19 = new RegExp("^(template|group):[a-z0-9]+([._-][a-z0-9]+)*$", "u");function validate43(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing0 = "kind")) || (((data.label === undefined) || (!(func0.call(data, "label")))) && (missing0 = "label"))) || (((data.settings === undefined) || (!(func0.call(data, "settings")))) && (missing0 = "settings"))) || (((data.allowedChildren === undefined) || (!(func0.call(data, "allowedChildren")))) && (missing0 = "allowedChildren"))) || (((data.maxChildren === undefined) || (!(func0.call(data, "maxChildren")))) && (missing0 = "maxChildren"))) || (((data.allowedLocations === undefined) || (!(func0.call(data, "allowedLocations")))) && (missing0 = "allowedLocations"))){validate43.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(func0.call(schema52.properties, key0))){validate43.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.kind !== undefined && func0.call(data, "kind")){let data0 = data.kind;const _errs2 = errors;if(!((data0 === "section") || (data0 === "block"))){validate43.errors = [{instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema52.properties.kind.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.label !== undefined && func0.call(data, "label")){let data1 = data.label;const _errs3 = errors;const _errs4 = errors;if(errors === _errs4){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){let missing1;if((((data1.en === undefined) || (!(func0.call(data1, "en")))) && (missing1 = "en")) || (((data1.ar === undefined) || (!(func0.call(data1, "ar")))) && (missing1 = "ar"))){validate43.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs6 = errors;for(const key1 of Object.keys(data1)){if(!((key1 === "en") || (key1 === "ar"))){validate43.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs6 === errors){if(data1.en !== undefined && func0.call(data1, "en")){let data2 = data1.en;const _errs7 = errors;if(errors === _errs7){if(typeof data2 === "string"){if(func53(data2) > 200){validate43.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data2) < 1){validate43.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate43.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs7 === errors;}else {var valid2 = true;}if(valid2){if(data1.ar !== undefined && func0.call(data1, "ar")){let data3 = data1.ar;const _errs9 = errors;if(errors === _errs9){if(typeof data3 === "string"){if(func53(data3) > 200){validate43.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data3) < 1){validate43.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate43.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs9 === errors;}else {var valid2 = true;}}}}}else {validate43.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined && func0.call(data, "settings")){const _errs11 = errors;if(!(validate13(data.settings, {instancePath:instancePath+"/settings",parentData:data,parentDataProperty:"settings",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.allowedChildren !== undefined && func0.call(data, "allowedChildren")){let data5 = data.allowedChildren;const _errs12 = errors;if(errors === _errs12){if(Array.isArray(data5)){if(data5.length > 100){validate43.errors = [{instancePath:instancePath+"/allowedChildren",schemaPath:"#/properties/allowedChildren/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {var valid3 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs14 = errors;const _errs16 = errors;const _errs19 = errors;const _errs20 = errors;if(errors === _errs20){if(typeof data6 === "string"){if(!pattern0.test(data6)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid7 = _errs20 === errors;if(valid7){validate43.errors = [{instancePath:instancePath+"/allowedChildren/" + i0,schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}}if(errors === _errs16){if(typeof data6 === "string"){if(func53(data6) > 100){validate43.errors = [{instancePath:instancePath+"/allowedChildren/" + i0,schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data6) < 1){validate43.errors = [{instancePath:instancePath+"/allowedChildren/" + i0,schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data6)){validate43.errors = [{instancePath:instancePath+"/allowedChildren/" + i0,schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate43.errors = [{instancePath:instancePath+"/allowedChildren/" + i0,schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs16 === errors;if(valid5){const _errs22 = errors;const _errs23 = errors;const _errs24 = errors;if(!(((data6 === "constructor") || (data6 === "prototype")) || (data6 === "__proto__"))){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid8 = _errs24 === errors;if(valid8){validate43.errors = [{instancePath:instancePath+"/allowedChildren/" + i0,schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}var valid5 = _errs22 === errors;}var valid3 = _errs14 === errors;if(!valid3){break;}}if(valid3){let i1 = data5.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func32(data5[i1], data5[j0])){validate43.errors = [{instancePath:instancePath+"/allowedChildren",schemaPath:"#/properties/allowedChildren/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break outer0;}}}}}}}else {validate43.errors = [{instancePath:instancePath+"/allowedChildren",schemaPath:"#/properties/allowedChildren/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}if(valid0){if(data.minChildren !== undefined && func0.call(data, "minChildren")){let data7 = data.minChildren;const _errs25 = errors;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){validate43.errors = [{instancePath:instancePath+"/minChildren",schemaPath:"#/properties/minChildren/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs25){if((typeof data7 == "number") && (isFinite(data7))){if(data7 > 100 || isNaN(data7)){validate43.errors = [{instancePath:instancePath+"/minChildren",schemaPath:"#/properties/minChildren/maximum",keyword:"maximum",params:{comparison: "<=", limit: 100},message:"must be <= 100"}];return false;}else {if(data7 < 0 || isNaN(data7)){validate43.errors = [{instancePath:instancePath+"/minChildren",schemaPath:"#/properties/minChildren/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.maxChildren !== undefined && func0.call(data, "maxChildren")){let data8 = data.maxChildren;const _errs27 = errors;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){validate43.errors = [{instancePath:instancePath+"/maxChildren",schemaPath:"#/properties/maxChildren/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs27){if((typeof data8 == "number") && (isFinite(data8))){if(data8 > 100 || isNaN(data8)){validate43.errors = [{instancePath:instancePath+"/maxChildren",schemaPath:"#/properties/maxChildren/maximum",keyword:"maximum",params:{comparison: "<=", limit: 100},message:"must be <= 100"}];return false;}else {if(data8 < 0 || isNaN(data8)){validate43.errors = [{instancePath:instancePath+"/maxChildren",schemaPath:"#/properties/maxChildren/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs27 === errors;}else {var valid0 = true;}if(valid0){if(data.maxInstances !== undefined && func0.call(data, "maxInstances")){let data9 = data.maxInstances;const _errs29 = errors;if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){validate43.errors = [{instancePath:instancePath+"/maxInstances",schemaPath:"#/properties/maxInstances/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs29){if((typeof data9 == "number") && (isFinite(data9))){if(data9 > 500 || isNaN(data9)){validate43.errors = [{instancePath:instancePath+"/maxInstances",schemaPath:"#/properties/maxInstances/maximum",keyword:"maximum",params:{comparison: "<=", limit: 500},message:"must be <= 500"}];return false;}else {if(data9 < 1 || isNaN(data9)){validate43.errors = [{instancePath:instancePath+"/maxInstances",schemaPath:"#/properties/maxInstances/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid0 = _errs29 === errors;}else {var valid0 = true;}if(valid0){if(data.allowedLocations !== undefined && func0.call(data, "allowedLocations")){let data10 = data.allowedLocations;const _errs31 = errors;if(errors === _errs31){if(Array.isArray(data10)){if(data10.length > 100){validate43.errors = [{instancePath:instancePath+"/allowedLocations",schemaPath:"#/properties/allowedLocations/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {var valid10 = true;const len1 = data10.length;for(let i2=0; i2<len1; i2++){let data11 = data10[i2];const _errs33 = errors;const _errs36 = errors;const _errs37 = errors;if(errors === _errs37){if(typeof data11 === "string"){if(!pattern0.test(data11)){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var valid12 = _errs37 === errors;if(valid12){validate43.errors = [{instancePath:instancePath+"/allowedLocations/" + i2,schemaPath:"#/properties/allowedLocations/items/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs36;if(vErrors !== null){if(_errs36){vErrors.length = _errs36;}else {vErrors = null;}}}if(errors === _errs33){if(typeof data11 === "string"){if(func53(data11) > 110){validate43.errors = [{instancePath:instancePath+"/allowedLocations/" + i2,schemaPath:"#/properties/allowedLocations/items/maxLength",keyword:"maxLength",params:{limit: 110},message:"must NOT have more than 110 characters"}];return false;}else {if(func53(data11) < 1){validate43.errors = [{instancePath:instancePath+"/allowedLocations/" + i2,schemaPath:"#/properties/allowedLocations/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern19.test(data11)){validate43.errors = [{instancePath:instancePath+"/allowedLocations/" + i2,schemaPath:"#/properties/allowedLocations/items/pattern",keyword:"pattern",params:{pattern: "^(template|group):[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^(template|group):[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate43.errors = [{instancePath:instancePath+"/allowedLocations/" + i2,schemaPath:"#/properties/allowedLocations/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid10 = _errs33 === errors;if(!valid10){break;}}if(valid10){let i3 = data10.length;let j1;if(i3 > 1){const indices0 = {};for(;i3--;){let item0 = data10[i3];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j1 = indices0[item0];validate43.errors = [{instancePath:instancePath+"/allowedLocations",schemaPath:"#/properties/allowedLocations/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"}];return false;break;}indices0[item0] = i3;}}}}}else {validate43.errors = [{instancePath:instancePath+"/allowedLocations",schemaPath:"#/properties/allowedLocations/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs31 === errors;}else {var valid0 = true;}if(valid0){if(data.presets !== undefined && func0.call(data, "presets")){let data12 = data.presets;const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data12)){if(data12.length > 10){validate43.errors = [{instancePath:instancePath+"/presets",schemaPath:"#/properties/presets/maxItems",keyword:"maxItems",params:{limit: 10},message:"must NOT have more than 10 items"}];return false;}else {var valid14 = true;const len2 = data12.length;for(let i4=0; i4<len2; i4++){const _errs41 = errors;if(!(validate45(data12[i4], {instancePath:instancePath+"/presets/" + i4,parentData:data12,parentDataProperty:i4,rootData}))){vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);errors = vErrors.length;}var valid14 = _errs41 === errors;if(!valid14){break;}}}}else {validate43.errors = [{instancePath:instancePath+"/presets",schemaPath:"#/properties/presets/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs39 === errors;}else {var valid0 = true;}}}}}}}}}}}}else {validate43.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate43.errors = vErrors;return errors === 0;}const schema64 = {"type":"object","properties":{"label":{"$ref":"#/definitions/label"},"allowedRootTypes":{"type":"array","items":{"$ref":"#/definitions/key"},"maxItems":100,"uniqueItems":true},"maxRoots":{"type":"integer","minimum":0,"maximum":50},"minRoots":{"type":"integer","minimum":0,"maximum":50},"kind":{"enum":["home","product","collection","page","search","cart","notFound"]}},"required":["label","kind","allowedRootTypes","maxRoots"],"additionalProperties":false};function validate59(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.label === undefined) || (!(func0.call(data, "label")))) && (missing0 = "label")) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing0 = "kind"))) || (((data.allowedRootTypes === undefined) || (!(func0.call(data, "allowedRootTypes")))) && (missing0 = "allowedRootTypes"))) || (((data.maxRoots === undefined) || (!(func0.call(data, "maxRoots")))) && (missing0 = "maxRoots"))){validate59.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(((((key0 === "label") || (key0 === "allowedRootTypes")) || (key0 === "maxRoots")) || (key0 === "minRoots")) || (key0 === "kind"))){validate59.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.label !== undefined && func0.call(data, "label")){let data0 = data.label;const _errs2 = errors;const _errs3 = errors;if(errors === _errs3){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.en === undefined) || (!(func0.call(data0, "en")))) && (missing1 = "en")) || (((data0.ar === undefined) || (!(func0.call(data0, "ar")))) && (missing1 = "ar"))){validate59.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs5 = errors;for(const key1 of Object.keys(data0)){if(!((key1 === "en") || (key1 === "ar"))){validate59.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs5 === errors){if(data0.en !== undefined && func0.call(data0, "en")){let data1 = data0.en;const _errs6 = errors;if(errors === _errs6){if(typeof data1 === "string"){if(func53(data1) > 200){validate59.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data1) < 1){validate59.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate59.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data0.ar !== undefined && func0.call(data0, "ar")){let data2 = data0.ar;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func53(data2) > 200){validate59.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data2) < 1){validate59.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate59.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs8 === errors;}else {var valid2 = true;}}}}}else {validate59.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.allowedRootTypes !== undefined && func0.call(data, "allowedRootTypes")){let data3 = data.allowedRootTypes;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data3)){if(data3.length > 100){validate59.errors = [{instancePath:instancePath+"/allowedRootTypes",schemaPath:"#/properties/allowedRootTypes/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {var valid3 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];const _errs12 = errors;const _errs14 = errors;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data4 === "string"){if(!pattern0.test(data4)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid7 = _errs18 === errors;if(valid7){validate59.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}if(errors === _errs14){if(typeof data4 === "string"){if(func53(data4) > 100){validate59.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data4) < 1){validate59.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data4)){validate59.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate59.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs14 === errors;if(valid5){const _errs20 = errors;const _errs21 = errors;const _errs22 = errors;if(!(((data4 === "constructor") || (data4 === "prototype")) || (data4 === "__proto__"))){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid8 = _errs22 === errors;if(valid8){validate59.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var valid5 = _errs20 === errors;}var valid3 = _errs12 === errors;if(!valid3){break;}}if(valid3){let i1 = data3.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func32(data3[i1], data3[j0])){validate59.errors = [{instancePath:instancePath+"/allowedRootTypes",schemaPath:"#/properties/allowedRootTypes/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break outer0;}}}}}}}else {validate59.errors = [{instancePath:instancePath+"/allowedRootTypes",schemaPath:"#/properties/allowedRootTypes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}if(valid0){if(data.maxRoots !== undefined && func0.call(data, "maxRoots")){let data5 = data.maxRoots;const _errs23 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){validate59.errors = [{instancePath:instancePath+"/maxRoots",schemaPath:"#/properties/maxRoots/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs23){if((typeof data5 == "number") && (isFinite(data5))){if(data5 > 50 || isNaN(data5)){validate59.errors = [{instancePath:instancePath+"/maxRoots",schemaPath:"#/properties/maxRoots/maximum",keyword:"maximum",params:{comparison: "<=", limit: 50},message:"must be <= 50"}];return false;}else {if(data5 < 0 || isNaN(data5)){validate59.errors = [{instancePath:instancePath+"/maxRoots",schemaPath:"#/properties/maxRoots/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.minRoots !== undefined && func0.call(data, "minRoots")){let data6 = data.minRoots;const _errs25 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){validate59.errors = [{instancePath:instancePath+"/minRoots",schemaPath:"#/properties/minRoots/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs25){if((typeof data6 == "number") && (isFinite(data6))){if(data6 > 50 || isNaN(data6)){validate59.errors = [{instancePath:instancePath+"/minRoots",schemaPath:"#/properties/minRoots/maximum",keyword:"maximum",params:{comparison: "<=", limit: 50},message:"must be <= 50"}];return false;}else {if(data6 < 0 || isNaN(data6)){validate59.errors = [{instancePath:instancePath+"/minRoots",schemaPath:"#/properties/minRoots/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.kind !== undefined && func0.call(data, "kind")){let data7 = data.kind;const _errs27 = errors;if(!(((((((data7 === "home") || (data7 === "product")) || (data7 === "collection")) || (data7 === "page")) || (data7 === "search")) || (data7 === "cart")) || (data7 === "notFound"))){validate59.errors = [{instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema64.properties.kind.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs27 === errors;}else {var valid0 = true;}}}}}}}}else {validate59.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate59.errors = vErrors;return errors === 0;}const schema68 = {"type":"object","properties":{"label":{"$ref":"#/definitions/label"},"allowedRootTypes":{"type":"array","items":{"$ref":"#/definitions/key"},"maxItems":100,"uniqueItems":true},"maxRoots":{"type":"integer","minimum":0,"maximum":50},"minRoots":{"type":"integer","minimum":0,"maximum":50}},"required":["label","allowedRootTypes","maxRoots"],"additionalProperties":false};function validate61(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.label === undefined) || (!(func0.call(data, "label")))) && (missing0 = "label")) || (((data.allowedRootTypes === undefined) || (!(func0.call(data, "allowedRootTypes")))) && (missing0 = "allowedRootTypes"))) || (((data.maxRoots === undefined) || (!(func0.call(data, "maxRoots")))) && (missing0 = "maxRoots"))){validate61.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!((((key0 === "label") || (key0 === "allowedRootTypes")) || (key0 === "maxRoots")) || (key0 === "minRoots"))){validate61.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.label !== undefined && func0.call(data, "label")){let data0 = data.label;const _errs2 = errors;const _errs3 = errors;if(errors === _errs3){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.en === undefined) || (!(func0.call(data0, "en")))) && (missing1 = "en")) || (((data0.ar === undefined) || (!(func0.call(data0, "ar")))) && (missing1 = "ar"))){validate61.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs5 = errors;for(const key1 of Object.keys(data0)){if(!((key1 === "en") || (key1 === "ar"))){validate61.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs5 === errors){if(data0.en !== undefined && func0.call(data0, "en")){let data1 = data0.en;const _errs6 = errors;if(errors === _errs6){if(typeof data1 === "string"){if(func53(data1) > 200){validate61.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data1) < 1){validate61.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate61.errors = [{instancePath:instancePath+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data0.ar !== undefined && func0.call(data0, "ar")){let data2 = data0.ar;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func53(data2) > 200){validate61.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data2) < 1){validate61.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate61.errors = [{instancePath:instancePath+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs8 === errors;}else {var valid2 = true;}}}}}else {validate61.errors = [{instancePath:instancePath+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.allowedRootTypes !== undefined && func0.call(data, "allowedRootTypes")){let data3 = data.allowedRootTypes;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data3)){if(data3.length > 100){validate61.errors = [{instancePath:instancePath+"/allowedRootTypes",schemaPath:"#/properties/allowedRootTypes/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {var valid3 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];const _errs12 = errors;const _errs14 = errors;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data4 === "string"){if(!pattern0.test(data4)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid7 = _errs18 === errors;if(valid7){validate61.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}if(errors === _errs14){if(typeof data4 === "string"){if(func53(data4) > 100){validate61.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data4) < 1){validate61.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data4)){validate61.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate61.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs14 === errors;if(valid5){const _errs20 = errors;const _errs21 = errors;const _errs22 = errors;if(!(((data4 === "constructor") || (data4 === "prototype")) || (data4 === "__proto__"))){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid8 = _errs22 === errors;if(valid8){validate61.errors = [{instancePath:instancePath+"/allowedRootTypes/" + i0,schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var valid5 = _errs20 === errors;}var valid3 = _errs12 === errors;if(!valid3){break;}}if(valid3){let i1 = data3.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func32(data3[i1], data3[j0])){validate61.errors = [{instancePath:instancePath+"/allowedRootTypes",schemaPath:"#/properties/allowedRootTypes/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break outer0;}}}}}}}else {validate61.errors = [{instancePath:instancePath+"/allowedRootTypes",schemaPath:"#/properties/allowedRootTypes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}if(valid0){if(data.maxRoots !== undefined && func0.call(data, "maxRoots")){let data5 = data.maxRoots;const _errs23 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){validate61.errors = [{instancePath:instancePath+"/maxRoots",schemaPath:"#/properties/maxRoots/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs23){if((typeof data5 == "number") && (isFinite(data5))){if(data5 > 50 || isNaN(data5)){validate61.errors = [{instancePath:instancePath+"/maxRoots",schemaPath:"#/properties/maxRoots/maximum",keyword:"maximum",params:{comparison: "<=", limit: 50},message:"must be <= 50"}];return false;}else {if(data5 < 0 || isNaN(data5)){validate61.errors = [{instancePath:instancePath+"/maxRoots",schemaPath:"#/properties/maxRoots/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.minRoots !== undefined && func0.call(data, "minRoots")){let data6 = data.minRoots;const _errs25 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){validate61.errors = [{instancePath:instancePath+"/minRoots",schemaPath:"#/properties/minRoots/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs25){if((typeof data6 == "number") && (isFinite(data6))){if(data6 > 50 || isNaN(data6)){validate61.errors = [{instancePath:instancePath+"/minRoots",schemaPath:"#/properties/minRoots/maximum",keyword:"maximum",params:{comparison: "<=", limit: 50},message:"must be <= 50"}];return false;}else {if(data6 < 0 || isNaN(data6)){validate61.errors = [{instancePath:instancePath+"/minRoots",schemaPath:"#/properties/minRoots/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs25 === errors;}else {var valid0 = true;}}}}}}}else {validate61.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate61.errors = vErrors;return errors === 0;}function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.settings === undefined) || (!(func0.call(data, "settings")))) && (missing0 = "settings")) || (((data.nodeTypes === undefined) || (!(func0.call(data, "nodeTypes")))) && (missing0 = "nodeTypes"))) || (((data.templates === undefined) || (!(func0.call(data, "templates")))) && (missing0 = "templates"))) || (((data.groups === undefined) || (!(func0.call(data, "groups")))) && (missing0 = "groups"))){validate12.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(((((key0 === "settings") || (key0 === "nodeTypes")) || (key0 === "templates")) || (key0 === "groups")) || (key0 === "strings"))){validate12.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.settings !== undefined && func0.call(data, "settings")){const _errs2 = errors;if(!(validate13(data.settings, {instancePath:instancePath+"/settings",parentData:data,parentDataProperty:"settings",rootData}))){vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);errors = vErrors.length;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.nodeTypes !== undefined && func0.call(data, "nodeTypes")){let data1 = data.nodeTypes;const _errs3 = errors;if(errors === _errs3){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(Object.keys(data1).length > 100){validate12.errors = [{instancePath:instancePath+"/nodeTypes",schemaPath:"#/properties/nodeTypes/maxProperties",keyword:"maxProperties",params:{limit: 100},message:"must NOT have more than 100 properties"}];return false;}else {for(const key1 of Object.keys(data1)){const _errs5 = errors;const _errs7 = errors;const _errs10 = errors;const _errs11 = errors;if(errors === _errs11){if(typeof key1 === "string"){if(!pattern0.test(key1)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid5 = _errs11 === errors;if(valid5){const err2 = {instancePath:instancePath+"/nodeTypes",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key1};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}if(errors === _errs7){if(typeof key1 === "string"){if(func53(key1) > 100){const err3 = {instancePath:instancePath+"/nodeTypes",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters",propertyName:key1};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(func53(key1) < 1){const err4 = {instancePath:instancePath+"/nodeTypes",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key1};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {if(!pattern1.test(key1)){const err5 = {instancePath:instancePath+"/nodeTypes",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\"",propertyName:key1};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}}else {const err6 = {instancePath:instancePath+"/nodeTypes",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key1};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var valid3 = _errs7 === errors;if(valid3){const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;if(!(((key1 === "constructor") || (key1 === "prototype")) || (key1 === "__proto__"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid6 = _errs15 === errors;if(valid6){const err8 = {instancePath:instancePath+"/nodeTypes",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key1};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}var valid3 = _errs13 === errors;}var valid1 = _errs5 === errors;if(!valid1){const err9 = {instancePath:instancePath+"/nodeTypes",schemaPath:"#/properties/nodeTypes/propertyNames",keyword:"propertyNames",params:{propertyName: key1},message:"property name must be valid"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate12.errors = vErrors;return false;break;}}if(valid1){for(const key2 of Object.keys(data1)){const _errs17 = errors;if(!(validate43(data1[key2], {instancePath:instancePath+"/nodeTypes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data1,parentDataProperty:key2,rootData}))){vErrors = vErrors === null ? validate43.errors : vErrors.concat(validate43.errors);errors = vErrors.length;}var valid7 = _errs17 === errors;if(!valid7){break;}}}}}else {validate12.errors = [{instancePath:instancePath+"/nodeTypes",schemaPath:"#/properties/nodeTypes/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.templates !== undefined && func0.call(data, "templates")){let data3 = data.templates;const _errs18 = errors;if(errors === _errs18){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(Object.keys(data3).length > 50){validate12.errors = [{instancePath:instancePath+"/templates",schemaPath:"#/properties/templates/maxProperties",keyword:"maxProperties",params:{limit: 50},message:"must NOT have more than 50 properties"}];return false;}else {for(const key3 of Object.keys(data3)){const _errs20 = errors;const _errs22 = errors;const _errs25 = errors;const _errs26 = errors;if(errors === _errs26){if(typeof key3 === "string"){if(!pattern0.test(key3)){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var valid12 = _errs26 === errors;if(valid12){const err12 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key3};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}if(errors === _errs22){if(typeof key3 === "string"){if(func53(key3) > 100){const err13 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters",propertyName:key3};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {if(func53(key3) < 1){const err14 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key3};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {if(!pattern1.test(key3)){const err15 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\"",propertyName:key3};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}}else {const err16 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key3};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}var valid10 = _errs22 === errors;if(valid10){const _errs28 = errors;const _errs29 = errors;const _errs30 = errors;if(!(((key3 === "constructor") || (key3 === "prototype")) || (key3 === "__proto__"))){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid13 = _errs30 === errors;if(valid13){const err18 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key3};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}var valid10 = _errs28 === errors;}var valid8 = _errs20 === errors;if(!valid8){const err19 = {instancePath:instancePath+"/templates",schemaPath:"#/properties/templates/propertyNames",keyword:"propertyNames",params:{propertyName: key3},message:"property name must be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;validate12.errors = vErrors;return false;break;}}if(valid8){for(const key4 of Object.keys(data3)){const _errs32 = errors;if(!(validate59(data3[key4], {instancePath:instancePath+"/templates/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data3,parentDataProperty:key4,rootData}))){vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);errors = vErrors.length;}var valid14 = _errs32 === errors;if(!valid14){break;}}}}}else {validate12.errors = [{instancePath:instancePath+"/templates",schemaPath:"#/properties/templates/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs18 === errors;}else {var valid0 = true;}if(valid0){if(data.groups !== undefined && func0.call(data, "groups")){let data5 = data.groups;const _errs33 = errors;if(errors === _errs33){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(Object.keys(data5).length > 20){validate12.errors = [{instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/maxProperties",keyword:"maxProperties",params:{limit: 20},message:"must NOT have more than 20 properties"}];return false;}else {for(const key5 of Object.keys(data5)){const _errs35 = errors;const _errs37 = errors;const _errs40 = errors;const _errs41 = errors;if(errors === _errs41){if(typeof key5 === "string"){if(!pattern0.test(key5)){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}var valid19 = _errs41 === errors;if(valid19){const err22 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key5};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}}if(errors === _errs37){if(typeof key5 === "string"){if(func53(key5) > 100){const err23 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters",propertyName:key5};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {if(func53(key5) < 1){const err24 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key5};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {if(!pattern1.test(key5)){const err25 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\"",propertyName:key5};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}}else {const err26 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key5};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid17 = _errs37 === errors;if(valid17){const _errs43 = errors;const _errs44 = errors;const _errs45 = errors;if(!(((key5 === "constructor") || (key5 === "prototype")) || (key5 === "__proto__"))){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid20 = _errs45 === errors;if(valid20){const err28 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key5};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}var valid17 = _errs43 === errors;}var valid15 = _errs35 === errors;if(!valid15){const err29 = {instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/propertyNames",keyword:"propertyNames",params:{propertyName: key5},message:"property name must be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;validate12.errors = vErrors;return false;break;}}if(valid15){for(const key6 of Object.keys(data5)){const _errs47 = errors;if(!(validate61(data5[key6], {instancePath:instancePath+"/groups/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data5,parentDataProperty:key6,rootData}))){vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);errors = vErrors.length;}var valid21 = _errs47 === errors;if(!valid21){break;}}}}}else {validate12.errors = [{instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs33 === errors;}else {var valid0 = true;}if(valid0){if(data.strings !== undefined && func0.call(data, "strings")){let data7 = data.strings;const _errs48 = errors;if(errors === _errs48){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(Object.keys(data7).length > 300){validate12.errors = [{instancePath:instancePath+"/strings",schemaPath:"#/properties/strings/maxProperties",keyword:"maxProperties",params:{limit: 300},message:"must NOT have more than 300 properties"}];return false;}else {for(const key7 of Object.keys(data7)){const _errs50 = errors;const _errs52 = errors;const _errs55 = errors;const _errs56 = errors;if(errors === _errs56){if(typeof key7 === "string"){if(!pattern0.test(key7)){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}else {const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}var valid26 = _errs56 === errors;if(valid26){const err32 = {instancePath:instancePath+"/strings",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key7};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {errors = _errs55;if(vErrors !== null){if(_errs55){vErrors.length = _errs55;}else {vErrors = null;}}}if(errors === _errs52){if(typeof key7 === "string"){if(func53(key7) > 100){const err33 = {instancePath:instancePath+"/strings",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters",propertyName:key7};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {if(func53(key7) < 1){const err34 = {instancePath:instancePath+"/strings",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key7};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(!pattern1.test(key7)){const err35 = {instancePath:instancePath+"/strings",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\"",propertyName:key7};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}}else {const err36 = {instancePath:instancePath+"/strings",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key7};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid24 = _errs52 === errors;if(valid24){const _errs58 = errors;const _errs59 = errors;const _errs60 = errors;if(!(((key7 === "constructor") || (key7 === "prototype")) || (key7 === "__proto__"))){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid27 = _errs60 === errors;if(valid27){const err38 = {instancePath:instancePath+"/strings",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key7};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs59;if(vErrors !== null){if(_errs59){vErrors.length = _errs59;}else {vErrors = null;}}}var valid24 = _errs58 === errors;}var valid22 = _errs50 === errors;if(!valid22){const err39 = {instancePath:instancePath+"/strings",schemaPath:"#/properties/strings/propertyNames",keyword:"propertyNames",params:{propertyName: key7},message:"property name must be valid"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;validate12.errors = vErrors;return false;break;}}if(valid22){for(const key8 of Object.keys(data7)){let data8 = data7[key8];const _errs62 = errors;if(errors === _errs62){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){let missing1;if((((data8.label === undefined) || (!(func0.call(data8, "label")))) && (missing1 = "label")) || (((data8.default === undefined) || (!(func0.call(data8, "default")))) && (missing1 = "default"))){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/strings/additionalProperties/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs64 = errors;for(const key9 of Object.keys(data8)){if(!((key9 === "label") || (key9 === "default"))){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/strings/additionalProperties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"}];return false;break;}}if(_errs64 === errors){if(data8.label !== undefined && func0.call(data8, "label")){let data9 = data8.label;const _errs65 = errors;const _errs66 = errors;if(errors === _errs66){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){let missing2;if((((data9.en === undefined) || (!(func0.call(data9, "en")))) && (missing2 = "en")) || (((data9.ar === undefined) || (!(func0.call(data9, "ar")))) && (missing2 = "ar"))){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/label",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {const _errs68 = errors;for(const key10 of Object.keys(data9)){if(!((key10 === "en") || (key10 === "ar"))){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/label",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"}];return false;break;}}if(_errs68 === errors){if(data9.en !== undefined && func0.call(data9, "en")){let data10 = data9.en;const _errs69 = errors;if(errors === _errs69){if(typeof data10 === "string"){if(func53(data10) > 200){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/label/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data10) < 1){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/label/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/label/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid31 = _errs69 === errors;}else {var valid31 = true;}if(valid31){if(data9.ar !== undefined && func0.call(data9, "ar")){let data11 = data9.ar;const _errs71 = errors;if(errors === _errs71){if(typeof data11 === "string"){if(func53(data11) > 200){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/label/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data11) < 1){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/label/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/label/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid31 = _errs71 === errors;}else {var valid31 = true;}}}}}else {validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/label",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid29 = _errs65 === errors;}else {var valid29 = true;}if(valid29){if(data8.default !== undefined && func0.call(data8, "default")){let data12 = data8.default;const _errs73 = errors;const _errs74 = errors;if(errors === _errs74){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){let missing3;if((((data12.en === undefined) || (!(func0.call(data12, "en")))) && (missing3 = "en")) || (((data12.ar === undefined) || (!(func0.call(data12, "ar")))) && (missing3 = "ar"))){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/default",schemaPath:"#/definitions/storeText/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {const _errs76 = errors;for(const key11 of Object.keys(data12)){if(!((key11 === "en") || (key11 === "ar"))){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/default",schemaPath:"#/definitions/storeText/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"}];return false;break;}}if(_errs76 === errors){if(data12.en !== undefined && func0.call(data12, "en")){let data13 = data12.en;const _errs77 = errors;if(errors === _errs77){if(typeof data13 === "string"){if(func53(data13) > 300){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/default/en",schemaPath:"#/definitions/storeText/properties/en/maxLength",keyword:"maxLength",params:{limit: 300},message:"must NOT have more than 300 characters"}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/default/en",schemaPath:"#/definitions/storeText/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid33 = _errs77 === errors;}else {var valid33 = true;}if(valid33){if(data12.ar !== undefined && func0.call(data12, "ar")){let data14 = data12.ar;const _errs79 = errors;if(errors === _errs79){if(typeof data14 === "string"){if(func53(data14) > 300){validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/default/ar",schemaPath:"#/definitions/storeText/properties/ar/maxLength",keyword:"maxLength",params:{limit: 300},message:"must NOT have more than 300 characters"}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/default/ar",schemaPath:"#/definitions/storeText/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid33 = _errs79 === errors;}else {var valid33 = true;}}}}}else {validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1")+"/default",schemaPath:"#/definitions/storeText/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid29 = _errs73 === errors;}else {var valid29 = true;}}}}}else {validate12.errors = [{instancePath:instancePath+"/strings/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/strings/additionalProperties/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid28 = _errs62 === errors;if(!valid28){break;}}}}}else {validate12.errors = [{instancePath:instancePath+"/strings",schemaPath:"#/properties/strings/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs48 === errors;}else {var valid0 = true;}}}}}}}}else {validate12.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate12.errors = vErrors;return errors === 0;}function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((((data.schemaVersion === undefined) || (!(func0.call(data, "schemaVersion")))) && (missing0 = "schemaVersion")) || (((data.runtimeAbi === undefined) || (!(func0.call(data, "runtimeAbi")))) && (missing0 = "runtimeAbi"))) || (((data.id === undefined) || (!(func0.call(data, "id")))) && (missing0 = "id"))) || (((data.version === undefined) || (!(func0.call(data, "version")))) && (missing0 = "version"))) || (((data.name === undefined) || (!(func0.call(data, "name")))) && (missing0 = "name"))){validate11.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!((((((key0 === "schemaVersion") || (key0 === "runtimeAbi")) || (key0 === "id")) || (key0 === "version")) || (key0 === "name")) || (key0 === "editor"))){validate11.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.schemaVersion !== undefined && func0.call(data, "schemaVersion")){const _errs2 = errors;if(2 !== data.schemaVersion){validate11.errors = [{instancePath:instancePath+"/schemaVersion",schemaPath:"#/properties/schemaVersion/const",keyword:"const",params:{allowedValue: 2},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.runtimeAbi !== undefined && func0.call(data, "runtimeAbi")){const _errs3 = errors;if("orunelle.react.v2/1" !== data.runtimeAbi){validate11.errors = [{instancePath:instancePath+"/runtimeAbi",schemaPath:"#/properties/runtimeAbi/const",keyword:"const",params:{allowedValue: "orunelle.react.v2/1"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined && func0.call(data, "id")){let data2 = data.id;const _errs4 = errors;const _errs6 = errors;const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data2 === "string"){if(!pattern0.test(data2)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid4 = _errs10 === errors;if(valid4){validate11.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}if(errors === _errs6){if(typeof data2 === "string"){if(func53(data2) > 100){validate11.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data2) < 1){validate11.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data2)){validate11.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate11.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(valid2){const _errs12 = errors;const _errs13 = errors;const _errs14 = errors;if(!(((data2 === "constructor") || (data2 === "prototype")) || (data2 === "__proto__"))){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid5 = _errs14 === errors;if(valid5){validate11.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}var valid2 = _errs12 === errors;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.version !== undefined && func0.call(data, "version")){let data3 = data.version;const _errs15 = errors;const _errs18 = errors;const _errs19 = errors;if(errors === _errs19){if(typeof data3 === "string"){if(!pattern0.test(data3)){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var valid7 = _errs19 === errors;if(valid7){validate11.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors === _errs15){if(typeof data3 === "string"){if(func53(data3) > 32){validate11.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"}];return false;}else {if(func53(data3) < 1){validate11.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern3.test(data3)){validate11.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/pattern",keyword:"pattern",params:{pattern: "^\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.-]+)?$"},message:"must match pattern \""+"^\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.-]+)?$"+"\""}];return false;}}}}else {validate11.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined && func0.call(data, "name")){let data4 = data.name;const _errs21 = errors;const _errs22 = errors;if(errors === _errs22){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing1;if((((data4.en === undefined) || (!(func0.call(data4, "en")))) && (missing1 = "en")) || (((data4.ar === undefined) || (!(func0.call(data4, "ar")))) && (missing1 = "ar"))){validate11.errors = [{instancePath:instancePath+"/name",schemaPath:"#/definitions/label/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs24 = errors;for(const key1 of Object.keys(data4)){if(!((key1 === "en") || (key1 === "ar"))){validate11.errors = [{instancePath:instancePath+"/name",schemaPath:"#/definitions/label/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs24 === errors){if(data4.en !== undefined && func0.call(data4, "en")){let data5 = data4.en;const _errs25 = errors;if(errors === _errs25){if(typeof data5 === "string"){if(func53(data5) > 200){validate11.errors = [{instancePath:instancePath+"/name/en",schemaPath:"#/definitions/label/properties/en/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data5) < 1){validate11.errors = [{instancePath:instancePath+"/name/en",schemaPath:"#/definitions/label/properties/en/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate11.errors = [{instancePath:instancePath+"/name/en",schemaPath:"#/definitions/label/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs25 === errors;}else {var valid9 = true;}if(valid9){if(data4.ar !== undefined && func0.call(data4, "ar")){let data6 = data4.ar;const _errs27 = errors;if(errors === _errs27){if(typeof data6 === "string"){if(func53(data6) > 200){validate11.errors = [{instancePath:instancePath+"/name/ar",schemaPath:"#/definitions/label/properties/ar/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func53(data6) < 1){validate11.errors = [{instancePath:instancePath+"/name/ar",schemaPath:"#/definitions/label/properties/ar/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate11.errors = [{instancePath:instancePath+"/name/ar",schemaPath:"#/definitions/label/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs27 === errors;}else {var valid9 = true;}}}}}else {validate11.errors = [{instancePath:instancePath+"/name",schemaPath:"#/definitions/label/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.editor !== undefined && func0.call(data, "editor")){const _errs29 = errors;if(!(validate12(data.editor, {instancePath:instancePath+"/editor",parentData:data,parentDataProperty:"editor",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}var valid0 = _errs29 === errors;}else {var valid0 = true;}}}}}}}}}else {validate11.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate11.errors = vErrors;return errors === 0;}exports.configuration = validate64;const schema74 = {"type":"object","properties":{"schemaVersion":{"const":2},"configurationVersion":{"const":1},"themeId":{"$ref":"#/definitions/key"},"settings":{"$ref":"#/definitions/values"},"groups":{"type":"object","propertyNames":{"$ref":"#/definitions/key"},"additionalProperties":{"$ref":"#/definitions/roots"},"maxProperties":20},"templates":{"type":"object","propertyNames":{"$ref":"#/definitions/key"},"additionalProperties":{"$ref":"#/definitions/roots"},"maxProperties":50},"nodes":{"type":"array","items":{"$ref":"#/definitions/node"},"maxItems":500},"assignments":{"type":"array","items":{"$ref":"#/definitions/assignment"},"maxItems":200},"installationId":{"$ref":"#/definitions/uuid"},"strings":{"$ref":"#/definitions/storeTexts"}},"required":["schemaVersion","configurationVersion","themeId","settings","groups","templates","nodes","assignments","installationId"],"additionalProperties":false};const schema77 = {"type":"object","properties":{"roots":{"type":"array","items":{"$ref":"#/definitions/key"},"maxItems":50,"uniqueItems":true}},"required":["roots"],"additionalProperties":false};function validate66(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.roots === undefined) || (!(func0.call(data, "roots")))) && (missing0 = "roots")){validate66.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(key0 === "roots")){validate66.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.roots !== undefined && func0.call(data, "roots")){let data0 = data.roots;const _errs2 = errors;if(errors === _errs2){if(Array.isArray(data0)){if(data0.length > 50){validate66.errors = [{instancePath:instancePath+"/roots",schemaPath:"#/properties/roots/maxItems",keyword:"maxItems",params:{limit: 50},message:"must NOT have more than 50 items"}];return false;}else {var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];const _errs4 = errors;const _errs6 = errors;const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data1 === "string"){if(!pattern0.test(data1)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid5 = _errs10 === errors;if(valid5){validate66.errors = [{instancePath:instancePath+"/roots/" + i0,schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}if(errors === _errs6){if(typeof data1 === "string"){if(func53(data1) > 100){validate66.errors = [{instancePath:instancePath+"/roots/" + i0,schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data1) < 1){validate66.errors = [{instancePath:instancePath+"/roots/" + i0,schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data1)){validate66.errors = [{instancePath:instancePath+"/roots/" + i0,schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate66.errors = [{instancePath:instancePath+"/roots/" + i0,schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid3 = _errs6 === errors;if(valid3){const _errs12 = errors;const _errs13 = errors;const _errs14 = errors;if(!(((data1 === "constructor") || (data1 === "prototype")) || (data1 === "__proto__"))){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid6 = _errs14 === errors;if(valid6){validate66.errors = [{instancePath:instancePath+"/roots/" + i0,schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}var valid3 = _errs12 === errors;}var valid1 = _errs4 === errors;if(!valid1){break;}}if(valid1){let i1 = data0.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func32(data0[i1], data0[j0])){validate66.errors = [{instancePath:instancePath+"/roots",schemaPath:"#/properties/roots/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break outer0;}}}}}}}else {validate66.errors = [{instancePath:instancePath+"/roots",schemaPath:"#/properties/roots/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}}else {validate66.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate66.errors = vErrors;return errors === 0;}const schema80 = {"type":"object","properties":{"id":{"$ref":"#/definitions/key"},"type":{"$ref":"#/definitions/key"},"parent":{"anyOf":[{"$ref":"#/definitions/key"},{"type":"null"}]},"settings":{"$ref":"#/definitions/values"},"children":{"type":"array","items":{"$ref":"#/definitions/key"},"maxItems":100,"uniqueItems":true},"hidden":{"type":"boolean"}},"required":["id","type","parent","settings","children"],"additionalProperties":false};function validate69(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((((data.id === undefined) || (!(func0.call(data, "id")))) && (missing0 = "id")) || (((data.type === undefined) || (!(func0.call(data, "type")))) && (missing0 = "type"))) || (((data.parent === undefined) || (!(func0.call(data, "parent")))) && (missing0 = "parent"))) || (((data.settings === undefined) || (!(func0.call(data, "settings")))) && (missing0 = "settings"))) || (((data.children === undefined) || (!(func0.call(data, "children")))) && (missing0 = "children"))){validate69.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!((((((key0 === "id") || (key0 === "type")) || (key0 === "parent")) || (key0 === "settings")) || (key0 === "children")) || (key0 === "hidden"))){validate69.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.id !== undefined && func0.call(data, "id")){let data0 = data.id;const _errs2 = errors;const _errs4 = errors;const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(typeof data0 === "string"){if(!pattern0.test(data0)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid4 = _errs8 === errors;if(valid4){validate69.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}if(errors === _errs4){if(typeof data0 === "string"){if(func53(data0) > 100){validate69.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data0) < 1){validate69.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data0)){validate69.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate69.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs4 === errors;if(valid2){const _errs10 = errors;const _errs11 = errors;const _errs12 = errors;if(!(((data0 === "constructor") || (data0 === "prototype")) || (data0 === "__proto__"))){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid5 = _errs12 === errors;if(valid5){validate69.errors = [{instancePath:instancePath+"/id",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}var valid2 = _errs10 === errors;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.type !== undefined && func0.call(data, "type")){let data1 = data.type;const _errs13 = errors;const _errs15 = errors;const _errs18 = errors;const _errs19 = errors;if(errors === _errs19){if(typeof data1 === "string"){if(!pattern0.test(data1)){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var valid9 = _errs19 === errors;if(valid9){validate69.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors === _errs15){if(typeof data1 === "string"){if(func53(data1) > 100){validate69.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data1) < 1){validate69.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data1)){validate69.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate69.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs15 === errors;if(valid7){const _errs21 = errors;const _errs22 = errors;const _errs23 = errors;if(!(((data1 === "constructor") || (data1 === "prototype")) || (data1 === "__proto__"))){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid10 = _errs23 === errors;if(valid10){validate69.errors = [{instancePath:instancePath+"/type",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs22;if(vErrors !== null){if(_errs22){vErrors.length = _errs22;}else {vErrors = null;}}}var valid7 = _errs21 === errors;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.parent !== undefined && func0.call(data, "parent")){let data2 = data.parent;const _errs24 = errors;const _errs25 = errors;let valid11 = false;const _errs26 = errors;const _errs28 = errors;const _errs31 = errors;const _errs32 = errors;if(errors === _errs32){if(typeof data2 === "string"){if(!pattern0.test(data2)){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}var valid15 = _errs32 === errors;if(valid15){const err8 = {instancePath:instancePath+"/parent",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}}if(errors === _errs28){if(typeof data2 === "string"){if(func53(data2) > 100){const err9 = {instancePath:instancePath+"/parent",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {if(func53(data2) < 1){const err10 = {instancePath:instancePath+"/parent",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {if(!pattern1.test(data2)){const err11 = {instancePath:instancePath+"/parent",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}else {const err12 = {instancePath:instancePath+"/parent",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var valid13 = _errs28 === errors;if(valid13){const _errs34 = errors;const _errs35 = errors;const _errs36 = errors;if(!(((data2 === "constructor") || (data2 === "prototype")) || (data2 === "__proto__"))){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid16 = _errs36 === errors;if(valid16){const err14 = {instancePath:instancePath+"/parent",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}var valid13 = _errs34 === errors;}var _valid0 = _errs26 === errors;valid11 = valid11 || _valid0;if(!valid11){const _errs37 = errors;if(data2 !== null){const err15 = {instancePath:instancePath+"/parent",schemaPath:"#/properties/parent/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid0 = _errs37 === errors;valid11 = valid11 || _valid0;}if(!valid11){const err16 = {instancePath:instancePath+"/parent",schemaPath:"#/properties/parent/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;validate69.errors = vErrors;return false;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}var valid0 = _errs24 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined && func0.call(data, "settings")){const _errs39 = errors;if(!(validate46(data.settings, {instancePath:instancePath+"/settings",parentData:data,parentDataProperty:"settings",rootData}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}var valid0 = _errs39 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined && func0.call(data, "children")){let data4 = data.children;const _errs40 = errors;if(errors === _errs40){if(Array.isArray(data4)){if(data4.length > 100){validate69.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {var valid17 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs42 = errors;const _errs44 = errors;const _errs47 = errors;const _errs48 = errors;if(errors === _errs48){if(typeof data5 === "string"){if(!pattern0.test(data5)){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}else {const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid21 = _errs48 === errors;if(valid21){validate69.errors = [{instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs47;if(vErrors !== null){if(_errs47){vErrors.length = _errs47;}else {vErrors = null;}}}if(errors === _errs44){if(typeof data5 === "string"){if(func53(data5) > 100){validate69.errors = [{instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data5) < 1){validate69.errors = [{instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data5)){validate69.errors = [{instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate69.errors = [{instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid19 = _errs44 === errors;if(valid19){const _errs50 = errors;const _errs51 = errors;const _errs52 = errors;if(!(((data5 === "constructor") || (data5 === "prototype")) || (data5 === "__proto__"))){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid22 = _errs52 === errors;if(valid22){validate69.errors = [{instancePath:instancePath+"/children/" + i0,schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs51;if(vErrors !== null){if(_errs51){vErrors.length = _errs51;}else {vErrors = null;}}}var valid19 = _errs50 === errors;}var valid17 = _errs42 === errors;if(!valid17){break;}}if(valid17){let i1 = data4.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func32(data4[i1], data4[j0])){validate69.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break outer0;}}}}}}}else {validate69.errors = [{instancePath:instancePath+"/children",schemaPath:"#/properties/children/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs40 === errors;}else {var valid0 = true;}if(valid0){if(data.hidden !== undefined && func0.call(data, "hidden")){const _errs53 = errors;if(typeof data.hidden !== "boolean"){validate69.errors = [{instancePath:instancePath+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs53 === errors;}else {var valid0 = true;}}}}}}}}}else {validate69.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate69.errors = vErrors;return errors === 0;}const schema85 = {"type":"object","properties":{"resource":{"$ref":"#/definitions/resource"},"template":{"$ref":"#/definitions/key"}},"required":["resource","template"],"additionalProperties":false};function validate72(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.resource === undefined) || (!(func0.call(data, "resource")))) && (missing0 = "resource")) || (((data.template === undefined) || (!(func0.call(data, "template")))) && (missing0 = "template"))){validate72.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!((key0 === "resource") || (key0 === "template"))){validate72.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.resource !== undefined && func0.call(data, "resource")){const _errs2 = errors;if(!(validate18(data.resource, {instancePath:instancePath+"/resource",parentData:data,parentDataProperty:"resource",rootData}))){vErrors = vErrors === null ? validate18.errors : vErrors.concat(validate18.errors);errors = vErrors.length;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.template !== undefined && func0.call(data, "template")){let data1 = data.template;const _errs3 = errors;const _errs5 = errors;const _errs8 = errors;const _errs9 = errors;if(errors === _errs9){if(typeof data1 === "string"){if(!pattern0.test(data1)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid4 = _errs9 === errors;if(valid4){validate72.errors = [{instancePath:instancePath+"/template",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}if(errors === _errs5){if(typeof data1 === "string"){if(func53(data1) > 100){validate72.errors = [{instancePath:instancePath+"/template",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data1) < 1){validate72.errors = [{instancePath:instancePath+"/template",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data1)){validate72.errors = [{instancePath:instancePath+"/template",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate72.errors = [{instancePath:instancePath+"/template",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs5 === errors;if(valid2){const _errs11 = errors;const _errs12 = errors;const _errs13 = errors;if(!(((data1 === "constructor") || (data1 === "prototype")) || (data1 === "__proto__"))){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid5 = _errs13 === errors;if(valid5){validate72.errors = [{instancePath:instancePath+"/template",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}}var valid2 = _errs11 === errors;}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}}else {validate72.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate72.errors = vErrors;return errors === 0;}const schema88 = {"type":"object","propertyNames":{"$ref":"#/definitions/key"},"additionalProperties":{"$ref":"#/definitions/storeText"},"maxProperties":300};function validate75(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length > 300){validate75.errors = [{instancePath,schemaPath:"#/maxProperties",keyword:"maxProperties",params:{limit: 300},message:"must NOT have more than 300 properties"}];return false;}else {for(const key0 of Object.keys(data)){const _errs1 = errors;const _errs3 = errors;const _errs6 = errors;const _errs7 = errors;if(errors === _errs7){if(typeof key0 === "string"){if(!pattern0.test(key0)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid4 = _errs7 === errors;if(valid4){const err2 = {instancePath,schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key0};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}if(errors === _errs3){if(typeof key0 === "string"){if(func53(key0) > 100){const err3 = {instancePath,schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters",propertyName:key0};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(func53(key0) < 1){const err4 = {instancePath,schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key0};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {if(!pattern1.test(key0)){const err5 = {instancePath,schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\"",propertyName:key0};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}}else {const err6 = {instancePath,schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key0};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var valid2 = _errs3 === errors;if(valid2){const _errs9 = errors;const _errs10 = errors;const _errs11 = errors;if(!(((key0 === "constructor") || (key0 === "prototype")) || (key0 === "__proto__"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid5 = _errs11 === errors;if(valid5){const err8 = {instancePath,schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key0};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var valid2 = _errs9 === errors;}var valid0 = _errs1 === errors;if(!valid0){const err9 = {instancePath,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName: key0},message:"property name must be valid"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate75.errors = vErrors;return false;break;}}if(valid0){for(const key1 of Object.keys(data)){let data0 = data[key1];const _errs13 = errors;const _errs14 = errors;if(errors === _errs14){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing0;if((((data0.en === undefined) || (!(func0.call(data0, "en")))) && (missing0 = "en")) || (((data0.ar === undefined) || (!(func0.call(data0, "ar")))) && (missing0 = "ar"))){validate75.errors = [{instancePath:instancePath+"/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/definitions/storeText/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs16 = errors;for(const key2 of Object.keys(data0)){if(!((key2 === "en") || (key2 === "ar"))){validate75.errors = [{instancePath:instancePath+"/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/definitions/storeText/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"}];return false;break;}}if(_errs16 === errors){if(data0.en !== undefined && func0.call(data0, "en")){let data1 = data0.en;const _errs17 = errors;if(errors === _errs17){if(typeof data1 === "string"){if(func53(data1) > 300){validate75.errors = [{instancePath:instancePath+"/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/en",schemaPath:"#/definitions/storeText/properties/en/maxLength",keyword:"maxLength",params:{limit: 300},message:"must NOT have more than 300 characters"}];return false;}}else {validate75.errors = [{instancePath:instancePath+"/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/en",schemaPath:"#/definitions/storeText/properties/en/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs17 === errors;}else {var valid8 = true;}if(valid8){if(data0.ar !== undefined && func0.call(data0, "ar")){let data2 = data0.ar;const _errs19 = errors;if(errors === _errs19){if(typeof data2 === "string"){if(func53(data2) > 300){validate75.errors = [{instancePath:instancePath+"/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/ar",schemaPath:"#/definitions/storeText/properties/ar/maxLength",keyword:"maxLength",params:{limit: 300},message:"must NOT have more than 300 characters"}];return false;}}else {validate75.errors = [{instancePath:instancePath+"/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/ar",schemaPath:"#/definitions/storeText/properties/ar/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs19 === errors;}else {var valid8 = true;}}}}}else {validate75.errors = [{instancePath:instancePath+"/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/definitions/storeText/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid6 = _errs13 === errors;if(!valid6){break;}}}}}else {validate75.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate75.errors = vErrors;return errors === 0;}function validate64(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((((((((data.schemaVersion === undefined) || (!(func0.call(data, "schemaVersion")))) && (missing0 = "schemaVersion")) || (((data.configurationVersion === undefined) || (!(func0.call(data, "configurationVersion")))) && (missing0 = "configurationVersion"))) || (((data.themeId === undefined) || (!(func0.call(data, "themeId")))) && (missing0 = "themeId"))) || (((data.settings === undefined) || (!(func0.call(data, "settings")))) && (missing0 = "settings"))) || (((data.groups === undefined) || (!(func0.call(data, "groups")))) && (missing0 = "groups"))) || (((data.templates === undefined) || (!(func0.call(data, "templates")))) && (missing0 = "templates"))) || (((data.nodes === undefined) || (!(func0.call(data, "nodes")))) && (missing0 = "nodes"))) || (((data.assignments === undefined) || (!(func0.call(data, "assignments")))) && (missing0 = "assignments"))) || (((data.installationId === undefined) || (!(func0.call(data, "installationId")))) && (missing0 = "installationId"))){validate64.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(func0.call(schema74.properties, key0))){validate64.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.schemaVersion !== undefined && func0.call(data, "schemaVersion")){const _errs2 = errors;if(2 !== data.schemaVersion){validate64.errors = [{instancePath:instancePath+"/schemaVersion",schemaPath:"#/properties/schemaVersion/const",keyword:"const",params:{allowedValue: 2},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.configurationVersion !== undefined && func0.call(data, "configurationVersion")){const _errs3 = errors;if(1 !== data.configurationVersion){validate64.errors = [{instancePath:instancePath+"/configurationVersion",schemaPath:"#/properties/configurationVersion/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.themeId !== undefined && func0.call(data, "themeId")){let data2 = data.themeId;const _errs4 = errors;const _errs6 = errors;const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data2 === "string"){if(!pattern0.test(data2)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid4 = _errs10 === errors;if(valid4){validate64.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}if(errors === _errs6){if(typeof data2 === "string"){if(func53(data2) > 100){validate64.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data2) < 1){validate64.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data2)){validate64.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate64.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(valid2){const _errs12 = errors;const _errs13 = errors;const _errs14 = errors;if(!(((data2 === "constructor") || (data2 === "prototype")) || (data2 === "__proto__"))){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid5 = _errs14 === errors;if(valid5){validate64.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}var valid2 = _errs12 === errors;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined && func0.call(data, "settings")){const _errs15 = errors;if(!(validate46(data.settings, {instancePath:instancePath+"/settings",parentData:data,parentDataProperty:"settings",rootData}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.groups !== undefined && func0.call(data, "groups")){let data4 = data.groups;const _errs16 = errors;if(errors === _errs16){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(Object.keys(data4).length > 20){validate64.errors = [{instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/maxProperties",keyword:"maxProperties",params:{limit: 20},message:"must NOT have more than 20 properties"}];return false;}else {for(const key1 of Object.keys(data4)){const _errs18 = errors;const _errs20 = errors;const _errs23 = errors;const _errs24 = errors;if(errors === _errs24){if(typeof key1 === "string"){if(!pattern0.test(key1)){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var valid10 = _errs24 === errors;if(valid10){const err5 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key1};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}if(errors === _errs20){if(typeof key1 === "string"){if(func53(key1) > 100){const err6 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters",propertyName:key1};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(func53(key1) < 1){const err7 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key1};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(!pattern1.test(key1)){const err8 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\"",propertyName:key1};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}}else {const err9 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key1};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var valid8 = _errs20 === errors;if(valid8){const _errs26 = errors;const _errs27 = errors;const _errs28 = errors;if(!(((key1 === "constructor") || (key1 === "prototype")) || (key1 === "__proto__"))){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid11 = _errs28 === errors;if(valid11){const err11 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key1};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid8 = _errs26 === errors;}var valid6 = _errs18 === errors;if(!valid6){const err12 = {instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/propertyNames",keyword:"propertyNames",params:{propertyName: key1},message:"property name must be valid"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate64.errors = vErrors;return false;break;}}if(valid6){for(const key2 of Object.keys(data4)){const _errs30 = errors;if(!(validate66(data4[key2], {instancePath:instancePath+"/groups/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data4,parentDataProperty:key2,rootData}))){vErrors = vErrors === null ? validate66.errors : vErrors.concat(validate66.errors);errors = vErrors.length;}var valid12 = _errs30 === errors;if(!valid12){break;}}}}}else {validate64.errors = [{instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.templates !== undefined && func0.call(data, "templates")){let data6 = data.templates;const _errs31 = errors;if(errors === _errs31){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(Object.keys(data6).length > 50){validate64.errors = [{instancePath:instancePath+"/templates",schemaPath:"#/properties/templates/maxProperties",keyword:"maxProperties",params:{limit: 50},message:"must NOT have more than 50 properties"}];return false;}else {for(const key3 of Object.keys(data6)){const _errs33 = errors;const _errs35 = errors;const _errs38 = errors;const _errs39 = errors;if(errors === _errs39){if(typeof key3 === "string"){if(!pattern0.test(key3)){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var valid17 = _errs39 === errors;if(valid17){const err15 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key3};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}if(errors === _errs35){if(typeof key3 === "string"){if(func53(key3) > 100){const err16 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters",propertyName:key3};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(func53(key3) < 1){const err17 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key3};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {if(!pattern1.test(key3)){const err18 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\"",propertyName:key3};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}}else {const err19 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key3};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var valid15 = _errs35 === errors;if(valid15){const _errs41 = errors;const _errs42 = errors;const _errs43 = errors;if(!(((key3 === "constructor") || (key3 === "prototype")) || (key3 === "__proto__"))){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid18 = _errs43 === errors;if(valid18){const err21 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key3};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}var valid15 = _errs41 === errors;}var valid13 = _errs33 === errors;if(!valid13){const err22 = {instancePath:instancePath+"/templates",schemaPath:"#/properties/templates/propertyNames",keyword:"propertyNames",params:{propertyName: key3},message:"property name must be valid"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;validate64.errors = vErrors;return false;break;}}if(valid13){for(const key4 of Object.keys(data6)){const _errs45 = errors;if(!(validate66(data6[key4], {instancePath:instancePath+"/templates/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data6,parentDataProperty:key4,rootData}))){vErrors = vErrors === null ? validate66.errors : vErrors.concat(validate66.errors);errors = vErrors.length;}var valid19 = _errs45 === errors;if(!valid19){break;}}}}}else {validate64.errors = [{instancePath:instancePath+"/templates",schemaPath:"#/properties/templates/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs31 === errors;}else {var valid0 = true;}if(valid0){if(data.nodes !== undefined && func0.call(data, "nodes")){let data8 = data.nodes;const _errs46 = errors;if(errors === _errs46){if(Array.isArray(data8)){if(data8.length > 500){validate64.errors = [{instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/maxItems",keyword:"maxItems",params:{limit: 500},message:"must NOT have more than 500 items"}];return false;}else {var valid20 = true;const len0 = data8.length;for(let i0=0; i0<len0; i0++){const _errs48 = errors;if(!(validate69(data8[i0], {instancePath:instancePath+"/nodes/" + i0,parentData:data8,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);errors = vErrors.length;}var valid20 = _errs48 === errors;if(!valid20){break;}}}}else {validate64.errors = [{instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs46 === errors;}else {var valid0 = true;}if(valid0){if(data.assignments !== undefined && func0.call(data, "assignments")){let data10 = data.assignments;const _errs49 = errors;if(errors === _errs49){if(Array.isArray(data10)){if(data10.length > 200){validate64.errors = [{instancePath:instancePath+"/assignments",schemaPath:"#/properties/assignments/maxItems",keyword:"maxItems",params:{limit: 200},message:"must NOT have more than 200 items"}];return false;}else {var valid21 = true;const len1 = data10.length;for(let i1=0; i1<len1; i1++){const _errs51 = errors;if(!(validate72(data10[i1], {instancePath:instancePath+"/assignments/" + i1,parentData:data10,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);errors = vErrors.length;}var valid21 = _errs51 === errors;if(!valid21){break;}}}}else {validate64.errors = [{instancePath:instancePath+"/assignments",schemaPath:"#/properties/assignments/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs49 === errors;}else {var valid0 = true;}if(valid0){if(data.installationId !== undefined && func0.call(data, "installationId")){let data12 = data.installationId;const _errs52 = errors;const _errs53 = errors;const _errs56 = errors;const _errs57 = errors;if(errors === _errs57){if(typeof data12 === "string"){if(!pattern0.test(data12)){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}else {const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var valid24 = _errs57 === errors;if(valid24){validate64.errors = [{instancePath:instancePath+"/installationId",schemaPath:"#/definitions/uuid/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}if(errors === _errs53){if(typeof data12 === "string"){if(func53(data12) > 36){validate64.errors = [{instancePath:instancePath+"/installationId",schemaPath:"#/definitions/uuid/maxLength",keyword:"maxLength",params:{limit: 36},message:"must NOT have more than 36 characters"}];return false;}else {if(func53(data12) < 36){validate64.errors = [{instancePath:instancePath+"/installationId",schemaPath:"#/definitions/uuid/minLength",keyword:"minLength",params:{limit: 36},message:"must NOT have fewer than 36 characters"}];return false;}else {if(!pattern7.test(data12)){validate64.errors = [{instancePath:instancePath+"/installationId",schemaPath:"#/definitions/uuid/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"},message:"must match pattern \""+"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"+"\""}];return false;}}}}else {validate64.errors = [{instancePath:instancePath+"/installationId",schemaPath:"#/definitions/uuid/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs52 === errors;}else {var valid0 = true;}if(valid0){if(data.strings !== undefined && func0.call(data, "strings")){const _errs59 = errors;if(!(validate75(data.strings, {instancePath:instancePath+"/strings",parentData:data,parentDataProperty:"strings",rootData}))){vErrors = vErrors === null ? validate75.errors : vErrors.concat(validate75.errors);errors = vErrors.length;}var valid0 = _errs59 === errors;}else {var valid0 = true;}}}}}}}}}}}}}else {validate64.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate64.errors = vErrors;return errors === 0;}exports.configurationTemplate = validate77;const schema91 = {"type":"object","properties":{"schemaVersion":{"const":2},"configurationVersion":{"const":1},"themeId":{"$ref":"#/definitions/key"},"settings":{"$ref":"#/definitions/values"},"groups":{"type":"object","propertyNames":{"$ref":"#/definitions/key"},"additionalProperties":{"$ref":"#/definitions/roots"},"maxProperties":20},"templates":{"type":"object","propertyNames":{"$ref":"#/definitions/key"},"additionalProperties":{"$ref":"#/definitions/roots"},"maxProperties":50},"nodes":{"type":"array","items":{"$ref":"#/definitions/node"},"maxItems":500},"assignments":{"type":"array","items":{"$ref":"#/definitions/assignment"},"maxItems":200},"strings":{"$ref":"#/definitions/storeTexts"}},"required":["schemaVersion","configurationVersion","themeId","settings","groups","templates","nodes","assignments"],"additionalProperties":false};function validate77(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((((data.schemaVersion === undefined) || (!(func0.call(data, "schemaVersion")))) && (missing0 = "schemaVersion")) || (((data.configurationVersion === undefined) || (!(func0.call(data, "configurationVersion")))) && (missing0 = "configurationVersion"))) || (((data.themeId === undefined) || (!(func0.call(data, "themeId")))) && (missing0 = "themeId"))) || (((data.settings === undefined) || (!(func0.call(data, "settings")))) && (missing0 = "settings"))) || (((data.groups === undefined) || (!(func0.call(data, "groups")))) && (missing0 = "groups"))) || (((data.templates === undefined) || (!(func0.call(data, "templates")))) && (missing0 = "templates"))) || (((data.nodes === undefined) || (!(func0.call(data, "nodes")))) && (missing0 = "nodes"))) || (((data.assignments === undefined) || (!(func0.call(data, "assignments")))) && (missing0 = "assignments"))){validate77.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(func0.call(schema91.properties, key0))){validate77.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.schemaVersion !== undefined && func0.call(data, "schemaVersion")){const _errs2 = errors;if(2 !== data.schemaVersion){validate77.errors = [{instancePath:instancePath+"/schemaVersion",schemaPath:"#/properties/schemaVersion/const",keyword:"const",params:{allowedValue: 2},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.configurationVersion !== undefined && func0.call(data, "configurationVersion")){const _errs3 = errors;if(1 !== data.configurationVersion){validate77.errors = [{instancePath:instancePath+"/configurationVersion",schemaPath:"#/properties/configurationVersion/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.themeId !== undefined && func0.call(data, "themeId")){let data2 = data.themeId;const _errs4 = errors;const _errs6 = errors;const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data2 === "string"){if(!pattern0.test(data2)){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var valid4 = _errs10 === errors;if(valid4){validate77.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}if(errors === _errs6){if(typeof data2 === "string"){if(func53(data2) > 100){validate77.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func53(data2) < 1){validate77.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern1.test(data2)){validate77.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\""}];return false;}}}}else {validate77.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs6 === errors;if(valid2){const _errs12 = errors;const _errs13 = errors;const _errs14 = errors;if(!(((data2 === "constructor") || (data2 === "prototype")) || (data2 === "__proto__"))){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid5 = _errs14 === errors;if(valid5){validate77.errors = [{instancePath:instancePath+"/themeId",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}var valid2 = _errs12 === errors;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined && func0.call(data, "settings")){const _errs15 = errors;if(!(validate46(data.settings, {instancePath:instancePath+"/settings",parentData:data,parentDataProperty:"settings",rootData}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.groups !== undefined && func0.call(data, "groups")){let data4 = data.groups;const _errs16 = errors;if(errors === _errs16){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(Object.keys(data4).length > 20){validate77.errors = [{instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/maxProperties",keyword:"maxProperties",params:{limit: 20},message:"must NOT have more than 20 properties"}];return false;}else {for(const key1 of Object.keys(data4)){const _errs18 = errors;const _errs20 = errors;const _errs23 = errors;const _errs24 = errors;if(errors === _errs24){if(typeof key1 === "string"){if(!pattern0.test(key1)){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var valid10 = _errs24 === errors;if(valid10){const err5 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key1};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}if(errors === _errs20){if(typeof key1 === "string"){if(func53(key1) > 100){const err6 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters",propertyName:key1};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(func53(key1) < 1){const err7 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key1};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(!pattern1.test(key1)){const err8 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\"",propertyName:key1};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}}else {const err9 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key1};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var valid8 = _errs20 === errors;if(valid8){const _errs26 = errors;const _errs27 = errors;const _errs28 = errors;if(!(((key1 === "constructor") || (key1 === "prototype")) || (key1 === "__proto__"))){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid11 = _errs28 === errors;if(valid11){const err11 = {instancePath:instancePath+"/groups",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key1};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid8 = _errs26 === errors;}var valid6 = _errs18 === errors;if(!valid6){const err12 = {instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/propertyNames",keyword:"propertyNames",params:{propertyName: key1},message:"property name must be valid"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate77.errors = vErrors;return false;break;}}if(valid6){for(const key2 of Object.keys(data4)){const _errs30 = errors;if(!(validate66(data4[key2], {instancePath:instancePath+"/groups/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data4,parentDataProperty:key2,rootData}))){vErrors = vErrors === null ? validate66.errors : vErrors.concat(validate66.errors);errors = vErrors.length;}var valid12 = _errs30 === errors;if(!valid12){break;}}}}}else {validate77.errors = [{instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.templates !== undefined && func0.call(data, "templates")){let data6 = data.templates;const _errs31 = errors;if(errors === _errs31){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(Object.keys(data6).length > 50){validate77.errors = [{instancePath:instancePath+"/templates",schemaPath:"#/properties/templates/maxProperties",keyword:"maxProperties",params:{limit: 50},message:"must NOT have more than 50 properties"}];return false;}else {for(const key3 of Object.keys(data6)){const _errs33 = errors;const _errs35 = errors;const _errs38 = errors;const _errs39 = errors;if(errors === _errs39){if(typeof key3 === "string"){if(!pattern0.test(key3)){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var valid17 = _errs39 === errors;if(valid17){const err15 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key3};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}if(errors === _errs35){if(typeof key3 === "string"){if(func53(key3) > 100){const err16 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters",propertyName:key3};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(func53(key3) < 1){const err17 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key3};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {if(!pattern1.test(key3)){const err18 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+([._-][a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+([._-][a-z0-9]+)*$"+"\"",propertyName:key3};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}}else {const err19 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/0/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key3};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var valid15 = _errs35 === errors;if(valid15){const _errs41 = errors;const _errs42 = errors;const _errs43 = errors;if(!(((key3 === "constructor") || (key3 === "prototype")) || (key3 === "__proto__"))){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid18 = _errs43 === errors;if(valid18){const err21 = {instancePath:instancePath+"/templates",schemaPath:"#/definitions/key/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",propertyName:key3};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}var valid15 = _errs41 === errors;}var valid13 = _errs33 === errors;if(!valid13){const err22 = {instancePath:instancePath+"/templates",schemaPath:"#/properties/templates/propertyNames",keyword:"propertyNames",params:{propertyName: key3},message:"property name must be valid"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;validate77.errors = vErrors;return false;break;}}if(valid13){for(const key4 of Object.keys(data6)){const _errs45 = errors;if(!(validate66(data6[key4], {instancePath:instancePath+"/templates/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data6,parentDataProperty:key4,rootData}))){vErrors = vErrors === null ? validate66.errors : vErrors.concat(validate66.errors);errors = vErrors.length;}var valid19 = _errs45 === errors;if(!valid19){break;}}}}}else {validate77.errors = [{instancePath:instancePath+"/templates",schemaPath:"#/properties/templates/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs31 === errors;}else {var valid0 = true;}if(valid0){if(data.nodes !== undefined && func0.call(data, "nodes")){let data8 = data.nodes;const _errs46 = errors;if(errors === _errs46){if(Array.isArray(data8)){if(data8.length > 500){validate77.errors = [{instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/maxItems",keyword:"maxItems",params:{limit: 500},message:"must NOT have more than 500 items"}];return false;}else {var valid20 = true;const len0 = data8.length;for(let i0=0; i0<len0; i0++){const _errs48 = errors;if(!(validate69(data8[i0], {instancePath:instancePath+"/nodes/" + i0,parentData:data8,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);errors = vErrors.length;}var valid20 = _errs48 === errors;if(!valid20){break;}}}}else {validate77.errors = [{instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs46 === errors;}else {var valid0 = true;}if(valid0){if(data.assignments !== undefined && func0.call(data, "assignments")){let data10 = data.assignments;const _errs49 = errors;if(errors === _errs49){if(Array.isArray(data10)){if(data10.length > 200){validate77.errors = [{instancePath:instancePath+"/assignments",schemaPath:"#/properties/assignments/maxItems",keyword:"maxItems",params:{limit: 200},message:"must NOT have more than 200 items"}];return false;}else {var valid21 = true;const len1 = data10.length;for(let i1=0; i1<len1; i1++){const _errs51 = errors;if(!(validate72(data10[i1], {instancePath:instancePath+"/assignments/" + i1,parentData:data10,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);errors = vErrors.length;}var valid21 = _errs51 === errors;if(!valid21){break;}}}}else {validate77.errors = [{instancePath:instancePath+"/assignments",schemaPath:"#/properties/assignments/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs49 === errors;}else {var valid0 = true;}if(valid0){if(data.strings !== undefined && func0.call(data, "strings")){const _errs52 = errors;if(!(validate75(data.strings, {instancePath:instancePath+"/strings",parentData:data,parentDataProperty:"strings",rootData}))){vErrors = vErrors === null ? validate75.errors : vErrors.concat(validate75.errors);errors = vErrors.length;}var valid0 = _errs52 === errors;}else {var valid0 = true;}}}}}}}}}}}}else {validate77.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate77.errors = vErrors;return errors === 0;}exports.value = validate84;function validate84(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(!(validate15(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs2 = errors;if(!(validate49(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);errors = vErrors.length;}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err0 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;validate84.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate84.errors = vErrors;return errors === 0;}
|