@maka/maka-cli 5.0.0 → 5.0.2

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 (166) 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/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/aws/_index.js +1 -1
  109. package/bundle/obf/src/generators/aws/aws.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  112. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  113. package/bundle/obf/src/generators/collection.js +1 -1
  114. package/bundle/obf/src/generators/component.js +1 -1
  115. package/bundle/obf/src/generators/config.js +1 -1
  116. package/bundle/obf/src/generators/dbc.js +1 -1
  117. package/bundle/obf/src/generators/dockerfile.js +1 -1
  118. package/bundle/obf/src/generators/hook.js +1 -1
  119. package/bundle/obf/src/generators/kits/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  126. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  127. package/bundle/obf/src/generators/kits/kit.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  131. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  132. package/bundle/obf/src/generators/layout.js +1 -1
  133. package/bundle/obf/src/generators/maka.gen.js +1 -1
  134. package/bundle/obf/src/generators/methods.js +1 -1
  135. package/bundle/obf/src/generators/package.js +1 -1
  136. package/bundle/obf/src/generators/page.js +1 -1
  137. package/bundle/obf/src/generators/publish.js +1 -1
  138. package/bundle/obf/src/generators/route.js +1 -1
  139. package/bundle/obf/src/generators/service.js +1 -1
  140. package/bundle/obf/src/generators/services/_index.js +1 -1
  141. package/bundle/obf/src/generators/services/openssl.js +1 -1
  142. package/bundle/obf/src/generators/services/translation.js +1 -1
  143. package/bundle/obf/src/maka.js +1 -1
  144. package/bundle/obf/src/templates/react/component/component.js.jsx +1 -1
  145. package/bundle/obf/src/templates/react/component/component.js.tsx +1 -1
  146. package/bundle/obf/src/templates/react/hook/hook.js.tsx +1 -1
  147. package/bundle/obf/src/tool.js +1 -1
  148. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  149. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  150. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  152. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  153. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  154. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/https/https.class.js +1 -1
  156. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  157. package/bundle/obf/src/tools/log/log.class.js +1 -1
  158. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  159. package/bundle/obf/src/tools/options/options.class.js +1 -1
  160. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  161. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  162. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  163. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  164. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  165. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  166. package/package.json +1 -1
