@cardenelabs/dragon 0.43.0 → 0.45.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 (97) hide show
  1. package/README.md +21 -0
  2. package/dist/cli.cjs +6804 -5032
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/cli.js +6804 -5032
  5. package/dist/cli.js.map +1 -1
  6. package/dist/export.cjs +7172 -5536
  7. package/dist/export.cjs.map +1 -1
  8. package/dist/export.d.cts +1 -1
  9. package/dist/export.d.ts +1 -1
  10. package/dist/export.js +7171 -5537
  11. package/dist/export.js.map +1 -1
  12. package/dist/index.cjs +12244 -10449
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +55 -3
  15. package/dist/index.d.ts +55 -3
  16. package/dist/index.js +12244 -10449
  17. package/dist/index.js.map +1 -1
  18. package/dist/{ink-B6s_SMXG.d.cts → ink-DeDtzaTL.d.cts} +27 -3
  19. package/dist/{ink-B6s_SMXG.d.ts → ink-DeDtzaTL.d.ts} +27 -3
  20. package/dist/light/chunk-6ZUKJ3VO.js +489 -0
  21. package/dist/light/chunk-6ZUKJ3VO.js.map +1 -0
  22. package/dist/light/chunk-CLS6JVKK.cjs +84 -0
  23. package/dist/light/chunk-CLS6JVKK.cjs.map +1 -0
  24. package/dist/light/chunk-JNSHZTPF.js +1141 -0
  25. package/dist/light/chunk-JNSHZTPF.js.map +1 -0
  26. package/dist/light/chunk-OUQ44P45.cjs +489 -0
  27. package/dist/light/chunk-OUQ44P45.cjs.map +1 -0
  28. package/dist/light/chunk-VRAW7VAQ.cjs +1141 -0
  29. package/dist/light/chunk-VRAW7VAQ.cjs.map +1 -0
  30. package/dist/light/chunk-YDKPEKGZ.js +84 -0
  31. package/dist/light/chunk-YDKPEKGZ.js.map +1 -0
  32. package/dist/light/git-C4RVNFT6.js +637 -0
  33. package/dist/light/git-C4RVNFT6.js.map +1 -0
  34. package/dist/light/git-I7D7RIW2.cjs +637 -0
  35. package/dist/light/git-I7D7RIW2.cjs.map +1 -0
  36. package/dist/light/index.cjs +9885 -0
  37. package/dist/light/index.cjs.map +1 -0
  38. package/dist/light/index.d.cts +976 -0
  39. package/dist/light/index.d.ts +976 -0
  40. package/dist/light/index.js +9885 -0
  41. package/dist/light/index.js.map +1 -0
  42. package/dist/light/lineup-FAIKTH3Y.cjs +283 -0
  43. package/dist/light/lineup-FAIKTH3Y.cjs.map +1 -0
  44. package/dist/light/lineup-YEG4HHEI.js +283 -0
  45. package/dist/light/lineup-YEG4HHEI.js.map +1 -0
  46. package/dist/light/state-P3LIVI3K.js +335 -0
  47. package/dist/light/state-P3LIVI3K.js.map +1 -0
  48. package/dist/light/state-ZZUK6AQT.cjs +335 -0
  49. package/dist/light/state-ZZUK6AQT.cjs.map +1 -0
  50. package/dist/light/time-64DJKYAL.cjs +719 -0
  51. package/dist/light/time-64DJKYAL.cjs.map +1 -0
  52. package/dist/light/time-B5WUQOFP.js +719 -0
  53. package/dist/light/time-B5WUQOFP.js.map +1 -0
  54. package/dist/light/tree-5HPREYW2.js +478 -0
  55. package/dist/light/tree-5HPREYW2.js.map +1 -0
  56. package/dist/light/tree-66EH4QVI.cjs +478 -0
  57. package/dist/light/tree-66EH4QVI.cjs.map +1 -0
  58. package/dist/node.cjs +1932 -680
  59. package/dist/node.cjs.map +1 -1
  60. package/dist/node.js +1932 -680
  61. package/dist/node.js.map +1 -1
  62. package/dist/player.global.js +3 -3
  63. package/package.json +14 -2
  64. package/src/api.ts +71 -0
  65. package/src/field-messages.ts +6 -0
  66. package/src/figure-text.ts +4 -0
  67. package/src/index.ts +6 -65
  68. package/src/kinds/all.ts +16 -0
  69. package/src/kinds/git.ts +3 -0
  70. package/src/kinds/lineup.ts +3 -0
  71. package/src/kinds/registry.ts +46 -0
  72. package/src/kinds/state.ts +2 -0
  73. package/src/kinds/time.ts +3 -0
  74. package/src/kinds/tree.ts +3 -0
  75. package/src/layout/git.ts +0 -1
  76. package/src/layout/lineup.ts +218 -0
  77. package/src/layout/time.ts +0 -1
  78. package/src/layout/tree.ts +0 -1
  79. package/src/light.ts +31 -0
  80. package/src/look/values.ts +31 -2
  81. package/src/messages.ts +54 -0
  82. package/src/parser.ts +123 -1
  83. package/src/player-global.ts +3 -0
  84. package/src/player.ts +1 -1
  85. package/src/printer.ts +30 -1
  86. package/src/render/draw.ts +731 -0
  87. package/src/render/lineup.ts +184 -0
  88. package/src/render/parts.ts +19 -7
  89. package/src/render/svg.ts +4 -697
  90. package/src/render/time.ts +1 -4
  91. package/src/render/tree.ts +3 -2
  92. package/src/schema.ts +52 -4
  93. package/src/schemas/diagram.schema.json +145 -22
  94. package/src/schemas/validate-diagram.js +1 -1
  95. package/src/timeline.ts +14 -0
  96. package/src/view.ts +1 -1
  97. package/src/words.ts +15 -2
