File size: 14,303 Bytes
bcf68b0
dc38062
 
 
 
 
 
bcf68b0
dc38062
bcf68b0
dc38062
bcf68b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67fee72
 
 
 
 
 
 
99cc3c2
 
67fee72
 
 
 
 
 
 
 
 
 
 
99cc3c2
 
67fee72
 
 
 
 
99cc3c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67fee72
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/* Mat2Bot Trace viewer. Reads trace.json; draws nothing it does not hold. Light and dark; phone first. */
:root{--bg:#f5f7fb;--fg:#0f172a;--muted:#475569;--line:#e2e8f0;--card:#ffffff;--head:#f1f5f9;--accent:#1d4ed8;--hl:#fff4cc;
  --ok:#15803d;--warn:#b45309;--bad:#b91c1c;--off:#64748b;--radius:10px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#0b1220;--fg:#e2e8f0;--muted:#94a3b8;--line:#1e293b;--card:#111827;--head:#0f1a2e;--accent:#60a5fa;--hl:#3b3417;
  --ok:#4ade80;--warn:#fbbf24;--bad:#f87171;--off:#94a3b8}}
:root[data-theme="dark"]{--bg:#0b1220;--fg:#e2e8f0;--muted:#94a3b8;--line:#1e293b;--card:#111827;--head:#0f1a2e;--accent:#60a5fa;--hl:#3b3417;
  --ok:#4ade80;--warn:#fbbf24;--bad:#f87171;--off:#94a3b8}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:15px/1.55 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
a{color:var(--accent)}button{font:inherit;cursor:pointer}
#trace-app{max-width:1200px;margin:0 auto;padding:16px 16px 48px}
.tv-top{display:flex;flex-wrap:wrap;gap:.5em 1.2em;align-items:baseline;margin-bottom:.4em}
.tv-top h1{font-size:1.25rem;margin:0}.tv-top nav a{margin-right:1em;text-decoration:none}
.tv-sub{color:var(--muted);font-size:.9rem;margin:0 0 1em;max-width:90ch}
.tv-tabs{display:flex;gap:.4em;flex-wrap:wrap;margin:.6em 0 1em}
.tv-tabs button{border:1px solid var(--line);background:var(--card);color:var(--fg);border-radius:999px;padding:.35em .9em}
.tv-tabs button[aria-current="page"]{background:var(--accent);color:var(--bg);border-color:var(--accent)}
.tv-crumb{font-size:.9rem;color:var(--muted);margin-bottom:.6em}.tv-crumb a{text-decoration:none}
/* overview: the stages */
.tv-stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6em}
.tv-stage{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:.7em .8em;text-align:left;color:var(--fg);
  display:flex;flex-direction:column;gap:.35em;min-height:9.5em}
.tv-stage:hover,.tv-stage:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.tv-stage .n{font-size:.75rem;color:var(--muted);letter-spacing:.04em}.tv-stage b{font-size:1rem}
.tv-stage .sum{font-size:.84rem;color:var(--muted);margin:0}.tv-stage .sum li{list-style:none}
.tv-stage ul{margin:0;padding:0}
.chip{display:inline-block;font-size:.76rem;padding:.1em .55em;border-radius:999px;border:1px solid var(--line);background:var(--head);
  white-space:nowrap;line-height:1.5}
.chip.ok{border-color:var(--ok);color:var(--ok)}.chip.warn{border-color:var(--warn);color:var(--warn)}.chip.bad{border-color:var(--bad);color:var(--bad)}
.chip.off{border-color:var(--off);color:var(--off)}.chip.acc{border-color:var(--accent);color:var(--accent)}
.tv-legend{display:flex;flex-wrap:wrap;gap:.4em 1em;font-size:.82rem;color:var(--muted);margin:1em 0}
.tv-legend span{display:inline-flex;align-items:center;gap:.35em}
.tv-legend i{display:inline-block;width:22px;height:0;border-top:2px solid var(--accent)}
.tv-legend i.dash{border-top-style:dashed}.tv-legend i.dot{border-top-style:dotted}.tv-legend i.bad{border-color:var(--bad)}
.tv-legend i.ok{border-color:var(--ok)}.tv-legend i.muted{border-color:var(--off)}
/* timeline */
.tv-timeline{margin-top:1.4em}.tv-timeline h2{font-size:1.05rem;margin:.2em 0 .5em}
.tv-events{display:grid;gap:.3em;margin:0;padding:0;list-style:none}
.tv-events li{display:grid;grid-template-columns:2.2em 5.5em 1fr auto;gap:.6em;align-items:baseline;font-size:.9rem;border-bottom:1px solid var(--line);
  padding:.3em 0}
.tv-events li .seq{color:var(--muted);font-variant-numeric:tabular-nums}.tv-events li .msg{color:var(--muted);font-size:.84rem;display:block}
.tv-events li.skipped{opacity:.75}
/* component view */
.tv-comp{position:relative}
.tv-groups{display:grid;gap:1em}
.tv-group h3{font-size:.95rem;margin:.6em 0 .4em;color:var(--accent)}
.tv-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:.6em;position:relative;z-index:1}
.tv-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:.55em .7em;display:flex;flex-direction:column;gap:.3em;
  font-size:.9rem}
