Socket
Socket
Sign inDemoInstall

nx-cloud

Package Overview
Dependencies
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nx-cloud - npm Package Compare versions

Comparing version 14.1.0 to 14.1.1

lib/utilities/serializer-overrides.d.ts

2

lib/core/api/error-reporter.api.js

@@ -1,1 +0,1 @@

const a0_0xed75=['__awaiter','apiAxiosInstance','createApiAxiosInstance','ErrorReporterApi','__esModule','/nx-cloud/report-client-error','../../utilities/nx-imports','throw','apply','next','reportError','../../utilities/axios','warn','defineProperty','value','post','Unable\x20to\x20record\x20the\x20following\x20error:\x20\x27'];(function(_0x522690,_0xed75f7){const _0x296647=function(_0x22cccd){while(--_0x22cccd){_0x522690['push'](_0x522690['shift']());}};_0x296647(++_0xed75f7);}(a0_0xed75,0x1bd));const a0_0x2966=function(_0x522690,_0xed75f7){_0x522690=_0x522690-0x0;let _0x296647=a0_0xed75[_0x522690];return _0x296647;};'use strict';var __awaiter=this&&this[a0_0x2966('0xe')]||function(_0x59aa37,_0x5eede8,_0x42a115,_0xb6e052){function _0x4bd1d8(_0x3a5ae2){return _0x3a5ae2 instanceof _0x42a115?_0x3a5ae2:new _0x42a115(function(_0x2a3901){_0x2a3901(_0x3a5ae2);});}return new(_0x42a115||(_0x42a115=Promise))(function(_0x4fc9c6,_0x47b09a){function _0x1d835a(_0x46790c){try{_0x359676(_0xb6e052[a0_0x2966('0x6')](_0x46790c));}catch(_0x341cc1){_0x47b09a(_0x341cc1);}}function _0x33990a(_0x1a6dc7){try{_0x359676(_0xb6e052[a0_0x2966('0x4')](_0x1a6dc7));}catch(_0x383ea2){_0x47b09a(_0x383ea2);}}function _0x359676(_0x5e5592){_0x5e5592['done']?_0x4fc9c6(_0x5e5592[a0_0x2966('0xb')]):_0x4bd1d8(_0x5e5592['value'])['then'](_0x1d835a,_0x33990a);}_0x359676((_0xb6e052=_0xb6e052[a0_0x2966('0x5')](_0x59aa37,_0x5eede8||[]))['next']());});};Object[a0_0x2966('0xa')](exports,a0_0x2966('0x1'),{'value':!![]});exports[a0_0x2966('0x0')]=void 0x0;const axios_1=require(a0_0x2966('0x8'));const {output}=require(a0_0x2966('0x3'));class ErrorReporterApi{constructor(_0x479afc){this['apiAxiosInstance']=(0x0,axios_1[a0_0x2966('0x10')])(_0x479afc);}[a0_0x2966('0x7')](_0x26dfd7){return __awaiter(this,void 0x0,void 0x0,function*(){try{yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a0_0x2966('0xf')][a0_0x2966('0xc')](a0_0x2966('0x2'),{'message':_0x26dfd7}));}catch(_0x4a390b){output[a0_0x2966('0x9')]({'title':a0_0x2966('0xd')+_0x26dfd7+'\x27','bodyLines':[_0x4a390b['message']]});}});}}exports[a0_0x2966('0x0')]=ErrorReporterApi;
const a0_0x500e=['ErrorReporterApi','value','defineProperty','then','throw','done','../../utilities/axios','axiosMultipleTries','/nx-cloud/report-client-error','../../utilities/nx-imports','createApiAxiosInstance','__awaiter','apiAxiosInstance','next'];(function(_0x5987c0,_0x500e2c){const _0xebf148=function(_0x676c8){while(--_0x676c8){_0x5987c0['push'](_0x5987c0['shift']());}};_0xebf148(++_0x500e2c);}(a0_0x500e,0x1dc));const a0_0xebf1=function(_0x5987c0,_0x500e2c){_0x5987c0=_0x5987c0-0x0;let _0xebf148=a0_0x500e[_0x5987c0];return _0xebf148;};'use strict';var __awaiter=this&&this[a0_0xebf1('0xb')]||function(_0x2fd8f8,_0x2957a6,_0x4ffa4c,_0x386a70){function _0x1a5deb(_0x3879bc){return _0x3879bc instanceof _0x4ffa4c?_0x3879bc:new _0x4ffa4c(function(_0x1dc675){_0x1dc675(_0x3879bc);});}return new(_0x4ffa4c||(_0x4ffa4c=Promise))(function(_0x3f476e,_0x3624a8){function _0x6ae019(_0x2cf01e){try{_0x8f1389(_0x386a70[a0_0xebf1('0xd')](_0x2cf01e));}catch(_0x5b5284){_0x3624a8(_0x5b5284);}}function _0x2864b0(_0x4f2e06){try{_0x8f1389(_0x386a70[a0_0xebf1('0x4')](_0x4f2e06));}catch(_0x4cfdc5){_0x3624a8(_0x4cfdc5);}}function _0x8f1389(_0x1652ed){_0x1652ed[a0_0xebf1('0x5')]?_0x3f476e(_0x1652ed[a0_0xebf1('0x1')]):_0x1a5deb(_0x1652ed[a0_0xebf1('0x1')])[a0_0xebf1('0x3')](_0x6ae019,_0x2864b0);}_0x8f1389((_0x386a70=_0x386a70['apply'](_0x2fd8f8,_0x2957a6||[]))[a0_0xebf1('0xd')]());});};Object[a0_0xebf1('0x2')](exports,'__esModule',{'value':!![]});exports[a0_0xebf1('0x0')]=void 0x0;const axios_1=require(a0_0xebf1('0x6'));const {output}=require(a0_0xebf1('0x9'));class ErrorReporterApi{constructor(_0x3bdd90){this[a0_0xebf1('0xc')]=(0x0,axios_1[a0_0xebf1('0xa')])(_0x3bdd90);}['reportError'](_0x118dee){return __awaiter(this,void 0x0,void 0x0,function*(){try{yield(0x0,axios_1[a0_0xebf1('0x7')])(()=>this[a0_0xebf1('0xc')]['post'](a0_0xebf1('0x8'),{'message':_0x118dee}));}catch(_0x1dedc5){output['warn']({'title':'Unable\x20to\x20record\x20the\x20following\x20error:\x20\x27'+_0x118dee+'\x27','bodyLines':[_0x1dedc5['message']]});}});}}exports[a0_0xebf1('0x0')]=ErrorReporterApi;

@@ -1,1 +0,1 @@

const a1_0x18b3=['RUNNER_FAILURE_PERF_ENTRY','response','/nx-cloud/executions/complete-run-group','next','recordMetric','apiAxiosInstance','axiosException','message','mapRespToPerfEntry','apply','value','throw','axiosMultipleTries','__esModule','createApiAxiosInstance','error','../../utilities/nx-imports','createRunGroup','createMetricRecorder','post','RunGroupApi'];(function(_0x11f2ab,_0x18b3d6){const _0x40c8a9=function(_0x5cd14f){while(--_0x5cd14f){_0x11f2ab['push'](_0x11f2ab['shift']());}};_0x40c8a9(++_0x18b3d6);}(a1_0x18b3,0xaf));const a1_0x40c8=function(_0x11f2ab,_0x18b3d6){_0x11f2ab=_0x11f2ab-0x0;let _0x40c8a9=a1_0x18b3[_0x11f2ab];return _0x40c8a9;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x407e42,_0x5538c7,_0xe635cf,_0x1a14ae){function _0x1cdbbf(_0x519ba4){return _0x519ba4 instanceof _0xe635cf?_0x519ba4:new _0xe635cf(function(_0x27fa6a){_0x27fa6a(_0x519ba4);});}return new(_0xe635cf||(_0xe635cf=Promise))(function(_0x47b689,_0x2fbf24){function _0x17f9f1(_0x3d2610){try{_0x1d57a3(_0x1a14ae[a1_0x40c8('0x11')](_0x3d2610));}catch(_0x13c284){_0x2fbf24(_0x13c284);}}function _0x4179ae(_0x3185d6){try{_0x1d57a3(_0x1a14ae[a1_0x40c8('0x4')](_0x3185d6));}catch(_0x17273a){_0x2fbf24(_0x17273a);}}function _0x1d57a3(_0x198f5e){_0x198f5e['done']?_0x47b689(_0x198f5e[a1_0x40c8('0x3')]):_0x1cdbbf(_0x198f5e[a1_0x40c8('0x3')])['then'](_0x17f9f1,_0x4179ae);}_0x1d57a3((_0x1a14ae=_0x1a14ae[a1_0x40c8('0x2')](_0x407e42,_0x5538c7||[]))[a1_0x40c8('0x11')]());});};Object['defineProperty'](exports,a1_0x40c8('0x6'),{'value':!![]});exports['RunGroupApi']=void 0x0;const axios_1=require('../../utilities/axios');const metric_logger_1=require('../../utilities/metric-logger');const {output}=require(a1_0x40c8('0x9'));class RunGroupApi{constructor(_0x410b34){this[a1_0x40c8('0x13')]=(0x0,axios_1[a1_0x40c8('0x7')])(_0x410b34);}[a1_0x40c8('0xa')](_0xb1cf30,_0xd15ba4){var _0x49ccb5;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x286f48=(0x0,metric_logger_1['createMetricRecorder'])(a1_0x40c8('0xa'));try{const _0x362aa4=yield(0x0,axios_1[a1_0x40c8('0x5')])(()=>this['apiAxiosInstance'][a1_0x40c8('0xc')]('/nx-cloud/executions/create-run-group',{'branch':_0xb1cf30,'runGroup':_0xd15ba4}));_0x286f48[a1_0x40c8('0x12')]((0x0,metric_logger_1[a1_0x40c8('0x1')])(_0x362aa4));}catch(_0x154e4a){_0x286f48['recordMetric'](((_0x49ccb5=_0x154e4a===null||_0x154e4a===void 0x0?void 0x0:_0x154e4a['axiosException'])===null||_0x49ccb5===void 0x0?void 0x0:_0x49ccb5[a1_0x40c8('0xf')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x154e4a[a1_0x40c8('0x14')][a1_0x40c8('0xf')]):metric_logger_1[a1_0x40c8('0xe')]);output[a1_0x40c8('0x8')]({'title':_0x154e4a['message']});process['exit'](0x1);}});}['completeRunGroup'](_0x451265){var _0x348922;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x76a795=(0x0,metric_logger_1[a1_0x40c8('0xb')])(a1_0x40c8('0xa'));try{const _0x4d1766=yield(0x0,axios_1[a1_0x40c8('0x5')])(()=>this['apiAxiosInstance'][a1_0x40c8('0xc')](a1_0x40c8('0x10'),{'runGroup':_0x451265}));_0x76a795[a1_0x40c8('0x12')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x4d1766));}catch(_0x17222b){_0x76a795[a1_0x40c8('0x12')](((_0x348922=_0x17222b===null||_0x17222b===void 0x0?void 0x0:_0x17222b[a1_0x40c8('0x14')])===null||_0x348922===void 0x0?void 0x0:_0x348922['response'])?(0x0,metric_logger_1[a1_0x40c8('0x1')])(_0x17222b[a1_0x40c8('0x14')][a1_0x40c8('0xf')]):metric_logger_1[a1_0x40c8('0xe')]);output[a1_0x40c8('0x8')]({'title':_0x17222b[a1_0x40c8('0x0')]});process['exit'](0x1);}});}}exports[a1_0x40c8('0xd')]=RunGroupApi;
const a1_0x4c8a=['../../utilities/nx-imports','__awaiter','recordMetric','axiosMultipleTries','../../utilities/axios','post','defineProperty','done','RUNNER_FAILURE_PERF_ENTRY','next','apiAxiosInstance','message','mapRespToPerfEntry','createApiAxiosInstance','error','axiosException','response','apply','../../utilities/metric-logger','createRunGroup','then','createMetricRecorder','/nx-cloud/executions/complete-run-group'];(function(_0x3e3955,_0x4c8a5d){const _0x4f06f0=function(_0x3faf1b){while(--_0x3faf1b){_0x3e3955['push'](_0x3e3955['shift']());}};_0x4f06f0(++_0x4c8a5d);}(a1_0x4c8a,0x169));const a1_0x4f06=function(_0x3e3955,_0x4c8a5d){_0x3e3955=_0x3e3955-0x0;let _0x4f06f0=a1_0x4c8a[_0x3e3955];return _0x4f06f0;};'use strict';var __awaiter=this&&this[a1_0x4f06('0x8')]||function(_0x15e226,_0x274e94,_0xca54d1,_0x26e01b){function _0x4031e9(_0x5508d7){return _0x5508d7 instanceof _0xca54d1?_0x5508d7:new _0xca54d1(function(_0x36a54f){_0x36a54f(_0x5508d7);});}return new(_0xca54d1||(_0xca54d1=Promise))(function(_0x373fb7,_0x40b329){function _0x68e4eb(_0x24527b){try{_0x3390d7(_0x26e01b[a1_0x4f06('0x10')](_0x24527b));}catch(_0x55c19b){_0x40b329(_0x55c19b);}}function _0x5dac55(_0x5d6c3a){try{_0x3390d7(_0x26e01b['throw'](_0x5d6c3a));}catch(_0x56d494){_0x40b329(_0x56d494);}}function _0x3390d7(_0x26ff9f){_0x26ff9f[a1_0x4f06('0xe')]?_0x373fb7(_0x26ff9f['value']):_0x4031e9(_0x26ff9f['value'])[a1_0x4f06('0x4')](_0x68e4eb,_0x5dac55);}_0x3390d7((_0x26e01b=_0x26e01b[a1_0x4f06('0x1')](_0x15e226,_0x274e94||[]))[a1_0x4f06('0x10')]());});};Object[a1_0x4f06('0xd')](exports,'__esModule',{'value':!![]});exports['RunGroupApi']=void 0x0;const axios_1=require(a1_0x4f06('0xb'));const metric_logger_1=require(a1_0x4f06('0x2'));const {output}=require(a1_0x4f06('0x7'));class RunGroupApi{constructor(_0x3eaf82){this[a1_0x4f06('0x11')]=(0x0,axios_1[a1_0x4f06('0x14')])(_0x3eaf82);}[a1_0x4f06('0x3')](_0x57202d,_0x32d89a){var _0x1845d2;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5a04ba=(0x0,metric_logger_1[a1_0x4f06('0x5')])('createRunGroup');try{const _0x2646bc=yield(0x0,axios_1[a1_0x4f06('0xa')])(()=>this[a1_0x4f06('0x11')][a1_0x4f06('0xc')]('/nx-cloud/executions/create-run-group',{'branch':_0x57202d,'runGroup':_0x32d89a}));_0x5a04ba[a1_0x4f06('0x9')]((0x0,metric_logger_1[a1_0x4f06('0x13')])(_0x2646bc));}catch(_0x3ae622){_0x5a04ba[a1_0x4f06('0x9')](((_0x1845d2=_0x3ae622===null||_0x3ae622===void 0x0?void 0x0:_0x3ae622['axiosException'])===null||_0x1845d2===void 0x0?void 0x0:_0x1845d2['response'])?(0x0,metric_logger_1[a1_0x4f06('0x13')])(_0x3ae622[a1_0x4f06('0x16')][a1_0x4f06('0x0')]):metric_logger_1[a1_0x4f06('0xf')]);output[a1_0x4f06('0x15')]({'title':_0x3ae622[a1_0x4f06('0x12')]});process['exit'](0x1);}});}['completeRunGroup'](_0x5436a5){var _0x3621c7;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x423550=(0x0,metric_logger_1[a1_0x4f06('0x5')])(a1_0x4f06('0x3'));try{const _0x4f73ae=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a1_0x4f06('0x11')][a1_0x4f06('0xc')](a1_0x4f06('0x6'),{'runGroup':_0x5436a5}));_0x423550[a1_0x4f06('0x9')]((0x0,metric_logger_1[a1_0x4f06('0x13')])(_0x4f73ae));}catch(_0x48f9f1){_0x423550['recordMetric'](((_0x3621c7=_0x48f9f1===null||_0x48f9f1===void 0x0?void 0x0:_0x48f9f1[a1_0x4f06('0x16')])===null||_0x3621c7===void 0x0?void 0x0:_0x3621c7[a1_0x4f06('0x0')])?(0x0,metric_logger_1[a1_0x4f06('0x13')])(_0x48f9f1[a1_0x4f06('0x16')]['response']):metric_logger_1[a1_0x4f06('0xf')]);output[a1_0x4f06('0x15')]({'title':_0x48f9f1[a1_0x4f06('0x12')]});process['exit'](0x1);}});}}exports['RunGroupApi']=RunGroupApi;

@@ -1,1 +0,1 @@