@@ -1 +1 @@
1
- const a134o=a134d;(function(a,b){const l=a134d,c=a();while(!![]){try{const d=-parseInt(l(0x94))/0x1+-parseInt(l(0x8c))/0x2*(parseInt(l(0x92))/0x3)+-parseInt(l(0x8d))/0x4*(-parseInt(l(0xa3))/0x5)+parseInt(l(0xb0))/0x6*(parseInt(l(0x96))/0x7)+-parseInt(l(0xa1))/0x8*(parseInt(l(0xa5))/0x9)+-parseInt(l(0xa4))/0xa*(parseInt(l(0xb1))/0xb)+parseInt(l(0xb5))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0xb41be));const a134b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a134d;if(c){const e=c[m(0xa6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){const n=a134d;return a134a[n(0xa9)]()['search'](n(0x91))[n(0xa9)]()['constructor'](a134a)[n(0x9e)]('(((.+)+)+)+$');});a134a();import a134e from'path';function a134c(){const r=['store','features','theme','server','466VpvqBC','5589832pefKSp','/package.js','template/template.js','ssr','(((.+)+)+)+$','3057ftERbl','getMakaProjectConfig','473692pQNvco','resourceName','105zUuulC','hasOwnProperty','packages','pathFromAppWithNoReWrite','package','template','noRename','component','search','create','fsi','11552PUAUeF','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','5eFHnxs','10188440agMrCM','8856XLzJsw','apply','dir','lib','toString','.js','package/','engines','maka\x20g:package\x20todos:package','pathFromProject','package.js','308670SNObqu','11nNIyFa','withValue','pathFromApp','tests/server','20633424vvGmDA','graphql','layout','tests/client'];a134c=function(){return r;};return a134c();}function a134d(a,b){const c=a134c();return a134d=function(d,e){d=d-0x86;let f=c[d];return f;},a134d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a134o(0x9f)]({'name':a134o(0x9a),'aliases':['p'],'usage':a134o(0xa2),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':['dir'],'examples':[a134o(0xad)]},async function(a,b){const p=a134o,c=paramCase(b[p(0x95)]),d=this[p(0xa0)][p(0xb3)]({'pathParts':['packages',b[p(0xa7)],c]}),e=this[p(0xa0)][p(0x99)]({'pathParts':[p(0x98),b[p(0xa7)],c,p(0xaf)]}),f=this[p(0xa0)][p(0x93)]();await this[p(0xa0)][p(0xb2)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x95)]),'myPath':a134e['relative'](this[q(0xa0)][q(0xae)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x95)]),'camelCaseName':camelCase(b[q(0x95)]),'fileName':c,'client':f[q(0xac)]['client'],'graphql':f['engines'][q(0xb6)],'ssr':f[q(0xac)][q(0x90)],'isComponent':b[q(0x97)](q(0x9d)),'isLayout':b[q(0x97)](q(0x86)),'isStore':b['hasOwnProperty'](q(0x88)),'features':f[q(0x89)],'noRename':!![],'theme':f[q(0xac)][q(0x8a)]};await this['fsi'][q(0x9b)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0x9c)]=![];const h=d+'/client/'+c+q(0xaa);await this[q(0xa0)][q(0x9b)]({'srcPath':q(0x8f),'destPath':h,'context':g,'config':f});const i=[q(0xa8),q(0x8b),q(0x87),q(0xb4)];for(const j of i){const k=d+'/'+j+'/'+c+q(0xaa);await this['fsi'][q(0x9b)]({'srcPath':q(0xab)+j+q(0x8e),'destPath':k,'context':g,'config':f});}});});
1
+ function a134c(){const r=['package/package.js','12815400GaOPXv','package','package/','633684jVegtR','apply','constructor','59590jPTpYj','toString','14694XpXUdj','8HllHPy','3057255dBOnKx','/package.js','search','maka\x20g:package\x20todos:package','packages','engines','8324kyFbCb','store','server','getMakaProjectConfig','1295JfUhTR','350naEIHt','resourceName','theme','tests/client','component','template/template.js','4686MWgiNY','/client/','graphql','template','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','pathFromAppWithNoReWrite','(((.+)+)+)+$','106UrwkZR','relative','package.js','noRename','hasOwnProperty','create','client','fsi','352ssSAMn'];a134c=function(){return r;};return a134c();}const a134o=a134d;(function(a,b){const l=a134d,c=a();while(!![]){try{const d=-parseInt(l(0x11d))/0x1*(parseInt(l(0x116))/0x2)+parseInt(l(0x12a))/0x3+parseInt(l(0x137))/0x4*(-parseInt(l(0x110))/0x5)+parseInt(l(0x12f))/0x6*(-parseInt(l(0x10f))/0x7)+-parseInt(l(0x130))/0x8*(parseInt(l(0x131))/0x9)+-parseInt(l(0x12d))/0xa*(-parseInt(l(0x125))/0xb)+parseInt(l(0x127))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x451c6));const a134b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a134d;if(c){const e=c[m(0x12b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){const n=a134d;return a134a[n(0x12e)]()[n(0x133)](n(0x11c))[n(0x12e)]()[n(0x12c)](a134a)[n(0x133)](n(0x11c));});a134a();import a134e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a134d(a,b){const c=a134c();return a134d=function(d,e){d=d-0x10c;let f=c[d];return f;},a134d(a,b);}Generator[a134o(0x122)]({'name':a134o(0x128),'aliases':['p'],'usage':a134o(0x11a),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':['dir'],'examples':[a134o(0x134)]},async function(a,b){const p=a134o,c=paramCase(b[p(0x111)]),d=this['fsi']['pathFromApp']({'pathParts':[p(0x135),b['dir'],c]}),e=this[p(0x124)][p(0x11b)]({'pathParts':[p(0x135),b['dir'],c,p(0x11f)]}),f=this[p(0x124)][p(0x10e)]();await this[p(0x124)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x111)]),'myPath':a134e[q(0x11e)](this['fsi']['pathFromProject']({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x111)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f['engines'][q(0x123)],'graphql':f[q(0x136)][q(0x118)],'ssr':f['engines']['ssr'],'isComponent':b[q(0x121)](q(0x114)),'isLayout':b[q(0x121)]('layout'),'isStore':b[q(0x121)](q(0x10c)),'features':f['features'],'noRename':!![],'theme':f[q(0x136)][q(0x112)]};await this[q(0x124)][q(0x119)]({'srcPath':q(0x126),'destPath':e,'context':g,'config':f}),g[q(0x120)]=![];const h=d+q(0x117)+c+'.js';await this[q(0x124)][q(0x119)]({'srcPath':q(0x115),'destPath':h,'context':g,'config':f});const i=['lib',q(0x10d),q(0x113),'tests/server'];for(const j of i){const k=d+'/'+j+'/'+c+'.js';await this[q(0x124)]['template']({'srcPath':q(0x129)+j+q(0x132),'destPath':k,'context':g,'config':f});}});});
@@ -1 +1 @@
1
- const a135u=a135d;(function(a,b){const r=a135d,c=a();while(!![]){try{const d=parseInt(r(0x1e5))/0x1+-parseInt(r(0x1b6))/0x2*(parseInt(r(0x1f6))/0x3)+parseInt(r(0x1f5))/0x4*(parseInt(r(0x1c9))/0x5)+-parseInt(r(0x1b0))/0x6+-parseInt(r(0x1bb))/0x7*(-parseInt(r(0x1d7))/0x8)+parseInt(r(0x1d0))/0x9*(-parseInt(r(0x1d2))/0xa)+-parseInt(r(0x1f7))/0xb*(-parseInt(r(0x1f2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0xeb9d0));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a135d;if(c){const e=c[s(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a['toString']()['search'](t(0x1ed))[t(0x1b3)]()['constructor'](a135a)[t(0x1d5)](t(0x1ed));});a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a135c(){const x=['className','features','test','1490021eaDKeO','.css','private','import\x20\x27./','resourceName','template/template.html','withTranslations','page','(((.+)+)+)+$','injectAtBeginningOfFile','root','warn','injectIntoFile','9931668Iadoze','template','fileName','550184Yipmnb','2345358pdPsyL','11gJNHnq','/imports/ui/pages','component','checkNpmPackage','ssr','maka\x20g:page\x20todos/todos-item','test/test.js','lib','vanilla','client','startup','6136470vXTCRW','ramda','withValue','toString','includes','url','4lNYsvw','installNpmPackage','\x27;\x0a','hasOwnProperty','.app-tests.js','392LIUYcY','split','graphql','apply','dir','<Route\x20path=\x22*\x22','trim','css','theme','getMakaProjectConfig','replace','pathFromProject','routes.','replaceAll','20ovgApf','fsi','/>}/>\x0a','engines','error','setTemplate','.html','6670359msBHsu','assign','10AJATby','true','join','search','string','203528fATGvN','hook/hook.js','<Route\x20path=\x22','relative','layout','html','withHooks','store','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','react','.js'];a135c=function(){return x;};return a135c();}import{UsageError}from'../error.js';function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x1af;let f=c[d];return f;},a135d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a135u(0x1ec),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a135u(0x1e7),'boolFlag':!![]},{'name':'url'}],'examples':[a135u(0x1fc)]},async function(a,b){const v=a135u,c=v(0x1f8),d=this['fsi']['findAppDirectory'](),e=b['resourceName'][v(0x1b4)](':')?b[v(0x1e9)][v(0x1bc)](':')[0x0]['trim']():b[v(0x1e9)][v(0x1c1)](),f=b[v(0x1bf)][v(0x1c8)]('/','_')+'_'+e['replaceAll']('/','_'),g=this[v(0x1ca)]['pathFromApp']({'pathParts':[c,b[v(0x1bf)],paramCase(f),paramCase(f)]}),h=this[v(0x1ca)][v(0x1c4)]();let i='';return await this['fsi'][v(0x1b2)](h,async()=>{const w=v;typeof h[w(0x1f3)][w(0x1dc)]===w(0x1d6)&&(h['template'][w(0x1dc)]=h[w(0x1f3)][w(0x1dc)]===w(0x1d3)?!![]:![],this[w(0x1ca)][w(0x1ce)](w(0x1dc),h[w(0x1f3)]['html']));typeof h[w(0x1f3)][w(0x1e4)]===w(0x1d6)&&(h[w(0x1f3)][w(0x1e4)]=h[w(0x1f3)][w(0x1e4)]===w(0x1d3)?!![]:![],this[w(0x1ca)]['setTemplate'](w(0x1e4),h[w(0x1f3)]['test']));typeof h[w(0x1f3)][w(0x1c2)]==='string'&&(h['template'][w(0x1c2)]=h[w(0x1f3)][w(0x1c2)]==='true'?!![]:![],this[w(0x1ca)][w(0x1ce)](w(0x1c2),h['template'][w(0x1c2)]));typeof h['template']['js']===w(0x1d6)&&(h['template']['js']=h[w(0x1f3)]['js']===w(0x1d3)?!![]:![],this[w(0x1ca)][w(0x1ce)]('js',h['template']['js']));!h['features']&&(h[w(0x1e3)]={});!b['root']&&!this[w(0x1ca)][w(0x1fa)](w(0x1b1))&&(Log[w(0x1f0)]('Updating\x20npm\x20packages\x20...'),this['fsi'][w(0x1b7)](w(0x1b1),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e[w(0x1da)](this[w(0x1ca)][w(0x1c6)]({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0x1cc)][w(0x1bd)],'features':h['features'],'client':h[w(0x1cc)][w(0x200)],'api':h[w(0x1cc)]['api'],'ssr':h['engines']['ssr'],'isStore':b[w(0x1b9)](w(0x1de)),'isComponent':b['hasOwnProperty'](w(0x1f9)),'isLayout':b[w(0x1b9)](w(0x1db)),'withTranslations':h[w(0x1e3)][w(0x1eb)],'test':h[w(0x1cc)][w(0x1e4)],'theme':h[w(0x1cc)][w(0x1c3)]};h[w(0x1f3)][w(0x1dc)]&&await this[w(0x1ca)][w(0x1f3)]({'srcPath':w(0x1ea),'destPath':g+w(0x1cf),'context':j,'config':h});h[w(0x1e3)]?.[w(0x1dd)]?await this['fsi']['template']({'srcPath':w(0x1d8),'destPath':g+'.js','framework':w(0x1e0),'context':j,'config':h}):await this[w(0x1ca)][w(0x1f3)]({'srcPath':'component/component.js','destPath':g+w(0x1e1),'framework':w(0x1e0),'context':j,'config':h});h[w(0x1cc)]['test']!=='none'&&await this['fsi']['template']({'srcPath':w(0x1fd),'destPath':g+w(0x1ba),'framework':w(0x1e0),'context':j,'config':h});h['template']['css']&&await this[w(0x1ca)][w(0x1f3)]({'srcPath':'template/template.css','destPath':g+w(0x1e6),'context':Object[w(0x1d1)]({},j,{'className':paramCase(b[w(0x1e9)])}),'config':h});h[w(0x1cc)][w(0x200)]!==w(0x1e0)&&h['engines']['client']!==w(0x1ff)?(h[w(0x1f3)][w(0x1c2)]&&await this['fsi']['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+j['fileName']+'.'+h['engines'][w(0x1dc)]+w(0x1b8)+w(0x1e8)+j[w(0x1f4)]+'.'+h['engines'][w(0x1c2)]+'\x27;'}),!h[w(0x1f3)][w(0x1c2)]&&await this[w(0x1ca)][w(0x1ee)]({'filePath':g+'.'+h['engines']['js'],'content':w(0x1e8)+j['fileName']+'.'+h[w(0x1cc)][w(0x1dc)]+'\x27;'})):h['template']['css']&&await this['fsi'][w(0x1ee)]({'filePath':g+'.'+h['engines']['js'],'content':w(0x1e8)+j['fileName']+'.'+h[w(0x1cc)][w(0x1c2)]+'\x27;'});const k=b[w(0x1bf)]?'/'+b[w(0x1bf)]+'/':'/';i=''+c+k+j[w(0x1f4)]+'/'+j[w(0x1f4)],await this[w(0x1ca)]['injectTemplateModule'](j[w(0x1e2)],h,i);if(!b[w(0x1ef)]){const l=b[w(0x1e7)]??![];if(!f){Log[w(0x1cd)](w(0x1df));throw new UsageError();}let m=b[w(0x1b5)]?b[w(0x1b5)]:'/'+b[w(0x1bf)][w(0x1c1)]()+'/'+b['resourceName'][w(0x1c1)]()[w(0x1c5)](/\\/g,'/')[w(0x1c5)](/\/+$/,'')['toLowerCase']();const n=b[w(0x1e9)]['indexOf'](':');n!==-0x1&&(m+='/'+b[w(0x1e9)]['substring'](0x0,n)[w(0x1c1)]());m['endsWith']('/')&&(m=m['slice'](0x0,-0x1));m=m[w(0x1c5)](/\/\//g,'/');const o=h[w(0x1cc)]['js'],p=h[w(0x1cc)][w(0x1fb)]===w(0x1d3)?w(0x1fe):w(0x200),q=a135e[w(0x1d4)](d,'imports',w(0x1af),p,w(0x1c7)+o);l?await this[w(0x1ca)][w(0x1f1)]({'filePath':q,'content':w(0x1d9)+m+'\x22\x20element={<Component.'+pascalCase(f)+'/>}/>\x0a','begin':['<Route\x20element={<PrivateRoute\x20/>}>'],'end':['</Route>']}):await this[w(0x1ca)][w(0x1f1)]({'filePath':q,'content':w(0x1d9)+m+'\x22\x20element={<Component.'+pascalCase(f)+w(0x1cb),'begin':['<Route\x20index'],'end':[w(0x1c0)]});}}),i+'.'+h[v(0x1cc)]['js'];});
1
+ const a135u=a135d;(function(a,b){const r=a135d,c=a();while(!![]){try{const d=-parseInt(r(0xed))/0x1*(-parseInt(r(0x124))/0x2)+-parseInt(r(0x137))/0x3*(-parseInt(r(0xe6))/0x4)+parseInt(r(0x108))/0x5+-parseInt(r(0x100))/0x6*(parseInt(r(0x111))/0x7)+parseInt(r(0x103))/0x8*(-parseInt(r(0xe5))/0x9)+parseInt(r(0x107))/0xa*(-parseInt(r(0x113))/0xb)+parseInt(r(0x120))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0xacfe3));function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0xe4;let f=c[d];return f;},a135d(a,b);}const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a135d;if(c){const e=c[s(0xf1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a[t(0xf3)]()[t(0x126)]('(((.+)+)+)+$')[t(0xf3)]()[t(0x130)](a135a)[t(0x126)]('(((.+)+)+)+$');});a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';function a135c(){const x=['<Route\x20path=\x22','template/template.html','replace','1845OnqaHp','81096hDGoDt','.js','client','indexOf','join','.app-tests.js','withValue','721hUkZXp','warn','injectIntoFile','Generate\x20a\x20page.','apply','\x22\x20element={<Component.','toString','create','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','html','/>}/>\x0a','page','includes','checkNpmPackage','graphql','resourceName','getMakaProjectConfig','split','css','1499670DXVHEP','features','fsi','24000SDdBzO','installNpmPackage','string','component/component.js','30GnKnwY','436735kWJZyE','toLowerCase','engines','layout','Updating\x20npm\x20packages\x20...','ramda','slice','injectAtBeginningOfFile','<Route\x20path=\x22*\x22','7pNJeKK','fileName','730939DqrrcI','private','assign','error','component','</Route>','url','root','trim','findAppDirectory','test','withTranslations','maka\x20g:page\x20todos/todos-item','2342676NzRDEs','true','hasOwnProperty','template','366rhesje','store','search','dir','replaceAll','react','ssr','imports','vanilla','hook/hook.js','import\x20\x27./','relative','constructor','startup','/imports/ui/pages','lib','endsWith','<Route\x20element={<PrivateRoute\x20/>}>','setTemplate','201QgpWgg','none'];a135c=function(){return x;};return a135c();}const aliases=['p'];Generator[a135u(0xf4)]({'name':a135u(0xf8),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a135u(0xf0),'validOpts':[{'name':'private','boolFlag':!![]},{'name':a135u(0x119)}],'examples':[a135u(0x11f)]},async function(a,b){const v=a135u,c=v(0x132),d=this[v(0x102)][v(0x11c)](),e=b[v(0xfc)][v(0xf9)](':')?b[v(0xfc)][v(0xfe)](':')[0x0][v(0x11b)]():b[v(0xfc)][v(0x11b)](),f=b['dir'][v(0x128)]('/','_')+'_'+e['replaceAll']('/','_'),g=this[v(0x102)]['pathFromApp']({'pathParts':[c,b[v(0x127)],paramCase(f),paramCase(f)]}),h=this[v(0x102)][v(0xfd)]();let i='';return await this[v(0x102)][v(0xec)](h,async()=>{const w=v;typeof h['template'][w(0xf6)]===w(0x105)&&(h[w(0x123)][w(0xf6)]=h['template']['html']===w(0x121)?!![]:![],this[w(0x102)][w(0x136)](w(0xf6),h['template'][w(0xf6)]));typeof h[w(0x123)][w(0x11d)]===w(0x105)&&(h[w(0x123)]['test']=h['template'][w(0x11d)]==='true'?!![]:![],this[w(0x102)][w(0x136)](w(0x11d),h[w(0x123)][w(0x11d)]));typeof h['template']['css']==='string'&&(h[w(0x123)]['css']=h[w(0x123)][w(0xff)]===w(0x121)?!![]:![],this[w(0x102)][w(0x136)](w(0xff),h[w(0x123)][w(0xff)]));typeof h[w(0x123)]['js']===w(0x105)&&(h[w(0x123)]['js']=h[w(0x123)]['js']==='true'?!![]:![],this[w(0x102)][w(0x136)]('js',h[w(0x123)]['js']));!h[w(0x101)]&&(h['features']={});!b[w(0x11a)]&&!this[w(0x102)][w(0xfa)](w(0x10d))&&(Log[w(0xee)](w(0x10c)),this[w(0x102)][w(0x104)](w(0x10d),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e[w(0x12f)](this[w(0x102)]['pathFromProject']({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0x10a)][w(0xfb)],'features':h[w(0x101)],'client':h[w(0x10a)][w(0xe8)],'api':h[w(0x10a)]['api'],'ssr':h[w(0x10a)][w(0x12a)],'isStore':b[w(0x122)](w(0x125)),'isComponent':b[w(0x122)](w(0x117)),'isLayout':b['hasOwnProperty'](w(0x10b)),'withTranslations':h['features'][w(0x11e)],'test':h[w(0x10a)]['test'],'theme':h[w(0x10a)]['theme']};h[w(0x123)][w(0xf6)]&&await this[w(0x102)][w(0x123)]({'srcPath':w(0x13a),'destPath':g+'.html','context':j,'config':h});h[w(0x101)]?.['withHooks']?await this['fsi'][w(0x123)]({'srcPath':w(0x12d),'destPath':g+w(0xe7),'framework':'react','context':j,'config':h}):await this[w(0x102)][w(0x123)]({'srcPath':w(0x106),'destPath':g+w(0xe7),'framework':'react','context':j,'config':h});h[w(0x10a)][w(0x11d)]!==w(0x138)&&await this[w(0x102)][w(0x123)]({'srcPath':'test/test.js','destPath':g+w(0xeb),'framework':'react','context':j,'config':h});h[w(0x123)][w(0xff)]&&await this[w(0x102)][w(0x123)]({'srcPath':'template/template.css','destPath':g+'.css','context':Object[w(0x115)]({},j,{'className':paramCase(b['resourceName'])}),'config':h});h[w(0x10a)]['client']!==w(0x129)&&h['engines'][w(0xe8)]!==w(0x12c)?(h[w(0x123)][w(0xff)]&&await this[w(0x102)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[w(0x10a)]['js'],'content':w(0x12e)+j[w(0x112)]+'.'+h[w(0x10a)]['html']+'\x27;\x0a'+w(0x12e)+j[w(0x112)]+'.'+h[w(0x10a)]['css']+'\x27;'}),!h['template']['css']&&await this['fsi'][w(0x10f)]({'filePath':g+'.'+h[w(0x10a)]['js'],'content':w(0x12e)+j[w(0x112)]+'.'+h['engines'][w(0xf6)]+'\x27;'})):h[w(0x123)]['css']&&await this['fsi'][w(0x10f)]({'filePath':g+'.'+h[w(0x10a)]['js'],'content':w(0x12e)+j[w(0x112)]+'.'+h[w(0x10a)][w(0xff)]+'\x27;'});const k=b[w(0x127)]?'/'+b[w(0x127)]+'/':'/';i=''+c+k+j[w(0x112)]+'/'+j[w(0x112)],await this[w(0x102)]['injectTemplateModule'](j['className'],h,i);if(!b[w(0x11a)]){const l=b[w(0x114)]??![];if(!f){Log[w(0x116)](w(0xf5));throw new UsageError();}let m=b[w(0x119)]?b[w(0x119)]:'/'+b[w(0x127)][w(0x11b)]()+'/'+b[w(0xfc)][w(0x11b)]()['replace'](/\\/g,'/')[w(0xe4)](/\/+$/,'')[w(0x109)]();const n=b[w(0xfc)][w(0xe9)](':');n!==-0x1&&(m+='/'+b[w(0xfc)]['substring'](0x0,n)['trim']());m[w(0x134)]('/')&&(m=m[w(0x10e)](0x0,-0x1));m=m['replace'](/\/\//g,'/');const o=h[w(0x10a)]['js'],p=h[w(0x10a)][w(0x12a)]===w(0x121)?w(0x133):w(0xe8),q=a135e[w(0xea)](d,w(0x12b),w(0x131),p,'routes.'+o);l?await this[w(0x102)]['injectIntoFile']({'filePath':q,'content':w(0x139)+m+'\x22\x20element={<Component.'+pascalCase(f)+'/>}/>\x0a','begin':[w(0x135)],'end':[w(0x118)]}):await this[w(0x102)][w(0xef)]({'filePath':q,'content':w(0x139)+m+w(0xf2)+pascalCase(f)+w(0xf7),'begin':['<Route\x20index'],'end':[w(0x110)]});}}),i+'.'+h[v(0x10a)]['js'];});
@@ -1 +1 @@
1
- const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x147))/0x1*(parseInt(m(0x13f))/0x2)+parseInt(m(0x153))/0x3+-parseInt(m(0x150))/0x4*(parseInt(m(0x13c))/0x5)+parseInt(m(0x142))/0x6+-parseInt(m(0x156))/0x7+-parseInt(m(0x146))/0x8+-parseInt(m(0x13b))/0x9*(-parseInt(m(0x154))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x33322));function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x138;let f=c[d];return f;},a136d(a,b);}const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x149)]()[o(0x13a)]('(((.+)+)+)+$')['toString']()['constructor'](a136a)[o(0x13a)](o(0x152));});a136a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a136c(){const s=['server','engines','170972olHquI','withValue','(((.+)+)+)+$','1014525NsOiCt','8870DSWBVv','force','776552BZCOhN','publish/publish.js','dir','/imports/ui/','injectAtEndOfFile','baseDir','create','search','1593nmXOcw','25UGuwaK','fsi','apply','1018GXMJKP','startup','publish','2284488xdnBVh','resourceName','template','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','1694224BftQBB','255HtewUc','exit','toString','index.','pathFromApp','tsx','globalPublish'];a136c=function(){return s;};return a136c();}import{Log}from'../tools/log/log.class.js';Generator[a136p(0x139)]({'name':a136p(0x141),'aliases':['p'],'usage':a136p(0x145),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[a136p(0x155),a136p(0x14d)],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const q=a136p;try{const c=b[q(0x155)]||![],d=b[q(0x138)]?q(0x159)+b[q(0x138)]:'/imports/startup/server/publications',f=this[q(0x13d)]['getMakaProjectConfig'](),g=paramCase(b[q(0x143)]),h=this[q(0x13d)][q(0x14b)]({'pathParts':[d,b['dir'],'',g]});let i='js';f[q(0x14f)]['js']===q(0x14c)&&(i='ts');await this[q(0x13d)][q(0x151)](f,async()=>{const r=q,l={'name':b[r(0x143)],'collection':pascalCase(b[r(0x143)]),'noRename':!![],'globalPublish':b[r(0x14d)]};await this['fsi'][r(0x144)]({'srcPath':r(0x157),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x13d)][q(0x14b)]({'pathParts':['imports',q(0x140),q(0x14e),b['appPathPrefix'],q(0x14a)+f[q(0x14f)]['js']]}),k=b[q(0x158)]?'/'+b[q(0x158)]+'/':'/';return await this['fsi'][q(0x15a)]({'filePath':j,'content':'import\x20\x27./publications'+k+g+'\x27;'}),h+'.'+i;}catch(l){Log['error'](l),process[q(0x148)](0x1);}});
1
+ const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=parseInt(m(0x121))/0x1+-parseInt(m(0x131))/0x2*(parseInt(m(0x12b))/0x3)+parseInt(m(0x133))/0x4+parseInt(m(0x117))/0x5*(parseInt(m(0x118))/0x6)+-parseInt(m(0x116))/0x7*(-parseInt(m(0x124))/0x8)+-parseInt(m(0x12c))/0x9+parseInt(m(0x111))/0xa*(-parseInt(m(0x120))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x48404));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x134)]()[o(0x137)]('(((.+)+)+)+$')[o(0x134)]()[o(0x130)](a136a)[o(0x137)]('(((.+)+)+)+$');});function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x111;let f=c[d];return f;},a136d(a,b);}a136a();function a136c(){const s=['startup','search','apply','3210OnQcpr','globalPublish','publish','tsx','error','719383WtuVCK','475mlfWSF','18654gYajPg','index.','pathFromApp','baseDir','exit','dir','maka\x20g:publish\x20todos','import\x20\x27./publications','22011HUhQpv','568801JEYHKy','/imports/startup/server/publications','fsi','40IVvWXt','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','force','appPathPrefix','injectAtEndOfFile','server','publish/publish.js','455199xXsZMy','4238001BDfVJQ','imports','getMakaProjectConfig','withValue','constructor','2RwmRMi','create','731528UTqomN','toString','resourceName'];a136c=function(){return s;};return a136c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a136p(0x132)]({'name':a136p(0x113),'aliases':['p'],'usage':a136p(0x125),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[a136p(0x126),a136p(0x112)],'examples':[a136p(0x11e)]},async function(a,b){const q=a136p;try{const c=b[q(0x126)]||![],d=b['baseDir']?'/imports/ui/'+b[q(0x11b)]:q(0x122),f=this['fsi'][q(0x12e)](),g=paramCase(b[q(0x135)]),h=this[q(0x123)][q(0x11a)]({'pathParts':[d,b[q(0x11d)],'',g]});let i='js';f['engines']['js']===q(0x114)&&(i='ts');await this[q(0x123)][q(0x12f)](f,async()=>{const r=q,l={'name':b['resourceName'],'collection':pascalCase(b[r(0x135)]),'noRename':!![],'globalPublish':b[r(0x112)]};await this['fsi']['template']({'srcPath':r(0x12a),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x123)][q(0x11a)]({'pathParts':[q(0x12d),q(0x136),q(0x129),b[q(0x127)],q(0x119)+f['engines']['js']]}),k=b[q(0x11d)]?'/'+b[q(0x11d)]+'/':'/';return await this[q(0x123)][q(0x128)]({'filePath':j,'content':q(0x11f)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x115)](l),process[q(0x11c)](0x1);}});
@@ -1 +1 @@
1
- const a137p=a137d;(function(a,b){const m=a137d,c=a();while(!![]){try{const d=-parseInt(m(0x1a6))/0x1*(parseInt(m(0x183))/0x2)+parseInt(m(0x1a4))/0x3+-parseInt(m(0x190))/0x4*(-parseInt(m(0x197))/0x5)+-parseInt(m(0x191))/0x6*(-parseInt(m(0x17a))/0x7)+parseInt(m(0x194))/0x8*(-parseInt(m(0x19b))/0x9)+-parseInt(m(0x199))/0xa+-parseInt(m(0x1a2))/0xb*(-parseInt(m(0x198))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x793bb));function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x177;let f=c[d];return f;},a137d(a,b);}function a137c(){const s=['getMakaProjectConfig','Scaffolding\x20for\x20a\x20Route.','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','<Route\x20element={<PrivateRoute\x20/>}>','2HUaTMB','<Route\x20path=\x22','toString','page','imports','engines','join','search','create','/>}/>\x0a','apply','pop','lib','3080968OxjxCH','106482AZVJKH','ssr','replace','329064xjXOVm','client','(((.+)+)+)+$','5QsRxqI','60gLBMdj','3618330zdTJHV','<Route\x20path=\x22*\x22','198WBPMep','injectIntoFile','findAppDirectory','error','startup','\x22\x20element={<Component.','fsi','1263856OtglHj','private','2839509HcjLPF','toLowerCase','545642TcIjnD','route','length','</Route>','7gKZdfP','resourceName','exit','<Route\x20index','routes.'];a137c=function(){return s;};return a137c();}const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a137d;if(c){const e=c[n(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const o=a137d;return a137a[o(0x185)]()[o(0x18a)](o(0x196))[o(0x185)]()['constructor'](a137a)[o(0x18a)](o(0x196));});a137a();import a137e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{pascalCase}from'change-case';const aliases=['r'];Generator[a137p(0x18b)]({'name':'route','mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137p(0x1a3),'boolFlag':!![]},{'name':a137p(0x177)},{'name':a137p(0x186)}],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20--path\x20/some/path\x20--page\x20<target-page>\x20','shortDesc':a137p(0x180),'examples':[]},async function(a,b){const q=a137p;try{const c=this[q(0x1a1)][q(0x17f)](),d=this[q(0x1a1)][q(0x19d)]();await this[q(0x1a1)]['withValue'](c,async()=>{const r=q,f=b[r(0x1a3)]??![];let g=b[r(0x17b)]['split']('/')[r(0x18e)]();if(!g){Log[r(0x19e)](r(0x181));throw new UsageError();}g=pascalCase(g);let h=b[r(0x177)]?'/'+b[r(0x177)]:'/'+b[r(0x17b)]['replace'](/\\/g,'/')[r(0x1a5)]();a[r(0x178)]>0x1&&(h='/'+a['filter'](function(l){return l!=='/';})[r(0x189)]('/')[r(0x1a5)]());h=h[r(0x193)](/\/\//g,'/');const i=c[r(0x188)]['js'],j=c[r(0x192)]?r(0x18f):r(0x195),k=a137e[r(0x189)](d,r(0x187),r(0x19f),j,r(0x17e)+i);f?await this[r(0x1a1)][r(0x19c)]({'filePath':k,'content':r(0x184)+h+r(0x1a0)+g+r(0x18c),'begin':[r(0x182)],'end':[r(0x179)]}):await this[r(0x1a1)]['injectIntoFile']({'filePath':k,'content':'<Route\x20path=\x22'+h+'\x22\x20element={<Component.'+g+r(0x18c),'begin':[r(0x17d)],'end':[r(0x19a)]});});}catch(f){Log[q(0x19e)](f),process[q(0x17c)](0x1);}});
1
+ const a137p=a137d;(function(a,b){const m=a137d,c=a();while(!![]){try{const d=-parseInt(m(0xc6))/0x1*(-parseInt(m(0xe2))/0x2)+-parseInt(m(0xe7))/0x3+parseInt(m(0xe0))/0x4+-parseInt(m(0xc2))/0x5*(parseInt(m(0xe1))/0x6)+-parseInt(m(0xe8))/0x7*(-parseInt(m(0xd6))/0x8)+-parseInt(m(0xd5))/0x9+parseInt(m(0xd4))/0xa*(parseInt(m(0xdb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xc9a6b));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a137d;if(c){const e=c[n(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const o=a137d;return a137a[o(0xc5)]()[o(0xd7)]('(((.+)+)+)+$')[o(0xc5)]()['constructor'](a137a)[o(0xd7)](o(0xe3));});a137a();import a137e from'path';import{Generator}from'../generator.js';function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0xc1;let f=c[d];return f;},a137d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a137c(){const s=['2258484oXJbKH','56vqdgLy','startup','50PsLJhO','/>}/>\x0a','private','toString','7321WSgunW','split','route','\x22\x20element={<Component.','length','apply','fsi','filter','</Route>','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','withValue','client','replace','toLowerCase','90wuoVXd','6661602yuBGtp','1190752jDyjBi','search','<Route\x20path=\x22','injectIntoFile','maka\x20{generate,\x20g}:{route,\x20r}','314633UvUsLV','create','error','<Route\x20element={<PrivateRoute\x20/>}>','resourceName','1824364vogSiv','625308cKpmWC','398KnRgmu','(((.+)+)+)+$','join','imports','<Route\x20path=\x22*\x22'];a137c=function(){return s;};return a137c();}import{pascalCase}from'change-case';const aliases=['r'];Generator[a137p(0xdc)]({'name':a137p(0xc8),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137p(0xc4),'boolFlag':!![]},{'name':'route'}],'usage':a137p(0xda),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[]},async function(a,b){const q=a137p;try{const c=this[q(0xcc)]['getMakaProjectConfig'](),d=this[q(0xcc)]['findAppDirectory']();await this[q(0xcc)][q(0xd0)](c,async()=>{const r=q,f=b['private']??![];let g=b[r(0xdf)][r(0xc7)]('/')['pop']();if(!g){Log[r(0xdd)](r(0xcf));throw new UsageError();}g=pascalCase(g);let h=b[r(0xc8)]?'/'+b[r(0xc8)]:'/'+b['resourceName'][r(0xd2)](/\\/g,'/')[r(0xd3)]();a[r(0xca)]>0x1&&(h='/'+a[r(0xcd)](function(l){return l!=='/';})[r(0xe4)]('/')[r(0xd3)]());h=h[r(0xd2)](/\/\//g,'/');const i=c['engines']['js'],j=c['ssr']?'lib':r(0xd1),k=a137e[r(0xe4)](d,r(0xe5),r(0xc1),j,'routes.'+i);f?await this[r(0xcc)]['injectIntoFile']({'filePath':k,'content':r(0xd8)+h+r(0xc9)+g+r(0xc3),'begin':[r(0xde)],'end':[r(0xce)]}):await this['fsi'][r(0xd9)]({'filePath':k,'content':r(0xd8)+h+r(0xc9)+g+r(0xc3),'begin':['<Route\x20index'],'end':[r(0xe6)]});});}catch(f){Log[q(0xdd)](f),process['exit'](0x1);}});
@@ -1 +1 @@
1
- const a138m=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=parseInt(j(0x202))/0x1+parseInt(j(0x1e7))/0x2+parseInt(j(0x1f1))/0x3+-parseInt(j(0x1ef))/0x4*(parseInt(j(0x204))/0x5)+-parseInt(j(0x1fd))/0x6+-parseInt(j(0x1e9))/0x7+parseInt(j(0x1f8))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x95a39));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x207)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a[l(0x200)]()[l(0x1fa)](l(0x208))[l(0x200)]()[l(0x1f3)](a138a)[l(0x1fa)](l(0x208));});function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a138d(a,b);}a138a();function a138c(){const p=['1293951mUCSna','resourceName','constructor','Installing\x20winston','type','getMakaProjectConfig','pathFromApp','12069144hprnzi','checkNpmPackage','search','service','winston\x20setimmediate','5036460mGuZpJ','winston','error','toString','installNpmPackage','167865ciJMAH','fsi','155WBhdCH','create','logger','apply','(((.+)+)+)+$','368786MizVGQ','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','4368TmrExs','maka\x20{generate,\x20g}:{service}\x20<resource-name>','imports','svc','tsx','withValue','108292LCUpxO','startup'];a138c=function(){return p;};return a138c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a138m(0x205)]({'name':a138m(0x1fb),'aliases':[a138m(0x1ec)],'usage':a138m(0x1ea),'shortDesc':a138m(0x1e8),'requiredOpts':[{'name':a138m(0x1f5),'values':['logger']}],'validOpts':[],'maxArgLength':0x1,'examples':['maka\x20g:svc\x20service-logger\x20--type=logger']},async function(a,b){const n=a138m;try{const c=this[n(0x203)][n(0x1f6)]();await this[n(0x203)][n(0x1ee)](c,async()=>{const o=n,d=this['fsi'][o(0x1f7)]({}),f=paramCase(b[o(0x1f2)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b[o(0x1f5)],'engine':c['engines']['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x1ed)&&(h='ts');if(b[o(0x1f5)]===o(0x206)){!this['fsi'][o(0x1f9)](o(0x1fe))&&await this['fsi'][o(0x201)](o(0x1fc),{'cwd':d,'msg':o(0x1f4)});const i=this[o(0x203)][o(0x1f7)]({'pathParts':[o(0x1eb),o(0x1f0),'lib','services',f+'.'+h]});await this[o(0x203)]['template']({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x1ff)](d);}});
1
+ const a138m=a138d;function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0xc1;let f=c[d];return f;},a138d(a,b);}(function(a,b){const j=a138d,c=a();while(!![]){try{const d=-parseInt(j(0xc1))/0x1*(parseInt(j(0xe0))/0x2)+parseInt(j(0xde))/0x3+parseInt(j(0xdb))/0x4+parseInt(j(0xdf))/0x5+-parseInt(j(0xd8))/0x6+-parseInt(j(0xc9))/0x7*(parseInt(j(0xd3))/0x8)+parseInt(j(0xc7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x74d39));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a[l(0xca)]()[l(0xcf)]('(((.+)+)+)+$')['toString']()[l(0xe2)](a138a)[l(0xcf)](l(0xcc));});a138a();import{camelCase,paramCase,pascalCase}from'change-case';function a138c(){const p=['Installing\x20winston','resourceName','896553bXbylW','lib','973LZKfBM','toString','template','(((.+)+)+)+$','error','imports','search','fsi','installNpmPackage','pathFromApp','31712thvBop','logger','service','apply','winston\x20setimmediate','2337984qNuBXZ','type','startup','586208chPKbU','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','maka\x20g:svc\x20service-logger\x20--type=logger','2029140nfUVxI','3251915IrGqst','2SpVGZK','withValue','constructor','services','engines','153751mdvNxX','winston','tsx','getMakaProjectConfig'];a138c=function(){return p;};return a138c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a138m(0xd5),'aliases':['svc'],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':a138m(0xdc),'requiredOpts':[{'name':a138m(0xd9),'values':['logger']}],'validOpts':[],'maxArgLength':0x1,'examples':[a138m(0xdd)]},async function(a,b){const n=a138m;try{const c=this[n(0xd0)][n(0xc4)]();await this['fsi'][n(0xe1)](c,async()=>{const o=n,d=this[o(0xd0)][o(0xd2)]({}),f=paramCase(b[o(0xc6)]),g={'name':pascalCase(b[o(0xc6)]),'fileName':f,'camelCase':camelCase(b[o(0xc6)]),'type':b[o(0xd9)],'engine':c[o(0xe4)]['js'],'noRename':!![]};let h='js';c[o(0xe4)]['js']===o(0xc3)&&(h='ts');if(b['type']===o(0xd4)){!this['fsi']['checkNpmPackage'](o(0xc2))&&await this[o(0xd0)][o(0xd1)](o(0xd7),{'cwd':d,'msg':o(0xc5)});const i=this[o(0xd0)][o(0xd2)]({'pathParts':[o(0xce),o(0xda),o(0xc8),o(0xe3),f+'.'+h]});await this[o(0xd0)][o(0xcb)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0xcd)](d);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(0x137))/0x1+-parseInt(f(0x13b))/0x2*(-parseInt(f(0x139))/0x3)+parseInt(f(0x135))/0x4+-parseInt(f(0x136))/0x5*(-parseInt(f(0x140))/0x6)+-parseInt(f(0x138))/0x7*(-parseInt(f(0x13f))/0x8)+parseInt(f(0x13d))/0x9*(parseInt(f(0x132))/0xa)+parseInt(f(0x133))/0xb*(-parseInt(f(0x13a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x34dc2));function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0x132;var f=c[d];return f;},a139d(a,b);}var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0x141)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0x13c)]()[h(0x134)]('(((.+)+)+)+$')['toString']()[h(0x142)](a139a)[h(0x134)](h(0x13e));});a139a();import'./translation.js';function a139c(){var i=['9pKaoJu','(((.+)+)+)+$','81376YyelKL','42JwPGSC','apply','constructor','1121110SefHyL','22HGDtSK','search','335124jaTpZB','276635oCwKwi','126119MkrJJV','49bYQIdF','151482gWtZZJ','3385332cwOToj','10vxlUwA','toString'];a139c=function(){return i;};return a139c();}import'./openssl.js';
1
+ (function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(0xed))/0x1*(-parseInt(f(0xea))/0x2)+parseInt(f(0xf7))/0x3*(-parseInt(f(0xe7))/0x4)+parseInt(f(0xec))/0x5*(parseInt(f(0xe8))/0x6)+-parseInt(f(0xf4))/0x7*(-parseInt(f(0xf8))/0x8)+-parseInt(f(0xe9))/0x9*(-parseInt(f(0xf1))/0xa)+parseInt(f(0xee))/0xb+parseInt(f(0xf2))/0xc*(-parseInt(f(0xf0))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x459a3));function a139c(){var i=['253502WDdqpA','constructor','565kxphfP','2JyUaIE','4729604KMsOUR','(((.+)+)+)+$','2756XlIQvF','111310kctXob','59544vOpUeT','toString','2230795DZpWcq','apply','search','1087347qZvLrA','8fsYUpl','4ikCzPw','25206XzWKJk','180lcenuh'];a139c=function(){return i;};return a139c();}function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xe7;var f=c[d];return f;},a139d(a,b);}var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0xf3)]()[h(0xf6)](h(0xef))[h(0xf3)]()[h(0xeb)](a139a)[h(0xf6)](h(0xef));});a139a();import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- const a140l=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x14a))/0x1*(-parseInt(i(0x138))/0x2)+-parseInt(i(0x13f))/0x3*(-parseInt(i(0x149))/0x4)+-parseInt(i(0x140))/0x5+parseInt(i(0x148))/0x6*(-parseInt(i(0x13b))/0x7)+parseInt(i(0x137))/0x8+parseInt(i(0x145))/0x9*(parseInt(i(0x14b))/0xa)+-parseInt(i(0x156))/0xb*(parseInt(i(0x13d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xebfa8));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a[k(0x146)]()[k(0x153)]('(((.+)+)+)+$')['toString']()[k(0x155)](a140a)[k(0x153)]('(((.+)+)+)+$');});a140a();function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x136;let f=c[d];return f;},a140d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a140c(){const o=['openssl.conf','1023597ZwERGQ','toString','sslconfig','8888910IJNgwH','8izAGWN','859804aiOvge','70sUPDAJ','getGlobalConfig','apply','openssl/openssl.conf','_keys','Generate\x20a\x20new\x20openssl\x20config\x20file','getMakaProjectConfig','error','search','fsi','constructor','2233066azveHS','withValue','12778304cbtjtD','4zACzfS','join','maka\x20g:sslconfig\x20--env\x20dev','7fCqYCp','create','48JCikET','service','1056207rNJDUb','7785440cyGgxR','maka\x20{generate,\x20g}:sslconfig','template','env'];a140c=function(){return o;};return a140c();}import a140e from'path';Generator[a140l(0x13c)]({'name':a140l(0x147),'usage':a140l(0x141),'shortDesc':a140l(0x150),'noNeedResource':!![],'requiredOpts':[a140l(0x143)],'examples':[a140l(0x13a)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this['fsi'][m(0x151)](),d=await this[m(0x154)][m(0x14c)](),f=this['fsi']['getAppConfigPath'](b['env']),g=a140e[m(0x139)](f,m(0x14f),m(0x144));await this[m(0x154)][m(0x136)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this['fsi'][n(0x142)]({'srcPath':n(0x14e),'destPath':g,'framework':n(0x13e),'context':h,'config':c});});}catch(h){Log[m(0x152)](h);}});
1
+ const a140k=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x1c9))/0x1+parseInt(i(0x1b6))/0x2*(parseInt(i(0x1bb))/0x3)+-parseInt(i(0x1be))/0x4+-parseInt(i(0x1c6))/0x5+parseInt(i(0x1c7))/0x6+-parseInt(i(0x1c2))/0x7*(parseInt(i(0x1cc))/0x8)+parseInt(i(0x1c1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xc011f));const a140b=(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;};}()),a140a=a140b(this,function(){const j=a140d;return a140a['toString']()[j(0x1b7)]('(((.+)+)+)+$')[j(0x1cf)]()['constructor'](a140a)['search'](j(0x1ce));});function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a140d(a,b);}a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a140c(){const n=['maka\x20g:sslconfig\x20--env\x20dev','Generate\x20a\x20new\x20openssl\x20config\x20file','8009685NkwibF','746011HbMwEv','getGlobalConfig','create','join','1786930AIhVuC','7932840kqfIVP','openssl.conf','1191394ODTorf','maka\x20{generate,\x20g}:sslconfig','getMakaProjectConfig','56UeHskt','template','(((.+)+)+)+$','toString','34aqWKsZ','search','appName','openssl/openssl.conf','sslconfig','273534ilaAnl','env','fsi','2722484wszzCd'];a140c=function(){return n;};return a140c();}import a140e from'path';Generator[a140k(0x1c4)]({'name':a140k(0x1ba),'usage':a140k(0x1ca),'shortDesc':a140k(0x1c0),'noNeedResource':!![],'requiredOpts':[a140k(0x1bc)],'examples':[a140k(0x1bf)],'validOpts':[]},async function(a,b){const l=a140k;try{const c=await this[l(0x1bd)][l(0x1cb)](),d=await this[l(0x1bd)][l(0x1c3)](),f=this[l(0x1bd)]['getAppConfigPath'](b[l(0x1bc)]),g=a140e[l(0x1c5)](f,'_keys',l(0x1c8));await this[l(0x1bd)]['withValue'](c,async()=>{const m=l,h={'app':d[m(0x1b8)],'noRename':!![]};await this[m(0x1bd)][m(0x1cd)]({'srcPath':m(0x1b9),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log['error'](h);}});
@@ -1 +1 @@
1
- const a141z=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=parseInt(x(0xc3))/0x1+-parseInt(x(0xb2))/0x2*(parseInt(x(0xb3))/0x3)+-parseInt(x(0xbe))/0x4*(-parseInt(x(0xb4))/0x5)+-parseInt(x(0xb1))/0x6*(parseInt(x(0xa2))/0x7)+parseInt(x(0xb7))/0x8+-parseInt(x(0xab))/0x9*(-parseInt(x(0xa6))/0xa)+-parseInt(x(0xb0))/0xb*(parseInt(x(0xae))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xd9ca6));const a141b=(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;};}()),a141a=a141b(this,function(){const y=a141d;return a141a['toString']()[y(0xc8)](y(0x97))[y(0x96)]()['constructor'](a141a)[y(0xc8)](y(0x97));});a141a();function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x8d;let f=c[d];return f;},a141d(a,b);}import{Generator}from'../../generator.js';function a141c(){const C=['locales','lang','export\x20{\x20default\x20as\x20','injectAtEndOfFile','rewriteDestinationPathForEngine','maka\x20{generate,\x20g}:translation','true','i18n/i18n.js','features.withTranslations','29666YObptH','fsi','pathFromApp','injectAtBeginningOfFile','23670cdSPQO','Generate\x20a\x20new\x20locale\x20translation','i18n.js','i18n/locales.js','client','5463IxIOpz','service','getGlobalConfig','2104620xjxPWT','server','44EKBUDY','1362MbCXzS','2thkJgH','4535907GjsMVp','5mUzKQi','translations','Locale\x20already\x20defined:\x20','9735624lsotVk','getMakaProjectConfig','i18next\x20i18next-browser-languagedetector\x20react-i18next','lib','grep','import\x20\x27../lib/services/translations/i18n\x27;\x0a','translation','1130792umUgzs','findAppDirectory','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','engines','withValue','1131185NpmPXA','i18next','isFile','warn','index.js','search','imports','error','import\x20\x27../lib/services/translations/i18n\x27;','default\x20as\x20','installNpmPackage','maka\x20g:translation\x20--lang=en\x20(default)','checkNpmPackage','exit','readFileSync','appName','template','startup','.js','create','toString','(((.+)+)+)+$','ssr'];a141c=function(){return C;};return a141c();}import{Log}from'../../tools/log/log.class.js';import a141e from'fs';Generator[a141z(0x95)]({'name':a141z(0xbd),'usage':a141z(0x9e),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141z(0x9a),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141z(0xa7),'description':'\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','examples':[a141z(0x8d),'maka\x20g:translation\x20--lang=fr','maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this['fsi'][A(0xb8)](),d=this['fsi'][A(0xad)](),f=this[A(0xa3)][A(0xbf)]();await this[A(0xa3)][A(0xc2)](c,async()=>{const B=A;try{!b[B(0x9a)]&&(b[B(0x9a)]='en');!b['root']&&!this['fsi'][B(0x8e)](B(0xc4))&&(Log[B(0xc6)](B(0xc0)),this[B(0xa3)][B(0xcd)](B(0xb9),{'cwd':f}),this[B(0xa3)]['setProjectConfig'](B(0xa1),!![]));const g=this[B(0xa3)]['pathFromApp']({'pathParts':[B(0xc9),B(0x93),B(0xaa),B(0xc7)]}),h=this['fsi'][B(0x9d)]({'pathParts':[g],'config':c}),i=this[B(0xa3)][B(0xbb)](a141e[B(0x90)](h)['toString'](),B(0xcb))[0x0]&&!![];if(c['engines'][B(0x98)]===B(0x9f)){!i&&this[B(0xa3)][B(0xa5)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[B(0xa3)]['pathFromApp']({'pathParts':[B(0xc9),B(0x93),B(0xaf),'index.js']}),u=this['fsi'][B(0x9d)]({'pathParts':[t],'config':c}),v=this['fsi'][B(0xbb)](a141e[B(0x90)](u)[B(0x96)](),B(0xcb))[0x0]&&!![];!v&&this[B(0xa3)][B(0xa5)]({'filePath':u,'content':B(0xbc)});}else!i&&this[B(0xa3)][B(0xa5)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[B(0x91)],'config':c},k=this[B(0xa3)][B(0xa4)]({'pathParts':[B(0xc9),B(0x93),B(0xba),'services','translations',B(0xa8)]}),l=this[B(0xa3)][B(0xc5)](this['fsi'][B(0x9d)]({'pathParts':[k],'config':c}));!l&&await this[B(0xa3)][B(0x92)]({'srcPath':B(0xa0),'destPath':k,'framework':B(0xac),'context':j,'config':c});const m=this[B(0xa3)][B(0xa4)]({'pathParts':[B(0xc9),B(0x93),'lib','services',B(0xb5),B(0x99),b['lang']+B(0x94)]}),n=this[B(0xa3)][B(0x9d)]({'pathParts':[m],'config':c}),o=this[B(0xa3)][B(0xc5)](n);!o?await this['fsi'][B(0x92)]({'srcPath':B(0xa9),'destPath':m,'framework':B(0xac),'context':j,'config':c}):Log['warn'](B(0xb6)+n);const p=this[B(0xa3)]['pathFromApp']({'pathParts':['imports',B(0x93),'lib','services',B(0xb5),'locales','index.'+c[B(0xc1)]['js']]}),q=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[B(0xa3)]['isFile'](q);!r&&await this['fsi']['template']({'srcPath':'i18n/index.js','destPath':p,'framework':'service','context':j,'config':c});const s=this[B(0xa3)][B(0xbb)](a141e[B(0x90)](p)[B(0x96)](),B(0xcc)+b[B(0x9a)])[0x0]&&!![];!s?await this[B(0xa3)][B(0x9c)]({'filePath':p,'content':B(0x9b)+b[B(0x9a)]+'\x20}\x20from\x20\x27./'+b[B(0x9a)]+'\x27;'}):Log[B(0xc6)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[B(0xca)](w),process[B(0x8f)](0x1);}});}catch(g){Log[A(0xca)](g),process[A(0x8f)](0x1);}});
1
+ const a141z=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=-parseInt(x(0xc0))/0x1*(parseInt(x(0xbc))/0x2)+-parseInt(x(0xb8))/0x3*(-parseInt(x(0xa8))/0x4)+-parseInt(x(0xba))/0x5+parseInt(x(0xd0))/0x6+parseInt(x(0xb4))/0x7*(parseInt(x(0xde))/0x8)+-parseInt(x(0xb9))/0x9+-parseInt(x(0xbf))/0xa*(-parseInt(x(0xc1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xbbc17));const a141b=(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;};}()),a141a=a141b(this,function(){const y=a141d;return a141a[y(0xb7)]()[y(0xd2)](y(0xa4))[y(0xb7)]()['constructor'](a141a)['search'](y(0xa4));});a141a();function a141c(){const C=['pathFromApp','template','client','i18n.js','checkNpmPackage','injectAtBeginningOfFile','error','maka\x20g:translation\x20--lang=de','1496688uXLfTQ','imports','search','Generate\x20a\x20new\x20locale\x20translation','findAppDirectory','server','service','appName','maka\x20g:translation\x20--lang=fr','injectAtEndOfFile','true','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','root','i18n/locales.js','8JyQcaM','translations','isFile','(((.+)+)+)+$','lib','exit','i18next\x20i18next-browser-languagedetector\x20react-i18next','8TgmODa','\x20}\x20from\x20\x27./','lang','i18n/index.js','ssr','export\x20{\x20default\x20as\x20','Locale\x20already\x20exported:\x20','index.js','import\x20\x27../lib/services/translations/i18n\x27;','startup','.js','import\x20\x27../lib/services/translations/i18n\x27;\x0a','4034093qlmLkG','fsi','engines','toString','1405446quIKLS','6143697GvYyKZ','4691330Snlfbo','grep','153922jskFWn','readFileSync','features.withTranslations','1356440kxFCEp','13iZxgYh','132nXJPND','rewriteDestinationPathForEngine','warn','services','Locale\x20already\x20defined:\x20','i18n/i18n.js','index.'];a141c=function(){return C;};return a141c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a141e from'fs';function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0xa2;let f=c[d];return f;},a141d(a,b);}Generator['create']({'name':'translation','usage':'maka\x20{generate,\x20g}:translation','aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141z(0xaa),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141z(0xd3),'description':'\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','examples':['maka\x20g:translation\x20--lang=en\x20(default)',a141z(0xd8),a141z(0xcf)],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this['fsi']['getMakaProjectConfig'](),d=this['fsi']['getGlobalConfig'](),f=this[A(0xb5)][A(0xd4)]();await this[A(0xb5)]['withValue'](c,async()=>{const B=A;try{!b[B(0xaa)]&&(b[B(0xaa)]='en');!b[B(0xdc)]&&!this[B(0xb5)][B(0xcc)]('i18next')&&(Log[B(0xc3)](B(0xdb)),this[B(0xb5)]['installNpmPackage'](B(0xa7),{'cwd':f}),this[B(0xb5)]['setProjectConfig'](B(0xbe),!![]));const g=this[B(0xb5)][B(0xc8)]({'pathParts':['imports','startup',B(0xca),B(0xaf)]}),h=this[B(0xb5)][B(0xc2)]({'pathParts':[g],'config':c}),i=this[B(0xb5)][B(0xbb)](a141e[B(0xbd)](h)[B(0xb7)](),B(0xb0))[0x0]&&!![];if(c[B(0xb6)][B(0xac)]===B(0xda)){!i&&this[B(0xb5)][B(0xcd)]({'filePath':h,'content':B(0xb3)});const t=this[B(0xb5)][B(0xc8)]({'pathParts':['imports',B(0xb1),B(0xd5),B(0xaf)]}),u=this[B(0xb5)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[B(0xb5)][B(0xbb)](a141e[B(0xbd)](u)[B(0xb7)](),B(0xb0))[0x0]&&!![];!v&&this[B(0xb5)]['injectAtBeginningOfFile']({'filePath':u,'content':B(0xb3)});}else!i&&this[B(0xb5)][B(0xcd)]({'filePath':h,'content':B(0xb3)});const j={'app':d[B(0xd7)],'config':c},k=this[B(0xb5)][B(0xc8)]({'pathParts':['imports',B(0xb1),B(0xa5),B(0xc4),B(0xa2),B(0xcb)]}),l=this['fsi']['isFile'](this['fsi'][B(0xc2)]({'pathParts':[k],'config':c}));!l&&await this[B(0xb5)][B(0xc9)]({'srcPath':B(0xc6),'destPath':k,'framework':B(0xd6),'context':j,'config':c});const m=this[B(0xb5)]['pathFromApp']({'pathParts':['imports',B(0xb1),B(0xa5),B(0xc4),B(0xa2),'locales',b['lang']+B(0xb2)]}),n=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[B(0xb5)][B(0xa3)](n);!o?await this[B(0xb5)][B(0xc9)]({'srcPath':B(0xdd),'destPath':m,'framework':B(0xd6),'context':j,'config':c}):Log[B(0xc3)](B(0xc5)+n);const p=this[B(0xb5)][B(0xc8)]({'pathParts':[B(0xd1),B(0xb1),B(0xa5),'services','translations','locales',B(0xc7)+c['engines']['js']]}),q=this[B(0xb5)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[B(0xb5)]['isFile'](q);!r&&await this[B(0xb5)][B(0xc9)]({'srcPath':B(0xab),'destPath':p,'framework':'service','context':j,'config':c});const s=this[B(0xb5)][B(0xbb)](a141e['readFileSync'](p)[B(0xb7)](),'default\x20as\x20'+b['lang'])[0x0]&&!![];!s?await this[B(0xb5)][B(0xd9)]({'filePath':p,'content':B(0xad)+b['lang']+B(0xa9)+b[B(0xaa)]+'\x27;'}):Log['warn'](B(0xae)+p);}catch(w){Log['error'](w),process[B(0xa6)](0x1);}});}catch(g){Log[A(0xce)](g),process[A(0xa6)](0x1);}});
@@ -1 +1 @@
1
- function a142c(){const n=['MAKA_COMMAND_PATH','--max-old-space-size=','search','dirname','floor','349558jGEvnB','env','slice','totalmem','camelizeKeys','(((.+)+)+)+$','775096OSeWNC','1900605AhfDQk','9isOFZi','105255pTpCOk','stringify','url','20BWoUAB','1199484DuspeO','2XdgMfB','TOOL_NODE_FLAGS','toString','parse','constructor','846368SnxMuo','5607590pFkiFW','apply','22XyXFBs','argv'];a142c=function(){return n;};return a142c();}const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0xc6))/0x1*(-parseInt(j(0xb7))/0x2)+parseInt(j(0xcf))/0x3*(parseInt(j(0xb5))/0x4)+parseInt(j(0xcd))/0x5+parseInt(j(0xb6))/0x6+parseInt(j(0xcc))/0x7+parseInt(j(0xbc))/0x8*(parseInt(j(0xce))/0x9)+parseInt(j(0xbd))/0xa*(-parseInt(j(0xbf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x30d58));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0xb9)]()['search'](l(0xcb))[l(0xb9)]()[l(0xbb)](a142a)[l(0xc3)]('(((.+)+)+)+$');});a142a();import a142e from'minimist';import a142f from'os';import a142g from'path';import a142h from'humps';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0xb5;let f=c[d];return f;},a142d(a,b);}import a142i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a142m(0xd1)]),__dirname=a142g[a142m(0xc4)](__filename);global[a142m(0xc1)]=__dirname;const total_memory=a142f[a142m(0xc9)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142m(0xc5)](total_mem_in_mb),process[a142m(0xc7)][a142m(0xb8)]=a142m(0xc2)+total_mem_in_mb,process[a142m(0xc7)]['BROWSERSLIST_IGNORE_OLD_DATA']='1',process[a142m(0xc7)]['NODE_NO_WARNINGS']='1';const argv=a142e(process[a142m(0xc0)][a142m(0xc8)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0xba)](JSON[a142m(0xd0)](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0xca)](deepCopyArgv);a142i['run'](args,opts);
1
+ const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x15a))/0x1+-parseInt(j(0x155))/0x2*(parseInt(j(0x157))/0x3)+parseInt(j(0x164))/0x4*(-parseInt(j(0x159))/0x5)+parseInt(j(0x172))/0x6*(-parseInt(j(0x166))/0x7)+parseInt(j(0x167))/0x8*(parseInt(j(0x161))/0x9)+-parseInt(j(0x16f))/0xa+parseInt(j(0x15e))/0xb*(parseInt(j(0x15b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x7d510));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x16e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a['toString']()[l(0x163)](l(0x15d))['toString']()[l(0x169)](a142a)[l(0x163)]('(((.+)+)+)+$');});a142a();import a142e from'minimist';function a142c(){const n=['49uYhzsE','1617712ROXiCm','TOOL_NODE_FLAGS','constructor','url','floor','camelizeKeys','--max-old-space-size=','apply','435920lzftjD','parse','slice','607254TIhYae','4IehgbC','BROWSERSLIST_IGNORE_OLD_DATA','216294KHxozr','dirname','85GjthPL','508139ennyTV','152052wamCuj','env','(((.+)+)+)+$','2123BtigYt','MAKA_COMMAND_PATH','stringify','9qqgnNN','totalmem','search','171772hWqHOU','run'];a142c=function(){return n;};return a142c();}import a142f from'os';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x155;let f=c[d];return f;},a142d(a,b);}import a142g from'path';import a142h from'humps';import a142i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a142m(0x16a)]),__dirname=a142g[a142m(0x158)](__filename);global[a142m(0x15f)]=__dirname;const total_memory=a142f[a142m(0x162)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142m(0x16b)](total_mem_in_mb),process[a142m(0x15c)][a142m(0x168)]=a142m(0x16d)+total_mem_in_mb,process[a142m(0x15c)][a142m(0x156)]='1',process[a142m(0x15c)]['NODE_NO_WARNINGS']='1';const argv=a142e(process['argv'][a142m(0x171)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0x170)](JSON[a142m(0x160)](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0x16c)](deepCopyArgv);a142i[a142m(0x165)](args,opts);
@@ -45,7 +45,7 @@ class <%= className %> extends Component {
45
45
  const { t } = this.props;<% } %>
