@cardenelabs/dragon 0.42.2 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node.js CHANGED
@@ -75,7 +75,7 @@ function ucs2length(str) {
75
75
  return length;
76
76
  }
77
77
  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"] }, "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" } }};
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" } }};
79
79
  function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
80
80
  let vErrors = null;
81
81
  let errors = 0;
@@ -135,34 +135,79 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
135
135
  }
136
136
  }
137
137
  }
138
+ const _errs8 = errors;
139
+ const _errs9 = errors;
140
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
141
+ if (data2.type === void 0 && ("type")) {
142
+ const err3 = {};
143
+ if (vErrors === null) {
144
+ vErrors = [err3];
145
+ } else {
146
+ vErrors.push(err3);
147
+ }
148
+ errors++;
149
+ } else {
150
+ if (data2.type !== void 0) {
151
+ let data4 = data2.type;
152
+ if (!(data4 === "leaf" || data4 === "node")) {
153
+ const err4 = {};
154
+ if (vErrors === null) {
155
+ vErrors = [err4];
156
+ } else {
157
+ vErrors.push(err4);
158
+ }
159
+ errors++;
160
+ }
161
+ }
162
+ }
163
+ }
164
+ var valid9 = _errs9 === errors;
165
+ if (valid9) {
166
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
167
+ if (vErrors === null) {
168
+ vErrors = [err5];
169
+ } else {
170
+ vErrors.push(err5);
171
+ }
172
+ errors++;
173
+ } else {
174
+ errors = _errs8;
175
+ if (vErrors !== null) {
176
+ if (_errs8) {
177
+ vErrors.length = _errs8;
178
+ } else {
179
+ vErrors = null;
180
+ }
181
+ }
182
+ }
138
183
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
139
184
  if (data2.type !== void 0) {
140
- let data4 = data2.type;
141
- const _errs8 = errors;
142
- const _errs9 = errors;
143
- if (!(data4 === "commit" || data4 === "branch")) {
144
- const err3 = {};
185
+ let data5 = data2.type;
186
+ const _errs13 = errors;
187
+ const _errs14 = errors;
188
+ if (!(data5 === "commit" || data5 === "branch")) {
189
+ const err6 = {};
145
190
  if (vErrors === null) {
146
- vErrors = [err3];
191
+ vErrors = [err6];
147
192
  } else {
148
- vErrors.push(err3);
193
+ vErrors.push(err6);
149
194
  }
150
195
  errors++;
151
196
  }
152
- var valid9 = _errs9 === errors;
153
- if (valid9) {
154
- const err4 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
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" };
155
200
  if (vErrors === null) {
156
- vErrors = [err4];
201
+ vErrors = [err7];
157
202
  } else {
158
- vErrors.push(err4);
203
+ vErrors.push(err7);
159
204
  }
160
205
  errors++;
161
206
  } else {
162
- errors = _errs8;
207
+ errors = _errs13;
163
208
  if (vErrors !== null) {
164
- if (_errs8) {
165
- vErrors.length = _errs8;
209
+ if (_errs13) {
210
+ vErrors.length = _errs13;
166
211
  } else {
167
212
  vErrors = null;
168
213
  }
@@ -170,29 +215,29 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
170
215
  }
171
216
  }
172
217
  if (data2.at !== void 0) {
173
- const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
218
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
174
219
  if (vErrors === null) {
175
- vErrors = [err5];
220
+ vErrors = [err8];
176
221
  } else {
177
- vErrors.push(err5);
222
+ vErrors.push(err8);
178
223
  }
179
224
  errors++;
180
225
  }
181
226
  if (data2.into !== void 0) {
182
- const err6 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
227
+ const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
183
228
  if (vErrors === null) {
184
- vErrors = [err6];
229
+ vErrors = [err9];
185
230
  } else {
186
- vErrors.push(err6);
231
+ vErrors.push(err9);
187
232
  }
188
233
  errors++;
189
234
  }
190
235
  if (data2.color !== void 0) {
191
- const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
236
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
192
237
  if (vErrors === null) {
193
- vErrors = [err7];
238
+ vErrors = [err10];
194
239
  } else {
195
- vErrors.push(err7);
240
+ vErrors.push(err10);
196
241
  }
197
242
  errors++;
198
243
  }
@@ -278,35 +323,313 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
278
323
  if (_errs3) {
279
324
  vErrors.length = _errs3;
280
325
  } else {
281
- vErrors = null;
326
+ vErrors = null;
327
+ }
328
+ }
329
+ }
330
+ const _errs8 = errors;
331
+ const _errs9 = errors;
332
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
333
+ if (data2.type === void 0 && ("type")) {
334
+ const err3 = {};
335
+ if (vErrors === null) {
336
+ vErrors = [err3];
337
+ } else {
338
+ vErrors.push(err3);
339
+ }
340
+ errors++;
341
+ } else {
342
+ if (data2.type !== void 0) {
343
+ let data4 = data2.type;
344
+ if (!(data4 === "leaf" || data4 === "node")) {
345
+ const err4 = {};
346
+ if (vErrors === null) {
347
+ vErrors = [err4];
348
+ } else {
349
+ vErrors.push(err4);
350
+ }
351
+ errors++;
352
+ }
353
+ }
354
+ }
355
+ }
356
+ var valid9 = _errs9 === errors;
357
+ if (valid9) {
358
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
359
+ if (vErrors === null) {
360
+ vErrors = [err5];
361
+ } else {
362
+ vErrors.push(err5);
363
+ }
364
+ errors++;
365
+ } else {
366
+ errors = _errs8;
367
+ if (vErrors !== null) {
368
+ if (_errs8) {
369
+ vErrors.length = _errs8;
370
+ } else {
371
+ vErrors = null;
372
+ }
373
+ }
374
+ }
375
+ 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" };
378
+ if (vErrors === null) {
379
+ vErrors = [err6];
380
+ } else {
381
+ vErrors.push(err6);
382
+ }
383
+ errors++;
384
+ }
385
+ 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" };
387
+ if (vErrors === null) {
388
+ vErrors = [err7];
389
+ } else {
390
+ vErrors.push(err7);
391
+ }
392
+ errors++;
393
+ }
394
+ 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" };
396
+ if (vErrors === null) {
397
+ vErrors = [err8];
398
+ } else {
399
+ vErrors.push(err8);
400
+ }
401
+ errors++;
402
+ }
403
+ }
404
+ }
405
+ }
406
+ }
407
+ }
408
+ }
409
+ }
410
+ validate17.errors = vErrors;
411
+ return errors === 0;
412
+ }
413
+ function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
414
+ let vErrors = null;
415
+ let errors = 0;
416
+ if (Array.isArray(data)) {
417
+ const len0 = data.length;
418
+ for (let i0 = 0; i0 < len0; i0++) {
419
+ let data0 = data[i0];
420
+ if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
421
+ if (data0.events !== void 0) {
422
+ let data1 = data0.events;
423
+ if (Array.isArray(data1)) {
424
+ const len1 = data1.length;
425
+ for (let i1 = 0; i1 < len1; i1++) {
426
+ let data2 = data1[i1];
427
+ const _errs4 = errors;
428
+ const _errs5 = errors;
429
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
430
+ if (data2.type === void 0 && ("type")) {
431
+ const err0 = {};
432
+ if (vErrors === null) {
433
+ vErrors = [err0];
434
+ } else {
435
+ vErrors.push(err0);
436
+ }
437
+ errors++;
438
+ } else {
439
+ if (data2.type !== void 0) {
440
+ let data3 = data2.type;
441
+ if (!(data3 === "leaf" || data3 === "node")) {
442
+ const err1 = {};
443
+ if (vErrors === null) {
444
+ vErrors = [err1];
445
+ } else {
446
+ vErrors.push(err1);
447
+ }
448
+ errors++;
449
+ }
450
+ }
451
+ }
452
+ }
453
+ var valid6 = _errs5 === errors;
454
+ if (valid6) {
455
+ const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
456
+ if (vErrors === null) {
457
+ vErrors = [err2];
458
+ } else {
459
+ vErrors.push(err2);
460
+ }
461
+ errors++;
462
+ } else {
463
+ errors = _errs4;
464
+ if (vErrors !== null) {
465
+ if (_errs4) {
466
+ vErrors.length = _errs4;
467
+ } else {
468
+ vErrors = null;
469
+ }
470
+ }
471
+ }
472
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
473
+ 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 = {};
479
+ if (vErrors === null) {
480
+ vErrors = [err3];
481
+ } else {
482
+ vErrors.push(err3);
483
+ }
484
+ errors++;
485
+ }
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" };
489
+ if (vErrors === null) {
490
+ vErrors = [err4];
491
+ } else {
492
+ vErrors.push(err4);
493
+ }
494
+ errors++;
495
+ } else {
496
+ errors = _errs9;
497
+ if (vErrors !== null) {
498
+ if (_errs9) {
499
+ vErrors.length = _errs9;
500
+ } else {
501
+ vErrors = null;
502
+ }
503
+ }
504
+ }
505
+ }
506
+ }
507
+ }
508
+ }
509
+ }
510
+ }
511
+ }
512
+ }
513
+ validate20.errors = vErrors;
514
+ return errors === 0;
515
+ }
516
+ function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
517
+ let vErrors = null;
518
+ let errors = 0;
519
+ if (Array.isArray(data)) {
520
+ const len0 = data.length;
521
+ for (let i0 = 0; i0 < len0; i0++) {
522
+ let data0 = data[i0];
523
+ if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
524
+ if (data0.events !== void 0) {
525
+ let data1 = data0.events;
526
+ if (Array.isArray(data1)) {
527
+ const len1 = data1.length;
528
+ for (let i1 = 0; i1 < len1; i1++) {
529
+ let data2 = data1[i1];
530
+ const _errs3 = errors;
531
+ const _errs4 = errors;
532
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
533
+ if (data2.type === void 0 && ("type")) {
534
+ const err0 = {};
535
+ if (vErrors === null) {
536
+ vErrors = [err0];
537
+ } else {
538
+ vErrors.push(err0);
539
+ }
540
+ errors++;
541
+ } else {
542
+ if (data2.type !== void 0) {
543
+ let data3 = data2.type;
544
+ if (!(data3 === "now" || data3 === "mark" || data3 === "span")) {
545
+ const err1 = {};
546
+ if (vErrors === null) {
547
+ vErrors = [err1];
548
+ } else {
549
+ vErrors.push(err1);
550
+ }
551
+ errors++;
552
+ }
553
+ }
554
+ }
555
+ }
556
+ var valid5 = _errs4 === errors;
557
+ if (valid5) {
558
+ const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/not", keyword: "not", params: {}, message: "must NOT be valid" };
559
+ if (vErrors === null) {
560
+ vErrors = [err2];
561
+ } else {
562
+ vErrors.push(err2);
563
+ }
564
+ errors++;
565
+ } else {
566
+ errors = _errs3;
567
+ if (vErrors !== null) {
568
+ if (_errs3) {
569
+ vErrors.length = _errs3;
570
+ } else {
571
+ vErrors = null;
572
+ }
573
+ }
574
+ }
575
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
576
+ 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 = {};
582
+ if (vErrors === null) {
583
+ vErrors = [err3];
584
+ } else {
585
+ vErrors.push(err3);
586
+ }
587
+ errors++;
588
+ }
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" };
592
+ if (vErrors === null) {
593
+ vErrors = [err4];
594
+ } else {
595
+ vErrors.push(err4);
596
+ }
597
+ errors++;
598
+ } else {
599
+ errors = _errs8;
600
+ if (vErrors !== null) {
601
+ if (_errs8) {
602
+ vErrors.length = _errs8;
603
+ } else {
604
+ vErrors = null;
605
+ }
606
+ }
282
607
  }
283
608
  }
284
- }
285
- if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
286
609
  if (data2.at !== void 0) {
287
- const err3 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
610
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
288
611
  if (vErrors === null) {
289
- vErrors = [err3];
612
+ vErrors = [err5];
290
613
  } else {
291
- vErrors.push(err3);
614
+ vErrors.push(err5);
292
615
  }
293
616
  errors++;
294
617
  }
