@maka/maka-cli 5.0.5 → 5.0.6

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 (163) 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/tool.js +1 -1
  145. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  146. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  147. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  148. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  149. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  150. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  151. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/https/https.class.js +1 -1
  153. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  154. package/bundle/obf/src/tools/log/log.class.js +1 -1
  155. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  156. package/bundle/obf/src/tools/options/options.class.js +1 -1
  157. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  158. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  159. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  160. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  161. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  162. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  163. 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(0x14d))/0x1+-parseInt(l(0x154))/0x2+-parseInt(l(0x176))/0x3+parseInt(l(0x153))/0x4+-parseInt(l(0x16c))/0x5+parseInt(l(0x169))/0x6+parseInt(l(0x15d))/0x7*(parseInt(l(0x178))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0xdbbce));const a134b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a134d;if(c){const e=c[m(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){const n=a134d;return a134a['toString']()[n(0x165)]('(((.+)+)+)+$')[n(0x170)]()['constructor'](a134a)[n(0x165)](n(0x14e));});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-0x14d;let f=c[d];return f;},a134d(a,b);}function a134c(){const r=['/client/','features','23990099fabQLw','dir','pathFromAppWithNoReWrite','/package.js','withValue','package/package.js','create','package.js','search','server','pathFromProject','packages','7877232QkDoCu','package/','maka\x20g:package\x20todos:package','7297255CMVUoR','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','template','hasOwnProperty','toString','template/template.js','store','apply','getMakaProjectConfig','fsi','5309340PxphXQ','relative','8sYLqGT','graphql','.js','tests/client','433710TmuOLr','(((.+)+)+)+$','engines','ssr','tests/server','lib','5334300DKjFeB','3021234vLuUcL','resourceName','noRename','layout','component','theme','client'];a134c=function(){return r;};return a134c();}Generator[a134o(0x163)]({'name':'package','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a134o(0x16d),'validOpts':[a134o(0x15e)],'examples':[a134o(0x16b)]},async function(a,b){const p=a134o,c=paramCase(b[p(0x155)]),d=this[p(0x175)]['pathFromApp']({'pathParts':[p(0x168),b[p(0x15e)],c]}),e=this['fsi'][p(0x15f)]({'pathParts':['packages',b[p(0x15e)],c,p(0x164)]}),f=this[p(0x175)][p(0x174)]();await this[p(0x175)][p(0x161)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x155)]),'myPath':a134e[q(0x177)](this['fsi'][q(0x167)]({}),d),'cssCaseName':paramCase(b[q(0x155)]),'className':pascalCase(b[q(0x155)]),'camelCaseName':camelCase(b[q(0x155)]),'fileName':c,'client':f[q(0x14f)][q(0x15a)],'graphql':f[q(0x14f)][q(0x179)],'ssr':f[q(0x14f)][q(0x150)],'isComponent':b[q(0x16f)](q(0x158)),'isLayout':b[q(0x16f)](q(0x157)),'isStore':b[q(0x16f)](q(0x172)),'features':f[q(0x15c)],'noRename':!![],'theme':f['engines'][q(0x159)]};await this['fsi'][q(0x16e)]({'srcPath':q(0x162),'destPath':e,'context':g,'config':f}),g[q(0x156)]=![];const h=d+q(0x15b)+c+q(0x17a);await this[q(0x175)]['template']({'srcPath':q(0x171),'destPath':h,'context':g,'config':f});const i=[q(0x152),q(0x166),q(0x17b),q(0x151)];for(const j of i){const k=d+'/'+j+'/'+c+q(0x17a);await this[q(0x175)][q(0x16e)]({'srcPath':q(0x16a)+j+q(0x160),'destPath':k,'context':g,'config':f});}});});
1
+ function a134c(){const r=['store','client','1729078ROtQCR','layout','lib','2067125kQfBES','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','template/template.js','390DcsCYL','apply','872762NRmbaZ','packages','(((.+)+)+)+$','graphql','server','package/','package.js','168xrykkK','3943464pHVjyD','package/package.js','5158416fPeoSS','tests/server','resourceName','hasOwnProperty','engines','4CkXWTL','tests/client','2217573XoAjBg','/client/','ssr','fsi','.js','pathFromProject','dir','component','1EpqFFo','withValue','435933oEdqKT','pathFromAppWithNoReWrite','constructor','/package.js','features','getMakaProjectConfig','search'];a134c=function(){return r;};return a134c();}const a134o=a134d;(function(a,b){const l=a134d,c=a();while(!![]){try{const d=parseInt(l(0x1ad))/0x1*(parseInt(l(0x1b8))/0x2)+-parseInt(l(0x1a5))/0x3*(-parseInt(l(0x1a3))/0x4)+-parseInt(l(0x1bb))/0x5+parseInt(l(0x1ca))/0x6+parseInt(l(0x1c8))/0x7+parseInt(l(0x1c7))/0x8*(parseInt(l(0x1af))/0x9)+parseInt(l(0x1be))/0xa*(-parseInt(l(0x1c0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x82ea8));const a134b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a134d;if(c){const e=c[m(0x1bf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){const n=a134d;return a134a['toString']()[n(0x1b5)](n(0x1c2))['toString']()[n(0x1b1)](a134a)[n(0x1b5)](n(0x1c2));});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-0x19f;let f=c[d];return f;},a134d(a,b);}Generator['create']({'name':'package','aliases':['p'],'usage':a134o(0x1bc),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a134o(0x1ab)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a134o,c=paramCase(b[p(0x1a0)]),d=this[p(0x1a8)]['pathFromApp']({'pathParts':[p(0x1c1),b[p(0x1ab)],c]}),e=this['fsi'][p(0x1b0)]({'pathParts':[p(0x1c1),b[p(0x1ab)],c,p(0x1c6)]}),f=this[p(0x1a8)][p(0x1b4)]();await this['fsi'][p(0x1ae)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x1a0)]),'myPath':a134e['relative'](this[q(0x1a8)][q(0x1aa)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x1a0)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x1a2)][q(0x1b7)],'graphql':f[q(0x1a2)][q(0x1c3)],'ssr':f[q(0x1a2)][q(0x1a7)],'isComponent':b[q(0x1a1)](q(0x1ac)),'isLayout':b[q(0x1a1)](q(0x1b9)),'isStore':b['hasOwnProperty'](q(0x1b6)),'features':f[q(0x1b3)],'noRename':!![],'theme':f[q(0x1a2)]['theme']};await this[q(0x1a8)]['template']({'srcPath':q(0x1c9),'destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+q(0x1a6)+c+q(0x1a9);await this[q(0x1a8)]['template']({'srcPath':q(0x1bd),'destPath':h,'context':g,'config':f});const i=[q(0x1ba),q(0x1c4),q(0x1a4),q(0x19f)];for(const j of i){const k=d+'/'+j+'/'+c+q(0x1a9);await this[q(0x1a8)]['template']({'srcPath':q(0x1c5)+j+q(0x1b2),'destPath':k,'context':g,'config':f});}});});
@@ -1 +1 @@
1
- const a135u=a135d;function a135c(){const x=['className','184365dmFZVF','substring','findAppDirectory','replaceAll','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','engines','111fSHHMA','/>}/>\x0a','string','135864vDxzGH','css','injectIntoFile','<Route\x20index','none','78040rhIhYO','hook/hook.js','fileName','replace','maka\x20g:page\x20todos/todos-item','component/component.js','root','toString','.js','ramda','theme','withHooks','trim','getMakaProjectConfig','installNpmPackage','toLowerCase','ssr','setTemplate','331880oFfTne','.html','split','startup','checkNpmPackage','store','template','react','dir','5634Mwmnvf','error','resourceName','assign','\x22\x20element={<Component.','hasOwnProperty','injectAtBeginningOfFile','withTranslations','pathFromApp','html','component','create','search','features','includes','</Route>','constructor','936144ZOGFxY','312750zrwJZJ','7eYzPZG','8kDbcGX','injectTemplateModule','slice','apply','<Route\x20path=\x22*\x22','(((.+)+)+)+$','api','import\x20\x27./','page','true','test','<Route\x20path=\x22','layout','indexOf','fsi','<Route\x20element={<PrivateRoute\x20/>}>','.app-tests.js','url','vanilla','routes.','\x27;\x0a','client'];a135c=function(){return x;};return a135c();}(function(a,b){const r=a135d,c=a();while(!![]){try{const d=-parseInt(r(0x1de))/0x1+parseInt(r(0x207))/0x2*(parseInt(r(0x1e4))/0x3)+parseInt(r(0x21b))/0x4*(parseInt(r(0x1ec))/0x5)+parseInt(r(0x218))/0x6+-parseInt(r(0x21a))/0x7*(parseInt(r(0x1fe))/0x8)+parseInt(r(0x1e7))/0x9+parseInt(r(0x219))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x1b576));function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x1d4;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(0x21e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a[t(0x1f3)]()[t(0x213)](t(0x220))[t(0x1f3)]()[t(0x217)](a135a)[t(0x213)](t(0x220));});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';const aliases=['p'];Generator[a135u(0x212)]({'name':a135u(0x223),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':'private','boolFlag':!![]},{'name':'url'}],'examples':[a135u(0x1f0)]},async function(a,b){const v=a135u,c='/imports/ui/pages',d=this['fsi'][v(0x1e0)](),e=b[v(0x209)][v(0x215)](':')?b[v(0x209)][v(0x200)](':')[0x0][v(0x1f8)]():b[v(0x209)]['trim'](),f=b[v(0x206)][v(0x1e1)]('/','_')+'_'+e[v(0x1e1)]('/','_'),g=this[v(0x1d5)][v(0x20f)]({'pathParts':[c,b[v(0x206)],paramCase(f),paramCase(f)]}),h=this[v(0x1d5)][v(0x1f9)]();let i='';return await this['fsi']['withValue'](h,async()=>{const w=v;typeof h['template'][w(0x210)]==='string'&&(h[w(0x204)][w(0x210)]=h[w(0x204)][w(0x210)]===w(0x224)?!![]:![],this[w(0x1d5)]['setTemplate'](w(0x210),h['template']['html']));typeof h['template']['test']===w(0x1e6)&&(h[w(0x204)][w(0x225)]=h[w(0x204)][w(0x225)]===w(0x224)?!![]:![],this[w(0x1d5)][w(0x1fd)]('test',h[w(0x204)][w(0x225)]));typeof h[w(0x204)]['css']===w(0x1e6)&&(h['template'][w(0x1e8)]=h[w(0x204)][w(0x1e8)]===w(0x224)?!![]:![],this[w(0x1d5)][w(0x1fd)](w(0x1e8),h[w(0x204)]['css']));typeof h['template']['js']===w(0x1e6)&&(h['template']['js']=h[w(0x204)]['js']===w(0x224)?!![]:![],this['fsi']['setTemplate']('js',h[w(0x204)]['js']));!h[w(0x214)]&&(h[w(0x214)]={});!b[w(0x1f2)]&&!this['fsi'][w(0x202)](w(0x1f5))&&(Log['warn']('Updating\x20npm\x20packages\x20...'),this[w(0x1d5)][w(0x1fa)](w(0x1f5),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e['relative'](this[w(0x1d5)]['pathFromProject']({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0x1e3)]['graphql'],'features':h[w(0x214)],'client':h[w(0x1e3)][w(0x1dc)],'api':h['engines'][w(0x221)],'ssr':h[w(0x1e3)][w(0x1fc)],'isStore':b[w(0x20c)](w(0x203)),'isComponent':b[w(0x20c)](w(0x211)),'isLayout':b['hasOwnProperty'](w(0x227)),'withTranslations':h[w(0x214)][w(0x20e)],'test':h[w(0x1e3)]['test'],'theme':h[w(0x1e3)][w(0x1f6)]};h[w(0x204)]['html']&&await this['fsi'][w(0x204)]({'srcPath':'template/template.html','destPath':g+w(0x1ff),'context':j,'config':h});h[w(0x214)]?.[w(0x1f7)]?await this[w(0x1d5)]['template']({'srcPath':w(0x1ed),'destPath':g+'.js','framework':w(0x205),'context':j,'config':h}):await this['fsi'][w(0x204)]({'srcPath':w(0x1f1),'destPath':g+w(0x1f4),'framework':w(0x205),'context':j,'config':h});h[w(0x1e3)]['test']!==w(0x1eb)&&await this['fsi'][w(0x204)]({'srcPath':'test/test.js','destPath':g+w(0x1d7),'framework':w(0x205),'context':j,'config':h});h['template'][w(0x1e8)]&&await this[w(0x1d5)]['template']({'srcPath':'template/template.css','destPath':g+'.css','context':Object[w(0x20a)]({},j,{'className':paramCase(b[w(0x209)])}),'config':h});h[w(0x1e3)][w(0x1dc)]!=='react'&&h[w(0x1e3)][w(0x1dc)]!==w(0x1d9)?(h[w(0x204)][w(0x1e8)]&&await this[w(0x1d5)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[w(0x1e3)]['js'],'content':w(0x222)+j[w(0x1ee)]+'.'+h[w(0x1e3)][w(0x210)]+w(0x1db)+w(0x222)+j[w(0x1ee)]+'.'+h['engines'][w(0x1e8)]+'\x27;'}),!h[w(0x204)]['css']&&await this[w(0x1d5)]['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':w(0x222)+j[w(0x1ee)]+'.'+h[w(0x1e3)][w(0x210)]+'\x27;'})):h[w(0x204)]['css']&&await this[w(0x1d5)][w(0x20d)]({'filePath':g+'.'+h[w(0x1e3)]['js'],'content':w(0x222)+j[w(0x1ee)]+'.'+h[w(0x1e3)]['css']+'\x27;'});const k=b[w(0x206)]?'/'+b[w(0x206)]+'/':'/';i=''+c+k+j[w(0x1ee)]+'/'+j['fileName'],await this[w(0x1d5)][w(0x21c)](j[w(0x1dd)],h,i);if(!b['root']){const l=b['private']??![];if(!f){Log[w(0x208)](w(0x1e2));throw new UsageError();}let m=b[w(0x1d8)]?b[w(0x1d8)]:'/'+b[w(0x206)][w(0x1f8)]()+'/'+b['resourceName'][w(0x1f8)]()['replace'](/\\/g,'/')[w(0x1ef)](/\/+$/,'')[w(0x1fb)]();const n=b['resourceName'][w(0x1d4)](':');n!==-0x1&&(m+='/'+b[w(0x209)][w(0x1df)](0x0,n)[w(0x1f8)]());m['endsWith']('/')&&(m=m[w(0x21d)](0x0,-0x1));m=m[w(0x1ef)](/\/\//g,'/');const o=h[w(0x1e3)]['js'],p=h['engines']['ssr']===w(0x224)?'lib':'client',q=a135e['join'](d,'imports',w(0x201),p,w(0x1da)+o);l?await this[w(0x1d5)][w(0x1e9)]({'filePath':q,'content':w(0x226)+m+w(0x20b)+pascalCase(f)+'/>}/>\x0a','begin':[w(0x1d6)],'end':[w(0x216)]}):await this[w(0x1d5)]['injectIntoFile']({'filePath':q,'content':w(0x226)+m+w(0x20b)+pascalCase(f)+w(0x1e5),'begin':[w(0x1ea)],'end':[w(0x21f)]});}}),i+'.'+h[v(0x1e3)]['js'];});
1
+ const a135t=a135d;(function(a,b){const r=a135d,c=a();while(!![]){try{const d=parseInt(r(0x1a0))/0x1+-parseInt(r(0x16e))/0x2*(parseInt(r(0x1aa))/0x3)+parseInt(r(0x170))/0x4+-parseInt(r(0x1a8))/0x5*(-parseInt(r(0x171))/0x6)+parseInt(r(0x18c))/0x7+parseInt(r(0x19e))/0x8*(parseInt(r(0x17e))/0x9)+-parseInt(r(0x181))/0xa*(parseInt(r(0x1a5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x45593));const a135b=(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;};}()),a135a=a135b(this,function(){const s=a135d;return a135a[s(0x1b8)]()[s(0x182)](s(0x19d))[s(0x1b8)]()[s(0x1ae)](a135a)[s(0x182)](s(0x19d));});a135a();import a135e from'path';function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x16d;let f=c[d];return f;},a135d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a135c(){const w=['.app-tests.js','page','1906DDtGhE','substring','24312TXqRwY','181638ijsLmD','fsi','graphql','template/template.css','url','.js','client','import\x20\x27./','<Route\x20element={<PrivateRoute\x20/>}>','create','vanilla','hasOwnProperty','store','1467oPsjru','injectTemplateModule','trim','28690BYWNVs','search','string','theme','html','maka\x20g:page\x20todos/todos-item','</Route>','replace','react','/>}/>\x0a','engines','1792448FTnxuO','css','<Route\x20path=\x22','.html','features','findAppDirectory','includes','startup','template/template.html','withValue','error','resourceName','injectIntoFile','none','split','dir','/imports/ui/pages','(((.+)+)+)+$','10848YGWSnH','replaceAll','48684UThXLX','fileName','injectAtBeginningOfFile','assign','endsWith','539ROBIkw','Generate\x20a\x20page.','hook/hook.js','75bLrqKj','warn','1767VjIQzN','root','layout','setTemplate','constructor','slice','className','<Route\x20index','ramda','true','withHooks','template','Updating\x20npm\x20packages\x20...','private','toString','indexOf','\x22\x20element={<Component.','test','component/component.js','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','lib','routes.','checkNpmPackage','ssr'];a135c=function(){return w;};return a135c();}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a135t(0x17a)]({'name':a135t(0x16d),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a135t(0x1a6),'validOpts':[{'name':a135t(0x1b7),'boolFlag':!![]},{'name':a135t(0x175)}],'examples':[a135t(0x186)]},async function(a,b){const u=a135t,c=u(0x19c),d=this['fsi'][u(0x191)](),e=b['resourceName'][u(0x192)](':')?b[u(0x197)][u(0x19a)](':')[0x0][u(0x180)]():b[u(0x197)][u(0x180)](),f=b[u(0x19b)][u(0x19f)]('/','_')+'_'+e[u(0x19f)]('/','_'),g=this['fsi']['pathFromApp']({'pathParts':[c,b[u(0x19b)],paramCase(f),paramCase(f)]}),h=this['fsi']['getMakaProjectConfig']();let i='';return await this[u(0x172)][u(0x195)](h,async()=>{const v=u;typeof h['template'][v(0x185)]==='string'&&(h[v(0x1b5)]['html']=h[v(0x1b5)][v(0x185)]===v(0x1b3)?!![]:![],this[v(0x172)][v(0x1ad)](v(0x185),h['template']['html']));typeof h['template'][v(0x1bb)]===v(0x183)&&(h['template'][v(0x1bb)]=h[v(0x1b5)]['test']===v(0x1b3)?!![]:![],this[v(0x172)][v(0x1ad)](v(0x1bb),h['template'][v(0x1bb)]));typeof h[v(0x1b5)]['css']===v(0x183)&&(h['template'][v(0x18d)]=h[v(0x1b5)][v(0x18d)]===v(0x1b3)?!![]:![],this[v(0x172)][v(0x1ad)](v(0x18d),h[v(0x1b5)][v(0x18d)]));typeof h[v(0x1b5)]['js']===v(0x183)&&(h[v(0x1b5)]['js']=h['template']['js']===v(0x1b3)?!![]:![],this['fsi'][v(0x1ad)]('js',h[v(0x1b5)]['js']));!h['features']&&(h['features']={});!b['root']&&!this['fsi'][v(0x1c0)](v(0x1b2))&&(Log[v(0x1a9)](v(0x1b6)),this['fsi']['installNpmPackage'](v(0x1b2),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e['relative'](this[v(0x172)]['pathFromProject']({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[v(0x18b)][v(0x173)],'features':h[v(0x190)],'client':h[v(0x18b)][v(0x177)],'api':h[v(0x18b)]['api'],'ssr':h['engines']['ssr'],'isStore':b[v(0x17c)](v(0x17d)),'isComponent':b['hasOwnProperty']('component'),'isLayout':b[v(0x17c)](v(0x1ac)),'withTranslations':h[v(0x190)]['withTranslations'],'test':h['engines'][v(0x1bb)],'theme':h[v(0x18b)][v(0x184)]};h[v(0x1b5)][v(0x185)]&&await this['fsi'][v(0x1b5)]({'srcPath':v(0x194),'destPath':g+v(0x18f),'context':j,'config':h});h[v(0x190)]?.[v(0x1b4)]?await this['fsi']['template']({'srcPath':v(0x1a7),'destPath':g+'.js','framework':'react','context':j,'config':h}):await this['fsi'][v(0x1b5)]({'srcPath':v(0x1bc),'destPath':g+v(0x176),'framework':v(0x189),'context':j,'config':h});h[v(0x18b)][v(0x1bb)]!==v(0x199)&&await this[v(0x172)][v(0x1b5)]({'srcPath':'test/test.js','destPath':g+v(0x1c2),'framework':'react','context':j,'config':h});h[v(0x1b5)][v(0x18d)]&&await this['fsi'][v(0x1b5)]({'srcPath':v(0x174),'destPath':g+'.css','context':Object[v(0x1a3)]({},j,{'className':paramCase(b[v(0x197)])}),'config':h});h[v(0x18b)][v(0x177)]!==v(0x189)&&h[v(0x18b)][v(0x177)]!==v(0x17b)?(h[v(0x1b5)]['css']&&await this[v(0x172)][v(0x1a2)]({'filePath':g+'.'+h[v(0x18b)]['js'],'content':'import\x20\x27./'+j[v(0x1a1)]+'.'+h[v(0x18b)][v(0x185)]+'\x27;\x0a'+v(0x178)+j['fileName']+'.'+h[v(0x18b)][v(0x18d)]+'\x27;'}),!h[v(0x1b5)][v(0x18d)]&&await this[v(0x172)][v(0x1a2)]({'filePath':g+'.'+h[v(0x18b)]['js'],'content':v(0x178)+j[v(0x1a1)]+'.'+h[v(0x18b)][v(0x185)]+'\x27;'})):h[v(0x1b5)][v(0x18d)]&&await this[v(0x172)][v(0x1a2)]({'filePath':g+'.'+h[v(0x18b)]['js'],'content':v(0x178)+j[v(0x1a1)]+'.'+h[v(0x18b)][v(0x18d)]+'\x27;'});const k=b['dir']?'/'+b[v(0x19b)]+'/':'/';i=''+c+k+j[v(0x1a1)]+'/'+j[v(0x1a1)],await this['fsi'][v(0x17f)](j[v(0x1b0)],h,i);if(!b[v(0x1ab)]){const l=b[v(0x1b7)]??![];if(!f){Log[v(0x196)](v(0x1bd));throw new UsageError();}let m=b[v(0x175)]?b['url']:'/'+b[v(0x19b)][v(0x180)]()+'/'+b[v(0x197)][v(0x180)]()[v(0x188)](/\\/g,'/')[v(0x188)](/\/+$/,'')['toLowerCase']();const n=b[v(0x197)][v(0x1b9)](':');n!==-0x1&&(m+='/'+b[v(0x197)][v(0x16f)](0x0,n)['trim']());m[v(0x1a4)]('/')&&(m=m[v(0x1af)](0x0,-0x1));m=m[v(0x188)](/\/\//g,'/');const o=h['engines']['js'],p=h['engines'][v(0x1c1)]==='true'?v(0x1be):'client',q=a135e['join'](d,'imports',v(0x193),p,v(0x1bf)+o);l?await this[v(0x172)]['injectIntoFile']({'filePath':q,'content':v(0x18e)+m+v(0x1ba)+pascalCase(f)+v(0x18a),'begin':[v(0x179)],'end':[v(0x187)]}):await this[v(0x172)][v(0x198)]({'filePath':q,'content':v(0x18e)+m+v(0x1ba)+pascalCase(f)+v(0x18a),'begin':[v(0x1b1)],'end':['<Route\x20path=\x22*\x22']});}}),i+'.'+h['engines']['js'];});
@@ -1 +1 @@
1
- const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x1c9))/0x1*(-parseInt(m(0x1b8))/0x2)+-parseInt(m(0x1c5))/0x3*(-parseInt(m(0x1b2))/0x4)+parseInt(m(0x1cf))/0x5*(-parseInt(m(0x1c6))/0x6)+parseInt(m(0x1cd))/0x7+-parseInt(m(0x1c1))/0x8+parseInt(m(0x1d5))/0x9*(parseInt(m(0x1b5))/0xa)+-parseInt(m(0x1bb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0xd979d));function a136c(){const s=['exit','force','import\x20\x27./publications','2928249LWJSab','imports','publish/publish.js','create','publish','globalPublish','search','60BMjTZZ','baseDir','index.','30jYYyuo','getMakaProjectConfig','appPathPrefix','210ARahZY','dir','pathFromApp','16991392eJTKcI','constructor','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','injectAtEndOfFile','maka\x20g:publish\x20todos','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','2310168yzvCmd','(((.+)+)+)+$','fsi','/imports/ui/','33225ULMgUa','30PyZTor','/imports/startup/server/publications','engines','14158vnZspJ','error','toString','apply','10284162ShrtFi','tsx','1373740vpsvrh','resourceName','template'];a136c=function(){return s;};return a136c();}function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x1ac;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(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a['toString']()[o(0x1b1)](o(0x1c2))[o(0x1cb)]()[o(0x1bc)](a136a)[o(0x1b1)]('(((.+)+)+)+$');});a136a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a136p(0x1ae)]({'name':a136p(0x1af),'aliases':['p'],'usage':a136p(0x1c0),'shortDesc':a136p(0x1bd),'validOpts':[a136p(0x1d3),a136p(0x1b0)],'examples':[a136p(0x1bf)]},async function(a,b){const q=a136p;try{const c=b[q(0x1d3)]||![],d=b[q(0x1b3)]?q(0x1c4)+b[q(0x1b3)]:q(0x1c7),f=this['fsi'][q(0x1b6)](),g=paramCase(b[q(0x1d0)]),h=this[q(0x1c3)][q(0x1ba)]({'pathParts':[d,b[q(0x1b9)],'',g]});let i='js';f[q(0x1c8)]['js']===q(0x1ce)&&(i='ts');await this[q(0x1c3)]['withValue'](f,async()=>{const r=q,l={'name':b['resourceName'],'collection':pascalCase(b[r(0x1d0)]),'noRename':!![],'globalPublish':b['globalPublish']};await this['fsi'][r(0x1d1)]({'srcPath':r(0x1ad),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x1c3)][q(0x1ba)]({'pathParts':[q(0x1ac),'startup','server',b[q(0x1b7)],q(0x1b4)+f[q(0x1c8)]['js']]}),k=b['dir']?'/'+b['dir']+'/':'/';return await this[q(0x1c3)][q(0x1be)]({'filePath':j,'content':q(0x1d4)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x1ca)](l),process[q(0x1d2)](0x1);}});
1
+ const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x9a))/0x1+parseInt(m(0xb5))/0x2*(parseInt(m(0xba))/0x3)+-parseInt(m(0xab))/0x4+parseInt(m(0xaa))/0x5*(-parseInt(m(0xac))/0x6)+-parseInt(m(0xa0))/0x7+-parseInt(m(0xa1))/0x8*(-parseInt(m(0x9b))/0x9)+parseInt(m(0x9f))/0xa*(parseInt(m(0xb1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0xc4f99));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0xa8)]()[o(0xaf)](o(0x9e))['toString']()[o(0xbc)](a136a)[o(0xaf)]('(((.+)+)+)+$');});a136a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a136p(0xb4)]({'name':a136p(0xa3),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a136p(0xa6),'validOpts':[a136p(0xa7),a136p(0xae)],'examples':[a136p(0xb3)]},async function(a,b){const q=a136p;try{const c=b[q(0xa7)]||![],d=b['baseDir']?'/imports/ui/'+b[q(0x98)]:q(0xa9),f=this[q(0xb8)][q(0xad)](),g=paramCase(b[q(0xbb)]),h=this[q(0xb8)]['pathFromApp']({'pathParts':[d,b[q(0x96)],'',g]});let i='js';f[q(0xb7)]['js']===q(0xb2)&&(i='ts');await this[q(0xb8)]['withValue'](f,async()=>{const r=q,l={'name':b[r(0xbb)],'collection':pascalCase(b[r(0xbb)]),'noRename':!![],'globalPublish':b['globalPublish']};await this[r(0xb8)][r(0xb9)]({'srcPath':'publish/publish.js','destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0xb8)]['pathFromApp']({'pathParts':[q(0x99),'startup',q(0x9c),b[q(0xb0)],q(0x97)+f[q(0xb7)]['js']]}),k=b[q(0x96)]?'/'+b[q(0x96)]+'/':'/';return await this['fsi'][q(0xa5)]({'filePath':j,'content':q(0xa4)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x9d)](l),process[q(0xb6)](0x1);}});function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x96;let f=c[d];return f;},a136d(a,b);}function a136c(){const s=['Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','force','toString','/imports/startup/server/publications','84365BUWpKn','3896600THPdsD','282zHiXIv','getMakaProjectConfig','globalPublish','search','appPathPrefix','132rSoATb','tsx','maka\x20g:publish\x20todos','create','831858FdiFYU','exit','engines','fsi','template','6IUYQAW','resourceName','constructor','dir','index.','baseDir','imports','918304myZgTs','9uxdUNW','server','error','(((.+)+)+)+$','1259110GblgDQ','462413qsVlYH','9724504DsvcZy','apply','publish','import\x20\x27./publications','injectAtEndOfFile'];a136c=function(){return s;};return a136c();}
@@ -1 +1 @@
1
- const a137p=a137d;(function(a,b){const m=a137d,c=a();while(!![]){try{const d=parseInt(m(0x19c))/0x1*(-parseInt(m(0x186))/0x2)+-parseInt(m(0x18d))/0x3*(-parseInt(m(0x18f))/0x4)+-parseInt(m(0x193))/0x5+-parseInt(m(0x17f))/0x6*(parseInt(m(0x197))/0x7)+parseInt(m(0x18b))/0x8+-parseInt(m(0x18a))/0x9*(-parseInt(m(0x183))/0xa)+parseInt(m(0x199))/0xb*(parseInt(m(0x198))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x60aef));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a137d;if(c){const e=c[n(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const o=a137d;return a137a[o(0x182)]()[o(0x1a1)]('(((.+)+)+)+$')[o(0x182)]()['constructor'](a137a)[o(0x1a1)](o(0x1a0));});a137a();import a137e from'path';import{Generator}from'../generator.js';function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x17d;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=['2079vqZDCy','216pAFZGx','353309PZzMNP','client','create','763509bhwzkk','<Route\x20element={<PrivateRoute\x20/>}>','lib','routes.','(((.+)+)+)+$','search','split','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','route','<Route\x20path=\x22*\x22','engines','maka\x20{generate,\x20g}:{route,\x20r}','exit','join','injectIntoFile','ssr','toLowerCase','<Route\x20path=\x22','error','fsi','4134mPfbMx','imports','length','toString','2794000fSMfgv','resourceName','apply','2ChoTdo','<Route\x20index','/>}/>\x0a','filter','9lnQDJY','6170784bHzLiJ','getMakaProjectConfig','182556QMmDOe','replace','20IpiSBc','pop','private','</Route>','2844965NoGohQ','findAppDirectory','Scaffolding\x20for\x20a\x20Route.','\x22\x20element={<Component.'];a137c=function(){return s;};return a137c();}import{pascalCase}from'change-case';const aliases=['r'];Generator[a137p(0x19b)]({'name':a137p(0x1a4),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':'private','boolFlag':!![]},{'name':a137p(0x1a4)}],'usage':a137p(0x1a7),'shortDesc':a137p(0x195),'examples':[]},async function(a,b){const q=a137p;try{const c=this['fsi'][q(0x18c)](),d=this[q(0x17e)][q(0x194)]();await this[q(0x17e)]['withValue'](c,async()=>{const r=q,f=b[r(0x191)]??![];let g=b[r(0x184)][r(0x1a2)]('/')[r(0x190)]();if(!g){Log[r(0x17d)](r(0x1a3));throw new UsageError();}g=pascalCase(g);let h=b[r(0x1a4)]?'/'+b[r(0x1a4)]:'/'+b[r(0x184)][r(0x18e)](/\\/g,'/')['toLowerCase']();a[r(0x181)]>0x1&&(h='/'+a[r(0x189)](function(l){return l!=='/';})[r(0x1a9)]('/')[r(0x1ac)]());h=h['replace'](/\/\//g,'/');const i=c[r(0x1a6)]['js'],j=c[r(0x1ab)]?r(0x19e):r(0x19a),k=a137e[r(0x1a9)](d,r(0x180),'startup',j,r(0x19f)+i);f?await this['fsi']['injectIntoFile']({'filePath':k,'content':r(0x1ad)+h+r(0x196)+g+r(0x188),'begin':[r(0x19d)],'end':[r(0x192)]}):await this[r(0x17e)][r(0x1aa)]({'filePath':k,'content':'<Route\x20path=\x22'+h+r(0x196)+g+'/>}/>\x0a','begin':[r(0x187)],'end':[r(0x1a5)]});});}catch(f){Log[q(0x17d)](f),process[q(0x1a8)](0x1);}});
1
+ const a137p=a137d;(function(a,b){const m=a137d,c=a();while(!![]){try{const d=parseInt(m(0x192))/0x1+parseInt(m(0x16c))/0x2+parseInt(m(0x18b))/0x3+parseInt(m(0x17b))/0x4*(parseInt(m(0x179))/0x5)+-parseInt(m(0x190))/0x6+parseInt(m(0x189))/0x7*(-parseInt(m(0x17d))/0x8)+-parseInt(m(0x197))/0x9*(parseInt(m(0x16e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x65dfb));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a137d;if(c){const e=c[n(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const o=a137d;return a137a[o(0x178)]()[o(0x195)](o(0x171))[o(0x178)]()[o(0x173)](a137a)[o(0x195)](o(0x171));});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'];function a137c(){const s=['5vUTbHq','/>}/>\x0a','2641268oldUjm','withValue','157224EIovAF','</Route>','fsi','error','filter','\x22\x20element={<Component.','getMakaProjectConfig','pop','route','<Route\x20element={<PrivateRoute\x20/>}>','imports','join','133gIjLlS','split','1855050pgpZVB','apply','Scaffolding\x20for\x20a\x20Route.','maka\x20{generate,\x20g}:{route,\x20r}','replace','3792906MfyZcS','engines','140247ctXbNK','injectIntoFile','resourceName','search','routes.','432mYsfuv','1246910eiZAPu','private','129070YNpsoj','ssr','toLowerCase','(((.+)+)+)+$','findAppDirectory','constructor','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','lib','<Route\x20path=\x22*\x22','length','toString'];a137c=function(){return s;};return a137c();}function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x16c;let f=c[d];return f;},a137d(a,b);}Generator['create']({'name':a137p(0x185),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137p(0x16d),'boolFlag':!![]},{'name':a137p(0x185)}],'usage':a137p(0x18e),'shortDesc':a137p(0x18d),'examples':[]},async function(a,b){const q=a137p;try{const c=this[q(0x17f)][q(0x183)](),d=this[q(0x17f)][q(0x172)]();await this[q(0x17f)][q(0x17c)](c,async()=>{const r=q,f=b['private']??![];let g=b[r(0x194)][r(0x18a)]('/')[r(0x184)]();if(!g){Log[r(0x180)](r(0x174));throw new UsageError();}g=pascalCase(g);let h=b[r(0x185)]?'/'+b[r(0x185)]:'/'+b[r(0x194)][r(0x18f)](/\\/g,'/')[r(0x170)]();a[r(0x177)]>0x1&&(h='/'+a[r(0x181)](function(l){return l!=='/';})[r(0x188)]('/')[r(0x170)]());h=h['replace'](/\/\//g,'/');const i=c[r(0x191)]['js'],j=c[r(0x16f)]?r(0x175):'client',k=a137e[r(0x188)](d,r(0x187),'startup',j,r(0x196)+i);f?await this['fsi']['injectIntoFile']({'filePath':k,'content':'<Route\x20path=\x22'+h+r(0x182)+g+'/>}/>\x0a','begin':[r(0x186)],'end':[r(0x17e)]}):await this['fsi'][r(0x193)]({'filePath':k,'content':'<Route\x20path=\x22'+h+r(0x182)+g+r(0x17a),'begin':['<Route\x20index'],'end':[r(0x176)]});});}catch(f){Log[q(0x180)](f),process['exit'](0x1);}});
@@ -1 +1 @@
1
- const a138m=a138d;function a138c(){const p=['apply','engines','resourceName','16DixXbs','11HwvdYk','type','template','4ULYOmF','2526bPxGeZ','4689559LjdFYG','error','imports','maka\x20g:svc\x20service-logger\x20--type=logger','3495DssLmR','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','winston','1227387rPrIZE','winston\x20setimmediate','installNpmPackage','svc','(((.+)+)+)+$','fsi','startup','pathFromApp','maka\x20{generate,\x20g}:{service}\x20<resource-name>','11674884pRYNUv','withValue','1080298ZlTFJO','checkNpmPackage','40TJGAzX','logger','1831690WJHbol','service','Installing\x20winston','search','546570itfSUf'];a138c=function(){return p;};return a138c();}(function(a,b){const j=a138d,c=a();while(!![]){try{const d=parseInt(j(0x205))/0x1+parseInt(j(0x209))/0x2+-parseInt(j(0x1fa))/0x3*(parseInt(j(0x1f1))/0x4)+-parseInt(j(0x1f7))/0x5*(parseInt(j(0x1f2))/0x6)+parseInt(j(0x1f3))/0x7*(-parseInt(j(0x211))/0x8)+-parseInt(j(0x20d))/0x9*(parseInt(j(0x207))/0xa)+parseInt(j(0x212))/0xb*(parseInt(j(0x203))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0xa6b60));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x20e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a['toString']()[l(0x20c)]('(((.+)+)+)+$')['toString']()['constructor'](a138a)['search'](l(0x1fe));});function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a138d(a,b);}a138a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a138m(0x20a),'aliases':[a138m(0x1fd)],'usage':a138m(0x202),'shortDesc':a138m(0x1f8),'requiredOpts':[{'name':a138m(0x1ef),'values':['logger']}],'validOpts':[],'maxArgLength':0x1,'examples':[a138m(0x1f6)]},async function(a,b){const n=a138m;try{const c=this[n(0x1ff)]['getMakaProjectConfig']();await this[n(0x1ff)][n(0x204)](c,async()=>{const o=n,d=this[o(0x1ff)][o(0x201)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[o(0x210)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b[o(0x1ef)],'engine':c[o(0x20f)]['js'],'noRename':!![]};let h='js';c[o(0x20f)]['js']==='tsx'&&(h='ts');if(b[o(0x1ef)]===o(0x208)){!this[o(0x1ff)][o(0x206)](o(0x1f9))&&await this['fsi'][o(0x1fc)](o(0x1fb),{'cwd':d,'msg':o(0x20b)});const i=this[o(0x1ff)][o(0x201)]({'pathParts':[o(0x1f5),o(0x200),'lib','services',f+'.'+h]});await this['fsi'][o(0x1f0)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x1f4)](d);}});
1
+ const a138m=a138d;function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0xcf;let f=c[d];return f;},a138d(a,b);}(function(a,b){const j=a138d,c=a();while(!![]){try{const d=parseInt(j(0xd4))/0x1+-parseInt(j(0xe8))/0x2*(-parseInt(j(0xe9))/0x3)+parseInt(j(0xee))/0x4*(parseInt(j(0xe7))/0x5)+-parseInt(j(0xd7))/0x6*(parseInt(j(0xd9))/0x7)+-parseInt(j(0xd6))/0x8+parseInt(j(0xdb))/0x9*(parseInt(j(0xcf))/0xa)+-parseInt(j(0xd0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0xdcfbc));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a['toString']()['search']('(((.+)+)+)+$')['toString']()[l(0xdd)](a138a)[l(0xe2)](l(0xe3));});a138a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a138c(){const p=['error','constructor','logger','maka\x20{generate,\x20g}:{service}\x20<resource-name>','fsi','services','search','(((.+)+)+)+$','engines','installNpmPackage','getMakaProjectConfig','85zGAffo','331762tHrtGD','3iPEAJy','svc','withValue','pathFromApp','checkNpmPackage','196136aKAmBi','tsx','Installing\x20winston','service','430PyuwAS','3075633CNTSiZ','service/logger/logger.js','resourceName','apply','395677llGOBN','type','6721880dZqCiI','18OxqInK','startup','2521309wCrDiC','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','357993iEVuaJ'];a138c=function(){return p;};return a138c();}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a138m(0xf1),'aliases':[a138m(0xea)],'usage':a138m(0xdf),'shortDesc':a138m(0xda),'requiredOpts':[{'name':a138m(0xd5),'values':[a138m(0xde)]}],'validOpts':[],'maxArgLength':0x1,'examples':['maka\x20g:svc\x20service-logger\x20--type=logger']},async function(a,b){const n=a138m;try{const c=this[n(0xe0)][n(0xe6)]();await this[n(0xe0)][n(0xeb)](c,async()=>{const o=n,d=this[o(0xe0)][o(0xec)]({}),f=paramCase(b[o(0xd2)]),g={'name':pascalCase(b[o(0xd2)]),'fileName':f,'camelCase':camelCase(b[o(0xd2)]),'type':b[o(0xd5)],'engine':c['engines']['js'],'noRename':!![]};let h='js';c[o(0xe4)]['js']===o(0xef)&&(h='ts');if(b[o(0xd5)]===o(0xde)){!this[o(0xe0)][o(0xed)]('winston')&&await this[o(0xe0)][o(0xe5)]('winston\x20setimmediate',{'cwd':d,'msg':o(0xf0)});const i=this[o(0xe0)][o(0xec)]({'pathParts':['imports',o(0xd8),'lib',o(0xe1),f+'.'+h]});await this['fsi']['template']({'srcPath':o(0xd1),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0xdc)](d);}});
@@ -1 +1 @@
1
- function a139c(){var h=['684248foeAKj','1769841nqhdmy','16356912JjyLCy','toString','70wALCAI','850167aYyQzt','20tCkigo','4086hJjgbI','constructor','69016UXZUKA','805XTRcOB','32298IfgsPI','55RLOBLD','search'];a139c=function(){return h;};return a139c();}(function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(0x1ef))/0x1*(-parseInt(f(0x1ea))/0x2)+parseInt(f(0x1f3))/0x3+parseInt(f(0x1ed))/0x4*(parseInt(f(0x1f0))/0x5)+parseInt(f(0x1eb))/0x6*(parseInt(f(0x1ee))/0x7)+parseInt(f(0x1f2))/0x8+parseInt(f(0x1e9))/0x9*(parseInt(f(0x1e8))/0xa)+-parseInt(f(0x1f4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x6b9f0));function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0x1e7;var f=c[d];return f;},a139d(a,b);}var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var g=a139d;return a139a['toString']()[g(0x1f1)]('(((.+)+)+)+$')[g(0x1e7)]()[g(0x1ec)](a139a)[g(0x1f1)]('(((.+)+)+)+$');});a139a();import'./translation.js';import'./openssl.js';
1
+ (function(a,b){var f=a139d,c=a();while(!![]){try{var d=parseInt(f(0xf4))/0x1*(-parseInt(f(0xf5))/0x2)+parseInt(f(0xee))/0x3+parseInt(f(0xf8))/0x4+-parseInt(f(0xf0))/0x5*(parseInt(f(0xfb))/0x6)+parseInt(f(0xf1))/0x7*(parseInt(f(0xf7))/0x8)+-parseInt(f(0xfc))/0x9+-parseInt(f(0xf6))/0xa*(-parseInt(f(0xef))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x2db10));var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var g=a139d;return a139a[g(0xf3)]()[g(0xf2)](g(0xfa))['toString']()[g(0xf9)](a139a)[g(0xf2)]('(((.+)+)+)+$');});function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xee;var f=c[d];return f;},a139d(a,b);}function a139c(){var h=['2963601KtaSaS','72660RkcQfL','319SzPHDJ','1175960IpEXpF','1230467GzwLKY','search','toString','58634EvGZTP','4JMCitg','157160mZWRDb','8IGMeVn','852544UvbPrH','constructor','(((.+)+)+)+$','6aZnroX'];a139c=function(){return h;};return a139c();}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(0xe7))/0x1+parseInt(i(0xff))/0x2+-parseInt(i(0xf6))/0x3*(parseInt(i(0xf2))/0x4)+parseInt(i(0xfa))/0x5*(parseInt(i(0xf0))/0x6)+-parseInt(i(0xf3))/0x7+-parseInt(i(0xea))/0x8*(parseInt(i(0xfd))/0x9)+-parseInt(i(0xf9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x91cf5));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0xf4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a[k(0xf8)]()[k(0xe8)](k(0xf5))['toString']()[k(0xef)](a140a)[k(0xe8)](k(0xf5));});a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a140e from'path';function a140c(){const o=['Generate\x20a\x20new\x20openssl\x20config\x20file','openssl.conf','getAppConfigPath','constructor','4218oUcJuh','env','1052UhqOvx','728175HIbKod','apply','(((.+)+)+)+$','3462DcHzhD','_keys','toString','3755620oTzyRm','3920aDjHHz','withValue','fsi','2827485GnDCBw','service','1358792YAaSXl','join','463943pPuDmL','search','getGlobalConfig','8TwmLtt','create'];a140c=function(){return o;};return a140c();}function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0xe6;let f=c[d];return f;},a140d(a,b);}Generator[a140l(0xeb)]({'name':'sslconfig','usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':a140l(0xec),'noNeedResource':!![],'requiredOpts':[a140l(0xf1)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this[m(0xfc)]['getMakaProjectConfig'](),d=await this[m(0xfc)][m(0xe9)](),f=this[m(0xfc)][m(0xee)](b[m(0xf1)]),g=a140e[m(0xe6)](f,m(0xf7),m(0xed));await this[m(0xfc)][m(0xfb)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0xfc)]['template']({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0xfe),'context':h,'config':c});});}catch(h){Log['error'](h);}});
1
+ const a140k=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x6d))/0x1*(parseInt(i(0x7b))/0x2)+parseInt(i(0x68))/0x3*(-parseInt(i(0x80))/0x4)+parseInt(i(0x6c))/0x5*(parseInt(i(0x6e))/0x6)+-parseInt(i(0x74))/0x7*(parseInt(i(0x78))/0x8)+parseInt(i(0x75))/0x9+-parseInt(i(0x69))/0xa*(parseInt(i(0x76))/0xb)+parseInt(i(0x7c))/0xc*(parseInt(i(0x79))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x54751));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[j(0x84)]()[j(0x85)](j(0x73))['toString']()[j(0x7a)](a140a)[j(0x85)](j(0x73));});a140a();function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x67;let f=c[d];return f;},a140d(a,b);}function a140c(){const n=['(((.+)+)+)+$','3073rQVzzc','2882340VcQRDX','11FxQhzs','getAppConfigPath','5512TlPkNN','65bWFoMK','constructor','122350STTyHI','3539484ifXYiI','join','getGlobalConfig','sslconfig','8WohMsV','env','service','fsi','toString','search','withValue','802014CasfQt','1985110rBSASi','create','maka\x20{generate,\x20g}:sslconfig','9915HXKuuj','10vwKDdR','600pEAJBS','openssl/openssl.conf','openssl.conf','getMakaProjectConfig','Generate\x20a\x20new\x20openssl\x20config\x20file'];a140c=function(){return n;};return a140c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a140e from'path';Generator[a140k(0x6a)]({'name':a140k(0x7f),'usage':a140k(0x6b),'shortDesc':a140k(0x72),'noNeedResource':!![],'requiredOpts':[a140k(0x81)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const l=a140k;try{const c=await this['fsi'][l(0x71)](),d=await this[l(0x83)][l(0x7e)](),f=this['fsi'][l(0x77)](b[l(0x81)]),g=a140e[l(0x7d)](f,'_keys',l(0x70));await this['fsi'][l(0x67)](c,async()=>{const m=l,h={'app':d['appName'],'noRename':!![]};await this['fsi']['template']({'srcPath':m(0x6f),'destPath':g,'framework':m(0x82),'context':h,'config':c});});}catch(h){Log['error'](h);}});
@@ -1 +1 @@
1
- const a141A=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=parseInt(x(0xdc))/0x1+-parseInt(x(0xf2))/0x2*(-parseInt(x(0xe5))/0x3)+-parseInt(x(0xd1))/0x4*(-parseInt(x(0xd7))/0x5)+-parseInt(x(0xea))/0x6*(-parseInt(x(0xd0))/0x7)+parseInt(x(0xce))/0x8+parseInt(x(0xc8))/0x9+parseInt(x(0xe2))/0xa*(-parseInt(x(0xf3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0x4bf80));const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a141d;if(c){const e=c[y(0xcf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const z=a141d;return a141a[z(0xef)]()[z(0xd2)]('(((.+)+)+)+$')[z(0xef)]()['constructor'](a141a)[z(0xd2)](z(0xc9));});a141a();function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0xc4;let f=c[d];return f;},a141d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a141e from'fs';function a141c(){const D=['i18n.js','export\x20{\x20default\x20as\x20','32015RTAkTF','appName','grep','setProjectConfig','server','lang','655120DGnxpp','rewriteDestinationPathForEngine','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','354579hZbXIp','checkNpmPackage','service','index.','fsi','1734GzkVgl','readFileSync','import\x20\x27../lib/services/translations/i18n\x27;\x0a','services','maka\x20g:translation\x20--lang=de','toString','translation','index.js','2sbqlgU','319NyZBlL','\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','Generate\x20a\x20new\x20locale\x20translation','root','template','maka\x20g:translation\x20--lang=en\x20(default)','features.withTranslations','withValue','translations','getMakaProjectConfig','import\x20\x27../lib/services/translations/i18n\x27;','client','i18n/i18n.js','injectAtBeginningOfFile','pathFromApp','\x20}\x20from\x20\x27./','injectAtEndOfFile','true','lib','4697325Owjypw','(((.+)+)+)+$','i18next','startup','maka\x20{generate,\x20g}:translation','isFile','4915080afbCZz','apply','8722bDSqeT','8YqbxxO','search','findAppDirectory','exit','warn','engines','1411010zeQkNA','imports','locales'];a141c=function(){return D;};return a141c();}Generator['create']({'name':a141A(0xf0),'usage':a141A(0xcc),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':'lang','boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141A(0xf5),'description':a141A(0xf4),'examples':[a141A(0xf8),'maka\x20g:translation\x20--lang=fr',a141A(0xee)],'validOpts':[]},async function(a,b){const B=a141A;try{const c=this['fsi'][B(0xfc)](),d=this[B(0xe9)]['getGlobalConfig'](),f=this['fsi'][B(0xd3)]();await this[B(0xe9)][B(0xfa)](c,async()=>{const C=B;try{!b['lang']&&(b[C(0xe1)]='en');!b[C(0xf6)]&&!this[C(0xe9)][C(0xe6)](C(0xca))&&(Log['warn'](C(0xe4)),this[C(0xe9)]['installNpmPackage']('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this['fsi'][C(0xdf)](C(0xf9),!![]));const g=this[C(0xe9)][C(0x101)]({'pathParts':[C(0xd8),C(0xcb),C(0xfe),'index.js']}),h=this[C(0xe9)][C(0xe3)]({'pathParts':[g],'config':c}),i=this[C(0xe9)][C(0xde)](a141e['readFileSync'](h)['toString'](),C(0xfd))[0x0]&&!![];if(c['engines']['ssr']===C(0xc6)){!i&&this[C(0xe9)][C(0x100)]({'filePath':h,'content':C(0xec)});const t=this[C(0xe9)][C(0x101)]({'pathParts':['imports','startup',C(0xe0),C(0xf1)]}),u=this['fsi'][C(0xe3)]({'pathParts':[t],'config':c}),v=this['fsi'][C(0xde)](a141e[C(0xeb)](u)[C(0xef)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this['fsi'][C(0x100)]({'filePath':u,'content':C(0xec)});}else!i&&this[C(0xe9)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0xec)});const j={'app':d[C(0xdd)],'config':c},k=this[C(0xe9)][C(0x101)]({'pathParts':[C(0xd8),C(0xcb),C(0xc7),'services',C(0xfb),C(0xda)]}),l=this[C(0xe9)][C(0xcd)](this[C(0xe9)][C(0xe3)]({'pathParts':[k],'config':c}));!l&&await this[C(0xe9)][C(0xf7)]({'srcPath':C(0xff),'destPath':k,'framework':C(0xe7),'context':j,'config':c});const m=this[C(0xe9)][C(0x101)]({'pathParts':[C(0xd8),C(0xcb),C(0xc7),C(0xed),C(0xfb),C(0xd9),b[C(0xe1)]+'.js']}),n=this[C(0xe9)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[C(0xe9)][C(0xcd)](n);!o?await this[C(0xe9)][C(0xf7)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0xe7),'context':j,'config':c}):Log['warn']('Locale\x20already\x20defined:\x20'+n);const p=this['fsi']['pathFromApp']({'pathParts':[C(0xd8),C(0xcb),'lib',C(0xed),C(0xfb),C(0xd9),C(0xe8)+c[C(0xd6)]['js']]}),q=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this['fsi'][C(0xcd)](q);!r&&await this[C(0xe9)][C(0xf7)]({'srcPath':'i18n/index.js','destPath':p,'framework':C(0xe7),'context':j,'config':c});const s=this[C(0xe9)][C(0xde)](a141e[C(0xeb)](p)[C(0xef)](),'default\x20as\x20'+b[C(0xe1)])[0x0]&&!![];!s?await this[C(0xe9)][C(0xc5)]({'filePath':p,'content':C(0xdb)+b[C(0xe1)]+C(0xc4)+b['lang']+'\x27;'}):Log[C(0xd5)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log['error'](w),process[C(0xd4)](0x1);}});}catch(g){Log['error'](g),process['exit'](0x1);}});
1
+ const a141A=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=parseInt(x(0x1a6))/0x1*(parseInt(x(0x1a5))/0x2)+-parseInt(x(0x180))/0x3+parseInt(x(0x194))/0x4+parseInt(x(0x175))/0x5*(parseInt(x(0x1aa))/0x6)+-parseInt(x(0x1a7))/0x7+-parseInt(x(0x17d))/0x8*(-parseInt(x(0x192))/0x9)+-parseInt(x(0x182))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xbcdb3));const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a141d;if(c){const e=c[y(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const z=a141d;return a141a[z(0x19d)]()[z(0x16f)](z(0x199))['toString']()['constructor'](a141a)[z(0x16f)](z(0x199));});a141a();function a141c(){const D=['i18n.js','checkNpmPackage','exit','lib','getMakaProjectConfig','appName','Locale\x20already\x20defined:\x20','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','translation','root','fsi','531qIdUnY','readFileSync','684960zbYbQc','locales','Generate\x20a\x20new\x20locale\x20translation','engines','index.js','(((.+)+)+)+$','index.','create','error','toString','features.withTranslations','isFile','grep','server','services','i18next','ssr','1166JYzENB','1716NfZIQW','2136652jcqsGQ','import\x20\x27../lib/services/translations/i18n\x27;','installNpmPackage','1251420jPQysk','startup','client','export\x20{\x20default\x20as\x20','import\x20\x27../lib/services/translations/i18n\x27;\x0a','search','Locale\x20already\x20exported:\x20','imports','apply','rewriteDestinationPathForEngine','warn','15JaSAmG','lang','template','withValue','findAppDirectory','injectAtBeginningOfFile','i18n/locales.js','maka\x20g:translation\x20--lang=de','170728zsbOGN','pathFromApp','maka\x20g:translation\x20--lang=fr','4360164IUdtue','i18next\x20i18next-browser-languagedetector\x20react-i18next','5243180KScgWY','service','maka\x20{generate,\x20g}:translation','injectAtEndOfFile','translations'];a141c=function(){return D;};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-0x16e;let f=c[d];return f;},a141d(a,b);}Generator[a141A(0x19b)]({'name':a141A(0x18f),'usage':a141A(0x184),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141A(0x176),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141A(0x196),'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)',a141A(0x17f),a141A(0x17c)],'validOpts':[]},async function(a,b){const B=a141A;try{const c=this[B(0x191)][B(0x18b)](),d=this['fsi']['getGlobalConfig'](),f=this[B(0x191)][B(0x179)]();await this['fsi'][B(0x178)](c,async()=>{const C=B;try{!b[C(0x176)]&&(b[C(0x176)]='en');!b[C(0x190)]&&!this[C(0x191)][C(0x188)](C(0x1a3))&&(Log['warn'](C(0x18e)),this[C(0x191)][C(0x1a9)](C(0x181),{'cwd':f}),this[C(0x191)]['setProjectConfig'](C(0x19e),!![]));const g=this['fsi']['pathFromApp']({'pathParts':[C(0x171),C(0x1ab),C(0x1ac),C(0x198)]}),h=this[C(0x191)][C(0x173)]({'pathParts':[g],'config':c}),i=this[C(0x191)][C(0x1a0)](a141e[C(0x193)](h)[C(0x19d)](),C(0x1a8))[0x0]&&!![];if(c[C(0x197)][C(0x1a4)]==='true'){!i&&this[C(0x191)][C(0x17a)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[C(0x191)][C(0x17e)]({'pathParts':[C(0x171),C(0x1ab),C(0x1a1),C(0x198)]}),u=this[C(0x191)][C(0x173)]({'pathParts':[t],'config':c}),v=this[C(0x191)]['grep'](a141e[C(0x193)](u)['toString'](),C(0x1a8))[0x0]&&!![];!v&&this[C(0x191)][C(0x17a)]({'filePath':u,'content':C(0x16e)});}else!i&&this[C(0x191)][C(0x17a)]({'filePath':h,'content':C(0x16e)});const j={'app':d[C(0x18c)],'config':c},k=this[C(0x191)][C(0x17e)]({'pathParts':['imports','startup',C(0x18a),'services',C(0x186),C(0x187)]}),l=this[C(0x191)][C(0x19f)](this[C(0x191)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&await this[C(0x191)][C(0x177)]({'srcPath':'i18n/i18n.js','destPath':k,'framework':C(0x183),'context':j,'config':c});const m=this[C(0x191)][C(0x17e)]({'pathParts':['imports','startup','lib',C(0x1a2),C(0x186),C(0x195),b[C(0x176)]+'.js']}),n=this[C(0x191)][C(0x173)]({'pathParts':[m],'config':c}),o=this[C(0x191)][C(0x19f)](n);!o?await this[C(0x191)][C(0x177)]({'srcPath':C(0x17b),'destPath':m,'framework':C(0x183),'context':j,'config':c}):Log['warn'](C(0x18d)+n);const p=this['fsi'][C(0x17e)]({'pathParts':[C(0x171),C(0x1ab),C(0x18a),C(0x1a2),'translations',C(0x195),C(0x19a)+c['engines']['js']]}),q=this['fsi'][C(0x173)]({'pathParts':[p],'config':c}),r=this['fsi'][C(0x19f)](q);!r&&await this[C(0x191)][C(0x177)]({'srcPath':'i18n/index.js','destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0x191)][C(0x1a0)](a141e['readFileSync'](p)[C(0x19d)](),'default\x20as\x20'+b[C(0x176)])[0x0]&&!![];!s?await this['fsi'][C(0x185)]({'filePath':p,'content':C(0x1ad)+b['lang']+'\x20}\x20from\x20\x27./'+b[C(0x176)]+'\x27;'}):Log[C(0x174)](C(0x170)+p);}catch(w){Log[C(0x19c)](w),process[C(0x189)](0x1);}});}catch(g){Log[B(0x19c)](g),process[B(0x189)](0x1);}});
@@ -1 +1 @@
1
- const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=parseInt(j(0x139))/0x1*(parseInt(j(0x145))/0x2)+parseInt(j(0x140))/0x3+-parseInt(j(0x13b))/0x4+parseInt(j(0x13d))/0x5+parseInt(j(0x152))/0x6*(-parseInt(j(0x143))/0x7)+-parseInt(j(0x147))/0x8*(parseInt(j(0x141))/0x9)+parseInt(j(0x14e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x6abc1));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0x13e)]()['search']('(((.+)+)+)+$')[l(0x13e)]()[l(0x13c)](a142a)[l(0x14b)](l(0x13a));});a142a();import a142e from'minimist';import a142f from'os';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['url']),__dirname=a142g[a142m(0x146)](__filename);global[a142m(0x151)]=__dirname;const total_memory=a142f[a142m(0x14d)](),total_mem_in_kb=total_memory/0x400;function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x139;let f=c[d];return f;},a142d(a,b);}let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process[a142m(0x144)]['TOOL_NODE_FLAGS']=a142m(0x148)+total_mem_in_mb,process[a142m(0x144)][a142m(0x13f)]='1',process['env']['NODE_NO_WARNINGS']='1';const argv=a142e(process[a142m(0x14a)][a142m(0x14f)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a142m(0x150)](argv));function a142c(){const n=['env','458WqLTkQ','dirname','3832376uknzDX','--max-old-space-size=','run','argv','search','camelizeKeys','totalmem','6501360XbZnNs','slice','stringify','MAKA_COMMAND_PATH','1490244WXMqbm','967foLbaY','(((.+)+)+)+$','706656oDmSUx','constructor','754210ImfbpA','toString','BROWSERSLIST_IGNORE_OLD_DATA','2446791OAyPdt','9JsCZBU','apply','21SbpaIR'];a142c=function(){return n;};return a142c();}delete deepCopyArgv['_'];const opts=a142h[a142m(0x14c)](deepCopyArgv);a142i[a142m(0x149)](args,opts);
1
+ const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0xbf))/0x1*(parseInt(j(0xc6))/0x2)+parseInt(j(0xb9))/0x3*(parseInt(j(0xc5))/0x4)+parseInt(j(0xc1))/0x5+parseInt(j(0xb7))/0x6+parseInt(j(0xbb))/0x7+parseInt(j(0xc4))/0x8+-parseInt(j(0xce))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x56faa));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0xb6)]()['search']('(((.+)+)+)+$')[l(0xb6)]()[l(0xcf)](a142a)[l(0xc9)]('(((.+)+)+)+$');});a142a();import a142e from'minimist';import a142f from'os';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0xb6;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(0xba)]),__dirname=a142g[a142m(0xc2)](__filename);global[a142m(0xcd)]=__dirname;function a142c(){const n=['env','search','argv','BROWSERSLIST_IGNORE_OLD_DATA','stringify','MAKA_COMMAND_PATH','3641895Duxgky','constructor','toString','3709878MiFdgn','slice','45642VtsoEe','url','1739507FokdCw','apply','run','floor','1DBwkxb','camelizeKeys','234080XXSSeO','dirname','parse','1299488SoWrQs','64CyjziV','1117138VJFXeb','TOOL_NODE_FLAGS'];a142c=function(){return n;};return a142c();}const total_memory=a142f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142m(0xbe)](total_mem_in_mb),process[a142m(0xc8)][a142m(0xc7)]='--max-old-space-size='+total_mem_in_mb,process[a142m(0xc8)][a142m(0xcb)]='1',process['env']['NODE_NO_WARNINGS']='1';const argv=a142e(process[a142m(0xca)][a142m(0xb8)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0xc3)](JSON[a142m(0xcc)](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0xc0)](deepCopyArgv);a142i[a142m(0xbd)](args,opts);
@@ -1 +1 @@
1
- const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0x1d3))/0x1*(-parseInt(I(0x1ff))/0x2)+parseInt(I(0x1f1))/0x3+-parseInt(I(0x218))/0x4*(parseInt(I(0x223))/0x5)+-parseInt(I(0x21d))/0x6+parseInt(I(0x20d))/0x7*(parseInt(I(0x1fa))/0x8)+-parseInt(I(0x1f6))/0x9*(-parseInt(I(0x1f7))/0xa)+parseInt(I(0x1df))/0xb*(parseInt(I(0x1e3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x30473));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x21c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0x1f5)]()[K(0x1dd)]('(((.+)+)+)+$')[K(0x1f5)]()['constructor'](a143a)[K(0x1dd)](K(0x1de));});a143a();import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f['homedir']();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a143c(){const a3=['aliases','map','10766qZWBej','resourceName','push','formatToNamedParam','Please\x20choose\x20a\x20valid\x20value\x20for\x20','You\x20must\x20have\x20','string','description','Please\x20choose\x20a\x20value\x20for\x20','NIE','error','244PthqaF','existsSync','To\x20use\x20this\x20command,\x20\x22','usage','apply','1371000JFsqss','assign','domainLicense','match','getPro','proCommands','20865iLpURv','parent','.meteor','Local','isCommand','docker','Please\x20choose\x20an\x20environment','local','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','filter','win32','validateEngines','concat','roles','To\x20use\x20this\x20generator,\x20\x22','1OQivvg','options','examples','Please\x20provide\x20a\x20resource\x20name:','find','includes','validateParams','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','ask','Invalid\x20option:\x20','search','(((.+)+)+)+$','232870jEyxvF','list','shortDesc','findProjectDirectory','132zrUHNi','length','name','validateUserIsLoggedIn','keys','exit','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','getShortName','indexOf','getAppProjectConfigs','env','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','root','every','219717ZPCsmp','dir','validateMakaProject','validateMeteorInstall','toString','915606vcKknk','20uMgSYF','disableAuthCheck','No\x20description\x20provided.','80nwZKLm','cwd','isGenerator','getMakaProjectConfig','singleLicense','311686fUrXlq','charAt','_handler','validateMakaSubscription','help','fsi','proGenerators','remapShortToLong','\x20installed\x20to\x20use\x20this\x20command.','platform','Invalid\x20value\x20for\x20','join'];a143c=function(){return a3;};return a143c();}function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x1d0;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(0x228)];[a143L(0x204)];['options'];[a143L(0x1e5)];[a143L(0x224)];[a143L(0x201)];constructor(){const M=a143L;this[M(0x228)]=new Docker(),this[M(0x204)]=new FSI();}[a143L(0x1ea)](a){const N=a143L;return a[N(0x200)](0x0);}[a143L(0x206)](a,b){const O=a143L,c=this[O(0x210)](b),d={...a};for(const e of c){const f=this[O(0x1ea)](e[O(0x1e5)]);a[f]&&(d[e['name']]=a[f],delete d[f]);}return d;}[a143L(0x210)](a){const P=a143L;if(a[P(0x1f0)](b=>typeof b===P(0x213)))return a[P(0x20c)](b=>({'name':b}));return a;}[a143L(0x220)](a){const Q=a143L,b=[this[Q(0x1e5)]][Q(0x1d0)](this[Q(0x1d4)][Q(0x20b)]||[]);return this['parent']&&b[Q(0x20f)](this[Q(0x224)]),b[Q(0x1d8)](a);}[a143L(0x1f3)](){const R=a143L,a=this['fsi'][R(0x1e2)]();return a!==![]?!![]:![];}async[a143L(0x1e6)](){return!![];}[a143L(0x1f4)](){const S=a143L,a=process[S(0x208)]===S(0x22d);if(a){if(!a143g[S(0x219)](a143e['join'](homeDir,'AppData',S(0x226),S(0x225))))return![];}else{if(!a143g['existsSync'](a143e[S(0x20a)](homeDir,S(0x225))))return![];}return!![];}[a143L(0x22e)](a){const T=a143L,b=this['fsi'][T(0x1fd)](),c=b['engines'],d=Object[T(0x1e7)](a);if(d[T(0x1e4)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0x217)](T(0x212)+e+'\x20version\x20'+a[e]+T(0x207));throw UsageError;}}}async[a143L(0x1d9)](a,b,c){const U=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0x1e7)](b);if(h[U(0x1d8)](U(0x20e))&&b[U(0x20e)]===undefined&&!g){const m=await Actions[U(0x1db)](U(0x1d6));b[U(0x20e)]=m;}let i=[],j=b;if(d){i=this[U(0x210)](d),j=this[U(0x206)](b,i);if(i&&i?.[U(0x1e4)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0x1e7)](j)[U(0x1d8)](o)){if(o===U(0x1ed)){const r=this[U(0x204)][U(0x1ec)]()[U(0x22c)](t=>t!==U(0x22a));r['length']===0x0&&(Log[U(0x217)](U(0x22b)),process[U(0x1e8)](0x1));const s=await Actions['options']({'type':U(0x1e0),'name':'env','message':U(0x229),'choices':r});b[U(0x1ed)]=s[U(0x1ed)];}else{const t=p;if(t){const u=await Actions[U(0x1d4)]({'type':U(0x1e0),'name':o,'message':U(0x215)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask']('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v['match'](q))b[o]=v;else{Log['error'](U(0x209)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0x1db)]('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0x1d8)](x)){Log[U(0x217)](U(0x209)+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0x210)](f),l=b;if(k&&Object['keys'](k)?.['length']>0x0){k=k['concat'](i||[]),k[U(0x20f)]({'name':'resourceName','hidden':!![]}),k['push']({'name':U(0x203),'boolFlag':!![]}),k[U(0x20f)]({'name':U(0x1f2),'hidden':!![]}),k[U(0x20f)]({'name':U(0x1fb),'hidden':!![]}),k[U(0x20f)]({'name':U(0x1ef),'hidden':!![]}),k['push']({'name':'config','hidden':!![]}),l=this[U(0x206)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A['includes'](B))){const C=A;if(C){const D=await Actions[U(0x1d4)]({'type':U(0x1e0),'name':z,'message':U(0x211)+z,'choices':A});l[z]=D[z];}}if(k[U(0x1e4)]>0x0)for(const E of Object['keys'](l)){const F=k[U(0x1d7)](G=>G[U(0x1e5)]===E);if(!F){Log[U(0x217)](U(0x1dc)+E);throw new UsageError();}}}}if(e&&e?.[U(0x1e4)]>0x0)for(const G of e){if(!e[U(0x1d8)](G)){Log[U(0x217)]('Invalid\x20argument:\x20'+G);const H=await Actions[U(0x1db)](U(0x1da)+G);a[a[U(0x1eb)](G)]=H;}}return Object[U(0x21e)](j,l);}async[a143L(0x202)](a){const V=a143L;try{if(!a)return;const b=await this[V(0x204)][V(0x221)]();!b&&(Log[V(0x217)](V(0x1ee)),process['exit'](0x1));const c=!b?.[V(0x1d1)][V(0x1d8)](V(0x1fe))&&!b?.[V(0x1d1)][V(0x1d8)](V(0x21f));if(this[V(0x227)](a)){const d=V(0x21a)+a['name']+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';if(a[V(0x1d4)][V(0x1f8)])return;const f=b?.['proCommands'][V(0x1d8)](a[V(0x1e5)])||b?.[V(0x222)][V(0x1d8)](a['parent']||'')||this[V(0x1d4)]['isPro'];if(f&&c)throw d;}else{if(this[V(0x1fc)](a)){const g=b?.[V(0x205)][V(0x1d8)](a[V(0x1e5)])||b?.[V(0x205)][V(0x1d8)](a['parent']||'');if(g&&c)throw V(0x1d2)+a[V(0x1e5)]+V(0x1e9);}}}catch(h){Log['error'](h),process[V(0x1e8)](0x1);}}[a143L(0x227)](a){const W=a143L;return W(0x1d4)in a;}[a143L(0x1fc)](a){const X=a143L;return!(X(0x1d4)in a);}[a143L(0x214)](){const Y=a143L;return this['options']['description']||this[Y(0x1d4)]['shortDesc']||Y(0x1f9);}[a143L(0x1e1)](){const Z=a143L;return this[Z(0x1d4)][Z(0x1e1)]||Z(0x216);}[a143L(0x21b)](){const a0=a143L;return this['options'][a0(0x21b)]||'No\x20usage\x20provided.';}[a143L(0x1d5)](){const a1=a143L;return this[a1(0x1d4)][a1(0x1d5)]||[];}['aliases'](){const a2=a143L;return this[a2(0x1d4)][a2(0x20b)]||'None';}['experimental'](){return this['options']['experimental']||![];}}
1
+ const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0x1cf))/0x1+parseInt(I(0x1ea))/0x2+parseInt(I(0x1d3))/0x3*(parseInt(I(0x1c1))/0x4)+parseInt(I(0x1b5))/0x5+parseInt(I(0x1d1))/0x6+-parseInt(I(0x1c3))/0x7*(-parseInt(I(0x1d8))/0x8)+-parseInt(I(0x1d6))/0x9*(parseInt(I(0x1da))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x99b6d));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x1fc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0x209)]()[K(0x20d)](K(0x1e2))[K(0x209)]()[K(0x1ee)](a143a)['search'](K(0x1e2));});a143a();import a143e from'path';function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a143d(a,b);}import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x1e8)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a143c(){const a4=['fsi','shortDesc','indexOf','singleLicense','aliases','config','getPro','61170iMxCzj','proGenerators','1887090pyVOdR','validateMakaSubscription','3SyVifE','Please\x20provide\x20a\x20resource\x20name:','docker','9jeNaYO','validateUserIsLoggedIn','15816BueQhU','push','12944310KeGzzh','error','disableAuthCheck','_handler','env','match','experimental','filter','(((.+)+)+)+$','isCommand','AppData','platform','map','concat','homedir','join','1818154zepObq','local','ask','every','constructor','resourceName','Invalid\x20value\x20for\x20','usage','existsSync','validateMeteorInstall','remapShortToLong','engines','name','description','domainLicense','Invalid\x20argument:\x20','None','No\x20description\x20provided.','apply','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','exit','Local','Invalid\x20option:\x20','find','You\x20must\x20have\x20','options','findProjectDirectory','length','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','\x20version\x20','win32','toString','help','isGenerator','Please\x20choose\x20a\x20value\x20for\x20','search','.meteor','getAppProjectConfigs','getShortName','keys','1775185eVWwSZ','includes','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','No\x20usage\x20provided.','formatToNamedParam','parent','Please\x20provide\x20a\x20value\x20for\x20','examples','isPro','proCommands','NIE','list','1223032rnMRWq','roles','357TfOKPG','cwd','validateEngines','\x20installed\x20to\x20use\x20this\x20command.','charAt'];a143c=function(){return a4;};return a143c();}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(0x1d5)];[a143L(0x1c8)];['options'];[a143L(0x1f6)];[a143L(0x1ba)];[a143L(0x1dd)];constructor(){const M=a143L;this[M(0x1d5)]=new Docker(),this['fsi']=new FSI();}[a143L(0x1b3)](a){const N=a143L;return a[N(0x1c7)](0x0);}[a143L(0x1f4)](a,b){const O=a143L,c=this[O(0x1b9)](b),d={...a};for(const e of c){const f=this[O(0x1b3)](e[O(0x1f6)]);a[f]&&(d[e[O(0x1f6)]]=a[f],delete d[f]);}return d;}[a143L(0x1b9)](a){const P=a143L;if(a[P(0x1ed)](b=>typeof b==='string'))return a[P(0x1e6)](b=>({'name':b}));return a;}[a143L(0x1df)](a){const Q=a143L,b=[this[Q(0x1f6)]][Q(0x1e7)](this['options']['aliases']||[]);return this[Q(0x1ba)]&&b[Q(0x1d9)](this[Q(0x1ba)]),b['includes'](a);}['validateMakaProject'](){const R=a143L,a=this['fsi'][R(0x204)]();return a!==![]?!![]:![];}async[a143L(0x1d7)](){return!![];}[a143L(0x1f3)](){const S=a143L,a=process[S(0x1e5)]===S(0x208);if(a){if(!a143g['existsSync'](a143e[S(0x1e9)](homeDir,S(0x1e4),S(0x1ff),S(0x20e))))return![];}else{if(!a143g[S(0x1f2)](a143e[S(0x1e9)](homeDir,S(0x20e))))return![];}return!![];}[a143L(0x1c5)](a){const T=a143L,b=this['fsi']['getMakaProjectConfig'](),c=b[T(0x1f5)],d=Object[T(0x1b4)](a);if(d[T(0x205)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log['error'](T(0x202)+e+T(0x207)+a[e]+T(0x1c6));throw UsageError;}}}async['validateParams'](a,b,c){const U=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0x1b4)](b);if(h[U(0x1b6)](U(0x1ef))&&b[U(0x1ef)]===undefined&&!g){const m=await Actions['ask'](U(0x1d4));b[U(0x1ef)]=m;}let i=[],j=b;if(d){i=this[U(0x1b9)](d),j=this[U(0x1f4)](b,i);if(i&&i?.[U(0x205)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0x1b4)](j)[U(0x1b6)](o)){if(o===U(0x1de)){const r=this[U(0x1c8)][U(0x1b2)]()[U(0x1e1)](t=>t!==U(0x1eb));r[U(0x205)]===0x0&&(Log[U(0x1db)](U(0x206)),process[U(0x1fe)](0x1));const s=await Actions[U(0x203)]({'type':U(0x1c0),'name':U(0x1de),'message':'Please\x20choose\x20an\x20environment','choices':r});b[U(0x1de)]=s['env'];}else{const t=p;if(t){const u=await Actions['options']({'type':U(0x1c0),'name':o,'message':U(0x20c)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](U(0x1bb)+o);if(v['match'](q))b[o]=v;else{Log['error'](U(0x1f0)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0x1ec)](U(0x1bb)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0x1b6)](x)){Log[U(0x1db)](U(0x1f0)+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0x1b9)](f),l=b;if(k&&Object['keys'](k)?.[U(0x205)]>0x0){k=k[U(0x1e7)](i||[]),k[U(0x1d9)]({'name':U(0x1ef),'hidden':!![]}),k[U(0x1d9)]({'name':U(0x20a),'boolFlag':!![]}),k['push']({'name':'dir','hidden':!![]}),k[U(0x1d9)]({'name':U(0x1c4),'hidden':!![]}),k[U(0x1d9)]({'name':'root','hidden':!![]}),k['push']({'name':U(0x1cd),'hidden':!![]}),l=this[U(0x1f4)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[U(0x1b6)](B))){const C=A;if(C){const D=await Actions[U(0x203)]({'type':U(0x1c0),'name':z,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+z,'choices':A});l[z]=D[z];}}if(k[U(0x205)]>0x0)for(const E of Object[U(0x1b4)](l)){const F=k[U(0x201)](G=>G[U(0x1f6)]===E);if(!F){Log[U(0x1db)](U(0x200)+E);throw new UsageError();}}}}if(e&&e?.[U(0x205)]>0x0)for(const G of e){if(!e[U(0x1b6)](G)){Log['error'](U(0x1f9)+G);const H=await Actions['ask']('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a[U(0x1ca)](G)]=H;}}return Object['assign'](j,l);}async[a143L(0x1d2)](a){const V=a143L;try{if(!a)return;const b=await this[V(0x1c8)][V(0x1ce)]();!b&&(Log['error'](V(0x1b7)),process['exit'](0x1));const c=!b?.[V(0x1c2)][V(0x1b6)](V(0x1cb))&&!b?.[V(0x1c2)][V(0x1b6)](V(0x1f8));if(this[V(0x1e3)](a)){const d='To\x20use\x20this\x20command,\x20\x22'+a['name']+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';if(a[V(0x203)][V(0x1dc)])return;const f=b?.[V(0x1be)][V(0x1b6)](a[V(0x1f6)])||b?.[V(0x1be)][V(0x1b6)](a[V(0x1ba)]||'')||this[V(0x203)][V(0x1bd)];if(f&&c)throw d;}else{if(this[V(0x20b)](a)){const g=b?.[V(0x1d0)][V(0x1b6)](a[V(0x1f6)])||b?.[V(0x1d0)]['includes'](a['parent']||'');if(g&&c)throw'To\x20use\x20this\x20generator,\x20\x22'+a[V(0x1f6)]+V(0x1fd);}}}catch(h){Log[V(0x1db)](h),process['exit'](0x1);}}['isCommand'](a){const W=a143L;return W(0x203)in a;}['isGenerator'](a){const X=a143L;return!(X(0x203)in a);}[a143L(0x1f7)](){const Y=a143L;return this[Y(0x203)][Y(0x1f7)]||this[Y(0x203)][Y(0x1c9)]||Y(0x1fb);}['shortDesc'](){const Z=a143L;return this['options']['shortDesc']||Z(0x1bf);}['usage'](){const a0=a143L;return this[a0(0x203)][a0(0x1f1)]||a0(0x1b8);}['examples'](){const a1=a143L;return this[a1(0x203)][a1(0x1bc)]||[];}[a143L(0x1cc)](){const a2=a143L;return this[a2(0x203)][a2(0x1cc)]||a2(0x1fa);}[a143L(0x1e0)](){const a3=a143L;return this[a3(0x203)]['experimental']||![];}}
@@ -1 +1 @@
1
- const a144i=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=-parseInt(f(0x1b9))/0x1*(-parseInt(f(0x1a4))/0x2)+-parseInt(f(0x1b5))/0x3*(parseInt(f(0x1a7))/0x4)+parseInt(f(0x1b1))/0x5*(-parseInt(f(0x1b7))/0x6)+-parseInt(f(0x1af))/0x7*(parseInt(f(0x1bc))/0x8)+-parseInt(f(0x1ab))/0x9*(-parseInt(f(0x1ac))/0xa)+parseInt(f(0x1b6))/0xb*(parseInt(f(0x1b8))/0xc)+-parseInt(f(0x1b3))/0xd*(-parseInt(f(0x1ba))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0xd8799));const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a144d;if(c){const e=c[g(0x1bb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const h=a144d;return a144a['toString']()[h(0x1b2)]('(((.+)+)+)+$')[h(0x1aa)]()[h(0x1b0)](a144a)['search'](h(0x1ad));});a144a();function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a144d(a,b);}import a144e from'inquirer';function a144c(){const m=['1340363HSZsyK','14rJMDKn','apply','40diBTAo','2FfUcHK','password','prompt','4cUGWQg','ask','confirm','toString','6688341UeQXnl','10yCodlq','(((.+)+)+)+$','input','268331PgKday','constructor','965wyTCDi','search','11394695MjPfTO','answer','4146996NbsMDF','2342164njhXuE','35382iciQGt','36uCAyxB'];a144c=function(){return m;};return a144c();}export class Actions{static async[a144i(0x1a8)](a,b){const j=a144i,{answer:c}=await a144e[j(0x1a6)]({'type':b?j(0x1a5):j(0x1ae),'name':'answer','message':a});return c;}static async[a144i(0x1a9)](a,b=![]){const k=a144i,{answer:c}=await a144e['prompt']({'type':k(0x1a9),'name':k(0x1b4),'message':a,'default':b});return c;}static async['options'](a){const l=a144i,b=await a144e[l(0x1a6)](a);return b;}}
1
+ const a144i=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=-parseInt(f(0x66))/0x1*(parseInt(f(0x6e))/0x2)+parseInt(f(0x74))/0x3*(parseInt(f(0x67))/0x4)+-parseInt(f(0x72))/0x5*(parseInt(f(0x7c))/0x6)+parseInt(f(0x6c))/0x7*(parseInt(f(0x6a))/0x8)+-parseInt(f(0x6f))/0x9*(parseInt(f(0x79))/0xa)+-parseInt(f(0x7a))/0xb*(-parseInt(f(0x76))/0xc)+-parseInt(f(0x73))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x904b6));function a144c(){const m=['20hhLmCA','297JrBiOv','prompt','53004bOVuwC','1109xvdcBE','4goMUon','(((.+)+)+)+$','apply','8HhRszx','toString','2840425yJUaQP','confirm','604GUGjkT','630918Uwpswo','answer','search','5lzPEWH','5067621llYFcB','2725833LQmklh','ask','66852UxKZts','input','password'];a144c=function(){return m;};return a144c();}const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a144d;if(c){const e=c[g(0x69)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const h=a144d;return a144a[h(0x6b)]()[h(0x71)](h(0x68))[h(0x6b)]()['constructor'](a144a)['search'](h(0x68));});function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x66;let f=c[d];return f;},a144d(a,b);}a144a();import a144e from'inquirer';export class Actions{static async[a144i(0x75)](a,b){const j=a144i,{answer:c}=await a144e['prompt']({'type':b?j(0x78):j(0x77),'name':'answer','message':a});return c;}static async[a144i(0x6d)](a,b=![]){const k=a144i,{answer:c}=await a144e[k(0x7b)]({'type':k(0x6d),'name':k(0x70),'message':a,'default':b});return c;}static async['options'](a){const l=a144i,b=await a144e[l(0x7b)](a);return b;}}
@@ -1 +1 @@
1
- const a145r=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=-parseInt(p(0x196))/0x1*(parseInt(p(0x126))/0x2)+parseInt(p(0x19c))/0x3*(-parseInt(p(0x154))/0x4)+-parseInt(p(0x17c))/0x5+-parseInt(p(0x178))/0x6+parseInt(p(0x14f))/0x7*(parseInt(p(0x17f))/0x8)+-parseInt(p(0x112))/0x9*(-parseInt(p(0x1e3))/0xa)+parseInt(p(0x1db))/0xb*(parseInt(p(0x1e5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x206d9));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(0x1e0)]()[q(0x166)](q(0x1ee))[q(0x1e0)]()[q(0x1fc)](a145a)[q(0x166)](q(0x1ee));});function a145c(){const a7=['CidrBlock','Please\x20choose\x20a\x20VPC:\x20[0]\x20','imageId','file://','ca-central-1','ap-east-1','CreationDate','architecture','\x20CIDR:\x20','amiId','Port\x20','\x20PUB_IP:\x20','Instance\x20rebooted!','push','sa-east-1','eu-south-1','exit','HostedZones','Setting\x20SG\x20ID\x20to:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Timeout\x20while\x20processing\x20','reason','minCount','publicIp','Key\x20Name:\x20[','eu-west-2','\x20AZONE:\x20','\x20:\x20','_keys','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','find','298046SdONRw','Value','withSpinner','me-central-1','filter','908bFYQXq','send','\x20STATUS:\x20','us-west-2','httpStatusCode','isFile','length','utf8','config/ssh.json','repositories','ap-southeast-4','hvm','sgPorts','Availability','trim','map','VpcId','desc','search','region','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','virtualization-type','0.0.0.0/0','Subnets','ap-southeast-1','env','pop','subnet-id','\x20ENV:\x20','Error\x20fetching\x20domain\x20pricing:','nextToken','root-device-type','ssh.json','sort','getAppConfigPath','eu-central-2','1582188DunHFp','Reservations','ap-south-2','$metadata','222165xDWDrB','KeyMaterial','**\x20Available\x20\x20VPCs\x20**','16wRQeWa','environment','key','base64','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','GroupId','No\x20instances\x20found','.pem.txt','Canonical*Ubuntu*18.04*','registerDomain','Could\x20not\x20find\x20hosted\x20zone','log','sgIds','tag:created-by','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','info','Description',',\x20URI:\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','repositoryName','x86_64','date','\x20Error\x20Rason:\x20','68155MuqClD','instanceId','state','From\x20AWS:','AVAILABLE','Repository\x20\x22','603SyutpY','userData','ingressRule','available','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','\x20SGID:\x20','Final\x20list\x20of\x20ECR\x20repositories:','status','Region:\x20','\x20NAME:\x20','us-east-1','ap-southeast-3','slice','tcp','\x20PRIV_IP:\x20','fsi','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','ecrCreateRepository','includes','**\x20Available\x20Security\x20Groups\x20**','KeyName','ec2describeInstances','all','/dev/sdh','stringify','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','authorizationToken','No\x20subnets\x20found.','notice','config','GroupName','us-west-1','concat','authorizationData','warn','listAvailableAMIs','\x22\x20created\x20successfully\x20in\x20','chooseVPC','forEach','race','cidr','getEcrLoginPassword','subnet','vpcId','split','getSecurityGroups','ignore','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','maka-cli','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','template','Pem\x20key\x20saved\x20to\x20','name','chooseInstance','ec2rebootInstance','error','deleteSecurityGroup','ca-west-1','\x20VPCID:\x20','Authorization\x20token\x20is\x20missing','now','\x20DESCRIPTION:\x20','143yvQvGY','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','Created:\x20','Prices','us-east-2','toString','from','Canonical*Ubuntu*20.04*','195330ULyrQy','Hosted\x20zone\x20created\x20successfully!','316068OPylMg','ImageId','createFile','suggestion','repositoryUri','ap-northeast-1','\x20SG\x20NAME:\x20','timeout','uri','(((.+)+)+)+$','\x20Status\x20Code:\x20','$response','getSubnetCidr','ID:\x20','join','subnetId','writeFileSync','sgId','bright','Description:',',\x20Name:\x20','\x20AMIID:\x20','ec2createSG','constructor','privateIp','90XwcTtX','success','getTime','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','Instances','il-central-1','chmod\x20400\x20','UNSUPPORTED','createKeyPair','ap-south-1','pem','checkDomainAvailability','changeResourceRecordSets','Error\x20generating\x20key\x20pair','createKeyPairEC2Key','description','me-south-1','Invalid\x20choice','ask','parse','4QoJITV','listAvailableSubnets','ec2describeKeys','ap-southeast-2','eu-north-1','\x20INSTANCE_ID:\x20','machine','listHostedZonesByName','ecrDeleteRepository'];a145c=function(){return a7;};return a145c();}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';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';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x112;let f=c[d];return f;},a145d(a,b);}const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a145r(0x1ac)];constructor(){this['fsi']=new FSI();}async['chooseSecurityGroup'](a){const s=a145r;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[s(0x1ca)](a);let f='';if(c===''){Log['notice'](s(0x1b0)),d['forEach'](function(h){const t=s;h[t(0x1d1)]===a?Log[t(0x1b9)](t(0x1f2)+h['id']+t(0x1eb)+h[t(0x1d1)]+t(0x1a2)+h['sgId']):Log[t(0x1f7)](t(0x1f2)+h['id']+t(0x1eb)+h['name']+t(0x1a2)+h[t(0x1f6)]);});const g=await Actions[s(0x124)](s(0x1a1)+b+']\x20')||b['toString']();d[s(0x1c3)](function(h){const u=s;h['id']===parseInt(g)&&(f=h[u(0x1f6)],Log['success'](u(0x141)+f+'\x0a'));});}else f=c,Log[s(0x113)](s(0x141)+f+'\x0a');if(f==='')throw new Error(s(0x1a0));return f;}catch(h){Log[s(0x1d4)](h);throw h;}}async[a145r(0x1c0)](){const v=a145r;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':v(0x136),'Values':[v(0x193)]},{'Name':v(0x169),'Values':[v(0x15f)]},{'Name':v(0x173),'Values':['ebs']},{'Name':v(0x198),'Values':[v(0x19f)]},{'Name':'image-type','Values':[v(0x12c)]},{'Name':v(0x121),'Values':[v(0x187),v(0x1e2)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b['send'](d);if(f&&f[v(0x15a)]>0x0){const g=new Date(),h=new Date(g['getTime']()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[v(0x153)](j=>j[v(0x135)]&&!j['Description']?.[v(0x1af)](v(0x119))&&new Date(j[v(0x135)])>h)['map'](j=>({'amiId':j[v(0x1e6)],'desc':j[v(0x18f)],'date':j[v(0x135)]}));if(i[v(0x15a)]>0x0){i[v(0x175)]((n,o)=>new Date(o[v(0x194)])['getTime']()-new Date(n[v(0x194)])[v(0x114)]());const j=i[v(0x1a9)](0x0,0x4),k=j[v(0x163)]((n,o)=>({'id':o,'amiId':n[v(0x138)],'desc':n['desc']}));k[v(0x1c3)](n=>{const w=v;Log[w(0x1f7)](w(0x1f2)+n['id']+w(0x1fa)+n[w(0x138)]+w(0x1da)+n[w(0x165)]);});const l=await Actions[v(0x124)](v(0x142))||'0',m=k['find'](n=>n['id']===parseInt(l));if(m)a=m[v(0x138)],Log['success']('Setting\x20AMI\x20ID\x20to\x20'+a+v(0x14b)+m[v(0x165)]);else throw Log[v(0x1d4)](v(0x1a0));}else throw Log[v(0x1d4)](v(0x115));}else throw Log[v(0x1d4)]('No\x20images\x20found.');}catch(n){Log[v(0x1d4)](n);}return a;}async[a145r(0x127)](){const x=a145r;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b['send'](d);if(f&&f['length']>0x0){const g=f['map']((j,k)=>({'id':k,'cidr':j[x(0x12f)],'az':j['AvailabilityZone'],'subnetId':j['SubnetId']}));g[x(0x1c3)](j=>{const y=x;Log[y(0x1f7)](y(0x1f2)+j['id']+y(0x137)+j['cidr']+y(0x14a)+j['az']+'\x20SUBNETID:\x20'+j[y(0x1f4)]);});const h=await Actions[x(0x124)](x(0x143))||'0',i=g[x(0x14e)](j=>j['id']===parseInt(h));if(i)a=i[x(0x1f4)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+a);else throw Log[x(0x1d4)](x(0x1a0));}else throw Log[x(0x1d4)](x(0x1b8));}catch(j){Log[x(0x1d4)](j);}return a;}async[a145r(0x1f1)](a){const z=a145r;try{const b=new EC2Client({}),c={'Filters':[{'Name':z(0x16f),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[z(0x155)](d);return e[z(0x16b)]&&e['Subnets'][z(0x15a)]>0x0?e[z(0x16b)][0x0][z(0x12f)]||'':'';}catch(f){return Log[z(0x1d4)](f),'';}}async[a145r(0x1ae)](a){const A=a145r;try{const b=new ECRClient({'region':a[A(0x167)]}),c={'repositoryName':a[A(0x1d1)]},d=new CreateRepositoryCommand(c),f=await b[A(0x155)](d);return Log[A(0x113)](A(0x19b)+a[A(0x1d1)]+A(0x1c1)+a[A(0x167)]+'.'),f;}catch(g){Log[A(0x1d4)]('Failed\x20to\x20create\x20repository\x20in\x20'+a[A(0x167)]+':\x20'+g);throw g;}}async['listAllEcrRepositories'](a){const B=a145r,b=[B(0x1a7),B(0x1df),B(0x1bc),B(0x157),B(0x11b),'ap-northeast-3','ap-northeast-2',B(0x16c),B(0x129),B(0x1ea),B(0x133),'eu-central-1','eu-west-1',B(0x149),'eu-west-3',B(0x12a),B(0x13d),'af-south-1',B(0x134),B(0x17a),B(0x1a8),B(0x15e),B(0x1d6),B(0x13e),'eu-south-2',B(0x177),B(0x122),B(0x152),B(0x117)],c=[B(0x1a7),B(0x1df),'us-west-1',B(0x157)],d=a===B(0x1b3)?b:a?a[B(0x1c9)](','):c;let f=[];const g=Log[B(0x151)]();for(const h of d){g['start']('Processing\x20'+h[B(0x162)]()+'...');const i=new ECRClient({'region':h[B(0x162)]()});try{let j=undefined;do{const k=await Promise[B(0x1c4)]([i[B(0x155)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(B(0x1ec)),0x7d0))]);if(k===B(0x1ec)){Log['warn'](B(0x144)+h[B(0x162)]()+'.');break;}else k['repositories']&&k[B(0x15d)][B(0x15a)]>0x0&&(f=f[B(0x1bd)](k[B(0x15d)][B(0x163)](l=>({'name':l[B(0x192)],'uri':l[B(0x1e9)],'region':h[B(0x162)]()}))));j=k[B(0x172)];}while(j);}catch(l){Log['error']('Failed\x20in\x20'+h[B(0x162)]()+':\x20'+l['message']);}finally{g['stop']();}}return f['length']>0x0?(console['log'](),Log['success'](B(0x1a3)),f[B(0x1c3)](m=>{const C=B;Log[C(0x18e)](C(0x1a5)+m[C(0x167)]+C(0x1f9)+m[C(0x1d1)]+C(0x190)+m[C(0x1ed)]);})):Log['warn'](B(0x168)),f;}async['route53CreateHostedZone'](a){const D=a145r;try{const b={'CallerReference':''+Date[D(0x1d9)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[D(0x155)](c),Log[D(0x113)](D(0x1e4));}catch(d){Log['error']('Error\x20creating\x20hosted\x20zone'),console[D(0x1d4)](d);}}async[a145r(0x188)](a,b,c,d){const E=a145r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[E(0x155)](f),Log[E(0x1b9)]('The\x20domain\x20\x27'+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[E(0x1d4)](E(0x1dc)),Log[E(0x1bf)](E(0x199)),console[E(0x1d4)](E(0x1ef)+g[E(0x1f0)]['statusCode']),console[E(0x1d4)](E(0x195)+g['$response'][E(0x145)]);}}async[a145r(0x11d)](a){const F=a145r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[F(0x155)](c),e=d[F(0x161)]===F(0x19a);if(e){const f=a[F(0x1c9)]('.')[F(0x16e)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[F(0x1de)]&&i['Prices'][0x0]?.['RegistrationPrice']){const j=i[F(0x1de)][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console['error'](F(0x171),k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const G=a145r;try{const d=await route53[G(0x12d)]({'DNSName':c});if(!d?.[G(0x140)])throw Log[G(0x1d4)](G(0x189));const e=d?.[G(0x140)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[G(0x11e)](f),Log[G(0x1b9)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+'\x20to\x20'+c);}catch(g){console[G(0x1d4)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a145r(0x1c6)]({awsAccountId:a,region:b}){const H=a145r,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c['send'](d);if(!f[H(0x1be)]||f[H(0x1be)][H(0x15a)]===0x0)throw new Error('Authorization\x20data\x20is\x20empty');const g=f[H(0x1be)][0x0];if(!g[H(0x1b7)])throw new Error(H(0x1d8));const h=g[H(0x1b7)];if(!h)throw new Error('No\x20credentials\x20returned\x20from\x20AWS\x20ECR');const i=Buffer[H(0x1e1)](h,H(0x182))[H(0x1e0)](),j=i[H(0x1c9)](':')[0x1];if(!j)throw new Error(H(0x1b6));return j;}catch(k){Log['error'](k);throw k;}}async[a145r(0x12e)]({repoName:a,region:b}){const I=a145r,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[I(0x155)](d);return f;}catch(g){Log['error'](g);throw g;}}async['ec2create'](a){const J=a145r;try{const b={'BlockDeviceMappings':[{'DeviceName':J(0x1b4),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[J(0x131)],'InstanceType':a['type'],'KeyName':a[J(0x181)],'MaxCount':a['maxCount'],'MinCount':a[J(0x146)],'SecurityGroupIds':a[J(0x18b)][J(0x1c9)](','),'SubnetId':a[J(0x1c7)],'TagSpecifications':[{'ResourceType':'instance','Tags':a['tags']}]};a['userData']&&(b['UserData']=J(0x132)+a[J(0x19d)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[J(0x1d4)](f);}}async['ec2terminateInstance'](a){const K=a145r;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[K(0x155)](c);return d;}catch(f){return Log[K(0x1d4)](f),{};}}async[a145r(0x120)]({keyName:a,env:b}){const L=a145r,c=this[L(0x1ac)][L(0x176)](b),d=a145f[L(0x1f3)](c,'_keys',a+L(0x186));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[L(0x155)](g),i=h[L(0x17d)];if(i){await this[L(0x1ac)][L(0x1e7)]({'filePath':d,'data':i}),execSync(L(0x118)+d,{'stdio':L(0x1cb)});const j=this[L(0x1ac)]['isFile'](d);if(j)return Log[L(0x113)](L(0x1d0)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error(L(0x11f));}catch(k){Log['error'](k),process[L(0x13f)](0x1);}}async[a145r(0x19e)]({port:a,groupId:b}){const M=a145r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':M(0x1aa),'IpRanges':[{'CidrIp':M(0x16a),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[M(0x1b9)](M(0x139)+a+'\x20opened!'),await client[M(0x155)](d);}async[a145r(0x1fb)](a){const N=a145r;try{a[N(0x121)]===''&&(a[N(0x121)]=await Actions[N(0x124)](N(0x1f8))||'Web\x20App');const b={'Description':a[N(0x121)],'GroupName':a[N(0x1d1)],'VpcId':a[N(0x1c8)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(N(0x1ce));f&&a[N(0x160)][N(0x1c3)](g=>{const O=N;this[O(0x19e)]({'port':parseInt(g),'groupId':f});}),Log[N(0x113)](N(0x1dd)+f+N(0x1a6)+a[N(0x1d1)]);}catch(g){return Log['error'](g),![];}return!![];}async[a145r(0x128)](a){const P=a145r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw P(0x1ce);const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const Q=P;h['KeyName']&&b[Q(0x13c)]({'id':i,'name':h[Q(0x1b1)]});}),b[P(0x15a)]>0x0&&b[P(0x1c3)](h=>{const R=P;h['name']===a?.[R(0x1e8)]?Log[R(0x113)](R(0x1f2)+h['id']+R(0x1a6)+h[R(0x1d1)]):Log['notice'](R(0x1f2)+h['id']+R(0x1a6)+h[R(0x1d1)]);})):Log[P(0x1d4)](P(0x183));}catch(h){Log['error'](h);}return b;}async['deleteKeyPair'](a){const S=a145r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[S(0x155)](c);}catch(d){Log[S(0x1d4)](d),process[S(0x13f)](0x1);}}async[a145r(0x1b2)](){const T=a145r,a=[];try{const b={'Filters':[{'Name':T(0x18c),'Values':[T(0x1cd)]}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[T(0x179)]?.[T(0x1c3)]((f,g)=>{const U=T;if(f?.[U(0x116)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.['find'](({Key:o})=>o===U(0x180));a[U(0x13c)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[U(0x150)]});}}),a[T(0x15a)]>0x0?a[T(0x1c3)](f=>{const V=T,g='ID:\x20'+f['id']+V(0x1a6)+f[V(0x1d1)]+V(0x170)+f[V(0x16d)]+V(0x156)+f[V(0x1a4)]+V(0x12b)+f[V(0x197)]+V(0x13a)+f[V(0x147)]+V(0x1ab)+f[V(0x1fd)];if(f[V(0x1a4)]==='terminated')Log['error'](g);else f[V(0x1a4)]==='running'?Log[V(0x113)](g):Log[V(0x1b9)](g);}):Log[T(0x1d4)](T(0x1cc));}catch(f){Log['error'](f);}return a;}async[a145r(0x1d3)](a){const W=a145r;try{const b={'InstanceIds':[a[W(0x197)]]},c=new RebootInstancesCommand(b),d=await client[W(0x155)](c);return d[W(0x17b)][W(0x158)]===0xc8&&Log[W(0x113)](W(0x13b)),d;}catch(f){Log['error'](f);}}async[a145r(0x1c2)](){const X=a145r;let a='';Log['notice'](X(0x17e));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[X(0x1c3)]((g,h)=>{const Y=X;g[Y(0x164)]&&g[Y(0x12f)]&&e[Y(0x13c)]({'id':h,'vpcId':g[Y(0x164)],'cidr':g['CidrBlock']});});e[X(0x1c3)](function(g){const Z=X;console[Z(0x18a)](Z(0x1f2)+g['id']+Z(0x1d7)+g[Z(0x1c8)]+Z(0x137)+g[Z(0x1c5)]);});const f=await Actions[X(0x124)](X(0x130))||0x0;e[X(0x1c3)](function(g){const a0=X;g['id']==f&&(a=g[a0(0x1c8)],Log[a0(0x113)](a0(0x14d)+a+'\x0a'));});if(a==='')return Log[X(0x1d4)](X(0x1a0)),'';return a;}async[a145r(0x1d2)](){const a1=a145r,a=await this[a1(0x1b2)]();if(a[a1(0x15a)]===0x0)return Log[a1(0x1d4)](a1(0x185)),null;const b=await Actions[a1(0x124)](a1(0x1ad));!b&&(Log[a1(0x1d4)](a1(0x123)),process[a1(0x13f)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145r(0x11a)]({env:a}){const a2=a145r,b=this['fsi']['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[a2(0x124)](a2(0x148)+d+']\x20')||d,{filePath:g}=await this[a2(0x120)]({'keyName':f,'env':a});try{const h=await Actions['confirm'](a2(0x191),!![]);if(h)try{const i=a145f[a2(0x1f3)](a2(0x1ba),a,a2(0x174));!this[a2(0x1ac)][a2(0x159)](i)&&await this['fsi'][a2(0x1cf)]({'srcPath':a2(0x15c),'destPath':i,'context':{'app':f}});const j=a145e['readFileSync'](a145f['join'](a2(0x1ba),a,a2(0x174)),a2(0x15b)),k=JSON[a2(0x125)](j);k[a2(0x11c)]=a145f[a2(0x1f3)](a2(0x14c),f+a2(0x186)),a145e[a2(0x1f5)](a145f[a2(0x1f3)](a2(0x1ba),a,a2(0x174)),JSON[a2(0x1b5)](k,null,0x2));}catch(l){Log[a2(0x1d4)](l),Log['error'](a2(0x18d));}}catch(m){Log['error'](m),process[a2(0x13f)](0x1);}return{'keyName':f,'filePath':g};}async[a145r(0x1ca)](a){const a3=a145r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a3(0x155)](d),{SecurityGroups:f}=e;f&&f[a3(0x1c3)](function(i,j){const a4=a3;i[a4(0x1bb)]&&i['GroupId']&&b[a4(0x13c)]({'id':j,'name':i[a4(0x1bb)],'sgId':i[a4(0x184)]});});let g='',h=0x0;return b['forEach'](function(i){const a5=a3;i[a5(0x1d1)]===a&&(g=i[a5(0x1f6)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145r(0x1d5)](a){const a6=a145r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a6(0x155)](c);}catch(d){Log['error'](d),process['exit'](0x1);}}}
1
+ const a145t=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=-parseInt(p(0x17c))/0x1*(parseInt(p(0x183))/0x2)+-parseInt(p(0x113))/0x3+parseInt(p(0x16c))/0x4*(parseInt(p(0x1aa))/0x5)+-parseInt(p(0x1e8))/0x6*(parseInt(p(0x1e7))/0x7)+-parseInt(p(0x168))/0x8*(parseInt(p(0x145))/0x9)+-parseInt(p(0x1e5))/0xa+-parseInt(p(0x1e0))/0xb*(-parseInt(p(0x1b2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x3d390));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x1d3)]()[r(0x1ea)](r(0x107))[r(0x1d3)]()[r(0x10c)](a145a)['search']('(((.+)+)+)+$');});function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0xff;let f=c[d];return f;},a145d(a,b);}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';function a145c(){const a9=['\x20CIDR:\x20','\x20AMIID:\x20','race','route53CreateHostedZone','/dev/sdh','me-central-1','151791mmZDXU','\x20PRIV_IP:\x20','RegistrationPrice','virtualization-type','pop','ec2terminateInstance','status','2KJaxIA','ignore','The\x20domain\x20\x27','subnet','Availability','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Authorization\x20token\x20is\x20missing','ebs','repositoryUri','Description','authorizationData','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','date','Error\x20fetching\x20domain\x20pricing:','base64','getMakaProjectConfig','parse','Reservations','from','utf8','eu-west-3','\x20Status\x20Code:\x20','confirm','Port\x20','Invalid\x20choice','createKeyPairEC2Key','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','deleteSecurityGroup','split','\x22\x20created\x20successfully\x20in\x20','ec2create','hvm','all','getAppConfigPath','checkDomainAvailability','\x20SG\x20NAME:\x20','\x20PUB_IP:\x20','eu-south-2','getSecurityGroups','126465NbJrVn','deleteKeyPair','name','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','file://','send','machine','us-east-1','336MzUhsn','ap-south-1','VpcId','Error\x20generating\x20key\x20pair','chooseSecurityGroup','isFile','bright','\x20STATUS:\x20','statusCode','Subnets','GroupName','Successfully\x20linked\x20EC2\x20instance\x20',',\x20Name:\x20','root-device-type','il-central-1','includes','\x20NAME:\x20','sa-east-1','warn','**\x20Available\x20\x20VPCs\x20**','apply','UPSERT','x86_64','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Failed\x20to\x20create\x20repository\x20in\x20','suggestion','ask','UserData','success','HostedZones','CreationDate','fsi','message','toString','ap-southeast-3','KeyMaterial','ecrCreateRepository','\x20opened!','\x20DESCRIPTION:\x20','env','map','amiId','privateIp','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','0.0.0.0/0','514327nQDQlF','tcp','forEach','Final\x20list\x20of\x20ECR\x20repositories:','environment','2687900vGkIkS','eu-west-2','152411QXVgXh','66QPTrbR','config/ssh.json','search','createKeyPair','Instance\x20rebooted!','ap-southeast-1','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','sgPorts','subnetId','\x20INSTANCE_ID:\x20','...','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','start','imageId','exit','(((.+)+)+)+$','Key\x20Name:\x20[','cidr','registerDomain','terminated','constructor','tag:created-by','image-type','Failed\x20in\x20','No\x20subnets\x20found.','reason','chooseInstance','424827MoULaj','desc','\x20SGID:\x20','listAllEcrRepositories','subnet-id','Region:\x20','Value','**\x20Available\x20Security\x20Groups\x20**','ec2createSG','\x20VPCID:\x20','sort',',\x20URI:\x20','ec2rebootInstance','ca-west-1','ap-southeast-4','description','userData','eu-south-1','Prices','From\x20AWS:','repositories','CidrBlock','ID:\x20','sgIds','slice','type','Authorization\x20data\x20is\x20empty','getTime','Setting\x20SG\x20ID\x20to:\x20','architecture','ec2describeKeys','minCount','ingressRule','listAvailableSubnets','Name','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','_keys','sgId','region','ap-northeast-1','find','AvailabilityZone','Canonical*Ubuntu*20.04*','ca-central-1','Processing\x20','createFile','Error\x20saving\x20pem\x20file,\x20aborting','\x20to\x20','tags','template','311382HzuSfF','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','Instances','$metadata','error','push','Could\x20not\x20find\x20hosted\x20zone','me-south-1','ap-northeast-3','length','.pem.txt','Description:','repositoryName','\x27\x20has\x20been\x20registered\x20successfully.','listHostedZonesByName','\x20AZONE:\x20','Web\x20App','eu-north-1','\x20SUBNETID:\x20','instanceId','SubnetId','authorizationToken','vpcId','trim','Hosted\x20zone\x20created\x20successfully!','KeyName','Error\x20linking\x20EC2\x20to\x20Route\x2053:','config','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','ec2describeInstances','state','eu-central-1','httpStatusCode','us-west-2','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','112XUvvyW','getEcrLoginPassword','join','us-east-2','36YFoEnv','key','notice','Timeout\x20while\x20processing\x20','timeout','ssh.json','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','uri','GroupId','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'];a145c=function(){return a9;};return a145c();}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';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{['fsi'];constructor(){const s=a145d;this[s(0x1d1)]=new FSI();}async[a145t(0x1b6)](a){const u=a145t;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[u(0x1a9)](a);let f='';if(c===''){Log[u(0x16e)](u(0x11a)),d[u(0x1e2)](function(h){const v=u;h['name']===a?Log[v(0x16e)](v(0x129)+h['id']+v(0x1a6)+h[v(0x1ac)]+v(0x115)+h[v(0x138)]):Log[v(0x1b8)]('ID:\x20'+h['id']+v(0x1a6)+h['name']+v(0x115)+h['sgId']);});const g=await Actions[u(0x1cc)](u(0x188)+b+']\x20')||b['toString']();d[u(0x1e2)](function(h){const w=u;h['id']===parseInt(g)&&(f=h[w(0x138)],Log['success'](w(0x12f)+f+'\x0a'));});}else f=c,Log[u(0x1ce)](u(0x12f)+f+'\x0a');if(f==='')throw new Error(u(0x1ad));return f;}catch(h){Log[u(0x149)](h);throw h;}}async['listAvailableAMIs'](){const x=a145t;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':x(0x130),'Values':[x(0x1c8)]},{'Name':x(0x17f),'Values':[x(0x1a2)]},{'Name':x(0x1bf),'Values':[x(0x18a)]},{'Name':x(0x163),'Values':['available']},{'Name':x(0x10e),'Values':[x(0x1b0)]},{'Name':x(0x122),'Values':['Canonical*Ubuntu*18.04*',x(0x13d)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b['send'](d);if(f&&f[x(0x14e)]>0x0){const g=new Date(),h=new Date(g['getTime']()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f['filter'](j=>j[x(0x1d0)]&&!j[x(0x18c)]?.[x(0x1c1)]('UNSUPPORTED')&&new Date(j[x(0x1d0)])>h)[x(0x1da)](j=>({'amiId':j['ImageId'],'desc':j[x(0x18c)],'date':j[x(0x1d0)]}));if(i[x(0x14e)]>0x0){i[x(0x11d)]((n,o)=>new Date(o[x(0x18f)])[x(0x12e)]()-new Date(n[x(0x18f)])[x(0x12e)]());const j=i[x(0x12b)](0x0,0x4),k=j[x(0x1da)]((n,o)=>({'id':o,'amiId':n[x(0x1db)],'desc':n[x(0x114)]}));k[x(0x1e2)](n=>{const y=x;Log[y(0x1b8)](y(0x129)+n['id']+y(0x177)+n[y(0x1db)]+y(0x1d8)+n[y(0x114)]);});const l=await Actions[x(0x1cc)](x(0x19d))||'0',m=k[x(0x13b)](n=>n['id']===parseInt(l));if(m)a=m[x(0x1db)],Log[x(0x1ce)]('Setting\x20AMI\x20ID\x20to\x20'+a+'\x20:\x20'+m[x(0x114)]);else throw Log[x(0x149)](x(0x1ad));}else throw Log[x(0x149)](x(0x172));}else throw Log[x(0x149)]('No\x20images\x20found.');}catch(n){Log[x(0x149)](n);}return a;}async[a145t(0x134)](){const z=a145t;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[z(0x1af)](d);if(f&&f['length']>0x0){const g=f[z(0x1da)]((j,k)=>({'id':k,'cidr':j[z(0x128)],'az':j[z(0x13c)],'subnetId':j[z(0x159)]}));g[z(0x1e2)](j=>{const A=z;Log[A(0x1b8)](A(0x129)+j['id']+A(0x176)+j[A(0x109)]+A(0x154)+j['az']+A(0x157)+j[A(0x100)]);});const h=await Actions[z(0x1cc)](z(0x175))||'0',i=g[z(0x13b)](j=>j['id']===parseInt(h));if(i)a=i[z(0x100)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+a);else throw Log[z(0x149)](z(0x1ad));}else throw Log[z(0x149)](z(0x110));}catch(j){Log[z(0x149)](j);}return a;}async['getSubnetCidr'](a){const B=a145t;try{const b=new EC2Client({}),c={'Filters':[{'Name':B(0x117),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b['send'](d);return e['Subnets']&&e['Subnets'][B(0x14e)]>0x0?e[B(0x1bb)][0x0][B(0x128)]||'':'';}catch(f){return Log[B(0x149)](f),'';}}async[a145t(0x1d6)](a){const C=a145t;try{const b=new ECRClient({'region':a['region']}),c={'repositoryName':a[C(0x1ac)]},d=new CreateRepositoryCommand(c),f=await b[C(0x1af)](d);return Log['success']('Repository\x20\x22'+a['name']+C(0x1a0)+a['region']+'.'),f;}catch(g){Log[C(0x149)](C(0x1ca)+a[C(0x139)]+':\x20'+g);throw g;}}async[a145t(0x116)](a){const D=a145t,b=[D(0x1b1),D(0x16b),'us-west-1',D(0x166),D(0x1b3),D(0x14d),'ap-northeast-2',D(0x1ed),'ap-southeast-2',D(0x13a),D(0x13e),D(0x164),'eu-west-1',D(0x1e6),D(0x197),D(0x156),D(0x1c3),'af-south-1','ap-east-1','ap-south-2',D(0x1d4),D(0x121),D(0x120),D(0x124),D(0x1a8),'eu-central-2',D(0x14c),D(0x17b),D(0x1c0)],c=[D(0x1b1),D(0x16b),'us-west-1',D(0x166)],d=a===D(0x1a3)?b:a?a[D(0x19f)](','):c;let f=[];const g=Log['withSpinner']();for(const h of d){g[D(0x104)](D(0x13f)+h[D(0x15c)]()+D(0x102));const i=new ECRClient({'region':h['trim']()});try{let j=undefined;do{const k=await Promise[D(0x178)]([i[D(0x1af)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l('timeout'),0x7d0))]);if(k===D(0x170)){Log['warn'](D(0x16f)+h[D(0x15c)]()+'.');break;}else k[D(0x127)]&&k[D(0x127)]['length']>0x0&&(f=f['concat'](k[D(0x127)][D(0x1da)](l=>({'name':l[D(0x151)],'uri':l[D(0x18b)],'region':h[D(0x15c)]()}))));j=k['nextToken'];}while(j);}catch(l){Log[D(0x149)](D(0x10f)+h[D(0x15c)]()+':\x20'+l[D(0x1d2)]);}finally{g['stop']();}}return f['length']>0x0?(console['log'](),Log['success'](D(0x1e3)),f[D(0x1e2)](m=>{const E=D;Log['info'](E(0x118)+m[E(0x139)]+E(0x1be)+m['name']+E(0x11e)+m[E(0x173)]);})):Log[D(0x1c4)](D(0x1de)),f;}async[a145t(0x179)](a){const F=a145t;try{const b={'CallerReference':''+Date['now'](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[F(0x1af)](c),Log['success'](F(0x15d));}catch(d){Log[F(0x149)]('Error\x20creating\x20hosted\x20zone'),console[F(0x149)](d);}}async[a145t(0x10a)](a,b,c,d){const G=a145t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53['send'](f),Log[G(0x16e)](G(0x185)+b+G(0x152));}catch(g){Log[G(0x149)](G(0x1ee)),Log['warn'](G(0x126)),console[G(0x149)](G(0x198)+g['$response'][G(0x1ba)]),console[G(0x149)]('\x20Error\x20Rason:\x20'+g['$response'][G(0x111)]);}}async[a145t(0x1a5)](a){const H=a145t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[H(0x1af)](c),e=d[H(0x187)]==='AVAILABLE';if(e){const f=a['split']('.')[H(0x180)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[H(0x1af)](h);if(i&&i[H(0x125)]&&i['Prices'][0x0]?.[H(0x17e)]){const j=i['Prices'][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[H(0x149)](H(0x190),k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const I=a145t;try{const d=await route53[I(0x153)]({'DNSName':c});if(!d?.[I(0x1cf)])throw Log[I(0x149)](I(0x14b));const e=d?.[I(0x1cf)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':I(0x1c7),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log[I(0x16e)](I(0x1bd)+a+I(0x142)+c);}catch(g){console['error'](I(0x15f),g);}}async[a145t(0x169)]({awsAccountId:a,region:b}){const J=a145t,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[J(0x1af)](d);if(!f['authorizationData']||f[J(0x18d)]['length']===0x0)throw new Error(J(0x12d));const g=f[J(0x18d)][0x0];if(!g[J(0x15a)])throw new Error(J(0x189));const h=g[J(0x15a)];if(!h)throw new Error('No\x20credentials\x20returned\x20from\x20AWS\x20ECR');const i=Buffer[J(0x195)](h,J(0x191))['toString'](),j=i[J(0x19f)](':')[0x1];if(!j)throw new Error(J(0x146));return j;}catch(k){Log[J(0x149)](k);throw k;}}async['ecrDeleteRepository']({repoName:a,region:b}){const K=a145t,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[K(0x1af)](d);return f;}catch(g){Log['error'](g);throw g;}}async[a145t(0x1a1)](a){const L=a145t;try{const b={'BlockDeviceMappings':[{'DeviceName':L(0x17a),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[L(0x105)],'InstanceType':a[L(0x12c)],'KeyName':a[L(0x16d)],'MaxCount':a['maxCount'],'MinCount':a[L(0x132)],'SecurityGroupIds':a[L(0x12a)][L(0x19f)](','),'SubnetId':a[L(0x186)],'TagSpecifications':[{'ResourceType':'instance','Tags':a[L(0x143)]}]};a[L(0x123)]&&(b[L(0x1cd)]=L(0x1ae)+a['userData']);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[L(0x149)](f);}}async[a145t(0x181)](a){const M=a145t;try{const b={'InstanceIds':[a[M(0x158)]]},c=new TerminateInstancesCommand(b),d=await client[M(0x1af)](c);return d;}catch(f){return Log[M(0x149)](f),{};}}async[a145t(0x19c)]({keyName:a,env:b}){const N=a145t,c=this[N(0x1d1)][N(0x1a4)](b),d=a145f[N(0x16a)](c,'_keys',a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[N(0x1af)](g),i=h[N(0x1d5)];if(i){await this[N(0x1d1)][N(0x140)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':N(0x184)});const j=this[N(0x1d1)][N(0x1b7)](d);if(j)return Log[N(0x1ce)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(N(0x141));}else throw new Error(N(0x1b5));}catch(k){Log[N(0x149)](k),process[N(0x106)](0x1);}}async[a145t(0x133)]({port:a,groupId:b}){const O=a145t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':O(0x1e1),'IpRanges':[{'CidrIp':O(0x1df),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[O(0x16e)](O(0x19a)+a+O(0x1d7)),await client[O(0x1af)](d);}async[a145t(0x11b)](a){const P=a145t;try{a[P(0x122)]===''&&(a[P(0x122)]=await Actions[P(0x1cc)](P(0x150))||P(0x155));const b={'Description':a[P(0x122)],'GroupName':a[P(0x1ac)],'VpcId':a[P(0x15b)]},c=new CreateSecurityGroupCommand(b),d=await client[P(0x1af)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[P(0xff)][P(0x1e2)](g=>{const Q=P;this[Q(0x133)]({'port':parseInt(g),'groupId':f});}),Log[P(0x1ce)]('Created:\x20'+f+P(0x1c2)+a[P(0x1ac)]);}catch(g){return Log[P(0x149)](g),![];}return!![];}async[a145t(0x131)](a){const R=a145t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[R(0x1af)](d);if(!f)throw R(0x167);const {KeyPairs:g}=f;g?(g?.[R(0x1e2)]((h,i)=>{const S=R;h[S(0x15e)]&&b[S(0x14a)]({'id':i,'name':h['KeyName']});}),b['length']>0x0&&b[R(0x1e2)](h=>{const T=R;h[T(0x1ac)]===a?.[T(0x1cb)]?Log[T(0x1ce)](T(0x129)+h['id']+'\x20NAME:\x20'+h[T(0x1ac)]):Log[T(0x16e)]('ID:\x20'+h['id']+T(0x1c2)+h['name']);})):Log[R(0x149)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log['error'](h);}return b;}async[a145t(0x1ab)](a){const U=a145t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[U(0x149)](d),process['exit'](0x1);}}async[a145t(0x162)](){const V=a145t,a=[];try{const b={'Filters':[{'Name':V(0x10d),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[V(0x194)]?.[V(0x1e2)]((f,g)=>{const W=V;if(f?.[W(0x147)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[W(0x147)][0x0],n=m?.[W(0x13b)](({Key:o})=>o===W(0x1e4));a[W(0x14a)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[W(0x135)],'name':l,'env':n?.[W(0x119)]});}}),a[V(0x14e)]>0x0?a[V(0x1e2)](f=>{const X=V,g=X(0x129)+f['id']+X(0x1c2)+f[X(0x1ac)]+'\x20ENV:\x20'+f[X(0x1d9)]+X(0x1b9)+f['status']+X(0x101)+f[X(0x158)]+X(0x1a7)+f['publicIp']+X(0x17d)+f[X(0x1dc)];if(f['status']===X(0x10b))Log[X(0x149)](g);else f[X(0x182)]==='running'?Log[X(0x1ce)](g):Log[X(0x16e)](g);}):Log[V(0x149)](V(0x18e));}catch(f){Log[V(0x149)](f);}return a;}async[a145t(0x11f)](a){const Y=a145t;try{const b={'InstanceIds':[a[Y(0x158)]]},c=new RebootInstancesCommand(b),d=await client[Y(0x1af)](c);return d[Y(0x148)][Y(0x165)]===0xc8&&Log['success'](Y(0x1ec)),d;}catch(f){Log[Y(0x149)](f);}}async['chooseVPC'](){const Z=a145t;let a='';Log[Z(0x16e)](Z(0x1c5));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[Z(0x1e2)]((g,h)=>{const a0=Z;g[a0(0x1b4)]&&g[a0(0x128)]&&e[a0(0x14a)]({'id':h,'vpcId':g['VpcId'],'cidr':g['CidrBlock']});});e[Z(0x1e2)](function(g){const a1=Z;console['log'](a1(0x129)+g['id']+a1(0x11c)+g[a1(0x15b)]+a1(0x176)+g[a1(0x109)]);});const f=await Actions['ask'](Z(0x1c9))||0x0;e['forEach'](function(g){const a2=Z;g['id']==f&&(a=g[a2(0x15b)],Log[a2(0x1ce)](a2(0x161)+a+'\x0a'));});if(a==='')return Log[Z(0x149)](Z(0x1ad)),'';return a;}async[a145t(0x112)](){const a3=a145t,a=await this[a3(0x162)]();if(a[a3(0x14e)]===0x0)return Log[a3(0x149)]('No\x20instances\x20found'),null;const b=await Actions[a3(0x1cc)](a3(0x1dd));!b&&(Log['error'](a3(0x19b)),process[a3(0x106)](0x0));const c=a[a3(0x13b)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145t(0x1eb)]({env:a}){const a4=a145t,b=this[a4(0x1d1)][a4(0x192)](),{appName:c}=b,d=c+'-'+a,f=await Actions[a4(0x1cc)](a4(0x108)+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions[a4(0x199)](a4(0x136),!![]);if(h)try{const i=a145f[a4(0x16a)](a4(0x160),a,a4(0x171));!this[a4(0x1d1)]['isFile'](i)&&await this[a4(0x1d1)][a4(0x144)]({'srcPath':a4(0x1e9),'destPath':i,'context':{'app':f}});const j=a145e['readFileSync'](a145f['join'](a4(0x160),a,'ssh.json'),a4(0x196)),k=JSON[a4(0x193)](j);k['pem']=a145f[a4(0x16a)](a4(0x137),f+a4(0x14f)),a145e['writeFileSync'](a145f['join'](a4(0x160),a,'ssh.json'),JSON['stringify'](k,null,0x2));}catch(l){Log[a4(0x149)](l),Log[a4(0x149)](a4(0x103));}}catch(m){Log['error'](m),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async[a145t(0x1a9)](a){const a5=a145t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a5(0x1af)](d),{SecurityGroups:f}=e;f&&f[a5(0x1e2)](function(i,j){const a6=a5;i[a6(0x1bc)]&&i[a6(0x174)]&&b[a6(0x14a)]({'id':j,'name':i[a6(0x1bc)],'sgId':i['GroupId']});});let g='',h=0x0;return b[a5(0x1e2)](function(i){const a7=a5;i[a7(0x1ac)]===a&&(g=i[a7(0x138)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145t(0x19e)](a){const a8=a145t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a8(0x1af)](c);}catch(d){Log['error'](d),process[a8(0x106)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var k=a146d,c=a();while(!![]){try{var d=parseInt(k(0x98))/0x1+parseInt(k(0x93))/0x2*(parseInt(k(0x99))/0x3)+-parseInt(k(0x90))/0x4*(parseInt(k(0x94))/0x5)+parseInt(k(0x91))/0x6+-parseInt(k(0x92))/0x7*(parseInt(k(0x96))/0x8)+-parseInt(k(0x8f))/0x9+parseInt(k(0x9c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x84a4e));export var CountryCode;function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0x8e;var f=c[d];return f;},a146d(a,b);}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a146d;if(h){var j=h[l(0x9b)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0x97)]()['search'](m(0x9a))[m(0x97)]()[m(0x8e)](e)[m(0x95)]('(((.+)+)+)+$');});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={})));function a146c(){var n=['constructor','7557426szMzWP','3438244NJomdY','1318362lEzqVc','742CPlSgI','110fzFTaj','5WIVnvz','search','20680lvpWUs','toString','522135qmLqfp','21993DqFBoN','(((.+)+)+)+$','apply','13715280UCxPgQ'];a146c=function(){return n;};return a146c();}
1
+ (function(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0x130))/0x1+-parseInt(k(0x128))/0x2+parseInt(k(0x131))/0x3*(parseInt(k(0x135))/0x4)+-parseInt(k(0x133))/0x5+-parseInt(k(0x12f))/0x6*(-parseInt(k(0x12e))/0x7)+-parseInt(k(0x136))/0x8+parseInt(k(0x132))/0x9*(parseInt(k(0x12a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0xa2c7b));function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0x128;var f=c[d];return f;},a146d(a,b);}export var CountryCode;function a146c(){var n=['constructor','(((.+)+)+)+$','toString','107450VewDMU','240HlbwPK','1158157BPBXbZ','33HtFNli','21256191UbcvwU','638005puqbYS','search','390092drpXDS','6879920WFoPFU','2472114GpSzPq','apply','10CFtdgm'];a146c=function(){return n;};return a146c();}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a146d;if(h){var j=h[l(0x129)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0x12d)]()[m(0x134)](m(0x12c))['toString']()[m(0x12b)](e)[m(0x134)]('(((.+)+)+)+$');});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 a147m=a147d;function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a147d(a,b);}(function(a,b){const j=a147d,c=a();while(!![]){try{const d=-parseInt(j(0x1d2))/0x1+-parseInt(j(0x1cf))/0x2*(-parseInt(j(0x1d1))/0x3)+-parseInt(j(0x1ca))/0x4+parseInt(j(0x1c1))/0x5+-parseInt(j(0x1bc))/0x6*(-parseInt(j(0x1c9))/0x7)+-parseInt(j(0x1c6))/0x8+parseInt(j(0x1ce))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x6e9f0));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a[l(0x1c8)]()[l(0x1cc)](l(0x1c4))['toString']()['constructor'](a147a)[l(0x1cc)](l(0x1c4));});function a147c(){const q=['5685981EqFzZz','2623144AvnatP','awsLogin','search','tag','3424914NRedtc','6366DEVcOH','docker\x20','573MJSOWY','281903nJUnpx','6KDSTcZ','.amazonaws.com/','inherit','error','pushImage','2191485CNYbHL','push','.dkr.ecr.','(((.+)+)+)+$','apply','6786288OIIGAv','join','toString'];a147c=function(){return q;};return a147c();}a147a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a147m(0x1cd)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=[n(0x1cd),a,b+'.dkr.ecr.'+c+n(0x1bd)+d],g='docker\x20'+f[n(0x1c7)]('\x20'),h=execSync(g,{'stdio':n(0x1be)})[n(0x1c8)]();return h;}catch(i){return Log[n(0x1bf)](i),'';}}static[a147m(0x1cb)]({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d='echo\x20'+c+'\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20'+a+o(0x1c3)+b+'.amazonaws.com';return execSync(d,{'stdio':o(0x1be)}),d;}catch(f){return Log[o(0x1bf)](f),'';}}static[a147m(0x1c0)]({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=[p(0x1c2),a+p(0x1c3)+b+'.amazonaws.com/'+c],f=p(0x1d0)+d['join']('\x20'),g=execSync(f,{'stdio':p(0x1be)})[p(0x1c8)]();return g;}catch(h){return Log[p(0x1bf)](h),'';}}}
1
+ function a147c(){const q=['.amazonaws.com/','search','9ipyFTJ','107716hSChkV','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','join','67792gKCvEg','.dkr.ecr.','docker\x20','.amazonaws.com','push','551516JLlqxQ','140344KWPlTI','error','tag','apply','inherit','awsLogin','constructor','80EmgqYl','718880wQKgrn','pushImage','(((.+)+)+)+$','277026aXDXvf','toString','135549yDDEbo'];a147c=function(){return q;};return a147c();}const a147m=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=-parseInt(j(0x176))/0x1+-parseInt(j(0x173))/0x2+parseInt(j(0x172))/0x3*(-parseInt(j(0x17c))/0x4)+parseInt(j(0x184))/0x5+-parseInt(j(0x16d))/0x6+parseInt(j(0x17b))/0x7+-parseInt(j(0x183))/0x8*(-parseInt(j(0x16f))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x186ff));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0x17f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a[l(0x16e)]()[l(0x171)]('(((.+)+)+)+$')[l(0x16e)]()[l(0x182)](a147a)[l(0x171)](l(0x186));});a147a();import{execSync}from'child_process';function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0x16d;let f=c[d];return f;},a147d(a,b);}import{Log}from'../log/log.class.js';export class Docker{static[a147m(0x17e)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=['tag',a,b+n(0x177)+c+n(0x170)+d],g='docker\x20'+f[n(0x175)]('\x20'),h=execSync(g,{'stdio':n(0x180)})['toString']();return h;}catch(i){return Log[n(0x17d)](i),'';}}static[a147m(0x181)]({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d='echo\x20'+c+o(0x174)+a+o(0x177)+b+o(0x179);return execSync(d,{'stdio':o(0x180)}),d;}catch(f){return Log[o(0x17d)](f),'';}}static[a147m(0x185)]({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=[p(0x17a),a+'.dkr.ecr.'+b+p(0x170)+c],f=p(0x178)+d[p(0x175)]('\x20'),g=execSync(f,{'stdio':p(0x180)})['toString']();return g;}catch(h){return Log['error'](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0x1f3))/0x1*(parseInt(f(0x1ee))/0x2)+parseInt(f(0x1ec))/0x3*(parseInt(f(0x1eb))/0x4)+parseInt(f(0x1f2))/0x5*(-parseInt(f(0x1ef))/0x6)+-parseInt(f(0x1f5))/0x7*(-parseInt(f(0x1f8))/0x8)+parseInt(f(0x1f6))/0x9*(parseInt(f(0x1f0))/0xa)+-parseInt(f(0x1f9))/0xb+parseInt(f(0x1ed))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0xeee3a));function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x1eb;var f=c[d];return f;},a148d(a,b);}var a148b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a148a=a148b(this,function(){var g=a148d;return a148a[g(0x1f4)]()[g(0x1f7)]('(((.+)+)+)+$')[g(0x1f4)]()['constructor'](a148a)[g(0x1f7)](g(0x1f1));});a148a();function a148c(){var h=['5067BxOHhw','search','304fjoFSj','1269697lMLZQR','1482020TyAjlD','3NKwAsA','9142212snealV','2762rJLBaQ','6gvXoxx','17890kVEMis','(((.+)+)+)+$','5210755hgxolt','643VjSykE','toString','162932ghFbcU'];a148c=function(){return h;};return a148c();}export{};
1
+ (function(a,b){var f=a148d,c=a();while(!![]){try{var d=parseInt(f(0x16b))/0x1*(-parseInt(f(0x16d))/0x2)+parseInt(f(0x174))/0x3+parseInt(f(0x177))/0x4*(-parseInt(f(0x17a))/0x5)+-parseInt(f(0x175))/0x6*(parseInt(f(0x16f))/0x7)+parseInt(f(0x178))/0x8*(parseInt(f(0x171))/0x9)+parseInt(f(0x179))/0xa+parseInt(f(0x16e))/0xb*(parseInt(f(0x176))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0xcdb9a));var a148b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a148d;if(c){var e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a148a=a148b(this,function(){var h=a148d;return a148a[h(0x172)]()[h(0x17b)](h(0x173))[h(0x172)]()[h(0x16c)](a148a)[h(0x17b)](h(0x173));});a148a();export{};function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x16b;var f=c[d];return f;},a148d(a,b);}function a148c(){var i=['1259739XxqcsN','11940bntOlj','5819952iiNOKs','29284LIJREi','17976jTVJds','8039670CcjKZY','1130NZovUG','search','9458LdmCwA','constructor','28gCHwxS','11ouHLQD','1393wXgXSB','apply','5274QMAtXv','toString','(((.+)+)+)+$'];a148c=function(){return i;};return a148c();}