const a0_0xa2d1=['cacheStatus','skipNxCache','getTerminalOutput','runContext','local-cache','node_modules','statuses','startsWith','local-cache-kept-existing','cleanUpHashDetails','remote-cache-hit','nodes','implicitDeps','path','hashDetails','obfuscate','endTask','outputObfuscator','readTerminalOutputFile','cache-miss','TRUNCATED\x0a\x0a','updateStartedTask','indexOf','terminalOutput','startTask','readFileSync','__esModule','taskId','code','collectTerminalOutput','project','forEach','endCommand','.cache','Cannot\x20find\x20task\x20','scheduledTasks','push','filter','toISOString','runtime','configuration','endTime','hash','find','local-cache-hit','overrides','cacheDirectory','tasks','terminalOutputs','target','endTasks','task','status','MAX_CHARACTERS_FAILED_TASK','../../../utilities/environment','params','join','scheduleTask','toString','CloudEnabledLifeCycle','defineProperty','MAX_CHARACTERS_SUCCESSFUL_TASK','MAX_CHARACTERS_CACHED_TASK','assign','slice'];(function(_0x22fac8,_0xa2d17f){const _0x52fa2c=function(_0x324f77){while(--_0x324f77){_0x22fac8['push'](_0x22fac8['shift']());}};_0x52fa2c(++_0xa2d17f);}(a0_0xa2d1,0xf7));const a0_0x52fa=function(_0x22fac8,_0xa2d17f){_0x22fac8=_0x22fac8-0x0;let _0x52fa2c=a0_0xa2d1[_0x22fac8];return _0x52fa2c;};'use strict';Object[a0_0x52fa('0x8')](exports,a0_0x52fa('0x27'),{'value':!![]});exports[a0_0x52fa('0x7')]=void 0x0;const path=require(a0_0x52fa('0x1a'));const path_1=require(a0_0x52fa('0x1a'));const fs_1=require('fs');const environment_1=require(a0_0x52fa('0x2'));const {workspaceRoot,unparse}=require('../../../utilities/nx-imports');class CloudEnabledLifeCycle{constructor(_0x303fd7,_0x52971c,_0x568961,_0x486354,_0x5befa8,_0x20afca,_0x59fa43){this[a0_0x52fa('0x10')]=_0x303fd7;this[a0_0x52fa('0x3b')]=_0x52971c;this[a0_0x52fa('0xe')]=_0x568961;this[a0_0x52fa('0x2a')]=_0x486354;this['cacheableOperations']=_0x5befa8;this['outputObfuscator']=_0x20afca;this[a0_0x52fa('0x3c')]=_0x59fa43;}[a0_0x52fa('0x5')](_0x324020){this[a0_0x52fa('0x10')][a0_0x52fa('0x30')]['push'](_0x324020);}[a0_0x52fa('0x25')](_0x38de6e){const _0x1d97f4=Object[a0_0x52fa('0xb')]({},_0x38de6e[a0_0x52fa('0x3a')]||{});if(_0x38de6e['target'][a0_0x52fa('0x35')]){_0x1d97f4[a0_0x52fa('0x35')]=_0x38de6e[a0_0x52fa('0x3e')][a0_0x52fa('0x35')];}this[a0_0x52fa('0x3c')][a0_0x52fa('0x31')]({'taskId':_0x38de6e['id'],'startTime':new Date()['toISOString'](),'target':_0x38de6e[a0_0x52fa('0x3e')]['target'],'projectName':_0x38de6e[a0_0x52fa('0x3e')][a0_0x52fa('0x2b')],'hash':_0x38de6e[a0_0x52fa('0x37')],'hashDetails':this[a0_0x52fa('0x16')](_0x38de6e[a0_0x52fa('0x1b')]),'params':unparse(_0x1d97f4)[a0_0x52fa('0x4')]('\x20')});}[a0_0x52fa('0x1d')](_0x1f0445,_0x38e50b){let _0x588b19;if(this[a0_0x52fa('0x10')][a0_0x52fa('0x13')][_0x1f0445['hash']]){_0x588b19=this[a0_0x52fa('0x10')][a0_0x52fa('0x13')][_0x1f0445[a0_0x52fa('0x37')]];}else{if(this['cacheableOperations'][a0_0x52fa('0x23')](_0x1f0445[a0_0x52fa('0x3e')][a0_0x52fa('0x3e')])>-0x1&&!this[a0_0x52fa('0xe')]){_0x588b19=a0_0x52fa('0x39');}else{_0x588b19=a0_0x52fa('0x20');}}this[a0_0x52fa('0x22')](_0x1f0445,_0x38e50b,_0x588b19);}[a0_0x52fa('0x3f')](_0x55df58){for(let _0x224b5a of _0x55df58){const _0x4f4b81=_0x224b5a[a0_0x52fa('0x0')]==='remote-cache'?a0_0x52fa('0x17'):_0x224b5a[a0_0x52fa('0x0')]===a0_0x52fa('0x11')||_0x224b5a['status']===a0_0x52fa('0x15')?'local-cache-hit':'cache-miss';this['updateStartedTask'](_0x224b5a[a0_0x52fa('0x40')],_0x224b5a[a0_0x52fa('0x29')],_0x4f4b81);}}[a0_0x52fa('0x2d')](){}['updateStartedTask'](_0x198821,_0x4944f1,_0xb61326){const _0x30b317=this[a0_0x52fa('0x3c')][a0_0x52fa('0x38')](_0x2207ae=>_0x2207ae[a0_0x52fa('0x28')]===_0x198821['id']);if(!_0x30b317){throw new Error(a0_0x52fa('0x2f')+_0x198821['id']);}_0x30b317[a0_0x52fa('0x36')]=new Date()[a0_0x52fa('0x33')]();_0x30b317[a0_0x52fa('0x0')]=_0x4944f1;_0x30b317['params']=this[a0_0x52fa('0x1e')][a0_0x52fa('0x1c')](_0x30b317[a0_0x52fa('0x3')]);_0x30b317[a0_0x52fa('0xd')]=_0xb61326;if(this[a0_0x52fa('0x2a')]){_0x30b317['terminalOutput']=this['getTerminalOutput'](_0x198821[a0_0x52fa('0x37')],_0x30b317[a0_0x52fa('0xd')],_0x4944f1);}}[a0_0x52fa('0xf')](_0x2a58c2,_0xf918ea,_0x24ceef){let _0x11259b;if(this[a0_0x52fa('0x3b')]){if(this['cacheDirectory'][a0_0x52fa('0x14')]('./')){_0x11259b=(0x0,path_1[a0_0x52fa('0x4')])(workspaceRoot,this[a0_0x52fa('0x3b')]);}else{_0x11259b=this[a0_0x52fa('0x3b')];}}else{_0x11259b=(0x0,path_1[a0_0x52fa('0x4')])(workspaceRoot,a0_0x52fa('0x12'),a0_0x52fa('0x2e'),'nx');}try{const _0x3f80be=this[a0_0x52fa('0x1f')](_0x11259b,_0x2a58c2);const _0x5a78d4=this[a0_0x52fa('0x1e')]['obfuscate'](_0x3f80be);if(environment_1['NX_CLOUD_UNLIMITED_OUTPUT'])return _0x5a78d4;const _0x16ff85=_0xf918ea==='cache-miss'?_0x24ceef===0x0?CloudEnabledLifeCycle[a0_0x52fa('0x9')]:CloudEnabledLifeCycle['MAX_CHARACTERS_FAILED_TASK']:CloudEnabledLifeCycle[a0_0x52fa('0xa')];return _0x5a78d4['length']>_0x16ff85?a0_0x52fa('0x21')+_0x5a78d4[a0_0x52fa('0xc')](_0x5a78d4['length']-_0x16ff85):_0x5a78d4;}catch(_0x44f016){return'';}}['cleanUpHashDetails'](_0xa80726){const _0x5e111f={};Object['keys'](_0xa80726[a0_0x52fa('0x18')])[a0_0x52fa('0x32')](_0x2b345e=>!_0x2b345e[a0_0x52fa('0x14')]('npm:'))[a0_0x52fa('0x2c')](_0x2c406d=>{_0x5e111f[_0x2c406d]=_0xa80726[a0_0x52fa('0x18')][_0x2c406d];});return{'nodes':_0x5e111f,'runtime':_0xa80726[a0_0x52fa('0x34')],'implicitDeps':_0xa80726[a0_0x52fa('0x19')]};}[a0_0x52fa('0x1f')](_0x42cc28,_0x39d415){try{return(0x0,fs_1[a0_0x52fa('0x26')])(path[a0_0x52fa('0x4')](_0x42cc28,a0_0x52fa('0x3d'),_0x39d415))[a0_0x52fa('0x6')]();}catch(_0x2b799d){try{return(0x0,fs_1[a0_0x52fa('0x26')])(path[a0_0x52fa('0x4')](_0x42cc28,_0x39d415,a0_0x52fa('0x24')))['toString']();}catch(_0x4f3efd){return'';}}}}exports[a0_0x52fa('0x7')]=CloudEnabledLifeCycle;CloudEnabledLifeCycle[a0_0x52fa('0x1')]=0x30d40;CloudEnabledLifeCycle['MAX_CHARACTERS_SUCCESSFUL_TASK']=0x4e20;CloudEnabledLifeCycle[a0_0x52fa('0xa')]=0x4e20;
const a0_0xd445=['terminalOutputs','scheduleTask','implicitDeps','length','updateStartedTask','runtime','../../../utilities/nx-imports','Cannot\x20find\x20task\x20','path','remote-cache','startTask','NX_CLOUD_UNLIMITED_OUTPUT','TRUNCATED\x0a\x0a','node_modules','code','outputObfuscator','remote-cache-hit','skipNxCache','terminalOutput','../../../utilities/serializer-overrides','hashDetails','endTask','target','MAX_CHARACTERS_CACHED_TASK','endCommand','MAX_CHARACTERS_FAILED_TASK','obfuscate','params','status','statuses','push','hash','startsWith','.cache','filter','slice','local-cache-kept-existing','npm:','readTerminalOutputFile','endTasks','find','cacheDirectory','defineProperty','task','cleanUpHashDetails','forEach','CloudEnabledLifeCycle','MAX_CHARACTERS_SUCCESSFUL_TASK','../../../utilities/environment','cache-miss','project','nodes','readFileSync','local-cache-hit','cacheStatus','cacheableOperations','getTerminalOutput','join','serializeOverrides','collectTerminalOutput','keys','toString','toISOString','endTime','tasks','runContext'];(function(_0x23bca8,_0xd4456c){const _0x178eb3=function(_0x25579d){while(--_0x25579d){_0x23bca8['push'](_0x23bca8['shift']());}};_0x178eb3(++_0xd4456c);}(a0_0xd445,0xfa));const a0_0x178e=function(_0x23bca8,_0xd4456c){_0x23bca8=_0x23bca8-0x0;let _0x178eb3=a0_0xd445[_0x23bca8];return _0x178eb3;};'use strict';Object[a0_0x178e('0x38')](exports,'__esModule',{'value':!![]});exports[a0_0x178e('0x3c')]=void 0x0;const path=require(a0_0x178e('0x16'));const path_1=require(a0_0x178e('0x16'));const fs_1=require('fs');const environment_1=require(a0_0x178e('0x3e'));const serializer_overrides_1=require(a0_0x178e('0x21'));const {workspaceRoot}=require(a0_0x178e('0x14'));class CloudEnabledLifeCycle{constructor(_0x148881,_0x12c0da,_0x3ac9c8,_0x5d970f,_0x1ecc4f,_0x5cb00d,_0xeb65f6){this[a0_0x178e('0xd')]=_0x148881;this['cacheDirectory']=_0x12c0da;this[a0_0x178e('0x1f')]=_0x3ac9c8;this[a0_0x178e('0x7')]=_0x5d970f;this[a0_0x178e('0x3')]=_0x1ecc4f;this[a0_0x178e('0x1d')]=_0x5cb00d;this[a0_0x178e('0xc')]=_0xeb65f6;}[a0_0x178e('0xf')](_0x586f4b){this['runContext']['scheduledTasks'][a0_0x178e('0x2c')](_0x586f4b);}[a0_0x178e('0x18')](_0x21769f){this['tasks'][a0_0x178e('0x2c')]({'taskId':_0x21769f['id'],'startTime':new Date()['toISOString'](),'target':_0x21769f[a0_0x178e('0x24')][a0_0x178e('0x24')],'projectName':_0x21769f['target'][a0_0x178e('0x40')],'hash':_0x21769f['hash'],'hashDetails':this[a0_0x178e('0x3a')](_0x21769f[a0_0x178e('0x22')]),'params':(0x0,serializer_overrides_1[a0_0x178e('0x6')])(_0x21769f)});}[a0_0x178e('0x23')](_0x558b24,_0x1d4511){let _0x5621db;if(this['runContext'][a0_0x178e('0x2b')][_0x558b24[a0_0x178e('0x2d')]]){_0x5621db=this[a0_0x178e('0xd')][a0_0x178e('0x2b')][_0x558b24[a0_0x178e('0x2d')]];}else{if(this[a0_0x178e('0x3')]['indexOf'](_0x558b24['target']['target'])>-0x1&&!this[a0_0x178e('0x1f')]){_0x5621db=a0_0x178e('0x1');}else{_0x5621db='cache-miss';}}this[a0_0x178e('0x12')](_0x558b24,_0x1d4511,_0x5621db);}[a0_0x178e('0x35')](_0x321ea6){for(let _0x1e09a6 of _0x321ea6){const _0x12d3dd=_0x1e09a6[a0_0x178e('0x2a')]===a0_0x178e('0x17')?a0_0x178e('0x1e'):_0x1e09a6[a0_0x178e('0x2a')]==='local-cache'||_0x1e09a6['status']===a0_0x178e('0x32')?a0_0x178e('0x1'):'cache-miss';this[a0_0x178e('0x12')](_0x1e09a6[a0_0x178e('0x39')],_0x1e09a6[a0_0x178e('0x1c')],_0x12d3dd);}}[a0_0x178e('0x26')](){}['updateStartedTask'](_0x45d305,_0x45c10c,_0x58baae){const _0x2241fc=this['tasks'][a0_0x178e('0x36')](_0x91e9f2=>_0x91e9f2['taskId']===_0x45d305['id']);if(!_0x2241fc){throw new Error(a0_0x178e('0x15')+_0x45d305['id']);}_0x2241fc[a0_0x178e('0xb')]=new Date()[a0_0x178e('0xa')]();_0x2241fc[a0_0x178e('0x2a')]=_0x45c10c;_0x2241fc[a0_0x178e('0x29')]=this[a0_0x178e('0x1d')][a0_0x178e('0x28')](_0x2241fc['params']);_0x2241fc[a0_0x178e('0x2')]=_0x58baae;if(this[a0_0x178e('0x7')]){_0x2241fc[a0_0x178e('0x20')]=this['getTerminalOutput'](_0x45d305[a0_0x178e('0x2d')],_0x2241fc[a0_0x178e('0x2')],_0x45c10c);}}[a0_0x178e('0x4')](_0x1f2079,_0x185061,_0x57d72c){let _0x3b6a5c;if(this[a0_0x178e('0x37')]){if(this[a0_0x178e('0x37')][a0_0x178e('0x2e')]('./')){_0x3b6a5c=(0x0,path_1['join'])(workspaceRoot,this['cacheDirectory']);}else{_0x3b6a5c=this[a0_0x178e('0x37')];}}else{_0x3b6a5c=(0x0,path_1[a0_0x178e('0x5')])(workspaceRoot,a0_0x178e('0x1b'),a0_0x178e('0x2f'),'nx');}try{const _0xf3ce82=this[a0_0x178e('0x34')](_0x3b6a5c,_0x1f2079);const _0x1c1bb4=this['outputObfuscator'][a0_0x178e('0x28')](_0xf3ce82);if(environment_1[a0_0x178e('0x19')])return _0x1c1bb4;const _0x120880=_0x185061===a0_0x178e('0x3f')?_0x57d72c===0x0?CloudEnabledLifeCycle[a0_0x178e('0x3d')]:CloudEnabledLifeCycle[a0_0x178e('0x27')]:CloudEnabledLifeCycle[a0_0x178e('0x25')];return _0x1c1bb4[a0_0x178e('0x11')]>_0x120880?a0_0x178e('0x1a')+_0x1c1bb4[a0_0x178e('0x31')](_0x1c1bb4[a0_0x178e('0x11')]-_0x120880):_0x1c1bb4;}catch(_0x3d804d){return'';}}[a0_0x178e('0x3a')](_0x166d62){const _0x30447f={};Object[a0_0x178e('0x8')](_0x166d62[a0_0x178e('0x41')])[a0_0x178e('0x30')](_0x373b33=>!_0x373b33['startsWith'](a0_0x178e('0x33')))[a0_0x178e('0x3b')](_0x45e829=>{_0x30447f[_0x45e829]=_0x166d62['nodes'][_0x45e829];});return{'nodes':_0x30447f,'runtime':_0x166d62[a0_0x178e('0x13')],'implicitDeps':_0x166d62[a0_0x178e('0x10')]};}[a0_0x178e('0x34')](_0x123cb3,_0x4f2301){try{return(0x0,fs_1[a0_0x178e('0x0')])(path[a0_0x178e('0x5')](_0x123cb3,a0_0x178e('0xe'),_0x4f2301))['toString']();}catch(_0x43abb7){try{return(0x0,fs_1['readFileSync'])(path['join'](_0x123cb3,_0x4f2301,a0_0x178e('0x20')))[a0_0x178e('0x9')]();}catch(_0x2227d1){return'';}}}}exports['CloudEnabledLifeCycle']=CloudEnabledLifeCycle;CloudEnabledLifeCycle[a0_0x178e('0x27')]=0x30d40;CloudEnabledLifeCycle['MAX_CHARACTERS_SUCCESSFUL_TASK']=0x4e20;CloudEnabledLifeCycle[a0_0x178e('0x25')]=0x4e20;

@@ -1,1 +0,1 @@

