trimprompt 1.0.31 → 1.0.33

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/filters/python.js CHANGED
@@ -1,130 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filterPytest = filterPytest;
4
- exports.filterPipInstall = filterPipInstall;
5
- function filterPytest(stdout) {
6
- const lines = stdout.split('\n');
7
- let passed = 0;
8
- let failed = 0;
9
- let skipped = 0;
10
- let xfailed = 0;
11
- let xpassed = 0;
12
- const failureBlocks = [];
13
- let currentFailure = [];
14
- let inFailureSection = false;
15
- for (const line of lines) {
16
- const trimmed = line.trim();
17
- if (trimmed.startsWith('=== FAILURES ===') || trimmed.startsWith('=== ERRORS ===')) {
18
- inFailureSection = true;
19
- continue;
20
- }
21
- else if (trimmed.startsWith('=== short test summary info ===') || (trimmed.startsWith('===') && trimmed.includes('passed'))) {
22
- inFailureSection = false;
23
- if (currentFailure.length > 0) {
24
- failureBlocks.push(currentFailure);
25
- currentFailure = [];
26
- }
27
- }
28
- if (inFailureSection) {
29
- if (trimmed.startsWith('___')) {
30
- if (currentFailure.length > 0) {
31
- failureBlocks.push(currentFailure);
32
- currentFailure = [];
33
- }
34
- currentFailure.push(trimmed);
35
- }
36
- else if (trimmed.length > 0) {
37
- currentFailure.push(line);
38
- }
39
- continue;
40
- }
41
- if (trimmed.startsWith('===') && trimmed.includes(' in ')) {
42
- const matchPassed = trimmed.match(/(\d+)\s+passed/);
43
- const matchFailed = trimmed.match(/(\d+)\s+failed/);
44
- const matchSkipped = trimmed.match(/(\d+)\s+skipped/);
45
- const matchXfailed = trimmed.match(/(\d+)\s+xfailed/);
46
- const matchXpassed = trimmed.match(/(\d+)\s+xpassed/);
47
- if (matchPassed)
48
- passed = parseInt(matchPassed[1]);
49
- if (matchFailed)
50
- failed = parseInt(matchFailed[1]);
51
- if (matchSkipped)
52
- skipped = parseInt(matchSkipped[1]);
53
- if (matchXfailed)
54
- xfailed = parseInt(matchXfailed[1]);
55
- if (matchXpassed)
56
- xpassed = parseInt(matchXpassed[1]);
57
- }
58
- }
59
- if (currentFailure.length > 0) {
60
- failureBlocks.push(currentFailure);
61
- }
62
- if (passed === 0 && failed === 0 && skipped === 0 && xfailed === 0 && xpassed === 0) {
63
- if (stdout.includes('passed') && !stdout.includes('failed')) {
64
- return "Pytest: All tests passed";
65
- }
66
- return stdout;
67
- }
68
- if (failed === 0 && passed > 0 && skipped === 0 && xfailed === 0 && xpassed === 0) {
69
- return `Pytest: ${passed} passed`;
70
- }
71
- const summaryParts = [];
72
- summaryParts.push(`Pytest: ${passed} passed`);
73
- if (failed > 0)
74
- summaryParts.push(`${failed} failed`);
75
- if (skipped > 0)
76
- summaryParts.push(`${skipped} skipped`);
77
- if (xfailed > 0)
78
- summaryParts.push(`${xfailed} xfailed`);
79
- if (xpassed > 0)
80
- summaryParts.push(`${xpassed} xpassed (warning!)`);
81
- const result = [summaryParts.join(', ')];
82
- if (failureBlocks.length > 0) {
83
- result.push("\nFailures:");
84
- const limit = 3;
85
- const printedFailures = failureBlocks.slice(0, limit);
86
- for (let i = 0; i < printedFailures.length; i++) {
87
- const block = printedFailures[i];
88
- const header = block[0].replace(/_/g, '').trim();
89
- result.push(` ${i + 1}. [FAIL] ${header}`);
90
- const body = block.slice(1);
91
- const essentialLines = body.filter(line => {
92
- const t = line.trim();
93
- return t.startsWith('>') || t.startsWith('E ') || t.includes('.py:') || t.includes('AssertionError:');
94
- });
95
- for (const line of essentialLines.slice(0, 8)) {
96
- result.push(` ${line}`);
97
- }
98
- if (essentialLines.length > 8) {
99
- result.push(` ... (${essentialLines.length - 8} lines of stacktrace truncated)`);
100
- }
101
- }
102
- if (failureBlocks.length > limit) {
103
- result.push(` ... +${failureBlocks.length - limit} more failures truncated`);
104
- }
105
- }
106
- return result.join('\n');
107
- }
108
- function filterPipInstall(stdout) {
109
- const lines = stdout.split('\n');
110
- const installed = [];
111
- for (const line of lines) {
112
- const trimmed = line.trim();
113
- if (trimmed.startsWith('Successfully installed')) {
114
- installed.push(trimmed);
115
- }
116
- }
117
- if (installed.length > 0) {
118
- return installed.join('\n');
119
- }
120
- return lines
121
- .filter(line => {
122
- const t = line.trim();
123
- return !t.startsWith('Collecting') &&
124
- !t.startsWith('Downloading') &&
125
- !t.includes('Using cached') &&
126
- !t.startsWith('Requirement already satisfied');
127
- })
128
- .join('\n')
129
- .trim();
130
- }
1
+ 'use strict';const a0_0x5b8e81=a0_0x3ea6;(function(_0x1e0a4b,_0x4bc284){const _0x4f8b47=a0_0x3ea6,_0x560e79=_0x1e0a4b();while(!![]){try{const _0xd09f72=-parseInt(_0x4f8b47(0x88))/0x1*(parseInt(_0x4f8b47(0x84))/0x2)+-parseInt(_0x4f8b47(0x92))/0x3*(parseInt(_0x4f8b47(0x8a))/0x4)+parseInt(_0x4f8b47(0xa3))/0x5+parseInt(_0x4f8b47(0x9c))/0x6+-parseInt(_0x4f8b47(0x9b))/0x7+-parseInt(_0x4f8b47(0x85))/0x8+parseInt(_0x4f8b47(0xb3))/0x9;if(_0xd09f72===_0x4bc284)break;else _0x560e79['push'](_0x560e79['shift']());}catch(_0x45066d){_0x560e79['push'](_0x560e79['shift']());}}}(a0_0x57de,0xa966d));function a0_0x3ea6(_0x94fe44,_0x3cadc4){const _0x57de99=a0_0x57de();return a0_0x3ea6=function(_0x3ea6e7,_0x6d1745){_0x3ea6e7=_0x3ea6e7-0x84;let _0x2231dc=_0x57de99[_0x3ea6e7];return _0x2231dc;},a0_0x3ea6(_0x94fe44,_0x3cadc4);}Object[a0_0x5b8e81(0x98)](exports,a0_0x5b8e81(0xae),{'value':!![]}),exports[a0_0x5b8e81(0x9d)]=filterPytest,exports[a0_0x5b8e81(0x9f)]=filterPipInstall;function a0_0x57de(){const _0x458821=['\x20more\x20failures\x20truncated','\x20passed','join','push','\x20skipped','158019vTNgUE','E\x20\x20\x20','match','Requirement\x20already\x20satisfied','===\x20FAILURES\x20===','Successfully\x20installed','defineProperty','includes','startsWith','9099517smIcgU','4485192dVnIPW','filterPytest','\x20xpassed\x20(warning!)','filterPipInstall','filter','Pytest:\x20','length','3551440ibtqzD','Downloading','\x20\x20\x20\x20...\x20(','split','===\x20ERRORS\x20===','\x20xfailed','replace','===','\x20failed','.\x20[FAIL]\x20','\x20\x20\x20\x20','__esModule','Collecting','trim','slice','AssertionError:','16696989AFPmcH','3806JjImpi','3283832ifqxun','Using\x20cached','\x20in\x20','7wsYNNo','___','68fbSNHT','passed','\x20lines\x20of\x20stacktrace\x20truncated)'];a0_0x57de=function(){return _0x458821;};return a0_0x57de();}function filterPytest(_0x3e8a89){const _0x86f268=a0_0x5b8e81,_0x3f5106=_0x3e8a89[_0x86f268(0xa6)]('\x0a');let _0x484988=0x0,_0x1d97a0=0x0,_0x5ba76d=0x0,_0x4cc191=0x0,_0x185293=0x0;const _0x167a7e=[];let _0x133212=[],_0x29fcda=![];for(const _0x4957be of _0x3f5106){const _0x11831c=_0x4957be[_0x86f268(0xb0)]();if(_0x11831c['startsWith'](_0x86f268(0x96))||_0x11831c[_0x86f268(0x9a)](_0x86f268(0xa7))){_0x29fcda=!![];continue;}else(_0x11831c[_0x86f268(0x9a)]('===\x20short\x20test\x20summary\x20info\x20===')||_0x11831c['startsWith']('===')&&_0x11831c['includes'](_0x86f268(0x8b)))&&(_0x29fcda=![],_0x133212[_0x86f268(0xa2)]>0x0&&(_0x167a7e[_0x86f268(0x90)](_0x133212),_0x133212=[]));if(_0x29fcda){if(_0x11831c[_0x86f268(0x9a)](_0x86f268(0x89)))_0x133212[_0x86f268(0xa2)]>0x0&&(_0x167a7e[_0x86f268(0x90)](_0x133212),_0x133212=[]),_0x133212[_0x86f268(0x90)](_0x11831c);else _0x11831c['length']>0x0&&_0x133212[_0x86f268(0x90)](_0x4957be);continue;}if(_0x11831c['startsWith'](_0x86f268(0xaa))&&_0x11831c[_0x86f268(0x99)](_0x86f268(0x87))){const _0x48a910=_0x11831c['match'](/(\d+)\s+passed/),_0x545e8a=_0x11831c[_0x86f268(0x94)](/(\d+)\s+failed/),_0x2f4ac6=_0x11831c['match'](/(\d+)\s+skipped/),_0x2450da=_0x11831c[_0x86f268(0x94)](/(\d+)\s+xfailed/),_0x57581b=_0x11831c['match'](/(\d+)\s+xpassed/);if(_0x48a910)_0x484988=parseInt(_0x48a910[0x1]);if(_0x545e8a)_0x1d97a0=parseInt(_0x545e8a[0x1]);if(_0x2f4ac6)_0x5ba76d=parseInt(_0x2f4ac6[0x1]);if(_0x2450da)_0x4cc191=parseInt(_0x2450da[0x1]);if(_0x57581b)_0x185293=parseInt(_0x57581b[0x1]);}}_0x133212['length']>0x0&&_0x167a7e['push'](_0x133212);if(_0x484988===0x0&&_0x1d97a0===0x0&&_0x5ba76d===0x0&&_0x4cc191===0x0&&_0x185293===0x0){if(_0x3e8a89[_0x86f268(0x99)]('passed')&&!_0x3e8a89[_0x86f268(0x99)]('failed'))return'Pytest:\x20All\x20tests\x20passed';return _0x3e8a89;}if(_0x1d97a0===0x0&&_0x484988>0x0&&_0x5ba76d===0x0&&_0x4cc191===0x0&&_0x185293===0x0)return _0x86f268(0xa1)+_0x484988+_0x86f268(0x8e);const _0x123d04=[];_0x123d04[_0x86f268(0x90)](_0x86f268(0xa1)+_0x484988+_0x86f268(0x8e));if(_0x1d97a0>0x0)_0x123d04['push'](_0x1d97a0+_0x86f268(0xab));if(_0x5ba76d>0x0)_0x123d04[_0x86f268(0x90)](_0x5ba76d+_0x86f268(0x91));if(_0x4cc191>0x0)_0x123d04[_0x86f268(0x90)](_0x4cc191+_0x86f268(0xa8));if(_0x185293>0x0)_0x123d04[_0x86f268(0x90)](_0x185293+_0x86f268(0x9e));const _0x408642=[_0x123d04['join'](',\x20')];if(_0x167a7e[_0x86f268(0xa2)]>0x0){_0x408642[_0x86f268(0x90)]('\x0aFailures:');const _0x1ed79d=0x3,_0x360411=_0x167a7e[_0x86f268(0xb1)](0x0,_0x1ed79d);for(let _0x1a4c6c=0x0;_0x1a4c6c<_0x360411[_0x86f268(0xa2)];_0x1a4c6c++){const _0xeb14a3=_0x360411[_0x1a4c6c],_0x4c02ee=_0xeb14a3[0x0][_0x86f268(0xa9)](/_/g,'')[_0x86f268(0xb0)]();_0x408642[_0x86f268(0x90)]('\x20\x20'+(_0x1a4c6c+0x1)+_0x86f268(0xac)+_0x4c02ee);const _0x1db635=_0xeb14a3[_0x86f268(0xb1)](0x1),_0x1269ea=_0x1db635[_0x86f268(0xa0)](_0x40539a=>{const _0x17eb59=_0x86f268,_0x22d760=_0x40539a[_0x17eb59(0xb0)]();return _0x22d760[_0x17eb59(0x9a)]('>')||_0x22d760[_0x17eb59(0x9a)](_0x17eb59(0x93))||_0x22d760[_0x17eb59(0x99)]('.py:')||_0x22d760[_0x17eb59(0x99)](_0x17eb59(0xb2));});for(const _0x52f355 of _0x1269ea[_0x86f268(0xb1)](0x0,0x8)){_0x408642[_0x86f268(0x90)](_0x86f268(0xad)+_0x52f355);}_0x1269ea[_0x86f268(0xa2)]>0x8&&_0x408642[_0x86f268(0x90)](_0x86f268(0xa5)+(_0x1269ea['length']-0x8)+_0x86f268(0x8c));}_0x167a7e[_0x86f268(0xa2)]>_0x1ed79d&&_0x408642[_0x86f268(0x90)]('\x20\x20...\x20+'+(_0x167a7e[_0x86f268(0xa2)]-_0x1ed79d)+_0x86f268(0x8d));}return _0x408642[_0x86f268(0x8f)]('\x0a');}function filterPipInstall(_0x5668c8){const _0x20ca88=a0_0x5b8e81,_0x4811c3=_0x5668c8[_0x20ca88(0xa6)]('\x0a'),_0x259244=[];for(const _0x4611d2 of _0x4811c3){const _0x28c4f7=_0x4611d2[_0x20ca88(0xb0)]();_0x28c4f7[_0x20ca88(0x9a)](_0x20ca88(0x97))&&_0x259244[_0x20ca88(0x90)](_0x28c4f7);}if(_0x259244[_0x20ca88(0xa2)]>0x0)return _0x259244['join']('\x0a');return _0x4811c3[_0x20ca88(0xa0)](_0x4f2cc1=>{const _0x20c62d=_0x20ca88,_0x5d9193=_0x4f2cc1[_0x20c62d(0xb0)]();return!_0x5d9193[_0x20c62d(0x9a)](_0x20c62d(0xaf))&&!_0x5d9193['startsWith'](_0x20c62d(0xa4))&&!_0x5d9193[_0x20c62d(0x99)](_0x20c62d(0x86))&&!_0x5d9193[_0x20c62d(0x9a)](_0x20c62d(0x95));})[_0x20ca88(0x8f)]('\x0a')[_0x20ca88(0xb0)]();}
package/filters/rust.js CHANGED
@@ -1,115 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filterCargoTest = filterCargoTest;
4
- exports.filterCargoBuild = filterCargoBuild;
5
- function filterCargoTest(stdout) {
6
- const lines = stdout.split('\n');
7
- let passed = 0;
8
- let failed = 0;
9
- let ignored = 0;
10
- let measured = 0;
11
- const failedTests = [];
12
- let inFailures = false;
13
- let currentFailure = [];
14
- for (const line of lines) {
15
- const trimmed = line.trim();
16
- const resultMatch = trimmed.match(/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);
17
- if (resultMatch) {
18
- passed += parseInt(resultMatch[2]);
19
- failed += parseInt(resultMatch[3]);
20
- ignored += parseInt(resultMatch[4]);
21
- measured += parseInt(resultMatch[5]);
22
- continue;
23
- }
24
- if (trimmed === 'failures:' || trimmed === '---- failures ----') {
25
- inFailures = true;
26
- continue;
27
- }
28
- if (inFailures) {
29
- if (trimmed.startsWith('---- ') && trimmed.endsWith(' ----')) {
30
- if (currentFailure.length > 0)
31
- failedTests.push(currentFailure.join('\n'));
32
- currentFailure = [trimmed.replace(/^-+\s*/, '').replace(/\s*-+$/, '')];
33
- }
34
- else if (trimmed === 'failures:' || trimmed.startsWith('test result:')) {
35
- if (currentFailure.length > 0)
36
- failedTests.push(currentFailure.join('\n'));
37
- currentFailure = [];
38
- inFailures = false;
39
- }
40
- else if (trimmed.length > 0) {
41
- currentFailure.push(line);
42
- }
43
- }
44
- }
45
- if (currentFailure.length > 0)
46
- failedTests.push(currentFailure.join('\n'));
47
- if (passed === 0 && failed === 0 && ignored === 0) {
48
- if (stdout.includes('test result: ok'))
49
- return "Cargo test: all tests passed";
50
- return stdout;
51
- }
52
- if (failed === 0) {
53
- const parts = [`Cargo test: ${passed} passed`];
54
- if (ignored > 0)
55
- parts.push(`${ignored} ignored`);
56
- return parts.join(', ');
57
- }
58
- const result = [`Cargo test: ${passed} passed, ${failed} failed, ${ignored} ignored`];
59
- if (failedTests.length > 0) {
60
- result.push("\nFailures:");
61
- const limit = 3;
62
- for (let i = 0; i < Math.min(failedTests.length, limit); i++) {
63
- const failLines = failedTests[i].split('\n');
64
- result.push(` ${i + 1}. ${failLines[0]}`);
65
- const body = failLines.slice(1);
66
- const essential = body.filter(l => l.trim().startsWith('thread') || l.includes('panicked') || l.includes('assert') || l.includes('left:') || l.includes('right:'));
67
- for (const l of essential.slice(0, 5)) {
68
- result.push(` ${l.trim()}`);
69
- }
70
- }
71
- if (failedTests.length > limit) {
72
- result.push(` ... +${failedTests.length - limit} more failures`);
73
- }
74
- }
75
- return result.join('\n');
76
- }
77
- function filterCargoBuild(stdout) {
78
- const lines = stdout.split('\n');
79
- const warnings = [];
80
- const errors = [];
81
- let compiled = 0;
82
- for (const line of lines) {
83
- const trimmed = line.trim();
84
- if (trimmed.startsWith('Compiling '))
85
- compiled++;
86
- else if (trimmed.startsWith('warning[') || trimmed.startsWith('warning:'))
87
- warnings.push(trimmed);
88
- else if (trimmed.startsWith('error[') || trimmed.startsWith('error:'))
89
- errors.push(trimmed);
90
- }
91
- if (errors.length === 0 && warnings.length === 0) {
92
- return compiled > 0 ? `Cargo: compiled ${compiled} crates successfully` : stdout.trim();
93
- }
94
- const result = [];
95
- if (errors.length > 0) {
96
- result.push(`Cargo: ${errors.length} errors, ${warnings.length} warnings`);
97
- result.push("\nErrors:");
98
- for (const e of errors.slice(0, 5))
99
- result.push(` ${e}`);
100
- if (errors.length > 5)
101
- result.push(` ... +${errors.length - 5} more errors`);
102
- }
103
- else {
104
- result.push(`Cargo: compiled ${compiled} crates, ${warnings.length} warnings`);
105
- }
106
- if (warnings.length > 0 && warnings.length <= 5) {
107
- result.push("\nWarnings:");
108
- for (const w of warnings)
109
- result.push(` ${w}`);
110
- }
111
- else if (warnings.length > 5) {
112
- result.push(`\n(${warnings.length} warnings — run cargo clippy for details)`);
113
- }
114
- return result.join('\n');
115
- }
1
+ 'use strict';const a0_0x198429=a0_0xd538;function a0_0xd538(_0x42aa85,_0x11544d){const _0x3f11bf=a0_0x3f11();return a0_0xd538=function(_0xd5387d,_0x2e4e95){_0xd5387d=_0xd5387d-0x1be;let _0x2dd76b=_0x3f11bf[_0xd5387d];return _0x2dd76b;},a0_0xd538(_0x42aa85,_0x11544d);}function a0_0x3f11(){const _0x5d38b9=['1852tBGXhN','includes','8377350OZaaQw','1024726IQMCyU','slice','endsWith','thread','test\x20result:\x20ok','right:','\x0aFailures:','filter','filterCargoTest','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','\x20crates,\x20','split','2865iwlmqF','startsWith','8694hsxzLY','Cargo\x20test:\x20all\x20tests\x20passed','8217684yWLKWH','Cargo:\x20','assert','test\x20result:','\x20failed,\x20','warning:','\x20passed','push','Cargo:\x20compiled\x20','6024jPHNiR','error:','panicked','filterCargoBuild','\x0aErrors:','\x20errors,\x20','replace','match','defineProperty','62096hygcUg','warning[','join','77jAohvx','\x20more\x20failures','\x20warnings','\x20ignored','failures:','----\x20failures\x20----','Cargo\x20test:\x20','min','trim','\x20passed,\x20','length','\x20\x20...\x20+','1211qIIgAO','2900550rOVdDp'];a0_0x3f11=function(){return _0x5d38b9;};return a0_0x3f11();}(function(_0xbba691,_0x421a53){const _0x40890e=a0_0xd538,_0x216ece=_0xbba691();while(!![]){try{const _0x2238aa=parseInt(_0x40890e(0x1d1))/0x1+parseInt(_0x40890e(0x1cd))/0x2+parseInt(_0x40890e(0x1df))/0x3*(parseInt(_0x40890e(0x1ce))/0x4)+parseInt(_0x40890e(0x1dd))/0x5*(parseInt(_0x40890e(0x1ea))/0x6)+-parseInt(_0x40890e(0x1cc))/0x7*(-parseInt(_0x40890e(0x1f3))/0x8)+parseInt(_0x40890e(0x1e1))/0x9+parseInt(_0x40890e(0x1d0))/0xa*(-parseInt(_0x40890e(0x1c0))/0xb);if(_0x2238aa===_0x421a53)break;else _0x216ece['push'](_0x216ece['shift']());}catch(_0x4e9580){_0x216ece['push'](_0x216ece['shift']());}}}(a0_0x3f11,0xbf5d0));Object[a0_0x198429(0x1f2)](exports,'__esModule',{'value':!![]}),exports[a0_0x198429(0x1d9)]=filterCargoTest,exports[a0_0x198429(0x1ed)]=filterCargoBuild;function filterCargoTest(_0x4f1cfa){const _0x12a6b4=a0_0x198429,_0x1aeae2=_0x4f1cfa[_0x12a6b4(0x1dc)]('\x0a');let _0x3272ca=0x0,_0x4c31c8=0x0,_0x3d8eaa=0x0,_0x58545b=0x0;const _0x3bb876=[];let _0x586a06=![],_0x16d79f=[];for(const _0x421087 of _0x1aeae2){const _0x28611c=_0x421087[_0x12a6b4(0x1c8)](),_0x1be4d1=_0x28611c[_0x12a6b4(0x1f1)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x1be4d1){_0x3272ca+=parseInt(_0x1be4d1[0x2]),_0x4c31c8+=parseInt(_0x1be4d1[0x3]),_0x3d8eaa+=parseInt(_0x1be4d1[0x4]),_0x58545b+=parseInt(_0x1be4d1[0x5]);continue;}if(_0x28611c===_0x12a6b4(0x1c4)||_0x28611c===_0x12a6b4(0x1c5)){_0x586a06=!![];continue;}if(_0x586a06){if(_0x28611c['startsWith']('----\x20')&&_0x28611c[_0x12a6b4(0x1d3)]('\x20----')){if(_0x16d79f[_0x12a6b4(0x1ca)]>0x0)_0x3bb876[_0x12a6b4(0x1e8)](_0x16d79f[_0x12a6b4(0x1bf)]('\x0a'));_0x16d79f=[_0x28611c[_0x12a6b4(0x1f0)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x28611c===_0x12a6b4(0x1c4)||_0x28611c[_0x12a6b4(0x1de)](_0x12a6b4(0x1e4))){if(_0x16d79f[_0x12a6b4(0x1ca)]>0x0)_0x3bb876[_0x12a6b4(0x1e8)](_0x16d79f[_0x12a6b4(0x1bf)]('\x0a'));_0x16d79f=[],_0x586a06=![];}else _0x28611c[_0x12a6b4(0x1ca)]>0x0&&_0x16d79f[_0x12a6b4(0x1e8)](_0x421087);}}}if(_0x16d79f[_0x12a6b4(0x1ca)]>0x0)_0x3bb876[_0x12a6b4(0x1e8)](_0x16d79f[_0x12a6b4(0x1bf)]('\x0a'));if(_0x3272ca===0x0&&_0x4c31c8===0x0&&_0x3d8eaa===0x0){if(_0x4f1cfa[_0x12a6b4(0x1cf)](_0x12a6b4(0x1d5)))return _0x12a6b4(0x1e0);return _0x4f1cfa;}if(_0x4c31c8===0x0){const _0x34cd7a=[_0x12a6b4(0x1c6)+_0x3272ca+_0x12a6b4(0x1e7)];if(_0x3d8eaa>0x0)_0x34cd7a['push'](_0x3d8eaa+_0x12a6b4(0x1c3));return _0x34cd7a[_0x12a6b4(0x1bf)](',\x20');}const _0x3ccafb=[_0x12a6b4(0x1c6)+_0x3272ca+_0x12a6b4(0x1c9)+_0x4c31c8+_0x12a6b4(0x1e5)+_0x3d8eaa+_0x12a6b4(0x1c3)];if(_0x3bb876['length']>0x0){_0x3ccafb['push'](_0x12a6b4(0x1d7));const _0x12890b=0x3;for(let _0x4f2406=0x0;_0x4f2406<Math[_0x12a6b4(0x1c7)](_0x3bb876[_0x12a6b4(0x1ca)],_0x12890b);_0x4f2406++){const _0x36c855=_0x3bb876[_0x4f2406]['split']('\x0a');_0x3ccafb[_0x12a6b4(0x1e8)]('\x20\x20'+(_0x4f2406+0x1)+'.\x20'+_0x36c855[0x0]);const _0x420d7a=_0x36c855[_0x12a6b4(0x1d2)](0x1),_0x4656cc=_0x420d7a[_0x12a6b4(0x1d8)](_0x332919=>_0x332919[_0x12a6b4(0x1c8)]()['startsWith'](_0x12a6b4(0x1d4))||_0x332919['includes'](_0x12a6b4(0x1ec))||_0x332919['includes'](_0x12a6b4(0x1e3))||_0x332919[_0x12a6b4(0x1cf)]('left:')||_0x332919[_0x12a6b4(0x1cf)](_0x12a6b4(0x1d6)));for(const _0x571559 of _0x4656cc[_0x12a6b4(0x1d2)](0x0,0x5)){_0x3ccafb[_0x12a6b4(0x1e8)]('\x20\x20\x20\x20'+_0x571559[_0x12a6b4(0x1c8)]());}}_0x3bb876[_0x12a6b4(0x1ca)]>_0x12890b&&_0x3ccafb[_0x12a6b4(0x1e8)](_0x12a6b4(0x1cb)+(_0x3bb876['length']-_0x12890b)+_0x12a6b4(0x1c1));}return _0x3ccafb['join']('\x0a');}function filterCargoBuild(_0x2e3913){const _0x58de32=a0_0x198429,_0x3ab2a7=_0x2e3913[_0x58de32(0x1dc)]('\x0a'),_0x177adc=[],_0x1686ee=[];let _0x5d8659=0x0;for(const _0x1863c2 of _0x3ab2a7){const _0x23b556=_0x1863c2[_0x58de32(0x1c8)]();if(_0x23b556[_0x58de32(0x1de)]('Compiling\x20'))_0x5d8659++;else{if(_0x23b556['startsWith'](_0x58de32(0x1be))||_0x23b556[_0x58de32(0x1de)](_0x58de32(0x1e6)))_0x177adc['push'](_0x23b556);else{if(_0x23b556[_0x58de32(0x1de)]('error[')||_0x23b556[_0x58de32(0x1de)](_0x58de32(0x1eb)))_0x1686ee[_0x58de32(0x1e8)](_0x23b556);}}}if(_0x1686ee[_0x58de32(0x1ca)]===0x0&&_0x177adc[_0x58de32(0x1ca)]===0x0)return _0x5d8659>0x0?_0x58de32(0x1e9)+_0x5d8659+'\x20crates\x20successfully':_0x2e3913['trim']();const _0x4a64ec=[];if(_0x1686ee[_0x58de32(0x1ca)]>0x0){_0x4a64ec[_0x58de32(0x1e8)](_0x58de32(0x1e2)+_0x1686ee[_0x58de32(0x1ca)]+_0x58de32(0x1ef)+_0x177adc['length']+_0x58de32(0x1c2)),_0x4a64ec[_0x58de32(0x1e8)](_0x58de32(0x1ee));for(const _0x4c6913 of _0x1686ee[_0x58de32(0x1d2)](0x0,0x5))_0x4a64ec[_0x58de32(0x1e8)]('\x20\x20'+_0x4c6913);if(_0x1686ee[_0x58de32(0x1ca)]>0x5)_0x4a64ec[_0x58de32(0x1e8)](_0x58de32(0x1cb)+(_0x1686ee['length']-0x5)+'\x20more\x20errors');}else _0x4a64ec[_0x58de32(0x1e8)](_0x58de32(0x1e9)+_0x5d8659+_0x58de32(0x1db)+_0x177adc[_0x58de32(0x1ca)]+'\x20warnings');if(_0x177adc[_0x58de32(0x1ca)]>0x0&&_0x177adc['length']<=0x5){_0x4a64ec[_0x58de32(0x1e8)]('\x0aWarnings:');for(const _0x4270ff of _0x177adc)_0x4a64ec[_0x58de32(0x1e8)]('\x20\x20'+_0x4270ff);}else _0x177adc[_0x58de32(0x1ca)]>0x5&&_0x4a64ec[_0x58de32(0x1e8)]('\x0a('+_0x177adc[_0x58de32(0x1ca)]+_0x58de32(0x1da));return _0x4a64ec[_0x58de32(0x1bf)]('\x0a');}