@northflank/cli 0.9.6-beta.0 → 0.9.6

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 a4v=a4M;(function(N,M){const d=a4M,V=N();while(!![]){try{const L=-parseInt(d(0x178))/0x1+parseInt(d(0x198))/0x2+-parseInt(d(0x193))/0x3*(-parseInt(d(0x16e))/0x4)+parseInt(d(0x1a4))/0x5*(parseInt(d(0x1b1))/0x6)+-parseInt(d(0x15a))/0x7+-parseInt(d(0x1a8))/0x8*(-parseInt(d(0x17f))/0x9)+-parseInt(d(0x155))/0xa;if(L===M)break;else V['push'](V['shift']());}catch(k){V['push'](V['shift']());}}}(a4N,0x7082e));var __awaiter=this&&this[a4v(0x14d)]||function(N,M,V,L){function k(R){return R instanceof V?R:new V(function(r){r(R);});}return new(V||(V=Promise))(function(R,r){const t=a4M;function Q(X){const a=a4M;try{h(L[a(0x194)](X));}catch(u){r(u);}}function z(X){const l=a4M;try{h(L[l(0x196)](X));}catch(u){r(u);}}function h(X){const o=a4M;X['done']?R(X[o(0x17b)]):k(X[o(0x17b)])[o(0x16b)](Q,z);}h((L=L['apply'](N,M||[]))[t(0x194)]());});},__importDefault=this&&this['__importDefault']||function(N){const g=a4v;return N&&N[g(0x156)]?N:{'default':N};};Object['defineProperty'](exports,a4v(0x156),{'value':!![]}),exports[a4v(0x175)]=void 0x0;const js_client_1=require(a4v(0x195)),chalk_1=__importDefault(require(a4v(0x181))),utils_1=require('../utils'),inquirer_helper_1=require('../inquirer-helper');class CliExec{constructor(N){const m=a4v;this[m(0x1a0)]=k=>(0x0,utils_1[m(0x179)])(!![])[m(0x161)](k)[m(0x154)](m(0x15b)+k)['option'](m(0x19f),'Project\x20for\x20exec')[m(0x1aa)]('--'+k+'\x20--'+k+'Id\x20[NAME]',k[m(0x16a)](0x0)[m(0x15e)]()+k[m(0x18e)](0x1)+m(0x16c))[m(0x1aa)](m(0x16f),m(0x174))['option'](m(0x199),m(0x166))[m(0x1aa)](m(0x170),m(0x186))[m(0x1aa)](m(0x1a1),m(0x153))[m(0x1aa)](m(0x159),'Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])[m(0x1aa)](m(0x162),m(0x18a)),this[m(0x1a3)]=()=>({'columns':process['stdout']['columns'],'rows':process['stdout'][m(0x1b0)]}),this['execStartLog']=(k,R,r,Q,z,h,X,u)=>{const W=m;if(u===!![])return;const p=Q===W(0x18c),F=p?'without\x20shell':Q===undefined?'with\x20shell\x20session':W(0x192)+chalk_1['default'][W(0x19b)](Q),S=z!==undefined?'with\x20user:'+z:'',b=h!==undefined?W(0x167)+h:'',s=X!==undefined?W(0x1a6)+chalk_1['default'][W(0x19b)](X)+'\x27':'',y=[s,F,S,b][W(0x152)](T=>T!=='')[W(0x188)]('\x20'),c=W(0x169)+chalk_1['default']['bold'](W(0x171))+')';console['log'](W(0x1ab)+k+'\x20'+chalk_1[W(0x19d)][W(0x1a5)](R)+W(0x150)+chalk_1[W(0x19d)][W(0x1a5)](r)+'\x20'+y+'\x20'+c);},this[m(0x19a)]=(k,R,r=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const x=m;var Q,z;let h=![];try{if(process['stdin'][x(0x1a2)]){const u=require(x(0x173));u[x(0x191)](process[x(0x184)]),process['stdin']['setRawMode'](!![]),process[x(0x180)]['on']('resize',()=>{k['resizeTerminal'](this['getTerminalSize']());}),process[x(0x184)]['on'](x(0x14f),(p,F)=>{const K=x;F[K(0x190)]==='\x04'&&(h?(process[K(0x184)][K(0x17a)](![]),(0x0,utils_1[K(0x158)])(K(0x176)),process['exit']()):(h=!![],setTimeout(()=>h=![],0x190)));});}process[x(0x184)][x(0x17d)](k[x(0x18d)]),k['stdErr']['pipe'](process['stderr']),k['stdOut'][x(0x17d)](process[x(0x180)]),k['on'](x(0x197),p=>{const A=x;var F;(0x0,utils_1[A(0x197)])(A(0x1af)+R+A(0x189)+((F=p[A(0x177)])!==null&&F!==void 0x0?F:p)),process[A(0x184)]['isTTY']&&process[A(0x184)][A(0x17a)](![]),process[A(0x17e)](-0x1);});const X=yield k[x(0x14e)]();if(r!==!![]){const p=(Q=X===null||X===void 0x0?void 0x0:X[x(0x19e)])!==null&&Q!==void 0x0?Q:x(0x172),F=(z=X===null||X===void 0x0?void 0x0:X[x(0x160)])!==null&&z!==void 0x0?z:-0x1,S=(X===null||X===void 0x0?void 0x0:X['message'])?',\x20details:\x20'+X[x(0x177)]:'';p==='Success'?(0x0,utils_1[x(0x187)])(x(0x15f)+F):(0x0,utils_1[x(0x158)])('Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20'+p+x(0x164)+F+S);}return X;}finally{process['stdin'][x(0x1a2)]&&process[x(0x184)][x(0x17a)](![]);}}),this[m(0x151)]=new js_client_1[(m(0x18f))](N,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[m(0x165)]});const M=new inquirer_helper_1['InquirerHelper'](this[m(0x151)]);this['execCmd']=(0x0,utils_1[m(0x179)])()[m(0x161)](m(0x1ac))['alias'](m(0x19c))[m(0x154)](m(0x18b));const V=this[m(0x1a0)](m(0x185))[m(0x15d)](k=>__awaiter(this,void 0x0,void 0x0,function*(){const e=m,{noDefaults:R,projectId:r,serviceId:Q,containerId:z,shellCmd:h,user:X,group:u,command:p,quiet:F}=k;(0x0,utils_1[e(0x17c)])(this['apiClient']);try{const S=R?undefined:N[e(0x168)](),b=r||S||(yield M[e(0x163)]()),s=R?undefined:N[e(0x15c)](),y=Q||s||(yield M[e(0x157)](b)()),c=h!==null&&h!==void 0x0?h:p!==undefined?e(0x18c):undefined;this[e(0x1a9)]('service',y,b,c,X,u,p,F);const T=process[e(0x180)][e(0x183)],U=process[e(0x180)][e(0x1b0)],Z={'projectId':b,'serviceId':y},n=yield this['apiClient'][e(0x19c)][e(0x182)](Z,{'containerName':z,'command':p,'shell':c,'user':X,'group':u,'ttyColumns':T,'ttyRows':U});yield this['handleShellSession'](n,e(0x185),F);}catch(I){(0x0,utils_1[e(0x197)])(''+I[e(0x177)]);}finally{process[e(0x17e)]();}})),L=this[m(0x1a0)](m(0x1ae))[m(0x15d)](k=>__awaiter(this,void 0x0,void 0x0,function*(){const f=m,{projectId:R,jobId:r,containerId:Q,noDefaults:z,shellCmd:h,user:X,group:u,command:p,quiet:F}=k;(0x0,utils_1[f(0x17c)])(this[f(0x151)]);try{const S=z?undefined:N[f(0x168)](),b=R||S||(yield M[f(0x163)]()),s=r||(yield M['askForJob'](b)());this[f(0x1a9)](f(0x1ae),s,b,h,F);const {rows:y,columns:c}=this[f(0x1a3)](),T={'projectId':b,'jobId':s},U=yield this[f(0x151)][f(0x19c)][f(0x1ad)](T,{'containerName':Q,'command':p,'shell':h,'user':X,'group':u,'ttyColumns':c,'ttyRows':y});yield this[f(0x19a)](U,'job',F);}catch(Z){(0x0,utils_1['error'])(''+Z[f(0x177)]);}finally{process[f(0x17e)]();}}));this[m(0x16d)][m(0x1a7)](V),this[m(0x16d)][m(0x1a7)](L);}}exports[a4v(0x175)]=CliExec;function a4M(N,M){const V=a4N();return a4M=function(L,k){L=L-0x14d;let R=V[L];return R;},a4M(N,M);}function a4N(){const G=['getCommand','setRawMode','value','assertContextExisting','pipe','exit','7659UrxnmH','stdout','chalk','execServiceSession','columns','stdin','service','Run\x20command\x20with\x20this\x20user','success','join','\x20command\x20exec:\x20','Command\x20to\x20execute,\x20if\x20--shell\x20option\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell,\x20otherwise','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','none','stdIn','slice','ApiClient','sequence','emitKeypressEvents','shell\x20command\x20','843wthkbO','next','@northflank/js-client','throw','error','514230EdsZTA','--shell-cmd\x20[SHELL-CMD]','handleShellSession','greenBright','exec','default','status','--project\x20--projectId\x20[NAME]','getStandardExecCommand','--group\x20[GROUP]','isTTY','getTerminalSize','10ryPBzH','bold','with\x20command\x20\x27','addCommand','3456LqLmnG','execStartLog','option','Exec\x20','command-exec','execJobSession','job','Error\x20occured\x20during\x20','rows','2021598KQNnPQ','__awaiter','waitForCommandResult','keypress','\x20in\x20project\x20','apiClient','filter','Run\x20command\x20with\x20this\x20group','description','4936640hSevOa','__esModule','askForService','warning','--noDefaults','5964210nnVoox','Command\x20exec\x20for\x20the\x20specified\x20','getCurrentServiceName','action','toUpperCase','Command\x20completed\x20successfully,\x20exit\x20code:\x20','exitCode','name','--cmd\x20--command\x20[COMMAND]','askForProject',',\x20exit\x20code:\x20','customUserAgent','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','with\x20group:','getCurrentProjectName','(exit\x20with\x20two\x20quick\x20','charAt','then','\x20to\x20exec\x20into','execCmd','12676kAEAui','--container\x20--containerId\x20[NAME]','--user\x20[USER]','\x27Ctrl+D\x27','Unknown','readline','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','CliExec','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','message','382562nkIVWI'];a4N=function(){return G;};return a4N();}
1
+ 'use strict';const a4F=a4z;(function(u,z){const W=a4z,D=u();while(!![]){try{const M=-parseInt(W(0x154))/0x1+parseInt(W(0x14f))/0x2+-parseInt(W(0x136))/0x3*(parseInt(W(0x145))/0x4)+parseInt(W(0x129))/0x5*(-parseInt(W(0x134))/0x6)+-parseInt(W(0x17b))/0x7*(-parseInt(W(0x156))/0x8)+parseInt(W(0x16a))/0x9*(parseInt(W(0x171))/0xa)+parseInt(W(0x135))/0xb;if(M===z)break;else D['push'](D['shift']());}catch(H){D['push'](D['shift']());}}}(a4u,0xc226b));var __awaiter=this&&this[a4F(0x166)]||function(u,z,D,M){function H(O){return O instanceof D?O:new D(function(t){t(O);});}return new(D||(D=Promise))(function(O,t){const Q=a4z;function g(N){const I=a4z;try{h(M[I(0x14e)](N));}catch(Z){t(Z);}}function T(N){const q=a4z;try{h(M[q(0x187)](N));}catch(Z){t(Z);}}function h(N){const e=a4z;N[e(0x131)]?O(N[e(0x17d)]):H(N[e(0x17d)])['then'](g,T);}h((M=M['apply'](u,z||[]))[Q(0x14e)]());});},__importDefault=this&&this['__importDefault']||function(u){const r=a4F;return u&&u[r(0x185)]?u:{'default':u};};Object[a4F(0x12a)](exports,a4F(0x185),{'value':!![]}),exports['CliExec']=void 0x0;function a4u(){const m=['getCurrentProjectName','exitCode','askForProject','stdin','--noDefaults','charAt','--project\x20--projectId\x20[NAME]','InquirerHelper','1672SWFUqb','sequence','Command\x20to\x20execute,\x20if\x20--shell\x20option\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell,\x20otherwise','Unknown','shell\x20command\x20','resize','with\x20command\x20\x27',',\x20exit\x20code:\x20','exit','next','1389210XeboIS','success','pipe','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','getStandardExecCommand','1433885vsqKDF','stdOut','264GQyzcp','askForJob','getCommand','stdout','command-exec','job','status','@northflank/js-client',',\x20details:\x20','Exec\x20','keypress','handleShellSession','isTTY','apiClient','getTerminalSize','filter','__awaiter','execJobSession','execStartLog','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','2826pPDIuw','Error\x20occured\x20during\x20','Command\x20exec\x20for\x20the\x20specified\x20','execCmd','../inquirer-helper','stderr','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','6050xXwuJr','addCommand','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','service','with\x20shell\x20session','option','\x27Ctrl+D\x27','log','setRawMode','join','197204jdmEHD','warning','value','rows','bold','message','name','customUserAgent','../utils','\x20in\x20project\x20','__esModule','resizeTerminal','throw','toUpperCase','assertContextExisting','description','\x20to\x20exec\x20into','(exit\x20with\x20two\x20quick\x20','Success','execServiceSession','with\x20group:','greenBright','with\x20user:','--shell-cmd\x20[SHELL-CMD]','1757865zQEOXi','defineProperty','exec','default','alias','askForService','columns','Run\x20command\x20with\x20this\x20group','done','getCurrentServiceName','without\x20shell','12rRzhTH','18648091OlJFHG','4143aeIRrT','error','action','--user\x20[USER]','waitForCommandResult','none','stdErr'];a4u=function(){return m;};return a4u();}const js_client_1=require(a4F(0x15d)),chalk_1=__importDefault(require('chalk')),utils_1=require(a4F(0x183)),inquirer_helper_1=require(a4F(0x16e));function a4z(u,z){const D=a4u();return a4z=function(M,H){M=M-0x128;let O=D[M];return O;},a4z(u,z);}class CliExec{constructor(u){const i=a4F;this['getStandardExecCommand']=H=>(0x0,utils_1[i(0x158)])(!![])[i(0x181)](H)[i(0x18a)](i(0x16c)+H)[i(0x176)](i(0x143),'Project\x20for\x20exec')[i(0x176)]('--'+H+'\x20--'+H+'Id\x20[NAME]',H[i(0x142)](0x0)[i(0x188)]()+H['slice'](0x1)+i(0x18b))[i(0x176)]('--container\x20--containerId\x20[NAME]','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)')['option'](i(0x128),i(0x169))[i(0x176)](i(0x139),'Run\x20command\x20with\x20this\x20user')[i(0x176)]('--group\x20[GROUP]',i(0x130))[i(0x176)](i(0x141),i(0x152),![])[i(0x176)]('--cmd\x20--command\x20[COMMAND]',i(0x147)),this[i(0x164)]=()=>({'columns':process[i(0x159)]['columns'],'rows':process[i(0x159)][i(0x17e)]}),this[i(0x168)]=(H,O,t,g,T,h,N,Z)=>{const U=i;if(Z===!![])return;const E=g===U(0x13b),X=E?U(0x133):g===undefined?U(0x175):U(0x149)+chalk_1[U(0x12c)][U(0x190)](g),R=T!==undefined?U(0x191)+T:'',b=h!==undefined?U(0x18f)+h:'',A=N!==undefined?U(0x14b)+chalk_1[U(0x12c)][U(0x190)](N)+'\x27':'',o=[A,X,R,b][U(0x165)](K=>K!=='')[U(0x17a)]('\x20'),d=U(0x18c)+chalk_1['default'][U(0x17f)](U(0x177))+')';console[U(0x178)](U(0x15f)+H+'\x20'+chalk_1[U(0x12c)][U(0x17f)](O)+U(0x184)+chalk_1[U(0x12c)]['bold'](t)+'\x20'+o+'\x20'+d);},this[i(0x161)]=(H,O,t=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const L=i;var g,T;let h=![];try{if(process[L(0x140)]['isTTY']){const Z=require('readline');Z['emitKeypressEvents'](process[L(0x140)]),process['stdin'][L(0x179)](!![]),process[L(0x159)]['on'](L(0x14a),()=>{const C=L;H[C(0x186)](this[C(0x164)]());}),process['stdin']['on'](L(0x160),(E,X)=>{const j=L;X[j(0x146)]==='\x04'&&(h?(process['stdin'][j(0x179)](![]),(0x0,utils_1[j(0x17c)])(j(0x173)),process['exit']()):(h=!![],setTimeout(()=>h=![],0x190)));});}process['stdin'][L(0x151)](H['stdIn']),H[L(0x13c)][L(0x151)](process[L(0x16f)]),H[L(0x155)]['pipe'](process[L(0x159)]),H['on'](L(0x137),E=>{const J=L;var X;(0x0,utils_1[J(0x137)])(J(0x16b)+O+'\x20command\x20exec:\x20'+((X=E['message'])!==null&&X!==void 0x0?X:E)),process[J(0x140)][J(0x162)]&&process['stdin']['setRawMode'](![]),process[J(0x14d)](-0x1);});const N=yield H[L(0x13a)]();if(t!==!![]){const E=(g=N===null||N===void 0x0?void 0x0:N[L(0x15c)])!==null&&g!==void 0x0?g:L(0x148),X=(T=N===null||N===void 0x0?void 0x0:N[L(0x13e)])!==null&&T!==void 0x0?T:-0x1,R=(N===null||N===void 0x0?void 0x0:N[L(0x180)])?L(0x15e)+N[L(0x180)]:'';E===L(0x18d)?(0x0,utils_1[L(0x150)])('Command\x20completed\x20successfully,\x20exit\x20code:\x20'+X):(0x0,utils_1[L(0x17c)])(L(0x170)+E+L(0x14c)+X+R);}return N;}finally{process[L(0x140)][L(0x162)]&&process[L(0x140)]['setRawMode'](![]);}}),this[i(0x163)]=new js_client_1['ApiClient'](u,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[i(0x182)]});const z=new inquirer_helper_1[(i(0x144))](this[i(0x163)]);this[i(0x16d)]=(0x0,utils_1[i(0x158)])()[i(0x181)](i(0x15a))[i(0x12d)](i(0x12b))[i(0x18a)]('Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.');const D=this[i(0x153)]('service')['action'](H=>__awaiter(this,void 0x0,void 0x0,function*(){const a=i,{noDefaults:O,projectId:t,serviceId:g,containerId:T,shellCmd:h,user:N,group:Z,command:E,quiet:X}=H;(0x0,utils_1[a(0x189)])(this['apiClient']);try{const R=O?undefined:u[a(0x13d)](),b=t||R||(yield z['askForProject']()),A=O?undefined:u[a(0x132)](),o=g||A||(yield z[a(0x12e)](b)()),d=h!==null&&h!==void 0x0?h:E!==undefined?a(0x13b):undefined;this[a(0x168)](a(0x174),o,b,d,N,Z,E,X);const K=process[a(0x159)][a(0x12f)],w=process[a(0x159)]['rows'],y={'projectId':b,'serviceId':o},k=yield this['apiClient'][a(0x12b)][a(0x18e)](y,{'containerName':T,'command':E,'shell':d,'user':N,'group':Z,'ttyColumns':K,'ttyRows':w});yield this[a(0x161)](k,'service',X);}catch(l){(0x0,utils_1[a(0x137)])(''+l[a(0x180)]);}finally{process[a(0x14d)]();}})),M=this[i(0x153)](i(0x15b))[i(0x138)](H=>__awaiter(this,void 0x0,void 0x0,function*(){const V=i,{projectId:O,jobId:t,containerId:g,noDefaults:T,shellCmd:h,user:N,group:Z,command:E,quiet:X}=H;(0x0,utils_1[V(0x189)])(this[V(0x163)]);try{const R=T?undefined:u['getCurrentProjectName'](),b=O||R||(yield z[V(0x13f)]()),A=t||(yield z[V(0x157)](b)());this[V(0x168)](V(0x15b),A,b,h,X);const {rows:o,columns:d}=this['getTerminalSize'](),K={'projectId':b,'jobId':A},w=yield this[V(0x163)][V(0x12b)][V(0x167)](K,{'containerName':g,'command':E,'shell':h,'user':N,'group':Z,'ttyColumns':d,'ttyRows':o});yield this[V(0x161)](w,'job',X);}catch(y){(0x0,utils_1[V(0x137)])(''+y[V(0x180)]);}finally{process[V(0x14d)]();}}));this['execCmd']['addCommand'](D),this[i(0x16d)][i(0x172)](M);}}exports['CliExec']=CliExec;
@@ -1 +1 @@
1
- 'use strict';function a5M(N,M){const V=a5N();return a5M=function(L,k){L=L-0x91;let R=V[L];return R;},a5M(N,M);}const a5v=a5M;(function(N,M){const Z=a5M,V=N();while(!![]){try{const L=parseInt(Z(0x9e))/0x1+-parseInt(Z(0x97))/0x2*(-parseInt(Z(0xb5))/0x3)+parseInt(Z(0x9b))/0x4+parseInt(Z(0xb1))/0x5+parseInt(Z(0xac))/0x6*(-parseInt(Z(0x9c))/0x7)+-parseInt(Z(0x95))/0x8*(parseInt(Z(0xa3))/0x9)+-parseInt(Z(0xa0))/0xa;if(L===M)break;else V['push'](V['shift']());}catch(k){V['push'](V['shift']());}}}(a5N,0x4e3d3));var __awaiter=this&&this['__awaiter']||function(N,M,V,L){function k(R){return R instanceof V?R:new V(function(r){r(R);});}return new(V||(V=Promise))(function(R,r){const d=a5M;function Q(X){const n=a5M;try{h(L[n(0x98)](X));}catch(u){r(u);}}function z(X){try{h(L['throw'](X));}catch(u){r(u);}}function h(X){const I=a5M;X[I(0xa2)]?R(X[I(0xb3)]):k(X[I(0xb3)])[I(0xb6)](Q,z);}h((L=L[d(0x92)](N,M||[]))[d(0x98)]());});},__importDefault=this&&this[a5v(0xa5)]||function(N){const a=a5v;return N&&N[a(0xb2)]?N:{'default':N};};Object[a5v(0xa6)](exports,a5v(0xb2),{'value':!![]}),exports[a5v(0xad)]=void 0x0;function a5N(){const g=['slice','green','245848WQisxC','commands','110wjiLAz','next','option','chalk','1469716vSkKuj','2804522hEkbBh','command-overview','594521dFkWXS','log','5821850eoQznZ','forEach','done','36YGCwnW','getCommand','__importDefault','defineProperty','length','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','bold','name','--verbose','6DStEUV','getCommandOverview','map','Print\x20command\x20descriptions','description','1069285PZqllV','__esModule','value','../utils','13659blXdPW','then','opts','apply'];a5N=function(){return g;};return a5N();}const chalk_1=__importDefault(require(a5v(0x9a))),utils_1=require(a5v(0xb4));function getCommandOverview(N){const l=a5v;return(0x0,utils_1[l(0xa4)])()['name'](l(0x9d))[l(0xb0)](l(0xa8))[l(0x99)](l(0xab),l(0xaf))['action'](M=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:V}=M;function L(k,R){const o=a5M;var r;const Q=(c,T=!![])=>T?chalk_1['default'][o(0xa9)][o(0x94)](c[o(0xaa)]()):c['name'](),z=R[o(0xa7)]===0x0,h=k[o(0x96)];let X='';const u=h['length']===0x0,p=u||((r=Object['keys'](k===null||k===void 0x0?void 0x0:k[o(0x91)]()))===null||r===void 0x0?void 0x0:r[o(0xa7)])>0x0;!z&&(X=h&&!u?'┬\x20':'─\x20');const F=V&&p&&k[o(0xb0)]()?':\x20'+k['description']():'';console[o(0x9f)](''+R+X+Q(k,p)+F);let S=R;if(!z){const c=R['slice'](-0x2)==='└─';S=R[o(0x93)](0x0,-0x2)+(c?'\x20\x20':'│\x20');}const b=S+'├─',s=S+'└─',y=h['every'](T=>T['commands']['length']===0x0);y&&!u&&!V?console[o(0x9f)](s+'\x20'+h[o(0xae)](T=>Q(T))['join'](',\x20')):h[o(0xa1)]((T,U)=>{const t=o;L(T,h[t(0xa7)]-0x1===U?s:b);});}L(N,'');}));}exports[a5v(0xad)]=getCommandOverview;
1
+ 'use strict';function a5u(){const i=['action','getCommandOverview','forEach','292884cQCvca','894817jVPncA','name','63mlGNRm','default','298EtImoC','commands','done','652855CBJCzB','option','opts','log','map','slice','1317384fDssme','30nqrLaY','__awaiter','__esModule','getCommand','throw','description','2078dlJjjb','../utils','apply','274296rmjmuH','length','value','494263LXiyIR','next','chalk','3KdYcqf','__importDefault','join'];a5u=function(){return i;};return a5u();}const a5k=a5z;(function(u,z){const y=a5z,D=u();while(!![]){try{const M=-parseInt(y(0x95))/0x1*(-parseInt(y(0xa5))/0x2)+-parseInt(y(0xae))/0x3*(parseInt(y(0x90))/0x4)+parseInt(y(0x98))/0x5+-parseInt(y(0x9e))/0x6+parseInt(y(0x91))/0x7+parseInt(y(0xa8))/0x8*(-parseInt(y(0x93))/0x9)+parseInt(y(0x9f))/0xa*(parseInt(y(0xab))/0xb);if(M===z)break;else D['push'](D['shift']());}catch(H){D['push'](D['shift']());}}}(a5u,0x2982d));var __awaiter=this&&this[a5k(0xa0)]||function(u,z,D,M){function H(O){return O instanceof D?O:new D(function(t){t(O);});}return new(D||(D=Promise))(function(O,t){const I=a5z;function g(N){const l=a5z;try{h(M[l(0xac)](N));}catch(Z){t(Z);}}function T(N){const W=a5z;try{h(M[W(0xa3)](N));}catch(Z){t(Z);}}function h(N){const F=a5z;N[F(0x97)]?O(N[F(0xaa)]):H(N[F(0xaa)])['then'](g,T);}h((M=M[I(0xa7)](u,z||[]))[I(0xac)]());});},__importDefault=this&&this[a5k(0xaf)]||function(u){const q=a5k;return u&&u[q(0xa1)]?u:{'default':u};};function a5z(u,z){const D=a5u();return a5z=function(M,H){M=M-0x8d;let O=D[M];return O;},a5z(u,z);}Object['defineProperty'](exports,a5k(0xa1),{'value':!![]}),exports[a5k(0x8e)]=void 0x0;const chalk_1=__importDefault(require(a5k(0xad))),utils_1=require(a5k(0xa6));function getCommandOverview(u){const e=a5k;return(0x0,utils_1[e(0xa2)])()['name']('command-overview')[e(0xa4)]('Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands')[e(0x99)]('--verbose','Print\x20command\x20descriptions')[e(0x8d)](z=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:D}=z;function M(H,O){const Q=a5z;var t;const g=(d,K=!![])=>K?chalk_1[Q(0x94)]['bold']['green'](d['name']()):d[Q(0x92)](),T=O['length']===0x0,h=H[Q(0x96)];let N='';const Z=h[Q(0xa9)]===0x0,E=Z||((t=Object['keys'](H===null||H===void 0x0?void 0x0:H[Q(0x9a)]()))===null||t===void 0x0?void 0x0:t[Q(0xa9)])>0x0;!T&&(N=h&&!Z?'┬\x20':'─\x20');const X=D&&E&&H[Q(0xa4)]()?':\x20'+H['description']():'';console[Q(0x9b)](''+O+N+g(H,E)+X);let R=O;if(!T){const d=O['slice'](-0x2)==='└─';R=O[Q(0x9d)](0x0,-0x2)+(d?'\x20\x20':'│\x20');}const b=R+'├─',A=R+'└─',o=h['every'](K=>K[Q(0x96)][Q(0xa9)]===0x0);o&&!Z&&!D?console[Q(0x9b)](A+'\x20'+h[Q(0x9c)](K=>g(K))[Q(0xb0)](',\x20')):h[Q(0x8f)]((K,w)=>{const r=Q;M(K,h[r(0xa9)]-0x1===w?A:b);});}M(u,'');}));}exports[a5k(0x8e)]=getCommandOverview;
@@ -1 +1 @@
1
- 'use strict';const a6b=a6M;(function(N,M){const S=a6M,V=N();while(!![]){try{const L=parseInt(S(0x22b))/0x1+-parseInt(S(0x22a))/0x2*(parseInt(S(0x1f3))/0x3)+-parseInt(S(0x20d))/0x4+-parseInt(S(0x202))/0x5+-parseInt(S(0x209))/0x6+parseInt(S(0x200))/0x7*(-parseInt(S(0x20a))/0x8)+parseInt(S(0x224))/0x9;if(L===M)break;else V['push'](V['shift']());}catch(k){V['push'](V['shift']());}}}(a6N,0xe7ae4));function a6M(N,M){const V=a6N();return a6M=function(L,k){L=L-0x1f0;let R=V[L];return R;},a6M(N,M);}var __createBinding=this&&this['__createBinding']||(Object[a6b(0x201)]?function(N,M,V,L){const s=a6b;if(L===undefined)L=V;var R=Object[s(0x1fc)](M,V);(!R||(s(0x228)in R?!M[s(0x220)]:R[s(0x221)]||R[s(0x1f5)]))&&(R={'enumerable':!![],'get':function(){return M[V];}}),Object[s(0x219)](N,L,R);}:function(N,M,V,L){if(L===undefined)L=V;N[L]=M[V];}),__setModuleDefault=this&&this[a6b(0x225)]||(Object[a6b(0x201)]?function(N,M){Object['defineProperty'](N,'default',{'enumerable':!![],'value':M});}:function(N,M){const y=a6b;N[y(0x206)]=M;}),__importStar=this&&this[a6b(0x207)]||function(N){const c=a6b;if(N&&N[c(0x220)])return N;var M={};if(N!=null){for(var V in N)if(V!==c(0x206)&&Object[c(0x1fd)]['hasOwnProperty']['call'](N,V))__createBinding(M,N,V);}return __setModuleDefault(M,N),M;},__importDefault=this&&this[a6b(0x229)]||function(N){const T=a6b;return N&&N[T(0x220)]?N:{'default':N};};Object[a6b(0x219)](exports,'__esModule',{'value':!![]}),exports[a6b(0x20b)]=exports[a6b(0x204)]=exports[a6b(0x216)]=exports['handleJsonOutput']=exports[a6b(0x1fb)]=exports['printAsTable']=void 0x0;const chalk_1=__importDefault(require('chalk')),_=__importStar(require('lodash')),util=__importStar(require('util')),yaml=require(a6b(0x210)),columnify=require(a6b(0x1f2));function printAsTable(N,M,V,L=![],k=0x0){const U=a6b;!L&&console[U(0x1f7)](''+chalk_1[U(0x206)]['bold'](M));function R(Q){const Z=U;return Q===Z(0x22c)?Q:Q[Z(0x205)](Z(0x22c),'');}function r(Q,z){const I=U;function h(u){const n=a6M,p=new Date(u);return p[n(0x1f6)]()+'/'+p[n(0x1f0)]()+'/'+p['getFullYear']()+'\x0a'+p[n(0x21b)]()+':'+p['getMinutes']()+':'+p[n(0x1f8)]();}const X=['createdat',I(0x1f9)];if(X[I(0x20f)](z[I(0x203)]())&&_[I(0x1fa)](Q)&&Q[I(0x217)]()[I(0x214)]===0xd)return h(Number(Q));if(_[I(0x21d)](Q)){if(z!=='disabled'&&z['includes'](I(0x22c)))return Q?'x':'✔';return Q?'✔':'x';}if(_[I(0x21e)](Q))return util['inspect'](Q,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return Q;}if(_[U(0x211)](N)){N[U(0x214)]===0x0&&console[U(0x1f7)](U(0x227)+M[U(0x203)]()+'\x20found');const Q=N[U(0x226)]((X,u)=>{const d=U,p={'i':u+k};return Object[d(0x1ff)](X)[d(0x1fe)](F=>{const v=d;(_[v(0x21a)](V)||V[v(0x20f)](F[v(0x203)]()))&&_[v(0x21c)](p,R(F),r(X[F],F));}),p;}),z=_[U(0x215)](Object['keys']((Q===null||Q===void 0x0?void 0x0:Q[0x0])||[]))[U(0x20e)]((X,u)=>{const a=U,p=F=>F!=='i'?F!==a(0x21f)?0x0:0x1:0x2;return p(u)-p(X);}),h={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!L,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':z};console[U(0x1f7)](columnify(Q,h));}else console['log'](N);}exports[a6b(0x1f4)]=printAsTable;function consoleFormat(N){const l=a6b;if(!_[l(0x21e)](N))return N===null||N===void 0x0?void 0x0:N[l(0x217)]();return util[l(0x213)](N,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6b(0x1fb)]=consoleFormat;const handleJsonOutput=(N,M)=>{const o=a6b,V=N===o(0x208);if(V)console[o(0x1f7)](JSON[o(0x20c)](M,null,'\x20'));};exports[a6b(0x222)]=handleJsonOutput;const handleYamlOutput=(N,M)=>{const t=a6b,V=N===t(0x223)||N===t(0x212);if(V)console['log'](yaml[t(0x218)](M));};exports[a6b(0x216)]=handleYamlOutput;const handleFormattedOutput=(N,M)=>{const g=a6b,V=N===g(0x1f1);if(V)console[g(0x1f7)](consoleFormat(M));};function a6N(){const W=['4876962sXhrtD','15464daeZfr','printResponse','stringify','3565340RNlClk','sort','includes','js-yaml','isArrayLike','yml','inspect','length','clone','handleYamlOutput','toString','safeDump','defineProperty','isUndefined','getHours','set','isBoolean','isObjectLike','internalId','__esModule','writable','handleJsonOutput','yaml','35993772NzLpgi','__setModuleDefault','map','No\x20','get','__importDefault','6pRccPL','887265tdyzjk','disabled','getMonth','format','columnify','261489MYencs','printAsTable','configurable','getDate','log','getSeconds','updatedat','isFinite','consoleFormat','getOwnPropertyDescriptor','prototype','forEach','keys','5677VdnaRL','create','2021475XNHZXQ','toLowerCase','handleFormattedOutput','replace','default','__importStar','json'];a6N=function(){return W;};return a6N();}exports['handleFormattedOutput']=handleFormattedOutput;const printResponse=(N,M)=>{const m=a6b;(0x0,exports[m(0x222)])(N,M),(0x0,exports['handleYamlOutput'])(N,M),(0x0,exports[m(0x204)])(N,M);};exports[a6b(0x20b)]=printResponse;
1
+ 'use strict';const a6b=a6z;(function(u,z){const R=a6z,D=u();while(!![]){try{const M=parseInt(R(0x97))/0x1*(-parseInt(R(0x7f))/0x2)+-parseInt(R(0x98))/0x3+parseInt(R(0x89))/0x4*(parseInt(R(0x8a))/0x5)+-parseInt(R(0x8b))/0x6*(parseInt(R(0xb0))/0x7)+parseInt(R(0xad))/0x8*(parseInt(R(0xa9))/0x9)+parseInt(R(0x90))/0xa+-parseInt(R(0x95))/0xb*(parseInt(R(0x9e))/0xc);if(M===z)break;else D['push'](D['shift']());}catch(H){D['push'](D['shift']());}}}(a6u,0x5f4ef));var __createBinding=this&&this[a6b(0x78)]||(Object['create']?function(u,z,D,M){const A=a6b;if(M===undefined)M=D;var H=Object[A(0x93)](z,D);(!H||(A(0x7d)in H?!z[A(0xb4)]:H[A(0x82)]||H[A(0xa4)]))&&(H={'enumerable':!![],'get':function(){return z[D];}}),Object['defineProperty'](u,M,H);}:function(u,z,D,M){if(M===undefined)M=D;u[M]=z[D];}),__setModuleDefault=this&&this[a6b(0xa7)]||(Object[a6b(0x9c)]?function(u,z){const o=a6b;Object[o(0xa8)](u,o(0xa5),{'enumerable':!![],'value':z});}:function(u,z){u['default']=z;}),__importStar=this&&this[a6b(0x7c)]||function(u){const d=a6b;if(u&&u[d(0xb4)])return u;var z={};if(u!=null){for(var D in u)if(D!=='default'&&Object['prototype'][d(0x9b)][d(0x9f)](u,D))__createBinding(z,u,D);}return __setModuleDefault(z,u),z;},__importDefault=this&&this['__importDefault']||function(u){const K=a6b;return u&&u[K(0xb4)]?u:{'default':u};};Object['defineProperty'](exports,a6b(0xb4),{'value':!![]}),exports[a6b(0x8e)]=exports[a6b(0x86)]=exports[a6b(0x83)]=exports[a6b(0xb5)]=exports['consoleFormat']=exports[a6b(0x7b)]=void 0x0;function a6z(u,z){const D=a6u();return a6z=function(M,H){M=M-0x78;let O=D[M];return O;},a6z(u,z);}const chalk_1=__importDefault(require(a6b(0xb2))),_=__importStar(require(a6b(0xb3))),util=__importStar(require(a6b(0x91))),yaml=require('js-yaml'),columnify=require(a6b(0xaa));function printAsTable(u,z,D,M=![],H=0x0){const w=a6b;!M&&console[w(0x92)](''+chalk_1['default'][w(0xae)](z));function O(g){const y=w;return g===y(0xac)?g:g[y(0xa6)](y(0xac),'');}function t(g,T){const l=w;function h(Z){const k=a6z,E=new Date(Z);return E['getDate']()+'/'+E['getMonth']()+'/'+E['getFullYear']()+'\x0a'+E[k(0x8c)]()+':'+E['getMinutes']()+':'+E[k(0x7e)]();}const N=['createdat',l(0x8f)];if(N[l(0xa2)](T['toLowerCase']())&&_[l(0xaf)](g)&&g[l(0xab)]()['length']===0xd)return h(Number(g));if(_[l(0x99)](g)){if(T!==l(0xac)&&T[l(0xa2)](l(0xac)))return g?'x':'✔';return g?'✔':'x';}if(_[l(0xa3)](g))return util[l(0x84)](g,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return g;}if(_[w(0x7a)](u)){u['length']===0x0&&console[w(0x92)](w(0x80)+z[w(0xa0)]()+'\x20found');const g=u[w(0x88)]((N,Z)=>{const W=w,E={'i':Z+H};return Object[W(0x81)](N)['forEach'](X=>{const F=W;(_['isUndefined'](D)||D[F(0xa2)](X[F(0xa0)]()))&&_[F(0xb1)](E,O(X),t(N[X],X));}),E;}),T=_[w(0x94)](Object['keys']((g===null||g===void 0x0?void 0x0:g[0x0])||[]))[w(0x96)]((N,Z)=>{const I=w,E=X=>X!=='i'?X!==I(0x9a)?0x0:0x1:0x2;return E(Z)-E(N);}),h={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!M,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':T};console[w(0x92)](columnify(g,h));}else console[w(0x92)](u);}exports[a6b(0x7b)]=printAsTable;function consoleFormat(u){const q=a6b;if(!_[q(0xa3)](u))return u===null||u===void 0x0?void 0x0:u[q(0xab)]();return util[q(0x84)](u,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6b(0x79)]=consoleFormat;const handleJsonOutput=(u,z)=>{const e=a6b,D=u===e(0x9d);if(D)console[e(0x92)](JSON[e(0xa1)](z,null,'\x20'));};exports['handleJsonOutput']=handleJsonOutput;function a6u(){const U=['inspect','safeDump','handleFormattedOutput','yaml','map','627388kcbCeR','20nMUojO','462dPfAcW','getHours','yml','printResponse','updatedat','3969970VCoWto','util','log','getOwnPropertyDescriptor','clone','105897FCqUhX','sort','2wrJQDZ','999465JGCCzF','isBoolean','internalId','hasOwnProperty','create','json','732CPTObc','call','toLowerCase','stringify','includes','isObjectLike','configurable','default','replace','__setModuleDefault','defineProperty','2790rQAwwU','columnify','toString','disabled','15704KdEGoB','bold','isFinite','13566LwHXnh','set','chalk','lodash','__esModule','handleJsonOutput','format','__createBinding','consoleFormat','isArrayLike','printAsTable','__importStar','get','getSeconds','172904erXawC','No\x20','keys','writable','handleYamlOutput'];a6u=function(){return U;};return a6u();}const handleYamlOutput=(u,z)=>{const Q=a6b,D=u===Q(0x87)||u===Q(0x8d);if(D)console[Q(0x92)](yaml[Q(0x85)](z));};exports[a6b(0x83)]=handleYamlOutput;const handleFormattedOutput=(u,z)=>{const r=a6b,D=u===r(0xb6);if(D)console['log'](consoleFormat(z));};exports[a6b(0x86)]=handleFormattedOutput;const printResponse=(u,z)=>{const i=a6b;(0x0,exports[i(0xb5)])(u,z),(0x0,exports[i(0x83)])(u,z),(0x0,exports['handleFormattedOutput'])(u,z);};exports[a6b(0x8e)]=printResponse;
@@ -1 +1 @@
1
- 'use strict';const a7C=a7M;(function(N,M){const B=a7M,V=N();while(!![]){try{const L=parseInt(B(0x1a0))/0x1*(-parseInt(B(0x1a2))/0x2)+-parseInt(B(0x1c1))/0x3*(-parseInt(B(0x1b6))/0x4)+parseInt(B(0x1a9))/0x5*(-parseInt(B(0x1a6))/0x6)+-parseInt(B(0x1ac))/0x7+parseInt(B(0x1ae))/0x8*(parseInt(B(0x1b4))/0x9)+-parseInt(B(0x1ab))/0xa+-parseInt(B(0x1b9))/0xb*(-parseInt(B(0x1a3))/0xc);if(L===M)break;else V['push'](V['shift']());}catch(k){V['push'](V['shift']());}}}(a7N,0x31fa7));var __importDefault=this&&this['__importDefault']||function(N){const O=a7M;return N&&N[O(0x1ba)]?N:{'default':N};};Object[a7C(0x1c0)](exports,a7C(0x1ba),{'value':!![]}),exports[a7C(0x1ad)]=exports[a7C(0x1b0)]=void 0x0;const chalk_1=__importDefault(require(a7C(0x1cb))),colored=(N,M)=>{return M===undefined?N:chalk_1['default'][M](N);},getAsciiChart=(N,M={})=>{const N0=a7C,V=Array[N0(0x1bd)](N[0x0])?N:[N];let L=typeof M[N0(0x1b2)]!==N0(0x1c5)?M[N0(0x1b2)]:V[0x0][0x0],k=typeof M[N0(0x1c4)]!==N0(0x1c5)?M[N0(0x1c4)]:V[0x0][0x0];for(let n=0x0;n<V['length'];n++){for(let I=0x0;I<V[n][N0(0x1c2)];I++){L=Math[N0(0x1b2)](L,V[n][I]),k=Math[N0(0x1c4)](k,V[n][I]);}}let R=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],r=Math[N0(0x1b5)](k-L),Q=typeof M[N0(0x19f)]!==N0(0x1c5)?M[N0(0x19f)]:0x3,z=typeof M[N0(0x1b1)]!==N0(0x1c5)?M[N0(0x1b1)]:N0(0x1b8),h=typeof M['height']!==N0(0x1c5)?M['height']:r,X=typeof M[N0(0x19e)]!==N0(0x1c5)?M[N0(0x19e)]:['blue',N0(0x1bc),N0(0x1a4),N0(0x1a1),'black'],u=r!==0x0?h/r:0x1,p=Math[N0(0x1a8)](L*u),F=Math[N0(0x1a8)](k*u),S=Math[N0(0x1b5)](F-p),b=0x0;for(let d=0x0;d<V[N0(0x1c2)];d++){b=Math[N0(0x1c4)](b,V[d][N0(0x1c2)]);}b=b+Q;let s=typeof M[N0(0x1af)]!==N0(0x1c5)?M['symbols']:R,c=M[N0(0x1c9)]!==undefined?M['format']:function(v){const N1=N0;return(z+v[N1(0x1b7)](0x2)+M[N1(0x1c7)])[N1(0x1c8)](-z[N1(0x1c2)]);},T=new Array(S+0x1);for(let v=0x0;v<=S;v++){T[v]=new Array(b);for(let a=0x0;a<b;a++){T[v][a]='\x20';}}for(let l=p;l<=F;++l){const o=c(S>0x0?k-(l-p)*r/S:l,l-p);T[l-p][Math[N0(0x1c4)](Q-o[N0(0x1c2)],0x0)]=o,T[l-p][Q-0x1]=l==0x0?s[0x0]:s[0x1];}for(let t=0x0;t<V['length'];t++){let g=X[t%X[N0(0x1c2)]],m=Math[N0(0x1a8)](V[t][0x0]*u)-p;T[S-m][Q-0x1]=colored(s[0x0],g);for(let W=0x0;W<V[t][N0(0x1c2)]-0x1;W++){let K=Math[N0(0x1a8)](V[t][W+0x0]*u)-p,A=Math['round'](V[t][W+0x1]*u)-p;if(K==A)T[S-K][W+Q]=colored(s[0x4],g);else{T[S-A][W+Q]=colored(K>A?s[0x5]:s[0x6],g),T[S-K][W+Q]=colored(K>A?s[0x7]:s[0x8],g);let e=Math[N0(0x1b2)](K,A),f=Math['max'](K,A);for(let G=e+0x1;G<f;G++){T[S-G][W+Q]=colored(s[0x9],g);}}}}const {startTs:U,endTs:Z}=M;if(U||Z){const q=J=>{const N2=N0;if(!J)return N2(0x1a5);const P=J[N2(0x1a7)](undefined,{'day':'2-digit','month':'2-digit','year':N2(0x1bf)}),H=J[N2(0x1ca)](undefined,{'hourCycle':N2(0x1be)});return P+'\x20'+H;},w=q(Z),E=q(U),D=z[N0(0x1c8)](0x0,Math[N0(0x1c4)](0x2,z[N0(0x1c2)]-E[N0(0x1c2)]/0x2+0x1)),Y='\x20'[N0(0x1b3)](Math[N0(0x1c4)](b-(z['length']+w[N0(0x1c2)]/0x2),0x1));T[N0(0x1bb)]([''+D+E+Y+w]),T[N0(0x1bb)]([]);}return T[N0(0x1aa)](J=>J[N0(0x1c6)](''))['join']('\x0a');};function a7M(N,M){const V=a7N();return a7M=function(L,k){L=L-0x19e;let R=V[L];return R;},a7M(N,M);}exports['getAsciiChart']=getAsciiChart;function a7N(){const N4=['padding','min','repeat','93528eUGIEY','abs','1509908Xewkyp','toFixed','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3242404QjqDdm','__esModule','push','red','isArray','h24','2-digit','defineProperty','3lcKccy','length','floor','max','undefined','join','unit','slice','format','toLocaleTimeString','chalk','colors','offset','131jKtVxS','grey','5444AfEIra','24lTkrXV','green','\x20\x20\x20','217128MyFURB','toLocaleDateString','round','5ygXWvd','map','2604070VbafzO','1200283FZjwmS','downSampleData','48ojDfvA','symbols','getAsciiChart'];a7N=function(){return N4;};return a7N();}const downSampleData=(N,M)=>{const N3=a7C,V=N[N3(0x1c2)];if(M>=V||M===0x0)return N;const L=[];let k=0x0;const R=(V-0x2)/(M-0x2);let r=0x0,Q,z,h,X;L[k++]=N[r];for(var u=0x0;u<M-0x2;u++){let y=0x0,c=0x0,T=Math[N3(0x1c3)]((u+0x1)*R)+0x1,U=Math['floor']((u+0x2)*R)+0x1;U=U<V?U:V;var p=U-T;for(;T<U;T++){y+=N[T][0x0],c+=N[T][0x1];}y/=p,c/=p;var F=Math['floor'](u*R)+0x1,S=Math['floor']((u+0x1)*R)+0x1,b=N[r][0x0],s=N[r][0x1];z=h=-0x1;for(;F<S;F++){h=Math['abs']((b-y)*(N[F][0x1]-s)-(b-N[F][0x0])*(c-s))*0.5,h>z&&(z=h,Q=N[F],X=F);}L[k++]=Q,r=X;}return L[k++]=N[V-0x1],L;};exports[a7C(0x1ad)]=downSampleData;
1
+ 'use strict';const a7c=a7z;(function(u,z){const n=a7z,D=u();while(!![]){try{const M=-parseInt(n(0xed))/0x1+-parseInt(n(0x109))/0x2*(-parseInt(n(0xff))/0x3)+parseInt(n(0xf7))/0x4+-parseInt(n(0xfb))/0x5*(parseInt(n(0xf6))/0x6)+parseInt(n(0x113))/0x7+-parseInt(n(0x104))/0x8+-parseInt(n(0xee))/0x9;if(M===z)break;else D['push'](D['shift']());}catch(H){D['push'](D['shift']());}}}(a7u,0x1d90d));var __importDefault=this&&this[a7c(0xf5)]||function(u){return u&&u['__esModule']?u:{'default':u};};Object['defineProperty'](exports,a7c(0x102),{'value':!![]}),exports[a7c(0xf9)]=exports['getAsciiChart']=void 0x0;const chalk_1=__importDefault(require('chalk')),colored=(u,z)=>{return z===undefined?u:chalk_1['default'][z](u);},getAsciiChart=(u,z={})=>{const S=a7c,D=Array[S(0xf0)](u[0x0])?u:[u];let M=typeof z[S(0xec)]!==S(0x101)?z['min']:D[0x0][0x0],H=typeof z[S(0xfd)]!==S(0x101)?z['max']:D[0x0][0x0];for(let k=0x0;k<D[S(0x106)];k++){for(let l=0x0;l<D[k][S(0x106)];l++){M=Math['min'](M,D[k][l]),H=Math[S(0xfd)](H,D[k][l]);}}let O=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],t=Math[S(0x110)](H-M),g=typeof z['offset']!==S(0x101)?z[S(0x105)]:0x3,T=typeof z['padding']!=='undefined'?z['padding']:S(0xfa),h=typeof z['height']!==S(0x101)?z[S(0xf8)]:t,N=typeof z['colors']!=='undefined'?z[S(0x114)]:[S(0x10a),S(0xf4),'green',S(0xfe),S(0x103)],Z=t!==0x0?h/t:0x1,E=Math['round'](M*Z),X=Math['round'](H*Z),R=Math[S(0x110)](X-E),b=0x0;for(let W=0x0;W<D[S(0x106)];W++){b=Math[S(0xfd)](b,D[W][S(0x106)]);}b=b+g;let A=typeof z[S(0xf2)]!==S(0x101)?z['symbols']:O,o=z[S(0xef)]!==undefined?z[S(0xef)]:function(F){const u0=S;return(T+F[u0(0x111)](0x2)+z[u0(0x10b)])['slice'](-T[u0(0x106)]);},d=new Array(R+0x1);for(let F=0x0;F<=R;F++){d[F]=new Array(b);for(let I=0x0;I<b;I++){d[F][I]='\x20';}}for(let q=E;q<=X;++q){const e=o(R>0x0?H-(q-E)*t/R:q,q-E);d[q-E][Math[S(0xfd)](g-e[S(0x106)],0x0)]=e,d[q-E][g-0x1]=q==0x0?A[0x0]:A[0x1];}for(let Q=0x0;Q<D['length'];Q++){let r=N[Q%N[S(0x106)]],U=Math[S(0x107)](D[Q][0x0]*Z)-E;d[R-U][g-0x1]=colored(A[0x0],r);for(let L=0x0;L<D[Q][S(0x106)]-0x1;L++){let C=Math[S(0x107)](D[Q][L+0x0]*Z)-E,J=Math[S(0x107)](D[Q][L+0x1]*Z)-E;if(C==J)d[R-C][L+g]=colored(A[0x4],r);else{d[R-J][L+g]=colored(C>J?A[0x5]:A[0x6],r),d[R-C][L+g]=colored(C>J?A[0x7]:A[0x8],r);let a=Math[S(0xec)](C,J),V=Math[S(0xfd)](C,J);for(let m=a+0x1;m<V;m++){d[R-m][L+g]=colored(A[0x9],r);}}}}const {startTs:K,endTs:w}=z;if(K||w){const B=s=>{const u1=S;if(!s)return u1(0x10d);const v=s[u1(0x10e)](undefined,{'day':u1(0x112),'month':u1(0x112),'year':u1(0x112)}),p=s[u1(0x10c)](undefined,{'hourCycle':u1(0x10f)});return v+'\x20'+p;},f=B(w),G=B(K),Y=T[S(0xf3)](0x0,Math[S(0xfd)](0x2,T[S(0x106)]-G[S(0x106)]/0x2+0x1)),P='\x20'[S(0xf1)](Math[S(0xfd)](b-(T['length']+f[S(0x106)]/0x2),0x1));d[S(0x115)]([''+Y+G+P+f]),d[S(0x115)]([]);}return d[S(0x100)](s=>s['join'](''))['join']('\x0a');};function a7z(u,z){const D=a7u();return a7z=function(M,H){M=M-0xec;let O=D[M];return O;},a7z(u,z);}exports[a7c(0xfc)]=getAsciiChart;function a7u(){const u3=['length','round','floor','334OsCnLu','blue','unit','toLocaleTimeString','\x20\x20\x20','toLocaleDateString','h24','abs','toFixed','2-digit','818139QTouuD','colors','push','min','143319DAHxCL','1532178lUnUGW','format','isArray','repeat','symbols','slice','red','__importDefault','226074WVkZDB','672448RaxBHo','height','downSampleData','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','5mscivp','getAsciiChart','max','grey','3921MviAmQ','map','undefined','__esModule','black','247336BzHUFy','offset'];a7u=function(){return u3;};return a7u();}const downSampleData=(u,z)=>{const u2=a7c,D=u[u2(0x106)];if(z>=D||z===0x0)return u;const M=[];let H=0x0;const O=(D-0x2)/(z-0x2);let t=0x0,g,T,h,N;M[H++]=u[t];for(var Z=0x0;Z<z-0x2;Z++){let o=0x0,d=0x0,K=Math[u2(0x108)]((Z+0x1)*O)+0x1,w=Math[u2(0x108)]((Z+0x2)*O)+0x1;w=w<D?w:D;var E=w-K;for(;K<w;K++){o+=u[K][0x0],d+=u[K][0x1];}o/=E,d/=E;var X=Math[u2(0x108)](Z*O)+0x1,R=Math['floor']((Z+0x1)*O)+0x1,b=u[t][0x0],A=u[t][0x1];T=h=-0x1;for(;X<R;X++){h=Math[u2(0x110)]((b-o)*(u[X][0x1]-A)-(b-u[X][0x0])*(d-A))*0.5,h>T&&(T=h,g=u[X],N=X);}M[H++]=g,t=N;}return M[H++]=u[D-0x1],M;};exports[a7c(0xf9)]=downSampleData;
@@ -1 +1 @@
1
- 'use strict';const a8S=a8M;(function(N,M){const F=a8M,V=N();while(!![]){try{const L=-parseInt(F(0x1d4))/0x1*(-parseInt(F(0x1d3))/0x2)+parseInt(F(0x1df))/0x3+parseInt(F(0x2c1))/0x4*(parseInt(F(0x216))/0x5)+-parseInt(F(0x262))/0x6*(parseInt(F(0x1e7))/0x7)+parseInt(F(0x253))/0x8*(parseInt(F(0x2c3))/0x9)+parseInt(F(0x212))/0xa*(parseInt(F(0x240))/0xb)+-parseInt(F(0x21a))/0xc;if(L===M)break;else V['push'](V['shift']());}catch(k){V['push'](V['shift']());}}}(a8N,0x67cc8));var __createBinding=this&&this[a8S(0x29b)]||(Object['create']?function(N,M,V,L){const b=a8S;if(L===undefined)L=V;var R=Object[b(0x234)](M,V);(!R||('get'in R?!M[b(0x233)]:R[b(0x277)]||R[b(0x2ab)]))&&(R={'enumerable':!![],'get':function(){return M[V];}}),Object['defineProperty'](N,L,R);}:function(N,M,V,L){if(L===undefined)L=V;N[L]=M[V];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(N,M){const s=a8S;Object[s(0x273)](N,s(0x27d),{'enumerable':!![],'value':M});}:function(N,M){const y=a8S;N[y(0x27d)]=M;}),__importStar=this&&this[a8S(0x1d1)]||function(N){const T=a8S;if(N&&N[T(0x233)])return N;var M={};if(N!=null){for(var V in N)if(V!=='default'&&Object[T(0x214)][T(0x21f)][T(0x2ae)](N,V))__createBinding(M,N,V);}return __setModuleDefault(M,N),M;},__awaiter=this&&this[a8S(0x20f)]||function(N,M,V,L){function k(R){return R instanceof V?R:new V(function(r){r(R);});}return new(V||(V=Promise))(function(R,r){function Q(X){try{h(L['next'](X));}catch(u){r(u);}}function z(X){const U=a8M;try{h(L[U(0x24c)](X));}catch(u){r(u);}}function h(X){const Z=a8M;X['done']?R(X[Z(0x1e2)]):k(X[Z(0x1e2)])[Z(0x223)](Q,z);}h((L=L['apply'](N,M||[]))['next']());});},__importDefault=this&&this[a8S(0x287)]||function(N){const n=a8S;return N&&N[n(0x233)]?N:{'default':N};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8S(0x211)]=void 0x0;const _=__importStar(require(a8S(0x2bb))),chalk_1=__importDefault(require('chalk')),fs=__importStar(require('fs')),utils_1=require(a8S(0x2af)),api_helpers_1=require('./api-helpers'),inquirer_pagination_prompt_1=require(a8S(0x23c)),inquirer=require('inquirer'),inquirerSearchList=require(a8S(0x22e)),yaml=require(a8S(0x2a4));function a8M(N,M){const V=a8N();return a8M=function(L,k){L=L-0x1cc;let R=V[L];return R;},a8M(N,M);}var ConfirmChoices;(function(N){const I=a8S;N['YES']=I(0x28b),N['REPEAT']=I(0x1d0),N[I(0x292)]=I(0x27c),N['SAVE']='No,\x20but\x20save\x20as\x20file',N[I(0x2a8)]='No,\x20abort';}(ConfirmChoices||(ConfirmChoices={})));function a8N(){const Nc=['password','string','charAt','ABORT','red','contextProvider','configurable','max','askConfirm','call','./utils','maxLength','assign','list','propToType','log\x20sink','resultCache','\x20to\x20use:','name','pipelines','required','array','lodash','isBoolean','templates','toUpperCase','to\x20use:','secret','1298660DjnLjE','not\x20completed','7071102YZvVow','minLength','find','Configuration\x20file\x20written\x20to\x20','message','isEmpty','No,\x20repeat','__importStar','\x20characters,\x20is\x20','4lhHTTZ','237491ILwFnz','warning','logSinks','must\x20be\x20a\x20number,\x20is\x20','confirmationPrompt','getType','volumes','boolean','addons','properties','nextCursor','321390OKQfKX','askForProject','retry','value','askForTemplateRun','greenBright','items','values','3904201dBZUgs','nextPageCursor','Please\x20confirm\x20following\x20configuration:\x0a','\x20characters','description','domain','askForTemplate','example','Choose\x20the\x20login\x20token:','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','loginPrompt','green','backups','\x20in\x20','isArray','service','saveFile','bold','tmpCmdPath','runs','safeDump','fileName','subdomain','length','services','trim','getCurrentProjectName','template','stringify','What\x20do\x20you\x20want\x20to\x20use\x20as','main-context','registries','filter','job\x20builds','pop','addon','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','askArrayEntry','What\x27s\x20the\x20','__awaiter','reset','InquirerHelper','1590alPNYR','safeLoad','prototype','deleteWarningPrompt','5bveLdv','project','askForProjectScopedResourcePaginated','getInnerType','11122860EAMUrE','askGeneric','json','\x20(startedAt:\x20','Unexpected\x20file\x20type:\x20','hasOwnProperty','apiClient','editPayload','askForResourcePaginated','then','.*\x5c.(json|yaml|yml)$','Do\x20you\x20want\x20to\x20add','askForJob','validate','job\x20build','choice','job:\x20\x27','fullName','No\x20builds\x20found','addon:\x20\x27','inquirer-search-list','repeat','askForProjectScopedResource','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','credentials','__esModule','getOwnPropertyDescriptor','opt','override','search-list','editedResult','concat','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','input','./pagination/inquirer-pagination-prompt','getQuestionString','askForService','builds','15037iDBLBf','object','domain\x20(','test','createdAt',',\x20supported\x20types:\x20[json|yaml|yml]','ask','addEntry','for\x20this\x20','a\x20Northflank\x20resource','Go\x20to\x20editor','doesn\x27t\x20match\x20pattern\x20\x27','throw','pattern','rawObject','isUndefined','bgGrey','getPathString','success','8korcPy','map','projects','retrievePayloadViaInteractiveCli','askForPipeline','askForSecret','pathVars','Context\x20name\x20already\x20exists.','get','\x20Example:\x20','confirmation','\x20and\x20it\x20','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','completedAt','join','6vMhrVm','isObject','templateRuns','body','this\x20option\x20is\x20required,\x20please\x20answer','askForJobRun','Enter\x20the\x20','push','Should\x20it\x20be','tokenPrompt','data','askForResource','pagination-prompt','jobs','Do\x20you\x20want\x20to\x20add\x20more','askForVolume','cursor','defineProperty','project:\x20\x27','elements','token','writable','volume','secrets','pagination','don\x27t\x20change','No,\x20edit','default','grey','enum','job','Context\x20with\x20name\x20\x27','prompt','defaultPaginationPageSize','integer','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','toString','__importDefault','isValidJSON','includes','askForCredentials','Yes,\x20send','type','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','minimum','subdomains','Choose\x20the\x20','domains','EDIT','has','found','writeFileSync','set','Aborted.','YES','oneOf','slice','__createBinding','askForLogSink','split','maximum','\x20type?','confirm','blue','No\x20','askForAddonBackup','js-yaml'];a8N=function(){return Nc;};return a8N();}class InquirerHelper{constructor(N){const d=a8S;this[d(0x220)]=N,this[d(0x283)]=0x32,this[d(0x221)]=M=>__awaiter(this,void 0x0,void 0x0,function*(){const v=d,{editedResult:V}=yield inquirer[v(0x282)]([{'type':'editor','name':v(0x238),'message':v(0x24a),'default':yaml[v(0x1fb)](M)}]);return yaml[v(0x213)](V);}),this[d(0x1f7)]=M=>__awaiter(this,void 0x0,void 0x0,function*(){const a=d,V=r=>a(0x21e)+r+a(0x245);function L(){return __awaiter(this,void 0x0,void 0x0,function*(){const l=a8M;return inquirer[l(0x282)]([{'type':'input','name':l(0x1fc),'message':l(0x20c),'validate':r=>new RegExp(l(0x224))[l(0x243)](r)?!![]:V(r)}]);});}const {fileName:k}=yield L(),R=k[a(0x286)]()[a(0x29d)]('.')[a(0x209)]();try{switch(R){case a(0x21c):(0x0,utils_1[a(0x252)])('Configuration\x20file\x20written\x20to\x20'+k);return fs[a(0x295)](k,JSON[a(0x203)](M,null,'\x20\x20'));case'yaml':case'yml':(0x0,utils_1['success'])(a(0x1cd)+k);return fs[a(0x295)](k,yaml[a(0x1fb)](M));default:(0x0,utils_1[a(0x1d5)])(V(R));}}catch(r){(0x0,utils_1[a(0x1d5)])('Writing\x20configuration\x20failed:\x20'+r[a(0x1ce)]);}return undefined;}),this['filter']=(M,V)=>L=>{const o=d,k=typeof L===o(0x2a6)?L[o(0x200)]():L;return V===![]&&k===o(0x27b)?'':k;},this['validate']=(M,V,L)=>k=>{const t=d,R=[];if(k===''||k==='don\x27t\x20change'){if(V!==![])R[t(0x269)](t(0x266));else return!![];}M[t(0x28c)]==='string'&&!_['isUndefined'](M[t(0x24d)])&&R['push'](new RegExp(M[t(0x24d)])['test'](k)?!![]:t(0x24b)+M[t(0x24d)]+'\x27');M[t(0x28c)]===t(0x2a6)&&!_[t(0x24f)](M[t(0x2c4)])&&R['push'](k[t(0x1fe)]>=M[t(0x2c4)]?!![]:t(0x28d)+M['minLength']+'\x20characters,\x20is\x20'+k[t(0x1fe)]+'\x20characters');M[t(0x28c)]===t(0x2a6)&&!_[t(0x24f)](M[t(0x2b0)])&&R[t(0x269)](k[t(0x1fe)]<=M[t(0x2b0)]?!![]:t(0x1f0)+M['maxLength']+t(0x1d2)+k[t(0x1fe)]+t(0x1ea));L&&Number['isNaN'](parseInt(k,0xa))&&R[t(0x269)](t(0x1d7)+k);M[t(0x28c)]===t(0x284)&&!_[t(0x24f)](M[t(0x28e)])&&R['push'](k>=M['minimum']?!![]:'must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20'+M[t(0x28e)]);M[t(0x28c)]===t(0x284)&&!_[t(0x24f)](M['maximum'])&&R[t(0x269)](k<=M[t(0x29e)]?!![]:'must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20'+M[t(0x29e)]);if(M[t(0x28c)]===t(0x24e)){const z=(0x0,utils_1['isValidJSON'])(k);R[t(0x269)](z===![]||_[t(0x1cf)](z)?t(0x285):!![]);}const r=R[t(0x207)](h=>h!==!![]),Q=(M===null||M===void 0x0?void 0x0:M['example'])?'\x0a'+chalk_1[t(0x27d)][t(0x2a9)]('>>')+t(0x25c)+chalk_1[t(0x27d)]['whiteBright'](JSON[t(0x203)](M[t(0x1ee)])):'';return r[t(0x1fe)]>0x0?r[t(0x261)](chalk_1[t(0x27d)]['underline'](t(0x25e)))+Q:!![];},this[d(0x251)]=(M,V,L)=>{const g=d,k=M[M[g(0x1fe)]-0x1];function R(){const m=g;return M[m(0x29a)](0x0,-0x1)['map'](z=>z[m(0x2a7)](0x0)[m(0x2be)]()+z[m(0x29a)](0x1))[m(0x261)]('>');}const r=M[g(0x1fe)]>0x1?chalk_1[g(0x27d)][g(0x250)]['whiteBright'](R())+':\x20':'',Q=L?'\x20('+chalk_1[g(0x27d)][g(0x2a1)](L)+')':'';return chalk_1[g(0x27d)][g(0x210)](''+r+V+'\x20'+chalk_1[g(0x27d)]['bold'][g(0x1e4)](k)+Q+'?');},this['askForResource']=(M,V,L)=>__awaiter(this,void 0x0,void 0x0,function*(){const W=d;if(V[W(0x1fe)]<0x1){const r=L?W(0x248)+L:W(0x294);throw new Error(W(0x2a2)+M+'\x20'+r+'.');}const k=W(0x290)+M+'\x20to\x20use:',R=V[W(0x1fe)]>0x4?W(0x237):W(0x2b2);return(yield inquirer[W(0x282)]([{'type':R,'name':W(0x2b7),'message':k,'choices':V}]))['name'];}),this['askForResourcePaginated']=(M,V,L)=>__awaiter(this,void 0x0,void 0x0,function*(){const x=d,{elements:k,nextCursor:R}=yield V();if(k[x(0x1fe)]<0x1){const z=L?x(0x248)+L:x(0x294);throw new Error(x(0x2a2)+M+'\x20'+z+'.');}const r=x(0x290)+M+x(0x2b6);if(R!==undefined){const h=({nextPageCursor:X})=>__awaiter(this,void 0x0,void 0x0,function*(){const K=x,u=yield V(X);return{'elements':u[K(0x275)],'nextPageCursor':u[K(0x1de)]};});return(yield inquirer[x(0x282)]([{'type':x(0x26e),'name':x(0x2b7),'message':r,'choices':k,'nextPageCursor':R,'loadMore':h}]))[x(0x2b7)];}const Q=k['length']>0x4?'search-list':x(0x2b2);return(yield inquirer[x(0x282)]([{'type':Q,'name':x(0x2b7),'message':r,'choices':k}]))[x(0x2b7)];}),this[d(0x21b)]=(M,V)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const A=d,L=''+(V?'('+chalk_1[A(0x27d)][A(0x2a1)](V)+')\x20':''),k=A(0x268)+chalk_1[A(0x27d)]['green'](M)+'\x20'+L+A(0x2bf),R=this[A(0x227)]({'type':A(0x2a6),'required':!![]});return(yield inquirer[A(0x282)]([{'type':A(0x23b),'name':A(0x2b7),'message':k,'validate':R}]))['name'];}),this[d(0x2ad)]=M=>__awaiter(this,void 0x0,void 0x0,function*(){const e=d;return(yield inquirer[e(0x282)]([{'type':e(0x2a0),'name':e(0x2b7),'message':M,'default':!![]}]))['name'];}),this[d(0x23e)]=M=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const G=d,V=L=>k=>__awaiter(this,void 0x0,void 0x0,function*(){const f=a8M;var R;const r=yield this['apiClient'][f(0x2b2)]['services']({'parameters':{'projectId':L},'options':{'per_page':this[f(0x283)],'cursor':k}}),Q=r[f(0x26c)][f(0x1ff)]['map'](z=>z['id']);return{'elements':Q,'nextCursor':(R=r[f(0x27a)])===null||R===void 0x0?void 0x0:R[f(0x272)]};});return this['askForProjectScopedResourcePaginated'](G(0x1f6),V,M);}),this[d(0x1ed)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const i=d,M=V=>__awaiter(this,void 0x0,void 0x0,function*(){const q=a8M;var L;const k=yield this[q(0x220)]['list']['templates']({'options':{'per_page':this[q(0x283)],'cursor':V}}),R=k[q(0x26c)][q(0x2bd)][q(0x254)](r=>r['id']);return{'elements':R,'nextCursor':(L=k['pagination'])===null||L===void 0x0?void 0x0:L[q(0x272)]};});return this['askForResourcePaginated'](i(0x202),M);}),this[d(0x1e3)]=M=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w=d;if(_[w(0x24f)](M))throw new Error('Template\x20id\x20not\x20provided.');const V=L=>__awaiter(this,void 0x0,void 0x0,function*(){const E=w;var k;let R=this[E(0x283)];const r=yield this['apiClient']['list'][E(0x264)]({'parameters':{'templateId':M},'options':{'per_page':R,'cursor':L}}),Q=r['data']['templateRuns'][E(0x254)](z=>z['id']+E(0x21d)+z['createdAt']+')');return{'elements':Q,'nextCursor':(k=r[E(0x27a)])===null||k===void 0x0?void 0x0:k[E(0x272)]};});return this[w(0x222)]('template\x20run',V)[w(0x223)](L=>L[w(0x29d)]('\x20')[0x0]);}),this[d(0x29c)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=d,M=V=>__awaiter(this,void 0x0,void 0x0,function*(){const D=a8M;var L;let k=this[D(0x283)];const R=yield this[D(0x220)]['list'][D(0x1d6)]({'options':{'per_page':k,'cursor':V}}),r=R['data'][D(0x1d6)]['map'](Q=>Q['id']);return{'elements':r,'nextCursor':(L=R['pagination'])===null||L===void 0x0?void 0x0:L['cursor']};});return this[Y(0x222)](Y(0x2b4),M);}),this[d(0x257)]=M=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const V=L=>k=>__awaiter(this,void 0x0,void 0x0,function*(){const J=a8M;var R;const r=yield this['apiClient']['list'][J(0x2b8)]({'parameters':{'projectId':L},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':k}}),Q=r[J(0x26c)][J(0x2b8)][J(0x254)](z=>z['id']);return{'elements':Q,'nextCursor':(R=r['pagination'])===null||R===void 0x0?void 0x0:R[J(0x272)]};});return this['askForProjectScopedResourcePaginated']('pipeline',V,M);}),this[d(0x226)]=M=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const V=L=>k=>__awaiter(this,void 0x0,void 0x0,function*(){const j=a8M;var R;const r=yield this[j(0x220)][j(0x2b2)][j(0x26f)]({'parameters':{'projectId':L},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':k}}),Q=r[j(0x26c)][j(0x26f)][j(0x254)](z=>z['id']);return{'elements':Q,'nextCursor':(R=r['pagination'])===null||R===void 0x0?void 0x0:R[j(0x272)]};});return this['askForProjectScopedResourcePaginated']('job',V,M);}),this[d(0x267)]=(M,V)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const H=d,L=k=>R=>__awaiter(this,void 0x0,void 0x0,function*(){const P=a8M;var r;const Q=yield this['apiClient'][P(0x25b)]['job']['runs']({'parameters':{'projectId':k,'jobId':M},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':R}}),z=Q[P(0x26c)][P(0x1fa)][P(0x254)](h=>h['id']+P(0x21d)+h['startedAt']+')');return{'elements':z,'nextCursor':(r=Q[P(0x27a)])===null||r===void 0x0?void 0x0:r[P(0x272)]};});return this[H(0x218)]('job\x20runs',L,V,H(0x22a)+M+'\x27')[H(0x223)](k=>k['split']('\x20')[0x0]);}),this['askForBuild']=(M,V,L)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const O=d;if(L!==undefined){const k=R=>r=>__awaiter(this,void 0x0,void 0x0,function*(){const B=a8M;var Q;const z=yield this[B(0x220)]['get'][B(0x280)][B(0x23f)]({'parameters':{'projectId':R,'jobId':L},'options':{'per_page':this[B(0x283)],'cursor':r}});return{'elements':z[B(0x26c)]['builds'][B(0x254)](h=>h['id']+B(0x21d)+h['createdAt']+')'),'nextCursor':(Q=z[B(0x27a)])===null||Q===void 0x0?void 0x0:Q['cursor']};});return this['askForProjectScopedResourcePaginated'](O(0x208),k,M,O(0x22a)+L+'\x27')[O(0x223)](R=>R[O(0x29d)]('\x20')[0x0]);}if(V!==undefined){const R=r=>Q=>__awaiter(this,void 0x0,void 0x0,function*(){const C=O;var z;const h=yield this['apiClient']['get'][C(0x1f6)][C(0x23f)]({'parameters':{'projectId':r,'serviceId':V},'options':{'per_page':this[C(0x283)],'cursor':Q}});return{'elements':h[C(0x26c)][C(0x23f)][C(0x254)](X=>X['id']+'\x20(startedAt:\x20'+X[C(0x244)]+')'),'nextCursor':(z=h['pagination'])===null||z===void 0x0?void 0x0:z[C(0x272)]};});return this[O(0x218)](O(0x228),R,M,'service:\x20\x27'+L+'\x27')['then'](r=>r[O(0x29d)]('\x20')[0x0]);}throw new Error(O(0x22c));}),this['askForAddon']=M=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const N1=d,V=L=>k=>__awaiter(this,void 0x0,void 0x0,function*(){const N0=a8M;var R;const r=yield this[N0(0x220)]['list'][N0(0x1dc)]({'parameters':{'projectId':L},'options':{'per_page':this[N0(0x283)],'cursor':k}});return{'elements':r[N0(0x26c)]['addons'][N0(0x254)](Q=>Q['id']),'nextCursor':(R=r[N0(0x27a)])===null||R===void 0x0?void 0x0:R['cursor']};});return this['askForProjectScopedResourcePaginated'](N1(0x20a),V,M);}),this[d(0x2a3)]=(M,V)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const N3=d,L=k=>R=>__awaiter(this,void 0x0,void 0x0,function*(){const N2=a8M;var r;const Q=yield this['apiClient']['get'][N2(0x20a)][N2(0x1f3)]({'parameters':{'projectId':k,'addonId':V},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':R}});return{'elements':Q[N2(0x26c)][N2(0x1f3)]['map'](z=>z['id']+'\x20(completedAt:\x20'+(z[N2(0x260)]||N2(0x2c2))+')'),'nextCursor':(r=Q[N2(0x27a)])===null||r===void 0x0?void 0x0:r[N2(0x272)]};});return this[N3(0x218)](N3(0x1f3),L,M,N3(0x22d)+V+'\x27')[N3(0x223)](k=>k[N3(0x29d)]('\x20')[0x0]);}),this[d(0x271)]=M=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const N5=d,V=L=>__awaiter(this,void 0x0,void 0x0,function*(){const N4=a8M;return(yield this['apiClient'][N4(0x2b2)][N4(0x1da)]({'parameters':{'projectId':L}}))['data'][N4(0x254)](k=>k['id']);});return this[N5(0x230)](N5(0x278),V,M);}),this[d(0x258)]=M=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const N7=d,V=L=>k=>__awaiter(this,void 0x0,void 0x0,function*(){const N6=a8M;var R;const r=yield this[N6(0x220)][N6(0x2b2)][N6(0x279)]({'parameters':{'projectId':L},'options':{'per_page':this[N6(0x283)],'cursor':k}});return{'elements':r[N6(0x26c)][N6(0x279)]['map'](Q=>Q['id']),'nextCursor':(R=r[N6(0x27a)])===null||R===void 0x0?void 0x0:R[N6(0x272)]};});return this[N7(0x218)](N7(0x2c0),V,M);}),this['askForSubdomain']=M=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const N8=d,V=yield this[N8(0x220)][N8(0x25b)]['domain']({'parameters':{'domain':M}}),L=V[N8(0x26c)][N8(0x28f)][N8(0x254)](R=>R['name']+'\x20(full\x20domain:\x20'+R[N8(0x22b)]+')'),k=N8(0x242)+M+')';return this[N8(0x26d)](N8(0x1fd),L,k)[N8(0x223)](R=>R[N8(0x29d)]('\x20')[0x0]);}),this[d(0x215)]=M=>__awaiter(this,void 0x0,void 0x0,function*(){const N9=d;return(yield inquirer[N9(0x282)]([{'type':N9(0x2a0),'name':N9(0x25d),'message':chalk_1[N9(0x27d)]['yellowBright'](N9(0x23a)+(M||N9(0x249))+N9(0x20b)),'default':![]}]))['confirmation'];}),this[d(0x1f1)]=(M,V)=>__awaiter(this,void 0x0,void 0x0,function*(){const NN=d;_['isUndefined'](M[NN(0x2b7)])&&(V[NN(0x1fe)]<=0x0?_[NN(0x296)](M,'name',NN(0x27d)):yield(0x0,utils_1[NN(0x1e1)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const NM=NN,{name:L}=yield inquirer[NM(0x282)]([{'type':NM(0x23b),'name':NM(0x2b7),'message':NM(0x25f),'default':NM(0x205)}]);if(!M[NM(0x236)]&&V[NM(0x1cc)](k=>k[NM(0x2b7)]===L)){const {c:k}=yield inquirer[NM(0x282)]([{'type':NM(0x2a0),'name':'c','message':NM(0x281)+L+'\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','default':![]}]);if(k===![])throw new Error(NM(0x25a));_[NM(0x296)](M,NM(0x236),!![]);}_[NM(0x296)](M,'name',L);})));if(_['isUndefined'](M['token'])){const L=yield this[NN(0x26b)]();_[NN(0x296)](M,'token',L);}return M;}),this[d(0x26b)]=()=>__awaiter(this,void 0x0,void 0x0,function*(){const NV=d,{token:M}=yield inquirer['prompt']([{'type':NV(0x2a5),'name':NV(0x276),'mask':'*','message':NV(0x1ef)}]);return M;}),inquirer['registerPrompt']('search-list',inquirerSearchList),inquirer['registerPrompt'](d(0x26e),inquirer_pagination_prompt_1['DynamicReloadPaginationPrompt']);}[a8S(0x1d8)](N,M){return __awaiter(this,void 0x0,void 0x0,function*(){const NL=a8M,V=yaml['safeDump'](N),L=_[NL(0x2ac)](V['split']('\x0a')[NL(0x254)](r=>r[NL(0x1fe)])),k=chalk_1[NL(0x27d)][NL(0x27e)]('-'[NL(0x22f)](L)+'\x0a'),{confirm:R}=yield inquirer['prompt']([{'type':NL(0x2b2),'name':NL(0x2a0),'message':''+chalk_1['default'][NL(0x1f8)][NL(0x1f2)](NL(0x1e9))+k+chalk_1[NL(0x27d)]['blueBright'](V)+k,'choices':Object[NL(0x1e6)](ConfirmChoices)}]);switch(R){case ConfirmChoices[NL(0x298)]:return N;case ConfirmChoices[NL(0x2a8)]:throw new Error(NL(0x297));case ConfirmChoices['REPEAT']:return this[NL(0x256)](M);case ConfirmChoices['EDIT']:return this[NL(0x1d8)](yield this[NL(0x221)](N),M);case ConfirmChoices['SAVE']:yield this['saveFile'](N);return this[NL(0x1d8)](N,M);default:throw new Error('Something\x20unexpected\x20happened.');}});}[a8S(0x256)](N,M){return __awaiter(this,void 0x0,void 0x0,function*(){const Nk=a8M;if((M===null||M===void 0x0?void 0x0:M[Nk(0x2b5)])!==undefined)this[Nk(0x2b5)]=M===null||M===void 0x0?void 0x0:M[Nk(0x2b5)];this[Nk(0x1f9)]=M===null||M===void 0x0?void 0x0:M['cmdPath'];const V={};return yield this[Nk(0x2b3)]([],N[Nk(0x235)][Nk(0x265)],V),this[Nk(0x2b5)]=V,yield this['confirmationPrompt'](V,N);});}[a8S(0x2b3)](N,M,V,L){return __awaiter(this,void 0x0,void 0x0,function*(){const NR=a8M;let k;if(M[NR(0x299)]&&!_[NR(0x293)](M,NR(0x1dd))){if(M[NR(0x299)][NR(0x1fe)]>0x1){const {choice:R}=yield inquirer[NR(0x282)]([{'type':NR(0x2b2),'name':NR(0x229),'message':NR(0x20e)+(N[N[NR(0x1fe)]-0x1]||'')+NR(0x29f),'choices':M[NR(0x299)][NR(0x254)](r=>{var Q;return(Q=r['description'])!==null&&Q!==void 0x0?Q:'??';})}]);k=yield this['getType'](N,M[NR(0x299)][NR(0x1cc)](r=>r['description']===R),V,L);}else{const r=M[NR(0x299)][0x0];_[NR(0x296)](r,NR(0x1eb),M[NR(0x1eb)]),k=yield this[NR(0x1d9)](N,r,V,L);}k={};}else k=yield this[NR(0x1d9)](N,M,V,L);return k;});}[a8S(0x219)](N,M,V,L){var k;return __awaiter(this,void 0x0,void 0x0,function*(){const Nr=a8M;if(L===![]){const {addEntry:Q}=yield inquirer[Nr(0x282)]([{'type':Nr(0x2a0),'name':Nr(0x247),'message':this[Nr(0x251)](M,Nr(0x225),N===null||N===void 0x0?void 0x0:N[Nr(0x1eb)]),'default':![]}]);if(!Q)return V;}const R=Object['keys']((k=N===null||N===void 0x0?void 0x0:N[Nr(0x1dd)])!==null&&k!==void 0x0?k:[]),r=N[Nr(0x2b9)]||[];if(R[Nr(0x1fe)]>0x0)for(const z of R){const h=M[Nr(0x239)](z);if(M[Nr(0x1fe)]>0x0&&!_[Nr(0x293)](V,M[Nr(0x261)]('.')))_['set'](V,M[Nr(0x261)]('.'),{});yield this[Nr(0x2b3)](h,N[Nr(0x1dd)][z],V,r[Nr(0x289)](z));}else yield this['getType'](M,Object['assign'](Object[Nr(0x2b1)]({},N),{'type':Nr(0x24e)}),V,L);return V;});}[a8S(0x20d)](N,M,V,L){return __awaiter(this,void 0x0,void 0x0,function*(){const NQ=a8M;if(M&&V)return!![];const k=M?NQ(0x225):NQ(0x270),{addEntry:R}=yield inquirer[NQ(0x282)]([{'type':NQ(0x2a0),'name':'addEntry','message':this['getPathString'](N,k,M?L:undefined),'default':![]}]);return R;});}[a8S(0x1d9)](N,M,V,L){return __awaiter(this,void 0x0,void 0x0,function*(){const Nz=a8M;let k;const R=N[Nz(0x261)]('.');switch(M===null||M===void 0x0?void 0x0:M['type']){case Nz(0x2ba):{let r=!![];while(yield this['askArrayEntry'](N,r,L,M===null||M===void 0x0?void 0x0:M[Nz(0x1eb)])){const Q=_[Nz(0x25b)](V,R);_['unset'](V,R),yield this['getType'](N,M[Nz(0x1e5)],V);const z=_[Nz(0x25b)](V,R);!_[Nz(0x1f5)](Q)?_['set'](V,R,[z]):(Q[Nz(0x269)](z),_['set'](V,R,Q)),r=![];}return k||[];}case Nz(0x241):{return k=yield this[Nz(0x219)](M,N,V,L),k;}case Nz(0x24e):k=(0x0,utils_1[Nz(0x288)])(yield this['ask'](N,M,L))||undefined;break;case Nz(0x2a6):case Nz(0x1db):case'integer':default:k=yield this[Nz(0x246)](N,M,L,V);break;}return!_['isUndefined'](k)&&_[Nz(0x296)](V,R,k),k;});}['ask'](N,M,V,L){var k;return __awaiter(this,void 0x0,void 0x0,function*(){const Nh=a8M,R=N[N[Nh(0x1fe)]-0x1],{defaultValue:defaultValue=(k=M===null||M===void 0x0?void 0x0:M['example'])!==null&&k!==void 0x0?k:M===null||M===void 0x0?void 0x0:M[Nh(0x27d)],choices:choices=M===null||M===void 0x0?void 0x0:M[Nh(0x27f)],pagination:r}=yield(0x0,api_helpers_1['fetchResourceList'])(R,this[Nh(0x220)],this[Nh(0x1f9)],L,this[Nh(0x259)],N);let Q=Nh(0x23b);if(!_[Nh(0x24f)](choices)&&choices[Nh(0x1fe)]>0x0){if(r!==undefined&&r[Nh(0x1e8)]!==undefined)Q=Nh(0x26e);else choices['length']>0x4&&typeof choices[0x0]===Nh(0x2a6)?Q=Nh(0x237):Q=Nh(0x2b2);}else{if((M===null||M===void 0x0?void 0x0:M[Nh(0x28c)])===Nh(0x1db))Q='confirm';else{if((M===null||M===void 0x0?void 0x0:M['type'])===Nh(0x284))Q=Nh(0x23b);else(M===null||M===void 0x0?void 0x0:M[Nh(0x28c)])===Nh(0x24e)&&(Q='editor');}}let z=V!==![]?!_[Nh(0x263)](defaultValue)?defaultValue:JSON[Nh(0x203)](defaultValue):_[Nh(0x2bc)](defaultValue)?defaultValue:Nh(0x27b);if(choices)z=z[Nh(0x286)]();_[Nh(0x293)](this[Nh(0x2b5)],N[Nh(0x261)]('.'))&&(z=this['resultCache'][N[Nh(0x261)]('.')]);const h=choices&&V===![]?[Nh(0x27b),...choices]:choices,X=(M===null||M===void 0x0?void 0x0:M['type'])===Nh(0x284),u=Object[Nh(0x2b1)]({'type':Q,'name':'id','message':this[Nh(0x23d)](N,M),'choices':h,'default':z,'filter':this[Nh(0x207)](Q,V),'validate':this[Nh(0x227)](M,V,X)},r),p=(yield inquirer[Nh(0x282)]([u]))['id'];if(p==='don\x27t\x20change'||p==='')return undefined;if(X)return parseInt(p,0xa);return p;});}[a8S(0x23d)](N,M){const NX=a8S,V=(M===null||M===void 0x0?void 0x0:M['type'])!==NX(0x1db)?NX(0x204):NX(0x26a);return this[NX(0x251)](N,V,M===null||M===void 0x0?void 0x0:M['description']);}[a8S(0x1e0)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Np=a8M,N=M=>__awaiter(this,void 0x0,void 0x0,function*(){const Nu=a8M;var V;const L=yield this[Nu(0x220)][Nu(0x2b2)]['projects']({'options':{'per_page':this[Nu(0x283)],'cursor':M}}),k=L[Nu(0x26c)][Nu(0x255)][Nu(0x254)](R=>R['id']);return{'elements':k,'nextCursor':(V=L[Nu(0x27a)])===null||V===void 0x0?void 0x0:V[Nu(0x272)]};});return yield this[Np(0x222)](Np(0x217),N);});}[a8S(0x230)](N,M,V,L){return __awaiter(this,void 0x0,void 0x0,function*(){const NF=a8M,k=V||this['apiClient'][NF(0x2aa)]['getCurrentProjectName']();if(_[NF(0x24f)](k))throw new Error(NF(0x231));const R=yield M(k);return yield this[NF(0x26d)](N,R,(L?L+NF(0x1f4):'')+NF(0x274)+k+'\x27');});}[a8S(0x218)](N,M,V,L){return __awaiter(this,void 0x0,void 0x0,function*(){const NS=a8M,k=V||this[NS(0x220)][NS(0x2aa)][NS(0x201)]();if(_['isUndefined'](k))throw new Error(NS(0x231));const R=yield M(k);return yield this[NS(0x222)](N,R,(L?L+NS(0x1f4):'')+NS(0x274)+k+'\x27');});}['askForDomain'](){return __awaiter(this,void 0x0,void 0x0,function*(){const Nb=a8M,N=yield this[Nb(0x220)][Nb(0x2b2)][Nb(0x291)]({}),M=N[Nb(0x26c)][Nb(0x291)][Nb(0x254)](V=>V[Nb(0x2b7)]);return this['askForResource'](Nb(0x1ec),M);});}[a8S(0x28a)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Ns=a8M,N=yield this[Ns(0x220)][Ns(0x2b2)][Ns(0x206)]({}),M=N[Ns(0x26c)][Ns(0x232)][Ns(0x254)](V=>V['id']);return this['askForResource'](Ns(0x232),M);});}['setPathVars'](N){const Ny=a8S;this[Ny(0x259)]=N;}}exports['InquirerHelper']=InquirerHelper;
1
+ 'use strict';const a8R=a8z;(function(u,z){const X=a8z,D=u();while(!![]){try{const M=-parseInt(X(0xf6))/0x1+-parseInt(X(0x12c))/0x2*(-parseInt(X(0x132))/0x3)+parseInt(X(0x170))/0x4+parseInt(X(0x128))/0x5*(parseInt(X(0x16b))/0x6)+-parseInt(X(0xf1))/0x7+-parseInt(X(0xc8))/0x8+parseInt(X(0x11b))/0x9;if(M===z)break;else D['push'](D['shift']());}catch(H){D['push'](D['shift']());}}}(a8u,0x9aed9));var __createBinding=this&&this[a8R(0x19c)]||(Object[a8R(0x129)]?function(u,z,D,M){const b=a8R;if(M===undefined)M=D;var H=Object[b(0xb3)](z,D);(!H||(b(0x124)in H?!z[b(0x13f)]:H[b(0x18f)]||H[b(0xb2)]))&&(H={'enumerable':!![],'get':function(){return z[D];}}),Object['defineProperty'](u,M,H);}:function(u,z,D,M){if(M===undefined)M=D;u[M]=z[D];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a8R(0x129)]?function(u,z){const A=a8R;Object[A(0x117)](u,A(0x13e),{'enumerable':!![],'value':z});}:function(u,z){u['default']=z;}),__importStar=this&&this['__importStar']||function(u){const o=a8R;if(u&&u['__esModule'])return u;var z={};if(u!=null){for(var D in u)if(D!=='default'&&Object[o(0x135)][o(0x196)][o(0x155)](u,D))__createBinding(z,u,D);}return __setModuleDefault(z,u),z;},__awaiter=this&&this[a8R(0xc6)]||function(u,z,D,M){function H(O){return O instanceof D?O:new D(function(t){t(O);});}return new(D||(D=Promise))(function(O,t){const w=a8z;function g(N){try{h(M['next'](N));}catch(Z){t(Z);}}function T(N){const d=a8z;try{h(M[d(0x15d)](N));}catch(Z){t(Z);}}function h(N){const K=a8z;N[K(0x160)]?O(N[K(0x149)]):H(N[K(0x149)])[K(0x14b)](g,T);}h((M=M[w(0x15e)](u,z||[]))[w(0x10f)]());});},__importDefault=this&&this[a8R(0xaf)]||function(u){const y=a8R;return u&&u[y(0x13f)]?u:{'default':u};};function a8z(u,z){const D=a8u();return a8z=function(M,H){M=M-0xaf;let O=D[M];return O;},a8z(u,z);}Object[a8R(0x117)](exports,a8R(0x13f),{'value':!![]}),exports[a8R(0xbc)]=void 0x0;const _=__importStar(require(a8R(0xb0))),chalk_1=__importDefault(require(a8R(0xe4))),fs=__importStar(require('fs')),utils_1=require(a8R(0x16c)),api_helpers_1=require('./api-helpers'),inquirer_pagination_prompt_1=require(a8R(0xfe)),inquirer=require(a8R(0x112)),inquirerSearchList=require(a8R(0x17c)),yaml=require(a8R(0x136));var ConfirmChoices;(function(u){const k=a8R;u[k(0x11e)]=k(0x12f),u[k(0x14f)]=k(0x134),u['EDIT']='No,\x20edit',u[k(0x171)]=k(0x16d),u['ABORT']=k(0xdf);}(ConfirmChoices||(ConfirmChoices={})));function a8u(){const uw=['unset','pop','job\x20builds','has','value','body','then','\x20(completedAt:\x20','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','name','REPEAT','Template\x20id\x20not\x20provided.','split','slice','.*\x5c.(json|yaml|yml)$','yaml','call','addon:\x20\x27','Unexpected\x20file\x20type:\x20','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','minimum','stringify','data','No\x20builds\x20found','throw','apply','template','done','safeLoad','map','max','pagination','description','registerPrompt','grey','askForResourcePaginated','Do\x20you\x20want\x20to\x20add\x20more','addons','1929198InkNjj','./utils','No,\x20but\x20save\x20as\x20file','boolean','deleteWarningPrompt','3576388RSwsgF','SAVE','saveFile','editor','askForPipeline','isEmpty','search-list','askForTemplateRun','apiClient','resultCache','secret','isArray','inquirer-search-list','askForLogSink','\x20(startedAt:\x20','repeat','jobs',',\x20supported\x20types:\x20[json|yaml|yml]','Should\x20it\x20be','loginPrompt','Do\x20you\x20want\x20to\x20add','input','isObject','assign','for\x20this\x20','askArrayEntry','service','red','toUpperCase','push','\x20and\x20it\x20','writable','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','retry','createdAt','isNaN','charAt','pipeline','hasOwnProperty','What\x20do\x20you\x20want\x20to\x20use\x20as','blue','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','pipelines','isUndefined','__createBinding','contextProvider','override','prompt','completedAt','__importDefault','lodash','askForJobRun','configurable','getOwnPropertyDescriptor','askForBuild','Choose\x20the\x20login\x20token:','bgGrey','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','Something\x20unexpected\x20happened.','safeDump','pattern','trim','InquirerHelper','type','array','EDIT','tokenPrompt','greenBright','templates','fetchResourceList','askForJob','found','__awaiter','yml','2233064ZCjekX','templateRuns','writeFileSync','nextCursor','enum','a\x20Northflank\x20resource','getInnerType','editPayload','underline','Configuration\x20file\x20written\x20to\x20','\x20in\x20','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','\x20to\x20use:','success','keys','string','not\x20completed','maximum','volumes','token','propToType','runs','pathVars','No,\x20abort','json','choice','subdomain','fileName','chalk','confirmation','askForProjectScopedResourcePaginated','secrets','backups','cursor','tmpCmdPath','retrievePayloadViaInteractiveCli','join','opt','list','ask','warning','6816026YbFjux','addon','askForResource','editedResult','askGeneric','426549uFgNce','toString','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','fullName','find','askForCredentials','getCurrentProjectName','Please\x20confirm\x20following\x20configuration:\x0a','./pagination/inquirer-pagination-prompt','required','blueBright','\x20characters','job','length','pagination-prompt','askForAddon','example','\x20type?','Aborted.','green','domain','maxLength','whiteBright','set','subdomains','next','integer','confirmationPrompt','inquirer','minLength','project','isValidJSON','confirm','defineProperty','rawObject','addEntry','getQuestionString','3952773sByCvV','test','projects','YES','properties','job\x20runs','\x20(full\x20domain:\x20','getType','log\x20sink','get','What\x27s\x20the\x20','No\x20','oneOf','5DFOsYJ','create','services','reset','77548EeoYvt','bold','Go\x20to\x20editor','Yes,\x20send','filter','project:\x20\x27','51GfElCv','DynamicReloadPaginationPrompt','No,\x20repeat','prototype','js-yaml','startedAt','logSinks','setPathVars','builds','don\x27t\x20change','registries','defaultPaginationPageSize','default','__esModule','\x20characters,\x20is\x20','message','getPathString','askForDomain','credentials'];a8u=function(){return uw;};return a8u();}class InquirerHelper{constructor(u){const l=a8R;this[l(0x178)]=u,this[l(0x13d)]=0x32,this[l(0xcf)]=z=>__awaiter(this,void 0x0,void 0x0,function*(){const W=l,{editedResult:D}=yield inquirer[W(0x19f)]([{'type':W(0x173),'name':W(0xf4),'message':W(0x12e),'default':yaml[W(0xb9)](z)}]);return yaml[W(0x161)](D);}),this[l(0x172)]=z=>__awaiter(this,void 0x0,void 0x0,function*(){const F=l,D=t=>F(0x157)+t+F(0x181);function M(){return __awaiter(this,void 0x0,void 0x0,function*(){const I=a8z;return inquirer[I(0x19f)]([{'type':I(0x185),'name':I(0xe3),'message':I(0xb7),'validate':t=>new RegExp(I(0x153))[I(0x11c)](t)?!![]:D(t)}]);});}const {fileName:H}=yield M(),O=H[F(0xf7)]()[F(0x151)]('.')[F(0x146)]();try{switch(O){case F(0xe0):(0x0,utils_1['success'])('Configuration\x20file\x20written\x20to\x20'+H);return fs[F(0xca)](H,JSON['stringify'](z,null,'\x20\x20'));case F(0x154):case F(0xc7):(0x0,utils_1[F(0xd5)])(F(0xd1)+H);return fs[F(0xca)](H,yaml['safeDump'](z));default:(0x0,utils_1[F(0xf0)])(D(O));}}catch(t){(0x0,utils_1['warning'])('Writing\x20configuration\x20failed:\x20'+t[F(0x141)]);}return undefined;}),this[l(0x130)]=(z,D)=>M=>{const q=l,H=typeof M===q(0xd7)?M[q(0xbb)]():M;return D===![]&&H===q(0x13b)?'':H;},this['validate']=(z,D,M)=>H=>{const e=l,O=[];if(H===''||H==='don\x27t\x20change'){if(D!==![])O[e(0x18d)]('this\x20option\x20is\x20required,\x20please\x20answer');else return!![];}z['type']==='string'&&!_[e(0x19b)](z['pattern'])&&O[e(0x18d)](new RegExp(z['pattern'])[e(0x11c)](H)?!![]:'doesn\x27t\x20match\x20pattern\x20\x27'+z[e(0xba)]+'\x27');z[e(0xbd)]===e(0xd7)&&!_[e(0x19b)](z['minLength'])&&O[e(0x18d)](H[e(0x103)]>=z[e(0x113)]?!![]:e(0x158)+z['minLength']+e(0x140)+H[e(0x103)]+e(0x101));z[e(0xbd)]===e(0xd7)&&!_[e(0x19b)](z[e(0x10b)])&&O[e(0x18d)](H[e(0x103)]<=z[e(0x10b)]?!![]:e(0x190)+z[e(0x10b)]+'\x20characters,\x20is\x20'+H['length']+e(0x101));M&&Number[e(0x193)](parseInt(H,0xa))&&O[e(0x18d)]('must\x20be\x20a\x20number,\x20is\x20'+H);z[e(0xbd)]==='integer'&&!_[e(0x19b)](z['minimum'])&&O[e(0x18d)](H>=z['minimum']?!![]:e(0xf8)+z[e(0x159)]);z[e(0xbd)]==='integer'&&!_[e(0x19b)](z[e(0xd9)])&&O[e(0x18d)](H<=z[e(0xd9)]?!![]:'must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20'+z[e(0xd9)]);if(z[e(0xbd)]===e(0x118)){const T=(0x0,utils_1[e(0x115)])(H);O[e(0x18d)](T===![]||_[e(0x175)](T)?'must\x20be\x20a\x20valid\x20non-empty\x20json\x20string':!![]);}const t=O[e(0x130)](h=>h!==!![]),g=(z===null||z===void 0x0?void 0x0:z[e(0x106)])?'\x0a'+chalk_1['default'][e(0x18b)]('>>')+'\x20Example:\x20'+chalk_1[e(0x13e)][e(0x10c)](JSON[e(0x15a)](z[e(0x106)])):'';return t[e(0x103)]>0x0?t['join'](chalk_1[e(0x13e)][e(0xd0)](e(0x18e)))+g:!![];},this[l(0x142)]=(z,D,M)=>{const r=l,H=z[z['length']-0x1];function O(){const Q=a8z;return z[Q(0x152)](0x0,-0x1)[Q(0x162)](T=>T[Q(0x194)](0x0)[Q(0x18c)]()+T['slice'](0x1))[Q(0xec)]('>');}const t=z[r(0x103)]>0x1?chalk_1['default'][r(0xb6)][r(0x10c)](O())+':\x20':'',g=M?'\x20('+chalk_1[r(0x13e)][r(0x198)](M)+')':'';return chalk_1[r(0x13e)][r(0x12b)](''+t+D+'\x20'+chalk_1[r(0x13e)][r(0x12d)][r(0xc1)](H)+g+'?');},this[l(0xf3)]=(z,D,M)=>__awaiter(this,void 0x0,void 0x0,function*(){const i=l;if(D[i(0x103)]<0x1){const t=M?i(0x188)+M:i(0xc5);throw new Error(i(0x126)+z+'\x20'+t+'.');}const H='Choose\x20the\x20'+z+'\x20to\x20use:',O=D[i(0x103)]>0x4?i(0x176):i(0xee);return(yield inquirer[i(0x19f)]([{'type':O,'name':i(0x14e),'message':H,'choices':D}]))[i(0x14e)];}),this[l(0x168)]=(z,D,M)=>__awaiter(this,void 0x0,void 0x0,function*(){const U=l,{elements:H,nextCursor:O}=yield D();if(H[U(0x103)]<0x1){const T=M?U(0x188)+M:U(0xc5);throw new Error(U(0x126)+z+'\x20'+T+'.');}const t='Choose\x20the\x20'+z+U(0xd4);if(O!==undefined){const h=({nextPageCursor:N})=>__awaiter(this,void 0x0,void 0x0,function*(){const L=U,Z=yield D(N);return{'elements':Z['elements'],'nextPageCursor':Z[L(0xcb)]};});return(yield inquirer[U(0x19f)]([{'type':U(0x104),'name':'name','message':t,'choices':H,'nextPageCursor':O,'loadMore':h}]))[U(0x14e)];}const g=H['length']>0x4?'search-list':U(0xee);return(yield inquirer[U(0x19f)]([{'type':g,'name':'name','message':t,'choices':H}]))[U(0x14e)];}),this[l(0xf5)]=(z,D)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const C=l,M=''+(D?'('+chalk_1[C(0x13e)][C(0x198)](D)+')\x20':''),H='Enter\x20the\x20'+chalk_1[C(0x13e)][C(0x109)](z)+'\x20'+M+'to\x20use:',O=this['validate']({'type':C(0xd7),'required':!![]});return(yield inquirer[C(0x19f)]([{'type':C(0x185),'name':C(0x14e),'message':H,'validate':O}]))['name'];}),this['askConfirm']=z=>__awaiter(this,void 0x0,void 0x0,function*(){const j=l;return(yield inquirer[j(0x19f)]([{'type':j(0x116),'name':j(0x14e),'message':z,'default':!![]}]))[j(0x14e)];}),this['askForService']=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const a=l,D=M=>H=>__awaiter(this,void 0x0,void 0x0,function*(){const J=a8z;var O;const t=yield this['apiClient'][J(0xee)][J(0x12a)]({'parameters':{'projectId':M},'options':{'per_page':this[J(0x13d)],'cursor':H}}),g=t[J(0x15b)][J(0x12a)]['map'](T=>T['id']);return{'elements':g,'nextCursor':(O=t['pagination'])===null||O===void 0x0?void 0x0:O[J(0xe9)]};});return this[a(0xe6)](a(0x18a),D,z);}),this['askForTemplate']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const m=l,z=D=>__awaiter(this,void 0x0,void 0x0,function*(){const V=a8z;var M;const H=yield this[V(0x178)][V(0xee)][V(0xc2)]({'options':{'per_page':this[V(0x13d)],'cursor':D}}),O=H['data'][V(0xc2)][V(0x162)](t=>t['id']);return{'elements':O,'nextCursor':(M=H[V(0x164)])===null||M===void 0x0?void 0x0:M['cursor']};});return this[m(0x168)](m(0x15f),z);}),this[l(0x177)]=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const B=l;if(_[B(0x19b)](z))throw new Error(B(0x150));const D=M=>__awaiter(this,void 0x0,void 0x0,function*(){const f=B;var H;let O=this['defaultPaginationPageSize'];const t=yield this['apiClient'][f(0xee)][f(0xc9)]({'parameters':{'templateId':z},'options':{'per_page':O,'cursor':M}}),g=t[f(0x15b)][f(0xc9)]['map'](T=>T['id']+f(0x17e)+T['createdAt']+')');return{'elements':g,'nextCursor':(H=t[f(0x164)])===null||H===void 0x0?void 0x0:H[f(0xe9)]};});return this[B(0x168)]('template\x20run',D)[B(0x14b)](M=>M[B(0x151)]('\x20')[0x0]);}),this[l(0x17d)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=l,z=D=>__awaiter(this,void 0x0,void 0x0,function*(){const G=a8z;var M;let H=this[G(0x13d)];const O=yield this[G(0x178)]['list'][G(0x138)]({'options':{'per_page':H,'cursor':D}}),t=O['data']['logSinks']['map'](g=>g['id']);return{'elements':t,'nextCursor':(M=O['pagination'])===null||M===void 0x0?void 0x0:M[G(0xe9)]};});return this[Y(0x168)](Y(0x123),z);}),this[l(0x174)]=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const s=l,D=M=>H=>__awaiter(this,void 0x0,void 0x0,function*(){const P=a8z;var O;const t=yield this[P(0x178)][P(0xee)][P(0x19a)]({'parameters':{'projectId':M},'options':{'per_page':this[P(0x13d)],'cursor':H}}),g=t[P(0x15b)][P(0x19a)][P(0x162)](T=>T['id']);return{'elements':g,'nextCursor':(O=t[P(0x164)])===null||O===void 0x0?void 0x0:O[P(0xe9)]};});return this[s(0xe6)](s(0x195),D,z);}),this[l(0xc4)]=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x=l,D=M=>H=>__awaiter(this,void 0x0,void 0x0,function*(){const v=a8z;var O;const t=yield this['apiClient'][v(0xee)][v(0x180)]({'parameters':{'projectId':M},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':H}}),g=t[v(0x15b)][v(0x180)][v(0x162)](T=>T['id']);return{'elements':g,'nextCursor':(O=t[v(0x164)])===null||O===void 0x0?void 0x0:O[v(0xe9)]};});return this[x(0xe6)](x(0x102),D,z);}),this[l(0xb1)]=(z,D)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const n=l,M=H=>O=>__awaiter(this,void 0x0,void 0x0,function*(){const p=a8z;var t;const g=yield this['apiClient'][p(0x124)]['job'][p(0xdd)]({'parameters':{'projectId':H,'jobId':z},'options':{'per_page':this[p(0x13d)],'cursor':O}}),T=g[p(0x15b)][p(0xdd)][p(0x162)](h=>h['id']+'\x20(startedAt:\x20'+h[p(0x137)]+')');return{'elements':T,'nextCursor':(t=g['pagination'])===null||t===void 0x0?void 0x0:t[p(0xe9)]};});return this[n(0xe6)](n(0x120),M,D,'job:\x20\x27'+z+'\x27')[n(0x14b)](H=>H['split']('\x20')[0x0]);}),this[l(0xb4)]=(z,D,M)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const u0=l;if(M!==undefined){const H=O=>t=>__awaiter(this,void 0x0,void 0x0,function*(){const S=a8z;var g;const T=yield this[S(0x178)][S(0x124)][S(0x102)]['builds']({'parameters':{'projectId':O,'jobId':M},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':t}});return{'elements':T['data'][S(0x13a)][S(0x162)](h=>h['id']+S(0x17e)+h['createdAt']+')'),'nextCursor':(g=T[S(0x164)])===null||g===void 0x0?void 0x0:g['cursor']};});return this[u0(0xe6)](u0(0x147),H,z,'job:\x20\x27'+M+'\x27')['then'](O=>O['split']('\x20')[0x0]);}if(D!==undefined){const O=t=>g=>__awaiter(this,void 0x0,void 0x0,function*(){const u1=u0;var T;const h=yield this[u1(0x178)][u1(0x124)]['service'][u1(0x13a)]({'parameters':{'projectId':t,'serviceId':D},'options':{'per_page':this[u1(0x13d)],'cursor':g}});return{'elements':h['data'][u1(0x13a)][u1(0x162)](N=>N['id']+u1(0x17e)+N[u1(0x192)]+')'),'nextCursor':(T=h[u1(0x164)])===null||T===void 0x0?void 0x0:T[u1(0xe9)]};});return this['askForProjectScopedResourcePaginated']('job\x20build',O,z,'service:\x20\x27'+M+'\x27')[u0(0x14b)](t=>t[u0(0x151)]('\x20')[0x0]);}throw new Error(u0(0x15c));}),this[l(0x105)]=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const u3=l,D=M=>H=>__awaiter(this,void 0x0,void 0x0,function*(){const u2=a8z;var O;const t=yield this[u2(0x178)][u2(0xee)]['addons']({'parameters':{'projectId':M},'options':{'per_page':this[u2(0x13d)],'cursor':H}});return{'elements':t['data'][u2(0x16a)][u2(0x162)](g=>g['id']),'nextCursor':(O=t[u2(0x164)])===null||O===void 0x0?void 0x0:O[u2(0xe9)]};});return this[u3(0xe6)]('addon',D,z);}),this['askForAddonBackup']=(z,D)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const u5=l,M=H=>O=>__awaiter(this,void 0x0,void 0x0,function*(){const u4=a8z;var t;const g=yield this['apiClient'][u4(0x124)][u4(0xf2)][u4(0xe8)]({'parameters':{'projectId':H,'addonId':D},'options':{'per_page':this[u4(0x13d)],'cursor':O}});return{'elements':g[u4(0x15b)][u4(0xe8)][u4(0x162)](T=>T['id']+u4(0x14c)+(T[u4(0x1a0)]||u4(0xd8))+')'),'nextCursor':(t=g[u4(0x164)])===null||t===void 0x0?void 0x0:t[u4(0xe9)]};});return this[u5(0xe6)](u5(0xe8),M,z,u5(0x156)+D+'\x27')[u5(0x14b)](H=>H[u5(0x151)]('\x20')[0x0]);}),this['askForVolume']=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const D=M=>__awaiter(this,void 0x0,void 0x0,function*(){const u6=a8z;return(yield this[u6(0x178)][u6(0xee)][u6(0xda)]({'parameters':{'projectId':M}}))[u6(0x15b)]['map'](H=>H['id']);});return this['askForProjectScopedResource']('volume',D,z);}),this['askForSecret']=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const u8=l,D=M=>H=>__awaiter(this,void 0x0,void 0x0,function*(){const u7=a8z;var O;const t=yield this[u7(0x178)]['list'][u7(0xe7)]({'parameters':{'projectId':M},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':H}});return{'elements':t[u7(0x15b)][u7(0xe7)][u7(0x162)](g=>g['id']),'nextCursor':(O=t[u7(0x164)])===null||O===void 0x0?void 0x0:O[u7(0xe9)]};});return this[u8(0xe6)](u8(0x17a),D,z);}),this['askForSubdomain']=z=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const u9=l,D=yield this[u9(0x178)]['get'][u9(0x10a)]({'parameters':{'domain':z}}),M=D[u9(0x15b)][u9(0x10e)]['map'](O=>O[u9(0x14e)]+u9(0x121)+O[u9(0xf9)]+')'),H='domain\x20('+z+')';return this[u9(0xf3)](u9(0xe2),M,H)[u9(0x14b)](O=>O[u9(0x151)]('\x20')[0x0]);}),this[l(0x16f)]=z=>__awaiter(this,void 0x0,void 0x0,function*(){const uu=l;return(yield inquirer[uu(0x19f)]([{'type':uu(0x116),'name':uu(0xe5),'message':chalk_1['default']['yellowBright']('WARNING:\x20You\x20are\x20about\x20to\x20delete\x20'+(z||uu(0xcd))+uu(0x14d)),'default':![]}]))[uu(0xe5)];}),this[l(0x183)]=(z,D)=>__awaiter(this,void 0x0,void 0x0,function*(){const uz=l;_[uz(0x19b)](z['name'])&&(D[uz(0x103)]<=0x0?_[uz(0x10d)](z,uz(0x14e),'default'):yield(0x0,utils_1[uz(0x191)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const uD=uz,{name:M}=yield inquirer[uD(0x19f)]([{'type':uD(0x185),'name':'name','message':'Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','default':'main-context'}]);if(!z[uD(0x19e)]&&D[uD(0xfa)](H=>H[uD(0x14e)]===M)){const {c:H}=yield inquirer[uD(0x19f)]([{'type':uD(0x116),'name':'c','message':'Context\x20with\x20name\x20\x27'+M+uD(0xd3),'default':![]}]);if(H===![])throw new Error('Context\x20name\x20already\x20exists.');_[uD(0x10d)](z,uD(0x19e),!![]);}_[uD(0x10d)](z,uD(0x14e),M);})));if(_['isUndefined'](z['token'])){const M=yield this[uz(0xc0)]();_[uz(0x10d)](z,uz(0xdb),M);}return z;}),this[l(0xc0)]=()=>__awaiter(this,void 0x0,void 0x0,function*(){const uM=l,{token:z}=yield inquirer[uM(0x19f)]([{'type':'password','name':'token','mask':'*','message':uM(0xb5)}]);return z;}),inquirer[l(0x166)](l(0x176),inquirerSearchList),inquirer['registerPrompt'](l(0x104),inquirer_pagination_prompt_1[l(0x133)]);}[a8R(0x111)](u,z){return __awaiter(this,void 0x0,void 0x0,function*(){const uH=a8z,D=yaml['safeDump'](u),M=_[uH(0x163)](D['split']('\x0a')[uH(0x162)](t=>t[uH(0x103)])),H=chalk_1['default'][uH(0x167)]('-'[uH(0x17f)](M)+'\x0a'),{confirm:O}=yield inquirer[uH(0x19f)]([{'type':uH(0xee),'name':uH(0x116),'message':''+chalk_1['default'][uH(0x12d)][uH(0x109)](uH(0xfd))+H+chalk_1[uH(0x13e)][uH(0x100)](D)+H,'choices':Object['values'](ConfirmChoices)}]);switch(O){case ConfirmChoices['YES']:return u;case ConfirmChoices['ABORT']:throw new Error(uH(0x108));case ConfirmChoices[uH(0x14f)]:return this[uH(0xeb)](z);case ConfirmChoices[uH(0xbf)]:return this[uH(0x111)](yield this[uH(0xcf)](u),z);case ConfirmChoices[uH(0x171)]:yield this[uH(0x172)](u);return this[uH(0x111)](u,z);default:throw new Error(uH(0xb8));}});}[a8R(0xeb)](u,z){return __awaiter(this,void 0x0,void 0x0,function*(){const uO=a8z;if((z===null||z===void 0x0?void 0x0:z[uO(0x179)])!==undefined)this[uO(0x179)]=z===null||z===void 0x0?void 0x0:z[uO(0x179)];this[uO(0xea)]=z===null||z===void 0x0?void 0x0:z['cmdPath'];const D={};return yield this[uO(0xdc)]([],u[uO(0xed)][uO(0x14a)],D),this[uO(0x179)]=D,yield this['confirmationPrompt'](D,u);});}[a8R(0xdc)](u,z,D,M){return __awaiter(this,void 0x0,void 0x0,function*(){const ut=a8z;let H;if(z[ut(0x127)]&&!_[ut(0x148)](z,ut(0x11f))){if(z[ut(0x127)][ut(0x103)]>0x1){const {choice:O}=yield inquirer[ut(0x19f)]([{'type':ut(0xee),'name':ut(0xe1),'message':ut(0x125)+(u[u[ut(0x103)]-0x1]||'')+ut(0x107),'choices':z['oneOf'][ut(0x162)](t=>{const ug=ut;var g;return(g=t[ug(0x165)])!==null&&g!==void 0x0?g:'??';})}]);H=yield this[ut(0x122)](u,z['oneOf'][ut(0xfa)](t=>t['description']===O),D,M);}else{const t=z[ut(0x127)][0x0];_['set'](t,ut(0x165),z[ut(0x165)]),H=yield this['getType'](u,t,D,M);}H={};}else H=yield this[ut(0x122)](u,z,D,M);return H;});}[a8R(0xce)](u,z,D,M){var H;return __awaiter(this,void 0x0,void 0x0,function*(){const uT=a8z;if(M===![]){const {addEntry:g}=yield inquirer[uT(0x19f)]([{'type':uT(0x116),'name':'addEntry','message':this['getPathString'](z,uT(0x184),u===null||u===void 0x0?void 0x0:u[uT(0x165)]),'default':![]}]);if(!g)return D;}const O=Object[uT(0xd6)]((H=u===null||u===void 0x0?void 0x0:u[uT(0x11f)])!==null&&H!==void 0x0?H:[]),t=u[uT(0xff)]||[];if(O[uT(0x103)]>0x0)for(const T of O){const h=z['concat'](T);if(z[uT(0x103)]>0x0&&!_[uT(0x148)](D,z['join']('.')))_[uT(0x10d)](D,z['join']('.'),{});yield this[uT(0xdc)](h,u['properties'][T],D,t['includes'](T));}else yield this[uT(0x122)](z,Object['assign'](Object[uT(0x187)]({},u),{'type':uT(0x118)}),D,M);return D;});}['askArrayEntry'](u,z,D,M){return __awaiter(this,void 0x0,void 0x0,function*(){const uh=a8z;if(z&&D)return!![];const H=z?uh(0x184):uh(0x169),{addEntry:O}=yield inquirer['prompt']([{'type':'confirm','name':uh(0x119),'message':this[uh(0x142)](u,H,z?M:undefined),'default':![]}]);return O;});}['getType'](u,z,D,M){return __awaiter(this,void 0x0,void 0x0,function*(){const uN=a8z;let H;const O=u[uN(0xec)]('.');switch(z===null||z===void 0x0?void 0x0:z[uN(0xbd)]){case uN(0xbe):{let t=!![];while(yield this[uN(0x189)](u,t,M,z===null||z===void 0x0?void 0x0:z['description'])){const g=_[uN(0x124)](D,O);_[uN(0x145)](D,O),yield this[uN(0x122)](u,z['items'],D);const T=_[uN(0x124)](D,O);!_[uN(0x17b)](g)?_[uN(0x10d)](D,O,[T]):(g[uN(0x18d)](T),_[uN(0x10d)](D,O,g)),t=![];}return H||[];}case'object':{return H=yield this[uN(0xce)](z,u,D,M),H;}case'rawObject':H=(0x0,utils_1[uN(0x115)])(yield this['ask'](u,z,M))||undefined;break;case uN(0xd7):case uN(0x16e):case'integer':default:H=yield this[uN(0xef)](u,z,M,D);break;}return!_[uN(0x19b)](H)&&_['set'](D,O,H),H;});}[a8R(0xef)](u,z,D,M){var H;return __awaiter(this,void 0x0,void 0x0,function*(){const uZ=a8z,O=u[u[uZ(0x103)]-0x1],{defaultValue:defaultValue=(H=z===null||z===void 0x0?void 0x0:z[uZ(0x106)])!==null&&H!==void 0x0?H:z===null||z===void 0x0?void 0x0:z[uZ(0x13e)],choices:choices=z===null||z===void 0x0?void 0x0:z[uZ(0xcc)],pagination:t}=yield(0x0,api_helpers_1[uZ(0xc3)])(O,this[uZ(0x178)],this[uZ(0xea)],M,this[uZ(0xde)],u);let g=uZ(0x185);if(!_[uZ(0x19b)](choices)&&choices[uZ(0x103)]>0x0){if(t!==undefined&&t['nextPageCursor']!==undefined)g='pagination-prompt';else choices[uZ(0x103)]>0x4&&typeof choices[0x0]===uZ(0xd7)?g='search-list':g=uZ(0xee);}else{if((z===null||z===void 0x0?void 0x0:z[uZ(0xbd)])==='boolean')g='confirm';else{if((z===null||z===void 0x0?void 0x0:z[uZ(0xbd)])===uZ(0x110))g=uZ(0x185);else(z===null||z===void 0x0?void 0x0:z[uZ(0xbd)])==='rawObject'&&(g=uZ(0x173));}}let T=D!==![]?!_[uZ(0x186)](defaultValue)?defaultValue:JSON[uZ(0x15a)](defaultValue):_['isBoolean'](defaultValue)?defaultValue:uZ(0x13b);if(choices)T=T[uZ(0xf7)]();_[uZ(0x148)](this['resultCache'],u[uZ(0xec)]('.'))&&(T=this[uZ(0x179)][u[uZ(0xec)]('.')]);const h=choices&&D===![]?['don\x27t\x20change',...choices]:choices,N=(z===null||z===void 0x0?void 0x0:z['type'])==='integer',Z=Object[uZ(0x187)]({'type':g,'name':'id','message':this[uZ(0x11a)](u,z),'choices':h,'default':T,'filter':this[uZ(0x130)](g,D),'validate':this['validate'](z,D,N)},t),E=(yield inquirer[uZ(0x19f)]([Z]))['id'];if(E==='don\x27t\x20change'||E==='')return undefined;if(N)return parseInt(E,0xa);return E;});}[a8R(0x11a)](u,z){const uE=a8R,D=(z===null||z===void 0x0?void 0x0:z[uE(0xbd)])!==uE(0x16e)?uE(0x197):uE(0x182);return this['getPathString'](u,D,z===null||z===void 0x0?void 0x0:z[uE(0x165)]);}['askForProject'](){return __awaiter(this,void 0x0,void 0x0,function*(){const uR=a8z,u=z=>__awaiter(this,void 0x0,void 0x0,function*(){const uX=a8z;var D;const M=yield this[uX(0x178)][uX(0xee)]['projects']({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':z}}),H=M[uX(0x15b)][uX(0x11d)][uX(0x162)](O=>O['id']);return{'elements':H,'nextCursor':(D=M[uX(0x164)])===null||D===void 0x0?void 0x0:D['cursor']};});return yield this['askForResourcePaginated'](uR(0x114),u);});}['askForProjectScopedResource'](u,z,D,M){return __awaiter(this,void 0x0,void 0x0,function*(){const ub=a8z,H=D||this[ub(0x178)]['contextProvider'][ub(0xfc)]();if(_['isUndefined'](H))throw new Error(ub(0x199));const O=yield z(H);return yield this[ub(0xf3)](u,O,(M?M+ub(0xd2):'')+ub(0x131)+H+'\x27');});}['askForProjectScopedResourcePaginated'](u,z,D,M){return __awaiter(this,void 0x0,void 0x0,function*(){const uA=a8z,H=D||this[uA(0x178)][uA(0x19d)][uA(0xfc)]();if(_[uA(0x19b)](H))throw new Error('Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.');const O=yield z(H);return yield this[uA(0x168)](u,O,(M?M+uA(0xd2):'')+'project:\x20\x27'+H+'\x27');});}[a8R(0x143)](){return __awaiter(this,void 0x0,void 0x0,function*(){const uo=a8z,u=yield this[uo(0x178)]['list']['domains']({}),z=u[uo(0x15b)]['domains'][uo(0x162)](D=>D[uo(0x14e)]);return this[uo(0xf3)](uo(0x10a),z);});}[a8R(0xfb)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ud=a8z,u=yield this['apiClient'][ud(0xee)][ud(0x13c)]({}),z=u[ud(0x15b)][ud(0x144)][ud(0x162)](D=>D['id']);return this[ud(0xf3)](ud(0x144),z);});}[a8R(0x139)](u){const uK=a8R;this[uK(0xde)]=u;}}exports[a8R(0xbc)]=InquirerHelper;
@@ -1 +1 @@
1
- 'use strict';const a9Z=a9M;function a9M(N,M){const V=a9N();return a9M=function(L,k){L=L-0x152;let R=V[L];return R;},a9M(N,M);}(function(N,M){const U=a9M,V=N();while(!![]){try{const L=parseInt(U(0x155))/0x1*(parseInt(U(0x188))/0x2)+-parseInt(U(0x16e))/0x3+parseInt(U(0x172))/0x4+parseInt(U(0x17c))/0x5+parseInt(U(0x16a))/0x6+-parseInt(U(0x183))/0x7*(parseInt(U(0x17b))/0x8)+-parseInt(U(0x16f))/0x9;if(L===M)break;else V['push'](V['shift']());}catch(k){V['push'](V['shift']());}}}(a9N,0x5911b));var __createBinding=this&&this[a9Z(0x15c)]||(Object[a9Z(0x179)]?function(N,M,V,L){const n=a9Z;if(L===undefined)L=V;var R=Object['getOwnPropertyDescriptor'](M,V);(!R||('get'in R?!M[n(0x15f)]:R[n(0x182)]||R[n(0x187)]))&&(R={'enumerable':!![],'get':function(){return M[V];}}),Object['defineProperty'](N,L,R);}:function(N,M,V,L){if(L===undefined)L=V;N[L]=M[V];}),__setModuleDefault=this&&this[a9Z(0x152)]||(Object['create']?function(N,M){const I=a9Z;Object[I(0x174)](N,I(0x157),{'enumerable':!![],'value':M});}:function(N,M){const d=a9Z;N[d(0x157)]=M;}),__importStar=this&&this['__importStar']||function(N){const v=a9Z;if(N&&N[v(0x15f)])return N;var M={};if(N!=null){for(var V in N)if(V!==v(0x157)&&Object[v(0x17e)][v(0x163)][v(0x158)](N,V))__createBinding(M,N,V);}return __setModuleDefault(M,N),M;},__awaiter=this&&this[a9Z(0x18c)]||function(N,M,V,L){function k(R){return R instanceof V?R:new V(function(r){r(R);});}return new(V||(V=Promise))(function(R,r){const t=a9M;function Q(X){const a=a9M;try{h(L[a(0x15b)](X));}catch(u){r(u);}}function z(X){const l=a9M;try{h(L[l(0x16b)](X));}catch(u){r(u);}}function h(X){const o=a9M;X[o(0x16c)]?R(X[o(0x161)]):k(X[o(0x161)])[o(0x160)](Q,z);}h((L=L['apply'](N,M||[]))[t(0x15b)]());});},__importDefault=this&&this[a9Z(0x18f)]||function(N){return N&&N['__esModule']?N:{'default':N};};function a9N(){const i=['message','baseUrl','https:','Failure\x20during\x20login:\x20','init','__setModuleDefault','open','parse','31wjTElc','initPackage','default','call','Unexpected\x20response','end','next','__createBinding','error','toString','__esModule','then','value','finally','hasOwnProperty','handleError','replace','exit','type','idle','write','955632uslBbg','throw','done','NorthflankApiBrowserLogin','672315aIIHEr','4911453wFNoVY','error\x20happened\x20during\x20browser\x20login:\x20','unable\x20to\x20parse\x20message:\x20','1990376eiGNUB','startLogin','defineProperty','ws:','aborted','Unexpected\x20response,\x20api\x20token\x20missing','EventEmitter','create','Unable\x20to\x20open\x20browser:\x20','136YyzRGf','1511645OgWcML','emit','prototype','events','duplex','data','writable','77063ZVUzJg','browser-opened','http:','createWebSocketStream','configurable','23394pAzKWj','status','Login\x20process\x20stopped\x20before\x20completed','stringify','__awaiter','success','SIGINT','__importDefault','wss:'];a9N=function(){return i;};return a9N();}Object['defineProperty'](exports,a9Z(0x15f),{'value':!![]}),exports[a9Z(0x16d)]=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9Z(0x153))),events_1=require(a9Z(0x17f));class NorthflankApiBrowserLogin extends events_1[a9Z(0x178)]{constructor(N,M=!![]){const g=a9Z;super(),this[g(0x192)]=N,this['openBrowser']=M,this[g(0x189)]=g(0x168),this['initPackage']=()=>JSON['stringify']({'type':g(0x195)});}[a9Z(0x173)](){const m=a9Z;var N;const M=this['baseUrl'][m(0x165)](m(0x193),m(0x190))[m(0x165)](m(0x185),m(0x175)),V=M+'/v1/cli-login',L=new ws_1[(m(0x157))](V),k=()=>__awaiter(this,void 0x0,void 0x0,function*(){const x=m;yield new Promise(r=>{const W=a9M;var Q;(Q=this[W(0x180)])===null||Q===void 0x0?void 0x0:Q[W(0x15a)](JSON['stringify']({'type':W(0x176)}),()=>r());}),process[x(0x166)]();}),R=new Promise((r,Q)=>{const K=m;var z,h,X;try{this[K(0x180)]=(0x0,ws_1[K(0x186)])(L),process['on'](K(0x18e),k);}catch(u){Q(new Error('Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20'+u['message']));}(z=this[K(0x180)])===null||z===void 0x0?void 0x0:z['on'](K(0x181),p=>{const A=K;var F;const S=JSON[A(0x154)](p[A(0x15e)]());switch(S===null||S===void 0x0?void 0x0:S[A(0x167)]){case'init-ack':{const {loginPage:b}=S;if(b===undefined){this[A(0x164)](A(0x159),Q);return;}this['openBrowser']&&(0x0,open_1[A(0x157)])(b)['catch'](s=>{const e=A,y=e(0x17a)+s[e(0x191)];this[e(0x164)](y,Q);});this[A(0x17d)](A(0x184),{'url':b});break;}case'login-success':{const {apiToken:s,contextName:y}=S;if(s===undefined){this[A(0x164)](A(0x177),Q);return;}(F=this[A(0x180)])===null||F===void 0x0?void 0x0:F[A(0x15a)](),r({'token':s,'contextName':y}),this[A(0x189)]=A(0x18d);break;}case'login-failure':{const c=A(0x194)+(S===null||S===void 0x0?void 0x0:S[A(0x191)]);this[A(0x164)](c,Q);break;}default:{const T=A(0x171)+JSON[A(0x18b)](S);this[A(0x164)](T,Q);}}}),(h=this['duplex'])===null||h===void 0x0?void 0x0:h['on'](K(0x15d),p=>{const f=K;this[f(0x164)](f(0x170)+p[f(0x191)],Q);}),(X=this[K(0x180)])===null||X===void 0x0?void 0x0:X['on'](K(0x15a),()=>{const G=K;if(this[G(0x189)]===G(0x18d)){}else this[G(0x164)](G(0x18a),Q);});});return(N=this[m(0x180)])===null||N===void 0x0?void 0x0:N[m(0x169)](this[m(0x156)]()),this[m(0x189)]='init',R[m(0x162)](()=>{process['removeListener']('SIGINT',k);});}[a9Z(0x164)](N,M){const q=a9Z;var V,L;M?(V=this[q(0x180)])===null||V===void 0x0?void 0x0:V[q(0x15a)](()=>M(new Error(N))):(L=this[q(0x180)])===null||L===void 0x0?void 0x0:L[q(0x15a)](),this[q(0x189)]=q(0x15d);}}exports[a9Z(0x16d)]=NorthflankApiBrowserLogin;
1
+ 'use strict';const a9y=a9z;(function(u,z){const w=a9z,D=u();while(!![]){try{const M=-parseInt(w(0xad))/0x1+parseInt(w(0xba))/0x2+parseInt(w(0xe4))/0x3+parseInt(w(0xca))/0x4*(-parseInt(w(0xd6))/0x5)+-parseInt(w(0xb2))/0x6+-parseInt(w(0xaf))/0x7+parseInt(w(0xb8))/0x8;if(M===z)break;else D['push'](D['shift']());}catch(H){D['push'](D['shift']());}}}(a9u,0xb8b08));var __createBinding=this&&this[a9y(0xc9)]||(Object[a9y(0xb0)]?function(u,z,D,M){const k=a9y;if(M===undefined)M=D;var H=Object['getOwnPropertyDescriptor'](z,D);(!H||(k(0xe5)in H?!z[k(0xbb)]:H[k(0xe6)]||H['configurable']))&&(H={'enumerable':!![],'get':function(){return z[D];}}),Object[k(0xac)](u,M,H);}:function(u,z,D,M){if(M===undefined)M=D;u[M]=z[D];}),__setModuleDefault=this&&this[a9y(0xc0)]||(Object[a9y(0xb0)]?function(u,z){const l=a9y;Object[l(0xac)](u,l(0xb9),{'enumerable':!![],'value':z});}:function(u,z){const W=a9y;u[W(0xb9)]=z;}),__importStar=this&&this[a9y(0xd4)]||function(u){const F=a9y;if(u&&u[F(0xbb)])return u;var z={};if(u!=null){for(var D in u)if(D!==F(0xb9)&&Object[F(0xb5)][F(0xd9)][F(0xd0)](u,D))__createBinding(z,u,D);}return __setModuleDefault(z,u),z;},__awaiter=this&&this[a9y(0xc7)]||function(u,z,D,M){function H(O){return O instanceof D?O:new D(function(t){t(O);});}return new(D||(D=Promise))(function(O,t){const e=a9z;function g(N){const I=a9z;try{h(M[I(0xe8)](N));}catch(Z){t(Z);}}function T(N){try{h(M['throw'](N));}catch(Z){t(Z);}}function h(N){const q=a9z;N[q(0xcd)]?O(N['value']):H(N['value'])[q(0xbc)](g,T);}h((M=M[e(0xbe)](u,z||[]))[e(0xe8)]());});},__importDefault=this&&this[a9y(0xd8)]||function(u){return u&&u['__esModule']?u:{'default':u};};Object[a9y(0xac)](exports,'__esModule',{'value':!![]}),exports[a9y(0xc5)]=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9y(0xda))),events_1=require(a9y(0xe0));function a9u(){const B=['/v1/cli-login','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','defineProperty','1335370ZfwLrD','EventEmitter','4376218CbNIjP','create','exit','8833518hoeBgI','type','idle','prototype','Unable\x20to\x20open\x20browser:\x20','wss:','22993680QtYpRF','default','1247656gvohKj','__esModule','then','init','apply','Unexpected\x20response','__setModuleDefault','success','ws:','aborted','status','NorthflankApiBrowserLogin','replace','__awaiter','error\x20happened\x20during\x20browser\x20login:\x20','__createBinding','448148QAhPXw','unable\x20to\x20parse\x20message:\x20','duplex','done','init-ack','Unexpected\x20response,\x20api\x20token\x20missing','call','browser-opened','createWebSocketStream','handleError','__importStar','message','30WrQDRq','startLogin','__importDefault','hasOwnProperty','open','baseUrl','openBrowser','removeListener','end','error','events','login-success','http:','stringify','4090407AFhZVt','get','writable','finally','next','emit','SIGINT','initPackage','catch','toString','Login\x20process\x20stopped\x20before\x20completed'];a9u=function(){return B;};return a9u();}function a9z(u,z){const D=a9u();return a9z=function(M,H){M=M-0xaa;let O=D[M];return O;},a9z(u,z);}class NorthflankApiBrowserLogin extends events_1[a9y(0xae)]{constructor(u,z=!![]){const Q=a9y;super(),this[Q(0xdb)]=u,this[Q(0xdc)]=z,this['status']=Q(0xb4),this['initPackage']=()=>JSON['stringify']({'type':Q(0xbd)});}[a9y(0xd7)](){const r=a9y;var u;const z=this[r(0xdb)][r(0xc6)]('https:',r(0xb7))['replace'](r(0xe2),r(0xc2)),D=z+r(0xaa),M=new ws_1['default'](D),H=()=>__awaiter(this,void 0x0,void 0x0,function*(){const U=r;yield new Promise(t=>{const i=a9z;var g;(g=this['duplex'])===null||g===void 0x0?void 0x0:g['end'](JSON[i(0xe3)]({'type':i(0xc3)}),()=>t());}),process[U(0xb1)]();}),O=new Promise((t,g)=>{const L=r;var T,h,N;try{this['duplex']=(0x0,ws_1[L(0xd2)])(M),process['on'](L(0xea),H);}catch(Z){g(new Error(L(0xab)+Z[L(0xd5)]));}(T=this[L(0xcc)])===null||T===void 0x0?void 0x0:T['on']('data',E=>{const C=L;var X;const R=JSON['parse'](E[C(0xed)]());switch(R===null||R===void 0x0?void 0x0:R[C(0xb3)]){case C(0xce):{const {loginPage:b}=R;if(b===undefined){this[C(0xd3)](C(0xbf),g);return;}this[C(0xdc)]&&(0x0,open_1[C(0xb9)])(b)[C(0xec)](A=>{const j=C,o=j(0xb6)+A[j(0xd5)];this[j(0xd3)](o,g);});this[C(0xe9)](C(0xd1),{'url':b});break;}case C(0xe1):{const {apiToken:A,contextName:o}=R;if(A===undefined){this['handleError'](C(0xcf),g);return;}(X=this[C(0xcc)])===null||X===void 0x0?void 0x0:X['end'](),t({'token':A,'contextName':o}),this[C(0xc4)]=C(0xc1);break;}case'login-failure':{const d='Failure\x20during\x20login:\x20'+(R===null||R===void 0x0?void 0x0:R[C(0xd5)]);this['handleError'](d,g);break;}default:{const K=C(0xcb)+JSON[C(0xe3)](R);this[C(0xd3)](K,g);}}}),(h=this[L(0xcc)])===null||h===void 0x0?void 0x0:h['on']('error',E=>{const J=L;this['handleError'](J(0xc8)+E[J(0xd5)],g);}),(N=this[L(0xcc)])===null||N===void 0x0?void 0x0:N['on'](L(0xde),()=>{const a=L;if(this['status']==='success'){}else this[a(0xd3)](a(0xee),g);});});return(u=this[r(0xcc)])===null||u===void 0x0?void 0x0:u['write'](this[r(0xeb)]()),this[r(0xc4)]=r(0xbd),O[r(0xe7)](()=>{const V=r;process[V(0xdd)](V(0xea),H);});}['handleError'](u,z){const m=a9y;var D,M;z?(D=this[m(0xcc)])===null||D===void 0x0?void 0x0:D[m(0xde)](()=>z(new Error(u))):(M=this[m(0xcc)])===null||M===void 0x0?void 0x0:M[m(0xde)](),this[m(0xc4)]=m(0xdf);}}exports[a9y(0xc5)]=NorthflankApiBrowserLogin;
@@ -1 +1 @@
1
- 'use strict';const a10K=a10M;(function(N,M){const x=a10M,V=N();while(!![]){try{const L=parseInt(x(0x23a))/0x1*(parseInt(x(0x1d0))/0x2)+-parseInt(x(0x1ce))/0x3*(-parseInt(x(0x1d1))/0x4)+parseInt(x(0x1e7))/0x5*(-parseInt(x(0x1d5))/0x6)+-parseInt(x(0x214))/0x7+-parseInt(x(0x1f8))/0x8*(-parseInt(x(0x226))/0x9)+parseInt(x(0x205))/0xa*(-parseInt(x(0x1d9))/0xb)+-parseInt(x(0x239))/0xc*(-parseInt(x(0x1ea))/0xd);if(L===M)break;else V['push'](V['shift']());}catch(k){V['push'](V['shift']());}}}(a10N,0xb73a4));function a10N(){const P=['apiClient','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','build-','\x20--','forEach','tail','@northflank/js-client','../inquirer-helper','addOption','getFormatter','charAt','addonId','values','Container\x20logs\x20','1452YTyDjD','1831EQeXwF','--regexNotIncludes\x20<regex>','yaml','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','\x27Ctrl+C\x27','-o,\x20--output\x20[output]','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','assign','__importDefault','logs','Option','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','next','forward','getStandardLogCommand','\x20for\x20','2271iCBWZn','slice','814FAhRPv','5836Spkbtq','Id\x20[NAME]','getCommand','choices','6oeeJbD','action','-f,\x20--tail','\x20seconds','150931vMqTvq','tsHint','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','Error\x20while\x20tailing\x20log\x20lines:\x20','--startTime\x20<timestamp>','alias','\x20to\x20get\x20logs\x20from','description',',\x20duration:\x20','value','assertContextExisting','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','addon','5144915emZPXp','logs-received','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','99567XqEltJ','-d,\x20--direction\x20<order>','askForProject','getCurrentProjectName','log','--container\x20--containerId\x20[NAME]','CliLogs','message','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','inquirerHelper','Get\x20log\x20for\x20the\x20specified\x20','getCurrentServiceName','regexIncludes','data','1896ydOmOM','conflicts','regexNotIncludes','--textIncludes\x20<text>','bold','parseDateInput','defineProperty','./log-formatter','toUpperCase','service','getLogsCommand','askForService','toISOString','620gJcIbW','name','job','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','backward','chalk','Error\x20while\x20fetching\x20log\x20lines:\x20','--regexIncludes\x20<regex>','../formatting/console-format-helpers','--noDefaults','logTail','__esModule','serviceId','ApiClient','__awaiter','1625855GdXBFq','printInitInfo','-l,\x20--lineLimit\x20[limit]','length','json','argParser','textIncludes','Log\x20session\x20ended','textNotIncludes','noDefaults','option','error','default',',\x20to:\x20','jobId','InquirerHelper','--project\x20--projectId\x20[NAME]','buildId','3267KNhalu','formatLogLine','throw','logsApiClient'];a10N=function(){return P;};return a10N();}var __awaiter=this&&this[a10K(0x213)]||function(N,M,V,L){function k(R){return R instanceof V?R:new V(function(r){r(R);});}return new(V||(V=Promise))(function(R,r){const G=a10M;function Q(X){const A=a10M;try{h(L[A(0x1ca)](X));}catch(u){r(u);}}function z(X){const e=a10M;try{h(L[e(0x228)](X));}catch(u){r(u);}}function h(X){const f=a10M;X['done']?R(X[f(0x1e2)]):k(X[f(0x1e2)])['then'](Q,z);}h((L=L['apply'](N,M||[]))[G(0x1ca)]());});},__importDefault=this&&this[a10K(0x242)]||function(N){const q=a10K;return N&&N[q(0x210)]?N:{'default':N};};Object[a10K(0x1fe)](exports,a10K(0x210),{'value':!![]}),exports['CliLogs']=void 0x0;const js_client_1=require(a10K(0x231)),chalk_1=__importDefault(require(a10K(0x20a))),utils_1=require('../utils'),inquirer_helper_1=require(a10K(0x232)),commander_1=require('commander'),console_format_helpers_1=require(a10K(0x20d)),log_formatter_1=require(a10K(0x1ff));class CliLogs{constructor(N){const i=a10K;this['apiContext']=N,this[i(0x1cc)]=(M,V)=>(0x0,utils_1[i(0x1d3)])(!![])[i(0x206)]((V?i(0x22d):'')+i(0x243))[i(0x1de)]((V?i(0x22d):'')+i(0x1ee))[i(0x1e0)](i(0x1f4)+M)[i(0x21e)](i(0x224),'Project\x20for\x20logs')['option']('--'+M+i(0x22e)+M+i(0x1d2),M[i(0x235)](0x0)[i(0x200)]()+M[i(0x1cf)](0x1)+i(0x1df))[i(0x21e)](i(0x1ef),i(0x22b))[i(0x21e)](i(0x1d7),i(0x1e4))[i(0x21e)](i(0x216),'Number\x20of\x20lines\x20to\x20return.')['option'](i(0x1dd),'Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1['tsHint'],utils_1[i(0x1fd)])[i(0x233)](new commander_1[(i(0x1c8))]('--endTime\x20<timestamp>',i(0x1f2)+utils_1[i(0x1da)])[i(0x219)](utils_1[i(0x1fd)])['conflicts']([i(0x230)]))[i(0x21e)]('--duration\x20[duration]',i(0x1e9))['addOption'](new commander_1['Option'](i(0x1eb),i(0x22c))[i(0x1d4)]([i(0x209),i(0x1cb)])['conflicts']([i(0x230)]))['addOption'](new commander_1['Option'](i(0x1fb),'Filter\x20log\x20lines\x20to\x20include\x20this\x20text')[i(0x1f9)]([i(0x21c),i(0x1f6),i(0x1fa)]))['addOption'](new commander_1[(i(0x1c8))]('--textNotIncludes\x20<text>',i(0x23d))[i(0x1f9)]([i(0x21a),i(0x1f6),i(0x1fa)]))['addOption'](new commander_1[(i(0x1c8))](i(0x20c),i(0x1c9))[i(0x1f9)]([i(0x21c),i(0x21a),i(0x1fa)]))['addOption'](new commander_1[(i(0x1c8))](i(0x23b),i(0x1db))[i(0x1f9)]([i(0x21c),i(0x1f6),i(0x21a)]))[i(0x21e)](i(0x20e),i(0x1e5),![])[i(0x233)](new commander_1[(i(0x1c8))](i(0x23f),i(0x208))[i(0x1d4)](Object[i(0x237)](['format','json','yaml']))),this[i(0x215)]=(M,V,L,k)=>{const w=i,{containerId:R,quiet:r,tail:Q,startTime:z,endTime:h,duration:X}=k;if(r===!![])return;const u=Q?'(exit\x20with\x20'+chalk_1[w(0x220)][w(0x1fc)](w(0x23e))+')':'',p=Q?'\x20with\x20live-tailing\x20':'',F=z?',\x20from:\x20'+z[w(0x204)]():'',S=h?w(0x221)+h[w(0x204)]():'',b=X?w(0x1e1)+X+w(0x1d8):'',s=R?'container\x20'+chalk_1[w(0x220)][w(0x1fc)](R):'all\x20containers',y=M+'\x20'+chalk_1[w(0x220)][w(0x1fc)](V)+'\x20in\x20project\x20'+chalk_1[w(0x220)][w(0x1fc)](L),c=''+F+S+b;console[w(0x1ee)](w(0x238)+p+w(0x1cd)+s+'\x20of\x20'+y+c+'\x20'+u);},this[i(0x234)]=(M,V)=>L=>{const E=i;if(!M){if(L[E(0x217)]===0x0)console[E(0x1ee)]('No\x20logs\x20found\x20for\x20this\x20query.');L[E(0x22f)](k=>(0x0,log_formatter_1[E(0x227)])(k,V));}else(0x0,console_format_helpers_1['printResponse'])(M,L);},this['apiClient']=new js_client_1[(i(0x212))](N,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1['customUserAgent']}),this[i(0x229)]=this[i(0x22a)],this[i(0x1f3)]=new inquirer_helper_1[(i(0x223))](this[i(0x22a)]);}[a10K(0x202)](N,M=![]){const J=a10K,V=(k,R)=>__awaiter(this,void 0x0,void 0x0,function*(){const D=a10M,r=R[D(0x21d)],{apiContext:Q,inquirerHelper:z}=this;switch(N){case D(0x201):{const h=r?undefined:Q[D(0x1f5)]();return R[D(0x211)]||h||(yield z[D(0x203)](k)());}case D(0x207):{const X=r?undefined:Q[D(0x1f5)]();return R[D(0x222)]||X||(yield z['askForJob'](k)());}case D(0x1e6):{const u=r?undefined:Q[D(0x1f5)]();return R[D(0x236)]||u||(yield z['askForAddon'](k)());}}}),L=(k,R,r)=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=a10M;if(M)return r[Y(0x225)]||(yield this[Y(0x1f3)]['askForBuild'](k,N===Y(0x201)?R:undefined,N===Y(0x207)?R:undefined)());return undefined;});return this[J(0x1cc)](N,M)[J(0x1d6)](k=>__awaiter(this,void 0x0,void 0x0,function*(){const j=J,{noDefaults:R,projectId:r,containerId:Q,quiet:z,tail:h,textIncludes:X,textNotIncludes:u,regexIncludes:p,regexNotIncludes:F,direction:S,lineLimit:b,startTime:s,endTime:y,duration:c,output:T}=k;(0x0,utils_1[j(0x1e3)])(this[j(0x22a)]);const {apiContext:U,inquirerHelper:Z,logsApiClient:n}=this,I=R?undefined:U[j(0x1ed)](),d=r||I||(yield Z[j(0x1ec)]()),v=yield V(d,k),a=yield L(d,v,k);if(!z&&T!==j(0x23c)&&T!=='yml'&&T!==j(0x218))this['printInitInfo'](N,v,d,k);if(s&&y&&c)throw new Error(j(0x240));const l={'projectId':d,'entityId':v,'buildId':a},o={'containerName':Q,'textIncludes':X,'textNotIncludes':u,'regexIncludes':p,'regexNotIncludes':F,'lineLimit':b,'startTime':s,'duration':c},t=this[j(0x234)](T,X!==null&&X!==void 0x0?X:p);if(h){const g=yield n['logs'][j(0x20f)](l,o,N);g['on'](j(0x1e8),t),g['on'](j(0x21f),m=>(0x0,utils_1[j(0x21f)])(j(0x1dc)+m[j(0x1f1)])),g['on']('close',()=>console['log'](j(0x21b))),yield g['start']();}else{const m=Object['assign'](Object[j(0x241)]({},o),{'endTime':y,'direction':S}),W=yield n[j(0x243)]['logRange'](l,m,N);if(W[j(0x21f)])(0x0,utils_1[j(0x21f)])(j(0x20b)+W[j(0x21f)][j(0x1f1)]);else t(W[j(0x1f7)]);}}));}}function a10M(N,M){const V=a10N();return a10M=function(L,k){L=L-0x1c8;let R=V[L];return R;},a10M(N,M);}exports[a10K(0x1f0)]=CliLogs;
1
+ 'use strict';function a10z(u,z){const D=a10u();return a10z=function(M,H){M=M-0x1f4;let O=D[M];return O;},a10z(u,z);}const a10V=a10z;(function(u,z){const L=a10z,D=u();while(!![]){try{const M=-parseInt(L(0x229))/0x1+parseInt(L(0x203))/0x2*(parseInt(L(0x215))/0x3)+parseInt(L(0x1fb))/0x4*(parseInt(L(0x227))/0x5)+-parseInt(L(0x248))/0x6+parseInt(L(0x257))/0x7+-parseInt(L(0x223))/0x8+parseInt(L(0x24f))/0x9;if(M===z)break;else D['push'](D['shift']());}catch(H){D['push'](D['shift']());}}}(a10u,0xf0884));var __awaiter=this&&this['__awaiter']||function(u,z,D,M){function H(O){return O instanceof D?O:new D(function(t){t(O);});}return new(D||(D=Promise))(function(O,t){const a=a10z;function g(N){const C=a10z;try{h(M[C(0x225)](N));}catch(Z){t(Z);}}function T(N){const j=a10z;try{h(M[j(0x222)](N));}catch(Z){t(Z);}}function h(N){const J=a10z;N[J(0x24b)]?O(N[J(0x259)]):H(N[J(0x259)])['then'](g,T);}h((M=M[a(0x217)](u,z||[]))[a(0x225)]());});},__importDefault=this&&this['__importDefault']||function(u){return u&&u['__esModule']?u:{'default':u};};Object['defineProperty'](exports,a10V(0x20d),{'value':!![]}),exports[a10V(0x247)]=void 0x0;const js_client_1=require('@northflank/js-client'),chalk_1=__importDefault(require(a10V(0x1f7))),utils_1=require(a10V(0x25b)),inquirer_helper_1=require(a10V(0x25c)),commander_1=require(a10V(0x1fc)),console_format_helpers_1=require(a10V(0x24e)),log_formatter_1=require(a10V(0x207));class CliLogs{constructor(u){const m=a10V;this['apiContext']=u,this[m(0x1fe)]=(z,D)=>(0x0,utils_1['getCommand'])(!![])[m(0x24d)]((D?m(0x242):'')+'logs')[m(0x238)]((D?'build-':'')+'log')[m(0x21d)](m(0x245)+z)[m(0x205)]('--project\x20--projectId\x20[NAME]',m(0x22b))['option']('--'+z+m(0x232)+z+m(0x210),z['charAt'](0x0)[m(0x20e)]()+z[m(0x250)](0x1)+m(0x212))[m(0x205)](m(0x253),'Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)')[m(0x205)](m(0x22a),'Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.')[m(0x205)](m(0x213),m(0x22d))[m(0x205)](m(0x1f4),'Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1[m(0x21e)],utils_1[m(0x254)])['addOption'](new commander_1[(m(0x258))](m(0x20a),'Get\x20logs\x20generated\x20before\x20this\x20time,\x20'+utils_1[m(0x21e)])[m(0x1f6)](utils_1[m(0x254)])[m(0x1f9)]([m(0x224)]))[m(0x205)](m(0x23b),m(0x24a))['addOption'](new commander_1[(m(0x258))](m(0x219),m(0x1ff))['choices']([m(0x23c),m(0x204)])[m(0x1f9)](['tail']))[m(0x216)](new commander_1[(m(0x258))]('--textIncludes\x20<text>',m(0x25a))[m(0x1f9)](['textNotIncludes',m(0x1f5),'regexNotIncludes']))['addOption'](new commander_1[(m(0x258))](m(0x23f),m(0x235))[m(0x1f9)]([m(0x25e),'regexIncludes',m(0x244)]))['addOption'](new commander_1[(m(0x258))](m(0x22c),m(0x200))['conflicts']([m(0x201),m(0x25e),'regexNotIncludes']))['addOption'](new commander_1['Option']('--regexNotIncludes\x20<regex>','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression')['conflicts']([m(0x201),m(0x1f5),m(0x25e)]))[m(0x205)]('--noDefaults','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])[m(0x216)](new commander_1[(m(0x258))]('-o,\x20--output\x20[output]','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.')[m(0x21b)](Object[m(0x22e)]([m(0x21f),m(0x208),m(0x21c)]))),this[m(0x234)]=(z,D,M,H)=>{const B=m,{containerId:O,quiet:t,tail:g,startTime:T,endTime:h,duration:N}=H;if(t===!![])return;const Z=g?'(exit\x20with\x20'+chalk_1[B(0x211)]['bold'](B(0x1fa))+')':'',E=g?B(0x202):'',X=T?B(0x24c)+T[B(0x20b)]():'',R=h?B(0x239)+h['toISOString']():'',b=N?',\x20duration:\x20'+N+'\x20seconds':'',A=O?'container\x20'+chalk_1[B(0x211)][B(0x214)](O):'all\x20containers',o=z+'\x20'+chalk_1[B(0x211)]['bold'](D)+'\x20in\x20project\x20'+chalk_1[B(0x211)][B(0x214)](M),d=''+X+R+b;console[B(0x25d)]('Container\x20logs\x20'+E+B(0x22f)+A+B(0x23e)+o+d+'\x20'+Z);},this[m(0x23a)]=(z,D)=>M=>{const f=m;if(!z){if(M['length']===0x0)console[f(0x25d)](f(0x21a));M['forEach'](H=>(0x0,log_formatter_1['formatLogLine'])(H,D));}else(0x0,console_format_helpers_1[f(0x249)])(z,M);},this[m(0x241)]=new js_client_1['ApiClient'](u,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[m(0x23d)]}),this['logsApiClient']=this['apiClient'],this['inquirerHelper']=new inquirer_helper_1[(m(0x240))](this['apiClient']);}[a10V(0x1fd)](u,z=![]){const P=a10V,D=(H,O)=>__awaiter(this,void 0x0,void 0x0,function*(){const G=a10z,t=O[G(0x252)],{apiContext:g,inquirerHelper:T}=this;switch(u){case'service':{const h=t?undefined:g['getCurrentServiceName']();return O[G(0x206)]||h||(yield T[G(0x236)](H)());}case'job':{const N=t?undefined:g[G(0x226)]();return O['jobId']||N||(yield T[G(0x230)](H)());}case G(0x20f):{const Z=t?undefined:g[G(0x226)]();return O[G(0x256)]||Z||(yield T['askForAddon'](H)());}}}),M=(H,O,t)=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=a10z;if(z)return t[Y(0x1f8)]||(yield this['inquirerHelper'][Y(0x251)](H,u==='service'?O:undefined,u===Y(0x221)?O:undefined)());return undefined;});return this[P(0x1fe)](u,z)['action'](H=>__awaiter(this,void 0x0,void 0x0,function*(){const s=P,{noDefaults:O,projectId:t,containerId:g,quiet:T,tail:h,textIncludes:N,textNotIncludes:Z,regexIncludes:E,regexNotIncludes:X,direction:R,lineLimit:b,startTime:A,endTime:o,duration:d,output:K}=H;(0x0,utils_1['assertContextExisting'])(this[s(0x241)]);const {apiContext:w,inquirerHelper:y,logsApiClient:k}=this,l=O?undefined:w['getCurrentProjectName'](),W=t||l||(yield y[s(0x237)]()),F=yield D(W,H),I=yield M(W,F,H);if(!T&&K!==s(0x21c)&&K!=='yml'&&K!==s(0x208))this[s(0x234)](u,F,W,H);if(A&&o&&d)throw new Error(s(0x255));const q={'projectId':W,'entityId':F,'buildId':I},e={'containerName':g,'textIncludes':N,'textNotIncludes':Z,'regexIncludes':E,'regexNotIncludes':X,'lineLimit':b,'startTime':A,'duration':d},Q=this[s(0x23a)](K,N!==null&&N!==void 0x0?N:E);if(h){const r=yield k[s(0x218)][s(0x233)](q,e,u);r['on'](s(0x246),Q),r['on'](s(0x231),i=>(0x0,utils_1[s(0x231)])(s(0x20c)+i['message'])),r['on']('close',()=>console[s(0x25d)](s(0x243))),yield r['start']();}else{const i=Object['assign'](Object[s(0x209)]({},e),{'endTime':o,'direction':R}),U=yield k['logs']['logRange'](q,i,u);if(U[s(0x231)])(0x0,utils_1[s(0x231)])(s(0x228)+U[s(0x231)][s(0x220)]);else Q(U['data']);}}));}}exports[a10V(0x247)]=CliLogs;function a10u(){const v=['conflicts','\x27Ctrl+C\x27','4uDsaRw','commander','getLogsCommand','getStandardLogCommand','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','textNotIncludes','\x20with\x20live-tailing\x20','86iLaJNo','forward','option','serviceId','./log-formatter','json','assign','--endTime\x20<timestamp>','toISOString','Error\x20while\x20tailing\x20log\x20lines:\x20','__esModule','toUpperCase','addon','Id\x20[NAME]','default','\x20to\x20get\x20logs\x20from','-l,\x20--lineLimit\x20[limit]','bold','19563RXDOSN','addOption','apply','logs','-d,\x20--direction\x20<order>','No\x20logs\x20found\x20for\x20this\x20query.','choices','yaml','description','tsHint','format','message','job','throw','3258736XHvLwK','tail','next','getCurrentServiceName','1357730DrLneb','Error\x20while\x20fetching\x20log\x20lines:\x20','693842TodsFm','-f,\x20--tail','Project\x20for\x20logs','--regexIncludes\x20<regex>','Number\x20of\x20lines\x20to\x20return.','values','\x20for\x20','askForJob','error','\x20--','logTail','printInitInfo','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','askForService','askForProject','alias',',\x20to:\x20','getFormatter','--duration\x20[duration]','backward','customUserAgent','\x20of\x20','--textNotIncludes\x20<text>','InquirerHelper','apiClient','build-','Log\x20session\x20ended','regexNotIncludes','Get\x20log\x20for\x20the\x20specified\x20','logs-received','CliLogs','7198698DozpXY','printResponse','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','done',',\x20from:\x20','name','../formatting/console-format-helpers','10637424nzWVDI','slice','askForBuild','noDefaults','--container\x20--containerId\x20[NAME]','parseDateInput','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','addonId','10866114llFQKf','Option','value','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','../utils','../inquirer-helper','log','textIncludes','--startTime\x20<timestamp>','regexIncludes','argParser','chalk','buildId'];a10u=function(){return v;};return a10u();}
@@ -1 +1 @@
1
- 'use strict';const a11u=a11M;(function(N,M){const h=a11M,V=N();while(!![]){try{const L=parseInt(h(0x18f))/0x1*(parseInt(h(0x195))/0x2)+parseInt(h(0x1a4))/0x3*(parseInt(h(0x1aa))/0x4)+-parseInt(h(0x191))/0x5+-parseInt(h(0x19a))/0x6+-parseInt(h(0x193))/0x7+-parseInt(h(0x1a3))/0x8*(-parseInt(h(0x19d))/0x9)+parseInt(h(0x18e))/0xa;if(L===M)break;else V['push'](V['shift']());}catch(k){V['push'](V['shift']());}}}(a11N,0xbe896));var __importDefault=this&&this['__importDefault']||function(N){const X=a11M;return N&&N[X(0x194)]?N:{'default':N};};function a11N(){const S=['8990280LIXwcg','greenBright','default','2826nmEpcf','containerId','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','dim','pattern','bold','32632LkAMFC','4288689ZkhQmQ','yellow','blue','green','log','defaultLogSyntax','4KRDOzc','chalk','cyan','grey','15542560hxYtKp','5lOePWZ','replace','6748080ryJEXU','formatLogLine','10395112xhhPBx','__esModule','339530tHavYx','color','gray','reduce','\x20--\x20'];a11N=function(){return S;};return a11N();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a11u(0x192)]=exports[a11u(0x1a9)]=void 0x0;const chalk_1=__importDefault(require(a11u(0x1ab)));exports[a11u(0x1a9)]=[{'color':'grey','pattern':/\[[0-9]{1,2}\/[a-z]{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4}\]/i},{'color':a11u(0x18d),'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':a11u(0x18d),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':'grey','pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11u(0x1a2),'pattern':new RegExp(a11u(0x19f),'i')},{'color':'green','pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11u(0x1a7),'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':a11u(0x1a6),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':a11u(0x19b),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':'red','pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11u(0x197),'pattern':/\b(information|info|debug)\b/i},{'color':a11u(0x1a5),'pattern':/\b(warning|warn)\b/i},{'color':a11u(0x1a6),'pattern':/[0-9a-f]{64}/i},{'color':a11u(0x1a6),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];function a11M(N,M){const V=a11N();return a11M=function(L,k){L=L-0x18d;let R=V[L];return R;},a11M(N,M);}const formatLogLine=(N,M)=>{const p=a11u,V=chalk_1[p(0x19c)][p(0x1a0)](N['ts']['toISOString']()),L=chalk_1[p(0x19c)][p(0x1ac)](N[p(0x19e)]),k=exports[p(0x1a9)][p(0x198)]((r,Q)=>{const F=p;return r[F(0x190)](Q[F(0x1a1)],z=>Q[F(0x196)]?chalk_1['default'][Q[F(0x196)]](z):chalk_1[F(0x19c)][F(0x18d)](z));},N[p(0x1a8)]),R=M?k[p(0x190)](new RegExp(M,'g'),r=>chalk_1['default'][p(0x1a2)](r)):k;console['log'](V+'\x20'+L+p(0x199)+R);};exports[a11u(0x192)]=formatLogLine;
1
+ 'use strict';const a11N=a11z;function a11z(u,z){const D=a11u();return a11z=function(M,H){M=M-0x183;let O=D[M];return O;},a11z(u,z);}(function(u,z){const h=a11z,D=u();while(!![]){try{const M=parseInt(h(0x196))/0x1*(-parseInt(h(0x1a2))/0x2)+parseInt(h(0x18f))/0x3+parseInt(h(0x19b))/0x4+parseInt(h(0x199))/0x5+-parseInt(h(0x188))/0x6*(-parseInt(h(0x18b))/0x7)+parseInt(h(0x19d))/0x8+-parseInt(h(0x183))/0x9;if(M===z)break;else D['push'](D['shift']());}catch(H){D['push'](D['shift']());}}}(a11u,0x21d44));var __importDefault=this&&this[a11N(0x197)]||function(u){const Z=a11N;return u&&u[Z(0x195)]?u:{'default':u};};Object['defineProperty'](exports,a11N(0x195),{'value':!![]}),exports[a11N(0x18c)]=exports['defaultLogSyntax']=void 0x0;function a11u(){const R=['gray','__esModule','1PRPcnt','__importDefault','grey','428710afvXQw','chalk','805528AOnTrg','greenBright','2196064XiGPBv','cyan','default','defaultLogSyntax','blue','480228vkUYow','pattern','3890745uFGhCG','bold','color','replace','log','880656vCkhpN','yellow','toISOString','7ByQWrw','formatLogLine','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','containerId','307725iqplpO','green','red','reduce','dim'];a11u=function(){return R;};return a11u();}const chalk_1=__importDefault(require(a11N(0x19a)));exports[a11N(0x1a0)]=[{'color':a11N(0x198),'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':a11N(0x198),'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':a11N(0x198),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11N(0x198),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11N(0x184),'pattern':new RegExp(a11N(0x18d),'i')},{'color':a11N(0x190),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11N(0x190),'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':a11N(0x19c),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11N(0x191),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11N(0x194),'pattern':/\b(information|info|debug)\b/i},{'color':a11N(0x189),'pattern':/\b(warning|warn)\b/i},{'color':a11N(0x1a1),'pattern':/[0-9a-f]{64}/i},{'color':'blue','pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(u,z)=>{const E=a11N,D=chalk_1['default'][E(0x193)](u['ts'][E(0x18a)]()),M=chalk_1[E(0x19f)][E(0x19e)](u[E(0x18e)]),H=exports[E(0x1a0)][E(0x192)]((t,g)=>{const X=E;return t[X(0x186)](g[X(0x1a3)],T=>g[X(0x185)]?chalk_1[X(0x19f)][g['color']](T):chalk_1[X(0x19f)][X(0x198)](T));},u[E(0x187)]),O=z?H['replace'](new RegExp(z,'g'),t=>chalk_1[E(0x19f)]['bold'](t)):H;console[E(0x187)](D+'\x20'+M+'\x20--\x20'+O);};exports[a11N(0x18c)]=formatLogLine;