@maka/maka-cli 4.1.5 → 4.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/command.js +1 -1
  2. package/dist/commands/_index.js +1 -1
  3. package/dist/commands/aws/_index.js +1 -1
  4. package/dist/commands/aws/aws.command.js +1 -1
  5. package/dist/commands/aws/ci.sub.cmd.js +1 -1
  6. package/dist/commands/aws/ckp.sub.cmd.js +1 -1
  7. package/dist/commands/aws/csg.sub.cmd.js +1 -1
  8. package/dist/commands/aws/di.sub.cmd.js +1 -1
  9. package/dist/commands/aws/dks.sub.cmd.js +1 -1
  10. package/dist/commands/aws/rbi.sub.cmd.js +1 -1
  11. package/dist/commands/aws/sth.sub.cmd.js +1 -1
  12. package/dist/commands/aws/ti.sub.cmd.js +1 -1
  13. package/dist/commands/build/_index.js +1 -1
  14. package/dist/commands/build/build.js +1 -1
  15. package/dist/commands/build/docker.sub.cmd.js +1 -1
  16. package/dist/commands/create.js +1 -1
  17. package/dist/commands/debug.js +1 -1
  18. package/dist/commands/deploy.js +1 -1
  19. package/dist/commands/game/_index.js +1 -1
  20. package/dist/commands/game/battleship.sub.cmd.js +1 -1
  21. package/dist/commands/game/play.command.js +1 -1
  22. package/dist/commands/game/pong.sub.cmd.js +1 -1
  23. package/dist/commands/game/snake.sub.cmd.js +1 -1
  24. package/dist/commands/game/tetris.sub.cmd.js +1 -1
  25. package/dist/commands/generate.js +1 -1
  26. package/dist/commands/get/_index.js +1 -1
  27. package/dist/commands/get/get.command.js +1 -1
  28. package/dist/commands/get/global.sub.cmd.js +1 -1
  29. package/dist/commands/get/local.sub.cmd.js +1 -1
  30. package/dist/commands/help.js +1 -1
  31. package/dist/commands/install.js +1 -1
  32. package/dist/commands/jsdoc.js +1 -1
  33. package/dist/commands/login.js +1 -1
  34. package/dist/commands/logout.js +1 -1
  35. package/dist/commands/logs.js +1 -1
  36. package/dist/commands/maka.cmd.js +1 -1
  37. package/dist/commands/murder.js +1 -1
  38. package/dist/commands/reconfig.js +1 -1
  39. package/dist/commands/run.js +1 -1
  40. package/dist/commands/set/_index.js +1 -1
  41. package/dist/commands/set/global.sub.cmd.js +1 -1
  42. package/dist/commands/set/local.sub.cmd.js +1 -1
  43. package/dist/commands/set/set.command.js +1 -1
  44. package/dist/commands/ssh.js +1 -1
  45. package/dist/commands/ssl.js +1 -1
  46. package/dist/commands/test.js +1 -1
  47. package/dist/commands/version.js +1 -1
  48. package/dist/error.js +1 -1
  49. package/dist/generator.js +1 -1
  50. package/dist/generators/_index.js +1 -1
  51. package/dist/generators/api.js +1 -1
  52. package/dist/generators/collection.js +1 -1
  53. package/dist/generators/component.js +1 -1
  54. package/dist/generators/config.js +1 -1
  55. package/dist/generators/dbc.js +1 -1
  56. package/dist/generators/dockerfile.js +1 -1
  57. package/dist/generators/hook.js +1 -1
  58. package/dist/generators/kit.js +1 -1
  59. package/dist/generators/layout.js +1 -1
  60. package/dist/generators/maka.gen.js +1 -1
  61. package/dist/generators/methods.js +1 -1
  62. package/dist/generators/package.js +1 -1
  63. package/dist/generators/page.js +1 -1
  64. package/dist/generators/publish.js +1 -1
  65. package/dist/generators/route.js +1 -1
  66. package/dist/generators/scaffold.js +1 -1
  67. package/dist/generators/service.js +1 -1
  68. package/dist/generators/services/_index.js +1 -1
  69. package/dist/generators/services/translation.js +1 -1
  70. package/dist/maka.js +2 -2
  71. package/dist/templates/react/hook/hook.js.jsx +1 -1
  72. package/dist/templates/react/hook/hook.js.tsx +1 -1
  73. package/dist/templates/react/test/test.js.jsx +12 -27
  74. package/dist/templates/react/test/test.js.tsx +12 -27
  75. package/dist/tool.js +1 -1
  76. package/dist/tools/actions/actions.class.js +1 -1
  77. package/dist/tools/actions/actions.test.js +1 -1
  78. package/dist/tools/aws/aws.class.js +1 -1
  79. package/dist/tools/aws/aws.interfaces.js +1 -1
  80. package/dist/tools/docker/docker.class.js +1 -1
  81. package/dist/tools/docker/docker.interfaces.js +1 -1
  82. package/dist/tools/fsi/fsi.class.js +1 -1
  83. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  84. package/dist/tools/https/https.class.js +1 -1
  85. package/dist/tools/https/https.interface.js +1 -1
  86. package/dist/tools/log/log.class.js +1 -1
  87. package/dist/tools/log/log.interfaces.js +1 -1
  88. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  89. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  90. package/dist/tools/ssh/ssh.class.js +1 -1
  91. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  92. package/dist/tools/ssl/ssl.class.js +1 -1
  93. package/package.json +1 -1
