@northflank/cli 0.9.7 → 0.9.8

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 a4n=a4N;(function(v,N){const E=a4N,z=v();while(!![]){try{const Y=-parseInt(E(0x1f7))/0x1+parseInt(E(0x1d6))/0x2*(parseInt(E(0x22e))/0x3)+parseInt(E(0x1fa))/0x4+parseInt(E(0x1f1))/0x5*(-parseInt(E(0x1d4))/0x6)+-parseInt(E(0x1d9))/0x7*(-parseInt(E(0x1f4))/0x8)+parseInt(E(0x205))/0x9*(parseInt(E(0x1cd))/0xa)+parseInt(E(0x209))/0xb*(-parseInt(E(0x1d1))/0xc);if(Y===N)break;else z['push'](z['shift']());}catch(W){z['push'](z['shift']());}}}(a4v,0x2ff83));var __awaiter=this&&this[a4n(0x1df)]||function(v,N,z,Y){function W(g){return g instanceof z?g:new z(function(y){y(g);});}return new(z||(z=Promise))(function(g,y){const h=a4N;function R(X){const p=a4N;try{J(Y[p(0x1fb)](X));}catch(T){y(T);}}function l(X){const s=a4N;try{J(Y[s(0x1ff)](X));}catch(T){y(T);}}function J(X){const V=a4N;X['done']?g(X[V(0x1e0)]):W(X['value'])[V(0x218)](R,l);}J((Y=Y[h(0x1ed)](v,N||[]))[h(0x1fb)]());});},__importDefault=this&&this[a4n(0x1f8)]||function(v){return v&&v['__esModule']?v:{'default':v};};function a4v(){const B=['message','exit','setRawMode','throw','emitKeypressEvents','job','log','name','handleShellSession','9MqbxYO','command-exec','resizeTerminal','Run\x20command\x20with\x20this\x20group','11ayUipA','service','readline','apiClient','isTTY','Command\x20completed\x20successfully,\x20exit\x20code:\x20','Id\x20[NAME]','charAt','--group\x20[GROUP]','Error\x20occured\x20during\x20','assertContextExisting','Success','askForProject','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','getCurrentProjectName','then','../inquirer-helper','exec','askForService','getStandardExecCommand','CliExec','option','stdIn',',\x20exit\x20code:\x20','--container\x20--containerId\x20[NAME]','toUpperCase','execJobSession','@northflank/js-client','(exit\x20with\x20two\x20quick\x20','with\x20group:','Run\x20command\x20with\x20shell\x20(e.g.\x20bash,sh).\x20If\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','ApiClient','stdin','exitCode','InquirerHelper','stdOut','description','2142FxUwCD','slice','--cmd\x20--command\x20[COMMAND]','warning','pipe','bold','none','2008130VTnYKH','askForJob','without\x20shell','execStartLog','1178652CSyyKV','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','stdout','10254btTJYS','stderr','654bkspOh','getCommand',',\x20details:\x20','692363XdCbMl','default','Project\x20for\x20exec','execCmd','columns','__esModule','__awaiter','value','rows','getTerminalSize','shell\x20command\x20','Unknown','\x20--','with\x20shell\x20session','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','error','status','Command\x20to\x20execute,\x20if\x20--shell\x20option\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell,\x20otherwise','addCommand','alias','apply','chalk','defineProperty','filter','145sWUjpg','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','action','16hhKCjp','\x20in\x20project\x20','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','301921RQmZYz','__importDefault','greenBright','56308LgrGSV','next'];a4v=function(){return B;};return a4v();}Object[a4n(0x1ef)](exports,a4n(0x1de),{'value':!![]}),exports[a4n(0x21d)]=void 0x0;const js_client_1=require(a4n(0x224)),chalk_1=__importDefault(require(a4n(0x1ee))),utils_1=require('../utils'),inquirer_helper_1=require(a4n(0x219));class CliExec{constructor(v){const c=a4n;this['getStandardExecCommand']=W=>(0x0,utils_1[c(0x1d7)])(!![])[c(0x203)](W)[c(0x22d)]('Command\x20exec\x20for\x20the\x20specified\x20'+W)[c(0x21e)]('--project\x20--projectId\x20[NAME]',c(0x1db))[c(0x21e)]('--'+W+c(0x1e5)+W+c(0x20f),W[c(0x210)](0x0)[c(0x222)]()+W[c(0x1c7)](0x1)+'\x20to\x20exec\x20into')[c(0x21e)](c(0x221),c(0x1f6))[c(0x21e)]('--shell-cmd\x20[SHELL-CMD]',c(0x227))[c(0x21e)]('--user\x20[USER]','Run\x20command\x20with\x20this\x20user')[c(0x21e)](c(0x211),c(0x208))[c(0x21e)]('--noDefaults',c(0x1d2),![])['option'](c(0x1c8),c(0x1ea)),this[c(0x1e2)]=()=>({'columns':process[c(0x1d3)][c(0x1dd)],'rows':process['stdout'][c(0x1e1)]}),this['execStartLog']=(W,g,y,R,l,J,X,T)=>{const A=c;if(T===!![])return;const r=R===A(0x1cc),Q=r?A(0x1cf):R===undefined?A(0x1e6):A(0x1e3)+chalk_1['default']['greenBright'](R),D=l!==undefined?'with\x20user:'+l:'',q=J!==undefined?A(0x226)+J:'',U=X!==undefined?'with\x20command\x20\x27'+chalk_1['default'][A(0x1f9)](X)+'\x27':'',M=[U,Q,D,q][A(0x1f0)](u=>u!=='')['join']('\x20'),S=A(0x225)+chalk_1[A(0x1da)][A(0x1cb)]('\x27Ctrl+D\x27')+')';console[A(0x202)]('Exec\x20'+W+'\x20'+chalk_1['default']['bold'](g)+A(0x1f5)+chalk_1[A(0x1da)]['bold'](y)+'\x20'+M+'\x20'+S);},this[c(0x204)]=(W,g,y=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const f=c;var R,l;let J=![];try{if(process[f(0x229)]['isTTY']){const T=require(f(0x20b));T[f(0x200)](process[f(0x229)]),process[f(0x229)][f(0x1fe)](!![]),process['stdout']['on']('resize',()=>{const Z=f;W[Z(0x207)](this['getTerminalSize']());}),process['stdin']['on']('keypress',(r,Q)=>{const b=f;Q['sequence']==='\x04'&&(J?(process[b(0x229)][b(0x1fe)](![]),(0x0,utils_1[b(0x1c9)])(b(0x1f2)),process[b(0x1fd)]()):(J=!![],setTimeout(()=>J=![],0x190)));});}process[f(0x229)][f(0x1ca)](W[f(0x21f)]),W['stdErr']['pipe'](process[f(0x1d5)]),W[f(0x22c)][f(0x1ca)](process['stdout']),W['on'](f(0x1e8),r=>{const t=f;var Q;(0x0,utils_1['error'])(t(0x212)+g+'\x20command\x20exec:\x20'+((Q=r[t(0x1fc)])!==null&&Q!==void 0x0?Q:r)),process['stdin'][t(0x20d)]&&process['stdin'][t(0x1fe)](![]),process[t(0x1fd)](-0x1);});const X=yield W['waitForCommandResult']();if(y!==!![]){const r=(R=X===null||X===void 0x0?void 0x0:X[f(0x1e9)])!==null&&R!==void 0x0?R:f(0x1e4),Q=(l=X===null||X===void 0x0?void 0x0:X[f(0x22a)])!==null&&l!==void 0x0?l:-0x1,D=(X===null||X===void 0x0?void 0x0:X['message'])?f(0x1d8)+X['message']:'';r===f(0x214)?(0x0,utils_1['success'])(f(0x20e)+Q):(0x0,utils_1[f(0x1c9)])(f(0x216)+r+f(0x220)+Q+D);}return X;}finally{process['stdin'][f(0x20d)]&&process[f(0x229)][f(0x1fe)](![]);}}),this[c(0x20c)]=new js_client_1[(c(0x228))](v,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1['customUserAgent']});const N=new inquirer_helper_1[(c(0x22b))](this[c(0x20c)]);this[c(0x1dc)]=(0x0,utils_1[c(0x1d7)])()[c(0x203)](c(0x206))[c(0x1ec)](c(0x21a))[c(0x22d)](c(0x1e7));const z=this[c(0x21c)](c(0x20a))[c(0x1f3)](W=>__awaiter(this,void 0x0,void 0x0,function*(){const H=c,{noDefaults:g,projectId:y,serviceId:R,containerId:l,shellCmd:J,user:X,group:T,command:r,quiet:Q}=W;(0x0,utils_1[H(0x213)])(this[H(0x20c)]);try{const D=g?undefined:v[H(0x217)](),q=y||D||(yield N[H(0x215)]()),U=g?undefined:v['getCurrentServiceName'](),M=R||U||(yield N[H(0x21b)](q)()),S=J!==null&&J!==void 0x0?J:r!==undefined?'none':undefined;this[H(0x1d0)](H(0x20a),M,q,S,X,T,r,Q);const u=process[H(0x1d3)]['columns'],i=process[H(0x1d3)]['rows'],m={'projectId':q,'serviceId':M},a=yield this[H(0x20c)]['exec']['execServiceSession'](m,{'containerName':l,'command':r,'shell':S,'user':X,'group':T,'ttyColumns':u,'ttyRows':i});yield this[H(0x204)](a,H(0x20a),Q);}catch(C){(0x0,utils_1[H(0x1e8)])(''+C[H(0x1fc)]);}finally{process[H(0x1fd)]();}})),Y=this[c(0x21c)](c(0x201))[c(0x1f3)](W=>__awaiter(this,void 0x0,void 0x0,function*(){const O=c,{projectId:g,jobId:y,containerId:R,noDefaults:l,shellCmd:J,user:X,group:T,command:r,quiet:Q}=W;(0x0,utils_1['assertContextExisting'])(this[O(0x20c)]);try{const D=l?undefined:v[O(0x217)](),q=g||D||(yield N[O(0x215)]()),U=y||(yield N[O(0x1ce)](q)());this[O(0x1d0)](O(0x201),U,q,J,Q);const {rows:M,columns:S}=this[O(0x1e2)](),u={'projectId':q,'jobId':U},i=yield this[O(0x20c)]['exec'][O(0x223)](u,{'containerName':R,'command':r,'shell':J,'user':X,'group':T,'ttyColumns':S,'ttyRows':M});yield this['handleShellSession'](i,'job',Q);}catch(m){(0x0,utils_1[O(0x1e8)])(''+m[O(0x1fc)]);}finally{process['exit']();}}));this['execCmd']['addCommand'](z),this[c(0x1dc)][c(0x1eb)](Y);}}function a4N(v,N){const z=a4v();return a4N=function(Y,W){Y=Y-0x1c7;let g=z[Y];return g;},a4N(v,N);}exports[a4n(0x21d)]=CliExec;
1
+ 'use strict';const a4o=a4z;(function(I,z){const x=a4z,g=I();while(!![]){try{const Z=-parseInt(x(0x154))/0x1*(-parseInt(x(0x16d))/0x2)+parseInt(x(0x146))/0x3*(-parseInt(x(0x132))/0x4)+parseInt(x(0x169))/0x5*(-parseInt(x(0x110))/0x6)+parseInt(x(0x14c))/0x7*(parseInt(x(0x151))/0x8)+parseInt(x(0x15f))/0x9*(-parseInt(x(0x11e))/0xa)+-parseInt(x(0x15a))/0xb*(-parseInt(x(0x125))/0xc)+parseInt(x(0x103))/0xd*(-parseInt(x(0x11d))/0xe);if(Z===z)break;else g['push'](g['shift']());}catch(y){g['push'](g['shift']());}}}(a4I,0x44017));var __awaiter=this&&this[a4o(0x121)]||function(I,z,g,Z){function y(i){return i instanceof g?i:new g(function(t){t(i);});}return new(g||(g=Promise))(function(i,t){const T=a4z;function u(G){const d=a4z;try{M(Z[d(0x128)](G));}catch(h){t(h);}}function v(G){const n=a4z;try{M(Z[n(0x131)](G));}catch(h){t(h);}}function M(G){const A=a4z;G['done']?i(G[A(0x134)]):y(G[A(0x134)])[A(0x12e)](u,v);}M((Z=Z[T(0x126)](I,z||[]))[T(0x128)]());});},__importDefault=this&&this[a4o(0x11b)]||function(I){const m=a4o;return I&&I[m(0x10e)]?I:{'default':I};};function a4I(){const Y=['7gCtvCj','name','../utils','CliExec','addCommand','3548824hkkYUZ','stdIn','Run\x20command\x20with\x20this\x20group','529981SwdHrL','execServiceSession','filter','@northflank/js-client','job','toUpperCase','165MNFdyL','getStandardExecCommand','warning','none','greenBright','2835rfIaiA','execJobSession','option','Run\x20command\x20with\x20shell\x20(e.g.\x20bash,sh).\x20If\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','ApiClient','handleShellSession','getCurrentProjectName','with\x20shell\x20session','stdin','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','287585oBivhN','setRawMode','Project\x20for\x20exec','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','2HIGjur','rows','--project\x20--projectId\x20[NAME]','stdout','stdErr','error','getTerminalSize','\x20--','13chgtwm','with\x20command\x20\x27','default','status','askForService','join','--cmd\x20--command\x20[COMMAND]','apiClient','exit','service','getCommand','__esModule','Exec\x20','36krgIzS','keypress','--group\x20[GROUP]','\x27Ctrl+D\x27','resize','columns','Command\x20exec\x20for\x20the\x20specified\x20','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','action','askForProject','resizeTerminal','__importDefault','isTTY','832748kwpken','6700ELHjfG','--noDefaults','success','__awaiter','Run\x20command\x20with\x20this\x20user','alias','\x20command\x20exec:\x20','115332mSDiUe','apply','Unknown','next','(exit\x20with\x20two\x20quick\x20','pipe','stdOut','getCurrentServiceName','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','then','exitCode','Success','throw','8URfbXM','charAt','value','command-exec',',\x20details:\x20','execCmd','stderr','emitKeypressEvents','with\x20group:','--user\x20[USER]','without\x20shell','assertContextExisting','shell\x20command\x20','bold','customUserAgent','execStartLog','description','log','waitForCommandResult','Command\x20to\x20execute,\x20if\x20--shell\x20option\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell,\x20otherwise','335346pOAKMx','message','exec','Command\x20completed\x20successfully,\x20exit\x20code:\x20','../inquirer-helper',',\x20exit\x20code:\x20'];a4I=function(){return Y;};return a4I();}Object['defineProperty'](exports,a4o(0x10e),{'value':!![]}),exports['CliExec']=void 0x0;const js_client_1=require(a4o(0x157)),chalk_1=__importDefault(require('chalk')),utils_1=require(a4o(0x14e)),inquirer_helper_1=require(a4o(0x14a));function a4z(I,z){const g=a4I();return a4z=function(Z,y){Z=Z-0x103;let i=g[Z];return i;},a4z(I,z);}class CliExec{constructor(I){const b=a4o;this[b(0x15b)]=y=>(0x0,utils_1['getCommand'])(!![])['name'](y)[b(0x142)](b(0x116)+y)[b(0x161)](b(0x16f),b(0x16b))['option']('--'+y+b(0x174)+y+'Id\x20[NAME]',y[b(0x133)](0x0)[b(0x159)]()+y['slice'](0x1)+'\x20to\x20exec\x20into')[b(0x161)]('--container\x20--containerId\x20[NAME]',b(0x117))[b(0x161)]('--shell-cmd\x20[SHELL-CMD]',b(0x162))[b(0x161)](b(0x13b),b(0x122))['option'](b(0x112),b(0x153))[b(0x161)](b(0x11f),b(0x16c),![])[b(0x161)](b(0x109),b(0x145)),this[b(0x173)]=()=>({'columns':process['stdout'][b(0x115)],'rows':process['stdout']['rows']}),this[b(0x141)]=(y,i,t,u,v,M,G,P)=>{const O=b;if(P===!![])return;const h=u===O(0x15d),L=h?O(0x13c):u===undefined?O(0x166):O(0x13e)+chalk_1[O(0x105)]['greenBright'](u),R=v!==undefined?'with\x20user:'+v:'',w=M!==undefined?O(0x13a)+M:'',Q=G!==undefined?O(0x104)+chalk_1[O(0x105)][O(0x15e)](G)+'\x27':'',K=[Q,L,R,w][O(0x156)](j=>j!=='')[O(0x108)]('\x20'),J=O(0x129)+chalk_1[O(0x105)][O(0x13f)](O(0x113))+')';console[O(0x143)](O(0x10f)+y+'\x20'+chalk_1['default']['bold'](i)+'\x20in\x20project\x20'+chalk_1[O(0x105)][O(0x13f)](t)+'\x20'+K+'\x20'+J);},this[b(0x164)]=(y,i,t=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const V=b;var u,v;let M=![];try{if(process[V(0x167)][V(0x11c)]){const P=require('readline');P[V(0x139)](process[V(0x167)]),process[V(0x167)]['setRawMode'](!![]),process['stdout']['on'](V(0x114),()=>{const k=V;y[k(0x11a)](this['getTerminalSize']());}),process[V(0x167)]['on'](V(0x111),(h,L)=>{const N=V;L['sequence']==='\x04'&&(M?(process[N(0x167)]['setRawMode'](![]),(0x0,utils_1[N(0x15c)])('Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.'),process['exit']()):(M=!![],setTimeout(()=>M=![],0x190)));});}process['stdin']['pipe'](y[V(0x152)]),y[V(0x171)]['pipe'](process[V(0x138)]),y[V(0x12b)][V(0x12a)](process['stdout']),y['on'](V(0x172),h=>{const a=V;var L;(0x0,utils_1[a(0x172)])('Error\x20occured\x20during\x20'+i+a(0x124)+((L=h[a(0x147)])!==null&&L!==void 0x0?L:h)),process[a(0x167)][a(0x11c)]&&process[a(0x167)]['setRawMode'](![]),process[a(0x10b)](-0x1);});const G=yield y[V(0x144)]();if(t!==!![]){const h=(u=G===null||G===void 0x0?void 0x0:G[V(0x106)])!==null&&u!==void 0x0?u:V(0x127),L=(v=G===null||G===void 0x0?void 0x0:G[V(0x12f)])!==null&&v!==void 0x0?v:-0x1,R=(G===null||G===void 0x0?void 0x0:G[V(0x147)])?V(0x136)+G['message']:'';h===V(0x130)?(0x0,utils_1[V(0x120)])(V(0x149)+L):(0x0,utils_1[V(0x15c)])(V(0x168)+h+V(0x14b)+L+R);}return G;}finally{process[V(0x167)]['isTTY']&&process[V(0x167)][V(0x16a)](![]);}}),this[b(0x10a)]=new js_client_1[(b(0x163))](I,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[b(0x140)]});const z=new inquirer_helper_1['InquirerHelper'](this[b(0x10a)]);this[b(0x137)]=(0x0,utils_1[b(0x10d)])()[b(0x14d)](b(0x135))[b(0x123)](b(0x148))[b(0x142)](b(0x12d));const g=this[b(0x15b)](b(0x10c))[b(0x118)](y=>__awaiter(this,void 0x0,void 0x0,function*(){const D=b,{noDefaults:i,projectId:t,serviceId:u,containerId:v,shellCmd:M,user:G,group:P,command:h,quiet:L}=y;(0x0,utils_1[D(0x13d)])(this[D(0x10a)]);try{const R=i?undefined:I[D(0x165)](),w=t||R||(yield z['askForProject']()),Q=i?undefined:I[D(0x12c)](),K=u||Q||(yield z[D(0x107)](w)()),J=M!==null&&M!==void 0x0?M:h!==undefined?D(0x15d):undefined;this['execStartLog'](D(0x10c),K,w,J,G,P,h,L);const j=process[D(0x170)][D(0x115)],F=process['stdout'][D(0x16e)],s={'projectId':w,'serviceId':K},C=yield this[D(0x10a)]['exec'][D(0x155)](s,{'containerName':v,'command':h,'shell':J,'user':G,'group':P,'ttyColumns':j,'ttyRows':F});yield this[D(0x164)](C,D(0x10c),L);}catch(f){(0x0,utils_1[D(0x172)])(''+f[D(0x147)]);}finally{process[D(0x10b)]();}})),Z=this['getStandardExecCommand']('job')[b(0x118)](y=>__awaiter(this,void 0x0,void 0x0,function*(){const H=b,{projectId:i,jobId:t,containerId:u,noDefaults:v,shellCmd:M,user:G,group:P,command:h,quiet:L}=y;(0x0,utils_1[H(0x13d)])(this[H(0x10a)]);try{const R=v?undefined:I[H(0x165)](),w=i||R||(yield z[H(0x119)]()),Q=t||(yield z['askForJob'](w)());this[H(0x141)](H(0x158),Q,w,M,L);const {rows:K,columns:J}=this['getTerminalSize'](),j={'projectId':w,'jobId':Q},F=yield this[H(0x10a)]['exec'][H(0x160)](j,{'containerName':u,'command':h,'shell':M,'user':G,'group':P,'ttyColumns':J,'ttyRows':K});yield this[H(0x164)](F,H(0x158),L);}catch(s){(0x0,utils_1[H(0x172)])(''+s[H(0x147)]);}finally{process[H(0x10b)]();}}));this['execCmd'][b(0x150)](g),this[b(0x137)][b(0x150)](Z);}}exports[a4o(0x14f)]=CliExec;
@@ -1 +1 @@
1
- 'use strict';const a5a=a5N;(function(v,N){const m=a5N,z=v();while(!![]){try{const Y=-parseInt(m(0xcd))/0x1*(-parseInt(m(0xc9))/0x2)+-parseInt(m(0xe1))/0x3*(-parseInt(m(0xc3))/0x4)+parseInt(m(0xd9))/0x5+-parseInt(m(0xdf))/0x6*(parseInt(m(0xe2))/0x7)+parseInt(m(0xdc))/0x8+parseInt(m(0xdb))/0x9+-parseInt(m(0xe8))/0xa;if(Y===N)break;else z['push'](z['shift']());}catch(W){z['push'](z['shift']());}}}(a5v,0x49ad1));function a5N(v,N){const z=a5v();return a5N=function(Y,W){Y=Y-0xc3;let g=z[Y];return g;},a5N(v,N);}var __awaiter=this&&this[a5a(0xde)]||function(v,N,z,Y){function W(g){return g instanceof z?g:new z(function(y){y(g);});}return new(z||(z=Promise))(function(g,y){const p=a5N;function R(X){const C=a5N;try{J(Y[C(0xe5)](X));}catch(T){y(T);}}function l(X){const E=a5N;try{J(Y[E(0xe6)](X));}catch(T){y(T);}}function J(X){const n=a5N;X[n(0xcf)]?g(X[n(0xc4)]):W(X[n(0xc4)])['then'](R,l);}J((Y=Y[p(0xd5)](v,N||[]))[p(0xe5)]());});},__importDefault=this&&this[a5a(0xd8)]||function(v){const s=a5a;return v&&v[s(0xd4)]?v:{'default':v};};Object[a5a(0xe4)](exports,a5a(0xd4),{'value':!![]}),exports[a5a(0xc7)]=void 0x0;const chalk_1=__importDefault(require(a5a(0xca))),utils_1=require(a5a(0xd1));function a5v(){const c=['3415848oLIZZL','getCommand','__awaiter','1170aMJfSj','keys','288690JHqKNl','105JuCyNh','join','defineProperty','next','throw','name','17682590iczjcT','bold','24wKYfeo','value','green','slice','getCommandOverview','default','2RiUSuY','chalk','command-overview','description','589325BRlBWR','forEach','done','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','../utils','log','length','__esModule','apply','option','every','__importDefault','2123310VtZkth','opts','491517PlBJVy'];a5v=function(){return c;};return a5v();}function getCommandOverview(v){const V=a5a;return(0x0,utils_1[V(0xdd)])()[V(0xe7)](V(0xcb))['description'](V(0xd0))[V(0xd6)]('--verbose','Print\x20command\x20descriptions')['action'](N=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:z}=N;function Y(W,g){const h=a5N;var y;const R=(S,u=!![])=>u?chalk_1[h(0xc8)][h(0xe9)][h(0xc5)](S[h(0xe7)]()):S[h(0xe7)](),l=g[h(0xd3)]===0x0,J=W['commands'];let X='';const T=J[h(0xd3)]===0x0,r=T||((y=Object[h(0xe0)](W===null||W===void 0x0?void 0x0:W[h(0xda)]()))===null||y===void 0x0?void 0x0:y[h(0xd3)])>0x0;!l&&(X=J&&!T?'┬\x20':'─\x20');const Q=z&&r&&W[h(0xcc)]()?':\x20'+W[h(0xcc)]():'';console[h(0xd2)](''+g+X+R(W,r)+Q);let D=g;if(!l){const S=g[h(0xc6)](-0x2)==='└─';D=g[h(0xc6)](0x0,-0x2)+(S?'\x20\x20':'│\x20');}const q=D+'├─',U=D+'└─',M=J[h(0xd7)](u=>u['commands'][h(0xd3)]===0x0);M&&!T&&!z?console['log'](U+'\x20'+J['map'](u=>R(u))[h(0xe3)](',\x20')):J[h(0xce)]((u,i)=>{Y(u,J['length']-0x1===i?U:q);});}Y(v,'');}));}exports[a5a(0xc7)]=getCommandOverview;
1
+ 'use strict';function a5I(){const T=['4223073Rkfkzc','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','4XAZJsz','commands','2332zXWUjE','green','log','option','getCommandOverview','next','description','every','defineProperty','9296502ubtiLM','slice','__awaiter','--verbose','name','length','done','getCommand','command-overview','8LuBBoc','1183183kNwcxc','1795724NSGjJF','10368144LhuYlu','forEach','10jpLDaz','__esModule','1631274QSEHgF','value','5thpAIL','then','map','chalk','3972KIcJVQ','apply'];a5I=function(){return T;};return a5I();}const a5C=a5z;(function(I,z){const s=a5z,g=I();while(!![]){try{const Z=-parseInt(s(0xb5))/0x1+parseInt(s(0x96))/0x2+-parseInt(s(0x9e))/0x3*(-parseInt(s(0xa0))/0x4)+-parseInt(s(0x98))/0x5*(parseInt(s(0xab))/0x6)+parseInt(s(0xb6))/0x7*(parseInt(s(0xb4))/0x8)+parseInt(s(0xb7))/0x9*(parseInt(s(0x94))/0xa)+-parseInt(s(0xa2))/0xb*(parseInt(s(0x9c))/0xc);if(Z===z)break;else g['push'](g['shift']());}catch(y){g['push'](g['shift']());}}}(a5I,0xca6b0));var __awaiter=this&&this[a5C(0xad)]||function(I,z,g,Z){function y(i){return i instanceof g?i:new g(function(t){t(i);});}return new(g||(g=Promise))(function(i,t){const x=a5z;function u(G){try{M(Z['next'](G));}catch(h){t(h);}}function v(G){try{M(Z['throw'](G));}catch(h){t(h);}}function M(G){const f=a5z;G[f(0xb1)]?i(G[f(0x97)]):y(G[f(0x97)])[f(0x99)](u,v);}M((Z=Z[x(0x9d)](I,z||[]))[x(0xa7)]());});},__importDefault=this&&this['__importDefault']||function(I){const o=a5C;return I&&I[o(0x95)]?I:{'default':I};};function a5z(I,z){const g=a5I();return a5z=function(Z,y){Z=Z-0x94;let i=g[Z];return i;},a5z(I,z);}Object[a5C(0xaa)](exports,'__esModule',{'value':!![]}),exports[a5C(0xa6)]=void 0x0;const chalk_1=__importDefault(require(a5C(0x9b))),utils_1=require('../utils');function getCommandOverview(I){const d=a5C;return(0x0,utils_1[d(0xb2)])()[d(0xaf)](d(0xb3))[d(0xa8)](d(0x9f))[d(0xa5)](d(0xae),'Print\x20command\x20descriptions')['action'](z=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:g}=z;function Z(y,i){const n=a5z;var t;const u=(J,j=!![])=>j?chalk_1['default']['bold'][n(0xa3)](J[n(0xaf)]()):J[n(0xaf)](),v=i[n(0xb0)]===0x0,M=y[n(0xa1)];let G='';const P=M['length']===0x0,h=P||((t=Object['keys'](y===null||y===void 0x0?void 0x0:y['opts']()))===null||t===void 0x0?void 0x0:t[n(0xb0)])>0x0;!v&&(G=M&&!P?'┬\x20':'─\x20');const L=g&&h&&y[n(0xa8)]()?':\x20'+y[n(0xa8)]():'';console['log'](''+i+G+u(y,h)+L);let R=i;if(!v){const J=i[n(0xac)](-0x2)==='└─';R=i['slice'](0x0,-0x2)+(J?'\x20\x20':'│\x20');}const w=R+'├─',Q=R+'└─',K=M[n(0xa9)](j=>j[n(0xa1)][n(0xb0)]===0x0);K&&!P&&!g?console[n(0xa4)](Q+'\x20'+M[n(0x9a)](j=>u(j))['join'](',\x20')):M[n(0xb8)]((j,F)=>{const A=n;Z(j,M[A(0xb0)]-0x1===F?Q:w);});}Z(I,'');}));}exports['getCommandOverview']=getCommandOverview;
@@ -1 +1 @@
1
- 'use strict';const a6q=a6N;function a6N(v,N){const z=a6v();return a6N=function(Y,W){Y=Y-0xde;let g=z[Y];return g;},a6N(v,N);}(function(v,N){const D=a6N,z=v();while(!![]){try{const Y=parseInt(D(0xe2))/0x1+parseInt(D(0x10d))/0x2+parseInt(D(0xe0))/0x3*(-parseInt(D(0x107))/0x4)+parseInt(D(0xfe))/0x5+-parseInt(D(0x111))/0x6*(parseInt(D(0xf8))/0x7)+-parseInt(D(0x10e))/0x8+parseInt(D(0xed))/0x9;if(Y===N)break;else z['push'](z['shift']());}catch(W){z['push'](z['shift']());}}}(a6v,0xc1ae6));var __createBinding=this&&this[a6q(0x112)]||(Object[a6q(0x119)]?function(v,N,z,Y){const U=a6q;if(Y===undefined)Y=z;var W=Object[U(0x113)](N,z);(!W||(U(0x100)in W?!N[U(0xf7)]:W[U(0xf6)]||W['configurable']))&&(W={'enumerable':!![],'get':function(){return N[z];}}),Object[U(0xe7)](v,Y,W);}:function(v,N,z,Y){if(Y===undefined)Y=z;v[Y]=N[z];}),__setModuleDefault=this&&this[a6q(0xec)]||(Object[a6q(0x119)]?function(N,z){const M=a6q;Object[M(0xe7)](N,M(0xf2),{'enumerable':!![],'value':z});}:function(N,z){const S=a6q;N[S(0xf2)]=z;}),__importStar=this&&this[a6q(0x118)]||function(v){const u=a6q;if(v&&v[u(0xf7)])return v;var N={};if(v!=null){for(var z in v)if(z!==u(0xf2)&&Object[u(0xdf)]['hasOwnProperty'][u(0xfd)](v,z))__createBinding(N,v,z);}return __setModuleDefault(N,v),N;},__importDefault=this&&this[a6q(0xea)]||function(v){return v&&v['__esModule']?v:{'default':v};};Object[a6q(0xe7)](exports,'__esModule',{'value':!![]}),exports['printResponse']=exports['handleFormattedOutput']=exports[a6q(0xf9)]=exports[a6q(0x105)]=exports['consoleFormat']=exports[a6q(0x116)]=void 0x0;const chalk_1=__importDefault(require(a6q(0xde))),_=__importStar(require('lodash')),util=__importStar(require(a6q(0x10b))),yaml=require(a6q(0x110)),columnify=require(a6q(0xf3));function printAsTable(v,N,z,Y=![],W=0x0){const i=a6q;!Y&&console[i(0x117)](''+chalk_1[i(0xf2)][i(0x115)](N));function g(R){const m=i;return R===m(0x10f)?R:R['replace'](m(0x10f),'');}function y(R,l){const C=i;function J(T){const a=a6N,r=new Date(T);return r[a(0x101)]()+'/'+r['getMonth']()+'/'+r['getFullYear']()+'\x0a'+r[a(0xe1)]()+':'+r[a(0x114)]()+':'+r[a(0xef)]();}const X=[C(0xfb),'updatedat'];if(X[C(0xeb)](l[C(0xe5)]())&&_[C(0xf4)](R)&&R[C(0x10a)]()[C(0xe6)]===0xd)return J(Number(R));if(_[C(0xe8)](R)){if(l!=='disabled'&&l[C(0xeb)](C(0x10f)))return R?'x':'✔';return R?'✔':'x';}if(_[C(0xff)](R))return util[C(0xfa)](R,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return R;}if(_[i(0x11a)](v)){v[i(0xe6)]===0x0&&console[i(0x117)](i(0x109)+N[i(0xe5)]()+i(0x102));const R=v[i(0x106)]((X,T)=>{const E=i,r={'i':T+W};return Object[E(0x103)](X)[E(0xf1)](Q=>{const n=E;(_[n(0x108)](z)||z[n(0xeb)](Q[n(0xe5)]()))&&_[n(0xe9)](r,g(Q),y(X[Q],Q));}),r;}),l=_['clone'](Object[i(0x103)]((R===null||R===void 0x0?void 0x0:R[0x0])||[]))[i(0xee)]((X,T)=>{const p=i,r=Q=>Q!=='i'?Q!==p(0xe4)?0x0:0x1:0x2;return r(T)-r(X);}),J={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!Y,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':l};console[i(0x117)](columnify(R,J));}else console[i(0x117)](v);}exports['printAsTable']=printAsTable;function consoleFormat(v){const s=a6q;if(!_[s(0xff)](v))return v===null||v===void 0x0?void 0x0:v['toString']();return util['inspect'](v,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6q(0xe3)]=consoleFormat;const handleJsonOutput=(v,N)=>{const V=a6q,z=v===V(0x104);if(z)console[V(0x117)](JSON['stringify'](N,null,'\x20'));};exports[a6q(0x105)]=handleJsonOutput;const handleYamlOutput=(v,N)=>{const h=a6q,z=v==='yaml'||v===h(0xf0);if(z)console[h(0x117)](yaml[h(0xfc)](N));};function a6v(){const A=['getSeconds','yml','forEach','default','columnify','isFinite','format','writable','__esModule','17003qsfQzk','handleYamlOutput','inspect','createdat','safeDump','call','5192405IbcbKo','isObjectLike','get','getDate','\x20found','keys','json','handleJsonOutput','map','196CcfHAr','isUndefined','No\x20','toString','util','printResponse','1319770fHMMcQ','10699496XQzxOs','disabled','js-yaml','3594ZbbnNl','__createBinding','getOwnPropertyDescriptor','getMinutes','bold','printAsTable','log','__importStar','create','isArrayLike','chalk','prototype','90867utCjFh','getHours','255486puZKEh','consoleFormat','internalId','toLowerCase','length','defineProperty','isBoolean','set','__importDefault','includes','__setModuleDefault','28044315tyEuIE','sort'];a6v=function(){return A;};return a6v();}exports[a6q(0xf9)]=handleYamlOutput;const handleFormattedOutput=(v,N)=>{const c=a6q,z=v===c(0xf5);if(z)console[c(0x117)](consoleFormat(N));};exports['handleFormattedOutput']=handleFormattedOutput;const printResponse=(v,N)=>{(0x0,exports['handleJsonOutput'])(v,N),(0x0,exports['handleYamlOutput'])(v,N),(0x0,exports['handleFormattedOutput'])(v,N);};exports[a6q(0x10c)]=printResponse;
1
+ 'use strict';const a6w=a6z;(function(I,z){const R=a6z,g=I();while(!![]){try{const Z=-parseInt(R(0x10e))/0x1*(parseInt(R(0x136))/0x2)+parseInt(R(0x12e))/0x3+-parseInt(R(0x10b))/0x4+parseInt(R(0x119))/0x5*(parseInt(R(0x113))/0x6)+parseInt(R(0x128))/0x7+-parseInt(R(0x11a))/0x8*(parseInt(R(0x109))/0x9)+-parseInt(R(0x114))/0xa;if(Z===z)break;else g['push'](g['shift']());}catch(y){g['push'](g['shift']());}}}(a6I,0x4167e));function a6I(){const O=['consoleFormat','replace','internalId','getFullYear','js-yaml','2294880XMtWSn','yaml','format','isArrayLike','defineProperty','bold','285408ryWAOf','handleJsonOutput','stringify','toString','columnify','handleFormattedOutput','keys','default','22482MEQUlF','\x20found','getDate','util','chalk','yml','getOwnPropertyDescriptor','getMonth','json','No\x20','__esModule','__setModuleDefault','get','length','printAsTable','isUndefined','964935dgMpNc','clone','1950864tsydZz','isObjectLike','handleYamlOutput','5WBTlwn','create','__importDefault','updatedat','isBoolean','174NAaEjo','59860gDCyTL','writable','log','toLowerCase','hasOwnProperty','86560VpMUIs','8tHWAwU','map','isFinite','call','includes','inspect','disabled','forEach','getMinutes'];a6I=function(){return O;};return a6I();}var __createBinding=this&&this['__createBinding']||(Object[a6w(0x10f)]?function(I,z,g,Z){const Q=a6w;if(Z===undefined)Z=g;var y=Object[Q(0x13c)](z,g);(!y||(Q(0x105)in y?!z[Q(0x103)]:y[Q(0x115)]||y['configurable']))&&(y={'enumerable':!![],'get':function(){return z[g];}}),Object['defineProperty'](I,Z,y);}:function(I,z,g,Z){if(Z===undefined)Z=g;I[Z]=z[g];}),__setModuleDefault=this&&this[a6w(0x104)]||(Object[a6w(0x10f)]?function(I,z){const K=a6w;Object[K(0x12c)](I,K(0x135),{'enumerable':!![],'value':z});}:function(I,z){const J=a6w;I[J(0x135)]=z;}),__importStar=this&&this['__importStar']||function(I){const j=a6w;if(I&&I[j(0x103)])return I;var z={};if(I!=null){for(var g in I)if(g!==j(0x135)&&Object['prototype'][j(0x118)][j(0x11d)](I,g))__createBinding(z,I,g);}return __setModuleDefault(z,I),z;},__importDefault=this&&this[a6w(0x110)]||function(I){return I&&I['__esModule']?I:{'default':I};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['printResponse']=exports['handleFormattedOutput']=exports['handleYamlOutput']=exports[a6w(0x12f)]=exports[a6w(0x123)]=exports[a6w(0x107)]=void 0x0;const chalk_1=__importDefault(require(a6w(0x13a))),_=__importStar(require('lodash')),util=__importStar(require(a6w(0x139))),yaml=require(a6w(0x127)),columnify=require(a6w(0x132));function printAsTable(I,z,g,Z=![],y=0x0){const F=a6w;!Z&&console[F(0x116)](''+chalk_1['default'][F(0x12d)](z));function i(u){const s=F;return u===s(0x120)?u:u[s(0x124)]('disabled','');}function t(u,v){const f=F;function M(P){const C=a6z,h=new Date(P);return h[C(0x138)]()+'/'+h[C(0x100)]()+'/'+h[C(0x126)]()+'\x0a'+h['getHours']()+':'+h[C(0x122)]()+':'+h['getSeconds']();}const G=['createdat',f(0x111)];if(G[f(0x11e)](v[f(0x117)]())&&_[f(0x11c)](u)&&u[f(0x131)]()[f(0x106)]===0xd)return M(Number(u));if(_[f(0x112)](u)){if(v!==f(0x120)&&v[f(0x11e)]('disabled'))return u?'x':'✔';return u?'✔':'x';}if(_[f(0x10c)](u))return util[f(0x11f)](u,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return u;}if(_[F(0x12b)](I)){I['length']===0x0&&console[F(0x116)](F(0x102)+z[F(0x117)]()+F(0x137));const u=I[F(0x11b)]((G,P)=>{const x=F,h={'i':P+y};return Object[x(0x134)](G)[x(0x121)](L=>{const o=x;(_[o(0x108)](g)||g[o(0x11e)](L[o(0x117)]()))&&_['set'](h,i(L),t(G[L],L));}),h;}),v=_[F(0x10a)](Object[F(0x134)]((u===null||u===void 0x0?void 0x0:u[0x0])||[]))['sort']((G,P)=>{const d=F,h=L=>L!=='i'?L!==d(0x125)?0x0:0x1:0x2;return h(P)-h(G);}),M={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!Z,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':v};console['log'](columnify(u,M));}else console[F(0x116)](I);}exports['printAsTable']=printAsTable;function consoleFormat(I){const n=a6w;if(!_[n(0x10c)](I))return I===null||I===void 0x0?void 0x0:I[n(0x131)]();return util[n(0x11f)](I,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports['consoleFormat']=consoleFormat;const handleJsonOutput=(I,z)=>{const A=a6w,g=I===A(0x101);if(g)console['log'](JSON[A(0x130)](z,null,'\x20'));};exports[a6w(0x12f)]=handleJsonOutput;function a6z(I,z){const g=a6I();return a6z=function(Z,y){Z=Z-0x100;let i=g[Z];return i;},a6z(I,z);}const handleYamlOutput=(I,z)=>{const T=a6w,g=I===T(0x129)||I===T(0x13b);if(g)console[T(0x116)](yaml['safeDump'](z));};exports[a6w(0x10d)]=handleYamlOutput;const handleFormattedOutput=(I,z)=>{const m=a6w,g=I===m(0x12a);if(g)console[m(0x116)](consoleFormat(z));};exports[a6w(0x133)]=handleFormattedOutput;const printResponse=(I,z)=>{const b=a6w;(0x0,exports[b(0x12f)])(I,z),(0x0,exports[b(0x10d)])(I,z),(0x0,exports[b(0x133)])(I,z);};exports['printResponse']=printResponse;
@@ -1 +1 @@
1
- 'use strict';const a7P=a7N;(function(v,N){const K=a7N,z=v();while(!![]){try{const Y=parseInt(K(0x142))/0x1+-parseInt(K(0x123))/0x2*(-parseInt(K(0x132))/0x3)+-parseInt(K(0x148))/0x4+-parseInt(K(0x134))/0x5*(-parseInt(K(0x137))/0x6)+parseInt(K(0x13b))/0x7*(-parseInt(K(0x130))/0x8)+-parseInt(K(0x126))/0x9*(-parseInt(K(0x140))/0xa)+-parseInt(K(0x129))/0xb*(parseInt(K(0x13c))/0xc);if(Y===N)break;else z['push'](z['shift']());}catch(W){z['push'](z['shift']());}}}(a7v,0x35577));var __importDefault=this&&this[a7P(0x138)]||function(v){return v&&v['__esModule']?v:{'default':v};};function a7v(){const v3=['849396XhOojr','max','symbols','default','toLocaleDateString','min','map','abs','58NPnKFl','offset','push','6957uEXIXw','colors','round','981750NuXUDJ','slice','h24','join','defineProperty','length','isArray','32WjDHTb','getAsciiChart','26133kyNSAZ','toFixed','1325LAloDg','black','height','402jrMMhP','__importDefault','format','downSampleData','169197JyuWED','36LtBJgn','unit','padding','toLocaleTimeString','1240rIVnfL','floor','429044XejxJb','2-digit','green','red','undefined','blue'];a7v=function(){return v3;};return a7v();}function a7N(v,N){const z=a7v();return a7N=function(Y,W){Y=Y-0x11d;let g=z[Y];return g;},a7N(v,N);}Object[a7P(0x12d)](exports,'__esModule',{'value':!![]}),exports[a7P(0x13a)]=exports[a7P(0x131)]=void 0x0;const chalk_1=__importDefault(require('chalk')),colored=(v,N)=>{const x=a7P;return N===undefined?v:chalk_1[x(0x11e)][N](v);},getAsciiChart=(v,N={})=>{const o=a7P,z=Array[o(0x12f)](v[0x0])?v:[v];let Y=typeof N['min']!=='undefined'?N[o(0x120)]:z[0x0][0x0],W=typeof N[o(0x149)]!==o(0x146)?N['max']:z[0x0][0x0];for(let C=0x0;C<z['length'];C++){for(let E=0x0;E<z[C][o(0x12e)];E++){Y=Math[o(0x120)](Y,z[C][E]),W=Math['max'](W,z[C][E]);}}let g=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],R=Math['abs'](W-Y),l=typeof N[o(0x124)]!==o(0x146)?N['offset']:0x3,J=typeof N[o(0x13e)]!==o(0x146)?N['padding']:'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',X=typeof N[o(0x136)]!==o(0x146)?N['height']:R,T=typeof N[o(0x127)]!==o(0x146)?N[o(0x127)]:[o(0x147),o(0x145),o(0x144),'grey',o(0x135)],r=R!==0x0?X/R:0x1,Q=Math['round'](Y*r),D=Math[o(0x128)](W*r),q=Math[o(0x122)](D-Q),U=0x0;for(let n=0x0;n<z[o(0x12e)];n++){U=Math['max'](U,z[n][o(0x12e)]);}U=U+l;let M=typeof N[o(0x11d)]!==o(0x146)?N[o(0x11d)]:g,S=N[o(0x139)]!==undefined?N[o(0x139)]:function(p){const v0=o;return(J+p[v0(0x133)](0x2)+N[v0(0x13d)])[v0(0x12a)](-J[v0(0x12e)]);},u=new Array(q+0x1);for(let p=0x0;p<=q;p++){u[p]=new Array(U);for(let s=0x0;s<U;s++){u[p][s]='\x20';}}for(let V=Q;V<=D;++V){const h=S(q>0x0?W-(V-Q)*R/q:V,V-Q);u[V-Q][Math['max'](l-h[o(0x12e)],0x0)]=h,u[V-Q][l-0x1]=V==0x0?M[0x0]:M[0x1];}for(let c=0x0;c<z['length'];c++){let A=T[c%T[o(0x12e)]],f=Math[o(0x128)](z[c][0x0]*r)-Q;u[q-f][l-0x1]=colored(M[0x0],A);for(let Z=0x0;Z<z[c][o(0x12e)]-0x1;Z++){let b=Math['round'](z[c][Z+0x0]*r)-Q,t=Math[o(0x128)](z[c][Z+0x1]*r)-Q;if(b==t)u[q-b][Z+l]=colored(M[0x4],A);else{u[q-t][Z+l]=colored(b>t?M[0x5]:M[0x6],A),u[q-b][Z+l]=colored(b>t?M[0x7]:M[0x8],A);let H=Math[o(0x120)](b,t),O=Math[o(0x149)](b,t);for(let B=H+0x1;B<O;B++){u[q-B][Z+l]=colored(M[0x9],A);}}}}const {startTs:m,endTs:a}=N;if(m||a){const w=F=>{const v1=o;if(!F)return'\x20\x20\x20';const e=F[v1(0x11f)](undefined,{'day':v1(0x143),'month':v1(0x143),'year':'2-digit'}),I=F[v1(0x13f)](undefined,{'hourCycle':v1(0x12b)});return e+'\x20'+I;},L=w(a),k=w(m),G=J['slice'](0x0,Math[o(0x149)](0x2,J[o(0x12e)]-k[o(0x12e)]/0x2+0x1)),d='\x20'['repeat'](Math[o(0x149)](U-(J[o(0x12e)]+L['length']/0x2),0x1));u[o(0x125)]([''+G+k+d+L]),u[o(0x125)]([]);}return u[o(0x121)](F=>F[o(0x12c)](''))[o(0x12c)]('\x0a');};exports['getAsciiChart']=getAsciiChart;const downSampleData=(v,N)=>{const v2=a7P,z=v[v2(0x12e)];if(N>=z||N===0x0)return v;const Y=[];let W=0x0;const g=(z-0x2)/(N-0x2);let y=0x0,R,l,J,X;Y[W++]=v[y];for(var T=0x0;T<N-0x2;T++){let M=0x0,S=0x0,u=Math['floor']((T+0x1)*g)+0x1,m=Math[v2(0x141)]((T+0x2)*g)+0x1;m=m<z?m:z;var r=m-u;for(;u<m;u++){M+=v[u][0x0],S+=v[u][0x1];}M/=r,S/=r;var Q=Math[v2(0x141)](T*g)+0x1,D=Math['floor']((T+0x1)*g)+0x1,q=v[y][0x0],U=v[y][0x1];l=J=-0x1;for(;Q<D;Q++){J=Math[v2(0x122)]((q-M)*(v[Q][0x1]-U)-(q-v[Q][0x0])*(S-U))*0.5,J>l&&(l=J,R=v[Q],X=Q);}Y[W++]=R,y=X;}return Y[W++]=v[z-0x1],Y;};exports['downSampleData']=downSampleData;
1
+ 'use strict';function a7I(){const I4=['push','toLocaleTimeString','unit','2-digit','undefined','height','\x20\x20\x20','min','__esModule','max','h24','160SlGLjh','join','toFixed','__importDefault','toLocaleDateString','slice','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','offset','6tcAHhl','4025048zuxMWF','469616CefMXK','floor','repeat','chalk','getAsciiChart','symbols','15875926TeaKjE','format','abs','padding','blue','red','black','24364WFsAMy','map','grey','201PGOhwO','downSampleData','green','143445gvGPFK','470294zVOMMV','colors','1hzotbO','round','2961ElctjK','length'];a7I=function(){return I4;};return a7I();}const a7c=a7z;function a7z(I,z){const g=a7I();return a7z=function(Z,y){Z=Z-0x1ad;let i=g[Z];return i;},a7z(I,z);}(function(I,z){const p=a7z,g=I();while(!![]){try{const Z=parseInt(p(0x1b3))/0x1*(-parseInt(p(0x1b1))/0x2)+parseInt(p(0x1ad))/0x3*(-parseInt(p(0x1d9))/0x4)+parseInt(p(0x1b0))/0x5*(parseInt(p(0x1ca))/0x6)+-parseInt(p(0x1cc))/0x7+-parseInt(p(0x1cb))/0x8+parseInt(p(0x1b5))/0x9*(-parseInt(p(0x1c2))/0xa)+parseInt(p(0x1d2))/0xb;if(Z===z)break;else g['push'](g['shift']());}catch(y){g['push'](g['shift']());}}}(a7I,0x3dd2c));var __importDefault=this&&this[a7c(0x1c5)]||function(I){const U=a7c;return I&&I[U(0x1bf)]?I:{'default':I};};Object['defineProperty'](exports,a7c(0x1bf),{'value':!![]}),exports['downSampleData']=exports[a7c(0x1d0)]=void 0x0;const chalk_1=__importDefault(require(a7c(0x1cf))),colored=(I,z)=>{return z===undefined?I:chalk_1['default'][z](I);},getAsciiChart=(I,z={})=>{const I0=a7c,g=Array['isArray'](I[0x0])?I:[I];let Z=typeof z[I0(0x1be)]!==I0(0x1bb)?z[I0(0x1be)]:g[0x0][0x0],t=typeof z[I0(0x1c0)]!==I0(0x1bb)?z[I0(0x1c0)]:g[0x0][0x0];for(let o=0x0;o<g['length'];o++){for(let d=0x0;d<g[o][I0(0x1b6)];d++){Z=Math[I0(0x1be)](Z,g[o][d]),t=Math[I0(0x1c0)](t,g[o][d]);}}let u=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],v=Math[I0(0x1d4)](t-Z),M=typeof z[I0(0x1c9)]!==I0(0x1bb)?z[I0(0x1c9)]:0x3,G=typeof z['padding']!==I0(0x1bb)?z[I0(0x1d5)]:I0(0x1c8),P=typeof z[I0(0x1bc)]!==I0(0x1bb)?z[I0(0x1bc)]:v,h=typeof z[I0(0x1b2)]!=='undefined'?z[I0(0x1b2)]:[I0(0x1d6),I0(0x1d7),I0(0x1af),I0(0x1db),I0(0x1d8)],L=v!==0x0?P/v:0x1,R=Math[I0(0x1b4)](Z*L),w=Math[I0(0x1b4)](t*L),Q=Math['abs'](w-R),K=0x0;for(let n=0x0;n<g[I0(0x1b6)];n++){K=Math[I0(0x1c0)](K,g[n][I0(0x1b6)]);}K=K+M;let J=typeof z['symbols']!==I0(0x1bb)?z[I0(0x1d1)]:u,F=z[I0(0x1d3)]!==undefined?z['format']:function(A){const I1=I0;return(G+A[I1(0x1c4)](0x2)+z[I1(0x1b9)])[I1(0x1c7)](-G[I1(0x1b6)]);},s=new Array(Q+0x1);for(let A=0x0;A<=Q;A++){s[A]=new Array(K);for(let T=0x0;T<K;T++){s[A][T]='\x20';}}for(let m=R;m<=w;++m){const b=F(Q>0x0?t-(m-R)*v/Q:m,m-R);s[m-R][Math['max'](M-b['length'],0x0)]=b,s[m-R][M-0x1]=m==0x0?J[0x0]:J[0x1];}for(let O=0x0;O<g[I0(0x1b6)];O++){let V=h[O%h['length']],k=Math[I0(0x1b4)](g[O][0x0]*L)-R;s[Q-k][M-0x1]=colored(J[0x0],V);for(let N=0x0;N<g[O][I0(0x1b6)]-0x1;N++){let a=Math[I0(0x1b4)](g[O][N+0x0]*L)-R,D=Math[I0(0x1b4)](g[O][N+0x1]*L)-R;if(a==D)s[Q-a][N+M]=colored(J[0x4],V);else{s[Q-D][N+M]=colored(a>D?J[0x5]:J[0x6],V),s[Q-a][N+M]=colored(a>D?J[0x7]:J[0x8],V);let H=Math[I0(0x1be)](a,D),Y=Math['max'](a,D);for(let r=H+0x1;r<Y;r++){s[Q-r][N+M]=colored(J[0x9],V);}}}}const {startTs:C,endTs:f}=z;if(C||f){const X=E=>{const I2=I0;if(!E)return I2(0x1bd);const W=E[I2(0x1c6)](undefined,{'day':I2(0x1ba),'month':I2(0x1ba),'year':I2(0x1ba)}),B=E[I2(0x1b8)](undefined,{'hourCycle':I2(0x1c1)});return W+'\x20'+B;},l=X(f),S=X(C),e=G[I0(0x1c7)](0x0,Math[I0(0x1c0)](0x2,G[I0(0x1b6)]-S[I0(0x1b6)]/0x2+0x1)),q='\x20'[I0(0x1ce)](Math['max'](K-(G['length']+l['length']/0x2),0x1));s[I0(0x1b7)]([''+e+S+q+l]),s[I0(0x1b7)]([]);}return s[I0(0x1da)](E=>E[I0(0x1c3)](''))[I0(0x1c3)]('\x0a');};exports[a7c(0x1d0)]=getAsciiChart;const downSampleData=(I,z)=>{const I3=a7c,g=I[I3(0x1b6)];if(z>=g||z===0x0)return I;const Z=[];let y=0x0;const t=(g-0x2)/(z-0x2);let u=0x0,v,M,G,P;Z[y++]=I[u];for(var h=0x0;h<z-0x2;h++){let J=0x0,j=0x0,F=Math[I3(0x1cd)]((h+0x1)*t)+0x1,s=Math[I3(0x1cd)]((h+0x2)*t)+0x1;s=s<g?s:g;var L=s-F;for(;F<s;F++){J+=I[F][0x0],j+=I[F][0x1];}J/=L,j/=L;var R=Math[I3(0x1cd)](h*t)+0x1,w=Math[I3(0x1cd)]((h+0x1)*t)+0x1,Q=I[u][0x0],K=I[u][0x1];M=G=-0x1;for(;R<w;R++){G=Math[I3(0x1d4)]((Q-J)*(I[R][0x1]-K)-(Q-I[R][0x0])*(j-K))*0.5,G>M&&(M=G,v=I[R],P=R);}Z[y++]=v,u=P;}return Z[y++]=I[g-0x1],Z;};exports[a7c(0x1ae)]=downSampleData;
@@ -1 +1 @@
1
- 'use strict';const a8D=a8N;(function(v,N){const Q=a8N,z=v();while(!![]){try{const Y=-parseInt(Q(0x212))/0x1+-parseInt(Q(0x19b))/0x2+-parseInt(Q(0x1d5))/0x3*(parseInt(Q(0x199))/0x4)+-parseInt(Q(0x25a))/0x5*(parseInt(Q(0x221))/0x6)+parseInt(Q(0x176))/0x7+parseInt(Q(0x1c1))/0x8+parseInt(Q(0x1f7))/0x9;if(Y===N)break;else z['push'](z['shift']());}catch(W){z['push'](z['shift']());}}}(a8v,0x2feaf));function a8v(){const vu=['get','type','token','registries','find','job\x20runs','done','Enter\x20the\x20','retry','tokenPrompt','isUndefined','project:\x20\x27','concat','askForLogSink','Context\x20with\x20name\x20\x27','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','domains','./utils','pipelines','blueBright','DynamicReloadPaginationPrompt','greenBright','object','found','2430776hjmhhG','Choose\x20the\x20login\x20token:','integer','No,\x20repeat','askForSecret','./pagination/inquirer-pagination-prompt','fullName','push','then','apiClient','confirmationPrompt','apply','isEmpty','logSinks','askConfirm','__awaiter','askForAddon','isBoolean','yml','toUpperCase','474999baQQNm','required','job','yellowBright','next','domain\x20(','askForTemplateRun','addons','askForProjectScopedResourcePaginated','minLength','\x20to\x20use:','pop','askForJob','trim','\x20(startedAt:\x20','subdomains','maximum','templateRuns','Writing\x20configuration\x20failed:\x20','\x20type?','deleteWarningPrompt','list','bold','join','unset','prompt','value','No,\x20but\x20save\x20as\x20file','retrievePayloadViaInteractiveCli','job\x20builds','log\x20sink','minimum','askForCredentials','test','4744746QJFIrS','pagination','isObject','map','startedAt',',\x20supported\x20types:\x20[json|yaml|yml]','pipeline','\x20(full\x20domain:\x20','chalk','.*\x5c.(json|yaml|yml)$','red','charAt','call','backups','Configuration\x20file\x20written\x20to\x20','getQuestionString','getPathString','askGeneric','getCurrentProjectName','getType','propToType','warning','for\x20this\x20','askForJobRun','credentials','__importDefault','__importStar','187492TiaEME','tmpCmdPath','Go\x20to\x20editor','Yes,\x20send','configurable','input','confirmation','password','repeat','filter','template\x20run','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','body','reset','Template\x20id\x20not\x20provided.','2436norDNQ','setPathVars','create','Aborted.','whiteBright','askForProjectScopedResource','stringify','array','throw','name','ABORT','js-yaml','search-list','choice','json','boolean','properties','writable','isValidJSON','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','YES','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','askForDomain','resultCache','editedResult','REPEAT','volume','keys','inquirer-search-list','__setModuleDefault','don\x27t\x20change','pathVars','Choose\x20the\x20','editor','InquirerHelper','What\x27s\x20the\x20','oneOf','defineProperty','getInnerType','\x20characters','builds','set','jobs','__createBinding','saveFile','data','success','inquirer','addon:\x20\x27','askForService','cursor','safeLoad','No,\x20edit','ask','askForResource','services','example','1535VYYTUN','askForResourcePaginated','Should\x20it\x20be','__esModule','No\x20builds\x20found','a\x20Northflank\x20resource','\x20in\x20','\x20(completedAt:\x20','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','maxLength','addEntry','fileName','Something\x20unexpected\x20happened.','isArray','defaultPaginationPageSize','rawObject','toString','1162308rkYWSj','askForProject','\x20characters,\x20is\x20','editPayload','askArrayEntry','askForTemplate','\x20and\x20it\x20','volumes','runs','subdomain','override','createdAt','SAVE','blue','description','service','project','lodash','contextProvider','pagination-prompt','confirm','has','safeDump','job\x20build','askForBuild','Please\x20confirm\x20following\x20configuration:\x0a','default','length','Do\x20you\x20want\x20to\x20add\x20more','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','includes','this\x20option\x20is\x20required,\x20please\x20answer','job:\x20\x27','not\x20completed','loginPrompt','4ompeJO','split','660694CcEiqT','assign','items','to\x20use:','green','string','EDIT','domain','grey','template','fetchResourceList','pattern','Do\x20you\x20want\x20to\x20add','isNaN'];a8v=function(){return vu;};return a8v();}function a8N(v,N){const z=a8v();return a8N=function(Y,W){Y=Y-0x172;let g=z[Y];return g;},a8N(v,N);}var __createBinding=this&&this[a8D(0x24c)]||(Object[a8D(0x223)]?function(v,N,z,Y){const q=a8D;if(Y===undefined)Y=z;var W=Object['getOwnPropertyDescriptor'](N,z);(!W||('get'in W?!N['__esModule']:W[q(0x232)]||W[q(0x216)]))&&(W={'enumerable':!![],'get':function(){return N[z];}}),Object[q(0x246)](v,Y,W);}:function(v,N,z,Y){if(Y===undefined)Y=z;v[Y]=N[z];}),__setModuleDefault=this&&this[a8D(0x23e)]||(Object[a8D(0x223)]?function(N,z){Object['defineProperty'](N,'default',{'enumerable':!![],'value':z});}:function(N,z){const U=a8D;N[U(0x190)]=z;}),__importStar=this&&this[a8D(0x211)]||function(v){const M=a8D;if(v&&v['__esModule'])return v;var N={};if(v!=null){for(var z in v)if(z!==M(0x190)&&Object['prototype']['hasOwnProperty'][M(0x203)](v,z))__createBinding(N,v,z);}return __setModuleDefault(N,v),N;},__awaiter=this&&this[a8D(0x1d0)]||function(v,N,z,Y){function W(g){return g instanceof z?g:new z(function(y){y(g);});}return new(z||(z=Promise))(function(g,y){const m=a8N;function R(X){const S=a8N;try{J(Y[S(0x1d9)](X));}catch(T){y(T);}}function l(X){const u=a8N;try{J(Y[u(0x229)](X));}catch(T){y(T);}}function J(X){const i=a8N;X[i(0x1af)]?g(X[i(0x1ef)]):W(X['value'])[i(0x1c9)](R,l);}J((Y=Y[m(0x1cc)](v,N||[]))[m(0x1d9)]());});},__importDefault=this&&this[a8D(0x210)]||function(v){return v&&v['__esModule']?v:{'default':v};};Object[a8D(0x246)](exports,a8D(0x25d),{'value':!![]}),exports[a8D(0x243)]=void 0x0;const _=__importStar(require(a8D(0x187))),chalk_1=__importDefault(require(a8D(0x1ff))),fs=__importStar(require('fs')),utils_1=require(a8D(0x1ba)),api_helpers_1=require('./api-helpers'),inquirer_pagination_prompt_1=require(a8D(0x1c6)),inquirer=require(a8D(0x250)),inquirerSearchList=require(a8D(0x23d)),yaml=require(a8D(0x22c));var ConfirmChoices;(function(v){const a=a8D;v[a(0x235)]=a(0x215),v[a(0x23a)]=a(0x1c4),v['EDIT']=a(0x255),v[a(0x182)]=a(0x1f0),v[a(0x22b)]='No,\x20abort';}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(v){const C=a8D;this[C(0x1ca)]=v,this[C(0x173)]=0x32,this[C(0x179)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const E=C,{editedResult:z}=yield inquirer['prompt']([{'type':E(0x242),'name':E(0x239),'message':E(0x214),'default':yaml[E(0x18c)](N)}]);return yaml[E(0x254)](z);}),this[C(0x24d)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const n=C,z=y=>'Unexpected\x20file\x20type:\x20'+y+n(0x1fc);function Y(){return __awaiter(this,void 0x0,void 0x0,function*(){const p=a8N;return inquirer['prompt']([{'type':'input','name':p(0x265),'message':'Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','validate':y=>new RegExp(p(0x200))[p(0x1f6)](y)?!![]:z(y)}]);});}const {fileName:W}=yield Y(),g=W[n(0x175)]()[n(0x19a)]('.')[n(0x1e0)]();try{switch(g){case n(0x22f):(0x0,utils_1[n(0x24f)])(n(0x205)+W);return fs['writeFileSync'](W,JSON[n(0x227)](N,null,'\x20\x20'));case'yaml':case n(0x1d3):(0x0,utils_1[n(0x24f)])(n(0x205)+W);return fs['writeFileSync'](W,yaml[n(0x18c)](N));default:(0x0,utils_1[n(0x20c)])(z(g));}}catch(y){(0x0,utils_1[n(0x20c)])(n(0x1e7)+y['message']);}return undefined;}),this[C(0x21b)]=(N,z)=>Y=>{const s=C,W=typeof Y===s(0x1a0)?Y[s(0x1e2)]():Y;return z===![]&&W==='don\x27t\x20change'?'':W;},this['validate']=(N,z,Y)=>W=>{const V=C,g=[];if(W===''||W==='don\x27t\x20change'){if(z!==![])g[V(0x1c8)](V(0x195));else return!![];}N['type']===V(0x1a0)&&!_['isUndefined'](N[V(0x1a6)])&&g[V(0x1c8)](new RegExp(N[V(0x1a6)])[V(0x1f6)](W)?!![]:'doesn\x27t\x20match\x20pattern\x20\x27'+N[V(0x1a6)]+'\x27');N[V(0x1aa)]===V(0x1a0)&&!_[V(0x1b3)](N['minLength'])&&g['push'](W['length']>=N[V(0x1de)]?!![]:'must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20'+N['minLength']+V(0x178)+W[V(0x191)]+V(0x248));N[V(0x1aa)]===V(0x1a0)&&!_[V(0x1b3)](N[V(0x263)])&&g['push'](W[V(0x191)]<=N[V(0x263)]?!![]:V(0x234)+N[V(0x263)]+'\x20characters,\x20is\x20'+W[V(0x191)]+V(0x248));Y&&Number[V(0x1a8)](parseInt(W,0xa))&&g[V(0x1c8)]('must\x20be\x20a\x20number,\x20is\x20'+W);N[V(0x1aa)]===V(0x1c3)&&!_[V(0x1b3)](N[V(0x1f4)])&&g['push'](W>=N[V(0x1f4)]?!![]:V(0x21d)+N[V(0x1f4)]);N[V(0x1aa)]==='integer'&&!_[V(0x1b3)](N[V(0x1e5)])&&g['push'](W<=N[V(0x1e5)]?!![]:'must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20'+N[V(0x1e5)]);if(N[V(0x1aa)]==='rawObject'){const l=(0x0,utils_1[V(0x233)])(W);g[V(0x1c8)](l===![]||_[V(0x1cd)](l)?V(0x236):!![]);}const y=g[V(0x21b)](J=>J!==!![]),R=(N===null||N===void 0x0?void 0x0:N[V(0x259)])?'\x0a'+chalk_1[V(0x190)][V(0x201)]('>>')+'\x20Example:\x20'+chalk_1[V(0x190)][V(0x225)](JSON[V(0x227)](N[V(0x259)])):'';return y['length']>0x0?y[V(0x1ec)](chalk_1[V(0x190)]['underline'](V(0x17c)))+R:!![];},this[C(0x207)]=(N,z,Y)=>{const A=C,W=N[N['length']-0x1];function g(){const h=a8N;return N['slice'](0x0,-0x1)[h(0x1fa)](l=>l[h(0x202)](0x0)[h(0x1d4)]()+l['slice'](0x1))[h(0x1ec)]('>');}const y=N['length']>0x1?chalk_1[A(0x190)]['bgGrey'][A(0x225)](g())+':\x20':'',R=Y?'\x20('+chalk_1[A(0x190)][A(0x183)](Y)+')':'';return chalk_1[A(0x190)][A(0x21f)](''+y+z+'\x20'+chalk_1[A(0x190)][A(0x1eb)][A(0x1be)](W)+R+'?');},this['askForResource']=(N,z,Y)=>__awaiter(this,void 0x0,void 0x0,function*(){const f=C;if(z['length']<0x1){const y=Y?f(0x20d)+Y:f(0x1c0);throw new Error('No\x20'+N+'\x20'+y+'.');}const W=f(0x241)+N+f(0x1df),g=z[f(0x191)]>0x4?f(0x22d):'list';return(yield inquirer['prompt']([{'type':g,'name':f(0x22a),'message':W,'choices':z}]))[f(0x22a)];}),this[C(0x25b)]=(N,z,Y)=>__awaiter(this,void 0x0,void 0x0,function*(){const Z=C,{elements:W,nextCursor:g}=yield z();if(W[Z(0x191)]<0x1){const l=Y?Z(0x20d)+Y:Z(0x1c0);throw new Error('No\x20'+N+'\x20'+l+'.');}const y='Choose\x20the\x20'+N+Z(0x1df);if(g!==undefined){const J=({nextPageCursor:X})=>__awaiter(this,void 0x0,void 0x0,function*(){const T=yield z(X);return{'elements':T['elements'],'nextPageCursor':T['nextCursor']};});return(yield inquirer['prompt']([{'type':Z(0x189),'name':'name','message':y,'choices':W,'nextPageCursor':g,'loadMore':J}]))['name'];}const R=W['length']>0x4?'search-list':Z(0x1ea);return(yield inquirer['prompt']([{'type':R,'name':Z(0x22a),'message':y,'choices':W}]))[Z(0x22a)];}),this[C(0x208)]=(N,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const b=C,Y=''+(z?'('+chalk_1['default'][b(0x183)](z)+')\x20':''),W=b(0x1b0)+chalk_1[b(0x190)]['green'](N)+'\x20'+Y+b(0x19e),g=this['validate']({'type':b(0x1a0),'required':!![]});return(yield inquirer['prompt']([{'type':b(0x217),'name':b(0x22a),'message':W,'validate':g}]))[b(0x22a)];}),this[C(0x1cf)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const t=C;return(yield inquirer[t(0x1ee)]([{'type':t(0x18a),'name':t(0x22a),'message':N,'default':!![]}]))['name'];}),this[C(0x252)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const O=C,z=Y=>W=>__awaiter(this,void 0x0,void 0x0,function*(){const H=a8N;var g;const y=yield this[H(0x1ca)]['list'][H(0x258)]({'parameters':{'projectId':Y},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':W}}),R=y['data'][H(0x258)]['map'](l=>l['id']);return{'elements':R,'nextCursor':(g=y['pagination'])===null||g===void 0x0?void 0x0:g['cursor']};});return this[O(0x1dd)](O(0x185),z,N);}),this[C(0x17b)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w=C,N=z=>__awaiter(this,void 0x0,void 0x0,function*(){const B=a8N;var Y;const W=yield this[B(0x1ca)]['list']['templates']({'options':{'per_page':this[B(0x173)],'cursor':z}}),g=W['data']['templates']['map'](y=>y['id']);return{'elements':g,'nextCursor':(Y=W[B(0x1f8)])===null||Y===void 0x0?void 0x0:Y['cursor']};});return this[w(0x25b)](w(0x1a4),N);}),this[C(0x1db)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const L=C;if(_[L(0x1b3)](N))throw new Error(L(0x220));const z=Y=>__awaiter(this,void 0x0,void 0x0,function*(){const j=L;var W;let g=this[j(0x173)];const y=yield this[j(0x1ca)][j(0x1ea)][j(0x1e6)]({'parameters':{'templateId':N},'options':{'per_page':g,'cursor':Y}}),R=y[j(0x24e)]['templateRuns']['map'](l=>l['id']+j(0x1e3)+l[j(0x181)]+')');return{'elements':R,'nextCursor':(W=y['pagination'])===null||W===void 0x0?void 0x0:W[j(0x253)]};});return this[L(0x25b)](L(0x21c),z)['then'](Y=>Y[L(0x19a)]('\x20')[0x0]);}),this[C(0x1b6)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const G=C,N=z=>__awaiter(this,void 0x0,void 0x0,function*(){const k=a8N;var Y;let W=this[k(0x173)];const g=yield this[k(0x1ca)]['list'][k(0x1ce)]({'options':{'per_page':W,'cursor':z}}),y=g[k(0x24e)][k(0x1ce)][k(0x1fa)](R=>R['id']);return{'elements':y,'nextCursor':(Y=g[k(0x1f8)])===null||Y===void 0x0?void 0x0:Y[k(0x253)]};});return this[G(0x25b)](G(0x1f3),N);}),this['askForPipeline']=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const F=C,z=Y=>W=>__awaiter(this,void 0x0,void 0x0,function*(){const d=a8N;var g;const y=yield this['apiClient']['list'][d(0x1bb)]({'parameters':{'projectId':Y},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':W}}),R=y['data'][d(0x1bb)][d(0x1fa)](l=>l['id']);return{'elements':R,'nextCursor':(g=y['pagination'])===null||g===void 0x0?void 0x0:g[d(0x253)]};});return this[F(0x1dd)](F(0x1fd),z,N);}),this[C(0x1e1)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const z=Y=>W=>__awaiter(this,void 0x0,void 0x0,function*(){const e=a8N;var g;const y=yield this[e(0x1ca)][e(0x1ea)]['jobs']({'parameters':{'projectId':Y},'options':{'per_page':this[e(0x173)],'cursor':W}}),R=y[e(0x24e)][e(0x24b)][e(0x1fa)](l=>l['id']);return{'elements':R,'nextCursor':(g=y[e(0x1f8)])===null||g===void 0x0?void 0x0:g['cursor']};});return this['askForProjectScopedResourcePaginated']('job',z,N);}),this[C(0x20e)]=(N,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const K=C,Y=W=>g=>__awaiter(this,void 0x0,void 0x0,function*(){const I=a8N;var y;const R=yield this[I(0x1ca)][I(0x1a9)]['job'][I(0x17e)]({'parameters':{'projectId':W,'jobId':N},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':g}}),l=R[I(0x24e)][I(0x17e)]['map'](J=>J['id']+I(0x1e3)+J[I(0x1fb)]+')');return{'elements':l,'nextCursor':(y=R[I(0x1f8)])===null||y===void 0x0?void 0x0:y['cursor']};});return this[K(0x1dd)](K(0x1ae),Y,z,'job:\x20\x27'+N+'\x27')[K(0x1c9)](W=>W[K(0x19a)]('\x20')[0x0]);}),this[C(0x18e)]=(N,z,Y)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x=C;if(Y!==undefined){const W=g=>y=>__awaiter(this,void 0x0,void 0x0,function*(){const P=a8N;var R;const l=yield this[P(0x1ca)][P(0x1a9)][P(0x1d7)][P(0x249)]({'parameters':{'projectId':g,'jobId':Y},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':y}});return{'elements':l[P(0x24e)][P(0x249)][P(0x1fa)](J=>J['id']+'\x20(startedAt:\x20'+J[P(0x181)]+')'),'nextCursor':(R=l[P(0x1f8)])===null||R===void 0x0?void 0x0:R[P(0x253)]};});return this[x(0x1dd)](x(0x1f2),W,N,x(0x196)+Y+'\x27')[x(0x1c9)](g=>g['split']('\x20')[0x0]);}if(z!==undefined){const g=y=>R=>__awaiter(this,void 0x0,void 0x0,function*(){const o=x;var l;const J=yield this[o(0x1ca)][o(0x1a9)][o(0x185)][o(0x249)]({'parameters':{'projectId':y,'serviceId':z},'options':{'per_page':this[o(0x173)],'cursor':R}});return{'elements':J[o(0x24e)][o(0x249)][o(0x1fa)](X=>X['id']+o(0x1e3)+X[o(0x181)]+')'),'nextCursor':(l=J['pagination'])===null||l===void 0x0?void 0x0:l[o(0x253)]};});return this[x(0x1dd)](x(0x18d),g,N,'service:\x20\x27'+Y+'\x27')[x(0x1c9)](y=>y[x(0x19a)]('\x20')[0x0]);}throw new Error(x(0x25e));}),this[C(0x1d1)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const v1=C,z=Y=>W=>__awaiter(this,void 0x0,void 0x0,function*(){const v0=a8N;var g;const y=yield this[v0(0x1ca)][v0(0x1ea)]['addons']({'parameters':{'projectId':Y},'options':{'per_page':this[v0(0x173)],'cursor':W}});return{'elements':y[v0(0x24e)][v0(0x1dc)]['map'](R=>R['id']),'nextCursor':(g=y[v0(0x1f8)])===null||g===void 0x0?void 0x0:g[v0(0x253)]};});return this[v1(0x1dd)]('addon',z,N);}),this['askForAddonBackup']=(N,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const v3=C,Y=W=>g=>__awaiter(this,void 0x0,void 0x0,function*(){const v2=a8N;var y;const R=yield this[v2(0x1ca)]['get']['addon'][v2(0x204)]({'parameters':{'projectId':W,'addonId':z},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':g}});return{'elements':R['data'][v2(0x204)]['map'](l=>l['id']+v2(0x261)+(l['completedAt']||v2(0x197))+')'),'nextCursor':(y=R[v2(0x1f8)])===null||y===void 0x0?void 0x0:y[v2(0x253)]};});return this[v3(0x1dd)](v3(0x204),Y,N,v3(0x251)+z+'\x27')[v3(0x1c9)](W=>W[v3(0x19a)]('\x20')[0x0]);}),this['askForVolume']=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const v5=C,z=Y=>__awaiter(this,void 0x0,void 0x0,function*(){const v4=a8N;return(yield this[v4(0x1ca)][v4(0x1ea)][v4(0x17d)]({'parameters':{'projectId':Y}}))[v4(0x24e)]['map'](W=>W['id']);});return this[v5(0x226)](v5(0x23b),z,N);}),this[C(0x1c5)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const v7=C,z=Y=>W=>__awaiter(this,void 0x0,void 0x0,function*(){const v6=a8N;var g;const y=yield this[v6(0x1ca)][v6(0x1ea)]['secrets']({'parameters':{'projectId':Y},'options':{'per_page':this[v6(0x173)],'cursor':W}});return{'elements':y['data']['secrets']['map'](R=>R['id']),'nextCursor':(g=y[v6(0x1f8)])===null||g===void 0x0?void 0x0:g[v6(0x253)]};});return this[v7(0x1dd)]('secret',z,N);}),this['askForSubdomain']=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const v8=C,z=yield this['apiClient'][v8(0x1a9)][v8(0x1a2)]({'parameters':{'domain':N}}),Y=z[v8(0x24e)][v8(0x1e4)][v8(0x1fa)](g=>g[v8(0x22a)]+v8(0x1fe)+g[v8(0x1c7)]+')'),W=v8(0x1da)+N+')';return this[v8(0x257)](v8(0x17f),Y,W)[v8(0x1c9)](g=>g[v8(0x19a)]('\x20')[0x0]);}),this[C(0x1e9)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const v9=C;return(yield inquirer[v9(0x1ee)]([{'type':'confirm','name':v9(0x218),'message':chalk_1['default'][v9(0x1d8)](v9(0x262)+(N||v9(0x25f))+'.\x20This\x20is\x20irreversible.\x20Please\x20confirm!'),'default':![]}]))[v9(0x218)];}),this[C(0x198)]=(N,z)=>__awaiter(this,void 0x0,void 0x0,function*(){const vv=C;_[vv(0x1b3)](N[vv(0x22a)])&&(z[vv(0x191)]<=0x0?_[vv(0x24a)](N,vv(0x22a),vv(0x190)):yield(0x0,utils_1[vv(0x1b1)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const vN=vv,{name:Y}=yield inquirer[vN(0x1ee)]([{'type':'input','name':vN(0x22a),'message':'Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','default':'main-context'}]);if(!N[vN(0x180)]&&z[vN(0x1ad)](W=>W[vN(0x22a)]===Y)){const {c:W}=yield inquirer[vN(0x1ee)]([{'type':vN(0x18a),'name':'c','message':vN(0x1b7)+Y+vN(0x1b8),'default':![]}]);if(W===![])throw new Error('Context\x20name\x20already\x20exists.');_[vN(0x24a)](N,vN(0x180),!![]);}_[vN(0x24a)](N,vN(0x22a),Y);})));if(_[vv(0x1b3)](N['token'])){const Y=yield this[vv(0x1b2)]();_[vv(0x24a)](N,vv(0x1ab),Y);}return N;}),this[C(0x1b2)]=()=>__awaiter(this,void 0x0,void 0x0,function*(){const vz=C,{token:N}=yield inquirer[vz(0x1ee)]([{'type':vz(0x219),'name':vz(0x1ab),'mask':'*','message':vz(0x1c2)}]);return N;}),inquirer['registerPrompt'](C(0x22d),inquirerSearchList),inquirer['registerPrompt']('pagination-prompt',inquirer_pagination_prompt_1[C(0x1bd)]);}[a8D(0x1cb)](v,N){return __awaiter(this,void 0x0,void 0x0,function*(){const vY=a8N,z=yaml[vY(0x18c)](v),Y=_['max'](z[vY(0x19a)]('\x0a')[vY(0x1fa)](y=>y['length'])),W=chalk_1[vY(0x190)][vY(0x1a3)]('-'[vY(0x21a)](Y)+'\x0a'),{confirm:g}=yield inquirer[vY(0x1ee)]([{'type':vY(0x1ea),'name':vY(0x18a),'message':''+chalk_1[vY(0x190)]['bold'][vY(0x19f)](vY(0x18f))+W+chalk_1[vY(0x190)][vY(0x1bc)](z)+W,'choices':Object['values'](ConfirmChoices)}]);switch(g){case ConfirmChoices[vY(0x235)]:return v;case ConfirmChoices[vY(0x22b)]:throw new Error(vY(0x224));case ConfirmChoices[vY(0x23a)]:return this['retrievePayloadViaInteractiveCli'](N);case ConfirmChoices[vY(0x1a1)]:return this[vY(0x1cb)](yield this[vY(0x179)](v),N);case ConfirmChoices['SAVE']:yield this['saveFile'](v);return this['confirmationPrompt'](v,N);default:throw new Error(vY(0x266));}});}[a8D(0x1f1)](v,N){return __awaiter(this,void 0x0,void 0x0,function*(){const vW=a8N;if((N===null||N===void 0x0?void 0x0:N[vW(0x238)])!==undefined)this['resultCache']=N===null||N===void 0x0?void 0x0:N[vW(0x238)];this[vW(0x213)]=N===null||N===void 0x0?void 0x0:N['cmdPath'];const z={};return yield this[vW(0x20b)]([],v['opt'][vW(0x21e)],z),this[vW(0x238)]=z,yield this[vW(0x1cb)](z,v);});}[a8D(0x20b)](v,N,z,Y){return __awaiter(this,void 0x0,void 0x0,function*(){const vg=a8N;let W;if(N[vg(0x245)]&&!_[vg(0x18b)](N,'properties')){if(N[vg(0x245)][vg(0x191)]>0x1){const {choice:g}=yield inquirer['prompt']([{'type':'list','name':vg(0x22e),'message':vg(0x244)+(v[v['length']-0x1]||'')+vg(0x1e8),'choices':N[vg(0x245)]['map'](y=>{const vy=vg;var R;return(R=y[vy(0x184)])!==null&&R!==void 0x0?R:'??';})}]);W=yield this[vg(0x20a)](v,N[vg(0x245)][vg(0x1ad)](y=>y[vg(0x184)]===g),z,Y);}else{const y=N[vg(0x245)][0x0];_['set'](y,vg(0x184),N[vg(0x184)]),W=yield this[vg(0x20a)](v,y,z,Y);}W={};}else W=yield this[vg(0x20a)](v,N,z,Y);return W;});}[a8D(0x247)](v,N,z,Y){var W;return __awaiter(this,void 0x0,void 0x0,function*(){const vR=a8N;if(Y===![]){const {addEntry:R}=yield inquirer[vR(0x1ee)]([{'type':vR(0x18a),'name':vR(0x264),'message':this[vR(0x207)](N,vR(0x1a7),v===null||v===void 0x0?void 0x0:v[vR(0x184)]),'default':![]}]);if(!R)return z;}const g=Object[vR(0x23c)]((W=v===null||v===void 0x0?void 0x0:v['properties'])!==null&&W!==void 0x0?W:[]),y=v[vR(0x1d6)]||[];if(g['length']>0x0)for(const l of g){const J=N[vR(0x1b5)](l);if(N[vR(0x191)]>0x0&&!_[vR(0x18b)](z,N[vR(0x1ec)]('.')))_[vR(0x24a)](z,N[vR(0x1ec)]('.'),{});yield this[vR(0x20b)](J,v[vR(0x231)][l],z,y[vR(0x194)](l));}else yield this[vR(0x20a)](N,Object[vR(0x19c)](Object[vR(0x19c)]({},v),{'type':vR(0x174)}),z,Y);return z;});}[a8D(0x17a)](v,N,z,Y){return __awaiter(this,void 0x0,void 0x0,function*(){const vl=a8N;if(N&&z)return!![];const W=N?vl(0x1a7):vl(0x192),{addEntry:g}=yield inquirer[vl(0x1ee)]([{'type':vl(0x18a),'name':'addEntry','message':this[vl(0x207)](v,W,N?Y:undefined),'default':![]}]);return g;});}['getType'](v,N,z,Y){return __awaiter(this,void 0x0,void 0x0,function*(){const vJ=a8N;let W;const g=v['join']('.');switch(N===null||N===void 0x0?void 0x0:N[vJ(0x1aa)]){case vJ(0x228):{let y=!![];while(yield this[vJ(0x17a)](v,y,Y,N===null||N===void 0x0?void 0x0:N[vJ(0x184)])){const R=_[vJ(0x1a9)](z,g);_[vJ(0x1ed)](z,g),yield this[vJ(0x20a)](v,N[vJ(0x19d)],z);const l=_[vJ(0x1a9)](z,g);!_[vJ(0x172)](R)?_['set'](z,g,[l]):(R['push'](l),_[vJ(0x24a)](z,g,R)),y=![];}return W||[];}case vJ(0x1bf):{return W=yield this['getInnerType'](N,v,z,Y),W;}case'rawObject':W=(0x0,utils_1['isValidJSON'])(yield this['ask'](v,N,Y))||undefined;break;case'string':case vJ(0x230):case'integer':default:W=yield this[vJ(0x256)](v,N,Y,z);break;}return!_[vJ(0x1b3)](W)&&_[vJ(0x24a)](z,g,W),W;});}[a8D(0x256)](v,N,z,Y){var W;return __awaiter(this,void 0x0,void 0x0,function*(){const vX=a8N,g=v[v['length']-0x1],{defaultValue:defaultValue=(W=N===null||N===void 0x0?void 0x0:N['example'])!==null&&W!==void 0x0?W:N===null||N===void 0x0?void 0x0:N[vX(0x190)],choices:choices=N===null||N===void 0x0?void 0x0:N['enum'],pagination:y}=yield(0x0,api_helpers_1[vX(0x1a5)])(g,this[vX(0x1ca)],this[vX(0x213)],Y,this[vX(0x240)],v);let R=vX(0x217);if(!_[vX(0x1b3)](choices)&&choices[vX(0x191)]>0x0){if(y!==undefined&&y['nextPageCursor']!==undefined)R=vX(0x189);else choices[vX(0x191)]>0x4&&typeof choices[0x0]===vX(0x1a0)?R=vX(0x22d):R='list';}else{if((N===null||N===void 0x0?void 0x0:N[vX(0x1aa)])===vX(0x230))R=vX(0x18a);else{if((N===null||N===void 0x0?void 0x0:N[vX(0x1aa)])===vX(0x1c3))R=vX(0x217);else(N===null||N===void 0x0?void 0x0:N['type'])===vX(0x174)&&(R=vX(0x242));}}let l=z!==![]?!_[vX(0x1f9)](defaultValue)?defaultValue:JSON['stringify'](defaultValue):_[vX(0x1d2)](defaultValue)?defaultValue:'don\x27t\x20change';if(choices)l=l[vX(0x175)]();_[vX(0x18b)](this[vX(0x238)],v[vX(0x1ec)]('.'))&&(l=this[vX(0x238)][v[vX(0x1ec)]('.')]);const J=choices&&z===![]?[vX(0x23f),...choices]:choices,X=(N===null||N===void 0x0?void 0x0:N[vX(0x1aa)])===vX(0x1c3),T=Object[vX(0x19c)]({'type':R,'name':'id','message':this[vX(0x206)](v,N),'choices':J,'default':l,'filter':this[vX(0x21b)](R,z),'validate':this['validate'](N,z,X)},y),r=(yield inquirer[vX(0x1ee)]([T]))['id'];if(r===vX(0x23f)||r==='')return undefined;if(X)return parseInt(r,0xa);return r;});}['getQuestionString'](v,N){const vT=a8D,z=(N===null||N===void 0x0?void 0x0:N[vT(0x1aa)])!==vT(0x230)?'What\x20do\x20you\x20want\x20to\x20use\x20as':vT(0x25c);return this[vT(0x207)](v,z,N===null||N===void 0x0?void 0x0:N['description']);}[a8D(0x177)](){return __awaiter(this,void 0x0,void 0x0,function*(){const vQ=a8N,v=N=>__awaiter(this,void 0x0,void 0x0,function*(){const vr=a8N;var z;const Y=yield this['apiClient']['list']['projects']({'options':{'per_page':this[vr(0x173)],'cursor':N}}),W=Y[vr(0x24e)]['projects'][vr(0x1fa)](g=>g['id']);return{'elements':W,'nextCursor':(z=Y[vr(0x1f8)])===null||z===void 0x0?void 0x0:z[vr(0x253)]};});return yield this[vQ(0x25b)](vQ(0x186),v);});}[a8D(0x226)](v,N,z,Y){return __awaiter(this,void 0x0,void 0x0,function*(){const vD=a8N,W=z||this[vD(0x1ca)]['contextProvider']['getCurrentProjectName']();if(_[vD(0x1b3)](W))throw new Error('Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.');const g=yield N(W);return yield this[vD(0x257)](v,g,(Y?Y+vD(0x260):'')+vD(0x1b4)+W+'\x27');});}[a8D(0x1dd)](v,N,z,Y){return __awaiter(this,void 0x0,void 0x0,function*(){const vq=a8N,W=z||this['apiClient'][vq(0x188)][vq(0x209)]();if(_[vq(0x1b3)](W))throw new Error(vq(0x193));const g=yield N(W);return yield this[vq(0x25b)](v,g,(Y?Y+vq(0x260):'')+'project:\x20\x27'+W+'\x27');});}[a8D(0x237)](){return __awaiter(this,void 0x0,void 0x0,function*(){const vU=a8N,v=yield this['apiClient'][vU(0x1ea)][vU(0x1b9)]({}),N=v['data'][vU(0x1b9)][vU(0x1fa)](z=>z[vU(0x22a)]);return this[vU(0x257)]('domain',N);});}[a8D(0x1f5)](){return __awaiter(this,void 0x0,void 0x0,function*(){const vM=a8N,v=yield this[vM(0x1ca)][vM(0x1ea)][vM(0x1ac)]({}),N=v[vM(0x24e)]['credentials']['map'](z=>z['id']);return this[vM(0x257)](vM(0x20f),N);});}[a8D(0x222)](v){const vS=a8D;this[vS(0x240)]=v;}}exports[a8D(0x243)]=InquirerHelper;
1
+ 'use strict';const a8w=a8z;(function(I,z){const R=a8z,g=I();while(!![]){try{const Z=-parseInt(R(0x26d))/0x1*(-parseInt(R(0x2a3))/0x2)+-parseInt(R(0x221))/0x3*(parseInt(R(0x247))/0x4)+parseInt(R(0x25d))/0x5+-parseInt(R(0x28e))/0x6+-parseInt(R(0x237))/0x7*(parseInt(R(0x29d))/0x8)+-parseInt(R(0x235))/0x9*(-parseInt(R(0x2ba))/0xa)+-parseInt(R(0x21f))/0xb*(-parseInt(R(0x2bb))/0xc);if(Z===z)break;else g['push'](g['shift']());}catch(y){g['push'](g['shift']());}}}(a8I,0x63913));var __createBinding=this&&this[a8w(0x1ea)]||(Object[a8w(0x2a0)]?function(I,z,g,Z){const Q=a8w;if(Z===undefined)Z=g;var y=Object['getOwnPropertyDescriptor'](z,g);(!y||(Q(0x292)in y?!z[Q(0x288)]:y['writable']||y[Q(0x263)]))&&(y={'enumerable':!![],'get':function(){return z[g];}}),Object[Q(0x215)](I,Z,y);}:function(I,z,g,Z){if(Z===undefined)Z=g;I[Z]=z[g];}),__setModuleDefault=this&&this[a8w(0x26c)]||(Object['create']?function(I,z){const K=a8w;Object[K(0x215)](I,K(0x233),{'enumerable':!![],'value':z});}:function(I,z){I['default']=z;}),__importStar=this&&this['__importStar']||function(I){const J=a8w;if(I&&I[J(0x288)])return I;var z={};if(I!=null){for(var g in I)if(g!=='default'&&Object[J(0x206)]['hasOwnProperty'][J(0x269)](I,g))__createBinding(z,I,g);}return __setModuleDefault(z,I),z;},__awaiter=this&&this[a8w(0x259)]||function(I,z,g,Z){function y(i){return i instanceof g?i:new g(function(t){t(i);});}return new(g||(g=Promise))(function(i,t){const C=a8z;function u(G){const j=a8z;try{M(Z[j(0x232)](G));}catch(h){t(h);}}function v(G){const F=a8z;try{M(Z[F(0x226)](G));}catch(h){t(h);}}function M(G){const s=a8z;G[s(0x2bd)]?i(G[s(0x1ed)]):y(G['value'])[s(0x227)](u,v);}M((Z=Z[C(0x1fb)](I,z||[]))[C(0x232)]());});},__importDefault=this&&this[a8w(0x2c3)]||function(I){const f=a8w;return I&&I[f(0x288)]?I:{'default':I};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['InquirerHelper']=void 0x0;const _=__importStar(require(a8w(0x27d))),chalk_1=__importDefault(require(a8w(0x2b8))),fs=__importStar(require('fs')),utils_1=require(a8w(0x2a4)),api_helpers_1=require(a8w(0x2be)),inquirer_pagination_prompt_1=require('./pagination/inquirer-pagination-prompt'),inquirer=require('inquirer'),inquirerSearchList=require('inquirer-search-list'),yaml=require(a8w(0x2b1));function a8I(){const Ix=['max','loginPrompt','push','job\x20builds','REPEAT','log\x20sink','secrets','Unexpected\x20file\x20type:\x20','service','string','join','isUndefined','description','warning','templateRuns','Context\x20with\x20name\x20\x27','\x20(full\x20domain:\x20','integer','type','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','getQuestionString','fileName','jobs','isArray','propToType','charAt','confirm','askForAddon','pagination-prompt','subdomain','isValidJSON','No,\x20edit','pipeline','job\x20runs','__createBinding','SAVE','Do\x20you\x20want\x20to\x20add','value','templates','logSinks','writeFileSync','.*\x5c.(json|yaml|yml)$','cursor','editPayload','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','Choose\x20the\x20','safeLoad','elements','retrievePayloadViaInteractiveCli','don\x27t\x20change','fetchResourceList','apply','cmdPath','YES','Choose\x20the\x20login\x20token:','isObject','unshift','domain','job','set','fullName','editedResult','prototype','askForResource','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','confirmation','contextProvider','main-context','yml','required','to\x20use:','domain\x20(','enum','items','editor','safeDump','\x20characters,\x20is\x20','defineProperty','blue','askGeneric','askForProject','saveFile','assign','askForVolume','list','DynamicReloadPaginationPrompt','pipelines','143539vbLsWn','slice','199731sEyVOe','pathVars','addon','oneOf','Yes,\x20send','throw','then','map','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','Configuration\x20file\x20written\x20to\x20','defaultPaginationPageSize','input','projects','Something\x20unexpected\x20happened.','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','token','test','next','default','getType','252090puBjxM','maximum','238WBTuZf','ABORT','addons','Do\x20you\x20want\x20to\x20add\x20more','domains','askForService','minLength','values','Template\x20id\x20not\x20provided.','find','yaml','askForBuild','No,\x20repeat','service:\x20\x27','services','search-list','44wlXfEE','length','opt','createdAt','addon:\x20\x27','subdomains','underline','red','askArrayEntry','\x20and\x20it\x20','must\x20be\x20a\x20number,\x20is\x20','for\x20this\x20','keys','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','green','password','askForResourcePaginated','askForProjectScopedResource','__awaiter','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','prompt','ask','3469995iwBlig','Please\x20confirm\x20following\x20configuration:\x0a','askForPipeline','isBoolean','choice','body','configurable','apiClient','\x20characters','not\x20completed','askForLogSink','pattern','call','\x20(startedAt:\x20','askConfirm','__setModuleDefault','1llfcTg','Context\x20name\x20already\x20exists.','pagination','resultCache','runs','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','askForDomain','credentials','template','What\x20do\x20you\x20want\x20to\x20use\x20as','builds','getPathString','all-builds','nextCursor','unset','lodash','askForSecret','repeat','volumes','bgGrey','maxLength','askForProjectScopedResourcePaginated','filter','object','stringify','registerPrompt','__esModule','No\x20','secret','job\x20build','whiteBright','project:\x20\x27','4143510gCEloo','EDIT','askForAddonBackup','addEntry','get','bold','found','this\x20option\x20is\x20required,\x20please\x20answer','example','tmpCmdPath','Should\x20it\x20be','backups','\x20(completedAt:\x20','name','completedAt','189624ixgxoi','a\x20Northflank\x20resource','Writing\x20configuration\x20failed:\x20','create','No\x20builds\x20found','askForTemplate','816562vomIdP','./utils','properties','job:\x20\x27','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','data','array','split','confirmationPrompt','getInnerType','pop','isEmpty',',\x20supported\x20types:\x20[json|yaml|yml]','validate','js-yaml','InquirerHelper','boolean','askForJob','success','rawObject','deleteWarningPrompt','chalk','reset','40rIzuJl','1308sWNzUa','\x20to\x20use:','done','./api-helpers','has','minimum','override','askForSubdomain','__importDefault','No,\x20abort'];a8I=function(){return Ix;};return a8I();}var ConfirmChoices;function a8z(I,z){const g=a8I();return a8z=function(Z,y){Z=Z-0x1e3;let i=g[Z];return i;},a8z(I,z);}(function(I){const x=a8w;I[x(0x1fd)]=x(0x225),I[x(0x2c9)]=x(0x243),I[x(0x28f)]=x(0x1e7),I[x(0x1eb)]='No,\x20but\x20save\x20as\x20file',I['ABORT']=x(0x2c4);}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(I){const o=a8w;this[o(0x264)]=I,this[o(0x22b)]=0x32,this[o(0x1f3)]=z=>__awaiter(this,void 0x0,void 0x0,function*(){const d=o,{editedResult:g}=yield inquirer[d(0x25b)]([{'type':d(0x212),'name':d(0x205),'message':'Go\x20to\x20editor','default':yaml[d(0x213)](z)}]);return yaml[d(0x1f6)](g);}),this['saveFile']=z=>__awaiter(this,void 0x0,void 0x0,function*(){const n=o,g=t=>n(0x2cc)+t+n(0x2af);function Z(){return __awaiter(this,void 0x0,void 0x0,function*(){const A=a8z;return inquirer['prompt']([{'type':'input','name':A(0x2da),'message':A(0x229),'validate':t=>new RegExp(A(0x1f1))[A(0x231)](t)?!![]:g(t)}]);});}const {fileName:y}=yield Z(),i=y['toString']()['split']('.')[n(0x2ad)]();try{switch(i){case'json':(0x0,utils_1[n(0x2b5)])(n(0x22a)+y);return fs['writeFileSync'](y,JSON[n(0x286)](z,null,'\x20\x20'));case n(0x241):case n(0x20c):(0x0,utils_1[n(0x2b5)])(n(0x22a)+y);return fs[n(0x1f0)](y,yaml[n(0x213)](z));default:(0x0,utils_1[n(0x2d2)])(g(i));}}catch(t){(0x0,utils_1[n(0x2d2)])(n(0x29f)+t['message']);}return undefined;}),this[o(0x284)]=(z,g)=>Z=>{const T=o,y=typeof Z==='string'?Z['trim']():Z;return g===![]&&y===T(0x1f9)?'':y;},this[o(0x2b0)]=(z,g,Z)=>y=>{const m=o,i=[];if(y===''||y===m(0x1f9)){if(g!==![])i[m(0x2c7)](m(0x295));else return!![];}z[m(0x2d7)]===m(0x2ce)&&!_[m(0x2d0)](z[m(0x268)])&&i[m(0x2c7)](new RegExp(z[m(0x268)])[m(0x231)](y)?!![]:'doesn\x27t\x20match\x20pattern\x20\x27'+z[m(0x268)]+'\x27');z[m(0x2d7)]===m(0x2ce)&&!_[m(0x2d0)](z['minLength'])&&i[m(0x2c7)](y[m(0x248)]>=z['minLength']?!![]:m(0x208)+z[m(0x23d)]+m(0x214)+y[m(0x248)]+m(0x265));z[m(0x2d7)]==='string'&&!_[m(0x2d0)](z['maxLength'])&&i[m(0x2c7)](y[m(0x248)]<=z[m(0x282)]?!![]:m(0x22f)+z['maxLength']+'\x20characters,\x20is\x20'+y[m(0x248)]+m(0x265));Z&&Number['isNaN'](parseInt(y,0xa))&&i[m(0x2c7)](m(0x251)+y);z[m(0x2d7)]===m(0x2d6)&&!_[m(0x2d0)](z[m(0x2c0)])&&i[m(0x2c7)](y>=z['minimum']?!![]:m(0x2d8)+z['minimum']);z[m(0x2d7)]===m(0x2d6)&&!_[m(0x2d0)](z[m(0x236)])&&i[m(0x2c7)](y<=z[m(0x236)]?!![]:m(0x272)+z[m(0x236)]);if(z[m(0x2d7)]==='rawObject'){const v=(0x0,utils_1[m(0x1e6)])(y);i[m(0x2c7)](v===![]||_[m(0x2ae)](v)?m(0x25a):!![]);}const t=i[m(0x284)](M=>M!==!![]),u=(z===null||z===void 0x0?void 0x0:z[m(0x296)])?'\x0a'+chalk_1['default'][m(0x24e)]('>>')+'\x20Example:\x20'+chalk_1[m(0x233)][m(0x28c)](JSON['stringify'](z[m(0x296)])):'';return t[m(0x248)]>0x0?t['join'](chalk_1['default'][m(0x24d)](m(0x250)))+u:!![];},this['getPathString']=(z,g,Z)=>{const b=o,y=z[z[b(0x248)]-0x1];function i(){const O=b;return z[O(0x220)](0x0,-0x1)[O(0x228)](v=>v[O(0x2de)](0x0)['toUpperCase']()+v[O(0x220)](0x1))[O(0x2cf)]('>');}const t=z[b(0x248)]>0x1?chalk_1[b(0x233)][b(0x281)][b(0x28c)](i())+':\x20':'',u=Z?'\x20('+chalk_1[b(0x233)][b(0x216)](Z)+')':'';return chalk_1[b(0x233)][b(0x2b9)](''+t+g+'\x20'+chalk_1[b(0x233)]['bold']['greenBright'](y)+u+'?');},this['askForResource']=(z,g,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const V=o;if(g['length']<0x1){const t=Z?'for\x20this\x20'+Z:V(0x294);throw new Error('No\x20'+z+'\x20'+t+'.');}const y=V(0x1f5)+z+V(0x2bc),i=g['length']>0x4?V(0x246):V(0x21c);return(yield inquirer['prompt']([{'type':i,'name':V(0x29b),'message':y,'choices':g}]))[V(0x29b)];}),this[o(0x257)]=(z,g,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const k=o,{elements:y,nextCursor:i}=yield g();if(y[k(0x248)]<0x1){const v=Z?k(0x252)+Z:k(0x294);throw new Error(k(0x289)+z+'\x20'+v+'.');}const t=k(0x1f5)+z+k(0x2bc);if(i!==undefined){const M=({nextPageCursor:G})=>__awaiter(this,void 0x0,void 0x0,function*(){const N=k,P=yield g(G);return{'elements':P[N(0x1f7)],'nextPageCursor':P[N(0x27b)]};});return(yield inquirer[k(0x25b)]([{'type':'pagination-prompt','name':k(0x29b),'message':t,'choices':y,'nextPageCursor':i,'loadMore':M}]))['name'];}const u=y['length']>0x4?k(0x246):k(0x21c);return(yield inquirer['prompt']([{'type':u,'name':'name','message':t,'choices':y}]))['name'];}),this[o(0x217)]=(z,g)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const a=o,Z=''+(g?'('+chalk_1[a(0x233)][a(0x216)](g)+')\x20':''),y='Enter\x20the\x20'+chalk_1['default'][a(0x255)](z)+'\x20'+Z+a(0x20e),i=this[a(0x2b0)]({'type':a(0x2ce),'required':!![]});return(yield inquirer[a(0x25b)]([{'type':a(0x22c),'name':'name','message':y,'validate':i}]))[a(0x29b)];}),this[o(0x26b)]=z=>__awaiter(this,void 0x0,void 0x0,function*(){return(yield inquirer['prompt']([{'type':'confirm','name':'name','message':z,'default':!![]}]))['name'];}),this[o(0x23c)]=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const H=o,g=Z=>y=>__awaiter(this,void 0x0,void 0x0,function*(){const D=a8z;var i;const t=yield this['apiClient'][D(0x21c)][D(0x245)]({'parameters':{'projectId':Z},'options':{'per_page':this[D(0x22b)],'cursor':y}}),u=t[D(0x2a8)][D(0x245)][D(0x228)](v=>v['id']);return{'elements':u,'nextCursor':(i=t[D(0x26f)])===null||i===void 0x0?void 0x0:i[D(0x1f2)]};});return this[H(0x283)](H(0x2cd),g,z);}),this[o(0x2a2)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const r=o,z=g=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=a8z;var Z;const y=yield this[Y(0x264)][Y(0x21c)][Y(0x1ee)]({'options':{'per_page':this[Y(0x22b)],'cursor':g}}),i=y[Y(0x2a8)][Y(0x1ee)][Y(0x228)](t=>t['id']);return{'elements':i,'nextCursor':(Z=y['pagination'])===null||Z===void 0x0?void 0x0:Z[Y(0x1f2)]};});return this['askForResourcePaginated'](r(0x276),z);}),this['askForTemplateRun']=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const X=o;if(_[X(0x2d0)](z))throw new Error(X(0x23f));const g=Z=>__awaiter(this,void 0x0,void 0x0,function*(){const l=X;var y;let i=this[l(0x22b)];const t=yield this['apiClient']['list']['templateRuns']({'parameters':{'templateId':z},'options':{'per_page':i,'cursor':Z}}),u=t[l(0x2a8)][l(0x2d3)][l(0x228)](v=>v['id']+l(0x26a)+v[l(0x24a)]+')');return{'elements':u,'nextCursor':(y=t[l(0x26f)])===null||y===void 0x0?void 0x0:y[l(0x1f2)]};});return this['askForResourcePaginated']('template\x20run',g)[X(0x227)](Z=>Z[X(0x2aa)]('\x20')[0x0]);}),this[o(0x267)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e=o,z=g=>__awaiter(this,void 0x0,void 0x0,function*(){const S=a8z;var Z;let y=this[S(0x22b)];const i=yield this['apiClient'][S(0x21c)][S(0x1ef)]({'options':{'per_page':y,'cursor':g}}),t=i[S(0x2a8)][S(0x1ef)]['map'](u=>u['id']);return{'elements':t,'nextCursor':(Z=i[S(0x26f)])===null||Z===void 0x0?void 0x0:Z[S(0x1f2)]};});return this[e(0x257)](e(0x2ca),z);}),this[o(0x25f)]=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const E=o,g=Z=>y=>__awaiter(this,void 0x0,void 0x0,function*(){const q=a8z;var i;const t=yield this['apiClient']['list']['pipelines']({'parameters':{'projectId':Z},'options':{'per_page':this[q(0x22b)],'cursor':y}}),u=t[q(0x2a8)][q(0x21e)][q(0x228)](v=>v['id']);return{'elements':u,'nextCursor':(i=t[q(0x26f)])===null||i===void 0x0?void 0x0:i[q(0x1f2)]};});return this[E(0x283)](E(0x1e8),g,z);}),this[o(0x2b4)]=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const B=o,g=Z=>y=>__awaiter(this,void 0x0,void 0x0,function*(){const W=a8z;var i;const t=yield this['apiClient'][W(0x21c)][W(0x2db)]({'parameters':{'projectId':Z},'options':{'per_page':this[W(0x22b)],'cursor':y}}),u=t[W(0x2a8)]['jobs']['map'](v=>v['id']);return{'elements':u,'nextCursor':(i=t['pagination'])===null||i===void 0x0?void 0x0:i[W(0x1f2)]};});return this[B(0x283)]('job',g,z);}),this['askForJobRun']=(z,g,Z=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const p=o,y=p(0x27a),i=t=>u=>__awaiter(this,void 0x0,void 0x0,function*(){const U=p;var v;const M=yield this['apiClient'][U(0x292)][U(0x202)][U(0x271)]({'parameters':{'projectId':t,'jobId':z},'options':{'per_page':this[U(0x22b)],'cursor':u}}),G=M[U(0x2a8)][U(0x271)][U(0x228)](P=>P['id']+U(0x26a)+P['startedAt']+')');return Z&&G[U(0x200)](y),{'elements':G,'nextCursor':(v=M['pagination'])===null||v===void 0x0?void 0x0:v['cursor']};});return this[p(0x283)](p(0x1e9),i,g,p(0x2a6)+z+'\x27')['then'](t=>{const I0=p,u=t[I0(0x2aa)]('\x20')[0x0];if(u===y)return undefined;return u;});}),this[o(0x242)]=(z,g,Z,y=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const I1=o,i=I1(0x27a);if(Z!==undefined){const t=u=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const I2=I1;var M;const G=yield this[I2(0x264)][I2(0x292)][I2(0x202)][I2(0x278)]({'parameters':{'projectId':u,'jobId':Z},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':v}}),P=G['data'][I2(0x278)]['map'](h=>h['id']+I2(0x26a)+h[I2(0x24a)]+')');return y&&P[I2(0x200)](i),{'elements':P,'nextCursor':(M=G[I2(0x26f)])===null||M===void 0x0?void 0x0:M['cursor']};});return this[I1(0x283)](I1(0x2c8),t,z,I1(0x2a6)+Z+'\x27')[I1(0x227)](u=>{const I3=I1,v=u[I3(0x2aa)]('\x20')[0x0];if(v===i)return undefined;return v;});}if(g!==undefined){const u=v=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const I4=I1;var G;const P=yield this[I4(0x264)][I4(0x292)][I4(0x2cd)][I4(0x278)]({'parameters':{'projectId':v,'serviceId':g},'options':{'per_page':this[I4(0x22b)],'cursor':M}}),h=P['data'][I4(0x278)][I4(0x228)](L=>L['id']+I4(0x26a)+L['createdAt']+')');if(y)h[I4(0x200)]('all-builds');return{'elements':h,'nextCursor':(G=P['pagination'])===null||G===void 0x0?void 0x0:G[I4(0x1f2)]};});return this[I1(0x283)](I1(0x28b),u,z,I1(0x244)+Z+'\x27')[I1(0x227)](v=>{const I5=I1,M=v[I5(0x2aa)]('\x20')[0x0];if(M===i)return undefined;return M;});}throw new Error(I1(0x2a1));}),this[o(0x1e3)]=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const I7=o,g=Z=>y=>__awaiter(this,void 0x0,void 0x0,function*(){const I6=a8z;var i;const t=yield this[I6(0x264)][I6(0x21c)]['addons']({'parameters':{'projectId':Z},'options':{'per_page':this[I6(0x22b)],'cursor':y}});return{'elements':t[I6(0x2a8)][I6(0x239)][I6(0x228)](u=>u['id']),'nextCursor':(i=t[I6(0x26f)])===null||i===void 0x0?void 0x0:i[I6(0x1f2)]};});return this[I7(0x283)](I7(0x223),g,z);}),this[o(0x290)]=(z,g)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const I9=o,Z=y=>i=>__awaiter(this,void 0x0,void 0x0,function*(){const I8=a8z;var t;const u=yield this[I8(0x264)][I8(0x292)][I8(0x223)][I8(0x299)]({'parameters':{'projectId':y,'addonId':g},'options':{'per_page':this[I8(0x22b)],'cursor':i}});return{'elements':u[I8(0x2a8)][I8(0x299)][I8(0x228)](v=>v['id']+I8(0x29a)+(v[I8(0x29c)]||I8(0x266))+')'),'nextCursor':(t=u['pagination'])===null||t===void 0x0?void 0x0:t['cursor']};});return this[I9(0x283)](I9(0x299),Z,z,I9(0x24b)+g+'\x27')[I9(0x227)](y=>y[I9(0x2aa)]('\x20')[0x0]);}),this[o(0x21b)]=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Iz=o,g=Z=>__awaiter(this,void 0x0,void 0x0,function*(){const II=a8z;return(yield this[II(0x264)]['list'][II(0x280)]({'parameters':{'projectId':Z}}))['data']['map'](y=>y['id']);});return this[Iz(0x258)]('volume',g,z);}),this[o(0x27e)]=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const IZ=o,g=Z=>y=>__awaiter(this,void 0x0,void 0x0,function*(){const Ig=a8z;var i;const t=yield this[Ig(0x264)][Ig(0x21c)][Ig(0x2cb)]({'parameters':{'projectId':Z},'options':{'per_page':this[Ig(0x22b)],'cursor':y}});return{'elements':t[Ig(0x2a8)]['secrets'][Ig(0x228)](u=>u['id']),'nextCursor':(i=t[Ig(0x26f)])===null||i===void 0x0?void 0x0:i[Ig(0x1f2)]};});return this[IZ(0x283)](IZ(0x28a),g,z);}),this[o(0x2c2)]=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Iy=o,g=yield this['apiClient'][Iy(0x292)]['domain']({'parameters':{'domain':z}}),Z=g[Iy(0x2a8)][Iy(0x24c)]['map'](i=>i['name']+Iy(0x2d5)+i[Iy(0x204)]+')'),y=Iy(0x20f)+z+')';return this[Iy(0x207)](Iy(0x1e5),Z,y)['then'](i=>i['split']('\x20')[0x0]);}),this[o(0x2b7)]=z=>__awaiter(this,void 0x0,void 0x0,function*(){const Ii=o;return(yield inquirer['prompt']([{'type':Ii(0x2df),'name':Ii(0x209),'message':chalk_1[Ii(0x233)]['yellowBright']('WARNING:\x20You\x20are\x20about\x20to\x20delete\x20'+(z||Ii(0x29e))+Ii(0x273)),'default':![]}]))[Ii(0x209)];}),this[o(0x2c6)]=(z,g)=>__awaiter(this,void 0x0,void 0x0,function*(){const It=o;_[It(0x2d0)](z[It(0x29b)])&&(g[It(0x248)]<=0x0?_[It(0x203)](z,It(0x29b),It(0x233)):yield(0x0,utils_1['retry'])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const Iu=It,{name:Z}=yield inquirer[Iu(0x25b)]([{'type':'input','name':Iu(0x29b),'message':Iu(0x2a7),'default':Iu(0x20b)}]);if(!z['override']&&g[Iu(0x240)](y=>y['name']===Z)){const {c:y}=yield inquirer[Iu(0x25b)]([{'type':'confirm','name':'c','message':Iu(0x2d4)+Z+Iu(0x254),'default':![]}]);if(y===![])throw new Error(Iu(0x26e));_[Iu(0x203)](z,Iu(0x2c1),!![]);}_[Iu(0x203)](z,Iu(0x29b),Z);})));if(_[It(0x2d0)](z[It(0x230)])){const Z=yield this['tokenPrompt']();_[It(0x203)](z,It(0x230),Z);}return z;}),this['tokenPrompt']=()=>__awaiter(this,void 0x0,void 0x0,function*(){const Iv=o,{token:z}=yield inquirer['prompt']([{'type':Iv(0x256),'name':Iv(0x230),'mask':'*','message':Iv(0x1fe)}]);return z;}),inquirer[o(0x287)]('search-list',inquirerSearchList),inquirer[o(0x287)](o(0x1e4),inquirer_pagination_prompt_1[o(0x21d)]);}['confirmationPrompt'](I,z){return __awaiter(this,void 0x0,void 0x0,function*(){const IM=a8z,g=yaml[IM(0x213)](I),Z=_[IM(0x2c5)](g[IM(0x2aa)]('\x0a')[IM(0x228)](t=>t['length'])),y=chalk_1['default']['grey']('-'[IM(0x27f)](Z)+'\x0a'),{confirm:i}=yield inquirer['prompt']([{'type':IM(0x21c),'name':IM(0x2df),'message':''+chalk_1['default'][IM(0x293)]['green'](IM(0x25e))+y+chalk_1[IM(0x233)]['blueBright'](g)+y,'choices':Object[IM(0x23e)](ConfirmChoices)}]);switch(i){case ConfirmChoices[IM(0x1fd)]:return I;case ConfirmChoices[IM(0x238)]:throw new Error('Aborted.');case ConfirmChoices[IM(0x2c9)]:return this[IM(0x1f8)](z);case ConfirmChoices[IM(0x28f)]:return this[IM(0x2ab)](yield this['editPayload'](I),z);case ConfirmChoices[IM(0x1eb)]:yield this[IM(0x219)](I);return this[IM(0x2ab)](I,z);default:throw new Error(IM(0x22e));}});}[a8w(0x1f8)](I,z){return __awaiter(this,void 0x0,void 0x0,function*(){const IG=a8z;if((z===null||z===void 0x0?void 0x0:z['resultCache'])!==undefined)this[IG(0x270)]=z===null||z===void 0x0?void 0x0:z[IG(0x270)];this[IG(0x297)]=z===null||z===void 0x0?void 0x0:z[IG(0x1fc)];const g={};return yield this[IG(0x2dd)]([],I[IG(0x249)][IG(0x262)],g),this[IG(0x270)]=g,yield this['confirmationPrompt'](g,I);});}['propToType'](I,z,g,Z){return __awaiter(this,void 0x0,void 0x0,function*(){const IP=a8z;let y;if(z[IP(0x224)]&&!_[IP(0x2bf)](z,IP(0x2a5))){if(z[IP(0x224)][IP(0x248)]>0x1){const {choice:i}=yield inquirer[IP(0x25b)]([{'type':IP(0x21c),'name':IP(0x261),'message':'What\x27s\x20the\x20'+(I[I[IP(0x248)]-0x1]||'')+'\x20type?','choices':z['oneOf'][IP(0x228)](t=>{const Ih=IP;var u;return(u=t[Ih(0x2d1)])!==null&&u!==void 0x0?u:'??';})}]);y=yield this[IP(0x234)](I,z[IP(0x224)][IP(0x240)](t=>t[IP(0x2d1)]===i),g,Z);}else{const t=z[IP(0x224)][0x0];_[IP(0x203)](t,'description',z[IP(0x2d1)]),y=yield this[IP(0x234)](I,t,g,Z);}y={};}else y=yield this[IP(0x234)](I,z,g,Z);return y;});}[a8w(0x2ac)](I,z,g,Z){var y;return __awaiter(this,void 0x0,void 0x0,function*(){const IL=a8z;if(Z===![]){const {addEntry:u}=yield inquirer['prompt']([{'type':IL(0x2df),'name':IL(0x291),'message':this['getPathString'](z,IL(0x1ec),I===null||I===void 0x0?void 0x0:I['description']),'default':![]}]);if(!u)return g;}const i=Object[IL(0x253)]((y=I===null||I===void 0x0?void 0x0:I[IL(0x2a5)])!==null&&y!==void 0x0?y:[]),t=I[IL(0x20d)]||[];if(i[IL(0x248)]>0x0)for(const v of i){const M=z['concat'](v);if(z[IL(0x248)]>0x0&&!_[IL(0x2bf)](g,z[IL(0x2cf)]('.')))_[IL(0x203)](g,z[IL(0x2cf)]('.'),{});yield this[IL(0x2dd)](M,I[IL(0x2a5)][v],g,t['includes'](v));}else yield this['getType'](z,Object[IL(0x21a)](Object['assign']({},I),{'type':'rawObject'}),g,Z);return g;});}[a8w(0x24f)](I,z,g,Z){return __awaiter(this,void 0x0,void 0x0,function*(){const IR=a8z;if(z&&g)return!![];const y=z?IR(0x1ec):IR(0x23a),{addEntry:i}=yield inquirer['prompt']([{'type':IR(0x2df),'name':IR(0x291),'message':this[IR(0x279)](I,y,z?Z:undefined),'default':![]}]);return i;});}[a8w(0x234)](I,z,g,Z){return __awaiter(this,void 0x0,void 0x0,function*(){const Iw=a8z;let y;const i=I[Iw(0x2cf)]('.');switch(z===null||z===void 0x0?void 0x0:z[Iw(0x2d7)]){case Iw(0x2a9):{let t=!![];while(yield this[Iw(0x24f)](I,t,Z,z===null||z===void 0x0?void 0x0:z[Iw(0x2d1)])){const u=_['get'](g,i);_[Iw(0x27c)](g,i),yield this['getType'](I,z[Iw(0x211)],g);const v=_[Iw(0x292)](g,i);!_[Iw(0x2dc)](u)?_['set'](g,i,[v]):(u[Iw(0x2c7)](v),_[Iw(0x203)](g,i,u)),t=![];}return y||[];}case Iw(0x285):{return y=yield this[Iw(0x2ac)](z,I,g,Z),y;}case'rawObject':y=(0x0,utils_1['isValidJSON'])(yield this['ask'](I,z,Z))||undefined;break;case Iw(0x2ce):case'boolean':case Iw(0x2d6):default:y=yield this[Iw(0x25c)](I,z,Z,g);break;}return!_[Iw(0x2d0)](y)&&_[Iw(0x203)](g,i,y),y;});}[a8w(0x25c)](I,z,g,Z){var y;return __awaiter(this,void 0x0,void 0x0,function*(){const IQ=a8z,i=I[I[IQ(0x248)]-0x1],{defaultValue:defaultValue=(y=z===null||z===void 0x0?void 0x0:z[IQ(0x296)])!==null&&y!==void 0x0?y:z===null||z===void 0x0?void 0x0:z['default'],choices:choices=z===null||z===void 0x0?void 0x0:z[IQ(0x210)],pagination:t}=yield(0x0,api_helpers_1[IQ(0x1fa)])(i,this[IQ(0x264)],this[IQ(0x297)],Z,this[IQ(0x222)],I);let u=IQ(0x22c);if(!_[IQ(0x2d0)](choices)&&choices[IQ(0x248)]>0x0){if(t!==undefined&&t['nextPageCursor']!==undefined)u=IQ(0x1e4);else choices[IQ(0x248)]>0x4&&typeof choices[0x0]===IQ(0x2ce)?u=IQ(0x246):u=IQ(0x21c);}else{if((z===null||z===void 0x0?void 0x0:z[IQ(0x2d7)])===IQ(0x2b3))u=IQ(0x2df);else{if((z===null||z===void 0x0?void 0x0:z[IQ(0x2d7)])===IQ(0x2d6))u='input';else(z===null||z===void 0x0?void 0x0:z[IQ(0x2d7)])===IQ(0x2b6)&&(u='editor');}}let v=g!==![]?!_[IQ(0x1ff)](defaultValue)?defaultValue:JSON['stringify'](defaultValue):_[IQ(0x260)](defaultValue)?defaultValue:IQ(0x1f9);if(choices)v=v['toString']();_[IQ(0x2bf)](this['resultCache'],I[IQ(0x2cf)]('.'))&&(v=this[IQ(0x270)][I[IQ(0x2cf)]('.')]);const M=choices&&g===![]?[IQ(0x1f9),...choices]:choices,G=(z===null||z===void 0x0?void 0x0:z['type'])===IQ(0x2d6),P=Object[IQ(0x21a)]({'type':u,'name':'id','message':this[IQ(0x2d9)](I,z),'choices':M,'default':v,'filter':this[IQ(0x284)](u,g),'validate':this[IQ(0x2b0)](z,g,G)},t),h=(yield inquirer['prompt']([P]))['id'];if(h==='don\x27t\x20change'||h==='')return undefined;if(G)return parseInt(h,0xa);return h;});}['getQuestionString'](I,z){const IK=a8w,g=(z===null||z===void 0x0?void 0x0:z['type'])!=='boolean'?IK(0x277):IK(0x298);return this[IK(0x279)](I,g,z===null||z===void 0x0?void 0x0:z[IK(0x2d1)]);}[a8w(0x218)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Ij=a8z,I=z=>__awaiter(this,void 0x0,void 0x0,function*(){const IJ=a8z;var g;const Z=yield this['apiClient'][IJ(0x21c)][IJ(0x22d)]({'options':{'per_page':this[IJ(0x22b)],'cursor':z}}),y=Z[IJ(0x2a8)][IJ(0x22d)][IJ(0x228)](i=>i['id']);return{'elements':y,'nextCursor':(g=Z[IJ(0x26f)])===null||g===void 0x0?void 0x0:g['cursor']};});return yield this[Ij(0x257)]('project',I);});}[a8w(0x258)](I,z,g,Z){return __awaiter(this,void 0x0,void 0x0,function*(){const IF=a8z,y=g||this['apiClient'][IF(0x20a)]['getCurrentProjectName']();if(_[IF(0x2d0)](y))throw new Error(IF(0x1f4));const i=yield z(y);return yield this[IF(0x207)](I,i,(Z?Z+'\x20in\x20':'')+IF(0x28d)+y+'\x27');});}[a8w(0x283)](I,z,g,Z){return __awaiter(this,void 0x0,void 0x0,function*(){const Is=a8z,y=g||this[Is(0x264)][Is(0x20a)]['getCurrentProjectName']();if(_[Is(0x2d0)](y))throw new Error(Is(0x1f4));const i=yield z(y);return yield this[Is(0x257)](I,i,(Z?Z+'\x20in\x20':'')+Is(0x28d)+y+'\x27');});}[a8w(0x274)](){return __awaiter(this,void 0x0,void 0x0,function*(){const IC=a8z,I=yield this[IC(0x264)]['list'][IC(0x23b)]({}),z=I[IC(0x2a8)][IC(0x23b)][IC(0x228)](g=>g[IC(0x29b)]);return this['askForResource'](IC(0x201),z);});}['askForCredentials'](){return __awaiter(this,void 0x0,void 0x0,function*(){const If=a8z,I=yield this[If(0x264)][If(0x21c)]['registries']({}),z=I[If(0x2a8)][If(0x275)][If(0x228)](g=>g['id']);return this[If(0x207)](If(0x275),z);});}['setPathVars'](I){this['pathVars']=I;}}exports[a8w(0x2b2)]=InquirerHelper;
@@ -1 +1 @@
1
- 'use strict';function a9N(v,N){const z=a9v();return a9N=function(Y,W){Y=Y-0x18f;let g=z[Y];return g;},a9N(v,N);}const a9m=a9N;(function(v,N){const i=a9N,z=v();while(!![]){try{const Y=parseInt(i(0x196))/0x1+parseInt(i(0x1b1))/0x2+parseInt(i(0x1ac))/0x3*(parseInt(i(0x1a0))/0x4)+parseInt(i(0x1b9))/0x5+-parseInt(i(0x1bb))/0x6*(-parseInt(i(0x1a8))/0x7)+parseInt(i(0x195))/0x8+-parseInt(i(0x1aa))/0x9*(parseInt(i(0x193))/0xa);if(Y===N)break;else z['push'](z['shift']());}catch(W){z['push'](z['shift']());}}}(a9v,0xc65c6));var __createBinding=this&&this[a9m(0x19f)]||(Object[a9m(0x1b7)]?function(v,N,z,Y){const a=a9m;if(Y===undefined)Y=z;var W=Object[a(0x1bd)](N,z);(!W||(a(0x1a5)in W?!N[a(0x1b6)]:W['writable']||W[a(0x1c8)]))&&(W={'enumerable':!![],'get':function(){return N[z];}}),Object[a(0x1b8)](v,Y,W);}:function(v,N,z,Y){if(Y===undefined)Y=z;v[Y]=N[z];}),__setModuleDefault=this&&this[a9m(0x1be)]||(Object[a9m(0x1b7)]?function(N,z){const C=a9m;Object[C(0x1b8)](N,C(0x1ae),{'enumerable':!![],'value':z});}:function(N,z){N['default']=z;}),__importStar=this&&this[a9m(0x1ad)]||function(v){const E=a9m;if(v&&v[E(0x1b6)])return v;var N={};if(v!=null){for(var z in v)if(z!==E(0x1ae)&&Object[E(0x1b5)][E(0x1a1)][E(0x19c)](v,z))__createBinding(N,v,z);}return __setModuleDefault(N,v),N;},__awaiter=this&&this[a9m(0x1c7)]||function(v,N,z,Y){function W(g){return g instanceof z?g:new z(function(y){y(g);});}return new(z||(z=Promise))(function(g,y){const s=a9N;function R(X){try{J(Y['next'](X));}catch(T){y(T);}}function l(X){const n=a9N;try{J(Y[n(0x1c4)](X));}catch(T){y(T);}}function J(X){const p=a9N;X[p(0x190)]?g(X[p(0x1b4)]):W(X[p(0x1b4)])['then'](R,l);}J((Y=Y[s(0x1bc)](v,N||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(v){const V=a9m;return v&&v[V(0x1b6)]?v:{'default':v};};Object[a9m(0x1b8)](exports,a9m(0x1b6),{'value':!![]}),exports[a9m(0x1c5)]=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9m(0x191))),events_1=require(a9m(0x1ab));function a9v(){const L=['NorthflankApiBrowserLogin','init','__awaiter','configurable','toString','status','stringify','http:','handleError','exit','catch','done','open','error','403940HKBdPw','Login\x20process\x20stopped\x20before\x20completed','5456272HsKsfc','206333joyBAQ','createWebSocketStream','replace','message','wss:','write','call','finally','login-success','__createBinding','17720iCAuLD','hasOwnProperty','duplex','browser-opened','login-failure','get','init-ack','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','416731wfYLtV','Unexpected\x20response,\x20api\x20token\x20missing','693MJysEu','events','327eHIBIx','__importStar','default','parse','baseUrl','2565274bENlwx','startLogin','SIGINT','value','prototype','__esModule','create','defineProperty','3665765TIBRyf','end','54MDslnM','apply','getOwnPropertyDescriptor','__setModuleDefault','openBrowser','idle','Failure\x20during\x20login:\x20','https:','initPackage','throw'];a9v=function(){return L;};return a9v();}class NorthflankApiBrowserLogin extends events_1['EventEmitter']{constructor(v,N=!![]){const h=a9m;super(),this[h(0x1b0)]=v,this[h(0x1bf)]=N,this[h(0x1ca)]=h(0x1c0),this[h(0x1c3)]=()=>JSON[h(0x1cb)]({'type':h(0x1c6)});}[a9m(0x1b2)](){const c=a9m;var v;const N=this[c(0x1b0)][c(0x198)](c(0x1c2),c(0x19a))[c(0x198)](c(0x1cc),'ws:'),z=N+'/v1/cli-login',Y=new ws_1[(c(0x1ae))](z),W=()=>__awaiter(this,void 0x0,void 0x0,function*(){const f=c;yield new Promise(y=>{const A=a9N;var R;(R=this[A(0x1a2)])===null||R===void 0x0?void 0x0:R[A(0x1ba)](JSON[A(0x1cb)]({'type':'aborted'}),()=>y());}),process[f(0x1ce)]();}),g=new Promise((y,R)=>{const Z=c;var l,J,X;try{this[Z(0x1a2)]=(0x0,ws_1[Z(0x197)])(Y),process['on'](Z(0x1b3),W);}catch(T){R(new Error(Z(0x1a7)+T[Z(0x199)]));}(l=this[Z(0x1a2)])===null||l===void 0x0?void 0x0:l['on']('data',r=>{const b=Z;var Q;const D=JSON[b(0x1af)](r[b(0x1c9)]());switch(D===null||D===void 0x0?void 0x0:D['type']){case b(0x1a6):{const {loginPage:q}=D;if(q===undefined){this[b(0x1cd)]('Unexpected\x20response',R);return;}this['openBrowser']&&(0x0,open_1['default'])(q)[b(0x18f)](U=>{const t=b,M='Unable\x20to\x20open\x20browser:\x20'+U[t(0x199)];this['handleError'](M,R);});this['emit'](b(0x1a3),{'url':q});break;}case b(0x19e):{const {apiToken:U,contextName:M}=D;if(U===undefined){this[b(0x1cd)](b(0x1a9),R);return;}(Q=this['duplex'])===null||Q===void 0x0?void 0x0:Q[b(0x1ba)](),y({'token':U,'contextName':M}),this['status']='success';break;}case b(0x1a4):{const S=b(0x1c1)+(D===null||D===void 0x0?void 0x0:D[b(0x199)]);this[b(0x1cd)](S,R);break;}default:{const u='unable\x20to\x20parse\x20message:\x20'+JSON[b(0x1cb)](D);this[b(0x1cd)](u,R);}}}),(J=this[Z(0x1a2)])===null||J===void 0x0?void 0x0:J['on']('error',r=>{const H=Z;this[H(0x1cd)]('error\x20happened\x20during\x20browser\x20login:\x20'+r[H(0x199)],R);}),(X=this[Z(0x1a2)])===null||X===void 0x0?void 0x0:X['on'](Z(0x1ba),()=>{const O=Z;if(this[O(0x1ca)]==='success'){}else this['handleError'](O(0x194),R);});});return(v=this[c(0x1a2)])===null||v===void 0x0?void 0x0:v[c(0x19b)](this[c(0x1c3)]()),this[c(0x1ca)]=c(0x1c6),g[c(0x19d)](()=>{const B=c;process['removeListener'](B(0x1b3),W);});}['handleError'](v,N){const w=a9m;var z,Y;N?(z=this[w(0x1a2)])===null||z===void 0x0?void 0x0:z[w(0x1ba)](()=>N(new Error(v))):(Y=this[w(0x1a2)])===null||Y===void 0x0?void 0x0:Y['end'](),this[w(0x1ca)]=w(0x192);}}exports['NorthflankApiBrowserLogin']=NorthflankApiBrowserLogin;
1
+ 'use strict';const a9s=a9z;function a9z(I,z){const g=a9I();return a9z=function(Z,y){Z=Z-0x11a;let i=g[Z];return i;},a9z(I,z);}function a9I(){const H=['error','catch','next','message','Unable\x20to\x20open\x20browser:\x20','https:','value','__setModuleDefault','__esModule','default','64ADCskt','319498VLvlaM','events','NorthflankApiBrowserLogin','aborted','5067243ezRGWE','2260101dOHUGq','data','login-failure','EventEmitter','handleError','4446510moPDIS','__importDefault','/v1/cli-login','status','createWebSocketStream','init','ws:','error\x20happened\x20during\x20browser\x20login:\x20','21315602pLFDgc','removeListener','call','Unexpected\x20response,\x20api\x20token\x20missing','emit','end','replace','idle','apply','parse','startLogin','toString','defineProperty','__importStar','openBrowser','finally','create','wss:','18975PArgQK','init-ack','796KtVGba','2TamiSb','__createBinding','baseUrl','done','write','Failure\x20during\x20login:\x20','duplex','stringify','initPackage','configurable','SIGINT','70084erHjzq','login-success','hasOwnProperty','getOwnPropertyDescriptor','open','10Qhemvw','writable'];a9I=function(){return H;};return a9I();}(function(I,z){const F=a9z,g=I();while(!![]){try{const Z=-parseInt(F(0x13b))/0x1+parseInt(F(0x11e))/0x2*(parseInt(F(0x140))/0x3)+parseInt(F(0x11d))/0x4*(parseInt(F(0x11b))/0x5)+parseInt(F(0x145))/0x6+parseInt(F(0x129))/0x7*(parseInt(F(0x13a))/0x8)+-parseInt(F(0x13f))/0x9*(-parseInt(F(0x12e))/0xa)+-parseInt(F(0x14d))/0xb;if(Z===z)break;else g['push'](g['shift']());}catch(y){g['push'](g['shift']());}}}(a9I,0x9b26c));var __createBinding=this&&this[a9s(0x11f)]||(Object[a9s(0x15d)]?function(I,z,g,Z){const C=a9s;if(Z===undefined)Z=g;var y=Object[C(0x12c)](z,g);(!y||('get'in y?!z[C(0x138)]:y[C(0x12f)]||y[C(0x127)]))&&(y={'enumerable':!![],'get':function(){return z[g];}}),Object['defineProperty'](I,Z,y);}:function(I,z,g,Z){if(Z===undefined)Z=g;I[Z]=z[g];}),__setModuleDefault=this&&this[a9s(0x137)]||(Object[a9s(0x15d)]?function(I,z){const f=a9s;Object['defineProperty'](I,f(0x139),{'enumerable':!![],'value':z});}:function(I,z){I['default']=z;}),__importStar=this&&this[a9s(0x15a)]||function(I){const x=a9s;if(I&&I[x(0x138)])return I;var z={};if(I!=null){for(var g in I)if(g!==x(0x139)&&Object['prototype'][x(0x12b)][x(0x14f)](I,g))__createBinding(z,I,g);}return __setModuleDefault(z,I),z;},__awaiter=this&&this['__awaiter']||function(I,z,g,Z){function y(i){return i instanceof g?i:new g(function(t){t(i);});}return new(g||(g=Promise))(function(i,t){const d=a9z;function u(G){try{M(Z['next'](G));}catch(h){t(h);}}function v(G){try{M(Z['throw'](G));}catch(h){t(h);}}function M(G){const o=a9z;G[o(0x121)]?i(G['value']):y(G[o(0x136)])['then'](u,v);}M((Z=Z[d(0x155)](I,z||[]))[d(0x132)]());});},__importDefault=this&&this[a9s(0x146)]||function(I){const n=a9s;return I&&I[n(0x138)]?I:{'default':I};};Object[a9s(0x159)](exports,a9s(0x138),{'value':!![]}),exports[a9s(0x13d)]=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9s(0x12d))),events_1=require(a9s(0x13c));class NorthflankApiBrowserLogin extends events_1[a9s(0x143)]{constructor(I,z=!![]){const A=a9s;super(),this[A(0x120)]=I,this['openBrowser']=z,this[A(0x148)]=A(0x154),this[A(0x126)]=()=>JSON[A(0x125)]({'type':A(0x14a)});}[a9s(0x157)](){const T=a9s;var I;const z=this[T(0x120)][T(0x153)](T(0x135),T(0x11a))['replace']('http:',T(0x14b)),g=z+T(0x147),Z=new ws_1['default'](g),y=()=>__awaiter(this,void 0x0,void 0x0,function*(){yield new Promise(t=>{const m=a9z;var u;(u=this[m(0x124)])===null||u===void 0x0?void 0x0:u['end'](JSON['stringify']({'type':m(0x13e)}),()=>t());}),process['exit']();}),i=new Promise((t,u)=>{const b=T;var v,M,G;try{this['duplex']=(0x0,ws_1[b(0x149)])(Z),process['on'](b(0x128),y);}catch(P){u(new Error('Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20'+P[b(0x133)]));}(v=this[b(0x124)])===null||v===void 0x0?void 0x0:v['on'](b(0x141),h=>{const O=b;var L;const R=JSON[O(0x156)](h[O(0x158)]());switch(R===null||R===void 0x0?void 0x0:R['type']){case O(0x11c):{const {loginPage:w}=R;if(w===undefined){this[O(0x144)]('Unexpected\x20response',u);return;}this[O(0x15b)]&&(0x0,open_1[O(0x139)])(w)[O(0x131)](Q=>{const V=O,K=V(0x134)+Q[V(0x133)];this[V(0x144)](K,u);});this[O(0x151)]('browser-opened',{'url':w});break;}case O(0x12a):{const {apiToken:Q,contextName:K}=R;if(Q===undefined){this[O(0x144)](O(0x150),u);return;}(L=this[O(0x124)])===null||L===void 0x0?void 0x0:L[O(0x152)](),t({'token':Q,'contextName':K}),this[O(0x148)]='success';break;}case O(0x142):{const J=O(0x123)+(R===null||R===void 0x0?void 0x0:R[O(0x133)]);this[O(0x144)](J,u);break;}default:{const j='unable\x20to\x20parse\x20message:\x20'+JSON[O(0x125)](R);this[O(0x144)](j,u);}}}),(M=this['duplex'])===null||M===void 0x0?void 0x0:M['on']('error',h=>{const k=b;this[k(0x144)](k(0x14c)+h[k(0x133)],u);}),(G=this[b(0x124)])===null||G===void 0x0?void 0x0:G['on'](b(0x152),()=>{const N=b;if(this['status']==='success'){}else this[N(0x144)]('Login\x20process\x20stopped\x20before\x20completed',u);});});return(I=this[T(0x124)])===null||I===void 0x0?void 0x0:I[T(0x122)](this[T(0x126)]()),this[T(0x148)]=T(0x14a),i[T(0x15c)](()=>{const a=T;process[a(0x14e)]('SIGINT',y);});}[a9s(0x144)](I,z){const D=a9s;var g,Z;z?(g=this[D(0x124)])===null||g===void 0x0?void 0x0:g[D(0x152)](()=>z(new Error(I))):(Z=this[D(0x124)])===null||Z===void 0x0?void 0x0:Z['end'](),this[D(0x148)]=D(0x130);}}exports[a9s(0x13d)]=NorthflankApiBrowserLogin;
@@ -1 +1 @@
1
- 'use strict';const a10b=a10N;(function(v,N){const Z=a10N,z=v();while(!![]){try{const Y=-parseInt(Z(0x1c3))/0x1*(-parseInt(Z(0x1cd))/0x2)+-parseInt(Z(0x1d1))/0x3+-parseInt(Z(0x1b9))/0x4+parseInt(Z(0x1d4))/0x5*(-parseInt(Z(0x1da))/0x6)+parseInt(Z(0x1c2))/0x7+-parseInt(Z(0x1e1))/0x8+-parseInt(Z(0x214))/0x9*(-parseInt(Z(0x1a7))/0xa);if(Y===N)break;else z['push'](z['shift']());}catch(W){z['push'](z['shift']());}}}(a10v,0x1c5e6));function a10N(v,N){const z=a10v();return a10N=function(Y,W){Y=Y-0x19d;let g=z[Y];return g;},a10N(v,N);}function a10v(){const I=['Filter\x20log\x20lines\x20to\x20include\x20this\x20text','--endTime\x20<timestamp>','askForJob','4329powCgr','yml','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','Get\x20log\x20for\x20the\x20specified\x20','apiClient','addOption','assign','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','-l,\x20--lineLimit\x20[limit]','-f,\x20--tail','Error\x20while\x20fetching\x20log\x20lines:\x20','buildId','CliLogs','5570bAUOKj','build-','slice','getStandardLogCommand','regexIncludes','--container\x20--containerId\x20[containerId]','askForBuild','\x20--','done','message','service','logRange','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','conflicts','chalk','Option','inquirerHelper','addonId','804588yiXYAd','askForProject','--startTime\x20<timestamp>','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','error','throw','\x27Ctrl+C\x27','askForAddon','alias','1264179IDlLet','16210dUpHAF','regexNotIncludes','yaml','printResponse','\x20with\x20live-tailing\x20','Log\x20session\x20ended','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','--textNotIncludes\x20<text>','logs-received','textNotIncludes','16cDTplW','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','--regexIncludes\x20<regex>','askForService','288969icmPUB','then','-d,\x20--direction\x20<order>','55aEXJNx','argParser','backward','Number\x20of\x20lines\x20to\x20return.','Project\x20for\x20logs','job','19326CrWVcC','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','Id]','./log-formatter','--textIncludes\x20<text>','next','--duration\x20[duration]','1032760xWWoTC',',\x20duration:\x20','parseDateInput','toUpperCase','__esModule','data','textIncludes','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','name','start','tsHint','json','__awaiter','-o,\x20--output\x20[output]','addon','apply','getFormatter','\x20seconds','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','choices','forward','forEach','logsApiClient',',\x20from:\x20','option','\x20to\x20get\x20logs\x20from','@northflank/js-client',',\x20to:\x20','__importDefault','getCurrentServiceName','Container\x20logs\x20','all\x20containers','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','logs','jobId','printInitInfo','Get\x20logs\x20generated\x20after\x20this\x20time,\x20','format','action','log','defineProperty','customUserAgent','--noDefaults','default','bold','tail','getCommand','formatLogLine'];a10v=function(){return I;};return a10v();}var __awaiter=this&&this[a10b(0x1ed)]||function(v,N,z,Y){function W(g){return g instanceof z?g:new z(function(y){y(g);});}return new(z||(z=Promise))(function(g,y){const B=a10N;function R(X){const t=a10N;try{J(Y[t(0x1df)](X));}catch(T){y(T);}}function l(X){const H=a10N;try{J(Y[H(0x1be)](X));}catch(T){y(T);}}function J(X){const O=a10N;X[O(0x1af)]?g(X['value']):W(X['value'])[O(0x1d2)](R,l);}J((Y=Y[B(0x1f0)](v,N||[]))[B(0x1df)]());});},__importDefault=this&&this[a10b(0x1fd)]||function(v){return v&&v['__esModule']?v:{'default':v};};Object[a10b(0x209)](exports,a10b(0x1e5),{'value':!![]}),exports[a10b(0x1a6)]=void 0x0;const js_client_1=require(a10b(0x1fb)),chalk_1=__importDefault(require(a10b(0x1b5))),utils_1=require('../utils'),inquirer_helper_1=require('../inquirer-helper'),commander_1=require('commander'),console_format_helpers_1=require('../formatting/console-format-helpers'),log_formatter_1=require(a10b(0x1dd));class CliLogs{constructor(v){const L=a10b;this['apiContext']=v,this['getStandardLogCommand']=(N,z)=>{const w=a10N,Y=(0x0,utils_1[w(0x20f)])(!![])[w(0x1e9)]((z?w(0x1a8):'')+w(0x202))[w(0x1c1)]((z?w(0x1a8):'')+w(0x208))['description'](w(0x19d)+N)[w(0x1f9)]('--project\x20--projectId\x20[projectId]',w(0x1d8))[w(0x1f9)]('--'+N+w(0x1ae)+N+'Id\x20['+N+w(0x1dc),N['charAt'](0x0)[w(0x1e4)]()+N[w(0x1a9)](0x1)+w(0x1fa))[w(0x1f9)](w(0x1ac),w(0x1bc))[w(0x1f9)](w(0x1a3),w(0x1f3))['option'](w(0x1a2),w(0x1d7))[w(0x1f9)](w(0x1bb),w(0x205)+utils_1['tsHint'],utils_1['parseDateInput'])[w(0x19f)](new commander_1[(w(0x1b6))](w(0x212),w(0x216)+utils_1[w(0x1eb)])[w(0x1d5)](utils_1[w(0x1e3)])[w(0x1b4)](['tail']))[w(0x1f9)](w(0x1e0),w(0x201))['addOption'](new commander_1[(w(0x1b6))](w(0x1d3),w(0x1e8))['choices']([w(0x1d6),w(0x1f5)])[w(0x1b4)]([w(0x20e)]))[w(0x19f)](new commander_1[(w(0x1b6))](w(0x1de),w(0x211))[w(0x1b4)]([w(0x1cc),w(0x1ab),w(0x1c4)]))['addOption'](new commander_1['Option'](w(0x1ca),w(0x1db))[w(0x1b4)]([w(0x1e7),w(0x1ab),w(0x1c4)]))['addOption'](new commander_1[(w(0x1b6))](w(0x1cf),w(0x1c9))[w(0x1b4)]([w(0x1cc),w(0x1e7),w(0x1c4)]))[w(0x19f)](new commander_1['Option']('--regexNotIncludes\x20<regex>','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression')['conflicts']([w(0x1cc),w(0x1ab),'textIncludes']))[w(0x1f9)](w(0x20b),w(0x1b3),![])[w(0x19f)](new commander_1['Option'](w(0x1ee),w(0x1a1))[w(0x1f4)](Object['values']([w(0x206),'json','yaml'])));if(z)Y[w(0x1f9)]('--build\x20--buildId\x20[buildId]','Build\x20to\x20get\x20logs\x20from');return Y;},this[L(0x204)]=(N,z,Y,W)=>{const j=L,{containerId:g,quiet:y,tail:R,startTime:l,endTime:J,duration:X}=W;if(y===!![])return;const T=R?'(exit\x20with\x20'+chalk_1[j(0x20c)][j(0x20d)](j(0x1bf))+')':'',r=R?j(0x1c7):'',Q=l?j(0x1f8)+l['toISOString']():'',D=J?j(0x1fc)+J['toISOString']():'',q=X?j(0x1e2)+X+j(0x1f2):'',U=g?'container\x20'+chalk_1[j(0x20c)][j(0x20d)](g):j(0x200),M=N+'\x20'+chalk_1[j(0x20c)][j(0x20d)](z)+'\x20in\x20project\x20'+chalk_1['default']['bold'](Y),S=''+Q+D+q;console[j(0x208)](j(0x1ff)+r+'\x20for\x20'+U+'\x20of\x20'+M+S+'\x20'+T);},this['getFormatter']=(N,z)=>Y=>{const k=L;if(!N){if(Y['length']===0x0)console[k(0x208)]('No\x20logs\x20found\x20for\x20this\x20query.');Y[k(0x1f6)](W=>(0x0,log_formatter_1[k(0x210)])(W,z));}else(0x0,console_format_helpers_1[k(0x1c6)])(N,Y);},this[L(0x19e)]=new js_client_1['ApiClient'](v,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[L(0x20a)]}),this[L(0x1f7)]=this['apiClient'],this[L(0x1b7)]=new inquirer_helper_1['InquirerHelper'](this[L(0x19e)]);}['getLogsCommand'](v,N=![]){const F=a10b,z=(W,g)=>__awaiter(this,void 0x0,void 0x0,function*(){const G=a10N,y=g['noDefaults'],{apiContext:R,inquirerHelper:l}=this;switch(v){case G(0x1b1):{const J=y?undefined:R[G(0x1fe)]();return g['serviceId']||J||(yield l[G(0x1d0)](W)());}case G(0x1d9):{const X=y?undefined:R[G(0x1fe)]();return g[G(0x203)]||X||(yield l[G(0x213)](W)());}case G(0x1ef):{const T=y?undefined:R['getCurrentServiceName']();return g[G(0x1b8)]||T||(yield l[G(0x1c0)](W)());}}}),Y=(W,g,y)=>__awaiter(this,void 0x0,void 0x0,function*(){const d=a10N;if(N)return y[d(0x1a5)]||(yield this['inquirerHelper'][d(0x1ad)](W,v===d(0x1b1)?g:undefined,v==='job'?g:undefined)());return undefined;});return this[F(0x1aa)](v,N)[F(0x207)](W=>__awaiter(this,void 0x0,void 0x0,function*(){const e=F,{noDefaults:g,projectId:y,containerId:R,quiet:l,tail:J,textIncludes:X,textNotIncludes:T,regexIncludes:r,regexNotIncludes:Q,direction:D,lineLimit:q,startTime:U,endTime:M,duration:S,output:u}=W;(0x0,utils_1['assertContextExisting'])(this[e(0x19e)]);const {apiContext:i,inquirerHelper:m,logsApiClient:a}=this,C=g?undefined:i['getCurrentProjectName'](),E=y||C||(yield m[e(0x1ba)]()),n=yield z(E,W),p=yield Y(E,n,W);if(!l&&u!==e(0x1c5)&&u!==e(0x215)&&u!==e(0x1ec))this[e(0x204)](v,n,E,W);if(U&&M&&S)throw new Error(e(0x1ce));const s={'projectId':E,'entityId':n,'buildId':p},V={'containerName':R,'textIncludes':X,'textNotIncludes':T,'regexIncludes':r,'regexNotIncludes':Q,'lineLimit':q,'startTime':U,'duration':S},h=this[e(0x1f1)](u,X!==null&&X!==void 0x0?X:r);if(J){const c=yield a[e(0x202)]['logTail'](s,V,v);c['on'](e(0x1cb),h),c['on'](e(0x1bd),A=>(0x0,utils_1['error'])('Error\x20while\x20tailing\x20log\x20lines:\x20'+A[e(0x1b0)])),c['on']('close',()=>console[e(0x208)](e(0x1c8))),yield c[e(0x1ea)]();}else{const A=Object[e(0x1a0)](Object[e(0x1a0)]({},V),{'endTime':M,'direction':D}),f=yield a['logs'][e(0x1b2)](s,A,v);if(f[e(0x1bd)])(0x0,utils_1[e(0x1bd)])(e(0x1a4)+f[e(0x1bd)][e(0x1b0)]);else h(f[e(0x1e6)]);}}));}}exports[a10b(0x1a6)]=CliLogs;
1
+ 'use strict';const a10a=a10z;(function(I,z){const N=a10z,g=I();while(!![]){try{const Z=parseInt(N(0xd7))/0x1*(-parseInt(N(0xe2))/0x2)+-parseInt(N(0x75))/0x3*(-parseInt(N(0xd3))/0x4)+-parseInt(N(0x9d))/0x5+parseInt(N(0x81))/0x6+-parseInt(N(0x94))/0x7*(-parseInt(N(0xbb))/0x8)+-parseInt(N(0xdf))/0x9*(parseInt(N(0xa2))/0xa)+parseInt(N(0xde))/0xb*(parseInt(N(0x96))/0xc);if(Z===z)break;else g['push'](g['shift']());}catch(y){g['push'](g['shift']());}}}(a10I,0x7456f));function a10z(I,z){const g=a10I();return a10z=function(Z,y){Z=Z-0x6b;let i=g[Z];return i;},a10z(I,z);}var __awaiter=this&&this[a10a(0x76)]||function(I,z,g,Z){function y(i){return i instanceof g?i:new g(function(t){t(i);});}return new(g||(g=Promise))(function(i,t){const r=a10z;function u(G){const D=a10z;try{M(Z[D(0xd1)](G));}catch(h){t(h);}}function v(G){const H=a10z;try{M(Z[H(0xcd)](G));}catch(h){t(h);}}function M(G){const Y=a10z;G['done']?i(G[Y(0xbd)]):y(G[Y(0xbd)])['then'](u,v);}M((Z=Z[r(0xe3)](I,z||[]))[r(0xd1)]());});},__importDefault=this&&this[a10a(0xb0)]||function(I){return I&&I['__esModule']?I:{'default':I};};Object['defineProperty'](exports,a10a(0x88),{'value':!![]}),exports[a10a(0xeb)]=void 0x0;const js_client_1=require(a10a(0x95)),chalk_1=__importDefault(require(a10a(0x6c))),utils_1=require('../utils'),inquirer_helper_1=require(a10a(0xea)),commander_1=require('commander'),console_format_helpers_1=require(a10a(0xe8)),log_formatter_1=require('./log-formatter');class CliLogs{constructor(I){const X=a10a;this[X(0xdb)]=I,this[X(0xd0)]=(z,g)=>{const l=X,Z=(0x0,utils_1[l(0x8c)])(!![])[l(0xa4)]((g?'build-':'')+l(0xee))[l(0xc2)]((g?l(0xc3):'')+l(0x87))['description'](l(0x8e)+z)['option'](l(0xaa),l(0x8a))[l(0xa0)]('--'+z+'\x20--'+z+'Id\x20['+z+'Id]',z['charAt'](0x0)['toUpperCase']()+z[l(0xe6)](0x1)+l(0x6e))['option'](l(0xcc),'Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)')[l(0xa0)](l(0xb4),'Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.')['option'](l(0xca),l(0xb2))['option'](l(0xa8),l(0xe7)+utils_1[l(0xe5)],utils_1['parseDateInput'])[l(0xa3)](new commander_1[(l(0xa9))](l(0x74),l(0x83)+utils_1[l(0xe5)])[l(0x8f)](utils_1[l(0xc1)])[l(0xc5)]([l(0x7b)]))['option'](l(0x73),l(0xac))[l(0xa3)](new commander_1[(l(0xa9))](l(0xae),l(0xe4))['choices']([l(0xd8),l(0xa1)])[l(0xc5)]([l(0x7b)]))[l(0xa3)](new commander_1[(l(0xa9))](l(0x92),l(0xd4))[l(0xc5)]([l(0xb1),'regexIncludes',l(0xc9)]))[l(0xa3)](new commander_1['Option']('--textNotIncludes\x20<text>',l(0x84))['conflicts']([l(0xa6),l(0xe9),l(0xc9)]))['addOption'](new commander_1[(l(0xa9))](l(0x78),l(0x6f))[l(0xc5)](['textNotIncludes',l(0xa6),l(0xc9)]))['addOption'](new commander_1[(l(0xa9))](l(0xc0),'Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression')[l(0xc5)](['textNotIncludes',l(0xe9),'textIncludes']))['option'](l(0x93),l(0x7a),![])[l(0xa3)](new commander_1['Option'](l(0x97),l(0x9b))['choices'](Object[l(0x70)]([l(0x8d),l(0xec),'yaml'])));if(g)Z[l(0xa0)](l(0xb7),l(0xb9));if(z===l(0x85))Z[l(0xa0)](l(0x82),l(0x79));return Z;},this[X(0xba)]=(z,g,Z,y)=>{const S=X,{containerId:i,quiet:t,tail:u,startTime:v,endTime:M,duration:G}=y;if(t===!![])return;const P=u?S(0xc4)+chalk_1[S(0x86)][S(0xdc)]('\x27Ctrl+C\x27')+')':'',h=u?S(0x9e):'',L=v?S(0xa5)+v[S(0x98)]():'',R=M?S(0xd2)+M[S(0x98)]():'',w=G?S(0x71)+G+S(0x7e):'',Q=i?'container\x20'+chalk_1[S(0x86)]['bold'](i):S(0x9a),K=z+'\x20'+chalk_1[S(0x86)]['bold'](g)+'\x20in\x20project\x20'+chalk_1[S(0x86)][S(0xdc)](Z),J=''+L+R+w;console['log']('Container\x20logs\x20'+h+S(0x80)+Q+S(0xbc)+K+J+'\x20'+P);},this[X(0xb3)]=(z,g)=>Z=>{const e=X;if(!z){if(Z[e(0xe1)]===0x0)console['log'](e(0xad));Z[e(0xa7)](y=>(0x0,log_formatter_1['formatLogLine'])(y,g));}else(0x0,console_format_helpers_1['printResponse'])(z,Z);},this[X(0x7f)]=new js_client_1['ApiClient'](I,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[X(0x90)]}),this[X(0xcb)]=this[X(0x7f)],this['inquirerHelper']=new inquirer_helper_1[(X(0xed))](this[X(0x7f)]);}[a10a(0xdd)](I,z=![]){const B=a10a,g=(i,t)=>__awaiter(this,void 0x0,void 0x0,function*(){const q=a10z,u=t[q(0xbf)],{apiContext:v,inquirerHelper:M}=this;switch(I){case q(0xce):{const G=u?undefined:v[q(0x6b)]();return t[q(0x9c)]||G||(yield M['askForService'](i)());}case q(0x85):{const P=u?undefined:v[q(0x6b)]();return t[q(0xcf)]||P||(yield M[q(0xb5)](i)());}case q(0xe0):{const h=u?undefined:v[q(0x6b)]();return t[q(0xc8)]||h||(yield M[q(0xd6)](i)());}}}),Z=(i,t,u)=>__awaiter(this,void 0x0,void 0x0,function*(){const E=a10z;if(z)return u[E(0x91)]||(yield this[E(0xaf)][E(0xab)](i,I==='service'?t:undefined,I===E(0x85)?t:undefined,!![])());return undefined;}),y=(i,t,u)=>__awaiter(this,void 0x0,void 0x0,function*(){const W=a10z;if(I===W(0x85))return u[W(0xda)]||(yield this[W(0xaf)]['askForJobRun'](t,i,!![])());return undefined;});return this[B(0xd0)](I,z)[B(0x77)](i=>__awaiter(this,void 0x0,void 0x0,function*(){const p=B,{noDefaults:t,projectId:u,containerId:v,quiet:M,tail:G,textIncludes:P,textNotIncludes:h,regexIncludes:L,regexNotIncludes:R,direction:w,lineLimit:Q,startTime:K,endTime:J,duration:j,output:F}=i;(0x0,utils_1[p(0x6d)])(this[p(0x7f)]);const {apiContext:s,inquirerHelper:C,logsApiClient:f}=this,x=t?undefined:s[p(0xbe)](),o=u||x||(yield C['askForProject']()),d=yield g(o,i),n=yield Z(o,d,i),A=yield y(o,d,i);if(!M&&F!==p(0x7c)&&F!==p(0x9f)&&F!==p(0xec))this[p(0xba)](I,d,o,i);if(K&&J&&j)throw new Error(p(0x72));const T={'projectId':o,'entityId':d},m={'containerName':v,'textIncludes':P,'textNotIncludes':h,'regexIncludes':L,'regexNotIncludes':R,'lineLimit':Q,'startTime':K,'duration':j,'runId':A,'buildId':n,'isBuild':z!==null&&z!==void 0x0?z:![]},b=this['getFormatter'](F,P!==null&&P!==void 0x0?P:L);if(G){const O=yield f[p(0xee)][p(0x7d)](T,m,I);O['on'](p(0xb8),b),O['on'](p(0xc7),V=>(0x0,utils_1[p(0xc7)])(p(0xd5)+V['message'])),O['on'](p(0x99),()=>console['log'](p(0xb6))),yield O[p(0xd9)]();}else{const V=Object[p(0x8b)](Object[p(0x8b)]({},m),{'endTime':J,'direction':w}),k=yield f[p(0xee)][p(0xc6)](T,V,I);if(k[p(0xc7)])(0x0,utils_1[p(0xc7)])('Error\x20while\x20fetching\x20log\x20lines:\x20'+k[p(0xc7)][p(0x89)]);else b(k['data']);}}));}}exports['CliLogs']=CliLogs;function a10I(){const c=['addonId','regexNotIncludes','-l,\x20--lineLimit\x20[limit]','logsApiClient','--container\x20--containerId\x20[containerId]','throw','service','jobId','getStandardLogCommand','next',',\x20to:\x20','188CXgMOZ','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','Error\x20while\x20tailing\x20log\x20lines:\x20','askForAddon','600421FhwFDd','backward','start','runId','apiContext','bold','getLogsCommand','4148859oeEVlY','745758ZeGVIm','addon','length','2XzWKoo','apply','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','tsHint','slice','Get\x20logs\x20generated\x20after\x20this\x20time,\x20','../formatting/console-format-helpers','regexIncludes','../inquirer-helper','CliLogs','json','InquirerHelper','logs','getCurrentServiceName','chalk','assertContextExisting','\x20to\x20get\x20logs\x20from','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','values',',\x20duration:\x20','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','--duration\x20[duration]','--endTime\x20<timestamp>','26589vdLdln','__awaiter','action','--regexIncludes\x20<regex>','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','tail','yaml','logTail','\x20seconds','apiClient','\x20for\x20','4613946IXWUEX','--run\x20--runId\x20[runId]','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','job','default','log','__esModule','message','Project\x20for\x20logs','assign','getCommand','format','Get\x20log\x20for\x20the\x20specified\x20','argParser','customUserAgent','buildId','--textIncludes\x20<text>','--noDefaults','7CmXnCB','@northflank/js-client','24eSAGUl','-o,\x20--output\x20[output]','toISOString','close','all\x20containers','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','serviceId','2193270nLYdBW','\x20with\x20live-tailing\x20','yml','option','forward','100GvuAOr','addOption','name',',\x20from:\x20','textIncludes','forEach','--startTime\x20<timestamp>','Option','--project\x20--projectId\x20[projectId]','askForBuild','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','No\x20logs\x20found\x20for\x20this\x20query.','-d,\x20--direction\x20<order>','inquirerHelper','__importDefault','textNotIncludes','Number\x20of\x20lines\x20to\x20return.','getFormatter','-f,\x20--tail','askForJob','Log\x20session\x20ended','--build\x20--buildId\x20[buildId]','logs-received','Build\x20to\x20get\x20logs\x20from','printInitInfo','3234656ktJlAY','\x20of\x20','value','getCurrentProjectName','noDefaults','--regexNotIncludes\x20<regex>','parseDateInput','alias','build-','(exit\x20with\x20','conflicts','logRange','error'];a10I=function(){return c;};return a10I();}
@@ -1 +1 @@
1
- 'use strict';const a11T=a11N;(function(v,N){const X=a11N,z=v();while(!![]){try{const Y=-parseInt(X(0x77))/0x1+-parseInt(X(0x8b))/0x2*(parseInt(X(0x7b))/0x3)+-parseInt(X(0x89))/0x4*(parseInt(X(0x7a))/0x5)+-parseInt(X(0x88))/0x6+-parseInt(X(0x87))/0x7*(parseInt(X(0x85))/0x8)+-parseInt(X(0x82))/0x9+parseInt(X(0x81))/0xa;if(Y===N)break;else z['push'](z['shift']());}catch(W){z['push'](z['shift']());}}}(a11v,0x811b1));var __importDefault=this&&this['__importDefault']||function(v){return v&&v['__esModule']?v:{'default':v};};function a11v(){const D=['405312eEbcQL','bold','s\x08(?!mailto:)(?:(?:http|https|ftp)://)(?:\x5cS+(?::\x5cS*)?@)?(?:(?:(?:[1-9]\x5cd?|1\x5cd\x5cd|2[01]\x5cd|22[0-3])(?:\x5c.(?:1?\x5cd{1,2}|2[0-4]\x5cd|25[0-5])){2}(?:\x5c.(?:[0-9]\x5cd?|1\x5cd\x5cd|2[0-4]\x5cd|25[0-4]))|(?:(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)*(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff]{2,})))|localhost)(?::\x5cd{2,5})?(?:(/|\x5c?|#)[^\x5cs]*)?\x08s','65sODKwv','867963ECgabP','__esModule','green','formatLogLine','\x20--\x20','pattern','29987280uXJMgQ','3217419zKkezU','color','default','7928NDMXgA','chalk','6265duPcKF','2738346WvSoBr','22908uYwhcP','yellow','2mNtaOP','toISOString','defaultLogSyntax','grey','replace','greenBright','log','red','defineProperty','blue'];a11v=function(){return D;};return a11v();}Object[a11T(0x75)](exports,a11T(0x7c),{'value':!![]}),exports[a11T(0x7e)]=exports[a11T(0x6f)]=void 0x0;const chalk_1=__importDefault(require(a11T(0x86)));function a11N(v,N){const z=a11v();return a11N=function(Y,W){Y=Y-0x6e;let g=z[Y];return g;},a11N(v,N);}exports[a11T(0x6f)]=[{'color':a11T(0x70),'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':a11T(0x70),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11T(0x70),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':'bold','pattern':new RegExp(a11T(0x79),'i')},{'color':'green','pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11T(0x7d),'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':a11T(0x72),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11T(0x74),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':'gray','pattern':/\b(information|info|debug)\b/i},{'color':a11T(0x8a),'pattern':/\b(warning|warn)\b/i},{'color':a11T(0x76),'pattern':/[0-9a-f]{64}/i},{'color':a11T(0x76),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(v,N)=>{const r=a11T,z=chalk_1[r(0x84)]['dim'](v['ts'][r(0x6e)]()),Y=chalk_1[r(0x84)]['cyan'](v['containerId']),W=exports[r(0x6f)]['reduce']((y,R)=>{const Q=r;return y[Q(0x71)](R[Q(0x80)],J=>R[Q(0x83)]?chalk_1[Q(0x84)][R[Q(0x83)]](J):chalk_1['default'][Q(0x70)](J));},v[r(0x73)]),g=N?W[r(0x71)](new RegExp(N,'g'),y=>chalk_1[r(0x84)][r(0x78)](y)):W;console[r(0x73)](z+'\x20'+Y+r(0x7f)+g);};exports['formatLogLine']=formatLogLine;
1
+ 'use strict';const a11G=a11z;(function(I,z){const M=a11z,g=I();while(!![]){try{const Z=parseInt(M(0x157))/0x1+parseInt(M(0x159))/0x2+parseInt(M(0x150))/0x3+parseInt(M(0x13e))/0x4*(-parseInt(M(0x14e))/0x5)+parseInt(M(0x143))/0x6+parseInt(M(0x149))/0x7+-parseInt(M(0x145))/0x8;if(Z===z)break;else g['push'](g['shift']());}catch(y){g['push'](g['shift']());}}}(a11I,0x30237));var __importDefault=this&&this[a11G(0x151)]||function(I){return I&&I['__esModule']?I:{'default':I};};Object[a11G(0x148)](exports,'__esModule',{'value':!![]}),exports[a11G(0x147)]=exports['defaultLogSyntax']=void 0x0;function a11z(I,z){const g=a11I();return a11z=function(Z,y){Z=Z-0x13d;let i=g[Z];return i;},a11z(I,z);}const chalk_1=__importDefault(require('chalk'));exports[a11G(0x155)]=[{'color':a11G(0x144),'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':a11G(0x144),'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':a11G(0x144),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11G(0x144),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11G(0x14c),'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':a11G(0x14a),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':'green','pattern':/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/},{'color':'blue','pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':a11G(0x14f),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':'red','pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11G(0x142),'pattern':/\b(information|info|debug)\b/i},{'color':a11G(0x15a),'pattern':/\b(warning|warn)\b/i},{'color':'blue','pattern':/[0-9a-f]{64}/i},{'color':a11G(0x152),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(I,z)=>{const P=a11G,g=chalk_1[P(0x14d)][P(0x146)](I['ts'][P(0x153)]()),Z=chalk_1['default'][P(0x154)](I[P(0x13d)]),y=exports[P(0x155)][P(0x14b)]((t,u)=>{const h=P;return t[h(0x13f)](u[h(0x156)],v=>u[h(0x141)]?chalk_1[h(0x14d)][u[h(0x141)]](v):chalk_1['default'][h(0x144)](v));},I[P(0x140)]),i=z?y[P(0x13f)](new RegExp(z,'g'),t=>chalk_1[P(0x14d)][P(0x14c)](t)):y;console[P(0x140)](g+'\x20'+Z+P(0x158)+i);};exports[a11G(0x147)]=formatLogLine;function a11I(){const L=['__importDefault','blue','toISOString','cyan','defaultLogSyntax','pattern','252025JZIjOe','\x20--\x20','324828qFuhrm','yellow','containerId','688592MiiBbT','replace','log','color','gray','2095308faoTQc','grey','5950904lXuvXe','dim','formatLogLine','defineProperty','898408AXejPO','green','reduce','bold','default','10fLmVLW','greenBright','1179999fAeBLl'];a11I=function(){return L;};return a11I();}