const a1_0xe263=['../../terminal-output/message-reporter','obfuscate','../../file-storage/file-storage','anyErrors','__esModule','apply','MessageReporter','filter','all','../../../utilities/metric-logger','value','env','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','CloudRunApi','getMachineInfo','tasks-hashes-','./cloud-enabled-life-cycle','extractGitSha','ErrorReporterApi','throw','ENCRYPTION_KEY','then','printMessages','scan','toISOString','Agent\x20wasn\x27t\x20able\x20to\x20record\x20its\x20run','cacheDirectory','skipNxCache','map','note','cacheableOperations','complete','endRun','../../api/error-reporter.api','../../../utilities/nx-imports','../../terminal-output/output-obfuscator','CloudRemoteCache','defineProperty','done','submitRunMetrics','getBranch','catch','error','cloudEnabledTasksRunner','path','maskedProperties','writeFileSync','rxjs/internal/Subject','E2EEncryption','getRunGroup','startRun','exit','printCacheHitsMessage','lifeCycle','forEach','../../file-storage/e2e-encryption','./cloud-run.api','taskId','waitForStoreRequestsToComplete','../../../utilities/environment','Agent\x20wasn\x27t\x20able\x20to\x20store\x20artifacts','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','assign','OutputObfuscator','encryptionKey','AGENT_RUNNING_IN_DISTRIBUTED_EXECUTION','parseCommand','../../terminal-output/end-of-run-message'];(function(_0x3b45e6,_0xe26396){const _0x55fb3a=function(_0x5e3326){while(--_0x5e3326){_0x3b45e6['push'](_0x3b45e6['shift']());}};_0x55fb3a(++_0xe26396);}(a1_0xe263,0x15d));const a1_0x55fb=function(_0x3b45e6,_0xe26396){_0x3b45e6=_0x3b45e6-0x0;let _0x55fb3a=a1_0xe263[_0x3b45e6];return _0x55fb3a;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x51509b,_0x26c95e,_0x916854,_0x2541ed){function _0x28c901(_0xfe613c){return _0xfe613c instanceof _0x916854?_0xfe613c:new _0x916854(function(_0x385324){_0x385324(_0xfe613c);});}return new(_0x916854||(_0x916854=Promise))(function(_0x139dd9,_0xae5554){function _0x59d393(_0x10d01f){try{_0x113092(_0x2541ed['next'](_0x10d01f));}catch(_0x55637b){_0xae5554(_0x55637b);}}function _0x18961a(_0x128189){try{_0x113092(_0x2541ed[a1_0x55fb('0xa')](_0x128189));}catch(_0x1efb2f){_0xae5554(_0x1efb2f);}}function _0x113092(_0x1db71c){_0x1db71c[a1_0x55fb('0x1d')]?_0x139dd9(_0x1db71c[a1_0x55fb('0x1')]):_0x28c901(_0x1db71c[a1_0x55fb('0x1')])[a1_0x55fb('0xc')](_0x59d393,_0x18961a);}_0x113092((_0x2541ed=_0x2541ed[a1_0x55fb('0x40')](_0x51509b,_0x26c95e||[]))['next']());});};Object[a1_0x55fb('0x1c')](exports,a1_0x55fb('0x3f'),{'value':!![]});exports[a1_0x55fb('0x22')]=void 0x0;const message_reporter_1=require(a1_0x55fb('0x3b'));const end_of_run_message_1=require(a1_0x55fb('0x3a'));const output_obfuscator_1=require(a1_0x55fb('0x1a'));const cloud_enabled_life_cycle_1=require(a1_0x55fb('0x7'));const file_storage_1=require(a1_0x55fb('0x3d'));const e2e_encryption_1=require(a1_0x55fb('0x2e'));const environment_1=require(a1_0x55fb('0x32'));const cloud_remote_cache_1=require('./cloud-remote-cache');const cloud_run_api_1=require(a1_0x55fb('0x2f'));const fs_1=require('fs');const path=require(a1_0x55fb('0x23'));const metric_logger_1=require(a1_0x55fb('0x0'));const error_reporter_api_1=require(a1_0x55fb('0x18'));const {tasksRunner,output}=require(a1_0x55fb('0x19'));function createApi(_0x57d0fa,_0x49f40e,_0xb0272e){const _0x172a30=(0x0,environment_1[a1_0x55fb('0x5')])(_0x49f40e);return new cloud_run_api_1[(a1_0x55fb('0x4'))](_0x57d0fa,_0xb0272e,_0x49f40e,_0x172a30);}function storeTaskHashes(_0x25ec1a,_0x5db20e,_0x58637c){const _0x36486a=JSON['stringify'](_0x25ec1a[a1_0x55fb('0x13')](_0x30fee3=>({'taskId':_0x30fee3[a1_0x55fb('0x30')],'hash':_0x30fee3['hash']})));if(environment_1['VERBOSE_LOGGING']){output[a1_0x55fb('0x14')]({'title':'Executed\x20tasks\x20with\x20hashes:\x20'+_0x36486a});}(0x0,fs_1[a1_0x55fb('0x25')])(path['join'](_0x5db20e,a1_0x55fb('0x6')+_0x58637c),_0x36486a);}function onComplete(_0x1129d8,_0x2d8a6a,_0x177a38,_0x110023,_0xbfdd24,_0x217256,_0x3d2f26,_0x3ecf04,_0x3e76ff,_0x11fbd4,_0x1ab87f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x93ff98=new Date()['toISOString']();if(environment_1[a1_0x55fb('0x38')]){storeTaskHashes(_0x3e76ff,_0x2d8a6a['cacheDirectory']||'./node_modules/.cache/nx',environment_1[a1_0x55fb('0x34')]);}const _0x46b7d1=(0x0,environment_1[a1_0x55fb('0x1f')])();const _0x4d5c5b=yield Promise[a1_0x55fb('0x43')]([_0x177a38[a1_0x55fb('0x31')](),_0x110023[a1_0x55fb('0x17')]({'command':_0xbfdd24[a1_0x55fb('0x3c')]((0x0,environment_1[a1_0x55fb('0x39')])()),'startTime':_0x217256,'endTime':_0x93ff98,'distributedExecutionId':environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'],'branch':_0x46b7d1,'scan':!![],'runGroup':(0x0,environment_1[a1_0x55fb('0x28')])(),'sha':_0x46b7d1?(0x0,environment_1[a1_0x55fb('0x8')])():undefined,'inner':_0x1ab87f},_0x3e76ff)]);if(_0x11fbd4){setTimeout(()=>{_0x3d2f26[a1_0x55fb('0xd')]();if(!_0x3d2f26[a1_0x55fb('0x3e')]&&!_0x1ab87f){_0x3ecf04[a1_0x55fb('0x2b')]();}},0x0);}else{_0x3d2f26[a1_0x55fb('0xd')]();if(!_0x3d2f26['anyErrors']&&!_0x1ab87f){_0x3ecf04[a1_0x55fb('0x2b')]();}}if(environment_1[a1_0x55fb('0x38')]){if(!_0x4d5c5b[0x0]){output['error']({'title':a1_0x55fb('0x33')});_0x3d2f26['printMessages']();process['exit'](environment_1[a1_0x55fb('0x3')]);}if(!_0x4d5c5b[0x1]){output[a1_0x55fb('0x21')]({'title':a1_0x55fb('0x10')});_0x3d2f26[a1_0x55fb('0xd')]();process[a1_0x55fb('0x2a')](environment_1[a1_0x55fb('0x3')]);}}yield(0x0,metric_logger_1[a1_0x55fb('0x1e')])(_0x2d8a6a);});}function createLifeCycle(_0x2e8d9b,_0x489541,_0x1a4862,_0x4d6ed7){const _0x8d1dcb=new cloud_enabled_life_cycle_1['CloudEnabledLifeCycle'](_0x2e8d9b,_0x489541[a1_0x55fb('0x11')],!!_0x489541[a1_0x55fb('0x12')],_0x489541[a1_0x55fb('0xe')]===undefined?!![]:_0x489541[a1_0x55fb('0xe')],_0x489541[a1_0x55fb('0x15')]||[],_0x1a4862,_0x4d6ed7);try{const {CompositeLifeCycle}=require(a1_0x55fb('0x19'));if(!CompositeLifeCycle)return _0x8d1dcb;return new CompositeLifeCycle([_0x489541[a1_0x55fb('0x2c')],_0x8d1dcb]);}catch(_0x4dd4ae){return _0x8d1dcb;}}function cloudEnabledTasksRunner(_0x3c1a94,_0x38c1c6,_0x32f3be,_0x4a7d89=![]){const _0x4625ac={'statuses':{},'scheduledTasks':[],'requests':{},'allTasks':_0x3c1a94};const _0x5051c4=_0x38c1c6[a1_0x55fb('0x2c')]===undefined;const _0x533ae6=[];const _0x9b7720=new message_reporter_1[(a1_0x55fb('0x41'))](_0x38c1c6);const _0x5e09d6=createApi(_0x9b7720,_0x38c1c6,_0x4625ac);const _0x1a7837=new end_of_run_message_1['EndOfRunMessage'](_0x4625ac,_0x533ae6);const _0x42b4d5=new output_obfuscator_1[(a1_0x55fb('0x36'))](_0x38c1c6[a1_0x55fb('0x24')]);const _0x3e5269=_0x3c1a94[a1_0x55fb('0x13')](_0x5957cb=>_0x5957cb['hash'])[a1_0x55fb('0x42')](_0x441516=>!!_0x441516);const _0x1160aa=_0x5e09d6[a1_0x55fb('0x29')](environment_1[a1_0x55fb('0x34')],_0x3e5269);_0x3e5269[a1_0x55fb('0x2d')](_0xc4a93a=>{_0x4625ac['requests'][_0xc4a93a]=_0x1160aa;});const _0x2b47f9=new Date()[a1_0x55fb('0xf')]();const _0x134314=createLifeCycle(_0x4625ac,_0x38c1c6,_0x42b4d5,_0x533ae6);const _0x1845d9=new e2e_encryption_1[(a1_0x55fb('0x27'))](environment_1[a1_0x55fb('0xb')]||_0x38c1c6[a1_0x55fb('0x37')]);const _0x29aed1=new error_reporter_api_1[(a1_0x55fb('0x9'))](_0x38c1c6);const _0x4257e8=new file_storage_1['FileStorage'](_0x1845d9,_0x29aed1,![]);const _0x4e95a2=new cloud_remote_cache_1[(a1_0x55fb('0x1b'))](_0x9b7720,_0x5e09d6,_0x4625ac,_0x4257e8);delete process[a1_0x55fb('0x2')][a1_0x55fb('0x34')];const _0xe0f0f3=tasksRunner(_0x3c1a94,Object['assign'](Object[a1_0x55fb('0x35')]({},_0x38c1c6),{'remoteCache':_0x4e95a2,'lifeCycle':_0x134314}),_0x32f3be);if(_0xe0f0f3['subscribe']){const {Subject}=require(a1_0x55fb('0x26'));const _0x2af276=new Subject();_0xe0f0f3['subscribe']({'next':_0x4db47f=>_0x2af276['next'](_0x4db47f),'error':_0x1bd4ca=>_0x2af276[a1_0x55fb('0x21')](_0x1bd4ca),'complete':()=>__awaiter(this,void 0x0,void 0x0,function*(){yield onComplete(_0x134314,_0x38c1c6,_0x4e95a2,_0x5e09d6,_0x42b4d5,_0x2b47f9,_0x9b7720,_0x1a7837,_0x533ae6,_0x5051c4,_0x4a7d89);_0x2af276[a1_0x55fb('0x16')]();})});return _0x2af276;}else{return _0xe0f0f3[a1_0x55fb('0xc')](_0x56c672=>__awaiter(this,void 0x0,void 0x0,function*(){yield onComplete(_0x134314,_0x38c1c6,_0x4e95a2,_0x5e09d6,_0x42b4d5,_0x2b47f9,_0x9b7720,_0x1a7837,_0x533ae6,_0x5051c4,_0x4a7d89);return _0x56c672;}))[a1_0x55fb('0x20')](_0x2b9f60=>__awaiter(this,void 0x0,void 0x0,function*(){yield onComplete(_0x134314,_0x38c1c6,_0x4e95a2,_0x5e09d6,_0x42b4d5,_0x2b47f9,_0x9b7720,_0x1a7837,_0x533ae6,_0x5051c4,_0x4a7d89);throw _0x2b9f60;}));}}exports[a1_0x55fb('0x22')]=cloudEnabledTasksRunner;
const a1_0x1a20=['./cloud-run.api','maskedProperties','Executed\x20tasks\x20with\x20hashes:\x20','waitForStoreRequestsToComplete','./cloud-enabled-life-cycle','EndOfRunMessage','map','throw','../../terminal-output/end-of-run-message','then','defineProperty','cacheableOperations','join','subscribe','printMessages','extractGitSha','lifeCycle','ENCRYPTION_KEY','CloudEnabledLifeCycle','printCacheHitsMessage','writeFileSync','done','__awaiter','hash','error','CloudRunApi','../../../utilities/nx-imports','assign','./node_modules/.cache/nx','toISOString','scan','value','../../file-storage/file-storage','next','FileStorage','AGENT_RUNNING_IN_DISTRIBUTED_EXECUTION','../../terminal-output/message-reporter','note','exit','requests','../../api/error-reporter.api','catch','getMachineInfo','endRun','VERBOSE_LOGGING','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','path','forEach','encryptionKey','parseCommand','../../terminal-output/output-obfuscator','skipNxCache','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','rxjs/internal/Subject','all','filter','cloudEnabledTasksRunner','./cloud-remote-cache','stringify','cacheDirectory','submitRunMetrics','obfuscate','../../file-storage/e2e-encryption','complete'];(function(_0x1e9c66,_0x1a205c){const _0x40abf7=function(_0x338440){while(--_0x338440){_0x1e9c66['push'](_0x1e9c66['shift']());}};_0x40abf7(++_0x1a205c);}(a1_0x1a20,0xe4));const a1_0x40ab=function(_0x1e9c66,_0x1a205c){_0x1e9c66=_0x1e9c66-0x0;let _0x40abf7=a1_0x1a20[_0x1e9c66];return _0x40abf7;};'use strict';var __awaiter=this&&this[a1_0x40ab('0x32')]||function(_0x2f4642,_0x22efcf,_0x254a1c,_0x1b561b){function _0x727bdc(_0x568165){return _0x568165 instanceof _0x254a1c?_0x568165:new _0x254a1c(function(_0x2c67a5){_0x2c67a5(_0x568165);});}return new(_0x254a1c||(_0x254a1c=Promise))(function(_0x52b960,_0x1148ec){function _0xc106c(_0x3dff85){try{_0x469fd(_0x1b561b[a1_0x40ab('0x3d')](_0x3dff85));}catch(_0x382d97){_0x1148ec(_0x382d97);}}function _0x82777a(_0xae8d04){try{_0x469fd(_0x1b561b[a1_0x40ab('0x23')](_0xae8d04));}catch(_0x4f8859){_0x1148ec(_0x4f8859);}}function _0x469fd(_0x5bc22c){_0x5bc22c[a1_0x40ab('0x31')]?_0x52b960(_0x5bc22c[a1_0x40ab('0x3b')]):_0x727bdc(_0x5bc22c[a1_0x40ab('0x3b')])[a1_0x40ab('0x25')](_0xc106c,_0x82777a);}_0x469fd((_0x1b561b=_0x1b561b['apply'](_0x2f4642,_0x22efcf||[]))['next']());});};Object[a1_0x40ab('0x26')](exports,'__esModule',{'value':!![]});exports[a1_0x40ab('0x14')]=void 0x0;const message_reporter_1=require(a1_0x40ab('0x0'));const end_of_run_message_1=require(a1_0x40ab('0x24'));const output_obfuscator_1=require(a1_0x40ab('0xe'));const cloud_enabled_life_cycle_1=require(a1_0x40ab('0x20'));const file_storage_1=require(a1_0x40ab('0x3c'));const e2e_encryption_1=require(a1_0x40ab('0x1a'));const environment_1=require('../../../utilities/environment');const cloud_remote_cache_1=require(a1_0x40ab('0x15'));const cloud_run_api_1=require(a1_0x40ab('0x1c'));const fs_1=require('fs');const path=require(a1_0x40ab('0xa'));const metric_logger_1=require('../../../utilities/metric-logger');const error_reporter_api_1=require(a1_0x40ab('0x4'));const {tasksRunner,output}=require('../../../utilities/nx-imports');function createApi(_0x1e7909,_0x304fdb,_0x372d2e){const _0x27203c=(0x0,environment_1[a1_0x40ab('0x6')])(_0x304fdb);return new cloud_run_api_1[(a1_0x40ab('0x35'))](_0x1e7909,_0x372d2e,_0x304fdb,_0x27203c);}function storeTaskHashes(_0x5c99d9,_0x5c4650,_0x1b3310){const _0x34b32c=JSON[a1_0x40ab('0x16')](_0x5c99d9['map'](_0x4efe84=>({'taskId':_0x4efe84['taskId'],'hash':_0x4efe84[a1_0x40ab('0x33')]})));if(environment_1[a1_0x40ab('0x8')]){output[a1_0x40ab('0x1')]({'title':a1_0x40ab('0x1e')+_0x34b32c});}(0x0,fs_1[a1_0x40ab('0x30')])(path[a1_0x40ab('0x28')](_0x5c4650,'tasks-hashes-'+_0x1b3310),_0x34b32c);}function onComplete(_0x496f9b,_0x117bff,_0x9a73f1,_0xdc7bb0,_0x7a4441,_0x97dee,_0x34364d,_0x57cc0e,_0x2193d3,_0x1ff5d4,_0x383311){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x38009b=new Date()[a1_0x40ab('0x39')]();if(environment_1[a1_0x40ab('0x3f')]){storeTaskHashes(_0x2193d3,_0x117bff[a1_0x40ab('0x17')]||a1_0x40ab('0x38'),environment_1[a1_0x40ab('0x9')]);}const _0x385f5c=(0x0,environment_1['getBranch'])();const _0x306df2=yield Promise[a1_0x40ab('0x12')]([_0x9a73f1[a1_0x40ab('0x1f')](),_0xdc7bb0[a1_0x40ab('0x7')]({'command':_0x7a4441[a1_0x40ab('0x19')]((0x0,environment_1[a1_0x40ab('0xd')])()),'startTime':_0x97dee,'endTime':_0x38009b,'distributedExecutionId':environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'],'branch':_0x385f5c,'scan':!![],'runGroup':(0x0,environment_1['getRunGroup'])(),'sha':_0x385f5c?(0x0,environment_1[a1_0x40ab('0x2b')])():undefined,'inner':_0x383311},_0x2193d3)]);if(_0x1ff5d4){setTimeout(()=>{_0x34364d[a1_0x40ab('0x2a')]();if(!_0x34364d['anyErrors']&&!_0x383311){_0x57cc0e[a1_0x40ab('0x2f')]();}},0x0);}else{_0x34364d[a1_0x40ab('0x2a')]();if(!_0x34364d['anyErrors']&&!_0x383311){_0x57cc0e[a1_0x40ab('0x2f')]();}}if(environment_1[a1_0x40ab('0x3f')]){if(!_0x306df2[0x0]){output['error']({'title':'Agent\x20wasn\x27t\x20able\x20to\x20store\x20artifacts'});_0x34364d[a1_0x40ab('0x2a')]();process[a1_0x40ab('0x2')](environment_1[a1_0x40ab('0x10')]);}if(!_0x306df2[0x1]){output[a1_0x40ab('0x34')]({'title':'Agent\x20wasn\x27t\x20able\x20to\x20record\x20its\x20run'});_0x34364d[a1_0x40ab('0x2a')]();process[a1_0x40ab('0x2')](environment_1[a1_0x40ab('0x10')]);}}yield(0x0,metric_logger_1[a1_0x40ab('0x18')])(_0x117bff);});}function createLifeCycle(_0x364c52,_0x3ae4,_0x15a47e,_0x4a250f){const _0x42b8dc=new cloud_enabled_life_cycle_1[(a1_0x40ab('0x2e'))](_0x364c52,_0x3ae4['cacheDirectory'],!!_0x3ae4[a1_0x40ab('0xf')],_0x3ae4['scan']===undefined?!![]:_0x3ae4[a1_0x40ab('0x3a')],_0x3ae4[a1_0x40ab('0x27')]||[],_0x15a47e,_0x4a250f);try{const {CompositeLifeCycle}=require(a1_0x40ab('0x36'));if(!CompositeLifeCycle)return _0x42b8dc;return new CompositeLifeCycle([_0x3ae4[a1_0x40ab('0x2c')],_0x42b8dc]);}catch(_0x5af33f){return _0x42b8dc;}}function cloudEnabledTasksRunner(_0xf21d70,_0x160720,_0x1b08d6,_0xd570b8=![]){const _0x22688b={'statuses':{},'scheduledTasks':[],'requests':{},'allTasks':_0xf21d70};const _0x5d777a=_0x160720['lifeCycle']===undefined;const _0x3ec35b=[];const _0x27376c=new message_reporter_1['MessageReporter'](_0x160720);const _0x327e72=createApi(_0x27376c,_0x160720,_0x22688b);const _0xfc0e79=new end_of_run_message_1[(a1_0x40ab('0x21'))](_0x22688b,_0x3ec35b);const _0x4176b9=new output_obfuscator_1['OutputObfuscator'](_0x160720[a1_0x40ab('0x1d')]);const _0x2f45fe=_0xf21d70[a1_0x40ab('0x22')](_0x11395b=>_0x11395b[a1_0x40ab('0x33')])[a1_0x40ab('0x13')](_0x3cf7c7=>!!_0x3cf7c7);const _0x31a755=_0x327e72['startRun'](environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'],_0x2f45fe);_0x2f45fe[a1_0x40ab('0xb')](_0x1275db=>{_0x22688b[a1_0x40ab('0x3')][_0x1275db]=_0x31a755;});const _0x216722=new Date()[a1_0x40ab('0x39')]();const _0xf7bf72=createLifeCycle(_0x22688b,_0x160720,_0x4176b9,_0x3ec35b);const _0x395002=new e2e_encryption_1['E2EEncryption'](environment_1[a1_0x40ab('0x2d')]||_0x160720[a1_0x40ab('0xc')]);const _0x10d74b=new error_reporter_api_1['ErrorReporterApi'](_0x160720);const _0x516c6b=new file_storage_1[(a1_0x40ab('0x3e'))](_0x395002,_0x10d74b,![]);const _0x20b98d=new cloud_remote_cache_1['CloudRemoteCache'](_0x27376c,_0x327e72,_0x22688b,_0x516c6b);delete process['env'][a1_0x40ab('0x9')];const _0xe6a7b=tasksRunner(_0xf21d70,Object[a1_0x40ab('0x37')](Object[a1_0x40ab('0x37')]({},_0x160720),{'remoteCache':_0x20b98d,'lifeCycle':_0xf7bf72}),_0x1b08d6);if(_0xe6a7b[a1_0x40ab('0x29')]){const {Subject}=require(a1_0x40ab('0x11'));const _0x11ebae=new Subject();_0xe6a7b[a1_0x40ab('0x29')]({'next':_0x34c05b=>_0x11ebae[a1_0x40ab('0x3d')](_0x34c05b),'error':_0x27d594=>_0x11ebae[a1_0x40ab('0x34')](_0x27d594),'complete':()=>__awaiter(this,void 0x0,void 0x0,function*(){yield onComplete(_0xf7bf72,_0x160720,_0x20b98d,_0x327e72,_0x4176b9,_0x216722,_0x27376c,_0xfc0e79,_0x3ec35b,_0x5d777a,_0xd570b8);_0x11ebae[a1_0x40ab('0x1b')]();})});return _0x11ebae;}else{return _0xe6a7b[a1_0x40ab('0x25')](_0x48991e=>__awaiter(this,void 0x0,void 0x0,function*(){yield onComplete(_0xf7bf72,_0x160720,_0x20b98d,_0x327e72,_0x4176b9,_0x216722,_0x27376c,_0xfc0e79,_0x3ec35b,_0x5d777a,_0xd570b8);return _0x48991e;}))[a1_0x40ab('0x5')](_0x4b1a5b=>__awaiter(this,void 0x0,void 0x0,function*(){yield onComplete(_0xf7bf72,_0x160720,_0x20b98d,_0x327e72,_0x4176b9,_0x216722,_0x27376c,_0xfc0e79,_0x3ec35b,_0x5d777a,_0xd570b8);throw _0x4b1a5b;}));}}exports[a1_0x40ab('0x14')]=cloudEnabledTasksRunner;

@@ -1,1 +0,1 @@

const a2_0x95fc=['storeRequests','Nx\x20Cloud:\x20Cache\x20miss\x20','indexOf','.\x20Status\x20404.','filter','messages','api','value','resolve','forEach','response','axiosException','done','note','hashUrls','retrieve','throw','cacheError','reduce','VERBOSE_LOGGING','waitForStoreRequestsToComplete','../../../utilities/nx-imports','startRun','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','../../../utilities/environment','storage','store','then','next','CloudRemoteCache','cache-miss','requests','push','runContext','apply','Nx\x20Cloud:\x20Skipping\x20storing\x20','hash','statuses','remote-cache-hit','get','__esModule','put','fileStorage'];(function(_0x1e1c20,_0x95fcfd){const _0x30268b=function(_0x4ffe74){while(--_0x4ffe74){_0x1e1c20['push'](_0x1e1c20['shift']());}};_0x30268b(++_0x95fcfd);}(a2_0x95fc,0xe2));const a2_0x3026=function(_0x1e1c20,_0x95fcfd){_0x1e1c20=_0x1e1c20-0x0;let _0x30268b=a2_0x95fc[_0x1e1c20];return _0x30268b;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x2aa727,_0x51068c,_0x133a72,_0x5f3754){function _0x13399e(_0x1925cb){return _0x1925cb instanceof _0x133a72?_0x1925cb:new _0x133a72(function(_0x949189){_0x949189(_0x1925cb);});}return new(_0x133a72||(_0x133a72=Promise))(function(_0x501cc3,_0xbc598a){function _0x130cc0(_0x2b902e){try{_0x355da0(_0x5f3754[a2_0x3026('0x11')](_0x2b902e));}catch(_0x16b9ed){_0xbc598a(_0x16b9ed);}}function _0x5e8c54(_0x20a51a){try{_0x355da0(_0x5f3754[a2_0x3026('0x5')](_0x20a51a));}catch(_0x1dcbd8){_0xbc598a(_0x1dcbd8);}}function _0x355da0(_0x8d8357){_0x8d8357[a2_0x3026('0x1')]?_0x501cc3(_0x8d8357[a2_0x3026('0x27')]):_0x13399e(_0x8d8357[a2_0x3026('0x27')])[a2_0x3026('0x10')](_0x130cc0,_0x5e8c54);}_0x355da0((_0x5f3754=_0x5f3754[a2_0x3026('0x17')](_0x2aa727,_0x51068c||[]))['next']());});};Object['defineProperty'](exports,a2_0x3026('0x1d'),{'value':!![]});exports[a2_0x3026('0x12')]=void 0x0;const environment_1=require(a2_0x3026('0xd'));const {output}=require(a2_0x3026('0xa'));class CloudRemoteCache{constructor(_0x2fe620,_0x3ed489,_0x21695f,_0x21175b){this['messages']=_0x2fe620;this[a2_0x3026('0x26')]=_0x3ed489;this['runContext']=_0x21695f;this[a2_0x3026('0x1f')]=_0x21175b;this[a2_0x3026('0x20')]=[];}['retrieve'](_0x1f65ba,_0x8c3ed){var _0x139e5e;return __awaiter(this,void 0x0,void 0x0,function*(){if(this['messages'][a2_0x3026('0x6')])return![];const _0x5306f1=yield this['hashUrls'](_0x1f65ba);if(!_0x5306f1||!_0x5306f1[a2_0x3026('0x1c')]){if(environment_1[a2_0x3026('0x8')]){output[a2_0x3026('0x2')]({'title':'Nx\x20Cloud:\x20Cache\x20miss\x20'+_0x1f65ba+'.'});}this[a2_0x3026('0x16')][a2_0x3026('0x1a')][_0x1f65ba]='cache-miss';return![];}try{yield this[a2_0x3026('0x1f')][a2_0x3026('0x4')](_0x1f65ba,_0x5306f1['get'],_0x8c3ed);this['runContext']['statuses'][_0x1f65ba]=a2_0x3026('0x1b');return!![];}catch(_0x4e3c1c){const _0xb8e514=(_0x139e5e=_0x4e3c1c[a2_0x3026('0x0')])!==null&&_0x139e5e!==void 0x0?_0x139e5e:_0x4e3c1c;if(_0xb8e514['response']&&_0xb8e514[a2_0x3026('0x2a')]['status']===0x194){if(environment_1[a2_0x3026('0x8')]){output[a2_0x3026('0x2')]({'title':a2_0x3026('0x21')+_0x1f65ba+a2_0x3026('0x23')});}}else{this[a2_0x3026('0x25')][a2_0x3026('0x6')]=this[a2_0x3026('0x25')]['extractErrorMessage'](_0xb8e514,a2_0x3026('0xe'));}this[a2_0x3026('0x16')]['statuses'][_0x1f65ba]=a2_0x3026('0x13');return![];}});}[a2_0x3026('0xf')](_0x1774b9,_0xddf1fb){return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x3026('0x25')][a2_0x3026('0x6')])return![];const _0x2576bd=Promise[a2_0x3026('0x28')]()[a2_0x3026('0x10')](()=>__awaiter(this,void 0x0,void 0x0,function*(){var _0x40b6d2;const _0x3a808e=yield this[a2_0x3026('0x3')](_0x1774b9);if(!_0x3a808e)return![];if(!_0x3a808e[a2_0x3026('0x1e')]){if(environment_1[a2_0x3026('0x8')]){output[a2_0x3026('0x2')]({'title':a2_0x3026('0x18')+_0x1774b9+'.\x20Read\x20only\x20token\x20is\x20used.'});}return!![];}try{yield this['fileStorage'][a2_0x3026('0xf')](_0x1774b9,_0x3a808e[a2_0x3026('0x1e')],_0xddf1fb);return!![];}catch(_0x276f5e){const _0xdb688e=(_0x40b6d2=_0x276f5e[a2_0x3026('0x0')])!==null&&_0x40b6d2!==void 0x0?_0x40b6d2:_0x276f5e;this[a2_0x3026('0x25')][a2_0x3026('0x6')]=this[a2_0x3026('0x25')]['extractErrorMessage'](_0xdb688e,a2_0x3026('0xe'));return![];}}));this['storeRequests'][a2_0x3026('0x15')](_0x2576bd);return _0x2576bd;});}[a2_0x3026('0x3')](_0x188d2c){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x188d2c in this[a2_0x3026('0x16')][a2_0x3026('0x14')]){return(yield this['runContext']['requests'][_0x188d2c])[_0x188d2c];}else{const _0x1db5fc=this[a2_0x3026('0x16')]['scheduledTasks'][a2_0x3026('0x24')](_0x1ec8ed=>!this[a2_0x3026('0x16')][a2_0x3026('0x14')][_0x1ec8ed['hash']])['map'](_0xb0d014=>_0xb0d014[a2_0x3026('0x19')]);if(_0x1db5fc[a2_0x3026('0x22')](_0x188d2c)===-0x1){_0x1db5fc['push'](_0x188d2c);}const _0x587409=this[a2_0x3026('0x26')][a2_0x3026('0xb')](environment_1[a2_0x3026('0xc')],_0x1db5fc);_0x1db5fc[a2_0x3026('0x29')](_0x4fc451=>{this[a2_0x3026('0x16')]['requests'][_0x4fc451]=_0x587409;});return(yield _0x587409)[_0x188d2c];}});}[a2_0x3026('0x9')](){return Promise['all'](this['storeRequests'])[a2_0x3026('0x10')](_0x1cabcb=>_0x1cabcb[a2_0x3026('0x7')]((_0x474e6d,_0x104222)=>_0x474e6d&&_0x104222,!![]));}}exports[a2_0x3026('0x12')]=CloudRemoteCache;
const a2_0x421c=['cacheError','.\x20Read\x20only\x20token\x20is\x20used.','remote-cache-hit','../../../utilities/environment','indexOf','runContext','messages','storage','value','Nx\x20Cloud:\x20Skipping\x20storing\x20','note','retrieve','storeRequests','defineProperty','Nx\x20Cloud:\x20Cache\x20miss\x20','reduce','hashUrls','filter','forEach','response','done','axiosException','statuses','requests','throw','hash','waitForStoreRequestsToComplete','scheduledTasks','.\x20Status\x20404.','VERBOSE_LOGGING','__esModule','cache-miss','put','push','extractErrorMessage','map','apply','all','store','get','../../../utilities/nx-imports','then','api','__awaiter','fileStorage','CloudRemoteCache'];(function(_0x44acd7,_0x421cdc){const _0x2d59e0=function(_0x18a858){while(--_0x18a858){_0x44acd7['push'](_0x44acd7['shift']());}};_0x2d59e0(++_0x421cdc);}(a2_0x421c,0x184));const a2_0x2d59=function(_0x44acd7,_0x421cdc){_0x44acd7=_0x44acd7-0x0;let _0x2d59e0=a2_0x421c[_0x44acd7];return _0x2d59e0;};'use strict';var __awaiter=this&&this[a2_0x2d59('0x17')]||function(_0x4ca075,_0x2485e4,_0x419000,_0x1a5e8c){function _0x44fd4f(_0x184c08){return _0x184c08 instanceof _0x419000?_0x184c08:new _0x419000(function(_0x2feb1c){_0x2feb1c(_0x184c08);});}return new(_0x419000||(_0x419000=Promise))(function(_0x278c6a,_0x2ba408){function _0x5f36e7(_0x2d1c41){try{_0x4d2106(_0x1a5e8c['next'](_0x2d1c41));}catch(_0xbac0c7){_0x2ba408(_0xbac0c7);}}function _0x22a643(_0x52b67d){try{_0x4d2106(_0x1a5e8c[a2_0x2d59('0x4')](_0x52b67d));}catch(_0x3e540d){_0x2ba408(_0x3e540d);}}function _0x4d2106(_0x5f5d7d){_0x5f5d7d[a2_0x2d59('0x0')]?_0x278c6a(_0x5f5d7d[a2_0x2d59('0x22')]):_0x44fd4f(_0x5f5d7d[a2_0x2d59('0x22')])[a2_0x2d59('0x15')](_0x5f36e7,_0x22a643);}_0x4d2106((_0x1a5e8c=_0x1a5e8c[a2_0x2d59('0x10')](_0x4ca075,_0x2485e4||[]))['next']());});};Object[a2_0x2d59('0x27')](exports,a2_0x2d59('0xa'),{'value':!![]});exports[a2_0x2d59('0x19')]=void 0x0;const environment_1=require(a2_0x2d59('0x1d'));const {output}=require(a2_0x2d59('0x14'));class CloudRemoteCache{constructor(_0xa58f5d,_0x5107a9,_0x5e67e2,_0x56fa7c){this[a2_0x2d59('0x20')]=_0xa58f5d;this[a2_0x2d59('0x16')]=_0x5107a9;this[a2_0x2d59('0x1f')]=_0x5e67e2;this['fileStorage']=_0x56fa7c;this[a2_0x2d59('0x26')]=[];}[a2_0x2d59('0x25')](_0x43d141,_0x19dab8){var _0x5081a8;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x2d59('0x20')]['cacheError'])return![];const _0x2430b3=yield this[a2_0x2d59('0x2a')](_0x43d141);if(!_0x2430b3||!_0x2430b3[a2_0x2d59('0x13')]){if(environment_1[a2_0x2d59('0x9')]){output['note']({'title':a2_0x2d59('0x28')+_0x43d141+'.'});}this[a2_0x2d59('0x1f')][a2_0x2d59('0x2')][_0x43d141]=a2_0x2d59('0xb');return![];}try{yield this[a2_0x2d59('0x18')][a2_0x2d59('0x25')](_0x43d141,_0x2430b3[a2_0x2d59('0x13')],_0x19dab8);this[a2_0x2d59('0x1f')][a2_0x2d59('0x2')][_0x43d141]=a2_0x2d59('0x1c');return!![];}catch(_0x5bcaba){const _0x312e9b=(_0x5081a8=_0x5bcaba[a2_0x2d59('0x1')])!==null&&_0x5081a8!==void 0x0?_0x5081a8:_0x5bcaba;if(_0x312e9b['response']&&_0x312e9b[a2_0x2d59('0x2d')]['status']===0x194){if(environment_1[a2_0x2d59('0x9')]){output[a2_0x2d59('0x24')]({'title':a2_0x2d59('0x28')+_0x43d141+a2_0x2d59('0x8')});}}else{this['messages'][a2_0x2d59('0x1a')]=this[a2_0x2d59('0x20')][a2_0x2d59('0xe')](_0x312e9b,a2_0x2d59('0x21'));}this[a2_0x2d59('0x1f')]['statuses'][_0x43d141]=a2_0x2d59('0xb');return![];}});}[a2_0x2d59('0x12')](_0x233ee0,_0x534ffd){return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x2d59('0x20')][a2_0x2d59('0x1a')])return![];const _0x44b2e2=Promise['resolve']()['then'](()=>__awaiter(this,void 0x0,void 0x0,function*(){var _0x548f38;const _0x4d7b86=yield this[a2_0x2d59('0x2a')](_0x233ee0);if(!_0x4d7b86)return![];if(!_0x4d7b86[a2_0x2d59('0xc')]){if(environment_1[a2_0x2d59('0x9')]){output[a2_0x2d59('0x24')]({'title':a2_0x2d59('0x23')+_0x233ee0+a2_0x2d59('0x1b')});}return!![];}try{yield this[a2_0x2d59('0x18')][a2_0x2d59('0x12')](_0x233ee0,_0x4d7b86[a2_0x2d59('0xc')],_0x534ffd);return!![];}catch(_0x2a011b){const _0x167756=(_0x548f38=_0x2a011b[a2_0x2d59('0x1')])!==null&&_0x548f38!==void 0x0?_0x548f38:_0x2a011b;this[a2_0x2d59('0x20')][a2_0x2d59('0x1a')]=this['messages'][a2_0x2d59('0xe')](_0x167756,a2_0x2d59('0x21'));return![];}}));this['storeRequests'][a2_0x2d59('0xd')](_0x44b2e2);return _0x44b2e2;});}[a2_0x2d59('0x2a')](_0x194bb){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x194bb in this[a2_0x2d59('0x1f')][a2_0x2d59('0x3')]){return(yield this[a2_0x2d59('0x1f')][a2_0x2d59('0x3')][_0x194bb])[_0x194bb];}else{const _0x3498e6=this[a2_0x2d59('0x1f')][a2_0x2d59('0x7')][a2_0x2d59('0x2b')](_0x4ea2f3=>!this[a2_0x2d59('0x1f')][a2_0x2d59('0x3')][_0x4ea2f3[a2_0x2d59('0x5')]])[a2_0x2d59('0xf')](_0x34f46e=>_0x34f46e[a2_0x2d59('0x5')]);if(_0x3498e6[a2_0x2d59('0x1e')](_0x194bb)===-0x1){_0x3498e6[a2_0x2d59('0xd')](_0x194bb);}const _0x872ca2=this[a2_0x2d59('0x16')]['startRun'](environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'],_0x3498e6);_0x3498e6[a2_0x2d59('0x2c')](_0x3e35b9=>{this[a2_0x2d59('0x1f')]['requests'][_0x3e35b9]=_0x872ca2;});return(yield _0x872ca2)[_0x194bb];}});}[a2_0x2d59('0x6')](){return Promise[a2_0x2d59('0x11')](this[a2_0x2d59('0x26')])['then'](_0x4d8446=>_0x4d8446[a2_0x2d59('0x29')]((_0x22b598,_0x38537d)=>_0x22b598&&_0x38537d,!![]));}}exports[a2_0x2d59('0x19')]=CloudRemoteCache;

@@ -1,1 +0,1 @@

const a3_0x1539=['unknown','RunStart','axiosMultipleTries','api','response','stringify','post','Stack\x20Trace:','value','createReqBody','slice','zlib','note','recordMetric','axiosException','mapRespToPerfEntry','../../../utilities/nx-imports','apiError','done','toString','CloudRunApi','createMetricRecorder','parse','map','status','@nrwl/nx-cloud','headers','startRun','__awaiter','runUrl','RunEnd.\x20Completed\x20tasks','machineInfo','apply','next','VERBOSE_LOGGING','endRun','error','then','util','message','assign','success','createApiAxiosInstance','Invalid\x20Nx\x20Cloud\x20response:\x20','application/octet-stream','defaults','getBranch','nxCloudVersion','Invalid\x20end\x20run\x20response:\x20','messages','../../../utilities/metric-logger','throw','urls','/nx-cloud/runs/start','Invalid\x20end\x20run\x20response','../../../utilities/environment','from','getRunGroup','terminalOutput','apiAxiosInstance','stack','gzip','data','extractErrorMessage','Nx\x20Cloud:\x20Unknown\x20Error\x20Occurred','package.json','Run\x20completion\x20responded\x20with\x20`undefined`.','length'];(function(_0x4ee097,_0x15393a){const _0x415a24=function(_0xc19979){while(--_0xc19979){_0x4ee097['push'](_0x4ee097['shift']());}};_0x415a24(++_0x15393a);}(a3_0x1539,0x1af));const a3_0x415a=function(_0x4ee097,_0x15393a){_0x4ee097=_0x4ee097-0x0;let _0x415a24=a3_0x1539[_0x4ee097];return _0x415a24;};'use strict';var __awaiter=this&&this[a3_0x415a('0x5')]||function(_0x1fda76,_0x538d63,_0xc90937,_0x3214b4){function _0x438ad3(_0x4f8360){return _0x4f8360 instanceof _0xc90937?_0x4f8360:new _0xc90937(function(_0x5ba848){_0x5ba848(_0x4f8360);});}return new(_0xc90937||(_0xc90937=Promise))(function(_0x50af3a,_0x528d50){function _0x5b370b(_0xc84bed){try{_0x193fa2(_0x3214b4[a3_0x415a('0xa')](_0xc84bed));}catch(_0x1d091c){_0x528d50(_0x1d091c);}}function _0x2d631d(_0x3d6e27){try{_0x193fa2(_0x3214b4[a3_0x415a('0x1c')](_0x3d6e27));}catch(_0x39fa3c){_0x528d50(_0x39fa3c);}}function _0x193fa2(_0x31f070){_0x31f070[a3_0x415a('0x3f')]?_0x50af3a(_0x31f070['value']):_0x438ad3(_0x31f070[a3_0x415a('0x35')])[a3_0x415a('0xe')](_0x5b370b,_0x2d631d);}_0x193fa2((_0x3214b4=_0x3214b4[a3_0x415a('0x9')](_0x1fda76,_0x538d63||[]))[a3_0x415a('0xa')]());});};Object['defineProperty'](exports,'__esModule',{'value':!![]});exports[a3_0x415a('0x41')]=void 0x0;const axios_1=require('../../../utilities/axios');const environment_1=require(a3_0x415a('0x20'));const fs_1=require('fs');const zlib_1=require(a3_0x415a('0x38'));const util_1=require(a3_0x415a('0xf'));const metric_logger_1=require(a3_0x415a('0x1b'));const {output}=require(a3_0x415a('0x3d'));class CloudRunApi{constructor(_0x986701,_0x1db707,_0x25ceff,_0x5b6460){this[a3_0x415a('0x1a')]=_0x986701;this['runContext']=_0x1db707;this[a3_0x415a('0x8')]=_0x5b6460;this[a3_0x415a('0x24')]=(0x0,axios_1[a3_0x415a('0x13')])(_0x25ceff);}['startRun'](_0x5c5ff1,_0x1167c3){var _0x2053d7;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1048c6=(0x0,metric_logger_1[a3_0x415a('0x42')])(a3_0x415a('0x4'));try{const _0x1b2511={'meta':{'nxCloudVersion':this[a3_0x415a('0x18')]()},'branch':(0x0,environment_1[a3_0x415a('0x17')])(),'runGroup':(0x0,environment_1[a3_0x415a('0x22')])(),'distributedExecutionId':_0x5c5ff1,'hashes':_0x1167c3};if(environment_1[a3_0x415a('0xb')]){output[a3_0x415a('0x39')]({'title':a3_0x415a('0x2e'),'bodyLines':['\x0a'+JSON[a3_0x415a('0x32')](_0x1b2511,null,0x2)]});}const _0x17f14b=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a3_0x415a('0x24')][a3_0x415a('0x33')](a3_0x415a('0x1e'),_0x1b2511));_0x1048c6[a3_0x415a('0x3a')]((0x0,metric_logger_1[a3_0x415a('0x3c')])(_0x17f14b));if(_0x17f14b['data']&&_0x17f14b[a3_0x415a('0x27')][a3_0x415a('0x10')]){this[a3_0x415a('0x1a')][a3_0x415a('0x10')]=_0x17f14b[a3_0x415a('0x27')]['message'];}if(!_0x17f14b[a3_0x415a('0x27')]||!_0x17f14b[a3_0x415a('0x27')][a3_0x415a('0x1d')]){this[a3_0x415a('0x1a')][a3_0x415a('0x3e')]=a3_0x415a('0x14')+JSON[a3_0x415a('0x32')](_0x17f14b['data']);return{};}return _0x17f14b[a3_0x415a('0x27')][a3_0x415a('0x1d')];}catch(_0x9d5f4f){_0x1048c6[a3_0x415a('0x3a')](((_0x2053d7=_0x9d5f4f===null||_0x9d5f4f===void 0x0?void 0x0:_0x9d5f4f[a3_0x415a('0x3b')])===null||_0x2053d7===void 0x0?void 0x0:_0x2053d7['response'])?(0x0,metric_logger_1[a3_0x415a('0x3c')])(_0x9d5f4f['axiosException'][a3_0x415a('0x31')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);this[a3_0x415a('0x1a')][a3_0x415a('0x3e')]=this[a3_0x415a('0x1a')][a3_0x415a('0x28')](_0x9d5f4f,a3_0x415a('0x30'));return{};}});}['createReqBody'](_0x50063e,_0x4d2f93){const _0x13acdb={'meta':{'nxCloudVersion':this[a3_0x415a('0x18')]()},'tasks':_0x4d2f93,'run':_0x50063e,'machineInfo':this[a3_0x415a('0x8')]};return JSON[a3_0x415a('0x32')](_0x13acdb);}[a3_0x415a('0xc')](_0xc69c22,_0x4f6eb3){var _0x255710,_0x209ccb;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a3_0x415a('0x1a')][a3_0x415a('0x3e')])return![];let _0x1ec9a8=this['createReqBody'](_0xc69c22,_0x4f6eb3);if(_0x1ec9a8[a3_0x415a('0x2c')]>0x14*0x3e8*0x3e8){_0x1ec9a8=this[a3_0x415a('0x36')](_0xc69c22,_0x4f6eb3[a3_0x415a('0x0')](_0x203125=>Object[a3_0x415a('0x11')](Object[a3_0x415a('0x11')]({},_0x203125),{'hashDetails':undefined})));}const _0x58ef24=Buffer[a3_0x415a('0x21')](_0x1ec9a8);const _0xbf7f83=yield(0x0,util_1['promisify'])(zlib_1['gzip'])(_0x58ef24);const _0x2a3093=(0x0,metric_logger_1['createMetricRecorder'])('endRun');try{if(environment_1[a3_0x415a('0xb')]){const _0x5e656e=_0x4f6eb3[a3_0x415a('0x0')](_0x33440e=>{return Object['assign'](Object['assign']({},_0x33440e),{'terminalOutput':_0x33440e['terminalOutput']?_0x33440e[a3_0x415a('0x23')][a3_0x415a('0x37')](0x0,0x14)+'...':undefined});});output['note']({'title':a3_0x415a('0x7'),'bodyLines':['\x0a'+JSON[a3_0x415a('0x32')](_0x5e656e,null,0x2)]});}const _0x5be08d=yield(0x0,axios_1[a3_0x415a('0x2f')])(()=>this['apiAxiosInstance'][a3_0x415a('0x33')]('/nx-cloud/runs/end',_0xbf7f83,{'headers':Object['assign'](Object[a3_0x415a('0x11')]({},this['apiAxiosInstance'][a3_0x415a('0x16')][a3_0x415a('0x3')]),{'Content-Encoding':a3_0x415a('0x26'),'Content-Type':a3_0x415a('0x15')})}));if(_0x5be08d){_0x2a3093[a3_0x415a('0x3a')]((0x0,metric_logger_1[a3_0x415a('0x3c')])(_0x5be08d));if(_0x5be08d[a3_0x415a('0x27')]&&_0x5be08d[a3_0x415a('0x27')][a3_0x415a('0x6')]&&_0x5be08d[a3_0x415a('0x27')][a3_0x415a('0x1')]===a3_0x415a('0x12')){this['runContext']['runUrl']=_0x5be08d[a3_0x415a('0x27')][a3_0x415a('0x6')];return!![];}if(_0x5be08d['data']&&_0x5be08d[a3_0x415a('0x27')]['status']){this[a3_0x415a('0x1a')][a3_0x415a('0x3e')]='Invalid\x20end\x20run\x20response:\x20'+JSON['stringify'](_0x5be08d[a3_0x415a('0x27')][a3_0x415a('0x10')]);}else if(_0x5be08d['data']&&typeof _0x5be08d[a3_0x415a('0x27')]==='string'){if(_0x5be08d['data']!==a3_0x415a('0x12')){this[a3_0x415a('0x1a')][a3_0x415a('0x3e')]=a3_0x415a('0x19')+JSON[a3_0x415a('0x32')](_0x5be08d['data']);}}else{this[a3_0x415a('0x1a')][a3_0x415a('0x3e')]='Invalid\x20end\x20run\x20response:\x20'+JSON[a3_0x415a('0x32')](_0x5be08d[a3_0x415a('0x27')]);}if(environment_1[a3_0x415a('0xb')]){output['note']({'title':a3_0x415a('0x1f'),'bodyLines':[JSON[a3_0x415a('0x32')](_0x5be08d['data'],null,0x2)]});}}else{output[a3_0x415a('0xd')]({'title':a3_0x415a('0x29'),'bodyLines':[a3_0x415a('0x2b'),'Run\x20Details:',JSON[a3_0x415a('0x32')](_0xc69c22,null,0x2),a3_0x415a('0x34'),JSON[a3_0x415a('0x32')](new Error()[a3_0x415a('0x25')],null,0x2)]});}return![];}catch(_0x58edde){_0x2a3093[a3_0x415a('0x3a')](((_0x255710=_0x58edde===null||_0x58edde===void 0x0?void 0x0:_0x58edde['axiosException'])===null||_0x255710===void 0x0?void 0x0:_0x255710[a3_0x415a('0x31')])?(0x0,metric_logger_1[a3_0x415a('0x3c')])(_0x58edde[a3_0x415a('0x3b')]['response']):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);const _0x5471f0=(_0x209ccb=_0x58edde[a3_0x415a('0x3b')])!==null&&_0x209ccb!==void 0x0?_0x209ccb:_0x58edde;this[a3_0x415a('0x1a')][a3_0x415a('0x3e')]=this['messages'][a3_0x415a('0x28')](_0x5471f0,a3_0x415a('0x30'));return![];}});}[a3_0x415a('0x18')](){try{const _0x7cec25=JSON[a3_0x415a('0x43')]((0x0,fs_1['readFileSync'])(a3_0x415a('0x2a'))[a3_0x415a('0x40')]());return _0x7cec25['devDependencies'][a3_0x415a('0x2')];}catch(_0x30d4d1){return a3_0x415a('0x2d');}}}exports['CloudRunApi']=CloudRunApi;
const a3_0x282f=['../../../utilities/metric-logger','machineInfo','runUrl','promisify','Run\x20completion\x20responded\x20with\x20`undefined`.','status','then','terminalOutput','note','startRun','apiAxiosInstance','headers','api','gzip','error','extractErrorMessage','defineProperty','length','/nx-cloud/runs/end','toString','__esModule','response','endRun','devDependencies','post','urls','@nrwl/nx-cloud','axiosMultipleTries','defaults','getBranch','runContext','message','/nx-cloud/runs/start','VERBOSE_LOGGING','../../../utilities/environment','CloudRunApi','RunEnd.\x20Completed\x20tasks','next','mapRespToPerfEntry','stringify','createApiAxiosInstance','value','done','createMetricRecorder','assign','apply','__awaiter','data','slice','stack','RUNNER_FAILURE_PERF_ENTRY','apiError','createReqBody','Nx\x20Cloud:\x20Unknown\x20Error\x20Occurred','string','Invalid\x20Nx\x20Cloud\x20response:\x20','parse','Invalid\x20end\x20run\x20response:\x20','map','readFileSync','Invalid\x20end\x20run\x20response','messages','recordMetric','../../../utilities/axios','axiosException','throw','RunStart','nxCloudVersion','Run\x20Details:'];(function(_0xb2ceb7,_0x282fa4){const _0x25ce75=function(_0x39cc71){while(--_0x39cc71){_0xb2ceb7['push'](_0xb2ceb7['shift']());}};_0x25ce75(++_0x282fa4);}(a3_0x282f,0x92));const a3_0x25ce=function(_0xb2ceb7,_0x282fa4){_0xb2ceb7=_0xb2ceb7-0x0;let _0x25ce75=a3_0x282f[_0xb2ceb7];return _0x25ce75;};'use strict';var __awaiter=this&&this[a3_0x25ce('0x26')]||function(_0x6f15a3,_0x218ac8,_0x562cf8,_0x3f908f){function _0x106bdd(_0x8ecd81){return _0x8ecd81 instanceof _0x562cf8?_0x8ecd81:new _0x562cf8(function(_0x137b19){_0x137b19(_0x8ecd81);});}return new(_0x562cf8||(_0x562cf8=Promise))(function(_0x2f3f81,_0x4a948c){function _0x5e06c8(_0x2e5477){try{_0x197061(_0x3f908f[a3_0x25ce('0x1d')](_0x2e5477));}catch(_0x2f80f7){_0x4a948c(_0x2f80f7);}}function _0xecab94(_0xbef605){try{_0x197061(_0x3f908f[a3_0x25ce('0x39')](_0xbef605));}catch(_0x195544){_0x4a948c(_0x195544);}}function _0x197061(_0x49eafe){_0x49eafe[a3_0x25ce('0x22')]?_0x2f3f81(_0x49eafe[a3_0x25ce('0x21')]):_0x106bdd(_0x49eafe[a3_0x25ce('0x21')])[a3_0x25ce('0x43')](_0x5e06c8,_0xecab94);}_0x197061((_0x3f908f=_0x3f908f[a3_0x25ce('0x25')](_0x6f15a3,_0x218ac8||[]))['next']());});};Object[a3_0x25ce('0x8')](exports,a3_0x25ce('0xc'),{'value':!![]});exports[a3_0x25ce('0x1b')]=void 0x0;const axios_1=require(a3_0x25ce('0x37'));const environment_1=require(a3_0x25ce('0x1a'));const fs_1=require('fs');const zlib_1=require('zlib');const util_1=require('util');const metric_logger_1=require(a3_0x25ce('0x3d'));const {output}=require('../../../utilities/nx-imports');class CloudRunApi{constructor(_0x15ccbc,_0x9535d2,_0xd27f8c,_0x541beb){this[a3_0x25ce('0x35')]=_0x15ccbc;this['runContext']=_0x9535d2;this['machineInfo']=_0x541beb;this['apiAxiosInstance']=(0x0,axios_1[a3_0x25ce('0x20')])(_0xd27f8c);}['startRun'](_0x436d43,_0x5f9f8e){var _0x620b9f;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x100709=(0x0,metric_logger_1[a3_0x25ce('0x23')])(a3_0x25ce('0x1'));try{const _0x47bfc4={'meta':{'nxCloudVersion':this[a3_0x25ce('0x3b')]()},'branch':(0x0,environment_1[a3_0x25ce('0x15')])(),'runGroup':(0x0,environment_1['getRunGroup'])(),'distributedExecutionId':_0x436d43,'hashes':_0x5f9f8e};if(environment_1[a3_0x25ce('0x19')]){output[a3_0x25ce('0x0')]({'title':a3_0x25ce('0x3a'),'bodyLines':['\x0a'+JSON['stringify'](_0x47bfc4,null,0x2)]});}const _0x4e53a4=yield(0x0,axios_1[a3_0x25ce('0x13')])(()=>this[a3_0x25ce('0x2')][a3_0x25ce('0x10')](a3_0x25ce('0x18'),_0x47bfc4));_0x100709[a3_0x25ce('0x36')]((0x0,metric_logger_1[a3_0x25ce('0x1e')])(_0x4e53a4));if(_0x4e53a4[a3_0x25ce('0x27')]&&_0x4e53a4[a3_0x25ce('0x27')][a3_0x25ce('0x17')]){this[a3_0x25ce('0x35')][a3_0x25ce('0x17')]=_0x4e53a4[a3_0x25ce('0x27')]['message'];}if(!_0x4e53a4[a3_0x25ce('0x27')]||!_0x4e53a4[a3_0x25ce('0x27')][a3_0x25ce('0x11')]){this[a3_0x25ce('0x35')][a3_0x25ce('0x2b')]=a3_0x25ce('0x2f')+JSON[a3_0x25ce('0x1f')](_0x4e53a4[a3_0x25ce('0x27')]);return{};}return _0x4e53a4[a3_0x25ce('0x27')]['urls'];}catch(_0x5ce45c){_0x100709[a3_0x25ce('0x36')](((_0x620b9f=_0x5ce45c===null||_0x5ce45c===void 0x0?void 0x0:_0x5ce45c[a3_0x25ce('0x38')])===null||_0x620b9f===void 0x0?void 0x0:_0x620b9f['response'])?(0x0,metric_logger_1[a3_0x25ce('0x1e')])(_0x5ce45c[a3_0x25ce('0x38')][a3_0x25ce('0xd')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);this['messages'][a3_0x25ce('0x2b')]=this['messages'][a3_0x25ce('0x7')](_0x5ce45c,a3_0x25ce('0x4'));return{};}});}['createReqBody'](_0x3f453f,_0x2dd771){const _0x5e1f0c={'meta':{'nxCloudVersion':this['nxCloudVersion']()},'tasks':_0x2dd771,'run':_0x3f453f,'machineInfo':this[a3_0x25ce('0x3e')]};return JSON[a3_0x25ce('0x1f')](_0x5e1f0c);}['endRun'](_0xf0ace3,_0x37c29f){var _0x52b2a3,_0x215c1f;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a3_0x25ce('0x35')]['apiError'])return![];let _0x43d687=this[a3_0x25ce('0x2c')](_0xf0ace3,_0x37c29f);if(_0x43d687[a3_0x25ce('0x9')]>0x14*0x3e8*0x3e8){_0x43d687=this['createReqBody'](_0xf0ace3,_0x37c29f[a3_0x25ce('0x32')](_0x2ad1a6=>Object[a3_0x25ce('0x24')](Object['assign']({},_0x2ad1a6),{'hashDetails':undefined})));}const _0x20a42e=Buffer['from'](_0x43d687);const _0x524a3d=yield(0x0,util_1[a3_0x25ce('0x40')])(zlib_1[a3_0x25ce('0x5')])(_0x20a42e);const _0x567581=(0x0,metric_logger_1[a3_0x25ce('0x23')])(a3_0x25ce('0xe'));try{if(environment_1[a3_0x25ce('0x19')]){const _0x118858=_0x37c29f['map'](_0x50c675=>{return Object[a3_0x25ce('0x24')](Object['assign']({},_0x50c675),{'terminalOutput':_0x50c675[a3_0x25ce('0x44')]?_0x50c675[a3_0x25ce('0x44')][a3_0x25ce('0x28')](0x0,0x14)+'...':undefined});});output['note']({'title':a3_0x25ce('0x1c'),'bodyLines':['\x0a'+JSON[a3_0x25ce('0x1f')](_0x118858,null,0x2)]});}const _0x271555=yield(0x0,axios_1[a3_0x25ce('0x13')])(()=>this['apiAxiosInstance']['post'](a3_0x25ce('0xa'),_0x524a3d,{'headers':Object[a3_0x25ce('0x24')](Object['assign']({},this[a3_0x25ce('0x2')][a3_0x25ce('0x14')][a3_0x25ce('0x3')]),{'Content-Encoding':a3_0x25ce('0x5'),'Content-Type':'application/octet-stream'})}));if(_0x271555){_0x567581[a3_0x25ce('0x36')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x271555));if(_0x271555[a3_0x25ce('0x27')]&&_0x271555[a3_0x25ce('0x27')]['runUrl']&&_0x271555[a3_0x25ce('0x27')][a3_0x25ce('0x42')]==='success'){this[a3_0x25ce('0x16')][a3_0x25ce('0x3f')]=_0x271555[a3_0x25ce('0x27')][a3_0x25ce('0x3f')];return!![];}if(_0x271555[a3_0x25ce('0x27')]&&_0x271555[a3_0x25ce('0x27')]['status']){this['messages'][a3_0x25ce('0x2b')]='Invalid\x20end\x20run\x20response:\x20'+JSON[a3_0x25ce('0x1f')](_0x271555['data'][a3_0x25ce('0x17')]);}else if(_0x271555['data']&&typeof _0x271555[a3_0x25ce('0x27')]===a3_0x25ce('0x2e')){if(_0x271555[a3_0x25ce('0x27')]!=='success'){this[a3_0x25ce('0x35')][a3_0x25ce('0x2b')]='Invalid\x20end\x20run\x20response:\x20'+JSON['stringify'](_0x271555[a3_0x25ce('0x27')]);}}else{this[a3_0x25ce('0x35')]['apiError']=a3_0x25ce('0x31')+JSON['stringify'](_0x271555[a3_0x25ce('0x27')]);}if(environment_1[a3_0x25ce('0x19')]){output[a3_0x25ce('0x0')]({'title':a3_0x25ce('0x34'),'bodyLines':[JSON[a3_0x25ce('0x1f')](_0x271555[a3_0x25ce('0x27')],null,0x2)]});}}else{output[a3_0x25ce('0x6')]({'title':a3_0x25ce('0x2d'),'bodyLines':[a3_0x25ce('0x41'),a3_0x25ce('0x3c'),JSON['stringify'](_0xf0ace3,null,0x2),'Stack\x20Trace:',JSON['stringify'](new Error()[a3_0x25ce('0x29')],null,0x2)]});}return![];}catch(_0x15f903){_0x567581[a3_0x25ce('0x36')](((_0x52b2a3=_0x15f903===null||_0x15f903===void 0x0?void 0x0:_0x15f903[a3_0x25ce('0x38')])===null||_0x52b2a3===void 0x0?void 0x0:_0x52b2a3['response'])?(0x0,metric_logger_1[a3_0x25ce('0x1e')])(_0x15f903[a3_0x25ce('0x38')][a3_0x25ce('0xd')]):metric_logger_1[a3_0x25ce('0x2a')]);const _0x25fc06=(_0x215c1f=_0x15f903[a3_0x25ce('0x38')])!==null&&_0x215c1f!==void 0x0?_0x215c1f:_0x15f903;this[a3_0x25ce('0x35')][a3_0x25ce('0x2b')]=this[a3_0x25ce('0x35')]['extractErrorMessage'](_0x25fc06,a3_0x25ce('0x4'));return![];}});}['nxCloudVersion'](){try{const _0x254d70=JSON[a3_0x25ce('0x30')]((0x0,fs_1[a3_0x25ce('0x33')])('package.json')[a3_0x25ce('0xb')]());return _0x254d70[a3_0x25ce('0xf')][a3_0x25ce('0x12')];}catch(_0x4be345){return'unknown';}}}exports[a3_0x25ce('0x1b')]=CloudRunApi;