.tv-card.hl{background:var(--hl);border-color:var(--warn)}
.tv-card.sel{outline:2px solid var(--accent)}
.tv-card .k{font-size:.72rem;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.tv-card .lbl{text-align:left;background:none;border:0;padding:0;color:var(--fg);font:inherit;line-height:1.4;overflow-wrap:anywhere}
.tv-card .lbl:hover{color:var(--accent)}
.tv-card .chips{display:flex;flex-wrap:wrap;gap:.3em}
.tv-card .acts{display:flex;flex-wrap:wrap;gap:.3em;margin-top:.1em}
.tv-card .acts button,.tv-card .acts a{font-size:.78rem;border:1px solid var(--line);background:var(--head);color:var(--fg);border-radius:6px;
  padding:.15em .5em;text-decoration:none}
.tv-card .rel{font-size:.8rem;color:var(--muted)}.tv-card .rel a{text-decoration:none}
.tv-kids{margin:.3em 0 0 .6em;padding-left:.6em;border-left:2px solid var(--line);display:grid;gap:.4em}
svg.tv-edges{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:visible}
svg.tv-edges path{fill:none;stroke:var(--accent);stroke-width:1.5;opacity:.55}
svg.tv-edges path.depends_on{stroke:var(--off)}svg.tv-edges path.refuted_by{stroke:var(--bad);stroke-dasharray:5 4}
svg.tv-edges path.resolved_by{stroke:var(--ok);stroke-dasharray:2 3}svg.tv-edges path.rejected_for{stroke:var(--bad)}
svg.tv-edges path.requires_equipment{stroke:var(--bad);stroke-dasharray:6 3}svg.tv-edges path.mapped_to{stroke:var(--off);stroke-dasharray:2 3}
svg.tv-edges path.hl{opacity:1;stroke-width:3}
.tv-empty{color:var(--muted);font-style:italic}
/* compare */
.tv-compare{margin:1em 0;border:1px solid var(--line);border-radius:var(--radius);padding:.6em .9em;background:var(--card);overflow-x:auto}
.tv-compare table{border-collapse:collapse;font-size:.88rem;width:100%}
.tv-compare th,.tv-compare td{text-align:left;vertical-align:top;padding:.35em .5em;border-bottom:1px solid var(--line)}
.tv-compare th{background:var(--head)}
/* provenance panel */
.tv-panel{position:fixed;top:0;right:0;height:100%;width:min(460px,100%);background:var(--card);border-left:1px solid var(--line);box-shadow:-6px 0 20px rgba(0,0,0,.12);
  padding:1em 1em 2em;overflow:auto;z-index:5;font-size:.92rem}
.tv-panel h2{font-size:1.05rem;margin:.2em 2em .4em 0;overflow-wrap:anywhere}
.tv-panel .close{position:absolute;top:.6em;right:.6em;border:1px solid var(--line);background:var(--head);color:var(--fg);border-radius:6px;padding:.2em .6em}
.tv-panel h3{font-size:.85rem;margin:1em 0 .3em;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.tv-panel dl{margin:0;display:grid;grid-template-columns:minmax(7em,auto) 1fr;gap:.25em .8em}
.tv-panel dt{color:var(--muted)}.tv-panel dd{margin:0;overflow-wrap:anywhere}
.tv-panel code{font-size:.84em;background:var(--head);padding:.05em .3em;border-radius:4px;overflow-wrap:anywhere}
.tv-panel ul{margin:.2em 0;padding-left:1.1em}.tv-panel li{margin:.15em 0}
.tv-panel blockquote{margin:.3em 0;padding:.3em .7em;border-left:3px solid var(--accent);background:var(--head);font-size:.88rem}
.tv-panel .num{font-size:1.1rem;font-weight:600}
@media (max-width:700px){.tv-panel{top:auto;bottom:0;height:70vh;width:100%;border-left:0;border-top:1px solid var(--line);border-radius:14px 14px 0 0}
  .tv-events li{grid-template-columns:2em 1fr;grid-auto-rows:auto}.tv-events li .msg{grid-column:1/-1}}
@media (prefers-reduced-motion:no-preference){.tv-card,.tv-stage{transition:background .15s,outline-color .15s}}
.tv-audit li{list-style:none;font-size:.84rem}
/* the map: a spine of stages with their branches (SVG) */
.tv-map{overflow-x:auto;margin:.2em 0 .4em;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:10px}
.tv-map svg{display:block;max-width:none;font:13px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.tv-map .mnode{cursor:pointer}.tv-map .mnode:focus{outline:none}
.tv-map .mnode rect{fill:var(--bg);stroke:var(--line);stroke-width:1.4}
.tv-map .mnode.stage rect{fill:var(--head);stroke-width:2}
.tv-map .mnode:hover rect,.tv-map .mnode:focus rect{stroke:var(--accent);stroke-width:2.4}
.tv-map .mnode text{fill:var(--fg);font-weight:600;pointer-events:none}
.tv-map .mnode text.sub{font-size:11.5px;font-weight:400;fill:var(--muted)}
.tv-map .mnode text.sub2{font-size:11px;font-weight:400;fill:var(--muted)}
.tv-map .mnode.kid text{font-weight:500;font-size:12.5px}
.tv-map .mnode.more rect{stroke-dasharray:4 3}.tv-map .mnode.more text{fill:var(--accent)}
.tv-map .tone-ok rect{stroke:var(--ok)}.tv-map .tone-warn rect{stroke:var(--warn)}.tv-map .tone-bad rect{stroke:var(--bad)}.tv-map .tone-off rect{stroke:var(--off);stroke-dasharray:4 3}
.tv-map .tone-off text{fill:var(--muted)}
.tv-map path.spine{fill:none;stroke:var(--accent);stroke-width:2}.tv-map marker path{fill:var(--accent)}
.tv-map path.branch{fill:none;stroke:var(--line);stroke-width:1.5}
.tv-legend i.box{width:14px;height:14px;border:2px solid var(--accent);border-radius:4px;border-top-width:2px}
.tv-legend i.box.ok{border-color:var(--ok)}.tv-legend i.box.warn{border-color:var(--warn)}.tv-legend i.box.bad{border-color:var(--bad)}.tv-legend i.box.off{border-color:var(--off);border-style:dashed}
details.tv-timeline summary{cursor:pointer;color:var(--accent);font-size:.95rem;margin:.6em 0 .3em}
.tv-map .mnode.sel rect{stroke:var(--accent);stroke-width:3}

/* the graph: records as circles, relationships as lines; zoom and drag */
.tv-graph-bar{display:flex;flex-wrap:wrap;gap:.5em;align-items:center;margin:.3em 0 .5em}
.tv-graph-bar input{font:inherit;padding:.4em .7em;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--fg);min-width:16em;flex:1 1 16em}
.tv-graph-bar button{border:1px solid var(--line);background:var(--card);color:var(--fg);border-radius:999px;padding:.35em .9em}
.tv-hint{font-size:.84rem;color:var(--muted);flex-basis:100%}
.tv-graph{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow:hidden;touch-action:none;cursor:grab}
.tv-graph:active{cursor:grabbing}.tv-graph svg{display:block;font:11px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.tv-graph line,.tv-graph circle{vector-effect:non-scaling-stroke}
.tv-graph line.gl{stroke:var(--line);stroke-width:1.2;opacity:.9}
.tv-graph line.member{stroke:var(--line);stroke-width:1;opacity:.5}
.tv-graph line.supported_by,.tv-graph line.computed_from,.tv-graph line.cites{stroke:var(--accent)}
.tv-graph line.refuted_by{stroke:var(--bad);stroke-dasharray:5 4}.tv-graph line.resolved_by{stroke:var(--ok);stroke-dasharray:2 3}
.tv-graph line.rejected_for{stroke:var(--bad);stroke-width:1.8}.tv-graph line.requires_equipment{stroke:var(--bad);stroke-dasharray:6 3}
.tv-graph line.depends_on{stroke:var(--off)}.tv-graph line.mapped_to{stroke:var(--off);stroke-dasharray:2 3}
.tv-graph line.hl{stroke-width:2.6;opacity:1}.tv-graph line.dim{opacity:.12}
.tv-graph g.gn{cursor:pointer}.tv-graph g.gn circle{stroke:var(--card);stroke-width:2}
.tv-graph g.gn.tone-ok circle{stroke:var(--ok)}.tv-graph g.gn.tone-warn circle{stroke:var(--warn)}.tv-graph g.gn.tone-bad circle{stroke:var(--bad)}
.tv-graph g.gn.tone-off circle{stroke:var(--off);stroke-dasharray:3 2;opacity:.7}
.tv-graph g.gn.hub circle{stroke:var(--accent);stroke-width:2.5}
.tv-graph g.gn text.gt{fill:var(--fg);text-anchor:middle;pointer-events:none;opacity:0;font-size:1em;paint-order:stroke;stroke:var(--card);stroke-width:.28em;stroke-linejoin:round}
.tv-graph g.gn.hub text.gt{font-weight:700;font-size:1.18em;opacity:1}
.tv-graph g.gn.lbl-always text.gt,.tv-graph.zoomed g.gn text.gt,.tv-graph.all-labels g.gn text.gt,.tv-graph g.gn:hover text.gt,.tv-graph g.gn.sel text.gt,.tv-graph g.gn.found text.gt{opacity:1}
.tv-graph g.gn.dim{opacity:.18}.tv-graph g.gn.sel circle{stroke:var(--accent);stroke-width:4}
.tv-graph g.gn.found circle{stroke:var(--accent);stroke-width:4}
.tv-glegend span{display:inline-flex;align-items:center;gap:.3em}.tv-glegend i{display:inline-block;width:12px;height:12px;border-radius:50%;border:0}
.tv-glegend i.ring{background:transparent;border:3px solid var(--ok)}.tv-glegend i.ring.warn{border-color:var(--warn)}.tv-glegend i.ring.bad{border-color:var(--bad)}.tv-glegend i.ring.off{border-color:var(--off);border-style:dashed}
.tv-stages{display:flex;flex-wrap:wrap;gap:.4em;align-items:center;margin:0 0 .4em}
.tv-chip{border:1px solid var(--line);background:var(--card);color:var(--fg);border-radius:999px;padding:.25em .8em;font-size:.92em}
.tv-chip b{font-weight:600;color:var(--muted);margin-left:.15em}.tv-chip.open{border-color:var(--accent)}
.tv-chip.focus{background:var(--accent);color:var(--card);border-color:var(--accent)}.tv-chip.focus b{color:var(--card)}
.tv-focus{font-size:.9em;color:var(--muted);margin-left:.4em}
p.tv-hint{font-size:.9em;color:var(--muted);margin:0 0 .5em}
.tv-graph line.flow{stroke:var(--accent);stroke-dasharray:1 6;stroke-linecap:round;opacity:.55;stroke-width:2}
.tv-graph line.bundle{opacity:.6}.tv-graph line.far{opacity:.12}
.tv-graph g.gn.hub text.cnt{fill:var(--fg);text-anchor:middle;font-size:1em;font-weight:700;pointer-events:none}
.tv-graph g.gn.hub.open circle{fill:var(--accent)!important}.tv-graph g.gn.hub.open text.cnt{fill:var(--card)}
.tv-graph g.gn.far{opacity:.3}.tv-graph.focus g.gn.near text.gt,.tv-graph.few g.gn text.gt{opacity:1}.tv-graph.focus g.gn.far:not(.hub) text.gt{opacity:0}
.tv-graph ellipse.cloud.focus{opacity:.16}
.tv-glegend i.ln{display:inline-block;width:1.4em;height:0;border-top:2px dotted var(--accent);vertical-align:middle;margin-right:.3em}
.tv-glegend i.ln.bundle{border-top:3px solid var(--line)}
.tv-fullpage{position:fixed;inset:0;z-index:1000;background:var(--bg);padding:12px 16px;overflow:auto;box-sizing:border-box}
.tv-noscroll{overflow:hidden}
.tv-graph ellipse.cloud{fill:var(--accent);opacity:.07;stroke:none}.tv-graph ellipse.cloud.c1{fill:var(--ok)}.tv-graph ellipse.cloud.c2{fill:var(--warn)}.tv-graph ellipse.cloud.c3{fill:#b07aa1}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .tv-graph ellipse.cloud{opacity:.12}}