@northflank/cli 0.9.25 → 0.9.26

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';const a4x=a4e;(function(F,e){const B=a4e,G=F();while(!![]){try{const u=parseInt(B(0xfe))/0x1*(parseInt(B(0x112))/0x2)+parseInt(B(0x11e))/0x3*(-parseInt(B(0x11c))/0x4)+parseInt(B(0x121))/0x5+-parseInt(B(0x11b))/0x6*(parseInt(B(0xdf))/0x7)+-parseInt(B(0xd1))/0x8+-parseInt(B(0x134))/0x9+-parseInt(B(0x117))/0xa*(-parseInt(B(0x124))/0xb);if(u===e)break;else G['push'](G['shift']());}catch(R){G['push'](G['shift']());}}}(a4F,0x957ea));var __awaiter=this&&this[a4x(0x114)]||function(F,e,G,u){function R(b){return b instanceof G?b:new G(function(W){W(b);});}return new(G||(G=Promise))(function(b,W){const K=a4e;function V(t){try{m(u['next'](t));}catch(T){W(T);}}function a(t){const r=a4e;try{m(u[r(0xea)](t));}catch(T){W(T);}}function m(t){const k=a4e;t[k(0x12c)]?b(t[k(0x122)]):R(t[k(0x122)])[k(0xdc)](V,a);}m((u=u[K(0x110)](F,e||[]))[K(0xe4)]());});},__importDefault=this&&this[a4x(0xe3)]||function(F){const p=a4x;return F&&F[p(0xf5)]?F:{'default':F};};Object[a4x(0xe2)](exports,a4x(0xf5),{'value':!![]}),exports[a4x(0xd9)]=void 0x0;const js_client_1=require(a4x(0xd6)),chalk_1=__importDefault(require('chalk')),utils_1=require(a4x(0x11f)),inquirer_helper_1=require(a4x(0x119));class CliExec{constructor(F){const O=a4x;this[O(0xfd)]=R=>(0x0,utils_1['getCommand'])(!![])[O(0xe1)](R)[O(0x10c)](O(0x113)+R+'.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20'+R+O(0x125)+R+O(0xcb)+R+O(0xfa)+R+O(0xdb))[O(0x10d)](O(0x103),'Project\x20for\x20exec')[O(0x10d)]('--'+R+O(0xeb)+R+O(0x10e),R['charAt'](0x0)['toUpperCase']()+R[O(0x12f)](0x1)+O(0xdd))[O(0x10d)](O(0x100),'Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)')[O(0x10d)](O(0xce),O(0x131))[O(0x10d)](O(0x10a),O(0x11a))['option'](O(0xd4),O(0x104))[O(0x10d)](O(0x130),'Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])[O(0x10d)](O(0xe0),'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[O(0x116)]=()=>({'columns':process['stdout'][O(0xf6)],'rows':process['stdout'][O(0xfb)]}),this['execStartLog']=(R,b,W,V,a,m,t,T)=>{const D=O;if(T===!![])return;const Z=V===D(0xcc),n=Z?D(0x11d):V===undefined?'with\x20shell\x20session':D(0xf2)+chalk_1[D(0xd7)][D(0x118)](V),v=a!==undefined?'with\x20user:'+a:'',A=m!==undefined?D(0xd3)+m:'',w=t!==undefined?D(0x132)+chalk_1[D(0xd7)][D(0x118)](t)+'\x27':'',o=[w,n,v,A]['filter'](c=>c!=='')[D(0x102)]('\x20'),i='(exit\x20with\x20two\x20quick\x20'+chalk_1[D(0xd7)]['bold'](D(0xe6))+')';console[D(0x120)](D(0x12a)+R+'\x20'+chalk_1['default'][D(0x105)](b)+D(0xf4)+chalk_1['default'][D(0x105)](W)+'\x20'+o+'\x20'+i);},this[O(0xcf)]=(R,b,W=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const z=O;var V,a;let m=![];try{if(process['stdin'][z(0xe7)]){const T=require(z(0xe9));T['emitKeypressEvents'](process['stdin']),process['stdin']['setRawMode'](!![]),process[z(0xe5)]['on'](z(0x12d),()=>{R['resizeTerminal'](this['getTerminalSize']());}),process['stdin']['on']('keypress',(Z,n)=>{const C=z;n[C(0xec)]==='\x04'&&(m?(process[C(0x10b)]['setRawMode'](![]),(0x0,utils_1[C(0x12b)])(C(0xd5)),process[C(0xe8)]()):(m=!![],setTimeout(()=>m=![],0x190)));});}process[z(0x10b)][z(0x126)](R[z(0x108)]),R[z(0xf0)][z(0x126)](process[z(0xf9)]),R[z(0xd2)][z(0x126)](process[z(0xe5)]),R['on'](z(0xee),Z=>{const N=z;var n;(0x0,utils_1[N(0xee)])(N(0xfc)+b+'\x20command\x20exec:\x20'+((n=Z[N(0xef)])!==null&&n!==void 0x0?n:Z)),process[N(0x10b)]['isTTY']&&process[N(0x10b)][N(0xde)](![]),process[N(0xe8)](-0x1);});const t=yield R[z(0x107)]();if(W!==!![]){const Z=(V=t===null||t===void 0x0?void 0x0:t[z(0xf1)])!==null&&V!==void 0x0?V:z(0xcd),n=(a=t===null||t===void 0x0?void 0x0:t[z(0x115)])!==null&&a!==void 0x0?a:-0x1,v=(t===null||t===void 0x0?void 0x0:t[z(0xef)])?',\x20details:\x20'+t[z(0xef)]:'';Z===z(0xed)?(0x0,utils_1['success'])('Command\x20completed\x20successfully,\x20exit\x20code:\x20'+n):(0x0,utils_1[z(0x12b)])(z(0x129)+Z+z(0xd0)+n+v);}return t;}finally{process[z(0x10b)]['isTTY']&&process[z(0x10b)][z(0xde)](![]);}}),this[O(0x106)]=new js_client_1['ApiClient'](F,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1['customUserAgent']});const e=new inquirer_helper_1['InquirerHelper'](this['apiClient']);this['execCmd']=(0x0,utils_1[O(0x128)])()[O(0xe1)](O(0xf7))['alias'](O(0xf3))[O(0x10c)](O(0x133));const G=this[O(0xfd)]('service')[O(0x10f)](R=>__awaiter(this,void 0x0,void 0x0,function*(){const I=O,{noDefaults:b,projectId:W,serviceId:V,containerId:a,shellCmd:m,user:t,group:T,command:Z,quiet:n}=R;(0x0,utils_1[I(0xf8)])(this[I(0x106)]);try{const v=b?undefined:F[I(0xd8)](),A=W||v||(yield e[I(0xda)]()),w=b?undefined:F[I(0xff)](),o=V||w||(yield e[I(0x111)](A)()),i=m!==null&&m!==void 0x0?m:Z!==undefined?I(0xcc):undefined;this[I(0x101)](I(0x109),o,A,i,t,T,Z,n);const c=process[I(0xe5)][I(0xf6)],l=process['stdout'][I(0xfb)],X={'projectId':A,'serviceId':o},h=yield this[I(0x106)][I(0xf3)][I(0x127)](X,{'containerName':a,'command':Z,'shell':i,'user':t,'group':T,'ttyColumns':c,'ttyRows':l});yield this['handleShellSession'](h,I(0x109),n);}catch(d){(0x0,utils_1['error'])(''+d[I(0xef)]);}finally{process[I(0xe8)]();}})),u=this['getStandardExecCommand'](O(0x123))['action'](R=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=O,{projectId:b,jobId:W,containerId:V,noDefaults:a,shellCmd:m,user:t,group:T,command:Z,quiet:n}=R;(0x0,utils_1[Y(0xf8)])(this['apiClient']);try{const v=a?undefined:F['getCurrentProjectName'](),A=b||v||(yield e['askForProject']()),w=W||(yield e['askForJob'](A)());this[Y(0x101)](Y(0x123),w,A,m,n);const {rows:o,columns:i}=this[Y(0x116)](),c={'projectId':A,'jobId':w},l=yield this['apiClient'][Y(0xf3)]['execJobSession'](c,{'containerName':V,'command':Z,'shell':m,'user':t,'group':T,'ttyColumns':i,'ttyRows':o});yield this['handleShellSession'](l,'job',n);}catch(X){(0x0,utils_1[Y(0xee)])(''+X[Y(0xef)]);}finally{process[Y(0xe8)]();}}));this[O(0x12e)]['addCommand'](G),this[O(0x12e)]['addCommand'](u);}}function a4e(F,e){const G=a4F();return a4e=function(u,R){u=u-0xcb;let b=G[u];return b;},a4e(F,e);}function a4F(){const g=['../utils','log','2757420VQOnFX','value','job','9097OGktOA','\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20','pipe','execServiceSession','getCommand','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','Exec\x20','warning','done','resize','execCmd','slice','--noDefaults','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.','with\x20command\x20\x27','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','10025217NwdDdw','\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20','none','Unknown','--shell-cmd\x20[SHELL-CMD]','handleShellSession',',\x20exit\x20code:\x20','4998160sCFFlH','stdOut','with\x20group:','--group\x20[GROUP]','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','@northflank/js-client','default','getCurrentProjectName','CliExec','askForProject','\x20--shell-cmd\x20\x27sh\x27','then','\x20to\x20exec\x20into','setRawMode','7zpUfrq','--cmd\x20--command\x20[COMMAND]','name','defineProperty','__importDefault','next','stdout','\x27Ctrl+D\x27','isTTY','exit','readline','throw','\x20--','sequence','Success','error','message','stdErr','status','shell\x20command\x20','exec','\x20in\x20project\x20','__esModule','columns','command-exec','assertContextExisting','stderr','\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','rows','Error\x20occured\x20during\x20','getStandardExecCommand','257SRYIVG','getCurrentServiceName','--container\x20--containerId\x20[NAME]','execStartLog','join','--project\x20--projectId\x20[NAME]','Run\x20command\x20with\x20this\x20group','bold','apiClient','waitForCommandResult','stdIn','service','--user\x20[USER]','stdin','description','option','Id\x20[NAME]','action','apply','askForService','9276kUBlHt','Command\x20exec\x20for\x20the\x20specified\x20','__awaiter','exitCode','getTerminalSize','17670NzVkEh','greenBright','../inquirer-helper','Run\x20command\x20with\x20this\x20user','2631198QtZMJl','4QJuYEZ','without\x20shell','1245639cmbdkE'];a4F=function(){return g;};return a4F();}exports[a4x(0xd9)]=CliExec;
1
+ 'use strict';const a4C=a4v;(function(T,v){const t=a4v,W=T();while(!![]){try{const l=-parseInt(t(0x1a4))/0x1*(-parseInt(t(0x178))/0x2)+parseInt(t(0x18d))/0x3+parseInt(t(0x1d9))/0x4+-parseInt(t(0x18e))/0x5*(-parseInt(t(0x1cf))/0x6)+-parseInt(t(0x180))/0x7*(parseInt(t(0x1c1))/0x8)+-parseInt(t(0x17b))/0x9+parseInt(t(0x193))/0xa;if(l===v)break;else W['push'](W['shift']());}catch(N){W['push'](W['shift']());}}}(a4T,0xd8cd2));var __awaiter=this&&this[a4C(0x1c9)]||function(T,v,W,l){function N(y){return y instanceof W?y:new W(function(D){D(y);});}return new(W||(W=Promise))(function(y,D){const z=a4v;function w(U){const b=a4v;try{I(l[b(0x1bf)](U));}catch(k){D(k);}}function e(U){try{I(l['throw'](U));}catch(k){D(k);}}function I(U){const P=a4v;U[P(0x19a)]?y(U[P(0x1cc)]):N(U[P(0x1cc)])[P(0x1de)](w,e);}I((l=l['apply'](T,v||[]))[z(0x1bf)]());});},__importDefault=this&&this[a4C(0x1b8)]||function(T){const c=a4C;return T&&T[c(0x1b6)]?T:{'default':T};};Object[a4C(0x1e5)](exports,a4C(0x1b6),{'value':!![]}),exports[a4C(0x1a9)]=void 0x0;const js_client_1=require(a4C(0x1e2)),chalk_1=__importDefault(require(a4C(0x1a1))),utils_1=require(a4C(0x192)),inquirer_helper_1=require(a4C(0x19c));function a4v(T,v){const W=a4T();return a4v=function(l,N){l=l-0x176;let y=W[l];return y;},a4v(T,v);}class CliExec{constructor(T){const O=a4C;this['getStandardExecCommand']=N=>(0x0,utils_1['getCommand'])(!![])[O(0x1a6)](N)[O(0x1ab)](O(0x1e4)+N+O(0x1a7)+N+O(0x17a)+N+O(0x181)+N+O(0x1dc)+N+O(0x1c7))['option'](O(0x18a),O(0x1ac))[O(0x17f)]('--'+N+'\x20--'+N+O(0x1d1),N[O(0x188)](0x0)[O(0x182)]()+N[O(0x1d0)](0x1)+'\x20to\x20exec\x20into')[O(0x17f)](O(0x186),O(0x19b))[O(0x17f)](O(0x1ae),O(0x1bd))['option'](O(0x1b2),O(0x1a3))['option'](O(0x1d7),O(0x17c))['option']('--noDefaults',O(0x1bb),![])[O(0x17f)]('--cmd\x20--command\x20[COMMAND]',O(0x1b5)),this[O(0x1be)]=()=>({'columns':process[O(0x190)]['columns'],'rows':process[O(0x190)][O(0x1e1)]}),this[O(0x1a5)]=(N,y,D,w,e,I,U,k)=>{const J=O;if(k===!![])return;const x=w===J(0x187),B=x?'without\x20shell':w===undefined?'with\x20shell\x20session':J(0x184)+chalk_1[J(0x18f)][J(0x1a0)](w),o=e!==undefined?'with\x20user:'+e:'',s=I!==undefined?J(0x1e6)+I:'',Y=U!==undefined?'with\x20command\x20\x27'+chalk_1[J(0x18f)]['greenBright'](U)+'\x27':'',a=[Y,B,o,s][J(0x17d)](H=>H!=='')[J(0x1cb)]('\x20'),G=J(0x19d)+chalk_1[J(0x18f)][J(0x177)](J(0x1d4))+')';console[J(0x1e8)](J(0x189)+N+'\x20'+chalk_1[J(0x18f)][J(0x177)](y)+J(0x197)+chalk_1[J(0x18f)]['bold'](D)+'\x20'+a+'\x20'+G);},this[O(0x1ba)]=(N,y,D=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const S=O;var w,e;let I=![];try{if(process[S(0x195)]['isTTY']){const k=require(S(0x1d5));k[S(0x1aa)](process[S(0x195)]),process['stdin'][S(0x17e)](!![]),process[S(0x190)]['on'](S(0x18c),()=>{const d=S;N['resizeTerminal'](this[d(0x1be)]());}),process[S(0x195)]['on']('keypress',(x,B)=>{const h=S;B[h(0x1d3)]==='\x04'&&(I?(process[h(0x195)]['setRawMode'](![]),(0x0,utils_1[h(0x1bc)])(h(0x1d8)),process['exit']()):(I=!![],setTimeout(()=>I=![],0x190)));});}process[S(0x195)][S(0x1e7)](N['stdIn']),N[S(0x1b4)][S(0x1e7)](process[S(0x179)]),N[S(0x19e)][S(0x1e7)](process['stdout']),N['on'](S(0x176),x=>{const E=S;var B;(0x0,utils_1['error'])(E(0x1b3)+y+E(0x1ad)+((B=x[E(0x199)])!==null&&B!==void 0x0?B:x)),process[E(0x195)]['isTTY']&&process[E(0x195)][E(0x17e)](![]),process[E(0x1c6)](-0x1);});const U=yield N[S(0x1d6)]();if(D!==!![]){const x=(w=U===null||U===void 0x0?void 0x0:U[S(0x1dd)])!==null&&w!==void 0x0?w:S(0x1c5),B=(e=U===null||U===void 0x0?void 0x0:U[S(0x1b9)])!==null&&e!==void 0x0?e:-0x1,o=(U===null||U===void 0x0?void 0x0:U[S(0x199)])?S(0x1c4)+U[S(0x199)]:'';x==='Success'?(0x0,utils_1[S(0x198)])('Command\x20completed\x20successfully,\x20exit\x20code:\x20'+B):(0x0,utils_1[S(0x1bc)])(S(0x19f)+x+S(0x183)+B+o);}return U;}finally{process['stdin'][S(0x1d2)]&&process['stdin']['setRawMode'](![]);}}),this[O(0x194)]=new js_client_1['ApiClient'](T,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[O(0x1e0)]});const v=new inquirer_helper_1[(O(0x1b1))](this[O(0x194)]);this['execCmd']=(0x0,utils_1[O(0x1da)])()[O(0x1a6)](O(0x1cd))[O(0x1db)]('exec')[O(0x1ab)](O(0x191));const W=this['getStandardExecCommand'](O(0x1ca))[O(0x196)](N=>__awaiter(this,void 0x0,void 0x0,function*(){const i=O,{noDefaults:y,projectId:D,serviceId:w,containerId:I,shellCmd:U,user:k,group:x,command:B,quiet:o}=N;(0x0,utils_1[i(0x1b7)])(this[i(0x194)]);try{const s=y?undefined:T[i(0x1af)](),Y=D||s||(yield v['askForProject']()),a=y?undefined:T[i(0x185)](),G=w||a||(yield v[i(0x1c0)](Y)()),H=U!==null&&U!==void 0x0?U:B!==undefined?i(0x187):undefined;this[i(0x1a5)]('service',G,Y,H,k,x,B,o);const A=process[i(0x190)][i(0x1c2)],m=process[i(0x190)][i(0x1e1)],g={'projectId':Y,'serviceId':G},F=yield this[i(0x194)][i(0x18b)][i(0x1c8)](g,{'containerName':I,'command':B,'shell':H,'user':k,'group':x,'ttyColumns':A,'ttyRows':m});yield this[i(0x1ba)](F,i(0x1ca),o);}catch(K){(0x0,utils_1['error'])(''+K[i(0x199)]);}finally{process[i(0x1c6)]();}})),l=this[O(0x1c3)]('job')[O(0x196)](N=>__awaiter(this,void 0x0,void 0x0,function*(){const M=O,{projectId:y,jobId:D,containerId:w,noDefaults:I,shellCmd:U,user:k,group:x,command:B,quiet:o}=N;(0x0,utils_1[M(0x1b7)])(this[M(0x194)]);try{const s=I?undefined:T[M(0x1af)](),Y=y||s||(yield v[M(0x1e3)]()),a=D||(yield v[M(0x1ce)](Y)());this[M(0x1a5)](M(0x1a8),a,Y,U,o);const {rows:G,columns:H}=this['getTerminalSize'](),A={'projectId':Y,'jobId':a},m=yield this[M(0x194)]['exec'][M(0x1df)](A,{'containerName':w,'command':B,'shell':U,'user':k,'group':x,'ttyColumns':H,'ttyRows':G});yield this[M(0x1ba)](m,M(0x1a8),o);}catch(g){(0x0,utils_1[M(0x176)])(''+g[M(0x199)]);}finally{process[M(0x1c6)]();}}));this[O(0x1b0)]['addCommand'](W),this[O(0x1b0)][O(0x1a2)](l);}}function a4T(){const p=['\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20','3157155WpjVfH','Run\x20command\x20with\x20this\x20group','filter','setRawMode','option','85309zAkgKW','\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20','toUpperCase',',\x20exit\x20code:\x20','shell\x20command\x20','getCurrentServiceName','--container\x20--containerId\x20[NAME]','none','charAt','Exec\x20','--project\x20--projectId\x20[NAME]','exec','resize','2718294aALtBE','20yYrmeS','default','stdout','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','../utils','2374170DDGjna','apiClient','stdin','action','\x20in\x20project\x20','success','message','done','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','../inquirer-helper','(exit\x20with\x20two\x20quick\x20','stdOut','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','greenBright','chalk','addCommand','Run\x20command\x20with\x20this\x20user','63833uMKiPg','execStartLog','name','.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20','job','CliExec','emitKeypressEvents','description','Project\x20for\x20exec','\x20command\x20exec:\x20','--shell-cmd\x20[SHELL-CMD]','getCurrentProjectName','execCmd','InquirerHelper','--user\x20[USER]','Error\x20occured\x20during\x20','stdErr','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.','__esModule','assertContextExisting','__importDefault','exitCode','handleShellSession','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','warning','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.','getTerminalSize','next','askForService','320JXYjIE','columns','getStandardExecCommand',',\x20details:\x20','Unknown','exit','\x20--shell-cmd\x20\x27sh\x27','execServiceSession','__awaiter','service','join','value','command-exec','askForJob','503832tTWgjh','slice','Id\x20[NAME]','isTTY','sequence','\x27Ctrl+D\x27','readline','waitForCommandResult','--group\x20[GROUP]','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','221564CNsxko','getCommand','alias','\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','status','then','execJobSession','customUserAgent','rows','@northflank/js-client','askForProject','Command\x20exec\x20for\x20the\x20specified\x20','defineProperty','with\x20group:','pipe','log','error','bold','6vJrwcn','stderr'];a4T=function(){return p;};return a4T();}exports[a4C(0x1a9)]=CliExec;
@@ -1 +1 @@
1
- 'use strict';const a5r=a5e;function a5e(F,e){const G=a5F();return a5e=function(u,R){u=u-0x104;let b=G[u];return b;},a5e(F,e);}function a5F(){const O=['every','370490WcFKHY','value','name','3zkupEi','4563AxmJPN','Print\x20command\x20descriptions','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','map','getCommandOverview','command-overview','length','default','then','forEach','4sMHkPU','option','193881LpunIH','opts','3279835UdpXgL','throw','apply','action','88418Ztzboi','10930vUdstZ','__esModule','log','__importDefault','3084DveWyr','3104988IZprYr','commands','5482632iRaxen','join','7MSwYmg','getCommand','next','slice','description','bold','green'];a5F=function(){return O;};return a5F();}(function(F,e){const X=a5e,G=F();while(!![]){try{const u=parseInt(X(0x10c))/0x1+parseInt(X(0x124))/0x2*(-parseInt(X(0x127))/0x3)+parseInt(X(0x10a))/0x4*(parseInt(X(0x10e))/0x5)+-parseInt(X(0x118))/0x6*(-parseInt(X(0x11c))/0x7)+parseInt(X(0x11a))/0x8+parseInt(X(0x128))/0x9*(parseInt(X(0x113))/0xa)+-parseInt(X(0x112))/0xb*(parseInt(X(0x117))/0xc);if(u===e)break;else G['push'](G['shift']());}catch(R){G['push'](G['shift']());}}}(a5F,0x56de7));var __awaiter=this&&this['__awaiter']||function(F,e,G,u){function R(b){return b instanceof G?b:new G(function(W){W(b);});}return new(G||(G=Promise))(function(b,W){const x=a5e;function V(t){const h=a5e;try{m(u[h(0x11e)](t));}catch(T){W(T);}}function a(t){const d=a5e;try{m(u[d(0x10f)](t));}catch(T){W(T);}}function m(t){const B=a5e;t['done']?b(t[B(0x125)]):R(t[B(0x125)])[B(0x108)](V,a);}m((u=u[x(0x110)](F,e||[]))['next']());});},__importDefault=this&&this[a5r(0x116)]||function(F){const k=a5r;return F&&F[k(0x114)]?F:{'default':F};};Object['defineProperty'](exports,a5r(0x114),{'value':!![]}),exports[a5r(0x104)]=void 0x0;const chalk_1=__importDefault(require('chalk')),utils_1=require('../utils');function getCommandOverview(F){const K=a5r;return(0x0,utils_1[K(0x11d)])()[K(0x126)](K(0x105))[K(0x120)](K(0x12a))[K(0x10b)]('--verbose',K(0x129))[K(0x111)](e=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:G}=e;function u(R,b){const p=a5e;var W;const V=(i,c=!![])=>c?chalk_1[p(0x107)][p(0x121)][p(0x122)](i['name']()):i[p(0x126)](),a=b[p(0x106)]===0x0,m=R[p(0x119)];let t='';const T=m[p(0x106)]===0x0,Z=T||((W=Object['keys'](R===null||R===void 0x0?void 0x0:R[p(0x10d)]()))===null||W===void 0x0?void 0x0:W['length'])>0x0;!a&&(t=m&&!T?'┬\x20':'─\x20');const n=G&&Z&&R[p(0x120)]()?':\x20'+R[p(0x120)]():'';console['log'](''+b+t+V(R,Z)+n);let v=b;if(!a){const i=b[p(0x11f)](-0x2)==='└─';v=b['slice'](0x0,-0x2)+(i?'\x20\x20':'│\x20');}const A=v+'├─',w=v+'└─',o=m[p(0x123)](c=>c[p(0x119)][p(0x106)]===0x0);o&&!T&&!G?console[p(0x115)](w+'\x20'+m[p(0x12b)](c=>V(c))[p(0x11b)](',\x20')):m[p(0x109)]((c,l)=>{u(c,m['length']-0x1===l?w:A);});}u(F,'');}));}exports[a5r(0x104)]=getCommandOverview;
1
+ 'use strict';const a5t=a5v;(function(T,v){const m=a5v,W=T();while(!![]){try{const l=-parseInt(m(0xf4))/0x1*(-parseInt(m(0xde))/0x2)+parseInt(m(0xe4))/0x3+parseInt(m(0xfc))/0x4+parseInt(m(0xe3))/0x5*(-parseInt(m(0xf0))/0x6)+parseInt(m(0xe2))/0x7*(-parseInt(m(0xf3))/0x8)+parseInt(m(0xfe))/0x9*(parseInt(m(0xf9))/0xa)+-parseInt(m(0xe1))/0xb;if(l===v)break;else W['push'](W['shift']());}catch(N){W['push'](W['shift']());}}}(a5T,0xcb84b));function a5T(){const c=['__importDefault','join','done','--verbose','keys','length','slice','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','getCommandOverview','24bqsZqf','description','Print\x20command\x20descriptions','4966000fAKOHl','1030714dUVwnJ','default','command-overview','opts','defineProperty','10XjBkJy','getCommand','__esModule','3351788vuVVlP','every','8677602cGVZsI','next','../utils','chalk','2DaoGqn','then','value','19996658gagfoo','14ZXtVsi','561175fCbEnC','4527270NncVUt','log','name'];a5T=function(){return c;};return a5T();}function a5v(T,v){const W=a5T();return a5v=function(l,N){l=l-0xdb;let y=W[l];return y;},a5v(T,v);}var __awaiter=this&&this['__awaiter']||function(T,v,W,l){function N(y){return y instanceof W?y:new W(function(D){D(y);});}return new(W||(W=Promise))(function(y,D){const K=a5v;function w(U){const g=a5v;try{I(l[g(0xdb)](U));}catch(k){D(k);}}function e(U){try{I(l['throw'](U));}catch(k){D(k);}}function I(U){const F=a5v;U[F(0xe9)]?y(U['value']):N(U[F(0xe0)])[F(0xdf)](w,e);}I((l=l['apply'](T,v||[]))[K(0xdb)]());});},__importDefault=this&&this[a5t(0xe7)]||function(T){const C=a5t;return T&&T[C(0xfb)]?T:{'default':T};};Object[a5t(0xf8)](exports,a5t(0xfb),{'value':!![]}),exports[a5t(0xef)]=void 0x0;const chalk_1=__importDefault(require(a5t(0xdd))),utils_1=require(a5t(0xdc));function getCommandOverview(T){const b=a5t;return(0x0,utils_1[b(0xfa)])()[b(0xe6)](b(0xf6))[b(0xf1)](b(0xee))['option'](b(0xea),b(0xf2))['action'](v=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:W}=v;function l(N,y){const P=a5v;var D;const w=(G,H=!![])=>H?chalk_1[P(0xf5)]['bold']['green'](G[P(0xe6)]()):G['name'](),e=y[P(0xec)]===0x0,I=N['commands'];let U='';const k=I[P(0xec)]===0x0,x=k||((D=Object[P(0xeb)](N===null||N===void 0x0?void 0x0:N[P(0xf7)]()))===null||D===void 0x0?void 0x0:D[P(0xec)])>0x0;!e&&(U=I&&!k?'┬\x20':'─\x20');const B=W&&x&&N[P(0xf1)]()?':\x20'+N[P(0xf1)]():'';console[P(0xe5)](''+y+U+w(N,x)+B);let o=y;if(!e){const G=y[P(0xed)](-0x2)==='└─';o=y[P(0xed)](0x0,-0x2)+(G?'\x20\x20':'│\x20');}const s=o+'├─',Y=o+'└─',a=I[P(0xfd)](H=>H['commands'][P(0xec)]===0x0);a&&!k&&!W?console[P(0xe5)](Y+'\x20'+I['map'](H=>w(H))[P(0xe8)](',\x20')):I['forEach']((H,A)=>{const z=P;l(H,I[z(0xec)]-0x1===A?Y:s);});}l(T,'');}));}exports['getCommandOverview']=getCommandOverview;
@@ -1 +1 @@
1
- 'use strict';const a6w=a6e;(function(F,e){const v=a6e,G=F();while(!![]){try{const u=-parseInt(v(0xa5))/0x1+-parseInt(v(0xc0))/0x2*(-parseInt(v(0xc7))/0x3)+parseInt(v(0xae))/0x4+parseInt(v(0x84))/0x5+-parseInt(v(0xb2))/0x6*(parseInt(v(0x90))/0x7)+parseInt(v(0xc6))/0x8*(-parseInt(v(0x89))/0x9)+parseInt(v(0xc1))/0xa*(-parseInt(v(0xb4))/0xb);if(u===e)break;else G['push'](G['shift']());}catch(R){G['push'](G['shift']());}}}(a6F,0x89311));function a6e(F,e){const G=a6F();return a6e=function(u,R){u=u-0x84;let b=G[u];return b;},a6e(F,e);}var __createBinding=this&&this['__createBinding']||(Object['create']?function(F,e,G,u){const A=a6e;if(u===undefined)u=G;var R=Object[A(0xb1)](e,G);(!R||(A(0x9c)in R?!e[A(0x99)]:R[A(0xad)]||R[A(0xc5)]))&&(R={'enumerable':!![],'get':function(){return e[G];}}),Object[A(0xb5)](F,u,R);}:function(F,e,G,u){if(u===undefined)u=G;F[u]=e[G];}),__setModuleDefault=this&&this[a6w(0xc9)]||(Object[a6w(0xa2)]?function(F,e){Object['defineProperty'](F,'default',{'enumerable':!![],'value':e});}:function(F,e){const o=a6w;F[o(0xc4)]=e;}),__importStar=this&&this[a6w(0xb8)]||function(F){const i=a6w;if(F&&F[i(0x99)])return F;var e={};if(F!=null){for(var G in F)if(G!==i(0xc4)&&Object[i(0xa6)][i(0x87)][i(0x98)](F,G))__createBinding(e,F,G);}return __setModuleDefault(e,F),e;},__importDefault=this&&this[a6w(0xb0)]||function(F){return F&&F['__esModule']?F:{'default':F};};function a6F(){const D=['__esModule','forEach','sort','get','isArrayLike','\x20(HTTP\x20status:\x20','js-yaml','replace','keys','create','handleJsonOutput','green','945253hHVwdL','prototype','isObjectLike','No\x20','json','internalId','map','\x20found','writable','3289036dkmoKj','getDate','__importDefault','getOwnPropertyDescriptor','405336uCxZDr','toLowerCase','313566qeQqbS','defineProperty','format','isBoolean','__importStar','getHours','handleYamlOutput','columnify','disabled','log','length','printAsTable','2396loKesL','50SBLotb','isEmpty','handleFormattedOutput','default','configurable','5668088yyIcJy','1881elibVc','consoleFormat','__setModuleDefault','getMonth','stringify','4599690VCZOxF','createdat','getMinutes','hasOwnProperty','updatedat','9Fbovly','set','The\x20request\x20was\x20completed\x20successfully','yaml','chalk','isUndefined','includes','14cNYiui','toString','clone','printResponse','bold','util','safeDump','inspect','call'];a6F=function(){return D;};return a6F();}Object['defineProperty'](exports,a6w(0x99),{'value':!![]}),exports[a6w(0x93)]=exports[a6w(0xc3)]=exports[a6w(0xba)]=exports[a6w(0xa3)]=exports[a6w(0xc8)]=exports['printAsTable']=void 0x0;const chalk_1=__importDefault(require(a6w(0x8d))),_=__importStar(require('lodash')),util=__importStar(require(a6w(0x95))),yaml=require(a6w(0x9f)),columnify=require(a6w(0xbb));function printAsTable(F,e,G,u=![],R=0x0){const c=a6w;!u&&console[c(0xbd)](''+chalk_1[c(0xc4)][c(0x94)](e));function b(V){const l=c;return V===l(0xbc)?V:V[l(0xa0)](l(0xbc),'');}function W(V,a){const h=c;function m(T){const X=a6e,Z=new Date(T);return Z[X(0xaf)]()+'/'+Z[X(0xca)]()+'/'+Z['getFullYear']()+'\x0a'+Z[X(0xb9)]()+':'+Z[X(0x86)]()+':'+Z['getSeconds']();}const t=[h(0x85),h(0x88)];if(t[h(0x8f)](a[h(0xb3)]())&&_['isFinite'](V)&&V['toString']()[h(0xbe)]===0xd)return m(Number(V));if(_[h(0xb7)](V)){if(a!=='disabled'&&a[h(0x8f)](h(0xbc)))return V?'x':'✔';return V?'✔':'x';}if(_['isObjectLike'](V))return util[h(0x97)](V,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return V;}if(_[c(0x9d)](F)){F[c(0xbe)]===0x0&&console[c(0xbd)](c(0xa8)+e[c(0xb3)]()+c(0xac));const V=F[c(0xab)]((t,T)=>{const d=c,Z={'i':T+R};return Object[d(0xa1)](t)[d(0x9a)](n=>{const B=d;(_[B(0x8e)](G)||G[B(0x8f)](n[B(0xb3)]()))&&_[B(0x8a)](Z,b(n),W(t[n],n));}),Z;}),a=_[c(0x92)](Object['keys']((V===null||V===void 0x0?void 0x0:V[0x0])||[]))[c(0x9b)]((t,T)=>{const x=c,Z=n=>n!=='i'?n!==x(0xaa)?0x0:0x1:0x2;return Z(T)-Z(t);}),m={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!u,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':a};console['log'](columnify(V,m));}else console['log'](F);}exports[a6w(0xbf)]=printAsTable;function consoleFormat(F,e){const r=a6w;if(_[r(0xc2)](F)){const G=e?r(0x9e)+e+')':'';return chalk_1[r(0xc4)][r(0xa4)](r(0x8b))+G;}if(!_[r(0xa7)](F))return F===null||F===void 0x0?void 0x0:F[r(0x91)]();return util[r(0x97)](F,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6w(0xc8)]=consoleFormat;const handleJsonOutput=(F,e)=>{const k=a6w,G=F===k(0xa9);if(G)console[k(0xbd)](JSON[k(0xcb)](e,null,'\x20'));};exports['handleJsonOutput']=handleJsonOutput;const handleYamlOutput=(F,e)=>{const K=a6w,G=F===K(0x8c)||F==='yml';if(G)console[K(0xbd)](yaml[K(0x96)](e));};exports['handleYamlOutput']=handleYamlOutput;const handleFormattedOutput=(F,e)=>{const p=a6w,G=F===p(0xb6);if(G)console[p(0xbd)](consoleFormat(e));};exports[a6w(0xc3)]=handleFormattedOutput;const printResponse=(F,e)=>{const O=a6w;(0x0,exports['handleJsonOutput'])(F,e),(0x0,exports[O(0xba)])(F,e),(0x0,exports[O(0xc3)])(F,e);};exports[a6w(0x93)]=printResponse;
1
+ 'use strict';const a6s=a6v;(function(T,v){const o=a6v,W=T();while(!![]){try{const l=-parseInt(o(0x107))/0x1+-parseInt(o(0x11d))/0x2*(-parseInt(o(0x13e))/0x3)+-parseInt(o(0x10d))/0x4+-parseInt(o(0x130))/0x5*(parseInt(o(0x140))/0x6)+-parseInt(o(0x127))/0x7*(-parseInt(o(0xff))/0x8)+parseInt(o(0x141))/0x9+-parseInt(o(0x138))/0xa*(parseInt(o(0x143))/0xb);if(l===v)break;else W['push'](W['shift']());}catch(N){W['push'](W['shift']());}}}(a6T,0x5c0b0));var __createBinding=this&&this[a6s(0x12d)]||(Object[a6s(0x122)]?function(T,v,W,l){const Y=a6s;if(l===undefined)l=W;var N=Object[Y(0x135)](v,W);(!N||(Y(0x11f)in N?!v[Y(0x144)]:N['writable']||N[Y(0x108)]))&&(N={'enumerable':!![],'get':function(){return v[W];}}),Object[Y(0x128)](T,l,N);}:function(T,v,W,l){if(l===undefined)l=W;T[l]=v[W];}),__setModuleDefault=this&&this[a6s(0x114)]||(Object[a6s(0x122)]?function(T,W){const a=a6s;Object[a(0x128)](T,a(0x100),{'enumerable':!![],'value':W});}:function(T,W){const G=a6s;T[G(0x100)]=W;}),__importStar=this&&this[a6s(0x132)]||function(T){const H=a6s;if(T&&T[H(0x144)])return T;var v={};if(T!=null){for(var W in T)if(W!==H(0x100)&&Object[H(0x142)][H(0x13c)][H(0x123)](T,W))__createBinding(v,T,W);}return __setModuleDefault(v,T),v;},__importDefault=this&&this[a6s(0x115)]||function(T){const A=a6s;return T&&T[A(0x144)]?T:{'default':T};};Object[a6s(0x128)](exports,a6s(0x144),{'value':!![]}),exports['printResponse']=exports['handleFormattedOutput']=exports[a6s(0x116)]=exports[a6s(0x113)]=exports[a6s(0x10f)]=exports[a6s(0x118)]=void 0x0;const chalk_1=__importDefault(require(a6s(0x13a))),_=__importStar(require(a6s(0x129))),util=__importStar(require(a6s(0x133))),yaml=require(a6s(0x13f)),columnify=require('columnify');function printAsTable(T,v,W,l=![],N=0x0){const m=a6s;!l&&console[m(0x111)](''+chalk_1[m(0x100)][m(0x126)](v));function y(w){const g=m;return w===g(0x103)?w:w[g(0x145)](g(0x103),'');}function D(w,e){const K=m;function I(k){const F=a6v,x=new Date(k);return x[F(0x105)]()+'/'+x[F(0x120)]()+'/'+x['getFullYear']()+'\x0a'+x['getHours']()+':'+x[F(0x106)]()+':'+x[F(0x12c)]();}const U=[K(0x139),'updatedat'];if(U[K(0x11b)](e[K(0x11e)]())&&_[K(0x119)](w)&&w[K(0x12f)]()[K(0x13d)]===0xd)return I(Number(w));if(_[K(0x137)](w)){if(e!=='disabled'&&e['includes'](K(0x103)))return w?'x':'✔';return w?'✔':'x';}if(_[K(0x102)](w))return util[K(0x13b)](w,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return w;}if(_[m(0x10c)](T)){T[m(0x13d)]===0x0&&console[m(0x111)](m(0x101)+v[m(0x11e)]()+m(0x136));const w=T[m(0x11a)]((U,k)=>{const t=m,x={'i':k+N};return Object[t(0x121)](U)[t(0x125)](B=>{const C=t;(_[C(0x117)](W)||W[C(0x11b)](B[C(0x11e)]()))&&_[C(0x10a)](x,y(B),D(U[B],B));}),x;}),e=_[m(0x12a)](Object[m(0x121)]((w===null||w===void 0x0?void 0x0:w[0x0])||[]))[m(0x12b)]((U,k)=>{const b=m,x=B=>B!=='i'?B!==b(0x10e)?0x0:0x1:0x2;return x(k)-x(U);}),I={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!l,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':e};console[m(0x111)](columnify(w,I));}else console[m(0x111)](T);}exports[a6s(0x118)]=printAsTable;function a6v(T,v){const W=a6T();return a6v=function(l,N){l=l-0xff;let y=W[l];return y;},a6v(T,v);}function consoleFormat(T,v){const P=a6s;if(_[P(0x11c)](T)){const W=v?P(0x104)+v+')':'';return chalk_1['default'][P(0x134)]('The\x20request\x20was\x20completed\x20successfully')+W;}if(!_['isObjectLike'](T))return T===null||T===void 0x0?void 0x0:T[P(0x12f)]();return util[P(0x13b)](T,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6s(0x10f)]=consoleFormat;const handleJsonOutput=(T,v)=>{const z=a6s,W=T===z(0x110);if(W)console[z(0x111)](JSON[z(0x112)](v,null,'\x20'));};exports[a6s(0x113)]=handleJsonOutput;const handleYamlOutput=(T,v)=>{const c=a6s,W=T===c(0x12e)||T===c(0x10b);if(W)console['log'](yaml[c(0x124)](v));};exports[a6s(0x116)]=handleYamlOutput;const handleFormattedOutput=(T,v)=>{const O=a6s,W=T===O(0x109);if(W)console[O(0x111)](consoleFormat(v));};function a6T(){const S=['consoleFormat','json','log','stringify','handleJsonOutput','__setModuleDefault','__importDefault','handleYamlOutput','isUndefined','printAsTable','isFinite','map','includes','isEmpty','9148SQTkzl','toLowerCase','get','getMonth','keys','create','call','safeDump','forEach','bold','56aYokME','defineProperty','lodash','clone','sort','getSeconds','__createBinding','yaml','toString','586035kgeEXT','handleFormattedOutput','__importStar','util','green','getOwnPropertyDescriptor','\x20found','isBoolean','80ifihdF','createdat','chalk','inspect','hasOwnProperty','length','369dMMXgd','js-yaml','18lMDQzy','2853999oKbUyq','prototype','341671tveSgO','__esModule','replace','192184EOawux','default','No\x20','isObjectLike','disabled','\x20(HTTP\x20status:\x20','getDate','getMinutes','34646lltakm','configurable','format','set','yml','isArrayLike','240536wjlyBZ','internalId'];a6T=function(){return S;};return a6T();}exports[a6s(0x131)]=handleFormattedOutput;const printResponse=(T,v)=>{const J=a6s;(0x0,exports['handleJsonOutput'])(T,v),(0x0,exports[J(0x116)])(T,v),(0x0,exports[J(0x131)])(T,v);};exports['printResponse']=printResponse;
@@ -1 +1 @@
1
- 'use strict';const a7P=a7e;function a7e(F,e){const G=a7F();return a7e=function(u,R){u=u-0x112;let b=G[u];return b;},a7e(F,e);}(function(F,e){const L=a7e,G=F();while(!![]){try{const u=-parseInt(L(0x132))/0x1+-parseInt(L(0x113))/0x2*(-parseInt(L(0x12a))/0x3)+parseInt(L(0x134))/0x4+-parseInt(L(0x11b))/0x5*(parseInt(L(0x124))/0x6)+-parseInt(L(0x123))/0x7*(parseInt(L(0x135))/0x8)+-parseInt(L(0x116))/0x9+parseInt(L(0x12e))/0xa;if(u===e)break;else G['push'](G['shift']());}catch(R){G['push'](G['shift']());}}}(a7F,0xe15a1));var __importDefault=this&&this[a7P(0x12f)]||function(F){const U=a7P;return F&&F[U(0x12c)]?F:{'default':F};};Object[a7P(0x13b)](exports,a7P(0x12c),{'value':!![]}),exports['downSampleData']=exports[a7P(0x129)]=void 0x0;const chalk_1=__importDefault(require('chalk')),colored=(F,e)=>{return e===undefined?F:chalk_1['default'][e](F);},getAsciiChart=(F,e={})=>{const F0=a7P,G=Array['isArray'](F[0x0])?F:[F];let u=typeof e[F0(0x131)]!=='undefined'?e[F0(0x131)]:G[0x0][0x0],R=typeof e['max']!==F0(0x136)?e[F0(0x112)]:G[0x0][0x0];for(let h=0x0;h<G['length'];h++){for(let d=0x0;d<G[h][F0(0x137)];d++){u=Math['min'](u,G[h][d]),R=Math[F0(0x112)](R,G[h][d]);}}let b=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],W=Math[F0(0x139)](R-u),V=typeof e[F0(0x130)]!==F0(0x136)?e[F0(0x130)]:0x3,a=typeof e[F0(0x127)]!==F0(0x136)?e[F0(0x127)]:F0(0x122),m=typeof e['height']!=='undefined'?e[F0(0x128)]:W,t=typeof e['colors']!=='undefined'?e[F0(0x114)]:[F0(0x138),F0(0x11d),F0(0x11a),F0(0x11c),F0(0x120)],T=W!==0x0?m/W:0x1,Z=Math['round'](u*T),n=Math[F0(0x117)](R*T),v=Math['abs'](n-Z),A=0x0;for(let B=0x0;B<G[F0(0x137)];B++){A=Math['max'](A,G[B][F0(0x137)]);}A=A+V;let w=typeof e['symbols']!==F0(0x136)?e[F0(0x12d)]:b,o=e[F0(0x126)]!==undefined?e[F0(0x126)]:function(r){const F1=F0;return(a+r[F1(0x11e)](0x2)+e['unit'])[F1(0x121)](-a[F1(0x137)]);},c=new Array(v+0x1);for(let r=0x0;r<=v;r++){c[r]=new Array(A);for(let k=0x0;k<A;k++){c[r][k]='\x20';}}for(let K=Z;K<=n;++K){const p=o(v>0x0?R-(K-Z)*W/v:K,K-Z);c[K-Z][Math[F0(0x112)](V-p[F0(0x137)],0x0)]=p,c[K-Z][V-0x1]=K==0x0?w[0x0]:w[0x1];}for(let O=0x0;O<G[F0(0x137)];O++){let D=t[O%t[F0(0x137)]],z=Math[F0(0x117)](G[O][0x0]*T)-Z;c[v-z][V-0x1]=colored(w[0x0],D);for(let C=0x0;C<G[O][F0(0x137)]-0x1;C++){let N=Math[F0(0x117)](G[O][C+0x0]*T)-Z,I=Math[F0(0x117)](G[O][C+0x1]*T)-Z;if(N==I)c[v-N][C+V]=colored(w[0x4],D);else{c[v-I][C+V]=colored(N>I?w[0x5]:w[0x6],D),c[v-N][C+V]=colored(N>I?w[0x7]:w[0x8],D);let Y=Math[F0(0x131)](N,I),g=Math[F0(0x112)](N,I);for(let Q=Y+0x1;Q<g;Q++){c[v-Q][C+V]=colored(w[0x9],D);}}}}const {startTs:l,endTs:X}=e;if(l||X){const S=E=>{const F2=F0;if(!E)return F2(0x133);const J=E[F2(0x12b)](undefined,{'day':F2(0x119),'month':F2(0x119),'year':F2(0x119)}),M=E['toLocaleTimeString'](undefined,{'hourCycle':F2(0x13a)});return J+'\x20'+M;},q=S(X),f=S(l),H=a[F0(0x121)](0x0,Math['max'](0x2,a[F0(0x137)]-f[F0(0x137)]/0x2+0x1)),s='\x20'['repeat'](Math[F0(0x112)](A-(a[F0(0x137)]+q[F0(0x137)]/0x2),0x1));c[F0(0x125)]([''+H+f+s+q]),c[F0(0x125)]([]);}return c[F0(0x11f)](E=>E['join'](''))[F0(0x118)]('\x0a');};exports[a7P(0x129)]=getAsciiChart;const downSampleData=(F,e)=>{const F3=a7P,G=F[F3(0x137)];if(e>=G||e===0x0)return F;const u=[];let R=0x0;const b=(G-0x2)/(e-0x2);let W=0x0,V,m,t,T;u[R++]=F[W];for(var Z=0x0;Z<e-0x2;Z++){let c=0x0,l=0x0,X=Math[F3(0x115)]((Z+0x1)*b)+0x1,h=Math['floor']((Z+0x2)*b)+0x1;h=h<G?h:G;var n=h-X;for(;X<h;X++){c+=F[X][0x0],l+=F[X][0x1];}c/=n,l/=n;var v=Math[F3(0x115)](Z*b)+0x1,A=Math[F3(0x115)]((Z+0x1)*b)+0x1,w=F[W][0x0],o=F[W][0x1];m=t=-0x1;for(;v<A;v++){t=Math[F3(0x139)]((w-c)*(F[v][0x1]-o)-(w-F[v][0x0])*(l-o))*0.5,t>m&&(m=t,V=F[v],T=v);}u[R++]=V,W=T;}return u[R++]=F[G-0x1],u;};exports['downSampleData']=downSampleData;function a7F(){const F4=['padding','height','getAsciiChart','738330EeSTnR','toLocaleDateString','__esModule','symbols','28874660CBxSKB','__importDefault','offset','min','1230712FIiBCm','\x20\x20\x20','5778476yKpXtj','3552lVrlsP','undefined','length','blue','abs','h24','defineProperty','max','2fhxrZp','colors','floor','3268881DmrFoR','round','join','2-digit','green','1130905DMoLkn','grey','red','toFixed','map','black','slice','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','28931KemJNW','6lVEeVs','push','format'];a7F=function(){return F4;};return a7F();}
1
+ 'use strict';const a7u=a7v;(function(T,v){const j=a7v,W=T();while(!![]){try{const l=parseInt(j(0x87))/0x1*(-parseInt(j(0x90))/0x2)+-parseInt(j(0x81))/0x3+-parseInt(j(0x89))/0x4+parseInt(j(0x72))/0x5*(parseInt(j(0x7d))/0x6)+-parseInt(j(0x78))/0x7*(parseInt(j(0x6e))/0x8)+-parseInt(j(0x79))/0x9+parseInt(j(0x74))/0xa;if(l===v)break;else W['push'](W['shift']());}catch(N){W['push'](W['shift']());}}}(a7T,0x8d820));var __importDefault=this&&this[a7u(0x8a)]||function(T){return T&&T['__esModule']?T:{'default':T};};Object[a7u(0x71)](exports,'__esModule',{'value':!![]}),exports['downSampleData']=exports[a7u(0x70)]=void 0x0;const chalk_1=__importDefault(require(a7u(0x86))),colored=(T,v)=>{const q=a7u;return v===undefined?T:chalk_1[q(0x77)][v](T);},getAsciiChart=(T,v={})=>{const L=a7u,W=Array['isArray'](T[0x0])?T:[T];let l=typeof v[L(0x75)]!==L(0x7a)?v['min']:W[0x0][0x0],N=typeof v[L(0x6f)]!==L(0x7a)?v[L(0x6f)]:W[0x0][0x0];for(let F=0x0;F<W[L(0x88)];F++){for(let K=0x0;K<W[F]['length'];K++){l=Math[L(0x75)](l,W[F][K]),N=Math[L(0x6f)](N,W[F][K]);}}let D=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],w=Math[L(0x76)](N-l),e=typeof v[L(0x8f)]!==L(0x7a)?v['offset']:0x3,I=typeof v[L(0x7b)]!==L(0x7a)?v[L(0x7b)]:L(0x85),U=typeof v[L(0x7c)]!==L(0x7a)?v[L(0x7c)]:w,k=typeof v['colors']!==L(0x7a)?v[L(0x8d)]:['blue','red',L(0x73),'grey','black'],B=w!==0x0?U/w:0x1,o=Math[L(0x8b)](l*B),s=Math[L(0x8b)](N*B),Y=Math[L(0x76)](s-o),a=0x0;for(let t=0x0;t<W[L(0x88)];t++){a=Math[L(0x6f)](a,W[t][L(0x88)]);}a=a+e;let G=typeof v[L(0x68)]!=='undefined'?v[L(0x68)]:D,H=v[L(0x82)]!==undefined?v[L(0x82)]:function(C){const T0=L;return(I+C[T0(0x8c)](0x2)+v[T0(0x7f)])[T0(0x6a)](-I[T0(0x88)]);},A=new Array(Y+0x1);for(let C=0x0;C<=Y;C++){A[C]=new Array(a);for(let b=0x0;b<a;b++){A[C][b]='\x20';}}for(let P=o;P<=s;++P){const z=H(Y>0x0?N-(P-o)*w/Y:P,P-o);A[P-o][Math['max'](e-z[L(0x88)],0x0)]=z,A[P-o][e-0x1]=P==0x0?G[0x0]:G[0x1];}for(let c=0x0;c<W['length'];c++){let O=k[c%k['length']],J=Math[L(0x8b)](W[c][0x0]*B)-o;A[Y-J][e-0x1]=colored(G[0x0],O);for(let S=0x0;S<W[c][L(0x88)]-0x1;S++){let d=Math[L(0x8b)](W[c][S+0x0]*B)-o,h=Math[L(0x8b)](W[c][S+0x1]*B)-o;if(d==h)A[Y-d][S+e]=colored(G[0x4],O);else{A[Y-h][S+e]=colored(d>h?G[0x5]:G[0x6],O),A[Y-d][S+e]=colored(d>h?G[0x7]:G[0x8],O);let E=Math['min'](d,h),M=Math[L(0x6f)](d,h);for(let p=E+0x1;p<M;p++){A[Y-p][S+e]=colored(G[0x9],O);}}}}const {startTs:m,endTs:g}=v;if(m||g){const Z=V=>{const T1=L;if(!V)return T1(0x6c);const n=V[T1(0x83)](undefined,{'day':T1(0x91),'month':'2-digit','year':'2-digit'}),Q=V[T1(0x80)](undefined,{'hourCycle':T1(0x8e)});return n+'\x20'+Q;},r=Z(g),R=Z(m),f=I[L(0x6a)](0x0,Math[L(0x6f)](0x2,I[L(0x88)]-R[L(0x88)]/0x2+0x1)),X='\x20'[L(0x69)](Math[L(0x6f)](a-(I[L(0x88)]+r[L(0x88)]/0x2),0x1));A[L(0x84)]([''+f+R+X+r]),A[L(0x84)]([]);}return A[L(0x6d)](V=>V[L(0x7e)](''))[L(0x7e)]('\x0a');};exports[a7u(0x70)]=getAsciiChart;function a7v(T,v){const W=a7T();return a7v=function(l,N){l=l-0x68;let y=W[l];return y;},a7v(T,v);}const downSampleData=(T,v)=>{const T2=a7u,W=T[T2(0x88)];if(v>=W||v===0x0)return T;const l=[];let N=0x0;const y=(W-0x2)/(v-0x2);let D=0x0,w,e,I,U;l[N++]=T[D];for(var k=0x0;k<v-0x2;k++){let G=0x0,H=0x0,A=Math['floor']((k+0x1)*y)+0x1,m=Math[T2(0x6b)]((k+0x2)*y)+0x1;m=m<W?m:W;var x=m-A;for(;A<m;A++){G+=T[A][0x0],H+=T[A][0x1];}G/=x,H/=x;var B=Math['floor'](k*y)+0x1,o=Math[T2(0x6b)]((k+0x1)*y)+0x1,s=T[D][0x0],Y=T[D][0x1];e=I=-0x1;for(;B<o;B++){I=Math[T2(0x76)]((s-G)*(T[B][0x1]-Y)-(s-T[B][0x0])*(H-Y))*0.5,I>e&&(e=I,w=T[B],U=B);}l[N++]=w,D=U;}return l[N++]=T[W-0x1],l;};function a7T(){const T3=['length','3408960JnsSaj','__importDefault','round','toFixed','colors','h24','offset','26QFfXCw','2-digit','symbols','repeat','slice','floor','\x20\x20\x20','map','4392AXFPHa','max','getAsciiChart','defineProperty','4160245AGWWOV','green','22406950iLcZcU','min','abs','default','1169beBUyZ','3537153vGylTB','undefined','padding','height','6ruQelX','join','unit','toLocaleTimeString','2422311Wogoox','format','toLocaleDateString','push','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','chalk','26827esvZzv'];a7T=function(){return T3;};return a7T();}exports['downSampleData']=downSampleData;
@@ -1 +1 @@
1
- 'use strict';const a8o=a8e;(function(F,e){const w=a8e,G=F();while(!![]){try{const u=-parseInt(w(0x1c3))/0x1+-parseInt(w(0x264))/0x2+parseInt(w(0x1ce))/0x3*(parseInt(w(0x232))/0x4)+-parseInt(w(0x1bf))/0x5+parseInt(w(0x1e4))/0x6*(parseInt(w(0x26e))/0x7)+-parseInt(w(0x219))/0x8+parseInt(w(0x26d))/0x9;if(u===e)break;else G['push'](G['shift']());}catch(R){G['push'](G['shift']());}}}(a8F,0x3c018));var __createBinding=this&&this[a8o(0x27f)]||(Object[a8o(0x207)]?function(F,e,G,u){const i=a8o;if(u===undefined)u=G;var R=Object[i(0x281)](e,G);(!R||(i(0x276)in R?!e['__esModule']:R['writable']||R['configurable']))&&(R={'enumerable':!![],'get':function(){return e[G];}}),Object['defineProperty'](F,u,R);}:function(F,e,G,u){if(u===undefined)u=G;F[u]=e[G];}),__setModuleDefault=this&&this[a8o(0x23a)]||(Object['create']?function(F,e){const l=a8o;Object[l(0x229)](F,l(0x179),{'enumerable':!![],'value':e});}:function(F,e){const X=a8o;F[X(0x179)]=e;}),__importStar=this&&this[a8o(0x224)]||function(F){const h=a8o;if(F&&F[h(0x274)])return F;var e={};if(F!=null){for(var G in F)if(G!==h(0x179)&&Object[h(0x18d)][h(0x28b)]['call'](F,G))__createBinding(e,F,G);}return __setModuleDefault(e,F),e;},__awaiter=this&&this[a8o(0x1f1)]||function(F,e,G,u){function R(b){return b instanceof G?b:new G(function(W){W(b);});}return new(G||(G=Promise))(function(b,W){const r=a8e;function V(t){const d=a8e;try{m(u[d(0x1cd)](t));}catch(T){W(T);}}function a(t){const B=a8e;try{m(u[B(0x1a2)](t));}catch(T){W(T);}}function m(t){const x=a8e;t[x(0x1a6)]?b(t[x(0x251)]):R(t[x(0x251)])['then'](V,a);}m((u=u['apply'](F,e||[]))[r(0x1cd)]());});},__importDefault=this&&this[a8o(0x258)]||function(F){const k=a8o;return F&&F[k(0x274)]?F:{'default':F};};Object[a8o(0x229)](exports,a8o(0x274),{'value':!![]}),exports[a8o(0x1c4)]=void 0x0;const _=__importStar(require(a8o(0x1e3))),chalk_1=__importDefault(require(a8o(0x280))),fs=__importStar(require('fs')),utils_1=require(a8o(0x228)),api_helpers_1=require(a8o(0x234)),inquirer_pagination_prompt_1=require(a8o(0x24c)),inquirer=require(a8o(0x240)),inquirerSearchList=require(a8o(0x1fe)),yaml=require('js-yaml');var ConfirmChoices;function a8e(F,e){const G=a8F();return a8e=function(u,R){u=u-0x178;let b=G[u];return b;},a8e(F,e);}(function(F){const K=a8o;F['YES']='Yes,\x20send',F[K(0x19b)]=K(0x283),F[K(0x271)]=K(0x1d1),F['SAVE']=K(0x27a),F[K(0x1b7)]=K(0x1bb);}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(F){const p=a8o;this[p(0x1f7)]=F,this[p(0x1f0)]=0x32,this[p(0x189)]=e=>__awaiter(this,void 0x0,void 0x0,function*(){const O=p,{editedResult:G}=yield inquirer['prompt']([{'type':O(0x1db),'name':O(0x220),'message':O(0x22b),'default':yaml[O(0x1a7)](e)}]);return yaml[O(0x17f)](G);}),this[p(0x1ca)]=e=>__awaiter(this,void 0x0,void 0x0,function*(){const D=p,G=W=>'Unexpected\x20file\x20type:\x20'+W+D(0x223);function u(){return __awaiter(this,void 0x0,void 0x0,function*(){const z=a8e;return inquirer[z(0x1b0)]([{'type':z(0x17d),'name':z(0x209),'message':'Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','validate':W=>new RegExp(z(0x221))[z(0x1c2)](W)?!![]:G(W)}]);});}const {fileName:R}=yield u(),b=R[D(0x185)]()[D(0x260)]('.')[D(0x1d5)]();try{switch(b){case D(0x227):(0x0,utils_1[D(0x1c1)])(D(0x203)+R);return fs[D(0x1d8)](R,JSON[D(0x1af)](e,null,'\x20\x20'));case D(0x27b):case D(0x245):(0x0,utils_1[D(0x1c1)])(D(0x203)+R);return fs[D(0x1d8)](R,yaml[D(0x1a7)](e));default:(0x0,utils_1['warning'])(G(b));}}catch(W){(0x0,utils_1['warning'])(D(0x21e)+W[D(0x1fc)]);}return undefined;}),this['filter']=(e,G)=>u=>{const C=p,R=typeof u===C(0x1b1)?u[C(0x231)]():u;return G===![]&&R===C(0x252)?'':R;},this[p(0x237)]=(e,G,u)=>R=>{const N=p;if(this[N(0x1aa)]===!![])return!![];const b=[];if(R===''||R===N(0x252)){if(G!==![])b[N(0x253)]('this\x20option\x20is\x20required,\x20please\x20answer');else return!![];}e['type']===N(0x1b1)&&!_[N(0x266)](e[N(0x19a)])&&b[N(0x253)](new RegExp(e[N(0x19a)])['test'](R)?!![]:N(0x23c)+e[N(0x19a)]+'\x27');e[N(0x1d9)]===N(0x1b1)&&!_[N(0x266)](e[N(0x225)])&&b['push'](R['length']>=e[N(0x225)]?!![]:'must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20'+e[N(0x225)]+'\x20characters,\x20is\x20'+R[N(0x196)]+'\x20characters');e[N(0x1d9)]==='string'&&!_[N(0x266)](e[N(0x211)])&&b[N(0x253)](R[N(0x196)]<=e['maxLength']?!![]:N(0x22a)+e['maxLength']+N(0x26f)+R[N(0x196)]+'\x20characters');u&&Number[N(0x204)](parseInt(R,0xa))&&b[N(0x253)]('must\x20be\x20a\x20number,\x20is\x20'+R);e[N(0x1d9)]==='integer'&&!_['isUndefined'](e[N(0x20a)])&&b[N(0x253)](R>=e[N(0x20a)]?!![]:N(0x1c9)+e[N(0x20a)]);e[N(0x1d9)]===N(0x1d4)&&!_[N(0x266)](e[N(0x288)])&&b[N(0x253)](R<=e['maximum']?!![]:N(0x1f4)+e['maximum']);if(e[N(0x1d9)]===N(0x1c0)){const a=(0x0,utils_1[N(0x218)])(R);b[N(0x253)](a===![]||_[N(0x216)](a)?N(0x20e):!![]);}const W=b['filter'](m=>m!==!![]),V=(e===null||e===void 0x0?void 0x0:e['example'])?'\x0a'+chalk_1['default'][N(0x24e)]('>>')+N(0x1b4)+chalk_1[N(0x179)][N(0x24f)](JSON['stringify'](e[N(0x20c)])):'';return W[N(0x196)]>0x0?W['join'](chalk_1[N(0x179)]['underline'](N(0x1a9)))+V:!![];},this[p(0x28f)]=(e,G,u)=>{const I=p,R=e[e[I(0x196)]-0x1];function b(){const Y=I;return e[Y(0x200)](0x0,-0x1)[Y(0x1b3)](a=>a[Y(0x1f9)](0x0)['toUpperCase']()+a[Y(0x200)](0x1))[Y(0x1a0)]('>');}const W=e[I(0x196)]>0x1?chalk_1[I(0x179)]['bgGrey'][I(0x24f)](b())+':\x20':'',V=u?'\x20('+chalk_1[I(0x179)][I(0x1bc)](u)+')':'';return chalk_1[I(0x179)][I(0x194)](''+W+G+'\x20'+chalk_1[I(0x179)][I(0x1cf)][I(0x1b6)](R)+V+'?');},this[p(0x26c)]=(e,G,u)=>__awaiter(this,void 0x0,void 0x0,function*(){const g=p;if(G[g(0x196)]<0x1){const W=u?'for\x20this\x20'+u:g(0x1d0);throw new Error(g(0x282)+e+'\x20'+W+'.');}const R='Choose\x20the\x20'+e+g(0x1e7),b=G[g(0x196)]>0x4?g(0x21b):'list';return(yield inquirer[g(0x1b0)]([{'type':b,'name':g(0x22d),'message':R,'choices':G}]))[g(0x22d)];}),this[p(0x17e)]=(e,G,u)=>__awaiter(this,void 0x0,void 0x0,function*(){const Q=p,{elements:R,nextCursor:b}=yield G();if(R[Q(0x196)]<0x1){const a=u?Q(0x1ff)+u:'found';throw new Error(Q(0x282)+e+'\x20'+a+'.');}const W=Q(0x191)+e+Q(0x1e7);if(b!==undefined){const m=({nextPageCursor:t})=>__awaiter(this,void 0x0,void 0x0,function*(){const S=Q,T=yield G(t);return{'elements':T['elements'],'nextPageCursor':T[S(0x1c7)]};});return(yield inquirer['prompt']([{'type':Q(0x222),'name':Q(0x22d),'message':W,'choices':R,'nextPageCursor':b,'loadMore':m}]))[Q(0x22d)];}const V=R['length']>0x4?Q(0x21b):Q(0x1fa);return(yield inquirer[Q(0x1b0)]([{'type':V,'name':Q(0x22d),'message':W,'choices':R}]))[Q(0x22d)];}),this['askGeneric']=(e,G)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const j=p,u=''+(G?'('+chalk_1[j(0x179)][j(0x1bc)](G)+')\x20':''),R=j(0x286)+chalk_1['default'][j(0x182)](e)+'\x20'+u+j(0x193),b=this[j(0x237)]({'type':j(0x1b1),'required':!![]});return(yield inquirer['prompt']([{'type':j(0x17d),'name':j(0x22d),'message':R,'validate':b}]))[j(0x22d)];}),this[p(0x212)]=e=>__awaiter(this,void 0x0,void 0x0,function*(){const q=p;return(yield inquirer[q(0x1b0)]([{'type':q(0x1f2),'name':q(0x22d),'message':e,'default':!![]}]))[q(0x22d)];}),this[p(0x1fb)]=e=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const H=p,G=u=>__awaiter(this,void 0x0,void 0x0,function*(){const f=a8e,R=yield this[f(0x1f7)]['list']['services']['all']({'parameters':{'projectId':u}}),b=R['data']['services']['map'](W=>W['id']);return b;});return this['askForProjectScopedResource'](H(0x1dc),G,e);}),this[p(0x238)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const y=p,e=G=>__awaiter(this,void 0x0,void 0x0,function*(){const s=a8e;var u;const R=yield this[s(0x1f7)][s(0x1fa)][s(0x188)]({'options':{'per_page':this[s(0x1f0)],'cursor':G}}),b=R[s(0x1c6)][s(0x188)][s(0x1b3)](W=>W['id']);return{'elements':b,'nextCursor':(u=R[s(0x242)])===null||u===void 0x0?void 0x0:u[s(0x255)]};});return this[y(0x17e)]('template',e);}),this[p(0x1da)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=p,e=G=>__awaiter(this,void 0x0,void 0x0,function*(){const E=a8e;var u,R,b;const W=yield this[E(0x1f7)][E(0x1fa)][E(0x19c)]({'options':{'per_page':this[E(0x1f0)],'cursor':G}}),V=(R=(u=W[E(0x1c6)]['tags'])===null||u===void 0x0?void 0x0:u['map'](a=>a['id']))!==null&&R!==void 0x0?R:[];return{'elements':V,'nextCursor':(b=W[E(0x242)])===null||b===void 0x0?void 0x0:b['cursor']};});return this[J(0x17e)](J(0x17a),e);}),this[p(0x1b9)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const M=p;var e;const G=yield this[M(0x1f7)]['list'][M(0x1a3)][M(0x257)]({}),u=(e=G[M(0x1c6)][M(0x1a3)][M(0x1b3)](R=>R['name']))!==null&&e!==void 0x0?e:[];return this['askForResource'](M(0x279),u);}),this[p(0x1f6)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const P=p,e=G=>__awaiter(this,void 0x0,void 0x0,function*(){const L=a8e;var u,R,b;const W=yield this[L(0x1f7)][L(0x1fa)]['cloud'][L(0x1f5)]({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':G}}),V=(R=(u=W[L(0x1c6)][L(0x1f5)])===null||u===void 0x0?void 0x0:u[L(0x1b3)](a=>a['name']))!==null&&R!==void 0x0?R:[];return{'elements':V,'nextCursor':(b=W[L(0x242)])===null||b===void 0x0?void 0x0:b[L(0x255)]};});return this[P(0x17e)](P(0x18f),e);}),this[p(0x19f)]=e=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const U=p;if(_[U(0x266)](e))throw new Error(U(0x183));const G=u=>__awaiter(this,void 0x0,void 0x0,function*(){const F0=U;var R;let b=this[F0(0x1f0)];const W=yield this[F0(0x1f7)][F0(0x1fa)][F0(0x19e)]({'parameters':{'templateId':e},'options':{'per_page':b,'cursor':u}}),V=W['data']['templateRuns'][F0(0x1b3)](a=>a['id']+F0(0x1d3)+a[F0(0x1f8)]+')');return{'elements':V,'nextCursor':(R=W['pagination'])===null||R===void 0x0?void 0x0:R[F0(0x255)]};});return this[U(0x17e)]('template\x20run',G)[U(0x23b)](u=>u[U(0x260)]('\x20')[0x0]);}),this[p(0x1cc)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const F2=p,e=G=>__awaiter(this,void 0x0,void 0x0,function*(){const F1=a8e;var u;let R=this[F1(0x1f0)];const b=yield this['apiClient'][F1(0x1fa)][F1(0x259)]({'options':{'per_page':R,'cursor':G}}),W=b[F1(0x1c6)][F1(0x259)][F1(0x1b3)](V=>V['id']);return{'elements':W,'nextCursor':(u=b[F1(0x242)])===null||u===void 0x0?void 0x0:u['cursor']};});return this[F2(0x17e)]('log\x20sink',e);}),this[p(0x1e2)]=e=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const F4=p,G=u=>__awaiter(this,void 0x0,void 0x0,function*(){const F3=a8e,R=yield this[F3(0x1f7)][F3(0x1fa)][F3(0x195)][F3(0x257)]({'parameters':{'projectId':u}});return R[F3(0x1c6)][F3(0x195)][F3(0x1b3)](b=>b['id']);});return this[F4(0x25a)](F4(0x233),G,e);}),this[p(0x1e5)]=e=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const F6=p,G=u=>__awaiter(this,void 0x0,void 0x0,function*(){const F5=a8e,R=yield this['apiClient'][F5(0x1fa)]['jobs']['all']({'parameters':{'projectId':u}}),b=R[F5(0x1c6)][F5(0x22e)]['map'](W=>W['id']);return b;});return this[F6(0x25a)](F6(0x230),G,e);}),this[p(0x25e)]=(e,G,u=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const F7=p,R=F7(0x261),b=W=>V=>__awaiter(this,void 0x0,void 0x0,function*(){const F8=F7;var a;const m=yield this[F8(0x1f7)][F8(0x276)][F8(0x230)][F8(0x27d)]({'parameters':{'projectId':W,'jobId':e},'options':{'per_page':this[F8(0x1f0)],'cursor':V}}),t=m[F8(0x1c6)][F8(0x27d)][F8(0x1b3)](T=>T['id']+F8(0x1d3)+T[F8(0x1e0)]+')');return u&&t[F8(0x26b)](R),{'elements':t,'nextCursor':(a=m['pagination'])===null||a===void 0x0?void 0x0:a[F8(0x255)]};});return this['askForProjectScopedResourcePaginated']('job\x20runs',b,G,F7(0x1dd)+e+'\x27')['then'](W=>{const F9=F7,V=W[F9(0x260)]('\x20')[0x0];if(V===R)return undefined;return V;});}),this[p(0x1ad)]=(e,G,u,R=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const FF=p,b=FF(0x1c5);if(u!==undefined){const W=V=>a=>__awaiter(this,void 0x0,void 0x0,function*(){const Fe=FF;var m;const t=yield this[Fe(0x1f7)][Fe(0x276)][Fe(0x230)][Fe(0x201)]({'parameters':{'projectId':V,'jobId':u},'options':{'per_page':this[Fe(0x1f0)],'cursor':a}}),T=t[Fe(0x1c6)][Fe(0x201)][Fe(0x1b3)](Z=>Z['id']+Fe(0x1d3)+Z[Fe(0x1f8)]+')');return R&&T[Fe(0x26b)](b),{'elements':T,'nextCursor':(m=t['pagination'])===null||m===void 0x0?void 0x0:m['cursor']};});return this[FF(0x1d6)](FF(0x28c),W,e,FF(0x1dd)+u+'\x27')['then'](V=>{const FG=FF,a=V[FG(0x260)]('\x20')[0x0];if(a===b)return undefined;return a;});}if(G!==undefined){const V=a=>m=>__awaiter(this,void 0x0,void 0x0,function*(){const Fu=FF;var t;const T=yield this[Fu(0x1f7)][Fu(0x276)][Fu(0x1dc)][Fu(0x201)]({'parameters':{'projectId':a,'serviceId':G},'options':{'per_page':this[Fu(0x1f0)],'cursor':m}}),Z=T[Fu(0x1c6)][Fu(0x201)][Fu(0x1b3)](n=>n['id']+Fu(0x1d3)+n[Fu(0x1f8)]+')');if(R)Z[Fu(0x26b)](b);return{'elements':Z,'nextCursor':(t=T['pagination'])===null||t===void 0x0?void 0x0:t[Fu(0x255)]};});return this['askForProjectScopedResourcePaginated'](FF(0x1eb),V,e,FF(0x17c)+u+'\x27')[FF(0x23b)](a=>{const m=a['split']('\x20')[0x0];if(m===b)return undefined;return m;});}throw new Error(FF(0x1a8));}),this[p(0x1b5)]=(e,G,u,R=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const FR=p,b=FR(0x21d);if(u!==undefined){const W=V=>a=>__awaiter(this,void 0x0,void 0x0,function*(){const Fb=FR;var m,t;const T=yield this[Fb(0x1f7)][Fb(0x276)][Fb(0x230)][Fb(0x28d)]({'parameters':{'projectId':V,'jobId':u},'options':{'per_page':this[Fb(0x1f0)],'cursor':a}}),Z=(m=T[Fb(0x1c6)][Fb(0x28d)])!==null&&m!==void 0x0?m:[],n=Z===null||Z===void 0x0?void 0x0:Z['map'](v=>v[Fb(0x22d)]+'\x20(startedAt:\x20'+v[Fb(0x1f8)]+')');return R&&n['unshift'](b),{'elements':n,'nextCursor':(t=T[Fb(0x242)])===null||t===void 0x0?void 0x0:t[Fb(0x255)]};});return this[FR(0x1d6)]('job\x20containers',W,e,FR(0x1dd)+u+'\x27')[FR(0x23b)](V=>{const FW=FR,a=V[FW(0x260)]('\x20')[0x0];if(a===b)return undefined;return a;});}if(G!==undefined){const V=a=>m=>__awaiter(this,void 0x0,void 0x0,function*(){const FV=FR;var t,T;const Z=yield this['apiClient'][FV(0x276)]['service'][FV(0x28d)]({'parameters':{'projectId':a,'serviceId':G},'options':{'per_page':this[FV(0x1f0)],'cursor':m}}),n=(t=Z[FV(0x1c6)]['containers'])!==null&&t!==void 0x0?t:[],v=n[FV(0x1b3)](A=>A['name']+'\x20(startedAt:\x20'+A[FV(0x1f8)]+')');if(R)v===null||v===void 0x0?void 0x0:v[FV(0x26b)](b);return{'elements':v,'nextCursor':(T=Z['pagination'])===null||T===void 0x0?void 0x0:T[FV(0x255)]};});return this[FR(0x1d6)](FR(0x250),V,e,'service:\x20\x27'+u+'\x27')['then'](a=>{const Fa=FR,m=a[Fa(0x260)]('\x20')[0x0];if(m===b)return undefined;return m;});}throw new Error('No\x20containers\x20found');}),this[p(0x1d2)]=e=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Ft=p,G=u=>__awaiter(this,void 0x0,void 0x0,function*(){const Fm=a8e,R=yield this[Fm(0x1f7)][Fm(0x1fa)][Fm(0x248)][Fm(0x257)]({'parameters':{'projectId':u}});return R['data'][Fm(0x248)][Fm(0x1b3)](b=>b['id']);});return this[Ft(0x25a)](Ft(0x272),G,e);}),this[p(0x24a)]=(e,G)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const FZ=p,u=R=>b=>__awaiter(this,void 0x0,void 0x0,function*(){const FT=a8e;var W;const V=yield this['apiClient'][FT(0x276)][FT(0x272)]['backups']({'parameters':{'projectId':R,'addonId':G},'options':{'per_page':this[FT(0x1f0)],'cursor':b}});return{'elements':V[FT(0x1c6)][FT(0x278)][FT(0x1b3)](a=>a['id']+FT(0x1ed)+(a['completedAt']||FT(0x243))+')'),'nextCursor':(W=V[FT(0x242)])===null||W===void 0x0?void 0x0:W[FT(0x255)]};});return this[FZ(0x1d6)](FZ(0x278),u,e,FZ(0x1de)+G+'\x27')[FZ(0x23b)](R=>R[FZ(0x260)]('\x20')[0x0]);}),this[p(0x197)]=(e,G,u)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Fv=p,R=b=>W=>__awaiter(this,void 0x0,void 0x0,function*(){const Fn=a8e;var V;const a=yield this[Fn(0x1f7)][Fn(0x276)][Fn(0x272)]['backup'][Fn(0x1ec)]({'parameters':{'projectId':b,'addonId':G,'backupId':u},'options':{'per_page':this[Fn(0x1f0)],'cursor':W}});return{'elements':a[Fn(0x1c6)]['restores'][Fn(0x1b3)](m=>m['id']+'\x20(completedAt:\x20'+(m[Fn(0x1d7)]||Fn(0x243))+')'),'nextCursor':(V=a[Fn(0x242)])===null||V===void 0x0?void 0x0:V[Fn(0x255)]};});return this[Fv(0x1d6)](Fv(0x21f),R,e,Fv(0x1de)+G+'\x27')['then'](b=>b[Fv(0x260)]('\x20')[0x0]);}),this[p(0x28e)]=e=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Fw=p,G=u=>__awaiter(this,void 0x0,void 0x0,function*(){const FA=a8e;return(yield this[FA(0x1f7)][FA(0x1fa)][FA(0x1ac)]({'parameters':{'projectId':u}}))[FA(0x1c6)][FA(0x1b3)](R=>R['id']);});return this[Fw(0x25a)](Fw(0x239),G,e);}),this[p(0x21a)]=e=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Fi=p,G=u=>__awaiter(this,void 0x0,void 0x0,function*(){const Fo=a8e,R=yield this[Fo(0x1f7)][Fo(0x1fa)][Fo(0x1e9)]['all']({'parameters':{'projectId':u}});return R['data']['secrets'][Fo(0x1b3)](b=>b['id']);});return this[Fi(0x25a)]('secret',G,e);}),this[p(0x21c)]=e=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Fc=p,G=yield this[Fc(0x1f7)][Fc(0x276)][Fc(0x199)]({'parameters':{'domain':e}}),u=G[Fc(0x1c6)][Fc(0x289)][Fc(0x1b3)](b=>b[Fc(0x22d)]+Fc(0x217)+b['fullName']+')'),R='domain\x20('+e+')';return this[Fc(0x26c)](Fc(0x213),u,R)[Fc(0x23b)](b=>b[Fc(0x260)]('\x20')[0x0]);}),this[p(0x198)]=(e,G)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Fl=p,u=yield this[Fl(0x1f7)]['list']['subdomain'][Fl(0x20b)]({'parameters':{'domain':e,'subdomain':G}}),R=u[Fl(0x1c6)][Fl(0x28a)][Fl(0x1b3)](W=>''+W[Fl(0x254)]),b=Fl(0x23e)+e+Fl(0x1cb)+G+')';return this[Fl(0x26c)](Fl(0x1e8),R,b);}),this[p(0x181)]=e=>__awaiter(this,void 0x0,void 0x0,function*(){const FX=p;return(yield inquirer[FX(0x1b0)]([{'type':FX(0x1f2),'name':FX(0x25b),'message':chalk_1[FX(0x179)]['yellowBright'](FX(0x25f)+(e||FX(0x1e1))+FX(0x1a4)),'default':![]}]))[FX(0x25b)];}),this[p(0x20f)]=(e,G)=>__awaiter(this,void 0x0,void 0x0,function*(){const Fh=p;_['isUndefined'](e['name'])&&(G[Fh(0x196)]<=0x0?_[Fh(0x18b)](e,Fh(0x22d),Fh(0x179)):yield(0x0,utils_1[Fh(0x267)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const Fd=Fh,{name:u}=yield inquirer[Fd(0x1b0)]([{'type':'input','name':Fd(0x22d),'message':Fd(0x277),'default':Fd(0x1e6)}]);if(!e[Fd(0x1ae)]&&G[Fd(0x180)](R=>R[Fd(0x22d)]===u)){const {c:R}=yield inquirer[Fd(0x1b0)]([{'type':Fd(0x1f2),'name':'c','message':'Context\x20with\x20name\x20\x27'+u+Fd(0x1a1),'default':![]}]);if(R===![])throw new Error(Fd(0x265));_[Fd(0x18b)](e,Fd(0x1ae),!![]);}_[Fd(0x18b)](e,Fd(0x22d),u);})));if(_['isUndefined'](e[Fh(0x22c)])){const u=yield this[Fh(0x210)]();_[Fh(0x18b)](e,Fh(0x22c),u);}return e;}),this['tokenPrompt']=()=>__awaiter(this,void 0x0,void 0x0,function*(){const FB=p,{token:e}=yield inquirer['prompt']([{'type':FB(0x208),'name':'token','mask':'*','message':FB(0x249)}]);return e;}),inquirer[p(0x20d)]('search-list',inquirerSearchList),inquirer[p(0x20d)]('pagination-prompt',inquirer_pagination_prompt_1[p(0x190)]);}[a8o(0x18c)](F,e){return __awaiter(this,void 0x0,void 0x0,function*(){const Fx=a8e,G=yaml[Fx(0x1a7)](F),u=_['max'](G[Fx(0x260)]('\x0a')[Fx(0x1b3)](W=>W[Fx(0x196)])),R=chalk_1[Fx(0x179)][Fx(0x178)]('-'['repeat'](u)+'\x0a'),{confirm:b}=yield inquirer[Fx(0x1b0)]([{'type':'list','name':Fx(0x1f2),'message':''+chalk_1[Fx(0x179)][Fx(0x1cf)][Fx(0x182)](Fx(0x285))+R+chalk_1[Fx(0x179)][Fx(0x244)](G)+R,'choices':Object[Fx(0x1b2)](ConfirmChoices)}]);switch(b){case ConfirmChoices[Fx(0x202)]:return F;case ConfirmChoices[Fx(0x1b7)]:throw new Error(Fx(0x1f3));case ConfirmChoices[Fx(0x19b)]:return this[Fx(0x1ea)](e);case ConfirmChoices[Fx(0x271)]:return this['confirmationPrompt'](yield this[Fx(0x189)](F),e);case ConfirmChoices[Fx(0x275)]:yield this[Fx(0x1ca)](F);return this['confirmationPrompt'](F,e);default:throw new Error(Fx(0x187));}});}['retrievePayloadViaInteractiveCli'](F,e){return __awaiter(this,void 0x0,void 0x0,function*(){const Fr=a8e;if((e===null||e===void 0x0?void 0x0:e[Fr(0x22f)])!==undefined)this[Fr(0x22f)]=e===null||e===void 0x0?void 0x0:e['resultCache'];this['tmpCmdPath']=e===null||e===void 0x0?void 0x0:e[Fr(0x270)],this[Fr(0x1aa)]=e===null||e===void 0x0?void 0x0:e[Fr(0x1aa)];const G={};return yield this[Fr(0x186)]([],F[Fr(0x184)][Fr(0x247)],G),this[Fr(0x22f)]=G,yield this[Fr(0x18c)](G,F);});}[a8o(0x186)](F,e,G,u){return __awaiter(this,void 0x0,void 0x0,function*(){const Fk=a8e;let R;if(e[Fk(0x263)]&&!_[Fk(0x25d)](e,Fk(0x1fd))){if(e[Fk(0x263)][Fk(0x196)]>0x1){const {choice:b}=yield inquirer[Fk(0x1b0)]([{'type':'list','name':Fk(0x284),'message':Fk(0x1ef)+(F[F[Fk(0x196)]-0x1]||'')+Fk(0x262),'choices':e[Fk(0x263)][Fk(0x1b3)](W=>{const FK=Fk;var V;return(V=W[FK(0x235)])!==null&&V!==void 0x0?V:'??';})}]);R=yield this[Fk(0x1ee)](F,e[Fk(0x263)][Fk(0x180)](W=>W[Fk(0x235)]===b),G,u);}else{const W=e[Fk(0x263)][0x0];_[Fk(0x18b)](W,Fk(0x235),e[Fk(0x235)]),R=yield this[Fk(0x1ee)](F,W,G,u);}R={};}else{if(e[Fk(0x26a)]&&!_[Fk(0x25d)](e,'properties')){if(e[Fk(0x26a)][Fk(0x196)]>0x1){const {choice:V}=yield inquirer['prompt']([{'type':'list','name':Fk(0x284),'message':Fk(0x1ef)+(F[F['length']-0x1]||'')+Fk(0x262),'choices':[...e[Fk(0x26a)]['map'](a=>{var m;return(m=a['description'])!==null&&m!==void 0x0?m:'??';}),Fk(0x252)]}]);V!==Fk(0x252)&&(R=yield this['getType'](F,e[Fk(0x26a)]['find'](a=>a['description']===V),G,u));}else{const a=e[Fk(0x26a)][0x0];_[Fk(0x18b)](a,'description',e['description']),R=yield this[Fk(0x1ee)](F,a,G,u);}R={};}else R=yield this[Fk(0x1ee)](F,e,G,u);}return R;});}[a8o(0x241)](F,e,G,u){var R;return __awaiter(this,void 0x0,void 0x0,function*(){const Fp=a8e;if(u===![]){const {addEntry:V}=yield inquirer[Fp(0x1b0)]([{'type':Fp(0x1f2),'name':'addEntry','message':this['getPathString'](e,'Do\x20you\x20want\x20to\x20add',F===null||F===void 0x0?void 0x0:F[Fp(0x235)]),'default':![]}]);if(!V)return G;}const b=Object[Fp(0x1be)]((R=F===null||F===void 0x0?void 0x0:F[Fp(0x1fd)])!==null&&R!==void 0x0?R:[]),W=F[Fp(0x1a5)]||[];if(b[Fp(0x196)]>0x0)for(const a of b){const m=e[Fp(0x268)](a);if(e[Fp(0x196)]>0x0&&!_[Fp(0x25d)](G,e[Fp(0x1a0)]('.')))_['set'](G,e[Fp(0x1a0)]('.'),{});yield this['propToType'](m,F[Fp(0x1fd)][a],G,W[Fp(0x236)](a));}else yield this['getType'](e,Object['assign'](Object[Fp(0x287)]({},F),{'type':Fp(0x1c0)}),G,u);return G;});}[a8o(0x1c8)](F,e,G,u){return __awaiter(this,void 0x0,void 0x0,function*(){const FO=a8e;if(e&&G)return!![];const R=e?FO(0x18a):FO(0x256),{addEntry:b}=yield inquirer[FO(0x1b0)]([{'type':FO(0x1f2),'name':'addEntry','message':this[FO(0x28f)](F,R,e?u:undefined),'default':![]}]);return b;});}[a8o(0x1ee)](F,e,G,u){return __awaiter(this,void 0x0,void 0x0,function*(){const FD=a8e;let R;const b=F[FD(0x1a0)]('.');switch(e===null||e===void 0x0?void 0x0:e[FD(0x1d9)]){case FD(0x1ab):{let W=!![];while(yield this[FD(0x1c8)](F,W,u,e===null||e===void 0x0?void 0x0:e[FD(0x235)])){const V=_[FD(0x276)](G,b);_['unset'](G,b),yield this[FD(0x1ee)](F,e['items'],G);const a=_[FD(0x276)](G,b);!_[FD(0x215)](V)?_[FD(0x18b)](G,b,[a]):(V[FD(0x253)](a),_[FD(0x18b)](G,b,V)),W=![];}return R||[];}case FD(0x1b8):{return R=yield this[FD(0x241)](e,F,G,u),R;}case FD(0x1c0):R=(0x0,utils_1[FD(0x218)])(yield this['ask'](F,e,u))||undefined;break;case FD(0x1b1):case FD(0x1df):case FD(0x1d4):default:R=yield this[FD(0x1ba)](F,e,u,G);break;}return!_['isUndefined'](R)&&_[FD(0x18b)](G,b,R),R;});}['ask'](F,e,G,u){var R;return __awaiter(this,void 0x0,void 0x0,function*(){const Fz=a8e,b=F[F[Fz(0x196)]-0x1],{defaultValue:defaultValue=(R=e===null||e===void 0x0?void 0x0:e[Fz(0x20c)])!==null&&R!==void 0x0?R:e===null||e===void 0x0?void 0x0:e[Fz(0x179)],choices:choices=e===null||e===void 0x0?void 0x0:e[Fz(0x192)],pagination:W}=yield(0x0,api_helpers_1['fetchResourceList'])(b,this['apiClient'],this['tmpCmdPath'],u,this[Fz(0x206)],F);let V=Fz(0x17d);if(!_['isUndefined'](choices)&&choices[Fz(0x196)]>0x0){if(W!==undefined&&W[Fz(0x269)]!==undefined)V=Fz(0x222);else choices['length']>0x4&&typeof choices[0x0]===Fz(0x1b1)?V=Fz(0x21b):V=Fz(0x1fa);}else{if((e===null||e===void 0x0?void 0x0:e[Fz(0x1d9)])===Fz(0x1df))V=Fz(0x1f2);else{if((e===null||e===void 0x0?void 0x0:e[Fz(0x1d9)])===Fz(0x1d4))V=Fz(0x17d);else(e===null||e===void 0x0?void 0x0:e['type'])===Fz(0x1c0)&&(V=Fz(0x1db));}}let a=G!==![]?!_[Fz(0x23f)](defaultValue)?defaultValue:JSON[Fz(0x1af)](defaultValue):_['isBoolean'](defaultValue)?defaultValue:Fz(0x252);if(choices)a=a[Fz(0x185)]();_[Fz(0x25d)](this[Fz(0x22f)],F['join']('.'))&&(a=this[Fz(0x22f)][F[Fz(0x1a0)]('.')]);const m=choices&&G===![]?['don\x27t\x20change',...choices]:choices,t=(e===null||e===void 0x0?void 0x0:e[Fz(0x1d9)])===Fz(0x1d4),T=Object[Fz(0x287)]({'type':V,'name':'id','message':this['getQuestionString'](F,e),'choices':m,'default':a,'filter':this[Fz(0x246)](V,G),'validate':this[Fz(0x237)](e,G,t)},W),Z=(yield inquirer[Fz(0x1b0)]([T]))['id'];if(Z===Fz(0x252)||Z==='')return undefined;if(t)return parseInt(Z,0xa);return Z;});}[a8o(0x24d)](F,e){const FC=a8o,G=(e===null||e===void 0x0?void 0x0:e['type'])!=='boolean'?FC(0x205):FC(0x27c);return this[FC(0x28f)](F,G,e===null||e===void 0x0?void 0x0:e[FC(0x235)]);}['askForProject'](){return __awaiter(this,void 0x0,void 0x0,function*(){const FN=a8e,F=yield this['apiClient'][FN(0x1fa)]['projects'][FN(0x257)]({})['then'](e=>e[FN(0x1c6)]['projects'][FN(0x1b3)](G=>G['id']));return yield this['askForResource']('project',F);});}[a8o(0x25a)](F,e,G,u){return __awaiter(this,void 0x0,void 0x0,function*(){const FI=a8e,R=G||this['apiClient'][FI(0x27e)][FI(0x19d)]();if(_[FI(0x266)](R))throw new Error(FI(0x25c));const b=yield e(R);return yield this[FI(0x26c)](F,b,(u?u+FI(0x18e):'')+'project:\x20\x27'+R+'\x27');});}['askForProjectScopedResourcePaginated'](F,e,G,u){return __awaiter(this,void 0x0,void 0x0,function*(){const FY=a8e,R=G||this[FY(0x1f7)]['contextProvider'][FY(0x19d)]();if(_['isUndefined'](R))throw new Error(FY(0x25c));const b=yield e(R);return yield this[FY(0x17e)](F,b,(u?u+'\x20in\x20':'')+FY(0x24b)+R+'\x27');});}[a8o(0x17b)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Fg=a8e,F=yield this[Fg(0x1f7)][Fg(0x1fa)][Fg(0x273)][Fg(0x257)]({}),e=F[Fg(0x1c6)][Fg(0x273)]['map'](G=>G[Fg(0x22d)]);return this[Fg(0x26c)]('domain',e);});}[a8o(0x214)](){return __awaiter(this,void 0x0,void 0x0,function*(){const FQ=a8e,F=yield this[FQ(0x1f7)][FQ(0x1fa)][FQ(0x23d)][FQ(0x257)]({}),e=F[FQ(0x1c6)][FQ(0x226)][FQ(0x1b3)](G=>G['id']);return this[FQ(0x26c)](FQ(0x226),e);});}[a8o(0x1bd)](F){this['pathVars']=F;}}exports[a8o(0x1c4)]=InquirerHelper;function a8F(){const FS=['to\x20use:','reset','pipelines','length','askForAddonRestore','askForSubdomainPath','domain','pattern','REPEAT','tags','getCurrentProjectName','templateRuns','askForTemplateRun','join','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','throw','backupDestinations','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','required','done','safeDump','No\x20builds\x20found','\x20and\x20it\x20','skipValidation','array','volumes','askForBuild','override','stringify','prompt','string','values','map','\x20Example:\x20','askForContainer','greenBright','ABORT','object','askForBackupDestination','ask','No,\x20abort','blue','setPathVars','keys','763485TNalHH','rawObject','success','test','158393RzdVsq','InquirerHelper','all-builds','data','nextCursor','askArrayEntry','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','saveFile','),\x20subdomain\x20(','askForLogSink','next','421206KkmvvR','bold','found','No,\x20edit','askForAddon','\x20(startedAt:\x20','integer','pop','askForProjectScopedResourcePaginated','completedAt','writeFileSync','type','askForTag','editor','service','job:\x20\x27','addon:\x20\x27','boolean','startedAt','a\x20Northflank\x20resource','askForPipeline','lodash','138786PNmwSa','askForJob','main-context','\x20to\x20use:','subdomainPath','secrets','retrievePayloadViaInteractiveCli','service\x20build','restores','\x20(completedAt:\x20','getType','What\x27s\x20the\x20','defaultPaginationPageSize','__awaiter','confirm','Aborted.','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','clusters','askForClusterId','apiClient','createdAt','charAt','list','askForService','message','properties','inquirer-search-list','for\x20this\x20','slice','builds','YES','Configuration\x20file\x20written\x20to\x20','isNaN','What\x20do\x20you\x20want\x20to\x20use\x20as','pathVars','create','password','fileName','minimum','path','example','registerPrompt','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','loginPrompt','tokenPrompt','maxLength','askConfirm','subdomain','askForCredentials','isArray','isEmpty','\x20(full\x20domain:\x20','isValidJSON','3837720hnhDoU','askForSecret','search-list','askForSubdomain','all-containers','Writing\x20configuration\x20failed:\x20','restore','editedResult','.*\x5c.(json|yaml|yml)$','pagination-prompt',',\x20supported\x20types:\x20[json|yaml|yml]','__importStar','minLength','credentials','json','./utils','defineProperty','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','Go\x20to\x20editor','token','name','jobs','resultCache','job','trim','12PYRAap','pipeline','./api-helpers','description','includes','validate','askForTemplate','volume','__setModuleDefault','then','doesn\x27t\x20match\x20pattern\x20\x27','registryCredentials','domain\x20(','isObject','inquirer','getInnerType','pagination','not\x20completed','blueBright','yml','filter','body','addons','Choose\x20the\x20login\x20token:','askForAddonBackup','project:\x20\x27','./pagination/inquirer-pagination-prompt','getQuestionString','red','whiteBright','service\x20containers','value','don\x27t\x20change','push','uri','cursor','Do\x20you\x20want\x20to\x20add\x20more','all','__importDefault','logSinks','askForProjectScopedResource','confirmation','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','has','askForJobRun','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','split','all-job-runs','\x20type?','oneOf','250200lwjDmW','Context\x20name\x20already\x20exists.','isUndefined','retry','concat','nextPageCursor','anyOf','unshift','askForResource','6456168qAoHoI','7krArlM','\x20characters,\x20is\x20','cmdPath','EDIT','addon','domains','__esModule','SAVE','get','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','backups','backup\x20destination','No,\x20but\x20save\x20as\x20file','yaml','Should\x20it\x20be','runs','contextProvider','__createBinding','chalk','getOwnPropertyDescriptor','No\x20','No,\x20repeat','choice','Please\x20confirm\x20following\x20configuration:\x0a','Enter\x20the\x20','assign','maximum','subdomains','paths','hasOwnProperty','job\x20builds','containers','askForVolume','getPathString','grey','default','tag','askForDomain','service:\x20\x27','input','askForResourcePaginated','safeLoad','find','deleteWarningPrompt','green','Template\x20id\x20not\x20provided.','opt','toString','propToType','Something\x20unexpected\x20happened.','templates','editPayload','Do\x20you\x20want\x20to\x20add','set','confirmationPrompt','prototype','\x20in\x20','cluster\x20id','DynamicReloadPaginationPrompt','Choose\x20the\x20','enum'];a8F=function(){return FS;};return a8F();}
1
+ 'use strict';const a8a=a8v;(function(T,v){const Y=a8v,W=T();while(!![]){try{const l=parseInt(Y(0x21b))/0x1+-parseInt(Y(0x1c2))/0x2*(-parseInt(Y(0x224))/0x3)+parseInt(Y(0x223))/0x4*(-parseInt(Y(0x1e7))/0x5)+-parseInt(Y(0x211))/0x6*(-parseInt(Y(0x22e))/0x7)+-parseInt(Y(0x2b4))/0x8+-parseInt(Y(0x1d5))/0x9+parseInt(Y(0x246))/0xa;if(l===v)break;else W['push'](W['shift']());}catch(N){W['push'](W['shift']());}}}(a8T,0x688b3));function a8v(T,v){const W=a8T();return a8v=function(l,N){l=l-0x1a6;let y=W[l];return y;},a8v(T,v);}var __createBinding=this&&this[a8a(0x238)]||(Object[a8a(0x2b5)]?function(T,v,W,l){const G=a8a;if(l===undefined)l=W;var N=Object[G(0x242)](v,W);(!N||(G(0x1be)in N?!v['__esModule']:N[G(0x1ab)]||N['configurable']))&&(N={'enumerable':!![],'get':function(){return v[W];}}),Object[G(0x269)](T,l,N);}:function(T,v,W,l){if(l===undefined)l=W;T[l]=v[W];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a8a(0x2b5)]?function(T,W){const H=a8a;Object[H(0x269)](T,H(0x1c1),{'enumerable':!![],'value':W});}:function(T,W){T['default']=W;}),__importStar=this&&this[a8a(0x247)]||function(T){const A=a8a;if(T&&T['__esModule'])return T;var v={};if(T!=null){for(var W in T)if(W!==A(0x1c1)&&Object[A(0x213)][A(0x215)][A(0x229)](T,W))__createBinding(v,T,W);}return __setModuleDefault(v,T),v;},__awaiter=this&&this[a8a(0x1f7)]||function(T,v,W,l){function N(y){return y instanceof W?y:new W(function(D){D(y);});}return new(W||(W=Promise))(function(y,D){const K=a8v;function w(U){const m=a8v;try{I(l[m(0x230)](U));}catch(k){D(k);}}function e(U){const g=a8v;try{I(l[g(0x1ae)](U));}catch(k){D(k);}}function I(U){const F=a8v;U['done']?y(U[F(0x289)]):N(U[F(0x289)])[F(0x22f)](w,e);}I((l=l[K(0x2a4)](T,v||[]))['next']());});},__importDefault=this&&this[a8a(0x249)]||function(T){const t=a8a;return T&&T[t(0x25c)]?T:{'default':T};};Object['defineProperty'](exports,a8a(0x25c),{'value':!![]}),exports[a8a(0x2af)]=void 0x0;const _=__importStar(require(a8a(0x1b4))),chalk_1=__importDefault(require('chalk')),fs=__importStar(require('fs')),utils_1=require(a8a(0x1a7)),api_helpers_1=require('./api-helpers'),inquirer_pagination_prompt_1=require(a8a(0x1ad)),inquirer=require(a8a(0x2aa)),inquirerSearchList=require(a8a(0x292)),yaml=require(a8a(0x1ba));var ConfirmChoices;(function(T){const C=a8a;T[C(0x1b2)]=C(0x1f9),T['REPEAT']=C(0x2b6),T[C(0x256)]=C(0x27b),T['SAVE']='No,\x20but\x20save\x20as\x20file',T['ABORT']=C(0x1d0);}(ConfirmChoices||(ConfirmChoices={})));function a8T(){const TZ=['secrets','tokenPrompt','items','resultCache','askForTemplate','Configuration\x20file\x20written\x20to\x20','No\x20','must\x20be\x20a\x20number,\x20is\x20','type','yaml','completedAt','Do\x20you\x20want\x20to\x20add','\x20(completedAt:\x20','required','all','deleteWarningPrompt','No\x20builds\x20found','doesn\x27t\x20match\x20pattern\x20\x27','boolean','677142UbgfTL','fetchResourceList','prototype','all-containers','hasOwnProperty','split','askGeneric','blueBright','editedResult','bold','833872RXyWlW','opt','runs','for\x20this\x20','getCurrentProjectName','main-context','volumes','token','4ZNywQF','3OzCqaK','Something\x20unexpected\x20happened.','Template\x20id\x20not\x20provided.','body','template','call','askForClusterId','Should\x20it\x20be','pathVars','volume','7bWsrQK','then','next','service\x20containers','registerPrompt','isEmpty','askForTag','example','clusters','templates','__createBinding','object','isArray','search-list','don\x27t\x20change','createdAt','templateRuns','secret','askForAddonBackup','projects','getOwnPropertyDescriptor','saveFile','to\x20use:','job\x20builds','2121740meJiFc','__importStar','builds','__importDefault','yellowBright','askForService','anyOf','test','assign','grey','askForVolume','isObject','project','tags','Please\x20confirm\x20following\x20configuration:\x0a','map','EDIT','properties','message','addon','array','getInnerType','__esModule','includes','jobs','paths','Enter\x20the\x20','ask','Choose\x20the\x20','this\x20option\x20is\x20required,\x20please\x20answer','json','safeLoad','yml','job','editor','defineProperty','askArrayEntry','maxLength','DynamicReloadPaginationPrompt','askForResourcePaginated','Aborted.','data','REPEAT','isNaN','retry','tag','underline','ABORT','push','writeFileSync','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','confirmationPrompt','prompt','No,\x20edit','\x20characters','reset','defaultPaginationPageSize','pagination','list','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','addons','charAt','nextPageCursor','pagination-prompt','confirm','domain\x20(','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','value','\x20in\x20','integer','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','nextCursor','minLength','\x20(startedAt:\x20','choice','job:\x20\x27','inquirer-search-list','not\x20completed','registryCredentials','askForPipeline','loginPrompt','What\x27s\x20the\x20','whiteBright','password','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','slice','containers','askForLogSink','pipelines','.*\x5c.(json|yaml|yml)$','maximum','backups','Go\x20to\x20editor','bgGrey','apply','red','getQuestionString','warning','askForProjectScopedResourcePaginated','find','inquirer','askForResource','job\x20runs','addEntry','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','InquirerHelper','enum','propToType','max','skipValidation','3593528MeqJlC','create','No,\x20repeat','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','stringify','askForSubdomainPath','name','all-job-runs','cloud','service','apiClient','./utils','rawObject','\x20(full\x20domain:\x20','askForTemplateRun','writable','askForAddonRestore','./pagination/inquirer-pagination-prompt','throw','editPayload','input','has','YES','log\x20sink','lodash','filter','addon:\x20\x27','backupDestinations','\x20characters,\x20is\x20','isUndefined','js-yaml','domain','setPathVars','join','get','toString','template\x20run','default','1520200qYrgPN','service:\x20\x27','string','override','getPathString','logSinks','description','length','getType','pipeline','safeDump','success','askForSubdomain','contextProvider','No,\x20abort','a\x20Northflank\x20resource','Choose\x20the\x20login\x20token:','values','oneOf','4923504uWGVhE',',\x20supported\x20types:\x20[json|yaml|yml]','tmpCmdPath','backup\x20destination','elements','confirmation','green','No\x20containers\x20found','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','job\x20containers','minimum','credentials','services','askForSecret','restores','validate','cluster\x20id','unshift','2472725mULzKC','),\x20subdomain\x20(','uri','cursor','askForBuild','Context\x20name\x20already\x20exists.','Do\x20you\x20want\x20to\x20add\x20more','all-builds','fullName','blue','\x20type?','isValidJSON','subdomain','set','Writing\x20configuration\x20failed:\x20','subdomains','__awaiter','Context\x20with\x20name\x20\x27','Yes,\x20send','What\x20do\x20you\x20want\x20to\x20use\x20as','askForProjectScopedResource','repeat','pattern'];a8T=function(){return TZ;};return a8T();}class InquirerHelper{constructor(T){const b=a8a;this[b(0x1a6)]=T,this[b(0x27e)]=0x32,this[b(0x1af)]=v=>__awaiter(this,void 0x0,void 0x0,function*(){const P=b,{editedResult:W}=yield inquirer[P(0x27a)]([{'type':P(0x268),'name':P(0x219),'message':P(0x2a2),'default':yaml[P(0x1cc)](v)}]);return yaml[P(0x265)](W);}),this[b(0x243)]=v=>__awaiter(this,void 0x0,void 0x0,function*(){const z=b,W=D=>'Unexpected\x20file\x20type:\x20'+D+z(0x1d6);function l(){return __awaiter(this,void 0x0,void 0x0,function*(){const O=a8v;return inquirer[O(0x27a)]([{'type':O(0x1b0),'name':'fileName','message':O(0x28c),'validate':D=>new RegExp(O(0x29f))[O(0x24d)](D)?!![]:W(D)}]);});}const {fileName:N}=yield l(),y=N[z(0x1bf)]()[z(0x216)]('.')['pop']();try{switch(y){case z(0x264):(0x0,utils_1[z(0x1cd)])(z(0x203)+N);return fs[z(0x277)](N,JSON[z(0x2b8)](v,null,'\x20\x20'));case z(0x207):case z(0x266):(0x0,utils_1[z(0x1cd)])(z(0x203)+N);return fs['writeFileSync'](N,yaml[z(0x1cc)](v));default:(0x0,utils_1[z(0x2a7)])(W(y));}}catch(D){(0x0,utils_1[z(0x2a7)])(z(0x1f5)+D[z(0x258)]);}return undefined;}),this[b(0x1b5)]=(v,W)=>l=>{const J=b,N=typeof l===J(0x1c4)?l['trim']():l;return W===![]&&N===J(0x23c)?'':N;},this[b(0x1e4)]=(v,W,l)=>N=>{const S=b;if(this[S(0x2b3)]===!![])return!![];const y=[];if(N===''||N===S(0x23c)){if(W!==![])y[S(0x276)](S(0x263));else return!![];}v[S(0x206)]==='string'&&!_[S(0x1b9)](v[S(0x1fd)])&&y['push'](new RegExp(v['pattern'])[S(0x24d)](N)?!![]:S(0x20f)+v[S(0x1fd)]+'\x27');v['type']===S(0x1c4)&&!_[S(0x1b9)](v[S(0x28e)])&&y[S(0x276)](N[S(0x1c9)]>=v['minLength']?!![]:'must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20'+v[S(0x28e)]+S(0x1b8)+N[S(0x1c9)]+'\x20characters');v[S(0x206)]===S(0x1c4)&&!_['isUndefined'](v[S(0x26b)])&&y[S(0x276)](N[S(0x1c9)]<=v[S(0x26b)]?!![]:S(0x278)+v[S(0x26b)]+S(0x1b8)+N[S(0x1c9)]+S(0x27c));l&&Number[S(0x271)](parseInt(N,0xa))&&y[S(0x276)](S(0x205)+N);v[S(0x206)]===S(0x28b)&&!_['isUndefined'](v[S(0x1df)])&&y[S(0x276)](N>=v[S(0x1df)]?!![]:S(0x1dd)+v[S(0x1df)]);v['type']==='integer'&&!_[S(0x1b9)](v[S(0x2a0)])&&y[S(0x276)](N<=v[S(0x2a0)]?!![]:'must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20'+v[S(0x2a0)]);if(v[S(0x206)]==='rawObject'){const e=(0x0,utils_1[S(0x1f2)])(N);y[S(0x276)](e===![]||_[S(0x233)](e)?'must\x20be\x20a\x20valid\x20non-empty\x20json\x20string':!![]);}const D=y[S(0x1b5)](I=>I!==!![]),w=(v===null||v===void 0x0?void 0x0:v[S(0x235)])?'\x0a'+chalk_1['default'][S(0x2a5)]('>>')+'\x20Example:\x20'+chalk_1[S(0x1c1)][S(0x298)](JSON['stringify'](v['example'])):'';return D[S(0x1c9)]>0x0?D['join'](chalk_1[S(0x1c1)][S(0x274)]('\x20and\x20it\x20'))+w:!![];},this['getPathString']=(v,W,l)=>{const h=b,N=v[v['length']-0x1];function y(){const d=a8v;return v[d(0x29b)](0x0,-0x1)[d(0x255)](e=>e[d(0x283)](0x0)['toUpperCase']()+e[d(0x29b)](0x1))['join']('>');}const D=v[h(0x1c9)]>0x1?chalk_1[h(0x1c1)][h(0x2a3)][h(0x298)](y())+':\x20':'',w=l?'\x20('+chalk_1[h(0x1c1)][h(0x1f0)](l)+')':'';return chalk_1[h(0x1c1)][h(0x27d)](''+D+W+'\x20'+chalk_1[h(0x1c1)][h(0x21a)]['greenBright'](N)+w+'?');},this[b(0x2ab)]=(v,W,l)=>__awaiter(this,void 0x0,void 0x0,function*(){const E=b;if(W[E(0x1c9)]<0x1){const D=l?E(0x21e)+l:'found';throw new Error(E(0x204)+v+'\x20'+D+'.');}const N=E(0x262)+v+'\x20to\x20use:',y=W[E(0x1c9)]>0x4?E(0x23b):E(0x280);return(yield inquirer['prompt']([{'type':y,'name':E(0x2ba),'message':N,'choices':W}]))['name'];}),this[b(0x26d)]=(v,W,l)=>__awaiter(this,void 0x0,void 0x0,function*(){const i=b,{elements:N,nextCursor:y}=yield W();if(N['length']<0x1){const e=l?i(0x21e)+l:'found';throw new Error(i(0x204)+v+'\x20'+e+'.');}const D=i(0x262)+v+'\x20to\x20use:';if(y!==undefined){const I=({nextPageCursor:U})=>__awaiter(this,void 0x0,void 0x0,function*(){const M=i,k=yield W(U);return{'elements':k[M(0x1d9)],'nextPageCursor':k[M(0x28d)]};});return(yield inquirer['prompt']([{'type':'pagination-prompt','name':i(0x2ba),'message':D,'choices':N,'nextPageCursor':y,'loadMore':I}]))['name'];}const w=N[i(0x1c9)]>0x4?'search-list':i(0x280);return(yield inquirer['prompt']([{'type':w,'name':i(0x2ba),'message':D,'choices':N}]))['name'];}),this[b(0x217)]=(v,W)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const p=b,l=''+(W?'('+chalk_1[p(0x1c1)]['blue'](W)+')\x20':''),N=p(0x260)+chalk_1[p(0x1c1)][p(0x1db)](v)+'\x20'+l+p(0x244),y=this[p(0x1e4)]({'type':p(0x1c4),'required':!![]});return(yield inquirer[p(0x27a)]([{'type':p(0x1b0),'name':p(0x2ba),'message':N,'validate':y}]))[p(0x2ba)];}),this['askConfirm']=v=>__awaiter(this,void 0x0,void 0x0,function*(){const Z=b;return(yield inquirer['prompt']([{'type':Z(0x286),'name':Z(0x2ba),'message':v,'default':!![]}]))['name'];}),this[b(0x24b)]=v=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const R=b,W=l=>__awaiter(this,void 0x0,void 0x0,function*(){const r=a8v,N=yield this[r(0x1a6)][r(0x280)][r(0x1e1)][r(0x20c)]({'parameters':{'projectId':l}}),y=N[r(0x26f)][r(0x1e1)][r(0x255)](D=>D['id']);return y;});return this[R(0x1fb)]('service',W,v);}),this[b(0x202)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const X=b,v=W=>__awaiter(this,void 0x0,void 0x0,function*(){const f=a8v;var l;const N=yield this[f(0x1a6)]['list'][f(0x237)]({'options':{'per_page':this[f(0x27e)],'cursor':W}}),y=N[f(0x26f)][f(0x237)][f(0x255)](D=>D['id']);return{'elements':y,'nextCursor':(l=N['pagination'])===null||l===void 0x0?void 0x0:l['cursor']};});return this['askForResourcePaginated'](X(0x228),v);}),this[b(0x234)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const n=b,v=W=>__awaiter(this,void 0x0,void 0x0,function*(){const V=a8v;var l,N,y;const D=yield this['apiClient'][V(0x280)][V(0x253)]({'options':{'per_page':this[V(0x27e)],'cursor':W}}),w=(N=(l=D[V(0x26f)][V(0x253)])===null||l===void 0x0?void 0x0:l[V(0x255)](e=>e['id']))!==null&&N!==void 0x0?N:[];return{'elements':w,'nextCursor':(y=D['pagination'])===null||y===void 0x0?void 0x0:y[V(0x1ea)]};});return this[n(0x26d)](n(0x273),v);}),this['askForBackupDestination']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Q=b;var v;const W=yield this['apiClient']['list'][Q(0x1b7)][Q(0x20c)]({}),l=(v=W[Q(0x26f)]['backupDestinations']['map'](N=>N[Q(0x2ba)]))!==null&&v!==void 0x0?v:[];return this[Q(0x2ab)](Q(0x1d8),l);}),this[b(0x22a)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const u=b,v=W=>__awaiter(this,void 0x0,void 0x0,function*(){const j=a8v;var l,N,y;const D=yield this[j(0x1a6)][j(0x280)][j(0x2bc)][j(0x236)]({'options':{'per_page':this[j(0x27e)],'cursor':W}}),w=(N=(l=D[j(0x26f)][j(0x236)])===null||l===void 0x0?void 0x0:l[j(0x255)](e=>e['name']))!==null&&N!==void 0x0?N:[];return{'elements':w,'nextCursor':(y=D['pagination'])===null||y===void 0x0?void 0x0:y[j(0x1ea)]};});return this['askForResourcePaginated'](u(0x1e5),v);}),this[b(0x1aa)]=v=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const q=b;if(_[q(0x1b9)](v))throw new Error(q(0x226));const W=l=>__awaiter(this,void 0x0,void 0x0,function*(){const L=q;var N;let y=this[L(0x27e)];const D=yield this[L(0x1a6)][L(0x280)][L(0x23e)]({'parameters':{'templateId':v},'options':{'per_page':y,'cursor':l}}),w=D[L(0x26f)][L(0x23e)][L(0x255)](e=>e['id']+L(0x28f)+e[L(0x23d)]+')');return{'elements':w,'nextCursor':(N=D['pagination'])===null||N===void 0x0?void 0x0:N['cursor']};});return this[q(0x26d)](q(0x1c0),W)['then'](l=>l[q(0x216)]('\x20')[0x0]);}),this[b(0x29d)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const T1=b,v=W=>__awaiter(this,void 0x0,void 0x0,function*(){const T0=a8v;var l;let N=this[T0(0x27e)];const y=yield this['apiClient']['list'][T0(0x1c7)]({'options':{'per_page':N,'cursor':W}}),D=y[T0(0x26f)][T0(0x1c7)]['map'](w=>w['id']);return{'elements':D,'nextCursor':(l=y[T0(0x27f)])===null||l===void 0x0?void 0x0:l['cursor']};});return this[T1(0x26d)](T1(0x1b3),v);}),this[b(0x295)]=v=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const T3=b,W=l=>__awaiter(this,void 0x0,void 0x0,function*(){const T2=a8v,N=yield this[T2(0x1a6)][T2(0x280)][T2(0x29e)][T2(0x20c)]({'parameters':{'projectId':l}});return N['data'][T2(0x29e)]['map'](y=>y['id']);});return this[T3(0x1fb)](T3(0x1cb),W,v);}),this['askForJob']=v=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const T5=b,W=l=>__awaiter(this,void 0x0,void 0x0,function*(){const T4=a8v,N=yield this[T4(0x1a6)]['list'][T4(0x25e)][T4(0x20c)]({'parameters':{'projectId':l}}),y=N['data'][T4(0x25e)][T4(0x255)](D=>D['id']);return y;});return this['askForProjectScopedResource'](T5(0x267),W,v);}),this['askForJobRun']=(v,W,l=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const T6=b,N=T6(0x2bb),y=D=>w=>__awaiter(this,void 0x0,void 0x0,function*(){const T7=T6;var e;const I=yield this[T7(0x1a6)][T7(0x1be)]['job'][T7(0x21d)]({'parameters':{'projectId':D,'jobId':v},'options':{'per_page':this[T7(0x27e)],'cursor':w}}),U=I[T7(0x26f)][T7(0x21d)][T7(0x255)](k=>k['id']+T7(0x28f)+k['startedAt']+')');return l&&U[T7(0x1e6)](N),{'elements':U,'nextCursor':(e=I[T7(0x27f)])===null||e===void 0x0?void 0x0:e[T7(0x1ea)]};});return this[T6(0x2a8)](T6(0x2ac),y,W,'job:\x20\x27'+v+'\x27')[T6(0x22f)](D=>{const w=D['split']('\x20')[0x0];if(w===N)return undefined;return w;});}),this[b(0x1eb)]=(v,W,l,N=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const T8=b,y=T8(0x1ee);if(l!==undefined){const D=w=>e=>__awaiter(this,void 0x0,void 0x0,function*(){const T9=T8;var I;const U=yield this[T9(0x1a6)]['get'][T9(0x267)][T9(0x248)]({'parameters':{'projectId':w,'jobId':l},'options':{'per_page':this[T9(0x27e)],'cursor':e}}),k=U[T9(0x26f)][T9(0x248)][T9(0x255)](x=>x['id']+'\x20(startedAt:\x20'+x[T9(0x23d)]+')');return N&&k[T9(0x1e6)](y),{'elements':k,'nextCursor':(I=U[T9(0x27f)])===null||I===void 0x0?void 0x0:I[T9(0x1ea)]};});return this[T8(0x2a8)](T8(0x245),D,v,T8(0x291)+l+'\x27')['then'](w=>{const TT=T8,e=w[TT(0x216)]('\x20')[0x0];if(e===y)return undefined;return e;});}if(W!==undefined){const w=e=>I=>__awaiter(this,void 0x0,void 0x0,function*(){const Tv=T8;var U;const k=yield this[Tv(0x1a6)][Tv(0x1be)][Tv(0x2bd)]['builds']({'parameters':{'projectId':e,'serviceId':W},'options':{'per_page':this[Tv(0x27e)],'cursor':I}}),x=k[Tv(0x26f)][Tv(0x248)][Tv(0x255)](B=>B['id']+Tv(0x28f)+B[Tv(0x23d)]+')');if(N)x[Tv(0x1e6)](y);return{'elements':x,'nextCursor':(U=k[Tv(0x27f)])===null||U===void 0x0?void 0x0:U['cursor']};});return this[T8(0x2a8)]('service\x20build',w,v,'service:\x20\x27'+l+'\x27')[T8(0x22f)](e=>{const TW=T8,I=e[TW(0x216)]('\x20')[0x0];if(I===y)return undefined;return I;});}throw new Error(T8(0x20e));}),this['askForContainer']=(v,W,l,N=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Tl=b,y=Tl(0x214);if(l!==undefined){const D=w=>e=>__awaiter(this,void 0x0,void 0x0,function*(){const TN=Tl;var I,U;const k=yield this['apiClient']['get'][TN(0x267)][TN(0x29c)]({'parameters':{'projectId':w,'jobId':l},'options':{'per_page':this[TN(0x27e)],'cursor':e}}),x=(I=k[TN(0x26f)]['containers'])!==null&&I!==void 0x0?I:[],B=x===null||x===void 0x0?void 0x0:x[TN(0x255)](o=>o[TN(0x2ba)]+TN(0x28f)+o[TN(0x23d)]+')');return N&&B[TN(0x1e6)](y),{'elements':B,'nextCursor':(U=k[TN(0x27f)])===null||U===void 0x0?void 0x0:U['cursor']};});return this[Tl(0x2a8)](Tl(0x1de),D,v,'job:\x20\x27'+l+'\x27')['then'](w=>{const Ty=Tl,e=w[Ty(0x216)]('\x20')[0x0];if(e===y)return undefined;return e;});}if(W!==undefined){const w=e=>I=>__awaiter(this,void 0x0,void 0x0,function*(){const TD=Tl;var U,k;const x=yield this[TD(0x1a6)][TD(0x1be)][TD(0x2bd)][TD(0x29c)]({'parameters':{'projectId':e,'serviceId':W},'options':{'per_page':this[TD(0x27e)],'cursor':I}}),B=(U=x['data'][TD(0x29c)])!==null&&U!==void 0x0?U:[],o=B[TD(0x255)](s=>s[TD(0x2ba)]+'\x20(startedAt:\x20'+s[TD(0x23d)]+')');if(N)o===null||o===void 0x0?void 0x0:o[TD(0x1e6)](y);return{'elements':o,'nextCursor':(k=x['pagination'])===null||k===void 0x0?void 0x0:k['cursor']};});return this[Tl(0x2a8)](Tl(0x231),w,v,Tl(0x1c3)+l+'\x27')[Tl(0x22f)](e=>{const Tw=Tl,I=e[Tw(0x216)]('\x20')[0x0];if(I===y)return undefined;return I;});}throw new Error(Tl(0x1dc));}),this['askForAddon']=v=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const TI=b,W=l=>__awaiter(this,void 0x0,void 0x0,function*(){const Te=a8v,N=yield this[Te(0x1a6)][Te(0x280)][Te(0x282)][Te(0x20c)]({'parameters':{'projectId':l}});return N[Te(0x26f)][Te(0x282)]['map'](y=>y['id']);});return this[TI(0x1fb)](TI(0x259),W,v);}),this[b(0x240)]=(v,W)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Tk=b,l=N=>y=>__awaiter(this,void 0x0,void 0x0,function*(){const TU=a8v;var D;const w=yield this[TU(0x1a6)]['get']['addon'][TU(0x2a1)]({'parameters':{'projectId':N,'addonId':W},'options':{'per_page':this[TU(0x27e)],'cursor':y}});return{'elements':w[TU(0x26f)][TU(0x2a1)][TU(0x255)](e=>e['id']+TU(0x20a)+(e[TU(0x208)]||TU(0x293))+')'),'nextCursor':(D=w[TU(0x27f)])===null||D===void 0x0?void 0x0:D['cursor']};});return this[Tk(0x2a8)](Tk(0x2a1),l,v,'addon:\x20\x27'+W+'\x27')[Tk(0x22f)](N=>N[Tk(0x216)]('\x20')[0x0]);}),this[b(0x1ac)]=(v,W,l)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const TB=b,N=y=>D=>__awaiter(this,void 0x0,void 0x0,function*(){const Tx=a8v;var w;const e=yield this[Tx(0x1a6)][Tx(0x1be)][Tx(0x259)]['backup'][Tx(0x1e3)]({'parameters':{'projectId':y,'addonId':W,'backupId':l},'options':{'per_page':this[Tx(0x27e)],'cursor':D}});return{'elements':e['data'][Tx(0x1e3)][Tx(0x255)](I=>I['id']+Tx(0x20a)+(I[Tx(0x208)]||Tx(0x293))+')'),'nextCursor':(w=e[Tx(0x27f)])===null||w===void 0x0?void 0x0:w[Tx(0x1ea)]};});return this[TB(0x2a8)]('restore',N,v,TB(0x1b6)+W+'\x27')['then'](y=>y['split']('\x20')[0x0]);}),this[b(0x250)]=v=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Ts=b,W=l=>__awaiter(this,void 0x0,void 0x0,function*(){const To=a8v;return(yield this['apiClient'][To(0x280)][To(0x221)]({'parameters':{'projectId':l}}))[To(0x26f)][To(0x255)](N=>N['id']);});return this[Ts(0x1fb)](Ts(0x22d),W,v);}),this[b(0x1e2)]=v=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Ta=b,W=l=>__awaiter(this,void 0x0,void 0x0,function*(){const TY=a8v,N=yield this[TY(0x1a6)]['list'][TY(0x1fe)][TY(0x20c)]({'parameters':{'projectId':l}});return N[TY(0x26f)][TY(0x1fe)][TY(0x255)](y=>y['id']);});return this[Ta(0x1fb)](Ta(0x23f),W,v);}),this[b(0x1ce)]=v=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const TG=b,W=yield this['apiClient']['get'][TG(0x1bb)]({'parameters':{'domain':v}}),l=W['data'][TG(0x1f6)][TG(0x255)](y=>y[TG(0x2ba)]+TG(0x1a9)+y[TG(0x1ef)]+')'),N=TG(0x287)+v+')';return this['askForResource']('subdomain',l,N)[TG(0x22f)](y=>y[TG(0x216)]('\x20')[0x0]);}),this[b(0x2b9)]=(v,W)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const TH=b,l=yield this[TH(0x1a6)][TH(0x280)][TH(0x1f3)]['path']({'parameters':{'domain':v,'subdomain':W}}),N=l[TH(0x26f)][TH(0x25f)]['map'](D=>''+D[TH(0x1e9)]),y=TH(0x287)+v+TH(0x1e8)+W+')';return this[TH(0x2ab)]('subdomainPath',N,y);}),this[b(0x20d)]=v=>__awaiter(this,void 0x0,void 0x0,function*(){const TA=b;return(yield inquirer['prompt']([{'type':TA(0x286),'name':TA(0x1da),'message':chalk_1['default'][TA(0x24a)](TA(0x281)+(v||TA(0x1d1))+TA(0x2b7)),'default':![]}]))[TA(0x1da)];}),this[b(0x296)]=(v,W)=>__awaiter(this,void 0x0,void 0x0,function*(){const Tm=b;_[Tm(0x1b9)](v[Tm(0x2ba)])&&(W[Tm(0x1c9)]<=0x0?_[Tm(0x1f4)](v,Tm(0x2ba),Tm(0x1c1)):yield(0x0,utils_1[Tm(0x272)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const Tg=Tm,{name:l}=yield inquirer[Tg(0x27a)]([{'type':'input','name':Tg(0x2ba),'message':Tg(0x288),'default':Tg(0x220)}]);if(!v[Tg(0x1c5)]&&W[Tg(0x2a9)](N=>N['name']===l)){const {c:N}=yield inquirer['prompt']([{'type':Tg(0x286),'name':'c','message':Tg(0x1f8)+l+Tg(0x2ae),'default':![]}]);if(N===![])throw new Error(Tg(0x1ec));_[Tg(0x1f4)](v,'override',!![]);}_['set'](v,Tg(0x2ba),l);})));if(_[Tm(0x1b9)](v['token'])){const l=yield this[Tm(0x1ff)]();_[Tm(0x1f4)](v,'token',l);}return v;}),this[b(0x1ff)]=()=>__awaiter(this,void 0x0,void 0x0,function*(){const TF=b,{token:v}=yield inquirer[TF(0x27a)]([{'type':TF(0x299),'name':TF(0x222),'mask':'*','message':TF(0x1d2)}]);return v;}),inquirer[b(0x232)](b(0x23b),inquirerSearchList),inquirer['registerPrompt'](b(0x285),inquirer_pagination_prompt_1[b(0x26c)]);}[a8a(0x279)](T,v){return __awaiter(this,void 0x0,void 0x0,function*(){const TK=a8v,W=yaml[TK(0x1cc)](T),l=_[TK(0x2b2)](W[TK(0x216)]('\x0a')['map'](D=>D[TK(0x1c9)])),N=chalk_1['default'][TK(0x24f)]('-'[TK(0x1fc)](l)+'\x0a'),{confirm:y}=yield inquirer[TK(0x27a)]([{'type':TK(0x280),'name':TK(0x286),'message':''+chalk_1[TK(0x1c1)][TK(0x21a)][TK(0x1db)](TK(0x254))+N+chalk_1[TK(0x1c1)][TK(0x218)](W)+N,'choices':Object[TK(0x1d3)](ConfirmChoices)}]);switch(y){case ConfirmChoices[TK(0x1b2)]:return T;case ConfirmChoices[TK(0x275)]:throw new Error(TK(0x26e));case ConfirmChoices[TK(0x270)]:return this['retrievePayloadViaInteractiveCli'](v);case ConfirmChoices['EDIT']:return this[TK(0x279)](yield this[TK(0x1af)](T),v);case ConfirmChoices['SAVE']:yield this[TK(0x243)](T);return this[TK(0x279)](T,v);default:throw new Error(TK(0x225));}});}['retrievePayloadViaInteractiveCli'](T,v){return __awaiter(this,void 0x0,void 0x0,function*(){const Tt=a8v;if((v===null||v===void 0x0?void 0x0:v[Tt(0x201)])!==undefined)this[Tt(0x201)]=v===null||v===void 0x0?void 0x0:v[Tt(0x201)];this[Tt(0x1d7)]=v===null||v===void 0x0?void 0x0:v['cmdPath'],this[Tt(0x2b3)]=v===null||v===void 0x0?void 0x0:v[Tt(0x2b3)];const W={};return yield this[Tt(0x2b1)]([],T[Tt(0x21c)][Tt(0x227)],W),this['resultCache']=W,yield this[Tt(0x279)](W,T);});}[a8a(0x2b1)](T,v,W,l){return __awaiter(this,void 0x0,void 0x0,function*(){const TC=a8v;let N;if(v[TC(0x1d4)]&&!_[TC(0x1b1)](v,'properties')){if(v[TC(0x1d4)]['length']>0x1){const {choice:y}=yield inquirer['prompt']([{'type':TC(0x280),'name':TC(0x290),'message':TC(0x297)+(T[T[TC(0x1c9)]-0x1]||'')+TC(0x1f1),'choices':v[TC(0x1d4)][TC(0x255)](D=>{const Tb=TC;var w;return(w=D[Tb(0x1c8)])!==null&&w!==void 0x0?w:'??';})}]);N=yield this['getType'](T,v[TC(0x1d4)][TC(0x2a9)](D=>D[TC(0x1c8)]===y),W,l);}else{const D=v[TC(0x1d4)][0x0];_[TC(0x1f4)](D,TC(0x1c8),v[TC(0x1c8)]),N=yield this[TC(0x1ca)](T,D,W,l);}N={};}else{if(v[TC(0x24c)]&&!_[TC(0x1b1)](v,TC(0x257))){if(v[TC(0x24c)][TC(0x1c9)]>0x1){const {choice:w}=yield inquirer[TC(0x27a)]([{'type':TC(0x280),'name':'choice','message':TC(0x297)+(T[T[TC(0x1c9)]-0x1]||'')+TC(0x1f1),'choices':[...v['anyOf']['map'](e=>{const TP=TC;var I;return(I=e[TP(0x1c8)])!==null&&I!==void 0x0?I:'??';}),'don\x27t\x20change']}]);w!=='don\x27t\x20change'&&(N=yield this[TC(0x1ca)](T,v[TC(0x24c)][TC(0x2a9)](e=>e[TC(0x1c8)]===w),W,l));}else{const e=v[TC(0x24c)][0x0];_[TC(0x1f4)](e,'description',v['description']),N=yield this['getType'](T,e,W,l);}N={};}else N=yield this['getType'](T,v,W,l);}return N;});}[a8a(0x25b)](T,v,W,l){var N;return __awaiter(this,void 0x0,void 0x0,function*(){const Tz=a8v;if(l===![]){const {addEntry:w}=yield inquirer[Tz(0x27a)]([{'type':Tz(0x286),'name':Tz(0x2ad),'message':this[Tz(0x1c6)](v,Tz(0x209),T===null||T===void 0x0?void 0x0:T[Tz(0x1c8)]),'default':![]}]);if(!w)return W;}const y=Object['keys']((N=T===null||T===void 0x0?void 0x0:T[Tz(0x257)])!==null&&N!==void 0x0?N:[]),D=T[Tz(0x20b)]||[];if(y[Tz(0x1c9)]>0x0)for(const e of y){const I=v['concat'](e);if(v[Tz(0x1c9)]>0x0&&!_[Tz(0x1b1)](W,v[Tz(0x1bd)]('.')))_['set'](W,v['join']('.'),{});yield this[Tz(0x2b1)](I,T[Tz(0x257)][e],W,D[Tz(0x25d)](e));}else yield this[Tz(0x1ca)](v,Object[Tz(0x24e)](Object['assign']({},T),{'type':Tz(0x1a8)}),W,l);return W;});}[a8a(0x26a)](T,v,W,l){return __awaiter(this,void 0x0,void 0x0,function*(){const Tc=a8v;if(v&&W)return!![];const N=v?Tc(0x209):Tc(0x1ed),{addEntry:y}=yield inquirer[Tc(0x27a)]([{'type':Tc(0x286),'name':Tc(0x2ad),'message':this['getPathString'](T,N,v?l:undefined),'default':![]}]);return y;});}[a8a(0x1ca)](T,v,W,l){return __awaiter(this,void 0x0,void 0x0,function*(){const TO=a8v;let N;const y=T['join']('.');switch(v===null||v===void 0x0?void 0x0:v[TO(0x206)]){case TO(0x25a):{let D=!![];while(yield this[TO(0x26a)](T,D,l,v===null||v===void 0x0?void 0x0:v[TO(0x1c8)])){const w=_[TO(0x1be)](W,y);_['unset'](W,y),yield this['getType'](T,v[TO(0x200)],W);const e=_['get'](W,y);!_[TO(0x23a)](w)?_['set'](W,y,[e]):(w['push'](e),_[TO(0x1f4)](W,y,w)),D=![];}return N||[];}case TO(0x239):{return N=yield this['getInnerType'](v,T,W,l),N;}case TO(0x1a8):N=(0x0,utils_1[TO(0x1f2)])(yield this[TO(0x261)](T,v,l))||undefined;break;case'string':case'boolean':case'integer':default:N=yield this['ask'](T,v,l,W);break;}return!_[TO(0x1b9)](N)&&_[TO(0x1f4)](W,y,N),N;});}[a8a(0x261)](T,v,W,l){var N;return __awaiter(this,void 0x0,void 0x0,function*(){const TJ=a8v,y=T[T[TJ(0x1c9)]-0x1],{defaultValue:defaultValue=(N=v===null||v===void 0x0?void 0x0:v[TJ(0x235)])!==null&&N!==void 0x0?N:v===null||v===void 0x0?void 0x0:v['default'],choices:choices=v===null||v===void 0x0?void 0x0:v[TJ(0x2b0)],pagination:D}=yield(0x0,api_helpers_1[TJ(0x212)])(y,this[TJ(0x1a6)],this[TJ(0x1d7)],l,this['pathVars'],T);let w=TJ(0x1b0);if(!_['isUndefined'](choices)&&choices['length']>0x0){if(D!==undefined&&D[TJ(0x284)]!==undefined)w=TJ(0x285);else choices['length']>0x4&&typeof choices[0x0]===TJ(0x1c4)?w=TJ(0x23b):w=TJ(0x280);}else{if((v===null||v===void 0x0?void 0x0:v[TJ(0x206)])===TJ(0x210))w='confirm';else{if((v===null||v===void 0x0?void 0x0:v['type'])===TJ(0x28b))w=TJ(0x1b0);else(v===null||v===void 0x0?void 0x0:v[TJ(0x206)])===TJ(0x1a8)&&(w=TJ(0x268));}}let e=W!==![]?!_[TJ(0x251)](defaultValue)?defaultValue:JSON[TJ(0x2b8)](defaultValue):_['isBoolean'](defaultValue)?defaultValue:TJ(0x23c);if(choices)e=e[TJ(0x1bf)]();_[TJ(0x1b1)](this['resultCache'],T[TJ(0x1bd)]('.'))&&(e=this[TJ(0x201)][T['join']('.')]);const I=choices&&W===![]?[TJ(0x23c),...choices]:choices,U=(v===null||v===void 0x0?void 0x0:v['type'])===TJ(0x28b),k=Object[TJ(0x24e)]({'type':w,'name':'id','message':this[TJ(0x2a6)](T,v),'choices':I,'default':e,'filter':this[TJ(0x1b5)](w,W),'validate':this[TJ(0x1e4)](v,W,U)},D),x=(yield inquirer[TJ(0x27a)]([k]))['id'];if(x==='don\x27t\x20change'||x==='')return undefined;if(U)return parseInt(x,0xa);return x;});}[a8a(0x2a6)](T,v){const TS=a8a,W=(v===null||v===void 0x0?void 0x0:v[TS(0x206)])!==TS(0x210)?TS(0x1fa):TS(0x22b);return this['getPathString'](T,W,v===null||v===void 0x0?void 0x0:v[TS(0x1c8)]);}['askForProject'](){return __awaiter(this,void 0x0,void 0x0,function*(){const Td=a8v,T=yield this[Td(0x1a6)][Td(0x280)][Td(0x241)]['all']({})[Td(0x22f)](v=>v['data'][Td(0x241)][Td(0x255)](W=>W['id']));return yield this[Td(0x2ab)](Td(0x252),T);});}[a8a(0x1fb)](T,v,W,l){return __awaiter(this,void 0x0,void 0x0,function*(){const Th=a8v,N=W||this[Th(0x1a6)][Th(0x1cf)]['getCurrentProjectName']();if(_[Th(0x1b9)](N))throw new Error(Th(0x29a));const y=yield v(N);return yield this[Th(0x2ab)](T,y,(l?l+Th(0x28a):'')+'project:\x20\x27'+N+'\x27');});}['askForProjectScopedResourcePaginated'](T,v,W,l){return __awaiter(this,void 0x0,void 0x0,function*(){const TE=a8v,N=W||this[TE(0x1a6)]['contextProvider'][TE(0x21f)]();if(_['isUndefined'](N))throw new Error(TE(0x29a));const y=yield v(N);return yield this['askForResourcePaginated'](T,y,(l?l+'\x20in\x20':'')+'project:\x20\x27'+N+'\x27');});}['askForDomain'](){return __awaiter(this,void 0x0,void 0x0,function*(){const Ti=a8v,T=yield this[Ti(0x1a6)][Ti(0x280)]['domains'][Ti(0x20c)]({}),v=T[Ti(0x26f)]['domains'][Ti(0x255)](W=>W[Ti(0x2ba)]);return this[Ti(0x2ab)](Ti(0x1bb),v);});}['askForCredentials'](){return __awaiter(this,void 0x0,void 0x0,function*(){const TM=a8v,T=yield this[TM(0x1a6)][TM(0x280)][TM(0x294)][TM(0x20c)]({}),v=T[TM(0x26f)]['credentials'][TM(0x255)](W=>W['id']);return this[TM(0x2ab)](TM(0x1e0),v);});}[a8a(0x1bc)](T){const Tp=a8a;this[Tp(0x22c)]=T;}}exports[a8a(0x2af)]=InquirerHelper;
@@ -1 +1 @@
1
- 'use strict';const a9X=a9e;function a9e(F,e){const G=a9F();return a9e=function(u,R){u=u-0x76;let b=G[u];return b;},a9e(F,e);}(function(F,e){const l=a9e,G=F();while(!![]){try{const u=parseInt(l(0x90))/0x1+-parseInt(l(0xad))/0x2+parseInt(l(0x9f))/0x3+-parseInt(l(0x83))/0x4+parseInt(l(0xb3))/0x5+parseInt(l(0xa1))/0x6*(parseInt(l(0x9c))/0x7)+-parseInt(l(0x87))/0x8*(parseInt(l(0x82))/0x9);if(u===e)break;else G['push'](G['shift']());}catch(R){G['push'](G['shift']());}}}(a9F,0xeed6e));function a9F(){const j=['configurable','end','wss:','__awaiter','736513sOJrOm','idle','EventEmitter','duplex','__setModuleDefault','status','handleError','finally','removeListener','Failure\x20during\x20login:\x20','prototype','Unexpected\x20response,\x20api\x20token\x20missing','9040969UCAljE','initPackage','Unable\x20to\x20open\x20browser:\x20','3673200KJMqRE','message','6NhoedP','catch','stringify','openBrowser','type','toString','open','browser-opened','__createBinding','then','init','__importStar','2365218jLdCbj','default','next','exit','SIGINT','startLogin','8639505caTdAH','success','Unexpected\x20response','get','writable','apply','NorthflankApiBrowserLogin','defineProperty','data','login-failure','Login\x20process\x20stopped\x20before\x20completed','parse','createWebSocketStream','emit','create','__esModule','value','unable\x20to\x20parse\x20message:\x20','getOwnPropertyDescriptor','write','3291201wOQtAD','1038652bfkPQy','baseUrl','done','init-ack','56tlbnsD','aborted','replace','call','error'];a9F=function(){return j;};return a9F();}var __createBinding=this&&this[a9X(0xa9)]||(Object[a9X(0x7c)]?function(F,e,G,u){const h=a9X;if(u===undefined)u=G;var R=Object[h(0x80)](e,G);(!R||(h(0xb6)in R?!e[h(0x7d)]:R[h(0xb7)]||R[h(0x8c)]))&&(R={'enumerable':!![],'get':function(){return e[G];}}),Object['defineProperty'](F,u,R);}:function(F,e,G,u){if(u===undefined)u=G;F[u]=e[G];}),__setModuleDefault=this&&this[a9X(0x94)]||(Object[a9X(0x7c)]?function(F,e){const d=a9X;Object['defineProperty'](F,d(0xae),{'enumerable':!![],'value':e});}:function(F,e){const B=a9X;F[B(0xae)]=e;}),__importStar=this&&this[a9X(0xac)]||function(F){const x=a9X;if(F&&F[x(0x7d)])return F;var e={};if(F!=null){for(var G in F)if(G!==x(0xae)&&Object[x(0x9a)]['hasOwnProperty'][x(0x8a)](F,G))__createBinding(e,F,G);}return __setModuleDefault(e,F),e;},__awaiter=this&&this[a9X(0x8f)]||function(F,e,G,u){function R(b){return b instanceof G?b:new G(function(W){W(b);});}return new(G||(G=Promise))(function(b,W){const K=a9e;function V(t){const r=a9e;try{m(u[r(0xaf)](t));}catch(T){W(T);}}function a(t){try{m(u['throw'](t));}catch(T){W(T);}}function m(t){const k=a9e;t[k(0x85)]?b(t['value']):R(t[k(0x7e)])[k(0xaa)](V,a);}m((u=u[K(0xb8)](F,e||[]))[K(0xaf)]());});},__importDefault=this&&this['__importDefault']||function(F){return F&&F['__esModule']?F:{'default':F};};Object[a9X(0xba)](exports,'__esModule',{'value':!![]}),exports[a9X(0xb9)]=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9X(0xa7))),events_1=require('events');class NorthflankApiBrowserLogin extends events_1[a9X(0x92)]{constructor(F,e=!![]){const p=a9X;super(),this[p(0x84)]=F,this[p(0xa4)]=e,this[p(0x95)]=p(0x91),this[p(0x9d)]=()=>JSON[p(0xa3)]({'type':p(0xab)});}[a9X(0xb2)](){const O=a9X;var F;const e=this[O(0x84)][O(0x89)]('https:',O(0x8e))[O(0x89)]('http:','ws:'),G=e+'/v1/cli-login',u=new ws_1[(O(0xae))](G),R=()=>__awaiter(this,void 0x0,void 0x0,function*(){const z=O;yield new Promise(W=>{const D=a9e;var V;(V=this['duplex'])===null||V===void 0x0?void 0x0:V[D(0x8d)](JSON[D(0xa3)]({'type':D(0x88)}),()=>W());}),process[z(0xb0)]();}),b=new Promise((W,V)=>{const C=O;var a,m,t;try{this[C(0x93)]=(0x0,ws_1[C(0x7a)])(u),process['on'](C(0xb1),R);}catch(T){V(new Error('Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20'+T[C(0xa0)]));}(a=this['duplex'])===null||a===void 0x0?void 0x0:a['on'](C(0x76),Z=>{const N=C;var n;const v=JSON[N(0x79)](Z[N(0xa6)]());switch(v===null||v===void 0x0?void 0x0:v[N(0xa5)]){case N(0x86):{const {loginPage:A}=v;if(A===undefined){this[N(0x96)](N(0xb5),V);return;}this[N(0xa4)]&&(0x0,open_1[N(0xae)])(A)[N(0xa2)](w=>{const I=N,o=I(0x9e)+w[I(0xa0)];this[I(0x96)](o,V);});this[N(0x7b)](N(0xa8),{'url':A});break;}case'login-success':{const {apiToken:w,contextName:o}=v;if(w===undefined){this[N(0x96)](N(0x9b),V);return;}(n=this[N(0x93)])===null||n===void 0x0?void 0x0:n[N(0x8d)](),W({'token':w,'contextName':o}),this[N(0x95)]=N(0xb4);break;}case N(0x77):{const i=N(0x99)+(v===null||v===void 0x0?void 0x0:v['message']);this[N(0x96)](i,V);break;}default:{const c=N(0x7f)+JSON[N(0xa3)](v);this[N(0x96)](c,V);}}}),(m=this[C(0x93)])===null||m===void 0x0?void 0x0:m['on'](C(0x8b),Z=>{const Y=C;this['handleError']('error\x20happened\x20during\x20browser\x20login:\x20'+Z[Y(0xa0)],V);}),(t=this[C(0x93)])===null||t===void 0x0?void 0x0:t['on'](C(0x8d),()=>{const g=C;if(this[g(0x95)]===g(0xb4)){}else this[g(0x96)](g(0x78),V);});});return(F=this[O(0x93)])===null||F===void 0x0?void 0x0:F[O(0x81)](this[O(0x9d)]()),this[O(0x95)]=O(0xab),b[O(0x97)](()=>{const Q=O;process[Q(0x98)](Q(0xb1),R);});}[a9X(0x96)](F,e){const S=a9X;var G,u;e?(G=this[S(0x93)])===null||G===void 0x0?void 0x0:G[S(0x8d)](()=>e(new Error(F))):(u=this[S(0x93)])===null||u===void 0x0?void 0x0:u[S(0x8d)](),this[S(0x95)]=S(0x8b);}}exports['NorthflankApiBrowserLogin']=NorthflankApiBrowserLogin;
1
+ 'use strict';const a9g=a9v;(function(T,v){const m=a9v,W=T();while(!![]){try{const l=parseInt(m(0xab))/0x1+parseInt(m(0xa9))/0x2+-parseInt(m(0xaa))/0x3+-parseInt(m(0x87))/0x4+-parseInt(m(0x7d))/0x5+-parseInt(m(0x91))/0x6*(parseInt(m(0x95))/0x7)+parseInt(m(0xb3))/0x8;if(l===v)break;else W['push'](W['shift']());}catch(N){W['push'](W['shift']());}}}(a9T,0xd5279));var __createBinding=this&&this[a9g(0xa5)]||(Object['create']?function(T,v,W,l){const F=a9g;if(l===undefined)l=W;var N=Object['getOwnPropertyDescriptor'](v,W);(!N||(F(0xb9)in N?!v['__esModule']:N[F(0xb1)]||N['configurable']))&&(N={'enumerable':!![],'get':function(){return v[W];}}),Object[F(0x8a)](T,l,N);}:function(T,v,W,l){if(l===undefined)l=W;T[l]=v[W];}),__setModuleDefault=this&&this[a9g(0x94)]||(Object[a9g(0x96)]?function(T,W){const K=a9g;Object[K(0x8a)](T,'default',{'enumerable':!![],'value':W});}:function(T,W){const t=a9g;T[t(0xa0)]=W;}),__importStar=this&&this[a9g(0x8c)]||function(T){const C=a9g;if(T&&T[C(0xb2)])return T;var v={};if(T!=null){for(var W in T)if(W!==C(0xa0)&&Object[C(0x90)][C(0x82)][C(0xb4)](T,W))__createBinding(v,T,W);}return __setModuleDefault(v,T),v;},__awaiter=this&&this[a9g(0x7f)]||function(T,v,W,l){function N(y){return y instanceof W?y:new W(function(D){D(y);});}return new(W||(W=Promise))(function(y,D){const c=a9v;function w(U){const b=a9v;try{I(l[b(0xb0)](U));}catch(k){D(k);}}function e(U){const P=a9v;try{I(l[P(0x86)](U));}catch(k){D(k);}}function I(U){const z=a9v;U[z(0xbb)]?y(U['value']):N(U[z(0x7b)])['then'](w,e);}I((l=l[c(0x9f)](T,v||[]))[c(0xb0)]());});},__importDefault=this&&this[a9g(0x88)]||function(T){const O=a9g;return T&&T[O(0xb2)]?T:{'default':T};};function a9v(T,v){const W=a9T();return a9v=function(l,N){l=l-0x76;let y=W[l];return y;},a9v(T,v);}Object[a9g(0x8a)](exports,a9g(0xb2),{'value':!![]}),exports[a9g(0xa6)]=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9g(0x7e))),events_1=require(a9g(0x93));function a9T(){const f=['startLogin','type','write','handleError','browser-opened','http:','status','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','apply','default','Unexpected\x20response,\x20api\x20token\x20missing','data','parse','login-success','__createBinding','NorthflankApiBrowserLogin','success','login-failure','1884146IKthiM','4593375JByCUp','966174zWJKNk','baseUrl','ws:','Unexpected\x20response','Failure\x20during\x20login:\x20','next','writable','__esModule','22000368IcwLNT','call','initPackage','duplex','emit','stringify','get','openBrowser','done','catch','message','EventEmitter','error\x20happened\x20during\x20browser\x20login:\x20','removeListener','value','toString','1271190oKQZwP','open','__awaiter','exit','wss:','hasOwnProperty','error','createWebSocketStream','init-ack','throw','2240232rGPiIX','__importDefault','replace','defineProperty','finally','__importStar','init','idle','end','prototype','6aPGDrO','https:','events','__setModuleDefault','10078537abWkaA','create'];a9T=function(){return f;};return a9T();}class NorthflankApiBrowserLogin extends events_1[a9g(0x78)]{constructor(T,v=!![]){const J=a9g;super(),this[J(0xac)]=T,this[J(0xba)]=v,this[J(0x9d)]=J(0x8e),this['initPackage']=()=>JSON[J(0xb8)]({'type':J(0x8d)});}[a9g(0x97)](){const S=a9g;var T;const v=this[S(0xac)]['replace'](S(0x92),S(0x81))[S(0x89)](S(0x9c),S(0xad)),W=v+'/v1/cli-login',l=new ws_1[(S(0xa0))](W),N=()=>__awaiter(this,void 0x0,void 0x0,function*(){const h=S;yield new Promise(D=>{const d=a9v;var w;(w=this[d(0xb6)])===null||w===void 0x0?void 0x0:w[d(0x8f)](JSON[d(0xb8)]({'type':'aborted'}),()=>D());}),process[h(0x80)]();}),y=new Promise((D,w)=>{const E=S;var I,U,k;try{this[E(0xb6)]=(0x0,ws_1[E(0x84)])(l),process['on']('SIGINT',N);}catch(x){w(new Error(E(0x9e)+x[E(0x77)]));}(I=this[E(0xb6)])===null||I===void 0x0?void 0x0:I['on'](E(0xa2),B=>{const i=E;var o;const s=JSON[i(0xa3)](B[i(0x7c)]());switch(s===null||s===void 0x0?void 0x0:s[i(0x98)]){case i(0x85):{const {loginPage:Y}=s;if(Y===undefined){this[i(0x9a)](i(0xae),w);return;}this['openBrowser']&&(0x0,open_1[i(0xa0)])(Y)[i(0x76)](a=>{const M=i,G='Unable\x20to\x20open\x20browser:\x20'+a['message'];this[M(0x9a)](G,w);});this[i(0xb7)](i(0x9b),{'url':Y});break;}case i(0xa4):{const {apiToken:a,contextName:G}=s;if(a===undefined){this[i(0x9a)](i(0xa1),w);return;}(o=this['duplex'])===null||o===void 0x0?void 0x0:o[i(0x8f)](),D({'token':a,'contextName':G}),this[i(0x9d)]=i(0xa7);break;}case i(0xa8):{const H=i(0xaf)+(s===null||s===void 0x0?void 0x0:s[i(0x77)]);this['handleError'](H,w);break;}default:{const A='unable\x20to\x20parse\x20message:\x20'+JSON[i(0xb8)](s);this['handleError'](A,w);}}}),(U=this[E(0xb6)])===null||U===void 0x0?void 0x0:U['on'](E(0x83),B=>{const p=E;this['handleError'](p(0x79)+B['message'],w);}),(k=this[E(0xb6)])===null||k===void 0x0?void 0x0:k['on'](E(0x8f),()=>{const Z=E;if(this[Z(0x9d)]===Z(0xa7)){}else this[Z(0x9a)]('Login\x20process\x20stopped\x20before\x20completed',w);});});return(T=this['duplex'])===null||T===void 0x0?void 0x0:T[S(0x99)](this[S(0xb5)]()),this['status']=S(0x8d),y[S(0x8b)](()=>{const r=S;process[r(0x7a)]('SIGINT',N);});}[a9g(0x9a)](T,v){const R=a9g;var W,l;v?(W=this[R(0xb6)])===null||W===void 0x0?void 0x0:W['end'](()=>v(new Error(T))):(l=this['duplex'])===null||l===void 0x0?void 0x0:l[R(0x8f)](),this[R(0x9d)]=R(0x83);}}exports[a9g(0xa6)]=NorthflankApiBrowserLogin;
@@ -1 +1 @@
1
- 'use strict';const a10L=a10e;(function(F,e){const M=a10e,G=F();while(!![]){try{const u=-parseInt(M(0x26b))/0x1*(parseInt(M(0x256))/0x2)+-parseInt(M(0x279))/0x3*(parseInt(M(0x25a))/0x4)+parseInt(M(0x204))/0x5*(-parseInt(M(0x220))/0x6)+parseInt(M(0x216))/0x7+-parseInt(M(0x23d))/0x8*(-parseInt(M(0x1fe))/0x9)+parseInt(M(0x20a))/0xa+parseInt(M(0x285))/0xb;if(u===e)break;else G['push'](G['shift']());}catch(R){G['push'](G['shift']());}}}(a10F,0x5e4ad));function a10e(F,e){const G=a10F();return a10e=function(u,R){u=u-0x1f4;let b=G[u];return b;},a10e(F,e);}var __awaiter=this&&this[a10L(0x250)]||function(F,e,G,u){function R(b){return b instanceof G?b:new G(function(W){W(b);});}return new(G||(G=Promise))(function(b,W){const F1=a10e;function V(t){const P=a10e;try{m(u[P(0x223)](t));}catch(T){W(T);}}function a(t){const U=a10e;try{m(u[U(0x275)](t));}catch(T){W(T);}}function m(t){const F0=a10e;t[F0(0x235)]?b(t[F0(0x210)]):R(t['value'])[F0(0x269)](V,a);}m((u=u['apply'](F,e||[]))[F1(0x223)]());});},__importDefault=this&&this['__importDefault']||function(F){return F&&F['__esModule']?F:{'default':F};};Object[a10L(0x268)](exports,'__esModule',{'value':!![]}),exports[a10L(0x200)]=void 0x0;const js_client_1=require('@northflank/js-client'),chalk_1=__importDefault(require(a10L(0x221))),utils_1=require(a10L(0x251)),inquirer_helper_1=require(a10L(0x262)),commander_1=require(a10L(0x1f7)),console_format_helpers_1=require('../formatting/console-format-helpers'),log_formatter_1=require(a10L(0x234));class CliLogs{constructor(F){const F2=a10L;this[F2(0x226)]=F,this['defaultDurationSeconds']=0x708,this[F2(0x266)]=(e,G,u,R)=>{const F3=F2,b=(0x0,utils_1['getCommand'])(!![])['name']((G?F3(0x240):'')+F3(0x265))[F3(0x267)]((G?F3(0x240):'')+F3(0x218))[F3(0x1f9)]('Get\x20log\x20for\x20the\x20specified\x20'+e)['option']('--project\x20--projectId\x20[projectId]','Project\x20for\x20logs')[F3(0x27d)]('--'+e+F3(0x259)+e+F3(0x1fd)+e+'Id]',e[F3(0x252)](0x0)[F3(0x25b)]()+e[F3(0x231)](0x1)+F3(0x280))[F3(0x27d)](F3(0x217),F3(0x282));if(G)b[F3(0x27d)]('--build\x20--buildId\x20[buildId]',F3(0x222));if(e===F3(0x27f))b['option']('--run\x20--runId\x20[runId]',F3(0x263));if(e===F3(0x202))b[F3(0x27d)](F3(0x229),F3(0x21a));if(u)b['option']('--backup\x20--backupId\x20[backupId]',F3(0x274));if(R)b[F3(0x27d)](F3(0x230),F3(0x26a));return!G&&!u&&!R&&b['addOption'](new commander_1[(F3(0x23b))]('-t,\x20--types\x20<types...>',F3(0x254))[F3(0x20b)](Object['values'](js_client_1[F3(0x209)]))),b[F3(0x27d)](F3(0x258),F3(0x287))['option'](F3(0x21c),'Number\x20of\x20lines\x20to\x20return.')['option']('--startTime\x20<timestamp>','Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1[F3(0x20d)],utils_1[F3(0x215)])['addOption'](new commander_1[(F3(0x23b))]('--endTime\x20<timestamp>',F3(0x1fa)+utils_1[F3(0x20d)])['argParser'](utils_1['parseDateInput'])[F3(0x22c)](['tail']))[F3(0x27d)](F3(0x208),F3(0x203))[F3(0x22b)](new commander_1['Option'](F3(0x225),'Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.')[F3(0x20b)]([F3(0x243),F3(0x245)])[F3(0x22c)](['tail']))[F3(0x22b)](new commander_1['Option'](F3(0x24f),F3(0x278))[F3(0x22c)]([F3(0x23e),'regexIncludes',F3(0x219)]))[F3(0x22b)](new commander_1[(F3(0x23b))](F3(0x241),F3(0x205))['conflicts']([F3(0x24c),F3(0x260),'regexNotIncludes']))[F3(0x22b)](new commander_1['Option'](F3(0x1f8),F3(0x1fb))['conflicts'](['textNotIncludes',F3(0x24c),F3(0x219)]))['addOption'](new commander_1[(F3(0x23b))](F3(0x206),'Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression')[F3(0x22c)]([F3(0x23e),'regexIncludes',F3(0x24c)]))['option'](F3(0x27b),F3(0x20c),![])['addOption'](new commander_1[(F3(0x23b))]('-o,\x20--output\x20[output]',F3(0x1f4))['choices'](Object['values']([F3(0x253),F3(0x24e),F3(0x224)]))),b;},this[F2(0x237)]=(e,G,u,R)=>{const F4=F2,{containerName:b,restoreId:W,backupId:V,quiet:a,tail:m,startTime:t,endTime:T,duration:Z}=R;if(a===!![])return;const n=m?F4(0x24b)+chalk_1[F4(0x283)][F4(0x227)](F4(0x247))+')':'',v=m?F4(0x21d):'',A=new Date(),w=t!==null&&t!==void 0x0?t:new Date(new Date((T!==null&&T!==void 0x0?T:A)[F4(0x27c)]())[F4(0x26d)]((T!==null&&T!==void 0x0?T:A)[F4(0x27a)]()-(Z!==null&&Z!==void 0x0?Z:this[F4(0x232)]))),o=(T!==null&&T!==void 0x0?T:t!==undefined)?new Date(new Date(t['valueOf']())[F4(0x26d)](t[F4(0x27a)]()+(Z!==null&&Z!==void 0x0?Z:this[F4(0x232)]))):A,i=V!==undefined,c=w&&!i?F4(0x272)+chalk_1['default'][F4(0x227)](w[F4(0x242)]()):'',l=o&&!i?F4(0x23f)+chalk_1[F4(0x283)][F4(0x227)](o[F4(0x242)]()):'',X=Z?F4(0x207)+Z+F4(0x25f):'',h=b?F4(0x233)+chalk_1[F4(0x283)][F4(0x227)](b):i?'':'\x20for\x20all\x20containers',d=V?F4(0x23c)+V:'',B=W?F4(0x22f)+W:'',x=e+'\x20'+chalk_1[F4(0x283)][F4(0x227)](G)+d+B+F4(0x277)+chalk_1[F4(0x283)]['bold'](u),r=''+c+l+X;console[F4(0x218)]('>\x20Container\x20logs'+v+h+'\x20of\x20'+x+r+n+':');},this[F2(0x249)]=(e,G)=>(u,R)=>{const F5=F2;if(!e){if(u[F5(0x271)]===0x0)console[F5(0x218)](F5(0x201));u[F5(0x22e)](b=>(0x0,log_formatter_1[F5(0x22a)])(b,G));}else(0x0,console_format_helpers_1['printResponse'])(e,u);(R===null||R===void 0x0?void 0x0:R[F5(0x20f)])&&(0x0,utils_1['warning'])(F5(0x20e)+R[F5(0x270)]);},this[F2(0x211)]=new js_client_1[(F2(0x25c))](F,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[F2(0x1f5)]}),this['logsApiClient']=this['apiClient'],this[F2(0x228)]=new inquirer_helper_1[(F2(0x239))](this[F2(0x211)]);}[a10L(0x24a)](F,e=![],G=![],u=![]){const Fu=a10L,R=(T,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const F6=a10e,n=Z['noDefaults'],{apiContext:v,inquirerHelper:A}=this;switch(F){case F6(0x202):{const w=n?undefined:v[F6(0x22d)]();return Z[F6(0x255)]||w||(yield A[F6(0x26f)](T)());}case F6(0x27f):{const o=n?undefined:v['getCurrentJobName']();return Z['jobId']||o||(yield A[F6(0x246)](T)());}case'addon':{return Z[F6(0x26e)]||(yield A[F6(0x23a)](T)());}}}),b=(T,Z,n)=>__awaiter(this,void 0x0,void 0x0,function*(){const F7=a10e;if(e)return n[F7(0x26c)]||(yield this[F7(0x228)]['askForBuild'](T,F===F7(0x202)?Z:undefined,F===F7(0x27f)?Z:undefined,!![])());return undefined;}),W=(T,Z,n)=>__awaiter(this,void 0x0,void 0x0,function*(){const F8=a10e;if(G||u)return n['backupId']||(yield this[F8(0x228)][F8(0x257)](T,Z)());return undefined;}),V=(T,Z,n,v)=>__awaiter(this,void 0x0,void 0x0,function*(){const F9=a10e;if(u)return v[F9(0x27e)]||(yield this[F9(0x228)][F9(0x281)](T,Z,n)());return undefined;}),a=(T,Z,n)=>__awaiter(this,void 0x0,void 0x0,function*(){const FF=a10e;if(!e&&n[FF(0x24d)]!==undefined){if(n['containerId']!==!![])return n[FF(0x24d)];return yield this[FF(0x228)]['askForContainer'](T,F==='service'?Z:undefined,F===FF(0x27f)?Z:undefined,!![])();}return undefined;}),m=(T,Z,n)=>__awaiter(this,void 0x0,void 0x0,function*(){const Fe=a10e;if(F===Fe(0x27f))return n[Fe(0x1fc)]||(yield this[Fe(0x228)][Fe(0x21b)](Z,T,!![])());return undefined;}),t=(T,Z,n)=>__awaiter(this,void 0x0,void 0x0,function*(){const FG=a10e;if(F===FG(0x202)){if(n[FG(0x21e)]!==!![])return n[FG(0x21e)];return n[FG(0x21e)];}return undefined;});return this[Fu(0x266)](F,e,G,u)['action'](T=>__awaiter(this,void 0x0,void 0x0,function*(){const FR=Fu,{noDefaults:Z,projectId:n,quiet:v,tail:A,types:w,textIncludes:o,textNotIncludes:i,regexIncludes:c,regexNotIncludes:l,direction:X,lineLimit:h,startTime:d,endTime:B,duration:x,output:r}=T;(0x0,utils_1[FR(0x25e)])(this['apiClient']);const {apiContext:k,inquirerHelper:K,logsApiClient:p}=this,O=Z?undefined:k[FR(0x273)](),D=n||O||(yield K[FR(0x264)]()),z=yield R(D,T),C=yield b(D,z,T),N=yield W(D,z,T),I=yield V(D,z,N,T),Y=yield m(D,z,T),g=yield t(D,z,T),Q=yield a(D,z,T);if(d&&B&&x)throw new Error(FR(0x236));const S={'projectId':D,'entityId':z},j={'containerName':Q,'types':w,'textIncludes':o,'textNotIncludes':i,'regexIncludes':c,'regexNotIncludes':l,'lineLimit':h,'startTime':d,'duration':x,'runId':Y,'buildId':C,'backupId':N,'restoreId':I,'deploymentId':g,'isBuild':e!==null&&e!==void 0x0?e:![]},q=u?FR(0x212):G?'addonBackup':F,f=Object[FR(0x213)](Object[FR(0x213)]({},j),{'endTime':B,'direction':X});if(!v&&r!==FR(0x224)&&r!==FR(0x21f)&&r!==FR(0x24e))this[FR(0x237)](F,z,D,Object['assign'](Object[FR(0x213)]({},f),T));const H=this[FR(0x249)](r,o!==null&&o!==void 0x0?o:c);if(A){const s=yield p[FR(0x265)][FR(0x1ff)](S,j,q);s['on']('logs-received',H),s['on'](FR(0x286),y=>(0x0,utils_1['error'])('Error\x20while\x20tailing\x20log\x20lines:\x20'+y[FR(0x261)])),s['on'](FR(0x238),()=>console['log']('Log\x20session\x20ended')),yield s[FR(0x244)]();}else{const y=yield p[FR(0x265)][FR(0x276)](S,f,q);if(y[FR(0x286)]){const E=y[FR(0x286)][FR(0x284)],J=E?FR(0x25d)+JSON['stringify'](E,null,'\x20'):'';(0x0,utils_1[FR(0x286)])(FR(0x248)+y[FR(0x286)]['message']+J);}else H(y[FR(0x1f6)],y[FR(0x214)]);}}));}}function a10F(){const Fb=['CliLogs','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','service','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','370tzUuDK','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','--regexNotIncludes\x20<regex>',',\x20duration:\x20','--duration\x20[duration]','LogType','3125440yYsKdX','choices','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','tsHint','Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20','hasNextPage','value','apiClient','addonRestore','assign','pagination','parseDateInput','3726597ACCteM','--container\x20--containerId\x20[containerId]','log','regexNotIncludes','Deployment\x20id,\x20example:\x20my-service-54785f4','askForJobRun','-l,\x20--lineLimit\x20[limit]','\x20with\x20live-tailing','deploymentId','yml','32628hohFmF','chalk','Build\x20to\x20get\x20logs\x20from','next','yaml','-d,\x20--direction\x20<order>','apiContext','bold','inquirerHelper','--deployment\x20--deploymentId\x20[deploymentId]','formatLogLine','addOption','conflicts','getCurrentServiceName','forEach',',\x20restore\x20id\x20','--restore\x20--restoreId\x20[restoreId]','slice','defaultDurationSeconds','\x20for\x20container\x20','./log-formatter','done','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','printInitInfo','close','InquirerHelper','askForAddon','Option',',\x20backup\x20id\x20','136IKsWFq','textNotIncludes',',\x20to:\x20','build-','--textNotIncludes\x20<text>','toISOString','backward','start','forward','askForJob','\x27Ctrl+C\x27','Error\x20while\x20fetching\x20log\x20lines:\x20','getFormatter','getLogsCommand','\x20(exit\x20with\x20','textIncludes','containerId','json','--textIncludes\x20<text>','__awaiter','../utils','charAt','format','Which\x20log\x20types\x20to\x20fetch','serviceId','8QULalr','askForAddonBackup','-f,\x20--tail','\x20--','16isyjvO','toUpperCase','ApiClient','\x0aDetails:\x20','assertContextExisting','\x20seconds','regexIncludes','message','../inquirer-helper','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','askForProject','logs','getStandardLogCommand','alias','defineProperty','then','Restore\x20to\x20get\x20logs\x20from','145897YzaLob','buildId','setSeconds','addonId','askForService','cursor','length',',\x20from:\x20','getCurrentProjectName','Backup\x20to\x20get\x20logs\x20from','throw','logRange','\x20in\x20project\x20','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','437469IguvuV','getSeconds','--noDefaults','valueOf','option','restoreId','job','\x20to\x20get\x20logs\x20from','askForAddonRestore','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','default','details','8832439IxHFux','error','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','customUserAgent','data','commander','--regexIncludes\x20<regex>','description','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','runId','Id\x20[','162873fVaEAl','logTail'];a10F=function(){return Fb;};return a10F();}exports['CliLogs']=CliLogs;
1
+ 'use strict';const a10u=a10v;(function(T,v){const j=a10v,W=T();while(!![]){try{const l=parseInt(j(0x1c9))/0x1+-parseInt(j(0x1f8))/0x2+parseInt(j(0x198))/0x3*(parseInt(j(0x1e3))/0x4)+parseInt(j(0x192))/0x5+parseInt(j(0x1b8))/0x6*(parseInt(j(0x18b))/0x7)+parseInt(j(0x17d))/0x8+-parseInt(j(0x1fa))/0x9;if(l===v)break;else W['push'](W['shift']());}catch(N){W['push'](W['shift']());}}}(a10T,0x75d6f));var __awaiter=this&&this[a10u(0x1cd)]||function(T,v,W,l){function N(y){return y instanceof W?y:new W(function(D){D(y);});}return new(W||(W=Promise))(function(y,D){const T0=a10v;function w(U){const q=a10v;try{I(l[q(0x203)](U));}catch(k){D(k);}}function e(U){try{I(l['throw'](U));}catch(k){D(k);}}function I(U){const L=a10v;U[L(0x207)]?y(U[L(0x193)]):N(U[L(0x193)])['then'](w,e);}I((l=l[T0(0x1e6)](T,v||[]))[T0(0x203)]());});},__importDefault=this&&this[a10u(0x190)]||function(T){const T1=a10u;return T&&T[T1(0x1c7)]?T:{'default':T};};function a10T(){const Ty=['jobId','--backup\x20--backupId\x20[backupId]','941577lLrMeD','runId','--noDefaults','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','parseDateInput','__importDefault','tail','302125FAbXxK','value','CliLogs','Restore\x20to\x20get\x20logs\x20from','regexNotIncludes','serviceId','294HEvsrJ','--restore\x20--restoreId\x20[restoreId]','getLogsCommand','askForBuild','defineProperty','bold','--textNotIncludes\x20<text>','charAt','\x20with\x20live-tailing','addonRestore','addOption','Log\x20session\x20ended','values','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','inquirerHelper','\x0aDetails:\x20','job','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','choices','--build\x20--buildId\x20[buildId]','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','../inquirer-helper','LogType','getCurrentJobName','addonBackup','log','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','pagination','error','slice','Number\x20of\x20lines\x20to\x20return.','InquirerHelper','24ZaVuBG','argParser','Id\x20[','forward','-o,\x20--output\x20[output]','toUpperCase','Id]','close','\x27Ctrl+C\x27','option','--textIncludes\x20<text>','\x20for\x20all\x20containers','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','@northflank/js-client','>\x20Container\x20logs','__esModule','noDefaults','758101hoxLup','askForAddonBackup','backupId','conflicts','__awaiter','assertContextExisting','\x20in\x20project\x20','textNotIncludes',',\x20backup\x20id\x20','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','Option','chalk','printResponse','--startTime\x20<timestamp>','askForAddon',',\x20to:\x20','Get\x20logs\x20generated\x20after\x20this\x20time,\x20','\x20(exit\x20with\x20','Get\x20log\x20for\x20the\x20specified\x20','\x20seconds','length','askForService','commander','formatLogLine','../formatting/console-format-helpers','containerId','30868ymefiO','getSeconds','logTail','apply','start','warning','buildId','ApiClient',',\x20restore\x20id\x20','\x20for\x20container\x20','message','format','deploymentId','askForJob',',\x20from:\x20','details','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','-d,\x20--direction\x20<order>','logsApiClient','getCommand','yaml','476504bNKpGF','getCurrentProjectName','16028064cyeGlD','service','textIncludes','askForContainer','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','--duration\x20[duration]','json','--regexNotIncludes\x20<regex>','next','setSeconds','printInitInfo','askForJobRun','done','logs','-f,\x20--tail','--deployment\x20--deploymentId\x20[deploymentId]','getFormatter','-t,\x20--types\x20<types...>','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','defaultDurationSeconds','apiClient','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','assign','restoreId','Filter\x20log\x20lines\x20to\x20include\x20this\x20text',',\x20duration:\x20','yml','regexIncludes','--container\x20--containerId\x20[containerId]','name','stringify','getStandardLogCommand','Which\x20log\x20types\x20to\x20fetch','valueOf','Project\x20for\x20logs','3111864CBDSxe','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','tsHint','customUserAgent','default','description','Error\x20while\x20tailing\x20log\x20lines:\x20','toISOString','Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20','\x20--','askForAddonRestore','alias'];a10T=function(){return Ty;};return a10T();}function a10v(T,v){const W=a10T();return a10v=function(l,N){l=l-0x16a;let y=W[l];return y;},a10v(T,v);}Object[a10u(0x19c)](exports,a10u(0x1c7),{'value':!![]}),exports[a10u(0x194)]=void 0x0;const js_client_1=require(a10u(0x1c5)),chalk_1=__importDefault(require(a10u(0x1d4))),utils_1=require('../utils'),inquirer_helper_1=require(a10u(0x1ad)),commander_1=require(a10u(0x1df)),console_format_helpers_1=require(a10u(0x1e1)),log_formatter_1=require('./log-formatter');class CliLogs{constructor(T){const T2=a10u;this['apiContext']=T,this[T2(0x16d)]=0x708,this[T2(0x179)]=(v,W,l,N)=>{const T3=T2,y=(0x0,utils_1[T3(0x1f6)])(!![])[T3(0x177)]((W?'build-':'')+T3(0x208))[T3(0x188)]((W?'build-':'')+T3(0x1b1))[T3(0x182)](T3(0x1db)+v)[T3(0x1c1)]('--project\x20--projectId\x20[projectId]',T3(0x17c))['option']('--'+v+T3(0x186)+v+T3(0x1ba)+v+T3(0x1be),v[T3(0x19f)](0x0)[T3(0x1bd)]()+v[T3(0x1b5)](0x1)+'\x20to\x20get\x20logs\x20from')['option'](T3(0x176),T3(0x1a5));if(W)y[T3(0x1c1)](T3(0x1ab),'Build\x20to\x20get\x20logs\x20from');if(v===T3(0x1a8))y[T3(0x1c1)]('--run\x20--runId\x20[runId]',T3(0x1d2));if(v===T3(0x1fb))y[T3(0x1c1)](T3(0x20a),'Deployment\x20id,\x20example:\x20my-service-54785f4');if(l)y['option'](T3(0x18a),'Backup\x20to\x20get\x20logs\x20from');if(N)y[T3(0x1c1)](T3(0x199),T3(0x195));return!W&&!l&&!N&&y[T3(0x1a2)](new commander_1['Option'](T3(0x16b),T3(0x17a))[T3(0x1aa)](Object[T3(0x1a4)](js_client_1[T3(0x1ae)]))),y['option'](T3(0x209),T3(0x1ff))[T3(0x1c1)]('-l,\x20--lineLimit\x20[limit]',T3(0x1b6))[T3(0x1c1)](T3(0x1d6),T3(0x1d9)+utils_1[T3(0x17f)],utils_1[T3(0x18f)])[T3(0x1a2)](new commander_1[(T3(0x1d3))]('--endTime\x20<timestamp>',T3(0x1c4)+utils_1[T3(0x17f)])[T3(0x1b9)](utils_1[T3(0x18f)])[T3(0x1cc)]([T3(0x191)]))[T3(0x1c1)](T3(0x200),T3(0x1fe))['addOption'](new commander_1[(T3(0x1d3))](T3(0x1f4),T3(0x16c))[T3(0x1aa)](['backward',T3(0x1bb)])[T3(0x1cc)](['tail']))[T3(0x1a2)](new commander_1['Option'](T3(0x1c2),T3(0x172))[T3(0x1cc)]([T3(0x1d0),T3(0x175),T3(0x196)]))[T3(0x1a2)](new commander_1[(T3(0x1d3))](T3(0x19e),T3(0x18e))[T3(0x1cc)]([T3(0x1fc),T3(0x175),T3(0x196)]))['addOption'](new commander_1['Option']('--regexIncludes\x20<regex>',T3(0x16f))[T3(0x1cc)]([T3(0x1d0),T3(0x1fc),T3(0x196)]))[T3(0x1a2)](new commander_1[(T3(0x1d3))](T3(0x202),T3(0x1f3))[T3(0x1cc)]([T3(0x1d0),'regexIncludes',T3(0x1fc)]))['option'](T3(0x18d),T3(0x1b2),![])[T3(0x1a2)](new commander_1[(T3(0x1d3))](T3(0x1bc),T3(0x1ac))[T3(0x1aa)](Object[T3(0x1a4)]([T3(0x1ee),T3(0x201),T3(0x1f7)]))),y;},this[T2(0x205)]=(v,W,l,N)=>{const T4=T2,{containerName:y,restoreId:D,backupId:w,quiet:e,tail:I,startTime:U,endTime:k,duration:x}=N;if(e===!![])return;const B=I?T4(0x1da)+chalk_1[T4(0x181)][T4(0x19d)](T4(0x1c0))+')':'',o=I?T4(0x1a0):'',s=new Date(),Y=U!==null&&U!==void 0x0?U:new Date(new Date((k!==null&&k!==void 0x0?k:s)[T4(0x17b)]())[T4(0x204)]((k!==null&&k!==void 0x0?k:s)['getSeconds']()-(x!==null&&x!==void 0x0?x:this[T4(0x16d)]))),a=(k!==null&&k!==void 0x0?k:U!==undefined)?new Date(new Date(U[T4(0x17b)]())['setSeconds'](U[T4(0x1e4)]()+(x!==null&&x!==void 0x0?x:this[T4(0x16d)]))):s,G=w!==undefined,H=Y&&!G?T4(0x1f1)+chalk_1['default'][T4(0x19d)](Y[T4(0x184)]()):'',A=a&&!G?T4(0x1d8)+chalk_1[T4(0x181)]['bold'](a[T4(0x184)]()):'',m=x?T4(0x173)+x+T4(0x1dc):'',g=y?T4(0x1ec)+chalk_1[T4(0x181)]['bold'](y):G?'':T4(0x1c3),F=w?T4(0x1d1)+w:'',K=D?T4(0x1eb)+D:'',t=v+'\x20'+chalk_1[T4(0x181)]['bold'](W)+F+K+T4(0x1cf)+chalk_1['default'][T4(0x19d)](l),C=''+H+A+m;console[T4(0x1b1)](T4(0x1c6)+o+g+'\x20of\x20'+t+C+B+':');},this['getFormatter']=(v,W)=>(l,N)=>{const T5=T2;if(!v){if(l[T5(0x1dd)]===0x0)console['log'](T5(0x17e));l['forEach'](y=>(0x0,log_formatter_1[T5(0x1e0)])(y,W));}else(0x0,console_format_helpers_1[T5(0x1d5)])(v,l);(N===null||N===void 0x0?void 0x0:N['hasNextPage'])&&(0x0,utils_1[T5(0x1e8)])(T5(0x185)+N['cursor']);},this[T2(0x16e)]=new js_client_1[(T2(0x1ea))](T,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[T2(0x180)]}),this[T2(0x1f5)]=this[T2(0x16e)],this[T2(0x1a6)]=new inquirer_helper_1[(T2(0x1b7))](this[T2(0x16e)]);}[a10u(0x19a)](T,v=![],W=![],l=![]){const Tl=a10u,N=(k,x)=>__awaiter(this,void 0x0,void 0x0,function*(){const T6=a10v,B=x[T6(0x1c8)],{apiContext:o,inquirerHelper:s}=this;switch(T){case T6(0x1fb):{const Y=B?undefined:o['getCurrentServiceName']();return x[T6(0x197)]||Y||(yield s[T6(0x1de)](k)());}case T6(0x1a8):{const a=B?undefined:o[T6(0x1af)]();return x[T6(0x189)]||a||(yield s[T6(0x1f0)](k)());}case'addon':{return x['addonId']||(yield s[T6(0x1d7)](k)());}}}),y=(k,x,B)=>__awaiter(this,void 0x0,void 0x0,function*(){const T7=a10v;if(v)return B[T7(0x1e9)]||(yield this['inquirerHelper'][T7(0x19b)](k,T===T7(0x1fb)?x:undefined,T===T7(0x1a8)?x:undefined,!![])());return undefined;}),D=(k,x,B)=>__awaiter(this,void 0x0,void 0x0,function*(){const T8=a10v;if(W||l)return B[T8(0x1cb)]||(yield this['inquirerHelper'][T8(0x1ca)](k,x)());return undefined;}),w=(k,x,B,o)=>__awaiter(this,void 0x0,void 0x0,function*(){const T9=a10v;if(l)return o[T9(0x171)]||(yield this['inquirerHelper'][T9(0x187)](k,x,B)());return undefined;}),e=(k,x,B)=>__awaiter(this,void 0x0,void 0x0,function*(){const TT=a10v;if(!v&&B[TT(0x1e2)]!==undefined){if(B['containerId']!==!![])return B[TT(0x1e2)];return yield this['inquirerHelper'][TT(0x1fd)](k,T==='service'?x:undefined,T===TT(0x1a8)?x:undefined,!![])();}return undefined;}),I=(k,x,B)=>__awaiter(this,void 0x0,void 0x0,function*(){const Tv=a10v;if(T==='job')return B[Tv(0x18c)]||(yield this[Tv(0x1a6)][Tv(0x206)](x,k,!![])());return undefined;}),U=(k,x,B)=>__awaiter(this,void 0x0,void 0x0,function*(){const TW=a10v;if(T==='service'){if(B[TW(0x1ef)]!==!![])return B[TW(0x1ef)];return B[TW(0x1ef)];}return undefined;});return this[Tl(0x179)](T,v,W,l)['action'](k=>__awaiter(this,void 0x0,void 0x0,function*(){const TN=Tl,{noDefaults:x,projectId:B,quiet:o,tail:s,types:Y,textIncludes:a,textNotIncludes:G,regexIncludes:H,regexNotIncludes:A,direction:m,lineLimit:g,startTime:F,endTime:K,duration:t,output:C}=k;(0x0,utils_1[TN(0x1ce)])(this[TN(0x16e)]);const {apiContext:b,inquirerHelper:P,logsApiClient:z}=this,c=x?undefined:b[TN(0x1f9)](),O=B||c||(yield P['askForProject']()),J=yield N(O,k),S=yield y(O,J,k),d=yield D(O,J,k),h=yield w(O,J,d,k),E=yield I(O,J,k),i=yield U(O,J,k),M=yield e(O,J,k);if(F&&K&&t)throw new Error(TN(0x1a9));const p={'projectId':O,'entityId':J},Z={'containerName':M,'types':Y,'textIncludes':a,'textNotIncludes':G,'regexIncludes':H,'regexNotIncludes':A,'lineLimit':g,'startTime':F,'duration':t,'runId':E,'buildId':S,'backupId':d,'restoreId':h,'deploymentId':i,'isBuild':v!==null&&v!==void 0x0?v:![]},r=l?TN(0x1a1):W?TN(0x1b0):T,R=Object[TN(0x170)](Object[TN(0x170)]({},Z),{'endTime':K,'direction':m});if(!o&&C!=='yaml'&&C!==TN(0x174)&&C!==TN(0x201))this[TN(0x205)](T,J,O,Object['assign'](Object['assign']({},R),k));const f=this[TN(0x16a)](C,a!==null&&a!==void 0x0?a:H);if(s){const X=yield z[TN(0x208)][TN(0x1e5)](p,Z,r);X['on']('logs-received',f),X['on'](TN(0x1b4),V=>(0x0,utils_1[TN(0x1b4)])(TN(0x183)+V[TN(0x1ed)])),X['on'](TN(0x1bf),()=>console['log'](TN(0x1a3))),yield X[TN(0x1e7)]();}else{const V=yield z['logs']['logRange'](p,R,r);if(V[TN(0x1b4)]){const n=V[TN(0x1b4)][TN(0x1f2)],Q=n?TN(0x1a7)+JSON[TN(0x178)](n,null,'\x20'):'';(0x0,utils_1[TN(0x1b4)])('Error\x20while\x20fetching\x20log\x20lines:\x20'+V[TN(0x1b4)]['message']+Q);}else f(V['data'],V[TN(0x1b3)]);}}));}}exports['CliLogs']=CliLogs;
@@ -1 +1 @@
1
- 'use strict';const a11Z=a11e;(function(F,e){const T=a11e,G=F();while(!![]){try{const u=-parseInt(T(0x1cf))/0x1+parseInt(T(0x1d1))/0x2+-parseInt(T(0x1c7))/0x3*(-parseInt(T(0x1c8))/0x4)+parseInt(T(0x1dd))/0x5+-parseInt(T(0x1c4))/0x6*(parseInt(T(0x1db))/0x7)+parseInt(T(0x1c9))/0x8*(parseInt(T(0x1cb))/0x9)+parseInt(T(0x1c6))/0xa*(-parseInt(T(0x1d0))/0xb);if(u===e)break;else G['push'](G['shift']());}catch(R){G['push'](G['shift']());}}}(a11F,0xadb26));function a11e(F,e){const G=a11F();return a11e=function(u,R){u=u-0x1c1;let b=G[u];return b;},a11e(F,e);}var __importDefault=this&&this[a11Z(0x1de)]||function(F){const n=a11Z;return F&&F[n(0x1d2)]?F:{'default':F};};Object[a11Z(0x1ce)](exports,a11Z(0x1d2),{'value':!![]}),exports[a11Z(0x1d9)]=exports[a11Z(0x1c2)]=void 0x0;const chalk_1=__importDefault(require(a11Z(0x1df)));exports['defaultLogSyntax']=[{'color':'grey','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':'grey','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':a11Z(0x1e2),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11Z(0x1e2),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':'bold','pattern':new RegExp('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','i')},{'color':a11Z(0x1e0),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11Z(0x1e0),'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(0x1d7),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11Z(0x1cd),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11Z(0x1d8),'pattern':/\b(information|info|debug)\b/i},{'color':a11Z(0x1c5),'pattern':/\b(warning|warn)\b/i},{'color':a11Z(0x1cc),'pattern':/[0-9a-f]{64}/i},{'color':a11Z(0x1cc),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(F,e)=>{const v=a11Z,G=chalk_1['default'][v(0x1dc)](F['ts'][v(0x1c3)]()),u=chalk_1[v(0x1e1)][v(0x1d6)](F[v(0x1ca)]),R=exports['defaultLogSyntax']['reduce']((W,V)=>{const A=v;return W[A(0x1d3)](V['pattern'],t=>V['color']?chalk_1[A(0x1e1)][V[A(0x1d5)]](t):chalk_1[A(0x1e1)][A(0x1e2)](t));},F['log']),b=e?R['replace'](new RegExp(e,'g'),W=>chalk_1[v(0x1e1)][v(0x1d4)](W)):R;console[v(0x1c1)](G+'\x20'+u+v(0x1da)+b);};exports['formatLogLine']=formatLogLine;function a11F(){const w=['\x20--\x20','44247VRtHyO','dim','3320915WIfOXV','__importDefault','chalk','green','default','grey','log','defaultLogSyntax','toISOString','1290daqCVz','yellow','20bUFKOA','94035gUlzqQ','100CdYvXj','8cbpVjc','containerId','11370015HKkTzP','blue','red','defineProperty','311498THLuvF','4533089GPaxfY','990060lbVHOL','__esModule','replace','bold','color','cyan','greenBright','gray','formatLogLine'];a11F=function(){return w;};return a11F();}
1
+ 'use strict';const a11k=a11v;(function(T,v){const U=a11v,W=T();while(!![]){try{const l=parseInt(U(0x191))/0x1+-parseInt(U(0x195))/0x2+-parseInt(U(0x18b))/0x3*(parseInt(U(0x19d))/0x4)+-parseInt(U(0x196))/0x5*(parseInt(U(0x19a))/0x6)+parseInt(U(0x192))/0x7*(-parseInt(U(0x199))/0x8)+-parseInt(U(0x183))/0x9+parseInt(U(0x194))/0xa;if(l===v)break;else W['push'](W['shift']());}catch(N){W['push'](W['shift']());}}}(a11T,0x60886));function a11v(T,v){const W=a11T();return a11v=function(l,N){l=l-0x181;let y=W[l];return y;},a11v(T,v);}function a11T(){const s=['12hnHgXU','replace','yellow','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','__esModule','5436756NQvfRx','blue','defineProperty','toISOString','grey','defaultLogSyntax','cyan','dim','506547UFcTlw','green','__importDefault','formatLogLine','color','pattern','463059znVqdO','7EqpTdN','default','19971500WVGNyd','1471514boUMvy','140xyPtOJ','bold','\x20--\x20','519192LSJzgK','32898FnCgsE','log','reduce'];a11T=function(){return s;};return a11T();}var __importDefault=this&&this[a11k(0x18d)]||function(T){const x=a11k;return T&&T[x(0x182)]?T:{'default':T};};Object[a11k(0x185)](exports,'__esModule',{'value':!![]}),exports[a11k(0x18e)]=exports[a11k(0x188)]=void 0x0;const chalk_1=__importDefault(require('chalk'));exports[a11k(0x188)]=[{'color':a11k(0x187),'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':'grey','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':a11k(0x187),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':'bold','pattern':new RegExp(a11k(0x181),'i')},{'color':'green','pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11k(0x18c),'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':a11k(0x184),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':'greenBright','pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':'red','pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':'gray','pattern':/\b(information|info|debug)\b/i},{'color':a11k(0x19f),'pattern':/\b(warning|warn)\b/i},{'color':a11k(0x184),'pattern':/[0-9a-f]{64}/i},{'color':a11k(0x184),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(T,v)=>{const B=a11k,W=chalk_1[B(0x193)][B(0x18a)](T['ts'][B(0x186)]()),N=chalk_1['default'][B(0x189)](T['containerId']),y=exports[B(0x188)][B(0x19c)]((w,e)=>{const o=B;return w['replace'](e[o(0x190)],I=>e[o(0x18f)]?chalk_1['default'][e[o(0x18f)]](I):chalk_1[o(0x193)][o(0x187)](I));},T[B(0x19b)]),D=v?y[B(0x19e)](new RegExp(v,'g'),w=>chalk_1[B(0x193)][B(0x197)](w)):y;console['log'](W+'\x20'+N+B(0x198)+D);};exports['formatLogLine']=formatLogLine;