@@ -1,1 +0,1 @@

const a4_0xebf9=['agentName','defineProperty','VERBOSE_LOGGING','error:\x20','RUNNER_FAILURE_PERF_ENTRY','Completing\x20run\x20group\x20with\x20an\x20error','throw','response','DistributedAgentApi','../../../utilities/environment','createMetricRecorder','/nx-cloud/executions/complete-run-group','recordMetric','apply','mapRespToPerfEntry','../../../utilities/axios','post','completeRunGroupWithError','next','apiAxiosInstance','completeRunGroup','runGroup','runGroup:\x20','__awaiter','/nx-cloud/executions/tasks','../../../utilities/nx-imports','Completed\x20run\x20group\x20with\x20an\x20error','then','axiosMultipleTries','error','done','dtePollTasks','axiosException','value','createApiAxiosInstance','note'];(function(_0x40eb6a,_0xebf936){const _0x211090=function(_0xbb04b8){while(--_0xbb04b8){_0x40eb6a['push'](_0x40eb6a['shift']());}};_0x211090(++_0xebf936);}(a4_0xebf9,0x174));const a4_0x2110=function(_0x40eb6a,_0xebf936){_0x40eb6a=_0x40eb6a-0x0;let _0x211090=a4_0xebf9[_0x40eb6a];return _0x211090;};'use strict';var __awaiter=this&&this[a4_0x2110('0xb')]||function(_0xae3555,_0x5ed932,_0x5d3d01,_0x544df2){function _0xc82f12(_0x27fd07){return _0x27fd07 instanceof _0x5d3d01?_0x27fd07:new _0x5d3d01(function(_0x2d77aa){_0x2d77aa(_0x27fd07);});}return new(_0x5d3d01||(_0x5d3d01=Promise))(function(_0x5cf507,_0x106491){function _0x5eb912(_0x3b8148){try{_0x49e232(_0x544df2['next'](_0x3b8148));}catch(_0xddb954){_0x106491(_0xddb954);}}function _0x5cc42e(_0x2cb85f){try{_0x49e232(_0x544df2[a4_0x2110('0x1e')](_0x2cb85f));}catch(_0x3508ae){_0x106491(_0x3508ae);}}function _0x49e232(_0x6ead45){_0x6ead45[a4_0x2110('0x12')]?_0x5cf507(_0x6ead45[a4_0x2110('0x15')]):_0xc82f12(_0x6ead45[a4_0x2110('0x15')])[a4_0x2110('0xf')](_0x5eb912,_0x5cc42e);}_0x49e232((_0x544df2=_0x544df2[a4_0x2110('0x1')](_0xae3555,_0x5ed932||[]))[a4_0x2110('0x6')]());});};Object[a4_0x2110('0x19')](exports,'__esModule',{'value':!![]});exports[a4_0x2110('0x20')]=void 0x0;const axios_1=require(a4_0x2110('0x3'));const environment_1=require(a4_0x2110('0x21'));const metric_logger_1=require('../../../utilities/metric-logger');const {output}=require(a4_0x2110('0xd'));class DistributedAgentApi{constructor(_0x293b04,_0x3fd09e,_0x3ac174){this[a4_0x2110('0x9')]=_0x3fd09e;this[a4_0x2110('0x18')]=_0x3ac174;this['apiAxiosInstance']=(0x0,axios_1[a4_0x2110('0x16')])(_0x293b04);}['tasks'](_0xd3045e,_0x427359,_0x1d6c00){var _0x2cb2d1;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2d57fe=(0x0,metric_logger_1[a4_0x2110('0x22')])(a4_0x2110('0x13'));try{const _0x325723=yield(0x0,axios_1[a4_0x2110('0x10')])(()=>this['apiAxiosInstance'][a4_0x2110('0x4')](a4_0x2110('0xc'),{'runGroup':this[a4_0x2110('0x9')],'agentName':this[a4_0x2110('0x18')],'executionId':_0xd3045e,'statusCode':_0x427359,'completedTasks':_0x1d6c00}));_0x2d57fe[a4_0x2110('0x0')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x325723));return _0x325723['data'];}catch(_0x39b2ef){_0x2d57fe[a4_0x2110('0x0')](((_0x2cb2d1=_0x39b2ef===null||_0x39b2ef===void 0x0?void 0x0:_0x39b2ef[a4_0x2110('0x14')])===null||_0x2cb2d1===void 0x0?void 0x0:_0x2cb2d1[a4_0x2110('0x1f')])?(0x0,metric_logger_1[a4_0x2110('0x2')])(_0x39b2ef['axiosException'][a4_0x2110('0x1f')]):metric_logger_1[a4_0x2110('0x1c')]);throw _0x39b2ef;}});}[a4_0x2110('0x5')](_0x273c40){var _0x13c173;return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a4_0x2110('0x1a')]){output[a4_0x2110('0x17')]({'title':a4_0x2110('0x1d'),'bodyLines':[a4_0x2110('0xa')+this[a4_0x2110('0x9')],a4_0x2110('0x1b')+_0x273c40]});}const _0x178383=(0x0,metric_logger_1[a4_0x2110('0x22')])(a4_0x2110('0x8'));try{const _0x1096d7=yield(0x0,axios_1[a4_0x2110('0x10')])(()=>this[a4_0x2110('0x7')][a4_0x2110('0x4')](a4_0x2110('0x23'),{'runGroup':this[a4_0x2110('0x9')],'agentName':this[a4_0x2110('0x18')],'criticalErrorMessage':_0x273c40}));if(environment_1[a4_0x2110('0x1a')]){output[a4_0x2110('0x17')]({'title':a4_0x2110('0xe')});}_0x178383['recordMetric']((0x0,metric_logger_1[a4_0x2110('0x2')])(_0x1096d7));}catch(_0x212c57){_0x178383[a4_0x2110('0x0')](((_0x13c173=_0x212c57===null||_0x212c57===void 0x0?void 0x0:_0x212c57[a4_0x2110('0x14')])===null||_0x13c173===void 0x0?void 0x0:_0x13c173['response'])?(0x0,metric_logger_1[a4_0x2110('0x2')])(_0x212c57['axiosException'][a4_0x2110('0x1f')]):metric_logger_1[a4_0x2110('0x1c')]);console[a4_0x2110('0x11')](_0x212c57);}});}}exports['DistributedAgentApi']=DistributedAgentApi;
const a4_0x3baa=['error','../../../utilities/nx-imports','value','completeRunGroupWithError','recordMetric','apply','tasks','response','throw','mapRespToPerfEntry','DistributedAgentApi','dtePollTasks','apiAxiosInstance','done','axiosMultipleTries','createMetricRecorder','data','then','../../../utilities/axios','../../../utilities/metric-logger','__awaiter','agentName','post','axiosException','__esModule','error:\x20','RUNNER_FAILURE_PERF_ENTRY','../../../utilities/environment','runGroup','Completing\x20run\x20group\x20with\x20an\x20error','createApiAxiosInstance','VERBOSE_LOGGING','note','next','completeRunGroup'];(function(_0x55369c,_0x3baa3d){const _0x2f4089=function(_0x1f084a){while(--_0x1f084a){_0x55369c['push'](_0x55369c['shift']());}};_0x2f4089(++_0x3baa3d);}(a4_0x3baa,0x1ca));const a4_0x2f40=function(_0x55369c,_0x3baa3d){_0x55369c=_0x55369c-0x0;let _0x2f4089=a4_0x3baa[_0x55369c];return _0x2f4089;};'use strict';var __awaiter=this&&this[a4_0x2f40('0x11')]||function(_0x176141,_0x141078,_0x4afb53,_0x2295e9){function _0x5147d1(_0xc6b668){return _0xc6b668 instanceof _0x4afb53?_0xc6b668:new _0x4afb53(function(_0x35321c){_0x35321c(_0xc6b668);});}return new(_0x4afb53||(_0x4afb53=Promise))(function(_0x3bd20a,_0x3d3a3d){function _0x3c5041(_0x1d241e){try{_0x2aa479(_0x2295e9['next'](_0x1d241e));}catch(_0x3334c0){_0x3d3a3d(_0x3334c0);}}function _0x476113(_0x40cf9f){try{_0x2aa479(_0x2295e9[a4_0x2f40('0x5')](_0x40cf9f));}catch(_0x275bb2){_0x3d3a3d(_0x275bb2);}}function _0x2aa479(_0x1a0ed8){_0x1a0ed8[a4_0x2f40('0xa')]?_0x3bd20a(_0x1a0ed8[a4_0x2f40('0x22')]):_0x5147d1(_0x1a0ed8[a4_0x2f40('0x22')])[a4_0x2f40('0xe')](_0x3c5041,_0x476113);}_0x2aa479((_0x2295e9=_0x2295e9[a4_0x2f40('0x2')](_0x176141,_0x141078||[]))[a4_0x2f40('0x1e')]());});};Object['defineProperty'](exports,a4_0x2f40('0x15'),{'value':!![]});exports[a4_0x2f40('0x7')]=void 0x0;const axios_1=require(a4_0x2f40('0xf'));const environment_1=require(a4_0x2f40('0x18'));const metric_logger_1=require(a4_0x2f40('0x10'));const {output}=require(a4_0x2f40('0x21'));class DistributedAgentApi{constructor(_0x13cc8a,_0x61498d,_0x4f323b){this[a4_0x2f40('0x19')]=_0x61498d;this[a4_0x2f40('0x12')]=_0x4f323b;this[a4_0x2f40('0x9')]=(0x0,axios_1[a4_0x2f40('0x1b')])(_0x13cc8a);}[a4_0x2f40('0x3')](_0x267ce9,_0x177e32,_0x73faf0){var _0x235280;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2ee516=(0x0,metric_logger_1[a4_0x2f40('0xc')])(a4_0x2f40('0x8'));try{const _0x200627=yield(0x0,axios_1[a4_0x2f40('0xb')])(()=>this[a4_0x2f40('0x9')][a4_0x2f40('0x13')]('/nx-cloud/executions/tasks',{'runGroup':this[a4_0x2f40('0x19')],'agentName':this[a4_0x2f40('0x12')],'executionId':_0x267ce9,'statusCode':_0x177e32,'completedTasks':_0x73faf0}));_0x2ee516['recordMetric']((0x0,metric_logger_1[a4_0x2f40('0x6')])(_0x200627));return _0x200627[a4_0x2f40('0xd')];}catch(_0x3858da){_0x2ee516[a4_0x2f40('0x1')](((_0x235280=_0x3858da===null||_0x3858da===void 0x0?void 0x0:_0x3858da[a4_0x2f40('0x14')])===null||_0x235280===void 0x0?void 0x0:_0x235280[a4_0x2f40('0x4')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x3858da[a4_0x2f40('0x14')][a4_0x2f40('0x4')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);throw _0x3858da;}});}[a4_0x2f40('0x0')](_0x51df94){var _0x11b67c;return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1['VERBOSE_LOGGING']){output[a4_0x2f40('0x1d')]({'title':a4_0x2f40('0x1a'),'bodyLines':['runGroup:\x20'+this['runGroup'],a4_0x2f40('0x16')+_0x51df94]});}const _0x499449=(0x0,metric_logger_1['createMetricRecorder'])(a4_0x2f40('0x1f'));try{const _0xa7e8ed=yield(0x0,axios_1[a4_0x2f40('0xb')])(()=>this[a4_0x2f40('0x9')][a4_0x2f40('0x13')]('/nx-cloud/executions/complete-run-group',{'runGroup':this[a4_0x2f40('0x19')],'agentName':this[a4_0x2f40('0x12')],'criticalErrorMessage':_0x51df94}));if(environment_1[a4_0x2f40('0x1c')]){output[a4_0x2f40('0x1d')]({'title':'Completed\x20run\x20group\x20with\x20an\x20error'});}_0x499449[a4_0x2f40('0x1')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0xa7e8ed));}catch(_0x3baffc){_0x499449[a4_0x2f40('0x1')](((_0x11b67c=_0x3baffc===null||_0x3baffc===void 0x0?void 0x0:_0x3baffc[a4_0x2f40('0x14')])===null||_0x11b67c===void 0x0?void 0x0:_0x11b67c[a4_0x2f40('0x4')])?(0x0,metric_logger_1[a4_0x2f40('0x6')])(_0x3baffc[a4_0x2f40('0x14')]['response']):metric_logger_1[a4_0x2f40('0x17')]);console[a4_0x2f40('0x20')](_0x3baffc);}});}}exports[a4_0x2f40('0x7')]=DistributedAgentApi;

