@maka/maka-cli 4.5.42 → 4.5.44

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 (134) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/jsdoc.js +1 -1
  73. package/bundle/obf/src/commands/lint.js +1 -1
  74. package/bundle/obf/src/commands/login.js +1 -1
  75. package/bundle/obf/src/commands/logout.js +1 -1
  76. package/bundle/obf/src/commands/logs.js +1 -1
  77. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  78. package/bundle/obf/src/commands/murder.js +1 -1
  79. package/bundle/obf/src/commands/proxy.js +1 -1
  80. package/bundle/obf/src/commands/reconfig.js +1 -1
  81. package/bundle/obf/src/commands/run/_index.js +1 -1
  82. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  83. package/bundle/obf/src/commands/run/run.command.js +1 -1
  84. package/bundle/obf/src/commands/set/_index.js +1 -1
  85. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/set.command.js +1 -1
  88. package/bundle/obf/src/commands/ssh.js +1 -1
  89. package/bundle/obf/src/commands/ssl.js +1 -1
  90. package/bundle/obf/src/commands/test.js +1 -1
  91. package/bundle/obf/src/commands/version.js +1 -1
  92. package/bundle/obf/src/error.js +1 -1
  93. package/bundle/obf/src/exec.js +1 -1
  94. package/bundle/obf/src/generator.js +1 -1
  95. package/bundle/obf/src/generators/_index.js +1 -1
  96. package/bundle/obf/src/generators/api.js +1 -1
  97. package/bundle/obf/src/generators/collection.js +1 -1
  98. package/bundle/obf/src/generators/component.js +1 -1
  99. package/bundle/obf/src/generators/config.js +1 -1
  100. package/bundle/obf/src/generators/dbc.js +1 -1
  101. package/bundle/obf/src/generators/dockerfile.js +1 -1
  102. package/bundle/obf/src/generators/hook.js +1 -1
  103. package/bundle/obf/src/generators/kit.js +1 -1
  104. package/bundle/obf/src/generators/layout.js +1 -1
  105. package/bundle/obf/src/generators/maka.gen.js +1 -1
  106. package/bundle/obf/src/generators/methods.js +1 -1
  107. package/bundle/obf/src/generators/package.js +1 -1
  108. package/bundle/obf/src/generators/page.js +1 -1
  109. package/bundle/obf/src/generators/publish.js +1 -1
  110. package/bundle/obf/src/generators/route.js +1 -1
  111. package/bundle/obf/src/generators/service.js +1 -1
  112. package/bundle/obf/src/generators/services/_index.js +1 -1
  113. package/bundle/obf/src/generators/services/openssl.js +1 -1
  114. package/bundle/obf/src/generators/services/translation.js +1 -1
  115. package/bundle/obf/src/maka.js +1 -1
  116. package/bundle/obf/src/tool.js +1 -1
  117. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  118. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  120. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  122. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  124. package/bundle/obf/src/tools/https/https.class.js +1 -1
  125. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  126. package/bundle/obf/src/tools/log/log.class.js +1 -1
  127. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/options/options.class.js +1 -1
  129. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  130. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  131. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  132. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  134. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
3
  "//": "NOTE: don't forget to update version.ts and fsi.class.ts",
4
- "version": "4.5.42",
4
+ "version": "4.5.44",
5
5
  "type": "module",