package/dist/command.js CHANGED
@@ -1 +1 @@
1
- const a0W=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0xf0))/0x1+parseInt(N(0x152))/0x2*(parseInt(N(0x15f))/0x3)+-parseInt(N(0x127))/0x4+-parseInt(N(0x131))/0x5+parseInt(N(0xfd))/0x6+-parseInt(N(0x111))/0x7*(parseInt(N(0x163))/0x8)+-parseInt(N(0x162))/0x9*(-parseInt(N(0xe7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xab1fc));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(c){if('CHLhG'===O(0x16f)){const e=c['apply'](b,arguments);return c=null,e;}else return this['options'][O(0x105)]||O(0x12c);}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a['toString']()[P(0x172)](P(0x13b))['toString']()[P(0x158)](a0a)[P(0x172)](P(0x13b));});a0a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const Q=a0d;'MehWf'===Q(0xfb)?(f[Q(0x154)](Q(0x112)),g[Q(0x108)](h,i,j)):g(f);});}return new(c||(c=Promise))(function(f,g){const U=a0d;function h(k){const R=a0d;try{j(d['next'](k));}catch(l){if(R(0x16d)===R(0x16d))g(l);else{d[R(0x154)]('Missing\x20required\x20option:\x20'+l);throw new f();}}}function i(k){const S=a0d;if(S(0x159)===S(0xea))c[S(0x11e)](0x0,0x0,d);else try{if(S(0x134)===S(0x104)){let n=f===null||g===void 0x0?void 0x0:h['split'](':');if(n)return k=n[0x0],this[S(0xff)](l);else return;}else j(d[S(0x166)](k));}catch(n){g(n);}}function j(k){const T=a0d;if(T(0x116)===T(0x116))k['done']?f(k['value']):e(k[T(0x16b)])['then'](h,i);else{c[T(0x154)](T(0x110));throw new d();}}j((d=d[U(0xf6)](a,b||[]))[U(0x12e)]());});};import a0I from'path';import a0J from'os';function a0c(){const ai=['includes','mustBeInMakaProject','sort','value','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','sADAO','run','CHLhG','Local','DjfZc','search','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Command\x20requires\x20a\x20handler\x20function','Name','_commands','90TIVzho','trialActive','To\x20use\x20this\x20command,\x20\x22','OyrLx','parent','murder','jdqbf','AppData','validateMeteorInstall','593760XULbfO','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','call','function','proFlags','zBqFy','apply','roles','erbho','iesGq','examples','yiuMk','PrXmf','8302632lwIGlx','RmsRS','findCommand','.meteor','proCommands','ylPxj','Lfnyx','ptbMq','aliases','rQkvH','notice','usage','Missing\x20required\x20options\x20','validateMakaSubscription','jQZFM','iBinr','singleLicense','runSubCommand','validateParams','Too\x20many\x20options','3238697fRGhrQ','There\x20is\x20no\x20Meteor\x20application\x20here','assign','push','name','UKmeE','split','concat','MQjhf','CjcBf','Command\x20requires\x20a\x20name','validateMakaProject','tableList','splice','domainLicense','rrmUf','PFwFh','ArJOB','Command\x20not\x20found','mfoXZ','qHAJc','length','3437936KbEyvI','find','forEach','filter','exit','No\x20aliases','To\x20use\x20these\x20pro\x20flags,\x20\x22','next','RdDJz','Missing\x20required\x20option:\x20','4528240ojzuGP','TvnVG','toString','ORCrS','Too\x20few\x20arguments','fHuAP','lRqYc','create','options','uKHdY','(((.+)+)+)+$','join','fsi','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','game','Too\x20many\x20arguments','KyzOP','existsSync','Invalid\x20options:\x20','getPro','Please\x20run\x20\x22maka\x20install\x20meteor\x22','WJHum','Description','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','Trial\x20License\x20Expires:\x20','maxArgLength','gPbOf','match','Command.create\x20requires\x20a\x20handler\x20function!','description','number','cvceX','minOptsLength','2HdgxQq','keys','error','FjYno','addCommand','UDiMj','constructor','iLyjL','RJrPl','maxOptsLength','CngSh','help','minArgLength','1013721KAzxBp','KHvDb','_handler','1075959pnIJDJ','16GebXBe','invoke','platform','throw','win32'];a0c=function(){return ai;};return a0c();}import a0K from'fs';const homeDir=a0J['homedir']();import a0L from'cli-table';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xe6;let f=c[d];return f;},a0d(a,b);}import a0M from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const V=a0d;super();if(!a){if(V(0x10c)!==V(0xfc))throw new Error(V(0x173));else{c[V(0x154)](V(0x140));throw new d();}}if(!a[V(0x115)])throw new Error(V(0x11b));if(typeof b!==V(0xf3))throw new Error(V(0x174));this[V(0x139)]=Object[V(0x113)]({},a),this[V(0x115)]=this[V(0x139)][V(0x115)],this[V(0xe6)]=[],this[V(0x161)]=b['bind'](this);}static[a0W(0x138)](a,b,c){const X=a0W;var d;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(X(0x14d));let e=new Command(a,b);return c=c||a0M,Object[X(0x113)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x139)])===null||d===void 0x0?void 0x0:d[X(0x115)]}),c[X(0x156)](e),e;}[a0W(0x14c)](a){const Y=a0W;let b=[this[Y(0x115)]][Y(0x118)](this[Y(0x139)]['aliases']||[]);return this['parent']&&b[Y(0x114)](this[Y(0xeb)]),b[Y(0x168)](a);}[a0W(0x156)](a){const Z=a0W;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[Z(0xe6)][Z(0x114)](a);}[a0W(0x11c)](){const a0=a0W,a=this[a0(0x13d)]['findProjectDirectory']();return a!==![]?!![]:![];}['validateMeteorInstall'](){const a1=a0W;let a=a0I[a1(0x13c)](homeDir,a1(0x100));const b=process[a1(0x165)]===a1(0x167);if(b){if(a1(0x155)!==a1(0x121)){a=a0I[a1(0x13c)](homeDir,a1(0xee),a1(0x170),'.meteor');if(!a0K[a1(0x142)](a)){if(a1(0x15a)!==a1(0x15a)){let d=[this[a1(0x115)]][a1(0x118)](this[a1(0x139)][a1(0x105)]||[]);return this['parent']&&d[a1(0x114)](this[a1(0xeb)]),d[a1(0x168)](b);}else return![];}}else{if(i['length']===0x0){q[a1(0x154)](a1(0x109)+r['join'](',\x20'));throw new s();}m['forEach'](z=>{const a2=a1;if(!t['includes'](z)){w[a2(0x154)]('Missing\x20required\x20option:\x20'+z);throw new x();}});}}else{if(!a0K[a1(0x142)](a)){if('hCKbp'===a1(0x124))c(d);else return![];}}return!![];}[a0W(0x10a)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a3=a0d;if('aDRLz'===a3(0xf5))throw new b(a3(0x173));else try{if(a3(0x12f)!==a3(0x12f))return![];else{const f=this[a3(0xff)](a[0x0]);if(f){if(a3(0x171)===a3(0x102))throw new b(a3(0x14d));else{const h=(f===null||f===void 0x0?void 0x0:f[a3(0x115)])||a[0x0],i=(f===null||f===void 0x0?void 0x0:f[a3(0xeb)])||'',j=a[0x0],k=Object[a3(0x153)](b),l=yield this[a3(0x13d)]['getPro']();!l&&(Log[a3(0x154)](a3(0xf1)),process['exit'](0x1));const m=(l===null||l===void 0x0?void 0x0:l[a3(0x101)][a3(0x168)](h))||(l===null||l===void 0x0?void 0x0:l[a3(0x101)][a3(0x168)](i)),n=!(l===null||l===void 0x0?void 0x0:l['roles'][a3(0x168)](a3(0x10d)))&&!(l===null||l===void 0x0?void 0x0:l[a3(0xf7)][a3(0x168)](a3(0x11f)))&&!(l===null||l===void 0x0?void 0x0:l[a3(0xe8)]);if(m&&n)throw a3(0xe9)+a[0x0]+a3(0x13e);if(k['length']>0x0){if(a3(0x13a)===a3(0x15c)){d[a3(0x154)](a3(0x109)+e['join'](',\x20'));throw new f();}else{const p=l===null||l===void 0x0?void 0x0:l[a3(0xf4)][a3(0x12a)](q=>k[a3(0x168)](q));if(p&&p[a3(0x126)]>0x0&&n){if(a3(0x136)===a3(0x136))throw a3(0x12d)+(p===null||p===void 0x0?void 0x0:p[a3(0x13c)](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';else g[a3(0x154)](a3(0x16c)),h['notice'](a3(0x145)),i[a3(0x108)](j,k,l);}}}if(j==='deploy'){if(a3(0x132)!=='GoZYi'){const r=yield this['fsi'][a3(0x144)](),s=r===null||r===void 0x0?void 0x0:r[a3(0x101)][a3(0x168)](a[0x0]+'\x20'+a[0x1]);if(s&&n){if(a3(0x103)!==a3(0xed))throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';else return this[a3(0xe6)][a3(0x128)](u=>u['match'](c));}}else throw'To\x20use\x20this\x20command,\x20\x22'+b[0x0]+a3(0x13e);}(l===null||l===void 0x0?void 0x0:l[a3(0xe8)])&&Log[a3(0x107)](a3(0x149)+l['trialExpirationDate'][a3(0x117)]('T')[0x0]);}}}}catch(v){throw v;}});}['validateParams'](a,b,c){const a4=a0W,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a4(0x153)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a4(0x126)])>0x0){if(g[a4(0x126)]===0x0){if(a4(0x122)!==a4(0xfe)){Log['error'](a4(0x109)+requiredOpts[a4(0x13c)](',\x20'));throw new UsageError();}else throw new b(a4(0x174));}requiredOpts['forEach'](i=>{const a5=a4;if(!g[a5(0x168)](i)){if('hlnKy'==='hlnKy'){Log[a5(0x154)](a5(0x130)+i);throw new UsageError();}else throw new b();}});}validOpts=validOpts[a4(0x118)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a4(0x126)])>0x0&&(validOpts[a4(0x114)](a4(0x15d)),g['forEach'](i=>{const a6=a4;if(!validOpts[a6(0x168)](i)){Log[a6(0x154)](a6(0x143)+i);throw new UsageError();}}));}[a0W(0x16e)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;try{if(a7(0x10b)!==a7(0x10b))f[a7(0x154)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'),g['usage'](h,i,j);else{a=a||[],b=b||{};try{if(a7(0x157)==='UDiMj')yield this['validateMakaSubscription'](a,b);else{const f=g?function(){const a8=a7;if(f){const u=q[a8(0xf6)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}}catch(f){Log[a7(0x154)](f),process['exit'](0x0);}yield this[a7(0x164)](a,b);}}catch(g){a7(0x11a)===a7(0x11a)?process['exit'](0x1):(d[a7(0x154)](g),f[a7(0x12b)](0x0));}});}[a0W(0x164)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a9=a0d;if(a9(0x160)!==a9(0x137)){const {usage:usage='',description:description='',examples:examples=[]}=this[a9(0x139)];this[a9(0x10f)](a,b,this[a9(0x139)]);try{if(this[a9(0x139)][a9(0x169)]){const c=this[a9(0x11c)]();if(!c)throw new MustBeInProjectError();}if(this[a9(0x139)]['mustHaveMeteorInstalled']){const d=this[a9(0xef)]();if(!d)throw new NoMeteorFoundError();}if(typeof this[a9(0x139)]['minArgLength']===a9(0x14f)){if(a['length']<this['options'][a9(0x15e)]){Log[a9(0x154)](a9(0x135));throw new UsageError();}}if(typeof this[a9(0x139)][a9(0x14a)]===a9(0x14f)){if(a[a9(0x126)]>=this[a9(0x139)][a9(0x14a)]){Log['error'](a9(0x140));throw new UsageError();}}if(typeof this[a9(0x139)][a9(0x151)]==='number'){if(a9(0x146)!==a9(0x106)){if(Object[a9(0x153)](b)['length']<this[a9(0x139)]['minOptsLength']){if('iesGq'!==a9(0xf9)){if(d[a9(0x126)]>=this['options']['maxArgLength']){g[a9(0x154)]('Too\x20many\x20arguments');throw new h();}}else{Log['error']('Too\x20few\x20options');throw new UsageError();}}}else return![];}if(typeof this[a9(0x139)][a9(0x15b)]===a9(0x14f)){if(Object[a9(0x153)](b)[a9(0x126)]>=this[a9(0x139)][a9(0x15b)]){if(a9(0x119)===a9(0xf8))throw new b(a9(0x11b));else{Log[a9(0x154)]('Too\x20many\x20options');throw new UsageError();}}}if((a[0x0]===_prevCmd||a[a9(0x126)]===0x0)&&b[a9(0x15d)])throw new UsageError();_prevCmd=a[0x0],yield this[a9(0x161)][a9(0xf2)](this,a,b);}catch(i){if(i instanceof UsageError)this[a9(0xe6)][a9(0x126)]>0x0&&b[a9(0x15d)]&&(Log[a9(0x107)]('Commands:'),this[a9(0x11d)](this['_commands'])),Log[a9(0x108)](description,examples,usage);else{if(i instanceof MustBeInProjectError){if(a9(0x14b)!==a9(0x150))Log['error'](a9(0x148)),Log[a9(0x108)](description,examples,usage);else{if(i[a9(0x153)](f)[a9(0x126)]<this['options'][a9(0x151)]){i['error']('Too\x20few\x20options');throw new j();}}}else{if(i instanceof NoMeteorFoundError)Log[a9(0x154)](a9(0x16c)),Log[a9(0x107)](a9(0x145)),Log[a9(0x108)](description,examples,usage);else{if(i instanceof NoMeteorAppFoundError)Log['error']('There\x20is\x20no\x20Meteor\x20application\x20here'),Log[a9(0x108)](description,examples,usage);else throw i;}}}process[a9(0x12b)](0x1);}}else{if(d[a9(0x126)]<this[a9(0x139)][a9(0x15e)]){g[a9(0x154)]('Too\x20few\x20arguments');throw new h();}}});}[a0W(0x11d)](a){const aa=a0W,b=new a0L({});b[aa(0x114)]([aa(0x175),'Alias',aa(0x147)]),a[aa(0x16a)]()[aa(0x129)](c=>{const ab=aa;c[ab(0x115)]!==ab(0xec)&&c[ab(0x115)]!==ab(0x13f)&&b['push']([c[ab(0x115)],c[ab(0x105)](),c['description']()]);}),Log['bright'](b[aa(0x133)]());}['findCommand'](a){const ac=a0W;return this[ac(0xe6)][ac(0x128)](b=>b[ac(0x14c)](a));}['findSubCommand'](a){const ad=a0W;let b=a===null||a===void 0x0?void 0x0:a[ad(0x117)](':');if(b){if(ad(0x125)!==ad(0x125))throw ad(0x123);else return a=b[0x0],this[ad(0xff)](a);}else return;}[a0W(0x10e)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a0d;try{let d=a[ae(0x117)](':');a=d[0x0];let f=d[0x1];f&&b[ae(0x11e)](0x0,0x0,f);let g=this[ae(0xff)](a);if(g){if(ae(0x141)!==ae(0x141)){c[ae(0x154)]('Too\x20few\x20options');throw new d();}else yield g['run'](b,c);}else throw ae(0x123);}catch(i){if(ae(0x120)===ae(0x120))throw Log[ae(0x154)](i);else{if(!f[ae(0x168)](g)){k['error']('Invalid\x20options:\x20'+l);throw new m();}}}});}['description'](){const af=a0W;return this[af(0x139)][af(0x14e)]||'No\x20description\x20provided.';}[a0W(0x108)](){return this['options']['usage']||'No\x20usage\x20provided.';}[a0W(0xfa)](){const ag=a0W;return this[ag(0x139)][ag(0xfa)]||[];}[a0W(0x105)](){const ah=a0W;return this[ah(0x139)]['aliases']||'No\x20aliases';}}
1
+ const a0Q=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0xda))/0x1*(parseInt(N(0xf7))/0x2)+parseInt(N(0xe5))/0x3*(parseInt(N(0xb3))/0x4)+-parseInt(N(0x117))/0x5*(parseInt(N(0xb0))/0x6)+parseInt(N(0xd6))/0x7*(-parseInt(N(0x107))/0x8)+-parseInt(N(0xff))/0x9+parseInt(N(0x10a))/0xa+parseInt(N(0xe9))/0xb*(parseInt(N(0xc5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x28ae0));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(O(0x10f)!==O(0x105)){if(c){const e=c[O(0xa1)](b,arguments);return c=null,e;}}else e['push']([f['name'],g['aliases'](),h[O(0x95)]()]);}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0xc4)]()[P(0xaa)]('(((.+)+)+)+$')['toString']()[P(0x115)](a0a)[P(0xaa)](P(0x112));});a0a();var __awaiter=this&&this[a0Q(0xdb)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const R=a0d;if(R(0xb5)!=='vvdxf'){c[R(0xa0)](R(0xbf));throw new d();}else g(f);});}return new(c||(c=Promise))(function(f,g){const V=a0d;function h(k){const S=a0d;try{j(d[S(0x10d)](k));}catch(l){if(S(0x122)!==S(0xe3))g(l);else return![];}}function i(k){const T=a0d;if(T(0xd8)===T(0xd8))try{j(d[T(0xd2)](k));}catch(l){g(l);}else d(e[T(0x10d)](f));}function j(k){const U=a0d;k[U(0xae)]?f(k[U(0xc7)]):e(k[U(0xc7)])['then'](h,i);}j((d=d[V(0xa1)](a,b||[]))['next']());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0Q(0xfa)]();import a0L from'cli-table';import a0M from'./commands/maka.cmd.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x94;let f=c[d];return f;},a0d(a,b);}function a0c(){const ai=['proFlags','tZojT','minArgLength','nlBQR','_handler','10322iQqkmi','No\x20description\x20provided.','TmbIH','homedir','LMkqu','.meteor','Description','roles','1178505kOaQgf','Yzvlw','No\x20aliases','findCommand','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','notice','MmGFL','RCtZD','424uIFYrW','EdfUf','keys','385620CTksTD','CvmeE','trialExpirationDate','next','Command.create\x20requires\x20a\x20handler\x20function!','DDRVY','Command\x20not\x20found','xdARp','(((.+)+)+)+$','Command\x20requires\x20a\x20name','maxArgLength','constructor','RheML','21815feXsJH','zHoou','validateMakaSubscription','Missing\x20required\x20option:\x20','jhtCC','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','AppData','mustBeInMakaProject','usage','name','tableList','iQdLa','Invalid\x20options:\x20','validateMeteorInstall','description','singleLicense','options','concat','Alias','getPro','splice','includes','forEach','murder','examples','error','apply','Too\x20few\x20arguments','existsSync','addCommand','Missing\x20required\x20options\x20','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','find','exit','igYBB','search','create','XAnwb','Name','done','runSubCommand','438OYZyRX','game','wBMmW','1251620WhuBQm','assign','vvdxf','trialActive','Local','WDjdK','QuxUf','lCfSB','gGkRY','Trial\x20License\x20Expires:\x20','There\x20is\x20no\x20Meteor\x20application\x20here','platform','Too\x20many\x20arguments','parent','match','run','split','toString','170244yqSPtI','jCRwj','value','validateMakaProject','Too\x20many\x20options','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','call','proCommands','filter','Command\x20requires\x20a\x20handler\x20function','ZSuTx','bind','Please\x20run\x20\x22maka\x20install\x20meteor\x22','throw','join','addCommand\x20requires\x20a\x20Command\x20instance','push','17689sFSiqX','findProjectDirectory','WzGHp','bright','3xQljLe','__awaiter','domainLicense','invoke','YHbiT','aliases','_commands','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','maxOptsLength','AoVKn','pKyxM','3vRkrmu','number','hMBvF','Command.create\x20requires\x20some\x20options!','297CfyXDf','length','KpNOe','HdogS','BCzQT','cryAi','sort','help','fsi'];a0c=function(){return ai;};return a0c();}import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const W=a0Q;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name']){if(W(0xa9)===W(0x11b)){let d=[this['name']][W(0x98)](this[W(0x97)][W(0xdf)]||[]);return this['parent']&&d['push'](this['parent']),d['includes'](b);}else throw new Error('Command\x20requires\x20a\x20name');}if(typeof b!=='function')throw new Error(W(0xce));this[W(0x97)]=Object[W(0xb4)]({},a),this[W(0x120)]=this[W(0x97)][W(0x120)],this[W(0xe0)]=[],this[W(0xf6)]=b[W(0xd0)](this);}static[a0Q(0xab)](a,b,c){const X=a0Q;var d;if(!a){if(X(0xde)===X(0x111))f['error'](X(0x11c)),g[X(0x11f)](h,i,j);else throw new Error(X(0xe8));}if(typeof b!=='function')throw new Error(X(0x10e));let e=new Command(a,b);return c=c||a0M,Object[X(0xb4)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x97)])===null||d===void 0x0?void 0x0:d['name']}),c[X(0xa4)](e),e;}[a0Q(0xc1)](a){const Y=a0Q;let b=[this['name']][Y(0x98)](this['options'][Y(0xdf)]||[]);return this[Y(0xc0)]&&b[Y(0xd5)](this[Y(0xc0)]),b[Y(0x9c)](a);}[a0Q(0xa4)](a){const Z=a0Q;if(!(a instanceof Command))throw new Error(Z(0xd4));this['_commands'][Z(0xd5)](a);}[a0Q(0xc8)](){const a0=a0Q,a=this[a0(0xf1)][a0(0xd7)]();return a!==![]?!![]:![];}[a0Q(0x94)](){const a1=a0Q;let a=a0I[a1(0xd3)](homeDir,a1(0xfc));const b=process[a1(0xbe)]==='win32';if(b){if(a1(0xfb)!==a1(0xfb))d(e[a1(0xd2)](f));else{a=a0I[a1(0xd3)](homeDir,a1(0x11d),'Local',a1(0xfc));if(!a0K[a1(0xa3)](a)){if(a1(0x100)==='Yzvlw')return![];else c[a1(0x9b)](0x0,0x0,d);}}}else{if(!a0K[a1(0xa3)](a))return![];}return!![];}[a0Q(0x119)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;if('jeYaj'===a2(0xba))throw c[a2(0xa0)](d);else try{if(a2(0x106)!=='xcbad'){const d=this['findCommand'](a[0x0]);if(d){const f=(d===null||d===void 0x0?void 0x0:d['name'])||a[0x0],g=(d===null||d===void 0x0?void 0x0:d[a2(0xc0)])||'',h=a[0x0],i=Object['keys'](b),j=yield this['fsi']['getPro']();!j&&(Log[a2(0xa0)](a2(0xca)),process['exit'](0x1));const k=(j===null||j===void 0x0?void 0x0:j['proCommands'][a2(0x9c)](f))||(j===null||j===void 0x0?void 0x0:j['proCommands'][a2(0x9c)](g)),l=!(j===null||j===void 0x0?void 0x0:j[a2(0xfe)][a2(0x9c)](a2(0x96)))&&!(j===null||j===void 0x0?void 0x0:j[a2(0xfe)][a2(0x9c)](a2(0xdc)))&&!(j===null||j===void 0x0?void 0x0:j[a2(0xb6)]);if(k&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0x103);if(i[a2(0xea)]>0x0){const m=j===null||j===void 0x0?void 0x0:j[a2(0xf2)][a2(0xcd)](n=>i[a2(0x9c)](n));if(m&&m[a2(0xea)]>0x0&&l)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(m===null||m===void 0x0?void 0x0:m[a2(0xd3)](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(h==='deploy'){const n=yield this[a2(0xf1)][a2(0x9a)](),o=n===null||n===void 0x0?void 0x0:n[a2(0xcc)][a2(0x9c)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0x103);}(j===null||j===void 0x0?void 0x0:j['trialActive'])&&Log[a2(0x104)](a2(0xbc)+j[a2(0x10c)]['split']('T')[0x0]);}}else try{i(j['next'](k));}catch(q){m(q);}}catch(q){throw q;}});}['validateParams'](a,b,c){const a3=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object['keys'](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts['length'])>0x0){if(g[a3(0xea)]===0x0){if('jCRwj'!==a3(0xc6)){d['error'](a3(0x123)+e);throw new f();}else{Log[a3(0xa0)](a3(0xa5)+requiredOpts['join'](',\x20'));throw new UsageError();}}requiredOpts[a3(0x9d)](i=>{const a4=a3;if(!g[a4(0x9c)](i)){if(a4(0xf3)==='tZojT'){Log[a4(0xa0)](a4(0x11a)+i);throw new UsageError();}else return![];}});}validOpts=validOpts[a3(0x98)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a3(0xea)])>0x0&&(validOpts[a3(0xd5)](a3(0xf0)),g[a3(0x9d)](i=>{const a5=a3;if('fMXoC'===a5(0xb2)){if(i[a5(0xea)]===0x0){q[a5(0xa0)](a5(0xa5)+r[a5(0xd3)](',\x20'));throw new s();}m['forEach'](z=>{const a6=a5;if(!t['includes'](z)){w[a6(0xa0)](a6(0x11a)+z);throw new x();}});}else{if(!validOpts[a5(0x9c)](i)){Log['error'](a5(0x123)+i);throw new UsageError();}}}));}[a0Q(0xc2)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;try{if(a7(0xf5)!=='nlBQR')b['exit'](0x1);else{a=a||[],b=b||{};try{yield this[a7(0x119)](a,b);}catch(d){Log[a7(0xa0)](d),process[a7(0xa8)](0x0);}yield this[a7(0xdd)](a,b);}}catch(f){if('ZSuTx'!==a7(0xcf))throw new b(a7(0x113));else process[a7(0xa8)](0x1);}});}[a0Q(0xdd)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d,{usage:usage='',description:description='',examples:examples=[]}=this[a8(0x97)];this['validateParams'](a,b,this['options']);try{if(this[a8(0x97)][a8(0x11e)]){if(a8(0xf9)!==a8(0xf9))throw b;else{const d=this[a8(0xc8)]();if(!d)throw new MustBeInProjectError();}}if(this[a8(0x97)]['mustHaveMeteorInstalled']){const f=this[a8(0x94)]();if(!f)throw new NoMeteorFoundError();}if(typeof this[a8(0x97)][a8(0xf4)]===a8(0xe6)){if(a[a8(0xea)]<this[a8(0x97)]['minArgLength']){if(a8(0xb8)!=='WDjdK'){if(!f[a8(0x9c)](g)){k['error'](a8(0x11a)+l);throw new m();}}else{Log[a8(0xa0)]('Too\x20few\x20arguments');throw new UsageError();}}}if(typeof this[a8(0x97)][a8(0x114)]==='number'){if(a8(0xe4)===a8(0xe4)){if(a[a8(0xea)]>=this['options'][a8(0x114)]){if(a8(0xed)!==a8(0xec)){Log[a8(0xa0)](a8(0xbf));throw new UsageError();}else throw new b(a8(0xce));}}else throw new b(a8(0xe1));}if(typeof this[a8(0x97)]['minOptsLength']==='number'){if(Object[a8(0x109)](b)[a8(0xea)]<this[a8(0x97)]['minOptsLength']){Log[a8(0xa0)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[a8(0x97)][a8(0xe2)]===a8(0xe6)){if(Object['keys'](b)[a8(0xea)]>=this['options'][a8(0xe2)]){Log[a8(0xa0)]('Too\x20many\x20options');throw new UsageError();}}if((a[0x0]===_prevCmd||a[a8(0xea)]===0x0)&&b[a8(0xf0)]){if(a8(0xeb)===a8(0xac))c[a8(0xa0)](a8(0xca)),d[a8(0xa8)](0x1);else throw new UsageError();}_prevCmd=a[0x0],yield this[a8(0xf6)][a8(0xcb)](this,a,b);}catch(k){if(k instanceof UsageError){if(this[a8(0xe0)]['length']>0x0&&b['help']){if('QuxUf'!==a8(0xb9)){f=g[a8(0xd3)](h,'AppData',a8(0xb7),a8(0xfc));if(!i[a8(0xa3)](j))return![];}else Log[a8(0x104)]('Commands:'),this[a8(0x121)](this[a8(0xe0)]);}Log[a8(0x11f)](description,examples,usage);}else{if(k instanceof MustBeInProjectError)Log[a8(0xa0)](a8(0x11c)),Log[a8(0x11f)](description,examples,usage);else{if(k instanceof NoMeteorFoundError)Log[a8(0xa0)](a8(0xa6)),Log['notice'](a8(0xd1)),Log[a8(0x11f)](description,examples,usage);else{if(k instanceof NoMeteorAppFoundError){if(a8(0xee)===a8(0x10b))return f instanceof g?h:new i(function(n){n(k);});else Log[a8(0xa0)](a8(0xbd)),Log['usage'](description,examples,usage);}else{if(a8(0x116)===a8(0xbb))f[a8(0xa0)](a8(0xbd)),g[a8(0x11f)](h,i,j);else throw k;}}}}process[a8(0xa8)](0x1);}});}['tableList'](a){const a9=a0Q,b=new a0L({});b['push']([a9(0xad),a9(0x99),a9(0xfd)]),a[a9(0xef)]()[a9(0x9d)](c=>{const aa=a9;c[aa(0x120)]!==aa(0x9e)&&c[aa(0x120)]!==aa(0xb1)&&b['push']([c['name'],c[aa(0xdf)](),c[aa(0x95)]()]);}),Log[a9(0xd9)](b['toString']());}[a0Q(0x102)](a){const ab=a0Q;return this['_commands'][ab(0xa7)](b=>b[ab(0xc1)](a));}['findSubCommand'](a){const ac=a0Q;let b=a===null||a===void 0x0?void 0x0:a[ac(0xc3)](':');if(b){if(ac(0xe7)!==ac(0xe7)){if(d['length']<this[ac(0x97)][ac(0xf4)]){g[ac(0xa0)](ac(0xa2));throw new h();}}else return a=b[0x0],this['findCommand'](a);}else{if(ac(0x118)===ac(0x118))return;else throw new b(ac(0x10e));}}[a0Q(0xaf)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ad=a0d;if('EdfUf'===ad(0x108))try{let d=a[ad(0xc3)](':');a=d[0x0];let f=d[0x1];f&&b[ad(0x9b)](0x0,0x0,f);let g=this[ad(0x102)](a);if(g)yield g[ad(0xc2)](b,c);else throw ad(0x110);}catch(h){if('PxwtD'!=='PxwtD')g['error'](ad(0xa6)),h['notice'](ad(0xd1)),i[ad(0x11f)](j,k,l);else throw Log['error'](h);}else{if(e[ad(0x109)](f)[ad(0xea)]>=this['options'][ad(0xe2)]){i[ad(0xa0)](ad(0xc9));throw new j();}}});}['description'](){const ae=a0Q;return this[ae(0x97)][ae(0x95)]||ae(0xf8);}['usage'](){const af=a0Q;return this[af(0x97)][af(0x11f)]||'No\x20usage\x20provided.';}[a0Q(0x9f)](){const ag=a0Q;return this['options'][ag(0x9f)]||[];}['aliases'](){const ah=a0Q;return this[ah(0x97)][ah(0xdf)]||ah(0x101);}}
@@ -1 +1 @@
1
- (function(a,b){var u=a1d,c=a();while(!![]){try{var d=-parseInt(u(0x1e6))/0x1*(parseInt(u(0x1e4))/0x2)+-parseInt(u(0x1e7))/0x3*(parseInt(u(0x1eb))/0x4)+-parseInt(u(0x1ee))/0x5+-parseInt(u(0x1ed))/0x6+parseInt(u(0x1e5))/0x7*(parseInt(u(0x1ec))/0x8)+-parseInt(u(0x1e8))/0x9+parseInt(u(0x1ef))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xc75a9));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a[w(0x1ea)]()[w(0x1f1)](w(0x1e9))['toString']()['constructor'](a1a)[w(0x1f1)](w(0x1e9));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';function a1c(){var x=['51536100YWflXi','apply','search','4318ChfXkg','7uicneF','337QOwWdb','116211iahhSl','13152483kPXiCT','(((.+)+)+)+$','toString','76rhzsnA','5386744xLiXeQ','8238072JPUUjP','3562075LWrTAT'];a1c=function(){return x;};return a1c();}import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./run.js';import'./ssh.js';import'./ssl.js';import'./test.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1e4;var f=c[d];return f;},a1d(a,b);}import'./version.js';import'./murder.js';
1
+ (function(a,b){var u=a1d,c=a();while(!![]){try{var d=parseInt(u(0x143))/0x1*(-parseInt(u(0x147))/0x2)+parseInt(u(0x149))/0x3+parseInt(u(0x141))/0x4+-parseInt(u(0x142))/0x5+parseInt(u(0x13d))/0x6*(parseInt(u(0x140))/0x7)+-parseInt(u(0x14a))/0x8+parseInt(u(0x148))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xbd10d));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a[w(0x146)]()[w(0x13e)](w(0x145))[w(0x146)]()[w(0x13f)](a1a)[w(0x13e)](w(0x145));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x13d;var f=c[d];return f;},a1d(a,b);}import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';function a1c(){var x=['2wAgoyd','16069914GMBNNg','2097342LFBDhg','8456776PifWBZ','594NMAsEf','search','constructor','5131KqEmoJ','1281592otFxMD','4481690XhFxrz','149777wWjZJt','apply','(((.+)+)+)+$','toString'];a1c=function(){return x;};return a1c();}import'./reconfig.js';import'./run.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';
@@ -1 +1 @@
1
- (function(a,b){var u=a2d,c=a();while(!![]){try{var d=parseInt(u(0xfe))/0x1*(parseInt(u(0xfd))/0x2)+-parseInt(u(0xf8))/0x3+-parseInt(u(0xef))/0x4+-parseInt(u(0xf5))/0x5*(-parseInt(u(0xf4))/0x6)+-parseInt(u(0xf7))/0x7*(parseInt(u(0xf9))/0x8)+-parseInt(u(0xf1))/0x9*(parseInt(u(0xf0))/0xa)+parseInt(u(0xf2))/0xb*(parseInt(u(0xfa))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x7f763));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0xfb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a[w(0xfc)]()['search'](w(0xf3))[w(0xfc)]()[w(0xff)](a2a)[w(0xf6)](w(0xf3));});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';function a2c(){var x=['8BOuJWF','63696MQSZqQ','apply','toString','2JTSGEE','117391LiWFbA','constructor','3906284fuAXxy','10ygWnbU','48537DfJEtg','2629mYqTMX','(((.+)+)+)+$','1343436OfggrT','20JXCLjc','search','4470872khDlDZ','416652ijsPPE'];a2c=function(){return x;};return a2c();}import'./dks.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0xef;var f=c[d];return f;},a2d(a,b);}import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';
1
+ (function(a,b){var u=a2d,c=a();while(!![]){try{var d=-parseInt(u(0xa9))/0x1*(parseInt(u(0xa8))/0x2)+parseInt(u(0xb0))/0x3+-parseInt(u(0xb1))/0x4*(parseInt(u(0xa7))/0x5)+-parseInt(u(0xab))/0x6*(parseInt(u(0xaf))/0x7)+-parseInt(u(0xa6))/0x8*(parseInt(u(0xac))/0x9)+-parseInt(u(0xb4))/0xa*(parseInt(u(0xb5))/0xb)+parseInt(u(0xae))/0xc*(parseInt(u(0xb3))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xf402c));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a[w(0xad)]()[w(0xb2)](w(0xb7))[w(0xad)]()[w(0xb6)](a2a)['search']('(((.+)+)+)+$');});a2a();import'./aws.command.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0xa6;var f=c[d];return f;},a2d(a,b);}import'./ci.sub.cmd.js';function a2c(){var x=['apply','209382GHYcga','1629TpqmOc','toString','396YNilQF','336NPOaWs','2301129TblqgA','72164OmuNNC','search','2353936NvtmFa','2900hMOsYH','50171HJoBzJ','constructor','(((.+)+)+)+$','53864AsPGVT','205WiGPAY','1573702yzjxbA','1UmtZBP'];a2c=function(){return x;};return a2c();}import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dks.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';
@@ -1 +1 @@
1
- function a3c(){const E=['5TNutLH','toString','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','20aFyFHS','constructor','throw','apply','exit','920925HhfGyp','maka\x20aws\x20<command>','1625262NzsRxJ','RWfxu','value','qbQLw','runSubCommand','1220526jfgHIU','GgSKr','1362319PMhGjQ','lfblD','701804YZfOdV','search','3882702lLFJRV','create','hThte','JnVLk','(((.+)+)+)+$','error','1YQmHsL','done','8203896XicdSy','then','next','maka\x20aws:di','findSubCommand'];a3c=function(){return E;};return a3c();}const a3C=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=parseInt(w(0x1a3))/0x1*(-parseInt(w(0x192))/0x2)+-parseInt(w(0x190))/0x3+parseInt(w(0x19b))/0x4*(-parseInt(w(0x1aa))/0x5)+parseInt(w(0x19d))/0x6+parseInt(w(0x199))/0x7+parseInt(w(0x1a5))/0x8+-parseInt(w(0x197))/0x9*(-parseInt(w(0x18b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xcde80));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a3d;if(c){if(x(0x195)===x(0x1a0))c(d);else{const f=c[x(0x18e)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const y=a3d;return a3a[y(0x189)]()[y(0x19c)](y(0x1a1))[y(0x189)]()[y(0x18c)](a3a)[y(0x19c)](y(0x1a1));});a3a();function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x189;let f=c[d];return f;},a3d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){function h(k){const z=a3d;try{j(d[z(0x1a7)](k));}catch(l){g(l);}}function i(k){const A=a3d;try{if(A(0x193)===A(0x19f))try{i(j[A(0x18d)](k));}catch(m){m(m);}else j(d[A(0x18d)](k));}catch(m){g(m);}}function j(k){const B=a3d;k[B(0x1a4)]?f(k[B(0x194)]):e(k[B(0x194)])[B(0x1a6)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import{Command}from'../../command.js';const AWSCommand=Command[a3C(0x19e)]({'name':'aws','usage':a3C(0x191),'minArgLength':0x1,'description':a3C(0x18a),'examples':['maka\x20aws:describe-instance',a3C(0x1a8)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a3d;try{if(D(0x198)!==D(0x198))try{let d=k[0x0],f=this[D(0x1a9)](d);f&&this[D(0x196)](d,n,o);}catch(g){r[D(0x1a2)](g),s[D(0x18f)](0x0);}else{let d=a[0x0],f=this[D(0x1a9)](d);if(f){if(D(0x19a)!==D(0x19a))return c[D(0x189)]()[D(0x19c)](D(0x1a1))[D(0x189)]()[D(0x18c)](d)[D(0x19c)](D(0x1a1));else this[D(0x196)](d,a,b);}}}catch(h){if('FmHqP'==='oRtht')return f instanceof g?h:new i(function(m){m(k);});else console[D(0x1a2)](h),process[D(0x18f)](0x0);}});});export default AWSCommand;
1
+ const a3A=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=-parseInt(w(0x1e6))/0x1*(-parseInt(w(0x1ea))/0x2)+parseInt(w(0x1ce))/0x3+parseInt(w(0x1e9))/0x4+parseInt(w(0x1e5))/0x5+parseInt(w(0x1d5))/0x6+parseInt(w(0x1db))/0x7*(-parseInt(w(0x1cf))/0x8)+-parseInt(w(0x1dd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x7a825));function a3c(){const H=['__awaiter','8997039QecubS','constructor','wqLAe','create','PxQfs','toString','jZTeh','search','575605aMjnvh','1iApfDm','aws','Fbujk','571532IoKKFj','1830728DFqynU','exit','next','Mpxke','throw','value','then','2675664peJunA','64MUNDZG','(((.+)+)+)+$','frTRO','done','findSubCommand','runSubCommand','1226568XnbqmS','maka\x20aws:di','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','sdILz','apply','QMnIm','672189uxmkSZ'];a3c=function(){return H;};return a3c();}const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if(x(0x1df)===x(0x1da))return c[x(0x1e2)]()[x(0x1e4)]('(((.+)+)+)+$')[x(0x1e2)]()[x(0x1de)](d)[x(0x1e4)](x(0x1d0));else{const e=a?function(){const y=x;if(c){if(y(0x1d8)!==y(0x1d8))try{i(j['throw'](k));}catch(g){m(g);}else{const g=c['apply'](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a3a=a3b(this,function(){const z=a3d;return a3a[z(0x1e2)]()[z(0x1e4)](z(0x1d0))['toString']()['constructor'](a3a)['search'](z(0x1d0));});a3a();var __awaiter=this&&this[a3A(0x1dc)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const B=a3d;if(B(0x1e8)===B(0x1e8))g(f);else{const i=d[B(0x1d9)](e,arguments);return f=null,i;}});}return new(c||(c=Promise))(function(f,g){const F=a3d;function h(k){const C=a3d;try{C(0x1ca)!==C(0x1e1)?j(d['next'](k)):d(e[C(0x1cb)](f));}catch(m){g(m);}}function i(k){const D=a3d;try{j(d[D(0x1cb)](k));}catch(l){g(l);}}function j(k){const E=a3d;k[E(0x1d2)]?f(k[E(0x1cc)]):e(k[E(0x1cc)])[E(0x1cd)](h,i);}j((d=d['apply'](a,b||[]))[F(0x1c9)]());});};import{Command}from'../../command.js';function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x1c8;let f=c[d];return f;},a3d(a,b);}const AWSCommand=Command[a3A(0x1e0)]({'name':a3A(0x1e7),'usage':'maka\x20aws\x20<command>','minArgLength':0x1,'description':a3A(0x1d7),'examples':['maka\x20aws:describe-instance',a3A(0x1d6)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a3d;try{if(G(0x1e3)!==G(0x1d1)){let c=a[0x0],d=this[G(0x1d3)](c);d&&this[G(0x1d4)](c,a,b);}else return f instanceof g?h:new i(function(m){m(k);});}catch(g){console['error'](g),process[G(0x1c8)](0x0);}});});export default AWSCommand;
@@ -1 +1 @@
1
- const a4ah=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a4d(a,b);}(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=parseInt(ae(0x227))/0x1*(-parseInt(ae(0x1be))/0x2)+parseInt(ae(0x1fd))/0x3*(-parseInt(ae(0x1e9))/0x4)+-parseInt(ae(0x1c9))/0x5*(parseInt(ae(0x1f2))/0x6)+-parseInt(ae(0x1c1))/0x7*(parseInt(ae(0x1c3))/0x8)+-parseInt(ae(0x204))/0x9*(parseInt(ae(0x1d6))/0xa)+-parseInt(ae(0x1de))/0xb+parseInt(ae(0x22e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x983d2));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0x214)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a[ag(0x1f9)]()[ag(0x1db)](ag(0x209))[ag(0x1f9)]()[ag(0x219)](a4a)[ag(0x1db)]('(((.+)+)+)+$');});a4a();var __awaiter=this&&this[a4ah(0x202)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const am=a4d;function h(k){const ai=a4d;if(ai(0x22d)===ai(0x22d))try{if(ai(0x222)!==ai(0x233))j(d['next'](k));else{const n=g?function(){const aj=ai;if(n){const u=q[aj(0x214)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}catch(m){'cSYUO'==='PyBLl'?i['id']===j(k)&&(q=r['amiId'],s['success'](ai(0x1ba)+t+ai(0x1fe)+u[ai(0x1f7)])):g(m);}else return c[ai(0x1f9)]()['search'](ai(0x209))[ai(0x1f9)]()[ai(0x219)](d)[ai(0x1db)]('(((.+)+)+)+$');}function i(k){const ak=a4d;if(ak(0x223)!==ak(0x223))d(e[ak(0x1e0)](f));else try{j(d[ak(0x231)](k));}catch(m){'jZaAT'!==ak(0x1ff)?g(m):(d[ak(0x210)](m),f['exit'](0x0));}}function j(k){const al=a4d;al(0x1b9)===al(0x1b9)?k[al(0x22c)]?f(k['value']):e(k[al(0x1e2)])[al(0x1ef)](h,i):c[al(0x210)](d);}j((d=d[am(0x214)](a,b||[]))[am(0x1e0)]());});};import a4C from'./aws.command.js';import{execSync}from'child_process';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4ah(0x1cf)]({'name':a4ah(0x1b3),'aliases':['ci'],'usage':a4ah(0x22b),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4ah(0x1df)],'validOpts':[a4ah(0x1f1)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const an=a4d;if(an(0x1fa)===an(0x1fa))try{const c=this[an(0x200)]['getProjectConfig'](),d=new AWS(),{appName:f}=c,g=this[an(0x200)][an(0x1fc)](b[an(0x1df)]);let h=f+'-'+g,i=(yield Actions[an(0x1f4)](an(0x212)+h+']\x20'))||h,j='',k='',l='',m='',n='',o='',p='';const q=yield Actions[an(0x22a)](an(0x218));let r='';q&&('OCGCD'!=='ThiAE'?r=yield d[an(0x21d)]({'env':g}):f[an(0x1e1)]({'id':g,'cidr':h[an(0x1c0)],'az':i['az'],'subnetId':j['subnetId']}));try{if('RAHIr'===an(0x1f8))f['log'](an(0x1ce)+g['id']+an(0x225)+h[an(0x226)]+an(0x1eb)+i['az']+an(0x1dd)+j[an(0x1fb)]);else{Log[an(0x1cc)](an(0x1f6));let x=r?r:i,y=d[an(0x1f5)]({'suggestion':x}),z=(yield Actions['ask'](an(0x1bf)))||'-1';if(parseInt(z)<0x0){Log[an(0x210)](an(0x20e)),Log[an(0x1cc)](an(0x1e7));return;}y===null||y===void 0x0?void 0x0:y[an(0x1c5)](function(A){const ao=an;parseInt(z)===A['id']&&(j=A[ao(0x207)],Log[ao(0x20b)](ao(0x1b1)+j));});}}catch(A){Log[an(0x210)](A);}k=yield d[an(0x1cb)]();let s=yield Actions[an(0x22a)](an(0x1d2)),t;if(s){let B=k===''?d[an(0x1cb)]():k,C=yield Actions['confirm'](an(0x216));t=(yield Actions[an(0x1f4)](an(0x1da)+i+']'))||i,d[an(0x220)]({'description':an(0x203),'name':t,'vpcId':B,'ssl':C});}t=i;try{if('fBbum'==='fBbum'){Log[an(0x1cc)](an(0x230));let D=execSync('aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22')[an(0x1f9)](),E=JSON[an(0x1bb)](D),F=[];E[an(0x1c5)](function(H,I){const ap=an;if(ap(0x1e3)!==ap(0x1e3)){if(f[ap(0x1d7)]===null){let K=k[ap(0x22f)]['split'](ap(0x1c4))[0x1];l[ap(0x1e1)]({'amiId':m['ID'],'desc':n[ap(0x22f)],'date':K});}}else F['push']({'id':I,'name':H['Name'],'sgId':H['ID']});}),F[an(0x1c5)](function(H){const aq=an;H[aq(0x207)]===t?Log['notice'](aq(0x1ce)+H['id']+aq(0x1d4)+H[aq(0x207)]+aq(0x1f0)+H[aq(0x1e6)]):console[aq(0x21c)](aq(0x1ce)+H['id']+aq(0x1d4)+H[aq(0x207)]+aq(0x1f0)+H[aq(0x1e6)]);});let G=(yield Actions[an(0x1f4)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';F['forEach'](function(H){const ar=an;if(ar(0x1dc)==='oQVbE'){if(H['id']===parseInt(G)){if(ar(0x1cd)===ar(0x232))throw b[ar(0x210)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');else l=H[ar(0x1e6)],Log['success']('Setting\x20SG\x20ID\x20to:\x20'+l+'\x0a');}}else e=f['subnetId'],g['success'](ar(0x1b8)+h);});if(l==='')throw Log[an(0x210)](an(0x1c2));}else{let I=l['ec2create']({'imageId':m,'count':n,'type':o,'key':p,'sgIds':q,'subnet':r,'tags':an(0x229)+s+an(0x1c8)+t+'}]\x22'});I&&(w[an(0x20b)](an(0x1e5)),x['bright'](an(0x1ee)));}}catch(I){Log[an(0x210)](I);}try{if(an(0x1ea)!==an(0x1ea))c[an(0x20b)](an(0x1e5)),d[an(0x213)](an(0x1ee));else{let K=0x7e6;Log[an(0x1cc)](an(0x1b4));let L=execSync(an(0x1b6)+K+an(0x1d3))[an(0x1f9)](),M=JSON[an(0x1bb)](L),N=[],O=[];M[an(0x1c5)](function(Q,R){const as=an;if('ERVSS'!=='hiLlK'){if(Q['alias']===null){let S=Q[as(0x22f)][as(0x1d0)]('build\x20on\x20')[0x1];N[as(0x1e1)]({'amiId':Q['ID'],'desc':Q[as(0x22f)],'date':S});}}else e=f[as(0x1e6)],g[as(0x20b)](as(0x20c)+h+'\x0a');}),N['sort'](function(Q,R){const at=an;return new Date(R[at(0x1bd)])['getTime']()-new Date(Q[at(0x1bd)])[at(0x20f)]();}),N[an(0x1c5)](function(Q,R){const au=an;O[au(0x1e1)]({'id':R,'amiId':Q[au(0x201)],'desc':Q['desc']});}),O[an(0x1c5)](function(Q){const av=an;console['log'](av(0x1ce)+Q['id']+av(0x1c6)+Q[av(0x201)]+'\x20DESCRIPTION:\x20'+Q['desc']);});let P=(yield Actions[an(0x1f4)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';O[an(0x1c5)](function(Q){const aw=an;aw(0x1d5)==='IUcoX'?c[aw(0x210)](d):Q['id']===parseInt(P)&&(m=Q['amiId'],Log['success'](aw(0x1ba)+m+'\x20:\x20'+Q[aw(0x1f7)]));});if(m===''){if(an(0x1d9)!==an(0x1d9))c[an(0x210)](d);else throw Log[an(0x210)](an(0x1c2));}}}catch(R){if(an(0x215)===an(0x215))Log[an(0x210)](R);else return f instanceof g?h:new i(function(T){T(k);});}try{Log[an(0x1cc)](an(0x224));let T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[an(0x1f9)](),U=JSON[an(0x1bb)](T),V=[];U[an(0x1c5)](function(X,Y){const ax=an;ax(0x1b7)===ax(0x1b7)?V[ax(0x1e1)]({'id':Y,'cidr':X[ax(0x1c0)],'az':X['az'],'subnetId':X['subnetId']}):c['error'](d);}),V[an(0x1c5)](function(X){const ay=an;ay(0x1b5)==='YcXjB'?b[ay(0x1cc)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!'):console[ay(0x21c)](ay(0x1ce)+X['id']+ay(0x225)+X[ay(0x226)]+ay(0x1eb)+X['az']+ay(0x1dd)+X['subnetId']);});let W=(yield Actions['ask'](an(0x1e8)))||'0';V[an(0x1c5)](function(X){const az=an;az(0x21f)===az(0x21f)?X['id']===parseInt(W)&&(o=X[az(0x1fb)],Log[az(0x20b)](az(0x1b8)+o)):h['id']===i(j)&&(o=p[az(0x1e6)],q['success']('Setting\x20SG\x20ID\x20to:\x20'+r+'\x0a'));});if(o===''){if(an(0x1bc)!=='KYRlC')throw Log[an(0x210)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');else{if(e){const Y=i[an(0x214)](j,arguments);return k=null,Y;}}}}catch(Y){Log[an(0x210)](Y);}let u=an(0x1ec);try{let Z=(yield Actions[an(0x1f4)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20'))||an(0x1ec),a0=Z[an(0x1d0)](':')[0x0],a1=Z[an(0x1d0)](':')[0x1];typeof parseInt(a0)===an(0x21e)&&typeof parseInt(a1)===an(0x21e)&&(u=[a0,a1][an(0x1ed)](':'),Log[an(0x20b)](an(0x217)+u));}catch(a2){Log[an(0x210)](a2);}try{let a3=(yield Actions[an(0x1f4)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t2.nano]'))||an(0x206);typeof a3==='string'&&(an(0x1e4)!==an(0x208)?n=a3:h[an(0x22c)]?i(j[an(0x1e2)]):k(l[an(0x1e2)])['then'](m,n));}catch(a5){Log[an(0x210)](a5);}try{let a6=JSON[an(0x1bb)](execSync(an(0x1f3)+o+an(0x20d))['toString']())[0x0]['subnet'];Log[an(0x1cc)](an(0x1ca)+m),Log[an(0x1cc)](an(0x1c7)+u),Log[an(0x1cc)](an(0x21a)+n),Log[an(0x1cc)](an(0x1b2)+j),Log[an(0x1cc)](an(0x228)+l),Log['notice'](an(0x221)+a6);let a7=yield Actions[an(0x22a)](an(0x20a));if(a7){if(an(0x205)!==an(0x205))d(e[an(0x231)](f));else{let a9=d[an(0x211)]({'imageId':m,'count':u,'type':n,'key':j,'sgIds':l,'subnet':o,'tags':'\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value='+g+an(0x1c8)+i+an(0x1d8)});a9&&(Log['success'](an(0x1e5)),Log[an(0x213)](an(0x1ee)));}}else Log['notice'](an(0x1d1));}catch(aa){an(0x21b)!==an(0x21b)?c[an(0x210)](d):(console[an(0x21c)](aa),Log['error'](aa));}}catch(ac){console[an(0x210)](ac),process['exit'](0x0);}else h(i)===j['id']&&(o=p[an(0x207)],q[an(0x20b)](an(0x1b1)+r));});},a4C);function a4c(){const aA=['You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','getTime','error','ec2create','EC2\x20Name:\x20[','bright','apply','aybKE','Open\x20port\x20443\x20for\x20SSL?','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','constructor','Instace\x20Type:\x20','QrdXY','log','createKeyPair','number','CcrKD','ec2createSG','Subnet:\x20','FxSQE','rgWkZ','**\x20Available\x20Subnets\x20**','\x20CIDR:\x20','cidr','1znMWoU','Security\x20Group:\x20','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','confirm','maka\x20aws:create-instance','done','kJMLI','57626580yfpcxx','Desc','**\x20Available\x20Security\x20Groups\x20**','throw','mBjOi','uyZls','Setting\x20the\x20key-pair\x20to:\x20','Key-Pair:\x20','create-instance','**\x20Available\x20AMIs\x20**','UcuQM','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','drJMm','Setting\x20Subnet\x20ID\x20to\x20','GRURt','Setting\x20AMI\x20ID\x20to\x20','parse','UDEtD','date','1016606mPHNzp','Please\x20choose\x20a\x20key\x20to\x20use:\x20','cider','7062853armQtj','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','8gnycei','build\x20on\x20','forEach','\x20AMIID:\x20','Instance\x20Count:\x20','},\x20{Key=Name,Value=','25dgdvbB','ImageID:','chooseVPC','notice','MAias','ID:\x20','create','split','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','\x20SG\x20NAME:\x20','pVZhs','3498860DafKBe','alias','}]\x22','QKdpi','Security\x20Group\x20Name:\x20[','search','oQVbE','\x20SUBNETID:\x20','10225413CbbSyV','env','next','push','value','GmwIw','AfDEB','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','sgId','No\x20instance\x20has\x20been\x20created.','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','44bwwcpv','OMgCe','\x20AZONE:\x20','1:1','join','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','then','\x20SGID:\x20','help','237018YtrRoL','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','ask','ec2describeKeys','**\x20Available\x20key-pairs\x20**','desc','WBBOL','toString','jzKIG','subnetId','getConfigFromShorthand','227589anvNhB','\x20:\x20','HVZsV','fsi','amiId','__awaiter','\x22Web\x20App\x22','18JyUQNg','PKvYT','t2.nano','name','EbJpi','(((.+)+)+)+$','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','success','Setting\x20SG\x20ID\x20to:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22'];a4c=function(){return aA;};return a4c();}
1
+ const a4ai=a4d;(function(a,b){const af=a4d,c=a();while(!![]){try{const d=-parseInt(af(0x122))/0x1*(-parseInt(af(0xd6))/0x2)+-parseInt(af(0x150))/0x3+parseInt(af(0xe9))/0x4+-parseInt(af(0xf4))/0x5+-parseInt(af(0xde))/0x6*(-parseInt(af(0x135))/0x7)+parseInt(af(0x111))/0x8*(-parseInt(af(0x12c))/0x9)+-parseInt(af(0x156))/0xa*(parseInt(af(0x13e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xb6262));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ag=a4d;if(ag(0x104)!==ag(0x104))d(e['next'](f));else{if(c){if(ag(0xe3)==='sgxeP')d[ag(0xeb)](e),f[ag(0xd7)](0x0);else{const g=c[ag(0x117)](b,arguments);return c=null,g;}}}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ah=a4d;return a4a[ah(0x131)]()[ah(0x151)](ah(0xf8))[ah(0x131)]()['constructor'](a4a)[ah(0x151)](ah(0xf8));});a4a();var __awaiter=this&&this[a4ai(0xea)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const aj=a4d;aj(0x116)===aj(0x116)?g(f):(c[aj(0xdd)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),d[aj(0xf6)](aj(0x136)));});}return new(c||(c=Promise))(function(f,g){const an=a4d;function h(k){const ak=a4d;try{ak(0x14d)===ak(0x115)?k[ak(0x15a)]===l?u[ak(0x105)](ak(0x132)+v['id']+'\x20SG\x20NAME:\x20'+w['name']+ak(0x145)+x[ak(0x14c)]):y[ak(0xd9)]('ID:\x20'+z['id']+'\x20SG\x20NAME:\x20'+A[ak(0x15a)]+ak(0x145)+B[ak(0x14c)]):j(d[ak(0x119)](k));}catch(m){g(m);}}function i(k){const al=a4d;try{j(d[al(0x129)](k));}catch(l){if(al(0x10a)==='DTKir')g(l);else throw b[al(0xeb)](al(0x11c));}}function j(k){const am=a4d;k['done']?f(k[am(0x123)]):e(k[am(0x123)])[am(0x13f)](h,i);}j((d=d[an(0x117)](a,b||[]))[an(0x119)]());});};import a4C from'./aws.command.js';import{execSync}from'child_process';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xd6;let f=c[d];return f;},a4d(a,b);}function a4c(){const aB=['amiId','EC2\x20Name:\x20[','pIlMT','alias','DTKir','subnet','createKeyPair','XlwbZ','hfVgl','eKRAl','quJBi','258568xVxJQj','**\x20Available\x20key-pairs\x20**','Setting\x20Subnet\x20ID\x20to\x20','Security\x20Group:\x20','NdbKl','YfsQW','apply','\x20DESCRIPTION:\x20','next','IVxMh','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','chooseVPC','UdLvF','qaUMH','RnWbV','67593QdrAjJ','value','\x22Web\x20App\x22','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','join','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','split','throw','Setting\x20SG\x20ID\x20to:\x20','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','18LdmBtk','fviXN','\x20AZONE:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','**\x20Available\x20Subnets\x20**','toString','ID:\x20','ec2create','AonaQ','35FEtZhF','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x20CIDR:\x20','1:1','t2.nano','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','\x20SG\x20NAME:\x20','svNQp','**\x20Available\x20Security\x20Groups\x20**','22728827AWkprr','then','fsi','subnetId','GMyZr','Key-Pair:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','\x20SGID:\x20','VhmaL','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','sCUNV','\x20AMIID:\x20','lwuJJ','sgId','ZDedI','maka\x20aws:create-instance','date','2863719pqggtL','search','build\x20on\x20','help','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','getProjectConfig','10ONVKkL','ImageID:','No\x20instance\x20has\x20been\x20created.','BGGCU','name','EbhGD','44ecsvHp','exit','\x20SUBNETID:\x20','log','ilXBo','cidr','Security\x20Group\x20Name:\x20[','success','1439430WQDLDc','forEach','env','Desc','create-instance','cHJxN','FuALs','ec2createSG','Open\x20port\x20443\x20for\x20SSL?','LrnrN','fpIZu','5493844zGIkWz','__awaiter','error','CtxKN','push','sort','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','number','ask','vPFkM','confirm','1142390EUznKq','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','bright','parse','(((.+)+)+)+$','desc','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','What\x20instance\x20type\x20would\x20you\x20like?\x20[t2.nano]','Setting\x20AMI\x20ID\x20to\x20','Name','AsufX','Instace\x20Type:\x20','ngVar','\x20:\x20','**\x20Available\x20AMIs\x20**','},\x20{Key=Name,Value=','YXoug','notice'];a4c=function(){return aB;};return a4c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a4ai(0xe2),'aliases':['ci'],'usage':a4ai(0x14e),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4ai(0xe0)],'validOpts':[a4ai(0x153)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const ao=a4d;if(ao(0xe4)!=='FuALs')c[ao(0xeb)](d);else try{const d=this[ao(0x140)][ao(0x155)](),f=new AWS(),{appName:g}=d,h=this[ao(0x140)]['getConfigFromShorthand'](b[ao(0xe0)]);let i=g+'-'+h,j=(yield Actions[ao(0xf1)](ao(0x107)+i+']\x20'))||i,k='',l='',m='',n='',o='',p='',q='';const r=yield Actions[ao(0xf3)](ao(0x144));let s='';r&&(s=yield f[ao(0x10c)]({'env':h}));try{if(ao(0x11a)===ao(0xe7)){c[ao(0xeb)](ao(0x11d)),d['notice'](ao(0x158));return;}else{Log[ao(0x105)](ao(0x112));let x=s?s:j,y=f['ec2describeKeys']({'suggestion':x}),z=(yield Actions[ao(0xf1)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20'))||'-1';if(parseInt(z)<0x0){Log['error'](ao(0x11d)),Log['notice'](ao(0x158));return;}y===null||y===void 0x0?void 0x0:y[ao(0xdf)](function(A){const ap=ao;parseInt(z)===A['id']&&(k=A[ap(0x15a)],Log[ap(0xdd)]('Setting\x20the\x20key-pair\x20to:\x20'+k));});}}catch(A){Log[ao(0xeb)](A);}l=yield f[ao(0x11e)]();let t=yield Actions[ao(0xf3)](ao(0x13a)),u;if(t){if('wxexg'!==ao(0x10f)){let B=l===''?f[ao(0x11e)]():l,C=yield Actions[ao(0xf3)](ao(0xe6));u=(yield Actions[ao(0xf1)](ao(0xdc)+j+']'))||j,f[ao(0xe5)]({'description':ao(0x124),'name':u,'vpcId':B,'ssl':C});}else f=g[ao(0x106)],h['success'](ao(0xfc)+i+'\x20:\x20'+j[ao(0xf9)]);}u=j;try{Log[ao(0x105)](ao(0x13d));let E=execSync(ao(0x127))[ao(0x131)](),F=JSON[ao(0xf7)](E),G=[];F[ao(0xdf)](function(I,J){const aq=ao;G[aq(0xed)]({'id':J,'name':I[aq(0xfd)],'sgId':I['ID']});}),G['forEach'](function(I){const ar=ao;I[ar(0x15a)]===u?ar(0x120)!==ar(0x120)?c[ar(0xeb)](d):Log[ar(0x105)](ar(0x132)+I['id']+ar(0x13b)+I[ar(0x15a)]+ar(0x145)+I['sgId']):console[ar(0xd9)]('ID:\x20'+I['id']+ar(0x13b)+I[ar(0x15a)]+ar(0x145)+I[ar(0x14c)]);});let H=(yield Actions[ao(0xf1)](ao(0xf5)))||'0';G[ao(0xdf)](function(I){const as=ao;I['id']===parseInt(H)&&(m=I[as(0x14c)],Log[as(0xdd)](as(0x12a)+m+'\x0a'));});if(m===''){if(ao(0x10e)!=='EqEkt')throw Log[ao(0xeb)](ao(0x11c));else throw b[ao(0xeb)](ao(0x11c));}}catch(J){ao(0x15b)===ao(0x110)?c[ao(0xeb)](d):Log[ao(0xeb)](J);}try{let L=0x7e6;Log[ao(0x105)](ao(0x102));let M=execSync(ao(0xfa)+L+ao(0x11b))[ao(0x131)](),N=JSON['parse'](M),O=[],P=[];N[ao(0xdf)](function(R,S){const at=ao;if(at(0x121)!==at(0x121)){if(f[at(0x109)]===null){let U=k[at(0xe1)]['split'](at(0x152))[0x1];l[at(0xed)]({'amiId':m['ID'],'desc':n[at(0xe1)],'date':U});}}else{if(R[at(0x109)]===null){if(at(0x100)!==at(0xf2)){let U=R['Desc'][at(0x128)](at(0x152))[0x1];O[at(0xed)]({'amiId':R['ID'],'desc':R[at(0xe1)],'date':U});}else c(d);}}}),O[ao(0xee)](function(R,S){const au=ao;return new Date(S[au(0x14f)])['getTime']()-new Date(R[au(0x14f)])['getTime']();}),O['forEach'](function(R,S){const av=ao;av(0x10d)===av(0x11f)?i['id']===j(k)&&(q=r[av(0x106)],s[av(0xdd)](av(0xfc)+t+av(0x101)+u[av(0xf9)])):P[av(0xed)]({'id':S,'amiId':R['amiId'],'desc':R[av(0xf9)]});}),P[ao(0xdf)](function(R){const aw=ao;console['log'](aw(0x132)+R['id']+aw(0x14a)+R['amiId']+aw(0x118)+R[aw(0xf9)]);});let Q=(yield Actions[ao(0xf1)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';P[ao(0xdf)](function(R){const ax=ao;R['id']===parseInt(Q)&&(ax(0x149)===ax(0x14b)?c[ax(0xeb)](d):(n=R['amiId'],Log[ax(0xdd)](ax(0xfc)+n+ax(0x101)+R['desc'])));});if(n===''){if(ao(0xfe)!==ao(0xfe))e['log'](f),g[ao(0xeb)](h);else throw Log[ao(0xeb)](ao(0x11c));}}catch(S){ao(0x146)==='VhmaL'?Log[ao(0xeb)](S):S[ao(0xed)]({'id':f,'amiId':g[ao(0x106)],'desc':h[ao(0xf9)]});}try{Log[ao(0x105)](ao(0x130));let U=execSync(ao(0x148))[ao(0x131)](),V=JSON[ao(0xf7)](U),W=[];V['forEach'](function(Y,Z){const ay=ao;W[ay(0xed)]({'id':Z,'cidr':Y['cider'],'az':Y['az'],'subnetId':Y[ay(0x141)]});}),W[ao(0xdf)](function(Y){const az=ao;az(0x134)==='crTcj'?c(d):console[az(0xd9)](az(0x132)+Y['id']+az(0x137)+Y[az(0xdb)]+az(0x12e)+Y['az']+az(0xd8)+Y[az(0x141)]);});let X=(yield Actions[ao(0xf1)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';W[ao(0xdf)](function(Y){const aA=ao;Y['id']===parseInt(X)&&(aA(0x142)===aA(0xe8)?e['log']('ID:\x20'+f['id']+aA(0x13b)+g[aA(0x15a)]+aA(0x145)+h[aA(0x14c)]):(p=Y[aA(0x141)],Log[aA(0xdd)](aA(0x113)+p)));});if(p===''){if(ao(0x12d)===ao(0x12d))throw Log[ao(0xeb)](ao(0x11c));else c['error'](d);}}catch(Z){Log['error'](Z);}let v=ao(0x138);try{let a0=(yield Actions[ao(0xf1)](ao(0x154)))||'1:1',a1=a0[ao(0x128)](':')[0x0],a2=a0['split'](':')[0x1];typeof parseInt(a1)===ao(0xf0)&&typeof parseInt(a2)===ao(0xf0)&&(v=[a1,a2][ao(0x126)](':'),Log[ao(0xdd)](ao(0xef)+v));}catch(a3){Log[ao(0xeb)](a3);}try{let a4=(yield Actions['ask'](ao(0xfb)))||ao(0x139);if(typeof a4==='string'){if(ao(0x13c)===ao(0x13c))o=a4;else{if(e){const a6=i[ao(0x117)](j,arguments);return k=null,a6;}}}}catch(a6){Log[ao(0xeb)](a6);}try{if(ao(0x159)===ao(0xda)){const a8=d[ao(0x117)](e,arguments);return f=null,a8;}else{let a8=JSON[ao(0xf7)](execSync(ao(0x12f)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ao(0x131)]())[0x0][ao(0x10b)];Log[ao(0x105)](ao(0x157)+n),Log[ao(0x105)]('Instance\x20Count:\x20'+v),Log[ao(0x105)](ao(0xff)+o),Log[ao(0x105)](ao(0x143)+k),Log['notice'](ao(0x114)+m),Log[ao(0x105)]('Subnet:\x20'+a8);let a9=yield Actions['confirm'](ao(0x147));if(a9){if(ao(0xec)!=='CtxKN')e=f[ao(0x14c)],g[ao(0xdd)](ao(0x12a)+h+'\x0a');else{let ab=f[ao(0x133)]({'imageId':n,'count':v,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':ao(0x12b)+h+ao(0x103)+j+'}]\x22'});ab&&(ao(0x108)!==ao(0x108)?b['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!'):(Log[ao(0xdd)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ao(0xf6)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file')));}}else Log[ao(0x105)](ao(0x125));}}catch(ad){console[ao(0xd9)](ad),Log[ao(0xeb)](ad);}}catch(ae){console[ao(0xeb)](ae),process['exit'](0x0);}});},a4C);
@@ -1 +1 @@
1
- const a5B=a5d;(function(a,b){const y=a5d,c=a();while(!![]){try{const d=parseInt(y(0xcd))/0x1*(parseInt(y(0xce))/0x2)+parseInt(y(0xba))/0x3+-parseInt(y(0xca))/0x4+-parseInt(y(0xc1))/0x5+-parseInt(y(0xb7))/0x6*(parseInt(y(0xbf))/0x7)+parseInt(y(0xb5))/0x8+-parseInt(y(0xc9))/0x9*(-parseInt(y(0xb8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xd2335));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a5d;if(c){if(z(0xc6)==='xRbPb')c(d);else{const f=c[z(0xbc)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const A=a5d;return a5a[A(0xd6)]()[A(0xb9)]('(((.+)+)+)+$')[A(0xd6)]()[A(0xbd)](a5a)['search'](A(0xc0));});a5a();var __awaiter=this&&this[a5B(0xc7)]||function(a,b,c,d){function e(f){const C=a5d;if(C(0xc5)!==C(0xc5)){const h=d[C(0xbc)](e,arguments);return f=null,h;}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const G=a5d;function h(k){const D=a5d;if(D(0xc3)===D(0xd0)){const n=g?function(){if(n){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else try{if(D(0xbb)===D(0xcc))try{i(j[D(0xc8)](k));}catch(o){m(o);}else j(d[D(0xc8)](k));}catch(n){if('OHVwT'!==D(0xd1)){if(n){const p=i['apply'](j,arguments);return k=null,p;}}else g(n);}}function i(k){const E=a5d;if(E(0xb3)===E(0xb4))try{i(j[E(0xd2)](k));}catch(m){m(m);}else try{j(d[E(0xd2)](k));}catch(m){g(m);}}function j(k){const F=a5d;k[F(0xc2)]?f(k['value']):e(k[F(0xd3)])['then'](h,i);}j((d=d['apply'](a,b||[]))[G(0xc8)]());});};function a5c(){const I=['7ntAcvA','(((.+)+)+)+$','7078105Zhbpme','done','abYik','maka\x20aws\x20create-key-pair','FxgoR','iNjAl','__awaiter','next','27gcQTqj','2848632WRgcvW','aySYb','onKaz','7emxehG','219170NLcPlX','fsi','iYXyV','OHVwT','throw','value','env','getConfigFromShorthand','toString','create-key-pair','eCdUJ','ooGHy','3021592CfAkma','sjtFy','2695614PnQOoR','2112870xUwVeC','search','4978122UrJhaf','lymGB','apply','constructor','createKeyPair'];a5c=function(){return I;};return a5c();}import a5x from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xb3;let f=c[d];return f;},a5d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a5B(0xd7),'aliases':['ckp'],'usage':a5B(0xc4),'mustBeInMakaProject':!![],'requiredOpts':[a5B(0xd4)],'validOpts':['help']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a5d;if(H(0xb6)===H(0xb6))try{if(H(0xcb)!=='JuAUM'){const c=new AWS(),d=this[H(0xcf)][H(0xd5)](b[H(0xd4)]);c[H(0xbe)]({'env':d});}else return f instanceof g?h:new i(function(m){m(k);});}catch(g){console['error'](g),process['exit'](0x0);}else d(e[H(0xd2)](f));});},a5x);
1
+ const a5E=a5d;(function(a,b){const A=a5d,c=a();while(!![]){try{const d=parseInt(A(0x1c4))/0x1+-parseInt(A(0x1bd))/0x2+parseInt(A(0x1c9))/0x3+-parseInt(A(0x1b9))/0x4+parseInt(A(0x1ab))/0x5+parseInt(A(0x1bf))/0x6*(parseInt(A(0x1b7))/0x7)+parseInt(A(0x1b0))/0x8*(-parseInt(A(0x1b6))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x3acbd));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const B=a5d;if(B(0x1c1)!==B(0x1c1))return f(this,void 0x0,void 0x0,function*(){const C=B;try{const x=new o(),y=this[C(0x1cb)][C(0x1b8)](p[C(0x1b3)]);x[C(0x1bc)]({'env':y});}catch(z){s['error'](z),t[C(0x1b1)](0x0);}});else{if(c){if('rSxEv'!=='nhjCF'){const f=c[B(0x1b5)](b,arguments);return c=null,f;}else try{i(j[B(0x1ba)](k));}catch(h){m(h);}}}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const D=a5d;return a5a[D(0x1c3)]()[D(0x1bb)](D(0x1aa))[D(0x1c3)]()[D(0x1af)](a5a)[D(0x1bb)]('(((.+)+)+)+$');});function a5c(){const L=['exit','vWZss','env','WxzEt','apply','221805JgeDFp','3173002ZHIeTF','getConfigFromShorthand','48008rPLDyZ','next','search','createKeyPair','607442NmWaOl','value','6qnHjhl','yLqya','PrNbK','SIaYL','toString','442014zkdpgl','throw','phCBv','ckp','then','392883GWsSUe','mJDpg','fsi','NyDdj','create-key-pair','error','(((.+)+)+)+$','732080alfpuy','Ijfuz','__awaiter','help','constructor','200aBPNwo'];a5c=function(){return L;};return a5c();}a5a();var __awaiter=this&&this[a5E(0x1ad)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const F=a5d;'OZUyr'===F(0x1c2)?(d[F(0x1a9)](e),f[F(0x1b1)](0x0)):g(f);});}return new(c||(c=Promise))(function(f,g){const J=a5d;function h(k){const G=a5d;if(G(0x1b2)===G(0x1b2))try{if(G(0x1c0)!=='yLqya'){if(e){const m=i[G(0x1b5)](j,arguments);return k=null,m;}}else j(d[G(0x1ba)](k));}catch(m){g(m);}else h['done']?i(j[G(0x1be)]):k(l['value'])['then'](m,n);}function i(k){const H=a5d;try{j(d['throw'](k));}catch(l){H(0x1ca)!==H(0x1ac)?g(l):d(l[H(0x1c5)](f));}}function j(k){const I=a5d;if(I(0x1cc)!==I(0x1cc))return f instanceof g?h:new i(function(m){m(k);});else k['done']?f(k[I(0x1be)]):e(k[I(0x1be)])[I(0x1c8)](h,i);}j((d=d[J(0x1b5)](a,b||[]))[J(0x1ba)]());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a5E(0x1cd),'aliases':[a5E(0x1c7)],'usage':'maka\x20aws\x20create-key-pair','mustBeInMakaProject':!![],'requiredOpts':[a5E(0x1b3)],'validOpts':[a5E(0x1ae)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const K=a5d;try{if(K(0x1b4)!==K(0x1c6)){const c=new AWS(),d=this[K(0x1cb)][K(0x1b8)](b[K(0x1b3)]);c[K(0x1bc)]({'env':d});}else c(d);}catch(g){console[K(0x1a9)](g),process[K(0x1b1)](0x0);}});},a5x);
@@ -1 +1 @@
1
- const a6z=a6d;function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x171;let f=c[d];return f;},a6d(a,b);}(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0x173))/0x1*(-parseInt(v(0x182))/0x2)+-parseInt(v(0x19e))/0x3*(-parseInt(v(0x1a0))/0x4)+parseInt(v(0x193))/0x5*(-parseInt(v(0x17d))/0x6)+parseInt(v(0x172))/0x7+parseInt(v(0x181))/0x8*(-parseInt(v(0x17c))/0x9)+-parseInt(v(0x194))/0xa*(-parseInt(v(0x195))/0xb)+parseInt(v(0x177))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x52b8c));function a6c(){const H=['Open\x20port\x20443\x20for\x20SSL?','(((.+)+)+)+$','exit','confirm','yIwYe','VFFGd','apply','toString','10QMgiPl','542620NkEyAu','99EeFEbj','Security\x20Group\x20Name:\x20[','fsi','qdSfd','-ssl','csg','throw','ask','__awaiter','69xjqmkU','UTspd','31676rbuAGV','fIvPy','error','then','1857450DUPouZ','1651eLlasV','aUSni','help','search','3502536jFefLB','constructor','value','fSaAb','TnJMN','54CiFNXX','1348170SwYezF','\x22Web\x20App\x22','AhMge','create-security-group','799536wkziqO','194RyBVur','name','tWczE','buYQb','PRRqE','next','rmTZQ','chooseVPC','done'];a6c=function(){return H;};return a6c();}const a6b=(function(){let a=!![];return function(b,c){const w=a6d;if(w(0x18f)!==w(0x18f))try{i(j[w(0x187)](k));}catch(e){m(e);}else{const e=a?function(){const x=w;if(x(0x17f)!=='AhMge')h[x(0x18a)]?i(j[x(0x179)]):k(l['value'])['then'](m,n);else{if(c){if(x(0x19f)!==x(0x174)){const g=c[x(0x191)](b,arguments);return c=null,g;}else c(d);}}}:function(){};return a=![],e;}};}()),a6a=a6b(this,function(){const y=a6d;return a6a['toString']()['search']('(((.+)+)+)+$')[y(0x192)]()[y(0x178)](a6a)[y(0x176)](y(0x18c));});a6a();var __awaiter=this&&this[a6z(0x19d)]||function(a,b,c,d){function e(f){const A=a6d;if(A(0x188)==='UGioD'){if(e){const h=i[A(0x191)](j,arguments);return k=null,h;}}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const F=a6d;function h(k){const B=a6d;if(B(0x190)!==B(0x190))return f instanceof g?h:new i(function(m){m(k);});else try{B(0x17b)!==B(0x17b)?d(e[B(0x19b)](f)):j(d[B(0x187)](k));}catch(n){B(0x184)===B(0x184)?g(n):c(d);}}function i(k){const C=a6d;if(C(0x17a)!=='FtfUf')try{if(C(0x198)==='zoQON'){const n=g?function(){const D=C;if(n){const u=q[D(0x191)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else j(d['throw'](k));}catch(m){C(0x1a1)==='fIvPy'?g(m):c(d);}else try{i(j[C(0x19b)](k));}catch(p){m(p);}}function j(k){const E=a6d;k[E(0x18a)]?f(k['value']):e(k[E(0x179)])[E(0x171)](h,i);}j((d=d[F(0x191)](a,b||[]))[F(0x187)]());});};import a6u from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a6z(0x180),'aliases':[a6z(0x19a)],'usage':'maka\x20aws\x20terminate-instance','validOpts':[a6z(0x175)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a6d;try{if(G(0x186)!==G(0x185)){const c=new AWS(),d=this[G(0x197)]['getProjectConfig'](),{appName:f}=d;let g=yield c[G(0x189)](),h=![];!b['ssl']&&('ycmIp'!=='ycmIp'?(d[G(0x1a2)](e),f[G(0x18d)](0x0)):h=yield Actions[G(0x18e)](G(0x18b)));let i=h?G(0x199):'',j=b[G(0x183)]?b[G(0x183)]:''+f+i,k=(yield Actions[G(0x19c)](G(0x196)+j+']'))||j;c['ec2createSG']({'description':G(0x17e),'name':k,'vpcId':g,'ssl':h});}else{const n=d[G(0x191)](e,arguments);return f=null,n;}}catch(n){console[G(0x1a2)](n),process[G(0x18d)](0x0);}});},a6u);
1
+ const a6y=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0xec))/0x1+-parseInt(v(0x101))/0x2*(-parseInt(v(0x100))/0x3)+parseInt(v(0x105))/0x4+-parseInt(v(0x107))/0x5+parseInt(v(0xe9))/0x6+parseInt(v(0xe1))/0x7*(parseInt(v(0xf9))/0x8)+-parseInt(v(0xff))/0x9*(parseInt(v(0xed))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xc3b81));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if(w(0xf5)!==w(0xe3)){if(c){if('hzKAD'!==w(0xfb)){const e=c[w(0xf0)](b,arguments);return c=null,e;}else d(e['next'](f));}}else c(d);}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a[x(0xe0)]()[x(0xe8)]('(((.+)+)+)+$')[x(0xe0)]()[x(0xfa)](a6a)['search'](x(0xdf));});a6a();var __awaiter=this&&this[a6y(0x109)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a6d;function h(k){const z=a6d;if(z(0xee)!=='nmqZo')try{j(d[z(0xfd)](k));}catch(l){g(l);}else return f instanceof g?h:new i(function(n){n(k);});}function i(k){const A=a6d;try{if(A(0xe4)!=='Uzmxp')j(d[A(0x103)](k));else{if(e){const m=i[A(0xf0)](j,arguments);return k=null,m;}}}catch(m){A(0xe7)===A(0xe7)?g(m):c(d);}}function j(k){const B=a6d;k['done']?f(k[B(0xe5)]):e(k[B(0xe5)])[B(0x108)](h,i);}j((d=d[C(0xf0)](a,b||[]))[C(0xfd)]());});};import a6u from'./aws.command.js';function a6c(){const F=['__awaiter','(((.+)+)+)+$','toString','7OmgOro','create','PtJlW','UqZxb','value','Open\x20port\x20443\x20for\x20SSL?','tPXAM','search','2505348tteWtU','name','getProjectConfig','895975fVlFEa','11767370WqmAzp','pmdCw','ec2createSG','apply','csg','fsi','-ssl','confirm','IWMsk','mcLRH','gJvYJ','ask','961768tKxkNl','constructor','CsUnW','Security\x20Group\x20Name:\x20[','next','help','9uJqbEO','9XRJyln','855716EeFEvW','exit','throw','chooseVPC','4246796wXFYOq','ssl','43375SWLUNH','then'];a6c=function(){return F;};return a6c();}function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xdf;let f=c[d];return f;},a6d(a,b);}import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a6y(0xe2)]({'name':'create-security-group','aliases':[a6y(0xf1)],'usage':'maka\x20aws\x20terminate-instance','validOpts':[a6y(0xfe)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a6d;try{if('mcLRH'===D(0xf6)){const c=new AWS(),d=this[D(0xf2)][D(0xeb)](),{appName:f}=d;let g=yield c[D(0x104)](),h=![];!b[D(0x106)]&&(D(0xf7)!=='EtDVw'?h=yield Actions[D(0xf4)](D(0xe6)):c(d));let i=h?D(0xf3):'',j=b['name']?b[D(0xea)]:''+f+i,k=(yield Actions[D(0xf8)](D(0xfc)+j+']'))||j;c[D(0xef)]({'description':'\x22Web\x20App\x22','name':k,'vpcId':g,'ssl':h});}else{const n=g?function(){const E=D;if(n){const u=q[E(0xf0)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}catch(n){console['error'](n),process[D(0x102)](0x0);}});},a6u);
@@ -1 +1 @@
1
- var a7y=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=-parseInt(v(0xb4))/0x1+parseInt(v(0xb0))/0x2+-parseInt(v(0xbb))/0x3+parseInt(v(0xb6))/0x4+-parseInt(v(0xa5))/0x5+-parseInt(v(0xc2))/0x6+parseInt(v(0xb7))/0x7*(parseInt(v(0xa6))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x72f65));function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0xa2;var f=c[d];return f;},a7d(a,b);}var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if(w(0xb3)!=='MTowV'){if(c){if(w(0xa9)!==w(0xa9))h['done']?i(j[w(0xa4)]):k(l[w(0xa4)])[w(0xc1)](m,n);else{var e=c[w(0xb9)](b,arguments);return c=null,e;}}}else d(e[w(0xb5)](f));}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var x=a7d;return a7a[x(0xa3)]()[x(0xac)](x(0xc0))[x(0xa3)]()[x(0xbc)](a7a)[x(0xac)]('(((.+)+)+)+$');});function a7c(){var E=['1260265xayXlD','153112FaaIlr','uiava','geYTb','ZTGAR','maka\x20aws\x20describe-instances','xMwVl','search','__awaiter','throw','help','1078402SaiLCU','Mftiy','jOhWF','ZLTyo','88220jQJqcc','next','143352Gjyibz','574yXDxne','exit','apply','describe-instances','2561994uyUCwg','constructor','error','done','myrxf','(((.+)+)+)+$','then','2875686YhlwnZ','ec2describeInstances','toString','value'];a7c=function(){return E;};return a7c();}a7a();var __awaiter=this&&this[a7y(0xad)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){var C=a7d;function h(k){var z=a7d;if(z(0xb1)!==z(0xb1)){if(e){var m=i[z(0xb9)](j,arguments);return k=null,m;}}else try{j(d[z(0xb5)](k));}catch(m){z(0xa7)!=='JmgGZ'?g(m):d(m[z(0xae)](f));}}function i(k){var A=a7d;try{if(A(0xab)===A(0xab))j(d[A(0xae)](k));else try{i(j['next'](k));}catch(m){m(m);}}catch(m){if(A(0xbf)==='mCBHe'){const o=new b();o[A(0xa2)]();}else g(m);}}function j(k){var B=a7d;if('tBseA'===B(0xb2))return c[B(0xa3)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](d)['search'](B(0xc0));else k[B(0xbe)]?f(k[B(0xa4)]):e(k[B(0xa4)])[B(0xc1)](h,i);}j((d=d[C(0xb9)](a,b||[]))[C(0xb5)]());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a7y(0xba),'aliases':['di'],'usage':a7y(0xaa),'validOpts':[a7y(0xaf)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var D=a7d;try{if('bzJAc'==='CLmQQ')try{i(j[D(0xae)](k));}catch(b){m(b);}else{const b=new AWS();b[D(0xa2)]();}}catch(c){D(0xa8)!=='geYTb'?c(d):(console[D(0xbd)](c),process[D(0xb8)](0x0));}});},a7u);
1
+ var a7y=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0x8a))/0x1+-parseInt(v(0x8d))/0x2*(-parseInt(v(0x83))/0x3)+-parseInt(v(0x7c))/0x4*(-parseInt(v(0x7d))/0x5)+parseInt(v(0x82))/0x6+parseInt(v(0x89))/0x7+parseInt(v(0x77))/0x8*(parseInt(v(0x7f))/0x9)+-parseInt(v(0x7e))/0xa*(parseInt(v(0x93))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x28e42));function a7c(){var F=['kROrV','create','search','maka\x20aws\x20describe-instances','next','2010750KLDrjG','178793oQJtNX','(((.+)+)+)+$','ec2describeInstances','2cxyntz','constructor','uEYvx','apply','ivRgq','done','1265cBeEPy','value','dUbhh','SUjpP','342344TvAjSX','__awaiter','describe-instances','help','then','20CMEUwM','293725mTRikq','113060lpHNcJ','63lmDUAz','rgrjb','toString','1871370VQEPDf','289398ERjMuI'];a7c=function(){return F;};return a7c();}var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if(c){var e=c[w(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var x=a7d;return a7a[x(0x81)]()[x(0x86)](x(0x8b))[x(0x81)]()[x(0x8e)](a7a)[x(0x86)](x(0x8b));});function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x74;var f=c[d];return f;},a7d(a,b);}a7a();var __awaiter=this&&this[a7y(0x78)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var z=a7d;'kROrV'!==z(0x84)?h[z(0x92)]?i(j['value']):k(l[z(0x74)])['then'](m,n):g(f);});}return new(c||(c=Promise))(function(f,g){var D=a7d;function h(k){var A=a7d;if(A(0x80)!=='rgrjb'){const m=new b();m['ec2describeInstances']();}else try{j(d[A(0x88)](k));}catch(m){g(m);}}function i(k){var B=a7d;if('ivRgq'===B(0x91))try{j(d['throw'](k));}catch(l){g(l);}else c(d);}function j(k){var C=a7d;C(0x8f)!==C(0x76)?k[C(0x92)]?f(k['value']):e(k['value'])[C(0x7b)](h,i):d(e[C(0x88)](f));}j((d=d[D(0x90)](a,b||[]))['next']());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7y(0x85)]({'name':a7y(0x79),'aliases':['di'],'usage':a7y(0x87),'validOpts':[a7y(0x7a)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a7d;if('HGJoD'===E(0x75))try{i(j[E(0x88)](k));}catch(b){m(b);}else try{const b=new AWS();b[E(0x8c)]();}catch(c){console['error'](c),process['exit'](0x0);}});},a7u);
@@ -1 +1 @@
1
- var a8z=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=-parseInt(v(0x192))/0x1+-parseInt(v(0x196))/0x2*(-parseInt(v(0x199))/0x3)+parseInt(v(0x19f))/0x4*(parseInt(v(0x19c))/0x5)+parseInt(v(0x1a3))/0x6*(parseInt(v(0x1aa))/0x7)+parseInt(v(0x1b0))/0x8*(parseInt(v(0x1ad))/0x9)+parseInt(v(0x1a4))/0xa*(-parseInt(v(0x193))/0xb)+-parseInt(v(0x18e))/0xc*(-parseInt(v(0x18f))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x2ce4d));var a8b=(function(){var a=!![];return function(b,c){var w=a8d;if(w(0x197)!==w(0x195)){var d=a?function(){var x=w;if(c){var e=c[x(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else c(d);};}()),a8a=a8b(this,function(){var y=a8d;return a8a['toString']()[y(0x198)]('(((.+)+)+)+$')['toString']()[y(0x1ae)](a8a)['search'](y(0x1a9));});function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x18e;var f=c[d];return f;},a8d(a,b);}a8a();function a8c(){var I=['3395403gugusB','value','OOpqZ','24788RhvhIe','uYNYE','search','54PquzJz','PFjiy','bCpCC','834035shaXZz','done','describe-key-pairs','4UzFrga','help','apply','uEdWb','12ybpZlR','10ARIfTb','dkp','error','DXoBs','suVrB','(((.+)+)+)+$','1172878AdYrAw','vNkGk','__awaiter','4437WTFquQ','constructor','UkqHD','144ziqggu','ec2describeKeys','create','cIwAi','VgGVb','next','79968pqHAGk','52KlUEgZ','hTuWn','maka\x20aws\x20describe-key-pairs','267979OPbHeD'];a8c=function(){return I;};return a8c();}var __awaiter=this&&this[a8z(0x1ac)]||function(a,b,c,d){function e(f){var B=a8d;if('nLJvl'!=='tyXWc')return f instanceof c?f:new c(function(g){var A=a8d;A(0x1af)!==A(0x1a2)?g(f):(d[A(0x1a6)](e),f['exit'](0x0));});else{if(e){var h=i[B(0x1a1)](j,arguments);return k=null,h;}}}return new(c||(c=Promise))(function(f,g){var G=a8d;function h(k){var C=a8d;if(C(0x1a8)!=='sXJIk')try{if('cIwAi'!==C(0x1b3))return e(this,void 0x0,void 0x0,function*(){var D=C;try{const s=new l();s[D(0x1b1)]();}catch(t){o['error'](t),p['exit'](0x0);}});else j(d[C(0x1b5)](k));}catch(m){g(m);}else{var o=d[C(0x1a1)](e,arguments);return f=null,o;}}function i(k){var E=a8d;if('gSzkY'===E(0x1a7))return f instanceof g?h:new i(function(m){m(k);});else try{E(0x19a)!==E(0x190)?j(d['throw'](k)):c(d);}catch(n){if(E(0x1b4)==='VgGVb')g(n);else try{i(j['next'](k));}catch(p){m(p);}}}function j(k){var F=a8d;k[F(0x19d)]?f(k[F(0x194)]):e(k['value'])['then'](h,i);}j((d=d['apply'](a,b||[]))[G(0x1b5)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8z(0x1b2)]({'name':a8z(0x19e),'aliases':[a8z(0x1a5)],'usage':a8z(0x191),'validOpts':[a8z(0x1a0)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var H=a8d;try{const a=new AWS();a[H(0x1b1)]();}catch(b){if(H(0x19b)!==H(0x1ab))console['error'](b),process['exit'](0x0);else{const d=new b();d[H(0x1b1)]();}}});},a8u);
1
+ var a8D=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0x173))/0x1+parseInt(v(0x177))/0x2*(-parseInt(v(0x181))/0x3)+parseInt(v(0x187))/0x4+parseInt(v(0x18d))/0x5+-parseInt(v(0x184))/0x6*(parseInt(v(0x185))/0x7)+-parseInt(v(0x178))/0x8+parseInt(v(0x180))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x21c1d));var a8b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){var w=a8d;return a8a[w(0x18b)]()[w(0x17c)](w(0x18c))[w(0x18b)]()['constructor'](a8a)[w(0x17c)](w(0x18c));});a8a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){var x=a8d;return x(0x188)!==x(0x188)?c['toString']()['search'](x(0x18c))[x(0x18b)]()[x(0x175)](d)['search'](x(0x18c)):f instanceof c?f:new c(function(h){var y=x;if('OXCGD'===y(0x189))h(f);else try{i(j['throw'](k));}catch(j){m(j);}});}return new(c||(c=Promise))(function(f,g){var C=a8d;function h(k){var z=a8d;try{j(d[z(0x18e)](k));}catch(l){if(z(0x17b)!==z(0x17b))return l(this,void 0x0,void 0x0,function*(){var A=z;try{const s=new l();s[A(0x174)]();}catch(t){o[A(0x182)](t),p[A(0x17a)](0x0);}});else g(l);}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){var B=a8d;'BQkLa'==='BQkLa'?k[B(0x17d)]?f(k[B(0x17f)]):e(k[B(0x17f)])['then'](h,i):h[B(0x17d)]?i(j[B(0x17f)]):k(l[B(0x17f)])[B(0x17e)](m,n);}j((d=d['apply'](a,b||[]))[C(0x18e)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x173;var f=c[d];return f;},a8d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';function a8c(){var F=['1851fEAsfe','error','maka\x20aws\x20describe-key-pairs','455496VrPsRw','7sIebwI','yCDnU','758824kEHxdU','QCTPL','OXCGD','describe-key-pairs','toString','(((.+)+)+)+$','184425nURwZO','next','87829gGixDz','ec2describeKeys','constructor','help','622IhbBkk','1449392mLgkLU','create','exit','pCnYz','search','done','then','value','2455434skvuDA'];a8c=function(){return F;};return a8c();}Command[a8D(0x179)]({'name':a8D(0x18a),'aliases':['dkp'],'usage':a8D(0x183),'validOpts':[a8D(0x176)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a8d;try{const a=new AWS();a[E(0x174)]();}catch(b){E(0x186)!=='tZNgn'?(console[E(0x182)](b),process[E(0x17a)](0x0)):(d[E(0x182)](b),f[E(0x17a)](0x0));}});},a8u);
@@ -1 +1 @@
1
- const a9z=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0x135))/0x1+parseInt(v(0x14b))/0x2+-parseInt(v(0x152))/0x3*(-parseInt(v(0x139))/0x4)+-parseInt(v(0x14c))/0x5+-parseInt(v(0x138))/0x6+-parseInt(v(0x137))/0x7+parseInt(v(0x140))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x55453));const a9b=(function(){let a=!![];return function(b,c){const w=a9d;if(w(0x13b)===w(0x13b)){const d=a?function(){const x=w;if(c){const e=c[x(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else c(d);};}()),a9a=a9b(this,function(){const y=a9d;return a9a['toString']()[y(0x133)](y(0x147))['toString']()['constructor'](a9a)[y(0x133)](y(0x147));});a9a();var __awaiter=this&&this[a9z(0x149)]||function(a,b,c,d){function e(f){const A=a9d;if(A(0x142)===A(0x142))return f instanceof c?f:new c(function(g){g(f);});else{if(e){const h=i[A(0x155)](j,arguments);return k=null,h;}}}return new(c||(c=Promise))(function(f,g){const F=a9d;function h(k){const B=a9d;if(B(0x151)!==B(0x151)){const n=g?function(){const C=B;if(n){const u=q[C(0x155)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else try{if('AChZA'!==B(0x145))j(d[B(0x132)](k));else try{i(j[B(0x13f)](k));}catch(o){m(o);}}catch(n){g(n);}}function i(k){const D=a9d;try{j(d[D(0x13f)](k));}catch(l){g(l);}}function j(k){const E=a9d;k['done']?f(k['value']):e(k[E(0x14a)])['then'](h,i);}j((d=d[F(0x155)](a,b||[]))[F(0x132)]());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x131;let f=c[d];return f;},a9d(a,b);}function a9c(){const H=['error','name','throw','8415264ruBukq','EgjVs','MbmiH','maka\x20aws\x20reboot-instance','\x20is\x20still\x20running.','KnThr','jvMpE','(((.+)+)+)+$','oueHs','__awaiter','value','917694zCcEtY','773515zfflLU','status','eWkUL','EdHbA','JZHgl','Aopop','933GQdpKE','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','apply','running','next','search','RZcfC','535425CIXXDr','rbi','2541826nBfVwA','3080850HYcrSE','5212fihktI','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','zbxAU','\x20Ready?'];a9c=function(){return H;};return a9c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'reboot-instance','aliases':[a9z(0x136)],'usage':a9z(0x143),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a9d;try{const a=new AWS();let b=yield a['chooseInstance']();if((b===null||b===void 0x0?void 0x0:b[G(0x14d)])===G(0x131)){let c=yield Actions['confirm'](G(0x13a)+b[G(0x13e)]+G(0x13c));c?G(0x150)!==G(0x148)?a['ec2rebootInstance']({'instanceId':b['instanceId']}):d(e[G(0x13f)](f)):G(0x14f)!==G(0x141)?Log['error'](G(0x153)+b[G(0x13e)]+G(0x144)):c(d);}else{if(G(0x14e)===G(0x146))try{i(j[G(0x132)](k));}catch(h){m(h);}else Log[G(0x13d)](G(0x154));}}catch(h){G(0x134)==='RZcfC'?(console[G(0x13d)](h),process['exit'](0x0)):c['error']('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+d[G(0x13e)]+'\x20is\x20still\x20running.');}});},a9u);
1
+ const a9z=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0x157))/0x1+parseInt(v(0x16a))/0x2+-parseInt(v(0x14d))/0x3*(parseInt(v(0x173))/0x4)+-parseInt(v(0x163))/0x5*(-parseInt(v(0x14e))/0x6)+-parseInt(v(0x166))/0x7*(parseInt(v(0x15e))/0x8)+-parseInt(v(0x156))/0x9+-parseInt(v(0x16b))/0xa*(-parseInt(v(0x155))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xe4b38));const a9b=(function(){let a=!![];return function(b,c){const w=a9d;if(w(0x158)!==w(0x158))d[w(0x14f)](e),f['exit'](0x0);else{const e=a?function(){const x=w;if(c){const f=c[x(0x164)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a9a=a9b(this,function(){const y=a9d;return a9a[y(0x175)]()['search'](y(0x161))[y(0x175)]()[y(0x159)](a9a)[y(0x15f)]('(((.+)+)+)+$');});a9a();var __awaiter=this&&this[a9z(0x167)]||function(a,b,c,d){function e(f){const A=a9d;if(A(0x151)===A(0x15d))h[A(0x15b)]?i(j[A(0x171)]):k(l[A(0x171)])[A(0x178)](m,n);else return f instanceof c?f:new c(function(h){const B=A;B(0x168)!==B(0x150)?h(f):c(d);});}return new(c||(c=Promise))(function(f,g){function h(k){const C=a9d;if(C(0x169)!==C(0x169))c[C(0x177)]({'instanceId':d['instanceId']});else try{if(C(0x15c)===C(0x152))return c['toString']()[C(0x15f)](C(0x161))['toString']()['constructor'](d)[C(0x15f)](C(0x161));else j(d['next'](k));}catch(n){g(n);}}function i(k){const D=a9d;if('ofYJN'!=='uJVZO')try{j(d[D(0x149)](k));}catch(l){g(l);}else try{i(j[D(0x16e)](k));}catch(o){m(o);}}function j(k){const E=a9d;'wKSHk'!=='wKSHk'?d(e[E(0x16e)](f)):k[E(0x15b)]?f(k['value']):e(k[E(0x171)])[E(0x178)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9c(){const G=['594832CfuSFu','__awaiter','EObaJ','iUIif','1245062wufMUd','280YVGZOP','instanceId','JJZZm','next','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','rbi','value','\x20Ready?','4aVQjIC','status','toString','AsoRq','ec2rebootInstance','then','chooseInstance','throw','create','reboot-instance','exit','132537tOVDNM','2963658WGMmeG','error','uNxtv','nLyXh','ljEps','confirm','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','994807dCbNNM','7304382QCbBHJ','1346317tiMqAO','oTohw','constructor','name','done','hLhRv','Wjpjb','48YMnTEq','search','\x20is\x20still\x20running.','(((.+)+)+)+$','RoJLl','5HrvqwB','apply','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'];a9c=function(){return G;};return a9c();}function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x148;let f=c[d];return f;},a9d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9z(0x14a)]({'name':a9z(0x14b),'aliases':[a9z(0x170)],'usage':'maka\x20aws\x20reboot-instance','validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a9d;try{const a=new AWS();let b=yield a[F(0x148)]();if((b===null||b===void 0x0?void 0x0:b[F(0x174)])==='running'){if(F(0x16d)===F(0x16d)){let c=yield Actions[F(0x153)](F(0x165)+b['name']+F(0x172));c?F(0x176)==='AsoRq'?a[F(0x177)]({'instanceId':b[F(0x16c)]}):c['error'](F(0x154)+d[F(0x15a)]+F(0x160)):Log['error']('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b['name']+F(0x160));}else c(d);}else{if('ZHYZx'===F(0x162))try{i(j['throw'](k));}catch(h){m(h);}else Log[F(0x14f)](F(0x16f));}}catch(h){console[F(0x14f)](h),process[F(0x14c)](0x0);}});},a9u);
@@ -1 +1 @@
1
- const a10J=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=-parseInt(F(0xdb))/0x1*(-parseInt(F(0xd6))/0x2)+-parseInt(F(0xbe))/0x3+-parseInt(F(0xa9))/0x4*(parseInt(F(0xca))/0x5)+parseInt(F(0xb1))/0x6+parseInt(F(0xce))/0x7*(parseInt(F(0xbb))/0x8)+parseInt(F(0xd5))/0x9+-parseInt(F(0xe4))/0xa*(parseInt(F(0xba))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x24ea2));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if(c){if(G(0xc0)==='SRKgZ'){const f=g?function(){const H=G;if(f){const u=q[H(0xae)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}else{const f=c[G(0xae)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const I=a10d;return a10a[I(0xb0)]()['search'](I(0xd9))[I(0xb0)]()[I(0xb9)](a10a)['search'](I(0xd9));});a10a();var __awaiter=this&&this[a10J(0xb6)]||function(a,b,c,d){function e(f){const K=a10d;if(K(0xb8)===K(0xbc))c(d);else return f instanceof c?f:new c(function(h){const L=K;if(L(0xc9)!==L(0xb4))h(f);else throw L(0xe3);});}return new(c||(c=Promise))(function(f,g){const P=a10d;function h(k){const M=a10d;if('KXzRU'!==M(0xaf))try{M(0xe8)==='OajSi'?j(d[M(0xdc)](k)):d(e['next'](f));}catch(m){if('SpLcb'==='ezCxx')try{i(j[M(0xdc)](k));}catch(o){m(o);}else g(m);}else return c[M(0xb0)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](d)[M(0xb7)](M(0xd9));}function i(k){const N=a10d;if('cmuix'!==N(0xe9)){if(e){const m=i['apply'](j,arguments);return k=null,m;}}else try{N(0xbd)===N(0xdd)?c(d):j(d[N(0xc7)](k));}catch(n){N(0xd4)===N(0xd4)?g(n):n[N(0xd7)]=f===null||g===void 0x0?void 0x0:h[N(0xa8)];}}function j(k){const O=a10d;if('iHZul'==='iHZul')k[O(0xe5)]?f(k[O(0xc2)]):e(k[O(0xc2)])[O(0xc3)](h,i);else{const m=d[O(0xae)](e,arguments);return f=null,m;}}j((d=d[P(0xae)](a,b||[]))[P(0xdc)]());});};function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xa7;let f=c[d];return f;},a10d(a,b);}function a10c(){const R=['OajSi','cmuix','private','publicIp','216076FDHSTg','\x20IP\x20to\x20','fsi','exit','nkEbY','apply','milZV','toString','1458096abuMsH','help','GadHU','gdecX','inherit','__awaiter','search','EJjQO','constructor','2261963YOVMzy','8152SORkzM','wMnZD','Gqtpt','123405RxxtMw','chooseInstance','uNyVE','key-name','value','then','join','writeFileSync','YKZic','throw','ask','qcpnb','5gTWFhH','LPeGL','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','utf8','1631XCZnNG','SOjgs','DGgGb','maka\x20aws\x20set-host','success','AHnYj','ReRCJ','2066328vqvQws','652XExoVJ','host','privateIp','(((.+)+)+)+$','ssh.json','470XjsyyH','next','JuiAN','EwfMk','public','env','readFileSync','parse','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','30PtlAvo','done','xHdaV','getConfigPath'];a10c=function(){return R;};return a10c();}import a10C from'path';import a10D from'fs';import{execSync}from'child_process';import a10E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'set-host','aliases':['sth'],'usage':a10J(0xd1),'mustBeInMakaProject':!![],'requiredOpts':[a10J(0xe0)],'validOpts':[a10J(0xb2),a10J(0xc1)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const Q=a10d;try{if(Q(0xcb)===Q(0xe6))e['host']=f===null||g===void 0x0?void 0x0:h['privateIp'];else{const d=new AWS(),f=this[Q(0xab)][Q(0xe7)](b[Q(0xe0)]);let g=yield d[Q(0xbf)](),h=JSON[Q(0xe2)](a10D[Q(0xe1)](a10C[Q(0xc4)](f,Q(0xda)),Q(0xcd))),i=(yield Actions[Q(0xc8)](Q(0xcc)))||Q(0xdf);if(i){if(Q(0xcf)!==Q(0xcf))e[Q(0xd7)]=f===null||g===void 0x0?void 0x0:h[Q(0xd8)];else{if(i===Q(0xdf)||i==='private'){if(Q(0xb3)!==Q(0xde)){if(i===Q(0xdf)){if(Q(0xd3)===Q(0xd0)){if(k==='public')u[Q(0xd7)]=v===null||w===void 0x0?void 0x0:x[Q(0xa8)];else p===Q(0xa7)&&(y[Q(0xd7)]=z===null||A===void 0x0?void 0x0:B['privateIp']);}else h[Q(0xd7)]=g===null||g===void 0x0?void 0x0:g[Q(0xa8)];}else i==='private'&&('qQwQU'!==Q(0xad)?h[Q(0xd7)]=g===null||g===void 0x0?void 0x0:g[Q(0xd8)]:h['done']?i(j[Q(0xc2)]):k(l[Q(0xc2)])[Q(0xc3)](m,n));}else c(d);}else{if(Q(0xc6)!==Q(0xc6))try{i(j['throw'](k));}catch(o){m(o);}else throw Q(0xe3);}}}else h['host']=g===null||g===void 0x0?void 0x0:g[Q(0xd8)];a10D[Q(0xc5)](a10C[Q(0xc4)](f,Q(0xda)),JSON['stringify'](h,null,0x2)),execSync('cat\x20'+a10C[Q(0xc4)](f,Q(0xda)),{'stdio':Q(0xb5)}),Log[Q(0xd2)]('\x0aSaved\x20host\x20'+i+Q(0xaa)+f+a10C['sep']+Q(0xda));}}catch(o){console['error'](o),process[Q(0xac)](0x0);}});},a10E);
1
+ const a10J=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=-parseInt(F(0x11a))/0x1+parseInt(F(0x128))/0x2+parseInt(F(0x118))/0x3*(-parseInt(F(0x11f))/0x4)+parseInt(F(0x13c))/0x5+-parseInt(F(0x145))/0x6*(-parseInt(F(0x122))/0x7)+parseInt(F(0x115))/0x8*(-parseInt(F(0x14f))/0x9)+parseInt(F(0x119))/0xa*(-parseInt(F(0x12c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xaf7f7));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if('SQmKX'===G(0x142)){if(c){if('GCFjF'!==G(0x132)){const f=g?function(){const H=G;if(f){const u=q[H(0x12f)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}else{const f=c[G(0x12f)](b,arguments);return c=null,f;}}}else try{i(j[G(0x13f)](k));}catch(h){m(h);}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const I=a10d;return a10a[I(0x139)]()[I(0x141)](I(0x14d))['toString']()['constructor'](a10a)[I(0x141)]('(((.+)+)+)+$');});a10a();var __awaiter=this&&this[a10J(0x143)]||function(a,b,c,d){function e(f){const K=a10d;if(K(0x13a)==='sDviR')h[K(0x138)]?i(j['value']):k(l[K(0x121)])[K(0x146)](m,n);else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const O=a10d;function h(k){const L=a10d;if('HjEcb'!==L(0x11d))try{j(d['next'](k));}catch(l){L(0x14b)==='CVHiN'?g(l):d(l[L(0x13f)](f));}else return c['toString']()['search'](L(0x14d))[L(0x139)]()['constructor'](d)[L(0x141)]('(((.+)+)+)+$');}function i(k){const M=a10d;try{j(d[M(0x11b)](k));}catch(l){g(l);}}function j(k){const N=a10d;k[N(0x138)]?f(k[N(0x121)]):e(k[N(0x121)])['then'](h,i);}j((d=d[O(0x12f)](a,b||[]))[O(0x13f)]());});};import a10C from'path';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x114;let f=c[d];return f;},a10d(a,b);}import a10D from'fs';import{execSync}from'child_process';function a10c(){const Q=['ssh.json','GCFjF','host','KltcX','LsmGd','DUWsj','fsi','done','toString','SluVy','rbAsC','6917625TNfzNx','privateIp','\x0aSaved\x20host\x20','next','exit','search','SQmKX','__awaiter','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','5912538JPzTVo','then','key-name','public','HynVH','error','CVHiN','set-host','(((.+)+)+)+$','stringify','9189QHMmNL','sep','4984YqdGpi','readFileSync','utf8','2431590hNVFtz','59790JVHjLw','1326295CdTLhL','throw','\x20IP\x20to\x20','tIVjo','private','4fkOGDo','help','value','7ZvIuOO','publicIp','XzOJt','QXeLP','join','success','2520632uTGQDw','maka\x20aws\x20set-host','inherit','chooseInstance','253SylTjr','parse','create','apply','getConfigPath'];a10c=function(){return Q;};return a10c();}import a10E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10J(0x12e)]({'name':a10J(0x14c),'aliases':['sth'],'usage':a10J(0x129),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a10J(0x120),a10J(0x147)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const P=a10d;if(P(0x125)===P(0x125))try{const c=new AWS(),d=this[P(0x137)][P(0x130)](b['env']);let f=yield c[P(0x12b)](),g=JSON[P(0x12d)](a10D[P(0x116)](a10C[P(0x126)](d,P(0x131)),P(0x117))),h=(yield Actions['ask'](P(0x144)))||P(0x148);if(h){if(h===P(0x148)||h===P(0x11e)){if(h==='public')P(0x124)!=='XzOJt'?c(d):g[P(0x133)]=f===null||f===void 0x0?void 0x0:f[P(0x123)];else h===P(0x11e)&&(P(0x136)===P(0x136)?g['host']=f===null||f===void 0x0?void 0x0:f['privateIp']:d(e[P(0x11b)](f)));}else{if(P(0x135)!==P(0x13b))throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';else{if(e){const m=i[P(0x12f)](j,arguments);return k=null,m;}}}}else{if(P(0x149)!==P(0x134))g[P(0x133)]=f===null||f===void 0x0?void 0x0:f[P(0x13d)];else return f instanceof g?h:new i(function(m){m(k);});}a10D['writeFileSync'](a10C[P(0x126)](d,'ssh.json'),JSON[P(0x14e)](g,null,0x2)),execSync('cat\x20'+a10C[P(0x126)](d,'ssh.json'),{'stdio':P(0x12a)}),Log[P(0x127)](P(0x13e)+h+P(0x11c)+d+a10C[P(0x114)]+P(0x131));}catch(m){console[P(0x14a)](m),process[P(0x140)](0x0);}else c(d);});},a10E);
@@ -1 +1 @@
1
- const a11z=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=-parseInt(v(0x16d))/0x1*(-parseInt(v(0x187))/0x2)+parseInt(v(0x164))/0x3+parseInt(v(0x18d))/0x4+parseInt(v(0x184))/0x5+parseInt(v(0x181))/0x6+parseInt(v(0x186))/0x7+parseInt(v(0x176))/0x8*(-parseInt(v(0x190))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xb6058));const a11b=(function(){let a=!![];return function(b,c){const w=a11d;if('fDtcy'!==w(0x17b)){const d=a?function(){const x=w;if(c){const e=c[x(0x17a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else try{i(j[w(0x179)](k));}catch(f){m(f);}};}()),a11a=a11b(this,function(){const y=a11d;return a11a['toString']()[y(0x180)](y(0x17e))[y(0x188)]()['constructor'](a11a)[y(0x180)](y(0x17e));});a11a();var __awaiter=this&&this[a11z(0x191)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const A=a11d;A(0x16a)===A(0x178)?c(d):g(f);});}return new(c||(c=Promise))(function(f,g){const E=a11d;function h(k){const B=a11d;if(B(0x18a)==='tYZDm'){if(e){const m=i[B(0x17a)](j,arguments);return k=null,m;}}else try{B(0x185)===B(0x185)?j(d[B(0x179)](k)):c(d);}catch(n){g(n);}}function i(k){const C=a11d;try{j(d[C(0x168)](k));}catch(l){g(l);}}function j(k){const D=a11d;k[D(0x173)]?f(k[D(0x18e)]):e(k[D(0x18e)])[D(0x165)](h,i);}j((d=d['apply'](a,b||[]))[E(0x179)]());});};import a11u from'./aws.command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x164;let f=c[d];return f;},a11d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a11z(0x170)]({'name':a11z(0x18b),'aliases':['ti'],'usage':a11z(0x17f),'validOpts':[a11z(0x18f)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a11d;try{const a=new AWS();let b=yield a[F(0x167)]();if((b===null||b===void 0x0?void 0x0:b[F(0x17c)])===F(0x175)){if(F(0x183)===F(0x183)){let c=yield Actions[F(0x171)](F(0x16e)+b[F(0x189)]+F(0x17d));if(c)a['ec2terminateInstance']({'instanceId':b[F(0x169)]});else{if(F(0x172)===F(0x172))Log[F(0x182)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b['name']+F(0x16c));else{const f=d['apply'](e,arguments);return f=null,f;}}}else c(d);}else F(0x177)===F(0x18c)?(d[F(0x182)](e),f['exit'](0x0)):Log[F(0x182)](F(0x16f));}catch(h){F(0x16b)!==F(0x174)?(console[F(0x182)](h),process[F(0x166)](0x0)):b['error'](F(0x16f));}});},a11u);function a11c(){const G=['maka\x20aws\x20terminate-instance','search','6617484wtKfGE','error','sJWpu','5408205ltMYBv','WOWqV','4416972kspGyI','766XsQnrb','toString','name','zYESL','terminate-instance','kRYpv','1098256ahqKey','value','help','549405ssIvVD','__awaiter','2603472tmrszb','then','exit','chooseInstance','throw','instanceId','YxAGM','deZQd','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','857IlPxuG','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','create','confirm','ocDDZ','done','wTJFQ','running','464vTJhIy','EUMsB','BItSP','next','apply','lhdZC','status','\x20Ready?','(((.+)+)+)+$'];a11c=function(){return G;};return a11c();}
1
+ function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x124;let f=c[d];return f;},a11d(a,b);}const a11y=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x13c))/0x1*(-parseInt(v(0x13a))/0x2)+parseInt(v(0x151))/0x3*(-parseInt(v(0x126))/0x4)+-parseInt(v(0x127))/0x5+parseInt(v(0x14f))/0x6+parseInt(v(0x124))/0x7+parseInt(v(0x149))/0x8*(-parseInt(v(0x144))/0x9)+parseInt(v(0x146))/0xa*(parseInt(v(0x14c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xbffdf));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(w(0x147)===w(0x147)){if(c){if(w(0x13e)===w(0x13e)){const e=c[w(0x12d)](b,arguments);return c=null,e;}else d['error'](e),f[w(0x135)](0x0);}}else d(e[w(0x13b)](f));}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a[x(0x148)]()[x(0x145)]('(((.+)+)+)+$')[x(0x148)]()[x(0x142)](a11a)[x(0x145)](x(0x12a));});a11a();var __awaiter=this&&this[a11y(0x131)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a11d;function h(k){const z=a11d;if(z(0x140)!==z(0x140))c(d);else try{'DkkMg'===z(0x128)?c(d):j(d['next'](k));}catch(n){g(n);}}function i(k){const A=a11d;try{A(0x138)==='whTNw'?c[A(0x134)]({'instanceId':d[A(0x14e)]}):j(d[A(0x13b)](k));}catch(m){g(m);}}function j(k){const B=a11d;k['done']?f(k[B(0x141)]):e(k['value'])[B(0x14b)](h,i);}j((d=d[C(0x12d)](a,b||[]))[C(0x137)]());});};import a11u from'./aws.command.js';import{Command}from'../../command.js';function a11c(){const E=['exit','name','next','oMAfA','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','38Ebguhg','throw','59095VzKrxT','xAbHb','syamI','OwCuk','uoZtT','value','constructor','running','9CBPPZv','search','819170vaoxHk','sksXc','toString','1115728HiCmES','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','then','187GGrQdL','chooseInstance','instanceId','8800278uyeiQT','error','8781PReshY','2911608HFHAlL','maka\x20aws\x20terminate-instance','28kiCxqM','6030435uawGhG','fOGfM','terminate-instance','(((.+)+)+)+$','create','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','apply','\x20Ready?','confirm','LGLvP','__awaiter','JCvIS','sTZiv','ec2terminateInstance'];a11c=function(){return E;};return a11c();}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a11y(0x12b)]({'name':a11y(0x129),'aliases':['ti'],'usage':a11y(0x125),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a11d;if(D(0x13d)!=='uyBHP')try{const a=new AWS();let b=yield a[D(0x14d)]();if((b===null||b===void 0x0?void 0x0:b['status'])===D(0x143)){if(D(0x13f)===D(0x133))d(e[D(0x137)](f));else{let d=yield Actions[D(0x12f)](D(0x139)+b[D(0x136)]+D(0x12e));d?a['ec2terminateInstance']({'instanceId':b[D(0x14e)]}):Log[D(0x150)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b['name']+D(0x12c));}}else D(0x130)===D(0x132)?b['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.'):Log['error'](D(0x14a));}catch(g){console[D(0x150)](g),process[D(0x135)](0x0);}else c[D(0x150)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+d['name']+D(0x12c));});},a11u);
@@ -1 +1 @@
1
- (function(a,b){var u=a12d,c=a();while(!![]){try{var d=parseInt(u(0x7d))/0x1+parseInt(u(0x7c))/0x2+-parseInt(u(0x78))/0x3+-parseInt(u(0x7b))/0x4+parseInt(u(0x79))/0x5+-parseInt(u(0x7f))/0x6*(-parseInt(u(0x82))/0x7)+parseInt(u(0x7a))/0x8*(-parseInt(u(0x81))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xf0303));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var v=a12d;return a12a[v(0x80)]()[v(0x83)](v(0x7e))[v(0x80)]()['constructor'](a12a)['search'](v(0x7e));});function a12c(){var w=['2096254EopeCL','197604GNLNfN','(((.+)+)+)+$','7700082BbRDiT','toString','1834965fsMnFB','7vNHktj','search','2140821tBXMaO','8547535otjMPq','40GMxklq','6086968pKijvB'];a12c=function(){return w;};return a12c();}a12a();function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x78;var f=c[d];return f;},a12d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
1
+ function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x132;var f=c[d];return f;},a12d(a,b);}function a12c(){var x=['7868BYnwHd','5264805ZMwgpJ','10913118GyQiEY','7062zzJtiV','apply','10843893LUbxeu','4303250nIFjaM','4790ubojQN','2ZdQSQF','toString','(((.+)+)+)+$','1767zFaaoT','929063BdPPTz','search','8HxMdSc'];a12c=function(){return x;};return a12c();}(function(a,b){var u=a12d,c=a();while(!![]){try{var d=-parseInt(u(0x13e))/0x1*(parseInt(u(0x13a))/0x2)+parseInt(u(0x13d))/0x3*(parseInt(u(0x132))/0x4)+parseInt(u(0x138))/0x5+-parseInt(u(0x134))/0x6+parseInt(u(0x133))/0x7+-parseInt(u(0x140))/0x8*(-parseInt(u(0x137))/0x9)+-parseInt(u(0x139))/0xa*(parseInt(u(0x135))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xe0cc3));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a12d;if(c){var e=c[v(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var w=a12d;return a12a[w(0x13b)]()[w(0x13f)](w(0x13c))['toString']()['constructor'](a12a)[w(0x13f)](w(0x13c));});a12a();import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x8e;let f=c[d];return f;},a13d(a,b);}const a13y=a13d;(function(a,b){const w=a13d,c=a();while(!![]){try{const d=-parseInt(w(0xb7))/0x1+parseInt(w(0xa4))/0x2+-parseInt(w(0xa3))/0x3+parseInt(w(0xb1))/0x4+-parseInt(w(0x93))/0x5+-parseInt(w(0xb2))/0x6+-parseInt(w(0x90))/0x7*(-parseInt(w(0xb4))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xe90db));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const x=a13d;return a13a[x(0xa7)]()['search'](x(0xa1))[x(0xa7)]()[x(0x9b)](a13a)['search']('(((.+)+)+)+$');});a13a();var __awaiter=this&&this[a13y(0xa9)]||function(a,b,c,d){function e(f){const z=a13d;if('SPGFC'===z(0x97)){const h=d[z(0x91)](e,arguments);return f=null,h;}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const E=a13d;function h(k){const A=a13d;if('BMMVX'===A(0xbd))try{if(A(0xa6)!==A(0xb3))j(d['next'](k));else throw b['error'](A(0x94));}catch(m){g(m);}else{if(e){const o=i[A(0x91)](j,arguments);return k=null,o;}}}function i(k){const B=a13d;if('pTIos'!==B(0xaa))try{B(0xb0)!==B(0xbb)?j(d[B(0xa0)](k)):(d[B(0x8f)](e),f['exit'](0x0));}catch(m){if(B(0xbc)===B(0x92)){const o=g?function(){const C=B;if(o){const u=q[C(0x91)](r,arguments);return s=null,u;}}:function(){};return l=![],o;}else g(m);}else this[B(0x9d)](d,e,f);}function j(k){const D=a13d;k['done']?f(k['value']):e(k[D(0xbe)])[D(0x9a)](h,i);}j((d=d[E(0x91)](a,b||[]))[E(0x9c)]());});};import a13u from'path';function a13c(){const H=['ONvah','8tWKNjp','HdCXV','argv','1381501nVrFPL','fsi','QMXHh','exit','FLPjG','CSobY','BMMVX','value','build','--force','create','error','17674923KkOxLO','apply','dIinE','6039845QqKxBU','Aborted.','maka\x20build','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','KiYDE','app.tar.gz','done','then','constructor','next','runSubCommand','ndhTG','pathFromProject','throw','(((.+)+)+)+$','confirm','564120CXgESq','792476whbKFm','force','KCLUW','toString','findSubCommand','__awaiter','QLwuP','join','forEach','existsSync','mbpIZ','invokeMeteorCommand','tvgBK','7617292fTfTCb','6560718YYpmKj'];a13c=function(){return H;};return a13c();}import a13v from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a13y(0x8e)]({'name':'build','usage':'maka\x20build\x20[--force]','validOpts':[a13y(0xa5)],'description':a13y(0x96),'mustBeInMakaProject':!![],'examples':[a13y(0x95),'maka\x20build:docker']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a13d;try{if(F(0xb5)!==F(0x9e)){let c=a[0x0],d=this[F(0xa8)](c);if(d)this['runSubCommand'](c,a,b);else{if(F(0xae)!==F(0xae))d(e['throw'](f));else{let g=b['force'],h=[this['fsi'][F(0x9f)]({'pathParts':['build']})]['concat'](process[F(0xb6)]['slice'](0x3)),i=a13u[F(0xab)](this[F(0xb8)][F(0x9f)]({}),F(0xbf),F(0x98));if(a13v[F(0xad)](i)){let j=g!==null&&g!==void 0x0?g:yield Actions[F(0xa2)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!j){if(F(0xb9)!==F(0xb9))h[F(0x99)]?i(j[F(0xbe)]):k(l[F(0xbe)])[F(0x9a)](m,n);else throw Log[F(0x8f)](F(0x94));}}h[F(0xac)]((l,m)=>{const G=F;l===G(0xc0)&&h['splice'](m,0x2);}),this[F(0xb8)][F(0xaf)](F(0xbf),h);}}}else d(e[F(0x9c)](f));}catch(m){console[F(0x8f)](m),process[F(0xba)](0x0);}});});export default BuildCommand;
1
+ const a13z=a13d;(function(a,b){const w=a13d,c=a();while(!![]){try{const d=-parseInt(w(0x8c))/0x1+-parseInt(w(0x9c))/0x2+parseInt(w(0x74))/0x3*(-parseInt(w(0x72))/0x4)+-parseInt(w(0x6c))/0x5+parseInt(w(0x83))/0x6*(parseInt(w(0x6f))/0x7)+-parseInt(w(0x89))/0x8+parseInt(w(0x73))/0x9*(parseInt(w(0x86))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xe9ea5));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a13d;if(x(0x8b)===x(0x6d))this[x(0x94)](d,e,f);else{if(c){const f=c[x(0x7c)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const y=a13d;return a13a['toString']()['search'](y(0x7e))[y(0x91)]()[y(0x7b)](a13a)[y(0x93)](y(0x7e));});a13a();var __awaiter=this&&this[a13z(0x7a)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){function h(k){const A=a13d;try{j(d[A(0x90)](k));}catch(l){if(A(0x97)!==A(0x97)){const n=d[A(0x7c)](l,arguments);return f=null,n;}else g(l);}}function i(k){const B=a13d;if(B(0x78)!==B(0x87))try{j(d[B(0x9b)](k));}catch(l){B(0x82)===B(0x6e)?(d[B(0x9d)](l),f['exit'](0x0)):g(l);}else throw b[B(0x9d)](B(0x8a));}function j(k){const C=a13d;k[C(0x99)]?f(k['value']):e(k[C(0x7f)])['then'](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a13u from'path';import a13v from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13c(){const F=['6657740ANQXmV','WIdWw','kEjde','7Silecn','forEach','force','132WFhYiK','9swikdq','71976PGWPYc','exit','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','--force','PQqBt','WsHuV','__awaiter','constructor','apply','app.tar.gz','(((.+)+)+)+$','value','pathFromProject','fsi','Gcjba','7501566xztmqQ','maka\x20build\x20[--force]','build','53211570JyHicx','EBbLb','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','957696aXETOW','Aborted.','aqYjC','1593706eSWrkN','argv','join','daELh','next','toString','create','search','runSubCommand','maka\x20build:docker','concat','UjGTm','splice','done','invokeMeteorCommand','throw','3553198xOAXOF','error','maka\x20build','confirm','rPAqN'];a13c=function(){return F;};return a13c();}function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x69;let f=c[d];return f;},a13d(a,b);}const BuildCommand=Command[a13z(0x92)]({'name':a13z(0x85),'usage':a13z(0x84),'validOpts':[a13z(0x71)],'description':a13z(0x76),'mustBeInMakaProject':!![],'examples':[a13z(0x69),a13z(0x95)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a13d;if(D(0x6b)!==D(0x6b))d(e[D(0x9b)](f));else try{let d=a[0x0],f=this['findSubCommand'](d);if(f)this['runSubCommand'](d,a,b);else{let g=b[D(0x71)],h=[this[D(0x81)][D(0x80)]({'pathParts':[D(0x85)]})][D(0x96)](process[D(0x8d)]['slice'](0x3)),i=a13u[D(0x8e)](this[D(0x81)][D(0x80)]({}),D(0x85),D(0x7d));if(a13v['existsSync'](i)){let j=g!==null&&g!==void 0x0?g:yield Actions[D(0x6a)](D(0x88));if(!j)throw Log[D(0x9d)](D(0x8a));}h[D(0x70)]((k,l)=>{const E=D;k===E(0x77)&&h[E(0x98)](l,0x2);}),this[D(0x81)][D(0x9a)](D(0x85),h);}}catch(k){D(0x79)!==D(0x8f)?(console['error'](k),process[D(0x75)](0x0)):c(d);}});});export default BuildCommand;
@@ -1 +1 @@
1
- const a14I=a14d;(function(a,b){const E=a14d,c=a();while(!![]){try{const d=parseInt(E(0x107))/0x1+parseInt(E(0x127))/0x2*(parseInt(E(0x124))/0x3)+parseInt(E(0x12b))/0x4+-parseInt(E(0xe6))/0x5+parseInt(E(0xf1))/0x6*(parseInt(E(0x12c))/0x7)+-parseInt(E(0xdc))/0x8*(-parseInt(E(0xe7))/0x9)+-parseInt(E(0x11a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xa38f6));const a14b=(function(){let a=!![];return function(b,c){const F=a14d;if(F(0x11f)!==F(0x11f))return c['toString']()[F(0xe5)]('(((.+)+)+)+$')[F(0xda)]()[F(0xdb)](d)['search'](F(0x11c));else{const e=a?function(){const G=F;if(G(0x11d)!=='lqwKQ'){if(c){const f=c['apply'](b,arguments);return c=null,f;}}else c(d);}:function(){};return a=![],e;}};}()),a14a=a14b(this,function(){const H=a14d;return a14a[H(0xda)]()[H(0xe5)]('(((.+)+)+)+$')['toString']()[H(0xdb)](a14a)[H(0xe5)](H(0x11c));});a14a();function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xd3;let f=c[d];return f;},a14d(a,b);}var __awaiter=this&&this[a14I(0x10d)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){function h(k){const J=a14d;try{j(d[J(0xf2)](k));}catch(l){if(J(0x109)===J(0x113)){const n=g?function(){const K=J;if(n){const u=q[K(0xe9)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else g(l);}}function i(k){const L=a14d;if(L(0xec)!==L(0x105))try{j(d[L(0xe1)](k));}catch(l){g(l);}else d(e[L(0xf2)](f));}function j(k){const M=a14d;if(M(0x11b)!==M(0x11b))try{i(j[M(0xf2)](k));}catch(m){m(m);}else k[M(0xfd)]?f(k['value']):e(k[M(0xed)])['then'](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';function a14c(){const O=['dockerfile','745437xhdCXO','invoke','UReum','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','nuOtY','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','__awaiter','length','serverName','phlgl','tag','.maka','HtzrC','existsSync','inherit','app','os.linux.x86_64','replace','ignore','14215420gFeGMm','SPpkB','(((.+)+)+)+$','mEJZV','build','yooDE','fsi','cert','ask','serverPort','165PRvytO','config.json','copyFileSync','428VzsNTH','https','isDirectory','docker','4058248UmEnXU','244867QJZbZj','cert.pem','Gawba','appName','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','isFile','push','\x20node\x20--version','toString','constructor','242216DFeNRc','getProjectConfig','win32','setProjectConfig','platforms','throw','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','create','443','search','1035265WuWUvz','63QwxlAj','force','apply','\x20npm\x20install\x20--save','Mobile\x20server\x20port:\x20','TSwsy','value','checkConfigExists','--architecture','_keys','54pBbGRV','next','config','hmLEw','notice','findAppDirectory','.meteor','vPAps','-t\x20','http','docker\x20build\x20--build-arg\x20NODE_VERSION=','pathFromProject','done','findGenerator','then','meteor.bat','meteor','confirm','maka\x20build:docker','join','jCVgz'];a14c=function(){return O;};return a14c();}import a14x from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a14I(0xe3)]({'name':'docker','usage':a14I(0x103),'validOpts':[a14I(0xe8),'tag'],'description':a14I(0x10a),'mustBeInMakaProject':!![],'examples':[a14I(0x103)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const N=a14d;try{const c=yield this[N(0x120)]['getGlobalConfig'](),d=yield this[N(0x120)][N(0xdd)]();let f=process['platform']===N(0xde)?N(0x100):N(0x101),g=this[N(0x120)][N(0xfc)]({}),h=a14v['join'](g,'Dockerfile');if(!this[N(0x120)][N(0xd7)](h)){if('hmLEw'!==N(0xf4))c(d);else{const s=a14x[N(0xfe)]('dockerfile');s&&(yield s[N(0x108)]([N(0x106)],{'cwd':g,'config':d}));}}const i=this['fsi'][N(0xee)](N(0x12a));if(!i){const t=a14x[N(0xfe)](N(0xf3));if(t){if(N(0xd4)===N(0xf8))return f instanceof g?h:new i(function(v){v(k);});else yield t[N(0x108)](['docker'],{'cwd':g,'config':d,'isDocker':!![]});}}if(this[N(0x120)]['isFile'](c[N(0x121)])){if(N(0x110)===N(0x10b))h[N(0xfd)]?i(j['value']):k(l['value'])[N(0xff)](m,n);else{const w=this[N(0x120)][N(0x129)](a14v[N(0x104)]('config',N(0x12a),N(0xf0)));!w&&a14w['mkdirSync'](a14v[N(0x104)](N(0xf3),N(0x12a),N(0xf0))),a14w[N(0x126)](c[N(0x121)],a14v[N(0x104)](g,N(0xf3),N(0x12a),N(0xf0),N(0xd3)));}}let j=this[N(0x120)][N(0xfc)]({}),k=execSync(f+N(0xd9))['toString']()[N(0x118)](/\r?\n|\r/g,''),l=N(0xf9)+paramCase(d[N(0xd5)])+':latest';b[N(0x111)]&&(l='-t\x20'+b[N(0x111)]);let m=['build',a14v[N(0x104)](this[N(0x120)]['findProjectDirectory'](),N(0x11e)),N(0xef),N(0x117)],n=this['fsi']['readFileLines'](a14v[N(0x104)](this[N(0x120)][N(0xfc)]({}),N(0x116),N(0xf7),N(0xe0))),o=n['length']>0x2?!![]:![];if(o){let x=d[N(0x10f)]?d['serverName']:yield Actions['ask'](N(0xd6)),y=d[N(0x123)]?d[N(0x123)]:yield Actions[N(0x122)](N(0xeb));if(x[N(0x10e)]==0x0||y[N(0x10e)]==0x0)throw N(0x10c);let z=y==N(0xe4)?N(0x128):N(0xfa);m[N(0xd8)]('--server='+z+'://'+x+':'+y);if(!d[N(0x10f)]&&!d[N(0x123)]){let A=yield Actions[N(0x102)]('Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?');A&&(this[N(0x120)][N(0xdf)](N(0x10f),x),this[N(0x120)][N(0xdf)]('serverPort',y),Log['notice']('Stored\x20server\x20config\x20to\x20'+a14v[N(0x104)](N(0x112),N(0x125))));}}let p=a14v[N(0x104)](this[N(0x120)][N(0xfc)]({}),N(0x11e),'app.tar.gz');if(a14w[N(0x114)](p)){const B=yield Actions[N(0x102)](N(0xe2));let C=B;C&&(execSync(f+N(0xea),{'cwd':this[N(0x120)]['findAppDirectory'](),'stdio':N(0x119)}),execSync(f+'\x20\x20'+m[N(0x104)]('\x20'),{'cwd':this[N(0x120)][N(0xf6)](),'stdio':N(0x115)}));}else execSync(f+'\x20npm\x20install\x20--save',{'cwd':this[N(0x120)][N(0xf6)](),'stdio':N(0x119)}),execSync(f+'\x20'+m[N(0x104)]('\x20'),{'cwd':this[N(0x120)][N(0xf6)](),'stdio':N(0x115)});Log[N(0xf5)]('Using\x20Node\x20Version:\x20'+k),Log['notice']('Tagging\x20Docker\x20Image:\x20'+l),Log[N(0xf5)]('Build\x20Path:\x20'+j);const q=N(0xfb)+k+'\x20'+l+'\x20'+j;execSync(q,{'stdio':'inherit'}),Log[N(0xf5)]('Try\x20\x27maka\x20run\x20--docker\x27');}catch(D){console['error'](D),process['exit'](0x0);}});},a14u);
1
+ function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x170;let f=c[d];return f;},a14d(a,b);}const a14Q=a14d;(function(a,b){const K=a14d,c=a();while(!![]){try{const d=parseInt(K(0x1bb))/0x1+-parseInt(K(0x174))/0x2*(parseInt(K(0x17a))/0x3)+parseInt(K(0x183))/0x4+-parseInt(K(0x1c3))/0x5*(-parseInt(K(0x195))/0x6)+parseInt(K(0x1cf))/0x7*(-parseInt(K(0x19a))/0x8)+-parseInt(K(0x1d6))/0x9+-parseInt(K(0x1b6))/0xa*(-parseInt(K(0x1ab))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x37946));const a14b=(function(){let a=!![];return function(b,c){const L=a14d;if(L(0x1af)===L(0x1ae))this['fsi']['setProjectConfig'](L(0x171),e),this[L(0x1d4)][L(0x1b3)](L(0x185),f),g[L(0x19c)](L(0x1ba)+h['join']('.maka',L(0x175)));else{const e=a?function(){if(c){const f=c['apply'](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a14a=a14b(this,function(){const M=a14d;return a14a[M(0x187)]()[M(0x1aa)](M(0x181))[M(0x187)]()[M(0x1a5)](a14a)['search'](M(0x181));});a14a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){function h(k){const N=a14d;try{j(d[N(0x1c1)](k));}catch(l){g(l);}}function i(k){const O=a14d;try{if(O(0x182)===O(0x182))j(d[O(0x1b7)](k));else try{i(j[O(0x1c1)](k));}catch(m){m(m);}}catch(m){g(m);}}function j(k){const P=a14d;k[P(0x18f)]?f(k['value']):e(k[P(0x1a4)])['then'](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a14x from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';function a14c(){const T=['getProjectConfig','join','push','maka\x20build:docker','getGlobalConfig','7PajSCB','SgGgv','cert.pem','BePRO','meteor.bat','fsi','app.tar.gz','1387674FYGkZm','xQMRc','confirm','serverName','os.linux.x86_64','apply','12106owTTYP','config.json','RpGxf','HZyGI','invoke','Build\x20Path:\x20','66vVHmzm','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','\x20npm\x20install\x20--save','copyFileSync','--architecture','docker','--server=','(((.+)+)+)+$','TKxaD','172952WvmyNA','dockerfile','serverPort','build','toString','Try\x20\x27maka\x20run\x20--docker\x27','findGenerator','UMBtW','findAppDirectory','error','kkfbW',':latest','done','.meteor','avULk','platforms','isFile','KPSKV','78apCPzk','tag','replace','inherit','mkdirSync','264248UFBnMO','Mobile\x20server\x20port:\x20','notice','_keys','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','LVQwj','findProjectDirectory','GJrOH','exit','.maka','value','constructor','cert','docker\x20build\x20--build-arg\x20NODE_VERSION=','win32','create','search','33osjeFG','config','checkConfigExists','XTedP','zpmeJ','pathFromProject','443','ignore','setProjectConfig','length','app','881990OpNYoB','throw','\x20node\x20--version','force','Stored\x20server\x20config\x20to\x20','13846dPnKfl','isDirectory','://','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','aGFqC','-t\x20','next','existsSync','87060IZeGbv','http','Tagging\x20Docker\x20Image:\x20','Dockerfile','Using\x20Node\x20Version:\x20','readFileLines','ask'];a14c=function(){return T;};return a14c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a14Q(0x1a9)]({'name':'docker','usage':a14Q(0x1cd),'validOpts':[a14Q(0x1b9),a14Q(0x196)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','mustBeInMakaProject':!![],'examples':[a14Q(0x1cd)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const R=a14d;try{if(R(0x18d)==='kkfbW'){const c=yield this[R(0x1d4)][R(0x1ce)](),d=yield this[R(0x1d4)][R(0x1ca)]();let f=process['platform']===R(0x1a8)?R(0x1d3):'meteor',g=this['fsi'][R(0x1b0)]({}),h=a14v[R(0x1cb)](g,R(0x1c6));if(!this['fsi'][R(0x193)](h)){if(R(0x1d2)!==R(0x1d2))c(d);else{const s=a14x[R(0x189)](R(0x184));s&&('avULk'===R(0x191)?yield s['invoke']([R(0x184)],{'cwd':g,'config':d}):(d[R(0x18c)](e),f[R(0x1a2)](0x0)));}}const i=this['fsi'][R(0x1ad)](R(0x17f));if(!i){if(R(0x176)===R(0x177))return f instanceof g?h:new i(function(v){v(k);});else{const v=a14x[R(0x189)](R(0x1ac));v&&(yield v[R(0x178)]([R(0x17f)],{'cwd':g,'config':d,'isDocker':!![]}));}}if(this[R(0x1d4)][R(0x193)](c['cert'])){if(R(0x18a)!==R(0x18a))c(d);else{const x=this[R(0x1d4)][R(0x1bc)](a14v['join']('config',R(0x17f),'_keys'));if(!x){if(R(0x194)!==R(0x1d7))a14w['mkdirSync'](a14v[R(0x1cb)]('config','docker',R(0x19d)));else{const z=this[R(0x1d4)][R(0x1bc)](h['join'](R(0x1ac),R(0x17f),R(0x19d)));!z&&o[R(0x199)](p[R(0x1cb)]('config',R(0x17f),R(0x19d))),k[R(0x17d)](l['cert'],m[R(0x1cb)](n,'config','docker',R(0x19d),R(0x1d1)));}}a14w[R(0x17d)](c[R(0x1a6)],a14v[R(0x1cb)](g,R(0x1ac),'docker',R(0x19d),R(0x1d1)));}}let j=this[R(0x1d4)][R(0x1b0)]({}),k=execSync(f+R(0x1b8))[R(0x187)]()[R(0x197)](/\r?\n|\r/g,''),l=R(0x1c0)+paramCase(d['appName'])+R(0x18e);b['tag']&&(l=R(0x1c0)+b['tag']);let m=['build',a14v[R(0x1cb)](this[R(0x1d4)][R(0x1a0)](),R(0x186)),R(0x17e),R(0x172)],n=this['fsi'][R(0x1c8)](a14v[R(0x1cb)](this[R(0x1d4)][R(0x1b0)]({}),R(0x1b5),R(0x190),R(0x192))),o=n['length']>0x2?!![]:![];if(o){if('VLKYR'===R(0x1a1))f(g+R(0x17c),{'cwd':this[R(0x1d4)][R(0x18b)](),'stdio':R(0x1b2)}),h(i+'\x20'+j[R(0x1cb)]('\x20'),{'cwd':this['fsi'][R(0x18b)](),'stdio':R(0x198)});else{let A=d['serverName']?d[R(0x171)]:yield Actions['ask'](R(0x1be)),B=d['serverPort']?d[R(0x185)]:yield Actions[R(0x1c9)](R(0x19b));if(A[R(0x1b4)]==0x0||B[R(0x1b4)]==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';let C=B==R(0x1b1)?'https':R(0x1c4);m[R(0x1cc)](R(0x180)+C+R(0x1bd)+A+':'+B);if(!d['serverName']&&!d[R(0x185)]){if(R(0x19f)===R(0x1d0)){const E=d[R(0x173)](e,arguments);return f=null,E;}else{let E=yield Actions[R(0x170)](R(0x19e));if(E){if('CstvO'!==R(0x1bf))this[R(0x1d4)][R(0x1b3)](R(0x171),A),this['fsi'][R(0x1b3)](R(0x185),B),Log[R(0x19c)](R(0x1ba)+a14v[R(0x1cb)](R(0x1a3),'config.json'));else{const G=g?function(){const S=R;if(G){const H=q[S(0x173)](r,arguments);return s=null,H;}}:function(){};return l=![],G;}}}}}}let p=a14v[R(0x1cb)](this[R(0x1d4)][R(0x1b0)]({}),R(0x186),R(0x1d5));if(a14w[R(0x1c2)](p)){const G=yield Actions[R(0x170)](R(0x17b));let H=G;H&&(execSync(f+R(0x17c),{'cwd':this[R(0x1d4)]['findAppDirectory'](),'stdio':R(0x1b2)}),execSync(f+'\x20\x20'+m[R(0x1cb)]('\x20'),{'cwd':this['fsi'][R(0x18b)](),'stdio':R(0x198)}));}else execSync(f+R(0x17c),{'cwd':this[R(0x1d4)]['findAppDirectory'](),'stdio':'ignore'}),execSync(f+'\x20'+m[R(0x1cb)]('\x20'),{'cwd':this[R(0x1d4)][R(0x18b)](),'stdio':R(0x198)});Log[R(0x19c)](R(0x1c7)+k),Log['notice'](R(0x1c5)+l),Log[R(0x19c)](R(0x179)+j);const q=R(0x1a7)+k+'\x20'+l+'\x20'+j;execSync(q,{'stdio':R(0x198)}),Log[R(0x19c)](R(0x188));}else f(g+R(0x17c),{'cwd':this[R(0x1d4)][R(0x18b)](),'stdio':R(0x1b2)}),h(i+'\x20\x20'+j[R(0x1cb)]('\x20'),{'cwd':this[R(0x1d4)][R(0x18b)](),'stdio':R(0x198)});}catch(J){console[R(0x18c)](J),process['exit'](0x0);}});},a14u);