295
618
  if (data2.into !== void 0) {
296
- const err4 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
619
+ const err6 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
297
620
  if (vErrors === null) {
298
- vErrors = [err4];
621
+ vErrors = [err6];
299
622
  } else {
300
- vErrors.push(err4);
623
+ vErrors.push(err6);
301
624
  }
302
625
  errors++;
303
626
  }
304
627
  if (data2.color !== void 0) {
305
- const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
628
+ const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
306
629
  if (vErrors === null) {
307
- vErrors = [err5];
630
+ vErrors = [err7];
308
631
  } else {
309
- vErrors.push(err5);
632
+ vErrors.push(err7);
310
633
  }
311
634
  errors++;
312
635
  }
@@ -317,13 +640,13 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
317
640
  }
318
641
  }
319
642
  }
320
- validate17.errors = vErrors;
643
+ validate22.errors = vErrors;
321
644
  return errors === 0;
322
645
  }
323
- var schema45 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
646
+ var schema57 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
324
647
  var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
325
648
  var func3 = ucs2length;
326
- function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
649
+ function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
327
650
  let vErrors = null;
328
651
  let errors = 0;
329
652
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -425,7 +748,7 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
425
748
  if (data.color !== void 0) {
426
749
  let data3 = data.color;
427
750
  if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
428
- const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema45.enum }, message: "must be equal to one of the allowed values" };
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" };
429
752
  if (vErrors === null) {
430
753
  vErrors = [err9];
431
754
  } else {
@@ -465,11 +788,11 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
465
788
  }
466
789
  errors++;
467
790
  }
468
- validate22.errors = vErrors;
791
+ validate27.errors = vErrors;
469
792
  return errors === 0;
470
793
  }
471
794
  var pattern3 = new RegExp("^(/|https?://)", "u");
472
- function validate24(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
795
+ function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
473
796
  let vErrors = null;
474
797
  let errors = 0;
475
798
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -571,7 +894,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
571
894
  if (data.color !== void 0) {
572
895
  let data3 = data.color;
573
896
  if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
574
- const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema45.enum }, message: "must be equal to one of the allowed values" };
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" };
575
898
  if (vErrors === null) {
576
899
  vErrors = [err9];
577
900
  } else {
@@ -655,11 +978,11 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
655
978
  }
656
979
  errors++;
657
980
  }
658
- validate24.errors = vErrors;
981
+ validate29.errors = vErrors;
659
982
  return errors === 0;
660
983
  }
661
984
  var pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");
662
- function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
985
+ function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
663
986
  let vErrors = null;
664
987
  let errors = 0;
665
988
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -745,10 +1068,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
745
1068
  }
746
1069
  errors++;
747
1070
  }
748
- validate27.errors = vErrors;
1071
+ validate32.errors = vErrors;
749
1072
  return errors === 0;
750
1073
  }
751
- function validate26(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1074
+ function validate31(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
752
1075
  let vErrors = null;
753
1076
  let errors = 0;
754
1077
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -862,8 +1185,8 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
862
1185
  }
863
1186
  const len1 = data3.length;
864
1187
  for (let i1 = 0; i1 < len1; i1++) {
865
- if (!validate27(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
866
- vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);
1188
+ if (!validate32(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
1189
+ vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
867
1190
  errors = vErrors.length;
868
1191
  }
869
1192
  }
@@ -886,10 +1209,10 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
886
1209
  }
887
1210
  errors++;
888
1211
  }
889
- validate26.errors = vErrors;
1212
+ validate31.errors = vErrors;
890
1213
  return errors === 0;
891
1214
  }
892
- function validate31(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1215
+ function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
893
1216
  let vErrors = null;
894
1217
  let errors = 0;
895
1218
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -975,13 +1298,13 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
975
1298
  }
976
1299
  errors++;
977
1300
  }
978
- validate31.errors = vErrors;
1301
+ validate36.errors = vErrors;
979
1302
  return errors === 0;
980
1303
  }
981
- var schema68 = { "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": "\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" } } }] };
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" } } }] };
982
1305
  var pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");
983
- var schema72 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
984
- function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1306
+ var schema84 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
1307
+ function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
985
1308
  let vErrors = null;
986
1309
  let errors = 0;
987
1310
  const _errs1 = errors;
@@ -1107,7 +1430,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
1107
1430
  if (data.kind !== void 0) {
1108
1431
  let data1 = data.kind;
1109
1432
  if (!(data1 === "envelope" || data1 === "tag" || data1 === "coin" || data1 === "none")) {
1110
- const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema72.properties.kind.enum }, message: "must be equal to one of the allowed values" };
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" };
1111
1434
  if (vErrors === null) {
1112
1435
  vErrors = [err8];
1113
1436
  } else {
@@ -1147,10 +1470,10 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
1147
1470
  }
1148
1471
  errors++;
1149
1472
  }
1150
- validate34.errors = vErrors;
1473
+ validate39.errors = vErrors;
1151
1474
  return errors === 0;
1152
1475
  }
1153
- function validate33(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1476
+ function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1154
1477
  let vErrors = null;
1155
1478
  let errors = 0;
1156
1479
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1292,15 +1615,15 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
1292
1615
  }
1293
1616
  }
