@mediaproc/cli 0.7.0 → 0.8.1
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 +81 -26
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +10 -12
- package/dist/cli.js.map +1 -1
- package/dist/commands/add.d.ts.map +1 -1
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/delete.d.ts.map +1 -1
- package/dist/commands/delete.js +2 -0
- package/dist/commands/delete.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +0 -3
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/history.d.ts +0 -12
- package/dist/commands/history.d.ts.map +1 -1
- package/dist/commands/history.js +25 -163
- package/dist/commands/history.js.map +1 -1
- package/dist/commands/remove.d.ts.map +1 -1
- package/dist/commands/remove.js.map +1 -1
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +0 -4
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/stats.d.ts.map +1 -1
- package/dist/commands/stats.js +2 -0
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js.map +1 -1
- package/dist/history-manager.d.ts +27 -0
- package/dist/history-manager.d.ts.map +1 -0
- package/dist/history-manager.js +84 -0
- package/dist/history-manager.js.map +1 -0
- package/dist/plugin-api.d.ts +6 -7
- package/dist/plugin-api.d.ts.map +1 -1
- package/dist/plugin-manager.d.ts +6 -0
- package/dist/plugin-manager.d.ts.map +1 -1
- package/dist/plugin-manager.js +27 -0
- package/dist/plugin-manager.js.map +1 -1
- package/package.json +22 -29
- package/LICENSE +0 -72
- package/dist/__tests__/plugin-manager.test.d.ts +0 -2
- package/dist/__tests__/plugin-manager.test.d.ts.map +0 -1
- package/dist/__tests__/plugin-manager.test.js +0 -7
- package/dist/__tests__/plugin-manager.test.js.map +0 -1
- package/dist/utils/branding.d.ts +0 -11
- package/dist/utils/branding.d.ts.map +0 -1
- package/dist/utils/branding.js +0 -59
- package/dist/utils/branding.js.map +0 -1
package/dist/plugin-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-api.d.ts","sourceRoot":"","sources":["../src/plugin-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"plugin-api.d.ts","sourceRoot":"","sources":["../src/plugin-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClD;AAED,YAAY,EAAE,OAAO,EAAE,CAAC"}
|
package/dist/plugin-manager.d.ts
CHANGED
|
@@ -33,4 +33,10 @@ export declare class PluginManager {
|
|
|
33
33
|
*/
|
|
34
34
|
unloadPlugin(pluginName: string): boolean;
|
|
35
35
|
}
|
|
36
|
+
export declare const pluginManager: PluginManager;
|
|
37
|
+
/**
|
|
38
|
+
* Get the plugin name for a given command name.
|
|
39
|
+
* Checks loaded plugins for a command match, otherwise returns 'core'.
|
|
40
|
+
*/
|
|
41
|
+
export declare function getPluginNameForCommand(commandName: string): string;
|
|
36
42
|
//# sourceMappingURL=plugin-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-manager.d.ts","sourceRoot":"","sources":["../src/plugin-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,M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kB,IAAI,MAAM,EAAE;IAI9B;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS;IAI1D;;OAEG;IACH,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;CAQ1C;AAED,eAAO,MAAM,aAAa,eAAsB,CAAC;AAEjD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAmBnE"}
|
package/dist/plugin-manager.js
CHANGED
|
@@ -83,4 +83,31 @@ export class PluginManager {
|
|
|
83
83
|
return false;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
+
// Export a singleton PluginManager instance
|
|
87
|
+
export const pluginManager = new PluginManager();
|
|
88
|
+
/**
|
|
89
|
+
* Get the plugin name for a given command name.
|
|
90
|
+
* Checks loaded plugins for a command match, otherwise returns 'core'.
|
|
91
|
+
*/
|
|
92
|
+
export function getPluginNameForCommand(commandName) {
|
|
93
|
+
for (const [pluginName, plugin] of pluginManager['plugins'].entries()) {
|
|
94
|
+
// If plugin has a 'commands' array property (non-standard, but some plugins may add it)
|
|
95
|
+
if (plugin && plugin.commands && Array.isArray(plugin.commands)) {
|
|
96
|
+
if (plugin.commands.includes(commandName)) {
|
|
97
|
+
return pluginName;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// If plugin has a 'getCommands' method (non-standard, but some plugins may add it)
|
|
101
|
+
if (plugin && typeof plugin.getCommands === 'function') {
|
|
102
|
+
try {
|
|
103
|
+
const cmds = plugin.getCommands();
|
|
104
|
+
if (Array.isArray(cmds) && cmds.includes(commandName)) {
|
|
105
|
+
return pluginName;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
catch { }
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return 'core';
|
|
112
|
+
}
|
|
86
113
|
//# sourceMappingURL=plugin-manager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-manager.js","s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B,CAAC;YACH,CAAC;YAAC,MAAM,CAAC,CAAA,CAAC;QACZ,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediaproc/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Universal media processing CLI with plugin architecture",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,16 +15,8 @@
|
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "tsc",
|
|
18
|
-
"build:all": "pnpm build && pnpm --filter '@mediaproc/*' build",
|
|
19
18
|
"clean": "rm -rf dist",
|
|
20
|
-
"
|
|
21
|
-
"dev": "tsc --watch",
|
|
22
|
-
"test": "jest",
|
|
23
|
-
"test:watch": "jest --watch",
|
|
24
|
-
"test:coverage": "jest --coverage",
|
|
25
|
-
"test:all": "pnpm test && pnpm --filter '@mediaproc/*' test",
|
|
26
|
-
"prepublishOnly": "pnpm clean && pnpm build",
|
|
27
|
-
"prepare": "pnpm build"
|
|
19
|
+
"dev": "tsc --watch"
|
|
28
20
|
},
|
|
29
21
|
"keywords": [
|
|
30
22
|
"media",
|
|
@@ -45,37 +37,38 @@
|
|
|
45
37
|
"license": "MIT",
|
|
46
38
|
"repository": {
|
|
47
39
|
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/0xshariq/mediaproc
|
|
40
|
+
"url": "git+https://github.com/0xshariq/mediaproc.git"
|
|
49
41
|
},
|
|
50
42
|
"bugs": {
|
|
51
|
-
"url": "https://github.com/0xshariq/mediaproc
|
|
43
|
+
"url": "https://github.com/0xshariq/mediaproc/issues"
|
|
52
44
|
},
|
|
53
|
-
"homepage": "https://github.com/0xshariq/mediaproc
|
|
45
|
+
"homepage": "https://github.com/0xshariq/mediaproc#readme",
|
|
54
46
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
47
|
+
"node": ">=22.0.0"
|
|
56
48
|
},
|
|
57
49
|
"dependencies": {
|
|
58
|
-
"@gltf-transform/cli": "^4.
|
|
59
|
-
"@gltf-transform/core": "^4.
|
|
60
|
-
"@lottiefiles/dotlottie-web": "^0.
|
|
61
|
-
"@mediaproc/
|
|
62
|
-
"
|
|
50
|
+
"@gltf-transform/cli": "^4.3.0",
|
|
51
|
+
"@gltf-transform/core": "^4.3.0",
|
|
52
|
+
"@lottiefiles/dotlottie-web": "^0.61.0",
|
|
53
|
+
"@mediaproc/core": "^1.7.0",
|
|
54
|
+
"boxen": "^8.0.1",
|
|
55
|
+
"chalk": "^5.6.2",
|
|
63
56
|
"commander": "^14.0.2",
|
|
64
57
|
"execa": "^9.6.1",
|
|
65
58
|
"ghostscript4js": "^3.2.3",
|
|
66
|
-
"node-
|
|
67
|
-
"
|
|
68
|
-
"
|
|
59
|
+
"node-cron": "^4.2.1",
|
|
60
|
+
"node-poppler": "^9.1.0",
|
|
61
|
+
"ora": "^9.1.0",
|
|
62
|
+
"shaka-player": "^4.16.14",
|
|
69
63
|
"sharp": "^0.34.5",
|
|
70
|
-
"tesseract.js": "^7.0.0"
|
|
64
|
+
"tesseract.js": "^7.0.0",
|
|
65
|
+
"yaml": "^2.8.2",
|
|
66
|
+
"zod": "^4.3.6"
|
|
71
67
|
},
|
|
72
68
|
"devDependencies": {
|
|
73
|
-
"@
|
|
74
|
-
"@types/jest": "^30.0.0",
|
|
75
|
-
"@types/node": "^25.0.3",
|
|
76
|
-
"jest": "^30.2.0",
|
|
77
|
-
"ts-jest": "^29.4.6",
|
|
69
|
+
"@types/node": "^25.0.10",
|
|
78
70
|
"ts-node": "^10.9.2",
|
|
79
|
-
"typescript": "^5.
|
|
71
|
+
"typescript": "^5.9.3",
|
|
72
|
+
"vitest": "^4.0.18"
|
|
80
73
|
}
|
|
81
74
|
}
|
package/LICENSE
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 0xshariq (https://github.com/0xshariq)
|
|
4
|
-
|
|
5
|
-
Original Author: 0xshariq
|
|
6
|
-
Project: MediaProc - Universal Media Processing CLI
|
|
7
|
-
Repository: https://github.com/0xshariq/mediaproc-cli
|
|
8
|
-
|
|
9
|
-
================================================================================
|
|
10
|
-
|
|
11
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
-
in the Software without restriction, including without limitation the rights
|
|
14
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
-
furnished to do so, subject to the following conditions:
|
|
17
|
-
|
|
18
|
-
The above copyright notice and this permission notice shall be included in all
|
|
19
|
-
copies or substantial portions of the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
-
SOFTWARE.
|
|
28
|
-
|
|
29
|
-
================================================================================
|
|
30
|
-
|
|
31
|
-
ATTRIBUTION REQUIREMENTS:
|
|
32
|
-
|
|
33
|
-
1. You MUST retain the above copyright notice in all copies or substantial
|
|
34
|
-
portions of the Software.
|
|
35
|
-
|
|
36
|
-
2. You MUST give appropriate credit to the original author (0xshariq) when:
|
|
37
|
-
|
|
38
|
-
- Distributing the Software or derivative works
|
|
39
|
-
- Using the Software in commercial products
|
|
40
|
-
- Publishing modified versions
|
|
41
|
-
- Including the Software in larger projects
|
|
42
|
-
|
|
43
|
-
3. Suggested attribution format:
|
|
44
|
-
"Powered by MediaProc (https://github.com/0xshariq/mediaproc-cli)
|
|
45
|
-
Created by 0xshariq"
|
|
46
|
-
|
|
47
|
-
4. Contributors to this project retain copyright on their individual
|
|
48
|
-
contributions while agreeing to license them under this MIT License.
|
|
49
|
-
|
|
50
|
-
================================================================================
|
|
51
|
-
|
|
52
|
-
PERMISSIONS SUMMARY:
|
|
53
|
-
|
|
54
|
-
✓ Commercial use
|
|
55
|
-
✓ Modification
|
|
56
|
-
✓ Distribution
|
|
57
|
-
✓ Private use
|
|
58
|
-
✓ Patent use (if applicable)
|
|
59
|
-
|
|
60
|
-
✓ You can fork and create derivative works
|
|
61
|
-
✓ You can use it in proprietary software
|
|
62
|
-
✓ You can sublicense under different terms
|
|
63
|
-
✓ You can use it without restriction
|
|
64
|
-
|
|
65
|
-
✗ No warranty provided
|
|
66
|
-
✗ Authors not liable for damages
|
|
67
|
-
✗ Copyright notice must be included
|
|
68
|
-
|
|
69
|
-
================================================================================
|
|
70
|
-
|
|
71
|
-
For questions about licensing, please open an issue at:
|
|
72
|
-
https://github.com/0xshariq/mediaproc-cli/issues
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-manager.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/plugin-manager.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-manager.test.js","sourceRoot":"","sources":["../../src/__tests__/plugin-manager.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,IAAI,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAC5B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/utils/branding.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Show CLI branding footer with documentation and GitHub links
|
|
3
|
-
*/
|
|
4
|
-
export declare function showBranding(): void;
|
|
5
|
-
/**
|
|
6
|
-
* Show plugin branding footer with version
|
|
7
|
-
* @param pluginName - Name of the plugin (e.g., 'image', 'video', 'audio')
|
|
8
|
-
* @param pluginPath - Path to plugin's package.json
|
|
9
|
-
*/
|
|
10
|
-
export declare function showPluginBranding(pluginName: string, pluginPath: string): void;
|
|
11
|
-
//# sourceMappingURL=branding.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"branding.d.ts","sourceRoot":"","sources":["../../src/utils/branding.ts"],"names":[],"mappings":"AAmCA;;GAEG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAOnC;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAO/E"}
|
package/dist/utils/branding.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'fs';
|
|
2
|
-
import { join, dirname } from 'path';
|
|
3
|
-
import { fileURLToPath } from 'url';
|
|
4
|
-
/**
|
|
5
|
-
* Get version from package.json
|
|
6
|
-
*/
|
|
7
|
-
function getVersion(packagePath) {
|
|
8
|
-
try {
|
|
9
|
-
const packageJson = JSON.parse(readFileSync(packagePath, 'utf-8'));
|
|
10
|
-
return packageJson.version || '0.0.0';
|
|
11
|
-
}
|
|
12
|
-
catch {
|
|
13
|
-
return '0.0.0';
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get CLI version from root package.json
|
|
18
|
-
*/
|
|
19
|
-
function getCliVersion() {
|
|
20
|
-
try {
|
|
21
|
-
// For ES modules, use import.meta.url
|
|
22
|
-
if (typeof import.meta.url !== 'undefined') {
|
|
23
|
-
const currentDir = dirname(fileURLToPath(import.meta.url));
|
|
24
|
-
const packagePath = join(currentDir, '../../package.json');
|
|
25
|
-
return getVersion(packagePath);
|
|
26
|
-
}
|
|
27
|
-
// Fallback: try from process.cwd()
|
|
28
|
-
const packagePath = join(process.cwd(), 'package.json');
|
|
29
|
-
return getVersion(packagePath);
|
|
30
|
-
}
|
|
31
|
-
catch {
|
|
32
|
-
return '0.6.0'; // Fallback version
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Show CLI branding footer with documentation and GitHub links
|
|
37
|
-
*/
|
|
38
|
-
export function showBranding() {
|
|
39
|
-
const version = getCliVersion();
|
|
40
|
-
console.log('\n' + '─'.repeat(60));
|
|
41
|
-
console.log(` 💙 Powered by MediaProc CLI v${version}`);
|
|
42
|
-
console.log(' 📚 Documentation: \x1b[36mhttps://docs-mediaproc.vercel.app/\x1b[0m');
|
|
43
|
-
console.log(' ⭐ Star us: \x1b[36mhttps://github.com/0xshariq/mediaproc-cli\x1b[0m');
|
|
44
|
-
console.log('─'.repeat(60) + '\n');
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Show plugin branding footer with version
|
|
48
|
-
* @param pluginName - Name of the plugin (e.g., 'image', 'video', 'audio')
|
|
49
|
-
* @param pluginPath - Path to plugin's package.json
|
|
50
|
-
*/
|
|
51
|
-
export function showPluginBranding(pluginName, pluginPath) {
|
|
52
|
-
const version = getVersion(pluginPath);
|
|
53
|
-
console.log('\n' + '─'.repeat(60));
|
|
54
|
-
console.log(` 💙 ${pluginName.charAt(0).toUpperCase() + pluginName.slice(1)} Plugin v${version} · Powered by MediaProc`);
|
|
55
|
-
console.log(' 📚 Documentation: \x1b[36mhttps://docs-mediaproc.vercel.app/\x1b[0m');
|
|
56
|
-
console.log(' ⭐ Star us: \x1b[36mhttps://github.com/0xshariq/mediaproc-cli\x1b[0m');
|
|
57
|
-
console.log('─'.repeat(60) + '\n');
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=branding.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"branding.js","sourceRoot":"","sources":["../../src/utils/branding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC;;GAEG;AACH,SAAS,UAAU,CAAC,WAAmB;IACrC,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;QACnE,OAAO,WAAW,CAAC,OAAO,IAAI,OAAO,CAAC;IACxC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC;IACjB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,aAAa;IACpB,IAAI,CAAC;QACH,sCAAsC;QACtC,IAAI,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,WAAW,EAAE,CAAC;YAC3C,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YAC3D,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC;YAC3D,OAAO,UAAU,CAAC,WAAW,CAAC,CAAC;QACjC,CAAC;QACD,mCAAmC;QACnC,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;QACxD,OAAO,UAAU,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC,C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