@cardenelabs/dragon 0.43.0 → 0.44.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/cli.cjs +2337 -627
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2337 -627
- package/dist/cli.js.map +1 -1
- package/dist/export.cjs +2193 -619
- package/dist/export.cjs.map +1 -1
- package/dist/export.d.cts +1 -1
- package/dist/export.d.ts +1 -1
- package/dist/export.js +2193 -619
- package/dist/export.js.map +1 -1
- package/dist/index.cjs +2377 -644
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -3
- package/dist/index.d.ts +55 -3
- package/dist/index.js +2377 -644
- package/dist/index.js.map +1 -1
- package/dist/{ink-B6s_SMXG.d.cts → ink-DeDtzaTL.d.cts} +27 -3
- package/dist/{ink-B6s_SMXG.d.ts → ink-DeDtzaTL.d.ts} +27 -3
- package/dist/node.cjs +1932 -680
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1932 -680
- package/dist/node.js.map +1 -1
- package/dist/player.global.js +3 -3
- package/package.json +1 -1
- package/src/field-messages.ts +6 -0
- package/src/index.ts +4 -0
- package/src/layout/lineup.ts +219 -0
- package/src/look/values.ts +31 -2
- package/src/messages.ts +54 -0
- package/src/parser.ts +123 -1
- package/src/printer.ts +30 -1
- package/src/render/lineup.ts +184 -0
- package/src/render/parts.ts +16 -7
- package/src/render/svg.ts +34 -6
- package/src/render/tree.ts +3 -2
- package/src/schema.ts +52 -4
- package/src/schemas/diagram.schema.json +145 -22
- package/src/schemas/validate-diagram.js +1 -1
- package/src/timeline.ts +14 -0
- package/src/words.ts +15 -2
package/dist/index.cjs
CHANGED
|
@@ -50,8 +50,10 @@ var ja = {
|
|
|
50
50
|
enum: (values) => `${values.join(" / ")} \u306E\u3069\u308C\u304B\u306B\u3059\u308B`,
|
|
51
51
|
type: (type) => TYPES_JA[type] ?? `${type} \u306B\u3059\u308B`,
|
|
52
52
|
minLength: (limit) => `${limit} \u5B57\u4EE5\u4E0A\u66F8\u304F`,
|
|
53
|
+
maxLength: (limit) => `${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
|
|
53
54
|
pattern: (forbidden) => forbidden ? `${forbidden.space ? "\u7A7A\u767D\u3068 " : ""}${forbidden.chars.join(" ")} \u306F\u4F7F\u3048\u306A\u3044` : "\u4F7F\u3048\u306A\u3044\u5B57\u304C\u5165\u3063\u3066\u3044\u308B",
|
|
54
55
|
minItems: (limit) => `${limit} \u3064\u4EE5\u4E0A\u66F8\u304F`,
|
|
56
|
+
maxItems: (limit) => `${limit} \u3064\u307E\u3067\u306B\u3059\u308B`,
|
|
55
57
|
minimum: (limit) => `${limit} \u4EE5\u4E0A\u306B\u3059\u308B`,
|
|
56
58
|
const: (value2) => `${value2} \u306B\u3059\u308B`,
|
|
57
59
|
not: (allowed) => allowed ? `${allowed.field} \u306E\u6B04\u306F kind \u304C ${allowed.kind} \u306E\u6642\u3060\u3051\u66F8\u3051\u308B` : "\u3053\u306E\u6B04\u306E\u7D44\u307F\u5408\u308F\u305B\u306F\u66F8\u3051\u306A\u3044",
|
|
@@ -72,8 +74,10 @@ var en = {
|
|
|
72
74
|
enum: (values) => `Use one of ${values.join(" / ")}`,
|
|
73
75
|
type: (type) => TYPES_EN[type] ?? `Use ${type}`,
|
|
74
76
|
minLength: (limit) => `Write at least ${plural(limit, "character")}`,
|
|
77
|
+
maxLength: (limit) => `Write at most ${plural(limit, "character")}`,
|
|
75
78
|
pattern: (forbidden) => forbidden ? `Cannot contain ${forbidden.space ? "spaces or " : ""}${forbidden.chars.join(" ")}` : "Contains characters that are not allowed",
|
|
76
79
|
minItems: (limit) => `Write at least ${plural(limit, "item")}`,
|
|
80
|
+
maxItems: (limit) => `Write at most ${plural(limit, "item")}`,
|
|
77
81
|
minimum: (limit) => `Use ${limit} or greater`,
|
|
78
82
|
const: (value2) => `Use ${value2}`,
|
|
79
83
|
not: (allowed) => allowed ? `The ${allowed.field} field is allowed only when kind is ${allowed.kind}` : "This combination of fields is not allowed",
|
|
@@ -97,7 +101,7 @@ function ucs2length(str) {
|
|
|
97
101
|
return length;
|
|
98
102
|
}
|
|
99
103
|
var validate_diagram_default = validate10;
|
|
100
|
-
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" } }};
|
|
104
|
+
var schema11 = { "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree", "lineup"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" }, "lineup": { "$ref": "#/definitions/lineup" } }};
|
|
101
105
|
function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
102
106
|
let vErrors = null;
|
|
103
107
|
let errors = 0;
|
|
@@ -202,34 +206,79 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
202
206
|
}
|
|
203
207
|
}
|
|
204
208
|
}
|
|
209
|
+
const _errs14 = errors;
|
|
210
|
+
const _errs15 = errors;
|
|
211
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
212
|
+
if (data2.type === void 0 && ("type")) {
|
|
213
|
+
const err6 = {};
|
|
214
|
+
if (vErrors === null) {
|
|
215
|
+
vErrors = [err6];
|
|
216
|
+
} else {
|
|
217
|
+
vErrors.push(err6);
|
|
218
|
+
}
|
|
219
|
+
errors++;
|
|
220
|
+
} else {
|
|
221
|
+
if (data2.type !== void 0) {
|
|
222
|
+
let data5 = data2.type;
|
|
223
|
+
if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
|
|
224
|
+
const err7 = {};
|
|
225
|
+
if (vErrors === null) {
|
|
226
|
+
vErrors = [err7];
|
|
227
|
+
} else {
|
|
228
|
+
vErrors.push(err7);
|
|
229
|
+
}
|
|
230
|
+
errors++;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
var valid13 = _errs15 === errors;
|
|
236
|
+
if (valid13) {
|
|
237
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
238
|
+
if (vErrors === null) {
|
|
239
|
+
vErrors = [err8];
|
|
240
|
+
} else {
|
|
241
|
+
vErrors.push(err8);
|
|
242
|
+
}
|
|
243
|
+
errors++;
|
|
244
|
+
} else {
|
|
245
|
+
errors = _errs14;
|
|
246
|
+
if (vErrors !== null) {
|
|
247
|
+
if (_errs14) {
|
|
248
|
+
vErrors.length = _errs14;
|
|
249
|
+
} else {
|
|
250
|
+
vErrors = null;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
205
254
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
206
255
|
if (data2.type !== void 0) {
|
|
207
|
-
let
|
|
208
|
-
const
|
|
209
|
-
const
|
|
210
|
-
if (!(
|
|
211
|
-
const
|
|
256
|
+
let data6 = data2.type;
|
|
257
|
+
const _errs18 = errors;
|
|
258
|
+
const _errs19 = errors;
|
|
259
|
+
if (!(data6 === "commit" || data6 === "branch")) {
|
|
260
|
+
const err9 = {};
|
|
212
261
|
if (vErrors === null) {
|
|
213
|
-
vErrors = [
|
|
262
|
+
vErrors = [err9];
|
|
214
263
|
} else {
|
|
215
|
-
vErrors.push(
|
|
264
|
+
vErrors.push(err9);
|
|
216
265
|
}
|
|
217
266
|
errors++;
|
|
218
267
|
}
|
|
219
|
-
var
|
|
220
|
-
if (
|
|
221
|
-
const
|
|
268
|
+
var valid16 = _errs19 === errors;
|
|
269
|
+
if (valid16) {
|
|
270
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
222
271
|
if (vErrors === null) {
|
|
223
|
-
vErrors = [
|
|
272
|
+
vErrors = [err10];
|
|
224
273
|
} else {
|
|
225
|
-
vErrors.push(
|
|
274
|
+
vErrors.push(err10);
|
|
226
275
|
}
|
|
227
276
|
errors++;
|
|
228
277
|
} else {
|
|
229
|
-
errors =
|
|
278
|
+
errors = _errs18;
|
|
230
279
|
if (vErrors !== null) {
|
|
231
|
-
if (
|
|
232
|
-
vErrors.length =
|
|
280
|
+
if (_errs18) {
|
|
281
|
+
vErrors.length = _errs18;
|
|
233
282
|
} else {
|
|
234
283
|
vErrors = null;
|
|
235
284
|
}
|
|
@@ -237,29 +286,29 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
237
286
|
}
|
|
238
287
|
}
|
|
239
288
|
if (data2.at !== void 0) {
|
|
240
|
-
const
|
|
289
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
241
290
|
if (vErrors === null) {
|
|
242
|
-
vErrors = [
|
|
291
|
+
vErrors = [err11];
|
|
243
292
|
} else {
|
|
244
|
-
vErrors.push(
|
|
293
|
+
vErrors.push(err11);
|
|
245
294
|
}
|
|
246
295
|
errors++;
|
|
247
296
|
}
|
|
248
297
|
if (data2.into !== void 0) {
|
|
249
|
-
const
|
|
298
|
+
const err12 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
250
299
|
if (vErrors === null) {
|
|
251
|
-
vErrors = [
|
|
300
|
+
vErrors = [err12];
|
|
252
301
|
} else {
|
|
253
|
-
vErrors.push(
|
|
302
|
+
vErrors.push(err12);
|
|
254
303
|
}
|
|
255
304
|
errors++;
|
|
256
305
|
}
|
|
257
306
|
if (data2.color !== void 0) {
|
|
258
|
-
const
|
|
307
|
+
const err13 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
259
308
|
if (vErrors === null) {
|
|
260
|
-
vErrors = [
|
|
309
|
+
vErrors = [err13];
|
|
261
310
|
} else {
|
|
262
|
-
vErrors.push(
|
|
311
|
+
vErrors.push(err13);
|
|
263
312
|
}
|
|
264
313
|
errors++;
|
|
265
314
|
}
|
|
@@ -394,31 +443,76 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
394
443
|
}
|
|
395
444
|
}
|
|
396
445
|
}
|
|
446
|
+
const _errs14 = errors;
|
|
447
|
+
const _errs15 = errors;
|
|
397
448
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
398
|
-
if (data2.
|
|
399
|
-
const err6 = {
|
|
449
|
+
if (data2.type === void 0 && ("type")) {
|
|
450
|
+
const err6 = {};
|
|
400
451
|
if (vErrors === null) {
|
|
401
452
|
vErrors = [err6];
|
|
402
453
|
} else {
|
|
403
454
|
vErrors.push(err6);
|
|
404
455
|
}
|
|
405
456
|
errors++;
|
|
457
|
+
} else {
|
|
458
|
+
if (data2.type !== void 0) {
|
|
459
|
+
let data5 = data2.type;
|
|
460
|
+
if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
|
|
461
|
+
const err7 = {};
|
|
462
|
+
if (vErrors === null) {
|
|
463
|
+
vErrors = [err7];
|
|
464
|
+
} else {
|
|
465
|
+
vErrors.push(err7);
|
|
466
|
+
}
|
|
467
|
+
errors++;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
var valid13 = _errs15 === errors;
|
|
473
|
+
if (valid13) {
|
|
474
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
475
|
+
if (vErrors === null) {
|
|
476
|
+
vErrors = [err8];
|
|
477
|
+
} else {
|
|
478
|
+
vErrors.push(err8);
|
|
479
|
+
}
|
|
480
|
+
errors++;
|
|
481
|
+
} else {
|
|
482
|
+
errors = _errs14;
|
|
483
|
+
if (vErrors !== null) {
|
|
484
|
+
if (_errs14) {
|
|
485
|
+
vErrors.length = _errs14;
|
|
486
|
+
} else {
|
|
487
|
+
vErrors = null;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
492
|
+
if (data2.at !== void 0) {
|
|
493
|
+
const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
494
|
+
if (vErrors === null) {
|
|
495
|
+
vErrors = [err9];
|
|
496
|
+
} else {
|
|
497
|
+
vErrors.push(err9);
|
|
498
|
+
}
|
|
499
|
+
errors++;
|
|
406
500
|
}
|
|
407
501
|
if (data2.into !== void 0) {
|
|
408
|
-
const
|
|
502
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
409
503
|
if (vErrors === null) {
|
|
410
|
-
vErrors = [
|
|
504
|
+
vErrors = [err10];
|
|
411
505
|
} else {
|
|
412
|
-
vErrors.push(
|
|
506
|
+
vErrors.push(err10);
|
|
413
507
|
}
|
|
414
508
|
errors++;
|
|
415
509
|
}
|
|
416
510
|
if (data2.color !== void 0) {
|
|
417
|
-
const
|
|
511
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
418
512
|
if (vErrors === null) {
|
|
419
|
-
vErrors = [
|
|
513
|
+
vErrors = [err11];
|
|
420
514
|
} else {
|
|
421
|
-
vErrors.push(
|
|
515
|
+
vErrors.push(err11);
|
|
422
516
|
}
|
|
423
517
|
errors++;
|
|
424
518
|
}
|
|
@@ -491,34 +585,79 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
491
585
|
}
|
|
492
586
|
}
|
|
493
587
|
}
|
|
588
|
+
const _errs10 = errors;
|
|
589
|
+
const _errs11 = errors;
|
|
590
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
591
|
+
if (data2.type === void 0 && ("type")) {
|
|
592
|
+
const err3 = {};
|
|
593
|
+
if (vErrors === null) {
|
|
594
|
+
vErrors = [err3];
|
|
595
|
+
} else {
|
|
596
|
+
vErrors.push(err3);
|
|
597
|
+
}
|
|
598
|
+
errors++;
|
|
599
|
+
} else {
|
|
600
|
+
if (data2.type !== void 0) {
|
|
601
|
+
let data4 = data2.type;
|
|
602
|
+
if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
|
|
603
|
+
const err4 = {};
|
|
604
|
+
if (vErrors === null) {
|
|
605
|
+
vErrors = [err4];
|
|
606
|
+
} else {
|
|
607
|
+
vErrors.push(err4);
|
|
608
|
+
}
|
|
609
|
+
errors++;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
var valid10 = _errs11 === errors;
|
|
615
|
+
if (valid10) {
|
|
616
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
617
|
+
if (vErrors === null) {
|
|
618
|
+
vErrors = [err5];
|
|
619
|
+
} else {
|
|
620
|
+
vErrors.push(err5);
|
|
621
|
+
}
|
|
622
|
+
errors++;
|
|
623
|
+
} else {
|
|
624
|
+
errors = _errs10;
|
|
625
|
+
if (vErrors !== null) {
|
|
626
|
+
if (_errs10) {
|
|
627
|
+
vErrors.length = _errs10;
|
|
628
|
+
} else {
|
|
629
|
+
vErrors = null;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
494
633
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
495
634
|
if (data2.type !== void 0) {
|
|
496
|
-
let
|
|
497
|
-
const
|
|
498
|
-
const
|
|
499
|
-
if (!(
|
|
500
|
-
const
|
|
635
|
+
let data5 = data2.type;
|
|
636
|
+
const _errs14 = errors;
|
|
637
|
+
const _errs15 = errors;
|
|
638
|
+
if (!(data5 === "commit" || data5 === "branch")) {
|
|
639
|
+
const err6 = {};
|
|
501
640
|
if (vErrors === null) {
|
|
502
|
-
vErrors = [
|
|
641
|
+
vErrors = [err6];
|
|
503
642
|
} else {
|
|
504
|
-
vErrors.push(
|
|
643
|
+
vErrors.push(err6);
|
|
505
644
|
}
|
|
506
645
|
errors++;
|
|
507
646
|
}
|
|
508
|
-
var
|
|
509
|
-
if (
|
|
510
|
-
const
|
|
647
|
+
var valid13 = _errs15 === errors;
|
|
648
|
+
if (valid13) {
|
|
649
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
511
650
|
if (vErrors === null) {
|
|
512
|
-
vErrors = [
|
|
651
|
+
vErrors = [err7];
|
|
513
652
|
} else {
|
|
514
|
-
vErrors.push(
|
|
653
|
+
vErrors.push(err7);
|
|
515
654
|
}
|
|
516
655
|
errors++;
|
|
517
656
|
} else {
|
|
518
|
-
errors =
|
|
657
|
+
errors = _errs14;
|
|
519
658
|
if (vErrors !== null) {
|
|
520
|
-
if (
|
|
521
|
-
vErrors.length =
|
|
659
|
+
if (_errs14) {
|
|
660
|
+
vErrors.length = _errs14;
|
|
522
661
|
} else {
|
|
523
662
|
vErrors = null;
|
|
524
663
|
}
|
|
@@ -594,34 +733,79 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
594
733
|
}
|
|
595
734
|
}
|
|
596
735
|
}
|
|
736
|
+
const _errs9 = errors;
|
|
737
|
+
const _errs10 = errors;
|
|
738
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
739
|
+
if (data2.type === void 0 && ("type")) {
|
|
740
|
+
const err3 = {};
|
|
741
|
+
if (vErrors === null) {
|
|
742
|
+
vErrors = [err3];
|
|
743
|
+
} else {
|
|
744
|
+
vErrors.push(err3);
|
|
745
|
+
}
|
|
746
|
+
errors++;
|
|
747
|
+
} else {
|
|
748
|
+
if (data2.type !== void 0) {
|
|
749
|
+
let data4 = data2.type;
|
|
750
|
+
if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
|
|
751
|
+
const err4 = {};
|
|
752
|
+
if (vErrors === null) {
|
|
753
|
+
vErrors = [err4];
|
|
754
|
+
} else {
|
|
755
|
+
vErrors.push(err4);
|
|
756
|
+
}
|
|
757
|
+
errors++;
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
var valid10 = _errs10 === errors;
|
|
763
|
+
if (valid10) {
|
|
764
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
765
|
+
if (vErrors === null) {
|
|
766
|
+
vErrors = [err5];
|
|
767
|
+
} else {
|
|
768
|
+
vErrors.push(err5);
|
|
769
|
+
}
|
|
770
|
+
errors++;
|
|
771
|
+
} else {
|
|
772
|
+
errors = _errs9;
|
|
773
|
+
if (vErrors !== null) {
|
|
774
|
+
if (_errs9) {
|
|
775
|
+
vErrors.length = _errs9;
|
|
776
|
+
} else {
|
|
777
|
+
vErrors = null;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
597
781
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
598
782
|
if (data2.type !== void 0) {
|
|
599
|
-
let
|
|
600
|
-
const
|
|
601
|
-
const
|
|
602
|
-
if (!(
|
|
603
|
-
const
|
|
783
|
+
let data5 = data2.type;
|
|
784
|
+
const _errs13 = errors;
|
|
785
|
+
const _errs14 = errors;
|
|
786
|
+
if (!(data5 === "commit" || data5 === "branch")) {
|
|
787
|
+
const err6 = {};
|
|
604
788
|
if (vErrors === null) {
|
|
605
|
-
vErrors = [
|
|
789
|
+
vErrors = [err6];
|
|
606
790
|
} else {
|
|
607
|
-
vErrors.push(
|
|
791
|
+
vErrors.push(err6);
|
|
608
792
|
}
|
|
609
793
|
errors++;
|
|
610
794
|
}
|
|
611
|
-
var
|
|
612
|
-
if (
|
|
613
|
-
const
|
|
795
|
+
var valid13 = _errs14 === errors;
|
|
796
|
+
if (valid13) {
|
|
797
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
614
798
|
if (vErrors === null) {
|
|
615
|
-
vErrors = [
|
|
799
|
+
vErrors = [err7];
|
|
616
800
|
} else {
|
|
617
|
-
vErrors.push(
|
|
801
|
+
vErrors.push(err7);
|
|
618
802
|
}
|
|
619
803
|
errors++;
|
|
620
804
|
} else {
|
|
621
|
-
errors =
|
|
805
|
+
errors = _errs13;
|
|
622
806
|
if (vErrors !== null) {
|
|
623
|
-
if (
|
|
624
|
-
vErrors.length =
|
|
807
|
+
if (_errs13) {
|
|
808
|
+
vErrors.length = _errs13;
|
|
625
809
|
} else {
|
|
626
810
|
vErrors = null;
|
|
627
811
|
}
|
|
@@ -629,29 +813,29 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
629
813
|
}
|
|
630
814
|
}
|
|
631
815
|
if (data2.at !== void 0) {
|
|
632
|
-
const
|
|
816
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
633
817
|
if (vErrors === null) {
|
|
634
|
-
vErrors = [
|
|
818
|
+
vErrors = [err8];
|
|
635
819
|
} else {
|
|
636
|
-
vErrors.push(
|
|
820
|
+
vErrors.push(err8);
|
|
637
821
|
}
|
|
638
822
|
errors++;
|
|
639
823
|
}
|
|
640
824
|
if (data2.into !== void 0) {
|
|
641
|
-
const
|
|
825
|
+
const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
642
826
|
if (vErrors === null) {
|
|
643
|
-
vErrors = [
|
|
827
|
+
vErrors = [err9];
|
|
644
828
|
} else {
|
|
645
|
-
vErrors.push(
|
|
829
|
+
vErrors.push(err9);
|
|
646
830
|
}
|
|
647
831
|
errors++;
|
|
648
832
|
}
|
|
649
833
|
if (data2.color !== void 0) {
|
|
650
|
-
const
|
|
834
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
651
835
|
if (vErrors === null) {
|
|
652
|
-
vErrors = [
|
|
836
|
+
vErrors = [err10];
|
|
653
837
|
} else {
|
|
654
|
-
vErrors.push(
|
|
838
|
+
vErrors.push(err10);
|
|
655
839
|
}
|
|
656
840
|
errors++;
|
|
657
841
|
}
|
|
@@ -665,67 +849,269 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
665
849
|
validate22.errors = vErrors;
|
|
666
850
|
return errors === 0;
|
|
667
851
|
}
|
|
668
|
-
|
|
669
|
-
var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
|
|
670
|
-
var func3 = ucs2length;
|
|
671
|
-
function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
852
|
+
function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
672
853
|
let vErrors = null;
|
|
673
854
|
let errors = 0;
|
|
674
|
-
if (
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
855
|
+
if (Array.isArray(data)) {
|
|
856
|
+
const len0 = data.length;
|
|
857
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
858
|
+
let data0 = data[i0];
|
|
859
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
860
|
+
if (data0.events !== void 0) {
|
|
861
|
+
let data1 = data0.events;
|
|
862
|
+
if (Array.isArray(data1)) {
|
|
863
|
+
const len1 = data1.length;
|
|
864
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
865
|
+
let data2 = data1[i1];
|
|
866
|
+
const _errs3 = errors;
|
|
867
|
+
const _errs4 = errors;
|
|
868
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
869
|
+
if (data2.type === void 0 && ("type")) {
|
|
870
|
+
const err0 = {};
|
|
871
|
+
if (vErrors === null) {
|
|
872
|
+
vErrors = [err0];
|
|
873
|
+
} else {
|
|
874
|
+
vErrors.push(err0);
|
|
875
|
+
}
|
|
876
|
+
errors++;
|
|
877
|
+
} else {
|
|
878
|
+
if (data2.type !== void 0) {
|
|
879
|
+
let data3 = data2.type;
|
|
880
|
+
if (!(data3 === "now" || data3 === "mark" || data3 === "span")) {
|
|
881
|
+
const err1 = {};
|
|
882
|
+
if (vErrors === null) {
|
|
883
|
+
vErrors = [err1];
|
|
884
|
+
} else {
|
|
885
|
+
vErrors.push(err1);
|
|
886
|
+
}
|
|
887
|
+
errors++;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
var valid5 = _errs4 === errors;
|
|
893
|
+
if (valid5) {
|
|
894
|
+
const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
895
|
+
if (vErrors === null) {
|
|
896
|
+
vErrors = [err2];
|
|
897
|
+
} else {
|
|
898
|
+
vErrors.push(err2);
|
|
899
|
+
}
|
|
900
|
+
errors++;
|
|
901
|
+
} else {
|
|
902
|
+
errors = _errs3;
|
|
903
|
+
if (vErrors !== null) {
|
|
904
|
+
if (_errs3) {
|
|
905
|
+
vErrors.length = _errs3;
|
|
906
|
+
} else {
|
|
907
|
+
vErrors = null;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
const _errs8 = errors;
|
|
912
|
+
const _errs9 = errors;
|
|
913
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
914
|
+
if (data2.type === void 0 && ("type")) {
|
|
915
|
+
const err3 = {};
|
|
916
|
+
if (vErrors === null) {
|
|
917
|
+
vErrors = [err3];
|
|
918
|
+
} else {
|
|
919
|
+
vErrors.push(err3);
|
|
920
|
+
}
|
|
921
|
+
errors++;
|
|
922
|
+
} else {
|
|
923
|
+
if (data2.type !== void 0) {
|
|
924
|
+
let data4 = data2.type;
|
|
925
|
+
if (!(data4 === "leaf" || data4 === "node")) {
|
|
926
|
+
const err4 = {};
|
|
927
|
+
if (vErrors === null) {
|
|
928
|
+
vErrors = [err4];
|
|
929
|
+
} else {
|
|
930
|
+
vErrors.push(err4);
|
|
931
|
+
}
|
|
932
|
+
errors++;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
var valid9 = _errs9 === errors;
|
|
938
|
+
if (valid9) {
|
|
939
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
940
|
+
if (vErrors === null) {
|
|
941
|
+
vErrors = [err5];
|
|
942
|
+
} else {
|
|
943
|
+
vErrors.push(err5);
|
|
944
|
+
}
|
|
945
|
+
errors++;
|
|
946
|
+
} else {
|
|
947
|
+
errors = _errs8;
|
|
948
|
+
if (vErrors !== null) {
|
|
949
|
+
if (_errs8) {
|
|
950
|
+
vErrors.length = _errs8;
|
|
951
|
+
} else {
|
|
952
|
+
vErrors = null;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
const _errs14 = errors;
|
|
957
|
+
const _errs15 = errors;
|
|
958
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
959
|
+
if (data2.type === void 0 && ("type")) {
|
|
960
|
+
const err6 = {};
|
|
961
|
+
if (vErrors === null) {
|
|
962
|
+
vErrors = [err6];
|
|
963
|
+
} else {
|
|
964
|
+
vErrors.push(err6);
|
|
965
|
+
}
|
|
966
|
+
errors++;
|
|
967
|
+
} else {
|
|
968
|
+
if (data2.type !== void 0) {
|
|
969
|
+
let data5 = data2.type;
|
|
970
|
+
if (!(data5 === "edge" || data5 === "action")) {
|
|
971
|
+
const err7 = {};
|
|
972
|
+
if (vErrors === null) {
|
|
973
|
+
vErrors = [err7];
|
|
974
|
+
} else {
|
|
975
|
+
vErrors.push(err7);
|
|
976
|
+
}
|
|
977
|
+
errors++;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
var valid13 = _errs15 === errors;
|
|
983
|
+
if (valid13) {
|
|
984
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notWiredEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
985
|
+
if (vErrors === null) {
|
|
986
|
+
vErrors = [err8];
|
|
987
|
+
} else {
|
|
988
|
+
vErrors.push(err8);
|
|
989
|
+
}
|
|
990
|
+
errors++;
|
|
991
|
+
} else {
|
|
992
|
+
errors = _errs14;
|
|
993
|
+
if (vErrors !== null) {
|
|
994
|
+
if (_errs14) {
|
|
995
|
+
vErrors.length = _errs14;
|
|
996
|
+
} else {
|
|
997
|
+
vErrors = null;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
1002
|
+
if (data2.type !== void 0) {
|
|
1003
|
+
let data6 = data2.type;
|
|
1004
|
+
const _errs18 = errors;
|
|
1005
|
+
const _errs19 = errors;
|
|
1006
|
+
if (!(data6 === "commit" || data6 === "branch")) {
|
|
1007
|
+
const err9 = {};
|
|
1008
|
+
if (vErrors === null) {
|
|
1009
|
+
vErrors = [err9];
|
|
1010
|
+
} else {
|
|
1011
|
+
vErrors.push(err9);
|
|
1012
|
+
}
|
|
1013
|
+
errors++;
|
|
1014
|
+
}
|
|
1015
|
+
var valid16 = _errs19 === errors;
|
|
1016
|
+
if (valid16) {
|
|
1017
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
1018
|
+
if (vErrors === null) {
|
|
1019
|
+
vErrors = [err10];
|
|
1020
|
+
} else {
|
|
1021
|
+
vErrors.push(err10);
|
|
1022
|
+
}
|
|
1023
|
+
errors++;
|
|
1024
|
+
} else {
|
|
1025
|
+
errors = _errs18;
|
|
1026
|
+
if (vErrors !== null) {
|
|
1027
|
+
if (_errs18) {
|
|
1028
|
+
vErrors.length = _errs18;
|
|
1029
|
+
} else {
|
|
1030
|
+
vErrors = null;
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
if (data2.color !== void 0) {
|
|
1036
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
1037
|
+
if (vErrors === null) {
|
|
1038
|
+
vErrors = [err11];
|
|
1039
|
+
} else {
|
|
1040
|
+
vErrors.push(err11);
|
|
1041
|
+
}
|
|
1042
|
+
errors++;
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
validate25.errors = vErrors;
|
|
1052
|
+
return errors === 0;
|
|
1053
|
+
}
|
|
1054
|
+
var schema79 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
|
|
1055
|
+
var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
|
|
1056
|
+
var func3 = ucs2length;
|
|
1057
|
+
function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1058
|
+
let vErrors = null;
|
|
1059
|
+
let errors = 0;
|
|
1060
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1061
|
+
if (data.id === void 0) {
|
|
1062
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
1063
|
+
if (vErrors === null) {
|
|
1064
|
+
vErrors = [err0];
|
|
1065
|
+
} else {
|
|
1066
|
+
vErrors.push(err0);
|
|
1067
|
+
}
|
|
1068
|
+
errors++;
|
|
1069
|
+
}
|
|
1070
|
+
if (data.name === void 0) {
|
|
1071
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
|
|
1072
|
+
if (vErrors === null) {
|
|
1073
|
+
vErrors = [err1];
|
|
1074
|
+
} else {
|
|
1075
|
+
vErrors.push(err1);
|
|
1076
|
+
}
|
|
1077
|
+
errors++;
|
|
1078
|
+
}
|
|
1079
|
+
for (const key0 in data) {
|
|
1080
|
+
if (!(key0 === "id" || key0 === "name" || key0 === "note" || key0 === "color" || key0 === "icon")) {
|
|
1081
|
+
const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
1082
|
+
if (vErrors === null) {
|
|
1083
|
+
vErrors = [err2];
|
|
1084
|
+
} else {
|
|
1085
|
+
vErrors.push(err2);
|
|
1086
|
+
}
|
|
1087
|
+
errors++;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
if (data.id !== void 0) {
|
|
1091
|
+
let data0 = data.id;
|
|
1092
|
+
if (typeof data0 === "string") {
|
|
1093
|
+
if (!pattern0.test(data0)) {
|
|
1094
|
+
const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
1095
|
+
if (vErrors === null) {
|
|
1096
|
+
vErrors = [err3];
|
|
1097
|
+
} else {
|
|
1098
|
+
vErrors.push(err3);
|
|
1099
|
+
}
|
|
1100
|
+
errors++;
|
|
1101
|
+
}
|
|
1102
|
+
} else {
|
|
1103
|
+
const err4 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1104
|
+
if (vErrors === null) {
|
|
1105
|
+
vErrors = [err4];
|
|
1106
|
+
} else {
|
|
1107
|
+
vErrors.push(err4);
|
|
1108
|
+
}
|
|
1109
|
+
errors++;
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
if (data.name !== void 0) {
|
|
1113
|
+
let data1 = data.name;
|
|
1114
|
+
if (typeof data1 === "string") {
|
|
729
1115
|
if (func3(data1) < 1) {
|
|
730
1116
|
const err5 = { instancePath: instancePath + "/name", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
731
1117
|
if (vErrors === null) {
|
|
@@ -770,7 +1156,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
770
1156
|
if (data.color !== void 0) {
|
|
771
1157
|
let data3 = data.color;
|
|
772
1158
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
773
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
1159
|
+
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
774
1160
|
if (vErrors === null) {
|
|
775
1161
|
vErrors = [err9];
|
|
776
1162
|
} else {
|
|
@@ -810,11 +1196,11 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
810
1196
|
}
|
|
811
1197
|
errors++;
|
|
812
1198
|
}
|
|
813
|
-
|
|
1199
|
+
validate30.errors = vErrors;
|
|
814
1200
|
return errors === 0;
|
|
815
1201
|
}
|
|
816
1202
|
var pattern3 = new RegExp("^(/|https?://)", "u");
|
|
817
|
-
function
|
|
1203
|
+
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
818
1204
|
let vErrors = null;
|
|
819
1205
|
let errors = 0;
|
|
820
1206
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -916,7 +1302,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
916
1302
|
if (data.color !== void 0) {
|
|
917
1303
|
let data3 = data.color;
|
|
918
1304
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
919
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
1305
|
+
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
920
1306
|
if (vErrors === null) {
|
|
921
1307
|
vErrors = [err9];
|
|
922
1308
|
} else {
|
|
@@ -1000,11 +1386,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1000
1386
|
}
|
|
1001
1387
|
errors++;
|
|
1002
1388
|
}
|
|
1003
|
-
|
|
1389
|
+
validate32.errors = vErrors;
|
|
1004
1390
|
return errors === 0;
|
|
1005
1391
|
}
|
|
1006
1392
|
var pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");
|
|
1007
|
-
function
|
|
1393
|
+
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1008
1394
|
let vErrors = null;
|
|
1009
1395
|
let errors = 0;
|
|
1010
1396
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1090,10 +1476,10 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1090
1476
|
}
|
|
1091
1477
|
errors++;
|
|
1092
1478
|
}
|
|
1093
|
-
|
|
1479
|
+
validate35.errors = vErrors;
|
|
1094
1480
|
return errors === 0;
|
|
1095
1481
|
}
|
|
1096
|
-
function
|
|
1482
|
+
function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1097
1483
|
let vErrors = null;
|
|
1098
1484
|
let errors = 0;
|
|
1099
1485
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1207,8 +1593,8 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1207
1593
|
}
|
|
1208
1594
|
const len1 = data3.length;
|
|
1209
1595
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
1210
|
-
if (!
|
|
1211
|
-
vErrors = vErrors === null ?
|
|
1596
|
+
if (!validate35(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
|
|
1597
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
1212
1598
|
errors = vErrors.length;
|
|
1213
1599
|
}
|
|
1214
1600
|
}
|
|
@@ -1231,10 +1617,10 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1231
1617
|
}
|
|
1232
1618
|
errors++;
|
|
1233
1619
|
}
|
|
1234
|
-
|
|
1620
|
+
validate34.errors = vErrors;
|
|
1235
1621
|
return errors === 0;
|
|
1236
1622
|
}
|
|
1237
|
-
function
|
|
1623
|
+
function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1238
1624
|
let vErrors = null;
|
|
1239
1625
|
let errors = 0;
|
|
1240
1626
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1320,13 +1706,13 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1320
1706
|
}
|
|
1321
1707
|
errors++;
|
|
1322
1708
|
}
|
|
1323
|
-
|
|
1709
|
+
validate39.errors = vErrors;
|
|
1324
1710
|
return errors === 0;
|
|
1325
1711
|
}
|
|
1326
|
-
var
|
|
1712
|
+
var schema102 = { "oneOf": [{ "description": "\u7DDA\u3002\u904B\u3076\u7269\u3092\u8F09\u305B\u3066\u9001\u308B\u5074\u304B\u3089\u53D7\u3051\u308B\u5074\u3078\u8D70\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "carry"], "properties": { "type": { "const": "edge" }, "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" }, "carry": { "$ref": "#/definitions/carry" }, "labelSide": { "description": "\u7DDA\u306E\u540D\u524D\u3092\u7F6E\u304F\u5074 (\u5BC4\u305B\u306E\u6307\u793A)", "enum": ["above", "below", "left", "right"] }, "at": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u7DDA\u3092\u5F15\u304F\u5217\u306E\u76EE\u76DB\u308A", "$ref": "#/definitions/unit" }, "into": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u53D7\u3051\u308B\u7BB1\u3092\u9078\u3076\u5217\u306E\u76EE\u76DB\u308A\u3002\u66F8\u304B\u306A\u3051\u308C\u3070 at \u306E\u5217", "$ref": "#/definitions/unit" } } }, { "description": "\u7BB1\u306E\u4E2D\u306E\u51E6\u7406", "type": "object", "additionalProperties": false, "required": ["type", "box", "label"], "properties": { "type": { "const": "action" }, "box": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } }, { "description": "\u7BB1\u306E\u4E0B\u306E\u5C0F\u3055\u306A\u5B57\u306E\u66F8\u304D\u63DB\u3048", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "swap" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" }, "color": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7BC0\u76EE\u306E\u4E38\u306E\u8272", "$ref": "#/definitions/color" } } }, { "description": "commit \u3092\u7A4D\u3080\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u7A4D\u3093\u3060\u679D\u306E\u672D\u3068\u3001\u305D\u306E\u679D\u3092\u6307\u3059 HEAD \u304C\u9032\u3080\u3002\u5F53\u3066\u76F4\u3057 (copy) \u306F\u679D\u306E\u672D\u3092\u52D5\u304B\u3055\u305A\u3001merge commit (merge) \u306F\u53D6\u308A\u8FBC\u3080\u679D\u306E\u5148\u7AEF\u3082\u89AA\u306B\u6301\u3064", "type": "object", "additionalProperties": false, "required": ["type", "id", "branch"], "properties": { "type": { "const": "commit" }, "id": { "$ref": "#/definitions/id" }, "branch": { "$ref": "#/definitions/id" }, "copy": { "$ref": "#/definitions/id" }, "merge": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" }, "note": { "$ref": "#/definitions/text" } } }, { "description": "\u679D\u3092\u5207\u308B\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u679D\u306E\u672D\u3092 from \u306E commit \u3078\u7F6E\u304D\u3001HEAD \u3092\u305D\u306E\u679D\u3078\u79FB\u3059", "type": "object", "additionalProperties": false, "required": ["type", "branch", "from"], "properties": { "type": { "const": "branch" }, "branch": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/id" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u4ECA\u306E\u6642\u523B\u306E\u91DD\u3092\u3001to \u306E\u76EE\u76DB\u308A\u306E\u7D42\u308F\u308A\u307E\u3067\u9032\u3081\u308B", "type": "object", "additionalProperties": false, "required": ["type", "to"], "properties": { "type": { "const": "now" }, "to": { "$ref": "#/definitions/unit" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u5370\u306E\u5217 row \u306E\u3001from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u8272\u3092\u5909\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "row", "from", "to", "color"], "properties": { "type": { "const": "mark" }, "row": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306B\u3001\u62EC\u5F27\u3068\u5B57\u3092\u51FA\u3059\u3002shape \u304C box \u306A\u3089\u5370\u306E\u5217\u3092\u56F2\u307F\u3001\u5B57\u3092\u7E01\u306E\u672D\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "text"], "properties": { "type": { "const": "span" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "text": { "$ref": "#/definitions/text" }, "shape": { "enum": ["box"] }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u8449\u3092\u51FA\u3059\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u8449\u306E\u7BB1\u304C\u73FE\u308C\u308B\u3002hash \u3092\u66F8\u304F\u3068\u7BB1\u306B\u5024\u3092\u51FA\u3057\u3001\u540D\u672D\u3092\u8449\u306E\u4E0B\u306E\u672D\u306B\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["type", "id"], "properties": { "type": { "const": "leaf" }, "id": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "1 \u3064\u4EE5\u4E0A\u306E\u5B50\u304B\u3089\u89AA\u3092\u7D44\u3080\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u89AA\u306E\u7BB1\u3068\u3001\u5B50\u304B\u3089\u89AA\u3078\u306E\u6728\u306E\u7DDA\u304C\u73FE\u308C\u308B", "type": "object", "additionalProperties": false, "required": ["type", "id", "children"], "properties": { "type": { "const": "node" }, "id": { "$ref": "#/definitions/id" }, "children": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "\u5217\u306E box \u306E\u4E26\u3073\u3092 items \u306B\u66F8\u304D\u63DB\u3048\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u30C1\u30C3\u30D7\u306F\u524D\u306B\u5C45\u305F\u5217\u304B\u3089\u6ED1\u308A\u3001\u3069\u306E\u5217\u306B\u3082\u5C45\u306A\u304B\u3063\u305F\u30C1\u30C3\u30D7\u306F\u5F3E\u3093\u3067\u73FE\u308C\u3001\u5217\u304B\u3089\u5916\u308C\u305F\u30C1\u30C3\u30D7\u306F\u6D88\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "items"], "properties": { "type": { "const": "line" }, "box": { "$ref": "#/definitions/id" }, "items": { "type": "array", "minItems": 1, "maxItems": 12, "items": { "$ref": "#/definitions/id" } } } }, { "description": "\u5217 box \u306B\u5C01\u3092\u3057\u3066\u3001\u30C1\u30C3\u30D7\u3092\u96A0\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "seal" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u5C01\u3092\u958B\u3051\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "open" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u3092\u9078\u3076\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u5217\u306E\u7E01\u306B\u8272\u304C\u4ED8\u304D\u3001\u307B\u304B\u306E\u5217\u304C\u8584\u304F\u306A\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "pick" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u53F3\u306B text \u306E\u672D\u3092\u62BC\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "stamp" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" } } }, { "description": "\u4E2D\u8EAB\u306E\u5E2F\u306E\u6B04\u306E\u5024\u3068\u672D", "type": "object", "additionalProperties": false, "required": ["type", "field"], "anyOf": [{ "required": ["value"] }, { "required": ["tag"] }], "properties": { "type": { "const": "strip" }, "field": { "$ref": "#/definitions/text" }, "value": { "$ref": "#/definitions/text" }, "tag": { "$ref": "#/definitions/text" } } }] };
|
|
1327
1713
|
var pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");
|
|
1328
|
-
var
|
|
1329
|
-
function
|
|
1714
|
+
var schema106 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
|
|
1715
|
+
function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1330
1716
|
let vErrors = null;
|
|
1331
1717
|
let errors = 0;
|
|
1332
1718
|
const _errs1 = errors;
|
|
@@ -1452,7 +1838,7 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1452
1838
|
if (data.kind !== void 0) {
|
|
1453
1839
|
let data1 = data.kind;
|
|
1454
1840
|
if (!(data1 === "envelope" || data1 === "tag" || data1 === "coin" || data1 === "none")) {
|
|
1455
|
-
const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues:
|
|
1841
|
+
const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema106.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
1456
1842
|
if (vErrors === null) {
|
|
1457
1843
|
vErrors = [err8];
|
|
1458
1844
|
} else {
|
|
@@ -1492,10 +1878,10 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1492
1878
|
}
|
|
1493
1879
|
errors++;
|
|
1494
1880
|
}
|
|
1495
|
-
|
|
1881
|
+
validate42.errors = vErrors;
|
|
1496
1882
|
return errors === 0;
|
|
1497
1883
|
}
|
|
1498
|
-
function
|
|
1884
|
+
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1499
1885
|
let vErrors = null;
|
|
1500
1886
|
let errors = 0;
|
|
1501
1887
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1637,15 +2023,15 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1637
2023
|
}
|
|
1638
2024
|
}
|
|
1639
2025
|
if (data.carry !== void 0) {
|
|
1640
|
-
if (!
|
|
1641
|
-
vErrors = vErrors === null ?
|
|
2026
|
+
if (!validate42(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
|
|
2027
|
+
vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
|
|
1642
2028
|
errors = vErrors.length;
|
|
1643
2029
|
}
|
|
1644
2030
|
}
|
|
1645
2031
|
if (data.labelSide !== void 0) {
|
|
1646
2032
|
let data5 = data.labelSide;
|
|
1647
2033
|
if (!(data5 === "above" || data5 === "below" || data5 === "left" || data5 === "right")) {
|
|
1648
|
-
const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues:
|
|
2034
|
+
const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues: schema102.oneOf[0].properties.labelSide.enum }, message: "must be equal to one of the allowed values" };
|
|
1649
2035
|
if (vErrors === null) {
|
|
1650
2036
|
vErrors = [err13];
|
|
1651
2037
|
} else {
|
|
@@ -1911,7 +2297,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1911
2297
|
if (data.color !== void 0) {
|
|
1912
2298
|
let data14 = data.color;
|
|
1913
2299
|
if (!(data14 === "blue" || data14 === "amber" || data14 === "green" || data14 === "violet" || data14 === "rose" || data14 === "slate" || data14 === "coin")) {
|
|
1914
|
-
const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
2300
|
+
const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
1915
2301
|
if (vErrors === null) {
|
|
1916
2302
|
vErrors = [err38];
|
|
1917
2303
|
} else {
|
|
@@ -2439,7 +2825,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2439
2825
|
if (data.color !== void 0) {
|
|
2440
2826
|
let data31 = data.color;
|
|
2441
2827
|
if (!(data31 === "blue" || data31 === "amber" || data31 === "green" || data31 === "violet" || data31 === "rose" || data31 === "slate" || data31 === "coin")) {
|
|
2442
|
-
const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
2828
|
+
const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
2443
2829
|
if (vErrors === null) {
|
|
2444
2830
|
vErrors = [err88];
|
|
2445
2831
|
} else {
|
|
@@ -2587,7 +2973,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2587
2973
|
}
|
|
2588
2974
|
if (data.shape !== void 0) {
|
|
2589
2975
|
if (!(data.shape === "box")) {
|
|
2590
|
-
const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues:
|
|
2976
|
+
const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues: schema102.oneOf[7].properties.shape.enum }, message: "must be equal to one of the allowed values" };
|
|
2591
2977
|
if (vErrors === null) {
|
|
2592
2978
|
vErrors = [err102];
|
|
2593
2979
|
} else {
|
|
@@ -2599,7 +2985,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2599
2985
|
if (data.color !== void 0) {
|
|
2600
2986
|
let data37 = data.color;
|
|
2601
2987
|
if (!(data37 === "blue" || data37 === "amber" || data37 === "green" || data37 === "violet" || data37 === "rose" || data37 === "slate" || data37 === "coin")) {
|
|
2602
|
-
const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
2988
|
+
const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
2603
2989
|
if (vErrors === null) {
|
|
2604
2990
|
vErrors = [err103];
|
|
2605
2991
|
} else {
|
|
@@ -2861,13 +3247,10 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2861
3247
|
}
|
|
2862
3248
|
errors++;
|
|
2863
3249
|
}
|
|
2864
|
-
} else if (tag0 === "
|
|
2865
|
-
const _errs142 = errors;
|
|
2866
|
-
let valid56 = false;
|
|
2867
|
-
const _errs143 = errors;
|
|
3250
|
+
} else if (tag0 === "line") {
|
|
2868
3251
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2869
|
-
if (data.
|
|
2870
|
-
const err128 = { instancePath, schemaPath: "#/oneOf/10/
|
|
3252
|
+
if (data.type === void 0) {
|
|
3253
|
+
const err128 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
2871
3254
|
if (vErrors === null) {
|
|
2872
3255
|
vErrors = [err128];
|
|
2873
3256
|
} else {
|
|
@@ -2875,38 +3258,500 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2875
3258
|
}
|
|
2876
3259
|
errors++;
|
|
2877
3260
|
}
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
3261
|
+
if (data.box === void 0) {
|
|
3262
|
+
const err129 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
3263
|
+
if (vErrors === null) {
|
|
3264
|
+
vErrors = [err129];
|
|
3265
|
+
} else {
|
|
3266
|
+
vErrors.push(err129);
|
|
3267
|
+
}
|
|
3268
|
+
errors++;
|
|
3269
|
+
}
|
|
3270
|
+
if (data.items === void 0) {
|
|
3271
|
+
const err130 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
|
|
3272
|
+
if (vErrors === null) {
|
|
3273
|
+
vErrors = [err130];
|
|
3274
|
+
} else {
|
|
3275
|
+
vErrors.push(err130);
|
|
3276
|
+
}
|
|
3277
|
+
errors++;
|
|
3278
|
+
}
|
|
3279
|
+
for (const key10 in data) {
|
|
3280
|
+
if (!(key10 === "type" || key10 === "box" || key10 === "items")) {
|
|
3281
|
+
const err131 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
|
|
2886
3282
|
if (vErrors === null) {
|
|
2887
|
-
vErrors = [
|
|
3283
|
+
vErrors = [err131];
|
|
2888
3284
|
} else {
|
|
2889
|
-
vErrors.push(
|
|
3285
|
+
vErrors.push(err131);
|
|
2890
3286
|
}
|
|
2891
3287
|
errors++;
|
|
2892
3288
|
}
|
|
2893
3289
|
}
|
|
2894
|
-
|
|
2895
|
-
|
|
3290
|
+
if (data.type !== void 0) {
|
|
3291
|
+
if ("line" !== data.type) {
|
|
3292
|
+
const err132 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "line" }, message: "must be equal to constant" };
|
|
3293
|
+
if (vErrors === null) {
|
|
3294
|
+
vErrors = [err132];
|
|
3295
|
+
} else {
|
|
3296
|
+
vErrors.push(err132);
|
|
3297
|
+
}
|
|
3298
|
+
errors++;
|
|
3299
|
+
}
|
|
3300
|
+
}
|
|
3301
|
+
if (data.box !== void 0) {
|
|
3302
|
+
let data47 = data.box;
|
|
3303
|
+
if (typeof data47 === "string") {
|
|
3304
|
+
if (!pattern0.test(data47)) {
|
|
3305
|
+
const err133 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3306
|
+
if (vErrors === null) {
|
|
3307
|
+
vErrors = [err133];
|
|
3308
|
+
} else {
|
|
3309
|
+
vErrors.push(err133);
|
|
3310
|
+
}
|
|
3311
|
+
errors++;
|
|
3312
|
+
}
|
|
3313
|
+
} else {
|
|
3314
|
+
const err134 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3315
|
+
if (vErrors === null) {
|
|
3316
|
+
vErrors = [err134];
|
|
3317
|
+
} else {
|
|
3318
|
+
vErrors.push(err134);
|
|
3319
|
+
}
|
|
3320
|
+
errors++;
|
|
3321
|
+
}
|
|
3322
|
+
}
|
|
3323
|
+
if (data.items !== void 0) {
|
|
3324
|
+
let data48 = data.items;
|
|
3325
|
+
if (Array.isArray(data48)) {
|
|
3326
|
+
if (data48.length > 12) {
|
|
3327
|
+
const err135 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/maxItems", keyword: "maxItems", params: { limit: 12 }, message: "must NOT have more than 12 items" };
|
|
3328
|
+
if (vErrors === null) {
|
|
3329
|
+
vErrors = [err135];
|
|
3330
|
+
} else {
|
|
3331
|
+
vErrors.push(err135);
|
|
3332
|
+
}
|
|
3333
|
+
errors++;
|
|
3334
|
+
}
|
|
3335
|
+
if (data48.length < 1) {
|
|
3336
|
+
const err136 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
3337
|
+
if (vErrors === null) {
|
|
3338
|
+
vErrors = [err136];
|
|
3339
|
+
} else {
|
|
3340
|
+
vErrors.push(err136);
|
|
3341
|
+
}
|
|
3342
|
+
errors++;
|
|
3343
|
+
}
|
|
3344
|
+
const len1 = data48.length;
|
|
3345
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
3346
|
+
let data49 = data48[i1];
|
|
3347
|
+
if (typeof data49 === "string") {
|
|
3348
|
+
if (!pattern0.test(data49)) {
|
|
3349
|
+
const err137 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3350
|
+
if (vErrors === null) {
|
|
3351
|
+
vErrors = [err137];
|
|
3352
|
+
} else {
|
|
3353
|
+
vErrors.push(err137);
|
|
3354
|
+
}
|
|
3355
|
+
errors++;
|
|
3356
|
+
}
|
|
3357
|
+
} else {
|
|
3358
|
+
const err138 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3359
|
+
if (vErrors === null) {
|
|
3360
|
+
vErrors = [err138];
|
|
3361
|
+
} else {
|
|
3362
|
+
vErrors.push(err138);
|
|
3363
|
+
}
|
|
3364
|
+
errors++;
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
} else {
|
|
3368
|
+
const err139 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
3369
|
+
if (vErrors === null) {
|
|
3370
|
+
vErrors = [err139];
|
|
3371
|
+
} else {
|
|
3372
|
+
vErrors.push(err139);
|
|
3373
|
+
}
|
|
3374
|
+
errors++;
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
} else {
|
|
3378
|
+
const err140 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3379
|
+
if (vErrors === null) {
|
|
3380
|
+
vErrors = [err140];
|
|
3381
|
+
} else {
|
|
3382
|
+
vErrors.push(err140);
|
|
3383
|
+
}
|
|
3384
|
+
errors++;
|
|
2896
3385
|
}
|
|
2897
|
-
|
|
2898
|
-
|
|
3386
|
+
} else if (tag0 === "seal") {
|
|
3387
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3388
|
+
if (data.type === void 0) {
|
|
3389
|
+
const err141 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
3390
|
+
if (vErrors === null) {
|
|
3391
|
+
vErrors = [err141];
|
|
3392
|
+
} else {
|
|
3393
|
+
vErrors.push(err141);
|
|
3394
|
+
}
|
|
3395
|
+
errors++;
|
|
3396
|
+
}
|
|
3397
|
+
if (data.box === void 0) {
|
|
3398
|
+
const err142 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
3399
|
+
if (vErrors === null) {
|
|
3400
|
+
vErrors = [err142];
|
|
3401
|
+
} else {
|
|
3402
|
+
vErrors.push(err142);
|
|
3403
|
+
}
|
|
3404
|
+
errors++;
|
|
3405
|
+
}
|
|
3406
|
+
for (const key11 in data) {
|
|
3407
|
+
if (!(key11 === "type" || key11 === "box")) {
|
|
3408
|
+
const err143 = { instancePath, schemaPath: "#/oneOf/11/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key11 }, message: "must NOT have additional properties" };
|
|
3409
|
+
if (vErrors === null) {
|
|
3410
|
+
vErrors = [err143];
|
|
3411
|
+
} else {
|
|
3412
|
+
vErrors.push(err143);
|
|
3413
|
+
}
|
|
3414
|
+
errors++;
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
if (data.type !== void 0) {
|
|
3418
|
+
if ("seal" !== data.type) {
|
|
3419
|
+
const err144 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/11/properties/type/const", keyword: "const", params: { allowedValue: "seal" }, message: "must be equal to constant" };
|
|
3420
|
+
if (vErrors === null) {
|
|
3421
|
+
vErrors = [err144];
|
|
3422
|
+
} else {
|
|
3423
|
+
vErrors.push(err144);
|
|
3424
|
+
}
|
|
3425
|
+
errors++;
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
if (data.box !== void 0) {
|
|
3429
|
+
let data51 = data.box;
|
|
3430
|
+
if (typeof data51 === "string") {
|
|
3431
|
+
if (!pattern0.test(data51)) {
|
|
3432
|
+
const err145 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3433
|
+
if (vErrors === null) {
|
|
3434
|
+
vErrors = [err145];
|
|
3435
|
+
} else {
|
|
3436
|
+
vErrors.push(err145);
|
|
3437
|
+
}
|
|
3438
|
+
errors++;
|
|
3439
|
+
}
|
|
3440
|
+
} else {
|
|
3441
|
+
const err146 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3442
|
+
if (vErrors === null) {
|
|
3443
|
+
vErrors = [err146];
|
|
3444
|
+
} else {
|
|
3445
|
+
vErrors.push(err146);
|
|
3446
|
+
}
|
|
3447
|
+
errors++;
|
|
3448
|
+
}
|
|
3449
|
+
}
|
|
3450
|
+
} else {
|
|
3451
|
+
const err147 = { instancePath, schemaPath: "#/oneOf/11/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2899
3452
|
if (vErrors === null) {
|
|
2900
|
-
vErrors = [
|
|
3453
|
+
vErrors = [err147];
|
|
2901
3454
|
} else {
|
|
2902
|
-
vErrors.push(
|
|
3455
|
+
vErrors.push(err147);
|
|
2903
3456
|
}
|
|
2904
3457
|
errors++;
|
|
3458
|
+
}
|
|
3459
|
+
} else if (tag0 === "open") {
|
|
3460
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3461
|
+
if (data.type === void 0) {
|
|
3462
|
+
const err148 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
3463
|
+
if (vErrors === null) {
|
|
3464
|
+
vErrors = [err148];
|
|
3465
|
+
} else {
|
|
3466
|
+
vErrors.push(err148);
|
|
3467
|
+
}
|
|
3468
|
+
errors++;
|
|
3469
|
+
}
|
|
3470
|
+
if (data.box === void 0) {
|
|
3471
|
+
const err149 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
3472
|
+
if (vErrors === null) {
|
|
3473
|
+
vErrors = [err149];
|
|
3474
|
+
} else {
|
|
3475
|
+
vErrors.push(err149);
|
|
3476
|
+
}
|
|
3477
|
+
errors++;
|
|
3478
|
+
}
|
|
3479
|
+
for (const key12 in data) {
|
|
3480
|
+
if (!(key12 === "type" || key12 === "box")) {
|
|
3481
|
+
const err150 = { instancePath, schemaPath: "#/oneOf/12/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key12 }, message: "must NOT have additional properties" };
|
|
3482
|
+
if (vErrors === null) {
|
|
3483
|
+
vErrors = [err150];
|
|
3484
|
+
} else {
|
|
3485
|
+
vErrors.push(err150);
|
|
3486
|
+
}
|
|
3487
|
+
errors++;
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3490
|
+
if (data.type !== void 0) {
|
|
3491
|
+
if ("open" !== data.type) {
|
|
3492
|
+
const err151 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/12/properties/type/const", keyword: "const", params: { allowedValue: "open" }, message: "must be equal to constant" };
|
|
3493
|
+
if (vErrors === null) {
|
|
3494
|
+
vErrors = [err151];
|
|
3495
|
+
} else {
|
|
3496
|
+
vErrors.push(err151);
|
|
3497
|
+
}
|
|
3498
|
+
errors++;
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
if (data.box !== void 0) {
|
|
3502
|
+
let data53 = data.box;
|
|
3503
|
+
if (typeof data53 === "string") {
|
|
3504
|
+
if (!pattern0.test(data53)) {
|
|
3505
|
+
const err152 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3506
|
+
if (vErrors === null) {
|
|
3507
|
+
vErrors = [err152];
|
|
3508
|
+
} else {
|
|
3509
|
+
vErrors.push(err152);
|
|
3510
|
+
}
|
|
3511
|
+
errors++;
|
|
3512
|
+
}
|
|
3513
|
+
} else {
|
|
3514
|
+
const err153 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3515
|
+
if (vErrors === null) {
|
|
3516
|
+
vErrors = [err153];
|
|
3517
|
+
} else {
|
|
3518
|
+
vErrors.push(err153);
|
|
3519
|
+
}
|
|
3520
|
+
errors++;
|
|
3521
|
+
}
|
|
3522
|
+
}
|
|
2905
3523
|
} else {
|
|
2906
|
-
|
|
3524
|
+
const err154 = { instancePath, schemaPath: "#/oneOf/12/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3525
|
+
if (vErrors === null) {
|
|
3526
|
+
vErrors = [err154];
|
|
3527
|
+
} else {
|
|
3528
|
+
vErrors.push(err154);
|
|
3529
|
+
}
|
|
3530
|
+
errors++;
|
|
3531
|
+
}
|
|
3532
|
+
} else if (tag0 === "pick") {
|
|
3533
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3534
|
+
if (data.type === void 0) {
|
|
3535
|
+
const err155 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
3536
|
+
if (vErrors === null) {
|
|
3537
|
+
vErrors = [err155];
|
|
3538
|
+
} else {
|
|
3539
|
+
vErrors.push(err155);
|
|
3540
|
+
}
|
|
3541
|
+
errors++;
|
|
3542
|
+
}
|
|
3543
|
+
if (data.box === void 0) {
|
|
3544
|
+
const err156 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
3545
|
+
if (vErrors === null) {
|
|
3546
|
+
vErrors = [err156];
|
|
3547
|
+
} else {
|
|
3548
|
+
vErrors.push(err156);
|
|
3549
|
+
}
|
|
3550
|
+
errors++;
|
|
3551
|
+
}
|
|
3552
|
+
for (const key13 in data) {
|
|
3553
|
+
if (!(key13 === "type" || key13 === "box")) {
|
|
3554
|
+
const err157 = { instancePath, schemaPath: "#/oneOf/13/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key13 }, message: "must NOT have additional properties" };
|
|
3555
|
+
if (vErrors === null) {
|
|
3556
|
+
vErrors = [err157];
|
|
3557
|
+
} else {
|
|
3558
|
+
vErrors.push(err157);
|
|
3559
|
+
}
|
|
3560
|
+
errors++;
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
if (data.type !== void 0) {
|
|
3564
|
+
if ("pick" !== data.type) {
|
|
3565
|
+
const err158 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/13/properties/type/const", keyword: "const", params: { allowedValue: "pick" }, message: "must be equal to constant" };
|
|
3566
|
+
if (vErrors === null) {
|
|
3567
|
+
vErrors = [err158];
|
|
3568
|
+
} else {
|
|
3569
|
+
vErrors.push(err158);
|
|
3570
|
+
}
|
|
3571
|
+
errors++;
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
if (data.box !== void 0) {
|
|
3575
|
+
let data55 = data.box;
|
|
3576
|
+
if (typeof data55 === "string") {
|
|
3577
|
+
if (!pattern0.test(data55)) {
|
|
3578
|
+
const err159 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3579
|
+
if (vErrors === null) {
|
|
3580
|
+
vErrors = [err159];
|
|
3581
|
+
} else {
|
|
3582
|
+
vErrors.push(err159);
|
|
3583
|
+
}
|
|
3584
|
+
errors++;
|
|
3585
|
+
}
|
|
3586
|
+
} else {
|
|
3587
|
+
const err160 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3588
|
+
if (vErrors === null) {
|
|
3589
|
+
vErrors = [err160];
|
|
3590
|
+
} else {
|
|
3591
|
+
vErrors.push(err160);
|
|
3592
|
+
}
|
|
3593
|
+
errors++;
|
|
3594
|
+
}
|
|
3595
|
+
}
|
|
3596
|
+
} else {
|
|
3597
|
+
const err161 = { instancePath, schemaPath: "#/oneOf/13/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3598
|
+
if (vErrors === null) {
|
|
3599
|
+
vErrors = [err161];
|
|
3600
|
+
} else {
|
|
3601
|
+
vErrors.push(err161);
|
|
3602
|
+
}
|
|
3603
|
+
errors++;
|
|
3604
|
+
}
|
|
3605
|
+
} else if (tag0 === "stamp") {
|
|
3606
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3607
|
+
if (data.type === void 0) {
|
|
3608
|
+
const err162 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
3609
|
+
if (vErrors === null) {
|
|
3610
|
+
vErrors = [err162];
|
|
3611
|
+
} else {
|
|
3612
|
+
vErrors.push(err162);
|
|
3613
|
+
}
|
|
3614
|
+
errors++;
|
|
3615
|
+
}
|
|
3616
|
+
if (data.box === void 0) {
|
|
3617
|
+
const err163 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
3618
|
+
if (vErrors === null) {
|
|
3619
|
+
vErrors = [err163];
|
|
3620
|
+
} else {
|
|
3621
|
+
vErrors.push(err163);
|
|
3622
|
+
}
|
|
3623
|
+
errors++;
|
|
3624
|
+
}
|
|
3625
|
+
if (data.text === void 0) {
|
|
3626
|
+
const err164 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
|
|
3627
|
+
if (vErrors === null) {
|
|
3628
|
+
vErrors = [err164];
|
|
3629
|
+
} else {
|
|
3630
|
+
vErrors.push(err164);
|
|
3631
|
+
}
|
|
3632
|
+
errors++;
|
|
3633
|
+
}
|
|
3634
|
+
for (const key14 in data) {
|
|
3635
|
+
if (!(key14 === "type" || key14 === "box" || key14 === "text")) {
|
|
3636
|
+
const err165 = { instancePath, schemaPath: "#/oneOf/14/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key14 }, message: "must NOT have additional properties" };
|
|
3637
|
+
if (vErrors === null) {
|
|
3638
|
+
vErrors = [err165];
|
|
3639
|
+
} else {
|
|
3640
|
+
vErrors.push(err165);
|
|
3641
|
+
}
|
|
3642
|
+
errors++;
|
|
3643
|
+
}
|
|
3644
|
+
}
|
|
3645
|
+
if (data.type !== void 0) {
|
|
3646
|
+
if ("stamp" !== data.type) {
|
|
3647
|
+
const err166 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/14/properties/type/const", keyword: "const", params: { allowedValue: "stamp" }, message: "must be equal to constant" };
|
|
3648
|
+
if (vErrors === null) {
|
|
3649
|
+
vErrors = [err166];
|
|
3650
|
+
} else {
|
|
3651
|
+
vErrors.push(err166);
|
|
3652
|
+
}
|
|
3653
|
+
errors++;
|
|
3654
|
+
}
|
|
3655
|
+
}
|
|
3656
|
+
if (data.box !== void 0) {
|
|
3657
|
+
let data57 = data.box;
|
|
3658
|
+
if (typeof data57 === "string") {
|
|
3659
|
+
if (!pattern0.test(data57)) {
|
|
3660
|
+
const err167 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3661
|
+
if (vErrors === null) {
|
|
3662
|
+
vErrors = [err167];
|
|
3663
|
+
} else {
|
|
3664
|
+
vErrors.push(err167);
|
|
3665
|
+
}
|
|
3666
|
+
errors++;
|
|
3667
|
+
}
|
|
3668
|
+
} else {
|
|
3669
|
+
const err168 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3670
|
+
if (vErrors === null) {
|
|
3671
|
+
vErrors = [err168];
|
|
3672
|
+
} else {
|
|
3673
|
+
vErrors.push(err168);
|
|
3674
|
+
}
|
|
3675
|
+
errors++;
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3678
|
+
if (data.text !== void 0) {
|
|
3679
|
+
let data58 = data.text;
|
|
3680
|
+
if (typeof data58 === "string") {
|
|
3681
|
+
if (func3(data58) < 1) {
|
|
3682
|
+
const err169 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
3683
|
+
if (vErrors === null) {
|
|
3684
|
+
vErrors = [err169];
|
|
3685
|
+
} else {
|
|
3686
|
+
vErrors.push(err169);
|
|
3687
|
+
}
|
|
3688
|
+
errors++;
|
|
3689
|
+
}
|
|
3690
|
+
} else {
|
|
3691
|
+
const err170 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3692
|
+
if (vErrors === null) {
|
|
3693
|
+
vErrors = [err170];
|
|
3694
|
+
} else {
|
|
3695
|
+
vErrors.push(err170);
|
|
3696
|
+
}
|
|
3697
|
+
errors++;
|
|
3698
|
+
}
|
|
3699
|
+
}
|
|
3700
|
+
} else {
|
|
3701
|
+
const err171 = { instancePath, schemaPath: "#/oneOf/14/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3702
|
+
if (vErrors === null) {
|
|
3703
|
+
vErrors = [err171];
|
|
3704
|
+
} else {
|
|
3705
|
+
vErrors.push(err171);
|
|
3706
|
+
}
|
|
3707
|
+
errors++;
|
|
3708
|
+
}
|
|
3709
|
+
} else if (tag0 === "strip") {
|
|
3710
|
+
const _errs185 = errors;
|
|
3711
|
+
let valid75 = false;
|
|
3712
|
+
const _errs186 = errors;
|
|
3713
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3714
|
+
if (data.value === void 0) {
|
|
3715
|
+
const err172 = { instancePath, schemaPath: "#/oneOf/15/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
|
|
3716
|
+
if (vErrors === null) {
|
|
3717
|
+
vErrors = [err172];
|
|
3718
|
+
} else {
|
|
3719
|
+
vErrors.push(err172);
|
|
3720
|
+
}
|
|
3721
|
+
errors++;
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
var _valid0 = _errs186 === errors;
|
|
3725
|
+
valid75 = valid75 || _valid0;
|
|
3726
|
+
if (!valid75) {
|
|
3727
|
+
const _errs187 = errors;
|
|
3728
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3729
|
+
if (data.tag === void 0) {
|
|
3730
|
+
const err173 = { instancePath, schemaPath: "#/oneOf/15/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
|
|
3731
|
+
if (vErrors === null) {
|
|
3732
|
+
vErrors = [err173];
|
|
3733
|
+
} else {
|
|
3734
|
+
vErrors.push(err173);
|
|
3735
|
+
}
|
|
3736
|
+
errors++;
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3739
|
+
var _valid0 = _errs187 === errors;
|
|
3740
|
+
valid75 = valid75 || _valid0;
|
|
3741
|
+
}
|
|
3742
|
+
if (!valid75) {
|
|
3743
|
+
const err174 = { instancePath, schemaPath: "#/oneOf/15/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
3744
|
+
if (vErrors === null) {
|
|
3745
|
+
vErrors = [err174];
|
|
3746
|
+
} else {
|
|
3747
|
+
vErrors.push(err174);
|
|
3748
|
+
}
|
|
3749
|
+
errors++;
|
|
3750
|
+
} else {
|
|
3751
|
+
errors = _errs185;
|
|
2907
3752
|
if (vErrors !== null) {
|
|
2908
|
-
if (
|
|
2909
|
-
vErrors.length =
|
|
3753
|
+
if (_errs185) {
|
|
3754
|
+
vErrors.length = _errs185;
|
|
2910
3755
|
} else {
|
|
2911
3756
|
vErrors = null;
|
|
2912
3757
|
}
|
|
@@ -2914,151 +3759,151 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2914
3759
|
}
|
|
2915
3760
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2916
3761
|
if (data.type === void 0) {
|
|
2917
|
-
const
|
|
3762
|
+
const err175 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
2918
3763
|
if (vErrors === null) {
|
|
2919
|
-
vErrors = [
|
|
3764
|
+
vErrors = [err175];
|
|
2920
3765
|
} else {
|
|
2921
|
-
vErrors.push(
|
|
3766
|
+
vErrors.push(err175);
|
|
2922
3767
|
}
|
|
2923
3768
|
errors++;
|
|
2924
3769
|
}
|
|
2925
3770
|
if (data.field === void 0) {
|
|
2926
|
-
const
|
|
3771
|
+
const err176 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
|
|
2927
3772
|
if (vErrors === null) {
|
|
2928
|
-
vErrors = [
|
|
3773
|
+
vErrors = [err176];
|
|
2929
3774
|
} else {
|
|
2930
|
-
vErrors.push(
|
|
3775
|
+
vErrors.push(err176);
|
|
2931
3776
|
}
|
|
2932
3777
|
errors++;
|
|
2933
3778
|
}
|
|
2934
|
-
for (const
|
|
2935
|
-
if (!(
|
|
2936
|
-
const
|
|
3779
|
+
for (const key15 in data) {
|
|
3780
|
+
if (!(key15 === "type" || key15 === "field" || key15 === "value" || key15 === "tag")) {
|
|
3781
|
+
const err177 = { instancePath, schemaPath: "#/oneOf/15/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key15 }, message: "must NOT have additional properties" };
|
|
2937
3782
|
if (vErrors === null) {
|
|
2938
|
-
vErrors = [
|
|
3783
|
+
vErrors = [err177];
|
|
2939
3784
|
} else {
|
|
2940
|
-
vErrors.push(
|
|
3785
|
+
vErrors.push(err177);
|
|
2941
3786
|
}
|
|
2942
3787
|
errors++;
|
|
2943
3788
|
}
|
|
2944
3789
|
}
|
|
2945
3790
|
if (data.type !== void 0) {
|
|
2946
3791
|
if ("strip" !== data.type) {
|
|
2947
|
-
const
|
|
3792
|
+
const err178 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/15/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
|
|
2948
3793
|
if (vErrors === null) {
|
|
2949
|
-
vErrors = [
|
|
3794
|
+
vErrors = [err178];
|
|
2950
3795
|
} else {
|
|
2951
|
-
vErrors.push(
|
|
3796
|
+
vErrors.push(err178);
|
|
2952
3797
|
}
|
|
2953
3798
|
errors++;
|
|
2954
3799
|
}
|
|
2955
3800
|
}
|
|
2956
3801
|
if (data.field !== void 0) {
|
|
2957
|
-
let
|
|
2958
|
-
if (typeof
|
|
2959
|
-
if (func3(
|
|
2960
|
-
const
|
|
3802
|
+
let data60 = data.field;
|
|
3803
|
+
if (typeof data60 === "string") {
|
|
3804
|
+
if (func3(data60) < 1) {
|
|
3805
|
+
const err179 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2961
3806
|
if (vErrors === null) {
|
|
2962
|
-
vErrors = [
|
|
3807
|
+
vErrors = [err179];
|
|
2963
3808
|
} else {
|
|
2964
|
-
vErrors.push(
|
|
3809
|
+
vErrors.push(err179);
|
|
2965
3810
|
}
|
|
2966
3811
|
errors++;
|
|
2967
3812
|
}
|
|
2968
3813
|
} else {
|
|
2969
|
-
const
|
|
3814
|
+
const err180 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2970
3815
|
if (vErrors === null) {
|
|
2971
|
-
vErrors = [
|
|
3816
|
+
vErrors = [err180];
|
|
2972
3817
|
} else {
|
|
2973
|
-
vErrors.push(
|
|
3818
|
+
vErrors.push(err180);
|
|
2974
3819
|
}
|
|
2975
3820
|
errors++;
|
|
2976
3821
|
}
|
|
2977
3822
|
}
|
|
2978
3823
|
if (data.value !== void 0) {
|
|
2979
|
-
let
|
|
2980
|
-
if (typeof
|
|
2981
|
-
if (func3(
|
|
2982
|
-
const
|
|
3824
|
+
let data61 = data.value;
|
|
3825
|
+
if (typeof data61 === "string") {
|
|
3826
|
+
if (func3(data61) < 1) {
|
|
3827
|
+
const err181 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2983
3828
|
if (vErrors === null) {
|
|
2984
|
-
vErrors = [
|
|
3829
|
+
vErrors = [err181];
|
|
2985
3830
|
} else {
|
|
2986
|
-
vErrors.push(
|
|
3831
|
+
vErrors.push(err181);
|
|
2987
3832
|
}
|
|
2988
3833
|
errors++;
|
|
2989
3834
|
}
|
|
2990
3835
|
} else {
|
|
2991
|
-
const
|
|
3836
|
+
const err182 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2992
3837
|
if (vErrors === null) {
|
|
2993
|
-
vErrors = [
|
|
3838
|
+
vErrors = [err182];
|
|
2994
3839
|
} else {
|
|
2995
|
-
vErrors.push(
|
|
3840
|
+
vErrors.push(err182);
|
|
2996
3841
|
}
|
|
2997
3842
|
errors++;
|
|
2998
3843
|
}
|
|
2999
3844
|
}
|
|
3000
3845
|
if (data.tag !== void 0) {
|
|
3001
|
-
let
|
|
3002
|
-
if (typeof
|
|
3003
|
-
if (func3(
|
|
3004
|
-
const
|
|
3846
|
+
let data62 = data.tag;
|
|
3847
|
+
if (typeof data62 === "string") {
|
|
3848
|
+
if (func3(data62) < 1) {
|
|
3849
|
+
const err183 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
3005
3850
|
if (vErrors === null) {
|
|
3006
|
-
vErrors = [
|
|
3851
|
+
vErrors = [err183];
|
|
3007
3852
|
} else {
|
|
3008
|
-
vErrors.push(
|
|
3853
|
+
vErrors.push(err183);
|
|
3009
3854
|
}
|
|
3010
3855
|
errors++;
|
|
3011
3856
|
}
|
|
3012
3857
|
} else {
|
|
3013
|
-
const
|
|
3858
|
+
const err184 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3014
3859
|
if (vErrors === null) {
|
|
3015
|
-
vErrors = [
|
|
3860
|
+
vErrors = [err184];
|
|
3016
3861
|
} else {
|
|
3017
|
-
vErrors.push(
|
|
3862
|
+
vErrors.push(err184);
|
|
3018
3863
|
}
|
|
3019
3864
|
errors++;
|
|
3020
3865
|
}
|
|
3021
3866
|
}
|
|
3022
3867
|
} else {
|
|
3023
|
-
const
|
|
3868
|
+
const err185 = { instancePath, schemaPath: "#/oneOf/15/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3024
3869
|
if (vErrors === null) {
|
|
3025
|
-
vErrors = [
|
|
3870
|
+
vErrors = [err185];
|
|
3026
3871
|
} else {
|
|
3027
|
-
vErrors.push(
|
|
3872
|
+
vErrors.push(err185);
|
|
3028
3873
|
}
|
|
3029
3874
|
errors++;
|
|
3030
3875
|
}
|
|
3031
3876
|
} else {
|
|
3032
|
-
const
|
|
3877
|
+
const err186 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
|
|
3033
3878
|
if (vErrors === null) {
|
|
3034
|
-
vErrors = [
|
|
3879
|
+
vErrors = [err186];
|
|
3035
3880
|
} else {
|
|
3036
|
-
vErrors.push(
|
|
3881
|
+
vErrors.push(err186);
|
|
3037
3882
|
}
|
|
3038
3883
|
errors++;
|
|
3039
3884
|
}
|
|
3040
3885
|
} else {
|
|
3041
|
-
const
|
|
3886
|
+
const err187 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
|
|
3042
3887
|
if (vErrors === null) {
|
|
3043
|
-
vErrors = [
|
|
3888
|
+
vErrors = [err187];
|
|
3044
3889
|
} else {
|
|
3045
|
-
vErrors.push(
|
|
3890
|
+
vErrors.push(err187);
|
|
3046
3891
|
}
|
|
3047
3892
|
errors++;
|
|
3048
3893
|
}
|
|
3049
3894
|
} else {
|
|
3050
|
-
const
|
|
3895
|
+
const err188 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3051
3896
|
if (vErrors === null) {
|
|
3052
|
-
vErrors = [
|
|
3897
|
+
vErrors = [err188];
|
|
3053
3898
|
} else {
|
|
3054
|
-
vErrors.push(
|
|
3899
|
+
vErrors.push(err188);
|
|
3055
3900
|
}
|
|
3056
3901
|
errors++;
|
|
3057
3902
|
}
|
|
3058
|
-
|
|
3903
|
+
validate41.errors = vErrors;
|
|
3059
3904
|
return errors === 0;
|
|
3060
3905
|
}
|
|
3061
|
-
function
|
|
3906
|
+
function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3062
3907
|
let vErrors = null;
|
|
3063
3908
|
let errors = 0;
|
|
3064
3909
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3180,8 +4025,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3180
4025
|
}
|
|
3181
4026
|
const len0 = data3.length;
|
|
3182
4027
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3183
|
-
if (!
|
|
3184
|
-
vErrors = vErrors === null ?
|
|
4028
|
+
if (!validate39(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
|
|
4029
|
+
vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
|
|
3185
4030
|
errors = vErrors.length;
|
|
3186
4031
|
}
|
|
3187
4032
|
}
|
|
@@ -3200,8 +4045,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3200
4045
|
if (Array.isArray(data5)) {
|
|
3201
4046
|
const len1 = data5.length;
|
|
3202
4047
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
3203
|
-
if (!
|
|
3204
|
-
vErrors = vErrors === null ?
|
|
4048
|
+
if (!validate41(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
|
|
4049
|
+
vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
|
|
3205
4050
|
errors = vErrors.length;
|
|
3206
4051
|
}
|
|
3207
4052
|
}
|
|
@@ -3224,10 +4069,10 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3224
4069
|
}
|
|
3225
4070
|
errors++;
|
|
3226
4071
|
}
|
|
3227
|
-
|
|
4072
|
+
validate38.errors = vErrors;
|
|
3228
4073
|
return errors === 0;
|
|
3229
4074
|
}
|
|
3230
|
-
function
|
|
4075
|
+
function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3231
4076
|
let vErrors = null;
|
|
3232
4077
|
let errors = 0;
|
|
3233
4078
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3305,10 +4150,10 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3305
4150
|
}
|
|
3306
4151
|
errors++;
|
|
3307
4152
|
}
|
|
3308
|
-
|
|
4153
|
+
validate46.errors = vErrors;
|
|
3309
4154
|
return errors === 0;
|
|
3310
4155
|
}
|
|
3311
|
-
function
|
|
4156
|
+
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3312
4157
|
let vErrors = null;
|
|
3313
4158
|
let errors = 0;
|
|
3314
4159
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3416,10 +4261,10 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3416
4261
|
}
|
|
3417
4262
|
errors++;
|
|
3418
4263
|
}
|
|
3419
|
-
|
|
4264
|
+
validate49.errors = vErrors;
|
|
3420
4265
|
return errors === 0;
|
|
3421
4266
|
}
|
|
3422
|
-
function
|
|
4267
|
+
function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3423
4268
|
let vErrors = null;
|
|
3424
4269
|
let errors = 0;
|
|
3425
4270
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3457,8 +4302,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3457
4302
|
}
|
|
3458
4303
|
const len0 = data0.length;
|
|
3459
4304
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3460
|
-
if (!
|
|
3461
|
-
vErrors = vErrors === null ?
|
|
4305
|
+
if (!validate49(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
4306
|
+
vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
|
|
3462
4307
|
errors = vErrors.length;
|
|
3463
4308
|
}
|
|
3464
4309
|
}
|
|
@@ -3481,10 +4326,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3481
4326
|
}
|
|
3482
4327
|
errors++;
|
|
3483
4328
|
}
|
|
3484
|
-
|
|
4329
|
+
validate48.errors = vErrors;
|
|
3485
4330
|
return errors === 0;
|
|
3486
4331
|
}
|
|
3487
|
-
function
|
|
4332
|
+
function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3488
4333
|
let vErrors = null;
|
|
3489
4334
|
let errors = 0;
|
|
3490
4335
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3561,10 +4406,10 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3561
4406
|
}
|
|
3562
4407
|
errors++;
|
|
3563
4408
|
}
|
|
3564
|
-
|
|
4409
|
+
validate53.errors = vErrors;
|
|
3565
4410
|
return errors === 0;
|
|
3566
4411
|
}
|
|
3567
|
-
function
|
|
4412
|
+
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3568
4413
|
let vErrors = null;
|
|
3569
4414
|
let errors = 0;
|
|
3570
4415
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3602,8 +4447,8 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3602
4447
|
}
|
|
3603
4448
|
const len0 = data0.length;
|
|
3604
4449
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3605
|
-
if (!
|
|
3606
|
-
vErrors = vErrors === null ?
|
|
4450
|
+
if (!validate53(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
4451
|
+
vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
|
|
3607
4452
|
errors = vErrors.length;
|
|
3608
4453
|
}
|
|
3609
4454
|
}
|
|
@@ -3626,11 +4471,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3626
4471
|
}
|
|
3627
4472
|
errors++;
|
|
3628
4473
|
}
|
|
3629
|
-
|
|
4474
|
+
validate52.errors = vErrors;
|
|
3630
4475
|
return errors === 0;
|
|
3631
4476
|
}
|
|
3632
|
-
var
|
|
3633
|
-
function
|
|
4477
|
+
var pattern33 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
|
|
4478
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3634
4479
|
let vErrors = null;
|
|
3635
4480
|
let errors = 0;
|
|
3636
4481
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3697,7 +4542,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3697
4542
|
if (data.length !== void 0) {
|
|
3698
4543
|
let data1 = data.length;
|
|
3699
4544
|
if (typeof data1 === "string") {
|
|
3700
|
-
if (!
|
|
4545
|
+
if (!pattern33.test(data1)) {
|
|
3701
4546
|
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)$"' };
|
|
3702
4547
|
if (vErrors === null) {
|
|
3703
4548
|
vErrors = [err6];
|
|
@@ -3771,10 +4616,10 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3771
4616
|
}
|
|
3772
4617
|
errors++;
|
|
3773
4618
|
}
|
|
3774
|
-
|
|
4619
|
+
validate57.errors = vErrors;
|
|
3775
4620
|
return errors === 0;
|
|
3776
4621
|
}
|
|
3777
|
-
function
|
|
4622
|
+
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3778
4623
|
let vErrors = null;
|
|
3779
4624
|
let errors = 0;
|
|
3780
4625
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3884,10 +4729,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3884
4729
|
}
|
|
3885
4730
|
errors++;
|
|
3886
4731
|
}
|
|
3887
|
-
|
|
4732
|
+
validate59.errors = vErrors;
|
|
3888
4733
|
return errors === 0;
|
|
3889
4734
|
}
|
|
3890
|
-
function
|
|
4735
|
+
function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3891
4736
|
let vErrors = null;
|
|
3892
4737
|
let errors = 0;
|
|
3893
4738
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3967,7 +4812,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3967
4812
|
if (data.color !== void 0) {
|
|
3968
4813
|
let data2 = data.color;
|
|
3969
4814
|
if (!(data2 === "blue" || data2 === "amber" || data2 === "green" || data2 === "violet" || data2 === "rose" || data2 === "slate" || data2 === "coin")) {
|
|
3970
|
-
const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
4815
|
+
const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
3971
4816
|
if (vErrors === null) {
|
|
3972
4817
|
vErrors = [err7];
|
|
3973
4818
|
} else {
|
|
@@ -4022,10 +4867,10 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4022
4867
|
}
|
|
4023
4868
|
errors++;
|
|
4024
4869
|
}
|
|
4025
|
-
|
|
4870
|
+
validate61.errors = vErrors;
|
|
4026
4871
|
return errors === 0;
|
|
4027
4872
|
}
|
|
4028
|
-
function
|
|
4873
|
+
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4029
4874
|
let vErrors = null;
|
|
4030
4875
|
let errors = 0;
|
|
4031
4876
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4112,10 +4957,10 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4112
4957
|
}
|
|
4113
4958
|
errors++;
|
|
4114
4959
|
}
|
|
4115
|
-
|
|
4960
|
+
validate63.errors = vErrors;
|
|
4116
4961
|
return errors === 0;
|
|
4117
4962
|
}
|
|
4118
|
-
function
|
|
4963
|
+
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4119
4964
|
let vErrors = null;
|
|
4120
4965
|
let errors = 0;
|
|
4121
4966
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4203,10 +5048,10 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4203
5048
|
}
|
|
4204
5049
|
errors++;
|
|
4205
5050
|
}
|
|
4206
|
-
|
|
5051
|
+
validate65.errors = vErrors;
|
|
4207
5052
|
return errors === 0;
|
|
4208
5053
|
}
|
|
4209
|
-
function
|
|
5054
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4210
5055
|
let vErrors = null;
|
|
4211
5056
|
let errors = 0;
|
|
4212
5057
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4240,14 +5085,14 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4240
5085
|
}
|
|
4241
5086
|
}
|
|
4242
5087
|
if (data.scale !== void 0) {
|
|
4243
|
-
if (!
|
|
4244
|
-
vErrors = vErrors === null ?
|
|
5088
|
+
if (!validate57(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
|
|
5089
|
+
vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
|
|
4245
5090
|
errors = vErrors.length;
|
|
4246
5091
|
}
|
|
4247
5092
|
}
|
|
4248
5093
|
if (data.period !== void 0) {
|
|
4249
|
-
if (!
|
|
4250
|
-
vErrors = vErrors === null ?
|
|
5094
|
+
if (!validate59(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
|
|
5095
|
+
vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
|
|
4251
5096
|
errors = vErrors.length;
|
|
4252
5097
|
}
|
|
4253
5098
|
}
|
|
@@ -4265,8 +5110,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4265
5110
|
}
|
|
4266
5111
|
const len0 = data2.length;
|
|
4267
5112
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
4268
|
-
if (!
|
|
4269
|
-
vErrors = vErrors === null ?
|
|
5113
|
+
if (!validate61(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
|
|
5114
|
+
vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);
|
|
4270
5115
|
errors = vErrors.length;
|
|
4271
5116
|
}
|
|
4272
5117
|
}
|
|
@@ -4285,8 +5130,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4285
5130
|
if (Array.isArray(data4)) {
|
|
4286
5131
|
const len1 = data4.length;
|
|
4287
5132
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
4288
|
-
if (!
|
|
4289
|
-
vErrors = vErrors === null ?
|
|
5133
|
+
if (!validate63(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
|
|
5134
|
+
vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
|
|
4290
5135
|
errors = vErrors.length;
|
|
4291
5136
|
}
|
|
4292
5137
|
}
|
|
@@ -4301,8 +5146,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4301
5146
|
}
|
|
4302
5147
|
}
|
|
4303
5148
|
if (data.zoom !== void 0) {
|
|
4304
|
-
if (!
|
|
4305
|
-
vErrors = vErrors === null ?
|
|
5149
|
+
if (!validate65(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
|
|
5150
|
+
vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
|
|
4306
5151
|
errors = vErrors.length;
|
|
4307
5152
|
}
|
|
4308
5153
|
}
|
|
@@ -4315,7 +5160,173 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4315
5160
|
}
|
|
4316
5161
|
errors++;
|
|
4317
5162
|
}
|
|
4318
|
-
|
|
5163
|
+
validate56.errors = vErrors;
|
|
5164
|
+
return errors === 0;
|
|
5165
|
+
}
|
|
5166
|
+
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
5167
|
+
let vErrors = null;
|
|
5168
|
+
let errors = 0;
|
|
5169
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5170
|
+
if (data.id === void 0) {
|
|
5171
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
5172
|
+
if (vErrors === null) {
|
|
5173
|
+
vErrors = [err0];
|
|
5174
|
+
} else {
|
|
5175
|
+
vErrors.push(err0);
|
|
5176
|
+
}
|
|
5177
|
+
errors++;
|
|
5178
|
+
}
|
|
5179
|
+
for (const key0 in data) {
|
|
5180
|
+
if (!(key0 === "id" || key0 === "color" || key0 === "label")) {
|
|
5181
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
5182
|
+
if (vErrors === null) {
|
|
5183
|
+
vErrors = [err1];
|
|
5184
|
+
} else {
|
|
5185
|
+
vErrors.push(err1);
|
|
5186
|
+
}
|
|
5187
|
+
errors++;
|
|
5188
|
+
}
|
|
5189
|
+
}
|
|
5190
|
+
if (data.id !== void 0) {
|
|
5191
|
+
let data0 = data.id;
|
|
5192
|
+
if (typeof data0 === "string") {
|
|
5193
|
+
if (!pattern0.test(data0)) {
|
|
5194
|
+
const err2 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
5195
|
+
if (vErrors === null) {
|
|
5196
|
+
vErrors = [err2];
|
|
5197
|
+
} else {
|
|
5198
|
+
vErrors.push(err2);
|
|
5199
|
+
}
|
|
5200
|
+
errors++;
|
|
5201
|
+
}
|
|
5202
|
+
} else {
|
|
5203
|
+
const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5204
|
+
if (vErrors === null) {
|
|
5205
|
+
vErrors = [err3];
|
|
5206
|
+
} else {
|
|
5207
|
+
vErrors.push(err3);
|
|
5208
|
+
}
|
|
5209
|
+
errors++;
|
|
5210
|
+
}
|
|
5211
|
+
}
|
|
5212
|
+
if (data.color !== void 0) {
|
|
5213
|
+
let data1 = data.color;
|
|
5214
|
+
if (!(data1 === "blue" || data1 === "amber" || data1 === "green" || data1 === "violet" || data1 === "rose" || data1 === "slate" || data1 === "coin")) {
|
|
5215
|
+
const err4 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
5216
|
+
if (vErrors === null) {
|
|
5217
|
+
vErrors = [err4];
|
|
5218
|
+
} else {
|
|
5219
|
+
vErrors.push(err4);
|
|
5220
|
+
}
|
|
5221
|
+
errors++;
|
|
5222
|
+
}
|
|
5223
|
+
}
|
|
5224
|
+
if (data.label !== void 0) {
|
|
5225
|
+
let data2 = data.label;
|
|
5226
|
+
if (typeof data2 === "string") {
|
|
5227
|
+
if (func3(data2) > 4) {
|
|
5228
|
+
const err5 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/maxLength", keyword: "maxLength", params: { limit: 4 }, message: "must NOT have more than 4 characters" };
|
|
5229
|
+
if (vErrors === null) {
|
|
5230
|
+
vErrors = [err5];
|
|
5231
|
+
} else {
|
|
5232
|
+
vErrors.push(err5);
|
|
5233
|
+
}
|
|
5234
|
+
errors++;
|
|
5235
|
+
}
|
|
5236
|
+
if (func3(data2) < 1) {
|
|
5237
|
+
const err6 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
5238
|
+
if (vErrors === null) {
|
|
5239
|
+
vErrors = [err6];
|
|
5240
|
+
} else {
|
|
5241
|
+
vErrors.push(err6);
|
|
5242
|
+
}
|
|
5243
|
+
errors++;
|
|
5244
|
+
}
|
|
5245
|
+
} else {
|
|
5246
|
+
const err7 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5247
|
+
if (vErrors === null) {
|
|
5248
|
+
vErrors = [err7];
|
|
5249
|
+
} else {
|
|
5250
|
+
vErrors.push(err7);
|
|
5251
|
+
}
|
|
5252
|
+
errors++;
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
} else {
|
|
5256
|
+
const err8 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5257
|
+
if (vErrors === null) {
|
|
5258
|
+
vErrors = [err8];
|
|
5259
|
+
} else {
|
|
5260
|
+
vErrors.push(err8);
|
|
5261
|
+
}
|
|
5262
|
+
errors++;
|
|
5263
|
+
}
|
|
5264
|
+
validate69.errors = vErrors;
|
|
5265
|
+
return errors === 0;
|
|
5266
|
+
}
|
|
5267
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
5268
|
+
let vErrors = null;
|
|
5269
|
+
let errors = 0;
|
|
5270
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5271
|
+
if (data.items === void 0) {
|
|
5272
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
|
|
5273
|
+
if (vErrors === null) {
|
|
5274
|
+
vErrors = [err0];
|
|
5275
|
+
} else {
|
|
5276
|
+
vErrors.push(err0);
|
|
5277
|
+
}
|
|
5278
|
+
errors++;
|
|
5279
|
+
}
|
|
5280
|
+
for (const key0 in data) {
|
|
5281
|
+
if (!(key0 === "items")) {
|
|
5282
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
5283
|
+
if (vErrors === null) {
|
|
5284
|
+
vErrors = [err1];
|
|
5285
|
+
} else {
|
|
5286
|
+
vErrors.push(err1);
|
|
5287
|
+
}
|
|
5288
|
+
errors++;
|
|
5289
|
+
}
|
|
5290
|
+
}
|
|
5291
|
+
if (data.items !== void 0) {
|
|
5292
|
+
let data0 = data.items;
|
|
5293
|
+
if (Array.isArray(data0)) {
|
|
5294
|
+
if (data0.length < 1) {
|
|
5295
|
+
const err2 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
5296
|
+
if (vErrors === null) {
|
|
5297
|
+
vErrors = [err2];
|
|
5298
|
+
} else {
|
|
5299
|
+
vErrors.push(err2);
|
|
5300
|
+
}
|
|
5301
|
+
errors++;
|
|
5302
|
+
}
|
|
5303
|
+
const len0 = data0.length;
|
|
5304
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
5305
|
+
if (!validate69(data0[i0], { instancePath: instancePath + "/items/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
5306
|
+
vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
|
|
5307
|
+
errors = vErrors.length;
|
|
5308
|
+
}
|
|
5309
|
+
}
|
|
5310
|
+
} else {
|
|
5311
|
+
const err3 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
5312
|
+
if (vErrors === null) {
|
|
5313
|
+
vErrors = [err3];
|
|
5314
|
+
} else {
|
|
5315
|
+
vErrors.push(err3);
|
|
5316
|
+
}
|
|
5317
|
+
errors++;
|
|
5318
|
+
}
|
|
5319
|
+
}
|
|
5320
|
+
} else {
|
|
5321
|
+
const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5322
|
+
if (vErrors === null) {
|
|
5323
|
+
vErrors = [err4];
|
|
5324
|
+
} else {
|
|
5325
|
+
vErrors.push(err4);
|
|
5326
|
+
}
|
|
5327
|
+
errors++;
|
|
5328
|
+
}
|
|
5329
|
+
validate68.errors = vErrors;
|
|
4319
5330
|
return errors === 0;
|
|
4320
5331
|
}
|
|
4321
5332
|
var func2 = Object.prototype.hasOwnProperty;
|
|
@@ -4423,94 +5434,103 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4423
5434
|
}
|
|
4424
5435
|
errors++;
|
|
4425
5436
|
}
|
|
5437
|
+
if (data.lineup !== void 0) {
|
|
5438
|
+
const err7 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5439
|
+
if (vErrors === null) {
|
|
5440
|
+
vErrors = [err7];
|
|
5441
|
+
} else {
|
|
5442
|
+
vErrors.push(err7);
|
|
5443
|
+
}
|
|
5444
|
+
errors++;
|
|
5445
|
+
}
|
|
4426
5446
|
}
|
|
4427
5447
|
var _valid0 = _errs4 === errors;
|
|
4428
5448
|
valid0 = _valid0;
|
|
4429
5449
|
ifClause0 = "then";
|
|
4430
5450
|
} else {
|
|
4431
|
-
const
|
|
4432
|
-
const
|
|
4433
|
-
let
|
|
4434
|
-
const
|
|
5451
|
+
const _errs20 = errors;
|
|
5452
|
+
const _errs21 = errors;
|
|
5453
|
+
let valid7 = true;
|
|
5454
|
+
const _errs22 = errors;
|
|
4435
5455
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4436
5456
|
if (data.kind === void 0 && ("kind")) {
|
|
4437
|
-
const
|
|
5457
|
+
const err8 = {};
|
|
4438
5458
|
if (vErrors === null) {
|
|
4439
|
-
vErrors = [
|
|
5459
|
+
vErrors = [err8];
|
|
4440
5460
|
} else {
|
|
4441
|
-
vErrors.push(
|
|
5461
|
+
vErrors.push(err8);
|
|
4442
5462
|
}
|
|
4443
5463
|
errors++;
|
|
4444
5464
|
} else {
|
|
4445
5465
|
if (data.kind !== void 0) {
|
|
4446
5466
|
if ("state" !== data.kind) {
|
|
4447
|
-
const
|
|
5467
|
+
const err9 = {};
|
|
4448
5468
|
if (vErrors === null) {
|
|
4449
|
-
vErrors = [
|
|
5469
|
+
vErrors = [err9];
|
|
4450
5470
|
} else {
|
|
4451
|
-
vErrors.push(
|
|
5471
|
+
vErrors.push(err9);
|
|
4452
5472
|
}
|
|
4453
5473
|
errors++;
|
|
4454
5474
|
}
|
|
4455
5475
|
}
|
|
4456
5476
|
}
|
|
4457
5477
|
}
|
|
4458
|
-
var _valid1 =
|
|
4459
|
-
errors =
|
|
5478
|
+
var _valid1 = _errs22 === errors;
|
|
5479
|
+
errors = _errs21;
|
|
4460
5480
|
if (vErrors !== null) {
|
|
4461
|
-
if (
|
|
4462
|
-
vErrors.length =
|
|
5481
|
+
if (_errs21) {
|
|
5482
|
+
vErrors.length = _errs21;
|
|
4463
5483
|
} else {
|
|
4464
5484
|
vErrors = null;
|
|
4465
5485
|
}
|
|
4466
5486
|
}
|
|
4467
5487
|
let ifClause1;
|
|
4468
5488
|
if (_valid1) {
|
|
4469
|
-
const
|
|
5489
|
+
const _errs24 = errors;
|
|
4470
5490
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4471
5491
|
if (data.boxes !== void 0) {
|
|
4472
|
-
let
|
|
4473
|
-
if (Array.isArray(
|
|
4474
|
-
if (
|
|
4475
|
-
const
|
|
5492
|
+
let data9 = data.boxes;
|
|
5493
|
+
if (Array.isArray(data9)) {
|
|
5494
|
+
if (data9.length < 1) {
|
|
5495
|
+
const err10 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
4476
5496
|
if (vErrors === null) {
|
|
4477
|
-
vErrors = [
|
|
5497
|
+
vErrors = [err10];
|
|
4478
5498
|
} else {
|
|
4479
|
-
vErrors.push(
|
|
5499
|
+
vErrors.push(err10);
|
|
4480
5500
|
}
|
|
4481
5501
|
errors++;
|
|
4482
5502
|
}
|
|
4483
|
-
const len0 =
|
|
5503
|
+
const len0 = data9.length;
|
|
4484
5504
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
4485
|
-
let
|
|
4486
|
-
if (
|
|
4487
|
-
if (
|
|
4488
|
-
let
|
|
4489
|
-
const
|
|
4490
|
-
const
|
|
4491
|
-
if (!(
|
|
4492
|
-
const
|
|
5505
|
+
let data10 = data9[i0];
|
|
5506
|
+
if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
|
|
5507
|
+
if (data10.id !== void 0) {
|
|
5508
|
+
let data11 = data10.id;
|
|
5509
|
+
const _errs28 = errors;
|
|
5510
|
+
const _errs29 = errors;
|
|
5511
|
+
if (!(data11 === "start" || data11 === "finish")) {
|
|
5512
|
+
const err11 = {};
|
|
4493
5513
|
if (vErrors === null) {
|
|
4494
|
-
vErrors = [
|
|
5514
|
+
vErrors = [err11];
|
|
4495
5515
|
} else {
|
|
4496
|
-
vErrors.push(
|
|
5516
|
+
vErrors.push(err11);
|
|
4497
5517
|
}
|
|
4498
5518
|
errors++;
|
|
4499
5519
|
}
|
|
4500
|
-
var
|
|
4501
|
-
if (
|
|
4502
|
-
const
|
|
5520
|
+
var valid13 = _errs29 === errors;
|
|
5521
|
+
if (valid13) {
|
|
5522
|
+
const err12 = { instancePath: instancePath + "/boxes/" + i0 + "/id", schemaPath: "#/else/then/properties/boxes/items/properties/id/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4503
5523
|
if (vErrors === null) {
|
|
4504
|
-
vErrors = [
|
|
5524
|
+
vErrors = [err12];
|
|
4505
5525
|
} else {
|
|
4506
|
-
vErrors.push(
|
|
5526
|
+
vErrors.push(err12);
|
|
4507
5527
|
}
|
|
4508
5528
|
errors++;
|
|
4509
5529
|
} else {
|
|
4510
|
-
errors =
|
|
5530
|
+
errors = _errs28;
|
|
4511
5531
|
if (vErrors !== null) {
|
|
4512
|
-
if (
|
|
4513
|
-
vErrors.length =
|
|
5532
|
+
if (_errs28) {
|
|
5533
|
+
vErrors.length = _errs28;
|
|
4514
5534
|
} else {
|
|
4515
5535
|
vErrors = null;
|
|
4516
5536
|
}
|
|
@@ -4534,74 +5554,83 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4534
5554
|
}
|
|
4535
5555
|
}
|
|
4536
5556
|
if (data.git !== void 0) {
|
|
4537
|
-
const
|
|
5557
|
+
const err13 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4538
5558
|
if (vErrors === null) {
|
|
4539
|
-
vErrors = [
|
|
5559
|
+
vErrors = [err13];
|
|
4540
5560
|
} else {
|
|
4541
|
-
vErrors.push(
|
|
5561
|
+
vErrors.push(err13);
|
|
4542
5562
|
}
|
|
4543
5563
|
errors++;
|
|
4544
5564
|
}
|
|
4545
5565
|
if (data.time !== void 0) {
|
|
4546
|
-
const
|
|
5566
|
+
const err14 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4547
5567
|
if (vErrors === null) {
|
|
4548
|
-
vErrors = [
|
|
5568
|
+
vErrors = [err14];
|
|
4549
5569
|
} else {
|
|
4550
|
-
vErrors.push(
|
|
5570
|
+
vErrors.push(err14);
|
|
5571
|
+
}
|
|
5572
|
+
errors++;
|
|
5573
|
+
}
|
|
5574
|
+
if (data.lineup !== void 0) {
|
|
5575
|
+
const err15 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5576
|
+
if (vErrors === null) {
|
|
5577
|
+
vErrors = [err15];
|
|
5578
|
+
} else {
|
|
5579
|
+
vErrors.push(err15);
|
|
4551
5580
|
}
|
|
4552
5581
|
errors++;
|
|
4553
5582
|
}
|
|
4554
5583
|
}
|
|
4555
|
-
var _valid1 =
|
|
4556
|
-
|
|
5584
|
+
var _valid1 = _errs24 === errors;
|
|
5585
|
+
valid7 = _valid1;
|
|
4557
5586
|
ifClause1 = "then";
|
|
4558
5587
|
} else {
|
|
4559
|
-
const
|
|
4560
|
-
const
|
|
4561
|
-
let
|
|
4562
|
-
const
|
|
5588
|
+
const _errs41 = errors;
|
|
5589
|
+
const _errs42 = errors;
|
|
5590
|
+
let valid17 = true;
|
|
5591
|
+
const _errs43 = errors;
|
|
4563
5592
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4564
5593
|
if (data.kind === void 0 && ("kind")) {
|
|
4565
|
-
const
|
|
5594
|
+
const err16 = {};
|
|
4566
5595
|
if (vErrors === null) {
|
|
4567
|
-
vErrors = [
|
|
5596
|
+
vErrors = [err16];
|
|
4568
5597
|
} else {
|
|
4569
|
-
vErrors.push(
|
|
5598
|
+
vErrors.push(err16);
|
|
4570
5599
|
}
|
|
4571
5600
|
errors++;
|
|
4572
5601
|
} else {
|
|
4573
5602
|
if (data.kind !== void 0) {
|
|
4574
5603
|
if ("git" !== data.kind) {
|
|
4575
|
-
const
|
|
5604
|
+
const err17 = {};
|
|
4576
5605
|
if (vErrors === null) {
|
|
4577
|
-
vErrors = [
|
|
5606
|
+
vErrors = [err17];
|
|
4578
5607
|
} else {
|
|
4579
|
-
vErrors.push(
|
|
5608
|
+
vErrors.push(err17);
|
|
4580
5609
|
}
|
|
4581
5610
|
errors++;
|
|
4582
5611
|
}
|
|
4583
5612
|
}
|
|
4584
5613
|
}
|
|
4585
5614
|
}
|
|
4586
|
-
var _valid2 =
|
|
4587
|
-
errors =
|
|
5615
|
+
var _valid2 = _errs43 === errors;
|
|
5616
|
+
errors = _errs42;
|
|
4588
5617
|
if (vErrors !== null) {
|
|
4589
|
-
if (
|
|
4590
|
-
vErrors.length =
|
|
5618
|
+
if (_errs42) {
|
|
5619
|
+
vErrors.length = _errs42;
|
|
4591
5620
|
} else {
|
|
4592
5621
|
vErrors = null;
|
|
4593
5622
|
}
|
|
4594
5623
|
}
|
|
4595
5624
|
let ifClause2;
|
|
4596
5625
|
if (_valid2) {
|
|
4597
|
-
const
|
|
5626
|
+
const _errs45 = errors;
|
|
4598
5627
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4599
5628
|
if (data.git === void 0) {
|
|
4600
|
-
const
|
|
5629
|
+
const err18 = { instancePath, schemaPath: "#/else/else/then/required", keyword: "required", params: { missingProperty: "git" }, message: "must have required property 'git'" };
|
|
4601
5630
|
if (vErrors === null) {
|
|
4602
|
-
vErrors = [
|
|
5631
|
+
vErrors = [err18];
|
|
4603
5632
|
} else {
|
|
4604
|
-
vErrors.push(
|
|
5633
|
+
vErrors.push(err18);
|
|
4605
5634
|
}
|
|
4606
5635
|
errors++;
|
|
4607
5636
|
}
|
|
@@ -4618,83 +5647,92 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4618
5647
|
}
|
|
4619
5648
|
}
|
|
4620
5649
|
if (data.state !== void 0) {
|
|
4621
|
-
const
|
|
5650
|
+
const err19 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4622
5651
|
if (vErrors === null) {
|
|
4623
|
-
vErrors = [
|
|
5652
|
+
vErrors = [err19];
|
|
4624
5653
|
} else {
|
|
4625
|
-
vErrors.push(
|
|
5654
|
+
vErrors.push(err19);
|
|
4626
5655
|
}
|
|
4627
5656
|
errors++;
|
|
4628
5657
|
}
|
|
4629
5658
|
if (data.regions !== void 0) {
|
|
4630
|
-
const
|
|
5659
|
+
const err20 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4631
5660
|
if (vErrors === null) {
|
|
4632
|
-
vErrors = [
|
|
5661
|
+
vErrors = [err20];
|
|
4633
5662
|
} else {
|
|
4634
|
-
vErrors.push(
|
|
5663
|
+
vErrors.push(err20);
|
|
4635
5664
|
}
|
|
4636
5665
|
errors++;
|
|
4637
5666
|
}
|
|
4638
5667
|
if (data.time !== void 0) {
|
|
4639
|
-
const
|
|
5668
|
+
const err21 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4640
5669
|
if (vErrors === null) {
|
|
4641
|
-
vErrors = [
|
|
5670
|
+
vErrors = [err21];
|
|
4642
5671
|
} else {
|
|
4643
|
-
vErrors.push(
|
|
5672
|
+
vErrors.push(err21);
|
|
5673
|
+
}
|
|
5674
|
+
errors++;
|
|
5675
|
+
}
|
|
5676
|
+
if (data.lineup !== void 0) {
|
|
5677
|
+
const err22 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5678
|
+
if (vErrors === null) {
|
|
5679
|
+
vErrors = [err22];
|
|
5680
|
+
} else {
|
|
5681
|
+
vErrors.push(err22);
|
|
4644
5682
|
}
|
|
4645
5683
|
errors++;
|
|
4646
5684
|
}
|
|
4647
5685
|
}
|
|
4648
|
-
var _valid2 =
|
|
4649
|
-
|
|
5686
|
+
var _valid2 = _errs45 === errors;
|
|
5687
|
+
valid17 = _valid2;
|
|
4650
5688
|
ifClause2 = "then";
|
|
4651
5689
|
} else {
|
|
4652
|
-
const
|
|
4653
|
-
const
|
|
4654
|
-
let
|
|
4655
|
-
const
|
|
5690
|
+
const _errs60 = errors;
|
|
5691
|
+
const _errs61 = errors;
|
|
5692
|
+
let valid24 = true;
|
|
5693
|
+
const _errs62 = errors;
|
|
4656
5694
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4657
5695
|
if (data.kind === void 0 && ("kind")) {
|
|
4658
|
-
const
|
|
5696
|
+
const err23 = {};
|
|
4659
5697
|
if (vErrors === null) {
|
|
4660
|
-
vErrors = [
|
|
5698
|
+
vErrors = [err23];
|
|
4661
5699
|
} else {
|
|
4662
|
-
vErrors.push(
|
|
5700
|
+
vErrors.push(err23);
|
|
4663
5701
|
}
|
|
4664
5702
|
errors++;
|
|
4665
5703
|
} else {
|
|
4666
5704
|
if (data.kind !== void 0) {
|
|
4667
5705
|
if ("time" !== data.kind) {
|
|
4668
|
-
const
|
|
5706
|
+
const err24 = {};
|
|
4669
5707
|
if (vErrors === null) {
|
|
4670
|
-
vErrors = [
|
|
5708
|
+
vErrors = [err24];
|
|
4671
5709
|
} else {
|
|
4672
|
-
vErrors.push(
|
|
5710
|
+
vErrors.push(err24);
|
|
4673
5711
|
}
|
|
4674
5712
|
errors++;
|
|
4675
5713
|
}
|
|
4676
5714
|
}
|
|
4677
5715
|
}
|
|
4678
5716
|
}
|
|
4679
|
-
var _valid3 =
|
|
4680
|
-
errors =
|
|
5717
|
+
var _valid3 = _errs62 === errors;
|
|
5718
|
+
errors = _errs61;
|
|
4681
5719
|
if (vErrors !== null) {
|
|
4682
|
-
if (
|
|
4683
|
-
vErrors.length =
|
|
5720
|
+
if (_errs61) {
|
|
5721
|
+
vErrors.length = _errs61;
|
|
4684
5722
|
} else {
|
|
4685
5723
|
vErrors = null;
|
|
4686
5724
|
}
|
|
4687
5725
|
}
|
|
4688
5726
|
let ifClause3;
|
|
4689
5727
|
if (_valid3) {
|
|
4690
|
-
const
|
|
5728
|
+
const _errs64 = errors;
|
|
4691
5729
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4692
5730
|
if (data.time === void 0) {
|
|
4693
|
-
const
|
|
5731
|
+
const err25 = { instancePath, schemaPath: "#/else/else/else/then/required", keyword: "required", params: { missingProperty: "time" }, message: "must have required property 'time'" };
|
|
4694
5732
|
if (vErrors === null) {
|
|
4695
|
-
vErrors = [
|
|
5733
|
+
vErrors = [err25];
|
|
4696
5734
|
} else {
|
|
4697
|
-
vErrors.push(
|
|
5735
|
+
vErrors.push(err25);
|
|
4698
5736
|
}
|
|
4699
5737
|
errors++;
|
|
4700
5738
|
}
|
|
@@ -4705,76 +5743,85 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4705
5743
|
}
|
|
4706
5744
|
}
|
|
4707
5745
|
if (data.state !== void 0) {
|
|
4708
|
-
const
|
|
5746
|
+
const err26 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4709
5747
|
if (vErrors === null) {
|
|
4710
|
-
vErrors = [
|
|
5748
|
+
vErrors = [err26];
|
|
4711
5749
|
} else {
|
|
4712
|
-
vErrors.push(
|
|
5750
|
+
vErrors.push(err26);
|
|
4713
5751
|
}
|
|
4714
5752
|
errors++;
|
|
4715
5753
|
}
|
|
4716
5754
|
if (data.git !== void 0) {
|
|
4717
|
-
const
|
|
5755
|
+
const err27 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4718
5756
|
if (vErrors === null) {
|
|
4719
|
-
vErrors = [
|
|
5757
|
+
vErrors = [err27];
|
|
4720
5758
|
} else {
|
|
4721
|
-
vErrors.push(
|
|
5759
|
+
vErrors.push(err27);
|
|
4722
5760
|
}
|
|
4723
5761
|
errors++;
|
|
4724
5762
|
}
|
|
4725
5763
|
if (data.regions !== void 0) {
|
|
4726
|
-
const
|
|
5764
|
+
const err28 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4727
5765
|
if (vErrors === null) {
|
|
4728
|
-
vErrors = [
|
|
5766
|
+
vErrors = [err28];
|
|
4729
5767
|
} else {
|
|
4730
|
-
vErrors.push(
|
|
5768
|
+
vErrors.push(err28);
|
|
5769
|
+
}
|
|
5770
|
+
errors++;
|
|
5771
|
+
}
|
|
5772
|
+
if (data.lineup !== void 0) {
|
|
5773
|
+
const err29 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5774
|
+
if (vErrors === null) {
|
|
5775
|
+
vErrors = [err29];
|
|
5776
|
+
} else {
|
|
5777
|
+
vErrors.push(err29);
|
|
4731
5778
|
}
|
|
4732
5779
|
errors++;
|
|
4733
5780
|
}
|
|
4734
5781
|
}
|
|
4735
|
-
var _valid3 =
|
|
4736
|
-
|
|
5782
|
+
var _valid3 = _errs64 === errors;
|
|
5783
|
+
valid24 = _valid3;
|
|
4737
5784
|
ifClause3 = "then";
|
|
4738
5785
|
} else {
|
|
4739
|
-
const
|
|
4740
|
-
const
|
|
4741
|
-
let
|
|
4742
|
-
const
|
|
5786
|
+
const _errs78 = errors;
|
|
5787
|
+
const _errs79 = errors;
|
|
5788
|
+
let valid31 = true;
|
|
5789
|
+
const _errs80 = errors;
|
|
4743
5790
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4744
5791
|
if (data.kind === void 0 && ("kind")) {
|
|
4745
|
-
const
|
|
5792
|
+
const err30 = {};
|
|
4746
5793
|
if (vErrors === null) {
|
|
4747
|
-
vErrors = [
|
|
5794
|
+
vErrors = [err30];
|
|
4748
5795
|
} else {
|
|
4749
|
-
vErrors.push(
|
|
5796
|
+
vErrors.push(err30);
|
|
4750
5797
|
}
|
|
4751
5798
|
errors++;
|
|
4752
5799
|
} else {
|
|
4753
5800
|
if (data.kind !== void 0) {
|
|
4754
5801
|
if ("tree" !== data.kind) {
|
|
4755
|
-
const
|
|
5802
|
+
const err31 = {};
|
|
4756
5803
|
if (vErrors === null) {
|
|
4757
|
-
vErrors = [
|
|
5804
|
+
vErrors = [err31];
|
|
4758
5805
|
} else {
|
|
4759
|
-
vErrors.push(
|
|
5806
|
+
vErrors.push(err31);
|
|
4760
5807
|
}
|
|
4761
5808
|
errors++;
|
|
4762
5809
|
}
|
|
4763
5810
|
}
|
|
4764
5811
|
}
|
|
4765
5812
|
}
|
|
4766
|
-
var _valid4 =
|
|
4767
|
-
errors =
|
|
5813
|
+
var _valid4 = _errs80 === errors;
|
|
5814
|
+
errors = _errs79;
|
|
4768
5815
|
if (vErrors !== null) {
|
|
4769
|
-
if (
|
|
4770
|
-
vErrors.length =
|
|
5816
|
+
if (_errs79) {
|
|
5817
|
+
vErrors.length = _errs79;
|
|
4771
5818
|
} else {
|
|
4772
5819
|
vErrors = null;
|
|
4773
5820
|
}
|
|
4774
5821
|
}
|
|
4775
5822
|
let ifClause4;
|
|
4776
5823
|
if (_valid4) {
|
|
4777
|
-
const
|
|
5824
|
+
const _errs82 = errors;
|
|
4778
5825
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4779
5826
|
if (data.steps !== void 0) {
|
|
4780
5827
|
if (!validate22(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
@@ -4789,409 +5836,595 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4789
5836
|
}
|
|
4790
5837
|
}
|
|
4791
5838
|
if (data.state !== void 0) {
|
|
4792
|
-
const
|
|
5839
|
+
const err32 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4793
5840
|
if (vErrors === null) {
|
|
4794
|
-
vErrors = [
|
|
5841
|
+
vErrors = [err32];
|
|
4795
5842
|
} else {
|
|
4796
|
-
vErrors.push(
|
|
5843
|
+
vErrors.push(err32);
|
|
4797
5844
|
}
|
|
4798
5845
|
errors++;
|
|
4799
5846
|
}
|
|
4800
5847
|
if (data.git !== void 0) {
|
|
4801
|
-
const
|
|
5848
|
+
const err33 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5849
|
+
if (vErrors === null) {
|
|
5850
|
+
vErrors = [err33];
|
|
5851
|
+
} else {
|
|
5852
|
+
vErrors.push(err33);
|
|
5853
|
+
}
|
|
5854
|
+
errors++;
|
|
5855
|
+
}
|
|
5856
|
+
if (data.time !== void 0) {
|
|
5857
|
+
const err34 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4802
5858
|
if (vErrors === null) {
|
|
4803
|
-
vErrors = [
|
|
5859
|
+
vErrors = [err34];
|
|
4804
5860
|
} else {
|
|
4805
|
-
vErrors.push(
|
|
5861
|
+
vErrors.push(err34);
|
|
4806
5862
|
}
|
|
4807
5863
|
errors++;
|
|
4808
5864
|
}
|
|
4809
|
-
if (data.
|
|
4810
|
-
const
|
|
5865
|
+
if (data.regions !== void 0) {
|
|
5866
|
+
const err35 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4811
5867
|
if (vErrors === null) {
|
|
4812
|
-
vErrors = [
|
|
5868
|
+
vErrors = [err35];
|
|
4813
5869
|
} else {
|
|
4814
|
-
vErrors.push(
|
|
5870
|
+
vErrors.push(err35);
|
|
4815
5871
|
}
|
|
4816
5872
|
errors++;
|
|
4817
5873
|
}
|
|
4818
|
-
if (data.
|
|
4819
|
-
const
|
|
5874
|
+
if (data.lineup !== void 0) {
|
|
5875
|
+
const err36 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4820
5876
|
if (vErrors === null) {
|
|
4821
|
-
vErrors = [
|
|
5877
|
+
vErrors = [err36];
|
|
4822
5878
|
} else {
|
|
4823
|
-
vErrors.push(
|
|
5879
|
+
vErrors.push(err36);
|
|
4824
5880
|
}
|
|
4825
5881
|
errors++;
|
|
4826
5882
|
}
|
|
4827
5883
|
}
|
|
4828
|
-
var _valid4 =
|
|
4829
|
-
|
|
5884
|
+
var _valid4 = _errs82 === errors;
|
|
5885
|
+
valid31 = _valid4;
|
|
4830
5886
|
ifClause4 = "then";
|
|
4831
5887
|
} else {
|
|
4832
|
-
const
|
|
5888
|
+
const _errs100 = errors;
|
|
5889
|
+
const _errs101 = errors;
|
|
5890
|
+
let valid39 = true;
|
|
5891
|
+
const _errs102 = errors;
|
|
4833
5892
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4834
|
-
if (data.
|
|
4835
|
-
|
|
4836
|
-
if (
|
|
4837
|
-
|
|
4838
|
-
|
|
5893
|
+
if (data.kind === void 0 && ("kind")) {
|
|
5894
|
+
const err37 = {};
|
|
5895
|
+
if (vErrors === null) {
|
|
5896
|
+
vErrors = [err37];
|
|
5897
|
+
} else {
|
|
5898
|
+
vErrors.push(err37);
|
|
5899
|
+
}
|
|
5900
|
+
errors++;
|
|
5901
|
+
} else {
|
|
5902
|
+
if (data.kind !== void 0) {
|
|
5903
|
+
if ("lineup" !== data.kind) {
|
|
5904
|
+
const err38 = {};
|
|
4839
5905
|
if (vErrors === null) {
|
|
4840
|
-
vErrors = [
|
|
5906
|
+
vErrors = [err38];
|
|
4841
5907
|
} else {
|
|
4842
|
-
vErrors.push(
|
|
5908
|
+
vErrors.push(err38);
|
|
4843
5909
|
}
|
|
4844
5910
|
errors++;
|
|
4845
5911
|
}
|
|
4846
5912
|
}
|
|
4847
5913
|
}
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
5914
|
+
}
|
|
5915
|
+
var _valid5 = _errs102 === errors;
|
|
5916
|
+
errors = _errs101;
|
|
5917
|
+
if (vErrors !== null) {
|
|
5918
|
+
if (_errs101) {
|
|
5919
|
+
vErrors.length = _errs101;
|
|
5920
|
+
} else {
|
|
5921
|
+
vErrors = null;
|
|
4853
5922
|
}
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
5923
|
+
}
|
|
5924
|
+
let ifClause5;
|
|
5925
|
+
if (_valid5) {
|
|
5926
|
+
const _errs104 = errors;
|
|
5927
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5928
|
+
if (data.lineup === void 0) {
|
|
5929
|
+
const err39 = { instancePath, schemaPath: "#/else/else/else/else/else/then/required", keyword: "required", params: { missingProperty: "lineup" }, message: "must have required property 'lineup'" };
|
|
5930
|
+
if (vErrors === null) {
|
|
5931
|
+
vErrors = [err39];
|
|
5932
|
+
} else {
|
|
5933
|
+
vErrors.push(err39);
|
|
5934
|
+
}
|
|
5935
|
+
errors++;
|
|
4858
5936
|
}
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
5937
|
+
if (data.boxes !== void 0) {
|
|
5938
|
+
let data39 = data.boxes;
|
|
5939
|
+
if (Array.isArray(data39)) {
|
|
5940
|
+
if (data39.length < 1) {
|
|
5941
|
+
const err40 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
5942
|
+
if (vErrors === null) {
|
|
5943
|
+
vErrors = [err40];
|
|
5944
|
+
} else {
|
|
5945
|
+
vErrors.push(err40);
|
|
5946
|
+
}
|
|
5947
|
+
errors++;
|
|
5948
|
+
}
|
|
5949
|
+
const len1 = data39.length;
|
|
5950
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
5951
|
+
let data40 = data39[i1];
|
|
5952
|
+
if (data40 && typeof data40 == "object" && !Array.isArray(data40)) {
|
|
5953
|
+
if (data40.icon !== void 0) {
|
|
5954
|
+
const err41 = { instancePath: instancePath + "/boxes/" + i1 + "/icon", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5955
|
+
if (vErrors === null) {
|
|
5956
|
+
vErrors = [err41];
|
|
5957
|
+
} else {
|
|
5958
|
+
vErrors.push(err41);
|
|
5959
|
+
}
|
|
5960
|
+
errors++;
|
|
5961
|
+
}
|
|
5962
|
+
if (data40.link !== void 0) {
|
|
5963
|
+
const err42 = { instancePath: instancePath + "/boxes/" + i1 + "/link", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5964
|
+
if (vErrors === null) {
|
|
5965
|
+
vErrors = [err42];
|
|
5966
|
+
} else {
|
|
5967
|
+
vErrors.push(err42);
|
|
5968
|
+
}
|
|
5969
|
+
errors++;
|
|
5970
|
+
}
|
|
5971
|
+
if (data40.region !== void 0) {
|
|
5972
|
+
const err43 = { instancePath: instancePath + "/boxes/" + i1 + "/region", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5973
|
+
if (vErrors === null) {
|
|
5974
|
+
vErrors = [err43];
|
|
5975
|
+
} else {
|
|
5976
|
+
vErrors.push(err43);
|
|
5977
|
+
}
|
|
5978
|
+
errors++;
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
5981
|
+
}
|
|
5982
|
+
}
|
|
4866
5983
|
}
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
5984
|
+
if (data.steps !== void 0) {
|
|
5985
|
+
if (!validate25(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
5986
|
+
vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
|
|
5987
|
+
errors = vErrors.length;
|
|
5988
|
+
}
|
|
5989
|
+
}
|
|
5990
|
+
if (data.strip !== void 0) {
|
|
5991
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
5992
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
5993
|
+
errors = vErrors.length;
|
|
5994
|
+
}
|
|
5995
|
+
}
|
|
5996
|
+
if (data.state !== void 0) {
|
|
5997
|
+
const err44 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5998
|
+
if (vErrors === null) {
|
|
5999
|
+
vErrors = [err44];
|
|
6000
|
+
} else {
|
|
6001
|
+
vErrors.push(err44);
|
|
6002
|
+
}
|
|
6003
|
+
errors++;
|
|
6004
|
+
}
|
|
6005
|
+
if (data.git !== void 0) {
|
|
6006
|
+
const err45 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6007
|
+
if (vErrors === null) {
|
|
6008
|
+
vErrors = [err45];
|
|
6009
|
+
} else {
|
|
6010
|
+
vErrors.push(err45);
|
|
6011
|
+
}
|
|
6012
|
+
errors++;
|
|
6013
|
+
}
|
|
6014
|
+
if (data.time !== void 0) {
|
|
6015
|
+
const err46 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6016
|
+
if (vErrors === null) {
|
|
6017
|
+
vErrors = [err46];
|
|
6018
|
+
} else {
|
|
6019
|
+
vErrors.push(err46);
|
|
6020
|
+
}
|
|
6021
|
+
errors++;
|
|
6022
|
+
}
|
|
6023
|
+
if (data.regions !== void 0) {
|
|
6024
|
+
const err47 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6025
|
+
if (vErrors === null) {
|
|
6026
|
+
vErrors = [err47];
|
|
6027
|
+
} else {
|
|
6028
|
+
vErrors.push(err47);
|
|
6029
|
+
}
|
|
6030
|
+
errors++;
|
|
4875
6031
|
}
|
|
4876
|
-
errors++;
|
|
4877
6032
|
}
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
6033
|
+
var _valid5 = _errs104 === errors;
|
|
6034
|
+
valid39 = _valid5;
|
|
6035
|
+
ifClause5 = "then";
|
|
6036
|
+
} else {
|
|
6037
|
+
const _errs130 = errors;
|
|
6038
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6039
|
+
if (data.boxes !== void 0) {
|
|
6040
|
+
let data50 = data.boxes;
|
|
6041
|
+
if (Array.isArray(data50)) {
|
|
6042
|
+
if (data50.length < 1) {
|
|
6043
|
+
const err48 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/else/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
6044
|
+
if (vErrors === null) {
|
|
6045
|
+
vErrors = [err48];
|
|
6046
|
+
} else {
|
|
6047
|
+
vErrors.push(err48);
|
|
6048
|
+
}
|
|
6049
|
+
errors++;
|
|
6050
|
+
}
|
|
6051
|
+
}
|
|
4884
6052
|
}
|
|
4885
|
-
|
|
6053
|
+
if (data.steps !== void 0) {
|
|
6054
|
+
if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
6055
|
+
vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
|
|
6056
|
+
errors = vErrors.length;
|
|
6057
|
+
}
|
|
6058
|
+
}
|
|
6059
|
+
if (data.strip !== void 0) {
|
|
6060
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
6061
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
6062
|
+
errors = vErrors.length;
|
|
6063
|
+
}
|
|
6064
|
+
}
|
|
6065
|
+
if (data.state !== void 0) {
|
|
6066
|
+
const err49 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6067
|
+
if (vErrors === null) {
|
|
6068
|
+
vErrors = [err49];
|
|
6069
|
+
} else {
|
|
6070
|
+
vErrors.push(err49);
|
|
6071
|
+
}
|
|
6072
|
+
errors++;
|
|
6073
|
+
}
|
|
6074
|
+
if (data.git !== void 0) {
|
|
6075
|
+
const err50 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6076
|
+
if (vErrors === null) {
|
|
6077
|
+
vErrors = [err50];
|
|
6078
|
+
} else {
|
|
6079
|
+
vErrors.push(err50);
|
|
6080
|
+
}
|
|
6081
|
+
errors++;
|
|
6082
|
+
}
|
|
6083
|
+
if (data.time !== void 0) {
|
|
6084
|
+
const err51 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6085
|
+
if (vErrors === null) {
|
|
6086
|
+
vErrors = [err51];
|
|
6087
|
+
} else {
|
|
6088
|
+
vErrors.push(err51);
|
|
6089
|
+
}
|
|
6090
|
+
errors++;
|
|
6091
|
+
}
|
|
6092
|
+
if (data.lineup !== void 0) {
|
|
6093
|
+
const err52 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6094
|
+
if (vErrors === null) {
|
|
6095
|
+
vErrors = [err52];
|
|
6096
|
+
} else {
|
|
6097
|
+
vErrors.push(err52);
|
|
6098
|
+
}
|
|
6099
|
+
errors++;
|
|
6100
|
+
}
|
|
6101
|
+
}
|
|
6102
|
+
var _valid5 = _errs130 === errors;
|
|
6103
|
+
valid39 = _valid5;
|
|
6104
|
+
ifClause5 = "else";
|
|
6105
|
+
}
|
|
6106
|
+
if (!valid39) {
|
|
6107
|
+
const err53 = { instancePath, schemaPath: "#/else/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause5 }, message: 'must match "' + ifClause5 + '" schema' };
|
|
6108
|
+
if (vErrors === null) {
|
|
6109
|
+
vErrors = [err53];
|
|
6110
|
+
} else {
|
|
6111
|
+
vErrors.push(err53);
|
|
4886
6112
|
}
|
|
6113
|
+
errors++;
|
|
4887
6114
|
}
|
|
4888
|
-
var _valid4 =
|
|
4889
|
-
|
|
6115
|
+
var _valid4 = _errs100 === errors;
|
|
6116
|
+
valid31 = _valid4;
|
|
4890
6117
|
ifClause4 = "else";
|
|
4891
6118
|
}
|
|
4892
|
-
if (!
|
|
4893
|
-
const
|
|
6119
|
+
if (!valid31) {
|
|
6120
|
+
const err54 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
|
|
4894
6121
|
if (vErrors === null) {
|
|
4895
|
-
vErrors = [
|
|
6122
|
+
vErrors = [err54];
|
|
4896
6123
|
} else {
|
|
4897
|
-
vErrors.push(
|
|
6124
|
+
vErrors.push(err54);
|
|
4898
6125
|
}
|
|
4899
6126
|
errors++;
|
|
4900
6127
|
}
|
|
4901
|
-
var _valid3 =
|
|
4902
|
-
|
|
6128
|
+
var _valid3 = _errs78 === errors;
|
|
6129
|
+
valid24 = _valid3;
|
|
4903
6130
|
ifClause3 = "else";
|
|
4904
6131
|
}
|
|
4905
|
-
if (!
|
|
4906
|
-
const
|
|
6132
|
+
if (!valid24) {
|
|
6133
|
+
const err55 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
|
|
4907
6134
|
if (vErrors === null) {
|
|
4908
|
-
vErrors = [
|
|
6135
|
+
vErrors = [err55];
|
|
4909
6136
|
} else {
|
|
4910
|
-
vErrors.push(
|
|
6137
|
+
vErrors.push(err55);
|
|
4911
6138
|
}
|
|
4912
6139
|
errors++;
|
|
4913
6140
|
}
|
|
4914
|
-
var _valid2 =
|
|
4915
|
-
|
|
6141
|
+
var _valid2 = _errs60 === errors;
|
|
6142
|
+
valid17 = _valid2;
|
|
4916
6143
|
ifClause2 = "else";
|
|
4917
6144
|
}
|
|
4918
|
-
if (!
|
|
4919
|
-
const
|
|
6145
|
+
if (!valid17) {
|
|
6146
|
+
const err56 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
|
|
4920
6147
|
if (vErrors === null) {
|
|
4921
|
-
vErrors = [
|
|
6148
|
+
vErrors = [err56];
|
|
4922
6149
|
} else {
|
|
4923
|
-
vErrors.push(
|
|
6150
|
+
vErrors.push(err56);
|
|
4924
6151
|
}
|
|
4925
6152
|
errors++;
|
|
4926
6153
|
}
|
|
4927
|
-
var _valid1 =
|
|
4928
|
-
|
|
6154
|
+
var _valid1 = _errs41 === errors;
|
|
6155
|
+
valid7 = _valid1;
|
|
4929
6156
|
ifClause1 = "else";
|
|
4930
6157
|
}
|
|
4931
|
-
if (!
|
|
4932
|
-
const
|
|
6158
|
+
if (!valid7) {
|
|
6159
|
+
const err57 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
|
|
4933
6160
|
if (vErrors === null) {
|
|
4934
|
-
vErrors = [
|
|
6161
|
+
vErrors = [err57];
|
|
4935
6162
|
} else {
|
|
4936
|
-
vErrors.push(
|
|
6163
|
+
vErrors.push(err57);
|
|
4937
6164
|
}
|
|
4938
6165
|
errors++;
|
|
4939
6166
|
}
|
|
4940
6167
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4941
6168
|
if (data.sequence !== void 0) {
|
|
4942
|
-
const
|
|
6169
|
+
const err58 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4943
6170
|
if (vErrors === null) {
|
|
4944
|
-
vErrors = [
|
|
6171
|
+
vErrors = [err58];
|
|
4945
6172
|
} else {
|
|
4946
|
-
vErrors.push(
|
|
6173
|
+
vErrors.push(err58);
|
|
4947
6174
|
}
|
|
4948
6175
|
errors++;
|
|
4949
6176
|
}
|
|
4950
6177
|
}
|
|
4951
|
-
var _valid0 =
|
|
6178
|
+
var _valid0 = _errs20 === errors;
|
|
4952
6179
|
valid0 = _valid0;
|
|
4953
6180
|
ifClause0 = "else";
|
|
4954
6181
|
}
|
|
4955
6182
|
if (!valid0) {
|
|
4956
|
-
const
|
|
6183
|
+
const err59 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
|
|
4957
6184
|
if (vErrors === null) {
|
|
4958
|
-
vErrors = [
|
|
6185
|
+
vErrors = [err59];
|
|
4959
6186
|
} else {
|
|
4960
|
-
vErrors.push(
|
|
6187
|
+
vErrors.push(err59);
|
|
4961
6188
|
}
|
|
4962
6189
|
errors++;
|
|
4963
6190
|
}
|
|
4964
6191
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4965
6192
|
if (data.version === void 0) {
|
|
4966
|
-
const
|
|
6193
|
+
const err60 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
|
|
4967
6194
|
if (vErrors === null) {
|
|
4968
|
-
vErrors = [
|
|
6195
|
+
vErrors = [err60];
|
|
4969
6196
|
} else {
|
|
4970
|
-
vErrors.push(
|
|
6197
|
+
vErrors.push(err60);
|
|
4971
6198
|
}
|
|
4972
6199
|
errors++;
|
|
4973
6200
|
}
|
|
4974
6201
|
if (data.kind === void 0) {
|
|
4975
|
-
const
|
|
6202
|
+
const err61 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
|
|
4976
6203
|
if (vErrors === null) {
|
|
4977
|
-
vErrors = [
|
|
6204
|
+
vErrors = [err61];
|
|
4978
6205
|
} else {
|
|
4979
|
-
vErrors.push(
|
|
6206
|
+
vErrors.push(err61);
|
|
4980
6207
|
}
|
|
4981
6208
|
errors++;
|
|
4982
6209
|
}
|
|
4983
6210
|
if (data.title === void 0) {
|
|
4984
|
-
const
|
|
6211
|
+
const err62 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
|
|
4985
6212
|
if (vErrors === null) {
|
|
4986
|
-
vErrors = [
|
|
6213
|
+
vErrors = [err62];
|
|
4987
6214
|
} else {
|
|
4988
|
-
vErrors.push(
|
|
6215
|
+
vErrors.push(err62);
|
|
4989
6216
|
}
|
|
4990
6217
|
errors++;
|
|
4991
6218
|
}
|
|
4992
6219
|
if (data.boxes === void 0) {
|
|
4993
|
-
const
|
|
6220
|
+
const err63 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
|
|
4994
6221
|
if (vErrors === null) {
|
|
4995
|
-
vErrors = [
|
|
6222
|
+
vErrors = [err63];
|
|
4996
6223
|
} else {
|
|
4997
|
-
vErrors.push(
|
|
6224
|
+
vErrors.push(err63);
|
|
4998
6225
|
}
|
|
4999
6226
|
errors++;
|
|
5000
6227
|
}
|
|
5001
6228
|
if (data.steps === void 0) {
|
|
5002
|
-
const
|
|
6229
|
+
const err64 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
|
|
5003
6230
|
if (vErrors === null) {
|
|
5004
|
-
vErrors = [
|
|
6231
|
+
vErrors = [err64];
|
|
5005
6232
|
} else {
|
|
5006
|
-
vErrors.push(
|
|
6233
|
+
vErrors.push(err64);
|
|
5007
6234
|
}
|
|
5008
6235
|
errors++;
|
|
5009
6236
|
}
|
|
5010
6237
|
for (const key0 in data) {
|
|
5011
6238
|
if (!func2.call(schema11.properties, key0)) {
|
|
5012
|
-
const
|
|
6239
|
+
const err65 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
5013
6240
|
if (vErrors === null) {
|
|
5014
|
-
vErrors = [
|
|
6241
|
+
vErrors = [err65];
|
|
5015
6242
|
} else {
|
|
5016
|
-
vErrors.push(
|
|
6243
|
+
vErrors.push(err65);
|
|
5017
6244
|
}
|
|
5018
6245
|
errors++;
|
|
5019
6246
|
}
|
|
5020
6247
|
}
|
|
5021
6248
|
if (data.version !== void 0) {
|
|
5022
|
-
let
|
|
5023
|
-
if (!(typeof
|
|
5024
|
-
const
|
|
6249
|
+
let data58 = data.version;
|
|
6250
|
+
if (!(typeof data58 == "number" && (!(data58 % 1) && !isNaN(data58)) && isFinite(data58))) {
|
|
6251
|
+
const err66 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
5025
6252
|
if (vErrors === null) {
|
|
5026
|
-
vErrors = [
|
|
6253
|
+
vErrors = [err66];
|
|
5027
6254
|
} else {
|
|
5028
|
-
vErrors.push(
|
|
6255
|
+
vErrors.push(err66);
|
|
5029
6256
|
}
|
|
5030
6257
|
errors++;
|
|
5031
6258
|
}
|
|
5032
|
-
if (typeof
|
|
5033
|
-
if (
|
|
5034
|
-
const
|
|
6259
|
+
if (typeof data58 == "number" && isFinite(data58)) {
|
|
6260
|
+
if (data58 < 1 || isNaN(data58)) {
|
|
6261
|
+
const err67 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
5035
6262
|
if (vErrors === null) {
|
|
5036
|
-
vErrors = [
|
|
6263
|
+
vErrors = [err67];
|
|
5037
6264
|
} else {
|
|
5038
|
-
vErrors.push(
|
|
6265
|
+
vErrors.push(err67);
|
|
5039
6266
|
}
|
|
5040
6267
|
errors++;
|
|
5041
6268
|
}
|
|
5042
6269
|
}
|
|
5043
6270
|
}
|
|
5044
6271
|
if (data.kind !== void 0) {
|
|
5045
|
-
let
|
|
5046
|
-
if (!(
|
|
5047
|
-
const
|
|
6272
|
+
let data59 = data.kind;
|
|
6273
|
+
if (!(data59 === "sequence" || data59 === "architecture" || data59 === "state" || data59 === "git" || data59 === "time" || data59 === "tree" || data59 === "lineup")) {
|
|
6274
|
+
const err68 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema11.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
5048
6275
|
if (vErrors === null) {
|
|
5049
|
-
vErrors = [
|
|
6276
|
+
vErrors = [err68];
|
|
5050
6277
|
} else {
|
|
5051
|
-
vErrors.push(
|
|
6278
|
+
vErrors.push(err68);
|
|
5052
6279
|
}
|
|
5053
6280
|
errors++;
|
|
5054
6281
|
}
|
|
5055
6282
|
}
|
|
5056
6283
|
if (data.title !== void 0) {
|
|
5057
|
-
let
|
|
5058
|
-
if (typeof
|
|
5059
|
-
if (func3(
|
|
5060
|
-
const
|
|
6284
|
+
let data60 = data.title;
|
|
6285
|
+
if (typeof data60 === "string") {
|
|
6286
|
+
if (func3(data60) < 1) {
|
|
6287
|
+
const err69 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
5061
6288
|
if (vErrors === null) {
|
|
5062
|
-
vErrors = [
|
|
6289
|
+
vErrors = [err69];
|
|
5063
6290
|
} else {
|
|
5064
|
-
vErrors.push(
|
|
6291
|
+
vErrors.push(err69);
|
|
5065
6292
|
}
|
|
5066
6293
|
errors++;
|
|
5067
6294
|
}
|
|
5068
6295
|
} else {
|
|
5069
|
-
const
|
|
6296
|
+
const err70 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5070
6297
|
if (vErrors === null) {
|
|
5071
|
-
vErrors = [
|
|
6298
|
+
vErrors = [err70];
|
|
5072
6299
|
} else {
|
|
5073
|
-
vErrors.push(
|
|
6300
|
+
vErrors.push(err70);
|
|
5074
6301
|
}
|
|
5075
6302
|
errors++;
|
|
5076
6303
|
}
|
|
5077
6304
|
}
|
|
5078
6305
|
if (data.view !== void 0) {
|
|
5079
|
-
let
|
|
5080
|
-
if (!(
|
|
5081
|
-
const
|
|
6306
|
+
let data61 = data.view;
|
|
6307
|
+
if (!(data61 === "fixed" || data61 === "follow")) {
|
|
6308
|
+
const err71 = { instancePath: instancePath + "/view", schemaPath: "#/properties/view/enum", keyword: "enum", params: { allowedValues: schema11.properties.view.enum }, message: "must be equal to one of the allowed values" };
|
|
5082
6309
|
if (vErrors === null) {
|
|
5083
|
-
vErrors = [
|
|
6310
|
+
vErrors = [err71];
|
|
5084
6311
|
} else {
|
|
5085
|
-
vErrors.push(
|
|
6312
|
+
vErrors.push(err71);
|
|
5086
6313
|
}
|
|
5087
6314
|
errors++;
|
|
5088
6315
|
}
|
|
5089
6316
|
}
|
|
5090
6317
|
if (data.regions !== void 0) {
|
|
5091
|
-
let
|
|
5092
|
-
if (Array.isArray(
|
|
5093
|
-
const
|
|
5094
|
-
for (let
|
|
5095
|
-
if (!
|
|
5096
|
-
vErrors = vErrors === null ?
|
|
6318
|
+
let data62 = data.regions;
|
|
6319
|
+
if (Array.isArray(data62)) {
|
|
6320
|
+
const len2 = data62.length;
|
|
6321
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
6322
|
+
if (!validate30(data62[i2], { instancePath: instancePath + "/regions/" + i2, parentData: data62, parentDataProperty: i2, rootData })) {
|
|
6323
|
+
vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
|
|
5097
6324
|
errors = vErrors.length;
|
|
5098
6325
|
}
|
|
5099
6326
|
}
|
|
5100
6327
|
} else {
|
|
5101
|
-
const
|
|
6328
|
+
const err72 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
5102
6329
|
if (vErrors === null) {
|
|
5103
|
-
vErrors = [
|
|
6330
|
+
vErrors = [err72];
|
|
5104
6331
|
} else {
|
|
5105
|
-
vErrors.push(
|
|
6332
|
+
vErrors.push(err72);
|
|
5106
6333
|
}
|
|
5107
6334
|
errors++;
|
|
5108
6335
|
}
|
|
5109
6336
|
}
|
|
5110
6337
|
if (data.boxes !== void 0) {
|
|
5111
|
-
let
|
|
5112
|
-
if (Array.isArray(
|
|
5113
|
-
const
|
|
5114
|
-
for (let
|
|
5115
|
-
if (!
|
|
5116
|
-
vErrors = vErrors === null ?
|
|
6338
|
+
let data64 = data.boxes;
|
|
6339
|
+
if (Array.isArray(data64)) {
|
|
6340
|
+
const len3 = data64.length;
|
|
6341
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
6342
|
+
if (!validate32(data64[i3], { instancePath: instancePath + "/boxes/" + i3, parentData: data64, parentDataProperty: i3, rootData })) {
|
|
6343
|
+
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
5117
6344
|
errors = vErrors.length;
|
|
5118
6345
|
}
|
|
5119
6346
|
}
|
|
5120
6347
|
} else {
|
|
5121
|
-
const
|
|
6348
|
+
const err73 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
5122
6349
|
if (vErrors === null) {
|
|
5123
|
-
vErrors = [
|
|
6350
|
+
vErrors = [err73];
|
|
5124
6351
|
} else {
|
|
5125
|
-
vErrors.push(
|
|
6352
|
+
vErrors.push(err73);
|
|
5126
6353
|
}
|
|
5127
6354
|
errors++;
|
|
5128
6355
|
}
|
|
5129
6356
|
}
|
|
5130
6357
|
if (data.strip !== void 0) {
|
|
5131
|
-
if (!
|
|
5132
|
-
vErrors = vErrors === null ?
|
|
6358
|
+
if (!validate34(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
6359
|
+
vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
|
|
5133
6360
|
errors = vErrors.length;
|
|
5134
6361
|
}
|
|
5135
6362
|
}
|
|
5136
6363
|
if (data.steps !== void 0) {
|
|
5137
|
-
let
|
|
5138
|
-
if (Array.isArray(
|
|
5139
|
-
if (
|
|
5140
|
-
const
|
|
6364
|
+
let data67 = data.steps;
|
|
6365
|
+
if (Array.isArray(data67)) {
|
|
6366
|
+
if (data67.length < 1) {
|
|
6367
|
+
const err74 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
5141
6368
|
if (vErrors === null) {
|
|
5142
|
-
vErrors = [
|
|
6369
|
+
vErrors = [err74];
|
|
5143
6370
|
} else {
|
|
5144
|
-
vErrors.push(
|
|
6371
|
+
vErrors.push(err74);
|
|
5145
6372
|
}
|
|
5146
6373
|
errors++;
|
|
5147
6374
|
}
|
|
5148
|
-
const
|
|
5149
|
-
for (let
|
|
5150
|
-
if (!
|
|
5151
|
-
vErrors = vErrors === null ?
|
|
6375
|
+
const len4 = data67.length;
|
|
6376
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
6377
|
+
if (!validate38(data67[i4], { instancePath: instancePath + "/steps/" + i4, parentData: data67, parentDataProperty: i4, rootData })) {
|
|
6378
|
+
vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
|
|
5152
6379
|
errors = vErrors.length;
|
|
5153
6380
|
}
|
|
5154
6381
|
}
|
|
5155
6382
|
} else {
|
|
5156
|
-
const
|
|
6383
|
+
const err75 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
5157
6384
|
if (vErrors === null) {
|
|
5158
|
-
vErrors = [
|
|
6385
|
+
vErrors = [err75];
|
|
5159
6386
|
} else {
|
|
5160
|
-
vErrors.push(
|
|
6387
|
+
vErrors.push(err75);
|
|
5161
6388
|
}
|
|
5162
6389
|
errors++;
|
|
5163
6390
|
}
|
|
5164
6391
|
}
|
|
5165
6392
|
if (data.sequence !== void 0) {
|
|
5166
|
-
if (!
|
|
5167
|
-
vErrors = vErrors === null ?
|
|
6393
|
+
if (!validate46(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
|
|
6394
|
+
vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
|
|
5168
6395
|
errors = vErrors.length;
|
|
5169
6396
|
}
|
|
5170
6397
|
}
|
|
5171
6398
|
if (data.state !== void 0) {
|
|
5172
|
-
if (!
|
|
5173
|
-
vErrors = vErrors === null ?
|
|
6399
|
+
if (!validate48(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
|
|
6400
|
+
vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
|
|
5174
6401
|
errors = vErrors.length;
|
|
5175
6402
|
}
|
|
5176
6403
|
}
|
|
5177
6404
|
if (data.git !== void 0) {
|
|
5178
|
-
if (!
|
|
5179
|
-
vErrors = vErrors === null ?
|
|
6405
|
+
if (!validate52(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
|
|
6406
|
+
vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);
|
|
5180
6407
|
errors = vErrors.length;
|
|
5181
6408
|
}
|
|
5182
6409
|
}
|
|
5183
6410
|
if (data.time !== void 0) {
|
|
5184
|
-
if (!
|
|
5185
|
-
vErrors = vErrors === null ?
|
|
6411
|
+
if (!validate56(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
|
|
6412
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
6413
|
+
errors = vErrors.length;
|
|
6414
|
+
}
|
|
6415
|
+
}
|
|
6416
|
+
if (data.lineup !== void 0) {
|
|
6417
|
+
if (!validate68(data.lineup, { instancePath: instancePath + "/lineup", parentData: data, parentDataProperty: "lineup", rootData })) {
|
|
6418
|
+
vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
|
|
5186
6419
|
errors = vErrors.length;
|
|
5187
6420
|
}
|
|
5188
6421
|
}
|
|
5189
6422
|
} else {
|
|
5190
|
-
const
|
|
6423
|
+
const err76 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5191
6424
|
if (vErrors === null) {
|
|
5192
|
-
vErrors = [
|
|
6425
|
+
vErrors = [err76];
|
|
5193
6426
|
} else {
|
|
5194
|
-
vErrors.push(
|
|
6427
|
+
vErrors.push(err76);
|
|
5195
6428
|
}
|
|
5196
6429
|
errors++;
|
|
5197
6430
|
}
|
|
@@ -5201,12 +6434,16 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5201
6434
|
|
|
5202
6435
|
// src/words.ts
|
|
5203
6436
|
var keys = (table) => Object.keys(table);
|
|
5204
|
-
var KINDS = keys({ sequence: true, architecture: true, state: true, git: true, time: true, tree: true });
|
|
6437
|
+
var KINDS = keys({ sequence: true, architecture: true, state: true, git: true, time: true, tree: true, lineup: true });
|
|
5205
6438
|
var STATE_ENDS = ["start", "finish"];
|
|
5206
6439
|
var TIME_HEADS = ["scale", "period", "row", "point", "zoom", "mark", "span"];
|
|
5207
6440
|
var NOW = "now";
|
|
5208
6441
|
var TREE_HEADS = ["leaf", "node"];
|
|
5209
|
-
var
|
|
6442
|
+
var LINEUP_HEADS = ["item", "line", "seal", "open", "pick", "stamp"];
|
|
6443
|
+
var LANE_MOST = 12;
|
|
6444
|
+
var LABEL_MOST = 4;
|
|
6445
|
+
var LANE_ATTRS = ["note", "color"];
|
|
6446
|
+
var HEADS = ["group", "end", "box", "strip", "step", "say", "code", "source", "act", "note", "set", "branch", "commit", ...TIME_HEADS, ...TREE_HEADS, ...LINEUP_HEADS];
|
|
5210
6447
|
var AS = "as";
|
|
5211
6448
|
var ON = "on";
|
|
5212
6449
|
var COPY = "copy";
|
|
@@ -5228,6 +6465,7 @@ var ATTRS = {
|
|
|
5228
6465
|
commit: ["hash", "note"],
|
|
5229
6466
|
leaf: ["hash"],
|
|
5230
6467
|
node: ["hash"],
|
|
6468
|
+
item: ["color", "label"],
|
|
5231
6469
|
scale: ["from"],
|
|
5232
6470
|
period: ["from"],
|
|
5233
6471
|
row: ["color", "empty"],
|
|
@@ -5251,9 +6489,18 @@ var OLD_HEADS = {
|
|
|
5251
6489
|
|
|
5252
6490
|
// src/schema.ts
|
|
5253
6491
|
var COLORS = ["blue", "amber", "green", "violet", "rose", "slate", "coin"];
|
|
5254
|
-
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node"];
|
|
6492
|
+
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node", "line", "seal", "open", "pick", "stamp"];
|
|
5255
6493
|
var ABSENT = "#/definitions/absent/not";
|
|
5256
|
-
var ABSENT_KINDS = {
|
|
6494
|
+
var ABSENT_KINDS = {
|
|
6495
|
+
regions: "sequence / architecture / state",
|
|
6496
|
+
at: "time",
|
|
6497
|
+
into: "time",
|
|
6498
|
+
color: "time",
|
|
6499
|
+
meters: "time",
|
|
6500
|
+
region: "sequence / architecture / state",
|
|
6501
|
+
icon: "sequence / architecture / state / git / time / tree",
|
|
6502
|
+
link: "sequence / architecture / state / git / time / tree"
|
|
6503
|
+
};
|
|
5257
6504
|
var NOT_ALLOWED = {
|
|
5258
6505
|
carry: { field: "text", kind: "tag" }
|
|
5259
6506
|
};
|
|
@@ -5264,6 +6511,10 @@ var TIME_EVENT = /\/events\/items\/not$/u;
|
|
|
5264
6511
|
var TIME_EVENTS = ["now", "mark", "span"];
|
|
5265
6512
|
var TREE_EVENT = /\/events\/items\/allOf\/0\/not$/u;
|
|
5266
6513
|
var TREE_EVENTS = ["leaf", "node"];
|
|
6514
|
+
var LINEUP_EVENT = "#/definitions/notLineupEvent/not";
|
|
6515
|
+
var LINEUP_EVENTS = ["line", "seal", "open", "pick", "stamp"];
|
|
6516
|
+
var WIRED_EVENT = "#/definitions/notWiredEvent/not";
|
|
6517
|
+
var WIRED_EVENTS = ["edge", "action"];
|
|
5267
6518
|
var DURATION = /^\^\[0-9\]\+\(\\\.\[0-9\]\+\)\?\(([a-z|]+)\)\$$/u;
|
|
5268
6519
|
var RATIO = /%\)\$$/u;
|
|
5269
6520
|
var escape = (key2) => key2.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
@@ -5295,6 +6546,8 @@ function toFieldError(error, errors, m) {
|
|
|
5295
6546
|
if (GIT_EVENT.test(error.schemaPath)) return { pointer: at, message: m.kindOnly(GIT_EVENTS, "git") };
|
|
5296
6547
|
if (TIME_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TIME_EVENTS, "time") };
|
|
5297
6548
|
if (TREE_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TREE_EVENTS, "tree") };
|
|
6549
|
+
if (error.schemaPath === LINEUP_EVENT) return { pointer: `${at}/type`, message: m.kindOnly(LINEUP_EVENTS, "lineup") };
|
|
6550
|
+
if (error.schemaPath === WIRED_EVENT) return { pointer: `${at}/type`, message: m.kindOnly(WIRED_EVENTS, "sequence / architecture / state / git / time / tree") };
|
|
5298
6551
|
const last = at.slice(at.lastIndexOf("/") + 1);
|
|
5299
6552
|
if (error.schemaPath === ABSENT) return { pointer: at, message: m.not({ field: last, kind: ABSENT_KINDS[last] ?? last }) };
|
|
5300
6553
|
const allowed = NOT_ALLOWED[last];
|
|
@@ -5315,6 +6568,8 @@ function toFieldError(error, errors, m) {
|
|
|
5315
6568
|
return { pointer: at, message: m.type(String(params.type)) };
|
|
5316
6569
|
case "minLength":
|
|
5317
6570
|
return { pointer: at, message: m.minLength(Number(params.limit)) };
|
|
6571
|
+
case "maxLength":
|
|
6572
|
+
return { pointer: at, message: m.maxLength(Number(params.limit)) };
|
|
5318
6573
|
case "pattern": {
|
|
5319
6574
|
if (error.schemaPath === URL_RULE) return { pointer: at, message: m.url };
|
|
5320
6575
|
const pattern = String(params.pattern);
|
|
@@ -5327,6 +6582,8 @@ function toFieldError(error, errors, m) {
|
|
|
5327
6582
|
}
|
|
5328
6583
|
case "minItems":
|
|
5329
6584
|
return { pointer: at, message: m.minItems(Number(params.limit)) };
|
|
6585
|
+
case "maxItems":
|
|
6586
|
+
return { pointer: at, message: m.maxItems(Number(params.limit)) };
|
|
5330
6587
|
case "minimum":
|
|
5331
6588
|
return { pointer: at, message: m.minimum(Number(params.limit)) };
|
|
5332
6589
|
case "const":
|
|
@@ -5440,6 +6697,22 @@ var ja2 = () => {
|
|
|
5440
6697
|
notTreeBox: (id) => `${id} \u306F box \u306E\u884C\u3067\u7F6E\u3044\u305F\u7BB1\u3067\u3001\u6728\u306E\u7BB1\u3067\u306A\u3044\u3002\u5B50\u306F leaf \u304B node \u3067\u66F8\u3044\u305F\u540D\u672D\u306B\u3059\u308B`,
|
|
5441
6698
|
twoParents: (id) => `${id} \u306F\u3082\u3046\u5225\u306E\u89AA\u306E\u5B50\u306B\u306A\u3063\u3066\u3044\u308B\u3002\u6728\u306E\u7BB1\u306E\u89AA\u306F 1 \u3064\u3060\u3051`,
|
|
5442
6699
|
manyRoots: (id, root) => `${id} \u304C\u89AA\u3092\u6301\u305F\u306A\u3044\u307E\u307E\u6B8B\u308B\u3002\u6728\u306E\u6839\u306F 1 \u3064\u3060\u3051\u3067\u3001${id} \u3082 ${root} \u3082\u6700\u5F8C\u306B 1 \u3064\u306E\u6839\u3078\u7D44\u3080`,
|
|
6700
|
+
lineupOnly: (word) => `${word} \u306E\u884C\u306F lineup (\u5217\u306E\u56F3) \u3067\u3060\u3051\u66F8\u3051\u308B`,
|
|
6701
|
+
lineupNoGroup: "lineup (\u5217\u306E\u56F3) \u306B\u306F group \u3092\u66F8\u3051\u306A\u3044\u3002\u5217\u306F box \u306E\u884C\u3067\u5BA3\u8A00\u3059\u308B",
|
|
6702
|
+
lineupNoEdge: "lineup (\u5217\u306E\u56F3) \u306B\u306F\u7DDA\u306E\u884C\u3092\u66F8\u3051\u306A\u3044\u3002\u30C1\u30C3\u30D7\u306F line \u306E\u884C\u3067\u5217\u306E\u4E26\u3073\u3092\u66F8\u304F\u3068\u52D5\u304F",
|
|
6703
|
+
lineupNoAct: "lineup (\u5217\u306E\u56F3) \u306B\u306F act \u306E\u884C\u3092\u66F8\u3051\u306A\u3044\u3002\u5217\u306E\u53F3\u4E0A\u306E\u5B57\u306F note \u306E\u884C\u3067\u66F8\u304D\u63DB\u3048\u308B",
|
|
6704
|
+
noItems: "item \u306E\u884C\u3067\u30C1\u30C3\u30D7\u3092 1 \u3064\u4EE5\u4E0A\u5BA3\u8A00\u3059\u308B",
|
|
6705
|
+
itemShape: "item \u306F item <\u540D\u672D>, <\u540D\u672D> [color: <\u8272>, label: <\u5B57>] \u306E\u5F62\u3067\u66F8\u304F",
|
|
6706
|
+
lineShape: "line \u306F line <\u5217>: <\u30C1\u30C3\u30D7>, <\u30C1\u30C3\u30D7> \u306E\u5F62\u3067\u66F8\u304F",
|
|
6707
|
+
laneShape: (word) => `${word} \u306F ${word} <\u5217> \u306E\u5F62\u3067\u66F8\u304F`,
|
|
6708
|
+
stampShape: "stamp \u306F stamp <\u5217>: <\u5B57> \u306E\u5F62\u3067\u66F8\u304F",
|
|
6709
|
+
labelTooLong: (limit) => `label \u306F ${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
|
|
6710
|
+
noSuchItem: (id) => `${id} \u3068\u3044\u3046\u30C1\u30C3\u30D7\u306F\u5BA3\u8A00\u3057\u3066\u3044\u306A\u3044`,
|
|
6711
|
+
itemTwice: (id) => `${id} \u306F\u3053\u306E\u884C\u306B 2 \u5EA6\u66F8\u3044\u3066\u3044\u308B\u3002\u540C\u3058\u5217\u306B\u540C\u3058\u30C1\u30C3\u30D7\u306F 1 \u679A\u3060\u3051`,
|
|
6712
|
+
laneFull: (lane, limit) => `${lane} \u306E\u5217\u306B\u4E26\u3079\u3089\u308C\u308B\u30C1\u30C3\u30D7\u306F ${limit} \u679A\u307E\u3067`,
|
|
6713
|
+
lineOnSealed: (lane) => `${lane} \u306E\u5217\u306F\u5C01\u3092\u3057\u3066\u3044\u308B\u306E\u3067\u4E26\u3073\u3092\u66F8\u3051\u306A\u3044\u3002\u5148\u306B open \u3067\u958B\u3051\u308B`,
|
|
6714
|
+
sealTwice: (lane) => `${lane} \u306E\u5217\u306B\u306F\u3082\u3046\u5C01\u3092\u3057\u3066\u3044\u308B`,
|
|
6715
|
+
openUnsealed: (lane) => `${lane} \u306E\u5217\u306B\u306F\u5C01\u3092\u3057\u3066\u3044\u306A\u3044`,
|
|
5443
6716
|
timeTwice: (word) => `${word} \u306F 1 \u3064\u3060\u3051\u5BA3\u8A00\u3059\u308B`,
|
|
5444
6717
|
noScale: "scale \u306E\u884C\u3067\u76EE\u76DB\u308A\u3092\u5BA3\u8A00\u3059\u308B",
|
|
5445
6718
|
noRows: "row \u306E\u884C\u3067\u5370\u306E\u5217\u3092 1 \u3064\u4EE5\u4E0A\u5BA3\u8A00\u3059\u308B",
|
|
@@ -5562,6 +6835,22 @@ var en2 = () => {
|
|
|
5562
6835
|
notTreeBox: (id) => `${id} is a box from a box line, not a tree box. A child must be an id written with leaf or node`,
|
|
5563
6836
|
twoParents: (id) => `${id} is already a child of another node. A tree box has only one parent`,
|
|
5564
6837
|
manyRoots: (id, root) => `${id} is left without a parent. A tree has one root, so join ${id} and ${root} under one root by the end`,
|
|
6838
|
+
lineupOnly: (word) => `${word} lines can be written only in lineup diagrams`,
|
|
6839
|
+
lineupNoGroup: "A lineup diagram takes no group. Declare the lanes with box lines",
|
|
6840
|
+
lineupNoEdge: "A lineup diagram takes no edge lines. Chips move when a line line rewrites a lane",
|
|
6841
|
+
lineupNoAct: "A lineup diagram takes no act lines. Rewrite the text at the top right of a lane with a note line",
|
|
6842
|
+
noItems: "Declare at least one chip with an item line",
|
|
6843
|
+
itemShape: "Write an item as item <id>, <id> [color: <color>, label: <text>]",
|
|
6844
|
+
lineShape: "Write a line as line <lane>: <chip>, <chip>",
|
|
6845
|
+
laneShape: (word) => `Write ${word} as ${word} <lane>`,
|
|
6846
|
+
stampShape: "Write a stamp as stamp <lane>: <text>",
|
|
6847
|
+
labelTooLong: (limit) => `A label is at most ${limit} characters`,
|
|
6848
|
+
noSuchItem: (id) => `The chip ${id} is not declared`,
|
|
6849
|
+
itemTwice: (id) => `${id} is written twice on this line. A lane holds one of each chip`,
|
|
6850
|
+
laneFull: (lane, limit) => `The lane ${lane} holds at most ${limit} chips`,
|
|
6851
|
+
lineOnSealed: (lane) => `The lane ${lane} is sealed, so its order cannot be written. Open it first`,
|
|
6852
|
+
sealTwice: (lane) => `The lane ${lane} is already sealed`,
|
|
6853
|
+
openUnsealed: (lane) => `The lane ${lane} is not sealed`,
|
|
5565
6854
|
timeTwice: (word) => `Declare only one ${word}`,
|
|
5566
6855
|
noScale: "Declare the scale with a scale line",
|
|
5567
6856
|
noRows: "Declare at least one row with a row line",
|
|
@@ -5643,6 +6932,9 @@ var COMMIT = new RegExp(`^commit\\s+([^\\s[]+)(?:\\s+${ON}\\s+([^\\s[]+))?(?:\\s
|
|
|
5643
6932
|
var CUT = new RegExp(`^([^\\s[]+)\\s+${FROM}(?:\\s+([^\\s[]+))?\\s*$`, "du");
|
|
5644
6933
|
var LEAF = /^leaf\s+([^\s[]+)/du;
|
|
5645
6934
|
var NODE = new RegExp(`^node\\s+([^\\s[]+)\\s+${OF}\\s+`, "du");
|
|
6935
|
+
var ORDER = /^line\s+([^\s:[]+)\s*:/du;
|
|
6936
|
+
var STAMP = /^stamp\s+([^\s:[]+)\s*:/du;
|
|
6937
|
+
var ON_LANE = /^(?:seal|open|pick)\s+(\S+)\s*$/du;
|
|
5646
6938
|
var HASH = /^[0-9a-f]{4,40}$/u;
|
|
5647
6939
|
var URL_FORM = /^(\/|https?:\/\/)/u;
|
|
5648
6940
|
var SCALE = /^scale\s+(\S+)\s+(\S+)\s+([^\s[]+)/du;
|
|
@@ -5809,6 +7101,9 @@ function parseLines(lines, m) {
|
|
|
5809
7101
|
const isGit = kind === "git";
|
|
5810
7102
|
const isTime = kind === "time";
|
|
5811
7103
|
const isTree = kind === "tree";
|
|
7104
|
+
const isLineup = kind === "lineup";
|
|
7105
|
+
const items = [];
|
|
7106
|
+
const sealed = /* @__PURE__ */ new Set();
|
|
5812
7107
|
const trees = /* @__PURE__ */ new Map();
|
|
5813
7108
|
const parents = /* @__PURE__ */ new Map();
|
|
5814
7109
|
let scale;
|
|
@@ -5897,6 +7192,7 @@ function parseLines(lines, m) {
|
|
|
5897
7192
|
}
|
|
5898
7193
|
const edge2 = EDGE.exec(text2);
|
|
5899
7194
|
if (edge2) {
|
|
7195
|
+
if (isLineup) throw fail(source, 0, m.lineupNoEdge);
|
|
5900
7196
|
if (isState && !building) paths.push(readPath(source, edge2));
|
|
5901
7197
|
else inStep(source).events.push(readEdge(source, edge2));
|
|
5902
7198
|
continue;
|
|
@@ -5910,6 +7206,7 @@ function parseLines(lines, m) {
|
|
|
5910
7206
|
if (!isGit && (word === "branch" || word === "commit")) throw fail(source, 0, m.gitOnly(word));
|
|
5911
7207
|
if (!isTime && isOneOf(TIME_HEADS, word)) throw fail(source, 0, m.timeOnly(word));
|
|
5912
7208
|
if (!isTree && isOneOf(TREE_HEADS, word)) throw fail(source, 0, m.treeOnly(word));
|
|
7209
|
+
if (!isLineup && isOneOf(LINEUP_HEADS, word)) throw fail(source, 0, m.lineupOnly(word));
|
|
5913
7210
|
if (!isOneOf(HEADS, word)) {
|
|
5914
7211
|
const old = oldForm(text2, building !== void 0);
|
|
5915
7212
|
throw fail(source, 0, old ? m.oldForm(old.word, old.shape) : m.unknownHead(word));
|
|
@@ -5953,6 +7250,7 @@ function parseLines(lines, m) {
|
|
|
5953
7250
|
inStep(source).sources.push(readSource(source));
|
|
5954
7251
|
break;
|
|
5955
7252
|
case "act": {
|
|
7253
|
+
if (isLineup) throw fail(source, 0, m.lineupNoAct);
|
|
5956
7254
|
const step = inStep(source);
|
|
5957
7255
|
const on = readOnBox(source, word, m.actShape);
|
|
5958
7256
|
step.events.push({ type: "action", box: on.box, label: on.text });
|
|
@@ -6010,6 +7308,26 @@ function parseLines(lines, m) {
|
|
|
6010
7308
|
step.events.push(readNode(source));
|
|
6011
7309
|
break;
|
|
6012
7310
|
}
|
|
7311
|
+
case "item":
|
|
7312
|
+
readItem(source);
|
|
7313
|
+
break;
|
|
7314
|
+
case "line": {
|
|
7315
|
+
const step = inStep(source);
|
|
7316
|
+
step.events.push(readOrder(source));
|
|
7317
|
+
break;
|
|
7318
|
+
}
|
|
7319
|
+
case "seal":
|
|
7320
|
+
case "open":
|
|
7321
|
+
case "pick": {
|
|
7322
|
+
const step = inStep(source);
|
|
7323
|
+
step.events.push(readOnLane(source, word));
|
|
7324
|
+
break;
|
|
7325
|
+
}
|
|
7326
|
+
case "stamp": {
|
|
7327
|
+
const step = inStep(source);
|
|
7328
|
+
step.events.push(readStamp(source));
|
|
7329
|
+
break;
|
|
7330
|
+
}
|
|
6013
7331
|
}
|
|
6014
7332
|
}
|
|
6015
7333
|
if (group) throw fail(group.source, 0, m.unclosedGroup(group.id));
|
|
@@ -6017,6 +7335,7 @@ function parseLines(lines, m) {
|
|
|
6017
7335
|
finish();
|
|
6018
7336
|
if (isGit && branches.length === 0) throw fail(head, 0, m.noBranches);
|
|
6019
7337
|
if (isTree && trees.size === 0) throw fail(head, 0, m.noLeaves);
|
|
7338
|
+
if (isLineup && items.length === 0) throw fail(head, 0, m.noItems);
|
|
6020
7339
|
if (boxes.length === 0 && !isGit && !isTime && !isTree) throw fail(head, 0, m.noBoxes);
|
|
6021
7340
|
if (steps.length === 0) throw fail(head, 0, m.noSteps);
|
|
6022
7341
|
const roots = [...trees.keys()].filter((id) => !parents.has(id));
|
|
@@ -6035,6 +7354,7 @@ function parseLines(lines, m) {
|
|
|
6035
7354
|
...kind === "sequence" ? { sequence: { lifelines: boxes.map((box) => box.id) } } : {},
|
|
6036
7355
|
...paths.length > 0 ? { state: { paths } } : {},
|
|
6037
7356
|
...isGit ? { git: { branches } } : {},
|
|
7357
|
+
...isLineup ? { lineup: { items } } : {},
|
|
6038
7358
|
...isTime && scale ? {
|
|
6039
7359
|
time: {
|
|
6040
7360
|
scale,
|
|
@@ -6204,6 +7524,7 @@ function parseLines(lines, m) {
|
|
|
6204
7524
|
beforeSteps(source);
|
|
6205
7525
|
if (isGit) throw fail(source, 0, m.gitNoGroup);
|
|
6206
7526
|
if (isTree) throw fail(source, 0, m.treeNoGroup);
|
|
7527
|
+
if (isLineup) throw fail(source, 0, m.lineupNoGroup);
|
|
6207
7528
|
if (group) throw fail(source, 0, m.nestedGroup);
|
|
6208
7529
|
const declared = readDeclared(source, "group", ATTRS.group, m);
|
|
6209
7530
|
if (regions.some((region) => region.id === declared.id)) {
|
|
@@ -6217,7 +7538,7 @@ function parseLines(lines, m) {
|
|
|
6217
7538
|
}
|
|
6218
7539
|
function readBox(source) {
|
|
6219
7540
|
beforeSteps(source);
|
|
6220
|
-
const declared = readDeclared(source, "box", ATTRS.box, m);
|
|
7541
|
+
const declared = readDeclared(source, "box", isLineup ? LANE_ATTRS : ATTRS.box, m);
|
|
6221
7542
|
notReserved(source, declared.id, declared.idAt);
|
|
6222
7543
|
declare(source, declared.id, declared.idAt);
|
|
6223
7544
|
firstBox ??= source;
|
|
@@ -6345,6 +7666,74 @@ function parseLines(lines, m) {
|
|
|
6345
7666
|
if (hash && !HASH.test(hash.value)) throw fail(source, hash.at, m.badHash);
|
|
6346
7667
|
return hash?.value;
|
|
6347
7668
|
}
|
|
7669
|
+
function namesAt(source, from, to, shape) {
|
|
7670
|
+
const text2 = source.text;
|
|
7671
|
+
const names = [];
|
|
7672
|
+
for (let i = from; ; ) {
|
|
7673
|
+
const start = skipSpaces(text2, i);
|
|
7674
|
+
const comma = text2.indexOf(",", start);
|
|
7675
|
+
const end = comma < 0 || comma > to ? to : comma;
|
|
7676
|
+
const value2 = text2.slice(start, end).trim();
|
|
7677
|
+
if (value2 === "") throw fail(source, start, shape);
|
|
7678
|
+
if (!ID.test(value2)) throw fail(source, start, m.badId(value2));
|
|
7679
|
+
names.push({ value: value2, at: start });
|
|
7680
|
+
if (end >= to) return names;
|
|
7681
|
+
i = end + 1;
|
|
7682
|
+
}
|
|
7683
|
+
}
|
|
7684
|
+
function readItem(source) {
|
|
7685
|
+
beforeSteps(source);
|
|
7686
|
+
const open = source.text.indexOf("[");
|
|
7687
|
+
const end = open < 0 ? source.text.length : open;
|
|
7688
|
+
const attrs2 = open < 0 ? /* @__PURE__ */ new Map() : readAttrs(source, open, ATTRS.item, m);
|
|
7689
|
+
const color = attrs2.get("color");
|
|
7690
|
+
if (color && !isOneOf(COLORS, color.value)) throw fail(source, color.at, m.badColor);
|
|
7691
|
+
const label2 = attrs2.get("label");
|
|
7692
|
+
if (label2 && [...label2.value].length > LABEL_MOST) throw fail(source, label2.at, m.labelTooLong(LABEL_MOST));
|
|
7693
|
+
for (const { value: value2, at } of namesAt(source, "item".length, end, m.itemShape)) {
|
|
7694
|
+
declare(source, value2, at);
|
|
7695
|
+
items.push({ id: value2, ...color ? { color: color.value } : {}, ...label2 ? { label: label2.value } : {} });
|
|
7696
|
+
}
|
|
7697
|
+
}
|
|
7698
|
+
function readOrder(source) {
|
|
7699
|
+
const found = ORDER.exec(source.text);
|
|
7700
|
+
const lane = found?.[1];
|
|
7701
|
+
if (!found || lane === void 0) throw fail(source, 0, m.lineShape);
|
|
7702
|
+
const at = found.indices?.[1]?.[0] ?? 0;
|
|
7703
|
+
const box = boxAt(source, lane, at);
|
|
7704
|
+
if (sealed.has(box)) throw fail(source, at, m.lineOnSealed(box));
|
|
7705
|
+
const chips = namesAt(source, found[0].length, source.text.length, m.lineShape);
|
|
7706
|
+
const seen = /* @__PURE__ */ new Set();
|
|
7707
|
+
chips.forEach(({ value: value2, at: chipAt }, k) => {
|
|
7708
|
+
if (!items.some((item) => item.id === value2)) throw fail(source, chipAt, m.noSuchItem(value2));
|
|
7709
|
+
if (seen.has(value2)) throw fail(source, chipAt, m.itemTwice(value2));
|
|
7710
|
+
if (k >= LANE_MOST) throw fail(source, chipAt, m.laneFull(box, LANE_MOST));
|
|
7711
|
+
seen.add(value2);
|
|
7712
|
+
});
|
|
7713
|
+
return { type: "line", box, items: chips.map((chip) => chip.value) };
|
|
7714
|
+
}
|
|
7715
|
+
function readOnLane(source, word) {
|
|
7716
|
+
const found = ON_LANE.exec(source.text);
|
|
7717
|
+
const lane = found?.[1];
|
|
7718
|
+
if (!found || lane === void 0) throw fail(source, 0, m.laneShape(word));
|
|
7719
|
+
const at = found.indices?.[1]?.[0] ?? 0;
|
|
7720
|
+
const box = boxAt(source, lane, at);
|
|
7721
|
+
if (word === "seal") {
|
|
7722
|
+
if (sealed.has(box)) throw fail(source, at, m.sealTwice(box));
|
|
7723
|
+
sealed.add(box);
|
|
7724
|
+
}
|
|
7725
|
+
if (word === "open" && !sealed.delete(box)) throw fail(source, at, m.openUnsealed(box));
|
|
7726
|
+
return { type: word, box };
|
|
7727
|
+
}
|
|
7728
|
+
function readStamp(source) {
|
|
7729
|
+
const found = STAMP.exec(source.text);
|
|
7730
|
+
const lane = found?.[1];
|
|
7731
|
+
if (!found || lane === void 0) throw fail(source, 0, m.stampShape);
|
|
7732
|
+
const box = boxAt(source, lane, found.indices?.[1]?.[0] ?? 0);
|
|
7733
|
+
const named = readName(source, found[0].length, m);
|
|
7734
|
+
if (named.value === "" || named.rest < source.text.length) throw fail(source, 0, m.stampShape);
|
|
7735
|
+
return { type: "stamp", box, text: named.value };
|
|
7736
|
+
}
|
|
6348
7737
|
function readStrip(source) {
|
|
6349
7738
|
beforeSteps(source);
|
|
6350
7739
|
if (strip2) throw fail(source, 0, m.stripTwice);
|
|
@@ -6372,7 +7761,7 @@ function parseLines(lines, m) {
|
|
|
6372
7761
|
}
|
|
6373
7762
|
function readFields(source, at) {
|
|
6374
7763
|
const text2 = source.text;
|
|
6375
|
-
const
|
|
7764
|
+
const items2 = [];
|
|
6376
7765
|
for (let i = at; ; ) {
|
|
6377
7766
|
const start = skipSpaces(text2, i);
|
|
6378
7767
|
let value2;
|
|
@@ -6400,8 +7789,8 @@ function parseLines(lines, m) {
|
|
|
6400
7789
|
end = skipSpaces(text2, close + 1);
|
|
6401
7790
|
}
|
|
6402
7791
|
if (end < text2.length && text2[end] !== ",") throw fail(source, end, m.afterQuote);
|
|
6403
|
-
|
|
6404
|
-
if (end >= text2.length) return
|
|
7792
|
+
items2.push(value2);
|
|
7793
|
+
if (end >= text2.length) return items2;
|
|
6405
7794
|
i = end + 1;
|
|
6406
7795
|
}
|
|
6407
7796
|
}
|
|
@@ -6605,8 +7994,30 @@ function event(e, kind) {
|
|
|
6605
7994
|
return `leaf ${e.id}${attrs([["hash", e.hash]])}`;
|
|
6606
7995
|
case "node":
|
|
6607
7996
|
return `node ${e.id} ${OF} ${e.children.join(", ")}${attrs([["hash", e.hash]])}`;
|
|
7997
|
+
case "line":
|
|
7998
|
+
return `line ${e.box}: ${e.items.join(", ")}`;
|
|
7999
|
+
case "seal":
|
|
8000
|
+
case "open":
|
|
8001
|
+
case "pick":
|
|
8002
|
+
return `${e.type} ${e.box}`;
|
|
8003
|
+
case "stamp":
|
|
8004
|
+
return `stamp ${e.box}: ${name(e.text)}`;
|
|
6608
8005
|
}
|
|
6609
8006
|
}
|
|
8007
|
+
function itemLines(items) {
|
|
8008
|
+
const rows = [];
|
|
8009
|
+
for (const item of items) {
|
|
8010
|
+
const row = rows.at(-1);
|
|
8011
|
+
if (row && item.label === void 0 && row[0]?.label === void 0 && row[0]?.color === item.color) row.push(item);
|
|
8012
|
+
else rows.push([item]);
|
|
8013
|
+
}
|
|
8014
|
+
return rows.map(
|
|
8015
|
+
(row) => `item ${row.map((item) => item.id).join(", ")}${attrs([
|
|
8016
|
+
["color", row[0]?.color],
|
|
8017
|
+
["label", row[0]?.label]
|
|
8018
|
+
])}`
|
|
8019
|
+
).join("\n");
|
|
8020
|
+
}
|
|
6610
8021
|
function timeBlocks(time) {
|
|
6611
8022
|
const head = [
|
|
6612
8023
|
`scale ${time.scale.unit} ${time.scale.length} ${time.scale.count}${attrs([["from", num(time.scale.from)]])}`,
|
|
@@ -6660,7 +8071,8 @@ function printNotation(diagram) {
|
|
|
6660
8071
|
`${diagram.kind} ${name(diagram.title)}${attrs([["view", diagram.view]])}`,
|
|
6661
8072
|
...branches.length > 0 ? [branches.join("\n")] : [],
|
|
6662
8073
|
...diagram.time ? timeBlocks(diagram.time) : [],
|
|
6663
|
-
...declarations(diagram)
|
|
8074
|
+
...declarations(diagram),
|
|
8075
|
+
...diagram.lineup && diagram.lineup.items.length > 0 ? [itemLines(diagram.lineup.items)] : []
|
|
6664
8076
|
];
|
|
6665
8077
|
if (diagram.strip) {
|
|
6666
8078
|
const meters = new Map((diagram.strip.meters ?? []).map((m) => [m.field, m.line]));
|
|
@@ -6970,6 +8382,9 @@ var TYPE = {
|
|
|
6970
8382
|
rootHash: text(15, 700, "mono"),
|
|
6971
8383
|
rootName: text(11, 700),
|
|
6972
8384
|
treeCard: text(11.5, 650),
|
|
8385
|
+
/** 列の図 (#3239) の、チップの字と札の字 */
|
|
8386
|
+
chip: text(10.5, 700, "mono"),
|
|
8387
|
+
stamp: text(11, 700),
|
|
6973
8388
|
/**
|
|
6974
8389
|
* 時間軸の図 (#3165)。拡大の帯の列の上の字、印の列の名前、時刻の字、区切りの名前と目盛りの番号の範囲、
|
|
6975
8390
|
* 節目の名札と状態、範囲の括弧の字、空きの枠の字、物差しの線の字。和文を含む字は同じ大きさと太さの和文の字で描く
|
|
@@ -7092,6 +8507,26 @@ var LOOK = {
|
|
|
7092
8507
|
color: "violet",
|
|
7093
8508
|
rootColor: "green"
|
|
7094
8509
|
},
|
|
8510
|
+
/**
|
|
8511
|
+
* 列の図 (#3239)。step 2 で本人が選んだ見本の「列の図」の形で、1 列 12 枚の図の幅が携帯の幅で全体を見せられる 400 に収まる寸法にする。
|
|
8512
|
+
* 列は左右の余白 `padX`、高さ `h`、角の丸み `radius`。列の名前と右上の字の基準線は列の上端から `textY`、チップの上端は列の上端から `trackY`、
|
|
8513
|
+
* 名前と右上の字の間の下限は `textGap`、選ばなかった列の濃さは `faint`。
|
|
8514
|
+
* `chip` はチップの幅の下限 `w`、高さ `h`、隣のチップとの間 `gap`、角の丸み `radius`、字の左右の余白 `padX`。字が幅を超える図は全てのチップの幅を広げる。
|
|
8515
|
+
* `seal` は封で、チップの並びの外へ `over` 広げ、角の丸み `radius`、縞の幅 `stripe`。
|
|
8516
|
+
* `stamp` は札で、高さ `h`、字の左右の余白 `padX`、角の丸み `radius`、傾き `tilt`、色 `color`
|
|
8517
|
+
*/
|
|
8518
|
+
lineup: {
|
|
8519
|
+
padX: 12,
|
|
8520
|
+
h: 61,
|
|
8521
|
+
radius: 10,
|
|
8522
|
+
textY: 20,
|
|
8523
|
+
trackY: 33,
|
|
8524
|
+
textGap: 10,
|
|
8525
|
+
faint: 0.35,
|
|
8526
|
+
chip: { w: 25, h: 18, gap: 4, radius: 4, padX: 3 },
|
|
8527
|
+
seal: { over: 3, radius: 5, stripe: 7 },
|
|
8528
|
+
stamp: { h: 22, padX: 8, radius: 5, tilt: -4, color: "green" }
|
|
8529
|
+
},
|
|
7095
8530
|
/**
|
|
7096
8531
|
* 時間軸の図 (#3165)。見本帳の試作 (`scenes/finality.js`) の寸法を写す。
|
|
7097
8532
|
* 図の幅は `width` で、時間軸は左の `axisX` から右の余白 `right` の手前まで。印の列の名前が長い時は、名前の右に `gutterGap` を空けて軸を右へ寄せる。
|
|
@@ -7198,7 +8633,8 @@ var LOOK = {
|
|
|
7198
8633
|
timeMeter: 1.25,
|
|
7199
8634
|
tree: 1.5,
|
|
7200
8635
|
treeTrail: 2.6,
|
|
7201
|
-
treeCon: 1.3
|
|
8636
|
+
treeCon: 1.3,
|
|
8637
|
+
stamp: 2
|
|
7202
8638
|
},
|
|
7203
8639
|
shadow: { near: 0.8, far: 4, nearY: 1, farY: 3 },
|
|
7204
8640
|
mini: { w: 168, pad: 8, title: 14, inset: 12, radius: 10 },
|
|
@@ -7213,8 +8649,8 @@ var LOOK = {
|
|
|
7213
8649
|
*/
|
|
7214
8650
|
follow: { aspect: 0.75, minH: 320, fitMinH: 160, ease: 0.6, narrow: 440, badgeRoom: 8, headRoom: 10, head: { pad: 8, h: 40, nameY: 17, subY: 31 } },
|
|
7215
8651
|
/** 色を混ぜる割合 (%) */
|
|
7216
|
-
/** `time` から始まる値は時間軸の図 (#3165)
|
|
7217
|
-
mix: { slot: 45, icon: 14, regionIcon: 16, regionIconEdge: 34, cap: 12, capEdge: 42, badgePast: 14, badgePastEdge: 70, mini: 62, miniBand: 16, miniBandEdge: 36, view: 6, side: 4, sideEdge: 36, ghostEdge: 60, path: 55, past: 72, timeShade: 3.5, timeSpan: 6, timeEmpty: 8, timeGuide: 50 },
|
|
8652
|
+
/** `time` から始まる値は時間軸の図 (#3165) の、区切りの地、範囲の囲みの地、空きの枠の地、拡大の点線の濃さ。`chip` と `seal` から始まる値は列の図 (#3239) の、色を持たないチップの地と封の縞の濃さ */
|
|
8653
|
+
mix: { slot: 45, icon: 14, regionIcon: 16, regionIconEdge: 34, cap: 12, capEdge: 42, badgePast: 14, badgePastEdge: 70, mini: 62, miniBand: 16, miniBandEdge: 36, view: 6, side: 4, sideEdge: 36, ghostEdge: 60, path: 55, past: 72, timeShade: 3.5, timeSpan: 6, timeEmpty: 8, timeGuide: 50, chipPlain: 34, sealDark: 60, sealLight: 34 },
|
|
7218
8654
|
/** 字の並びの基準線を、置きたい高さの真ん中からどれだけ下げるか */
|
|
7219
8655
|
baseline: { label: 3.8, badge: 3.5, carrier: 3.7, stripTitle: 4.5, tag: 3.6, action: 3.8, mark: 4 },
|
|
7220
8656
|
/** 浮いて出る物が下から上がる長さと、弾んで出る物の始まりの大きさ */
|
|
@@ -7265,7 +8701,12 @@ var MOTION = {
|
|
|
7265
8701
|
* 拡大した目盛りでは、その段のその列の線を引き終えてから `wait` 秒待って次の目盛りへ進む。
|
|
7266
8702
|
* `after` は針が止まってから次の出来事を起こすまで、`reset` は区切りが替わって物差しが 0 に戻る長さ
|
|
7267
8703
|
*/
|
|
7268
|
-
time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 }
|
|
8704
|
+
time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 },
|
|
8705
|
+
/**
|
|
8706
|
+
* 列の図 (#3239)。`slide` はチップが滑る長さ、`seal` は封が列を覆う長さ、`stagger` は同じ段の出来事を起こす間、
|
|
8707
|
+
* `cut` はチップと封が一瞬で入れ替わる長さ
|
|
8708
|
+
*/
|
|
8709
|
+
lineup: { slide: 0.7, seal: 0.6, stagger: 0.2, cut: 0.01 }
|
|
7269
8710
|
};
|
|
7270
8711
|
var READABLE_PX = 10.5;
|
|
7271
8712
|
var EASE = {
|
|
@@ -7658,7 +9099,7 @@ function layoutStrip(diagram, x, y, width, trail) {
|
|
|
7658
9099
|
const fields = [];
|
|
7659
9100
|
let cx = start;
|
|
7660
9101
|
let row = 0;
|
|
7661
|
-
const
|
|
9102
|
+
const place2 = (w) => {
|
|
7662
9103
|
if (cx > start && cx + w > width - pad2) {
|
|
7663
9104
|
cx = start;
|
|
7664
9105
|
row++;
|
|
@@ -7669,12 +9110,12 @@ function layoutStrip(diagram, x, y, width, trail) {
|
|
|
7669
9110
|
};
|
|
7670
9111
|
for (const name2 of diagram.strip.fields) {
|
|
7671
9112
|
const w = fieldWidth(diagram, name2);
|
|
7672
|
-
const at =
|
|
9113
|
+
const at = place2(w);
|
|
7673
9114
|
const meter = meterOf(diagram, name2);
|
|
7674
9115
|
const line3 = meter ? ratioOf(meter.line) : void 0;
|
|
7675
9116
|
fields.push({ name: name2, ...at, w, ...meter && line3 !== void 0 ? { meter: { line: line3, text: meter.line, x: at.x, w: LOOK.time.meter.w } } : {} });
|
|
7676
9117
|
}
|
|
7677
|
-
const laidTrail = trail ? { ...trail, ...
|
|
9118
|
+
const laidTrail = trail ? { ...trail, ...place2(trailWidth(trail)), w: trailWidth(trail) } : void 0;
|
|
7678
9119
|
return { x, y, w: width, h: h + row * line2, title: diagram.strip.title, fields, ...laidTrail ? { trail: laidTrail } : {} };
|
|
7679
9120
|
}
|
|
7680
9121
|
function shiftContent(layout, dx, dy) {
|
|
@@ -8585,6 +10026,138 @@ function labelsOf(diagram, layout) {
|
|
|
8585
10026
|
return labels;
|
|
8586
10027
|
}
|
|
8587
10028
|
|
|
10029
|
+
// src/layout/lineup.ts
|
|
10030
|
+
var isLineupLayout = (layout) => layout.kind === "lineup";
|
|
10031
|
+
function notesOf(diagram, id, sub) {
|
|
10032
|
+
const written = diagram.steps.flatMap((step) => step.events.flatMap((e) => e.type === "swap" && e.box === id ? [textWidth(e.text, TYPE.boxSubStrong)] : []));
|
|
10033
|
+
return sub === void 0 ? written : [textWidth(sub, TYPE.boxSub), ...written];
|
|
10034
|
+
}
|
|
10035
|
+
function layoutLineup(diagram) {
|
|
10036
|
+
const { margin, gap, lineup: N } = LOOK;
|
|
10037
|
+
const items = diagram.lineup?.items ?? [];
|
|
10038
|
+
const known = new Set(items.map((item) => item.id));
|
|
10039
|
+
const chipW = Math.max(N.chip.w, ...items.map((item) => item.label === void 0 ? 0 : textWidth(item.label, TYPE.chip) + N.chip.padX * 2));
|
|
10040
|
+
const pitch = chipW + N.chip.gap;
|
|
10041
|
+
const trackW = pitch * LANE_MOST - N.chip.gap;
|
|
10042
|
+
const titled = diagram.boxes.map((b) => textWidth(b.name, TYPE.boxName) + N.textGap + Math.max(0, ...notesOf(diagram, b.id, b.sub)));
|
|
10043
|
+
const laneW = Math.max(trackW + N.padX * 2, ...titled.map((w) => w + N.padX * 2), stripNeed(diagram));
|
|
10044
|
+
const colors = boxColors(diagram);
|
|
10045
|
+
const lanes = diagram.boxes.map((b, i) => {
|
|
10046
|
+
const y = margin + i * (N.h + gap);
|
|
10047
|
+
const baseline = y + N.textY;
|
|
10048
|
+
const noteRight = margin + laneW - N.padX;
|
|
10049
|
+
return {
|
|
10050
|
+
id: b.id,
|
|
10051
|
+
name: b.name,
|
|
10052
|
+
...b.sub !== void 0 ? { sub: b.sub } : {},
|
|
10053
|
+
color: colors.get(b.id) ?? "slate",
|
|
10054
|
+
x: margin,
|
|
10055
|
+
y,
|
|
10056
|
+
w: laneW,
|
|
10057
|
+
h: N.h,
|
|
10058
|
+
cx: margin + laneW / 2,
|
|
10059
|
+
cy: y + N.h / 2,
|
|
10060
|
+
title: { ...textBox(b.name, margin + N.padX, baseline, TYPE.boxName), text: b.name, baseline },
|
|
10061
|
+
...b.sub !== void 0 ? { note: { ...textBox(b.sub, noteRight - textWidth(b.sub, TYPE.boxSub), baseline, TYPE.boxSub), text: b.sub, baseline } } : {},
|
|
10062
|
+
noteRight,
|
|
10063
|
+
track: { x: margin + N.padX, y: y + N.trackY, w: trackW, h: N.chip.h }
|
|
10064
|
+
};
|
|
10065
|
+
});
|
|
10066
|
+
const laneOf = new Map(lanes.map((lane) => [lane.id, lane]));
|
|
10067
|
+
const chips = [];
|
|
10068
|
+
const seals = [];
|
|
10069
|
+
const stamps = [];
|
|
10070
|
+
const picks = [];
|
|
10071
|
+
const seated = /* @__PURE__ */ new Map();
|
|
10072
|
+
const open = /* @__PURE__ */ new Map();
|
|
10073
|
+
let picked;
|
|
10074
|
+
diagram.steps.forEach((step, s) => {
|
|
10075
|
+
const before = [...seated.values()].flat();
|
|
10076
|
+
step.events.forEach((e, k) => {
|
|
10077
|
+
if (e.type !== "line" && e.type !== "seal" && e.type !== "open" && e.type !== "pick" && e.type !== "stamp") return;
|
|
10078
|
+
const lane = laneOf.get(e.box);
|
|
10079
|
+
if (!lane) return;
|
|
10080
|
+
const at = { step: s, event: k };
|
|
10081
|
+
if (e.type === "seal" && !open.has(lane.id)) {
|
|
10082
|
+
const { over } = N.seal;
|
|
10083
|
+
const seal = { ...at, lane: lane.id, x: lane.track.x - over, y: lane.track.y - over, w: lane.track.w + over * 2, h: lane.track.h + over * 2 };
|
|
10084
|
+
seals.push(seal);
|
|
10085
|
+
open.set(lane.id, seal);
|
|
10086
|
+
} else if (e.type === "open") {
|
|
10087
|
+
const seal = open.get(lane.id);
|
|
10088
|
+
if (seal) seal.until = at;
|
|
10089
|
+
open.delete(lane.id);
|
|
10090
|
+
} else if (e.type === "pick" && picked !== lane.id) {
|
|
10091
|
+
picks.push({ ...at, lane: lane.id });
|
|
10092
|
+
picked = lane.id;
|
|
10093
|
+
} else if (e.type === "stamp") {
|
|
10094
|
+
const w = textWidth(e.text, TYPE.stamp) + N.stamp.padX * 2;
|
|
10095
|
+
stamps.push({ ...at, lane: lane.id, text: e.text, x: lane.x + lane.w - N.padX - w, y: lane.track.y + (lane.track.h - N.stamp.h) / 2, w, h: N.stamp.h });
|
|
10096
|
+
} else if (e.type === "line") {
|
|
10097
|
+
const old = seated.get(lane.id) ?? [];
|
|
10098
|
+
const order = [...new Set(e.items)].filter((id) => known.has(id)).slice(0, LANE_MOST);
|
|
10099
|
+
const placed = order.map((id, index) => {
|
|
10100
|
+
const same2 = old.find((c) => c.id === id);
|
|
10101
|
+
if (same2?.index === index) return same2;
|
|
10102
|
+
const others = before.filter((c) => c.id === id);
|
|
10103
|
+
const source = same2 ?? others.find((c) => c.lane === picked) ?? others.at(-1);
|
|
10104
|
+
const seat2 = { ...at, id, lane: lane.id, index, x: lane.track.x + pitch * index, y: lane.track.y, w: chipW, h: N.chip.h, ...source ? { from: [source.x, source.y] } : {} };
|
|
10105
|
+
chips.push(seat2);
|
|
10106
|
+
return seat2;
|
|
10107
|
+
});
|
|
10108
|
+
for (const c of old) if (!placed.includes(c)) c.until = at;
|
|
10109
|
+
seated.set(lane.id, placed);
|
|
10110
|
+
}
|
|
10111
|
+
});
|
|
10112
|
+
});
|
|
10113
|
+
const layout = {
|
|
10114
|
+
kind: "lineup",
|
|
10115
|
+
width: 0,
|
|
10116
|
+
height: 0,
|
|
10117
|
+
regions: [],
|
|
10118
|
+
boxes: lanes,
|
|
10119
|
+
lifelines: [],
|
|
10120
|
+
edges: [],
|
|
10121
|
+
labels: [],
|
|
10122
|
+
actions: [],
|
|
10123
|
+
badges: [],
|
|
10124
|
+
paths: [],
|
|
10125
|
+
ends: [],
|
|
10126
|
+
lanes,
|
|
10127
|
+
chips,
|
|
10128
|
+
seals,
|
|
10129
|
+
stamps,
|
|
10130
|
+
picks
|
|
10131
|
+
};
|
|
10132
|
+
const bottom = Math.max(...lanes.map((lane) => lane.y + lane.h), margin);
|
|
10133
|
+
const width = laneW + margin * 2;
|
|
10134
|
+
const strip2 = layoutStrip(diagram, margin, bottom + gap, width - margin * 2);
|
|
10135
|
+
layout.width = width;
|
|
10136
|
+
layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
|
|
10137
|
+
if (strip2) layout.strip = strip2;
|
|
10138
|
+
layout.badges = badgesOf2(diagram, layout);
|
|
10139
|
+
return layout;
|
|
10140
|
+
}
|
|
10141
|
+
function badgesOf2(diagram, layout) {
|
|
10142
|
+
const { inset } = LOOK.badge;
|
|
10143
|
+
const out = [];
|
|
10144
|
+
const put = (step, x, y, color) => {
|
|
10145
|
+
out.push({ step, x, y, color });
|
|
10146
|
+
};
|
|
10147
|
+
diagram.steps.forEach((step, s) => {
|
|
10148
|
+
const lane = step.events.flatMap((e) => "box" in e ? [e.box] : []).flatMap((id) => layout.lanes.filter((l) => l.id === id))[0];
|
|
10149
|
+
if (lane) {
|
|
10150
|
+
put(s, lane.x, lane.track.y + lane.track.h / 2, lane.color);
|
|
10151
|
+
return;
|
|
10152
|
+
}
|
|
10153
|
+
const before = out[out.length - 1];
|
|
10154
|
+
if (layout.strip && step.events.some((e) => e.type === "strip")) put(s, layout.strip.x + inset, layout.strip.y + inset, "slate");
|
|
10155
|
+
else if (before) out.push({ ...before, step: s });
|
|
10156
|
+
else put(s, LOOK.margin, LOOK.margin, layout.lanes[0]?.color ?? "slate");
|
|
10157
|
+
});
|
|
10158
|
+
return replaceSameSpot(out);
|
|
10159
|
+
}
|
|
10160
|
+
|
|
8588
10161
|
// src/layout/sequence.ts
|
|
8589
10162
|
function layoutSequence(diagram) {
|
|
8590
10163
|
const { box: B, sequence: Q, label: L, margin, gap } = LOOK;
|
|
@@ -9296,7 +10869,7 @@ function layoutTime(diagram, lang = "ja") {
|
|
|
9296
10869
|
} else spans.push({ ...base, x: x0, y: 0, w: x1 - x0, h: T.bracket.tick, textRect: { x: 0, y: 0, w: 0, h: 0 }, textY: 0 });
|
|
9297
10870
|
}
|
|
9298
10871
|
layout.spans = spans;
|
|
9299
|
-
layout.badges =
|
|
10872
|
+
layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
|
|
9300
10873
|
layout.labels = labelsOf2(diagram, layout);
|
|
9301
10874
|
y = Math.max(y, ...layout.labels.map((l) => l.y + l.h + LOOK.label.soft));
|
|
9302
10875
|
const lanes = [];
|
|
@@ -9365,7 +10938,7 @@ function layoutTime(diagram, lang = "ja") {
|
|
|
9365
10938
|
const strip2 = layoutStrip(diagram, margin, axisBottom + gap, width - margin * 2);
|
|
9366
10939
|
if (strip2) layout.strip = strip2;
|
|
9367
10940
|
layout.height = (strip2 ? strip2.y + strip2.h : axisBottom) + margin;
|
|
9368
|
-
layout.badges =
|
|
10941
|
+
layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
|
|
9369
10942
|
return layout;
|
|
9370
10943
|
}
|
|
9371
10944
|
function wire(event2, zoom) {
|
|
@@ -9407,7 +10980,7 @@ function seat(edge2, from, to, rooms) {
|
|
|
9407
10980
|
if (arrive.settle) edge2.settle = arrive.settle;
|
|
9408
10981
|
if (leave.wait) edge2.wait = leave.wait;
|
|
9409
10982
|
}
|
|
9410
|
-
function
|
|
10983
|
+
function badgesOf3(diagram, layout, needle) {
|
|
9411
10984
|
const { r, inset } = LOOK.badge;
|
|
9412
10985
|
const { axis } = layout;
|
|
9413
10986
|
const taken = [];
|
|
@@ -9700,7 +11273,7 @@ function layoutTree(diagram) {
|
|
|
9700
11273
|
links,
|
|
9701
11274
|
runs
|
|
9702
11275
|
};
|
|
9703
|
-
layout.badges =
|
|
11276
|
+
layout.badges = badgesOf4(diagram, layout);
|
|
9704
11277
|
layout.labels = labelsOf3(diagram, layout);
|
|
9705
11278
|
const cards = nodes.flatMap((n) => n.card ? [n.card] : []);
|
|
9706
11279
|
const solids = [...nodes, ...cards, ...boxes, ...layout.labels];
|
|
@@ -9712,10 +11285,10 @@ function layoutTree(diagram) {
|
|
|
9712
11285
|
layout.width = width;
|
|
9713
11286
|
layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
|
|
9714
11287
|
if (strip2) layout.strip = strip2;
|
|
9715
|
-
layout.badges =
|
|
11288
|
+
layout.badges = badgesOf4(diagram, layout);
|
|
9716
11289
|
return layout;
|
|
9717
11290
|
}
|
|
9718
|
-
function
|
|
11291
|
+
function badgesOf4(diagram, layout) {
|
|
9719
11292
|
const { r, inset } = LOOK.badge;
|
|
9720
11293
|
const apart = r * 2 + inset;
|
|
9721
11294
|
const taken = [];
|
|
@@ -9806,6 +11379,7 @@ function labelsOf3(diagram, layout) {
|
|
|
9806
11379
|
}
|
|
9807
11380
|
|
|
9808
11381
|
// src/timeline.ts
|
|
11382
|
+
var LINEUP_LENGTH = { line: MOTION.lineup.slide, seal: MOTION.lineup.seal, open: MOTION.fade, pick: MOTION.fade, stamp: MOTION.popFade };
|
|
9809
11383
|
function plan(step, needle) {
|
|
9810
11384
|
const out = { edges: [], events: [], busy: 0 };
|
|
9811
11385
|
let cursor = MOTION.edgeAt;
|
|
@@ -9846,6 +11420,16 @@ function plan(step, needle) {
|
|
|
9846
11420
|
return;
|
|
9847
11421
|
}
|
|
9848
11422
|
if (event2.type === "now" || needle && pulled(event2)) return;
|
|
11423
|
+
if (event2.type === "line" || event2.type === "seal" || event2.type === "open" || event2.type === "pick" || event2.type === "stamp") {
|
|
11424
|
+
const a = cursor;
|
|
11425
|
+
const b = a + LINEUP_LENGTH[event2.type];
|
|
11426
|
+
out.edges.push({ event: e, a, b, carries: false, coin: false, named: false });
|
|
11427
|
+
cursor = a + MOTION.lineup.stagger;
|
|
11428
|
+
arrived = b;
|
|
11429
|
+
changes = 0;
|
|
11430
|
+
out.busy = Math.max(out.busy, b);
|
|
11431
|
+
return;
|
|
11432
|
+
}
|
|
9849
11433
|
if (event2.type === "commit" || event2.type === "branch" || event2.type === "leaf" || event2.type === "node") {
|
|
9850
11434
|
const a = cursor;
|
|
9851
11435
|
const b = a + MOTION.draw;
|
|
@@ -10178,14 +11762,16 @@ function band(region, ink) {
|
|
|
10178
11762
|
const mark = region.icon && ICONS[region.icon] ? `<rect class="dg-bi" x="${r1(x)}" y="${r1(y)}" width="${icon}" height="${icon}" rx="${iconRadius}"/>${glyph(region.icon, x + icon / 2, y + icon / 2, iconScale)}` : "";
|
|
10179
11763
|
return `<g style="${cs(region.color)}"><rect class="dg-band" x="${r1(region.x + 0.5)}" y="${r1(region.y + 0.5)}" width="${r1(region.w - 1)}" height="${r1(region.h - 1)}" rx="${radius}"/>${mark}${lines}${note}</g>`;
|
|
10180
11764
|
}
|
|
10181
|
-
function subLines(box, m, changes, y, ink) {
|
|
11765
|
+
function subLines(box, m, changes, y, ink, right) {
|
|
10182
11766
|
const seq = [[0, box.sub ?? "", "dg-ss"], ...changes];
|
|
10183
11767
|
return seq.map(([t, text2, cls], k) => {
|
|
10184
11768
|
const next = seq[k + 1]?.[0];
|
|
10185
11769
|
const anim = k === 0 ? next === void 0 ? "" : m.until(next - MOTION.untilFade) : next === void 0 ? m.rise(t) : m.rise(t, next - MOTION.untilFade);
|
|
10186
11770
|
if (text2 === "") return "";
|
|
10187
11771
|
const shown2 = [[k === 0 ? 0 : t, next === void 0 ? Number.POSITIVE_INFINITY : next - MOTION.untilFade]];
|
|
10188
|
-
|
|
11772
|
+
const style = cls === "dg-ss" ? TYPE.boxSub : TYPE.boxSubStrong;
|
|
11773
|
+
const drawn = right === void 0 ? write(ink, cls, box.cx, y, text2, style, shown2, "middle") : write(ink, cls, right - textWidth(text2, style), y, text2, style, shown2);
|
|
11774
|
+
return `<g${anim ? ` class="dg-a" style="${anim}"` : ""}>${drawn}</g>`;
|
|
10189
11775
|
}).join("");
|
|
10190
11776
|
}
|
|
10191
11777
|
function cardFrame(box, ctx, act, y, h) {
|
|
@@ -10253,9 +11839,9 @@ function endMark(e, color, ink) {
|
|
|
10253
11839
|
function lifeline(x, y1, y2) {
|
|
10254
11840
|
return `<line class="dg-ll" x1="${r1(x)}" y1="${r1(y1)}" x2="${r1(x)}" y2="${r1(y2)}"/>`;
|
|
10255
11841
|
}
|
|
10256
|
-
function edge(e, time, ctx, past = false) {
|
|
11842
|
+
function edge(e, time, ctx, past = false, since = 0) {
|
|
10257
11843
|
const { m } = ctx;
|
|
10258
|
-
ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: ALWAYS });
|
|
11844
|
+
ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: since > 0 ? [[since, Number.POSITIVE_INFINITY]] : ALWAYS });
|
|
10259
11845
|
const d = pathOf(e.points);
|
|
10260
11846
|
const head = arrowHead(e.points);
|
|
10261
11847
|
const { start: a, drawn: b, end } = time;
|
|
@@ -10291,8 +11877,9 @@ function edge(e, time, ctx, past = false) {
|
|
|
10291
11877
|
[m.total, { opacity: 0, "stroke-dashoffset": run }]
|
|
10292
11878
|
]);
|
|
10293
11879
|
const grey = past ? m.kf([[0, { opacity: 0 }], [end, { opacity: 0 }, EASE.inOut], [end + 0.4, { opacity: 1 }], [m.last, { opacity: 1 }, EASE.inOut], [m.total, { opacity: 0 }]]) : "";
|
|
11880
|
+
const path2 = `<path class="dg-e" d="${d}"/><path class="dg-eh" d="${head}"/>`;
|
|
10294
11881
|
return {
|
|
10295
|
-
base: `<
|
|
11882
|
+
base: `${since > 0 ? `<g class="dg-a" style="${m.vis(since)}">${path2}</g>` : path2}${past ? `<path class="dg-e-past dg-a" d="${d}" style="${grey}"/><path class="dg-eh-past dg-a" d="${head}" style="${grey}"/>` : ""}`,
|
|
10296
11883
|
lit: `<g style="${cs(e.color)}"><path class="dg-e-on dg-a" pathLength="1" d="${d}" style="${line2}"/><path class="dg-eh-on dg-a" d="${head}" style="${hk}"/><path class="dg-flow dg-a" d="${d}" style="${flow}"/></g>`
|
|
10297
11884
|
};
|
|
10298
11885
|
}
|
|
@@ -10587,8 +12174,133 @@ function tagMotion(ref, list2, timeOf, ctx) {
|
|
|
10587
12174
|
return `<g class="dg-a" data-ref="${esc(ref)}" style="${style}">${tagShape(ref, ctx.sh)}</g>`;
|
|
10588
12175
|
}
|
|
10589
12176
|
|
|
10590
|
-
// src/render/
|
|
12177
|
+
// src/render/lineup.ts
|
|
10591
12178
|
var r13 = (v) => Math.round(v * 100) / 100;
|
|
12179
|
+
var place = (dx, dy, scale = 1) => `translate(${r13(dx)}px,${r13(dy)}px) scale(${scale})`;
|
|
12180
|
+
var without = (span, holes) => holes.reduce((rest, [x, y]) => rest.flatMap(([a, b]) => y <= a || x >= b ? [[a, b]] : [...a < x ? [[a, x]] : [], ...y < b ? [[y, b]] : []]), [span]);
|
|
12181
|
+
function drawLineup(layout, diagram, timeline, ctx, subs) {
|
|
12182
|
+
const { m } = ctx;
|
|
12183
|
+
const N = LOOK.lineup;
|
|
12184
|
+
const cut = MOTION.lineup.cut;
|
|
12185
|
+
const timeOf = (at) => timeline.edges.find((t) => t.step === at.step && t.event === at.event) ?? { start: 0, drawn: 0 };
|
|
12186
|
+
const items = new Map((diagram.lineup?.items ?? []).map((item) => [item.id, item]));
|
|
12187
|
+
const turns = new Map(layout.lanes.map((lane) => [lane.id, []]));
|
|
12188
|
+
const faint = /* @__PURE__ */ new Set();
|
|
12189
|
+
const turn = (id, at, to) => {
|
|
12190
|
+
if (faint.has(id) === to) return;
|
|
12191
|
+
if (to) faint.add(id);
|
|
12192
|
+
else faint.delete(id);
|
|
12193
|
+
turns.get(id)?.push([at, to]);
|
|
12194
|
+
};
|
|
12195
|
+
for (const time of [...timeline.edges].sort((a, b) => a.start - b.start)) {
|
|
12196
|
+
const e = diagram.steps[time.step]?.events[time.event];
|
|
12197
|
+
if (e?.type === "line") turn(e.box, time.start, false);
|
|
12198
|
+
if (e?.type === "pick") for (const lane of layout.lanes) turn(lane.id, time.start, lane.id !== e.box);
|
|
12199
|
+
}
|
|
12200
|
+
const fadeOf = (id) => {
|
|
12201
|
+
const list2 = turns.get(id) ?? [];
|
|
12202
|
+
if (list2.length === 0) return void 0;
|
|
12203
|
+
const frames = [[0, { opacity: 1 }]];
|
|
12204
|
+
let now = 1;
|
|
12205
|
+
for (const [t, to] of list2) {
|
|
12206
|
+
const next = to ? N.faint : 1;
|
|
12207
|
+
frames.push([t, { opacity: now }, EASE.inOut], [t + MOTION.fade, { opacity: next }]);
|
|
12208
|
+
now = next;
|
|
12209
|
+
}
|
|
12210
|
+
frames.push([m.last, { opacity: now }, EASE.inOut], [m.total, { opacity: 1 }]);
|
|
12211
|
+
return m.kf(frames);
|
|
12212
|
+
};
|
|
12213
|
+
const closedOf = (seal) => [timeOf(seal).drawn, seal.until ? timeOf(seal.until).start : Number.POSITIVE_INFINITY];
|
|
12214
|
+
const hideOf = (seals) => {
|
|
12215
|
+
if (seals.length === 0) return void 0;
|
|
12216
|
+
const frames = [[0, { opacity: 1 }]];
|
|
12217
|
+
for (const seal of seals) {
|
|
12218
|
+
const [a, b] = closedOf(seal);
|
|
12219
|
+
frames.push([a, { opacity: 1 }], [a + cut, { opacity: 0 }]);
|
|
12220
|
+
if (seal.until) frames.push([b, { opacity: 0 }], [b + cut, { opacity: 1 }]);
|
|
12221
|
+
}
|
|
12222
|
+
frames.push([m.total - cut, { opacity: seals.at(-1)?.until ? 1 : 0 }], [m.total, { opacity: 1 }]);
|
|
12223
|
+
return m.kf(frames);
|
|
12224
|
+
};
|
|
12225
|
+
const sealKf = (seal) => {
|
|
12226
|
+
const { start, drawn } = timeOf(seal);
|
|
12227
|
+
const none = { opacity: 0, transform: "scaleX(0)" };
|
|
12228
|
+
const end = seal.until ? [
|
|
12229
|
+
[timeOf(seal.until).start, { opacity: 1 }, EASE.inOut],
|
|
12230
|
+
[timeOf(seal.until).start + MOTION.fade, { opacity: 0 }],
|
|
12231
|
+
[m.total, { opacity: 0 }]
|
|
12232
|
+
] : [
|
|
12233
|
+
[m.last, { opacity: 1 }, EASE.inOut],
|
|
12234
|
+
[m.total, { opacity: 0 }]
|
|
12235
|
+
];
|
|
12236
|
+
return m.kf([[0, none], [start - cut, none], [start, { opacity: 1, transform: "scaleX(0)" }, EASE.inOut], [drawn, { transform: "scaleX(1)" }], ...end]);
|
|
12237
|
+
};
|
|
12238
|
+
const leaving = (c) => {
|
|
12239
|
+
if (!c.until) return void 0;
|
|
12240
|
+
const until = c.until;
|
|
12241
|
+
const next = layout.chips.find((n) => n !== c && n.id === c.id && n.step === until.step && n.from?.[0] === c.x && n.from?.[1] === c.y);
|
|
12242
|
+
return next ? { at: timeOf(next).start, moved: true } : { at: timeOf(until).start, moved: false };
|
|
12243
|
+
};
|
|
12244
|
+
const chipKf = (c) => {
|
|
12245
|
+
const a = timeOf(c).start;
|
|
12246
|
+
const rest = place(0, 0);
|
|
12247
|
+
const frames = [];
|
|
12248
|
+
if (c.from) {
|
|
12249
|
+
const off = place(c.from[0] - c.x, c.from[1] - c.y);
|
|
12250
|
+
frames.push([0, { opacity: 0, transform: off }], [a - cut, { opacity: 0, transform: off }], [a, { opacity: 1, transform: off }, EASE.inOut], [a + MOTION.lineup.slide, { transform: rest }]);
|
|
12251
|
+
} else {
|
|
12252
|
+
const off = place(0, 0, LOOK.popFrom);
|
|
12253
|
+
frames.push([0, { opacity: 0, transform: off }], [a, { opacity: 0, transform: off }, EASE.pop], [a + MOTION.popFade, { opacity: 1, transform: rest }]);
|
|
12254
|
+
}
|
|
12255
|
+
const leaves = leaving(c);
|
|
12256
|
+
if (leaves) {
|
|
12257
|
+
frames.push([leaves.at, { opacity: 1 }, EASE.inOut], [leaves.at + (leaves.moved ? cut : MOTION.fade), { opacity: 0 }], [m.total, { opacity: 0 }]);
|
|
12258
|
+
} else {
|
|
12259
|
+
frames.push([m.last, { opacity: 1 }, EASE.inOut], [m.total, { opacity: 0 }]);
|
|
12260
|
+
}
|
|
12261
|
+
return m.kf(frames);
|
|
12262
|
+
};
|
|
12263
|
+
const chip = (c, closed) => {
|
|
12264
|
+
const item = items.get(c.id);
|
|
12265
|
+
const color = item?.color;
|
|
12266
|
+
const rect = `<rect class="${color ? "dg-ln-chip" : "dg-ln-plain"}" x="${r13(c.x)}" y="${r13(c.y)}" width="${r13(c.w)}" height="${c.h}" rx="${N.chip.radius}"/>`;
|
|
12267
|
+
const shown2 = without([timeOf(c).start + MOTION.lineup.slide, leaving(c)?.at ?? Number.POSITIVE_INFINITY], closed);
|
|
12268
|
+
const text2 = item?.label === void 0 ? "" : write(ctx.ink, color ? "dg-ln-t" : "dg-ln-tp", c.x + c.w / 2, c.y + c.h / 2 + LOOK.baseline.tag, item.label, TYPE.chip, shown2, "middle");
|
|
12269
|
+
return `<g class="dg-popc dg-a" data-lineup-chip="${esc(c.id)}" data-lineup-on="${esc(c.lane)}" data-lineup-seat="${c.index}" style="${color ? `${cs(color)};` : ""}${chipKf(c)}">${rect}${text2}</g>`;
|
|
12270
|
+
};
|
|
12271
|
+
const ring = (pick, next, frame) => `<g class="dg-a" data-lineup-ring="${esc(pick.lane)}" style="${m.vis(timeOf(pick).start, next ? timeOf(next).start : m.last)}">${frame}</g>`;
|
|
12272
|
+
const faded = new Map(layout.lanes.map((lane) => [lane.id, fadeOf(lane.id)]));
|
|
12273
|
+
const lanes = layout.lanes.map((lane) => {
|
|
12274
|
+
const rect = (cls, extra = "") => `<rect class="${cls}" x="${r13(lane.x)}" y="${r13(lane.y)}" width="${r13(lane.w)}" height="${lane.h}" rx="${N.radius}"${extra}/>`;
|
|
12275
|
+
const rings = layout.picks.flatMap((pick, k) => pick.lane === lane.id ? [ring(pick, layout.picks[k + 1], `${rect("dg-halo")}${rect("dg-on")}`)] : []).join("");
|
|
12276
|
+
const notes = subLines(lane, m, subs.get(lane.id) ?? [], lane.title.baseline, ctx.ink, lane.noteRight);
|
|
12277
|
+
const fade = faded.get(lane.id);
|
|
12278
|
+
return `<g${fade ? ' class="dg-a"' : ""} data-lineup-lane="${esc(lane.id)}" style="${cs(lane.color)}${fade ? `;${fade}` : ""}">${rect("dg-st", ` ${ctx.sh}`)}${rings}${write(ctx.ink, "dg-sn", lane.title.x, lane.title.baseline, lane.name, TYPE.boxName, ALWAYS)}${notes}</g>`;
|
|
12279
|
+
}).join("");
|
|
12280
|
+
const stripes = N.seal.stripe;
|
|
12281
|
+
const pattern = `<defs><pattern id="dg-seal-${ctx.id}" patternUnits="userSpaceOnUse" width="${stripes * 2}" height="${stripes * 2}" patternTransform="rotate(45)"><rect class="dg-ln-sl" width="${stripes * 2}" height="${stripes * 2}"/><rect class="dg-ln-sd" width="${stripes}" height="${stripes * 2}"/></pattern></defs>`;
|
|
12282
|
+
const chips = layout.lanes.map((lane) => {
|
|
12283
|
+
const seals = layout.seals.filter((s) => s.lane === lane.id);
|
|
12284
|
+
const closed = seals.map(closedOf);
|
|
12285
|
+
const seats = layout.chips.filter((c) => c.lane === lane.id).map((c) => chip(c, closed)).join("");
|
|
12286
|
+
const hide = hideOf(seals);
|
|
12287
|
+
const track = `<g${hide ? ' class="dg-a"' : ""} data-lineup-track="${esc(lane.id)}"${hide ? ` style="${hide}"` : ""}>${seats}</g>`;
|
|
12288
|
+
const covers = seals.map((s) => `<rect class="dg-ln-seal dg-a" data-lineup-seal="${esc(lane.id)}" x="${r13(s.x)}" y="${r13(s.y)}" width="${r13(s.w)}" height="${r13(s.h)}" rx="${N.seal.radius}" fill="url(#dg-seal-${ctx.id})" style="${sealKf(s)}"/>`).join("");
|
|
12289
|
+
const stamps = layout.stamps.filter((s) => s.lane === lane.id).map((s) => {
|
|
12290
|
+
const at = timeOf(s).start;
|
|
12291
|
+
const cx = s.x + s.w / 2;
|
|
12292
|
+
const cy = s.y + s.h / 2;
|
|
12293
|
+
const text2 = write(ctx.ink, "dg-ln-st", cx, cy + LOOK.baseline.tag, s.text, TYPE.stamp, [[at, Number.POSITIVE_INFINITY]], "middle");
|
|
12294
|
+
return `<g class="dg-popc dg-a" data-lineup-stamp="${esc(lane.id)}" style="${cs(N.stamp.color)};${m.pop(at)}"><g transform="rotate(${N.stamp.tilt} ${r13(cx)} ${r13(cy)})"><rect class="dg-ln-stamp" x="${r13(s.x)}" y="${r13(s.y)}" width="${r13(s.w)}" height="${s.h}" rx="${N.stamp.radius}"/>${text2}</g></g>`;
|
|
12295
|
+
}).join("");
|
|
12296
|
+
const fade = faded.get(lane.id);
|
|
12297
|
+
return `<g${fade ? ` class="dg-a" style="${fade}"` : ""}>${track}${covers}${stamps}</g>`;
|
|
12298
|
+
}).join("");
|
|
12299
|
+
return { lanes, chips: `${pattern}${chips}` };
|
|
12300
|
+
}
|
|
12301
|
+
|
|
12302
|
+
// src/render/time.ts
|
|
12303
|
+
var r14 = (v) => Math.round(v * 100) / 100;
|
|
10592
12304
|
var ja3 = (cls, text2) => hasWide(text2) ? `${cls} ${cls}j` : cls;
|
|
10593
12305
|
var sansOf = (t) => ({ ...t, family: "sans" });
|
|
10594
12306
|
function simplify(keys2) {
|
|
@@ -10639,18 +12351,18 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10639
12351
|
const times = [passed.get(u), box ? arrivals.get(box) : void 0].filter((t) => t !== void 0);
|
|
10640
12352
|
return times.length > 0 ? Math.min(...times) : void 0;
|
|
10641
12353
|
};
|
|
10642
|
-
for (const p of layout.periods) if (p.index % 2 === 1) base.push(`<rect class="dg-tm-ep" x="${
|
|
12354
|
+
for (const p of layout.periods) if (p.index % 2 === 1) base.push(`<rect class="dg-tm-ep" x="${r14(p.x)}" y="${r14(rowsTop - T.shade)}" width="${r14(p.w)}" height="${r14(rowsBottom - rowsTop + T.shade * 2)}" rx="4"/>`);
|
|
10643
12355
|
if (layout.zoom) {
|
|
10644
12356
|
const z = layout.zoom;
|
|
10645
12357
|
z.columns.forEach((c, k) => {
|
|
10646
|
-
if (k > 0) base.push(`<line class="dg-tm-sep" x1="${
|
|
12358
|
+
if (k > 0) base.push(`<line class="dg-tm-sep" x1="${r14(c.x)}" y1="${r14(c.y + T.sep)}" x2="${r14(c.x)}" y2="${r14(c.y + c.h - T.sep)}"/>`);
|
|
10647
12359
|
base.push(write(ink, ja3("dg-tm-hd", c.head), c.x + c.w / 2, z.headY, c.head, TYPE.timeHead, ALWAYS, "middle"));
|
|
10648
12360
|
for (const box of c.boxes) node.push(columnBox(box, c.unit));
|
|
10649
12361
|
});
|
|
10650
12362
|
}
|
|
10651
12363
|
function columnBox(box, unit) {
|
|
10652
12364
|
const on = [...new Set(layout.wires.filter((w) => w.from === box || w.to === box).map((w) => w.step))].sort((a, b) => a - b);
|
|
10653
|
-
const frame = (cls) => `<rect class="${cls}" x="${
|
|
12365
|
+
const frame = (cls) => `<rect class="${cls}" x="${r14(box.x)}" y="${r14(box.y)}" width="${r14(box.w)}" height="${box.h}" rx="${LOOK.box.radius}"/>`;
|
|
10654
12366
|
if (box.empty) {
|
|
10655
12367
|
const shown3 = passed.get(unit);
|
|
10656
12368
|
const word = layout.zoom?.empty ?? "";
|
|
@@ -10666,11 +12378,11 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10666
12378
|
for (const row of layout.rows) {
|
|
10667
12379
|
const parts = [];
|
|
10668
12380
|
for (const mark of layout.marks.filter((x2) => x2.row === row.id)) {
|
|
10669
|
-
const rect = (cls, extra = "") => `<rect class="${cls}" x="${
|
|
12381
|
+
const rect = (cls, extra = "") => `<rect class="${cls}" x="${r14(mark.x)}" y="${r14(mark.y)}" width="${r14(mark.w)}" height="${r14(mark.h)}" rx="${T.markRadius}"${extra}/>`;
|
|
10670
12382
|
parts.push(rect("dg-tm-slot"));
|
|
10671
12383
|
if (mark.empty) {
|
|
10672
12384
|
const shown3 = passed.get(mark.unit);
|
|
10673
|
-
if (shown3 !== void 0) parts.push(`<circle class="dg-tm-x dg-a" cx="${
|
|
12385
|
+
if (shown3 !== void 0) parts.push(`<circle class="dg-tm-x dg-a" cx="${r14(mark.x + mark.w / 2)}" cy="${r14(mark.y + mark.h / 2)}" r="${T.emptyR}" style="${m.vis(shown3, m.last, { f: 0.2 })}"/>`);
|
|
10674
12386
|
continue;
|
|
10675
12387
|
}
|
|
10676
12388
|
const shown2 = filled(row.id, mark.unit);
|
|
@@ -10690,13 +12402,13 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10690
12402
|
const z = layout.zoom;
|
|
10691
12403
|
const hide = layout.spans.filter((s) => s.kind === "box" && s.from <= z.to && z.from <= s.to).map((s) => at(s.step, s.event)).filter((t) => t !== void 0).sort((a, b) => a - b)[0];
|
|
10692
12404
|
const guides = z.guides.map((g) => `<path class="dg-tm-gd" d="${pathOf(g)}"/>`).join("");
|
|
10693
|
-
const lens = `<rect class="dg-tm-fr" x="${
|
|
12405
|
+
const lens = `<rect class="dg-tm-fr" x="${r14(z.frame.x)}" y="${r14(z.frame.y)}" width="${r14(z.frame.w)}" height="${r14(z.frame.h)}" rx="4"/>${guides}`;
|
|
10694
12406
|
base.push(hide === void 0 ? lens : `<g class="dg-a" style="${m.until(hide)}">${lens}</g>`);
|
|
10695
12407
|
}
|
|
10696
|
-
const x = (u) =>
|
|
10697
|
-
const majors = layout.ticks.map((t) => `M ${x(t.at)} ${
|
|
10698
|
-
const minors = layout.minor.map((u) => `M ${x(u)} ${
|
|
10699
|
-
base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${
|
|
12408
|
+
const x = (u) => r14(axis.x + u * axis.unit);
|
|
12409
|
+
const majors = layout.ticks.map((t) => `M ${x(t.at)} ${r14(axis.line - T.major / 2)} V ${r14(axis.line + T.major / 2)}`);
|
|
12410
|
+
const minors = layout.minor.map((u) => `M ${x(u)} ${r14(axis.line - T.minor / 2)} V ${r14(axis.line + T.minor / 2)}`);
|
|
12411
|
+
base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${r14(axis.line)} H ${x(axis.count)} ${[...majors, ...minors].join(" ")}"/>`);
|
|
10700
12412
|
for (const t of layout.ticks) base.push(write(ink, ja3("dg-tm-tk", t.text), t.left, t.y, t.text, TYPE.timeTick));
|
|
10701
12413
|
for (const p of layout.periods) {
|
|
10702
12414
|
base.push(write(ink, ja3("dg-tm-en", p.name), p.x + p.w / 2, p.nameY, p.name, TYPE.timePeriod, ALWAYS, "middle"));
|
|
@@ -10709,16 +12421,16 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10709
12421
|
const shown2 = [[a, until ?? Number.POSITIVE_INFINITY]];
|
|
10710
12422
|
const vis = until === void 0 ? m.vis(a) : m.vis(a, until, { within: true });
|
|
10711
12423
|
if (span.kind === "bracket") {
|
|
10712
|
-
const [x0, x1, y0, y12] = [
|
|
12424
|
+
const [x0, x1, y0, y12] = [r14(span.x + 1), r14(span.x + span.w - 1), r14(span.y), r14(span.y + span.h)];
|
|
10713
12425
|
const words = write(ink, ja3("dg-tm-bt", span.text), span.textRect.x + span.textRect.w / 2, span.textY, span.text, TYPE.spanText, shown2, "middle");
|
|
10714
12426
|
base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><path class="dg-tm-br" d="M ${x0} ${y0} L ${x0} ${y12} L ${x1} ${y12} L ${x1} ${y0}"/>${words}</g>`);
|
|
10715
12427
|
continue;
|
|
10716
12428
|
}
|
|
10717
|
-
base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><rect class="dg-tm-bx" x="${
|
|
12429
|
+
base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><rect class="dg-tm-bx" x="${r14(span.x)}" y="${r14(span.y)}" width="${r14(span.w)}" height="${r14(span.h)}" rx="6"/></g>`);
|
|
10718
12430
|
const tag = span.textRect;
|
|
10719
12431
|
ink.push({ text: span.text, rect: tag, shown: shown2, boxed: true });
|
|
10720
12432
|
top.push(
|
|
10721
|
-
`<g class="dg-tg dg-popc dg-a" style="${cs(span.color)};${until === void 0 ? m.pop(a) : m.pop(a, until)}"><rect x="${
|
|
12433
|
+
`<g class="dg-tg dg-popc dg-a" style="${cs(span.color)};${until === void 0 ? m.pop(a) : m.pop(a, until)}"><rect x="${r14(tag.x)}" y="${r14(tag.y)}" width="${r14(tag.w)}" height="${tag.h}" rx="${tag.h / 2}"/><text x="${r14(tag.x + tag.w / 2)}" y="${r14(span.textY)}" text-anchor="middle">${esc(span.text)}</text></g>`
|
|
10722
12434
|
);
|
|
10723
12435
|
}
|
|
10724
12436
|
const P = T.point;
|
|
@@ -10726,7 +12438,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10726
12438
|
const { cx, cy, r } = point;
|
|
10727
12439
|
const times = point.changes.map((c) => at(c.step, c.event) ?? Number.POSITIVE_INFINITY);
|
|
10728
12440
|
const first = times[0];
|
|
10729
|
-
base.push(`<path class="dg-tm-con" d="M ${
|
|
12441
|
+
base.push(`<path class="dg-tm-con" d="M ${r14(cx)} ${r14(rowsBottom + 3)} L ${r14(cx)} ${r14(cy - r - 2)}"/>`);
|
|
10730
12442
|
const tx = point.text.x;
|
|
10731
12443
|
const name2 = write(ink, ja3("dg-tm-pn", point.id), tx, cy + P.nameY, point.id, TYPE.pointName);
|
|
10732
12444
|
const grey = name2.replace(/class="([^"]*)"/u, 'class="$1 dg-tm-pn-g"');
|
|
@@ -10742,9 +12454,9 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10742
12454
|
const rings = point.changes.map((c, k) => {
|
|
10743
12455
|
const t = times[k];
|
|
10744
12456
|
if (!c.color || !Number.isFinite(t)) return "";
|
|
10745
|
-
return `<g class="dg-popc dg-a" style="${cs(c.color)};${m.pop(t)}"><circle class="dg-tm-pc" cx="${
|
|
12457
|
+
return `<g class="dg-popc dg-a" style="${cs(c.color)};${m.pop(t)}"><circle class="dg-tm-pc" cx="${r14(cx)}" cy="${r14(cy)}" r="${r + 0.5}"/>${glyph("flag", cx, cy, P.glyph, "dg-tm-pcg")}</g>`;
|
|
10746
12458
|
}).join("");
|
|
10747
|
-
node.push(`<g data-point="${esc(point.id)}"><circle class="dg-tm-pg" cx="${
|
|
12459
|
+
node.push(`<g data-point="${esc(point.id)}"><circle class="dg-tm-pg" cx="${r14(cx)}" cy="${r14(cy)}" r="${r}"/>${glyph("flag", cx, cy, P.glyph, "dg-tm-pgl")}${rings}${label2}${states}</g>`);
|
|
10748
12460
|
}
|
|
10749
12461
|
const wired = new Set(layout.wires.map((w) => `${w.step}/${w.event}`));
|
|
10750
12462
|
for (const e of layout.edges) {
|
|
@@ -10776,7 +12488,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10776
12488
|
const { y1, y2 } = layout.needle;
|
|
10777
12489
|
const N = T.needle;
|
|
10778
12490
|
top.push(
|
|
10779
|
-
`<g class="dg-a" data-needle="" style="${m.move(path2)}"><line class="dg-tm-nd" x1="0" y1="${
|
|
12491
|
+
`<g class="dg-a" data-needle="" style="${m.move(path2)}"><line class="dg-tm-nd" x1="0" y1="${r14(y1)}" x2="0" y2="${r14(y2)}"/><path class="dg-tm-nh" d="M ${ -6 * 0.75} ${r14(y1 - N.head)} L ${N.head * 0.75} ${r14(y1 - N.head)} L 0 ${r14(y1)} Z"/><circle class="dg-tm-nh" cy="${r14(axis.line)}" r="${N.dot}"/></g>`
|
|
10780
12492
|
);
|
|
10781
12493
|
return { base: base.join(""), lit: lit.join(""), node: node.join(""), top: top.join("") };
|
|
10782
12494
|
}
|
|
@@ -10786,12 +12498,12 @@ function meterField(field2, keys2, ctx) {
|
|
|
10786
12498
|
const { x, w, line: line2, text: text2 } = field2.meter;
|
|
10787
12499
|
const y = field2.y + M.y;
|
|
10788
12500
|
const kf = m.kf([
|
|
10789
|
-
...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${
|
|
10790
|
-
[m.last, { transform: `scaleX(${
|
|
12501
|
+
...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${r14(v * 1e3) / 1e3})` }]),
|
|
12502
|
+
[m.last, { transform: `scaleX(${r14(valueAt(keys2, m.last) * 1e3) / 1e3})` }, EASE.inOut],
|
|
10791
12503
|
[m.total, { transform: "scaleX(0)" }]
|
|
10792
12504
|
]);
|
|
10793
12505
|
const lx = x + w * line2;
|
|
10794
|
-
return `<rect class="dg-tm-mt" x="${
|
|
12506
|
+
return `<rect class="dg-tm-mt" x="${r14(x)}" y="${r14(y)}" width="${r14(w)}" height="${M.h}" rx="${M.h / 2}"/><rect class="dg-tm-mf dg-a" x="${r14(x)}" y="${r14(y)}" width="${r14(w)}" height="${M.h}" rx="${M.h / 2}" style="${cs(M.color)};${kf}"/><line class="dg-tm-mk" x1="${r14(lx)}" y1="${r14(y - M.mark)}" x2="${r14(lx)}" y2="${r14(y + M.h + M.mark)}"/>` + write(ctx.ink, "dg-tm-ml", lx, field2.y + M.textY, text2, TYPE.meterLine, ALWAYS, "middle");
|
|
10795
12507
|
}
|
|
10796
12508
|
function timeFocus(layout, timeline, step, parts, vw, vh) {
|
|
10797
12509
|
const span = timeline.steps[step];
|
|
@@ -10813,7 +12525,7 @@ function timeFocus(layout, timeline, step, parts, vw, vh) {
|
|
|
10813
12525
|
}
|
|
10814
12526
|
|
|
10815
12527
|
// src/render/tree.ts
|
|
10816
|
-
var
|
|
12528
|
+
var r15 = (v) => Math.round(v * 100) / 100;
|
|
10817
12529
|
function drawTree(layout, diagram, timeline, ctx) {
|
|
10818
12530
|
const { m } = ctx;
|
|
10819
12531
|
const T = LOOK.tree;
|
|
@@ -10872,7 +12584,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
10872
12584
|
const ties = layout.nodes.flatMap((n) => {
|
|
10873
12585
|
if (!n.card) return [];
|
|
10874
12586
|
const at = drawnAt.get(n.id) ?? 0;
|
|
10875
|
-
const d = `M ${
|
|
12587
|
+
const d = `M ${r15(n.cx)} ${r15(n.y + n.h + LOOK.edge.inset)} V ${r15(n.card.y - LOOK.edge.inset)}`;
|
|
10876
12588
|
return [faded(n.id, `<path class="dg-tree-con dg-a" d="${d}" style="${m.vis(at)}"/>`)];
|
|
10877
12589
|
}).join("");
|
|
10878
12590
|
const traced = /* @__PURE__ */ new Set();
|
|
@@ -10907,7 +12619,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
10907
12619
|
return [
|
|
10908
12620
|
faded(
|
|
10909
12621
|
n.id,
|
|
10910
|
-
`<rect class="dg-tree-card" x="${
|
|
12622
|
+
`<rect class="dg-tree-card" x="${r15(c.x)}" y="${r15(c.y)}" width="${r15(c.w)}" height="${c.h}" rx="${T.card.radius}"/>${glyph("doc", gx, cy, T.card.glyph, "dg-tree-cg")}${text2}`,
|
|
10911
12623
|
` data-tree-card="${esc(n.id)}"`
|
|
10912
12624
|
)
|
|
10913
12625
|
];
|
|
@@ -10917,10 +12629,10 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
10917
12629
|
const on = [...active.get(n.id) ?? []].sort((x, y) => x - y);
|
|
10918
12630
|
const act = on.length > 0 ? activeKf(ctx, on) : void 0;
|
|
10919
12631
|
const radius = n.root ? T.root.radius : T.radius;
|
|
10920
|
-
const rect = (cls, extra = "") => `<rect class="${cls}" x="${
|
|
12632
|
+
const rect = (cls, extra = "") => `<rect class="${cls}" x="${r15(n.x)}" y="${r15(n.y)}" width="${r15(n.w)}" height="${n.h}" rx="${radius}"${extra}/>`;
|
|
10921
12633
|
const frame = `${act ? `<g class="dg-a" style="${act}">${rect("dg-halo")}</g>` : ""}${rect("dg-st", ` ${ctx.sh}`)}${act ? `<g class="dg-a" style="${act}">${rect("dg-on")}</g>` : ""}`;
|
|
10922
12634
|
const ix = n.x + T.root.iconX + B.icon / 2;
|
|
10923
|
-
const mark = n.root ? `<rect class="dg-ic" x="${
|
|
12635
|
+
const mark = n.root ? `<rect class="dg-ic" x="${r15(ix - B.icon / 2)}" y="${r15(n.cy - B.icon / 2)}" width="${B.icon}" height="${B.icon}" rx="${B.iconRadius}"/>${glyph("tree", ix, n.cy, B.iconScale)}` : "";
|
|
10924
12636
|
const shown2 = [[at, Number.POSITIVE_INFINITY]];
|
|
10925
12637
|
const texts = n.lines.map((line2, k) => {
|
|
10926
12638
|
const style = n.styles[k] ?? TYPE.boxName;
|
|
@@ -10931,7 +12643,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
10931
12643
|
const inner = faded(n.id, `${frame}${mark}${texts}`, ` data-tree-node="${esc(n.id)}"${n.root ? ` data-tree-root="${esc(n.id)}"` : ""}`);
|
|
10932
12644
|
return `<g class="dg-popc dg-a" style="${cs(n.color)};${m.pop(at)}">${inner}</g>`;
|
|
10933
12645
|
}).join("");
|
|
10934
|
-
return { links: links + ties, trails, nodes: cards + nodes };
|
|
12646
|
+
return { links: links + ties, trails, nodes: cards + nodes, appear: drawnAt };
|
|
10935
12647
|
}
|
|
10936
12648
|
|
|
10937
12649
|
// src/render/motion.ts
|
|
@@ -11125,6 +12837,16 @@ var PART_CSS = [
|
|
|
11125
12837
|
`.dg-tree-one{${font(TYPE.boxName)};fill:var(--ink)}`,
|
|
11126
12838
|
`.dg-tree-rh{${font(TYPE.rootHash)};fill:var(--ink)}`,
|
|
11127
12839
|
`.dg-tree-rn{${font(TYPE.rootName)};fill:var(--mute)}`,
|
|
12840
|
+
// 列の図 (#3239)。封は列の左端から右へ伸びる
|
|
12841
|
+
".dg-ln-chip{fill:var(--c)}",
|
|
12842
|
+
`.dg-ln-plain{fill:color-mix(in srgb,var(--mute) ${X.chipPlain}%,var(--surf))}`,
|
|
12843
|
+
`.dg-ln-t{${font(TYPE.chip)};fill:var(--on-c)}`,
|
|
12844
|
+
`.dg-ln-tp{${font(TYPE.chip)};fill:var(--ink)}`,
|
|
12845
|
+
".dg-ln-seal{transform-box:fill-box;transform-origin:0 50%}",
|
|
12846
|
+
`.dg-ln-sd{fill:color-mix(in srgb,var(--mute) ${X.sealDark}%,var(--surf))}`,
|
|
12847
|
+
`.dg-ln-sl{fill:color-mix(in srgb,var(--mute) ${X.sealLight}%,var(--surf))}`,
|
|
12848
|
+
`.dg-ln-stamp{fill:var(--surf);stroke:var(--c);stroke-width:${S.stamp}}`,
|
|
12849
|
+
`.dg-ln-st{${font(TYPE.stamp)};fill:var(--ct)}`,
|
|
11128
12850
|
// 時間軸の図 (#3165)。和文を含む字は、末尾に j を付けた class で同じ大きさと太さの和文の字にする
|
|
11129
12851
|
`.dg-tm-ep{fill:color-mix(in srgb,var(--ink) ${X.timeShade}%,transparent)}`,
|
|
11130
12852
|
`.dg-tm-sep{stroke:var(--hair);stroke-width:${S.hair};stroke-dasharray:2 4}`,
|
|
@@ -11263,7 +12985,7 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
11263
12985
|
const vars = paletteVars(palette, theme);
|
|
11264
12986
|
const id = nameOf(`${JSON.stringify(diagram)}|${vars}|${follow ? `${follow.width}|${follow.lang}` : ""}`);
|
|
11265
12987
|
const m = new Motion(`dg${id}`, timeline.total, timeline.last);
|
|
11266
|
-
const ctx = { m, t: timeline, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
|
|
12988
|
+
const ctx = { m, t: timeline, id, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
|
|
11267
12989
|
const on = involved(diagram);
|
|
11268
12990
|
const subs = subChanges(diagram, timeline, layout.kind !== "sequence");
|
|
11269
12991
|
const L = { band: [], base: [], lit: [], node: [], badge: [], top: [] };
|
|
@@ -11287,13 +13009,19 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
11287
13009
|
L.top.push(git.tags);
|
|
11288
13010
|
}
|
|
11289
13011
|
const treeLayout = isTreeLayout(layout) ? layout : void 0;
|
|
11290
|
-
|
|
11291
|
-
|
|
13012
|
+
const tree = treeLayout ? drawTree(treeLayout, diagram, timeline, ctx) : void 0;
|
|
13013
|
+
if (tree) {
|
|
11292
13014
|
L.base.push(tree.links);
|
|
11293
13015
|
L.lit.push(tree.trails);
|
|
11294
13016
|
L.node.push(tree.nodes);
|
|
11295
13017
|
}
|
|
11296
13018
|
const runs = new Set((treeLayout?.runs ?? []).map((r) => `${r.step}/${r.event}`));
|
|
13019
|
+
const lineupLayout = isLineupLayout(layout) ? layout : void 0;
|
|
13020
|
+
if (lineupLayout) {
|
|
13021
|
+
const lineup = drawLineup(lineupLayout, diagram, timeline, ctx, subs);
|
|
13022
|
+
L.base.push(lineup.lanes);
|
|
13023
|
+
L.node.push(lineup.chips);
|
|
13024
|
+
}
|
|
11297
13025
|
const timeLayout = isTimeLayout(layout) ? layout : void 0;
|
|
11298
13026
|
if (timeLayout) {
|
|
11299
13027
|
const drawn = drawTime(timeLayout, diagram, timeline, ctx, subs);
|
|
@@ -11306,14 +13034,15 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
11306
13034
|
for (const e of layout.edges) {
|
|
11307
13035
|
const time = timeline.edges.find((t) => t.step === e.step && t.event === e.event);
|
|
11308
13036
|
if (!time || timeLayout && !wired.has(`${e.step}/${e.event}`) || runs.has(`${e.step}/${e.event}`)) continue;
|
|
11309
|
-
const
|
|
13037
|
+
const since = Math.max(tree?.appear.get(e.from) ?? 0, tree?.appear.get(e.to) ?? 0);
|
|
13038
|
+
const drawn = edge(e, time, ctx, isState, since);
|
|
11310
13039
|
L.base.push(drawn.base);
|
|
11311
13040
|
L.lit.push(drawn.lit);
|
|
11312
13041
|
}
|
|
11313
13042
|
const states = new Map((timeline.states ?? []).map((s) => [s.box, s]));
|
|
11314
13043
|
const links = new Map(diagram.boxes.flatMap((b) => b.link === void 0 ? [] : [[b.id, b.link]]));
|
|
11315
13044
|
const linked = (id2, markup) => linkTo(links.get(id2), markup);
|
|
11316
|
-
for (const box of timeLayout ? [] : layout.boxes) {
|
|
13045
|
+
for (const box of timeLayout || lineupLayout ? [] : layout.boxes) {
|
|
11317
13046
|
if (box.ghost) {
|
|
11318
13047
|
L.node.push(linked(box.id, ghostCard(box, ink)));
|
|
11319
13048
|
continue;
|
|
@@ -11383,6 +13112,10 @@ function focusParts(layout, diagram, step) {
|
|
|
11383
13112
|
rects.push({ x: Math.min(...xs), y: Math.min(...ys), w: Math.max(...xs) - Math.min(...xs), h: Math.max(...ys) - Math.min(...ys) });
|
|
11384
13113
|
}
|
|
11385
13114
|
}
|
|
13115
|
+
if (isLineupLayout(layout)) {
|
|
13116
|
+
const changed = new Set((diagram.steps[step]?.events ?? []).flatMap((e) => "box" in e ? [e.box] : []));
|
|
13117
|
+
rects.push(...layout.lanes.filter((lane) => changed.has(lane.id)));
|
|
13118
|
+
}
|
|
11386
13119
|
for (const event2 of diagram.steps[step]?.events ?? []) {
|
|
11387
13120
|
const ids = event2.type === "edge" ? [event2.from, event2.to] : event2.type === "action" || event2.type === "swap" ? [event2.box] : [];
|
|
11388
13121
|
for (const id of ids) {
|
|
@@ -11482,7 +13215,7 @@ function renderDiagram(input, options = {}) {
|
|
|
11482
13215
|
const read = readDiagram(input, { lang });
|
|
11483
13216
|
if (!read.ok) throw new Error(FIGURE_TEXT[lang].cannotDraw(read.errors.map((e) => `${e.pointer} ${e.message}`).join(" / ")));
|
|
11484
13217
|
const diagram = read.diagram;
|
|
11485
|
-
const layout = diagram.kind === "sequence" ? layoutSequence(diagram) : diagram.kind === "state" ? layoutState(diagram, lang) : diagram.kind === "git" ? layoutGit(diagram) : diagram.kind === "time" ? layoutTime(diagram, lang) : diagram.kind === "tree" ? layoutTree(diagram) : layoutArchitecture(diagram);
|
|
13218
|
+
const layout = diagram.kind === "sequence" ? layoutSequence(diagram) : diagram.kind === "state" ? layoutState(diagram, lang) : diagram.kind === "git" ? layoutGit(diagram) : diagram.kind === "time" ? layoutTime(diagram, lang) : diagram.kind === "tree" ? layoutTree(diagram) : diagram.kind === "lineup" ? layoutLineup(diagram) : layoutArchitecture(diagram);
|
|
11486
13219
|
return renderLayout(diagram, layout, buildTimeline(diagram, options.still === true), options);
|
|
11487
13220
|
}
|
|
11488
13221
|
function renderLayout(diagram, layout, timeline, options = {}) {
|
|
@@ -11697,7 +13430,7 @@ function mountDiagram(host, diagram, options = {}) {
|
|
|
11697
13430
|
}
|
|
11698
13431
|
(svg.querySelector('g[clip-path^="url(#dg-vp-"] > g.dg-a') ?? svg).append(group);
|
|
11699
13432
|
};
|
|
11700
|
-
const
|
|
13433
|
+
const place2 = (markup2) => {
|
|
11701
13434
|
let next;
|
|
11702
13435
|
if (markup2 !== void 0) {
|
|
11703
13436
|
const holder = doc.createElement("div");
|
|
@@ -11740,7 +13473,7 @@ function mountDiagram(host, diagram, options = {}) {
|
|
|
11740
13473
|
const restart = (t, play) => {
|
|
11741
13474
|
at = t;
|
|
11742
13475
|
playing = play;
|
|
11743
|
-
|
|
13476
|
+
place2();
|
|
11744
13477
|
show();
|
|
11745
13478
|
};
|
|
11746
13479
|
const go = (target) => {
|
|
@@ -11755,7 +13488,7 @@ function mountDiagram(host, diagram, options = {}) {
|
|
|
11755
13488
|
}
|
|
11756
13489
|
restart(at, true);
|
|
11757
13490
|
};
|
|
11758
|
-
|
|
13491
|
+
place2(markup());
|
|
11759
13492
|
show();
|
|
11760
13493
|
const timer = win?.setInterval(() => {
|
|
11761
13494
|
if (!playing) return;
|
|
@@ -11793,7 +13526,7 @@ function mountDiagram(host, diagram, options = {}) {
|
|
|
11793
13526
|
width = w;
|
|
11794
13527
|
height = h;
|
|
11795
13528
|
at = t;
|
|
11796
|
-
|
|
13529
|
+
place2(markup());
|
|
11797
13530
|
}) : void 0;
|
|
11798
13531
|
observer?.observe(frame);
|
|
11799
13532
|
return {
|