1294
1617
  if (data.carry !== void 0) {
1295
- if (!validate34(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
1296
- vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
1618
+ if (!validate39(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
1619
+ vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
1297
1620
  errors = vErrors.length;
1298
1621
  }
1299
1622
  }
1300
1623
  if (data.labelSide !== void 0) {
1301
1624
  let data5 = data.labelSide;
1302
1625
  if (!(data5 === "above" || data5 === "below" || data5 === "left" || data5 === "right")) {
1303
- const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues: schema68.oneOf[0].properties.labelSide.enum }, message: "must be equal to one of the allowed values" };
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" };
1304
1627
  if (vErrors === null) {
1305
1628
  vErrors = [err13];
1306
1629
  } else {
@@ -1566,7 +1889,7 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
1566
1889
  if (data.color !== void 0) {
1567
1890
  let data14 = data.color;
1568
1891
  if (!(data14 === "blue" || data14 === "amber" || data14 === "green" || data14 === "violet" || data14 === "rose" || data14 === "slate" || data14 === "coin")) {
1569
- const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema45.enum }, message: "must be equal to one of the allowed values" };
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" };
1570
1893
  if (vErrors === null) {
1571
1894
  vErrors = [err38];
1572
1895
  } else {
@@ -2094,7 +2417,7 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
2094
2417
  if (data.color !== void 0) {
2095
2418
  let data31 = data.color;
2096
2419
  if (!(data31 === "blue" || data31 === "amber" || data31 === "green" || data31 === "violet" || data31 === "rose" || data31 === "slate" || data31 === "coin")) {
2097
- const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema45.enum }, message: "must be equal to one of the allowed values" };
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" };
2098
2421
  if (vErrors === null) {
2099
2422
  vErrors = [err88];
2100
2423
  } else {
@@ -2126,198 +2449,442 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
2126
2449
  if (data.from === void 0) {
2127
2450
  const err91 = { instancePath, schemaPath: "#/oneOf/7/required", keyword: "required", params: { missingProperty: "from" }, message: "must have required property 'from'" };
2128
2451
  if (vErrors === null) {
2129
- vErrors = [err91];
2452
+ vErrors = [err91];
2453
+ } else {
2454
+ vErrors.push(err91);
2455
+ }
2456
+ errors++;
2457
+ }
2458
+ if (data.to === void 0) {
2459
+ const err92 = { instancePath, schemaPath: "#/oneOf/7/required", keyword: "required", params: { missingProperty: "to" }, message: "must have required property 'to'" };
2460
+ if (vErrors === null) {
2461
+ vErrors = [err92];
2462
+ } else {
2463
+ vErrors.push(err92);
2464
+ }
2465
+ errors++;
2466
+ }
2467
+ if (data.text === void 0) {
2468
+ const err93 = { instancePath, schemaPath: "#/oneOf/7/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
2469
+ if (vErrors === null) {
2470
+ vErrors = [err93];
2471
+ } else {
2472
+ vErrors.push(err93);
2473
+ }
2474
+ errors++;
2475
+ }
2476
+ for (const key7 in data) {
2477
+ if (!(key7 === "type" || key7 === "from" || key7 === "to" || key7 === "text" || key7 === "shape" || key7 === "color")) {
2478
+ const err94 = { instancePath, schemaPath: "#/oneOf/7/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key7 }, message: "must NOT have additional properties" };
2479
+ if (vErrors === null) {
2480
+ vErrors = [err94];
2481
+ } else {
2482
+ vErrors.push(err94);
2483
+ }
2484
+ errors++;
2485
+ }
2486
+ }
2487
+ if (data.type !== void 0) {
2488
+ if ("span" !== data.type) {
2489
+ const err95 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/7/properties/type/const", keyword: "const", params: { allowedValue: "span" }, message: "must be equal to constant" };
2490
+ if (vErrors === null) {
2491
+ vErrors = [err95];
2492
+ } else {
2493
+ vErrors.push(err95);
2494
+ }
2495
+ errors++;
2496
+ }
2497
+ }
2498
+ if (data.from !== void 0) {
2499
+ let data33 = data.from;
2500
+ if (!(typeof data33 == "number" && (!(data33 % 1) && !isNaN(data33)) && isFinite(data33))) {
2501
+ const err96 = { instancePath: instancePath + "/from", schemaPath: "#/definitions/unit/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
2502
+ if (vErrors === null) {
2503
+ vErrors = [err96];
2504
+ } else {
2505
+ vErrors.push(err96);
2506
+ }
2507
+ errors++;
2508
+ }
2509
+ if (typeof data33 == "number" && isFinite(data33)) {
2510
+ if (data33 < 0 || isNaN(data33)) {
2511
+ const err97 = { instancePath: instancePath + "/from", schemaPath: "#/definitions/unit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
2512
+ if (vErrors === null) {
2513
+ vErrors = [err97];
2514
+ } else {
2515
+ vErrors.push(err97);
2516
+ }
2517
+ errors++;
2518
+ }
2519
+ }
2520
+ }
2521
+ if (data.to !== void 0) {
2522
+ let data34 = data.to;
2523
+ if (!(typeof data34 == "number" && (!(data34 % 1) && !isNaN(data34)) && isFinite(data34))) {
2524
+ const err98 = { instancePath: instancePath + "/to", schemaPath: "#/definitions/unit/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
2525
+ if (vErrors === null) {
2526
+ vErrors = [err98];
2527
+ } else {
2528
+ vErrors.push(err98);
2529
+ }
2530
+ errors++;
2531
+ }
2532
+ if (typeof data34 == "number" && isFinite(data34)) {
2533
+ if (data34 < 0 || isNaN(data34)) {
2534
+ const err99 = { instancePath: instancePath + "/to", schemaPath: "#/definitions/unit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
2535
+ if (vErrors === null) {
2536
+ vErrors = [err99];
2537
+ } else {
2538
+ vErrors.push(err99);
2539
+ }
2540
+ errors++;
2541
+ }
2542
+ }
2543
+ }
2544
+ if (data.text !== void 0) {
2545
+ let data35 = data.text;
2546
+ if (typeof data35 === "string") {
2547
+ if (func3(data35) < 1) {
2548
+ const err100 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2549
+ if (vErrors === null) {
2550
+ vErrors = [err100];
2551
+ } else {
2552
+ vErrors.push(err100);
2553
+ }
2554
+ errors++;
2555
+ }
2556
+ } else {
2557
+ const err101 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2558
+ if (vErrors === null) {
2559
+ vErrors = [err101];
2560
+ } else {
2561
+ vErrors.push(err101);
2562
+ }
2563
+ errors++;
2564
+ }
2565
+ }
2566
+ if (data.shape !== void 0) {
2567
+ 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" };
2569
+ if (vErrors === null) {
2570
+ vErrors = [err102];
2571
+ } else {
2572
+ vErrors.push(err102);
2573
+ }
2574
+ errors++;
2575
+ }
2576
+ }
2577
+ if (data.color !== void 0) {
2578
+ let data37 = data.color;
2579
+ 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" };
2581
+ if (vErrors === null) {
2582
+ vErrors = [err103];
2583
+ } else {
2584
+ vErrors.push(err103);
2585
+ }
2586
+ errors++;
2587
+ }
2588
+ }
2589
+ } else {
2590
+ const err104 = { instancePath, schemaPath: "#/oneOf/7/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2591
+ if (vErrors === null) {
2592
+ vErrors = [err104];
2593
+ } else {
2594
+ vErrors.push(err104);
2595
+ }
2596
+ errors++;
2597
+ }
2598
+ } else if (tag0 === "leaf") {
2599
+ if (data && typeof data == "object" && !Array.isArray(data)) {
2600
+ if (data.type === void 0) {
2601
+ const err105 = { instancePath, schemaPath: "#/oneOf/8/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
2602
+ if (vErrors === null) {
2603
+ vErrors = [err105];
2604
+ } else {
2605
+ vErrors.push(err105);
2606
+ }
2607
+ errors++;
2608
+ }
2609
+ if (data.id === void 0) {
2610
+ const err106 = { instancePath, schemaPath: "#/oneOf/8/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
2611
+ if (vErrors === null) {
2612
+ vErrors = [err106];
2613
+ } else {
2614
+ vErrors.push(err106);
2615
+ }
2616
+ errors++;
2617
+ }
2618
+ for (const key8 in data) {
2619
+ if (!(key8 === "type" || key8 === "id" || key8 === "hash")) {
2620
+ const err107 = { instancePath, schemaPath: "#/oneOf/8/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key8 }, message: "must NOT have additional properties" };
2621
+ if (vErrors === null) {
2622
+ vErrors = [err107];
2623
+ } else {
2624
+ vErrors.push(err107);
2625
+ }
2626
+ errors++;
2627
+ }
2628
+ }
2629
+ if (data.type !== void 0) {
2630
+ if ("leaf" !== data.type) {
2631
+ const err108 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/8/properties/type/const", keyword: "const", params: { allowedValue: "leaf" }, message: "must be equal to constant" };
2632
+ if (vErrors === null) {
2633
+ vErrors = [err108];
2634
+ } else {
2635
+ vErrors.push(err108);
2636
+ }
2637
+ errors++;
2638
+ }
2639
+ }
2640
+ if (data.id !== void 0) {
2641
+ let data39 = data.id;
2642
+ if (typeof data39 === "string") {
2643
+ if (!pattern0.test(data39)) {
2644
+ const err109 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
2645
+ if (vErrors === null) {
2646
+ vErrors = [err109];
2647
+ } else {
2648
+ vErrors.push(err109);
2649
+ }
2650
+ errors++;
2651
+ }
2652
+ } else {
2653
+ const err110 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2654
+ if (vErrors === null) {
2655
+ vErrors = [err110];
2656
+ } else {
2657
+ vErrors.push(err110);
2658
+ }
2659
+ errors++;
2660
+ }
2661
+ }
2662
+ if (data.hash !== void 0) {
2663
+ let data40 = data.hash;
2664
+ if (typeof data40 === "string") {
2665
+ if (!pattern14.test(data40)) {
2666
+ const err111 = { 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}$"' };
2667
+ if (vErrors === null) {
2668
+ vErrors = [err111];
2669
+ } else {
2670
+ vErrors.push(err111);
2671
+ }
2672
+ errors++;
2673
+ }
2674
+ } else {
2675
+ const err112 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2676
+ if (vErrors === null) {
2677
+ vErrors = [err112];
2678
+ } else {
2679
+ vErrors.push(err112);
2680
+ }
2681
+ errors++;
2682
+ }
2683
+ }
2684
+ } else {
2685
+ const err113 = { instancePath, schemaPath: "#/oneOf/8/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2686
+ if (vErrors === null) {
2687
+ vErrors = [err113];
2688
+ } else {
2689
+ vErrors.push(err113);
2690
+ }
2691
+ errors++;
2692
+ }
2693
+ } else if (tag0 === "node") {
2694
+ if (data && typeof data == "object" && !Array.isArray(data)) {
2695
+ if (data.type === void 0) {
2696
+ const err114 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
2697
+ if (vErrors === null) {
2698
+ vErrors = [err114];
2130
2699
  } else {
2131
- vErrors.push(err91);
2700
+ vErrors.push(err114);
2132
2701
  }
2133
2702
  errors++;
2134
2703
  }
2135
- if (data.to === void 0) {
2136
- const err92 = { instancePath, schemaPath: "#/oneOf/7/required", keyword: "required", params: { missingProperty: "to" }, message: "must have required property 'to'" };
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'" };
2137
2706
  if (vErrors === null) {
2138
- vErrors = [err92];
2707
+ vErrors = [err115];
2139
2708
  } else {
2140
- vErrors.push(err92);
2709
+ vErrors.push(err115);
2141
2710
  }
2142
2711
  errors++;
2143
2712
  }
2144
- if (data.text === void 0) {
2145
- const err93 = { instancePath, schemaPath: "#/oneOf/7/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
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'" };
2146
2715
  if (vErrors === null) {
2147
- vErrors = [err93];
2716
+ vErrors = [err116];
2148
2717
  } else {
2149
- vErrors.push(err93);
2718
+ vErrors.push(err116);
2150
2719
  }
2151
2720
  errors++;
2152
2721
  }
2153
- for (const key7 in data) {
2154
- if (!(key7 === "type" || key7 === "from" || key7 === "to" || key7 === "text" || key7 === "shape" || key7 === "color")) {
2155
- const err94 = { instancePath, schemaPath: "#/oneOf/7/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key7 }, message: "must NOT have additional properties" };
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" };
2156
2725
  if (vErrors === null) {
2157
- vErrors = [err94];
2726
+ vErrors = [err117];
2158
2727
  } else {
2159
- vErrors.push(err94);
2728
+ vErrors.push(err117);
2160
2729
  }
2161
2730
  errors++;
2162
2731
  }
2163
2732
  }
2164
2733
  if (data.type !== void 0) {
2165
- if ("span" !== data.type) {
2166
- const err95 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/7/properties/type/const", keyword: "const", params: { allowedValue: "span" }, message: "must be equal to constant" };
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" };
2167
2736
  if (vErrors === null) {
2168
- vErrors = [err95];
2737
+ vErrors = [err118];
2169
2738
  } else {
2170
- vErrors.push(err95);
2739
+ vErrors.push(err118);
2171
2740
  }
2172
2741
  errors++;
2173
2742
  }
2174
2743
  }
2175
- if (data.from !== void 0) {
2176
- let data33 = data.from;
2177
- if (!(typeof data33 == "number" && (!(data33 % 1) && !isNaN(data33)) && isFinite(data33))) {
2178
- const err96 = { instancePath: instancePath + "/from", schemaPath: "#/definitions/unit/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
2179
- if (vErrors === null) {
2180
- vErrors = [err96];
2181
- } else {
2182
- vErrors.push(err96);
2183
- }
2184
- errors++;
2185
- }
2186
- if (typeof data33 == "number" && isFinite(data33)) {
2187
- if (data33 < 0 || isNaN(data33)) {
2188
- const err97 = { instancePath: instancePath + "/from", schemaPath: "#/definitions/unit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
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=:]+$"' };
2189
2749
  if (vErrors === null) {
2190
- vErrors = [err97];
2750
+ vErrors = [err119];
2191
2751
  } else {
2192
- vErrors.push(err97);
2752
+ vErrors.push(err119);
2193
2753
  }
2194
2754
  errors++;
2195
2755
  }
2196
- }
2197
- }
2198
- if (data.to !== void 0) {
2199
- let data34 = data.to;
2200
- if (!(typeof data34 == "number" && (!(data34 % 1) && !isNaN(data34)) && isFinite(data34))) {
2201
- const err98 = { instancePath: instancePath + "/to", schemaPath: "#/definitions/unit/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
2756
+ } else {
2757
+ const err120 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2202
2758
  if (vErrors === null) {
2203
- vErrors = [err98];
2759
+ vErrors = [err120];
2204
2760
  } else {
2205
- vErrors.push(err98);
2761
+ vErrors.push(err120);
2206
2762
  }
2207
2763
  errors++;
2208
2764
  }
2209
- if (typeof data34 == "number" && isFinite(data34)) {
2210
- if (data34 < 0 || isNaN(data34)) {
2211
- const err99 = { instancePath: instancePath + "/to", schemaPath: "#/definitions/unit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
2765
+ }
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" };
2212
2771
  if (vErrors === null) {
2213
- vErrors = [err99];
2772
+ vErrors = [err121];
2214
2773
  } else {
2215
- vErrors.push(err99);
2774
+ vErrors.push(err121);
2216
2775
  }
2217
2776
  errors++;
2218
2777
  }
2219
- }
2220
- }
2221
- if (data.text !== void 0) {
2222
- let data35 = data.text;
2223
- if (typeof data35 === "string") {
2224
- if (func3(data35) < 1) {
2225
- const err100 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2226
- if (vErrors === null) {
2227
- vErrors = [err100];
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
+ }
2228
2791
  } else {
2229
- vErrors.push(err100);
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++;
2230
2799
  }
2231
- errors++;
2232
2800
  }
2233
2801
  } else {
2234
- const err101 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2802
+ const err124 = { instancePath: instancePath + "/children", schemaPath: "#/oneOf/9/properties/children/type", keyword: "type", params: { type: "array" }, message: "must be array" };
2235
2803
  if (vErrors === null) {
2236
- vErrors = [err101];
2804
+ vErrors = [err124];
2237
2805
  } else {
2238
- vErrors.push(err101);
2806
+ vErrors.push(err124);
2239
2807
  }
2240
2808
  errors++;
2241
2809
  }
2242
2810
  }
2243
- if (data.shape !== void 0) {
2244
- if (!(data.shape === "box")) {
2245
- const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues: schema68.oneOf[7].properties.shape.enum }, message: "must be equal to one of the allowed values" };
2246
- if (vErrors === null) {
2247
- vErrors = [err102];
2248
- } else {
2249
- vErrors.push(err102);
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}$"' };
2816
+ if (vErrors === null) {
2817
+ vErrors = [err125];
2818
+ } else {
2819
+ vErrors.push(err125);
2820
+ }
2821
+ errors++;
2250
2822
  }
2251
- errors++;
2252
- }
2253
- }
2254
- if (data.color !== void 0) {
2255
- let data37 = data.color;
2256
- if (!(data37 === "blue" || data37 === "amber" || data37 === "green" || data37 === "violet" || data37 === "rose" || data37 === "slate" || data37 === "coin")) {
2257
- const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema45.enum }, message: "must be equal to one of the allowed values" };
2823
+ } else {
2824
+ const err126 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2258
2825
  if (vErrors === null) {
2259
- vErrors = [err103];
2826
+ vErrors = [err126];
2260
2827
  } else {
2261
- vErrors.push(err103);
2828
+ vErrors.push(err126);
2262
2829
  }
2263
2830
  errors++;
2264
2831
  }
2265
2832
  }
2266
2833
  } else {
2267
- const err104 = { instancePath, schemaPath: "#/oneOf/7/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2834
+ const err127 = { instancePath, schemaPath: "#/oneOf/9/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2268
2835
  if (vErrors === null) {
2269
- vErrors = [err104];
2836
+ vErrors = [err127];
2270
2837
  } else {
2271
- vErrors.push(err104);
2838
+ vErrors.push(err127);
2272
2839
  }
2273
2840
  errors++;
2274
2841
  }
2275
2842
  } else if (tag0 === "strip") {
2276
- const _errs117 = errors;
2277
- let valid45 = false;
2278
- const _errs118 = errors;
2843
+ const _errs142 = errors;
2844
+ let valid56 = false;
2845
+ const _errs143 = errors;
2279
2846
  if (data && typeof data == "object" && !Array.isArray(data)) {
2280
2847
  if (data.value === void 0) {
2281
- const err105 = { instancePath, schemaPath: "#/oneOf/8/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
2848
+ const err128 = { instancePath, schemaPath: "#/oneOf/10/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
2282
2849
  if (vErrors === null) {
2283
- vErrors = [err105];
2850
+ vErrors = [err128];
2284
2851
  } else {
2285
- vErrors.push(err105);
2852
+ vErrors.push(err128);
2286
2853
  }
2287
2854
  errors++;
2288
2855
  }
2289
2856
  }
2290
- var _valid0 = _errs118 === errors;
2291
- valid45 = valid45 || _valid0;
2292
- if (!valid45) {
2293
- const _errs119 = errors;
2857
+ var _valid0 = _errs143 === errors;
2858
+ valid56 = valid56 || _valid0;
2859
+ if (!valid56) {
2860
+ const _errs144 = errors;
2294
2861
  if (data && typeof data == "object" && !Array.isArray(data)) {
2295
2862
  if (data.tag === void 0) {
2296
- const err106 = { instancePath, schemaPath: "#/oneOf/8/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
2863
+ const err129 = { instancePath, schemaPath: "#/oneOf/10/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
2297
2864
  if (vErrors === null) {
2298
- vErrors = [err106];
2865
+ vErrors = [err129];
2299
2866
  } else {
2300
- vErrors.push(err106);
2867
+ vErrors.push(err129);
2301
2868
  }
2302
2869
  errors++;
2303
2870
  }
2304
2871
  }
2305
- var _valid0 = _errs119 === errors;
2306
- valid45 = valid45 || _valid0;
2872
+ var _valid0 = _errs144 === errors;
2873
+ valid56 = valid56 || _valid0;
2307
2874
  }
2308
- if (!valid45) {
2309
- const err107 = { instancePath, schemaPath: "#/oneOf/8/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2875
+ if (!valid56) {
2876
+ const err130 = { instancePath, schemaPath: "#/oneOf/10/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2310
2877
  if (vErrors === null) {
2311
- vErrors = [err107];
2878
+ vErrors = [err130];
2312
2879
  } else {
2313
- vErrors.push(err107);
2880
+ vErrors.push(err130);
2314
2881
  }
2315
2882
  errors++;
2316
2883
  } else {
2317
- errors = _errs117;
2884
+ errors = _errs142;
2318
2885
  if (vErrors !== null) {
2319
- if (_errs117) {
2320
- vErrors.length = _errs117;
2886
+ if (_errs142) {
2887
+ vErrors.length = _errs142;
2321
2888
  } else {
2322
2889
  vErrors = null;
2323
2890
  }
@@ -2325,151 +2892,151 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
2325
2892
  }
2326
2893
  if (data && typeof data == "object" && !Array.isArray(data)) {
2327
2894
  if (data.type === void 0) {
2328
- const err108 = { instancePath, schemaPath: "#/oneOf/8/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
2895
+ const err131 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
2329
2896
  if (vErrors === null) {
2330
- vErrors = [err108];
2897
+ vErrors = [err131];
2331
2898
  } else {
2332
- vErrors.push(err108);
2899
+ vErrors.push(err131);
2333
2900
  }
2334
2901
  errors++;
2335
2902
  }
2336
2903
  if (data.field === void 0) {
2337
- const err109 = { instancePath, schemaPath: "#/oneOf/8/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
2904
+ const err132 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
2338
2905
  if (vErrors === null) {
2339
- vErrors = [err109];
2906
+ vErrors = [err132];
2340
2907
  } else {
2341
- vErrors.push(err109);
2908
+ vErrors.push(err132);
2342
2909
  }
2343
2910
  errors++;
2344
2911
  }
2345
- for (const key8 in data) {
2346
- if (!(key8 === "type" || key8 === "field" || key8 === "value" || key8 === "tag")) {
2347
- const err110 = { instancePath, schemaPath: "#/oneOf/8/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key8 }, message: "must NOT have additional properties" };
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" };
2348
2915
  if (vErrors === null) {
2349
- vErrors = [err110];
2916
+ vErrors = [err133];
2350
2917
  } else {
2351
- vErrors.push(err110);
2918
+ vErrors.push(err133);
2352
2919
  }
2353
2920
  errors++;
2354
2921
  }
2355
2922
  }
2356
2923
  if (data.type !== void 0) {
2357
2924
  if ("strip" !== data.type) {
2358
- const err111 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/8/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
2925
+ const err134 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
2359
2926
  if (vErrors === null) {
2360
- vErrors = [err111];
2927
+ vErrors = [err134];
2361
2928
  } else {
2362
- vErrors.push(err111);
2929
+ vErrors.push(err134);
2363
2930
  }
2364
2931
  errors++;
2365
2932
  }
2366
2933
  }
2367
2934
  if (data.field !== void 0) {
2368
- let data39 = data.field;
2369
- if (typeof data39 === "string") {
2370
- if (func3(data39) < 1) {
2371
- const err112 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
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" };
2372
2939
  if (vErrors === null) {
2373
- vErrors = [err112];
2940
+ vErrors = [err135];
2374
2941
  } else {
2375
- vErrors.push(err112);
2942
+ vErrors.push(err135);
2376
2943
  }
2377
2944
  errors++;
2378
2945
  }
2379
2946
  } else {
2380
- const err113 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2947
+ const err136 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2381
2948
  if (vErrors === null) {
2382
- vErrors = [err113];
2949
+ vErrors = [err136];
2383
2950
  } else {
2384
- vErrors.push(err113);
2951
+ vErrors.push(err136);
2385
2952
  }
2386
2953
  errors++;
2387
2954
  }
2388
2955
  }
2389
2956
  if (data.value !== void 0) {
2390
- let data40 = data.value;
2391
- if (typeof data40 === "string") {
2392
- if (func3(data40) < 1) {
2393
- const err114 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
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" };
2394
2961
  if (vErrors === null) {
2395
- vErrors = [err114];
2962
+ vErrors = [err137];
2396
2963
  } else {
2397
- vErrors.push(err114);
2964
+ vErrors.push(err137);
2398
2965
  }
2399
2966
  errors++;
2400
2967
  }
2401
2968
  } else {
2402
- const err115 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2969
+ const err138 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2403
2970
  if (vErrors === null) {
2404
- vErrors = [err115];
2971
+ vErrors = [err138];
2405
2972
  } else {
2406
- vErrors.push(err115);
2973
+ vErrors.push(err138);
2407
2974
  }
2408
2975
  errors++;
2409
2976
  }
2410
2977
  }
2411
2978
  if (data.tag !== void 0) {
2412
- let data41 = data.tag;
2413
- if (typeof data41 === "string") {
2414
- if (func3(data41) < 1) {
2415
- const err116 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
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" };
2416
2983
  if (vErrors === null) {
2417
- vErrors = [err116];
2984
+ vErrors = [err139];
2418
2985
  } else {
2419
- vErrors.push(err116);
2986
+ vErrors.push(err139);
2420
2987
  }
2421
2988
  errors++;
2422
2989
  }
2423
2990
  } else {
2424
- const err117 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2991
+ const err140 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2425
2992
  if (vErrors === null) {
2426
- vErrors = [err117];
2993
+ vErrors = [err140];
2427
2994
  } else {
2428
- vErrors.push(err117);
2995
+ vErrors.push(err140);
2429
2996
  }
2430
2997
  errors++;
2431
2998
  }
2432
2999
  }
2433
3000
  } else {
2434
- const err118 = { instancePath, schemaPath: "#/oneOf/8/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3001
+ const err141 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2435
3002
  if (vErrors === null) {
2436
- vErrors = [err118];
3003
+ vErrors = [err141];
2437
3004
  } else {
2438
- vErrors.push(err118);
3005
+ vErrors.push(err141);
2439
3006
  }
2440
3007
  errors++;
2441
3008
  }
2442
3009
  } else {
2443
- const err119 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
3010
+ const err142 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
2444
3011
  if (vErrors === null) {
2445
- vErrors = [err119];
3012
+ vErrors = [err142];
2446
3013
  } else {
2447
- vErrors.push(err119);
3014
+ vErrors.push(err142);
2448
3015
  }
2449
3016
  errors++;
2450
3017
  }
2451
3018
  } else {
2452
- const err120 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
3019
+ const err143 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
2453
3020
  if (vErrors === null) {
2454
- vErrors = [err120];
3021
+ vErrors = [err143];
2455
3022
  } else {
2456
- vErrors.push(err120);
3023
+ vErrors.push(err143);
2457
3024
  }
2458
3025
  errors++;
2459
3026
  }
2460
3027
  } else {
2461
- const err121 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3028
+ const err144 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2462
3029
  if (vErrors === null) {
2463
- vErrors = [err121];
3030
+ vErrors = [err144];
2464
3031
  } else {
2465
- vErrors.push(err121);
3032
+ vErrors.push(err144);
2466
3033
  }
2467
3034
  errors++;
2468
3035
  }
2469
- validate33.errors = vErrors;
3036
+ validate38.errors = vErrors;
2470
3037
  return errors === 0;
2471
3038
  }
2472
- function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3039
+ function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2473
3040
  let vErrors = null;
2474
3041
  let errors = 0;
2475
3042
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -2591,8 +3158,8 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
2591
3158
  }
2592
3159
  const len0 = data3.length;
2593
3160
  for (let i0 = 0; i0 < len0; i0++) {
2594
- if (!validate31(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
2595
- vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
3161
+ if (!validate36(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
3162
+ vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);
2596
3163
  errors = vErrors.length;
2597
3164
  }
2598
3165
  }
@@ -2611,8 +3178,8 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
2611
3178
  if (Array.isArray(data5)) {
2612
3179
  const len1 = data5.length;
2613
3180
  for (let i1 = 0; i1 < len1; i1++) {
2614
- if (!validate33(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
2615
- vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);
3181
+ if (!validate38(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
3182
+ vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
2616
3183
  errors = vErrors.length;
2617
3184
  }
2618
3185
  }
@@ -2635,10 +3202,10 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
2635
3202
  }
2636
3203
  errors++;
2637
3204
  }
2638
- validate30.errors = vErrors;
3205
+ validate35.errors = vErrors;
2639
3206
  return errors === 0;
2640
3207
  }
2641
- function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3208
+ function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2642
3209
  let vErrors = null;
2643
3210
  let errors = 0;
2644
3211
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -2716,10 +3283,10 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
2716
3283
  }
2717
3284
  errors++;
2718
3285
  }
2719
- validate38.errors = vErrors;
3286
+ validate43.errors = vErrors;
2720
3287
  return errors === 0;
2721
3288
  }
2722
- function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3289
+ function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2723
3290
  let vErrors = null;
2724
3291
  let errors = 0;
2725
3292
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -2827,10 +3394,10 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
2827
3394
  }
2828
3395
  errors++;
2829
3396
  }
2830
- validate41.errors = vErrors;
3397
+ validate46.errors = vErrors;
2831
3398
  return errors === 0;
2832
3399
  }
2833
- function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3400
+ function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2834
3401
  let vErrors = null;
2835
3402
  let errors = 0;
2836
3403
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -2868,8 +3435,8 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
2868
3435
  }
2869
3436
  const len0 = data0.length;
2870
3437
  for (let i0 = 0; i0 < len0; i0++) {
2871
- if (!validate41(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
2872
- vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
3438
+ if (!validate46(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
3439
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
2873
3440
  errors = vErrors.length;
2874
3441
  }
2875
3442
  }
@@ -2892,10 +3459,10 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
2892
3459
  }
2893
3460
  errors++;
2894
3461
  }
2895
- validate40.errors = vErrors;
3462
+ validate45.errors = vErrors;
2896
3463
  return errors === 0;
2897
3464
  }
2898
- function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3465
+ function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2899
3466
  let vErrors = null;
2900
3467
  let errors = 0;
2901
3468
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -2972,10 +3539,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
2972
3539
  }
2973
3540
  errors++;
2974
3541
  }
2975
- validate45.errors = vErrors;
3542
+ validate50.errors = vErrors;
2976
3543
  return errors === 0;
2977
3544
  }
2978
- function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3545
+ function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2979
3546
  let vErrors = null;
2980
3547
  let errors = 0;
2981
3548
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3013,8 +3580,8 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
3013
3580
  }
3014
3581
  const len0 = data0.length;
3015
3582
  for (let i0 = 0; i0 < len0; i0++) {
3016
- if (!validate45(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
3017
- vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
3583
+ if (!validate50(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
3584
+ vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
3018
3585
  errors = vErrors.length;
3019
3586
  }
3020
3587
  }
@@ -3037,11 +3604,11 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
3037
3604
  }
3038
3605
  errors++;
3039
3606
  }
3040
- validate44.errors = vErrors;
3607
+ validate49.errors = vErrors;
3041
3608
  return errors === 0;
3042
3609
  }
3043
- var pattern22 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
3044
- function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3610
+ var pattern27 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
3611
+ function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3045
3612
  let vErrors = null;
3046
3613
  let errors = 0;
3047
3614
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3108,7 +3675,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
3108
3675
  if (data.length !== void 0) {
3109
3676
  let data1 = data.length;
3110
3677
  if (typeof data1 === "string") {
3111
- if (!pattern22.test(data1)) {
3678
+ if (!pattern27.test(data1)) {
3112
3679
  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)$"' };
3113
3680
  if (vErrors === null) {
3114
3681
  vErrors = [err6];
@@ -3182,10 +3749,10 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
3182
3749
  }
3183
3750
  errors++;
3184
3751
  }
3185
- validate49.errors = vErrors;
3752
+ validate54.errors = vErrors;
3186
3753
  return errors === 0;
3187
3754
  }
3188
- function validate51(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3755
+ function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3189
3756
  let vErrors = null;
3190
3757
  let errors = 0;
3191
3758
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3295,10 +3862,10 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
3295
3862
  }
3296
3863
  errors++;
3297
3864
  }
3298
- validate51.errors = vErrors;
3865
+ validate56.errors = vErrors;
3299
3866
  return errors === 0;
3300
3867
  }
3301
- function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3868
+ function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3302
3869
  let vErrors = null;
3303
3870
  let errors = 0;
3304
3871
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3378,7 +3945,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
3378
3945
  if (data.color !== void 0) {
3379
3946
  let data2 = data.color;
3380
3947
  if (!(data2 === "blue" || data2 === "amber" || data2 === "green" || data2 === "violet" || data2 === "rose" || data2 === "slate" || data2 === "coin")) {
3381
- const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema45.enum }, message: "must be equal to one of the allowed values" };
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" };
3382
3949
  if (vErrors === null) {
3383
3950
  vErrors = [err7];
3384
3951
  } else {
@@ -3433,10 +4000,10 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
3433
4000
  }
3434
4001
  errors++;
3435
4002
  }
3436
- validate53.errors = vErrors;
4003
+ validate58.errors = vErrors;
3437
4004
  return errors === 0;
3438
4005
  }
3439
- function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4006
+ function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3440
4007
  let vErrors = null;
3441
4008
  let errors = 0;
3442
4009
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3523,10 +4090,10 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
3523
4090
  }
3524
4091
  errors++;
3525
4092
  }
3526
- validate55.errors = vErrors;
4093
+ validate60.errors = vErrors;
3527
4094
  return errors === 0;
3528
4095
  }
3529
- function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4096
+ function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3530
4097
  let vErrors = null;
3531
4098
  let errors = 0;
3532
4099
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3614,10 +4181,10 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
3614
4181
  }
3615
4182
  errors++;
3616
4183
  }
3617
- validate57.errors = vErrors;
4184
+ validate62.errors = vErrors;
3618
4185
  return errors === 0;
3619
4186
  }
3620
- function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4187
+ function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3621
4188
  let vErrors = null;
3622
4189
  let errors = 0;
3623
4190
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3651,14 +4218,14 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
3651
4218
  }
3652
4219
  }
3653
4220
  if (data.scale !== void 0) {
3654
- if (!validate49(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
3655
- vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
4221
+ if (!validate54(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
4222
+ vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);
3656
4223
  errors = vErrors.length;
3657
4224
  }
3658
4225
  }
3659
4226
  if (data.period !== void 0) {
3660
- if (!validate51(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
3661
- vErrors = vErrors === null ? validate51.errors : vErrors.concat(validate51.errors);
4227
+ if (!validate56(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
4228
+ vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
3662
4229
  errors = vErrors.length;
3663
4230
  }
3664
4231
  }
@@ -3676,8 +4243,8 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
3676
4243
  }
3677
4244
  const len0 = data2.length;
3678
4245
  for (let i0 = 0; i0 < len0; i0++) {
3679
- if (!validate53(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
3680
- vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
4246
+ if (!validate58(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
4247
+ vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
3681
4248
  errors = vErrors.length;
3682
4249
  }
3683
4250
  }
@@ -3696,8 +4263,8 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
3696
4263
  if (Array.isArray(data4)) {
3697
4264
  const len1 = data4.length;
3698
4265
  for (let i1 = 0; i1 < len1; i1++) {
3699
- if (!validate55(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
3700
- vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);
4266
+ if (!validate60(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
4267
+ vErrors = vErrors === null ? validate60.errors : vErrors.concat(validate60.errors);
3701
4268
  errors = vErrors.length;
3702
4269
  }
3703
4270
  }
@@ -3712,8 +4279,8 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
3712
4279
  }
3713
4280
  }
3714
4281
  if (data.zoom !== void 0) {
3715
- if (!validate57(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
3716
- vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
4282
+ if (!validate62(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
4283
+ vErrors = vErrors === null ? validate62.errors : vErrors.concat(validate62.errors);
3717
4284
  errors = vErrors.length;
3718
4285
  }
3719
4286
  }
@@ -3726,7 +4293,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
3726
4293
  }
3727
4294
  errors++;
3728
4295
  }
3729
- validate48.errors = vErrors;
4296
+ validate53.errors = vErrors;
3730
4297
  return errors === 0;
3731
4298
  }
3732
4299
  var func2 = Object.prototype.hasOwnProperty;
@@ -4110,84 +4677,35 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4110
4677
  errors++;
4111
4678
  }
4112
4679
  if (data.steps !== void 0) {
4113
- let data22 = data.steps;
4114
- if (Array.isArray(data22)) {
4115
- const len1 = data22.length;
4116
- for (let i1 = 0; i1 < len1; i1++) {
4117
- let data23 = data22[i1];
4118
- if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
4119
- if (data23.events !== void 0) {
4120
- let data24 = data23.events;
4121
- if (Array.isArray(data24)) {
4122
- const len2 = data24.length;
4123
- for (let i2 = 0; i2 < len2; i2++) {
4124
- let data25 = data24[i2];
4125
- if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
4126
- if (data25.type !== void 0) {
4127
- let data26 = data25.type;
4128
- const _errs62 = errors;
4129
- const _errs63 = errors;
4130
- if (!(data26 === "commit" || data26 === "branch")) {
4131
- const err23 = {};
4132
- if (vErrors === null) {
4133
- vErrors = [err23];
4134
- } else {
4135
- vErrors.push(err23);
4136
- }
4137
- errors++;
4138
- }
4139
- var valid31 = _errs63 === errors;
4140
- if (valid31) {
4141
- const err24 = { instancePath: instancePath + "/steps/" + i1 + "/events/" + i2 + "/type", schemaPath: "#/definitions/timeSteps/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
4142
- if (vErrors === null) {
4143
- vErrors = [err24];
4144
- } else {
4145
- vErrors.push(err24);
4146
- }
4147
- errors++;
4148
- } else {
4149
- errors = _errs62;
4150
- if (vErrors !== null) {
4151
- if (_errs62) {
4152
- vErrors.length = _errs62;
4153
- } else {
4154
- vErrors = null;
4155
- }
4156
- }
4157
- }
4158
- }
4159
- }
4160
- }
4161
- }
4162
- }
4163
- }
4164
- }
4680
+ if (!validate20(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
4681
+ vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);
4682
+ errors = vErrors.length;
4165
4683
  }
4166
4684
  }
4167
4685
  if (data.state !== void 0) {
4168
- const err25 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4686
+ const err23 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4169
4687
  if (vErrors === null) {
4170
- vErrors = [err25];
4688
+ vErrors = [err23];
4171
4689
  } else {
4172
- vErrors.push(err25);
4690
+ vErrors.push(err23);
4173
4691
  }
4174
4692
  errors++;
4175
4693
  }
4176
4694
  if (data.git !== void 0) {
4177
- const err26 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4695
+ const err24 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4178
4696
  if (vErrors === null) {
4179
- vErrors = [err26];
4697
+ vErrors = [err24];
4180
4698
  } else {
4181
- vErrors.push(err26);
4699
+ vErrors.push(err24);
4182
4700
  }
4183
4701
  errors++;
4184
4702
  }
4185
4703
  if (data.regions !== void 0) {
4186
- const err27 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4704
+ const err25 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4187
4705
  if (vErrors === null) {
4188
- vErrors = [err27];
4706
+ vErrors = [err25];
4189
4707
  } else {
4190
- vErrors.push(err27);
4708
+ vErrors.push(err25);
4191
4709
  }
4192
4710
  errors++;
4193
4711
  }
@@ -4196,72 +4714,178 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4196
4714
  valid21 = _valid3;
4197
4715
  ifClause3 = "then";
4198
4716
  } else {
4199
- const _errs73 = errors;
4717
+ const _errs66 = errors;
4718
+ const _errs67 = errors;
4719
+ let valid27 = true;
4720
+ const _errs68 = errors;
4200
4721
  if (data && typeof data == "object" && !Array.isArray(data)) {
4201
- if (data.boxes !== void 0) {
4202
- let data30 = data.boxes;
4203
- if (Array.isArray(data30)) {
4204
- if (data30.length < 1) {
4205
- const err28 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
4722
+ if (data.kind === void 0 && ("kind")) {
4723
+ const err26 = {};
4724
+ if (vErrors === null) {
4725
+ vErrors = [err26];
4726
+ } else {
4727
+ vErrors.push(err26);
4728
+ }
4729
+ errors++;
4730
+ } else {
4731
+ if (data.kind !== void 0) {
4732
+ if ("tree" !== data.kind) {
4733
+ const err27 = {};
4206
4734
  if (vErrors === null) {
4207
- vErrors = [err28];
4735
+ vErrors = [err27];
4208
4736
  } else {
4209
- vErrors.push(err28);
4737
+ vErrors.push(err27);
4210
4738
  }
4211
4739
  errors++;
4212
4740
  }
4213
4741
  }
4214
4742
  }
4215
- if (data.steps !== void 0) {
4216
- if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
4217
- vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
4218
- errors = vErrors.length;
4219
- }
4743
+ }
4744
+ var _valid4 = _errs68 === errors;
4745
+ errors = _errs67;
4746
+ if (vErrors !== null) {
4747
+ if (_errs67) {
4748
+ vErrors.length = _errs67;
4749
+ } else {
4750
+ vErrors = null;
4220
4751
  }
4221
- if (data.strip !== void 0) {
4222
- if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
4223
- vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
4224
- errors = vErrors.length;
4752
+ }
4753
+ let ifClause4;
4754
+ if (_valid4) {
4755
+ const _errs70 = errors;
4756
+ if (data && typeof data == "object" && !Array.isArray(data)) {
4757
+ if (data.steps !== void 0) {
4758
+ if (!validate22(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
4759
+ vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
4760
+ errors = vErrors.length;
4761
+ }
4225
4762
  }
4226
- }
4227
- if (data.state !== void 0) {
4228
- const err29 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4229
- if (vErrors === null) {
4230
- vErrors = [err29];
4231
- } else {
4232
- vErrors.push(err29);
4763
+ if (data.strip !== void 0) {
4764
+ if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
4765
+ vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
4766
+ errors = vErrors.length;
4767
+ }
4233
4768
  }
4234
- errors++;
4235
- }
4236
- if (data.git !== void 0) {
4237
- const err30 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4238
- if (vErrors === null) {
4239
- vErrors = [err30];
4240
- } else {
4241
- vErrors.push(err30);
4769
+ if (data.state !== void 0) {
4770
+ const err28 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4771
+ if (vErrors === null) {
4772
+ vErrors = [err28];
4773
+ } else {
4774
+ vErrors.push(err28);
4775
+ }
4776
+ errors++;
4777
+ }
4778
+ if (data.git !== void 0) {
4779
+ const err29 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4780
+ if (vErrors === null) {
4781
+ vErrors = [err29];
4782
+ } else {
4783
+ vErrors.push(err29);
4784
+ }
4785
+ errors++;
4786
+ }
4787
+ if (data.time !== void 0) {
4788
+ const err30 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4789
+ if (vErrors === null) {
4790
+ vErrors = [err30];
4791
+ } else {
4792
+ vErrors.push(err30);
4793
+ }
4794
+ errors++;
4795
+ }
4796
+ if (data.regions !== void 0) {
4797
+ const err31 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4798
+ if (vErrors === null) {
4799
+ vErrors = [err31];
4800
+ } else {
4801
+ vErrors.push(err31);
4802
+ }
4803
+ errors++;
4242
4804
  }
4243
- errors++;
4244
4805
  }
4245
- if (data.time !== void 0) {
4246
- const err31 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4247
- if (vErrors === null) {
4248
- vErrors = [err31];
4249
- } else {
4250
- vErrors.push(err31);
4806
+ var _valid4 = _errs70 === errors;
4807
+ valid27 = _valid4;
4808
+ ifClause4 = "then";
4809
+ } else {
4810
+ const _errs85 = errors;
4811
+ 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" };
4817
+ if (vErrors === null) {
4818
+ vErrors = [err32];
4819
+ } else {
4820
+ vErrors.push(err32);
4821
+ }
4822
+ errors++;
4823
+ }
4824
+ }
4251
4825
  }
4252
- errors++;
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
+ }
4831
+ }
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;
4836
+ }
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);
4844
+ }
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);
4853
+ }
4854
+ errors++;
4855
+ }
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);
4862
+ }
4863
+ errors++;
4864
+ }
4865
+ }
4866
+ var _valid4 = _errs85 === errors;
4867
+ valid27 = _valid4;
4868
+ ifClause4 = "else";
4869
+ }
4870
+ if (!valid27) {
4871
+ const err36 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
4872
+ if (vErrors === null) {
4873
+ vErrors = [err36];
4874
+ } else {
4875
+ vErrors.push(err36);
4253
4876
  }
4877
+ errors++;
4254
4878
  }
4255
- var _valid3 = _errs73 === errors;
4879
+ var _valid3 = _errs66 === errors;
4256
4880
  valid21 = _valid3;
4257
4881
  ifClause3 = "else";
4258
4882
  }
4259
4883
  if (!valid21) {
4260
- const err32 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
4884
+ const err37 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
4261
4885
  if (vErrors === null) {
4262
- vErrors = [err32];
4886
+ vErrors = [err37];
4263
4887
  } else {
4264
- vErrors.push(err32);
4888
+ vErrors.push(err37);
4265
4889
  }
4266
4890
  errors++;
4267
4891
  }
@@ -4270,11 +4894,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4270
4894
  ifClause2 = "else";
4271
4895
  }
4272
4896
  if (!valid15) {
4273
- const err33 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
4897
+ const err38 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
4274
4898
  if (vErrors === null) {
4275
- vErrors = [err33];
4899
+ vErrors = [err38];
4276
4900
  } else {
4277
- vErrors.push(err33);
4901
+ vErrors.push(err38);
4278
4902
  }
4279
4903
  errors++;
4280
4904
  }
@@ -4283,21 +4907,21 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4283
4907
  ifClause1 = "else";
4284
4908
  }
