@northflank/cli 0.9.14 → 0.9.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 'use strict';function a4n(x,n){const R=a4x();return a4n=function(u,V){u=u-0x15a;let P=R[u];return P;},a4n(x,n);}const a4H=a4n;(function(x,n){const T=a4n,R=x();while(!![]){try{const u=parseInt(T(0x1a8))/0x1*(parseInt(T(0x1a5))/0x2)+-parseInt(T(0x198))/0x3+-parseInt(T(0x1aa))/0x4*(-parseInt(T(0x1bb))/0x5)+parseInt(T(0x166))/0x6+parseInt(T(0x193))/0x7+-parseInt(T(0x1a4))/0x8+-parseInt(T(0x192))/0x9;if(u===n)break;else R['push'](R['shift']());}catch(V){R['push'](R['shift']());}}}(a4x,0xa3cd4));function a4x(){const A=['Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','done','getTerminalSize','addCommand','success','greenBright','with\x20command\x20\x27','Run\x20command\x20with\x20this\x20user','Success',',\x20details:\x20','7673244FWaUZr','with\x20user:','\x20--shell-cmd\x20\x27sh\x27','--group\x20[GROUP]','--noDefaults','none','with\x20shell\x20session','stderr','next','Id\x20[NAME]','execCmd','InquirerHelper','../utils','(exit\x20with\x20two\x20quick\x20','stdout','apiClient','assertContextExisting','Run\x20command\x20with\x20this\x20group','without\x20shell','ApiClient','\x20--cmd\x20\x27\x22ls\x20-l\x20/usr\x22\x27\x20--shell-cmd\x20\x27bash\x20-c\x27\x0a\x20\x20Shell\x20session,\x20custom\x20shell:\x20\x20northflank\x20exec\x20','getCurrentProjectName','Unknown','slice','stdOut','execStartLog','throw','askForJob','value','--project\x20--projectId\x20[NAME]','\x20--','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','bold','customUserAgent','askForProject','\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20','default','Error\x20occured\x20during\x20','action','pipe','askForService','\x20command\x20exec:\x20','charAt','apply','5120595yIzJGd','3436349MhsStI','stdin','option','getStandardExecCommand','service','3547410kBWIbQ','stdErr','__awaiter','.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20','__esModule','Project\x20for\x20exec','Run\x20command\x20with\x20shell\x20(e.g.\x20\x27bash\x27,\x27sh\x27).\x0aIf\x20not\x20set\x20and\x20no\x20command\x20is\x20provided,\x20several\x20standard\x20shells\x20will\x20be\x20attempted.\x20If\x20not\x20set\x20and\x20a\x20command\x20is\x20provided,\x20the\x20command\x20will\x20run\x20without\x20shell.','message','\x27Ctrl+D\x27','stdIn','@northflank/js-client','setRawMode','10193960ZiChgj','2122174EddrLA','description','\x20to\x20exec\x20into','1qWeezf','resize','3462936CjLtGV','toUpperCase','waitForCommandResult','emitKeypressEvents','isTTY','rows','name','execServiceSession','keypress','columns','filter','--cmd\x20--command\x20[COMMAND]',',\x20exit\x20code:\x20','chalk','job','readline','CliExec','5BxuJFx','exec','with\x20group:','shell\x20command\x20','getCommand','handleShellSession','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','../inquirer-helper','command-exec','exit','__importDefault','exitCode'];a4x=function(){return A;};return a4x();}var __awaiter=this&&this[a4H(0x19a)]||function(x,n,R,u){function V(w){return w instanceof R?w:new R(function(Y){Y(w);});}return new(R||(R=Promise))(function(w,Y){const L=a4n;function N(f){const F=a4n;try{q(u[F(0x16e)](f));}catch(M){Y(M);}}function C(f){const e=a4n;try{q(u[e(0x180)](f));}catch(M){Y(M);}}function q(f){const Q=a4n;f[Q(0x15d)]?w(f[Q(0x182)]):V(f[Q(0x182)])['then'](N,C);}q((u=u[L(0x191)](x,n||[]))[L(0x16e)]());});},__importDefault=this&&this[a4H(0x15a)]||function(x){const D=a4H;return x&&x[D(0x19c)]?x:{'default':x};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CliExec']=void 0x0;const js_client_1=require(a4H(0x1a2)),chalk_1=__importDefault(require(a4H(0x1b7))),utils_1=require(a4H(0x172)),inquirer_helper_1=require(a4H(0x1c2));class CliExec{constructor(x){const G=a4H;this['getStandardExecCommand']=V=>(0x0,utils_1[G(0x1bf)])(!![])[G(0x1b0)](V)[G(0x1a6)]('Command\x20exec\x20for\x20the\x20specified\x20'+V+G(0x19b)+V+'\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20'+V+G(0x189)+V+G(0x17a)+V+G(0x168))['option'](G(0x183),G(0x19d))[G(0x195)]('--'+V+G(0x184)+V+G(0x16f),V[G(0x190)](0x0)[G(0x1ab)]()+V[G(0x17d)](0x1)+G(0x1a7))[G(0x195)]('--container\x20--containerId\x20[NAME]','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)')[G(0x195)]('--shell-cmd\x20[SHELL-CMD]',G(0x19e))[G(0x195)]('--user\x20[USER]',G(0x163))[G(0x195)](G(0x169),G(0x177))[G(0x195)](G(0x16a),G(0x15c),![])['option'](G(0x1b5),'Command\x20to\x20execute.\x0aIf\x20--shell-cmd\x20option\x20such\x20as\x20\x27bash\x20-c\x27\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell.\x20Otherwise\x20the\x20command\x20will\x20run\x20without\x20a\x20shell.\x20If\x20no\x20command\x20is\x20provided,\x20an\x20interactive\x20session\x20with\x20stdin\x20and\x20tty\x20is\x20opened.'),this[G(0x15e)]=()=>({'columns':process[G(0x174)][G(0x1b3)],'rows':process[G(0x174)][G(0x1af)]}),this[G(0x17f)]=(V,P,w,Y,N,C,q,f)=>{const h=G;if(f===!![])return;const M=Y===h(0x16b),X=M?h(0x178):Y===undefined?h(0x16c):h(0x1be)+chalk_1['default'][h(0x161)](Y),S=N!==undefined?h(0x167)+N:'',W=C!==undefined?h(0x1bd)+C:'',t=q!==undefined?h(0x162)+chalk_1['default'][h(0x161)](q)+'\x27':'',i=[t,X,S,W][h(0x1b4)](O=>O!=='')['join']('\x20'),p=h(0x173)+chalk_1[h(0x18a)][h(0x186)](h(0x1a0))+')';console['log']('Exec\x20'+V+'\x20'+chalk_1[h(0x18a)][h(0x186)](P)+'\x20in\x20project\x20'+chalk_1[h(0x18a)][h(0x186)](w)+'\x20'+i+'\x20'+p);},this[G(0x1c0)]=(V,P,w=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const o=G;var Y,N;let C=![];try{if(process[o(0x194)][o(0x1ae)]){const f=require(o(0x1b9));f[o(0x1ad)](process['stdin']),process[o(0x194)]['setRawMode'](!![]),process['stdout']['on'](o(0x1a9),()=>{const d=o;V['resizeTerminal'](this[d(0x15e)]());}),process[o(0x194)]['on'](o(0x1b2),(M,X)=>{const c=o;X['sequence']==='\x04'&&(C?(process[c(0x194)]['setRawMode'](![]),(0x0,utils_1['warning'])(c(0x1c1)),process[c(0x1c4)]()):(C=!![],setTimeout(()=>C=![],0x190)));});}process[o(0x194)][o(0x18d)](V[o(0x1a1)]),V[o(0x199)][o(0x18d)](process[o(0x16d)]),V[o(0x17e)][o(0x18d)](process['stdout']),V['on']('error',M=>{const v=o;var X;(0x0,utils_1['error'])(v(0x18b)+P+v(0x18f)+((X=M[v(0x19f)])!==null&&X!==void 0x0?X:M)),process[v(0x194)][v(0x1ae)]&&process[v(0x194)][v(0x1a3)](![]),process[v(0x1c4)](-0x1);});const q=yield V[o(0x1ac)]();if(w!==!![]){const M=(Y=q===null||q===void 0x0?void 0x0:q['status'])!==null&&Y!==void 0x0?Y:o(0x17c),X=(N=q===null||q===void 0x0?void 0x0:q[o(0x15b)])!==null&&N!==void 0x0?N:-0x1,S=(q===null||q===void 0x0?void 0x0:q[o(0x19f)])?o(0x165)+q[o(0x19f)]:'';M===o(0x164)?(0x0,utils_1[o(0x160)])('Command\x20completed\x20successfully,\x20exit\x20code:\x20'+X):(0x0,utils_1['warning'])(o(0x185)+M+o(0x1b6)+X+S);}return q;}finally{process[o(0x194)][o(0x1ae)]&&process[o(0x194)][o(0x1a3)](![]);}}),this['apiClient']=new js_client_1[(G(0x179))](x,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[G(0x187)]});const n=new inquirer_helper_1[(G(0x171))](this[G(0x175)]);this[G(0x170)]=(0x0,utils_1[G(0x1bf)])()['name'](G(0x1c3))['alias'](G(0x1bc))[G(0x1a6)]('Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.');const R=this[G(0x196)](G(0x197))[G(0x18c)](V=>__awaiter(this,void 0x0,void 0x0,function*(){const s=G,{noDefaults:P,projectId:w,serviceId:Y,containerId:N,shellCmd:C,user:q,group:f,command:M,quiet:X}=V;(0x0,utils_1[s(0x176)])(this['apiClient']);try{const S=P?undefined:x[s(0x17b)](),W=w||S||(yield n['askForProject']()),t=P?undefined:x['getCurrentServiceName'](),i=Y||t||(yield n[s(0x18e)](W)()),p=C!==null&&C!==void 0x0?C:M!==undefined?s(0x16b):undefined;this[s(0x17f)]('service',i,W,p,q,f,M,X);const O=process['stdout'][s(0x1b3)],Z=process[s(0x174)][s(0x1af)],a={'projectId':W,'serviceId':i},E=yield this[s(0x175)][s(0x1bc)][s(0x1b1)](a,{'containerName':N,'command':M,'shell':p,'user':q,'group':f,'ttyColumns':O,'ttyRows':Z});yield this[s(0x1c0)](E,'service',X);}catch(z){(0x0,utils_1['error'])(''+z[s(0x19f)]);}finally{process[s(0x1c4)]();}})),u=this['getStandardExecCommand']('job')['action'](V=>__awaiter(this,void 0x0,void 0x0,function*(){const g=G,{projectId:P,jobId:w,containerId:Y,noDefaults:N,shellCmd:C,user:q,group:f,command:M,quiet:X}=V;(0x0,utils_1['assertContextExisting'])(this['apiClient']);try{const S=N?undefined:x[g(0x17b)](),W=P||S||(yield n[g(0x188)]()),t=w||(yield n[g(0x181)](W)());this[g(0x17f)]('job',t,W,C,X);const {rows:i,columns:p}=this['getTerminalSize'](),O={'projectId':W,'jobId':t},Z=yield this[g(0x175)][g(0x1bc)]['execJobSession'](O,{'containerName':Y,'command':M,'shell':C,'user':q,'group':f,'ttyColumns':p,'ttyRows':i});yield this['handleShellSession'](Z,g(0x1b8),X);}catch(a){(0x0,utils_1['error'])(''+a[g(0x19f)]);}finally{process[g(0x1c4)]();}}));this[G(0x170)][G(0x15f)](R),this[G(0x170)][G(0x15f)](u);}}exports[a4H(0x1ba)]=CliExec;
1
+ 'use strict';const a4D=a4o;(function(w,o){const x=a4o,C=w();while(!![]){try{const R=-parseInt(x(0x154))/0x1+parseInt(x(0x162))/0x2+-parseInt(x(0x185))/0x3*(parseInt(x(0x14a))/0x4)+-parseInt(x(0x141))/0x5+-parseInt(x(0x12e))/0x6+parseInt(x(0x14f))/0x7+parseInt(x(0x158))/0x8*(parseInt(x(0x190))/0x9);if(R===o)break;else C['push'](C['shift']());}catch(M){C['push'](C['shift']());}}}(a4w,0x6c7ff));function a4o(w,o){const C=a4w();return a4o=function(R,M){R=R-0x129;let I=C[R];return I;},a4o(w,o);}var __awaiter=this&&this[a4D(0x189)]||function(w,o,C,R){function M(I){return I instanceof C?I:new C(function(l){l(I);});}return new(C||(C=Promise))(function(I,l){const N=a4o;function a(F){const t=a4o;try{e(R[t(0x12b)](F));}catch(Q){l(Q);}}function H(F){const g=a4o;try{e(R[g(0x18c)](F));}catch(Q){l(Q);}}function e(F){const h=a4o;F['done']?I(F['value']):M(F[h(0x156)])[h(0x179)](a,H);}e((R=R[N(0x151)](w,o||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(w){const T=a4D;return w&&w[T(0x150)]?w:{'default':w};};Object[a4D(0x178)](exports,'__esModule',{'value':!![]}),exports[a4D(0x191)]=void 0x0;function a4w(){const S=['join','execCmd','without\x20shell','Command\x20exec\x20for\x20the\x20specified\x20','Command\x20to\x20execute.\x0aIf\x20--shell-cmd\x20option\x20such\x20as\x20\x27bash\x20-c\x27\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell.\x20Otherwise\x20the\x20command\x20will\x20run\x20without\x20a\x20shell.\x20If\x20no\x20command\x20is\x20provided,\x20an\x20interactive\x20session\x20with\x20stdin\x20and\x20tty\x20is\x20opened.','assertContextExisting','none',',\x20details:\x20','defineProperty','then','bold','.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20','getCurrentProjectName','isTTY','waitForCommandResult','getTerminalSize','../inquirer-helper','@northflank/js-client','exitCode','exec','--container\x20--containerId\x20[NAME]','411esGWQF','status','exit','\x20to\x20exec\x20into','__awaiter','resizeTerminal','getStandardExecCommand','throw','greenBright','command-exec','charAt','263178osNFJu','CliExec','customUserAgent','filter','action','\x20in\x20project\x20','execServiceSession','stdIn','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','execStartLog','service','next','with\x20shell\x20session','columns','3658446gPRYzi','getCommand','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','execJobSession','pipe','with\x20command\x20\x27','toUpperCase','success','\x20--','stdout','getCurrentServiceName','option','Id\x20[NAME]','alias','Project\x20for\x20exec','warning','--shell-cmd\x20[SHELL-CMD]','stdin','--cmd\x20--command\x20[COMMAND]','1868240qRCIEv','askForJob','slice','../utils','Run\x20command\x20with\x20this\x20group','keypress','askForProject','chalk','InquirerHelper','2372LdXUsi','shell\x20command\x20','Run\x20command\x20with\x20shell\x20(e.g.\x20\x27bash\x27,\x27sh\x27).\x0aIf\x20not\x20set\x20and\x20no\x20command\x20is\x20provided,\x20several\x20standard\x20shells\x20will\x20be\x20attempted.\x20If\x20not\x20set\x20and\x20a\x20command\x20is\x20provided,\x20the\x20command\x20will\x20run\x20without\x20shell.','setRawMode','description','1942311SrdvMu','__esModule','apply','emitKeypressEvents','apiClient','677099vPzPeF','with\x20group:','value','resize','488pvJsCQ','job','message','askForService','with\x20user:','--group\x20[GROUP]','log','\x20command\x20exec:\x20','--user\x20[USER]','sequence','249818IrINLu','\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20','name',',\x20exit\x20code:\x20','(exit\x20with\x20two\x20quick\x20','handleShellSession','error','\x20--shell-cmd\x20\x27sh\x27','Run\x20command\x20with\x20this\x20user','stderr','rows','readline','addCommand','default'];a4w=function(){return S;};return a4w();}const js_client_1=require(a4D(0x181)),chalk_1=__importDefault(require(a4D(0x148))),utils_1=require(a4D(0x144)),inquirer_helper_1=require(a4D(0x180));class CliExec{constructor(w){const s=a4D;this[s(0x18b)]=M=>(0x0,utils_1[s(0x12f)])(!![])[s(0x164)](M)[s(0x14e)](s(0x173)+M+s(0x17b)+M+'\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20'+M+s(0x163)+M+'\x20--cmd\x20\x27\x22ls\x20-l\x20/usr\x22\x27\x20--shell-cmd\x20\x27bash\x20-c\x27\x0a\x20\x20Shell\x20session,\x20custom\x20shell:\x20\x20northflank\x20exec\x20'+M+s(0x169))[s(0x139)]('--project\x20--projectId\x20[NAME]',s(0x13c))[s(0x139)]('--'+M+s(0x136)+M+s(0x13a),M[s(0x18f)](0x0)[s(0x134)]()+M[s(0x143)](0x1)+s(0x188))['option'](s(0x184),s(0x198))[s(0x139)](s(0x13e),s(0x14c))['option'](s(0x160),s(0x16a))[s(0x139)](s(0x15d),s(0x145))[s(0x139)]('--noDefaults','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])[s(0x139)](s(0x140),s(0x174)),this[s(0x17f)]=()=>({'columns':process['stdout'][s(0x12d)],'rows':process[s(0x137)][s(0x16c)]}),this['execStartLog']=(M,I,l,a,H,e,F,Q)=>{const d=s;if(Q===!![])return;const L=a===d(0x176),z=L?d(0x172):a===undefined?d(0x12c):d(0x14b)+chalk_1[d(0x16f)][d(0x18d)](a),i=H!==undefined?d(0x15c)+H:'',q=e!==undefined?d(0x155)+e:'',m=F!==undefined?d(0x133)+chalk_1[d(0x16f)][d(0x18d)](F)+'\x27':'',k=[m,z,i,q][d(0x193)](n=>n!=='')[d(0x170)]('\x20'),K=d(0x166)+chalk_1[d(0x16f)][d(0x17a)]('\x27Ctrl+D\x27')+')';console[d(0x15e)]('Exec\x20'+M+'\x20'+chalk_1[d(0x16f)][d(0x17a)](I)+d(0x195)+chalk_1['default'][d(0x17a)](l)+'\x20'+k+'\x20'+K);},this[s(0x167)]=(M,I,l=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const p=s;var a,H;let e=![];try{if(process[p(0x13f)]['isTTY']){const Q=require(p(0x16d));Q[p(0x152)](process[p(0x13f)]),process['stdin'][p(0x14d)](!![]),process[p(0x137)]['on'](p(0x157),()=>{const E=p;M[E(0x18a)](this[E(0x17f)]());}),process[p(0x13f)]['on'](p(0x146),(L,z)=>{const j=p;z[j(0x161)]==='\x04'&&(e?(process[j(0x13f)][j(0x14d)](![]),(0x0,utils_1[j(0x13d)])('Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.'),process[j(0x187)]()):(e=!![],setTimeout(()=>e=![],0x190)));});}process['stdin'][p(0x132)](M[p(0x197)]),M['stdErr'][p(0x132)](process[p(0x16b)]),M['stdOut']['pipe'](process['stdout']),M['on'](p(0x168),L=>{const X=p;var z;(0x0,utils_1['error'])('Error\x20occured\x20during\x20'+I+X(0x15f)+((z=L[X(0x15a)])!==null&&z!==void 0x0?z:L)),process['stdin']['isTTY']&&process[X(0x13f)]['setRawMode'](![]),process['exit'](-0x1);});const F=yield M[p(0x17e)]();if(l!==!![]){const L=(a=F===null||F===void 0x0?void 0x0:F[p(0x186)])!==null&&a!==void 0x0?a:'Unknown',z=(H=F===null||F===void 0x0?void 0x0:F[p(0x182)])!==null&&H!==void 0x0?H:-0x1,i=(F===null||F===void 0x0?void 0x0:F[p(0x15a)])?p(0x177)+F[p(0x15a)]:'';L==='Success'?(0x0,utils_1[p(0x135)])('Command\x20completed\x20successfully,\x20exit\x20code:\x20'+z):(0x0,utils_1['warning'])('Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20'+L+p(0x165)+z+i);}return F;}finally{process['stdin'][p(0x17d)]&&process[p(0x13f)][p(0x14d)](![]);}}),this['apiClient']=new js_client_1['ApiClient'](w,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[s(0x192)]});const o=new inquirer_helper_1[(s(0x149))](this[s(0x153)]);this[s(0x171)]=(0x0,utils_1[s(0x12f)])()[s(0x164)](s(0x18e))[s(0x13b)]('exec')[s(0x14e)](s(0x130));const C=this['getStandardExecCommand'](s(0x12a))[s(0x194)](M=>__awaiter(this,void 0x0,void 0x0,function*(){const b=s,{noDefaults:I,projectId:l,serviceId:a,containerId:H,shellCmd:F,user:Q,group:L,command:z,quiet:i}=M;(0x0,utils_1[b(0x175)])(this['apiClient']);try{const q=I?undefined:w[b(0x17c)](),m=l||q||(yield o['askForProject']()),k=I?undefined:w[b(0x138)](),K=a||k||(yield o[b(0x15b)](m)()),n=F!==null&&F!==void 0x0?F:z!==undefined?b(0x176):undefined;this['execStartLog'](b(0x12a),K,m,n,Q,L,z,i);const W=process[b(0x137)]['columns'],O=process['stdout'][b(0x16c)],r={'projectId':m,'serviceId':K},c=yield this['apiClient']['exec'][b(0x196)](r,{'containerName':H,'command':z,'shell':n,'user':Q,'group':L,'ttyColumns':W,'ttyRows':O});yield this['handleShellSession'](c,b(0x12a),i);}catch(A){(0x0,utils_1['error'])(''+A[b(0x15a)]);}finally{process['exit']();}})),R=this[s(0x18b)](s(0x159))[s(0x194)](M=>__awaiter(this,void 0x0,void 0x0,function*(){const u=s,{projectId:I,jobId:l,containerId:a,noDefaults:H,shellCmd:F,user:Q,group:L,command:z,quiet:i}=M;(0x0,utils_1[u(0x175)])(this[u(0x153)]);try{const q=H?undefined:w[u(0x17c)](),m=I||q||(yield o[u(0x147)]()),k=l||(yield o[u(0x142)](m)());this[u(0x129)](u(0x159),k,m,F,i);const {rows:K,columns:n}=this[u(0x17f)](),W={'projectId':m,'jobId':k},O=yield this[u(0x153)][u(0x183)][u(0x131)](W,{'containerName':a,'command':z,'shell':F,'user':Q,'group':L,'ttyColumns':n,'ttyRows':K});yield this[u(0x167)](O,u(0x159),i);}catch(r){(0x0,utils_1[u(0x168)])(''+r[u(0x15a)]);}finally{process[u(0x187)]();}}));this[s(0x171)]['addCommand'](C),this[s(0x171)][s(0x16e)](R);}}exports[a4D(0x191)]=CliExec;
@@ -1 +1 @@
1
- 'use strict';const a5F=a5n;(function(x,n){const a=a5n,R=x();while(!![]){try{const u=-parseInt(a(0x1fb))/0x1*(parseInt(a(0x1e0))/0x2)+-parseInt(a(0x1f9))/0x3+-parseInt(a(0x1ec))/0x4*(parseInt(a(0x1f7))/0x5)+parseInt(a(0x1fc))/0x6*(-parseInt(a(0x1fe))/0x7)+parseInt(a(0x1e9))/0x8+-parseInt(a(0x1fd))/0x9+parseInt(a(0x1fa))/0xa;if(u===n)break;else R['push'](R['shift']());}catch(V){R['push'](R['shift']());}}}(a5x,0x92fcb));var __awaiter=this&&this['__awaiter']||function(x,n,R,u){function V(w){return w instanceof R?w:new R(function(Y){Y(w);});}return new(R||(R=Promise))(function(w,Y){const H=a5n;function N(f){const E=a5n;try{q(u[E(0x1de)](f));}catch(M){Y(M);}}function C(f){const z=a5n;try{q(u[z(0x1df)](f));}catch(M){Y(M);}}function q(f){const T=a5n;f[T(0x203)]?w(f['value']):V(f[T(0x208)])[T(0x1f4)](N,C);}q((u=u[H(0x1f3)](x,n||[]))[H(0x1de)]());});},__importDefault=this&&this[a5F(0x205)]||function(x){const e=a5F;return x&&x[e(0x1ed)]?x:{'default':x};};Object[a5F(0x207)](exports,a5F(0x1ed),{'value':!![]}),exports[a5F(0x1e5)]=void 0x0;const chalk_1=__importDefault(require(a5F(0x1ef))),utils_1=require(a5F(0x1ea));function a5x(){const G=['name','commands','getCommandOverview','getCommand','map','Print\x20command\x20descriptions','6946416iAcCNA','../utils','action','68CTaQdn','__esModule','keys','chalk','length','green','join','apply','then','every','command-overview','196455lWNLWy','default','1283904LnQjtf','26053190LchCzD','71886igwtPx','6760686ZQaXvI','2604924mOfTJB','7zctAUm','log','description','option','opts','done','--verbose','__importDefault','slice','defineProperty','value','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','next','throw','10iWcrLS','bold','forEach'];a5x=function(){return G;};return a5x();}function a5n(x,n){const R=a5x();return a5n=function(u,V){u=u-0x1de;let P=R[u];return P;},a5n(x,n);}function getCommandOverview(x){const Q=a5F;return(0x0,utils_1[Q(0x1e6)])()[Q(0x1e3)](Q(0x1f6))[Q(0x200)](Q(0x209))[Q(0x201)](Q(0x204),Q(0x1e8))[Q(0x1eb)](n=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:R}=n;function u(V,P){const L=a5n;var w;const Y=(p,O=!![])=>O?chalk_1[L(0x1f8)][L(0x1e1)][L(0x1f1)](p['name']()):p[L(0x1e3)](),N=P[L(0x1f0)]===0x0,C=V['commands'];let q='';const f=C[L(0x1f0)]===0x0,M=f||((w=Object[L(0x1ee)](V===null||V===void 0x0?void 0x0:V[L(0x202)]()))===null||w===void 0x0?void 0x0:w[L(0x1f0)])>0x0;!N&&(q=C&&!f?'┬\x20':'─\x20');const X=R&&M&&V[L(0x200)]()?':\x20'+V['description']():'';console[L(0x1ff)](''+P+q+Y(V,M)+X);let S=P;if(!N){const p=P[L(0x206)](-0x2)==='└─';S=P['slice'](0x0,-0x2)+(p?'\x20\x20':'│\x20');}const W=S+'├─',t=S+'└─',i=C[L(0x1f5)](O=>O[L(0x1e4)]['length']===0x0);i&&!f&&!R?console[L(0x1ff)](t+'\x20'+C[L(0x1e7)](O=>Y(O))[L(0x1f2)](',\x20')):C[L(0x1e2)]((O,Z)=>{const D=L;u(O,C[D(0x1f0)]-0x1===Z?t:W);});}u(x,'');}));}exports[a5F(0x1e5)]=getCommandOverview;
1
+ 'use strict';const a5r=a5o;(function(w,o){const O=a5o,C=w();while(!![]){try{const R=-parseInt(O(0x101))/0x1*(-parseInt(O(0xe9))/0x2)+parseInt(O(0x103))/0x3+parseInt(O(0xe5))/0x4+-parseInt(O(0xe7))/0x5+-parseInt(O(0x108))/0x6*(-parseInt(O(0xe4))/0x7)+-parseInt(O(0xf8))/0x8+parseInt(O(0xfd))/0x9;if(R===o)break;else C['push'](C['shift']());}catch(M){C['push'](C['shift']());}}}(a5w,0x4c622));function a5o(w,o){const C=a5w();return a5o=function(R,M){R=R-0xe4;let I=C[R];return I;},a5o(w,o);}var __awaiter=this&&this[a5r(0x106)]||function(w,o,C,R){function M(I){return I instanceof C?I:new C(function(l){l(I);});}return new(C||(C=Promise))(function(I,l){const x=a5o;function a(F){try{e(R['next'](F));}catch(Q){l(Q);}}function H(F){const c=a5o;try{e(R[c(0x105)](F));}catch(Q){l(Q);}}function e(F){const A=a5o;F['done']?I(F[A(0xf6)]):M(F[A(0xf6)])[A(0xeb)](a,H);}e((R=R[x(0x102)](w,o||[]))[x(0xfb)]());});},__importDefault=this&&this['__importDefault']||function(w){const D=a5r;return w&&w[D(0xea)]?w:{'default':w};};Object[a5r(0x104)](exports,a5r(0xea),{'value':!![]}),exports[a5r(0xf1)]=void 0x0;const chalk_1=__importDefault(require('chalk')),utils_1=require(a5r(0xf3));function getCommandOverview(w){const t=a5r;return(0x0,utils_1[t(0x100)])()[t(0xef)](t(0x107))[t(0xff)](t(0xfa))[t(0xf5)](t(0xfc),t(0xf4))['action'](o=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:C}=o;function R(M,I){const g=a5o;var l;const a=(K,n=!![])=>n?chalk_1[g(0xe6)][g(0xec)][g(0xf9)](K[g(0xef)]()):K[g(0xef)](),H=I[g(0xf7)]===0x0,e=M[g(0xfe)];let F='';const Q=e['length']===0x0,L=Q||((l=Object['keys'](M===null||M===void 0x0?void 0x0:M[g(0xed)]()))===null||l===void 0x0?void 0x0:l[g(0xf7)])>0x0;!H&&(F=e&&!Q?'┬\x20':'─\x20');const z=C&&L&&M['description']()?':\x20'+M[g(0xff)]():'';console[g(0xf2)](''+I+F+a(M,L)+z);let i=I;if(!H){const K=I[g(0xe8)](-0x2)==='└─';i=I[g(0xe8)](0x0,-0x2)+(K?'\x20\x20':'│\x20');}const q=i+'├─',m=i+'└─',k=e['every'](n=>n[g(0xfe)][g(0xf7)]===0x0);k&&!Q&&!C?console[g(0xf2)](m+'\x20'+e[g(0xf0)](n=>a(n))['join'](',\x20')):e[g(0xee)]((n,W)=>{const h=g;R(n,e[h(0xf7)]-0x1===W?m:q);});}R(w,'');}));}function a5w(){const N=['__awaiter','command-overview','1146PobEfL','10171rTfSri','69172GRnFAv','default','1993795jQAQih','slice','2suXwrg','__esModule','then','bold','opts','forEach','name','map','getCommandOverview','log','../utils','Print\x20command\x20descriptions','option','value','length','2263944kLJqlT','green','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','next','--verbose','1344285fEZLpj','commands','description','getCommand','379439sMRqaX','apply','512994zxbGpp','defineProperty','throw'];a5w=function(){return N;};return a5w();}exports[a5r(0xf1)]=getCommandOverview;
@@ -1 +1 @@
1
- 'use strict';const a6W=a6n;function a6x(){const G=['handleJsonOutput','yaml','defineProperty','json','4104485qtqybn','length','printAsTable','sort','get','2980yexOeh','green','isObjectLike','56VJEqLJ','getMonth','handleFormattedOutput','map','__setModuleDefault','getHours','32130VjVbBi','\x20found','getFullYear','internalId','updatedat','js-yaml','The\x20request\x20was\x20completed\x20successfully','getSeconds','yml','createdat','default','forEach','__esModule','call','configurable','bold','367447YyHsbX','4247748sRBaZZ','isBoolean','includes','1743426OjJYkI','getMinutes','inspect','format','hasOwnProperty','lodash','printResponse','keys','chalk','toString','stringify','disabled','isArrayLike','getDate','create','log','7143480lDRvdc','isFinite','2dnzUTQ','1364657oxccsH','No\x20','toLowerCase','handleYamlOutput','\x20(HTTP\x20status:\x20','util','set','safeDump','getOwnPropertyDescriptor'];a6x=function(){return G;};return a6x();}(function(x,n){const S=a6n,R=x();while(!![]){try{const u=-parseInt(S(0x95))/0x1*(-parseInt(S(0x69))/0x2)+-parseInt(S(0x96))/0x3+parseInt(S(0xa9))/0x4+parseInt(S(0x77))/0x5+-parseInt(S(0x99))/0x6+-parseInt(S(0x6a))/0x7*(parseInt(S(0x7f))/0x8)+-parseInt(S(0x85))/0x9*(-parseInt(S(0x7c))/0xa);if(u===n)break;else R['push'](R['shift']());}catch(V){R['push'](R['shift']());}}}(a6x,0xec112));var __createBinding=this&&this['__createBinding']||(Object[a6W(0xa7)]?function(x,n,R,u){const t=a6W;if(u===undefined)u=R;var V=Object[t(0x72)](n,R);(!V||(t(0x7b)in V?!n[t(0x91)]:V['writable']||V[t(0x93)]))&&(V={'enumerable':!![],'get':function(){return n[R];}}),Object['defineProperty'](x,u,V);}:function(x,n,R,u){if(u===undefined)u=R;x[u]=n[R];}),__setModuleDefault=this&&this[a6W(0x83)]||(Object['create']?function(x,n){const i=a6W;Object[i(0x75)](x,i(0x8f),{'enumerable':!![],'value':n});}:function(x,n){x['default']=n;}),__importStar=this&&this['__importStar']||function(x){const p=a6W;if(x&&x['__esModule'])return x;var n={};if(x!=null){for(var R in x)if(R!==p(0x8f)&&Object['prototype'][p(0x9d)][p(0x92)](x,R))__createBinding(n,x,R);}return __setModuleDefault(n,x),n;},__importDefault=this&&this['__importDefault']||function(x){return x&&x['__esModule']?x:{'default':x};};Object[a6W(0x75)](exports,a6W(0x91),{'value':!![]}),exports[a6W(0x9f)]=exports[a6W(0x81)]=exports['handleYamlOutput']=exports[a6W(0x73)]=exports['consoleFormat']=exports['printAsTable']=void 0x0;const chalk_1=__importDefault(require(a6W(0xa1))),_=__importStar(require(a6W(0x9e))),util=__importStar(require(a6W(0x6f))),yaml=require(a6W(0x8a)),columnify=require('columnify');function printAsTable(x,n,R,u=![],V=0x0){const O=a6W;!u&&console[O(0xa8)](''+chalk_1['default'][O(0x94)](n));function P(Y){const Z=O;return Y==='disabled'?Y:Y['replace'](Z(0xa4),'');}function w(Y,N){const E=O;function C(f){const a=a6n,M=new Date(f);return M[a(0xa6)]()+'/'+M[a(0x80)]()+'/'+M[a(0x87)]()+'\x0a'+M[a(0x84)]()+':'+M[a(0x9a)]()+':'+M[a(0x8c)]();}const q=[E(0x8e),E(0x89)];if(q[E(0x98)](N[E(0x6c)]())&&_[E(0xaa)](Y)&&Y[E(0xa2)]()['length']===0xd)return C(Number(Y));if(_[E(0x97)](Y)){if(N!==E(0xa4)&&N['includes']('disabled'))return Y?'x':'✔';return Y?'✔':'x';}if(_[E(0x7e)](Y))return util[E(0x9b)](Y,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return Y;}if(_[O(0xa5)](x)){x[O(0x78)]===0x0&&console['log'](O(0x6b)+n[O(0x6c)]()+O(0x86));const Y=x[O(0x82)]((q,f)=>{const z=O,M={'i':f+V};return Object[z(0xa0)](q)[z(0x90)](X=>{const T=z;(_['isUndefined'](R)||R[T(0x98)](X['toLowerCase']()))&&_[T(0x70)](M,P(X),w(q[X],X));}),M;}),N=_['clone'](Object['keys']((Y===null||Y===void 0x0?void 0x0:Y[0x0])||[]))[O(0x7a)]((q,f)=>{const H=O,M=X=>X!=='i'?X!==H(0x88)?0x0:0x1:0x2;return M(f)-M(q);}),C={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!u,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':N};console[O(0xa8)](columnify(Y,C));}else console['log'](x);}exports[a6W(0x79)]=printAsTable;function consoleFormat(x,n){const F=a6W;if(_['isEmpty'](x)){const R=n?F(0x6e)+n+')':'';return chalk_1['default'][F(0x7d)](F(0x8b))+R;}if(!_['isObjectLike'](x))return x===null||x===void 0x0?void 0x0:x[F(0xa2)]();return util[F(0x9b)](x,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}function a6n(x,n){const R=a6x();return a6n=function(u,V){u=u-0x69;let P=R[u];return P;},a6n(x,n);}exports['consoleFormat']=consoleFormat;const handleJsonOutput=(x,n)=>{const e=a6W,R=x===e(0x76);if(R)console[e(0xa8)](JSON[e(0xa3)](n,null,'\x20'));};exports[a6W(0x73)]=handleJsonOutput;const handleYamlOutput=(x,n)=>{const Q=a6W,R=x===Q(0x74)||x===Q(0x8d);if(R)console['log'](yaml[Q(0x71)](n));};exports[a6W(0x6d)]=handleYamlOutput;const handleFormattedOutput=(x,n)=>{const L=a6W,R=x===L(0x9c);if(R)console[L(0xa8)](consoleFormat(n));};exports[a6W(0x81)]=handleFormattedOutput;const printResponse=(x,n)=>{const D=a6W;(0x0,exports['handleJsonOutput'])(x,n),(0x0,exports[D(0x6d)])(x,n),(0x0,exports[D(0x81)])(x,n);};exports[a6W(0x9f)]=printResponse;
1
+ 'use strict';const a6q=a6o;(function(w,o){const i=a6o,C=w();while(!![]){try{const R=-parseInt(i(0x1de))/0x1*(parseInt(i(0x1b8))/0x2)+parseInt(i(0x1e3))/0x3+-parseInt(i(0x1f0))/0x4+parseInt(i(0x1ef))/0x5*(-parseInt(i(0x1d4))/0x6)+parseInt(i(0x1e5))/0x7*(parseInt(i(0x1e0))/0x8)+parseInt(i(0x1df))/0x9*(-parseInt(i(0x1cc))/0xa)+-parseInt(i(0x1ee))/0xb*(-parseInt(i(0x1cf))/0xc);if(R===o)break;else C['push'](C['shift']());}catch(M){C['push'](C['shift']());}}}(a6w,0x45832));var __createBinding=this&&this[a6q(0x1c1)]||(Object[a6q(0x1d5)]?function(w,C,R,M){const m=a6q;if(M===undefined)M=R;var I=Object[m(0x1eb)](C,R);(!I||(m(0x1bc)in I?!C[m(0x1b9)]:I[m(0x1bb)]||I[m(0x1c0)]))&&(I={'enumerable':!![],'get':function(){return C[R];}}),Object[m(0x1ea)](w,M,I);}:function(w,C,R,M){if(M===undefined)M=R;w[M]=C[R];}),__setModuleDefault=this&&this[a6q(0x1b7)]||(Object['create']?function(w,C){const k=a6q;Object['defineProperty'](w,k(0x1dc),{'enumerable':!![],'value':C});}:function(w,C){const K=a6q;w[K(0x1dc)]=C;}),__importStar=this&&this[a6q(0x1f2)]||function(w){const n=a6q;if(w&&w[n(0x1b9)])return w;var o={};if(w!=null){for(var C in w)if(C!==n(0x1dc)&&Object['prototype']['hasOwnProperty'][n(0x1c5)](w,C))__createBinding(o,w,C);}return __setModuleDefault(o,w),o;},__importDefault=this&&this[a6q(0x1d8)]||function(w){const W=a6q;return w&&w[W(0x1b9)]?w:{'default':w};};Object['defineProperty'](exports,a6q(0x1b9),{'value':!![]}),exports['printResponse']=exports[a6q(0x1da)]=exports[a6q(0x1d7)]=exports[a6q(0x1ec)]=exports[a6q(0x1ca)]=exports[a6q(0x1f1)]=void 0x0;const chalk_1=__importDefault(require(a6q(0x1cd))),_=__importStar(require(a6q(0x1ed))),util=__importStar(require(a6q(0x1f4))),yaml=require(a6q(0x1bf)),columnify=require(a6q(0x1c8));function a6o(w,o){const C=a6w();return a6o=function(R,M){R=R-0x1b5;let I=C[R];return I;},a6o(w,o);}function printAsTable(w,o,C,R=![],M=0x0){const O=a6q;!R&&console[O(0x1f5)](''+chalk_1['default'][O(0x1ba)](o));function I(a){const r=O;return a===r(0x1e4)?a:a[r(0x1c7)]('disabled','');}function l(a,H){const A=O;function e(Q){const c=a6o,L=new Date(Q);return L[c(0x1d3)]()+'/'+L[c(0x1f7)]()+'/'+L[c(0x1e9)]()+'\x0a'+L['getHours']()+':'+L['getMinutes']()+':'+L[c(0x1e2)]();}const F=[A(0x1d0),'updatedat'];if(F[A(0x1b6)](H[A(0x1e8)]())&&_[A(0x1bd)](a)&&a[A(0x1ce)]()[A(0x1db)]===0xd)return e(Number(a));if(_[A(0x1d9)](a)){if(H!==A(0x1e4)&&H[A(0x1b6)](A(0x1e4)))return a?'x':'✔';return a?'✔':'x';}if(_[A(0x1c6)](a))return util[A(0x1f8)](a,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return a;}if(_['isArrayLike'](w)){w[O(0x1db)]===0x0&&console[O(0x1f5)](O(0x1dd)+o['toLowerCase']()+O(0x1c9));const a=w[O(0x1be)]((F,Q)=>{const x=O,L={'i':Q+M};return Object['keys'](F)[x(0x1d6)](z=>{const D=x;(_[D(0x1c3)](C)||C[D(0x1b6)](z[D(0x1e8)]()))&&_['set'](L,I(z),l(F[z],z));}),L;}),H=_[O(0x1c2)](Object[O(0x1d1)]((a===null||a===void 0x0?void 0x0:a[0x0])||[]))[O(0x1e6)]((F,Q)=>{const L=z=>z!=='i'?z!=='internalId'?0x0:0x1:0x2;return L(Q)-L(F);}),e={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!R,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':H};console[O(0x1f5)](columnify(a,e));}else console[O(0x1f5)](w);}exports[a6q(0x1f1)]=printAsTable;function consoleFormat(w,o){const t=a6q;if(_[t(0x1e7)](w)){const C=o?t(0x1cb)+o+')':'';return chalk_1[t(0x1dc)][t(0x1e1)]('The\x20request\x20was\x20completed\x20successfully')+C;}if(!_[t(0x1c6)](w))return w===null||w===void 0x0?void 0x0:w['toString']();return util[t(0x1f8)](w,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6q(0x1ca)]=consoleFormat;function a6w(){const s=['length','default','No\x20','1snGCTi','69948NwREQr','3560zUvXrE','green','getSeconds','1423533QJKPkf','disabled','343PbjCxW','sort','isEmpty','toLowerCase','getFullYear','defineProperty','getOwnPropertyDescriptor','handleJsonOutput','lodash','111661gHtMBh','5MLLzqy','1341248MOryjH','printAsTable','__importStar','printResponse','util','log','stringify','getMonth','inspect','format','json','yaml','includes','__setModuleDefault','903410LGpoQy','__esModule','bold','writable','get','isFinite','map','js-yaml','configurable','__createBinding','clone','isUndefined','safeDump','call','isObjectLike','replace','columnify','\x20found','consoleFormat','\x20(HTTP\x20status:\x20','670UqkvwX','chalk','toString','1572LMAzWG','createdat','keys','yml','getDate','1401804skrqJP','create','forEach','handleYamlOutput','__importDefault','isBoolean','handleFormattedOutput'];a6w=function(){return s;};return a6w();}const handleJsonOutput=(w,o)=>{const g=a6q,C=w===g(0x1fa);if(C)console[g(0x1f5)](JSON[g(0x1f6)](o,null,'\x20'));};exports[a6q(0x1ec)]=handleJsonOutput;const handleYamlOutput=(w,o)=>{const h=a6q,C=w===h(0x1b5)||w===h(0x1d2);if(C)console['log'](yaml[h(0x1c4)](o));};exports['handleYamlOutput']=handleYamlOutput;const handleFormattedOutput=(w,o)=>{const N=a6q,C=w===N(0x1f9);if(C)console[N(0x1f5)](consoleFormat(o));};exports['handleFormattedOutput']=handleFormattedOutput;const printResponse=(w,o)=>{const T=a6q;(0x0,exports['handleJsonOutput'])(w,o),(0x0,exports[T(0x1d7)])(w,o),(0x0,exports['handleFormattedOutput'])(w,o);};exports[a6q(0x1f3)]=printResponse;
@@ -1 +1 @@
1
- 'use strict';const a7b=a7n;function a7n(x,n){const R=a7x();return a7n=function(u,V){u=u-0x143;let P=R[u];return P;},a7n(x,n);}(function(x,n){const U=a7n,R=x();while(!![]){try{const u=-parseInt(U(0x160))/0x1+-parseInt(U(0x156))/0x2+-parseInt(U(0x155))/0x3+-parseInt(U(0x144))/0x4+-parseInt(U(0x14a))/0x5+-parseInt(U(0x15f))/0x6*(-parseInt(U(0x168))/0x7)+parseInt(U(0x14e))/0x8;if(u===n)break;else R['push'](R['shift']());}catch(V){R['push'](R['shift']());}}}(a7x,0xeb22f));var __importDefault=this&&this[a7b(0x15a)]||function(x){return x&&x['__esModule']?x:{'default':x};};Object[a7b(0x158)](exports,a7b(0x154),{'value':!![]}),exports[a7b(0x143)]=exports[a7b(0x145)]=void 0x0;function a7x(){const x3=['__importDefault','map','\x20\x20\x20','colors','red','3546yBmvBs','561574ZcZlQp','length','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','height','round','slice','default','black','5691gjZdYl','format','2-digit','join','green','downSampleData','1436956KRWKQR','getAsciiChart','undefined','toLocaleTimeString','min','toLocaleDateString','3020690FlEuEX','max','padding','grey','21519984zaFrWP','abs','isArray','floor','unit','offset','__esModule','1069614oqCGOM','651746cuybBQ','push','defineProperty','h24'];a7x=function(){return x3;};return a7x();}const chalk_1=__importDefault(require('chalk')),colored=(x,n)=>{const K=a7b;return n===undefined?x:chalk_1[K(0x166)][n](x);},getAsciiChart=(n,R={})=>{const j=a7b,u=Array[j(0x150)](n[0x0])?n:[n];let V=typeof R['min']!==j(0x146)?R[j(0x148)]:u[0x0][0x0],P=typeof R[j(0x14b)]!=='undefined'?R[j(0x14b)]:u[0x0][0x0];for(let z=0x0;z<u[j(0x161)];z++){for(let T=0x0;T<u[z]['length'];T++){V=Math[j(0x148)](V,u[z][T]),P=Math[j(0x14b)](P,u[z][T]);}}let w=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],Y=Math['abs'](P-V),N=typeof R[j(0x153)]!=='undefined'?R[j(0x153)]:0x3,C=typeof R[j(0x14c)]!==j(0x146)?R['padding']:j(0x162),q=typeof R[j(0x163)]!==j(0x146)?R['height']:Y,f=typeof R[j(0x15d)]!=='undefined'?R[j(0x15d)]:['blue',j(0x15e),j(0x16c),j(0x14d),j(0x167)],M=Y!==0x0?q/Y:0x1,X=Math['round'](V*M),S=Math[j(0x164)](P*M),W=Math[j(0x14f)](S-X),t=0x0;for(let H=0x0;H<u[j(0x161)];H++){t=Math['max'](t,u[H][j(0x161)]);}t=t+N;let p=typeof R['symbols']!==j(0x146)?R['symbols']:w,O=R[j(0x169)]!==undefined?R[j(0x169)]:function(F){const x0=j;return(C+F['toFixed'](0x2)+R[x0(0x152)])[x0(0x165)](-C[x0(0x161)]);},Z=new Array(W+0x1);for(let F=0x0;F<=W;F++){Z[F]=new Array(t);for(let e=0x0;e<t;e++){Z[F][e]='\x20';}}for(let Q=X;Q<=S;++Q){const L=O(W>0x0?P-(Q-X)*Y/W:Q,Q-X);Z[Q-X][Math[j(0x14b)](N-L[j(0x161)],0x0)]=L,Z[Q-X][N-0x1]=Q==0x0?p[0x0]:p[0x1];}for(let D=0x0;D<u[j(0x161)];D++){let G=f[D%f[j(0x161)]],h=Math[j(0x164)](u[D][0x0]*M)-X;Z[W-h][N-0x1]=colored(p[0x0],G);for(let o=0x0;o<u[D][j(0x161)]-0x1;o++){let d=Math['round'](u[D][o+0x0]*M)-X,c=Math[j(0x164)](u[D][o+0x1]*M)-X;if(d==c)Z[W-d][o+N]=colored(p[0x4],G);else{Z[W-c][o+N]=colored(d>c?p[0x5]:p[0x6],G),Z[W-d][o+N]=colored(d>c?p[0x7]:p[0x8],G);let v=Math[j(0x148)](d,c),s=Math['max'](d,c);for(let g=v+0x1;g<s;g++){Z[W-g][o+N]=colored(p[0x9],G);}}}}const {startTs:a,endTs:E}=R;if(a||E){const A=m=>{const x1=j;if(!m)return x1(0x15c);const k=m[x1(0x149)](undefined,{'day':x1(0x16a),'month':x1(0x16a),'year':x1(0x16a)}),B=m[x1(0x147)](undefined,{'hourCycle':x1(0x159)});return k+'\x20'+B;},J=A(E),l=A(a),I=C[j(0x165)](0x0,Math[j(0x14b)](0x2,C[j(0x161)]-l[j(0x161)]/0x2+0x1)),r='\x20'['repeat'](Math[j(0x14b)](t-(C['length']+J[j(0x161)]/0x2),0x1));Z[j(0x157)]([''+I+l+r+J]),Z[j(0x157)]([]);}return Z[j(0x15b)](m=>m[j(0x16b)](''))[j(0x16b)]('\x0a');};exports['getAsciiChart']=getAsciiChart;const downSampleData=(x,n)=>{const x2=a7b,R=x[x2(0x161)];if(n>=R||n===0x0)return x;const u=[];let V=0x0;const P=(R-0x2)/(n-0x2);let w=0x0,Y,N,C,q;u[V++]=x[w];for(var f=0x0;f<n-0x2;f++){let p=0x0,O=0x0,Z=Math[x2(0x151)]((f+0x1)*P)+0x1,E=Math['floor']((f+0x2)*P)+0x1;E=E<R?E:R;var M=E-Z;for(;Z<E;Z++){p+=x[Z][0x0],O+=x[Z][0x1];}p/=M,O/=M;var X=Math[x2(0x151)](f*P)+0x1,S=Math[x2(0x151)]((f+0x1)*P)+0x1,W=x[w][0x0],t=x[w][0x1];N=C=-0x1;for(;X<S;X++){C=Math['abs']((W-p)*(x[X][0x1]-t)-(W-x[X][0x0])*(O-t))*0.5,C>N&&(N=C,Y=x[X],q=X);}u[V++]=Y,w=q;}return u[V++]=x[R-0x1],u;};exports['downSampleData']=downSampleData;
1
+ 'use strict';const a7J=a7o;(function(w,o){const B=a7o,C=w();while(!![]){try{const R=parseInt(B(0x158))/0x1+parseInt(B(0x156))/0x2+parseInt(B(0x150))/0x3+-parseInt(B(0x152))/0x4*(-parseInt(B(0x169))/0x5)+parseInt(B(0x155))/0x6+parseInt(B(0x15b))/0x7*(parseInt(B(0x146))/0x8)+-parseInt(B(0x159))/0x9;if(R===o)break;else C['push'](C['shift']());}catch(M){C['push'](C['shift']());}}}(a7w,0xb4191));var __importDefault=this&&this[a7J(0x162)]||function(w){const Y=a7J;return w&&w[Y(0x16b)]?w:{'default':w};};Object[a7J(0x149)](exports,a7J(0x16b),{'value':!![]}),exports[a7J(0x15a)]=exports['getAsciiChart']=void 0x0;const chalk_1=__importDefault(require(a7J(0x160))),colored=(w,o)=>{return o===undefined?w:chalk_1['default'][o](w);},getAsciiChart=(w,o={})=>{const w0=a7J,C=Array['isArray'](w[0x0])?w:[w];let R=typeof o['min']!=='undefined'?o[w0(0x144)]:C[0x0][0x0],M=typeof o['max']!==w0(0x141)?o[w0(0x165)]:C[0x0][0x0];for(let r=0x0;r<C[w0(0x14b)];r++){for(let c=0x0;c<C[r][w0(0x14b)];c++){R=Math['min'](R,C[r][c]),M=Math[w0(0x165)](M,C[r][c]);}}let I=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],l=Math[w0(0x157)](M-R),a=typeof o[w0(0x164)]!==w0(0x141)?o[w0(0x164)]:0x3,H=typeof o[w0(0x145)]!==w0(0x141)?o[w0(0x145)]:w0(0x15c),e=typeof o[w0(0x166)]!==w0(0x141)?o[w0(0x166)]:l,F=typeof o[w0(0x167)]!=='undefined'?o['colors']:[w0(0x15f),w0(0x168),w0(0x151),w0(0x140),w0(0x16a)],Q=l!==0x0?e/l:0x1,L=Math[w0(0x147)](R*Q),z=Math['round'](M*Q),q=Math['abs'](z-L),m=0x0;for(let A=0x0;A<C['length'];A++){m=Math[w0(0x165)](m,C[A][w0(0x14b)]);}m=m+a;let k=typeof o['symbols']!==w0(0x141)?o[w0(0x154)]:I,K=o[w0(0x15e)]!==undefined?o[w0(0x15e)]:function(D){const w1=w0;return(H+D[w1(0x143)](0x2)+o[w1(0x15d)])[w1(0x14c)](-H['length']);},n=new Array(q+0x1);for(let D=0x0;D<=q;D++){n[D]=new Array(m);for(let t=0x0;t<m;t++){n[D][t]='\x20';}}for(let g=L;g<=z;++g){const h=K(q>0x0?M-(g-L)*l/q:g,g-L);n[g-L][Math[w0(0x165)](a-h[w0(0x14b)],0x0)]=h,n[g-L][a-0x1]=g==0x0?k[0x0]:k[0x1];}for(let N=0x0;N<C['length'];N++){let T=F[N%F[w0(0x14b)]],s=Math[w0(0x147)](C[N][0x0]*Q)-L;n[q-s][a-0x1]=colored(k[0x0],T);for(let d=0x0;d<C[N]['length']-0x1;d++){let p=Math[w0(0x147)](C[N][d+0x0]*Q)-L,E=Math[w0(0x147)](C[N][d+0x1]*Q)-L;if(p==E)n[q-p][d+a]=colored(k[0x4],T);else{n[q-E][d+a]=colored(p>E?k[0x5]:k[0x6],T),n[q-p][d+a]=colored(p>E?k[0x7]:k[0x8],T);let X=Math[w0(0x144)](p,E),b=Math['max'](p,E);for(let u=X+0x1;u<b;u++){n[q-u][d+a]=colored(k[0x9],T);}}}}const {startTs:W,endTs:O}=o;if(W||O){const S=U=>{const w2=w0;if(!U)return w2(0x161);const v=U[w2(0x163)](undefined,{'day':w2(0x14f),'month':'2-digit','year':'2-digit'}),P=U['toLocaleTimeString'](undefined,{'hourCycle':w2(0x142)});return v+'\x20'+P;},V=S(O),f=S(W),Z=H[w0(0x14c)](0x0,Math['max'](0x2,H['length']-f['length']/0x2+0x1)),G='\x20'[w0(0x14a)](Math[w0(0x165)](m-(H[w0(0x14b)]+V['length']/0x2),0x1));n[w0(0x14d)]([''+Z+f+G+V]),n[w0(0x14d)]([]);}return n['map'](U=>U[w0(0x148)](''))[w0(0x148)]('\x0a');};exports[a7J(0x14e)]=getAsciiChart;const downSampleData=(w,o)=>{const w3=a7J,C=w[w3(0x14b)];if(o>=C||o===0x0)return w;const R=[];let M=0x0;const I=(C-0x2)/(o-0x2);let l=0x0,H,e,F,Q;R[M++]=w[l];for(var L=0x0;L<o-0x2;L++){let n=0x0,W=0x0,O=Math[w3(0x153)]((L+0x1)*I)+0x1,r=Math[w3(0x153)]((L+0x2)*I)+0x1;r=r<C?r:C;var z=r-O;for(;O<r;O++){n+=w[O][0x0],W+=w[O][0x1];}n/=z,W/=z;var q=Math[w3(0x153)](L*I)+0x1,m=Math[w3(0x153)]((L+0x1)*I)+0x1,k=w[l][0x0],K=w[l][0x1];e=F=-0x1;for(;q<m;q++){F=Math[w3(0x157)]((k-n)*(w[q][0x1]-K)-(k-w[q][0x0])*(W-K))*0.5,F>e&&(e=F,H=w[q],Q=q);}R[M++]=H,l=Q;}return R[M++]=w[C-0x1],R;};exports[a7J(0x15a)]=downSampleData;function a7o(w,o){const C=a7w();return a7o=function(R,M){R=R-0x140;let I=C[R];return I;},a7o(w,o);}function a7w(){const w4=['round','join','defineProperty','repeat','length','slice','push','getAsciiChart','2-digit','1771869fqKnxe','green','110756GuMyMi','floor','symbols','814674GFTXUq','1536650llASAo','abs','674834XBJAOu','17226783iuBINm','downSampleData','7jnVjsf','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unit','format','blue','chalk','\x20\x20\x20','__importDefault','toLocaleDateString','offset','max','height','colors','red','65kgjHqL','black','__esModule','grey','undefined','h24','toFixed','min','padding','978000xlWKcR'];a7w=function(){return w4;};return a7w();}
@@ -1 +1 @@
1
- 'use strict';const a8i=a8n;(function(x,n){const t=a8n,R=x();while(!![]){try{const u=parseInt(t(0x1c0))/0x1+-parseInt(t(0x1b6))/0x2+parseInt(t(0x26b))/0x3+-parseInt(t(0x289))/0x4+-parseInt(t(0x1fb))/0x5+parseInt(t(0x1a3))/0x6*(parseInt(t(0x271))/0x7)+parseInt(t(0x291))/0x8;if(u===n)break;else R['push'](R['shift']());}catch(V){R['push'](R['shift']());}}}(a8x,0x6d8f7));function a8x(){const xd=['unshift','askForBuild','blueBright','log\x20sink','name','./utils','getCurrentProjectName','example','No,\x20edit','\x20(completedAt:\x20','templateRuns','rawObject','fileName','don\x27t\x20change','registerPrompt','editor','\x20characters,\x20is\x20','resultCache','not\x20completed','hasOwnProperty','editPayload','Do\x20you\x20want\x20to\x20add','bold','Enter\x20the\x20','Template\x20id\x20not\x20provided.','stringify','pattern','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','job:\x20\x27','trim','jobs','toString','all-job-runs','askForAddon','getOwnPropertyDescriptor','inquirer-search-list','integer','choice','./pagination/inquirer-pagination-prompt','getInnerType','description','Do\x20you\x20want\x20to\x20add\x20more','Context\x20with\x20name\x20\x27','slice','found','minimum','unset','service','2197593rNHBPf','__awaiter','addEntry','service:\x20\x27','input','warning','45185FIuwHO','addons','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','askForLogSink','token','grey','No,\x20but\x20save\x20as\x20file','job','getPathString','pagination-prompt','json','addon','getType','search-list','join','askForProjectScopedResourcePaginated','whiteBright','override','completedAt','includes','askForPipeline','__importDefault','Writing\x20configuration\x20failed:\x20','fullName','561228ZZTPtA','\x20(startedAt:\x20','askArrayEntry','secrets','defineProperty','push','No\x20builds\x20found','value','3451832oPXZAj','string','apply','blue','doesn\x27t\x20match\x20pattern\x20\x27','66mndzhr','askForResourcePaginated','create','test','\x20Example:\x20','domains','isNaN','saveFile','lodash','askForProject','What\x20do\x20you\x20want\x20to\x20use\x20as','array','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','tmpCmdPath','this\x20option\x20is\x20required,\x20please\x20answer','bgGrey','main-context','validate','./api-helpers','777692wHrbWt','prompt','Please\x20confirm\x20following\x20configuration:\x0a','keys','credentials','pagination','.*\x5c.(json|yaml|yml)$','password','type','pop','9986QGyMzx','askForDomain','projects','all-builds','domain\x20(','domain','askForService','cursor','call','askForTemplate','object','list','propToType','configurable','get','maximum','safeDump','default','set','js-yaml','oneOf','all-containers','ABORT','find','Context\x20name\x20already\x20exists.','Aborted.','confirmation','project:\x20\x27','properties','createdAt','then','askForVolume','askGeneric','filter','__setModuleDefault','What\x27s\x20the\x20','required','No\x20containers\x20found','success','restores','data','Something\x20unexpected\x20happened.','for\x20this\x20','runs','containers','DynamicReloadPaginationPrompt','map','Configuration\x20file\x20written\x20to\x20','getQuestionString','nextPageCursor','REPEAT','minLength','pipeline','split','contextProvider','project','yaml','throw','Unexpected\x20file\x20type:\x20','1335445wPFLPN','__esModule','Choose\x20the\x20','ask','job\x20runs','askConfirm','concat','green','YES','Should\x20it\x20be','secret','logSinks','deleteWarningPrompt','length','templates','confirm','tokenPrompt','boolean','Yes,\x20send','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','yml','apiClient','No\x20','pathVars','services','body','maxLength','registryCredentials','cmdPath','fetchResourceList','red','service\x20build','__importStar','askForAddonBackup','assign','defaultPaginationPageSize','askForResource','writeFileSync','\x20characters','askForJob','\x20in\x20','safeLoad','EDIT','backups','askForProjectScopedResource','has','__createBinding','repeat','nextCursor','confirmationPrompt','startedAt','builds','retrievePayloadViaInteractiveCli','toUpperCase','subdomains','isUndefined','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','isEmpty','loginPrompt','pipelines','Go\x20to\x20editor','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','chalk','volume'];a8x=function(){return xd;};return a8x();}var __createBinding=this&&this[a8i(0x229)]||(Object[a8i(0x1a5)]?function(x,n,R,u){const p=a8i;if(u===undefined)u=R;var V=Object[p(0x25d)](n,R);(!V||(p(0x1ce)in V?!n[p(0x1fc)]:V['writable']||V[p(0x1cd)]))&&(V={'enumerable':!![],'get':function(){return n[R];}}),Object[p(0x28d)](x,u,V);}:function(x,n,R,u){if(u===undefined)u=R;x[u]=n[R];}),__setModuleDefault=this&&this[a8i(0x1e2)]||(Object['create']?function(x,n){const O=a8i;Object[O(0x28d)](x,'default',{'enumerable':!![],'value':n});}:function(x,n){const Z=a8i;x[Z(0x1d1)]=n;}),__importStar=this&&this[a8i(0x21b)]||function(x){const a=a8i;if(x&&x[a(0x1fc)])return x;var n={};if(x!=null){for(var R in x)if(R!=='default'&&Object['prototype'][a(0x24e)][a(0x1c8)](x,R))__createBinding(n,x,R);}return __setModuleDefault(n,x),n;},__awaiter=this&&this[a8i(0x26c)]||function(x,n,R,u){function V(w){return w instanceof R?w:new R(function(Y){Y(w);});}return new(R||(R=Promise))(function(w,Y){const T=a8n;function N(f){try{q(u['next'](f));}catch(M){Y(M);}}function C(f){const E=a8n;try{q(u[E(0x1f9)](f));}catch(M){Y(M);}}function q(f){const z=a8n;f['done']?w(f['value']):V(f[z(0x290)])['then'](N,C);}q((u=u[T(0x293)](x,n||[]))['next']());});},__importDefault=this&&this[a8i(0x286)]||function(x){return x&&x['__esModule']?x:{'default':x};};Object[a8i(0x28d)](exports,a8i(0x1fc),{'value':!![]}),exports['InquirerHelper']=void 0x0;const _=__importStar(require(a8i(0x1ab))),chalk_1=__importDefault(require(a8i(0x239))),fs=__importStar(require('fs')),utils_1=require(a8i(0x240)),api_helpers_1=require(a8i(0x1b5)),inquirer_pagination_prompt_1=require(a8i(0x261)),inquirer=require('inquirer'),inquirerSearchList=require(a8i(0x25e)),yaml=require(a8i(0x1d3));var ConfirmChoices;(function(x){const H=a8i;x['YES']=H(0x20d),x['REPEAT']='No,\x20repeat',x[H(0x225)]=H(0x243),x['SAVE']=H(0x277),x[H(0x1d6)]='No,\x20abort';}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(x){const F=a8i;this[F(0x210)]=x,this[F(0x21e)]=0x32,this[F(0x24f)]=n=>__awaiter(this,void 0x0,void 0x0,function*(){const e=F,{editedResult:R}=yield inquirer['prompt']([{'type':e(0x24a),'name':'editedResult','message':e(0x237),'default':yaml['safeDump'](n)}]);return yaml[e(0x224)](R);}),this['saveFile']=n=>__awaiter(this,void 0x0,void 0x0,function*(){const Q=F,R=w=>Q(0x1fa)+w+',\x20supported\x20types:\x20[json|yaml|yml]';function u(){return __awaiter(this,void 0x0,void 0x0,function*(){const L=a8n;return inquirer[L(0x1b7)]([{'type':'input','name':L(0x247),'message':'Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','validate':w=>new RegExp(L(0x1bc))[L(0x1a6)](w)?!![]:R(w)}]);});}const {fileName:V}=yield u(),P=V[Q(0x25a)]()[Q(0x1f5)]('.')[Q(0x1bf)]();try{switch(P){case Q(0x27b):(0x0,utils_1[Q(0x1e6)])(Q(0x1ef)+V);return fs['writeFileSync'](V,JSON['stringify'](n,null,'\x20\x20'));case Q(0x1f8):case Q(0x20f):(0x0,utils_1[Q(0x1e6)])(Q(0x1ef)+V);return fs[Q(0x220)](V,yaml['safeDump'](n));default:(0x0,utils_1['warning'])(R(P));}}catch(w){(0x0,utils_1[Q(0x270)])(Q(0x287)+w['message']);}return undefined;}),this[F(0x1e1)]=(n,R)=>u=>{const D=F,V=typeof u==='string'?u[D(0x258)]():u;return R===![]&&V===D(0x248)?'':V;},this[F(0x1b4)]=(n,R,u)=>V=>{const G=F,P=[];if(V===''||V==='don\x27t\x20change'){if(R!==![])P[G(0x28e)](G(0x1b1));else return!![];}n[G(0x1be)]===G(0x292)&&!_[G(0x232)](n['pattern'])&&P[G(0x28e)](new RegExp(n[G(0x255)])[G(0x1a6)](V)?!![]:G(0x1a2)+n[G(0x255)]+'\x27');n['type']===G(0x292)&&!_['isUndefined'](n['minLength'])&&P[G(0x28e)](V[G(0x208)]>=n[G(0x1f3)]?!![]:G(0x20e)+n[G(0x1f3)]+G(0x24b)+V[G(0x208)]+'\x20characters');n[G(0x1be)]===G(0x292)&&!_[G(0x232)](n[G(0x215)])&&P[G(0x28e)](V[G(0x208)]<=n[G(0x215)]?!![]:'must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20'+n[G(0x215)]+G(0x24b)+V['length']+G(0x221));u&&Number[G(0x1a9)](parseInt(V,0xa))&&P[G(0x28e)]('must\x20be\x20a\x20number,\x20is\x20'+V);n[G(0x1be)]===G(0x25f)&&!_[G(0x232)](n[G(0x268)])&&P['push'](V>=n['minimum']?!![]:'must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20'+n[G(0x268)]);n[G(0x1be)]===G(0x25f)&&!_[G(0x232)](n[G(0x1cf)])&&P['push'](V<=n[G(0x1cf)]?!![]:G(0x1af)+n[G(0x1cf)]);if(n[G(0x1be)]===G(0x246)){const N=(0x0,utils_1['isValidJSON'])(V);P[G(0x28e)](N===![]||_[G(0x234)](N)?G(0x273):!![]);}const w=P[G(0x1e1)](C=>C!==!![]),Y=(n===null||n===void 0x0?void 0x0:n[G(0x242)])?'\x0a'+chalk_1['default'][G(0x219)]('>>')+G(0x1a7)+chalk_1['default'][G(0x281)](JSON['stringify'](n[G(0x242)])):'';return w[G(0x208)]>0x0?w[G(0x27f)](chalk_1[G(0x1d1)]['underline']('\x20and\x20it\x20'))+Y:!![];},this[F(0x279)]=(n,R,u)=>{const h=F,V=n[n[h(0x208)]-0x1];function P(){const o=h;return n['slice'](0x0,-0x1)[o(0x1ee)](N=>N['charAt'](0x0)[o(0x230)]()+N[o(0x266)](0x1))[o(0x27f)]('>');}const w=n[h(0x208)]>0x1?chalk_1[h(0x1d1)][h(0x1b2)][h(0x281)](P())+':\x20':'',Y=u?'\x20('+chalk_1['default'][h(0x294)](u)+')':'';return chalk_1[h(0x1d1)]['reset'](''+w+R+'\x20'+chalk_1[h(0x1d1)][h(0x251)]['greenBright'](V)+Y+'?');},this[F(0x21f)]=(n,R,u)=>__awaiter(this,void 0x0,void 0x0,function*(){const d=F;if(R[d(0x208)]<0x1){const w=u?'for\x20this\x20'+u:d(0x267);throw new Error(d(0x211)+n+'\x20'+w+'.');}const V=d(0x1fd)+n+'\x20to\x20use:',P=R[d(0x208)]>0x4?d(0x27e):'list';return(yield inquirer[d(0x1b7)]([{'type':P,'name':d(0x23f),'message':V,'choices':R}]))[d(0x23f)];}),this[F(0x1a4)]=(n,R,u)=>__awaiter(this,void 0x0,void 0x0,function*(){const v=F,{elements:V,nextCursor:P}=yield R();if(V[v(0x208)]<0x1){const N=u?v(0x1ea)+u:v(0x267);throw new Error(v(0x211)+n+'\x20'+N+'.');}const w=v(0x1fd)+n+'\x20to\x20use:';if(P!==undefined){const C=({nextPageCursor:q})=>__awaiter(this,void 0x0,void 0x0,function*(){const s=v,f=yield R(q);return{'elements':f['elements'],'nextPageCursor':f[s(0x22b)]};});return(yield inquirer[v(0x1b7)]([{'type':v(0x27a),'name':'name','message':w,'choices':V,'nextPageCursor':P,'loadMore':C}]))['name'];}const Y=V[v(0x208)]>0x4?'search-list':v(0x1cb);return(yield inquirer['prompt']([{'type':Y,'name':v(0x23f),'message':w,'choices':V}]))[v(0x23f)];}),this[F(0x1e0)]=(n,R)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const g=F,u=''+(R?'('+chalk_1[g(0x1d1)][g(0x294)](R)+')\x20':''),V=g(0x252)+chalk_1[g(0x1d1)][g(0x202)](n)+'\x20'+u+'to\x20use:',P=this[g(0x1b4)]({'type':g(0x292),'required':!![]});return(yield inquirer[g(0x1b7)]([{'type':g(0x26f),'name':g(0x23f),'message':V,'validate':P}]))[g(0x23f)];}),this[F(0x200)]=n=>__awaiter(this,void 0x0,void 0x0,function*(){const A=F;return(yield inquirer[A(0x1b7)]([{'type':A(0x20a),'name':A(0x23f),'message':n,'default':!![]}]))[A(0x23f)];}),this[F(0x1c6)]=n=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const l=F,R=u=>V=>__awaiter(this,void 0x0,void 0x0,function*(){const J=a8n;var P;const w=yield this['apiClient']['list'][J(0x213)]({'parameters':{'projectId':u},'options':{'per_page':this[J(0x21e)],'cursor':V}}),Y=w[J(0x1e8)][J(0x213)][J(0x1ee)](N=>N['id']);return{'elements':Y,'nextCursor':(P=w['pagination'])===null||P===void 0x0?void 0x0:P[J(0x1c7)]};});return this[l(0x280)]('service',R,n);}),this[F(0x1c9)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const n=R=>__awaiter(this,void 0x0,void 0x0,function*(){const y=a8n;var u;const V=yield this['apiClient']['list'][y(0x209)]({'options':{'per_page':this[y(0x21e)],'cursor':R}}),P=V['data']['templates'][y(0x1ee)](w=>w['id']);return{'elements':P,'nextCursor':(u=V['pagination'])===null||u===void 0x0?void 0x0:u[y(0x1c7)]};});return this['askForResourcePaginated']('template',n);}),this['askForTemplateRun']=n=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const I=F;if(_[I(0x232)](n))throw new Error(I(0x253));const R=u=>__awaiter(this,void 0x0,void 0x0,function*(){const r=I;var V;let P=this['defaultPaginationPageSize'];const w=yield this[r(0x210)][r(0x1cb)][r(0x245)]({'parameters':{'templateId':n},'options':{'per_page':P,'cursor':u}}),Y=w[r(0x1e8)][r(0x245)][r(0x1ee)](N=>N['id']+r(0x28a)+N[r(0x1dd)]+')');return{'elements':Y,'nextCursor':(V=w[r(0x1bb)])===null||V===void 0x0?void 0x0:V[r(0x1c7)]};});return this[I(0x1a4)]('template\x20run',R)[I(0x1de)](u=>u[I(0x1f5)]('\x20')[0x0]);}),this[F(0x274)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const k=F,n=R=>__awaiter(this,void 0x0,void 0x0,function*(){const m=a8n;var u;let V=this['defaultPaginationPageSize'];const P=yield this[m(0x210)][m(0x1cb)][m(0x206)]({'options':{'per_page':V,'cursor':R}}),w=P[m(0x1e8)][m(0x206)][m(0x1ee)](Y=>Y['id']);return{'elements':w,'nextCursor':(u=P[m(0x1bb)])===null||u===void 0x0?void 0x0:u[m(0x1c7)]};});return this[k(0x1a4)](k(0x23e),n);}),this[F(0x285)]=n=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const U=F,R=u=>V=>__awaiter(this,void 0x0,void 0x0,function*(){const B=a8n;var P;const w=yield this[B(0x210)][B(0x1cb)][B(0x236)]({'parameters':{'projectId':u},'options':{'per_page':this[B(0x21e)],'cursor':V}}),Y=w['data'][B(0x236)][B(0x1ee)](N=>N['id']);return{'elements':Y,'nextCursor':(P=w[B(0x1bb)])===null||P===void 0x0?void 0x0:P['cursor']};});return this[U(0x280)](U(0x1f4),R,n);}),this[F(0x222)]=n=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const K=F,R=u=>V=>__awaiter(this,void 0x0,void 0x0,function*(){const b=a8n;var P;const w=yield this[b(0x210)][b(0x1cb)][b(0x259)]({'parameters':{'projectId':u},'options':{'per_page':this[b(0x21e)],'cursor':V}}),Y=w[b(0x1e8)]['jobs'][b(0x1ee)](N=>N['id']);return{'elements':Y,'nextCursor':(P=w[b(0x1bb)])===null||P===void 0x0?void 0x0:P[b(0x1c7)]};});return this[K(0x280)]('job',R,n);}),this['askForJobRun']=(n,R,u=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const j=F,V=j(0x25b),P=w=>Y=>__awaiter(this,void 0x0,void 0x0,function*(){const x0=j;var N;const C=yield this['apiClient']['get'][x0(0x278)][x0(0x1eb)]({'parameters':{'projectId':w,'jobId':n},'options':{'per_page':this[x0(0x21e)],'cursor':Y}}),q=C[x0(0x1e8)][x0(0x1eb)][x0(0x1ee)](f=>f['id']+x0(0x28a)+f[x0(0x22d)]+')');return u&&q[x0(0x23b)](V),{'elements':q,'nextCursor':(N=C[x0(0x1bb)])===null||N===void 0x0?void 0x0:N[x0(0x1c7)]};});return this[j(0x280)](j(0x1ff),P,R,j(0x257)+n+'\x27')[j(0x1de)](w=>{const x1=j,Y=w[x1(0x1f5)]('\x20')[0x0];if(Y===V)return undefined;return Y;});}),this[F(0x23c)]=(n,R,u,V=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x2=F,P=x2(0x1c3);if(u!==undefined){const w=Y=>N=>__awaiter(this,void 0x0,void 0x0,function*(){const x3=x2;var C;const q=yield this['apiClient'][x3(0x1ce)][x3(0x278)][x3(0x22e)]({'parameters':{'projectId':Y,'jobId':u},'options':{'per_page':this[x3(0x21e)],'cursor':N}}),f=q[x3(0x1e8)][x3(0x22e)][x3(0x1ee)](M=>M['id']+'\x20(startedAt:\x20'+M[x3(0x1dd)]+')');return V&&f[x3(0x23b)](P),{'elements':f,'nextCursor':(C=q['pagination'])===null||C===void 0x0?void 0x0:C['cursor']};});return this[x2(0x280)]('job\x20builds',w,n,'job:\x20\x27'+u+'\x27')[x2(0x1de)](Y=>{const x4=x2,N=Y[x4(0x1f5)]('\x20')[0x0];if(N===P)return undefined;return N;});}if(R!==undefined){const Y=N=>C=>__awaiter(this,void 0x0,void 0x0,function*(){const x5=x2;var q;const f=yield this[x5(0x210)][x5(0x1ce)]['service'][x5(0x22e)]({'parameters':{'projectId':N,'serviceId':R},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':C}}),M=f['data']['builds'][x5(0x1ee)](X=>X['id']+x5(0x28a)+X['createdAt']+')');if(V)M['unshift'](P);return{'elements':M,'nextCursor':(q=f[x5(0x1bb)])===null||q===void 0x0?void 0x0:q['cursor']};});return this['askForProjectScopedResourcePaginated'](x2(0x21a),Y,n,'service:\x20\x27'+u+'\x27')[x2(0x1de)](N=>{const x6=x2,C=N[x6(0x1f5)]('\x20')[0x0];if(C===P)return undefined;return C;});}throw new Error(x2(0x28f));}),this['askForContainer']=(n,R,u,V=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x7=F,P=x7(0x1d5);if(u!==undefined){const w=Y=>N=>__awaiter(this,void 0x0,void 0x0,function*(){const x8=x7;var C,q;const f=yield this[x8(0x210)][x8(0x1ce)]['job'][x8(0x1ec)]({'parameters':{'projectId':Y,'jobId':u},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':N}}),M=(C=f[x8(0x1e8)]['containers'])!==null&&C!==void 0x0?C:[],X=M===null||M===void 0x0?void 0x0:M[x8(0x1ee)](S=>S[x8(0x23f)]+x8(0x28a)+S[x8(0x1dd)]+')');return V&&X['unshift'](P),{'elements':X,'nextCursor':(q=f[x8(0x1bb)])===null||q===void 0x0?void 0x0:q['cursor']};});return this[x7(0x280)]('job\x20containers',w,n,x7(0x257)+u+'\x27')[x7(0x1de)](Y=>{const x9=x7,N=Y[x9(0x1f5)]('\x20')[0x0];if(N===P)return undefined;return N;});}if(R!==undefined){const Y=N=>C=>__awaiter(this,void 0x0,void 0x0,function*(){const xx=x7;var q,f;const M=yield this['apiClient'][xx(0x1ce)][xx(0x26a)][xx(0x1ec)]({'parameters':{'projectId':N,'serviceId':R},'options':{'per_page':this[xx(0x21e)],'cursor':C}}),X=(q=M[xx(0x1e8)][xx(0x1ec)])!==null&&q!==void 0x0?q:[],S=X[xx(0x1ee)](W=>W[xx(0x23f)]+'\x20(startedAt:\x20'+W[xx(0x1dd)]+')');if(V)S===null||S===void 0x0?void 0x0:S[xx(0x23b)](P);return{'elements':S,'nextCursor':(f=M['pagination'])===null||f===void 0x0?void 0x0:f['cursor']};});return this[x7(0x280)]('service\x20containers',Y,n,x7(0x26e)+u+'\x27')[x7(0x1de)](N=>{const xn=x7,C=N[xn(0x1f5)]('\x20')[0x0];if(C===P)return undefined;return C;});}throw new Error(x7(0x1e5));}),this[F(0x25c)]=n=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xu=F,R=u=>V=>__awaiter(this,void 0x0,void 0x0,function*(){const xR=a8n;var P;const w=yield this[xR(0x210)][xR(0x1cb)][xR(0x272)]({'parameters':{'projectId':u},'options':{'per_page':this[xR(0x21e)],'cursor':V}});return{'elements':w[xR(0x1e8)][xR(0x272)][xR(0x1ee)](Y=>Y['id']),'nextCursor':(P=w[xR(0x1bb)])===null||P===void 0x0?void 0x0:P[xR(0x1c7)]};});return this[xu(0x280)](xu(0x27c),R,n);}),this[F(0x21c)]=(n,R)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xP=F,u=V=>P=>__awaiter(this,void 0x0,void 0x0,function*(){const xV=a8n;var w;const Y=yield this[xV(0x210)][xV(0x1ce)]['addon'][xV(0x226)]({'parameters':{'projectId':V,'addonId':R},'options':{'per_page':this[xV(0x21e)],'cursor':P}});return{'elements':Y[xV(0x1e8)][xV(0x226)][xV(0x1ee)](N=>N['id']+'\x20(completedAt:\x20'+(N['completedAt']||xV(0x24d))+')'),'nextCursor':(w=Y[xV(0x1bb)])===null||w===void 0x0?void 0x0:w[xV(0x1c7)]};});return this[xP(0x280)]('backups',u,n,'addon:\x20\x27'+R+'\x27')[xP(0x1de)](V=>V[xP(0x1f5)]('\x20')[0x0]);}),this['askForAddonRestore']=(n,R,u)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xY=F,V=P=>w=>__awaiter(this,void 0x0,void 0x0,function*(){const xw=a8n;var Y;const N=yield this['apiClient']['get'][xw(0x27c)]['restores']({'parameters':{'projectId':P,'addonId':R,'backupId':u},'options':{'per_page':this[xw(0x21e)],'cursor':w}});return{'elements':N[xw(0x1e8)][xw(0x1e7)]['map'](C=>C['id']+xw(0x244)+(C[xw(0x283)]||xw(0x24d))+')'),'nextCursor':(Y=N[xw(0x1bb)])===null||Y===void 0x0?void 0x0:Y[xw(0x1c7)]};});return this['askForProjectScopedResourcePaginated']('restore',V,n,'addon:\x20\x27'+R+'\x27')['then'](P=>P[xY(0x1f5)]('\x20')[0x0]);}),this[F(0x1df)]=n=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xC=F,R=u=>__awaiter(this,void 0x0,void 0x0,function*(){const xN=a8n;return(yield this[xN(0x210)]['list']['volumes']({'parameters':{'projectId':u}}))['data']['map'](V=>V['id']);});return this['askForProjectScopedResource'](xC(0x23a),R,n);}),this['askForSecret']=n=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xf=F,R=u=>V=>__awaiter(this,void 0x0,void 0x0,function*(){const xq=a8n;var P;const w=yield this[xq(0x210)][xq(0x1cb)]['secrets']({'parameters':{'projectId':u},'options':{'per_page':this[xq(0x21e)],'cursor':V}});return{'elements':w['data'][xq(0x28c)][xq(0x1ee)](Y=>Y['id']),'nextCursor':(P=w[xq(0x1bb)])===null||P===void 0x0?void 0x0:P[xq(0x1c7)]};});return this[xf(0x280)](xf(0x205),R,n);}),this['askForSubdomain']=n=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xM=F,R=yield this[xM(0x210)][xM(0x1ce)][xM(0x1c5)]({'parameters':{'domain':n}}),u=R[xM(0x1e8)][xM(0x231)][xM(0x1ee)](P=>P[xM(0x23f)]+'\x20(full\x20domain:\x20'+P[xM(0x288)]+')'),V=xM(0x1c4)+n+')';return this[xM(0x21f)]('subdomain',u,V)['then'](P=>P[xM(0x1f5)]('\x20')[0x0]);}),this[F(0x207)]=n=>__awaiter(this,void 0x0,void 0x0,function*(){const xX=F;return(yield inquirer[xX(0x1b7)]([{'type':xX(0x20a),'name':'confirmation','message':chalk_1['default']['yellowBright'](xX(0x233)+(n||'a\x20Northflank\x20resource')+'.\x20This\x20is\x20irreversible.\x20Please\x20confirm!'),'default':![]}]))[xX(0x1da)];}),this[F(0x235)]=(n,R)=>__awaiter(this,void 0x0,void 0x0,function*(){const xS=F;_[xS(0x232)](n[xS(0x23f)])&&(R[xS(0x208)]<=0x0?_[xS(0x1d2)](n,xS(0x23f),xS(0x1d1)):yield(0x0,utils_1['retry'])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const xW=xS,{name:u}=yield inquirer['prompt']([{'type':xW(0x26f),'name':xW(0x23f),'message':xW(0x238),'default':xW(0x1b3)}]);if(!n[xW(0x282)]&&R[xW(0x1d7)](V=>V[xW(0x23f)]===u)){const {c:V}=yield inquirer['prompt']([{'type':xW(0x20a),'name':'c','message':xW(0x265)+u+'\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','default':![]}]);if(V===![])throw new Error(xW(0x1d8));_[xW(0x1d2)](n,xW(0x282),!![]);}_['set'](n,'name',u);})));if(_[xS(0x232)](n['token'])){const u=yield this[xS(0x20b)]();_[xS(0x1d2)](n,xS(0x275),u);}return n;}),this['tokenPrompt']=()=>__awaiter(this,void 0x0,void 0x0,function*(){const xt=F,{token:n}=yield inquirer['prompt']([{'type':xt(0x1bd),'name':xt(0x275),'mask':'*','message':'Choose\x20the\x20login\x20token:'}]);return n;}),inquirer['registerPrompt']('search-list',inquirerSearchList),inquirer[F(0x249)](F(0x27a),inquirer_pagination_prompt_1[F(0x1ed)]);}[a8i(0x22c)](x,n){return __awaiter(this,void 0x0,void 0x0,function*(){const xi=a8n,R=yaml[xi(0x1d0)](x),u=_['max'](R[xi(0x1f5)]('\x0a')[xi(0x1ee)](w=>w[xi(0x208)])),V=chalk_1[xi(0x1d1)][xi(0x276)]('-'[xi(0x22a)](u)+'\x0a'),{confirm:P}=yield inquirer[xi(0x1b7)]([{'type':xi(0x1cb),'name':xi(0x20a),'message':''+chalk_1[xi(0x1d1)]['bold'][xi(0x202)](xi(0x1b8))+V+chalk_1[xi(0x1d1)][xi(0x23d)](R)+V,'choices':Object['values'](ConfirmChoices)}]);switch(P){case ConfirmChoices[xi(0x203)]:return x;case ConfirmChoices[xi(0x1d6)]:throw new Error(xi(0x1d9));case ConfirmChoices[xi(0x1f2)]:return this['retrievePayloadViaInteractiveCli'](n);case ConfirmChoices[xi(0x225)]:return this['confirmationPrompt'](yield this[xi(0x24f)](x),n);case ConfirmChoices['SAVE']:yield this[xi(0x1aa)](x);return this['confirmationPrompt'](x,n);default:throw new Error(xi(0x1e9));}});}[a8i(0x22f)](x,n){return __awaiter(this,void 0x0,void 0x0,function*(){const xp=a8n;if((n===null||n===void 0x0?void 0x0:n[xp(0x24c)])!==undefined)this['resultCache']=n===null||n===void 0x0?void 0x0:n['resultCache'];this[xp(0x1b0)]=n===null||n===void 0x0?void 0x0:n[xp(0x217)];const R={};return yield this[xp(0x1cc)]([],x['opt'][xp(0x214)],R),this[xp(0x24c)]=R,yield this[xp(0x22c)](R,x);});}['propToType'](x,n,R,u){return __awaiter(this,void 0x0,void 0x0,function*(){const xO=a8n;let V;if(n[xO(0x1d4)]&&!_[xO(0x228)](n,xO(0x1dc))){if(n[xO(0x1d4)][xO(0x208)]>0x1){const {choice:P}=yield inquirer['prompt']([{'type':xO(0x1cb),'name':xO(0x260),'message':xO(0x1e3)+(x[x[xO(0x208)]-0x1]||'')+'\x20type?','choices':n[xO(0x1d4)][xO(0x1ee)](w=>{const xZ=xO;var Y;return(Y=w[xZ(0x263)])!==null&&Y!==void 0x0?Y:'??';})}]);V=yield this[xO(0x27d)](x,n[xO(0x1d4)][xO(0x1d7)](w=>w[xO(0x263)]===P),R,u);}else{const w=n[xO(0x1d4)][0x0];_['set'](w,xO(0x263),n[xO(0x263)]),V=yield this[xO(0x27d)](x,w,R,u);}V={};}else V=yield this[xO(0x27d)](x,n,R,u);return V;});}[a8i(0x262)](x,n,R,u){var V;return __awaiter(this,void 0x0,void 0x0,function*(){const xa=a8n;if(u===![]){const {addEntry:Y}=yield inquirer[xa(0x1b7)]([{'type':xa(0x20a),'name':xa(0x26d),'message':this[xa(0x279)](n,xa(0x250),x===null||x===void 0x0?void 0x0:x[xa(0x263)]),'default':![]}]);if(!Y)return R;}const P=Object[xa(0x1b9)]((V=x===null||x===void 0x0?void 0x0:x[xa(0x1dc)])!==null&&V!==void 0x0?V:[]),w=x[xa(0x1e4)]||[];if(P['length']>0x0)for(const N of P){const C=n[xa(0x201)](N);if(n[xa(0x208)]>0x0&&!_[xa(0x228)](R,n['join']('.')))_[xa(0x1d2)](R,n[xa(0x27f)]('.'),{});yield this[xa(0x1cc)](C,x[xa(0x1dc)][N],R,w[xa(0x284)](N));}else yield this[xa(0x27d)](n,Object['assign'](Object[xa(0x21d)]({},x),{'type':xa(0x246)}),R,u);return R;});}['askArrayEntry'](x,n,R,u){return __awaiter(this,void 0x0,void 0x0,function*(){const xE=a8n;if(n&&R)return!![];const V=n?xE(0x250):xE(0x264),{addEntry:P}=yield inquirer[xE(0x1b7)]([{'type':xE(0x20a),'name':'addEntry','message':this['getPathString'](x,V,n?u:undefined),'default':![]}]);return P;});}[a8i(0x27d)](x,n,R,u){return __awaiter(this,void 0x0,void 0x0,function*(){const xz=a8n;let V;const P=x[xz(0x27f)]('.');switch(n===null||n===void 0x0?void 0x0:n[xz(0x1be)]){case xz(0x1ae):{let w=!![];while(yield this[xz(0x28b)](x,w,u,n===null||n===void 0x0?void 0x0:n[xz(0x263)])){const Y=_[xz(0x1ce)](R,P);_[xz(0x269)](R,P),yield this['getType'](x,n['items'],R);const N=_[xz(0x1ce)](R,P);!_['isArray'](Y)?_['set'](R,P,[N]):(Y[xz(0x28e)](N),_[xz(0x1d2)](R,P,Y)),w=![];}return V||[];}case xz(0x1ca):{return V=yield this[xz(0x262)](n,x,R,u),V;}case xz(0x246):V=(0x0,utils_1['isValidJSON'])(yield this[xz(0x1fe)](x,n,u))||undefined;break;case xz(0x292):case xz(0x20c):case xz(0x25f):default:V=yield this[xz(0x1fe)](x,n,u,R);break;}return!_['isUndefined'](V)&&_[xz(0x1d2)](R,P,V),V;});}[a8i(0x1fe)](x,n,R,u){var V;return __awaiter(this,void 0x0,void 0x0,function*(){const xT=a8n,P=x[x[xT(0x208)]-0x1],{defaultValue:defaultValue=(V=n===null||n===void 0x0?void 0x0:n[xT(0x242)])!==null&&V!==void 0x0?V:n===null||n===void 0x0?void 0x0:n[xT(0x1d1)],choices:choices=n===null||n===void 0x0?void 0x0:n['enum'],pagination:w}=yield(0x0,api_helpers_1[xT(0x218)])(P,this[xT(0x210)],this[xT(0x1b0)],u,this[xT(0x212)],x);let Y='input';if(!_['isUndefined'](choices)&&choices[xT(0x208)]>0x0){if(w!==undefined&&w[xT(0x1f1)]!==undefined)Y='pagination-prompt';else choices[xT(0x208)]>0x4&&typeof choices[0x0]==='string'?Y=xT(0x27e):Y=xT(0x1cb);}else{if((n===null||n===void 0x0?void 0x0:n[xT(0x1be)])===xT(0x20c))Y=xT(0x20a);else{if((n===null||n===void 0x0?void 0x0:n['type'])===xT(0x25f))Y=xT(0x26f);else(n===null||n===void 0x0?void 0x0:n[xT(0x1be)])==='rawObject'&&(Y=xT(0x24a));}}let N=R!==![]?!_['isObject'](defaultValue)?defaultValue:JSON[xT(0x254)](defaultValue):_['isBoolean'](defaultValue)?defaultValue:'don\x27t\x20change';if(choices)N=N[xT(0x25a)]();_[xT(0x228)](this[xT(0x24c)],x['join']('.'))&&(N=this[xT(0x24c)][x[xT(0x27f)]('.')]);const C=choices&&R===![]?[xT(0x248),...choices]:choices,q=(n===null||n===void 0x0?void 0x0:n['type'])==='integer',f=Object[xT(0x21d)]({'type':Y,'name':'id','message':this[xT(0x1f0)](x,n),'choices':C,'default':N,'filter':this[xT(0x1e1)](Y,R),'validate':this[xT(0x1b4)](n,R,q)},w),M=(yield inquirer[xT(0x1b7)]([f]))['id'];if(M===xT(0x248)||M==='')return undefined;if(q)return parseInt(M,0xa);return M;});}[a8i(0x1f0)](x,n){const xH=a8i,R=(n===null||n===void 0x0?void 0x0:n[xH(0x1be)])!==xH(0x20c)?xH(0x1ad):xH(0x204);return this[xH(0x279)](x,R,n===null||n===void 0x0?void 0x0:n['description']);}[a8i(0x1ac)](){return __awaiter(this,void 0x0,void 0x0,function*(){const xe=a8n,x=n=>__awaiter(this,void 0x0,void 0x0,function*(){const xF=a8n;var R;const u=yield this[xF(0x210)][xF(0x1cb)][xF(0x1c2)]({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':n}}),V=u['data'][xF(0x1c2)]['map'](P=>P['id']);return{'elements':V,'nextCursor':(R=u[xF(0x1bb)])===null||R===void 0x0?void 0x0:R[xF(0x1c7)]};});return yield this[xe(0x1a4)](xe(0x1f7),x);});}[a8i(0x227)](x,n,R,u){return __awaiter(this,void 0x0,void 0x0,function*(){const xQ=a8n,V=R||this['apiClient']['contextProvider'][xQ(0x241)]();if(_[xQ(0x232)](V))throw new Error(xQ(0x256));const P=yield n(V);return yield this[xQ(0x21f)](x,P,(u?u+'\x20in\x20':'')+xQ(0x1db)+V+'\x27');});}[a8i(0x280)](x,n,R,u){return __awaiter(this,void 0x0,void 0x0,function*(){const xL=a8n,V=R||this[xL(0x210)][xL(0x1f6)][xL(0x241)]();if(_[xL(0x232)](V))throw new Error(xL(0x256));const P=yield n(V);return yield this[xL(0x1a4)](x,P,(u?u+xL(0x223):'')+xL(0x1db)+V+'\x27');});}[a8i(0x1c1)](){return __awaiter(this,void 0x0,void 0x0,function*(){const xG=a8n,x=n=>__awaiter(this,void 0x0,void 0x0,function*(){const xD=a8n;var R;const u=yield this[xD(0x210)]['list'][xD(0x1a8)]({'options':{'per_page':this[xD(0x21e)],'cursor':n}});return{'elements':u[xD(0x1e8)]['domains'][xD(0x1ee)](V=>V['name']),'nextCursor':(R=u[xD(0x1bb)])===null||R===void 0x0?void 0x0:R[xD(0x1c7)]};});return this['askForResourcePaginated'](xG(0x1c5),x);});}['askForCredentials'](){return __awaiter(this,void 0x0,void 0x0,function*(){const xo=a8n,x=n=>__awaiter(this,void 0x0,void 0x0,function*(){const xh=a8n;var R;const u=yield this[xh(0x210)][xh(0x1cb)][xh(0x216)]({'options':{'per_page':this[xh(0x21e)],'cursor':n}});return{'elements':u[xh(0x1e8)]['credentials'][xh(0x1ee)](V=>V['id']),'nextCursor':(R=u[xh(0x1bb)])===null||R===void 0x0?void 0x0:R['cursor']};});return this[xo(0x1a4)](xo(0x1ba),x);});}['setPathVars'](x){this['pathVars']=x;}}function a8n(x,n){const R=a8x();return a8n=function(u,V){u=u-0x1a2;let P=R[u];return P;},a8n(x,n);}exports['InquirerHelper']=InquirerHelper;
1
+ 'use strict';function a8w(){const wb=['builds','askForSubdomain','__esModule','askForTag','main-context','data','\x20(startedAt:\x20','red','tokenPrompt','propToType','editPayload','Template\x20id\x20not\x20provided.','throw','array','askForJobRun','getOwnPropertyDescriptor','integer','credentials','494918ZspSek','join','__awaiter','writable','length','default','\x20characters,\x20is\x20','chalk','fileName','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','inquirer-search-list','Yes,\x20send','Configuration\x20file\x20written\x20to\x20','retrievePayloadViaInteractiveCli','job\x20builds','assign','retry','pathVars','toUpperCase','toString','confirmationPrompt','inquirer','1233117IfgsZA','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','defaultPaginationPageSize','YES','subdomains','Writing\x20configuration\x20failed:\x20','No,\x20repeat','bold','js-yaml','askForTemplateRun','warning','./pagination/inquirer-pagination-prompt','apiClient','choice','name','templates','includes','pipelines','askForCredentials','askConfirm','restore','slice','concat','getCurrentProjectName','askForAddonBackup','askForDomain','values','yaml','backups','__importStar','cmdPath','boolean','1227666CFGusc','set','keys','defineProperty','askGeneric','askForResource','done','pagination-prompt','reset','Choose\x20the\x20login\x20token:','askForProjectScopedResourcePaginated','1071628ufrhor','all-job-runs','editedResult','InquirerHelper','split','pattern','greenBright','job:\x20\x27','askForLogSink','get','type','rawObject','askForSubdomainPath','tag','service\x20containers','volumes','filter','hasOwnProperty','token','string','project:\x20\x27','max','volume','No,\x20edit','minimum','find','addon:\x20\x27','jobs','override','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','\x20(completedAt:\x20','getQuestionString','domain\x20(','job\x20containers','Enter\x20the\x20','registerPrompt','anyOf','maximum','services','map','\x20(full\x20domain:\x20','askForProjectScopedResource','askForBuild','don\x27t\x20change','domains','addons','description','domain','minLength','green','doesn\x27t\x20match\x20pattern\x20\x27','confirm','fetchResourceList','properties','7pbosbf','Do\x20you\x20want\x20to\x20add\x20more','\x20in\x20','configurable','What\x27s\x20the\x20','charAt','REPEAT','1306484BWiQHs','getInnerType','isValidJSON','secrets','input','ask','__createBinding','pop','isUndefined','blue','body','oneOf','whiteBright','yml','apply','stringify','repeat','example','logSinks','pagination','push','isBoolean','containers','saveFile','json','safeDump','\x20and\x20it\x20','addon','message','lodash','contextProvider','templateRuns','tmpCmdPath','2057820zDAQCV','call','trim','askForResourcePaginated','What\x20do\x20you\x20want\x20to\x20use\x20as','password','prompt','Please\x20confirm\x20following\x20configuration:\x0a','ABORT','DynamicReloadPaginationPrompt','service:\x20\x27','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','SAVE','service','askForSecret','__importDefault','for\x20this\x20','EDIT','Choose\x20the\x20','subdomain','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','value','\x20to\x20use:','askForContainer','prototype','No,\x20abort','projects','runs',',\x20supported\x20types:\x20[json|yaml|yml]','resultCache','uri','isEmpty','\x20characters','confirmation','yellowBright','template\x20run','object','getPathString','tags','to\x20use:','unshift','path','validate','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','has','list','addEntry','836880OiGaKX','skipValidation','No\x20','blueBright','all-containers','64moxiRT','writeFileSync','cursor','No,\x20but\x20save\x20as\x20file','nextCursor','job\x20runs','Aborted.','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','Go\x20to\x20editor','Context\x20with\x20name\x20\x27','No\x20builds\x20found','underline','success','maxLength','getType','template','Should\x20it\x20be','Do\x20you\x20want\x20to\x20add','isArray','Context\x20name\x20already\x20exists.','restores','__setModuleDefault','editor','project','askForProject','test','not\x20completed','job','search-list','found','then','askArrayEntry','./api-helpers','createdAt','\x20type?'];a8w=function(){return wb;};return a8w();}const a8k=a8o;(function(w,o){const m=a8o,C=w();while(!![]){try{const R=-parseInt(m(0xc9))/0x1+-parseInt(m(0x147))/0x2+parseInt(m(0xff))/0x3+-parseInt(m(0x10a))/0x4+parseInt(m(0x168))/0x5+parseInt(m(0x197))/0x6*(-parseInt(m(0x140))/0x7)+parseInt(m(0x19c))/0x8*(parseInt(m(0xdf))/0x9);if(R===o)break;else C['push'](C['shift']());}catch(M){C['push'](C['shift']());}}}(a8w,0x5837f));var __createBinding=this&&this[a8k(0x14d)]||(Object['create']?function(w,C,R,M){const K=a8k;if(M===undefined)M=R;var I=Object[K(0xc6)](C,R);(!I||('get'in I?!C[K(0xb9)]:I[K(0xcc)]||I[K(0x143)]))&&(I={'enumerable':!![],'get':function(){return C[R];}}),Object[K(0x102)](w,M,I);}:function(w,C,R,M){if(M===undefined)M=R;w[M]=C[R];}),__setModuleDefault=this&&this[a8k(0xa9)]||(Object['create']?function(w,C){const n=a8k;Object[n(0x102)](w,'default',{'enumerable':!![],'value':C});}:function(w,C){const W=a8k;w[W(0xce)]=C;}),__importStar=this&&this[a8k(0xfc)]||function(w){const O=a8k;if(w&&w[O(0xb9)])return w;var o={};if(w!=null){for(var C in w)if(C!=='default'&&Object[O(0x180)][O(0x11b)][O(0x169)](w,C))__createBinding(o,w,C);}return __setModuleDefault(o,w),o;},__awaiter=this&&this[a8k(0xcb)]||function(w,o,C,R){function M(I){return I instanceof C?I:new C(function(l){l(I);});}return new(C||(C=Promise))(function(I,l){const x=a8o;function a(F){try{e(R['next'](F));}catch(Q){l(Q);}}function H(F){const r=a8o;try{e(R[r(0xc3)](F));}catch(Q){l(Q);}}function e(F){const A=a8o;F[A(0x105)]?I(F[A(0x17d)]):M(F[A(0x17d)])[A(0xb2)](a,H);}e((R=R[x(0x155)](w,o||[]))['next']());});},__importDefault=this&&this[a8k(0x177)]||function(w){const D=a8k;return w&&w[D(0xb9)]?w:{'default':w};};Object[a8k(0x102)](exports,'__esModule',{'value':!![]}),exports[a8k(0x10d)]=void 0x0;const _=__importStar(require(a8k(0x164))),chalk_1=__importDefault(require(a8k(0xd0))),fs=__importStar(require('fs')),utils_1=require('./utils'),api_helpers_1=require(a8k(0xb4)),inquirer_pagination_prompt_1=require(a8k(0xea)),inquirer=require(a8k(0xde)),inquirerSearchList=require(a8k(0xd3)),yaml=require(a8k(0xe7));function a8o(w,o){const C=a8w();return a8o=function(R,M){R=R-0x9a;let I=C[R];return I;},a8o(w,o);}var ConfirmChoices;(function(w){const t=a8k;w['YES']=t(0xd4),w[t(0x146)]=t(0xe5),w[t(0x179)]=t(0x121),w[t(0x174)]=t(0x19f),w['ABORT']=t(0x181);}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(w){const g=a8k;this[g(0xeb)]=w,this[g(0xe1)]=0x32,this['editPayload']=o=>__awaiter(this,void 0x0,void 0x0,function*(){const h=g,{editedResult:C}=yield inquirer['prompt']([{'type':h(0xaa),'name':h(0x10c),'message':h(0x9c),'default':yaml[h(0x160)](o)}]);return yaml['safeLoad'](C);}),this['saveFile']=o=>__awaiter(this,void 0x0,void 0x0,function*(){const N=g,C=l=>'Unexpected\x20file\x20type:\x20'+l+N(0x184);function R(){return __awaiter(this,void 0x0,void 0x0,function*(){const T=a8o;return inquirer[T(0x16e)]([{'type':'input','name':T(0xd1),'message':T(0x127),'validate':l=>new RegExp('.*\x5c.(json|yaml|yml)$')[T(0xad)](l)?!![]:C(l)}]);});}const {fileName:M}=yield R(),I=M[N(0xdc)]()[N(0x10e)]('.')[N(0x14e)]();try{switch(I){case N(0x15f):(0x0,utils_1[N(0xa0)])(N(0xd5)+M);return fs[N(0x19d)](M,JSON['stringify'](o,null,'\x20\x20'));case N(0xfa):case N(0x154):(0x0,utils_1['success'])(N(0xd5)+M);return fs[N(0x19d)](M,yaml['safeDump'](o));default:(0x0,utils_1['warning'])(C(I));}}catch(l){(0x0,utils_1[N(0xe9)])(N(0xe4)+l[N(0x163)]);}return undefined;}),this[g(0x11a)]=(o,C)=>R=>{const s=g,M=typeof R===s(0x11d)?R[s(0x16a)]():R;return C===![]&&M==='don\x27t\x20change'?'':M;},this['validate']=(o,C,R)=>M=>{const d=g;if(this[d(0x198)]===!![])return!![];const I=[];if(M===''||M===d(0x135)){if(C!==![])I[d(0x15b)]('this\x20option\x20is\x20required,\x20please\x20answer');else return!![];}o[d(0x114)]===d(0x11d)&&!_[d(0x14f)](o[d(0x10f)])&&I[d(0x15b)](new RegExp(o[d(0x10f)])[d(0xad)](M)?!![]:d(0x13c)+o[d(0x10f)]+'\x27');o[d(0x114)]===d(0x11d)&&!_[d(0x14f)](o[d(0x13a)])&&I[d(0x15b)](M[d(0xcd)]>=o[d(0x13a)]?!![]:d(0x9b)+o['minLength']+'\x20characters,\x20is\x20'+M[d(0xcd)]+d(0x188));o[d(0x114)]===d(0x11d)&&!_[d(0x14f)](o['maxLength'])&&I['push'](M[d(0xcd)]<=o[d(0xa1)]?!![]:d(0xd2)+o['maxLength']+d(0xcf)+M[d(0xcd)]+'\x20characters');R&&Number['isNaN'](parseInt(M,0xa))&&I['push']('must\x20be\x20a\x20number,\x20is\x20'+M);o[d(0x114)]==='integer'&&!_[d(0x14f)](o[d(0x122)])&&I['push'](M>=o[d(0x122)]?!![]:'must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20'+o[d(0x122)]);o['type']==='integer'&&!_[d(0x14f)](o[d(0x12f)])&&I[d(0x15b)](M<=o['maximum']?!![]:'must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20'+o[d(0x12f)]);if(o[d(0x114)]===d(0x115)){const H=(0x0,utils_1[d(0x149)])(M);I[d(0x15b)](H===![]||_[d(0x187)](H)?d(0x173):!![]);}const l=I[d(0x11a)](F=>F!==!![]),a=(o===null||o===void 0x0?void 0x0:o[d(0x158)])?'\x0a'+chalk_1['default'][d(0xbe)]('>>')+'\x20Example:\x20'+chalk_1[d(0xce)][d(0x153)](JSON[d(0x156)](o['example'])):'';return l[d(0xcd)]>0x0?l[d(0xca)](chalk_1[d(0xce)][d(0x9f)](d(0x161)))+a:!![];},this[g(0x18d)]=(o,C,R)=>{const p=g,M=o[o[p(0xcd)]-0x1];function I(){const E=p;return o[E(0xf4)](0x0,-0x1)[E(0x131)](H=>H[E(0x145)](0x0)[E(0xdb)]()+H['slice'](0x1))[E(0xca)]('>');}const l=o['length']>0x1?chalk_1[p(0xce)]['bgGrey'][p(0x153)](I())+':\x20':'',a=R?'\x20('+chalk_1[p(0xce)][p(0x150)](R)+')':'';return chalk_1['default'][p(0x107)](''+l+C+'\x20'+chalk_1['default'][p(0xe6)][p(0x110)](M)+a+'?');},this['askForResource']=(o,C,R)=>__awaiter(this,void 0x0,void 0x0,function*(){const j=g;if(C['length']<0x1){const l=R?j(0x178)+R:j(0xb1);throw new Error(j(0x199)+o+'\x20'+l+'.');}const M=j(0x17a)+o+'\x20to\x20use:',I=C[j(0xcd)]>0x4?j(0xb0):j(0x195);return(yield inquirer[j(0x16e)]([{'type':I,'name':j(0xed),'message':M,'choices':C}]))['name'];}),this[g(0x16b)]=(o,C,R)=>__awaiter(this,void 0x0,void 0x0,function*(){const X=g,{elements:M,nextCursor:I}=yield C();if(M[X(0xcd)]<0x1){const H=R?'for\x20this\x20'+R:X(0xb1);throw new Error(X(0x199)+o+'\x20'+H+'.');}const l='Choose\x20the\x20'+o+X(0x17e);if(I!==undefined){const e=({nextPageCursor:F})=>__awaiter(this,void 0x0,void 0x0,function*(){const b=X,Q=yield C(F);return{'elements':Q['elements'],'nextPageCursor':Q[b(0x1a0)]};});return(yield inquirer[X(0x16e)]([{'type':'pagination-prompt','name':X(0xed),'message':l,'choices':M,'nextPageCursor':I,'loadMore':e}]))[X(0xed)];}const a=M[X(0xcd)]>0x4?'search-list':X(0x195);return(yield inquirer[X(0x16e)]([{'type':a,'name':'name','message':l,'choices':M}]))['name'];}),this[g(0x103)]=(o,C)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const u=g,R=''+(C?'('+chalk_1[u(0xce)][u(0x150)](C)+')\x20':''),M=u(0x12c)+chalk_1[u(0xce)][u(0x13b)](o)+'\x20'+R+u(0x18f),I=this[u(0x192)]({'type':u(0x11d),'required':!![]});return(yield inquirer['prompt']([{'type':u(0x14b),'name':u(0xed),'message':M,'validate':I}]))[u(0xed)];}),this[g(0xf2)]=o=>__awaiter(this,void 0x0,void 0x0,function*(){const S=g;return(yield inquirer[S(0x16e)]([{'type':S(0x13d),'name':S(0xed),'message':o,'default':!![]}]))[S(0xed)];}),this['askForService']=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const f=g,C=R=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const V=a8o;var I;const l=yield this[V(0xeb)][V(0x195)][V(0x130)]({'parameters':{'projectId':R},'options':{'per_page':this[V(0xe1)],'cursor':M}}),a=l[V(0xbc)][V(0x130)][V(0x131)](H=>H['id']);return{'elements':a,'nextCursor':(I=l[V(0x15a)])===null||I===void 0x0?void 0x0:I[V(0x19e)]};});return this[f(0x109)](f(0x175),C,o);}),this['askForTemplate']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const G=g,o=C=>__awaiter(this,void 0x0,void 0x0,function*(){const Z=a8o;var R;const M=yield this[Z(0xeb)][Z(0x195)]['templates']({'options':{'per_page':this[Z(0xe1)],'cursor':C}}),I=M[Z(0xbc)][Z(0xee)][Z(0x131)](l=>l['id']);return{'elements':I,'nextCursor':(R=M[Z(0x15a)])===null||R===void 0x0?void 0x0:R[Z(0x19e)]};});return this['askForResourcePaginated'](G(0xa3),o);}),this[g(0xba)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const v=g,o=C=>__awaiter(this,void 0x0,void 0x0,function*(){const U=a8o;var R,M,I;const l=yield this[U(0xeb)][U(0x195)][U(0x18e)]({'options':{'per_page':this[U(0xe1)],'cursor':C}}),a=(M=(R=l[U(0xbc)][U(0x18e)])===null||R===void 0x0?void 0x0:R[U(0x131)](H=>H['id']))!==null&&M!==void 0x0?M:[];return{'elements':a,'nextCursor':(I=l[U(0x15a)])===null||I===void 0x0?void 0x0:I[U(0x19e)]};});return this[v(0x16b)](v(0x117),o);}),this[g(0xe8)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const y=g;if(_[y(0x14f)](o))throw new Error(y(0xc2));const C=R=>__awaiter(this,void 0x0,void 0x0,function*(){const P=y;var M;let I=this[P(0xe1)];const l=yield this['apiClient']['list']['templateRuns']({'parameters':{'templateId':o},'options':{'per_page':I,'cursor':R}}),a=l[P(0xbc)][P(0x166)][P(0x131)](H=>H['id']+'\x20(startedAt:\x20'+H[P(0xb5)]+')');return{'elements':a,'nextCursor':(M=l['pagination'])===null||M===void 0x0?void 0x0:M[P(0x19e)]};});return this[y(0x16b)](y(0x18b),C)[y(0xb2)](R=>R[y(0x10e)]('\x20')[0x0]);}),this[g(0x112)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=g,o=C=>__awaiter(this,void 0x0,void 0x0,function*(){const B=a8o;var R;let M=this[B(0xe1)];const I=yield this[B(0xeb)]['list'][B(0x159)]({'options':{'per_page':M,'cursor':C}}),l=I[B(0xbc)][B(0x159)]['map'](a=>a['id']);return{'elements':l,'nextCursor':(R=I['pagination'])===null||R===void 0x0?void 0x0:R[B(0x19e)]};});return this[J(0x16b)]('log\x20sink',o);}),this['askForPipeline']=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w0=g,C=R=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=a8o;var I;const l=yield this[Y(0xeb)][Y(0x195)][Y(0xf0)]({'parameters':{'projectId':R},'options':{'per_page':this[Y(0xe1)],'cursor':M}}),a=l[Y(0xbc)]['pipelines'][Y(0x131)](H=>H['id']);return{'elements':a,'nextCursor':(I=l[Y(0x15a)])===null||I===void 0x0?void 0x0:I['cursor']};});return this[w0(0x109)]('pipeline',C,o);}),this['askForJob']=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w2=g,C=R=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const w1=a8o;var I;const l=yield this[w1(0xeb)][w1(0x195)][w1(0x125)]({'parameters':{'projectId':R},'options':{'per_page':this[w1(0xe1)],'cursor':M}}),a=l[w1(0xbc)][w1(0x125)]['map'](H=>H['id']);return{'elements':a,'nextCursor':(I=l[w1(0x15a)])===null||I===void 0x0?void 0x0:I['cursor']};});return this['askForProjectScopedResourcePaginated'](w2(0xaf),C,o);}),this[g(0xc5)]=(o,C,R=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w3=g,M=w3(0x10b),I=l=>a=>__awaiter(this,void 0x0,void 0x0,function*(){const w4=w3;var H;const e=yield this[w4(0xeb)]['get'][w4(0xaf)][w4(0x183)]({'parameters':{'projectId':l,'jobId':o},'options':{'per_page':this[w4(0xe1)],'cursor':a}}),F=e['data'][w4(0x183)][w4(0x131)](Q=>Q['id']+w4(0xbd)+Q['startedAt']+')');return R&&F[w4(0x190)](M),{'elements':F,'nextCursor':(H=e[w4(0x15a)])===null||H===void 0x0?void 0x0:H[w4(0x19e)]};});return this[w3(0x109)](w3(0x1a1),I,C,w3(0x111)+o+'\x27')[w3(0xb2)](l=>{const w5=w3,a=l[w5(0x10e)]('\x20')[0x0];if(a===M)return undefined;return a;});}),this[g(0x134)]=(o,C,R,M=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w7=g,I='all-builds';if(R!==undefined){const l=a=>H=>__awaiter(this,void 0x0,void 0x0,function*(){const w6=a8o;var e;const F=yield this['apiClient'][w6(0x113)][w6(0xaf)][w6(0xb7)]({'parameters':{'projectId':a,'jobId':R},'options':{'per_page':this[w6(0xe1)],'cursor':H}}),Q=F[w6(0xbc)][w6(0xb7)][w6(0x131)](L=>L['id']+w6(0xbd)+L['createdAt']+')');return M&&Q[w6(0x190)](I),{'elements':Q,'nextCursor':(e=F[w6(0x15a)])===null||e===void 0x0?void 0x0:e[w6(0x19e)]};});return this[w7(0x109)](w7(0xd7),l,o,'job:\x20\x27'+R+'\x27')['then'](a=>{const w8=w7,H=a[w8(0x10e)]('\x20')[0x0];if(H===I)return undefined;return H;});}if(C!==undefined){const a=H=>e=>__awaiter(this,void 0x0,void 0x0,function*(){const w9=w7;var F;const Q=yield this[w9(0xeb)][w9(0x113)]['service'][w9(0xb7)]({'parameters':{'projectId':H,'serviceId':C},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':e}}),L=Q[w9(0xbc)][w9(0xb7)][w9(0x131)](z=>z['id']+w9(0xbd)+z['createdAt']+')');if(M)L[w9(0x190)](I);return{'elements':L,'nextCursor':(F=Q[w9(0x15a)])===null||F===void 0x0?void 0x0:F['cursor']};});return this['askForProjectScopedResourcePaginated']('service\x20build',a,o,w7(0x172)+R+'\x27')[w7(0xb2)](H=>{const e=H['split']('\x20')[0x0];if(e===I)return undefined;return e;});}throw new Error(w7(0x9e));}),this[g(0x17f)]=(o,C,R,M=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ww=g,I=ww(0x19b);if(R!==undefined){const l=a=>H=>__awaiter(this,void 0x0,void 0x0,function*(){const wo=ww;var e,F;const Q=yield this['apiClient'][wo(0x113)]['job'][wo(0x15d)]({'parameters':{'projectId':a,'jobId':R},'options':{'per_page':this[wo(0xe1)],'cursor':H}}),L=(e=Q[wo(0xbc)][wo(0x15d)])!==null&&e!==void 0x0?e:[],z=L===null||L===void 0x0?void 0x0:L[wo(0x131)](i=>i[wo(0xed)]+wo(0xbd)+i[wo(0xb5)]+')');return M&&z['unshift'](I),{'elements':z,'nextCursor':(F=Q[wo(0x15a)])===null||F===void 0x0?void 0x0:F['cursor']};});return this['askForProjectScopedResourcePaginated'](ww(0x12b),l,o,ww(0x111)+R+'\x27')[ww(0xb2)](a=>{const wC=ww,H=a[wC(0x10e)]('\x20')[0x0];if(H===I)return undefined;return H;});}if(C!==undefined){const a=H=>e=>__awaiter(this,void 0x0,void 0x0,function*(){const wR=ww;var F,Q;const L=yield this['apiClient'][wR(0x113)][wR(0x175)]['containers']({'parameters':{'projectId':H,'serviceId':C},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':e}}),z=(F=L[wR(0xbc)]['containers'])!==null&&F!==void 0x0?F:[],i=z['map'](q=>q[wR(0xed)]+wR(0xbd)+q[wR(0xb5)]+')');if(M)i===null||i===void 0x0?void 0x0:i['unshift'](I);return{'elements':i,'nextCursor':(Q=L['pagination'])===null||Q===void 0x0?void 0x0:Q[wR(0x19e)]};});return this['askForProjectScopedResourcePaginated'](ww(0x118),a,o,ww(0x172)+R+'\x27')[ww(0xb2)](H=>{const wM=ww,e=H[wM(0x10e)]('\x20')[0x0];if(e===I)return undefined;return e;});}throw new Error('No\x20containers\x20found');}),this['askForAddon']=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wl=g,C=R=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const wI=a8o;var I;const l=yield this[wI(0xeb)][wI(0x195)][wI(0x137)]({'parameters':{'projectId':R},'options':{'per_page':this[wI(0xe1)],'cursor':M}});return{'elements':l[wI(0xbc)][wI(0x137)]['map'](a=>a['id']),'nextCursor':(I=l[wI(0x15a)])===null||I===void 0x0?void 0x0:I['cursor']};});return this[wl(0x109)]('addon',C,o);}),this[g(0xf7)]=(o,C)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wH=g,R=M=>I=>__awaiter(this,void 0x0,void 0x0,function*(){const wa=a8o;var l;const a=yield this[wa(0xeb)][wa(0x113)]['addon']['backups']({'parameters':{'projectId':M,'addonId':C},'options':{'per_page':this[wa(0xe1)],'cursor':I}});return{'elements':a[wa(0xbc)][wa(0xfb)]['map'](H=>H['id']+'\x20(completedAt:\x20'+(H['completedAt']||wa(0xae))+')'),'nextCursor':(l=a[wa(0x15a)])===null||l===void 0x0?void 0x0:l[wa(0x19e)]};});return this[wH(0x109)]('backups',R,o,wH(0x124)+C+'\x27')[wH(0xb2)](M=>M[wH(0x10e)]('\x20')[0x0]);}),this['askForAddonRestore']=(o,C,R)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wF=g,M=I=>l=>__awaiter(this,void 0x0,void 0x0,function*(){const we=a8o;var a;const H=yield this['apiClient'][we(0x113)][we(0x162)][we(0xa8)]({'parameters':{'projectId':I,'addonId':C,'backupId':R},'options':{'per_page':this[we(0xe1)],'cursor':l}});return{'elements':H[we(0xbc)][we(0xa8)][we(0x131)](e=>e['id']+we(0x128)+(e['completedAt']||we(0xae))+')'),'nextCursor':(a=H[we(0x15a)])===null||a===void 0x0?void 0x0:a[we(0x19e)]};});return this[wF(0x109)](wF(0xf3),M,o,'addon:\x20\x27'+C+'\x27')[wF(0xb2)](I=>I['split']('\x20')[0x0]);}),this['askForVolume']=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wL=g,C=R=>__awaiter(this,void 0x0,void 0x0,function*(){const wQ=a8o;return(yield this['apiClient'][wQ(0x195)][wQ(0x119)]({'parameters':{'projectId':R}}))[wQ(0xbc)][wQ(0x131)](M=>M['id']);});return this[wL(0x133)](wL(0x120),C,o);}),this[g(0x176)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const C=R=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const wz=a8o;var I;const l=yield this[wz(0xeb)][wz(0x195)][wz(0x14a)]({'parameters':{'projectId':R},'options':{'per_page':this[wz(0xe1)],'cursor':M}});return{'elements':l['data'][wz(0x14a)][wz(0x131)](a=>a['id']),'nextCursor':(I=l['pagination'])===null||I===void 0x0?void 0x0:I[wz(0x19e)]};});return this['askForProjectScopedResourcePaginated']('secret',C,o);}),this[g(0xb8)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wi=g,C=yield this[wi(0xeb)][wi(0x113)][wi(0x139)]({'parameters':{'domain':o}}),R=C[wi(0xbc)][wi(0xe3)][wi(0x131)](I=>I[wi(0xed)]+wi(0x132)+I['fullName']+')'),M='domain\x20('+o+')';return this['askForResource']('subdomain',R,M)[wi(0xb2)](I=>I[wi(0x10e)]('\x20')[0x0]);}),this[g(0x116)]=(o,C)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wq=g,R=yield this['apiClient'][wq(0x195)][wq(0x17b)][wq(0x191)]({'parameters':{'domain':o,'subdomain':C}}),M=R[wq(0xbc)]['paths']['map'](l=>''+l[wq(0x186)]),I=wq(0x12a)+o+'),\x20subdomain\x20('+C+')';return this[wq(0x104)]('subdomainPath',M,I);}),this['deleteWarningPrompt']=o=>__awaiter(this,void 0x0,void 0x0,function*(){const wm=g;return(yield inquirer['prompt']([{'type':'confirm','name':'confirmation','message':chalk_1[wm(0xce)][wm(0x18a)](wm(0xe0)+(o||'a\x20Northflank\x20resource')+'.\x20This\x20is\x20irreversible.\x20Please\x20confirm!'),'default':![]}]))[wm(0x189)];}),this['loginPrompt']=(o,C)=>__awaiter(this,void 0x0,void 0x0,function*(){const wk=g;_['isUndefined'](o[wk(0xed)])&&(C[wk(0xcd)]<=0x0?_[wk(0x100)](o,wk(0xed),'default'):yield(0x0,utils_1[wk(0xd9)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const wK=wk,{name:R}=yield inquirer[wK(0x16e)]([{'type':wK(0x14b),'name':wK(0xed),'message':wK(0x193),'default':wK(0xbb)}]);if(!o[wK(0x126)]&&C[wK(0x123)](M=>M['name']===R)){const {c:M}=yield inquirer[wK(0x16e)]([{'type':wK(0x13d),'name':'c','message':wK(0x9d)+R+'\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','default':![]}]);if(M===![])throw new Error(wK(0xa7));_[wK(0x100)](o,wK(0x126),!![]);}_[wK(0x100)](o,wK(0xed),R);})));if(_[wk(0x14f)](o[wk(0x11c)])){const R=yield this[wk(0xbf)]();_[wk(0x100)](o,'token',R);}return o;}),this['tokenPrompt']=()=>__awaiter(this,void 0x0,void 0x0,function*(){const wn=g,{token:o}=yield inquirer['prompt']([{'type':wn(0x16d),'name':wn(0x11c),'mask':'*','message':wn(0x108)}]);return o;}),inquirer[g(0x12d)]('search-list',inquirerSearchList),inquirer[g(0x12d)](g(0x106),inquirer_pagination_prompt_1[g(0x171)]);}[a8k(0xdd)](w,o){return __awaiter(this,void 0x0,void 0x0,function*(){const wW=a8o,C=yaml[wW(0x160)](w),R=_[wW(0x11f)](C['split']('\x0a')['map'](a=>a[wW(0xcd)])),M=chalk_1['default']['grey']('-'[wW(0x157)](R)+'\x0a'),{confirm:I}=yield inquirer[wW(0x16e)]([{'type':wW(0x195),'name':wW(0x13d),'message':''+chalk_1[wW(0xce)]['bold'][wW(0x13b)](wW(0x16f))+M+chalk_1[wW(0xce)][wW(0x19a)](C)+M,'choices':Object[wW(0xf9)](ConfirmChoices)}]);switch(I){case ConfirmChoices[wW(0xe2)]:return w;case ConfirmChoices[wW(0x170)]:throw new Error(wW(0x9a));case ConfirmChoices['REPEAT']:return this['retrievePayloadViaInteractiveCli'](o);case ConfirmChoices[wW(0x179)]:return this['confirmationPrompt'](yield this[wW(0xc1)](w),o);case ConfirmChoices['SAVE']:yield this[wW(0x15e)](w);return this[wW(0xdd)](w,o);default:throw new Error('Something\x20unexpected\x20happened.');}});}[a8k(0xd6)](w,o){return __awaiter(this,void 0x0,void 0x0,function*(){const wO=a8o;if((o===null||o===void 0x0?void 0x0:o[wO(0x185)])!==undefined)this[wO(0x185)]=o===null||o===void 0x0?void 0x0:o[wO(0x185)];this[wO(0x167)]=o===null||o===void 0x0?void 0x0:o[wO(0xfd)],this[wO(0x198)]=o===null||o===void 0x0?void 0x0:o[wO(0x198)];const C={};return yield this[wO(0xc0)]([],w['opt'][wO(0x151)],C),this[wO(0x185)]=C,yield this[wO(0xdd)](C,w);});}[a8k(0xc0)](w,o,C,R){return __awaiter(this,void 0x0,void 0x0,function*(){const wr=a8o;let M;if(o[wr(0x152)]&&!_[wr(0x194)](o,wr(0x13f))){if(o[wr(0x152)][wr(0xcd)]>0x1){const {choice:I}=yield inquirer['prompt']([{'type':wr(0x195),'name':wr(0xec),'message':wr(0x144)+(w[w[wr(0xcd)]-0x1]||'')+wr(0xb6),'choices':o[wr(0x152)]['map'](l=>{const wc=wr;var a;return(a=l[wc(0x138)])!==null&&a!==void 0x0?a:'??';})}]);M=yield this['getType'](w,o[wr(0x152)][wr(0x123)](l=>l[wr(0x138)]===I),C,R);}else{const l=o[wr(0x152)][0x0];_[wr(0x100)](l,wr(0x138),o[wr(0x138)]),M=yield this[wr(0xa2)](w,l,C,R);}M={};}else{if(o[wr(0x12e)]&&!_['has'](o,'properties')){if(o[wr(0x12e)][wr(0xcd)]>0x1){const {choice:a}=yield inquirer[wr(0x16e)]([{'type':wr(0x195),'name':wr(0xec),'message':wr(0x144)+(w[w['length']-0x1]||'')+wr(0xb6),'choices':[...o['anyOf'][wr(0x131)](H=>{const wA=wr;var e;return(e=H[wA(0x138)])!==null&&e!==void 0x0?e:'??';}),'don\x27t\x20change']}]);a!=='don\x27t\x20change'&&(M=yield this[wr(0xa2)](w,o[wr(0x12e)]['find'](H=>H[wr(0x138)]===a),C,R));}else{const H=o[wr(0x12e)][0x0];_['set'](H,'description',o['description']),M=yield this[wr(0xa2)](w,H,C,R);}M={};}else M=yield this[wr(0xa2)](w,o,C,R);}return M;});}[a8k(0x148)](w,o,C,R){var M;return __awaiter(this,void 0x0,void 0x0,function*(){const wx=a8o;if(R===![]){const {addEntry:a}=yield inquirer[wx(0x16e)]([{'type':wx(0x13d),'name':wx(0x196),'message':this[wx(0x18d)](o,wx(0xa5),w===null||w===void 0x0?void 0x0:w[wx(0x138)]),'default':![]}]);if(!a)return C;}const I=Object[wx(0x101)]((M=w===null||w===void 0x0?void 0x0:w[wx(0x13f)])!==null&&M!==void 0x0?M:[]),l=w['required']||[];if(I['length']>0x0)for(const H of I){const e=o[wx(0xf5)](H);if(o[wx(0xcd)]>0x0&&!_[wx(0x194)](C,o[wx(0xca)]('.')))_[wx(0x100)](C,o[wx(0xca)]('.'),{});yield this[wx(0xc0)](e,w[wx(0x13f)][H],C,l[wx(0xef)](H));}else yield this[wx(0xa2)](o,Object[wx(0xd8)](Object['assign']({},w),{'type':wx(0x115)}),C,R);return C;});}[a8k(0xb3)](w,o,C,R){return __awaiter(this,void 0x0,void 0x0,function*(){const wD=a8o;if(o&&C)return!![];const M=o?'Do\x20you\x20want\x20to\x20add':wD(0x141),{addEntry:I}=yield inquirer[wD(0x16e)]([{'type':wD(0x13d),'name':wD(0x196),'message':this[wD(0x18d)](w,M,o?R:undefined),'default':![]}]);return I;});}[a8k(0xa2)](w,o,C,R){return __awaiter(this,void 0x0,void 0x0,function*(){const wt=a8o;let M;const I=w[wt(0xca)]('.');switch(o===null||o===void 0x0?void 0x0:o[wt(0x114)]){case wt(0xc4):{let l=!![];while(yield this['askArrayEntry'](w,l,R,o===null||o===void 0x0?void 0x0:o[wt(0x138)])){const a=_[wt(0x113)](C,I);_['unset'](C,I),yield this[wt(0xa2)](w,o['items'],C);const H=_[wt(0x113)](C,I);!_[wt(0xa6)](a)?_[wt(0x100)](C,I,[H]):(a[wt(0x15b)](H),_[wt(0x100)](C,I,a)),l=![];}return M||[];}case wt(0x18c):{return M=yield this['getInnerType'](o,w,C,R),M;}case'rawObject':M=(0x0,utils_1[wt(0x149)])(yield this['ask'](w,o,R))||undefined;break;case wt(0x11d):case wt(0xfe):case wt(0xc7):default:M=yield this[wt(0x14c)](w,o,R,C);break;}return!_['isUndefined'](M)&&_[wt(0x100)](C,I,M),M;});}[a8k(0x14c)](w,o,C,R){var M;return __awaiter(this,void 0x0,void 0x0,function*(){const wg=a8o,I=w[w['length']-0x1],{defaultValue:defaultValue=(M=o===null||o===void 0x0?void 0x0:o['example'])!==null&&M!==void 0x0?M:o===null||o===void 0x0?void 0x0:o[wg(0xce)],choices:choices=o===null||o===void 0x0?void 0x0:o['enum'],pagination:l}=yield(0x0,api_helpers_1[wg(0x13e)])(I,this['apiClient'],this[wg(0x167)],R,this[wg(0xda)],w);let a=wg(0x14b);if(!_[wg(0x14f)](choices)&&choices[wg(0xcd)]>0x0){if(l!==undefined&&l['nextPageCursor']!==undefined)a='pagination-prompt';else choices[wg(0xcd)]>0x4&&typeof choices[0x0]==='string'?a=wg(0xb0):a=wg(0x195);}else{if((o===null||o===void 0x0?void 0x0:o[wg(0x114)])===wg(0xfe))a=wg(0x13d);else{if((o===null||o===void 0x0?void 0x0:o[wg(0x114)])===wg(0xc7))a=wg(0x14b);else(o===null||o===void 0x0?void 0x0:o['type'])===wg(0x115)&&(a=wg(0xaa));}}let H=C!==![]?!_['isObject'](defaultValue)?defaultValue:JSON[wg(0x156)](defaultValue):_[wg(0x15c)](defaultValue)?defaultValue:wg(0x135);if(choices)H=H[wg(0xdc)]();_['has'](this[wg(0x185)],w[wg(0xca)]('.'))&&(H=this['resultCache'][w[wg(0xca)]('.')]);const e=choices&&C===![]?[wg(0x135),...choices]:choices,F=(o===null||o===void 0x0?void 0x0:o['type'])===wg(0xc7),Q=Object[wg(0xd8)]({'type':a,'name':'id','message':this['getQuestionString'](w,o),'choices':e,'default':H,'filter':this[wg(0x11a)](a,C),'validate':this[wg(0x192)](o,C,F)},l),L=(yield inquirer[wg(0x16e)]([Q]))['id'];if(L===wg(0x135)||L==='')return undefined;if(F)return parseInt(L,0xa);return L;});}[a8k(0x129)](w,o){const wh=a8k,C=(o===null||o===void 0x0?void 0x0:o[wh(0x114)])!==wh(0xfe)?wh(0x16c):wh(0xa4);return this['getPathString'](w,C,o===null||o===void 0x0?void 0x0:o[wh(0x138)]);}[a8k(0xac)](){return __awaiter(this,void 0x0,void 0x0,function*(){const wT=a8o,w=o=>__awaiter(this,void 0x0,void 0x0,function*(){const wN=a8o;var C;const R=yield this[wN(0xeb)][wN(0x195)][wN(0x182)]({'options':{'per_page':this[wN(0xe1)],'cursor':o}}),M=R[wN(0xbc)]['projects']['map'](I=>I['id']);return{'elements':M,'nextCursor':(C=R[wN(0x15a)])===null||C===void 0x0?void 0x0:C[wN(0x19e)]};});return yield this[wT(0x16b)](wT(0xab),w);});}['askForProjectScopedResource'](w,o,C,R){return __awaiter(this,void 0x0,void 0x0,function*(){const ws=a8o,M=C||this['apiClient'][ws(0x165)]['getCurrentProjectName']();if(_[ws(0x14f)](M))throw new Error(ws(0x17c));const I=yield o(M);return yield this[ws(0x104)](w,I,(R?R+ws(0x142):'')+ws(0x11e)+M+'\x27');});}[a8k(0x109)](w,o,C,R){return __awaiter(this,void 0x0,void 0x0,function*(){const wd=a8o,M=C||this['apiClient']['contextProvider'][wd(0xf6)]();if(_[wd(0x14f)](M))throw new Error(wd(0x17c));const I=yield o(M);return yield this[wd(0x16b)](w,I,(R?R+wd(0x142):'')+wd(0x11e)+M+'\x27');});}[a8k(0xf8)](){return __awaiter(this,void 0x0,void 0x0,function*(){const wE=a8o,w=o=>__awaiter(this,void 0x0,void 0x0,function*(){const wp=a8o;var C;const R=yield this[wp(0xeb)][wp(0x195)]['domains']({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':o}});return{'elements':R[wp(0xbc)][wp(0x136)][wp(0x131)](M=>M[wp(0xed)]),'nextCursor':(C=R[wp(0x15a)])===null||C===void 0x0?void 0x0:C['cursor']};});return this[wE(0x16b)](wE(0x139),w);});}[a8k(0xf1)](){return __awaiter(this,void 0x0,void 0x0,function*(){const wX=a8o,w=o=>__awaiter(this,void 0x0,void 0x0,function*(){const wj=a8o;var C;const R=yield this['apiClient'][wj(0x195)]['registryCredentials']({'options':{'per_page':this[wj(0xe1)],'cursor':o}});return{'elements':R[wj(0xbc)][wj(0xc8)][wj(0x131)](M=>M['id']),'nextCursor':(C=R['pagination'])===null||C===void 0x0?void 0x0:C[wj(0x19e)]};});return this[wX(0x16b)](wX(0xc8),w);});}['setPathVars'](w){this['pathVars']=w;}}exports[a8k(0x10d)]=InquirerHelper;
@@ -1 +1 @@
1
- 'use strict';const a9a=a9n;(function(x,n){const Z=a9n,R=x();while(!![]){try{const u=parseInt(Z(0xd5))/0x1*(-parseInt(Z(0xe5))/0x2)+parseInt(Z(0xf2))/0x3+parseInt(Z(0x106))/0x4+-parseInt(Z(0x111))/0x5*(parseInt(Z(0xfe))/0x6)+-parseInt(Z(0xe3))/0x7+parseInt(Z(0xe0))/0x8+parseInt(Z(0x10d))/0x9*(parseInt(Z(0xe4))/0xa);if(u===n)break;else R['push'](R['shift']());}catch(V){R['push'](R['shift']());}}}(a9x,0xea142));function a9x(){const l=['initPackage','exit','__esModule','6715XNVBAN','unable\x20to\x20parse\x20message:\x20','Unexpected\x20response,\x20api\x20token\x20missing','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','browser-opened','done','write','create','1366213MuRVav','end','toString','idle','prototype','error','writable','call','value','http:','replace','102304QBgzkK','defineProperty','login-failure','9625266EFSFuh','13350430rnnXvP','2CTQLfp','status','handleError','aborted','Login\x20process\x20stopped\x20before\x20completed','startLogin','stringify','next','get','then','SIGINT','Unexpected\x20response','duplex','5227902WNGGJe','message','apply','default','getOwnPropertyDescriptor','ws:','hasOwnProperty','type','login-success','open','configurable','finally','4326GlVqTX','success','__importStar','https:','error\x20happened\x20during\x20browser\x20login:\x20','parse','openBrowser','__importDefault','6311500EHhVJU','NorthflankApiBrowserLogin','__awaiter','__createBinding','init','/v1/cli-login','__setModuleDefault','9EyDmCm'];a9x=function(){return l;};return a9x();}var __createBinding=this&&this[a9a(0x109)]||(Object['create']?function(x,n,R,u){const E=a9a;if(u===undefined)u=R;var V=Object[E(0xf6)](n,R);(!V||(E(0xed)in V?!n[E(0x110)]:V[E(0xdb)]||V[E(0xfc)]))&&(V={'enumerable':!![],'get':function(){return n[R];}}),Object[E(0xe1)](x,u,V);}:function(x,n,R,u){if(u===undefined)u=R;x[u]=n[R];}),__setModuleDefault=this&&this[a9a(0x10c)]||(Object[a9a(0xd4)]?function(x,n){const z=a9a;Object[z(0xe1)](x,z(0xf5),{'enumerable':!![],'value':n});}:function(x,n){const T=a9a;x[T(0xf5)]=n;}),__importStar=this&&this[a9a(0x100)]||function(x){const H=a9a;if(x&&x[H(0x110)])return x;var n={};if(x!=null){for(var R in x)if(R!=='default'&&Object[H(0xd9)][H(0xf8)][H(0xdc)](x,R))__createBinding(n,x,R);}return __setModuleDefault(n,x),n;},__awaiter=this&&this[a9a(0x108)]||function(x,n,R,u){function V(w){return w instanceof R?w:new R(function(Y){Y(w);});}return new(R||(R=Promise))(function(w,Y){const Q=a9n;function N(f){const F=a9n;try{q(u[F(0xec)](f));}catch(M){Y(M);}}function C(f){try{q(u['throw'](f));}catch(M){Y(M);}}function q(f){const e=a9n;f[e(0xd2)]?w(f[e(0xdd)]):V(f[e(0xdd)])[e(0xee)](N,C);}q((u=u[Q(0xf4)](x,n||[]))[Q(0xec)]());});},__importDefault=this&&this[a9a(0x105)]||function(x){const L=a9a;return x&&x[L(0x110)]?x:{'default':x};};Object['defineProperty'](exports,a9a(0x110),{'value':!![]}),exports['NorthflankApiBrowserLogin']=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9a(0xfb))),events_1=require('events');function a9n(x,n){const R=a9x();return a9n=function(u,V){u=u-0xce;let P=R[u];return P;},a9n(x,n);}class NorthflankApiBrowserLogin extends events_1['EventEmitter']{constructor(x,n=!![]){const D=a9a;super(),this['baseUrl']=x,this['openBrowser']=n,this[D(0xe6)]=D(0xd8),this[D(0x10e)]=()=>JSON['stringify']({'type':D(0x10a)});}[a9a(0xea)](){const G=a9a;var x;const n=this['baseUrl'][G(0xdf)](G(0x101),'wss:')[G(0xdf)](G(0xde),G(0xf7)),R=n+G(0x10b),u=new ws_1[(G(0xf5))](R),V=()=>__awaiter(this,void 0x0,void 0x0,function*(){const o=G;yield new Promise(w=>{const h=a9n;var Y;(Y=this['duplex'])===null||Y===void 0x0?void 0x0:Y[h(0xd6)](JSON[h(0xeb)]({'type':h(0xe8)}),()=>w());}),process[o(0x10f)]();}),P=new Promise((w,Y)=>{const d=G;var N,C,q;try{this[d(0xf1)]=(0x0,ws_1['createWebSocketStream'])(u),process['on'](d(0xef),V);}catch(f){Y(new Error(d(0xd0)+f[d(0xf3)]));}(N=this[d(0xf1)])===null||N===void 0x0?void 0x0:N['on']('data',M=>{const c=d;var X;const S=JSON[c(0x103)](M[c(0xd7)]());switch(S===null||S===void 0x0?void 0x0:S[c(0xf9)]){case'init-ack':{const {loginPage:W}=S;if(W===undefined){this[c(0xe7)](c(0xf0),Y);return;}this[c(0x104)]&&(0x0,open_1[c(0xf5)])(W)['catch'](t=>{const v=c,i='Unable\x20to\x20open\x20browser:\x20'+t['message'];this[v(0xe7)](i,Y);});this['emit'](c(0xd1),{'url':W});break;}case c(0xfa):{const {apiToken:t,contextName:i}=S;if(t===undefined){this[c(0xe7)](c(0xcf),Y);return;}(X=this[c(0xf1)])===null||X===void 0x0?void 0x0:X[c(0xd6)](),w({'token':t,'contextName':i}),this['status']='success';break;}case c(0xe2):{const p='Failure\x20during\x20login:\x20'+(S===null||S===void 0x0?void 0x0:S['message']);this[c(0xe7)](p,Y);break;}default:{const O=c(0xce)+JSON[c(0xeb)](S);this['handleError'](O,Y);}}}),(C=this['duplex'])===null||C===void 0x0?void 0x0:C['on']('error',M=>{const s=d;this[s(0xe7)](s(0x102)+M['message'],Y);}),(q=this[d(0xf1)])===null||q===void 0x0?void 0x0:q['on']('end',()=>{const g=d;if(this[g(0xe6)]===g(0xff)){}else this[g(0xe7)](g(0xe9),Y);});});return(x=this[G(0xf1)])===null||x===void 0x0?void 0x0:x[G(0xd3)](this['initPackage']()),this['status']=G(0x10a),P[G(0xfd)](()=>{const A=G;process['removeListener'](A(0xef),V);});}[a9a(0xe7)](x,n){const J=a9a;var R,u;n?(R=this[J(0xf1)])===null||R===void 0x0?void 0x0:R[J(0xd6)](()=>n(new Error(x))):(u=this[J(0xf1)])===null||u===void 0x0?void 0x0:u[J(0xd6)](),this[J(0xe6)]=J(0xda);}}exports[a9a(0x107)]=NorthflankApiBrowserLogin;
1
+ 'use strict';const a9r=a9o;(function(w,o){const O=a9o,C=w();while(!![]){try{const R=parseInt(O(0x194))/0x1*(parseInt(O(0x1a9))/0x2)+parseInt(O(0x1b4))/0x3*(parseInt(O(0x191))/0x4)+parseInt(O(0x1c1))/0x5+parseInt(O(0x1ac))/0x6+parseInt(O(0x1bf))/0x7+parseInt(O(0x17d))/0x8+parseInt(O(0x17b))/0x9*(-parseInt(O(0x1b8))/0xa);if(R===o)break;else C['push'](C['shift']());}catch(M){C['push'](C['shift']());}}}(a9w,0x82976));function a9w(){const Z=['login-success','6201608blKADk','create','value','message','Unexpected\x20response','__awaiter','baseUrl','status','finally','duplex','parse','toString','https:','aborted','startLogin','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','replace','events','type','defineProperty','4gGiYaW','default','initPackage','23677cJBLBY','data','idle','getOwnPropertyDescriptor','configurable','handleError','writable','SIGINT','hasOwnProperty','then','apply','init','write','exit','Unable\x20to\x20open\x20browser:\x20','wss:','unable\x20to\x20parse\x20message:\x20','emit','init-ack','end','openBrowser','6GNYcTp','__setModuleDefault','next','4486740EXqlpQ','http:','__esModule','browser-opened','Unexpected\x20response,\x20api\x20token\x20missing','__importDefault','error\x20happened\x20during\x20browser\x20login:\x20','catch','1141347RCCwzP','NorthflankApiBrowserLogin','__createBinding','error','3175990fZiobu','throw','success','Failure\x20during\x20login:\x20','open','stringify','removeListener','3518361dnfmhO','prototype','2993000kiKOrz','ws:','72PTahFr'];a9w=function(){return Z;};return a9w();}var __createBinding=this&&this[a9r(0x1b6)]||(Object[a9r(0x17e)]?function(w,C,R,M){const c=a9r;if(M===undefined)M=R;var I=Object[c(0x197)](C,R);(!I||('get'in I?!C[c(0x1ae)]:I[c(0x19a)]||I[c(0x198)]))&&(I={'enumerable':!![],'get':function(){return C[R];}}),Object[c(0x190)](w,M,I);}:function(w,C,R,M){if(M===undefined)M=R;w[M]=C[R];}),__setModuleDefault=this&&this[a9r(0x1aa)]||(Object[a9r(0x17e)]?function(w,C){const A=a9r;Object[A(0x190)](w,'default',{'enumerable':!![],'value':C});}:function(w,C){const x=a9r;w[x(0x192)]=C;}),__importStar=this&&this['__importStar']||function(w){const D=a9r;if(w&&w[D(0x1ae)])return w;var o={};if(w!=null){for(var C in w)if(C!==D(0x192)&&Object[D(0x1c0)][D(0x19c)]['call'](w,C))__createBinding(o,w,C);}return __setModuleDefault(o,w),o;},__awaiter=this&&this[a9r(0x182)]||function(w,o,C,R){function M(I){return I instanceof C?I:new C(function(l){l(I);});}return new(C||(C=Promise))(function(I,l){const N=a9o;function a(F){const t=a9o;try{e(R[t(0x1ab)](F));}catch(Q){l(Q);}}function H(F){const g=a9o;try{e(R[g(0x1b9)](F));}catch(Q){l(Q);}}function e(F){const h=a9o;F['done']?I(F[h(0x17f)]):M(F[h(0x17f)])[h(0x19d)](a,H);}e((R=R[N(0x19e)](w,o||[]))[N(0x1ab)]());});},__importDefault=this&&this[a9r(0x1b1)]||function(w){const T=a9r;return w&&w[T(0x1ae)]?w:{'default':w};};function a9o(w,o){const C=a9w();return a9o=function(R,M){R=R-0x17a;let I=C[R];return I;},a9o(w,o);}Object[a9r(0x190)](exports,'__esModule',{'value':!![]}),exports['NorthflankApiBrowserLogin']=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9r(0x1bc))),events_1=require(a9r(0x18e));class NorthflankApiBrowserLogin extends events_1['EventEmitter']{constructor(w,o=!![]){const s=a9r;super(),this[s(0x183)]=w,this[s(0x1a8)]=o,this[s(0x184)]=s(0x196),this[s(0x193)]=()=>JSON[s(0x1bd)]({'type':s(0x19f)});}[a9r(0x18b)](){const d=a9r;var w;const o=this['baseUrl'][d(0x18d)](d(0x189),d(0x1a3))[d(0x18d)](d(0x1ad),d(0x17a)),C=o+'/v1/cli-login',R=new ws_1[(d(0x192))](C),M=()=>__awaiter(this,void 0x0,void 0x0,function*(){const E=d;yield new Promise(l=>{const p=a9o;var a;(a=this['duplex'])===null||a===void 0x0?void 0x0:a[p(0x1a7)](JSON['stringify']({'type':p(0x18a)}),()=>l());}),process[E(0x1a1)]();}),I=new Promise((l,a)=>{const j=d;var H,F,Q;try{this[j(0x186)]=(0x0,ws_1['createWebSocketStream'])(R),process['on'](j(0x19b),M);}catch(L){a(new Error(j(0x18c)+L[j(0x180)]));}(H=this['duplex'])===null||H===void 0x0?void 0x0:H['on'](j(0x195),z=>{const X=j;var i;const q=JSON[X(0x187)](z[X(0x188)]());switch(q===null||q===void 0x0?void 0x0:q[X(0x18f)]){case X(0x1a6):{const {loginPage:m}=q;if(m===undefined){this['handleError'](X(0x181),a);return;}this['openBrowser']&&(0x0,open_1['default'])(m)[X(0x1b3)](k=>{const b=X,K=b(0x1a2)+k[b(0x180)];this[b(0x199)](K,a);});this[X(0x1a5)](X(0x1af),{'url':m});break;}case X(0x17c):{const {apiToken:k,contextName:K}=q;if(k===undefined){this[X(0x199)](X(0x1b0),a);return;}(i=this[X(0x186)])===null||i===void 0x0?void 0x0:i[X(0x1a7)](),l({'token':k,'contextName':K}),this[X(0x184)]=X(0x1ba);break;}case'login-failure':{const n=X(0x1bb)+(q===null||q===void 0x0?void 0x0:q['message']);this['handleError'](n,a);break;}default:{const W=X(0x1a4)+JSON[X(0x1bd)](q);this[X(0x199)](W,a);}}}),(F=this['duplex'])===null||F===void 0x0?void 0x0:F['on'](j(0x1b7),z=>{const u=j;this[u(0x199)](u(0x1b2)+z['message'],a);}),(Q=this['duplex'])===null||Q===void 0x0?void 0x0:Q['on'](j(0x1a7),()=>{const S=j;if(this[S(0x184)]===S(0x1ba)){}else this['handleError']('Login\x20process\x20stopped\x20before\x20completed',a);});});return(w=this['duplex'])===null||w===void 0x0?void 0x0:w[d(0x1a0)](this[d(0x193)]()),this[d(0x184)]=d(0x19f),I[d(0x185)](()=>{const V=d;process[V(0x1be)]('SIGINT',M);});}[a9r(0x199)](w,o){const f=a9r;var C,R;o?(C=this[f(0x186)])===null||C===void 0x0?void 0x0:C[f(0x1a7)](()=>o(new Error(w))):(R=this['duplex'])===null||R===void 0x0?void 0x0:R[f(0x1a7)](),this[f(0x184)]='error';}}exports[a9r(0x1b5)]=NorthflankApiBrowserLogin;
@@ -1 +1 @@
1
- 'use strict';const a10B=a10n;(function(x,n){const k=a10n,R=x();while(!![]){try{const u=parseInt(k(0x10c))/0x1*(parseInt(k(0x176))/0x2)+parseInt(k(0xf8))/0x3+parseInt(k(0x161))/0x4+parseInt(k(0x177))/0x5+parseInt(k(0xee))/0x6*(parseInt(k(0x107))/0x7)+parseInt(k(0x16a))/0x8+parseInt(k(0x132))/0x9*(-parseInt(k(0x155))/0xa);if(u===n)break;else R['push'](R['shift']());}catch(V){R['push'](R['shift']());}}}(a10x,0xd4783));var __awaiter=this&&this[a10B(0x11c)]||function(x,n,R,u){function V(w){return w instanceof R?w:new R(function(Y){Y(w);});}return new(R||(R=Promise))(function(w,Y){const j=a10n;function N(f){const U=a10n;try{q(u[U(0x102)](f));}catch(M){Y(M);}}function C(f){const b=a10n;try{q(u[b(0x115)](f));}catch(M){Y(M);}}function q(f){const K=a10n;f[K(0x101)]?w(f[K(0x147)]):V(f[K(0x147)])[K(0x144)](N,C);}q((u=u[j(0x10f)](x,n||[]))[j(0x102)]());});},__importDefault=this&&this[a10B(0x16b)]||function(x){const x0=a10B;return x&&x[x0(0xea)]?x:{'default':x};};Object[a10B(0xf2)](exports,a10B(0xea),{'value':!![]}),exports[a10B(0x105)]=void 0x0;const js_client_1=require(a10B(0x136)),chalk_1=__importDefault(require(a10B(0xf9))),utils_1=require('../utils'),inquirer_helper_1=require('../inquirer-helper'),commander_1=require(a10B(0xff)),console_format_helpers_1=require(a10B(0x125)),log_formatter_1=require(a10B(0xf3));function a10x(){const xu=['Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','740056MSVXIC','6216530anRLAu','charAt','start','--restore\x20--restoreId\x20[restoreId]','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','length','formatLogLine','getLogsCommand','hasNextPage','askForProject','valueOf','warning','-t,\x20--types\x20<types...>',',\x20backup\x20id\x20','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','\x0aDetails:\x20','toUpperCase','__esModule','\x20for\x20all\x20containers','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','--regexIncludes\x20<regex>','1433826VPvWeG','assign','Error\x20while\x20fetching\x20log\x20lines:\x20','data','defineProperty','./log-formatter','--run\x20--runId\x20[runId]','--backup\x20--backupId\x20[backupId]','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','backward','3338898JcPXsp','chalk','Which\x20log\x20types\x20to\x20fetch','textIncludes','askForAddonBackup','addonId','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','commander','--noDefaults','done','next','getCurrentServiceName','getFormatter','CliLogs','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','7CEmWNl','setSeconds','Backup\x20to\x20get\x20logs\x20from','Id]','-o,\x20--output\x20[output]','3byhVNo','askForContainer',',\x20duration:\x20','apply','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','apiClient','action','service','getSeconds','throw','containerId','askForBuild','logRange','\x20seconds','slice','printResponse','__awaiter','--textIncludes\x20<text>','getCommand','option','\x20--','forEach','addonRestore','Number\x20of\x20lines\x20to\x20return.','askForJobRun','../formatting/console-format-helpers','noDefaults','Error\x20while\x20tailing\x20log\x20lines:\x20','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','apiContext','--build\x20--buildId\x20[buildId]','conflicts','buildId','stringify','Build\x20to\x20get\x20logs\x20from','--container\x20--containerId\x20[containerId]','Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20','parseDateInput','16641XbTXkw','message','log','backupId','@northflank/js-client','pagination','InquirerHelper','tail','defaultDurationSeconds','\x20for\x20container\x20','customUserAgent',',\x20to:\x20','addOption','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','logTail','\x20with\x20live-tailing','logs-received','logs','then','serviceId','addon','value','Option','inquirerHelper','choices','>\x20Container\x20logs','askForAddonRestore','format','bold',',\x20from:\x20',',\x20restore\x20id\x20','Restore\x20to\x20get\x20logs\x20from','alias','--project\x20--projectId\x20[projectId]','-f,\x20--tail','27740fPnzkD','askForAddon','toISOString','\x27Ctrl+C\x27','forward','\x20of\x20','job','regexNotIncludes','runId','--duration\x20[duration]','default','Id\x20[','2952972TTVFsw','restoreId','regexIncludes','\x20(exit\x20with\x20','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','yaml','--startTime\x20<timestamp>','--endTime\x20<timestamp>','values','12446648DFkHyQ','__importDefault','addonBackup','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','build-','error','textNotIncludes','json','details','name','jobId'];a10x=function(){return xu;};return a10x();}class CliLogs{constructor(x){const x1=a10B;this[x1(0x129)]=x,this[x1(0x13a)]=0x708,this['getStandardLogCommand']=(n,R,u,V)=>{const x2=x1,P=(0x0,utils_1[x2(0x11e)])(!![])[x2(0x173)]((R?x2(0x16e):'')+x2(0x143))[x2(0x152)]((R?'build-':'')+x2(0x134))['description']('Get\x20log\x20for\x20the\x20specified\x20'+n)[x2(0x11f)](x2(0x153),'Project\x20for\x20logs')[x2(0x11f)]('--'+n+x2(0x120)+n+x2(0x160)+n+x2(0x10a),n[x2(0x178)](0x0)[x2(0xe9)]()+n[x2(0x11a)](0x1)+'\x20to\x20get\x20logs\x20from')[x2(0x11f)](x2(0x12f),'Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)');if(R)P[x2(0x11f)](x2(0x12a),x2(0x12e));if(n===x2(0x15b))P[x2(0x11f)](x2(0xf4),x2(0x165));if(u)P[x2(0x11f)](x2(0xf5),x2(0x109));if(V)P['option'](x2(0x17a),x2(0x151));return!R&&!u&&!V&&P[x2(0x13e)](new commander_1[(x2(0x148))](x2(0xe5),x2(0xfa))['choices'](Object[x2(0x169)](js_client_1['LogType']))),P[x2(0x11f)](x2(0x154),x2(0xec))[x2(0x11f)]('-l,\x20--lineLimit\x20[limit]',x2(0x123))[x2(0x11f)](x2(0x167),'Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1['tsHint'],utils_1[x2(0x131)])[x2(0x13e)](new commander_1[(x2(0x148))](x2(0x168),x2(0xe7)+utils_1['tsHint'])['argParser'](utils_1[x2(0x131)])[x2(0x12b)]([x2(0x139)]))[x2(0x11f)](x2(0x15e),x2(0x110))[x2(0x13e)](new commander_1[(x2(0x148))]('-d,\x20--direction\x20<order>',x2(0xfe))['choices']([x2(0xf7),x2(0x159)])[x2(0x12b)]([x2(0x139)]))[x2(0x13e)](new commander_1[(x2(0x148))](x2(0x11d),x2(0x13f))[x2(0x12b)]([x2(0x170),x2(0x163),x2(0x15c)]))[x2(0x13e)](new commander_1[(x2(0x148))]('--textNotIncludes\x20<text>',x2(0x16d))[x2(0x12b)]([x2(0xfb),x2(0x163),x2(0x15c)]))['addOption'](new commander_1[(x2(0x148))](x2(0xed),'Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression')[x2(0x12b)]([x2(0x170),x2(0xfb),'regexNotIncludes']))[x2(0x13e)](new commander_1['Option']('--regexNotIncludes\x20<regex>',x2(0x106))['conflicts']([x2(0x170),x2(0x163),'textIncludes']))[x2(0x11f)](x2(0x100),x2(0xf6),![])['addOption'](new commander_1['Option'](x2(0x10b),x2(0x17b))[x2(0x14a)](Object[x2(0x169)]([x2(0x14d),x2(0x171),'yaml']))),P;},this['printInitInfo']=(n,R,u,V)=>{const x3=x1,{containerName:P,restoreId:w,backupId:Y,quiet:N,tail:C,startTime:q,endTime:f,duration:M}=V;if(N===!![])return;const X=C?x3(0x164)+chalk_1[x3(0x15f)]['bold'](x3(0x158))+')':'',S=C?x3(0x141):'',W=new Date(),t=q!==null&&q!==void 0x0?q:new Date(new Date((f!==null&&f!==void 0x0?f:W)[x3(0xe3)]())[x3(0x108)]((f!==null&&f!==void 0x0?f:W)[x3(0x114)]()-(M!==null&&M!==void 0x0?M:this[x3(0x13a)]))),i=(f!==null&&f!==void 0x0?f:q!==undefined)?new Date(new Date(q[x3(0xe3)]())['setSeconds'](q['getSeconds']()+(M!==null&&M!==void 0x0?M:this[x3(0x13a)]))):W,p=Y!==undefined,O=t&&!p?x3(0x14f)+chalk_1[x3(0x15f)]['bold'](t[x3(0x157)]()):'',Z=i&&!p?x3(0x13d)+chalk_1[x3(0x15f)][x3(0x14e)](i[x3(0x157)]()):'',a=M?x3(0x10e)+M+x3(0x119):'',E=P?x3(0x13b)+chalk_1[x3(0x15f)][x3(0x14e)](P):p?'':x3(0xeb),z=Y?x3(0xe6)+Y:'',T=w?x3(0x150)+w:'',H=n+'\x20'+chalk_1[x3(0x15f)][x3(0x14e)](R)+z+T+'\x20in\x20project\x20'+chalk_1[x3(0x15f)]['bold'](u),F=''+O+Z+a;console['log'](x3(0x14b)+S+E+x3(0x15a)+H+F+X+':');},this['getFormatter']=(n,R)=>(u,V)=>{const x4=x1;if(!n){if(u[x4(0x17c)]===0x0)console[x4(0x134)](x4(0x128));u[x4(0x121)](P=>(0x0,log_formatter_1[x4(0x17d)])(P,R));}else(0x0,console_format_helpers_1[x4(0x11b)])(n,u);(V===null||V===void 0x0?void 0x0:V[x4(0x17f)])&&(0x0,utils_1[x4(0xe4)])(x4(0x130)+V['cursor']);},this[x1(0x111)]=new js_client_1['ApiClient'](x,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[x1(0x13c)]}),this['logsApiClient']=this[x1(0x111)],this[x1(0x149)]=new inquirer_helper_1[(x1(0x138))](this[x1(0x111)]);}[a10B(0x17e)](x,n=![],R=![],u=![]){const xn=a10B,V=(q,f)=>__awaiter(this,void 0x0,void 0x0,function*(){const x5=a10n,M=f[x5(0x126)],{apiContext:X,inquirerHelper:S}=this;switch(x){case x5(0x113):{const W=M?undefined:X[x5(0x103)]();return f[x5(0x145)]||W||(yield S['askForService'](q)());}case x5(0x15b):{const t=M?undefined:X['getCurrentJobName']();return f[x5(0x174)]||t||(yield S['askForJob'](q)());}case x5(0x146):{return f[x5(0xfd)]||(yield S[x5(0x156)](q)());}}}),P=(q,f,M)=>__awaiter(this,void 0x0,void 0x0,function*(){const x6=a10n;if(n)return M[x6(0x12c)]||(yield this[x6(0x149)][x6(0x117)](q,x===x6(0x113)?f:undefined,x===x6(0x15b)?f:undefined,!![])());return undefined;}),w=(q,f,M)=>__awaiter(this,void 0x0,void 0x0,function*(){const x7=a10n;if(R||u)return M[x7(0x135)]||(yield this[x7(0x149)][x7(0xfc)](q,f)());return undefined;}),Y=(q,f,M,X)=>__awaiter(this,void 0x0,void 0x0,function*(){const x8=a10n;if(u)return X[x8(0x162)]||(yield this[x8(0x149)][x8(0x14c)](q,f,M)());return undefined;}),N=(q,f,M)=>__awaiter(this,void 0x0,void 0x0,function*(){const x9=a10n;if(!n&&M[x9(0x116)]!==undefined){if(M['containerId']!==!![])return M[x9(0x116)];return yield this[x9(0x149)][x9(0x10d)](q,x===x9(0x113)?f:undefined,x==='job'?f:undefined,!![])();}return undefined;}),C=(q,f,M)=>__awaiter(this,void 0x0,void 0x0,function*(){const xx=a10n;if(x===xx(0x15b))return M[xx(0x15d)]||(yield this[xx(0x149)][xx(0x124)](f,q,!![])());return undefined;});return this['getStandardLogCommand'](x,n,R,u)[xn(0x112)](q=>__awaiter(this,void 0x0,void 0x0,function*(){const xR=xn,{noDefaults:f,projectId:M,quiet:X,tail:S,types:W,textIncludes:t,textNotIncludes:i,regexIncludes:p,regexNotIncludes:O,direction:Z,lineLimit:a,startTime:E,endTime:z,duration:T,output:H}=q;(0x0,utils_1['assertContextExisting'])(this[xR(0x111)]);const {apiContext:F,inquirerHelper:e,logsApiClient:Q}=this,L=f?undefined:F['getCurrentProjectName'](),D=M||L||(yield e[xR(0xe2)]()),G=yield V(D,q),h=yield P(D,G,q),o=yield w(D,G,q),d=yield Y(D,G,o,q),c=yield C(D,G,q),v=yield N(D,G,q);if(E&&z&&T)throw new Error(xR(0x175));const s={'projectId':D,'entityId':G},g={'containerName':v,'types':W,'textIncludes':t,'textNotIncludes':i,'regexIncludes':p,'regexNotIncludes':O,'lineLimit':a,'startTime':E,'duration':T,'runId':c,'buildId':h,'backupId':o,'restoreId':d,'isBuild':n!==null&&n!==void 0x0?n:![]},A=u?xR(0x122):R?xR(0x16c):x,J=Object[xR(0xef)](Object[xR(0xef)]({},g),{'endTime':z,'direction':Z});if(!X&&H!==xR(0x166)&&H!=='yml'&&H!==xR(0x171))this['printInitInfo'](x,G,D,Object[xR(0xef)](Object[xR(0xef)]({},J),q));const l=this[xR(0x104)](H,t!==null&&t!==void 0x0?t:p);if(S){const y=yield Q[xR(0x143)][xR(0x140)](s,g,A);y['on'](xR(0x142),l),y['on']('error',I=>(0x0,utils_1[xR(0x16f)])(xR(0x127)+I[xR(0x133)])),y['on']('close',()=>console['log']('Log\x20session\x20ended')),yield y[xR(0x179)]();}else{const I=yield Q[xR(0x143)][xR(0x118)](s,J,A);if(I[xR(0x16f)]){const r=I[xR(0x16f)][xR(0x172)],m=r?xR(0xe8)+JSON[xR(0x12d)](r,null,'\x20'):'';(0x0,utils_1['error'])(xR(0xf0)+I[xR(0x16f)][xR(0x133)]+m);}else l(I[xR(0xf1)],I[xR(0x137)]);}}));}}function a10n(x,n){const R=a10x();return a10n=function(u,V){u=u-0xe2;let P=R[u];return P;},a10n(x,n);}exports['CliLogs']=CliLogs;
1
+ 'use strict';const a10y=a10o;function a10o(w,o){const C=a10w();return a10o=function(R,M){R=R-0x19e;let I=C[R];return I;},a10o(w,o);}(function(w,o){const v=a10o,C=w();while(!![]){try{const R=parseInt(v(0x231))/0x1+parseInt(v(0x22d))/0x2*(parseInt(v(0x1c1))/0x3)+parseInt(v(0x1b6))/0x4*(-parseInt(v(0x1dd))/0x5)+-parseInt(v(0x1e5))/0x6*(-parseInt(v(0x233))/0x7)+-parseInt(v(0x21a))/0x8*(-parseInt(v(0x1e6))/0x9)+-parseInt(v(0x1ec))/0xa+-parseInt(v(0x20d))/0xb*(parseInt(v(0x1be))/0xc);if(R===o)break;else C['push'](C['shift']());}catch(M){C['push'](C['shift']());}}}(a10w,0x71339));var __awaiter=this&&this[a10y(0x1d3)]||function(w,o,C,R){function M(I){return I instanceof C?I:new C(function(l){l(I);});}return new(C||(C=Promise))(function(I,l){const J=a10o;function a(F){try{e(R['next'](F));}catch(Q){l(Q);}}function H(F){const P=a10o;try{e(R[P(0x1f0)](F));}catch(Q){l(Q);}}function e(F){const B=a10o;F[B(0x1ca)]?I(F[B(0x230)]):M(F[B(0x230)])['then'](a,H);}e((R=R[J(0x1db)](w,o||[]))['next']());});},__importDefault=this&&this[a10y(0x204)]||function(w){const Y=a10y;return w&&w[Y(0x1d7)]?w:{'default':w};};function a10w(){const wo=['toISOString','askForAddonRestore',',\x20from:\x20','@northflank/js-client',',\x20to:\x20','15520xvGVvM','\x0aDetails:\x20','defaultDurationSeconds','addonBackup','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','getCurrentServiceName','./log-formatter','\x20to\x20get\x20logs\x20from','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','conflicts','\x20--','backward','restoreId','values','job','--endTime\x20<timestamp>','askForJobRun','>\x20Container\x20logs','parseDateInput','26ZOMsKz','getSeconds',',\x20duration:\x20','value','864202BwOFVD','-t,\x20--types\x20<types...>','1595783VgKuMS','Project\x20for\x20logs','--duration\x20[duration]','addon','alias','assign','yaml','serviceId','printResponse','../utils','jobId','logsApiClient','Id]','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','textIncludes','json','--textIncludes\x20<text>','format','InquirerHelper','-f,\x20--tail','details','printInitInfo','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','--restore\x20--restoreId\x20[restoreId]','Number\x20of\x20lines\x20to\x20return.','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','172pZJwiD','apiContext','regexIncludes','\x20for\x20all\x20containers','addOption','textNotIncludes','Backup\x20to\x20get\x20logs\x20from','forEach','60ZdXoAM','defineProperty','logs','77841qYoowa','option','runId','askForAddonBackup','askForJob','service','getCommand','getStandardLogCommand','pagination','done','CliLogs','name','Id\x20[','commander','--container\x20--containerId\x20[containerId]','backupId','tsHint','getLogsCommand','__awaiter','error','hasNextPage',',\x20backup\x20id\x20','__esModule','Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20','length','forward','apply','\x20seconds','38490DKwkXv','Which\x20log\x20types\x20to\x20fetch','start','slice','ApiClient','customUserAgent','bold','--run\x20--runId\x20[runId]','6mJDYQl','576JxpjkR','logTail','Restore\x20to\x20get\x20logs\x20from','formatLogLine','description','\x20of\x20','1263500VcWwzJ','yml','../inquirer-helper','Log\x20session\x20ended','throw','regexNotIncludes','tail','--build\x20--buildId\x20[buildId]','containerId','--project\x20--projectId\x20[projectId]','LogType','default','-o,\x20--output\x20[output]','message','--regexNotIncludes\x20<regex>','--backup\x20--backupId\x20[backupId]','choices','noDefaults','close','getCurrentJobName','log','valueOf','getFormatter','getCurrentProjectName','__importDefault','--regexIncludes\x20<regex>','\x20for\x20container\x20','inquirerHelper','askForAddon','setSeconds','Option','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','toUpperCase','1391731xWSzkt','assertContextExisting','\x20with\x20live-tailing','-l,\x20--lineLimit\x20[limit]','Build\x20to\x20get\x20logs\x20from','--noDefaults','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','build-'];a10w=function(){return wo;};return a10w();}Object[a10y(0x1bf)](exports,a10y(0x1d7),{'value':!![]}),exports['CliLogs']=void 0x0;const js_client_1=require(a10y(0x218)),chalk_1=__importDefault(require('chalk')),utils_1=require(a10y(0x1a5)),inquirer_helper_1=require(a10y(0x1ee)),commander_1=require(a10y(0x1ce)),console_format_helpers_1=require('../formatting/console-format-helpers'),log_formatter_1=require(a10y(0x220));class CliLogs{constructor(w){const w0=a10y;this[w0(0x1b7)]=w,this[w0(0x21c)]=0x708,this[w0(0x1c8)]=(o,C,R,M)=>{const w1=w0,I=(0x0,utils_1[w1(0x1c7)])(!![])[w1(0x1cc)]((C?'build-':'')+w1(0x1c0))[w1(0x1a0)]((C?w1(0x214):'')+w1(0x200))[w1(0x1ea)]('Get\x20log\x20for\x20the\x20specified\x20'+o)[w1(0x1c2)](w1(0x1f5),w1(0x234))[w1(0x1c2)]('--'+o+w1(0x224)+o+w1(0x1cd)+o+w1(0x1a8),o['charAt'](0x0)[w1(0x20c)]()+o[w1(0x1e0)](0x1)+w1(0x221))[w1(0x1c2)](w1(0x1cf),'Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)');if(C)I['option'](w1(0x1f3),w1(0x211));if(o===w1(0x228))I[w1(0x1c2)](w1(0x1e4),w1(0x213));if(R)I[w1(0x1c2)](w1(0x1fb),w1(0x1bc));if(M)I[w1(0x1c2)](w1(0x1b3),w1(0x1e8));return!C&&!R&&!M&&I[w1(0x1ba)](new commander_1['Option'](w1(0x232),w1(0x1de))[w1(0x1fc)](Object['values'](js_client_1[w1(0x1f6)]))),I[w1(0x1c2)](w1(0x1af),'Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.')[w1(0x1c2)](w1(0x210),w1(0x1b4))[w1(0x1c2)]('--startTime\x20<timestamp>','Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1[w1(0x1d1)],utils_1[w1(0x22c)])['addOption'](new commander_1['Option'](w1(0x229),w1(0x21e)+utils_1[w1(0x1d1)])['argParser'](utils_1['parseDateInput'])[w1(0x223)]([w1(0x1f2)]))[w1(0x1c2)](w1(0x19e),w1(0x1a9))['addOption'](new commander_1[(w1(0x20a))]('-d,\x20--direction\x20<order>','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.')[w1(0x1fc)]([w1(0x225),w1(0x1da)])[w1(0x223)]([w1(0x1f2)]))[w1(0x1ba)](new commander_1['Option'](w1(0x1ac),'Filter\x20log\x20lines\x20to\x20include\x20this\x20text')[w1(0x223)]([w1(0x1bb),'regexIncludes',w1(0x1f1)]))[w1(0x1ba)](new commander_1[(w1(0x20a))]('--textNotIncludes\x20<text>','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text')[w1(0x223)]([w1(0x1aa),w1(0x1b8),'regexNotIncludes']))[w1(0x1ba)](new commander_1[(w1(0x20a))](w1(0x205),'Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression')[w1(0x223)]([w1(0x1bb),w1(0x1aa),'regexNotIncludes']))[w1(0x1ba)](new commander_1[(w1(0x20a))](w1(0x1fa),w1(0x20b))[w1(0x223)]([w1(0x1bb),w1(0x1b8),w1(0x1aa)]))[w1(0x1c2)](w1(0x212),'Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])['addOption'](new commander_1['Option'](w1(0x1f8),w1(0x222))[w1(0x1fc)](Object[w1(0x227)]([w1(0x1ad),w1(0x1ab),w1(0x1a2)]))),I;},this[w0(0x1b1)]=(o,C,R,M)=>{const w2=w0,{containerName:I,restoreId:l,backupId:a,quiet:H,tail:e,startTime:F,endTime:Q,duration:L}=M;if(H===!![])return;const z=e?'\x20(exit\x20with\x20'+chalk_1['default'][w2(0x1e3)]('\x27Ctrl+C\x27')+')':'',i=e?w2(0x20f):'',q=new Date(),m=F!==null&&F!==void 0x0?F:new Date(new Date((Q!==null&&Q!==void 0x0?Q:q)[w2(0x201)]())['setSeconds']((Q!==null&&Q!==void 0x0?Q:q)['getSeconds']()-(L!==null&&L!==void 0x0?L:this[w2(0x21c)]))),k=(Q!==null&&Q!==void 0x0?Q:F!==undefined)?new Date(new Date(F[w2(0x201)]())[w2(0x209)](F[w2(0x22e)]()+(L!==null&&L!==void 0x0?L:this[w2(0x21c)]))):q,K=a!==undefined,n=m&&!K?w2(0x217)+chalk_1['default'][w2(0x1e3)](m[w2(0x215)]()):'',W=k&&!K?w2(0x219)+chalk_1[w2(0x1f7)]['bold'](k[w2(0x215)]()):'',O=L?w2(0x22f)+L+w2(0x1dc):'',r=I?w2(0x206)+chalk_1['default']['bold'](I):K?'':w2(0x1b9),c=a?w2(0x1d6)+a:'',A=l?',\x20restore\x20id\x20'+l:'',x=o+'\x20'+chalk_1[w2(0x1f7)][w2(0x1e3)](C)+c+A+'\x20in\x20project\x20'+chalk_1[w2(0x1f7)]['bold'](R),D=''+n+W+O;console[w2(0x200)](w2(0x22b)+i+r+w2(0x1eb)+x+D+z+':');},this[w0(0x202)]=(o,C)=>(R,M)=>{const w3=w0;if(!o){if(R[w3(0x1d9)]===0x0)console[w3(0x200)](w3(0x1b2));R[w3(0x1bd)](I=>(0x0,log_formatter_1[w3(0x1e9)])(I,C));}else(0x0,console_format_helpers_1[w3(0x1a4)])(o,R);(M===null||M===void 0x0?void 0x0:M[w3(0x1d5)])&&(0x0,utils_1['warning'])(w3(0x1d8)+M['cursor']);},this['apiClient']=new js_client_1[(w0(0x1e1))](w,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[w0(0x1e2)]}),this[w0(0x1a7)]=this['apiClient'],this[w0(0x207)]=new inquirer_helper_1[(w0(0x1ae))](this['apiClient']);}[a10y(0x1d2)](w,o=![],C=![],R=![]){const M=(F,Q)=>__awaiter(this,void 0x0,void 0x0,function*(){const w4=a10o,L=Q[w4(0x1fd)],{apiContext:z,inquirerHelper:i}=this;switch(w){case w4(0x1c6):{const q=L?undefined:z[w4(0x21f)]();return Q[w4(0x1a3)]||q||(yield i['askForService'](F)());}case w4(0x228):{const m=L?undefined:z[w4(0x1ff)]();return Q[w4(0x1a6)]||m||(yield i[w4(0x1c5)](F)());}case w4(0x19f):{return Q['addonId']||(yield i[w4(0x208)](F)());}}}),I=(F,Q,L)=>__awaiter(this,void 0x0,void 0x0,function*(){const w5=a10o;if(o)return L['buildId']||(yield this[w5(0x207)]['askForBuild'](F,w===w5(0x1c6)?Q:undefined,w===w5(0x228)?Q:undefined,!![])());return undefined;}),l=(F,Q,L)=>__awaiter(this,void 0x0,void 0x0,function*(){const w6=a10o;if(C||R)return L[w6(0x1d0)]||(yield this['inquirerHelper'][w6(0x1c4)](F,Q)());return undefined;}),a=(F,Q,L,z)=>__awaiter(this,void 0x0,void 0x0,function*(){const w7=a10o;if(R)return z[w7(0x226)]||(yield this[w7(0x207)][w7(0x216)](F,Q,L)());return undefined;}),H=(F,Q,L)=>__awaiter(this,void 0x0,void 0x0,function*(){const w8=a10o;if(!o&&L[w8(0x1f4)]!==undefined){if(L['containerId']!==!![])return L[w8(0x1f4)];return yield this['inquirerHelper']['askForContainer'](F,w==='service'?Q:undefined,w===w8(0x228)?Q:undefined,!![])();}return undefined;}),e=(F,Q,L)=>__awaiter(this,void 0x0,void 0x0,function*(){const w9=a10o;if(w==='job')return L[w9(0x1c3)]||(yield this[w9(0x207)][w9(0x22a)](Q,F,!![])());return undefined;});return this['getStandardLogCommand'](w,o,C,R)['action'](F=>__awaiter(this,void 0x0,void 0x0,function*(){const ww=a10o,{noDefaults:Q,projectId:L,quiet:z,tail:i,types:q,textIncludes:m,textNotIncludes:k,regexIncludes:K,regexNotIncludes:n,direction:W,lineLimit:O,startTime:r,endTime:c,duration:A,output:x}=F;(0x0,utils_1[ww(0x20e)])(this['apiClient']);const {apiContext:D,inquirerHelper:t,logsApiClient:g}=this,h=Q?undefined:D[ww(0x203)](),N=L||h||(yield t['askForProject']()),T=yield M(N,F),s=yield I(N,T,F),d=yield l(N,T,F),p=yield a(N,T,d,F),E=yield e(N,T,F),j=yield H(N,T,F);if(r&&c&&A)throw new Error(ww(0x1b5));const X={'projectId':N,'entityId':T},b={'containerName':j,'types':q,'textIncludes':m,'textNotIncludes':k,'regexIncludes':K,'regexNotIncludes':n,'lineLimit':O,'startTime':r,'duration':A,'runId':E,'buildId':s,'backupId':d,'restoreId':p,'isBuild':o!==null&&o!==void 0x0?o:![]},u=R?'addonRestore':C?ww(0x21d):w,S=Object[ww(0x1a1)](Object['assign']({},b),{'endTime':c,'direction':W});if(!z&&x!==ww(0x1a2)&&x!==ww(0x1ed)&&x!==ww(0x1ab))this[ww(0x1b1)](w,T,N,Object['assign'](Object[ww(0x1a1)]({},S),F));const V=this[ww(0x202)](x,m!==null&&m!==void 0x0?m:K);if(i){const f=yield g[ww(0x1c0)][ww(0x1e7)](X,b,u);f['on']('logs-received',V),f['on'](ww(0x1d4),Z=>(0x0,utils_1[ww(0x1d4)])('Error\x20while\x20tailing\x20log\x20lines:\x20'+Z[ww(0x1f9)])),f['on'](ww(0x1fe),()=>console['log'](ww(0x1ef))),yield f[ww(0x1df)]();}else{const Z=yield g[ww(0x1c0)]['logRange'](X,S,u);if(Z[ww(0x1d4)]){const G=Z[ww(0x1d4)][ww(0x1b0)],U=G?ww(0x21b)+JSON['stringify'](G,null,'\x20'):'';(0x0,utils_1[ww(0x1d4)])('Error\x20while\x20fetching\x20log\x20lines:\x20'+Z[ww(0x1d4)][ww(0x1f9)]+U);}else V(Z['data'],Z[ww(0x1c9)]);}}));}}exports[a10y(0x1cb)]=CliLogs;
@@ -1 +1 @@
1
- 'use strict';function a11n(x,n){const R=a11x();return a11n=function(u,V){u=u-0xd5;let P=R[u];return P;},a11n(x,n);}const a11q=a11n;(function(x,n){const C=a11n,R=x();while(!![]){try{const u=-parseInt(C(0xe5))/0x1*(parseInt(C(0xef))/0x2)+-parseInt(C(0xea))/0x3+-parseInt(C(0xe4))/0x4+parseInt(C(0xe7))/0x5+-parseInt(C(0xd6))/0x6+parseInt(C(0xf0))/0x7+parseInt(C(0xec))/0x8;if(u===n)break;else R['push'](R['shift']());}catch(V){R['push'](R['shift']());}}}(a11x,0x1a574));var __importDefault=this&&this[a11q(0xdc)]||function(x){const f=a11q;return x&&x[f(0xd8)]?x:{'default':x};};Object['defineProperty'](exports,a11q(0xd8),{'value':!![]}),exports[a11q(0xed)]=exports['defaultLogSyntax']=void 0x0;function a11x(){const S=['red','defaultLogSyntax','cyan','yellow','832632LkOEFd','854nToKLw','reduce','875290ATLnLz','dim','grey','345153COpivv','pattern','1298816aNBTvV','formatLogLine','chalk','72FTNJks','1264375BBHFwo','green','337140OgDqut','color','__esModule','replace','log','blue','__importDefault','gray','default','s\x08(?!mailto:)(?:(?:http|https|ftp)://)(?:\x5cS+(?::\x5cS*)?@)?(?:(?:(?:[1-9]\x5cd?|1\x5cd\x5cd|2[01]\x5cd|22[0-3])(?:\x5c.(?:1?\x5cd{1,2}|2[0-4]\x5cd|25[0-5])){2}(?:\x5c.(?:[0-9]\x5cd?|1\x5cd\x5cd|2[0-4]\x5cd|25[0-4]))|(?:(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)*(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff]{2,})))|localhost)(?::\x5cd{2,5})?(?:(/|\x5c?|#)[^\x5cs]*)?\x08s'];a11x=function(){return S;};return a11x();}const chalk_1=__importDefault(require(a11q(0xee)));exports[a11q(0xe1)]=[{'color':a11q(0xe9),'pattern':/\[[0-9]{1,2}\/[a-z]{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4}\]/i},{'color':a11q(0xe9),'pattern':/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?Z/i},{'color':a11q(0xe9),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11q(0xe9),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':'bold','pattern':new RegExp(a11q(0xdf),'i')},{'color':a11q(0xd5),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11q(0xd5),'pattern':/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/},{'color':'blue','pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':'greenBright','pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11q(0xe0),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11q(0xdd),'pattern':/\b(information|info|debug)\b/i},{'color':a11q(0xe3),'pattern':/\b(warning|warn)\b/i},{'color':a11q(0xdb),'pattern':/[0-9a-f]{64}/i},{'color':'blue','pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(x,n)=>{const M=a11q,R=chalk_1[M(0xde)][M(0xe8)](x['ts']['toISOString']()),u=chalk_1[M(0xde)][M(0xe2)](x['containerId']),V=exports[M(0xe1)][M(0xe6)]((w,Y)=>{const X=M;return w[X(0xd9)](Y[X(0xeb)],N=>Y[X(0xd7)]?chalk_1['default'][Y['color']](N):chalk_1[X(0xde)][X(0xe9)](N));},x[M(0xda)]),P=n?V[M(0xd9)](new RegExp(n,'g'),w=>chalk_1[M(0xde)]['bold'](w)):V;console[M(0xda)](R+'\x20'+u+'\x20--\x20'+P);};exports[a11q(0xed)]=formatLogLine;
1
+ 'use strict';const a11L=a11o;function a11w(){const m=['yellow','greenBright','green','1062320SfPMFh','replace','bold','grey','\x20--\x20','1868334WuviBX','8iPdHOe','default','__esModule','log','14800690eRxpTC','blue','defaultLogSyntax','defineProperty','1FBiMkQ','s\x08(?!mailto:)(?:(?:http|https|ftp)://)(?:\x5cS+(?::\x5cS*)?@)?(?:(?:(?:[1-9]\x5cd?|1\x5cd\x5cd|2[01]\x5cd|22[0-3])(?:\x5c.(?:1?\x5cd{1,2}|2[0-4]\x5cd|25[0-5])){2}(?:\x5c.(?:[0-9]\x5cd?|1\x5cd\x5cd|2[0-4]\x5cd|25[0-4]))|(?:(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)*(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff]{2,})))|localhost)(?::\x5cd{2,5})?(?:(/|\x5c?|#)[^\x5cs]*)?\x08s','2344265CywCTC','706671oDAVsv','dim','pattern','1028944QaSyzw','__importDefault','3074706swMWFN','formatLogLine','5eeFMgQ','reduce','toISOString'];a11w=function(){return m;};return a11w();}(function(w,o){const Q=a11o,C=w();while(!![]){try{const R=parseInt(Q(0x187))/0x1*(parseInt(Q(0x16f))/0x2)+-parseInt(Q(0x16c))/0x3+-parseInt(Q(0x179))/0x4+parseInt(Q(0x173))/0x5*(-parseInt(Q(0x17e))/0x6)+-parseInt(Q(0x16b))/0x7*(parseInt(Q(0x17f))/0x8)+-parseInt(Q(0x171))/0x9+parseInt(Q(0x183))/0xa;if(R===o)break;else C['push'](C['shift']());}catch(M){C['push'](C['shift']());}}}(a11w,0x7b68e));function a11o(w,o){const C=a11w();return a11o=function(R,M){R=R-0x16b;let I=C[R];return I;},a11o(w,o);}var __importDefault=this&&this[a11L(0x170)]||function(w){const z=a11L;return w&&w[z(0x181)]?w:{'default':w};};Object[a11L(0x186)](exports,a11L(0x181),{'value':!![]}),exports[a11L(0x172)]=exports['defaultLogSyntax']=void 0x0;const chalk_1=__importDefault(require('chalk'));exports[a11L(0x185)]=[{'color':a11L(0x17c),'pattern':/\[[0-9]{1,2}\/[a-z]{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4}\]/i},{'color':a11L(0x17c),'pattern':/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?Z/i},{'color':a11L(0x17c),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11L(0x17c),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11L(0x17b),'pattern':new RegExp(a11L(0x188),'i')},{'color':a11L(0x178),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11L(0x178),'pattern':/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/},{'color':a11L(0x184),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':a11L(0x177),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':'red','pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':'gray','pattern':/\b(information|info|debug)\b/i},{'color':a11L(0x176),'pattern':/\b(warning|warn)\b/i},{'color':'blue','pattern':/[0-9a-f]{64}/i},{'color':a11L(0x184),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(w,o)=>{const i=a11L,C=chalk_1['default'][i(0x16d)](w['ts'][i(0x175)]()),R=chalk_1[i(0x180)]['cyan'](w['containerId']),M=exports[i(0x185)][i(0x174)]((H,e)=>{const q=i;return H['replace'](e[q(0x16e)],F=>e['color']?chalk_1[q(0x180)][e['color']](F):chalk_1[q(0x180)][q(0x17c)](F));},w['log']),I=o?M[i(0x17a)](new RegExp(o,'g'),a=>chalk_1[i(0x180)][i(0x17b)](a)):M;console[i(0x182)](C+'\x20'+R+i(0x17d)+I);};exports[a11L(0x172)]=formatLogLine;