46
46
  return (
47
47
  <div id="<%= cssCaseName %>">
48
- <% if (isLayout) { %><Outlet/><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
48
+ <% if (isLayout) { %><Outlet /><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
49
49
  </div>
50
50
  );
51
51
  }
@@ -50,7 +50,7 @@ class <%= className %> extends React.Component<I<%= className %>> {
50
50
  const { t } = this.props;<% } %>
51
51
  return (
52
52
  <div id="<%= cssCaseName %>">
53
- <% if (isLayout) { %><Outlet/><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
53
+ <% if (isLayout) { %><Outlet /><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
54
54
  </div>
55
55
  );
56
56
  }
@@ -10,7 +10,7 @@ function <%= className %>(props) {
10
10
 
11
11
  return (
12
12
  <div id="<%= cssCaseName %>">
13
- <% if (isLayout) { %><Outlet/><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
13
+ <% if (isLayout) { %><Outlet /><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
14
14
  </div>
15
15
  );
16
16
  }
@@ -1 +1 @@
1
- const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0x178))/0x1+-parseInt(I(0x156))/0x2+-parseInt(I(0x144))/0x3+-parseInt(I(0x12b))/0x4*(parseInt(I(0x148))/0x5)+parseInt(I(0x15e))/0x6+parseInt(I(0x179))/0x7*(-parseInt(I(0x134))/0x8)+parseInt(I(0x133))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0xe896c));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0x15d)]()['search'](K(0x165))[K(0x15d)]()[K(0x180)](a143a)[K(0x15f)](K(0x165));});a143a();function a143c(){const a4=['Invalid\x20option:\x20','fsi','isPro','apply','platform','list','Invalid\x20argument:\x20','2493936PzCmHx','dir','Please\x20choose\x20a\x20value\x20for\x20','Please\x20provide\x20a\x20value\x20for\x20','resourceName','Please\x20choose\x20an\x20environment','help','toString','9778356fRQdfn','search','error','ask','No\x20usage\x20provided.','NIE','disableAuthCheck','(((.+)+)+)+$','config','.meteor','Local','assign','experimental','Invalid\x20value\x20for\x20','Please\x20choose\x20a\x20valid\x20value\x20for\x20','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','keys','name','engines','proGenerators','filter','validateEngines','every','concat','remapShortToLong','homedir','1630133jZfgEc','56ICRQui','includes','formatToNamedParam','None','usage','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','charAt','constructor','To\x20use\x20this\x20generator,\x20\x22','exit','description','length','AppData','push','env','8nFpTMr','aliases','win32','options','You\x20must\x20have\x20','isCommand','findProjectDirectory','examples','44838027WwVlXx','477008yAkYnw','find','docker','roles','user','proCommands','indexOf','match','getAppProjectConfigs','domainLicense','string','validateParams','getShortName','Please\x20provide\x20a\x20resource\x20name:','shortDesc','\x20version\x20','5656350FJaand','parent','getPro','singleLicense','1048715tOTRtA','root','existsSync','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','_handler','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','local'];a143c=function(){return a4;};return a143c();}import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x177)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x124;let f=c[d];return f;},a143d(a,b);}import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a143L(0x136)];[a143L(0x150)];['options'];['name'];['parent'];[a143L(0x14c)];constructor(){const M=a143L;this[M(0x136)]=new Docker(),this['fsi']=new FSI();}[a143L(0x140)](a){const N=a143L;return a[N(0x17f)](0x0);}['remapShortToLong'](a,b){const O=a143L,c=this[O(0x17b)](b),d={...a};for(const e of c){const f=this[O(0x140)](e[O(0x16f)]);a[f]&&(d[e[O(0x16f)]]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const P=a143L;if(a[P(0x174)](b=>typeof b===P(0x13e)))return a['map'](b=>({'name':b}));return a;}[a143L(0x13b)](a){const Q=a143L,b=[this[Q(0x16f)]]['concat'](this[Q(0x12e)][Q(0x12c)]||[]);return this['parent']&&b[Q(0x129)](this['parent']),b[Q(0x17a)](a);}['validateMakaProject'](){const R=a143L,a=this[R(0x150)][R(0x131)]();return a!==![]?!![]:![];}async['validateUserIsLoggedIn'](){const S=a143L,a=await this[S(0x150)][S(0x146)]();return a?.[S(0x138)]&&a?.[S(0x138)]!=='guest'?!![]:![];}['validateMeteorInstall'](){const T=a143L,a=process[T(0x153)]===T(0x12d);if(a){if(!a143g[T(0x14a)](a143e['join'](homeDir,T(0x128),T(0x168),T(0x167))))return![];}else{if(!a143g[T(0x14a)](a143e['join'](homeDir,T(0x167))))return![];}return!![];}[a143L(0x173)](a){const U=a143L,b=this[U(0x150)]['getMakaProjectConfig'](),c=b[U(0x170)],d=Object[U(0x16e)](a);if(d['length']>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0x160)](U(0x12f)+e+U(0x143)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a143L(0x13f)](a,b,c){const V=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h['includes'](V(0x15a))&&b['resourceName']===undefined&&!g){const m=await Actions[V(0x161)](V(0x141));b['resourceName']=m;}let i=[],j=b;if(d){i=this[V(0x17b)](d),j=this[V(0x176)](b,i);if(i&&i?.[V(0x127)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[V(0x16e)](j)['includes'](o)){if(o==='env'){const r=this[V(0x150)][V(0x13c)]()[V(0x172)](t=>t!==V(0x14e));r[V(0x127)]===0x0&&(Log[V(0x160)](V(0x16d)),process[V(0x125)](0x1));const s=await Actions[V(0x12e)]({'type':V(0x154),'name':V(0x12a),'message':V(0x15b),'choices':r});b['env']=s['env'];}else{const t=p;if(t){const u=await Actions[V(0x12e)]({'type':V(0x154),'name':o,'message':V(0x158)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0x161)](V(0x159)+o);if(v[V(0x13b)](q))b[o]=v;else{Log[V(0x160)](V(0x16b)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask']('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[V(0x17a)](x)){Log[V(0x160)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0x17b)](f),l=b;if(k&&Object[V(0x16e)](k)?.[V(0x127)]>0x0){k=k[V(0x175)](i||[]),k[V(0x129)]({'name':V(0x15a),'hidden':!![]}),k[V(0x129)]({'name':V(0x15c),'boolFlag':!![]}),k[V(0x129)]({'name':V(0x157),'hidden':!![]}),k['push']({'name':'cwd','hidden':!![]}),k[V(0x129)]({'name':V(0x149),'hidden':!![]}),k[V(0x129)]({'name':V(0x166),'hidden':!![]}),l=this['remapShortToLong'](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[V(0x17a)](B))){const C=A;if(C){const D=await Actions[V(0x12e)]({'type':V(0x154),'name':z,'message':V(0x16c)+z,'choices':A});l[z]=D[z];}}if(k[V(0x127)]>0x0)for(const E of Object['keys'](l)){const F=k[V(0x135)](G=>G['name']===E);if(!F){Log[V(0x160)](V(0x14f)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[V(0x17a)](G)){Log[V(0x160)](V(0x155)+G);const H=await Actions[V(0x161)](V(0x14d)+G);a[a[V(0x13a)](G)]=H;}}return Object[V(0x169)](j,l);}async['validateMakaSubscription'](a){const W=a143L;try{if(!a)return;const b=await this[W(0x150)][W(0x146)]();!b&&(Log['error'](W(0x17e)),process['exit'](0x1));const c=!b?.[W(0x137)][W(0x17a)](W(0x147))&&!b?.[W(0x137)][W(0x17a)](W(0x13d));if(this[W(0x130)](a)){const d='To\x20use\x20this\x20command,\x20\x22'+a[W(0x16f)]+W(0x14b);if(a[W(0x12e)][W(0x164)])return;const f=b?.['proCommands'][W(0x17a)](a['name'])||b?.[W(0x139)]['includes'](a[W(0x145)]||'')||this['options'][W(0x151)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.['proGenerators']['includes'](a['name'])||b?.[W(0x171)][W(0x17a)](a[W(0x145)]||'');if(g&&c)throw W(0x124)+a[W(0x16f)]+W(0x14b);}}}catch(h){Log[W(0x160)](h),process[W(0x125)](0x1);}}[a143L(0x130)](a){return'options'in a;}['isGenerator'](a){const X=a143L;return!(X(0x12e)in a);}[a143L(0x126)](){const Y=a143L;return this[Y(0x12e)][Y(0x126)]||this['options']['shortDesc']||'No\x20description\x20provided.';}[a143L(0x142)](){const Z=a143L;return this[Z(0x12e)][Z(0x142)]||Z(0x163);}['usage'](){const a0=a143L;return this[a0(0x12e)][a0(0x17d)]||a0(0x162);}[a143L(0x132)](){const a1=a143L;return this[a1(0x12e)]['examples']||[];}[a143L(0x12c)](){const a2=a143L;return this[a2(0x12e)]['aliases']||a2(0x17c);}[a143L(0x16a)](){const a3=a143L;return this[a3(0x12e)]['experimental']||![];}}
1
+ function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0xb0;let f=c[d];return f;},a143d(a,b);}const a143L=a143d;function a143c(){const a2=['singleLicense','validateMakaSubscription','docker','Invalid\x20value\x20for\x20','Local','8628sYfJIy','fsi','getShortName','remapShortToLong','49DJPlsL','Invalid\x20argument:\x20','assign','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','No\x20description\x20provided.','homedir','findProjectDirectory','concat','name','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','parent','160aeMWOS','_handler','4745196zUGQLg','toString','experimental','help','length','801944uzWjmi','roles','22bAqZOX','Please\x20provide\x20a\x20value\x20for\x20','string','None','examples','To\x20use\x20this\x20command,\x20\x22','existsSync','Please\x20choose\x20an\x20environment','options','validateMeteorInstall','disableAuthCheck','cwd','getPro','map','push','usage','Please\x20choose\x20a\x20valid\x20value\x20for\x20','62015ehCDmO','exit','proCommands','validateEngines','match','proGenerators','ask','To\x20use\x20this\x20generator,\x20\x22','aliases','isGenerator','constructor','config','No\x20usage\x20provided.','env','2249605bZnYlI','keys','dir','validateParams','resourceName','description','getMakaProjectConfig','validateUserIsLoggedIn','212vqUAyb','platform','list','error','formatToNamedParam','filter','local','search','every','shortDesc','apply','Invalid\x20option:\x20','Please\x20choose\x20a\x20value\x20for\x20','engines','includes','704056NjiqCs','\x20version\x20','root','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','AppData','621765yufWlJ'];a143c=function(){return a2;};return a143c();}(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0xb1))/0x1*(parseInt(I(0xf9))/0x2)+-parseInt(I(0xe1))/0x3*(parseInt(I(0xc7))/0x4)+parseInt(I(0xbf))/0x5+-parseInt(I(0xf2))/0x6+-parseInt(I(0xe5))/0x7*(-parseInt(I(0xd6))/0x8)+parseInt(I(0xdb))/0x9+-parseInt(I(0xf0))/0xa*(-parseInt(I(0xf7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0xa50dc));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0xd1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0xf3)]()[K(0xce)]('(((.+)+)+)+$')['toString']()[K(0xbb)](a143a)[K(0xce)]('(((.+)+)+)+$');});a143a();import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0xea)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{['docker'];[a143L(0xe2)];['options'];[a143L(0xed)];[a143L(0xef)];[a143L(0xf1)];constructor(){const M=a143L;this[M(0xde)]=new Docker(),this['fsi']=new FSI();}['getShortName'](a){return a['charAt'](0x0);}[a143L(0xe4)](a,b){const N=a143L,c=this[N(0xcb)](b),d={...a};for(const e of c){const f=this[N(0xe3)](e['name']);a[f]&&(d[e[N(0xed)]]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const O=a143L;if(a[O(0xcf)](b=>typeof b===O(0xfb)))return a[O(0x106)](b=>({'name':b}));return a;}['match'](a){const P=a143L,b=[this[P(0xed)]][P(0xec)](this[P(0x101)][P(0xb9)]||[]);return this[P(0xef)]&&b[P(0x107)](this[P(0xef)]),b[P(0xd5)](a);}['validateMakaProject'](){const Q=a143L,a=this[Q(0xe2)][Q(0xeb)]();return a!==![]?!![]:![];}async[a143L(0xc6)](){return!![];}[a143L(0x102)](){const R=a143L,a=process[R(0xc8)]==='win32';if(a){if(!a143g[R(0xff)](a143e['join'](homeDir,R(0xda),R(0xe0),'.meteor')))return![];}else{if(!a143g[R(0xff)](a143e['join'](homeDir,'.meteor')))return![];}return!![];}[a143L(0xb4)](a){const S=a143L,b=this[S(0xe2)][S(0xc5)](),c=b[S(0xd4)],d=Object[S(0xc0)](a);if(d[S(0xf6)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[S(0xca)]('You\x20must\x20have\x20'+e+S(0xd7)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a143L(0xc2)](a,b,c){const T=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[T(0xc0)](b);if(h['includes'](T(0xc3))&&b[T(0xc3)]===undefined&&!g){const m=await Actions[T(0xb7)]('Please\x20provide\x20a\x20resource\x20name:');b[T(0xc3)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this['remapShortToLong'](b,i);if(i&&i?.[T(0xf6)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object['keys'](j)[T(0xd5)](o)){if(o===T(0xbe)){const r=this[T(0xe2)]['getAppProjectConfigs']()[T(0xcc)](t=>t!==T(0xcd));r[T(0xf6)]===0x0&&(Log['error'](T(0xe8)),process[T(0xb2)](0x1));const s=await Actions['options']({'type':T(0xc9),'name':T(0xbe),'message':T(0x100),'choices':r});b['env']=s[T(0xbe)];}else{const t=p;if(t){const u=await Actions[T(0x101)]({'type':T(0xc9),'name':o,'message':T(0xd3)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[T(0xb7)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[T(0xb5)](q))b[o]=v;else{Log[T(0xca)](T(0xdf)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[T(0xb7)](T(0xfa)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[T(0xd5)](x)){Log[T(0xca)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this['formatToNamedParam'](f),l=b;if(k&&Object['keys'](k)?.[T(0xf6)]>0x0){k=k['concat'](i||[]),k[T(0x107)]({'name':T(0xc3),'hidden':!![]}),k[T(0x107)]({'name':T(0xf5),'boolFlag':!![]}),k['push']({'name':T(0xc1),'hidden':!![]}),k['push']({'name':T(0x104),'hidden':!![]}),k[T(0x107)]({'name':T(0xd8),'hidden':!![]}),k['push']({'name':T(0xbc),'hidden':!![]}),l=this[T(0xe4)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[T(0xd5)](B))){const C=A;if(C){const D=await Actions[T(0x101)]({'type':'list','name':z,'message':T(0xb0)+z,'choices':A});l[z]=D[z];}}if(k[T(0xf6)]>0x0)for(const E of Object[T(0xc0)](l)){const F=k['find'](G=>G[T(0xed)]===E);if(!F){Log['error'](T(0xd2)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[T(0xd5)](G)){Log[T(0xca)](T(0xe6)+G);const H=await Actions[T(0xb7)](T(0xd9)+G);a[a['indexOf'](G)]=H;}}return Object[T(0xe7)](j,l);}async[a143L(0xdd)](a){const U=a143L;try{if(!a)return;const b=await this[U(0xe2)][U(0x105)]();!b&&(Log['error']('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const c=!b?.[U(0xf8)][U(0xd5)](U(0xdc))&&!b?.[U(0xf8)][U(0xd5)]('domainLicense');if(this['isCommand'](a)){const d=U(0xfe)+a[U(0xed)]+U(0xee);if(a[U(0x101)][U(0x103)])return;const f=b?.[U(0xb3)][U(0xd5)](a[U(0xed)])||b?.[U(0xb3)][U(0xd5)](a[U(0xef)]||'')||this[U(0x101)]['isPro'];if(f&&c)throw d;}else{if(this[U(0xba)](a)){const g=b?.[U(0xb6)]['includes'](a[U(0xed)])||b?.[U(0xb6)][U(0xd5)](a['parent']||'');if(g&&c)throw U(0xb8)+a[U(0xed)]+U(0xee);}}}catch(h){Log[U(0xca)](h),process[U(0xb2)](0x1);}}['isCommand'](a){const V=a143L;return V(0x101)in a;}[a143L(0xba)](a){return!('options'in a);}['description'](){const W=a143L;return this[W(0x101)][W(0xc4)]||this[W(0x101)]['shortDesc']||W(0xe9);}[a143L(0xd0)](){const X=a143L;return this[X(0x101)]['shortDesc']||'NIE';}[a143L(0x108)](){const Y=a143L;return this[Y(0x101)][Y(0x108)]||Y(0xbd);}[a143L(0xfd)](){const Z=a143L;return this[Z(0x101)][Z(0xfd)]||[];}['aliases'](){const a0=a143L;return this['options']['aliases']||a0(0xfc);}[a143L(0xf4)](){const a1=a143L;return this['options'][a1(0xf4)]||![];}}
@@ -1 +1 @@
1
- const a144h=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=parseInt(f(0x130))/0x1+-parseInt(f(0x12e))/0x2*(parseInt(f(0x135))/0x3)+parseInt(f(0x136))/0x4*(parseInt(f(0x12b))/0x5)+-parseInt(f(0x12a))/0x6+-parseInt(f(0x12f))/0x7+-parseInt(f(0x132))/0x8+parseInt(f(0x12d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x8ec69));function a144c(){const l=['17726jtzdnu','2121091CPAfmu','118616mWzocz','input','6659024PoZhYx','search','(((.+)+)+)+$','372DFSUhM','4HFhbAQ','toString','ask','options','prompt','confirm','constructor','1117794Zejfnm','2932055GWetNP','answer','20704356OiOSRc'];a144c=function(){return l;};return a144c();}const a144b=(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;};}()),a144a=a144b(this,function(){const g=a144d;return a144a[g(0x124)]()[g(0x133)](g(0x134))['toString']()[g(0x129)](a144a)['search'](g(0x134));});a144a();function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x124;let f=c[d];return f;},a144d(a,b);}import a144e from'inquirer';export class Actions{static async[a144h(0x125)](a,b){const i=a144h,{answer:c}=await a144e['prompt']({'type':b?'password':i(0x131),'name':i(0x12c),'message':a});return c;}static async[a144h(0x128)](a,b=![]){const j=a144h,{answer:c}=await a144e[j(0x127)]({'type':j(0x128),'name':j(0x12c),'message':a,'default':b});return c;}static async[a144h(0x126)](a){const k=a144h,b=await a144e[k(0x127)](a);return b;}}
1
+ const a144j=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=parseInt(f(0x1d3))/0x1*(parseInt(f(0x1c8))/0x2)+-parseInt(f(0x1cd))/0x3*(parseInt(f(0x1cc))/0x4)+parseInt(f(0x1c6))/0x5+parseInt(f(0x1ca))/0x6+-parseInt(f(0x1d5))/0x7+-parseInt(f(0x1d6))/0x8+parseInt(f(0x1d1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x6de46));const a144b=(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;};}()),a144a=a144b(this,function(){const g=a144d;return a144a[g(0x1c9)]()[g(0x1cb)]('(((.+)+)+)+$')[g(0x1c9)]()[g(0x1cf)](a144a)[g(0x1cb)](g(0x1d0));});a144a();import a144e from'inquirer';function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a144d(a,b);}function a144c(){const l=['(((.+)+)+)+$','4357944yncDoW','answer','868059GfhtJS','options','3231354vUEUEl','3028328jTkzDc','417450TvTMLv','confirm','2eYZtbD','toString','3039942GdGWQu','search','196VrdCnB','39927Iearqj','prompt','constructor'];a144c=function(){return l;};return a144c();}export class Actions{static async['ask'](a,b){const h=a144d,{answer:c}=await a144e[h(0x1ce)]({'type':b?'password':'input','name':h(0x1d2),'message':a});return c;}static async['confirm'](a,b=![]){const i=a144d,{answer:c}=await a144e['prompt']({'type':i(0x1c7),'name':i(0x1d2),'message':a,'default':b});return c;}static async[a144j(0x1d4)](a){const k=a144j,b=await a144e[k(0x1ce)](a);return b;}}
@@ -1 +1 @@
1
- function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x1de;let f=c[d];return f;},a145d(a,b);}const a145s=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=parseInt(p(0x1f5))/0x1+parseInt(p(0x262))/0x2*(parseInt(p(0x21c))/0x3)+-parseInt(p(0x246))/0x4+parseInt(p(0x25f))/0x5+-parseInt(p(0x1e7))/0x6+parseInt(p(0x2c9))/0x7+-parseInt(p(0x28a))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x2a7e4));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x22f)]()[r(0x283)](r(0x2bf))[r(0x22f)]()[r(0x2c2)](a145a)[r(0x283)](r(0x2bf));});a145a();import a145e from'fs';import a145f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';function a145c(){const a8=['exit','success','privateIp','\x20STATUS:\x20','imageId','template','Invalid\x20choice','getEcrLoginPassword','Timeout\x20while\x20processing\x20','tcp','Value','info','error','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','CidrBlock','Pem\x20key\x20saved\x20to\x20','ecrCreateRepository','\x20:\x20','config/ssh.json','\x20Status\x20Code:\x20','585892MvmnNC','\x20CIDR:\x20','vpcId','ec2createSG','statusCode','CreationDate','ap-southeast-2','Subnets','listAllEcrRepositories','**\x20Available\x20Security\x20Groups\x20**','ID:\x20','\x27\x20has\x20been\x20registered\x20successfully.','hvm','\x22\x20created\x20successfully\x20in\x20','bright','ssh.json','sa-east-1','Please\x20choose\x20a\x20VPC:\x20[0]\x20','state','0.0.0.0/0','forEach','The\x20domain\x20\x27','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','\x20NAME:\x20','slice','6190VXviwt','confirm','now','30674InlfKY','Prices','isFile','find','repositories','join','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','...','GroupName','Reservations','\x20Error\x20Rason:\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ca-central-1','eu-north-1','instance','sgIds','ap-northeast-1','key','publicIp','**\x20Available\x20\x20VPCs\x20**','filter','Setting\x20AMI\x20ID\x20to\x20','virtualization-type','chooseVPC','.pem.txt','\x20SUBNETID:\x20','checkDomainAvailability','Repository\x20\x22','x86_64','No\x20subnets\x20found.','Error\x20creating\x20hosted\x20zone','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','tag:created-by','search','ap-northeast-2','map','timeout','authorizationToken','message','me-south-1','174464PWISKR','type','readFileSync','getTime','No\x20images\x20found.','Successfully\x20linked\x20EC2\x20instance\x20','writeFileSync','trim','Web\x20App','registerDomain','ec2describeKeys','listAvailableAMIs','log','subnetId','userData','me-central-1','getSecurityGroups','Setting\x20Subnet\x20ID\x20to\x20','chooseSecurityGroup','_keys','available','ingressRule','\x20AMIID:\x20','us-east-2','root-device-type','pop','linkEC2ToRoute53','pem','Setting\x20SG\x20ID\x20to:\x20','\x20opened!','Created:\x20','UserData','httpStatusCode','reason','Could\x20not\x20find\x20hosted\x20zone','Port\x20','stringify','us-west-2','ecrDeleteRepository','VpcId','ap-south-1','name','getAppConfigPath','eu-south-1','deleteKeyPair','split','ap-southeast-4','\x20VPCID:\x20','UNSUPPORTED','notice','ask','minCount','running','(((.+)+)+)+$','Failed\x20in\x20','$metadata','constructor','Instances','eu-west-2','fsi','authorizationData','RegistrationPrice','eu-central-1','1868685HiQWIL','chooseInstance','HostedZones','ap-southeast-3','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.',',\x20URI:\x20','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','desc','base64','\x20DESCRIPTION:\x20','Description','\x20ENV:\x20','391512myGEsK','machine','Authorization\x20data\x20is\x20empty','getSubnetCidr','environment','send','maka-cli','length','/dev/sdh','concat','Final\x20list\x20of\x20ECR\x20repositories:','apply','uri','sgPorts','124055GWXHDu','warn','push','KeyName','eu-west-1','createKeyPairEC2Key','terminated','\x20to\x20','Canonical*Ubuntu*18.04*','ap-east-1','race','Processing\x20','region','route53CreateHostedZone','config','\x20INSTANCE_ID:\x20',',\x20Name:\x20','Error\x20linking\x20EC2\x20to\x20Route\x2053:','subnet-id','instanceId','createKeyPair','description','status','listHostedZonesByName','nextToken','eu-south-2','Instance\x20rebooted!','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','Availability','us-west-1','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','cidr','Hosted\x20zone\x20created\x20successfully!','\x20SGID:\x20','\x20AZONE:\x20','deleteSecurityGroup','amiId','architecture','From\x20AWS:','3pZaNDY','sgId','Key\x20Name:\x20[','getMakaProjectConfig','GroupId','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','$response','\x20PRIV_IP:\x20','us-east-1','Description:','ap-southeast-1','ap-south-2','date','start','Region:\x20','eu-west-3','eu-central-2','\x20SG\x20NAME:\x20','Error\x20fetching\x20domain\x20pricing:','toString','af-south-1','subnet'];a145c=function(){return a8;};return a145c();}import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a145s(0x2c5)];constructor(){const t=a145s;this[t(0x2c5)]=new FSI();}async[a145s(0x29c)](a){const u=a145s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log['notice'](u(0x24f)),d[u(0x25a)](function(h){const v=u;h['name']===a?Log[v(0x2bb)](v(0x250)+h['id']+v(0x22d)+h[v(0x2b3)]+v(0x216)+h['sgId']):Log[v(0x254)](v(0x250)+h['id']+v(0x22d)+h[v(0x2b3)]+v(0x216)+h[v(0x21d)]);});const g=await Actions['ask']('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+b+']\x20')||b[u(0x22f)]();d[u(0x25a)](function(h){const w=u;h['id']===parseInt(g)&&(f=h[w(0x21d)],Log[w(0x233)](w(0x2a6)+f+'\x0a'));});}else f=c,Log[u(0x233)](u(0x2a6)+f+'\x0a');if(f==='')throw new Error(u(0x1df));return f;}catch(h){Log['error'](h);throw h;}}async[a145s(0x295)](){const x=a145s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':x(0x21a),'Values':[x(0x27e)]},{'Name':x(0x278),'Values':[x(0x252)]},{'Name':x(0x2a2),'Values':['ebs']},{'Name':x(0x258),'Values':[x(0x29e)]},{'Name':'image-type','Values':[x(0x1e8)]},{'Name':x(0x20a),'Values':[x(0x1fd),'Canonical*Ubuntu*20.04*']}]},d=new DescribeImagesCommand(c),{Images:f}=await b[x(0x1ec)](d);if(f&&f[x(0x1ee)]>0x0){const g=new Date(),h=new Date(g['getTime']()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[x(0x276)](j=>j['CreationDate']&&!j[x(0x1e5)]?.['includes'](x(0x2ba))&&new Date(j[x(0x24b)])>h)['map'](j=>({'amiId':j['ImageId'],'desc':j[x(0x1e5)],'date':j[x(0x24b)]}));if(i[x(0x1ee)]>0x0){i['sort']((n,o)=>new Date(o[x(0x228)])[x(0x28d)]()-new Date(n[x(0x228)])[x(0x28d)]());const j=i[x(0x25e)](0x0,0x4),k=j[x(0x285)]((n,o)=>({'id':o,'amiId':n[x(0x219)],'desc':n[x(0x1e2)]}));k[x(0x25a)](n=>{const y=x;Log[y(0x254)]('ID:\x20'+n['id']+y(0x2a0)+n['amiId']+y(0x1e4)+n[y(0x1e2)]);});const l=await Actions['ask'](x(0x213))||'0',m=k['find'](n=>n['id']===parseInt(l));if(m)a=m[x(0x219)],Log['success'](x(0x277)+a+x(0x243)+m[x(0x1e2)]);else throw Log['error'](x(0x1df));}else throw Log['error'](x(0x281));}else throw Log['error'](x(0x28e));}catch(n){Log['error'](n);}return a;}async['listAvailableSubnets'](){const z=a145s;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b['send'](d);if(f&&f[z(0x1ee)]>0x0){const g=f[z(0x285)]((j,k)=>({'id':k,'cidr':j[z(0x240)],'az':j['AvailabilityZone'],'subnetId':j['SubnetId']}));g[z(0x25a)](j=>{const A=z;Log[A(0x254)]('ID:\x20'+j['id']+'\x20CIDR:\x20'+j[A(0x214)]+A(0x217)+j['az']+A(0x27b)+j[A(0x297)]);});const h=await Actions[z(0x2bc)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',i=g[z(0x265)](j=>j['id']===parseInt(h));if(i)a=i[z(0x297)],Log['success'](z(0x29b)+a);else throw Log['error'](z(0x1df));}else throw Log[z(0x23e)](z(0x27f));}catch(j){Log[z(0x23e)](j);}return a;}async[a145s(0x1ea)](a){const B=a145s;try{const b=new EC2Client({}),c={'Filters':[{'Name':B(0x207),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[B(0x1ec)](d);return e[B(0x24d)]&&e[B(0x24d)][B(0x1ee)]>0x0?e[B(0x24d)][0x0][B(0x240)]||'':'';}catch(f){return Log[B(0x23e)](f),'';}}async[a145s(0x242)](a){const C=a145s;try{const b=new ECRClient({'region':a[C(0x201)]}),c={'repositoryName':a[C(0x2b3)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log['success'](C(0x27d)+a[C(0x2b3)]+C(0x253)+a[C(0x201)]+'.'),f;}catch(g){Log[C(0x23e)]('Failed\x20to\x20create\x20repository\x20in\x20'+a[C(0x201)]+':\x20'+g);throw g;}}async[a145s(0x24e)](a){const D=a145s,b=[D(0x224),'us-east-2',D(0x212),D(0x2af),D(0x2b2),'ap-northeast-3',D(0x284),D(0x226),D(0x24c),D(0x272),D(0x26e),D(0x2c8),D(0x1f9),D(0x2c4),D(0x22b),D(0x26f),D(0x256),D(0x230),D(0x1fe),D(0x227),D(0x1de),D(0x2b8),'ca-west-1',D(0x2b5),D(0x20e),D(0x22c),D(0x289),D(0x299),'il-central-1'],c=[D(0x224),D(0x2a1),D(0x212),D(0x2af)],d=a==='all'?b:a?a[D(0x2b7)](','):c;let f=[];const g=Log['withSpinner']();for(const h of d){g[D(0x229)](D(0x200)+h[D(0x291)]()+D(0x269));const i=new ECRClient({'region':h[D(0x291)]()});try{let j=undefined;do{const k=await Promise[D(0x1ff)]([i[D(0x1ec)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(D(0x286)),0x7d0))]);if(k===D(0x286)){Log['warn'](D(0x23a)+h[D(0x291)]()+'.');break;}else k[D(0x266)]&&k[D(0x266)][D(0x1ee)]>0x0&&(f=f[D(0x1f0)](k[D(0x266)][D(0x285)](l=>({'name':l['repositoryName'],'uri':l['repositoryUri'],'region':h['trim']()}))));j=k[D(0x20d)];}while(j);}catch(l){Log[D(0x23e)](D(0x2c0)+h[D(0x291)]()+':\x20'+l[D(0x288)]);}finally{g['stop']();}}return f[D(0x1ee)]>0x0?(console[D(0x296)](),Log[D(0x233)](D(0x1f1)),f[D(0x25a)](m=>{const E=D;Log[E(0x23d)](E(0x22a)+m[E(0x201)]+E(0x205)+m[E(0x2b3)]+E(0x1e0)+m[E(0x1f3)]);})):Log[D(0x1f6)](D(0x221)),f;}async[a145s(0x202)](a){const F=a145s;try{const b={'CallerReference':''+Date[F(0x261)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[F(0x1ec)](c),Log[F(0x233)](F(0x215));}catch(d){Log[F(0x23e)](F(0x280)),console['error'](d);}}async[a145s(0x293)](a,b,c,d){const G=a145s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[G(0x1ec)](f),Log[G(0x2bb)](G(0x25b)+b+G(0x251));}catch(g){Log[G(0x23e)](G(0x23f)),Log['warn'](G(0x21b)),console[G(0x23e)](G(0x245)+g[G(0x222)][G(0x24a)]),console[G(0x23e)](G(0x26c)+g[G(0x222)][G(0x2ab)]);}}async[a145s(0x27c)](a){const H=a145s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[H(0x211)]==='AVAILABLE';if(e){const f=a[H(0x2b7)]('.')[H(0x2a3)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[H(0x1ec)](h);if(i&&i[H(0x263)]&&i[H(0x263)][0x0]?.['RegistrationPrice']){const j=i[H(0x263)][0x0][H(0x2c7)];return{'available':e,'cost':j};}}catch(k){console[H(0x23e)](H(0x22e),k);}}return{'available':e};}async[a145s(0x2a4)](a,b,c){const I=a145s;try{const d=await route53[I(0x20c)]({'DNSName':c});if(!d?.[I(0x2cb)])throw Log[I(0x23e)](I(0x2ac));const e=d?.[I(0x2cb)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log[I(0x2bb)](I(0x28f)+a+I(0x1fc)+c);}catch(g){console[I(0x23e)](I(0x206),g);}}async[a145s(0x239)]({awsAccountId:a,region:b}){const J=a145s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[J(0x1ec)](d);if(!f[J(0x2c6)]||f['authorizationData']['length']===0x0)throw new Error(J(0x1e9));const g=f[J(0x2c6)][0x0];if(!g['authorizationToken'])throw new Error('Authorization\x20token\x20is\x20missing');const h=g[J(0x287)];if(!h)throw new Error(J(0x1e1));const i=Buffer['from'](h,J(0x1e3))['toString'](),j=i[J(0x2b7)](':')[0x1];if(!j)throw new Error('Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token');return j;}catch(k){Log[J(0x23e)](k);throw k;}}async[a145s(0x2b0)]({repoName:a,region:b}){const K=a145s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[K(0x1ec)](d);return f;}catch(g){Log[K(0x23e)](g);throw g;}}async['ec2create'](a){const L=a145s;try{const b={'BlockDeviceMappings':[{'DeviceName':L(0x1ef),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[L(0x236)],'InstanceType':a[L(0x28b)],'KeyName':a[L(0x273)],'MaxCount':a['maxCount'],'MinCount':a[L(0x2bd)],'SecurityGroupIds':a[L(0x271)]['split'](','),'SubnetId':a[L(0x231)],'TagSpecifications':[{'ResourceType':L(0x270),'Tags':a['tags']}]};a[L(0x298)]&&(b[L(0x2a9)]='file://'+a['userData']);const c=new RunInstancesCommand(b),d=await client[L(0x1ec)](c);return d;}catch(f){Log[L(0x23e)](f);}}async['ec2terminateInstance'](a){const M=a145s;try{const b={'InstanceIds':[a[M(0x208)]]},c=new TerminateInstancesCommand(b),d=await client[M(0x1ec)](c);return d;}catch(f){return Log[M(0x23e)](f),{};}}async[a145s(0x1fa)]({keyName:a,env:b}){const N=a145s,c=this[N(0x2c5)][N(0x2b4)](b),d=a145f[N(0x267)](c,N(0x29d),a+N(0x27a));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[N(0x1ec)](g),i=h['KeyMaterial'];if(i){await this['fsi']['createFile']({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':'ignore'});const j=this[N(0x2c5)][N(0x264)](d);if(j)return Log['success'](N(0x241)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[N(0x23e)](k),process[N(0x232)](0x1);}}async[a145s(0x29f)]({port:a,groupId:b}){const O=a145s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':O(0x23b),'IpRanges':[{'CidrIp':O(0x259),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[O(0x2bb)](O(0x2ad)+a+O(0x2a7)),await client[O(0x1ec)](d);}async[a145s(0x249)](a){const P=a145s;try{a[P(0x20a)]===''&&(a[P(0x20a)]=await Actions[P(0x2bc)](P(0x225))||P(0x292));const b={'Description':a[P(0x20a)],'GroupName':a[P(0x2b3)],'VpcId':a[P(0x248)]},c=new CreateSecurityGroupCommand(b),d=await client[P(0x1ec)](c),{GroupId:f}=d;if(!d)throw new Error(P(0x26d));f&&a[P(0x1f4)][P(0x25a)](g=>{const Q=P;this[Q(0x29f)]({'port':parseInt(g),'groupId':f});}),Log[P(0x233)](P(0x2a8)+f+'\x20NAME:\x20'+a[P(0x2b3)]);}catch(g){return Log[P(0x23e)](g),![];}return!![];}async[a145s(0x294)](a){const R=a145s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[R(0x1ec)](d);if(!f)throw R(0x26d);const {KeyPairs:g}=f;g?(g?.[R(0x25a)]((h,i)=>{const S=R;h['KeyName']&&b[S(0x1f7)]({'id':i,'name':h[S(0x1f8)]});}),b[R(0x1ee)]>0x0&&b[R(0x25a)](h=>{const T=R;h[T(0x2b3)]===a?.['suggestion']?Log[T(0x233)](T(0x250)+h['id']+T(0x25d)+h['name']):Log[T(0x2bb)]('ID:\x20'+h['id']+T(0x25d)+h[T(0x2b3)]);})):Log[R(0x23e)](R(0x25c));}catch(h){Log[R(0x23e)](h);}return b;}async[a145s(0x2b6)](a){const U=a145s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[U(0x1ec)](c);}catch(d){Log['error'](d),process['exit'](0x1);}}async['ec2describeInstances'](){const V=a145s,a=[];try{const b={'Filters':[{'Name':V(0x282),'Values':[V(0x1ed)]}]},c=new DescribeInstancesCommand(b),d=await client[V(0x1ec)](c);d[V(0x26b)]?.[V(0x25a)]((f,g)=>{const W=V;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[W(0x2c3)][0x0],n=m?.['find'](({Key:o})=>o===W(0x1eb));a[W(0x1f7)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[W(0x23c)]});}}),a['length']>0x0?a[V(0x25a)](f=>{const X=V,g=X(0x250)+f['id']+X(0x25d)+f['name']+X(0x1e6)+f['env']+X(0x235)+f[X(0x20b)]+X(0x204)+f[X(0x208)]+'\x20PUB_IP:\x20'+f[X(0x274)]+X(0x223)+f[X(0x234)];if(f[X(0x20b)]===X(0x1fb))Log[X(0x23e)](g);else f[X(0x20b)]===X(0x2be)?Log[X(0x233)](g):Log[X(0x2bb)](g);}):Log[V(0x23e)](V(0x210));}catch(f){Log['error'](f);}return a;}async['ec2rebootInstance'](a){const Y=a145s;try{const b={'InstanceIds':[a[Y(0x208)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[Y(0x2c1)][Y(0x2aa)]===0xc8&&Log[Y(0x233)](Y(0x20f)),d;}catch(f){Log['error'](f);}}async[a145s(0x279)](){const Z=a145s;let a='';Log['notice'](Z(0x275));const b=new DescribeVpcsCommand({}),c=await client[Z(0x1ec)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const a0=Z;g['VpcId']&&g[a0(0x240)]&&e[a0(0x1f7)]({'id':h,'vpcId':g[a0(0x2b1)],'cidr':g[a0(0x240)]});});e[Z(0x25a)](function(g){const a1=Z;console['log'](a1(0x250)+g['id']+a1(0x2b9)+g[a1(0x248)]+a1(0x247)+g[a1(0x214)]);});const f=await Actions[Z(0x2bc)](Z(0x257))||0x0;e[Z(0x25a)](function(g){const a2=Z;g['id']==f&&(a=g[a2(0x248)],Log[a2(0x233)](a2(0x268)+a+'\x0a'));});if(a==='')return Log['error'](Z(0x1df)),'';return a;}async[a145s(0x2ca)](){const a3=a145s,a=await this['ec2describeInstances']();if(a[a3(0x1ee)]===0x0)return Log[a3(0x23e)]('No\x20instances\x20found'),null;const b=await Actions[a3(0x2bc)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[a3(0x23e)](a3(0x238)),process[a3(0x232)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145s(0x209)]({env:a}){const a4=a145s,b=this[a4(0x2c5)][a4(0x21f)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](a4(0x21e)+d+']\x20')||d,{filePath:g}=await this[a4(0x1fa)]({'keyName':f,'env':a});try{const h=await Actions[a4(0x260)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a145f['join'](a4(0x203),a,a4(0x255));!this[a4(0x2c5)][a4(0x264)](i)&&await this[a4(0x2c5)][a4(0x237)]({'srcPath':a4(0x244),'destPath':i,'context':{'app':f}});const j=a145e[a4(0x28c)](a145f[a4(0x267)](a4(0x203),a,'ssh.json'),'utf8'),k=JSON['parse'](j);k[a4(0x2a5)]=a145f[a4(0x267)](a4(0x29d),f+a4(0x27a)),a145e[a4(0x290)](a145f[a4(0x267)](a4(0x203),a,a4(0x255)),JSON[a4(0x2ae)](k,null,0x2));}catch(l){Log[a4(0x23e)](l),Log['error']('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(m){Log[a4(0x23e)](m),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async[a145s(0x29a)](a){const a5=a145s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a5(0x1ec)](d),{SecurityGroups:f}=e;f&&f[a5(0x25a)](function(i,j){const a6=a5;i[a6(0x26a)]&&i[a6(0x220)]&&b[a6(0x1f7)]({'id':j,'name':i['GroupName'],'sgId':i['GroupId']});});let g='',h=0x0;return b[a5(0x25a)](function(i){const a7=a5;i[a7(0x2b3)]===a&&(g=i[a7(0x21d)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145s(0x218)](a){try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log['error'](d),process['exit'](0x1);}}}
1
+ const a145r=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=-parseInt(p(0x18b))/0x1*(parseInt(p(0x1a0))/0x2)+parseInt(p(0x10c))/0x3*(parseInt(p(0x170))/0x4)+-parseInt(p(0x182))/0x5+-parseInt(p(0xd8))/0x6*(-parseInt(p(0x190))/0x7)+parseInt(p(0x15a))/0x8*(-parseInt(p(0x17f))/0x9)+parseInt(p(0x17d))/0xa+parseInt(p(0x176))/0xb*(parseInt(p(0x13b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x3c73b));const a145b=(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;};}()),a145a=a145b(this,function(){const q=a145d;return a145a[q(0x158)]()[q(0x1a1)](q(0x161))[q(0x158)]()['constructor'](a145a)[q(0x1a1)](q(0x161));});a145a();function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0xcc;let f=c[d];return f;},a145d(a,b);}import a145e from'fs';import a145f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';function a145c(){const a6=['KeyMaterial','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','imageId','terminated','Region:\x20','deleteSecurityGroup','deleteKeyPair','ec2createSG','timeout','Description:','name','185966YOBnEg','search','environment','repositoryName','filter','$metadata','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','ssh.json','send','Successfully\x20linked\x20EC2\x20instance\x20','AvailabilityZone','Repository\x20\x22','UPSERT','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','tags','eu-central-1','**\x20Available\x20\x20VPCs\x20**','instance','message','Please\x20choose\x20a\x20VPC:\x20[0]\x20','publicIp','CidrBlock','listAllEcrRepositories','exit','\x20to\x20','Error\x20generating\x20key\x20pair','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','available','start','warn','httpStatusCode','Setting\x20SG\x20ID\x20to:\x20','now','ec2rebootInstance','Setting\x20Subnet\x20ID\x20to\x20','\x20AMIID:\x20','HostedZones','getSecurityGroups','route53CreateHostedZone','us-west-2','390ftDsNR','ap-northeast-3','Could\x20not\x20find\x20hosted\x20zone','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','cidr','userData','error','Authorization\x20token\x20is\x20missing','getTime','Name','status','\x20VPCID:\x20','createKeyPair','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','il-central-1','instanceId','GroupId','stop','checkDomainAvailability','sgPorts','registerDomain','_keys','sgId','machine','tcp','Error\x20saving\x20pem\x20file,\x20aborting','minCount','\x27\x20has\x20been\x20registered\x20successfully.','Instance\x20rebooted!','statusCode','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','reason','getSubnetCidr','\x22\x20created\x20successfully\x20in\x20','split','repositories','uri','log','running','ap-east-1','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','bright','No\x20instances\x20found','eu-north-1','map','RegistrationPrice','us-east-2','trim','Web\x20App','config','SubnetId','base64','4269jQQFkS',',\x20URI:\x20','maka-cli','maxCount','fsi','Description','us-west-1','\x20NAME:\x20','utf8','info','subnet-id','Value','notice','isFile','forEach','createKeyPairEC2Key','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','$response','ec2terminateInstance','ap-south-1','\x20SGID:\x20','No\x20subnets\x20found.','key','VpcId','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','writeFileSync','Processing\x20','\x20SUBNETID:\x20','chooseSecurityGroup','all','Failed\x20to\x20create\x20repository\x20in\x20','\x20INSTANCE_ID:\x20','sgIds','type','state','ap-southeast-4','amiId','Error\x20fetching\x20domain\x20pricing:','ecrDeleteRepository','.pem.txt','Reservations','us-east-1','Error\x20creating\x20hosted\x20zone','ebs','ap-northeast-2','vpcId','confirm','60LpStih','Key\x20Name:\x20[','ap-northeast-1','ID:\x20','ap-southeast-1','linkEC2ToRoute53','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','\x20PUB_IP:\x20','\x20Error\x20Rason:\x20','\x20Status\x20Code:\x20','region','getAppConfigPath','\x20SG\x20NAME:\x20','Pem\x20key\x20saved\x20to\x20','Authorization\x20data\x20is\x20empty','GroupName','Prices','ca-west-1','file://','architecture','includes','find','\x20AZONE:\x20','pop','listAvailableAMIs','Port\x20','date','ingressRule','ec2describeKeys','toString','authorizationData','384QPoIRS','ecrCreateRepository','success','Failed\x20in\x20','ignore','af-south-1','chmod\x20400\x20','(((.+)+)+)+$','\x20STATUS:\x20','Final\x20list\x20of\x20ECR\x20repositories:','eu-west-3','eu-west-1','me-central-1','length','eu-west-2','env','Canonical*Ubuntu*20.04*','listAvailableSubnets','\x20DESCRIPTION:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','config/ssh.json','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','1352rvohpj','eu-central-2','hvm','ap-southeast-3','repositoryUri','image-type','612722DFVeoF','description','desc','Instances','...','Subnets','Timeout\x20while\x20processing\x20','733140eRJJex','push','42435lxubCV','nextToken','me-south-1','1027165iiqLMw','\x20CIDR:\x20','UNSUPPORTED','chooseVPC','AVAILABLE','listHostedZonesByName','authorizationToken','CreationDate','Setting\x20AMI\x20ID\x20to\x20','3QokKNF','Canonical*Ubuntu*18.04*','ec2create','ap-south-2','ask','13517McRIMV','sa-east-1','parse','No\x20images\x20found.','subnetId'];a145c=function(){return a6;};return a145c();}import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a145r(0x110)];constructor(){const s=a145r;this[s(0x110)]=new FSI();}async[a145r(0x128)](a){const t=a145r;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[t(0xd5)](a);let f='';if(c===''){Log[t(0x118)]('**\x20Available\x20Security\x20Groups\x20**'),d[t(0x11a)](function(h){const u=t;h[u(0x19f)]===a?Log[u(0x118)]('ID:\x20'+h['id']+'\x20SG\x20NAME:\x20'+h[u(0x19f)]+u(0x120)+h[u(0xee)]):Log[u(0x101)](u(0x13e)+h['id']+u(0x147)+h['name']+u(0x120)+h[u(0xee)]);});const g=await Actions[t(0x18f)](t(0x124)+b+']\x20')||b[t(0x158)]();d[t(0x11a)](function(h){const v=t;h['id']===parseInt(g)&&(f=h[v(0xee)],Log[v(0x15c)](v(0xcf)+f+'\x0a'));});}else f=c,Log[t(0x15c)](t(0xcf)+f+'\x0a');if(f==='')throw new Error(t(0x16f));return f;}catch(h){Log['error'](h);throw h;}}async[a145r(0x153)](){const w=a145r;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':w(0x14e),'Values':['x86_64']},{'Name':'virtualization-type','Values':[w(0x172)]},{'Name':'root-device-type','Values':[w(0x137)]},{'Name':w(0x12e),'Values':[w(0x1bb)]},{'Name':w(0x175),'Values':[w(0xef)]},{'Name':w(0x177),'Values':[w(0x18c),w(0x16a)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b['send'](d);if(f&&f[w(0x167)]>0x0){const g=new Date(),h=new Date(g[w(0xe0)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[w(0x1a4)](j=>j[w(0x189)]&&!j['Description']?.[w(0x14f)](w(0x184))&&new Date(j[w(0x189)])>h)[w(0x104)](j=>({'amiId':j['ImageId'],'desc':j[w(0x111)],'date':j[w(0x189)]}));if(i['length']>0x0){i['sort']((n,o)=>new Date(o[w(0x155)])[w(0xe0)]()-new Date(n[w(0x155)])[w(0xe0)]());const j=i['slice'](0x0,0x4),k=j[w(0x104)]((n,o)=>({'id':o,'amiId':n[w(0x130)],'desc':n['desc']}));k[w(0x11a)](n=>{const x=w;Log['bright']('ID:\x20'+n['id']+x(0xd3)+n[x(0x130)]+x(0x16c)+n[x(0x178)]);});const l=await Actions[w(0x18f)](w(0x16d))||'0',m=k[w(0x150)](n=>n['id']===parseInt(l));if(m)a=m[w(0x130)],Log['success'](w(0x18a)+a+'\x20:\x20'+m[w(0x178)]);else throw Log['error'](w(0x16f));}else throw Log['error'](w(0x1ad));}else throw Log[w(0xde)](w(0x193));}catch(n){Log[w(0xde)](n);}return a;}async[a145r(0x16b)](){const y=a145r;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[y(0x1a8)](d);if(f&&f[y(0x167)]>0x0){const g=f[y(0x104)]((j,k)=>({'id':k,'cidr':j[y(0x1b5)],'az':j[y(0x1aa)],'subnetId':j[y(0x10a)]}));g[y(0x11a)](j=>{const z=y;Log[z(0x101)](z(0x13e)+j['id']+'\x20CIDR:\x20'+j['cidr']+z(0x151)+j['az']+z(0x127)+j[z(0x194)]);});const h=await Actions[y(0x18f)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',i=g['find'](j=>j['id']===parseInt(h));if(i)a=i[y(0x194)],Log[y(0x15c)](y(0xd2)+a);else throw Log[y(0xde)](y(0x16f));}else throw Log[y(0xde)](y(0x121));}catch(j){Log[y(0xde)](j);}return a;}async[a145r(0xf8)](a){const A=a145r;try{const b=new EC2Client({}),c={'Filters':[{'Name':A(0x116),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[A(0x1a8)](d);return e['Subnets']&&e[A(0x17b)][A(0x167)]>0x0?e[A(0x17b)][0x0][A(0x1b5)]||'':'';}catch(f){return Log[A(0xde)](f),'';}}async[a145r(0x15b)](a){const B=a145r;try{const b=new ECRClient({'region':a[B(0x145)]}),c={'repositoryName':a[B(0x19f)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log['success'](B(0x1ab)+a[B(0x19f)]+B(0xf9)+a['region']+'.'),f;}catch(g){Log[B(0xde)](B(0x12a)+a[B(0x145)]+':\x20'+g);throw g;}}async[a145r(0x1b6)](a){const C=a145r,b=[C(0x135),C(0x106),'us-west-1',C(0xd7),C(0x11f),C(0xd9),C(0x138),C(0x13f),'ap-southeast-2',C(0x13d),'ca-central-1',C(0x1af),C(0x165),C(0x168),C(0x164),C(0x103),C(0x191),C(0x15f),C(0xff),C(0x18e),C(0x173),C(0x12f),C(0x14c),'eu-south-1','eu-south-2',C(0x171),C(0x181),C(0x166),C(0xe6)],c=[C(0x135),C(0x106),C(0x112),C(0xd7)],d=a===C(0x129)?b:a?a[C(0xfa)](','):c;let f=[];const g=Log['withSpinner']();for(const h of d){g[C(0xcc)](C(0x126)+h[C(0x107)]()+C(0x17a));const i=new ECRClient({'region':h[C(0x107)]()});try{let j=undefined;do{const k=await Promise['race']([i['send'](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(C(0x19d)),0x7d0))]);if(k===C(0x19d)){Log[C(0xcd)](C(0x17c)+h[C(0x107)]()+'.');break;}else k[C(0xfb)]&&k[C(0xfb)][C(0x167)]>0x0&&(f=f['concat'](k[C(0xfb)][C(0x104)](l=>({'name':l[C(0x1a3)],'uri':l[C(0x174)],'region':h[C(0x107)]()}))));j=k[C(0x180)];}while(j);}catch(l){Log[C(0xde)](C(0x15d)+h[C(0x107)]()+':\x20'+l[C(0x1b2)]);}finally{g[C(0xe9)]();}}return f[C(0x167)]>0x0?(console[C(0xfd)](),Log['success'](C(0x163)),f[C(0x11a)](m=>{const D=C;Log[D(0x115)](D(0x199)+m['region']+',\x20Name:\x20'+m[D(0x19f)]+D(0x10d)+m[D(0xfc)]);})):Log[C(0xcd)](C(0xf6)),f;}async[a145r(0xd6)](a){const E=a145r;try{const b={'CallerReference':''+Date[E(0xd0)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[E(0x15c)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[E(0xde)](E(0x136)),console[E(0xde)](d);}}async[a145r(0xec)](a,b,c,d){const F=a145r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[F(0x1a8)](f),Log['notice']('The\x20domain\x20\x27'+b+F(0xf3));}catch(g){Log[F(0xde)](F(0x1a6)),Log['warn']('From\x20AWS:'),console[F(0xde)](F(0x144)+g[F(0x11d)][F(0xf5)]),console[F(0xde)](F(0x143)+g[F(0x11d)][F(0xf7)]);}}async[a145r(0xea)](a){const G=a145r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[G(0x1a8)](c),e=d['Availability']===G(0x186);if(e){const f=a[G(0xfa)]('.')[G(0x152)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[G(0x14b)]&&i[G(0x14b)][0x0]?.[G(0x105)]){const j=i[G(0x14b)][0x0][G(0x105)];return{'available':e,'cost':j};}}catch(k){console[G(0xde)](G(0x131),k);}}return{'available':e};}async[a145r(0x140)](a,b,c){const H=a145r;try{const d=await route53[H(0x187)]({'DNSName':c});if(!d?.[H(0xd4)])throw Log[H(0xde)](H(0xda));const e=d?.[H(0xd4)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':H(0x1ac),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log[H(0x118)](H(0x1a9)+a+H(0x1b8)+c);}catch(g){console[H(0xde)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async['getEcrLoginPassword']({awsAccountId:a,region:b}){const I=a145r,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[I(0x1a8)](d);if(!f['authorizationData']||f[I(0x159)][I(0x167)]===0x0)throw new Error(I(0x149));const g=f['authorizationData'][0x0];if(!g[I(0x188)])throw new Error(I(0xdf));const h=g[I(0x188)];if(!h)throw new Error(I(0xdb));const i=Buffer['from'](h,I(0x10b))[I(0x158)](),j=i['split'](':')[0x1];if(!j)throw new Error(I(0x1ba));return j;}catch(k){Log['error'](k);throw k;}}async[a145r(0x132)]({repoName:a,region:b}){const J=a145r,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[J(0x1a8)](d);return f;}catch(g){Log['error'](g);throw g;}}async[a145r(0x18d)](a){const K=a145r;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[K(0x197)],'InstanceType':a[K(0x12d)],'KeyName':a[K(0x122)],'MaxCount':a[K(0x10f)],'MinCount':a[K(0xf2)],'SecurityGroupIds':a[K(0x12c)]['split'](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':K(0x1b1),'Tags':a[K(0x1ae)]}]};a['userData']&&(b['UserData']=K(0x14d)+a[K(0xdd)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[K(0xde)](f);}}async[a145r(0x11e)](a){const L=a145r;try{const b={'InstanceIds':[a[L(0xe7)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[L(0xde)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const M=a145r,c=this[M(0x110)][M(0x146)](b),d=a145f['join'](c,M(0xed),a+M(0x133));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[M(0x195)];if(i){await this['fsi']['createFile']({'filePath':d,'data':i}),execSync(M(0x160)+d,{'stdio':M(0x15e)});const j=this[M(0x110)][M(0x119)](d);if(j)return Log[M(0x15c)](M(0x148)+d),{'keyName':a,'filePath':d};else throw new Error(M(0xf1));}else throw new Error(M(0x1b9));}catch(k){Log['error'](k),process[M(0x1b7)](0x1);}}async[a145r(0x156)]({port:a,groupId:b}){const N=a145r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':N(0xf0),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[N(0x118)](N(0x154)+a+'\x20opened!'),await client[N(0x1a8)](d);}async[a145r(0x19c)](a){const O=a145r;try{a[O(0x177)]===''&&(a[O(0x177)]=await Actions[O(0x18f)](O(0x19e))||O(0x108));const b={'Description':a['description'],'GroupName':a['name'],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[O(0x1a8)](c),{GroupId:f}=d;if(!d)throw new Error(O(0x100));f&&a[O(0xeb)][O(0x11a)](g=>{const P=O;this[P(0x156)]({'port':parseInt(g),'groupId':f});}),Log[O(0x15c)]('Created:\x20'+f+O(0x113)+a['name']);}catch(g){return Log[O(0xde)](g),![];}return!![];}async[a145r(0x157)](a){const Q=a145r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[Q(0x11a)]((h,i)=>{h['KeyName']&&b['push']({'id':i,'name':h['KeyName']});}),b['length']>0x0&&b['forEach'](h=>{const R=Q;h[R(0x19f)]===a?.['suggestion']?Log[R(0x15c)](R(0x13e)+h['id']+R(0x113)+h[R(0x19f)]):Log[R(0x118)](R(0x13e)+h['id']+R(0x113)+h[R(0x19f)]);})):Log[Q(0xde)](Q(0x11c));}catch(h){Log['error'](h);}return b;}async[a145r(0x19b)](a){const S=a145r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[S(0x1a8)](c);}catch(d){Log['error'](d),process[S(0x1b7)](0x1);}}async['ec2describeInstances'](){const T=a145r,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[T(0x10e)]}]},c=new DescribeInstancesCommand(b),d=await client[T(0x1a8)](c);d[T(0x134)]?.[T(0x11a)]((f,g)=>{const U=T;if(f?.[U(0x179)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[U(0x179)][0x0],n=m?.['find'](({Key:o})=>o===U(0x1a2));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[U(0xe1)],'name':l,'env':n?.[U(0x117)]});}}),a[T(0x167)]>0x0?a[T(0x11a)](f=>{const V=T,g='ID:\x20'+f['id']+'\x20NAME:\x20'+f[V(0x19f)]+'\x20ENV:\x20'+f[V(0x169)]+V(0x162)+f[V(0xe2)]+V(0x12b)+f[V(0xe7)]+V(0x142)+f[V(0x1b4)]+'\x20PRIV_IP:\x20'+f['privateIp'];if(f[V(0xe2)]===V(0x198))Log[V(0xde)](g);else f[V(0xe2)]===V(0xfe)?Log['success'](g):Log[V(0x118)](g);}):Log['error'](T(0x141));}catch(f){Log[T(0xde)](f);}return a;}async[a145r(0xd1)](a){const W=a145r;try{const b={'InstanceIds':[a[W(0xe7)]]},c=new RebootInstancesCommand(b),d=await client[W(0x1a8)](c);return d[W(0x1a5)][W(0xce)]===0xc8&&Log[W(0x15c)](W(0xf4)),d;}catch(f){Log[W(0xde)](f);}}async[a145r(0x185)](){const X=a145r;let a='';Log[X(0x118)](X(0x1b0));const b=new DescribeVpcsCommand({}),c=await client[X(0x1a8)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const Y=X;g[Y(0x123)]&&g[Y(0x1b5)]&&e[Y(0x17e)]({'id':h,'vpcId':g[Y(0x123)],'cidr':g['CidrBlock']});});e[X(0x11a)](function(g){const Z=X;console[Z(0xfd)](Z(0x13e)+g['id']+Z(0xe3)+g[Z(0x139)]+Z(0x183)+g[Z(0xdc)]);});const f=await Actions[X(0x18f)](X(0x1b3))||0x0;e[X(0x11a)](function(g){g['id']==f&&(a=g['vpcId'],Log['success']('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[X(0xde)](X(0x16f)),'';return a;}async['chooseInstance'](){const a0=a145r,a=await this['ec2describeInstances']();if(a[a0(0x167)]===0x0)return Log[a0(0xde)](a0(0x102)),null;const b=await Actions['ask'](a0(0x196));!b&&(Log[a0(0xde)]('Invalid\x20choice'),process[a0(0x1b7)](0x0));const c=a[a0(0x150)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145r(0xe4)]({env:a}){const a1=a145r,b=this[a1(0x110)]['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[a1(0x18f)](a1(0x13c)+d+']\x20')||d,{filePath:g}=await this[a1(0x11b)]({'keyName':f,'env':a});try{const h=await Actions[a1(0x13a)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a145f['join'](a1(0x109),a,'ssh.json');!this[a1(0x110)][a1(0x119)](i)&&await this['fsi']['template']({'srcPath':a1(0x16e),'destPath':i,'context':{'app':f}});const j=a145e['readFileSync'](a145f['join'](a1(0x109),a,a1(0x1a7)),a1(0x114)),k=JSON[a1(0x192)](j);k['pem']=a145f['join']('_keys',f+a1(0x133)),a145e[a1(0x125)](a145f['join'](a1(0x109),a,a1(0x1a7)),JSON['stringify'](k,null,0x2));}catch(l){Log['error'](l),Log[a1(0xde)](a1(0xe5));}}catch(m){Log[a1(0xde)](m),process[a1(0x1b7)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const a2=a145r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client['send'](d),{SecurityGroups:f}=e;f&&f[a2(0x11a)](function(i,j){const a3=a2;i['GroupName']&&i['GroupId']&&b[a3(0x17e)]({'id':j,'name':i[a3(0x14a)],'sgId':i[a3(0xe8)]});});let g='',h=0x0;return b[a2(0x11a)](function(i){const a4=a2;i[a4(0x19f)]===a&&(g=i[a4(0xee)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145r(0x19a)](a){const a5=a145r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a5(0x1a8)](c);}catch(d){Log[a5(0xde)](d),process[a5(0x1b7)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0xb1))/0x1*(-parseInt(k(0xb7))/0x2)+-parseInt(k(0xab))/0x3+-parseInt(k(0xb4))/0x4+parseInt(k(0xaf))/0x5*(-parseInt(k(0xb0))/0x6)+parseInt(k(0xb2))/0x7+parseInt(k(0xac))/0x8+-parseInt(k(0xb5))/0x9*(parseInt(k(0xb3))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x5ddfb));function a146c(){var m=['149IOxSLX','3537562mqOQji','20MrrQpg','2015560UGVKsT','988479FmOyXu','toString','10164yxAQGS','constructor','680511MKxZHR','2868760HFgxqW','search','(((.+)+)+)+$','4055OjkOPq','2118EnlFNP'];a146c=function(){return m;};return a146c();}export var CountryCode;function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0xab;var f=c[d];return f;},a146d(a,b);}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){if(h){var j=h['apply'](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var l=a146d;return e[l(0xb6)]()[l(0xad)](l(0xae))[l(0xb6)]()[l(0xb8)](e)[l(0xad)](l(0xae));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
1
+ (function(a,b){var k=a146d,c=a();while(!![]){try{var d=parseInt(k(0x102))/0x1*(parseInt(k(0xf7))/0x2)+parseInt(k(0xfe))/0x3*(parseInt(k(0xfc))/0x4)+-parseInt(k(0xf5))/0x5*(-parseInt(k(0xf3))/0x6)+parseInt(k(0xf9))/0x7+-parseInt(k(0x101))/0x8*(parseInt(k(0xf8))/0x9)+parseInt(k(0xfa))/0xa+-parseInt(k(0xfd))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x4c775));function a146c(){var n=['5UGkFXn','constructor','111902wtrDbu','18HaESmm','2769690vOPvlM','5221190OoefUM','search','1104548xPNjZW','10228988KadknZ','3engYBj','toString','(((.+)+)+)+$','2439952vGNVVQ','4Mhbgap','2612226xZKmQh','apply'];a146c=function(){return n;};return a146c();}function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0xf3;var f=c[d];return f;},a146d(a,b);}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a146d;if(h){var j=h[l(0xf4)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e['toString']()['search']('(((.+)+)+)+$')[m(0xff)]()[m(0xf6)](e)[m(0xfb)](m(0x100));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
@@ -1 +1 @@
1
- const a147n=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=parseInt(j(0xdf))/0x1*(parseInt(j(0xea))/0x2)+-parseInt(j(0xf3))/0x3+-parseInt(j(0xe7))/0x4*(-parseInt(j(0xf5))/0x5)+parseInt(j(0xf0))/0x6+-parseInt(j(0xe3))/0x7+parseInt(j(0xe0))/0x8*(-parseInt(j(0xe8))/0x9)+parseInt(j(0xe5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x9df24));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a[l(0xf1)]()['search'](l(0xee))['toString']()[l(0xf4)](a147a)[l(0xf2)](l(0xee));});a147a();function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0xdf;let f=c[d];return f;},a147d(a,b);}function a147c(){const q=['search','2227074PWBNjP','constructor','5WCwofl','apply','.dkr.ecr.','pushImage','41UaKYLx','72HzSWdN','.amazonaws.com/','.amazonaws.com','7561589ndjxiK','push','5456060GzJtXv','error','2167892CWWOeT','818721SrrTdZ','docker\x20','56428JeHZne','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','join','awsLogin','(((.+)+)+)+$','inherit','6263406HZzCJt','toString'];a147c=function(){return q;};return a147c();}import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a147d;try{const f=['tag',a,b+m(0xf7)+c+m(0xe1)+d],g='docker\x20'+f[m(0xec)]('\x20'),h=execSync(g,{'stdio':'inherit'})[m(0xf1)]();return h;}catch(i){return Log[m(0xe6)](i),'';}}static[a147n(0xed)]({awsAccountId:a,region:b,password:c}){const o=a147n;try{const d='echo\x20'+c+o(0xeb)+a+o(0xf7)+b+o(0xe2);return execSync(d,{'stdio':o(0xef)}),d;}catch(f){return Log['error'](f),'';}}static[a147n(0xf8)]({awsAccountId:a,region:b,repoName:c}){const p=a147n;try{const d=[p(0xe4),a+p(0xf7)+b+p(0xe1)+c],f=p(0xe9)+d[p(0xec)]('\x20'),g=execSync(f,{'stdio':p(0xef)})[p(0xf1)]();return g;}catch(h){return Log[p(0xe6)](h),'';}}}
1
+ const a147m=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=-parseInt(j(0xc7))/0x1+-parseInt(j(0xbe))/0x2+parseInt(j(0xcb))/0x3+parseInt(j(0xbf))/0x4+parseInt(j(0xc5))/0x5+-parseInt(j(0xc0))/0x6*(parseInt(j(0xbb))/0x7)+-parseInt(j(0xb7))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x7b699));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a[l(0xbd)]()[l(0xcd)](l(0xcc))[l(0xbd)]()[l(0xc8)](a147a)[l(0xcd)](l(0xcc));});a147a();import{execSync}from'child_process';function a147c(){const q=['inherit','tag','join','apply','3473385KIjSAR','push','80885iZhYyH','constructor','error','echo\x20','2129478YowplQ','(((.+)+)+)+$','search','.amazonaws.com/','4907624ywzmWT','.dkr.ecr.','docker\x20','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','343KFHsxR','.amazonaws.com','toString','1203042yvBKkD','1976276GsYtod','11904UrHzmC'];a147c=function(){return q;};return a147c();}function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0xb7;let f=c[d];return f;},a147d(a,b);}import{Log}from'../log/log.class.js';export class Docker{static[a147m(0xc2)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=['tag',a,b+'.dkr.ecr.'+c+'.amazonaws.com/'+d],g=n(0xb9)+f[n(0xc3)]('\x20'),h=execSync(g,{'stdio':'inherit'})['toString']();return h;}catch(i){return Log[n(0xc9)](i),'';}}static['awsLogin']({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d=o(0xca)+c+o(0xba)+a+o(0xb8)+b+o(0xbc);return execSync(d,{'stdio':o(0xc1)}),d;}catch(f){return Log['error'](f),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=[p(0xc6),a+p(0xb8)+b+p(0xce)+c],f=p(0xb9)+d[p(0xc3)]('\x20'),g=execSync(f,{'stdio':p(0xc1)})[p(0xbd)]();return g;}catch(h){return Log[p(0xc9)](h),'';}}}