4285
4909
  if (!valid6) {
4286
- const err34 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
4910
+ const err39 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
4287
4911
  if (vErrors === null) {
4288
- vErrors = [err34];
4912
+ vErrors = [err39];
4289
4913
  } else {
4290
- vErrors.push(err34);
4914
+ vErrors.push(err39);
4291
4915
  }
4292
4916
  errors++;
4293
4917
  }
4294
4918
  if (data && typeof data == "object" && !Array.isArray(data)) {
4295
4919
  if (data.sequence !== void 0) {
4296
- const err35 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4920
+ const err40 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4297
4921
  if (vErrors === null) {
4298
- vErrors = [err35];
4922
+ vErrors = [err40];
4299
4923
  } else {
4300
- vErrors.push(err35);
4924
+ vErrors.push(err40);
4301
4925
  }
4302
4926
  errors++;
4303
4927
  }
@@ -4307,245 +4931,245 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4307
4931
  ifClause0 = "else";
4308
4932
  }
4309
4933
  if (!valid0) {
4310
- const err36 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
4934
+ const err41 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
4311
4935
  if (vErrors === null) {
4312
- vErrors = [err36];
4936
+ vErrors = [err41];
4313
4937
  } else {
4314
- vErrors.push(err36);
4938
+ vErrors.push(err41);
4315
4939
  }
4316
4940
  errors++;
4317
4941
  }
