@json-layout/vocabulary 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +54 -0
  3. package/src/index.js +4 -0
  4. package/src/layout-keyword/index.js +62 -0
  5. package/src/layout-keyword/schema.js +367 -0
  6. package/src/layout-keyword/schema.json +209 -0
  7. package/src/layout-keyword/types.ts +109 -0
  8. package/src/layout-keyword/validate.js +2 -0
  9. package/src/normalize.js +313 -0
  10. package/src/normalized-layout/index.js +105 -0
  11. package/src/normalized-layout/schema.js +824 -0
  12. package/src/normalized-layout/schema.json +413 -0
  13. package/src/normalized-layout/types.ts +243 -0
  14. package/src/normalized-layout/validate.js +3 -0
  15. package/src/types.ts +19 -0
  16. package/types/index.d.ts +5 -0
  17. package/types/index.d.ts.map +1 -0
  18. package/types/layout-keyword/index.d.ts +42 -0
  19. package/types/layout-keyword/index.d.ts.map +1 -0
  20. package/types/layout-keyword/schema.d.ts +279 -0
  21. package/types/layout-keyword/schema.d.ts.map +1 -0
  22. package/types/layout-keyword/types.d.ts +90 -0
  23. package/types/layout-keyword/types.d.ts.map +1 -0
  24. package/types/layout-keyword/validate.d.ts +24 -0
  25. package/types/layout-keyword/validate.d.ts.map +1 -0
  26. package/types/normalize.d.ts +18 -0
  27. package/types/normalize.d.ts.map +1 -0
  28. package/types/normalized-layout/index.d.ts +96 -0
  29. package/types/normalized-layout/index.d.ts.map +1 -0
  30. package/types/normalized-layout/schema.d.ts +626 -0
  31. package/types/normalized-layout/schema.d.ts.map +1 -0
  32. package/types/normalized-layout/types.d.ts +221 -0
  33. package/types/normalized-layout/types.d.ts.map +1 -0
  34. package/types/normalized-layout/validate.d.ts +23 -0
  35. package/types/normalized-layout/validate.d.ts.map +1 -0
  36. package/types/types.d.ts +19 -0
  37. package/types/types.d.ts.map +1 -0