6
6
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
7
7
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0x198))/0x1*(parseInt(p(0x19f))/0x2)+parseInt(p(0x17b))/0x3+-parseInt(p(0x174))/0x4*(parseInt(p(0x180))/0x5)+-parseInt(p(0x17f))/0x6+-parseInt(p(0x162))/0x7+-parseInt(p(0x1a3))/0x8+parseInt(p(0x17a))/0x9*(parseInt(p(0x178))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xa4531));function a0c(){const E=['License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Command\x20requires\x20a\x20handler\x20function','bright','create','Command.create\x20requires\x20a\x20handler\x20function!','forEach','runSubCommand','validateMeteorInstall','apply','match','Command\x20requires\x20a\x20name','proCommands','Command.create\x20requires\x20some\x20options!','validateMakaSubscription','addCommand','addCommand\x20requires\x20a\x20Command\x20instance','domainLicense','join','minOptsLength','17BSjesC','proFlags','parent','generate','assign','maxArgLength','Too\x20many\x20options','131902wlSMxY','Too\x20few\x20options','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','length','8570920VYsRDP','Too\x20few\x20arguments','Please\x20run\x20\x22maka\x20install\x20meteor\x22','name','singleLicense','function','help','mustHaveMeteorInstalled','Description','shortDesc','minArgLength','error','aliases','number','maxOptsLength','run','bind','sort','roles','_commands','Name','filter','findCommand','invoke','splice','8604736gSzNcA','disableAuthCheck','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','notice','murder','usage','Sub-Commands:','includes','To\x20use\x20this\x20command,\x20\x22','tableList','getPro','Alias','keys','fsi','validateMakaProject','push','mustBeInMakaProject','toString','2450128uBKelW','findSubCommand','search','exit','16820XBwpos','Command\x20not\x20found','15570PWPPtn','3229071ZTMxau','split','Too\x20many\x20arguments','options','5451804inmzZd','10KbHdbq','play','_handler','find'];a0c=function(){return E;};return a0c();}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x173)]()[r(0x176)]('(((.+)+)+)+$')[r(0x173)]()['constructor'](a0a)[r(0x176)]('(((.+)+)+)+$');});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x160;let f=c[d];return f;},a0d(a,b);}let _prevCmd='';export class Command extends Tool{[a0s(0x17e)];[a0s(0x1b6)];constructor(a,b){const t=a0s;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[t(0x1a6)])throw new Error(t(0x18f));if(typeof b!==t(0x1a8))throw new Error(t(0x186));this['options']=Object[t(0x19c)]({},a),this['name']=this[t(0x17e)][t(0x1a6)],this[t(0x1b6)]=[],this['_handler']=b[t(0x1b3)](this);}static[a0s(0x188)](a,b,c){const u=a0s;if(!a)throw new Error(u(0x191));if(typeof b!==u(0x1a8))throw new Error(u(0x189));const d=new Command(a,b);return c=c||a0f,Object[u(0x19c)](d,{'parent':c?.[u(0x17e)]?.[u(0x1a6)]}),c[u(0x193)](d),d;}[a0s(0x193)](a){const v=a0s;if(!(a instanceof Command))throw new Error(v(0x194));this[v(0x1b6)][v(0x171)](a);}async[a0s(0x192)](a,b){const w=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[w(0x1a6)]||a[0x0],e=c?.[w(0x19a)]||'',f=c?.['options'];if(f[w(0x163)])return;const g=a[0x0],h=Object[w(0x16e)](b),i=await this[w(0x16f)][w(0x16c)]();!i&&(Log[w(0x1ae)](w(0x184)),process[w(0x177)](0x1));const j=i?.[w(0x190)][w(0x169)](d)||i?.[w(0x190)][w(0x169)](e),k=i?.[w(0x1b5)][w(0x169)](w(0x1a7))||i?.[w(0x1b5)][w(0x169)](w(0x195)),l=!k;if(j&&l)throw w(0x16a)+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[w(0x1a2)]>0x0){const m=i?.[w(0x199)][w(0x1b8)](n=>h[w(0x169)](n));if(m&&m[w(0x1a2)]>0x0&&l)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+m?.[w(0x196)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(g==='deploy'){const n=await this[w(0x16f)][w(0x16c)](),o=n?.[w(0x190)][w(0x169)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0x16a)+a[0x0]+w(0x1a1);}}}async['run'](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this[x(0x192)](a,b);}catch(c){Log[x(0x1ae)](c),process[x(0x177)](0x0);}await this[x(0x160)](a,b);}catch(d){process[x(0x177)](0x1);}}async[a0s(0x160)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x17e)];try{if(this[y(0x17e)][y(0x1a6)]!==y(0x19b)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0x1a2)]===0x0)&&this['_commands']['length']>=0x0;if(f&&b[y(0x1a9)]){if(this[y(0x1b6)][y(0x1a2)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b['help']){if(this[y(0x17e)][y(0x172)]){const g=this[y(0x170)]();if(!g)throw new MustBeInProjectError();}if(this[y(0x17e)][y(0x1aa)]){const h=this[y(0x18c)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0x17e)][y(0x1ad)]===y(0x1b0)){if(a[y(0x1a2)]<this[y(0x17e)]['minArgLength']){Log[y(0x1ae)](y(0x1a4));throw new UsageError();}}if(typeof this[y(0x17e)]['maxArgLength']==='number'){if(a[y(0x1a2)]>=this[y(0x17e)][y(0x19d)]){Log[y(0x1ae)](y(0x17d));throw new UsageError();}}if(typeof this[y(0x17e)]['minOptsLength']==='number'){if(Object[y(0x16e)](b)[y(0x1a2)]<this[y(0x17e)][y(0x197)]){Log['error'](y(0x1a0));throw new UsageError();}}if(typeof this['options'][y(0x1b1)]===y(0x1b0)){if(Object[y(0x16e)](b)[y(0x1a2)]>=this[y(0x17e)][y(0x1b1)]){Log[y(0x1ae)](y(0x19e));throw new UsageError();}}}}await this['validateParams'](a,b,this[y(0x17e)]),_prevCmd=a[0x0];}await this[y(0x182)]['call'](this,a,b);}catch(i){Log[y(0x167)](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log[y(0x165)](y(0x168)),this['tableList'](this['_commands']),Log['header'](y(0x164));else{if(i instanceof MustBeInProjectError)Log[y(0x1ae)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(i instanceof NoMeteorFoundError)Log[y(0x1ae)](y(0x185)),Log[y(0x165)](y(0x1a5));else{if(i instanceof NoMeteorAppFoundError)Log[y(0x1ae)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw i;}}}process[y(0x177)](0x1);}}[a0s(0x16b)](a){const z=a0s,b=new a0e({});b[z(0x171)]([z(0x1b7),z(0x16d),z(0x1ab)]),a[z(0x1b4)]()[z(0x18a)](c=>{const A=z;c[A(0x1a6)]!==A(0x166)&&c[A(0x1a6)]!==A(0x181)&&b[A(0x171)]([c[A(0x1a6)],c[A(0x1af)](),c[A(0x1ac)]()]);}),Log[z(0x187)](b['toString']());}[a0s(0x1b9)](a){const B=a0s;return this[B(0x1b6)][B(0x183)](b=>b[B(0x18e)](a));}[a0s(0x175)](a){const C=a0s,b=a?.['split'](':');if(b)return a=b[0x0],this[C(0x1b9)](a);else return;}async[a0s(0x18b)](a,b,c){const D=a0s;try{const d=a[D(0x17c)](':');a=d[0x0];const f=d[0x1];f&&b[D(0x161)](0x0,0x0,f);const g=this['findCommand'](a);if(g)await g[D(0x1b2)](b,c);else throw D(0x179);}catch(h){throw Log[D(0x1ae)](h);}}}
1
+ function a0c(){const D=['run','search','To\x20use\x20these\x20pro\x20flags,\x20\x22','exit','_handler','assign','addCommand','name','play','bind','minOptsLength','push','includes','fsi','(((.+)+)+)+$','4028526UCvAgZ','findCommand','Description','error','log','parent','There\x20is\x20no\x20Meteor\x20application\x20here','minArgLength','generate','_commands','Command.create\x20requires\x20a\x20handler\x20function!','3cVlFkk','addCommand\x20requires\x20a\x20Command\x20instance','length','usage','proCommands','aliases','tableList','join','filter','validateParams','toString','1086135OOtAkm','function','header','mustHaveMeteorInstalled','Sub-Commands:','validateMakaProject','create','65842BJZSFW','To\x20use\x20this\x20command,\x20\x22','invoke','4748202WHEXqW','help','disableAuthCheck','shortDesc','maxOptsLength','deploy','runSubCommand','keys','Command\x20requires\x20a\x20handler\x20function','domainLicense','Alias','Name','1190256qAAeMn','notice','Command\x20not\x20found','10RUXhiB','findSubCommand','options','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','1280eSVuwG','constructor','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','validateMakaSubscription','murder','Too\x20few\x20arguments','Command.create\x20requires\x20some\x20options!','validateMeteorInstall','proFlags','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','roles','Command\x20requires\x20a\x20name','Too\x20many\x20arguments','getPro','number','maxArgLength','Too\x20many\x20options','111240nwGnTU','1931888niqTuH','find','split'];a0c=function(){return D;};return a0c();}const a0r=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0x12e))/0x1+-parseInt(p(0xed))/0x2*(parseInt(p(0x123))/0x3)+-parseInt(p(0x106))/0x4*(parseInt(p(0xf0))/0x5)+-parseInt(p(0x118))/0x6+parseInt(p(0x135))/0x7*(parseInt(p(0xf4))/0x8)+parseInt(p(0x138))/0x9+-parseInt(p(0x105))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xd5a30));const a0b=(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;};}()),a0a=a0b(this,function(){const q=a0d;return a0a['toString']()[q(0x10a)]('(((.+)+)+)+$')[q(0x12d)]()[q(0xf5)](a0a)[q(0x10a)](q(0x117));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xe9;let f=c[d];return f;},a0d(a,b);}export class Command extends Tool{[a0r(0xf2)];[a0r(0x121)];constructor(a,b){const s=a0r;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name'])throw new Error(s(0xff));if(typeof b!==s(0x12f))throw new Error(s(0xe9));this[s(0xf2)]=Object[s(0x10e)]({},a),this[s(0x110)]=this[s(0xf2)][s(0x110)],this[s(0x121)]=[],this['_handler']=b[s(0x112)](this);}static[a0r(0x134)](a,b,c){const t=a0r;if(!a)throw new Error(t(0xfa));if(typeof b!==t(0x12f))throw new Error(t(0x122));const d=new Command(a,b);return c=c||a0f,Object[t(0x10e)](d,{'parent':c?.[t(0xf2)]?.[t(0x110)]}),c[t(0x10f)](d),d;}[a0r(0x10f)](a){const u=a0r;if(!(a instanceof Command))throw new Error(u(0x124));this[u(0x121)][u(0x114)](a);}async[a0r(0xf7)](a,b){const v=a0r,c=this[v(0x119)](a[0x0]);if(c){const d=c?.['name']||a[0x0],e=c?.[v(0x11d)]||'',f=c?.[v(0xf2)];if(f[v(0x13a)])return;const g=a[0x0],h=Object[v(0x13f)](b),i=await this[v(0x116)][v(0x101)]();!i&&(Log[v(0x11b)](v(0xfd)),process[v(0x10c)](0x1));const j=i?.['proCommands']['includes'](d)||i?.['proCommands'][v(0x115)](e),k=i?.[v(0xfe)][v(0x115)]('singleLicense')||i?.[v(0xfe)][v(0x115)](v(0xea)),l=!k;if(j&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+v(0xf3);if(h['length']>0x0){const m=i?.[v(0xfc)][v(0x12b)](n=>h[v(0x115)](n));if(m&&m[v(0x125)]>0x0&&l)throw v(0x10b)+m?.[v(0x12a)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(g===v(0x13d)){const n=await this[v(0x116)]['getPro'](),o=n?.[v(0x127)][v(0x115)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw v(0x136)+a[0x0]+v(0xf3);}}}async[a0r(0x109)](a,b){const w=a0r;try{a=a||[],b=b||{},console[w(0x11c)](b);try{await this[w(0xf7)](a,b);}catch(c){Log[w(0x11b)](c),process[w(0x10c)](0x0);}await this[w(0x137)](a,b);}catch(d){process[w(0x10c)](0x1);}}async[a0r(0x137)](a,b){const x=a0r,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[x(0xf2)];let f=b;try{if(this[x(0xf2)][x(0x110)]!==x(0x120)){if(!isRoot){const g=(a[0x0]===_prevCmd||a[x(0x125)]===0x0)&&this['_commands'][x(0x125)]>=0x0;if(g&&b[x(0x139)]){if(this[x(0x121)][x(0x125)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[x(0x139)]){if(this[x(0xf2)]['mustBeInMakaProject']){const h=this[x(0x133)]();if(!h)throw new MustBeInProjectError();}if(this[x(0xf2)][x(0x131)]){const i=this[x(0xfb)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[x(0xf2)][x(0x11f)]==='number'){if(a[x(0x125)]<this[x(0xf2)][x(0x11f)]){Log[x(0x11b)](x(0xf9));throw new UsageError();}}if(typeof this[x(0xf2)][x(0x103)]===x(0x102)){if(a[x(0x125)]>=this[x(0xf2)][x(0x103)]){Log[x(0x11b)](x(0x100));throw new UsageError();}}if(typeof this[x(0xf2)][x(0x113)]===x(0x102)){if(Object['keys'](b)['length']<this[x(0xf2)][x(0x113)]){Log[x(0x11b)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this['options']['maxOptsLength']===x(0x102)){if(Object['keys'](b)[x(0x125)]>=this[x(0xf2)][x(0x13c)]){Log[x(0x11b)](x(0x104));throw new UsageError();}}}}f=await this[x(0x12c)](a,b,this['options']),_prevCmd=a[0x0];}await this[x(0x10d)]['call'](this,a,f);}catch(j){Log[x(0x126)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log['notice'](x(0x132)),this[x(0x129)](this['_commands']),Log[x(0x130)](x(0xf6));else{if(j instanceof MustBeInProjectError)Log['error']('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(j instanceof NoMeteorFoundError)Log[x(0x11b)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[x(0xee)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(j instanceof NoMeteorAppFoundError)Log['error'](x(0x11e));else throw j;}}}process['exit'](0x1);}}['tableList'](a){const y=a0r,b=new a0e({});b['push']([y(0xec),y(0xeb),y(0x11a)]),a['sort']()['forEach'](c=>{const z=y;c[z(0x110)]!==z(0xf8)&&c[z(0x110)]!==z(0x111)&&b[z(0x114)]([c[z(0x110)],c[z(0x128)](),c[z(0x13b)]()]);}),Log['bright'](b[y(0x12d)]());}[a0r(0x119)](a){const A=a0r;return this['_commands'][A(0x107)](b=>b['match'](a));}[a0r(0xf1)](a){const B=a0r,b=a?.[B(0x108)](':');if(b)return a=b[0x0],this[B(0x119)](a);else return;}async[a0r(0x13e)](a,b,c){const C=a0r;try{const d=a[C(0x108)](':');a=d[0x0];const f=d[0x1];f&&b['splice'](0x0,0x0,f);const g=this[C(0x119)](a);if(g)await g[C(0x109)](b,c);else throw C(0xef);}catch(h){throw Log[C(0x11b)](h);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x70))/0x1+parseInt(f(0x7b))/0x2*(parseInt(f(0x7d))/0x3)+-parseInt(f(0x75))/0x4+parseInt(f(0x72))/0x5+parseInt(f(0x79))/0x6*(parseInt(f(0x7a))/0x7)+parseInt(f(0x77))/0x8+parseInt(f(0x7c))/0x9*(-parseInt(f(0x74))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x8cb3f));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x7e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x73)]()[h(0x78)](h(0x76))['toString']()[h(0x71)](a1a)[h(0x78)](h(0x76));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x70;var f=c[d];return f;},a1d(a,b);}import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';function a1c(){var i=['search','2188260TblzIC','21dTbfeM','150SCxSQC','9NGxgMN','19137hAIFSx','apply','588211jEJuel','constructor','2380410iUMSpA','toString','22577080jflcCd','87108UkBRvA','(((.+)+)+)+$','1751648brDgjr'];a1c=function(){return i;};return a1c();}import'./proxy.js';import'./lint.js';import'./ai.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x68))/0x1*(parseInt(f(0x6d))/0x2)+-parseInt(f(0x70))/0x3*(-parseInt(f(0x69))/0x4)+parseInt(f(0x6c))/0x5+-parseInt(f(0x6f))/0x6+parseInt(f(0x67))/0x7+-parseInt(f(0x66))/0x8*(-parseInt(f(0x6e))/0x9)+parseInt(f(0x71))/0xa*(-parseInt(f(0x65))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xe9746));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x6a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a['toString']()[h(0x73)]('(((.+)+)+)+$')[h(0x72)]()[h(0x74)](a1a)['search'](h(0x6b));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x65;var f=c[d];return f;},a1d(a,b);}import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';function a1c(){var i=['3UgWzIo','10wnlxMn','toString','search','constructor','17505543fjxfsC','20328plRTZg','12228216ALaeyF','235xuZwvm','5052532WgeMek','apply','(((.+)+)+)+$','3899220ZAaYLB','6174gKQZHc','2322iebJBI','7034130nFvWdI'];a1c=function(){return i;};return a1c();}import'./ai.js';
@@ -1 +1 @@
1
- const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x15c))/0x1+parseInt(h(0x176))/0x2+parseInt(h(0x177))/0x3+parseInt(h(0x17e))/0x4*(-parseInt(h(0x165))/0x5)+parseInt(h(0x170))/0x6+-parseInt(h(0x17d))/0x7*(-parseInt(h(0x160))/0x8)+-parseInt(h(0x17b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x637b3));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x184)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x15e)]()[j(0x171)](j(0x185))[j(0x15e)]()[j(0x168)](a2a)['search'](j(0x185));});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x15a;let f=c[d];return f;},a2d(a,b);}function a2c(){const o=['cacert','4380093UyzJdD','Using\x20OpenAI\x20Key\x20','1247526PplNwQ','124780qVkhHT','stdin','isFile','data','question','exit','apply','(((.+)+)+)+$','cert','getGlobalConfig','create','468411uYcsIW','error','toString','parse','32KUDeLs','choices','text','createInterface','openai','125OZKLFR','trim','openapikey','constructor','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','You:\x20','message','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','toLowerCase','notice','fsi','4187346NmLpIU','search','ChatGPT\x20style\x20AI\x20interface','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','close','GPT:\x20','311962tGJbxN','1727082zICIRj','askGPT','log'];a2c=function(){return o;};return a2c();}const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x163)]({'input':process[k(0x17f)],'output':process['stdout']});c[k(0x182)](k(0x16a),async d=>{const l=k;if(d[l(0x16d)]()===l(0x183)){c[l(0x174)]();return;}try{const e=await HTTPS[l(0x178)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x15f)](e[l(0x181)]);if(f['error'])throw new Error(f[l(0x15d)][l(0x16b)]);console[l(0x179)](l(0x175)+f?.[l(0x161)][0x0]?.[l(0x162)][l(0x166)]());}catch(g){Log[l(0x15d)](g),process[l(0x183)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x15b)]({'name':'ai','description':a2m(0x172),'validOpts':[a2m(0x17a),a2m(0x167)],'shortDesc':a2m(0x172)},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this['fsi'][n(0x180)](b[n(0x17a)])?(c=b['cacert'],Log[n(0x16e)]('Using\x20CA\x20Cert\x20'+c)):Log[n(0x15d)](n(0x173)+c));const d=await this['fsi'][n(0x15a)]();if(d[n(0x186)]){if(this[n(0x16f)][n(0x180)](d['cert']))c=d[n(0x186)];else throw Log[n(0x15d)](n(0x169)+c);}let f='';if(b['openapikey'])f=b[n(0x167)],Log['notice'](n(0x17c)+f);else{if(d[n(0x164)])f=d[n(0x164)];else throw Log[n(0x15d)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console[n(0x179)](n(0x16c)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x15d)](g),process[n(0x183)](0x1);}});
1
+ const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x18d))/0x1*(-parseInt(h(0x172))/0x2)+parseInt(h(0x186))/0x3*(-parseInt(h(0x190))/0x4)+parseInt(h(0x173))/0x5*(-parseInt(h(0x181))/0x6)+-parseInt(h(0x166))/0x7+parseInt(h(0x18a))/0x8*(-parseInt(h(0x176))/0x9)+parseInt(h(0x167))/0xa*(parseInt(h(0x187))/0xb)+parseInt(h(0x182))/0xc*(parseInt(h(0x191))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xea32d));function a2c(){const n=['1339FtXDWG','2405970QzLEoS','536930WqDolJ','toString','trim','(((.+)+)+)+$','ChatGPT\x20style\x20AI\x20interface','openapikey','message','text','You:\x20','toLowerCase','Using\x20CA\x20Cert\x20','288YTNfQp','7115AhTSFf','search','GPT:\x20','2187mPqLdH','constructor','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','openai','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','exit','error','cert','stdout','parse','3018PBXeYx','208644erUCAL','stdin','notice','createInterface','19713ISZlFq','22irCiAZ','choices','log','19224OkSmYm','close','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','6991QDFmwc','fsi','cacert','184Yzxjoo'];a2c=function(){return n;};return a2c();}function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x166;let f=c[d];return f;},a2d(a,b);}const a2b=(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;};}()),a2a=a2b(this,function(){const i=a2d;return a2a[i(0x168)]()[i(0x174)](i(0x16a))[i(0x168)]()[i(0x177)](a2a)[i(0x174)]('(((.+)+)+)+$');});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x185)]({'input':process[j(0x183)],'output':process[j(0x17f)]});c['question'](j(0x16f),async d=>{const k=j;if(d[k(0x170)]()==='exit'){c[k(0x18b)]();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x180)](e['data']);if(f[k(0x17d)])throw new Error(f['error'][k(0x16d)]);console['log'](k(0x175)+f?.[k(0x188)][0x0]?.[k(0x16e)][k(0x169)]());}catch(g){Log[k(0x17d)](g),process[k(0x17c)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command['create']({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a2l(0x18f),a2l(0x16c)],'shortDesc':a2l(0x16b)},async function(a,b){const m=a2l;try{let c='';b[m(0x18f)]&&(this[m(0x18e)]['isFile'](b[m(0x18f)])?(c=b[m(0x18f)],Log[m(0x184)](m(0x171)+c)):Log[m(0x17d)](m(0x17b)+c));const d=await this[m(0x18e)]['getGlobalConfig']();if(d[m(0x17e)]){if(this[m(0x18e)]['isFile'](d[m(0x17e)]))c=d[m(0x17e)];else throw Log[m(0x17d)](m(0x17a)+c);}let f='';if(b['openapikey'])f=b[m(0x16c)],Log[m(0x184)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d[m(0x179)])f=d['openai'];else throw Log[m(0x17d)](m(0x18c));}console[m(0x189)](m(0x178)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x17d)](g),process[m(0x17c)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0xa0))/0x1*(-parseInt(f(0xa1))/0x2)+-parseInt(f(0xa5))/0x3+parseInt(f(0x9a))/0x4*(parseInt(f(0xa6))/0x5)+-parseInt(f(0xa7))/0x6*(parseInt(f(0x9b))/0x7)+-parseInt(f(0xa4))/0x8*(-parseInt(f(0x9d))/0x9)+-parseInt(f(0x9e))/0xa+parseInt(f(0xa3))/0xb*(parseInt(f(0x9f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x79261));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a['toString']()[h(0x99)](h(0x9c))['toString']()[h(0x98)](a3a)['search']('(((.+)+)+)+$');});a3a();import'./aws.command.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x98;var f=c[d];return f;},a3d(a,b);}import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';function a3c(){var i=['4NNWroT','133JCmQRT','(((.+)+)+)+$','194490CCfuPr','1018750QimdEr','16596avokGX','1huZuHW','8682lUzQpZ','apply','8173XuIIwV','104hcotDp','1942230cggQWe','4470535UfGeDU','300870bWBDlV','constructor','search'];a3c=function(){return i;};return a3c();}import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
1
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0xcc))/0x1*(parseInt(f(0xc3))/0x2)+parseInt(f(0xc1))/0x3+-parseInt(f(0xc7))/0x4+parseInt(f(0xca))/0x5+-parseInt(f(0xc0))/0x6*(-parseInt(f(0xbf))/0x7)+parseInt(f(0xcd))/0x8*(-parseInt(f(0xcb))/0x9)+parseInt(f(0xc9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xcde4f));function a3c(){var i=['search','(((.+)+)+)+$','6460368pgLVYM','apply','1419470zVtdWz','2701670UdIsga','9bDoRub','8HVBGLc','9606296RALPiY','1169AyPkVl','42450CVzUWd','4722288vZUPGD','toString','55330xPmGml','constructor'];a3c=function(){return i;};return a3c();}var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0xc2)]()[h(0xc5)](h(0xc6))[h(0xc2)]()[h(0xc4)](a3a)[h(0xc5)]('(((.+)+)+)+$');});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xbf;var f=c[d];return f;},a3d(a,b);}import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
@@ -1 +1 @@
1
- const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0xdd))/0x1+-parseInt(f(0xe3))/0x2+parseInt(f(0xde))/0x3*(-parseInt(f(0xeb))/0x4)+-parseInt(f(0xe1))/0x5*(parseInt(f(0xe8))/0x6)+-parseInt(f(0xdb))/0x7+-parseInt(f(0xe7))/0x8+parseInt(f(0xea))/0x9*(parseInt(f(0xd9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x1a6d1));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a['toString']()['search'](h(0xd8))[h(0xe0)]()[h(0xdf)](a4a)[h(0xe9)](h(0xd8));});a4a();function a4c(){const k=['aws','apply','1660368tSnkId','72RVYgFa','search','268326xmfcRG','27604qPlENl','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','(((.+)+)+)+$','220OqztrO','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','697599RFpVlb','findSubCommand','123522ASyWpn','51LgRTuM','constructor','toString','41670vMoSHs','runSubCommand','293322LtwaiJ','Sub\x20Command\x20not\x20found'];a4c=function(){return k;};return a4c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command['create']({'name':a4i(0xe5),'usage':'maka\x20aws:<sub-command>','minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a4i(0xd7),'description':a4i(0xda)},async function(a,b){const j=a4i,c=a[0x0],d=this[j(0xdc)](c);if(d)this[j(0xe2)](c,a,b);else{Log['error'](j(0xe4));throw new UsageErrorWithSubs();}});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xd7;let f=c[d];return f;},a4d(a,b);}export default AWSCommand;
1
+ const a4h=a4d;function a4c(){const j=['\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','maka\x20aws:<sub-command>','246126kkLfxs','11LCfYWG','412KSqabH','constructor','toString','(((.+)+)+)+$','14RfDWTd','55218pJpROi','search','1346616gcjQCx','1573112BioIDr','runSubCommand','60FwiOao','7825990koNjrc','34555HwoDtL','findSubCommand','Sub\x20Command\x20not\x20found','create','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','error','419617ummBFW'];a4c=function(){return j;};return a4c();}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0xac))/0x1+-parseInt(f(0xbb))/0x2*(parseInt(f(0xb6))/0x3)+parseInt(f(0xb1))/0x4*(parseInt(f(0xbd))/0x5)+parseInt(f(0xaf))/0x6*(-parseInt(f(0xb5))/0x7)+-parseInt(f(0xb9))/0x8+parseInt(f(0xb8))/0x9+parseInt(f(0xbc))/0xa*(parseInt(f(0xb0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x6016a));const a4b=(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;};}()),a4a=a4b(this,function(){const g=a4d;return a4a[g(0xb3)]()[g(0xb7)](g(0xb4))[g(0xb3)]()[g(0xb2)](a4a)[g(0xb7)](g(0xb4));});a4a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xaa;let f=c[d];return f;},a4d(a,b);}import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a4h(0xc0)]({'name':'aws','usage':a4h(0xae),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a4h(0xaa),'description':a4h(0xad)},async function(a,b){const i=a4h,c=a[0x0],d=this[i(0xbe)](c);if(d)this[i(0xba)](c,a,b);else{Log[i(0xab)](i(0xbf));throw new UsageErrorWithSubs();}});export default AWSCommand;
@@ -1 +1 @@
1
- function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x144;let f=c[d];return f;},a5d(a,b);}function a5c(){const n=['domain','apply','2048580bldwwe','create','751912sjSMVU','8688460OHXyWm','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','(((.+)+)+)+$','6VRynvI','Set\x20hosted\x20zone\x20to\x20an\x20instance?','maka\x20aws:chz\x20--domain=example.com','104342MozzBB','chz','591uirggR','constructor','1699915smkTxp','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','linkEC2ToRoute53','245506ntPsSg','error','toString','184pNkDca','create-hosted-zone','publicIp','chooseInstance','Instance\x20not\x20found','6508eCItIn'];a5c=function(){return n;};return a5c();}const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0x152))/0x1+-parseInt(i(0x144))/0x2+-parseInt(i(0x14d))/0x3*(-parseInt(i(0x15a))/0x4)+parseInt(i(0x14f))/0x5*(parseInt(i(0x148))/0x6)+parseInt(i(0x14b))/0x7*(parseInt(i(0x155))/0x8)+parseInt(i(0x15d))/0x9+-parseInt(i(0x145))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x388f0));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x15c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0x154)]()['search'](k(0x147))[k(0x154)]()[k(0x14e)](a5a)['search']('(((.+)+)+)+$');});a5a();import a5e 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[a5l(0x15e)]({'name':a5l(0x156),'aliases':[a5l(0x14c)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a5l(0x15b)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5l(0x150),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com',a5l(0x14a)]},async function(a,b){const m=a5l;try{const c=b[m(0x15b)],d=new AWS();d['route53CreateHostedZone'](c);const f=await Actions['confirm'](m(0x149));if(f){const g=await d[m(0x158)]();if(g?.['id']){if(!g['publicIp'])throw Log[m(0x153)](m(0x146));d[m(0x151)](g['id'],g[m(0x157)],c);}else throw Log[m(0x153)](m(0x159));}}catch(h){console[m(0x153)](h),process['exit'](0x0);}},a5e);
1
+ const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0xbd))/0x1*(parseInt(i(0xb6))/0x2)+-parseInt(i(0xc2))/0x3+parseInt(i(0xbe))/0x4+parseInt(i(0xb8))/0x5+-parseInt(i(0xca))/0x6*(-parseInt(i(0xc8))/0x7)+-parseInt(i(0xc1))/0x8+-parseInt(i(0xc6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xaaf83));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0xc3)]()['search'](k(0xc5))[k(0xc3)]()[k(0xbb)](a5a)[k(0xb7)]('(((.+)+)+)+$');});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xb5;let f=c[d];return f;},a5d(a,b);}function a5c(){const n=['3812184LwiilC','3459327UtXiMw','toString','chz','(((.+)+)+)+$','1203327MckjQs','route53CreateHostedZone','297654ZQUCUQ','chooseInstance','114AimvgL','error','create-hosted-zone','publicIp','apply','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','2446952YNcBGl','search','776220zFewJb','confirm','Instance\x20not\x20found','constructor','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','1doJjZD','1107952nKfKpT','create','linkEC2ToRoute53'];a5c=function(){return n;};return a5c();}Command[a5l(0xbf)]({'name':a5l(0xcc),'aliases':[a5l(0xc4)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':['domain'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5l(0xbc),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com','maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a5l;try{const c=b['domain'],d=new AWS();d[m(0xc7)](c);const f=await Actions[m(0xb9)]('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(f){const g=await d[m(0xc9)]();if(g?.['id']){if(!g[m(0xcd)])throw Log['error'](m(0xb5));d[m(0xc0)](g['id'],g[m(0xcd)],c);}else throw Log[m(0xcb)](m(0xba));}}catch(h){console[m(0xcb)](h),process['exit'](0x0);}},a5e);
@@ -1 +1 @@
1
- function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x16f;let f=c[d];return f;},a6d(a,b);}const a6ah=a6d;function a6c(){const au=['Setting\x20SG\x20ID\x20to:\x20','Setting\x20AMI\x20ID\x20to\x20','Remove\x20the\x20security\x20group\x20','1:1','24lzQXqn','cider','environment','User\x20Data:','deleteSecurityGroup','Desc','**\x20Available\x20Subnets\x20**','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','subnet','\x20AZONE:\x20','fsi','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','sort','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','\x20DESCRIPTION:\x20','maka\x20aws:ci\x20--env\x20prod','forEach','unlinkSync','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','**\x20Available\x20key-pairs\x20**','amazon','date','amiId','readFileSync','createFile','deleteKeyPair','constructor','maka\x20aws:create-instance\x20--env\x20dev','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','number','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','chooseVPC','1721535gNCXAG','ID:\x20','2MBcvbj','ask','22,80,443','Would\x20you\x20like\x20to\x20include\x20user\x20data?','createKeyPair','confirm','cidr','**\x20Available\x20AMIs\x20**','1377126WOFsVh','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','ec2describeKeys','Subnet:\x20','\x20AMIID:\x20','357820nTDZIY','Creating\x20user\x20data\x20file\x20in\x20','22009CmVMAe','search','exit','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=*','sgId','ec2create','split','create','2332GgZFlg','bright','build\x20on\x20','success','\x20SG\x20NAME:\x20','getTime','t3.micro','\x20SGID:\x20','maka\x20aws:create-instance\x20<opts>','notice','name','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Remove\x20the\x20keypair\x20','getConfigPath','Security\x20Group\x20Name:\x20[','env','825772XPbDSz','Setting\x20the\x20key-pair\x20to:\x20','(((.+)+)+)+$','toString','\x20SUBNETID:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','created-by','24ztOdrb','Instance\x20Count:\x20','desc','string','**\x20Available\x20Security\x20Groups\x20**','5293568jkburD','77380hlNxzL','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','apply','29616YSidbF','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','*\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','maka-cli','push','Security\x20Group:\x20','No\x20instance\x20has\x20been\x20created.','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','subnetId','ImageID:','EC2\x20Name:\x20[','27wnRPyt','getConfigFromShorthand','Name','parse','error','log'];a6c=function(){return au;};return a6c();}(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x1b9))/0x1*(parseInt(ae(0x192))/0x2)+-parseInt(ae(0x1d4))/0x3*(-parseInt(ae(0x19f))/0x4)+parseInt(ae(0x190))/0x5*(-parseInt(ae(0x16f))/0x6)+-parseInt(ae(0x1c5))/0x7+-parseInt(ae(0x1c0))/0x8*(-parseInt(ae(0x19a))/0x9)+-parseInt(ae(0x1c6))/0xa*(parseInt(ae(0x1a9))/0xb)+parseInt(ae(0x1c9))/0xc*(parseInt(ae(0x1a1))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xcdc1d));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x1bc)]()['search']('(((.+)+)+)+$')[ag(0x1bc)]()[ag(0x18a)](a6a)[ag(0x1a2)](ag(0x1bb));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';import a6g from'fs';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';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x1a8)]({'name':'create-instance','aliases':['ci'],'usage':a6ah(0x1b1),'examples':[a6ah(0x18b),a6ah(0x17e)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x1b8)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a6ah(0x1ca)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x179)]['getProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ai(0x1d5)](b[ai(0x1b8)]),i=this[ai(0x179)][ai(0x1b6)](h),j=g+'-'+h,k=await Actions['ask'](ai(0x1d3)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x197)](ai(0x176),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x196)]({'env':h});r=y,s=z,Log[ai(0x1ac)](ai(0x1ba)+r);}else try{Log[ai(0x1b2)](ai(0x183));const A=r?r:k,B=await d[ai(0x19c)]({'suggestion':A}),C=await Actions[ai(0x193)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x1d8)]('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[ai(0x1b2)](ai(0x1cf));return;}B?.[ai(0x17f)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x1ac)](aj(0x1ba)+r));});}catch(D){Log[ai(0x1d8)](D);}l=await d[ai(0x18f)]();const t=await Actions['confirm'](ai(0x1be),!![]);let u;if(t){const E=l===''?await d[ai(0x18f)]():l;u=await Actions[ai(0x193)](ai(0x1b7)+k+']')||k;const F=await Actions['ask'](ai(0x18c))||ai(0x194),G=F[ai(0x1a7)](',');await d['ec2createSG']({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log['notice'](ai(0x1c4)),J[ai(0x17f)](function(L){const ak=ai;L[ak(0x1b3)]===u?Log['notice'](ak(0x191)+L['id']+ak(0x1ad)+L[ak(0x1b3)]+ak(0x1b0)+L[ak(0x1a5)]):Log[ak(0x1aa)]('ID:\x20'+L['id']+ak(0x1ad)+L[ak(0x1b3)]+ak(0x1b0)+L[ak(0x1a5)]);});const K=await Actions[ai(0x193)](ai(0x17c)+H+']\x20')||H[ai(0x1bc)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1a5)],Log[al(0x1ac)](al(0x1da)+m+'\x0a'));});}else m=I,Log[ai(0x1ac)](ai(0x1da)+m+'\x0a');if(m==='')throw Log['error'](ai(0x181));}catch(L){Log[ai(0x1d8)](L);}try{const M=0x7e6;Log[ai(0x1b2)](ai(0x199));const N=execSync(ai(0x1a4)+M+ai(0x1cb))[ai(0x1bc)](),O=JSON[ai(0x1d7)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S['alias']===am(0x184)){const T=S[am(0x174)][am(0x1a7)](am(0x1ab))[0x1];P[am(0x1cd)]({'amiId':S['ID'],'desc':S[am(0x174)],'date':T});}}),P[ai(0x17b)](function(S,T){const an=ai;return new Date(T['date'])['getTime']()-new Date(S[an(0x185)])[an(0x1ae)]();}),P[ai(0x17f)](function(S,T){const ao=ai;Q[ao(0x1cd)]({'id':T,'amiId':S[ao(0x186)],'desc':S[ao(0x1c2)]});}),Q[ai(0x17f)](function(S){const ap=ai;console['log'](ap(0x191)+S['id']+ap(0x19e)+S['amiId']+ap(0x17d)+S[ap(0x1c2)]);});const R=await Actions['ask'](ai(0x1d0))||'0';Q[ai(0x17f)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x186)],Log[aq(0x1ac)](aq(0x1db)+n+'\x20:\x20'+S[aq(0x1c2)]));});if(n==='')throw Log[ai(0x1d8)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x1d8)](S);}try{Log[ai(0x1b2)](ai(0x175));const T=execSync(ai(0x182))[ai(0x1bc)](),U=JSON[ai(0x1d7)](T),V=[];U['forEach'](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0x170)],'az':X['az'],'subnetId':X[ar(0x1d1)]});}),V['forEach'](function(X){const as=ai;console['log'](as(0x191)+X['id']+'\x20CIDR:\x20'+X[as(0x198)]+as(0x178)+X['az']+as(0x1bd)+X[as(0x1d1)]);});const W=await Actions['ask']('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x17f)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log[at(0x1ac)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x1d8)](ai(0x181));}catch(X){Log[ai(0x1d8)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x193)](ai(0x1c7))||ai(0x1dd),Z=Y[ai(0x1a7)](':')[0x0],a0=Y[ai(0x1a7)](':')[0x1];typeof parseInt(Z)===ai(0x18d)&&typeof parseInt(a0)===ai(0x18d)&&Log[ai(0x1ac)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0x1d8)](a1);}try{const a2=await Actions[ai(0x193)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ai(0x1af);typeof a2===ai(0x1c3)&&(o=a2);}catch(a3){Log['error'](a3);}let x;try{const a4=await Actions['confirm'](ai(0x195),![]);a4&&(x=a6f['join'](i,'user-data'),Log[ai(0x1b2)](ai(0x1a0)+x),await this['fsi'][ai(0x188)]({'filePath':x,'data':''}),await Actions[ai(0x197)](ai(0x19b)));}catch(a5){Log['error'](a5);}try{const a6=JSON['parse'](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')['toString']())[0x0][ai(0x177)];Log[ai(0x1b2)](ai(0x1d2)+n),Log[ai(0x1b2)](ai(0x1c1)+v+':'+w),Log[ai(0x1b2)]('Instace\x20Type:\x20'+o),Log[ai(0x1b2)]('Key-Pair:\x20'+r),Log['notice'](ai(0x1ce)+m),Log[ai(0x1b2)](ai(0x19d)+a6);if(x){Log[ai(0x1b2)](ai(0x172)+x);const a8=a6g[ai(0x187)](x);Log[ai(0x1b2)](a8);}const a7=await Actions[ai(0x197)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0x1a6)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x1bf),'Value':ai(0x1cc)},{'Key':ai(0x171),'Value':h},{'Key':ai(0x1d6),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x1ac)](ai(0x18e)),Log[ai(0x1aa)](ai(0x17a)));}else{Log[ai(0x1b2)](ai(0x1b4));const aa=await Actions[ai(0x197)](ai(0x1b5)+r+'\x20?',!![]);aa&&(d[ai(0x189)](r),f['isFile'](s)&&a6g[ai(0x180)](s));const ab=await Actions[ai(0x197)](ai(0x1dc)+m+'\x20?',!![]);ab&&d[ai(0x173)](m);}}catch(ac){console[ai(0x1d9)](ac),Log[ai(0x1d8)](ac);}}catch(ad){console[ai(0x1d8)](ad),process[ai(0x1a3)](0x0);}},a6e);
1
+ const a6ag=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x1a5))/0x1*(-parseInt(ae(0x1e9))/0x2)+-parseInt(ae(0x1f2))/0x3+parseInt(ae(0x1cd))/0x4*(parseInt(ae(0x1cf))/0x5)+parseInt(ae(0x1ea))/0x6+-parseInt(ae(0x1b2))/0x7*(-parseInt(ae(0x1fc))/0x8)+-parseInt(ae(0x1b5))/0x9+-parseInt(ae(0x1fb))/0xa*(-parseInt(ae(0x1a2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xd4430));const a6b=(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;};}()),a6a=a6b(this,function(){const af=a6d;return a6a[af(0x1c8)]()[af(0x1d6)](af(0x1be))[af(0x1c8)]()['constructor'](a6a)['search'](af(0x1be));});function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x196;let f=c[d];return f;},a6d(a,b);}a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';function a6c(){const at=['EC2\x20Name:\x20[','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','10CZkIkW','24PNJsql','maka\x20aws:create-instance\x20--env\x20dev','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Instace\x20Type:\x20','getProjectConfig','fsi','created-by','deleteKeyPair','maka\x20aws:create-instance\x20<opts>','build\x20on\x20','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=*','confirm','success','cidr','6666869TohtEe','\x20DESCRIPTION:\x20','**\x20Available\x20key-pairs\x20**','30yafgeS','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','\x20AZONE:\x20','Remove\x20the\x20security\x20group\x20','create','Security\x20Group:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','\x20CIDR:\x20','\x20SGID:\x20','getTime','Remove\x20the\x20keypair\x20','ask','exit','62391NHwocX','date','Setting\x20Subnet\x20ID\x20to\x20','9901476qzTuwZ','push','maka-cli','alias','error','\x20SG\x20NAME:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Setting\x20SG\x20ID\x20to:\x20','(((.+)+)+)+$','Desc','log','getSecurityGroups','Key-Pair:\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','subnetId','\x20:\x20','desc','deleteSecurityGroup','toString','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','User\x20Data:','Setting\x20the\x20key-pair\x20to:\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','8YnMGNs','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','1868840XLsZPD','env','number','Creating\x20user\x20data\x20file\x20in\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','unlinkSync','search','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','forEach','getConfigFromShorthand','22,80,443','notice','subnet','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Create\x20new\x20AWS\x20instance','bright','sgId','sort','split','maka\x20aws:ci\x20--env\x20prod','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','name','chooseVPC','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','t3.micro','438XpacdT','9322488vAGrAD','1:1','Instance\x20Count:\x20','Name','ID:\x20','user-data','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','ec2createSG','2913252mAdPgG','amiId','parse','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Web\x20App','createKeyPair','**\x20Available\x20Subnets\x20**'];a6c=function(){return at;};return a6c();}import a6g from'fs';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';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ag(0x1a9)]({'name':'create-instance','aliases':['ci'],'usage':a6ag(0x19c),'examples':[a6ag(0x1fd),a6ag(0x1e3)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ag(0x1d0)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6ag(0x1de),'description':a6ag(0x1a6)},async function(a,b){const ah=a6ag;try{const c=this[ah(0x199)][ah(0x198)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x199)][ah(0x1d9)](b[ah(0x1d0)]),i=this[ah(0x199)]['getConfigPath'](h),j=g+'-'+h,k=await Actions[ah(0x1b0)](ah(0x1f9)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x19f)](ah(0x1bb),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x1f7)]({'env':h});r=y,s=z,Log[ah(0x1a0)](ah(0x1cb)+r);}else try{Log[ah(0x1db)](ah(0x1a4));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions['ask'](ah(0x1c3))||'-1';if(parseInt(C)<0x0){Log[ah(0x1b9)]('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[ah(0x1db)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ah(0x1d8)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x1e5)],Log[ai(0x1a0)](ai(0x1cb)+r));});}catch(D){Log[ah(0x1b9)](D);}l=await d[ah(0x1e6)]();const t=await Actions[ah(0x19f)](ah(0x1f0),!![]);let u;if(t){const E=l===''?await d[ah(0x1e6)]():l;u=await Actions[ah(0x1b0)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ah(0x1b0)](ah(0x1cc))||ah(0x1da),G=F[ah(0x1e2)](',');await d[ah(0x1f1)]({'description':ah(0x1f6),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0x1c1)](u);if(I===''){Log[ah(0x1db)]('**\x20Available\x20Security\x20Groups\x20**'),J[ah(0x1d8)](function(L){const aj=ah;L[aj(0x1e5)]===u?Log['notice']('ID:\x20'+L['id']+aj(0x1ba)+L[aj(0x1e5)]+aj(0x1ad)+L[aj(0x1e0)]):Log['bright'](aj(0x1ee)+L['id']+aj(0x1ba)+L['name']+aj(0x1ad)+L[aj(0x1e0)]);});const K=await Actions['ask'](ah(0x196)+H+']\x20')||H[ah(0x1c8)]();J[ah(0x1d8)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0x1e0)],Log[ak(0x1a0)](ak(0x1bd)+m+'\x0a'));});}else m=I,Log[ah(0x1a0)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log['error'](ah(0x1dd));}catch(L){Log[ah(0x1b9)](L);}try{const M=0x7e6;Log[ah(0x1db)]('**\x20Available\x20AMIs\x20**');const N=execSync(ah(0x19e)+M+'*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22')['toString'](),O=JSON[ah(0x1f4)](N),P=[],Q=[];O[ah(0x1d8)](function(S){const al=ah;if(S[al(0x1b8)]==='amazon'){const T=S[al(0x1bf)]['split'](al(0x19d))[0x1];P[al(0x1b6)]({'amiId':S['ID'],'desc':S[al(0x1bf)],'date':T});}}),P[ah(0x1e1)](function(S,T){const am=ah;return new Date(T[am(0x1b3)])[am(0x1ae)]()-new Date(S[am(0x1b3)])[am(0x1ae)]();}),P[ah(0x1d8)](function(S,T){const an=ah;Q[an(0x1b6)]({'id':T,'amiId':S[an(0x1f3)],'desc':S[an(0x1c6)]});}),Q[ah(0x1d8)](function(S){const ao=ah;console[ao(0x1c0)](ao(0x1ee)+S['id']+'\x20AMIID:\x20'+S[ao(0x1f3)]+ao(0x1a3)+S[ao(0x1c6)]);});const R=await Actions[ah(0x1b0)](ah(0x1ce))||'0';Q[ah(0x1d8)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x1f3)],Log[ap(0x1a0)]('Setting\x20AMI\x20ID\x20to\x20'+n+ap(0x1c5)+S['desc']));});if(n==='')throw Log[ah(0x1b9)](ah(0x1dd));}catch(S){Log['error'](S);}try{Log[ah(0x1db)](ah(0x1f8));const T=execSync(ah(0x1e4))[ah(0x1c8)](),U=JSON[ah(0x1f4)](T),V=[];U[ah(0x1d8)](function(X,Y){const aq=ah;V[aq(0x1b6)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[aq(0x1c4)]});}),V[ah(0x1d8)](function(X){const ar=ah;console[ar(0x1c0)](ar(0x1ee)+X['id']+ar(0x1ac)+X[ar(0x1a1)]+ar(0x1a7)+X['az']+'\x20SUBNETID:\x20'+X['subnetId']);});const W=await Actions[ah(0x1b0)](ah(0x1d4))||'0';V['forEach'](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x1c4)],Log[as(0x1a0)](as(0x1b4)+p));});if(p==='')throw Log[ah(0x1b9)](ah(0x1dd));}catch(X){Log[ah(0x1b9)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0x1b0)](ah(0x1d7))||ah(0x1eb),Z=Y[ah(0x1e2)](':')[0x0],a0=Y[ah(0x1e2)](':')[0x1];typeof parseInt(Z)===ah(0x1d1)&&typeof parseInt(a0)==='number'&&Log[ah(0x1a0)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0x1b9)](a1);}try{const a2=await Actions[ah(0x1b0)](ah(0x1e7))||ah(0x1e8);typeof a2==='string'&&(o=a2);}catch(a3){Log[ah(0x1b9)](a3);}let x;try{const a4=await Actions[ah(0x19f)](ah(0x1d3),![]);a4&&(x=a6f['join'](i,ah(0x1ef)),Log[ah(0x1db)](ah(0x1d2)+x),await this[ah(0x199)]['createFile']({'filePath':x,'data':''}),await Actions[ah(0x19f)](ah(0x1ab)));}catch(a5){Log[ah(0x1b9)](a5);}try{const a6=JSON[ah(0x1f4)](execSync(ah(0x1c9)+p+ah(0x1fa))[ah(0x1c8)]())[0x0][ah(0x1dc)];Log[ah(0x1db)]('ImageID:'+n),Log[ah(0x1db)](ah(0x1ec)+v+':'+w),Log[ah(0x1db)](ah(0x197)+o),Log['notice'](ah(0x1c2)+r),Log[ah(0x1db)](ah(0x1aa)+m),Log['notice']('Subnet:\x20'+a6);if(x){Log[ah(0x1db)](ah(0x1ca)+x);const a8=a6g['readFileSync'](x);Log[ah(0x1db)](a8);}const a7=await Actions['confirm']('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x19a),'Value':ah(0x1b7)},{'Key':'environment','Value':h},{'Key':ah(0x1ed),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x1a0)](ah(0x1bc)),Log[ah(0x1df)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ah(0x1db)](ah(0x1f5));const aa=await Actions[ah(0x19f)](ah(0x1af)+r+'\x20?',!![]);aa&&(d[ah(0x19b)](r),f['isFile'](s)&&a6g[ah(0x1d5)](s));const ab=await Actions[ah(0x19f)](ah(0x1a8)+m+'\x20?',!![]);ab&&d[ah(0x1c7)](m);}}catch(ac){console['log'](ac),Log[ah(0x1b9)](ac);}}catch(ad){console[ah(0x1b9)](ad),process[ah(0x1b1)](0x0);}},a6e);
@@ -1 +1 @@
1
- const a7i=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0x8e))/0x1*(parseInt(g(0x8b))/0x2)+-parseInt(g(0x80))/0x3+parseInt(g(0x8a))/0x4+-parseInt(g(0x8d))/0x5*(parseInt(g(0x82))/0x6)+-parseInt(g(0x84))/0x7+-parseInt(g(0x83))/0x8*(-parseInt(g(0x78))/0x9)+parseInt(g(0x8f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x7aea6));const a7b=(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;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0x88)]()[h(0x7b)](h(0x7f))['toString']()['constructor'](a7a)[h(0x7b)]('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a7c(){const k=['82170DmcIWL','exit','maka\x20aws:create-key-pair\x20<opts>','search','create-key-pair','create','env','(((.+)+)+)+$','785307gmoLwh','ckp','3474wbKJzH','776EXxqMk','3859296nGMZCt','maka\x20aws:create-key-pair\x20--env\x20prod','error','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','toString','fsi','171056RwZOcb','2726IZWHts','createKeyPair','2115KExKCY','307MqcCQc','2146610jAXtYp'];a7c=function(){return k;};return a7c();}function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x78;let f=c[d];return f;},a7d(a,b);}Command[a7i(0x7d)]({'name':a7i(0x7c),'aliases':[a7i(0x81)],'usage':a7i(0x7a),'examples':[a7i(0x85),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a7i(0x7e)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':a7i(0x87)},async function(a,b){const j=a7i;try{const c=new AWS(),d=this[j(0x89)]['getConfigFromShorthand'](b[j(0x7e)]);c[j(0x8c)]({'env':d});}catch(f){console[j(0x86)](f),process[j(0x79)](0x0);}},a7e);
1
+ const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x104))/0x1*(parseInt(g(0x110))/0x2)+parseInt(g(0x114))/0x3*(parseInt(g(0xfd))/0x4)+-parseInt(g(0x102))/0x5*(parseInt(g(0xff))/0x6)+-parseInt(g(0x10b))/0x7*(parseInt(g(0x108))/0x8)+-parseInt(g(0x112))/0x9+-parseInt(g(0x106))/0xa+parseInt(g(0x101))/0xb*(parseInt(g(0x100))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x41383));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x10f)]()[i(0x10a)]('(((.+)+)+)+$')[i(0x10f)]()[i(0x107)](a7a)['search'](i(0xfc));});a7a();import a7e from'./aws.command.js';function a7c(){const l=['12ARhTGT','23883035heDvZv','27935VhYTaZ','maka\x20aws:create-key-pair\x20--env\x20prod','29430KUwcHK','fsi','4856690wllsaS','constructor','971272ObyfEK','env','search','14ndDbfu','create','apply','create-key-pair','toString','34NuwmbL','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','4232133MiDEgu','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','53409YnmvsE','(((.+)+)+)+$','28OySQdJ','error','354GJJkSz'];a7c=function(){return l;};return a7c();}import{Command}from'../../command.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xfc;let f=c[d];return f;},a7d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a7j(0x10c)]({'name':a7j(0x10e),'aliases':['ckp'],'usage':'maka\x20aws:create-key-pair\x20<opts>','examples':[a7j(0x103),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x109)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7j(0x113),'description':a7j(0x111)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x105)]['getConfigFromShorthand'](b['env']);c['createKeyPair']({'env':d});}catch(f){console[k(0xfe)](f),process['exit'](0x0);}},a7e);
@@ -1 +1 @@
1
- const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0x15c))/0x1+parseInt(m(0x146))/0x2+parseInt(m(0x14f))/0x3+parseInt(m(0x15d))/0x4+-parseInt(m(0x153))/0x5+parseInt(m(0x142))/0x6+-parseInt(m(0x147))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xc9c00));function a8c(){const s=['4315962PGZFiw','name','ask','apply','2657852hyzCHN','7037555zBAQrL','chooseVPC','csg','maka\x20aws:create-secuirty-group','List\x20is\x20not\x20all\x20numbers','split','Web\x20App','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','2064945jUqOUu','match','search','ec2createSG','2882680vuXBUK','(((.+)+)+)+$','toString','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','create','error','22,80,443','fsi','constructor','1271593lZyleV','3773176QEzifg','exit','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20'];a8c=function(){return s;};return a8c();}const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x145)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0x155)]()[o(0x151)](o(0x154))[o(0x155)]()[o(0x15b)](a8a)[o(0x151)](o(0x154));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x141;let f=c[d];return f;},a8d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8p(0x157)]({'name':'create-security-group','aliases':[a8p(0x149)],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8p(0x14e),'description':a8p(0x156),'examples':[a8p(0x14a),'maka\x20aws:csg']},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0x15a)]['getProjectConfig'](),{appName:f}=d,g=await c[q(0x148)](),h=b[q(0x143)]?b[q(0x143)]:''+f,i=await Actions[q(0x144)]('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0x144)](q(0x141))||q(0x159),k=j[q(0x14c)](',');k['forEach'](l=>{const r=q;if(!l[r(0x150)](/^\d+$/))throw r(0x14b);}),await c[q(0x152)]({'description':q(0x14d),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x158)](l),process[q(0x15e)](0x1);}},a8e);
1
+ const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0xca))/0x1*(-parseInt(m(0xc8))/0x2)+parseInt(m(0xcd))/0x3+-parseInt(m(0xbf))/0x4+-parseInt(m(0xc2))/0x5+parseInt(m(0xcc))/0x6+-parseInt(m(0xc7))/0x7*(-parseInt(m(0xc9))/0x8)+-parseInt(m(0xba))/0x9*(parseInt(m(0xb7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xe2b0d));function a8c(){const s=['99774TnFsAs','Security\x20Group\x20Name:\x20[','ask','chooseVPC','(((.+)+)+)+$','apply','search','name','forEach','csg','ec2createSG','toString','40xyMoQk','create-security-group','split','303687LSMizz','fsi','match','exit','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','1131236IzewnK','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','List\x20is\x20not\x20all\x20numbers','6191150PwSeNC','maka\x20aws:csg','create','error','maka\x20aws\x20create-security-group','28OfdAhs','538378kTdxHP','3324336HsVwEV','3HshgkN','22,80,443','489258gWRRnl'];a8c=function(){return s;};return a8c();}const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0xb6)]()[o(0xb1)](o(0xaf))['toString']()['constructor'](a8a)['search'](o(0xaf));});a8a();import a8e 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';import{Log}from'../../tools/log/log.class.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xad;let f=c[d];return f;},a8d(a,b);}Command[a8p(0xc4)]({'name':a8p(0xb8),'aliases':[a8p(0xb4)],'usage':a8p(0xc6),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8p(0xbe),'description':a8p(0xc0),'examples':['maka\x20aws:create-secuirty-group',a8p(0xc3)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0xbb)]['getProjectConfig'](),{appName:f}=d,g=await c[q(0xae)](),h=b[q(0xb2)]?b[q(0xb2)]:''+f,i=await Actions[q(0xad)](q(0xce)+h+']')||h,j=await Actions[q(0xad)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||q(0xcb),k=j[q(0xb9)](',');k[q(0xb3)](l=>{const r=q;if(!l[r(0xbc)](/^\d+$/))throw r(0xc1);}),await c[q(0xb5)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0xc5)](l),process[q(0xbd)](0x1);}},a8e);
@@ -1 +1 @@
1
- const a9h=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0x148))/0x1*(-parseInt(f(0x14e))/0x2)+-parseInt(f(0x145))/0x3*(-parseInt(f(0x143))/0x4)+parseInt(f(0x152))/0x5+-parseInt(f(0x151))/0x6+parseInt(f(0x140))/0x7*(parseInt(f(0x14d))/0x8)+-parseInt(f(0x14a))/0x9+-parseInt(f(0x146))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xb77cd));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const g=a9d;return a9a['toString']()[g(0x149)](g(0x155))[g(0x142)]()[g(0x156)](a9a)['search'](g(0x155));});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x140;let f=c[d];return f;},a9d(a,b);}a9a();function a9c(){const j=['4783960cakwcn','ec2describeInstances','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','(((.+)+)+)+$','constructor','14SlnczQ','maka\x20aws:describe-instances','toString','4197124ZIfVvc','maka\x20aws:di','3ynNruW','288850OpgqnN','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','877FAvPDN','search','9322002NjfXRs','error','create','40472NfePBR','1358omkHTG','exit','describe-instances','4772676JnodkS'];a9c=function(){return j;};return a9c();}import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a9h(0x14c)]({'name':a9h(0x150),'aliases':['di'],'usage':a9h(0x141),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9h(0x147),'examples':[a9h(0x141),a9h(0x144)],'description':a9h(0x154)},async function(){const i=a9h;try{const a=new AWS();a[i(0x153)]();}catch(b){console[i(0x14b)](b),process[i(0x14f)](0x0);}},a9e);
1
+ const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0xb0))/0x1*(-parseInt(f(0xa8))/0x2)+parseInt(f(0xae))/0x3*(parseInt(f(0xac))/0x4)+parseInt(f(0xaa))/0x5+parseInt(f(0xa9))/0x6+parseInt(f(0x9d))/0x7*(-parseInt(f(0x9e))/0x8)+parseInt(f(0xb2))/0x9*(parseInt(f(0xb3))/0xa)+parseInt(f(0xa2))/0xb*(-parseInt(f(0xad))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xafad0));function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x9c;let f=c[d];return f;},a9d(a,b);}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0xab)]()[h(0xa0)](h(0xb1))['toString']()[h(0xa1)](a9a)[h(0xa0)]('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9c(){const k=['toString','4smwLLN','28776IwWgqt','1942524eGRvUq','maka\x20aws:describe-instances','5tikLLc','(((.+)+)+)+$','180855hCaGiZ','550dSOPYy','exit','describe-instances','4403grsXRE','5456pLaJUp','apply','search','constructor','9119vAhuys','ec2describeInstances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','error','create','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','211946ZRYNwi','372822elRsNm','3958765yQeJWl'];a9c=function(){return k;};return a9c();}Command[a9i(0xa6)]({'name':a9i(0x9c),'aliases':['di'],'usage':'maka\x20aws:describe-instances','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9i(0xa4),'examples':[a9i(0xaf),'maka\x20aws:di'],'description':a9i(0xa7)},async function(){const j=a9i;try{const a=new AWS();a[j(0xa3)]();}catch(b){console[j(0xa5)](b),process[j(0xb4)](0x0);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x9c))/0x1+-parseInt(f(0x9b))/0x2*(-parseInt(f(0xa4))/0x3)+-parseInt(f(0xa8))/0x4*(parseInt(f(0xa0))/0x5)+-parseInt(f(0x98))/0x6*(parseInt(f(0x95))/0x7)+-parseInt(f(0x99))/0x8*(parseInt(f(0x9a))/0x9)+parseInt(f(0xa2))/0xa*(-parseInt(f(0xa9))/0xb)+parseInt(f(0xab))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x4e045));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x9d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xa1)]()[h(0xaa)](h(0x9e))[h(0xa1)]()[h(0xa6)](a10a)[h(0xaa)](h(0x9e));});a10a();function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x95;let f=c[d];return f;},a10d(a,b);}import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10c(){const k=['(((.+)+)+)+$','describe-key-pairs','5vXPcRx','toString','10LJmrhq','create','6kmpRFC','ec2describeKeys','constructor','maka\x20aws:describe-key-pairs','641184qnvkhc','4866796gUTkCF','search','14645856EUdPzn','203ffEtIn','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','exit','64710gfVlyt','4145944ZhaLri','9BZKFGI','415622vmNPHZ','117187TIcoSt','apply'];a10c=function(){return k;};return a10c();}Command[a10i(0xa3)]({'name':a10i(0x9f),'aliases':['dkp'],'usage':a10i(0xa7),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x96),'examples':['maka\x20aws:describe-key-pairs','maka\x20aws:dkp']},async function(){const j=a10i;try{const a=new AWS();a[j(0xa5)]();}catch(b){console['error'](b),process[j(0x97)](0x0);}},a10e);
1
+ function a10c(){const k=['1658638CrwGyt','851160oiwexb','3PEwPUH','apply','(((.+)+)+)+$','describe-key-pairs','dkp','7831607hEkvae','910168tlnTeM','create','ec2describeKeys','16017896QDDXGj','maka\x20aws:dkp','search','exit','1354508YBsMVd','2041655HfXTTR'];a10c=function(){return k;};return a10c();}const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x108))/0x1+-parseInt(f(0x100))/0x2+-parseInt(f(0x102))/0x3*(parseInt(f(0xfe))/0x4)+-parseInt(f(0xff))/0x5+parseInt(f(0x101))/0x6+parseInt(f(0x107))/0x7+parseInt(f(0x10b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xbd905));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x103)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()[h(0x10d)](h(0x104))['toString']()['constructor'](a10a)[h(0x10d)]('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xfd;let f=c[d];return f;},a10d(a,b);}Command[a10i(0x109)]({'name':a10i(0x105),'aliases':[a10i(0x106)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':['maka\x20aws:describe-key-pairs',a10i(0x10c)]},async function(){const j=a10i;try{const a=new AWS();a[j(0x10a)]();}catch(b){console['error'](b),process[j(0xfd)](0x0);}},a10e);
@@ -1 +1 @@
1
- const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=parseInt(l(0xa3))/0x1+parseInt(l(0xb4))/0x2+parseInt(l(0x9c))/0x3+parseInt(l(0xa8))/0x4+-parseInt(l(0x9a))/0x5+-parseInt(l(0x99))/0x6*(parseInt(l(0x96))/0x7)+parseInt(l(0xa2))/0x8*(-parseInt(l(0x97))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xa4515));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0x9b)]()[n(0xa0)](n(0x93))[n(0x9b)]()[n(0xa5)](a11a)[n(0xa0)](n(0x93));});a11a();function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x91;let f=c[d];return f;},a11d(a,b);}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a11c(){const s=['sgId','delete-security-group','\x20SG\x20NAME:\x20','getSecurityGroups','name','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','2130958ljNHRn','maka\x20aws:delete-sg','Deleting\x20a\x20','(((.+)+)+)+$','exit','maka\x20aws:dsg','940233LFJzje','159426MpcZHo','success','24JTuZZu','5935790AAMdBk','toString','1412025rRgUCc','confirm','dsg','isMakaProject','search','create','16PySknt','203949LMlDKE','forEach','constructor','deleteSecurityGroup','Not\x20deleting\x20secuirty\x20group','2771216rfvspt','appName','notice','error','\x20SGID:\x20','apply'];a11c=function(){return s;};return a11c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a11o(0xa1)]({'name':a11o(0xaf),'aliases':[a11o(0x9e)],'usage':a11o(0x91),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':['maka\x20aws:delete-sg',a11o(0x95)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x9f)]();let d='';if(c){const j=b['getProjectConfig']();d=j[p(0xa9)];}const {sgList:f}=await a[p(0xb1)]();f['forEach'](function(k){const q=p;c&&k['name']['includes'](d)?Log[q(0xaa)]('ID:\x20'+k['id']+q(0xb0)+k[q(0xb2)]+'\x20SGID:\x20'+k[q(0xae)]):Log['bright']('ID:\x20'+k['id']+q(0xb0)+k[q(0xb2)]+q(0xac)+k[q(0xae)]);});let g='';const h=await Actions['ask']('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0xa4)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0xae)]);});if(!g)throw Log[p(0xab)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions[p(0x9d)](p(0x92)+g+p(0xb3),![]);i?(await a[p(0xa6)](g),Log[p(0x98)]('Deleted\x20'+g)):Log[p(0xab)](p(0xa7)),process[p(0x94)](0x0);}catch(k){process[p(0x94)](0x1);}},a11e);
1
+ const a11o=a11d;function a11c(){const r=['error','ID:\x20','exit','getProjectConfig','appName','Not\x20deleting\x20secuirty\x20group','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','maka\x20aws:dsg','ask','(((.+)+)+)+$','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20SGID:\x20','apply','search','117981foArlq','783464fekQNY','forEach','deleteSecurityGroup','create','getSecurityGroups','includes','name','Deleted\x20','2jjvzWM','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','15QtkRSi','32322IaePMK','542649bXLzeA','delete-security-group','sgId','1155322bWeLRN','30dJTpDp','bright','maka\x20aws:delete-sg','198862hQczBH','\x20SG\x20NAME:\x20','success','dsg','1429368pbvXeH'];a11c=function(){return r;};return a11c();}(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0xef))/0x1+parseInt(l(0xe4))/0x2*(parseInt(l(0xe8))/0x3)+-parseInt(l(0x103))/0x4+-parseInt(l(0xe6))/0x5*(parseInt(l(0xe7))/0x6)+parseInt(l(0xeb))/0x7+parseInt(l(0xf3))/0x8+parseInt(l(0x102))/0x9*(parseInt(l(0xec))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x255ce));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x100)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a['toString']()[n(0x101)](n(0xfd))['toString']()['constructor'](a11a)['search'](n(0xfd));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xdd;let f=c[d];return f;},a11d(a,b);}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a11o(0xdf)]({'name':a11o(0xe9),'aliases':[a11o(0xf2)],'usage':a11o(0xee),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11o(0xe5),'examples':[a11o(0xee),a11o(0xfb)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0xf7)]();d=j[p(0xf8)];}const {sgList:f}=await a[p(0xe0)]();f[p(0xdd)](function(k){const q=p;c&&k[q(0xe2)][q(0xe1)](d)?Log['notice'](q(0xf5)+k['id']+q(0xf0)+k[q(0xe2)]+'\x20SGID:\x20'+k[q(0xea)]):Log[q(0xed)](q(0xf5)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0xe2)]+q(0xff)+k['sgId']);});let g='';const h=await Actions[p(0xfc)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0xdd)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0xf4)](p(0xfe));const i=await Actions['confirm']('Deleting\x20a\x20'+g+p(0xfa),![]);i?(await a[p(0xde)](g),Log[p(0xf1)](p(0xe3)+g)):Log[p(0xf4)](p(0xf9)),process[p(0xf6)](0x0);}catch(k){process['exit'](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x15b))/0x1+parseInt(f(0x15c))/0x2+parseInt(f(0x153))/0x3*(parseInt(f(0x148))/0x4)+-parseInt(f(0x164))/0x5+parseInt(f(0x152))/0x6+parseInt(f(0x159))/0x7*(parseInt(f(0x155))/0x8)+-parseInt(f(0x150))/0x9*(parseInt(f(0x165))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xac54e));function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x146;let f=c[d];return f;},a12d(a,b);}const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x154)]()['search'](h(0x146))[h(0x154)]()[h(0x162)](a12a)['search'](h(0x146));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';function a12c(){const k=['name','constructor','instanceId','4995040AIYSbU','8770QqWvPB','apply','(((.+)+)+)+$','create','27004bKJLtl','exit','Reboot\x20an\x20EC2\x20instance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','running','maka\x20aws:reboot-instance','\x20is\x20still\x20running.','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','17325FDUnsQ','rbi','5905926UPImmT','369XtZlfp','toString','137096QlrCRs','confirm','reboot-instance','status','371fztKNU','chooseInstance','603283tLCRvF','2546862obTWQA','\x20Ready?','error','ec2rebootInstance','maka\x20aws:rbi'];a12c=function(){return k;};return a12c();}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[a12i(0x147)]({'name':a12i(0x157),'aliases':[a12i(0x151)],'usage':a12i(0x14d),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12i(0x14a),'examples':[a12i(0x14d),a12i(0x160)]},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0x15a)]();if(b?.[j(0x158)]===j(0x14c)){const c=await Actions[j(0x156)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[j(0x161)]+j(0x15d));c&&b[j(0x163)]?a[j(0x15f)]({'instanceId':b[j(0x163)]}):Log[j(0x15e)](j(0x14f)+b[j(0x161)]+j(0x14e));}else Log[j(0x15e)](j(0x14b));}catch(d){console['error'](d),process[j(0x149)](0x0);}},a12e);
1
+ function a12c(){const k=['error','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','13420440SDdCTP','970KBHjNm','ec2rebootInstance','exit','apply','10dhtqhY','10WuhqEW','maka\x20aws:rbi','name','14cWumAz','2252424bWZcZO','2859651JDGddz','1392424kfLrNq','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','200840hvODIm','maka\x20aws:reboot-instance','search','running','\x20Ready?','constructor','toString','(((.+)+)+)+$','346CSMCQw','confirm','616308fFVQLj','rbi','chooseInstance','reboot-instance','instanceId','status'];a12c=function(){return k;};return a12c();}function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1db;let f=c[d];return f;},a12d(a,b);}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x1eb))/0x1*(parseInt(f(0x1f6))/0x2)+-parseInt(f(0x1ed))/0x3+-parseInt(f(0x1e1))/0x4*(parseInt(f(0x1db))/0x5)+parseInt(f(0x1df))/0x6+-parseInt(f(0x1de))/0x7*(parseInt(f(0x1e3))/0x8)+-parseInt(f(0x1e0))/0x9*(parseInt(f(0x1fa))/0xa)+parseInt(f(0x1f5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x78859));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x1e9)]()[h(0x1e5)]('(((.+)+)+)+$')['toString']()[h(0x1e8)](a12a)[h(0x1e5)](h(0x1ea));});a12a();import a12e 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':a12i(0x1f0),'aliases':[a12i(0x1ee)],'usage':a12i(0x1e4),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Reboot\x20an\x20EC2\x20instance','examples':[a12i(0x1e4),a12i(0x1dc)]},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0x1ef)]();if(b?.[j(0x1f2)]===j(0x1e6)){const c=await Actions[j(0x1ec)](j(0x1f4)+b[j(0x1dd)]+j(0x1e7));c&&b[j(0x1f1)]?a[j(0x1f7)]({'instanceId':b[j(0x1f1)]}):Log[j(0x1f3)](j(0x1e2)+b[j(0x1dd)]+'\x20is\x20still\x20running.');}else Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console[j(0x1f3)](d),process[j(0x1f8)](0x0);}},a12e);
@@ -1 +1 @@
1
- const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0x16b))/0x1*(parseInt(E(0x169))/0x2)+-parseInt(E(0x15e))/0x3+parseInt(E(0x16d))/0x4+-parseInt(E(0x144))/0x5+-parseInt(E(0x15d))/0x6+parseInt(E(0x16c))/0x7+parseInt(E(0x15c))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x5a890));function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x13e;let f=c[d];return f;},a13d(a,b);}const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x171)]()[G(0x149)]('(((.+)+)+)+$')[G(0x171)]()[G(0x173)](a13a)[G(0x149)]('(((.+)+)+)+$');});a13a();function a13c(){const K=['Zip\x20Code\x20[96816]:\x20','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','search','maka\x20aws:register-domain-name\x20--domain=example.com','apply','exit','96816','\x20years\x20(','options','\x20for\x20','rdn','notice','Do\x20you\x20wish\x20to\x20register\x20','\x20/\x20Year)','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','mail@example.com','values','maka\x20aws:rdn\x20--domain=example.com','+1.5555555556','list','Contact','3320536tBTCYK','2980824LAzSDn','2121795NsgnSJ','Auto\x20Renew:\x20','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','error','\x20is\x20available\x20for:','checkDomainAvailability','Duration\x20in\x20years\x20[1]:\x20','State\x20[HI]:\x20','+1.5555555555','register-domain-name','22VHfERN','123\x20Glorious\x20Way','18505jivwPv','2861523OoJVRk','2440540aTOpVZ','Domain\x20name\x20is\x20unavailable','Contact\x20Last\x20Name\x20[Person]:\x20','Contact\x20Email\x20[mail@example.com]:\x20','toString','ask','constructor','includes','maka\x20aws:register-domain-name','Contact\x20First\x20Name\x20[Contact]:\x20','The\x20domain\x20name:\x20','Choose\x20contact\x20type','domain','Are\x20you\x20sure?','Invalid\x202\x20character\x20country\x20code','confirm','warn','Country\x20Code\x20[US]:\x20','My\x20Comanpy,\x20LLC.','PERSON','313225xmBNTI','\x20/\x20Year\x20\x0a','contactType'];a13c=function(){return K;};return a13c();}import a13e 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';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a13d;return Object[H(0x157)](CountryCode)[H(0x174)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':a13I(0x168),'aliases':[a13I(0x151)],'usage':a13I(0x175),'requiredOpts':['domain'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13I(0x148),'examples':[a13I(0x14a),a13I(0x158)]},async function(a,b){const J=a13I;try{const c=b[J(0x179)],d=new AWS(),{available:f,cost:g}=await d[J(0x164)](c);if(f&&g){Log[J(0x152)](J(0x177)+c+J(0x163));const {Price:h,Currency:i}=g;Log[J(0x140)]('\x20\x20'+h+'\x20'+i+J(0x145));const j=await Actions[J(0x13f)](J(0x153)+c+'\x20?',![]);if(j){const k={'type':J(0x15a),'name':J(0x146),'message':J(0x178),'choices':['ASSOCIATION','COMPANY',J(0x143),'PUBLIC_BODY','RESELLER']},l=await Actions['ask'](J(0x165))||'1',m=await Actions[J(0x172)](J(0x176))||J(0x15b),n=await Actions[J(0x172)](J(0x16f))||'Person',{contactType:o}=await Actions[J(0x14f)](k),p=await Actions[J(0x172)](J(0x155))||J(0x16a),q=await Actions[J(0x172)]('Address\x20Line\x202:\x20'),r=await Actions[J(0x172)](J(0x147))||J(0x14d),s=await Actions[J(0x172)](J(0x166))||'HI',t=await Actions[J(0x172)](J(0x141))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x162)](J(0x13e));const v=await Actions[J(0x172)]('Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20')||J(0x167),w=await Actions['ask'](J(0x161))||J(0x159),x=await Actions['ask'](J(0x170))||J(0x156),y=await Actions['confirm'](J(0x15f)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!=='PERSON'){const C=await Actions[J(0x172)]('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||J(0x142);z['OrganizationName']=C;}const A=h||0x0*parseInt(l);Log['notice'](J(0x160)),Log[J(0x140)](A+'\x20'+i+J(0x150)+l+J(0x14e)+h+'\x20'+i+J(0x154));const B=await Actions['confirm'](J(0x17a));B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw Log[J(0x162)](J(0x16e));}catch(D){console[J(0x162)](D),process[J(0x14c)](0x0);}},a13e);
1
+ const a13I=a13d;function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xf1;let f=c[d];return f;},a13d(a,b);}(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0x105))/0x1+parseInt(E(0xff))/0x2*(parseInt(E(0x101))/0x3)+-parseInt(E(0x114))/0x4+-parseInt(E(0x104))/0x5+parseInt(E(0x125))/0x6+parseInt(E(0x112))/0x7*(parseInt(E(0xf1))/0x8)+parseInt(E(0x116))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xaac2c));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x126)]()[G(0x107)](G(0x10b))['toString']()[G(0xfc)](a13a)['search'](G(0x10b));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a13c(){const K=['5425650XSKtGP','COMPANY','Domain\x20name\x20is\x20unavailable','warn','My\x20Comanpy,\x20LLC.','The\x20domain\x20name:\x20','State\x20[HI]:\x20','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','options','Auto\x20Renew:\x20','OrganizationName','Contact','\x20for\x20','mail@example.com','Do\x20you\x20wish\x20to\x20register\x20','3444342SHuihi','toString','Address\x20Line\x202:\x20','maka\x20aws:rdn\x20--domain=example.com','maka\x20aws:register-domain-name','\x20/\x20Year)','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Contact\x20First\x20Name\x20[Contact]:\x20','apply','243328PzqRna','RESELLER','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Country\x20Code\x20[US]:\x20','ask','exit','96816','includes','domain','register-domain-name','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','constructor','\x20is\x20available\x20for:','contactType','2YslfgD','PERSON','2124753mHBLau','list','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','4993485igNkDD','365183KREQzy','error','search','Duration\x20in\x20years\x20[1]:\x20','Contact\x20Email\x20[mail@example.com]:\x20','123\x20Glorious\x20Way','(((.+)+)+)+$','Invalid\x202\x20character\x20country\x20code','+1.5555555556','checkDomainAvailability','confirm','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','create','182hGpJpL','PUBLIC_BODY','5372096lgupof','ASSOCIATION'];a13c=function(){return K;};return a13c();}import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a13d;return Object['values'](CountryCode)[H(0xf8)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13I(0x111)]({'name':a13I(0xfa),'aliases':['rdn'],'usage':a13I(0x129),'requiredOpts':[a13I(0xf9)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13I(0xf3),'examples':['maka\x20aws:register-domain-name\x20--domain=example.com',a13I(0x128)]},async function(a,b){const J=a13I;try{const c=b[J(0xf9)],d=new AWS(),{available:f,cost:g}=await d[J(0x10e)](c);if(f&&g){Log['notice'](J(0x11b)+c+J(0xfd));const {Price:h,Currency:i}=g;Log[J(0x119)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[J(0x10f)](J(0x124)+c+'\x20?',![]);if(j){const k={'type':J(0x102),'name':J(0xfe),'message':'Choose\x20contact\x20type','choices':[J(0x115),J(0x117),J(0x100),J(0x113),J(0xf2)]},l=await Actions[J(0xf5)](J(0x108))||'1',m=await Actions[J(0xf5)](J(0x12c))||J(0x121),n=await Actions[J(0xf5)]('Contact\x20Last\x20Name\x20[Person]:\x20')||'Person',{contactType:o}=await Actions[J(0x11e)](k),p=await Actions[J(0xf5)](J(0xfb))||J(0x10a),q=await Actions[J(0xf5)](J(0x127)),r=await Actions[J(0xf5)]('Zip\x20Code\x20[96816]:\x20')||J(0xf7),s=await Actions[J(0xf5)](J(0x11c))||'HI',t=await Actions[J(0xf5)](J(0xf4))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x106)](J(0x10c));const v=await Actions['ask'](J(0x103))||'+1.5555555555',w=await Actions[J(0xf5)](J(0x11d))||J(0x10d),x=await Actions[J(0xf5)](J(0x109))||J(0x123),y=await Actions[J(0x10f)](J(0x11f)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0x100)){const C=await Actions[J(0xf5)](J(0x12b))||J(0x11a);z[J(0x120)]=C;}const A=h||0x0*parseInt(l);Log['notice'](J(0x110)),Log[J(0x119)](A+'\x20'+i+J(0x122)+l+'\x20years\x20('+h+'\x20'+i+J(0x12a));const B=await Actions[J(0x10f)]('Are\x20you\x20sure?');B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw Log[J(0x106)](J(0x118));}catch(D){console[J(0x106)](D),process[J(0xf6)](0x0);}},a13e);
@@ -1 +1 @@
1
- const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0x18c))/0x1+-parseInt(h(0x188))/0x2+-parseInt(h(0x172))/0x3*(parseInt(h(0x182))/0x4)+-parseInt(h(0x18a))/0x5*(parseInt(h(0x176))/0x6)+-parseInt(h(0x183))/0x7*(parseInt(h(0x185))/0x8)+-parseInt(h(0x18b))/0x9*(-parseInt(h(0x186))/0xa)+parseInt(h(0x191))/0xb*(parseInt(h(0x18f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xd87a7));function a14c(){const n=['732366xwflzi','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','10kIlUxu','32553pQyKHX','1142727CjnoaO','Deleted\x20','rkp','3248688IfQzJp','name','22oyJEnX','20109WCozpC','Not\x20deleting\x20keypair','(((.+)+)+)+$','forEach','3971982fiElvt','create','Deleting\x20a\x20','Please\x20choose\x20a\x20key\x20to\x20delete:','ask','\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','maka\x20aws:remove-key-pair','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','confirm','toString','exit','apply','292nprZnQ','2443IayJnC','constructor','4304TuAPey','4340zdmReJ','remove-key-pair'];a14c=function(){return n;};return a14c();}function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x172;let f=c[d];return f;},a14d(a,b);}const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x181)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x17f)]()['search'](j(0x174))[j(0x17f)]()[j(0x184)](a14a)['search'](j(0x174));});a14a();import a14e 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[a14k(0x177)]({'name':a14k(0x187),'aliases':[a14k(0x18e)],'usage':a14k(0x17c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a14k(0x189),'description':a14k(0x17b),'examples':[a14k(0x17c),'maka\x20aws:rkp']},async function(){const l=a14k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c;const d=await Actions[l(0x17a)](l(0x179));b?.[l(0x175)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x190)]);});if(!c)throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[l(0x17e)](l(0x178)+c+l(0x17d),![]);f?(a['deleteKeyPair'](c),Log['success'](l(0x18d)+c)):Log['error'](l(0x173)),process[l(0x180)](0x0);}catch(g){process['exit'](0x1);}},a14e);
1
+ const a14j=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0x103))/0x1*(-parseInt(h(0x100))/0x2)+parseInt(h(0x10b))/0x3+-parseInt(h(0x112))/0x4+-parseInt(h(0x101))/0x5*(-parseInt(h(0x10c))/0x6)+-parseInt(h(0x117))/0x7+-parseInt(h(0x109))/0x8*(parseInt(h(0x119))/0x9)+parseInt(h(0x110))/0xa*(parseInt(h(0x108))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x98d3c));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(0x107)]()[i(0x116)](i(0x10d))[i(0x107)]()['constructor'](a14a)[i(0x116)](i(0x10d));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';function a14c(){const m=['forEach','Not\x20deleting\x20keypair','search','7097853zHSsEp','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','2344284FEFoXI','create','maka\x20aws:remove-key-pair','Please\x20choose\x20a\x20key\x20to\x20delete:','14604ikAmlH','1005ufxpXp','name','33FKzYah','success','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','error','toString','853886plseUD','32SboPQB','exit','426594itjwwM','8082fqafye','(((.+)+)+)+$','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','ask','430pPecBm','Deleted\x20','3312136JRhULU','Deleting\x20a\x20'];a14c=function(){return m;};return a14c();}import{AWS}from'../../tools/aws/aws.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xfe;let f=c[d];return f;},a14d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14j(0x11a)]({'name':'remove-key-pair','aliases':['rkp'],'usage':a14j(0xfe),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a14j(0x10e),'description':'\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a14j(0xfe),'maka\x20aws:rkp']},async function(){const k=a14j;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[k(0x10f)](k(0xff));b?.[k(0x114)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x102)]);});if(!c)throw Log['error'](k(0x118));const f=await Actions['confirm'](k(0x113)+c+k(0x105),![]);f?(await a['deleteKeyPair'](c),Log[k(0x104)](k(0x111)+c)):Log[k(0x106)](k(0x115)),process[k(0x10a)](0x0);}catch(g){process[k(0x10a)](0x1);}},a14e);
@@ -1 +1 @@
1
- const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(0x19c))/0x1*(-parseInt(l(0x19b))/0x2)+parseInt(l(0x179))/0x3+-parseInt(l(0x18f))/0x4+-parseInt(l(0x1a4))/0x5+parseInt(l(0x184))/0x6+parseInt(l(0x1a2))/0x7*(-parseInt(l(0x17b))/0x8)+parseInt(l(0x188))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xb3696));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x196)]()[n(0x1a7)](n(0x19e))[n(0x196)]()[n(0x1a1)](a15a)[n(0x1a7)](n(0x19e));});function a15c(){const q=['env','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','isFile','maka\x20aws\x20set-host','2pKLhug','1086106GKarkg','join','(((.+)+)+)+$','sep','maka\x20aws:sth\x20--env\x20prod','constructor','113393exevsN','fsi','2924575PEcwFP','host','publicIp','search','create','860214TbIOYR','maka\x20aws:set-host\x20--env\x20dev','328QAzJfQ','\x0aSaved\x20host\x20','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','ask','success','getConfigPath','\x20IP\x20to\x20','error','inherit','6929664leALdf','utf8','getProjectConfig','writeFileSync','22152339hWdKUA','private','public','exit','readFileSync','privateIp','ssh.json','3332012ZsKBll','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','chooseInstance','appName','apply','parse','toString'];a15c=function(){return q;};return a15c();}a15a();import a15e from'path';import a15f from'fs';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x179;let f=c[d];return f;},a15d(a,b);}import{execSync}from'child_process';import a15g 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[a15o(0x1a8)]({'name':'set-host','aliases':['sth'],'usage':a15o(0x19a),'mustBeInMakaProject':!![],'requiredOpts':[a15o(0x197)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15o(0x191),'description':a15o(0x190),'examples':[a15o(0x17a),a15o(0x1a0)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0x1a3)][p(0x180)](b[p(0x197)]),f=this['fsi'][p(0x186)](),g=await c[p(0x192)](),h=a15e['join'](d,p(0x18e));!this['fsi'][p(0x199)](h)&&await this[p(0x1a3)]['template']({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[p(0x193)]},'config':f});const i=JSON[p(0x195)](a15f[p(0x18c)](h,p(0x185))),j=await Actions[p(0x17e)](p(0x198))||p(0x18a);if(j){if(j==='public'||j==='private'){if(j==='public')i['host']=g?.[p(0x1a6)];else j===p(0x189)&&(i[p(0x1a5)]=g?.[p(0x18d)]);}else throw p(0x17d);}else i[p(0x1a5)]=g?.[p(0x18d)];a15f[p(0x187)](a15e['join'](d,'ssh.json'),JSON['stringify'](i,null,0x2)),execSync('cat\x20'+a15e[p(0x19d)](d,p(0x18e)),{'stdio':p(0x183)}),Log[p(0x17f)](p(0x17c)+j+p(0x181)+d+a15e[p(0x19f)]+p(0x18e));}catch(k){console[p(0x182)](k),process[p(0x18b)](0x0);}},a15g);
1
+ const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0xba))/0x1*(parseInt(l(0xc9))/0x2)+parseInt(l(0xaa))/0x3*(parseInt(l(0x9f))/0x4)+parseInt(l(0xb8))/0x5*(-parseInt(l(0xc6))/0x6)+parseInt(l(0xcf))/0x7+-parseInt(l(0xa9))/0x8+parseInt(l(0xb7))/0x9*(parseInt(l(0xa7))/0xa)+-parseInt(l(0xb4))/0xb*(parseInt(l(0xbf))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x6fc3d));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0xc1)]()[n(0xcd)](n(0xd0))[n(0xc1)]()[n(0xad)](a15a)['search']('(((.+)+)+)+$');});a15a();import a15e from'path';import a15f from'fs';function a15c(){const q=['success','toString','utf8','sep','getProjectConfig','parse','102cZcxko','\x20IP\x20to\x20','appName','307330gNrJuO','error','apply','\x0aSaved\x20host\x20','search','public','5768686YwrVYf','(((.+)+)+)+$','fsi','isFile','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','3102156rqByHg','chooseInstance','cat\x20','host','getConfigPath','config/ssh.json','template','writeFileSync','143050ZKNuaS','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','2398840tnuaoJ','3kNLVnc','inherit','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','constructor','sth','ssh.json','join','stringify','set-host','publicIp','5126297yRVyqG','ask','maka\x20aws\x20set-host','324NzpHVX','36065eoukgs','privateIp','5KPdHaI','readFileSync','create','maka\x20aws:set-host\x20--env\x20dev','env','12rvBcTW'];a15c=function(){return q;};return a15c();}import{execSync}from'child_process';import a15g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x9f;let f=c[d];return f;},a15d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a15o(0xbc)]({'name':a15o(0xb2),'aliases':[a15o(0xae)],'usage':a15o(0xb6),'mustBeInMakaProject':!![],'requiredOpts':[a15o(0xbe)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15o(0xd3),'description':a15o(0xa8),'examples':[a15o(0xbd),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0xd1)][p(0xa3)](b[p(0xbe)]),f=this[p(0xd1)][p(0xc4)](),g=await c[p(0xa0)](),h=a15e[p(0xb0)](d,p(0xaf));!this[p(0xd1)][p(0xd2)](h)&&await this[p(0xd1)][p(0xa5)]({'srcPath':p(0xa4),'destPath':h,'context':{'app':f[p(0xc8)]},'config':f});const i=JSON[p(0xc5)](a15f[p(0xbb)](h,p(0xc2))),j=await Actions[p(0xb5)](p(0xac))||p(0xce);if(j){if(j===p(0xce)||j==='private'){if(j==='public')i['host']=g?.[p(0xb3)];else j==='private'&&(i[p(0xa2)]=g?.[p(0xb9)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i[p(0xa2)]=g?.[p(0xb9)];a15f[p(0xa6)](a15e[p(0xb0)](d,p(0xaf)),JSON[p(0xb1)](i,null,0x2)),execSync(p(0xa1)+a15e['join'](d,p(0xaf)),{'stdio':p(0xab)}),Log[p(0xc0)](p(0xcc)+j+p(0xc7)+d+a15e[p(0xc3)]+p(0xaf));}catch(k){console[p(0xca)](k),process['exit'](0x0);}},a15g);
@@ -1 +1 @@
1
- function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x64;let f=c[d];return f;},a16d(a,b);}const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x83))/0x1*(parseInt(f(0x74))/0x2)+-parseInt(f(0x70))/0x3*(parseInt(f(0x6f))/0x4)+-parseInt(f(0x78))/0x5*(-parseInt(f(0x67))/0x6)+-parseInt(f(0x69))/0x7*(parseInt(f(0x84))/0x8)+parseInt(f(0x82))/0x9*(-parseInt(f(0x71))/0xa)+-parseInt(f(0x6d))/0xb+parseInt(f(0x66))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xc51a4));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x72)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0x7c)]()['search'](h(0x7b))[h(0x7c)]()[h(0x6e)](a16a)[h(0x64)](h(0x7b));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';function a16c(){const k=['774dDffpq','1xtjChg','711352ZKNYKx','search','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','15671568gvskWB','882OLOYxr','confirm','28NDxQxu','instanceId','name','terminate-instance','13134484QoKhmq','constructor','8LlyyOD','1680141hjdFtH','1570fNoEjS','apply','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','2053530PwrpNV','maka\x20aws:ti','maka\x20aws:terminate-instance','chooseInstance','39385PHuUdv','Terminate\x20an\x20EC2\x20instance','exit','(((.+)+)+)+$','toString','status','running','error','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','\x20Ready?'];a16c=function(){return k;};return a16c();}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':a16i(0x6c),'aliases':['ti'],'usage':a16i(0x76),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a16i(0x79),'description':'\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a16i(0x76),a16i(0x75)]},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x77)]();if(b?.[j(0x6a)]&&b?.[j(0x7d)]===j(0x7e)){const c=await Actions[j(0x68)](j(0x73)+b[j(0x6b)]+j(0x81));c?a['ec2terminateInstance']({'instanceId':b[j(0x6a)]}):Log[j(0x7f)](j(0x65)+b[j(0x6b)]+j(0x80));}else Log[j(0x7f)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console[j(0x7f)](d),process[j(0x7a)](0x0);}},a16e);
1
+ const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x150))/0x1+parseInt(f(0x14c))/0x2*(parseInt(f(0x143))/0x3)+parseInt(f(0x14a))/0x4+parseInt(f(0x14d))/0x5+-parseInt(f(0x13c))/0x6+parseInt(f(0x140))/0x7+-parseInt(f(0x146))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x1c6fd));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a['toString']()[h(0x139)](h(0x149))[h(0x14e)]()[h(0x141)](a16a)['search'](h(0x149));});a16a();import a16e 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';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x139;let f=c[d];return f;},a16d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';function a16c(){const k=['name','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','ec2terminateInstance','1235360EKqQwJ','constructor','confirm','523290ZMOLVX','instanceId','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','4124808SSQjqY','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','apply','(((.+)+)+)+$','536728zTRizT','terminate-instance','2jHTtWu','201825BaDNXO','toString','status','138730hfRYEv','search','error','maka\x20aws:ti','192654xOnNHo'];a16c=function(){return k;};return a16c();}Command['create']({'name':a16i(0x14b),'aliases':['ti'],'usage':'maka\x20aws:terminate-instance','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a16i(0x147),'examples':['maka\x20aws:terminate-instance',a16i(0x13b)]},async function(){const j=a16i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0x144)]&&b?.[j(0x14f)]==='running'){const c=await Actions[j(0x142)](j(0x13e)+b['name']+'\x20Ready?');c?a[j(0x13f)]({'instanceId':b[j(0x144)]}):Log['error'](j(0x145)+b[j(0x13d)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console[j(0x13a)](d),process['exit'](0x0);}},a16e);
@@ -1 +1 @@
1
- function a17c(){var h=['231187PCziFJ','3gzoWAz','3908016SaKUCV','49yFkjZZ','2103798ukDoeO','toString','559094yycEgv','1267180chNbIM','61112AyvOLq','search','506584fAnikJ','129wZdbDo','790dpUGOo','(((.+)+)+)+$'];a17c=function(){return h;};return a17c();}(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x99))/0x1*(-parseInt(f(0x90))/0x2)+-parseInt(f(0x95))/0x3*(-parseInt(f(0x92))/0x4)+parseInt(f(0x91))/0x5+parseInt(f(0x8e))/0x6+-parseInt(f(0x8d))/0x7*(-parseInt(f(0x94))/0x8)+-parseInt(f(0x9a))/0x9+parseInt(f(0x96))/0xa*(-parseInt(f(0x98))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x6d766));var a17b=(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;};}()),a17a=a17b(this,function(){var g=a17d;return a17a['toString']()[g(0x93)](g(0x97))[g(0x8f)]()['constructor'](a17a)['search'](g(0x97));});function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x8d;var f=c[d];return f;},a17d(a,b);}a17a();import'./build.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x179))/0x1*(parseInt(f(0x183))/0x2)+parseInt(f(0x175))/0x3+parseInt(f(0x176))/0x4*(-parseInt(f(0x17f))/0x5)+-parseInt(f(0x17d))/0x6*(-parseInt(f(0x173))/0x7)+parseInt(f(0x17b))/0x8*(parseInt(f(0x17c))/0x9)+-parseInt(f(0x178))/0xa*(parseInt(f(0x174))/0xb)+-parseInt(f(0x181))/0xc*(-parseInt(f(0x17e))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xd3210));function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x172;var f=c[d];return f;},a17d(a,b);}var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x180)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a[h(0x17a)]()[h(0x177)](h(0x172))[h(0x17a)]()[h(0x182)](a17a)[h(0x177)](h(0x172));});a17a();import'./build.js';import'./docker.sub.cmd.js';function a17c(){var i=['toString','8RxTIbc','14540895uYJeEv','1028268JnCpSr','2082743XuMRVi','75gWlYoH','apply','24pzjOcR','constructor','32190Umrsgj','(((.+)+)+)+$','7SvGJCw','121517RNRHEq','3459999TzhVvU','426344qeKOYy','search','270GzYLmk','31cfsKwl'];a17c=function(){return i;};return a17c();}
@@ -1 +1 @@
1
- const a18t=a18d;function a18c(){const w=['build','3778533iJlCpS','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','concat','invokeMeteorCommand','app.tar.gz','slice',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','1697385VWMFKS','4939879aARSQq','14680LwHQRB','exit','force','(((.+)+)+)+$','fsi','getProjectMeteorVersion','existsSync','maka\x20build','toString','maka\x20build\x20<opts>','splice','autoupdate','678168MzYjSK','\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','error','runSubCommand','constructor','findSubCommand','Verifying\x20meteor\x20package\x20requirements\x20...','1561515sUWvuO','This\x20project\x27s\x20meteor\x20version\x20(','apply','--release','50ChBFCP','maka\x20build:docker','confirm','notice','6SFgiZy','checkMeteorPackage','argv','findProjectDirectory','2490456BglFUt','getGlobalMeteorVersion','update','create','search',').\x20Update?'];a18c=function(){return w;};return a18c();}function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x93;let f=c[d];return f;},a18d(a,b);}(function(a,b){const q=a18d,c=a();while(!![]){try{const d=parseInt(q(0xb5))/0x1*(-parseInt(q(0x9c))/0x2)+-parseInt(q(0xb3))/0x3+parseInt(q(0xa4))/0x4+-parseInt(q(0x98))/0x5+parseInt(q(0xa0))/0x6*(parseInt(q(0xb4))/0x7)+parseInt(q(0xc1))/0x8+parseInt(q(0xab))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x8f82d));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a18d;if(c){const e=c[r(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const s=a18d;return a18a[s(0xbd)]()[s(0xa8)]('(((.+)+)+)+$')['toString']()[s(0x95)](a18a)['search'](s(0xb8));});a18a();import a18e from'path';import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a18t(0xa7)]({'name':a18t(0xaa),'usage':a18t(0xbe),'validOpts':[a18t(0xb7),'debug'],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a18t(0xac),'mustBeInMakaProject':!![],'description':a18t(0xc2),'examples':[a18t(0xbc),a18t(0x9d)]},async function(a,b){const u=a18t;try{const c=this[u(0xb9)][u(0xa3)]();!this[u(0xb9)][u(0xa1)](u(0xc0))&&(Log[u(0x9f)](u(0x97)),await this[u(0xb9)]['installMeteorPackage'](u(0xc0),{'cwd':c}));const d=a[0x0],f=this[u(0x96)](d);if(f)this[u(0x94)](d,a,b);else{const g=b[u(0xb7)];if(!g){const j=this[u(0xb9)][u(0xa5)](),k=this['fsi'][u(0xba)](),l=a18g['gt'](j,k);if(l){const m=await Actions[u(0x9e)](u(0x99)+k+u(0xb2)+j+u(0xa9));m&&this[u(0xb9)][u(0xaf)](u(0xa6),[u(0x9b),j]);}}const h=[this[u(0xb9)]['pathFromProject']({'pathParts':[u(0xaa)]})][u(0xae)](process[u(0xa2)][u(0xb1)](0x3)),i=a18e['join'](this[u(0xb9)]['pathFromProject']({}),u(0xaa),u(0xb0));if(a18f[u(0xbb)](i)){const n=g??await Actions['confirm'](u(0xad));if(!n)throw Log[u(0x93)]('Aborted.');}h['forEach']((o,p)=>{const v=u;o==='--force'&&h[v(0xbf)](p,0x2);}),this['fsi'][u(0xaf)]('build',h);}}catch(o){console[u(0x93)](o),process[u(0xb6)](0x0);}});export default BuildCommand;
1
+ const a18t=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d=parseInt(q(0x82))/0x1+-parseInt(q(0xa1))/0x2*(parseInt(q(0x84))/0x3)+-parseInt(q(0x8e))/0x4+-parseInt(q(0xa6))/0x5*(parseInt(q(0x7f))/0x6)+-parseInt(q(0x7d))/0x7+-parseInt(q(0x9d))/0x8+-parseInt(q(0xa2))/0x9*(-parseInt(q(0xa4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x60e7b));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a18d;if(c){const e=c[r(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const s=a18d;return a18a[s(0x9c)]()[s(0x90)](s(0xa3))['toString']()[s(0xa9)](a18a)[s(0x90)](s(0xa3));});a18a();import a18e from'path';import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':a18t(0x7e),'usage':a18t(0x98),'validOpts':['force',a18t(0x94)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a18t(0x9f),'mustBeInMakaProject':!![],'description':a18t(0xa7),'examples':[a18t(0x7c),a18t(0xaa)]},async function(a,b){const u=a18t;try{const c=this[u(0x81)][u(0xac)]();!this['fsi']['checkMeteorPackage'](u(0x8b))&&(Log[u(0xa8)](u(0xa5)),await this[u(0x81)][u(0x86)](u(0x8b),{'cwd':c}));const d=a[0x0],f=this[u(0x8c)](d);if(f)this[u(0x9b)](d,a,b);else{const g=b[u(0x8f)];if(!g){const j=this[u(0x81)][u(0x93)](),k=this[u(0x81)][u(0x92)](),l=a18g['gt'](j,k);if(l){const m=await Actions[u(0x83)](u(0x80)+k+u(0xab)+j+u(0x89));m&&this[u(0x81)][u(0x8d)](u(0xa0),['--release',j]);}}const h=[this[u(0x81)][u(0x96)]({'pathParts':[u(0x7e)]})]['concat'](process[u(0x95)][u(0x97)](0x3)),i=a18e[u(0x8a)](this['fsi']['pathFromProject']({}),u(0x7e),u(0x9a));if(a18f[u(0x85)](i)){const n=g??await Actions[u(0x83)](u(0x99));if(!n)throw Log['error'](u(0x9e));}h['forEach']((o,p)=>{const v=u;o===v(0x88)&&h[v(0x7b)](p,0x2);}),this[u(0x81)][u(0x8d)]('build',h);}}catch(o){console[u(0x87)](o),process['exit'](0x0);}});function a18c(){const w=['debug','argv','pathFromProject','slice','maka\x20build\x20<opts>','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','app.tar.gz','runSubCommand','toString','3367480huZFMm','Aborted.','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','update','12lJTNUH','785169rSLoyk','(((.+)+)+)+$','260wfqoLT','Verifying\x20meteor\x20package\x20requirements\x20...','80zvqENj','\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','notice','constructor','maka\x20build:docker',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','findProjectDirectory','splice','maka\x20build','4486489LnNafi','build','73674rHoSQX','This\x20project\x27s\x20meteor\x20version\x20(','fsi','86014yyLpzn','confirm','95307ibNDzt','existsSync','installMeteorPackage','error','--force',').\x20Update?','join','autoupdate','findSubCommand','invokeMeteorCommand','2033668IaUHpd','force','search','apply','getProjectMeteorVersion','getGlobalMeteorVersion'];a18c=function(){return w;};return a18c();}function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x7b;let f=c[d];return f;},a18d(a,b);}export default BuildCommand;
@@ -1 +1 @@
1
- const a19I=a19d;(function(a,b){const F=a19d,c=a();while(!![]){try{const d=parseInt(F(0x155))/0x1*(-parseInt(F(0x167))/0x2)+parseInt(F(0x149))/0x3+-parseInt(F(0x160))/0x4*(-parseInt(F(0x12e))/0x5)+parseInt(F(0x12b))/0x6+parseInt(F(0x15a))/0x7*(parseInt(F(0x15d))/0x8)+-parseInt(F(0x13d))/0x9+-parseInt(F(0x159))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x4e688));function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x12b;let f=c[d];return f;},a19d(a,b);}const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a19d;if(c){const e=c[G(0x175)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const H=a19d;return a19a[H(0x146)]()[H(0x14c)]('(((.+)+)+)+$')[H(0x146)]()[H(0x169)](a19a)[H(0x14c)]('(((.+)+)+)+$');});a19a();import a19e from'./build.js';import a19f from'path';import a19g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a19h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';function a19c(){const K=['app','--progress=plain\x20--no-cache','4114863PdLrff','exit','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','isFile','config/pm2.config.js','platform','appName','findGenerator','meteor','toString','maka\x20build:docker\x20<opts>','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','1390266ukaFLb','serverName','_keys','search','error','Stored\x20server\x20config\x20to\x20','Dockerfile','pathFromProject','setProjectConfig','\x20npm\x20install\x20--save','meteor.bat','inherit','1231UIVKpx','push','invoke','getGlobalConfig','7587520qMuKbA','28lkbSSc','config/docker-compose.yaml','.maka','1140200piwgFA','join','docker','1316IFQxQG','confirm','fsi','maka\x20build:docker\x20--debug','config.json','N/A','checkConfigExists','106sOesFp','https','constructor','platforms','docker-compose.yaml','template','[*]\x20maka\x20','cert.pem','://','ask','findAppDirectory','Cannot\x20determine\x20Meteor\x20Node\x20Version\x20for\x20Docker\x20Node\x20install.\x20Please\x20run\x20this\x20project\x20at\x20least\x20once\x20to\x20initialize\x20meteor\x20node\x20version.\x20(e.g.,\x20\x22maka\x20run\x22).','config','ignore','apply','.meteor','getConfigPath','length','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','maka\x20build:docker\x20--tag','findProjectDirectory','serverPort','--server=','2852424ksCOHC','dockerfile','http','1420qtADwc','mkdirSync','pm2.config.js','notice',':latest','getProjectConfig','build','debug','tag','isDirectory','Docker\x20Context\x20Path:\x20','-t\x20','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'];a19c=function(){return K;};return a19c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a19I(0x15f),'aliases':['d'],'usage':a19I(0x147),'validOpts':['force',a19I(0x136),a19I(0x135)],'shortDesc':a19I(0x179),'description':'\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','mustBeInMakaProject':!![],'examples':[a19I(0x17a),a19I(0x163)]},async function(a,b){const J=a19I;try{const c=await this['fsi'][J(0x158)](),d=await this[J(0x162)][J(0x133)](),f=await this[J(0x162)]['getProjectsMeteorNodeVersion']();f===J(0x165)&&(Log[J(0x14d)](J(0x172)),process[J(0x13e)](0x1));const g=process[J(0x142)]==='win32'?J(0x153):J(0x145),h=this['fsi'][J(0x150)]({}),i=a19f[J(0x15e)](h,J(0x14f));if(!this['fsi'][J(0x140)](i)){const s=a19h[J(0x144)](J(0x12c));s&&await s[J(0x157)]([J(0x12c)],{'cwd':h,'config':d});}const j=this[J(0x162)][J(0x166)](J(0x15f));if(!j){const t=a19h[J(0x144)](J(0x173));if(t){await t[J(0x157)](['docker'],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x162)][J(0x177)](J(0x15f)),v=a19f['join'](u,J(0x130));await this['fsi']['template']({'srcPath':J(0x141),'destPath':v,'context':{'app':d[J(0x143)],'isDocker':![]},'config':d});const w=a19f[J(0x15e)](u,J(0x16b));await this[J(0x162)][J(0x16c)]({'srcPath':J(0x15b),'destPath':w,'context':{'app':d[J(0x143)],'appFileCase':paramCase(d[J(0x143)])},'config':d});}}if(this['fsi']['isFile'](c['cert'])){const x=this['fsi'][J(0x137)](a19f[J(0x15e)]('config',J(0x15f),'_keys'));!x&&a19g[J(0x12f)](a19f['join'](J(0x173),J(0x15f),J(0x14b))),a19g['copyFileSync'](c['cert'],a19f[J(0x15e)](h,J(0x173),J(0x15f),J(0x14b),J(0x16e)));}const k=[J(0x134),a19f[J(0x15e)](this[J(0x162)][J(0x17b)](),J(0x134)),'--architecture','os.linux.x86_64'],l=this[J(0x162)]['readFileLines'](a19f[J(0x15e)](this[J(0x162)]['pathFromProject']({}),J(0x13b),J(0x176),J(0x16a))),m=l[J(0x178)]>0x2?!![]:![];if(m){const y=d['serverName']?d[J(0x14a)]:await Actions['ask'](J(0x13a)),z=d[J(0x17c)]?d['serverPort']:await Actions[J(0x170)]('Mobile\x20server\x20port:\x20');if(y[J(0x178)]==0x0||z[J(0x178)]==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';const A=z=='443'?J(0x168):J(0x12d);k[J(0x156)](J(0x17d)+A+J(0x16f)+y+':'+z);if(!d['serverName']&&!d[J(0x17c)]){const B=await Actions[J(0x161)](J(0x13f));B&&(this[J(0x162)][J(0x151)](J(0x14a),y),this[J(0x162)]['setProjectConfig'](J(0x17c),z),Log[J(0x131)](J(0x14e)+a19f[J(0x15e)](J(0x15c),J(0x164))));}}const n=a19f[J(0x15e)](this[J(0x162)][J(0x150)]({}),J(0x134),'app.tar.gz');if(a19g['existsSync'](n)){const C=await Actions[J(0x161)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?'),D=C;D&&(execSync(g+'\x20npm\x20install\x20--save',{'cwd':this[J(0x162)][J(0x171)](),'stdio':J(0x174)}),execSync(g+'\x20\x20'+k['join']('\x20'),{'cwd':this['fsi'][J(0x171)](),'stdio':J(0x154)}));}else execSync(g+J(0x152),{'cwd':this['fsi'][J(0x171)](),'stdio':J(0x174)}),Log[J(0x131)](J(0x16d)+k[J(0x15e)]('\x20')),execSync(g+'\x20'+k[J(0x15e)]('\x20'),{'cwd':this[J(0x162)]['findAppDirectory'](),'stdio':J(0x154)});const o=this[J(0x162)]['pathFromProject']({});let p=J(0x139)+paramCase(d[J(0x143)])+J(0x132);b[J(0x136)]&&(p=J(0x139)+b['tag']);Log['notice'](J(0x148)+f),Log[J(0x131)]('Tagging\x20Docker\x20Image:\x20'+p),Log[J(0x131)](J(0x138)+o);const q=b[J(0x135)]?J(0x13c):'',r='docker\x20build\x20--build-arg\x20NODE_VERSION='+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x154)}),Log[J(0x131)]('Try\x20\x27maka\x20run:docker\x27');}catch(E){console['error'](E),process[J(0x13e)](0x0);}},a19e);
1
+ const a19I=a19d;(function(a,b){const F=a19d,c=a();while(!![]){try{const d=-parseInt(F(0x11a))/0x1+-parseInt(F(0x148))/0x2+parseInt(F(0x159))/0x3+parseInt(F(0x119))/0x4*(-parseInt(F(0x113))/0x5)+parseInt(F(0x13a))/0x6+-parseInt(F(0x15f))/0x7*(parseInt(F(0x11b))/0x8)+parseInt(F(0x147))/0x9*(parseInt(F(0x143))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x290a2));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a19d;if(c){const e=c[G(0x140)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const H=a19d;return a19a[H(0x152)]()[H(0x139)](H(0x15d))[H(0x152)]()['constructor'](a19a)['search'](H(0x15d));});a19a();import a19e from'./build.js';import a19f from'path';function a19c(){const K=['cert','existsSync','--server=','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','_keys','--architecture','Try\x20\x27maka\x20run:docker\x27','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','platforms','mkdirSync','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','serverPort','confirm','copyFileSync',':latest','://','template','ask','exit','config/pm2.config.js','length','findAppDirectory','findGenerator','ignore','https','tag','notice','Docker\x20Context\x20Path:\x20','pathFromProject','search','1187418jpADKl','fsi','inherit','serverName','win32','\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','apply','pm2.config.js','force','8810XtqqiU','[*]\x20maka\x20','invoke','isFile','5355sBNZRp','152446JhZmhU','setProjectConfig','findProjectDirectory','getProjectsMeteorNodeVersion','Cannot\x20determine\x20Meteor\x20Node\x20Version\x20for\x20Docker\x20Node\x20install.\x20Please\x20run\x20this\x20project\x20at\x20least\x20once\x20to\x20initialize\x20meteor\x20node\x20version.\x20(e.g.,\x20\x22maka\x20run\x22).','N/A','os.linux.x86_64','getGlobalConfig','appName','Dockerfile','toString','--progress=plain\x20--no-cache','maka\x20build:docker\x20--tag','build','-t\x20','http','443','437841kBQHcs','config/docker-compose.yaml','.maka','debug','(((.+)+)+)+$','docker','7tMdblZ','join','\x20npm\x20install\x20--save','push','dockerfile','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','maka\x20build:docker\x20<opts>','.meteor','isDirectory','Tagging\x20Docker\x20Image:\x20','23180sJPqJN','getProjectConfig','maka\x20build:docker\x20--debug','config','create','meteor','232WowYeV','196465ddQLqo','1266968DGNEaQ'];a19c=function(){return K;};return a19c();}import a19g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a19h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x10b;let f=c[d];return f;},a19d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a19I(0x117)]({'name':'docker','aliases':['d'],'usage':a19I(0x10f),'validOpts':[a19I(0x142),a19I(0x135),'debug'],'shortDesc':a19I(0x126),'description':a19I(0x13f),'mustBeInMakaProject':!![],'examples':[a19I(0x154),a19I(0x115)]},async function(a,b){const J=a19I;try{const c=await this[J(0x13b)][J(0x14f)](),d=await this['fsi'][J(0x114)](),f=await this[J(0x13b)][J(0x14b)]();f===J(0x14d)&&(Log['error'](J(0x14c)),process[J(0x12e)](0x1));const g=process['platform']===J(0x13e)?'meteor.bat':J(0x118),h=this['fsi'][J(0x138)]({}),i=a19f[J(0x160)](h,J(0x151));if(!this[J(0x13b)][J(0x146)](i)){const s=a19h[J(0x132)](J(0x10d));s&&await s[J(0x145)]([J(0x10d)],{'cwd':h,'config':d});}const j=this[J(0x13b)]['checkConfigExists'](J(0x15e));if(!j){const t=a19h[J(0x132)](J(0x116));if(t){await t['invoke']([J(0x15e)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x13b)]['getConfigPath'](J(0x15e)),v=a19f[J(0x160)](u,J(0x141));await this[J(0x13b)][J(0x12c)]({'srcPath':J(0x12f),'destPath':v,'context':{'app':d[J(0x150)],'isDocker':![]},'config':d});const w=a19f['join'](u,'docker-compose.yaml');await this[J(0x13b)][J(0x12c)]({'srcPath':J(0x15a),'destPath':w,'context':{'app':d[J(0x150)],'appFileCase':paramCase(d[J(0x150)])},'config':d});}}if(this[J(0x13b)][J(0x146)](c['cert'])){const x=this[J(0x13b)][J(0x111)](a19f[J(0x160)](J(0x116),J(0x15e),J(0x120)));!x&&a19g[J(0x125)](a19f['join']('config',J(0x15e),J(0x120))),a19g[J(0x129)](c[J(0x11c)],a19f[J(0x160)](h,J(0x116),J(0x15e),J(0x120),'cert.pem'));}const k=['build',a19f[J(0x160)](this[J(0x13b)][J(0x14a)](),J(0x155)),J(0x121),J(0x14e)],l=this[J(0x13b)]['readFileLines'](a19f[J(0x160)](this[J(0x13b)][J(0x138)]({}),'app',J(0x110),J(0x124))),m=l[J(0x130)]>0x2?!![]:![];if(m){const y=d['serverName']?d[J(0x13d)]:await Actions[J(0x12d)]('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),z=d[J(0x127)]?d['serverPort']:await Actions[J(0x12d)]('Mobile\x20server\x20port:\x20');if(y[J(0x130)]==0x0||z[J(0x130)]==0x0)throw J(0x123);const A=z==J(0x158)?J(0x134):J(0x157);k[J(0x10c)](J(0x11e)+A+J(0x12b)+y+':'+z);if(!d[J(0x13d)]&&!d[J(0x127)]){const B=await Actions[J(0x128)](J(0x10e));B&&(this[J(0x13b)]['setProjectConfig'](J(0x13d),y),this[J(0x13b)][J(0x149)](J(0x127),z),Log[J(0x136)]('Stored\x20server\x20config\x20to\x20'+a19f[J(0x160)](J(0x15b),'config.json')));}}const n=a19f[J(0x160)](this[J(0x13b)][J(0x138)]({}),J(0x155),'app.tar.gz');if(a19g[J(0x11d)](n)){const C=await Actions['confirm'](J(0x11f)),D=C;D&&(execSync(g+J(0x10b),{'cwd':this[J(0x13b)][J(0x131)](),'stdio':J(0x133)}),execSync(g+'\x20\x20'+k[J(0x160)]('\x20'),{'cwd':this['fsi']['findAppDirectory'](),'stdio':J(0x13c)}));}else execSync(g+J(0x10b),{'cwd':this['fsi'][J(0x131)](),'stdio':J(0x133)}),Log[J(0x136)](J(0x144)+k[J(0x160)]('\x20')),execSync(g+'\x20'+k[J(0x160)]('\x20'),{'cwd':this[J(0x13b)][J(0x131)](),'stdio':'inherit'});const o=this[J(0x13b)]['pathFromProject']({});let p=J(0x156)+paramCase(d[J(0x150)])+J(0x12a);b[J(0x135)]&&(p=J(0x156)+b['tag']);Log[J(0x136)]('Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20'+f),Log[J(0x136)](J(0x112)+p),Log['notice'](J(0x137)+o);const q=b[J(0x15c)]?J(0x153):'',r='docker\x20build\x20--build-arg\x20NODE_VERSION='+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x13c)}),Log[J(0x136)](J(0x122));}catch(E){console['error'](E),process[J(0x12e)](0x0);}},a19e);