package/dist/node.js CHANGED
@@ -28,8 +28,10 @@ var ja = {
28
28
  enum: (values) => `${values.join(" / ")} \u306E\u3069\u308C\u304B\u306B\u3059\u308B`,
29
29
  type: (type) => TYPES_JA[type] ?? `${type} \u306B\u3059\u308B`,
30
30
  minLength: (limit) => `${limit} \u5B57\u4EE5\u4E0A\u66F8\u304F`,
31
+ maxLength: (limit) => `${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
31
32
  pattern: (forbidden) => forbidden ? `${forbidden.space ? "\u7A7A\u767D\u3068 " : ""}${forbidden.chars.join(" ")} \u306F\u4F7F\u3048\u306A\u3044` : "\u4F7F\u3048\u306A\u3044\u5B57\u304C\u5165\u3063\u3066\u3044\u308B",
32
33
  minItems: (limit) => `${limit} \u3064\u4EE5\u4E0A\u66F8\u304F`,
34
+ maxItems: (limit) => `${limit} \u3064\u307E\u3067\u306B\u3059\u308B`,
33
35
  minimum: (limit) => `${limit} \u4EE5\u4E0A\u306B\u3059\u308B`,
34
36
  const: (value) => `${value} \u306B\u3059\u308B`,
35
37
  not: (allowed) => allowed ? `${allowed.field} \u306E\u6B04\u306F kind \u304C ${allowed.kind} \u306E\u6642\u3060\u3051\u66F8\u3051\u308B` : "\u3053\u306E\u6B04\u306E\u7D44\u307F\u5408\u308F\u305B\u306F\u66F8\u3051\u306A\u3044",
@@ -50,8 +52,10 @@ var en = {
50
52
  enum: (values) => `Use one of ${values.join(" / ")}`,
51
53
  type: (type) => TYPES_EN[type] ?? `Use ${type}`,
52
54
  minLength: (limit) => `Write at least ${plural(limit, "character")}`,
55
+ maxLength: (limit) => `Write at most ${plural(limit, "character")}`,
53
56
  pattern: (forbidden) => forbidden ? `Cannot contain ${forbidden.space ? "spaces or " : ""}${forbidden.chars.join(" ")}` : "Contains characters that are not allowed",
54
57
  minItems: (limit) => `Write at least ${plural(limit, "item")}`,
58
+ maxItems: (limit) => `Write at most ${plural(limit, "item")}`,
55
59
  minimum: (limit) => `Use ${limit} or greater`,
56
60
  const: (value) => `Use ${value}`,
57
61
  not: (allowed) => allowed ? `The ${allowed.field} field is allowed only when kind is ${allowed.kind}` : "This combination of fields is not allowed",
@@ -75,7 +79,7 @@ function ucs2length(str) {
75
79
  return length;
76
80
  }
77
81
  var validate_diagram_default = validate10;
78
- var schema11 = { "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" } }};
82
+ var schema11 = { "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree", "lineup"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" }, "lineup": { "$ref": "#/definitions/lineup" } }};
79
83
  function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
80
84
  let vErrors = null;
81
85
  let errors = 0;
@@ -180,34 +184,79 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
180
184
  }
181
185
  }
182
186
  }
187
+ const _errs14 = errors;
188
+ const _errs15 = errors;
189
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
190
+ if (data2.type === void 0 && ("type")) {
191
+ const err6 = {};
192
+ if (vErrors === null) {
193
+ vErrors = [err6];
194
+ } else {
195
+ vErrors.push(err6);
196
+ }
197
+ errors++;
198
+ } else {
199
+ if (data2.type !== void 0) {
200
+ let data5 = data2.type;
201
+ if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
202
+ const err7 = {};
203
+ if (vErrors === null) {
204
+ vErrors = [err7];
205
+ } else {
206
+ vErrors.push(err7);
207
+ }
208
+ errors++;
209
+ }
210
+ }
211
+ }
212
+ }
213
+ var valid13 = _errs15 === errors;
214
+ if (valid13) {
215
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
216
+ if (vErrors === null) {
217
+ vErrors = [err8];
218
+ } else {
219
+ vErrors.push(err8);
220
+ }
221
+ errors++;
222
+ } else {
223
+ errors = _errs14;
224
+ if (vErrors !== null) {
225
+ if (_errs14) {
226
+ vErrors.length = _errs14;
227
+ } else {
228
+ vErrors = null;
229
+ }
230
+ }
231
+ }
183
232
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
184
233
  if (data2.type !== void 0) {
185
- let data5 = data2.type;
186
- const _errs13 = errors;
187
- const _errs14 = errors;
188
- if (!(data5 === "commit" || data5 === "branch")) {
189
- const err6 = {};
234
+ let data6 = data2.type;
235
+ const _errs18 = errors;
236
+ const _errs19 = errors;
237
+ if (!(data6 === "commit" || data6 === "branch")) {
238
+ const err9 = {};
190
239
  if (vErrors === null) {
191
- vErrors = [err6];
240
+ vErrors = [err9];
192
241
  } else {
193
- vErrors.push(err6);
242
+ vErrors.push(err9);
194
243
  }
195
244
  errors++;
196
245
  }
197
- var valid13 = _errs14 === errors;
198
- if (valid13) {
199
- const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
246
+ var valid16 = _errs19 === errors;
247
+ if (valid16) {
248
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
200
249
  if (vErrors === null) {
201
- vErrors = [err7];
250
+ vErrors = [err10];
202
251
  } else {
203
- vErrors.push(err7);
252
+ vErrors.push(err10);
204
253
  }
205
254
  errors++;
206
255
  } else {
207
- errors = _errs13;
256
+ errors = _errs18;
208
257
  if (vErrors !== null) {
209
- if (_errs13) {
210
- vErrors.length = _errs13;
258
+ if (_errs18) {
259
+ vErrors.length = _errs18;
211
260
  } else {
212
261
  vErrors = null;
213
262
  }
@@ -215,29 +264,29 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
215
264
  }
216
265
  }
217
266
  if (data2.at !== void 0) {
218
- const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
267
+ const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
219
268
  if (vErrors === null) {
220
- vErrors = [err8];
269
+ vErrors = [err11];
221
270
  } else {
222
- vErrors.push(err8);
271
+ vErrors.push(err11);
223
272
  }
224
273
  errors++;
225
274
  }
226
275
  if (data2.into !== void 0) {
227
- const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
276
+ const err12 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
228
277
  if (vErrors === null) {
229
- vErrors = [err9];
278
+ vErrors = [err12];
230
279
  } else {
231
- vErrors.push(err9);
280
+ vErrors.push(err12);
232
281
  }
233
282
  errors++;
234
283
  }
235
284
  if (data2.color !== void 0) {
236
- const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
285
+ const err13 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
237
286
  if (vErrors === null) {
238
- vErrors = [err10];
287
+ vErrors = [err13];
239
288
  } else {
240
- vErrors.push(err10);
289
+ vErrors.push(err13);
241
290
  }
242
291
  errors++;
243
292
  }
@@ -372,31 +421,76 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
372
421
  }
373
422
  }
374
423
  }
424
+ const _errs14 = errors;
425
+ const _errs15 = errors;
375
426
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
376
- if (data2.at !== void 0) {
377
- const err6 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
427
+ if (data2.type === void 0 && ("type")) {
428
+ const err6 = {};
378
429
  if (vErrors === null) {
379
430
  vErrors = [err6];
380
431
  } else {
381
432
  vErrors.push(err6);
382
433
  }
383
434
  errors++;
435
+ } else {
436
+ if (data2.type !== void 0) {
437
+ let data5 = data2.type;
438
+ if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
439
+ const err7 = {};
440
+ if (vErrors === null) {
441
+ vErrors = [err7];
442
+ } else {
443
+ vErrors.push(err7);
444
+ }
445
+ errors++;
446
+ }
447
+ }
448
+ }
449
+ }
450
+ var valid13 = _errs15 === errors;
451
+ if (valid13) {
452
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
453
+ if (vErrors === null) {
454
+ vErrors = [err8];
455
+ } else {
456
+ vErrors.push(err8);
457
+ }
458
+ errors++;
459
+ } else {
460
+ errors = _errs14;
461
+ if (vErrors !== null) {
462
+ if (_errs14) {
463
+ vErrors.length = _errs14;
464
+ } else {
465
+ vErrors = null;
466
+ }
467
+ }
468
+ }
469
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
470
+ if (data2.at !== void 0) {
471
+ const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
472
+ if (vErrors === null) {
473
+ vErrors = [err9];
474
+ } else {
475
+ vErrors.push(err9);
476
+ }
477
+ errors++;
384
478
  }
385
479
  if (data2.into !== void 0) {
386
- const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
480
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
387
481
  if (vErrors === null) {
388
- vErrors = [err7];
482
+ vErrors = [err10];
389
483
  } else {
390
- vErrors.push(err7);
484
+ vErrors.push(err10);
391
485
  }
392
486
  errors++;
393
487
  }
394
488
  if (data2.color !== void 0) {
395
- const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
489
+ const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
396
490
  if (vErrors === null) {
397
- vErrors = [err8];
491
+ vErrors = [err11];
398
492
  } else {
399
- vErrors.push(err8);
493
+ vErrors.push(err11);
400
494
  }
401
495
  errors++;
402
496
  }
@@ -469,34 +563,79 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
469
563
  }
470
564
  }
471
565
  }
566
+ const _errs10 = errors;
567
+ const _errs11 = errors;
568
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
569
+ if (data2.type === void 0 && ("type")) {
570
+ const err3 = {};
571
+ if (vErrors === null) {
572
+ vErrors = [err3];
573
+ } else {
574
+ vErrors.push(err3);
575
+ }
576
+ errors++;
577
+ } else {
578
+ if (data2.type !== void 0) {
579
+ let data4 = data2.type;
580
+ if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
581
+ const err4 = {};
582
+ if (vErrors === null) {
583
+ vErrors = [err4];
584
+ } else {
585
+ vErrors.push(err4);
586
+ }
587
+ errors++;
588
+ }
589
+ }
590
+ }
591
+ }
592
+ var valid10 = _errs11 === errors;
593
+ if (valid10) {
594
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
595
+ if (vErrors === null) {
596
+ vErrors = [err5];
597
+ } else {
598
+ vErrors.push(err5);
599
+ }
600
+ errors++;
601
+ } else {
602
+ errors = _errs10;
603
+ if (vErrors !== null) {
604
+ if (_errs10) {
605
+ vErrors.length = _errs10;
606
+ } else {
607
+ vErrors = null;
608
+ }
609
+ }
610
+ }
472
611
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
473
612
  if (data2.type !== void 0) {
474
- let data4 = data2.type;
475
- const _errs9 = errors;
476
- const _errs10 = errors;
477
- if (!(data4 === "commit" || data4 === "branch")) {
478
- const err3 = {};
613
+ let data5 = data2.type;
614
+ const _errs14 = errors;
615
+ const _errs15 = errors;
616
+ if (!(data5 === "commit" || data5 === "branch")) {
617
+ const err6 = {};
479
618
  if (vErrors === null) {
480
- vErrors = [err3];
619
+ vErrors = [err6];
481
620
  } else {
482
- vErrors.push(err3);
621
+ vErrors.push(err6);
483
622
  }
484
623
  errors++;
485
624
  }
486
- var valid10 = _errs10 === errors;
487
- if (valid10) {
488
- const err4 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
625
+ var valid13 = _errs15 === errors;
626
+ if (valid13) {
627
+ const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
489
628
  if (vErrors === null) {
490
- vErrors = [err4];
629
+ vErrors = [err7];
491
630
  } else {
492
- vErrors.push(err4);
631
+ vErrors.push(err7);
493
632
  }
494
633
  errors++;
495
634
  } else {
496
- errors = _errs9;
635
+ errors = _errs14;
497
636
  if (vErrors !== null) {
498
- if (_errs9) {
499
- vErrors.length = _errs9;
637
+ if (_errs14) {
638
+ vErrors.length = _errs14;
500
639
  } else {
501
640
  vErrors = null;
502
641
  }
@@ -572,34 +711,79 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
572
711
  }
573
712
  }
574
713
  }
714
+ const _errs9 = errors;
715
+ const _errs10 = errors;
716
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
717
+ if (data2.type === void 0 && ("type")) {
718
+ const err3 = {};
719
+ if (vErrors === null) {
720
+ vErrors = [err3];
721
+ } else {
722
+ vErrors.push(err3);
723
+ }
724
+ errors++;
725
+ } else {
726
+ if (data2.type !== void 0) {
727
+ let data4 = data2.type;
728
+ if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
729
+ const err4 = {};
730
+ if (vErrors === null) {
731
+ vErrors = [err4];
732
+ } else {
733
+ vErrors.push(err4);
734
+ }
735
+ errors++;
736
+ }
737
+ }
738
+ }
739
+ }
740
+ var valid10 = _errs10 === errors;
741
+ if (valid10) {
742
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
743
+ if (vErrors === null) {
744
+ vErrors = [err5];
745
+ } else {
746
+ vErrors.push(err5);
747
+ }
748
+ errors++;
749
+ } else {
750
+ errors = _errs9;
751
+ if (vErrors !== null) {
752
+ if (_errs9) {
753
+ vErrors.length = _errs9;
754
+ } else {
755
+ vErrors = null;
756
+ }
757
+ }
758
+ }
575
759
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
576
760
  if (data2.type !== void 0) {
577
- let data4 = data2.type;
578
- const _errs8 = errors;
579
- const _errs9 = errors;
580
- if (!(data4 === "commit" || data4 === "branch")) {
581
- const err3 = {};
761
+ let data5 = data2.type;
762
+ const _errs13 = errors;
763
+ const _errs14 = errors;
764
+ if (!(data5 === "commit" || data5 === "branch")) {
765
+ const err6 = {};
582
766
  if (vErrors === null) {
583
- vErrors = [err3];
767
+ vErrors = [err6];
584
768
  } else {
585
- vErrors.push(err3);
769
+ vErrors.push(err6);
586
770
  }
587
771
  errors++;
588
772
  }
589
- var valid9 = _errs9 === errors;
590
- if (valid9) {
591
- const err4 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
773
+ var valid13 = _errs14 === errors;
774
+ if (valid13) {
775
+ const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
592
776
  if (vErrors === null) {
593
- vErrors = [err4];
777
+ vErrors = [err7];
594
778
  } else {
595
- vErrors.push(err4);
779
+ vErrors.push(err7);
596
780
  }
597
781
  errors++;
598
782
  } else {
599
- errors = _errs8;
783
+ errors = _errs13;
600
784
  if (vErrors !== null) {
601
- if (_errs8) {
602
- vErrors.length = _errs8;
785
+ if (_errs13) {
786
+ vErrors.length = _errs13;
603
787
  } else {
604
788
  vErrors = null;
605
789
  }
@@ -607,29 +791,29 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
607
791
  }
608
792
  }
609
793
  if (data2.at !== void 0) {
610
- const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
794
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
611
795
  if (vErrors === null) {
612
- vErrors = [err5];
796
+ vErrors = [err8];
613
797
  } else {
614
- vErrors.push(err5);
798
+ vErrors.push(err8);
615
799
  }
616
800
  errors++;
617
801
  }
618
802
  if (data2.into !== void 0) {
619
- const err6 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
803
+ const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
620
804
  if (vErrors === null) {
621
- vErrors = [err6];
805
+ vErrors = [err9];
622
806
  } else {
623
- vErrors.push(err6);
807
+ vErrors.push(err9);
624
808
  }
625
809
  errors++;
626
810
  }
627
811
  if (data2.color !== void 0) {
628
- const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
812
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
629
813
  if (vErrors === null) {
630
- vErrors = [err7];
814
+ vErrors = [err10];
631
815
  } else {
632
- vErrors.push(err7);
816
+ vErrors.push(err10);
633
817
  }
634
818
  errors++;
635
819
  }
@@ -643,67 +827,269 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
643
827
  validate22.errors = vErrors;
644
828
  return errors === 0;
645
829
  }
646
- var schema57 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
647
- var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
648
- var func3 = ucs2length;
649
- function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
830
+ function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
650
831
  let vErrors = null;
651
832
  let errors = 0;
652
- if (data && typeof data == "object" && !Array.isArray(data)) {
653
- if (data.id === void 0) {
654
- const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
655
- if (vErrors === null) {
656
- vErrors = [err0];
657
- } else {
658
- vErrors.push(err0);
659
- }
660
- errors++;
661
- }
662
- if (data.name === void 0) {
663
- const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
664
- if (vErrors === null) {
665
- vErrors = [err1];
666
- } else {
667
- vErrors.push(err1);
668
- }
669
- errors++;
670
- }
671
- for (const key0 in data) {
672
- if (!(key0 === "id" || key0 === "name" || key0 === "note" || key0 === "color" || key0 === "icon")) {
673
- const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
674
- if (vErrors === null) {
675
- vErrors = [err2];
676
- } else {
677
- vErrors.push(err2);
678
- }
679
- errors++;
680
- }
681
- }
682
- if (data.id !== void 0) {
683
- let data0 = data.id;
684
- if (typeof data0 === "string") {
685
- if (!pattern0.test(data0)) {
686
- const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
687
- if (vErrors === null) {
688
- vErrors = [err3];
689
- } else {
690
- vErrors.push(err3);
691
- }
692
- errors++;
693
- }
694
- } else {
695
- const err4 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
696
- if (vErrors === null) {
697
- vErrors = [err4];
698
- } else {
699
- vErrors.push(err4);
700
- }
701
- errors++;
702
- }
703
- }
704
- if (data.name !== void 0) {
705
- let data1 = data.name;
706
- if (typeof data1 === "string") {
833
+ if (Array.isArray(data)) {
834
+ const len0 = data.length;
835
+ for (let i0 = 0; i0 < len0; i0++) {
836
+ let data0 = data[i0];
837
+ if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
838
+ if (data0.events !== void 0) {
839
+ let data1 = data0.events;
840
+ if (Array.isArray(data1)) {
841
+ const len1 = data1.length;
842
+ for (let i1 = 0; i1 < len1; i1++) {
843
+ let data2 = data1[i1];
844
+ const _errs3 = errors;
845
+ const _errs4 = errors;
846
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
847
+ if (data2.type === void 0 && ("type")) {
848
+ const err0 = {};
849
+ if (vErrors === null) {
850
+ vErrors = [err0];
851
+ } else {
852
+ vErrors.push(err0);
853
+ }
854
+ errors++;
855
+ } else {
856
+ if (data2.type !== void 0) {
857
+ let data3 = data2.type;
858
+ if (!(data3 === "now" || data3 === "mark" || data3 === "span")) {
859
+ const err1 = {};
860
+ if (vErrors === null) {
861
+ vErrors = [err1];
862
+ } else {
863
+ vErrors.push(err1);
864
+ }
865
+ errors++;
866
+ }
867
+ }
868
+ }
869
+ }
870
+ var valid5 = _errs4 === errors;
871
+ if (valid5) {
872
+ const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/not", keyword: "not", params: {}, message: "must NOT be valid" };
873
+ if (vErrors === null) {
874
+ vErrors = [err2];
875
+ } else {
876
+ vErrors.push(err2);
877
+ }
878
+ errors++;
879
+ } else {
880
+ errors = _errs3;
881
+ if (vErrors !== null) {
882
+ if (_errs3) {
883
+ vErrors.length = _errs3;
884
+ } else {
885
+ vErrors = null;
886
+ }
887
+ }
888
+ }
889
+ const _errs8 = errors;
890
+ const _errs9 = errors;
891
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
892
+ if (data2.type === void 0 && ("type")) {
893
+ const err3 = {};
894
+ if (vErrors === null) {
895
+ vErrors = [err3];
896
+ } else {
897
+ vErrors.push(err3);
898
+ }
899
+ errors++;
900
+ } else {
901
+ if (data2.type !== void 0) {
902
+ let data4 = data2.type;
903
+ if (!(data4 === "leaf" || data4 === "node")) {
904
+ const err4 = {};
905
+ if (vErrors === null) {
906
+ vErrors = [err4];
907
+ } else {
908
+ vErrors.push(err4);
909
+ }
910
+ errors++;
911
+ }
912
+ }
913
+ }
914
+ }
915
+ var valid9 = _errs9 === errors;
916
+ if (valid9) {
917
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
918
+ if (vErrors === null) {
919
+ vErrors = [err5];
920
+ } else {
921
+ vErrors.push(err5);
922
+ }
923
+ errors++;
924
+ } else {
925
+ errors = _errs8;
926
+ if (vErrors !== null) {
927
+ if (_errs8) {
928
+ vErrors.length = _errs8;
929
+ } else {
930
+ vErrors = null;
931
+ }
932
+ }
933
+ }
934
+ const _errs14 = errors;
935
+ const _errs15 = errors;
936
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
937
+ if (data2.type === void 0 && ("type")) {
938
+ const err6 = {};
939
+ if (vErrors === null) {
940
+ vErrors = [err6];
941
+ } else {
942
+ vErrors.push(err6);
943
+ }
944
+ errors++;
945
+ } else {
946
+ if (data2.type !== void 0) {
947
+ let data5 = data2.type;
948
+ if (!(data5 === "edge" || data5 === "action")) {
949
+ const err7 = {};
950
+ if (vErrors === null) {
951
+ vErrors = [err7];
952
+ } else {
953
+ vErrors.push(err7);
954
+ }
955
+ errors++;
956
+ }
957
+ }
958
+ }
959
+ }
960
+ var valid13 = _errs15 === errors;
961
+ if (valid13) {
962
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notWiredEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
963
+ if (vErrors === null) {
964
+ vErrors = [err8];
965
+ } else {
966
+ vErrors.push(err8);
967
+ }
968
+ errors++;
969
+ } else {
970
+ errors = _errs14;
971
+ if (vErrors !== null) {
972
+ if (_errs14) {
973
+ vErrors.length = _errs14;
974
+ } else {
975
+ vErrors = null;
976
+ }
977
+ }
978
+ }
979
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
980
+ if (data2.type !== void 0) {
981
+ let data6 = data2.type;
982
+ const _errs18 = errors;
983
+ const _errs19 = errors;
984
+ if (!(data6 === "commit" || data6 === "branch")) {
985
+ const err9 = {};
986
+ if (vErrors === null) {
987
+ vErrors = [err9];
988
+ } else {
989
+ vErrors.push(err9);
990
+ }
991
+ errors++;
992
+ }
993
+ var valid16 = _errs19 === errors;
994
+ if (valid16) {
995
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
996
+ if (vErrors === null) {
997
+ vErrors = [err10];
998
+ } else {
999
+ vErrors.push(err10);
1000
+ }
1001
+ errors++;
1002
+ } else {
1003
+ errors = _errs18;
1004
+ if (vErrors !== null) {
1005
+ if (_errs18) {
1006
+ vErrors.length = _errs18;
1007
+ } else {
1008
+ vErrors = null;
1009
+ }
1010
+ }
1011
+ }
1012
+ }
1013
+ if (data2.color !== void 0) {
1014
+ const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
1015
+ if (vErrors === null) {
1016
+ vErrors = [err11];
1017
+ } else {
1018
+ vErrors.push(err11);
1019
+ }
1020
+ errors++;
1021
+ }
1022
+ }
1023
+ }
1024
+ }
1025
+ }
1026
+ }
1027
+ }
1028
+ }
1029
+ validate25.errors = vErrors;
1030
+ return errors === 0;
1031
+ }
1032
+ var schema79 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
1033
+ var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
1034
+ var func3 = ucs2length;
1035
+ function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1036
+ let vErrors = null;
1037
+ let errors = 0;
1038
+ if (data && typeof data == "object" && !Array.isArray(data)) {
1039
+ if (data.id === void 0) {
1040
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
1041
+ if (vErrors === null) {
1042
+ vErrors = [err0];
1043
+ } else {
1044
+ vErrors.push(err0);
1045
+ }
1046
+ errors++;
1047
+ }
1048
+ if (data.name === void 0) {
1049
+ const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
1050
+ if (vErrors === null) {
1051
+ vErrors = [err1];
1052
+ } else {
1053
+ vErrors.push(err1);
1054
+ }
1055
+ errors++;
1056
+ }
1057
+ for (const key0 in data) {
1058
+ if (!(key0 === "id" || key0 === "name" || key0 === "note" || key0 === "color" || key0 === "icon")) {
1059
+ const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
1060
+ if (vErrors === null) {
1061
+ vErrors = [err2];
1062
+ } else {
1063
+ vErrors.push(err2);
1064
+ }
1065
+ errors++;
1066
+ }
1067
+ }
1068
+ if (data.id !== void 0) {
1069
+ let data0 = data.id;
1070
+ if (typeof data0 === "string") {
1071
+ if (!pattern0.test(data0)) {
1072
+ const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
1073
+ if (vErrors === null) {
1074
+ vErrors = [err3];
1075
+ } else {
1076
+ vErrors.push(err3);
1077
+ }
1078
+ errors++;
1079
+ }
1080
+ } else {
1081
+ const err4 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1082
+ if (vErrors === null) {
1083
+ vErrors = [err4];
1084
+ } else {
1085
+ vErrors.push(err4);
1086
+ }
1087
+ errors++;
1088
+ }
1089
+ }
1090
+ if (data.name !== void 0) {
1091
+ let data1 = data.name;
1092
+ if (typeof data1 === "string") {
707
1093
  if (func3(data1) < 1) {
708
1094
  const err5 = { instancePath: instancePath + "/name", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
709
1095
  if (vErrors === null) {
@@ -748,7 +1134,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
748
1134
  if (data.color !== void 0) {
749
1135
  let data3 = data.color;
750
1136
  if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
751
- const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
1137
+ const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
752
1138
  if (vErrors === null) {
753
1139
  vErrors = [err9];
754
1140
  } else {
@@ -788,11 +1174,11 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
788
1174
  }
789
1175
  errors++;
790
1176
  }
791
- validate27.errors = vErrors;
1177
+ validate30.errors = vErrors;
792
1178
  return errors === 0;
793
1179
  }
794
1180
  var pattern3 = new RegExp("^(/|https?://)", "u");
795
- function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1181
+ function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
796
1182
  let vErrors = null;
797
1183
  let errors = 0;
798
1184
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -894,7 +1280,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
894
1280
  if (data.color !== void 0) {
895
1281
  let data3 = data.color;
896
1282
  if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
897
- const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
1283
+ const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
898
1284
  if (vErrors === null) {
899
1285
  vErrors = [err9];
900
1286
  } else {
@@ -978,11 +1364,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
978
1364
  }
979
1365
  errors++;
980
1366
  }
981
- validate29.errors = vErrors;
1367
+ validate32.errors = vErrors;
982
1368
  return errors === 0;
983
1369
  }
984
1370
  var pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");
985
- function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1371
+ function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
986
1372
  let vErrors = null;
987
1373
  let errors = 0;
988
1374
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1068,10 +1454,10 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
1068
1454
  }
1069
1455
  errors++;
1070
1456
  }
1071
- validate32.errors = vErrors;
1457
+ validate35.errors = vErrors;
1072
1458
  return errors === 0;
1073
1459
  }
1074
- function validate31(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1460
+ function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1075
1461
  let vErrors = null;
1076
1462
  let errors = 0;
1077
1463
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1185,8 +1571,8 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
1185
1571
  }
1186
1572
  const len1 = data3.length;
1187
1573
  for (let i1 = 0; i1 < len1; i1++) {
1188
- if (!validate32(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
1189
- vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
1574
+ if (!validate35(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
1575
+ vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
1190
1576
  errors = vErrors.length;
1191
1577
  }
1192
1578
  }
@@ -1209,10 +1595,10 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
1209
1595
  }
1210
1596
  errors++;
1211
1597
  }
1212
- validate31.errors = vErrors;
1598
+ validate34.errors = vErrors;
1213
1599
  return errors === 0;
1214
1600
  }
1215
- function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1601
+ function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1216
1602
  let vErrors = null;
1217
1603
  let errors = 0;
1218
1604
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1298,13 +1684,13 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
1298
1684
  }
1299
1685
  errors++;
1300
1686
  }
1301
- validate36.errors = vErrors;
1687
+ validate39.errors = vErrors;
1302
1688
  return errors === 0;
1303
1689
  }
1304
- var schema80 = { "oneOf": [{ "description": "\u7DDA\u3002\u904B\u3076\u7269\u3092\u8F09\u305B\u3066\u9001\u308B\u5074\u304B\u3089\u53D7\u3051\u308B\u5074\u3078\u8D70\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "carry"], "properties": { "type": { "const": "edge" }, "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" }, "carry": { "$ref": "#/definitions/carry" }, "labelSide": { "description": "\u7DDA\u306E\u540D\u524D\u3092\u7F6E\u304F\u5074 (\u5BC4\u305B\u306E\u6307\u793A)", "enum": ["above", "below", "left", "right"] }, "at": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u7DDA\u3092\u5F15\u304F\u5217\u306E\u76EE\u76DB\u308A", "$ref": "#/definitions/unit" }, "into": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u53D7\u3051\u308B\u7BB1\u3092\u9078\u3076\u5217\u306E\u76EE\u76DB\u308A\u3002\u66F8\u304B\u306A\u3051\u308C\u3070 at \u306E\u5217", "$ref": "#/definitions/unit" } } }, { "description": "\u7BB1\u306E\u4E2D\u306E\u51E6\u7406", "type": "object", "additionalProperties": false, "required": ["type", "box", "label"], "properties": { "type": { "const": "action" }, "box": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } }, { "description": "\u7BB1\u306E\u4E0B\u306E\u5C0F\u3055\u306A\u5B57\u306E\u66F8\u304D\u63DB\u3048", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "swap" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" }, "color": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7BC0\u76EE\u306E\u4E38\u306E\u8272", "$ref": "#/definitions/color" } } }, { "description": "commit \u3092\u7A4D\u3080\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u7A4D\u3093\u3060\u679D\u306E\u672D\u3068\u3001\u305D\u306E\u679D\u3092\u6307\u3059 HEAD \u304C\u9032\u3080\u3002\u5F53\u3066\u76F4\u3057 (copy) \u306F\u679D\u306E\u672D\u3092\u52D5\u304B\u3055\u305A\u3001merge commit (merge) \u306F\u53D6\u308A\u8FBC\u3080\u679D\u306E\u5148\u7AEF\u3082\u89AA\u306B\u6301\u3064", "type": "object", "additionalProperties": false, "required": ["type", "id", "branch"], "properties": { "type": { "const": "commit" }, "id": { "$ref": "#/definitions/id" }, "branch": { "$ref": "#/definitions/id" }, "copy": { "$ref": "#/definitions/id" }, "merge": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" }, "note": { "$ref": "#/definitions/text" } } }, { "description": "\u679D\u3092\u5207\u308B\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u679D\u306E\u672D\u3092 from \u306E commit \u3078\u7F6E\u304D\u3001HEAD \u3092\u305D\u306E\u679D\u3078\u79FB\u3059", "type": "object", "additionalProperties": false, "required": ["type", "branch", "from"], "properties": { "type": { "const": "branch" }, "branch": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/id" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u4ECA\u306E\u6642\u523B\u306E\u91DD\u3092\u3001to \u306E\u76EE\u76DB\u308A\u306E\u7D42\u308F\u308A\u307E\u3067\u9032\u3081\u308B", "type": "object", "additionalProperties": false, "required": ["type", "to"], "properties": { "type": { "const": "now" }, "to": { "$ref": "#/definitions/unit" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u5370\u306E\u5217 row \u306E\u3001from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u8272\u3092\u5909\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "row", "from", "to", "color"], "properties": { "type": { "const": "mark" }, "row": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306B\u3001\u62EC\u5F27\u3068\u5B57\u3092\u51FA\u3059\u3002shape \u304C box \u306A\u3089\u5370\u306E\u5217\u3092\u56F2\u307F\u3001\u5B57\u3092\u7E01\u306E\u672D\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "text"], "properties": { "type": { "const": "span" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "text": { "$ref": "#/definitions/text" }, "shape": { "enum": ["box"] }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u8449\u3092\u51FA\u3059\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u8449\u306E\u7BB1\u304C\u73FE\u308C\u308B\u3002hash \u3092\u66F8\u304F\u3068\u7BB1\u306B\u5024\u3092\u51FA\u3057\u3001\u540D\u672D\u3092\u8449\u306E\u4E0B\u306E\u672D\u306B\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["type", "id"], "properties": { "type": { "const": "leaf" }, "id": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "1 \u3064\u4EE5\u4E0A\u306E\u5B50\u304B\u3089\u89AA\u3092\u7D44\u3080\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u89AA\u306E\u7BB1\u3068\u3001\u5B50\u304B\u3089\u89AA\u3078\u306E\u6728\u306E\u7DDA\u304C\u73FE\u308C\u308B", "type": "object", "additionalProperties": false, "required": ["type", "id", "children"], "properties": { "type": { "const": "node" }, "id": { "$ref": "#/definitions/id" }, "children": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "\u4E2D\u8EAB\u306E\u5E2F\u306E\u6B04\u306E\u5024\u3068\u672D", "type": "object", "additionalProperties": false, "required": ["type", "field"], "anyOf": [{ "required": ["value"] }, { "required": ["tag"] }], "properties": { "type": { "const": "strip" }, "field": { "$ref": "#/definitions/text" }, "value": { "$ref": "#/definitions/text" }, "tag": { "$ref": "#/definitions/text" } } }] };
1690
+ var schema102 = { "oneOf": [{ "description": "\u7DDA\u3002\u904B\u3076\u7269\u3092\u8F09\u305B\u3066\u9001\u308B\u5074\u304B\u3089\u53D7\u3051\u308B\u5074\u3078\u8D70\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "carry"], "properties": { "type": { "const": "edge" }, "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" }, "carry": { "$ref": "#/definitions/carry" }, "labelSide": { "description": "\u7DDA\u306E\u540D\u524D\u3092\u7F6E\u304F\u5074 (\u5BC4\u305B\u306E\u6307\u793A)", "enum": ["above", "below", "left", "right"] }, "at": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u7DDA\u3092\u5F15\u304F\u5217\u306E\u76EE\u76DB\u308A", "$ref": "#/definitions/unit" }, "into": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u53D7\u3051\u308B\u7BB1\u3092\u9078\u3076\u5217\u306E\u76EE\u76DB\u308A\u3002\u66F8\u304B\u306A\u3051\u308C\u3070 at \u306E\u5217", "$ref": "#/definitions/unit" } } }, { "description": "\u7BB1\u306E\u4E2D\u306E\u51E6\u7406", "type": "object", "additionalProperties": false, "required": ["type", "box", "label"], "properties": { "type": { "const": "action" }, "box": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } }, { "description": "\u7BB1\u306E\u4E0B\u306E\u5C0F\u3055\u306A\u5B57\u306E\u66F8\u304D\u63DB\u3048", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "swap" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" }, "color": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7BC0\u76EE\u306E\u4E38\u306E\u8272", "$ref": "#/definitions/color" } } }, { "description": "commit \u3092\u7A4D\u3080\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u7A4D\u3093\u3060\u679D\u306E\u672D\u3068\u3001\u305D\u306E\u679D\u3092\u6307\u3059 HEAD \u304C\u9032\u3080\u3002\u5F53\u3066\u76F4\u3057 (copy) \u306F\u679D\u306E\u672D\u3092\u52D5\u304B\u3055\u305A\u3001merge commit (merge) \u306F\u53D6\u308A\u8FBC\u3080\u679D\u306E\u5148\u7AEF\u3082\u89AA\u306B\u6301\u3064", "type": "object", "additionalProperties": false, "required": ["type", "id", "branch"], "properties": { "type": { "const": "commit" }, "id": { "$ref": "#/definitions/id" }, "branch": { "$ref": "#/definitions/id" }, "copy": { "$ref": "#/definitions/id" }, "merge": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" }, "note": { "$ref": "#/definitions/text" } } }, { "description": "\u679D\u3092\u5207\u308B\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u679D\u306E\u672D\u3092 from \u306E commit \u3078\u7F6E\u304D\u3001HEAD \u3092\u305D\u306E\u679D\u3078\u79FB\u3059", "type": "object", "additionalProperties": false, "required": ["type", "branch", "from"], "properties": { "type": { "const": "branch" }, "branch": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/id" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u4ECA\u306E\u6642\u523B\u306E\u91DD\u3092\u3001to \u306E\u76EE\u76DB\u308A\u306E\u7D42\u308F\u308A\u307E\u3067\u9032\u3081\u308B", "type": "object", "additionalProperties": false, "required": ["type", "to"], "properties": { "type": { "const": "now" }, "to": { "$ref": "#/definitions/unit" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u5370\u306E\u5217 row \u306E\u3001from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u8272\u3092\u5909\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "row", "from", "to", "color"], "properties": { "type": { "const": "mark" }, "row": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306B\u3001\u62EC\u5F27\u3068\u5B57\u3092\u51FA\u3059\u3002shape \u304C box \u306A\u3089\u5370\u306E\u5217\u3092\u56F2\u307F\u3001\u5B57\u3092\u7E01\u306E\u672D\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "text"], "properties": { "type": { "const": "span" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "text": { "$ref": "#/definitions/text" }, "shape": { "enum": ["box"] }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u8449\u3092\u51FA\u3059\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u8449\u306E\u7BB1\u304C\u73FE\u308C\u308B\u3002hash \u3092\u66F8\u304F\u3068\u7BB1\u306B\u5024\u3092\u51FA\u3057\u3001\u540D\u672D\u3092\u8449\u306E\u4E0B\u306E\u672D\u306B\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["type", "id"], "properties": { "type": { "const": "leaf" }, "id": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "1 \u3064\u4EE5\u4E0A\u306E\u5B50\u304B\u3089\u89AA\u3092\u7D44\u3080\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u89AA\u306E\u7BB1\u3068\u3001\u5B50\u304B\u3089\u89AA\u3078\u306E\u6728\u306E\u7DDA\u304C\u73FE\u308C\u308B", "type": "object", "additionalProperties": false, "required": ["type", "id", "children"], "properties": { "type": { "const": "node" }, "id": { "$ref": "#/definitions/id" }, "children": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "\u5217\u306E box \u306E\u4E26\u3073\u3092 items \u306B\u66F8\u304D\u63DB\u3048\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u30C1\u30C3\u30D7\u306F\u524D\u306B\u5C45\u305F\u5217\u304B\u3089\u6ED1\u308A\u3001\u3069\u306E\u5217\u306B\u3082\u5C45\u306A\u304B\u3063\u305F\u30C1\u30C3\u30D7\u306F\u5F3E\u3093\u3067\u73FE\u308C\u3001\u5217\u304B\u3089\u5916\u308C\u305F\u30C1\u30C3\u30D7\u306F\u6D88\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "items"], "properties": { "type": { "const": "line" }, "box": { "$ref": "#/definitions/id" }, "items": { "type": "array", "minItems": 1, "maxItems": 12, "items": { "$ref": "#/definitions/id" } } } }, { "description": "\u5217 box \u306B\u5C01\u3092\u3057\u3066\u3001\u30C1\u30C3\u30D7\u3092\u96A0\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "seal" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u5C01\u3092\u958B\u3051\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "open" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u3092\u9078\u3076\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u5217\u306E\u7E01\u306B\u8272\u304C\u4ED8\u304D\u3001\u307B\u304B\u306E\u5217\u304C\u8584\u304F\u306A\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "pick" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u53F3\u306B text \u306E\u672D\u3092\u62BC\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "stamp" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" } } }, { "description": "\u4E2D\u8EAB\u306E\u5E2F\u306E\u6B04\u306E\u5024\u3068\u672D", "type": "object", "additionalProperties": false, "required": ["type", "field"], "anyOf": [{ "required": ["value"] }, { "required": ["tag"] }], "properties": { "type": { "const": "strip" }, "field": { "$ref": "#/definitions/text" }, "value": { "$ref": "#/definitions/text" }, "tag": { "$ref": "#/definitions/text" } } }] };
1305
1691
  var pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");
1306
- var schema84 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
1307
- function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1692
+ var schema106 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
1693
+ function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1308
1694
  let vErrors = null;
1309
1695
  let errors = 0;
1310
1696
  const _errs1 = errors;
@@ -1430,7 +1816,7 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
1430
1816
  if (data.kind !== void 0) {
1431
1817
  let data1 = data.kind;
1432
1818
  if (!(data1 === "envelope" || data1 === "tag" || data1 === "coin" || data1 === "none")) {
1433
- const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema84.properties.kind.enum }, message: "must be equal to one of the allowed values" };
1819
+ const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema106.properties.kind.enum }, message: "must be equal to one of the allowed values" };
1434
1820
  if (vErrors === null) {
1435
1821
  vErrors = [err8];
1436
1822
  } else {
@@ -1470,10 +1856,10 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
1470
1856
  }
1471
1857
  errors++;
1472
1858
  }
1473
- validate39.errors = vErrors;
1859
+ validate42.errors = vErrors;
1474
1860
  return errors === 0;
1475
1861
  }
1476
- function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1862
+ function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1477
1863
  let vErrors = null;
1478
1864
  let errors = 0;
1479
1865
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1615,15 +2001,15 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
1615
2001
  }
1616
2002
  }
1617
2003
  if (data.carry !== void 0) {
1618
- if (!validate39(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
1619
- vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
2004
+ if (!validate42(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
2005
+ vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
1620
2006
  errors = vErrors.length;
1621
2007
  }
1622
2008
  }
1623
2009
  if (data.labelSide !== void 0) {
1624
2010
  let data5 = data.labelSide;
1625
2011
  if (!(data5 === "above" || data5 === "below" || data5 === "left" || data5 === "right")) {
1626
- const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues: schema80.oneOf[0].properties.labelSide.enum }, message: "must be equal to one of the allowed values" };
2012
+ const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues: schema102.oneOf[0].properties.labelSide.enum }, message: "must be equal to one of the allowed values" };
1627
2013
  if (vErrors === null) {
1628
2014
  vErrors = [err13];
1629
2015
  } else {
@@ -1889,7 +2275,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
1889
2275
  if (data.color !== void 0) {
1890
2276
  let data14 = data.color;
1891
2277
  if (!(data14 === "blue" || data14 === "amber" || data14 === "green" || data14 === "violet" || data14 === "rose" || data14 === "slate" || data14 === "coin")) {
1892
- const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
2278
+ const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
1893
2279
  if (vErrors === null) {
1894
2280
  vErrors = [err38];
1895
2281
  } else {
@@ -2417,7 +2803,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
2417
2803
  if (data.color !== void 0) {
2418
2804
  let data31 = data.color;
2419
2805
  if (!(data31 === "blue" || data31 === "amber" || data31 === "green" || data31 === "violet" || data31 === "rose" || data31 === "slate" || data31 === "coin")) {
2420
- const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
2806
+ const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
2421
2807
  if (vErrors === null) {
2422
2808
  vErrors = [err88];
2423
2809
  } else {
@@ -2565,7 +2951,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
2565
2951
  }
2566
2952
  if (data.shape !== void 0) {
2567
2953
  if (!(data.shape === "box")) {
2568
- const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues: schema80.oneOf[7].properties.shape.enum }, message: "must be equal to one of the allowed values" };
2954
+ const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues: schema102.oneOf[7].properties.shape.enum }, message: "must be equal to one of the allowed values" };
2569
2955
  if (vErrors === null) {
2570
2956
  vErrors = [err102];
2571
2957
  } else {
@@ -2577,7 +2963,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
2577
2963
  if (data.color !== void 0) {
2578
2964
  let data37 = data.color;
2579
2965
  if (!(data37 === "blue" || data37 === "amber" || data37 === "green" || data37 === "violet" || data37 === "rose" || data37 === "slate" || data37 === "coin")) {
2580
- const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
2966
+ const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
2581
2967
  if (vErrors === null) {
2582
2968
  vErrors = [err103];
2583
2969
  } else {
@@ -2697,194 +3083,653 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
2697
3083
  if (vErrors === null) {
2698
3084
  vErrors = [err114];
2699
3085
  } else {
2700
- vErrors.push(err114);
3086
+ vErrors.push(err114);
3087
+ }
3088
+ errors++;
3089
+ }
3090
+ if (data.id === void 0) {
3091
+ const err115 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
3092
+ if (vErrors === null) {
3093
+ vErrors = [err115];
3094
+ } else {
3095
+ vErrors.push(err115);
3096
+ }
3097
+ errors++;
3098
+ }
3099
+ if (data.children === void 0) {
3100
+ const err116 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "children" }, message: "must have required property 'children'" };
3101
+ if (vErrors === null) {
3102
+ vErrors = [err116];
3103
+ } else {
3104
+ vErrors.push(err116);
3105
+ }
3106
+ errors++;
3107
+ }
3108
+ for (const key9 in data) {
3109
+ if (!(key9 === "type" || key9 === "id" || key9 === "children" || key9 === "hash")) {
3110
+ const err117 = { instancePath, schemaPath: "#/oneOf/9/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key9 }, message: "must NOT have additional properties" };
3111
+ if (vErrors === null) {
3112
+ vErrors = [err117];
3113
+ } else {
3114
+ vErrors.push(err117);
3115
+ }
3116
+ errors++;
3117
+ }
3118
+ }
3119
+ if (data.type !== void 0) {
3120
+ if ("node" !== data.type) {
3121
+ const err118 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/9/properties/type/const", keyword: "const", params: { allowedValue: "node" }, message: "must be equal to constant" };
3122
+ if (vErrors === null) {
3123
+ vErrors = [err118];
3124
+ } else {
3125
+ vErrors.push(err118);
3126
+ }
3127
+ errors++;
3128
+ }
3129
+ }
3130
+ if (data.id !== void 0) {
3131
+ let data42 = data.id;
3132
+ if (typeof data42 === "string") {
3133
+ if (!pattern0.test(data42)) {
3134
+ const err119 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3135
+ if (vErrors === null) {
3136
+ vErrors = [err119];
3137
+ } else {
3138
+ vErrors.push(err119);
3139
+ }
3140
+ errors++;
3141
+ }
3142
+ } else {
3143
+ const err120 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3144
+ if (vErrors === null) {
3145
+ vErrors = [err120];
3146
+ } else {
3147
+ vErrors.push(err120);
3148
+ }
3149
+ errors++;
3150
+ }
3151
+ }
3152
+ if (data.children !== void 0) {
3153
+ let data43 = data.children;
3154
+ if (Array.isArray(data43)) {
3155
+ if (data43.length < 1) {
3156
+ const err121 = { instancePath: instancePath + "/children", schemaPath: "#/oneOf/9/properties/children/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
3157
+ if (vErrors === null) {
3158
+ vErrors = [err121];
3159
+ } else {
3160
+ vErrors.push(err121);
3161
+ }
3162
+ errors++;
3163
+ }
3164
+ const len0 = data43.length;
3165
+ for (let i0 = 0; i0 < len0; i0++) {
3166
+ let data44 = data43[i0];
3167
+ if (typeof data44 === "string") {
3168
+ if (!pattern0.test(data44)) {
3169
+ const err122 = { instancePath: instancePath + "/children/" + i0, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3170
+ if (vErrors === null) {
3171
+ vErrors = [err122];
3172
+ } else {
3173
+ vErrors.push(err122);
3174
+ }
3175
+ errors++;
3176
+ }
3177
+ } else {
3178
+ const err123 = { instancePath: instancePath + "/children/" + i0, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3179
+ if (vErrors === null) {
3180
+ vErrors = [err123];
3181
+ } else {
3182
+ vErrors.push(err123);
3183
+ }
3184
+ errors++;
3185
+ }
3186
+ }
3187
+ } else {
3188
+ const err124 = { instancePath: instancePath + "/children", schemaPath: "#/oneOf/9/properties/children/type", keyword: "type", params: { type: "array" }, message: "must be array" };
3189
+ if (vErrors === null) {
3190
+ vErrors = [err124];
3191
+ } else {
3192
+ vErrors.push(err124);
3193
+ }
3194
+ errors++;
3195
+ }
3196
+ }
3197
+ if (data.hash !== void 0) {
3198
+ let data45 = data.hash;
3199
+ if (typeof data45 === "string") {
3200
+ if (!pattern14.test(data45)) {
3201
+ const err125 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{4,40}$" }, message: 'must match pattern "^[0-9a-f]{4,40}$"' };
3202
+ if (vErrors === null) {
3203
+ vErrors = [err125];
3204
+ } else {
3205
+ vErrors.push(err125);
3206
+ }
3207
+ errors++;
3208
+ }
3209
+ } else {
3210
+ const err126 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3211
+ if (vErrors === null) {
3212
+ vErrors = [err126];
3213
+ } else {
3214
+ vErrors.push(err126);
3215
+ }
3216
+ errors++;
3217
+ }
3218
+ }
3219
+ } else {
3220
+ const err127 = { instancePath, schemaPath: "#/oneOf/9/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3221
+ if (vErrors === null) {
3222
+ vErrors = [err127];
3223
+ } else {
3224
+ vErrors.push(err127);
3225
+ }
3226
+ errors++;
3227
+ }
3228
+ } else if (tag0 === "line") {
3229
+ if (data && typeof data == "object" && !Array.isArray(data)) {
3230
+ if (data.type === void 0) {
3231
+ const err128 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3232
+ if (vErrors === null) {
3233
+ vErrors = [err128];
3234
+ } else {
3235
+ vErrors.push(err128);
3236
+ }
3237
+ errors++;
3238
+ }
3239
+ if (data.box === void 0) {
3240
+ const err129 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
3241
+ if (vErrors === null) {
3242
+ vErrors = [err129];
3243
+ } else {
3244
+ vErrors.push(err129);
3245
+ }
3246
+ errors++;
3247
+ }
3248
+ if (data.items === void 0) {
3249
+ const err130 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
3250
+ if (vErrors === null) {
3251
+ vErrors = [err130];
3252
+ } else {
3253
+ vErrors.push(err130);
3254
+ }
3255
+ errors++;
3256
+ }
3257
+ for (const key10 in data) {
3258
+ if (!(key10 === "type" || key10 === "box" || key10 === "items")) {
3259
+ const err131 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
3260
+ if (vErrors === null) {
3261
+ vErrors = [err131];
3262
+ } else {
3263
+ vErrors.push(err131);
3264
+ }
3265
+ errors++;
3266
+ }
3267
+ }
3268
+ if (data.type !== void 0) {
3269
+ if ("line" !== data.type) {
3270
+ const err132 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "line" }, message: "must be equal to constant" };
3271
+ if (vErrors === null) {
3272
+ vErrors = [err132];
3273
+ } else {
3274
+ vErrors.push(err132);
3275
+ }
3276
+ errors++;
3277
+ }
3278
+ }
3279
+ if (data.box !== void 0) {
3280
+ let data47 = data.box;
3281
+ if (typeof data47 === "string") {
3282
+ if (!pattern0.test(data47)) {
3283
+ const err133 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3284
+ if (vErrors === null) {
3285
+ vErrors = [err133];
3286
+ } else {
3287
+ vErrors.push(err133);
3288
+ }
3289
+ errors++;
3290
+ }
3291
+ } else {
3292
+ const err134 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3293
+ if (vErrors === null) {
3294
+ vErrors = [err134];
3295
+ } else {
3296
+ vErrors.push(err134);
3297
+ }
3298
+ errors++;
3299
+ }
3300
+ }
3301
+ if (data.items !== void 0) {
3302
+ let data48 = data.items;
3303
+ if (Array.isArray(data48)) {
3304
+ if (data48.length > 12) {
3305
+ const err135 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/maxItems", keyword: "maxItems", params: { limit: 12 }, message: "must NOT have more than 12 items" };
3306
+ if (vErrors === null) {
3307
+ vErrors = [err135];
3308
+ } else {
3309
+ vErrors.push(err135);
3310
+ }
3311
+ errors++;
3312
+ }
3313
+ if (data48.length < 1) {
3314
+ const err136 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
3315
+ if (vErrors === null) {
3316
+ vErrors = [err136];
3317
+ } else {
3318
+ vErrors.push(err136);
3319
+ }
3320
+ errors++;
3321
+ }
3322
+ const len1 = data48.length;
3323
+ for (let i1 = 0; i1 < len1; i1++) {
3324
+ let data49 = data48[i1];
3325
+ if (typeof data49 === "string") {
3326
+ if (!pattern0.test(data49)) {
3327
+ const err137 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3328
+ if (vErrors === null) {
3329
+ vErrors = [err137];
3330
+ } else {
3331
+ vErrors.push(err137);
3332
+ }
3333
+ errors++;
3334
+ }
3335
+ } else {
3336
+ const err138 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3337
+ if (vErrors === null) {
3338
+ vErrors = [err138];
3339
+ } else {
3340
+ vErrors.push(err138);
3341
+ }
3342
+ errors++;
3343
+ }
3344
+ }
3345
+ } else {
3346
+ const err139 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
3347
+ if (vErrors === null) {
3348
+ vErrors = [err139];
3349
+ } else {
3350
+ vErrors.push(err139);
3351
+ }
3352
+ errors++;
3353
+ }
3354
+ }
3355
+ } else {
3356
+ const err140 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3357
+ if (vErrors === null) {
3358
+ vErrors = [err140];
3359
+ } else {
3360
+ vErrors.push(err140);
3361
+ }
3362
+ errors++;
3363
+ }
3364
+ } else if (tag0 === "seal") {
3365
+ if (data && typeof data == "object" && !Array.isArray(data)) {
3366
+ if (data.type === void 0) {
3367
+ const err141 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3368
+ if (vErrors === null) {
3369
+ vErrors = [err141];
3370
+ } else {
3371
+ vErrors.push(err141);
3372
+ }
3373
+ errors++;
3374
+ }
3375
+ if (data.box === void 0) {
3376
+ const err142 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
3377
+ if (vErrors === null) {
3378
+ vErrors = [err142];
3379
+ } else {
3380
+ vErrors.push(err142);
3381
+ }
3382
+ errors++;
3383
+ }
3384
+ for (const key11 in data) {
3385
+ if (!(key11 === "type" || key11 === "box")) {
3386
+ const err143 = { instancePath, schemaPath: "#/oneOf/11/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key11 }, message: "must NOT have additional properties" };
3387
+ if (vErrors === null) {
3388
+ vErrors = [err143];
3389
+ } else {
3390
+ vErrors.push(err143);
3391
+ }
3392
+ errors++;
3393
+ }
3394
+ }
3395
+ if (data.type !== void 0) {
3396
+ if ("seal" !== data.type) {
3397
+ const err144 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/11/properties/type/const", keyword: "const", params: { allowedValue: "seal" }, message: "must be equal to constant" };
3398
+ if (vErrors === null) {
3399
+ vErrors = [err144];
3400
+ } else {
3401
+ vErrors.push(err144);
3402
+ }
3403
+ errors++;
3404
+ }
3405
+ }
3406
+ if (data.box !== void 0) {
3407
+ let data51 = data.box;
3408
+ if (typeof data51 === "string") {
3409
+ if (!pattern0.test(data51)) {
3410
+ const err145 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3411
+ if (vErrors === null) {
3412
+ vErrors = [err145];
3413
+ } else {
3414
+ vErrors.push(err145);
3415
+ }
3416
+ errors++;
3417
+ }
3418
+ } else {
3419
+ const err146 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3420
+ if (vErrors === null) {
3421
+ vErrors = [err146];
3422
+ } else {
3423
+ vErrors.push(err146);
3424
+ }
3425
+ errors++;
3426
+ }
3427
+ }
3428
+ } else {
3429
+ const err147 = { instancePath, schemaPath: "#/oneOf/11/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3430
+ if (vErrors === null) {
3431
+ vErrors = [err147];
3432
+ } else {
3433
+ vErrors.push(err147);
3434
+ }
3435
+ errors++;
3436
+ }
3437
+ } else if (tag0 === "open") {
3438
+ if (data && typeof data == "object" && !Array.isArray(data)) {
3439
+ if (data.type === void 0) {
3440
+ const err148 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3441
+ if (vErrors === null) {
3442
+ vErrors = [err148];
3443
+ } else {
3444
+ vErrors.push(err148);
3445
+ }
3446
+ errors++;
3447
+ }
3448
+ if (data.box === void 0) {
3449
+ const err149 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
3450
+ if (vErrors === null) {
3451
+ vErrors = [err149];
3452
+ } else {
3453
+ vErrors.push(err149);
3454
+ }
3455
+ errors++;
3456
+ }
3457
+ for (const key12 in data) {
3458
+ if (!(key12 === "type" || key12 === "box")) {
3459
+ const err150 = { instancePath, schemaPath: "#/oneOf/12/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key12 }, message: "must NOT have additional properties" };
3460
+ if (vErrors === null) {
3461
+ vErrors = [err150];
3462
+ } else {
3463
+ vErrors.push(err150);
3464
+ }
3465
+ errors++;
3466
+ }
3467
+ }
3468
+ if (data.type !== void 0) {
3469
+ if ("open" !== data.type) {
3470
+ const err151 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/12/properties/type/const", keyword: "const", params: { allowedValue: "open" }, message: "must be equal to constant" };
3471
+ if (vErrors === null) {
3472
+ vErrors = [err151];
3473
+ } else {
3474
+ vErrors.push(err151);
3475
+ }
3476
+ errors++;
3477
+ }
3478
+ }
3479
+ if (data.box !== void 0) {
3480
+ let data53 = data.box;
3481
+ if (typeof data53 === "string") {
3482
+ if (!pattern0.test(data53)) {
3483
+ const err152 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3484
+ if (vErrors === null) {
3485
+ vErrors = [err152];
3486
+ } else {
3487
+ vErrors.push(err152);
3488
+ }
3489
+ errors++;
3490
+ }
3491
+ } else {
3492
+ const err153 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3493
+ if (vErrors === null) {
3494
+ vErrors = [err153];
3495
+ } else {
3496
+ vErrors.push(err153);
3497
+ }
3498
+ errors++;
3499
+ }
3500
+ }
3501
+ } else {
3502
+ const err154 = { instancePath, schemaPath: "#/oneOf/12/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3503
+ if (vErrors === null) {
3504
+ vErrors = [err154];
3505
+ } else {
3506
+ vErrors.push(err154);
3507
+ }
3508
+ errors++;
3509
+ }
3510
+ } else if (tag0 === "pick") {
3511
+ if (data && typeof data == "object" && !Array.isArray(data)) {
3512
+ if (data.type === void 0) {
3513
+ const err155 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3514
+ if (vErrors === null) {
3515
+ vErrors = [err155];
3516
+ } else {
3517
+ vErrors.push(err155);
3518
+ }
3519
+ errors++;
3520
+ }
3521
+ if (data.box === void 0) {
3522
+ const err156 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
3523
+ if (vErrors === null) {
3524
+ vErrors = [err156];
3525
+ } else {
3526
+ vErrors.push(err156);
3527
+ }
3528
+ errors++;
3529
+ }
3530
+ for (const key13 in data) {
3531
+ if (!(key13 === "type" || key13 === "box")) {
3532
+ const err157 = { instancePath, schemaPath: "#/oneOf/13/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key13 }, message: "must NOT have additional properties" };
3533
+ if (vErrors === null) {
3534
+ vErrors = [err157];
3535
+ } else {
3536
+ vErrors.push(err157);
3537
+ }
3538
+ errors++;
3539
+ }
3540
+ }
3541
+ if (data.type !== void 0) {
3542
+ if ("pick" !== data.type) {
3543
+ const err158 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/13/properties/type/const", keyword: "const", params: { allowedValue: "pick" }, message: "must be equal to constant" };
3544
+ if (vErrors === null) {
3545
+ vErrors = [err158];
3546
+ } else {
3547
+ vErrors.push(err158);
3548
+ }
3549
+ errors++;
3550
+ }
3551
+ }
3552
+ if (data.box !== void 0) {
3553
+ let data55 = data.box;
3554
+ if (typeof data55 === "string") {
3555
+ if (!pattern0.test(data55)) {
3556
+ const err159 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3557
+ if (vErrors === null) {
3558
+ vErrors = [err159];
3559
+ } else {
3560
+ vErrors.push(err159);
3561
+ }
3562
+ errors++;
3563
+ }
3564
+ } else {
3565
+ const err160 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3566
+ if (vErrors === null) {
3567
+ vErrors = [err160];
3568
+ } else {
3569
+ vErrors.push(err160);
3570
+ }
3571
+ errors++;
3572
+ }
3573
+ }
3574
+ } else {
3575
+ const err161 = { instancePath, schemaPath: "#/oneOf/13/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3576
+ if (vErrors === null) {
3577
+ vErrors = [err161];
3578
+ } else {
3579
+ vErrors.push(err161);
3580
+ }
3581
+ errors++;
3582
+ }
3583
+ } else if (tag0 === "stamp") {
3584
+ if (data && typeof data == "object" && !Array.isArray(data)) {
3585
+ if (data.type === void 0) {
3586
+ const err162 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3587
+ if (vErrors === null) {
3588
+ vErrors = [err162];
3589
+ } else {
3590
+ vErrors.push(err162);
2701
3591
  }
2702
3592
  errors++;
2703
3593
  }
2704
- if (data.id === void 0) {
2705
- const err115 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
3594
+ if (data.box === void 0) {
3595
+ const err163 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
2706
3596
  if (vErrors === null) {
2707
- vErrors = [err115];
3597
+ vErrors = [err163];
2708
3598
  } else {
2709
- vErrors.push(err115);
3599
+ vErrors.push(err163);
2710
3600
  }
2711
3601
  errors++;
2712
3602
  }
2713
- if (data.children === void 0) {
2714
- const err116 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "children" }, message: "must have required property 'children'" };
3603
+ if (data.text === void 0) {
3604
+ const err164 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
2715
3605
  if (vErrors === null) {
2716
- vErrors = [err116];
3606
+ vErrors = [err164];
2717
3607
  } else {
2718
- vErrors.push(err116);
3608
+ vErrors.push(err164);
2719
3609
  }
2720
3610
  errors++;
2721
3611
  }
2722
- for (const key9 in data) {
2723
- if (!(key9 === "type" || key9 === "id" || key9 === "children" || key9 === "hash")) {
2724
- const err117 = { instancePath, schemaPath: "#/oneOf/9/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key9 }, message: "must NOT have additional properties" };
3612
+ for (const key14 in data) {
3613
+ if (!(key14 === "type" || key14 === "box" || key14 === "text")) {
3614
+ const err165 = { instancePath, schemaPath: "#/oneOf/14/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key14 }, message: "must NOT have additional properties" };
2725
3615
  if (vErrors === null) {
2726
- vErrors = [err117];
3616
+ vErrors = [err165];
2727
3617
  } else {
2728
- vErrors.push(err117);
3618
+ vErrors.push(err165);
2729
3619
  }
2730
3620
  errors++;
2731
3621
  }
2732
3622
  }
2733
3623
  if (data.type !== void 0) {
2734
- if ("node" !== data.type) {
2735
- const err118 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/9/properties/type/const", keyword: "const", params: { allowedValue: "node" }, message: "must be equal to constant" };
2736
- if (vErrors === null) {
2737
- vErrors = [err118];
2738
- } else {
2739
- vErrors.push(err118);
2740
- }
2741
- errors++;
2742
- }
2743
- }
2744
- if (data.id !== void 0) {
2745
- let data42 = data.id;
2746
- if (typeof data42 === "string") {
2747
- if (!pattern0.test(data42)) {
2748
- const err119 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
2749
- if (vErrors === null) {
2750
- vErrors = [err119];
2751
- } else {
2752
- vErrors.push(err119);
2753
- }
2754
- errors++;
2755
- }
2756
- } else {
2757
- const err120 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3624
+ if ("stamp" !== data.type) {
3625
+ const err166 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/14/properties/type/const", keyword: "const", params: { allowedValue: "stamp" }, message: "must be equal to constant" };
2758
3626
  if (vErrors === null) {
2759
- vErrors = [err120];
3627
+ vErrors = [err166];
2760
3628
  } else {
2761
- vErrors.push(err120);
3629
+ vErrors.push(err166);
2762
3630
  }
2763
3631
  errors++;
2764
3632
  }
2765
3633
  }
2766
- if (data.children !== void 0) {
2767
- let data43 = data.children;
2768
- if (Array.isArray(data43)) {
2769
- if (data43.length < 1) {
2770
- const err121 = { instancePath: instancePath + "/children", schemaPath: "#/oneOf/9/properties/children/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
3634
+ if (data.box !== void 0) {
3635
+ let data57 = data.box;
3636
+ if (typeof data57 === "string") {
3637
+ if (!pattern0.test(data57)) {
3638
+ const err167 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
2771
3639
  if (vErrors === null) {
2772
- vErrors = [err121];
3640
+ vErrors = [err167];
2773
3641
  } else {
2774
- vErrors.push(err121);
3642
+ vErrors.push(err167);
2775
3643
  }
2776
3644
  errors++;
2777
3645
  }
2778
- const len0 = data43.length;
2779
- for (let i0 = 0; i0 < len0; i0++) {
2780
- let data44 = data43[i0];
2781
- if (typeof data44 === "string") {
2782
- if (!pattern0.test(data44)) {
2783
- const err122 = { instancePath: instancePath + "/children/" + i0, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
2784
- if (vErrors === null) {
2785
- vErrors = [err122];
2786
- } else {
2787
- vErrors.push(err122);
2788
- }
2789
- errors++;
2790
- }
2791
- } else {
2792
- const err123 = { instancePath: instancePath + "/children/" + i0, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2793
- if (vErrors === null) {
2794
- vErrors = [err123];
2795
- } else {
2796
- vErrors.push(err123);
2797
- }
2798
- errors++;
2799
- }
2800
- }
2801
3646
  } else {
2802
- const err124 = { instancePath: instancePath + "/children", schemaPath: "#/oneOf/9/properties/children/type", keyword: "type", params: { type: "array" }, message: "must be array" };
3647
+ const err168 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2803
3648
  if (vErrors === null) {
2804
- vErrors = [err124];
3649
+ vErrors = [err168];
2805
3650
  } else {
2806
- vErrors.push(err124);
3651
+ vErrors.push(err168);
2807
3652
  }
2808
3653
  errors++;
2809
3654
  }
2810
3655
  }
2811
- if (data.hash !== void 0) {
2812
- let data45 = data.hash;
2813
- if (typeof data45 === "string") {
2814
- if (!pattern14.test(data45)) {
2815
- const err125 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{4,40}$" }, message: 'must match pattern "^[0-9a-f]{4,40}$"' };
3656
+ if (data.text !== void 0) {
3657
+ let data58 = data.text;
3658
+ if (typeof data58 === "string") {
3659
+ if (func3(data58) < 1) {
3660
+ const err169 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2816
3661
  if (vErrors === null) {
2817
- vErrors = [err125];
3662
+ vErrors = [err169];
2818
3663
  } else {
2819
- vErrors.push(err125);
3664
+ vErrors.push(err169);
2820
3665
  }
2821
3666
  errors++;
2822
3667
  }
2823
3668
  } else {
2824
- const err126 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3669
+ const err170 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2825
3670
  if (vErrors === null) {
2826
- vErrors = [err126];
3671
+ vErrors = [err170];
2827
3672
  } else {
2828
- vErrors.push(err126);
3673
+ vErrors.push(err170);
2829
3674
  }
2830
3675
  errors++;
2831
3676
  }
2832
3677
  }
2833
3678
  } else {
2834
- const err127 = { instancePath, schemaPath: "#/oneOf/9/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3679
+ const err171 = { instancePath, schemaPath: "#/oneOf/14/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2835
3680
  if (vErrors === null) {
2836
- vErrors = [err127];
3681
+ vErrors = [err171];
2837
3682
  } else {
2838
- vErrors.push(err127);
3683
+ vErrors.push(err171);
2839
3684
  }
2840
3685
  errors++;
2841
3686
  }
2842
3687
  } else if (tag0 === "strip") {
2843
- const _errs142 = errors;
2844
- let valid56 = false;
2845
- const _errs143 = errors;
3688
+ const _errs185 = errors;
3689
+ let valid75 = false;
3690
+ const _errs186 = errors;
2846
3691
  if (data && typeof data == "object" && !Array.isArray(data)) {
2847
3692
  if (data.value === void 0) {
2848
- const err128 = { instancePath, schemaPath: "#/oneOf/10/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
3693
+ const err172 = { instancePath, schemaPath: "#/oneOf/15/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
2849
3694
  if (vErrors === null) {
2850
- vErrors = [err128];
3695
+ vErrors = [err172];
2851
3696
  } else {
2852
- vErrors.push(err128);
3697
+ vErrors.push(err172);
2853
3698
  }
2854
3699
  errors++;
2855
3700
  }
2856
3701
  }
2857
- var _valid0 = _errs143 === errors;
2858
- valid56 = valid56 || _valid0;
2859
- if (!valid56) {
2860
- const _errs144 = errors;
3702
+ var _valid0 = _errs186 === errors;
3703
+ valid75 = valid75 || _valid0;
3704
+ if (!valid75) {
3705
+ const _errs187 = errors;
2861
3706
  if (data && typeof data == "object" && !Array.isArray(data)) {
2862
3707
  if (data.tag === void 0) {
2863
- const err129 = { instancePath, schemaPath: "#/oneOf/10/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
3708
+ const err173 = { instancePath, schemaPath: "#/oneOf/15/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
2864
3709
  if (vErrors === null) {
2865
- vErrors = [err129];
3710
+ vErrors = [err173];
2866
3711
  } else {
2867
- vErrors.push(err129);
3712
+ vErrors.push(err173);
2868
3713
  }
2869
3714
  errors++;
2870
3715
  }
2871
3716
  }
2872
- var _valid0 = _errs144 === errors;
2873
- valid56 = valid56 || _valid0;
3717
+ var _valid0 = _errs187 === errors;
3718
+ valid75 = valid75 || _valid0;
2874
3719
  }
2875
- if (!valid56) {
2876
- const err130 = { instancePath, schemaPath: "#/oneOf/10/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
3720
+ if (!valid75) {
3721
+ const err174 = { instancePath, schemaPath: "#/oneOf/15/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2877
3722
  if (vErrors === null) {
2878
- vErrors = [err130];
3723
+ vErrors = [err174];
2879
3724
  } else {
2880
- vErrors.push(err130);
3725
+ vErrors.push(err174);
2881
3726
  }
2882
3727
  errors++;
2883
3728
  } else {
2884
- errors = _errs142;
3729
+ errors = _errs185;
2885
3730
  if (vErrors !== null) {
2886
- if (_errs142) {
2887
- vErrors.length = _errs142;
3731
+ if (_errs185) {
3732
+ vErrors.length = _errs185;
2888
3733
  } else {
2889
3734
  vErrors = null;
2890
3735
  }
@@ -2892,151 +3737,151 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
2892
3737
  }
2893
3738
  if (data && typeof data == "object" && !Array.isArray(data)) {
2894
3739
  if (data.type === void 0) {
2895
- const err131 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3740
+ const err175 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
2896
3741
  if (vErrors === null) {
2897
- vErrors = [err131];
3742
+ vErrors = [err175];
2898
3743
  } else {
2899
- vErrors.push(err131);
3744
+ vErrors.push(err175);
2900
3745
  }
2901
3746
  errors++;
2902
3747
  }
2903
3748
  if (data.field === void 0) {
2904
- const err132 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
3749
+ const err176 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
2905
3750
  if (vErrors === null) {
2906
- vErrors = [err132];
3751
+ vErrors = [err176];
2907
3752
  } else {
2908
- vErrors.push(err132);
3753
+ vErrors.push(err176);
2909
3754
  }
2910
3755
  errors++;
2911
3756
  }
2912
- for (const key10 in data) {
2913
- if (!(key10 === "type" || key10 === "field" || key10 === "value" || key10 === "tag")) {
2914
- const err133 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
3757
+ for (const key15 in data) {
3758
+ if (!(key15 === "type" || key15 === "field" || key15 === "value" || key15 === "tag")) {
3759
+ const err177 = { instancePath, schemaPath: "#/oneOf/15/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key15 }, message: "must NOT have additional properties" };
2915
3760
  if (vErrors === null) {
2916
- vErrors = [err133];
3761
+ vErrors = [err177];
2917
3762
  } else {
2918
- vErrors.push(err133);
3763
+ vErrors.push(err177);
2919
3764
  }
2920
3765
  errors++;
2921
3766
  }
2922
3767
  }
2923
3768
  if (data.type !== void 0) {
2924
3769
  if ("strip" !== data.type) {
2925
- const err134 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
3770
+ const err178 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/15/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
2926
3771
  if (vErrors === null) {
2927
- vErrors = [err134];
3772
+ vErrors = [err178];
2928
3773
  } else {
2929
- vErrors.push(err134);
3774
+ vErrors.push(err178);
2930
3775
  }
2931
3776
  errors++;
2932
3777
  }
2933
3778
  }
2934
3779
  if (data.field !== void 0) {
2935
- let data47 = data.field;
2936
- if (typeof data47 === "string") {
2937
- if (func3(data47) < 1) {
2938
- const err135 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
3780
+ let data60 = data.field;
3781
+ if (typeof data60 === "string") {
3782
+ if (func3(data60) < 1) {
3783
+ const err179 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2939
3784
  if (vErrors === null) {
2940
- vErrors = [err135];
3785
+ vErrors = [err179];
2941
3786
  } else {
2942
- vErrors.push(err135);
3787
+ vErrors.push(err179);
2943
3788
  }
2944
3789
  errors++;
2945
3790
  }
2946
3791
  } else {
2947
- const err136 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3792
+ const err180 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2948
3793
  if (vErrors === null) {
2949
- vErrors = [err136];
3794
+ vErrors = [err180];
2950
3795
  } else {
2951
- vErrors.push(err136);
3796
+ vErrors.push(err180);
2952
3797
  }
2953
3798
  errors++;
2954
3799
  }
2955
3800
  }
2956
3801
  if (data.value !== void 0) {
2957
- let data48 = data.value;
2958
- if (typeof data48 === "string") {
2959
- if (func3(data48) < 1) {
2960
- const err137 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
3802
+ let data61 = data.value;
3803
+ if (typeof data61 === "string") {
3804
+ if (func3(data61) < 1) {
3805
+ const err181 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2961
3806
  if (vErrors === null) {
2962
- vErrors = [err137];
3807
+ vErrors = [err181];
2963
3808
  } else {
2964
- vErrors.push(err137);
3809
+ vErrors.push(err181);
2965
3810
  }
2966
3811
  errors++;
2967
3812
  }
2968
3813
  } else {
2969
- const err138 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3814
+ const err182 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2970
3815
  if (vErrors === null) {
2971
- vErrors = [err138];
3816
+ vErrors = [err182];
2972
3817
  } else {
2973
- vErrors.push(err138);
3818
+ vErrors.push(err182);
2974
3819
  }
2975
3820
  errors++;
2976
3821
  }
2977
3822
  }
2978
3823
  if (data.tag !== void 0) {
2979
- let data49 = data.tag;
2980
- if (typeof data49 === "string") {
2981
- if (func3(data49) < 1) {
2982
- const err139 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
3824
+ let data62 = data.tag;
3825
+ if (typeof data62 === "string") {
3826
+ if (func3(data62) < 1) {
3827
+ const err183 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2983
3828
  if (vErrors === null) {
2984
- vErrors = [err139];
3829
+ vErrors = [err183];
2985
3830
  } else {
2986
- vErrors.push(err139);
3831
+ vErrors.push(err183);
2987
3832
  }
2988
3833
  errors++;
2989
3834
  }
2990
3835
  } else {
2991
- const err140 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3836
+ const err184 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2992
3837
  if (vErrors === null) {
2993
- vErrors = [err140];
3838
+ vErrors = [err184];
2994
3839
  } else {
2995
- vErrors.push(err140);
3840
+ vErrors.push(err184);
2996
3841
  }
2997
3842
  errors++;
2998
3843
  }
2999
3844
  }
3000
3845
  } else {
3001
- const err141 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3846
+ const err185 = { instancePath, schemaPath: "#/oneOf/15/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3002
3847
  if (vErrors === null) {
3003
- vErrors = [err141];
3848
+ vErrors = [err185];
3004
3849
  } else {
3005
- vErrors.push(err141);
3850
+ vErrors.push(err185);
3006
3851
  }
3007
3852
  errors++;
3008
3853
  }
3009
3854
  } else {
3010
- const err142 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
3855
+ const err186 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
3011
3856
  if (vErrors === null) {
3012
- vErrors = [err142];
3857
+ vErrors = [err186];
3013
3858
  } else {
3014
- vErrors.push(err142);
3859
+ vErrors.push(err186);
3015
3860
  }
3016
3861
  errors++;
3017
3862
  }
3018
3863
  } else {
3019
- const err143 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
3864
+ const err187 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
3020
3865
  if (vErrors === null) {
3021
- vErrors = [err143];
3866
+ vErrors = [err187];
3022
3867
  } else {
3023
- vErrors.push(err143);
3868
+ vErrors.push(err187);
3024
3869
  }
3025
3870
  errors++;
3026
3871
  }
3027
3872
  } else {
3028
- const err144 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3873
+ const err188 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3029
3874
  if (vErrors === null) {
3030
- vErrors = [err144];
3875
+ vErrors = [err188];
3031
3876
  } else {
3032
- vErrors.push(err144);
3877
+ vErrors.push(err188);
3033
3878
  }
3034
3879
  errors++;
3035
3880
  }
3036
- validate38.errors = vErrors;
3881
+ validate41.errors = vErrors;
3037
3882
  return errors === 0;
3038
3883
  }
3039
- function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3884
+ function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3040
3885
  let vErrors = null;
3041
3886
  let errors = 0;
3042
3887
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3158,8 +4003,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
3158
4003
  }
3159
4004
  const len0 = data3.length;
3160
4005
  for (let i0 = 0; i0 < len0; i0++) {
3161
- if (!validate36(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
3162
- vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);
4006
+ if (!validate39(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
4007
+ vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
3163
4008
  errors = vErrors.length;
3164
4009
  }
3165
4010
  }
@@ -3178,8 +4023,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
3178
4023
  if (Array.isArray(data5)) {
3179
4024
  const len1 = data5.length;
3180
4025
  for (let i1 = 0; i1 < len1; i1++) {
3181
- if (!validate38(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
3182
- vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
4026
+ if (!validate41(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
4027
+ vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
3183
4028
  errors = vErrors.length;
3184
4029
  }
3185
4030
  }
@@ -3202,10 +4047,10 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
3202
4047
  }
3203
4048
  errors++;
3204
4049
  }
3205
- validate35.errors = vErrors;
4050
+ validate38.errors = vErrors;
3206
4051
  return errors === 0;
3207
4052
  }
3208
- function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4053
+ function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3209
4054
  let vErrors = null;
3210
4055
  let errors = 0;
3211
4056
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3283,10 +4128,10 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
3283
4128
  }
3284
4129
  errors++;
3285
4130
  }
3286
- validate43.errors = vErrors;
4131
+ validate46.errors = vErrors;
3287
4132
  return errors === 0;
3288
4133
  }
3289
- function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4134
+ function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3290
4135
  let vErrors = null;
3291
4136
  let errors = 0;
3292
4137
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3394,10 +4239,10 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
3394
4239
  }
3395
4240
  errors++;
3396
4241
  }
3397
- validate46.errors = vErrors;
4242
+ validate49.errors = vErrors;
3398
4243
  return errors === 0;
3399
4244
  }
3400
- function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4245
+ function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3401
4246
  let vErrors = null;
3402
4247
  let errors = 0;
3403
4248
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3435,8 +4280,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3435
4280
  }
3436
4281
  const len0 = data0.length;
3437
4282
  for (let i0 = 0; i0 < len0; i0++) {
3438
- if (!validate46(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
3439
- vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
4283
+ if (!validate49(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
4284
+ vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
3440
4285
  errors = vErrors.length;
3441
4286
  }
3442
4287
  }
@@ -3459,10 +4304,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3459
4304
  }
3460
4305
  errors++;
3461
4306
  }
3462
- validate45.errors = vErrors;
4307
+ validate48.errors = vErrors;
3463
4308
  return errors === 0;
3464
4309
  }
3465
- function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4310
+ function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3466
4311
  let vErrors = null;
3467
4312
  let errors = 0;
3468
4313
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3539,10 +4384,10 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
3539
4384
  }
3540
4385
  errors++;
3541
4386
  }
3542
- validate50.errors = vErrors;
4387
+ validate53.errors = vErrors;
3543
4388
  return errors === 0;
3544
4389
  }
3545
- function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4390
+ function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3546
4391
  let vErrors = null;
3547
4392
  let errors = 0;
3548
4393
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3580,8 +4425,8 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
3580
4425
  }
3581
4426
  const len0 = data0.length;
3582
4427
  for (let i0 = 0; i0 < len0; i0++) {
3583
- if (!validate50(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
3584
- vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
4428
+ if (!validate53(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
4429
+ vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
3585
4430
  errors = vErrors.length;
3586
4431
  }
3587
4432
  }
@@ -3604,11 +4449,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
3604
4449
  }
3605
4450
  errors++;
3606
4451
  }
3607
- validate49.errors = vErrors;
4452
+ validate52.errors = vErrors;
3608
4453
  return errors === 0;
3609
4454
  }
3610
- var pattern27 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
3611
- function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4455
+ var pattern33 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
4456
+ function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3612
4457
  let vErrors = null;
3613
4458
  let errors = 0;
3614
4459
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3675,7 +4520,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
3675
4520
  if (data.length !== void 0) {
3676
4521
  let data1 = data.length;
3677
4522
  if (typeof data1 === "string") {
3678
- if (!pattern27.test(data1)) {
4523
+ if (!pattern33.test(data1)) {
3679
4524
  const err6 = { instancePath: instancePath + "/length", schemaPath: "#/definitions/duration/pattern", keyword: "pattern", params: { pattern: "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$" }, message: 'must match pattern "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"' };
3680
4525
  if (vErrors === null) {
3681
4526
  vErrors = [err6];
@@ -3749,10 +4594,10 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
3749
4594
  }
3750
4595
  errors++;
3751
4596
  }
3752
- validate54.errors = vErrors;
4597
+ validate57.errors = vErrors;
3753
4598
  return errors === 0;
3754
4599
  }
3755
- function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4600
+ function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3756
4601
  let vErrors = null;
3757
4602
  let errors = 0;
3758
4603
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3862,10 +4707,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
3862
4707
  }
3863
4708
  errors++;
3864
4709
  }
3865
- validate56.errors = vErrors;
4710
+ validate59.errors = vErrors;
3866
4711
  return errors === 0;
3867
4712
  }
3868
- function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4713
+ function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3869
4714
  let vErrors = null;
3870
4715
  let errors = 0;
3871
4716
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3945,7 +4790,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
3945
4790
  if (data.color !== void 0) {
3946
4791
  let data2 = data.color;
3947
4792
  if (!(data2 === "blue" || data2 === "amber" || data2 === "green" || data2 === "violet" || data2 === "rose" || data2 === "slate" || data2 === "coin")) {
3948
- const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
4793
+ const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
3949
4794
  if (vErrors === null) {
3950
4795
  vErrors = [err7];
3951
4796
  } else {
@@ -4000,10 +4845,10 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
4000
4845
  }
4001
4846
  errors++;
4002
4847
  }
4003
- validate58.errors = vErrors;
4848
+ validate61.errors = vErrors;
4004
4849
  return errors === 0;
4005
4850
  }
4006
- function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4851
+ function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4007
4852
  let vErrors = null;
4008
4853
  let errors = 0;
4009
4854
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -4090,10 +4935,10 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
4090
4935
  }
4091
4936
  errors++;
4092
4937
  }
4093
- validate60.errors = vErrors;
4938
+ validate63.errors = vErrors;
4094
4939
  return errors === 0;
4095
4940
  }
4096
- function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4941
+ function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4097
4942
  let vErrors = null;
4098
4943
  let errors = 0;
4099
4944
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -4181,10 +5026,10 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
4181
5026
  }
4182
5027
  errors++;
4183
5028
  }
4184
- validate62.errors = vErrors;
5029
+ validate65.errors = vErrors;
4185
5030
  return errors === 0;
4186
5031
  }
4187
- function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
5032
+ function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4188
5033
  let vErrors = null;
4189
5034
  let errors = 0;
4190
5035
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -4218,14 +5063,14 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
4218
5063
  }
4219
5064
  }
4220
5065
  if (data.scale !== void 0) {
4221
- if (!validate54(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
4222
- vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);
5066
+ if (!validate57(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
5067
+ vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
4223
5068
  errors = vErrors.length;
4224
5069
  }
4225
5070
  }
4226
5071
  if (data.period !== void 0) {
4227
- if (!validate56(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
4228
- vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
5072
+ if (!validate59(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
5073
+ vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
4229
5074
  errors = vErrors.length;
4230
5075
  }
4231
5076
  }
@@ -4243,57 +5088,223 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
4243
5088
  }
4244
5089
  const len0 = data2.length;
4245
5090
  for (let i0 = 0; i0 < len0; i0++) {
4246
- if (!validate58(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
4247
- vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
5091
+ if (!validate61(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
5092
+ vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);
4248
5093
  errors = vErrors.length;
4249
5094
  }
4250
5095
  }
4251
5096
  } else {
4252
5097
  const err4 = { instancePath: instancePath + "/rows", schemaPath: "#/properties/rows/type", keyword: "type", params: { type: "array" }, message: "must be array" };
4253
5098
  if (vErrors === null) {
4254
- vErrors = [err4];
5099
+ vErrors = [err4];
5100
+ } else {
5101
+ vErrors.push(err4);
5102
+ }
5103
+ errors++;
5104
+ }
5105
+ }
5106
+ if (data.points !== void 0) {
5107
+ let data4 = data.points;
5108
+ if (Array.isArray(data4)) {
5109
+ const len1 = data4.length;
5110
+ for (let i1 = 0; i1 < len1; i1++) {
5111
+ if (!validate63(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
5112
+ vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
5113
+ errors = vErrors.length;
5114
+ }
5115
+ }
5116
+ } else {
5117
+ const err5 = { instancePath: instancePath + "/points", schemaPath: "#/properties/points/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5118
+ if (vErrors === null) {
5119
+ vErrors = [err5];
5120
+ } else {
5121
+ vErrors.push(err5);
5122
+ }
5123
+ errors++;
5124
+ }
5125
+ }
5126
+ if (data.zoom !== void 0) {
5127
+ if (!validate65(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
5128
+ vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
5129
+ errors = vErrors.length;
5130
+ }
5131
+ }
5132
+ } else {
5133
+ const err6 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5134
+ if (vErrors === null) {
5135
+ vErrors = [err6];
5136
+ } else {
5137
+ vErrors.push(err6);
5138
+ }
5139
+ errors++;
5140
+ }
5141
+ validate56.errors = vErrors;
5142
+ return errors === 0;
5143
+ }
5144
+ function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
5145
+ let vErrors = null;
5146
+ let errors = 0;
5147
+ if (data && typeof data == "object" && !Array.isArray(data)) {
5148
+ if (data.id === void 0) {
5149
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
5150
+ if (vErrors === null) {
5151
+ vErrors = [err0];
5152
+ } else {
5153
+ vErrors.push(err0);
5154
+ }
5155
+ errors++;
5156
+ }
5157
+ for (const key0 in data) {
5158
+ if (!(key0 === "id" || key0 === "color" || key0 === "label")) {
5159
+ const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
5160
+ if (vErrors === null) {
5161
+ vErrors = [err1];
5162
+ } else {
5163
+ vErrors.push(err1);
5164
+ }
5165
+ errors++;
5166
+ }
5167
+ }
5168
+ if (data.id !== void 0) {
5169
+ let data0 = data.id;
5170
+ if (typeof data0 === "string") {
5171
+ if (!pattern0.test(data0)) {
5172
+ const err2 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
5173
+ if (vErrors === null) {
5174
+ vErrors = [err2];
5175
+ } else {
5176
+ vErrors.push(err2);
5177
+ }
5178
+ errors++;
5179
+ }
5180
+ } else {
5181
+ const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5182
+ if (vErrors === null) {
5183
+ vErrors = [err3];
5184
+ } else {
5185
+ vErrors.push(err3);
5186
+ }
5187
+ errors++;
5188
+ }
5189
+ }
5190
+ if (data.color !== void 0) {
5191
+ let data1 = data.color;
5192
+ if (!(data1 === "blue" || data1 === "amber" || data1 === "green" || data1 === "violet" || data1 === "rose" || data1 === "slate" || data1 === "coin")) {
5193
+ const err4 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
5194
+ if (vErrors === null) {
5195
+ vErrors = [err4];
5196
+ } else {
5197
+ vErrors.push(err4);
5198
+ }
5199
+ errors++;
5200
+ }
5201
+ }
5202
+ if (data.label !== void 0) {
5203
+ let data2 = data.label;
5204
+ if (typeof data2 === "string") {
5205
+ if (func3(data2) > 4) {
5206
+ const err5 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/maxLength", keyword: "maxLength", params: { limit: 4 }, message: "must NOT have more than 4 characters" };
5207
+ if (vErrors === null) {
5208
+ vErrors = [err5];
5209
+ } else {
5210
+ vErrors.push(err5);
5211
+ }
5212
+ errors++;
5213
+ }
5214
+ if (func3(data2) < 1) {
5215
+ const err6 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
5216
+ if (vErrors === null) {
5217
+ vErrors = [err6];
5218
+ } else {
5219
+ vErrors.push(err6);
5220
+ }
5221
+ errors++;
5222
+ }
5223
+ } else {
5224
+ const err7 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5225
+ if (vErrors === null) {
5226
+ vErrors = [err7];
5227
+ } else {
5228
+ vErrors.push(err7);
5229
+ }
5230
+ errors++;
5231
+ }
5232
+ }
5233
+ } else {
5234
+ const err8 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5235
+ if (vErrors === null) {
5236
+ vErrors = [err8];
5237
+ } else {
5238
+ vErrors.push(err8);
5239
+ }
5240
+ errors++;
5241
+ }
5242
+ validate69.errors = vErrors;
5243
+ return errors === 0;
5244
+ }
5245
+ function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
5246
+ let vErrors = null;
5247
+ let errors = 0;
5248
+ if (data && typeof data == "object" && !Array.isArray(data)) {
5249
+ if (data.items === void 0) {
5250
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
5251
+ if (vErrors === null) {
5252
+ vErrors = [err0];
5253
+ } else {
5254
+ vErrors.push(err0);
5255
+ }
5256
+ errors++;
5257
+ }
5258
+ for (const key0 in data) {
5259
+ if (!(key0 === "items")) {
5260
+ const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
5261
+ if (vErrors === null) {
5262
+ vErrors = [err1];
4255
5263
  } else {
4256
- vErrors.push(err4);
5264
+ vErrors.push(err1);
4257
5265
  }
4258
5266
  errors++;
4259
5267
  }
4260
5268
  }
4261
- if (data.points !== void 0) {
4262
- let data4 = data.points;
4263
- if (Array.isArray(data4)) {
4264
- const len1 = data4.length;
4265
- for (let i1 = 0; i1 < len1; i1++) {
4266
- if (!validate60(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
4267
- vErrors = vErrors === null ? validate60.errors : vErrors.concat(validate60.errors);
5269
+ if (data.items !== void 0) {
5270
+ let data0 = data.items;
5271
+ if (Array.isArray(data0)) {
5272
+ if (data0.length < 1) {
5273
+ const err2 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
5274
+ if (vErrors === null) {
5275
+ vErrors = [err2];
5276
+ } else {
5277
+ vErrors.push(err2);
5278
+ }
5279
+ errors++;
5280
+ }
5281
+ const len0 = data0.length;
5282
+ for (let i0 = 0; i0 < len0; i0++) {
5283
+ if (!validate69(data0[i0], { instancePath: instancePath + "/items/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
5284
+ vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
4268
5285
  errors = vErrors.length;
4269
5286
  }
4270
5287
  }
4271
5288
  } else {
4272
- const err5 = { instancePath: instancePath + "/points", schemaPath: "#/properties/points/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5289
+ const err3 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
4273
5290
  if (vErrors === null) {
4274
- vErrors = [err5];
5291
+ vErrors = [err3];
4275
5292
  } else {
4276
- vErrors.push(err5);
5293
+ vErrors.push(err3);
4277
5294
  }
4278
5295
  errors++;
4279
5296
  }
4280
5297
  }
4281
- if (data.zoom !== void 0) {
4282
- if (!validate62(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
4283
- vErrors = vErrors === null ? validate62.errors : vErrors.concat(validate62.errors);
4284
- errors = vErrors.length;
4285
- }
4286
- }
4287
5298
  } else {
4288
- const err6 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5299
+ const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
4289
5300
  if (vErrors === null) {
4290
- vErrors = [err6];
5301
+ vErrors = [err4];
4291
5302
  } else {
4292
- vErrors.push(err6);
5303
+ vErrors.push(err4);
4293
5304
  }
4294
5305
  errors++;
4295
5306
  }
4296
- validate53.errors = vErrors;
5307
+ validate68.errors = vErrors;
4297
5308
  return errors === 0;
4298
5309
  }
4299
5310
  var func2 = Object.prototype.hasOwnProperty;
@@ -4401,94 +5412,103 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4401
5412
  }
4402
5413
  errors++;
4403
5414
  }
5415
+ if (data.lineup !== void 0) {
5416
+ const err7 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5417
+ if (vErrors === null) {
5418
+ vErrors = [err7];
5419
+ } else {
5420
+ vErrors.push(err7);
5421
+ }
5422
+ errors++;
5423
+ }
4404
5424
  }
4405
5425
  var _valid0 = _errs4 === errors;
4406
5426
  valid0 = _valid0;
4407
5427
  ifClause0 = "then";
4408
5428
  } else {
4409
- const _errs17 = errors;
4410
- const _errs18 = errors;
4411
- let valid6 = true;
4412
- const _errs19 = errors;
5429
+ const _errs20 = errors;
5430
+ const _errs21 = errors;
5431
+ let valid7 = true;
5432
+ const _errs22 = errors;
4413
5433
  if (data && typeof data == "object" && !Array.isArray(data)) {
4414
5434
  if (data.kind === void 0 && ("kind")) {
4415
- const err7 = {};
5435
+ const err8 = {};
4416
5436
  if (vErrors === null) {
4417
- vErrors = [err7];
5437
+ vErrors = [err8];
4418
5438
  } else {
4419
- vErrors.push(err7);
5439
+ vErrors.push(err8);
4420
5440
  }
4421
5441
  errors++;
4422
5442
  } else {
4423
5443
  if (data.kind !== void 0) {
4424
5444
  if ("state" !== data.kind) {
4425
- const err8 = {};
5445
+ const err9 = {};
4426
5446
  if (vErrors === null) {
4427
- vErrors = [err8];
5447
+ vErrors = [err9];
4428
5448
  } else {
4429
- vErrors.push(err8);
5449
+ vErrors.push(err9);
4430
5450
  }
4431
5451
  errors++;
4432
5452
  }
4433
5453
  }
4434
5454
  }
4435
5455
  }
4436
- var _valid1 = _errs19 === errors;
4437
- errors = _errs18;
5456
+ var _valid1 = _errs22 === errors;
5457
+ errors = _errs21;
4438
5458
  if (vErrors !== null) {
4439
- if (_errs18) {
4440
- vErrors.length = _errs18;
5459
+ if (_errs21) {
5460
+ vErrors.length = _errs21;
4441
5461
  } else {
4442
5462
  vErrors = null;
4443
5463
  }
4444
5464
  }
4445
5465
  let ifClause1;
4446
5466
  if (_valid1) {
4447
- const _errs21 = errors;
5467
+ const _errs24 = errors;
4448
5468
  if (data && typeof data == "object" && !Array.isArray(data)) {
4449
5469
  if (data.boxes !== void 0) {
4450
- let data8 = data.boxes;
4451
- if (Array.isArray(data8)) {
4452
- if (data8.length < 1) {
4453
- const err9 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
5470
+ let data9 = data.boxes;
5471
+ if (Array.isArray(data9)) {
5472
+ if (data9.length < 1) {
5473
+ const err10 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
4454
5474
  if (vErrors === null) {
4455
- vErrors = [err9];
5475
+ vErrors = [err10];
4456
5476
  } else {
4457
- vErrors.push(err9);
5477
+ vErrors.push(err10);
4458
5478
  }
4459
5479
  errors++;
4460
5480
  }
4461
- const len0 = data8.length;
5481
+ const len0 = data9.length;
4462
5482
  for (let i0 = 0; i0 < len0; i0++) {
4463
- let data9 = data8[i0];
4464
- if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
4465
- if (data9.id !== void 0) {
4466
- let data10 = data9.id;
4467
- const _errs25 = errors;
4468
- const _errs26 = errors;
4469
- if (!(data10 === "start" || data10 === "finish")) {
4470
- const err10 = {};
5483
+ let data10 = data9[i0];
5484
+ if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
5485
+ if (data10.id !== void 0) {
5486
+ let data11 = data10.id;
5487
+ const _errs28 = errors;
5488
+ const _errs29 = errors;
5489
+ if (!(data11 === "start" || data11 === "finish")) {
5490
+ const err11 = {};
4471
5491
  if (vErrors === null) {
4472
- vErrors = [err10];
5492
+ vErrors = [err11];
4473
5493
  } else {
4474
- vErrors.push(err10);
5494
+ vErrors.push(err11);
4475
5495
  }
4476
5496
  errors++;
4477
5497
  }
4478
- var valid12 = _errs26 === errors;
4479
- if (valid12) {
4480
- const err11 = { instancePath: instancePath + "/boxes/" + i0 + "/id", schemaPath: "#/else/then/properties/boxes/items/properties/id/not", keyword: "not", params: {}, message: "must NOT be valid" };
5498
+ var valid13 = _errs29 === errors;
5499
+ if (valid13) {
5500
+ const err12 = { instancePath: instancePath + "/boxes/" + i0 + "/id", schemaPath: "#/else/then/properties/boxes/items/properties/id/not", keyword: "not", params: {}, message: "must NOT be valid" };
4481
5501
  if (vErrors === null) {
4482
- vErrors = [err11];
5502
+ vErrors = [err12];
4483
5503
  } else {
4484
- vErrors.push(err11);
5504
+ vErrors.push(err12);
4485
5505
  }
4486
5506
  errors++;
4487
5507
  } else {
4488
- errors = _errs25;
5508
+ errors = _errs28;
4489
5509
  if (vErrors !== null) {
4490
- if (_errs25) {
4491
- vErrors.length = _errs25;
5510
+ if (_errs28) {
5511
+ vErrors.length = _errs28;
4492
5512
  } else {
4493
5513
  vErrors = null;
4494
5514
  }
@@ -4512,74 +5532,83 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4512
5532
  }
4513
5533
  }
4514
5534
  if (data.git !== void 0) {
4515
- const err12 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5535
+ const err13 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4516
5536
  if (vErrors === null) {
4517
- vErrors = [err12];
5537
+ vErrors = [err13];
4518
5538
  } else {
4519
- vErrors.push(err12);
5539
+ vErrors.push(err13);
4520
5540
  }
4521
5541
  errors++;
4522
5542
  }
4523
5543
  if (data.time !== void 0) {
4524
- const err13 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5544
+ const err14 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4525
5545
  if (vErrors === null) {
4526
- vErrors = [err13];
5546
+ vErrors = [err14];
4527
5547
  } else {
4528
- vErrors.push(err13);
5548
+ vErrors.push(err14);
5549
+ }
5550
+ errors++;
5551
+ }
5552
+ if (data.lineup !== void 0) {
5553
+ const err15 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5554
+ if (vErrors === null) {
5555
+ vErrors = [err15];
5556
+ } else {
5557
+ vErrors.push(err15);
4529
5558
  }
4530
5559
  errors++;
4531
5560
  }
4532
5561
  }
4533
- var _valid1 = _errs21 === errors;
4534
- valid6 = _valid1;
5562
+ var _valid1 = _errs24 === errors;
5563
+ valid7 = _valid1;
4535
5564
  ifClause1 = "then";
4536
5565
  } else {
4537
- const _errs35 = errors;
4538
- const _errs36 = errors;
4539
- let valid15 = true;
4540
- const _errs37 = errors;
5566
+ const _errs41 = errors;
5567
+ const _errs42 = errors;
5568
+ let valid17 = true;
5569
+ const _errs43 = errors;
4541
5570
  if (data && typeof data == "object" && !Array.isArray(data)) {
4542
5571
  if (data.kind === void 0 && ("kind")) {
4543
- const err14 = {};
5572
+ const err16 = {};
4544
5573
  if (vErrors === null) {
4545
- vErrors = [err14];
5574
+ vErrors = [err16];
4546
5575
  } else {
4547
- vErrors.push(err14);
5576
+ vErrors.push(err16);
4548
5577
  }
4549
5578
  errors++;
4550
5579
  } else {
4551
5580
  if (data.kind !== void 0) {
4552
5581
  if ("git" !== data.kind) {
4553
- const err15 = {};
5582
+ const err17 = {};
4554
5583
  if (vErrors === null) {
4555
- vErrors = [err15];
5584
+ vErrors = [err17];
4556
5585
  } else {
4557
- vErrors.push(err15);
5586
+ vErrors.push(err17);
4558
5587
  }
4559
5588
  errors++;
4560
5589
  }
4561
5590
  }
4562
5591
  }
4563
5592
  }
4564
- var _valid2 = _errs37 === errors;
4565
- errors = _errs36;
5593
+ var _valid2 = _errs43 === errors;
5594
+ errors = _errs42;
4566
5595
  if (vErrors !== null) {
4567
- if (_errs36) {
4568
- vErrors.length = _errs36;
5596
+ if (_errs42) {
5597
+ vErrors.length = _errs42;
4569
5598
  } else {
4570
5599
  vErrors = null;
4571
5600
  }
4572
5601
  }
4573
5602
  let ifClause2;
4574
5603
  if (_valid2) {
4575
- const _errs39 = errors;
5604
+ const _errs45 = errors;
4576
5605
  if (data && typeof data == "object" && !Array.isArray(data)) {
4577
5606
  if (data.git === void 0) {
4578
- const err16 = { instancePath, schemaPath: "#/else/else/then/required", keyword: "required", params: { missingProperty: "git" }, message: "must have required property 'git'" };
5607
+ const err18 = { instancePath, schemaPath: "#/else/else/then/required", keyword: "required", params: { missingProperty: "git" }, message: "must have required property 'git'" };
4579
5608
  if (vErrors === null) {
4580
- vErrors = [err16];
5609
+ vErrors = [err18];
4581
5610
  } else {
4582
- vErrors.push(err16);
5611
+ vErrors.push(err18);
4583
5612
  }
4584
5613
  errors++;
4585
5614
  }
@@ -4596,83 +5625,92 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4596
5625
  }
4597
5626
  }
4598
5627
  if (data.state !== void 0) {
4599
- const err17 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5628
+ const err19 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4600
5629
  if (vErrors === null) {
4601
- vErrors = [err17];
5630
+ vErrors = [err19];
4602
5631
  } else {
4603
- vErrors.push(err17);
5632
+ vErrors.push(err19);
4604
5633
  }
4605
5634
  errors++;
4606
5635
  }
4607
5636
  if (data.regions !== void 0) {
4608
- const err18 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5637
+ const err20 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4609
5638
  if (vErrors === null) {
4610
- vErrors = [err18];
5639
+ vErrors = [err20];
4611
5640
  } else {
4612
- vErrors.push(err18);
5641
+ vErrors.push(err20);
4613
5642
  }
4614
5643
  errors++;
4615
5644
  }
4616
5645
  if (data.time !== void 0) {
4617
- const err19 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5646
+ const err21 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4618
5647
  if (vErrors === null) {
4619
- vErrors = [err19];
5648
+ vErrors = [err21];
4620
5649
  } else {
4621
- vErrors.push(err19);
5650
+ vErrors.push(err21);
5651
+ }
5652
+ errors++;
5653
+ }
5654
+ if (data.lineup !== void 0) {
5655
+ const err22 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5656
+ if (vErrors === null) {
5657
+ vErrors = [err22];
5658
+ } else {
5659
+ vErrors.push(err22);
4622
5660
  }
4623
5661
  errors++;
4624
5662
  }
4625
5663
  }
4626
- var _valid2 = _errs39 === errors;
4627
- valid15 = _valid2;
5664
+ var _valid2 = _errs45 === errors;
5665
+ valid17 = _valid2;
4628
5666
  ifClause2 = "then";
4629
5667
  } else {
4630
- const _errs51 = errors;
4631
- const _errs52 = errors;
4632
- let valid21 = true;
4633
- const _errs53 = errors;
5668
+ const _errs60 = errors;
5669
+ const _errs61 = errors;
5670
+ let valid24 = true;
5671
+ const _errs62 = errors;
4634
5672
  if (data && typeof data == "object" && !Array.isArray(data)) {
4635
5673
  if (data.kind === void 0 && ("kind")) {
4636
- const err20 = {};
5674
+ const err23 = {};
4637
5675
  if (vErrors === null) {
4638
- vErrors = [err20];
5676
+ vErrors = [err23];
4639
5677
  } else {
4640
- vErrors.push(err20);
5678
+ vErrors.push(err23);
4641
5679
  }
4642
5680
  errors++;
4643
5681
  } else {
4644
5682
  if (data.kind !== void 0) {
4645
5683
  if ("time" !== data.kind) {
4646
- const err21 = {};
5684
+ const err24 = {};
4647
5685
  if (vErrors === null) {
4648
- vErrors = [err21];
5686
+ vErrors = [err24];
4649
5687
  } else {
4650
- vErrors.push(err21);
5688
+ vErrors.push(err24);
4651
5689
  }
4652
5690
  errors++;
4653
5691
  }
4654
5692
  }
4655
5693
  }
4656
5694
  }
4657
- var _valid3 = _errs53 === errors;
4658
- errors = _errs52;
5695
+ var _valid3 = _errs62 === errors;
5696
+ errors = _errs61;
4659
5697
  if (vErrors !== null) {
4660
- if (_errs52) {
4661
- vErrors.length = _errs52;
5698
+ if (_errs61) {
5699
+ vErrors.length = _errs61;
4662
5700
  } else {
4663
5701
  vErrors = null;
4664
5702
  }
4665
5703
  }
4666
5704
  let ifClause3;
4667
5705
  if (_valid3) {
4668
- const _errs55 = errors;
5706
+ const _errs64 = errors;
4669
5707
  if (data && typeof data == "object" && !Array.isArray(data)) {
4670
5708
  if (data.time === void 0) {
4671
- const err22 = { instancePath, schemaPath: "#/else/else/else/then/required", keyword: "required", params: { missingProperty: "time" }, message: "must have required property 'time'" };
5709
+ const err25 = { instancePath, schemaPath: "#/else/else/else/then/required", keyword: "required", params: { missingProperty: "time" }, message: "must have required property 'time'" };
4672
5710
  if (vErrors === null) {
4673
- vErrors = [err22];
5711
+ vErrors = [err25];
4674
5712
  } else {
4675
- vErrors.push(err22);
5713
+ vErrors.push(err25);
4676
5714
  }
4677
5715
  errors++;
4678
5716
  }
@@ -4683,76 +5721,85 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4683
5721
  }
4684
5722
  }
4685
5723
  if (data.state !== void 0) {
4686
- const err23 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5724
+ const err26 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4687
5725
  if (vErrors === null) {
4688
- vErrors = [err23];
5726
+ vErrors = [err26];
4689
5727
  } else {
4690
- vErrors.push(err23);
5728
+ vErrors.push(err26);
4691
5729
  }
4692
5730
  errors++;
4693
5731
  }
4694
5732
  if (data.git !== void 0) {
4695
- const err24 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5733
+ const err27 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4696
5734
  if (vErrors === null) {
4697
- vErrors = [err24];
5735
+ vErrors = [err27];
4698
5736
  } else {
4699
- vErrors.push(err24);
5737
+ vErrors.push(err27);
4700
5738
  }
4701
5739
  errors++;
4702
5740
  }
4703
5741
  if (data.regions !== void 0) {
4704
- const err25 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5742
+ const err28 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4705
5743
  if (vErrors === null) {
4706
- vErrors = [err25];
5744
+ vErrors = [err28];
4707
5745
  } else {
4708
- vErrors.push(err25);
5746
+ vErrors.push(err28);
5747
+ }
5748
+ errors++;
5749
+ }
5750
+ if (data.lineup !== void 0) {
5751
+ const err29 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5752
+ if (vErrors === null) {
5753
+ vErrors = [err29];
5754
+ } else {
5755
+ vErrors.push(err29);
4709
5756
  }
4710
5757
  errors++;
4711
5758
  }
4712
5759
  }
4713
- var _valid3 = _errs55 === errors;
4714
- valid21 = _valid3;
5760
+ var _valid3 = _errs64 === errors;
5761
+ valid24 = _valid3;
4715
5762
  ifClause3 = "then";
4716
5763
  } else {
4717
- const _errs66 = errors;
4718
- const _errs67 = errors;
4719
- let valid27 = true;
4720
- const _errs68 = errors;
5764
+ const _errs78 = errors;
5765
+ const _errs79 = errors;
5766
+ let valid31 = true;
5767
+ const _errs80 = errors;
4721
5768
  if (data && typeof data == "object" && !Array.isArray(data)) {
4722
5769
  if (data.kind === void 0 && ("kind")) {
4723
- const err26 = {};
5770
+ const err30 = {};
4724
5771
  if (vErrors === null) {
4725
- vErrors = [err26];
5772
+ vErrors = [err30];
4726
5773
  } else {
4727
- vErrors.push(err26);
5774
+ vErrors.push(err30);
4728
5775
  }
4729
5776
  errors++;
4730
5777
  } else {
4731
5778
  if (data.kind !== void 0) {
4732
5779
  if ("tree" !== data.kind) {
4733
- const err27 = {};
5780
+ const err31 = {};
4734
5781
  if (vErrors === null) {
4735
- vErrors = [err27];
5782
+ vErrors = [err31];
4736
5783
  } else {
4737
- vErrors.push(err27);
5784
+ vErrors.push(err31);
4738
5785
  }
4739
5786
  errors++;
4740
5787
  }
4741
5788
  }
4742
5789
  }
4743
5790
  }
4744
- var _valid4 = _errs68 === errors;
4745
- errors = _errs67;
5791
+ var _valid4 = _errs80 === errors;
5792
+ errors = _errs79;
4746
5793
  if (vErrors !== null) {
4747
- if (_errs67) {
4748
- vErrors.length = _errs67;
5794
+ if (_errs79) {
5795
+ vErrors.length = _errs79;
4749
5796
  } else {
4750
5797
  vErrors = null;
4751
5798
  }
4752
5799
  }
4753
5800
  let ifClause4;
4754
5801
  if (_valid4) {
4755
- const _errs70 = errors;
5802
+ const _errs82 = errors;
4756
5803
  if (data && typeof data == "object" && !Array.isArray(data)) {
4757
5804
  if (data.steps !== void 0) {
4758
5805
  if (!validate22(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
@@ -4767,409 +5814,595 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4767
5814
  }
4768
5815
  }
4769
5816
  if (data.state !== void 0) {
4770
- const err28 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5817
+ const err32 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4771
5818
  if (vErrors === null) {
4772
- vErrors = [err28];
5819
+ vErrors = [err32];
4773
5820
  } else {
4774
- vErrors.push(err28);
5821
+ vErrors.push(err32);
4775
5822
  }
4776
5823
  errors++;
4777
5824
  }
4778
5825
  if (data.git !== void 0) {
4779
- const err29 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5826
+ const err33 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4780
5827
  if (vErrors === null) {
4781
- vErrors = [err29];
5828
+ vErrors = [err33];
4782
5829
  } else {
4783
- vErrors.push(err29);
5830
+ vErrors.push(err33);
4784
5831
  }
4785
5832
  errors++;
4786
5833
  }
4787
5834
  if (data.time !== void 0) {
4788
- const err30 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5835
+ const err34 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4789
5836
  if (vErrors === null) {
4790
- vErrors = [err30];
5837
+ vErrors = [err34];
4791
5838
  } else {
4792
- vErrors.push(err30);
5839
+ vErrors.push(err34);
4793
5840
  }
4794
5841
  errors++;
4795
5842
  }
4796
5843
  if (data.regions !== void 0) {
4797
- const err31 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5844
+ const err35 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5845
+ if (vErrors === null) {
5846
+ vErrors = [err35];
5847
+ } else {
5848
+ vErrors.push(err35);
5849
+ }
5850
+ errors++;
5851
+ }
5852
+ if (data.lineup !== void 0) {
5853
+ const err36 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4798
5854
  if (vErrors === null) {
4799
- vErrors = [err31];
5855
+ vErrors = [err36];
4800
5856
  } else {
4801
- vErrors.push(err31);
5857
+ vErrors.push(err36);
4802
5858
  }
4803
5859
  errors++;
4804
5860
  }
4805
5861
  }
4806
- var _valid4 = _errs70 === errors;
4807
- valid27 = _valid4;
5862
+ var _valid4 = _errs82 === errors;
5863
+ valid31 = _valid4;
4808
5864
  ifClause4 = "then";
4809
5865
  } else {
4810
- const _errs85 = errors;
5866
+ const _errs100 = errors;
5867
+ const _errs101 = errors;
5868
+ let valid39 = true;
5869
+ const _errs102 = errors;
4811
5870
  if (data && typeof data == "object" && !Array.isArray(data)) {
4812
- if (data.boxes !== void 0) {
4813
- let data33 = data.boxes;
4814
- if (Array.isArray(data33)) {
4815
- if (data33.length < 1) {
4816
- const err32 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
5871
+ if (data.kind === void 0 && ("kind")) {
5872
+ const err37 = {};
5873
+ if (vErrors === null) {
5874
+ vErrors = [err37];
5875
+ } else {
5876
+ vErrors.push(err37);
5877
+ }
5878
+ errors++;
5879
+ } else {
5880
+ if (data.kind !== void 0) {
5881
+ if ("lineup" !== data.kind) {
5882
+ const err38 = {};
4817
5883
  if (vErrors === null) {
4818
- vErrors = [err32];
5884
+ vErrors = [err38];
4819
5885
  } else {
4820
- vErrors.push(err32);
5886
+ vErrors.push(err38);
4821
5887
  }
4822
5888
  errors++;
4823
5889
  }
4824
5890
  }
4825
5891
  }
4826
- if (data.steps !== void 0) {
4827
- if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
4828
- vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
4829
- errors = vErrors.length;
4830
- }
5892
+ }
5893
+ var _valid5 = _errs102 === errors;
5894
+ errors = _errs101;
5895
+ if (vErrors !== null) {
5896
+ if (_errs101) {
5897
+ vErrors.length = _errs101;
5898
+ } else {
5899
+ vErrors = null;
4831
5900
  }
4832
- if (data.strip !== void 0) {
4833
- if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
4834
- vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
4835
- errors = vErrors.length;
5901
+ }
5902
+ let ifClause5;
5903
+ if (_valid5) {
5904
+ const _errs104 = errors;
5905
+ if (data && typeof data == "object" && !Array.isArray(data)) {
5906
+ if (data.lineup === void 0) {
5907
+ const err39 = { instancePath, schemaPath: "#/else/else/else/else/else/then/required", keyword: "required", params: { missingProperty: "lineup" }, message: "must have required property 'lineup'" };
5908
+ if (vErrors === null) {
5909
+ vErrors = [err39];
5910
+ } else {
5911
+ vErrors.push(err39);
5912
+ }
5913
+ errors++;
4836
5914
  }
4837
- }
4838
- if (data.state !== void 0) {
4839
- const err33 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4840
- if (vErrors === null) {
4841
- vErrors = [err33];
4842
- } else {
4843
- vErrors.push(err33);
5915
+ if (data.boxes !== void 0) {
5916
+ let data39 = data.boxes;
5917
+ if (Array.isArray(data39)) {
5918
+ if (data39.length < 1) {
5919
+ const err40 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
5920
+ if (vErrors === null) {
5921
+ vErrors = [err40];
5922
+ } else {
5923
+ vErrors.push(err40);
5924
+ }
5925
+ errors++;
5926
+ }
5927
+ const len1 = data39.length;
5928
+ for (let i1 = 0; i1 < len1; i1++) {
5929
+ let data40 = data39[i1];
5930
+ if (data40 && typeof data40 == "object" && !Array.isArray(data40)) {
5931
+ if (data40.icon !== void 0) {
5932
+ const err41 = { instancePath: instancePath + "/boxes/" + i1 + "/icon", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5933
+ if (vErrors === null) {
5934
+ vErrors = [err41];
5935
+ } else {
5936
+ vErrors.push(err41);
5937
+ }
5938
+ errors++;
5939
+ }
5940
+ if (data40.link !== void 0) {
5941
+ const err42 = { instancePath: instancePath + "/boxes/" + i1 + "/link", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5942
+ if (vErrors === null) {
5943
+ vErrors = [err42];
5944
+ } else {
5945
+ vErrors.push(err42);
5946
+ }
5947
+ errors++;
5948
+ }
5949
+ if (data40.region !== void 0) {
5950
+ const err43 = { instancePath: instancePath + "/boxes/" + i1 + "/region", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5951
+ if (vErrors === null) {
5952
+ vErrors = [err43];
5953
+ } else {
5954
+ vErrors.push(err43);
5955
+ }
5956
+ errors++;
5957
+ }
5958
+ }
5959
+ }
5960
+ }
4844
5961
  }
4845
- errors++;
4846
- }
4847
- if (data.git !== void 0) {
4848
- const err34 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4849
- if (vErrors === null) {
4850
- vErrors = [err34];
4851
- } else {
4852
- vErrors.push(err34);
5962
+ if (data.steps !== void 0) {
5963
+ if (!validate25(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
5964
+ vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
5965
+ errors = vErrors.length;
5966
+ }
5967
+ }
5968
+ if (data.strip !== void 0) {
5969
+ if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
5970
+ vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
5971
+ errors = vErrors.length;
5972
+ }
5973
+ }
5974
+ if (data.state !== void 0) {
5975
+ const err44 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5976
+ if (vErrors === null) {
5977
+ vErrors = [err44];
5978
+ } else {
5979
+ vErrors.push(err44);
5980
+ }
5981
+ errors++;
5982
+ }
5983
+ if (data.git !== void 0) {
5984
+ const err45 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5985
+ if (vErrors === null) {
5986
+ vErrors = [err45];
5987
+ } else {
5988
+ vErrors.push(err45);
5989
+ }
5990
+ errors++;
5991
+ }
5992
+ if (data.time !== void 0) {
5993
+ const err46 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5994
+ if (vErrors === null) {
5995
+ vErrors = [err46];
5996
+ } else {
5997
+ vErrors.push(err46);
5998
+ }
5999
+ errors++;
6000
+ }
6001
+ if (data.regions !== void 0) {
6002
+ const err47 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6003
+ if (vErrors === null) {
6004
+ vErrors = [err47];
6005
+ } else {
6006
+ vErrors.push(err47);
6007
+ }
6008
+ errors++;
4853
6009
  }
4854
- errors++;
4855
6010
  }
4856
- if (data.time !== void 0) {
4857
- const err35 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4858
- if (vErrors === null) {
4859
- vErrors = [err35];
4860
- } else {
4861
- vErrors.push(err35);
6011
+ var _valid5 = _errs104 === errors;
6012
+ valid39 = _valid5;
6013
+ ifClause5 = "then";
6014
+ } else {
6015
+ const _errs130 = errors;
6016
+ if (data && typeof data == "object" && !Array.isArray(data)) {
6017
+ if (data.boxes !== void 0) {
6018
+ let data50 = data.boxes;
6019
+ if (Array.isArray(data50)) {
6020
+ if (data50.length < 1) {
6021
+ const err48 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/else/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
6022
+ if (vErrors === null) {
6023
+ vErrors = [err48];
6024
+ } else {
6025
+ vErrors.push(err48);
6026
+ }
6027
+ errors++;
6028
+ }
6029
+ }
4862
6030
  }
4863
- errors++;
6031
+ if (data.steps !== void 0) {
6032
+ if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
6033
+ vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
6034
+ errors = vErrors.length;
6035
+ }
6036
+ }
6037
+ if (data.strip !== void 0) {
6038
+ if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
6039
+ vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
6040
+ errors = vErrors.length;
6041
+ }
6042
+ }
6043
+ if (data.state !== void 0) {
6044
+ const err49 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6045
+ if (vErrors === null) {
6046
+ vErrors = [err49];
6047
+ } else {
6048
+ vErrors.push(err49);
6049
+ }
6050
+ errors++;
6051
+ }
6052
+ if (data.git !== void 0) {
6053
+ const err50 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6054
+ if (vErrors === null) {
6055
+ vErrors = [err50];
6056
+ } else {
6057
+ vErrors.push(err50);
6058
+ }
6059
+ errors++;
6060
+ }
6061
+ if (data.time !== void 0) {
6062
+ const err51 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6063
+ if (vErrors === null) {
6064
+ vErrors = [err51];
6065
+ } else {
6066
+ vErrors.push(err51);
6067
+ }
6068
+ errors++;
6069
+ }
6070
+ if (data.lineup !== void 0) {
6071
+ const err52 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6072
+ if (vErrors === null) {
6073
+ vErrors = [err52];
6074
+ } else {
6075
+ vErrors.push(err52);
6076
+ }
6077
+ errors++;
6078
+ }
6079
+ }
6080
+ var _valid5 = _errs130 === errors;
6081
+ valid39 = _valid5;
6082
+ ifClause5 = "else";
6083
+ }
6084
+ if (!valid39) {
6085
+ const err53 = { instancePath, schemaPath: "#/else/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause5 }, message: 'must match "' + ifClause5 + '" schema' };
6086
+ if (vErrors === null) {
6087
+ vErrors = [err53];
6088
+ } else {
6089
+ vErrors.push(err53);
4864
6090
  }
6091
+ errors++;
4865
6092
  }
4866
- var _valid4 = _errs85 === errors;
4867
- valid27 = _valid4;
6093
+ var _valid4 = _errs100 === errors;
6094
+ valid31 = _valid4;
4868
6095
  ifClause4 = "else";
4869
6096
  }
4870
- if (!valid27) {
4871
- const err36 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
6097
+ if (!valid31) {
6098
+ const err54 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
4872
6099
  if (vErrors === null) {
4873
- vErrors = [err36];
6100
+ vErrors = [err54];
4874
6101
  } else {
4875
- vErrors.push(err36);
6102
+ vErrors.push(err54);
4876
6103
  }
4877
6104
  errors++;
4878
6105
  }
4879
- var _valid3 = _errs66 === errors;
4880
- valid21 = _valid3;
6106
+ var _valid3 = _errs78 === errors;
6107
+ valid24 = _valid3;
4881
6108
  ifClause3 = "else";
4882
6109
  }
4883
- if (!valid21) {
4884
- const err37 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
6110
+ if (!valid24) {
6111
+ const err55 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
4885
6112
  if (vErrors === null) {
4886
- vErrors = [err37];
6113
+ vErrors = [err55];
4887
6114
  } else {
4888
- vErrors.push(err37);
6115
+ vErrors.push(err55);
4889
6116
  }
4890
6117
  errors++;
4891
6118
  }
4892
- var _valid2 = _errs51 === errors;
4893
- valid15 = _valid2;
6119
+ var _valid2 = _errs60 === errors;
6120
+ valid17 = _valid2;
4894
6121
  ifClause2 = "else";
4895
6122
  }
4896
- if (!valid15) {
4897
- const err38 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
6123
+ if (!valid17) {
6124
+ const err56 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
4898
6125
  if (vErrors === null) {
4899
- vErrors = [err38];
6126
+ vErrors = [err56];
4900
6127
  } else {
4901
- vErrors.push(err38);
6128
+ vErrors.push(err56);
4902
6129
  }
4903
6130
  errors++;
4904
6131
  }
4905
- var _valid1 = _errs35 === errors;
4906
- valid6 = _valid1;
6132
+ var _valid1 = _errs41 === errors;
6133
+ valid7 = _valid1;
4907
6134
  ifClause1 = "else";
4908
6135
  }
4909
- if (!valid6) {
4910
- const err39 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
6136
+ if (!valid7) {
6137
+ const err57 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
4911
6138
  if (vErrors === null) {
4912
- vErrors = [err39];
6139
+ vErrors = [err57];
4913
6140
  } else {
4914
- vErrors.push(err39);
6141
+ vErrors.push(err57);
4915
6142
  }
4916
6143
  errors++;
4917
6144
  }
4918
6145
  if (data && typeof data == "object" && !Array.isArray(data)) {
4919
6146
  if (data.sequence !== void 0) {
4920
- const err40 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6147
+ const err58 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4921
6148
  if (vErrors === null) {
4922
- vErrors = [err40];
6149
+ vErrors = [err58];
4923
6150
  } else {
4924
- vErrors.push(err40);
6151
+ vErrors.push(err58);
4925
6152
  }
4926
6153
  errors++;
4927
6154
  }
4928
6155
  }
4929
- var _valid0 = _errs17 === errors;
6156
+ var _valid0 = _errs20 === errors;
4930
6157
  valid0 = _valid0;
4931
6158
  ifClause0 = "else";
4932
6159
  }
4933
6160
  if (!valid0) {
4934
- const err41 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
6161
+ const err59 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
4935
6162
  if (vErrors === null) {
4936
- vErrors = [err41];
6163
+ vErrors = [err59];
4937
6164
  } else {
4938
- vErrors.push(err41);
6165
+ vErrors.push(err59);
4939
6166
  }
4940
6167
  errors++;
4941
6168
  }
4942
6169
  if (data && typeof data == "object" && !Array.isArray(data)) {
4943
6170
  if (data.version === void 0) {
4944
- const err42 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
6171
+ const err60 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
4945
6172
  if (vErrors === null) {
4946
- vErrors = [err42];
6173
+ vErrors = [err60];
4947
6174
  } else {
4948
- vErrors.push(err42);
6175
+ vErrors.push(err60);
4949
6176
  }
4950
6177
  errors++;
4951
6178
  }
4952
6179
  if (data.kind === void 0) {
4953
- const err43 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
6180
+ const err61 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
4954
6181
  if (vErrors === null) {
4955
- vErrors = [err43];
6182
+ vErrors = [err61];
4956
6183
  } else {
4957
- vErrors.push(err43);
6184
+ vErrors.push(err61);
4958
6185
  }
4959
6186
  errors++;
4960
6187
  }
4961
6188
  if (data.title === void 0) {
4962
- const err44 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
6189
+ const err62 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
4963
6190
  if (vErrors === null) {
4964
- vErrors = [err44];
6191
+ vErrors = [err62];
4965
6192
  } else {
4966
- vErrors.push(err44);
6193
+ vErrors.push(err62);
4967
6194
  }
4968
6195
  errors++;
4969
6196
  }
4970
6197
  if (data.boxes === void 0) {
4971
- const err45 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
6198
+ const err63 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
4972
6199
  if (vErrors === null) {
4973
- vErrors = [err45];
6200
+ vErrors = [err63];
4974
6201
  } else {
4975
- vErrors.push(err45);
6202
+ vErrors.push(err63);
4976
6203
  }
4977
6204
  errors++;
4978
6205
  }
4979
6206
  if (data.steps === void 0) {
4980
- const err46 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
6207
+ const err64 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
4981
6208
  if (vErrors === null) {
4982
- vErrors = [err46];
6209
+ vErrors = [err64];
4983
6210
  } else {
4984
- vErrors.push(err46);
6211
+ vErrors.push(err64);
4985
6212
  }
4986
6213
  errors++;
4987
6214
  }
4988
6215
  for (const key0 in data) {
4989
6216
  if (!func2.call(schema11.properties, key0)) {
4990
- const err47 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
6217
+ const err65 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
4991
6218
  if (vErrors === null) {
4992
- vErrors = [err47];
6219
+ vErrors = [err65];
4993
6220
  } else {
4994
- vErrors.push(err47);
6221
+ vErrors.push(err65);
4995
6222
  }
4996
6223
  errors++;
4997
6224
  }
4998
6225
  }
4999
6226
  if (data.version !== void 0) {
5000
- let data40 = data.version;
5001
- if (!(typeof data40 == "number" && (!(data40 % 1) && !isNaN(data40)) && isFinite(data40))) {
5002
- const err48 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
6227
+ let data58 = data.version;
6228
+ if (!(typeof data58 == "number" && (!(data58 % 1) && !isNaN(data58)) && isFinite(data58))) {
6229
+ const err66 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
5003
6230
  if (vErrors === null) {
5004
- vErrors = [err48];
6231
+ vErrors = [err66];
5005
6232
  } else {
5006
- vErrors.push(err48);
6233
+ vErrors.push(err66);
5007
6234
  }
5008
6235
  errors++;
5009
6236
  }
5010
- if (typeof data40 == "number" && isFinite(data40)) {
5011
- if (data40 < 1 || isNaN(data40)) {
5012
- const err49 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
6237
+ if (typeof data58 == "number" && isFinite(data58)) {
6238
+ if (data58 < 1 || isNaN(data58)) {
6239
+ const err67 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
5013
6240
  if (vErrors === null) {
5014
- vErrors = [err49];
6241
+ vErrors = [err67];
5015
6242
  } else {
5016
- vErrors.push(err49);
6243
+ vErrors.push(err67);
5017
6244
  }
5018
6245
  errors++;
5019
6246
  }
5020
6247
  }
5021
6248
  }
5022
6249
  if (data.kind !== void 0) {
5023
- let data41 = data.kind;
5024
- if (!(data41 === "sequence" || data41 === "architecture" || data41 === "state" || data41 === "git" || data41 === "time" || data41 === "tree")) {
5025
- const err50 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema11.properties.kind.enum }, message: "must be equal to one of the allowed values" };
6250
+ let data59 = data.kind;
6251
+ if (!(data59 === "sequence" || data59 === "architecture" || data59 === "state" || data59 === "git" || data59 === "time" || data59 === "tree" || data59 === "lineup")) {
6252
+ const err68 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema11.properties.kind.enum }, message: "must be equal to one of the allowed values" };
5026
6253
  if (vErrors === null) {
5027
- vErrors = [err50];
6254
+ vErrors = [err68];
5028
6255
  } else {
5029
- vErrors.push(err50);
6256
+ vErrors.push(err68);
5030
6257
  }
5031
6258
  errors++;
5032
6259
  }
5033
6260
  }
5034
6261
  if (data.title !== void 0) {
5035
- let data42 = data.title;
5036
- if (typeof data42 === "string") {
5037
- if (func3(data42) < 1) {
5038
- const err51 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
6262
+ let data60 = data.title;
6263
+ if (typeof data60 === "string") {
6264
+ if (func3(data60) < 1) {
6265
+ const err69 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
5039
6266
  if (vErrors === null) {
5040
- vErrors = [err51];
6267
+ vErrors = [err69];
5041
6268
  } else {
5042
- vErrors.push(err51);
6269
+ vErrors.push(err69);
5043
6270
  }
5044
6271
  errors++;
5045
6272
  }
5046
6273
  } else {
5047
- const err52 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6274
+ const err70 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5048
6275
  if (vErrors === null) {
5049
- vErrors = [err52];
6276
+ vErrors = [err70];
5050
6277
  } else {
5051
- vErrors.push(err52);
6278
+ vErrors.push(err70);
5052
6279
  }
5053
6280
  errors++;
5054
6281
  }
5055
6282
  }
5056
6283
  if (data.view !== void 0) {
5057
- let data43 = data.view;
5058
- if (!(data43 === "fixed" || data43 === "follow")) {
5059
- const err53 = { instancePath: instancePath + "/view", schemaPath: "#/properties/view/enum", keyword: "enum", params: { allowedValues: schema11.properties.view.enum }, message: "must be equal to one of the allowed values" };
6284
+ let data61 = data.view;
6285
+ if (!(data61 === "fixed" || data61 === "follow")) {
6286
+ const err71 = { instancePath: instancePath + "/view", schemaPath: "#/properties/view/enum", keyword: "enum", params: { allowedValues: schema11.properties.view.enum }, message: "must be equal to one of the allowed values" };
5060
6287
  if (vErrors === null) {
5061
- vErrors = [err53];
6288
+ vErrors = [err71];
5062
6289
  } else {
5063
- vErrors.push(err53);
6290
+ vErrors.push(err71);
5064
6291
  }
5065
6292
  errors++;
5066
6293
  }
5067
6294
  }
5068
6295
  if (data.regions !== void 0) {
5069
- let data44 = data.regions;
5070
- if (Array.isArray(data44)) {
5071
- const len1 = data44.length;
5072
- for (let i1 = 0; i1 < len1; i1++) {
5073
- if (!validate27(data44[i1], { instancePath: instancePath + "/regions/" + i1, parentData: data44, parentDataProperty: i1, rootData })) {
5074
- vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);
6296
+ let data62 = data.regions;
6297
+ if (Array.isArray(data62)) {
6298
+ const len2 = data62.length;
6299
+ for (let i2 = 0; i2 < len2; i2++) {
6300
+ if (!validate30(data62[i2], { instancePath: instancePath + "/regions/" + i2, parentData: data62, parentDataProperty: i2, rootData })) {
6301
+ vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
5075
6302
  errors = vErrors.length;
5076
6303
  }
5077
6304
  }
5078
6305
  } else {
5079
- const err54 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
6306
+ const err72 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5080
6307
  if (vErrors === null) {
5081
- vErrors = [err54];
6308
+ vErrors = [err72];
5082
6309
  } else {
5083
- vErrors.push(err54);
6310
+ vErrors.push(err72);
5084
6311
  }
5085
6312
  errors++;
5086
6313
  }
5087
6314
  }
5088
6315
  if (data.boxes !== void 0) {
5089
- let data46 = data.boxes;
5090
- if (Array.isArray(data46)) {
5091
- const len2 = data46.length;
5092
- for (let i2 = 0; i2 < len2; i2++) {
5093
- if (!validate29(data46[i2], { instancePath: instancePath + "/boxes/" + i2, parentData: data46, parentDataProperty: i2, rootData })) {
5094
- vErrors = vErrors === null ? validate29.errors : vErrors.concat(validate29.errors);
6316
+ let data64 = data.boxes;
6317
+ if (Array.isArray(data64)) {
6318
+ const len3 = data64.length;
6319
+ for (let i3 = 0; i3 < len3; i3++) {
6320
+ if (!validate32(data64[i3], { instancePath: instancePath + "/boxes/" + i3, parentData: data64, parentDataProperty: i3, rootData })) {
6321
+ vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
5095
6322
  errors = vErrors.length;
5096
6323
  }
5097
6324
  }
5098
6325
  } else {
5099
- const err55 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
6326
+ const err73 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5100
6327
  if (vErrors === null) {
5101
- vErrors = [err55];
6328
+ vErrors = [err73];
5102
6329
  } else {
5103
- vErrors.push(err55);
6330
+ vErrors.push(err73);
5104
6331
  }
5105
6332
  errors++;
5106
6333
  }
5107
6334
  }
5108
6335
  if (data.strip !== void 0) {
5109
- if (!validate31(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
5110
- vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
6336
+ if (!validate34(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
6337
+ vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
5111
6338
  errors = vErrors.length;
5112
6339
  }
5113
6340
  }
5114
6341
  if (data.steps !== void 0) {
5115
- let data49 = data.steps;
5116
- if (Array.isArray(data49)) {
5117
- if (data49.length < 1) {
5118
- const err56 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
6342
+ let data67 = data.steps;
6343
+ if (Array.isArray(data67)) {
6344
+ if (data67.length < 1) {
6345
+ const err74 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
5119
6346
  if (vErrors === null) {
5120
- vErrors = [err56];
6347
+ vErrors = [err74];
5121
6348
  } else {
5122
- vErrors.push(err56);
6349
+ vErrors.push(err74);
5123
6350
  }
5124
6351
  errors++;
5125
6352
  }
5126
- const len3 = data49.length;
5127
- for (let i3 = 0; i3 < len3; i3++) {
5128
- if (!validate35(data49[i3], { instancePath: instancePath + "/steps/" + i3, parentData: data49, parentDataProperty: i3, rootData })) {
5129
- vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
6353
+ const len4 = data67.length;
6354
+ for (let i4 = 0; i4 < len4; i4++) {
6355
+ if (!validate38(data67[i4], { instancePath: instancePath + "/steps/" + i4, parentData: data67, parentDataProperty: i4, rootData })) {
6356
+ vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
5130
6357
  errors = vErrors.length;
5131
6358
  }
5132
6359
  }
5133
6360
  } else {
5134
- const err57 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
6361
+ const err75 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5135
6362
  if (vErrors === null) {
5136
- vErrors = [err57];
6363
+ vErrors = [err75];
5137
6364
  } else {
5138
- vErrors.push(err57);
6365
+ vErrors.push(err75);
5139
6366
  }
5140
6367
  errors++;
5141
6368
  }
5142
6369
  }
5143
6370
  if (data.sequence !== void 0) {
5144
- if (!validate43(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
5145
- vErrors = vErrors === null ? validate43.errors : vErrors.concat(validate43.errors);
6371
+ if (!validate46(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
6372
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
5146
6373
  errors = vErrors.length;
5147
6374
  }
5148
6375
  }
5149
6376
  if (data.state !== void 0) {
5150
- if (!validate45(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
5151
- vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
6377
+ if (!validate48(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
6378
+ vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
5152
6379
  errors = vErrors.length;
5153
6380
  }
5154
6381
  }
5155
6382
  if (data.git !== void 0) {
5156
- if (!validate49(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
5157
- vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
6383
+ if (!validate52(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
6384
+ vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);
5158
6385
  errors = vErrors.length;
5159
6386
  }
5160
6387
  }
5161
6388
  if (data.time !== void 0) {
5162
- if (!validate53(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
5163
- vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
6389
+ if (!validate56(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
6390
+ vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
6391
+ errors = vErrors.length;
6392
+ }
6393
+ }
6394
+ if (data.lineup !== void 0) {
6395
+ if (!validate68(data.lineup, { instancePath: instancePath + "/lineup", parentData: data, parentDataProperty: "lineup", rootData })) {
6396
+ vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
5164
6397
  errors = vErrors.length;
5165
6398
  }
5166
6399
  }
5167
6400
  } else {
5168
- const err58 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6401
+ const err76 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5169
6402
  if (vErrors === null) {
5170
- vErrors = [err58];
6403
+ vErrors = [err76];
5171
6404
  } else {
5172
- vErrors.push(err58);
6405
+ vErrors.push(err76);
5173
6406
  }
5174
6407
  errors++;
5175
6408
  }
@@ -5179,9 +6412,18 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
5179
6412
  var STATE_ENDS = ["start", "finish"];
5180
6413
 
5181
6414
  // src/schema.ts
5182
- var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node"];
6415
+ var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node", "line", "seal", "open", "pick", "stamp"];
5183
6416
  var ABSENT = "#/definitions/absent/not";
5184
- var ABSENT_KINDS = { regions: "sequence / architecture / state", at: "time", into: "time", color: "time", meters: "time" };
6417
+ var ABSENT_KINDS = {
6418
+ regions: "sequence / architecture / state",
6419
+ at: "time",
6420
+ into: "time",
6421
+ color: "time",
6422
+ meters: "time",
6423
+ region: "sequence / architecture / state",
6424
+ icon: "sequence / architecture / state / git / time / tree",
6425
+ link: "sequence / architecture / state / git / time / tree"
6426
+ };
5185
6427
  var NOT_ALLOWED = {
5186
6428
  carry: { field: "text", kind: "tag" }
5187
6429
  };
@@ -5192,6 +6434,10 @@ var TIME_EVENT = /\/events\/items\/not$/u;
5192
6434
  var TIME_EVENTS = ["now", "mark", "span"];
5193
6435
  var TREE_EVENT = /\/events\/items\/allOf\/0\/not$/u;
5194
6436
  var TREE_EVENTS = ["leaf", "node"];
6437
+ var LINEUP_EVENT = "#/definitions/notLineupEvent/not";
6438
+ var LINEUP_EVENTS = ["line", "seal", "open", "pick", "stamp"];
6439
+ var WIRED_EVENT = "#/definitions/notWiredEvent/not";
6440
+ var WIRED_EVENTS = ["edge", "action"];
5195
6441
  var DURATION = /^\^\[0-9\]\+\(\\\.\[0-9\]\+\)\?\(([a-z|]+)\)\$$/u;
5196
6442
  var RATIO = /%\)\$$/u;
5197
6443
  var escape = (key) => key.replaceAll("~", "~0").replaceAll("/", "~1");
@@ -5223,6 +6469,8 @@ function toFieldError(error, errors, m) {
5223
6469
  if (GIT_EVENT.test(error.schemaPath)) return { pointer: at, message: m.kindOnly(GIT_EVENTS, "git") };
5224
6470
  if (TIME_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TIME_EVENTS, "time") };
5225
6471
  if (TREE_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TREE_EVENTS, "tree") };
6472
+ if (error.schemaPath === LINEUP_EVENT) return { pointer: `${at}/type`, message: m.kindOnly(LINEUP_EVENTS, "lineup") };
6473
+ if (error.schemaPath === WIRED_EVENT) return { pointer: `${at}/type`, message: m.kindOnly(WIRED_EVENTS, "sequence / architecture / state / git / time / tree") };
5226
6474
  const last = at.slice(at.lastIndexOf("/") + 1);
5227
6475
  if (error.schemaPath === ABSENT) return { pointer: at, message: m.not({ field: last, kind: ABSENT_KINDS[last] ?? last }) };
5228
6476
  const allowed = NOT_ALLOWED[last];
@@ -5243,6 +6491,8 @@ function toFieldError(error, errors, m) {
5243
6491
  return { pointer: at, message: m.type(String(params.type)) };
5244
6492
  case "minLength":
5245
6493
  return { pointer: at, message: m.minLength(Number(params.limit)) };
6494
+ case "maxLength":
6495
+ return { pointer: at, message: m.maxLength(Number(params.limit)) };
5246
6496
  case "pattern": {
5247
6497
  if (error.schemaPath === URL_RULE) return { pointer: at, message: m.url };
5248
6498
  const pattern = String(params.pattern);
@@ -5255,6 +6505,8 @@ function toFieldError(error, errors, m) {
5255
6505
  }
5256
6506
  case "minItems":
5257
6507
  return { pointer: at, message: m.minItems(Number(params.limit)) };
6508
+ case "maxItems":
6509
+ return { pointer: at, message: m.maxItems(Number(params.limit)) };
5258
6510
  case "minimum":
5259
6511
  return { pointer: at, message: m.minimum(Number(params.limit)) };
5260
6512
  case "const":