@nextlyhq/ui 0.0.2-alpha.8 → 0.0.2-alpha.80
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/README.md +130 -23
- package/dist/color.cjs +472 -0
- package/dist/color.cjs.map +1 -0
- package/dist/color.d.cts +254 -0
- package/dist/color.d.ts +254 -0
- package/dist/color.mjs +458 -0
- package/dist/color.mjs.map +1 -0
- package/dist/format.cjs +83 -0
- package/dist/format.cjs.map +1 -0
- package/dist/format.d.cts +84 -0
- package/dist/format.d.ts +84 -0
- package/dist/format.mjs +80 -0
- package/dist/format.mjs.map +1 -0
- package/dist/index.cjs +7613 -2200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2425 -955
- package/dist/index.d.ts +2429 -959
- package/dist/index.mjs +7488 -2130
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +2 -0
- package/dist/styles.scoped.css +2 -0
- package/dist/tailwind-preset.cjs +191 -0
- package/dist/tailwind-preset.cjs.map +1 -0
- package/dist/tailwind-preset.d.cts +142 -0
- package/dist/tailwind-preset.d.ts +142 -0
- package/dist/tailwind-preset.mjs +186 -0
- package/dist/tailwind-preset.mjs.map +1 -0
- package/dist/theme.css +1425 -0
- package/dist/utils.cjs +24 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +17 -0
- package/dist/utils.d.ts +17 -0
- package/dist/utils.mjs +23 -0
- package/dist/utils.mjs.map +1 -0
- package/docs/plugin-ui-authoring.md +230 -0
- package/package.json +97 -27
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one number formatter for dashboard cards.
|
|
3
|
+
*
|
|
4
|
+
* Every figure a card shows -- a count, a chart value, a tooltip, a table cell, a text
|
|
5
|
+
* alternative -- goes through here, so the same number reads the same everywhere it appears.
|
|
6
|
+
* Two figures for one value that disagree ("1.2k" in a chart, "1,248" in its table, "1248" in
|
|
7
|
+
* its description) are what this exists to make impossible.
|
|
8
|
+
*
|
|
9
|
+
* It is pure arithmetic on numbers with `Intl.NumberFormat`: no React, no DOM, so a server can
|
|
10
|
+
* format the same way the admin does.
|
|
11
|
+
*
|
|
12
|
+
* @module lib/format/number
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @experimental The size a card is drawn at, from its own width. Compact numbers appear only in the small
|
|
16
|
+
* tier, where a full grouped value would not fit; everywhere else the exact value fits and is
|
|
17
|
+
* shown.
|
|
18
|
+
*/
|
|
19
|
+
type SizeTier = "small" | "medium" | "large";
|
|
20
|
+
/** @experimental How a count is formatted: its locale, its card's tier, and whether it is a floor. */
|
|
21
|
+
interface FormatCountOptions {
|
|
22
|
+
/** The admin's locale. Defaults to `en-US`, the admin's own default. */
|
|
23
|
+
locale?: string;
|
|
24
|
+
/** The tier the figure is drawn in. Only `small` compacts. */
|
|
25
|
+
tier?: SizeTier;
|
|
26
|
+
/**
|
|
27
|
+
* The value is a lower bound: a source that stops counting at a limit knows only "at
|
|
28
|
+
* least this many". Shown as "N+" and named "N or more".
|
|
29
|
+
*/
|
|
30
|
+
floor?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/** @experimental What a figure looks like, and what assistive technology hears for it. */
|
|
33
|
+
interface FormattedNumber {
|
|
34
|
+
/** Drawn on screen: "1,248", "1.2k", "100+". */
|
|
35
|
+
text: string;
|
|
36
|
+
/**
|
|
37
|
+
* The accessible name: always the full grouped value, so "1.2k" is heard as "1,248"; a
|
|
38
|
+
* floor is heard as "100 or more", never as a bare "100".
|
|
39
|
+
*/
|
|
40
|
+
label: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @experimental Format a count, total or chart value.
|
|
44
|
+
*
|
|
45
|
+
* Compact form ("1.2k", "3.4M") only in the small tier and only from 1,000; the thousands
|
|
46
|
+
* suffix is lowercased and the larger ones keep their capitals, so "M" (million) cannot be
|
|
47
|
+
* read as "m" (metres, or milli). The accessible name is always the full grouped value.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* formatCount(1248, { tier: "small" }) // { text: "1.2k", label: "1,248" }
|
|
51
|
+
* formatCount(1248, { tier: "medium" }) // { text: "1,248", label: "1,248" }
|
|
52
|
+
* formatCount(100, { floor: true }) // { text: "100+", label: "100 or more" }
|
|
53
|
+
*/
|
|
54
|
+
export declare function formatCount(value: number, options?: FormatCountOptions): FormattedNumber;
|
|
55
|
+
/** @experimental Which way a change goes, for styling; never the only signal (the arrow and sign are). */
|
|
56
|
+
type ChangeDirection = "up" | "down" | "none";
|
|
57
|
+
/** @experimental A formatted change, with its direction. */
|
|
58
|
+
interface FormattedChange extends FormattedNumber {
|
|
59
|
+
direction: ChangeDirection;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @experimental Format a change against an earlier period.
|
|
63
|
+
*
|
|
64
|
+
* The direction is carried by an arrow AND a sign, so it reads without colour (WCAG 1.4.1):
|
|
65
|
+
* "↑ +18", "↓ −18", "→ ±0". The accessible name says it in words: "up 18", "down 18",
|
|
66
|
+
* "no change". The minus is U+2212, which screen readers and typography both treat as a minus
|
|
67
|
+
* rather than a hyphen.
|
|
68
|
+
*/
|
|
69
|
+
export declare function formatChange(delta: number, options?: Omit<FormatCountOptions, "floor">): FormattedChange;
|
|
70
|
+
/**
|
|
71
|
+
* The five shared chart colours, as the tokens a chart's marks are drawn in.
|
|
72
|
+
*
|
|
73
|
+
* A token reference rather than a colour, so a mark follows the theme in light
|
|
74
|
+
* and dark and a chart never sets a colour of its own. Server-safe, so a chart a
|
|
75
|
+
* server renders names its colours exactly as the admin's do.
|
|
76
|
+
*
|
|
77
|
+
* @module lib/color/chart
|
|
78
|
+
*/
|
|
79
|
+
/** One of the five shared chart colours, `--nx-chart-1` to `--nx-chart-5`. */
|
|
80
|
+
type ChartSlot = 1 | 2 | 3 | 4 | 5;
|
|
81
|
+
/** The token a slot is drawn in. */
|
|
82
|
+
export declare function chartColour(slot: ChartSlot): string;
|
|
83
|
+
export type { ChangeDirection, ChartSlot, FormatCountOptions, FormattedChange, FormattedNumber, SizeTier };
|
|
84
|
+
//# sourceMappingURL=format.d.cts.map
|
package/dist/format.d.ts
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one number formatter for dashboard cards.
|
|
3
|
+
*
|
|
4
|
+
* Every figure a card shows -- a count, a chart value, a tooltip, a table cell, a text
|
|
5
|
+
* alternative -- goes through here, so the same number reads the same everywhere it appears.
|
|
6
|
+
* Two figures for one value that disagree ("1.2k" in a chart, "1,248" in its table, "1248" in
|
|
7
|
+
* its description) are what this exists to make impossible.
|
|
8
|
+
*
|
|
9
|
+
* It is pure arithmetic on numbers with `Intl.NumberFormat`: no React, no DOM, so a server can
|
|
10
|
+
* format the same way the admin does.
|
|
11
|
+
*
|
|
12
|
+
* @module lib/format/number
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @experimental The size a card is drawn at, from its own width. Compact numbers appear only in the small
|
|
16
|
+
* tier, where a full grouped value would not fit; everywhere else the exact value fits and is
|
|
17
|
+
* shown.
|
|
18
|
+
*/
|
|
19
|
+
type SizeTier = "small" | "medium" | "large";
|
|
20
|
+
/** @experimental How a count is formatted: its locale, its card's tier, and whether it is a floor. */
|
|
21
|
+
interface FormatCountOptions {
|
|
22
|
+
/** The admin's locale. Defaults to `en-US`, the admin's own default. */
|
|
23
|
+
locale?: string;
|
|
24
|
+
/** The tier the figure is drawn in. Only `small` compacts. */
|
|
25
|
+
tier?: SizeTier;
|
|
26
|
+
/**
|
|
27
|
+
* The value is a lower bound: a source that stops counting at a limit knows only "at
|
|
28
|
+
* least this many". Shown as "N+" and named "N or more".
|
|
29
|
+
*/
|
|
30
|
+
floor?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/** @experimental What a figure looks like, and what assistive technology hears for it. */
|
|
33
|
+
interface FormattedNumber {
|
|
34
|
+
/** Drawn on screen: "1,248", "1.2k", "100+". */
|
|
35
|
+
text: string;
|
|
36
|
+
/**
|
|
37
|
+
* The accessible name: always the full grouped value, so "1.2k" is heard as "1,248"; a
|
|
38
|
+
* floor is heard as "100 or more", never as a bare "100".
|
|
39
|
+
*/
|
|
40
|
+
label: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @experimental Format a count, total or chart value.
|
|
44
|
+
*
|
|
45
|
+
* Compact form ("1.2k", "3.4M") only in the small tier and only from 1,000; the thousands
|
|
46
|
+
* suffix is lowercased and the larger ones keep their capitals, so "M" (million) cannot be
|
|
47
|
+
* read as "m" (metres, or milli). The accessible name is always the full grouped value.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* formatCount(1248, { tier: "small" }) // { text: "1.2k", label: "1,248" }
|
|
51
|
+
* formatCount(1248, { tier: "medium" }) // { text: "1,248", label: "1,248" }
|
|
52
|
+
* formatCount(100, { floor: true }) // { text: "100+", label: "100 or more" }
|
|
53
|
+
*/
|
|
54
|
+
export declare function formatCount(value: number, options?: FormatCountOptions): FormattedNumber;
|
|
55
|
+
/** @experimental Which way a change goes, for styling; never the only signal (the arrow and sign are). */
|
|
56
|
+
type ChangeDirection = "up" | "down" | "none";
|
|
57
|
+
/** @experimental A formatted change, with its direction. */
|
|
58
|
+
interface FormattedChange extends FormattedNumber {
|
|
59
|
+
direction: ChangeDirection;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @experimental Format a change against an earlier period.
|
|
63
|
+
*
|
|
64
|
+
* The direction is carried by an arrow AND a sign, so it reads without colour (WCAG 1.4.1):
|
|
65
|
+
* "↑ +18", "↓ −18", "→ ±0". The accessible name says it in words: "up 18", "down 18",
|
|
66
|
+
* "no change". The minus is U+2212, which screen readers and typography both treat as a minus
|
|
67
|
+
* rather than a hyphen.
|
|
68
|
+
*/
|
|
69
|
+
export declare function formatChange(delta: number, options?: Omit<FormatCountOptions, "floor">): FormattedChange;
|
|
70
|
+
/**
|
|
71
|
+
* The five shared chart colours, as the tokens a chart's marks are drawn in.
|
|
72
|
+
*
|
|
73
|
+
* A token reference rather than a colour, so a mark follows the theme in light
|
|
74
|
+
* and dark and a chart never sets a colour of its own. Server-safe, so a chart a
|
|
75
|
+
* server renders names its colours exactly as the admin's do.
|
|
76
|
+
*
|
|
77
|
+
* @module lib/color/chart
|
|
78
|
+
*/
|
|
79
|
+
/** One of the five shared chart colours, `--nx-chart-1` to `--nx-chart-5`. */
|
|
80
|
+
type ChartSlot = 1 | 2 | 3 | 4 | 5;
|
|
81
|
+
/** The token a slot is drawn in. */
|
|
82
|
+
export declare function chartColour(slot: ChartSlot): string;
|
|
83
|
+
export type { ChangeDirection, ChartSlot, FormatCountOptions, FormattedChange, FormattedNumber, SizeTier };
|
|
84
|
+
//# sourceMappingURL=format.d.ts.map
|
package/dist/format.mjs
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// src/lib/format/number.ts
|
|
2
|
+
const COMPACT_FROM = 1e3;
|
|
3
|
+
const groupedCache = /* @__PURE__ */ new Map();
|
|
4
|
+
const compactCache = /* @__PURE__ */ new Map();
|
|
5
|
+
function grouped(locale) {
|
|
6
|
+
let f = groupedCache.get(locale);
|
|
7
|
+
if (!f) {
|
|
8
|
+
f = new Intl.NumberFormat(locale);
|
|
9
|
+
groupedCache.set(locale, f);
|
|
10
|
+
}
|
|
11
|
+
return f;
|
|
12
|
+
}
|
|
13
|
+
function compact(locale) {
|
|
14
|
+
let f = compactCache.get(locale);
|
|
15
|
+
if (!f) {
|
|
16
|
+
f = new Intl.NumberFormat(locale, {
|
|
17
|
+
notation: "compact",
|
|
18
|
+
maximumFractionDigits: 1
|
|
19
|
+
});
|
|
20
|
+
compactCache.set(locale, f);
|
|
21
|
+
}
|
|
22
|
+
return f;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @experimental Format a count, total or chart value.
|
|
26
|
+
*
|
|
27
|
+
* Compact form ("1.2k", "3.4M") only in the small tier and only from 1,000; the thousands
|
|
28
|
+
* suffix is lowercased and the larger ones keep their capitals, so "M" (million) cannot be
|
|
29
|
+
* read as "m" (metres, or milli). The accessible name is always the full grouped value.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* formatCount(1248, { tier: "small" }) // { text: "1.2k", label: "1,248" }
|
|
33
|
+
* formatCount(1248, { tier: "medium" }) // { text: "1,248", label: "1,248" }
|
|
34
|
+
* formatCount(100, { floor: true }) // { text: "100+", label: "100 or more" }
|
|
35
|
+
*/
|
|
36
|
+
function formatCount(value, options = {}) {
|
|
37
|
+
const locale = options.locale ?? "en-US";
|
|
38
|
+
const full = grouped(locale).format(value);
|
|
39
|
+
const shown = options.tier === "small" && Math.abs(value) >= COMPACT_FROM ? compact(locale).format(value).replace(/K$/, "k") : full;
|
|
40
|
+
return options.floor ? {
|
|
41
|
+
text: `${shown}+`,
|
|
42
|
+
label: `${full} or more`
|
|
43
|
+
} : {
|
|
44
|
+
text: shown,
|
|
45
|
+
label: full
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @experimental Format a change against an earlier period.
|
|
50
|
+
*
|
|
51
|
+
* The direction is carried by an arrow AND a sign, so it reads without colour (WCAG 1.4.1):
|
|
52
|
+
* "↑ +18", "↓ −18", "→ ±0". The accessible name says it in words: "up 18", "down 18",
|
|
53
|
+
* "no change". The minus is U+2212, which screen readers and typography both treat as a minus
|
|
54
|
+
* rather than a hyphen.
|
|
55
|
+
*/
|
|
56
|
+
function formatChange(delta, options = {}) {
|
|
57
|
+
const magnitude = formatCount(Math.abs(delta), options);
|
|
58
|
+
if (delta === 0) return {
|
|
59
|
+
text: "→ ±0",
|
|
60
|
+
label: "no change",
|
|
61
|
+
direction: "none"
|
|
62
|
+
};
|
|
63
|
+
return delta > 0 ? {
|
|
64
|
+
text: `↑ +${magnitude.text}`,
|
|
65
|
+
label: `up ${magnitude.label}`,
|
|
66
|
+
direction: "up"
|
|
67
|
+
} : {
|
|
68
|
+
text: `↓ −${magnitude.text}`,
|
|
69
|
+
label: `down ${magnitude.label}`,
|
|
70
|
+
direction: "down"
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
// src/lib/color/chart.ts
|
|
74
|
+
/** The token a slot is drawn in. */
|
|
75
|
+
function chartColour(slot) {
|
|
76
|
+
return `var(--nx-chart-${slot})`;
|
|
77
|
+
}
|
|
78
|
+
export { chartColour, formatChange, formatCount };
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=format.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.mjs","names":[],"sources":["../src/lib/format/number.ts","../src/lib/color/chart.ts"],"sourcesContent":["/**\n * The one number formatter for dashboard cards.\n *\n * Every figure a card shows -- a count, a chart value, a tooltip, a table cell, a text\n * alternative -- goes through here, so the same number reads the same everywhere it appears.\n * Two figures for one value that disagree (\"1.2k\" in a chart, \"1,248\" in its table, \"1248\" in\n * its description) are what this exists to make impossible.\n *\n * It is pure arithmetic on numbers with `Intl.NumberFormat`: no React, no DOM, so a server can\n * format the same way the admin does.\n *\n * @module lib/format/number\n */\n\n/**\n * @experimental The size a card is drawn at, from its own width. Compact numbers appear only in the small\n * tier, where a full grouped value would not fit; everywhere else the exact value fits and is\n * shown.\n */\nexport type SizeTier = \"small\" | \"medium\" | \"large\";\n\n/** @experimental How a count is formatted: its locale, its card's tier, and whether it is a floor. */\nexport interface FormatCountOptions {\n /** The admin's locale. Defaults to `en-US`, the admin's own default. */\n locale?: string;\n /** The tier the figure is drawn in. Only `small` compacts. */\n tier?: SizeTier;\n /**\n * The value is a lower bound: a source that stops counting at a limit knows only \"at\n * least this many\". Shown as \"N+\" and named \"N or more\".\n */\n floor?: boolean;\n}\n\n/** @experimental What a figure looks like, and what assistive technology hears for it. */\nexport interface FormattedNumber {\n /** Drawn on screen: \"1,248\", \"1.2k\", \"100+\". */\n text: string;\n /**\n * The accessible name: always the full grouped value, so \"1.2k\" is heard as \"1,248\"; a\n * floor is heard as \"100 or more\", never as a bare \"100\".\n */\n label: string;\n}\n\nconst COMPACT_FROM = 1000;\n\n// Intl formatters are costly to build and a dashboard formats hundreds of figures, so one of\n// each kind is kept per locale.\nconst groupedCache = new Map<string, Intl.NumberFormat>();\nconst compactCache = new Map<string, Intl.NumberFormat>();\n\nfunction grouped(locale: string): Intl.NumberFormat {\n let f = groupedCache.get(locale);\n if (!f) {\n f = new Intl.NumberFormat(locale);\n groupedCache.set(locale, f);\n }\n return f;\n}\n\nfunction compact(locale: string): Intl.NumberFormat {\n let f = compactCache.get(locale);\n if (!f) {\n f = new Intl.NumberFormat(locale, {\n notation: \"compact\",\n maximumFractionDigits: 1,\n });\n compactCache.set(locale, f);\n }\n return f;\n}\n\n/**\n * @experimental Format a count, total or chart value.\n *\n * Compact form (\"1.2k\", \"3.4M\") only in the small tier and only from 1,000; the thousands\n * suffix is lowercased and the larger ones keep their capitals, so \"M\" (million) cannot be\n * read as \"m\" (metres, or milli). The accessible name is always the full grouped value.\n *\n * @example\n * formatCount(1248, { tier: \"small\" }) // { text: \"1.2k\", label: \"1,248\" }\n * formatCount(1248, { tier: \"medium\" }) // { text: \"1,248\", label: \"1,248\" }\n * formatCount(100, { floor: true }) // { text: \"100+\", label: \"100 or more\" }\n */\nexport function formatCount(\n value: number,\n options: FormatCountOptions = {}\n): FormattedNumber {\n const locale = options.locale ?? \"en-US\";\n const full = grouped(locale).format(value);\n const shown =\n options.tier === \"small\" && Math.abs(value) >= COMPACT_FROM\n ? compact(locale)\n .format(value)\n // \"1.2K\" -> \"1.2k\"; \"3.4M\" and \"1.2B\" keep their capitals.\n .replace(/K$/, \"k\")\n : full;\n return options.floor\n ? { text: `${shown}+`, label: `${full} or more` }\n : { text: shown, label: full };\n}\n\n/** @experimental Which way a change goes, for styling; never the only signal (the arrow and sign are). */\nexport type ChangeDirection = \"up\" | \"down\" | \"none\";\n\n/** @experimental A formatted change, with its direction. */\nexport interface FormattedChange extends FormattedNumber {\n direction: ChangeDirection;\n}\n\n/**\n * @experimental Format a change against an earlier period.\n *\n * The direction is carried by an arrow AND a sign, so it reads without colour (WCAG 1.4.1):\n * \"↑ +18\", \"↓ −18\", \"→ ±0\". The accessible name says it in words: \"up 18\", \"down 18\",\n * \"no change\". The minus is U+2212, which screen readers and typography both treat as a minus\n * rather than a hyphen.\n */\nexport function formatChange(\n delta: number,\n options: Omit<FormatCountOptions, \"floor\"> = {}\n): FormattedChange {\n const magnitude = formatCount(Math.abs(delta), options);\n if (delta === 0) {\n return { text: \"→ ±0\", label: \"no change\", direction: \"none\" };\n }\n return delta > 0\n ? {\n text: `↑ +${magnitude.text}`,\n label: `up ${magnitude.label}`,\n direction: \"up\",\n }\n : {\n text: `↓ −${magnitude.text}`,\n label: `down ${magnitude.label}`,\n direction: \"down\",\n };\n}\n","/**\n * The five shared chart colours, as the tokens a chart's marks are drawn in.\n *\n * A token reference rather than a colour, so a mark follows the theme in light\n * and dark and a chart never sets a colour of its own. Server-safe, so a chart a\n * server renders names its colours exactly as the admin's do.\n *\n * @module lib/color/chart\n */\n\n/** One of the five shared chart colours, `--nx-chart-1` to `--nx-chart-5`. */\nexport type ChartSlot = 1 | 2 | 3 | 4 | 5;\n\n/** The token a slot is drawn in. */\nexport function chartColour(slot: ChartSlot): string {\n return `var(--nx-chart-${slot})`;\n}\n"],"mappings":";AA6CA,MAAM,eAAe;AAIrB,MAAM,+BAAe,IAAI,IAA+B;AACxD,MAAM,+BAAe,IAAI,IAA+B;AAExD,SAAS,QAAQ,QAAmC;CAClD,IAAI,IAAI,aAAa,IAAI,MAAM;CAC/B,IAAI,CAAC,GAAG;EACN,IAAI,IAAI,KAAK,aAAa,MAAM;EAChC,aAAa,IAAI,QAAQ,CAAC;CAC5B;CACA,OAAO;AACT;AAEA,SAAS,QAAQ,QAAmC;CAClD,IAAI,IAAI,aAAa,IAAI,MAAM;CAC/B,IAAI,CAAC,GAAG;EACN,IAAI,IAAI,KAAK,aAAa,QAAQ;GAChC,UAAU;GACV,uBAAuB;EACzB,CAAC;EACD,aAAa,IAAI,QAAQ,CAAC;CAC5B;CACA,OAAO;AACT;;;;;;;;;;;;;AAcA,SAAgB,YACd,OACA,UAA8B,CAAC,GACd;CACjB,MAAM,SAAS,QAAQ,UAAU;CACjC,MAAM,OAAO,QAAQ,MAAM,CAAC,CAAC,OAAO,KAAK;CACzC,MAAM,QACJ,QAAQ,SAAS,WAAW,KAAK,IAAI,KAAK,KAAK,eAC3C,QAAQ,MAAM,CAAC,CACZ,OAAO,KAAK,CAAC,CAEb,QAAQ,MAAM,GAAG,IACpB;CACN,OAAO,QAAQ,QACX;EAAE,MAAM,GAAG,MAAM;EAAI,OAAO,GAAG,KAAK;CAAU,IAC9C;EAAE,MAAM;EAAO,OAAO;CAAK;AACjC;;;;;;;;;AAkBA,SAAgB,aACd,OACA,UAA6C,CAAC,GAC7B;CACjB,MAAM,YAAY,YAAY,KAAK,IAAI,KAAK,GAAG,OAAO;CACtD,IAAI,UAAU,GACZ,OAAO;EAAE,MAAM;EAAQ,OAAO;EAAa,WAAW;CAAO;CAE/D,OAAO,QAAQ,IACX;EACE,MAAM,MAAM,UAAU;EACtB,OAAO,MAAM,UAAU;EACvB,WAAW;CACb,IACA;EACE,MAAM,MAAM,UAAU;EACtB,OAAO,QAAQ,UAAU;EACzB,WAAW;CACb;AACN;;;AC5HA,SAAgB,YAAY,MAAyB;CACnD,OAAO,kBAAkB,KAAK;AAChC"}
|