4318
4942
  if (data && typeof data == "object" && !Array.isArray(data)) {
4319
4943
  if (data.version === void 0) {
4320
- const err37 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
4944
+ const err42 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
4321
4945
  if (vErrors === null) {
4322
- vErrors = [err37];
4946
+ vErrors = [err42];
4323
4947
  } else {
4324
- vErrors.push(err37);
4948
+ vErrors.push(err42);
4325
4949
  }
4326
4950
  errors++;
4327
4951
  }
4328
4952
  if (data.kind === void 0) {
4329
- const err38 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
4953
+ const err43 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
4330
4954
  if (vErrors === null) {
4331
- vErrors = [err38];
4955
+ vErrors = [err43];
4332
4956
  } else {
4333
- vErrors.push(err38);
4957
+ vErrors.push(err43);
4334
4958
  }
4335
4959
  errors++;
4336
4960
  }
4337
4961
  if (data.title === void 0) {
4338
- const err39 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
4962
+ const err44 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
4339
4963
  if (vErrors === null) {
4340
- vErrors = [err39];
4964
+ vErrors = [err44];
4341
4965
  } else {
4342
- vErrors.push(err39);
4966
+ vErrors.push(err44);
4343
4967
  }
4344
4968
  errors++;
4345
4969
  }
4346
4970
  if (data.boxes === void 0) {
4347
- const err40 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
4971
+ const err45 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
4348
4972
  if (vErrors === null) {
4349
- vErrors = [err40];
4973
+ vErrors = [err45];
4350
4974
  } else {
4351
- vErrors.push(err40);
4975
+ vErrors.push(err45);
4352
4976
  }
4353
4977
  errors++;
4354
4978
  }
4355
4979
  if (data.steps === void 0) {
4356
- const err41 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
4980
+ const err46 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
4357
4981
  if (vErrors === null) {
4358
- vErrors = [err41];
4982
+ vErrors = [err46];
4359
4983
  } else {
4360
- vErrors.push(err41);
4984
+ vErrors.push(err46);
4361
4985
  }
4362
4986
  errors++;
4363
4987
  }
4364
4988
  for (const key0 in data) {
4365
4989
  if (!func2.call(schema11.properties, key0)) {
4366
- const err42 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
4990
+ const err47 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
4367
4991
  if (vErrors === null) {
4368
- vErrors = [err42];
4992
+ vErrors = [err47];
4369
4993
  } else {
4370
- vErrors.push(err42);
4994
+ vErrors.push(err47);
4371
4995
  }
4372
4996
  errors++;
4373
4997
  }
4374
4998
  }
4375
4999
  if (data.version !== void 0) {
4376
- let data37 = data.version;
4377
- if (!(typeof data37 == "number" && (!(data37 % 1) && !isNaN(data37)) && isFinite(data37))) {
4378
- const err43 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
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" };
4379
5003
  if (vErrors === null) {
4380
- vErrors = [err43];
5004
+ vErrors = [err48];
4381
5005
  } else {
4382
- vErrors.push(err43);
5006
+ vErrors.push(err48);
4383
5007
  }
4384
5008
  errors++;
4385
5009
  }
4386
- if (typeof data37 == "number" && isFinite(data37)) {
4387
- if (data37 < 1 || isNaN(data37)) {
4388
- const err44 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
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" };
4389
5013
  if (vErrors === null) {
4390
- vErrors = [err44];
5014
+ vErrors = [err49];
4391
5015
  } else {
4392
- vErrors.push(err44);
5016
+ vErrors.push(err49);
4393
5017
  }
4394
5018
  errors++;
4395
5019
  }
4396
5020
  }
4397
5021
  }
4398
5022
  if (data.kind !== void 0) {
4399
- let data38 = data.kind;
4400
- if (!(data38 === "sequence" || data38 === "architecture" || data38 === "state" || data38 === "git" || data38 === "time")) {
4401
- const err45 = { 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" };
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" };
4402
5026
  if (vErrors === null) {
4403
- vErrors = [err45];
5027
+ vErrors = [err50];
4404
5028
  } else {
4405
- vErrors.push(err45);
5029
+ vErrors.push(err50);
4406
5030
  }
4407
5031
  errors++;
4408
5032
  }
4409
5033
  }
4410
5034
  if (data.title !== void 0) {
4411
- let data39 = data.title;
4412
- if (typeof data39 === "string") {
4413
- if (func3(data39) < 1) {
4414
- const err46 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
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" };
4415
5039
  if (vErrors === null) {
4416
- vErrors = [err46];
5040
+ vErrors = [err51];
4417
5041
  } else {
4418
- vErrors.push(err46);
5042
+ vErrors.push(err51);
4419
5043
  }
4420
5044
  errors++;
4421
5045
  }
4422
5046
  } else {
4423
- const err47 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5047
+ const err52 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
4424
5048
  if (vErrors === null) {
4425
- vErrors = [err47];
5049
+ vErrors = [err52];
4426
5050
  } else {
4427
- vErrors.push(err47);
5051
+ vErrors.push(err52);
4428
5052
  }
4429
5053
  errors++;
4430
5054
  }
4431
5055
  }
4432
5056
  if (data.view !== void 0) {
4433
- let data40 = data.view;
4434
- if (!(data40 === "fixed" || data40 === "follow")) {
4435
- const err48 = { 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" };
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" };
4436
5060
  if (vErrors === null) {
4437
- vErrors = [err48];
5061
+ vErrors = [err53];
4438
5062
  } else {
4439
- vErrors.push(err48);
5063
+ vErrors.push(err53);
4440
5064
  }
4441
5065
  errors++;
4442
5066
  }
4443
5067
  }
4444
5068
  if (data.regions !== void 0) {
4445
- let data41 = data.regions;
4446
- if (Array.isArray(data41)) {
4447
- const len3 = data41.length;
4448
- for (let i3 = 0; i3 < len3; i3++) {
4449
- if (!validate22(data41[i3], { instancePath: instancePath + "/regions/" + i3, parentData: data41, parentDataProperty: i3, rootData })) {
4450
- vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
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);
4451
5075
  errors = vErrors.length;
4452
5076
  }
4453
5077
  }
4454
5078
  } else {
4455
- const err49 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5079
+ const err54 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
4456
5080
  if (vErrors === null) {
4457
- vErrors = [err49];
5081
+ vErrors = [err54];
4458
5082
  } else {
4459
- vErrors.push(err49);
5083
+ vErrors.push(err54);
4460
5084
  }
4461
5085
  errors++;
4462
5086
  }
4463
5087
  }
4464
5088
  if (data.boxes !== void 0) {
4465
- let data43 = data.boxes;
4466
- if (Array.isArray(data43)) {
4467
- const len4 = data43.length;
4468
- for (let i4 = 0; i4 < len4; i4++) {
4469
- if (!validate24(data43[i4], { instancePath: instancePath + "/boxes/" + i4, parentData: data43, parentDataProperty: i4, rootData })) {
4470
- vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
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);
4471
5095
  errors = vErrors.length;
4472
5096
  }
4473
5097
  }
4474
5098
  } else {
4475
- const err50 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5099
+ const err55 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
4476
5100
  if (vErrors === null) {
4477
- vErrors = [err50];
5101
+ vErrors = [err55];
4478
5102
  } else {
4479
- vErrors.push(err50);
5103
+ vErrors.push(err55);
4480
5104
  }
4481
5105
  errors++;
4482
5106
  }
4483
5107
  }
4484
5108
  if (data.strip !== void 0) {
4485
- if (!validate26(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
4486
- vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);
5109
+ if (!validate31(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
5110
+ vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
4487
5111
  errors = vErrors.length;
4488
5112
  }
4489
5113
  }
4490
5114
  if (data.steps !== void 0) {
4491
- let data46 = data.steps;
4492
- if (Array.isArray(data46)) {
4493
- if (data46.length < 1) {
4494
- const err51 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
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" };
4495
5119
  if (vErrors === null) {
4496
- vErrors = [err51];
5120
+ vErrors = [err56];
4497
5121
  } else {
4498
- vErrors.push(err51);
5122
+ vErrors.push(err56);
4499
5123
  }
4500
5124
  errors++;
4501
5125
  }
4502
- const len5 = data46.length;
4503
- for (let i5 = 0; i5 < len5; i5++) {
4504
- if (!validate30(data46[i5], { instancePath: instancePath + "/steps/" + i5, parentData: data46, parentDataProperty: i5, rootData })) {
4505
- vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
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);
4506
5130
  errors = vErrors.length;
4507
5131
  }
4508
5132
  }
4509
5133
  } else {
4510
- const err52 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5134
+ const err57 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
4511
5135
  if (vErrors === null) {
4512
- vErrors = [err52];
5136
+ vErrors = [err57];
4513
5137
  } else {
4514
- vErrors.push(err52);
5138
+ vErrors.push(err57);
4515
5139
  }
4516
5140
  errors++;
4517
5141
  }
4518
5142
  }
4519
5143
  if (data.sequence !== void 0) {
4520
- if (!validate38(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
4521
- vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
5144
+ if (!validate43(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
5145
+ vErrors = vErrors === null ? validate43.errors : vErrors.concat(validate43.errors);
4522
5146
  errors = vErrors.length;
4523
5147
  }
4524
5148
  }
4525
5149
  if (data.state !== void 0) {
4526
- if (!validate40(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
4527
- vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);
5150
+ if (!validate45(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
5151
+ vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
4528
5152
  errors = vErrors.length;
4529
5153
  }
4530
5154
  }
4531
5155
  if (data.git !== void 0) {
4532
- if (!validate44(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
4533
- vErrors = vErrors === null ? validate44.errors : vErrors.concat(validate44.errors);
5156
+ if (!validate49(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
5157
+ vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
4534
5158
  errors = vErrors.length;
4535
5159
  }
4536
5160
  }
4537
5161
  if (data.time !== void 0) {
4538
- if (!validate48(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
4539
- vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
5162
+ if (!validate53(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
5163
+ vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
4540
5164
  errors = vErrors.length;
4541
5165
  }
4542
5166
  }
4543
5167
  } else {
4544
- const err53 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5168
+ const err58 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
4545
5169
  if (vErrors === null) {
4546
- vErrors = [err53];
5170
+ vErrors = [err58];
4547
5171
  } else {
4548
- vErrors.push(err53);
5172
+ vErrors.push(err58);
4549
5173
  }
4550
5174
  errors++;
4551
5175
  }
@@ -4555,7 +5179,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4555
5179
  var STATE_ENDS = ["start", "finish"];
4556
5180
 
4557
5181
  // src/schema.ts
4558
- var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span"];
5182
+ var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node"];
4559
5183
  var ABSENT = "#/definitions/absent/not";
4560
5184
  var ABSENT_KINDS = { regions: "sequence / architecture / state", at: "time", into: "time", color: "time", meters: "time" };
4561
5185
  var NOT_ALLOWED = {
@@ -4566,6 +5190,8 @@ var GIT_EVENT = /\/events\/items\/properties\/type\/not$/u;
4566
5190
  var GIT_EVENTS = ["commit", "branch"];
4567
5191
  var TIME_EVENT = /\/events\/items\/not$/u;
4568
5192
  var TIME_EVENTS = ["now", "mark", "span"];
5193
+ var TREE_EVENT = /\/events\/items\/allOf\/0\/not$/u;
5194
+ var TREE_EVENTS = ["leaf", "node"];
4569
5195
  var DURATION = /^\^\[0-9\]\+\(\\\.\[0-9\]\+\)\?\(([a-z|]+)\)\$$/u;
4570
5196
  var RATIO = /%\)\$$/u;
4571
5197
  var escape = (key) => key.replaceAll("~", "~0").replaceAll("/", "~1");
@@ -4596,6 +5222,7 @@ function toFieldError(error, errors, m) {
4596
5222
  if (RESERVED_ID.test(error.schemaPath)) return { pointer: at, message: m.reserved(STATE_ENDS) };
4597
5223
  if (GIT_EVENT.test(error.schemaPath)) return { pointer: at, message: m.kindOnly(GIT_EVENTS, "git") };
4598
5224
  if (TIME_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TIME_EVENTS, "time") };
5225
+ if (TREE_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TREE_EVENTS, "tree") };
4599
5226
  const last = at.slice(at.lastIndexOf("/") + 1);
4600
5227
  if (error.schemaPath === ABSENT) return { pointer: at, message: m.not({ field: last, kind: ABSENT_KINDS[last] ?? last }) };
4601
5228
  const allowed = NOT_ALLOWED[last];