@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/cli.js
CHANGED
|
@@ -290,6 +290,9 @@ var TYPE = {
|
|
|
290
290
|
rootHash: text(15, 700, "mono"),
|
|
291
291
|
rootName: text(11, 700),
|
|
292
292
|
treeCard: text(11.5, 650),
|
|
293
|
+
/** 列の図 (#3239) の、チップの字と札の字 */
|
|
294
|
+
chip: text(10.5, 700, "mono"),
|
|
295
|
+
stamp: text(11, 700),
|
|
293
296
|
/**
|
|
294
297
|
* 時間軸の図 (#3165)。拡大の帯の列の上の字、印の列の名前、時刻の字、区切りの名前と目盛りの番号の範囲、
|
|
295
298
|
* 節目の名札と状態、範囲の括弧の字、空きの枠の字、物差しの線の字。和文を含む字は同じ大きさと太さの和文の字で描く
|
|
@@ -412,6 +415,26 @@ var LOOK = {
|
|
|
412
415
|
color: "violet",
|
|
413
416
|
rootColor: "green"
|
|
414
417
|
},
|
|
418
|
+
/**
|
|
419
|
+
* 列の図 (#3239)。step 2 で本人が選んだ見本の「列の図」の形で、1 列 12 枚の図の幅が携帯の幅で全体を見せられる 400 に収まる寸法にする。
|
|
420
|
+
* 列は左右の余白 `padX`、高さ `h`、角の丸み `radius`。列の名前と右上の字の基準線は列の上端から `textY`、チップの上端は列の上端から `trackY`、
|
|
421
|
+
* 名前と右上の字の間の下限は `textGap`、選ばなかった列の濃さは `faint`。
|
|
422
|
+
* `chip` はチップの幅の下限 `w`、高さ `h`、隣のチップとの間 `gap`、角の丸み `radius`、字の左右の余白 `padX`。字が幅を超える図は全てのチップの幅を広げる。
|
|
423
|
+
* `seal` は封で、チップの並びの外へ `over` 広げ、角の丸み `radius`、縞の幅 `stripe`。
|
|
424
|
+
* `stamp` は札で、高さ `h`、字の左右の余白 `padX`、角の丸み `radius`、傾き `tilt`、色 `color`
|
|
425
|
+
*/
|
|
426
|
+
lineup: {
|
|
427
|
+
padX: 12,
|
|
428
|
+
h: 61,
|
|
429
|
+
radius: 10,
|
|
430
|
+
textY: 20,
|
|
431
|
+
trackY: 33,
|
|
432
|
+
textGap: 10,
|
|
433
|
+
faint: 0.35,
|
|
434
|
+
chip: { w: 25, h: 18, gap: 4, radius: 4, padX: 3 },
|
|
435
|
+
seal: { over: 3, radius: 5, stripe: 7 },
|
|
436
|
+
stamp: { h: 22, padX: 8, radius: 5, tilt: -4, color: "green" }
|
|
437
|
+
},
|
|
415
438
|
/**
|
|
416
439
|
* 時間軸の図 (#3165)。見本帳の試作 (`scenes/finality.js`) の寸法を写す。
|
|
417
440
|
* 図の幅は `width` で、時間軸は左の `axisX` から右の余白 `right` の手前まで。印の列の名前が長い時は、名前の右に `gutterGap` を空けて軸を右へ寄せる。
|
|
@@ -515,7 +538,8 @@ var LOOK = {
|
|
|
515
538
|
timeMeter: 1.25,
|
|
516
539
|
tree: 1.5,
|
|
517
540
|
treeTrail: 2.6,
|
|
518
|
-
treeCon: 1.3
|
|
541
|
+
treeCon: 1.3,
|
|
542
|
+
stamp: 2
|
|
519
543
|
},
|
|
520
544
|
shadow: { near: 0.8, far: 4, nearY: 1, farY: 3 },
|
|
521
545
|
mini: { w: 168, pad: 8, title: 14, inset: 12, radius: 10 },
|
|
@@ -530,8 +554,8 @@ var LOOK = {
|
|
|
530
554
|
*/
|
|
531
555
|
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 } },
|
|
532
556
|
/** 色を混ぜる割合 (%) */
|
|
533
|
-
/** `time` から始まる値は時間軸の図 (#3165)
|
|
534
|
-
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 },
|
|
557
|
+
/** `time` から始まる値は時間軸の図 (#3165) の、区切りの地、範囲の囲みの地、空きの枠の地、拡大の点線の濃さ。`chip` と `seal` から始まる値は列の図 (#3239) の、色を持たないチップの地と封の縞の濃さ */
|
|
558
|
+
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 },
|
|
535
559
|
/** 字の並びの基準線を、置きたい高さの真ん中からどれだけ下げるか */
|
|
536
560
|
baseline: { label: 3.8, badge: 3.5, carrier: 3.7, stripTitle: 4.5, tag: 3.6, action: 3.8, mark: 4 },
|
|
537
561
|
/** 浮いて出る物が下から上がる長さと、弾んで出る物の始まりの大きさ */
|
|
@@ -575,7 +599,12 @@ var MOTION = {
|
|
|
575
599
|
* 拡大した目盛りでは、その段のその列の線を引き終えてから `wait` 秒待って次の目盛りへ進む。
|
|
576
600
|
* `after` は針が止まってから次の出来事を起こすまで、`reset` は区切りが替わって物差しが 0 に戻る長さ
|
|
577
601
|
*/
|
|
578
|
-
time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 }
|
|
602
|
+
time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 },
|
|
603
|
+
/**
|
|
604
|
+
* 列の図 (#3239)。`slide` はチップが滑る長さ、`seal` は封が列を覆う長さ、`stagger` は同じ段の出来事を起こす間、
|
|
605
|
+
* `cut` はチップと封が一瞬で入れ替わる長さ
|
|
606
|
+
*/
|
|
607
|
+
lineup: { slide: 0.7, seal: 0.6, stagger: 0.2, cut: 0.01 }
|
|
579
608
|
};
|
|
580
609
|
var READABLE_PX = 10.5;
|
|
581
610
|
var EASE = {
|
|
@@ -968,7 +997,7 @@ function layoutStrip(diagram, x, y, width, trail) {
|
|
|
968
997
|
const fields = [];
|
|
969
998
|
let cx = start;
|
|
970
999
|
let row = 0;
|
|
971
|
-
const
|
|
1000
|
+
const place2 = (w) => {
|
|
972
1001
|
if (cx > start && cx + w > width - pad2) {
|
|
973
1002
|
cx = start;
|
|
974
1003
|
row++;
|
|
@@ -979,12 +1008,12 @@ function layoutStrip(diagram, x, y, width, trail) {
|
|
|
979
1008
|
};
|
|
980
1009
|
for (const name of diagram.strip.fields) {
|
|
981
1010
|
const w = fieldWidth(diagram, name);
|
|
982
|
-
const at2 =
|
|
1011
|
+
const at2 = place2(w);
|
|
983
1012
|
const meter = meterOf(diagram, name);
|
|
984
1013
|
const line2 = meter ? ratioOf(meter.line) : void 0;
|
|
985
1014
|
fields.push({ name, ...at2, w, ...meter && line2 !== void 0 ? { meter: { line: line2, text: meter.line, x: at2.x, w: LOOK.time.meter.w } } : {} });
|
|
986
1015
|
}
|
|
987
|
-
const laidTrail = trail ? { ...trail, ...
|
|
1016
|
+
const laidTrail = trail ? { ...trail, ...place2(trailWidth(trail)), w: trailWidth(trail) } : void 0;
|
|
988
1017
|
return { x, y, w: width, h: h + row * line, title: diagram.strip.title, fields, ...laidTrail ? { trail: laidTrail } : {} };
|
|
989
1018
|
}
|
|
990
1019
|
function shiftContent(layout, dx, dy) {
|
|
@@ -1411,12 +1440,16 @@ function grow(layout, groups, slots, rooms) {
|
|
|
1411
1440
|
|
|
1412
1441
|
// src/words.ts
|
|
1413
1442
|
var keys = (table) => Object.keys(table);
|
|
1414
|
-
var KINDS = keys({ sequence: true, architecture: true, state: true, git: true, time: true, tree: true });
|
|
1443
|
+
var KINDS = keys({ sequence: true, architecture: true, state: true, git: true, time: true, tree: true, lineup: true });
|
|
1415
1444
|
var STATE_ENDS = ["start", "finish"];
|
|
1416
1445
|
var TIME_HEADS = ["scale", "period", "row", "point", "zoom", "mark", "span"];
|
|
1417
1446
|
var NOW = "now";
|
|
1418
1447
|
var TREE_HEADS = ["leaf", "node"];
|
|
1419
|
-
var
|
|
1448
|
+
var LINEUP_HEADS = ["item", "line", "seal", "open", "pick", "stamp"];
|
|
1449
|
+
var LANE_MOST = 12;
|
|
1450
|
+
var LABEL_MOST = 4;
|
|
1451
|
+
var LANE_ATTRS = ["note", "color"];
|
|
1452
|
+
var HEADS = ["group", "end", "box", "strip", "step", "say", "code", "source", "act", "note", "set", "branch", "commit", ...TIME_HEADS, ...TREE_HEADS, ...LINEUP_HEADS];
|
|
1420
1453
|
var AS = "as";
|
|
1421
1454
|
var ON = "on";
|
|
1422
1455
|
var COPY = "copy";
|
|
@@ -1438,6 +1471,7 @@ var ATTRS = {
|
|
|
1438
1471
|
commit: ["hash", "note"],
|
|
1439
1472
|
leaf: ["hash"],
|
|
1440
1473
|
node: ["hash"],
|
|
1474
|
+
item: ["color", "label"],
|
|
1441
1475
|
scale: ["from"],
|
|
1442
1476
|
period: ["from"],
|
|
1443
1477
|
row: ["color", "empty"],
|
|
@@ -1945,6 +1979,138 @@ function labelsOf(diagram, layout) {
|
|
|
1945
1979
|
return labels;
|
|
1946
1980
|
}
|
|
1947
1981
|
|
|
1982
|
+
// src/layout/lineup.ts
|
|
1983
|
+
var isLineupLayout = (layout) => layout.kind === "lineup";
|
|
1984
|
+
function notesOf(diagram, id, sub) {
|
|
1985
|
+
const written = diagram.steps.flatMap((step) => step.events.flatMap((e) => e.type === "swap" && e.box === id ? [textWidth(e.text, TYPE.boxSubStrong)] : []));
|
|
1986
|
+
return sub === void 0 ? written : [textWidth(sub, TYPE.boxSub), ...written];
|
|
1987
|
+
}
|
|
1988
|
+
function layoutLineup(diagram) {
|
|
1989
|
+
const { margin, gap, lineup: N } = LOOK;
|
|
1990
|
+
const items = diagram.lineup?.items ?? [];
|
|
1991
|
+
const known = new Set(items.map((item) => item.id));
|
|
1992
|
+
const chipW = Math.max(N.chip.w, ...items.map((item) => item.label === void 0 ? 0 : textWidth(item.label, TYPE.chip) + N.chip.padX * 2));
|
|
1993
|
+
const pitch = chipW + N.chip.gap;
|
|
1994
|
+
const trackW = pitch * LANE_MOST - N.chip.gap;
|
|
1995
|
+
const titled = diagram.boxes.map((b) => textWidth(b.name, TYPE.boxName) + N.textGap + Math.max(0, ...notesOf(diagram, b.id, b.sub)));
|
|
1996
|
+
const laneW = Math.max(trackW + N.padX * 2, ...titled.map((w) => w + N.padX * 2), stripNeed(diagram));
|
|
1997
|
+
const colors = boxColors(diagram);
|
|
1998
|
+
const lanes = diagram.boxes.map((b, i) => {
|
|
1999
|
+
const y = margin + i * (N.h + gap);
|
|
2000
|
+
const baseline = y + N.textY;
|
|
2001
|
+
const noteRight = margin + laneW - N.padX;
|
|
2002
|
+
return {
|
|
2003
|
+
id: b.id,
|
|
2004
|
+
name: b.name,
|
|
2005
|
+
...b.sub !== void 0 ? { sub: b.sub } : {},
|
|
2006
|
+
color: colors.get(b.id) ?? "slate",
|
|
2007
|
+
x: margin,
|
|
2008
|
+
y,
|
|
2009
|
+
w: laneW,
|
|
2010
|
+
h: N.h,
|
|
2011
|
+
cx: margin + laneW / 2,
|
|
2012
|
+
cy: y + N.h / 2,
|
|
2013
|
+
title: { ...textBox(b.name, margin + N.padX, baseline, TYPE.boxName), text: b.name, baseline },
|
|
2014
|
+
...b.sub !== void 0 ? { note: { ...textBox(b.sub, noteRight - textWidth(b.sub, TYPE.boxSub), baseline, TYPE.boxSub), text: b.sub, baseline } } : {},
|
|
2015
|
+
noteRight,
|
|
2016
|
+
track: { x: margin + N.padX, y: y + N.trackY, w: trackW, h: N.chip.h }
|
|
2017
|
+
};
|
|
2018
|
+
});
|
|
2019
|
+
const laneOf = new Map(lanes.map((lane) => [lane.id, lane]));
|
|
2020
|
+
const chips = [];
|
|
2021
|
+
const seals = [];
|
|
2022
|
+
const stamps = [];
|
|
2023
|
+
const picks = [];
|
|
2024
|
+
const seated = /* @__PURE__ */ new Map();
|
|
2025
|
+
const open = /* @__PURE__ */ new Map();
|
|
2026
|
+
let picked;
|
|
2027
|
+
diagram.steps.forEach((step, s) => {
|
|
2028
|
+
const before = [...seated.values()].flat();
|
|
2029
|
+
step.events.forEach((e, k) => {
|
|
2030
|
+
if (e.type !== "line" && e.type !== "seal" && e.type !== "open" && e.type !== "pick" && e.type !== "stamp") return;
|
|
2031
|
+
const lane = laneOf.get(e.box);
|
|
2032
|
+
if (!lane) return;
|
|
2033
|
+
const at2 = { step: s, event: k };
|
|
2034
|
+
if (e.type === "seal" && !open.has(lane.id)) {
|
|
2035
|
+
const { over } = N.seal;
|
|
2036
|
+
const seal = { ...at2, 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 };
|
|
2037
|
+
seals.push(seal);
|
|
2038
|
+
open.set(lane.id, seal);
|
|
2039
|
+
} else if (e.type === "open") {
|
|
2040
|
+
const seal = open.get(lane.id);
|
|
2041
|
+
if (seal) seal.until = at2;
|
|
2042
|
+
open.delete(lane.id);
|
|
2043
|
+
} else if (e.type === "pick" && picked !== lane.id) {
|
|
2044
|
+
picks.push({ ...at2, lane: lane.id });
|
|
2045
|
+
picked = lane.id;
|
|
2046
|
+
} else if (e.type === "stamp") {
|
|
2047
|
+
const w = textWidth(e.text, TYPE.stamp) + N.stamp.padX * 2;
|
|
2048
|
+
stamps.push({ ...at2, 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 });
|
|
2049
|
+
} else if (e.type === "line") {
|
|
2050
|
+
const old = seated.get(lane.id) ?? [];
|
|
2051
|
+
const order = [...new Set(e.items)].filter((id) => known.has(id)).slice(0, LANE_MOST);
|
|
2052
|
+
const placed = order.map((id, index) => {
|
|
2053
|
+
const same2 = old.find((c) => c.id === id);
|
|
2054
|
+
if (same2?.index === index) return same2;
|
|
2055
|
+
const others = before.filter((c) => c.id === id);
|
|
2056
|
+
const source = same2 ?? others.find((c) => c.lane === picked) ?? others.at(-1);
|
|
2057
|
+
const seat2 = { ...at2, 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] } : {} };
|
|
2058
|
+
chips.push(seat2);
|
|
2059
|
+
return seat2;
|
|
2060
|
+
});
|
|
2061
|
+
for (const c of old) if (!placed.includes(c)) c.until = at2;
|
|
2062
|
+
seated.set(lane.id, placed);
|
|
2063
|
+
}
|
|
2064
|
+
});
|
|
2065
|
+
});
|
|
2066
|
+
const layout = {
|
|
2067
|
+
kind: "lineup",
|
|
2068
|
+
width: 0,
|
|
2069
|
+
height: 0,
|
|
2070
|
+
regions: [],
|
|
2071
|
+
boxes: lanes,
|
|
2072
|
+
lifelines: [],
|
|
2073
|
+
edges: [],
|
|
2074
|
+
labels: [],
|
|
2075
|
+
actions: [],
|
|
2076
|
+
badges: [],
|
|
2077
|
+
paths: [],
|
|
2078
|
+
ends: [],
|
|
2079
|
+
lanes,
|
|
2080
|
+
chips,
|
|
2081
|
+
seals,
|
|
2082
|
+
stamps,
|
|
2083
|
+
picks
|
|
2084
|
+
};
|
|
2085
|
+
const bottom = Math.max(...lanes.map((lane) => lane.y + lane.h), margin);
|
|
2086
|
+
const width = laneW + margin * 2;
|
|
2087
|
+
const strip2 = layoutStrip(diagram, margin, bottom + gap, width - margin * 2);
|
|
2088
|
+
layout.width = width;
|
|
2089
|
+
layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
|
|
2090
|
+
if (strip2) layout.strip = strip2;
|
|
2091
|
+
layout.badges = badgesOf2(diagram, layout);
|
|
2092
|
+
return layout;
|
|
2093
|
+
}
|
|
2094
|
+
function badgesOf2(diagram, layout) {
|
|
2095
|
+
const { inset } = LOOK.badge;
|
|
2096
|
+
const out = [];
|
|
2097
|
+
const put = (step, x, y, color) => {
|
|
2098
|
+
out.push({ step, x, y, color });
|
|
2099
|
+
};
|
|
2100
|
+
diagram.steps.forEach((step, s) => {
|
|
2101
|
+
const lane = step.events.flatMap((e) => "box" in e ? [e.box] : []).flatMap((id) => layout.lanes.filter((l) => l.id === id))[0];
|
|
2102
|
+
if (lane) {
|
|
2103
|
+
put(s, lane.x, lane.track.y + lane.track.h / 2, lane.color);
|
|
2104
|
+
return;
|
|
2105
|
+
}
|
|
2106
|
+
const before = out[out.length - 1];
|
|
2107
|
+
if (layout.strip && step.events.some((e) => e.type === "strip")) put(s, layout.strip.x + inset, layout.strip.y + inset, "slate");
|
|
2108
|
+
else if (before) out.push({ ...before, step: s });
|
|
2109
|
+
else put(s, LOOK.margin, LOOK.margin, layout.lanes[0]?.color ?? "slate");
|
|
2110
|
+
});
|
|
2111
|
+
return replaceSameSpot(out);
|
|
2112
|
+
}
|
|
2113
|
+
|
|
1948
2114
|
// src/layout/sequence.ts
|
|
1949
2115
|
function layoutSequence(diagram) {
|
|
1950
2116
|
const { box: B, sequence: Q, label: L, margin, gap } = LOOK;
|
|
@@ -2656,7 +2822,7 @@ function layoutTime(diagram, lang = "ja") {
|
|
|
2656
2822
|
} 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 });
|
|
2657
2823
|
}
|
|
2658
2824
|
layout.spans = spans;
|
|
2659
|
-
layout.badges =
|
|
2825
|
+
layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
|
|
2660
2826
|
layout.labels = labelsOf2(diagram, layout);
|
|
2661
2827
|
y = Math.max(y, ...layout.labels.map((l) => l.y + l.h + LOOK.label.soft));
|
|
2662
2828
|
const lanes = [];
|
|
@@ -2725,7 +2891,7 @@ function layoutTime(diagram, lang = "ja") {
|
|
|
2725
2891
|
const strip2 = layoutStrip(diagram, margin, axisBottom + gap, width - margin * 2);
|
|
2726
2892
|
if (strip2) layout.strip = strip2;
|
|
2727
2893
|
layout.height = (strip2 ? strip2.y + strip2.h : axisBottom) + margin;
|
|
2728
|
-
layout.badges =
|
|
2894
|
+
layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
|
|
2729
2895
|
return layout;
|
|
2730
2896
|
}
|
|
2731
2897
|
function wire(event, zoom) {
|
|
@@ -2767,7 +2933,7 @@ function seat(edge2, from, to, rooms) {
|
|
|
2767
2933
|
if (arrive.settle) edge2.settle = arrive.settle;
|
|
2768
2934
|
if (leave.wait) edge2.wait = leave.wait;
|
|
2769
2935
|
}
|
|
2770
|
-
function
|
|
2936
|
+
function badgesOf3(diagram, layout, needle) {
|
|
2771
2937
|
const { r, inset } = LOOK.badge;
|
|
2772
2938
|
const { axis } = layout;
|
|
2773
2939
|
const taken = [];
|
|
@@ -3060,7 +3226,7 @@ function layoutTree(diagram) {
|
|
|
3060
3226
|
links,
|
|
3061
3227
|
runs
|
|
3062
3228
|
};
|
|
3063
|
-
layout.badges =
|
|
3229
|
+
layout.badges = badgesOf4(diagram, layout);
|
|
3064
3230
|
layout.labels = labelsOf3(diagram, layout);
|
|
3065
3231
|
const cards = nodes.flatMap((n) => n.card ? [n.card] : []);
|
|
3066
3232
|
const solids = [...nodes, ...cards, ...boxes, ...layout.labels];
|
|
@@ -3072,10 +3238,10 @@ function layoutTree(diagram) {
|
|
|
3072
3238
|
layout.width = width;
|
|
3073
3239
|
layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
|
|
3074
3240
|
if (strip2) layout.strip = strip2;
|
|
3075
|
-
layout.badges =
|
|
3241
|
+
layout.badges = badgesOf4(diagram, layout);
|
|
3076
3242
|
return layout;
|
|
3077
3243
|
}
|
|
3078
|
-
function
|
|
3244
|
+
function badgesOf4(diagram, layout) {
|
|
3079
3245
|
const { r, inset } = LOOK.badge;
|
|
3080
3246
|
const apart = r * 2 + inset;
|
|
3081
3247
|
const taken = [];
|
|
@@ -3191,8 +3357,10 @@ var ja = {
|
|
|
3191
3357
|
enum: (values) => `${values.join(" / ")} \u306E\u3069\u308C\u304B\u306B\u3059\u308B`,
|
|
3192
3358
|
type: (type) => TYPES_JA[type] ?? `${type} \u306B\u3059\u308B`,
|
|
3193
3359
|
minLength: (limit) => `${limit} \u5B57\u4EE5\u4E0A\u66F8\u304F`,
|
|
3360
|
+
maxLength: (limit) => `${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
|
|
3194
3361
|
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",
|
|
3195
3362
|
minItems: (limit) => `${limit} \u3064\u4EE5\u4E0A\u66F8\u304F`,
|
|
3363
|
+
maxItems: (limit) => `${limit} \u3064\u307E\u3067\u306B\u3059\u308B`,
|
|
3196
3364
|
minimum: (limit) => `${limit} \u4EE5\u4E0A\u306B\u3059\u308B`,
|
|
3197
3365
|
const: (value) => `${value} \u306B\u3059\u308B`,
|
|
3198
3366
|
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",
|
|
@@ -3213,8 +3381,10 @@ var en = {
|
|
|
3213
3381
|
enum: (values) => `Use one of ${values.join(" / ")}`,
|
|
3214
3382
|
type: (type) => TYPES_EN[type] ?? `Use ${type}`,
|
|
3215
3383
|
minLength: (limit) => `Write at least ${plural(limit, "character")}`,
|
|
3384
|
+
maxLength: (limit) => `Write at most ${plural(limit, "character")}`,
|
|
3216
3385
|
pattern: (forbidden) => forbidden ? `Cannot contain ${forbidden.space ? "spaces or " : ""}${forbidden.chars.join(" ")}` : "Contains characters that are not allowed",
|
|
3217
3386
|
minItems: (limit) => `Write at least ${plural(limit, "item")}`,
|
|
3387
|
+
maxItems: (limit) => `Write at most ${plural(limit, "item")}`,
|
|
3218
3388
|
minimum: (limit) => `Use ${limit} or greater`,
|
|
3219
3389
|
const: (value) => `Use ${value}`,
|
|
3220
3390
|
not: (allowed) => allowed ? `The ${allowed.field} field is allowed only when kind is ${allowed.kind}` : "This combination of fields is not allowed",
|
|
@@ -3238,7 +3408,7 @@ function ucs2length(str) {
|
|
|
3238
3408
|
return length;
|
|
3239
3409
|
}
|
|
3240
3410
|
var validate_diagram_default = validate10;
|
|
3241
|
-
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" } }};
|
|
3411
|
+
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" } }};
|
|
3242
3412
|
function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3243
3413
|
let vErrors = null;
|
|
3244
3414
|
let errors = 0;
|
|
@@ -3343,34 +3513,79 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3343
3513
|
}
|
|
3344
3514
|
}
|
|
3345
3515
|
}
|
|
3516
|
+
const _errs14 = errors;
|
|
3517
|
+
const _errs15 = errors;
|
|
3518
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3519
|
+
if (data2.type === void 0 && ("type")) {
|
|
3520
|
+
const err6 = {};
|
|
3521
|
+
if (vErrors === null) {
|
|
3522
|
+
vErrors = [err6];
|
|
3523
|
+
} else {
|
|
3524
|
+
vErrors.push(err6);
|
|
3525
|
+
}
|
|
3526
|
+
errors++;
|
|
3527
|
+
} else {
|
|
3528
|
+
if (data2.type !== void 0) {
|
|
3529
|
+
let data5 = data2.type;
|
|
3530
|
+
if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
|
|
3531
|
+
const err7 = {};
|
|
3532
|
+
if (vErrors === null) {
|
|
3533
|
+
vErrors = [err7];
|
|
3534
|
+
} else {
|
|
3535
|
+
vErrors.push(err7);
|
|
3536
|
+
}
|
|
3537
|
+
errors++;
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
}
|
|
3541
|
+
}
|
|
3542
|
+
var valid13 = _errs15 === errors;
|
|
3543
|
+
if (valid13) {
|
|
3544
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3545
|
+
if (vErrors === null) {
|
|
3546
|
+
vErrors = [err8];
|
|
3547
|
+
} else {
|
|
3548
|
+
vErrors.push(err8);
|
|
3549
|
+
}
|
|
3550
|
+
errors++;
|
|
3551
|
+
} else {
|
|
3552
|
+
errors = _errs14;
|
|
3553
|
+
if (vErrors !== null) {
|
|
3554
|
+
if (_errs14) {
|
|
3555
|
+
vErrors.length = _errs14;
|
|
3556
|
+
} else {
|
|
3557
|
+
vErrors = null;
|
|
3558
|
+
}
|
|
3559
|
+
}
|
|
3560
|
+
}
|
|
3346
3561
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3347
3562
|
if (data2.type !== void 0) {
|
|
3348
|
-
let
|
|
3349
|
-
const
|
|
3350
|
-
const
|
|
3351
|
-
if (!(
|
|
3352
|
-
const
|
|
3563
|
+
let data6 = data2.type;
|
|
3564
|
+
const _errs18 = errors;
|
|
3565
|
+
const _errs19 = errors;
|
|
3566
|
+
if (!(data6 === "commit" || data6 === "branch")) {
|
|
3567
|
+
const err9 = {};
|
|
3353
3568
|
if (vErrors === null) {
|
|
3354
|
-
vErrors = [
|
|
3569
|
+
vErrors = [err9];
|
|
3355
3570
|
} else {
|
|
3356
|
-
vErrors.push(
|
|
3571
|
+
vErrors.push(err9);
|
|
3357
3572
|
}
|
|
3358
3573
|
errors++;
|
|
3359
3574
|
}
|
|
3360
|
-
var
|
|
3361
|
-
if (
|
|
3362
|
-
const
|
|
3575
|
+
var valid16 = _errs19 === errors;
|
|
3576
|
+
if (valid16) {
|
|
3577
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3363
3578
|
if (vErrors === null) {
|
|
3364
|
-
vErrors = [
|
|
3579
|
+
vErrors = [err10];
|
|
3365
3580
|
} else {
|
|
3366
|
-
vErrors.push(
|
|
3581
|
+
vErrors.push(err10);
|
|
3367
3582
|
}
|
|
3368
3583
|
errors++;
|
|
3369
3584
|
} else {
|
|
3370
|
-
errors =
|
|
3585
|
+
errors = _errs18;
|
|
3371
3586
|
if (vErrors !== null) {
|
|
3372
|
-
if (
|
|
3373
|
-
vErrors.length =
|
|
3587
|
+
if (_errs18) {
|
|
3588
|
+
vErrors.length = _errs18;
|
|
3374
3589
|
} else {
|
|
3375
3590
|
vErrors = null;
|
|
3376
3591
|
}
|
|
@@ -3378,29 +3593,29 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3378
3593
|
}
|
|
3379
3594
|
}
|
|
3380
3595
|
if (data2.at !== void 0) {
|
|
3381
|
-
const
|
|
3596
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3382
3597
|
if (vErrors === null) {
|
|
3383
|
-
vErrors = [
|
|
3598
|
+
vErrors = [err11];
|
|
3384
3599
|
} else {
|
|
3385
|
-
vErrors.push(
|
|
3600
|
+
vErrors.push(err11);
|
|
3386
3601
|
}
|
|
3387
3602
|
errors++;
|
|
3388
3603
|
}
|
|
3389
3604
|
if (data2.into !== void 0) {
|
|
3390
|
-
const
|
|
3605
|
+
const err12 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3391
3606
|
if (vErrors === null) {
|
|
3392
|
-
vErrors = [
|
|
3607
|
+
vErrors = [err12];
|
|
3393
3608
|
} else {
|
|
3394
|
-
vErrors.push(
|
|
3609
|
+
vErrors.push(err12);
|
|
3395
3610
|
}
|
|
3396
3611
|
errors++;
|
|
3397
3612
|
}
|
|
3398
3613
|
if (data2.color !== void 0) {
|
|
3399
|
-
const
|
|
3614
|
+
const err13 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3400
3615
|
if (vErrors === null) {
|
|
3401
|
-
vErrors = [
|
|
3616
|
+
vErrors = [err13];
|
|
3402
3617
|
} else {
|
|
3403
|
-
vErrors.push(
|
|
3618
|
+
vErrors.push(err13);
|
|
3404
3619
|
}
|
|
3405
3620
|
errors++;
|
|
3406
3621
|
}
|
|
@@ -3535,31 +3750,76 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3535
3750
|
}
|
|
3536
3751
|
}
|
|
3537
3752
|
}
|
|
3753
|
+
const _errs14 = errors;
|
|
3754
|
+
const _errs15 = errors;
|
|
3538
3755
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3539
|
-
if (data2.
|
|
3540
|
-
const err6 = {
|
|
3756
|
+
if (data2.type === void 0 && ("type")) {
|
|
3757
|
+
const err6 = {};
|
|
3541
3758
|
if (vErrors === null) {
|
|
3542
3759
|
vErrors = [err6];
|
|
3543
3760
|
} else {
|
|
3544
3761
|
vErrors.push(err6);
|
|
3545
3762
|
}
|
|
3546
3763
|
errors++;
|
|
3764
|
+
} else {
|
|
3765
|
+
if (data2.type !== void 0) {
|
|
3766
|
+
let data5 = data2.type;
|
|
3767
|
+
if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
|
|
3768
|
+
const err7 = {};
|
|
3769
|
+
if (vErrors === null) {
|
|
3770
|
+
vErrors = [err7];
|
|
3771
|
+
} else {
|
|
3772
|
+
vErrors.push(err7);
|
|
3773
|
+
}
|
|
3774
|
+
errors++;
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
}
|
|
3778
|
+
}
|
|
3779
|
+
var valid13 = _errs15 === errors;
|
|
3780
|
+
if (valid13) {
|
|
3781
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3782
|
+
if (vErrors === null) {
|
|
3783
|
+
vErrors = [err8];
|
|
3784
|
+
} else {
|
|
3785
|
+
vErrors.push(err8);
|
|
3786
|
+
}
|
|
3787
|
+
errors++;
|
|
3788
|
+
} else {
|
|
3789
|
+
errors = _errs14;
|
|
3790
|
+
if (vErrors !== null) {
|
|
3791
|
+
if (_errs14) {
|
|
3792
|
+
vErrors.length = _errs14;
|
|
3793
|
+
} else {
|
|
3794
|
+
vErrors = null;
|
|
3795
|
+
}
|
|
3796
|
+
}
|
|
3797
|
+
}
|
|
3798
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3799
|
+
if (data2.at !== void 0) {
|
|
3800
|
+
const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3801
|
+
if (vErrors === null) {
|
|
3802
|
+
vErrors = [err9];
|
|
3803
|
+
} else {
|
|
3804
|
+
vErrors.push(err9);
|
|
3805
|
+
}
|
|
3806
|
+
errors++;
|
|
3547
3807
|
}
|
|
3548
3808
|
if (data2.into !== void 0) {
|
|
3549
|
-
const
|
|
3809
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3550
3810
|
if (vErrors === null) {
|
|
3551
|
-
vErrors = [
|
|
3811
|
+
vErrors = [err10];
|
|
3552
3812
|
} else {
|
|
3553
|
-
vErrors.push(
|
|
3813
|
+
vErrors.push(err10);
|
|
3554
3814
|
}
|
|
3555
3815
|
errors++;
|
|
3556
3816
|
}
|
|
3557
3817
|
if (data2.color !== void 0) {
|
|
3558
|
-
const
|
|
3818
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3559
3819
|
if (vErrors === null) {
|
|
3560
|
-
vErrors = [
|
|
3820
|
+
vErrors = [err11];
|
|
3561
3821
|
} else {
|
|
3562
|
-
vErrors.push(
|
|
3822
|
+
vErrors.push(err11);
|
|
3563
3823
|
}
|
|
3564
3824
|
errors++;
|
|
3565
3825
|
}
|
|
@@ -3632,34 +3892,79 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3632
3892
|
}
|
|
3633
3893
|
}
|
|
3634
3894
|
}
|
|
3895
|
+
const _errs10 = errors;
|
|
3896
|
+
const _errs11 = errors;
|
|
3897
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3898
|
+
if (data2.type === void 0 && ("type")) {
|
|
3899
|
+
const err3 = {};
|
|
3900
|
+
if (vErrors === null) {
|
|
3901
|
+
vErrors = [err3];
|
|
3902
|
+
} else {
|
|
3903
|
+
vErrors.push(err3);
|
|
3904
|
+
}
|
|
3905
|
+
errors++;
|
|
3906
|
+
} else {
|
|
3907
|
+
if (data2.type !== void 0) {
|
|
3908
|
+
let data4 = data2.type;
|
|
3909
|
+
if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
|
|
3910
|
+
const err4 = {};
|
|
3911
|
+
if (vErrors === null) {
|
|
3912
|
+
vErrors = [err4];
|
|
3913
|
+
} else {
|
|
3914
|
+
vErrors.push(err4);
|
|
3915
|
+
}
|
|
3916
|
+
errors++;
|
|
3917
|
+
}
|
|
3918
|
+
}
|
|
3919
|
+
}
|
|
3920
|
+
}
|
|
3921
|
+
var valid10 = _errs11 === errors;
|
|
3922
|
+
if (valid10) {
|
|
3923
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3924
|
+
if (vErrors === null) {
|
|
3925
|
+
vErrors = [err5];
|
|
3926
|
+
} else {
|
|
3927
|
+
vErrors.push(err5);
|
|
3928
|
+
}
|
|
3929
|
+
errors++;
|
|
3930
|
+
} else {
|
|
3931
|
+
errors = _errs10;
|
|
3932
|
+
if (vErrors !== null) {
|
|
3933
|
+
if (_errs10) {
|
|
3934
|
+
vErrors.length = _errs10;
|
|
3935
|
+
} else {
|
|
3936
|
+
vErrors = null;
|
|
3937
|
+
}
|
|
3938
|
+
}
|
|
3939
|
+
}
|
|
3635
3940
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3636
3941
|
if (data2.type !== void 0) {
|
|
3637
|
-
let
|
|
3638
|
-
const
|
|
3639
|
-
const
|
|
3640
|
-
if (!(
|
|
3641
|
-
const
|
|
3942
|
+
let data5 = data2.type;
|
|
3943
|
+
const _errs14 = errors;
|
|
3944
|
+
const _errs15 = errors;
|
|
3945
|
+
if (!(data5 === "commit" || data5 === "branch")) {
|
|
3946
|
+
const err6 = {};
|
|
3642
3947
|
if (vErrors === null) {
|
|
3643
|
-
vErrors = [
|
|
3948
|
+
vErrors = [err6];
|
|
3644
3949
|
} else {
|
|
3645
|
-
vErrors.push(
|
|
3950
|
+
vErrors.push(err6);
|
|
3646
3951
|
}
|
|
3647
3952
|
errors++;
|
|
3648
3953
|
}
|
|
3649
|
-
var
|
|
3650
|
-
if (
|
|
3651
|
-
const
|
|
3954
|
+
var valid13 = _errs15 === errors;
|
|
3955
|
+
if (valid13) {
|
|
3956
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3652
3957
|
if (vErrors === null) {
|
|
3653
|
-
vErrors = [
|
|
3958
|
+
vErrors = [err7];
|
|
3654
3959
|
} else {
|
|
3655
|
-
vErrors.push(
|
|
3960
|
+
vErrors.push(err7);
|
|
3656
3961
|
}
|
|
3657
3962
|
errors++;
|
|
3658
3963
|
} else {
|
|
3659
|
-
errors =
|
|
3964
|
+
errors = _errs14;
|
|
3660
3965
|
if (vErrors !== null) {
|
|
3661
|
-
if (
|
|
3662
|
-
vErrors.length =
|
|
3966
|
+
if (_errs14) {
|
|
3967
|
+
vErrors.length = _errs14;
|
|
3663
3968
|
} else {
|
|
3664
3969
|
vErrors = null;
|
|
3665
3970
|
}
|
|
@@ -3735,34 +4040,79 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3735
4040
|
}
|
|
3736
4041
|
}
|
|
3737
4042
|
}
|
|
4043
|
+
const _errs9 = errors;
|
|
4044
|
+
const _errs10 = errors;
|
|
4045
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4046
|
+
if (data2.type === void 0 && ("type")) {
|
|
4047
|
+
const err3 = {};
|
|
4048
|
+
if (vErrors === null) {
|
|
4049
|
+
vErrors = [err3];
|
|
4050
|
+
} else {
|
|
4051
|
+
vErrors.push(err3);
|
|
4052
|
+
}
|
|
4053
|
+
errors++;
|
|
4054
|
+
} else {
|
|
4055
|
+
if (data2.type !== void 0) {
|
|
4056
|
+
let data4 = data2.type;
|
|
4057
|
+
if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
|
|
4058
|
+
const err4 = {};
|
|
4059
|
+
if (vErrors === null) {
|
|
4060
|
+
vErrors = [err4];
|
|
4061
|
+
} else {
|
|
4062
|
+
vErrors.push(err4);
|
|
4063
|
+
}
|
|
4064
|
+
errors++;
|
|
4065
|
+
}
|
|
4066
|
+
}
|
|
4067
|
+
}
|
|
4068
|
+
}
|
|
4069
|
+
var valid10 = _errs10 === errors;
|
|
4070
|
+
if (valid10) {
|
|
4071
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4072
|
+
if (vErrors === null) {
|
|
4073
|
+
vErrors = [err5];
|
|
4074
|
+
} else {
|
|
4075
|
+
vErrors.push(err5);
|
|
4076
|
+
}
|
|
4077
|
+
errors++;
|
|
4078
|
+
} else {
|
|
4079
|
+
errors = _errs9;
|
|
4080
|
+
if (vErrors !== null) {
|
|
4081
|
+
if (_errs9) {
|
|
4082
|
+
vErrors.length = _errs9;
|
|
4083
|
+
} else {
|
|
4084
|
+
vErrors = null;
|
|
4085
|
+
}
|
|
4086
|
+
}
|
|
4087
|
+
}
|
|
3738
4088
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3739
4089
|
if (data2.type !== void 0) {
|
|
3740
|
-
let
|
|
3741
|
-
const
|
|
3742
|
-
const
|
|
3743
|
-
if (!(
|
|
3744
|
-
const
|
|
4090
|
+
let data5 = data2.type;
|
|
4091
|
+
const _errs13 = errors;
|
|
4092
|
+
const _errs14 = errors;
|
|
4093
|
+
if (!(data5 === "commit" || data5 === "branch")) {
|
|
4094
|
+
const err6 = {};
|
|
3745
4095
|
if (vErrors === null) {
|
|
3746
|
-
vErrors = [
|
|
4096
|
+
vErrors = [err6];
|
|
3747
4097
|
} else {
|
|
3748
|
-
vErrors.push(
|
|
4098
|
+
vErrors.push(err6);
|
|
3749
4099
|
}
|
|
3750
4100
|
errors++;
|
|
3751
4101
|
}
|
|
3752
|
-
var
|
|
3753
|
-
if (
|
|
3754
|
-
const
|
|
4102
|
+
var valid13 = _errs14 === errors;
|
|
4103
|
+
if (valid13) {
|
|
4104
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3755
4105
|
if (vErrors === null) {
|
|
3756
|
-
vErrors = [
|
|
4106
|
+
vErrors = [err7];
|
|
3757
4107
|
} else {
|
|
3758
|
-
vErrors.push(
|
|
4108
|
+
vErrors.push(err7);
|
|
3759
4109
|
}
|
|
3760
4110
|
errors++;
|
|
3761
4111
|
} else {
|
|
3762
|
-
errors =
|
|
4112
|
+
errors = _errs13;
|
|
3763
4113
|
if (vErrors !== null) {
|
|
3764
|
-
if (
|
|
3765
|
-
vErrors.length =
|
|
4114
|
+
if (_errs13) {
|
|
4115
|
+
vErrors.length = _errs13;
|
|
3766
4116
|
} else {
|
|
3767
4117
|
vErrors = null;
|
|
3768
4118
|
}
|
|
@@ -3770,29 +4120,29 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3770
4120
|
}
|
|
3771
4121
|
}
|
|
3772
4122
|
if (data2.at !== void 0) {
|
|
3773
|
-
const
|
|
4123
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3774
4124
|
if (vErrors === null) {
|
|
3775
|
-
vErrors = [
|
|
4125
|
+
vErrors = [err8];
|
|
3776
4126
|
} else {
|
|
3777
|
-
vErrors.push(
|
|
4127
|
+
vErrors.push(err8);
|
|
3778
4128
|
}
|
|
3779
4129
|
errors++;
|
|
3780
4130
|
}
|
|
3781
4131
|
if (data2.into !== void 0) {
|
|
3782
|
-
const
|
|
4132
|
+
const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3783
4133
|
if (vErrors === null) {
|
|
3784
|
-
vErrors = [
|
|
4134
|
+
vErrors = [err9];
|
|
3785
4135
|
} else {
|
|
3786
|
-
vErrors.push(
|
|
4136
|
+
vErrors.push(err9);
|
|
3787
4137
|
}
|
|
3788
4138
|
errors++;
|
|
3789
4139
|
}
|
|
3790
4140
|
if (data2.color !== void 0) {
|
|
3791
|
-
const
|
|
4141
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3792
4142
|
if (vErrors === null) {
|
|
3793
|
-
vErrors = [
|
|
4143
|
+
vErrors = [err10];
|
|
3794
4144
|
} else {
|
|
3795
|
-
vErrors.push(
|
|
4145
|
+
vErrors.push(err10);
|
|
3796
4146
|
}
|
|
3797
4147
|
errors++;
|
|
3798
4148
|
}
|
|
@@ -3806,15 +4156,217 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3806
4156
|
validate22.errors = vErrors;
|
|
3807
4157
|
return errors === 0;
|
|
3808
4158
|
}
|
|
3809
|
-
|
|
3810
|
-
var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
|
|
3811
|
-
var func3 = ucs2length;
|
|
3812
|
-
function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4159
|
+
function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3813
4160
|
let vErrors = null;
|
|
3814
4161
|
let errors = 0;
|
|
3815
|
-
if (
|
|
3816
|
-
|
|
3817
|
-
|
|
4162
|
+
if (Array.isArray(data)) {
|
|
4163
|
+
const len0 = data.length;
|
|
4164
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
4165
|
+
let data0 = data[i0];
|
|
4166
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
4167
|
+
if (data0.events !== void 0) {
|
|
4168
|
+
let data1 = data0.events;
|
|
4169
|
+
if (Array.isArray(data1)) {
|
|
4170
|
+
const len1 = data1.length;
|
|
4171
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
4172
|
+
let data2 = data1[i1];
|
|
4173
|
+
const _errs3 = errors;
|
|
4174
|
+
const _errs4 = errors;
|
|
4175
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4176
|
+
if (data2.type === void 0 && ("type")) {
|
|
4177
|
+
const err0 = {};
|
|
4178
|
+
if (vErrors === null) {
|
|
4179
|
+
vErrors = [err0];
|
|
4180
|
+
} else {
|
|
4181
|
+
vErrors.push(err0);
|
|
4182
|
+
}
|
|
4183
|
+
errors++;
|
|
4184
|
+
} else {
|
|
4185
|
+
if (data2.type !== void 0) {
|
|
4186
|
+
let data3 = data2.type;
|
|
4187
|
+
if (!(data3 === "now" || data3 === "mark" || data3 === "span")) {
|
|
4188
|
+
const err1 = {};
|
|
4189
|
+
if (vErrors === null) {
|
|
4190
|
+
vErrors = [err1];
|
|
4191
|
+
} else {
|
|
4192
|
+
vErrors.push(err1);
|
|
4193
|
+
}
|
|
4194
|
+
errors++;
|
|
4195
|
+
}
|
|
4196
|
+
}
|
|
4197
|
+
}
|
|
4198
|
+
}
|
|
4199
|
+
var valid5 = _errs4 === errors;
|
|
4200
|
+
if (valid5) {
|
|
4201
|
+
const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4202
|
+
if (vErrors === null) {
|
|
4203
|
+
vErrors = [err2];
|
|
4204
|
+
} else {
|
|
4205
|
+
vErrors.push(err2);
|
|
4206
|
+
}
|
|
4207
|
+
errors++;
|
|
4208
|
+
} else {
|
|
4209
|
+
errors = _errs3;
|
|
4210
|
+
if (vErrors !== null) {
|
|
4211
|
+
if (_errs3) {
|
|
4212
|
+
vErrors.length = _errs3;
|
|
4213
|
+
} else {
|
|
4214
|
+
vErrors = null;
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
}
|
|
4218
|
+
const _errs8 = errors;
|
|
4219
|
+
const _errs9 = errors;
|
|
4220
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4221
|
+
if (data2.type === void 0 && ("type")) {
|
|
4222
|
+
const err3 = {};
|
|
4223
|
+
if (vErrors === null) {
|
|
4224
|
+
vErrors = [err3];
|
|
4225
|
+
} else {
|
|
4226
|
+
vErrors.push(err3);
|
|
4227
|
+
}
|
|
4228
|
+
errors++;
|
|
4229
|
+
} else {
|
|
4230
|
+
if (data2.type !== void 0) {
|
|
4231
|
+
let data4 = data2.type;
|
|
4232
|
+
if (!(data4 === "leaf" || data4 === "node")) {
|
|
4233
|
+
const err4 = {};
|
|
4234
|
+
if (vErrors === null) {
|
|
4235
|
+
vErrors = [err4];
|
|
4236
|
+
} else {
|
|
4237
|
+
vErrors.push(err4);
|
|
4238
|
+
}
|
|
4239
|
+
errors++;
|
|
4240
|
+
}
|
|
4241
|
+
}
|
|
4242
|
+
}
|
|
4243
|
+
}
|
|
4244
|
+
var valid9 = _errs9 === errors;
|
|
4245
|
+
if (valid9) {
|
|
4246
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4247
|
+
if (vErrors === null) {
|
|
4248
|
+
vErrors = [err5];
|
|
4249
|
+
} else {
|
|
4250
|
+
vErrors.push(err5);
|
|
4251
|
+
}
|
|
4252
|
+
errors++;
|
|
4253
|
+
} else {
|
|
4254
|
+
errors = _errs8;
|
|
4255
|
+
if (vErrors !== null) {
|
|
4256
|
+
if (_errs8) {
|
|
4257
|
+
vErrors.length = _errs8;
|
|
4258
|
+
} else {
|
|
4259
|
+
vErrors = null;
|
|
4260
|
+
}
|
|
4261
|
+
}
|
|
4262
|
+
}
|
|
4263
|
+
const _errs14 = errors;
|
|
4264
|
+
const _errs15 = errors;
|
|
4265
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4266
|
+
if (data2.type === void 0 && ("type")) {
|
|
4267
|
+
const err6 = {};
|
|
4268
|
+
if (vErrors === null) {
|
|
4269
|
+
vErrors = [err6];
|
|
4270
|
+
} else {
|
|
4271
|
+
vErrors.push(err6);
|
|
4272
|
+
}
|
|
4273
|
+
errors++;
|
|
4274
|
+
} else {
|
|
4275
|
+
if (data2.type !== void 0) {
|
|
4276
|
+
let data5 = data2.type;
|
|
4277
|
+
if (!(data5 === "edge" || data5 === "action")) {
|
|
4278
|
+
const err7 = {};
|
|
4279
|
+
if (vErrors === null) {
|
|
4280
|
+
vErrors = [err7];
|
|
4281
|
+
} else {
|
|
4282
|
+
vErrors.push(err7);
|
|
4283
|
+
}
|
|
4284
|
+
errors++;
|
|
4285
|
+
}
|
|
4286
|
+
}
|
|
4287
|
+
}
|
|
4288
|
+
}
|
|
4289
|
+
var valid13 = _errs15 === errors;
|
|
4290
|
+
if (valid13) {
|
|
4291
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notWiredEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4292
|
+
if (vErrors === null) {
|
|
4293
|
+
vErrors = [err8];
|
|
4294
|
+
} else {
|
|
4295
|
+
vErrors.push(err8);
|
|
4296
|
+
}
|
|
4297
|
+
errors++;
|
|
4298
|
+
} else {
|
|
4299
|
+
errors = _errs14;
|
|
4300
|
+
if (vErrors !== null) {
|
|
4301
|
+
if (_errs14) {
|
|
4302
|
+
vErrors.length = _errs14;
|
|
4303
|
+
} else {
|
|
4304
|
+
vErrors = null;
|
|
4305
|
+
}
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4308
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4309
|
+
if (data2.type !== void 0) {
|
|
4310
|
+
let data6 = data2.type;
|
|
4311
|
+
const _errs18 = errors;
|
|
4312
|
+
const _errs19 = errors;
|
|
4313
|
+
if (!(data6 === "commit" || data6 === "branch")) {
|
|
4314
|
+
const err9 = {};
|
|
4315
|
+
if (vErrors === null) {
|
|
4316
|
+
vErrors = [err9];
|
|
4317
|
+
} else {
|
|
4318
|
+
vErrors.push(err9);
|
|
4319
|
+
}
|
|
4320
|
+
errors++;
|
|
4321
|
+
}
|
|
4322
|
+
var valid16 = _errs19 === errors;
|
|
4323
|
+
if (valid16) {
|
|
4324
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4325
|
+
if (vErrors === null) {
|
|
4326
|
+
vErrors = [err10];
|
|
4327
|
+
} else {
|
|
4328
|
+
vErrors.push(err10);
|
|
4329
|
+
}
|
|
4330
|
+
errors++;
|
|
4331
|
+
} else {
|
|
4332
|
+
errors = _errs18;
|
|
4333
|
+
if (vErrors !== null) {
|
|
4334
|
+
if (_errs18) {
|
|
4335
|
+
vErrors.length = _errs18;
|
|
4336
|
+
} else {
|
|
4337
|
+
vErrors = null;
|
|
4338
|
+
}
|
|
4339
|
+
}
|
|
4340
|
+
}
|
|
4341
|
+
}
|
|
4342
|
+
if (data2.color !== void 0) {
|
|
4343
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4344
|
+
if (vErrors === null) {
|
|
4345
|
+
vErrors = [err11];
|
|
4346
|
+
} else {
|
|
4347
|
+
vErrors.push(err11);
|
|
4348
|
+
}
|
|
4349
|
+
errors++;
|
|
4350
|
+
}
|
|
4351
|
+
}
|
|
4352
|
+
}
|
|
4353
|
+
}
|
|
4354
|
+
}
|
|
4355
|
+
}
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
validate25.errors = vErrors;
|
|
4359
|
+
return errors === 0;
|
|
4360
|
+
}
|
|
4361
|
+
var schema79 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
|
|
4362
|
+
var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
|
|
4363
|
+
var func3 = ucs2length;
|
|
4364
|
+
function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4365
|
+
let vErrors = null;
|
|
4366
|
+
let errors = 0;
|
|
4367
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4368
|
+
if (data.id === void 0) {
|
|
4369
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
3818
4370
|
if (vErrors === null) {
|
|
3819
4371
|
vErrors = [err0];
|
|
3820
4372
|
} else {
|
|
@@ -3911,7 +4463,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3911
4463
|
if (data.color !== void 0) {
|
|
3912
4464
|
let data3 = data.color;
|
|
3913
4465
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
3914
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
4466
|
+
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" };
|
|
3915
4467
|
if (vErrors === null) {
|
|
3916
4468
|
vErrors = [err9];
|
|
3917
4469
|
} else {
|
|
@@ -3951,11 +4503,11 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3951
4503
|
}
|
|
3952
4504
|
errors++;
|
|
3953
4505
|
}
|
|
3954
|
-
|
|
4506
|
+
validate30.errors = vErrors;
|
|
3955
4507
|
return errors === 0;
|
|
3956
4508
|
}
|
|
3957
4509
|
var pattern3 = new RegExp("^(/|https?://)", "u");
|
|
3958
|
-
function
|
|
4510
|
+
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3959
4511
|
let vErrors = null;
|
|
3960
4512
|
let errors = 0;
|
|
3961
4513
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4057,7 +4609,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4057
4609
|
if (data.color !== void 0) {
|
|
4058
4610
|
let data3 = data.color;
|
|
4059
4611
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
4060
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
4612
|
+
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" };
|
|
4061
4613
|
if (vErrors === null) {
|
|
4062
4614
|
vErrors = [err9];
|
|
4063
4615
|
} else {
|
|
@@ -4141,11 +4693,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4141
4693
|
}
|
|
4142
4694
|
errors++;
|
|
4143
4695
|
}
|
|
4144
|
-
|
|
4696
|
+
validate32.errors = vErrors;
|
|
4145
4697
|
return errors === 0;
|
|
4146
4698
|
}
|
|
4147
4699
|
var pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");
|
|
4148
|
-
function
|
|
4700
|
+
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4149
4701
|
let vErrors = null;
|
|
4150
4702
|
let errors = 0;
|
|
4151
4703
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4231,10 +4783,10 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4231
4783
|
}
|
|
4232
4784
|
errors++;
|
|
4233
4785
|
}
|
|
4234
|
-
|
|
4786
|
+
validate35.errors = vErrors;
|
|
4235
4787
|
return errors === 0;
|
|
4236
4788
|
}
|
|
4237
|
-
function
|
|
4789
|
+
function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4238
4790
|
let vErrors = null;
|
|
4239
4791
|
let errors = 0;
|
|
4240
4792
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4348,8 +4900,8 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4348
4900
|
}
|
|
4349
4901
|
const len1 = data3.length;
|
|
4350
4902
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
4351
|
-
if (!
|
|
4352
|
-
vErrors = vErrors === null ?
|
|
4903
|
+
if (!validate35(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
|
|
4904
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
4353
4905
|
errors = vErrors.length;
|
|
4354
4906
|
}
|
|
4355
4907
|
}
|
|
@@ -4372,10 +4924,10 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4372
4924
|
}
|
|
4373
4925
|
errors++;
|
|
4374
4926
|
}
|
|
4375
|
-
|
|
4927
|
+
validate34.errors = vErrors;
|
|
4376
4928
|
return errors === 0;
|
|
4377
4929
|
}
|
|
4378
|
-
function
|
|
4930
|
+
function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4379
4931
|
let vErrors = null;
|
|
4380
4932
|
let errors = 0;
|
|
4381
4933
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4461,13 +5013,13 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4461
5013
|
}
|
|
4462
5014
|
errors++;
|
|
4463
5015
|
}
|
|
4464
|
-
|
|
5016
|
+
validate39.errors = vErrors;
|
|
4465
5017
|
return errors === 0;
|
|
4466
5018
|
}
|
|
4467
|
-
var
|
|
5019
|
+
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" } } }] };
|
|
4468
5020
|
var pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");
|
|
4469
|
-
var
|
|
4470
|
-
function
|
|
5021
|
+
var schema106 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
|
|
5022
|
+
function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4471
5023
|
let vErrors = null;
|
|
4472
5024
|
let errors = 0;
|
|
4473
5025
|
const _errs1 = errors;
|
|
@@ -4593,7 +5145,7 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4593
5145
|
if (data.kind !== void 0) {
|
|
4594
5146
|
let data1 = data.kind;
|
|
4595
5147
|
if (!(data1 === "envelope" || data1 === "tag" || data1 === "coin" || data1 === "none")) {
|
|
4596
|
-
const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues:
|
|
5148
|
+
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" };
|
|
4597
5149
|
if (vErrors === null) {
|
|
4598
5150
|
vErrors = [err8];
|
|
4599
5151
|
} else {
|
|
@@ -4633,10 +5185,10 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4633
5185
|
}
|
|
4634
5186
|
errors++;
|
|
4635
5187
|
}
|
|
4636
|
-
|
|
5188
|
+
validate42.errors = vErrors;
|
|
4637
5189
|
return errors === 0;
|
|
4638
5190
|
}
|
|
4639
|
-
function
|
|
5191
|
+
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4640
5192
|
let vErrors = null;
|
|
4641
5193
|
let errors = 0;
|
|
4642
5194
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4778,15 +5330,15 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4778
5330
|
}
|
|
4779
5331
|
}
|
|
4780
5332
|
if (data.carry !== void 0) {
|
|
4781
|
-
if (!
|
|
4782
|
-
vErrors = vErrors === null ?
|
|
5333
|
+
if (!validate42(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
|
|
5334
|
+
vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
|
|
4783
5335
|
errors = vErrors.length;
|
|
4784
5336
|
}
|
|
4785
5337
|
}
|
|
4786
5338
|
if (data.labelSide !== void 0) {
|
|
4787
5339
|
let data5 = data.labelSide;
|
|
4788
5340
|
if (!(data5 === "above" || data5 === "below" || data5 === "left" || data5 === "right")) {
|
|
4789
|
-
const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues:
|
|
5341
|
+
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" };
|
|
4790
5342
|
if (vErrors === null) {
|
|
4791
5343
|
vErrors = [err13];
|
|
4792
5344
|
} else {
|
|
@@ -5052,7 +5604,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5052
5604
|
if (data.color !== void 0) {
|
|
5053
5605
|
let data14 = data.color;
|
|
5054
5606
|
if (!(data14 === "blue" || data14 === "amber" || data14 === "green" || data14 === "violet" || data14 === "rose" || data14 === "slate" || data14 === "coin")) {
|
|
5055
|
-
const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
5607
|
+
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" };
|
|
5056
5608
|
if (vErrors === null) {
|
|
5057
5609
|
vErrors = [err38];
|
|
5058
5610
|
} else {
|
|
@@ -5580,7 +6132,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5580
6132
|
if (data.color !== void 0) {
|
|
5581
6133
|
let data31 = data.color;
|
|
5582
6134
|
if (!(data31 === "blue" || data31 === "amber" || data31 === "green" || data31 === "violet" || data31 === "rose" || data31 === "slate" || data31 === "coin")) {
|
|
5583
|
-
const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
6135
|
+
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" };
|
|
5584
6136
|
if (vErrors === null) {
|
|
5585
6137
|
vErrors = [err88];
|
|
5586
6138
|
} else {
|
|
@@ -5728,7 +6280,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5728
6280
|
}
|
|
5729
6281
|
if (data.shape !== void 0) {
|
|
5730
6282
|
if (!(data.shape === "box")) {
|
|
5731
|
-
const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues:
|
|
6283
|
+
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" };
|
|
5732
6284
|
if (vErrors === null) {
|
|
5733
6285
|
vErrors = [err102];
|
|
5734
6286
|
} else {
|
|
@@ -5740,7 +6292,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5740
6292
|
if (data.color !== void 0) {
|
|
5741
6293
|
let data37 = data.color;
|
|
5742
6294
|
if (!(data37 === "blue" || data37 === "amber" || data37 === "green" || data37 === "violet" || data37 === "rose" || data37 === "slate" || data37 === "coin")) {
|
|
5743
|
-
const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
6295
|
+
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" };
|
|
5744
6296
|
if (vErrors === null) {
|
|
5745
6297
|
vErrors = [err103];
|
|
5746
6298
|
} else {
|
|
@@ -6002,13 +6554,10 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6002
6554
|
}
|
|
6003
6555
|
errors++;
|
|
6004
6556
|
}
|
|
6005
|
-
} else if (tag0 === "
|
|
6006
|
-
const _errs142 = errors;
|
|
6007
|
-
let valid56 = false;
|
|
6008
|
-
const _errs143 = errors;
|
|
6557
|
+
} else if (tag0 === "line") {
|
|
6009
6558
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6010
|
-
if (data.
|
|
6011
|
-
const err128 = { instancePath, schemaPath: "#/oneOf/10/
|
|
6559
|
+
if (data.type === void 0) {
|
|
6560
|
+
const err128 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6012
6561
|
if (vErrors === null) {
|
|
6013
6562
|
vErrors = [err128];
|
|
6014
6563
|
} else {
|
|
@@ -6016,190 +6565,652 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6016
6565
|
}
|
|
6017
6566
|
errors++;
|
|
6018
6567
|
}
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
valid56 = valid56 || _valid0;
|
|
6022
|
-
if (!valid56) {
|
|
6023
|
-
const _errs144 = errors;
|
|
6024
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6025
|
-
if (data.tag === void 0) {
|
|
6026
|
-
const err129 = { instancePath, schemaPath: "#/oneOf/10/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
|
|
6027
|
-
if (vErrors === null) {
|
|
6028
|
-
vErrors = [err129];
|
|
6029
|
-
} else {
|
|
6030
|
-
vErrors.push(err129);
|
|
6031
|
-
}
|
|
6032
|
-
errors++;
|
|
6033
|
-
}
|
|
6034
|
-
}
|
|
6035
|
-
var _valid0 = _errs144 === errors;
|
|
6036
|
-
valid56 = valid56 || _valid0;
|
|
6037
|
-
}
|
|
6038
|
-
if (!valid56) {
|
|
6039
|
-
const err130 = { instancePath, schemaPath: "#/oneOf/10/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6040
|
-
if (vErrors === null) {
|
|
6041
|
-
vErrors = [err130];
|
|
6042
|
-
} else {
|
|
6043
|
-
vErrors.push(err130);
|
|
6044
|
-
}
|
|
6045
|
-
errors++;
|
|
6046
|
-
} else {
|
|
6047
|
-
errors = _errs142;
|
|
6048
|
-
if (vErrors !== null) {
|
|
6049
|
-
if (_errs142) {
|
|
6050
|
-
vErrors.length = _errs142;
|
|
6051
|
-
} else {
|
|
6052
|
-
vErrors = null;
|
|
6053
|
-
}
|
|
6054
|
-
}
|
|
6055
|
-
}
|
|
6056
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6057
|
-
if (data.type === void 0) {
|
|
6058
|
-
const err131 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6568
|
+
if (data.box === void 0) {
|
|
6569
|
+
const err129 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6059
6570
|
if (vErrors === null) {
|
|
6060
|
-
vErrors = [
|
|
6571
|
+
vErrors = [err129];
|
|
6061
6572
|
} else {
|
|
6062
|
-
vErrors.push(
|
|
6573
|
+
vErrors.push(err129);
|
|
6063
6574
|
}
|
|
6064
6575
|
errors++;
|
|
6065
6576
|
}
|
|
6066
|
-
if (data.
|
|
6067
|
-
const
|
|
6577
|
+
if (data.items === void 0) {
|
|
6578
|
+
const err130 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
|
|
6068
6579
|
if (vErrors === null) {
|
|
6069
|
-
vErrors = [
|
|
6580
|
+
vErrors = [err130];
|
|
6070
6581
|
} else {
|
|
6071
|
-
vErrors.push(
|
|
6582
|
+
vErrors.push(err130);
|
|
6072
6583
|
}
|
|
6073
6584
|
errors++;
|
|
6074
6585
|
}
|
|
6075
6586
|
for (const key10 in data) {
|
|
6076
|
-
if (!(key10 === "type" || key10 === "
|
|
6077
|
-
const
|
|
6587
|
+
if (!(key10 === "type" || key10 === "box" || key10 === "items")) {
|
|
6588
|
+
const err131 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
|
|
6078
6589
|
if (vErrors === null) {
|
|
6079
|
-
vErrors = [
|
|
6590
|
+
vErrors = [err131];
|
|
6080
6591
|
} else {
|
|
6081
|
-
vErrors.push(
|
|
6592
|
+
vErrors.push(err131);
|
|
6082
6593
|
}
|
|
6083
6594
|
errors++;
|
|
6084
6595
|
}
|
|
6085
6596
|
}
|
|
6086
6597
|
if (data.type !== void 0) {
|
|
6087
|
-
if ("
|
|
6088
|
-
const
|
|
6598
|
+
if ("line" !== data.type) {
|
|
6599
|
+
const err132 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "line" }, message: "must be equal to constant" };
|
|
6089
6600
|
if (vErrors === null) {
|
|
6090
|
-
vErrors = [
|
|
6601
|
+
vErrors = [err132];
|
|
6091
6602
|
} else {
|
|
6092
|
-
vErrors.push(
|
|
6603
|
+
vErrors.push(err132);
|
|
6093
6604
|
}
|
|
6094
6605
|
errors++;
|
|
6095
6606
|
}
|
|
6096
6607
|
}
|
|
6097
|
-
if (data.
|
|
6098
|
-
let data47 = data.
|
|
6608
|
+
if (data.box !== void 0) {
|
|
6609
|
+
let data47 = data.box;
|
|
6099
6610
|
if (typeof data47 === "string") {
|
|
6100
|
-
if (
|
|
6101
|
-
const
|
|
6611
|
+
if (!pattern0.test(data47)) {
|
|
6612
|
+
const err133 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6102
6613
|
if (vErrors === null) {
|
|
6103
|
-
vErrors = [
|
|
6614
|
+
vErrors = [err133];
|
|
6104
6615
|
} else {
|
|
6105
|
-
vErrors.push(
|
|
6616
|
+
vErrors.push(err133);
|
|
6106
6617
|
}
|
|
6107
6618
|
errors++;
|
|
6108
6619
|
}
|
|
6109
6620
|
} else {
|
|
6110
|
-
const
|
|
6621
|
+
const err134 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6111
6622
|
if (vErrors === null) {
|
|
6112
|
-
vErrors = [
|
|
6623
|
+
vErrors = [err134];
|
|
6113
6624
|
} else {
|
|
6114
|
-
vErrors.push(
|
|
6625
|
+
vErrors.push(err134);
|
|
6115
6626
|
}
|
|
6116
6627
|
errors++;
|
|
6117
6628
|
}
|
|
6118
6629
|
}
|
|
6119
|
-
if (data.
|
|
6120
|
-
let data48 = data.
|
|
6121
|
-
if (
|
|
6122
|
-
if (
|
|
6123
|
-
const
|
|
6630
|
+
if (data.items !== void 0) {
|
|
6631
|
+
let data48 = data.items;
|
|
6632
|
+
if (Array.isArray(data48)) {
|
|
6633
|
+
if (data48.length > 12) {
|
|
6634
|
+
const err135 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/maxItems", keyword: "maxItems", params: { limit: 12 }, message: "must NOT have more than 12 items" };
|
|
6124
6635
|
if (vErrors === null) {
|
|
6125
|
-
vErrors = [
|
|
6636
|
+
vErrors = [err135];
|
|
6126
6637
|
} else {
|
|
6127
|
-
vErrors.push(
|
|
6638
|
+
vErrors.push(err135);
|
|
6128
6639
|
}
|
|
6129
6640
|
errors++;
|
|
6130
6641
|
}
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
if (vErrors === null) {
|
|
6134
|
-
vErrors = [err138];
|
|
6135
|
-
} else {
|
|
6136
|
-
vErrors.push(err138);
|
|
6137
|
-
}
|
|
6138
|
-
errors++;
|
|
6139
|
-
}
|
|
6140
|
-
}
|
|
6141
|
-
if (data.tag !== void 0) {
|
|
6142
|
-
let data49 = data.tag;
|
|
6143
|
-
if (typeof data49 === "string") {
|
|
6144
|
-
if (func3(data49) < 1) {
|
|
6145
|
-
const err139 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
6642
|
+
if (data48.length < 1) {
|
|
6643
|
+
const err136 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
6146
6644
|
if (vErrors === null) {
|
|
6147
|
-
vErrors = [
|
|
6645
|
+
vErrors = [err136];
|
|
6148
6646
|
} else {
|
|
6149
|
-
vErrors.push(
|
|
6647
|
+
vErrors.push(err136);
|
|
6150
6648
|
}
|
|
6151
6649
|
errors++;
|
|
6152
6650
|
}
|
|
6651
|
+
const len1 = data48.length;
|
|
6652
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
6653
|
+
let data49 = data48[i1];
|
|
6654
|
+
if (typeof data49 === "string") {
|
|
6655
|
+
if (!pattern0.test(data49)) {
|
|
6656
|
+
const err137 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6657
|
+
if (vErrors === null) {
|
|
6658
|
+
vErrors = [err137];
|
|
6659
|
+
} else {
|
|
6660
|
+
vErrors.push(err137);
|
|
6661
|
+
}
|
|
6662
|
+
errors++;
|
|
6663
|
+
}
|
|
6664
|
+
} else {
|
|
6665
|
+
const err138 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6666
|
+
if (vErrors === null) {
|
|
6667
|
+
vErrors = [err138];
|
|
6668
|
+
} else {
|
|
6669
|
+
vErrors.push(err138);
|
|
6670
|
+
}
|
|
6671
|
+
errors++;
|
|
6672
|
+
}
|
|
6673
|
+
}
|
|
6153
6674
|
} else {
|
|
6154
|
-
const
|
|
6675
|
+
const err139 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6155
6676
|
if (vErrors === null) {
|
|
6156
|
-
vErrors = [
|
|
6677
|
+
vErrors = [err139];
|
|
6157
6678
|
} else {
|
|
6158
|
-
vErrors.push(
|
|
6679
|
+
vErrors.push(err139);
|
|
6159
6680
|
}
|
|
6160
6681
|
errors++;
|
|
6161
6682
|
}
|
|
6162
6683
|
}
|
|
6163
6684
|
} else {
|
|
6164
|
-
const
|
|
6685
|
+
const err140 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6165
6686
|
if (vErrors === null) {
|
|
6166
|
-
vErrors = [
|
|
6687
|
+
vErrors = [err140];
|
|
6167
6688
|
} else {
|
|
6168
|
-
vErrors.push(
|
|
6689
|
+
vErrors.push(err140);
|
|
6169
6690
|
}
|
|
6170
6691
|
errors++;
|
|
6171
6692
|
}
|
|
6172
|
-
} else {
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6693
|
+
} else if (tag0 === "seal") {
|
|
6694
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6695
|
+
if (data.type === void 0) {
|
|
6696
|
+
const err141 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6697
|
+
if (vErrors === null) {
|
|
6698
|
+
vErrors = [err141];
|
|
6699
|
+
} else {
|
|
6700
|
+
vErrors.push(err141);
|
|
6701
|
+
}
|
|
6702
|
+
errors++;
|
|
6703
|
+
}
|
|
6704
|
+
if (data.box === void 0) {
|
|
6705
|
+
const err142 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6706
|
+
if (vErrors === null) {
|
|
6707
|
+
vErrors = [err142];
|
|
6708
|
+
} else {
|
|
6709
|
+
vErrors.push(err142);
|
|
6710
|
+
}
|
|
6711
|
+
errors++;
|
|
6712
|
+
}
|
|
6713
|
+
for (const key11 in data) {
|
|
6714
|
+
if (!(key11 === "type" || key11 === "box")) {
|
|
6715
|
+
const err143 = { instancePath, schemaPath: "#/oneOf/11/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key11 }, message: "must NOT have additional properties" };
|
|
6716
|
+
if (vErrors === null) {
|
|
6717
|
+
vErrors = [err143];
|
|
6718
|
+
} else {
|
|
6719
|
+
vErrors.push(err143);
|
|
6720
|
+
}
|
|
6721
|
+
errors++;
|
|
6722
|
+
}
|
|
6723
|
+
}
|
|
6724
|
+
if (data.type !== void 0) {
|
|
6725
|
+
if ("seal" !== data.type) {
|
|
6726
|
+
const err144 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/11/properties/type/const", keyword: "const", params: { allowedValue: "seal" }, message: "must be equal to constant" };
|
|
6727
|
+
if (vErrors === null) {
|
|
6728
|
+
vErrors = [err144];
|
|
6729
|
+
} else {
|
|
6730
|
+
vErrors.push(err144);
|
|
6731
|
+
}
|
|
6732
|
+
errors++;
|
|
6733
|
+
}
|
|
6734
|
+
}
|
|
6735
|
+
if (data.box !== void 0) {
|
|
6736
|
+
let data51 = data.box;
|
|
6737
|
+
if (typeof data51 === "string") {
|
|
6738
|
+
if (!pattern0.test(data51)) {
|
|
6739
|
+
const err145 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6740
|
+
if (vErrors === null) {
|
|
6741
|
+
vErrors = [err145];
|
|
6742
|
+
} else {
|
|
6743
|
+
vErrors.push(err145);
|
|
6744
|
+
}
|
|
6745
|
+
errors++;
|
|
6746
|
+
}
|
|
6747
|
+
} else {
|
|
6748
|
+
const err146 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6749
|
+
if (vErrors === null) {
|
|
6750
|
+
vErrors = [err146];
|
|
6751
|
+
} else {
|
|
6752
|
+
vErrors.push(err146);
|
|
6753
|
+
}
|
|
6754
|
+
errors++;
|
|
6755
|
+
}
|
|
6756
|
+
}
|
|
6757
|
+
} else {
|
|
6758
|
+
const err147 = { instancePath, schemaPath: "#/oneOf/11/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6759
|
+
if (vErrors === null) {
|
|
6760
|
+
vErrors = [err147];
|
|
6761
|
+
} else {
|
|
6762
|
+
vErrors.push(err147);
|
|
6763
|
+
}
|
|
6764
|
+
errors++;
|
|
6765
|
+
}
|
|
6766
|
+
} else if (tag0 === "open") {
|
|
6767
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6768
|
+
if (data.type === void 0) {
|
|
6769
|
+
const err148 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6770
|
+
if (vErrors === null) {
|
|
6771
|
+
vErrors = [err148];
|
|
6772
|
+
} else {
|
|
6773
|
+
vErrors.push(err148);
|
|
6774
|
+
}
|
|
6775
|
+
errors++;
|
|
6776
|
+
}
|
|
6777
|
+
if (data.box === void 0) {
|
|
6778
|
+
const err149 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6779
|
+
if (vErrors === null) {
|
|
6780
|
+
vErrors = [err149];
|
|
6781
|
+
} else {
|
|
6782
|
+
vErrors.push(err149);
|
|
6783
|
+
}
|
|
6784
|
+
errors++;
|
|
6785
|
+
}
|
|
6786
|
+
for (const key12 in data) {
|
|
6787
|
+
if (!(key12 === "type" || key12 === "box")) {
|
|
6788
|
+
const err150 = { instancePath, schemaPath: "#/oneOf/12/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key12 }, message: "must NOT have additional properties" };
|
|
6789
|
+
if (vErrors === null) {
|
|
6790
|
+
vErrors = [err150];
|
|
6791
|
+
} else {
|
|
6792
|
+
vErrors.push(err150);
|
|
6793
|
+
}
|
|
6794
|
+
errors++;
|
|
6795
|
+
}
|
|
6796
|
+
}
|
|
6797
|
+
if (data.type !== void 0) {
|
|
6798
|
+
if ("open" !== data.type) {
|
|
6799
|
+
const err151 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/12/properties/type/const", keyword: "const", params: { allowedValue: "open" }, message: "must be equal to constant" };
|
|
6800
|
+
if (vErrors === null) {
|
|
6801
|
+
vErrors = [err151];
|
|
6802
|
+
} else {
|
|
6803
|
+
vErrors.push(err151);
|
|
6804
|
+
}
|
|
6805
|
+
errors++;
|
|
6806
|
+
}
|
|
6807
|
+
}
|
|
6808
|
+
if (data.box !== void 0) {
|
|
6809
|
+
let data53 = data.box;
|
|
6810
|
+
if (typeof data53 === "string") {
|
|
6811
|
+
if (!pattern0.test(data53)) {
|
|
6812
|
+
const err152 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6813
|
+
if (vErrors === null) {
|
|
6814
|
+
vErrors = [err152];
|
|
6815
|
+
} else {
|
|
6816
|
+
vErrors.push(err152);
|
|
6817
|
+
}
|
|
6818
|
+
errors++;
|
|
6819
|
+
}
|
|
6820
|
+
} else {
|
|
6821
|
+
const err153 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6822
|
+
if (vErrors === null) {
|
|
6823
|
+
vErrors = [err153];
|
|
6824
|
+
} else {
|
|
6825
|
+
vErrors.push(err153);
|
|
6826
|
+
}
|
|
6827
|
+
errors++;
|
|
6828
|
+
}
|
|
6829
|
+
}
|
|
6830
|
+
} else {
|
|
6831
|
+
const err154 = { instancePath, schemaPath: "#/oneOf/12/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6832
|
+
if (vErrors === null) {
|
|
6833
|
+
vErrors = [err154];
|
|
6834
|
+
} else {
|
|
6835
|
+
vErrors.push(err154);
|
|
6836
|
+
}
|
|
6837
|
+
errors++;
|
|
6838
|
+
}
|
|
6839
|
+
} else if (tag0 === "pick") {
|
|
6840
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6841
|
+
if (data.type === void 0) {
|
|
6842
|
+
const err155 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6843
|
+
if (vErrors === null) {
|
|
6844
|
+
vErrors = [err155];
|
|
6845
|
+
} else {
|
|
6846
|
+
vErrors.push(err155);
|
|
6847
|
+
}
|
|
6848
|
+
errors++;
|
|
6849
|
+
}
|
|
6850
|
+
if (data.box === void 0) {
|
|
6851
|
+
const err156 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6852
|
+
if (vErrors === null) {
|
|
6853
|
+
vErrors = [err156];
|
|
6854
|
+
} else {
|
|
6855
|
+
vErrors.push(err156);
|
|
6856
|
+
}
|
|
6857
|
+
errors++;
|
|
6858
|
+
}
|
|
6859
|
+
for (const key13 in data) {
|
|
6860
|
+
if (!(key13 === "type" || key13 === "box")) {
|
|
6861
|
+
const err157 = { instancePath, schemaPath: "#/oneOf/13/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key13 }, message: "must NOT have additional properties" };
|
|
6862
|
+
if (vErrors === null) {
|
|
6863
|
+
vErrors = [err157];
|
|
6864
|
+
} else {
|
|
6865
|
+
vErrors.push(err157);
|
|
6866
|
+
}
|
|
6867
|
+
errors++;
|
|
6868
|
+
}
|
|
6869
|
+
}
|
|
6870
|
+
if (data.type !== void 0) {
|
|
6871
|
+
if ("pick" !== data.type) {
|
|
6872
|
+
const err158 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/13/properties/type/const", keyword: "const", params: { allowedValue: "pick" }, message: "must be equal to constant" };
|
|
6873
|
+
if (vErrors === null) {
|
|
6874
|
+
vErrors = [err158];
|
|
6875
|
+
} else {
|
|
6876
|
+
vErrors.push(err158);
|
|
6877
|
+
}
|
|
6878
|
+
errors++;
|
|
6879
|
+
}
|
|
6880
|
+
}
|
|
6881
|
+
if (data.box !== void 0) {
|
|
6882
|
+
let data55 = data.box;
|
|
6883
|
+
if (typeof data55 === "string") {
|
|
6884
|
+
if (!pattern0.test(data55)) {
|
|
6885
|
+
const err159 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6886
|
+
if (vErrors === null) {
|
|
6887
|
+
vErrors = [err159];
|
|
6888
|
+
} else {
|
|
6889
|
+
vErrors.push(err159);
|
|
6890
|
+
}
|
|
6891
|
+
errors++;
|
|
6892
|
+
}
|
|
6893
|
+
} else {
|
|
6894
|
+
const err160 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6895
|
+
if (vErrors === null) {
|
|
6896
|
+
vErrors = [err160];
|
|
6897
|
+
} else {
|
|
6898
|
+
vErrors.push(err160);
|
|
6899
|
+
}
|
|
6900
|
+
errors++;
|
|
6901
|
+
}
|
|
6902
|
+
}
|
|
6903
|
+
} else {
|
|
6904
|
+
const err161 = { instancePath, schemaPath: "#/oneOf/13/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6905
|
+
if (vErrors === null) {
|
|
6906
|
+
vErrors = [err161];
|
|
6907
|
+
} else {
|
|
6908
|
+
vErrors.push(err161);
|
|
6909
|
+
}
|
|
6910
|
+
errors++;
|
|
6911
|
+
}
|
|
6912
|
+
} else if (tag0 === "stamp") {
|
|
6913
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6914
|
+
if (data.type === void 0) {
|
|
6915
|
+
const err162 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6916
|
+
if (vErrors === null) {
|
|
6917
|
+
vErrors = [err162];
|
|
6918
|
+
} else {
|
|
6919
|
+
vErrors.push(err162);
|
|
6920
|
+
}
|
|
6921
|
+
errors++;
|
|
6922
|
+
}
|
|
6923
|
+
if (data.box === void 0) {
|
|
6924
|
+
const err163 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6925
|
+
if (vErrors === null) {
|
|
6926
|
+
vErrors = [err163];
|
|
6927
|
+
} else {
|
|
6928
|
+
vErrors.push(err163);
|
|
6929
|
+
}
|
|
6930
|
+
errors++;
|
|
6931
|
+
}
|
|
6932
|
+
if (data.text === void 0) {
|
|
6933
|
+
const err164 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
|
|
6934
|
+
if (vErrors === null) {
|
|
6935
|
+
vErrors = [err164];
|
|
6936
|
+
} else {
|
|
6937
|
+
vErrors.push(err164);
|
|
6938
|
+
}
|
|
6939
|
+
errors++;
|
|
6940
|
+
}
|
|
6941
|
+
for (const key14 in data) {
|
|
6942
|
+
if (!(key14 === "type" || key14 === "box" || key14 === "text")) {
|
|
6943
|
+
const err165 = { instancePath, schemaPath: "#/oneOf/14/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key14 }, message: "must NOT have additional properties" };
|
|
6944
|
+
if (vErrors === null) {
|
|
6945
|
+
vErrors = [err165];
|
|
6946
|
+
} else {
|
|
6947
|
+
vErrors.push(err165);
|
|
6948
|
+
}
|
|
6949
|
+
errors++;
|
|
6950
|
+
}
|
|
6951
|
+
}
|
|
6952
|
+
if (data.type !== void 0) {
|
|
6953
|
+
if ("stamp" !== data.type) {
|
|
6954
|
+
const err166 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/14/properties/type/const", keyword: "const", params: { allowedValue: "stamp" }, message: "must be equal to constant" };
|
|
6955
|
+
if (vErrors === null) {
|
|
6956
|
+
vErrors = [err166];
|
|
6957
|
+
} else {
|
|
6958
|
+
vErrors.push(err166);
|
|
6959
|
+
}
|
|
6960
|
+
errors++;
|
|
6961
|
+
}
|
|
6962
|
+
}
|
|
6963
|
+
if (data.box !== void 0) {
|
|
6964
|
+
let data57 = data.box;
|
|
6965
|
+
if (typeof data57 === "string") {
|
|
6966
|
+
if (!pattern0.test(data57)) {
|
|
6967
|
+
const err167 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6968
|
+
if (vErrors === null) {
|
|
6969
|
+
vErrors = [err167];
|
|
6970
|
+
} else {
|
|
6971
|
+
vErrors.push(err167);
|
|
6972
|
+
}
|
|
6973
|
+
errors++;
|
|
6974
|
+
}
|
|
6975
|
+
} else {
|
|
6976
|
+
const err168 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6977
|
+
if (vErrors === null) {
|
|
6978
|
+
vErrors = [err168];
|
|
6979
|
+
} else {
|
|
6980
|
+
vErrors.push(err168);
|
|
6981
|
+
}
|
|
6982
|
+
errors++;
|
|
6983
|
+
}
|
|
6984
|
+
}
|
|
6985
|
+
if (data.text !== void 0) {
|
|
6986
|
+
let data58 = data.text;
|
|
6987
|
+
if (typeof data58 === "string") {
|
|
6988
|
+
if (func3(data58) < 1) {
|
|
6989
|
+
const err169 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
6990
|
+
if (vErrors === null) {
|
|
6991
|
+
vErrors = [err169];
|
|
6992
|
+
} else {
|
|
6993
|
+
vErrors.push(err169);
|
|
6994
|
+
}
|
|
6995
|
+
errors++;
|
|
6996
|
+
}
|
|
6997
|
+
} else {
|
|
6998
|
+
const err170 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6999
|
+
if (vErrors === null) {
|
|
7000
|
+
vErrors = [err170];
|
|
7001
|
+
} else {
|
|
7002
|
+
vErrors.push(err170);
|
|
7003
|
+
}
|
|
7004
|
+
errors++;
|
|
7005
|
+
}
|
|
7006
|
+
}
|
|
7007
|
+
} else {
|
|
7008
|
+
const err171 = { instancePath, schemaPath: "#/oneOf/14/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
7009
|
+
if (vErrors === null) {
|
|
7010
|
+
vErrors = [err171];
|
|
7011
|
+
} else {
|
|
7012
|
+
vErrors.push(err171);
|
|
7013
|
+
}
|
|
7014
|
+
errors++;
|
|
7015
|
+
}
|
|
7016
|
+
} else if (tag0 === "strip") {
|
|
7017
|
+
const _errs185 = errors;
|
|
7018
|
+
let valid75 = false;
|
|
7019
|
+
const _errs186 = errors;
|
|
7020
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7021
|
+
if (data.value === void 0) {
|
|
7022
|
+
const err172 = { instancePath, schemaPath: "#/oneOf/15/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
|
|
7023
|
+
if (vErrors === null) {
|
|
7024
|
+
vErrors = [err172];
|
|
7025
|
+
} else {
|
|
7026
|
+
vErrors.push(err172);
|
|
7027
|
+
}
|
|
7028
|
+
errors++;
|
|
7029
|
+
}
|
|
7030
|
+
}
|
|
7031
|
+
var _valid0 = _errs186 === errors;
|
|
7032
|
+
valid75 = valid75 || _valid0;
|
|
7033
|
+
if (!valid75) {
|
|
7034
|
+
const _errs187 = errors;
|
|
7035
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7036
|
+
if (data.tag === void 0) {
|
|
7037
|
+
const err173 = { instancePath, schemaPath: "#/oneOf/15/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
|
|
7038
|
+
if (vErrors === null) {
|
|
7039
|
+
vErrors = [err173];
|
|
7040
|
+
} else {
|
|
7041
|
+
vErrors.push(err173);
|
|
7042
|
+
}
|
|
7043
|
+
errors++;
|
|
7044
|
+
}
|
|
7045
|
+
}
|
|
7046
|
+
var _valid0 = _errs187 === errors;
|
|
7047
|
+
valid75 = valid75 || _valid0;
|
|
7048
|
+
}
|
|
7049
|
+
if (!valid75) {
|
|
7050
|
+
const err174 = { instancePath, schemaPath: "#/oneOf/15/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
7051
|
+
if (vErrors === null) {
|
|
7052
|
+
vErrors = [err174];
|
|
7053
|
+
} else {
|
|
7054
|
+
vErrors.push(err174);
|
|
7055
|
+
}
|
|
7056
|
+
errors++;
|
|
7057
|
+
} else {
|
|
7058
|
+
errors = _errs185;
|
|
7059
|
+
if (vErrors !== null) {
|
|
7060
|
+
if (_errs185) {
|
|
7061
|
+
vErrors.length = _errs185;
|
|
7062
|
+
} else {
|
|
7063
|
+
vErrors = null;
|
|
7064
|
+
}
|
|
7065
|
+
}
|
|
7066
|
+
}
|
|
7067
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7068
|
+
if (data.type === void 0) {
|
|
7069
|
+
const err175 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
7070
|
+
if (vErrors === null) {
|
|
7071
|
+
vErrors = [err175];
|
|
7072
|
+
} else {
|
|
7073
|
+
vErrors.push(err175);
|
|
7074
|
+
}
|
|
7075
|
+
errors++;
|
|
7076
|
+
}
|
|
7077
|
+
if (data.field === void 0) {
|
|
7078
|
+
const err176 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
|
|
7079
|
+
if (vErrors === null) {
|
|
7080
|
+
vErrors = [err176];
|
|
7081
|
+
} else {
|
|
7082
|
+
vErrors.push(err176);
|
|
7083
|
+
}
|
|
7084
|
+
errors++;
|
|
7085
|
+
}
|
|
7086
|
+
for (const key15 in data) {
|
|
7087
|
+
if (!(key15 === "type" || key15 === "field" || key15 === "value" || key15 === "tag")) {
|
|
7088
|
+
const err177 = { instancePath, schemaPath: "#/oneOf/15/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key15 }, message: "must NOT have additional properties" };
|
|
7089
|
+
if (vErrors === null) {
|
|
7090
|
+
vErrors = [err177];
|
|
7091
|
+
} else {
|
|
7092
|
+
vErrors.push(err177);
|
|
7093
|
+
}
|
|
7094
|
+
errors++;
|
|
7095
|
+
}
|
|
7096
|
+
}
|
|
7097
|
+
if (data.type !== void 0) {
|
|
7098
|
+
if ("strip" !== data.type) {
|
|
7099
|
+
const err178 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/15/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
|
|
7100
|
+
if (vErrors === null) {
|
|
7101
|
+
vErrors = [err178];
|
|
7102
|
+
} else {
|
|
7103
|
+
vErrors.push(err178);
|
|
7104
|
+
}
|
|
7105
|
+
errors++;
|
|
7106
|
+
}
|
|
7107
|
+
}
|
|
7108
|
+
if (data.field !== void 0) {
|
|
7109
|
+
let data60 = data.field;
|
|
7110
|
+
if (typeof data60 === "string") {
|
|
7111
|
+
if (func3(data60) < 1) {
|
|
7112
|
+
const err179 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
7113
|
+
if (vErrors === null) {
|
|
7114
|
+
vErrors = [err179];
|
|
7115
|
+
} else {
|
|
7116
|
+
vErrors.push(err179);
|
|
7117
|
+
}
|
|
7118
|
+
errors++;
|
|
7119
|
+
}
|
|
7120
|
+
} else {
|
|
7121
|
+
const err180 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
7122
|
+
if (vErrors === null) {
|
|
7123
|
+
vErrors = [err180];
|
|
7124
|
+
} else {
|
|
7125
|
+
vErrors.push(err180);
|
|
7126
|
+
}
|
|
7127
|
+
errors++;
|
|
7128
|
+
}
|
|
7129
|
+
}
|
|
7130
|
+
if (data.value !== void 0) {
|
|
7131
|
+
let data61 = data.value;
|
|
7132
|
+
if (typeof data61 === "string") {
|
|
7133
|
+
if (func3(data61) < 1) {
|
|
7134
|
+
const err181 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
7135
|
+
if (vErrors === null) {
|
|
7136
|
+
vErrors = [err181];
|
|
7137
|
+
} else {
|
|
7138
|
+
vErrors.push(err181);
|
|
7139
|
+
}
|
|
7140
|
+
errors++;
|
|
7141
|
+
}
|
|
7142
|
+
} else {
|
|
7143
|
+
const err182 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
7144
|
+
if (vErrors === null) {
|
|
7145
|
+
vErrors = [err182];
|
|
7146
|
+
} else {
|
|
7147
|
+
vErrors.push(err182);
|
|
7148
|
+
}
|
|
7149
|
+
errors++;
|
|
7150
|
+
}
|
|
7151
|
+
}
|
|
7152
|
+
if (data.tag !== void 0) {
|
|
7153
|
+
let data62 = data.tag;
|
|
7154
|
+
if (typeof data62 === "string") {
|
|
7155
|
+
if (func3(data62) < 1) {
|
|
7156
|
+
const err183 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
7157
|
+
if (vErrors === null) {
|
|
7158
|
+
vErrors = [err183];
|
|
7159
|
+
} else {
|
|
7160
|
+
vErrors.push(err183);
|
|
7161
|
+
}
|
|
7162
|
+
errors++;
|
|
7163
|
+
}
|
|
7164
|
+
} else {
|
|
7165
|
+
const err184 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
7166
|
+
if (vErrors === null) {
|
|
7167
|
+
vErrors = [err184];
|
|
7168
|
+
} else {
|
|
7169
|
+
vErrors.push(err184);
|
|
7170
|
+
}
|
|
7171
|
+
errors++;
|
|
7172
|
+
}
|
|
7173
|
+
}
|
|
7174
|
+
} else {
|
|
7175
|
+
const err185 = { instancePath, schemaPath: "#/oneOf/15/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
7176
|
+
if (vErrors === null) {
|
|
7177
|
+
vErrors = [err185];
|
|
7178
|
+
} else {
|
|
7179
|
+
vErrors.push(err185);
|
|
7180
|
+
}
|
|
7181
|
+
errors++;
|
|
7182
|
+
}
|
|
7183
|
+
} else {
|
|
7184
|
+
const err186 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
|
|
7185
|
+
if (vErrors === null) {
|
|
7186
|
+
vErrors = [err186];
|
|
7187
|
+
} else {
|
|
7188
|
+
vErrors.push(err186);
|
|
7189
|
+
}
|
|
7190
|
+
errors++;
|
|
7191
|
+
}
|
|
7192
|
+
} else {
|
|
7193
|
+
const err187 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
|
|
7194
|
+
if (vErrors === null) {
|
|
7195
|
+
vErrors = [err187];
|
|
7196
|
+
} else {
|
|
7197
|
+
vErrors.push(err187);
|
|
7198
|
+
}
|
|
6188
7199
|
errors++;
|
|
6189
7200
|
}
|
|
6190
7201
|
} else {
|
|
6191
|
-
const
|
|
7202
|
+
const err188 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6192
7203
|
if (vErrors === null) {
|
|
6193
|
-
vErrors = [
|
|
7204
|
+
vErrors = [err188];
|
|
6194
7205
|
} else {
|
|
6195
|
-
vErrors.push(
|
|
7206
|
+
vErrors.push(err188);
|
|
6196
7207
|
}
|
|
6197
7208
|
errors++;
|
|
6198
7209
|
}
|
|
6199
|
-
|
|
7210
|
+
validate41.errors = vErrors;
|
|
6200
7211
|
return errors === 0;
|
|
6201
7212
|
}
|
|
6202
|
-
function
|
|
7213
|
+
function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6203
7214
|
let vErrors = null;
|
|
6204
7215
|
let errors = 0;
|
|
6205
7216
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6321,8 +7332,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6321
7332
|
}
|
|
6322
7333
|
const len0 = data3.length;
|
|
6323
7334
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
6324
|
-
if (!
|
|
6325
|
-
vErrors = vErrors === null ?
|
|
7335
|
+
if (!validate39(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
|
|
7336
|
+
vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
|
|
6326
7337
|
errors = vErrors.length;
|
|
6327
7338
|
}
|
|
6328
7339
|
}
|
|
@@ -6341,8 +7352,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6341
7352
|
if (Array.isArray(data5)) {
|
|
6342
7353
|
const len1 = data5.length;
|
|
6343
7354
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
6344
|
-
if (!
|
|
6345
|
-
vErrors = vErrors === null ?
|
|
7355
|
+
if (!validate41(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
|
|
7356
|
+
vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
|
|
6346
7357
|
errors = vErrors.length;
|
|
6347
7358
|
}
|
|
6348
7359
|
}
|
|
@@ -6365,10 +7376,10 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6365
7376
|
}
|
|
6366
7377
|
errors++;
|
|
6367
7378
|
}
|
|
6368
|
-
|
|
7379
|
+
validate38.errors = vErrors;
|
|
6369
7380
|
return errors === 0;
|
|
6370
7381
|
}
|
|
6371
|
-
function
|
|
7382
|
+
function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6372
7383
|
let vErrors = null;
|
|
6373
7384
|
let errors = 0;
|
|
6374
7385
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6446,10 +7457,10 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6446
7457
|
}
|
|
6447
7458
|
errors++;
|
|
6448
7459
|
}
|
|
6449
|
-
|
|
7460
|
+
validate46.errors = vErrors;
|
|
6450
7461
|
return errors === 0;
|
|
6451
7462
|
}
|
|
6452
|
-
function
|
|
7463
|
+
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6453
7464
|
let vErrors = null;
|
|
6454
7465
|
let errors = 0;
|
|
6455
7466
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6557,10 +7568,10 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6557
7568
|
}
|
|
6558
7569
|
errors++;
|
|
6559
7570
|
}
|
|
6560
|
-
|
|
7571
|
+
validate49.errors = vErrors;
|
|
6561
7572
|
return errors === 0;
|
|
6562
7573
|
}
|
|
6563
|
-
function
|
|
7574
|
+
function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6564
7575
|
let vErrors = null;
|
|
6565
7576
|
let errors = 0;
|
|
6566
7577
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6598,8 +7609,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6598
7609
|
}
|
|
6599
7610
|
const len0 = data0.length;
|
|
6600
7611
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
6601
|
-
if (!
|
|
6602
|
-
vErrors = vErrors === null ?
|
|
7612
|
+
if (!validate49(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
7613
|
+
vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
|
|
6603
7614
|
errors = vErrors.length;
|
|
6604
7615
|
}
|
|
6605
7616
|
}
|
|
@@ -6622,10 +7633,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6622
7633
|
}
|
|
6623
7634
|
errors++;
|
|
6624
7635
|
}
|
|
6625
|
-
|
|
7636
|
+
validate48.errors = vErrors;
|
|
6626
7637
|
return errors === 0;
|
|
6627
7638
|
}
|
|
6628
|
-
function
|
|
7639
|
+
function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6629
7640
|
let vErrors = null;
|
|
6630
7641
|
let errors = 0;
|
|
6631
7642
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6702,10 +7713,10 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6702
7713
|
}
|
|
6703
7714
|
errors++;
|
|
6704
7715
|
}
|
|
6705
|
-
|
|
7716
|
+
validate53.errors = vErrors;
|
|
6706
7717
|
return errors === 0;
|
|
6707
7718
|
}
|
|
6708
|
-
function
|
|
7719
|
+
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6709
7720
|
let vErrors = null;
|
|
6710
7721
|
let errors = 0;
|
|
6711
7722
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6743,8 +7754,8 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6743
7754
|
}
|
|
6744
7755
|
const len0 = data0.length;
|
|
6745
7756
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
6746
|
-
if (!
|
|
6747
|
-
vErrors = vErrors === null ?
|
|
7757
|
+
if (!validate53(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
7758
|
+
vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
|
|
6748
7759
|
errors = vErrors.length;
|
|
6749
7760
|
}
|
|
6750
7761
|
}
|
|
@@ -6767,11 +7778,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6767
7778
|
}
|
|
6768
7779
|
errors++;
|
|
6769
7780
|
}
|
|
6770
|
-
|
|
7781
|
+
validate52.errors = vErrors;
|
|
6771
7782
|
return errors === 0;
|
|
6772
7783
|
}
|
|
6773
|
-
var
|
|
6774
|
-
function
|
|
7784
|
+
var pattern33 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
|
|
7785
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6775
7786
|
let vErrors = null;
|
|
6776
7787
|
let errors = 0;
|
|
6777
7788
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6838,7 +7849,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6838
7849
|
if (data.length !== void 0) {
|
|
6839
7850
|
let data1 = data.length;
|
|
6840
7851
|
if (typeof data1 === "string") {
|
|
6841
|
-
if (!
|
|
7852
|
+
if (!pattern33.test(data1)) {
|
|
6842
7853
|
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)$"' };
|
|
6843
7854
|
if (vErrors === null) {
|
|
6844
7855
|
vErrors = [err6];
|
|
@@ -6912,10 +7923,10 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6912
7923
|
}
|
|
6913
7924
|
errors++;
|
|
6914
7925
|
}
|
|
6915
|
-
|
|
7926
|
+
validate57.errors = vErrors;
|
|
6916
7927
|
return errors === 0;
|
|
6917
7928
|
}
|
|
6918
|
-
function
|
|
7929
|
+
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6919
7930
|
let vErrors = null;
|
|
6920
7931
|
let errors = 0;
|
|
6921
7932
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7025,10 +8036,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7025
8036
|
}
|
|
7026
8037
|
errors++;
|
|
7027
8038
|
}
|
|
7028
|
-
|
|
8039
|
+
validate59.errors = vErrors;
|
|
7029
8040
|
return errors === 0;
|
|
7030
8041
|
}
|
|
7031
|
-
function
|
|
8042
|
+
function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
7032
8043
|
let vErrors = null;
|
|
7033
8044
|
let errors = 0;
|
|
7034
8045
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7108,7 +8119,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7108
8119
|
if (data.color !== void 0) {
|
|
7109
8120
|
let data2 = data.color;
|
|
7110
8121
|
if (!(data2 === "blue" || data2 === "amber" || data2 === "green" || data2 === "violet" || data2 === "rose" || data2 === "slate" || data2 === "coin")) {
|
|
7111
|
-
const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
8122
|
+
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" };
|
|
7112
8123
|
if (vErrors === null) {
|
|
7113
8124
|
vErrors = [err7];
|
|
7114
8125
|
} else {
|
|
@@ -7163,10 +8174,10 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7163
8174
|
}
|
|
7164
8175
|
errors++;
|
|
7165
8176
|
}
|
|
7166
|
-
|
|
8177
|
+
validate61.errors = vErrors;
|
|
7167
8178
|
return errors === 0;
|
|
7168
8179
|
}
|
|
7169
|
-
function
|
|
8180
|
+
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
7170
8181
|
let vErrors = null;
|
|
7171
8182
|
let errors = 0;
|
|
7172
8183
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7253,10 +8264,10 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7253
8264
|
}
|
|
7254
8265
|
errors++;
|
|
7255
8266
|
}
|
|
7256
|
-
|
|
8267
|
+
validate63.errors = vErrors;
|
|
7257
8268
|
return errors === 0;
|
|
7258
8269
|
}
|
|
7259
|
-
function
|
|
8270
|
+
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
7260
8271
|
let vErrors = null;
|
|
7261
8272
|
let errors = 0;
|
|
7262
8273
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7344,10 +8355,10 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7344
8355
|
}
|
|
7345
8356
|
errors++;
|
|
7346
8357
|
}
|
|
7347
|
-
|
|
8358
|
+
validate65.errors = vErrors;
|
|
7348
8359
|
return errors === 0;
|
|
7349
8360
|
}
|
|
7350
|
-
function
|
|
8361
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
7351
8362
|
let vErrors = null;
|
|
7352
8363
|
let errors = 0;
|
|
7353
8364
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7381,14 +8392,14 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7381
8392
|
}
|
|
7382
8393
|
}
|
|
7383
8394
|
if (data.scale !== void 0) {
|
|
7384
|
-
if (!
|
|
7385
|
-
vErrors = vErrors === null ?
|
|
8395
|
+
if (!validate57(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
|
|
8396
|
+
vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
|
|
7386
8397
|
errors = vErrors.length;
|
|
7387
8398
|
}
|
|
7388
8399
|
}
|
|
7389
8400
|
if (data.period !== void 0) {
|
|
7390
|
-
if (!
|
|
7391
|
-
vErrors = vErrors === null ?
|
|
8401
|
+
if (!validate59(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
|
|
8402
|
+
vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
|
|
7392
8403
|
errors = vErrors.length;
|
|
7393
8404
|
}
|
|
7394
8405
|
}
|
|
@@ -7406,8 +8417,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7406
8417
|
}
|
|
7407
8418
|
const len0 = data2.length;
|
|
7408
8419
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
7409
|
-
if (!
|
|
7410
|
-
vErrors = vErrors === null ?
|
|
8420
|
+
if (!validate61(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
|
|
8421
|
+
vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);
|
|
7411
8422
|
errors = vErrors.length;
|
|
7412
8423
|
}
|
|
7413
8424
|
}
|
|
@@ -7426,8 +8437,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7426
8437
|
if (Array.isArray(data4)) {
|
|
7427
8438
|
const len1 = data4.length;
|
|
7428
8439
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
7429
|
-
if (!
|
|
7430
|
-
vErrors = vErrors === null ?
|
|
8440
|
+
if (!validate63(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
|
|
8441
|
+
vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
|
|
7431
8442
|
errors = vErrors.length;
|
|
7432
8443
|
}
|
|
7433
8444
|
}
|
|
@@ -7442,8 +8453,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7442
8453
|
}
|
|
7443
8454
|
}
|
|
7444
8455
|
if (data.zoom !== void 0) {
|
|
7445
|
-
if (!
|
|
7446
|
-
vErrors = vErrors === null ?
|
|
8456
|
+
if (!validate65(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
|
|
8457
|
+
vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
|
|
7447
8458
|
errors = vErrors.length;
|
|
7448
8459
|
}
|
|
7449
8460
|
}
|
|
@@ -7456,7 +8467,173 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7456
8467
|
}
|
|
7457
8468
|
errors++;
|
|
7458
8469
|
}
|
|
7459
|
-
|
|
8470
|
+
validate56.errors = vErrors;
|
|
8471
|
+
return errors === 0;
|
|
8472
|
+
}
|
|
8473
|
+
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
8474
|
+
let vErrors = null;
|
|
8475
|
+
let errors = 0;
|
|
8476
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8477
|
+
if (data.id === void 0) {
|
|
8478
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
8479
|
+
if (vErrors === null) {
|
|
8480
|
+
vErrors = [err0];
|
|
8481
|
+
} else {
|
|
8482
|
+
vErrors.push(err0);
|
|
8483
|
+
}
|
|
8484
|
+
errors++;
|
|
8485
|
+
}
|
|
8486
|
+
for (const key0 in data) {
|
|
8487
|
+
if (!(key0 === "id" || key0 === "color" || key0 === "label")) {
|
|
8488
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8489
|
+
if (vErrors === null) {
|
|
8490
|
+
vErrors = [err1];
|
|
8491
|
+
} else {
|
|
8492
|
+
vErrors.push(err1);
|
|
8493
|
+
}
|
|
8494
|
+
errors++;
|
|
8495
|
+
}
|
|
8496
|
+
}
|
|
8497
|
+
if (data.id !== void 0) {
|
|
8498
|
+
let data0 = data.id;
|
|
8499
|
+
if (typeof data0 === "string") {
|
|
8500
|
+
if (!pattern0.test(data0)) {
|
|
8501
|
+
const err2 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
8502
|
+
if (vErrors === null) {
|
|
8503
|
+
vErrors = [err2];
|
|
8504
|
+
} else {
|
|
8505
|
+
vErrors.push(err2);
|
|
8506
|
+
}
|
|
8507
|
+
errors++;
|
|
8508
|
+
}
|
|
8509
|
+
} else {
|
|
8510
|
+
const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8511
|
+
if (vErrors === null) {
|
|
8512
|
+
vErrors = [err3];
|
|
8513
|
+
} else {
|
|
8514
|
+
vErrors.push(err3);
|
|
8515
|
+
}
|
|
8516
|
+
errors++;
|
|
8517
|
+
}
|
|
8518
|
+
}
|
|
8519
|
+
if (data.color !== void 0) {
|
|
8520
|
+
let data1 = data.color;
|
|
8521
|
+
if (!(data1 === "blue" || data1 === "amber" || data1 === "green" || data1 === "violet" || data1 === "rose" || data1 === "slate" || data1 === "coin")) {
|
|
8522
|
+
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" };
|
|
8523
|
+
if (vErrors === null) {
|
|
8524
|
+
vErrors = [err4];
|
|
8525
|
+
} else {
|
|
8526
|
+
vErrors.push(err4);
|
|
8527
|
+
}
|
|
8528
|
+
errors++;
|
|
8529
|
+
}
|
|
8530
|
+
}
|
|
8531
|
+
if (data.label !== void 0) {
|
|
8532
|
+
let data2 = data.label;
|
|
8533
|
+
if (typeof data2 === "string") {
|
|
8534
|
+
if (func3(data2) > 4) {
|
|
8535
|
+
const err5 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/maxLength", keyword: "maxLength", params: { limit: 4 }, message: "must NOT have more than 4 characters" };
|
|
8536
|
+
if (vErrors === null) {
|
|
8537
|
+
vErrors = [err5];
|
|
8538
|
+
} else {
|
|
8539
|
+
vErrors.push(err5);
|
|
8540
|
+
}
|
|
8541
|
+
errors++;
|
|
8542
|
+
}
|
|
8543
|
+
if (func3(data2) < 1) {
|
|
8544
|
+
const err6 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8545
|
+
if (vErrors === null) {
|
|
8546
|
+
vErrors = [err6];
|
|
8547
|
+
} else {
|
|
8548
|
+
vErrors.push(err6);
|
|
8549
|
+
}
|
|
8550
|
+
errors++;
|
|
8551
|
+
}
|
|
8552
|
+
} else {
|
|
8553
|
+
const err7 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8554
|
+
if (vErrors === null) {
|
|
8555
|
+
vErrors = [err7];
|
|
8556
|
+
} else {
|
|
8557
|
+
vErrors.push(err7);
|
|
8558
|
+
}
|
|
8559
|
+
errors++;
|
|
8560
|
+
}
|
|
8561
|
+
}
|
|
8562
|
+
} else {
|
|
8563
|
+
const err8 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8564
|
+
if (vErrors === null) {
|
|
8565
|
+
vErrors = [err8];
|
|
8566
|
+
} else {
|
|
8567
|
+
vErrors.push(err8);
|
|
8568
|
+
}
|
|
8569
|
+
errors++;
|
|
8570
|
+
}
|
|
8571
|
+
validate69.errors = vErrors;
|
|
8572
|
+
return errors === 0;
|
|
8573
|
+
}
|
|
8574
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
8575
|
+
let vErrors = null;
|
|
8576
|
+
let errors = 0;
|
|
8577
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8578
|
+
if (data.items === void 0) {
|
|
8579
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
|
|
8580
|
+
if (vErrors === null) {
|
|
8581
|
+
vErrors = [err0];
|
|
8582
|
+
} else {
|
|
8583
|
+
vErrors.push(err0);
|
|
8584
|
+
}
|
|
8585
|
+
errors++;
|
|
8586
|
+
}
|
|
8587
|
+
for (const key0 in data) {
|
|
8588
|
+
if (!(key0 === "items")) {
|
|
8589
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8590
|
+
if (vErrors === null) {
|
|
8591
|
+
vErrors = [err1];
|
|
8592
|
+
} else {
|
|
8593
|
+
vErrors.push(err1);
|
|
8594
|
+
}
|
|
8595
|
+
errors++;
|
|
8596
|
+
}
|
|
8597
|
+
}
|
|
8598
|
+
if (data.items !== void 0) {
|
|
8599
|
+
let data0 = data.items;
|
|
8600
|
+
if (Array.isArray(data0)) {
|
|
8601
|
+
if (data0.length < 1) {
|
|
8602
|
+
const err2 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
8603
|
+
if (vErrors === null) {
|
|
8604
|
+
vErrors = [err2];
|
|
8605
|
+
} else {
|
|
8606
|
+
vErrors.push(err2);
|
|
8607
|
+
}
|
|
8608
|
+
errors++;
|
|
8609
|
+
}
|
|
8610
|
+
const len0 = data0.length;
|
|
8611
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
8612
|
+
if (!validate69(data0[i0], { instancePath: instancePath + "/items/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
8613
|
+
vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
|
|
8614
|
+
errors = vErrors.length;
|
|
8615
|
+
}
|
|
8616
|
+
}
|
|
8617
|
+
} else {
|
|
8618
|
+
const err3 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8619
|
+
if (vErrors === null) {
|
|
8620
|
+
vErrors = [err3];
|
|
8621
|
+
} else {
|
|
8622
|
+
vErrors.push(err3);
|
|
8623
|
+
}
|
|
8624
|
+
errors++;
|
|
8625
|
+
}
|
|
8626
|
+
}
|
|
8627
|
+
} else {
|
|
8628
|
+
const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8629
|
+
if (vErrors === null) {
|
|
8630
|
+
vErrors = [err4];
|
|
8631
|
+
} else {
|
|
8632
|
+
vErrors.push(err4);
|
|
8633
|
+
}
|
|
8634
|
+
errors++;
|
|
8635
|
+
}
|
|
8636
|
+
validate68.errors = vErrors;
|
|
7460
8637
|
return errors === 0;
|
|
7461
8638
|
}
|
|
7462
8639
|
var func2 = Object.prototype.hasOwnProperty;
|
|
@@ -7564,94 +8741,103 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7564
8741
|
}
|
|
7565
8742
|
errors++;
|
|
7566
8743
|
}
|
|
8744
|
+
if (data.lineup !== void 0) {
|
|
8745
|
+
const err7 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8746
|
+
if (vErrors === null) {
|
|
8747
|
+
vErrors = [err7];
|
|
8748
|
+
} else {
|
|
8749
|
+
vErrors.push(err7);
|
|
8750
|
+
}
|
|
8751
|
+
errors++;
|
|
8752
|
+
}
|
|
7567
8753
|
}
|
|
7568
8754
|
var _valid0 = _errs4 === errors;
|
|
7569
8755
|
valid0 = _valid0;
|
|
7570
8756
|
ifClause0 = "then";
|
|
7571
8757
|
} else {
|
|
7572
|
-
const
|
|
7573
|
-
const
|
|
7574
|
-
let
|
|
7575
|
-
const
|
|
8758
|
+
const _errs20 = errors;
|
|
8759
|
+
const _errs21 = errors;
|
|
8760
|
+
let valid7 = true;
|
|
8761
|
+
const _errs22 = errors;
|
|
7576
8762
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7577
8763
|
if (data.kind === void 0 && ("kind")) {
|
|
7578
|
-
const
|
|
8764
|
+
const err8 = {};
|
|
7579
8765
|
if (vErrors === null) {
|
|
7580
|
-
vErrors = [
|
|
8766
|
+
vErrors = [err8];
|
|
7581
8767
|
} else {
|
|
7582
|
-
vErrors.push(
|
|
8768
|
+
vErrors.push(err8);
|
|
7583
8769
|
}
|
|
7584
8770
|
errors++;
|
|
7585
8771
|
} else {
|
|
7586
8772
|
if (data.kind !== void 0) {
|
|
7587
8773
|
if ("state" !== data.kind) {
|
|
7588
|
-
const
|
|
8774
|
+
const err9 = {};
|
|
7589
8775
|
if (vErrors === null) {
|
|
7590
|
-
vErrors = [
|
|
8776
|
+
vErrors = [err9];
|
|
7591
8777
|
} else {
|
|
7592
|
-
vErrors.push(
|
|
8778
|
+
vErrors.push(err9);
|
|
7593
8779
|
}
|
|
7594
8780
|
errors++;
|
|
7595
8781
|
}
|
|
7596
8782
|
}
|
|
7597
8783
|
}
|
|
7598
8784
|
}
|
|
7599
|
-
var _valid1 =
|
|
7600
|
-
errors =
|
|
8785
|
+
var _valid1 = _errs22 === errors;
|
|
8786
|
+
errors = _errs21;
|
|
7601
8787
|
if (vErrors !== null) {
|
|
7602
|
-
if (
|
|
7603
|
-
vErrors.length =
|
|
8788
|
+
if (_errs21) {
|
|
8789
|
+
vErrors.length = _errs21;
|
|
7604
8790
|
} else {
|
|
7605
8791
|
vErrors = null;
|
|
7606
8792
|
}
|
|
7607
8793
|
}
|
|
7608
8794
|
let ifClause1;
|
|
7609
8795
|
if (_valid1) {
|
|
7610
|
-
const
|
|
8796
|
+
const _errs24 = errors;
|
|
7611
8797
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7612
8798
|
if (data.boxes !== void 0) {
|
|
7613
|
-
let
|
|
7614
|
-
if (Array.isArray(
|
|
7615
|
-
if (
|
|
7616
|
-
const
|
|
8799
|
+
let data9 = data.boxes;
|
|
8800
|
+
if (Array.isArray(data9)) {
|
|
8801
|
+
if (data9.length < 1) {
|
|
8802
|
+
const err10 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
7617
8803
|
if (vErrors === null) {
|
|
7618
|
-
vErrors = [
|
|
8804
|
+
vErrors = [err10];
|
|
7619
8805
|
} else {
|
|
7620
|
-
vErrors.push(
|
|
8806
|
+
vErrors.push(err10);
|
|
7621
8807
|
}
|
|
7622
8808
|
errors++;
|
|
7623
8809
|
}
|
|
7624
|
-
const len0 =
|
|
8810
|
+
const len0 = data9.length;
|
|
7625
8811
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
7626
|
-
let
|
|
7627
|
-
if (
|
|
7628
|
-
if (
|
|
7629
|
-
let
|
|
7630
|
-
const
|
|
7631
|
-
const
|
|
7632
|
-
if (!(
|
|
7633
|
-
const
|
|
8812
|
+
let data10 = data9[i0];
|
|
8813
|
+
if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
|
|
8814
|
+
if (data10.id !== void 0) {
|
|
8815
|
+
let data11 = data10.id;
|
|
8816
|
+
const _errs28 = errors;
|
|
8817
|
+
const _errs29 = errors;
|
|
8818
|
+
if (!(data11 === "start" || data11 === "finish")) {
|
|
8819
|
+
const err11 = {};
|
|
7634
8820
|
if (vErrors === null) {
|
|
7635
|
-
vErrors = [
|
|
8821
|
+
vErrors = [err11];
|
|
7636
8822
|
} else {
|
|
7637
|
-
vErrors.push(
|
|
8823
|
+
vErrors.push(err11);
|
|
7638
8824
|
}
|
|
7639
8825
|
errors++;
|
|
7640
8826
|
}
|
|
7641
|
-
var
|
|
7642
|
-
if (
|
|
7643
|
-
const
|
|
8827
|
+
var valid13 = _errs29 === errors;
|
|
8828
|
+
if (valid13) {
|
|
8829
|
+
const err12 = { instancePath: instancePath + "/boxes/" + i0 + "/id", schemaPath: "#/else/then/properties/boxes/items/properties/id/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7644
8830
|
if (vErrors === null) {
|
|
7645
|
-
vErrors = [
|
|
8831
|
+
vErrors = [err12];
|
|
7646
8832
|
} else {
|
|
7647
|
-
vErrors.push(
|
|
8833
|
+
vErrors.push(err12);
|
|
7648
8834
|
}
|
|
7649
8835
|
errors++;
|
|
7650
8836
|
} else {
|
|
7651
|
-
errors =
|
|
8837
|
+
errors = _errs28;
|
|
7652
8838
|
if (vErrors !== null) {
|
|
7653
|
-
if (
|
|
7654
|
-
vErrors.length =
|
|
8839
|
+
if (_errs28) {
|
|
8840
|
+
vErrors.length = _errs28;
|
|
7655
8841
|
} else {
|
|
7656
8842
|
vErrors = null;
|
|
7657
8843
|
}
|
|
@@ -7674,75 +8860,84 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7674
8860
|
errors = vErrors.length;
|
|
7675
8861
|
}
|
|
7676
8862
|
}
|
|
7677
|
-
if (data.git !== void 0) {
|
|
7678
|
-
const
|
|
8863
|
+
if (data.git !== void 0) {
|
|
8864
|
+
const err13 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8865
|
+
if (vErrors === null) {
|
|
8866
|
+
vErrors = [err13];
|
|
8867
|
+
} else {
|
|
8868
|
+
vErrors.push(err13);
|
|
8869
|
+
}
|
|
8870
|
+
errors++;
|
|
8871
|
+
}
|
|
8872
|
+
if (data.time !== void 0) {
|
|
8873
|
+
const err14 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7679
8874
|
if (vErrors === null) {
|
|
7680
|
-
vErrors = [
|
|
8875
|
+
vErrors = [err14];
|
|
7681
8876
|
} else {
|
|
7682
|
-
vErrors.push(
|
|
8877
|
+
vErrors.push(err14);
|
|
7683
8878
|
}
|
|
7684
8879
|
errors++;
|
|
7685
8880
|
}
|
|
7686
|
-
if (data.
|
|
7687
|
-
const
|
|
8881
|
+
if (data.lineup !== void 0) {
|
|
8882
|
+
const err15 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7688
8883
|
if (vErrors === null) {
|
|
7689
|
-
vErrors = [
|
|
8884
|
+
vErrors = [err15];
|
|
7690
8885
|
} else {
|
|
7691
|
-
vErrors.push(
|
|
8886
|
+
vErrors.push(err15);
|
|
7692
8887
|
}
|
|
7693
8888
|
errors++;
|
|
7694
8889
|
}
|
|
7695
8890
|
}
|
|
7696
|
-
var _valid1 =
|
|
7697
|
-
|
|
8891
|
+
var _valid1 = _errs24 === errors;
|
|
8892
|
+
valid7 = _valid1;
|
|
7698
8893
|
ifClause1 = "then";
|
|
7699
8894
|
} else {
|
|
7700
|
-
const
|
|
7701
|
-
const
|
|
7702
|
-
let
|
|
7703
|
-
const
|
|
8895
|
+
const _errs41 = errors;
|
|
8896
|
+
const _errs42 = errors;
|
|
8897
|
+
let valid17 = true;
|
|
8898
|
+
const _errs43 = errors;
|
|
7704
8899
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7705
8900
|
if (data.kind === void 0 && ("kind")) {
|
|
7706
|
-
const
|
|
8901
|
+
const err16 = {};
|
|
7707
8902
|
if (vErrors === null) {
|
|
7708
|
-
vErrors = [
|
|
8903
|
+
vErrors = [err16];
|
|
7709
8904
|
} else {
|
|
7710
|
-
vErrors.push(
|
|
8905
|
+
vErrors.push(err16);
|
|
7711
8906
|
}
|
|
7712
8907
|
errors++;
|
|
7713
8908
|
} else {
|
|
7714
8909
|
if (data.kind !== void 0) {
|
|
7715
8910
|
if ("git" !== data.kind) {
|
|
7716
|
-
const
|
|
8911
|
+
const err17 = {};
|
|
7717
8912
|
if (vErrors === null) {
|
|
7718
|
-
vErrors = [
|
|
8913
|
+
vErrors = [err17];
|
|
7719
8914
|
} else {
|
|
7720
|
-
vErrors.push(
|
|
8915
|
+
vErrors.push(err17);
|
|
7721
8916
|
}
|
|
7722
8917
|
errors++;
|
|
7723
8918
|
}
|
|
7724
8919
|
}
|
|
7725
8920
|
}
|
|
7726
8921
|
}
|
|
7727
|
-
var _valid2 =
|
|
7728
|
-
errors =
|
|
8922
|
+
var _valid2 = _errs43 === errors;
|
|
8923
|
+
errors = _errs42;
|
|
7729
8924
|
if (vErrors !== null) {
|
|
7730
|
-
if (
|
|
7731
|
-
vErrors.length =
|
|
8925
|
+
if (_errs42) {
|
|
8926
|
+
vErrors.length = _errs42;
|
|
7732
8927
|
} else {
|
|
7733
8928
|
vErrors = null;
|
|
7734
8929
|
}
|
|
7735
8930
|
}
|
|
7736
8931
|
let ifClause2;
|
|
7737
8932
|
if (_valid2) {
|
|
7738
|
-
const
|
|
8933
|
+
const _errs45 = errors;
|
|
7739
8934
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7740
8935
|
if (data.git === void 0) {
|
|
7741
|
-
const
|
|
8936
|
+
const err18 = { instancePath, schemaPath: "#/else/else/then/required", keyword: "required", params: { missingProperty: "git" }, message: "must have required property 'git'" };
|
|
7742
8937
|
if (vErrors === null) {
|
|
7743
|
-
vErrors = [
|
|
8938
|
+
vErrors = [err18];
|
|
7744
8939
|
} else {
|
|
7745
|
-
vErrors.push(
|
|
8940
|
+
vErrors.push(err18);
|
|
7746
8941
|
}
|
|
7747
8942
|
errors++;
|
|
7748
8943
|
}
|
|
@@ -7759,83 +8954,92 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7759
8954
|
}
|
|
7760
8955
|
}
|
|
7761
8956
|
if (data.state !== void 0) {
|
|
7762
|
-
const
|
|
8957
|
+
const err19 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7763
8958
|
if (vErrors === null) {
|
|
7764
|
-
vErrors = [
|
|
8959
|
+
vErrors = [err19];
|
|
7765
8960
|
} else {
|
|
7766
|
-
vErrors.push(
|
|
8961
|
+
vErrors.push(err19);
|
|
7767
8962
|
}
|
|
7768
8963
|
errors++;
|
|
7769
8964
|
}
|
|
7770
8965
|
if (data.regions !== void 0) {
|
|
7771
|
-
const
|
|
8966
|
+
const err20 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7772
8967
|
if (vErrors === null) {
|
|
7773
|
-
vErrors = [
|
|
8968
|
+
vErrors = [err20];
|
|
7774
8969
|
} else {
|
|
7775
|
-
vErrors.push(
|
|
8970
|
+
vErrors.push(err20);
|
|
7776
8971
|
}
|
|
7777
8972
|
errors++;
|
|
7778
8973
|
}
|
|
7779
8974
|
if (data.time !== void 0) {
|
|
7780
|
-
const
|
|
8975
|
+
const err21 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7781
8976
|
if (vErrors === null) {
|
|
7782
|
-
vErrors = [
|
|
8977
|
+
vErrors = [err21];
|
|
7783
8978
|
} else {
|
|
7784
|
-
vErrors.push(
|
|
8979
|
+
vErrors.push(err21);
|
|
8980
|
+
}
|
|
8981
|
+
errors++;
|
|
8982
|
+
}
|
|
8983
|
+
if (data.lineup !== void 0) {
|
|
8984
|
+
const err22 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8985
|
+
if (vErrors === null) {
|
|
8986
|
+
vErrors = [err22];
|
|
8987
|
+
} else {
|
|
8988
|
+
vErrors.push(err22);
|
|
7785
8989
|
}
|
|
7786
8990
|
errors++;
|
|
7787
8991
|
}
|
|
7788
8992
|
}
|
|
7789
|
-
var _valid2 =
|
|
7790
|
-
|
|
8993
|
+
var _valid2 = _errs45 === errors;
|
|
8994
|
+
valid17 = _valid2;
|
|
7791
8995
|
ifClause2 = "then";
|
|
7792
8996
|
} else {
|
|
7793
|
-
const
|
|
7794
|
-
const
|
|
7795
|
-
let
|
|
7796
|
-
const
|
|
8997
|
+
const _errs60 = errors;
|
|
8998
|
+
const _errs61 = errors;
|
|
8999
|
+
let valid24 = true;
|
|
9000
|
+
const _errs62 = errors;
|
|
7797
9001
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7798
9002
|
if (data.kind === void 0 && ("kind")) {
|
|
7799
|
-
const
|
|
9003
|
+
const err23 = {};
|
|
7800
9004
|
if (vErrors === null) {
|
|
7801
|
-
vErrors = [
|
|
9005
|
+
vErrors = [err23];
|
|
7802
9006
|
} else {
|
|
7803
|
-
vErrors.push(
|
|
9007
|
+
vErrors.push(err23);
|
|
7804
9008
|
}
|
|
7805
9009
|
errors++;
|
|
7806
9010
|
} else {
|
|
7807
9011
|
if (data.kind !== void 0) {
|
|
7808
9012
|
if ("time" !== data.kind) {
|
|
7809
|
-
const
|
|
9013
|
+
const err24 = {};
|
|
7810
9014
|
if (vErrors === null) {
|
|
7811
|
-
vErrors = [
|
|
9015
|
+
vErrors = [err24];
|
|
7812
9016
|
} else {
|
|
7813
|
-
vErrors.push(
|
|
9017
|
+
vErrors.push(err24);
|
|
7814
9018
|
}
|
|
7815
9019
|
errors++;
|
|
7816
9020
|
}
|
|
7817
9021
|
}
|
|
7818
9022
|
}
|
|
7819
9023
|
}
|
|
7820
|
-
var _valid3 =
|
|
7821
|
-
errors =
|
|
9024
|
+
var _valid3 = _errs62 === errors;
|
|
9025
|
+
errors = _errs61;
|
|
7822
9026
|
if (vErrors !== null) {
|
|
7823
|
-
if (
|
|
7824
|
-
vErrors.length =
|
|
9027
|
+
if (_errs61) {
|
|
9028
|
+
vErrors.length = _errs61;
|
|
7825
9029
|
} else {
|
|
7826
9030
|
vErrors = null;
|
|
7827
9031
|
}
|
|
7828
9032
|
}
|
|
7829
9033
|
let ifClause3;
|
|
7830
9034
|
if (_valid3) {
|
|
7831
|
-
const
|
|
9035
|
+
const _errs64 = errors;
|
|
7832
9036
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7833
9037
|
if (data.time === void 0) {
|
|
7834
|
-
const
|
|
9038
|
+
const err25 = { instancePath, schemaPath: "#/else/else/else/then/required", keyword: "required", params: { missingProperty: "time" }, message: "must have required property 'time'" };
|
|
7835
9039
|
if (vErrors === null) {
|
|
7836
|
-
vErrors = [
|
|
9040
|
+
vErrors = [err25];
|
|
7837
9041
|
} else {
|
|
7838
|
-
vErrors.push(
|
|
9042
|
+
vErrors.push(err25);
|
|
7839
9043
|
}
|
|
7840
9044
|
errors++;
|
|
7841
9045
|
}
|
|
@@ -7846,76 +9050,85 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7846
9050
|
}
|
|
7847
9051
|
}
|
|
7848
9052
|
if (data.state !== void 0) {
|
|
7849
|
-
const
|
|
9053
|
+
const err26 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7850
9054
|
if (vErrors === null) {
|
|
7851
|
-
vErrors = [
|
|
9055
|
+
vErrors = [err26];
|
|
7852
9056
|
} else {
|
|
7853
|
-
vErrors.push(
|
|
9057
|
+
vErrors.push(err26);
|
|
7854
9058
|
}
|
|
7855
9059
|
errors++;
|
|
7856
9060
|
}
|
|
7857
9061
|
if (data.git !== void 0) {
|
|
7858
|
-
const
|
|
9062
|
+
const err27 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7859
9063
|
if (vErrors === null) {
|
|
7860
|
-
vErrors = [
|
|
9064
|
+
vErrors = [err27];
|
|
7861
9065
|
} else {
|
|
7862
|
-
vErrors.push(
|
|
9066
|
+
vErrors.push(err27);
|
|
7863
9067
|
}
|
|
7864
9068
|
errors++;
|
|
7865
9069
|
}
|
|
7866
9070
|
if (data.regions !== void 0) {
|
|
7867
|
-
const
|
|
9071
|
+
const err28 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7868
9072
|
if (vErrors === null) {
|
|
7869
|
-
vErrors = [
|
|
9073
|
+
vErrors = [err28];
|
|
7870
9074
|
} else {
|
|
7871
|
-
vErrors.push(
|
|
9075
|
+
vErrors.push(err28);
|
|
9076
|
+
}
|
|
9077
|
+
errors++;
|
|
9078
|
+
}
|
|
9079
|
+
if (data.lineup !== void 0) {
|
|
9080
|
+
const err29 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9081
|
+
if (vErrors === null) {
|
|
9082
|
+
vErrors = [err29];
|
|
9083
|
+
} else {
|
|
9084
|
+
vErrors.push(err29);
|
|
7872
9085
|
}
|
|
7873
9086
|
errors++;
|
|
7874
9087
|
}
|
|
7875
9088
|
}
|
|
7876
|
-
var _valid3 =
|
|
7877
|
-
|
|
9089
|
+
var _valid3 = _errs64 === errors;
|
|
9090
|
+
valid24 = _valid3;
|
|
7878
9091
|
ifClause3 = "then";
|
|
7879
9092
|
} else {
|
|
7880
|
-
const
|
|
7881
|
-
const
|
|
7882
|
-
let
|
|
7883
|
-
const
|
|
9093
|
+
const _errs78 = errors;
|
|
9094
|
+
const _errs79 = errors;
|
|
9095
|
+
let valid31 = true;
|
|
9096
|
+
const _errs80 = errors;
|
|
7884
9097
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7885
9098
|
if (data.kind === void 0 && ("kind")) {
|
|
7886
|
-
const
|
|
9099
|
+
const err30 = {};
|
|
7887
9100
|
if (vErrors === null) {
|
|
7888
|
-
vErrors = [
|
|
9101
|
+
vErrors = [err30];
|
|
7889
9102
|
} else {
|
|
7890
|
-
vErrors.push(
|
|
9103
|
+
vErrors.push(err30);
|
|
7891
9104
|
}
|
|
7892
9105
|
errors++;
|
|
7893
9106
|
} else {
|
|
7894
9107
|
if (data.kind !== void 0) {
|
|
7895
9108
|
if ("tree" !== data.kind) {
|
|
7896
|
-
const
|
|
9109
|
+
const err31 = {};
|
|
7897
9110
|
if (vErrors === null) {
|
|
7898
|
-
vErrors = [
|
|
9111
|
+
vErrors = [err31];
|
|
7899
9112
|
} else {
|
|
7900
|
-
vErrors.push(
|
|
9113
|
+
vErrors.push(err31);
|
|
7901
9114
|
}
|
|
7902
9115
|
errors++;
|
|
7903
9116
|
}
|
|
7904
9117
|
}
|
|
7905
9118
|
}
|
|
7906
9119
|
}
|
|
7907
|
-
var _valid4 =
|
|
7908
|
-
errors =
|
|
9120
|
+
var _valid4 = _errs80 === errors;
|
|
9121
|
+
errors = _errs79;
|
|
7909
9122
|
if (vErrors !== null) {
|
|
7910
|
-
if (
|
|
7911
|
-
vErrors.length =
|
|
9123
|
+
if (_errs79) {
|
|
9124
|
+
vErrors.length = _errs79;
|
|
7912
9125
|
} else {
|
|
7913
9126
|
vErrors = null;
|
|
7914
9127
|
}
|
|
7915
9128
|
}
|
|
7916
9129
|
let ifClause4;
|
|
7917
9130
|
if (_valid4) {
|
|
7918
|
-
const
|
|
9131
|
+
const _errs82 = errors;
|
|
7919
9132
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7920
9133
|
if (data.steps !== void 0) {
|
|
7921
9134
|
if (!validate22(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
@@ -7930,409 +9143,595 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7930
9143
|
}
|
|
7931
9144
|
}
|
|
7932
9145
|
if (data.state !== void 0) {
|
|
7933
|
-
const
|
|
9146
|
+
const err32 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7934
9147
|
if (vErrors === null) {
|
|
7935
|
-
vErrors = [
|
|
9148
|
+
vErrors = [err32];
|
|
7936
9149
|
} else {
|
|
7937
|
-
vErrors.push(
|
|
9150
|
+
vErrors.push(err32);
|
|
7938
9151
|
}
|
|
7939
9152
|
errors++;
|
|
7940
9153
|
}
|
|
7941
9154
|
if (data.git !== void 0) {
|
|
7942
|
-
const
|
|
9155
|
+
const err33 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7943
9156
|
if (vErrors === null) {
|
|
7944
|
-
vErrors = [
|
|
9157
|
+
vErrors = [err33];
|
|
7945
9158
|
} else {
|
|
7946
|
-
vErrors.push(
|
|
9159
|
+
vErrors.push(err33);
|
|
7947
9160
|
}
|
|
7948
9161
|
errors++;
|
|
7949
9162
|
}
|
|
7950
9163
|
if (data.time !== void 0) {
|
|
7951
|
-
const
|
|
9164
|
+
const err34 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7952
9165
|
if (vErrors === null) {
|
|
7953
|
-
vErrors = [
|
|
9166
|
+
vErrors = [err34];
|
|
7954
9167
|
} else {
|
|
7955
|
-
vErrors.push(
|
|
9168
|
+
vErrors.push(err34);
|
|
7956
9169
|
}
|
|
7957
9170
|
errors++;
|
|
7958
9171
|
}
|
|
7959
9172
|
if (data.regions !== void 0) {
|
|
7960
|
-
const
|
|
9173
|
+
const err35 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7961
9174
|
if (vErrors === null) {
|
|
7962
|
-
vErrors = [
|
|
9175
|
+
vErrors = [err35];
|
|
9176
|
+
} else {
|
|
9177
|
+
vErrors.push(err35);
|
|
9178
|
+
}
|
|
9179
|
+
errors++;
|
|
9180
|
+
}
|
|
9181
|
+
if (data.lineup !== void 0) {
|
|
9182
|
+
const err36 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9183
|
+
if (vErrors === null) {
|
|
9184
|
+
vErrors = [err36];
|
|
7963
9185
|
} else {
|
|
7964
|
-
vErrors.push(
|
|
9186
|
+
vErrors.push(err36);
|
|
7965
9187
|
}
|
|
7966
9188
|
errors++;
|
|
7967
9189
|
}
|
|
7968
9190
|
}
|
|
7969
|
-
var _valid4 =
|
|
7970
|
-
|
|
9191
|
+
var _valid4 = _errs82 === errors;
|
|
9192
|
+
valid31 = _valid4;
|
|
7971
9193
|
ifClause4 = "then";
|
|
7972
9194
|
} else {
|
|
7973
|
-
const
|
|
9195
|
+
const _errs100 = errors;
|
|
9196
|
+
const _errs101 = errors;
|
|
9197
|
+
let valid39 = true;
|
|
9198
|
+
const _errs102 = errors;
|
|
7974
9199
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7975
|
-
if (data.
|
|
7976
|
-
|
|
7977
|
-
if (
|
|
7978
|
-
|
|
7979
|
-
|
|
9200
|
+
if (data.kind === void 0 && ("kind")) {
|
|
9201
|
+
const err37 = {};
|
|
9202
|
+
if (vErrors === null) {
|
|
9203
|
+
vErrors = [err37];
|
|
9204
|
+
} else {
|
|
9205
|
+
vErrors.push(err37);
|
|
9206
|
+
}
|
|
9207
|
+
errors++;
|
|
9208
|
+
} else {
|
|
9209
|
+
if (data.kind !== void 0) {
|
|
9210
|
+
if ("lineup" !== data.kind) {
|
|
9211
|
+
const err38 = {};
|
|
7980
9212
|
if (vErrors === null) {
|
|
7981
|
-
vErrors = [
|
|
9213
|
+
vErrors = [err38];
|
|
7982
9214
|
} else {
|
|
7983
|
-
vErrors.push(
|
|
9215
|
+
vErrors.push(err38);
|
|
7984
9216
|
}
|
|
7985
9217
|
errors++;
|
|
7986
9218
|
}
|
|
7987
9219
|
}
|
|
7988
9220
|
}
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
9221
|
+
}
|
|
9222
|
+
var _valid5 = _errs102 === errors;
|
|
9223
|
+
errors = _errs101;
|
|
9224
|
+
if (vErrors !== null) {
|
|
9225
|
+
if (_errs101) {
|
|
9226
|
+
vErrors.length = _errs101;
|
|
9227
|
+
} else {
|
|
9228
|
+
vErrors = null;
|
|
7994
9229
|
}
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
9230
|
+
}
|
|
9231
|
+
let ifClause5;
|
|
9232
|
+
if (_valid5) {
|
|
9233
|
+
const _errs104 = errors;
|
|
9234
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
9235
|
+
if (data.lineup === void 0) {
|
|
9236
|
+
const err39 = { instancePath, schemaPath: "#/else/else/else/else/else/then/required", keyword: "required", params: { missingProperty: "lineup" }, message: "must have required property 'lineup'" };
|
|
9237
|
+
if (vErrors === null) {
|
|
9238
|
+
vErrors = [err39];
|
|
9239
|
+
} else {
|
|
9240
|
+
vErrors.push(err39);
|
|
9241
|
+
}
|
|
9242
|
+
errors++;
|
|
7999
9243
|
}
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
9244
|
+
if (data.boxes !== void 0) {
|
|
9245
|
+
let data39 = data.boxes;
|
|
9246
|
+
if (Array.isArray(data39)) {
|
|
9247
|
+
if (data39.length < 1) {
|
|
9248
|
+
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" };
|
|
9249
|
+
if (vErrors === null) {
|
|
9250
|
+
vErrors = [err40];
|
|
9251
|
+
} else {
|
|
9252
|
+
vErrors.push(err40);
|
|
9253
|
+
}
|
|
9254
|
+
errors++;
|
|
9255
|
+
}
|
|
9256
|
+
const len1 = data39.length;
|
|
9257
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
9258
|
+
let data40 = data39[i1];
|
|
9259
|
+
if (data40 && typeof data40 == "object" && !Array.isArray(data40)) {
|
|
9260
|
+
if (data40.icon !== void 0) {
|
|
9261
|
+
const err41 = { instancePath: instancePath + "/boxes/" + i1 + "/icon", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9262
|
+
if (vErrors === null) {
|
|
9263
|
+
vErrors = [err41];
|
|
9264
|
+
} else {
|
|
9265
|
+
vErrors.push(err41);
|
|
9266
|
+
}
|
|
9267
|
+
errors++;
|
|
9268
|
+
}
|
|
9269
|
+
if (data40.link !== void 0) {
|
|
9270
|
+
const err42 = { instancePath: instancePath + "/boxes/" + i1 + "/link", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9271
|
+
if (vErrors === null) {
|
|
9272
|
+
vErrors = [err42];
|
|
9273
|
+
} else {
|
|
9274
|
+
vErrors.push(err42);
|
|
9275
|
+
}
|
|
9276
|
+
errors++;
|
|
9277
|
+
}
|
|
9278
|
+
if (data40.region !== void 0) {
|
|
9279
|
+
const err43 = { instancePath: instancePath + "/boxes/" + i1 + "/region", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9280
|
+
if (vErrors === null) {
|
|
9281
|
+
vErrors = [err43];
|
|
9282
|
+
} else {
|
|
9283
|
+
vErrors.push(err43);
|
|
9284
|
+
}
|
|
9285
|
+
errors++;
|
|
9286
|
+
}
|
|
9287
|
+
}
|
|
9288
|
+
}
|
|
9289
|
+
}
|
|
8007
9290
|
}
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
9291
|
+
if (data.steps !== void 0) {
|
|
9292
|
+
if (!validate25(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
9293
|
+
vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
|
|
9294
|
+
errors = vErrors.length;
|
|
9295
|
+
}
|
|
9296
|
+
}
|
|
9297
|
+
if (data.strip !== void 0) {
|
|
9298
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
9299
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
9300
|
+
errors = vErrors.length;
|
|
9301
|
+
}
|
|
9302
|
+
}
|
|
9303
|
+
if (data.state !== void 0) {
|
|
9304
|
+
const err44 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9305
|
+
if (vErrors === null) {
|
|
9306
|
+
vErrors = [err44];
|
|
9307
|
+
} else {
|
|
9308
|
+
vErrors.push(err44);
|
|
9309
|
+
}
|
|
9310
|
+
errors++;
|
|
9311
|
+
}
|
|
9312
|
+
if (data.git !== void 0) {
|
|
9313
|
+
const err45 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9314
|
+
if (vErrors === null) {
|
|
9315
|
+
vErrors = [err45];
|
|
9316
|
+
} else {
|
|
9317
|
+
vErrors.push(err45);
|
|
9318
|
+
}
|
|
9319
|
+
errors++;
|
|
9320
|
+
}
|
|
9321
|
+
if (data.time !== void 0) {
|
|
9322
|
+
const err46 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9323
|
+
if (vErrors === null) {
|
|
9324
|
+
vErrors = [err46];
|
|
9325
|
+
} else {
|
|
9326
|
+
vErrors.push(err46);
|
|
9327
|
+
}
|
|
9328
|
+
errors++;
|
|
9329
|
+
}
|
|
9330
|
+
if (data.regions !== void 0) {
|
|
9331
|
+
const err47 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9332
|
+
if (vErrors === null) {
|
|
9333
|
+
vErrors = [err47];
|
|
9334
|
+
} else {
|
|
9335
|
+
vErrors.push(err47);
|
|
9336
|
+
}
|
|
9337
|
+
errors++;
|
|
8016
9338
|
}
|
|
8017
|
-
errors++;
|
|
8018
9339
|
}
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
9340
|
+
var _valid5 = _errs104 === errors;
|
|
9341
|
+
valid39 = _valid5;
|
|
9342
|
+
ifClause5 = "then";
|
|
9343
|
+
} else {
|
|
9344
|
+
const _errs130 = errors;
|
|
9345
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
9346
|
+
if (data.boxes !== void 0) {
|
|
9347
|
+
let data50 = data.boxes;
|
|
9348
|
+
if (Array.isArray(data50)) {
|
|
9349
|
+
if (data50.length < 1) {
|
|
9350
|
+
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" };
|
|
9351
|
+
if (vErrors === null) {
|
|
9352
|
+
vErrors = [err48];
|
|
9353
|
+
} else {
|
|
9354
|
+
vErrors.push(err48);
|
|
9355
|
+
}
|
|
9356
|
+
errors++;
|
|
9357
|
+
}
|
|
9358
|
+
}
|
|
8025
9359
|
}
|
|
8026
|
-
|
|
9360
|
+
if (data.steps !== void 0) {
|
|
9361
|
+
if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
9362
|
+
vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
|
|
9363
|
+
errors = vErrors.length;
|
|
9364
|
+
}
|
|
9365
|
+
}
|
|
9366
|
+
if (data.strip !== void 0) {
|
|
9367
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
9368
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
9369
|
+
errors = vErrors.length;
|
|
9370
|
+
}
|
|
9371
|
+
}
|
|
9372
|
+
if (data.state !== void 0) {
|
|
9373
|
+
const err49 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9374
|
+
if (vErrors === null) {
|
|
9375
|
+
vErrors = [err49];
|
|
9376
|
+
} else {
|
|
9377
|
+
vErrors.push(err49);
|
|
9378
|
+
}
|
|
9379
|
+
errors++;
|
|
9380
|
+
}
|
|
9381
|
+
if (data.git !== void 0) {
|
|
9382
|
+
const err50 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9383
|
+
if (vErrors === null) {
|
|
9384
|
+
vErrors = [err50];
|
|
9385
|
+
} else {
|
|
9386
|
+
vErrors.push(err50);
|
|
9387
|
+
}
|
|
9388
|
+
errors++;
|
|
9389
|
+
}
|
|
9390
|
+
if (data.time !== void 0) {
|
|
9391
|
+
const err51 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9392
|
+
if (vErrors === null) {
|
|
9393
|
+
vErrors = [err51];
|
|
9394
|
+
} else {
|
|
9395
|
+
vErrors.push(err51);
|
|
9396
|
+
}
|
|
9397
|
+
errors++;
|
|
9398
|
+
}
|
|
9399
|
+
if (data.lineup !== void 0) {
|
|
9400
|
+
const err52 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9401
|
+
if (vErrors === null) {
|
|
9402
|
+
vErrors = [err52];
|
|
9403
|
+
} else {
|
|
9404
|
+
vErrors.push(err52);
|
|
9405
|
+
}
|
|
9406
|
+
errors++;
|
|
9407
|
+
}
|
|
9408
|
+
}
|
|
9409
|
+
var _valid5 = _errs130 === errors;
|
|
9410
|
+
valid39 = _valid5;
|
|
9411
|
+
ifClause5 = "else";
|
|
9412
|
+
}
|
|
9413
|
+
if (!valid39) {
|
|
9414
|
+
const err53 = { instancePath, schemaPath: "#/else/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause5 }, message: 'must match "' + ifClause5 + '" schema' };
|
|
9415
|
+
if (vErrors === null) {
|
|
9416
|
+
vErrors = [err53];
|
|
9417
|
+
} else {
|
|
9418
|
+
vErrors.push(err53);
|
|
8027
9419
|
}
|
|
9420
|
+
errors++;
|
|
8028
9421
|
}
|
|
8029
|
-
var _valid4 =
|
|
8030
|
-
|
|
9422
|
+
var _valid4 = _errs100 === errors;
|
|
9423
|
+
valid31 = _valid4;
|
|
8031
9424
|
ifClause4 = "else";
|
|
8032
9425
|
}
|
|
8033
|
-
if (!
|
|
8034
|
-
const
|
|
9426
|
+
if (!valid31) {
|
|
9427
|
+
const err54 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
|
|
8035
9428
|
if (vErrors === null) {
|
|
8036
|
-
vErrors = [
|
|
9429
|
+
vErrors = [err54];
|
|
8037
9430
|
} else {
|
|
8038
|
-
vErrors.push(
|
|
9431
|
+
vErrors.push(err54);
|
|
8039
9432
|
}
|
|
8040
9433
|
errors++;
|
|
8041
9434
|
}
|
|
8042
|
-
var _valid3 =
|
|
8043
|
-
|
|
9435
|
+
var _valid3 = _errs78 === errors;
|
|
9436
|
+
valid24 = _valid3;
|
|
8044
9437
|
ifClause3 = "else";
|
|
8045
9438
|
}
|
|
8046
|
-
if (!
|
|
8047
|
-
const
|
|
9439
|
+
if (!valid24) {
|
|
9440
|
+
const err55 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
|
|
8048
9441
|
if (vErrors === null) {
|
|
8049
|
-
vErrors = [
|
|
9442
|
+
vErrors = [err55];
|
|
8050
9443
|
} else {
|
|
8051
|
-
vErrors.push(
|
|
9444
|
+
vErrors.push(err55);
|
|
8052
9445
|
}
|
|
8053
9446
|
errors++;
|
|
8054
9447
|
}
|
|
8055
|
-
var _valid2 =
|
|
8056
|
-
|
|
9448
|
+
var _valid2 = _errs60 === errors;
|
|
9449
|
+
valid17 = _valid2;
|
|
8057
9450
|
ifClause2 = "else";
|
|
8058
9451
|
}
|
|
8059
|
-
if (!
|
|
8060
|
-
const
|
|
9452
|
+
if (!valid17) {
|
|
9453
|
+
const err56 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
|
|
8061
9454
|
if (vErrors === null) {
|
|
8062
|
-
vErrors = [
|
|
9455
|
+
vErrors = [err56];
|
|
8063
9456
|
} else {
|
|
8064
|
-
vErrors.push(
|
|
9457
|
+
vErrors.push(err56);
|
|
8065
9458
|
}
|
|
8066
9459
|
errors++;
|
|
8067
9460
|
}
|
|
8068
|
-
var _valid1 =
|
|
8069
|
-
|
|
9461
|
+
var _valid1 = _errs41 === errors;
|
|
9462
|
+
valid7 = _valid1;
|
|
8070
9463
|
ifClause1 = "else";
|
|
8071
9464
|
}
|
|
8072
|
-
if (!
|
|
8073
|
-
const
|
|
9465
|
+
if (!valid7) {
|
|
9466
|
+
const err57 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
|
|
8074
9467
|
if (vErrors === null) {
|
|
8075
|
-
vErrors = [
|
|
9468
|
+
vErrors = [err57];
|
|
8076
9469
|
} else {
|
|
8077
|
-
vErrors.push(
|
|
9470
|
+
vErrors.push(err57);
|
|
8078
9471
|
}
|
|
8079
9472
|
errors++;
|
|
8080
9473
|
}
|
|
8081
9474
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8082
9475
|
if (data.sequence !== void 0) {
|
|
8083
|
-
const
|
|
9476
|
+
const err58 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8084
9477
|
if (vErrors === null) {
|
|
8085
|
-
vErrors = [
|
|
9478
|
+
vErrors = [err58];
|
|
8086
9479
|
} else {
|
|
8087
|
-
vErrors.push(
|
|
9480
|
+
vErrors.push(err58);
|
|
8088
9481
|
}
|
|
8089
9482
|
errors++;
|
|
8090
9483
|
}
|
|
8091
9484
|
}
|
|
8092
|
-
var _valid0 =
|
|
9485
|
+
var _valid0 = _errs20 === errors;
|
|
8093
9486
|
valid0 = _valid0;
|
|
8094
9487
|
ifClause0 = "else";
|
|
8095
9488
|
}
|
|
8096
9489
|
if (!valid0) {
|
|
8097
|
-
const
|
|
9490
|
+
const err59 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
|
|
8098
9491
|
if (vErrors === null) {
|
|
8099
|
-
vErrors = [
|
|
9492
|
+
vErrors = [err59];
|
|
8100
9493
|
} else {
|
|
8101
|
-
vErrors.push(
|
|
9494
|
+
vErrors.push(err59);
|
|
8102
9495
|
}
|
|
8103
9496
|
errors++;
|
|
8104
9497
|
}
|
|
8105
9498
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8106
9499
|
if (data.version === void 0) {
|
|
8107
|
-
const
|
|
9500
|
+
const err60 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
|
|
8108
9501
|
if (vErrors === null) {
|
|
8109
|
-
vErrors = [
|
|
9502
|
+
vErrors = [err60];
|
|
8110
9503
|
} else {
|
|
8111
|
-
vErrors.push(
|
|
9504
|
+
vErrors.push(err60);
|
|
8112
9505
|
}
|
|
8113
9506
|
errors++;
|
|
8114
9507
|
}
|
|
8115
9508
|
if (data.kind === void 0) {
|
|
8116
|
-
const
|
|
9509
|
+
const err61 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
|
|
8117
9510
|
if (vErrors === null) {
|
|
8118
|
-
vErrors = [
|
|
9511
|
+
vErrors = [err61];
|
|
8119
9512
|
} else {
|
|
8120
|
-
vErrors.push(
|
|
9513
|
+
vErrors.push(err61);
|
|
8121
9514
|
}
|
|
8122
9515
|
errors++;
|
|
8123
9516
|
}
|
|
8124
9517
|
if (data.title === void 0) {
|
|
8125
|
-
const
|
|
9518
|
+
const err62 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
|
|
8126
9519
|
if (vErrors === null) {
|
|
8127
|
-
vErrors = [
|
|
9520
|
+
vErrors = [err62];
|
|
8128
9521
|
} else {
|
|
8129
|
-
vErrors.push(
|
|
9522
|
+
vErrors.push(err62);
|
|
8130
9523
|
}
|
|
8131
9524
|
errors++;
|
|
8132
9525
|
}
|
|
8133
9526
|
if (data.boxes === void 0) {
|
|
8134
|
-
const
|
|
9527
|
+
const err63 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
|
|
8135
9528
|
if (vErrors === null) {
|
|
8136
|
-
vErrors = [
|
|
9529
|
+
vErrors = [err63];
|
|
8137
9530
|
} else {
|
|
8138
|
-
vErrors.push(
|
|
9531
|
+
vErrors.push(err63);
|
|
8139
9532
|
}
|
|
8140
9533
|
errors++;
|
|
8141
9534
|
}
|
|
8142
9535
|
if (data.steps === void 0) {
|
|
8143
|
-
const
|
|
9536
|
+
const err64 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
|
|
8144
9537
|
if (vErrors === null) {
|
|
8145
|
-
vErrors = [
|
|
9538
|
+
vErrors = [err64];
|
|
8146
9539
|
} else {
|
|
8147
|
-
vErrors.push(
|
|
9540
|
+
vErrors.push(err64);
|
|
8148
9541
|
}
|
|
8149
9542
|
errors++;
|
|
8150
9543
|
}
|
|
8151
9544
|
for (const key0 in data) {
|
|
8152
9545
|
if (!func2.call(schema11.properties, key0)) {
|
|
8153
|
-
const
|
|
9546
|
+
const err65 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8154
9547
|
if (vErrors === null) {
|
|
8155
|
-
vErrors = [
|
|
9548
|
+
vErrors = [err65];
|
|
8156
9549
|
} else {
|
|
8157
|
-
vErrors.push(
|
|
9550
|
+
vErrors.push(err65);
|
|
8158
9551
|
}
|
|
8159
9552
|
errors++;
|
|
8160
9553
|
}
|
|
8161
9554
|
}
|
|
8162
9555
|
if (data.version !== void 0) {
|
|
8163
|
-
let
|
|
8164
|
-
if (!(typeof
|
|
8165
|
-
const
|
|
9556
|
+
let data58 = data.version;
|
|
9557
|
+
if (!(typeof data58 == "number" && (!(data58 % 1) && !isNaN(data58)) && isFinite(data58))) {
|
|
9558
|
+
const err66 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
8166
9559
|
if (vErrors === null) {
|
|
8167
|
-
vErrors = [
|
|
9560
|
+
vErrors = [err66];
|
|
8168
9561
|
} else {
|
|
8169
|
-
vErrors.push(
|
|
9562
|
+
vErrors.push(err66);
|
|
8170
9563
|
}
|
|
8171
9564
|
errors++;
|
|
8172
9565
|
}
|
|
8173
|
-
if (typeof
|
|
8174
|
-
if (
|
|
8175
|
-
const
|
|
9566
|
+
if (typeof data58 == "number" && isFinite(data58)) {
|
|
9567
|
+
if (data58 < 1 || isNaN(data58)) {
|
|
9568
|
+
const err67 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
8176
9569
|
if (vErrors === null) {
|
|
8177
|
-
vErrors = [
|
|
9570
|
+
vErrors = [err67];
|
|
8178
9571
|
} else {
|
|
8179
|
-
vErrors.push(
|
|
9572
|
+
vErrors.push(err67);
|
|
8180
9573
|
}
|
|
8181
9574
|
errors++;
|
|
8182
9575
|
}
|
|
8183
9576
|
}
|
|
8184
9577
|
}
|
|
8185
9578
|
if (data.kind !== void 0) {
|
|
8186
|
-
let
|
|
8187
|
-
if (!(
|
|
8188
|
-
const
|
|
9579
|
+
let data59 = data.kind;
|
|
9580
|
+
if (!(data59 === "sequence" || data59 === "architecture" || data59 === "state" || data59 === "git" || data59 === "time" || data59 === "tree" || data59 === "lineup")) {
|
|
9581
|
+
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" };
|
|
8189
9582
|
if (vErrors === null) {
|
|
8190
|
-
vErrors = [
|
|
9583
|
+
vErrors = [err68];
|
|
8191
9584
|
} else {
|
|
8192
|
-
vErrors.push(
|
|
9585
|
+
vErrors.push(err68);
|
|
8193
9586
|
}
|
|
8194
9587
|
errors++;
|
|
8195
9588
|
}
|
|
8196
9589
|
}
|
|
8197
9590
|
if (data.title !== void 0) {
|
|
8198
|
-
let
|
|
8199
|
-
if (typeof
|
|
8200
|
-
if (func3(
|
|
8201
|
-
const
|
|
9591
|
+
let data60 = data.title;
|
|
9592
|
+
if (typeof data60 === "string") {
|
|
9593
|
+
if (func3(data60) < 1) {
|
|
9594
|
+
const err69 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8202
9595
|
if (vErrors === null) {
|
|
8203
|
-
vErrors = [
|
|
9596
|
+
vErrors = [err69];
|
|
8204
9597
|
} else {
|
|
8205
|
-
vErrors.push(
|
|
9598
|
+
vErrors.push(err69);
|
|
8206
9599
|
}
|
|
8207
9600
|
errors++;
|
|
8208
9601
|
}
|
|
8209
9602
|
} else {
|
|
8210
|
-
const
|
|
9603
|
+
const err70 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8211
9604
|
if (vErrors === null) {
|
|
8212
|
-
vErrors = [
|
|
9605
|
+
vErrors = [err70];
|
|
8213
9606
|
} else {
|
|
8214
|
-
vErrors.push(
|
|
9607
|
+
vErrors.push(err70);
|
|
8215
9608
|
}
|
|
8216
9609
|
errors++;
|
|
8217
9610
|
}
|
|
8218
9611
|
}
|
|
8219
9612
|
if (data.view !== void 0) {
|
|
8220
|
-
let
|
|
8221
|
-
if (!(
|
|
8222
|
-
const
|
|
9613
|
+
let data61 = data.view;
|
|
9614
|
+
if (!(data61 === "fixed" || data61 === "follow")) {
|
|
9615
|
+
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" };
|
|
8223
9616
|
if (vErrors === null) {
|
|
8224
|
-
vErrors = [
|
|
9617
|
+
vErrors = [err71];
|
|
8225
9618
|
} else {
|
|
8226
|
-
vErrors.push(
|
|
9619
|
+
vErrors.push(err71);
|
|
8227
9620
|
}
|
|
8228
9621
|
errors++;
|
|
8229
9622
|
}
|
|
8230
9623
|
}
|
|
8231
9624
|
if (data.regions !== void 0) {
|
|
8232
|
-
let
|
|
8233
|
-
if (Array.isArray(
|
|
8234
|
-
const
|
|
8235
|
-
for (let
|
|
8236
|
-
if (!
|
|
8237
|
-
vErrors = vErrors === null ?
|
|
9625
|
+
let data62 = data.regions;
|
|
9626
|
+
if (Array.isArray(data62)) {
|
|
9627
|
+
const len2 = data62.length;
|
|
9628
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
9629
|
+
if (!validate30(data62[i2], { instancePath: instancePath + "/regions/" + i2, parentData: data62, parentDataProperty: i2, rootData })) {
|
|
9630
|
+
vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
|
|
8238
9631
|
errors = vErrors.length;
|
|
8239
9632
|
}
|
|
8240
9633
|
}
|
|
8241
9634
|
} else {
|
|
8242
|
-
const
|
|
9635
|
+
const err72 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8243
9636
|
if (vErrors === null) {
|
|
8244
|
-
vErrors = [
|
|
9637
|
+
vErrors = [err72];
|
|
8245
9638
|
} else {
|
|
8246
|
-
vErrors.push(
|
|
9639
|
+
vErrors.push(err72);
|
|
8247
9640
|
}
|
|
8248
9641
|
errors++;
|
|
8249
9642
|
}
|
|
8250
9643
|
}
|
|
8251
9644
|
if (data.boxes !== void 0) {
|
|
8252
|
-
let
|
|
8253
|
-
if (Array.isArray(
|
|
8254
|
-
const
|
|
8255
|
-
for (let
|
|
8256
|
-
if (!
|
|
8257
|
-
vErrors = vErrors === null ?
|
|
9645
|
+
let data64 = data.boxes;
|
|
9646
|
+
if (Array.isArray(data64)) {
|
|
9647
|
+
const len3 = data64.length;
|
|
9648
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
9649
|
+
if (!validate32(data64[i3], { instancePath: instancePath + "/boxes/" + i3, parentData: data64, parentDataProperty: i3, rootData })) {
|
|
9650
|
+
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
8258
9651
|
errors = vErrors.length;
|
|
8259
9652
|
}
|
|
8260
9653
|
}
|
|
8261
9654
|
} else {
|
|
8262
|
-
const
|
|
9655
|
+
const err73 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8263
9656
|
if (vErrors === null) {
|
|
8264
|
-
vErrors = [
|
|
9657
|
+
vErrors = [err73];
|
|
8265
9658
|
} else {
|
|
8266
|
-
vErrors.push(
|
|
9659
|
+
vErrors.push(err73);
|
|
8267
9660
|
}
|
|
8268
9661
|
errors++;
|
|
8269
9662
|
}
|
|
8270
9663
|
}
|
|
8271
9664
|
if (data.strip !== void 0) {
|
|
8272
|
-
if (!
|
|
8273
|
-
vErrors = vErrors === null ?
|
|
9665
|
+
if (!validate34(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
9666
|
+
vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
|
|
8274
9667
|
errors = vErrors.length;
|
|
8275
9668
|
}
|
|
8276
9669
|
}
|
|
8277
9670
|
if (data.steps !== void 0) {
|
|
8278
|
-
let
|
|
8279
|
-
if (Array.isArray(
|
|
8280
|
-
if (
|
|
8281
|
-
const
|
|
9671
|
+
let data67 = data.steps;
|
|
9672
|
+
if (Array.isArray(data67)) {
|
|
9673
|
+
if (data67.length < 1) {
|
|
9674
|
+
const err74 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
8282
9675
|
if (vErrors === null) {
|
|
8283
|
-
vErrors = [
|
|
9676
|
+
vErrors = [err74];
|
|
8284
9677
|
} else {
|
|
8285
|
-
vErrors.push(
|
|
9678
|
+
vErrors.push(err74);
|
|
8286
9679
|
}
|
|
8287
9680
|
errors++;
|
|
8288
9681
|
}
|
|
8289
|
-
const
|
|
8290
|
-
for (let
|
|
8291
|
-
if (!
|
|
8292
|
-
vErrors = vErrors === null ?
|
|
9682
|
+
const len4 = data67.length;
|
|
9683
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
9684
|
+
if (!validate38(data67[i4], { instancePath: instancePath + "/steps/" + i4, parentData: data67, parentDataProperty: i4, rootData })) {
|
|
9685
|
+
vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
|
|
8293
9686
|
errors = vErrors.length;
|
|
8294
9687
|
}
|
|
8295
9688
|
}
|
|
8296
9689
|
} else {
|
|
8297
|
-
const
|
|
9690
|
+
const err75 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8298
9691
|
if (vErrors === null) {
|
|
8299
|
-
vErrors = [
|
|
9692
|
+
vErrors = [err75];
|
|
8300
9693
|
} else {
|
|
8301
|
-
vErrors.push(
|
|
9694
|
+
vErrors.push(err75);
|
|
8302
9695
|
}
|
|
8303
9696
|
errors++;
|
|
8304
9697
|
}
|
|
8305
9698
|
}
|
|
8306
9699
|
if (data.sequence !== void 0) {
|
|
8307
|
-
if (!
|
|
8308
|
-
vErrors = vErrors === null ?
|
|
9700
|
+
if (!validate46(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
|
|
9701
|
+
vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
|
|
8309
9702
|
errors = vErrors.length;
|
|
8310
9703
|
}
|
|
8311
9704
|
}
|
|
8312
9705
|
if (data.state !== void 0) {
|
|
8313
|
-
if (!
|
|
8314
|
-
vErrors = vErrors === null ?
|
|
9706
|
+
if (!validate48(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
|
|
9707
|
+
vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
|
|
8315
9708
|
errors = vErrors.length;
|
|
8316
9709
|
}
|
|
8317
9710
|
}
|
|
8318
9711
|
if (data.git !== void 0) {
|
|
8319
|
-
if (!
|
|
8320
|
-
vErrors = vErrors === null ?
|
|
9712
|
+
if (!validate52(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
|
|
9713
|
+
vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);
|
|
8321
9714
|
errors = vErrors.length;
|
|
8322
9715
|
}
|
|
8323
9716
|
}
|
|
8324
9717
|
if (data.time !== void 0) {
|
|
8325
|
-
if (!
|
|
8326
|
-
vErrors = vErrors === null ?
|
|
9718
|
+
if (!validate56(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
|
|
9719
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
9720
|
+
errors = vErrors.length;
|
|
9721
|
+
}
|
|
9722
|
+
}
|
|
9723
|
+
if (data.lineup !== void 0) {
|
|
9724
|
+
if (!validate68(data.lineup, { instancePath: instancePath + "/lineup", parentData: data, parentDataProperty: "lineup", rootData })) {
|
|
9725
|
+
vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
|
|
8327
9726
|
errors = vErrors.length;
|
|
8328
9727
|
}
|
|
8329
9728
|
}
|
|
8330
9729
|
} else {
|
|
8331
|
-
const
|
|
9730
|
+
const err76 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8332
9731
|
if (vErrors === null) {
|
|
8333
|
-
vErrors = [
|
|
9732
|
+
vErrors = [err76];
|
|
8334
9733
|
} else {
|
|
8335
|
-
vErrors.push(
|
|
9734
|
+
vErrors.push(err76);
|
|
8336
9735
|
}
|
|
8337
9736
|
errors++;
|
|
8338
9737
|
}
|
|
@@ -8342,9 +9741,18 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8342
9741
|
|
|
8343
9742
|
// src/schema.ts
|
|
8344
9743
|
var COLORS = ["blue", "amber", "green", "violet", "rose", "slate", "coin"];
|
|
8345
|
-
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node"];
|
|
9744
|
+
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node", "line", "seal", "open", "pick", "stamp"];
|
|
8346
9745
|
var ABSENT = "#/definitions/absent/not";
|
|
8347
|
-
var ABSENT_KINDS = {
|
|
9746
|
+
var ABSENT_KINDS = {
|
|
9747
|
+
regions: "sequence / architecture / state",
|
|
9748
|
+
at: "time",
|
|
9749
|
+
into: "time",
|
|
9750
|
+
color: "time",
|
|
9751
|
+
meters: "time",
|
|
9752
|
+
region: "sequence / architecture / state",
|
|
9753
|
+
icon: "sequence / architecture / state / git / time / tree",
|
|
9754
|
+
link: "sequence / architecture / state / git / time / tree"
|
|
9755
|
+
};
|
|
8348
9756
|
var NOT_ALLOWED = {
|
|
8349
9757
|
carry: { field: "text", kind: "tag" }
|
|
8350
9758
|
};
|
|
@@ -8355,6 +9763,10 @@ var TIME_EVENT = /\/events\/items\/not$/u;
|
|
|
8355
9763
|
var TIME_EVENTS = ["now", "mark", "span"];
|
|
8356
9764
|
var TREE_EVENT = /\/events\/items\/allOf\/0\/not$/u;
|
|
8357
9765
|
var TREE_EVENTS = ["leaf", "node"];
|
|
9766
|
+
var LINEUP_EVENT = "#/definitions/notLineupEvent/not";
|
|
9767
|
+
var LINEUP_EVENTS = ["line", "seal", "open", "pick", "stamp"];
|
|
9768
|
+
var WIRED_EVENT = "#/definitions/notWiredEvent/not";
|
|
9769
|
+
var WIRED_EVENTS = ["edge", "action"];
|
|
8358
9770
|
var DURATION = /^\^\[0-9\]\+\(\\\.\[0-9\]\+\)\?\(([a-z|]+)\)\$$/u;
|
|
8359
9771
|
var RATIO = /%\)\$$/u;
|
|
8360
9772
|
var escape = (key) => key.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
@@ -8386,6 +9798,8 @@ function toFieldError(error, errors, m) {
|
|
|
8386
9798
|
if (GIT_EVENT.test(error.schemaPath)) return { pointer: at2, message: m.kindOnly(GIT_EVENTS, "git") };
|
|
8387
9799
|
if (TIME_EVENT.test(error.schemaPath)) return { pointer: `${at2}/type`, message: m.kindOnly(TIME_EVENTS, "time") };
|
|
8388
9800
|
if (TREE_EVENT.test(error.schemaPath)) return { pointer: `${at2}/type`, message: m.kindOnly(TREE_EVENTS, "tree") };
|
|
9801
|
+
if (error.schemaPath === LINEUP_EVENT) return { pointer: `${at2}/type`, message: m.kindOnly(LINEUP_EVENTS, "lineup") };
|
|
9802
|
+
if (error.schemaPath === WIRED_EVENT) return { pointer: `${at2}/type`, message: m.kindOnly(WIRED_EVENTS, "sequence / architecture / state / git / time / tree") };
|
|
8389
9803
|
const last = at2.slice(at2.lastIndexOf("/") + 1);
|
|
8390
9804
|
if (error.schemaPath === ABSENT) return { pointer: at2, message: m.not({ field: last, kind: ABSENT_KINDS[last] ?? last }) };
|
|
8391
9805
|
const allowed = NOT_ALLOWED[last];
|
|
@@ -8406,6 +9820,8 @@ function toFieldError(error, errors, m) {
|
|
|
8406
9820
|
return { pointer: at2, message: m.type(String(params.type)) };
|
|
8407
9821
|
case "minLength":
|
|
8408
9822
|
return { pointer: at2, message: m.minLength(Number(params.limit)) };
|
|
9823
|
+
case "maxLength":
|
|
9824
|
+
return { pointer: at2, message: m.maxLength(Number(params.limit)) };
|
|
8409
9825
|
case "pattern": {
|
|
8410
9826
|
if (error.schemaPath === URL_RULE) return { pointer: at2, message: m.url };
|
|
8411
9827
|
const pattern = String(params.pattern);
|
|
@@ -8418,6 +9834,8 @@ function toFieldError(error, errors, m) {
|
|
|
8418
9834
|
}
|
|
8419
9835
|
case "minItems":
|
|
8420
9836
|
return { pointer: at2, message: m.minItems(Number(params.limit)) };
|
|
9837
|
+
case "maxItems":
|
|
9838
|
+
return { pointer: at2, message: m.maxItems(Number(params.limit)) };
|
|
8421
9839
|
case "minimum":
|
|
8422
9840
|
return { pointer: at2, message: m.minimum(Number(params.limit)) };
|
|
8423
9841
|
case "const":
|
|
@@ -8457,6 +9875,7 @@ function readDiagram(input, options = {}) {
|
|
|
8457
9875
|
}
|
|
8458
9876
|
|
|
8459
9877
|
// src/timeline.ts
|
|
9878
|
+
var LINEUP_LENGTH = { line: MOTION.lineup.slide, seal: MOTION.lineup.seal, open: MOTION.fade, pick: MOTION.fade, stamp: MOTION.popFade };
|
|
8460
9879
|
function plan(step, needle) {
|
|
8461
9880
|
const out = { edges: [], events: [], busy: 0 };
|
|
8462
9881
|
let cursor = MOTION.edgeAt;
|
|
@@ -8497,6 +9916,16 @@ function plan(step, needle) {
|
|
|
8497
9916
|
return;
|
|
8498
9917
|
}
|
|
8499
9918
|
if (event.type === "now" || needle && pulled(event)) return;
|
|
9919
|
+
if (event.type === "line" || event.type === "seal" || event.type === "open" || event.type === "pick" || event.type === "stamp") {
|
|
9920
|
+
const a = cursor;
|
|
9921
|
+
const b = a + LINEUP_LENGTH[event.type];
|
|
9922
|
+
out.edges.push({ event: e, a, b, carries: false, coin: false, named: false });
|
|
9923
|
+
cursor = a + MOTION.lineup.stagger;
|
|
9924
|
+
arrived = b;
|
|
9925
|
+
changes = 0;
|
|
9926
|
+
out.busy = Math.max(out.busy, b);
|
|
9927
|
+
return;
|
|
9928
|
+
}
|
|
8500
9929
|
if (event.type === "commit" || event.type === "branch" || event.type === "leaf" || event.type === "node") {
|
|
8501
9930
|
const a = cursor;
|
|
8502
9931
|
const b = a + MOTION.draw;
|
|
@@ -8824,14 +10253,16 @@ function band(region, ink) {
|
|
|
8824
10253
|
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)}` : "";
|
|
8825
10254
|
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>`;
|
|
8826
10255
|
}
|
|
8827
|
-
function subLines(box, m, changes, y, ink) {
|
|
10256
|
+
function subLines(box, m, changes, y, ink, right) {
|
|
8828
10257
|
const seq = [[0, box.sub ?? "", "dg-ss"], ...changes];
|
|
8829
10258
|
return seq.map(([t, text2, cls], k) => {
|
|
8830
10259
|
const next = seq[k + 1]?.[0];
|
|
8831
10260
|
const anim = k === 0 ? next === void 0 ? "" : m.until(next - MOTION.untilFade) : next === void 0 ? m.rise(t) : m.rise(t, next - MOTION.untilFade);
|
|
8832
10261
|
if (text2 === "") return "";
|
|
8833
10262
|
const shown = [[k === 0 ? 0 : t, next === void 0 ? Number.POSITIVE_INFINITY : next - MOTION.untilFade]];
|
|
8834
|
-
|
|
10263
|
+
const style = cls === "dg-ss" ? TYPE.boxSub : TYPE.boxSubStrong;
|
|
10264
|
+
const drawn = right === void 0 ? write(ink, cls, box.cx, y, text2, style, shown, "middle") : write(ink, cls, right - textWidth(text2, style), y, text2, style, shown);
|
|
10265
|
+
return `<g${anim ? ` class="dg-a" style="${anim}"` : ""}>${drawn}</g>`;
|
|
8835
10266
|
}).join("");
|
|
8836
10267
|
}
|
|
8837
10268
|
function cardFrame(box, ctx, act, y, h) {
|
|
@@ -8899,9 +10330,9 @@ function endMark(e, color, ink) {
|
|
|
8899
10330
|
function lifeline(x, y1, y2) {
|
|
8900
10331
|
return `<line class="dg-ll" x1="${r1(x)}" y1="${r1(y1)}" x2="${r1(x)}" y2="${r1(y2)}"/>`;
|
|
8901
10332
|
}
|
|
8902
|
-
function edge(e, time, ctx, past = false) {
|
|
10333
|
+
function edge(e, time, ctx, past = false, since = 0) {
|
|
8903
10334
|
const { m } = ctx;
|
|
8904
|
-
ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: ALWAYS });
|
|
10335
|
+
ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: since > 0 ? [[since, Number.POSITIVE_INFINITY]] : ALWAYS });
|
|
8905
10336
|
const d = pathOf(e.points);
|
|
8906
10337
|
const head = arrowHead(e.points);
|
|
8907
10338
|
const { start: a, drawn: b, end } = time;
|
|
@@ -8937,8 +10368,9 @@ function edge(e, time, ctx, past = false) {
|
|
|
8937
10368
|
[m.total, { opacity: 0, "stroke-dashoffset": run }]
|
|
8938
10369
|
]);
|
|
8939
10370
|
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 }]]) : "";
|
|
10371
|
+
const path2 = `<path class="dg-e" d="${d}"/><path class="dg-eh" d="${head}"/>`;
|
|
8940
10372
|
return {
|
|
8941
|
-
base: `<
|
|
10373
|
+
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}"/>` : ""}`,
|
|
8942
10374
|
lit: `<g style="${cs(e.color)}"><path class="dg-e-on dg-a" pathLength="1" d="${d}" style="${line}"/><path class="dg-eh-on dg-a" d="${head}" style="${hk}"/><path class="dg-flow dg-a" d="${d}" style="${flow}"/></g>`
|
|
8943
10375
|
};
|
|
8944
10376
|
}
|
|
@@ -9233,8 +10665,133 @@ function tagMotion(ref, list2, timeOf, ctx) {
|
|
|
9233
10665
|
return `<g class="dg-a" data-ref="${esc(ref)}" style="${style}">${tagShape(ref, ctx.sh)}</g>`;
|
|
9234
10666
|
}
|
|
9235
10667
|
|
|
9236
|
-
// src/render/
|
|
10668
|
+
// src/render/lineup.ts
|
|
9237
10669
|
var r13 = (v) => Math.round(v * 100) / 100;
|
|
10670
|
+
var place = (dx, dy, scale = 1) => `translate(${r13(dx)}px,${r13(dy)}px) scale(${scale})`;
|
|
10671
|
+
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]);
|
|
10672
|
+
function drawLineup(layout, diagram, timeline, ctx, subs) {
|
|
10673
|
+
const { m } = ctx;
|
|
10674
|
+
const N = LOOK.lineup;
|
|
10675
|
+
const cut = MOTION.lineup.cut;
|
|
10676
|
+
const timeOf = (at2) => timeline.edges.find((t) => t.step === at2.step && t.event === at2.event) ?? { start: 0, drawn: 0 };
|
|
10677
|
+
const items = new Map((diagram.lineup?.items ?? []).map((item) => [item.id, item]));
|
|
10678
|
+
const turns = new Map(layout.lanes.map((lane) => [lane.id, []]));
|
|
10679
|
+
const faint = /* @__PURE__ */ new Set();
|
|
10680
|
+
const turn = (id, at2, to) => {
|
|
10681
|
+
if (faint.has(id) === to) return;
|
|
10682
|
+
if (to) faint.add(id);
|
|
10683
|
+
else faint.delete(id);
|
|
10684
|
+
turns.get(id)?.push([at2, to]);
|
|
10685
|
+
};
|
|
10686
|
+
for (const time of [...timeline.edges].sort((a, b) => a.start - b.start)) {
|
|
10687
|
+
const e = diagram.steps[time.step]?.events[time.event];
|
|
10688
|
+
if (e?.type === "line") turn(e.box, time.start, false);
|
|
10689
|
+
if (e?.type === "pick") for (const lane of layout.lanes) turn(lane.id, time.start, lane.id !== e.box);
|
|
10690
|
+
}
|
|
10691
|
+
const fadeOf = (id) => {
|
|
10692
|
+
const list2 = turns.get(id) ?? [];
|
|
10693
|
+
if (list2.length === 0) return void 0;
|
|
10694
|
+
const frames = [[0, { opacity: 1 }]];
|
|
10695
|
+
let now = 1;
|
|
10696
|
+
for (const [t, to] of list2) {
|
|
10697
|
+
const next = to ? N.faint : 1;
|
|
10698
|
+
frames.push([t, { opacity: now }, EASE.inOut], [t + MOTION.fade, { opacity: next }]);
|
|
10699
|
+
now = next;
|
|
10700
|
+
}
|
|
10701
|
+
frames.push([m.last, { opacity: now }, EASE.inOut], [m.total, { opacity: 1 }]);
|
|
10702
|
+
return m.kf(frames);
|
|
10703
|
+
};
|
|
10704
|
+
const closedOf = (seal) => [timeOf(seal).drawn, seal.until ? timeOf(seal.until).start : Number.POSITIVE_INFINITY];
|
|
10705
|
+
const hideOf = (seals) => {
|
|
10706
|
+
if (seals.length === 0) return void 0;
|
|
10707
|
+
const frames = [[0, { opacity: 1 }]];
|
|
10708
|
+
for (const seal of seals) {
|
|
10709
|
+
const [a, b] = closedOf(seal);
|
|
10710
|
+
frames.push([a, { opacity: 1 }], [a + cut, { opacity: 0 }]);
|
|
10711
|
+
if (seal.until) frames.push([b, { opacity: 0 }], [b + cut, { opacity: 1 }]);
|
|
10712
|
+
}
|
|
10713
|
+
frames.push([m.total - cut, { opacity: seals.at(-1)?.until ? 1 : 0 }], [m.total, { opacity: 1 }]);
|
|
10714
|
+
return m.kf(frames);
|
|
10715
|
+
};
|
|
10716
|
+
const sealKf = (seal) => {
|
|
10717
|
+
const { start, drawn } = timeOf(seal);
|
|
10718
|
+
const none = { opacity: 0, transform: "scaleX(0)" };
|
|
10719
|
+
const end = seal.until ? [
|
|
10720
|
+
[timeOf(seal.until).start, { opacity: 1 }, EASE.inOut],
|
|
10721
|
+
[timeOf(seal.until).start + MOTION.fade, { opacity: 0 }],
|
|
10722
|
+
[m.total, { opacity: 0 }]
|
|
10723
|
+
] : [
|
|
10724
|
+
[m.last, { opacity: 1 }, EASE.inOut],
|
|
10725
|
+
[m.total, { opacity: 0 }]
|
|
10726
|
+
];
|
|
10727
|
+
return m.kf([[0, none], [start - cut, none], [start, { opacity: 1, transform: "scaleX(0)" }, EASE.inOut], [drawn, { transform: "scaleX(1)" }], ...end]);
|
|
10728
|
+
};
|
|
10729
|
+
const leaving = (c) => {
|
|
10730
|
+
if (!c.until) return void 0;
|
|
10731
|
+
const until = c.until;
|
|
10732
|
+
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);
|
|
10733
|
+
return next ? { at: timeOf(next).start, moved: true } : { at: timeOf(until).start, moved: false };
|
|
10734
|
+
};
|
|
10735
|
+
const chipKf = (c) => {
|
|
10736
|
+
const a = timeOf(c).start;
|
|
10737
|
+
const rest = place(0, 0);
|
|
10738
|
+
const frames = [];
|
|
10739
|
+
if (c.from) {
|
|
10740
|
+
const off = place(c.from[0] - c.x, c.from[1] - c.y);
|
|
10741
|
+
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 }]);
|
|
10742
|
+
} else {
|
|
10743
|
+
const off = place(0, 0, LOOK.popFrom);
|
|
10744
|
+
frames.push([0, { opacity: 0, transform: off }], [a, { opacity: 0, transform: off }, EASE.pop], [a + MOTION.popFade, { opacity: 1, transform: rest }]);
|
|
10745
|
+
}
|
|
10746
|
+
const leaves = leaving(c);
|
|
10747
|
+
if (leaves) {
|
|
10748
|
+
frames.push([leaves.at, { opacity: 1 }, EASE.inOut], [leaves.at + (leaves.moved ? cut : MOTION.fade), { opacity: 0 }], [m.total, { opacity: 0 }]);
|
|
10749
|
+
} else {
|
|
10750
|
+
frames.push([m.last, { opacity: 1 }, EASE.inOut], [m.total, { opacity: 0 }]);
|
|
10751
|
+
}
|
|
10752
|
+
return m.kf(frames);
|
|
10753
|
+
};
|
|
10754
|
+
const chip = (c, closed) => {
|
|
10755
|
+
const item = items.get(c.id);
|
|
10756
|
+
const color = item?.color;
|
|
10757
|
+
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}"/>`;
|
|
10758
|
+
const shown = without([timeOf(c).start + MOTION.lineup.slide, leaving(c)?.at ?? Number.POSITIVE_INFINITY], closed);
|
|
10759
|
+
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, shown, "middle");
|
|
10760
|
+
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>`;
|
|
10761
|
+
};
|
|
10762
|
+
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>`;
|
|
10763
|
+
const faded = new Map(layout.lanes.map((lane) => [lane.id, fadeOf(lane.id)]));
|
|
10764
|
+
const lanes = layout.lanes.map((lane) => {
|
|
10765
|
+
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}/>`;
|
|
10766
|
+
const rings = layout.picks.flatMap((pick, k) => pick.lane === lane.id ? [ring(pick, layout.picks[k + 1], `${rect("dg-halo")}${rect("dg-on")}`)] : []).join("");
|
|
10767
|
+
const notes = subLines(lane, m, subs.get(lane.id) ?? [], lane.title.baseline, ctx.ink, lane.noteRight);
|
|
10768
|
+
const fade = faded.get(lane.id);
|
|
10769
|
+
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>`;
|
|
10770
|
+
}).join("");
|
|
10771
|
+
const stripes = N.seal.stripe;
|
|
10772
|
+
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>`;
|
|
10773
|
+
const chips = layout.lanes.map((lane) => {
|
|
10774
|
+
const seals = layout.seals.filter((s) => s.lane === lane.id);
|
|
10775
|
+
const closed = seals.map(closedOf);
|
|
10776
|
+
const seats = layout.chips.filter((c) => c.lane === lane.id).map((c) => chip(c, closed)).join("");
|
|
10777
|
+
const hide = hideOf(seals);
|
|
10778
|
+
const track = `<g${hide ? ' class="dg-a"' : ""} data-lineup-track="${esc(lane.id)}"${hide ? ` style="${hide}"` : ""}>${seats}</g>`;
|
|
10779
|
+
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("");
|
|
10780
|
+
const stamps = layout.stamps.filter((s) => s.lane === lane.id).map((s) => {
|
|
10781
|
+
const at2 = timeOf(s).start;
|
|
10782
|
+
const cx = s.x + s.w / 2;
|
|
10783
|
+
const cy = s.y + s.h / 2;
|
|
10784
|
+
const text2 = write(ctx.ink, "dg-ln-st", cx, cy + LOOK.baseline.tag, s.text, TYPE.stamp, [[at2, Number.POSITIVE_INFINITY]], "middle");
|
|
10785
|
+
return `<g class="dg-popc dg-a" data-lineup-stamp="${esc(lane.id)}" style="${cs(N.stamp.color)};${m.pop(at2)}"><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>`;
|
|
10786
|
+
}).join("");
|
|
10787
|
+
const fade = faded.get(lane.id);
|
|
10788
|
+
return `<g${fade ? ` class="dg-a" style="${fade}"` : ""}>${track}${covers}${stamps}</g>`;
|
|
10789
|
+
}).join("");
|
|
10790
|
+
return { lanes, chips: `${pattern}${chips}` };
|
|
10791
|
+
}
|
|
10792
|
+
|
|
10793
|
+
// src/render/time.ts
|
|
10794
|
+
var r14 = (v) => Math.round(v * 100) / 100;
|
|
9238
10795
|
var ja2 = (cls, text2) => hasWide(text2) ? `${cls} ${cls}j` : cls;
|
|
9239
10796
|
var sansOf = (t) => ({ ...t, family: "sans" });
|
|
9240
10797
|
function simplify(keys2) {
|
|
@@ -9285,18 +10842,18 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9285
10842
|
const times = [passed.get(u), box ? arrivals.get(box) : void 0].filter((t) => t !== void 0);
|
|
9286
10843
|
return times.length > 0 ? Math.min(...times) : void 0;
|
|
9287
10844
|
};
|
|
9288
|
-
for (const p of layout.periods) if (p.index % 2 === 1) base.push(`<rect class="dg-tm-ep" x="${
|
|
10845
|
+
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"/>`);
|
|
9289
10846
|
if (layout.zoom) {
|
|
9290
10847
|
const z = layout.zoom;
|
|
9291
10848
|
z.columns.forEach((c, k) => {
|
|
9292
|
-
if (k > 0) base.push(`<line class="dg-tm-sep" x1="${
|
|
10849
|
+
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)}"/>`);
|
|
9293
10850
|
base.push(write(ink, ja2("dg-tm-hd", c.head), c.x + c.w / 2, z.headY, c.head, TYPE.timeHead, ALWAYS, "middle"));
|
|
9294
10851
|
for (const box of c.boxes) node.push(columnBox(box, c.unit));
|
|
9295
10852
|
});
|
|
9296
10853
|
}
|
|
9297
10854
|
function columnBox(box, unit) {
|
|
9298
10855
|
const on = [...new Set(layout.wires.filter((w) => w.from === box || w.to === box).map((w) => w.step))].sort((a, b) => a - b);
|
|
9299
|
-
const frame = (cls) => `<rect class="${cls}" x="${
|
|
10856
|
+
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}"/>`;
|
|
9300
10857
|
if (box.empty) {
|
|
9301
10858
|
const shown2 = passed.get(unit);
|
|
9302
10859
|
const word = layout.zoom?.empty ?? "";
|
|
@@ -9312,11 +10869,11 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9312
10869
|
for (const row of layout.rows) {
|
|
9313
10870
|
const parts = [];
|
|
9314
10871
|
for (const mark of layout.marks.filter((x2) => x2.row === row.id)) {
|
|
9315
|
-
const rect = (cls, extra = "") => `<rect class="${cls}" x="${
|
|
10872
|
+
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}/>`;
|
|
9316
10873
|
parts.push(rect("dg-tm-slot"));
|
|
9317
10874
|
if (mark.empty) {
|
|
9318
10875
|
const shown2 = passed.get(mark.unit);
|
|
9319
|
-
if (shown2 !== void 0) parts.push(`<circle class="dg-tm-x dg-a" cx="${
|
|
10876
|
+
if (shown2 !== 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(shown2, m.last, { f: 0.2 })}"/>`);
|
|
9320
10877
|
continue;
|
|
9321
10878
|
}
|
|
9322
10879
|
const shown = filled(row.id, mark.unit);
|
|
@@ -9336,13 +10893,13 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9336
10893
|
const z = layout.zoom;
|
|
9337
10894
|
const hide = layout.spans.filter((s) => s.kind === "box" && s.from <= z.to && z.from <= s.to).map((s) => at2(s.step, s.event)).filter((t) => t !== void 0).sort((a, b) => a - b)[0];
|
|
9338
10895
|
const guides = z.guides.map((g) => `<path class="dg-tm-gd" d="${pathOf(g)}"/>`).join("");
|
|
9339
|
-
const lens = `<rect class="dg-tm-fr" x="${
|
|
10896
|
+
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}`;
|
|
9340
10897
|
base.push(hide === void 0 ? lens : `<g class="dg-a" style="${m.until(hide)}">${lens}</g>`);
|
|
9341
10898
|
}
|
|
9342
|
-
const x = (u) =>
|
|
9343
|
-
const majors = layout.ticks.map((t) => `M ${x(t.at)} ${
|
|
9344
|
-
const minors = layout.minor.map((u) => `M ${x(u)} ${
|
|
9345
|
-
base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${
|
|
10899
|
+
const x = (u) => r14(axis.x + u * axis.unit);
|
|
10900
|
+
const majors = layout.ticks.map((t) => `M ${x(t.at)} ${r14(axis.line - T.major / 2)} V ${r14(axis.line + T.major / 2)}`);
|
|
10901
|
+
const minors = layout.minor.map((u) => `M ${x(u)} ${r14(axis.line - T.minor / 2)} V ${r14(axis.line + T.minor / 2)}`);
|
|
10902
|
+
base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${r14(axis.line)} H ${x(axis.count)} ${[...majors, ...minors].join(" ")}"/>`);
|
|
9346
10903
|
for (const t of layout.ticks) base.push(write(ink, ja2("dg-tm-tk", t.text), t.left, t.y, t.text, TYPE.timeTick));
|
|
9347
10904
|
for (const p of layout.periods) {
|
|
9348
10905
|
base.push(write(ink, ja2("dg-tm-en", p.name), p.x + p.w / 2, p.nameY, p.name, TYPE.timePeriod, ALWAYS, "middle"));
|
|
@@ -9355,16 +10912,16 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9355
10912
|
const shown = [[a, until ?? Number.POSITIVE_INFINITY]];
|
|
9356
10913
|
const vis = until === void 0 ? m.vis(a) : m.vis(a, until, { within: true });
|
|
9357
10914
|
if (span.kind === "bracket") {
|
|
9358
|
-
const [x0, x1, y0, y12] = [
|
|
10915
|
+
const [x0, x1, y0, y12] = [r14(span.x + 1), r14(span.x + span.w - 1), r14(span.y), r14(span.y + span.h)];
|
|
9359
10916
|
const words = write(ink, ja2("dg-tm-bt", span.text), span.textRect.x + span.textRect.w / 2, span.textY, span.text, TYPE.spanText, shown, "middle");
|
|
9360
10917
|
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>`);
|
|
9361
10918
|
continue;
|
|
9362
10919
|
}
|
|
9363
|
-
base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><rect class="dg-tm-bx" x="${
|
|
10920
|
+
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>`);
|
|
9364
10921
|
const tag = span.textRect;
|
|
9365
10922
|
ink.push({ text: span.text, rect: tag, shown, boxed: true });
|
|
9366
10923
|
top.push(
|
|
9367
|
-
`<g class="dg-tg dg-popc dg-a" style="${cs(span.color)};${until === void 0 ? m.pop(a) : m.pop(a, until)}"><rect x="${
|
|
10924
|
+
`<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>`
|
|
9368
10925
|
);
|
|
9369
10926
|
}
|
|
9370
10927
|
const P = T.point;
|
|
@@ -9372,7 +10929,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9372
10929
|
const { cx, cy, r } = point;
|
|
9373
10930
|
const times = point.changes.map((c) => at2(c.step, c.event) ?? Number.POSITIVE_INFINITY);
|
|
9374
10931
|
const first = times[0];
|
|
9375
|
-
base.push(`<path class="dg-tm-con" d="M ${
|
|
10932
|
+
base.push(`<path class="dg-tm-con" d="M ${r14(cx)} ${r14(rowsBottom + 3)} L ${r14(cx)} ${r14(cy - r - 2)}"/>`);
|
|
9376
10933
|
const tx = point.text.x;
|
|
9377
10934
|
const name = write(ink, ja2("dg-tm-pn", point.id), tx, cy + P.nameY, point.id, TYPE.pointName);
|
|
9378
10935
|
const grey = name.replace(/class="([^"]*)"/u, 'class="$1 dg-tm-pn-g"');
|
|
@@ -9388,9 +10945,9 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9388
10945
|
const rings = point.changes.map((c, k) => {
|
|
9389
10946
|
const t = times[k];
|
|
9390
10947
|
if (!c.color || !Number.isFinite(t)) return "";
|
|
9391
|
-
return `<g class="dg-popc dg-a" style="${cs(c.color)};${m.pop(t)}"><circle class="dg-tm-pc" cx="${
|
|
10948
|
+
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>`;
|
|
9392
10949
|
}).join("");
|
|
9393
|
-
node.push(`<g data-point="${esc(point.id)}"><circle class="dg-tm-pg" cx="${
|
|
10950
|
+
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>`);
|
|
9394
10951
|
}
|
|
9395
10952
|
const wired = new Set(layout.wires.map((w) => `${w.step}/${w.event}`));
|
|
9396
10953
|
for (const e of layout.edges) {
|
|
@@ -9422,7 +10979,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9422
10979
|
const { y1, y2 } = layout.needle;
|
|
9423
10980
|
const N = T.needle;
|
|
9424
10981
|
top.push(
|
|
9425
|
-
`<g class="dg-a" data-needle="" style="${m.move(path2)}"><line class="dg-tm-nd" x1="0" y1="${
|
|
10982
|
+
`<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>`
|
|
9426
10983
|
);
|
|
9427
10984
|
return { base: base.join(""), lit: lit.join(""), node: node.join(""), top: top.join("") };
|
|
9428
10985
|
}
|
|
@@ -9432,12 +10989,12 @@ function meterField(field, keys2, ctx) {
|
|
|
9432
10989
|
const { x, w, line, text: text2 } = field.meter;
|
|
9433
10990
|
const y = field.y + M.y;
|
|
9434
10991
|
const kf = m.kf([
|
|
9435
|
-
...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${
|
|
9436
|
-
[m.last, { transform: `scaleX(${
|
|
10992
|
+
...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${r14(v * 1e3) / 1e3})` }]),
|
|
10993
|
+
[m.last, { transform: `scaleX(${r14(valueAt(keys2, m.last) * 1e3) / 1e3})` }, EASE.inOut],
|
|
9437
10994
|
[m.total, { transform: "scaleX(0)" }]
|
|
9438
10995
|
]);
|
|
9439
10996
|
const lx = x + w * line;
|
|
9440
|
-
return `<rect class="dg-tm-mt" x="${
|
|
10997
|
+
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, field.y + M.textY, text2, TYPE.meterLine, ALWAYS, "middle");
|
|
9441
10998
|
}
|
|
9442
10999
|
function timeFocus(layout, timeline, step, parts, vw, vh) {
|
|
9443
11000
|
const span = timeline.steps[step];
|
|
@@ -9459,7 +11016,7 @@ function timeFocus(layout, timeline, step, parts, vw, vh) {
|
|
|
9459
11016
|
}
|
|
9460
11017
|
|
|
9461
11018
|
// src/render/tree.ts
|
|
9462
|
-
var
|
|
11019
|
+
var r15 = (v) => Math.round(v * 100) / 100;
|
|
9463
11020
|
function drawTree(layout, diagram, timeline, ctx) {
|
|
9464
11021
|
const { m } = ctx;
|
|
9465
11022
|
const T = LOOK.tree;
|
|
@@ -9518,7 +11075,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9518
11075
|
const ties = layout.nodes.flatMap((n) => {
|
|
9519
11076
|
if (!n.card) return [];
|
|
9520
11077
|
const at2 = drawnAt.get(n.id) ?? 0;
|
|
9521
|
-
const d = `M ${
|
|
11078
|
+
const d = `M ${r15(n.cx)} ${r15(n.y + n.h + LOOK.edge.inset)} V ${r15(n.card.y - LOOK.edge.inset)}`;
|
|
9522
11079
|
return [faded(n.id, `<path class="dg-tree-con dg-a" d="${d}" style="${m.vis(at2)}"/>`)];
|
|
9523
11080
|
}).join("");
|
|
9524
11081
|
const traced = /* @__PURE__ */ new Set();
|
|
@@ -9553,7 +11110,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9553
11110
|
return [
|
|
9554
11111
|
faded(
|
|
9555
11112
|
n.id,
|
|
9556
|
-
`<rect class="dg-tree-card" x="${
|
|
11113
|
+
`<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}`,
|
|
9557
11114
|
` data-tree-card="${esc(n.id)}"`
|
|
9558
11115
|
)
|
|
9559
11116
|
];
|
|
@@ -9563,10 +11120,10 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9563
11120
|
const on = [...active.get(n.id) ?? []].sort((x, y) => x - y);
|
|
9564
11121
|
const act = on.length > 0 ? activeKf(ctx, on) : void 0;
|
|
9565
11122
|
const radius = n.root ? T.root.radius : T.radius;
|
|
9566
|
-
const rect = (cls, extra = "") => `<rect class="${cls}" x="${
|
|
11123
|
+
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}/>`;
|
|
9567
11124
|
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>` : ""}`;
|
|
9568
11125
|
const ix = n.x + T.root.iconX + B.icon / 2;
|
|
9569
|
-
const mark = n.root ? `<rect class="dg-ic" x="${
|
|
11126
|
+
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)}` : "";
|
|
9570
11127
|
const shown = [[at2, Number.POSITIVE_INFINITY]];
|
|
9571
11128
|
const texts = n.lines.map((line, k) => {
|
|
9572
11129
|
const style = n.styles[k] ?? TYPE.boxName;
|
|
@@ -9577,7 +11134,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9577
11134
|
const inner = faded(n.id, `${frame}${mark}${texts}`, ` data-tree-node="${esc(n.id)}"${n.root ? ` data-tree-root="${esc(n.id)}"` : ""}`);
|
|
9578
11135
|
return `<g class="dg-popc dg-a" style="${cs(n.color)};${m.pop(at2)}">${inner}</g>`;
|
|
9579
11136
|
}).join("");
|
|
9580
|
-
return { links: links + ties, trails, nodes: cards + nodes };
|
|
11137
|
+
return { links: links + ties, trails, nodes: cards + nodes, appear: drawnAt };
|
|
9581
11138
|
}
|
|
9582
11139
|
|
|
9583
11140
|
// src/render/motion.ts
|
|
@@ -9771,6 +11328,16 @@ var PART_CSS = [
|
|
|
9771
11328
|
`.dg-tree-one{${font(TYPE.boxName)};fill:var(--ink)}`,
|
|
9772
11329
|
`.dg-tree-rh{${font(TYPE.rootHash)};fill:var(--ink)}`,
|
|
9773
11330
|
`.dg-tree-rn{${font(TYPE.rootName)};fill:var(--mute)}`,
|
|
11331
|
+
// 列の図 (#3239)。封は列の左端から右へ伸びる
|
|
11332
|
+
".dg-ln-chip{fill:var(--c)}",
|
|
11333
|
+
`.dg-ln-plain{fill:color-mix(in srgb,var(--mute) ${X.chipPlain}%,var(--surf))}`,
|
|
11334
|
+
`.dg-ln-t{${font(TYPE.chip)};fill:var(--on-c)}`,
|
|
11335
|
+
`.dg-ln-tp{${font(TYPE.chip)};fill:var(--ink)}`,
|
|
11336
|
+
".dg-ln-seal{transform-box:fill-box;transform-origin:0 50%}",
|
|
11337
|
+
`.dg-ln-sd{fill:color-mix(in srgb,var(--mute) ${X.sealDark}%,var(--surf))}`,
|
|
11338
|
+
`.dg-ln-sl{fill:color-mix(in srgb,var(--mute) ${X.sealLight}%,var(--surf))}`,
|
|
11339
|
+
`.dg-ln-stamp{fill:var(--surf);stroke:var(--c);stroke-width:${S.stamp}}`,
|
|
11340
|
+
`.dg-ln-st{${font(TYPE.stamp)};fill:var(--ct)}`,
|
|
9774
11341
|
// 時間軸の図 (#3165)。和文を含む字は、末尾に j を付けた class で同じ大きさと太さの和文の字にする
|
|
9775
11342
|
`.dg-tm-ep{fill:color-mix(in srgb,var(--ink) ${X.timeShade}%,transparent)}`,
|
|
9776
11343
|
`.dg-tm-sep{stroke:var(--hair);stroke-width:${S.hair};stroke-dasharray:2 4}`,
|
|
@@ -9909,7 +11476,7 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
9909
11476
|
const vars = paletteVars(palette, theme);
|
|
9910
11477
|
const id = nameOf(`${JSON.stringify(diagram)}|${vars}|${follow ? `${follow.width}|${follow.lang}` : ""}`);
|
|
9911
11478
|
const m = new Motion(`dg${id}`, timeline.total, timeline.last);
|
|
9912
|
-
const ctx = { m, t: timeline, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
|
|
11479
|
+
const ctx = { m, t: timeline, id, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
|
|
9913
11480
|
const on = involved(diagram);
|
|
9914
11481
|
const subs = subChanges(diagram, timeline, layout.kind !== "sequence");
|
|
9915
11482
|
const L = { band: [], base: [], lit: [], node: [], badge: [], top: [] };
|
|
@@ -9933,13 +11500,19 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
9933
11500
|
L.top.push(git.tags);
|
|
9934
11501
|
}
|
|
9935
11502
|
const treeLayout = isTreeLayout(layout) ? layout : void 0;
|
|
9936
|
-
|
|
9937
|
-
|
|
11503
|
+
const tree = treeLayout ? drawTree(treeLayout, diagram, timeline, ctx) : void 0;
|
|
11504
|
+
if (tree) {
|
|
9938
11505
|
L.base.push(tree.links);
|
|
9939
11506
|
L.lit.push(tree.trails);
|
|
9940
11507
|
L.node.push(tree.nodes);
|
|
9941
11508
|
}
|
|
9942
11509
|
const runs = new Set((treeLayout?.runs ?? []).map((r) => `${r.step}/${r.event}`));
|
|
11510
|
+
const lineupLayout = isLineupLayout(layout) ? layout : void 0;
|
|
11511
|
+
if (lineupLayout) {
|
|
11512
|
+
const lineup = drawLineup(lineupLayout, diagram, timeline, ctx, subs);
|
|
11513
|
+
L.base.push(lineup.lanes);
|
|
11514
|
+
L.node.push(lineup.chips);
|
|
11515
|
+
}
|
|
9943
11516
|
const timeLayout = isTimeLayout(layout) ? layout : void 0;
|
|
9944
11517
|
if (timeLayout) {
|
|
9945
11518
|
const drawn = drawTime(timeLayout, diagram, timeline, ctx, subs);
|
|
@@ -9952,14 +11525,15 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
9952
11525
|
for (const e of layout.edges) {
|
|
9953
11526
|
const time = timeline.edges.find((t) => t.step === e.step && t.event === e.event);
|
|
9954
11527
|
if (!time || timeLayout && !wired.has(`${e.step}/${e.event}`) || runs.has(`${e.step}/${e.event}`)) continue;
|
|
9955
|
-
const
|
|
11528
|
+
const since = Math.max(tree?.appear.get(e.from) ?? 0, tree?.appear.get(e.to) ?? 0);
|
|
11529
|
+
const drawn = edge(e, time, ctx, isState, since);
|
|
9956
11530
|
L.base.push(drawn.base);
|
|
9957
11531
|
L.lit.push(drawn.lit);
|
|
9958
11532
|
}
|
|
9959
11533
|
const states = new Map((timeline.states ?? []).map((s) => [s.box, s]));
|
|
9960
11534
|
const links = new Map(diagram.boxes.flatMap((b) => b.link === void 0 ? [] : [[b.id, b.link]]));
|
|
9961
11535
|
const linked = (id2, markup) => linkTo(links.get(id2), markup);
|
|
9962
|
-
for (const box of timeLayout ? [] : layout.boxes) {
|
|
11536
|
+
for (const box of timeLayout || lineupLayout ? [] : layout.boxes) {
|
|
9963
11537
|
if (box.ghost) {
|
|
9964
11538
|
L.node.push(linked(box.id, ghostCard(box, ink)));
|
|
9965
11539
|
continue;
|
|
@@ -10029,6 +11603,10 @@ function focusParts(layout, diagram, step) {
|
|
|
10029
11603
|
rects.push({ x: Math.min(...xs), y: Math.min(...ys), w: Math.max(...xs) - Math.min(...xs), h: Math.max(...ys) - Math.min(...ys) });
|
|
10030
11604
|
}
|
|
10031
11605
|
}
|
|
11606
|
+
if (isLineupLayout(layout)) {
|
|
11607
|
+
const changed = new Set((diagram.steps[step]?.events ?? []).flatMap((e) => "box" in e ? [e.box] : []));
|
|
11608
|
+
rects.push(...layout.lanes.filter((lane) => changed.has(lane.id)));
|
|
11609
|
+
}
|
|
10032
11610
|
for (const event of diagram.steps[step]?.events ?? []) {
|
|
10033
11611
|
const ids = event.type === "edge" ? [event.from, event.to] : event.type === "action" || event.type === "swap" ? [event.box] : [];
|
|
10034
11612
|
for (const id of ids) {
|
|
@@ -10128,7 +11706,7 @@ function renderDiagram(input, options = {}) {
|
|
|
10128
11706
|
const read2 = readDiagram(input, { lang });
|
|
10129
11707
|
if (!read2.ok) throw new Error(FIGURE_TEXT[lang].cannotDraw(read2.errors.map((e) => `${e.pointer} ${e.message}`).join(" / ")));
|
|
10130
11708
|
const diagram = read2.diagram;
|
|
10131
|
-
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);
|
|
11709
|
+
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);
|
|
10132
11710
|
return renderLayout(diagram, layout, buildTimeline(diagram, options.still === true), options);
|
|
10133
11711
|
}
|
|
10134
11712
|
function renderLayout(diagram, layout, timeline, options = {}) {
|
|
@@ -10613,6 +12191,22 @@ var ja3 = () => {
|
|
|
10613
12191
|
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`,
|
|
10614
12192
|
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`,
|
|
10615
12193
|
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`,
|
|
12194
|
+
lineupOnly: (word) => `${word} \u306E\u884C\u306F lineup (\u5217\u306E\u56F3) \u3067\u3060\u3051\u66F8\u3051\u308B`,
|
|
12195
|
+
lineupNoGroup: "lineup (\u5217\u306E\u56F3) \u306B\u306F group \u3092\u66F8\u3051\u306A\u3044\u3002\u5217\u306F box \u306E\u884C\u3067\u5BA3\u8A00\u3059\u308B",
|
|
12196
|
+
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",
|
|
12197
|
+
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",
|
|
12198
|
+
noItems: "item \u306E\u884C\u3067\u30C1\u30C3\u30D7\u3092 1 \u3064\u4EE5\u4E0A\u5BA3\u8A00\u3059\u308B",
|
|
12199
|
+
itemShape: "item \u306F item <\u540D\u672D>, <\u540D\u672D> [color: <\u8272>, label: <\u5B57>] \u306E\u5F62\u3067\u66F8\u304F",
|
|
12200
|
+
lineShape: "line \u306F line <\u5217>: <\u30C1\u30C3\u30D7>, <\u30C1\u30C3\u30D7> \u306E\u5F62\u3067\u66F8\u304F",
|
|
12201
|
+
laneShape: (word) => `${word} \u306F ${word} <\u5217> \u306E\u5F62\u3067\u66F8\u304F`,
|
|
12202
|
+
stampShape: "stamp \u306F stamp <\u5217>: <\u5B57> \u306E\u5F62\u3067\u66F8\u304F",
|
|
12203
|
+
labelTooLong: (limit) => `label \u306F ${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
|
|
12204
|
+
noSuchItem: (id) => `${id} \u3068\u3044\u3046\u30C1\u30C3\u30D7\u306F\u5BA3\u8A00\u3057\u3066\u3044\u306A\u3044`,
|
|
12205
|
+
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`,
|
|
12206
|
+
laneFull: (lane, limit) => `${lane} \u306E\u5217\u306B\u4E26\u3079\u3089\u308C\u308B\u30C1\u30C3\u30D7\u306F ${limit} \u679A\u307E\u3067`,
|
|
12207
|
+
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`,
|
|
12208
|
+
sealTwice: (lane) => `${lane} \u306E\u5217\u306B\u306F\u3082\u3046\u5C01\u3092\u3057\u3066\u3044\u308B`,
|
|
12209
|
+
openUnsealed: (lane) => `${lane} \u306E\u5217\u306B\u306F\u5C01\u3092\u3057\u3066\u3044\u306A\u3044`,
|
|
10616
12210
|
timeTwice: (word) => `${word} \u306F 1 \u3064\u3060\u3051\u5BA3\u8A00\u3059\u308B`,
|
|
10617
12211
|
noScale: "scale \u306E\u884C\u3067\u76EE\u76DB\u308A\u3092\u5BA3\u8A00\u3059\u308B",
|
|
10618
12212
|
noRows: "row \u306E\u884C\u3067\u5370\u306E\u5217\u3092 1 \u3064\u4EE5\u4E0A\u5BA3\u8A00\u3059\u308B",
|
|
@@ -10735,6 +12329,22 @@ var en2 = () => {
|
|
|
10735
12329
|
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`,
|
|
10736
12330
|
twoParents: (id) => `${id} is already a child of another node. A tree box has only one parent`,
|
|
10737
12331
|
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`,
|
|
12332
|
+
lineupOnly: (word) => `${word} lines can be written only in lineup diagrams`,
|
|
12333
|
+
lineupNoGroup: "A lineup diagram takes no group. Declare the lanes with box lines",
|
|
12334
|
+
lineupNoEdge: "A lineup diagram takes no edge lines. Chips move when a line line rewrites a lane",
|
|
12335
|
+
lineupNoAct: "A lineup diagram takes no act lines. Rewrite the text at the top right of a lane with a note line",
|
|
12336
|
+
noItems: "Declare at least one chip with an item line",
|
|
12337
|
+
itemShape: "Write an item as item <id>, <id> [color: <color>, label: <text>]",
|
|
12338
|
+
lineShape: "Write a line as line <lane>: <chip>, <chip>",
|
|
12339
|
+
laneShape: (word) => `Write ${word} as ${word} <lane>`,
|
|
12340
|
+
stampShape: "Write a stamp as stamp <lane>: <text>",
|
|
12341
|
+
labelTooLong: (limit) => `A label is at most ${limit} characters`,
|
|
12342
|
+
noSuchItem: (id) => `The chip ${id} is not declared`,
|
|
12343
|
+
itemTwice: (id) => `${id} is written twice on this line. A lane holds one of each chip`,
|
|
12344
|
+
laneFull: (lane, limit) => `The lane ${lane} holds at most ${limit} chips`,
|
|
12345
|
+
lineOnSealed: (lane) => `The lane ${lane} is sealed, so its order cannot be written. Open it first`,
|
|
12346
|
+
sealTwice: (lane) => `The lane ${lane} is already sealed`,
|
|
12347
|
+
openUnsealed: (lane) => `The lane ${lane} is not sealed`,
|
|
10738
12348
|
timeTwice: (word) => `Declare only one ${word}`,
|
|
10739
12349
|
noScale: "Declare the scale with a scale line",
|
|
10740
12350
|
noRows: "Declare at least one row with a row line",
|
|
@@ -10797,6 +12407,9 @@ var COMMIT = new RegExp(`^commit\\s+([^\\s[]+)(?:\\s+${ON}\\s+([^\\s[]+))?(?:\\s
|
|
|
10797
12407
|
var CUT = new RegExp(`^([^\\s[]+)\\s+${FROM}(?:\\s+([^\\s[]+))?\\s*$`, "du");
|
|
10798
12408
|
var LEAF = /^leaf\s+([^\s[]+)/du;
|
|
10799
12409
|
var NODE = new RegExp(`^node\\s+([^\\s[]+)\\s+${OF}\\s+`, "du");
|
|
12410
|
+
var ORDER = /^line\s+([^\s:[]+)\s*:/du;
|
|
12411
|
+
var STAMP = /^stamp\s+([^\s:[]+)\s*:/du;
|
|
12412
|
+
var ON_LANE = /^(?:seal|open|pick)\s+(\S+)\s*$/du;
|
|
10800
12413
|
var HASH = /^[0-9a-f]{4,40}$/u;
|
|
10801
12414
|
var URL_FORM = /^(\/|https?:\/\/)/u;
|
|
10802
12415
|
var SCALE2 = /^scale\s+(\S+)\s+(\S+)\s+([^\s[]+)/du;
|
|
@@ -10963,6 +12576,9 @@ function parseLines(lines, m) {
|
|
|
10963
12576
|
const isGit = kind === "git";
|
|
10964
12577
|
const isTime = kind === "time";
|
|
10965
12578
|
const isTree = kind === "tree";
|
|
12579
|
+
const isLineup = kind === "lineup";
|
|
12580
|
+
const items = [];
|
|
12581
|
+
const sealed = /* @__PURE__ */ new Set();
|
|
10966
12582
|
const trees = /* @__PURE__ */ new Map();
|
|
10967
12583
|
const parents = /* @__PURE__ */ new Map();
|
|
10968
12584
|
let scale;
|
|
@@ -11051,6 +12667,7 @@ function parseLines(lines, m) {
|
|
|
11051
12667
|
}
|
|
11052
12668
|
const edge2 = EDGE.exec(text2);
|
|
11053
12669
|
if (edge2) {
|
|
12670
|
+
if (isLineup) throw fail(source, 0, m.lineupNoEdge);
|
|
11054
12671
|
if (isState && !building) paths.push(readPath(source, edge2));
|
|
11055
12672
|
else inStep(source).events.push(readEdge(source, edge2));
|
|
11056
12673
|
continue;
|
|
@@ -11064,6 +12681,7 @@ function parseLines(lines, m) {
|
|
|
11064
12681
|
if (!isGit && (word === "branch" || word === "commit")) throw fail(source, 0, m.gitOnly(word));
|
|
11065
12682
|
if (!isTime && isOneOf(TIME_HEADS, word)) throw fail(source, 0, m.timeOnly(word));
|
|
11066
12683
|
if (!isTree && isOneOf(TREE_HEADS, word)) throw fail(source, 0, m.treeOnly(word));
|
|
12684
|
+
if (!isLineup && isOneOf(LINEUP_HEADS, word)) throw fail(source, 0, m.lineupOnly(word));
|
|
11067
12685
|
if (!isOneOf(HEADS, word)) {
|
|
11068
12686
|
const old = oldForm(text2, building !== void 0);
|
|
11069
12687
|
throw fail(source, 0, old ? m.oldForm(old.word, old.shape) : m.unknownHead(word));
|
|
@@ -11107,6 +12725,7 @@ function parseLines(lines, m) {
|
|
|
11107
12725
|
inStep(source).sources.push(readSource(source));
|
|
11108
12726
|
break;
|
|
11109
12727
|
case "act": {
|
|
12728
|
+
if (isLineup) throw fail(source, 0, m.lineupNoAct);
|
|
11110
12729
|
const step = inStep(source);
|
|
11111
12730
|
const on = readOnBox(source, word, m.actShape);
|
|
11112
12731
|
step.events.push({ type: "action", box: on.box, label: on.text });
|
|
@@ -11164,6 +12783,26 @@ function parseLines(lines, m) {
|
|
|
11164
12783
|
step.events.push(readNode(source));
|
|
11165
12784
|
break;
|
|
11166
12785
|
}
|
|
12786
|
+
case "item":
|
|
12787
|
+
readItem(source);
|
|
12788
|
+
break;
|
|
12789
|
+
case "line": {
|
|
12790
|
+
const step = inStep(source);
|
|
12791
|
+
step.events.push(readOrder(source));
|
|
12792
|
+
break;
|
|
12793
|
+
}
|
|
12794
|
+
case "seal":
|
|
12795
|
+
case "open":
|
|
12796
|
+
case "pick": {
|
|
12797
|
+
const step = inStep(source);
|
|
12798
|
+
step.events.push(readOnLane(source, word));
|
|
12799
|
+
break;
|
|
12800
|
+
}
|
|
12801
|
+
case "stamp": {
|
|
12802
|
+
const step = inStep(source);
|
|
12803
|
+
step.events.push(readStamp(source));
|
|
12804
|
+
break;
|
|
12805
|
+
}
|
|
11167
12806
|
}
|
|
11168
12807
|
}
|
|
11169
12808
|
if (group) throw fail(group.source, 0, m.unclosedGroup(group.id));
|
|
@@ -11171,6 +12810,7 @@ function parseLines(lines, m) {
|
|
|
11171
12810
|
finish();
|
|
11172
12811
|
if (isGit && branches.length === 0) throw fail(head, 0, m.noBranches);
|
|
11173
12812
|
if (isTree && trees.size === 0) throw fail(head, 0, m.noLeaves);
|
|
12813
|
+
if (isLineup && items.length === 0) throw fail(head, 0, m.noItems);
|
|
11174
12814
|
if (boxes.length === 0 && !isGit && !isTime && !isTree) throw fail(head, 0, m.noBoxes);
|
|
11175
12815
|
if (steps.length === 0) throw fail(head, 0, m.noSteps);
|
|
11176
12816
|
const roots = [...trees.keys()].filter((id) => !parents.has(id));
|
|
@@ -11189,6 +12829,7 @@ function parseLines(lines, m) {
|
|
|
11189
12829
|
...kind === "sequence" ? { sequence: { lifelines: boxes.map((box) => box.id) } } : {},
|
|
11190
12830
|
...paths.length > 0 ? { state: { paths } } : {},
|
|
11191
12831
|
...isGit ? { git: { branches } } : {},
|
|
12832
|
+
...isLineup ? { lineup: { items } } : {},
|
|
11192
12833
|
...isTime && scale ? {
|
|
11193
12834
|
time: {
|
|
11194
12835
|
scale,
|
|
@@ -11358,6 +12999,7 @@ function parseLines(lines, m) {
|
|
|
11358
12999
|
beforeSteps(source);
|
|
11359
13000
|
if (isGit) throw fail(source, 0, m.gitNoGroup);
|
|
11360
13001
|
if (isTree) throw fail(source, 0, m.treeNoGroup);
|
|
13002
|
+
if (isLineup) throw fail(source, 0, m.lineupNoGroup);
|
|
11361
13003
|
if (group) throw fail(source, 0, m.nestedGroup);
|
|
11362
13004
|
const declared = readDeclared(source, "group", ATTRS.group, m);
|
|
11363
13005
|
if (regions.some((region) => region.id === declared.id)) {
|
|
@@ -11371,7 +13013,7 @@ function parseLines(lines, m) {
|
|
|
11371
13013
|
}
|
|
11372
13014
|
function readBox(source) {
|
|
11373
13015
|
beforeSteps(source);
|
|
11374
|
-
const declared = readDeclared(source, "box", ATTRS.box, m);
|
|
13016
|
+
const declared = readDeclared(source, "box", isLineup ? LANE_ATTRS : ATTRS.box, m);
|
|
11375
13017
|
notReserved(source, declared.id, declared.idAt);
|
|
11376
13018
|
declare(source, declared.id, declared.idAt);
|
|
11377
13019
|
firstBox ??= source;
|
|
@@ -11499,6 +13141,74 @@ function parseLines(lines, m) {
|
|
|
11499
13141
|
if (hash && !HASH.test(hash.value)) throw fail(source, hash.at, m.badHash);
|
|
11500
13142
|
return hash?.value;
|
|
11501
13143
|
}
|
|
13144
|
+
function namesAt(source, from, to, shape) {
|
|
13145
|
+
const text2 = source.text;
|
|
13146
|
+
const names = [];
|
|
13147
|
+
for (let i = from; ; ) {
|
|
13148
|
+
const start = skipSpaces(text2, i);
|
|
13149
|
+
const comma = text2.indexOf(",", start);
|
|
13150
|
+
const end = comma < 0 || comma > to ? to : comma;
|
|
13151
|
+
const value = text2.slice(start, end).trim();
|
|
13152
|
+
if (value === "") throw fail(source, start, shape);
|
|
13153
|
+
if (!ID.test(value)) throw fail(source, start, m.badId(value));
|
|
13154
|
+
names.push({ value, at: start });
|
|
13155
|
+
if (end >= to) return names;
|
|
13156
|
+
i = end + 1;
|
|
13157
|
+
}
|
|
13158
|
+
}
|
|
13159
|
+
function readItem(source) {
|
|
13160
|
+
beforeSteps(source);
|
|
13161
|
+
const open = source.text.indexOf("[");
|
|
13162
|
+
const end = open < 0 ? source.text.length : open;
|
|
13163
|
+
const attrs = open < 0 ? /* @__PURE__ */ new Map() : readAttrs(source, open, ATTRS.item, m);
|
|
13164
|
+
const color = attrs.get("color");
|
|
13165
|
+
if (color && !isOneOf(COLORS, color.value)) throw fail(source, color.at, m.badColor);
|
|
13166
|
+
const label2 = attrs.get("label");
|
|
13167
|
+
if (label2 && [...label2.value].length > LABEL_MOST) throw fail(source, label2.at, m.labelTooLong(LABEL_MOST));
|
|
13168
|
+
for (const { value, at: at2 } of namesAt(source, "item".length, end, m.itemShape)) {
|
|
13169
|
+
declare(source, value, at2);
|
|
13170
|
+
items.push({ id: value, ...color ? { color: color.value } : {}, ...label2 ? { label: label2.value } : {} });
|
|
13171
|
+
}
|
|
13172
|
+
}
|
|
13173
|
+
function readOrder(source) {
|
|
13174
|
+
const found = ORDER.exec(source.text);
|
|
13175
|
+
const lane = found?.[1];
|
|
13176
|
+
if (!found || lane === void 0) throw fail(source, 0, m.lineShape);
|
|
13177
|
+
const at2 = found.indices?.[1]?.[0] ?? 0;
|
|
13178
|
+
const box = boxAt(source, lane, at2);
|
|
13179
|
+
if (sealed.has(box)) throw fail(source, at2, m.lineOnSealed(box));
|
|
13180
|
+
const chips = namesAt(source, found[0].length, source.text.length, m.lineShape);
|
|
13181
|
+
const seen = /* @__PURE__ */ new Set();
|
|
13182
|
+
chips.forEach(({ value, at: chipAt }, k) => {
|
|
13183
|
+
if (!items.some((item) => item.id === value)) throw fail(source, chipAt, m.noSuchItem(value));
|
|
13184
|
+
if (seen.has(value)) throw fail(source, chipAt, m.itemTwice(value));
|
|
13185
|
+
if (k >= LANE_MOST) throw fail(source, chipAt, m.laneFull(box, LANE_MOST));
|
|
13186
|
+
seen.add(value);
|
|
13187
|
+
});
|
|
13188
|
+
return { type: "line", box, items: chips.map((chip) => chip.value) };
|
|
13189
|
+
}
|
|
13190
|
+
function readOnLane(source, word) {
|
|
13191
|
+
const found = ON_LANE.exec(source.text);
|
|
13192
|
+
const lane = found?.[1];
|
|
13193
|
+
if (!found || lane === void 0) throw fail(source, 0, m.laneShape(word));
|
|
13194
|
+
const at2 = found.indices?.[1]?.[0] ?? 0;
|
|
13195
|
+
const box = boxAt(source, lane, at2);
|
|
13196
|
+
if (word === "seal") {
|
|
13197
|
+
if (sealed.has(box)) throw fail(source, at2, m.sealTwice(box));
|
|
13198
|
+
sealed.add(box);
|
|
13199
|
+
}
|
|
13200
|
+
if (word === "open" && !sealed.delete(box)) throw fail(source, at2, m.openUnsealed(box));
|
|
13201
|
+
return { type: word, box };
|
|
13202
|
+
}
|
|
13203
|
+
function readStamp(source) {
|
|
13204
|
+
const found = STAMP.exec(source.text);
|
|
13205
|
+
const lane = found?.[1];
|
|
13206
|
+
if (!found || lane === void 0) throw fail(source, 0, m.stampShape);
|
|
13207
|
+
const box = boxAt(source, lane, found.indices?.[1]?.[0] ?? 0);
|
|
13208
|
+
const named = readName(source, found[0].length, m);
|
|
13209
|
+
if (named.value === "" || named.rest < source.text.length) throw fail(source, 0, m.stampShape);
|
|
13210
|
+
return { type: "stamp", box, text: named.value };
|
|
13211
|
+
}
|
|
11502
13212
|
function readStrip(source) {
|
|
11503
13213
|
beforeSteps(source);
|
|
11504
13214
|
if (strip2) throw fail(source, 0, m.stripTwice);
|
|
@@ -11526,7 +13236,7 @@ function parseLines(lines, m) {
|
|
|
11526
13236
|
}
|
|
11527
13237
|
function readFields(source, at2) {
|
|
11528
13238
|
const text2 = source.text;
|
|
11529
|
-
const
|
|
13239
|
+
const items2 = [];
|
|
11530
13240
|
for (let i = at2; ; ) {
|
|
11531
13241
|
const start = skipSpaces(text2, i);
|
|
11532
13242
|
let value;
|
|
@@ -11554,8 +13264,8 @@ function parseLines(lines, m) {
|
|
|
11554
13264
|
end = skipSpaces(text2, close + 1);
|
|
11555
13265
|
}
|
|
11556
13266
|
if (end < text2.length && text2[end] !== ",") throw fail(source, end, m.afterQuote);
|
|
11557
|
-
|
|
11558
|
-
if (end >= text2.length) return
|
|
13267
|
+
items2.push(value);
|
|
13268
|
+
if (end >= text2.length) return items2;
|
|
11559
13269
|
i = end + 1;
|
|
11560
13270
|
}
|
|
11561
13271
|
}
|