@@ -0,0 +1,209 @@
1
+ {
2
+ "$id": "https://json-layout.github.io/layout-keyword",
3
+ "title": "layout keyword",
4
+ "unevaluatedProperties": false,
5
+ "anyOf": [
6
+ {"$ref": "#/$defs/comp-name"},
7
+ {"$ref": "#/$defs/partial-children"},
8
+ {"$ref": "#/$defs/partial-comp-object"},
9
+ {"$ref": "#/$defs/partial-switch"}
10
+ ],
11
+ "$defs": {
12
+ "partial-switch": {
13
+ "type": "object",
14
+ "required": ["switch"],
15
+ "additionalProperties": false,
16
+ "properties": {
17
+ "switch": {
18
+ "type": "array",
19
+ "items": {"$ref": "#/$defs/partial-comp-object"}
20
+ }
21
+ }
22
+ },
23
+ "partial-comp-object": {
24
+ "title": "partial comp object",
25
+ "type": "object",
26
+ "properties": {
27
+ "comp": {"$ref": "#/$defs/comp-name"},
28
+ "help": {"type": "string"},
29
+ "children": {"$ref": "#/$defs/partial-children"},
30
+ "label": {"type": "string"},
31
+ "title": {"type": ["string", "null"]},
32
+ "subtitle": {"type": ["string", "null"]},
33
+ "step": {"type": "number"},
34
+ "if": {"$ref": "#/$defs/partial-expression"},
35
+ "items": {"type": "array", "items": {"$ref": "#/$defs/partial-select-item"}},
36
+ "getItems": {"$ref": "#/$defs/partial-get-items"},
37
+ "listEditMode": {"type": "string", "enum": ["inline", "inline-single", "menu", "dialog"]},
38
+ "listActions": {"type": "array", "items": {"type": "string", "enum": ["add", "edit", "delete", "sort", "duplicate"]}},
39
+ "cols": {"$ref": "#/$defs/partial-cols"},
40
+ "props": {"type": "object"},
41
+ "slots": {
42
+ "type": "object",
43
+ "patternProperties": {
44
+ ".*": {"$ref": "#/$defs/partial-slot"}
45
+ }
46
+ },
47
+ "options": {"type": "object"},
48
+ "messages": {"type": "object"}
49
+ }
50
+ },
51
+ "comp-name": {
52
+ "title": "component name",
53
+ "type": "string",
54
+ "enum": [
55
+ "none",
56
+ "text-field",
57
+ "number-field",
58
+ "textarea",
59
+ "checkbox",
60
+ "switch",
61
+ "slider",
62
+ "date-picker",
63
+ "date-time-picker",
64
+ "time-picker",
65
+ "color-picker",
66
+ "section",
67
+ "list",
68
+ "select",
69
+ "tabs",
70
+ "vertical-tabs",
71
+ "expansion-panels"
72
+ ]
73
+ },
74
+ "partial-child": {
75
+ "type": "object",
76
+ "unevaluatedProperties": false,
77
+ "properties": {
78
+ "key": {"type": ["string", "integer"]},
79
+ "cols": {"$ref": "#/$defs/partial-cols"}
80
+ },
81
+ "allOf": [
82
+ {"$ref": "#/$defs/partial-comp-object"},
83
+ {}
84
+ ]
85
+ },
86
+ "partial-children": {
87
+ "type": "array",
88
+ "items": {
89
+ "oneOf": [
90
+ {"type": "string"},
91
+ {"$ref": "#/$defs/partial-child"}
92
+ ]
93
+ }
94
+ },
95
+ "partial-expression": {
96
+ "oneOf": [
97
+ {"type": "string"},
98
+ {"$ref": "#/$defs/partial-expression-obj"}
99
+ ]
100
+ },
101
+ "partial-expression-obj": {
102
+ "type": "object",
103
+ "required": ["expr"],
104
+ "properties": {
105
+ "type": {
106
+ "type": "string",
107
+ "enum": ["js-fn", "js-eval", "js-tpl"]
108
+ },
109
+ "expr": {
110
+ "type": "string"
111
+ }
112
+ }
113
+ },
114
+ "partial-select-item": {
115
+ "oneOf": [
116
+ {"type": "string"},
117
+ {
118
+ "type": "object",
119
+ "properties": {
120
+ "key": {"type": "string"},
121
+ "title": {"type": "string"},
122
+ "value": {}
123
+ }
124
+ }
125
+ ]
126
+ },
127
+ "partial-get-items": {
128
+ "oneOf": [
129
+ {"type": "string"},
130
+ {"$ref": "#/$defs/partial-get-items-obj"}
131
+ ]
132
+ },
133
+ "partial-get-items-obj": {
134
+ "type": "object",
135
+ "properties": {
136
+ "itemTitle": {"$ref": "#/$defs/partial-expression"},
137
+ "itemKey": {"$ref": "#/$defs/partial-expression"},
138
+ "itemValue": {"$ref": "#/$defs/partial-expression"},
139
+ "itemsResults": {"$ref": "#/$defs/partial-expression"}
140
+ },
141
+ "oneOf": [
142
+ {"$ref": "#/$defs/partial-expression"},
143
+ {"$ref": "#/$defs/partial-get-items-fetch"}
144
+ ]
145
+ },
146
+ "partial-get-items-fetch": {
147
+ "type": "object",
148
+ "required": ["url"],
149
+ "properties": {
150
+ "url": {"$ref": "#/$defs/partial-expression"}
151
+ }
152
+ },
153
+ "partial-cols": {
154
+ "oneOf": [
155
+ {"$ref": "#/$defs/partial-cols-number"},
156
+ {"$ref": "#/$defs/partial-cols-obj"}
157
+ ]
158
+ },
159
+ "partial-cols-obj": {
160
+ "type": "object",
161
+ "additionalProperties": false,
162
+ "properties": {
163
+ "xs": {"$ref": "#/$defs/partial-cols-number"},
164
+ "sm": {"$ref": "#/$defs/partial-cols-number"},
165
+ "md": {"$ref": "#/$defs/partial-cols-number"},
166
+ "lg": {"$ref": "#/$defs/partial-cols-number"},
167
+ "xl": {"$ref": "#/$defs/partial-cols-number"},
168
+ "xxl": {"$ref": "#/$defs/partial-cols-number"}
169
+ }
170
+ },
171
+ "partial-cols-number": {
172
+ "type": "integer",
173
+ "minimum": 0,
174
+ "maximum": 12
175
+ },
176
+ "partial-slot": {
177
+ "oneOf": [
178
+ {"type": "string"},
179
+ {"$ref": "#/$defs/partial-slot-text"},
180
+ {"$ref": "#/$defs/partial-slot-markdown"},
181
+ {"$ref": "#/$defs/partial-slot-name"}
182
+ ]
183
+ },
184
+ "partial-slot-text": {
185
+ "type": "object",
186
+ "additionalProperties": false,
187
+ "required": ["text"],
188
+ "properties": {
189
+ "text": {"type": "string"}
190
+ }
191
+ },
192
+ "partial-slot-markdown": {
193
+ "type": "object",
194
+ "additionalProperties": false,
195
+ "required": ["markdown"],
196
+ "properties": {
197
+ "markdown": {"type": "string"}
198
+ }
199
+ },
200
+ "partial-slot-name": {
201
+ "type": "object",
202
+ "additionalProperties": false,
203
+ "required": ["name"],
204
+ "properties": {
205
+ "name": {"type": "string"}
206
+ }
207
+ }
208
+ }
209
+ }
@@ -0,0 +1,109 @@
1
+ export type LayoutKeyword = ComponentName | PartialChildren | PartialCompObject | PartialSwitch;
2
+ export type ComponentName =
3
+ | "none"
4
+ | "text-field"
5
+ | "number-field"
6
+ | "textarea"
7
+ | "checkbox"
8
+ | "switch"
9
+ | "slider"
10
+ | "date-picker"
11
+ | "date-time-picker"
12
+ | "time-picker"
13
+ | "color-picker"
14
+ | "section"
15
+ | "list"
16
+ | "select"
17
+ | "tabs"
18
+ | "vertical-tabs"
19
+ | "expansion-panels";
20
+ export type PartialChild = PartialChild1 & {
21
+ key?: string | number;
22
+ cols?: PartialCols;
23
+ [k: string]: unknown;
24
+ };
25
+ export type PartialChild1 = PartialCompObject & unknown;
26
+ export type PartialExpression = string | PartialExpressionObj;
27
+ export type PartialSelectItem =
28
+ | string
29
+ | {
30
+ key?: string;
31
+ title?: string;
32
+ value?: unknown;
33
+ [k: string]: unknown;
34
+ };
35
+ export type PartialGetItems = string | PartialGetItemsObj;
36
+ export type PartialGetItemsObj = {
37
+ itemTitle?: PartialExpression;
38
+ itemKey?: PartialExpression;
39
+ itemValue?: PartialExpression;
40
+ itemsResults?: PartialExpression;
41
+ [k: string]: unknown;
42
+ } & PartialGetItemsObj1;
43
+ export type PartialGetItemsObj1 = PartialExpression | PartialGetItemsFetch;
44
+ export type PartialCols = PartialColsNumber | PartialColsObj;
45
+ export type PartialColsNumber = number;
46
+ /**
47
+ * This interface was referenced by `undefined`'s JSON-Schema definition
48
+ * via the `patternProperty` ".*".
49
+ */
50
+ export type PartialSlot = string | PartialSlotText | PartialSlotMarkdown | PartialSlotName;
51
+ export type PartialChildren = (string | PartialChild)[];
52
+
53
+ export interface PartialCompObject {
54
+ comp?: ComponentName;
55
+ help?: string;
56
+ children?: PartialChildren;
57
+ label?: string;
58
+ title?: string | null;
59
+ subtitle?: string | null;
60
+ step?: number;
61
+ if?: PartialExpression;
62
+ items?: PartialSelectItem[];
63
+ getItems?: PartialGetItems;
64
+ listEditMode?: "inline" | "inline-single" | "menu" | "dialog";
65
+ listActions?: ("add" | "edit" | "delete" | "sort" | "duplicate")[];
66
+ cols?: PartialCols;
67
+ props?: {
68
+ [k: string]: unknown;
69
+ };
70
+ slots?: {
71
+ [k: string]: PartialSlot;
72
+ };
73
+ options?: {
74
+ [k: string]: unknown;
75
+ };
76
+ messages?: {
77
+ [k: string]: unknown;
78
+ };
79
+ [k: string]: unknown;
80
+ }
81
+ export interface PartialExpressionObj {
82
+ type?: "js-fn" | "js-eval" | "js-tpl";
83
+ expr: string;
84
+ [k: string]: unknown;
85
+ }
86
+ export interface PartialGetItemsFetch {
87
+ url: PartialExpression;
88
+ [k: string]: unknown;
89
+ }
90
+ export interface PartialColsObj {
91
+ xs?: PartialColsNumber;
92
+ sm?: PartialColsNumber;
93
+ md?: PartialColsNumber;
94
+ lg?: PartialColsNumber;
95
+ xl?: PartialColsNumber;
96
+ xxl?: PartialColsNumber;
97
+ }
98
+ export interface PartialSlotText {
99
+ text: string;
100
+ }
101
+ export interface PartialSlotMarkdown {
102
+ markdown: string;
103
+ }
104
+ export interface PartialSlotName {
105
+ name: string;
106
+ }
107
+ export interface PartialSwitch {
108
+ switch: PartialCompObject[];
109
+ }
@@ -0,0 +1,2 @@
1
+ // @ts-ignore
2
+ export const validate = validate18;export default validate18;const schema21 = {"$id":"https://json-layout.github.io/layout-keyword","title":"layout keyword","unevaluatedProperties":false,"anyOf":[{"$ref":"#/$defs/comp-name"},{"$ref":"#/$defs/partial-children"},{"$ref":"#/$defs/partial-comp-object"},{"$ref":"#/$defs/partial-switch"}],"$defs":{"partial-switch":{"type":"object","required":["switch"],"additionalProperties":false,"properties":{"switch":{"type":"array","items":{"$ref":"#/$defs/partial-comp-object"}}}},"partial-comp-object":{"title":"partial comp object","type":"object","properties":{"comp":{"$ref":"#/$defs/comp-name"},"help":{"type":"string"},"children":{"$ref":"#/$defs/partial-children"},"label":{"type":"string"},"title":{"type":["string","null"]},"subtitle":{"type":["string","null"]},"step":{"type":"number"},"if":{"$ref":"#/$defs/partial-expression"},"items":{"type":"array","items":{"$ref":"#/$defs/partial-select-item"}},"getItems":{"$ref":"#/$defs/partial-get-items"},"listEditMode":{"type":"string","enum":["inline","inline-single","menu","dialog"]},"listActions":{"type":"array","items":{"type":"string","enum":["add","edit","delete","sort","duplicate"]}},"cols":{"$ref":"#/$defs/partial-cols"},"props":{"type":"object"},"slots":{"type":"object","patternProperties":{".*":{"$ref":"#/$defs/partial-slot"}}},"options":{"type":"object"},"messages":{"type":"object"}}},"comp-name":{"title":"component name","type":"string","enum":["none","text-field","number-field","textarea","checkbox","switch","slider","date-picker","date-time-picker","time-picker","color-picker","section","list","select","tabs","vertical-tabs","expansion-panels"]},"partial-child":{"type":"object","unevaluatedProperties":false,"properties":{"key":{"type":["string","integer"]},"cols":{"$ref":"#/$defs/partial-cols"}},"allOf":[{"$ref":"#/$defs/partial-comp-object"},{}]},"partial-children":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-child"}]}},"partial-expression":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-expression-obj"}]},"partial-expression-obj":{"type":"object","required":["expr"],"properties":{"type":{"type":"string","enum":["js-fn","js-eval","js-tpl"]},"expr":{"type":"string"}}},"partial-select-item":{"oneOf":[{"type":"string"},{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"value":{}}}]},"partial-get-items":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-get-items-obj"}]},"partial-get-items-obj":{"type":"object","properties":{"itemTitle":{"$ref":"#/$defs/partial-expression"},"itemKey":{"$ref":"#/$defs/partial-expression"},"itemValue":{"$ref":"#/$defs/partial-expression"},"itemsResults":{"$ref":"#/$defs/partial-expression"}},"oneOf":[{"$ref":"#/$defs/partial-expression"},{"$ref":"#/$defs/partial-get-items-fetch"}]},"partial-get-items-fetch":{"type":"object","required":["url"],"properties":{"url":{"$ref":"#/$defs/partial-expression"}}},"partial-cols":{"oneOf":[{"$ref":"#/$defs/partial-cols-number"},{"$ref":"#/$defs/partial-cols-obj"}]},"partial-cols-obj":{"type":"object","additionalProperties":false,"properties":{"xs":{"$ref":"#/$defs/partial-cols-number"},"sm":{"$ref":"#/$defs/partial-cols-number"},"md":{"$ref":"#/$defs/partial-cols-number"},"lg":{"$ref":"#/$defs/partial-cols-number"},"xl":{"$ref":"#/$defs/partial-cols-number"},"xxl":{"$ref":"#/$defs/partial-cols-number"}}},"partial-cols-number":{"type":"integer","minimum":0,"maximum":12},"partial-slot":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-slot-text"},{"$ref":"#/$defs/partial-slot-markdown"},{"$ref":"#/$defs/partial-slot-name"}]},"partial-slot-text":{"type":"object","additionalProperties":false,"required":["text"],"properties":{"text":{"type":"string"}}},"partial-slot-markdown":{"type":"object","additionalProperties":false,"required":["markdown"],"properties":{"markdown":{"type":"string"}}},"partial-slot-name":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"}}}}};const schema22 = {"title":"component name","type":"string","enum":["none","text-field","number-field","textarea","checkbox","switch","slider","date-picker","date-time-picker","time-picker","color-picker","section","list","select","tabs","vertical-tabs","expansion-panels"]};const schema23 = {"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-child"}]}};const schema24 = {"type":"object","unevaluatedProperties":false,"properties":{"key":{"type":["string","integer"]},"cols":{"$ref":"#/$defs/partial-cols"}},"allOf":[{"$ref":"#/$defs/partial-comp-object"},{}]};const schema25 = {"title":"partial comp object","type":"object","properties":{"comp":{"$ref":"#/$defs/comp-name"},"help":{"type":"string"},"children":{"$ref":"#/$defs/partial-children"},"label":{"type":"string"},"title":{"type":["string","null"]},"subtitle":{"type":["string","null"]},"step":{"type":"number"},"if":{"$ref":"#/$defs/partial-expression"},"items":{"type":"array","items":{"$ref":"#/$defs/partial-select-item"}},"getItems":{"$ref":"#/$defs/partial-get-items"},"listEditMode":{"type":"string","enum":["inline","inline-single","menu","dialog"]},"listActions":{"type":"array","items":{"type":"string","enum":["add","edit","delete","sort","duplicate"]}},"cols":{"$ref":"#/$defs/partial-cols"},"props":{"type":"object"},"slots":{"type":"object","patternProperties":{".*":{"$ref":"#/$defs/partial-slot"}}},"options":{"type":"object"},"messages":{"type":"object"}}};const schema29 = {"oneOf":[{"type":"string"},{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"value":{}}}]};const wrapper0 = {validate: validate19};const schema27 = {"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-expression-obj"}]};const schema28 = {"type":"object","required":["expr"],"properties":{"type":{"type":"string","enum":["js-fn","js-eval","js-tpl"]},"expr":{"type":"string"}}};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate22.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;const _errs4 = errors;if(errors === _errs4){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.expr === undefined) && (missing0 = "expr")){const err1 = {instancePath,schemaPath:"#/$defs/partial-expression-obj/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs6 = errors;if(typeof data0 !== "string"){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/partial-expression-obj/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!(((data0 === "js-fn") || (data0 === "js-eval")) || (data0 === "js-tpl"))){const err3 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/partial-expression-obj/properties/type/enum",keyword:"enum",params:{allowedValues: schema28.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data.expr !== undefined){const _errs8 = errors;if(typeof data.expr !== "string"){const err4 = {instancePath:instancePath+"/expr",schemaPath:"#/$defs/partial-expression-obj/properties/expr/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid2 = _errs8 === errors;}else {var valid2 = true;}}}}else {const err5 = {instancePath,schemaPath:"#/$defs/partial-expression-obj/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;var props0 = {};props0.type = true;props0.expr = true;}}if(!valid0){const err6 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate22.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate22.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate22.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema30 = {"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-get-items-obj"}]};const schema31 = {"type":"object","properties":{"itemTitle":{"$ref":"#/$defs/partial-expression"},"itemKey":{"$ref":"#/$defs/partial-expression"},"itemValue":{"$ref":"#/$defs/partial-expression"},"itemsResults":{"$ref":"#/$defs/partial-expression"}},"oneOf":[{"$ref":"#/$defs/partial-expression"},{"$ref":"#/$defs/partial-get-items-fetch"}]};const schema32 = {"type":"object","required":["url"],"properties":{"url":{"$ref":"#/$defs/partial-expression"}}};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate27.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.url === undefined) && (missing0 = "url")){validate27.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.url !== undefined){if(!(validate22(data.url, {instancePath:instancePath+"/url",parentData:data,parentDataProperty:"url",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}}}else {validate27.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate27.errors = vErrors;return errors === 0;}validate27.evaluated = {"props":{"url":true},"dynamicProps":false,"dynamicItems":false};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate25.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;if(!(validate22(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}else {var props0 = validate22.evaluated.props;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;if(!(validate27(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);errors = vErrors.length;}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = props0 || {};props0.url = true;}}}if(!valid0){const err0 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;validate25.errors = vErrors;return false;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(props0 !== true){props0 = props0 || {};props0.itemTitle = true;props0.itemKey = true;props0.itemValue = true;props0.itemsResults = true;}if(data.itemTitle !== undefined){const _errs4 = errors;if(!(validate22(data.itemTitle, {instancePath:instancePath+"/itemTitle",parentData:data,parentDataProperty:"itemTitle",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.itemKey !== undefined){const _errs5 = errors;if(!(validate22(data.itemKey, {instancePath:instancePath+"/itemKey",parentData:data,parentDataProperty:"itemKey",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.itemValue !== undefined){const _errs6 = errors;if(!(validate22(data.itemValue, {instancePath:instancePath+"/itemValue",parentData:data,parentDataProperty:"itemValue",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.itemsResults !== undefined){const _errs7 = errors;if(!(validate22(data.itemsResults, {instancePath:instancePath+"/itemsResults",parentData:data,parentDataProperty:"itemsResults",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {validate25.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate25.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate25.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate24.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;if(!(validate25(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}else {var props0 = validate25.evaluated.props;}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate24.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate24.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema33 = {"oneOf":[{"$ref":"#/$defs/partial-cols-number"},{"$ref":"#/$defs/partial-cols-obj"}]};const schema34 = {"type":"integer","minimum":0,"maximum":12};const schema35 = {"type":"object","additionalProperties":false,"properties":{"xs":{"$ref":"#/$defs/partial-cols-number"},"sm":{"$ref":"#/$defs/partial-cols-number"},"md":{"$ref":"#/$defs/partial-cols-number"},"lg":{"$ref":"#/$defs/partial-cols-number"},"xl":{"$ref":"#/$defs/partial-cols-number"},"xxl":{"$ref":"#/$defs/partial-cols-number"}}};function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate37.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){const _errs1 = errors;for(const key0 in data){if(!((((((key0 === "xs") || (key0 === "sm")) || (key0 === "md")) || (key0 === "lg")) || (key0 === "xl")) || (key0 === "xxl"))){validate37.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.xs !== undefined){let data0 = data.xs;const _errs2 = errors;const _errs3 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){validate37.errors = [{instancePath:instancePath+"/xs",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs3){if((typeof data0 == "number") && (isFinite(data0))){if(data0 > 12 || isNaN(data0)){validate37.errors = [{instancePath:instancePath+"/xs",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data0 < 0 || isNaN(data0)){validate37.errors = [{instancePath:instancePath+"/xs",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.sm !== undefined){let data1 = data.sm;const _errs5 = errors;const _errs6 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){validate37.errors = [{instancePath:instancePath+"/sm",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs6){if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 12 || isNaN(data1)){validate37.errors = [{instancePath:instancePath+"/sm",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data1 < 0 || isNaN(data1)){validate37.errors = [{instancePath:instancePath+"/sm",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.md !== undefined){let data2 = data.md;const _errs8 = errors;const _errs9 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){validate37.errors = [{instancePath:instancePath+"/md",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs9){if((typeof data2 == "number") && (isFinite(data2))){if(data2 > 12 || isNaN(data2)){validate37.errors = [{instancePath:instancePath+"/md",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data2 < 0 || isNaN(data2)){validate37.errors = [{instancePath:instancePath+"/md",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.lg !== undefined){let data3 = data.lg;const _errs11 = errors;const _errs12 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){validate37.errors = [{instancePath:instancePath+"/lg",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs12){if((typeof data3 == "number") && (isFinite(data3))){if(data3 > 12 || isNaN(data3)){validate37.errors = [{instancePath:instancePath+"/lg",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data3 < 0 || isNaN(data3)){validate37.errors = [{instancePath:instancePath+"/lg",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.xl !== undefined){let data4 = data.xl;const _errs14 = errors;const _errs15 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate37.errors = [{instancePath:instancePath+"/xl",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs15){if((typeof data4 == "number") && (isFinite(data4))){if(data4 > 12 || isNaN(data4)){validate37.errors = [{instancePath:instancePath+"/xl",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data4 < 0 || isNaN(data4)){validate37.errors = [{instancePath:instancePath+"/xl",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.xxl !== undefined){let data5 = data.xxl;const _errs17 = errors;const _errs18 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){validate37.errors = [{instancePath:instancePath+"/xxl",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs18){if((typeof data5 == "number") && (isFinite(data5))){if(data5 > 12 || isNaN(data5)){validate37.errors = [{instancePath:instancePath+"/xxl",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data5 < 0 || isNaN(data5)){validate37.errors = [{instancePath:instancePath+"/xxl",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}}}}}}}}else {validate37.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate37.errors = vErrors;return errors === 0;}validate37.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate36.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;const _errs2 = errors;if(!(((typeof data == "number") && (!(data % 1) && !isNaN(data))) && (isFinite(data)))){const err0 = {instancePath,schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(errors === _errs2){if((typeof data == "number") && (isFinite(data))){if(data > 12 || isNaN(data)){const err1 = {instancePath,schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {if(data < 0 || isNaN(data)){const err2 = {instancePath,schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs4 = errors;if(!(validate37(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}var _valid0 = _errs4 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;var props0 = true;}}if(!valid0){const err3 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;validate36.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate36.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate36.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema42 = {"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-slot-text"},{"$ref":"#/$defs/partial-slot-markdown"},{"$ref":"#/$defs/partial-slot-name"}]};const schema43 = {"type":"object","additionalProperties":false,"required":["text"],"properties":{"text":{"type":"string"}}};const schema44 = {"type":"object","additionalProperties":false,"required":["markdown"],"properties":{"markdown":{"type":"string"}}};const schema45 = {"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"}}};function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate40.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;const _errs4 = errors;if(errors === _errs4){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.text === undefined) && (missing0 = "text")){const err1 = {instancePath,schemaPath:"#/$defs/partial-slot-text/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const _errs6 = errors;for(const key0 in data){if(!(key0 === "text")){const err2 = {instancePath,schemaPath:"#/$defs/partial-slot-text/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;break;}}if(_errs6 === errors){if(data.text !== undefined){if(typeof data.text !== "string"){const err3 = {instancePath:instancePath+"/text",schemaPath:"#/$defs/partial-slot-text/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}}}else {const err4 = {instancePath,schemaPath:"#/$defs/partial-slot-text/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;var props0 = true;}const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.markdown === undefined) && (missing1 = "markdown")){const err5 = {instancePath,schemaPath:"#/$defs/partial-slot-markdown/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {const _errs12 = errors;for(const key1 in data){if(!(key1 === "markdown")){const err6 = {instancePath,schemaPath:"#/$defs/partial-slot-markdown/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;break;}}if(_errs12 === errors){if(data.markdown !== undefined){if(typeof data.markdown !== "string"){const err7 = {instancePath:instancePath+"/markdown",schemaPath:"#/$defs/partial-slot-markdown/properties/markdown/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}}else {const err8 = {instancePath,schemaPath:"#/$defs/partial-slot-markdown/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs9 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs15 = errors;const _errs16 = errors;if(errors === _errs16){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.name === undefined) && (missing2 = "name")){const err9 = {instancePath,schemaPath:"#/$defs/partial-slot-name/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {const _errs18 = errors;for(const key2 in data){if(!(key2 === "name")){const err10 = {instancePath,schemaPath:"#/$defs/partial-slot-name/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;break;}}if(_errs18 === errors){if(data.name !== undefined){if(typeof data.name !== "string"){const err11 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/partial-slot-name/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}}else {const err12 = {instancePath,schemaPath:"#/$defs/partial-slot-name/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}}}}if(!valid0){const err13 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate40.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate40.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate40.evaluated = {"dynamicProps":true,"dynamicItems":false};const pattern2 = new RegExp(".*", "u");function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate21.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.comp !== undefined){let data0 = data.comp;const _errs1 = errors;if(typeof data0 !== "string"){validate21.errors = [{instancePath:instancePath+"/comp",schemaPath:"#/$defs/comp-name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((((((((((((data0 === "none") || (data0 === "text-field")) || (data0 === "number-field")) || (data0 === "textarea")) || (data0 === "checkbox")) || (data0 === "switch")) || (data0 === "slider")) || (data0 === "date-picker")) || (data0 === "date-time-picker")) || (data0 === "time-picker")) || (data0 === "color-picker")) || (data0 === "section")) || (data0 === "list")) || (data0 === "select")) || (data0 === "tabs")) || (data0 === "vertical-tabs")) || (data0 === "expansion-panels"))){validate21.errors = [{instancePath:instancePath+"/comp",schemaPath:"#/$defs/comp-name/enum",keyword:"enum",params:{allowedValues: schema22.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.help !== undefined){const _errs4 = errors;if(typeof data.help !== "string"){validate21.errors = [{instancePath:instancePath+"/help",schemaPath:"#/properties/help/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined){const _errs6 = errors;if(!(wrapper0.validate(data.children, {instancePath:instancePath+"/children",parentData:data,parentDataProperty:"children",rootData,dynamicAnchors}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.label !== undefined){const _errs7 = errors;if(typeof data.label !== "string"){validate21.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.title !== undefined){let data4 = data.title;const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate21.errors = [{instancePath:instancePath+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type: schema25.properties.title.type},message:"must be string,null"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.subtitle !== undefined){let data5 = data.subtitle;const _errs11 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate21.errors = [{instancePath:instancePath+"/subtitle",schemaPath:"#/properties/subtitle/type",keyword:"type",params:{type: schema25.properties.subtitle.type},message:"must be string,null"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.step !== undefined){let data6 = data.step;const _errs13 = errors;if(!((typeof data6 == "number") && (isFinite(data6)))){validate21.errors = [{instancePath:instancePath+"/step",schemaPath:"#/properties/step/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.if !== undefined){const _errs15 = errors;if(!(validate22(data.if, {instancePath:instancePath+"/if",parentData:data,parentDataProperty:"if",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.items !== undefined){let data8 = data.items;const _errs16 = errors;if(errors === _errs16){if(Array.isArray(data8)){var valid2 = true;const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];const _errs18 = errors;const _errs20 = errors;let valid4 = false;let passing0 = null;const _errs21 = errors;if(typeof data9 !== "string"){const err0 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/partial-select-item/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs21 === errors;if(_valid0){valid4 = true;passing0 = 0;}const _errs23 = errors;if(errors === _errs23){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.key !== undefined){const _errs25 = errors;if(typeof data9.key !== "string"){const err1 = {instancePath:instancePath+"/items/" + i0+"/key",schemaPath:"#/$defs/partial-select-item/oneOf/1/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid5 = _errs25 === errors;}else {var valid5 = true;}if(valid5){if(data9.title !== undefined){const _errs27 = errors;if(typeof data9.title !== "string"){const err2 = {instancePath:instancePath+"/items/" + i0+"/title",schemaPath:"#/$defs/partial-select-item/oneOf/1/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid5 = _errs27 === errors;}else {var valid5 = true;}}}else {const err3 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/partial-select-item/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var _valid0 = _errs23 === errors;if(_valid0 && valid4){valid4 = false;passing0 = [passing0, 1];}else {if(_valid0){valid4 = true;passing0 = 1;var props2 = {};props2.key = true;props2.title = true;props2.value = true;}}if(!valid4){const err4 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/partial-select-item/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate21.errors = vErrors;return false;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var valid2 = _errs18 === errors;if(!valid2){break;}}}else {validate21.errors = [{instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.getItems !== undefined){const _errs29 = errors;if(!(validate24(data.getItems, {instancePath:instancePath+"/getItems",parentData:data,parentDataProperty:"getItems",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}var valid0 = _errs29 === errors;}else {var valid0 = true;}if(valid0){if(data.listEditMode !== undefined){let data13 = data.listEditMode;const _errs30 = errors;if(typeof data13 !== "string"){validate21.errors = [{instancePath:instancePath+"/listEditMode",schemaPath:"#/properties/listEditMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data13 === "inline") || (data13 === "inline-single")) || (data13 === "menu")) || (data13 === "dialog"))){validate21.errors = [{instancePath:instancePath+"/listEditMode",schemaPath:"#/properties/listEditMode/enum",keyword:"enum",params:{allowedValues: schema25.properties.listEditMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs30 === errors;}else {var valid0 = true;}if(valid0){if(data.listActions !== undefined){let data14 = data.listActions;const _errs32 = errors;if(errors === _errs32){if(Array.isArray(data14)){var valid6 = true;const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];const _errs34 = errors;if(typeof data15 !== "string"){validate21.errors = [{instancePath:instancePath+"/listActions/" + i1,schemaPath:"#/properties/listActions/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data15 === "add") || (data15 === "edit")) || (data15 === "delete")) || (data15 === "sort")) || (data15 === "duplicate"))){validate21.errors = [{instancePath:instancePath+"/listActions/" + i1,schemaPath:"#/properties/listActions/items/enum",keyword:"enum",params:{allowedValues: schema25.properties.listActions.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid6 = _errs34 === errors;if(!valid6){break;}}}else {validate21.errors = [{instancePath:instancePath+"/listActions",schemaPath:"#/properties/listActions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs32 === errors;}else {var valid0 = true;}if(valid0){if(data.cols !== undefined){const _errs36 = errors;if(!(validate36(data.cols, {instancePath:instancePath+"/cols",parentData:data,parentDataProperty:"cols",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}var valid0 = _errs36 === errors;}else {var valid0 = true;}if(valid0){if(data.props !== undefined){let data17 = data.props;const _errs37 = errors;if(!(data17 && typeof data17 == "object" && !Array.isArray(data17))){validate21.errors = [{instancePath:instancePath+"/props",schemaPath:"#/properties/props/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}var valid0 = _errs37 === errors;}else {var valid0 = true;}if(valid0){if(data.slots !== undefined){let data18 = data.slots;const _errs39 = errors;if(errors === _errs39){if(data18 && typeof data18 == "object" && !Array.isArray(data18)){var props5 = {};for(const key0 in data18){if(pattern2.test(key0)){if(!(validate40(data18[key0], {instancePath:instancePath+"/slots/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data18,parentDataProperty:key0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}props5[key0] = true;}}}else {validate21.errors = [{instancePath:instancePath+"/slots",schemaPath:"#/properties/slots/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs39 === errors;}else {var valid0 = true;}if(valid0){if(data.options !== undefined){let data20 = data.options;const _errs42 = errors;if(!(data20 && typeof data20 == "object" && !Array.isArray(data20))){validate21.errors = [{instancePath:instancePath+"/options",schemaPath:"#/properties/options/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}var valid0 = _errs42 === errors;}else {var valid0 = true;}if(valid0){if(data.messages !== undefined){let data21 = data.messages;const _errs44 = errors;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){validate21.errors = [{instancePath:instancePath+"/messages",schemaPath:"#/properties/messages/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}var valid0 = _errs44 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}else {validate21.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate21.errors = vErrors;return errors === 0;}validate21.evaluated = {"props":{"comp":true,"help":true,"children":true,"label":true,"title":true,"subtitle":true,"step":true,"if":true,"items":true,"getItems":true,"listEditMode":true,"listActions":true,"cols":true,"props":true,"slots":true,"options":true,"messages":true},"dynamicProps":false,"dynamicItems":false};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(!(validate21(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.key !== undefined){let data0 = data.key;const _errs2 = errors;if((typeof data0 !== "string") && (!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0))))){validate20.errors = [{instancePath:instancePath+"/key",schemaPath:"#/properties/key/type",keyword:"type",params:{type: schema24.properties.key.type},message:"must be string,integer"}];return false;}var valid1 = _errs2 === errors;}else {var valid1 = true;}if(valid1){if(data.cols !== undefined){const _errs4 = errors;if(!(validate36(data.cols, {instancePath:instancePath+"/cols",parentData:data,parentDataProperty:"cols",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){for(const key0 in data){if((((((((((((((((((key0 !== "key") && (key0 !== "cols")) && (key0 !== "comp")) && (key0 !== "help")) && (key0 !== "children")) && (key0 !== "label")) && (key0 !== "title")) && (key0 !== "subtitle")) && (key0 !== "step")) && (key0 !== "if")) && (key0 !== "items")) && (key0 !== "getItems")) && (key0 !== "listEditMode")) && (key0 !== "listActions")) && (key0 !== "props")) && (key0 !== "slots")) && (key0 !== "options")) && (key0 !== "messages")){validate20.errors = [{instancePath,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty: key0},message:"must NOT have unevaluated properties"}];return false;break;}}}}}else {validate20.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate19(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate19.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;const _errs2 = errors;let valid1 = false;let passing0 = null;const _errs3 = errors;if(typeof data0 !== "string"){const err0 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs3 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs5 = errors;if(!(validate20(data0, {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}var _valid0 = _errs5 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}}if(!valid1){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate19.errors = vErrors;return false;}else {errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate19.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate19.errors = vErrors;return errors === 0;}validate19.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};const schema46 = {"type":"object","required":["switch"],"additionalProperties":false,"properties":{"switch":{"type":"array","items":{"$ref":"#/$defs/partial-comp-object"}}}};function validate47(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate47.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.switch === undefined) && (missing0 = "switch")){validate47.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(key0 === "switch")){validate47.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.switch !== undefined){let data0 = data.switch;const _errs2 = errors;if(errors === _errs2){if(Array.isArray(data0)){var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){const _errs4 = errors;if(!(validate21(data0[i0], {instancePath:instancePath+"/switch/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}var valid1 = _errs4 === errors;if(!valid1){break;}}}else {validate47.errors = [{instancePath:instancePath+"/switch",schemaPath:"#/properties/switch/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}}else {validate47.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate47.errors = vErrors;return errors === 0;}validate47.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://json-layout.github.io/layout-keyword" */;let vErrors = null;let errors = 0;const evaluated0 = validate18.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/$defs/comp-name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(!(((((((((((((((((data === "none") || (data === "text-field")) || (data === "number-field")) || (data === "textarea")) || (data === "checkbox")) || (data === "switch")) || (data === "slider")) || (data === "date-picker")) || (data === "date-time-picker")) || (data === "time-picker")) || (data === "color-picker")) || (data === "section")) || (data === "list")) || (data === "select")) || (data === "tabs")) || (data === "vertical-tabs")) || (data === "expansion-panels"))){const err1 = {instancePath,schemaPath:"#/$defs/comp-name/enum",keyword:"enum",params:{allowedValues: schema22.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;const _errs4 = errors;if(!(validate19(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate19.errors : vErrors.concat(validate19.errors);errors = vErrors.length;}var _valid0 = _errs4 === errors;valid0 = valid0 || _valid0;if(_valid0){var items0 = true;}const _errs5 = errors;if(!(validate21(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}var _valid0 = _errs5 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.comp = true;props0.help = true;props0.children = true;props0.label = true;props0.title = true;props0.subtitle = true;props0.step = true;props0.if = true;props0.items = true;props0.getItems = true;props0.listEditMode = true;props0.listActions = true;props0.cols = true;props0.props = true;props0.slots = true;props0.options = true;props0.messages = true;}const _errs6 = errors;if(!(validate47(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}var _valid0 = _errs6 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}if(!valid0){const err2 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate18.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(props0 !== true){for(const key0 in data){if(!props0 || !props0[key0]){validate18.errors = [{instancePath,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty: key0},message:"must NOT have unevaluated properties"}];return false;break;}}}}}validate18.errors = vErrors;evaluated0.items = items0;return errors === 0;}validate18.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":true};