@northflank/cli 0.9.9 → 0.9.11

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 a4O=a4V;(function(X,V){const B=a4V,h=X();while(!![]){try{const Q=parseInt(B(0x1d4))/0x1*(parseInt(B(0x1ad))/0x2)+-parseInt(B(0x1af))/0x3*(-parseInt(B(0x1a2))/0x4)+-parseInt(B(0x18d))/0x5+-parseInt(B(0x189))/0x6*(parseInt(B(0x1d5))/0x7)+-parseInt(B(0x1de))/0x8+parseInt(B(0x1bc))/0x9+parseInt(B(0x1a8))/0xa;if(Q===V)break;else h['push'](h['shift']());}catch(J){h['push'](h['shift']());}}}(a4X,0x4e558));function a4X(){const u=['__esModule','Success','readline','stdin','execJobSession','with\x20user:','with\x20command\x20\x27','customUserAgent','execServiceSession','InquirerHelper','message','--project\x20--projectId\x20[NAME]','193OmGQEc','114149ebGBRC','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','getStandardExecCommand','default','__awaiter','execCmd',',\x20exit\x20code:\x20','name','pipe','1309504CIcCFO','../utils','ApiClient','askForProject','sequence','value','addCommand','askForService','slice','stdIn','isTTY','warning','Run\x20command\x20with\x20this\x20group','Exec\x20','getCommand','waitForCommandResult','Id\x20[NAME]','resize','getTerminalSize','status','108JlAxrV','filter','\x20command\x20exec:\x20','columns','2706315EaDsZf','stderr','action','rows','next','shell\x20command\x20','option','error','\x20--','--noDefaults','execStartLog','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','resizeTerminal','getCurrentProjectName','Command\x20exec\x20for\x20the\x20specified\x20','getCurrentServiceName','without\x20shell','Command\x20completed\x20successfully,\x20exit\x20code:\x20','__importDefault','log','keypress','2044dzmmnn','Error\x20occured\x20during\x20','throw','exit','Unknown','description','1736860tdPCMT','job','none','--user\x20[USER]',',\x20details:\x20','5018wqDazC','greenBright','2274xIBzRE','charAt','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','(exit\x20with\x20two\x20quick\x20','exec','--cmd\x20--command\x20[COMMAND]','setRawMode','assertContextExisting','stdout','emitKeypressEvents','bold','command-exec','join','2466648OvMabB','CliExec','Run\x20command\x20with\x20this\x20user','service','handleShellSession','with\x20group:','Command\x20to\x20execute,\x20if\x20--shell\x20option\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell,\x20otherwise','with\x20shell\x20session','apply','apiClient','--container\x20--containerId\x20[NAME]','exitCode'];a4X=function(){return u;};return a4X();}var __awaiter=this&&this[a4O(0x1d9)]||function(X,V,h,Q){function J(G){return G instanceof h?G:new h(function(I){I(G);});}return new(h||(h=Promise))(function(G,I){const N=a4V;function T(A){const H=a4V;try{E(Q[H(0x191)](A));}catch(D){I(D);}}function W(A){const k=a4V;try{E(Q[k(0x1a4)](A));}catch(D){I(D);}}function E(A){const o=a4V;A['done']?G(A[o(0x1e3)]):J(A['value'])['then'](T,W);}E((Q=Q[N(0x1c4)](X,V||[]))['next']());});},__importDefault=this&&this[a4O(0x19f)]||function(X){const p=a4O;return X&&X[p(0x1c8)]?X:{'default':X};};function a4V(X,V){const h=a4X();return a4V=function(Q,J){Q=Q-0x17b;let G=h[Q];return G;},a4V(X,V);}Object['defineProperty'](exports,a4O(0x1c8),{'value':!![]}),exports[a4O(0x1bd)]=void 0x0;const js_client_1=require('@northflank/js-client'),chalk_1=__importDefault(require('chalk')),utils_1=require(a4O(0x1df)),inquirer_helper_1=require('../inquirer-helper');class CliExec{constructor(X){const i=a4O;this[i(0x1d7)]=J=>(0x0,utils_1['getCommand'])(!![])['name'](J)[i(0x1a7)](i(0x19b)+J)[i(0x193)](i(0x1d3),'Project\x20for\x20exec')['option']('--'+J+i(0x195)+J+i(0x185),J[i(0x1b0)](0x0)['toUpperCase']()+J[i(0x17d)](0x1)+'\x20to\x20exec\x20into')[i(0x193)](i(0x1c6),i(0x198))[i(0x193)]('--shell-cmd\x20[SHELL-CMD]',i(0x1b1))[i(0x193)](i(0x1ab),i(0x1be))[i(0x193)]('--group\x20[GROUP]',i(0x181))['option'](i(0x196),i(0x1d6),![])[i(0x193)](i(0x1b4),i(0x1c2)),this[i(0x187)]=()=>({'columns':process['stdout'][i(0x18c)],'rows':process[i(0x1b7)][i(0x190)]}),this[i(0x197)]=(J,G,I,T,W,E,A,P)=>{const x=i;if(P===!![])return;const D=T===x(0x1aa),K=D?x(0x19d):T===undefined?x(0x1c3):x(0x192)+chalk_1[x(0x1d8)][x(0x1ae)](T),d=W!==undefined?x(0x1cd)+W:'',f=E!==undefined?x(0x1c1)+E:'',z=A!==undefined?x(0x1ce)+chalk_1['default']['greenBright'](A)+'\x27':'',F=[z,K,d,f][x(0x18a)](q=>q!=='')[x(0x1bb)]('\x20'),n=x(0x1b2)+chalk_1[x(0x1d8)][x(0x1b9)]('\x27Ctrl+D\x27')+')';console[x(0x1a0)](x(0x182)+J+'\x20'+chalk_1[x(0x1d8)][x(0x1b9)](G)+'\x20in\x20project\x20'+chalk_1['default']['bold'](I)+'\x20'+F+'\x20'+n);},this[i(0x1c0)]=(J,G,I=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const L=i;var T,W;let E=![];try{if(process['stdin'][L(0x17f)]){const P=require(L(0x1ca));P[L(0x1b8)](process[L(0x1cb)]),process[L(0x1cb)]['setRawMode'](!![]),process[L(0x1b7)]['on'](L(0x186),()=>{const y=L;J[y(0x199)](this[y(0x187)]());}),process[L(0x1cb)]['on'](L(0x1a1),(D,K)=>{const M=L;K[M(0x1e2)]==='\x04'&&(E?(process[M(0x1cb)][M(0x1b5)](![]),(0x0,utils_1[M(0x180)])('Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.'),process['exit']()):(E=!![],setTimeout(()=>E=![],0x190)));});}process[L(0x1cb)][L(0x1dd)](J[L(0x17e)]),J['stdErr']['pipe'](process[L(0x18e)]),J['stdOut'][L(0x1dd)](process['stdout']),J['on'](L(0x194),D=>{const e=L;var K;(0x0,utils_1[e(0x194)])(e(0x1a3)+G+e(0x18b)+((K=D[e(0x1d2)])!==null&&K!==void 0x0?K:D)),process[e(0x1cb)][e(0x17f)]&&process['stdin'][e(0x1b5)](![]),process['exit'](-0x1);});const A=yield J[L(0x184)]();if(I!==!![]){const D=(T=A===null||A===void 0x0?void 0x0:A[L(0x188)])!==null&&T!==void 0x0?T:L(0x1a6),K=(W=A===null||A===void 0x0?void 0x0:A[L(0x1c7)])!==null&&W!==void 0x0?W:-0x1,d=(A===null||A===void 0x0?void 0x0:A['message'])?L(0x1ac)+A[L(0x1d2)]:'';D===L(0x1c9)?(0x0,utils_1['success'])(L(0x19e)+K):(0x0,utils_1[L(0x180)])('Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20'+D+L(0x1db)+K+d);}return A;}finally{process[L(0x1cb)][L(0x17f)]&&process[L(0x1cb)]['setRawMode'](![]);}}),this[i(0x1c5)]=new js_client_1[(i(0x1e0))](X,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[i(0x1cf)]});const V=new inquirer_helper_1[(i(0x1d1))](this[i(0x1c5)]);this[i(0x1da)]=(0x0,utils_1[i(0x183)])()[i(0x1dc)](i(0x1ba))['alias']('exec')[i(0x1a7)]('Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.');const h=this['getStandardExecCommand']('service')[i(0x18f)](J=>__awaiter(this,void 0x0,void 0x0,function*(){const Z=i,{noDefaults:G,projectId:I,serviceId:T,containerId:W,shellCmd:E,user:A,group:P,command:D,quiet:K}=J;(0x0,utils_1['assertContextExisting'])(this[Z(0x1c5)]);try{const d=G?undefined:X[Z(0x19a)](),f=I||d||(yield V['askForProject']()),z=G?undefined:X[Z(0x19c)](),F=T||z||(yield V[Z(0x17c)](f)()),n=E!==null&&E!==void 0x0?E:D!==undefined?Z(0x1aa):undefined;this[Z(0x197)](Z(0x1bf),F,f,n,A,P,D,K);const q=process['stdout']['columns'],a=process[Z(0x1b7)][Z(0x190)],R={'projectId':f,'serviceId':F},v=yield this['apiClient'][Z(0x1b3)][Z(0x1d0)](R,{'containerName':W,'command':D,'shell':n,'user':A,'group':P,'ttyColumns':q,'ttyRows':a});yield this[Z(0x1c0)](v,Z(0x1bf),K);}catch(g){(0x0,utils_1[Z(0x194)])(''+g['message']);}finally{process[Z(0x1a5)]();}})),Q=this[i(0x1d7)](i(0x1a9))['action'](J=>__awaiter(this,void 0x0,void 0x0,function*(){const C=i,{projectId:G,jobId:I,containerId:T,noDefaults:W,shellCmd:E,user:A,group:P,command:D,quiet:K}=J;(0x0,utils_1[C(0x1b6)])(this[C(0x1c5)]);try{const d=W?undefined:X['getCurrentProjectName'](),f=G||d||(yield V[C(0x1e1)]()),z=I||(yield V['askForJob'](f)());this[C(0x197)](C(0x1a9),z,f,E,K);const {rows:F,columns:n}=this[C(0x187)](),q={'projectId':f,'jobId':z},a=yield this[C(0x1c5)][C(0x1b3)][C(0x1cc)](q,{'containerName':T,'command':D,'shell':E,'user':A,'group':P,'ttyColumns':n,'ttyRows':F});yield this[C(0x1c0)](a,C(0x1a9),K);}catch(R){(0x0,utils_1[C(0x194)])(''+R[C(0x1d2)]);}finally{process[C(0x1a5)]();}}));this[i(0x1da)]['addCommand'](h),this[i(0x1da)][i(0x17b)](Q);}}exports[a4O(0x1bd)]=CliExec;
1
+ 'use strict';const a4e=a4h;function a4h(w,h){const G=a4w();return a4h=function(P,v){P=P-0x1f0;let O=G[P];return O;},a4h(w,h);}function a4w(){const j=['Run\x20command\x20with\x20this\x20group','1466YkkyOH','517ZImGpy','customUserAgent','setRawMode','log','27qGKdLZ','Id\x20[NAME]','stdin','filter','getCurrentProjectName','askForService','with\x20shell\x20session','../utils','job','option','isTTY','apply','\x20--','rows','stdOut','description','without\x20shell','Unknown','askForJob','\x27Ctrl+D\x27','alias','charAt','3023640btisXI','handleShellSession','addCommand','pipe','1004AOXNnJ','Command\x20completed\x20successfully,\x20exit\x20code:\x20','CliExec','name','ApiClient','greenBright','bold','warning','4395198DAKIJb',',\x20exit\x20code:\x20','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','exit','__importDefault','execStartLog','error','10VTGgdj','--user\x20[USER]','7rLziWB','execJobSession','message','slice','getStandardExecCommand','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','exec','none','readline','emitKeypressEvents','310292YhsTma','../inquirer-helper','stdout','\x20in\x20project\x20','shell\x20command\x20','join',',\x20details:\x20','stdIn','execServiceSession','resize','getCommand','then','action','getCurrentServiceName','default','InquirerHelper','assertContextExisting','stdErr','--shell-cmd\x20[SHELL-CMD]','729720pYYdlT','Project\x20for\x20exec','columns','service','Success','--cmd\x20--command\x20[COMMAND]','next','waitForCommandResult','sequence','getTerminalSize','execCmd','__awaiter','--container\x20--containerId\x20[NAME]','__esModule','with\x20command\x20\x27','chalk','command-exec','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','392052zzKlVh','success','apiClient','defineProperty','2096772LtDTfG','askForProject','resizeTerminal'];a4w=function(){return j;};return a4w();}(function(w,h){const f=a4h,G=w();while(!![]){try{const P=parseInt(f(0x206))/0x1*(-parseInt(f(0x24e))/0x2)+-parseInt(f(0x24a))/0x3+parseInt(f(0x221))/0x4*(parseInt(f(0x215))/0x5)+-parseInt(f(0x20e))/0x6*(-parseInt(f(0x217))/0x7)+parseInt(f(0x234))/0x8*(-parseInt(f(0x253))/0x9)+-parseInt(f(0x202))/0xa+parseInt(f(0x24f))/0xb*(parseInt(f(0x246))/0xc);if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a4w,0x64abf));var __awaiter=this&&this[a4e(0x23f)]||function(w,h,G,v){function O(Z){return Z instanceof G?Z:new G(function(a){a(Z);});}return new(G||(G=Promise))(function(Z,a){const t=a4h;function l(A){const i=a4h;try{U(v[i(0x23a)](A));}catch(D){a(D);}}function B(A){try{U(v['throw'](A));}catch(D){a(D);}}function U(A){const u=a4h;A['done']?Z(A['value']):O(A['value'])[u(0x22c)](l,B);}U((v=v[t(0x1f7)](w,h||[]))[t(0x23a)]());});},__importDefault=this&&this[a4e(0x212)]||function(w){const S=a4e;return w&&w[S(0x241)]?w:{'default':w};};Object[a4e(0x249)](exports,a4e(0x241),{'value':!![]}),exports[a4e(0x208)]=void 0x0;const js_client_1=require('@northflank/js-client'),chalk_1=__importDefault(require(a4e(0x243))),utils_1=require(a4e(0x1f3)),inquirer_helper_1=require(a4e(0x222));class CliExec{constructor(w){const V=a4e;this[V(0x21b)]=v=>(0x0,utils_1[V(0x22b)])(!![])['name'](v)[V(0x1fb)]('Command\x20exec\x20for\x20the\x20specified\x20'+v)['option']('--project\x20--projectId\x20[NAME]',V(0x235))[V(0x1f5)]('--'+v+V(0x1f8)+v+V(0x254),v[V(0x201)](0x0)['toUpperCase']()+v[V(0x21a)](0x1)+'\x20to\x20exec\x20into')['option'](V(0x240),V(0x210))[V(0x1f5)](V(0x233),V(0x21c))[V(0x1f5)](V(0x216),'Run\x20command\x20with\x20this\x20user')[V(0x1f5)]('--group\x20[GROUP]',V(0x24d))[V(0x1f5)]('--noDefaults','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])[V(0x1f5)](V(0x239),'Command\x20to\x20execute,\x20if\x20--shell\x20option\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell,\x20otherwise'),this[V(0x23d)]=()=>({'columns':process[V(0x223)]['columns'],'rows':process['stdout'][V(0x1f9)]}),this[V(0x213)]=(v,O,Z,a,l,B,U,A)=>{const C=V;if(A===!![])return;const D=a===C(0x21e),p=D?C(0x1fc):a===undefined?C(0x1f2):C(0x225)+chalk_1['default'][C(0x20b)](a),s=l!==undefined?'with\x20user:'+l:'',W=B!==undefined?'with\x20group:'+B:'',X=U!==undefined?C(0x242)+chalk_1[C(0x22f)][C(0x20b)](U)+'\x27':'',T=[X,p,s,W][C(0x256)](k=>k!=='')[C(0x226)]('\x20'),I='(exit\x20with\x20two\x20quick\x20'+chalk_1['default']['bold'](C(0x1ff))+')';console[C(0x252)]('Exec\x20'+v+'\x20'+chalk_1['default'][C(0x20c)](O)+C(0x224)+chalk_1[C(0x22f)][C(0x20c)](Z)+'\x20'+T+'\x20'+I);},this[V(0x203)]=(v,O,Z=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const M=V;var a,l;let B=![];try{if(process[M(0x255)][M(0x1f6)]){const A=require(M(0x21f));A[M(0x220)](process[M(0x255)]),process[M(0x255)]['setRawMode'](!![]),process[M(0x223)]['on'](M(0x22a),()=>{const Q=M;v[Q(0x24c)](this['getTerminalSize']());}),process[M(0x255)]['on']('keypress',(D,p)=>{const H=M;p[H(0x23c)]==='\x04'&&(B?(process[H(0x255)][H(0x251)](![]),(0x0,utils_1[H(0x20d)])('Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.'),process['exit']()):(B=!![],setTimeout(()=>B=![],0x190)));});}process[M(0x255)]['pipe'](v[M(0x228)]),v[M(0x232)][M(0x205)](process['stderr']),v[M(0x1fa)][M(0x205)](process[M(0x223)]),v['on'](M(0x214),D=>{const n=M;var p;(0x0,utils_1[n(0x214)])('Error\x20occured\x20during\x20'+O+'\x20command\x20exec:\x20'+((p=D['message'])!==null&&p!==void 0x0?p:D)),process[n(0x255)][n(0x1f6)]&&process[n(0x255)][n(0x251)](![]),process[n(0x211)](-0x1);});const U=yield v[M(0x23b)]();if(Z!==!![]){const D=(a=U===null||U===void 0x0?void 0x0:U['status'])!==null&&a!==void 0x0?a:M(0x1fd),p=(l=U===null||U===void 0x0?void 0x0:U['exitCode'])!==null&&l!==void 0x0?l:-0x1,s=(U===null||U===void 0x0?void 0x0:U[M(0x219)])?M(0x227)+U[M(0x219)]:'';D===M(0x238)?(0x0,utils_1[M(0x247)])(M(0x207)+p):(0x0,utils_1[M(0x20d)])('Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20'+D+M(0x20f)+p+s);}return U;}finally{process['stdin']['isTTY']&&process['stdin'][M(0x251)](![]);}}),this['apiClient']=new js_client_1[(V(0x20a))](w,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[V(0x250)]});const h=new inquirer_helper_1[(V(0x230))](this[V(0x248)]);this[V(0x23e)]=(0x0,utils_1[V(0x22b)])()[V(0x209)](V(0x244))[V(0x200)](V(0x21d))[V(0x1fb)](V(0x245));const G=this[V(0x21b)](V(0x237))[V(0x22d)](v=>__awaiter(this,void 0x0,void 0x0,function*(){const c=V,{noDefaults:O,projectId:Z,serviceId:a,containerId:l,shellCmd:B,user:U,group:A,command:D,quiet:p}=v;(0x0,utils_1[c(0x231)])(this['apiClient']);try{const s=O?undefined:w[c(0x1f0)](),W=Z||s||(yield h[c(0x24b)]()),X=O?undefined:w[c(0x22e)](),T=a||X||(yield h[c(0x1f1)](W)()),I=B!==null&&B!==void 0x0?B:D!==undefined?c(0x21e):undefined;this[c(0x213)]('service',T,W,I,U,A,D,p);const k=process[c(0x223)][c(0x236)],Y=process['stdout']['rows'],x={'projectId':W,'serviceId':T},b=yield this[c(0x248)]['exec'][c(0x229)](x,{'containerName':l,'command':D,'shell':I,'user':U,'group':A,'ttyColumns':k,'ttyRows':Y});yield this[c(0x203)](b,c(0x237),p);}catch(q){(0x0,utils_1[c(0x214)])(''+q['message']);}finally{process[c(0x211)]();}})),P=this['getStandardExecCommand'](V(0x1f4))['action'](v=>__awaiter(this,void 0x0,void 0x0,function*(){const r=V,{projectId:O,jobId:Z,containerId:a,noDefaults:l,shellCmd:B,user:U,group:A,command:D,quiet:p}=v;(0x0,utils_1[r(0x231)])(this['apiClient']);try{const s=l?undefined:w[r(0x1f0)](),W=O||s||(yield h[r(0x24b)]()),X=Z||(yield h[r(0x1fe)](W)());this[r(0x213)](r(0x1f4),X,W,B,p);const {rows:T,columns:I}=this['getTerminalSize'](),k={'projectId':W,'jobId':X},Y=yield this['apiClient'][r(0x21d)][r(0x218)](k,{'containerName':a,'command':D,'shell':B,'user':U,'group':A,'ttyColumns':I,'ttyRows':T});yield this[r(0x203)](Y,'job',p);}catch(x){(0x0,utils_1[r(0x214)])(''+x[r(0x219)]);}finally{process[r(0x211)]();}}));this[V(0x23e)]['addCommand'](G),this[V(0x23e)][V(0x204)](P);}}exports['CliExec']=CliExec;
@@ -1 +1 @@
1
- 'use strict';const a5v=a5V;(function(X,V){const R=a5V,h=X();while(!![]){try{const Q=-parseInt(R(0x146))/0x1*(parseInt(R(0x13a))/0x2)+parseInt(R(0x152))/0x3*(-parseInt(R(0x142))/0x4)+-parseInt(R(0x148))/0x5+parseInt(R(0x15b))/0x6+parseInt(R(0x155))/0x7*(-parseInt(R(0x158))/0x8)+-parseInt(R(0x13c))/0x9+-parseInt(R(0x153))/0xa*(-parseInt(R(0x140))/0xb);if(Q===V)break;else h['push'](h['shift']());}catch(J){h['push'](h['shift']());}}}(a5X,0xafac0));function a5V(X,V){const h=a5X();return a5V=function(Q,J){Q=Q-0x138;let G=h[Q];return G;},a5V(X,V);}var __awaiter=this&&this[a5v(0x150)]||function(X,V,h,Q){function J(G){return G instanceof h?G:new h(function(I){I(G);});}return new(h||(h=Promise))(function(G,I){const O=a5V;function T(A){try{E(Q['next'](A));}catch(D){I(D);}}function W(A){const g=a5V;try{E(Q[g(0x14b)](A));}catch(D){I(D);}}function E(A){const B=a5V;A[B(0x141)]?G(A[B(0x15e)]):J(A['value'])['then'](T,W);}E((Q=Q[O(0x147)](X,V||[]))[O(0x139)]());});},__importDefault=this&&this['__importDefault']||function(X){return X&&X['__esModule']?X:{'default':X};};Object[a5v(0x13b)](exports,a5v(0x15c),{'value':!![]}),exports[a5v(0x138)]=void 0x0;function a5X(){const o=['option','291840csrxiE','__esModule','forEach','value','chalk','getCommandOverview','next','914402vyYNoJ','defineProperty','10053198Vzycay','../utils','green','every','6457NiogDu','done','4lylzZO','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','description','opts','3EQphiz','apply','5852380PUqZCK','commands','map','throw','slice','--verbose','action','keys','__awaiter','name','3127380bOEiER','114710NNbbEH','length','21mNubDp','bold','command-overview','3629344PVNtjL','getCommand'];a5X=function(){return o;};return a5X();}const chalk_1=__importDefault(require(a5v(0x15f))),utils_1=require(a5v(0x13d));function getCommandOverview(X){const H=a5v;return(0x0,utils_1[H(0x159)])()[H(0x151)](H(0x157))[H(0x144)](H(0x143))[H(0x15a)](H(0x14d),'Print\x20command\x20descriptions')[H(0x14e)](V=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:h}=V;function Q(J,G){const k=a5V;var I;const T=(n,q=!![])=>q?chalk_1['default'][k(0x156)][k(0x13e)](n[k(0x151)]()):n[k(0x151)](),W=G[k(0x154)]===0x0,E=J['commands'];let A='';const P=E[k(0x154)]===0x0,D=P||((I=Object[k(0x14f)](J===null||J===void 0x0?void 0x0:J[k(0x145)]()))===null||I===void 0x0?void 0x0:I[k(0x154)])>0x0;!W&&(A=E&&!P?'┬\x20':'─\x20');const K=h&&D&&J['description']()?':\x20'+J[k(0x144)]():'';console['log'](''+G+A+T(J,D)+K);let d=G;if(!W){const n=G[k(0x14c)](-0x2)==='└─';d=G['slice'](0x0,-0x2)+(n?'\x20\x20':'│\x20');}const f=d+'├─',z=d+'└─',F=E[k(0x13f)](q=>q[k(0x149)][k(0x154)]===0x0);F&&!P&&!h?console['log'](z+'\x20'+E[k(0x14a)](q=>T(q))['join'](',\x20')):E[k(0x15d)]((q,a)=>{Q(q,E['length']-0x1===a?z:f);});}Q(X,'');}));}exports[a5v(0x138)]=getCommandOverview;
1
+ 'use strict';const a5b=a5h;(function(w,h){const x=a5h,G=w();while(!![]){try{const P=-parseInt(x(0x1b5))/0x1*(-parseInt(x(0x1c9))/0x2)+parseInt(x(0x1ad))/0x3*(parseInt(x(0x1c4))/0x4)+-parseInt(x(0x1b8))/0x5+-parseInt(x(0x1a9))/0x6*(-parseInt(x(0x1ce))/0x7)+-parseInt(x(0x1c0))/0x8*(-parseInt(x(0x1bf))/0x9)+-parseInt(x(0x1ba))/0xa+parseInt(x(0x1c6))/0xb;if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a5w,0xbd9c0));function a5h(w,h){const G=a5w();return a5h=function(P,v){P=P-0x1a9;let O=G[P];return O;},a5h(w,h);}function a5w(){const S=['defineProperty','342xQhqrX','63088DpgcUK','map','forEach','command-overview','4WwvhxR','../utils','2495031hDmrph','next','name','18FybXPZ','apply','__esModule','slice','value','379547FntOns','default','60iXyFcI','__importDefault','opts','length','3565659wXnDUa','getCommand','chalk','bold','done','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','getCommandOverview','log','88997GdptRj','then','description','4492785jdmDLi','keys','13830280pdhOGT','option','__awaiter','throw'];a5w=function(){return S;};return a5w();}var __awaiter=this&&this[a5b(0x1bc)]||function(w,h,G,v){function O(Z){return Z instanceof G?Z:new G(function(a){a(Z);});}return new(G||(G=Promise))(function(Z,a){const e=a5h;function l(A){try{U(v['next'](A));}catch(D){a(D);}}function B(A){const q=a5h;try{U(v[q(0x1bd)](A));}catch(D){a(D);}}function U(A){const f=a5h;A[f(0x1b1)]?Z(A[f(0x1cd)]):O(A[f(0x1cd)])[f(0x1b6)](l,B);}U((v=v[e(0x1ca)](w,h||[]))[e(0x1c7)]());});},__importDefault=this&&this[a5b(0x1aa)]||function(w){const i=a5b;return w&&w[i(0x1cb)]?w:{'default':w};};Object[a5b(0x1be)](exports,'__esModule',{'value':!![]}),exports['getCommandOverview']=void 0x0;const chalk_1=__importDefault(require(a5b(0x1af))),utils_1=require(a5b(0x1c5));function getCommandOverview(w){const u=a5b;return(0x0,utils_1[u(0x1ae)])()[u(0x1c8)](u(0x1c3))[u(0x1b7)](u(0x1b2))[u(0x1bb)]('--verbose','Print\x20command\x20descriptions')['action'](h=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:G}=h;function P(v,O){const t=a5h;var Z;const a=(I,k=!![])=>k?chalk_1[t(0x1cf)][t(0x1b0)]['green'](I[t(0x1c8)]()):I[t(0x1c8)](),l=O['length']===0x0,B=v['commands'];let U='';const A=B[t(0x1ac)]===0x0,D=A||((Z=Object[t(0x1b9)](v===null||v===void 0x0?void 0x0:v[t(0x1ab)]()))===null||Z===void 0x0?void 0x0:Z[t(0x1ac)])>0x0;!l&&(U=B&&!A?'┬\x20':'─\x20');const p=G&&D&&v[t(0x1b7)]()?':\x20'+v[t(0x1b7)]():'';console[t(0x1b4)](''+O+U+a(v,D)+p);let s=O;if(!l){const I=O[t(0x1cc)](-0x2)==='└─';s=O[t(0x1cc)](0x0,-0x2)+(I?'\x20\x20':'│\x20');}const W=s+'├─',X=s+'└─',T=B['every'](k=>k['commands']['length']===0x0);T&&!A&&!G?console[t(0x1b4)](X+'\x20'+B[t(0x1c1)](k=>a(k))['join'](',\x20')):B[t(0x1c2)]((k,Y)=>{P(k,B['length']-0x1===Y?X:W);});}P(w,'');}));}exports[a5b(0x1b3)]=getCommandOverview;
@@ -1 +1 @@
1
- 'use strict';const a6f=a6V;(function(X,V){const d=a6V,h=X();while(!![]){try{const Q=parseInt(d(0xea))/0x1*(parseInt(d(0xde))/0x2)+-parseInt(d(0x101))/0x3*(-parseInt(d(0x109))/0x4)+parseInt(d(0x113))/0x5*(parseInt(d(0xe2))/0x6)+parseInt(d(0xfa))/0x7+parseInt(d(0xe8))/0x8+-parseInt(d(0xfc))/0x9*(parseInt(d(0xf8))/0xa)+parseInt(d(0x112))/0xb*(-parseInt(d(0x10f))/0xc);if(Q===V)break;else h['push'](h['shift']());}catch(J){h['push'](h['shift']());}}}(a6X,0xeca90));var __createBinding=this&&this['__createBinding']||(Object[a6f(0xe5)]?function(X,V,h,Q){const z=a6f;if(Q===undefined)Q=h;var J=Object['getOwnPropertyDescriptor'](V,h);(!J||(z(0xfb)in J?!V[z(0xdc)]:J[z(0x104)]||J[z(0x108)]))&&(J={'enumerable':!![],'get':function(){return V[h];}}),Object['defineProperty'](X,Q,J);}:function(X,V,h,Q){if(Q===undefined)Q=h;X[Q]=V[h];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a6f(0xe5)]?function(X,V){Object['defineProperty'](X,'default',{'enumerable':!![],'value':V});}:function(X,V){const F=a6f;X[F(0x10c)]=V;}),__importStar=this&&this['__importStar']||function(X){const n=a6f;if(X&&X[n(0xdc)])return X;var V={};if(X!=null){for(var h in X)if(h!==n(0x10c)&&Object[n(0x10d)]['hasOwnProperty'][n(0xf4)](X,h))__createBinding(V,X,h);}return __setModuleDefault(V,X),V;},__importDefault=this&&this[a6f(0xf3)]||function(X){const q=a6f;return X&&X[q(0xdc)]?X:{'default':X};};function a6X(){const i=['length','safeDump','8570pLEMkz','keys','12477129AtWLDL','get','13284zVLgWR','isUndefined','No\x20','handleFormattedOutput','createdat','20073zrqXeg','lodash','bold','writable','includes','getSeconds','inspect','configurable','872GDFHuU','handleYamlOutput','yaml','default','prototype','yml','30083964YuPeXV','clone','isBoolean','11oNVTcZ','5rmMsaB','js-yaml','sort','defineProperty','updatedat','toString','consoleFormat','log','__esModule','forEach','2TFwlVT','handleJsonOutput','getMinutes','map','4857228HpnLah','getMonth','disabled','create','chalk','printResponse','1843456ctUvdq','toLowerCase','460234GrvPds','isFinite','util','set','\x20found','stringify','format','replace','getDate','__importDefault','call','getHours'];a6X=function(){return i;};return a6X();}Object[a6f(0xd7)](exports,'__esModule',{'value':!![]}),exports[a6f(0xe7)]=exports[a6f(0xff)]=exports[a6f(0x10a)]=exports[a6f(0xdf)]=exports[a6f(0xda)]=exports['printAsTable']=void 0x0;const chalk_1=__importDefault(require(a6f(0xe6))),_=__importStar(require(a6f(0x102))),util=__importStar(require(a6f(0xec))),yaml=require(a6f(0x114)),columnify=require('columnify');function printAsTable(X,V,h,Q=![],J=0x0){const a=a6f;!Q&&console[a(0xdb)](''+chalk_1['default'][a(0x103)](V));function G(T){const R=a;return T===R(0xe4)?T:T[R(0xf1)](R(0xe4),'');}function I(T,W){const g=a;function E(P){const v=a6V,D=new Date(P);return D[v(0xf2)]()+'/'+D[v(0xe3)]()+'/'+D['getFullYear']()+'\x0a'+D[v(0xf5)]()+':'+D[v(0xe0)]()+':'+D[v(0x106)]();}const A=[g(0x100),g(0xd8)];if(A['includes'](W['toLowerCase']())&&_[g(0xeb)](T)&&T['toString']()[g(0xf6)]===0xd)return E(Number(T));if(_[g(0x111)](T)){if(W!==g(0xe4)&&W['includes'](g(0xe4)))return T?'x':'✔';return T?'✔':'x';}if(_['isObjectLike'](T))return util[g(0x107)](T,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return T;}if(_['isArrayLike'](X)){X['length']===0x0&&console['log'](a(0xfe)+V[a(0xe9)]()+a(0xee));const T=X[a(0xe1)]((A,P)=>{const B=a,D={'i':P+J};return Object[B(0xf9)](A)[B(0xdd)](K=>{const O=B;(_[O(0xfd)](h)||h[O(0x105)](K['toLowerCase']()))&&_[O(0xed)](D,G(K),I(A[K],K));}),D;}),W=_[a(0x110)](Object[a(0xf9)]((T===null||T===void 0x0?void 0x0:T[0x0])||[]))[a(0x115)]((A,P)=>{const D=K=>K!=='i'?K!=='internalId'?0x0:0x1:0x2;return D(P)-D(A);}),E={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!Q,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':W};console[a(0xdb)](columnify(T,E));}else console['log'](X);}function a6V(X,V){const h=a6X();return a6V=function(Q,J){Q=Q-0xd7;let G=h[Q];return G;},a6V(X,V);}exports['printAsTable']=printAsTable;function consoleFormat(X){const H=a6f;if(!_['isObjectLike'](X))return X===null||X===void 0x0?void 0x0:X[H(0xd9)]();return util['inspect'](X,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports['consoleFormat']=consoleFormat;const handleJsonOutput=(X,V)=>{const k=a6f,h=X==='json';if(h)console[k(0xdb)](JSON[k(0xef)](V,null,'\x20'));};exports[a6f(0xdf)]=handleJsonOutput;const handleYamlOutput=(X,V)=>{const o=a6f,h=X===o(0x10b)||X===o(0x10e);if(h)console[o(0xdb)](yaml[o(0xf7)](V));};exports['handleYamlOutput']=handleYamlOutput;const handleFormattedOutput=(X,V)=>{const N=a6f,h=X===N(0xf0);if(h)console[N(0xdb)](consoleFormat(V));};exports['handleFormattedOutput']=handleFormattedOutput;const printResponse=(X,V)=>{const p=a6f;(0x0,exports['handleJsonOutput'])(X,V),(0x0,exports[p(0x10a)])(X,V),(0x0,exports['handleFormattedOutput'])(X,V);};exports['printResponse']=printResponse;
1
+ 'use strict';const a6W=a6h;(function(w,h){const s=a6h,G=w();while(!![]){try{const P=-parseInt(s(0x82))/0x1*(parseInt(s(0xab))/0x2)+parseInt(s(0xbe))/0x3+-parseInt(s(0xaf))/0x4*(parseInt(s(0xa9))/0x5)+-parseInt(s(0x7f))/0x6+parseInt(s(0xbb))/0x7*(-parseInt(s(0xbd))/0x8)+-parseInt(s(0xb9))/0x9*(parseInt(s(0x89))/0xa)+-parseInt(s(0xbc))/0xb*(-parseInt(s(0x9e))/0xc);if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a6w,0xee88e));var __createBinding=this&&this[a6W(0xa2)]||(Object[a6W(0x9d)]?function(w,h,G,P){const X=a6W;if(P===undefined)P=G;var v=Object[X(0xb3)](h,G);(!v||('get'in v?!h[X(0xb7)]:v[X(0x7e)]||v[X(0x9a)]))&&(v={'enumerable':!![],'get':function(){return h[G];}}),Object[X(0xb5)](w,P,v);}:function(w,h,G,P){if(P===undefined)P=G;w[P]=h[G];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a6W(0x9d)]?function(w,h){const T=a6W;Object['defineProperty'](w,T(0x96),{'enumerable':!![],'value':h});}:function(w,h){const I=a6W;w[I(0x96)]=h;}),__importStar=this&&this[a6W(0xae)]||function(w){const k=a6W;if(w&&w['__esModule'])return w;var h={};if(w!=null){for(var G in w)if(G!=='default'&&Object[k(0xb8)]['hasOwnProperty'][k(0x94)](w,G))__createBinding(h,w,G);}return __setModuleDefault(h,w),h;},__importDefault=this&&this[a6W(0x84)]||function(w){const Y=a6W;return w&&w[Y(0xb7)]?w:{'default':w};};Object[a6W(0xb5)](exports,a6W(0xb7),{'value':!![]}),exports[a6W(0xa7)]=exports['handleFormattedOutput']=exports[a6W(0xaa)]=exports['handleJsonOutput']=exports['consoleFormat']=exports['printAsTable']=void 0x0;const chalk_1=__importDefault(require(a6W(0x8b))),_=__importStar(require(a6W(0xb6))),util=__importStar(require('util')),yaml=require('js-yaml'),columnify=require(a6W(0xa8));function printAsTable(w,h,G,P=![],v=0x0){const x=a6W;!P&&console['log'](''+chalk_1[x(0x96)][x(0xa4)](h));function O(a){const b=x;return a===b(0x86)?a:a['replace'](b(0x86),'');}function Z(a,l){const f=x;function B(A){const q=a6h,D=new Date(A);return D[q(0x92)]()+'/'+D[q(0xb0)]()+'/'+D[q(0x8e)]()+'\x0a'+D[q(0x8d)]()+':'+D[q(0x90)]()+':'+D[q(0x8a)]();}const U=['createdat',f(0x9f)];if(U[f(0x8c)](l[f(0x93)]())&&_[f(0x80)](a)&&a[f(0x97)]()[f(0x91)]===0xd)return B(Number(a));if(_['isBoolean'](a)){if(l!=='disabled'&&l['includes'](f(0x86)))return a?'x':'✔';return a?'✔':'x';}if(_['isObjectLike'](a))return util[f(0xba)](a,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return a;}if(_[x(0xb1)](w)){w['length']===0x0&&console[x(0x95)](x(0xb4)+h[x(0x93)]()+x(0x9c));const a=w['map']((U,A)=>{const e=x,D={'i':A+v};return Object[e(0x87)](U)['forEach'](p=>{const i=e;(_[i(0x98)](G)||G['includes'](p[i(0x93)]()))&&_[i(0xa3)](D,O(p),Z(U[p],p));}),D;}),l=_[x(0x7c)](Object['keys']((a===null||a===void 0x0?void 0x0:a[0x0])||[]))[x(0xad)]((U,A)=>{const u=x,D=p=>p!=='i'?p!==u(0xac)?0x0:0x1:0x2;return D(A)-D(U);}),B={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!P,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':l};console[x(0x95)](columnify(a,B));}else console[x(0x95)](w);}exports[a6W(0x9b)]=printAsTable;function a6w(){const Q=['toString','isUndefined','yaml','configurable','printAsTable','\x20found','create','2234472gFNQTq','updatedat','yml','The\x20request\x20was\x20completed\x20successfully','__createBinding','set','bold','isEmpty','format','printResponse','columnify','5qSuUsh','handleYamlOutput','62YyqnqK','internalId','sort','__importStar','245524OgzySU','getMonth','isArrayLike','handleJsonOutput','getOwnPropertyDescriptor','No\x20','defineProperty','lodash','__esModule','prototype','9WKSSRR','inspect','244223EjISOi','121NigLAy','144enPovy','3735891TTuOis','clone','consoleFormat','writable','7849638NfrrHi','isFinite','stringify','10002bNeUrY','safeDump','__importDefault','handleFormattedOutput','disabled','keys','isObjectLike','88070lIpnKY','getSeconds','chalk','includes','getHours','getFullYear','\x20(HTTP\x20status:\x20','getMinutes','length','getDate','toLowerCase','call','log','default'];a6w=function(){return Q;};return a6w();}function consoleFormat(w,h){const t=a6W;if(_[t(0xa5)](w)){const G=h?t(0x8f)+h+')':'';return chalk_1[t(0x96)]['green'](t(0xa1))+G;}if(!_[t(0x88)](w))return w===null||w===void 0x0?void 0x0:w[t(0x97)]();return util['inspect'](w,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6W(0x7d)]=consoleFormat;const handleJsonOutput=(w,h)=>{const S=a6W,G=w==='json';if(G)console['log'](JSON[S(0x81)](h,null,'\x20'));};exports[a6W(0xb2)]=handleJsonOutput;const handleYamlOutput=(w,h)=>{const V=a6W,G=w===V(0x99)||w===V(0xa0);if(G)console[V(0x95)](yaml[V(0x83)](h));};exports[a6W(0xaa)]=handleYamlOutput;function a6h(w,h){const G=a6w();return a6h=function(P,v){P=P-0x7c;let O=G[P];return O;},a6h(w,h);}const handleFormattedOutput=(w,h)=>{const C=a6W,G=w===C(0xa6);if(G)console[C(0x95)](consoleFormat(h));};exports[a6W(0x85)]=handleFormattedOutput;const printResponse=(w,h)=>{const M=a6W;(0x0,exports[M(0xb2)])(w,h),(0x0,exports[M(0xaa)])(w,h),(0x0,exports[M(0x85)])(w,h);};exports[a6W(0xa7)]=printResponse;
@@ -1 +1 @@
1
- 'use strict';const a7t=a7V;(function(X,V){const S=a7V,h=X();while(!![]){try{const Q=-parseInt(S(0x1c3))/0x1*(-parseInt(S(0x1b4))/0x2)+-parseInt(S(0x1ca))/0x3+parseInt(S(0x1d0))/0x4*(parseInt(S(0x1ce))/0x5)+parseInt(S(0x1c5))/0x6+-parseInt(S(0x1be))/0x7+-parseInt(S(0x1d4))/0x8*(parseInt(S(0x1d8))/0x9)+parseInt(S(0x1c4))/0xa;if(Q===V)break;else h['push'](h['shift']());}catch(J){h['push'](h['shift']());}}}(a7X,0xaecf5));function a7V(X,V){const h=a7X();return a7V=function(Q,J){Q=Q-0x1b1;let G=h[Q];return G;},a7V(X,V);}var __importDefault=this&&this[a7t(0x1bf)]||function(X){const U=a7t;return X&&X[U(0x1b5)]?X:{'default':X};};Object[a7t(0x1ba)](exports,'__esModule',{'value':!![]}),exports[a7t(0x1c8)]=exports[a7t(0x1b7)]=void 0x0;const chalk_1=__importDefault(require(a7t(0x1b8))),colored=(X,V)=>{const X0=a7t;return V===undefined?X:chalk_1[X0(0x1c1)][V](X);},getAsciiChart=(X,V={})=>{const X1=a7t,h=Array['isArray'](X[0x0])?X:[X];let Q=typeof V[X1(0x1d5)]!==X1(0x1cd)?V[X1(0x1d5)]:h[0x0][0x0],J=typeof V['max']!==X1(0x1cd)?V['max']:h[0x0][0x0];for(let R=0x0;R<h[X1(0x1cc)];R++){for(let v=0x0;v<h[R][X1(0x1cc)];v++){Q=Math[X1(0x1d5)](Q,h[R][v]),J=Math[X1(0x1c6)](J,h[R][v]);}}let G=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],I=Math[X1(0x1cf)](J-Q),T=typeof V[X1(0x1b3)]!=='undefined'?V[X1(0x1b3)]:0x3,W=typeof V[X1(0x1d2)]!==X1(0x1cd)?V[X1(0x1d2)]:X1(0x1bc),E=typeof V['height']!==X1(0x1cd)?V['height']:I,A=typeof V['colors']!=='undefined'?V['colors']:['blue','red','green','grey',X1(0x1d1)],P=I!==0x0?E/I:0x1,D=Math[X1(0x1c0)](Q*P),K=Math[X1(0x1c0)](J*P),d=Math[X1(0x1cf)](K-D),f=0x0;for(let g=0x0;g<h[X1(0x1cc)];g++){f=Math[X1(0x1c6)](f,h[g][X1(0x1cc)]);}f=f+T;let z=typeof V[X1(0x1c2)]!==X1(0x1cd)?V[X1(0x1c2)]:G,F=V[X1(0x1c7)]!==undefined?V[X1(0x1c7)]:function(B){const X2=X1;return(W+B[X2(0x1d7)](0x2)+V[X2(0x1b1)])[X2(0x1b2)](-W[X2(0x1cc)]);},n=new Array(d+0x1);for(let B=0x0;B<=d;B++){n[B]=new Array(f);for(let O=0x0;O<f;O++){n[B][O]='\x20';}}for(let H=D;H<=K;++H){const k=F(d>0x0?J-(H-D)*I/d:H,H-D);n[H-D][Math[X1(0x1c6)](T-k['length'],0x0)]=k,n[H-D][T-0x1]=H==0x0?z[0x0]:z[0x1];}for(let o=0x0;o<h['length'];o++){let N=A[o%A['length']],p=Math['round'](h[o][0x0]*P)-D;n[d-p][T-0x1]=colored(z[0x0],N);for(let L=0x0;L<h[o][X1(0x1cc)]-0x1;L++){let M=Math[X1(0x1c0)](h[o][L+0x0]*P)-D,e=Math[X1(0x1c0)](h[o][L+0x1]*P)-D;if(M==e)n[d-M][L+T]=colored(z[0x4],N);else{n[d-e][L+T]=colored(M>e?z[0x5]:z[0x6],N),n[d-M][L+T]=colored(M>e?z[0x7]:z[0x8],N);let Z=Math[X1(0x1d5)](M,e),C=Math[X1(0x1c6)](M,e);for(let u=Z+0x1;u<C;u++){n[d-u][L+T]=colored(z[0x9],N);}}}}const {startTs:q,endTs:a}=V;if(q||a){const c=m=>{const X3=X1;if(!m)return X3(0x1c9);const r=m[X3(0x1b9)](undefined,{'day':X3(0x1d9),'month':X3(0x1d9),'year':X3(0x1d9)}),l=m['toLocaleTimeString'](undefined,{'hourCycle':X3(0x1d6)});return r+'\x20'+l;},Y=c(a),b=c(q),s=W['slice'](0x0,Math[X1(0x1c6)](0x2,W[X1(0x1cc)]-b[X1(0x1cc)]/0x2+0x1)),w='\x20'[X1(0x1bb)](Math[X1(0x1c6)](f-(W['length']+Y[X1(0x1cc)]/0x2),0x1));n[X1(0x1b6)]([''+s+b+w+Y]),n[X1(0x1b6)]([]);}return n[X1(0x1bd)](m=>m[X1(0x1cb)](''))[X1(0x1cb)]('\x0a');};exports[a7t(0x1b7)]=getAsciiChart;const downSampleData=(X,V)=>{const X4=a7t,h=X[X4(0x1cc)];if(V>=h||V===0x0)return X;const Q=[];let J=0x0;const G=(h-0x2)/(V-0x2);let I=0x0,T,W,E,A;Q[J++]=X[I];for(var P=0x0;P<V-0x2;P++){let F=0x0,n=0x0,q=Math[X4(0x1d3)]((P+0x1)*G)+0x1,R=Math[X4(0x1d3)]((P+0x2)*G)+0x1;R=R<h?R:h;var D=R-q;for(;q<R;q++){F+=X[q][0x0],n+=X[q][0x1];}F/=D,n/=D;var K=Math[X4(0x1d3)](P*G)+0x1,d=Math['floor']((P+0x1)*G)+0x1,f=X[I][0x0],z=X[I][0x1];W=E=-0x1;for(;K<d;K++){E=Math[X4(0x1cf)]((f-F)*(X[K][0x1]-z)-(f-X[K][0x0])*(n-z))*0.5,E>W&&(W=E,T=X[K],A=K);}Q[J++]=T,I=A;}return Q[J++]=X[h-0x1],Q;};function a7X(){const X5=['floor','168WfnDmC','min','h24','toFixed','547146LukMcr','2-digit','unit','slice','offset','142dmfItJ','__esModule','push','getAsciiChart','chalk','toLocaleDateString','defineProperty','repeat','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','map','6005391nnbpjw','__importDefault','round','default','symbols','8135xBhmdg','23537460ZiVWfI','4296336pBulKG','max','format','downSampleData','\x20\x20\x20','2895453frfVhZ','join','length','undefined','90UfDDbN','abs','37416dmuJIR','black','padding'];a7X=function(){return X5;};return a7X();}exports[a7t(0x1c8)]=downSampleData;
1
+ 'use strict';const a7L=a7h;(function(w,h){const o=a7h,G=w();while(!![]){try{const P=-parseInt(o(0x1b2))/0x1+parseInt(o(0x1ae))/0x2*(parseInt(o(0x1c9))/0x3)+parseInt(o(0x1ca))/0x4+parseInt(o(0x1cc))/0x5*(parseInt(o(0x1b9))/0x6)+-parseInt(o(0x1ba))/0x7*(parseInt(o(0x1c2))/0x8)+-parseInt(o(0x1b6))/0x9+parseInt(o(0x1ac))/0xa;if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a7w,0x897fa));var __importDefault=this&&this[a7L(0x1bf)]||function(w){const d=a7L;return w&&w[d(0x1b0)]?w:{'default':w};};Object['defineProperty'](exports,a7L(0x1b0),{'value':!![]}),exports[a7L(0x1bd)]=exports[a7L(0x1bc)]=void 0x0;const chalk_1=__importDefault(require(a7L(0x1bb))),colored=(w,h)=>{const w0=a7L;return h===undefined?w:chalk_1[w0(0x1b8)][h](w);},getAsciiChart=(w,h={})=>{const w1=a7L,G=Array[w1(0x1b3)](w[0x0])?w:[w];let P=typeof h[w1(0x1b1)]!==w1(0x1b7)?h[w1(0x1b1)]:G[0x0][0x0],v=typeof h['max']!==w1(0x1b7)?h['max']:G[0x0][0x0];for(let b=0x0;b<G[w1(0x1c8)];b++){for(let q=0x0;q<G[b][w1(0x1c8)];q++){P=Math[w1(0x1b1)](P,G[b][q]),v=Math[w1(0x1be)](v,G[b][q]);}}let O=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],Z=Math[w1(0x1c6)](v-P),a=typeof h[w1(0x1c0)]!=='undefined'?h[w1(0x1c0)]:0x3,l=typeof h['padding']!=='undefined'?h['padding']:w1(0x1d0),B=typeof h[w1(0x1c7)]!==w1(0x1b7)?h['height']:Z,U=typeof h[w1(0x1a9)]!==w1(0x1b7)?h[w1(0x1a9)]:['blue',w1(0x1c5),'green',w1(0x1b5),w1(0x1ad)],A=Z!==0x0?B/Z:0x1,D=Math[w1(0x1cb)](P*A),p=Math[w1(0x1cb)](v*A),s=Math['abs'](p-D),W=0x0;for(let f=0x0;f<G[w1(0x1c8)];f++){W=Math[w1(0x1be)](W,G[f]['length']);}W=W+a;let X=typeof h[w1(0x1cd)]!==w1(0x1b7)?h['symbols']:O,T=h[w1(0x1cf)]!==undefined?h[w1(0x1cf)]:function(e){const w2=w1;return(l+e['toFixed'](0x2)+h['unit'])[w2(0x1ab)](-l[w2(0x1c8)]);},I=new Array(s+0x1);for(let e=0x0;e<=s;e++){I[e]=new Array(W);for(let u=0x0;u<W;u++){I[e][u]='\x20';}}for(let t=D;t<=p;++t){const S=T(s>0x0?v-(t-D)*Z/s:t,t-D);I[t-D][Math[w1(0x1be)](a-S[w1(0x1c8)],0x0)]=S,I[t-D][a-0x1]=t==0x0?X[0x0]:X[0x1];}for(let V=0x0;V<G[w1(0x1c8)];V++){let C=U[V%U[w1(0x1c8)]],M=Math[w1(0x1cb)](G[V][0x0]*A)-D;I[s-M][a-0x1]=colored(X[0x0],C);for(let Q=0x0;Q<G[V][w1(0x1c8)]-0x1;Q++){let H=Math[w1(0x1cb)](G[V][Q+0x0]*A)-D,n=Math[w1(0x1cb)](G[V][Q+0x1]*A)-D;if(H==n)I[s-H][Q+a]=colored(X[0x4],C);else{I[s-n][Q+a]=colored(H>n?X[0x5]:X[0x6],C),I[s-H][Q+a]=colored(H>n?X[0x7]:X[0x8],C);let c=Math[w1(0x1b1)](H,n),r=Math['max'](H,n);for(let m=c+0x1;m<r;m++){I[s-m][Q+a]=colored(X[0x9],C);}}}}const {startTs:k,endTs:Y}=h;if(k||Y){const E=N=>{const w3=w1;if(!N)return'\x20\x20\x20';const z=N[w3(0x1af)](undefined,{'day':w3(0x1b4),'month':w3(0x1b4),'year':w3(0x1b4)}),F=N[w3(0x1ce)](undefined,{'hourCycle':'h24'});return z+'\x20'+F;},K=E(Y),g=E(k),J=l['slice'](0x0,Math[w1(0x1be)](0x2,l['length']-g[w1(0x1c8)]/0x2+0x1)),R='\x20'['repeat'](Math[w1(0x1be)](W-(l['length']+K[w1(0x1c8)]/0x2),0x1));I[w1(0x1c1)]([''+J+g+R+K]),I[w1(0x1c1)]([]);}return I[w1(0x1c4)](N=>N['join'](''))[w1(0x1aa)]('\x0a');};exports[a7L(0x1bc)]=getAsciiChart;const downSampleData=(w,h)=>{const w4=a7L,G=w[w4(0x1c8)];if(h>=G||h===0x0)return w;const P=[];let v=0x0;const O=(G-0x2)/(h-0x2);let Z=0x0,l,B,U,A;P[v++]=w[Z];for(var D=0x0;D<h-0x2;D++){let I=0x0,k=0x0,Y=Math['floor']((D+0x1)*O)+0x1,x=Math[w4(0x1c3)]((D+0x2)*O)+0x1;x=x<G?x:G;var p=x-Y;for(;Y<x;Y++){I+=w[Y][0x0],k+=w[Y][0x1];}I/=p,k/=p;var s=Math[w4(0x1c3)](D*O)+0x1,W=Math['floor']((D+0x1)*O)+0x1,X=w[Z][0x0],T=w[Z][0x1];B=U=-0x1;for(;s<W;s++){U=Math[w4(0x1c6)]((X-I)*(w[s][0x1]-T)-(X-w[s][0x0])*(k-T))*0.5,U>B&&(B=U,l=w[s],A=s);}P[v++]=l,Z=A;}return P[v++]=w[G-0x1],P;};exports['downSampleData']=downSampleData;function a7h(w,h){const G=a7w();return a7h=function(P,v){P=P-0x1a9;let O=G[P];return O;},a7h(w,h);}function a7w(){const w5=['slice','16853500mDmkfv','black','266774vDRCNA','toLocaleDateString','__esModule','min','261711BcTaPq','isArray','2-digit','grey','5949099CFIbMJ','undefined','default','30MxMDja','446467WKeZuG','chalk','getAsciiChart','downSampleData','max','__importDefault','offset','push','136CYtYhe','floor','map','red','abs','height','length','6quQNkw','2349336cOpBlw','round','30735QhuZHG','symbols','toLocaleTimeString','format','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','colors','join'];a7w=function(){return w5;};return a7w();}
@@ -1 +1 @@
1
- 'use strict';const a8f=a8V;(function(X,V){const d=a8V,h=X();while(!![]){try{const Q=-parseInt(d(0x1d8))/0x1+-parseInt(d(0x262))/0x2*(-parseInt(d(0x26e))/0x3)+-parseInt(d(0x274))/0x4+-parseInt(d(0x1ee))/0x5*(-parseInt(d(0x2af))/0x6)+-parseInt(d(0x223))/0x7+-parseInt(d(0x230))/0x8*(parseInt(d(0x213))/0x9)+parseInt(d(0x228))/0xa;if(Q===V)break;else h['push'](h['shift']());}catch(J){h['push'](h['shift']());}}}(a8X,0x2a0e0));var __createBinding=this&&this[a8f(0x24d)]||(Object[a8f(0x1de)]?function(X,V,h,Q){const z=a8f;if(Q===undefined)Q=h;var J=Object['getOwnPropertyDescriptor'](V,h);(!J||(z(0x227)in J?!V[z(0x1c9)]:J[z(0x25a)]||J[z(0x1eb)]))&&(J={'enumerable':!![],'get':function(){return V[h];}}),Object['defineProperty'](X,Q,J);}:function(X,V,h,Q){if(Q===undefined)Q=h;X[Q]=V[h];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(X,V){const F=a8f;Object[F(0x1f7)](X,F(0x21b),{'enumerable':!![],'value':V});}:function(X,V){const n=a8f;X[n(0x21b)]=V;}),__importStar=this&&this[a8f(0x25d)]||function(X){const q=a8f;if(X&&X['__esModule'])return X;var V={};if(X!=null){for(var h in X)if(h!==q(0x21b)&&Object[q(0x1c5)][q(0x267)][q(0x1cc)](X,h))__createBinding(V,X,h);}return __setModuleDefault(V,X),V;},__awaiter=this&&this[a8f(0x252)]||function(X,V,h,Q){function J(G){return G instanceof h?G:new h(function(I){I(G);});}return new(h||(h=Promise))(function(G,I){const v=a8V;function T(A){try{E(Q['next'](A));}catch(D){I(D);}}function W(A){const a=a8V;try{E(Q[a(0x216)](A));}catch(D){I(D);}}function E(A){const R=a8V;A['done']?G(A['value']):J(A[R(0x1cd)])[R(0x272)](T,W);}E((Q=Q['apply'](X,V||[]))[v(0x1e6)]());});},__importDefault=this&&this[a8f(0x2aa)]||function(X){const g=a8f;return X&&X[g(0x1c9)]?X:{'default':X};};Object[a8f(0x1f7)](exports,a8f(0x1c9),{'value':!![]}),exports[a8f(0x297)]=void 0x0;const _=__importStar(require(a8f(0x1fc))),chalk_1=__importDefault(require(a8f(0x1c6))),fs=__importStar(require('fs')),utils_1=require(a8f(0x273)),api_helpers_1=require(a8f(0x279)),inquirer_pagination_prompt_1=require('./pagination/inquirer-pagination-prompt'),inquirer=require(a8f(0x2a9)),inquirerSearchList=require(a8f(0x2bd)),yaml=require(a8f(0x1c0));var ConfirmChoices;(function(X){const B=a8f;X[B(0x23d)]=B(0x298),X[B(0x2a6)]=B(0x1e4),X[B(0x1d0)]=B(0x235),X[B(0x24f)]=B(0x1e9),X[B(0x1c3)]=B(0x26d);}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(X){const O=a8f;this[O(0x22f)]=X,this[O(0x288)]=0x32,this['editPayload']=V=>__awaiter(this,void 0x0,void 0x0,function*(){const H=O,{editedResult:h}=yield inquirer[H(0x2a8)]([{'type':'editor','name':H(0x290),'message':'Go\x20to\x20editor','default':yaml[H(0x263)](V)}]);return yaml['safeLoad'](h);}),this[O(0x1bb)]=V=>__awaiter(this,void 0x0,void 0x0,function*(){const k=O,h=I=>k(0x21f)+I+k(0x2ad);function Q(){return __awaiter(this,void 0x0,void 0x0,function*(){const o=a8V;return inquirer['prompt']([{'type':o(0x209),'name':'fileName','message':o(0x292),'validate':I=>new RegExp(o(0x1bd))[o(0x21d)](I)?!![]:h(I)}]);});}const {fileName:J}=yield Q(),G=J[k(0x222)]()[k(0x260)]('.')[k(0x202)]();try{switch(G){case k(0x1fa):(0x0,utils_1[k(0x1db)])(k(0x1e7)+J);return fs[k(0x1ff)](J,JSON['stringify'](V,null,'\x20\x20'));case k(0x286):case k(0x26b):(0x0,utils_1[k(0x1db)])(k(0x1e7)+J);return fs[k(0x1ff)](J,yaml[k(0x263)](V));default:(0x0,utils_1['warning'])(h(G));}}catch(I){(0x0,utils_1['warning'])('Writing\x20configuration\x20failed:\x20'+I[k(0x20a)]);}return undefined;}),this[O(0x1d9)]=(V,h)=>Q=>{const N=O,J=typeof Q==='string'?Q[N(0x1bf)]():Q;return h===![]&&J==='don\x27t\x20change'?'':J;},this['validate']=(V,h,Q)=>J=>{const p=O,G=[];if(J===''||J===p(0x1f5)){if(h!==![])G[p(0x2b0)]('this\x20option\x20is\x20required,\x20please\x20answer');else return!![];}V[p(0x1bc)]===p(0x24b)&&!_['isUndefined'](V[p(0x224)])&&G['push'](new RegExp(V[p(0x224)])['test'](J)?!![]:p(0x210)+V[p(0x224)]+'\x27');V[p(0x1bc)]===p(0x24b)&&!_[p(0x250)](V[p(0x214)])&&G[p(0x2b0)](J[p(0x1be)]>=V[p(0x214)]?!![]:'must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20'+V[p(0x214)]+p(0x234)+J[p(0x1be)]+p(0x23b));V[p(0x1bc)]===p(0x24b)&&!_[p(0x250)](V[p(0x215)])&&G[p(0x2b0)](J[p(0x1be)]<=V[p(0x215)]?!![]:p(0x25c)+V[p(0x215)]+'\x20characters,\x20is\x20'+J[p(0x1be)]+p(0x23b));Q&&Number['isNaN'](parseInt(J,0xa))&&G[p(0x2b0)](p(0x28e)+J);V[p(0x1bc)]===p(0x25b)&&!_[p(0x250)](V['minimum'])&&G[p(0x2b0)](J>=V[p(0x1d5)]?!![]:p(0x26f)+V[p(0x1d5)]);V[p(0x1bc)]===p(0x25b)&&!_[p(0x250)](V[p(0x28d)])&&G[p(0x2b0)](J<=V[p(0x28d)]?!![]:p(0x2a5)+V[p(0x28d)]);if(V[p(0x1bc)]===p(0x238)){const W=(0x0,utils_1[p(0x23c)])(J);G[p(0x2b0)](W===![]||_['isEmpty'](W)?p(0x1fb):!![]);}const I=G[p(0x1d9)](E=>E!==!![]),T=(V===null||V===void 0x0?void 0x0:V[p(0x261)])?'\x0a'+chalk_1[p(0x21b)]['red']('>>')+p(0x1cf)+chalk_1[p(0x21b)][p(0x270)](JSON[p(0x2ac)](V['example'])):'';return I[p(0x1be)]>0x0?I[p(0x1df)](chalk_1['default'][p(0x1dd)](p(0x248)))+T:!![];},this['getPathString']=(V,h,Q)=>{const i=O,J=V[V[i(0x1be)]-0x1];function G(){const x=i;return V[x(0x22e)](0x0,-0x1)[x(0x29f)](W=>W['charAt'](0x0)[x(0x1d3)]()+W[x(0x22e)](0x1))['join']('>');}const I=V[i(0x1be)]>0x1?chalk_1[i(0x21b)][i(0x254)][i(0x270)](G())+':\x20':'',T=Q?'\x20('+chalk_1[i(0x21b)][i(0x25f)](Q)+')':'';return chalk_1[i(0x21b)][i(0x24c)](''+I+h+'\x20'+chalk_1[i(0x21b)][i(0x1d2)][i(0x217)](J)+T+'?');},this[O(0x1d7)]=(V,h,Q)=>__awaiter(this,void 0x0,void 0x0,function*(){const L=O;if(h[L(0x1be)]<0x1){const I=Q?'for\x20this\x20'+Q:L(0x1f8);throw new Error(L(0x211)+V+'\x20'+I+'.');}const J=L(0x241)+V+L(0x28f),G=h[L(0x1be)]>0x4?L(0x27e):L(0x251);return(yield inquirer[L(0x2a8)]([{'type':G,'name':'name','message':J,'choices':h}]))[L(0x287)];}),this[O(0x29e)]=(V,h,Q)=>__awaiter(this,void 0x0,void 0x0,function*(){const y=O,{elements:J,nextCursor:G}=yield h();if(J[y(0x1be)]<0x1){const W=Q?'for\x20this\x20'+Q:y(0x1f8);throw new Error('No\x20'+V+'\x20'+W+'.');}const I=y(0x241)+V+'\x20to\x20use:';if(G!==undefined){const E=({nextPageCursor:A})=>__awaiter(this,void 0x0,void 0x0,function*(){const M=y,P=yield h(A);return{'elements':P[M(0x1c8)],'nextPageCursor':P[M(0x236)]};});return(yield inquirer[y(0x2a8)]([{'type':y(0x20b),'name':'name','message':I,'choices':J,'nextPageCursor':G,'loadMore':E}]))[y(0x287)];}const T=J[y(0x1be)]>0x4?y(0x27e):'list';return(yield inquirer[y(0x2a8)]([{'type':T,'name':y(0x287),'message':I,'choices':J}]))['name'];}),this['askGeneric']=(V,h)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e=O,Q=''+(h?'('+chalk_1[e(0x21b)][e(0x25f)](h)+')\x20':''),J=e(0x23e)+chalk_1[e(0x21b)][e(0x2b9)](V)+'\x20'+Q+e(0x2a4),G=this[e(0x2bb)]({'type':e(0x24b),'required':!![]});return(yield inquirer['prompt']([{'type':e(0x209),'name':e(0x287),'message':J,'validate':G}]))[e(0x287)];}),this[O(0x22b)]=V=>__awaiter(this,void 0x0,void 0x0,function*(){const Z=O;return(yield inquirer[Z(0x2a8)]([{'type':Z(0x20d),'name':'name','message':V,'default':!![]}]))[Z(0x287)];}),this['askForService']=V=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const u=O,h=Q=>J=>__awaiter(this,void 0x0,void 0x0,function*(){const C=a8V;var G;const I=yield this[C(0x22f)]['list'][C(0x206)]({'parameters':{'projectId':Q},'options':{'per_page':this[C(0x288)],'cursor':J}}),T=I['data'][C(0x206)][C(0x29f)](W=>W['id']);return{'elements':T,'nextCursor':(G=I[C(0x296)])===null||G===void 0x0?void 0x0:G[C(0x2b7)]};});return this[u(0x1dc)](u(0x22d),h,V);}),this['askForTemplate']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const j=O,V=h=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=a8V;var Q;const J=yield this[Y(0x22f)][Y(0x251)][Y(0x28b)]({'options':{'per_page':this[Y(0x288)],'cursor':h}}),G=J[Y(0x2ba)][Y(0x28b)]['map'](I=>I['id']);return{'elements':G,'nextCursor':(Q=J[Y(0x296)])===null||Q===void 0x0?void 0x0:Q[Y(0x2b7)]};});return this[j(0x29e)](j(0x1e5),V);}),this[O(0x28a)]=V=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const b=O;if(_[b(0x250)](V))throw new Error(b(0x22c));const h=Q=>__awaiter(this,void 0x0,void 0x0,function*(){const s=b;var J;let G=this[s(0x288)];const I=yield this[s(0x22f)][s(0x251)][s(0x281)]({'parameters':{'templateId':V},'options':{'per_page':G,'cursor':Q}}),T=I['data'][s(0x281)][s(0x29f)](W=>W['id']+s(0x203)+W['createdAt']+')');return{'elements':T,'nextCursor':(J=I[s(0x296)])===null||J===void 0x0?void 0x0:J['cursor']};});return this[b(0x29e)]('template\x20run',h)[b(0x272)](Q=>Q[b(0x260)]('\x20')[0x0]);}),this[O(0x276)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const m=O,V=h=>__awaiter(this,void 0x0,void 0x0,function*(){const w=a8V;var Q;let J=this[w(0x288)];const G=yield this['apiClient'][w(0x251)][w(0x1d6)]({'options':{'per_page':J,'cursor':h}}),I=G[w(0x2ba)][w(0x1d6)][w(0x29f)](T=>T['id']);return{'elements':I,'nextCursor':(Q=G[w(0x296)])===null||Q===void 0x0?void 0x0:Q[w(0x2b7)]};});return this['askForResourcePaginated'](m(0x244),V);}),this['askForPipeline']=V=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const l=O,h=Q=>J=>__awaiter(this,void 0x0,void 0x0,function*(){const r=a8V;var G;const I=yield this[r(0x22f)]['list'][r(0x2ab)]({'parameters':{'projectId':Q},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':J}}),T=I[r(0x2ba)][r(0x2ab)]['map'](W=>W['id']);return{'elements':T,'nextCursor':(G=I[r(0x296)])===null||G===void 0x0?void 0x0:G[r(0x2b7)]};});return this['askForProjectScopedResourcePaginated'](l(0x2b2),h,V);}),this[O(0x26c)]=V=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const t=O,h=Q=>J=>__awaiter(this,void 0x0,void 0x0,function*(){const S=a8V;var G;const I=yield this[S(0x22f)]['list'][S(0x2b1)]({'parameters':{'projectId':Q},'options':{'per_page':this[S(0x288)],'cursor':J}}),T=I[S(0x2ba)]['jobs'][S(0x29f)](W=>W['id']);return{'elements':T,'nextCursor':(G=I[S(0x296)])===null||G===void 0x0?void 0x0:G['cursor']};});return this[t(0x1dc)](t(0x207),h,V);}),this['askForJobRun']=(V,h,Q=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const U=O,J=U(0x1fd),G=I=>T=>__awaiter(this,void 0x0,void 0x0,function*(){const X0=U;var W;const E=yield this[X0(0x22f)][X0(0x227)][X0(0x207)][X0(0x239)]({'parameters':{'projectId':I,'jobId':V},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':T}}),A=E[X0(0x2ba)][X0(0x239)][X0(0x29f)](P=>P['id']+X0(0x203)+P[X0(0x1e2)]+')');return Q&&A[X0(0x221)](J),{'elements':A,'nextCursor':(W=E[X0(0x296)])===null||W===void 0x0?void 0x0:W[X0(0x2b7)]};});return this[U(0x1dc)](U(0x2a1),G,h,U(0x247)+V+'\x27')[U(0x272)](I=>{const T=I['split']('\x20')[0x0];if(T===J)return undefined;return T;});}),this['askForBuild']=(V,h,Q,J=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const X1=O,G=X1(0x2b6);if(Q!==undefined){const I=T=>W=>__awaiter(this,void 0x0,void 0x0,function*(){const X2=X1;var E;const A=yield this[X2(0x22f)]['get'][X2(0x207)][X2(0x1f3)]({'parameters':{'projectId':T,'jobId':Q},'options':{'per_page':this[X2(0x288)],'cursor':W}}),P=A[X2(0x2ba)][X2(0x1f3)]['map'](D=>D['id']+'\x20(startedAt:\x20'+D[X2(0x1ca)]+')');return J&&P[X2(0x221)](G),{'elements':P,'nextCursor':(E=A[X2(0x296)])===null||E===void 0x0?void 0x0:E['cursor']};});return this['askForProjectScopedResourcePaginated'](X1(0x29d),I,V,'job:\x20\x27'+Q+'\x27')['then'](T=>{const X3=X1,W=T[X3(0x260)]('\x20')[0x0];if(W===G)return undefined;return W;});}if(h!==undefined){const T=W=>E=>__awaiter(this,void 0x0,void 0x0,function*(){const X4=X1;var A;const P=yield this[X4(0x22f)][X4(0x227)]['service'][X4(0x1f3)]({'parameters':{'projectId':W,'serviceId':h},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':E}}),D=P['data'][X4(0x1f3)]['map'](K=>K['id']+'\x20(startedAt:\x20'+K[X4(0x1ca)]+')');if(J)D[X4(0x221)](G);return{'elements':D,'nextCursor':(A=P[X4(0x296)])===null||A===void 0x0?void 0x0:A['cursor']};});return this[X1(0x1dc)](X1(0x2b5),T,V,'service:\x20\x27'+Q+'\x27')[X1(0x272)](W=>{const X5=X1,E=W[X5(0x260)]('\x20')[0x0];if(E===G)return undefined;return E;});}throw new Error(X1(0x1c2));}),this[O(0x20c)]=(V,h,Q,J=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const X6=O,G=X6(0x2bc);if(Q!==undefined){const I=T=>W=>__awaiter(this,void 0x0,void 0x0,function*(){const X7=X6;var E;const A=yield this[X7(0x22f)][X7(0x227)][X7(0x207)]['containers']({'parameters':{'projectId':T,'jobId':Q},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':W}}),P=A[X7(0x2ba)][X7(0x27f)][X7(0x29f)](D=>D['name']+X7(0x203)+D[X7(0x1ca)]+')');return J&&P[X7(0x221)](G),{'elements':P,'nextCursor':(E=A[X7(0x296)])===null||E===void 0x0?void 0x0:E[X7(0x2b7)]};});return this[X6(0x1dc)](X6(0x1e1),I,V,X6(0x247)+Q+'\x27')[X6(0x272)](T=>{const W=T['split']('\x20')[0x0];if(W===G)return undefined;return W;});}if(h!==undefined){const T=W=>E=>__awaiter(this,void 0x0,void 0x0,function*(){const X8=X6;var A;const P=yield this[X8(0x22f)][X8(0x227)][X8(0x22d)]['containers']({'parameters':{'projectId':W,'serviceId':h},'options':{'per_page':this[X8(0x288)],'cursor':E}}),D=P[X8(0x2ba)]['containers'][X8(0x29f)](K=>K[X8(0x287)]+X8(0x203)+K[X8(0x1ca)]+')');if(J)D['unshift'](G);return{'elements':D,'nextCursor':(A=P['pagination'])===null||A===void 0x0?void 0x0:A[X8(0x2b7)]};});return this[X6(0x1dc)](X6(0x22a),T,V,'service:\x20\x27'+Q+'\x27')[X6(0x272)](W=>{const X9=X6,E=W[X9(0x260)]('\x20')[0x0];if(E===G)return undefined;return E;});}throw new Error(X6(0x295));}),this['askForAddon']=V=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const XV=O,h=Q=>J=>__awaiter(this,void 0x0,void 0x0,function*(){const XX=a8V;var G;const I=yield this['apiClient']['list']['addons']({'parameters':{'projectId':Q},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':J}});return{'elements':I[XX(0x2ba)][XX(0x229)][XX(0x29f)](T=>T['id']),'nextCursor':(G=I[XX(0x296)])===null||G===void 0x0?void 0x0:G[XX(0x2b7)]};});return this[XV(0x1dc)](XV(0x266),h,V);}),this['askForAddonBackup']=(V,h)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const XQ=O,Q=J=>G=>__awaiter(this,void 0x0,void 0x0,function*(){const Xh=a8V;var I;const T=yield this[Xh(0x22f)][Xh(0x227)]['addon'][Xh(0x24e)]({'parameters':{'projectId':J,'addonId':h},'options':{'per_page':this[Xh(0x288)],'cursor':G}});return{'elements':T['data']['backups'][Xh(0x29f)](W=>W['id']+Xh(0x231)+(W[Xh(0x253)]||Xh(0x29a))+')'),'nextCursor':(I=T['pagination'])===null||I===void 0x0?void 0x0:I[Xh(0x2b7)]};});return this[XQ(0x1dc)](XQ(0x24e),Q,V,'addon:\x20\x27'+h+'\x27')['then'](J=>J[XQ(0x260)]('\x20')[0x0]);}),this[O(0x282)]=V=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const XG=O,h=Q=>__awaiter(this,void 0x0,void 0x0,function*(){const XJ=a8V;return(yield this[XJ(0x22f)]['list'][XJ(0x24a)]({'parameters':{'projectId':Q}}))[XJ(0x2ba)][XJ(0x29f)](J=>J['id']);});return this[XG(0x245)](XG(0x27b),h,V);}),this[O(0x1f2)]=V=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const XT=O,h=Q=>J=>__awaiter(this,void 0x0,void 0x0,function*(){const XI=a8V;var G;const I=yield this[XI(0x22f)][XI(0x251)][XI(0x269)]({'parameters':{'projectId':Q},'options':{'per_page':this[XI(0x288)],'cursor':J}});return{'elements':I['data']['secrets']['map'](T=>T['id']),'nextCursor':(G=I[XI(0x296)])===null||G===void 0x0?void 0x0:G['cursor']};});return this[XT(0x1dc)](XT(0x268),h,V);}),this[O(0x1d4)]=V=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const XW=O,h=yield this[XW(0x22f)][XW(0x227)][XW(0x1e3)]({'parameters':{'domain':V}}),Q=h['data'][XW(0x226)][XW(0x29f)](G=>G['name']+XW(0x258)+G[XW(0x242)]+')'),J=XW(0x27c)+V+')';return this[XW(0x1d7)]('subdomain',Q,J)[XW(0x272)](G=>G['split']('\x20')[0x0]);}),this[O(0x291)]=V=>__awaiter(this,void 0x0,void 0x0,function*(){const XE=O;return(yield inquirer[XE(0x2a8)]([{'type':XE(0x20d),'name':XE(0x293),'message':chalk_1[XE(0x21b)]['yellowBright'](XE(0x1ec)+(V||XE(0x212))+XE(0x275)),'default':![]}]))[XE(0x293)];}),this[O(0x294)]=(V,h)=>__awaiter(this,void 0x0,void 0x0,function*(){const XA=O;_['isUndefined'](V[XA(0x287)])&&(h[XA(0x1be)]<=0x0?_[XA(0x1f1)](V,XA(0x287),XA(0x21b)):yield(0x0,utils_1[XA(0x1f6)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const XP=XA,{name:Q}=yield inquirer[XP(0x2a8)]([{'type':XP(0x209),'name':XP(0x287),'message':XP(0x2a7),'default':'main-context'}]);if(!V['override']&&h[XP(0x204)](J=>J['name']===Q)){const {c:J}=yield inquirer['prompt']([{'type':XP(0x20d),'name':'c','message':'Context\x20with\x20name\x20\x27'+Q+XP(0x1cb),'default':![]}]);if(J===![])throw new Error(XP(0x277));_[XP(0x1f1)](V,XP(0x208),!![]);}_[XP(0x1f1)](V,'name',Q);})));if(_['isUndefined'](V[XA(0x21e)])){const Q=yield this[XA(0x205)]();_[XA(0x1f1)](V,XA(0x21e),Q);}return V;}),this[O(0x205)]=()=>__awaiter(this,void 0x0,void 0x0,function*(){const XD=O,{token:V}=yield inquirer[XD(0x2a8)]([{'type':XD(0x249),'name':'token','mask':'*','message':XD(0x256)}]);return V;}),inquirer[O(0x29c)]('search-list',inquirerSearchList),inquirer[O(0x29c)]('pagination-prompt',inquirer_pagination_prompt_1[O(0x21c)]);}[a8f(0x1fe)](X,V){return __awaiter(this,void 0x0,void 0x0,function*(){const XK=a8V,h=yaml[XK(0x263)](X),Q=_[XK(0x1e8)](h['split']('\x0a')['map'](I=>I['length'])),J=chalk_1['default'][XK(0x1e0)]('-'[XK(0x27d)](Q)+'\x0a'),{confirm:G}=yield inquirer['prompt']([{'type':'list','name':'confirm','message':''+chalk_1[XK(0x21b)][XK(0x1d2)]['green'](XK(0x2a2))+J+chalk_1['default'][XK(0x299)](h)+J,'choices':Object[XK(0x20f)](ConfirmChoices)}]);switch(G){case ConfirmChoices['YES']:return X;case ConfirmChoices[XK(0x1c3)]:throw new Error(XK(0x220));case ConfirmChoices[XK(0x2a6)]:return this['retrievePayloadViaInteractiveCli'](V);case ConfirmChoices['EDIT']:return this[XK(0x1fe)](yield this[XK(0x1c7)](X),V);case ConfirmChoices['SAVE']:yield this[XK(0x1bb)](X);return this[XK(0x1fe)](X,V);default:throw new Error(XK(0x232));}});}[a8f(0x225)](X,V){return __awaiter(this,void 0x0,void 0x0,function*(){const Xd=a8V;if((V===null||V===void 0x0?void 0x0:V[Xd(0x23a)])!==undefined)this[Xd(0x23a)]=V===null||V===void 0x0?void 0x0:V[Xd(0x23a)];this[Xd(0x21a)]=V===null||V===void 0x0?void 0x0:V[Xd(0x26a)];const h={};return yield this[Xd(0x2a0)]([],X['opt'][Xd(0x1f9)],h),this[Xd(0x23a)]=h,yield this[Xd(0x1fe)](h,X);});}['propToType'](X,V,h,Q){return __awaiter(this,void 0x0,void 0x0,function*(){const Xf=a8V;let J;if(V[Xf(0x2a3)]&&!_[Xf(0x240)](V,Xf(0x280))){if(V[Xf(0x2a3)][Xf(0x1be)]>0x1){const {choice:G}=yield inquirer['prompt']([{'type':'list','name':Xf(0x289),'message':Xf(0x271)+(X[X[Xf(0x1be)]-0x1]||'')+Xf(0x255),'choices':V[Xf(0x2a3)][Xf(0x29f)](I=>{var T;return(T=I['description'])!==null&&T!==void 0x0?T:'??';})}]);J=yield this['getType'](X,V[Xf(0x2a3)]['find'](I=>I['description']===G),h,Q);}else{const I=V[Xf(0x2a3)][0x0];_[Xf(0x1f1)](I,Xf(0x243),V[Xf(0x243)]),J=yield this[Xf(0x265)](X,I,h,Q);}J={};}else J=yield this[Xf(0x265)](X,V,h,Q);return J;});}['getInnerType'](X,V,h,Q){var J;return __awaiter(this,void 0x0,void 0x0,function*(){const Xz=a8V;if(Q===![]){const {addEntry:T}=yield inquirer[Xz(0x2a8)]([{'type':'confirm','name':Xz(0x23f),'message':this[Xz(0x257)](V,Xz(0x283),X===null||X===void 0x0?void 0x0:X[Xz(0x243)]),'default':![]}]);if(!T)return h;}const G=Object[Xz(0x278)]((J=X===null||X===void 0x0?void 0x0:X[Xz(0x280)])!==null&&J!==void 0x0?J:[]),I=X[Xz(0x233)]||[];if(G[Xz(0x1be)]>0x0)for(const W of G){const E=V[Xz(0x284)](W);if(V[Xz(0x1be)]>0x0&&!_[Xz(0x240)](h,V[Xz(0x1df)]('.')))_['set'](h,V[Xz(0x1df)]('.'),{});yield this[Xz(0x2a0)](E,X[Xz(0x280)][W],h,I[Xz(0x1b9)](W));}else yield this['getType'](V,Object[Xz(0x219)](Object[Xz(0x219)]({},X),{'type':Xz(0x238)}),h,Q);return h;});}[a8f(0x27a)](X,V,h,Q){return __awaiter(this,void 0x0,void 0x0,function*(){const XF=a8V;if(V&&h)return!![];const J=V?XF(0x283):'Do\x20you\x20want\x20to\x20add\x20more',{addEntry:G}=yield inquirer[XF(0x2a8)]([{'type':XF(0x20d),'name':XF(0x23f),'message':this[XF(0x257)](X,J,V?Q:undefined),'default':![]}]);return G;});}[a8f(0x265)](X,V,h,Q){return __awaiter(this,void 0x0,void 0x0,function*(){const Xn=a8V;let J;const G=X[Xn(0x1df)]('.');switch(V===null||V===void 0x0?void 0x0:V[Xn(0x1bc)]){case Xn(0x246):{let I=!![];while(yield this['askArrayEntry'](X,I,Q,V===null||V===void 0x0?void 0x0:V[Xn(0x243)])){const T=_[Xn(0x227)](h,G);_[Xn(0x2b3)](h,G),yield this[Xn(0x265)](X,V[Xn(0x2b4)],h);const W=_[Xn(0x227)](h,G);!_[Xn(0x1c4)](T)?_['set'](h,G,[W]):(T[Xn(0x2b0)](W),_[Xn(0x1f1)](h,G,T)),I=![];}return J||[];}case Xn(0x2b8):{return J=yield this['getInnerType'](V,X,h,Q),J;}case Xn(0x238):J=(0x0,utils_1[Xn(0x23c)])(yield this[Xn(0x1ba)](X,V,Q))||undefined;break;case Xn(0x24b):case Xn(0x29b):case Xn(0x25b):default:J=yield this[Xn(0x1ba)](X,V,Q,h);break;}return!_[Xn(0x250)](J)&&_[Xn(0x1f1)](h,G,J),J;});}[a8f(0x1ba)](X,V,h,Q){var J;return __awaiter(this,void 0x0,void 0x0,function*(){const Xq=a8V,G=X[X[Xq(0x1be)]-0x1],{defaultValue:defaultValue=(J=V===null||V===void 0x0?void 0x0:V['example'])!==null&&J!==void 0x0?J:V===null||V===void 0x0?void 0x0:V[Xq(0x21b)],choices:choices=V===null||V===void 0x0?void 0x0:V[Xq(0x1ce)],pagination:I}=yield(0x0,api_helpers_1['fetchResourceList'])(G,this[Xq(0x22f)],this[Xq(0x21a)],Q,this[Xq(0x1f4)],X);let T=Xq(0x209);if(!_[Xq(0x250)](choices)&&choices[Xq(0x1be)]>0x0){if(I!==undefined&&I[Xq(0x259)]!==undefined)T=Xq(0x20b);else choices[Xq(0x1be)]>0x4&&typeof choices[0x0]===Xq(0x24b)?T='search-list':T=Xq(0x251);}else{if((V===null||V===void 0x0?void 0x0:V[Xq(0x1bc)])===Xq(0x29b))T=Xq(0x20d);else{if((V===null||V===void 0x0?void 0x0:V[Xq(0x1bc)])===Xq(0x25b))T=Xq(0x209);else(V===null||V===void 0x0?void 0x0:V[Xq(0x1bc)])===Xq(0x238)&&(T=Xq(0x1c1));}}let W=h!==![]?!_[Xq(0x237)](defaultValue)?defaultValue:JSON['stringify'](defaultValue):_[Xq(0x1ed)](defaultValue)?defaultValue:Xq(0x1f5);if(choices)W=W[Xq(0x222)]();_[Xq(0x240)](this['resultCache'],X[Xq(0x1df)]('.'))&&(W=this['resultCache'][X[Xq(0x1df)]('.')]);const E=choices&&h===![]?[Xq(0x1f5),...choices]:choices,A=(V===null||V===void 0x0?void 0x0:V[Xq(0x1bc)])===Xq(0x25b),P=Object[Xq(0x219)]({'type':T,'name':'id','message':this[Xq(0x1f0)](X,V),'choices':E,'default':W,'filter':this[Xq(0x1d9)](T,h),'validate':this[Xq(0x2bb)](V,h,A)},I),D=(yield inquirer['prompt']([P]))['id'];if(D===Xq(0x1f5)||D==='')return undefined;if(A)return parseInt(D,0xa);return D;});}['getQuestionString'](X,V){const Xa=a8f,h=(V===null||V===void 0x0?void 0x0:V[Xa(0x1bc)])!=='boolean'?'What\x20do\x20you\x20want\x20to\x20use\x20as':'Should\x20it\x20be';return this[Xa(0x257)](X,h,V===null||V===void 0x0?void 0x0:V['description']);}[a8f(0x1ef)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Xv=a8V,X=V=>__awaiter(this,void 0x0,void 0x0,function*(){const XR=a8V;var h;const Q=yield this[XR(0x22f)][XR(0x251)][XR(0x285)]({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':V}}),J=Q['data'][XR(0x285)]['map'](G=>G['id']);return{'elements':J,'nextCursor':(h=Q[XR(0x296)])===null||h===void 0x0?void 0x0:h[XR(0x2b7)]};});return yield this[Xv(0x29e)](Xv(0x1d1),X);});}['askForProjectScopedResource'](X,V,h,Q){return __awaiter(this,void 0x0,void 0x0,function*(){const Xg=a8V,J=h||this['apiClient'][Xg(0x1da)]['getCurrentProjectName']();if(_[Xg(0x250)](J))throw new Error(Xg(0x2ae));const G=yield V(J);return yield this[Xg(0x1d7)](X,G,(Q?Q+Xg(0x201):'')+Xg(0x200)+J+'\x27');});}['askForProjectScopedResourcePaginated'](X,V,h,Q){return __awaiter(this,void 0x0,void 0x0,function*(){const XB=a8V,J=h||this[XB(0x22f)][XB(0x1da)][XB(0x264)]();if(_['isUndefined'](J))throw new Error('Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.');const G=yield V(J);return yield this[XB(0x29e)](X,G,(Q?Q+XB(0x201):'')+XB(0x200)+J+'\x27');});}[a8f(0x218)](){return __awaiter(this,void 0x0,void 0x0,function*(){const XH=a8V,X=V=>__awaiter(this,void 0x0,void 0x0,function*(){const XO=a8V;var h;const Q=yield this['apiClient']['list'][XO(0x1ea)]({'options':{'per_page':this[XO(0x288)],'cursor':V}});return{'elements':Q[XO(0x2ba)]['domains'][XO(0x29f)](J=>J[XO(0x287)]),'nextCursor':(h=Q[XO(0x296)])===null||h===void 0x0?void 0x0:h[XO(0x2b7)]};});return this[XH(0x29e)](XH(0x1e3),X);});}['askForCredentials'](){return __awaiter(this,void 0x0,void 0x0,function*(){const X=V=>__awaiter(this,void 0x0,void 0x0,function*(){const Xk=a8V;var h;const Q=yield this['apiClient'][Xk(0x251)][Xk(0x28c)]({'options':{'per_page':this[Xk(0x288)],'cursor':V}});return{'elements':Q[Xk(0x2ba)][Xk(0x20e)][Xk(0x29f)](J=>J['id']),'nextCursor':(h=Q[Xk(0x296)])===null||h===void 0x0?void 0x0:h[Xk(0x2b7)]};});return this['askForResourcePaginated']('credentials',X);});}[a8f(0x25e)](X){const Xo=a8f;this[Xo(0x1f4)]=X;}}function a8V(X,V){const h=a8X();return a8V=function(Q,J){Q=Q-0x1b9;let G=h[Q];return G;},a8V(X,V);}exports[a8f(0x297)]=InquirerHelper;function a8X(){const XN=['tokenPrompt','services','job','override','input','message','pagination-prompt','askForContainer','confirm','credentials','values','doesn\x27t\x20match\x20pattern\x20\x27','No\x20','a\x20Northflank\x20resource','9sxjSkr','minLength','maxLength','throw','greenBright','askForDomain','assign','tmpCmdPath','default','DynamicReloadPaginationPrompt','test','token','Unexpected\x20file\x20type:\x20','Aborted.','unshift','toString','1456721ysGLFH','pattern','retrievePayloadViaInteractiveCli','subdomains','get','7531290EGDGay','addons','service\x20containers','askConfirm','Template\x20id\x20not\x20provided.','service','slice','apiClient','450176ITBtFe','\x20(completedAt:\x20','Something\x20unexpected\x20happened.','required','\x20characters,\x20is\x20','No,\x20edit','nextCursor','isObject','rawObject','runs','resultCache','\x20characters','isValidJSON','YES','Enter\x20the\x20','addEntry','has','Choose\x20the\x20','fullName','description','log\x20sink','askForProjectScopedResource','array','job:\x20\x27','\x20and\x20it\x20','password','volumes','string','reset','__createBinding','backups','SAVE','isUndefined','list','__awaiter','completedAt','bgGrey','\x20type?','Choose\x20the\x20login\x20token:','getPathString','\x20(full\x20domain:\x20','nextPageCursor','writable','integer','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','__importStar','setPathVars','blue','split','example','2VdHDXb','safeDump','getCurrentProjectName','getType','addon','hasOwnProperty','secret','secrets','cmdPath','yml','askForJob','No,\x20abort','187941GxGTYU','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','whiteBright','What\x27s\x20the\x20','then','./utils','974492dpbKqU','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','askForLogSink','Context\x20name\x20already\x20exists.','keys','./api-helpers','askArrayEntry','volume','domain\x20(','repeat','search-list','containers','properties','templateRuns','askForVolume','Do\x20you\x20want\x20to\x20add','concat','projects','yaml','name','defaultPaginationPageSize','choice','askForTemplateRun','templates','registries','maximum','must\x20be\x20a\x20number,\x20is\x20','\x20to\x20use:','editedResult','deleteWarningPrompt','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','confirmation','loginPrompt','No\x20containers\x20found','pagination','InquirerHelper','Yes,\x20send','blueBright','not\x20completed','boolean','registerPrompt','job\x20builds','askForResourcePaginated','map','propToType','job\x20runs','Please\x20confirm\x20following\x20configuration:\x0a','oneOf','to\x20use:','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','REPEAT','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','prompt','inquirer','__importDefault','pipelines','stringify',',\x20supported\x20types:\x20[json|yaml|yml]','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','96588fRSZSB','push','jobs','pipeline','unset','items','service\x20build','all-builds','cursor','object','green','data','validate','all-containers','inquirer-search-list','includes','ask','saveFile','type','.*\x5c.(json|yaml|yml)$','length','trim','js-yaml','editor','No\x20builds\x20found','ABORT','isArray','prototype','chalk','editPayload','elements','__esModule','createdAt','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','call','value','enum','\x20Example:\x20','EDIT','project','bold','toUpperCase','askForSubdomain','minimum','logSinks','askForResource','232110skfXYQ','filter','contextProvider','success','askForProjectScopedResourcePaginated','underline','create','join','grey','job\x20containers','startedAt','domain','No,\x20repeat','template','next','Configuration\x20file\x20written\x20to\x20','max','No,\x20but\x20save\x20as\x20file','domains','configurable','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','isBoolean','30bWfhnW','askForProject','getQuestionString','set','askForSecret','builds','pathVars','don\x27t\x20change','retry','defineProperty','found','body','json','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','lodash','all-job-runs','confirmationPrompt','writeFileSync','project:\x20\x27','\x20in\x20','pop','\x20(startedAt:\x20','find'];a8X=function(){return XN;};return a8X();}
1
+ 'use strict';const a8T=a8h;function a8w(){const wH=['service','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','__importDefault','deleteWarningPrompt','askForJob','safeLoad','askForSubdomain','fullName','must\x20be\x20a\x20number,\x20is\x20','js-yaml','addEntry','fetchResourceList','job:\x20\x27','safeDump','token','SAVE','password','apply','not\x20completed','jobs','pagination-prompt','split','oneOf','subdomains','completedAt','__setModuleDefault','defineProperty','askForProject','pathVars','Something\x20unexpected\x20happened.','saveFile','1424WeKVgY','isNaN','\x20characters','example','job\x20runs','message','confirmationPrompt','value','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','backups','set','length','Do\x20you\x20want\x20to\x20add',',\x20supported\x20types:\x20[json|yaml|yml]','tokenPrompt','No,\x20repeat','\x20(startedAt:\x20','builds','template','max','askForSecret','isEmpty','__esModule','boolean','job','getType','Choose\x20the\x20','registerPrompt','Yes,\x20send','getInnerType','askForProjectScopedResourcePaginated','resultCache','isObject','askForBuild','then','choice','minimum','editor','askForResourcePaginated','13730FzJdEn','credentials','12336256DvkiPR','greenBright','opt','done','pipelines','restores','don\x27t\x20change','a\x20Northflank\x20resource','unshift','integer','./pagination/inquirer-pagination-prompt','\x20Example:\x20','repeat','includes','askForPipeline','cursor','prototype','fileName','logSinks','items','get','Unexpected\x20file\x20type:\x20','project','concat','underline','subdomain','askForVolume','Aborted.','hasOwnProperty','found','service:\x20\x27','8267693PpVhzN','prompt','apiClient','defaultPaginationPageSize','job\x20builds','ABORT','getPathString','secrets','input','askForService','elements','templateRuns','validate','InquirerHelper','slice','next','blueBright','toString','maximum','create','askForAddonBackup','Go\x20to\x20editor','ask','service\x20containers','pagination','getCurrentProjectName','contextProvider','minLength','No,\x20but\x20save\x20as\x20file','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','whiteBright','No\x20','__createBinding','Context\x20with\x20name\x20\x27','search-list','body','\x20characters,\x20is\x20','trim','Writing\x20configuration\x20failed:\x20','__awaiter','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','askGeneric','to\x20use:','reset','askForTemplateRun','maxLength','string','confirm','tmpCmdPath','service\x20build','override','YES','secret','452655HlCaXv','startedAt','addons','stringify','properties','object','runs','editedResult','yellowBright','charAt','containers','bgGrey','./api-helpers','\x20type?','all-job-runs','propToType','\x20and\x20it\x20','545248OFfKrY','blue','rawObject','list','\x20(completedAt:\x20','askForResource','addon','job\x20containers','10xRCDsr','restore','askForCredentials','confirmation','writable','askForAddon','default','test','filter','map','values','services','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','\x20to\x20use:','addon:\x20\x27','editPayload','askForAddonRestore','throw','warning','for\x20this\x20','createdAt','1kmOGQo','find','loginPrompt','json','red','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','./utils','project:\x20\x27','REPEAT','Do\x20you\x20want\x20to\x20add\x20more','isUndefined','No\x20containers\x20found','isValidJSON','all-containers','push','bold','keys','log\x20sink','askForTemplate','call','pop','inquirer','Enter\x20the\x20','array','unset','name','Please\x20confirm\x20following\x20configuration:\x0a','\x20in\x20','askForContainer','type','join','green','setPathVars','chalk','askForDomain','assign','pattern','registryCredentials','retrievePayloadViaInteractiveCli','\x20(full\x20domain:\x20','6PpDLJd','templates','success','domain\x20(','description','Configuration\x20file\x20written\x20to\x20','main-context','has','What\x27s\x20the\x20','projects','isBoolean','Choose\x20the\x20login\x20token:','domains','writeFileSync','Should\x20it\x20be','8378541lHVnIp','askArrayEntry','1992406HdQizo','Template\x20id\x20not\x20provided.','data'];a8w=function(){return wH;};return a8w();}(function(w,h){const X=a8h,G=w();while(!![]){try{const P=-parseInt(X(0x24f))/0x1*(-parseInt(X(0x288))/0x2)+parseInt(X(0x221))/0x3+-parseInt(X(0x2aa))/0x4*(parseInt(X(0x2d1))/0x5)+parseInt(X(0x277))/0x6*(parseInt(X(0x2f2))/0x7)+-parseInt(X(0x2d3))/0x8+parseInt(X(0x286))/0x9+-parseInt(X(0x23a))/0xa*(-parseInt(X(0x232))/0xb);if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a8w,0xc0a68));function a8h(w,h){const G=a8w();return a8h=function(P,v){P=P-0x1f0;let O=G[P];return O;},a8h(w,h);}var __createBinding=this&&this[a8T(0x20c)]||(Object['create']?function(w,h,G,P){const I=a8T;if(P===undefined)P=G;var v=Object['getOwnPropertyDescriptor'](h,G);(!v||('get'in v?!h['__esModule']:v[I(0x23e)]||v['configurable']))&&(v={'enumerable':!![],'get':function(){return h[G];}}),Object['defineProperty'](w,P,v);}:function(w,h,G,P){if(P===undefined)P=G;w[P]=h[G];}),__setModuleDefault=this&&this[a8T(0x2a4)]||(Object[a8T(0x1ff)]?function(w,h){Object['defineProperty'](w,'default',{'enumerable':!![],'value':h});}:function(w,h){w['default']=h;}),__importStar=this&&this['__importStar']||function(w){const k=a8T;if(w&&w['__esModule'])return w;var h={};if(w!=null){for(var G in w)if(G!==k(0x240)&&Object[k(0x2e3)][k(0x2ef)][k(0x262)](w,G))__createBinding(h,w,G);}return __setModuleDefault(h,w),h;},__awaiter=this&&this[a8T(0x213)]||function(w,h,G,v){function O(Z){return Z instanceof G?Z:new G(function(a){a(Z);});}return new(G||(G=Promise))(function(Z,a){const q=a8h;function l(A){const Y=a8h;try{U(v[Y(0x1fb)](A));}catch(D){a(D);}}function B(A){const x=a8h;try{U(v[x(0x24b)](A));}catch(D){a(D);}}function U(A){const b=a8h;A[b(0x2d6)]?Z(A[b(0x2b1)]):O(A[b(0x2b1)])[b(0x2cc)](l,B);}U((v=v[q(0x29c)](w,h||[]))[q(0x1fb)]());});},__importDefault=this&&this[a8T(0x28d)]||function(w){const f=a8T;return w&&w[f(0x2c0)]?w:{'default':w};};Object[a8T(0x2a5)](exports,'__esModule',{'value':!![]}),exports[a8T(0x1f9)]=void 0x0;const _=__importStar(require('lodash')),chalk_1=__importDefault(require(a8T(0x270))),fs=__importStar(require('fs')),utils_1=require(a8T(0x255)),api_helpers_1=require(a8T(0x22d)),inquirer_pagination_prompt_1=require(a8T(0x2dd)),inquirer=require(a8T(0x264)),inquirerSearchList=require('inquirer-search-list'),yaml=require(a8T(0x294));var ConfirmChoices;(function(w){const e=a8T;w[e(0x21f)]=e(0x2c6),w[e(0x257)]=e(0x2b9),w['EDIT']='No,\x20edit',w[e(0x29a)]=e(0x208),w['ABORT']='No,\x20abort';}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(w){const i=a8T;this[i(0x2f4)]=w,this[i(0x2f5)]=0x32,this[i(0x249)]=h=>__awaiter(this,void 0x0,void 0x0,function*(){const u=i,{editedResult:G}=yield inquirer['prompt']([{'type':u(0x2cf),'name':u(0x228),'message':u(0x201),'default':yaml['safeDump'](h)}]);return yaml[u(0x290)](G);}),this[i(0x2a9)]=h=>__awaiter(this,void 0x0,void 0x0,function*(){const t=i,G=Z=>t(0x2e8)+Z+t(0x2b7);function P(){return __awaiter(this,void 0x0,void 0x0,function*(){const S=a8h;return inquirer[S(0x2f3)]([{'type':S(0x1f4),'name':S(0x2e4),'message':'Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','validate':Z=>new RegExp('.*\x5c.(json|yaml|yml)$')[S(0x241)](Z)?!![]:G(Z)}]);});}const {fileName:v}=yield P(),O=v[t(0x1fd)]()[t(0x2a0)]('.')[t(0x263)]();try{switch(O){case t(0x252):(0x0,utils_1[t(0x279)])(t(0x27c)+v);return fs[t(0x284)](v,JSON[t(0x224)](h,null,'\x20\x20'));case'yaml':case'yml':(0x0,utils_1[t(0x279)])('Configuration\x20file\x20written\x20to\x20'+v);return fs['writeFileSync'](v,yaml[t(0x298)](h));default:(0x0,utils_1[t(0x24c)])(G(O));}}catch(Z){(0x0,utils_1['warning'])(t(0x212)+Z[t(0x2af)]);}return undefined;}),this['filter']=(h,G)=>P=>{const V=i,v=typeof P===V(0x21a)?P[V(0x211)]():P;return G===![]&&v==='don\x27t\x20change'?'':v;},this[i(0x1f8)]=(h,G,P)=>v=>{const C=i,O=[];if(v===''||v===C(0x2d9)){if(G!==![])O[C(0x25d)]('this\x20option\x20is\x20required,\x20please\x20answer');else return!![];}h['type']===C(0x21a)&&!_[C(0x259)](h['pattern'])&&O[C(0x25d)](new RegExp(h[C(0x273)])['test'](v)?!![]:'doesn\x27t\x20match\x20pattern\x20\x27'+h[C(0x273)]+'\x27');h[C(0x26c)]===C(0x21a)&&!_[C(0x259)](h['minLength'])&&O[C(0x25d)](v[C(0x2b5)]>=h[C(0x207)]?!![]:C(0x214)+h[C(0x207)]+'\x20characters,\x20is\x20'+v[C(0x2b5)]+C(0x2ac));h[C(0x26c)]===C(0x21a)&&!_[C(0x259)](h[C(0x219)])&&O[C(0x25d)](v[C(0x2b5)]<=h[C(0x219)]?!![]:C(0x246)+h['maxLength']+C(0x210)+v[C(0x2b5)]+C(0x2ac));P&&Number[C(0x2ab)](parseInt(v,0xa))&&O[C(0x25d)](C(0x293)+v);h[C(0x26c)]===C(0x2dc)&&!_['isUndefined'](h['minimum'])&&O['push'](v>=h[C(0x2ce)]?!![]:'must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20'+h[C(0x2ce)]);h[C(0x26c)]===C(0x2dc)&&!_[C(0x259)](h[C(0x1fe)])&&O['push'](v<=h[C(0x1fe)]?!![]:C(0x209)+h[C(0x1fe)]);if(h[C(0x26c)]===C(0x234)){const l=(0x0,utils_1[C(0x25b)])(v);O['push'](l===![]||_[C(0x2bf)](l)?C(0x254):!![]);}const Z=O[C(0x242)](B=>B!==!![]),a=(h===null||h===void 0x0?void 0x0:h[C(0x2ad)])?'\x0a'+chalk_1[C(0x240)][C(0x253)]('>>')+C(0x2de)+chalk_1[C(0x240)][C(0x20a)](JSON[C(0x224)](h[C(0x2ad)])):'';return Z['length']>0x0?Z[C(0x26d)](chalk_1['default'][C(0x2eb)](C(0x231)))+a:!![];},this['getPathString']=(h,G,P)=>{const M=i,v=h[h[M(0x2b5)]-0x1];function O(){const Q=M;return h[Q(0x1fa)](0x0,-0x1)['map'](l=>l[Q(0x22a)](0x0)['toUpperCase']()+l[Q(0x1fa)](0x1))[Q(0x26d)]('>');}const Z=h[M(0x2b5)]>0x1?chalk_1[M(0x240)][M(0x22c)][M(0x20a)](O())+':\x20':'',a=P?'\x20('+chalk_1[M(0x240)][M(0x233)](P)+')':'';return chalk_1[M(0x240)][M(0x217)](''+Z+G+'\x20'+chalk_1['default'][M(0x25e)][M(0x2d4)](v)+a+'?');},this[i(0x237)]=(h,G,P)=>__awaiter(this,void 0x0,void 0x0,function*(){const H=i;if(G[H(0x2b5)]<0x1){const Z=P?H(0x24d)+P:H(0x2f0);throw new Error(H(0x20b)+h+'\x20'+Z+'.');}const v='Choose\x20the\x20'+h+H(0x247),O=G[H(0x2b5)]>0x4?H(0x20e):H(0x235);return(yield inquirer['prompt']([{'type':O,'name':H(0x268),'message':v,'choices':G}]))['name'];}),this[i(0x2d0)]=(h,G,P)=>__awaiter(this,void 0x0,void 0x0,function*(){const n=i,{elements:v,nextCursor:O}=yield G();if(v[n(0x2b5)]<0x1){const l=P?n(0x24d)+P:n(0x2f0);throw new Error(n(0x20b)+h+'\x20'+l+'.');}const Z=n(0x2c4)+h+'\x20to\x20use:';if(O!==undefined){const B=({nextPageCursor:U})=>__awaiter(this,void 0x0,void 0x0,function*(){const r=n,A=yield G(U);return{'elements':A[r(0x1f6)],'nextPageCursor':A['nextCursor']};});return(yield inquirer[n(0x2f3)]([{'type':n(0x29f),'name':'name','message':Z,'choices':v,'nextPageCursor':O,'loadMore':B}]))[n(0x268)];}const a=v['length']>0x4?'search-list':n(0x235);return(yield inquirer[n(0x2f3)]([{'type':a,'name':n(0x268),'message':Z,'choices':v}]))[n(0x268)];}),this[i(0x215)]=(h,G)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const j=i,P=''+(G?'('+chalk_1[j(0x240)]['blue'](G)+')\x20':''),v=j(0x265)+chalk_1[j(0x240)]['green'](h)+'\x20'+P+j(0x216),O=this[j(0x1f8)]({'type':j(0x21a),'required':!![]});return(yield inquirer[j(0x2f3)]([{'type':j(0x1f4),'name':j(0x268),'message':v,'validate':O}]))[j(0x268)];}),this['askConfirm']=h=>__awaiter(this,void 0x0,void 0x0,function*(){const m=i;return(yield inquirer['prompt']([{'type':m(0x21b),'name':m(0x268),'message':h,'default':!![]}]))[m(0x268)];}),this[i(0x1f5)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const E=i,G=P=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const y=a8h;var O;const Z=yield this['apiClient'][y(0x235)][y(0x245)]({'parameters':{'projectId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':v}}),a=Z[y(0x28a)][y(0x245)][y(0x243)](l=>l['id']);return{'elements':a,'nextCursor':(O=Z[y(0x204)])===null||O===void 0x0?void 0x0:O['cursor']};});return this[E(0x2c8)]('service',G,h);}),this[i(0x261)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const g=i,h=G=>__awaiter(this,void 0x0,void 0x0,function*(){const K=a8h;var P;const v=yield this[K(0x2f4)][K(0x235)][K(0x278)]({'options':{'per_page':this[K(0x2f5)],'cursor':G}}),O=v[K(0x28a)]['templates'][K(0x243)](Z=>Z['id']);return{'elements':O,'nextCursor':(P=v[K(0x204)])===null||P===void 0x0?void 0x0:P['cursor']};});return this[g(0x2d0)](g(0x2bc),h);}),this[i(0x218)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=i;if(_[J(0x259)](h))throw new Error(J(0x289));const G=P=>__awaiter(this,void 0x0,void 0x0,function*(){const R=J;var v;let O=this[R(0x2f5)];const Z=yield this[R(0x2f4)]['list'][R(0x1f7)]({'parameters':{'templateId':h},'options':{'per_page':O,'cursor':P}}),a=Z['data'][R(0x1f7)][R(0x243)](l=>l['id']+R(0x2ba)+l[R(0x24e)]+')');return{'elements':a,'nextCursor':(v=Z[R(0x204)])===null||v===void 0x0?void 0x0:v['cursor']};});return this[J(0x2d0)]('template\x20run',G)[J(0x2cc)](P=>P['split']('\x20')[0x0]);}),this['askForLogSink']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const z=i,h=G=>__awaiter(this,void 0x0,void 0x0,function*(){const N=a8h;var P;let v=this[N(0x2f5)];const O=yield this['apiClient'][N(0x235)][N(0x2e5)]({'options':{'per_page':v,'cursor':G}}),Z=O[N(0x28a)][N(0x2e5)][N(0x243)](a=>a['id']);return{'elements':Z,'nextCursor':(P=O[N(0x204)])===null||P===void 0x0?void 0x0:P['cursor']};});return this[z(0x2d0)](z(0x260),h);}),this[i(0x2e1)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const o=i,G=P=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const F=a8h;var O;const Z=yield this[F(0x2f4)][F(0x235)][F(0x2d7)]({'parameters':{'projectId':P},'options':{'per_page':this[F(0x2f5)],'cursor':v}}),a=Z[F(0x28a)]['pipelines'][F(0x243)](l=>l['id']);return{'elements':a,'nextCursor':(O=Z[F(0x204)])===null||O===void 0x0?void 0x0:O[F(0x2e2)]};});return this[o(0x2c8)]('pipeline',G,h);}),this[i(0x28f)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const d=i,G=P=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const L=a8h;var O;const Z=yield this['apiClient']['list']['jobs']({'parameters':{'projectId':P},'options':{'per_page':this[L(0x2f5)],'cursor':v}}),a=Z['data'][L(0x29e)][L(0x243)](l=>l['id']);return{'elements':a,'nextCursor':(O=Z[L(0x204)])===null||O===void 0x0?void 0x0:O[L(0x2e2)]};});return this['askForProjectScopedResourcePaginated'](d(0x2c2),G,h);}),this['askForJobRun']=(h,G,P=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w0=i,v=w0(0x22f),O=Z=>a=>__awaiter(this,void 0x0,void 0x0,function*(){const w1=w0;var l;const B=yield this[w1(0x2f4)][w1(0x2e7)][w1(0x2c2)][w1(0x227)]({'parameters':{'projectId':Z,'jobId':h},'options':{'per_page':this[w1(0x2f5)],'cursor':a}}),U=B[w1(0x28a)][w1(0x227)][w1(0x243)](A=>A['id']+w1(0x2ba)+A[w1(0x222)]+')');return P&&U['unshift'](v),{'elements':U,'nextCursor':(l=B[w1(0x204)])===null||l===void 0x0?void 0x0:l['cursor']};});return this[w0(0x2c8)](w0(0x2ae),O,G,'job:\x20\x27'+h+'\x27')[w0(0x2cc)](Z=>{const w2=w0,a=Z[w2(0x2a0)]('\x20')[0x0];if(a===v)return undefined;return a;});}),this[i(0x2cb)]=(h,G,P,v=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w4=i,O='all-builds';if(P!==undefined){const Z=a=>l=>__awaiter(this,void 0x0,void 0x0,function*(){const w3=a8h;var B;const U=yield this['apiClient'][w3(0x2e7)][w3(0x2c2)][w3(0x2bb)]({'parameters':{'projectId':a,'jobId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':l}}),A=U['data'][w3(0x2bb)][w3(0x243)](D=>D['id']+w3(0x2ba)+D[w3(0x24e)]+')');return v&&A[w3(0x2db)](O),{'elements':A,'nextCursor':(B=U[w3(0x204)])===null||B===void 0x0?void 0x0:B[w3(0x2e2)]};});return this[w4(0x2c8)](w4(0x1f0),Z,h,w4(0x297)+P+'\x27')[w4(0x2cc)](a=>{const w5=w4,l=a[w5(0x2a0)]('\x20')[0x0];if(l===O)return undefined;return l;});}if(G!==undefined){const a=l=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const w6=w4;var U;const A=yield this['apiClient'][w6(0x2e7)][w6(0x28b)][w6(0x2bb)]({'parameters':{'projectId':l,'serviceId':G},'options':{'per_page':this[w6(0x2f5)],'cursor':B}}),D=A[w6(0x28a)][w6(0x2bb)][w6(0x243)](p=>p['id']+w6(0x2ba)+p['createdAt']+')');if(v)D[w6(0x2db)](O);return{'elements':D,'nextCursor':(U=A[w6(0x204)])===null||U===void 0x0?void 0x0:U[w6(0x2e2)]};});return this[w4(0x2c8)](w4(0x21d),a,h,'service:\x20\x27'+P+'\x27')[w4(0x2cc)](l=>{const w7=w4,B=l[w7(0x2a0)]('\x20')[0x0];if(B===O)return undefined;return B;});}throw new Error('No\x20builds\x20found');}),this[i(0x26b)]=(h,G,P,v=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w8=i,O=w8(0x25c);if(P!==undefined){const Z=a=>l=>__awaiter(this,void 0x0,void 0x0,function*(){const w9=w8;var B,U;const A=yield this['apiClient'][w9(0x2e7)][w9(0x2c2)]['containers']({'parameters':{'projectId':a,'jobId':P},'options':{'per_page':this[w9(0x2f5)],'cursor':l}}),D=(B=A[w9(0x28a)][w9(0x22b)])!==null&&B!==void 0x0?B:[],p=D===null||D===void 0x0?void 0x0:D[w9(0x243)](s=>s[w9(0x268)]+'\x20(startedAt:\x20'+s[w9(0x24e)]+')');return v&&p['unshift'](O),{'elements':p,'nextCursor':(U=A['pagination'])===null||U===void 0x0?void 0x0:U['cursor']};});return this['askForProjectScopedResourcePaginated'](w8(0x239),Z,h,'job:\x20\x27'+P+'\x27')[w8(0x2cc)](a=>{const ww=w8,l=a[ww(0x2a0)]('\x20')[0x0];if(l===O)return undefined;return l;});}if(G!==undefined){const a=l=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const wh=w8;var U,A;const D=yield this['apiClient'][wh(0x2e7)][wh(0x28b)]['containers']({'parameters':{'projectId':l,'serviceId':G},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':B}}),p=(U=D[wh(0x28a)][wh(0x22b)])!==null&&U!==void 0x0?U:[],s=p[wh(0x243)](W=>W[wh(0x268)]+wh(0x2ba)+W['createdAt']+')');if(v)s===null||s===void 0x0?void 0x0:s[wh(0x2db)](O);return{'elements':s,'nextCursor':(A=D[wh(0x204)])===null||A===void 0x0?void 0x0:A[wh(0x2e2)]};});return this[w8(0x2c8)](w8(0x203),a,h,w8(0x2f1)+P+'\x27')[w8(0x2cc)](l=>{const wG=w8,B=l[wG(0x2a0)]('\x20')[0x0];if(B===O)return undefined;return B;});}throw new Error(w8(0x25a));}),this[i(0x23f)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wv=i,G=P=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const wP=a8h;var O;const Z=yield this[wP(0x2f4)][wP(0x235)]['addons']({'parameters':{'projectId':P},'options':{'per_page':this[wP(0x2f5)],'cursor':v}});return{'elements':Z[wP(0x28a)][wP(0x223)][wP(0x243)](a=>a['id']),'nextCursor':(O=Z['pagination'])===null||O===void 0x0?void 0x0:O[wP(0x2e2)]};});return this['askForProjectScopedResourcePaginated'](wv(0x238),G,h);}),this[i(0x200)]=(h,G)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const P=v=>O=>__awaiter(this,void 0x0,void 0x0,function*(){const wO=a8h;var Z;const a=yield this[wO(0x2f4)]['get'][wO(0x238)][wO(0x2b3)]({'parameters':{'projectId':v,'addonId':G},'options':{'per_page':this[wO(0x2f5)],'cursor':O}});return{'elements':a[wO(0x28a)][wO(0x2b3)][wO(0x243)](l=>l['id']+wO(0x236)+(l[wO(0x2a3)]||wO(0x29d))+')'),'nextCursor':(Z=a[wO(0x204)])===null||Z===void 0x0?void 0x0:Z['cursor']};});return this['askForProjectScopedResourcePaginated']('backups',P,h,'addon:\x20\x27'+G+'\x27')['then'](v=>v['split']('\x20')[0x0]);}),this[i(0x24a)]=(h,G,P)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wa=i,v=O=>Z=>__awaiter(this,void 0x0,void 0x0,function*(){const wZ=a8h;var a;const l=yield this[wZ(0x2f4)][wZ(0x2e7)][wZ(0x238)]['restores']({'parameters':{'projectId':O,'addonId':G,'backupId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':Z}});return{'elements':l[wZ(0x28a)][wZ(0x2d8)][wZ(0x243)](B=>B['id']+wZ(0x236)+(B['completedAt']||'not\x20completed')+')'),'nextCursor':(a=l['pagination'])===null||a===void 0x0?void 0x0:a['cursor']};});return this[wa(0x2c8)](wa(0x23b),v,h,wa(0x248)+G+'\x27')['then'](O=>O[wa(0x2a0)]('\x20')[0x0]);}),this[i(0x2ed)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const G=P=>__awaiter(this,void 0x0,void 0x0,function*(){const wl=a8h;return(yield this['apiClient'][wl(0x235)]['volumes']({'parameters':{'projectId':P}}))[wl(0x28a)][wl(0x243)](v=>v['id']);});return this['askForProjectScopedResource']('volume',G,h);}),this[i(0x2be)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wU=i,G=P=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const wB=a8h;var O;const Z=yield this[wB(0x2f4)][wB(0x235)][wB(0x1f3)]({'parameters':{'projectId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':v}});return{'elements':Z[wB(0x28a)][wB(0x1f3)][wB(0x243)](a=>a['id']),'nextCursor':(O=Z['pagination'])===null||O===void 0x0?void 0x0:O['cursor']};});return this[wU(0x2c8)](wU(0x220),G,h);}),this[i(0x291)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wA=i,G=yield this[wA(0x2f4)][wA(0x2e7)]['domain']({'parameters':{'domain':h}}),P=G[wA(0x28a)][wA(0x2a2)][wA(0x243)](O=>O[wA(0x268)]+wA(0x276)+O[wA(0x292)]+')'),v=wA(0x27a)+h+')';return this['askForResource'](wA(0x2ec),P,v)[wA(0x2cc)](O=>O['split']('\x20')[0x0]);}),this[i(0x28e)]=h=>__awaiter(this,void 0x0,void 0x0,function*(){const wD=i;return(yield inquirer[wD(0x2f3)]([{'type':wD(0x21b),'name':'confirmation','message':chalk_1[wD(0x240)][wD(0x229)]('WARNING:\x20You\x20are\x20about\x20to\x20delete\x20'+(h||wD(0x2da))+wD(0x2b2)),'default':![]}]))[wD(0x23d)];}),this[i(0x251)]=(h,G)=>__awaiter(this,void 0x0,void 0x0,function*(){const wp=i;_[wp(0x259)](h[wp(0x268)])&&(G['length']<=0x0?_[wp(0x2b4)](h,wp(0x268),wp(0x240)):yield(0x0,utils_1['retry'])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const ws=wp,{name:P}=yield inquirer[ws(0x2f3)]([{'type':ws(0x1f4),'name':ws(0x268),'message':'Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','default':ws(0x27d)}]);if(!h[ws(0x21e)]&&G[ws(0x250)](v=>v[ws(0x268)]===P)){const {c:v}=yield inquirer[ws(0x2f3)]([{'type':'confirm','name':'c','message':ws(0x20d)+P+ws(0x28c),'default':![]}]);if(v===![])throw new Error('Context\x20name\x20already\x20exists.');_['set'](h,ws(0x21e),!![]);}_[ws(0x2b4)](h,'name',P);})));if(_[wp(0x259)](h[wp(0x299)])){const P=yield this[wp(0x2b8)]();_[wp(0x2b4)](h,'token',P);}return h;}),this['tokenPrompt']=()=>__awaiter(this,void 0x0,void 0x0,function*(){const wW=i,{token:h}=yield inquirer[wW(0x2f3)]([{'type':wW(0x29b),'name':wW(0x299),'mask':'*','message':wW(0x282)}]);return h;}),inquirer[i(0x2c5)]('search-list',inquirerSearchList),inquirer[i(0x2c5)](i(0x29f),inquirer_pagination_prompt_1['DynamicReloadPaginationPrompt']);}[a8T(0x2b0)](w,h){return __awaiter(this,void 0x0,void 0x0,function*(){const wX=a8h,G=yaml[wX(0x298)](w),P=_[wX(0x2bd)](G[wX(0x2a0)]('\x0a')['map'](Z=>Z['length'])),v=chalk_1[wX(0x240)]['grey']('-'[wX(0x2df)](P)+'\x0a'),{confirm:O}=yield inquirer['prompt']([{'type':wX(0x235),'name':wX(0x21b),'message':''+chalk_1['default'][wX(0x25e)][wX(0x26e)](wX(0x269))+v+chalk_1[wX(0x240)][wX(0x1fc)](G)+v,'choices':Object[wX(0x244)](ConfirmChoices)}]);switch(O){case ConfirmChoices['YES']:return w;case ConfirmChoices[wX(0x1f1)]:throw new Error(wX(0x2ee));case ConfirmChoices[wX(0x257)]:return this['retrievePayloadViaInteractiveCli'](h);case ConfirmChoices['EDIT']:return this[wX(0x2b0)](yield this[wX(0x249)](w),h);case ConfirmChoices[wX(0x29a)]:yield this['saveFile'](w);return this[wX(0x2b0)](w,h);default:throw new Error(wX(0x2a8));}});}[a8T(0x275)](w,h){return __awaiter(this,void 0x0,void 0x0,function*(){const wT=a8h;if((h===null||h===void 0x0?void 0x0:h[wT(0x2c9)])!==undefined)this[wT(0x2c9)]=h===null||h===void 0x0?void 0x0:h['resultCache'];this[wT(0x21c)]=h===null||h===void 0x0?void 0x0:h['cmdPath'];const G={};return yield this[wT(0x230)]([],w[wT(0x2d5)][wT(0x20f)],G),this[wT(0x2c9)]=G,yield this['confirmationPrompt'](G,w);});}[a8T(0x230)](w,h,G,P){return __awaiter(this,void 0x0,void 0x0,function*(){const wI=a8h;let v;if(h[wI(0x2a1)]&&!_[wI(0x27e)](h,wI(0x225))){if(h[wI(0x2a1)][wI(0x2b5)]>0x1){const {choice:O}=yield inquirer[wI(0x2f3)]([{'type':'list','name':wI(0x2cd),'message':wI(0x27f)+(w[w[wI(0x2b5)]-0x1]||'')+wI(0x22e),'choices':h[wI(0x2a1)]['map'](Z=>{const wk=wI;var a;return(a=Z[wk(0x27b)])!==null&&a!==void 0x0?a:'??';})}]);v=yield this[wI(0x2c3)](w,h[wI(0x2a1)][wI(0x250)](Z=>Z[wI(0x27b)]===O),G,P);}else{const Z=h[wI(0x2a1)][0x0];_['set'](Z,wI(0x27b),h[wI(0x27b)]),v=yield this[wI(0x2c3)](w,Z,G,P);}v={};}else v=yield this[wI(0x2c3)](w,h,G,P);return v;});}['getInnerType'](w,h,G,P){var v;return __awaiter(this,void 0x0,void 0x0,function*(){const wY=a8h;if(P===![]){const {addEntry:a}=yield inquirer[wY(0x2f3)]([{'type':wY(0x21b),'name':'addEntry','message':this[wY(0x1f2)](h,wY(0x2b6),w===null||w===void 0x0?void 0x0:w[wY(0x27b)]),'default':![]}]);if(!a)return G;}const O=Object[wY(0x25f)]((v=w===null||w===void 0x0?void 0x0:w[wY(0x225)])!==null&&v!==void 0x0?v:[]),Z=w['required']||[];if(O[wY(0x2b5)]>0x0)for(const l of O){const B=h[wY(0x2ea)](l);if(h['length']>0x0&&!_[wY(0x27e)](G,h[wY(0x26d)]('.')))_[wY(0x2b4)](G,h[wY(0x26d)]('.'),{});yield this['propToType'](B,w['properties'][l],G,Z[wY(0x2e0)](l));}else yield this[wY(0x2c3)](h,Object['assign'](Object['assign']({},w),{'type':wY(0x234)}),G,P);return G;});}[a8T(0x287)](w,h,G,P){return __awaiter(this,void 0x0,void 0x0,function*(){const wx=a8h;if(h&&G)return!![];const v=h?wx(0x2b6):wx(0x258),{addEntry:O}=yield inquirer['prompt']([{'type':'confirm','name':wx(0x295),'message':this[wx(0x1f2)](w,v,h?P:undefined),'default':![]}]);return O;});}[a8T(0x2c3)](w,h,G,P){return __awaiter(this,void 0x0,void 0x0,function*(){const wb=a8h;let v;const O=w[wb(0x26d)]('.');switch(h===null||h===void 0x0?void 0x0:h[wb(0x26c)]){case wb(0x266):{let Z=!![];while(yield this[wb(0x287)](w,Z,P,h===null||h===void 0x0?void 0x0:h['description'])){const a=_[wb(0x2e7)](G,O);_[wb(0x267)](G,O),yield this['getType'](w,h[wb(0x2e6)],G);const l=_['get'](G,O);!_['isArray'](a)?_[wb(0x2b4)](G,O,[l]):(a[wb(0x25d)](l),_[wb(0x2b4)](G,O,a)),Z=![];}return v||[];}case wb(0x226):{return v=yield this[wb(0x2c7)](h,w,G,P),v;}case wb(0x234):v=(0x0,utils_1[wb(0x25b)])(yield this[wb(0x202)](w,h,P))||undefined;break;case wb(0x21a):case wb(0x2c1):case wb(0x2dc):default:v=yield this[wb(0x202)](w,h,P,G);break;}return!_['isUndefined'](v)&&_['set'](G,O,v),v;});}[a8T(0x202)](w,h,G,P){var v;return __awaiter(this,void 0x0,void 0x0,function*(){const wq=a8h,O=w[w['length']-0x1],{defaultValue:defaultValue=(v=h===null||h===void 0x0?void 0x0:h[wq(0x2ad)])!==null&&v!==void 0x0?v:h===null||h===void 0x0?void 0x0:h['default'],choices:choices=h===null||h===void 0x0?void 0x0:h['enum'],pagination:Z}=yield(0x0,api_helpers_1[wq(0x296)])(O,this[wq(0x2f4)],this[wq(0x21c)],P,this['pathVars'],w);let a=wq(0x1f4);if(!_[wq(0x259)](choices)&&choices['length']>0x0){if(Z!==undefined&&Z['nextPageCursor']!==undefined)a='pagination-prompt';else choices[wq(0x2b5)]>0x4&&typeof choices[0x0]===wq(0x21a)?a=wq(0x20e):a=wq(0x235);}else{if((h===null||h===void 0x0?void 0x0:h[wq(0x26c)])===wq(0x2c1))a=wq(0x21b);else{if((h===null||h===void 0x0?void 0x0:h['type'])===wq(0x2dc))a='input';else(h===null||h===void 0x0?void 0x0:h[wq(0x26c)])===wq(0x234)&&(a=wq(0x2cf));}}let l=G!==![]?!_[wq(0x2ca)](defaultValue)?defaultValue:JSON[wq(0x224)](defaultValue):_[wq(0x281)](defaultValue)?defaultValue:'don\x27t\x20change';if(choices)l=l['toString']();_[wq(0x27e)](this[wq(0x2c9)],w['join']('.'))&&(l=this[wq(0x2c9)][w[wq(0x26d)]('.')]);const B=choices&&G===![]?[wq(0x2d9),...choices]:choices,U=(h===null||h===void 0x0?void 0x0:h['type'])==='integer',A=Object[wq(0x272)]({'type':a,'name':'id','message':this['getQuestionString'](w,h),'choices':B,'default':l,'filter':this[wq(0x242)](a,G),'validate':this['validate'](h,G,U)},Z),D=(yield inquirer[wq(0x2f3)]([A]))['id'];if(D===wq(0x2d9)||D==='')return undefined;if(U)return parseInt(D,0xa);return D;});}['getQuestionString'](w,h){const wf=a8T,G=(h===null||h===void 0x0?void 0x0:h[wf(0x26c)])!==wf(0x2c1)?'What\x20do\x20you\x20want\x20to\x20use\x20as':wf(0x285);return this[wf(0x1f2)](w,G,h===null||h===void 0x0?void 0x0:h[wf(0x27b)]);}[a8T(0x2a6)](){return __awaiter(this,void 0x0,void 0x0,function*(){const wi=a8h,w=h=>__awaiter(this,void 0x0,void 0x0,function*(){const we=a8h;var G;const P=yield this[we(0x2f4)]['list'][we(0x280)]({'options':{'per_page':this[we(0x2f5)],'cursor':h}}),v=P[we(0x28a)][we(0x280)][we(0x243)](O=>O['id']);return{'elements':v,'nextCursor':(G=P[we(0x204)])===null||G===void 0x0?void 0x0:G[we(0x2e2)]};});return yield this[wi(0x2d0)](wi(0x2e9),w);});}['askForProjectScopedResource'](w,h,G,P){return __awaiter(this,void 0x0,void 0x0,function*(){const wu=a8h,v=G||this[wu(0x2f4)]['contextProvider'][wu(0x205)]();if(_['isUndefined'](v))throw new Error('Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.');const O=yield h(v);return yield this[wu(0x237)](w,O,(P?P+wu(0x26a):'')+'project:\x20\x27'+v+'\x27');});}['askForProjectScopedResourcePaginated'](w,h,G,P){return __awaiter(this,void 0x0,void 0x0,function*(){const wt=a8h,v=G||this['apiClient'][wt(0x206)][wt(0x205)]();if(_[wt(0x259)](v))throw new Error('Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.');const O=yield h(v);return yield this[wt(0x2d0)](w,O,(P?P+'\x20in\x20':'')+wt(0x256)+v+'\x27');});}[a8T(0x271)](){return __awaiter(this,void 0x0,void 0x0,function*(){const wV=a8h,w=h=>__awaiter(this,void 0x0,void 0x0,function*(){const wS=a8h;var G;const P=yield this[wS(0x2f4)][wS(0x235)][wS(0x283)]({'options':{'per_page':this[wS(0x2f5)],'cursor':h}});return{'elements':P[wS(0x28a)][wS(0x283)]['map'](v=>v[wS(0x268)]),'nextCursor':(G=P[wS(0x204)])===null||G===void 0x0?void 0x0:G[wS(0x2e2)]};});return this[wV(0x2d0)]('domain',w);});}[a8T(0x23c)](){return __awaiter(this,void 0x0,void 0x0,function*(){const wM=a8h,w=h=>__awaiter(this,void 0x0,void 0x0,function*(){const wC=a8h;var G;const P=yield this[wC(0x2f4)][wC(0x235)][wC(0x274)]({'options':{'per_page':this[wC(0x2f5)],'cursor':h}});return{'elements':P[wC(0x28a)][wC(0x2d2)][wC(0x243)](v=>v['id']),'nextCursor':(G=P[wC(0x204)])===null||G===void 0x0?void 0x0:G[wC(0x2e2)]};});return this[wM(0x2d0)](wM(0x2d2),w);});}[a8T(0x26f)](w){const wQ=a8T;this[wQ(0x2a7)]=w;}}exports[a8T(0x1f9)]=InquirerHelper;
@@ -1 +1 @@
1
- 'use strict';const a9R=a9V;(function(X,V){const a=a9V,h=X();while(!![]){try{const Q=parseInt(a(0x1ba))/0x1*(parseInt(a(0x1b6))/0x2)+-parseInt(a(0x1bf))/0x3*(parseInt(a(0x1c2))/0x4)+parseInt(a(0x1b5))/0x5*(parseInt(a(0x1a8))/0x6)+-parseInt(a(0x1d1))/0x7+-parseInt(a(0x1d7))/0x8*(-parseInt(a(0x1c4))/0x9)+parseInt(a(0x1d5))/0xa*(-parseInt(a(0x1a7))/0xb)+parseInt(a(0x1b4))/0xc*(-parseInt(a(0x1b0))/0xd);if(Q===V)break;else h['push'](h['shift']());}catch(J){h['push'](h['shift']());}}}(a9X,0x54cef));var __createBinding=this&&this[a9R(0x19a)]||(Object[a9R(0x1be)]?function(X,V,h,Q){const v=a9R;if(Q===undefined)Q=h;var J=Object[v(0x1bc)](V,h);(!J||(v(0x1b1)in J?!V[v(0x1d8)]:J['writable']||J[v(0x1a9)]))&&(J={'enumerable':!![],'get':function(){return V[h];}}),Object['defineProperty'](X,Q,J);}:function(X,V,h,Q){if(Q===undefined)Q=h;X[Q]=V[h];}),__setModuleDefault=this&&this[a9R(0x1d2)]||(Object[a9R(0x1be)]?function(X,V){const g=a9R;Object[g(0x1af)](X,g(0x1c6),{'enumerable':!![],'value':V});}:function(X,V){const B=a9R;X[B(0x1c6)]=V;}),__importStar=this&&this[a9R(0x19d)]||function(X){const O=a9R;if(X&&X['__esModule'])return X;var V={};if(X!=null){for(var h in X)if(h!=='default'&&Object[O(0x1cd)][O(0x1d3)][O(0x1c8)](X,h))__createBinding(V,X,h);}return __setModuleDefault(V,X),V;},__awaiter=this&&this[a9R(0x1c0)]||function(X,V,h,Q){function J(G){return G instanceof h?G:new h(function(I){I(G);});}return new(h||(h=Promise))(function(G,I){const o=a9V;function T(A){const H=a9V;try{E(Q[H(0x1a4)](A));}catch(D){I(D);}}function W(A){try{E(Q['throw'](A));}catch(D){I(D);}}function E(A){const k=a9V;A[k(0x1ae)]?G(A[k(0x1d0)]):J(A['value'])[k(0x1b8)](T,W);}E((Q=Q['apply'](X,V||[]))[o(0x1a4)]());});},__importDefault=this&&this['__importDefault']||function(X){const N=a9R;return X&&X[N(0x1d8)]?X:{'default':X};};function a9V(X,V){const h=a9X();return a9V=function(Q,J){Q=Q-0x198;let G=h[Q];return G;},a9V(X,V);}function a9X(){const c=['932298ogArXf','__awaiter','end','4pbiAVH','createWebSocketStream','4041aAZRzM','/v1/cli-login','default','http:','call','error','idle','NorthflankApiBrowserLogin','toString','prototype','message','exit','value','4235812hUqdRq','__setModuleDefault','hasOwnProperty','wss:','1133180CwJBZt','removeListener','10024ZdfuAQ','__esModule','status','stringify','success','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','init','__createBinding','login-failure','baseUrl','__importStar','type','openBrowser','catch','parse','Failure\x20during\x20login:\x20','browser-opened','next','SIGINT','handleError','33AdxjDA','2154ijVcSu','configurable','Unexpected\x20response','duplex','https:','write','done','defineProperty','3458YsGcnW','get','init-ack','unable\x20to\x20parse\x20message:\x20','1656sziAgF','8255aBZNwW','2VElBBY','replace','then','EventEmitter','484613FxhsUi','initPackage','getOwnPropertyDescriptor','data','create'];a9X=function(){return c;};return a9X();}Object[a9R(0x1af)](exports,a9R(0x1d8),{'value':!![]}),exports[a9R(0x1cb)]=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require('open')),events_1=require('events');class NorthflankApiBrowserLogin extends events_1[a9R(0x1b9)]{constructor(X,V=!![]){const p=a9R;super(),this[p(0x19c)]=X,this[p(0x19f)]=V,this['status']=p(0x1ca),this['initPackage']=()=>JSON[p(0x1da)]({'type':p(0x199)});}['startLogin'](){const i=a9R;var X;const V=this[i(0x19c)][i(0x1b7)](i(0x1ac),i(0x1d4))[i(0x1b7)](i(0x1c7),'ws:'),h=V+i(0x1c5),Q=new ws_1['default'](h),J=()=>__awaiter(this,void 0x0,void 0x0,function*(){const L=i;yield new Promise(I=>{const x=a9V;var T;(T=this['duplex'])===null||T===void 0x0?void 0x0:T['end'](JSON[x(0x1da)]({'type':'aborted'}),()=>I());}),process[L(0x1cf)]();}),G=new Promise((I,T)=>{const y=i;var W,E,A;try{this[y(0x1ab)]=(0x0,ws_1[y(0x1c3)])(Q),process['on'](y(0x1a5),J);}catch(P){T(new Error(y(0x198)+P[y(0x1ce)]));}(W=this[y(0x1ab)])===null||W===void 0x0?void 0x0:W['on'](y(0x1bd),D=>{const M=y;var K;const d=JSON[M(0x1a1)](D[M(0x1cc)]());switch(d===null||d===void 0x0?void 0x0:d[M(0x19e)]){case M(0x1b2):{const {loginPage:f}=d;if(f===undefined){this['handleError'](M(0x1aa),T);return;}this['openBrowser']&&(0x0,open_1[M(0x1c6)])(f)[M(0x1a0)](z=>{const e=M,F='Unable\x20to\x20open\x20browser:\x20'+z[e(0x1ce)];this['handleError'](F,T);});this['emit'](M(0x1a3),{'url':f});break;}case'login-success':{const {apiToken:z,contextName:F}=d;if(z===undefined){this[M(0x1a6)]('Unexpected\x20response,\x20api\x20token\x20missing',T);return;}(K=this[M(0x1ab)])===null||K===void 0x0?void 0x0:K[M(0x1c1)](),I({'token':z,'contextName':F}),this[M(0x1d9)]=M(0x1db);break;}case M(0x19b):{const n=M(0x1a2)+(d===null||d===void 0x0?void 0x0:d[M(0x1ce)]);this[M(0x1a6)](n,T);break;}default:{const q=M(0x1b3)+JSON[M(0x1da)](d);this[M(0x1a6)](q,T);}}}),(E=this[y(0x1ab)])===null||E===void 0x0?void 0x0:E['on'](y(0x1c9),D=>{this['handleError']('error\x20happened\x20during\x20browser\x20login:\x20'+D['message'],T);}),(A=this['duplex'])===null||A===void 0x0?void 0x0:A['on'](y(0x1c1),()=>{const Z=y;if(this[Z(0x1d9)]===Z(0x1db)){}else this[Z(0x1a6)]('Login\x20process\x20stopped\x20before\x20completed',T);});});return(X=this[i(0x1ab)])===null||X===void 0x0?void 0x0:X[i(0x1ad)](this[i(0x1bb)]()),this[i(0x1d9)]='init',G['finally'](()=>{const C=i;process[C(0x1d6)]('SIGINT',J);});}[a9R(0x1a6)](X,V){const u=a9R;var h,Q;V?(h=this[u(0x1ab)])===null||h===void 0x0?void 0x0:h['end'](()=>V(new Error(X))):(Q=this[u(0x1ab)])===null||Q===void 0x0?void 0x0:Q[u(0x1c1)](),this[u(0x1d9)]=u(0x1c9);}}exports[a9R(0x1cb)]=NorthflankApiBrowserLogin;
1
+ 'use strict';const a9x=a9h;(function(w,h){const Y=a9h,G=w();while(!![]){try{const P=-parseInt(Y(0x187))/0x1+-parseInt(Y(0x176))/0x2*(-parseInt(Y(0x170))/0x3)+-parseInt(Y(0x18c))/0x4*(parseInt(Y(0x196))/0x5)+parseInt(Y(0x165))/0x6+parseInt(Y(0x168))/0x7*(-parseInt(Y(0x17b))/0x8)+parseInt(Y(0x18f))/0x9+-parseInt(Y(0x195))/0xa;if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a9w,0x99646));function a9w(){const E=['message','Failure\x20during\x20login:\x20','stringify','ws:','toString','openBrowser','26736fHaNEz','EventEmitter','success','error\x20happened\x20during\x20browser\x20login:\x20','SIGINT','write','142yjuloW','then','error','baseUrl','events','136czLbEo','__importStar','throw','/v1/cli-login','__importDefault','duplex','exit','data','parse','wss:','apply','finally','245421YfhXNP','status','handleError','next','open','4ypnUWI','__createBinding','__esModule','5919138qVGpaI','browser-opened','prototype','__awaiter','emit','Unexpected\x20response,\x20api\x20token\x20missing','9745590RZEVQi','3103445RoNkkI','default','idle','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','init-ack','init','initPackage','removeListener','getOwnPropertyDescriptor','value','http:','create','hasOwnProperty','login-failure','replace','7395840AWunyW','https:','defineProperty','22281eHONLn','end'];a9w=function(){return E;};return a9w();}var __createBinding=this&&this[a9x(0x18d)]||(Object[a9x(0x161)]?function(w,h,G,P){const b=a9x;if(P===undefined)P=G;var v=Object[b(0x19e)](h,G);(!v||('get'in v?!h[b(0x18e)]:v['writable']||v['configurable']))&&(v={'enumerable':!![],'get':function(){return h[G];}}),Object[b(0x167)](w,P,v);}:function(w,h,G,P){if(P===undefined)P=G;w[P]=h[G];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(w,h){const q=a9x;Object[q(0x167)](w,'default',{'enumerable':!![],'value':h});}:function(w,h){w['default']=h;}),__importStar=this&&this[a9x(0x17c)]||function(w){const f=a9x;if(w&&w['__esModule'])return w;var h={};if(w!=null){for(var G in w)if(G!==f(0x197)&&Object[f(0x191)][f(0x162)]['call'](w,G))__createBinding(h,w,G);}return __setModuleDefault(h,w),h;},__awaiter=this&&this[a9x(0x192)]||function(w,h,G,v){function O(Z){return Z instanceof G?Z:new G(function(a){a(Z);});}return new(G||(G=Promise))(function(Z,a){const t=a9h;function l(A){const e=a9h;try{U(v[e(0x18a)](A));}catch(D){a(D);}}function B(A){const i=a9h;try{U(v[i(0x17d)](A));}catch(D){a(D);}}function U(A){const u=a9h;A['done']?Z(A[u(0x19f)]):O(A[u(0x19f)])[u(0x177)](l,B);}U((v=v[t(0x185)](w,h||[]))['next']());});},__importDefault=this&&this[a9x(0x17f)]||function(w){const S=a9x;return w&&w[S(0x18e)]?w:{'default':w};};function a9h(w,h){const G=a9w();return a9h=function(P,v){P=P-0x161;let O=G[P];return O;},a9h(w,h);}Object[a9x(0x167)](exports,'__esModule',{'value':!![]}),exports['NorthflankApiBrowserLogin']=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9x(0x18b))),events_1=require(a9x(0x17a));class NorthflankApiBrowserLogin extends events_1[a9x(0x171)]{constructor(w,h=!![]){const V=a9x;super(),this[V(0x179)]=w,this['openBrowser']=h,this[V(0x188)]=V(0x198),this[V(0x19c)]=()=>JSON[V(0x16c)]({'type':'init'});}['startLogin'](){const C=a9x;var w;const h=this['baseUrl']['replace'](C(0x166),C(0x184))[C(0x164)](C(0x1a0),C(0x16d)),G=h+C(0x17e),P=new ws_1['default'](G),v=()=>__awaiter(this,void 0x0,void 0x0,function*(){const Q=C;yield new Promise(Z=>{const M=a9h;var a;(a=this[M(0x180)])===null||a===void 0x0?void 0x0:a[M(0x169)](JSON[M(0x16c)]({'type':'aborted'}),()=>Z());}),process[Q(0x181)]();}),O=new Promise((Z,a)=>{const H=C;var l,B,U;try{this[H(0x180)]=(0x0,ws_1['createWebSocketStream'])(P),process['on'](H(0x174),v);}catch(A){a(new Error(H(0x199)+A['message']));}(l=this['duplex'])===null||l===void 0x0?void 0x0:l['on'](H(0x182),D=>{const n=H;var p;const s=JSON[n(0x183)](D[n(0x16e)]());switch(s===null||s===void 0x0?void 0x0:s['type']){case n(0x19a):{const {loginPage:W}=s;if(W===undefined){this[n(0x189)]('Unexpected\x20response',a);return;}this[n(0x16f)]&&(0x0,open_1[n(0x197)])(W)['catch'](X=>{const c=n,T='Unable\x20to\x20open\x20browser:\x20'+X[c(0x16a)];this[c(0x189)](T,a);});this[n(0x193)](n(0x190),{'url':W});break;}case'login-success':{const {apiToken:X,contextName:T}=s;if(X===undefined){this['handleError'](n(0x194),a);return;}(p=this[n(0x180)])===null||p===void 0x0?void 0x0:p[n(0x169)](),Z({'token':X,'contextName':T}),this['status']=n(0x172);break;}case n(0x163):{const I=n(0x16b)+(s===null||s===void 0x0?void 0x0:s[n(0x16a)]);this[n(0x189)](I,a);break;}default:{const k='unable\x20to\x20parse\x20message:\x20'+JSON[n(0x16c)](s);this['handleError'](k,a);}}}),(B=this[H(0x180)])===null||B===void 0x0?void 0x0:B['on']('error',D=>{const r=H;this[r(0x189)](r(0x173)+D[r(0x16a)],a);}),(U=this['duplex'])===null||U===void 0x0?void 0x0:U['on']('end',()=>{const j=H;if(this[j(0x188)]===j(0x172)){}else this[j(0x189)]('Login\x20process\x20stopped\x20before\x20completed',a);});});return(w=this[C(0x180)])===null||w===void 0x0?void 0x0:w[C(0x175)](this[C(0x19c)]()),this[C(0x188)]=C(0x19b),O[C(0x186)](()=>{const m=C;process[m(0x19d)](m(0x174),v);});}[a9x(0x189)](w,h){const y=a9x;var G,P;h?(G=this[y(0x180)])===null||G===void 0x0?void 0x0:G[y(0x169)](()=>h(new Error(w))):(P=this[y(0x180)])===null||P===void 0x0?void 0x0:P[y(0x169)](),this[y(0x188)]=y(0x178);}}exports['NorthflankApiBrowserLogin']=NorthflankApiBrowserLogin;
@@ -1 +1 @@
1
- 'use strict';const a10Z=a10V;function a10V(X,V){const h=a10X();return a10V=function(Q,J){Q=Q-0x1b7;let G=h[Q];return G;},a10V(X,V);}(function(X,V){const e=a10V,h=X();while(!![]){try{const Q=parseInt(e(0x1f8))/0x1+-parseInt(e(0x1e5))/0x2+-parseInt(e(0x1e7))/0x3*(parseInt(e(0x219))/0x4)+-parseInt(e(0x20a))/0x5+parseInt(e(0x200))/0x6+parseInt(e(0x226))/0x7*(parseInt(e(0x227))/0x8)+parseInt(e(0x1c4))/0x9*(-parseInt(e(0x22b))/0xa);if(Q===V)break;else h['push'](h['shift']());}catch(J){h['push'](h['shift']());}}}(a10X,0xda74c));var __awaiter=this&&this[a10Z(0x239)]||function(X,V,h,Q){function J(G){return G instanceof h?G:new h(function(I){I(G);});}return new(h||(h=Promise))(function(G,I){function T(A){const C=a10V;try{E(Q[C(0x23a)](A));}catch(D){I(D);}}function W(A){try{E(Q['throw'](A));}catch(D){I(D);}}function E(A){const u=a10V;A['done']?G(A[u(0x1b8)]):J(A['value'])[u(0x21e)](T,W);}E((Q=Q['apply'](X,V||[]))['next']());});},__importDefault=this&&this[a10Z(0x1d8)]||function(X){const c=a10Z;return X&&X[c(0x22c)]?X:{'default':X};};Object[a10Z(0x21a)](exports,'__esModule',{'value':!![]}),exports['CliLogs']=void 0x0;const js_client_1=require(a10Z(0x1fe)),chalk_1=__importDefault(require(a10Z(0x1cc))),utils_1=require('../utils'),inquirer_helper_1=require(a10Z(0x1d5)),commander_1=require('commander'),console_format_helpers_1=require('../formatting/console-format-helpers'),log_formatter_1=require(a10Z(0x1f6));class CliLogs{constructor(X){const Y=a10Z;this[Y(0x236)]=X,this[Y(0x20e)]=(V,h)=>{const j=Y,Q=(0x0,utils_1[j(0x1de)])(!![])[j(0x202)]((h?'build-':'')+'logs')[j(0x1bc)]((h?j(0x1f1):'')+j(0x1c0))[j(0x1be)](j(0x1ce)+V)[j(0x1bf)](j(0x1df),'Project\x20for\x20logs')[j(0x1bf)]('--'+V+j(0x20d)+V+j(0x209)+V+'Id]',V[j(0x1dc)](0x0)[j(0x1d7)]()+V['slice'](0x1)+j(0x208))[j(0x1bf)](j(0x1dd),j(0x1cf))[j(0x1bf)](j(0x234),j(0x205))[j(0x1bf)](j(0x1fa),j(0x238))[j(0x1bf)](j(0x1bd),'Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1[j(0x222)],utils_1['parseDateInput'])[j(0x1ba)](new commander_1['Option'](j(0x232),j(0x1d1)+utils_1[j(0x222)])['argParser'](utils_1[j(0x1f7)])[j(0x1fb)]([j(0x1f0)]))[j(0x1bf)](j(0x1b7),'Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set')[j(0x1ba)](new commander_1[(j(0x1d2))](j(0x1e8),j(0x211))[j(0x20f)]([j(0x1c1),j(0x206)])[j(0x1fb)]([j(0x1f0)]))[j(0x1ba)](new commander_1[(j(0x1d2))](j(0x231),j(0x224))[j(0x1fb)]([j(0x1cd),j(0x218),j(0x229)]))['addOption'](new commander_1[(j(0x1d2))](j(0x1e4),j(0x203))[j(0x1fb)]([j(0x213),j(0x218),'regexNotIncludes']))[j(0x1ba)](new commander_1[(j(0x1d2))](j(0x214),j(0x1c7))[j(0x1fb)]([j(0x1cd),j(0x213),j(0x229)]))['addOption'](new commander_1[(j(0x1d2))](j(0x1c5),j(0x230))['conflicts']([j(0x1cd),'regexIncludes',j(0x213)]))['option'](j(0x1c6),j(0x223),![])[j(0x1ba)](new commander_1[(j(0x1d2))](j(0x23b),'Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.')['choices'](Object[j(0x20b)]([j(0x1d9),'json','yaml'])));if(h)Q['option'](j(0x22a),'Build\x20to\x20get\x20logs\x20from');if(V==='job')Q[j(0x1bf)]('--run\x20--runId\x20[runId]',j(0x22f));return Q;},this[Y(0x1ca)]=(V,h,Q,J)=>{const b=Y,{containerId:G,quiet:I,tail:T,startTime:W,endTime:E,duration:A}=J;if(I===!![])return;const P=T?'(exit\x20with\x20'+chalk_1[b(0x22d)][b(0x1f2)]('\x27Ctrl+C\x27')+')':'',D=T?b(0x204):'',K=W?b(0x1f3)+W[b(0x1e9)]():'',d=E?b(0x225)+E['toISOString']():'',f=A?b(0x21b)+A+b(0x1e6):'',z=G?b(0x23d)+chalk_1[b(0x22d)][b(0x1f2)](G):b(0x1e3),F=V+'\x20'+chalk_1[b(0x22d)][b(0x1f2)](h)+b(0x22e)+chalk_1[b(0x22d)][b(0x1f2)](Q),n=''+K+d+f;console[b(0x1c0)]('Container\x20logs\x20'+D+'for\x20'+z+b(0x1eb)+F+n+'\x20'+P);},this[Y(0x212)]=(V,h)=>Q=>{const s=Y;if(!V){if(Q['length']===0x0)console['log'](s(0x1d6));Q[s(0x235)](J=>(0x0,log_formatter_1[s(0x1ee)])(J,h));}else(0x0,console_format_helpers_1[s(0x1ea)])(V,Q);},this['apiClient']=new js_client_1[(Y(0x207))](X,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[Y(0x1c3)]}),this[Y(0x1db)]=this['apiClient'],this[Y(0x216)]=new inquirer_helper_1['InquirerHelper'](this[Y(0x217)]);}[a10Z(0x1e0)](X,V=![]){const S=a10Z,h=(I,T)=>__awaiter(this,void 0x0,void 0x0,function*(){const w=a10V,W=T[w(0x220)],{apiContext:E,inquirerHelper:A}=this;switch(X){case'service':{const P=W?undefined:E[w(0x1fc)]();return T[w(0x1bb)]||P||(yield A[w(0x201)](I)());}case'job':{const D=W?undefined:E[w(0x1fc)]();return T[w(0x1ec)]||D||(yield A[w(0x1e2)](I)());}case w(0x1d3):{const K=W?undefined:E[w(0x1fc)]();return T[w(0x20c)]||K||(yield A[w(0x1c9)](I)());}}}),Q=(I,T,W)=>__awaiter(this,void 0x0,void 0x0,function*(){const m=a10V;if(V)return W['buildId']||(yield this['inquirerHelper'][m(0x233)](I,X===m(0x221)?T:undefined,X===m(0x1c8)?T:undefined,!![])());return undefined;}),J=(I,T,W)=>__awaiter(this,void 0x0,void 0x0,function*(){const r=a10V;if(!V&&W[r(0x1d4)]!==undefined){if(W[r(0x1d4)]!==!![])return W[r(0x1d4)];return yield this[r(0x216)][r(0x237)](I,X===r(0x221)?T:undefined,X===r(0x1c8)?T:undefined,!![])();}return undefined;}),G=(I,T,W)=>__awaiter(this,void 0x0,void 0x0,function*(){const l=a10V;if(X===l(0x1c8))return W[l(0x1e1)]||(yield this[l(0x216)][l(0x1b9)](T,I,!![])());return undefined;});return this['getStandardLogCommand'](X,V)[S(0x215)](I=>__awaiter(this,void 0x0,void 0x0,function*(){const t=S,{noDefaults:T,projectId:W,quiet:E,tail:A,textIncludes:P,textNotIncludes:D,regexIncludes:K,regexNotIncludes:d,direction:f,lineLimit:z,startTime:F,endTime:n,duration:q,output:a}=I;(0x0,utils_1[t(0x228)])(this[t(0x217)]);const {apiContext:R,inquirerHelper:v,logsApiClient:g}=this,B=T?undefined:R[t(0x1fd)](),O=W||B||(yield v[t(0x21d)]()),H=yield h(O,I),k=yield Q(O,H,I),o=yield G(O,H,I),N=yield J(O,H,I);if(!E&&a!==t(0x1ef)&&a!=='yml'&&a!==t(0x1c2))this[t(0x1ca)](X,H,O,I);if(F&&n&&q)throw new Error(t(0x1cb));const p={'projectId':O,'entityId':H},i={'containerName':N,'textIncludes':P,'textNotIncludes':D,'regexIncludes':K,'regexNotIncludes':d,'lineLimit':z,'startTime':F,'duration':q,'runId':o,'buildId':k,'isBuild':V!==null&&V!==void 0x0?V:![]},x=this[t(0x212)](a,P!==null&&P!==void 0x0?P:K);if(A){const L=yield g['logs'][t(0x1f4)](p,i,X);L['on'](t(0x1f9),x),L['on'](t(0x21f),y=>(0x0,utils_1[t(0x21f)])(t(0x1ed)+y[t(0x1f5)])),L['on'](t(0x23c),()=>console[t(0x1c0)](t(0x1d0))),yield L['start']();}else{const y=Object['assign'](Object['assign']({},i),{'endTime':n,'direction':f}),M=yield g['logs'][t(0x1ff)](p,y,X);if(M[t(0x21f)])(0x0,utils_1[t(0x21f)])(t(0x1da)+M[t(0x21f)]['message']);else x(M[t(0x210)]);}}));}}function a10X(){const U=['format','Error\x20while\x20fetching\x20log\x20lines:\x20','logsApiClient','charAt','--container\x20--containerId\x20[containerId]','getCommand','--project\x20--projectId\x20[projectId]','getLogsCommand','runId','askForJob','all\x20containers','--textNotIncludes\x20<text>','930076zHwtHL','\x20seconds','4764jVfmCS','-d,\x20--direction\x20<order>','toISOString','printResponse','\x20of\x20','jobId','Error\x20while\x20tailing\x20log\x20lines:\x20','formatLogLine','yaml','tail','build-','bold',',\x20from:\x20','logTail','message','./log-formatter','parseDateInput','131046ZtyWLm','logs-received','-l,\x20--lineLimit\x20[limit]','conflicts','getCurrentServiceName','getCurrentProjectName','@northflank/js-client','logRange','6508974btOSJJ','askForService','name','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','with\x20live-tailing\x20','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','forward','ApiClient','\x20to\x20get\x20logs\x20from','Id\x20[','1768660ZsmWzX','values','addonId','\x20--','getStandardLogCommand','choices','data','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','getFormatter','textIncludes','--regexIncludes\x20<regex>','action','inquirerHelper','apiClient','regexIncludes','1076wDsCUd','defineProperty',',\x20duration:\x20','CliLogs','askForProject','then','error','noDefaults','service','tsHint','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','Filter\x20log\x20lines\x20to\x20include\x20this\x20text',',\x20to:\x20','256984MpuopL','304JBVPQF','assertContextExisting','regexNotIncludes','--build\x20--buildId\x20[buildId]','730IDpViM','__esModule','default','\x20in\x20project\x20','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','--textIncludes\x20<text>','--endTime\x20<timestamp>','askForBuild','-f,\x20--tail','forEach','apiContext','askForContainer','Number\x20of\x20lines\x20to\x20return.','__awaiter','next','-o,\x20--output\x20[output]','close','container\x20','--duration\x20[duration]','value','askForJobRun','addOption','serviceId','alias','--startTime\x20<timestamp>','description','option','log','backward','json','customUserAgent','57969XLbeUb','--regexNotIncludes\x20<regex>','--noDefaults','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','job','askForAddon','printInitInfo','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','chalk','textNotIncludes','Get\x20log\x20for\x20the\x20specified\x20','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','Log\x20session\x20ended','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','Option','addon','containerId','../inquirer-helper','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','toUpperCase','__importDefault'];a10X=function(){return U;};return a10X();}exports[a10Z(0x21c)]=CliLogs;
1
+ 'use strict';const a10o=a10h;function a10h(w,h){const G=a10w();return a10h=function(P,v){P=P-0x6b;let O=G[P];return O;},a10h(w,h);}(function(w,h){const R=a10h,G=w();while(!![]){try{const P=-parseInt(R(0x6f))/0x1+-parseInt(R(0xa1))/0x2*(parseInt(R(0x8a))/0x3)+-parseInt(R(0xfa))/0x4+-parseInt(R(0x75))/0x5*(parseInt(R(0xd5))/0x6)+parseInt(R(0x7a))/0x7*(-parseInt(R(0xc1))/0x8)+-parseInt(R(0xa9))/0x9+parseInt(R(0xe0))/0xa*(parseInt(R(0x6e))/0xb);if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a10w,0x8b00e));function a10w(){const wh=['yaml','service','bold','warning','jobId','close','forward','__importDefault','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','tail','getLogsCommand','ApiClient','Option','Backup\x20to\x20get\x20logs\x20from','Restore\x20to\x20get\x20logs\x20from','askForContainer','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','--restore\x20--restoreId\x20[restoreId]','58120KsupQr','log','getSeconds','--textIncludes\x20<text>','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','getFormatter','Project\x20for\x20logs','data','textNotIncludes','--project\x20--projectId\x20[projectId]','../utils','Number\x20of\x20lines\x20to\x20return.','json','yml','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','addonId','assertContextExisting','logsApiClient','\x27Ctrl+C\x27','logs-received','102wzlXIf','backupId',',\x20backup\x20id\x20','forEach','askForProject','defaultDurationSeconds','./log-formatter','--regexNotIncludes\x20<regex>','valueOf','--regexIncludes\x20<regex>','@northflank/js-client','480KEvlqz','Id]','Build\x20to\x20get\x20logs\x20from','assign','textIncludes','chalk','toUpperCase','--run\x20--runId\x20[runId]','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','\x20for\x20all\x20containers','then','option','regexIncludes','\x20of\x20','backward','Error\x20while\x20fetching\x20log\x20lines:\x20','askForAddon','setSeconds',',\x20duration:\x20','Log\x20session\x20ended','logTail','../formatting/console-format-helpers','askForAddonBackup','start','printInitInfo','error','4180080FBLQAo','askForService','tsHint','cursor','InquirerHelper','containerId','-l,\x20--lineLimit\x20[limit]','default','regexNotIncludes','1229822axHbKp','645539qfandf','Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20','serviceId','__esModule','Get\x20log\x20for\x20the\x20specified\x20','--backup\x20--backupId\x20[backupId]','199025zHwSvg','--container\x20--containerId\x20[containerId]','charAt','getCurrentServiceName','formatLogLine','385vtgEeT','askForBuild','conflicts','choices','inquirerHelper','addOption','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','CliLogs','length','--noDefaults','--textNotIncludes\x20<text>','toISOString','restoreId','getStandardLogCommand',',\x20from:\x20','details','213oNHbAk','customUserAgent','action','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','format','name','slice','next','\x20in\x20project\x20','logs','--duration\x20[duration]','apiContext','pagination','Error\x20while\x20tailing\x20log\x20lines:\x20','message','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','apiClient','askForAddonRestore','getCurrentProjectName','value','values','job','getCommand','26998BlCfJA','alias',',\x20to:\x20','-f,\x20--tail','parseDateInput','argParser','\x20seconds','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','9647010KZQTGL','\x20--','stringify','../inquirer-helper','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','--startTime\x20<timestamp>'];a10w=function(){return wh;};return a10w();}var __awaiter=this&&this['__awaiter']||function(w,h,G,v){function O(Z){return Z instanceof G?Z:new G(function(a){a(Z);});}return new(G||(G=Promise))(function(Z,a){const F=a10h;function l(A){const N=a10h;try{U(v[N(0x91)](A));}catch(D){a(D);}}function B(A){try{U(v['throw'](A));}catch(D){a(D);}}function U(A){const z=a10h;A['done']?Z(A[z(0x9d)]):O(A['value'])[z(0xea)](l,B);}U((v=v['apply'](w,h||[]))[F(0x91)]());});},__importDefault=this&&this[a10o(0xb6)]||function(w){const L=a10o;return w&&w[L(0x72)]?w:{'default':w};};Object['defineProperty'](exports,a10o(0x72),{'value':!![]}),exports[a10o(0x81)]=void 0x0;const js_client_1=require(a10o(0xdf)),chalk_1=__importDefault(require(a10o(0xe5))),utils_1=require(a10o(0xcb)),inquirer_helper_1=require(a10o(0xac)),commander_1=require('commander'),console_format_helpers_1=require(a10o(0xf5)),log_formatter_1=require(a10o(0xdb));class CliLogs{constructor(w){const d=a10o;this[d(0x95)]=w,this[d(0xda)]=0x708,this[d(0x87)]=(h,G,P,v)=>{const w0=d,O=(0x0,utils_1[w0(0xa0)])(!![])[w0(0x8f)]((G?'build-':'')+w0(0x93))[w0(0xa2)]((G?'build-':'')+w0(0xc2))['description'](w0(0x73)+h)[w0(0xeb)](w0(0xca),w0(0xc7))['option']('--'+h+w0(0xaa)+h+'Id\x20['+h+w0(0xe1),h[w0(0x77)](0x0)[w0(0xe6)]()+h[w0(0x90)](0x1)+'\x20to\x20get\x20logs\x20from')[w0(0xeb)](w0(0x76),w0(0x8d));if(G)O[w0(0xeb)]('--build\x20--buildId\x20[buildId]',w0(0xe2));if(h==='job')O['option'](w0(0xe7),'Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0');if(P)O[w0(0xeb)](w0(0x74),w0(0xbc));if(v)O[w0(0xeb)](w0(0xc0),w0(0xbd));return O['option'](w0(0xa4),'Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.')[w0(0xeb)](w0(0x6b),w0(0xcc))[w0(0xeb)](w0(0xae),'Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1['tsHint'],utils_1[w0(0xa5)])['addOption'](new commander_1[(w0(0xbb))]('--endTime\x20<timestamp>',w0(0xe8)+utils_1[w0(0xfc)])[w0(0xa6)](utils_1[w0(0xa5)])[w0(0x7c)](['tail']))[w0(0xeb)](w0(0x94),w0(0xa8))[w0(0x7f)](new commander_1[(w0(0xbb))]('-d,\x20--direction\x20<order>',w0(0xad))[w0(0x7d)]([w0(0xee),w0(0xb5)])[w0(0x7c)]([w0(0xb8)]))[w0(0x7f)](new commander_1[(w0(0xbb))](w0(0xc4),w0(0xbf))['conflicts']([w0(0xc9),'regexIncludes',w0(0x6d)]))[w0(0x7f)](new commander_1[(w0(0xbb))](w0(0x84),w0(0xcf))['conflicts']([w0(0xe4),w0(0xec),w0(0x6d)]))[w0(0x7f)](new commander_1[(w0(0xbb))](w0(0xde),w0(0x80))[w0(0x7c)]([w0(0xc9),'textIncludes',w0(0x6d)]))[w0(0x7f)](new commander_1[(w0(0xbb))](w0(0xdc),'Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression')[w0(0x7c)]([w0(0xc9),w0(0xec),w0(0xe4)]))[w0(0xeb)](w0(0x83),w0(0xb7),![])[w0(0x7f)](new commander_1[(w0(0xbb))]('-o,\x20--output\x20[output]',w0(0x99))['choices'](Object[w0(0x9e)]([w0(0x8e),w0(0xcd),w0(0xaf)]))),O;},this[d(0xf8)]=(h,G,P,v)=>{const w1=d,{containerName:O,restoreId:Z,backupId:a,quiet:l,tail:B,startTime:U,endTime:A,duration:D}=v;if(l===!![])return;const p=B?'\x20(exit\x20with\x20'+chalk_1[w1(0x6c)][w1(0xb1)](w1(0xd3))+')':'',s=B?'\x20with\x20live-tailing':'',W=new Date(),X=U!==null&&U!==void 0x0?U:new Date(new Date((A!==null&&A!==void 0x0?A:W)[w1(0xdd)]())[w1(0xf1)]((A!==null&&A!==void 0x0?A:W)[w1(0xc3)]()-(D!==null&&D!==void 0x0?D:this[w1(0xda)]))),T=(A!==null&&A!==void 0x0?A:U!==undefined)?new Date(new Date(U[w1(0xdd)]())['setSeconds'](U[w1(0xc3)]()+(D!==null&&D!==void 0x0?D:this[w1(0xda)]))):W,I=a!==undefined,k=X&&!I?w1(0x88)+chalk_1['default'][w1(0xb1)](X['toISOString']()):'',Y=T&&!I?w1(0xa3)+chalk_1['default'][w1(0xb1)](T[w1(0x85)]()):'',x=D?w1(0xf2)+D+w1(0xa7):'',b=O?'\x20for\x20container\x20'+chalk_1['default'][w1(0xb1)](O):I?'':w1(0xe9),q=a?w1(0xd7)+a:'',f=Z?',\x20restore\x20id\x20'+Z:'',e=h+'\x20'+chalk_1['default'][w1(0xb1)](G)+q+f+w1(0x92)+chalk_1['default']['bold'](P),i=''+k+Y+x;console[w1(0xc2)]('>\x20Container\x20logs'+s+b+w1(0xed)+e+i+p+':');},this[d(0xc6)]=(h,G)=>(P,v)=>{const w2=d;if(!h){if(P[w2(0x82)]===0x0)console['log']('No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.');P[w2(0xd8)](O=>(0x0,log_formatter_1[w2(0x79)])(O,G));}else(0x0,console_format_helpers_1['printResponse'])(h,P);(v===null||v===void 0x0?void 0x0:v['hasNextPage'])&&(0x0,utils_1[w2(0xb2)])(w2(0x70)+v[w2(0xfd)]);},this[d(0x9a)]=new js_client_1[(d(0xba))](w,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[d(0x8b)]}),this[d(0xd2)]=this[d(0x9a)],this[d(0x7e)]=new inquirer_helper_1[(d(0xfe))](this[d(0x9a)]);}[a10o(0xb9)](w,h=![],G=![],P=![]){const w9=a10o,v=(U,A)=>__awaiter(this,void 0x0,void 0x0,function*(){const w3=a10h,D=A['noDefaults'],{apiContext:p,inquirerHelper:s}=this;switch(w){case'service':{const W=D?undefined:p[w3(0x78)]();return A[w3(0x71)]||W||(yield s[w3(0xfb)](U)());}case w3(0x9f):{const X=D?undefined:p['getCurrentJobName']();return A[w3(0xb3)]||X||(yield s['askForJob'](U)());}case'addon':{return A[w3(0xd0)]||(yield s[w3(0xf0)](U)());}}}),O=(U,A,D)=>__awaiter(this,void 0x0,void 0x0,function*(){const w4=a10h;if(h)return D['buildId']||(yield this['inquirerHelper'][w4(0x7b)](U,w===w4(0xb0)?A:undefined,w===w4(0x9f)?A:undefined,!![])());return undefined;}),Z=(U,A,D)=>__awaiter(this,void 0x0,void 0x0,function*(){const w5=a10h;if(G||P)return D[w5(0xd6)]||(yield this[w5(0x7e)][w5(0xf6)](U,A)());return undefined;}),a=(U,A,D,p)=>__awaiter(this,void 0x0,void 0x0,function*(){const w6=a10h;if(P)return p[w6(0x86)]||(yield this['inquirerHelper'][w6(0x9b)](U,A,D)());return undefined;}),l=(U,A,D)=>__awaiter(this,void 0x0,void 0x0,function*(){const w7=a10h;if(!h&&D[w7(0xff)]!==undefined){if(D[w7(0xff)]!==!![])return D[w7(0xff)];return yield this[w7(0x7e)][w7(0xbe)](U,w===w7(0xb0)?A:undefined,w===w7(0x9f)?A:undefined,!![])();}return undefined;}),B=(U,A,D)=>__awaiter(this,void 0x0,void 0x0,function*(){const w8=a10h;if(w==='job')return D['runId']||(yield this[w8(0x7e)]['askForJobRun'](A,U,!![])());return undefined;});return this[w9(0x87)](w,h,G,P)[w9(0x8c)](U=>__awaiter(this,void 0x0,void 0x0,function*(){const ww=w9,{noDefaults:A,projectId:D,quiet:p,tail:s,textIncludes:W,textNotIncludes:X,regexIncludes:T,regexNotIncludes:I,direction:k,lineLimit:Y,startTime:x,endTime:b,duration:q,output:f}=U;(0x0,utils_1[ww(0xd1)])(this['apiClient']);const {apiContext:e,inquirerHelper:i,logsApiClient:u}=this,t=A?undefined:e[ww(0x9c)](),S=D||t||(yield i[ww(0xd9)]()),V=yield v(S,U),C=yield O(S,V,U),M=yield Z(S,V,U),Q=yield a(S,V,M,U),H=yield B(S,V,U),n=yield l(S,V,U);if(x&&b&&q)throw new Error(ww(0xc5));const c={'projectId':S,'entityId':V},r={'containerName':n,'textIncludes':W,'textNotIncludes':X,'regexIncludes':T,'regexNotIncludes':I,'lineLimit':Y,'startTime':x,'duration':q,'runId':H,'buildId':C,'backupId':M,'restoreId':Q,'isBuild':h!==null&&h!==void 0x0?h:![]},j=P?'addonRestore':G?'addonBackup':w,m=Object[ww(0xe3)](Object[ww(0xe3)]({},r),{'endTime':b,'direction':k});if(!p&&f!==ww(0xaf)&&f!==ww(0xce)&&f!==ww(0xcd))this[ww(0xf8)](w,V,S,Object['assign'](Object[ww(0xe3)]({},m),U));const y=this[ww(0xc6)](f,W!==null&&W!==void 0x0?W:T);if(s){const E=yield u['logs'][ww(0xf4)](c,r,j);E['on'](ww(0xd4),y),E['on'](ww(0xf9),K=>(0x0,utils_1['error'])(ww(0x97)+K[ww(0x98)])),E['on'](ww(0xb4),()=>console['log'](ww(0xf3))),yield E[ww(0xf7)]();}else{const K=yield u[ww(0x93)]['logRange'](c,m,j);if(K[ww(0xf9)]){const g=K[ww(0xf9)][ww(0x89)],J=g?'\x0aDetails:\x20'+JSON[ww(0xab)](g,null,'\x20'):'';(0x0,utils_1[ww(0xf9)])(ww(0xef)+K[ww(0xf9)]['message']+J);}else y(K[ww(0xc8)],K[ww(0x96)]);}}));}}exports[a10o(0x81)]=CliLogs;
@@ -1 +1 @@
1
- 'use strict';const a11A=a11V;(function(X,V){const E=a11V,h=X();while(!![]){try{const Q=parseInt(E(0xec))/0x1+parseInt(E(0xe6))/0x2*(-parseInt(E(0xe9))/0x3)+-parseInt(E(0xef))/0x4*(-parseInt(E(0xea))/0x5)+parseInt(E(0xed))/0x6+parseInt(E(0xe7))/0x7*(parseInt(E(0xe8))/0x8)+parseInt(E(0xe2))/0x9*(-parseInt(E(0xdd))/0xa)+-parseInt(E(0xdc))/0xb;if(Q===V)break;else h['push'](h['shift']());}catch(J){h['push'](h['shift']());}}}(a11X,0x89066));function a11X(){const K=['toISOString','formatLogLine','green','log','red','9354664rhqler','4041740ZOQqsc','__esModule','bold','blue','default','9bXAhYf','grey','pattern','defaultLogSyntax','2sTEVQW','28MrgZld','168528OwXLSe','1441023upBXRA','90KUdiru','containerId','745407IGcmfS','5710008xAkERd','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','114412EJisef'];a11X=function(){return K;};return a11X();}var __importDefault=this&&this['__importDefault']||function(X){return X&&X['__esModule']?X:{'default':X};};Object['defineProperty'](exports,a11A(0xde),{'value':!![]}),exports[a11A(0xf1)]=exports[a11A(0xe5)]=void 0x0;const chalk_1=__importDefault(require('chalk'));exports[a11A(0xe5)]=[{'color':a11A(0xe3),'pattern':/\[[0-9]{1,2}\/[a-z]{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4}\]/i},{'color':'grey','pattern':/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?Z/i},{'color':a11A(0xe3),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11A(0xe3),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11A(0xdf),'pattern':new RegExp(a11A(0xee),'i')},{'color':'green','pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11A(0xf2),'pattern':/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/},{'color':'blue','pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':'greenBright','pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11A(0xf4),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':'gray','pattern':/\b(information|info|debug)\b/i},{'color':'yellow','pattern':/\b(warning|warn)\b/i},{'color':a11A(0xe0),'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}];function a11V(X,V){const h=a11X();return a11V=function(Q,J){Q=Q-0xdc;let G=h[Q];return G;},a11V(X,V);}const formatLogLine=(X,V)=>{const P=a11A,h=chalk_1[P(0xe1)]['dim'](X['ts'][P(0xf0)]()),Q=chalk_1[P(0xe1)]['cyan'](X[P(0xeb)]),J=exports[P(0xe5)]['reduce']((I,T)=>{const D=P;return I['replace'](T[D(0xe4)],W=>T['color']?chalk_1['default'][T['color']](W):chalk_1[D(0xe1)][D(0xe3)](W));},X[P(0xf3)]),G=V?J['replace'](new RegExp(V,'g'),I=>chalk_1[P(0xe1)]['bold'](I)):J;console[P(0xf3)](h+'\x20'+Q+'\x20--\x20'+G);};exports[a11A(0xf1)]=formatLogLine;
1
+ 'use strict';function a11w(){const X=['pattern','red','gray','chalk','log','3966684vQZBcU','replace','yellow','blue','547906oSaHql','294042OWMpkF','color','bold','__esModule','336nccMWW','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','\x20--\x20','1230eoZwGz','__importDefault','2392rfCTEP','defineProperty','grey','reduce','cyan','9225DNPsXQ','green','8178255mBBbdq','toISOString','defaultLogSyntax','default','containerId','5886668ogdziy','formatLogLine'];a11w=function(){return X;};return a11w();}const a11D=a11h;(function(w,h){const A=a11h,G=w();while(!![]){try{const P=-parseInt(A(0x16b))/0x1+parseInt(A(0x16a))/0x2+parseInt(A(0x166))/0x3+parseInt(A(0x15f))/0x4+-parseInt(A(0x15a))/0x5+-parseInt(A(0x151))/0x6*(parseInt(A(0x16f))/0x7)+-parseInt(A(0x153))/0x8*(parseInt(A(0x158))/0x9);if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a11w,0xc8a50));function a11h(w,h){const G=a11w();return a11h=function(P,v){P=P-0x150;let O=G[P];return O;},a11h(w,h);}var __importDefault=this&&this[a11D(0x152)]||function(w){const p=a11D;return w&&w[p(0x16e)]?w:{'default':w};};Object[a11D(0x154)](exports,a11D(0x16e),{'value':!![]}),exports[a11D(0x160)]=exports['defaultLogSyntax']=void 0x0;const chalk_1=__importDefault(require(a11D(0x164)));exports['defaultLogSyntax']=[{'color':a11D(0x155),'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':a11D(0x155),'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':a11D(0x155),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11D(0x155),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11D(0x16d),'pattern':new RegExp(a11D(0x170),'i')},{'color':a11D(0x159),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':'green','pattern':/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/},{'color':a11D(0x169),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':'greenBright','pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11D(0x162),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11D(0x163),'pattern':/\b(information|info|debug)\b/i},{'color':a11D(0x168),'pattern':/\b(warning|warn)\b/i},{'color':a11D(0x169),'pattern':/[0-9a-f]{64}/i},{'color':a11D(0x169),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(w,h)=>{const s=a11D,G=chalk_1[s(0x15d)][s(0x171)](w['ts'][s(0x15b)]()),P=chalk_1[s(0x15d)][s(0x157)](w[s(0x15e)]),v=exports[s(0x15c)][s(0x156)]((Z,B)=>{const W=s;return Z[W(0x167)](B[W(0x161)],U=>B['color']?chalk_1[W(0x15d)][B[W(0x16c)]](U):chalk_1['default'][W(0x155)](U));},w[s(0x165)]),O=h?v[s(0x167)](new RegExp(h,'g'),Z=>chalk_1['default'][s(0x16d)](Z)):v;console[s(0x165)](G+'\x20'+P+s(0x150)+O);};exports[a11D(0x160)]=formatLogLine;