@flesler/cursor-canvas-web 1.2.1 → 1.4.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/cursor-canvas.cjs +1 -1
- package/dist/cursor-canvas.js +619 -598
- package/dist/{host-tokens-Dh2BFFjv.js → host-tokens-Bt6GPXN1.js} +134 -120
- package/dist/host-tokens-Lz69pkRj.cjs +1 -0
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +5 -2
- package/src/superset/chart-extra.d.ts +7 -1
- package/dist/host-tokens-Cjzmp0z_.cjs +0 -1
package/dist/cursor-canvas.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as i, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import { useComputedColorScheme as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useEffect as
|
|
5
|
-
import { r as
|
|
6
|
-
import { c as
|
|
7
|
-
import { BarChart as Fe, AreaChart as
|
|
8
|
-
const
|
|
2
|
+
import { useComputedColorScheme as ve, Button as be, Alert as Se, Card as ke, Checkbox as Ce, Divider as we, Title as W, ActionIcon as Le, Badge as Te, Group as Pe, Select as Ae, Stack as Me, Text as H, Table as T, Textarea as Be, TextInput as De, Switch as $e } from "@mantine/core";
|
|
3
|
+
import { useState as E, createContext as ae, useCallback as G, useContext as O } from "react";
|
|
4
|
+
import { useEffect as nn, useMemo as rn, useRef as on, useState as an } from "react";
|
|
5
|
+
import { r as Ee, u as ne } from "./host-tokens-Bt6GPXN1.js";
|
|
6
|
+
import { c as ln, a as cn, b as dn, d as un, e as fn, f as hn, g as pn, h as yn, i as mn } from "./host-tokens-Bt6GPXN1.js";
|
|
7
|
+
import { BarChart as Fe, AreaChart as Ie, LineChart as Ne, DonutChart as Re, PieChart as _e, ChartLegend as ze } from "@mantine/charts";
|
|
8
|
+
const C = {
|
|
9
9
|
success: "#1F8A65",
|
|
10
10
|
danger: "#CF2D56",
|
|
11
11
|
warning: "#E8A33D",
|
|
@@ -14,7 +14,7 @@ const w = {
|
|
|
14
14
|
added: "#1F8A65",
|
|
15
15
|
deleted: "#CF2D56",
|
|
16
16
|
renamed: "#5A6CC0"
|
|
17
|
-
},
|
|
17
|
+
}, ie = {
|
|
18
18
|
success: "green",
|
|
19
19
|
danger: "red",
|
|
20
20
|
warning: "orange",
|
|
@@ -24,84 +24,90 @@ const w = {
|
|
|
24
24
|
deleted: "red",
|
|
25
25
|
renamed: "indigo"
|
|
26
26
|
};
|
|
27
|
-
function
|
|
28
|
-
const
|
|
29
|
-
return
|
|
27
|
+
function g() {
|
|
28
|
+
const e = ve("light") === "dark" ? "dark" : "light";
|
|
29
|
+
return Ee(e);
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const se = {
|
|
32
32
|
verticalAlign: "bottom",
|
|
33
33
|
align: "center"
|
|
34
|
-
},
|
|
34
|
+
}, le = {
|
|
35
35
|
legend: { justifyContent: "center" }
|
|
36
36
|
};
|
|
37
|
-
function
|
|
38
|
-
const
|
|
39
|
-
return (n, r) => n ?
|
|
40
|
-
}
|
|
41
|
-
function
|
|
42
|
-
const
|
|
43
|
-
return { textColor:
|
|
44
|
-
}
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
const
|
|
48
|
-
for (const
|
|
49
|
-
a
|
|
50
|
-
return
|
|
37
|
+
function j() {
|
|
38
|
+
const e = g().chart.sequence;
|
|
39
|
+
return (n, r) => n ? C[n] : e[r % e.length];
|
|
40
|
+
}
|
|
41
|
+
function ce() {
|
|
42
|
+
const e = g().text.primary;
|
|
43
|
+
return { textColor: e, barLabelColor: e };
|
|
44
|
+
}
|
|
45
|
+
function de(t, e) {
|
|
46
|
+
return t.map((n, r) => {
|
|
47
|
+
const o = { category: n };
|
|
48
|
+
for (const a of e)
|
|
49
|
+
o[a.name] = a.data[r] ?? 0;
|
|
50
|
+
return o;
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function ue(t, e) {
|
|
54
|
+
return t.map((n, r) => ({
|
|
55
55
|
name: n.name,
|
|
56
|
-
color:
|
|
56
|
+
color: e(n.tone, r)
|
|
57
57
|
}));
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return (n) => `${
|
|
59
|
+
function fe(t, e) {
|
|
60
|
+
return (n) => `${e ?? ""}${n}${t ?? ""}`;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
if (
|
|
64
|
-
return
|
|
65
|
-
...
|
|
62
|
+
function He(t, e) {
|
|
63
|
+
if (t != null && t.length)
|
|
64
|
+
return t.map((n) => ({
|
|
65
|
+
...e ? { x: n.value } : { y: n.value },
|
|
66
66
|
label: n.label,
|
|
67
|
-
color: n.tone ?
|
|
67
|
+
color: n.tone ? C[n.tone] : C.neutral
|
|
68
68
|
}));
|
|
69
69
|
}
|
|
70
|
-
const
|
|
71
|
-
function
|
|
72
|
-
const { scale:
|
|
73
|
-
return typeof
|
|
74
|
-
...
|
|
75
|
-
type:
|
|
76
|
-
allowDataOverflow:
|
|
77
|
-
allowDecimals:
|
|
78
|
-
domain:
|
|
70
|
+
const We = /* @__PURE__ */ new Set(["log", "symlog", "pow", "sqrt"]);
|
|
71
|
+
function Ge(t) {
|
|
72
|
+
const { scale: e } = t;
|
|
73
|
+
return typeof e != "string" || !We.has(e) ? t : {
|
|
74
|
+
...t,
|
|
75
|
+
type: t.type ?? "number",
|
|
76
|
+
allowDataOverflow: t.allowDataOverflow ?? !0,
|
|
77
|
+
allowDecimals: t.allowDecimals ?? !0,
|
|
78
|
+
domain: t.domain ?? [1, "dataMax"]
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
const
|
|
81
|
+
function he(t) {
|
|
82
|
+
const e = He(t.referenceLines, !!t.horizontal);
|
|
83
83
|
let n;
|
|
84
|
-
if (!
|
|
85
|
-
const
|
|
86
|
-
n = [
|
|
84
|
+
if (!t.stacked && !t.normalized) {
|
|
85
|
+
const a = t.beginAtZero !== !1;
|
|
86
|
+
n = [t.yMin ?? (a ? 0 : "auto"), t.yMax ?? "auto"];
|
|
87
87
|
}
|
|
88
|
-
const r =
|
|
88
|
+
const r = t.valueAxis ? Ge(t.valueAxis) : void 0;
|
|
89
89
|
if (!n && !r)
|
|
90
|
-
return { referenceLines:
|
|
91
|
-
const
|
|
92
|
-
return
|
|
90
|
+
return { referenceLines: e };
|
|
91
|
+
const o = { ...n && { domain: n }, ...r };
|
|
92
|
+
return t.horizontal ? { xAxisProps: o, referenceLines: e } : { yAxisProps: o, referenceLines: e };
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return
|
|
94
|
+
function Oe(t, e, n) {
|
|
95
|
+
return t !== void 0 ? t : e.length === 1 && n.length <= 8;
|
|
96
|
+
}
|
|
97
|
+
function je(t, e, n) {
|
|
98
|
+
return e.length !== 1 || e[0].tone ? t : t.map((r, o) => ({
|
|
99
|
+
...r,
|
|
100
|
+
color: n(void 0, o)
|
|
101
|
+
}));
|
|
96
102
|
}
|
|
97
|
-
const
|
|
98
|
-
function
|
|
99
|
-
return
|
|
103
|
+
const Ke = 96, Ve = 6.5;
|
|
104
|
+
function Xe(t, e) {
|
|
105
|
+
return t.length <= e ? t : `${t.slice(0, e - 1)}…`;
|
|
100
106
|
}
|
|
101
|
-
function
|
|
102
|
-
var
|
|
103
|
-
const
|
|
104
|
-
return /* @__PURE__ */ i("g", { transform: `translate(${
|
|
107
|
+
function Ye(t, e) {
|
|
108
|
+
var l;
|
|
109
|
+
const n = typeof e.x == "number" ? e.x : Number(e.x) || 0, r = typeof e.y == "number" ? e.y : Number(e.y) || 0, o = String(((l = e.payload) == null ? void 0 : l.value) ?? ""), a = Xe(o, t);
|
|
110
|
+
return /* @__PURE__ */ i("g", { transform: `translate(${n},${r})`, children: /* @__PURE__ */ y(
|
|
105
111
|
"text",
|
|
106
112
|
{
|
|
107
113
|
x: -10,
|
|
@@ -111,162 +117,176 @@ function je(e) {
|
|
|
111
117
|
fill: "currentColor",
|
|
112
118
|
fontSize: 12,
|
|
113
119
|
children: [
|
|
114
|
-
/* @__PURE__ */ i("title", { children:
|
|
120
|
+
/* @__PURE__ */ i("title", { children: o }),
|
|
115
121
|
a
|
|
116
122
|
]
|
|
117
123
|
}
|
|
118
124
|
) });
|
|
119
125
|
}
|
|
120
|
-
function
|
|
126
|
+
function pe(t) {
|
|
121
127
|
return {
|
|
122
128
|
fontWeight: 700,
|
|
123
|
-
fill:
|
|
129
|
+
fill: t
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function qe(t) {
|
|
133
|
+
return {
|
|
134
|
+
...pe(t),
|
|
135
|
+
position: "right"
|
|
124
136
|
};
|
|
125
137
|
}
|
|
126
|
-
function
|
|
138
|
+
function Ze(t = Ke, e = !1) {
|
|
139
|
+
const n = Math.floor(t / Ve);
|
|
127
140
|
return {
|
|
128
141
|
yAxisProps: {
|
|
129
|
-
tick:
|
|
130
|
-
width:
|
|
142
|
+
tick: (r) => Ye(n, r),
|
|
143
|
+
width: t
|
|
131
144
|
},
|
|
132
145
|
barChartProps: {
|
|
133
|
-
margin: { right: 32 }
|
|
134
|
-
}
|
|
146
|
+
margin: { right: e ? 48 : 32 }
|
|
147
|
+
},
|
|
148
|
+
/** Value-axis grid only; Mantine's default `x` draws a line per category row. */
|
|
149
|
+
gridAxis: "y"
|
|
135
150
|
};
|
|
136
151
|
}
|
|
137
|
-
function
|
|
152
|
+
function Je() {
|
|
138
153
|
return {
|
|
139
154
|
barChartProps: {
|
|
140
155
|
margin: { top: 22 }
|
|
141
156
|
}
|
|
142
157
|
};
|
|
143
158
|
}
|
|
144
|
-
function
|
|
145
|
-
categories:
|
|
146
|
-
series:
|
|
159
|
+
function mt({
|
|
160
|
+
categories: t,
|
|
161
|
+
series: e,
|
|
147
162
|
height: n = 240,
|
|
148
163
|
fill: r,
|
|
149
|
-
valueSuffix:
|
|
150
|
-
valuePrefix:
|
|
151
|
-
showValues:
|
|
164
|
+
valueSuffix: o,
|
|
165
|
+
valuePrefix: a,
|
|
166
|
+
showValues: l,
|
|
152
167
|
showHoverGuide: f = !0,
|
|
153
168
|
beginAtZero: d,
|
|
154
|
-
yMin:
|
|
169
|
+
yMin: c,
|
|
155
170
|
yMax: u,
|
|
156
|
-
referenceLines:
|
|
171
|
+
referenceLines: m,
|
|
157
172
|
style: v,
|
|
158
173
|
extra: h,
|
|
159
|
-
smooth:
|
|
174
|
+
smooth: b
|
|
160
175
|
}) {
|
|
161
|
-
const
|
|
176
|
+
const w = (h == null ? void 0 : h.smooth) ?? b, L = j(), P = ce(), B = de(t, e), $ = ue(e, L), S = !!(r && (h != null && h.stacked)), A = he({
|
|
162
177
|
beginAtZero: d,
|
|
163
|
-
yMin:
|
|
178
|
+
yMin: c,
|
|
164
179
|
yMax: u,
|
|
165
|
-
referenceLines:
|
|
180
|
+
referenceLines: m,
|
|
166
181
|
horizontal: !1,
|
|
167
|
-
stacked:
|
|
182
|
+
stacked: S,
|
|
168
183
|
valueAxis: h == null ? void 0 : h.valueAxis
|
|
169
|
-
}),
|
|
184
|
+
}), M = {
|
|
170
185
|
h: n,
|
|
171
|
-
data:
|
|
186
|
+
data: B,
|
|
172
187
|
dataKey: "category",
|
|
173
188
|
series: $,
|
|
174
|
-
curveType:
|
|
175
|
-
withLegend:
|
|
176
|
-
legendProps:
|
|
177
|
-
valueFormatter:
|
|
178
|
-
withPointLabels:
|
|
189
|
+
curveType: w ? "monotone" : "linear",
|
|
190
|
+
withLegend: e.length > 1,
|
|
191
|
+
legendProps: se,
|
|
192
|
+
valueFormatter: fe(o, a),
|
|
193
|
+
withPointLabels: l ?? t.length <= 20,
|
|
179
194
|
tooltipProps: f ? void 0 : { cursor: !1 },
|
|
180
195
|
styles: {
|
|
181
|
-
...
|
|
196
|
+
...le,
|
|
182
197
|
legendItemName: { color: P.textColor }
|
|
183
198
|
},
|
|
184
|
-
...
|
|
185
|
-
...F,
|
|
199
|
+
...A,
|
|
186
200
|
style: v
|
|
187
201
|
};
|
|
188
|
-
return r ? /* @__PURE__ */ i(
|
|
202
|
+
return r ? /* @__PURE__ */ i(Ie, { ...M, type: S ? "stacked" : "default" }) : /* @__PURE__ */ i(Ne, { ...M });
|
|
189
203
|
}
|
|
190
|
-
function
|
|
191
|
-
categories:
|
|
192
|
-
series:
|
|
204
|
+
function gt({
|
|
205
|
+
categories: t,
|
|
206
|
+
series: e,
|
|
193
207
|
height: n = 240,
|
|
194
208
|
stacked: r,
|
|
195
|
-
horizontal:
|
|
196
|
-
normalized:
|
|
197
|
-
valueSuffix:
|
|
209
|
+
horizontal: o,
|
|
210
|
+
normalized: a,
|
|
211
|
+
valueSuffix: l,
|
|
198
212
|
valuePrefix: f,
|
|
199
213
|
showValues: d,
|
|
200
|
-
beginAtZero:
|
|
214
|
+
beginAtZero: c,
|
|
201
215
|
yMin: u,
|
|
202
|
-
yMax:
|
|
216
|
+
yMax: m,
|
|
203
217
|
referenceLines: v,
|
|
204
218
|
style: h,
|
|
205
|
-
extra:
|
|
219
|
+
extra: b
|
|
206
220
|
}) {
|
|
207
|
-
|
|
208
|
-
|
|
221
|
+
var A;
|
|
222
|
+
const w = j(), L = ce(), P = je(
|
|
223
|
+
de(t, e),
|
|
224
|
+
e,
|
|
225
|
+
w
|
|
226
|
+
), B = a ? "percent" : r ? "stacked" : "default", $ = he({
|
|
227
|
+
beginAtZero: c,
|
|
209
228
|
yMin: u,
|
|
210
|
-
yMax:
|
|
229
|
+
yMax: m,
|
|
211
230
|
referenceLines: v,
|
|
212
|
-
horizontal:
|
|
231
|
+
horizontal: o,
|
|
213
232
|
stacked: r,
|
|
214
|
-
normalized:
|
|
215
|
-
valueAxis:
|
|
216
|
-
}),
|
|
233
|
+
normalized: a,
|
|
234
|
+
valueAxis: b == null ? void 0 : b.valueAxis
|
|
235
|
+
}), S = !r && !a && Oe(d, e, t);
|
|
217
236
|
return /* @__PURE__ */ i(
|
|
218
237
|
Fe,
|
|
219
238
|
{
|
|
220
239
|
h: n,
|
|
221
240
|
data: P,
|
|
222
241
|
dataKey: "category",
|
|
223
|
-
series:
|
|
224
|
-
type:
|
|
225
|
-
orientation:
|
|
226
|
-
withLegend:
|
|
227
|
-
legendProps:
|
|
228
|
-
valueFormatter:
|
|
229
|
-
withBarValueLabel:
|
|
230
|
-
...
|
|
231
|
-
|
|
242
|
+
series: ue(e, w),
|
|
243
|
+
type: B,
|
|
244
|
+
orientation: o ? "vertical" : "horizontal",
|
|
245
|
+
withLegend: e.length > 1,
|
|
246
|
+
legendProps: se,
|
|
247
|
+
valueFormatter: fe(l, f),
|
|
248
|
+
withBarValueLabel: S,
|
|
249
|
+
...S ? {
|
|
250
|
+
valueLabelProps: o ? qe(L.barLabelColor) : pe(L.barLabelColor)
|
|
251
|
+
} : {},
|
|
252
|
+
...o ? Ze((A = b == null ? void 0 : b.categoryAxis) == null ? void 0 : A.width, S) : S ? Je() : {},
|
|
232
253
|
styles: {
|
|
233
|
-
...
|
|
234
|
-
legendItemName: { color:
|
|
254
|
+
...le,
|
|
255
|
+
legendItemName: { color: L.textColor }
|
|
235
256
|
},
|
|
236
|
-
...C,
|
|
237
257
|
...$,
|
|
238
258
|
style: h
|
|
239
259
|
}
|
|
240
260
|
);
|
|
241
261
|
}
|
|
242
|
-
const
|
|
243
|
-
function
|
|
244
|
-
if (
|
|
262
|
+
const Ue = 180, Qe = 540;
|
|
263
|
+
function et(t, e) {
|
|
264
|
+
if (e <= 0)
|
|
245
265
|
return "0%";
|
|
246
|
-
const n =
|
|
266
|
+
const n = t / e * 100;
|
|
247
267
|
return n < 10 && Math.abs(n - Math.round(n)) > 0.05 ? `${n.toFixed(1)}%` : `${Math.round(n)}%`;
|
|
248
268
|
}
|
|
249
|
-
function
|
|
250
|
-
return Math.max(28, Math.round(
|
|
269
|
+
function tt(t) {
|
|
270
|
+
return Math.max(28, Math.round(t * 0.22));
|
|
251
271
|
}
|
|
252
|
-
function
|
|
253
|
-
return
|
|
254
|
-
dataKey:
|
|
255
|
-
value:
|
|
256
|
-
color:
|
|
272
|
+
function nt(t) {
|
|
273
|
+
return t.map((e) => ({
|
|
274
|
+
dataKey: e.name,
|
|
275
|
+
value: e.name,
|
|
276
|
+
color: e.color,
|
|
257
277
|
type: "circle"
|
|
258
278
|
}));
|
|
259
279
|
}
|
|
260
|
-
function
|
|
261
|
-
return
|
|
280
|
+
function rt(t, e) {
|
|
281
|
+
return t.map((n) => ({
|
|
262
282
|
name: n.name,
|
|
263
283
|
color: n.color,
|
|
264
|
-
label: `${n.name} ${
|
|
284
|
+
label: `${n.name} ${et(n.value, e)}`
|
|
265
285
|
}));
|
|
266
286
|
}
|
|
267
|
-
function
|
|
268
|
-
total:
|
|
269
|
-
family:
|
|
287
|
+
function ot({
|
|
288
|
+
total: t,
|
|
289
|
+
family: e,
|
|
270
290
|
primary: n,
|
|
271
291
|
subtitle: r
|
|
272
292
|
}) {
|
|
@@ -277,51 +297,51 @@ function et({
|
|
|
277
297
|
y: "50%",
|
|
278
298
|
textAnchor: "middle",
|
|
279
299
|
dominantBaseline: "central",
|
|
280
|
-
fontFamily:
|
|
300
|
+
fontFamily: e,
|
|
281
301
|
children: [
|
|
282
|
-
/* @__PURE__ */ i("tspan", { x: "50%", dy: "-0.4em", fontSize: 20, fontWeight: 600, fill: n, children:
|
|
302
|
+
/* @__PURE__ */ i("tspan", { x: "50%", dy: "-0.4em", fontSize: 20, fontWeight: 600, fill: n, children: t }),
|
|
283
303
|
/* @__PURE__ */ i("tspan", { x: "50%", dy: "1.55em", fontSize: 16, fontWeight: 500, fill: r, children: "Total" })
|
|
284
304
|
]
|
|
285
305
|
}
|
|
286
306
|
);
|
|
287
307
|
}
|
|
288
|
-
function
|
|
289
|
-
const [
|
|
308
|
+
function xt({ data: t, size: e = 200, donut: n, style: r }) {
|
|
309
|
+
const [o, a] = E(null), l = g(), f = j(), d = t.map((h, b) => ({
|
|
290
310
|
name: h.label,
|
|
291
311
|
value: h.value,
|
|
292
|
-
color: f(h.tone,
|
|
293
|
-
})),
|
|
294
|
-
startAngle:
|
|
295
|
-
endAngle:
|
|
296
|
-
},
|
|
297
|
-
opacity:
|
|
312
|
+
color: f(h.tone, b)
|
|
313
|
+
})), c = d.reduce((h, b) => h + b.value, 0), u = {
|
|
314
|
+
startAngle: Ue,
|
|
315
|
+
endAngle: Qe
|
|
316
|
+
}, m = (h) => ({
|
|
317
|
+
opacity: o === null || o === h ? 1 : 0.35
|
|
298
318
|
}), v = n ? /* @__PURE__ */ i(
|
|
299
|
-
|
|
319
|
+
Re,
|
|
300
320
|
{
|
|
301
321
|
data: d,
|
|
302
|
-
size:
|
|
303
|
-
thickness:
|
|
322
|
+
size: e,
|
|
323
|
+
thickness: tt(e),
|
|
304
324
|
withTooltip: !0,
|
|
305
|
-
cellProps: (h) =>
|
|
325
|
+
cellProps: (h) => m(h.name),
|
|
306
326
|
...u,
|
|
307
327
|
children: /* @__PURE__ */ i(
|
|
308
|
-
|
|
328
|
+
ot,
|
|
309
329
|
{
|
|
310
|
-
total:
|
|
311
|
-
family:
|
|
312
|
-
primary:
|
|
313
|
-
subtitle:
|
|
330
|
+
total: c,
|
|
331
|
+
family: l.typography.fontFamily,
|
|
332
|
+
primary: l.text.primary,
|
|
333
|
+
subtitle: l.text.secondary
|
|
314
334
|
}
|
|
315
335
|
)
|
|
316
336
|
}
|
|
317
337
|
) : /* @__PURE__ */ i(
|
|
318
|
-
|
|
338
|
+
_e,
|
|
319
339
|
{
|
|
320
340
|
data: d,
|
|
321
|
-
size:
|
|
341
|
+
size: e,
|
|
322
342
|
withTooltip: !0,
|
|
323
343
|
withLabelsLine: !1,
|
|
324
|
-
cellProps: (h) =>
|
|
344
|
+
cellProps: (h) => m(h.name),
|
|
325
345
|
...u
|
|
326
346
|
}
|
|
327
347
|
);
|
|
@@ -341,8 +361,8 @@ function pt({ data: e, size: t = 200, donut: n, style: r }) {
|
|
|
341
361
|
{
|
|
342
362
|
style: {
|
|
343
363
|
width: "100%",
|
|
344
|
-
height:
|
|
345
|
-
minHeight:
|
|
364
|
+
height: e,
|
|
365
|
+
minHeight: e,
|
|
346
366
|
display: "flex",
|
|
347
367
|
alignItems: "center",
|
|
348
368
|
justifyContent: "center"
|
|
@@ -351,23 +371,23 @@ function pt({ data: e, size: t = 200, donut: n, style: r }) {
|
|
|
351
371
|
}
|
|
352
372
|
),
|
|
353
373
|
/* @__PURE__ */ i(
|
|
354
|
-
|
|
374
|
+
ze,
|
|
355
375
|
{
|
|
356
|
-
payload:
|
|
357
|
-
series:
|
|
376
|
+
payload: nt(d),
|
|
377
|
+
series: rt(d, c),
|
|
358
378
|
legendPosition: "bottom",
|
|
359
379
|
centered: !0,
|
|
360
|
-
onHighlight:
|
|
380
|
+
onHighlight: a,
|
|
361
381
|
mt: "sm",
|
|
362
382
|
w: "100%",
|
|
363
383
|
styles: {
|
|
364
384
|
legend: {
|
|
365
385
|
justifyContent: "center",
|
|
366
386
|
gap: 12,
|
|
367
|
-
color:
|
|
387
|
+
color: l.text.primary
|
|
368
388
|
},
|
|
369
389
|
legendItemName: {
|
|
370
|
-
color:
|
|
390
|
+
color: l.text.primary
|
|
371
391
|
}
|
|
372
392
|
}
|
|
373
393
|
}
|
|
@@ -376,71 +396,71 @@ function pt({ data: e, size: t = 200, donut: n, style: r }) {
|
|
|
376
396
|
}
|
|
377
397
|
);
|
|
378
398
|
}
|
|
379
|
-
function
|
|
399
|
+
function vt(t) {
|
|
380
400
|
const {
|
|
381
|
-
nodes:
|
|
401
|
+
nodes: e,
|
|
382
402
|
edges: n,
|
|
383
403
|
direction: r = "vertical",
|
|
384
|
-
nodeWidth:
|
|
385
|
-
nodeHeight:
|
|
386
|
-
rankGap:
|
|
404
|
+
nodeWidth: o = 160,
|
|
405
|
+
nodeHeight: a = 40,
|
|
406
|
+
rankGap: l = 64,
|
|
387
407
|
nodeGap: f = 48,
|
|
388
408
|
padding: d = 24
|
|
389
|
-
} =
|
|
390
|
-
for (const s of
|
|
409
|
+
} = t, c = e.map((s) => s.id), u = new Set(c), m = /* @__PURE__ */ new Map();
|
|
410
|
+
for (const s of c) m.set(s, []);
|
|
391
411
|
for (const s of n)
|
|
392
|
-
u.has(s.from) && u.has(s.to) &&
|
|
393
|
-
const v = 0, h = 1,
|
|
394
|
-
|
|
395
|
-
for (const p of
|
|
396
|
-
const x =
|
|
397
|
-
x === h ?
|
|
412
|
+
u.has(s.from) && u.has(s.to) && m.get(s.from).push(s.to);
|
|
413
|
+
const v = 0, h = 1, b = 2, w = new Map(c.map((s) => [s, v])), L = /* @__PURE__ */ new Set(), P = (s, p) => `${s}\0${p}`, B = (s) => {
|
|
414
|
+
w.set(s, h);
|
|
415
|
+
for (const p of m.get(s) ?? []) {
|
|
416
|
+
const x = w.get(p);
|
|
417
|
+
x === h ? L.add(P(s, p)) : x === v && B(p);
|
|
398
418
|
}
|
|
399
|
-
|
|
419
|
+
w.set(s, b);
|
|
400
420
|
};
|
|
401
|
-
for (const s of
|
|
421
|
+
for (const s of c) w.get(s) === v && B(s);
|
|
402
422
|
const $ = n.filter(
|
|
403
|
-
(s) => u.has(s.from) && u.has(s.to) && !
|
|
404
|
-
),
|
|
423
|
+
(s) => u.has(s.from) && u.has(s.to) && !L.has(P(s.from, s.to))
|
|
424
|
+
), S = new Map(c.map((s) => [s, 0])), A = new Map(c.map((s) => [s, []]));
|
|
405
425
|
for (const s of $)
|
|
406
|
-
|
|
407
|
-
const
|
|
408
|
-
for (;
|
|
409
|
-
const s =
|
|
410
|
-
for (const x of
|
|
411
|
-
|
|
426
|
+
A.get(s.from).push(s.to), S.set(s.to, (S.get(s.to) ?? 0) + 1);
|
|
427
|
+
const M = new Map(c.map((s) => [s, 0])), R = c.filter((s) => (S.get(s) ?? 0) === 0);
|
|
428
|
+
for (; R.length > 0; ) {
|
|
429
|
+
const s = R.shift(), p = M.get(s);
|
|
430
|
+
for (const x of A.get(s))
|
|
431
|
+
M.set(x, Math.max(M.get(x), p + 1)), S.set(x, S.get(x) - 1), S.get(x) === 0 && R.push(x);
|
|
412
432
|
}
|
|
413
|
-
const
|
|
414
|
-
for (const s of
|
|
415
|
-
const p =
|
|
416
|
-
|
|
433
|
+
const D = /* @__PURE__ */ new Map();
|
|
434
|
+
for (const s of c) {
|
|
435
|
+
const p = M.get(s);
|
|
436
|
+
D.has(p) || D.set(p, []), D.get(p).push(s);
|
|
417
437
|
}
|
|
418
|
-
const
|
|
438
|
+
const F = [...D.keys()].sort((s, p) => s - p), k = r === "vertical", X = (s) => s * (k ? o : a) + Math.max(0, s - 1) * f, Y = Math.max(
|
|
419
439
|
0,
|
|
420
|
-
...
|
|
421
|
-
),
|
|
422
|
-
|
|
423
|
-
const x =
|
|
424
|
-
x.forEach((
|
|
425
|
-
const
|
|
426
|
-
|
|
427
|
-
}),
|
|
440
|
+
...F.map((s) => X(D.get(s).length))
|
|
441
|
+
), I = /* @__PURE__ */ new Map(), q = [];
|
|
442
|
+
F.forEach((s, p) => {
|
|
443
|
+
const x = D.get(s), _ = X(x.length), z = d + (Y - _) / 2, N = d + p * ((k ? a : o) + l);
|
|
444
|
+
x.forEach((Q, ee) => {
|
|
445
|
+
const te = z + ee * ((k ? o : a) + f), ge = k ? te : N, xe = k ? N : te;
|
|
446
|
+
I.set(Q, { id: Q, x: ge, y: xe, rank: s, order: ee });
|
|
447
|
+
}), q.push({
|
|
428
448
|
rank: s,
|
|
429
|
-
x:
|
|
430
|
-
y:
|
|
431
|
-
width:
|
|
432
|
-
height:
|
|
449
|
+
x: k ? z : N,
|
|
450
|
+
y: k ? N : z,
|
|
451
|
+
width: k ? _ : o,
|
|
452
|
+
height: k ? a : _,
|
|
433
453
|
nodeIds: x
|
|
434
454
|
});
|
|
435
455
|
});
|
|
436
|
-
const
|
|
437
|
-
x: s.x +
|
|
438
|
-
y: p === "source" ? s.y +
|
|
456
|
+
const Z = (s, p) => s ? k ? {
|
|
457
|
+
x: s.x + o / 2,
|
|
458
|
+
y: p === "source" ? s.y + a : s.y
|
|
439
459
|
} : {
|
|
440
|
-
x: p === "source" ? s.x +
|
|
441
|
-
y: s.y +
|
|
442
|
-
} : { x: 0, y: 0 },
|
|
443
|
-
const p =
|
|
460
|
+
x: p === "source" ? s.x + o : s.x,
|
|
461
|
+
y: s.y + a / 2
|
|
462
|
+
} : { x: 0, y: 0 }, me = n.filter((s) => u.has(s.from) && u.has(s.to)).map((s) => {
|
|
463
|
+
const p = Z(I.get(s.from), "source"), x = Z(I.get(s.to), "target");
|
|
444
464
|
return {
|
|
445
465
|
from: s.from,
|
|
446
466
|
to: s.to,
|
|
@@ -448,24 +468,24 @@ function yt(e) {
|
|
|
448
468
|
sourceY: p.y,
|
|
449
469
|
targetX: x.x,
|
|
450
470
|
targetY: x.y,
|
|
451
|
-
isBackEdge:
|
|
471
|
+
isBackEdge: L.has(P(s.from, s.to))
|
|
452
472
|
};
|
|
453
|
-
}),
|
|
473
|
+
}), J = d * 2 + F.length * (k ? a : o) + Math.max(0, F.length - 1) * l, U = d * 2 + Y;
|
|
454
474
|
return {
|
|
455
|
-
nodes: [...
|
|
456
|
-
edges:
|
|
457
|
-
ranks:
|
|
475
|
+
nodes: [...I.values()],
|
|
476
|
+
edges: me,
|
|
477
|
+
ranks: q,
|
|
458
478
|
direction: r,
|
|
459
|
-
width:
|
|
460
|
-
height:
|
|
479
|
+
width: k ? U : J,
|
|
480
|
+
height: k ? J : U
|
|
461
481
|
};
|
|
462
482
|
}
|
|
463
|
-
function
|
|
464
|
-
additions:
|
|
465
|
-
deletions:
|
|
483
|
+
function bt({
|
|
484
|
+
additions: t = 0,
|
|
485
|
+
deletions: e = 0,
|
|
466
486
|
style: n
|
|
467
487
|
}) {
|
|
468
|
-
return
|
|
488
|
+
return t === 0 && e === 0 ? null : /* @__PURE__ */ y(
|
|
469
489
|
"span",
|
|
470
490
|
{
|
|
471
491
|
style: {
|
|
@@ -477,31 +497,31 @@ function mt({
|
|
|
477
497
|
...n
|
|
478
498
|
},
|
|
479
499
|
children: [
|
|
480
|
-
|
|
500
|
+
t > 0 && /* @__PURE__ */ y("span", { style: { color: C.added }, children: [
|
|
481
501
|
"+",
|
|
482
|
-
|
|
502
|
+
t
|
|
483
503
|
] }),
|
|
484
|
-
|
|
504
|
+
e > 0 && /* @__PURE__ */ y("span", { style: { color: C.deleted }, children: [
|
|
485
505
|
"-",
|
|
486
|
-
|
|
506
|
+
e
|
|
487
507
|
] })
|
|
488
508
|
]
|
|
489
509
|
}
|
|
490
510
|
);
|
|
491
511
|
}
|
|
492
|
-
const
|
|
512
|
+
const at = {
|
|
493
513
|
added: "+",
|
|
494
514
|
removed: "-",
|
|
495
515
|
unchanged: " "
|
|
496
516
|
};
|
|
497
|
-
function
|
|
498
|
-
lines:
|
|
499
|
-
showLineNumbers:
|
|
517
|
+
function St({
|
|
518
|
+
lines: t,
|
|
519
|
+
showLineNumbers: e = !0,
|
|
500
520
|
coloredLineNumbers: n = !0,
|
|
501
521
|
showAccentStrip: r = !0,
|
|
502
|
-
style:
|
|
522
|
+
style: o
|
|
503
523
|
}) {
|
|
504
|
-
const
|
|
524
|
+
const a = g(), l = (c) => c === "added" ? a.diff.insertedLine : c === "removed" ? a.diff.removedLine : "transparent", f = (c) => c === "added" ? a.diff.stripAdded : c === "removed" ? a.diff.stripRemoved : "transparent", d = (c) => n && c === "added" ? C.added : n && c === "removed" ? C.deleted : a.text.tertiary;
|
|
505
525
|
return /* @__PURE__ */ i(
|
|
506
526
|
"div",
|
|
507
527
|
{
|
|
@@ -509,21 +529,21 @@ function gt({
|
|
|
509
529
|
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Code", monospace',
|
|
510
530
|
fontSize: 12.5,
|
|
511
531
|
lineHeight: "18px",
|
|
512
|
-
color:
|
|
532
|
+
color: a.text.primary,
|
|
513
533
|
overflowX: "auto",
|
|
514
|
-
...
|
|
534
|
+
...o
|
|
515
535
|
},
|
|
516
|
-
children:
|
|
536
|
+
children: t.map((c, u) => /* @__PURE__ */ y(
|
|
517
537
|
"div",
|
|
518
538
|
{
|
|
519
539
|
style: {
|
|
520
540
|
display: "flex",
|
|
521
541
|
alignItems: "stretch",
|
|
522
|
-
background: c
|
|
523
|
-
borderLeft: r ? `3px solid ${f(
|
|
542
|
+
background: l(c.type),
|
|
543
|
+
borderLeft: r ? `3px solid ${f(c.type)}` : void 0
|
|
524
544
|
},
|
|
525
545
|
children: [
|
|
526
|
-
|
|
546
|
+
e && /* @__PURE__ */ i(
|
|
527
547
|
"span",
|
|
528
548
|
{
|
|
529
549
|
style: {
|
|
@@ -532,9 +552,9 @@ function gt({
|
|
|
532
552
|
textAlign: "right",
|
|
533
553
|
paddingRight: 10,
|
|
534
554
|
userSelect: "none",
|
|
535
|
-
color: d(
|
|
555
|
+
color: d(c.type)
|
|
536
556
|
},
|
|
537
|
-
children:
|
|
557
|
+
children: c.lineNumber ?? ""
|
|
538
558
|
}
|
|
539
559
|
),
|
|
540
560
|
/* @__PURE__ */ i(
|
|
@@ -545,9 +565,9 @@ function gt({
|
|
|
545
565
|
width: 14,
|
|
546
566
|
textAlign: "center",
|
|
547
567
|
userSelect: "none",
|
|
548
|
-
color: d(
|
|
568
|
+
color: d(c.type)
|
|
549
569
|
},
|
|
550
|
-
children:
|
|
570
|
+
children: at[c.type]
|
|
551
571
|
}
|
|
552
572
|
),
|
|
553
573
|
/* @__PURE__ */ i(
|
|
@@ -559,7 +579,7 @@ function gt({
|
|
|
559
579
|
whiteSpace: "pre",
|
|
560
580
|
fontFamily: "inherit"
|
|
561
581
|
},
|
|
562
|
-
children:
|
|
582
|
+
children: c.content
|
|
563
583
|
}
|
|
564
584
|
)
|
|
565
585
|
]
|
|
@@ -569,8 +589,8 @@ function gt({
|
|
|
569
589
|
}
|
|
570
590
|
);
|
|
571
591
|
}
|
|
572
|
-
function
|
|
573
|
-
const
|
|
592
|
+
function it({ status: t }) {
|
|
593
|
+
const e = g(), n = t === "completed" ? C.success : t === "in_progress" ? e.accent.primary : t === "cancelled" ? C.danger : e.text.tertiary;
|
|
574
594
|
return /* @__PURE__ */ y(
|
|
575
595
|
"svg",
|
|
576
596
|
{
|
|
@@ -582,7 +602,7 @@ function nt({ status: e }) {
|
|
|
582
602
|
"aria-hidden": !0,
|
|
583
603
|
children: [
|
|
584
604
|
/* @__PURE__ */ i("circle", { cx: 7, cy: 7, r: 6, stroke: n, strokeWidth: 1.4 }),
|
|
585
|
-
|
|
605
|
+
t === "completed" && /* @__PURE__ */ i(
|
|
586
606
|
"path",
|
|
587
607
|
{
|
|
588
608
|
d: "M4 7.2l2 2 4-4.4",
|
|
@@ -592,8 +612,8 @@ function nt({ status: e }) {
|
|
|
592
612
|
strokeLinejoin: "round"
|
|
593
613
|
}
|
|
594
614
|
),
|
|
595
|
-
|
|
596
|
-
|
|
615
|
+
t === "in_progress" && /* @__PURE__ */ i("circle", { cx: 7, cy: 7, r: 3, fill: n }),
|
|
616
|
+
t === "cancelled" && /* @__PURE__ */ i(
|
|
597
617
|
"path",
|
|
598
618
|
{
|
|
599
619
|
d: "M4.8 4.8l4.4 4.4M9.2 4.8l-4.4 4.4",
|
|
@@ -606,20 +626,20 @@ function nt({ status: e }) {
|
|
|
606
626
|
}
|
|
607
627
|
);
|
|
608
628
|
}
|
|
609
|
-
function
|
|
610
|
-
todos:
|
|
611
|
-
dimmedTodoIds:
|
|
629
|
+
function st({
|
|
630
|
+
todos: t,
|
|
631
|
+
dimmedTodoIds: e,
|
|
612
632
|
onTodoClick: n,
|
|
613
633
|
style: r
|
|
614
634
|
}) {
|
|
615
|
-
const
|
|
616
|
-
return
|
|
617
|
-
const
|
|
635
|
+
const o = g();
|
|
636
|
+
return t.length === 0 ? null : /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", ...r }, children: t.map((a) => {
|
|
637
|
+
const l = e == null ? void 0 : e.has(a.id);
|
|
618
638
|
return /* @__PURE__ */ y(
|
|
619
639
|
"button",
|
|
620
640
|
{
|
|
621
641
|
type: "button",
|
|
622
|
-
onClick: () => n == null ? void 0 : n(
|
|
642
|
+
onClick: () => n == null ? void 0 : n(a),
|
|
623
643
|
style: {
|
|
624
644
|
display: "flex",
|
|
625
645
|
gap: 8,
|
|
@@ -630,64 +650,64 @@ function rt({
|
|
|
630
650
|
background: "transparent",
|
|
631
651
|
border: "none",
|
|
632
652
|
cursor: n ? "pointer" : "default",
|
|
633
|
-
color:
|
|
653
|
+
color: o.text.primary,
|
|
634
654
|
fontSize: 14,
|
|
635
655
|
lineHeight: "20px",
|
|
636
|
-
opacity:
|
|
656
|
+
opacity: l ? 0.45 : 1
|
|
637
657
|
},
|
|
638
658
|
children: [
|
|
639
|
-
/* @__PURE__ */ i(
|
|
659
|
+
/* @__PURE__ */ i(it, { status: a.status }),
|
|
640
660
|
/* @__PURE__ */ i(
|
|
641
661
|
"span",
|
|
642
662
|
{
|
|
643
663
|
style: {
|
|
644
|
-
textDecoration:
|
|
645
|
-
color:
|
|
664
|
+
textDecoration: a.status === "cancelled" ? "line-through" : void 0,
|
|
665
|
+
color: a.status === "cancelled" ? o.text.tertiary : void 0
|
|
646
666
|
},
|
|
647
|
-
children:
|
|
667
|
+
children: a.content
|
|
648
668
|
}
|
|
649
669
|
)
|
|
650
670
|
]
|
|
651
671
|
},
|
|
652
|
-
|
|
672
|
+
a.id
|
|
653
673
|
);
|
|
654
674
|
}) });
|
|
655
675
|
}
|
|
656
|
-
function
|
|
657
|
-
todos:
|
|
658
|
-
dimmedTodoIds:
|
|
676
|
+
function kt({
|
|
677
|
+
todos: t,
|
|
678
|
+
dimmedTodoIds: e,
|
|
659
679
|
defaultExpanded: n = !1,
|
|
660
680
|
onTodoClick: r,
|
|
661
|
-
style:
|
|
681
|
+
style: o
|
|
662
682
|
}) {
|
|
663
|
-
const
|
|
664
|
-
if (
|
|
665
|
-
const d =
|
|
683
|
+
const a = g(), [l, f] = E(n);
|
|
684
|
+
if (t.length === 0) return null;
|
|
685
|
+
const d = t.filter((c) => c.status === "completed").length;
|
|
666
686
|
return /* @__PURE__ */ y(
|
|
667
687
|
"div",
|
|
668
688
|
{
|
|
669
689
|
style: {
|
|
670
|
-
border: `1px solid ${
|
|
690
|
+
border: `1px solid ${a.stroke.primary}`,
|
|
671
691
|
borderRadius: 6,
|
|
672
692
|
overflow: "hidden",
|
|
673
|
-
...
|
|
693
|
+
...o
|
|
674
694
|
},
|
|
675
695
|
children: [
|
|
676
696
|
/* @__PURE__ */ y(
|
|
677
697
|
"button",
|
|
678
698
|
{
|
|
679
699
|
type: "button",
|
|
680
|
-
onClick: () => f((
|
|
700
|
+
onClick: () => f((c) => !c),
|
|
681
701
|
style: {
|
|
682
702
|
display: "flex",
|
|
683
703
|
alignItems: "center",
|
|
684
704
|
gap: 8,
|
|
685
705
|
width: "100%",
|
|
686
706
|
padding: "6px 10px",
|
|
687
|
-
background:
|
|
707
|
+
background: a.fill.secondary,
|
|
688
708
|
border: "none",
|
|
689
709
|
cursor: "pointer",
|
|
690
|
-
color:
|
|
710
|
+
color: a.text.secondary,
|
|
691
711
|
fontSize: 12,
|
|
692
712
|
fontWeight: 600
|
|
693
713
|
},
|
|
@@ -700,7 +720,7 @@ function xt({
|
|
|
700
720
|
viewBox: "0 0 12 12",
|
|
701
721
|
fill: "none",
|
|
702
722
|
style: {
|
|
703
|
-
transform:
|
|
723
|
+
transform: l ? "rotate(90deg)" : "none",
|
|
704
724
|
transition: "transform 120ms"
|
|
705
725
|
},
|
|
706
726
|
"aria-hidden": !0,
|
|
@@ -721,17 +741,17 @@ function xt({
|
|
|
721
741
|
/* @__PURE__ */ y("span", { children: [
|
|
722
742
|
d,
|
|
723
743
|
" of ",
|
|
724
|
-
|
|
744
|
+
t.length,
|
|
725
745
|
" Done"
|
|
726
746
|
] })
|
|
727
747
|
]
|
|
728
748
|
}
|
|
729
749
|
),
|
|
730
|
-
|
|
731
|
-
|
|
750
|
+
l && /* @__PURE__ */ i("div", { style: { padding: 6 }, children: /* @__PURE__ */ i(
|
|
751
|
+
st,
|
|
732
752
|
{
|
|
733
|
-
todos:
|
|
734
|
-
dimmedTodoIds:
|
|
753
|
+
todos: t,
|
|
754
|
+
dimmedTodoIds: e,
|
|
735
755
|
onTodoClick: r
|
|
736
756
|
}
|
|
737
757
|
) })
|
|
@@ -739,19 +759,19 @@ function xt({
|
|
|
739
759
|
}
|
|
740
760
|
);
|
|
741
761
|
}
|
|
742
|
-
function
|
|
743
|
-
const n = `canvas:${
|
|
744
|
-
if (typeof localStorage > "u") return
|
|
762
|
+
function Ct(t, e) {
|
|
763
|
+
const n = `canvas:${t}`, [r, o] = E(() => {
|
|
764
|
+
if (typeof localStorage > "u") return e;
|
|
745
765
|
try {
|
|
746
|
-
const
|
|
747
|
-
return
|
|
766
|
+
const l = localStorage.getItem(n);
|
|
767
|
+
return l === null ? e : JSON.parse(l);
|
|
748
768
|
} catch {
|
|
749
|
-
return
|
|
769
|
+
return e;
|
|
750
770
|
}
|
|
751
|
-
}),
|
|
752
|
-
(
|
|
753
|
-
|
|
754
|
-
const d = typeof
|
|
771
|
+
}), a = G(
|
|
772
|
+
(l) => {
|
|
773
|
+
o((f) => {
|
|
774
|
+
const d = typeof l == "function" ? l(f) : l;
|
|
755
775
|
try {
|
|
756
776
|
localStorage == null || localStorage.setItem(n, JSON.stringify(d));
|
|
757
777
|
} catch {
|
|
@@ -761,76 +781,77 @@ function vt(e, t) {
|
|
|
761
781
|
},
|
|
762
782
|
[n]
|
|
763
783
|
);
|
|
764
|
-
return [r,
|
|
784
|
+
return [r, a];
|
|
765
785
|
}
|
|
766
|
-
function
|
|
767
|
-
return G((
|
|
786
|
+
function wt() {
|
|
787
|
+
return G((t) => {
|
|
768
788
|
}, []);
|
|
769
789
|
}
|
|
770
|
-
function
|
|
771
|
-
return { ...
|
|
790
|
+
function Lt(t, e) {
|
|
791
|
+
return { ...t, ...e };
|
|
772
792
|
}
|
|
773
|
-
function
|
|
774
|
-
const r =
|
|
793
|
+
function K(t, e, n) {
|
|
794
|
+
const r = t.typography[e];
|
|
775
795
|
return {
|
|
776
|
-
fontFamily:
|
|
796
|
+
fontFamily: t.typography.fontFamily,
|
|
777
797
|
fontSize: r.fontSize,
|
|
778
798
|
lineHeight: r.lineHeight,
|
|
779
799
|
fontWeight: r.fontWeight,
|
|
780
|
-
color:
|
|
800
|
+
color: t.text.primary,
|
|
781
801
|
margin: 0,
|
|
782
802
|
...n
|
|
783
803
|
};
|
|
784
804
|
}
|
|
785
|
-
function
|
|
786
|
-
const n =
|
|
787
|
-
return /* @__PURE__ */ i(W, { order: 1, style:
|
|
805
|
+
function Tt({ children: t, style: e }) {
|
|
806
|
+
const n = g();
|
|
807
|
+
return /* @__PURE__ */ i(W, { order: 1, style: K(n, "h1", e), children: t });
|
|
788
808
|
}
|
|
789
|
-
function
|
|
790
|
-
const n =
|
|
791
|
-
return /* @__PURE__ */ i(W, { order: 2, style:
|
|
809
|
+
function Pt({ children: t, style: e }) {
|
|
810
|
+
const n = g();
|
|
811
|
+
return /* @__PURE__ */ i(W, { order: 2, style: K(n, "h2", e), children: t });
|
|
792
812
|
}
|
|
793
|
-
function
|
|
794
|
-
const n =
|
|
795
|
-
return /* @__PURE__ */ i(W, { order: 3, style:
|
|
813
|
+
function At({ children: t, style: e }) {
|
|
814
|
+
const n = g();
|
|
815
|
+
return /* @__PURE__ */ i(W, { order: 3, style: K(n, "h3", e), children: t });
|
|
796
816
|
}
|
|
797
|
-
const
|
|
817
|
+
const lt = {
|
|
798
818
|
normal: 400,
|
|
799
819
|
medium: 500,
|
|
800
820
|
semibold: 600,
|
|
801
821
|
bold: 700
|
|
802
|
-
};
|
|
803
|
-
function
|
|
804
|
-
children:
|
|
805
|
-
tone:
|
|
822
|
+
}, re = ae(!1);
|
|
823
|
+
function Mt({
|
|
824
|
+
children: t,
|
|
825
|
+
tone: e = "primary",
|
|
806
826
|
size: n = "body",
|
|
807
827
|
as: r = "p",
|
|
808
|
-
weight:
|
|
809
|
-
italic:
|
|
810
|
-
truncate:
|
|
828
|
+
weight: o = "normal",
|
|
829
|
+
italic: a,
|
|
830
|
+
truncate: l,
|
|
811
831
|
style: f
|
|
812
832
|
}) {
|
|
813
|
-
const d =
|
|
814
|
-
return /* @__PURE__ */ i(
|
|
833
|
+
const d = g(), u = O(re) && r === "p" ? "span" : r, m = r === "p";
|
|
834
|
+
return /* @__PURE__ */ i(re.Provider, { value: !0, children: /* @__PURE__ */ i(
|
|
815
835
|
H,
|
|
816
836
|
{
|
|
817
|
-
component:
|
|
837
|
+
component: u,
|
|
818
838
|
size: n === "small" ? "xs" : "sm",
|
|
819
|
-
fw:
|
|
820
|
-
c:
|
|
821
|
-
truncate:
|
|
839
|
+
fw: lt[o],
|
|
840
|
+
c: e === "primary" ? void 0 : d.text[e],
|
|
841
|
+
truncate: l,
|
|
822
842
|
style: {
|
|
823
|
-
fontStyle:
|
|
824
|
-
...
|
|
843
|
+
fontStyle: a ? "italic" : void 0,
|
|
844
|
+
...e === "primary" ? { color: d.text.primary } : void 0,
|
|
845
|
+
...m && u === "span" ? { display: "block" } : void 0,
|
|
825
846
|
fontFamily: d.typography.fontFamily,
|
|
826
847
|
...f
|
|
827
848
|
},
|
|
828
|
-
children:
|
|
849
|
+
children: t
|
|
829
850
|
}
|
|
830
|
-
);
|
|
851
|
+
) });
|
|
831
852
|
}
|
|
832
|
-
function
|
|
833
|
-
const n =
|
|
853
|
+
function Bt({ children: t, style: e }) {
|
|
854
|
+
const n = g();
|
|
834
855
|
return /* @__PURE__ */ i(
|
|
835
856
|
"code",
|
|
836
857
|
{
|
|
@@ -841,117 +862,117 @@ function Tt({ children: e, style: t }) {
|
|
|
841
862
|
background: n.fill.secondary,
|
|
842
863
|
borderRadius: n.radius.sm,
|
|
843
864
|
padding: "1px 4px",
|
|
844
|
-
...
|
|
865
|
+
...e
|
|
845
866
|
},
|
|
846
|
-
children:
|
|
867
|
+
children: t
|
|
847
868
|
}
|
|
848
869
|
);
|
|
849
870
|
}
|
|
850
|
-
function
|
|
851
|
-
const r =
|
|
871
|
+
function Dt({ children: t, href: e, style: n }) {
|
|
872
|
+
const r = g();
|
|
852
873
|
return /* @__PURE__ */ i(
|
|
853
874
|
"a",
|
|
854
875
|
{
|
|
855
|
-
href:
|
|
876
|
+
href: e,
|
|
856
877
|
target: "_blank",
|
|
857
878
|
rel: "noreferrer",
|
|
858
879
|
style: { color: r.text.link, ...n },
|
|
859
|
-
children:
|
|
880
|
+
children: t
|
|
860
881
|
}
|
|
861
882
|
);
|
|
862
883
|
}
|
|
863
|
-
function
|
|
864
|
-
return /* @__PURE__ */ i(
|
|
884
|
+
function $t({ children: t, gap: e, style: n }) {
|
|
885
|
+
return /* @__PURE__ */ i(Me, { gap: e, style: n, children: t });
|
|
865
886
|
}
|
|
866
|
-
const
|
|
887
|
+
const oe = {
|
|
867
888
|
start: "flex-start",
|
|
868
889
|
center: "center",
|
|
869
890
|
end: "flex-end",
|
|
870
891
|
stretch: "stretch",
|
|
871
892
|
"space-between": "space-between"
|
|
872
893
|
};
|
|
873
|
-
function
|
|
874
|
-
children:
|
|
875
|
-
gap:
|
|
894
|
+
function Et({
|
|
895
|
+
children: t,
|
|
896
|
+
gap: e,
|
|
876
897
|
align: n = "center",
|
|
877
898
|
justify: r = "start",
|
|
878
|
-
wrap:
|
|
879
|
-
style:
|
|
899
|
+
wrap: o = !1,
|
|
900
|
+
style: a
|
|
880
901
|
}) {
|
|
881
902
|
return /* @__PURE__ */ i(
|
|
882
|
-
|
|
903
|
+
Pe,
|
|
883
904
|
{
|
|
884
|
-
gap:
|
|
885
|
-
align:
|
|
886
|
-
justify:
|
|
887
|
-
wrap:
|
|
888
|
-
style:
|
|
889
|
-
children:
|
|
905
|
+
gap: e,
|
|
906
|
+
align: oe[n],
|
|
907
|
+
justify: oe[r],
|
|
908
|
+
wrap: o ? "wrap" : "nowrap",
|
|
909
|
+
style: a,
|
|
910
|
+
children: t
|
|
890
911
|
}
|
|
891
912
|
);
|
|
892
913
|
}
|
|
893
|
-
function
|
|
914
|
+
function Ft() {
|
|
894
915
|
return /* @__PURE__ */ i("div", { style: { flex: 1 } });
|
|
895
916
|
}
|
|
896
|
-
function
|
|
897
|
-
const
|
|
917
|
+
function It({ children: t, columns: e, gap: n = 16, align: r, style: o }) {
|
|
918
|
+
const a = typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e;
|
|
898
919
|
return /* @__PURE__ */ i(
|
|
899
920
|
"div",
|
|
900
921
|
{
|
|
901
922
|
style: {
|
|
902
923
|
display: "grid",
|
|
903
|
-
gridTemplateColumns:
|
|
924
|
+
gridTemplateColumns: a,
|
|
904
925
|
gap: n,
|
|
905
926
|
alignItems: r,
|
|
906
|
-
...
|
|
927
|
+
...o
|
|
907
928
|
},
|
|
908
|
-
children:
|
|
929
|
+
children: t
|
|
909
930
|
}
|
|
910
931
|
);
|
|
911
932
|
}
|
|
912
|
-
function
|
|
913
|
-
return /* @__PURE__ */ i(
|
|
933
|
+
function Nt({ style: t }) {
|
|
934
|
+
return /* @__PURE__ */ i(we, { style: t });
|
|
914
935
|
}
|
|
915
|
-
const
|
|
936
|
+
const V = ae({
|
|
916
937
|
collapsible: !1,
|
|
917
938
|
open: !0,
|
|
918
939
|
toggle: () => {
|
|
919
940
|
}
|
|
920
941
|
});
|
|
921
|
-
function
|
|
922
|
-
children:
|
|
923
|
-
variant:
|
|
942
|
+
function Rt({
|
|
943
|
+
children: t,
|
|
944
|
+
variant: e = "default",
|
|
924
945
|
collapsible: n = !1,
|
|
925
946
|
defaultOpen: r = !0,
|
|
926
|
-
open:
|
|
927
|
-
onOpenChange:
|
|
928
|
-
style:
|
|
947
|
+
open: o,
|
|
948
|
+
onOpenChange: a,
|
|
949
|
+
style: l
|
|
929
950
|
}) {
|
|
930
|
-
const f =
|
|
951
|
+
const f = g(), [d, c] = E(r), u = o ?? d, m = G(() => {
|
|
931
952
|
const v = !u;
|
|
932
|
-
|
|
933
|
-
}, [u,
|
|
953
|
+
o === void 0 && c(v), a == null || a(v);
|
|
954
|
+
}, [u, o, a]);
|
|
934
955
|
return /* @__PURE__ */ i(
|
|
935
|
-
|
|
956
|
+
ke,
|
|
936
957
|
{
|
|
937
|
-
withBorder:
|
|
958
|
+
withBorder: e !== "borderless",
|
|
938
959
|
radius: f.radius.md,
|
|
939
960
|
padding: 0,
|
|
940
961
|
style: {
|
|
941
962
|
background: f.bg.elevated,
|
|
942
963
|
borderColor: f.stroke.secondary,
|
|
943
|
-
...
|
|
964
|
+
...l
|
|
944
965
|
},
|
|
945
|
-
children: /* @__PURE__ */ i(
|
|
966
|
+
children: /* @__PURE__ */ i(V.Provider, { value: { collapsible: n, open: u, toggle: m }, children: t })
|
|
946
967
|
}
|
|
947
968
|
);
|
|
948
969
|
}
|
|
949
|
-
function
|
|
950
|
-
const r =
|
|
970
|
+
function _t({ children: t, trailing: e, style: n }) {
|
|
971
|
+
const r = g(), { collapsible: o, open: a, toggle: l } = O(V);
|
|
951
972
|
return /* @__PURE__ */ y(
|
|
952
973
|
"div",
|
|
953
974
|
{
|
|
954
|
-
onClick:
|
|
975
|
+
onClick: o ? l : void 0,
|
|
955
976
|
style: {
|
|
956
977
|
display: "flex",
|
|
957
978
|
alignItems: "center",
|
|
@@ -963,25 +984,25 @@ function Et({ children: e, trailing: t, style: n }) {
|
|
|
963
984
|
fontWeight: r.typography.h3.fontWeight,
|
|
964
985
|
color: r.text.primary,
|
|
965
986
|
fontFamily: r.typography.fontFamily,
|
|
966
|
-
cursor:
|
|
967
|
-
userSelect:
|
|
987
|
+
cursor: o ? "pointer" : void 0,
|
|
988
|
+
userSelect: o ? "none" : void 0,
|
|
968
989
|
...n
|
|
969
990
|
},
|
|
970
991
|
children: [
|
|
971
992
|
/* @__PURE__ */ y("span", { style: { display: "inline-flex", alignItems: "center", gap: 6 }, children: [
|
|
972
|
-
|
|
973
|
-
|
|
993
|
+
o && /* @__PURE__ */ i(ye, { expanded: a }),
|
|
994
|
+
t
|
|
974
995
|
] }),
|
|
975
|
-
|
|
996
|
+
e != null && /* @__PURE__ */ i("span", { children: e })
|
|
976
997
|
]
|
|
977
998
|
}
|
|
978
999
|
);
|
|
979
1000
|
}
|
|
980
|
-
function
|
|
981
|
-
const { collapsible: n, open: r } =
|
|
982
|
-
return n && !r ? null : /* @__PURE__ */ i("div", { style: { padding: 14, ...
|
|
1001
|
+
function zt({ children: t, style: e }) {
|
|
1002
|
+
const { collapsible: n, open: r } = O(V);
|
|
1003
|
+
return n && !r ? null : /* @__PURE__ */ i("div", { style: { padding: 14, ...e }, children: t });
|
|
983
1004
|
}
|
|
984
|
-
function
|
|
1005
|
+
function ye({ expanded: t }) {
|
|
985
1006
|
return /* @__PURE__ */ i(
|
|
986
1007
|
"svg",
|
|
987
1008
|
{
|
|
@@ -990,7 +1011,7 @@ function he({ expanded: e }) {
|
|
|
990
1011
|
viewBox: "0 0 12 12",
|
|
991
1012
|
fill: "none",
|
|
992
1013
|
style: {
|
|
993
|
-
transform:
|
|
1014
|
+
transform: t ? "rotate(90deg)" : "none",
|
|
994
1015
|
transition: "transform 120ms"
|
|
995
1016
|
},
|
|
996
1017
|
"aria-hidden": !0,
|
|
@@ -1007,8 +1028,8 @@ function he({ expanded: e }) {
|
|
|
1007
1028
|
}
|
|
1008
1029
|
);
|
|
1009
1030
|
}
|
|
1010
|
-
function
|
|
1011
|
-
const
|
|
1031
|
+
function Ht({ value: t, label: e, tone: n, style: r }) {
|
|
1032
|
+
const o = g();
|
|
1012
1033
|
return /* @__PURE__ */ y("div", { style: r, children: [
|
|
1013
1034
|
/* @__PURE__ */ i(
|
|
1014
1035
|
H,
|
|
@@ -1017,10 +1038,10 @@ function It({ value: e, label: t, tone: n, style: r }) {
|
|
|
1017
1038
|
fw: 700,
|
|
1018
1039
|
lh: 1.2,
|
|
1019
1040
|
style: {
|
|
1020
|
-
color: n ?
|
|
1021
|
-
fontFamily:
|
|
1041
|
+
color: n ? C[n] : o.text.primary,
|
|
1042
|
+
fontFamily: o.typography.fontFamily
|
|
1022
1043
|
},
|
|
1023
|
-
children:
|
|
1044
|
+
children: t
|
|
1024
1045
|
}
|
|
1025
1046
|
),
|
|
1026
1047
|
/* @__PURE__ */ i(
|
|
@@ -1028,103 +1049,103 @@ function It({ value: e, label: t, tone: n, style: r }) {
|
|
|
1028
1049
|
{
|
|
1029
1050
|
fz: 12,
|
|
1030
1051
|
style: {
|
|
1031
|
-
color:
|
|
1032
|
-
fontFamily:
|
|
1052
|
+
color: o.text.tertiary,
|
|
1053
|
+
fontFamily: o.typography.fontFamily
|
|
1033
1054
|
},
|
|
1034
|
-
children:
|
|
1055
|
+
children: e
|
|
1035
1056
|
}
|
|
1036
1057
|
)
|
|
1037
1058
|
] });
|
|
1038
1059
|
}
|
|
1039
|
-
function
|
|
1040
|
-
children:
|
|
1041
|
-
active:
|
|
1060
|
+
function Wt({
|
|
1061
|
+
children: t,
|
|
1062
|
+
active: e,
|
|
1042
1063
|
tone: n = "neutral",
|
|
1043
1064
|
size: r = "md",
|
|
1044
|
-
leadingContent:
|
|
1045
|
-
keyboardHint:
|
|
1046
|
-
title:
|
|
1065
|
+
leadingContent: o,
|
|
1066
|
+
keyboardHint: a,
|
|
1067
|
+
title: l,
|
|
1047
1068
|
style: f,
|
|
1048
1069
|
onClick: d
|
|
1049
1070
|
}) {
|
|
1050
1071
|
return /* @__PURE__ */ i(
|
|
1051
|
-
|
|
1072
|
+
Te,
|
|
1052
1073
|
{
|
|
1053
|
-
color:
|
|
1054
|
-
variant:
|
|
1074
|
+
color: ie[n],
|
|
1075
|
+
variant: e ? "filled" : "light",
|
|
1055
1076
|
size: r === "sm" ? "sm" : "md",
|
|
1056
|
-
leftSection:
|
|
1057
|
-
rightSection:
|
|
1058
|
-
title:
|
|
1077
|
+
leftSection: o,
|
|
1078
|
+
rightSection: a,
|
|
1079
|
+
title: l,
|
|
1059
1080
|
onClick: d,
|
|
1060
1081
|
style: {
|
|
1061
1082
|
cursor: d ? "pointer" : void 0,
|
|
1062
1083
|
textTransform: "none",
|
|
1063
1084
|
...f
|
|
1064
1085
|
},
|
|
1065
|
-
children:
|
|
1086
|
+
children: t
|
|
1066
1087
|
}
|
|
1067
1088
|
);
|
|
1068
1089
|
}
|
|
1069
|
-
function
|
|
1070
|
-
children:
|
|
1071
|
-
tone:
|
|
1090
|
+
function Gt({
|
|
1091
|
+
children: t,
|
|
1092
|
+
tone: e = "neutral",
|
|
1072
1093
|
title: n,
|
|
1073
1094
|
icon: r,
|
|
1074
|
-
style:
|
|
1095
|
+
style: o
|
|
1075
1096
|
}) {
|
|
1076
1097
|
return /* @__PURE__ */ i(
|
|
1077
|
-
|
|
1098
|
+
Se,
|
|
1078
1099
|
{
|
|
1079
|
-
color:
|
|
1100
|
+
color: ie[e],
|
|
1080
1101
|
title: n,
|
|
1081
1102
|
icon: r,
|
|
1082
1103
|
variant: "light",
|
|
1083
|
-
style:
|
|
1084
|
-
children:
|
|
1104
|
+
style: o,
|
|
1105
|
+
children: t
|
|
1085
1106
|
}
|
|
1086
1107
|
);
|
|
1087
1108
|
}
|
|
1088
|
-
const
|
|
1109
|
+
const ct = {
|
|
1089
1110
|
success: "rgba(31,138,101,0.12)",
|
|
1090
1111
|
danger: "rgba(207,45,86,0.12)",
|
|
1091
1112
|
warning: "rgba(232,163,61,0.14)",
|
|
1092
1113
|
info: "rgba(46,121,181,0.12)",
|
|
1093
1114
|
neutral: "rgba(136,136,168,0.12)"
|
|
1094
1115
|
};
|
|
1095
|
-
function
|
|
1096
|
-
headers:
|
|
1097
|
-
rows:
|
|
1116
|
+
function Ot({
|
|
1117
|
+
headers: t,
|
|
1118
|
+
rows: e,
|
|
1098
1119
|
columnAlign: n,
|
|
1099
1120
|
rowTone: r,
|
|
1100
|
-
framed:
|
|
1101
|
-
striped:
|
|
1102
|
-
stickyHeader:
|
|
1121
|
+
framed: o = !0,
|
|
1122
|
+
striped: a,
|
|
1123
|
+
stickyHeader: l,
|
|
1103
1124
|
style: f,
|
|
1104
1125
|
emptyMessage: d
|
|
1105
1126
|
}) {
|
|
1106
1127
|
return /* @__PURE__ */ y(
|
|
1107
|
-
|
|
1128
|
+
T,
|
|
1108
1129
|
{
|
|
1109
|
-
withTableBorder:
|
|
1130
|
+
withTableBorder: o,
|
|
1110
1131
|
withColumnBorders: !1,
|
|
1111
|
-
striped:
|
|
1112
|
-
stickyHeader:
|
|
1132
|
+
striped: a,
|
|
1133
|
+
stickyHeader: l,
|
|
1113
1134
|
highlightOnHover: !0,
|
|
1114
1135
|
style: f,
|
|
1115
1136
|
children: [
|
|
1116
|
-
/* @__PURE__ */ i(
|
|
1117
|
-
/* @__PURE__ */ i(
|
|
1118
|
-
const
|
|
1137
|
+
/* @__PURE__ */ i(T.Thead, { children: /* @__PURE__ */ i(T.Tr, { children: t.map((c, u) => /* @__PURE__ */ i(T.Th, { ta: (n == null ? void 0 : n[u]) ?? "left", children: c }, u)) }) }),
|
|
1138
|
+
/* @__PURE__ */ i(T.Tbody, { children: e.length === 0 ? /* @__PURE__ */ i(T.Tr, { children: /* @__PURE__ */ i(T.Td, { colSpan: t.length, ta: "center", c: "dimmed", children: d ?? "No data" }) }) : e.map((c, u) => {
|
|
1139
|
+
const m = r == null ? void 0 : r[u];
|
|
1119
1140
|
return /* @__PURE__ */ i(
|
|
1120
|
-
|
|
1141
|
+
T.Tr,
|
|
1121
1142
|
{
|
|
1122
|
-
style:
|
|
1123
|
-
children:
|
|
1124
|
-
|
|
1143
|
+
style: m ? { background: ct[m] } : void 0,
|
|
1144
|
+
children: t.map((v, h) => /* @__PURE__ */ i(
|
|
1145
|
+
T.Td,
|
|
1125
1146
|
{
|
|
1126
1147
|
ta: (n == null ? void 0 : n[h]) ?? "left",
|
|
1127
|
-
children:
|
|
1148
|
+
children: c[h]
|
|
1128
1149
|
},
|
|
1129
1150
|
h
|
|
1130
1151
|
))
|
|
@@ -1136,160 +1157,160 @@ function _t({
|
|
|
1136
1157
|
}
|
|
1137
1158
|
);
|
|
1138
1159
|
}
|
|
1139
|
-
const
|
|
1160
|
+
const dt = {
|
|
1140
1161
|
primary: "filled",
|
|
1141
1162
|
secondary: "default",
|
|
1142
1163
|
ghost: "subtle"
|
|
1143
1164
|
};
|
|
1144
|
-
function
|
|
1145
|
-
children:
|
|
1146
|
-
variant:
|
|
1165
|
+
function jt({
|
|
1166
|
+
children: t,
|
|
1167
|
+
variant: e = "secondary",
|
|
1147
1168
|
disabled: n,
|
|
1148
1169
|
type: r = "button",
|
|
1149
|
-
style:
|
|
1150
|
-
onClick:
|
|
1170
|
+
style: o,
|
|
1171
|
+
onClick: a
|
|
1151
1172
|
}) {
|
|
1152
1173
|
return /* @__PURE__ */ i(
|
|
1153
|
-
|
|
1174
|
+
be,
|
|
1154
1175
|
{
|
|
1155
|
-
variant:
|
|
1156
|
-
color:
|
|
1176
|
+
variant: dt[e],
|
|
1177
|
+
color: e === "primary" ? "accent" : void 0,
|
|
1157
1178
|
size: "xs",
|
|
1158
1179
|
disabled: n,
|
|
1159
1180
|
type: r,
|
|
1160
|
-
onClick:
|
|
1161
|
-
style:
|
|
1162
|
-
children:
|
|
1181
|
+
onClick: a,
|
|
1182
|
+
style: o,
|
|
1183
|
+
children: t
|
|
1163
1184
|
}
|
|
1164
1185
|
);
|
|
1165
1186
|
}
|
|
1166
|
-
function
|
|
1167
|
-
children:
|
|
1168
|
-
onClick:
|
|
1187
|
+
function Kt({
|
|
1188
|
+
children: t,
|
|
1189
|
+
onClick: e,
|
|
1169
1190
|
disabled: n,
|
|
1170
1191
|
title: r,
|
|
1171
|
-
variant:
|
|
1172
|
-
size:
|
|
1173
|
-
style:
|
|
1192
|
+
variant: o = "default",
|
|
1193
|
+
size: a = "md",
|
|
1194
|
+
style: l
|
|
1174
1195
|
}) {
|
|
1175
1196
|
return /* @__PURE__ */ i(
|
|
1176
|
-
|
|
1197
|
+
Le,
|
|
1177
1198
|
{
|
|
1178
|
-
variant:
|
|
1179
|
-
radius:
|
|
1180
|
-
size:
|
|
1199
|
+
variant: o === "circle" ? "light" : "subtle",
|
|
1200
|
+
radius: o === "circle" ? "xl" : "sm",
|
|
1201
|
+
size: a === "sm" ? "sm" : "md",
|
|
1181
1202
|
color: "gray",
|
|
1182
1203
|
disabled: n,
|
|
1183
1204
|
title: r,
|
|
1184
1205
|
"aria-label": r,
|
|
1185
|
-
onClick:
|
|
1186
|
-
style:
|
|
1187
|
-
children:
|
|
1206
|
+
onClick: e,
|
|
1207
|
+
style: l,
|
|
1208
|
+
children: t
|
|
1188
1209
|
}
|
|
1189
1210
|
);
|
|
1190
1211
|
}
|
|
1191
|
-
function
|
|
1192
|
-
value:
|
|
1193
|
-
onChange:
|
|
1212
|
+
function Vt({
|
|
1213
|
+
value: t,
|
|
1214
|
+
onChange: e,
|
|
1194
1215
|
options: n,
|
|
1195
1216
|
placeholder: r,
|
|
1196
|
-
disabled:
|
|
1197
|
-
style:
|
|
1217
|
+
disabled: o,
|
|
1218
|
+
style: a
|
|
1198
1219
|
}) {
|
|
1199
1220
|
return /* @__PURE__ */ i(
|
|
1200
|
-
|
|
1221
|
+
Ae,
|
|
1201
1222
|
{
|
|
1202
|
-
value:
|
|
1223
|
+
value: t,
|
|
1203
1224
|
data: n,
|
|
1204
1225
|
placeholder: r,
|
|
1205
|
-
disabled:
|
|
1226
|
+
disabled: o,
|
|
1206
1227
|
allowDeselect: !1,
|
|
1207
|
-
onChange: (
|
|
1208
|
-
|
|
1228
|
+
onChange: (l) => {
|
|
1229
|
+
l !== null && (e == null || e(l));
|
|
1209
1230
|
},
|
|
1210
|
-
style:
|
|
1231
|
+
style: a
|
|
1211
1232
|
}
|
|
1212
1233
|
);
|
|
1213
1234
|
}
|
|
1214
|
-
function
|
|
1215
|
-
checked:
|
|
1216
|
-
onChange:
|
|
1235
|
+
function Xt({
|
|
1236
|
+
checked: t,
|
|
1237
|
+
onChange: e,
|
|
1217
1238
|
disabled: n,
|
|
1218
1239
|
label: r,
|
|
1219
|
-
style:
|
|
1240
|
+
style: o
|
|
1220
1241
|
}) {
|
|
1221
1242
|
return /* @__PURE__ */ i(
|
|
1222
|
-
|
|
1243
|
+
Ce,
|
|
1223
1244
|
{
|
|
1224
|
-
checked:
|
|
1245
|
+
checked: t,
|
|
1225
1246
|
disabled: n,
|
|
1226
1247
|
label: r,
|
|
1227
|
-
onChange: (
|
|
1228
|
-
style:
|
|
1248
|
+
onChange: (a) => e == null ? void 0 : e(a.currentTarget.checked),
|
|
1249
|
+
style: o
|
|
1229
1250
|
}
|
|
1230
1251
|
);
|
|
1231
1252
|
}
|
|
1232
|
-
function
|
|
1233
|
-
checked:
|
|
1234
|
-
onChange:
|
|
1253
|
+
function Yt({
|
|
1254
|
+
checked: t,
|
|
1255
|
+
onChange: e,
|
|
1235
1256
|
disabled: n,
|
|
1236
1257
|
size: r = "sm",
|
|
1237
|
-
style:
|
|
1258
|
+
style: o
|
|
1238
1259
|
}) {
|
|
1239
1260
|
return /* @__PURE__ */ i(
|
|
1240
|
-
|
|
1261
|
+
$e,
|
|
1241
1262
|
{
|
|
1242
|
-
checked:
|
|
1263
|
+
checked: t,
|
|
1243
1264
|
disabled: n,
|
|
1244
1265
|
size: r === "sm" ? "sm" : "md",
|
|
1245
|
-
onChange: (
|
|
1246
|
-
style:
|
|
1266
|
+
onChange: (a) => e == null ? void 0 : e(a.currentTarget.checked),
|
|
1267
|
+
style: o
|
|
1247
1268
|
}
|
|
1248
1269
|
);
|
|
1249
1270
|
}
|
|
1250
|
-
function
|
|
1251
|
-
value:
|
|
1252
|
-
onChange:
|
|
1271
|
+
function qt({
|
|
1272
|
+
value: t,
|
|
1273
|
+
onChange: e,
|
|
1253
1274
|
placeholder: n,
|
|
1254
1275
|
disabled: r,
|
|
1255
|
-
type:
|
|
1256
|
-
style:
|
|
1276
|
+
type: o,
|
|
1277
|
+
style: a
|
|
1257
1278
|
}) {
|
|
1258
1279
|
return /* @__PURE__ */ i(
|
|
1259
|
-
|
|
1280
|
+
De,
|
|
1260
1281
|
{
|
|
1261
|
-
value:
|
|
1282
|
+
value: t,
|
|
1262
1283
|
placeholder: n,
|
|
1263
1284
|
disabled: r,
|
|
1264
|
-
type:
|
|
1265
|
-
onChange: (
|
|
1266
|
-
style:
|
|
1285
|
+
type: o,
|
|
1286
|
+
onChange: (l) => e == null ? void 0 : e(l.currentTarget.value),
|
|
1287
|
+
style: a
|
|
1267
1288
|
}
|
|
1268
1289
|
);
|
|
1269
1290
|
}
|
|
1270
|
-
function
|
|
1271
|
-
value:
|
|
1272
|
-
onChange:
|
|
1291
|
+
function Zt({
|
|
1292
|
+
value: t,
|
|
1293
|
+
onChange: e,
|
|
1273
1294
|
placeholder: n,
|
|
1274
1295
|
disabled: r,
|
|
1275
|
-
rows:
|
|
1276
|
-
style:
|
|
1296
|
+
rows: o = 3,
|
|
1297
|
+
style: a
|
|
1277
1298
|
}) {
|
|
1278
1299
|
return /* @__PURE__ */ i(
|
|
1279
|
-
|
|
1300
|
+
Be,
|
|
1280
1301
|
{
|
|
1281
|
-
value:
|
|
1302
|
+
value: t,
|
|
1282
1303
|
placeholder: n,
|
|
1283
1304
|
disabled: r,
|
|
1284
1305
|
autosize: !0,
|
|
1285
|
-
minRows:
|
|
1286
|
-
onChange: (
|
|
1287
|
-
style:
|
|
1306
|
+
minRows: o,
|
|
1307
|
+
onChange: (l) => e == null ? void 0 : e(l.currentTarget.value),
|
|
1308
|
+
style: a
|
|
1288
1309
|
}
|
|
1289
1310
|
);
|
|
1290
1311
|
}
|
|
1291
|
-
function
|
|
1292
|
-
const n =
|
|
1312
|
+
function Jt({ color: t, style: e }) {
|
|
1313
|
+
const n = g();
|
|
1293
1314
|
return /* @__PURE__ */ i(
|
|
1294
1315
|
"span",
|
|
1295
1316
|
{
|
|
@@ -1298,25 +1319,25 @@ function qt({ color: e, style: t }) {
|
|
|
1298
1319
|
width: 14,
|
|
1299
1320
|
height: 14,
|
|
1300
1321
|
borderRadius: 4,
|
|
1301
|
-
background: n.category[
|
|
1322
|
+
background: n.category[t],
|
|
1302
1323
|
flex: "0 0 auto",
|
|
1303
|
-
...
|
|
1324
|
+
...e
|
|
1304
1325
|
}
|
|
1305
1326
|
}
|
|
1306
1327
|
);
|
|
1307
1328
|
}
|
|
1308
|
-
function
|
|
1309
|
-
segments:
|
|
1310
|
-
total:
|
|
1329
|
+
function Ut({
|
|
1330
|
+
segments: t,
|
|
1331
|
+
total: e,
|
|
1311
1332
|
topLeftLabel: n,
|
|
1312
1333
|
topRightLabel: r,
|
|
1313
|
-
style:
|
|
1334
|
+
style: o
|
|
1314
1335
|
}) {
|
|
1315
|
-
const
|
|
1316
|
-
(
|
|
1336
|
+
const a = g(), l = e > 0 ? e : 1, f = t.reduce(
|
|
1337
|
+
(c, u) => c + (Number.isFinite(u.value) && u.value > 0 ? u.value : 0),
|
|
1317
1338
|
0
|
|
1318
|
-
), d = Math.max(0,
|
|
1319
|
-
return /* @__PURE__ */ y("div", { style:
|
|
1339
|
+
), d = Math.max(0, l - f);
|
|
1340
|
+
return /* @__PURE__ */ y("div", { style: o, children: [
|
|
1320
1341
|
(n != null || r != null) && /* @__PURE__ */ y(
|
|
1321
1342
|
"div",
|
|
1322
1343
|
{
|
|
@@ -1324,7 +1345,7 @@ function Vt({
|
|
|
1324
1345
|
display: "flex",
|
|
1325
1346
|
justifyContent: "space-between",
|
|
1326
1347
|
fontSize: 12,
|
|
1327
|
-
color:
|
|
1348
|
+
color: a.text.secondary,
|
|
1328
1349
|
marginBottom: 6
|
|
1329
1350
|
},
|
|
1330
1351
|
children: [
|
|
@@ -1334,26 +1355,26 @@ function Vt({
|
|
|
1334
1355
|
}
|
|
1335
1356
|
),
|
|
1336
1357
|
/* @__PURE__ */ y("div", { style: { display: "flex", gap: 2, height: 8 }, children: [
|
|
1337
|
-
|
|
1338
|
-
const
|
|
1358
|
+
t.map((c, u) => {
|
|
1359
|
+
const m = Number.isFinite(c.value) && c.value > 0 ? c.value : 0, v = a.category[c.color ?? ne[u % ne.length]];
|
|
1339
1360
|
return /* @__PURE__ */ i(
|
|
1340
1361
|
"div",
|
|
1341
1362
|
{
|
|
1342
1363
|
style: {
|
|
1343
|
-
width: `${
|
|
1364
|
+
width: `${m / l * 100}%`,
|
|
1344
1365
|
background: v,
|
|
1345
1366
|
borderRadius: 3
|
|
1346
1367
|
}
|
|
1347
1368
|
},
|
|
1348
|
-
|
|
1369
|
+
c.id
|
|
1349
1370
|
);
|
|
1350
1371
|
}),
|
|
1351
1372
|
d > 0 && /* @__PURE__ */ i(
|
|
1352
1373
|
"div",
|
|
1353
1374
|
{
|
|
1354
1375
|
style: {
|
|
1355
|
-
width: `${d /
|
|
1356
|
-
background:
|
|
1376
|
+
width: `${d / l * 100}%`,
|
|
1377
|
+
background: a.fill.tertiary,
|
|
1357
1378
|
borderRadius: 3
|
|
1358
1379
|
}
|
|
1359
1380
|
}
|
|
@@ -1361,21 +1382,21 @@ function Vt({
|
|
|
1361
1382
|
] })
|
|
1362
1383
|
] });
|
|
1363
1384
|
}
|
|
1364
|
-
function
|
|
1365
|
-
title:
|
|
1366
|
-
leading:
|
|
1385
|
+
function Qt({
|
|
1386
|
+
title: t,
|
|
1387
|
+
leading: e,
|
|
1367
1388
|
count: n,
|
|
1368
1389
|
trailing: r,
|
|
1369
|
-
children:
|
|
1370
|
-
defaultOpen:
|
|
1371
|
-
style:
|
|
1390
|
+
children: o,
|
|
1391
|
+
defaultOpen: a = !1,
|
|
1392
|
+
style: l
|
|
1372
1393
|
}) {
|
|
1373
|
-
const f =
|
|
1374
|
-
return /* @__PURE__ */ y("div", { style:
|
|
1394
|
+
const f = g(), [d, c] = E(a);
|
|
1395
|
+
return /* @__PURE__ */ y("div", { style: l, children: [
|
|
1375
1396
|
/* @__PURE__ */ y(
|
|
1376
1397
|
"div",
|
|
1377
1398
|
{
|
|
1378
|
-
onClick: () =>
|
|
1399
|
+
onClick: () => c((u) => !u),
|
|
1379
1400
|
style: {
|
|
1380
1401
|
display: "flex",
|
|
1381
1402
|
alignItems: "center",
|
|
@@ -1387,71 +1408,71 @@ function Yt({
|
|
|
1387
1408
|
fontSize: 14
|
|
1388
1409
|
},
|
|
1389
1410
|
children: [
|
|
1390
|
-
/* @__PURE__ */ i(
|
|
1391
|
-
|
|
1392
|
-
/* @__PURE__ */ i("span", { style: { fontWeight: 500 }, children:
|
|
1411
|
+
/* @__PURE__ */ i(ye, { expanded: d }),
|
|
1412
|
+
e,
|
|
1413
|
+
/* @__PURE__ */ i("span", { style: { fontWeight: 500 }, children: t }),
|
|
1393
1414
|
n != null && /* @__PURE__ */ i("span", { style: { color: f.text.tertiary, fontSize: 12 }, children: n }),
|
|
1394
1415
|
/* @__PURE__ */ i("span", { style: { flex: 1 } }),
|
|
1395
1416
|
r != null && /* @__PURE__ */ i("span", { style: { color: f.text.tertiary }, children: r })
|
|
1396
1417
|
]
|
|
1397
1418
|
}
|
|
1398
1419
|
),
|
|
1399
|
-
d && /* @__PURE__ */ i("div", { style: { paddingLeft: 18, paddingBottom: 4 }, children:
|
|
1420
|
+
d && /* @__PURE__ */ i("div", { style: { paddingLeft: 18, paddingBottom: 4 }, children: o })
|
|
1400
1421
|
] });
|
|
1401
1422
|
}
|
|
1402
1423
|
export {
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1424
|
+
gt as BarChart,
|
|
1425
|
+
jt as Button,
|
|
1426
|
+
Gt as Callout,
|
|
1427
|
+
Rt as Card,
|
|
1428
|
+
zt as CardBody,
|
|
1429
|
+
_t as CardHeader,
|
|
1430
|
+
Xt as Checkbox,
|
|
1431
|
+
Bt as Code,
|
|
1432
|
+
Qt as CollapsibleSection,
|
|
1433
|
+
bt as DiffStats,
|
|
1434
|
+
St as DiffView,
|
|
1435
|
+
Nt as Divider,
|
|
1436
|
+
It as Grid,
|
|
1437
|
+
Tt as H1,
|
|
1438
|
+
Pt as H2,
|
|
1439
|
+
At as H3,
|
|
1440
|
+
Kt as IconButton,
|
|
1441
|
+
mt as LineChart,
|
|
1442
|
+
Dt as Link,
|
|
1443
|
+
xt as PieChart,
|
|
1444
|
+
Wt as Pill,
|
|
1445
|
+
Et as Row,
|
|
1446
|
+
Vt as Select,
|
|
1447
|
+
Ft as Spacer,
|
|
1448
|
+
$t as Stack,
|
|
1449
|
+
Ht as Stat,
|
|
1450
|
+
Jt as Swatch,
|
|
1451
|
+
Ot as Table,
|
|
1452
|
+
Mt as Text,
|
|
1453
|
+
Zt as TextArea,
|
|
1454
|
+
qt as TextInput,
|
|
1455
|
+
st as TodoList,
|
|
1456
|
+
kt as TodoListCard,
|
|
1457
|
+
Yt as Toggle,
|
|
1458
|
+
Ut as UsageBar,
|
|
1459
|
+
ln as canvasPaletteDark,
|
|
1460
|
+
cn as canvasPaletteGrokDark,
|
|
1461
|
+
dn as canvasPaletteGrokLight,
|
|
1462
|
+
un as canvasPaletteLight,
|
|
1463
|
+
fn as canvasTokens,
|
|
1464
|
+
hn as canvasTokensLight,
|
|
1465
|
+
pn as categoryPaletteDark,
|
|
1466
|
+
yn as categoryPaletteLight,
|
|
1467
|
+
mn as colorPalette,
|
|
1468
|
+
vt as computeDAGLayout,
|
|
1469
|
+
Lt as mergeStyle,
|
|
1470
|
+
ne as usageColorSequence,
|
|
1471
|
+
wt as useCanvasAction,
|
|
1472
|
+
Ct as useCanvasState,
|
|
1473
|
+
nn as useEffect,
|
|
1474
|
+
g as useHostTheme,
|
|
1475
|
+
rn as useMemo,
|
|
1476
|
+
on as useRef,
|
|
1477
|
+
an as useState
|
|
1457
1478
|
};
|