@maka/maka-cli 4.1.9 → 4.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/command.js +1 -1
  2. package/dist/commands/_index.js +1 -1
  3. package/dist/commands/aws/_index.js +1 -1
  4. package/dist/commands/aws/aws.command.js +1 -1
  5. package/dist/commands/aws/ci.sub.cmd.js +1 -1
  6. package/dist/commands/aws/ckp.sub.cmd.js +1 -1
  7. package/dist/commands/aws/csg.sub.cmd.js +1 -1
  8. package/dist/commands/aws/di.sub.cmd.js +1 -1
  9. package/dist/commands/aws/dks.sub.cmd.js +1 -1
  10. package/dist/commands/aws/rbi.sub.cmd.js +1 -1
  11. package/dist/commands/aws/sth.sub.cmd.js +1 -1
  12. package/dist/commands/aws/ti.sub.cmd.js +1 -1
  13. package/dist/commands/build/_index.js +1 -1
  14. package/dist/commands/build/build.js +1 -1
  15. package/dist/commands/build/docker.sub.cmd.js +1 -1
  16. package/dist/commands/create.js +1 -1
  17. package/dist/commands/debug.js +1 -1
  18. package/dist/commands/deploy.js +1 -1
  19. package/dist/commands/game/_index.js +1 -1
  20. package/dist/commands/game/battleship.sub.cmd.js +1 -1
  21. package/dist/commands/game/play.command.js +1 -1
  22. package/dist/commands/game/pong.sub.cmd.js +1 -1
  23. package/dist/commands/game/snake.sub.cmd.js +1 -1
  24. package/dist/commands/game/tetris.sub.cmd.js +1 -1
  25. package/dist/commands/generate.js +1 -1
  26. package/dist/commands/get/_index.js +1 -1
  27. package/dist/commands/get/get.command.js +1 -1
  28. package/dist/commands/get/global.sub.cmd.js +1 -1
  29. package/dist/commands/get/local.sub.cmd.js +1 -1
  30. package/dist/commands/help.js +1 -1
  31. package/dist/commands/install.js +1 -1
  32. package/dist/commands/jsdoc.js +1 -1
  33. package/dist/commands/login.js +1 -1
  34. package/dist/commands/logout.js +1 -1
  35. package/dist/commands/logs.js +1 -1
  36. package/dist/commands/maka.cmd.js +1 -1
  37. package/dist/commands/murder.js +1 -1
  38. package/dist/commands/reconfig.js +1 -1
  39. package/dist/commands/run.js +1 -1
  40. package/dist/commands/set/_index.js +1 -1
  41. package/dist/commands/set/global.sub.cmd.js +1 -1
  42. package/dist/commands/set/local.sub.cmd.js +1 -1
  43. package/dist/commands/set/set.command.js +1 -1
  44. package/dist/commands/ssh.js +1 -1
  45. package/dist/commands/ssl.js +1 -1
  46. package/dist/commands/test.js +1 -1
  47. package/dist/commands/version.js +1 -1
  48. package/dist/error.js +1 -1
  49. package/dist/generator.js +1 -1
  50. package/dist/generators/_index.js +1 -1
  51. package/dist/generators/api.js +1 -1
  52. package/dist/generators/collection.js +1 -1
  53. package/dist/generators/component.js +1 -1
  54. package/dist/generators/config.js +1 -1
  55. package/dist/generators/dbc.js +1 -1
  56. package/dist/generators/dockerfile.js +1 -1
  57. package/dist/generators/hook.js +1 -1
  58. package/dist/generators/kit.js +1 -1
  59. package/dist/generators/layout.js +1 -1
  60. package/dist/generators/maka.gen.js +1 -1
  61. package/dist/generators/methods.js +1 -1
  62. package/dist/generators/package.js +1 -1
  63. package/dist/generators/page.js +1 -1
  64. package/dist/generators/publish.js +1 -1
  65. package/dist/generators/route.js +1 -1
  66. package/dist/generators/scaffold.js +1 -1
  67. package/dist/generators/service.js +1 -1
  68. package/dist/generators/services/_index.js +1 -1
  69. package/dist/generators/services/translation.js +1 -1
  70. package/dist/maka.js +1 -1
  71. package/dist/templates/meteor/app/server/helmet-csp.js +27 -1
  72. package/dist/templates/meteor/app/server/helmet-csp.js.jsx +27 -1
  73. package/dist/templates/meteor/app/server/helmet-csp.js.ts +27 -1
  74. package/dist/templates/meteor/app/server/helmet-csp.js.tsx +27 -1
  75. package/dist/tool.js +1 -1
  76. package/dist/tools/actions/actions.class.js +1 -1
  77. package/dist/tools/actions/actions.test.js +1 -1
  78. package/dist/tools/aws/aws.class.js +1 -1
  79. package/dist/tools/aws/aws.interfaces.js +1 -1
  80. package/dist/tools/docker/docker.class.js +1 -1
  81. package/dist/tools/docker/docker.interfaces.js +1 -1
  82. package/dist/tools/fsi/fsi.class.js +1 -1
  83. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  84. package/dist/tools/https/https.class.js +1 -1
  85. package/dist/tools/https/https.interface.js +1 -1
  86. package/dist/tools/log/log.class.js +1 -1
  87. package/dist/tools/log/log.interfaces.js +1 -1
  88. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  89. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  90. package/dist/tools/ssh/ssh.class.js +1 -1
  91. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  92. package/dist/tools/ssl/ssl.class.js +1 -1
  93. package/package.json +1 -1
