@zaly/tui 0.0.7 → 0.0.8
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/ansi.mjs +1 -2
- package/dist/{builder-BgEcjj8Z.mjs → builder-IkMf7I8z.mjs} +2 -2
- package/dist/{builder-BgEcjj8Z.mjs.map → builder-IkMf7I8z.mjs.map} +1 -1
- package/dist/{client-xnCHMO2_.mjs → client-C2GXKfJ1.mjs} +2 -2
- package/dist/{client-xnCHMO2_.mjs.map → client-C2GXKfJ1.mjs.map} +1 -1
- package/dist/client-bzdHIDL2.mjs +1 -0
- package/dist/clipboard.mjs +1 -2
- package/dist/{ctx-ChO3St_a.mjs → ctx-CXjkWABc.mjs} +3 -3
- package/dist/{ctx-ChO3St_a.mjs.map → ctx-CXjkWABc.mjs.map} +1 -1
- package/dist/ctx-Dh6slUVy.mjs +1 -0
- package/dist/image.mjs +1 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/{inspect-xdSq5Hjq.mjs → inspect-xR9KKdk9.mjs} +2 -2
- package/dist/{inspect-xdSq5Hjq.mjs.map → inspect-xR9KKdk9.mjs.map} +1 -1
- package/dist/{log-DrYLRdMW.mjs → log-CnewrxAc.mjs} +2 -2
- package/dist/{log-DrYLRdMW.mjs.map → log-CnewrxAc.mjs.map} +1 -1
- package/dist/{logger-ClSgGf-a.mjs → logger-CWEGIWaG.mjs} +3 -3
- package/dist/{logger-ClSgGf-a.mjs.map → logger-CWEGIWaG.mjs.map} +1 -1
- package/dist/{markdown-lRhc_4Cd.mjs → markdown-C6UVXJoj.mjs} +5 -5
- package/dist/{markdown-lRhc_4Cd.mjs.map → markdown-C6UVXJoj.mjs.map} +1 -1
- package/dist/markdown.mjs +1 -2
- package/dist/queries-Cvalgu6P.d.mts.map +1 -1
- package/dist/reactive-f7NpAi69.mjs.map +1 -1
- package/dist/{registry-CEpHcTa2.mjs → registry-JjYaWUZz.mjs} +2 -2
- package/dist/{registry-CEpHcTa2.mjs.map → registry-JjYaWUZz.mjs.map} +1 -1
- package/dist/{render-DxIHVH9Y.mjs → render-DtRw_LwV.mjs} +2 -2
- package/dist/{render-DxIHVH9Y.mjs.map → render-DtRw_LwV.mjs.map} +1 -1
- package/dist/{renderer-Bz3tc2IT.mjs → renderer-BOqnFB5U.mjs} +6 -6
- package/dist/{renderer-Bz3tc2IT.mjs.map → renderer-BOqnFB5U.mjs.map} +1 -1
- package/dist/renderer-BSMOuiLM.mjs +1 -0
- package/dist/services/logger.mjs +1 -2
- package/dist/services/notifier.mjs +1 -1
- package/dist/services/picker.d.mts.map +1 -1
- package/dist/services/picker.mjs +2 -2
- package/dist/services/prompt.d.mts.map +1 -1
- package/dist/services/prompt.mjs +2 -2
- package/dist/{shiki-CcxiFWEF.mjs → shiki--ASSYv4_.mjs} +2 -2
- package/dist/{shiki-CcxiFWEF.mjs.map → shiki--ASSYv4_.mjs.map} +1 -1
- package/dist/style.mjs +2 -2
- package/dist/text.mjs +1 -2
- package/dist/{theme.config-DoW6LIcl.mjs → theme.config-DHgHWQ9t.mjs} +27 -4
- package/dist/theme.config-DHgHWQ9t.mjs.map +1 -0
- package/dist/themes.mjs +1 -2
- package/dist/widgets/box.mjs +1 -2
- package/dist/widgets/code.d.mts.map +1 -1
- package/dist/widgets/code.mjs +2 -2
- package/dist/widgets/completions/actions.mjs +1 -2
- package/dist/widgets/completions/files.mjs +1 -2
- package/dist/widgets/completions/github.mjs +1 -2
- package/dist/widgets/diff.mjs +2 -2
- package/dist/widgets/divider.mjs +1 -2
- package/dist/widgets/image.mjs +1 -1
- package/dist/widgets/input.mjs +1 -2
- package/dist/widgets/log.mjs +1 -2
- package/dist/widgets/markdown.d.mts.map +1 -1
- package/dist/widgets/markdown.mjs +1 -2
- package/dist/widgets/overlay.mjs +1 -2
- package/dist/widgets/picker.mjs +1 -2
- package/dist/widgets/select.mjs +1 -2
- package/dist/widgets/show.mjs +1 -2
- package/dist/widgets/text.mjs +1 -2
- package/dist/widgets/tree.mjs +1 -2
- package/dist/widgets/widget.mjs +1 -2
- package/dist/worker-C01jK2Ip.mjs +1 -0
- package/package.json +11 -11
- package/dist/client-BltmwI6G.mjs +0 -2
- package/dist/ctx-DZHBHjsB.mjs +0 -2
- package/dist/renderer-CuF4RYBZ.mjs +0 -2
- package/dist/theme.config-DoW6LIcl.mjs.map +0 -1
- package/dist/worker-BvRm4OsW.mjs +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as MarkdownRenderer } from "./renderer-DesbRwjQ.mjs";
|
package/dist/services/logger.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { TuiReporter };
|
|
1
|
+
export { t as TuiReporter } from "../logger-CWEGIWaG.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picker.d.mts","names":[],"sources":["../../src/services/picker.ts"],"mappings":";;;;;;YAkBY,aAAa;EAAe;;YAE5B,SAAS,UAAU,SAAS;EACtC,QAAQ;EACR;IAAoB;IAAkB;;EACtC,MAAM,IAAI,OAAO;EACjB,UAAU;EACV;EACA;EACA,qBAAqB;KAClB,KAAK,kBAAkB,eAAe,KAAK,gBAAgB;qBAEnD;;EAMX,YAAY,IAAI,gBAAgB,OAAO;MAKnC,
|
|
1
|
+
{"version":3,"file":"picker.d.mts","names":["_$___core_reactive_ts0.Accessor"],"sources":["../../src/services/picker.ts"],"mappings":";;;;;;YAkBY,aAAa;EAAe;;YAE5B,SAAS,UAAU,SAAS;EACtC,QAAQ;EACR;IAAoB;IAAkB;;EACtC,MAAM,IAAI,OAAO;EACjB,UAAU;EACV;EACA;EACA,qBAAqB;KAClB,KAAK,kBAAkB,eAAe,KAAK,gBAAgB;qBAEnD;;EAMX,YAAY,IAAI,gBAAgB,OAAO;MAKnC,UALmCA;EAyFvC,MAAM;IAAQ;;MAQV,UAAM;EAIV;EAIA;EAIM,KAAK,UAAU,SAAS,QAAQ,MAAM,SAAS,KAAK,QAAQ"}
|
package/dist/services/picker.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as createRef, y as signal } from "../reactive-f7NpAi69.mjs";
|
|
2
|
-
import { r as isMarkdown } from "../inspect-
|
|
2
|
+
import { r as isMarkdown } from "../inspect-xR9KKdk9.mjs";
|
|
3
3
|
import { n as text } from "../text-BLz1tRoC.mjs";
|
|
4
|
-
import { n as markdown } from "../markdown-
|
|
4
|
+
import { n as markdown } from "../markdown-C6UVXJoj.mjs";
|
|
5
5
|
import { t as overlay } from "../overlay-9WXYiGgW.mjs";
|
|
6
6
|
import { t as divider } from "../divider-l0-JPEIm.mjs";
|
|
7
7
|
import { t as picker } from "../picker-BqHINl_a.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.mts","names":[],"sources":["../../src/services/prompt.ts"],"mappings":";;;;;YAcY,aAAa;EAAe;;YAE5B;EACV;EACA,UAAU;EACV;EACA;;YAGU;EACV;EACA;IAAU;;;qBAGC;;EAMX,YAAY,IAAI,gBAAgB,OAAO;MAKnC,
|
|
1
|
+
{"version":3,"file":"prompt.d.mts","names":["_$___core_reactive_ts0.Accessor"],"sources":["../../src/services/prompt.ts"],"mappings":";;;;;YAcY,aAAa;EAAe;;YAE5B;EACV;EACA,UAAU;EACV;EACA;;YAGU;EACV;EACA;IAAU;;;qBAGC;;EAMX,YAAY,IAAI,gBAAgB,OAAO;MAKnC,UALmCA;EA+CvC;EAOM,KAAK,cAAc,aAAa"}
|
package/dist/services/prompt.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { y as signal } from "../reactive-f7NpAi69.mjs";
|
|
2
|
-
import { r as isMarkdown } from "../inspect-
|
|
2
|
+
import { r as isMarkdown } from "../inspect-xR9KKdk9.mjs";
|
|
3
3
|
import { n as text } from "../text-BLz1tRoC.mjs";
|
|
4
|
-
import { n as markdown } from "../markdown-
|
|
4
|
+
import { n as markdown } from "../markdown-C6UVXJoj.mjs";
|
|
5
5
|
import { t as overlay } from "../overlay-9WXYiGgW.mjs";
|
|
6
6
|
import { t as divider } from "../divider-l0-JPEIm.mjs";
|
|
7
7
|
//#region src/services/prompt.ts
|
|
@@ -3,10 +3,10 @@ import { hasColors } from "@zaly/shared/env";
|
|
|
3
3
|
//#region src/shiki/shiki.ts
|
|
4
4
|
async function codeToAnsi(code, lang, opts) {
|
|
5
5
|
if (!hasColors || !lang || !isShikiLang(lang)) return code;
|
|
6
|
-
const { shikiWorker } = await import("./client-
|
|
6
|
+
const { shikiWorker } = await import("./client-bzdHIDL2.mjs");
|
|
7
7
|
return (await shikiWorker.highlight(code, lang, opts)).value;
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
10
|
export { codeToAnsi as t };
|
|
11
11
|
|
|
12
|
-
//# sourceMappingURL=shiki
|
|
12
|
+
//# sourceMappingURL=shiki--ASSYv4_.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shiki
|
|
1
|
+
{"version":3,"file":"shiki--ASSYv4_.mjs","names":[],"sources":["../src/shiki/shiki.ts"],"sourcesContent":["import type { ShikiOpts } from \"./types.ts\"\n\nimport { hasColors } from \"@zaly/shared/env\"\nimport { isShikiLang } from \"../schemas/gen/shiki.ts\"\n\nexport async function codeToAnsi(code: string, lang: string, opts?: ShikiOpts): Promise<string> {\n if (!hasColors || !lang || !isShikiLang(lang)) return code\n const { shikiWorker } = await import(\"../shiki/client.ts\")\n const ret = await shikiWorker.highlight(code, lang, opts)\n return ret.value\n}\n"],"mappings":";;;AAKA,eAAsB,WAAW,MAAc,MAAc,MAAmC;CAC9F,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,YAAY,IAAI,GAAG,OAAO;CACtD,MAAM,EAAE,gBAAgB,MAAM,OAAO;CAErC,QAAO,MADW,YAAY,UAAU,MAAM,MAAM,IAAI,EAAA,CAC7C;AACb"}
|
package/dist/style.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { d as toHex, l as isHexColor, u as parseHex } from "./ansi-Clq0ozyA.mjs";
|
|
2
|
-
import { t as styleBuilder } from "./builder-
|
|
3
|
-
import { n as inspectFormat, r as isMarkdown, t as inspect } from "./inspect-
|
|
2
|
+
import { t as styleBuilder } from "./builder-IkMf7I8z.mjs";
|
|
3
|
+
import { n as inspectFormat, r as isMarkdown, t as inspect } from "./inspect-xR9KKdk9.mjs";
|
|
4
4
|
export { inspect, inspectFormat, isHexColor, isMarkdown, parseHex, styleBuilder, toHex };
|
package/dist/text.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { calcLayout, capitalize, countLines, expandTabs, formatLines, formatText };
|
|
1
|
+
export { t as calcLayout, n as capitalize, r as countLines, i as expandTabs, a as formatLines, o as formatText } from "./text-CRZD9KTN.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/typia@
|
|
1
|
+
//#region ../../node_modules/.bun/typia@15.1.0+c0da6f6c08648afa/node_modules/typia/lib/TypeGuardError.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Error thrown when type assertion fails.
|
|
4
4
|
*
|
|
@@ -37,7 +37,19 @@ var TypeGuardError = class extends Error {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region ../../node_modules/.bun/typia@
|
|
40
|
+
//#region ../../node_modules/.bun/typia@15.1.0+c0da6f6c08648afa/node_modules/typia/lib/internal/_assertGuard.mjs
|
|
41
|
+
/**
|
|
42
|
+
* Report an assertion failure.
|
|
43
|
+
*
|
|
44
|
+
* When `exceptionable` is true it throws the error that `factory` makes, or a
|
|
45
|
+
* TypeGuardError when `factory` is not a function; otherwise it returns false
|
|
46
|
+
* so a union probe can try the next branch.
|
|
47
|
+
*
|
|
48
|
+
* @evidence contracts/common.md#principled-implementation When the call is exceptionable it throws an error built by the caller's factory if one is a function, and a TypeGuardError otherwise, and when it is not exceptionable it returns false so a union probe can try another branch without throwing. The factory is tested for callability because a pointwise call such as `rows.map(assertUser)` passes the element index in that position, which a bare truthiness test would call.
|
|
49
|
+
* @evidence contracts/common.md#clear-and-simple-design One function with a boolean guard and one factory branch.
|
|
50
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A non-callable argument falls back to the default error and is not retried or wrapped; the comment explains that a create-time factory overridden by the argument cannot be recovered here.
|
|
51
|
+
* @evidence contracts/common.md#meaningful-documentation The doc states the two outcomes and the factory rule; the inline comment records the pointwise hand-off failure.
|
|
52
|
+
*/
|
|
41
53
|
const _assertGuard = (exceptionable, props, factory) => {
|
|
42
54
|
if (exceptionable === true) {
|
|
43
55
|
if (typeof factory === "function") throw factory(props);
|
|
@@ -46,7 +58,18 @@ const _assertGuard = (exceptionable, props, factory) => {
|
|
|
46
58
|
return false;
|
|
47
59
|
};
|
|
48
60
|
//#endregion
|
|
49
|
-
//#region ../../node_modules/.bun/typia@
|
|
61
|
+
//#region ../../node_modules/.bun/typia@15.1.0+c0da6f6c08648afa/node_modules/typia/lib/internal/_accessExpressionAsString.mjs
|
|
62
|
+
/**
|
|
63
|
+
* Write a property access on a key as source text.
|
|
64
|
+
*
|
|
65
|
+
* A key that is a legal ASCII identifier and not a reserved word becomes
|
|
66
|
+
* `.key`, and any other key becomes `["key"]` with a JSON string literal.
|
|
67
|
+
*
|
|
68
|
+
* @evidence contracts/common.md#principled-implementation A key that is a legal ASCII identifier and not a reserved word is written as a dot access, and every other key as a bracket access with a JSON string literal, which is a valid JavaScript string literal for any key, so the emitted access expression is correct for every property name. The reserved list is conservative for dot access, which is legal after a dot, so it can only cause an extra bracket form; the strict-mode future reserved words are not in the list.
|
|
69
|
+
* @evidence contracts/common.md#clear-and-simple-design One function with two private helpers, the identifier test and the reserved set.
|
|
70
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The decision is purely lexical and no property name is special-cased.
|
|
71
|
+
* @evidence contracts/common.md#meaningful-documentation The doc states the dot and bracket forms and why bracket access is always safe.
|
|
72
|
+
*/
|
|
50
73
|
const _accessExpressionAsString = (str) => variable(str) ? `.${str}` : `[${JSON.stringify(str)}]`;
|
|
51
74
|
const variable = (str) => reserved(str) === false && /^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(str);
|
|
52
75
|
const reserved = (str) => RESERVED.has(str);
|
|
@@ -837,4 +860,4 @@ function validateTheme(input) {
|
|
|
837
860
|
//#endregion
|
|
838
861
|
export { validateTheme };
|
|
839
862
|
|
|
840
|
-
//# sourceMappingURL=theme.config-
|
|
863
|
+
//# sourceMappingURL=theme.config-DHgHWQ9t.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.config-DHgHWQ9t.mjs","names":["_accessExpressionAsString_1._accessExpressionAsString","_assertGuard_1._assertGuard"],"sources":["../../../node_modules/.bun/typia@15.1.0+c0da6f6c08648afa/node_modules/typia/lib/TypeGuardError.mjs","../../../node_modules/.bun/typia@15.1.0+c0da6f6c08648afa/node_modules/typia/lib/internal/_assertGuard.mjs","../../../node_modules/.bun/typia@15.1.0+c0da6f6c08648afa/node_modules/typia/lib/internal/_accessExpressionAsString.mjs","../src/schemas/gen/theme.config.ts"],"sourcesContent":["//#region src/TypeGuardError.ts\n/**\n* Error thrown when type assertion fails.\n*\n* Thrown by {@link assert}, {@link assertGuard}, and other assert-family\n* functions when input doesn't match expected type `T`. Contains detailed\n* information about the first assertion failure:\n*\n* - `method`: Which typia function threw (e.g., `\"typia.assert\"`)\n* - `path`: Property path where error occurred (e.g., `\"input.user.age\"`)\n* - `expected`: Expected type string (e.g., `\"number & ExclusiveMinimum<19>\"`)\n* - `value`: Actual value that failed validation\n*\n* @template T Expected type (for type safety)\n*/\nvar TypeGuardError = class extends Error {\n\t/**\n\t* Creates a new TypeGuardError instance.\n\t*\n\t* @param props Error properties\n\t*/\n\tconstructor(props) {\n\t\tsuper(props.message || `Error on ${props.method}(): invalid type${props.path ? ` on ${props.path}` : \"\"}, expect to be ${props.expected}`);\n\t\tconst proto = new.target.prototype;\n\t\tif (Object.setPrototypeOf) Object.setPrototypeOf(this, proto);\n\t\telse this.__proto__ = proto;\n\t\tthis.name = \"TypeGuardError\";\n\t\tthis.method = props.method;\n\t\tthis.path = props.path;\n\t\tthis.expected = props.expected;\n\t\tthis.value = props.value;\n\t\tif (props.description || props.value === void 0) this.description = props.description ?? [\n\t\t\t\"The value at this path is `undefined`.\",\n\t\t\t\"\",\n\t\t\t`Please fill the \\`${props.expected}\\` typed value next time.`\n\t\t].join(\"\\n\");\n\t}\n};\n//#endregion\nexport { TypeGuardError };\n\n//# sourceMappingURL=TypeGuardError.mjs.map","import { TypeGuardError } from \"../TypeGuardError.mjs\";\n//#region src/internal/_assertGuard.ts\n/**\n* Report an assertion failure.\n*\n* When `exceptionable` is true it throws the error that `factory` makes, or a\n* TypeGuardError when `factory` is not a function; otherwise it returns false\n* so a union probe can try the next branch.\n*\n* @evidence contracts/common.md#principled-implementation When the call is exceptionable it throws an error built by the caller's factory if one is a function, and a TypeGuardError otherwise, and when it is not exceptionable it returns false so a union probe can try another branch without throwing. The factory is tested for callability because a pointwise call such as `rows.map(assertUser)` passes the element index in that position, which a bare truthiness test would call.\n* @evidence contracts/common.md#clear-and-simple-design One function with a boolean guard and one factory branch.\n* @evidence contracts/common.md#prohibited-implementation-shortcuts A non-callable argument falls back to the default error and is not retried or wrapped; the comment explains that a create-time factory overridden by the argument cannot be recovered here.\n* @evidence contracts/common.md#meaningful-documentation The doc states the two outcomes and the factory rule; the inline comment records the pointwise hand-off failure.\n*/\nconst _assertGuard = (exceptionable, props, factory) => {\n\tif (exceptionable === true) {\n\t\tif (typeof factory === \"function\") throw factory(props);\n\t\tthrow new TypeGuardError(props);\n\t}\n\treturn false;\n};\n//#endregion\nexport { _assertGuard };\n\n//# sourceMappingURL=_assertGuard.mjs.map","//#region src/internal/_accessExpressionAsString.ts\n/**\n* Write a property access on a key as source text.\n*\n* A key that is a legal ASCII identifier and not a reserved word becomes\n* `.key`, and any other key becomes `[\"key\"]` with a JSON string literal.\n*\n* @evidence contracts/common.md#principled-implementation A key that is a legal ASCII identifier and not a reserved word is written as a dot access, and every other key as a bracket access with a JSON string literal, which is a valid JavaScript string literal for any key, so the emitted access expression is correct for every property name. The reserved list is conservative for dot access, which is legal after a dot, so it can only cause an extra bracket form; the strict-mode future reserved words are not in the list.\n* @evidence contracts/common.md#clear-and-simple-design One function with two private helpers, the identifier test and the reserved set.\n* @evidence contracts/common.md#prohibited-implementation-shortcuts The decision is purely lexical and no property name is special-cased.\n* @evidence contracts/common.md#meaningful-documentation The doc states the dot and bracket forms and why bracket access is always safe.\n*/\nconst _accessExpressionAsString = (str) => variable(str) ? `.${str}` : `[${JSON.stringify(str)}]`;\nconst variable = (str) => reserved(str) === false && /^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(str);\nconst reserved = (str) => RESERVED.has(str);\nconst RESERVED = /* @__PURE__ */ new Set([\n\t\"break\",\n\t\"case\",\n\t\"catch\",\n\t\"class\",\n\t\"const\",\n\t\"continue\",\n\t\"debugger\",\n\t\"default\",\n\t\"delete\",\n\t\"do\",\n\t\"else\",\n\t\"enum\",\n\t\"export\",\n\t\"extends\",\n\t\"false\",\n\t\"finally\",\n\t\"for\",\n\t\"function\",\n\t\"if\",\n\t\"import\",\n\t\"in\",\n\t\"instanceof\",\n\t\"new\",\n\t\"null\",\n\t\"return\",\n\t\"super\",\n\t\"switch\",\n\t\"this\",\n\t\"throw\",\n\t\"true\",\n\t\"try\",\n\t\"typeof\",\n\t\"var\",\n\t\"void\",\n\t\"while\",\n\t\"with\"\n]);\n//#endregion\nexport { _accessExpressionAsString };\n\n//# sourceMappingURL=_accessExpressionAsString.mjs.map","import * as _assertGuard_1 from \"typia/lib/internal/_assertGuard\";\nimport * as _accessExpressionAsString_1 from \"typia/lib/internal/_accessExpressionAsString\";\nconst __typia_transform__accessExpressionAsString = _accessExpressionAsString_1._accessExpressionAsString;\n// oxlint-disable import/no-named-as-default-member\nimport type { ShikiTheme } from \"../../shiki/types.ts\";\nimport type { AnsiColorName, BrightAnsiColorName, Color, HexColor, Style, ThemeKey, } from \"../../style/types.ts\";\nimport type { Theme } from \"../../themes/types.ts\";\ntype UserStyle = Omit<Style, \"fg\" | \"bg\" | \"style\"> & {\n fg?: string;\n bg?: string;\n};\ntype UserTheme = {\n $schema?: string;\n shiki?: ShikiTheme;\n id: string;\n name?: string;\n} & Record<string, string | UserStyle>;\ntype ColorKeys<T> = {\n [K in keyof T]-?: [\n T[K]\n ] extends [\n Color\n ] ? K : never;\n}[keyof T];\nconst toBaseColor = (() => {\n const _iv0 = new Set([\"accent\", \"black\", \"blue\", \"border\", \"borderTitle\", \"brightBlack\", \"brightBlue\", \"brightCyan\", \"brightGray\", \"brightGreen\", \"brightGrey\", \"brightMagenta\", \"brightRed\", \"brightWhite\", \"brightYellow\", \"code\", \"codeTitle\", \"comment\", \"cyan\", \"delim\", \"diffAdd\", \"diffContext\", \"diffDel\", \"diffLine\", \"diffTitle\", \"divider\", \"error\", \"gray\", \"green\", \"grey\", \"gutter\", \"highlight\", \"id\", \"info\", \"inherit\", \"magenta\", \"mdBold\", \"mdCode\", \"mdCodeBlock\", \"mdCodeBlockTitle\", \"mdHeading\", \"mdHeading1\", \"mdHeading2\", \"mdHeading3\", \"mdHeading4\", \"mdHeading5\", \"mdHeading6\", \"mdHr\", \"mdItalic\", \"mdLink\", \"mdListBullet\", \"mdListChecked\", \"mdListUnchecked\", \"mdQuote\", \"mdStrikethrough\", \"mdTable\", \"mdTableHeader\", \"muted\", \"name\", \"optionActive\", \"optionDesc\", \"optionName\", \"overlay\", \"primary\", \"prompt\", \"quiet\", \"red\", \"selection\", \"shiki\", \"subtle\", \"success\", \"syntaxBoolean\", \"syntaxBracket\", \"syntaxConstant\", \"syntaxDelimiter\", \"syntaxField\", \"syntaxFunction\", \"syntaxNumber\", \"syntaxSpecial\", \"syntaxString\", \"text\", \"title\", \"ui\", \"warn\", \"white\", \"yellow\"]);\n const _av0 = new Set([\"accent\", \"black\", \"blue\", \"border\", \"borderTitle\", \"brightBlack\", \"brightBlue\", \"brightCyan\", \"brightGray\", \"brightGreen\", \"brightGrey\", \"brightMagenta\", \"brightRed\", \"brightWhite\", \"brightYellow\", \"code\", \"codeTitle\", \"comment\", \"cyan\", \"delim\", \"diffAdd\", \"diffContext\", \"diffDel\", \"diffLine\", \"diffTitle\", \"divider\", \"error\", \"gray\", \"green\", \"grey\", \"gutter\", \"highlight\", \"id\", \"info\", \"inherit\", \"magenta\", \"mdBold\", \"mdCode\", \"mdCodeBlock\", \"mdCodeBlockTitle\", \"mdHeading\", \"mdHeading1\", \"mdHeading2\", \"mdHeading3\", \"mdHeading4\", \"mdHeading5\", \"mdHeading6\", \"mdHr\", \"mdItalic\", \"mdLink\", \"mdListBullet\", \"mdListChecked\", \"mdListUnchecked\", \"mdQuote\", \"mdStrikethrough\", \"mdTable\", \"mdTableHeader\", \"muted\", \"name\", \"optionActive\", \"optionDesc\", \"optionName\", \"overlay\", \"primary\", \"prompt\", \"quiet\", \"red\", \"selection\", \"shiki\", \"subtle\", \"success\", \"syntaxBoolean\", \"syntaxBracket\", \"syntaxConstant\", \"syntaxDelimiter\", \"syntaxField\", \"syntaxFunction\", \"syntaxNumber\", \"syntaxSpecial\", \"syntaxString\", \"text\", \"title\", \"ui\", \"warn\", \"white\", \"yellow\"]);\n const _ae0 = \"(\\\"accent\\\" | \\\"black\\\" | \\\"blue\\\" | \\\"border\\\" | \\\"borderTitle\\\" | \\\"brightBlack\\\" | \\\"brightBlue\\\" | \\\"brightCyan\\\" | \\\"brightGray\\\" | \\\"brightGreen\\\" | \\\"brightGrey\\\" | \\\"brightMagenta\\\" | \\\"brightRed\\\" | \\\"brightWhite\\\" | \\\"brightYellow\\\" | \\\"code\\\" | \\\"codeTitle\\\" | \\\"comment\\\" | \\\"cyan\\\" | \\\"delim\\\" | \\\"diffAdd\\\" | \\\"diffContext\\\" | \\\"diffDel\\\" | \\\"diffLine\\\" | \\\"diffTitle\\\" | \\\"divider\\\" | \\\"error\\\" | \\\"gray\\\" | \\\"green\\\" | \\\"grey\\\" | \\\"gutter\\\" | \\\"highlight\\\" | \\\"id\\\" | \\\"info\\\" | \\\"inherit\\\" | \\\"magenta\\\" | \\\"mdBold\\\" | \\\"mdCode\\\" | \\\"mdCodeBlock\\\" | \\\"mdCodeBlockTitle\\\" | \\\"mdHeading\\\" | \\\"mdHeading1\\\" | \\\"mdHeading2\\\" | \\\"mdHeading3\\\" | \\\"mdHeading4\\\" | \\\"mdHeading5\\\" | \\\"mdHeading6\\\" | \\\"mdHr\\\" | \\\"mdItalic\\\" | \\\"mdLink\\\" | \\\"mdListBullet\\\" | \\\"mdListChecked\\\" | \\\"mdListUnchecked\\\" | \\\"mdQuote\\\" | \\\"mdStrikethrough\\\" | \\\"mdTable\\\" | \\\"mdTableHeader\\\" | \\\"muted\\\" | \\\"name\\\" | \\\"optionActive\\\" | \\\"optionDesc\\\" | \\\"optionName\\\" | \\\"overlay\\\" | \\\"primary\\\" | \\\"prompt\\\" | \\\"quiet\\\" | \\\"red\\\" | \\\"selection\\\" | \\\"shiki\\\" | \\\"subtle\\\" | \\\"success\\\" | \\\"syntaxBoolean\\\" | \\\"syntaxBracket\\\" | \\\"syntaxConstant\\\" | \\\"syntaxDelimiter\\\" | \\\"syntaxField\\\" | \\\"syntaxFunction\\\" | \\\"syntaxNumber\\\" | \\\"syntaxSpecial\\\" | \\\"syntaxString\\\" | \\\"text\\\" | \\\"title\\\" | \\\"ui\\\" | \\\"warn\\\" | \\\"white\\\" | \\\"yellow\\\" | `#${string}`)\";\n const __is = (input: any): input is HexColor | AnsiColorName | BrightAnsiColorName | ThemeKey | \"inherit\" => null !== input && undefined !== input && (true === _iv0.has(input) || \"string\" === typeof input && RegExp(/^#(.*)/).test(input));\n let _errorFactory: any;\n return (input: any, errorFactory?: (p: import(\"typia\").TypeGuardError.IProps) => Error): HexColor | AnsiColorName | BrightAnsiColorName | ThemeKey | \"inherit\" => {\n if (false === __is(input)) {\n _errorFactory = errorFactory;\n ((input: any, _path: string, _exceptionable: boolean = true) => (null !== input || _assertGuard_1._assertGuard(true, {\n method: \"typia.createAssert\",\n path: _path + \"\",\n expected: _ae0,\n value: input\n }, _errorFactory)) && (undefined !== input || _assertGuard_1._assertGuard(true, {\n method: \"typia.createAssert\",\n path: _path + \"\",\n expected: _ae0,\n value: input\n }, _errorFactory)) && (true === _av0.has(input) || \"string\" === typeof input && RegExp(/^#(.*)/).test(input) || _assertGuard_1._assertGuard(true, {\n method: \"typia.createAssert\",\n path: _path + \"\",\n expected: _ae0,\n value: input\n }, _errorFactory)))(input, \"$input\", true);\n }\n return input;\n };\n})();\nconst toLightnessColor = (() => {\n const _iv0 = new Set([\"accent\", \"border\", \"borderTitle\", \"code\", \"codeTitle\", \"comment\", \"delim\", \"diffAdd\", \"diffContext\", \"diffDel\", \"diffLine\", \"diffTitle\", \"divider\", \"error\", \"gutter\", \"highlight\", \"id\", \"info\", \"mdBold\", \"mdCode\", \"mdCodeBlock\", \"mdCodeBlockTitle\", \"mdHeading\", \"mdHeading1\", \"mdHeading2\", \"mdHeading3\", \"mdHeading4\", \"mdHeading5\", \"mdHeading6\", \"mdHr\", \"mdItalic\", \"mdLink\", \"mdListBullet\", \"mdListChecked\", \"mdListUnchecked\", \"mdQuote\", \"mdStrikethrough\", \"mdTable\", \"mdTableHeader\", \"muted\", \"name\", \"optionActive\", \"optionDesc\", \"optionName\", \"overlay\", \"primary\", \"prompt\", \"quiet\", \"selection\", \"shiki\", \"subtle\", \"success\", \"syntaxBoolean\", \"syntaxBracket\", \"syntaxConstant\", \"syntaxDelimiter\", \"syntaxField\", \"syntaxFunction\", \"syntaxNumber\", \"syntaxSpecial\", \"syntaxString\", \"text\", \"title\", \"ui\", \"warn\"]);\n const _av0 = new Set([\"accent\", \"border\", \"borderTitle\", \"code\", \"codeTitle\", \"comment\", \"delim\", \"diffAdd\", \"diffContext\", \"diffDel\", \"diffLine\", \"diffTitle\", \"divider\", \"error\", \"gutter\", \"highlight\", \"id\", \"info\", \"mdBold\", \"mdCode\", \"mdCodeBlock\", \"mdCodeBlockTitle\", \"mdHeading\", \"mdHeading1\", \"mdHeading2\", \"mdHeading3\", \"mdHeading4\", \"mdHeading5\", \"mdHeading6\", \"mdHr\", \"mdItalic\", \"mdLink\", \"mdListBullet\", \"mdListChecked\", \"mdListUnchecked\", \"mdQuote\", \"mdStrikethrough\", \"mdTable\", \"mdTableHeader\", \"muted\", \"name\", \"optionActive\", \"optionDesc\", \"optionName\", \"overlay\", \"primary\", \"prompt\", \"quiet\", \"selection\", \"shiki\", \"subtle\", \"success\", \"syntaxBoolean\", \"syntaxBracket\", \"syntaxConstant\", \"syntaxDelimiter\", \"syntaxField\", \"syntaxFunction\", \"syntaxNumber\", \"syntaxSpecial\", \"syntaxString\", \"text\", \"title\", \"ui\", \"warn\"]);\n const _ae0 = \"(\\\"accent\\\" | \\\"border\\\" | \\\"borderTitle\\\" | \\\"code\\\" | \\\"codeTitle\\\" | \\\"comment\\\" | \\\"delim\\\" | \\\"diffAdd\\\" | \\\"diffContext\\\" | \\\"diffDel\\\" | \\\"diffLine\\\" | \\\"diffTitle\\\" | \\\"divider\\\" | \\\"error\\\" | \\\"gutter\\\" | \\\"highlight\\\" | \\\"id\\\" | \\\"info\\\" | \\\"mdBold\\\" | \\\"mdCode\\\" | \\\"mdCodeBlock\\\" | \\\"mdCodeBlockTitle\\\" | \\\"mdHeading\\\" | \\\"mdHeading1\\\" | \\\"mdHeading2\\\" | \\\"mdHeading3\\\" | \\\"mdHeading4\\\" | \\\"mdHeading5\\\" | \\\"mdHeading6\\\" | \\\"mdHr\\\" | \\\"mdItalic\\\" | \\\"mdLink\\\" | \\\"mdListBullet\\\" | \\\"mdListChecked\\\" | \\\"mdListUnchecked\\\" | \\\"mdQuote\\\" | \\\"mdStrikethrough\\\" | \\\"mdTable\\\" | \\\"mdTableHeader\\\" | \\\"muted\\\" | \\\"name\\\" | \\\"optionActive\\\" | \\\"optionDesc\\\" | \\\"optionName\\\" | \\\"overlay\\\" | \\\"primary\\\" | \\\"prompt\\\" | \\\"quiet\\\" | \\\"selection\\\" | \\\"shiki\\\" | \\\"subtle\\\" | \\\"success\\\" | \\\"syntaxBoolean\\\" | \\\"syntaxBracket\\\" | \\\"syntaxConstant\\\" | \\\"syntaxDelimiter\\\" | \\\"syntaxField\\\" | \\\"syntaxFunction\\\" | \\\"syntaxNumber\\\" | \\\"syntaxSpecial\\\" | \\\"syntaxString\\\" | \\\"text\\\" | \\\"title\\\" | \\\"ui\\\" | \\\"warn\\\" | `#${string}`)\";\n const __is = (input: any): input is HexColor | ThemeKey => null !== input && undefined !== input && (true === _iv0.has(input) || \"string\" === typeof input && RegExp(/^#(.*)/).test(input));\n let _errorFactory: any;\n return (input: any, errorFactory?: (p: import(\"typia\").TypeGuardError.IProps) => Error): HexColor | ThemeKey => {\n if (false === __is(input)) {\n _errorFactory = errorFactory;\n ((input: any, _path: string, _exceptionable: boolean = true) => (null !== input || _assertGuard_1._assertGuard(true, {\n method: \"typia.createAssert\",\n path: _path + \"\",\n expected: _ae0,\n value: input\n }, _errorFactory)) && (undefined !== input || _assertGuard_1._assertGuard(true, {\n method: \"typia.createAssert\",\n path: _path + \"\",\n expected: _ae0,\n value: input\n }, _errorFactory)) && (true === _av0.has(input) || \"string\" === typeof input && RegExp(/^#(.*)/).test(input) || _assertGuard_1._assertGuard(true, {\n method: \"typia.createAssert\",\n path: _path + \"\",\n expected: _ae0,\n value: input\n }, _errorFactory)))(input, \"$input\", true);\n }\n return input;\n };\n})();\nconst toStyle = (() => {\n const _ao0 = (input: any, _path: string, _exceptionable: boolean = true): boolean => _ao1(input, _path, true && _exceptionable) && ((undefined === input.fg || \"string\" === typeof input.fg || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssert\",\n path: _path + \".fg\",\n expected: \"(string | undefined)\",\n value: input.fg\n }, _errorFactory)) && (undefined === input.bg || \"string\" === typeof input.bg || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssert\",\n path: _path + \".bg\",\n expected: \"(string | undefined)\",\n value: input.bg\n }, _errorFactory)));\n const _ao1 = (input: any, _path: string, _exceptionable: boolean = true): boolean => (undefined === input.bold || \"boolean\" === typeof input.bold || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssert\",\n path: _path + \".bold\",\n expected: \"(boolean | undefined)\",\n value: input.bold\n }, _errorFactory)) && (undefined === input.dim || \"boolean\" === typeof input.dim || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssert\",\n path: _path + \".dim\",\n expected: \"(boolean | undefined)\",\n value: input.dim\n }, _errorFactory)) && (undefined === input.italic || \"boolean\" === typeof input.italic || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssert\",\n path: _path + \".italic\",\n expected: \"(boolean | undefined)\",\n value: input.italic\n }, _errorFactory)) && (undefined === input.underline || \"boolean\" === typeof input.underline || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssert\",\n path: _path + \".underline\",\n expected: \"(boolean | undefined)\",\n value: input.underline\n }, _errorFactory)) && (undefined === input.inverse || \"boolean\" === typeof input.inverse || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssert\",\n path: _path + \".inverse\",\n expected: \"(boolean | undefined)\",\n value: input.inverse\n }, _errorFactory)) && (undefined === input.strikethrough || \"boolean\" === typeof input.strikethrough || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssert\",\n path: _path + \".strikethrough\",\n expected: \"(boolean | undefined)\",\n value: input.strikethrough\n }, _errorFactory));\n const _io0 = (input: any): boolean => _io1(input) && ((undefined === input.fg || \"string\" === typeof input.fg) && (undefined === input.bg || \"string\" === typeof input.bg));\n const _io1 = (input: any): boolean => (undefined === input.bold || \"boolean\" === typeof input.bold) && (undefined === input.dim || \"boolean\" === typeof input.dim) && (undefined === input.italic || \"boolean\" === typeof input.italic) && (undefined === input.underline || \"boolean\" === typeof input.underline) && (undefined === input.inverse || \"boolean\" === typeof input.inverse) && (undefined === input.strikethrough || \"boolean\" === typeof input.strikethrough);\n const __is = (input: any): input is UserStyle => \"object\" === typeof input && null !== input && false === Array.isArray(input) && _io0(input);\n let _errorFactory: any;\n return (input: any, errorFactory?: (p: import(\"typia\").TypeGuardError.IProps) => Error): UserStyle => {\n if (false === __is(input)) {\n _errorFactory = errorFactory;\n ((input: any, _path: string, _exceptionable: boolean = true) => (\"object\" === typeof input && null !== input && false === Array.isArray(input) || _assertGuard_1._assertGuard(true, {\n method: \"typia.createAssert\",\n path: _path + \"\",\n expected: \"UserStyle\",\n value: input\n }, _errorFactory)) && _ao0(input, _path + \"\", true) || _assertGuard_1._assertGuard(true, {\n method: \"typia.createAssert\",\n path: _path + \"\",\n expected: \"UserStyle\",\n value: input\n }, _errorFactory))(input, \"$input\", true);\n }\n return input;\n };\n})();\nconst isColorKey = (() => {\n return (input: any): input is ColorKeys<Theme> => \"accent\" === input || \"error\" === input || \"info\" === input || \"primary\" === input || \"success\" === input || \"text\" === input || \"warn\" === input;\n})();\nfunction toColor(value: unknown) {\n if (typeof value !== \"string\")\n return toBaseColor(value); // will throw\n const color = value.replace(/[+-]\\d+/, \"\");\n if (value.match(/[+-]\\d+/))\n toLightnessColor(color);\n return toBaseColor(color);\n}\nconst validator = (() => {\n const _iv0 = new Set([\"andromeeda\", \"aurora-x\", \"ayu-dark\", \"ayu-light\", \"ayu-mirage\", \"catppuccin-frappe\", \"catppuccin-latte\", \"catppuccin-macchiato\", \"catppuccin-mocha\", \"dark-plus\", \"dracula\", \"dracula-soft\", \"everforest-dark\", \"everforest-light\", \"github-dark\", \"github-dark-default\", \"github-dark-dimmed\", \"github-dark-high-contrast\", \"github-light\", \"github-light-default\", \"github-light-high-contrast\", \"gruvbox-dark-hard\", \"gruvbox-dark-medium\", \"gruvbox-dark-soft\", \"gruvbox-light-hard\", \"gruvbox-light-medium\", \"gruvbox-light-soft\", \"horizon\", \"horizon-bright\", \"houston\", \"kanagawa-dragon\", \"kanagawa-lotus\", \"kanagawa-wave\", \"laserwave\", \"light-plus\", \"material-theme\", \"material-theme-darker\", \"material-theme-lighter\", \"material-theme-ocean\", \"material-theme-palenight\", \"min-dark\", \"min-light\", \"monokai\", \"night-owl\", \"night-owl-light\", \"nord\", \"one-dark-pro\", \"one-light\", \"plastic\", \"poimandres\", \"red\", \"rose-pine\", \"rose-pine-dawn\", \"rose-pine-moon\", \"slack-dark\", \"slack-ochin\", \"snazzy-light\", \"solarized-dark\", \"solarized-light\", \"synthwave-84\", \"tokyo-night\", \"vesper\", \"vitesse-black\", \"vitesse-dark\", \"vitesse-light\"]);\n const _av0 = new Set([\"andromeeda\", \"aurora-x\", \"ayu-dark\", \"ayu-light\", \"ayu-mirage\", \"catppuccin-frappe\", \"catppuccin-latte\", \"catppuccin-macchiato\", \"catppuccin-mocha\", \"dark-plus\", \"dracula\", \"dracula-soft\", \"everforest-dark\", \"everforest-light\", \"github-dark\", \"github-dark-default\", \"github-dark-dimmed\", \"github-dark-high-contrast\", \"github-light\", \"github-light-default\", \"github-light-high-contrast\", \"gruvbox-dark-hard\", \"gruvbox-dark-medium\", \"gruvbox-dark-soft\", \"gruvbox-light-hard\", \"gruvbox-light-medium\", \"gruvbox-light-soft\", \"horizon\", \"horizon-bright\", \"houston\", \"kanagawa-dragon\", \"kanagawa-lotus\", \"kanagawa-wave\", \"laserwave\", \"light-plus\", \"material-theme\", \"material-theme-darker\", \"material-theme-lighter\", \"material-theme-ocean\", \"material-theme-palenight\", \"min-dark\", \"min-light\", \"monokai\", \"night-owl\", \"night-owl-light\", \"nord\", \"one-dark-pro\", \"one-light\", \"plastic\", \"poimandres\", \"red\", \"rose-pine\", \"rose-pine-dawn\", \"rose-pine-moon\", \"slack-dark\", \"slack-ochin\", \"snazzy-light\", \"solarized-dark\", \"solarized-light\", \"synthwave-84\", \"tokyo-night\", \"vesper\", \"vitesse-black\", \"vitesse-dark\", \"vitesse-light\"]);\n const _ae0 = \"(\\\"andromeeda\\\" | \\\"aurora-x\\\" | \\\"ayu-dark\\\" | \\\"ayu-light\\\" | \\\"ayu-mirage\\\" | \\\"catppuccin-frappe\\\" | \\\"catppuccin-latte\\\" | \\\"catppuccin-macchiato\\\" | \\\"catppuccin-mocha\\\" | \\\"dark-plus\\\" | \\\"dracula\\\" | \\\"dracula-soft\\\" | \\\"everforest-dark\\\" | \\\"everforest-light\\\" | \\\"github-dark\\\" | \\\"github-dark-default\\\" | \\\"github-dark-dimmed\\\" | \\\"github-dark-high-contrast\\\" | \\\"github-light\\\" | \\\"github-light-default\\\" | \\\"github-light-high-contrast\\\" | \\\"gruvbox-dark-hard\\\" | \\\"gruvbox-dark-medium\\\" | \\\"gruvbox-dark-soft\\\" | \\\"gruvbox-light-hard\\\" | \\\"gruvbox-light-medium\\\" | \\\"gruvbox-light-soft\\\" | \\\"horizon\\\" | \\\"horizon-bright\\\" | \\\"houston\\\" | \\\"kanagawa-dragon\\\" | \\\"kanagawa-lotus\\\" | \\\"kanagawa-wave\\\" | \\\"laserwave\\\" | \\\"light-plus\\\" | \\\"material-theme\\\" | \\\"material-theme-darker\\\" | \\\"material-theme-lighter\\\" | \\\"material-theme-ocean\\\" | \\\"material-theme-palenight\\\" | \\\"min-dark\\\" | \\\"min-light\\\" | \\\"monokai\\\" | \\\"night-owl\\\" | \\\"night-owl-light\\\" | \\\"nord\\\" | \\\"one-dark-pro\\\" | \\\"one-light\\\" | \\\"plastic\\\" | \\\"poimandres\\\" | \\\"red\\\" | \\\"rose-pine\\\" | \\\"rose-pine-dawn\\\" | \\\"rose-pine-moon\\\" | \\\"slack-dark\\\" | \\\"slack-ochin\\\" | \\\"snazzy-light\\\" | \\\"solarized-dark\\\" | \\\"solarized-light\\\" | \\\"synthwave-84\\\" | \\\"tokyo-night\\\" | \\\"vesper\\\" | \\\"vitesse-black\\\" | \\\"vitesse-dark\\\" | \\\"vitesse-light\\\" | undefined)\";\n const _ao0 = (input: any, _path: string, _exceptionable: boolean = true): boolean => (undefined === input.$schema || \"string\" === typeof input.$schema || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".$schema\",\n expected: \"(string | undefined)\",\n value: input.$schema\n }, _errorFactory)) && (undefined === input.shiki || true === _av0.has(input.shiki) || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".shiki\",\n expected: _ae0,\n value: input.shiki\n }, _errorFactory)) && (undefined === input.id || \"string\" === typeof input.id || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".id\",\n expected: \"(string | undefined)\",\n value: input.id\n }, _errorFactory)) && (undefined === input.name || \"string\" === typeof input.name || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".name\",\n expected: \"(string | undefined)\",\n value: input.name\n }, _errorFactory)) && (false === _exceptionable || Object.keys(input).every((key: any) => {\n if ([\"$schema\", \"shiki\", \"id\", \"name\"].some((prop: any) => key === prop))\n return true;\n const value = input[key];\n if (undefined === value)\n return true;\n return (null !== value || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + __typia_transform__accessExpressionAsString(key),\n expected: \"(UserStyle | string | undefined)\",\n value: value\n }, _errorFactory)) && (undefined === value || \"string\" === typeof value || (\"object\" === typeof value && null !== value && false === Array.isArray(value) || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + __typia_transform__accessExpressionAsString(key),\n expected: \"(UserStyle | string | undefined)\",\n value: value\n }, _errorFactory)) && _ao1(value, _path + __typia_transform__accessExpressionAsString(key), true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + __typia_transform__accessExpressionAsString(key),\n expected: \"(UserStyle | string | undefined)\",\n value: value\n }, _errorFactory));\n }));\n const _ao1 = (input: any, _path: string, _exceptionable: boolean = true): boolean => (undefined === input.bold || \"boolean\" === typeof input.bold || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".bold\",\n expected: \"(boolean | undefined)\",\n value: input.bold\n }, _errorFactory)) && (undefined === input.dim || \"boolean\" === typeof input.dim || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".dim\",\n expected: \"(boolean | undefined)\",\n value: input.dim\n }, _errorFactory)) && (undefined === input.italic || \"boolean\" === typeof input.italic || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".italic\",\n expected: \"(boolean | undefined)\",\n value: input.italic\n }, _errorFactory)) && (undefined === input.underline || \"boolean\" === typeof input.underline || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".underline\",\n expected: \"(boolean | undefined)\",\n value: input.underline\n }, _errorFactory)) && (undefined === input.inverse || \"boolean\" === typeof input.inverse || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".inverse\",\n expected: \"(boolean | undefined)\",\n value: input.inverse\n }, _errorFactory)) && (undefined === input.strikethrough || \"boolean\" === typeof input.strikethrough || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".strikethrough\",\n expected: \"(boolean | undefined)\",\n value: input.strikethrough\n }, _errorFactory)) && (undefined === input.fg || \"string\" === typeof input.fg || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".fg\",\n expected: \"(string | undefined)\",\n value: input.fg\n }, _errorFactory)) && (undefined === input.bg || \"string\" === typeof input.bg || _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + \".bg\",\n expected: \"(string | undefined)\",\n value: input.bg\n }, _errorFactory)) && (0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key: any) => {\n if ([\"bold\", \"dim\", \"italic\", \"underline\", \"inverse\", \"strikethrough\", \"fg\", \"bg\"].some((prop: any) => key === prop))\n return true;\n const value = input[key];\n if (undefined === value)\n return true;\n return _assertGuard_1._assertGuard(_exceptionable, {\n method: \"typia.createAssertEquals\",\n path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),\n expected: \"undefined\",\n value: value\n }, _errorFactory);\n })));\n const _io0 = (input: any, _exceptionable: boolean = true): boolean => (undefined === input.$schema || \"string\" === typeof input.$schema) && (undefined === input.shiki || true === _iv0.has(input.shiki)) && (undefined === input.id || \"string\" === typeof input.id) && (undefined === input.name || \"string\" === typeof input.name) && Object.keys(input).every((key: any) => {\n if ([\"$schema\", \"shiki\", \"id\", \"name\"].some((prop: any) => key === prop))\n return true;\n const value = input[key];\n if (undefined === value)\n return true;\n return null !== value && (undefined === value || \"string\" === typeof value || \"object\" === typeof value && null !== value && false === Array.isArray(value) && _io1(value, true && _exceptionable));\n });\n const _io1 = (input: any, _exceptionable: boolean = true): boolean => (undefined === input.bold || \"boolean\" === typeof input.bold) && (undefined === input.dim || \"boolean\" === typeof input.dim) && (undefined === input.italic || \"boolean\" === typeof input.italic) && (undefined === input.underline || \"boolean\" === typeof input.underline) && (undefined === input.inverse || \"boolean\" === typeof input.inverse) && (undefined === input.strikethrough || \"boolean\" === typeof input.strikethrough) && (undefined === input.fg || \"string\" === typeof input.fg) && (undefined === input.bg || \"string\" === typeof input.bg) && (0 === Object.keys(input).length || Object.keys(input).every((key: any) => {\n if ([\"bold\", \"dim\", \"italic\", \"underline\", \"inverse\", \"strikethrough\", \"fg\", \"bg\"].some((prop: any) => key === prop))\n return true;\n const value = input[key];\n if (undefined === value)\n return true;\n return false;\n }));\n const __is = (input: any, _exceptionable: boolean = true): input is Partial<UserTheme> => \"object\" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true);\n let _errorFactory: any;\n return (input: any, errorFactory?: (p: import(\"typia\").TypeGuardError.IProps) => Error): Partial<UserTheme> => {\n if (false === __is(input)) {\n _errorFactory = errorFactory;\n ((input: any, _path: string, _exceptionable: boolean = true) => (\"object\" === typeof input && null !== input && false === Array.isArray(input) || _assertGuard_1._assertGuard(true, {\n method: \"typia.createAssertEquals\",\n path: _path + \"\",\n expected: \"Partial<UserTheme>\",\n value: input\n }, _errorFactory)) && _ao0(input, _path + \"\", true) || _assertGuard_1._assertGuard(true, {\n method: \"typia.createAssertEquals\",\n path: _path + \"\",\n expected: \"Partial<UserTheme>\",\n value: input\n }, _errorFactory))(input, \"$input\", true);\n }\n return input;\n };\n})();\nconst skipSlots = new Set([\"$schema\", \"shiki\", \"id\", \"name\"]);\nexport function validateTheme(input: unknown): Partial<UserTheme> {\n const out = validator(input);\n for (const [slot, value] of Object.entries(out)) {\n if (skipSlots.has(slot) || value === undefined)\n continue;\n if (typeof value === \"string\" && toColor(value))\n continue;\n if (isColorKey(slot))\n toColor(value);\n const style = toStyle(value);\n if (style.fg !== undefined)\n toColor(style.fg);\n if (style.bg !== undefined)\n toColor(style.bg);\n }\n return out as unknown as Partial<Theme> & {\n $schema?: string;\n };\n}\n"],"ignoreList":[0,1,2],"mappings":";;;;;;;;;;;;;;;AAeA,IAAI,iBAAiB,cAAc,MAAM;;;;;;CAMxC,YAAY,OAAO;EAClB,MAAM,MAAM,WAAW,YAAY,MAAM,OAAO,kBAAkB,MAAM,OAAO,OAAO,MAAM,SAAS,GAAG,iBAAiB,MAAM,UAAU;EACzI,MAAM,QAAQ,WAAW;EACzB,IAAI,OAAO,gBAAgB,OAAO,eAAe,MAAM,KAAK;OACvD,KAAK,YAAY;EACtB,KAAK,OAAO;EACZ,KAAK,SAAS,MAAM;EACpB,KAAK,OAAO,MAAM;EAClB,KAAK,WAAW,MAAM;EACtB,KAAK,QAAQ,MAAM;EACnB,IAAI,MAAM,eAAe,MAAM,UAAU,KAAK,GAAG,KAAK,cAAc,MAAM,eAAe;GACxF;GACA;GACA,qBAAqB,MAAM,SAAS;EACrC,CAAC,CAAC,KAAK,IAAI;CACZ;AACD;;;;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AS,SAAS,SAAS,UAAU,MAAM,QAAQ,KAAK,KAAK,KAAK,OAAO,IAAI;CAC3L,IAAI;CACJ,QAAQ,OAAY,iBAA2F;EAC3G,IAAI,UAAU,KAAK,KAAK,GAAG;GACvB,gBAAgB;GAChB,EAAE,OAAY,OAAe,iBAA0B,UAAU,aAAa,OAAO,SAAS,SAAS,SAAS,UAAU,MAAM,QAAQ,KAAK,KAAKC,aAA4B,MAAM;IAChL,QAAQ;IACR,MAAM,QAAQ;IACd,UAAU;IACV,OAAO;GACX,GAAG,aAAa,MAAM,KAAK,OAAO,QAAQ,IAAI,IAAI,KAAKA,aAA4B,MAAM;IACrF,QAAQ;IACR,MAAM,QAAQ;IACd,UAAU;IACV,OAAO;GACX,GAAG,aAAa,EAAA,CAAG,OAAO,UAAU,IAAI;EAC5C;EACA,OAAO;CACX;AACJ,EAAA,CAAG;AACH,MAAM,4BAAY,IAAI,IAAI;CAAC;CAAW;CAAS;CAAM;AAAM,CAAC;AAC5D,SAAgB,cAAc,OAAoC;CAC9D,MAAM,MAAM,UAAU,KAAK;CAC3B,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,GAAG,GAAG;EAC7C,IAAI,UAAU,IAAI,IAAI,KAAK,UAAU,KAAA,GACjC;EACJ,IAAI,OAAO,UAAU,YAAY,QAAQ,KAAK,GAC1C;EACJ,IAAI,WAAW,IAAI,GACf,QAAQ,KAAK;EACjB,MAAM,QAAQ,QAAQ,KAAK;EAC3B,IAAI,MAAM,OAAO,KAAA,GACb,QAAQ,MAAM,EAAE;EACpB,IAAI,MAAM,OAAO,KAAA,GACb,QAAQ,MAAM,EAAE;CACxB;CACA,OAAO;AAGX"}
|
package/dist/themes.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { defaultTheme, loadTheme, themeRegistry };
|
|
1
|
+
export { t as defaultTheme, n as loadTheme, r as themeRegistry } from "./registry-JjYaWUZz.mjs";
|
package/dist/widgets/box.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Box, box };
|
|
1
|
+
export { t as Box, n as box } from "../box-DLEcEvDH.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code.d.mts","names":[],"sources":["../../src/widgets/code.ts"],"mappings":";;;iBAciB;;;EAGf,MAAM;;;EAGN,OAAO;;;;EAIP;;;EAGA,QAAQ;;EAER;EACA,QAAQ;EACR;EACA,eAAe;EACf,SAAS;EACT,QAAQ;EACR,QAAQ,cAAc;;;;;;;;;;;;;;;;;;;;qBAqBX,OAAI,OAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"code.d.mts","names":["_$__box_ts0.Box"],"sources":["../../src/widgets/code.ts"],"mappings":";;;iBAciB;;;EAGf,MAAM;;;EAGN,OAAO;;;;EAIP;;;EAGA,QAAQ;;EAER;EACA,QAAQ;EACR;EACA,eAAe;EACf,SAAS;EACT,QAAQ;EACR,QAAQ,cAAc;;;;;;;;;;;;;;;;;;;;qBAqBX,OAAI,OAAkB,MAAM,eAANA"}
|
package/dist/widgets/code.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { S as unwrap, h as memo, r as createAsync, w as useContext } from "../re
|
|
|
2
2
|
import { n as box } from "../box-DLEcEvDH.mjs";
|
|
3
3
|
import { a as formatLines } from "../text-CRZD9KTN.mjs";
|
|
4
4
|
import { n as text } from "../text-BLz1tRoC.mjs";
|
|
5
|
-
import { t as RenderContext } from "../render-
|
|
6
|
-
import { t as codeToAnsi } from "../shiki
|
|
5
|
+
import { t as RenderContext } from "../render-DtRw_LwV.mjs";
|
|
6
|
+
import { t as codeToAnsi } from "../shiki--ASSYv4_.mjs";
|
|
7
7
|
import { t as widget } from "../widget-BkMwhY2p.mjs";
|
|
8
8
|
import { t as show } from "../show-DR2x1YFc.mjs";
|
|
9
9
|
import { extname } from "pathe";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { actionsSource };
|
|
1
|
+
export { t as actionsSource } from "../../actions-DEIKF2ts.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { filesSource };
|
|
1
|
+
export { t as filesSource } from "../../files-BvThQpOf.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { githubSource };
|
|
1
|
+
export { t as githubSource } from "../../github-Cy2hfWJ7.mjs";
|
package/dist/widgets/diff.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { S as unwrap, h as memo, r as createAsync, w as useContext } from "../reactive-f7NpAi69.mjs";
|
|
2
2
|
import { t as Node } from "../node-BZ7f6HzU.mjs";
|
|
3
3
|
import { r as countLines, t as calcLayout } from "../text-CRZD9KTN.mjs";
|
|
4
|
-
import { t as RenderContext } from "../render-
|
|
5
|
-
import { t as codeToAnsi } from "../shiki
|
|
4
|
+
import { t as RenderContext } from "../render-DtRw_LwV.mjs";
|
|
5
|
+
import { t as codeToAnsi } from "../shiki--ASSYv4_.mjs";
|
|
6
6
|
import { splitAnsi, stringWidth, wrapAnsi } from "@zaly/shared/ansi";
|
|
7
7
|
import { basename, extname } from "pathe";
|
|
8
8
|
//#region src/widgets/diff.ts
|
package/dist/widgets/divider.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { divider };
|
|
1
|
+
export { t as divider } from "../divider-l0-JPEIm.mjs";
|
package/dist/widgets/image.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as unwrap, w as useContext } from "../reactive-f7NpAi69.mjs";
|
|
2
2
|
import { t as Node } from "../node-BZ7f6HzU.mjs";
|
|
3
|
-
import { t as RenderContext } from "../render-
|
|
3
|
+
import { t as RenderContext } from "../render-DtRw_LwV.mjs";
|
|
4
4
|
import { s as loadKittyGraphics } from "../kitty-JbCJC0iQ.mjs";
|
|
5
5
|
import { fileDetect } from "@zaly/shared/detect";
|
|
6
6
|
import { imageInfo } from "@zaly/shared/image";
|
package/dist/widgets/input.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Input, input };
|
|
1
|
+
export { t as Input, n as input } from "../input-D7fQEUdt.mjs";
|
package/dist/widgets/log.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { log };
|
|
1
|
+
export { t as log } from "../log-CnewrxAc.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.mts","names":[],"sources":["../../src/widgets/markdown.ts"],"mappings":";;;;;;iBAoBiB;;;;EAIf,SAAS;;EAET,UAAU;;;;;;;EAOV;EACA,OAAO;EACP,QAAQ;;qBAcG,iBAAiB,KAAK;;WAKxB,QAAM,YAAA;EASf,YAAY,OAAO,MAAM;YAwDT,QAAQ,KAAK,YAAY;EA0C1B,OAAO,KAAK,YAAS,
|
|
1
|
+
{"version":3,"file":"markdown.d.mts","names":["_$___core_state_ts0.Layout"],"sources":["../../src/widgets/markdown.ts"],"mappings":";;;;;;iBAoBiB;;;;EAIf,SAAS;;EAET,UAAU;;;;;;;EAOV;EACA,OAAO;EACP,QAAQ;;qBAcG,iBAAiB,KAAK;;WAKxB,QAAM,YAAA;EASf,YAAY,OAAO,MAAM;YAwDT,QAAQ,KAAK,YAAY;EA0C1B,OAAO,KAAK,YAAS,QAATA;;;;;;;;;;;;wBAeb,SACd,SAAS,aACT,QAAQ,KAAK,MAAM,6BAClB;wBACa,SAAS,OAAO,MAAM,iBAAiB"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Markdown, markdown };
|
|
1
|
+
export { t as Markdown, n as markdown } from "../markdown-C6UVXJoj.mjs";
|
package/dist/widgets/overlay.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { overlay };
|
|
1
|
+
export { t as overlay } from "../overlay-9WXYiGgW.mjs";
|
package/dist/widgets/picker.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { picker };
|
|
1
|
+
export { t as picker } from "../picker-BqHINl_a.mjs";
|
package/dist/widgets/select.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Select, select };
|
|
1
|
+
export { t as Select, n as select } from "../select-m7NE6Rwa.mjs";
|
package/dist/widgets/show.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { show };
|
|
1
|
+
export { t as show } from "../show-DR2x1YFc.mjs";
|
package/dist/widgets/text.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Text, text, textContent };
|
|
1
|
+
export { t as Text, n as text, r as textContent } from "../text-BLz1tRoC.mjs";
|
package/dist/widgets/tree.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { tree };
|
|
1
|
+
export { t as tree } from "../tree-Bo1afYhe.mjs";
|
package/dist/widgets/widget.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { widget };
|
|
1
|
+
export { t as widget } from "../widget-BkMwhY2p.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as createWorker } from "./worker-T6SdPzUH.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zaly/tui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Terminal UI framework used by zaly.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ansi",
|
|
@@ -79,29 +79,29 @@
|
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
+
"@zaly/shared": "0.0.6",
|
|
82
83
|
"diff": "^9.0.0",
|
|
83
|
-
"marked": "^18.0
|
|
84
|
+
"marked": "^18.1.0",
|
|
84
85
|
"pathe": "^2.0.3",
|
|
85
|
-
"shiki": "^4.
|
|
86
|
-
"@zaly/shared": "0.0.5"
|
|
86
|
+
"shiki": "^4.5.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"ghostty-web": "^0.4.0",
|
|
90
90
|
"mitata": "^1.0.34",
|
|
91
|
-
"slice-ansi": "^9.0.
|
|
92
|
-
"string-width": "^8.
|
|
93
|
-
"typia": "^
|
|
94
|
-
"wrap-ansi": "^10.0.
|
|
91
|
+
"slice-ansi": "^9.0.1",
|
|
92
|
+
"string-width": "^8.3.0",
|
|
93
|
+
"typia": "^15.1.0",
|
|
94
|
+
"wrap-ansi": "^10.0.2"
|
|
95
95
|
},
|
|
96
96
|
"optionalDependencies": {
|
|
97
|
-
"sharp": "^0.35.
|
|
97
|
+
"sharp": "^0.35.5"
|
|
98
98
|
},
|
|
99
99
|
"engines": {
|
|
100
100
|
"bun": ">=1.2",
|
|
101
|
-
"node": ">=22.
|
|
101
|
+
"node": ">=22.18.0"
|
|
102
102
|
},
|
|
103
103
|
"inlinedDependencies": {
|
|
104
|
-
"typia": "
|
|
104
|
+
"typia": "15.1.0"
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|
|
107
107
|
"bench": "z bench",
|
package/dist/client-BltmwI6G.mjs
DELETED
package/dist/ctx-DZHBHjsB.mjs
DELETED