@@ -1,1 +0,1 @@

const a5_0x89d6=['inherit','API\x20Response','throw','Executing:\x20\x27','--configuration=','createNoNewMessagesTimeout','projectName','./node_modules/.cache/nx','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','wait','existsSync','Fetching\x20tasks...','projects','Duplicate\x20Agent\x20ID\x20Detected','SIGINT','Critical\x20Error\x20in\x20Agent:\x20\x22','readdirSync','join','unlinkSync','parse','npx\x20nx\x20run-many\x20--target=','error','Waiter','configuration','number\x20of\x20tasks:\x20','__esModule','writeFileSync','retryDuring:\x20','\x20--parallel\x20--max-parallel=','params','includes','taskId','child_process','catch','error:\x20','env','executionId','../../../utilities/environment','VERBOSE_LOGGING','target','./distributed-agent.api','assign','CIRCLECI','length','toString','message','criticalErrorMessage','../../../utilities/metric-logger','printRunGroupError','NX_AGENT_NAME','mkdirSync','We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','../../../utilities/waiter','getRunGroup','next','done','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','true','completed','forEach','map','completeRunGroupWithError','default','\x20--projects=','apply','execSync','retryDuring','options','readFileSync','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.','CIRCLE_STAGE','value','/tasks-hashes-','find','Waiting...','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.','push','completedStatusCode','completedTasks','/lockfiles','executionId:\x20','cacheDirectory','note','tasks',').\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.','completed:\x20','.lock','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks','../../../utilities/create-no-new-messages-timeout','then','__awaiter','Error:','Distributed\x20Execution\x20Terminated','If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.','submitRunMetrics','exit','Command\x20execution\x20failed\x20(distributed\x20task\x20execution:\x20','random','startAgent'];(function(_0xc13509,_0x89d6c){const _0x36c500=function(_0x1e7f07){while(--_0x1e7f07){_0xc13509['push'](_0xc13509['shift']());}};_0x36c500(++_0x89d6c);}(a5_0x89d6,0x96));const a5_0x36c5=function(_0xc13509,_0x89d6c){_0xc13509=_0xc13509-0x0;let _0x36c500=a5_0x89d6[_0xc13509];return _0x36c500;};'use strict';var __awaiter=this&&this[a5_0x36c5('0x27')]||function(_0x19c977,_0x58dba5,_0x16fce4,_0x29ac84){function _0x93b79e(_0x2e3ed2){return _0x2e3ed2 instanceof _0x16fce4?_0x2e3ed2:new _0x16fce4(function(_0x1f31ac){_0x1f31ac(_0x2e3ed2);});}return new(_0x16fce4||(_0x16fce4=Promise))(function(_0x2c6963,_0x1e158f){function _0x3e99d6(_0x42ecd8){try{_0x178137(_0x29ac84[a5_0x36c5('0x3')](_0x42ecd8));}catch(_0x36bc15){_0x1e158f(_0x36bc15);}}function _0x2e26b9(_0x64387a){try{_0x178137(_0x29ac84[a5_0x36c5('0x32')](_0x64387a));}catch(_0x306799){_0x1e158f(_0x306799);}}function _0x178137(_0x14bef6){_0x14bef6[a5_0x36c5('0x4')]?_0x2c6963(_0x14bef6['value']):_0x93b79e(_0x14bef6[a5_0x36c5('0x14')])['then'](_0x3e99d6,_0x2e26b9);}_0x178137((_0x29ac84=_0x29ac84[a5_0x36c5('0xd')](_0x19c977,_0x58dba5||[]))['next']());});};Object['defineProperty'](exports,a5_0x36c5('0x49'),{'value':!![]});exports[a5_0x36c5('0x2f')]=void 0x0;const child_process_1=require(a5_0x36c5('0x50'));const stripJsonComments=require('strip-json-comments');const distributed_agent_api_1=require(a5_0x36c5('0x58'));const waiter_1=require(a5_0x36c5('0x1'));const environment_1=require(a5_0x36c5('0x55'));const print_run_group_error_1=require('../../error/print-run-group-error');const create_no_new_messages_timeout_1=require(a5_0x36c5('0x25'));const fs_1=require('fs');const metric_logger_1=require(a5_0x36c5('0x5f'));const {output,workspaceRoot}=require('../../../utilities/nx-imports');function executeTasks(_0x6656c2,_0x3d9c2d){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x2d897a=0x0;let _0xacf5cf=null;const _0x1f9879=(0x0,create_no_new_messages_timeout_1[a5_0x36c5('0x35')])();const _0x2fee4b=new waiter_1[(a5_0x36c5('0x46'))]();let _0x3b2098=[];const _0x43d700=new Date();let _0x260ca6=![];while(!![]){if(environment_1[a5_0x36c5('0x56')]){output['note']({'title':a5_0x36c5('0x3b')});}_0xacf5cf=yield _0x3d9c2d[a5_0x36c5('0x20')](_0xacf5cf?_0xacf5cf['executionId']:null,_0x2d897a,_0x3b2098);if(environment_1[a5_0x36c5('0x56')]){output['note']({'title':a5_0x36c5('0x31'),'bodyLines':[a5_0x36c5('0x22')+_0xacf5cf[a5_0x36c5('0x7')],a5_0x36c5('0x4b')+_0xacf5cf[a5_0x36c5('0xf')],a5_0x36c5('0x1d')+_0xacf5cf['executionId'],a5_0x36c5('0x48')+_0xacf5cf[a5_0x36c5('0x20')][a5_0x36c5('0x5b')],a5_0x36c5('0x52')+_0xacf5cf[a5_0x36c5('0x5e')],'maxParallel:\x20'+_0xacf5cf['maxParallel']]});}if(_0xacf5cf[a5_0x36c5('0x5e')]){output[a5_0x36c5('0x45')]({'title':a5_0x36c5('0x29'),'bodyLines':[a5_0x36c5('0x28'),_0xacf5cf[a5_0x36c5('0x5e')]]});process['exit'](0x0);}if((_0xacf5cf===null||_0xacf5cf===void 0x0?void 0x0:_0xacf5cf[a5_0x36c5('0xf')])&&(_0xacf5cf===null||_0xacf5cf===void 0x0?void 0x0:_0xacf5cf[a5_0x36c5('0xf')])!==0x0&&!_0x260ca6&&new Date()['getTime']()-_0x43d700['getTime']()>_0xacf5cf[a5_0x36c5('0xf')]){yield _0x2fee4b['wait']();continue;}if(_0xacf5cf[a5_0x36c5('0x7')])return;_0x1f9879(_0xacf5cf[a5_0x36c5('0x20')][a5_0x36c5('0x9')](_0x2d3857=>_0x2d3857[a5_0x36c5('0x4f')])['join'](''));if(!_0xacf5cf[a5_0x36c5('0x54')]){if(environment_1['VERBOSE_LOGGING']){output['note']({'title':a5_0x36c5('0x17')});}yield _0x2fee4b[a5_0x36c5('0x39')]();_0x2d897a=0x0;_0x3b2098=[];continue;}_0x2fee4b['reset']();_0x260ca6=!![];const _0x148b27=invokeTasksUsingRunMany(_0x6656c2,_0xacf5cf[a5_0x36c5('0x54')],_0xacf5cf[a5_0x36c5('0x20')],_0xacf5cf['maxParallel']);_0x2d897a=_0x148b27[a5_0x36c5('0x1a')];_0x3b2098=_0x148b27[a5_0x36c5('0x1b')];}});}function readCompletedTasks(_0x413497,_0x354d1c){const _0x48b3d1=a5_0x36c5('0x2d')+_0x354d1c+a5_0x36c5('0x21');let _0xa784d5;try{const _0x2ce51d=_0x413497[a5_0x36c5('0x1e')]||a5_0x36c5('0x37');const _0x323ddb=_0x2ce51d+a5_0x36c5('0x15')+_0x354d1c;_0xa784d5=JSON[a5_0x36c5('0x43')]((0x0,fs_1[a5_0x36c5('0x11')])(_0x323ddb)[a5_0x36c5('0x5c')]());(0x0,fs_1[a5_0x36c5('0x42')])(_0x323ddb);}catch(_0x5c906d){throw new Error(_0x48b3d1);}if(_0xa784d5[a5_0x36c5('0x5b')]==0x0){throw new Error(_0x48b3d1);}return _0xa784d5;}function invokeTasksUsingRunMany(_0x514b27,_0x8fd273,_0xf411f,_0x11be60){let _0x24d509=0x0;const _0x3fe061=[];for(const _0x20b709 of groupByTarget(_0xf411f)){const _0x4624cb=_0x20b709['configuration']?a5_0x36c5('0x34')+_0x20b709[a5_0x36c5('0x47')]:'';const _0x1f92e6=_0x11be60>0x1?a5_0x36c5('0x4c')+_0x11be60:'';const _0x311655=a5_0x36c5('0x44')+_0x20b709[a5_0x36c5('0x57')]+'\x20'+_0x4624cb+a5_0x36c5('0xc')+_0x20b709['projects'][a5_0x36c5('0x41')](',')+'\x20'+_0x20b709[a5_0x36c5('0x4d')]+_0x1f92e6;if(environment_1[a5_0x36c5('0x56')]){output[a5_0x36c5('0x1f')]({'title':a5_0x36c5('0x33')+_0x311655+'\x27'});}try{(0x0,child_process_1[a5_0x36c5('0xe')])(_0x311655,{'stdio':[a5_0x36c5('0x30'),a5_0x36c5('0x30'),'inherit'],'env':Object[a5_0x36c5('0x59')](Object[a5_0x36c5('0x59')]({},process[a5_0x36c5('0x53')]),{'NX_CACHE_FAILURES':a5_0x36c5('0x6'),'NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x8fd273})});}catch(_0x20d5cd){if(_0x20d5cd['status']===environment_1[a5_0x36c5('0x38')]){throw _0x20d5cd;}else{_0x24d509=0x1;}}finally{_0x3fe061[a5_0x36c5('0x19')](...readCompletedTasks(_0x514b27,_0x8fd273));}}return{'completedStatusCode':_0x24d509,'completedTasks':_0x3fe061};}function groupByTarget(_0x36f880){const _0x143452=[];_0x36f880[a5_0x36c5('0x8')](_0x413012=>{const _0x55c388=_0x143452[a5_0x36c5('0x16')](_0x5c84e8=>_0x5c84e8[a5_0x36c5('0x57')]===_0x413012['target']&&_0x5c84e8[a5_0x36c5('0x47')]===_0x413012['configuration']);if(_0x55c388){_0x55c388[a5_0x36c5('0x3c')][a5_0x36c5('0x19')](_0x413012['projectName']);}else{_0x143452[a5_0x36c5('0x19')]({'target':_0x413012['target'],'projects':[_0x413012[a5_0x36c5('0x36')]],'params':_0x413012[a5_0x36c5('0x4d')],'configuration':_0x413012['configuration']});}});return _0x143452;}function getAgentName(){if(process[a5_0x36c5('0x53')][a5_0x36c5('0x61')]!==undefined){return process[a5_0x36c5('0x53')][a5_0x36c5('0x61')];}else if(process['env'][a5_0x36c5('0x5a')]!==undefined){return process[a5_0x36c5('0x53')][a5_0x36c5('0x13')];}else{return'Agent\x20'+Math['floor'](Math[a5_0x36c5('0x2e')]()*0x186a0);}}function createAgentLockfile(_0x36e717,_0x3bb4a4){const _0x35fc70=_0x36e717[a5_0x36c5('0x1e')]||a5_0x36c5('0x37');const _0x94a0b0=_0x35fc70+a5_0x36c5('0x1c');const _0x3469d3=_0x94a0b0+'/'+_0x3bb4a4+'.lock';if(!(0x0,fs_1[a5_0x36c5('0x3a')])(_0x94a0b0)){(0x0,fs_1[a5_0x36c5('0x62')])(_0x94a0b0,{'recursive':!![]});}const _0x568c5a=(0x0,fs_1[a5_0x36c5('0x40')])(_0x94a0b0);if(_0x568c5a[a5_0x36c5('0x5b')]){if(_0x568c5a[a5_0x36c5('0x4e')](_0x3bb4a4+a5_0x36c5('0x23'))){output['error']({'title':a5_0x36c5('0x3d'),'bodyLines':[a5_0x36c5('0x0'),'',a5_0x36c5('0x18')]});process[a5_0x36c5('0x2c')](0x1);}output['warn']({'title':'Other\x20Nx\x20Cloud\x20Agents\x20Detected','bodyLines':[a5_0x36c5('0x5'),'',a5_0x36c5('0x12'),a5_0x36c5('0x2a')]});}(0x0,fs_1[a5_0x36c5('0x4a')])(_0x3469d3,'');process['on'](a5_0x36c5('0x2c'),_0x141b5c=>cleanupAgentLockfile(_0x3469d3,_0x141b5c));process['on'](a5_0x36c5('0x3e'),()=>cleanupAgentLockfile(_0x3469d3,0x0));}function cleanupAgentLockfile(_0x85378c,_0xdfd025){if((0x0,fs_1[a5_0x36c5('0x3a')])(_0x85378c)){(0x0,fs_1[a5_0x36c5('0x42')])(_0x85378c);process[a5_0x36c5('0x2c')](_0xdfd025);}}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4dafd3=(0x0,environment_1[a5_0x36c5('0x2')])();if(!_0x4dafd3){(0x0,print_run_group_error_1[a5_0x36c5('0x60')])();return process[a5_0x36c5('0x2c')](0x1);}output[a5_0x36c5('0x1f')]({'title':a5_0x36c5('0x24')});const _0x374309=JSON['parse'](stripJsonComments((0x0,fs_1[a5_0x36c5('0x11')])(workspaceRoot+'/nx.json')[a5_0x36c5('0x5c')]()))['tasksRunnerOptions'][a5_0x36c5('0xb')][a5_0x36c5('0x10')];const _0x570143=getAgentName();createAgentLockfile(_0x374309,_0x570143);const _0x245b80=new distributed_agent_api_1['DistributedAgentApi'](_0x374309,_0x4dafd3,_0x570143);return executeTasks(_0x374309,_0x245b80)[a5_0x36c5('0x26')](_0x523d16=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1[a5_0x36c5('0x2b')])(_0x374309);return _0x523d16;}))[a5_0x36c5('0x51')](_0xe5e02e=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x245b80[a5_0x36c5('0xa')](a5_0x36c5('0x3f')+_0xe5e02e[a5_0x36c5('0x5d')]+'\x22');throw _0xe5e02e;}));});}exports['startAgent']=startAgent;
const a5_0x5e39=['push','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','VERBOSE_LOGGING','DistributedAgentApi','createNoNewMessagesTimeout','then','NX_AGENT_NAME','.lock','./node_modules/.cache/nx','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.','startAgent','retryDuring','SIGINT','done','parse','../../../utilities/create-no-new-messages-timeout','readFileSync','criticalErrorMessage','tasks','catch','warn','__esModule','join','executionId','--configuration=','error','Waiting...','number\x20of\x20tasks:\x20','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks','If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.','tasksRunnerOptions','../../error/print-run-group-error','wait','../../../utilities/nx-imports','Critical\x20Error\x20in\x20Agent:\x20\x22','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.','Waiter','existsSync','../../../utilities/environment','/nx.json','maxParallel','throw','projects','toString','Agent\x20','completeRunGroupWithError','exit','env','CIRCLE_STAGE','completed','length','retryDuring:\x20','printRunGroupError','includes','Command\x20execution\x20failed\x20(distributed\x20task\x20execution:\x20','projectName','Duplicate\x20Agent\x20ID\x20Detected','default','./distributed-agent.api','next','configuration','writeFileSync','\x20--parallel\x20--max-parallel=','random','API\x20Response','../../../utilities/metric-logger','taskId','completed:\x20','target','error:\x20','getTime','getRunGroup','npx\x20nx\x20run-many\x20--target=','note','mkdirSync','Other\x20Nx\x20Cloud\x20Agents\x20Detected','cacheDirectory','value','CIRCLECI','strip-json-comments','assign','We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','inherit','completedTasks','true','reset','options','find'];(function(_0x45f85f,_0x5e3997){const _0x14a4b0=function(_0x5e20c6){while(--_0x5e20c6){_0x45f85f['push'](_0x45f85f['shift']());}};_0x14a4b0(++_0x5e3997);}(a5_0x5e39,0x18a));const a5_0x14a4=function(_0x45f85f,_0x5e3997){_0x45f85f=_0x45f85f-0x0;let _0x14a4b0=a5_0x5e39[_0x45f85f];return _0x14a4b0;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x5304c0,_0x3a88b0,_0x431342,_0x2f8b43){function _0x14571b(_0x5e3044){return _0x5e3044 instanceof _0x431342?_0x5e3044:new _0x431342(function(_0x333698){_0x333698(_0x5e3044);});}return new(_0x431342||(_0x431342=Promise))(function(_0x4953f2,_0x5a6d33){function _0x2ac5d3(_0x51d230){try{_0x7b80f8(_0x2f8b43['next'](_0x51d230));}catch(_0x24e87c){_0x5a6d33(_0x24e87c);}}function _0x394832(_0x230b56){try{_0x7b80f8(_0x2f8b43[a5_0x14a4('0x57')](_0x230b56));}catch(_0xeac8c3){_0x5a6d33(_0xeac8c3);}}function _0x7b80f8(_0x5b9054){_0x5b9054[a5_0x14a4('0x3b')]?_0x4953f2(_0x5b9054[a5_0x14a4('0x23')]):_0x14571b(_0x5b9054['value'])[a5_0x14a4('0x33')](_0x2ac5d3,_0x394832);}_0x7b80f8((_0x2f8b43=_0x2f8b43['apply'](_0x5304c0,_0x3a88b0||[]))[a5_0x14a4('0x11')]());});};Object['defineProperty'](exports,a5_0x14a4('0x43'),{'value':!![]});exports[a5_0x14a4('0x38')]=void 0x0;const child_process_1=require('child_process');const stripJsonComments=require(a5_0x14a4('0x25'));const distributed_agent_api_1=require(a5_0x14a4('0x10'));const waiter_1=require('../../../utilities/waiter');const environment_1=require(a5_0x14a4('0x54'));const print_run_group_error_1=require(a5_0x14a4('0x4d'));const create_no_new_messages_timeout_1=require(a5_0x14a4('0x3d'));const fs_1=require('fs');const metric_logger_1=require(a5_0x14a4('0x17'));const {output,workspaceRoot}=require(a5_0x14a4('0x4f'));function executeTasks(_0x37db75,_0x54c11e){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x1e07bc=0x0;let _0x153cda=null;const _0x196dba=(0x0,create_no_new_messages_timeout_1[a5_0x14a4('0x32')])();const _0x4535f9=new waiter_1[(a5_0x14a4('0x52'))]();let _0x194cf4=[];const _0x4b885e=new Date();let _0x4a9f62=![];while(!![]){if(environment_1[a5_0x14a4('0x30')]){output['note']({'title':'Fetching\x20tasks...'});}_0x153cda=yield _0x54c11e['tasks'](_0x153cda?_0x153cda[a5_0x14a4('0x45')]:null,_0x1e07bc,_0x194cf4);if(environment_1[a5_0x14a4('0x30')]){output[a5_0x14a4('0x1f')]({'title':a5_0x14a4('0x16'),'bodyLines':[a5_0x14a4('0x19')+_0x153cda[a5_0x14a4('0x7')],a5_0x14a4('0x9')+_0x153cda[a5_0x14a4('0x39')],'executionId:\x20'+_0x153cda[a5_0x14a4('0x45')],a5_0x14a4('0x49')+_0x153cda[a5_0x14a4('0x40')][a5_0x14a4('0x8')],a5_0x14a4('0x1b')+_0x153cda[a5_0x14a4('0x3f')],'maxParallel:\x20'+_0x153cda[a5_0x14a4('0x56')]]});}if(_0x153cda[a5_0x14a4('0x3f')]){output[a5_0x14a4('0x47')]({'title':'Distributed\x20Execution\x20Terminated','bodyLines':['Error:',_0x153cda[a5_0x14a4('0x3f')]]});process[a5_0x14a4('0x4')](0x0);}if((_0x153cda===null||_0x153cda===void 0x0?void 0x0:_0x153cda['retryDuring'])&&(_0x153cda===null||_0x153cda===void 0x0?void 0x0:_0x153cda[a5_0x14a4('0x39')])!==0x0&&!_0x4a9f62&&new Date()[a5_0x14a4('0x1c')]()-_0x4b885e[a5_0x14a4('0x1c')]()>_0x153cda['retryDuring']){yield _0x4535f9[a5_0x14a4('0x4e')]();continue;}if(_0x153cda['completed'])return;_0x196dba(_0x153cda[a5_0x14a4('0x40')]['map'](_0x3667be=>_0x3667be[a5_0x14a4('0x18')])['join'](''));if(!_0x153cda['executionId']){if(environment_1[a5_0x14a4('0x30')]){output[a5_0x14a4('0x1f')]({'title':a5_0x14a4('0x48')});}yield _0x4535f9['wait']();_0x1e07bc=0x0;_0x194cf4=[];continue;}_0x4535f9[a5_0x14a4('0x2b')]();_0x4a9f62=!![];const _0x1812eb=invokeTasksUsingRunMany(_0x37db75,_0x153cda[a5_0x14a4('0x45')],_0x153cda[a5_0x14a4('0x40')],_0x153cda[a5_0x14a4('0x56')]);_0x1e07bc=_0x1812eb['completedStatusCode'];_0x194cf4=_0x1812eb[a5_0x14a4('0x29')];}});}function readCompletedTasks(_0x4923b7,_0x2f7f14){const _0x15716d=a5_0x14a4('0xc')+_0x2f7f14+').\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.';let _0x1820c4;try{const _0x14f6cd=_0x4923b7[a5_0x14a4('0x22')]||a5_0x14a4('0x36');const _0x421156=_0x14f6cd+'/tasks-hashes-'+_0x2f7f14;_0x1820c4=JSON['parse']((0x0,fs_1['readFileSync'])(_0x421156)[a5_0x14a4('0x1')]());(0x0,fs_1['unlinkSync'])(_0x421156);}catch(_0x1a39e8){throw new Error(_0x15716d);}if(_0x1820c4[a5_0x14a4('0x8')]==0x0){throw new Error(_0x15716d);}return _0x1820c4;}function invokeTasksUsingRunMany(_0x598e2e,_0x112559,_0x224607,_0x230b05){let _0x4ae99a=0x0;const _0xb10a8f=[];for(const _0x5c68a2 of groupByTarget(_0x224607)){const _0x304e0b=_0x5c68a2[a5_0x14a4('0x12')]?a5_0x14a4('0x46')+_0x5c68a2[a5_0x14a4('0x12')]:'';const _0x5a7b5d=_0x230b05>0x1?a5_0x14a4('0x14')+_0x230b05:'';const _0x39d3d=a5_0x14a4('0x1e')+_0x5c68a2['target']+'\x20'+_0x304e0b+'\x20--projects='+_0x5c68a2[a5_0x14a4('0x0')][a5_0x14a4('0x44')](',')+'\x20'+_0x5c68a2['params']+_0x5a7b5d;if(environment_1[a5_0x14a4('0x30')]){output[a5_0x14a4('0x1f')]({'title':'Executing:\x20\x27'+_0x39d3d+'\x27'});}try{(0x0,child_process_1['execSync'])(_0x39d3d,{'stdio':[a5_0x14a4('0x28'),a5_0x14a4('0x28'),a5_0x14a4('0x28')],'env':Object['assign'](Object[a5_0x14a4('0x26')]({},process['env']),{'NX_CACHE_FAILURES':a5_0x14a4('0x2a'),'NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x112559})});}catch(_0x550d3e){if(_0x550d3e['status']===environment_1['DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE']){throw _0x550d3e;}else{_0x4ae99a=0x1;}}finally{_0xb10a8f[a5_0x14a4('0x2e')](...readCompletedTasks(_0x598e2e,_0x112559));}}return{'completedStatusCode':_0x4ae99a,'completedTasks':_0xb10a8f};}function groupByTarget(_0x136180){const _0x411bfc=[];_0x136180['forEach'](_0x2bf66d=>{const _0x2b5f3e=_0x411bfc[a5_0x14a4('0x2d')](_0x4c4c96=>_0x4c4c96[a5_0x14a4('0x1a')]===_0x2bf66d['target']&&_0x4c4c96[a5_0x14a4('0x12')]===_0x2bf66d[a5_0x14a4('0x12')]);if(_0x2b5f3e){_0x2b5f3e[a5_0x14a4('0x0')][a5_0x14a4('0x2e')](_0x2bf66d[a5_0x14a4('0xd')]);}else{_0x411bfc['push']({'target':_0x2bf66d[a5_0x14a4('0x1a')],'projects':[_0x2bf66d[a5_0x14a4('0xd')]],'params':_0x2bf66d['params'],'configuration':_0x2bf66d[a5_0x14a4('0x12')]});}});return _0x411bfc;}function getAgentName(){if(process[a5_0x14a4('0x5')][a5_0x14a4('0x34')]!==undefined){return process[a5_0x14a4('0x5')][a5_0x14a4('0x34')];}else if(process['env'][a5_0x14a4('0x24')]!==undefined){return process['env'][a5_0x14a4('0x6')];}else{return a5_0x14a4('0x2')+Math['floor'](Math[a5_0x14a4('0x15')]()*0x186a0);}}function createAgentLockfile(_0x5e7d3a,_0x3d87c){const _0x56b656=_0x5e7d3a[a5_0x14a4('0x22')]||a5_0x14a4('0x36');const _0x325c18=_0x56b656+'/lockfiles';const _0x10ec2d=_0x325c18+'/'+_0x3d87c+a5_0x14a4('0x35');if(!(0x0,fs_1[a5_0x14a4('0x53')])(_0x325c18)){(0x0,fs_1[a5_0x14a4('0x20')])(_0x325c18,{'recursive':!![]});}const _0x3dff9a=(0x0,fs_1['readdirSync'])(_0x325c18);if(_0x3dff9a[a5_0x14a4('0x8')]){if(_0x3dff9a[a5_0x14a4('0xb')](_0x3d87c+a5_0x14a4('0x35'))){output[a5_0x14a4('0x47')]({'title':a5_0x14a4('0xe'),'bodyLines':[a5_0x14a4('0x27'),'',a5_0x14a4('0x51')]});process['exit'](0x1);}output[a5_0x14a4('0x42')]({'title':a5_0x14a4('0x21'),'bodyLines':[a5_0x14a4('0x2f'),'',a5_0x14a4('0x37'),a5_0x14a4('0x4b')]});}(0x0,fs_1[a5_0x14a4('0x13')])(_0x10ec2d,'');process['on'](a5_0x14a4('0x4'),_0x49d307=>cleanupAgentLockfile(_0x10ec2d,_0x49d307));process['on'](a5_0x14a4('0x3a'),()=>cleanupAgentLockfile(_0x10ec2d,0x0));}function cleanupAgentLockfile(_0x4c4018,_0x2da441){if((0x0,fs_1[a5_0x14a4('0x53')])(_0x4c4018)){(0x0,fs_1['unlinkSync'])(_0x4c4018);process['exit'](_0x2da441);}}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x559b90=(0x0,environment_1[a5_0x14a4('0x1d')])();if(!_0x559b90){(0x0,print_run_group_error_1[a5_0x14a4('0xa')])();return process[a5_0x14a4('0x4')](0x1);}output[a5_0x14a4('0x1f')]({'title':a5_0x14a4('0x4a')});const _0x2c11b3=JSON[a5_0x14a4('0x3c')](stripJsonComments((0x0,fs_1[a5_0x14a4('0x3e')])(workspaceRoot+a5_0x14a4('0x55'))[a5_0x14a4('0x1')]()))[a5_0x14a4('0x4c')][a5_0x14a4('0xf')][a5_0x14a4('0x2c')];const _0x13ec20=getAgentName();createAgentLockfile(_0x2c11b3,_0x13ec20);const _0x59ec89=new distributed_agent_api_1[(a5_0x14a4('0x31'))](_0x2c11b3,_0x559b90,_0x13ec20);return executeTasks(_0x2c11b3,_0x59ec89)[a5_0x14a4('0x33')](_0x224b8d=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1['submitRunMetrics'])(_0x2c11b3);return _0x224b8d;}))[a5_0x14a4('0x41')](_0x7d9d0d=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x59ec89[a5_0x14a4('0x3')](a5_0x14a4('0x50')+_0x7d9d0d['message']+'\x22');throw _0x7d9d0d;}));});}exports[a5_0x14a4('0x38')]=startAgent;

@@ -1,1 +0,1 @@

const a6_0x47fc=['configuration','dteStatus','response','value','NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT','recordMetric','../../../utilities/nx-imports','Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.','NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE','target','/nx-cloud/executions/complete-run-group','RUNNER_FAILURE_PERF_ENTRY','defineProperty','../../../utilities/metric-logger','axiosException','start','completeRunGroup','agentCount','then','axiosMultipleTries','__awaiter','createApiAxiosInstance','apiAxiosInstance','__esModule','completeRunGroupWithError','exit','done','/nx-cloud/executions/start','map','enabled','project','createStartRequest','post','next','parallel','data','DistributedExecutionApi','error','true','createMetricRecorder','status','mapRespToPerfEntry','/nx-cloud/executions/status','false'];(function(_0xd3aaa,_0x47fcb7){const _0x2c8443=function(_0x2b757a){while(--_0x2b757a){_0xd3aaa['push'](_0xd3aaa['shift']());}};_0x2c8443(++_0x47fcb7);}(a6_0x47fc,0x67));const a6_0x2c84=function(_0xd3aaa,_0x47fcb7){_0xd3aaa=_0xd3aaa-0x0;let _0x2c8443=a6_0x47fc[_0xd3aaa];return _0x2c8443;};'use strict';var __awaiter=this&&this[a6_0x2c84('0x5')]||function(_0x550f94,_0x4065dd,_0x24735d,_0x24a3a8){function _0x10e63e(_0x59d5d0){return _0x59d5d0 instanceof _0x24735d?_0x59d5d0:new _0x24735d(function(_0x362900){_0x362900(_0x59d5d0);});}return new(_0x24735d||(_0x24735d=Promise))(function(_0x5e3acc,_0x15abdc){function _0xd5b86b(_0x4e0975){try{_0x4a48da(_0x24a3a8[a6_0x2c84('0x12')](_0x4e0975));}catch(_0x1b2e53){_0x15abdc(_0x1b2e53);}}function _0x1accb9(_0x235851){try{_0x4a48da(_0x24a3a8['throw'](_0x235851));}catch(_0x5dbab9){_0x15abdc(_0x5dbab9);}}function _0x4a48da(_0x4a3be7){_0x4a3be7[a6_0x2c84('0xb')]?_0x5e3acc(_0x4a3be7[a6_0x2c84('0x20')]):_0x10e63e(_0x4a3be7['value'])[a6_0x2c84('0x3')](_0xd5b86b,_0x1accb9);}_0x4a48da((_0x24a3a8=_0x24a3a8['apply'](_0x550f94,_0x4065dd||[]))[a6_0x2c84('0x12')]());});};Object[a6_0x2c84('0x29')](exports,a6_0x2c84('0x8'),{'value':!![]});exports[a6_0x2c84('0x10')]=exports[a6_0x2c84('0x15')]=void 0x0;const axios_1=require('../../../utilities/axios');const environment_1=require('../../../utilities/environment');const metric_logger_1=require(a6_0x2c84('0x2a'));const {output,unparse}=require(a6_0x2c84('0x23'));class DistributedExecutionApi{constructor(_0x3edda0){this[a6_0x2c84('0x7')]=(0x0,axios_1[a6_0x2c84('0x6')])(_0x3edda0);}[a6_0x2c84('0x0')](_0x5f07e4){var _0x32185b;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x16fe61=(0x0,metric_logger_1[a6_0x2c84('0x18')])('dteStart');let _0x468ed0;try{_0x468ed0=yield(0x0,axios_1[a6_0x2c84('0x4')])(()=>this['apiAxiosInstance'][a6_0x2c84('0x11')](a6_0x2c84('0xc'),_0x5f07e4));_0x16fe61[a6_0x2c84('0x22')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x468ed0));}catch(_0x123efb){_0x16fe61[a6_0x2c84('0x22')](((_0x32185b=_0x123efb===null||_0x123efb===void 0x0?void 0x0:_0x123efb[a6_0x2c84('0x2b')])===null||_0x32185b===void 0x0?void 0x0:_0x32185b[a6_0x2c84('0x1f')])?(0x0,metric_logger_1[a6_0x2c84('0x1a')])(_0x123efb[a6_0x2c84('0x2b')]['response']):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);throw _0x123efb;}if(!_0x468ed0[a6_0x2c84('0x14')][a6_0x2c84('0xe')]){throw new Error(a6_0x2c84('0x24'));}if(_0x468ed0[a6_0x2c84('0x14')][a6_0x2c84('0x16')]){throw new Error(_0x468ed0[a6_0x2c84('0x14')][a6_0x2c84('0x16')]);}return _0x468ed0['data']['id'];});}[a6_0x2c84('0x19')](_0x1ae4a4){var _0x36c02b;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4e4259=(0x0,metric_logger_1[a6_0x2c84('0x18')])(a6_0x2c84('0x1e'));try{const _0x28b12f=yield(0x0,axios_1[a6_0x2c84('0x4')])(()=>this[a6_0x2c84('0x7')][a6_0x2c84('0x11')](a6_0x2c84('0x1b'),{'id':_0x1ae4a4}));_0x4e4259[a6_0x2c84('0x22')]((0x0,metric_logger_1[a6_0x2c84('0x1a')])(_0x28b12f));return _0x28b12f['data'];}catch(_0xe985d0){_0x4e4259['recordMetric'](((_0x36c02b=_0xe985d0===null||_0xe985d0===void 0x0?void 0x0:_0xe985d0[a6_0x2c84('0x2b')])===null||_0x36c02b===void 0x0?void 0x0:_0x36c02b[a6_0x2c84('0x1f')])?(0x0,metric_logger_1[a6_0x2c84('0x1a')])(_0xe985d0['axiosException'][a6_0x2c84('0x1f')]):metric_logger_1[a6_0x2c84('0x28')]);output[a6_0x2c84('0x16')]({'title':_0xe985d0['message']});process[a6_0x2c84('0xa')](0x1);}});}[a6_0x2c84('0x9')](_0x1f3dea,_0x4dbc91){var _0x30da81;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x498142=(0x0,metric_logger_1['createMetricRecorder'])(a6_0x2c84('0x1'));try{const _0x3e7f98=yield(0x0,axios_1[a6_0x2c84('0x4')])(()=>this['apiAxiosInstance'][a6_0x2c84('0x11')](a6_0x2c84('0x27'),{'runGroup':_0x1f3dea,'criticalErrorMessage':_0x4dbc91}),0x3);_0x498142[a6_0x2c84('0x22')]((0x0,metric_logger_1[a6_0x2c84('0x1a')])(_0x3e7f98));}catch(_0x37786d){_0x498142['recordMetric'](((_0x30da81=_0x37786d===null||_0x37786d===void 0x0?void 0x0:_0x37786d[a6_0x2c84('0x2b')])===null||_0x30da81===void 0x0?void 0x0:_0x30da81[a6_0x2c84('0x1f')])?(0x0,metric_logger_1[a6_0x2c84('0x1a')])(_0x37786d[a6_0x2c84('0x2b')][a6_0x2c84('0x1f')]):metric_logger_1[a6_0x2c84('0x28')]);}});}}exports[a6_0x2c84('0x15')]=DistributedExecutionApi;function createStartRequest(_0x1ae400,_0x4c29d1,_0x4f5473){const _0x339375=_0x4c29d1[a6_0x2c84('0xd')](_0x51049c=>{return _0x51049c['map'](_0x1ddd30=>{return{'taskId':_0x1ddd30['id'],'hash':_0x1ddd30['hash'],'projectName':_0x1ddd30[a6_0x2c84('0x26')][a6_0x2c84('0xf')],'target':_0x1ddd30['target'][a6_0x2c84('0x26')],'configuration':_0x1ddd30['target'][a6_0x2c84('0x1d')]||null,'params':unparse(_0x1ddd30['overrides'])['join']('\x20')};});});const _0x140568={'command':(0x0,environment_1['parseCommand'])(),'branch':(0x0,environment_1['getBranch'])(),'runGroup':_0x1ae400,'tasks':_0x339375,'maxParallel':calculateMaxParallel(_0x4f5473)};if(environment_1[a6_0x2c84('0x21')]){_0x140568[a6_0x2c84('0x2')]=environment_1[a6_0x2c84('0x21')];}if(!environment_1[a6_0x2c84('0x25')]){_0x140568['stopAgentsOnFailure']=![];}return _0x140568;}exports[a6_0x2c84('0x10')]=createStartRequest;function calculateMaxParallel(_0x5491bd){if(_0x5491bd[a6_0x2c84('0x13')]===a6_0x2c84('0x1c')||_0x5491bd[a6_0x2c84('0x13')]===![]){return 0x1;}else if(_0x5491bd['parallel']===a6_0x2c84('0x17')||_0x5491bd[a6_0x2c84('0x13')]===!![]){return Number(_0x5491bd['maxParallel']||0x3);}else if(_0x5491bd[a6_0x2c84('0x13')]===undefined){return _0x5491bd['maxParallel']?Number(_0x5491bd['maxParallel']):0x3;}else{return Number(_0x5491bd['parallel'])||0x3;}}
const a6_0x367f=['done','parseCommand','__esModule','axiosException','/nx-cloud/executions/status','defineProperty','completeRunGroup','dteStatus','__awaiter','NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT','error','mapRespToPerfEntry','post','agentCount','enabled','recordMetric','response','apply','RUNNER_FAILURE_PERF_ENTRY','configuration','map','DistributedExecutionApi','../../../utilities/metric-logger','data','../../../utilities/axios','maxParallel','createMetricRecorder','message','/nx-cloud/executions/complete-run-group','completeRunGroupWithError','axiosMultipleTries','serializeOverrides','../../../utilities/serializer-overrides','parallel','target','next','createStartRequest','false','/nx-cloud/executions/start','project','apiAxiosInstance','then','dteStart','hash'];(function(_0x1ef86e,_0x367f7b){const _0x1e3cf3=function(_0x277aef){while(--_0x277aef){_0x1ef86e['push'](_0x1ef86e['shift']());}};_0x1e3cf3(++_0x367f7b);}(a6_0x367f,0xe6));const a6_0x1e3c=function(_0x1ef86e,_0x367f7b){_0x1ef86e=_0x1ef86e-0x0;let _0x1e3cf3=a6_0x367f[_0x1ef86e];return _0x1e3cf3;};'use strict';var __awaiter=this&&this[a6_0x1e3c('0x2a')]||function(_0x3beeaa,_0x53ecc5,_0x5593e5,_0xd4dd53){function _0x8c15fa(_0x17d969){return _0x17d969 instanceof _0x5593e5?_0x17d969:new _0x5593e5(function(_0x29cd22){_0x29cd22(_0x17d969);});}return new(_0x5593e5||(_0x5593e5=Promise))(function(_0xaa7910,_0x95e3c){function _0x25c7f3(_0xa0a714){try{_0x48314a(_0xd4dd53[a6_0x1e3c('0x19')](_0xa0a714));}catch(_0x4fbb4f){_0x95e3c(_0x4fbb4f);}}function _0x407087(_0xfd8cd2){try{_0x48314a(_0xd4dd53['throw'](_0xfd8cd2));}catch(_0x32ba57){_0x95e3c(_0x32ba57);}}function _0x48314a(_0x472208){_0x472208[a6_0x1e3c('0x22')]?_0xaa7910(_0x472208['value']):_0x8c15fa(_0x472208['value'])[a6_0x1e3c('0x1f')](_0x25c7f3,_0x407087);}_0x48314a((_0xd4dd53=_0xd4dd53[a6_0x1e3c('0x7')](_0x3beeaa,_0x53ecc5||[]))[a6_0x1e3c('0x19')]());});};Object[a6_0x1e3c('0x27')](exports,a6_0x1e3c('0x24'),{'value':!![]});exports[a6_0x1e3c('0x1a')]=exports[a6_0x1e3c('0xb')]=void 0x0;const axios_1=require(a6_0x1e3c('0xe'));const environment_1=require('../../../utilities/environment');const metric_logger_1=require(a6_0x1e3c('0xc'));const serializer_overrides_1=require(a6_0x1e3c('0x16'));const {output,unparse}=require('../../../utilities/nx-imports');class DistributedExecutionApi{constructor(_0x2ea14e){this[a6_0x1e3c('0x1e')]=(0x0,axios_1['createApiAxiosInstance'])(_0x2ea14e);}['start'](_0x183129){var _0x57869e;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x52d064=(0x0,metric_logger_1['createMetricRecorder'])(a6_0x1e3c('0x20'));let _0x46a7d2;try{_0x46a7d2=yield(0x0,axios_1['axiosMultipleTries'])(()=>this['apiAxiosInstance'][a6_0x1e3c('0x2')](a6_0x1e3c('0x1c'),_0x183129));_0x52d064[a6_0x1e3c('0x5')]((0x0,metric_logger_1[a6_0x1e3c('0x1')])(_0x46a7d2));}catch(_0x25da13){_0x52d064['recordMetric'](((_0x57869e=_0x25da13===null||_0x25da13===void 0x0?void 0x0:_0x25da13[a6_0x1e3c('0x25')])===null||_0x57869e===void 0x0?void 0x0:_0x57869e['response'])?(0x0,metric_logger_1[a6_0x1e3c('0x1')])(_0x25da13[a6_0x1e3c('0x25')][a6_0x1e3c('0x6')]):metric_logger_1[a6_0x1e3c('0x8')]);throw _0x25da13;}if(!_0x46a7d2['data'][a6_0x1e3c('0x4')]){throw new Error('Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.');}if(_0x46a7d2[a6_0x1e3c('0xd')]['error']){throw new Error(_0x46a7d2[a6_0x1e3c('0xd')][a6_0x1e3c('0x0')]);}return _0x46a7d2[a6_0x1e3c('0xd')]['id'];});}['status'](_0x59556f){var _0x44eaf3;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x190dbd=(0x0,metric_logger_1[a6_0x1e3c('0x10')])(a6_0x1e3c('0x29'));try{const _0xb85f28=yield(0x0,axios_1[a6_0x1e3c('0x14')])(()=>this[a6_0x1e3c('0x1e')][a6_0x1e3c('0x2')](a6_0x1e3c('0x26'),{'id':_0x59556f}));_0x190dbd[a6_0x1e3c('0x5')]((0x0,metric_logger_1[a6_0x1e3c('0x1')])(_0xb85f28));return _0xb85f28[a6_0x1e3c('0xd')];}catch(_0x38fa56){_0x190dbd[a6_0x1e3c('0x5')](((_0x44eaf3=_0x38fa56===null||_0x38fa56===void 0x0?void 0x0:_0x38fa56[a6_0x1e3c('0x25')])===null||_0x44eaf3===void 0x0?void 0x0:_0x44eaf3[a6_0x1e3c('0x6')])?(0x0,metric_logger_1[a6_0x1e3c('0x1')])(_0x38fa56[a6_0x1e3c('0x25')]['response']):metric_logger_1[a6_0x1e3c('0x8')]);output[a6_0x1e3c('0x0')]({'title':_0x38fa56[a6_0x1e3c('0x11')]});process['exit'](0x1);}});}[a6_0x1e3c('0x13')](_0x2e76da,_0x49069e){var _0x193bc9;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x37ffd7=(0x0,metric_logger_1[a6_0x1e3c('0x10')])(a6_0x1e3c('0x28'));try{const _0x517e40=yield(0x0,axios_1[a6_0x1e3c('0x14')])(()=>this[a6_0x1e3c('0x1e')]['post'](a6_0x1e3c('0x12'),{'runGroup':_0x2e76da,'criticalErrorMessage':_0x49069e}),0x3);_0x37ffd7['recordMetric']((0x0,metric_logger_1[a6_0x1e3c('0x1')])(_0x517e40));}catch(_0x568df9){_0x37ffd7[a6_0x1e3c('0x5')](((_0x193bc9=_0x568df9===null||_0x568df9===void 0x0?void 0x0:_0x568df9['axiosException'])===null||_0x193bc9===void 0x0?void 0x0:_0x193bc9['response'])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x568df9[a6_0x1e3c('0x25')]['response']):metric_logger_1[a6_0x1e3c('0x8')]);}});}}exports[a6_0x1e3c('0xb')]=DistributedExecutionApi;function createStartRequest(_0x8c369d,_0x1f4646,_0x139352){const _0x350dec=_0x1f4646[a6_0x1e3c('0xa')](_0x496aa2=>{return _0x496aa2[a6_0x1e3c('0xa')](_0x1c3bad=>{return{'taskId':_0x1c3bad['id'],'hash':_0x1c3bad[a6_0x1e3c('0x21')],'projectName':_0x1c3bad[a6_0x1e3c('0x18')][a6_0x1e3c('0x1d')],'target':_0x1c3bad[a6_0x1e3c('0x18')][a6_0x1e3c('0x18')],'configuration':_0x1c3bad[a6_0x1e3c('0x18')][a6_0x1e3c('0x9')]||null,'params':(0x0,serializer_overrides_1[a6_0x1e3c('0x15')])(_0x1c3bad)};});});const _0x2a929d={'command':(0x0,environment_1[a6_0x1e3c('0x23')])(),'branch':(0x0,environment_1['getBranch'])(),'runGroup':_0x8c369d,'tasks':_0x350dec,'maxParallel':calculateMaxParallel(_0x139352)};if(environment_1[a6_0x1e3c('0x2b')]){_0x2a929d[a6_0x1e3c('0x3')]=environment_1[a6_0x1e3c('0x2b')];}if(!environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE']){_0x2a929d['stopAgentsOnFailure']=![];}return _0x2a929d;}exports[a6_0x1e3c('0x1a')]=createStartRequest;function calculateMaxParallel(_0x3aca89){if(_0x3aca89['parallel']===a6_0x1e3c('0x1b')||_0x3aca89['parallel']===![]){return 0x1;}else if(_0x3aca89['parallel']==='true'||_0x3aca89[a6_0x1e3c('0x17')]===!![]){return Number(_0x3aca89[a6_0x1e3c('0xf')]||0x3);}else if(_0x3aca89[a6_0x1e3c('0x17')]===undefined){return _0x3aca89['maxParallel']?Number(_0x3aca89[a6_0x1e3c('0xf')]):0x3;}else{return Number(_0x3aca89['parallel'])||0x3;}}

@@ -1,1 +0,1 @@

const a7_0x8321=['criticalErrorMessage','../../../utilities/nx-imports','addTaskDependencies','addVerticalSeparator','error:\x20','parse','See\x20run\x20details\x20at\x20','Starting\x20distributed\x20command\x20execution','next','VERBOSE_LOGGING','log','value','length','submitRunMetrics','axiosException','ENCRYPTION_KEY','addTaskToGraph','projects','TaskGraphCreator','scheduleTask','filter','number\x20of\x20completed\x20tasks:\x20','createNoNewMessagesTimeout','copyFilesFromCache','nodes','defaultTargetDependencies','target','../../../utilities/environment','FileStorage','encryptionKey','hash','apply','success','taskId','projectGraph','defineProperty','indexOf','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','findTask','has','targetDependencies','completedTasks','executionStatus:\x20','Processing\x20task\x20','url','throw','self','run','../../../utilities/metric-logger','/nx.json','./node_modules/.cache/nx','tasks','completeRunGroupWithError','./distributed-execution.api','getRunGroup','size','exit','dependencies','assign','../../../utilities/waiter','endTask','get','addDependencies','Retrieving\x20artifacts\x20from\x20','start','../../api/error-reporter.api','project','Distributed\x20Execution\x20Terminated','error','then','runUrl','note','../../../utilities/create-no-new-messages-timeout','printRunGroupError','message','../../error/print-run-group-error','Waiting...','map','readFileSync','strip-json-comments','Successfully\x20completed\x20running\x20the\x20command.','Waiter','startTask','../../file-storage/e2e-encryption','find','E2EEncryption','COMPLETED','stdout','../../file-storage/file-storage','toString','createTaskGraph','executionStatus','configuration','keys','nxCloudDistributedTasksRunner','roots','write','cacheDirectory','push','splitTasksIntoStages','__awaiter','__esModule','status','commandStatus','Command\x20execution\x20failed.'];(function(_0x5e854d,_0x832100){const _0x12a105=function(_0xa8ae01){while(--_0xa8ae01){_0x5e854d['push'](_0x5e854d['shift']());}};_0x12a105(++_0x832100);}(a7_0x8321,0x1f1));const a7_0x12a1=function(_0x5e854d,_0x832100){_0x5e854d=_0x5e854d-0x0;let _0x12a105=a7_0x8321[_0x5e854d];return _0x12a105;};'use strict';var __awaiter=this&&this[a7_0x12a1('0x17')]||function(_0x53938c,_0x138984,_0x4af1d5,_0x23d13b){function _0x4c8777(_0x2fc04d){return _0x2fc04d instanceof _0x4af1d5?_0x2fc04d:new _0x4af1d5(function(_0x576be3){_0x576be3(_0x2fc04d);});}return new(_0x4af1d5||(_0x4af1d5=Promise))(function(_0x4f79b8,_0x4d47e0){function _0x221a47(_0x652a2f){try{_0x2358ba(_0x23d13b[a7_0x12a1('0x24')](_0x652a2f));}catch(_0x5b736d){_0x4d47e0(_0x5b736d);}}function _0x249121(_0x4e31f2){try{_0x2358ba(_0x23d13b[a7_0x12a1('0x49')](_0x4e31f2));}catch(_0x11e596){_0x4d47e0(_0x11e596);}}function _0x2358ba(_0x5ca83c){_0x5ca83c['done']?_0x4f79b8(_0x5ca83c[a7_0x12a1('0x27')]):_0x4c8777(_0x5ca83c[a7_0x12a1('0x27')])[a7_0x12a1('0x61')](_0x221a47,_0x249121);}_0x2358ba((_0x23d13b=_0x23d13b[a7_0x12a1('0x3b')](_0x53938c,_0x138984||[]))['next']());});};Object[a7_0x12a1('0x3f')](exports,a7_0x12a1('0x18'),{'value':!![]});exports[a7_0x12a1('0x2e')]=exports[a7_0x12a1('0x11')]=void 0x0;const stripJsonComments=require(a7_0x12a1('0x2'));const fs_1=require('fs');const distributed_execution_api_1=require(a7_0x12a1('0x51'));const file_storage_1=require(a7_0x12a1('0xb'));const e2e_encryption_1=require(a7_0x12a1('0x6'));const waiter_1=require(a7_0x12a1('0x57'));const environment_1=require(a7_0x12a1('0x37'));const print_run_group_error_1=require(a7_0x12a1('0x67'));const create_no_new_messages_timeout_1=require(a7_0x12a1('0x64'));const metric_logger_1=require(a7_0x12a1('0x4c'));const error_reporter_api_1=require(a7_0x12a1('0x5d'));const {output,workspaceRoot,getDependencyConfigs,getOutputs,unparse,Cache}=require(a7_0x12a1('0x1d'));class NoopLifeCycle{[a7_0x12a1('0x2f')](_0x27d876){}[a7_0x12a1('0x5')](_0x3f9d5b){}[a7_0x12a1('0x58')](_0xca82dc,_0x42f857){}}function runDistributedExecution(_0x53025a,_0x1b1cce,_0x5aa541,_0x498012,_0x3b7001,_0x27d834,_0x3c2615){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3f69b5=JSON[a7_0x12a1('0x21')](stripJsonComments((0x0,fs_1[a7_0x12a1('0x1')])(workspaceRoot+a7_0x12a1('0x4d'))[a7_0x12a1('0xc')]()));const _0x3ab29d=new TaskOrderer(_0x5aa541['projectGraph'],getDefaultDependencyConfigs(_0x3f69b5,_0x1b1cce))[a7_0x12a1('0x16')](_0x3c2615);const _0x39e21d=yield _0x53025a[a7_0x12a1('0x5c')]((0x0,distributed_execution_api_1['createStartRequest'])(_0x27d834,_0x3ab29d,_0x1b1cce));return yield processTasks(_0x53025a,_0x498012,_0x3b7001,_0x1b1cce,_0x39e21d,_0x3c2615,_0x5aa541);});}function processTasks(_0x13caf2,_0x274f01,_0x29ff43,_0x2eee25,_0x483196,_0x5218e5,_0x4d1a66){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x44a03c={};const _0x1961a8=(0x0,create_no_new_messages_timeout_1[a7_0x12a1('0x32')])();const _0x42fdbb=new waiter_1[(a7_0x12a1('0x4'))]();while(!![]){if(environment_1[a7_0x12a1('0x25')]){output[a7_0x12a1('0x63')]({'title':a7_0x12a1('0x68')});}yield _0x42fdbb['wait']();const _0x38d8ba=yield _0x13caf2[a7_0x12a1('0x19')](_0x483196);if(environment_1[a7_0x12a1('0x25')]){output[a7_0x12a1('0x63')]({'title':'Status\x20update','bodyLines':['executionId:\x20'+_0x483196,a7_0x12a1('0x46')+_0x38d8ba[a7_0x12a1('0xe')],a7_0x12a1('0x31')+_0x38d8ba['completedTasks'][a7_0x12a1('0x28')],a7_0x12a1('0x20')+_0x38d8ba[a7_0x12a1('0x1c')]]});}if(_0x38d8ba[a7_0x12a1('0x1c')]){output[a7_0x12a1('0x60')]({'title':a7_0x12a1('0x5f'),'bodyLines':['Error:',_0x38d8ba[a7_0x12a1('0x1c')]]});process[a7_0x12a1('0x54')](0x1);}_0x1961a8(_0x38d8ba[a7_0x12a1('0x45')][a7_0x12a1('0x28')]);for(const _0x33e933 of _0x38d8ba[a7_0x12a1('0x45')]){if(_0x44a03c[_0x33e933[a7_0x12a1('0x3d')]])continue;yield processTask(_0x274f01,_0x29ff43,_0x4d1a66,_0x2eee25,_0x5218e5,_0x33e933);_0x42fdbb['reset']();_0x44a03c[_0x33e933[a7_0x12a1('0x3d')]]=!![];}if(_0x38d8ba['executionStatus']===a7_0x12a1('0x9')){return{'commandStatus':_0x38d8ba[a7_0x12a1('0x1a')],'runUrl':_0x38d8ba[a7_0x12a1('0x62')]};}}});}function processTask(_0x24f824,_0x1f6b1d,_0x27d664,_0x7826b9,_0x342b88,_0x153b72){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a7_0x12a1('0x25')]){output[a7_0x12a1('0x63')]({'title':a7_0x12a1('0x47')+_0x153b72['taskId']});}const _0xe2c1db=_0x342b88[a7_0x12a1('0x7')](_0x25e566=>_0x153b72[a7_0x12a1('0x3d')]===_0x25e566['id']);if(!_0xe2c1db){throw new Error('Found\x20unknown\x20task:\x20'+_0x153b72[a7_0x12a1('0x3d')]);}if(environment_1[a7_0x12a1('0x25')]){output['note']({'title':a7_0x12a1('0x5b')+_0x153b72[a7_0x12a1('0x48')]});}yield _0x24f824['retrieve'](_0x153b72[a7_0x12a1('0x3a')],_0x153b72[a7_0x12a1('0x48')],_0x7826b9[a7_0x12a1('0x14')]||a7_0x12a1('0x4e'));const _0x4c521a=yield _0x1f6b1d[a7_0x12a1('0x59')](Object[a7_0x12a1('0x56')](Object[a7_0x12a1('0x56')]({},_0xe2c1db),{'hash':_0x153b72[a7_0x12a1('0x3a')]}));const _0x1615ef=getOutputs(_0x27d664[a7_0x12a1('0x3e')][a7_0x12a1('0x34')],_0xe2c1db);if(environment_1[a7_0x12a1('0x25')]){output[a7_0x12a1('0x63')]({'title':'Extracting\x20artifacts','bodyLines':_0x1615ef});}yield _0x1f6b1d[a7_0x12a1('0x33')](_0x153b72[a7_0x12a1('0x3a')],_0x4c521a,_0x1615ef);output['logCommand'](getCommand(_0xe2c1db));process[a7_0x12a1('0xa')][a7_0x12a1('0x13')](_0x4c521a['terminalOutput']);output[a7_0x12a1('0x1f')]();});}function getCommand(_0x222a0c){const _0x5cb154=unparse(_0x222a0c['overrides']||{});const _0x492156=_0x222a0c[a7_0x12a1('0x36')]['configuration']?':'+_0x222a0c[a7_0x12a1('0x36')][a7_0x12a1('0xf')]:'';return['nx',a7_0x12a1('0x4b'),_0x222a0c['target'][a7_0x12a1('0x5e')]+':'+_0x222a0c['target'][a7_0x12a1('0x36')]+_0x492156,..._0x5cb154]['join']('\x20');}const nxCloudDistributedTasksRunner=(_0x57d082,_0x50ebf4,_0x178045)=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(environment_1[a7_0x12a1('0x25')]){output['note']({'title':a7_0x12a1('0x23')});}_0x50ebf4['lifeCycle']=new NoopLifeCycle();const _0x117982=(0x0,environment_1[a7_0x12a1('0x52')])();if(!_0x117982){(0x0,print_run_group_error_1[a7_0x12a1('0x65')])();return process[a7_0x12a1('0x54')](0x1);}const _0x21e55d=new e2e_encryption_1[(a7_0x12a1('0x8'))](environment_1[a7_0x12a1('0x2b')]||_0x50ebf4[a7_0x12a1('0x39')]);const _0x4b6609=new error_reporter_api_1['ErrorReporterApi'](_0x50ebf4);const _0x2f2d63=new file_storage_1[(a7_0x12a1('0x38'))](_0x21e55d,_0x4b6609,!![]);const _0x108d0d=new Cache(_0x50ebf4);const _0x243661=new distributed_execution_api_1['DistributedExecutionApi'](_0x50ebf4);try{const _0x9397ed=yield runDistributedExecution(_0x243661,_0x50ebf4,_0x178045,_0x2f2d63,_0x108d0d,_0x117982,_0x57d082);if(_0x9397ed[a7_0x12a1('0x1a')]===0x0){output[a7_0x12a1('0x3c')]({'title':a7_0x12a1('0x3'),'bodyLines':[a7_0x12a1('0x22')+_0x9397ed[a7_0x12a1('0x62')]]});}else{output[a7_0x12a1('0x60')]({'title':a7_0x12a1('0x1b'),'bodyLines':[a7_0x12a1('0x22')+_0x9397ed[a7_0x12a1('0x62')]]});}yield(0x0,metric_logger_1[a7_0x12a1('0x29')])(_0x50ebf4);process['exit'](_0x9397ed['commandStatus']);}catch(_0x4c3cee){output[a7_0x12a1('0x60')]({'title':'Unable\x20to\x20complete\x20a\x20run.','bodyLines':[_0x4c3cee[a7_0x12a1('0x66')]]});if(_0x4c3cee[a7_0x12a1('0x2a')]){console[a7_0x12a1('0x26')](_0x4c3cee[a7_0x12a1('0x2a')]);}else{console['log'](_0x4c3cee);}try{yield _0x243661[a7_0x12a1('0x50')](_0x117982,a7_0x12a1('0x41')+_0x4c3cee['message']+'\x22');}finally{process[a7_0x12a1('0x54')](0x1);}}});exports['nxCloudDistributedTasksRunner']=nxCloudDistributedTasksRunner;class TaskOrderer{constructor(_0x3d607f,_0x5e0a7b){this[a7_0x12a1('0x3e')]=_0x3d607f;this['defaultTargetDependencies']=_0x5e0a7b;}['splitTasksIntoStages'](_0x2a2709){if(_0x2a2709[a7_0x12a1('0x28')]===0x0)return[];const _0x5e9684=[];const _0x2d46c7=this['createTaskGraph'](_0x2a2709);const _0x3af9dd=new Set(_0x2a2709[a7_0x12a1('0x0')](_0x3b38d7=>_0x3b38d7['id']));let _0x5211ea=0x0;while(_0x3af9dd[a7_0x12a1('0x53')]>0x0){const _0x105ca7=_0x5e9684[_0x5211ea]=[];for(const _0x3f30c8 of _0x3af9dd){let _0x53d4f0=!![];for(const _0x38dde9 of _0x2d46c7[a7_0x12a1('0x55')][_0x3f30c8]){if(_0x3af9dd[a7_0x12a1('0x43')](_0x38dde9)){_0x53d4f0=![];break;}}if(!_0x53d4f0){continue;}const _0x2d5d2e=_0x2d46c7['tasks'][_0x3f30c8];_0x105ca7[a7_0x12a1('0x15')](_0x2d5d2e);}for(const _0x61add4 of _0x105ca7){_0x3af9dd['delete'](_0x61add4['id']);}_0x5211ea++;}return _0x5e9684;}['createTaskGraph'](_0x25bb0e){const _0x2a5b9f=new TaskGraphCreator(this[a7_0x12a1('0x3e')],this[a7_0x12a1('0x35')]);return _0x2a5b9f[a7_0x12a1('0xd')](_0x25bb0e);}}class TaskGraphCreator{constructor(_0x67d00d,_0x275abf){this[a7_0x12a1('0x3e')]=_0x67d00d;this[a7_0x12a1('0x35')]=_0x275abf;}[a7_0x12a1('0xd')](_0x4e6e86){const _0x56056a={'roots':[],'tasks':{},'dependencies':{}};for(const _0x3cfe97 of _0x4e6e86){this['addTaskToGraph'](_0x3cfe97,_0x56056a);const _0xbbd744=getDependencyConfigs(_0x3cfe97[a7_0x12a1('0x36')],this['defaultTargetDependencies'],this['projectGraph']);if(!_0xbbd744){continue;}this[a7_0x12a1('0x1e')](_0x3cfe97,_0xbbd744,_0x4e6e86,_0x56056a);}_0x56056a[a7_0x12a1('0x12')]=Object[a7_0x12a1('0x10')](_0x56056a['dependencies'])[a7_0x12a1('0x30')](_0x2e8ddb=>_0x56056a[a7_0x12a1('0x55')][_0x2e8ddb][a7_0x12a1('0x28')]===0x0);return _0x56056a;}['addTaskDependencies'](_0x37dedb,_0x3d3fc6,_0x77f689,_0x51d26f){for(const _0x52cf84 of _0x3d3fc6){if(_0x52cf84['projects']===a7_0x12a1('0x4a')){for(const _0x3d634b of _0x77f689){if(_0x3d634b['target']['project']===_0x37dedb[a7_0x12a1('0x36')][a7_0x12a1('0x5e')]&&_0x3d634b['target']['target']===_0x52cf84[a7_0x12a1('0x36')]){_0x51d26f[a7_0x12a1('0x55')][_0x37dedb['id']][a7_0x12a1('0x15')](_0x3d634b['id']);}}}else if(_0x52cf84[a7_0x12a1('0x2d')]===a7_0x12a1('0x55')){const _0x3d823f=new Set();this[a7_0x12a1('0x5a')](_0x37dedb[a7_0x12a1('0x36')][a7_0x12a1('0x5e')],_0x52cf84[a7_0x12a1('0x36')],_0x77f689,_0x51d26f,_0x37dedb['id'],_0x3d823f);}}}[a7_0x12a1('0x5a')](_0x1ab737,_0x15e3f2,_0x2a5ab8,_0xbfe763,_0x252732,_0x50c2da){_0x50c2da['add'](_0x1ab737);const _0x335060=this['projectGraph'][a7_0x12a1('0x55')][_0x1ab737];if(_0x335060){const _0xc37268=_0x335060[a7_0x12a1('0x0')](_0x496ad6=>_0x496ad6[a7_0x12a1('0x36')]);for(const _0x60617d of _0xc37268){if(_0x50c2da[a7_0x12a1('0x43')](_0x60617d)){continue;}const _0x5a3ab0=this[a7_0x12a1('0x42')]({'project':_0x60617d,'target':_0x15e3f2},_0x2a5ab8);if(_0x5a3ab0){if(_0xbfe763[a7_0x12a1('0x55')][_0x252732][a7_0x12a1('0x40')](_0x5a3ab0['id'])===-0x1){_0xbfe763[a7_0x12a1('0x55')][_0x252732][a7_0x12a1('0x15')](_0x5a3ab0['id']);}}else{this['addDependencies'](_0x60617d,_0x15e3f2,_0x2a5ab8,_0xbfe763,_0x252732,_0x50c2da);}}}}[a7_0x12a1('0x42')]({project,target},_0x4692da){return _0x4692da[a7_0x12a1('0x7')](_0x5d89ab=>_0x5d89ab[a7_0x12a1('0x36')][a7_0x12a1('0x5e')]===project&&_0x5d89ab[a7_0x12a1('0x36')][a7_0x12a1('0x36')]===target);}[a7_0x12a1('0x2c')](_0x50b2b9,_0x3562e4){_0x3562e4[a7_0x12a1('0x4f')][_0x50b2b9['id']]=_0x50b2b9;_0x3562e4[a7_0x12a1('0x55')][_0x50b2b9['id']]=[];}}exports[a7_0x12a1('0x2e')]=TaskGraphCreator;function getDefaultDependencyConfigs(_0x1418d9,_0x128df9){var _0x53f540,_0x188272;const _0x2db9a7=(_0x53f540=_0x1418d9[a7_0x12a1('0x44')])!==null&&_0x53f540!==void 0x0?_0x53f540:{};const _0x26da7c=_0x128df9?(_0x188272=_0x128df9['strictlyOrderedTargets'])!==null&&_0x188272!==void 0x0?_0x188272:['build']:[];for(const _0x536251 of _0x26da7c){_0x2db9a7[_0x536251]=_0x2db9a7[_0x536251]||[];_0x2db9a7[_0x536251][a7_0x12a1('0x15')]({'target':_0x536251,'projects':a7_0x12a1('0x55')});}return _0x2db9a7;}
const a7_0x22f3=['submitRunMetrics','Retrieving\x20artifacts\x20from\x20','add','projectGraph','addVerticalSeparator','run','self','createStartRequest','getRunGroup','createTaskGraph','exit','scheduleTask','size','addTaskDependencies','findTask','../../../utilities/waiter','then','ENCRYPTION_KEY','retrieve','delete','completedTasks','filter','axiosException','endTask','Waiting...','terminalOutput','project','COMPLETED','DistributedExecutionApi','defineProperty','hash','./node_modules/.cache/nx','get','length','done','VERBOSE_LOGGING','find','indexOf','Error:','start','push','executionStatus:\x20','build','apply','serializeOverrides','completeRunGroupWithError','assign','defaultTargetDependencies','Extracting\x20artifacts','Unable\x20to\x20complete\x20a\x20run.','throw','Waiter','roots','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','runUrl','criticalErrorMessage','number\x20of\x20completed\x20tasks:\x20','commandStatus','note','Successfully\x20completed\x20running\x20the\x20command.','message','__esModule','../../../utilities/environment','dependencies','../../error/print-run-group-error','TaskGraphCreator','executionId:\x20','nxCloudDistributedTasksRunner','success','taskId','../../api/error-reporter.api','addTaskToGraph','projects','ErrorReporterApi','nodes','addDependencies','Command\x20execution\x20failed.','value','logCommand','splitTasksIntoStages','../../file-storage/file-storage','has','../../../utilities/serializer-overrides','E2EEncryption','executionStatus','../../../utilities/create-no-new-messages-timeout','url','error','tasks','map','createNoNewMessagesTimeout','reset','../../../utilities/metric-logger','cacheDirectory','Status\x20update','log','toString','stdout','See\x20run\x20details\x20at\x20','target','__awaiter','parse'];(function(_0x58bfa2,_0x22f3d0){const _0x5d03ae=function(_0x3a1d02){while(--_0x3a1d02){_0x58bfa2['push'](_0x58bfa2['shift']());}};_0x5d03ae(++_0x22f3d0);}(a7_0x22f3,0x1d9));const a7_0x5d03=function(_0x58bfa2,_0x22f3d0){_0x58bfa2=_0x58bfa2-0x0;let _0x5d03ae=a7_0x22f3[_0x58bfa2];return _0x5d03ae;};'use strict';var __awaiter=this&&this[a7_0x5d03('0x23')]||function(_0x13f07c,_0x3aa58f,_0x14c70b,_0xe91c7b){function _0x811d69(_0xef6a48){return _0xef6a48 instanceof _0x14c70b?_0xef6a48:new _0x14c70b(function(_0x4efef5){_0x4efef5(_0xef6a48);});}return new(_0x14c70b||(_0x14c70b=Promise))(function(_0x260e61,_0x279032){function _0x53cc5c(_0x57c98b){try{_0x4ac07c(_0xe91c7b['next'](_0x57c98b));}catch(_0x27d304){_0x279032(_0x27d304);}}function _0x55e81c(_0x23defa){try{_0x4ac07c(_0xe91c7b[a7_0x5d03('0x57')](_0x23defa));}catch(_0x4f209d){_0x279032(_0x4f209d);}}function _0x4ac07c(_0x1b79e4){_0x1b79e4[a7_0x5d03('0x47')]?_0x260e61(_0x1b79e4[a7_0x5d03('0xc')]):_0x811d69(_0x1b79e4[a7_0x5d03('0xc')])[a7_0x5d03('0x35')](_0x53cc5c,_0x55e81c);}_0x4ac07c((_0xe91c7b=_0xe91c7b[a7_0x5d03('0x50')](_0x13f07c,_0x3aa58f||[]))['next']());});};Object[a7_0x5d03('0x42')](exports,a7_0x5d03('0x62'),{'value':!![]});exports[a7_0x5d03('0x0')]=exports[a7_0x5d03('0x2')]=void 0x0;const stripJsonComments=require('strip-json-comments');const fs_1=require('fs');const distributed_execution_api_1=require('./distributed-execution.api');const file_storage_1=require(a7_0x5d03('0xf'));const e2e_encryption_1=require('../../file-storage/e2e-encryption');const waiter_1=require(a7_0x5d03('0x34'));const environment_1=require(a7_0x5d03('0x63'));const print_run_group_error_1=require(a7_0x5d03('0x65'));const create_no_new_messages_timeout_1=require(a7_0x5d03('0x14'));const metric_logger_1=require(a7_0x5d03('0x1b'));const error_reporter_api_1=require(a7_0x5d03('0x5'));const serializer_overrides_1=require(a7_0x5d03('0x11'));const {output,workspaceRoot,getDependencyConfigs,getOutputs,unparse,Cache}=require('../../../utilities/nx-imports');class NoopLifeCycle{[a7_0x5d03('0x30')](_0x50f951){}['startTask'](_0xa5f40e){}[a7_0x5d03('0x3c')](_0x4ee58c,_0x399552){}}function runDistributedExecution(_0x32aba9,_0x554b1d,_0xdcc883,_0x4e81db,_0x244722,_0x32420d,_0x4f9c6f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3d4ccb=JSON[a7_0x5d03('0x24')](stripJsonComments((0x0,fs_1['readFileSync'])(workspaceRoot+'/nx.json')[a7_0x5d03('0x1f')]()));const _0x4812b0=new TaskOrderer(_0xdcc883[a7_0x5d03('0x28')],getDefaultDependencyConfigs(_0x3d4ccb,_0x554b1d))[a7_0x5d03('0xe')](_0x4f9c6f);const _0x32a051=yield _0x32aba9[a7_0x5d03('0x4c')]((0x0,distributed_execution_api_1[a7_0x5d03('0x2c')])(_0x32420d,_0x4812b0,_0x554b1d));return yield processTasks(_0x32aba9,_0x4e81db,_0x244722,_0x554b1d,_0x32a051,_0x4f9c6f,_0xdcc883);});}function processTasks(_0x5016e6,_0x18bc22,_0x5947c6,_0x50e57d,_0x14d677,_0x29c531,_0x24ab7a){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5047a9={};const _0x260e5c=(0x0,create_no_new_messages_timeout_1[a7_0x5d03('0x19')])();const _0x4a4489=new waiter_1[(a7_0x5d03('0x58'))]();while(!![]){if(environment_1['VERBOSE_LOGGING']){output[a7_0x5d03('0x5f')]({'title':a7_0x5d03('0x3d')});}yield _0x4a4489['wait']();const _0x3742b9=yield _0x5016e6['status'](_0x14d677);if(environment_1[a7_0x5d03('0x48')]){output[a7_0x5d03('0x5f')]({'title':a7_0x5d03('0x1d'),'bodyLines':[a7_0x5d03('0x1')+_0x14d677,a7_0x5d03('0x4e')+_0x3742b9['executionStatus'],a7_0x5d03('0x5d')+_0x3742b9[a7_0x5d03('0x39')][a7_0x5d03('0x46')],'error:\x20'+_0x3742b9[a7_0x5d03('0x5c')]]});}if(_0x3742b9[a7_0x5d03('0x5c')]){output['error']({'title':'Distributed\x20Execution\x20Terminated','bodyLines':[a7_0x5d03('0x4b'),_0x3742b9[a7_0x5d03('0x5c')]]});process['exit'](0x1);}_0x260e5c(_0x3742b9[a7_0x5d03('0x39')][a7_0x5d03('0x46')]);for(const _0x2102dd of _0x3742b9[a7_0x5d03('0x39')]){if(_0x5047a9[_0x2102dd[a7_0x5d03('0x4')]])continue;yield processTask(_0x18bc22,_0x5947c6,_0x24ab7a,_0x50e57d,_0x29c531,_0x2102dd);_0x4a4489[a7_0x5d03('0x1a')]();_0x5047a9[_0x2102dd[a7_0x5d03('0x4')]]=!![];}if(_0x3742b9[a7_0x5d03('0x13')]===a7_0x5d03('0x40')){return{'commandStatus':_0x3742b9[a7_0x5d03('0x5e')],'runUrl':_0x3742b9['runUrl']};}}});}function processTask(_0xb1a59,_0x1de5a1,_0x6d8c00,_0xc8cfd,_0x50158c,_0x1b5690){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a7_0x5d03('0x48')]){output['note']({'title':'Processing\x20task\x20'+_0x1b5690[a7_0x5d03('0x4')]});}const _0x9727e7=_0x50158c[a7_0x5d03('0x49')](_0x12ab69=>_0x1b5690[a7_0x5d03('0x4')]===_0x12ab69['id']);if(!_0x9727e7){throw new Error('Found\x20unknown\x20task:\x20'+_0x1b5690['taskId']);}if(environment_1[a7_0x5d03('0x48')]){output[a7_0x5d03('0x5f')]({'title':a7_0x5d03('0x26')+_0x1b5690[a7_0x5d03('0x15')]});}yield _0xb1a59[a7_0x5d03('0x37')](_0x1b5690['hash'],_0x1b5690[a7_0x5d03('0x15')],_0xc8cfd[a7_0x5d03('0x1c')]||a7_0x5d03('0x44'));const _0x26c25c=yield _0x1de5a1[a7_0x5d03('0x45')](Object[a7_0x5d03('0x53')](Object['assign']({},_0x9727e7),{'hash':_0x1b5690[a7_0x5d03('0x43')]}));const _0x389f70=getOutputs(_0x6d8c00[a7_0x5d03('0x28')][a7_0x5d03('0x9')],_0x9727e7);if(environment_1[a7_0x5d03('0x48')]){output[a7_0x5d03('0x5f')]({'title':a7_0x5d03('0x55'),'bodyLines':_0x389f70});}yield _0x1de5a1['copyFilesFromCache'](_0x1b5690[a7_0x5d03('0x43')],_0x26c25c,_0x389f70);output[a7_0x5d03('0xd')](getCommand(_0x9727e7));process[a7_0x5d03('0x20')]['write'](_0x26c25c[a7_0x5d03('0x3e')]);output[a7_0x5d03('0x29')]();});}function getCommand(_0x1f8b97){const _0x3d0641=_0x1f8b97['target']['configuration']?':'+_0x1f8b97[a7_0x5d03('0x22')]['configuration']:'';return['nx',a7_0x5d03('0x2a'),_0x1f8b97['target'][a7_0x5d03('0x3f')]+':'+_0x1f8b97[a7_0x5d03('0x22')][a7_0x5d03('0x22')]+_0x3d0641,(0x0,serializer_overrides_1[a7_0x5d03('0x51')])(_0x1f8b97)]['join']('\x20');}const nxCloudDistributedTasksRunner=(_0x465ff5,_0x4a3c47,_0x52aa7a)=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(environment_1[a7_0x5d03('0x48')]){output['note']({'title':'Starting\x20distributed\x20command\x20execution'});}_0x4a3c47['lifeCycle']=new NoopLifeCycle();const _0x3814ac=(0x0,environment_1[a7_0x5d03('0x2d')])();if(!_0x3814ac){(0x0,print_run_group_error_1['printRunGroupError'])();return process[a7_0x5d03('0x2f')](0x1);}const _0x1c2343=new e2e_encryption_1[(a7_0x5d03('0x12'))](environment_1[a7_0x5d03('0x36')]||_0x4a3c47['encryptionKey']);const _0x18f975=new error_reporter_api_1[(a7_0x5d03('0x8'))](_0x4a3c47);const _0x39bf25=new file_storage_1['FileStorage'](_0x1c2343,_0x18f975,!![]);const _0x20b5dc=new Cache(_0x4a3c47);const _0x274ea0=new distributed_execution_api_1[(a7_0x5d03('0x41'))](_0x4a3c47);try{const _0x421743=yield runDistributedExecution(_0x274ea0,_0x4a3c47,_0x52aa7a,_0x39bf25,_0x20b5dc,_0x3814ac,_0x465ff5);if(_0x421743[a7_0x5d03('0x5e')]===0x0){output[a7_0x5d03('0x3')]({'title':a7_0x5d03('0x60'),'bodyLines':[a7_0x5d03('0x21')+_0x421743[a7_0x5d03('0x5b')]]});}else{output[a7_0x5d03('0x16')]({'title':a7_0x5d03('0xb'),'bodyLines':[a7_0x5d03('0x21')+_0x421743['runUrl']]});}yield(0x0,metric_logger_1[a7_0x5d03('0x25')])(_0x4a3c47);process[a7_0x5d03('0x2f')](_0x421743[a7_0x5d03('0x5e')]);}catch(_0x25c923){output[a7_0x5d03('0x16')]({'title':a7_0x5d03('0x56'),'bodyLines':[_0x25c923[a7_0x5d03('0x61')]]});if(_0x25c923[a7_0x5d03('0x3b')]){console[a7_0x5d03('0x1e')](_0x25c923['axiosException']);}else{console['log'](_0x25c923);}try{yield _0x274ea0[a7_0x5d03('0x52')](_0x3814ac,a7_0x5d03('0x5a')+_0x25c923[a7_0x5d03('0x61')]+'\x22');}finally{process[a7_0x5d03('0x2f')](0x1);}}});exports[a7_0x5d03('0x2')]=nxCloudDistributedTasksRunner;class TaskOrderer{constructor(_0x241670,_0x1c69db){this[a7_0x5d03('0x28')]=_0x241670;this[a7_0x5d03('0x54')]=_0x1c69db;}[a7_0x5d03('0xe')](_0x17c723){if(_0x17c723[a7_0x5d03('0x46')]===0x0)return[];const _0x27ef39=[];const _0x38d9df=this['createTaskGraph'](_0x17c723);const _0x26bb72=new Set(_0x17c723[a7_0x5d03('0x18')](_0x68cfd4=>_0x68cfd4['id']));let _0x3f279=0x0;while(_0x26bb72[a7_0x5d03('0x31')]>0x0){const _0x5a7054=_0x27ef39[_0x3f279]=[];for(const _0x1771bc of _0x26bb72){let _0x288134=!![];for(const _0x2641ad of _0x38d9df[a7_0x5d03('0x64')][_0x1771bc]){if(_0x26bb72[a7_0x5d03('0x10')](_0x2641ad)){_0x288134=![];break;}}if(!_0x288134){continue;}const _0x5ac080=_0x38d9df[a7_0x5d03('0x17')][_0x1771bc];_0x5a7054['push'](_0x5ac080);}for(const _0xf9e6af of _0x5a7054){_0x26bb72[a7_0x5d03('0x38')](_0xf9e6af['id']);}_0x3f279++;}return _0x27ef39;}['createTaskGraph'](_0x5cda43){const _0x43fe2a=new TaskGraphCreator(this[a7_0x5d03('0x28')],this['defaultTargetDependencies']);return _0x43fe2a[a7_0x5d03('0x2e')](_0x5cda43);}}class TaskGraphCreator{constructor(_0x4014ac,_0x5e18a8){this[a7_0x5d03('0x28')]=_0x4014ac;this[a7_0x5d03('0x54')]=_0x5e18a8;}[a7_0x5d03('0x2e')](_0x1eec0d){const _0x4db79a={'roots':[],'tasks':{},'dependencies':{}};for(const _0x220bbf of _0x1eec0d){this[a7_0x5d03('0x6')](_0x220bbf,_0x4db79a);const _0x5cb693=getDependencyConfigs(_0x220bbf[a7_0x5d03('0x22')],this[a7_0x5d03('0x54')],this[a7_0x5d03('0x28')]);if(!_0x5cb693){continue;}this[a7_0x5d03('0x32')](_0x220bbf,_0x5cb693,_0x1eec0d,_0x4db79a);}_0x4db79a[a7_0x5d03('0x59')]=Object['keys'](_0x4db79a[a7_0x5d03('0x64')])[a7_0x5d03('0x3a')](_0x48c682=>_0x4db79a[a7_0x5d03('0x64')][_0x48c682][a7_0x5d03('0x46')]===0x0);return _0x4db79a;}['addTaskDependencies'](_0x2b1ab1,_0x2b2c91,_0x5c2d74,_0xa6e03e){for(const _0x555ed9 of _0x2b2c91){if(_0x555ed9[a7_0x5d03('0x7')]===a7_0x5d03('0x2b')){for(const _0x4d2a7e of _0x5c2d74){if(_0x4d2a7e[a7_0x5d03('0x22')][a7_0x5d03('0x3f')]===_0x2b1ab1[a7_0x5d03('0x22')]['project']&&_0x4d2a7e[a7_0x5d03('0x22')][a7_0x5d03('0x22')]===_0x555ed9[a7_0x5d03('0x22')]){_0xa6e03e['dependencies'][_0x2b1ab1['id']][a7_0x5d03('0x4d')](_0x4d2a7e['id']);}}}else if(_0x555ed9['projects']==='dependencies'){const _0x2273bb=new Set();this[a7_0x5d03('0xa')](_0x2b1ab1[a7_0x5d03('0x22')][a7_0x5d03('0x3f')],_0x555ed9[a7_0x5d03('0x22')],_0x5c2d74,_0xa6e03e,_0x2b1ab1['id'],_0x2273bb);}}}[a7_0x5d03('0xa')](_0x1a47ba,_0x4a3d62,_0x423553,_0x1d584c,_0x38b985,_0x593cc7){_0x593cc7[a7_0x5d03('0x27')](_0x1a47ba);const _0x3787cf=this[a7_0x5d03('0x28')][a7_0x5d03('0x64')][_0x1a47ba];if(_0x3787cf){const _0xcc745d=_0x3787cf[a7_0x5d03('0x18')](_0x25e86d=>_0x25e86d[a7_0x5d03('0x22')]);for(const _0xa04565 of _0xcc745d){if(_0x593cc7[a7_0x5d03('0x10')](_0xa04565)){continue;}const _0x2f2d26=this['findTask']({'project':_0xa04565,'target':_0x4a3d62},_0x423553);if(_0x2f2d26){if(_0x1d584c[a7_0x5d03('0x64')][_0x38b985][a7_0x5d03('0x4a')](_0x2f2d26['id'])===-0x1){_0x1d584c['dependencies'][_0x38b985]['push'](_0x2f2d26['id']);}}else{this['addDependencies'](_0xa04565,_0x4a3d62,_0x423553,_0x1d584c,_0x38b985,_0x593cc7);}}}}[a7_0x5d03('0x33')]({project,target},_0x3d6375){return _0x3d6375[a7_0x5d03('0x49')](_0x4dd596=>_0x4dd596['target'][a7_0x5d03('0x3f')]===project&&_0x4dd596['target'][a7_0x5d03('0x22')]===target);}[a7_0x5d03('0x6')](_0x3da078,_0x3b2d5c){_0x3b2d5c[a7_0x5d03('0x17')][_0x3da078['id']]=_0x3da078;_0x3b2d5c[a7_0x5d03('0x64')][_0x3da078['id']]=[];}}exports[a7_0x5d03('0x0')]=TaskGraphCreator;function getDefaultDependencyConfigs(_0x2e50fb,_0x262ea3){var _0xdad9df,_0x2ce6be;const _0x2f79f4=(_0xdad9df=_0x2e50fb['targetDependencies'])!==null&&_0xdad9df!==void 0x0?_0xdad9df:{};const _0x3b08ef=_0x262ea3?(_0x2ce6be=_0x262ea3['strictlyOrderedTargets'])!==null&&_0x2ce6be!==void 0x0?_0x2ce6be:[a7_0x5d03('0x4f')]:[];for(const _0x29a731 of _0x3b08ef){_0x2f79f4[_0x29a731]=_0x2f79f4[_0x29a731]||[];_0x2f79f4[_0x29a731]['push']({'target':_0x29a731,'projects':a7_0x5d03('0x64')});}return _0x2f79f4;}