package/dist/command.js CHANGED
@@ -1 +1 @@
1
- const a0R=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0x137))/0x1+parseInt(N(0x190))/0x2+-parseInt(N(0x1ac))/0x3+parseInt(N(0x173))/0x4*(-parseInt(N(0x12e))/0x5)+-parseInt(N(0x1c1))/0x6*(parseInt(N(0x13b))/0x7)+-parseInt(N(0x156))/0x8*(-parseInt(N(0x19d))/0x9)+-parseInt(N(0x19a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xb8f91));const a0b=(function(){let a=!![];return function(b,c){const O=a0d;if(O(0x19f)==='abwlk'){const d=a?function(){const P=O;if(c){const e=c[P(0x187)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else return d=e[0x0],this['findCommand'](f);};}()),a0a=a0b(this,function(){const Q=a0d;return a0a[Q(0x1b0)]()[Q(0x1a0)](Q(0x170))[Q(0x1b0)]()[Q(0x163)](a0a)[Q(0x1a0)](Q(0x170));});a0a();var __awaiter=this&&this[a0R(0x142)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const S=a0d;if(S(0x1a9)===S(0x130))return this[S(0x171)]['usage']||S(0x19e);else g(f);});}return new(c||(c=Promise))(function(f,g){const W=a0d;function h(k){const T=a0d;try{if(T(0x157)!=='iXTbK')j(d[T(0x1a4)](k));else throw b;}catch(m){g(m);}}function i(k){const U=a0d;if(U(0x135)!=='QbyXG')try{U(0x13d)!==U(0x18b)?j(d[U(0x143)](k)):b['exit'](0x1);}catch(m){if(U(0x167)!=='ItmJq')g(m);else throw new b();}else try{i(j['throw'](k));}catch(p){m(p);}}function j(k){const V=a0d;k[V(0x138)]?f(k[V(0x184)]):e(k[V(0x184)])['then'](h,i);}j((d=d[W(0x187)](a,b||[]))['next']());});};function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x12d;let f=c[d];return f;},a0d(a,b);}import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0R(0x13c)]();import a0L from'cli-table';function a0c(){const aj=['_handler','rNANr','hEqvc','description','parent','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','validateMakaProject','help','concat','10806YEApUP','match','687840YCXdwC','ZTrQA','UUlLl','Command\x20requires\x20a\x20handler\x20function','mustHaveMeteorInstalled','validateMakaSubscription','singleLicense','aLWSc','join','946511tZTaMo','done','split','maxOptsLength','77vzdBBI','homedir','TbuXW','existsSync','trialActive','Command\x20not\x20found','bind','__awaiter','throw','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','.meteor','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','Too\x20many\x20options','proFlags','ugghA','minOptsLength','findProjectDirectory','XOnPP','push','roles','XLKyA','Alias','fsi','Missing\x20required\x20options\x20','No\x20description\x20provided.','proCommands','error','8ZizqUt','ZEGTE','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','runSubCommand','zLVqR','vqIyo','findSubCommand','TtKxB','maxArgLength','fYHUi','win32','nYirm','Command\x20requires\x20a\x20name','constructor','validateMeteorInstall','No\x20aliases','sort','dpmiK','RIMSz','HZqWO','forEach','exit','invoke','qoAaW','mrajO','ReUgh','(((.+)+)+)+$','options','splice','16RqaEmh','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','examples','VVIhs','validateParams','length','Too\x20few\x20arguments','findCommand','MHvXT','keys','aliases','Invalid\x20options:\x20','KLzQQ','find','mustBeInMakaProject','cAYze','aQubQ','value','WmLsY','_commands','apply','game','foiNd','Name','yJpyl','To\x20use\x20this\x20command,\x20\x22','addCommand\x20requires\x20a\x20Command\x20instance','murder','Missing\x20required\x20option:\x20','1939518LSAXts','Please\x20run\x20\x22maka\x20install\x20meteor\x22','number','includes','Local','slTfr','name','GIIYk','minArgLength','gKEQo','8187320UnxbkQ','assign','umbPI','6055578qnuGhQ','No\x20usage\x20provided.','abwlk','search','getPro','gugiP','trialExpirationDate','next','tableList','Description','Too\x20many\x20arguments','usage','UQbNL','bright','notice','1327944jmjZcX','irHqi','Too\x20few\x20options','OREyL','toString','filter','hMuUi','addCommand','domainLicense','platform','function','Commands:'];a0c=function(){return aj;};return a0c();}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 X=a0R;super();if(!a)throw new Error(X(0x1bd));if(!a[X(0x196)])throw new Error(X(0x162));if(typeof b!==X(0x1b6))throw new Error('Command\x20requires\x20a\x20handler\x20function');this['options']=Object['assign']({},a),this[X(0x196)]=this[X(0x171)]['name'],this[X(0x186)]=[],this[X(0x1b8)]=b[X(0x141)](this);}static['create'](a,b,c){const Y=a0R;var d;if(!a){if('XBjcw'!==Y(0x1b9))throw new Error('Command.create\x20requires\x20some\x20options!');else c(d);}if(typeof b!==Y(0x1b6))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');let e=new Command(a,b);return c=c||a0M,Object[Y(0x19b)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[Y(0x171)])===null||d===void 0x0?void 0x0:d[Y(0x196)]}),c['addCommand'](e),e;}[a0R(0x12d)](a){const Z=a0R;let b=[this[Z(0x196)]]['concat'](this['options']['aliases']||[]);if(this['parent']){if(Z(0x17f)!==Z(0x17f)){const d=new d({});d[Z(0x14d)]([Z(0x18a),Z(0x150),Z(0x1a6)]),e[Z(0x166)]()['forEach'](i=>{const a0=Z;i[a0(0x196)]!==a0(0x18e)&&i[a0(0x196)]!==a0(0x188)&&d['push']([i[a0(0x196)],i['aliases'](),i[a0(0x1bb)]()]);}),f[Z(0x1aa)](d[Z(0x1b0)]());}else b[Z(0x14d)](this[Z(0x1bc)]);}return b[Z(0x193)](a);}[a0R(0x1b3)](a){const a1=a0R;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[a1(0x186)][a1(0x14d)](a);}[a0R(0x1be)](){const a2=a0R,a=this[a2(0x151)]['findProjectDirectory']();return a!==![]?!![]:![];}[a0R(0x164)](){const a3=a0R;let a=a0I['join'](homeDir,a3(0x145));const b=process[a3(0x1b5)]===a3(0x160);if(b){a=a0I['join'](homeDir,'AppData',a3(0x194),a3(0x145));if(!a0K['existsSync'](a))return![];}else{if(!a0K[a3(0x13e)](a)){if(a3(0x19c)===a3(0x195))this[a3(0x186)][a3(0x178)]>0x0&&g[a3(0x1bf)]&&(m['notice'](a3(0x1b7)),this['tableList'](this[a3(0x186)])),i[a3(0x1a8)](j,k,l);else return![];}}return!![];}['validateMakaSubscription'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a4=a0d;try{const c=this['findCommand'](a[0x0]);if(c){const d=(c===null||c===void 0x0?void 0x0:c[a4(0x196)])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c['parent'])||'',g=a[0x0],h=Object[a4(0x17c)](b),i=yield this[a4(0x151)][a4(0x1a1)]();if(!i){if(a4(0x12f)===a4(0x12f))Log[a4(0x155)](a4(0x174)),process['exit'](0x1);else{let m=[this[a4(0x196)]][a4(0x1c0)](this[a4(0x171)][a4(0x17d)]||[]);return this[a4(0x1bc)]&&m[a4(0x14d)](this['parent']),m[a4(0x193)](b);}}const j=(i===null||i===void 0x0?void 0x0:i[a4(0x154)][a4(0x193)](d))||(i===null||i===void 0x0?void 0x0:i['proCommands']['includes'](f)),k=!(i===null||i===void 0x0?void 0x0:i[a4(0x14e)][a4(0x193)](a4(0x134)))&&!(i===null||i===void 0x0?void 0x0:i[a4(0x14e)][a4(0x193)](a4(0x1b4)))&&!(i===null||i===void 0x0?void 0x0:i[a4(0x13f)]);if(j&&k)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(h[a4(0x178)]>0x0){const m=i===null||i===void 0x0?void 0x0:i[a4(0x148)][a4(0x1b1)](n=>h[a4(0x193)](n));if(m&&m[a4(0x178)]>0x0&&k){if(a4(0x182)===a4(0x182))throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(m===null||m===void 0x0?void 0x0:m[a4(0x136)](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';else throw new b(a4(0x131));}}if(g==='deploy'){const o=yield this[a4(0x151)][a4(0x1a1)](),p=o===null||o===void 0x0?void 0x0:o['proCommands'][a4(0x193)](a[0x0]+'\x20'+a[0x1]);if(p&&k)throw a4(0x18c)+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(i===null||i===void 0x0?void 0x0:i['trialActive']){if('cymVt'===a4(0x1af)){if(d[a4(0x178)]<this[a4(0x171)][a4(0x198)]){g[a4(0x155)](a4(0x179));throw new h();}}else Log['notice']('Trial\x20License\x20Expires:\x20'+i[a4(0x1a3)]['split']('T')[0x0]);}}}catch(r){throw r;}});}[a0R(0x177)](a,b,c){const a5=a0R,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a5(0x17c)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a5(0x178)])>0x0){if(g[a5(0x178)]===0x0){if(a5(0x15a)===a5(0x15b)){if(d['length']>=this['options'][a5(0x15e)]){g[a5(0x155)](a5(0x1a7));throw new h();}}else{Log[a5(0x155)](a5(0x152)+requiredOpts['join'](',\x20'));throw new UsageError();}}requiredOpts[a5(0x16a)](i=>{const a6=a5;if(!g['includes'](i)){Log[a6(0x155)](a6(0x18f)+i);throw new UsageError();}});}validOpts=validOpts[a5(0x1c0)](requiredOpts);if((validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a5(0x178)])>0x0){if(a5(0x1b2)!==a5(0x185))validOpts[a5(0x14d)](a5(0x1bf)),g['forEach'](i=>{const a7=a5;if(!validOpts['includes'](i)){Log[a7(0x155)](a7(0x17e)+i);throw new UsageError();}});else throw new b(a5(0x162));}}['run'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d;if('YHmZu'===a8(0x15f))throw new b('addCommand\x20requires\x20a\x20Command\x20instance');else try{if(a8(0x14f)!==a8(0x14f))throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(d===null||e===void 0x0?void 0x0:f['join'](',\x20'))+a8(0x146);else{a=a||[],b=b||{};try{yield this[a8(0x133)](a,b);}catch(f){Log[a8(0x155)](f),process[a8(0x16b)](0x0);}yield this['invoke'](a,b);}}catch(g){if(a8(0x189)==='foiNd')process[a8(0x16b)](0x1);else return this['options'][a8(0x1bb)]||a8(0x153);}});}[a0R(0x16c)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a9=a0d,{usage:usage='',description:description='',examples:examples=[]}=this[a9(0x171)];this[a9(0x177)](a,b,this[a9(0x171)]);try{if(this['options'][a9(0x181)]){if(a9(0x14c)!==a9(0x14c)){c[a9(0x155)]('Too\x20many\x20options');throw new d();}else{const d=this['validateMakaProject']();if(!d){if(a9(0x16f)===a9(0x169))c(d);else throw new MustBeInProjectError();}}}if(this[a9(0x171)][a9(0x132)]){const g=this[a9(0x164)]();if(!g){if('AehjB'===a9(0x168)){if(!(e instanceof f))throw new i(a9(0x18d));this[a9(0x186)][a9(0x14d)](h);}else throw new NoMeteorFoundError();}}if(typeof this[a9(0x171)]['minArgLength']===a9(0x192)){if(a[a9(0x178)]<this[a9(0x171)]['minArgLength']){if(a9(0x15d)!==a9(0x16d)){Log[a9(0x155)]('Too\x20few\x20arguments');throw new UsageError();}else throw new b();}}if(typeof this[a9(0x171)]['maxArgLength']===a9(0x192)){if(a[a9(0x178)]>=this[a9(0x171)]['maxArgLength']){Log[a9(0x155)](a9(0x1a7));throw new UsageError();}}if(typeof this['options'][a9(0x14a)]===a9(0x192)){if(Object[a9(0x17c)](b)[a9(0x178)]<this[a9(0x171)][a9(0x14a)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[a9(0x171)][a9(0x13a)]==='number'){if(Object[a9(0x17c)](b)[a9(0x178)]>=this['options'][a9(0x13a)]){if(a9(0x183)!=='gtNJc'){Log[a9(0x155)](a9(0x147));throw new UsageError();}else throw'Command\x20not\x20found';}}if((a[0x0]===_prevCmd||a[a9(0x178)]===0x0)&&b[a9(0x1bf)]){if(a9(0x176)!=='jiObJ')throw new UsageError();else{const l=this[a9(0x151)][a9(0x14b)]();return l!==![]?!![]:![];}}_prevCmd=a[0x0],yield this[a9(0x1b8)]['call'](this,a,b);}catch(l){if(l instanceof UsageError)this[a9(0x186)][a9(0x178)]>0x0&&b[a9(0x1bf)]&&(Log[a9(0x1ab)](a9(0x1b7)),this['tableList'](this['_commands'])),Log['usage'](description,examples,usage);else{if(l instanceof MustBeInProjectError)Log[a9(0x155)](a9(0x144)),Log[a9(0x1a8)](description,examples,usage);else{if(l instanceof NoMeteorFoundError){if(a9(0x197)!==a9(0x17b))Log['error'](a9(0x158)),Log[a9(0x1ab)](a9(0x191)),Log[a9(0x1a8)](description,examples,usage);else{c['error'](a9(0x1ae));throw new d();}}else{if(l instanceof NoMeteorAppFoundError){if(a9(0x161)!=='nYirm')return f instanceof g?h:new i(function(o){o(k);});else Log[a9(0x155)]('There\x20is\x20no\x20Meteor\x20application\x20here'),Log['usage'](description,examples,usage);}else throw l;}}}process[a9(0x16b)](0x1);}});}[a0R(0x1a5)](a){const aa=a0R,b=new a0L({});b['push']([aa(0x18a),aa(0x150),'Description']),a[aa(0x166)]()[aa(0x16a)](c=>{const ab=aa;c[ab(0x196)]!==ab(0x18e)&&c[ab(0x196)]!==ab(0x188)&&(ab(0x1ba)===ab(0x149)?c[ab(0x172)](0x0,0x0,d):b[ab(0x14d)]([c['name'],c[ab(0x17d)](),c[ab(0x1bb)]()]));}),Log[aa(0x1aa)](b[aa(0x1b0)]());}['findCommand'](a){const ac=a0R;return this[ac(0x186)][ac(0x180)](b=>b[ac(0x12d)](a));}[a0R(0x15c)](a){const ad=a0R;let b=a===null||a===void 0x0?void 0x0:a['split'](':');if(b)return a=b[0x0],this[ad(0x17a)](a);else return;}[a0R(0x159)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a0d;try{if(ae(0x16e)===ae(0x1ad))return this[ae(0x171)]['aliases']||ae(0x165);else{let f=a[ae(0x139)](':');a=f[0x0];let g=f[0x1];g&&(ae(0x199)!=='SREAC'?b[ae(0x172)](0x0,0x0,g):c['notice']('Trial\x20License\x20Expires:\x20'+d['trialExpirationDate'][ae(0x139)]('T')[0x0]));let h=this['findCommand'](a);if(h)'gugiP'===ae(0x1a2)?yield h['run'](b,c):g['name']!=='murder'&&h[ae(0x196)]!==ae(0x188)&&m[ae(0x14d)]([n['name'],o['aliases'](),p['description']()]);else throw ae(0x140);}}catch(k){throw Log[ae(0x155)](k);}});}['description'](){const af=a0R;return this[af(0x171)][af(0x1bb)]||af(0x153);}[a0R(0x1a8)](){const ag=a0R;return this[ag(0x171)]['usage']||ag(0x19e);}[a0R(0x175)](){const ah=a0R;return this['options'][ah(0x175)]||[];}[a0R(0x17d)](){const ai=a0R;return this['options'][ai(0x17d)]||ai(0x165);}}
1
+ const a0W=a0d;function a0c(){const aj=['No\x20usage\x20provided.','Command.create\x20requires\x20a\x20handler\x20function!','apply','split','tyWSj','IVwrD','AppData','To\x20use\x20these\x20pro\x20flags,\x20\x22','assign','match','rnTAc','proFlags','Description','(((.+)+)+)+$','existsSync','win32','Command\x20requires\x20a\x20name','DjVBh','find','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','yVpGF','error','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','platform','invoke','keys','number','runSubCommand','toString','description','murder','To\x20use\x20this\x20command,\x20\x22','call','Too\x20many\x20options','addCommand\x20requires\x20a\x20Command\x20instance','_handler','flNMU','fiJGd','XccYc','Missing\x20required\x20option:\x20','constructor','validateMakaSubscription','Command\x20requires\x20a\x20handler\x20function','jRbjB','bNBzm','singleLicense','daAVj','Local','examples','maxOptsLength','vzBnG','validateMeteorInstall','domainLicense','value','findCommand','Command.create\x20requires\x20some\x20options!','No\x20description\x20provided.','push','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','name','yigIq','Command\x20not\x20found','Name','addCommand','There\x20is\x20no\x20Meteor\x20application\x20here','maxArgLength','WFbge','concat','RcqQw','lfEEF','trialActive','aliases','splice','10CpHvEF','proCommands','Commands:','273050Nqejyw','Invalid\x20options:\x20','Too\x20many\x20arguments','KjkYU','usage','Too\x20few\x20options','exit','validateMakaProject','fsi','DSDcO','getPro','Wnfhx','length','103839eJpkRj','TxbIY','NcDKl','minArgLength','roles','rlCtX','3621231fPoKWQ','game','run','bind','133688aeWGza','function','then','throw','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Missing\x20required\x20options\x20','options','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','deploy','kyCLp','mustBeInMakaProject','480252PsOMcP','mtdhL','GJZuS','NwYAD','Bmdtx','NLvoL','validateParams','amapb','minOptsLength','XfNsQ','.meteor','forEach','MysHz','tableList','findProjectDirectory','nXjVs','filter','VmusD','includes','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','join','Alias','help','create','megYg','next','done','Too\x20few\x20arguments','WRciK','sort','_commands','bIUMb','PFlGD','parent','1027185NGaCrm','MHtpH','YyYOT','245QSoLiV','notice','48PqwepM','No\x20aliases','UkJEk','VvlOb','lXDfa','619068rJHpVa','liPjg'];a0c=function(){return aj;};return a0c();}(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0x1ef))/0x1+-parseInt(N(0x211))/0x2+-parseInt(N(0x1fc))/0x3*(parseInt(N(0x238))/0x4)+-parseInt(N(0x233))/0x5+-parseInt(N(0x23d))/0x6+-parseInt(N(0x236))/0x7*(-parseInt(N(0x206))/0x8)+parseInt(N(0x202))/0x9*(parseInt(N(0x1ec))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x48505));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(O(0x1e8)===O(0x1e8)){if(c){const e=c['apply'](b,arguments);return c=null,e;}}else{d['error'](O(0x20b)+e['join'](',\x20'));throw new f();}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0x1bf)]()['search']('(((.+)+)+)+$')['toString']()[P(0x1cb)](a0a)['search'](P(0x24c));});a0a();function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a0d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const Q=a0d;if(Q(0x250)!==Q(0x213))return f instanceof c?f:new c(function(g){g(f);});else throw b;}return new(c||(c=Promise))(function(f,g){const U=a0d;function h(k){const R=a0d;try{j(d[R(0x22a)](k));}catch(l){if(R(0x1c7)!==R(0x1c7))return this['_commands'][R(0x251)](n=>n[R(0x248)](c));else g(l);}}function i(k){const S=a0d;if('tZgTv'!==S(0x1d5))try{j(d[S(0x209)](k));}catch(l){g(l);}else throw new b(S(0x240));}function j(k){const T=a0d;if(T(0x229)===T(0x1fa))try{i(j['next'](k));}catch(m){m(m);}else k[T(0x22b)]?f(k[T(0x1d8)]):e(k[T(0x1d8)])[T(0x208)](h,i);}j((d=d[U(0x241)](a,b||[]))['next']());});};import a0I from'path';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='';export class Command extends Tool{constructor(a,b){const V=a0d;super();if(!a)throw new Error(V(0x1dd));if(!a[V(0x1de)])throw new Error(V(0x24f));if(typeof b!==V(0x207))throw new Error(V(0x1cd));this['options']=Object['assign']({},a),this[V(0x1de)]=this['options']['name'],this[V(0x22f)]=[],this[V(0x1c6)]=b[V(0x205)](this);}static[a0W(0x228)](a,b,c){const X=a0W;var d;if(!a)throw new Error(X(0x1da));if(typeof b!==X(0x207))throw new Error(X(0x240));let e=new Command(a,b);return c=c||a0M,Object[X(0x247)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x20c)])===null||d===void 0x0?void 0x0:d[X(0x1de)]}),c[X(0x1e2)](e),e;}[a0W(0x248)](a){const Y=a0W;let b=[this[Y(0x1de)]][Y(0x1e6)](this['options'][Y(0x1ea)]||[]);if(this[Y(0x232)]){if(Y(0x22d)!==Y(0x20f))b[Y(0x1dc)](this['parent']);else{if(!f[Y(0x223)](g)){k['error'](Y(0x1ca)+l);throw new m();}}}return b[Y(0x223)](a);}[a0W(0x1e2)](a){const Z=a0W;if(!(a instanceof Command))throw new Error(Z(0x1c5));this[Z(0x22f)][Z(0x1dc)](a);}[a0W(0x1f6)](){const a0=a0W,a=this['fsi'][a0(0x21f)]();return a!==![]?!![]:![];}[a0W(0x1d6)](){const a1=a0W;let a=a0I[a1(0x225)](homeDir,'.meteor');const b=process[a1(0x256)]===a1(0x24e);if(b){a=a0I['join'](homeDir,a1(0x245),a1(0x1d2),a1(0x21b));if(!a0K[a1(0x24d)](a))return![];}else{if(a1(0x1fe)===a1(0x23b))f[a1(0x1dc)](a1(0x227)),g['forEach'](q=>{const a2=a1;if(!k[a2(0x223)](q)){n[a2(0x254)](a2(0x1f0)+q);throw new o();}});else{if(!a0K[a1(0x24d)](a))return![];}}return!![];}[a0W(0x1cc)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a3=a0d;try{const c=this[a3(0x1d9)](a[0x0]);if(c){if('UYMiJ'==='VLUjn'){if(i[a3(0x1fb)]===0x0){q[a3(0x254)](a3(0x20b)+r['join'](',\x20'));throw new s();}m['forEach'](z=>{const a4=a3;if(!t[a4(0x223)](z)){w[a4(0x254)](a4(0x1ca)+z);throw new x();}});}else{const f=(c===null||c===void 0x0?void 0x0:c['name'])||a[0x0],g=(c===null||c===void 0x0?void 0x0:c[a3(0x232)])||'',h=a[0x0],i=Object[a3(0x1bc)](b),j=yield this[a3(0x1f7)][a3(0x1f9)]();if(!j){if('IVwrD'!==a3(0x244)){let n=[this['name']][a3(0x1e6)](this[a3(0x20c)][a3(0x1ea)]||[]);return this[a3(0x232)]&&n[a3(0x1dc)](this[a3(0x232)]),n[a3(0x223)](b);}else Log[a3(0x254)](a3(0x224)),process[a3(0x1f5)](0x1);}const k=(j===null||j===void 0x0?void 0x0:j[a3(0x1ed)][a3(0x223)](f))||(j===null||j===void 0x0?void 0x0:j[a3(0x1ed)][a3(0x223)](g)),l=!(j===null||j===void 0x0?void 0x0:j[a3(0x200)][a3(0x223)](a3(0x1d0)))&&!(j===null||j===void 0x0?void 0x0:j[a3(0x200)]['includes'](a3(0x1d7)))&&!(j===null||j===void 0x0?void 0x0:j['trialActive']);if(k&&l){if(a3(0x235)===a3(0x235))throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';else throw new b(a3(0x24f));}if(i['length']>0x0){const o=j===null||j===void 0x0?void 0x0:j[a3(0x24a)][a3(0x221)](p=>i[a3(0x223)](p));if(o&&o['length']>0x0&&l){if('weGiN'===a3(0x23c))throw new b();else throw a3(0x246)+(o===null||o===void 0x0?void 0x0:o[a3(0x225)](',\x20'))+a3(0x255);}}if(h===a3(0x20e)){const q=yield this[a3(0x1f7)][a3(0x1f9)](),r=q===null||q===void 0x0?void 0x0:q[a3(0x1ed)][a3(0x223)](a[0x0]+'\x20'+a[0x1]);if(r&&l){if(a3(0x1cf)===a3(0x1f8))throw'To\x20use\x20this\x20command,\x20\x22'+b[0x0]+a3(0x255);else throw a3(0x1c2)+a[0x0]+a3(0x255);}}(j===null||j===void 0x0?void 0x0:j[a3(0x1e9)])&&Log[a3(0x237)]('Trial\x20License\x20Expires:\x20'+j['trialExpirationDate'][a3(0x242)]('T')[0x0]);}}}catch(t){throw t;}});}['validateParams'](a,b,c){const a5=a0W,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object['keys'](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a5(0x1fb)])>0x0){if(g['length']===0x0){Log[a5(0x254)](a5(0x20b)+requiredOpts[a5(0x225)](',\x20'));throw new UsageError();}requiredOpts[a5(0x21c)](h=>{const a6=a5;if(!g['includes'](h)){Log[a6(0x254)](a6(0x1ca)+h);throw new UsageError();}});}validOpts=validOpts['concat'](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a5(0x1fb)])>0x0&&(validOpts[a5(0x1dc)](a5(0x227)),g['forEach'](h=>{const a7=a5;if(!validOpts[a7(0x223)](h)){Log['error'](a7(0x1f0)+h);throw new UsageError();}}));}[a0W(0x204)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d;if(a8(0x23a)!==a8(0x1d1))try{if(a8(0x21d)!==a8(0x214)){a=a||[],b=b||{};try{a8(0x1fd)===a8(0x1e5)?(f[a8(0x254)](a8(0x20d)),g[a8(0x1f3)](h,i,j)):yield this[a8(0x1cc)](a,b);}catch(d){Log[a8(0x254)](d),process[a8(0x1f5)](0x0);}yield this[a8(0x1bb)](a,b);}else h[a8(0x22b)]?i(j['value']):k(l['value'])[a8(0x208)](m,n);}catch(g){process[a8(0x1f5)](0x1);}else throw'To\x20use\x20this\x20command,\x20\x22'+b[0x0]+a8(0x255);});}['invoke'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a9=a0d,{usage:usage='',description:description='',examples:examples=[]}=this[a9(0x20c)];this[a9(0x217)](a,b,this[a9(0x20c)]);try{if(this[a9(0x20c)][a9(0x210)]){if('VXGAu'==='VXGAu'){const c=this[a9(0x1f6)]();if(!c)throw new MustBeInProjectError();}else{let f=f===null||g===void 0x0?void 0x0:h[a9(0x242)](':');if(f)return k=f[0x0],this['findCommand'](l);else return;}}if(this[a9(0x20c)]['mustHaveMeteorInstalled']){if(a9(0x220)!==a9(0x222)){const f=this[a9(0x1d6)]();if(!f){if('liPjg'!==a9(0x23e)){const h=this[a9(0x1f6)]();if(!h)throw new c();}else throw new NoMeteorFoundError();}}else{if(!(e instanceof f))throw new i(a9(0x1c5));this[a9(0x22f)]['push'](h);}}if(typeof this['options'][a9(0x1ff)]===a9(0x1bd)){if(a[a9(0x1fb)]<this[a9(0x20c)][a9(0x1ff)]){if(a9(0x1f2)===a9(0x216))c(d);else{Log[a9(0x254)](a9(0x22c));throw new UsageError();}}}if(typeof this[a9(0x20c)]['maxArgLength']===a9(0x1bd)){if(a9(0x1ce)===a9(0x212))b[a9(0x1dc)](this[a9(0x232)]);else{if(a[a9(0x1fb)]>=this['options'][a9(0x1e4)]){if('rnTAc'===a9(0x249)){Log['error'](a9(0x1f1));throw new UsageError();}else throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(d===null||e===void 0x0?void 0x0:f['join'](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}if(typeof this[a9(0x20c)]['minOptsLength']===a9(0x1bd)){if(a9(0x201)===a9(0x201)){if(Object[a9(0x1bc)](b)['length']<this['options'][a9(0x219)]){Log[a9(0x254)](a9(0x1f4));throw new UsageError();}}else throw new b(a9(0x1da));}if(typeof this[a9(0x20c)][a9(0x1d4)]==='number'){if(a9(0x1c9)==='XccYc'){if(Object[a9(0x1bc)](b)[a9(0x1fb)]>=this['options'][a9(0x1d4)]){if(a9(0x1c8)===a9(0x1c8)){Log[a9(0x254)](a9(0x1c4));throw new UsageError();}else return d=e[0x0],this[a9(0x1d9)](f);}}else c(d);}if((a[0x0]===_prevCmd||a['length']===0x0)&&b[a9(0x227)])throw new UsageError();_prevCmd=a[0x0],yield this['_handler'][a9(0x1c3)](this,a,b);}catch(o){if(o instanceof UsageError){if(a9(0x230)===a9(0x230)){if(this[a9(0x22f)][a9(0x1fb)]>0x0&&b[a9(0x227)]){if('tyWSj'!==a9(0x243))return![];else Log['notice'](a9(0x1ee)),this[a9(0x21e)](this[a9(0x22f)]);}Log[a9(0x1f3)](description,examples,usage);}else return this[a9(0x20c)][a9(0x1c0)]||a9(0x1db);}else{if(o instanceof MustBeInProjectError)Log[a9(0x254)](a9(0x20d)),Log[a9(0x1f3)](description,examples,usage);else{if(o instanceof NoMeteorFoundError)Log[a9(0x254)](a9(0x252)),Log['notice'](a9(0x20a)),Log[a9(0x1f3)](description,examples,usage);else{if(o instanceof NoMeteorAppFoundError)Log[a9(0x254)](a9(0x1e3)),Log[a9(0x1f3)](description,examples,usage);else throw o;}}}process[a9(0x1f5)](0x1);}});}[a0W(0x21e)](a){const aa=a0W,b=new a0L({});b[aa(0x1dc)]([aa(0x1e1),aa(0x226),aa(0x24b)]),a[aa(0x22e)]()[aa(0x21c)](c=>{const ab=aa;if(ab(0x1df)!==ab(0x1df))throw b;else{if(c['name']!==ab(0x1c1)&&c[ab(0x1de)]!==ab(0x203)){if('PFlGD'===ab(0x231))b['push']([c[ab(0x1de)],c['aliases'](),c[ab(0x1c0)]()]);else return this['options'][ab(0x1f3)]||ab(0x23f);}}}),Log['bright'](b[aa(0x1bf)]());}[a0W(0x1d9)](a){const ac=a0W;return this[ac(0x22f)][ac(0x251)](b=>b['match'](a));}['findSubCommand'](a){const ad=a0W;let b=a===null||a===void 0x0?void 0x0:a[ad(0x242)](':');if(b)return a=b[0x0],this[ad(0x1d9)](a);else return;}[a0W(0x1be)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a0d;if(ae(0x215)!==ae(0x1e7))try{if('qESbP'===ae(0x253))e[ae(0x1dc)]([f[ae(0x1de)],g[ae(0x1ea)](),h[ae(0x1c0)]()]);else{let f=a[ae(0x242)](':');a=f[0x0];let g=f[0x1];if(g){if(ae(0x21a)==='ZlrOt'){if(e){const j=i['apply'](j,arguments);return k=null,j;}}else b[ae(0x1eb)](0x0,0x0,g);}let h=this['findCommand'](a);if(h)yield h[ae(0x204)](b,c);else throw ae(0x1e0);}}catch(j){if(ae(0x234)!==ae(0x218))throw Log[ae(0x254)](j);else b[ae(0x237)](ae(0x1ee)),this[ae(0x21e)](this[ae(0x22f)]);}else{const m=this[ae(0x1d6)]();if(!m)throw new c();}});}[a0W(0x1c0)](){const af=a0W;return this[af(0x20c)][af(0x1c0)]||af(0x1db);}['usage'](){const ag=a0W;return this[ag(0x20c)][ag(0x1f3)]||ag(0x23f);}[a0W(0x1d3)](){const ah=a0W;return this[ah(0x20c)][ah(0x1d3)]||[];}[a0W(0x1ea)](){const ai=a0W;return this['options'][ai(0x1ea)]||ai(0x239);}}
@@ -1 +1 @@
1
- (function(a,b){var u=a1d,c=a();while(!![]){try{var d=-parseInt(u(0xbd))/0x1*(-parseInt(u(0xc7))/0x2)+-parseInt(u(0xc4))/0x3*(parseInt(u(0xc1))/0x4)+-parseInt(u(0xc9))/0x5+parseInt(u(0xc8))/0x6+parseInt(u(0xc5))/0x7*(-parseInt(u(0xbe))/0x8)+-parseInt(u(0xbf))/0x9+parseInt(u(0xc0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xc17de));var a1b=(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;};}()),a1a=a1b(this,function(){var v=a1d;return a1a[v(0xc2)]()[v(0xca)](v(0xc6))[v(0xc2)]()[v(0xc3)](a1a)['search'](v(0xc6));});a1a();import'./aws/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xbd;var f=c[d];return f;},a1d(a,b);}import'./set/_index.js';function a1c(){var w=['toString','constructor','3FwCLIh','700140AIdpvi','(((.+)+)+)+$','28MNHGox','2140224nbFMIK','6834390hVCSHG','search','26083NfFtXp','40wrFyvk','6761124bXFDre','29124230CepDec','894132oxEyhP'];a1c=function(){return w;};return a1c();}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';import'./maka.cmd.js';import'./reconfig.js';import'./run.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';
1
+ function a1c(){var x=['1519587xFyhVS','(((.+)+)+)+$','603462DGhFsk','159356bfRVVD','687480HtSewF','constructor','1095832wBLTQG','search','112XoKODl','2ZjOuac','5850bnbLWO','apply','toString','75342lYRWsI'];a1c=function(){return x;};return a1c();}(function(a,b){var u=a1d,c=a();while(!![]){try{var d=-parseInt(u(0x153))/0x1+parseInt(u(0x159))/0x2*(parseInt(u(0x152))/0x3)+parseInt(u(0x154))/0x4+parseInt(u(0x15a))/0x5+parseInt(u(0x14f))/0x6*(parseInt(u(0x158))/0x7)+-parseInt(u(0x156))/0x8+-parseInt(u(0x150))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x1ad68));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a['toString']()[w(0x157)]('(((.+)+)+)+$')[w(0x14e)]()[w(0x155)](a1a)['search'](w(0x151));});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';import'./maka.cmd.js';import'./reconfig.js';import'./run.js';import'./ssh.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x14e;var f=c[d];return f;},a1d(a,b);}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(0x152))/0x1+parseInt(u(0x158))/0x2*(parseInt(u(0x151))/0x3)+-parseInt(u(0x154))/0x4+-parseInt(u(0x15c))/0x5*(-parseInt(u(0x15a))/0x6)+-parseInt(u(0x157))/0x7*(parseInt(u(0x15d))/0x8)+-parseInt(u(0x14f))/0x9+-parseInt(u(0x150))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x90149));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a[w(0x155)]()[w(0x156)](w(0x153))[w(0x155)]()[w(0x159)](a2a)[w(0x156)]('(((.+)+)+)+$');});a2a();import'./aws.command.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x14f;var f=c[d];return f;},a2d(a,b);}function a2c(){var x=['885123YVWuAj','3360400TfuWUj','51qZIxdc','869373TkbxQm','(((.+)+)+)+$','1145892VnEcEm','toString','search','14SiTvqd','63254HMtwsT','constructor','4483938HVfttG','apply','5JniBmd','3373368teJtmu'];a2c=function(){return x;};return a2c();}import'./ci.sub.cmd.js';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(a,b){var u=a2d,c=a();while(!![]){try{var d=parseInt(u(0x103))/0x1*(-parseInt(u(0x10e))/0x2)+parseInt(u(0x110))/0x3+-parseInt(u(0x107))/0x4*(-parseInt(u(0x109))/0x5)+-parseInt(u(0x105))/0x6*(parseInt(u(0x106))/0x7)+parseInt(u(0x111))/0x8+-parseInt(u(0x10c))/0x9+-parseInt(u(0x104))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x2d69c));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0x10b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a[w(0x10a)]()['search']('(((.+)+)+)+$')[w(0x10a)]()[w(0x10f)](a2a)[w(0x108)](w(0x10d));});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a2c(){var x=['search','1555165nCzxmA','toString','apply','1960371DkNfQl','(((.+)+)+)+$','2vUtvGU','constructor','950319HbJDkW','1558432IFwkpu','191715cnJBCs','753850rjIugO','6mvOKRF','1061753nSuCKn','4IcDUAD'];a2c=function(){return x;};return a2c();}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';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x103;var f=c[d];return f;},a2d(a,b);}import'./ti.sub.cmd.js';
@@ -1 +1 @@
1
- const a3A=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=parseInt(w(0x1f4))/0x1*(-parseInt(w(0x1d5))/0x2)+-parseInt(w(0x1e0))/0x3+parseInt(w(0x1f0))/0x4*(-parseInt(w(0x1da))/0x5)+-parseInt(w(0x1ea))/0x6*(parseInt(w(0x1d2))/0x7)+-parseInt(w(0x1e9))/0x8+-parseInt(w(0x1e3))/0x9+-parseInt(w(0x1e8))/0xa*(-parseInt(w(0x1dc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x6632a));const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if(x(0x1f2)===x(0x1f2)){const d=a?function(){const y=x;if(y(0x1e2)===y(0x1e2)){if(c){if(y(0x1f1)===y(0x1d1))d[y(0x1ef)](e),f[y(0x1e7)](0x0);else{const f=c[y(0x1f5)](b,arguments);return c=null,f;}}}else d(e['throw'](f));}:function(){};return a=![],d;}else h['done']?i(j[x(0x1dd)]):k(l[x(0x1dd)])['then'](m,n);};}()),a3a=a3b(this,function(){const z=a3d;return a3a['toString']()['search'](z(0x1de))[z(0x1d4)]()[z(0x1d7)](a3a)['search'](z(0x1de));});a3a();function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x1d1;let f=c[d];return f;},a3d(a,b);}function a3c(){const G=['255CMBPZy','apply','then','yUoIq','7ShgNoW','__awaiter','toString','5378BVuOrI','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','constructor','throw','create','5RZDYOx','cHbGm','3344IvCTlI','value','(((.+)+)+)+$','aws','1337880epdUVG','xmzli','OPTFs','4332708XyjeYW','runSubCommand','done','next','exit','79270ZppQff','2234168VKfLXN','152106RyvNpV','maka\x20aws\x20<command>','search','UfCHc','maka\x20aws:describe-instance','error','294068QFFpec','wgWrO','VRjGQ','findSubCommand'];a3c=function(){return G;};return a3c();}var __awaiter=this&&this[a3A(0x1d3)]||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 E=a3d;function h(k){const B=a3d;if(B(0x1e1)!=='lQHRT')try{j(d[B(0x1e6)](k));}catch(l){g(l);}else c(d);}function i(k){const C=a3d;try{j(d[C(0x1d8)](k));}catch(l){g(l);}}function j(k){const D=a3d;k[D(0x1e5)]?f(k['value']):e(k['value'])[D(0x1f6)](h,i);}j((d=d[E(0x1f5)](a,b||[]))[E(0x1e6)]());});};import{Command}from'../../command.js';const AWSCommand=Command[a3A(0x1d9)]({'name':a3A(0x1df),'usage':a3A(0x1eb),'minArgLength':0x1,'description':a3A(0x1d6),'examples':[a3A(0x1ee),'maka\x20aws:di']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;if(F(0x1db)!=='gGPOH')try{let c=a[0x0],d=this[F(0x1f3)](c);d&&(F(0x1ed)===F(0x1ed)?this[F(0x1e4)](c,a,b):this['runSubCommand'](d,e,f));}catch(g){console['error'](g),process[F(0x1e7)](0x0);}else return c[F(0x1d4)]()[F(0x1ec)](F(0x1de))[F(0x1d4)]()[F(0x1d7)](d)[F(0x1ec)](F(0x1de));});});export default AWSCommand;
1
+ function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a3d(a,b);}const a3E=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=parseInt(w(0x202))/0x1*(parseInt(w(0x1ea))/0x2)+-parseInt(w(0x1f2))/0x3*(parseInt(w(0x1ff))/0x4)+parseInt(w(0x201))/0x5+-parseInt(w(0x1ef))/0x6+parseInt(w(0x204))/0x7*(parseInt(w(0x1ed))/0x8)+parseInt(w(0x1eb))/0x9*(-parseInt(w(0x1f4))/0xa)+-parseInt(w(0x1f6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xd01a3));function a3c(){const G=['apply','407608ZsJDGB','27HRWZHc','hagRr','16RvXwjm','jykEw','5767908pXBAIA','KrNub','search','126EkUAyh','XhXeP','1557020JlaLFD','(((.+)+)+)+$','17779564eImoxv','constructor','maka\x20aws\x20<command>','VFgFq','aws','runSubCommand','findSubCommand','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','value','91376fKCCIw','done','8034065pzdhYv','8TtizMo','exit','5667683iqlPLC','zqYRe','nbhKU','vGRsE','IWccw','tCIYh','next','toString'];a3c=function(){return G;};return a3c();}const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a3d;if('jJtMr'!==x(0x205)){if(c){if(x(0x206)===x(0x206)){const e=c[x(0x1e9)](b,arguments);return c=null,e;}else{if(e){const g=i['apply'](j,arguments);return k=null,g;}}}}else{const h=d[x(0x1e9)](e,arguments);return f=null,h;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const y=a3d;return a3a[y(0x1e8)]()[y(0x1f1)]('(((.+)+)+)+$')[y(0x1e8)]()[y(0x1f7)](a3a)['search'](y(0x1f5));});a3a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a3d;if(z(0x1f3)!==z(0x207))g(f);else try{i(j[z(0x1e7)](k));}catch(i){m(i);}});}return new(c||(c=Promise))(function(f,g){const D=a3d;function h(k){const A=a3d;if(A(0x209)===A(0x209))try{j(d['next'](k));}catch(l){A(0x1f9)!==A(0x1ec)?g(l):this[A(0x1fb)](d,l,f);}else c(d);}function i(k){const B=a3d;try{j(d['throw'](k));}catch(l){B(0x208)==='sUmla'?c(d):g(l);}}function j(k){const C=a3d;k[C(0x200)]?f(k[C(0x1fe)]):e(k[C(0x1fe)])['then'](h,i);}j((d=d['apply'](a,b||[]))[D(0x1e7)]());});};import{Command}from'../../command.js';const AWSCommand=Command['create']({'name':a3E(0x1fa),'usage':a3E(0x1f8),'minArgLength':0x1,'description':a3E(0x1fd),'examples':['maka\x20aws:describe-instance','maka\x20aws:di']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;if(F(0x1ee)==='jykEw')try{if(F(0x1f0)!==F(0x1f0))return c['toString']()[F(0x1f1)]('(((.+)+)+)+$')['toString']()[F(0x1f7)](d)[F(0x1f1)]('(((.+)+)+)+$');else{let d=a[0x0],f=this[F(0x1fc)](d);f&&this[F(0x1fb)](d,a,b);}}catch(g){console['error'](g),process[F(0x203)](0x0);}else c(d);});});export default AWSCommand;
@@ -1 +1 @@
1
- const a4ag=a4d;(function(a,b){const a8=a4d,c=a();while(!![]){try{const d=parseInt(a8(0x10d))/0x1*(-parseInt(a8(0xec))/0x2)+-parseInt(a8(0x108))/0x3+-parseInt(a8(0x13d))/0x4*(parseInt(a8(0xd2))/0x5)+parseInt(a8(0x142))/0x6+parseInt(a8(0xdf))/0x7*(-parseInt(a8(0xed))/0x8)+-parseInt(a8(0x13a))/0x9*(parseInt(a8(0x114))/0xa)+parseInt(a8(0xd9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xe603e));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const a9=a4d;if(a9(0xda)===a9(0xda)){if(c){const e=c[a9(0xd8)](b,arguments);return c=null,e;}}else{if(e){const g=i[a9(0xd8)](j,arguments);return k=null,g;}}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const aa=a4d;return a4a[aa(0xf7)]()[aa(0x12d)]('(((.+)+)+)+$')['toString']()[aa(0x147)](a4a)[aa(0x12d)](aa(0x13f));});a4a();function a4c(){const au=['QCQuz','\x20SUBNETID:\x20','alias','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','constructor','\x20:\x20','Setting\x20AMI\x20ID\x20to\x20','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','502540fmCRXv','IDZPe','exit','EC2\x20Name:\x20[','sgId','sort','apply','43947948ociKsf','ExwFl','vLJaj','OXVER','JmMbR','Security\x20Group\x20Name:\x20[','7iUdGaB','amazon','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','\x20SGID:\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','subnetId','parse','getConfigFromShorthand','adfyQ','xFfEW','xxNDW','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','2WEqYDh','785816FLLCSg','JXmTL','},\x20{Key=Name,Value=','ec2create','forEach','done','Instance\x20Count:\x20','cider','date','next','toString','push','Please\x20choose\x20a\x20key\x20to\x20use:\x20','getTime','subnet','confirm','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','\x20SG\x20NAME:\x20','No\x20instance\x20has\x20been\x20created.','getProjectConfig','ID:\x20','success','}]\x22','1:1','log','ask','help','5223255VKHwRu','Open\x20port\x20443\x20for\x20SSL?','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x22Web\x20App\x22','then','903355MMjPad','name','Setting\x20the\x20key-pair\x20to:\x20','build\x20on\x20','Subnet:\x20','split','Name','10emMNfp','join','AGnLf','dyZLZ','JMJOg','amiId','**\x20Available\x20Security\x20Groups\x20**','maka\x20aws:create-instance','\x20AZONE:\x20','\x20CIDR:\x20','error','VSuqu','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=*','create','**\x20Available\x20AMIs\x20**','nCvvc','Desc','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','notice','fsi','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','ztsMG','BZBDn','value','search','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','string','throw','jhIhH','Security\x20Group:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','rjvqz','ImageID:','env','ec2describeKeys','12543831nfOSWx','yIsjZ','bright','24TIvRXJ','desc','(((.+)+)+)+$','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','chooseVPC','10118088LTUFja'];a4c=function(){return au;};return a4c();}function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xd0;let f=c[d];return f;},a4d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const ab=a4d;if('znKUi'==='znKUi')g(f);else{const i=d[ab(0xd8)](e,arguments);return f=null,i;}});}return new(c||(c=Promise))(function(f,g){const af=a4d;function h(k){const ac=a4d;if('zpXvF'==='zpXvF')try{ac(0x13b)===ac(0x12a)?c(d):j(d[ac(0xf6)](k));}catch(m){if(ac(0xdd)===ac(0x123)){let o=m[ac(0x124)][ac(0x112)]('build\x20on\x20')[0x1];f[ac(0xf8)]({'amiId':g['ID'],'desc':h[ac(0x124)],'date':o});}else g(m);}else i['id']===j(k)&&(q=r['amiId'],s['success'](ac(0xd0)+t+'\x20:\x20'+u[ac(0x13e)]));}function i(k){const ad=a4d;if(ad(0x117)==='dyZLZ')try{ad(0xea)!==ad(0x143)?j(d['throw'](k)):e[ad(0x105)](ad(0x101)+f['id']+ad(0xfe)+g['name']+'\x20SGID:\x20'+h['sgId']);}catch(m){g(m);}else throw b['error'](ad(0x10a));}function j(k){const ae=a4d;k[ae(0xf2)]?f(k[ae(0x12c)]):e(k[ae(0x12c)])[ae(0x10c)](h,i);}j((d=d['apply'](a,b||[]))[af(0xf6)]());});};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[a4ag(0x121)]({'name':'create-instance','aliases':['ci'],'usage':a4ag(0x11b),'description':'','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a4ag(0x107)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const ah=a4d;try{const c=this['fsi'][ah(0x100)](),d=new AWS(),{appName:f}=c,g=this[ah(0x127)][ah(0xe7)](b[ah(0x138)]);let h=f+'-'+g,i=(yield Actions[ah(0x106)](ah(0xd5)+h+']\x20'))||h,j='',k='',l='',m='',n='',o='',p='';const q=yield Actions[ah(0xfc)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?');let r='';q&&(r=yield d['createKeyPair']({'env':g}));try{if('fCCSM'!=='plCiS'){Log['notice']('**\x20Available\x20key-pairs\x20**');let v=r?r:i,w=d[ah(0x139)]({'suggestion':v}),x=(yield Actions[ah(0x106)](ah(0xf9)))||'-1';if(parseInt(x)<0x0){if('bvWMw'==='rLCin')c[ah(0x11e)](d);else{Log['error'](ah(0xfd)),Log['notice'](ah(0xff));return;}}w===null||w===void 0x0?void 0x0:w[ah(0xf1)](function(z){const ai=ah;ai(0xdc)==='ZqVTn'?c(d):parseInt(x)===z['id']&&(j=z[ai(0x10e)],Log['success'](ai(0x10f)+j));});}else c[ah(0x11e)](d);}catch(A){Log[ah(0x11e)](A);}k=yield d[ah(0x141)]();let s=yield Actions[ah(0xfc)](ah(0x134)),t;if(s){let B=k===''?d[ah(0x141)]():k,C=yield Actions['confirm'](ah(0x109));t=(yield Actions[ah(0x106)](ah(0xde)+i+']'))||i,d['ec2createSG']({'description':ah(0x10b),'name':t,'vpcId':B,'ssl':C});}t=i;try{Log['notice'](ah(0x11a));let D=execSync(ah(0xd1))['toString'](),E=JSON['parse'](D),F=[];E[ah(0xf1)](function(H,I){const aj=ah;F[aj(0xf8)]({'id':I,'name':H[aj(0x113)],'sgId':H['ID']});}),F['forEach'](function(H){const ak=ah;H['name']===t?Log['notice'](ak(0x101)+H['id']+ak(0xfe)+H[ak(0x10e)]+ak(0xe2)+H[ak(0xd6)]):console[ak(0x105)](ak(0x101)+H['id']+ak(0xfe)+H[ak(0x10e)]+ak(0xe2)+H[ak(0xd6)]);});let G=(yield Actions[ah(0x106)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';F['forEach'](function(H){const al=ah;if(al(0x11f)!==al(0x11f)){if(f[al(0x145)]===al(0xe0)){let J=k['Desc'][al(0x112)](al(0x110))[0x1];l[al(0xf8)]({'amiId':m['ID'],'desc':n[al(0x124)],'date':J});}}else{if(H['id']===parseInt(G)){if(al(0x136)===al(0xee))throw b[al(0x11e)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');else l=H[al(0xd6)],Log[al(0x102)]('Setting\x20SG\x20ID\x20to:\x20'+l+'\x0a');}}});if(l==='')throw Log[ah(0x11e)](ah(0x10a));}catch(H){Log[ah(0x11e)](H);}try{if(ah(0x12b)!==ah(0x118)){let I=0x7e6;Log['notice'](ah(0x122));let J=execSync(ah(0x120)+I+'*\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')[ah(0xf7)](),K=JSON[ah(0xe6)](J),L=[],M=[];K['forEach'](function(O,P){const am=ah;if(O[am(0x145)]===am(0xe0)){let Q=O[am(0x124)][am(0x112)](am(0x110))[0x1];L[am(0xf8)]({'amiId':O['ID'],'desc':O[am(0x124)],'date':Q});}}),L[ah(0xd7)](function(O,P){const an=ah;return new Date(P[an(0xf5)])[an(0xfa)]()-new Date(O[an(0xf5)])['getTime']();}),L[ah(0xf1)](function(O,P){const ao=ah;M['push']({'id':P,'amiId':O['amiId'],'desc':O[ao(0x13e)]});}),M[ah(0xf1)](function(O){const ap=ah;console['log']('ID:\x20'+O['id']+'\x20AMIID:\x20'+O[ap(0x119)]+'\x20DESCRIPTION:\x20'+O[ap(0x13e)]);});let N=(yield Actions[ah(0x106)](ah(0x125)))||'0';M[ah(0xf1)](function(O){const aq=ah;O['id']===parseInt(N)&&(aq(0x116)===aq(0xe8)?e[aq(0xf8)]({'id':f,'amiId':g[aq(0x119)],'desc':h[aq(0x13e)]}):(m=O[aq(0x119)],Log['success'](aq(0xd0)+m+aq(0x148)+O[aq(0x13e)])));});if(m==='')throw Log[ah(0x11e)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else d(e[ah(0x131)](f));}catch(P){Log[ah(0x11e)](P);}try{if(ah(0xd3)===ah(0xdb))e=f[ah(0x10e)],g[ah(0x102)](ah(0x10f)+h);else{Log[ah(0x126)]('**\x20Available\x20Subnets\x20**');let R=execSync(ah(0xeb))['toString'](),S=JSON[ah(0xe6)](R),T=[];S['forEach'](function(V,W){const ar=ah;T['push']({'id':W,'cidr':V[ar(0xf4)],'az':V['az'],'subnetId':V[ar(0xe5)]});}),T['forEach'](function(V){const as=ah;console[as(0x105)](as(0x101)+V['id']+as(0x11d)+V['cidr']+as(0x11c)+V['az']+as(0x144)+V[as(0xe5)]);});let U=(yield Actions[ah(0x106)](ah(0xe3)))||'0';T[ah(0xf1)](function(V){const at=ah;V['id']===parseInt(U)&&(o=V[at(0xe5)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+o));});if(o==='')throw Log[ah(0x11e)](ah(0x10a));}}catch(V){Log[ah(0x11e)](V);}let u=ah(0x104);try{let W=(yield Actions[ah(0x106)](ah(0xe4)))||'1:1',X=W['split'](':')[0x0],Y=W[ah(0x112)](':')[0x1];typeof parseInt(X)==='number'&&typeof parseInt(Y)==='number'&&(u=[X,Y][ah(0x115)](':'),Log[ah(0x102)](ah(0x135)+u));}catch(Z){Log[ah(0x11e)](Z);}try{let a0=(yield Actions[ah(0x106)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]'))||'t3.micro';typeof a0===ah(0x130)&&(ah(0x132)!==ah(0xe9)?n=a0:(d[ah(0x11e)](e),f[ah(0xd4)](0x0)));}catch(a2){Log[ah(0x11e)](a2);}try{let a3=JSON['parse'](execSync(ah(0x140)+o+ah(0xe1))['toString']())[0x0][ah(0xfb)];Log[ah(0x126)](ah(0x137)+m),Log['notice'](ah(0xf3)+u),Log[ah(0x126)]('Instace\x20Type:\x20'+n),Log[ah(0x126)]('Key-Pair:\x20'+j),Log[ah(0x126)](ah(0x133)+l),Log[ah(0x126)](ah(0x111)+a3);let a4=yield Actions['confirm'](ah(0x129));if(a4){let a5=d[ah(0xf0)]({'imageId':m,'count':u,'type':n,'key':j,'sgIds':l,'subnet':o,'tags':ah(0x12f)+g+ah(0xef)+i+ah(0x103)});a5&&(Log[ah(0x102)](ah(0x12e)),Log[ah(0x13c)](ah(0x146)));}else Log[ah(0x126)](ah(0x128));}catch(a6){console[ah(0x105)](a6),Log['error'](a6);}}catch(a7){console[ah(0x11e)](a7),process['exit'](0x0);}});},a4C);
1
+ const a4an=a4d;(function(a,b){const aj=a4d,c=a();while(!![]){try{const d=parseInt(aj(0xe7))/0x1*(parseInt(aj(0xcb))/0x2)+-parseInt(aj(0x122))/0x3+-parseInt(aj(0xe4))/0x4+parseInt(aj(0x11a))/0x5*(parseInt(aj(0xd6))/0x6)+-parseInt(aj(0x12f))/0x7+parseInt(aj(0x12c))/0x8*(-parseInt(aj(0x138))/0x9)+parseInt(aj(0x107))/0xa*(parseInt(aj(0x102))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xe5224));const a4b=(function(){let a=!![];return function(b,c){const ak=a4d;if(ak(0xdc)===ak(0x148))c[ak(0xc0)](d);else{const e=a?function(){const al=ak;if(c){if(al(0x13e)==='DGhGa'){const f=c[al(0xff)](b,arguments);return c=null,f;}else return c['toString']()['search'](al(0x118))[al(0xec)]()[al(0xd8)](d)[al(0x124)](al(0x118));}}:function(){};return a=![],e;}};}()),a4a=a4b(this,function(){const am=a4d;return a4a['toString']()['search']('(((.+)+)+)+$')[am(0xec)]()['constructor'](a4a)['search'](am(0x118));});a4a();var __awaiter=this&&this[a4an(0x113)]||function(a,b,c,d){function e(f){const ao=a4d;if(ao(0xf7)!==ao(0xf7)){const h=g?function(){const ap=ao;if(h){const u=q[ap(0xff)](r,arguments);return s=null,u;}}:function(){};return l=![],h;}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const at=a4d;function h(k){const aq=a4d;try{j(d[aq(0xbb)](k));}catch(l){g(l);}}function i(k){const ar=a4d;try{j(d['throw'](k));}catch(l){if(ar(0x120)!==ar(0x120))throw b[ar(0xc0)](ar(0x140));else g(l);}}function j(k){const as=a4d;as(0xe1)!==as(0x131)?k[as(0x103)]?f(k[as(0xd0)]):e(k[as(0xd0)])[as(0x127)](h,i):i['id']===j(k)&&(q=r[as(0xdd)],s['success'](as(0x112)+t+as(0xf0)+u[as(0xbc)]));}j((d=d[at(0xff)](a,b||[]))[at(0xbb)]());});};import a4C from'./aws.command.js';function a4c(){const aH=['aCOfL','*\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','getProjectConfig','ID:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','BChve','apply','nKznq','notice','44ehzMLn','done','Desc','chooseVPC','subnetId','1226740CgGfIC','Name','GMeJH','success','AoNHf','AdkGN','RYthU','cZFCk','ETNoh','zOCyP','1:1','Setting\x20AMI\x20ID\x20to\x20','__awaiter','\x20AMIID:\x20','\x20CIDR:\x20','forEach','Key-Pair:\x20','(((.+)+)+)+$','TLvoF','6081415gvIKLQ','confirm','jbYCE','sort','**\x20Available\x20Subnets\x20**','Setting\x20SG\x20ID\x20to:\x20','gobvV','sgId','1947828cNpLvQ','EC2\x20Name:\x20[','search','parse','log','then','ekFUF','Security\x20Group\x20Name:\x20[','maka\x20aws:create-instance','CKdeF','8WgPxDh','**\x20Available\x20Security\x20Groups\x20**','\x20SG\x20NAME:\x20','600677NCRRsV','**\x20Available\x20AMIs\x20**','pcaAM','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','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','QzbQq','build\x20on\x20','kAbFs','2843946mSEtOx','QYTCz','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ask','Security\x20Group:\x20','getTime','DGhGa','qRLFs','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','alias','UsDBQ','ec2create','Yswkt','BthSy','getConfigFromShorthand','Subnet:\x20','RogYx','ec2createSG','cider','next','desc','split','PCPnX','\x20DESCRIPTION:\x20','error','\x20SGID:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','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=*','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','isvzs','fsi','string','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','name','amazon','178GJjwbZ','qujBZ','join','push','create','value','UyVWr','ngUsv','t3.micro','\x20SUBNETID:\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','6SmFoGQ','bright','constructor','Open\x20port\x20443\x20for\x20SSL?','fULgW','date','NOKWY','amiId','VIenh','}]\x22','WIGPI','jZNSR','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ImageID:','3330856KFzBdz','Setting\x20Subnet\x20ID\x20to\x20','AjdnH','12532CMRngO','keFmm','number','mOHfj','env','toString','exit','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','cidr','\x20:\x20','createKeyPair','**\x20Available\x20key-pairs\x20**','\x20AZONE:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','create-instance','Inteo','eylVj','Setting\x20the\x20key-pair\x20to:\x20'];a4c=function(){return aH;};return a4c();}import{execSync}from'child_process';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xb9;let f=c[d];return f;},a4d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4an(0xcf)]({'name':a4an(0xf5),'aliases':['ci'],'usage':a4an(0x12a),'description':'','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':['help']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const au=a4d;try{if(au(0x144)!==au(0x144))try{i(j[au(0xbb)](k));}catch(d){m(d);}else{const d=this[au(0xc6)][au(0xfb)](),f=new AWS(),{appName:g}=d,h=this[au(0xc6)][au(0x146)](b[au(0xeb)]);let i=g+'-'+h,j=(yield Actions[au(0x13b)](au(0x123)+i+']\x20'))||i,k='',l='',m='',n='',o='',p='',q='';const r=yield Actions[au(0x11b)](au(0xfd));let s='';r&&(s=yield f[au(0xf1)]({'env':h}));try{if(au(0xd1)!=='RWikC'){Log[au(0x101)](au(0xf2));let w=s?s:j,x=f['ec2describeKeys']({'suggestion':w}),y=(yield Actions['ask'](au(0xd5)))||'-1';if(parseInt(y)<0x0){Log[au(0xc0)]('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'),Log['notice']('No\x20instance\x20has\x20been\x20created.');return;}x===null||x===void 0x0?void 0x0:x[au(0x116)](function(z){const av=au;parseInt(y)===z['id']&&(k=z[av(0xc9)],Log[av(0x10a)]('Setting\x20the\x20key-pair\x20to:\x20'+k));});}else{if(f[au(0x141)]===au(0xca)){let A=k[au(0x104)][au(0xbd)]('build\x20on\x20')[0x1];l['push']({'amiId':m['ID'],'desc':n[au(0x104)],'date':A});}}}catch(A){au(0x13f)!==au(0x100)?Log[au(0xc0)](A):c(d);}l=yield f[au(0x105)]();let t=yield Actions[au(0x11b)](au(0xc4)),u;if(t){if(au(0xf9)!==au(0x10c)){let C=l===''?f[au(0x105)]():l,D=yield Actions[au(0x11b)](au(0xd9));u=(yield Actions[au(0x13b)](au(0x129)+j+']'))||j,f[au(0xb9)]({'description':'\x22Web\x20App\x22','name':u,'vpcId':C,'ssl':D});}else c['error'](d);}u=j;try{Log[au(0x101)](au(0x12d));let F=execSync(au(0x133))[au(0xec)](),G=JSON[au(0x125)](F),H=[];G['forEach'](function(J,K){const aw=au;if(aw(0x142)===aw(0xfe))throw b[aw(0xc0)](aw(0x140));else H['push']({'id':K,'name':J[aw(0x108)],'sgId':J['ID']});}),H[au(0x116)](function(J){const ax=au;if('ngUsv'===ax(0xd2))J[ax(0xc9)]===u?Log[ax(0x101)]('ID:\x20'+J['id']+ax(0x12e)+J[ax(0xc9)]+ax(0xc1)+J[ax(0x121)]):'AoNHf'!==ax(0x10b)?c['error'](d):console[ax(0x126)](ax(0xfc)+J['id']+ax(0x12e)+J[ax(0xc9)]+ax(0xc1)+J[ax(0x121)]);else return f instanceof g?h:new i(function(M){M(k);});});let I=(yield Actions[au(0x13b)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';H['forEach'](function(J){const ay=au;ay(0xe0)===ay(0x10f)?(e=f['name'],g[ay(0x10a)](ay(0xf8)+h)):J['id']===parseInt(I)&&('wVzQf'===ay(0xc5)?d(e['next'](f)):(m=J[ay(0x121)],Log[ay(0x10a)](ay(0x11f)+m+'\x0a')));});if(m==='')throw Log['error'](au(0x140));}catch(J){Log['error'](J);}try{if(au(0xbe)===au(0xbe)){let K=0x7e6;Log['notice'](au(0x130));let L=execSync(au(0xc3)+K+au(0xfa))[au(0xec)](),M=JSON[au(0x125)](L),N=[],O=[];M['forEach'](function(Q,R){const az=au;if(az(0x11c)===az(0xde))b[az(0x101)](az(0xee));else{if(Q['alias']==='amazon'){let T=Q[az(0x104)][az(0xbd)](az(0x136))[0x1];N[az(0xce)]({'amiId':Q['ID'],'desc':Q['Desc'],'date':T});}}}),N[au(0x11d)](function(Q,R){const aA=au;return new Date(R[aA(0xdb)])[aA(0x13d)]()-new Date(Q['date'])[aA(0x13d)]();}),N[au(0x116)](function(Q,R){const aB=au;O[aB(0xce)]({'id':R,'amiId':Q[aB(0xdd)],'desc':Q['desc']});}),O[au(0x116)](function(Q){const aC=au;console[aC(0x126)](aC(0xfc)+Q['id']+'\x20AMIID:\x20'+Q[aC(0xdd)]+aC(0xbf)+Q[aC(0xbc)]);});let P=(yield Actions[au(0x13b)](au(0xe2)))||'0';O[au(0x116)](function(Q){const aD=au;Q['id']===parseInt(P)&&(n=Q[aD(0xdd)],Log['success']('Setting\x20AMI\x20ID\x20to\x20'+n+aD(0xf0)+Q['desc']));});if(n===''){if(au(0x139)===au(0x137))f=[g,h][au(0xcd)](':'),i[au(0x10a)](au(0xc8)+j);else throw Log['error'](au(0x140));}}else h(i)===j['id']&&(o=p[au(0xc9)],q[au(0x10a)](au(0xf8)+r));}catch(S){'PiJBG'!==au(0x110)?Log[au(0xc0)](S):S[au(0x101)]('ID:\x20'+f['id']+au(0x12e)+g[au(0xc9)]+au(0xc1)+h[au(0x121)]);}try{if('nuWwh'===au(0x119))throw b[au(0xc0)](au(0x140));else{Log['notice'](au(0x11e));let V=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[au(0xec)](),W=JSON[au(0x125)](V),X=[];W[au(0x116)](function(Z,a0){const aE=au;aE(0x10e)===aE(0x10e)?X[aE(0xce)]({'id':a0,'cidr':Z[aE(0xba)],'az':Z['az'],'subnetId':Z[aE(0x106)]}):e['log']('ID:\x20'+f['id']+aE(0x114)+g[aE(0xdd)]+aE(0xbf)+h[aE(0xbc)]);}),X[au(0x116)](function(Z){const aF=au;console[aF(0x126)]('ID:\x20'+Z['id']+aF(0x115)+Z['cidr']+aF(0xf3)+Z['az']+aF(0xd4)+Z['subnetId']);});let Y=(yield Actions['ask'](au(0x13a)))||'0';X[au(0x116)](function(Z){const aG=au;aG(0xea)!==aG(0xea)?e[aG(0xce)]({'id':f,'name':g[aG(0x108)],'sgId':h['ID']}):Z['id']===parseInt(Y)&&(p=Z[aG(0x106)],Log[aG(0x10a)](aG(0xe5)+p));});if(p===''){if(au(0x128)!=='ekFUF')f[au(0x126)](au(0xfc)+g['id']+au(0x115)+h[au(0xef)]+'\x20AZONE:\x20'+i['az']+au(0xd4)+j[au(0x106)]);else throw Log[au(0xc0)](au(0x140));}}}catch(a0){'fULgW'!==au(0xda)?a0['log'](au(0xfc)+f['id']+au(0x12e)+g[au(0xc9)]+au(0xc1)+h[au(0x121)]):Log['error'](a0);}let v=au(0x111);try{if(au(0x135)===au(0x109))d[au(0xc0)](e),f[au(0xed)](0x0);else{let a3=(yield Actions[au(0x13b)](au(0x134)))||au(0x111),a4=a3[au(0xbd)](':')[0x0],a5=a3[au(0xbd)](':')[0x1];typeof parseInt(a4)===au(0xe9)&&typeof parseInt(a5)===au(0xe9)&&(au(0xf6)===au(0x10d)?(e['log'](f),g[au(0xc0)](h)):(v=[a4,a5]['join'](':'),Log[au(0x10a)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+v)));}}catch(a7){au(0xcc)===au(0xcc)?Log[au(0xc0)](a7):c[au(0xc0)](d);}try{if(au(0x12b)!==au(0x145)){let a9=(yield Actions['ask']('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]'))||au(0xd3);typeof a9===au(0xc7)&&(o=a9);}else h['id']===i(j)&&(o=p[au(0x121)],q[au(0x10a)](au(0x11f)+r+'\x0a'));}catch(ab){au(0xe6)===au(0xe6)?Log['error'](ab):c(d);}try{let ad=JSON[au(0x125)](execSync(au(0xf4)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')['toString']())[0x0]['subnet'];Log[au(0x101)](au(0xe3)+n),Log[au(0x101)]('Instance\x20Count:\x20'+v),Log[au(0x101)]('Instace\x20Type:\x20'+o),Log[au(0x101)](au(0x117)+k),Log[au(0x101)](au(0x13c)+m),Log[au(0x101)](au(0x147)+ad);let ae=yield Actions[au(0x11b)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(ae){let af=f[au(0x143)]({'imageId':n,'count':v,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':au(0x132)+h+'},\x20{Key=Name,Value='+j+au(0xdf)});af&&(Log['success'](au(0xc2)),Log[au(0xd7)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else Log[au(0x101)](au(0xee));}catch(ag){au(0xe8)==='keFmm'?(console['log'](ag),Log['error'](ag)):c=d;}}}catch(ai){console[au(0xc0)](ai),process[au(0xed)](0x0);}});},a4C);
@@ -1 +1 @@
1
- const a5B=a5d;function a5c(){const I=['4rZxwcZ','2308794kglVpt','7472091wcqnaH','FeZLv','search','then','exit','cenux','tkwyu','1640BMAibQ','fsi','error','10Iaunrh','436594EWOQkv','value','throw','__awaiter','15995bcFkib','toString','getConfigFromShorthand','AnVDq','next','SJAPb','4341762lFjFvD','vwHnw','3GUznpT','cshgE','constructor','EmJSt','apply','ckp','119511BhpPUT','createKeyPair','env','create','help','create-key-pair','eEsLo','mToJu','(((.+)+)+)+$','done','3874505YZkSJs'];a5c=function(){return I;};return a5c();}function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x74;let f=c[d];return f;},a5d(a,b);}(function(a,b){const y=a5d,c=a();while(!![]){try{const d=parseInt(y(0x84))/0x1*(-parseInt(y(0x78))/0x2)+parseInt(y(0x96))/0x3+parseInt(y(0x95))/0x4*(parseInt(y(0x94))/0x5)+-parseInt(y(0x82))/0x6+parseInt(y(0x7c))/0x7*(-parseInt(y(0x74))/0x8)+parseInt(y(0x8a))/0x9*(parseInt(y(0x77))/0xa)+parseInt(y(0x97))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x5f3e4));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a5d;if(c){if(z(0x9c)!==z(0x83)){const e=c['apply'](b,arguments);return c=null,e;}else d(e[z(0x7a)](f));}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const A=a5d;return a5a[A(0x7d)]()['search'](A(0x92))[A(0x7d)]()['constructor'](a5a)[A(0x99)](A(0x92));});a5a();var __awaiter=this&&this[a5B(0x7b)]||function(a,b,c,d){function e(f){const C=a5d;if(C(0x87)!=='LLlNq')return f instanceof c?f:new c(function(g){g(f);});else try{i(j[C(0x80)](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){const G=a5d;function h(k){const D=a5d;if(D(0x91)!=='HmFom')try{D(0x90)!==D(0x90)?(d[D(0x76)](e),f[D(0x9b)](0x0)):j(d[D(0x80)](k));}catch(m){if(D(0x9d)!=='tkwyu'){const o=new c(),p=this[D(0x75)][D(0x7e)](d[D(0x8c)]);o['createKeyPair']({'env':p});}else g(m);}else return c[D(0x7d)]()['search']('(((.+)+)+)+$')[D(0x7d)]()[D(0x86)](d)[D(0x99)](D(0x92));}function i(k){const E=a5d;try{j(d['throw'](k));}catch(l){E(0x98)!==E(0x98)?h[E(0x93)]?i(j['value']):k(l[E(0x79)])[E(0x9a)](m,n):g(l);}}function j(k){const F=a5d;k[F(0x93)]?f(k['value']):e(k[F(0x79)])[F(0x9a)](h,i);}j((d=d[G(0x88)](a,b||[]))[G(0x80)]());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5B(0x8d)]({'name':a5B(0x8f),'aliases':[a5B(0x89)],'usage':'maka\x20aws\x20create-key-pair','mustBeInMakaProject':!![],'requiredOpts':[a5B(0x8c)],'validOpts':[a5B(0x8e)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a5d;if(H(0x85)!==H(0x85))d(e[H(0x80)](f));else try{const d=new AWS(),f=this[H(0x75)][H(0x7e)](b[H(0x8c)]);d[H(0x8b)]({'env':f});}catch(g){H(0x7f)===H(0x81)?c(d):(console[H(0x76)](g),process['exit'](0x0));}});},a5x);
1
+ const a5B=a5d;(function(a,b){const y=a5d,c=a();while(!![]){try{const d=-parseInt(y(0x1df))/0x1+parseInt(y(0x1c7))/0x2*(parseInt(y(0x1cd))/0x3)+parseInt(y(0x1c2))/0x4*(parseInt(y(0x1cb))/0x5)+-parseInt(y(0x1d6))/0x6+parseInt(y(0x1bd))/0x7*(-parseInt(y(0x1e0))/0x8)+parseInt(y(0x1d3))/0x9*(-parseInt(y(0x1e3))/0xa)+-parseInt(y(0x1c0))/0xb*(-parseInt(y(0x1e2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xe5d82));function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a5d(a,b);}const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a5d;if(c){const e=c[z(0x1d2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const A=a5d;return a5a[A(0x1c5)]()[A(0x1da)](A(0x1c9))[A(0x1c5)]()[A(0x1bf)](a5a)['search'](A(0x1c9));});a5a();var __awaiter=this&&this[a5B(0x1d4)]||function(a,b,c,d){function e(f){const C=a5d;if(C(0x1e1)!==C(0x1c6))return f instanceof c?f:new c(function(g){g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const G=a5d;function h(k){const D=a5d;if(D(0x1ce)!==D(0x1ce)){const m=new c(),n=this[D(0x1bc)]['getConfigFromShorthand'](d[D(0x1db)]);m['createKeyPair']({'env':n});}else try{j(d[D(0x1d5)](k));}catch(m){g(m);}}function i(k){const E=a5d;try{E(0x1d1)!==E(0x1d1)?c(d):j(d[E(0x1ca)](k));}catch(m){if('XJpJm'===E(0x1c3))try{const r=new i(),s=this[E(0x1bc)][E(0x1be)](j[E(0x1db)]);r[E(0x1d9)]({'env':s});}catch(t){m['error'](t),n[E(0x1dd)](0x0);}else g(m);}}function j(k){const F=a5d;F(0x1cf)!=='Jmnjp'?(d[F(0x1c1)](e),f['exit'](0x0)):k[F(0x1d8)]?f(k[F(0x1c4)]):e(k[F(0x1c4)])[F(0x1de)](h,i);}j((d=d[G(0x1d2)](a,b||[]))[G(0x1d5)]());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';function a5c(){const I=['142552rxqsPu','miLRR','value','toString','RLNfe','7204FgDkJo','create','(((.+)+)+)+$','throw','180xhVtcB','Cjffc','1566bqSkHK','yAHEN','Jmnjp','create-key-pair','RXCbw','apply','72PoFVqH','__awaiter','next','4264182RfpPgr','help','done','createKeyPair','search','env','maka\x20aws\x20create-key-pair','exit','then','890078PMLcWe','8HXUikh','ZqRPo','17904rWDLVz','1900530Umtqzt','fsi','1839873ideokH','getConfigFromShorthand','constructor','8569XvkJAl','error'];a5c=function(){return I;};return a5c();}import{AWS}from'../../tools/aws/aws.class.js';Command[a5B(0x1c8)]({'name':a5B(0x1d0),'aliases':['ckp'],'usage':a5B(0x1dc),'mustBeInMakaProject':!![],'requiredOpts':[a5B(0x1db)],'validOpts':[a5B(0x1d7)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a5d;if(H(0x1cc)==='HADJM'){if(e){const d=i[H(0x1d2)](j,arguments);return k=null,d;}}else try{const d=new AWS(),f=this[H(0x1bc)][H(0x1be)](b[H(0x1db)]);d[H(0x1d9)]({'env':f});}catch(g){console[H(0x1c1)](g),process[H(0x1dd)](0x0);}});},a5x);
@@ -1 +1 @@
1
- const a6A=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0x7a))/0x1*(-parseInt(v(0x88))/0x2)+parseInt(v(0x80))/0x3+-parseInt(v(0x8f))/0x4+-parseInt(v(0x93))/0x5*(parseInt(v(0x94))/0x6)+-parseInt(v(0x83))/0x7+parseInt(v(0x8e))/0x8+parseInt(v(0x75))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xe80b2));function a6c(){const G=['value','1549989jvtjio','search','ejjxD','getProjectConfig','ssl','155804pnVQlj','fsi','error','then','done','FtTOJ','2249142YjjGdP','\x22Web\x20App\x22','(((.+)+)+)+$','8550157LeVpIS','confirm','ask','maka\x20aws\x20terminate-instance','create-security-group','18aEEanj','Security\x20Group\x20Name:\x20[','name','JfVtY','apply','exit','10730816GCitOh','3327808XQQHJI','help','throw','Dcdji','6350LoPRYq','3126cattlY','chooseVPC','ec2createSG','utnEf','gYEkL','constructor','toString','__awaiter','next'];a6c=function(){return G;};return a6c();}const a6b=(function(){let a=!![];return function(b,c){const w=a6d;if(w(0x6f)!==w(0x6f))return f instanceof g?h:new i(function(m){m(k);});else{const e=a?function(){const x=w;if(c){if(x(0x77)===x(0x77)){const f=c[x(0x8c)](b,arguments);return c=null,f;}else{const h=g?function(){const y=x;if(h){const u=q[y(0x8c)](r,arguments);return s=null,u;}}:function(){};return l=![],h;}}}:function(){};return a=![],e;}};}()),a6a=a6b(this,function(){const z=a6d;return a6a[z(0x71)]()[z(0x76)](z(0x82))[z(0x71)]()[z(0x70)](a6a)[z(0x76)](z(0x82));});a6a();var __awaiter=this&&this[a6A(0x72)]||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 E=a6d;function h(k){const B=a6d;if(B(0x7f)==='iLJTY')d(e['throw'](f));else try{j(d[B(0x73)](k));}catch(m){if(B(0x6e)==='utnEf')g(m);else try{i(j[B(0x91)](k));}catch(o){m(o);}}}function i(k){const C=a6d;if(C(0x8b)!==C(0x8b))c(d);else try{'AlgqR'==='AlgqR'?j(d[C(0x91)](k)):h[C(0x7e)]?i(j['value']):k(l[C(0x74)])['then'](m,n);}catch(n){g(n);}}function j(k){const D=a6d;k[D(0x7e)]?f(k[D(0x74)]):e(k[D(0x74)])[D(0x7d)](h,i);}j((d=d['apply'](a,b||[]))[E(0x73)]());});};import a6u from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x6c;let f=c[d];return f;},a6d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a6A(0x87),'aliases':['csg'],'usage':a6A(0x86),'validOpts':[a6A(0x90)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a6d;if(F(0x92)===F(0x92))try{const c=new AWS(),d=this[F(0x7b)][F(0x78)](),{appName:f}=d;let g=yield c[F(0x6c)](),h=![];!b[F(0x79)]&&(h=yield Actions[F(0x84)]('Open\x20port\x20443\x20for\x20SSL?'));let i=h?'-ssl':'',j=b[F(0x8a)]?b[F(0x8a)]:''+f+i,k=(yield Actions[F(0x85)](F(0x89)+j+']'))||j;c[F(0x6d)]({'description':F(0x81),'name':k,'vpcId':g,'ssl':h});}catch(l){console[F(0x7c)](l),process[F(0x8d)](0x0);}else d[F(0x7c)](e),f[F(0x8d)](0x0);});},a6u);
1
+ function a6c(){const F=['343749UEVNrL','__awaiter','toString','-ssl','ask','vpffJ','(((.+)+)+)+$','rJOQy','value','name','24VfxZRA','1442664TxjpiV','constructor','ec2createSG','TIoeB','apply','3646976KaTPhO','getProjectConfig','create','search','create-security-group','166mobuBF','312DbeBIa','SHhGT','fsi','25101WWJIAO','done','next','chooseVPC','iCIKN','5020WyGynN','error','exit','Security\x20Group\x20Name:\x20[','csg','then','throw','30653hnRmdY','zMFol','720305RmFehF','help'];a6c=function(){return F;};return a6c();}const a6y=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0xc7))/0x1*(parseInt(v(0xc6))/0x2)+-parseInt(v(0xda))/0x3+-parseInt(v(0xe5))/0x4+-parseInt(v(0xd8))/0x5+parseInt(v(0xe4))/0x6*(-parseInt(v(0xd6))/0x7)+-parseInt(v(0xc1))/0x8+parseInt(v(0xca))/0x9*(parseInt(v(0xcf))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x44b8c));function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xbe;let f=c[d];return f;},a6d(a,b);}const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if(c){const e=c[w(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a[x(0xdc)]()[x(0xc4)](x(0xe0))[x(0xdc)]()[x(0xe6)](a6a)[x(0xc4)](x(0xe0));});a6a();var __awaiter=this&&this[a6y(0xdb)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a6d;if(z(0xce)!=='iCIKN'){const i=d['apply'](e,arguments);return f=null,i;}else g(f);});}return new(c||(c=Promise))(function(f,g){const D=a6d;function h(k){const A=a6d;if(A(0xbf)===A(0xd7))return c[A(0xdc)]()[A(0xc4)](A(0xe0))[A(0xdc)]()[A(0xe6)](d)[A(0xc4)](A(0xe0));else try{'zNNzi'!==A(0xdf)?j(d[A(0xcc)](k)):(d[A(0xd0)](e),f[A(0xd1)](0x0));}catch(n){if(A(0xc8)!=='SHhGT')return f instanceof g?h:new i(function(p){p(k);});else g(n);}}function i(k){const B=a6d;if(B(0xe1)==='jRYsb')c(d);else try{j(d[B(0xd5)](k));}catch(m){g(m);}}function j(k){const C=a6d;k[C(0xcb)]?f(k[C(0xe2)]):e(k[C(0xe2)])[C(0xd4)](h,i);}j((d=d[D(0xc0)](a,b||[]))[D(0xcc)]());});};import a6u from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a6y(0xc3)]({'name':a6y(0xc5),'aliases':[a6y(0xd3)],'usage':'maka\x20aws\x20terminate-instance','validOpts':[a6y(0xd9)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a6d;try{const c=new AWS(),d=this[E(0xc9)][E(0xc2)](),{appName:f}=d;let g=yield c[E(0xcd)](),h=![];!b['ssl']&&(h=yield Actions['confirm']('Open\x20port\x20443\x20for\x20SSL?'));let i=h?E(0xdd):'',j=b['name']?b[E(0xe3)]:''+f+i,k=(yield Actions[E(0xde)](E(0xd2)+j+']'))||j;c[E(0xbe)]({'description':'\x22Web\x20App\x22','name':k,'vpcId':g,'ssl':h});}catch(l){console[E(0xd0)](l),process[E(0xd1)](0x0);}});},a6u);
@@ -1 +1 @@
1
- function a7c(){var E=['4166561jHvUCC','6434790fLlnwf','1194803iTcDPz','2569648dagEJq','constructor','ltGfx','9hDztjw','YXCFZ','qPNEo','ec2describeInstances','rwbjU','XfWFU','search','shqBR','3917025OiYWKs','(((.+)+)+)+$','then','apply','throw','vIAea','__awaiter','JYsAo','error','done','value','next','244THFzPi','qQGhH','exit','gkOGB','VnVPf','45862120elYdWL','2GPNixN','27189vgvgEV','describe-instances','toString','maka\x20aws\x20describe-instances'];a7c=function(){return E;};return a7c();}function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x10e;var f=c[d];return f;},a7d(a,b);}var a7y=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=-parseInt(v(0x129))/0x1*(parseInt(v(0x122))/0x2)+parseInt(v(0x123))/0x3*(-parseInt(v(0x11c))/0x4)+-parseInt(v(0x110))/0x5+-parseInt(v(0x128))/0x6+-parseInt(v(0x127))/0x7+parseInt(v(0x12a))/0x8+parseInt(v(0x12d))/0x9*(parseInt(v(0x121))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xad047));var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if(w(0x132)!==w(0x132))c(d);else{if(c){if(w(0x11d)!=='YFivB'){var e=c['apply'](b,arguments);return c=null,e;}else try{const h=new g();h[w(0x130)]();}catch(i){j[w(0x118)](i),k['exit'](0x0);}}}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var x=a7d;return a7a[x(0x125)]()[x(0x10e)]('(((.+)+)+)+$')[x(0x125)]()[x(0x12b)](a7a)[x(0x10e)](x(0x111));});a7a();var __awaiter=this&&this[a7y(0x116)]||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=a7d;if(z(0x11f)!=='dNzlb')try{if(z(0x12f)!==z(0x12f))return f instanceof g?h:new i(function(m){m(k);});else j(d[z(0x11b)](k));}catch(m){z(0x117)===z(0x117)?g(m):h[z(0x119)]?i(j[z(0x11a)]):k(l['value'])[z(0x112)](m,n);}else{var p=g?function(){var A=z;if(p){var u=q[A(0x113)](r,arguments);return s=null,u;}}:function(){};return l=![],p;}}function i(k){var B=a7d;try{if(B(0x12e)!==B(0x12c))j(d[B(0x114)](k));else{const m=new b();m[B(0x130)]();}}catch(m){B(0x120)===B(0x120)?g(m):c(d);}}function j(k){var C=a7d;k[C(0x119)]?f(k['value']):e(k[C(0x11a)])[C(0x112)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a7y(0x124),'aliases':['di'],'usage':a7y(0x126),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var D=a7d;if('vLihS'===D(0x115))c(d);else try{if(D(0x10f)!==D(0x131)){const b=new AWS();b['ec2describeInstances']();}else{var d=d['apply'](e,arguments);return f=null,d;}}catch(d){console[D(0x118)](d),process[D(0x11e)](0x0);}});},a7u);
1
+ var a7z=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0x8a))/0x1+-parseInt(v(0x9e))/0x2*(-parseInt(v(0xa0))/0x3)+parseInt(v(0x91))/0x4+parseInt(v(0x95))/0x5*(-parseInt(v(0x94))/0x6)+-parseInt(v(0x9d))/0x7*(-parseInt(v(0x9c))/0x8)+-parseInt(v(0x9f))/0x9+-parseInt(v(0x96))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x5a14e));var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if('bSesp'===w(0x8e)){if(c){if('PyiOu'==='LOskJ'){var g=g?function(){var x=w;if(g){var u=q[x(0x92)](r,arguments);return s=null,u;}}:function(){};return l=![],g;}else{var e=c[w(0x92)](b,arguments);return c=null,e;}}}else try{i(j['throw'](k));}catch(h){m(h);}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var y=a7d;return a7a[y(0x86)]()[y(0x87)]('(((.+)+)+)+$')[y(0x86)]()['constructor'](a7a)['search'](y(0xa1));});function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x85;var f=c[d];return f;},a7d(a,b);}a7a();var __awaiter=this&&this[a7z(0x97)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var A=a7d;A(0x88)!=='CTbpo'?c(d):g(f);});}return new(c||(c=Promise))(function(f,g){var E=a7d;function h(k){var B=a7d;try{B(0x93)!=='bxmrb'?d(e[B(0x9b)](f)):j(d['next'](k));}catch(m){g(m);}}function i(k){var C=a7d;try{j(d[C(0x98)](k));}catch(l){g(l);}}function j(k){var D=a7d;k['done']?f(k[D(0x85)]):e(k[D(0x85)])['then'](h,i);}j((d=d[E(0x92)](a,b||[]))[E(0x9b)]());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a7c(){var G=['38670sInXFa','(((.+)+)+)+$','value','toString','search','CTbpo','eAgrW','88044awtaLN','help','constructor','describe-instances','bSesp','error','aLJdO','2306680fVHKuo','apply','bxmrb','105666VsUxPX','125lHiUZT','6073590WLQbhN','__awaiter','throw','ec2describeInstances','create','next','8hGgtCf','3836049EzemJM','106zbutdv','4313547YSmXew'];a7c=function(){return G;};return a7c();}Command[a7z(0x9a)]({'name':a7z(0x8d),'aliases':['di'],'usage':'maka\x20aws\x20describe-instances','validOpts':[a7z(0x8b)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var F=a7d;if(F(0x90)!==F(0x90))return f instanceof g?h:new i(function(m){m(k);});else try{const b=new AWS();b[F(0x99)]();}catch(c){if(F(0x89)==='OlJfr')return c[F(0x86)]()[F(0x87)]('(((.+)+)+)+$')[F(0x86)]()[F(0x8c)](d)['search'](F(0xa1));else console[F(0x8f)](c),process['exit'](0x0);}});},a7u);
@@ -1 +1 @@
1
- var a8z=a8d;function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x146;var f=c[d];return f;},a8d(a,b);}(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0x157))/0x1*(-parseInt(v(0x15a))/0x2)+parseInt(v(0x149))/0x3*(-parseInt(v(0x165))/0x4)+parseInt(v(0x14a))/0x5*(parseInt(v(0x155))/0x6)+-parseInt(v(0x163))/0x7+-parseInt(v(0x152))/0x8+parseInt(v(0x146))/0x9+parseInt(v(0x150))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x97500));var a8b=(function(){var a=!![];return function(b,c){var w=a8d;if(w(0x14d)===w(0x153))c(d);else{var d=a?function(){var x=w;if(c){var f=c[x(0x162)](b,arguments);return c=null,f;}}:function(){};return a=![],d;}};}()),a8a=a8b(this,function(){var y=a8d;return a8a[y(0x151)]()['search']('(((.+)+)+)+$')[y(0x151)]()[y(0x164)](a8a)[y(0x148)](y(0x159));});a8a();var __awaiter=this&&this[a8z(0x154)]||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 D=a8d;function h(k){var A=a8d;try{if(A(0x15c)==='uxlHW')j(d['next'](k));else{if(e){var m=i[A(0x162)](j,arguments);return k=null,m;}}}catch(m){g(m);}}function i(k){var B=a8d;try{j(d[B(0x160)](k));}catch(l){g(l);}}function j(k){var C=a8d;k[C(0x161)]?f(k[C(0x14c)]):e(k['value'])[C(0x14b)](h,i);}j((d=d[D(0x162)](a,b||[]))[D(0x14f)]());});};function a8c(){var F=['10782081WYuzFr','exit','search','3tUbzxE','5483795JzortS','then','value','yGUMI','MlOWq','next','12936250GbgkoG','toString','2661896IUUvGF','yFOla','__awaiter','6MUJUfe','error','59246aQpSwK','hTQsR','(((.+)+)+)+$','18pgZFsi','maka\x20aws\x20describe-key-pairs','uxlHW','create','help','dkp','throw','done','apply','6699315lkmutV','constructor','4582484apwxdT'];a8c=function(){return F;};return a8c();}import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8z(0x15d)]({'name':'describe-key-pairs','aliases':[a8z(0x15f)],'usage':a8z(0x15b),'validOpts':[a8z(0x15e)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a8d;try{const a=new AWS();a['ec2describeKeys']();}catch(b){if(E(0x158)===E(0x14e))try{i(j['next'](k));}catch(d){m(d);}else console[E(0x156)](b),process[E(0x147)](0x0);}});},a8u);
1
+ var a8y=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0xdd))/0x1*(-parseInt(v(0xe6))/0x2)+-parseInt(v(0xe4))/0x3+parseInt(v(0xea))/0x4+-parseInt(v(0xe9))/0x5*(parseInt(v(0xeb))/0x6)+parseInt(v(0xec))/0x7*(parseInt(v(0xf8))/0x8)+parseInt(v(0xfc))/0x9*(parseInt(v(0xf2))/0xa)+parseInt(v(0xdf))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xce90a));var a8b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a8d;if(c){var e=c[w(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){var x=a8d;return a8a[x(0xe3)]()[x(0xe0)](x(0xf6))[x(0xe3)]()[x(0xee)](a8a)[x(0xe0)](x(0xf6));});a8a();var __awaiter=this&&this[a8y(0xe7)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var z=a8d;if(z(0xdc)!==z(0xdc))try{const i=new g();i[z(0xe2)]();}catch(j){j[z(0xef)](j),k[z(0xfd)](0x0);}else g(f);});}return new(c||(c=Promise))(function(f,g){var E=a8d;function h(k){var A=a8d;try{A(0xf7)===A(0xfb)?c(d):j(d[A(0xe1)](k));}catch(m){if(A(0xf4)===A(0xf9)){var o=g?function(){var B=A;if(o){var u=q[B(0xf5)](r,arguments);return s=null,u;}}:function(){};return l=![],o;}else g(m);}}function i(k){var C=a8d;try{j(d[C(0xf1)](k));}catch(l){g(l);}}function j(k){var D=a8d;D(0xfa)!==D(0xfa)?d(e['throw'](f)):k[D(0xe8)]?f(k[D(0xf0)]):e(k[D(0xf0)])[D(0xde)](h,i);}j((d=d['apply'](a,b||[]))[E(0xe1)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a8c(){var G=['(((.+)+)+)+$','HqLXm','160ibMkjO','EOBtg','aGLSg','oCbFs','63TYJfEP','exit','zBcQw','22369CClXcD','then','2607011injAEu','search','next','ec2describeKeys','toString','1171854fGHmdH','dkp','86rfkQAB','__awaiter','done','5amWEUW','3953768rGivOu','6827466LteHlR','376880htTnZh','help','constructor','error','value','throw','1477490ltTNaC','describe-key-pairs','dHdKn','apply'];a8c=function(){return G;};return a8c();}function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0xdc;var f=c[d];return f;},a8d(a,b);}Command['create']({'name':a8y(0xf3),'aliases':[a8y(0xe5)],'usage':'maka\x20aws\x20describe-key-pairs','validOpts':[a8y(0xed)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var F=a8d;try{const a=new AWS();a[F(0xe2)]();}catch(b){console['error'](b),process['exit'](0x0);}});},a8u);
@@ -1 +1 @@
1
- const a9E=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=parseInt(v(0x1c7))/0x1+parseInt(v(0x1c8))/0x2+-parseInt(v(0x1f3))/0x3+-parseInt(v(0x1d7))/0x4*(-parseInt(v(0x1d6))/0x5)+parseInt(v(0x1cd))/0x6+parseInt(v(0x1db))/0x7*(parseInt(v(0x1e2))/0x8)+-parseInt(v(0x1cc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xe545f));const a9b=(function(){let a=!![];return function(b,c){const w=a9d;if(w(0x1ee)===w(0x1d9)){const e=d[w(0x1e5)](e,arguments);return f=null,e;}else{const e=a?function(){const x=w;if(c){if(x(0x1da)==='mZKvZ')try{i(j[x(0x1e3)](k));}catch(g){m(g);}else{const g=c[x(0x1e5)](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a9a=a9b(this,function(){const y=a9d;return a9a['toString']()[y(0x1d1)](y(0x1d2))[y(0x1ce)]()[y(0x1e7)](a9a)['search'](y(0x1d2));});a9a();function a9c(){const G=['value','wZShl','5mbOsKi','6398164aPmFyu','ksHrA','wvrOw','MHdYi','68103lhTVXB','done','confirm','chooseInstance','instanceId','HWorm','VSARu','1056sVCxpM','next','QnfqI','apply','OkMDf','constructor','exit','throw','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','hMZIX','maka\x20aws\x20reboot-instance','error','Qqvyt','HJgVV','Ldwpy','name','reboot-instance','3609210FtQYiC','eHiPN','\x20Ready?','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','XKzCq','137484QmQAfp','45870DAVkjL','uSYcS','status','then','21882906MuPNna','9176514BVppHD','toString','help','ec2rebootInstance','search','(((.+)+)+)+$','\x20is\x20still\x20running.'];a9c=function(){return G;};return a9c();}function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a9d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a9d;z(0x1eb)!==z(0x1eb)?c(d):g(f);});}return new(c||(c=Promise))(function(f,g){const D=a9d;function h(k){const A=a9d;try{A(0x1e4)===A(0x1d5)?h['done']?i(j[A(0x1d4)]):k(l['value'])['then'](m,n):j(d[A(0x1e3)](k));}catch(m){A(0x1f0)==='Ldwpy'?g(m):c[A(0x1ed)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+d['name']+A(0x1d3));}}function i(k){const B=a9d;if(B(0x1e1)==='VSARu')try{j(d[B(0x1e9)](k));}catch(l){if('gysoQ'==='gysoQ')g(l);else return f instanceof g?h:new i(function(n){n(k);});}else d(e['next'](f));}function j(k){const C=a9d;k[C(0x1dc)]?f(k[C(0x1d4)]):e(k[C(0x1d4)])[C(0x1cb)](h,i);}j((d=d[D(0x1e5)](a,b||[]))[D(0x1e3)]());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a9E(0x1f2),'aliases':['rbi'],'usage':a9E(0x1ec),'validOpts':[a9E(0x1cf)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a9d;if(F(0x1e6)==='OkMDf')try{if(F(0x1c6)!==F(0x1c9)){const a=new AWS();let b=yield a[F(0x1de)]();if((b===null||b===void 0x0?void 0x0:b[F(0x1ca)])==='running'){let c=yield Actions[F(0x1dd)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[F(0x1f1)]+F(0x1c4));c?a[F(0x1d0)]({'instanceId':b[F(0x1df)]}):F(0x1d8)!==F(0x1ef)?Log[F(0x1ed)](F(0x1c5)+b[F(0x1f1)]+F(0x1d3)):b[F(0x1ed)](F(0x1ea));}else{if(F(0x1f4)!==F(0x1e0))Log[F(0x1ed)](F(0x1ea));else{if(e){const g=i[F(0x1e5)](j,arguments);return k=null,g;}}}}else c[F(0x1d0)]({'instanceId':d[F(0x1df)]});}catch(h){console['error'](h),process[F(0x1e8)](0x0);}else d(e['throw'](f));});},a9u);
1
+ const a9y=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0x8d))/0x1*(parseInt(v(0x9e))/0x2)+parseInt(v(0x93))/0x3*(-parseInt(v(0x87))/0x4)+-parseInt(v(0x99))/0x5*(parseInt(v(0xa1))/0x6)+parseInt(v(0x92))/0x7+parseInt(v(0x84))/0x8*(-parseInt(v(0x9b))/0x9)+-parseInt(v(0xa4))/0xa+parseInt(v(0x85))/0xb*(parseInt(v(0x8f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xe271b));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a9d;if(c){const e=c[w(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const x=a9d;return a9a[x(0x89)]()['search'](x(0x9a))[x(0x89)]()[x(0x95)](a9a)[x(0x9d)](x(0x9a));});a9a();var __awaiter=this&&this[a9y(0x94)]||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 z=a9d;try{j(d[z(0xaa)](k));}catch(l){z(0xa3)===z(0xa3)?g(l):c(d);}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){const A=a9d;A(0x8b)!==A(0x8b)?c(d):k[A(0x97)]?f(k[A(0xa8)]):e(k['value'])[A(0xa7)](h,i);}j((d=d['apply'](a,b||[]))[B(0xaa)]());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';function a9c(){const D=['QfVyO','ec2rebootInstance','79GVfGbW','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','369948ApksxQ','chooseInstance','create','508942taCbib','21UHcACW','__awaiter','constructor','aTBkj','done','instanceId','10iQwMbo','(((.+)+)+)+$','369BCUUyW','apply','search','34244pJigiq','error','maka\x20aws\x20reboot-instance','2095032ynlhFw','name','qvSVP','16696020tYHSLG','PlcVP','reboot-instance','then','value','\x20is\x20still\x20running.','next','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','help','exit','223624dtlXTy','2255JxPcww','running','341988LGgOLb','confirm','toString','rbi'];a9c=function(){return D;};return a9c();}import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x82;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[a9y(0x91)]({'name':a9y(0xa6),'aliases':[a9y(0x8a)],'usage':a9y(0xa0),'validOpts':[a9y(0x82)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const C=a9d;try{const a=new AWS();let b=yield a[C(0x90)]();if((b===null||b===void 0x0?void 0x0:b['status'])===C(0x86)){let c=yield Actions[C(0x88)](C(0xab)+b[C(0xa2)]+'\x20Ready?');if(c)a[C(0x8c)]({'instanceId':b[C(0x98)]});else{if(C(0x96)===C(0x96))Log[C(0x9f)](C(0x8e)+b[C(0xa2)]+C(0xa9));else{if(e){const f=i[C(0x9c)](j,arguments);return k=null,f;}}}}else{if(C(0xa5)===C(0xa5))Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');else{const h=d['apply'](e,arguments);return f=null,h;}}}catch(g){console[C(0x9f)](g),process[C(0x83)](0x0);}});},a9u);
@@ -1 +1 @@
1
- const a10I=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=parseInt(F(0x115))/0x1+-parseInt(F(0x123))/0x2+parseInt(F(0x112))/0x3*(parseInt(F(0x136))/0x4)+parseInt(F(0x111))/0x5+parseInt(F(0x133))/0x6+parseInt(F(0x132))/0x7*(parseInt(F(0x12b))/0x8)+-parseInt(F(0x10c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xe9c5d));function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x102;let f=c[d];return f;},a10d(a,b);}const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if(G(0x126)===G(0x126)){if(c){const e=c[G(0x114)](b,arguments);return c=null,e;}}else try{i(j[G(0x120)](k));}catch(g){m(g);}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const H=a10d;return a10a[H(0x107)]()['search']('(((.+)+)+)+$')[H(0x107)]()['constructor'](a10a)[H(0x135)](H(0x106));});a10a();var __awaiter=this&&this[a10I(0x10a)]||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 M=a10d;function h(k){const J=a10d;if(J(0x11f)!==J(0x11f))c(d);else try{j(d[J(0x12f)](k));}catch(m){g(m);}}function i(k){const K=a10d;try{j(d[K(0x120)](k));}catch(l){g(l);}}function j(k){const L=a10d;L(0x125)!==L(0x125)?e[L(0x121)]=f===null||g===void 0x0?void 0x0:h[L(0x113)]:k[L(0x103)]?f(k[L(0x108)]):e(k[L(0x108)])['then'](h,i);}j((d=d[M(0x114)](a,b||[]))[M(0x12f)]());});};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';function a10c(){const O=['writeFileSync','create','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','inherit','YUAtP','stringify','MbQrJ','throw','host','XDUsX','1368538jrsNeb','error','rAmzt','NWIEd','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','parse','\x20IP\x20to\x20','BwjGB','3625136CcbPip','set-host','success','utf8','next','env','ssh.json','7VEzUkk','1236768QjEOpW','gTYYe','search','16ntiwke','public','done','ask','nrPlG','(((.+)+)+)+$','toString','value','sth','__awaiter','readFileSync','27469665EivSQY','exit','join','chooseInstance','WLSfi','6827845axfZUI','604581VqUQtb','privateIp','apply','1863040wocbWg','cat\x20','private','maka\x20aws\x20set-host'];a10c=function(){return O;};return a10c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10I(0x11a)]({'name':a10I(0x12c),'aliases':[a10I(0x109)],'usage':a10I(0x118),'mustBeInMakaProject':!![],'requiredOpts':[a10I(0x130)],'validOpts':['help','key-name'],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const N=a10d;if('qwYpz'!==N(0x105))try{const c=new AWS(),d=this['fsi']['getConfigPath'](b['env']);let f=yield c[N(0x10f)](),g=JSON[N(0x128)](a10D[N(0x10b)](a10C['join'](d,N(0x131)),N(0x12e))),h=(yield Actions[N(0x104)](N(0x11b)))||N(0x102);if(h){if(h===N(0x102)||h===N(0x117)){if(N(0x110)!==N(0x110))try{i(j[N(0x12f)](k));}catch(j){m(j);}else{if(h===N(0x102))g[N(0x121)]=f===null||f===void 0x0?void 0x0:f['publicIp'];else h===N(0x117)&&(g['host']=f===null||f===void 0x0?void 0x0:f[N(0x113)]);}}else{if(N(0x11d)!==N(0x12a))throw N(0x127);else d(e[N(0x12f)](f));}}else g[N(0x121)]=f===null||f===void 0x0?void 0x0:f[N(0x113)];a10D[N(0x119)](a10C[N(0x10e)](d,N(0x131)),JSON[N(0x11e)](g,null,0x2)),execSync(N(0x116)+a10C[N(0x10e)](d,N(0x131)),{'stdio':N(0x11c)}),Log[N(0x12d)]('\x0aSaved\x20host\x20'+h+N(0x129)+d+a10C['sep']+N(0x131));}catch(k){N(0x134)!==N(0x122)?(console[N(0x124)](k),process[N(0x10d)](0x0)):k[N(0x121)]=f===null||g===void 0x0?void 0x0:h[N(0x113)];}else{if(k===N(0x102))u[N(0x121)]=v===null||w===void 0x0?void 0x0:x['publicIp'];else p===N(0x117)&&(y[N(0x121)]=z===null||A===void 0x0?void 0x0:B[N(0x113)]);}});},a10E);
1
+ const a10I=a10d;function a10c(){const N=['throw','xkRPJ','lksFJ','toString','1518111OQrDcj','key-name','value','ssh.json','getConfigPath','privateIp','215448KaBnoY','448GWwEHL','(((.+)+)+)+$','PYEbs','chooseInstance','inherit','constructor','825836yQgabs','DqrPv','vMdIO','set-host','DDVrF','2123704hTLyaw','readFileSync','RSLlE','publicIp','LgtXZ','public','llQjU','help','host','\x20IP\x20to\x20','done','ask','84cqkTXZ','OXhBq','stringify','apply','writeFileSync','__awaiter','114372maQlPl','930285oiixDs','sIoLT','eNzkm','join','parse','next','search','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','239628IYJSKx','exit','env','private','\x0aSaved\x20host\x20','cat\x20','KsHjB','then'];a10c=function(){return N;};return a10c();}(function(a,b){const F=a10d,c=a();while(!![]){try{const d=-parseInt(F(0x80))/0x1+parseInt(F(0x99))/0x2+-parseInt(F(0x8c))/0x3+parseInt(F(0x9e))/0x4+-parseInt(F(0x78))/0x5+parseInt(F(0x92))/0x6*(-parseInt(F(0xaa))/0x7)+parseInt(F(0x93))/0x8*(parseInt(F(0xb0))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x4780a));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if(G(0x9d)===G(0xa2))h['done']?i(j['value']):k(l[G(0x8e)])[G(0x87)](m,n);else{if(c){if('xkRPJ'===G(0x89)){const f=c[G(0xad)](b,arguments);return c=null,f;}else d['error'](e),f[G(0x81)](0x0);}}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const H=a10d;return a10a[H(0x8b)]()[H(0x7e)](H(0x94))[H(0x8b)]()[H(0x98)](a10a)[H(0x7e)](H(0x94));});a10a();var __awaiter=this&&this[a10I(0xaf)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){function h(k){const J=a10d;if('llQjU'!==J(0xa4)){const m=d[J(0xad)](e,arguments);return f=null,m;}else try{J(0x8a)===J(0xa0)?c(d):j(d[J(0x7d)](k));}catch(n){g(n);}}function i(k){const K=a10d;try{if(K(0x9b)!==K(0x9b)){if(e){const m=i[K(0xad)](j,arguments);return k=null,m;}}else j(d[K(0x88)](k));}catch(m){g(m);}}function j(k){const L=a10d;k[L(0xa8)]?f(k['value']):e(k[L(0x8e)])[L(0x87)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a10C from'path';import a10D from'fs';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x78;let f=c[d];return f;},a10d(a,b);}import{execSync}from'child_process';import a10E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a10I(0x9c),'aliases':['sth'],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a10I(0xa5),a10I(0x8d)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const M=a10d;try{const c=new AWS(),d=this['fsi'][M(0x90)](b[M(0x82)]);let f=yield c[M(0x96)](),g=JSON[M(0x7c)](a10D[M(0x9f)](a10C[M(0x7b)](d,M(0x8f)),'utf8')),h=(yield Actions[M(0xa9)]('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]'))||M(0xa3);if(h){if(M(0x79)===M(0x7a))try{i(j[M(0x7d)](k));}catch(j){m(j);}else{if(h==='public'||h===M(0x83)){if(M(0x86)!==M(0x86))e['host']=f===null||g===void 0x0?void 0x0:h[M(0xa1)];else{if(h===M(0xa3))M(0x9a)===M(0x95)?e['host']=f===null||g===void 0x0?void 0x0:h['privateIp']:g[M(0xa6)]=f===null||f===void 0x0?void 0x0:f['publicIp'];else h===M(0x83)&&(g[M(0xa6)]=f===null||f===void 0x0?void 0x0:f[M(0x91)]);}}else throw M(0x7f);}}else g[M(0xa6)]=f===null||f===void 0x0?void 0x0:f[M(0x91)];a10D[M(0xae)](a10C[M(0x7b)](d,M(0x8f)),JSON[M(0xac)](g,null,0x2)),execSync(M(0x85)+a10C[M(0x7b)](d,'ssh.json'),{'stdio':M(0x97)}),Log['success'](M(0x84)+h+M(0xa7)+d+a10C['sep']+M(0x8f));}catch(l){'Uqmxt'===M(0xab)?l['host']=f===null||g===void 0x0?void 0x0:h[M(0x91)]:(console['error'](l),process[M(0x81)](0x0));}});},a10E);
@@ -1 +1 @@
1
- const a11y=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x92))/0x1+-parseInt(v(0x86))/0x2+-parseInt(v(0x74))/0x3+parseInt(v(0x9f))/0x4+parseInt(v(0x83))/0x5*(parseInt(v(0x76))/0x6)+parseInt(v(0x7a))/0x7+-parseInt(v(0x73))/0x8*(parseInt(v(0x7c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x73622));function a11c(){const F=['confirm','NuQtA','toString','ec2terminateInstance','900347tPXTyD','RbDmM','OUcOo','search','dOXNZ','gnAUi','instanceId','pvKgU','status','name','maka\x20aws\x20terminate-instance','OEHbs','kDUcO','1778696XFxzuj','__awaiter','25888eFSWEF','2054364gGFGdh','GWtLL','606gVVFSR','create','next','yELUr','5841325PsKHLM','\x20Ready?','2817QjidHe','cZCNn','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','constructor','apply','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','value','22025XsaKHA','error','exit','908270iEEyXW','(((.+)+)+)+$','IOdkY','throw','chooseInstance','running','help','done'];a11c=function(){return F;};return a11c();}function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x73;let f=c[d];return f;},a11d(a,b);}const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(c){const e=c[w(0x80)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a[x(0x90)]()[x(0x95)]('(((.+)+)+)+$')['toString']()[x(0x7f)](a11a)[x(0x95)](x(0x87));});a11a();var __awaiter=this&&this[a11y(0xa0)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a11d;if(z(0x75)==='WTOqI'){const i=g?function(){if(i){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],i;}else g(f);});}return new(c||(c=Promise))(function(f,g){const D=a11d;function h(k){const A=a11d;if(A(0x96)===A(0x96))try{A(0x93)!==A(0x93)?h[A(0x8d)]?i(j[A(0x82)]):k(l['value'])['then'](m,n):j(d['next'](k));}catch(m){A(0x7d)===A(0x88)?d(m[A(0x78)](f)):g(m);}else{if(e){const p=i['apply'](j,arguments);return k=null,p;}}}function i(k){const B=a11d;try{if(B(0x94)===B(0x94))j(d[B(0x89)](k));else try{i(j[B(0x89)](k));}catch(m){m(m);}}catch(m){B(0x99)===B(0x79)?c[B(0x91)]({'instanceId':d[B(0x98)]}):g(m);}}function j(k){const C=a11d;if(C(0x9e)!==C(0x9e))return c[C(0x90)]()[C(0x95)]('(((.+)+)+)+$')[C(0x90)]()[C(0x7f)](d)[C(0x95)](C(0x87));else k[C(0x8d)]?f(k[C(0x82)]):e(k['value'])['then'](h,i);}j((d=d[D(0x80)](a,b||[]))[D(0x78)]());});};import a11u from'./aws.command.js';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(0x77)]({'name':'terminate-instance','aliases':['ti'],'usage':a11y(0x9c),'validOpts':[a11y(0x8c)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a11d;try{if(E(0x97)===E(0x97)){const a=new AWS();let b=yield a[E(0x8a)]();if((b===null||b===void 0x0?void 0x0:b[E(0x9a)])===E(0x8b)){let c=yield Actions[E(0x8e)](E(0x81)+b[E(0x9b)]+E(0x7b));c?E(0x8f)===E(0x8f)?a[E(0x91)]({'instanceId':b['instanceId']}):d(e[E(0x89)](f)):Log['error']('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[E(0x9b)]+E(0x7e));}else'uDxJq'!=='uLEyo'?Log[E(0x84)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.'):c(d);}else d[E(0x84)](e),f[E(0x85)](0x0);}catch(h){if('OEHbs'!==E(0x9d)){const j=d['apply'](h,arguments);return f=null,j;}else console[E(0x84)](h),process[E(0x85)](0x0);}});},a11u);
1
+ const a11z=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=-parseInt(v(0x1ce))/0x1*(-parseInt(v(0x1d0))/0x2)+parseInt(v(0x1d5))/0x3*(parseInt(v(0x1ca))/0x4)+-parseInt(v(0x1d6))/0x5*(-parseInt(v(0x1cf))/0x6)+parseInt(v(0x1b6))/0x7*(parseInt(v(0x1b7))/0x8)+parseInt(v(0x1dc))/0x9*(parseInt(v(0x1e3))/0xa)+-parseInt(v(0x1c8))/0xb+-parseInt(v(0x1cd))/0xc*(parseInt(v(0x1be))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x5b4a6));function a11c(){const G=['then','7376135SnNGkb','vdwXI','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','value','ec2terminateInstance','next','tCOTw','apply','search','PBmxL','6416344XqKaAA','BDgqt','148VnRFNt','instanceId','error','24QPhLxK','1193qYSeWM','78NPBrag','612lbpYtn','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','\x20Ready?','mpmyn','TRMjA','59439rDaohc','258530MBWkXn','lvOzX','Uyggs','xDluF','toString','maka\x20aws\x20terminate-instance','458883xQLFLW','running','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','tcksk','__awaiter','done','OcNaA','40gDbyTY','jBLDi','AMcdI','evwIN','77gyueoK','85640jNhenh','AfAxj','qBhlz','(((.+)+)+)+$','name','constructor'];a11c=function(){return G;};return a11c();}const a11b=(function(){let a=!![];return function(b,c){const w=a11d;if(w(0x1d4)!==w(0x1c4)){const d=a?function(){const x=w;if(c){if(x(0x1d3)!==x(0x1df)){const e=c['apply'](b,arguments);return c=null,e;}else c(d);}}:function(){};return a=![],d;}else{if(e){const f=i[w(0x1c5)](j,arguments);return k=null,f;}}};}()),a11a=a11b(this,function(){const y=a11d;return a11a[y(0x1da)]()[y(0x1c6)](y(0x1ba))['toString']()[y(0x1bc)](a11a)[y(0x1c6)](y(0x1ba));});function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1b4;let f=c[d];return f;},a11d(a,b);}a11a();var __awaiter=this&&this[a11z(0x1e0)]||function(a,b,c,d){function e(f){const A=a11d;if(A(0x1d9)===A(0x1b5))b[A(0x1cc)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const E=a11d;function h(k){const B=a11d;if(B(0x1c9)!==B(0x1c9))d(e[B(0x1c3)](f));else try{j(d[B(0x1c3)](k));}catch(m){g(m);}}function i(k){const C=a11d;if(C(0x1b4)==='qftIJ')c[C(0x1c2)]({'instanceId':d[C(0x1cb)]});else try{j(d['throw'](k));}catch(m){C(0x1d8)===C(0x1e2)?c[C(0x1cc)](C(0x1c0)+d[C(0x1bb)]+C(0x1de)):g(m);}}function j(k){const D=a11d;k[D(0x1e1)]?f(k['value']):e(k['value'])[D(0x1bd)](h,i);}j((d=d[E(0x1c5)](a,b||[]))[E(0x1c3)]());});};import a11u from'./aws.command.js';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['create']({'name':'terminate-instance','aliases':['ti'],'usage':a11z(0x1db),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a11d;try{if(F(0x1b8)===F(0x1b9))d[F(0x1cc)](e),f['exit'](0x0);else{const b=new AWS();let c=yield b['chooseInstance']();if((c===null||c===void 0x0?void 0x0:c['status'])===F(0x1dd)){if(F(0x1bf)!==F(0x1c7)){let d=yield Actions['confirm']('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+c[F(0x1bb)]+F(0x1d2));if(d)b[F(0x1c2)]({'instanceId':c[F(0x1cb)]});else{if(F(0x1d7)!==F(0x1e4))Log['error']('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+c[F(0x1bb)]+F(0x1de));else return f instanceof g?h:new i(function(m){m(k);});}}else h[F(0x1e1)]?i(j[F(0x1c1)]):k(l['value'])[F(0x1bd)](m,n);}else Log[F(0x1cc)](F(0x1d1));}}catch(h){console[F(0x1cc)](h),process['exit'](0x0);}});},a11u);
@@ -1 +1 @@
1
- function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x70;var f=c[d];return f;},a12d(a,b);}(function(a,b){var u=a12d,c=a();while(!![]){try{var d=-parseInt(u(0x78))/0x1+-parseInt(u(0x7d))/0x2+-parseInt(u(0x73))/0x3*(-parseInt(u(0x7a))/0x4)+-parseInt(u(0x72))/0x5+parseInt(u(0x75))/0x6+-parseInt(u(0x76))/0x7+parseInt(u(0x77))/0x8*(parseInt(u(0x7c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x820d6));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a12d;if(c){var e=c[v(0x70)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var w=a12d;return a12a[w(0x74)]()[w(0x71)]('(((.+)+)+)+$')['toString']()[w(0x7b)](a12a)[w(0x71)](w(0x79));});function a12c(){var x=['2736462DEOFyT','5997817GHDyMn','160PYyUPL','35431BhdTrZ','(((.+)+)+)+$','10924IivPIY','constructor','1125171jDQxor','1188262aeNBzO','apply','search','4809745TqmuQP','27XaiHgG','toString'];a12c=function(){return x;};return a12c();}a12a();import'./build.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var u=a12d,c=a();while(!![]){try{var d=-parseInt(u(0xab))/0x1+-parseInt(u(0xb1))/0x2+parseInt(u(0xae))/0x3+parseInt(u(0xb2))/0x4+parseInt(u(0xb0))/0x5+parseInt(u(0xa9))/0x6*(parseInt(u(0xb3))/0x7)+-parseInt(u(0xaa))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x76197));function a12c(){var w=['2379805MSyWjs','1501356rhAdnN','2046492XTLmmo','1390277OPHsfh','search','12Ljzaqz','6655792oUodNS','85968lvREby','toString','(((.+)+)+)+$','2302647xdyAuU','constructor'];a12c=function(){return w;};return a12c();}var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var v=a12d;return a12a[v(0xac)]()['search'](v(0xad))[v(0xac)]()[v(0xaf)](a12a)[v(0xa8)](v(0xad));});a12a();import'./build.js';function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0xa8;var f=c[d];return f;},a12d(a,b);}import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a13D=a13d;(function(a,b){const w=a13d,c=a();while(!![]){try{const d=parseInt(w(0x148))/0x1*(-parseInt(w(0x156))/0x2)+-parseInt(w(0x14f))/0x3*(parseInt(w(0x13b))/0x4)+parseInt(w(0x14d))/0x5*(parseInt(w(0x155))/0x6)+-parseInt(w(0x133))/0x7+-parseInt(w(0x136))/0x8+parseInt(w(0x13e))/0x9+parseInt(w(0x150))/0xa*(parseInt(w(0x134))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xe25e0));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a13d;if(c){if(x(0x14a)===x(0x144))return c[x(0x138)]()[x(0x143)]('(((.+)+)+)+$')['toString']()['constructor'](d)[x(0x143)](x(0x153));else{const f=c[x(0x13a)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const y=a13d;return a13a[y(0x138)]()[y(0x143)](y(0x153))[y(0x138)]()[y(0x142)](a13a)['search']('(((.+)+)+)+$');});a13a();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){const C=a13d;function h(k){const z=a13d;if('nFPku'!==z(0x12f))d(e[z(0x12c)](f));else try{j(d[z(0x12c)](k));}catch(m){g(m);}}function i(k){const A=a13d;if(A(0x140)===A(0x141))c(d);else try{j(d['throw'](k));}catch(m){'TvhKZ'!==A(0x146)?g(m):c[A(0x137)](d,0x2);}}function j(k){const B=a13d;'xogHg'!==B(0x15f)?d(e[B(0x149)](f)):k[B(0x15e)]?f(k['value']):e(k[B(0x13d)])[B(0x132)](h,i);}j((d=d[C(0x13a)](a,b||[]))[C(0x12c)]());});};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';const BuildCommand=Command[a13D(0x135)]({'name':'build','usage':'maka\x20build\x20[--force]','validOpts':[a13D(0x157)],'description':a13D(0x145),'mustBeInMakaProject':!![],'examples':[a13D(0x14b),a13D(0x15a)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a13d;if(E(0x130)!==E(0x130))c(d);else try{let d=a[0x0],f=this['findSubCommand'](d);if(f)this[E(0x154)](d,a,b);else{if(E(0x131)==='AzQQq')d[E(0x152)](e),f[E(0x12e)](0x0);else{let h=b['force'],i=[this[E(0x13c)][E(0x139)]({'pathParts':[E(0x158)]})][E(0x151)](process['argv'][E(0x147)](0x3)),j=a13u[E(0x15d)](this[E(0x13c)]['pathFromProject']({}),E(0x158),E(0x159));if(a13v[E(0x14c)](j)){if(E(0x13f)===E(0x15b))try{i(j[E(0x12c)](k));}catch(l){m(l);}else{let l=h!==null&&h!==void 0x0?h:yield Actions[E(0x12d)](E(0x14e));if(!l)throw Log[E(0x152)]('Aborted.');}}i['forEach']((m,n)=>{const F=E;m==='--force'&&i[F(0x137)](n,0x2);}),this['fsi'][E(0x15c)]('build',i);}}}catch(m){console[E(0x152)](m),process['exit'](0x0);}});});function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x12c;let f=c[d];return f;},a13d(a,b);}function a13c(){const G=['7384496FczPMf','splice','toString','pathFromProject','apply','49796kDDcSk','fsi','value','2262267Akimgr','ZVyig','QeRBq','Lvmoa','constructor','search','naiAk','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','arvfO','slice','33043wkvKrd','throw','cmoIE','maka\x20build','existsSync','66580nnkeXY','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','51ctRfel','125050QiMCaq','concat','error','(((.+)+)+)+$','runSubCommand','462MkqgxI','6DJyJkX','force','build','app.tar.gz','maka\x20build:docker','CGghC','invokeMeteorCommand','join','done','xogHg','next','confirm','exit','nFPku','GeZoz','ClwVz','then','2825802vTNzIu','1133HrCqOg','create'];a13c=function(){return G;};return a13c();}export default BuildCommand;
1
+ const a13z=a13d;(function(a,b){const w=a13d,c=a();while(!![]){try{const d=-parseInt(w(0x144))/0x1+-parseInt(w(0x171))/0x2*(-parseInt(w(0x16d))/0x3)+-parseInt(w(0x17a))/0x4*(-parseInt(w(0x155))/0x5)+parseInt(w(0x14e))/0x6+-parseInt(w(0x159))/0x7*(-parseInt(w(0x163))/0x8)+parseInt(w(0x14a))/0x9*(parseInt(w(0x146))/0xa)+-parseInt(w(0x14c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x9c880));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a13d;if(c){const e=c[x(0x179)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const y=a13d;return a13a[y(0x15c)]()['search'](y(0x174))[y(0x15c)]()['constructor'](a13a)['search'](y(0x174));});function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x13f;let f=c[d];return f;},a13d(a,b);}a13a();function a13c(){const G=['EnqDg','done','exit','308621LrSxtk','EbIus','7417450pmnXjL','pQKUF','search','build','9GMhEwR','njqvg','11066792xWddMs','force','2225556bbHdGB','qzHhk','next','forEach','runSubCommand','CIwcg','create','1729330JfCVFu','maka\x20build:docker','__awaiter','VSaeP','3051629vJOmjf','fsi','xVmii','toString','slice','maka\x20build\x20[--force]','Aborted.','existsSync','throw','HFHAN','8UwBZCf','join','pRZBm','NtGMZ','splice','confirm','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','then','pathFromProject','--force','4281DJRrQw','argv','value','app.tar.gz','86sXvMEt','error','uALij','(((.+)+)+)+$','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','Ssooz','constructor','findSubCommand','apply','4pFRaIT','HChqx','concat'];a13c=function(){return G;};return a13c();}var __awaiter=this&&this[a13z(0x157)]||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=a13d;function h(k){const A=a13d;try{if(A(0x162)!==A(0x145))j(d['next'](k));else{const n=g?function(){if(n){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}catch(m){g(m);}}function i(k){const B=a13d;if(B(0x166)!==B(0x165))try{if(B(0x147)!==B(0x147))try{i(j[B(0x161)](k));}catch(m){m(m);}else j(d[B(0x161)](k));}catch(m){B(0x15b)===B(0x15b)?g(m):d(m['next'](f));}else return c[B(0x15c)]()[B(0x148)](B(0x174))['toString']()[B(0x177)](d)['search'](B(0x174));}function j(k){const C=a13d;k[C(0x142)]?f(k[C(0x16f)]):e(k[C(0x16f)])[C(0x16a)](h,i);}j((d=d[D(0x179)](a,b||[]))[D(0x150)]());});};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';const BuildCommand=Command[a13z(0x154)]({'name':'build','usage':a13z(0x15e),'validOpts':[a13z(0x14d)],'description':a13z(0x175),'mustBeInMakaProject':!![],'examples':['maka\x20build',a13z(0x156)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a13d;if(E(0x141)===E(0x13f))this['runSubCommand'](d,e,f);else try{if(E(0x14b)===E(0x14f))d===E(0x16c)&&g[E(0x167)](h,0x2);else{let f=a[0x0],g=this[E(0x178)](f);if(g)'waYVP'!=='waYVP'?c(d):this[E(0x152)](f,a,b);else{if(E(0x173)!==E(0x173))d(e[E(0x161)](f));else{let j=b[E(0x14d)],k=[this['fsi'][E(0x16b)]({'pathParts':[E(0x149)]})][E(0x140)](process[E(0x16e)][E(0x15d)](0x3)),l=a13u[E(0x164)](this[E(0x15a)][E(0x16b)]({}),'build',E(0x170));if(a13v[E(0x160)](l)){if(E(0x176)===E(0x158))d[E(0x172)](e),f['exit'](0x0);else{let n=j!==null&&j!==void 0x0?j:yield Actions[E(0x168)](E(0x169));if(!n)throw Log[E(0x172)](E(0x15f));}}k[E(0x151)]((o,p)=>{const F=E;if('uhzPd'===F(0x153)){if(e){const r=i['apply'](j,arguments);return k=null,r;}}else o==='--force'&&k['splice'](p,0x2);}),this[E(0x15a)]['invokeMeteorCommand'](E(0x149),k);}}}}catch(o){console[E(0x172)](o),process[E(0x143)](0x0);}});});export default BuildCommand;
@@ -1 +1 @@
1
- const a14N=a14d;(function(a,b){const I=a14d,c=a();while(!![]){try{const d=parseInt(I(0x158))/0x1+parseInt(I(0x155))/0x2+-parseInt(I(0x1ae))/0x3*(-parseInt(I(0x18c))/0x4)+-parseInt(I(0x169))/0x5*(-parseInt(I(0x18a))/0x6)+-parseInt(I(0x197))/0x7+parseInt(I(0x162))/0x8+-parseInt(I(0x17f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x71b56));const a14b=(function(){let a=!![];return function(b,c){const J=a14d;if(J(0x16e)==='dlxSi')c[J(0x185)](d[J(0x19c)](J(0x1a3),'docker','_keys'));else{const e=a?function(){const K=J;if(K(0x16f)!=='jDHtF'){if(c){if(K(0x154)!==K(0x16c)){const f=c[K(0x1ad)](b,arguments);return c=null,f;}else this[K(0x18d)][K(0x1b5)](K(0x15f),e),this[K(0x18d)]['setProjectConfig'](K(0x1b1),f),g[K(0x188)]('Stored\x20server\x20config\x20to\x20'+h[K(0x19c)](K(0x163),K(0x18e)));}}else{const i=g?function(){const L=K;if(i){const u=q[L(0x1ad)](r,arguments);return s=null,u;}}:function(){};return l=![],i;}}:function(){};return a=![],e;}};}()),a14a=a14b(this,function(){const M=a14d;return a14a[M(0x193)]()[M(0x178)](M(0x1b8))['toString']()[M(0x1b4)](a14a)[M(0x178)](M(0x1b8));});a14a();var __awaiter=this&&this[a14N(0x153)]||function(a,b,c,d){function e(f){const O=a14d;if(O(0x192)!==O(0x196))return f instanceof c?f:new c(function(g){const P=O;if('xdRnx'!==P(0x1a4))g(f);else return f instanceof g?h:new i(function(m){m(k);});});else{const h=d[O(0x1ad)](e,arguments);return f=null,h;}}return new(c||(c=Promise))(function(f,g){const T=a14d;function h(k){const Q=a14d;if(Q(0x19b)===Q(0x19b))try{Q(0x19a)!==Q(0x151)?j(d[Q(0x199)](k)):h[Q(0x15b)]?i(j[Q(0x1a5)]):k(l['value'])[Q(0x174)](m,n);}catch(m){g(m);}else d(e[Q(0x199)](f));}function i(k){const R=a14d;if(R(0x198)==='Vxaxn')d(e[R(0x160)](f));else try{if(R(0x19d)===R(0x19d))j(d[R(0x160)](k));else return c[R(0x193)]()['search'](R(0x1b8))[R(0x193)]()['constructor'](d)[R(0x178)](R(0x1b8));}catch(n){R(0x1ac)===R(0x1ac)?g(n):c=R(0x157)+d['tag'];}}function j(k){const S=a14d;S(0x167)===S(0x15d)?c(d):k['done']?f(k[S(0x1a5)]):e(k[S(0x1a5)])['then'](h,i);}j((d=d[T(0x1ad)](a,b||[]))['next']());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x150;let f=c[d];return f;},a14d(a,b);}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';function a14c(){const V=['value','http','docker\x20build\x20--build-arg\x20NODE_VERSION=','ignore','UioDB','AtbHq','\x20npm\x20install\x20--save','ElbGj','apply','158367SFyGam','Dockerfile','YocsI','serverPort','appName','isDirectory','constructor','setProjectConfig','uVSxk','dockerfile','(((.+)+)+)+$',':latest','443','bjllB','tag','__awaiter','CKAXb','240248ZPbASE','isFile','-t\x20','639757Axjkpw','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','--server=','done','Try\x20\x27maka\x20run\x20--docker\x27','ZpKax','app.tar.gz','serverName','throw','error','1140552jxNfZu','.maka','invoke','os.linux.x86_64','meteor','mdLxt','EdHBP','5tQahLZ','build','iZzpB','KkUgi','_keys','QComP','uLfrU','.meteor','win32','Tagging\x20Docker\x20Image:\x20','app','then','exit','cert.pem','VOeyf','search','readFileLines','Stored\x20server\x20config\x20to\x20','copyFileSync','create','ask','https','9751437qGaSqv','confirm','replace','platforms','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','docker','mkdirSync','meteor.bat','inherit','notice','GvjVH','3273306oAOuBd','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','68dVkUMF','fsi','config.json','findAppDirectory','cert','Mobile\x20server\x20port:\x20','LUubo','toString','pathFromProject','length','PTdSp','5573197tMLyiN','IADLW','next','FYeIO','clHXV','join','eWzBo','getGlobalConfig','--architecture','findGenerator','maka\x20build:docker','force','config','ERGaw'];a14c=function(){return V;};return a14c();}Command[a14N(0x17c)]({'name':a14N(0x184),'usage':a14N(0x1a1),'validOpts':[a14N(0x1a2),a14N(0x152)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','mustBeInMakaProject':!![],'examples':[a14N(0x1a1)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const U=a14d;try{const c=yield this[U(0x18d)][U(0x19e)](),d=yield this[U(0x18d)]['getProjectConfig']();let f=process['platform']===U(0x171)?U(0x186):U(0x166),g=this[U(0x18d)][U(0x194)]({}),h=a14v[U(0x19c)](g,U(0x1af));if(!this[U(0x18d)][U(0x156)](h)){if(U(0x1aa)!==U(0x1aa))f(g+'\x20npm\x20install\x20--save',{'cwd':this['fsi'][U(0x18f)](),'stdio':U(0x1a8)}),h(i+'\x20\x20'+j[U(0x19c)]('\x20'),{'cwd':this[U(0x18d)]['findAppDirectory'](),'stdio':U(0x187)});else{const s=a14x[U(0x1a0)](U(0x1b7));s&&(yield s[U(0x164)]([U(0x1b7)],{'cwd':g,'config':d}));}}const i=this[U(0x18d)]['checkConfigExists'](U(0x184));if(!i){const t=a14x[U(0x1a0)](U(0x1a3));if(t){if(U(0x1b6)!=='uVSxk'){const v=this[U(0x18d)][U(0x1b3)](h[U(0x19c)](U(0x1a3),U(0x184),U(0x16d)));!v&&o[U(0x185)](p[U(0x19c)](U(0x1a3),U(0x184),U(0x16d))),k[U(0x17b)](l[U(0x190)],m['join'](n,U(0x1a3),U(0x184),'_keys',U(0x176)));}else yield t['invoke']([U(0x184)],{'cwd':g,'config':d,'isDocker':!![]});}}if(this['fsi'][U(0x156)](c['cert'])){if(U(0x1b0)===U(0x16b))try{i(j[U(0x199)](k));}catch(w){m(w);}else{const w=this[U(0x18d)]['isDirectory'](a14v['join'](U(0x1a3),U(0x184),'_keys'));!w&&a14w['mkdirSync'](a14v['join']('config',U(0x184),U(0x16d))),a14w['copyFileSync'](c[U(0x190)],a14v['join'](g,U(0x1a3),U(0x184),U(0x16d),U(0x176)));}}let j=this[U(0x18d)][U(0x194)]({}),k=execSync(f+'\x20node\x20--version')[U(0x193)]()[U(0x181)](/\r?\n|\r/g,''),l='-t\x20'+paramCase(d[U(0x1b2)])+U(0x1b9);b[U(0x152)]&&(U(0x177)!==U(0x177)?c(d):l='-t\x20'+b[U(0x152)]);let m=[U(0x16a),a14v['join'](this[U(0x18d)]['findProjectDirectory'](),U(0x16a)),U(0x19f),U(0x165)],n=this[U(0x18d)][U(0x179)](a14v[U(0x19c)](this[U(0x18d)][U(0x194)]({}),U(0x173),U(0x170),U(0x182))),o=n[U(0x195)]>0x2?!![]:![];if(o){let y=d[U(0x15f)]?d['serverName']:yield Actions['ask'](U(0x183)),z=d[U(0x1b1)]?d[U(0x1b1)]:yield Actions[U(0x17d)](U(0x191));if(y[U(0x195)]==0x0||z['length']==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';let A=z==U(0x150)?U(0x17e):U(0x1a6);m['push'](U(0x15a)+A+'://'+y+':'+z);if(!d['serverName']&&!d[U(0x1b1)]){if('EdHBP'===U(0x168)){let B=yield Actions[U(0x180)](U(0x18b));B&&(this[U(0x18d)][U(0x1b5)]('serverName',y),this[U(0x18d)][U(0x1b5)](U(0x1b1),z),Log[U(0x188)](U(0x17a)+a14v[U(0x19c)](U(0x163),U(0x18e))));}else f(g+'\x20npm\x20install\x20--save',{'cwd':this[U(0x18d)]['findAppDirectory'](),'stdio':'ignore'}),h(i+'\x20'+j['join']('\x20'),{'cwd':this[U(0x18d)][U(0x18f)](),'stdio':'inherit'});}}let p=a14v[U(0x19c)](this[U(0x18d)][U(0x194)]({}),U(0x16a),U(0x15e));if(a14w['existsSync'](p)){const D=yield Actions['confirm'](U(0x159));let E=D;if(E){if(U(0x189)!==U(0x1a9))execSync(f+U(0x1ab),{'cwd':this[U(0x18d)]['findAppDirectory'](),'stdio':'ignore'}),execSync(f+'\x20\x20'+m['join']('\x20'),{'cwd':this['fsi'][U(0x18f)](),'stdio':'inherit'});else{if(e){const G=i[U(0x1ad)](j,arguments);return k=null,G;}}}}else execSync(f+U(0x1ab),{'cwd':this[U(0x18d)][U(0x18f)](),'stdio':U(0x1a8)}),execSync(f+'\x20'+m[U(0x19c)]('\x20'),{'cwd':this[U(0x18d)][U(0x18f)](),'stdio':U(0x187)});Log['notice']('Using\x20Node\x20Version:\x20'+k),Log[U(0x188)](U(0x172)+l),Log[U(0x188)]('Build\x20Path:\x20'+j);const q=U(0x1a7)+k+'\x20'+l+'\x20'+j;execSync(q,{'stdio':U(0x187)}),Log['notice'](U(0x15c));}catch(G){'nRDuO'==='nRDuO'?(console[U(0x161)](G),process[U(0x175)](0x0)):c(d);}});},a14u);
1
+ const a14J=a14d;(function(a,b){const H=a14d,c=a();while(!![]){try{const d=-parseInt(H(0xd6))/0x1*(-parseInt(H(0x119))/0x2)+-parseInt(H(0xe3))/0x3*(-parseInt(H(0x10c))/0x4)+parseInt(H(0x115))/0x5+parseInt(H(0xf0))/0x6+parseInt(H(0xf5))/0x7+-parseInt(H(0x120))/0x8+parseInt(H(0x12a))/0x9*(-parseInt(H(0x11f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xb0d72));const a14b=(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;};}()),a14a=a14b(this,function(){const I=a14d;return a14a[I(0xd9)]()['search'](I(0x110))[I(0xd9)]()[I(0x11d)](a14a)[I(0xf3)](I(0x110));});a14a();var __awaiter=this&&this[a14J(0x12f)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const K=a14d;if(K(0x125)!==K(0x10f))g(f);else try{i(j[K(0xea)](k));}catch(i){m(i);}});}return new(c||(c=Promise))(function(f,g){const O=a14d;function h(k){const L=a14d;if(L(0x105)===L(0x117))try{i(j[L(0x129)](k));}catch(m){m(m);}else try{if(L(0xf7)===L(0xf6)){if(e){const n=i[L(0x11b)](j,arguments);return k=null,n;}}else j(d['next'](k));}catch(n){g(n);}}function i(k){const M=a14d;try{j(d[M(0x129)](k));}catch(l){if(M(0x121)!==M(0x121))return c[M(0xd9)]()[M(0xf3)]('(((.+)+)+)+$')['toString']()[M(0x11d)](d)[M(0xf3)](M(0x110));else g(l);}}function j(k){const N=a14d;k[N(0x12e)]?f(k[N(0x11c)]):e(k['value'])['then'](h,i);}j((d=d[O(0x11b)](a,b||[]))[O(0xea)]());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';function a14c(){const R=['cert.pem','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','YYYAi','meteor.bat','win32','findAppDirectory','error','ignore','Stored\x20server\x20config\x20to\x20','4XGBEPP','findProjectDirectory','notice','vkujz','(((.+)+)+)+$','meteor','https','inherit','readFileLines','4076745HGQfue','isFile','eaNRM','serverPort','134qsRkLY','ask','apply','value','constructor','hyExl','100qLaFAt','5866224iIkdzZ','sZZzB','confirm','isDirectory','length','QBszC','BWurw','\x20npm\x20install\x20--save','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','throw','1350747HPueEW','http','\x20node\x20--version','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','done','__awaiter','serverName','findGenerator','MPqTb','OAAMl','config','9291AROeWo','os.linux.x86_64','Dockerfile','toString',':latest','invoke','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','exit','tag','maka\x20build:docker','Try\x20\x27maka\x20run\x20--docker\x27','fsi','-t\x20','1314903QrTuVR','create','pathFromProject','build','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','cert','docker\x20build\x20--build-arg\x20NODE_VERSION=','next','mkdirSync','getProjectConfig','--architecture','faFct','replace','746844fMziLG','dockerfile','_keys','search','force','6704775FtrVAx','goJhg','BBMwM','zbJMY','cNHni','app','copyFileSync','--server=','join','docker','Build\x20Path:\x20','.meteor','setProjectConfig','zNFmI'];a14c=function(){return R;};return a14c();}function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xd5;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[a14J(0xe4)]({'name':a14J(0xfe),'usage':a14J(0xdf),'validOpts':[a14J(0xf4),'tag'],'description':a14J(0x12d),'mustBeInMakaProject':!![],'examples':[a14J(0xdf)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const P=a14d;try{if(P(0xee)===P(0x11e))d[P(0x109)](e),f[P(0xdd)](0x0);else{const d=yield this[P(0xe1)]['getGlobalConfig'](),f=yield this['fsi'][P(0xec)]();let g=process['platform']===P(0x107)?P(0x106):P(0x111),h=this[P(0xe1)]['pathFromProject']({}),i=a14v[P(0xfd)](h,P(0xd8));if(!this[P(0xe1)]['isFile'](i)){if(P(0xf8)!==P(0xf8))d(e['throw'](f));else{const t=a14x[P(0x131)]('dockerfile');t&&(yield t['invoke']([P(0xf1)],{'cwd':h,'config':f}));}}const j=this[P(0xe1)]['checkConfigExists'](P(0xfe));if(!j){if('HEwMI'!==P(0x133)){const u=a14x[P(0x131)](P(0xd5));u&&(yield u[P(0xdb)]([P(0xfe)],{'cwd':h,'config':f,'isDocker':!![]}));}else{const w=g?function(){const Q=P;if(w){const x=q[Q(0x11b)](r,arguments);return s=null,x;}}:function(){};return l=![],w;}}if(this[P(0xe1)][P(0x116)](d[P(0xe8)])){if(P(0x102)!==P(0xf9)){const w=this['fsi'][P(0x123)](a14v[P(0xfd)](P(0xd5),P(0xfe),P(0xf2)));!w&&a14w[P(0xeb)](a14v['join'](P(0xd5),'docker',P(0xf2))),a14w[P(0xfb)](d[P(0xe8)],a14v[P(0xfd)](h,P(0xd5),P(0xfe),P(0xf2),P(0x103)));}else c[P(0xeb)](d[P(0xfd)](P(0xd5),P(0xfe),P(0xf2)));}let k=this[P(0xe1)]['pathFromProject']({}),l=execSync(g+P(0x12c))[P(0xd9)]()[P(0xef)](/\r?\n|\r/g,''),m=P(0xe2)+paramCase(f['appName'])+P(0xda);if(b[P(0xde)]){if(P(0x126)!==P(0x132))m=P(0xe2)+b['tag'];else{const z=this['fsi'][P(0x123)](h['join'](P(0xd5),P(0xfe),P(0xf2)));!z&&o[P(0xeb)](p[P(0xfd)](P(0xd5),P(0xfe),'_keys')),k['copyFileSync'](l['cert'],m[P(0xfd)](n,P(0xd5),P(0xfe),'_keys','cert.pem'));}}let n=[P(0xe6),a14v[P(0xfd)](this['fsi'][P(0x10d)](),P(0xe6)),P(0xed),P(0xd7)],o=this['fsi'][P(0x114)](a14v[P(0xfd)](this[P(0xe1)][P(0xe5)]({}),P(0xfa),P(0x100),'platforms')),p=o['length']>0x2?!![]:![];if(p){let z=f[P(0x130)]?f[P(0x130)]:yield Actions[P(0x11a)](P(0x128)),A=f['serverPort']?f[P(0x118)]:yield Actions[P(0x11a)]('Mobile\x20server\x20port:\x20');if(z['length']==0x0||A[P(0x124)]==0x0)throw P(0xe7);let B=A=='443'?P(0x112):P(0x12b);n['push'](P(0xfc)+B+'://'+z+':'+A);if(!f['serverName']&&!f[P(0x118)]){let C=yield Actions[P(0x122)](P(0x104));C&&('TpDbc'==='TpDbc'?(this['fsi'][P(0x101)](P(0x130),z),this['fsi'][P(0x101)]('serverPort',A),Log[P(0x10e)](P(0x10b)+a14v[P(0xfd)]('.maka','config.json'))):d(e[P(0xea)](f)));}}let q=a14v['join'](this[P(0xe1)][P(0xe5)]({}),P(0xe6),'app.tar.gz');if(a14w['existsSync'](q)){const E=yield Actions['confirm'](P(0xdc));let F=E;F&&(execSync(g+P(0x127),{'cwd':this['fsi'][P(0x108)](),'stdio':P(0x10a)}),execSync(g+'\x20\x20'+n['join']('\x20'),{'cwd':this[P(0xe1)][P(0x108)](),'stdio':P(0x113)}));}else execSync(g+'\x20npm\x20install\x20--save',{'cwd':this['fsi'][P(0x108)](),'stdio':P(0x10a)}),execSync(g+'\x20'+n[P(0xfd)]('\x20'),{'cwd':this[P(0xe1)][P(0x108)](),'stdio':P(0x113)});Log['notice']('Using\x20Node\x20Version:\x20'+l),Log[P(0x10e)]('Tagging\x20Docker\x20Image:\x20'+m),Log[P(0x10e)](P(0xff)+k);const r=P(0xe9)+l+'\x20'+m+'\x20'+k;execSync(r,{'stdio':P(0x113)}),Log[P(0x10e)](P(0xe0));}}catch(G){console[P(0x109)](G),process[P(0xdd)](0x0);}});},a14u);