@shell-shock/plugin-completions 0.2.23 → 0.3.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/README.md +1 -1
- package/dist/components/bash-config-command.cjs +132 -0
- package/dist/components/bash-config-command.d.cts +10 -0
- package/dist/components/bash-config-command.d.cts.map +1 -0
- package/dist/components/bash-config-command.d.mts +10 -0
- package/dist/components/bash-config-command.d.mts.map +1 -0
- package/dist/components/bash-config-command.mjs +132 -0
- package/dist/components/bash-config-command.mjs.map +1 -0
- package/dist/components/bash-script-command.cjs +106 -0
- package/dist/components/bash-script-command.d.cts +10 -0
- package/dist/components/bash-script-command.d.cts.map +1 -0
- package/dist/components/bash-script-command.d.mts +10 -0
- package/dist/components/bash-script-command.d.mts.map +1 -0
- package/dist/components/bash-script-command.mjs +106 -0
- package/dist/components/bash-script-command.mjs.map +1 -0
- package/dist/components/bash-shared.cjs +172 -0
- package/dist/components/bash-shared.d.cts +10 -0
- package/dist/components/bash-shared.d.cts.map +1 -0
- package/dist/components/bash-shared.d.mts +10 -0
- package/dist/components/bash-shared.d.mts.map +1 -0
- package/dist/components/bash-shared.mjs +172 -0
- package/dist/components/bash-shared.mjs.map +1 -0
- package/dist/components/fish-config-command.cjs +132 -0
- package/dist/components/fish-config-command.d.cts +10 -0
- package/dist/components/fish-config-command.d.cts.map +1 -0
- package/dist/components/fish-config-command.d.mts +10 -0
- package/dist/components/fish-config-command.d.mts.map +1 -0
- package/dist/components/fish-config-command.mjs +132 -0
- package/dist/components/fish-config-command.mjs.map +1 -0
- package/dist/components/fish-script-command.cjs +106 -0
- package/dist/components/fish-script-command.d.cts +10 -0
- package/dist/components/fish-script-command.d.cts.map +1 -0
- package/dist/components/fish-script-command.d.mts +10 -0
- package/dist/components/fish-script-command.d.mts.map +1 -0
- package/dist/components/fish-script-command.mjs +106 -0
- package/dist/components/fish-script-command.mjs.map +1 -0
- package/dist/components/fish-shared.cjs +303 -0
- package/dist/components/fish-shared.d.cts +10 -0
- package/dist/components/fish-shared.d.cts.map +1 -0
- package/dist/components/fish-shared.d.mts +10 -0
- package/dist/components/fish-shared.d.mts.map +1 -0
- package/dist/components/fish-shared.mjs +303 -0
- package/dist/components/fish-shared.mjs.map +1 -0
- package/dist/components/index.cjs +24 -8
- package/dist/components/index.d.cts +13 -5
- package/dist/components/index.d.mts +13 -5
- package/dist/components/index.mjs +13 -5
- package/dist/components/powershell-config-command.cjs +128 -0
- package/dist/components/powershell-config-command.d.cts +7 -0
- package/dist/components/powershell-config-command.d.cts.map +1 -0
- package/dist/components/powershell-config-command.d.mts +7 -0
- package/dist/components/powershell-config-command.d.mts.map +1 -0
- package/dist/components/powershell-config-command.mjs +128 -0
- package/dist/components/powershell-config-command.mjs.map +1 -0
- package/dist/components/powershell-script-command.cjs +106 -0
- package/dist/components/powershell-script-command.d.cts +10 -0
- package/dist/components/powershell-script-command.d.cts.map +1 -0
- package/dist/components/powershell-script-command.d.mts +10 -0
- package/dist/components/powershell-script-command.d.mts.map +1 -0
- package/dist/components/powershell-script-command.mjs +106 -0
- package/dist/components/powershell-script-command.mjs.map +1 -0
- package/dist/components/powershell-shared.cjs +319 -0
- package/dist/components/powershell-shared.d.cts +10 -0
- package/dist/components/powershell-shared.d.cts.map +1 -0
- package/dist/components/powershell-shared.d.mts +10 -0
- package/dist/components/powershell-shared.d.mts.map +1 -0
- package/dist/components/{powershell-command.mjs → powershell-shared.mjs} +81 -181
- package/dist/components/powershell-shared.mjs.map +1 -0
- package/dist/components/zsh-config-command.cjs +132 -0
- package/dist/components/zsh-config-command.d.cts +10 -0
- package/dist/components/zsh-config-command.d.cts.map +1 -0
- package/dist/components/zsh-config-command.d.mts +10 -0
- package/dist/components/zsh-config-command.d.mts.map +1 -0
- package/dist/components/zsh-config-command.mjs +132 -0
- package/dist/components/zsh-config-command.mjs.map +1 -0
- package/dist/components/zsh-script-command.cjs +111 -0
- package/dist/components/zsh-script-command.d.cts +10 -0
- package/dist/components/zsh-script-command.d.cts.map +1 -0
- package/dist/components/zsh-script-command.d.mts +10 -0
- package/dist/components/zsh-script-command.d.mts.map +1 -0
- package/dist/components/zsh-script-command.mjs +111 -0
- package/dist/components/zsh-script-command.mjs.map +1 -0
- package/dist/components/zsh-shared.cjs +281 -0
- package/dist/components/zsh-shared.d.cts +10 -0
- package/dist/components/zsh-shared.d.cts.map +1 -0
- package/dist/components/zsh-shared.d.mts +10 -0
- package/dist/components/zsh-shared.d.mts.map +1 -0
- package/dist/components/zsh-shared.mjs +281 -0
- package/dist/components/zsh-shared.mjs.map +1 -0
- package/dist/helpers/complete-command.cjs +2 -7
- package/dist/helpers/complete-command.d.cts +2 -2
- package/dist/helpers/complete-command.d.cts.map +1 -1
- package/dist/helpers/complete-command.d.mts +2 -2
- package/dist/helpers/complete-command.d.mts.map +1 -1
- package/dist/helpers/complete-command.mjs +2 -7
- package/dist/helpers/complete-command.mjs.map +1 -1
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.d.cts +2 -2
- package/dist/helpers/index.d.mts +2 -2
- package/dist/helpers/index.mjs +2 -2
- package/dist/index.cjs +245 -59
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +246 -60
- package/dist/index.mjs.map +1 -1
- package/package.json +148 -37
- package/dist/components/bash-command.cjs +0 -273
- package/dist/components/bash-command.d.cts +0 -10
- package/dist/components/bash-command.d.cts.map +0 -1
- package/dist/components/bash-command.d.mts +0 -10
- package/dist/components/bash-command.d.mts.map +0 -1
- package/dist/components/bash-command.mjs +0 -273
- package/dist/components/bash-command.mjs.map +0 -1
- package/dist/components/fish-command.cjs +0 -403
- package/dist/components/fish-command.d.cts +0 -10
- package/dist/components/fish-command.d.cts.map +0 -1
- package/dist/components/fish-command.d.mts +0 -10
- package/dist/components/fish-command.d.mts.map +0 -1
- package/dist/components/fish-command.mjs +0 -403
- package/dist/components/fish-command.mjs.map +0 -1
- package/dist/components/powershell-command.cjs +0 -419
- package/dist/components/powershell-command.d.cts +0 -10
- package/dist/components/powershell-command.d.cts.map +0 -1
- package/dist/components/powershell-command.d.mts +0 -10
- package/dist/components/powershell-command.d.mts.map +0 -1
- package/dist/components/powershell-command.mjs.map +0 -1
- package/dist/components/zsh-command.cjs +0 -384
- package/dist/components/zsh-command.d.cts +0 -10
- package/dist/components/zsh-command.d.cts.map +0 -1
- package/dist/components/zsh-command.d.mts +0 -10
- package/dist/components/zsh-command.d.mts.map +0 -1
- package/dist/components/zsh-command.mjs +0 -384
- package/dist/components/zsh-command.mjs.map +0 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { createComponent, memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { getAppTitle } from "@shell-shock/core/plugin-utils";
|
|
3
|
+
import { code } from "@alloy-js/core";
|
|
4
|
+
import { ElseClause, FunctionDeclaration, IfStatement, InterfaceDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
5
|
+
import { ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
6
|
+
import { Spacing } from "@powerlines/plugin-alloy/core";
|
|
7
|
+
import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
8
|
+
import { InterfaceMember as InterfaceMember$1, TypescriptFile } from "@powerlines/plugin-alloy/typescript";
|
|
9
|
+
import { TSDoc as TSDoc$1, TSDocDefaultValue as TSDocDefaultValue$1 } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
10
|
+
import { joinPaths } from "@stryke/path";
|
|
11
|
+
|
|
12
|
+
//#region src/components/zsh-config-command.tsx
|
|
13
|
+
/**
|
|
14
|
+
* The Zsh Completions - Configuration command's handler wrapper for the Shell Shock project.
|
|
15
|
+
*/
|
|
16
|
+
function ZshConfigCompletionsCommand() {
|
|
17
|
+
const context = usePowerlines();
|
|
18
|
+
return createComponent(TypescriptFile, {
|
|
19
|
+
get path() {
|
|
20
|
+
return joinPaths(context.entryPath, "completions", "zsh", "config", "command.ts");
|
|
21
|
+
},
|
|
22
|
+
imports: {
|
|
23
|
+
"node:os": "os",
|
|
24
|
+
"node:path": ["join"],
|
|
25
|
+
"node:fs/promises": ["readFile", "writeFile"],
|
|
26
|
+
"../shared": ["SHELL_COMPLETIONS", "SHELL_COMPLETIONS_DISPLAY"]
|
|
27
|
+
},
|
|
28
|
+
builtinImports: { "shell-shock:console": [
|
|
29
|
+
"colors",
|
|
30
|
+
"writeLine",
|
|
31
|
+
"success",
|
|
32
|
+
"warn"
|
|
33
|
+
] },
|
|
34
|
+
get children() {
|
|
35
|
+
return [
|
|
36
|
+
createComponent(TSDoc$1, { heading: "Options for the Zsh Completions - Configuration command." }),
|
|
37
|
+
createComponent(InterfaceDeclaration, {
|
|
38
|
+
"export": true,
|
|
39
|
+
name: "ZshConfigCompletionsOptions",
|
|
40
|
+
get children() {
|
|
41
|
+
return [createComponent(TSDoc$1, {
|
|
42
|
+
heading: "Should the generated completion script be written to console output instead of an actual file on disk? This is useful for debugging purposes or if you want to manually handle the output.",
|
|
43
|
+
get children() {
|
|
44
|
+
return createComponent(TSDocDefaultValue$1, {
|
|
45
|
+
get type() {
|
|
46
|
+
return ReflectionKind.boolean;
|
|
47
|
+
},
|
|
48
|
+
defaultValue: false
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}), createComponent(InterfaceMember$1, {
|
|
52
|
+
name: "display",
|
|
53
|
+
optional: true,
|
|
54
|
+
type: "boolean"
|
|
55
|
+
})];
|
|
56
|
+
}
|
|
57
|
+
}),
|
|
58
|
+
createComponent(Spacing, {}),
|
|
59
|
+
createComponent(TSDoc$1, { heading: "Handler logic for the \\`completions zsh config\\` command." }),
|
|
60
|
+
createComponent(FunctionDeclaration, {
|
|
61
|
+
"export": true,
|
|
62
|
+
"default": true,
|
|
63
|
+
async: true,
|
|
64
|
+
name: "handler",
|
|
65
|
+
parameters: [{
|
|
66
|
+
name: "options",
|
|
67
|
+
type: "ZshConfigCompletionsOptions",
|
|
68
|
+
default: "{}"
|
|
69
|
+
}, {
|
|
70
|
+
name: "path",
|
|
71
|
+
type: "string",
|
|
72
|
+
default: `"~/.zshrc"`
|
|
73
|
+
}],
|
|
74
|
+
get children() {
|
|
75
|
+
return [createComponent(IfStatement, {
|
|
76
|
+
condition: code`options.display !== true`,
|
|
77
|
+
get children() {
|
|
78
|
+
return [
|
|
79
|
+
createComponent(VarDeclaration, {
|
|
80
|
+
"let": true,
|
|
81
|
+
name: "configPath",
|
|
82
|
+
type: "string",
|
|
83
|
+
initializer: code` path.includes(".") ? path : join(path, ".zshrc");`
|
|
84
|
+
}),
|
|
85
|
+
createComponent(Spacing, {}),
|
|
86
|
+
createComponent(IfStatement, {
|
|
87
|
+
condition: code`configPath.startsWith("~")`,
|
|
88
|
+
children: code`configPath = join(os.homedir(), configPath.replace("~", "")); `
|
|
89
|
+
}),
|
|
90
|
+
createComponent(Spacing, {}),
|
|
91
|
+
createComponent(VarDeclaration, {
|
|
92
|
+
"let": true,
|
|
93
|
+
name: "content",
|
|
94
|
+
type: "string",
|
|
95
|
+
initializer: code`"";`
|
|
96
|
+
}),
|
|
97
|
+
createComponent(Spacing, {}),
|
|
98
|
+
memo(() => code`try {
|
|
99
|
+
content = await readFile(configPath, "utf8");
|
|
100
|
+
} catch (error) {
|
|
101
|
+
if (typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT") {
|
|
102
|
+
// If the file doesn't exist, we can create it later when writing the completion script.
|
|
103
|
+
warn(\`Configuration file \${colors.bold(configPath)} does not exist. It will be created when the completion script is written.\`);
|
|
104
|
+
} else {
|
|
105
|
+
return { error };
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
await writeFile(configPath, \`\${content}\\n\\n### Begin - ${getAppTitle(context)} Shell Completions ###\\n\\n\${SHELL_COMPLETIONS} \\n\\n### End - ${getAppTitle(context)} Zsh Completions ###\`);
|
|
110
|
+
|
|
111
|
+
success(\`${getAppTitle(context)} shell completions have been applied to Zsh configuration file at \${colors.bold(configPath)}. Please restart your terminal or run \\\`source \${configPath}\\\` for the changes to take effect.\`); `)
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
}), createComponent(ElseClause, { get children() {
|
|
115
|
+
return code`writeLine(" ------------------------------------------------- ");
|
|
116
|
+
writeLine(\`### Begin - ${getAppTitle(context)} Zsh Completions ###\`);
|
|
117
|
+
writeLine("");
|
|
118
|
+
SHELL_COMPLETIONS_DISPLAY.split("\\n").map(line => writeLine(line));
|
|
119
|
+
writeLine("");
|
|
120
|
+
writeLine(\`### End - ${getAppTitle(context)} Zsh Completions ###\`);
|
|
121
|
+
writeLine(" ------------------------------------------------- ");`;
|
|
122
|
+
} })];
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
];
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
//#endregion
|
|
131
|
+
export { ZshConfigCompletionsCommand };
|
|
132
|
+
//# sourceMappingURL=zsh-config-command.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zsh-config-command.mjs","names":[],"sources":["../../src/components/zsh-config-command.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code } from \"@alloy-js/core\";\nimport {\n ElseClause,\n FunctionDeclaration,\n IfStatement,\n InterfaceDeclaration,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { ReflectionKind } from \"@powerlines/deepkit/vendor/type\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport {\n InterfaceMember,\n TypescriptFile\n} from \"@powerlines/plugin-alloy/typescript\";\nimport {\n TSDoc,\n TSDocDefaultValue\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport { getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { joinPaths } from \"@stryke/path\";\nimport type { CompletionsPluginContext } from \"../types/plugin\";\n\n/**\n * The Zsh Completions - Configuration command's handler wrapper for the Shell Shock project.\n */\nexport function ZshConfigCompletionsCommand() {\n const context = usePowerlines<CompletionsPluginContext>();\n\n return (\n <TypescriptFile\n path={joinPaths(\n context.entryPath,\n \"completions\",\n \"zsh\",\n \"config\",\n \"command.ts\"\n )}\n imports={{\n \"node:os\": \"os\",\n \"node:path\": [\"join\"],\n \"node:fs/promises\": [\"readFile\", \"writeFile\"],\n \"../shared\": [\"SHELL_COMPLETIONS\", \"SHELL_COMPLETIONS_DISPLAY\"]\n }}\n builtinImports={{\n \"shell-shock:console\": [\"colors\", \"writeLine\", \"success\", \"warn\"]\n }}>\n <TSDoc heading=\"Options for the Zsh Completions - Configuration command.\" />\n <InterfaceDeclaration export name=\"ZshConfigCompletionsOptions\">\n <TSDoc heading=\"Should the generated completion script be written to console output instead of an actual file on disk? This is useful for debugging purposes or if you want to manually handle the output.\">\n <TSDocDefaultValue\n type={ReflectionKind.boolean}\n defaultValue={false}\n />\n </TSDoc>\n <InterfaceMember name=\"display\" optional type=\"boolean\" />\n </InterfaceDeclaration>\n <Spacing />\n <TSDoc heading=\"Handler logic for the \\`completions zsh config\\` command.\"></TSDoc>\n <FunctionDeclaration\n export\n default\n async\n name=\"handler\"\n parameters={[\n {\n name: \"options\",\n type: \"ZshConfigCompletionsOptions\",\n default: \"{}\"\n },\n {\n name: \"path\",\n type: \"string\",\n default: `\"~/.zshrc\"`\n }\n ]}>\n <IfStatement condition={code`options.display !== true`}>\n <VarDeclaration\n let\n name=\"configPath\"\n type=\"string\"\n initializer={code` path.includes(\".\") ? path : join(path, \".zshrc\");`}\n />\n <Spacing />\n <IfStatement condition={code`configPath.startsWith(\"~\")`}>\n {code`configPath = join(os.homedir(), configPath.replace(\"~\", \"\")); `}\n </IfStatement>\n <Spacing />\n <VarDeclaration\n let\n name=\"content\"\n type=\"string\"\n initializer={code`\"\";`}\n />\n <Spacing />\n {code`try {\n content = await readFile(configPath, \"utf8\");\n } catch (error) {\n if (typeof error === \"object\" && error !== null && \"code\" in error && error.code === \"ENOENT\") {\n // If the file doesn't exist, we can create it later when writing the completion script.\n warn(\\`Configuration file \\${colors.bold(configPath)} does not exist. It will be created when the completion script is written.\\`);\n } else {\n return { error };\n }\n }\n\n await writeFile(configPath, \\`\\${content}\\\\n\\\\n### Begin - ${getAppTitle(context)} Shell Completions ###\\\\n\\\\n\\${SHELL_COMPLETIONS} \\\\n\\\\n### End - ${getAppTitle(\n context\n )} Zsh Completions ###\\`);\n\n success(\\`${getAppTitle(\n context\n )} shell completions have been applied to Zsh configuration file at \\${colors.bold(configPath)}. Please restart your terminal or run \\\\\\`source \\${configPath}\\\\\\` for the changes to take effect.\\`); `}\n </IfStatement>\n <ElseClause>\n {code`writeLine(\" ------------------------------------------------- \");\n writeLine(\\`### Begin - ${getAppTitle(context)} Zsh Completions ###\\`);\n writeLine(\"\");\n SHELL_COMPLETIONS_DISPLAY.split(\"\\\\n\").map(line => writeLine(line));\n writeLine(\"\");\n writeLine(\\`### End - ${getAppTitle(context)} Zsh Completions ###\\`);\n writeLine(\" ------------------------------------------------- \");`}\n </ElseClause>\n </FunctionDeclaration>\n </TypescriptFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAiCA,SAAO,8BAAA;CACL,MAAK,UAAA,eAAA;AACL,QAAA,gBAAA,gBAAA;EACA,IAAM,OAAC;AACH,UAAG,UAAc,QAAO,WAAY,eAAY,OAAM,UAAA,aAAA;;EAE5D,SAAa;;GAEX,aAAA,CAAA,OAAA;GACI,oBAAmB,CAAA,YAAc,YAAU;GAC/C,aAAA,CAAA,qBAAA,4BAAA;GACF;EACE,gBAAgB;;;;;KAEhB;EACE,IAAC,WAAA;AACC,UAAM;IAAA,gBAAS,SAAA,EACb,SAAQ,4DACT,CAAC;IAAC,gBAAY,sBAAA;KACb,UAAK;KACL,MAAC;KACD,IAAC,WAAU;AACZ,aAAA,CAAA,gBAAA,SAAA;OACD,SAAS;OACN,IAAO,WAAO;AACT,eAAO,gBAAQ,qBAAA;SACb,IAAC,OAAU;AACT,iBAAK,eAAiB;;SAElC,cAAgB;SACP,CAAA;;OAER,CAAK,EAAC,gBAAiB,mBAAY;OACnC,MAAA;OACE,UAAa;OACX,MAAA;OACA,CAAC,CAAA;;KAEL,CAAC;IAAE,gBAAC,SAAA,EAAA,CAAA;IAAA,gBAAA,SAAA,EACH,SAAO,+DACR,CAAC;IAAC,gBAAgB,qBAAwB;KACzC,UAAA;KACD,WAAS;KACT,OAAM;KACN,MAAA;KACC,YAAA,CAAA;MACA,MAAA;MACA,MAAA;MACA,SAAM;MACN,EAAA;MACE,MAAA;MACA,MAAM;MACN,SAAS;MACV,CAAC;KACF,IAAG,WAAA;AACD,aAAA,CAAA,gBAAA,aAAA;OACE,WAAW,IAAC;OACZ,IAAI,WAAU;AACd,eAAS;SAAC,gBAAU,gBAAA;UACtB,OAAA;UACA,MAAA;UACD,MAAY;UACV,aAAA,IAAA;UACC,CAAA;SAAA,gBAAA,SAAA,EAAA,CAAA;SAAA,gBAAA,aAAA;UACI,WAAE,IAAU;UACZ,UAAQ,IAAA;UACZ,CAAA;SAAA,gBAAwB,SAAS,EAAE,CAAC;SAAE,gBAAkB,gBAAa;UACtE,OAAA;UACA,MAAS;UACT,MAAW;UACT,aAAgB,IAAE;UACnB,CAAA;SAAA,gBAAW,SAAA,EAAA,CAAA;SAAA,WAAA,IAAA;;;;;;;;;;;uEAWG,YAAA,QAAA,CAAA,oEAAA,YAAA,QAAA,CAAA;;sBAEN,YAAc,QAAQ,CAAC,uMAA0D;SAAA;;OAE1F,CAAC,EAAE,gBAAK,YAAA,EACP,IAAE,WAAS;AACX,cAAA,IAAA;sCACF,YAAA,QAAA,CAAA;;;;oCAIyB,YAAA,QAAA,CAAA;;SAGxB,CAAC,CAAA;;KAEL,CAAC;IAAC;;EAEN,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
|
+
let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
|
|
4
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
5
|
+
let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
6
|
+
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
7
|
+
let _powerlines_plugin_alloy_core = require("@powerlines/plugin-alloy/core");
|
|
8
|
+
let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
9
|
+
let _powerlines_plugin_alloy_typescript = require("@powerlines/plugin-alloy/typescript");
|
|
10
|
+
let _powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
|
|
11
|
+
let _stryke_path = require("@stryke/path");
|
|
12
|
+
let _stryke_string_format_snake_case = require("@stryke/string-format/snake-case");
|
|
13
|
+
|
|
14
|
+
//#region src/components/zsh-script-command.tsx
|
|
15
|
+
/**
|
|
16
|
+
* The Zsh Completions - Script command's handler wrapper for the Shell Shock project.
|
|
17
|
+
*/
|
|
18
|
+
function ZshScriptCompletionsCommand() {
|
|
19
|
+
const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
|
|
20
|
+
const bin = (0, _alloy_js_core.computed)(() => (0, _shell_shock_core_plugin_utils.getAppBin)(context));
|
|
21
|
+
const name = (0, _alloy_js_core.computed)(() => (0, _stryke_string_format_snake_case.snakeCase)(bin.value));
|
|
22
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.TypescriptFile, {
|
|
23
|
+
get path() {
|
|
24
|
+
return (0, _stryke_path.joinPaths)(context.entryPath, "completions", "zsh", "script", "command.ts");
|
|
25
|
+
},
|
|
26
|
+
imports: {
|
|
27
|
+
"node:os": "os",
|
|
28
|
+
"node:path": ["join"],
|
|
29
|
+
"node:fs/promises": ["readFile", "writeFile"],
|
|
30
|
+
"../shared": ["SHELL_COMPLETIONS", "SHELL_COMPLETIONS_DISPLAY"]
|
|
31
|
+
},
|
|
32
|
+
builtinImports: { "shell-shock:console": [
|
|
33
|
+
"colors",
|
|
34
|
+
"writeLine",
|
|
35
|
+
"success",
|
|
36
|
+
"warn"
|
|
37
|
+
] },
|
|
38
|
+
get children() {
|
|
39
|
+
return [
|
|
40
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "Options for the Zsh Completions - Script command." }),
|
|
41
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
42
|
+
"export": true,
|
|
43
|
+
name: "ZshScriptCompletionsOptions",
|
|
44
|
+
get children() {
|
|
45
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
46
|
+
heading: "Should the generated completion script be written to console output instead of an actual file on disk? This is useful for debugging purposes or if you want to manually handle the output.",
|
|
47
|
+
get children() {
|
|
48
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocDefaultValue, {
|
|
49
|
+
get type() {
|
|
50
|
+
return _powerlines_deepkit_vendor_type.ReflectionKind.boolean;
|
|
51
|
+
},
|
|
52
|
+
defaultValue: false
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.InterfaceMember, {
|
|
56
|
+
name: "display",
|
|
57
|
+
optional: true,
|
|
58
|
+
type: "boolean"
|
|
59
|
+
})];
|
|
60
|
+
}
|
|
61
|
+
}),
|
|
62
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core.Spacing, {}),
|
|
63
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "Handler logic for the \\`completions zsh script\\` command." }),
|
|
64
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
65
|
+
"export": true,
|
|
66
|
+
"default": true,
|
|
67
|
+
async: true,
|
|
68
|
+
name: "handler",
|
|
69
|
+
get parameters() {
|
|
70
|
+
return [{
|
|
71
|
+
name: "options",
|
|
72
|
+
type: "ZshScriptCompletionsOptions",
|
|
73
|
+
default: "{}"
|
|
74
|
+
}, {
|
|
75
|
+
name: "path",
|
|
76
|
+
type: "string",
|
|
77
|
+
default: `"${bin.value}-completions.zsh"`
|
|
78
|
+
}];
|
|
79
|
+
},
|
|
80
|
+
get children() {
|
|
81
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
82
|
+
condition: _alloy_js_core.code`options.display !== true`,
|
|
83
|
+
get children() {
|
|
84
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
85
|
+
"const": true,
|
|
86
|
+
name: "scriptPath",
|
|
87
|
+
type: "string",
|
|
88
|
+
initializer: _alloy_js_core.code` path.includes(".") ? \`\${path}.zsh\` : path;`
|
|
89
|
+
}), (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`await writeFile(scriptPath, \`# Zsh script to add completions for ${(0, _shell_shock_core_plugin_utils.getAppTitle)(context)}\\n\\n\${SHELL_COMPLETIONS}\`);
|
|
90
|
+
|
|
91
|
+
success(\`${(0, _shell_shock_core_plugin_utils.getAppTitle)(context)} Zsh completion script has been generated at \${colors.bold(scriptPath)}.\`);`)];
|
|
92
|
+
}
|
|
93
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseClause, { get children() {
|
|
94
|
+
return _alloy_js_core.code`writeLine(" ------------------------------------------------- ");
|
|
95
|
+
writeLine("#compdef ${bin.value} ");
|
|
96
|
+
writeLine("#compdef _${name.value} ${bin.value}");
|
|
97
|
+
writeLine("");
|
|
98
|
+
writeLine("# Zsh completion for ${(0, _shell_shock_core_plugin_utils.getAppTitle)(context)}");
|
|
99
|
+
writeLine("");
|
|
100
|
+
SHELL_COMPLETIONS_DISPLAY.split("\\n").map(line => writeLine(line));
|
|
101
|
+
writeLine(" ------------------------------------------------- ");`;
|
|
102
|
+
} })];
|
|
103
|
+
}
|
|
104
|
+
})
|
|
105
|
+
];
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
//#endregion
|
|
111
|
+
exports.ZshScriptCompletionsCommand = ZshScriptCompletionsCommand;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/components/zsh-script-command.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The Zsh Completions - Script command's handler wrapper for the Shell Shock project.
|
|
6
|
+
*/
|
|
7
|
+
declare function ZshScriptCompletionsCommand(): _$_alloy_js_core0.Children;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { ZshScriptCompletionsCommand };
|
|
10
|
+
//# sourceMappingURL=zsh-script-command.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zsh-script-command.d.cts","names":[],"sources":["../../src/components/zsh-script-command.tsx"],"mappings":";;;;;;iBA6CgB,2BAAA,CAAA,GAA2B,iBAAA,CAAA,QAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/components/zsh-script-command.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The Zsh Completions - Script command's handler wrapper for the Shell Shock project.
|
|
6
|
+
*/
|
|
7
|
+
declare function ZshScriptCompletionsCommand(): _$_alloy_js_core0.Children;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { ZshScriptCompletionsCommand };
|
|
10
|
+
//# sourceMappingURL=zsh-script-command.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zsh-script-command.d.mts","names":[],"sources":["../../src/components/zsh-script-command.tsx"],"mappings":";;;;;;iBA6CgB,2BAAA,CAAA,GAA2B,iBAAA,CAAA,QAAA"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { createComponent, memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { getAppBin, getAppTitle } from "@shell-shock/core/plugin-utils";
|
|
3
|
+
import { code, computed } from "@alloy-js/core";
|
|
4
|
+
import { ElseClause, FunctionDeclaration, IfStatement, InterfaceDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
5
|
+
import { ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
6
|
+
import { Spacing } from "@powerlines/plugin-alloy/core";
|
|
7
|
+
import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
8
|
+
import { InterfaceMember as InterfaceMember$1, TypescriptFile } from "@powerlines/plugin-alloy/typescript";
|
|
9
|
+
import { TSDoc as TSDoc$1, TSDocDefaultValue as TSDocDefaultValue$1 } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
10
|
+
import { joinPaths } from "@stryke/path";
|
|
11
|
+
import { snakeCase } from "@stryke/string-format/snake-case";
|
|
12
|
+
|
|
13
|
+
//#region src/components/zsh-script-command.tsx
|
|
14
|
+
/**
|
|
15
|
+
* The Zsh Completions - Script command's handler wrapper for the Shell Shock project.
|
|
16
|
+
*/
|
|
17
|
+
function ZshScriptCompletionsCommand() {
|
|
18
|
+
const context = usePowerlines();
|
|
19
|
+
const bin = computed(() => getAppBin(context));
|
|
20
|
+
const name = computed(() => snakeCase(bin.value));
|
|
21
|
+
return createComponent(TypescriptFile, {
|
|
22
|
+
get path() {
|
|
23
|
+
return joinPaths(context.entryPath, "completions", "zsh", "script", "command.ts");
|
|
24
|
+
},
|
|
25
|
+
imports: {
|
|
26
|
+
"node:os": "os",
|
|
27
|
+
"node:path": ["join"],
|
|
28
|
+
"node:fs/promises": ["readFile", "writeFile"],
|
|
29
|
+
"../shared": ["SHELL_COMPLETIONS", "SHELL_COMPLETIONS_DISPLAY"]
|
|
30
|
+
},
|
|
31
|
+
builtinImports: { "shell-shock:console": [
|
|
32
|
+
"colors",
|
|
33
|
+
"writeLine",
|
|
34
|
+
"success",
|
|
35
|
+
"warn"
|
|
36
|
+
] },
|
|
37
|
+
get children() {
|
|
38
|
+
return [
|
|
39
|
+
createComponent(TSDoc$1, { heading: "Options for the Zsh Completions - Script command." }),
|
|
40
|
+
createComponent(InterfaceDeclaration, {
|
|
41
|
+
"export": true,
|
|
42
|
+
name: "ZshScriptCompletionsOptions",
|
|
43
|
+
get children() {
|
|
44
|
+
return [createComponent(TSDoc$1, {
|
|
45
|
+
heading: "Should the generated completion script be written to console output instead of an actual file on disk? This is useful for debugging purposes or if you want to manually handle the output.",
|
|
46
|
+
get children() {
|
|
47
|
+
return createComponent(TSDocDefaultValue$1, {
|
|
48
|
+
get type() {
|
|
49
|
+
return ReflectionKind.boolean;
|
|
50
|
+
},
|
|
51
|
+
defaultValue: false
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}), createComponent(InterfaceMember$1, {
|
|
55
|
+
name: "display",
|
|
56
|
+
optional: true,
|
|
57
|
+
type: "boolean"
|
|
58
|
+
})];
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
createComponent(Spacing, {}),
|
|
62
|
+
createComponent(TSDoc$1, { heading: "Handler logic for the \\`completions zsh script\\` command." }),
|
|
63
|
+
createComponent(FunctionDeclaration, {
|
|
64
|
+
"export": true,
|
|
65
|
+
"default": true,
|
|
66
|
+
async: true,
|
|
67
|
+
name: "handler",
|
|
68
|
+
get parameters() {
|
|
69
|
+
return [{
|
|
70
|
+
name: "options",
|
|
71
|
+
type: "ZshScriptCompletionsOptions",
|
|
72
|
+
default: "{}"
|
|
73
|
+
}, {
|
|
74
|
+
name: "path",
|
|
75
|
+
type: "string",
|
|
76
|
+
default: `"${bin.value}-completions.zsh"`
|
|
77
|
+
}];
|
|
78
|
+
},
|
|
79
|
+
get children() {
|
|
80
|
+
return [createComponent(IfStatement, {
|
|
81
|
+
condition: code`options.display !== true`,
|
|
82
|
+
get children() {
|
|
83
|
+
return [createComponent(VarDeclaration, {
|
|
84
|
+
"const": true,
|
|
85
|
+
name: "scriptPath",
|
|
86
|
+
type: "string",
|
|
87
|
+
initializer: code` path.includes(".") ? \`\${path}.zsh\` : path;`
|
|
88
|
+
}), memo(() => code`await writeFile(scriptPath, \`# Zsh script to add completions for ${getAppTitle(context)}\\n\\n\${SHELL_COMPLETIONS}\`);
|
|
89
|
+
|
|
90
|
+
success(\`${getAppTitle(context)} Zsh completion script has been generated at \${colors.bold(scriptPath)}.\`);`)];
|
|
91
|
+
}
|
|
92
|
+
}), createComponent(ElseClause, { get children() {
|
|
93
|
+
return code`writeLine(" ------------------------------------------------- ");
|
|
94
|
+
writeLine("#compdef ${bin.value} ");
|
|
95
|
+
writeLine("#compdef _${name.value} ${bin.value}");
|
|
96
|
+
writeLine("");
|
|
97
|
+
writeLine("# Zsh completion for ${getAppTitle(context)}");
|
|
98
|
+
writeLine("");
|
|
99
|
+
SHELL_COMPLETIONS_DISPLAY.split("\\n").map(line => writeLine(line));
|
|
100
|
+
writeLine(" ------------------------------------------------- ");`;
|
|
101
|
+
} })];
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
];
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
export { ZshScriptCompletionsCommand };
|
|
111
|
+
//# sourceMappingURL=zsh-script-command.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zsh-script-command.mjs","names":[],"sources":["../../src/components/zsh-script-command.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, computed } from \"@alloy-js/core\";\nimport {\n ElseClause,\n FunctionDeclaration,\n IfStatement,\n InterfaceDeclaration,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { ReflectionKind } from \"@powerlines/deepkit/vendor/type\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport {\n InterfaceMember,\n TypescriptFile\n} from \"@powerlines/plugin-alloy/typescript\";\nimport {\n TSDoc,\n TSDocDefaultValue\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport { getAppBin, getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { joinPaths } from \"@stryke/path\";\nimport { snakeCase } from \"@stryke/string-format/snake-case\";\nimport type { CompletionsPluginContext } from \"../types/plugin\";\n\n/**\n * The Zsh Completions - Script command's handler wrapper for the Shell Shock project.\n */\nexport function ZshScriptCompletionsCommand() {\n const context = usePowerlines<CompletionsPluginContext>();\n\n const bin = computed(() => getAppBin(context));\n const name = computed(() => snakeCase(bin.value));\n\n return (\n <TypescriptFile\n path={joinPaths(\n context.entryPath,\n \"completions\",\n \"zsh\",\n \"script\",\n \"command.ts\"\n )}\n imports={{\n \"node:os\": \"os\",\n \"node:path\": [\"join\"],\n \"node:fs/promises\": [\"readFile\", \"writeFile\"],\n \"../shared\": [\"SHELL_COMPLETIONS\", \"SHELL_COMPLETIONS_DISPLAY\"]\n }}\n builtinImports={{\n \"shell-shock:console\": [\"colors\", \"writeLine\", \"success\", \"warn\"]\n }}>\n <TSDoc heading=\"Options for the Zsh Completions - Script command.\" />\n <InterfaceDeclaration export name=\"ZshScriptCompletionsOptions\">\n <TSDoc heading=\"Should the generated completion script be written to console output instead of an actual file on disk? This is useful for debugging purposes or if you want to manually handle the output.\">\n <TSDocDefaultValue\n type={ReflectionKind.boolean}\n defaultValue={false}\n />\n </TSDoc>\n <InterfaceMember name=\"display\" optional type=\"boolean\" />\n </InterfaceDeclaration>\n <Spacing />\n <TSDoc heading=\"Handler logic for the \\`completions zsh script\\` command.\"></TSDoc>\n <FunctionDeclaration\n export\n default\n async\n name=\"handler\"\n parameters={[\n {\n name: \"options\",\n type: \"ZshScriptCompletionsOptions\",\n default: \"{}\"\n },\n {\n name: \"path\",\n type: \"string\",\n default: `\"${bin.value}-completions.zsh\"`\n }\n ]}>\n <IfStatement condition={code`options.display !== true`}>\n <VarDeclaration\n const\n name=\"scriptPath\"\n type=\"string\"\n initializer={code` path.includes(\".\") ? \\`\\${path}.zsh\\` : path;`}\n />\n {code`await writeFile(scriptPath, \\`# Zsh script to add completions for ${getAppTitle(context)}\\\\n\\\\n\\${SHELL_COMPLETIONS}\\`);\n\n success(\\`${getAppTitle(\n context\n )} Zsh completion script has been generated at \\${colors.bold(scriptPath)}.\\`);`}\n </IfStatement>\n <ElseClause>\n {code`writeLine(\" ------------------------------------------------- \");\n writeLine(\"#compdef ${bin.value} \");\n writeLine(\"#compdef _${name.value} ${bin.value}\");\n writeLine(\"\");\n writeLine(\"# Zsh completion for ${getAppTitle(context)}\");\n writeLine(\"\");\n SHELL_COMPLETIONS_DISPLAY.split(\"\\\\n\").map(line => writeLine(line));\n writeLine(\" ------------------------------------------------- \");`}\n </ElseClause>\n </FunctionDeclaration>\n </TypescriptFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAkCA,SAAO,8BAAA;CACL,MAAA,UAAA,eAAA;CACA,MAAM,MAAC,eAAkB,UAAM,QAAW,CAAA;CAC5C,MAAQ,OAAC,eAAW,UAAoB,IAAC,MAAM,CAAA;AAC/C,QAAS,gBAAkB,gBAAa;EACxC,IAAQ,OAAC;AACH,UAAO,UAAC,QAAA,WAA2B,eAAe,OAAO,UAAA,aAAA;;EAE7D,SAAA;GACI,WAAK;GACT,aAAA,CAAA,OAAA;GACI,oBAAU,CAAA,YAAA,YAA8B;GAC5C,aAAgB,CAAA,qBAAc,4BAA2B;;EAEzD,gBAAY,EACZ,uBAA2B;GAAC;GAAU;GAAW;GAAA;GAAA;EAEjD,IAAM,WAAC;AACJ,UAAA;IAAA,gBAAA,SAAA,EACC,SAAM,qDACL,CAAC;IAAA,gBAAiB,sBAAA;KACjB,UAAC;KACD,MAAK;KACL,IAAC,WAAO;AACP,aAAQ,CAAA,gBAAE,SAAA;OACZ,SAAA;OACD,IAAS,WAAA;AACD,eAAM,gBAAG,qBAAA;SACT,IAAM,OAAO;AACV,iBAAQ,eAAe;;SAEjC,cAAA;SACD,CAAA;;OAEE,CAAA,EAAA,gBAAA,mBAAA;OACI,MAAC;OACN,UAAA;OACE,MAAM;OACJ,CAAA,CAAA;;KAEJ,CAAC;IAAE,gBAAgB,SAAK,EAAA,CAAA;IAAA,gBAAA,SAAA,EACvB,SAAG,+DACJ,CAAC;IAAE,gBAAK,qBAAA;KACP,UAAC;KACD,WAAA;KACD,OAAQ;KACR,MAAM;KACN,IAAA,aAAA;AACC,aAAA,CAAA;OACA,MAAA;OACA,MAAA;OACI,SAAS;OACb,EAAA;OACE,MAAA;OACE,MAAM;OACN,SAAO,IAAA,IAAA,MAAA;OACR,CAAC;;KAEJ,IAAE,WAAA;AACA,aAAO,CAAC,gBAAM,aAAA;OACZ,WAAO,IAAO;OACd,IAAA,WAAa;AACf,eAAA,CAAA,gBAAA,gBAAA;SACA,SAAA;SACD,MAAY;SACV,MAAA;SACC,aAAA,IAAA;SACA,CAAI,EAAE,WAAU,IAAA,qEAAA,YAAA,QAAA,CAAA;;wBAEJ,YAAY,QAAQ,CAAC,+EAAgC,CAAA;;OAElE,CAAA,EAAA,gBAAqB,YAAY;AAEhC,cAAS,IAAG;kCACV,IAAA,MAAA;mCACgB,KAAU,MAAM,GAAA,IAAA,MAAa;;8CAExC,YAAA,QAAA,CAAA;;;;SAKR,CAAC,CAAA;;KAEL,CAAC;IAAC;;EAEN,CAAC"}
|