@maka/maka-cli 4.0.82 → 4.0.83

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 (87) 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/maka.js +1 -1
  69. package/dist/tool.js +1 -1
  70. package/dist/tools/actions/actions.class.js +1 -1
  71. package/dist/tools/actions/actions.test.js +1 -1
  72. package/dist/tools/aws/aws.class.js +1 -1
  73. package/dist/tools/aws/aws.interfaces.js +1 -1
  74. package/dist/tools/docker/docker.class.js +1 -1
  75. package/dist/tools/docker/docker.interfaces.js +1 -1
  76. package/dist/tools/fsi/fsi.class.js +1 -1
  77. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  78. package/dist/tools/https/https.class.js +1 -1
  79. package/dist/tools/https/https.interface.js +1 -1
  80. package/dist/tools/log/log.class.js +1 -1
  81. package/dist/tools/log/log.interfaces.js +1 -1
  82. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  83. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  84. package/dist/tools/ssh/ssh.class.js +1 -1
  85. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  86. package/dist/tools/ssl/ssl.class.js +1 -1
  87. package/package.json +1 -1
package/dist/command.js CHANGED
@@ -1 +1 @@
1
- const a0Q=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0x1cd))/0x1+parseInt(N(0x1e4))/0x2*(-parseInt(N(0x196))/0x3)+-parseInt(N(0x1d9))/0x4+parseInt(N(0x1e5))/0x5+-parseInt(N(0x172))/0x6+parseInt(N(0x1c0))/0x7+parseInt(N(0x1bd))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x557c7));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(c){const e=c[O(0x17f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0x185)]()[P(0x199)]('(((.+)+)+)+$')[P(0x185)]()[P(0x1d8)](a0a)[P(0x199)](P(0x170));});a0a();var __awaiter=this&&this[a0Q(0x1ae)]||function(a,b,c,d){function e(f){const R=a0d;if(R(0x1dd)!==R(0x1dd)){f=g['join'](h,R(0x16f),R(0x1a9),R(0x1c8));if(!i[R(0x1a8)](j))return![];}else return f instanceof c?f:new c(function(h){const S=R;S(0x150)===S(0x1e7)?e[S(0x175)]([f['name'],g[S(0x1e2)](),h[S(0x159)]()]):h(f);});}return new(c||(c=Promise))(function(f,g){const W=a0d;function h(k){const T=a0d;try{if(T(0x18c)!=='gRVgE')j(d[T(0x1d7)](k));else throw new b(T(0x1df));}catch(m){T(0x1bc)!=='HjjEM'?b[T(0x1c6)](0x1):g(m);}}function i(k){const U=a0d;if(U(0x1d3)===U(0x19e))throw'To\x20use\x20this\x20command,\x20\x22'+b[0x0]+U(0x176);else try{if(U(0x190)!=='hUvSA')j(d[U(0x181)](k));else{d['error'](U(0x19c)+e);throw new f();}}catch(n){if(U(0x1c2)===U(0x1d1)){if(n[U(0x166)](f)[U(0x1db)]>=this['options'][U(0x1a5)]){i[U(0x168)](U(0x184));throw new j();}}else g(n);}}function j(k){const V=a0d;if(V(0x1b1)===V(0x1b1))k[V(0x189)]?f(k[V(0x171)]):e(k[V(0x171)])[V(0x1a3)](h,i);else{if(!f['includes'](g)){k[V(0x168)]('Missing\x20required\x20option:\x20'+l);throw new m();}}}j((d=d[W(0x17f)](a,b||[]))['next']());});};import a0I from'path';function a0c(){const ak=['18418xVklEE','filter','KYOYg','help','MgvrB','run','mksuH','getPro','ZEpOa','usage','next','constructor','2702184hIbOSM','ldkEj','length','KOVBa','OKCTV','ODdbD','Command\x20requires\x20a\x20handler\x20function','invoke','addCommand','aliases','LGgit','520XKUIoq','1493860urmFEx','trialExpirationDate','xprnF','sort','gixbk','assign','relqr','trialActive','ncVsI','call','domainLicense','Commands:','Missing\x20required\x20option:\x20','description','forEach','findProjectDirectory','Tnudj','game','Please\x20run\x20\x22maka\x20install\x20meteor\x22','NvhNQ','No\x20aliases','examples','NVlQB','win32','qxxKP','SwJii','keys','rUhAN','error','vNGMJ','Missing\x20required\x20options\x20','OsPWw','dVsbH','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','There\x20is\x20no\x20Meteor\x20application\x20here','AppData','(((.+)+)+)+$','value','2561676uZszVB','proCommands','parent','push','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','JkBwN','nBWuR','Command.create\x20requires\x20some\x20options!','xnkXm','validateMeteorInstall','DphuY','notice','includes','apply','Too\x20many\x20arguments','throw','Tlkam','Command\x20requires\x20a\x20name','Too\x20many\x20options','toString','EViiQ','URVjX','mustBeInMakaProject','done','findSubCommand','_handler','CsyFO','number','QRhrD','split','UZgqX','options','dSHuI','CcnyL','Too\x20few\x20options','aNcjG','5277IKeijo','proFlags','roles','search','addCommand\x20requires\x20a\x20Command\x20instance','SbQUb','Invalid\x20options:\x20','bright','hSVjR','minOptsLength','deploy','name','find','then','ejWVl','maxOptsLength','_commands','match','existsSync','Local','maxArgLength','concat','DGCNq','To\x20use\x20this\x20command,\x20\x22','__awaiter','findCommand','oLHhY','ypdaU','cELUx','validateMakaProject','No\x20description\x20provided.','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','murder','function','tpjIG','To\x20use\x20these\x20pro\x20flags,\x20\x22','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','platform','HjjEM','9389032GtMQdl','Too\x20few\x20arguments','minArgLength','2934148WngaeI','join','qaLXq','No\x20usage\x20provided.','Name','LsGwN','exit','validateParams','.meteor','splice','validateMakaSubscription','cLBwp','fsi'];a0c=function(){return ak;};return a0c();}import a0J from'os';import a0K from'fs';const homeDir=a0J['homedir']();import a0L from'cli-table';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='';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x14f;let f=c[d];return f;},a0d(a,b);}export class Command extends Tool{constructor(a,b){const X=a0Q;super();if(!a)throw new Error(X(0x1b5));if(!a['name'])throw new Error(X(0x183));if(typeof b!==X(0x1b7)){if('CcnyL'===X(0x193))throw new Error(X(0x1df));else g['error'](X(0x16d)),h[X(0x17d)](X(0x15e)),i[X(0x1d6)](j,k,l);}this['options']=Object['assign']({},a),this['name']=this[X(0x191)][X(0x1a1)],this[X(0x1a6)]=[],this[X(0x18b)]=b['bind'](this);}static['create'](a,b,c){const Y=a0Q;var d;if(!a)throw new Error(Y(0x179));if(typeof b!==Y(0x1b7))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');let e=new Command(a,b);return c=c||a0M,Object[Y(0x151)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c['options'])===null||d===void 0x0?void 0x0:d['name']}),c[Y(0x1e1)](e),e;}['match'](a){const Z=a0Q;let b=[this[Z(0x1a1)]]['concat'](this['options'][Z(0x1e2)]||[]);return this['parent']&&(Z(0x167)!==Z(0x167)?c(d):b[Z(0x175)](this['parent'])),b[Z(0x17e)](a);}[a0Q(0x1e1)](a){const a0=a0Q;if(!(a instanceof Command))throw new Error(a0(0x19a));this[a0(0x1a6)]['push'](a);}[a0Q(0x1b3)](){const a1=a0Q,a=this[a1(0x1cc)][a1(0x15b)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const a2=a0Q;let a=a0I['join'](homeDir,a2(0x1c8));const b=process[a2(0x1bb)]===a2(0x163);if(b){a=a0I[a2(0x1c1)](homeDir,a2(0x16f),a2(0x1a9),a2(0x1c8));if(!a0K[a2(0x1a8)](a)){if(a2(0x1de)===a2(0x1de))return![];else d(e['throw'](f));}}else{if(!a0K['existsSync'](a))return![];}return!![];}['validateMakaSubscription'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a3=a0d;try{if(a3(0x17a)!=='Eehmn'){const c=this[a3(0x1af)](a[0x0]);if(c){if('KOVBa'===a3(0x1dc)){const d=(c===null||c===void 0x0?void 0x0:c[a3(0x1a1)])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c[a3(0x174)])||'',g=a[0x0],h=Object[a3(0x166)](b),i=yield this[a3(0x1cc)][a3(0x1d4)]();if(!i){if('rCKQf'==='rCKQf')Log[a3(0x168)](a3(0x1ba)),process[a3(0x1c6)](0x1);else{if(e){const m=i[a3(0x17f)](j,arguments);return k=null,m;}}}const j=(i===null||i===void 0x0?void 0x0:i['proCommands'][a3(0x17e)](d))||(i===null||i===void 0x0?void 0x0:i[a3(0x173)][a3(0x17e)](f)),k=!(i===null||i===void 0x0?void 0x0:i['roles']['includes']('singleLicense'))&&!(i===null||i===void 0x0?void 0x0:i[a3(0x198)][a3(0x17e)](a3(0x156)))&&!(i===null||i===void 0x0?void 0x0:i[a3(0x153)]);if(j&&k){if(a3(0x18e)===a3(0x1b2))throw new b();else throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a3(0x176);}if(h[a3(0x1db)]>0x0){const n=i===null||i===void 0x0?void 0x0:i[a3(0x197)][a3(0x1ce)](o=>h[a3(0x17e)](o));if(n&&n[a3(0x1db)]>0x0&&k){if(a3(0x16c)!==a3(0x16c))return![];else throw a3(0x1b9)+(n===null||n===void 0x0?void 0x0:n[a3(0x1c1)](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}if(g===a3(0x1a0)){if(a3(0x15f)===a3(0x186))h['done']?i(j[a3(0x171)]):k(l[a3(0x171)])[a3(0x1a3)](m,n);else{const q=yield this['fsi'][a3(0x1d4)](),r=q===null||q===void 0x0?void 0x0:q[a3(0x173)][a3(0x17e)](a[0x0]+'\x20'+a[0x1]);if(r&&k)throw a3(0x1ad)+a[0x0]+a3(0x176);}}(i===null||i===void 0x0?void 0x0:i[a3(0x153)])&&Log[a3(0x17d)]('Trial\x20License\x20Expires:\x20'+i[a3(0x1e6)]['split']('T')[0x0]);}else throw new b(a3(0x179));}}else{d['error'](a3(0x16a)+e[a3(0x1c1)](',\x20'));throw new f();}}catch(u){if('NVlQB'!==a3(0x162))return this[a3(0x191)][a3(0x1e2)]||a3(0x160);else throw u;}});}['validateParams'](a,b,c){const a4=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a4(0x166)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a4(0x1db)])>0x0){if(g[a4(0x1db)]===0x0){Log[a4(0x168)](a4(0x16a)+requiredOpts[a4(0x1c1)](',\x20'));throw new UsageError();}requiredOpts[a4(0x15a)](h=>{const a5=a4;if(!g[a5(0x17e)](h)){if(a5(0x17c)===a5(0x17c)){Log[a5(0x168)](a5(0x158)+h);throw new UsageError();}else{if(!c[a5(0x1a8)](d))return![];}}});}validOpts=validOpts[a4(0x1ab)](requiredOpts);if((validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a4(0x1db)])>0x0){if(a4(0x1b0)!==a4(0x15c))validOpts[a4(0x175)]('help'),g[a4(0x15a)](h=>{const a6=a4;if(!validOpts[a6(0x17e)](h)){if(a6(0x1d5)!==a6(0x1d5))return this[a6(0x191)][a6(0x1d6)]||a6(0x1c3);else{Log['error'](a6(0x19c)+h);throw new UsageError();}}});else throw new b('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');}}[a0Q(0x1d2)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;try{if(a7(0x1c5)===a7(0x16b))c[a7(0x168)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),d[a7(0x1c6)](0x1);else{a=a||[],b=b||{};try{yield this[a7(0x1ca)](a,b);}catch(d){Log['error'](d),process[a7(0x1c6)](0x0);}yield this[a7(0x1e0)](a,b);}}catch(f){if(a7(0x154)===a7(0x154))process[a7(0x1c6)](0x1);else{if(!f[a7(0x17e)](g)){k[a7(0x168)](a7(0x19c)+l);throw new m();}}}});}[a0Q(0x1e0)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d,{usage:usage='',description:description='',examples:examples=[]}=this[a8(0x191)];this[a8(0x1c7)](a,b,this[a8(0x191)]);try{if(this[a8(0x191)][a8(0x188)]){if(a8(0x1cb)==='rBZYG')throw new b();else{const d=this[a8(0x1b3)]();if(!d)throw new MustBeInProjectError();}}if(this[a8(0x191)]['mustHaveMeteorInstalled']){const f=this[a8(0x17b)]();if(!f)throw new NoMeteorFoundError();}if(typeof this[a8(0x191)][a8(0x1bf)]==='number'){if(a[a8(0x1db)]<this[a8(0x191)]['minArgLength']){if(a8(0x19b)==='AJDvi'){if(i[a8(0x1db)]===0x0){q[a8(0x168)](a8(0x16a)+r[a8(0x1c1)](',\x20'));throw new s();}m[a8(0x15a)](z=>{const a9=a8;if(!t['includes'](z)){w[a9(0x168)](a9(0x158)+z);throw new x();}});}else{Log[a8(0x168)](a8(0x1be));throw new UsageError();}}}if(typeof this['options'][a8(0x1aa)]===a8(0x18d)){if(a8(0x1e3)!==a8(0x1b8)){if(a[a8(0x1db)]>=this[a8(0x191)][a8(0x1aa)]){if(a8(0x152)!==a8(0x152))f[a8(0x175)](a8(0x1d0)),g[a8(0x15a)](q=>{const aa=a8;if(!k[aa(0x17e)](q)){n['error'](aa(0x19c)+q);throw new o();}});else{Log[a8(0x168)](a8(0x180));throw new UsageError();}}}else c(d);}if(typeof this['options'][a8(0x19f)]===a8(0x18d)){if(Object[a8(0x166)](b)[a8(0x1db)]<this['options']['minOptsLength']){if('TeZIk'!==a8(0x1da)){Log['error'](a8(0x194));throw new UsageError();}else{c[a8(0x168)](a8(0x1be));throw new d();}}}if(typeof this[a8(0x191)]['maxOptsLength']==='number'){if(Object[a8(0x166)](b)[a8(0x1db)]>=this[a8(0x191)][a8(0x1a5)]){if(a8(0x165)!==a8(0x1cf)){Log[a8(0x168)](a8(0x184));throw new UsageError();}else return this[a8(0x1a6)][a8(0x1a2)](l=>l[a8(0x1a7)](c));}}if((a[0x0]===_prevCmd||a['length']===0x0)&&b[a8(0x1d0)])throw new UsageError();_prevCmd=a[0x0],yield this['_handler'][a8(0x155)](this,a,b);}catch(l){if(l instanceof UsageError)this[a8(0x1a6)][a8(0x1db)]>0x0&&b[a8(0x1d0)]&&(Log[a8(0x17d)](a8(0x157)),this['tableList'](this[a8(0x1a6)])),Log[a8(0x1d6)](description,examples,usage);else{if(l instanceof MustBeInProjectError)a8(0x169)!==a8(0x169)?c[a8(0x17d)]('Trial\x20License\x20Expires:\x20'+d['trialExpirationDate'][a8(0x18f)]('T')[0x0]):(Log['error']('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'),Log[a8(0x1d6)](description,examples,usage));else{if(l instanceof NoMeteorFoundError)Log['error'](a8(0x16d)),Log[a8(0x17d)](a8(0x15e)),Log['usage'](description,examples,usage);else{if(l instanceof NoMeteorAppFoundError){if(a8(0x1a4)!==a8(0x1a4)){c[a8(0x168)](a8(0x194));throw new d();}else Log[a8(0x168)](a8(0x16e)),Log[a8(0x1d6)](description,examples,usage);}else throw l;}}}process[a8(0x1c6)](0x1);}});}['tableList'](a){const ab=a0Q,b=new a0L({});b[ab(0x175)]([ab(0x1c4),'Alias','Description']),a[ab(0x14f)]()[ab(0x15a)](c=>{const ac=ab;if(ac(0x182)!==ac(0x182))return;else c['name']!==ac(0x1b6)&&c[ac(0x1a1)]!==ac(0x15d)&&b[ac(0x175)]([c[ac(0x1a1)],c[ac(0x1e2)](),c['description']()]);}),Log[ab(0x19d)](b[ab(0x185)]());}[a0Q(0x1af)](a){const ad=a0Q;return this[ad(0x1a6)]['find'](b=>b[ad(0x1a7)](a));}[a0Q(0x18a)](a){const ae=a0Q;let b=a===null||a===void 0x0?void 0x0:a['split'](':');if(b){if(ae(0x164)!==ae(0x164))throw c[ae(0x168)](d);else return a=b[0x0],this[ae(0x1af)](a);}else return;}['runSubCommand'](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const af=a0d;try{if(af(0x178)==='wAqoI'){const f=d['apply'](e,arguments);return f=null,f;}else{let f=a[af(0x18f)](':');a=f[0x0];let g=f[0x1];if(g){if(af(0x195)!==af(0x192))b[af(0x1c9)](0x0,0x0,g);else try{i(j['throw'](k));}catch(j){m(j);}}let h=this[af(0x1af)](a);if(h){if(af(0x177)===af(0x177))yield h['run'](b,c);else{if(d[af(0x1db)]>=this[af(0x191)][af(0x1aa)]){g[af(0x168)](af(0x180));throw new h();}}}else{if(af(0x1ac)!==af(0x187))throw'Command\x20not\x20found';else throw b;}}}catch(l){throw Log[af(0x168)](l);}});}['description'](){const ag=a0Q;return this[ag(0x191)][ag(0x159)]||ag(0x1b4);}[a0Q(0x1d6)](){const ah=a0Q;return this['options']['usage']||ah(0x1c3);}[a0Q(0x161)](){const ai=a0Q;return this[ai(0x191)]['examples']||[];}[a0Q(0x1e2)](){const aj=a0Q;return this[aj(0x191)]['aliases']||aj(0x160);}}
1
+ const a0Q=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0x1d7))/0x1*(-parseInt(N(0x1fe))/0x2)+-parseInt(N(0x1cb))/0x3*(parseInt(N(0x1aa))/0x4)+parseInt(N(0x1b1))/0x5*(-parseInt(N(0x193))/0x6)+-parseInt(N(0x1ea))/0x7+-parseInt(N(0x184))/0x8+parseInt(N(0x185))/0x9+parseInt(N(0x16f))/0xa*(parseInt(N(0x1c2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x99835));function a0c(){const aj=['addCommand\x20requires\x20a\x20Command\x20instance','homedir','IxbdW','minArgLength','forEach','find','assign','YgAeC','runSubCommand','tableList','proCommands','IrsLy','mTwYK','yLLMH','FdkzH','__awaiter','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','qoASU','UKqnl','Commands:','value','concat','1292KHsORs','constructor','To\x20use\x20this\x20command,\x20\x22','Command\x20not\x20found','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','name','Missing\x20required\x20options\x20','1915pjmPJj','Alias','fsi','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','trialActive','call','Name','domainLicense','split','Command\x20requires\x20a\x20name','To\x20use\x20these\x20pro\x20flags,\x20\x22','mustHaveMeteorInstalled','then','kTtEm','Too\x20many\x20options','findSubCommand','deploy','2035cEmRev','aliases','ZPJSo','wGuSu','validateMeteorInstall','usage','search','singleLicense','oPDnf','2343CsiHCp','Missing\x20required\x20option:\x20','findProjectDirectory','AppData','keys','minOptsLength','gQYxu','addCommand','validateMakaProject','cqhNE','help','trialExpirationDate','270328BJGikx','nDosh','match','murder','throw','llkmA','next','Too\x20few\x20options','eqiko','toString','Local','There\x20is\x20no\x20Meteor\x20application\x20here','Command.create\x20requires\x20some\x20options!','maxOptsLength','FTkkL','function','validateMakaSubscription','Command.create\x20requires\x20a\x20handler\x20function!','game','3351208NjukSD','Description','_commands','No\x20description\x20provided.','ejEna','filter','YTUkI','BzULo','options','xzaVZ','VjruG','maxArgLength','exit','apply','roles','tUtFU','join','nWyri','No\x20aliases','JYOjR','8fBCtuj','push','pLcmM','notice','splice','Command\x20requires\x20a\x20handler\x20function','done','examples','upnez','YXioE','128890GOmpSx','findCommand','XYZZc','Uahpl','error','Too\x20few\x20arguments','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','fZFox','REMzo','InYiD','validateParams','rzVAM','UDwTQ','run','_handler','bright','(((.+)+)+)+$','Too\x20many\x20arguments','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','cbSjK','includes','1465952iWJBci','6078222TPOvUu','BEuTi','Trial\x20License\x20Expires:\x20','win32','MJxVG','description','invoke','existsSync','length','Invalid\x20options:\x20','number','.meteor','rLcAf','bind','6822aJPRjw'];a0c=function(){return aj;};return a0c();}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(c){const e=c[O(0x1f7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a['toString']()[P(0x1c8)](P(0x17f))[P(0x1e0)]()[P(0x1ab)](a0a)[P(0x1c8)](P(0x17f));});a0a();var __awaiter=this&&this[a0Q(0x1a3)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const R=a0d;R(0x189)!==R(0x189)?c['splice'](0x0,0x0,d):g(f);});}return new(c||(c=Promise))(function(f,g){const V=a0d;function h(k){const S=a0d;try{S(0x191)!==S(0x191)?c[S(0x201)](S(0x187)+d[S(0x1d6)][S(0x1b9)]('T')[0x0]):j(d['next'](k));}catch(m){g(m);}}function i(k){const T=a0d;try{j(d[T(0x1db)](k));}catch(l){g(l);}}function j(k){const U=a0d;U(0x177)===U(0x177)?k[U(0x16b)]?f(k[U(0x1a8)]):e(k[U(0x1a8)])[U(0x1bd)](h,i):c(d);}j((d=d[V(0x1f7)](a,b||[]))[V(0x1dd)]());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0Q(0x195)]();import a0L from'cli-table';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x16b;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 W=a0Q;super();if(!a){if(W(0x1c5)!==W(0x1a0))throw new Error(W(0x1a4));else throw new b(W(0x194));}if(!a[W(0x1af)]){if(W(0x178)!=='InYiD'){if(!f['includes'](g)){k[W(0x173)](W(0x1cc)+l);throw new m();}}else throw new Error(W(0x1ba));}if(typeof b!=='function'){if('BiwRB'===W(0x1fd))try{i(j['throw'](k));}catch(f){m(f);}else throw new Error(W(0x203));}this['options']=Object[W(0x19a)]({},a),this[W(0x1af)]=this[W(0x1f2)]['name'],this['_commands']=[],this[W(0x17d)]=b[W(0x192)](this);}static['create'](a,b,c){const X=a0Q;var d;if(!a)throw new Error(X(0x1e3));if(typeof b!==X(0x1e6)){if(X(0x1a2)!=='lJWxb')throw new Error(X(0x1e8));else throw b;}let e=new Command(a,b);return c=c||a0M,Object['assign'](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x1f2)])===null||d===void 0x0?void 0x0:d[X(0x1af)]}),c['addCommand'](e),e;}[a0Q(0x1d9)](a){const Y=a0Q;let b=[this[Y(0x1af)]][Y(0x1a9)](this[Y(0x1f2)][Y(0x1c3)]||[]);return this['parent']&&b[Y(0x1ff)](this['parent']),b[Y(0x183)](a);}[a0Q(0x1d2)](a){const Z=a0Q;if(!(a instanceof Command))throw new Error(Z(0x194));this[Z(0x1ec)]['push'](a);}['validateMakaProject'](){const a0=a0Q,a=this[a0(0x1b3)][a0(0x1cd)]();return a!==![]?!![]:![];}[a0Q(0x1c6)](){const a1=a0Q;let a=a0I[a1(0x1fa)](homeDir,a1(0x190));const b=process['platform']===a1(0x188);if(b){if(a1(0x1dc)===a1(0x1dc)){a=a0I[a1(0x1fa)](homeDir,a1(0x1ce),a1(0x1e1),'.meteor');if(!a0K[a1(0x18c)](a))return![];}else throw'Command\x20not\x20found';}else{if(!a0K[a1(0x18c)](a)){if(a1(0x1f9)===a1(0x1f9))return![];else{c['error'](a1(0x180));throw new d();}}}return!![];}[a0Q(0x1e7)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;if(a2(0x182)===a2(0x182))try{const c=this[a2(0x170)](a[0x0]);if(c){const d=(c===null||c===void 0x0?void 0x0:c['name'])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c['parent'])||'',g=a[0x0],h=Object['keys'](b),i=yield this['fsi']['getPro']();if(!i){if(a2(0x1fb)===a2(0x1fb))Log[a2(0x173)](a2(0x181)),process[a2(0x1f6)](0x1);else{f=g[a2(0x1fa)](h,'AppData','Local',a2(0x190));if(!i[a2(0x18c)](j))return![];}}const j=(i===null||i===void 0x0?void 0x0:i[a2(0x19e)][a2(0x183)](d))||(i===null||i===void 0x0?void 0x0:i[a2(0x19e)]['includes'](f)),k=!(i===null||i===void 0x0?void 0x0:i[a2(0x1f8)][a2(0x183)](a2(0x1c9)))&&!(i===null||i===void 0x0?void 0x0:i[a2(0x1f8)]['includes'](a2(0x1b8)))&&!(i===null||i===void 0x0?void 0x0:i[a2(0x1b5)]);if(j&&k){if(a2(0x1a6)==='VKFKe')try{i(j[a2(0x1dd)](k));}catch(o){m(o);}else throw a2(0x1ac)+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(h[a2(0x18d)]>0x0){if(a2(0x196)===a2(0x196)){const n=i===null||i===void 0x0?void 0x0:i['proFlags'][a2(0x1ef)](o=>h[a2(0x183)](o));if(n&&n[a2(0x18d)]>0x0&&k){if(a2(0x176)!==a2(0x1f0))throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(n===null||n===void 0x0?void 0x0:n['join'](',\x20'))+a2(0x1b4);else c[a2(0x173)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),d['exit'](0x1);}}else b[a2(0x201)](a2(0x1a7)),this[a2(0x19d)](this[a2(0x1ec)]);}if(g===a2(0x1c1)){if('NBVHE'===a2(0x1f3)){d[a2(0x173)](a2(0x18e)+e);throw new f();}else{const r=yield this[a2(0x1b3)]['getPro'](),s=r===null||r===void 0x0?void 0x0:r[a2(0x19e)][a2(0x183)](a[0x0]+'\x20'+a[0x1]);if(s&&k)throw a2(0x1ac)+a[0x0]+a2(0x1b4);}}(i===null||i===void 0x0?void 0x0:i[a2(0x1b5)])&&Log[a2(0x201)](a2(0x187)+i[a2(0x1d6)][a2(0x1b9)]('T')[0x0]);}}catch(t){if(a2(0x16e)==='hzqQV')f[a2(0x1ff)](a2(0x1d5)),g[a2(0x198)](v=>{const a3=a2;if(!k[a3(0x183)](v)){n['error'](a3(0x18e)+v);throw new o();}});else throw t;}else return this[a2(0x1f2)]['description']||a2(0x1ed);});}[a0Q(0x179)](a,b,c){const a4=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a4(0x1cf)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a4(0x18d)])>0x0){if(g[a4(0x18d)]===0x0){if(a4(0x200)!==a4(0x1d8)){Log[a4(0x173)]('Missing\x20required\x20options\x20'+requiredOpts[a4(0x1fa)](',\x20'));throw new UsageError();}else return![];}requiredOpts[a4(0x198)](i=>{const a5=a4;if(!g[a5(0x183)](i)){Log[a5(0x173)]('Missing\x20required\x20option:\x20'+i);throw new UsageError();}});}validOpts=validOpts[a4(0x1a9)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts['length'])>0x0&&(validOpts[a4(0x1ff)]('help'),g[a4(0x198)](i=>{const a6=a4;if('hiJZy'===a6(0x1be))d(e[a6(0x1dd)](f));else{if(!validOpts[a6(0x183)](i)){Log[a6(0x173)](a6(0x18e)+i);throw new UsageError();}}}));}['run'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;if('ZZTtv'==='oWiHC'){const d=f===null||g===void 0x0?void 0x0:h['proFlags'][a7(0x1ef)](m=>d[a7(0x183)](m));if(d&&d[a7(0x18d)]>0x0&&j)throw a7(0x1bb)+(d===null||d===void 0x0?void 0x0:d[a7(0x1fa)](',\x20'))+a7(0x1b4);}else try{if(a7(0x1e5)!==a7(0x1d4)){a=a||[],b=b||{};try{yield this['validateMakaSubscription'](a,b);}catch(d){Log[a7(0x173)](d),process[a7(0x1f6)](0x0);}yield this[a7(0x18b)](a,b);}else{if(i[a7(0x18d)]===0x0){q['error'](a7(0x1b0)+r['join'](',\x20'));throw new s();}m['forEach'](z=>{const a8=a7;if(!t['includes'](z)){w['error'](a8(0x1cc)+z);throw new x();}});}}catch(g){if(a7(0x172)!==a7(0x172))return this[a7(0x1f2)][a7(0x1c3)]||a7(0x1fc);else process[a7(0x1f6)](0x1);}});}[a0Q(0x18b)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a9=a0d;if(a9(0x1c4)===a9(0x17b))b['exit'](0x1);else{const {usage:usage='',description:description='',examples:examples=[]}=this[a9(0x1f2)];this['validateParams'](a,b,this[a9(0x1f2)]);try{if(this[a9(0x1f2)]['mustBeInMakaProject']){const d=this[a9(0x1d3)]();if(!d)throw new MustBeInProjectError();}if(this[a9(0x1f2)][a9(0x1bc)]){if(a9(0x1a5)!==a9(0x1a5)){let g=f===null||g===void 0x0?void 0x0:h[a9(0x1b9)](':');if(g)return k=g[0x0],this[a9(0x170)](l);else return;}else{const g=this[a9(0x1c6)]();if(!g)throw new NoMeteorFoundError();}}if(typeof this[a9(0x1f2)][a9(0x197)]===a9(0x18f)){if(a[a9(0x18d)]<this[a9(0x1f2)]['minArgLength']){Log[a9(0x173)](a9(0x174));throw new UsageError();}}if(typeof this[a9(0x1f2)][a9(0x1f5)]===a9(0x18f)){if('qTNKa'==='qTNKa'){if(a[a9(0x18d)]>=this[a9(0x1f2)][a9(0x1f5)]){Log['error'](a9(0x180));throw new UsageError();}}else{const i=this[a9(0x1d3)]();if(!i)throw new c();}}if(typeof this[a9(0x1f2)][a9(0x1d0)]===a9(0x18f)){if(a9(0x19f)!==a9(0x19f)){if(e[a9(0x1cf)](f)[a9(0x18d)]>=this[a9(0x1f2)]['maxOptsLength']){i[a9(0x173)](a9(0x1bf));throw new j();}}else{if(Object['keys'](b)[a9(0x18d)]<this['options']['minOptsLength']){if('YgAeC'!==a9(0x19b)){if(e[a9(0x1cf)](f)[a9(0x18d)]<this[a9(0x1f2)]['minOptsLength']){i['error'](a9(0x1de));throw new j();}}else{Log[a9(0x173)](a9(0x1de));throw new UsageError();}}}}if(typeof this['options'][a9(0x1e4)]===a9(0x18f)){if(Object[a9(0x1cf)](b)[a9(0x18d)]>=this[a9(0x1f2)][a9(0x1e4)]){Log['error'](a9(0x1bf));throw new UsageError();}}if((a[0x0]===_prevCmd||a[a9(0x18d)]===0x0)&&b[a9(0x1d5)])throw new UsageError();_prevCmd=a[0x0],yield this['_handler'][a9(0x1b6)](this,a,b);}catch(k){if(a9(0x186)===a9(0x1ee))throw new b();else{if(k instanceof UsageError)this[a9(0x1ec)][a9(0x18d)]>0x0&&b[a9(0x1d5)]&&(Log[a9(0x201)]('Commands:'),this['tableList'](this[a9(0x1ec)])),Log[a9(0x1c7)](description,examples,usage);else{if(k instanceof MustBeInProjectError){if(a9(0x1a1)!==a9(0x1d1))Log[a9(0x173)](a9(0x1ae)),Log[a9(0x1c7)](description,examples,usage);else return d=k[0x0],this['findCommand'](f);}else{if(k instanceof NoMeteorFoundError)Log[a9(0x173)](a9(0x175)),Log[a9(0x201)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22'),Log['usage'](description,examples,usage);else{if(k instanceof NoMeteorAppFoundError)'BzULo'!==a9(0x1f1)?(f[a9(0x173)](a9(0x1ae)),g[a9(0x1c7)](h,i,j)):(Log[a9(0x173)](a9(0x1e2)),Log[a9(0x1c7)](description,examples,usage));else throw k;}}}process[a9(0x1f6)](0x1);}}}});}[a0Q(0x19d)](a){const aa=a0Q,b=new a0L({});b['push']([aa(0x1b7),aa(0x1b2),aa(0x1eb)]),a['sort']()[aa(0x198)](c=>{const ab=aa;if(ab(0x1f4)!==ab(0x1ca))c['name']!==ab(0x1da)&&c[ab(0x1af)]!==ab(0x1e9)&&b[ab(0x1ff)]([c['name'],c[ab(0x1c3)](),c[ab(0x18a)]()]);else{c['error'](ab(0x174));throw new d();}}),Log[aa(0x17e)](b[aa(0x1e0)]());}[a0Q(0x170)](a){const ac=a0Q;return this[ac(0x1ec)][ac(0x199)](b=>b[ac(0x1d9)](a));}[a0Q(0x1c0)](a){const ad=a0Q;let b=a===null||a===void 0x0?void 0x0:a[ad(0x1b9)](':');if(b){if(ad(0x1df)!==ad(0x1df))throw new b('Command\x20requires\x20a\x20handler\x20function');else return a=b[0x0],this['findCommand'](a);}else return;}[a0Q(0x19c)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a0d;if('upnez'===ae(0x16d))try{if(ae(0x17a)===ae(0x17a)){let d=a[ae(0x1b9)](':');a=d[0x0];let f=d[0x1];f&&b[ae(0x202)](0x0,0x0,f);let g=this['findCommand'](a);if(g)yield g[ae(0x17c)](b,c);else{if(ae(0x171)===ae(0x171))throw ae(0x1ad);else f[ae(0x173)](ae(0x1e2)),g[ae(0x1c7)](h,i,j);}}else throw ae(0x1ac)+b[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}catch(j){throw Log['error'](j);}else throw ae(0x1ac)+b[0x0]+ae(0x1b4);});}[a0Q(0x18a)](){const af=a0Q;return this[af(0x1f2)][af(0x18a)]||af(0x1ed);}[a0Q(0x1c7)](){const ag=a0Q;return this[ag(0x1f2)][ag(0x1c7)]||'No\x20usage\x20provided.';}[a0Q(0x16c)](){const ah=a0Q;return this['options'][ah(0x16c)]||[];}[a0Q(0x1c3)](){const ai=a0Q;return this[ai(0x1f2)][ai(0x1c3)]||ai(0x1fc);}}
@@ -1 +1 @@
1
- (function(a,b){var u=a1d,c=a();while(!![]){try{var d=parseInt(u(0x8e))/0x1+-parseInt(u(0x84))/0x2*(-parseInt(u(0x8b))/0x3)+parseInt(u(0x8a))/0x4*(-parseInt(u(0x83))/0x5)+parseInt(u(0x90))/0x6+parseInt(u(0x86))/0x7*(parseInt(u(0x88))/0x8)+parseInt(u(0x85))/0x9+-parseInt(u(0x8d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xb1281));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0x87)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a[w(0x8c)]()[w(0x89)](w(0x8f))[w(0x8c)]()['constructor'](a1a)[w(0x89)](w(0x8f));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x83;var f=c[d];return f;},a1d(a,b);}import'./create.js';import'./debug.js';import'./deploy.js';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';import'./version.js';function a1c(){var x=['8PXVysW','6156639uOBzbp','21mSgjMh','apply','1127512hxTTcq','search','36RaTpQI','866559ZSJTuj','toString','29460100QXAYyL','1152296eZwcnx','(((.+)+)+)+$','4211664lPldiF','247165pzNjGG'];a1c=function(){return x;};return a1c();}import'./murder.js';
1
+ (function(a,b){var u=a1d,c=a();while(!![]){try{var d=parseInt(u(0xe2))/0x1*(-parseInt(u(0xdf))/0x2)+parseInt(u(0xe6))/0x3+-parseInt(u(0xe1))/0x4*(-parseInt(u(0xdb))/0x5)+parseInt(u(0xdc))/0x6*(parseInt(u(0xdd))/0x7)+-parseInt(u(0xd8))/0x8+parseInt(u(0xde))/0x9*(-parseInt(u(0xe0))/0xa)+parseInt(u(0xda))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x2aba0));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a['toString']()[w(0xe4)](w(0xd9))[w(0xe5)]()['constructor'](a1a)['search']('(((.+)+)+)+$');});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';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';function a1c(){var x=['196mukpXY','apply','search','toString','568104bGeLTi','1520344BPoLfk','(((.+)+)+)+$','2968735txfVAL','76090yBgCfB','126VGNuhD','2317aCFIPL','9rvLoyr','778StwmXE','2531790AMBHNn','60xJrBrj'];a1c=function(){return x;};return a1c();}import'./maka.cmd.js';import'./reconfig.js';import'./run.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xd8;var f=c[d];return f;},a1d(a,b);}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(0x17d))/0x1+parseInt(u(0x17c))/0x2+-parseInt(u(0x179))/0x3*(parseInt(u(0x178))/0x4)+parseInt(u(0x176))/0x5*(parseInt(u(0x17e))/0x6)+-parseInt(u(0x17a))/0x7*(-parseInt(u(0x177))/0x8)+parseInt(u(0x174))/0x9*(parseInt(u(0x180))/0xa)+parseInt(u(0x173))/0xb*(-parseInt(u(0x175))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xdf9bb));var a2b=(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;};}()),a2a=a2b(this,function(){var v=a2d;return a2a['toString']()['search'](v(0x172))[v(0x17b)]()['constructor'](a2a)[v(0x17f)](v(0x172));});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x172;var f=c[d];return f;},a2d(a,b);}function a2c(){var w=['search','1260ryCOsz','(((.+)+)+)+$','21197MYJnBj','6309hSHPoL','15528FyPYyI','115JJjILa','10517856EcbrQC','20mFjYzZ','91824tzbdYl','7tFbsbS','toString','1349564yLcivx','1296474jOGTFO','49086urSZCV'];a2c=function(){return w;};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
+ function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x134;var f=c[d];return f;},a2d(a,b);}(function(a,b){var u=a2d,c=a();while(!![]){try{var d=-parseInt(u(0x13a))/0x1*(parseInt(u(0x141))/0x2)+parseInt(u(0x142))/0x3*(-parseInt(u(0x13e))/0x4)+parseInt(u(0x13b))/0x5+-parseInt(u(0x13d))/0x6*(parseInt(u(0x138))/0x7)+-parseInt(u(0x139))/0x8+-parseInt(u(0x136))/0x9+parseInt(u(0x135))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x2ee87));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a[w(0x13c)]()[w(0x137)]('(((.+)+)+)+$')[w(0x13c)]()[w(0x13f)](a2a)[w(0x137)](w(0x140));});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=['12544730dvGPAz','3107997giQLqJ','search','475223OpXwPH','263136SLCRbT','1HCRiYC','1536130kxJFHQ','toString','24WsWchG','8bfJhJm','constructor','(((.+)+)+)+$','747206lKFUoJ','519270sTQWTx','apply'];a2c=function(){return x;};return a2c();}import'./dks.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';
@@ -1 +1 @@
1
- const a3F=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=parseInt(w(0x10a))/0x1*(parseInt(w(0x107))/0x2)+parseInt(w(0x101))/0x3*(parseInt(w(0x109))/0x4)+-parseInt(w(0x10b))/0x5*(-parseInt(w(0xfd))/0x6)+-parseInt(w(0x104))/0x7+-parseInt(w(0x100))/0x8+-parseInt(w(0xed))/0x9+parseInt(w(0xff))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xaece5));function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xec;let f=c[d];return f;},a3d(a,b);}const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if(x(0x108)===x(0xf7))d(e[x(0xf8)](f));else{const e=a?function(){if(c){if('LLQGG'==='LLQGG'){const f=c['apply'](b,arguments);return c=null,f;}else c(d);}}:function(){};return a=![],e;}};}()),a3a=a3b(this,function(){const y=a3d;return a3a['toString']()['search'](y(0x10e))[y(0x10f)]()[y(0x103)](a3a)[y(0xf2)](y(0x10e));});a3a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const z=a3d;if('xoLQh'==='xoLQh')return f instanceof c?f:new c(function(g){g(f);});else h['done']?i(j['value']):k(l[z(0xef)])['then'](m,n);}return new(c||(c=Promise))(function(f,g){const E=a3d;function h(k){const A=a3d;try{A(0xf3)===A(0xf0)?d(e['next'](f)):j(d['next'](k));}catch(m){g(m);}}function i(k){const B=a3d;try{if('HzrEF'==='HzrEF')j(d[B(0xf8)](k));else try{i(j[B(0xf8)](k));}catch(m){m(m);}}catch(m){g(m);}}function j(k){const C=a3d;if(C(0x10c)!==C(0x10c)){const n=g?function(){const D=C;if(n){const u=q[D(0xec)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else k[C(0xee)]?f(k[C(0xef)]):e(k['value'])['then'](h,i);}j((d=d['apply'](a,b||[]))[E(0xf4)]());});};import{Command}from'../../command.js';const AWSCommand=Command[a3F(0xfc)]({'name':a3F(0xfb),'usage':a3F(0xf9),'minArgLength':0x1,'description':a3F(0x105),'examples':[a3F(0xf6),a3F(0xfe)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a3d;try{let c=a[0x0],d=this[G(0xfa)](c);d&&(G(0xf5)!=='uzPcF'?this[G(0x106)](c,a,b):c(d));}catch(g){if(G(0x102)!==G(0x102))try{i(j['next'](k));}catch(i){m(i);}else console[G(0xf1)](g),process[G(0x10d)](0x0);}});});export default AWSCommand;function a3c(){const H=['7197759WBcJre','done','value','SSxqa','error','search','PTpqe','next','MGOlb','maka\x20aws:describe-instance','CzdnI','throw','maka\x20aws\x20<command>','findSubCommand','aws','create','12hgKsnk','maka\x20aws:di','6442370BAPdnI','9996864RrldjK','44277rwyhgE','UANkt','constructor','8070755JJoYlK','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','runSubCommand','4gmUWVo','lvwWN','208CnwszN','698239HEysCM','2775365aQlayL','ZhRyZ','exit','(((.+)+)+)+$','toString','apply'];a3c=function(){return H;};return a3c();}
1
+ const a3z=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=parseInt(w(0xdb))/0x1+-parseInt(w(0xd5))/0x2+-parseInt(w(0xe8))/0x3*(-parseInt(w(0xca))/0x4)+parseInt(w(0xd6))/0x5*(parseInt(w(0xe6))/0x6)+parseInt(w(0xea))/0x7*(parseInt(w(0xc7))/0x8)+-parseInt(w(0xcc))/0x9+-parseInt(w(0xda))/0xa*(-parseInt(w(0xeb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xbeca4));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a3d;if(c){if(x(0xcd)!=='posoE'){const e=c['apply'](b,arguments);return c=null,e;}else h['done']?i(j[x(0xd4)]):k(l[x(0xd4)])[x(0xe4)](m,n);}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const y=a3d;return a3a[y(0xcb)]()[y(0xe0)]('(((.+)+)+)+$')[y(0xcb)]()[y(0xdd)](a3a)[y(0xe0)](y(0xe1));});a3a();function a3c(){const G=['error','exit','search','(((.+)+)+)+$','next','YJmON','then','throw','1690314vpoezb','runSubCommand','15IOXPQZ','yZYnp','14QSWShF','3421nVzmPE','1829536SFBviX','deHuC','maka\x20aws\x20<command>','333968YQjnGU','toString','12584061dvxpQw','rnvnH','done','maka\x20aws:di','maka\x20aws:describe-instance','zLjnR','__awaiter','QMZjM','value','2520576Iebulz','5hOHbSw','findSubCommand','Ihaoy','aws','25040NzISKB','1504686VwNlVV','apply','constructor'];a3c=function(){return G;};return a3c();}var __awaiter=this&&this[a3z(0xd2)]||function(a,b,c,d){function e(f){const A=a3d;if(A(0xc8)==='deHuC')return f instanceof c?f:new c(function(g){g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const E=a3d;function h(k){const B=a3d;try{if('OrBSh'===B(0xd1))try{let m=k[0x0],n=this[B(0xd7)](m);n&&this[B(0xe7)](m,n,o);}catch(o){r[B(0xde)](o),s[B(0xdf)](0x0);}else j(d[B(0xe2)](k));}catch(m){g(m);}}function i(k){const C=a3d;try{if('YJmON'===C(0xe3))j(d[C(0xe5)](k));else return f instanceof g?h:new i(function(m){m(k);});}catch(m){g(m);}}function j(k){const D=a3d;k[D(0xce)]?f(k[D(0xd4)]):e(k[D(0xd4)])['then'](h,i);}j((d=d[E(0xdc)](a,b||[]))[E(0xe2)]());});};function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xc7;let f=c[d];return f;},a3d(a,b);}import{Command}from'../../command.js';const AWSCommand=Command['create']({'name':a3z(0xd9),'usage':a3z(0xc9),'minArgLength':0x1,'description':'Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','examples':[a3z(0xd0),a3z(0xcf)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;try{if(F(0xe9)!==F(0xe9))try{i(j[F(0xe5)](k));}catch(d){m(d);}else{let d=a[0x0],f=this[F(0xd7)](d);if(f){if('Ihaoy'===F(0xd8))this[F(0xe7)](d,a,b);else return c['toString']()['search'](F(0xe1))[F(0xcb)]()['constructor'](d)[F(0xe0)](F(0xe1));}}}catch(h){if(F(0xd3)!=='QMZjM'){let k=d[0x0],l=this[F(0xd7)](k);l&&this['runSubCommand'](k,g,h);}else console['error'](h),process[F(0xdf)](0x0);}});});export default AWSCommand;
@@ -1 +1 @@
1
- const a4aj=a4d;(function(a,b){const ag=a4d,c=a();while(!![]){try{const d=-parseInt(ag(0x1a1))/0x1*(-parseInt(ag(0x1b2))/0x2)+-parseInt(ag(0x1d5))/0x3*(-parseInt(ag(0x18c))/0x4)+-parseInt(ag(0x192))/0x5+-parseInt(ag(0x1b1))/0x6+parseInt(ag(0x1c1))/0x7+parseInt(ag(0x1a2))/0x8+-parseInt(ag(0x1a4))/0x9*(parseInt(ag(0x1c8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xe05ba));function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x176;let f=c[d];return f;},a4d(a,b);}function a4c(){const aD=['\x20SUBNETID:\x20','push','hnFIA','**\x20Available\x20Security\x20Groups\x20**','throw','\x20CIDR:\x20','8896056BVKzqv','2cNWIjl','Name','dDiee','ec2create','getProjectConfig','zEtet','Security\x20Group\x20Name:\x20[','ec2describeKeys','notice','sgId','Key-Pair:\x20','date','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Instance\x20Count:\x20','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','6569178EqhDPW','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','ask','GumRL','log','chooseVPC','Subnet:\x20','81980sWOBgI','createKeyPair','qBFoD','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','string','join','Setting\x20AMI\x20ID\x20to\x20','BqbCx','Setting\x20Subnet\x20ID\x20to\x20','(((.+)+)+)+$','getConfigFromShorthand','next','apply','3EJRJcm','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','\x20SG\x20NAME:\x20','subnet','ID:\x20','gcGtf','split','error','confirm','1:1','constructor','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','lTdeF','**\x20Available\x20AMIs\x20**','\x20SGID:\x20','name','MVFku','forEach','search','LXFBt','exit','\x20AMIID:\x20','Setting\x20SG\x20ID\x20to:\x20','iXKWq','__awaiter','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','amiId','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','success','Foqqo','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Please\x20choose\x20a\x20key\x20to\x20use:\x20','EC2\x20Name:\x20[','toString','sort','create','},\x20{Key=Name,Value=','then','xnZqd','**\x20Available\x20key-pairs\x20**','fsi','cider','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=*','\x22Web\x20App\x22','yKHvb','jjvBG','help','\x20DESCRIPTION:\x20','otsTX','bright','Uhmwm','Pzxeu','mgHlk','number','Setting\x20the\x20key-pair\x20to:\x20','Desc','t2.nano','\x20AZONE:\x20','3061348JBGqrj','\x20:\x20','ImageID:','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','parse','value','5485235QfWBCm','ec2createSG','OilBC','No\x20instance\x20has\x20been\x20created.','jGCUT','oQknF','Open\x20port\x20443\x20for\x20SSL?','subnetId','getTime','fiZDS','build\x20on\x20','done','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','desc','aoECu','219577SoRzME','13848696piGSMc','maka\x20aws:create-instance','171FjwTrL','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','UcPIm','mtjOH','cidr','env','Security\x20Group:\x20'];a4c=function(){return aD;};return a4c();}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ah=a4d;if(ah(0x184)!==ah(0x185)){if(c){const e=c[ah(0x1d4)](b,arguments);return c=null,e;}}else e[ah(0x1ba)](ah(0x1d9)+f['id']+'\x20SG\x20NAME:\x20'+g[ah(0x1e4)]+ah(0x1e3)+h['sgId']);}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ai=a4d;return a4a[ai(0x1fa)]()[ai(0x1e7)](ai(0x1d1))['toString']()[ai(0x1df)](a4a)[ai(0x1e7)]('(((.+)+)+)+$');});a4a();var __awaiter=this&&this[a4aj(0x1ed)]||function(a,b,c,d){function e(f){const ak=a4d;if(ak(0x1ca)!=='dDtON')return f instanceof c?f:new c(function(g){const al=ak;if(al(0x1a6)==='UcPIm')g(f);else{let j=e[al(0x189)]['split'](al(0x19c))[0x1];f['push']({'amiId':g['ID'],'desc':h['Desc'],'date':j});}});else f=g[ak(0x1ef)],h[ak(0x1f1)](ak(0x1ce)+i+'\x20:\x20'+j[ak(0x19f)]);}return new(c||(c=Promise))(function(f,g){const ap=a4d;function h(k){const am=a4d;try{j(d[am(0x1d3)](k));}catch(l){g(l);}}function i(k){const an=a4d;try{j(d[an(0x1af)](k));}catch(l){g(l);}}function j(k){const ao=a4d;ao(0x17e)===ao(0x182)?e[ao(0x1c5)]('ID:\x20'+f['id']+ao(0x1ea)+g[ao(0x1ef)]+'\x20DESCRIPTION:\x20'+h[ao(0x19f)]):k[ao(0x19d)]?f(k[ao(0x191)]):e(k['value'])[ao(0x177)](h,i);}j((d=d['apply'](a,b||[]))[ap(0x1d3)]());});};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[a4aj(0x1fc)]({'name':'create-instance','aliases':['ci'],'usage':a4aj(0x1a3),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4aj(0x1a9)],'validOpts':[a4aj(0x180)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const aq=a4d;if('bRYnK'===aq(0x1da))d(e[aq(0x1d3)](f));else try{const d=this[aq(0x17a)][aq(0x1b6)](),f=new AWS(),{appName:g}=d,h=this[aq(0x17a)][aq(0x1d2)](b[aq(0x1a9)]);let i=g+'-'+h,j=(yield Actions[aq(0x1c3)](aq(0x1f9)+i+']\x20'))||i,k='',l='',m='',n='',o='',p='',q='';const r=yield Actions[aq(0x1dd)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?');let s='';r&&(s=yield f[aq(0x1c9)]({'env':h}));try{if(aq(0x1a0)!==aq(0x1e8)){Log['notice'](aq(0x179));let w=s?s:j,x=f[aq(0x1b9)]({'suggestion':w}),y=(yield Actions[aq(0x1c3)](aq(0x1f8)))||'-1';if(parseInt(y)<0x0){if(aq(0x1c4)!=='ZhJiX'){Log[aq(0x1dc)](aq(0x1a5)),Log[aq(0x1ba)](aq(0x195));return;}else c[aq(0x1dc)](d);}x===null||x===void 0x0?void 0x0:x[aq(0x1e6)](function(A){const ar=aq;parseInt(y)===A['id']&&(k=A['name'],Log['success'](ar(0x188)+k));});}else e=f[aq(0x1e4)],g[aq(0x1f1)]('Setting\x20the\x20key-pair\x20to:\x20'+h);}catch(B){Log[aq(0x1dc)](B);}l=yield f[aq(0x1c6)]();let t=yield Actions[aq(0x1dd)](aq(0x19e)),u;if(t){let C=l===''?f[aq(0x1c6)]():l,D=yield Actions[aq(0x1dd)](aq(0x198));u=(yield Actions[aq(0x1c3)](aq(0x1b8)+j+']'))||j,f[aq(0x193)]({'description':aq(0x17d),'name':u,'vpcId':C,'ssl':D});}u=j;try{if(aq(0x1e5)==='aOduV')c(d);else{Log[aq(0x1ba)](aq(0x1ae));let F=execSync(aq(0x1f4))[aq(0x1fa)](),G=JSON[aq(0x190)](F),H=[];G[aq(0x1e6)](function(J,K){const as=aq;H[as(0x1ac)]({'id':K,'name':J[as(0x1b3)],'sgId':J['ID']});}),H[aq(0x1e6)](function(J){const at=aq;if('aTvvr'!==at(0x194)){if(J['name']===u)Log[at(0x1ba)](at(0x1d9)+J['id']+at(0x1d7)+J[at(0x1e4)]+at(0x1e3)+J['sgId']);else{if('BqbCx'===at(0x1cf))console[at(0x1c5)](at(0x1d9)+J['id']+at(0x1d7)+J[at(0x1e4)]+at(0x1e3)+J[at(0x1bb)]);else try{i(j[at(0x1af)](k));}catch(L){m(L);}}}else throw b[at(0x1dc)](at(0x1c2));});let I=(yield Actions[aq(0x1c3)](aq(0x1f6)))||'0';H[aq(0x1e6)](function(J){const au=aq;if(au(0x1b4)===au(0x1b4))J['id']===parseInt(I)&&(m=J[au(0x1bb)],Log['success'](au(0x1eb)+m+'\x0a'));else return c[au(0x1fa)]()[au(0x1e7)](au(0x1d1))[au(0x1fa)]()[au(0x1df)](d)[au(0x1e7)](au(0x1d1));});if(m===''){if(aq(0x197)!==aq(0x1e1))throw Log[aq(0x1dc)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');else f[aq(0x1c5)](aq(0x1d9)+g['id']+aq(0x1b0)+h[aq(0x1a8)]+aq(0x18b)+i['az']+'\x20SUBNETID:\x20'+j[aq(0x199)]);}}}catch(K){aq(0x19b)===aq(0x19b)?Log[aq(0x1dc)](K):(c[aq(0x1f1)](aq(0x1be)),d[aq(0x183)](aq(0x1e0)));}try{let M=0x7e6;Log[aq(0x1ba)](aq(0x1e2));let N=execSync(aq(0x17c)+M+'*\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')[aq(0x1fa)](),O=JSON['parse'](N),P=[],Q=[];O[aq(0x1e6)](function(S,T){const av=aq;if(S['alias']===null){let U=S[av(0x189)][av(0x1db)]('build\x20on\x20')[0x1];P[av(0x1ac)]({'amiId':S['ID'],'desc':S['Desc'],'date':U});}}),P[aq(0x1fb)](function(S,T){const aw=aq;return new Date(T[aw(0x1bd)])[aw(0x19a)]()-new Date(S[aw(0x1bd)])[aw(0x19a)]();}),P[aq(0x1e6)](function(S,T){const ax=aq;if('cHQTa'==='cHQTa')Q[ax(0x1ac)]({'id':T,'amiId':S['amiId'],'desc':S[ax(0x19f)]});else{let V=l['ec2create']({'imageId':m,'count':n,'type':o,'key':p,'sgIds':q,'subnet':r,'tags':ax(0x1c0)+s+ax(0x176)+t+'}]\x22'});V&&(w[ax(0x1f1)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),x[ax(0x183)](ax(0x1e0)));}}),Q['forEach'](function(S){const ay=aq;console[ay(0x1c5)](ay(0x1d9)+S['id']+ay(0x1ea)+S[ay(0x1ef)]+ay(0x181)+S[ay(0x19f)]);});let R=(yield Actions[aq(0x1c3)](aq(0x18f)))||'0';Q['forEach'](function(S){const az=aq;if('oHlJR'!=='oHlJR')i['id']===j(k)&&(q=r[az(0x1ef)],s[az(0x1f1)]('Setting\x20AMI\x20ID\x20to\x20'+t+az(0x18d)+u[az(0x19f)]));else{if(S['id']===parseInt(R)){if(az(0x178)===az(0x178))n=S[az(0x1ef)],Log[az(0x1f1)]('Setting\x20AMI\x20ID\x20to\x20'+n+az(0x18d)+S[az(0x19f)]);else try{i(j[az(0x1d3)](k));}catch(V){m(V);}}}});if(n===''){if(aq(0x1b7)===aq(0x1b7))throw Log['error'](aq(0x1c2));else{if(e){const T=i['apply'](j,arguments);return k=null,T;}}}}catch(T){Log[aq(0x1dc)](T);}try{if(aq(0x1ad)!==aq(0x1a7)){Log[aq(0x1ba)]('**\x20Available\x20Subnets\x20**');let U=execSync(aq(0x1cb))[aq(0x1fa)](),V=JSON[aq(0x190)](U),W=[];V[aq(0x1e6)](function(Y,Z){const aA=aq;W[aA(0x1ac)]({'id':Z,'cidr':Y[aA(0x17b)],'az':Y['az'],'subnetId':Y['subnetId']});}),W['forEach'](function(Y){const aB=aq;console[aB(0x1c5)]('ID:\x20'+Y['id']+aB(0x1b0)+Y['cidr']+'\x20AZONE:\x20'+Y['az']+aB(0x1ab)+Y[aB(0x199)]);});let X=(yield Actions[aq(0x1c3)](aq(0x1f3)))||'0';W[aq(0x1e6)](function(Y){const aC=aq;Y['id']===parseInt(X)&&(p=Y[aC(0x199)],Log['success'](aC(0x1d0)+p));});if(p===''){if(aq(0x186)!==aq(0x186))c(d);else throw Log[aq(0x1dc)](aq(0x1c2));}}else k[aq(0x1e4)]===l?u[aq(0x1ba)]('ID:\x20'+v['id']+aq(0x1d7)+w[aq(0x1e4)]+'\x20SGID:\x20'+x['sgId']):y[aq(0x1c5)]('ID:\x20'+z['id']+aq(0x1d7)+A[aq(0x1e4)]+aq(0x1e3)+B['sgId']);}catch(a0){Log[aq(0x1dc)](a0);}let v=aq(0x1de);try{let a1=(yield Actions[aq(0x1c3)](aq(0x1f5)))||aq(0x1de),a2=a1['split'](':')[0x0],a3=a1[aq(0x1db)](':')[0x1];typeof parseInt(a2)===aq(0x187)&&typeof parseInt(a3)===aq(0x187)&&(v=[a2,a3][aq(0x1cd)](':'),Log[aq(0x1f1)](aq(0x1f0)+v));}catch(a4){aq(0x1ec)==='wXyVD'?c=d:Log['error'](a4);}try{if(aq(0x17f)===aq(0x17f)){let a6=(yield Actions[aq(0x1c3)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t2.nano]'))||aq(0x18a);typeof a6===aq(0x1cc)&&(aq(0x1f2)===aq(0x1f2)?o=a6:h['id']===i(j)&&(o=p[aq(0x1bb)],q['success'](aq(0x1eb)+r+'\x0a')));}else c[aq(0x1dc)](d);}catch(a9){Log[aq(0x1dc)](a9);}try{let aa=JSON[aq(0x190)](execSync(aq(0x1d6)+p+aq(0x1ee))['toString']())[0x0][aq(0x1d8)];Log[aq(0x1ba)](aq(0x18e)+n),Log[aq(0x1ba)](aq(0x1bf)+v),Log[aq(0x1ba)]('Instace\x20Type:\x20'+o),Log[aq(0x1ba)](aq(0x1bc)+k),Log[aq(0x1ba)](aq(0x1aa)+m),Log[aq(0x1ba)](aq(0x1c7)+aa);let ab=yield Actions[aq(0x1dd)](aq(0x1f7));if(ab){let ac=f[aq(0x1b5)]({'imageId':n,'count':v,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':aq(0x1c0)+h+aq(0x176)+j+'}]\x22'});ac&&(Log[aq(0x1f1)](aq(0x1be)),Log['bright'](aq(0x1e0)));}else Log[aq(0x1ba)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');}catch(ad){aq(0x196)!=='jGCUT'?ad[aq(0x1c5)]('ID:\x20'+f['id']+aq(0x1d7)+g[aq(0x1e4)]+'\x20SGID:\x20'+h[aq(0x1bb)]):(console[aq(0x1c5)](ad),Log[aq(0x1dc)](ad));}}catch(af){console['error'](af),process[aq(0x1e9)](0x0);}});},a4C);
1
+ const a4ak=a4d;(function(a,b){const ah=a4d,c=a();while(!![]){try{const d=-parseInt(ah(0x212))/0x1*(-parseInt(ah(0x1c2))/0x2)+-parseInt(ah(0x1b8))/0x3+parseInt(ah(0x230))/0x4+parseInt(ah(0x1f2))/0x5*(-parseInt(ah(0x220))/0x6)+-parseInt(ah(0x1f8))/0x7+-parseInt(ah(0x237))/0x8*(-parseInt(ah(0x1d5))/0x9)+parseInt(ah(0x221))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x5b77d));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ai=a4d;if(c){const e=c[ai(0x233)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const aj=a4d;return a4a[aj(0x1cd)]()[aj(0x1de)](aj(0x1e3))[aj(0x1cd)]()[aj(0x1d9)](a4a)[aj(0x1de)]('(((.+)+)+)+$');});function a4c(){const aD=['Desc','value','getConfigFromShorthand','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','Open\x20port\x20443\x20for\x20SSL?','431QAIvWC','join','__awaiter','date','env','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','lYLuM','rQxRw','ihrBz','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20:\x20','ec2createSG','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','KZxOw','545004orNRBW','5285670kUVYOa','\x20AMIID:\x20','HYwjB','Setting\x20SG\x20ID\x20to:\x20','kkaiJ','qxwEi','\x20SUBNETID:\x20','\x20AZONE:\x20','QPotn','amiId','notice','chooseVPC','vrVZq','alias','log','1853016YoBssC','Security\x20Group:\x20','create-instance','apply','create','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','jyKRF','8ofrDOP','ask','Setting\x20the\x20key-pair\x20to:\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t2.nano]','UXRlL','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','\x20SG\x20NAME:\x20','\x22Web\x20App\x22','SXagA','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','oQFYU','**\x20Available\x20Security\x20Groups\x20**','fsi','evlGY','1273473UHvcqt','\x20DESCRIPTION:\x20','ZQbnR','wOpoD','mUpLF','dXgak','gzvuP','mWQkw','success','\x20SGID:\x20','2246vrAdsT','getProjectConfig','**\x20Available\x20AMIs\x20**','help','VvFCl','confirm','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','build\x20on\x20','push','ec2create','Please\x20choose\x20a\x20key\x20to\x20use:\x20','toString','done','**\x20Available\x20key-pairs\x20**','qHWhF','Setting\x20Subnet\x20ID\x20to\x20','No\x20instance\x20has\x20been\x20created.','error','getTime','1817766PkqrKo','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','BGJVh','constructor','next','ID:\x20','number','egrTQ','search','cider','rzFmz','parse','forEach','(((.+)+)+)+$','EC2\x20Name:\x20[','Setting\x20AMI\x20ID\x20to\x20','subnetId','Batco','sGXCq','string','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','desc','sgId','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','exit','bPQTB','\x20CIDR:\x20','throw','30wSsMSW','ec2describeKeys','hAgWc','},\x20{Key=Name,Value=','split','cidr','2335620QJmxqA','1:1','Instance\x20Count:\x20','Instace\x20Type:\x20','Pobic','name','}]\x22','geWcX','**\x20Available\x20Subnets\x20**','bright','nGgAT','Key-Pair:\x20','ImageID:','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','subnet','sort','bhywa','swtjJ','qlXEu','FvteB'];a4c=function(){return aD;};return a4c();}a4a();var __awaiter=this&&this[a4ak(0x214)]||function(a,b,c,d){function e(f){const al=a4d;if('dXgak'===al(0x1bd))return f instanceof c?f:new c(function(g){g(f);});else h(i)===j['id']&&(o=p[al(0x1fd)],q['success'](al(0x239)+r));}return new(c||(c=Promise))(function(f,g){const ap=a4d;function h(k){const am=a4d;if(am(0x1ba)!==am(0x218))try{j(d[am(0x1da)](k));}catch(l){g(l);}else c[am(0x1d3)](d);}function i(k){const an=a4d;if(an(0x21f)!==an(0x21f))e=f[an(0x1fd)],g[an(0x1c0)](an(0x239)+h);else try{j(d[an(0x1f1)](k));}catch(m){g(m);}}function j(k){const ao=a4d;ao(0x1dd)!==ao(0x1dd)?(e=f[ao(0x1ec)],g[ao(0x1c0)](ao(0x224)+h+'\x0a')):k[ao(0x1ce)]?f(k[ao(0x20d)]):e(k['value'])['then'](h,i);}j((d=d[ap(0x233)](a,b||[]))[ap(0x1da)]());});};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';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1b8;let f=c[d];return f;},a4d(a,b);}Command[a4ak(0x234)]({'name':a4ak(0x232),'aliases':['ci'],'usage':'maka\x20aws:create-instance','description':'','mustBeInMakaProject':!![],'requiredOpts':[a4ak(0x216)],'validOpts':[a4ak(0x1c5)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const aq=a4d;if(aq(0x226)===aq(0x1bb))h['id']===i(j)&&(o=p[aq(0x1ec)],q[aq(0x1c0)](aq(0x224)+r+'\x0a'));else try{if(aq(0x225)!==aq(0x225))c[aq(0x1c0)](aq(0x1c8)),d[aq(0x201)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file');else{const f=this['fsi'][aq(0x1c3)](),g=new AWS(),{appName:h}=f,i=this[aq(0x243)][aq(0x20e)](b[aq(0x216)]);let j=h+'-'+i,k=(yield Actions[aq(0x238)](aq(0x1e4)+j+']\x20'))||j,l='',m='',n='',o='',p='',q='',r='';const s=yield Actions[aq(0x1c7)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?');let t='';s&&(t=yield g['createKeyPair']({'env':i}));try{Log[aq(0x22b)](aq(0x1cf));let x=t?t:k,y=g[aq(0x1f3)]({'suggestion':x}),z=(yield Actions['ask'](aq(0x1cc)))||'-1';if(parseInt(z)<0x0){Log[aq(0x1d3)](aq(0x205)),Log['notice'](aq(0x1d2));return;}y===null||y===void 0x0?void 0x0:y[aq(0x1e2)](function(A){const ar=aq;if('ncsiM'===ar(0x1d8))c(d);else{if(parseInt(z)===A['id']){if(ar(0x202)!==ar(0x1bf))l=A[ar(0x1fd)],Log[ar(0x1c0)](ar(0x239)+l);else return new e(f['date'])[ar(0x1d4)]()-new g(h['date'])['getTime']();}}});}catch(A){Log['error'](A);}m=yield g[aq(0x22c)]();let u=yield Actions[aq(0x1c7)](aq(0x1ea)),v;if(u){if(aq(0x1e8)!==aq(0x1e8)){const C=d['apply'](e,arguments);return f=null,C;}else{let C=m===''?g[aq(0x22c)]():m,D=yield Actions[aq(0x1c7)](aq(0x211));v=(yield Actions['ask']('Security\x20Group\x20Name:\x20['+k+']'))||k,g[aq(0x21d)]({'description':aq(0x23e),'name':v,'vpcId':C,'ssl':D});}}v=k;try{if(aq(0x1e7)==='jZvzy')c['error'](d);else{Log[aq(0x22b)](aq(0x242));let F=execSync(aq(0x210))[aq(0x1cd)](),G=JSON[aq(0x1e1)](F),H=[];G[aq(0x1e2)](function(J,K){const as=aq;if(as(0x20b)!==as(0x1ff))H[as(0x1ca)]({'id':K,'name':J['Name'],'sgId':J['ID']});else throw b[as(0x1d3)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}),H['forEach'](function(J){const at=aq;at(0x244)!==at(0x208)?J[at(0x1fd)]===v?Log[at(0x22b)](at(0x1db)+J['id']+at(0x23d)+J[at(0x1fd)]+at(0x1c1)+J[at(0x1ec)]):console[at(0x22f)]('ID:\x20'+J['id']+at(0x23d)+J[at(0x1fd)]+at(0x1c1)+J['sgId']):(d[at(0x1d3)](e),f[at(0x1ee)](0x0));});let I=(yield Actions[aq(0x238)](aq(0x235)))||'0';H['forEach'](function(J){const au=aq;au(0x23f)!==au(0x22d)?J['id']===parseInt(I)&&(n=J['sgId'],Log['success'](au(0x224)+n+'\x0a')):(f=g['amiId'],h[au(0x1c0)](au(0x1e5)+i+au(0x21c)+j[au(0x1eb)]));});if(n===''){if('Tzoof'===aq(0x229))throw b[aq(0x1d3)](aq(0x21b));else throw Log[aq(0x1d3)](aq(0x21b));}}}catch(K){aq(0x1ef)===aq(0x21a)?h['id']===i(j)&&(o=p[aq(0x1e6)],q[aq(0x1c0)](aq(0x1d1)+r)):Log['error'](K);}try{if(aq(0x1c6)!==aq(0x241)){let M=0x7e6;Log[aq(0x22b)](aq(0x1c4));let N=execSync('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=*'+M+'*\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')['toString'](),O=JSON[aq(0x1e1)](N),P=[],Q=[];O['forEach'](function(S,T){const av=aq;if(S['alias']===null){if(av(0x20a)!==av(0x20a))try{i(j['throw'](k));}catch(V){m(V);}else{let V=S[av(0x20c)]['split'](av(0x1c9))[0x1];P['push']({'amiId':S['ID'],'desc':S[av(0x20c)],'date':V});}}}),P[aq(0x207)](function(S,T){const aw=aq;if(aw(0x1e0)===aw(0x1e0))return new Date(T[aw(0x215)])[aw(0x1d4)]()-new Date(S['date'])[aw(0x1d4)]();else f[aw(0x1ca)]({'id':g,'cidr':h[aw(0x1df)],'az':i['az'],'subnetId':j[aw(0x1e6)]});}),P[aq(0x1e2)](function(S,T){const ax=aq;if(ax(0x219)===ax(0x1fc)){c[ax(0x1d3)](ax(0x205)),d[ax(0x22b)](ax(0x1d2));return;}else Q[ax(0x1ca)]({'id':T,'amiId':S['amiId'],'desc':S[ax(0x1eb)]});}),Q[aq(0x1e2)](function(S){const ay=aq;console['log'](ay(0x1db)+S['id']+ay(0x222)+S['amiId']+ay(0x1b9)+S['desc']);});let R=(yield Actions['ask'](aq(0x20f)))||'0';Q[aq(0x1e2)](function(S){const az=aq;az(0x1bc)!=='kUomm'?S['id']===parseInt(R)&&(o=S[az(0x22a)],Log[az(0x1c0)]('Setting\x20AMI\x20ID\x20to\x20'+o+az(0x21c)+S[az(0x1eb)])):e[az(0x22f)](az(0x1db)+f['id']+'\x20SG\x20NAME:\x20'+g[az(0x1fd)]+'\x20SGID:\x20'+h['sgId']);});if(o==='')throw Log[aq(0x1d3)](aq(0x21b));}else f[aq(0x22f)](aq(0x1db)+g['id']+aq(0x1f0)+h[aq(0x1f7)]+aq(0x228)+i['az']+aq(0x227)+j[aq(0x1e6)]);}catch(T){Log[aq(0x1d3)](T);}try{Log['notice'](aq(0x200));let U=execSync(aq(0x23c))[aq(0x1cd)](),V=JSON[aq(0x1e1)](U),W=[];V[aq(0x1e2)](function(Y,Z){const aA=aq;'hweho'==='hweho'?W[aA(0x1ca)]({'id':Z,'cidr':Y[aA(0x1df)],'az':Y['az'],'subnetId':Y[aA(0x1e6)]}):b[aA(0x22b)](aA(0x240));}),W['forEach'](function(Y){const aB=aq;console[aB(0x22f)](aB(0x1db)+Y['id']+'\x20CIDR:\x20'+Y[aB(0x1f7)]+'\x20AZONE:\x20'+Y['az']+aB(0x227)+Y[aB(0x1e6)]);});let X=(yield Actions[aq(0x238)](aq(0x21e)))||'0';W['forEach'](function(Y){const aC=aq;Y['id']===parseInt(X)&&(q=Y[aC(0x1e6)],Log['success'](aC(0x1d1)+q));});if(q==='')throw Log['error'](aq(0x21b));}catch(Y){Log[aq(0x1d3)](Y);}let w=aq(0x1f9);try{let Z=(yield Actions[aq(0x238)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20'))||aq(0x1f9),a0=Z[aq(0x1f6)](':')[0x0],a1=Z['split'](':')[0x1];typeof parseInt(a0)==='number'&&typeof parseInt(a1)===aq(0x1dc)&&(w=[a0,a1][aq(0x213)](':'),Log[aq(0x1c0)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+w));}catch(a2){if(aq(0x1be)!=='gzvuP'){let a4=a2[aq(0x20c)][aq(0x1f6)]('build\x20on\x20')[0x1];f[aq(0x1ca)]({'amiId':g['ID'],'desc':h[aq(0x20c)],'date':a4});}else Log[aq(0x1d3)](a2);}try{let a4=(yield Actions[aq(0x238)](aq(0x23a)))||'t2.nano';if(typeof a4===aq(0x1e9)){if(aq(0x1d0)!=='qHWhF')throw b['error'](aq(0x21b));else p=a4;}}catch(a6){'TGiWm'==='TGiWm'?Log[aq(0x1d3)](a6):a6[aq(0x1ca)]({'id':f,'amiId':g['amiId'],'desc':h[aq(0x1eb)]});}try{if('swtjJ'===aq(0x209)){let a8=JSON[aq(0x1e1)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+q+aq(0x1d7))[aq(0x1cd)]())[0x0][aq(0x206)];Log[aq(0x22b)](aq(0x204)+o),Log[aq(0x22b)](aq(0x1fa)+w),Log[aq(0x22b)](aq(0x1fb)+p),Log['notice'](aq(0x203)+l),Log[aq(0x22b)](aq(0x231)+n),Log[aq(0x22b)]('Subnet:\x20'+a8);let a9=yield Actions[aq(0x1c7)](aq(0x1ed));if(a9){let aa=g['ec2create']({'imageId':o,'count':w,'type':p,'key':l,'sgIds':n,'subnet':q,'tags':aq(0x1d6)+i+aq(0x1f5)+k+aq(0x1fe)});if(aa){if('UXRlL'!==aq(0x23b)){let ac=l[aq(0x1cb)]({'imageId':m,'count':n,'type':o,'key':p,'sgIds':q,'subnet':r,'tags':aq(0x1d6)+s+'},\x20{Key=Name,Value='+t+aq(0x1fe)});ac&&(w['success']('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),x[aq(0x201)](aq(0x217)));}else Log['success'](aq(0x1c8)),Log[aq(0x201)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file');}}else{if(aq(0x1f4)!==aq(0x223))Log[aq(0x22b)](aq(0x240));else{const ad=g?function(){if(ad){const ae=q['apply'](r,arguments);return s=null,ae;}}:function(){};return l=![],ad;}}}else{if(f[aq(0x22e)]===null){let ae=k[aq(0x20c)][aq(0x1f6)](aq(0x1c9))[0x1];l[aq(0x1ca)]({'amiId':m['ID'],'desc':n[aq(0x20c)],'date':ae});}}}catch(ae){console[aq(0x22f)](ae),Log[aq(0x1d3)](ae);}}}catch(af){'jyKRF'===aq(0x236)?(console[aq(0x1d3)](af),process[aq(0x1ee)](0x0)):c(d);}});},a4C);
@@ -1 +1 @@
1
- const a5B=a5d;(function(a,b){const y=a5d,c=a();while(!![]){try{const d=-parseInt(y(0x142))/0x1+parseInt(y(0x139))/0x2+-parseInt(y(0x153))/0x3*(-parseInt(y(0x159))/0x4)+-parseInt(y(0x149))/0x5+parseInt(y(0x14b))/0x6+-parseInt(y(0x143))/0x7+-parseInt(y(0x14d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xb3710));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a5d;if(c){if(z(0x158)===z(0x158)){const e=c[z(0x152)](b,arguments);return c=null,e;}else{const g=g?function(){if(g){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],g;}}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const A=a5d;return a5a[A(0x154)]()[A(0x146)](A(0x13b))[A(0x154)]()['constructor'](a5a)[A(0x146)](A(0x13b));});a5a();var __awaiter=this&&this[a5B(0x147)]||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 F=a5d;function h(k){const C=a5d;if(C(0x14f)!==C(0x14f))d[C(0x141)](e),f[C(0x150)](0x0);else try{j(d[C(0x14a)](k));}catch(m){g(m);}}function i(k){const D=a5d;try{j(d[D(0x156)](k));}catch(l){g(l);}}function j(k){const E=a5d;k[E(0x157)]?f(k['value']):e(k[E(0x148)])['then'](h,i);}j((d=d[F(0x152)](a,b||[]))[F(0x14a)]());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5c(){const H=['help','999744GVVdoW','pbGdu','(((.+)+)+)+$','CEDXT','getConfigFromShorthand','fsi','create-key-pair','JqpPK','error','409812zOxndA','1888950jFQTJp','create','env','search','__awaiter','value','5747170wYQQIO','next','8548272qThYFn','SIcdC','4567376wNvRJq','maka\x20aws\x20create-key-pair','wqJPm','exit','createKeyPair','apply','117138JpzToo','toString','ckp','throw','done','GulQZ','124NQmSjl'];a5c=function(){return H;};return a5c();}function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x139;let f=c[d];return f;},a5d(a,b);}Command[a5B(0x144)]({'name':a5B(0x13f),'aliases':[a5B(0x155)],'usage':a5B(0x14e),'mustBeInMakaProject':!![],'requiredOpts':[a5B(0x145)],'validOpts':[a5B(0x15a)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a5d;if('HUTgy'===G(0x140))try{const d=new i(),f=this['fsi'][G(0x13d)](j[G(0x145)]);d[G(0x151)]({'env':f});}catch(g){m[G(0x141)](g),n[G(0x150)](0x0);}else try{if(G(0x14c)!==G(0x13c)){const d=new AWS(),f=this[G(0x13e)][G(0x13d)](b['env']);d['createKeyPair']({'env':f});}else try{i(j['next'](k));}catch(h){m(h);}}catch(h){G(0x13a)!=='pbGdu'?c(d):(console['error'](h),process[G(0x150)](0x0));}});},a5x);
1
+ const a5D=a5d;function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xf1;let f=c[d];return f;},a5d(a,b);}(function(a,b){const A=a5d,c=a();while(!![]){try{const d=-parseInt(A(0xfb))/0x1*(parseInt(A(0x113))/0x2)+-parseInt(A(0x104))/0x3*(parseInt(A(0x109))/0x4)+-parseInt(A(0x10f))/0x5*(parseInt(A(0x112))/0x6)+parseInt(A(0x114))/0x7+-parseInt(A(0x103))/0x8*(parseInt(A(0xfe))/0x9)+parseInt(A(0x101))/0xa+parseInt(A(0xf8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xed477));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const B=a5d;if('weGgt'!==B(0xf1)){const f=d[B(0x102)](e,arguments);return f=null,f;}else{if(c){const f=c['apply'](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const C=a5d;return a5a[C(0xfc)]()[C(0x100)](C(0x107))[C(0xfc)]()[C(0x105)](a5a)[C(0x100)](C(0x107));});a5a();var __awaiter=this&&this[a5D(0xff)]||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 I=a5d;function h(k){const E=a5d;if(E(0x108)===E(0x108))try{j(d[E(0xf4)](k));}catch(l){if('aPRYI'===E(0x10b))g(l);else return c[E(0xfc)]()[E(0x100)](E(0x107))[E(0xfc)]()['constructor'](d)[E(0x100)](E(0x107));}else return f(this,void 0x0,void 0x0,function*(){const F=E;try{const x=new o(),y=this[F(0xfd)][F(0xf2)](p[F(0x10d)]);x[F(0x10c)]({'env':y});}catch(z){s[F(0x10a)](z),t[F(0xfa)](0x0);}});}function i(k){const G=a5d;try{j(d[G(0xf9)](k));}catch(l){g(l);}}function j(k){const H=a5d;'tYtIA'!==H(0x111)?d(e[H(0xf4)](f)):k[H(0xf5)]?f(k[H(0x10e)]):e(k[H(0x10e)])['then'](h,i);}j((d=d[I(0x102)](a,b||[]))[I(0xf4)]());});};function a5c(){const K=['next','done','XLNnD','maka\x20aws\x20create-key-pair','29006769opYjeJ','throw','exit','1jzTdTM','toString','fsi','1637973dWxyox','__awaiter','search','18286560ttrUXy','apply','16pfvKWQ','81bnxUER','constructor','help','(((.+)+)+)+$','QUCwv','188292tYgNCz','error','aPRYI','createKeyPair','env','value','338610xWPAWm','create','tYtIA','84nslIsJ','3148118AyvAeh','4643744XktHCI','weGgt','getConfigFromShorthand','cRiBy'];a5c=function(){return K;};return a5c();}import a5x from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5D(0x110)]({'name':'create-key-pair','aliases':['ckp'],'usage':a5D(0xf7),'mustBeInMakaProject':!![],'requiredOpts':[a5D(0x10d)],'validOpts':[a5D(0x106)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const J=a5d;if('XLNnD'!==J(0xf6))d[J(0x10a)](e),f[J(0xfa)](0x0);else try{const d=new AWS(),f=this[J(0xfd)][J(0xf2)](b['env']);d[J(0x10c)]({'env':f});}catch(g){'cRiBy'!==J(0xf3)?c(d):(console[J(0x10a)](g),process[J(0xfa)](0x0));}});},a5x);
@@ -1 +1 @@
1
- const a6y=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0x18b))/0x1+parseInt(v(0x195))/0x2+-parseInt(v(0x18f))/0x3+parseInt(v(0x172))/0x4*(parseInt(v(0x187))/0x5)+-parseInt(v(0x184))/0x6*(-parseInt(v(0x198))/0x7)+-parseInt(v(0x191))/0x8*(-parseInt(v(0x185))/0x9)+-parseInt(v(0x180))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x564c3));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if(c){if(w(0x19c)===w(0x19c)){const e=c['apply'](b,arguments);return c=null,e;}else d(e['next'](f));}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a[x(0x171)]()['search']('(((.+)+)+)+$')['toString']()[x(0x17d)](a6a)['search'](x(0x19d));});a6a();var __awaiter=this&&this[a6y(0x197)]||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;try{j(d[z(0x183)](k));}catch(l){g(l);}}function i(k){const A=a6d;try{A(0x196)!==A(0x186)?j(d[A(0x176)](k)):(d[A(0x17a)](e),f[A(0x174)](0x0));}catch(m){A(0x18d)===A(0x17c)?c(d):g(m);}}function j(k){const B=a6d;if(B(0x175)===B(0x175))k[B(0x170)]?f(k[B(0x178)]):e(k['value'])[B(0x189)](h,i);else return c[B(0x171)]()[B(0x17b)](B(0x19d))[B(0x171)]()[B(0x17d)](d)[B(0x17b)]('(((.+)+)+)+$');}j((d=d[C(0x173)](a,b||[]))['next']());});};function a6c(){const E=['confirm','then','plEib','326204GbmsGc','name','zpSEa','ask','1042641iXxgUc','cyPIy','2601736UOdeyn','ssl','RsjXS','create-security-group','1273284zTbrTt','sDpFi','__awaiter','1133510OSnppy','ec2createSG','csg','chooseVPC','lCLtD','(((.+)+)+)+$','\x22Web\x20App\x22','Open\x20port\x20443\x20for\x20SSL?','done','toString','300UhNPOi','apply','exit','fdZXv','throw','maka\x20aws\x20terminate-instance','value','wnhbV','error','search','HiCYO','constructor','fsi','getProjectConfig','2673430HVLWhE','geJBT','-ssl','next','12kOckIr','9ATHDfz','iczqH','590VljJyd'];a6c=function(){return E;};return a6c();}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';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x170;let f=c[d];return f;},a6d(a,b);}Command['create']({'name':a6y(0x194),'aliases':[a6y(0x19a)],'usage':a6y(0x177),'validOpts':['help']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a6d;if(D(0x179)===D(0x193)){if(e){const d=i[D(0x173)](j,arguments);return k=null,d;}}else try{if('cyPIy'===D(0x190)){const d=new AWS(),f=this[D(0x17e)][D(0x17f)](),{appName:g}=f;let h=yield d[D(0x19b)](),i=![];!b[D(0x192)]&&(i=yield Actions[D(0x188)](D(0x19f)));let j=i?D(0x182):'',k=b[D(0x18c)]?b['name']:''+g+j,l=(yield Actions[D(0x18e)]('Security\x20Group\x20Name:\x20['+k+']'))||k;d[D(0x199)]({'description':D(0x19e),'name':l,'vpcId':h,'ssl':i});}else c(d);}catch(n){D(0x181)===D(0x18a)?h[D(0x170)]?i(j[D(0x178)]):k(l['value'])[D(0x189)](m,n):(console[D(0x17a)](n),process[D(0x174)](0x0));}});},a6u);
1
+ const a6y=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=parseInt(v(0x129))/0x1*(-parseInt(v(0x125))/0x2)+-parseInt(v(0x120))/0x3*(parseInt(v(0x123))/0x4)+parseInt(v(0x11e))/0x5+parseInt(v(0x11b))/0x6+-parseInt(v(0x110))/0x7*(-parseInt(v(0x109))/0x8)+parseInt(v(0x104))/0x9*(-parseInt(v(0x117))/0xa)+-parseInt(v(0x121))/0xb*(-parseInt(v(0x11d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xe657d));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if(c){if('kjieG'!==w(0x111))d(e[w(0x12a)](f));else{const f=c[w(0x119)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a[x(0x101)]()[x(0x10e)](x(0x102))[x(0x101)]()[x(0x103)](a6a)['search'](x(0x102));});a6a();function a6c(){const F=['__awaiter','create','error','ssl','856eOLeqf','csg','Open\x20port\x20443\x20for\x20SSL?','help','ask','search','wbBds','45101EtwUwY','kjieG','chooseVPC','Security\x20Group\x20Name:\x20[','kgHsg','ec2createSG','exit','6570LJbmHT','name','apply','JuHmt','9589098EKFhvS','confirm','175044dgloDd','8354410HBHuSI','yZrWf','1515nGwFwn','715KAWiVT','getProjectConfig','9816FySszS','value','1856570ZaOBLe','fsi','TwWWU','EvkcQ','1qqSWaz','throw','next','XPYQL','then','SDAFS','toString','(((.+)+)+)+$','constructor','24597soeSZE'];a6c=function(){return F;};return a6c();}var __awaiter=this&&this[a6y(0x105)]||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 D=a6d;function h(k){const z=a6d;if(z(0x128)===z(0x128))try{j(d['next'](k));}catch(l){'CVVcz'!=='biWdZ'?g(l):c(d);}else{const o=d[z(0x119)](e,arguments);return f=null,o;}}function i(k){const A=a6d;if(A(0x12c)==='PIaVe')c(d);else try{A(0x10f)===A(0x11a)?c(d):j(d[A(0x12a)](k));}catch(n){if(A(0x114)==='DILPu'){const p=g?function(){const B=A;if(p){const u=q[B(0x119)](r,arguments);return s=null,u;}}:function(){};return l=![],p;}else g(n);}}function j(k){const C=a6d;k['done']?f(k[C(0x124)]):e(k[C(0x124)])[C(0x12d)](h,i);}j((d=d[D(0x119)](a,b||[]))[D(0x12b)]());});};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';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x100;let f=c[d];return f;},a6d(a,b);}Command[a6y(0x106)]({'name':'create-security-group','aliases':[a6y(0x10a)],'usage':'maka\x20aws\x20terminate-instance','validOpts':[a6y(0x10c)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a6d;if(E(0x127)!==E(0x127))return c[E(0x101)]()[E(0x10e)](E(0x102))[E(0x101)]()['constructor'](d)[E(0x10e)](E(0x102));else try{if('PMlOM'===E(0x11f))return f instanceof g?h:new i(function(m){m(k);});else{const f=new AWS(),g=this[E(0x126)][E(0x122)](),{appName:h}=g;let i=yield f[E(0x112)](),j=![];if(!b[E(0x108)]){if(E(0x100)!=='bklcl')j=yield Actions[E(0x11c)](E(0x10b));else try{i(j[E(0x12b)](k));}catch(o){m(o);}}let k=j?'-ssl':'',l=b[E(0x118)]?b[E(0x118)]:''+h+k,m=(yield Actions[E(0x10d)](E(0x113)+l+']'))||l;f[E(0x115)]({'description':'\x22Web\x20App\x22','name':m,'vpcId':i,'ssl':j});}}catch(o){console[E(0x107)](o),process[E(0x116)](0x0);}});},a6u);
@@ -1 +1 @@
1
- var a7A=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0x121))/0x1+parseInt(v(0x126))/0x2+parseInt(v(0x132))/0x3*(-parseInt(v(0x11e))/0x4)+parseInt(v(0x12e))/0x5*(-parseInt(v(0x123))/0x6)+-parseInt(v(0x11b))/0x7*(parseInt(v(0x127))/0x8)+-parseInt(v(0x135))/0x9+parseInt(v(0x11f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xcfaf3));var a7b=(function(){var a=!![];return function(b,c){var w=a7d;if(w(0x12c)===w(0x128)){const f=new b();f[w(0x13a)]();}else{var d=a?function(){var x=w;if(x(0x134)!=='VjGIL')return e(this,void 0x0,void 0x0,function*(){var y=x;try{const s=new l();s[y(0x13a)]();}catch(t){o[y(0x11d)](t),p['exit'](0x0);}});else{if(c){var f=c[x(0x125)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}};}()),a7a=a7b(this,function(){var z=a7d;return a7a['toString']()[z(0x129)](z(0x13b))[z(0x120)]()[z(0x12b)](a7a)[z(0x129)](z(0x13b));});a7a();var __awaiter=this&&this[a7A(0x131)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var B=a7d;if(B(0x130)!=='nvtRZ'){if(e){var i=i[B(0x125)](j,arguments);return k=null,i;}}else g(f);});}return new(c||(c=Promise))(function(f,g){var F=a7d;function h(k){var C=a7d;try{j(d[C(0x139)](k));}catch(l){C(0x122)!==C(0x11c)?g(l):c(d);}}function i(k){var D=a7d;try{D(0x13c)===D(0x13c)?j(d['throw'](k)):d(e['next'](f));}catch(m){if(D(0x137)!==D(0x136))g(m);else return c['toString']()[D(0x129)](D(0x13b))[D(0x120)]()[D(0x12b)](d)[D(0x129)](D(0x13b));}}function j(k){var E=a7d;k[E(0x12f)]?f(k[E(0x11a)]):e(k['value'])['then'](h,i);}j((d=d[F(0x125)](a,b||[]))[F(0x139)]());});};function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x11a;var f=c[d];return f;},a7d(a,b);}function a7c(){var H=['next','ec2describeInstances','(((.+)+)+)+$','URCdv','value','14OFzfvw','OQPiB','error','2412kfiEPu','29209960QpoaYW','toString','554046uTTFQn','pWpwb','1218186VosDPX','describe-instances','apply','2773046jkMxfa','220040OFhNIh','VzYIt','search','help','constructor','LfZlK','create','35uAJBBH','done','nvtRZ','__awaiter','7704HWtobf','exit','VjGIL','8875431NniMwQ','Pgaxa','FDCiC','maka\x20aws\x20describe-instances'];a7c=function(){return H;};return a7c();}import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7A(0x12d)]({'name':a7A(0x124),'aliases':['di'],'usage':a7A(0x138),'validOpts':[a7A(0x12a)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var G=a7d;try{const a=new AWS();a[G(0x13a)]();}catch(b){console['error'](b),process[G(0x133)](0x0);}});},a7u);
1
+ var a7F=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0x19a))/0x1*(-parseInt(v(0x1a4))/0x2)+-parseInt(v(0x191))/0x3*(parseInt(v(0x19f))/0x4)+parseInt(v(0x193))/0x5*(parseInt(v(0x18e))/0x6)+-parseInt(v(0x1a9))/0x7*(-parseInt(v(0x1ad))/0x8)+parseInt(v(0x192))/0x9+parseInt(v(0x18f))/0xa+parseInt(v(0x195))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xc5cbf));var a7b=(function(){var a=!![];return function(b,c){var w=a7d;if('YzbGr'!==w(0x19d))h[w(0x1ab)]?i(j[w(0x1aa)]):k(l[w(0x1aa)])[w(0x194)](m,n);else{var d=a?function(){var x=w;if(x(0x1a1)!=='xBCvM'){var h=g?function(){var y=x;if(h){var u=q[y(0x197)](r,arguments);return s=null,u;}}:function(){};return l=![],h;}else{if(c){if('NDCpt'!==x(0x19c))return e(this,void 0x0,void 0x0,function*(){var z=x;try{const s=new l();s['ec2describeInstances']();}catch(t){o[z(0x1ac)](t),p[z(0x1a2)](0x0);}});else{var f=c[x(0x197)](b,arguments);return c=null,f;}}}}:function(){};return a=![],d;}};}()),a7a=a7b(this,function(){var A=a7d;return a7a[A(0x19b)]()[A(0x1a0)]('(((.+)+)+)+$')['toString']()[A(0x196)](a7a)[A(0x1a0)](A(0x199));});a7a();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){var E=a7d;function h(k){var B=a7d;if('ljYRd'===B(0x1a5))return f instanceof g?h:new i(function(m){m(k);});else try{j(d[B(0x190)](k));}catch(m){g(m);}}function i(k){var C=a7d;if(C(0x19e)===C(0x1a3))d[C(0x1ac)](e),f[C(0x1a2)](0x0);else try{j(d[C(0x1ae)](k));}catch(m){g(m);}}function j(k){var D=a7d;k[D(0x1ab)]?f(k['value']):e(k[D(0x1aa)])[D(0x194)](h,i);}j((d=d[E(0x197)](a,b||[]))[E(0x190)]());});};function a7c(){var H=['apply','describe-instances','(((.+)+)+)+$','2TwSWWr','toString','NDCpt','YzbGr','OrAel','60EEIYbH','search','xBCvM','exit','WpUUv','1286684GiXixw','ySJZT','ec2describeInstances','BWKYo','help','49QmiGuy','value','done','error','1301192fQokni','throw','156scybOf','79630jvCxal','next','207357XyZkvu','199071RkDwcb','254900WxJSqY','then','7034929DoDMpc','constructor'];a7c=function(){return H;};return a7c();}import a7u from'./aws.command.js';import{Command}from'../../command.js';function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x18e;var f=c[d];return f;},a7d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a7F(0x198),'aliases':['di'],'usage':'maka\x20aws\x20describe-instances','validOpts':[a7F(0x1a8)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var G=a7d;try{const a=new AWS();a[G(0x1a6)]();}catch(b){if('BWKYo'===G(0x1a7))console[G(0x1ac)](b),process['exit'](0x0);else try{i(j[G(0x1ae)](k));}catch(d){m(d);}}});},a7u);
@@ -1 +1 @@
1
- function a8c(){var G=['XLHQx','30068489pMKVns','516149Gbubwi','8279005iKAHsy','error','throw','(((.+)+)+)+$','done','24YwTVYs','LksgM','aLZxm','dkp','toString','1151136nZSPwC','4RPLdSR','exit','2WALCxx','value','__awaiter','QDSBq','help','6704442bNoTyA','next','3156663dIFAcw','apply','search','YRvac','BSdCk','3123337bLLjBt','maka\x20aws\x20describe-key-pairs','then','10kkpwVJ','describe-key-pairs'];a8c=function(){return G;};return a8c();}var a8z=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0xf7))/0x1+-parseInt(v(0xe4))/0x2*(-parseInt(v(0xeb))/0x3)+parseInt(v(0xe2))/0x4*(parseInt(v(0xf8))/0x5)+-parseInt(v(0xe9))/0x6+parseInt(v(0xf0))/0x7*(parseInt(v(0xdc))/0x8)+parseInt(v(0xe1))/0x9+-parseInt(v(0xf3))/0xa*(parseInt(v(0xf6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xcd03e));var a8b=(function(){var a=!![];return function(b,c){var w=a8d;if('ihWOx'!=='ihWOx')try{i(j[w(0xd9)](k));}catch(f){m(f);}else{var d=a?function(){var x=w;if(x(0xde)===x(0xdd))try{i(j[x(0xea)](k));}catch(h){m(h);}else{if(c){if(x(0xe7)!=='vtedE'){var f=c[x(0xec)](b,arguments);return c=null,f;}else try{const i=new g();i['ec2describeKeys']();}catch(j){j[x(0xf9)](j),k['exit'](0x0);}}}}:function(){};return a=![],d;}};}()),a8a=a8b(this,function(){var y=a8d;return a8a[y(0xe0)]()[y(0xed)](y(0xda))['toString']()['constructor'](a8a)['search'](y(0xda));});a8a();var __awaiter=this&&this[a8z(0xe6)]||function(a,b,c,d){function e(f){var A=a8d;return A(0xee)!==A(0xef)?f instanceof c?f:new c(function(g){var B=A;if(B(0xf5)===B(0xf5))g(f);else{if(e){var i=i[B(0xec)](j,arguments);return k=null,i;}}}):f instanceof g?h:new i(function(m){m(k);});}return new(c||(c=Promise))(function(f,g){var E=a8d;function h(k){var C=a8d;try{j(d[C(0xea)](k));}catch(l){g(l);}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){var D=a8d;k[D(0xdb)]?f(k[D(0xe5)]):e(k['value'])[D(0xf2)](h,i);}j((d=d[E(0xec)](a,b||[]))[E(0xea)]());});};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-0xd9;var f=c[d];return f;},a8d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a8z(0xf4),'aliases':[a8z(0xdf)],'usage':a8z(0xf1),'validOpts':[a8z(0xe8)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var F=a8d;try{const a=new AWS();a['ec2describeKeys']();}catch(b){console[F(0xf9)](b),process[F(0xe3)](0x0);}});},a8u);
1
+ var a8y=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0x1e0))/0x1*(-parseInt(v(0x1eb))/0x2)+parseInt(v(0x1d0))/0x3*(parseInt(v(0x1de))/0x4)+parseInt(v(0x1d6))/0x5*(parseInt(v(0x1ea))/0x6)+-parseInt(v(0x1dc))/0x7*(-parseInt(v(0x1d7))/0x8)+-parseInt(v(0x1da))/0x9+-parseInt(v(0x1d5))/0xa+parseInt(v(0x1e6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xee78b));function a8c(){var E=['18651468rinaRT','apply','done','constructor','18FLNqDJ','6YuHqEW','exit','JvAEE','CACrt','ec2describeKeys','dkp','3jUDxPx','create','then','search','IAKJc','2157470kCmKqK','473105eqjDVS','88VEngov','(((.+)+)+)+$','IgujN','15048153avYcZZ','throw','236138TlwiOq','value','3163372JJjXWv','toString','92275eStijE','xGmJR','next','error','__awaiter','describe-key-pairs'];a8c=function(){return E;};return a8c();}function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x1cc;var f=c[d];return f;},a8d(a,b);}var a8b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a8d;if(w(0x1cc)!==w(0x1e1)){if(c){if(w(0x1d9)===w(0x1d9)){var e=c[w(0x1e7)](b,arguments);return c=null,e;}else d(e[w(0x1db)](f));}}else{var h=d[w(0x1e7)](e,arguments);return f=null,h;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){var x=a8d;return a8a[x(0x1df)]()[x(0x1d3)](x(0x1d8))[x(0x1df)]()[x(0x1e9)](a8a)['search'](x(0x1d8));});a8a();var __awaiter=this&&this[a8y(0x1e4)]||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){var z=a8d;try{'GjFpD'!=='GjFpD'?(d[z(0x1e3)](e),f['exit'](0x0)):j(d[z(0x1e2)](k));}catch(m){if('BNQCu'==='BNQCu')g(m);else{var o=g?function(){var A=z;if(o){var u=q[A(0x1e7)](r,arguments);return s=null,u;}}:function(){};return l=![],o;}}}function i(k){var B=a8d;if('QNXLO'!==B(0x1cd))try{j(d[B(0x1db)](k));}catch(l){B(0x1d4)!=='IAKJc'?h[B(0x1e8)]?i(j[B(0x1dd)]):k(l[B(0x1dd)])[B(0x1d2)](m,n):g(l);}else c(d);}function j(k){var C=a8d;k['done']?f(k[C(0x1dd)]):e(k[C(0x1dd)])[C(0x1d2)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8y(0x1d1)]({'name':a8y(0x1e5),'aliases':[a8y(0x1cf)],'usage':'maka\x20aws\x20describe-key-pairs','validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var D=a8d;try{const a=new AWS();a[D(0x1ce)]();}catch(b){console['error'](b),process[D(0x1ec)](0x0);}});},a8u);
@@ -1 +1 @@
1
- const a9x=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0xd1))/0x1+-parseInt(v(0xe4))/0x2*(-parseInt(v(0xec))/0x3)+-parseInt(v(0xd7))/0x4*(parseInt(v(0xe5))/0x5)+parseInt(v(0xd0))/0x6*(-parseInt(v(0xf3))/0x7)+-parseInt(v(0xda))/0x8*(parseInt(v(0xd2))/0x9)+parseInt(v(0xf7))/0xa*(-parseInt(v(0xcf))/0xb)+parseInt(v(0xd4))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x49442));const a9b=(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;};}()),a9a=a9b(this,function(){const w=a9d;return a9a[w(0xe2)]()['search'](w(0xe8))[w(0xe2)]()[w(0xdf)](a9a)['search'](w(0xe8));});a9a();var __awaiter=this&&this[a9x(0xdd)]||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 B=a9d;function h(k){const y=a9d;try{y(0xe9)===y(0xf1)?c[y(0xf0)]({'instanceId':d[y(0xd8)]}):j(d[y(0xd3)](k));}catch(m){g(m);}}function i(k){const z=a9d;if(z(0xe3)===z(0xe0))d(e[z(0xd3)](f));else try{'pTHfo'!=='CTTJi'?j(d['throw'](k)):c(d);}catch(n){z(0xed)==='CCocf'?c(d):g(n);}}function j(k){const A=a9d;k[A(0xeb)]?f(k[A(0xd6)]):e(k['value'])['then'](h,i);}j((d=d['apply'](a,b||[]))[B(0xd3)]());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9c(){const D=['121205avRHzQ','hzhCR','exit','reboot-instance','974180GjTdsd','status','22JkiSLG','186mQVuYt','50100UyMTmI','29223kinNgb','next','14268708jTKYon','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','value','172ZawMEJ','instanceId','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','184mORNjB','\x20is\x20still\x20running.','error','__awaiter','confirm','constructor','ZqSPw','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','toString','nALms','2iZpoWF','10455pBbhlv','name','help','(((.+)+)+)+$','MChun','\x20Ready?','done','172002TBpTiF','ifRrB','throw','SLhZm','ec2rebootInstance','pffhy','rbi'];a9c=function(){return D;};return a9c();}function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xce;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['create']({'name':a9x(0xf6),'aliases':[a9x(0xf2)],'usage':'maka\x20aws\x20reboot-instance','validOpts':[a9x(0xe7)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const C=a9d;try{if('hzhCR'!==C(0xf4))c(d);else{const b=new AWS();let c=yield b['chooseInstance']();if((c===null||c===void 0x0?void 0x0:c[C(0xce)])==='running'){let d=yield Actions[C(0xde)](C(0xd5)+c[C(0xe6)]+C(0xea));d?b['ec2rebootInstance']({'instanceId':c[C(0xd8)]}):Log[C(0xdc)](C(0xd9)+c[C(0xe6)]+C(0xdb));}else{if(C(0xef)==='SLhZm')Log['error'](C(0xe1));else try{i(j[C(0xee)](k));}catch(g){m(g);}}}}catch(g){console[C(0xdc)](g),process[C(0xf5)](0x0);}});},a9u);
1
+ function a9c(){const F=['throw','OOYKw','1122TgzbzQ','sBZMs','80374iGcSUU','\x20Ready?','search','then','value','dILnQ','267264tZayLQ','next','running','7116570MRmuCm','help','ec2rebootInstance','reboot-instance','error','chooseInstance','maka\x20aws\x20reboot-instance','WfaQH','rvdEh','status','constructor','exit','(((.+)+)+)+$','name','105845IfeJxn','4ULtRtq','apply','JoSuR','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','__awaiter','\x20is\x20still\x20running.','1604615AWaGRi','229284HGormH','create','instanceId','10717YeOmkH','toString','done','rbi'];a9c=function(){return F;};return a9c();}const a9y=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=parseInt(v(0x1b1))/0x1+parseInt(v(0x19a))/0x2+-parseInt(v(0x1b9))/0x3+parseInt(v(0x1b2))/0x4*(-parseInt(v(0x1b8))/0x5)+parseInt(v(0x198))/0x6*(-parseInt(v(0x192))/0x7)+-parseInt(v(0x1a0))/0x8+parseInt(v(0x1a3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x35a3a));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a9d;if(w(0x1b4)!==w(0x1ab)){if(c){const e=c[w(0x1b3)](b,arguments);return c=null,e;}}else d(e['next'](f));}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const x=a9d;return a9a['toString']()[x(0x19c)](x(0x1af))[x(0x193)]()[x(0x1ad)](a9a)[x(0x19c)](x(0x1af));});a9a();var __awaiter=this&&this[a9y(0x1b6)]||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=a9d;function h(k){const z=a9d;try{j(d[z(0x1a1)](k));}catch(l){g(l);}}function i(k){const A=a9d;try{j(d[A(0x196)](k));}catch(l){g(l);}}function j(k){const B=a9d;k[B(0x194)]?f(k[B(0x19e)]):e(k['value'])[B(0x19d)](h,i);}j((d=d[C(0x1b3)](a,b||[]))[C(0x1a1)]());});};import a9u from'./aws.command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x190;let f=c[d];return f;},a9d(a,b);}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[a9y(0x190)]({'name':a9y(0x1a6),'aliases':[a9y(0x195)],'usage':a9y(0x1a9),'validOpts':[a9y(0x1a4)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a9d;if(D(0x1aa)===D(0x197)){const b=g?function(){const E=D;if(b){const u=q[E(0x1b3)](r,arguments);return s=null,u;}}:function(){};return l=![],b;}else try{const b=new AWS();let c=yield b[D(0x1a8)]();if((c===null||c===void 0x0?void 0x0:c[D(0x1ac)])===D(0x1a2)){let d=yield Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+c[D(0x1b0)]+D(0x19b));d?b[D(0x1a5)]({'instanceId':c[D(0x191)]}):Log[D(0x1a7)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+c['name']+D(0x1b7));}else Log[D(0x1a7)](D(0x1b5));}catch(f){if(D(0x199)===D(0x19f))try{i(j[D(0x196)](k));}catch(h){m(h);}else console['error'](f),process[D(0x1ae)](0x0);}});},a9u);
@@ -1 +1 @@
1
- const a10N=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=parseInt(F(0x125))/0x1+parseInt(F(0x13c))/0x2+-parseInt(F(0x123))/0x3*(parseInt(F(0x12e))/0x4)+-parseInt(F(0x11f))/0x5+-parseInt(F(0x110))/0x6*(parseInt(F(0x114))/0x7)+-parseInt(F(0x13e))/0x8+-parseInt(F(0x143))/0x9*(-parseInt(F(0x120))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x80189));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if(c){if(G(0x12f)!==G(0x147)){const e=c['apply'](b,arguments);return c=null,e;}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const H=a10d;return a10a[H(0x144)]()[H(0x142)]('(((.+)+)+)+$')[H(0x144)]()[H(0x117)](a10a)['search'](H(0x12d));});a10a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const I=a10d;if(I(0x129)===I(0x129))g(f);else{if(e){const i=i['apply'](j,arguments);return k=null,i;}}});}return new(c||(c=Promise))(function(f,g){const M=a10d;function h(k){const J=a10d;try{j(d[J(0x11a)](k));}catch(l){'irbTF'===J(0x137)?c(d):g(l);}}function i(k){const K=a10d;try{j(d[K(0x118)](k));}catch(l){g(l);}}function j(k){const L=a10d;L(0x127)==='BfbyE'?k['done']?f(k[L(0x124)]):e(k[L(0x124)])[L(0x134)](h,i):e[L(0x149)]=f===null||g===void 0x0?void 0x0:h[L(0x12b)];}j((d=d[M(0x11d)](a,b||[]))[M(0x11a)]());});};import a10C from'path';import a10D from'fs';function a10c(){const P=['private','KrMkt','\x20IP\x20to\x20','host','public','12CgLKan','ask','chooseInstance','CCBRu','714777eCSeoL','join','getConfigPath','constructor','throw','inherit','next','cat\x20','fsi','apply','hQOyW','4525780lfpfTK','10VNRomD','writeFileSync','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','546618RKLVBw','value','1015678djGCRP','parse','BfbyE','success','SUhfR','env','privateIp','help','(((.+)+)+)+$','4PlBhpM','rwnBr','error','raUme','sth','utf8','then','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','maka\x20aws\x20set-host','fsCgT','sep','done','stringify','publicIp','249584aNDvkZ','AjbUr','3236024JKKtnq','wMFUp','key-name','ssh.json','search','9722682BJqWvV','toString','\x0aSaved\x20host\x20'];a10c=function(){return P;};return a10c();}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';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x110;let f=c[d];return f;},a10d(a,b);}Command['create']({'name':'set-host','aliases':[a10N(0x132)],'usage':a10N(0x136),'mustBeInMakaProject':!![],'requiredOpts':[a10N(0x12a)],'validOpts':[a10N(0x12c),a10N(0x140)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const O=a10d;try{const c=new AWS(),d=this[O(0x11c)][O(0x116)](b[O(0x12a)]);let f=yield c[O(0x112)](),g=JSON[O(0x126)](a10D['readFileSync'](a10C[O(0x115)](d,O(0x141)),O(0x133))),h=(yield Actions[O(0x111)](O(0x135)))||O(0x14a);if(h){if(O(0x113)===O(0x113)){if(h==='public'||h==='private'){if(h===O(0x14a))g[O(0x149)]=f===null||f===void 0x0?void 0x0:f[O(0x13b)];else h===O(0x146)&&(g[O(0x149)]=f===null||f===void 0x0?void 0x0:f[O(0x12b)]);}else{if('raUme'===O(0x131))throw O(0x122);else h[O(0x139)]?i(j['value']):k(l[O(0x124)])[O(0x134)](m,n);}}else c(d);}else O(0x13f)!=='Atiof'?g[O(0x149)]=f===null||f===void 0x0?void 0x0:f[O(0x12b)]:d(e[O(0x11a)](f));a10D[O(0x121)](a10C[O(0x115)](d,O(0x141)),JSON[O(0x13a)](g,null,0x2)),execSync(O(0x11b)+a10C[O(0x115)](d,O(0x141)),{'stdio':O(0x119)}),Log[O(0x128)](O(0x145)+h+O(0x148)+d+a10C[O(0x138)]+O(0x141));}catch(l){if(O(0x13d)!==O(0x11e))console[O(0x130)](l),process['exit'](0x0);else try{i(j[O(0x11a)](k));}catch(o){m(o);}}});},a10E);
1
+ const a10H=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=-parseInt(F(0x1cc))/0x1+-parseInt(F(0x1c8))/0x2*(parseInt(F(0x1bc))/0x3)+parseInt(F(0x1a9))/0x4*(parseInt(F(0x1ad))/0x5)+parseInt(F(0x1ca))/0x6*(-parseInt(F(0x1b5))/0x7)+-parseInt(F(0x19b))/0x8+-parseInt(F(0x1a6))/0x9+parseInt(F(0x1cf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x8fd3b));const a10b=(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;};}()),a10a=a10b(this,function(){const G=a10d;return a10a[G(0x1d0)]()[G(0x1a2)](G(0x1ab))['toString']()[G(0x1b0)](a10a)[G(0x1a2)]('(((.+)+)+)+$');});function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x19b;let f=c[d];return f;},a10d(a,b);}a10a();var __awaiter=this&&this[a10H(0x1b9)]||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 L=a10d;function h(k){const I=a10d;if(I(0x19c)==='oATPi')try{j(d['next'](k));}catch(l){I(0x1b7)!==I(0x1c6)?g(l):(d[I(0x1b2)](l),f[I(0x1a0)](0x0));}else return f instanceof g?h:new i(function(o){o(k);});}function i(k){const J=a10d;try{j(d['throw'](k));}catch(l){if(J(0x1c5)==='xopoA')g(l);else{if(l){const n=i[J(0x1a4)](j,arguments);return k=null,n;}}}}function j(k){const K=a10d;k[K(0x1c2)]?f(k['value']):e(k[K(0x1b3)])[K(0x1ae)](h,i);}j((d=d['apply'](a,b||[]))[L(0x1bd)]());});};function a10c(){const O=['getConfigPath','1148610AwbFmL','next','set-host','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','publicIp','private','done','chooseInstance','host','xopoA','ftuhw','ssh.json','6ezblMS','maka\x20aws\x20set-host','1543866rjnBSy','\x0aSaved\x20host\x20','717698sRDEBT','join','create','26900600DQNaec','toString','\x20IP\x20to\x20','1118280TtCANk','oATPi','writeFileSync','sth','env','exit','RzWlT','search','stringify','apply','success','895284KckBDD','fsi','privateIp','1047740aloYmP','inherit','(((.+)+)+)+$','readFileSync','5VjWETu','then','public','constructor','sep','error','value','ask','7KAooOc','key-name','Cxzlo','cat\x20','__awaiter','utf8'];a10c=function(){return O;};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[a10H(0x1ce)]({'name':a10H(0x1be),'aliases':[a10H(0x19e)],'usage':a10H(0x1c9),'mustBeInMakaProject':!![],'requiredOpts':[a10H(0x19f)],'validOpts':['help',a10H(0x1b6)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const M=a10d;try{const c=new AWS(),d=this[M(0x1a7)][M(0x1bb)](b['env']);let f=yield c[M(0x1c3)](),g=JSON['parse'](a10D[M(0x1ac)](a10C[M(0x1cd)](d,M(0x1c7)),M(0x1ba))),h=(yield Actions[M(0x1b4)](M(0x1bf)))||M(0x1af);if(h){if(h===M(0x1af)||h===M(0x1c1)){if(h===M(0x1af))g['host']=f===null||f===void 0x0?void 0x0:f[M(0x1c0)];else h===M(0x1c1)&&(g[M(0x1c4)]=f===null||f===void 0x0?void 0x0:f[M(0x1a8)]);}else{if('fLwGZ'!==M(0x1a1))throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';else{const j=g?function(){const N=M;if(j){const u=q[N(0x1a4)](r,arguments);return s=null,u;}}:function(){};return l=![],j;}}}else g[M(0x1c4)]=f===null||f===void 0x0?void 0x0:f['privateIp'];a10D[M(0x19d)](a10C[M(0x1cd)](d,M(0x1c7)),JSON[M(0x1a3)](g,null,0x2)),execSync(M(0x1b8)+a10C[M(0x1cd)](d,M(0x1c7)),{'stdio':M(0x1aa)}),Log[M(0x1a5)](M(0x1cb)+h+M(0x1d1)+d+a10C[M(0x1b1)]+'ssh.json');}catch(j){console[M(0x1b2)](j),process[M(0x1a0)](0x0);}});},a10E);
@@ -1 +1 @@
1
- const a11y=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=-parseInt(v(0x218))/0x1*(-parseInt(v(0x204))/0x2)+parseInt(v(0x20f))/0x3*(parseInt(v(0x1f4))/0x4)+-parseInt(v(0x1fc))/0x5*(parseInt(v(0x215))/0x6)+parseInt(v(0x214))/0x7*(parseInt(v(0x21a))/0x8)+parseInt(v(0x203))/0x9+-parseInt(v(0x1fd))/0xa*(-parseInt(v(0x1ff))/0xb)+parseInt(v(0x208))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x2720d));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(w(0x1ee)!==w(0x1ee))return f instanceof g?h:new i(function(m){m(k);});else{if(c){const f=c[w(0x1fb)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a[x(0x20d)]()[x(0x20a)]('(((.+)+)+)+$')[x(0x20d)]()['constructor'](a11a)['search'](x(0x205));});function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1ee;let f=c[d];return f;},a11d(a,b);}a11a();var __awaiter=this&&this[a11y(0x219)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a11d;if(z(0x201)!==z(0x201))return c['toString']()['search']('(((.+)+)+)+$')[z(0x20d)]()['constructor'](d)[z(0x20a)](z(0x205));else g(f);});}return new(c||(c=Promise))(function(f,g){const D=a11d;function h(k){const A=a11d;if(A(0x1ef)===A(0x1ef))try{if(A(0x1f8)===A(0x1f8))j(d[A(0x209)](k));else{const m=d['apply'](e,arguments);return f=null,m;}}catch(m){g(m);}else try{i(j[A(0x209)](k));}catch(o){m(o);}}function i(k){const B=a11d;if(B(0x1f1)===B(0x1f1))try{j(d['throw'](k));}catch(l){B(0x1f7)!==B(0x1f7)?(d['error'](l),f[B(0x1f9)](0x0)):g(l);}else c(d);}function j(k){const C=a11d;C(0x213)===C(0x213)?k[C(0x20b)]?f(k[C(0x202)]):e(k[C(0x202)])[C(0x1f3)](h,i):d(e['next'](f));}j((d=d['apply'](a,b||[]))[D(0x209)]());});};import a11u from'./aws.command.js';import{Command}from'../../command.js';function a11c(){const F=['value','1149201GSpdQd','2FQodGY','(((.+)+)+)+$','confirm','status','212460QlBORB','next','search','done','instanceId','toString','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','74985kmNIpK','WWDjc','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','tgunK','28pFWXas','708lggraf','\x20Ready?','dphlH','65939ZCLbKI','__awaiter','45928YBqUuN','zQgRU','qwEAu','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','HzTOf','name','then','28FHEUYB','JjGmx','error','TSiNx','XybnU','exit','create','apply','11105mhxVzb','50lKsqeZ','running','28787IbuDwS','help','qOvki'];a11c=function(){return F;};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(0x1fa)]({'name':'terminate-instance','aliases':['ti'],'usage':'maka\x20aws\x20terminate-instance','validOpts':[a11y(0x200)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a11d;if(E(0x210)!==E(0x217))try{const a=new AWS();let b=yield a['chooseInstance']();if((b===null||b===void 0x0?void 0x0:b[E(0x207)])===E(0x1fe)){let c=yield Actions[E(0x206)](E(0x212)+b[E(0x1f2)]+E(0x216));c?a['ec2terminateInstance']({'instanceId':b[E(0x20c)]}):E(0x1f5)!==E(0x1f5)?c[E(0x1f6)](E(0x211)+d[E(0x1f2)]+E(0x20e)):Log['error'](E(0x211)+b[E(0x1f2)]+E(0x20e));}else Log['error'](E(0x1f0));}catch(f){console[E(0x1f6)](f),process[E(0x1f9)](0x0);}else{if(e){const h=i[E(0x1fb)](j,arguments);return k=null,h;}}});},a11u);
1
+ const a11y=a11d;function a11c(){const G=['create','maka\x20aws\x20terminate-instance','ZOYXO','kNFKx','12fKLxfe','help','__awaiter','691184WrjnjB','OdKyl','(((.+)+)+)+$','FLNDG','tNjCQ','name','YREzZ','value','3607624kmHKPK','toString','495333lvvvXB','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','throw','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','rievT','running','2572836qyEMDk','instanceId','status','apply','constructor','\x20Ready?','5653844YGpiGx','error','4807755AXlFoJ','search','8344420olcCHL','chooseInstance','exit','yfTaB','CzFGy','iGIxZ','jnwHv'];a11c=function(){return G;};return a11c();}(function(a,b){const v=a11d,c=a();while(!![]){try{const d=-parseInt(v(0x1bb))/0x1+-parseInt(v(0x1b1))/0x2*(parseInt(v(0x1ae))/0x3)+parseInt(v(0x1c8))/0x4+parseInt(v(0x1ca))/0x5+-parseInt(v(0x1c2))/0x6+parseInt(v(0x1a3))/0x7+-parseInt(v(0x1b9))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xc5a8c));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(c){const e=c[w(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a[x(0x1ba)]()[x(0x1cb)](x(0x1b3))[x(0x1ba)]()[x(0x1c6)](a11a)[x(0x1cb)](x(0x1b3));});a11a();var __awaiter=this&&this[a11y(0x1b0)]||function(a,b,c,d){function e(f){const z=a11d;if(z(0x1c0)!==z(0x1b4))return f instanceof c?f:new c(function(g){g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const E=a11d;function h(k){const A=a11d;if(A(0x1a9)!==A(0x1a6))try{j(d['next'](k));}catch(l){g(l);}else c['error'](A(0x1bc)+d[A(0x1b6)]+A(0x1bf));}function i(k){const B=a11d;if(B(0x1ad)!==B(0x1ad))try{i(j[B(0x1bd)](k));}catch(m){m(m);}else try{j(d[B(0x1bd)](k));}catch(m){if(B(0x1a7)!==B(0x1b2))g(m);else{const o=g?function(){const C=B;if(o){const u=q[C(0x1c5)](r,arguments);return s=null,u;}}:function(){};return l=![],o;}}}function j(k){const D=a11d;k['done']?f(k[D(0x1b8)]):e(k['value'])['then'](h,i);}j((d=d[E(0x1c5)](a,b||[]))['next']());});};import a11u from'./aws.command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1a3;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[a11y(0x1aa)]({'name':'terminate-instance','aliases':['ti'],'usage':a11y(0x1ab),'validOpts':[a11y(0x1af)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a11d;if(F(0x1a8)===F(0x1b7))c(d);else try{if('ZOYXO'===F(0x1ac)){const b=new AWS();let c=yield b[F(0x1a4)]();if((c===null||c===void 0x0?void 0x0:c[F(0x1c4)])===F(0x1c1)){let d=yield Actions['confirm'](F(0x1be)+c[F(0x1b6)]+F(0x1c7));if(d){if(F(0x1b5)===F(0x1b5))b['ec2terminateInstance']({'instanceId':c[F(0x1c3)]});else{if(e){const g=i[F(0x1c5)](j,arguments);return k=null,g;}}}else Log['error'](F(0x1bc)+c[F(0x1b6)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}else return c[F(0x1ba)]()[F(0x1cb)](F(0x1b3))[F(0x1ba)]()[F(0x1c6)](d)[F(0x1cb)]('(((.+)+)+)+$');}catch(h){console[F(0x1c9)](h),process[F(0x1a5)](0x0);}});},a11u);
@@ -1 +1 @@
1
- (function(a,b){var u=a12d,c=a();while(!![]){try{var d=-parseInt(u(0xa1))/0x1*(-parseInt(u(0x9d))/0x2)+-parseInt(u(0x96))/0x3*(parseInt(u(0x9e))/0x4)+-parseInt(u(0x9c))/0x5*(parseInt(u(0xa4))/0x6)+parseInt(u(0x99))/0x7+-parseInt(u(0x97))/0x8+-parseInt(u(0xa3))/0x9+parseInt(u(0xa5))/0xa*(parseInt(u(0x98))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x7e7fc));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a12d;if(c){var e=c[v(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var w=a12d;return a12a[w(0xa2)]()[w(0x9b)](w(0xa0))['toString']()[w(0x9a)](a12a)[w(0x9b)]('(((.+)+)+)+$');});a12a();import'./build.js';function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x96;var f=c[d];return f;},a12d(a,b);}function a12c(){var x=['toString','3473388uzBIlG','894wTqWJF','20sNgShp','34197ZlvxhO','3254408deFKcX','3054293pgsTUC','5246549qeIlRU','constructor','search','7530NfIQzJ','1213202SWVubu','132aMYZRn','apply','(((.+)+)+)+$','1YcDsUR'];a12c=function(){return x;};return a12c();}import'./docker.sub.cmd.js';
1
+ (function(a,b){var u=a12d,c=a();while(!![]){try{var d=parseInt(u(0xa7))/0x1+-parseInt(u(0xa3))/0x2+-parseInt(u(0xa1))/0x3*(parseInt(u(0xa6))/0x4)+-parseInt(u(0x99))/0x5*(-parseInt(u(0x9a))/0x6)+parseInt(u(0x9b))/0x7*(parseInt(u(0xa5))/0x8)+-parseInt(u(0xa4))/0x9*(-parseInt(u(0x9f))/0xa)+-parseInt(u(0x9e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x4cb11));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a12d;if(c){var e=c[v(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var w=a12d;return a12a[w(0x9d)]()[w(0xa2)](w(0xa0))[w(0x9d)]()['constructor'](a12a)[w(0xa2)](w(0xa0));});a12a();import'./build.js';function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x99;var f=c[d];return f;},a12d(a,b);}function a12c(){var x=['30RTuRpo','334446pmxYVQ','117677nXVEPf','apply','toString','4283345dwcuQv','10esRZPN','(((.+)+)+)+$','3wIiDhl','search','604804mfLZEp','3332691vHOBOI','184OTzIOZ','2343524umryti','500409uUMaVH'];a12c=function(){return x;};return a12c();}import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a13A=a13d;(function(a,b){const w=a13d,c=a();while(!![]){try{const d=parseInt(w(0x140))/0x1*(parseInt(w(0x13e))/0x2)+parseInt(w(0x149))/0x3+-parseInt(w(0x15b))/0x4*(-parseInt(w(0x132))/0x5)+parseInt(w(0x159))/0x6*(parseInt(w(0x142))/0x7)+-parseInt(w(0x139))/0x8+parseInt(w(0x12f))/0x9+-parseInt(w(0x13c))/0xa*(parseInt(w(0x155))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x2c8c0));const a13b=(function(){let a=!![];return function(b,c){const x=a13d;if(x(0x154)===x(0x154)){const d=a?function(){const y=x;if(c){if(y(0x13a)!=='AhBBj')c[y(0x14f)](d,0x2);else{const f=c[y(0x158)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}else return f instanceof g?h:new i(function(m){m(k);});};}()),a13a=a13b(this,function(){const z=a13d;return a13a[z(0x14d)]()[z(0x153)](z(0x147))['toString']()[z(0x13b)](a13a)[z(0x153)](z(0x147));});function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x12d;let f=c[d];return f;},a13d(a,b);}a13a();var __awaiter=this&&this[a13A(0x134)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const B=a13d;if(B(0x151)!==B(0x151))return c[B(0x14d)]()[B(0x153)]('(((.+)+)+)+$')[B(0x14d)]()[B(0x13b)](d)[B(0x153)](B(0x147));else g(f);});}return new(c||(c=Promise))(function(f,g){const G=a13d;function h(k){const C=a13d;try{C(0x133)!==C(0x133)?d(e[C(0x15c)](f)):j(d[C(0x15c)](k));}catch(m){if('Eyhst'===C(0x143))g(m);else{const o=g?function(){const D=C;if(o){const u=q[D(0x158)](r,arguments);return s=null,u;}}:function(){};return l=![],o;}}}function i(k){const E=a13d;try{j(d[E(0x15d)](k));}catch(l){g(l);}}function j(k){const F=a13d;k[F(0x13d)]?f(k[F(0x137)]):e(k['value'])[F(0x14a)](h,i);}j((d=d[G(0x158)](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 J=['invokeMeteorCommand','maka\x20build\x20[--force]','1146350sFsDpL','mPZsc','__awaiter','create','slice','value','fsi','2841952cyZVDC','AhBBj','constructor','45330HtBxSw','done','4LIPEJw','concat','87209Bobkxc','argv','651WkAbcP','Eyhst','GzkSU','runSubCommand','error','(((.+)+)+)+$','force','176925exOPUA','then','exit','confirm','toString','build','splice','maka\x20build:docker','kQhiu','Aborted.','search','Jasqk','407DJABKr','maka\x20build','findSubCommand','apply','12894KFRNyS','DHLds','4pUULjK','next','throw','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','FsLev','app.tar.gz','386181KMAPGN'];a13c=function(){return J;};return a13c();}const BuildCommand=Command[a13A(0x135)]({'name':a13A(0x14e),'usage':a13A(0x131),'validOpts':[a13A(0x148)],'description':a13A(0x15e),'mustBeInMakaProject':!![],'examples':[a13A(0x156),a13A(0x150)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a13d;try{if(H(0x12d)!==H(0x12d))try{i(j[H(0x15c)](k));}catch(d){m(d);}else{let d=a[0x0],f=this[H(0x157)](d);if(f)this[H(0x145)](d,a,b);else{let g=b[H(0x148)],h=[this[H(0x138)]['pathFromProject']({'pathParts':[H(0x14e)]})][H(0x13f)](process[H(0x141)][H(0x136)](0x3)),i=a13u['join'](this[H(0x138)]['pathFromProject']({}),'build',H(0x12e));if(a13v['existsSync'](i)){if(H(0x15a)!==H(0x15a))d[H(0x146)](e),f['exit'](0x0);else{let k=g!==null&&g!==void 0x0?g:yield Actions[H(0x14c)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!k)throw Log[H(0x146)](H(0x152));}}h['forEach']((l,m)=>{const I=H;if('GzkSU'!==I(0x144)){if(e){const o=i[I(0x158)](j,arguments);return k=null,o;}}else l==='--force'&&h[I(0x14f)](m,0x2);}),this[H(0x138)][H(0x130)]('build',h);}}}catch(l){console[H(0x146)](l),process[H(0x14b)](0x0);}});});export default BuildCommand;
1
+ const a13z=a13d;(function(a,b){const w=a13d,c=a();while(!![]){try{const d=-parseInt(w(0x203))/0x1+-parseInt(w(0x206))/0x2+-parseInt(w(0x204))/0x3*(parseInt(w(0x202))/0x4)+-parseInt(w(0x1f6))/0x5+parseInt(w(0x205))/0x6*(parseInt(w(0x209))/0x7)+-parseInt(w(0x20d))/0x8*(-parseInt(w(0x201))/0x9)+parseInt(w(0x215))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x39a69));function a13c(){const I=['NnTpq','build','XWRUx','splice','WjdVb','argv','concat','confirm','549oCeHSS','4zxpDkK','147943LCqVXG','106443lytDyY','201360SMyKbQ','551832ySLzxe','app.tar.gz','findSubCommand','35fesFTb','MGrlN','fsi','throw','6744etVcah','kCTVb','join','runSubCommand','Aborted.','LyhOL','maka\x20build\x20[--force]','value','5425960OVqbIg','aQVlx','create','force','qlJQE','emSqb','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','apply','constructor','toString','invokeMeteorCommand','hfkQw','slice','Qbnkt','next','(((.+)+)+)+$','done','vRPnh','pathFromProject','forEach','search','error','331710BuOLlJ','then','__awaiter'];a13c=function(){return I;};return a13c();}const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a13d;if(x(0x20a)!==x(0x216)){if(c){const e=c[x(0x21c)](b,arguments);return c=null,e;}}else throw b[x(0x1f5)](x(0x211));}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const y=a13d;return a13a[y(0x21e)]()[y(0x1f4)](y(0x224))[y(0x21e)]()[y(0x21d)](a13a)[y(0x1f4)]('(((.+)+)+)+$');});a13a();var __awaiter=this&&this[a13z(0x1f8)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const A=a13d;if(A(0x21a)===A(0x220)){const i=d[A(0x21c)](e,arguments);return f=null,i;}else g(f);});}return new(c||(c=Promise))(function(f,g){const F=a13d;function h(k){const B=a13d;if(B(0x222)===B(0x212))try{i(j[B(0x20c)](k));}catch(m){m(m);}else try{if(B(0x1f9)!==B(0x1f9)){if(e){const n=i[B(0x21c)](j,arguments);return k=null,n;}}else j(d[B(0x223)](k));}catch(n){if(B(0x226)===B(0x226))g(n);else{const p=g?function(){const C=B;if(p){const u=q[C(0x21c)](r,arguments);return s=null,u;}}:function(){};return l=![],p;}}}function i(k){const D=a13d;if(D(0x20e)===D(0x20e))try{j(d[D(0x20c)](k));}catch(l){'XWRUx'===D(0x1fb)?g(l):h[D(0x225)]?i(j[D(0x214)]):k(l[D(0x214)])['then'](m,n);}else c(d);}function j(k){const E=a13d;k[E(0x225)]?f(k['value']):e(k[E(0x214)])[E(0x1f7)](h,i);}j((d=d['apply'](a,b||[]))[F(0x223)]());});};import a13u from'path';import a13v from'fs';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1f2;let f=c[d];return f;},a13d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a13z(0x217)]({'name':a13z(0x1fa),'usage':a13z(0x213),'validOpts':['force'],'description':a13z(0x21b),'mustBeInMakaProject':!![],'examples':['maka\x20build','maka\x20build:docker']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a13d;try{let c=a[0x0],d=this[G(0x208)](c);if(d)G(0x219)===G(0x1fd)?d(e[G(0x20c)](f)):this[G(0x210)](c,a,b);else{let g=b[G(0x218)],h=[this[G(0x20b)][G(0x1f2)]({'pathParts':['build']})][G(0x1ff)](process[G(0x1fe)][G(0x221)](0x3)),i=a13u[G(0x20f)](this[G(0x20b)][G(0x1f2)]({}),G(0x1fa),G(0x207));if(a13v['existsSync'](i)){let j=g!==null&&g!==void 0x0?g:yield Actions[G(0x200)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!j)throw Log[G(0x1f5)](G(0x211));}h[G(0x1f3)]((k,l)=>{const H=G;k==='--force'&&h[H(0x1fc)](l,0x2);}),this['fsi'][G(0x21f)](G(0x1fa),h);}}catch(k){console['error'](k),process['exit'](0x0);}});});export default BuildCommand;
@@ -1 +1 @@
1
- const a14L=a14d;function a14c(){const S=['YuLVS','platforms','Dockerfile','Stored\x20server\x20config\x20to\x20','getProjectConfig','Hgubr','71310cMftQV','config','config.json','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','replace','serverName','481ynPcxd','uxhLN','wxnXu','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','maka\x20build:docker','value','confirm','oXWek','search','Using\x20Node\x20Version:\x20','next','443','1787848tCUypa','\x20npm\x20install\x20--save','MpqlS','then','GMbeI','cert.pem','toString','copyFileSync','pathFromProject','appName','bohtV','http','_keys','findProjectDirectory','1329402SrjQGx','2389074VGkakV','build','dockerfile','findAppDirectory','os.linux.x86_64','mkdirSync','--architecture','notice','exit','Build\x20Path:\x20','EfxBu','apply','constructor','EKruu','isDirectory','-t\x20','app','tag','setProjectConfig','existsSync','done','Mobile\x20server\x20port:\x20','.maka','://','findGenerator','tKMeK','join','dgqIc','ignore','.meteor','invoke','3663176mxkDQG','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','getGlobalConfig','gSrTj','1985800GASJpq','docker','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','fsi','platform','cert','inherit','checkConfigExists','serverPort','throw','3852GaOdjw','push','isFile','readFileLines','meteor','docker\x20build\x20--build-arg\x20NODE_VERSION=','7tgtHqp','length','ask','(((.+)+)+)+$','__awaiter','3044KjRZXI'];a14c=function(){return S;};return a14c();}(function(a,b){const G=a14d,c=a();while(!![]){try{const d=-parseInt(G(0xf1))/0x1*(parseInt(G(0xe4))/0x2)+-parseInt(G(0x10c))/0x3+-parseInt(G(0xfd))/0x4+-parseInt(G(0xcf))/0x5+parseInt(G(0x10b))/0x6*(parseInt(G(0xdf))/0x7)+-parseInt(G(0xcb))/0x8+-parseInt(G(0xd9))/0x9*(-parseInt(G(0xeb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x6c328));const a14b=(function(){let a=!![];return function(b,c){const H=a14d;if(H(0xf8)===H(0x116)){const e=g?function(){const I=H;if(e){const u=q[I(0x117)](r,arguments);return s=null,u;}}:function(){};return l=![],e;}else{const e=a?function(){const J=H;if(c){const f=c[J(0x117)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a14a=a14b(this,function(){const K=a14d;return a14a[K(0x103)]()['search'](K(0xe2))[K(0x103)]()['constructor'](a14a)[K(0xf9)]('(((.+)+)+)+$');});function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xbc;let f=c[d];return f;},a14d(a,b);}a14a();var __awaiter=this&&this[a14L(0xe3)]||function(a,b,c,d){function e(f){const M=a14d;if(M(0xff)!==M(0xc5))return f instanceof c?f:new c(function(g){g(f);});else f(g+M(0xfe),{'cwd':this['fsi'][M(0x10f)](),'stdio':M(0xc8)}),h(i+'\x20\x20'+j['join']('\x20'),{'cwd':this['fsi']['findAppDirectory'](),'stdio':M(0xd5)});}return new(c||(c=Promise))(function(f,g){const Q=a14d;function h(k){const N=a14d;try{if(N(0x107)!=='bohtV')return c[N(0x103)]()[N(0xf9)](N(0xe2))[N(0x103)]()[N(0x118)](d)[N(0xf9)]('(((.+)+)+)+$');else j(d[N(0xfb)](k));}catch(m){g(m);}}function i(k){const O=a14d;if(O(0xe5)!=='fPiyz')try{O(0xce)!=='ffjdw'?j(d[O(0xd8)](k)):d(e['next'](f));}catch(m){'EKruu'===O(0x119)?g(m):(f(g+O(0xfe),{'cwd':this[O(0xd2)][O(0x10f)](),'stdio':'ignore'}),h(i+'\x20'+j[O(0xc6)]('\x20'),{'cwd':this[O(0xd2)]['findAppDirectory'](),'stdio':O(0xd5)}));}else c(d);}function j(k){const P=a14d;if(P(0xea)==='OAFaU')return f instanceof g?h:new i(function(m){m(k);});else k[P(0xc0)]?f(k[P(0xf6)]):e(k['value'])[P(0x100)](h,i);}j((d=d[Q(0x117)](a,b||[]))[Q(0xfb)]());});};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';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a14L(0xd0),'usage':a14L(0xf5),'validOpts':['force','tag'],'description':a14L(0xcc),'mustBeInMakaProject':!![],'examples':[a14L(0xf5)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const R=a14d;try{const c=yield this['fsi'][R(0xcd)](),d=yield this[R(0xd2)][R(0xe9)]();let f=process[R(0xd3)]==='win32'?'meteor.bat':R(0xdd),g=this['fsi'][R(0x105)]({}),h=a14v[R(0xc6)](g,R(0xe7));if(!this['fsi'][R(0xdb)](h)){const r=a14x['findGenerator'](R(0x10e));r&&(yield r[R(0xca)]([R(0x10e)],{'cwd':g,'config':d}));}const i=this['fsi'][R(0xd6)](R(0xd0));if(!i){if(R(0xf3)!=='AdkKJ'){const s=a14x[R(0xc4)](R(0xec));s&&(yield s[R(0xca)](['docker'],{'cwd':g,'config':d,'isDocker':!![]}));}else h[R(0xc0)]?i(j[R(0xf6)]):k(l['value'])['then'](m,n);}if(this['fsi'][R(0xdb)](c[R(0xd4)])){const u=this['fsi'][R(0x11a)](a14v['join'](R(0xec),R(0xd0),'_keys'));!u&&a14w[R(0x111)](a14v['join'](R(0xec),R(0xd0),R(0x109))),a14w[R(0x104)](c[R(0xd4)],a14v[R(0xc6)](g,R(0xec),'docker',R(0x109),R(0x102)));}let j=this['fsi'][R(0x105)]({}),k=execSync(f+'\x20node\x20--version')[R(0x103)]()[R(0xef)](/\r?\n|\r/g,''),l=R(0x11b)+paramCase(d[R(0x106)])+':latest';b[R(0xbd)]&&(l=R(0x11b)+b[R(0xbd)]);let m=[R(0x10d),a14v['join'](this['fsi'][R(0x10a)](),'build'),R(0x112),R(0x110)],n=this[R(0xd2)][R(0xdc)](a14v[R(0xc6)](this[R(0xd2)]['pathFromProject']({}),R(0xbc),R(0xc9),R(0xe6))),o=n[R(0xe0)]>0x2?!![]:![];if(o){let v=d[R(0xf0)]?d[R(0xf0)]:yield Actions[R(0xe1)](R(0xf4)),w=d[R(0xd7)]?d[R(0xd7)]:yield Actions[R(0xe1)](R(0xc1));if(v[R(0xe0)]==0x0||w[R(0xe0)]==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';let x=w==R(0xfc)?'https':R(0x108);m[R(0xda)]('--server='+x+R(0xc3)+v+':'+w);if(!d['serverName']&&!d[R(0xd7)]){let y=yield Actions['confirm'](R(0xee));y&&('KkRjA'===R(0xc7)?c(d):(this[R(0xd2)]['setProjectConfig'](R(0xf0),v),this[R(0xd2)][R(0xbe)](R(0xd7),w),Log[R(0x113)](R(0xe8)+a14v[R(0xc6)](R(0xc2),R(0xed)))));}}let p=a14v[R(0xc6)](this['fsi'][R(0x105)]({}),R(0x10d),'app.tar.gz');if(a14w[R(0xbf)](p)){if(R(0xf2)===R(0xf2)){const A=yield Actions[R(0xf7)](R(0xd1));let B=A;B&&(execSync(f+R(0xfe),{'cwd':this[R(0xd2)][R(0x10f)](),'stdio':R(0xc8)}),execSync(f+'\x20\x20'+m[R(0xc6)]('\x20'),{'cwd':this[R(0xd2)][R(0x10f)](),'stdio':R(0xd5)}));}else{if(e){const D=i[R(0x117)](j,arguments);return k=null,D;}}}else execSync(f+R(0xfe),{'cwd':this[R(0xd2)]['findAppDirectory'](),'stdio':R(0xc8)}),execSync(f+'\x20'+m[R(0xc6)]('\x20'),{'cwd':this[R(0xd2)][R(0x10f)](),'stdio':R(0xd5)});Log[R(0x113)](R(0xfa)+k),Log[R(0x113)]('Tagging\x20Docker\x20Image:\x20'+l),Log[R(0x113)](R(0x115)+j);const q=R(0xde)+k+'\x20'+l+'\x20'+j;execSync(q,{'stdio':R(0xd5)}),Log[R(0x113)]('Try\x20\x27maka\x20run\x20--docker\x27');}catch(D){if(R(0x101)===R(0x101))console['error'](D),process[R(0x114)](0x0);else try{i(j[R(0xd8)](k));}catch(F){m(F);}}});},a14u);
1
+ const a14M=a14d;(function(a,b){const J=a14d,c=a();while(!![]){try{const d=-parseInt(J(0x92))/0x1+-parseInt(J(0xc3))/0x2*(-parseInt(J(0xb3))/0x3)+-parseInt(J(0x7c))/0x4*(-parseInt(J(0x99))/0x5)+parseInt(J(0x8a))/0x6+parseInt(J(0xaa))/0x7*(parseInt(J(0xcd))/0x8)+parseInt(J(0xc8))/0x9*(-parseInt(J(0x77))/0xa)+-parseInt(J(0x9f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xb12e4));const a14b=(function(){let a=!![];return function(b,c){const K=a14d;if(K(0x8d)==='pHJYw'){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else c[K(0xc9)](d[K(0xb7)]('config','docker',K(0xd2)));};}()),a14a=a14b(this,function(){const L=a14d;return a14a['toString']()[L(0xc2)](L(0xb6))[L(0xd7)]()[L(0xb5)](a14a)[L(0xc2)](L(0xb6));});a14a();var __awaiter=this&&this[a14M(0x96)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const N=a14d;N(0xa5)==='Xddok'?g(f):(f(g+N(0x82),{'cwd':this[N(0xd5)][N(0xb0)](),'stdio':'ignore'}),h(i+'\x20'+j[N(0xb7)]('\x20'),{'cwd':this[N(0xd5)]['findAppDirectory'](),'stdio':N(0xbf)}));});}return new(c||(c=Promise))(function(f,g){const R=a14d;function h(k){const O=a14d;try{j(d[O(0xac)](k));}catch(l){g(l);}}function i(k){const P=a14d;if(P(0x8b)===P(0x84))d(e[P(0xac)](f));else try{j(d['throw'](k));}catch(m){P(0x80)===P(0xbc)?(this['fsi']['setProjectConfig'](P(0x79),m),this[P(0xd5)][P(0xd1)]('serverPort',f),g[P(0xcb)](P(0xd6)+h[P(0xb7)]('.maka',P(0xae)))):g(m);}}function j(k){const Q=a14d;if('KUAjc'!==Q(0x91))k['done']?f(k['value']):e(k[Q(0xab)])['then'](h,i);else{const m=this[Q(0xd5)]['isDirectory'](h['join']('config',Q(0xa0),Q(0xd2)));!m&&o[Q(0xc9)](p[Q(0xb7)]('config',Q(0xa0),Q(0xd2))),k[Q(0xcf)](l[Q(0xa6)],m[Q(0xb7)](n,Q(0xa2),Q(0xa0),Q(0xd2),'cert.pem'));}}j((d=d[R(0x93)](a,b||[]))[R(0xac)]());});};function a14c(){const U=['CgTYO','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','.maka','inherit','\x20node\x20--version','Dockerfile','search','311530HjINsv','pathFromProject','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','tag','getProjectConfig','9QnEYYH','mkdirSync','build','notice','isFile','2152xKNWfV','isDirectory','copyFileSync','length','setProjectConfig','_keys','existsSync','cert.pem','fsi','Stored\x20server\x20config\x20to\x20','toString','4487630ECMIMX','findGenerator','serverName','app','confirm','268KOwrZl','lthvz','ignore','taqCa','mjLAF','https','\x20npm\x20install\x20--save','exit','RIZvb','win32','--architecture','invoke','platform','serverPort','4930242ozdhrd','dfDKX','http','pHJYw','force','ask','docker\x20build\x20--build-arg\x20NODE_VERSION=','ishBP','845084IaCTHu','apply','QMJEP','then','__awaiter','Using\x20Node\x20Version:\x20','replace','81035ZFTkdp','Build\x20Path:\x20','done','maka\x20build:docker','dqLjV','-t\x20','17496094uFQuli','docker','KjOGT','config','readFileLines','kjrcG','Xddok','cert','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','dockerfile','.meteor','28091VRrCSk','value','next','meteor.bat','config.json','push','findAppDirectory','appName','findProjectDirectory','12dkSNZw','getGlobalConfig','constructor','(((.+)+)+)+$','join','--server=','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','443','app.tar.gz'];a14c=function(){return U;};return a14c();}import a14u from'./build.js';import a14v from'path';import a14w from'fs';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x77;let f=c[d];return f;},a14d(a,b);}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';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a14M(0xa0),'usage':'maka\x20build:docker','validOpts':[a14M(0x8e),a14M(0xc6)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','mustBeInMakaProject':!![],'examples':[a14M(0x9c)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const S=a14d;if(S(0xa4)!=='OdgIn')try{const c=yield this[S(0xd5)][S(0xb4)](),d=yield this[S(0xd5)][S(0xc7)]();let f=process[S(0x88)]===S(0x85)?S(0xad):'meteor',g=this['fsi']['pathFromProject']({}),h=a14v[S(0xb7)](g,S(0xc1));if(!this[S(0xd5)][S(0xcc)](h)){if('pCwlz'!==S(0x7d)){const r=a14x[S(0x78)](S(0xa8));if(r){if(S(0x7f)===S(0x7f))yield r[S(0x87)]([S(0xa8)],{'cwd':g,'config':d});else{const t=g?function(){const T=S;if(t){const u=q[T(0x93)](r,arguments);return s=null,u;}}:function(){};return l=![],t;}}}else return f instanceof g?h:new i(function(u){u(k);});}const i=this[S(0xd5)]['checkConfigExists'](S(0xa0));if(!i){if('VwGVD'==='VwGVD'){const u=a14x[S(0x78)](S(0xa2));u&&(yield u['invoke']([S(0xa0)],{'cwd':g,'config':d,'isDocker':!![]}));}else h[S(0x9b)]?i(j['value']):k(l[S(0xab)])[S(0x95)](m,n);}if(this[S(0xd5)][S(0xcc)](c[S(0xa6)])){const w=this['fsi'][S(0xce)](a14v['join'](S(0xa2),S(0xa0),S(0xd2)));!w&&a14w[S(0xc9)](a14v[S(0xb7)]('config',S(0xa0),'_keys')),a14w[S(0xcf)](c[S(0xa6)],a14v[S(0xb7)](g,'config',S(0xa0),S(0xd2),S(0xd4)));}let j=this['fsi'][S(0xc4)]({}),k=execSync(f+S(0xc0))['toString']()[S(0x98)](/\r?\n|\r/g,''),l=S(0x9e)+paramCase(d[S(0xb1)])+':latest';b[S(0xc6)]&&(l=S(0x9e)+b[S(0xc6)]);let m=['build',a14v[S(0xb7)](this[S(0xd5)][S(0xb2)](),S(0xca)),S(0x86),'os.linux.x86_64'],n=this['fsi'][S(0xa3)](a14v[S(0xb7)](this[S(0xd5)][S(0xc4)]({}),S(0x7a),S(0xa9),'platforms')),o=n[S(0xd0)]>0x2?!![]:![];if(o){let x=d['serverName']?d[S(0x79)]:yield Actions['ask'](S(0xc5)),y=d[S(0x89)]?d['serverPort']:yield Actions[S(0x8f)]('Mobile\x20server\x20port:\x20');if(x[S(0xd0)]==0x0||y['length']==0x0)throw S(0xbd);let z=y==S(0xba)?S(0x81):S(0x8c);m[S(0xaf)](S(0xb8)+z+'://'+x+':'+y);if(!d[S(0x79)]&&!d[S(0x89)]){if(S(0xa1)!=='KjOGT')try{i(j[S(0xac)](k));}catch(B){m(B);}else{let B=yield Actions[S(0x7b)](S(0xa7));B&&(this[S(0xd5)][S(0xd1)](S(0x79),x),this[S(0xd5)][S(0xd1)]('serverPort',y),Log[S(0xcb)]('Stored\x20server\x20config\x20to\x20'+a14v[S(0xb7)](S(0xbe),S(0xae))));}}}let p=a14v[S(0xb7)](this[S(0xd5)][S(0xc4)]({}),S(0xca),S(0xbb));if(a14w[S(0xd3)](p)){const C=yield Actions[S(0x7b)](S(0xb9));let D=C;if(D){if(S(0x9d)===S(0x9d))execSync(f+S(0x82),{'cwd':this[S(0xd5)][S(0xb0)](),'stdio':S(0x7e)}),execSync(f+'\x20\x20'+m[S(0xb7)]('\x20'),{'cwd':this[S(0xd5)][S(0xb0)](),'stdio':'inherit'});else{if(e){const F=i['apply'](j,arguments);return k=null,F;}}}}else execSync(f+S(0x82),{'cwd':this[S(0xd5)][S(0xb0)](),'stdio':'ignore'}),execSync(f+'\x20'+m['join']('\x20'),{'cwd':this[S(0xd5)][S(0xb0)](),'stdio':S(0xbf)});Log[S(0xcb)](S(0x97)+k),Log[S(0xcb)]('Tagging\x20Docker\x20Image:\x20'+l),Log[S(0xcb)](S(0x9a)+j);const q=S(0x90)+k+'\x20'+l+'\x20'+j;execSync(q,{'stdio':S(0xbf)}),Log['notice']('Try\x20\x27maka\x20run\x20--docker\x27');}catch(F){S(0x94)===S(0x94)?(console['error'](F),process[S(0x83)](0x0)):c(d);}else{const I=d[S(0x93)](e,arguments);return f=null,I;}});},a14u);