@@ -11,3 +11,3 @@ "use strict";

}
const { unparse, getDependencyConfigs, getOutputs, } = require('nx/src/tasks-runner/utils');
const { getDependencyConfigs, getOutputs, } = require('nx/src/tasks-runner/utils');
const { Cache } = require('nx/src/tasks-runner/cache');

@@ -19,3 +19,2 @@ const tasksRunner = require('nx/tasks-runners/default').default;

exports.workspaceRoot = workspaceRoot;
exports.unparse = unparse;
exports.tasksRunner = tasksRunner;

@@ -30,3 +29,3 @@ exports.CompositeLifeCycle = CompositeLifeCycle;

const { appRootPath } = require('@nrwl/tao/src/utils/app-root');
const { unparse, getDependencyConfigs, getOutputs, } = require('@nrwl/workspace/src/tasks-runner/utils');
const { getDependencyConfigs, getOutputs, } = require('@nrwl/workspace/src/tasks-runner/utils');
const { tasksRunnerV2, } = require('@nrwl/workspace/src/tasks-runner/tasks-runner-v2');

@@ -43,3 +42,2 @@ let CompositeLifeCycle;

exports.workspaceRoot = appRootPath;
exports.unparse = unparse;
exports.tasksRunner = tasksRunnerV2;

@@ -46,0 +44,0 @@ exports.CompositeLifeCycle = CompositeLifeCycle;

{
"name": "nx-cloud",
"version": "14.1.0",
"version": "14.1.1",
"description": "Nx Cloud plugin for Nx",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc