@northflank/cli 0.9.14 → 0.9.15

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 a4N=a4L;function a4L(Q,L){const z=a4Q();return a4L=function(A,b){A=A-0x11b;let M=z[A];return M;},a4L(Q,L);}(function(Q,L){const E=a4L,z=Q();while(!![]){try{const A=-parseInt(E(0x143))/0x1*(parseInt(E(0x138))/0x2)+-parseInt(E(0x139))/0x3+-parseInt(E(0x180))/0x4+parseInt(E(0x15d))/0x5+parseInt(E(0x167))/0x6+-parseInt(E(0x125))/0x7*(parseInt(E(0x13c))/0x8)+-parseInt(E(0x170))/0x9*(-parseInt(E(0x144))/0xa);if(A===L)break;else z['push'](z['shift']());}catch(b){z['push'](z['shift']());}}}(a4Q,0x9e0ec));var __awaiter=this&&this[a4N(0x133)]||function(Q,L,z,A){function b(M){return M instanceof z?M:new z(function(S){S(M);});}return new(z||(z=Promise))(function(M,S){const C=a4L;function k(Z){const T=a4L;try{q(A[T(0x156)](Z));}catch(V){S(V);}}function i(Z){const v=a4L;try{q(A[v(0x142)](Z));}catch(V){S(V);}}function q(Z){const h=a4L;Z[h(0x132)]?M(Z['value']):b(Z[h(0x15e)])['then'](k,i);}q((A=A['apply'](Q,L||[]))[C(0x156)]());});},__importDefault=this&&this['__importDefault']||function(Q){const W=a4N;return Q&&Q[W(0x141)]?Q:{'default':Q};};Object[a4N(0x16b)](exports,a4N(0x141),{'value':!![]}),exports['CliExec']=void 0x0;function a4Q(){const F=['--project\x20--projectId\x20[NAME]','../utils','getCurrentServiceName','stdOut','16407bqMVfo','error','pipe','service','CliExec','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','askForJob','Success','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','Project\x20for\x20exec','assertContextExisting','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.','stderr','Run\x20command\x20with\x20this\x20group','alias','default','1756960TmFNIm','addCommand','Command\x20completed\x20successfully,\x20exit\x20code:\x20','stdout','option','--cmd\x20--command\x20[COMMAND]','warning','resize','bold','readline','getStandardExecCommand','handleShellSession','log','28ywRSiC','emitKeypressEvents','stdErr','apiClient','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','description','columns','action','stdin','exec','\x20in\x20project\x20','name','\x20--','done','__awaiter','status','--container\x20--containerId\x20[NAME]','Error\x20occured\x20during\x20','../inquirer-helper','146oSksKo','895950grhiWj','--group\x20[GROUP]','\x20--shell-cmd\x20\x27sh\x27','2009512snXsdX','ApiClient','charAt','message','command-exec','__esModule','throw','15055XtDAPd','12740ALHBiI','execStartLog','shell\x20command\x20','greenBright','rows','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','\x20command\x20exec:\x20','getCurrentProjectName','toUpperCase','execJobSession','\x20to\x20exec\x20into','exitCode','chalk','filter','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','setRawMode','--shell-cmd\x20[SHELL-CMD]','getTerminalSize','next','askForProject','Run\x20command\x20with\x20this\x20user','stdIn','execCmd','@northflank/js-client','none','4037495vjLQZp','value',',\x20exit\x20code:\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.','isTTY','\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20','getCommand','keypress','exit','customUserAgent','2154384FATPxv','job','askForService',',\x20details:\x20','defineProperty'];a4Q=function(){return F;};return a4Q();}const js_client_1=require(a4N(0x15b)),chalk_1=__importDefault(require(a4N(0x150))),utils_1=require(a4N(0x16d)),inquirer_helper_1=require(a4N(0x137));class CliExec{constructor(Q){const w=a4N;this[w(0x122)]=b=>(0x0,utils_1['getCommand'])(!![])[w(0x130)](b)[w(0x12a)]('Command\x20exec\x20for\x20the\x20specified\x20'+b+'.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20'+b+w(0x162)+b+'\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20'+b+'\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'+b+w(0x13b))[w(0x11c)](w(0x16c),w(0x179))['option']('--'+b+w(0x131)+b+'Id\x20[NAME]',b[w(0x13e)](0x0)[w(0x14c)]()+b['slice'](0x1)+w(0x14e))['option'](w(0x135),w(0x129))[w(0x11c)](w(0x154),w(0x17b))[w(0x11c)]('--user\x20[USER]',w(0x158))[w(0x11c)](w(0x13a),w(0x17d))['option']('--noDefaults',w(0x178),![])[w(0x11c)](w(0x11d),w(0x160)),this[w(0x155)]=()=>({'columns':process[w(0x11b)][w(0x12b)],'rows':process['stdout'][w(0x148)]}),this[w(0x145)]=(b,M,S,k,i,q,Z,V)=>{const H=w;if(V===!![])return;const d=k===H(0x15c),a=d?'without\x20shell':k===undefined?'with\x20shell\x20session':H(0x146)+chalk_1[H(0x17f)][H(0x147)](k),G=i!==undefined?'with\x20user:'+i:'',I=q!==undefined?'with\x20group:'+q:'',g=Z!==undefined?'with\x20command\x20\x27'+chalk_1['default'][H(0x147)](Z)+'\x27':'',O=[g,a,G,I][H(0x151)](j=>j!=='')['join']('\x20'),Y='(exit\x20with\x20two\x20quick\x20'+chalk_1[H(0x17f)][H(0x120)]('\x27Ctrl+D\x27')+')';console[H(0x124)]('Exec\x20'+b+'\x20'+chalk_1[H(0x17f)][H(0x120)](M)+H(0x12f)+chalk_1['default'][H(0x120)](S)+'\x20'+O+'\x20'+Y);},this[w(0x123)]=(b,M,S=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const x=w;var k,i;let q=![];try{if(process[x(0x12d)][x(0x161)]){const V=require(x(0x121));V[x(0x126)](process[x(0x12d)]),process['stdin'][x(0x153)](!![]),process['stdout']['on'](x(0x11f),()=>{const J=x;b['resizeTerminal'](this[J(0x155)]());}),process[x(0x12d)]['on'](x(0x164),(d,a)=>{const u=x;a['sequence']==='\x04'&&(q?(process[u(0x12d)][u(0x153)](![]),(0x0,utils_1[u(0x11e)])(u(0x149)),process[u(0x165)]()):(q=!![],setTimeout(()=>q=![],0x190)));});}process['stdin'][x(0x172)](b[x(0x159)]),b[x(0x127)][x(0x172)](process[x(0x17c)]),b[x(0x16f)][x(0x172)](process[x(0x11b)]),b['on'](x(0x171),d=>{const n=x;var a;(0x0,utils_1[n(0x171)])(n(0x136)+M+n(0x14a)+((a=d['message'])!==null&&a!==void 0x0?a:d)),process[n(0x12d)][n(0x161)]&&process['stdin'][n(0x153)](![]),process[n(0x165)](-0x1);});const Z=yield b['waitForCommandResult']();if(S!==!![]){const d=(k=Z===null||Z===void 0x0?void 0x0:Z[x(0x134)])!==null&&k!==void 0x0?k:'Unknown',a=(i=Z===null||Z===void 0x0?void 0x0:Z[x(0x14f)])!==null&&i!==void 0x0?i:-0x1,G=(Z===null||Z===void 0x0?void 0x0:Z[x(0x13f)])?x(0x16a)+Z[x(0x13f)]:'';d===x(0x177)?(0x0,utils_1['success'])(x(0x182)+a):(0x0,utils_1[x(0x11e)])(x(0x152)+d+x(0x15f)+a+G);}return Z;}finally{process[x(0x12d)][x(0x161)]&&process['stdin'][x(0x153)](![]);}}),this[w(0x128)]=new js_client_1[(w(0x13d))](Q,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[w(0x166)]});const L=new inquirer_helper_1['InquirerHelper'](this['apiClient']);this[w(0x15a)]=(0x0,utils_1[w(0x163)])()['name'](w(0x140))[w(0x17e)](w(0x12e))[w(0x12a)](w(0x175));const z=this['getStandardExecCommand'](w(0x173))[w(0x12c)](b=>__awaiter(this,void 0x0,void 0x0,function*(){const R=w,{noDefaults:M,projectId:S,serviceId:k,containerId:i,shellCmd:q,user:Z,group:V,command:d,quiet:a}=b;(0x0,utils_1[R(0x17a)])(this[R(0x128)]);try{const G=M?undefined:Q[R(0x14b)](),I=S||G||(yield L[R(0x157)]()),g=M?undefined:Q[R(0x16e)](),O=k||g||(yield L[R(0x169)](I)()),Y=q!==null&&q!==void 0x0?q:d!==undefined?'none':undefined;this[R(0x145)](R(0x173),O,I,Y,Z,V,d,a);const j=process['stdout']['columns'],B=process[R(0x11b)]['rows'],l={'projectId':I,'serviceId':O},o=yield this[R(0x128)][R(0x12e)]['execServiceSession'](l,{'containerName':i,'command':d,'shell':Y,'user':Z,'group':V,'ttyColumns':j,'ttyRows':B});yield this['handleShellSession'](o,R(0x173),a);}catch(r){(0x0,utils_1[R(0x171)])(''+r[R(0x13f)]);}finally{process[R(0x165)]();}})),A=this[w(0x122)](w(0x168))[w(0x12c)](b=>__awaiter(this,void 0x0,void 0x0,function*(){const m=w,{projectId:M,jobId:S,containerId:k,noDefaults:i,shellCmd:q,user:Z,group:V,command:d,quiet:a}=b;(0x0,utils_1['assertContextExisting'])(this[m(0x128)]);try{const G=i?undefined:Q[m(0x14b)](),I=M||G||(yield L['askForProject']()),g=S||(yield L[m(0x176)](I)());this['execStartLog'](m(0x168),g,I,q,a);const {rows:O,columns:Y}=this['getTerminalSize'](),j={'projectId':I,'jobId':g},B=yield this['apiClient'][m(0x12e)][m(0x14d)](j,{'containerName':k,'command':d,'shell':q,'user':Z,'group':V,'ttyColumns':Y,'ttyRows':O});yield this[m(0x123)](B,m(0x168),a);}catch(l){(0x0,utils_1['error'])(''+l[m(0x13f)]);}finally{process['exit']();}}));this[w(0x15a)][w(0x181)](z),this[w(0x15a)][w(0x181)](A);}}exports[a4N(0x174)]=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';function a5L(Q,L){const z=a5Q();return a5L=function(A,b){A=A-0x194;let M=z[A];return M;},a5L(Q,L);}const a5o=a5L;function a5Q(){const w=['description','__esModule','then','3077796NxCMyp','next','throw','9zJvLTh','option','defineProperty','bold','1NTJtil','every','17149KOMagl','log','green','3087252zEwOxS','action','1374ppztTu','__awaiter','7427704pDLzhY','keys','commands','command-overview','7370DVYpLT','length','__importDefault','slice','Print\x20command\x20descriptions','value','getCommandOverview','--verbose','getCommand','1623236TYQeSe','4050030eGbwKQ','name','chalk','6188gYhSrO','join','map','done'];a5Q=function(){return w;};return a5Q();}(function(Q,L){const l=a5L,z=Q();while(!![]){try{const A=parseInt(l(0x1ab))/0x1*(parseInt(l(0x199))/0x2)+parseInt(l(0x1b2))/0x3*(-parseInt(l(0x19d))/0x4)+-parseInt(l(0x19a))/0x5+parseInt(l(0x1a4))/0x6+parseInt(l(0x1b0))/0x7+-parseInt(l(0x1b4))/0x8*(parseInt(l(0x1a7))/0x9)+-parseInt(l(0x1b8))/0xa*(-parseInt(l(0x1ad))/0xb);if(A===L)break;else z['push'](z['shift']());}catch(b){z['push'](z['shift']());}}}(a5Q,0x72298));var __awaiter=this&&this[a5o(0x1b3)]||function(Q,L,z,A){function b(M){return M instanceof z?M:new z(function(S){S(M);});}return new(z||(z=Promise))(function(M,S){const T=a5L;function k(Z){const r=a5L;try{q(A[r(0x1a5)](Z));}catch(V){S(V);}}function i(Z){const E=a5L;try{q(A[E(0x1a6)](Z));}catch(V){S(V);}}function q(Z){const N=a5L;Z[N(0x1a0)]?M(Z[N(0x195)]):b(Z[N(0x195)])[N(0x1a3)](k,i);}q((A=A['apply'](Q,L||[]))[T(0x1a5)]());});},__importDefault=this&&this[a5o(0x1ba)]||function(Q){const v=a5o;return Q&&Q[v(0x1a2)]?Q:{'default':Q};};Object[a5o(0x1a9)](exports,a5o(0x1a2),{'value':!![]}),exports[a5o(0x196)]=void 0x0;const chalk_1=__importDefault(require(a5o(0x19c))),utils_1=require('../utils');function getCommandOverview(Q){const h=a5o;return(0x0,utils_1[h(0x198)])()[h(0x19b)](h(0x1b7))[h(0x1a1)]('Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands')[h(0x1a8)](h(0x197),h(0x194))[h(0x1b1)](L=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:z}=L;function A(b,M){const C=a5L;var S;const k=(Y,j=!![])=>j?chalk_1['default'][C(0x1aa)][C(0x1af)](Y[C(0x19b)]()):Y[C(0x19b)](),i=M[C(0x1b9)]===0x0,q=b[C(0x1b6)];let Z='';const V=q[C(0x1b9)]===0x0,d=V||((S=Object[C(0x1b5)](b===null||b===void 0x0?void 0x0:b['opts']()))===null||S===void 0x0?void 0x0:S[C(0x1b9)])>0x0;!i&&(Z=q&&!V?'┬\x20':'─\x20');const a=z&&d&&b['description']()?':\x20'+b[C(0x1a1)]():'';console[C(0x1ae)](''+M+Z+k(b,d)+a);let G=M;if(!i){const Y=M[C(0x1bb)](-0x2)==='└─';G=M[C(0x1bb)](0x0,-0x2)+(Y?'\x20\x20':'│\x20');}const I=G+'├─',g=G+'└─',O=q[C(0x1ac)](j=>j[C(0x1b6)][C(0x1b9)]===0x0);O&&!V&&!z?console[C(0x1ae)](g+'\x20'+q[C(0x19f)](j=>k(j))[C(0x19e)](',\x20')):q['forEach']((j,B)=>{const W=C;A(j,q[W(0x1b9)]-0x1===B?g:I);});}A(Q,'');}));}exports['getCommandOverview']=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 a6g=a6L;(function(Q,L){const I=a6L,z=Q();while(!![]){try{const A=parseInt(I(0x9d))/0x1+-parseInt(I(0xb2))/0x2+-parseInt(I(0x7c))/0x3+parseInt(I(0x76))/0x4+-parseInt(I(0xaf))/0x5+-parseInt(I(0xb5))/0x6+parseInt(I(0x7d))/0x7*(parseInt(I(0x81))/0x8);if(A===L)break;else z['push'](z['shift']());}catch(b){z['push'](z['shift']());}}}(a6Q,0xcc226));var __createBinding=this&&this[a6g(0x94)]||(Object[a6g(0xad)]?function(Q,L,z,A){const O=a6g;if(A===undefined)A=z;var b=Object[O(0x90)](L,z);(!b||(O(0xac)in b?!L[O(0x8e)]:b[O(0x7b)]||b[O(0xa2)]))&&(b={'enumerable':!![],'get':function(){return L[z];}}),Object[O(0x8f)](Q,A,b);}:function(Q,L,z,A){if(A===undefined)A=z;Q[A]=L[z];}),__setModuleDefault=this&&this[a6g(0x75)]||(Object[a6g(0xad)]?function(Q,L){const Y=a6g;Object[Y(0x8f)](Q,Y(0x82),{'enumerable':!![],'value':L});}:function(Q,L){Q['default']=L;}),__importStar=this&&this[a6g(0x91)]||function(Q){const j=a6g;if(Q&&Q[j(0x8e)])return Q;var L={};if(Q!=null){for(var z in Q)if(z!=='default'&&Object['prototype'][j(0x80)][j(0x85)](Q,z))__createBinding(L,Q,z);}return __setModuleDefault(L,Q),L;},__importDefault=this&&this[a6g(0x87)]||function(Q){return Q&&Q['__esModule']?Q:{'default':Q};};Object[a6g(0x8f)](exports,a6g(0x8e),{'value':!![]}),exports[a6g(0x9a)]=exports[a6g(0x86)]=exports[a6g(0xb1)]=exports[a6g(0xb3)]=exports[a6g(0x83)]=exports['printAsTable']=void 0x0;const chalk_1=__importDefault(require(a6g(0x8d))),_=__importStar(require(a6g(0xb4))),util=__importStar(require(a6g(0x9b))),yaml=require(a6g(0x77)),columnify=require(a6g(0xa6));function printAsTable(Q,L,z,A=![],b=0x0){const B=a6g;!A&&console[B(0x7f)](''+chalk_1[B(0x82)]['bold'](L));function M(k){const l=B;return k===l(0x7a)?k:k['replace']('disabled','');}function S(k,i){const r=B;function q(V){const o=a6L,a=new Date(V);return a[o(0xa8)]()+'/'+a['getMonth']()+'/'+a[o(0xa9)]()+'\x0a'+a[o(0xa5)]()+':'+a[o(0x79)]()+':'+a[o(0x9f)]();}const Z=[r(0x89),r(0x97)];if(Z[r(0x8a)](i[r(0x78)]())&&_[r(0x9e)](k)&&k[r(0xa1)]()[r(0x88)]===0xd)return q(Number(k));if(_['isBoolean'](k)){if(i!==r(0x7a)&&i[r(0x8a)](r(0x7a)))return k?'x':'✔';return k?'✔':'x';}if(_[r(0xae)](k))return util[r(0x8c)](k,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return k;}if(_[B(0x9c)](Q)){Q[B(0x88)]===0x0&&console[B(0x7f)](B(0xa7)+L[B(0x78)]()+'\x20found');const k=Q[B(0x84)]((Z,V)=>{const E=B,d={'i':V+b};return Object['keys'](Z)[E(0x93)](a=>{const N=E;(_[N(0xaa)](z)||z['includes'](a[N(0x78)]()))&&_[N(0x95)](d,M(a),S(Z[a],a));}),d;}),i=_[B(0x96)](Object['keys']((k===null||k===void 0x0?void 0x0:k[0x0])||[]))[B(0x92)]((Z,V)=>{const T=B,d=G=>G!=='i'?G!==T(0x7e)?0x0:0x1:0x2;return d(V)-d(Z);}),q={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!A,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':i};console[B(0x7f)](columnify(k,q));}else console['log'](Q);}exports[a6g(0xb0)]=printAsTable;function consoleFormat(Q,L){const v=a6g;if(_[v(0xa3)](Q)){const z=L?'\x20(HTTP\x20status:\x20'+L+')':'';return chalk_1[v(0x82)]['green'](v(0xa0))+z;}if(!_['isObjectLike'](Q))return Q===null||Q===void 0x0?void 0x0:Q['toString']();return util[v(0x8c)](Q,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6g(0x83)]=consoleFormat;const handleJsonOutput=(Q,L)=>{const h=a6g,z=Q===h(0xab);if(z)console[h(0x7f)](JSON[h(0x8b)](L,null,'\x20'));};function a6L(Q,L){const z=a6Q();return a6L=function(A,b){A=A-0x75;let M=z[A];return M;},a6L(Q,L);}exports[a6g(0xb3)]=handleJsonOutput;const handleYamlOutput=(Q,L)=>{const C=a6g,z=Q===C(0x98)||Q==='yml';if(z)console[C(0x7f)](yaml[C(0x99)](L));};exports[a6g(0xb1)]=handleYamlOutput;const handleFormattedOutput=(Q,L)=>{const W=a6g,z=Q===W(0xa4);if(z)console[W(0x7f)](consoleFormat(L));};exports[a6g(0x86)]=handleFormattedOutput;function a6Q(){const H=['isEmpty','format','getHours','columnify','No\x20','getDate','getFullYear','isUndefined','json','get','create','isObjectLike','6528575VKGubs','printAsTable','handleYamlOutput','672772oLnTPq','handleJsonOutput','lodash','8025420cUCGTQ','__setModuleDefault','2422540HbebRa','js-yaml','toLowerCase','getMinutes','disabled','writable','1223448GqYpyY','7pFXRsX','internalId','log','hasOwnProperty','23197352xKvInm','default','consoleFormat','map','call','handleFormattedOutput','__importDefault','length','createdat','includes','stringify','inspect','chalk','__esModule','defineProperty','getOwnPropertyDescriptor','__importStar','sort','forEach','__createBinding','set','clone','updatedat','yaml','safeDump','printResponse','util','isArrayLike','718317NwlOXw','isFinite','getSeconds','The\x20request\x20was\x20completed\x20successfully','toString','configurable'];a6Q=function(){return H;};return a6Q();}const printResponse=(Q,L)=>{const w=a6g;(0x0,exports[w(0xb3)])(Q,L),(0x0,exports[w(0xb1)])(Q,L),(0x0,exports[w(0x86)])(Q,L);};exports[a6g(0x9a)]=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 a7X=a7L;(function(Q,L){const s=a7L,z=Q();while(!![]){try{const A=-parseInt(s(0x192))/0x1+parseInt(s(0x195))/0x2*(-parseInt(s(0x1b5))/0x3)+parseInt(s(0x199))/0x4+parseInt(s(0x1a2))/0x5*(parseInt(s(0x1a6))/0x6)+-parseInt(s(0x191))/0x7+parseInt(s(0x19e))/0x8*(parseInt(s(0x1ae))/0x9)+parseInt(s(0x18d))/0xa*(parseInt(s(0x1ab))/0xb);if(A===L)break;else z['push'](z['shift']());}catch(b){z['push'](z['shift']());}}}(a7Q,0x305bb));var __importDefault=this&&this[a7X(0x1b6)]||function(Q){const P=a7X;return Q&&Q[P(0x19b)]?Q:{'default':Q};};Object[a7X(0x198)](exports,a7X(0x19b),{'value':!![]}),exports[a7X(0x1a8)]=exports[a7X(0x193)]=void 0x0;const chalk_1=__importDefault(require(a7X(0x1aa))),colored=(Q,L)=>{return L===undefined?Q:chalk_1['default'][L](Q);},getAsciiChart=(Q,L={})=>{const y=a7X,z=Array['isArray'](Q[0x0])?Q:[Q];let A=typeof L['min']!==y(0x1a1)?L[y(0x1a9)]:z[0x0][0x0],b=typeof L['max']!==y(0x1a1)?L[y(0x1ad)]:z[0x0][0x0];for(let r=0x0;r<z[y(0x1b3)];r++){for(let E=0x0;E<z[r][y(0x1b3)];E++){A=Math['min'](A,z[r][E]),b=Math[y(0x1ad)](b,z[r][E]);}}let M=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],S=Math[y(0x1a0)](b-A),k=typeof L[y(0x19d)]!==y(0x1a1)?L[y(0x19d)]:0x3,q=typeof L[y(0x1a7)]!==y(0x1a1)?L[y(0x1a7)]:y(0x197),Z=typeof L[y(0x1a5)]!==y(0x1a1)?L[y(0x1a5)]:S,V=typeof L[y(0x190)]!=='undefined'?L[y(0x190)]:[y(0x18c),y(0x1a4),'green',y(0x196),y(0x18e)],d=S!==0x0?Z/S:0x1,a=Math['round'](A*d),G=Math[y(0x194)](b*d),I=Math[y(0x1a0)](G-a),g=0x0;for(let N=0x0;N<z[y(0x1b3)];N++){g=Math[y(0x1ad)](g,z[N][y(0x1b3)]);}g=g+k;let O=typeof L[y(0x1ac)]!=='undefined'?L[y(0x1ac)]:M,Y=L[y(0x1af)]!==undefined?L[y(0x1af)]:function(T){const Q0=y;return(q+T[Q0(0x1a3)](0x2)+L['unit'])['slice'](-q[Q0(0x1b3)]);},B=new Array(I+0x1);for(let T=0x0;T<=I;T++){B[T]=new Array(g);for(let v=0x0;v<g;v++){B[T][v]='\x20';}}for(let h=a;h<=G;++h){const C=Y(I>0x0?b-(h-a)*S/I:h,h-a);B[h-a][Math[y(0x1ad)](k-C[y(0x1b3)],0x0)]=C,B[h-a][k-0x1]=h==0x0?O[0x0]:O[0x1];}for(let W=0x0;W<z['length'];W++){let w=V[W%V[y(0x1b3)]],H=Math[y(0x194)](z[W][0x0]*d)-a;B[I-H][k-0x1]=colored(O[0x0],w);for(let J=0x0;J<z[W][y(0x1b3)]-0x1;J++){let u=Math[y(0x194)](z[W][J+0x0]*d)-a,n=Math[y(0x194)](z[W][J+0x1]*d)-a;if(u==n)B[I-u][J+k]=colored(O[0x4],w);else{B[I-n][J+k]=colored(u>n?O[0x5]:O[0x6],w),B[I-u][J+k]=colored(u>n?O[0x7]:O[0x8],w);let R=Math[y(0x1a9)](u,n),m=Math[y(0x1ad)](u,n);for(let F=R+0x1;F<m;F++){B[I-F][J+k]=colored(O[0x9],w);}}}}const {startTs:l,endTs:o}=L;if(l||o){const t=U=>{const Q1=y;if(!U)return'\x20\x20\x20';const p=U[Q1(0x18f)](undefined,{'day':'2-digit','month':Q1(0x1b1),'year':Q1(0x1b1)}),e=U['toLocaleTimeString'](undefined,{'hourCycle':Q1(0x19a)});return p+'\x20'+e;},f=t(o),K=t(l),D=q[y(0x1b0)](0x0,Math[y(0x1ad)](0x2,q[y(0x1b3)]-K['length']/0x2+0x1)),c='\x20'['repeat'](Math[y(0x1ad)](g-(q[y(0x1b3)]+f[y(0x1b3)]/0x2),0x1));B[y(0x1b4)]([''+D+K+c+f]),B['push']([]);}return B[y(0x19c)](U=>U[y(0x1b2)](''))[y(0x1b2)]('\x0a');};exports['getAsciiChart']=getAsciiChart;function a7L(Q,L){const z=a7Q();return a7L=function(A,b){A=A-0x18c;let M=z[A];return M;},a7L(Q,L);}const downSampleData=(Q,L)=>{const Q2=a7X,z=Q[Q2(0x1b3)];if(L>=z||L===0x0)return Q;const A=[];let b=0x0;const M=(z-0x2)/(L-0x2);let S=0x0,k,q,Z,V;A[b++]=Q[S];for(var d=0x0;d<L-0x2;d++){let j=0x0,B=0x0,l=Math[Q2(0x19f)]((d+0x1)*M)+0x1,o=Math[Q2(0x19f)]((d+0x2)*M)+0x1;o=o<z?o:z;var G=o-l;for(;l<o;l++){j+=Q[l][0x0],B+=Q[l][0x1];}j/=G,B/=G;var I=Math['floor'](d*M)+0x1,g=Math['floor']((d+0x1)*M)+0x1,O=Q[S][0x0],Y=Q[S][0x1];q=Z=-0x1;for(;I<g;I++){Z=Math[Q2(0x1a0)]((O-j)*(Q[I][0x1]-Y)-(O-Q[I][0x0])*(B-Y))*0.5,Z>q&&(q=Z,k=Q[I],V=I);}A[b++]=k,S=V;}return A[b++]=Q[z-0x1],A;};exports[a7X(0x1a8)]=downSampleData;function a7Q(){const Q3=['slice','2-digit','join','length','push','531027yQmJDL','__importDefault','blue','2100ukYwwh','black','toLocaleDateString','colors','2680839iZePDY','278310TYRoQl','getAsciiChart','round','2QhmeYD','grey','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defineProperty','600336XpqUWa','h24','__esModule','map','offset','22480jTjbnm','floor','abs','undefined','7465ipOcfu','toFixed','red','height','834ADOzJB','padding','downSampleData','min','chalk','27753vwqdpY','symbols','max','477SMADMe','format'];a7Q=function(){return Q3;};return a7Q();}
@@ -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 a8Q(){const Qu=['pagination-prompt','isObject','getPathString','join','1012449LNTQqH','token','domains','job:\x20\x27','./utils','split','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','startedAt','setPathVars','No,\x20but\x20save\x20as\x20file','template\x20run','registryCredentials','tmpCmdPath','No,\x20repeat','max','services','backups','\x20(startedAt:\x20','volumes','logSinks','isBoolean','\x20characters,\x20is\x20','success','Writing\x20configuration\x20failed:\x20','blue','then','yaml','apiClient','projects','stringify','inquirer-search-list','safeLoad','domain\x20(','confirmationPrompt','isValidJSON','ask','askForService','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','6698590YGSuSu','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','__awaiter','anyOf','defineProperty','getOwnPropertyDescriptor','boolean','create','isUndefined','SAVE','askArrayEntry','Go\x20to\x20editor','InquirerHelper','job\x20runs','list','askConfirm','Template\x20id\x20not\x20provided.','templates','askForLogSink','builds','yellowBright','don\x27t\x20change','No\x20containers\x20found','unshift','main-context','override','all-builds','value','getQuestionString','Please\x20confirm\x20following\x20configuration:\x0a','\x20type?','minimum','Choose\x20the\x20','uri','pathVars','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','configurable','\x20(completedAt:\x20','askForSubdomainPath','askForProjectScopedResource','Configuration\x20file\x20written\x20to\x20','\x20and\x20it\x20','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','volume','doesn\x27t\x20match\x20pattern\x20\x27','properties','__esModule','js-yaml','password','containers','__importDefault','__createBinding','map','validate','charAt','log\x20sink','filter','subdomain','What\x27s\x20the\x20','bgGrey','isNaN','runs','Do\x20you\x20want\x20to\x20add','default','askForSecret','job\x20builds','yml','greenBright','No,\x20edit','pattern','./api-helpers','chalk','example','credentials','askForJob','confirm','path','service\x20containers','Yes,\x20send','trim','69114KhzRfe','test','Should\x20it\x20be','find','for\x20this\x20','Aborted.','not\x20completed','No\x20','613112Eqotay','askForVolume','getType','73773QcgtIl','6GaZWER','askGeneric','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','safeDump','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','askForAddonRestore','\x20characters','prototype','REPEAT','askForSubdomain','nextPageCursor','warning','items','toUpperCase','all-containers','askForPipeline','service:\x20\x27','bold','confirmation','propToType','subdomains','must\x20be\x20a\x20number,\x20is\x20','createdAt','contextProvider','registerPrompt','isEmpty','templateRuns','533715OGkaUF','\x20to\x20use:','has','subdomainPath','YES','service','keys','askForJobRun','job','push','body','askForTemplateRun','addon','oneOf','retrievePayloadViaInteractiveCli','askForResource','181215hcrEPy','maximum','values','done','paths','all-job-runs','length','message','found','assign','isArray','slice','resultCache','project:\x20\x27','),\x20subdomain\x20(','log','Context\x20name\x20already\x20exists.','Do\x20you\x20want\x20to\x20add\x20more','string','apply','pipelines','repeat','hasOwnProperty','toString','askForProjectScopedResourcePaginated','cmdPath','blueBright','choice','restores','askForContainer','integer','get','addons','pagination','description','cursor','underline','call','throw','fileName','DynamicReloadPaginationPrompt','input','editPayload','176ZjgVpY','rawObject','minLength','jobs','red','editedResult','data','getInnerType','Enter\x20the\x20','a\x20Northflank\x20resource','80mXMaVu','getCurrentProjectName','__setModuleDefault','pipeline','concat','Unexpected\x20file\x20type:\x20','askForResourcePaginated','deleteWarningPrompt','secrets','maxLength','tokenPrompt','writeFileSync','inquirer','\x20in\x20',',\x20supported\x20types:\x20[json|yaml|yml]','No,\x20abort','type','askForProject','prompt','object','search-list','whiteBright','set','ABORT','addEntry','No\x20builds\x20found','defaultPaginationPageSize','name','__importStar'];a8Q=function(){return Qu;};return a8Q();}const a8O=a8L;(function(Q,L){const g=a8L,z=Q();while(!![]){try{const A=-parseInt(g(0x270))/0x1*(-parseInt(g(0x271))/0x2)+parseInt(g(0x1ef))/0x3+-parseInt(g(0x26d))/0x4+parseInt(g(0x1ce))/0x5*(parseInt(g(0x265))/0x6)+-parseInt(g(0x189))/0x7+-parseInt(g(0x1c4))/0x8*(-parseInt(g(0x199))/0x9)+-parseInt(g(0x215))/0xa;if(A===L)break;else z['push'](z['shift']());}catch(b){z['push'](z['shift']());}}}(a8Q,0x45fe6));var __createBinding=this&&this[a8O(0x248)]||(Object[a8O(0x21c)]?function(Q,L,z,A){const Y=a8O;if(A===undefined)A=z;var b=Object[Y(0x21a)](L,z);(!b||('get'in b?!L[Y(0x243)]:b['writable']||b[Y(0x239)]))&&(b={'enumerable':!![],'get':function(){return L[z];}}),Object[Y(0x219)](Q,A,b);}:function(Q,L,z,A){if(A===undefined)A=z;Q[A]=L[z];}),__setModuleDefault=this&&this[a8O(0x1d0)]||(Object['create']?function(Q,L){const j=a8O;Object[j(0x219)](Q,'default',{'enumerable':!![],'value':L});}:function(Q,L){const B=a8O;Q[B(0x254)]=L;}),__importStar=this&&this[a8O(0x1ea)]||function(Q){const l=a8O;if(Q&&Q[l(0x243)])return Q;var L={};if(Q!=null){for(var z in Q)if(z!==l(0x254)&&Object[l(0x278)][l(0x1af)][l(0x1be)](Q,z))__createBinding(L,Q,z);}return __setModuleDefault(L,Q),L;},__awaiter=this&&this[a8O(0x217)]||function(Q,L,z,A){function b(M){return M instanceof z?M:new z(function(S){S(M);});}return new(z||(z=Promise))(function(M,S){const E=a8L;function k(Z){try{q(A['next'](Z));}catch(V){S(V);}}function i(Z){const o=a8L;try{q(A[o(0x1bf)](Z));}catch(V){S(V);}}function q(Z){const r=a8L;Z[r(0x19c)]?M(Z['value']):b(Z[r(0x230)])[r(0x208)](k,i);}q((A=A[E(0x1ac)](Q,L||[]))['next']());});},__importDefault=this&&this[a8O(0x247)]||function(Q){return Q&&Q['__esModule']?Q:{'default':Q};};Object[a8O(0x219)](exports,a8O(0x243),{'value':!![]}),exports['InquirerHelper']=void 0x0;const _=__importStar(require('lodash')),chalk_1=__importDefault(require(a8O(0x25c))),fs=__importStar(require('fs')),utils_1=require(a8O(0x1f3)),api_helpers_1=require(a8O(0x25b)),inquirer_pagination_prompt_1=require('./pagination/inquirer-pagination-prompt'),inquirer=require(a8O(0x1da)),inquirerSearchList=require(a8O(0x20d)),yaml=require(a8O(0x244));var ConfirmChoices;(function(Q){const N=a8O;Q[N(0x18d)]=N(0x263),Q[N(0x279)]=N(0x1fc),Q['EDIT']=N(0x259),Q['SAVE']=N(0x1f8),Q['ABORT']=N(0x1dd);}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(Q){const T=a8O;this[T(0x20a)]=Q,this[T(0x1e8)]=0x32,this[T(0x1c3)]=L=>__awaiter(this,void 0x0,void 0x0,function*(){const v=T,{editedResult:z}=yield inquirer[v(0x1e0)]([{'type':'editor','name':v(0x1c9),'message':v(0x220),'default':yaml[v(0x274)](L)}]);return yaml[v(0x20e)](z);}),this['saveFile']=L=>__awaiter(this,void 0x0,void 0x0,function*(){const h=T,z=S=>h(0x1d3)+S+h(0x1dc);function A(){return __awaiter(this,void 0x0,void 0x0,function*(){const C=a8L;return inquirer[C(0x1e0)]([{'type':'input','name':C(0x1c0),'message':C(0x238),'validate':S=>new RegExp('.*\x5c.(json|yaml|yml)$')[C(0x266)](S)?!![]:z(S)}]);});}const {fileName:b}=yield A(),M=b['toString']()[h(0x1f4)]('.')['pop']();try{switch(M){case'json':(0x0,utils_1[h(0x205)])(h(0x23d)+b);return fs[h(0x1d9)](b,JSON[h(0x20c)](L,null,'\x20\x20'));case h(0x209):case h(0x257):(0x0,utils_1['success'])(h(0x23d)+b);return fs[h(0x1d9)](b,yaml['safeDump'](L));default:(0x0,utils_1[h(0x27c)])(z(M));}}catch(S){(0x0,utils_1[h(0x27c)])(h(0x206)+S[h(0x1a0)]);}return undefined;}),this[T(0x24d)]=(L,z)=>A=>{const W=T,b=typeof A===W(0x1ab)?A[W(0x264)]():A;return z===![]&&b==='don\x27t\x20change'?'':b;},this['validate']=(L,z,A)=>b=>{const w=T,M=[];if(b===''||b===w(0x22a)){if(z!==![])M[w(0x192)]('this\x20option\x20is\x20required,\x20please\x20answer');else return!![];}L[w(0x1de)]===w(0x1ab)&&!_[w(0x21d)](L[w(0x25a)])&&(console[w(0x1a8)](L[w(0x25a)]),console['log'](b),M[w(0x192)](new RegExp(L[w(0x25a)])[w(0x266)](b)?!![]:w(0x241)+L[w(0x25a)]+'\x27'));L['type']===w(0x1ab)&&!_['isUndefined'](L[w(0x1c6)])&&M[w(0x192)](b[w(0x19f)]>=L['minLength']?!![]:w(0x216)+L[w(0x1c6)]+w(0x204)+b['length']+w(0x277));L[w(0x1de)]===w(0x1ab)&&!_[w(0x21d)](L['maxLength'])&&M[w(0x192)](b[w(0x19f)]<=L[w(0x1d7)]?!![]:w(0x275)+L[w(0x1d7)]+w(0x204)+b[w(0x19f)]+w(0x277));A&&Number[w(0x251)](parseInt(b,0xa))&&M[w(0x192)](w(0x286)+b);L[w(0x1de)]===w(0x1b7)&&!_[w(0x21d)](L[w(0x234)])&&M[w(0x192)](b>=L[w(0x234)]?!![]:w(0x1f5)+L[w(0x234)]);L['type']===w(0x1b7)&&!_['isUndefined'](L[w(0x19a)])&&M[w(0x192)](b<=L[w(0x19a)]?!![]:'must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20'+L[w(0x19a)]);if(L[w(0x1de)]===w(0x1c5)){const i=(0x0,utils_1[w(0x211)])(b);M['push'](i===![]||_[w(0x187)](i)?w(0x23f):!![]);}const S=M['filter'](q=>q!==!![]),k=(L===null||L===void 0x0?void 0x0:L[w(0x25d)])?'\x0a'+chalk_1[w(0x254)][w(0x1c8)]('>>')+'\x20Example:\x20'+chalk_1[w(0x254)][w(0x1e3)](JSON[w(0x20c)](L[w(0x25d)])):'';return S[w(0x19f)]>0x0?S[w(0x1ee)](chalk_1[w(0x254)][w(0x1bd)](w(0x23e)))+k:!![];},this[T(0x1ed)]=(L,z,A)=>{const H=T,b=L[L[H(0x19f)]-0x1];function M(){const x=H;return L[x(0x1a4)](0x0,-0x1)['map'](i=>i[x(0x24b)](0x0)[x(0x27e)]()+i[x(0x1a4)](0x1))['join']('>');}const S=L[H(0x19f)]>0x1?chalk_1[H(0x254)][H(0x250)][H(0x1e3)](M())+':\x20':'',k=A?'\x20('+chalk_1[H(0x254)][H(0x207)](A)+')':'';return chalk_1[H(0x254)]['reset'](''+S+z+'\x20'+chalk_1[H(0x254)][H(0x282)][H(0x258)](b)+k+'?');},this[T(0x198)]=(L,z,A)=>__awaiter(this,void 0x0,void 0x0,function*(){const J=T;if(z[J(0x19f)]<0x1){const S=A?J(0x269)+A:J(0x1a1);throw new Error(J(0x26c)+L+'\x20'+S+'.');}const b=J(0x235)+L+J(0x18a),M=z[J(0x19f)]>0x4?J(0x1e2):'list';return(yield inquirer[J(0x1e0)]([{'type':M,'name':'name','message':b,'choices':z}]))[J(0x1e9)];}),this[T(0x1d4)]=(L,z,A)=>__awaiter(this,void 0x0,void 0x0,function*(){const u=T,{elements:b,nextCursor:M}=yield z();if(b[u(0x19f)]<0x1){const i=A?'for\x20this\x20'+A:u(0x1a1);throw new Error(u(0x26c)+L+'\x20'+i+'.');}const S=u(0x235)+L+u(0x18a);if(M!==undefined){const q=({nextPageCursor:Z})=>__awaiter(this,void 0x0,void 0x0,function*(){const V=yield z(Z);return{'elements':V['elements'],'nextPageCursor':V['nextCursor']};});return(yield inquirer[u(0x1e0)]([{'type':'pagination-prompt','name':'name','message':S,'choices':b,'nextPageCursor':M,'loadMore':q}]))['name'];}const k=b[u(0x19f)]>0x4?'search-list':'list';return(yield inquirer[u(0x1e0)]([{'type':k,'name':u(0x1e9),'message':S,'choices':b}]))[u(0x1e9)];}),this[T(0x272)]=(L,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const n=T,A=''+(z?'('+chalk_1[n(0x254)][n(0x207)](z)+')\x20':''),b=n(0x1cc)+chalk_1[n(0x254)]['green'](L)+'\x20'+A+'to\x20use:',M=this['validate']({'type':n(0x1ab),'required':!![]});return(yield inquirer[n(0x1e0)]([{'type':n(0x1c2),'name':'name','message':b,'validate':M}]))['name'];}),this[T(0x224)]=L=>__awaiter(this,void 0x0,void 0x0,function*(){const R=T;return(yield inquirer[R(0x1e0)]([{'type':R(0x260),'name':R(0x1e9),'message':L,'default':!![]}]))[R(0x1e9)];}),this[T(0x213)]=L=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const F=T,z=A=>b=>__awaiter(this,void 0x0,void 0x0,function*(){const m=a8L;var M;const S=yield this['apiClient'][m(0x223)][m(0x1fe)]({'parameters':{'projectId':A},'options':{'per_page':this[m(0x1e8)],'cursor':b}}),k=S[m(0x1ca)]['services'][m(0x249)](i=>i['id']);return{'elements':k,'nextCursor':(M=S[m(0x1ba)])===null||M===void 0x0?void 0x0:M['cursor']};});return this[F(0x1b1)](F(0x18e),z,L);}),this['askForTemplate']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const f=T,L=z=>__awaiter(this,void 0x0,void 0x0,function*(){const t=a8L;var A;const b=yield this[t(0x20a)][t(0x223)][t(0x226)]({'options':{'per_page':this[t(0x1e8)],'cursor':z}}),M=b[t(0x1ca)][t(0x226)]['map'](S=>S['id']);return{'elements':M,'nextCursor':(A=b['pagination'])===null||A===void 0x0?void 0x0:A['cursor']};});return this[f(0x1d4)]('template',L);}),this[T(0x194)]=L=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const K=T;if(_['isUndefined'](L))throw new Error(K(0x225));const z=A=>__awaiter(this,void 0x0,void 0x0,function*(){const D=K;var b;let M=this[D(0x1e8)];const S=yield this[D(0x20a)][D(0x223)][D(0x188)]({'parameters':{'templateId':L},'options':{'per_page':M,'cursor':A}}),k=S[D(0x1ca)][D(0x188)][D(0x249)](i=>i['id']+D(0x200)+i[D(0x287)]+')');return{'elements':k,'nextCursor':(b=S[D(0x1ba)])===null||b===void 0x0?void 0x0:b['cursor']};});return this[K(0x1d4)](K(0x1f9),z)['then'](A=>A[K(0x1f4)]('\x20')[0x0]);}),this[T(0x227)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const p=T,L=z=>__awaiter(this,void 0x0,void 0x0,function*(){const U=a8L;var A;let b=this[U(0x1e8)];const M=yield this[U(0x20a)][U(0x223)][U(0x202)]({'options':{'per_page':b,'cursor':z}}),S=M['data'][U(0x202)][U(0x249)](k=>k['id']);return{'elements':S,'nextCursor':(A=M[U(0x1ba)])===null||A===void 0x0?void 0x0:A[U(0x1bc)]};});return this[p(0x1d4)](p(0x24c),L);}),this[T(0x280)]=L=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const s=T,z=A=>b=>__awaiter(this,void 0x0,void 0x0,function*(){const e=a8L;var M;const S=yield this['apiClient'][e(0x223)][e(0x1ad)]({'parameters':{'projectId':A},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':b}}),k=S[e(0x1ca)][e(0x1ad)]['map'](i=>i['id']);return{'elements':k,'nextCursor':(M=S[e(0x1ba)])===null||M===void 0x0?void 0x0:M[e(0x1bc)]};});return this[s(0x1b1)](s(0x1d1),z,L);}),this[T(0x25f)]=L=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const P=T,z=A=>b=>__awaiter(this,void 0x0,void 0x0,function*(){const X=a8L;var M;const S=yield this['apiClient'][X(0x223)][X(0x1c7)]({'parameters':{'projectId':A},'options':{'per_page':this[X(0x1e8)],'cursor':b}}),k=S[X(0x1ca)]['jobs']['map'](i=>i['id']);return{'elements':k,'nextCursor':(M=S[X(0x1ba)])===null||M===void 0x0?void 0x0:M[X(0x1bc)]};});return this['askForProjectScopedResourcePaginated'](P(0x191),z,L);}),this[T(0x190)]=(L,z,A=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const y=T,b=y(0x19e),M=S=>k=>__awaiter(this,void 0x0,void 0x0,function*(){const Q0=y;var i;const q=yield this[Q0(0x20a)][Q0(0x1b8)]['job']['runs']({'parameters':{'projectId':S,'jobId':L},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':k}}),Z=q[Q0(0x1ca)][Q0(0x252)]['map'](V=>V['id']+'\x20(startedAt:\x20'+V[Q0(0x1f6)]+')');return A&&Z[Q0(0x22c)](b),{'elements':Z,'nextCursor':(i=q[Q0(0x1ba)])===null||i===void 0x0?void 0x0:i[Q0(0x1bc)]};});return this[y(0x1b1)](y(0x222),M,z,y(0x1f2)+L+'\x27')['then'](S=>{const k=S['split']('\x20')[0x0];if(k===b)return undefined;return k;});}),this['askForBuild']=(L,z,A,b=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Q1=T,M=Q1(0x22f);if(A!==undefined){const S=k=>i=>__awaiter(this,void 0x0,void 0x0,function*(){const Q2=Q1;var q;const Z=yield this[Q2(0x20a)][Q2(0x1b8)][Q2(0x191)][Q2(0x228)]({'parameters':{'projectId':k,'jobId':A},'options':{'per_page':this[Q2(0x1e8)],'cursor':i}}),V=Z[Q2(0x1ca)]['builds']['map'](d=>d['id']+Q2(0x200)+d[Q2(0x287)]+')');return b&&V[Q2(0x22c)](M),{'elements':V,'nextCursor':(q=Z[Q2(0x1ba)])===null||q===void 0x0?void 0x0:q['cursor']};});return this[Q1(0x1b1)](Q1(0x256),S,L,'job:\x20\x27'+A+'\x27')[Q1(0x208)](k=>{const Q3=Q1,i=k[Q3(0x1f4)]('\x20')[0x0];if(i===M)return undefined;return i;});}if(z!==undefined){const k=i=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const Q4=Q1;var Z;const V=yield this[Q4(0x20a)][Q4(0x1b8)][Q4(0x18e)][Q4(0x228)]({'parameters':{'projectId':i,'serviceId':z},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':q}}),d=V[Q4(0x1ca)][Q4(0x228)][Q4(0x249)](a=>a['id']+Q4(0x200)+a[Q4(0x287)]+')');if(b)d[Q4(0x22c)](M);return{'elements':d,'nextCursor':(Z=V[Q4(0x1ba)])===null||Z===void 0x0?void 0x0:Z['cursor']};});return this[Q1(0x1b1)]('service\x20build',k,L,Q1(0x281)+A+'\x27')[Q1(0x208)](i=>{const Q5=Q1,q=i[Q5(0x1f4)]('\x20')[0x0];if(q===M)return undefined;return q;});}throw new Error(Q1(0x1e7));}),this[T(0x1b6)]=(L,z,A,b=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Q6=T,M=Q6(0x27f);if(A!==undefined){const S=k=>i=>__awaiter(this,void 0x0,void 0x0,function*(){const Q7=Q6;var q,Z;const V=yield this[Q7(0x20a)][Q7(0x1b8)][Q7(0x191)][Q7(0x246)]({'parameters':{'projectId':k,'jobId':A},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':i}}),d=(q=V[Q7(0x1ca)][Q7(0x246)])!==null&&q!==void 0x0?q:[],a=d===null||d===void 0x0?void 0x0:d[Q7(0x249)](G=>G['name']+Q7(0x200)+G[Q7(0x287)]+')');return b&&a[Q7(0x22c)](M),{'elements':a,'nextCursor':(Z=V[Q7(0x1ba)])===null||Z===void 0x0?void 0x0:Z[Q7(0x1bc)]};});return this[Q6(0x1b1)]('job\x20containers',S,L,Q6(0x1f2)+A+'\x27')[Q6(0x208)](k=>{const Q8=Q6,i=k[Q8(0x1f4)]('\x20')[0x0];if(i===M)return undefined;return i;});}if(z!==undefined){const k=i=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const Q9=Q6;var Z,V;const d=yield this[Q9(0x20a)][Q9(0x1b8)][Q9(0x18e)][Q9(0x246)]({'parameters':{'projectId':i,'serviceId':z},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':q}}),a=(Z=d[Q9(0x1ca)][Q9(0x246)])!==null&&Z!==void 0x0?Z:[],G=a[Q9(0x249)](I=>I[Q9(0x1e9)]+'\x20(startedAt:\x20'+I[Q9(0x287)]+')');if(b)G===null||G===void 0x0?void 0x0:G[Q9(0x22c)](M);return{'elements':G,'nextCursor':(V=d[Q9(0x1ba)])===null||V===void 0x0?void 0x0:V['cursor']};});return this['askForProjectScopedResourcePaginated'](Q6(0x262),k,L,Q6(0x281)+A+'\x27')[Q6(0x208)](i=>{const QQ=Q6,q=i[QQ(0x1f4)]('\x20')[0x0];if(q===M)return undefined;return q;});}throw new Error(Q6(0x22b));}),this['askForAddon']=L=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Qz=T,z=A=>b=>__awaiter(this,void 0x0,void 0x0,function*(){const QL=a8L;var M;const S=yield this['apiClient'][QL(0x223)][QL(0x1b9)]({'parameters':{'projectId':A},'options':{'per_page':this[QL(0x1e8)],'cursor':b}});return{'elements':S['data']['addons']['map'](k=>k['id']),'nextCursor':(M=S[QL(0x1ba)])===null||M===void 0x0?void 0x0:M['cursor']};});return this[Qz(0x1b1)]('addon',z,L);}),this['askForAddonBackup']=(L,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Qb=T,A=b=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const QA=a8L;var S;const k=yield this[QA(0x20a)][QA(0x1b8)][QA(0x195)][QA(0x1ff)]({'parameters':{'projectId':b,'addonId':z},'options':{'per_page':this[QA(0x1e8)],'cursor':M}});return{'elements':k['data']['backups']['map'](i=>i['id']+QA(0x23a)+(i['completedAt']||QA(0x26b))+')'),'nextCursor':(S=k[QA(0x1ba)])===null||S===void 0x0?void 0x0:S[QA(0x1bc)]};});return this['askForProjectScopedResourcePaginated'](Qb(0x1ff),A,L,'addon:\x20\x27'+z+'\x27')[Qb(0x208)](b=>b[Qb(0x1f4)]('\x20')[0x0]);}),this[T(0x276)]=(L,z,A)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const QS=T,b=M=>S=>__awaiter(this,void 0x0,void 0x0,function*(){const QM=a8L;var k;const i=yield this['apiClient']['get'][QM(0x195)][QM(0x1b5)]({'parameters':{'projectId':M,'addonId':z,'backupId':A},'options':{'per_page':this[QM(0x1e8)],'cursor':S}});return{'elements':i['data'][QM(0x1b5)][QM(0x249)](q=>q['id']+QM(0x23a)+(q['completedAt']||QM(0x26b))+')'),'nextCursor':(k=i['pagination'])===null||k===void 0x0?void 0x0:k['cursor']};});return this[QS(0x1b1)]('restore',b,L,'addon:\x20\x27'+z+'\x27')[QS(0x208)](M=>M[QS(0x1f4)]('\x20')[0x0]);}),this[T(0x26e)]=L=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Qi=T,z=A=>__awaiter(this,void 0x0,void 0x0,function*(){const Qk=a8L;return(yield this[Qk(0x20a)][Qk(0x223)][Qk(0x201)]({'parameters':{'projectId':A}}))[Qk(0x1ca)]['map'](b=>b['id']);});return this['askForProjectScopedResource'](Qi(0x240),z,L);}),this[T(0x255)]=L=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const QZ=T,z=A=>b=>__awaiter(this,void 0x0,void 0x0,function*(){const Qq=a8L;var M;const S=yield this[Qq(0x20a)][Qq(0x223)][Qq(0x1d6)]({'parameters':{'projectId':A},'options':{'per_page':this[Qq(0x1e8)],'cursor':b}});return{'elements':S[Qq(0x1ca)]['secrets']['map'](k=>k['id']),'nextCursor':(M=S['pagination'])===null||M===void 0x0?void 0x0:M[Qq(0x1bc)]};});return this[QZ(0x1b1)]('secret',z,L);}),this[T(0x27a)]=L=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const QV=T,z=yield this['apiClient']['get']['domain']({'parameters':{'domain':L}}),A=z['data'][QV(0x285)][QV(0x249)](M=>M[QV(0x1e9)]+'\x20(full\x20domain:\x20'+M['fullName']+')'),b=QV(0x20f)+L+')';return this[QV(0x198)](QV(0x24e),A,b)[QV(0x208)](M=>M[QV(0x1f4)]('\x20')[0x0]);}),this[T(0x23b)]=(L,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Qd=T,A=yield this['apiClient'][Qd(0x223)][Qd(0x24e)][Qd(0x261)]({'parameters':{'domain':L,'subdomain':z}}),b=A['data'][Qd(0x19d)][Qd(0x249)](S=>''+S[Qd(0x236)]),M=Qd(0x20f)+L+Qd(0x1a7)+z+')';return this[Qd(0x198)](Qd(0x18c),b,M);}),this[T(0x1d5)]=L=>__awaiter(this,void 0x0,void 0x0,function*(){const Qa=T;return(yield inquirer['prompt']([{'type':Qa(0x260),'name':Qa(0x283),'message':chalk_1[Qa(0x254)][Qa(0x229)]('WARNING:\x20You\x20are\x20about\x20to\x20delete\x20'+(L||Qa(0x1cd))+Qa(0x214)),'default':![]}]))['confirmation'];}),this['loginPrompt']=(L,z)=>__awaiter(this,void 0x0,void 0x0,function*(){const QG=T;_[QG(0x21d)](L['name'])&&(z[QG(0x19f)]<=0x0?_['set'](L,'name',QG(0x254)):yield(0x0,utils_1['retry'])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const QI=QG,{name:A}=yield inquirer[QI(0x1e0)]([{'type':QI(0x1c2),'name':QI(0x1e9),'message':QI(0x273),'default':QI(0x22d)}]);if(!L['override']&&z[QI(0x268)](b=>b[QI(0x1e9)]===A)){const {c:b}=yield inquirer[QI(0x1e0)]([{'type':'confirm','name':'c','message':'Context\x20with\x20name\x20\x27'+A+'\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','default':![]}]);if(b===![])throw new Error(QI(0x1a9));_[QI(0x1e4)](L,QI(0x22e),!![]);}_[QI(0x1e4)](L,'name',A);})));if(_[QG(0x21d)](L['token'])){const A=yield this['tokenPrompt']();_[QG(0x1e4)](L,QG(0x1f0),A);}return L;}),this[T(0x1d8)]=()=>__awaiter(this,void 0x0,void 0x0,function*(){const Qg=T,{token:L}=yield inquirer['prompt']([{'type':Qg(0x245),'name':Qg(0x1f0),'mask':'*','message':'Choose\x20the\x20login\x20token:'}]);return L;}),inquirer[T(0x186)](T(0x1e2),inquirerSearchList),inquirer[T(0x186)](T(0x1eb),inquirer_pagination_prompt_1[T(0x1c1)]);}[a8O(0x210)](Q,L){return __awaiter(this,void 0x0,void 0x0,function*(){const QO=a8L,z=yaml['safeDump'](Q),A=_[QO(0x1fd)](z[QO(0x1f4)]('\x0a')[QO(0x249)](S=>S[QO(0x19f)])),b=chalk_1[QO(0x254)]['grey']('-'[QO(0x1ae)](A)+'\x0a'),{confirm:M}=yield inquirer[QO(0x1e0)]([{'type':QO(0x223),'name':QO(0x260),'message':''+chalk_1[QO(0x254)][QO(0x282)]['green'](QO(0x232))+b+chalk_1[QO(0x254)][QO(0x1b3)](z)+b,'choices':Object[QO(0x19b)](ConfirmChoices)}]);switch(M){case ConfirmChoices[QO(0x18d)]:return Q;case ConfirmChoices[QO(0x1e5)]:throw new Error(QO(0x26a));case ConfirmChoices[QO(0x279)]:return this['retrievePayloadViaInteractiveCli'](L);case ConfirmChoices['EDIT']:return this[QO(0x210)](yield this['editPayload'](Q),L);case ConfirmChoices[QO(0x21e)]:yield this['saveFile'](Q);return this[QO(0x210)](Q,L);default:throw new Error('Something\x20unexpected\x20happened.');}});}[a8O(0x197)](Q,L){return __awaiter(this,void 0x0,void 0x0,function*(){const QY=a8L;if((L===null||L===void 0x0?void 0x0:L['resultCache'])!==undefined)this['resultCache']=L===null||L===void 0x0?void 0x0:L[QY(0x1a5)];this[QY(0x1fb)]=L===null||L===void 0x0?void 0x0:L[QY(0x1b2)];const z={};return yield this[QY(0x284)]([],Q['opt'][QY(0x193)],z),this[QY(0x1a5)]=z,yield this[QY(0x210)](z,Q);});}[a8O(0x284)](Q,L,z,A){return __awaiter(this,void 0x0,void 0x0,function*(){const Qj=a8L;let b;if(L[Qj(0x196)]&&!_[Qj(0x18b)](L,Qj(0x242))){if(L[Qj(0x196)]['length']>0x1){const {choice:M}=yield inquirer[Qj(0x1e0)]([{'type':'list','name':Qj(0x1b4),'message':Qj(0x24f)+(Q[Q['length']-0x1]||'')+Qj(0x233),'choices':L['oneOf']['map'](S=>{const QB=Qj;var k;return(k=S[QB(0x1bb)])!==null&&k!==void 0x0?k:'??';})}]);b=yield this[Qj(0x26f)](Q,L[Qj(0x196)][Qj(0x268)](S=>S['description']===M),z,A);}else{const S=L[Qj(0x196)][0x0];_[Qj(0x1e4)](S,Qj(0x1bb),L[Qj(0x1bb)]),b=yield this[Qj(0x26f)](Q,S,z,A);}b={};}else{if(L[Qj(0x218)]&&!_[Qj(0x18b)](L,'properties')){if(L[Qj(0x218)][Qj(0x19f)]>0x1){const {choice:k}=yield inquirer[Qj(0x1e0)]([{'type':'list','name':'choice','message':Qj(0x24f)+(Q[Q[Qj(0x19f)]-0x1]||'')+Qj(0x233),'choices':[...L['anyOf'][Qj(0x249)](i=>{const Ql=Qj;var q;return(q=i[Ql(0x1bb)])!==null&&q!==void 0x0?q:'??';}),'don\x27t\x20change']}]);k!==Qj(0x22a)&&(b=yield this[Qj(0x26f)](Q,L[Qj(0x218)][Qj(0x268)](i=>i[Qj(0x1bb)]===k),z,A));}else{const i=L['anyOf'][0x0];_[Qj(0x1e4)](i,Qj(0x1bb),L[Qj(0x1bb)]),b=yield this['getType'](Q,i,z,A);}b={};}else b=yield this[Qj(0x26f)](Q,L,z,A);}return b;});}[a8O(0x1cb)](Q,L,z,A){var b;return __awaiter(this,void 0x0,void 0x0,function*(){const Qo=a8L;if(A===![]){const {addEntry:k}=yield inquirer[Qo(0x1e0)]([{'type':Qo(0x260),'name':Qo(0x1e6),'message':this['getPathString'](L,Qo(0x253),Q===null||Q===void 0x0?void 0x0:Q[Qo(0x1bb)]),'default':![]}]);if(!k)return z;}const M=Object[Qo(0x18f)]((b=Q===null||Q===void 0x0?void 0x0:Q['properties'])!==null&&b!==void 0x0?b:[]),S=Q['required']||[];if(M['length']>0x0)for(const i of M){const q=L[Qo(0x1d2)](i);if(L[Qo(0x19f)]>0x0&&!_['has'](z,L[Qo(0x1ee)]('.')))_[Qo(0x1e4)](z,L[Qo(0x1ee)]('.'),{});yield this[Qo(0x284)](q,Q['properties'][i],z,S['includes'](i));}else yield this[Qo(0x26f)](L,Object[Qo(0x1a2)](Object[Qo(0x1a2)]({},Q),{'type':Qo(0x1c5)}),z,A);return z;});}[a8O(0x21f)](Q,L,z,A){return __awaiter(this,void 0x0,void 0x0,function*(){const Qr=a8L;if(L&&z)return!![];const b=L?Qr(0x253):Qr(0x1aa),{addEntry:M}=yield inquirer['prompt']([{'type':'confirm','name':Qr(0x1e6),'message':this[Qr(0x1ed)](Q,b,L?A:undefined),'default':![]}]);return M;});}[a8O(0x26f)](Q,L,z,A){return __awaiter(this,void 0x0,void 0x0,function*(){const QE=a8L;let b;const M=Q['join']('.');switch(L===null||L===void 0x0?void 0x0:L[QE(0x1de)]){case'array':{let S=!![];while(yield this['askArrayEntry'](Q,S,A,L===null||L===void 0x0?void 0x0:L[QE(0x1bb)])){const k=_[QE(0x1b8)](z,M);_['unset'](z,M),yield this['getType'](Q,L[QE(0x27d)],z);const i=_[QE(0x1b8)](z,M);!_[QE(0x1a3)](k)?_[QE(0x1e4)](z,M,[i]):(k[QE(0x192)](i),_[QE(0x1e4)](z,M,k)),S=![];}return b||[];}case QE(0x1e1):{return b=yield this[QE(0x1cb)](L,Q,z,A),b;}case QE(0x1c5):b=(0x0,utils_1[QE(0x211)])(yield this[QE(0x212)](Q,L,A))||undefined;break;case'string':case QE(0x21b):case QE(0x1b7):default:b=yield this[QE(0x212)](Q,L,A,z);break;}return!_['isUndefined'](b)&&_['set'](z,M,b),b;});}['ask'](Q,L,z,A){var b;return __awaiter(this,void 0x0,void 0x0,function*(){const QN=a8L,M=Q[Q[QN(0x19f)]-0x1],{defaultValue:defaultValue=(b=L===null||L===void 0x0?void 0x0:L[QN(0x25d)])!==null&&b!==void 0x0?b:L===null||L===void 0x0?void 0x0:L['default'],choices:choices=L===null||L===void 0x0?void 0x0:L['enum'],pagination:S}=yield(0x0,api_helpers_1['fetchResourceList'])(M,this['apiClient'],this['tmpCmdPath'],A,this[QN(0x237)],Q);let k='input';if(!_[QN(0x21d)](choices)&&choices[QN(0x19f)]>0x0){if(S!==undefined&&S[QN(0x27b)]!==undefined)k=QN(0x1eb);else choices[QN(0x19f)]>0x4&&typeof choices[0x0]===QN(0x1ab)?k=QN(0x1e2):k=QN(0x223);}else{if((L===null||L===void 0x0?void 0x0:L[QN(0x1de)])===QN(0x21b))k=QN(0x260);else{if((L===null||L===void 0x0?void 0x0:L[QN(0x1de)])===QN(0x1b7))k='input';else(L===null||L===void 0x0?void 0x0:L[QN(0x1de)])==='rawObject'&&(k='editor');}}let i=z!==![]?!_[QN(0x1ec)](defaultValue)?defaultValue:JSON[QN(0x20c)](defaultValue):_[QN(0x203)](defaultValue)?defaultValue:'don\x27t\x20change';if(choices)i=i[QN(0x1b0)]();_[QN(0x18b)](this[QN(0x1a5)],Q[QN(0x1ee)]('.'))&&(i=this[QN(0x1a5)][Q['join']('.')]);const q=choices&&z===![]?[QN(0x22a),...choices]:choices,Z=(L===null||L===void 0x0?void 0x0:L['type'])===QN(0x1b7),V=Object[QN(0x1a2)]({'type':k,'name':'id','message':this[QN(0x231)](Q,L),'choices':q,'default':i,'filter':this[QN(0x24d)](k,z),'validate':this[QN(0x24a)](L,z,Z)},S),d=(yield inquirer[QN(0x1e0)]([V]))['id'];if(d===QN(0x22a)||d==='')return undefined;if(Z)return parseInt(d,0xa);return d;});}[a8O(0x231)](Q,L){const QT=a8O,z=(L===null||L===void 0x0?void 0x0:L['type'])!==QT(0x21b)?'What\x20do\x20you\x20want\x20to\x20use\x20as':QT(0x267);return this[QT(0x1ed)](Q,z,L===null||L===void 0x0?void 0x0:L['description']);}[a8O(0x1df)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Qh=a8L,Q=L=>__awaiter(this,void 0x0,void 0x0,function*(){const Qv=a8L;var z;const A=yield this[Qv(0x20a)][Qv(0x223)][Qv(0x20b)]({'options':{'per_page':this[Qv(0x1e8)],'cursor':L}}),b=A['data'][Qv(0x20b)]['map'](M=>M['id']);return{'elements':b,'nextCursor':(z=A['pagination'])===null||z===void 0x0?void 0x0:z['cursor']};});return yield this[Qh(0x1d4)]('project',Q);});}[a8O(0x23c)](Q,L,z,A){return __awaiter(this,void 0x0,void 0x0,function*(){const QC=a8L,b=z||this[QC(0x20a)][QC(0x288)][QC(0x1cf)]();if(_['isUndefined'](b))throw new Error('Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.');const M=yield L(b);return yield this['askForResource'](Q,M,(A?A+QC(0x1db):'')+QC(0x1a6)+b+'\x27');});}[a8O(0x1b1)](Q,L,z,A){return __awaiter(this,void 0x0,void 0x0,function*(){const QW=a8L,b=z||this[QW(0x20a)][QW(0x288)][QW(0x1cf)]();if(_[QW(0x21d)](b))throw new Error('Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.');const M=yield L(b);return yield this['askForResourcePaginated'](Q,M,(A?A+QW(0x1db):'')+QW(0x1a6)+b+'\x27');});}['askForDomain'](){return __awaiter(this,void 0x0,void 0x0,function*(){const Q=L=>__awaiter(this,void 0x0,void 0x0,function*(){const Qw=a8L;var z;const A=yield this[Qw(0x20a)][Qw(0x223)][Qw(0x1f1)]({'options':{'per_page':this[Qw(0x1e8)],'cursor':L}});return{'elements':A[Qw(0x1ca)][Qw(0x1f1)]['map'](b=>b[Qw(0x1e9)]),'nextCursor':(z=A[Qw(0x1ba)])===null||z===void 0x0?void 0x0:z[Qw(0x1bc)]};});return this['askForResourcePaginated']('domain',Q);});}['askForCredentials'](){return __awaiter(this,void 0x0,void 0x0,function*(){const Qx=a8L,Q=L=>__awaiter(this,void 0x0,void 0x0,function*(){const QH=a8L;var z;const A=yield this[QH(0x20a)]['list'][QH(0x1fa)]({'options':{'per_page':this[QH(0x1e8)],'cursor':L}});return{'elements':A[QH(0x1ca)][QH(0x25e)]['map'](b=>b['id']),'nextCursor':(z=A[QH(0x1ba)])===null||z===void 0x0?void 0x0:z[QH(0x1bc)]};});return this[Qx(0x1d4)]('credentials',Q);});}[a8O(0x1f7)](Q){const QJ=a8O;this[QJ(0x237)]=Q;}}function a8L(Q,L){const z=a8Q();return a8L=function(A,b){A=A-0x186;let M=z[A];return M;},a8L(Q,L);}exports[a8O(0x221)]=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';function a9L(Q,L){const z=a9Q();return a9L=function(A,b){A=A-0x1de;let M=z[A];return M;},a9L(Q,L);}const a9l=a9L;(function(Q,L){const B=a9L,z=Q();while(!![]){try{const A=-parseInt(B(0x208))/0x1+parseInt(B(0x1e5))/0x2*(parseInt(B(0x219))/0x3)+parseInt(B(0x210))/0x4+-parseInt(B(0x1e6))/0x5+-parseInt(B(0x1e8))/0x6+parseInt(B(0x1ec))/0x7+-parseInt(B(0x1ed))/0x8;if(A===L)break;else z['push'](z['shift']());}catch(b){z['push'](z['shift']());}}}(a9Q,0xec549));var __createBinding=this&&this[a9l(0x1ee)]||(Object[a9l(0x21c)]?function(Q,L,z,A){const o=a9l;if(A===undefined)A=z;var b=Object['getOwnPropertyDescriptor'](L,z);(!b||(o(0x214)in b?!L[o(0x21b)]:b[o(0x204)]||b['configurable']))&&(b={'enumerable':!![],'get':function(){return L[z];}}),Object[o(0x1f8)](Q,A,b);}:function(Q,L,z,A){if(A===undefined)A=z;Q[A]=L[z];}),__setModuleDefault=this&&this[a9l(0x20a)]||(Object[a9l(0x21c)]?function(Q,L){const r=a9l;Object['defineProperty'](Q,r(0x1e7),{'enumerable':!![],'value':L});}:function(Q,L){Q['default']=L;}),__importStar=this&&this['__importStar']||function(Q){const E=a9l;if(Q&&Q[E(0x21b)])return Q;var L={};if(Q!=null){for(var z in Q)if(z!=='default'&&Object[E(0x202)][E(0x20b)][E(0x1ea)](Q,z))__createBinding(L,Q,z);}return __setModuleDefault(L,Q),L;},__awaiter=this&&this['__awaiter']||function(Q,L,z,A){function b(M){return M instanceof z?M:new z(function(S){S(M);});}return new(z||(z=Promise))(function(M,S){const h=a9L;function k(Z){const N=a9L;try{q(A[N(0x212)](Z));}catch(V){S(V);}}function i(Z){const T=a9L;try{q(A[T(0x209)](Z));}catch(V){S(V);}}function q(Z){const v=a9L;Z[v(0x1f0)]?M(Z[v(0x1e9)]):b(Z[v(0x1e9)])[v(0x207)](k,i);}q((A=A[h(0x1e2)](Q,L||[]))[h(0x212)]());});},__importDefault=this&&this['__importDefault']||function(Q){return Q&&Q['__esModule']?Q:{'default':Q};};Object[a9l(0x1f8)](exports,a9l(0x21b),{'value':!![]}),exports[a9l(0x1fe)]=void 0x0;function a9Q(){const t=['removeListener','prototype','startLogin','writable','ws:','write','then','24419BjlmZW','throw','__setModuleDefault','hasOwnProperty','finally','catch','initPackage','unable\x20to\x20parse\x20message:\x20','4162296gprnQH','login-failure','next','replace','get','status','success','init','handleError','6537TGAHZw','type','__esModule','create','data','exit','login-success','Failure\x20during\x20login:\x20','http:','apply','Login\x20process\x20stopped\x20before\x20completed','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','1430vBHAAa','5196885fGAIfm','default','7102620zlGbfN','value','call','toString','8676150gGYDZl','4979472FNwORE','__createBinding','aborted','done','init-ack','events','wss:','SIGINT','duplex','baseUrl','end','defineProperty','emit','Unexpected\x20response,\x20api\x20token\x20missing','stringify','parse','message','NorthflankApiBrowserLogin','Unexpected\x20response','openBrowser'];a9Q=function(){return t;};return a9Q();}const ws_1=__importStar(require('ws')),open_1=__importDefault(require('open')),events_1=require(a9l(0x1f2));class NorthflankApiBrowserLogin extends events_1['EventEmitter']{constructor(Q,L=!![]){const C=a9l;super(),this[C(0x1f6)]=Q,this[C(0x200)]=L,this[C(0x215)]='idle',this[C(0x20e)]=()=>JSON[C(0x1fb)]({'type':'init'});}[a9l(0x203)](){const W=a9l;var Q;const L=this['baseUrl']['replace']('https:',W(0x1f3))[W(0x213)](W(0x1e1),W(0x205)),z=L+'/v1/cli-login',A=new ws_1[(W(0x1e7))](z),b=()=>__awaiter(this,void 0x0,void 0x0,function*(){const H=W;yield new Promise(S=>{const w=a9L;var k;(k=this[w(0x1f5)])===null||k===void 0x0?void 0x0:k[w(0x1f7)](JSON[w(0x1fb)]({'type':w(0x1ef)}),()=>S());}),process[H(0x1de)]();}),M=new Promise((S,k)=>{const x=W;var i,q,Z;try{this[x(0x1f5)]=(0x0,ws_1['createWebSocketStream'])(A),process['on'](x(0x1f4),b);}catch(V){k(new Error(x(0x1e4)+V[x(0x1fd)]));}(i=this['duplex'])===null||i===void 0x0?void 0x0:i['on'](x(0x21d),d=>{const J=x;var a;const G=JSON[J(0x1fc)](d[J(0x1eb)]());switch(G===null||G===void 0x0?void 0x0:G[J(0x21a)]){case J(0x1f1):{const {loginPage:I}=G;if(I===undefined){this[J(0x218)](J(0x1ff),k);return;}this[J(0x200)]&&(0x0,open_1[J(0x1e7)])(I)[J(0x20d)](g=>{const u=J,O='Unable\x20to\x20open\x20browser:\x20'+g['message'];this[u(0x218)](O,k);});this[J(0x1f9)]('browser-opened',{'url':I});break;}case J(0x1df):{const {apiToken:g,contextName:O}=G;if(g===undefined){this[J(0x218)](J(0x1fa),k);return;}(a=this[J(0x1f5)])===null||a===void 0x0?void 0x0:a[J(0x1f7)](),S({'token':g,'contextName':O}),this[J(0x215)]=J(0x216);break;}case J(0x211):{const Y=J(0x1e0)+(G===null||G===void 0x0?void 0x0:G[J(0x1fd)]);this['handleError'](Y,k);break;}default:{const j=J(0x20f)+JSON['stringify'](G);this['handleError'](j,k);}}}),(q=this[x(0x1f5)])===null||q===void 0x0?void 0x0:q['on']('error',d=>{const n=x;this[n(0x218)]('error\x20happened\x20during\x20browser\x20login:\x20'+d[n(0x1fd)],k);}),(Z=this[x(0x1f5)])===null||Z===void 0x0?void 0x0:Z['on'](x(0x1f7),()=>{const R=x;if(this[R(0x215)]==='success'){}else this[R(0x218)](R(0x1e3),k);});});return(Q=this[W(0x1f5)])===null||Q===void 0x0?void 0x0:Q[W(0x206)](this[W(0x20e)]()),this[W(0x215)]=W(0x217),M[W(0x20c)](()=>{const m=W;process[m(0x201)](m(0x1f4),b);});}[a9l(0x218)](Q,L){const F=a9l;var z,A;L?(z=this[F(0x1f5)])===null||z===void 0x0?void 0x0:z[F(0x1f7)](()=>L(new Error(Q))):(A=this['duplex'])===null||A===void 0x0?void 0x0:A[F(0x1f7)](),this['status']='error';}}exports[a9l(0x1fe)]=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=a10L;(function(Q,L){const p=a10L,z=Q();while(!![]){try{const A=parseInt(p(0x154))/0x1+parseInt(p(0x14f))/0x2*(-parseInt(p(0x177))/0x3)+-parseInt(p(0x168))/0x4+parseInt(p(0x198))/0x5*(-parseInt(p(0x18a))/0x6)+-parseInt(p(0x189))/0x7+-parseInt(p(0x157))/0x8*(-parseInt(p(0x17b))/0x9)+parseInt(p(0x193))/0xa;if(A===L)break;else z['push'](z['shift']());}catch(b){z['push'](z['shift']());}}}(a10Q,0xed210));function a10L(Q,L){const z=a10Q();return a10L=function(A,b){A=A-0x11d;let M=z[A];return M;},a10L(Q,L);}var __awaiter=this&&this['__awaiter']||function(Q,L,z,A){function b(M){return M instanceof z?M:new z(function(S){S(M);});}return new(z||(z=Promise))(function(M,S){const P=a10L;function k(Z){const e=a10L;try{q(A[e(0x173)](Z));}catch(V){S(V);}}function i(Z){const s=a10L;try{q(A[s(0x141)](Z));}catch(V){S(V);}}function q(Z){const X=a10L;Z[X(0x1ad)]?M(Z['value']):b(Z[X(0x196)])[X(0x16e)](k,i);}q((A=A[P(0x181)](Q,L||[]))['next']());});},__importDefault=this&&this[a10y(0x191)]||function(Q){const Q0=a10y;return Q&&Q[Q0(0x158)]?Q:{'default':Q};};Object[a10y(0x122)](exports,'__esModule',{'value':!![]}),exports['CliLogs']=void 0x0;const js_client_1=require(a10y(0x133)),chalk_1=__importDefault(require(a10y(0x18c))),utils_1=require(a10y(0x123)),inquirer_helper_1=require(a10y(0x145)),commander_1=require(a10y(0x169)),console_format_helpers_1=require(a10y(0x1b5)),log_formatter_1=require('./log-formatter');function a10Q(){const QA=['getCommand','\x20for\x20container\x20','runId','apply','printInitInfo','ApiClient','Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20','getSeconds','--noDefaults','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','Option','4696888gBSCVU','375678ZfSVrt','close','chalk','CliLogs','Restore\x20to\x20get\x20logs\x20from','\x20(exit\x20with\x20','--restore\x20--restoreId\x20[restoreId]','__importDefault','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','18031460TslMiM','regexNotIncludes','defaultDurationSeconds','value','getCurrentProjectName','95BXizwT','--build\x20--buildId\x20[buildId]','Build\x20to\x20get\x20logs\x20from','pagination','jobId','textNotIncludes','assign','askForAddonBackup','LogType','setSeconds','default','yml','logsApiClient','logRange','buildId','formatLogLine','Error\x20while\x20fetching\x20log\x20lines:\x20','\x20with\x20live-tailing','>\x20Container\x20logs','addonId','length','done','Get\x20logs\x20generated\x20after\x20this\x20time,\x20','getCurrentServiceName','backward','Id]','InquirerHelper',',\x20to:\x20','--regexIncludes\x20<regex>','../formatting/console-format-helpers',',\x20restore\x20id\x20','tsHint','details','serviceId','apiClient','choices','tail','addon','\x20to\x20get\x20logs\x20from','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','start','-d,\x20--direction\x20<order>','defineProperty','../utils','name','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','containerId','askForJob','toISOString','stringify','noDefaults','Get\x20log\x20for\x20the\x20specified\x20','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','askForAddonRestore','addonBackup','\x20in\x20project\x20','format','values','cursor','@northflank/js-client','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','--backup\x20--backupId\x20[backupId]','slice','askForProject','--regexNotIncludes\x20<regex>','backupId','Number\x20of\x20lines\x20to\x20return.','toUpperCase','build-','alias','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.',',\x20duration:\x20','--textIncludes\x20<text>','throw','error','warning','parseDateInput','../inquirer-helper','askForContainer','service','textIncludes','inquirerHelper','conflicts','assertContextExisting',',\x20backup\x20id\x20','getStandardLogCommand','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','2FlMuSx','\x20seconds','description','Log\x20session\x20ended','--run\x20--runId\x20[runId]','1716367DqgXxP','log','hasNextPage','56XTsYjv','__esModule','logs','apiContext','bold','Id\x20[','askForService','argParser','-t,\x20--types\x20<types...>','customUserAgent','addonRestore','job','yaml','--duration\x20[duration]','logTail','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','--startTime\x20<timestamp>','7204580zapxOI','commander','data','regexIncludes','message','getFormatter','then','--container\x20--containerId\x20[containerId]','printResponse','--project\x20--projectId\x20[projectId]','--endTime\x20<timestamp>','next','json','askForJobRun','-f,\x20--tail','1605228vWTCeb','\x0aDetails:\x20','option','addOption','2119653wudeWo','action','forEach'];a10Q=function(){return QA;};return a10Q();}class CliLogs{constructor(Q){const Q1=a10y;this[Q1(0x15a)]=Q,this[Q1(0x195)]=0x708,this[Q1(0x14d)]=(L,z,A,b)=>{const Q2=Q1,M=(0x0,utils_1[Q2(0x17e)])(!![])[Q2(0x124)]((z?'build-':'')+Q2(0x159))[Q2(0x13d)]((z?Q2(0x13c):'')+Q2(0x155))[Q2(0x151)](Q2(0x12b)+L)['option'](Q2(0x171),'Project\x20for\x20logs')['option']('--'+L+'\x20--'+L+Q2(0x15c)+L+Q2(0x1b1),L['charAt'](0x0)[Q2(0x13b)]()+L[Q2(0x136)](0x1)+Q2(0x11e))['option'](Q2(0x16f),Q2(0x14e));if(z)M['option'](Q2(0x199),Q2(0x19a));if(L===Q2(0x162))M['option'](Q2(0x153),Q2(0x12c));if(A)M['option'](Q2(0x135),'Backup\x20to\x20get\x20logs\x20from');if(b)M['option'](Q2(0x190),Q2(0x18e));return!z&&!A&&!b&&M[Q2(0x17a)](new commander_1[(Q2(0x188))](Q2(0x15f),'Which\x20log\x20types\x20to\x20fetch')[Q2(0x1bb)](Object[Q2(0x131)](js_client_1[Q2(0x1a0)]))),M['option'](Q2(0x176),Q2(0x13e))[Q2(0x179)]('-l,\x20--lineLimit\x20[limit]',Q2(0x13a))[Q2(0x179)](Q2(0x167),Q2(0x1ae)+utils_1[Q2(0x1b7)],utils_1[Q2(0x144)])[Q2(0x17a)](new commander_1[(Q2(0x188))](Q2(0x172),'Get\x20logs\x20generated\x20before\x20this\x20time,\x20'+utils_1[Q2(0x1b7)])[Q2(0x15e)](utils_1[Q2(0x144)])[Q2(0x14a)]([Q2(0x1bc)]))[Q2(0x179)](Q2(0x164),Q2(0x187))['addOption'](new commander_1[(Q2(0x188))](Q2(0x121),Q2(0x166))[Q2(0x1bb)]([Q2(0x1b0),'forward'])['conflicts']([Q2(0x1bc)]))[Q2(0x17a)](new commander_1['Option'](Q2(0x140),'Filter\x20log\x20lines\x20to\x20include\x20this\x20text')[Q2(0x14a)]([Q2(0x19d),Q2(0x16b),Q2(0x194)]))[Q2(0x17a)](new commander_1['Option']('--textNotIncludes\x20<text>','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text')[Q2(0x14a)]([Q2(0x148),'regexIncludes',Q2(0x194)]))['addOption'](new commander_1['Option'](Q2(0x1b4),'Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression')[Q2(0x14a)]([Q2(0x19d),Q2(0x148),Q2(0x194)]))[Q2(0x17a)](new commander_1[(Q2(0x188))](Q2(0x138),Q2(0x192))['conflicts']([Q2(0x19d),Q2(0x16b),Q2(0x148)]))[Q2(0x179)](Q2(0x186),Q2(0x11f),![])[Q2(0x17a)](new commander_1[(Q2(0x188))]('-o,\x20--output\x20[output]',Q2(0x125))['choices'](Object[Q2(0x131)]([Q2(0x130),Q2(0x174),Q2(0x163)]))),M;},this[Q1(0x182)]=(L,z,A,b)=>{const Q3=Q1,{containerName:M,restoreId:S,backupId:k,quiet:i,tail:q,startTime:Z,endTime:V,duration:d}=b;if(i===!![])return;const a=q?Q3(0x18f)+chalk_1['default'][Q3(0x15b)]('\x27Ctrl+C\x27')+')':'',G=q?Q3(0x1a9):'',I=new Date(),g=Z!==null&&Z!==void 0x0?Z:new Date(new Date((V!==null&&V!==void 0x0?V:I)['valueOf']())[Q3(0x1a1)]((V!==null&&V!==void 0x0?V:I)[Q3(0x185)]()-(d!==null&&d!==void 0x0?d:this[Q3(0x195)]))),O=(V!==null&&V!==void 0x0?V:Z!==undefined)?new Date(new Date(Z['valueOf']())[Q3(0x1a1)](Z[Q3(0x185)]()+(d!==null&&d!==void 0x0?d:this[Q3(0x195)]))):I,Y=k!==undefined,j=g&&!Y?',\x20from:\x20'+chalk_1[Q3(0x1a2)][Q3(0x15b)](g[Q3(0x128)]()):'',B=O&&!Y?Q3(0x1b3)+chalk_1['default'][Q3(0x15b)](O['toISOString']()):'',l=d?Q3(0x13f)+d+Q3(0x150):'',o=M?Q3(0x17f)+chalk_1[Q3(0x1a2)][Q3(0x15b)](M):Y?'':'\x20for\x20all\x20containers',r=k?Q3(0x14c)+k:'',E=S?Q3(0x1b6)+S:'',N=L+'\x20'+chalk_1[Q3(0x1a2)]['bold'](z)+r+E+Q3(0x12f)+chalk_1[Q3(0x1a2)][Q3(0x15b)](A),T=''+j+B+l;console[Q3(0x155)](Q3(0x1aa)+G+o+'\x20of\x20'+N+T+a+':');},this[Q1(0x16d)]=(L,z)=>(A,b)=>{const Q4=Q1;if(!L){if(A[Q4(0x1ac)]===0x0)console[Q4(0x155)](Q4(0x134));A[Q4(0x17d)](M=>(0x0,log_formatter_1[Q4(0x1a7)])(M,z));}else(0x0,console_format_helpers_1[Q4(0x170)])(L,A);(b===null||b===void 0x0?void 0x0:b[Q4(0x156)])&&(0x0,utils_1[Q4(0x143)])(Q4(0x184)+b[Q4(0x132)]);},this[Q1(0x1ba)]=new js_client_1[(Q1(0x183))](Q,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[Q1(0x160)]}),this[Q1(0x1a4)]=this['apiClient'],this[Q1(0x149)]=new inquirer_helper_1[(Q1(0x1b2))](this[Q1(0x1ba)]);}['getLogsCommand'](Q,L=![],z=![],A=![]){const QL=a10y,b=(Z,V)=>__awaiter(this,void 0x0,void 0x0,function*(){const Q5=a10L,d=V[Q5(0x12a)],{apiContext:a,inquirerHelper:G}=this;switch(Q){case Q5(0x147):{const I=d?undefined:a[Q5(0x1af)]();return V[Q5(0x1b9)]||I||(yield G[Q5(0x15d)](Z)());}case Q5(0x162):{const g=d?undefined:a['getCurrentJobName']();return V[Q5(0x19c)]||g||(yield G[Q5(0x127)](Z)());}case Q5(0x11d):{return V[Q5(0x1ab)]||(yield G['askForAddon'](Z)());}}}),M=(Z,V,d)=>__awaiter(this,void 0x0,void 0x0,function*(){const Q6=a10L;if(L)return d[Q6(0x1a6)]||(yield this[Q6(0x149)]['askForBuild'](Z,Q==='service'?V:undefined,Q===Q6(0x162)?V:undefined,!![])());return undefined;}),S=(Z,V,d)=>__awaiter(this,void 0x0,void 0x0,function*(){const Q7=a10L;if(z||A)return d[Q7(0x139)]||(yield this[Q7(0x149)][Q7(0x19f)](Z,V)());return undefined;}),k=(Z,V,d,a)=>__awaiter(this,void 0x0,void 0x0,function*(){const Q8=a10L;if(A)return a['restoreId']||(yield this[Q8(0x149)][Q8(0x12d)](Z,V,d)());return undefined;}),i=(Z,V,d)=>__awaiter(this,void 0x0,void 0x0,function*(){const Q9=a10L;if(!L&&d[Q9(0x126)]!==undefined){if(d[Q9(0x126)]!==!![])return d[Q9(0x126)];return yield this[Q9(0x149)][Q9(0x146)](Z,Q===Q9(0x147)?V:undefined,Q===Q9(0x162)?V:undefined,!![])();}return undefined;}),q=(Z,V,d)=>__awaiter(this,void 0x0,void 0x0,function*(){const QQ=a10L;if(Q===QQ(0x162))return d[QQ(0x180)]||(yield this[QQ(0x149)][QQ(0x175)](V,Z,!![])());return undefined;});return this[QL(0x14d)](Q,L,z,A)[QL(0x17c)](Z=>__awaiter(this,void 0x0,void 0x0,function*(){const Qz=QL,{noDefaults:V,projectId:d,quiet:a,tail:G,types:I,textIncludes:g,textNotIncludes:O,regexIncludes:Y,regexNotIncludes:j,direction:B,lineLimit:l,startTime:o,endTime:r,duration:E,output:N}=Z;(0x0,utils_1[Qz(0x14b)])(this[Qz(0x1ba)]);const {apiContext:T,inquirerHelper:v,logsApiClient:h}=this,C=V?undefined:T[Qz(0x197)](),W=d||C||(yield v[Qz(0x137)]()),w=yield b(W,Z),H=yield M(W,w,Z),x=yield S(W,w,Z),J=yield k(W,w,x,Z),u=yield q(W,w,Z),n=yield i(W,w,Z);if(o&&r&&E)throw new Error('Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.');const R={'projectId':W,'entityId':w},m={'containerName':n,'types':I,'textIncludes':g,'textNotIncludes':O,'regexIncludes':Y,'regexNotIncludes':j,'lineLimit':l,'startTime':o,'duration':E,'runId':u,'buildId':H,'backupId':x,'restoreId':J,'isBuild':L!==null&&L!==void 0x0?L:![]},F=A?Qz(0x161):z?Qz(0x12e):Q,t=Object[Qz(0x19e)](Object[Qz(0x19e)]({},m),{'endTime':r,'direction':B});if(!a&&N!==Qz(0x163)&&N!==Qz(0x1a3)&&N!==Qz(0x174))this[Qz(0x182)](Q,w,W,Object[Qz(0x19e)](Object['assign']({},t),Z));const f=this[Qz(0x16d)](N,g!==null&&g!==void 0x0?g:Y);if(G){const K=yield h[Qz(0x159)][Qz(0x165)](R,m,F);K['on']('logs-received',f),K['on'](Qz(0x142),D=>(0x0,utils_1[Qz(0x142)])('Error\x20while\x20tailing\x20log\x20lines:\x20'+D[Qz(0x16c)])),K['on'](Qz(0x18b),()=>console[Qz(0x155)](Qz(0x152))),yield K[Qz(0x120)]();}else{const D=yield h[Qz(0x159)][Qz(0x1a5)](R,t,F);if(D[Qz(0x142)]){const c=D['error'][Qz(0x1b8)],U=c?Qz(0x178)+JSON[Qz(0x129)](c,null,'\x20'):'';(0x0,utils_1[Qz(0x142)])(Qz(0x1a8)+D[Qz(0x142)][Qz(0x16c)]+U);}else f(D[Qz(0x16a)],D[Qz(0x19b)]);}}));}}exports[a10y(0x18d)]=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 a11Z=a11L;(function(Q,L){const q=a11L,z=Q();while(!![]){try{const A=parseInt(q(0x7f))/0x1*(-parseInt(q(0x79))/0x2)+parseInt(q(0x98))/0x3+-parseInt(q(0x83))/0x4+parseInt(q(0x8c))/0x5*(-parseInt(q(0x91))/0x6)+parseInt(q(0x77))/0x7*(-parseInt(q(0x85))/0x8)+parseInt(q(0x7a))/0x9*(-parseInt(q(0x93))/0xa)+parseInt(q(0x88))/0xb*(parseInt(q(0x80))/0xc);if(A===L)break;else z['push'](z['shift']());}catch(b){z['push'](z['shift']());}}}(a11Q,0xc8fb8));var __importDefault=this&&this[a11Z(0x7c)]||function(Q){const V=a11Z;return Q&&Q[V(0x84)]?Q:{'default':Q};};Object[a11Z(0x97)](exports,a11Z(0x84),{'value':!![]}),exports[a11Z(0x8d)]=exports['defaultLogSyntax']=void 0x0;const chalk_1=__importDefault(require(a11Z(0x92)));exports[a11Z(0x87)]=[{'color':a11Z(0x86),'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':a11Z(0x86),'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':'grey','pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':'grey','pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11Z(0x94),'pattern':new RegExp(a11Z(0x95),'i')},{'color':a11Z(0x8e),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':'green','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':a11Z(0x96),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11Z(0x82),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11Z(0x81),'pattern':/\b(information|info|debug)\b/i},{'color':'yellow','pattern':/\b(warning|warn)\b/i},{'color':'blue','pattern':/[0-9a-f]{64}/i},{'color':a11Z(0x8a),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(Q,L)=>{const d=a11Z,z=chalk_1[d(0x78)][d(0x7b)](Q['ts'][d(0x89)]()),A=chalk_1[d(0x78)][d(0x8f)](Q[d(0x8b)]),b=exports[d(0x87)]['reduce']((S,k)=>{const a=d;return S[a(0x7d)](k['pattern'],i=>k[a(0x90)]?chalk_1[a(0x78)][k[a(0x90)]](i):chalk_1['default']['grey'](i));},Q[d(0x7e)]),M=L?b[d(0x7d)](new RegExp(L,'g'),S=>chalk_1['default'][d(0x94)](S)):b;console[d(0x7e)](z+'\x20'+A+'\x20--\x20'+M);};exports[a11Z(0x8d)]=formatLogLine;function a11L(Q,L){const z=a11Q();return a11L=function(A,b){A=A-0x77;let M=z[A];return M;},a11L(Q,L);}function a11Q(){const G=['22293744oSYAnQ','gray','red','1287952ahVzFE','__esModule','41848YZBWBz','grey','defaultLogSyntax','33hiIERb','toISOString','blue','containerId','40cvAxYE','formatLogLine','green','cyan','color','947082BkbUAX','chalk','9564050ptDmei','bold','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','greenBright','defineProperty','1477854hqcjAJ','1785mdDAtM','default','754Brdnsw','9HMjGeI','dim','__importDefault','replace','log','3628EPEcpC'];a11Q=function(){return G;};return a11Q();}