@maka/maka-cli 5.0.1 → 5.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/aws/_index.js +1 -1
  109. package/bundle/obf/src/generators/aws/aws.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  112. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  113. package/bundle/obf/src/generators/collection.js +1 -1
  114. package/bundle/obf/src/generators/component.js +1 -1
  115. package/bundle/obf/src/generators/config.js +1 -1
  116. package/bundle/obf/src/generators/dbc.js +1 -1
  117. package/bundle/obf/src/generators/dockerfile.js +1 -1
  118. package/bundle/obf/src/generators/hook.js +1 -1
  119. package/bundle/obf/src/generators/kits/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  126. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  127. package/bundle/obf/src/generators/kits/kit.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  131. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  132. package/bundle/obf/src/generators/layout.js +1 -1
  133. package/bundle/obf/src/generators/maka.gen.js +1 -1
  134. package/bundle/obf/src/generators/methods.js +1 -1
  135. package/bundle/obf/src/generators/package.js +1 -1
  136. package/bundle/obf/src/generators/page.js +1 -1
  137. package/bundle/obf/src/generators/publish.js +1 -1
  138. package/bundle/obf/src/generators/route.js +1 -1
  139. package/bundle/obf/src/generators/service.js +1 -1
  140. package/bundle/obf/src/generators/services/_index.js +1 -1
  141. package/bundle/obf/src/generators/services/openssl.js +1 -1
  142. package/bundle/obf/src/generators/services/translation.js +1 -1
  143. package/bundle/obf/src/maka.js +1 -1
  144. package/bundle/obf/src/templates/react/component/component.js.jsx +1 -1
  145. package/bundle/obf/src/templates/react/component/component.js.tsx +1 -1
  146. package/bundle/obf/src/templates/react/hook/hook.js.tsx +1 -1
  147. package/bundle/obf/src/tool.js +1 -1
  148. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  149. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  150. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  152. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  153. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  154. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/https/https.class.js +1 -1
  156. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  157. package/bundle/obf/src/tools/log/log.class.js +1 -1
  158. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  159. package/bundle/obf/src/tools/options/options.class.js +1 -1
  160. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  161. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  162. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  163. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  164. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  165. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  166. package/package.json +1 -1
@@ -1 +1 @@
1
- function a135c(){const x=['\x27;\x0a','56456gPtIYC','injectIntoFile','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','24561muqggf','hook/hook.js','className','pathFromApp','<Route\x20element={<PrivateRoute\x20/>}>','assign','none','toString','component','replace','fsi','join','api','apply','fileName','/imports/ui/pages','private','937156RmABkR','layout','template/template.html','toLowerCase','(((.+)+)+)+$','140ExgYqp','import\x20\x27./','root','endsWith','url','relative','1697685KWhIDQ','substring','template/template.css','true','warn','</Route>','.html','features','ssr','maka\x20g:page\x20todos/todos-item','lib','getMakaProjectConfig','withTranslations','graphql','dir','<Route\x20index','trim','vanilla','.app-tests.js','hasOwnProperty','create','css','installNpmPackage','template','injectTemplateModule','constructor','200UcTuaw','259371AvHqOq','findAppDirectory','ramda','page','client','engines','20TnoUdO','routes.','html','5FjYYAf','withHooks','setTemplate','<Route\x20path=\x22','theme','.js','startup','replaceAll','search','\x22\x20element={<Component.','resourceName','store','react','.css','injectAtBeginningOfFile','<Route\x20path=\x22*\x22','Generate\x20a\x20page.','test','withValue','867QfdTTF','pathFromProject','18636ySgYag','string'];a135c=function(){return x;};return a135c();}const a135u=a135d;(function(a,b){const r=a135d,c=a();while(!![]){try{const d=parseInt(r(0xec))/0x1+parseInt(r(0xf2))/0x2*(parseInt(r(0x108))/0x3)+-parseInt(r(0x121))/0x4*(-parseInt(r(0xf5))/0x5)+parseInt(r(0x10a))/0x6+parseInt(r(0x126))/0x7*(-parseInt(r(0x10d))/0x8)+parseInt(r(0x110))/0x9*(-parseInt(r(0xeb))/0xa)+-parseInt(r(0x12c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x24861));function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0xe1;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(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a[t(0x117)]()[t(0xfd)](t(0x125))['toString']()[t(0xea)](a135a)[t(0xfd)]('(((.+)+)+)+$');});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(0xe5)]({'name':a135u(0xef),'aliases':aliases,'usage':a135u(0x10f),'shortDesc':a135u(0x105),'validOpts':[{'name':a135u(0x120),'boolFlag':!![]},{'name':a135u(0x12a)}],'examples':[a135u(0x135)]},async function(a,b){const v=a135u,c=v(0x11f),d=this[v(0x11a)][v(0xed)](),e=b[v(0xff)]['includes'](':')?b[v(0xff)]['split'](':')[0x0][v(0xe1)]():b[v(0xff)][v(0xe1)](),f=b['dir'][v(0xfc)]('/','_')+'_'+e[v(0xfc)]('/','_'),g=this[v(0x11a)][v(0x113)]({'pathParts':[c,b[v(0x13a)],paramCase(f),paramCase(f)]}),h=this[v(0x11a)][v(0x137)]();let i='';return await this[v(0x11a)][v(0x107)](h,async()=>{const w=v;typeof h['template'][w(0xf4)]==='string'&&(h['template'][w(0xf4)]=h[w(0xe8)][w(0xf4)]===w(0x12f)?!![]:![],this[w(0x11a)][w(0xf7)]('html',h[w(0xe8)][w(0xf4)]));typeof h['template'][w(0x106)]===w(0x10b)&&(h[w(0xe8)][w(0x106)]=h[w(0xe8)][w(0x106)]==='true'?!![]:![],this[w(0x11a)][w(0xf7)](w(0x106),h['template'][w(0x106)]));typeof h['template']['css']===w(0x10b)&&(h[w(0xe8)][w(0xe6)]=h[w(0xe8)][w(0xe6)]==='true'?!![]:![],this[w(0x11a)][w(0xf7)](w(0xe6),h[w(0xe8)]['css']));typeof h[w(0xe8)]['js']===w(0x10b)&&(h[w(0xe8)]['js']=h['template']['js']==='true'?!![]:![],this[w(0x11a)]['setTemplate']('js',h['template']['js']));!h[w(0x133)]&&(h['features']={});!b[w(0x128)]&&!this[w(0x11a)]['checkNpmPackage'](w(0xee))&&(Log[w(0x130)]('Updating\x20npm\x20packages\x20...'),this['fsi'][w(0xe7)](w(0xee),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e[w(0x12b)](this[w(0x11a)][w(0x109)]({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0xf1)][w(0x139)],'features':h[w(0x133)],'client':h[w(0xf1)]['client'],'api':h['engines'][w(0x11c)],'ssr':h[w(0xf1)][w(0x134)],'isStore':b['hasOwnProperty'](w(0x100)),'isComponent':b[w(0xe4)](w(0x118)),'isLayout':b['hasOwnProperty'](w(0x122)),'withTranslations':h[w(0x133)][w(0x138)],'test':h[w(0xf1)][w(0x106)],'theme':h[w(0xf1)][w(0xf9)]};h['template'][w(0xf4)]&&await this[w(0x11a)][w(0xe8)]({'srcPath':w(0x123),'destPath':g+w(0x132),'context':j,'config':h});h[w(0x133)]?.[w(0xf6)]?await this[w(0x11a)][w(0xe8)]({'srcPath':w(0x111),'destPath':g+w(0xfa),'framework':w(0x101),'context':j,'config':h}):await this['fsi'][w(0xe8)]({'srcPath':'component/component.js','destPath':g+'.js','framework':'react','context':j,'config':h});h[w(0xf1)][w(0x106)]!==w(0x116)&&await this['fsi'][w(0xe8)]({'srcPath':'test/test.js','destPath':g+w(0xe3),'framework':w(0x101),'context':j,'config':h});h[w(0xe8)][w(0xe6)]&&await this[w(0x11a)][w(0xe8)]({'srcPath':w(0x12e),'destPath':g+w(0x102),'context':Object[w(0x115)]({},j,{'className':paramCase(b[w(0xff)])}),'config':h});h[w(0xf1)]['client']!==w(0x101)&&h['engines'][w(0xf0)]!==w(0xe2)?(h[w(0xe8)][w(0xe6)]&&await this[w(0x11a)]['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+j[w(0x11e)]+'.'+h['engines'][w(0xf4)]+w(0x10c)+w(0x127)+j[w(0x11e)]+'.'+h[w(0xf1)][w(0xe6)]+'\x27;'}),!h[w(0xe8)]['css']&&await this[w(0x11a)][w(0x103)]({'filePath':g+'.'+h['engines']['js'],'content':w(0x127)+j[w(0x11e)]+'.'+h[w(0xf1)][w(0xf4)]+'\x27;'})):h[w(0xe8)][w(0xe6)]&&await this[w(0x11a)][w(0x103)]({'filePath':g+'.'+h[w(0xf1)]['js'],'content':w(0x127)+j[w(0x11e)]+'.'+h[w(0xf1)][w(0xe6)]+'\x27;'});const k=b[w(0x13a)]?'/'+b[w(0x13a)]+'/':'/';i=''+c+k+j[w(0x11e)]+'/'+j[w(0x11e)],await this[w(0x11a)][w(0xe9)](j[w(0x112)],h,i);if(!b[w(0x128)]){const l=b['private']??![];if(!f){Log['error']('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}let m=b['url']?b[w(0x12a)]:'/'+b[w(0x13a)]['trim']()+'/'+b['resourceName'][w(0xe1)]()['replace'](/\\/g,'/')[w(0x119)](/\/+$/,'')[w(0x124)]();const n=b[w(0xff)]['indexOf'](':');n!==-0x1&&(m+='/'+b[w(0xff)][w(0x12d)](0x0,n)[w(0xe1)]());m[w(0x129)]('/')&&(m=m['slice'](0x0,-0x1));m=m[w(0x119)](/\/\//g,'/');const o=h[w(0xf1)]['js'],p=h[w(0xf1)][w(0x134)]===w(0x12f)?w(0x136):w(0xf0),q=a135e[w(0x11b)](d,'imports',w(0xfb),p,w(0xf3)+o);l?await this['fsi'][w(0x10e)]({'filePath':q,'content':w(0xf8)+m+w(0xfe)+pascalCase(f)+'/>}/>\x0a','begin':[w(0x114)],'end':[w(0x131)]}):await this[w(0x11a)][w(0x10e)]({'filePath':q,'content':w(0xf8)+m+w(0xfe)+pascalCase(f)+'/>}/>\x0a','begin':[w(0x13b)],'end':[w(0x104)]});}}),i+'.'+h['engines']['js'];});
1
+ const a135u=a135d;(function(a,b){const r=a135d,c=a();while(!![]){try{const d=-parseInt(r(0x197))/0x1*(parseInt(r(0x19c))/0x2)+parseInt(r(0x19a))/0x3+parseInt(r(0x17f))/0x4*(parseInt(r(0x19b))/0x5)+parseInt(r(0x174))/0x6+-parseInt(r(0x168))/0x7+-parseInt(r(0x15a))/0x8+parseInt(r(0x159))/0x9*(parseInt(r(0x162))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x85943));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a135d;if(c){const e=c[s(0x1a0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a[t(0x152)]()['search']('(((.+)+)+)+$')[t(0x152)]()['constructor'](a135a)[t(0x179)](t(0x154));});a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x152;let f=c[d];return f;},a135d(a,b);}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a135c(){const x=['699400jmSqCm','injectAtBeginningOfFile','<Route\x20path=\x22','dir','graphql','true','installNpmPackage','resourceName','20aWFLGA','vanilla','join','<Route\x20index','injectIntoFile','\x22\x20element={<Component.','601524VOipiF','test','replace','template/template.css','replaceAll','fileName','Updating\x20npm\x20packages\x20...','error','findAppDirectory','root','template/template.html','relative','62616VVOBTr','assign','split','hasOwnProperty','.js','search','pathFromProject','substring','none','</Route>','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','632PfiLKe','css','trim','layout','.html','page','string','react','ssr','ramda','client','test/test.js','startup','lib','import\x20\x27./','withHooks','withTranslations','pathFromApp','setTemplate','engines','\x27;\x0a','routes.','indexOf','includes','1XoIueq','className','url','1434027pTGHUw','7255UOCJFv','933374EpkCSE','template','features','toLowerCase','apply','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','fsi','Generate\x20a\x20page.','/>}/>\x0a','html','checkNpmPackage','toString','create','(((.+)+)+)+$','injectTemplateModule','getMakaProjectConfig','<Route\x20path=\x22*\x22','<Route\x20element={<PrivateRoute\x20/>}>','2112660snJiZt'];a135c=function(){return x;};return a135c();}Generator[a135u(0x153)]({'name':a135u(0x184),'aliases':aliases,'usage':a135u(0x1a1),'shortDesc':a135u(0x1a3),'validOpts':[{'name':'private','boolFlag':!![]},{'name':a135u(0x199)}],'examples':['maka\x20g:page\x20todos/todos-item']},async function(a,b){const v=a135u,c='/imports/ui/pages',d=this[v(0x1a2)][v(0x170)](),e=b['resourceName'][v(0x196)](':')?b[v(0x161)][v(0x176)](':')[0x0]['trim']():b[v(0x161)][v(0x181)](),f=b['dir'][v(0x16c)]('/','_')+'_'+e['replaceAll']('/','_'),g=this[v(0x1a2)][v(0x190)]({'pathParts':[c,b[v(0x15d)],paramCase(f),paramCase(f)]}),h=this[v(0x1a2)][v(0x156)]();let i='';return await this['fsi']['withValue'](h,async()=>{const w=v;typeof h['template'][w(0x1a5)]===w(0x185)&&(h[w(0x19d)][w(0x1a5)]=h[w(0x19d)][w(0x1a5)]===w(0x15f)?!![]:![],this[w(0x1a2)]['setTemplate'](w(0x1a5),h[w(0x19d)][w(0x1a5)]));typeof h[w(0x19d)][w(0x169)]===w(0x185)&&(h[w(0x19d)][w(0x169)]=h[w(0x19d)][w(0x169)]===w(0x15f)?!![]:![],this['fsi'][w(0x191)]('test',h['template']['test']));typeof h['template']['css']===w(0x185)&&(h[w(0x19d)][w(0x180)]=h[w(0x19d)][w(0x180)]===w(0x15f)?!![]:![],this[w(0x1a2)]['setTemplate'](w(0x180),h[w(0x19d)][w(0x180)]));typeof h[w(0x19d)]['js']===w(0x185)&&(h['template']['js']=h[w(0x19d)]['js']===w(0x15f)?!![]:![],this['fsi']['setTemplate']('js',h[w(0x19d)]['js']));!h[w(0x19e)]&&(h[w(0x19e)]={});!b[w(0x171)]&&!this[w(0x1a2)][w(0x1a6)](w(0x188))&&(Log['warn'](w(0x16e)),this[w(0x1a2)][w(0x160)](w(0x188),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e[w(0x173)](this[w(0x1a2)][w(0x17a)]({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0x192)][w(0x15e)],'features':h[w(0x19e)],'client':h[w(0x192)]['client'],'api':h[w(0x192)]['api'],'ssr':h[w(0x192)][w(0x187)],'isStore':b[w(0x177)]('store'),'isComponent':b[w(0x177)]('component'),'isLayout':b[w(0x177)](w(0x182)),'withTranslations':h[w(0x19e)][w(0x18f)],'test':h['engines'][w(0x169)],'theme':h[w(0x192)]['theme']};h['template']['html']&&await this[w(0x1a2)]['template']({'srcPath':w(0x172),'destPath':g+w(0x183),'context':j,'config':h});h[w(0x19e)]?.[w(0x18e)]?await this['fsi'][w(0x19d)]({'srcPath':'hook/hook.js','destPath':g+'.js','framework':w(0x186),'context':j,'config':h}):await this[w(0x1a2)][w(0x19d)]({'srcPath':'component/component.js','destPath':g+w(0x178),'framework':w(0x186),'context':j,'config':h});h['engines'][w(0x169)]!==w(0x17c)&&await this[w(0x1a2)][w(0x19d)]({'srcPath':w(0x18a),'destPath':g+'.app-tests.js','framework':w(0x186),'context':j,'config':h});h['template'][w(0x180)]&&await this[w(0x1a2)]['template']({'srcPath':w(0x16b),'destPath':g+'.css','context':Object[w(0x175)]({},j,{'className':paramCase(b[w(0x161)])}),'config':h});h[w(0x192)][w(0x189)]!==w(0x186)&&h[w(0x192)]['client']!==w(0x163)?(h[w(0x19d)][w(0x180)]&&await this[w(0x1a2)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[w(0x192)]['js'],'content':'import\x20\x27./'+j[w(0x16d)]+'.'+h[w(0x192)][w(0x1a5)]+w(0x193)+w(0x18d)+j[w(0x16d)]+'.'+h[w(0x192)][w(0x180)]+'\x27;'}),!h[w(0x19d)]['css']&&await this['fsi'][w(0x15b)]({'filePath':g+'.'+h['engines']['js'],'content':w(0x18d)+j[w(0x16d)]+'.'+h[w(0x192)][w(0x1a5)]+'\x27;'})):h['template']['css']&&await this[w(0x1a2)][w(0x15b)]({'filePath':g+'.'+h[w(0x192)]['js'],'content':w(0x18d)+j[w(0x16d)]+'.'+h[w(0x192)]['css']+'\x27;'});const k=b[w(0x15d)]?'/'+b[w(0x15d)]+'/':'/';i=''+c+k+j[w(0x16d)]+'/'+j[w(0x16d)],await this[w(0x1a2)][w(0x155)](j[w(0x198)],h,i);if(!b[w(0x171)]){const l=b['private']??![];if(!f){Log[w(0x16f)](w(0x17e));throw new UsageError();}let m=b['url']?b[w(0x199)]:'/'+b[w(0x15d)][w(0x181)]()+'/'+b[w(0x161)][w(0x181)]()['replace'](/\\/g,'/')[w(0x16a)](/\/+$/,'')[w(0x19f)]();const n=b[w(0x161)][w(0x195)](':');n!==-0x1&&(m+='/'+b[w(0x161)][w(0x17b)](0x0,n)[w(0x181)]());m['endsWith']('/')&&(m=m['slice'](0x0,-0x1));m=m[w(0x16a)](/\/\//g,'/');const o=h['engines']['js'],p=h['engines'][w(0x187)]==='true'?w(0x18c):w(0x189),q=a135e[w(0x164)](d,'imports',w(0x18b),p,w(0x194)+o);l?await this['fsi'][w(0x166)]({'filePath':q,'content':w(0x15c)+m+w(0x167)+pascalCase(f)+w(0x1a4),'begin':[w(0x158)],'end':[w(0x17d)]}):await this[w(0x1a2)][w(0x166)]({'filePath':q,'content':w(0x15c)+m+w(0x167)+pascalCase(f)+w(0x1a4),'begin':[w(0x165)],'end':[w(0x157)]});}}),i+'.'+h[v(0x192)]['js'];});
@@ -1 +1 @@
1
- const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x1aa))/0x1+parseInt(m(0x1c4))/0x2*(parseInt(m(0x1bc))/0x3)+-parseInt(m(0x1b5))/0x4*(parseInt(m(0x1a5))/0x5)+-parseInt(m(0x1bb))/0x6*(parseInt(m(0x1b4))/0x7)+parseInt(m(0x1b1))/0x8+-parseInt(m(0x1be))/0x9*(-parseInt(m(0x1a9))/0xa)+parseInt(m(0x1ca))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0xd13c4));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x1b3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x1ba)]()[o(0x1ab)]('(((.+)+)+)+$')[o(0x1ba)]()[o(0x1bd)](a136a)[o(0x1ab)]('(((.+)+)+)+$');});a136a();function a136c(){const s=['globalPublish','imports','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','getMakaProjectConfig','302Xgdcxa','appPathPrefix','baseDir','publish/publish.js','template','dir','4479321bVArGT','20EYKsYH','tsx','fsi','publish','370npxoLy','202374odtvfv','search','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','resourceName','import\x20\x27./publications','pathFromApp','create','6351032sgKOHB','exit','apply','1589JPRqul','661756pCrPSQ','startup','engines','withValue','force','toString','31926hHdrqO','13614YksKTm','constructor','253629Ukkvyw','/imports/ui/'];a136c=function(){return s;};return a136c();}import{paramCase,pascalCase}from'change-case';function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a136d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a136p(0x1b0)]({'name':a136p(0x1a8),'aliases':['p'],'usage':a136p(0x1ac),'shortDesc':a136p(0x1c2),'validOpts':[a136p(0x1b9),'globalPublish'],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const q=a136p;try{const c=b[q(0x1b9)]||![],d=b['baseDir']?q(0x1bf)+b[q(0x1c6)]:'/imports/startup/server/publications',f=this[q(0x1a7)][q(0x1c3)](),g=paramCase(b['resourceName']),h=this[q(0x1a7)][q(0x1af)]({'pathParts':[d,b[q(0x1c9)],'',g]});let i='js';f[q(0x1b7)]['js']===q(0x1a6)&&(i='ts');await this['fsi'][q(0x1b8)](f,async()=>{const r=q,l={'name':b[r(0x1ad)],'collection':pascalCase(b[r(0x1ad)]),'noRename':!![],'globalPublish':b[r(0x1c0)]};await this[r(0x1a7)][r(0x1c8)]({'srcPath':r(0x1c7),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x1a7)][q(0x1af)]({'pathParts':[q(0x1c1),q(0x1b6),'server',b[q(0x1c5)],'index.'+f[q(0x1b7)]['js']]}),k=b[q(0x1c9)]?'/'+b[q(0x1c9)]+'/':'/';return await this[q(0x1a7)]['injectAtEndOfFile']({'filePath':j,'content':q(0x1ae)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log['error'](l),process[q(0x1b2)](0x1);}});
1
+ const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0xa2))/0x1+parseInt(m(0x82))/0x2*(parseInt(m(0x87))/0x3)+parseInt(m(0xa0))/0x4+parseInt(m(0x89))/0x5*(parseInt(m(0x91))/0x6)+parseInt(m(0x86))/0x7*(parseInt(m(0xa8))/0x8)+-parseInt(m(0x84))/0x9+parseInt(m(0x81))/0xa*(-parseInt(m(0x8f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0xc2076));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x8c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0xa3)]()[o(0x9f)]('(((.+)+)+)+$')['toString']()['constructor'](a136a)[o(0x9f)](o(0x99));});a136a();function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x81;let f=c[d];return f;},a136d(a,b);}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a136c(){const s=['imports','12067vygssp','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','12xyFZEG','dir','engines','publish','exit','create','/imports/startup/server/publications','error','(((.+)+)+)+$','resourceName','getMakaProjectConfig','index.','pathFromApp','tsx','search','4011372STAVVK','publish/publish.js','171286TliExG','toString','withValue','import\x20\x27./publications','globalPublish','maka\x20g:publish\x20todos','10403816FTQvKM','/imports/ui/','4400mrjZrU','2LlvZEG','baseDir','14261085AchOMf','server','7xmRimz','1953591ZnWIGe','fsi','196890ydYVzN','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','injectAtEndOfFile','apply','force'];a136c=function(){return s;};return a136c();}Generator[a136p(0x96)]({'name':a136p(0x94),'aliases':['p'],'usage':a136p(0x90),'shortDesc':a136p(0x8a),'validOpts':[a136p(0x8d),a136p(0xa6)],'examples':[a136p(0xa7)]},async function(a,b){const q=a136p;try{const c=b[q(0x8d)]||![],d=b['baseDir']?q(0xa9)+b[q(0x83)]:q(0x97),f=this[q(0x88)][q(0x9b)](),g=paramCase(b['resourceName']),h=this[q(0x88)][q(0x9d)]({'pathParts':[d,b['dir'],'',g]});let i='js';f[q(0x93)]['js']===q(0x9e)&&(i='ts');await this[q(0x88)][q(0xa4)](f,async()=>{const r=q,l={'name':b[r(0x9a)],'collection':pascalCase(b[r(0x9a)]),'noRename':!![],'globalPublish':b['globalPublish']};await this['fsi']['template']({'srcPath':r(0xa1),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x88)]['pathFromApp']({'pathParts':[q(0x8e),'startup',q(0x85),b['appPathPrefix'],q(0x9c)+f['engines']['js']]}),k=b[q(0x92)]?'/'+b[q(0x92)]+'/':'/';return await this[q(0x88)][q(0x8b)]({'filePath':j,'content':q(0xa5)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x98)](l),process[q(0x95)](0x1);}});
@@ -1 +1 @@
1
- const a137p=a137d;function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x118;let f=c[d];return f;},a137d(a,b);}(function(a,b){const m=a137d,c=a();while(!![]){try{const d=parseInt(m(0x12a))/0x1+-parseInt(m(0x140))/0x2+-parseInt(m(0x131))/0x3*(parseInt(m(0x118))/0x4)+parseInt(m(0x12e))/0x5+parseInt(m(0x127))/0x6*(-parseInt(m(0x126))/0x7)+-parseInt(m(0x121))/0x8+parseInt(m(0x13b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x66e29));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a137d;if(c){const e=c[n(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const o=a137d;return a137a[o(0x12c)]()['search']('(((.+)+)+)+$')[o(0x12c)]()['constructor'](a137a)[o(0x128)](o(0x139));});function a137c(){const s=['\x22\x20element={<Component.','private','findAppDirectory','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','ssr','getMakaProjectConfig','<Route\x20element={<PrivateRoute\x20/>}>','4451472uegWsS','fsi','<Route\x20path=\x22*\x22','join','injectIntoFile','28mcrGXa','874674GlOWlI','search','client','191301EIiYkc','maka\x20{generate,\x20g}:{route,\x20r}','toString','apply','3668520cZoJfa','engines','exit','179859tQsjcu','Scaffolding\x20for\x20a\x20Route.','<Route\x20index','toLowerCase','resourceName','route','pop','replace','(((.+)+)+)+$','withValue','9584361hviXhd','split','routes.','<Route\x20path=\x22','error','18592JQdZzp','28DDSJrk','/>}/>\x0a'];a137c=function(){return s;};return a137c();}a137a();import a137e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':a137p(0x136),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137p(0x11b),'boolFlag':!![]},{'name':'route'}],'usage':a137p(0x12b),'shortDesc':a137p(0x132),'examples':[]},async function(a,b){const q=a137p;try{const c=this[q(0x122)][q(0x11f)](),d=this[q(0x122)][q(0x11c)]();await this[q(0x122)][q(0x13a)](c,async()=>{const r=q,f=b[r(0x11b)]??![];let g=b[r(0x135)][r(0x13c)]('/')[r(0x137)]();if(!g){Log[r(0x13f)](r(0x11d));throw new UsageError();}g=pascalCase(g);let h=b[r(0x136)]?'/'+b[r(0x136)]:'/'+b['resourceName'][r(0x138)](/\\/g,'/')[r(0x134)]();a['length']>0x1&&(h='/'+a['filter'](function(l){return l!=='/';})[r(0x124)]('/')[r(0x134)]());h=h['replace'](/\/\//g,'/');const i=c[r(0x12f)]['js'],j=c[r(0x11e)]?'lib':r(0x129),k=a137e[r(0x124)](d,'imports','startup',j,r(0x13d)+i);f?await this[r(0x122)][r(0x125)]({'filePath':k,'content':'<Route\x20path=\x22'+h+'\x22\x20element={<Component.'+g+'/>}/>\x0a','begin':[r(0x120)],'end':['</Route>']}):await this[r(0x122)]['injectIntoFile']({'filePath':k,'content':r(0x13e)+h+r(0x11a)+g+r(0x119),'begin':[r(0x133)],'end':[r(0x123)]});});}catch(f){Log['error'](f),process[q(0x130)](0x1);}});
1
+ const a137o=a137d;(function(a,b){const m=a137d,c=a();while(!![]){try{const d=parseInt(m(0x1fc))/0x1+parseInt(m(0x1f4))/0x2*(-parseInt(m(0x1f7))/0x3)+parseInt(m(0x1ea))/0x4*(-parseInt(m(0x1e8))/0x5)+parseInt(m(0x1ee))/0x6*(parseInt(m(0x1ef))/0x7)+-parseInt(m(0x1e6))/0x8*(-parseInt(m(0x1f3))/0x9)+-parseInt(m(0x1f2))/0xa+parseInt(m(0x1fb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x9cf8a));const a137b=(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;};}()),a137a=a137b(this,function(){const n=a137d;return a137a[n(0x200)]()[n(0x201)](n(0x1ec))[n(0x200)]()[n(0x1e4)](a137a)['search'](n(0x1ec));});a137a();function a137c(){const r=['5229HxRivu','engines','getMakaProjectConfig','7654470syxqPD','21969qlOJNe','2zbqwAx','withValue','private','2507187IlsUOs','imports','join','findAppDirectory','5337629FeoNdy','1214541tDcciD','exit','lib','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','toString','search','toLowerCase','replace','route','error','fsi','resourceName','<Route\x20index','client','/>}/>\x0a','\x22\x20element={<Component.','startup','injectIntoFile','constructor','<Route\x20path=\x22','4136YzUHWc','routes.','15445bBXayx','create','1648UzYSGx','length','(((.+)+)+)+$','</Route>','4458pbPSXD'];a137c=function(){return r;};return a137c();}import a137e from'path';function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a137d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{pascalCase}from'change-case';const aliases=['r'];Generator[a137o(0x1e9)]({'name':a137o(0x204),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137o(0x1f6),'boolFlag':!![]},{'name':'route'}],'usage':'maka\x20{generate,\x20g}:{route,\x20r}','shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[]},async function(a,b){const p=a137o;try{const c=this['fsi'][p(0x1f1)](),d=this[p(0x206)][p(0x1fa)]();await this[p(0x206)][p(0x1f5)](c,async()=>{const q=p,f=b[q(0x1f6)]??![];let g=b[q(0x207)]['split']('/')['pop']();if(!g){Log['error'](q(0x1ff));throw new UsageError();}g=pascalCase(g);let h=b[q(0x204)]?'/'+b[q(0x204)]:'/'+b[q(0x207)][q(0x203)](/\\/g,'/')[q(0x202)]();a[q(0x1eb)]>0x1&&(h='/'+a['filter'](function(l){return l!=='/';})[q(0x1f9)]('/')[q(0x202)]());h=h[q(0x203)](/\/\//g,'/');const i=c[q(0x1f0)]['js'],j=c['ssr']?q(0x1fe):q(0x209),k=a137e['join'](d,q(0x1f8),q(0x1e2),j,q(0x1e7)+i);f?await this[q(0x206)]['injectIntoFile']({'filePath':k,'content':q(0x1e5)+h+q(0x1e1)+g+q(0x20a),'begin':['<Route\x20element={<PrivateRoute\x20/>}>'],'end':[q(0x1ed)]}):await this['fsi'][q(0x1e3)]({'filePath':k,'content':q(0x1e5)+h+q(0x1e1)+g+q(0x20a),'begin':[q(0x208)],'end':['<Route\x20path=\x22*\x22']});});}catch(f){Log[p(0x205)](f),process[p(0x1fd)](0x1);}});
@@ -1 +1 @@
1
- const a138m=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=-parseInt(j(0x96))/0x1+parseInt(j(0x9f))/0x2*(parseInt(j(0xa6))/0x3)+-parseInt(j(0x9d))/0x4+-parseInt(j(0xa3))/0x5+-parseInt(j(0x91))/0x6+-parseInt(j(0x99))/0x7*(parseInt(j(0x9b))/0x8)+-parseInt(j(0x88))/0x9*(-parseInt(j(0x8d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x364e7));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x87)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a[l(0x93)]()[l(0x8b)](l(0xa1))[l(0x93)]()['constructor'](a138a)[l(0x8b)](l(0xa1));});a138a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x84;let f=c[d];return f;},a138d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a138m(0x9a)]({'name':a138m(0x8f),'aliases':[a138m(0xa5)],'usage':a138m(0xa4),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','requiredOpts':[{'name':a138m(0x90),'values':[a138m(0x85)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138m(0xa2)]},async function(a,b){const n=a138m;try{const c=this[n(0x86)][n(0x8c)]();await this[n(0x86)][n(0xa8)](c,async()=>{const o=n,d=this[o(0x86)][o(0x84)]({}),f=paramCase(b[o(0x9c)]),g={'name':pascalCase(b[o(0x9c)]),'fileName':f,'camelCase':camelCase(b[o(0x9c)]),'type':b[o(0x90)],'engine':c[o(0x9e)]['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x89)&&(h='ts');if(b[o(0x90)]==='logger'){!this[o(0x86)]['checkNpmPackage'](o(0xa0))&&await this[o(0x86)][o(0xa7)](o(0x8a),{'cwd':d,'msg':o(0x97)});const i=this['fsi']['pathFromApp']({'pathParts':[o(0x92),o(0x95),o(0x8e),'services',f+'.'+h]});await this['fsi'][o(0x98)]({'srcPath':o(0x94),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});function a138c(){const p=['service','type','2356032yJNNwt','imports','toString','service/logger/logger.js','startup','417161txowst','Installing\x20winston','template','728014ROzvRY','create','16BCGVSl','resourceName','1431136tDoXIb','engines','225332mfSMIk','winston','(((.+)+)+)+$','maka\x20g:svc\x20service-logger\x20--type=logger','717545uBLBHi','maka\x20{generate,\x20g}:{service}\x20<resource-name>','svc','9ffwFGU','installNpmPackage','withValue','pathFromApp','logger','fsi','apply','971703dyZoWG','tsx','winston\x20setimmediate','search','getMakaProjectConfig','130WRbecq','lib'];a138c=function(){return p;};return a138c();}
1
+ const a138l=a138d;function a138c(){const o=['22zzeKbV','type','engines','constructor','(((.+)+)+)+$','getMakaProjectConfig','service/logger/logger.js','tsx','winston\x20setimmediate','7qlPPVE','lib','checkNpmPackage','15629cNGlDQ','848240Kdnyss','Installing\x20winston','error','installNpmPackage','2108082WYagzA','10037335FncVAY','60375RQyvck','pathFromApp','create','template','1154128ZKCWyN','30fkjyro','maka\x20g:svc\x20service-logger\x20--type=logger','search','toString','10wgThnC','service','logger','maka\x20{generate,\x20g}:{service}\x20<resource-name>','fsi','2504043oOtEGC','services'];a138c=function(){return o;};return a138c();}(function(a,b){const j=a138d,c=a();while(!![]){try{const d=-parseInt(j(0xdb))/0x1*(-parseInt(j(0xcf))/0x2)+-parseInt(j(0xe2))/0x3+-parseInt(j(0xdc))/0x4+parseInt(j(0xc8))/0x5*(parseInt(j(0xe0))/0x6)+parseInt(j(0xd8))/0x7*(-parseInt(j(0xe6))/0x8)+-parseInt(j(0xcd))/0x9*(-parseInt(j(0xc4))/0xa)+-parseInt(j(0xe1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x66a06));const a138b=(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;};}()),a138a=a138b(this,function(){const k=a138d;return a138a[k(0xc7)]()['search']('(((.+)+)+)+$')['toString']()[k(0xd2)](a138a)[k(0xc6)](k(0xd3));});a138a();function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0xc4;let f=c[d];return f;},a138d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a138l(0xe4)]({'name':a138l(0xc9),'aliases':['svc'],'usage':a138l(0xcb),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','requiredOpts':[{'name':a138l(0xd0),'values':[a138l(0xca)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138l(0xc5)]},async function(a,b){const m=a138l;try{const c=this['fsi'][m(0xd4)]();await this['fsi']['withValue'](c,async()=>{const n=m,d=this[n(0xcc)][n(0xe3)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b[n(0xd0)],'engine':c[n(0xd1)]['js'],'noRename':!![]};let h='js';c['engines']['js']===n(0xd6)&&(h='ts');if(b['type']===n(0xca)){!this[n(0xcc)][n(0xda)]('winston')&&await this[n(0xcc)][n(0xdf)](n(0xd7),{'cwd':d,'msg':n(0xdd)});const i=this[n(0xcc)]['pathFromApp']({'pathParts':['imports','startup',n(0xd9),n(0xce),f+'.'+h]});await this['fsi'][n(0xe5)]({'srcPath':n(0xd5),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0xde)](d);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(0x110))/0x1*(-parseInt(f(0x111))/0x2)+parseInt(f(0x117))/0x3+-parseInt(f(0x119))/0x4+parseInt(f(0x10d))/0x5*(parseInt(f(0x113))/0x6)+-parseInt(f(0x10f))/0x7+parseInt(f(0x115))/0x8*(parseInt(f(0x11b))/0x9)+-parseInt(f(0x11a))/0xa*(-parseInt(f(0x114))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x5d0f0));var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a['toString']()[h(0x10e)](h(0x116))[h(0x112)]()[h(0x118)](a139a)['search'](h(0x116));});a139a();import'./translation.js';function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0x10c;var f=c[d];return f;},a139d(a,b);}import'./openssl.js';function a139c(){var i=['apply','27415zjRGlr','search','1332863ONpPtr','1bTkzhb','155426MdMoPU','toString','138BcwWrT','7249CPAdZv','1244024hDviRc','(((.+)+)+)+$','1139640bbPKgd','constructor','1796000dGsuyU','1910PbvWXF','18oOEqZV'];a139c=function(){return i;};return a139c();}
1
+ function a139c(){var i=['2265Lgyewb','2038768CANeeD','10iWRtEF','(((.+)+)+)+$','290LfmkNR','804504oVSfGm','1538847bVhPbf','4566YgrNPA','apply','search','56oTEeSS','8514275XeiZMr','169jnQNIX','2345358FXqWwL'];a139c=function(){return i;};return a139c();}(function(a,b){var f=a139d,c=a();while(!![]){try{var d=parseInt(f(0xf8))/0x1*(parseInt(f(0xf0))/0x2)+parseInt(f(0xf9))/0x3+-parseInt(f(0xfb))/0x4+parseInt(f(0xfa))/0x5*(parseInt(f(0xf3))/0x6)+-parseInt(f(0xf6))/0x7*(parseInt(f(0xf1))/0x8)+-parseInt(f(0xf2))/0x9+-parseInt(f(0xfc))/0xa*(-parseInt(f(0xf7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x6b63e));var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0xf4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a['toString']()[h(0xf5)]('(((.+)+)+)+$')['toString']()['constructor'](a139a)[h(0xf5)](h(0xfd));});a139a();function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xf0;var f=c[d];return f;},a139d(a,b);}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(0x17e))/0x1*(-parseInt(i(0x184))/0x2)+-parseInt(i(0x187))/0x3*(parseInt(i(0x179))/0x4)+parseInt(i(0x17f))/0x5+parseInt(i(0x176))/0x6+-parseInt(i(0x18c))/0x7*(-parseInt(i(0x185))/0x8)+-parseInt(i(0x188))/0x9+parseInt(i(0x17d))/0xa*(parseInt(i(0x173))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x94000));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0x16e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a['toString']()['search'](k(0x16f))[k(0x186)]()['constructor'](a140a)[k(0x18a)]('(((.+)+)+)+$');});a140a();import{Generator}from'../../generator.js';function a140c(){const o=['join','fsi','10prmPuf','374606xCTyQp','1328940bsDuXN','maka\x20g:sslconfig\x20--env\x20dev','openssl.conf','openssl/openssl.conf','template','4TdcdDf','40aClYNw','toString','1530822apIoyI','956232KgMbZD','withValue','search','Generate\x20a\x20new\x20openssl\x20config\x20file','946939sBBysk','apply','(((.+)+)+)+$','error','getMakaProjectConfig','appName','9473497VaUNZi','maka\x20{generate,\x20g}:sslconfig','sslconfig','4072896nfFywi','getGlobalConfig','env','8DASvgW','_keys'];a140c=function(){return o;};return a140c();}function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x16e;let f=c[d];return f;},a140d(a,b);}import{Log}from'../../tools/log/log.class.js';import a140e from'path';Generator['create']({'name':a140l(0x175),'usage':a140l(0x174),'shortDesc':a140l(0x18b),'noNeedResource':!![],'requiredOpts':['env'],'examples':[a140l(0x180)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this[m(0x17c)][m(0x171)](),d=await this[m(0x17c)][m(0x177)](),f=this[m(0x17c)]['getAppConfigPath'](b[m(0x178)]),g=a140e[m(0x17b)](f,m(0x17a),m(0x181));await this[m(0x17c)][m(0x189)](c,async()=>{const n=m,h={'app':d[n(0x172)],'noRename':!![]};await this[n(0x17c)][n(0x183)]({'srcPath':n(0x182),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[m(0x170)](h);}});
1
+ const a140k=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x136))/0x1*(-parseInt(i(0x140))/0x2)+parseInt(i(0x139))/0x3*(-parseInt(i(0x135))/0x4)+parseInt(i(0x148))/0x5+parseInt(i(0x131))/0x6+parseInt(i(0x12f))/0x7*(-parseInt(i(0x13f))/0x8)+parseInt(i(0x134))/0x9+parseInt(i(0x142))/0xa*(parseInt(i(0x133))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xe8936));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const j=a140d;return a140a['toString']()['search'](j(0x13c))[j(0x12e)]()[j(0x144)](a140a)[j(0x12d)]('(((.+)+)+)+$');});a140a();function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x12c;let f=c[d];return f;},a140d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a140c(){const n=['Generate\x20a\x20new\x20openssl\x20config\x20file','join','166821CWLGKi','getGlobalConfig','openssl.conf','(((.+)+)+)+$','maka\x20g:sslconfig\x20--env\x20dev','template','8UhRoVH','92tOjgzh','env','7190270CaBjuD','openssl/openssl.conf','constructor','_keys','getMakaProjectConfig','fsi','602800YVuknt','error','create','search','toString','11208687tUpfNi','withValue','999054nsaSbD','service','33bDBBRG','4959414ZgXchz','52KmlbsL','6121eTDzFJ'];a140c=function(){return n;};return a140c();}import a140e from'path';Generator[a140k(0x12c)]({'name':'sslconfig','usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':a140k(0x137),'noNeedResource':!![],'requiredOpts':[a140k(0x141)],'examples':[a140k(0x13d)],'validOpts':[]},async function(a,b){const l=a140k;try{const c=await this[l(0x147)][l(0x146)](),d=await this[l(0x147)][l(0x13a)](),f=this[l(0x147)]['getAppConfigPath'](b[l(0x141)]),g=a140e[l(0x138)](f,l(0x145),l(0x13b));await this['fsi'][l(0x130)](c,async()=>{const m=l,h={'app':d['appName'],'noRename':!![]};await this[m(0x147)][m(0x13e)]({'srcPath':m(0x143),'destPath':g,'framework':m(0x132),'context':h,'config':c});});}catch(h){Log[l(0x149)](h);}});
@@ -1 +1 @@
1
- const a141z=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=parseInt(x(0x191))/0x1+-parseInt(x(0x188))/0x2*(parseInt(x(0x195))/0x3)+parseInt(x(0x17a))/0x4+parseInt(x(0x1a3))/0x5+-parseInt(x(0x19d))/0x6+-parseInt(x(0x177))/0x7*(parseInt(x(0x19f))/0x8)+parseInt(x(0x16e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xc2c2d));const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const y=a141d;return a141a[y(0x19b)]()[y(0x189)](y(0x194))[y(0x19b)]()[y(0x1a5)](a141a)[y(0x189)](y(0x194));});function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x169;let f=c[d];return f;},a141d(a,b);}a141a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a141c(){const C=['server','index.js','root','lib','template','grep','Locale\x20already\x20defined:\x20','77KBRryx','engines','getGlobalConfig','5733304XkkBIE','startup','isFile','getMakaProjectConfig','true','lang','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','i18n/index.js','i18n/locales.js','fsi','service','readFileSync','rewriteDestinationPathForEngine','maka\x20{generate,\x20g}:translation','68AZcNDu','search','default\x20as\x20','create','translations','translation','withValue','maka\x20g:translation\x20--lang=en\x20(default)','imports','260716OXDALA','injectAtBeginningOfFile','installNpmPackage','(((.+)+)+)+$','105129cMpoUp','i18n/i18n.js','appName','setProjectConfig','client','checkNpmPackage','toString','services','3669204CBOrQx','warn','410664moxeit','error','.js','injectAtEndOfFile','848250cbjuqg','maka\x20g:translation\x20--lang=de','constructor','import\x20\x27../lib/services/translations/i18n\x27;','\x20}\x20from\x20\x27./','i18next','locales','import\x20\x27../lib/services/translations/i18n\x27;\x0a','findAppDirectory','export\x20{\x20default\x20as\x20','i18next\x20i18next-browser-languagedetector\x20react-i18next','exit','maka\x20g:translation\x20--lang=fr','11715372XAYTbA','pathFromApp'];a141c=function(){return C;};return a141c();}import a141e from'fs';Generator[a141z(0x18b)]({'name':a141z(0x18d),'usage':a141z(0x187),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141z(0x17f),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':'\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','examples':[a141z(0x18f),a141z(0x16d),a141z(0x1a4)],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this['fsi'][A(0x17d)](),d=this[A(0x183)][A(0x179)](),f=this[A(0x183)][A(0x169)]();await this[A(0x183)][A(0x18e)](c,async()=>{const B=A;try{!b[B(0x17f)]&&(b['lang']='en');!b[B(0x172)]&&!this[B(0x183)][B(0x19a)](B(0x1a8))&&(Log[B(0x19e)](B(0x180)),this['fsi'][B(0x193)](B(0x16b),{'cwd':f}),this[B(0x183)][B(0x198)]('features.withTranslations',!![]));const g=this[B(0x183)][B(0x16f)]({'pathParts':[B(0x190),B(0x17b),B(0x199),'index.js']}),h=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[B(0x183)][B(0x175)](a141e[B(0x185)](h)['toString'](),B(0x1a6))[0x0]&&!![];if(c[B(0x178)]['ssr']===B(0x17e)){!i&&this[B(0x183)][B(0x192)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[B(0x183)]['pathFromApp']({'pathParts':['imports',B(0x17b),B(0x170),B(0x171)]}),u=this[B(0x183)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[B(0x183)][B(0x175)](a141e[B(0x185)](u)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this['fsi'][B(0x192)]({'filePath':u,'content':B(0x1aa)});}else!i&&this[B(0x183)][B(0x192)]({'filePath':h,'content':B(0x1aa)});const j={'app':d[B(0x197)],'config':c},k=this[B(0x183)]['pathFromApp']({'pathParts':[B(0x190),B(0x17b),'lib',B(0x19c),'translations','i18n.js']}),l=this[B(0x183)][B(0x17c)](this[B(0x183)][B(0x186)]({'pathParts':[k],'config':c}));!l&&await this[B(0x183)][B(0x174)]({'srcPath':B(0x196),'destPath':k,'framework':B(0x184),'context':j,'config':c});const m=this['fsi'][B(0x16f)]({'pathParts':[B(0x190),'startup',B(0x173),B(0x19c),B(0x18c),'locales',b[B(0x17f)]+B(0x1a1)]}),n=this['fsi'][B(0x186)]({'pathParts':[m],'config':c}),o=this[B(0x183)][B(0x17c)](n);!o?await this['fsi'][B(0x174)]({'srcPath':B(0x182),'destPath':m,'framework':'service','context':j,'config':c}):Log[B(0x19e)](B(0x176)+n);const p=this[B(0x183)][B(0x16f)]({'pathParts':[B(0x190),B(0x17b),'lib',B(0x19c),'translations',B(0x1a9),'index.'+c[B(0x178)]['js']]}),q=this['fsi'][B(0x186)]({'pathParts':[p],'config':c}),r=this[B(0x183)][B(0x17c)](q);!r&&await this[B(0x183)][B(0x174)]({'srcPath':B(0x181),'destPath':p,'framework':B(0x184),'context':j,'config':c});const s=this[B(0x183)][B(0x175)](a141e[B(0x185)](p)[B(0x19b)](),B(0x18a)+b['lang'])[0x0]&&!![];!s?await this['fsi'][B(0x1a2)]({'filePath':p,'content':B(0x16a)+b[B(0x17f)]+B(0x1a7)+b[B(0x17f)]+'\x27;'}):Log[B(0x19e)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[B(0x1a0)](w),process[B(0x16c)](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(0x1b8))/0x1*(-parseInt(x(0x196))/0x2)+-parseInt(x(0x1a7))/0x3+parseInt(x(0x1b5))/0x4+parseInt(x(0x18f))/0x5*(-parseInt(x(0x17d))/0x6)+parseInt(x(0x192))/0x7*(parseInt(x(0x18d))/0x8)+parseInt(x(0x19d))/0x9+parseInt(x(0x1aa))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xa2157));function a141c(){const D=['getMakaProjectConfig','7625540kmqzfg','checkNpmPackage','injectAtBeginningOfFile','root','locales','grep','server','imports','.js','\x20}\x20from\x20\x27./','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','1279876XQkBod','index.js','lang','9lPrnbf','import\x20\x27../lib/services/translations/i18n\x27;\x0a','lib','Generate\x20a\x20new\x20locale\x20translation','maka\x20g:translation\x20--lang=en\x20(default)','maka\x20{generate,\x20g}:translation','constructor','1558338YUDoRv','engines','readFileSync','maka\x20g:translation\x20--lang=fr','index.','template','getGlobalConfig','setProjectConfig','withValue','\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','pathFromApp','import\x20\x27../lib/services/translations/i18n\x27;','(((.+)+)+)+$','maka\x20g:translation\x20--lang=de','fsi','error','6824QhiNPc','client','10FYYlnE','toString','search','7091YgiSxH','exit','i18n/i18n.js','i18next','140212WdtVzh','translations','services','Locale\x20already\x20exported:\x20','i18n/locales.js','default\x20as\x20','i18n/index.js','6952266Jgggnz','isFile','features.withTranslations','apply','startup','rewriteDestinationPathForEngine','i18next\x20i18next-browser-languagedetector\x20react-i18next','true','service','warn','2714373dfqvlV','create'];a141c=function(){return D;};return a141c();}const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a141d;if(c){const e=c[y(0x1a0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const z=a141d;return a141a[z(0x190)]()[z(0x191)]('(((.+)+)+)+$')[z(0x190)]()[z(0x17c)](a141a)['search'](z(0x189));});a141a();function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x17b;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';Generator[a141A(0x1a8)]({'name':'translation','usage':a141A(0x17b),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141A(0x1b7),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141A(0x1bb),'description':a141A(0x186),'examples':[a141A(0x1bc),a141A(0x180),a141A(0x18a)],'validOpts':[]},async function(a,b){const B=a141A;try{const c=this[B(0x18b)][B(0x1a9)](),d=this['fsi'][B(0x183)](),f=this[B(0x18b)]['findAppDirectory']();await this[B(0x18b)][B(0x185)](c,async()=>{const C=B;try{!b[C(0x1b7)]&&(b[C(0x1b7)]='en');!b[C(0x1ad)]&&!this[C(0x18b)][C(0x1ab)](C(0x195))&&(Log[C(0x1a6)](C(0x1b4)),this['fsi']['installNpmPackage'](C(0x1a3),{'cwd':f}),this[C(0x18b)][C(0x184)](C(0x19f),!![]));const g=this[C(0x18b)][C(0x187)]({'pathParts':['imports',C(0x1a1),C(0x18e),C(0x1b6)]}),h=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[C(0x18b)][C(0x1af)](a141e['readFileSync'](h)['toString'](),C(0x188))[0x0]&&!![];if(c[C(0x17e)]['ssr']===C(0x1a4)){!i&&this[C(0x18b)][C(0x1ac)]({'filePath':h,'content':C(0x1b9)});const t=this[C(0x18b)][C(0x187)]({'pathParts':[C(0x1b1),C(0x1a1),C(0x1b0),C(0x1b6)]}),u=this['fsi'][C(0x1a2)]({'pathParts':[t],'config':c}),v=this[C(0x18b)]['grep'](a141e[C(0x17f)](u)[C(0x190)](),C(0x188))[0x0]&&!![];!v&&this['fsi'][C(0x1ac)]({'filePath':u,'content':C(0x1b9)});}else!i&&this[C(0x18b)][C(0x1ac)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d['appName'],'config':c},k=this['fsi']['pathFromApp']({'pathParts':[C(0x1b1),C(0x1a1),C(0x1ba),C(0x198),C(0x197),'i18n.js']}),l=this[C(0x18b)][C(0x19e)](this['fsi'][C(0x1a2)]({'pathParts':[k],'config':c}));!l&&await this[C(0x18b)][C(0x182)]({'srcPath':C(0x194),'destPath':k,'framework':C(0x1a5),'context':j,'config':c});const m=this[C(0x18b)]['pathFromApp']({'pathParts':[C(0x1b1),C(0x1a1),C(0x1ba),C(0x198),'translations',C(0x1ae),b['lang']+C(0x1b2)]}),n=this[C(0x18b)][C(0x1a2)]({'pathParts':[m],'config':c}),o=this[C(0x18b)]['isFile'](n);!o?await this[C(0x18b)][C(0x182)]({'srcPath':C(0x19a),'destPath':m,'framework':C(0x1a5),'context':j,'config':c}):Log[C(0x1a6)]('Locale\x20already\x20defined:\x20'+n);const p=this[C(0x18b)]['pathFromApp']({'pathParts':[C(0x1b1),C(0x1a1),C(0x1ba),C(0x198),C(0x197),C(0x1ae),C(0x181)+c[C(0x17e)]['js']]}),q=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[C(0x18b)][C(0x19e)](q);!r&&await this[C(0x18b)]['template']({'srcPath':C(0x19c),'destPath':p,'framework':C(0x1a5),'context':j,'config':c});const s=this[C(0x18b)]['grep'](a141e[C(0x17f)](p)[C(0x190)](),C(0x19b)+b[C(0x1b7)])[0x0]&&!![];!s?await this[C(0x18b)]['injectAtEndOfFile']({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b[C(0x1b7)]+C(0x1b3)+b[C(0x1b7)]+'\x27;'}):Log['warn'](C(0x199)+p);}catch(w){Log['error'](w),process[C(0x193)](0x1);}});}catch(g){Log[B(0x18c)](g),process['exit'](0x1);}});
@@ -1 +1 @@
1
- const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=parseInt(j(0x1a7))/0x1*(-parseInt(j(0x1ae))/0x2)+-parseInt(j(0x1a3))/0x3*(parseInt(j(0x1a5))/0x4)+parseInt(j(0x1a0))/0x5+parseInt(j(0x1ad))/0x6+-parseInt(j(0x1aa))/0x7*(parseInt(j(0x1b5))/0x8)+parseInt(j(0x1ac))/0x9+parseInt(j(0x1ab))/0xa*(parseInt(j(0x1b9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xbb07c));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0x1a9)]()[l(0x1b4)](l(0x1b1))[l(0x1a9)]()[l(0x1b3)](a142a)[l(0x1b4)](l(0x1b1));});a142a();function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a142d(a,b);}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[a142m(0x1b2)]),__dirname=a142g[a142m(0x1a6)](__filename);global[a142m(0x1a2)]=__dirname;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(0x1b7)](total_mem_in_mb),process[a142m(0x1af)][a142m(0x1ba)]=a142m(0x1a1)+total_mem_in_mb,process[a142m(0x1af)]['BROWSERSLIST_IGNORE_OLD_DATA']='1',process['env']['NODE_NO_WARNINGS']='1';function a142c(){const n=['dirname','33589XwFhUr','parse','toString','35NsocgA','323270KrsHtZ','1846755IBEHsU','8859600vAdzkB','80kuYxhJ','env','stringify','(((.+)+)+)+$','url','constructor','search','1424912zwanln','slice','floor','apply','319CwYPzj','TOOL_NODE_FLAGS','4249805rkGuvj','--max-old-space-size=','MAKA_COMMAND_PATH','3xbpHqJ','run','1876132RuFviU'];a142c=function(){return n;};return a142c();}const argv=a142e(process['argv'][a142m(0x1b6)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0x1a8)](JSON[a142m(0x1b0)](argv));delete deepCopyArgv['_'];const opts=a142h['camelizeKeys'](deepCopyArgv);a142i[a142m(0x1a4)](args,opts);
1
+ const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=parseInt(j(0x11a))/0x1+-parseInt(j(0x116))/0x2*(-parseInt(j(0x120))/0x3)+-parseInt(j(0x113))/0x4+parseInt(j(0x11b))/0x5*(parseInt(j(0x110))/0x6)+-parseInt(j(0x11c))/0x7+-parseInt(j(0x11d))/0x8+parseInt(j(0x118))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xe740b));function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x10b;let f=c[d];return f;},a142d(a,b);}const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x10f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a['toString']()['search']('(((.+)+)+)+$')[l(0x10c)]()[l(0x10d)](a142a)[l(0x119)]('(((.+)+)+)+$');});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';function a142c(){const n=['20819088Ochqbe','search','1033140BvxAHg','170kCRmzk','10205083jMPVYo','2571736FXUTtj','camelizeKeys','floor','3CKWBEE','env','toString','constructor','stringify','apply','47442lGpOGz','TOOL_NODE_FLAGS','argv','5719844ovplIw','BROWSERSLIST_IGNORE_OLD_DATA','NODE_NO_WARNINGS','1082596QcfPwj','MAKA_COMMAND_PATH'];a142c=function(){return n;};return a142c();}const __filename=fileURLToPath(import.meta['url']),__dirname=a142g['dirname'](__filename);global[a142m(0x117)]=__dirname;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(0x11f)](total_mem_in_mb),process[a142m(0x10b)][a142m(0x111)]='--max-old-space-size='+total_mem_in_mb,process[a142m(0x10b)][a142m(0x114)]='1',process[a142m(0x10b)][a142m(0x115)]='1';const argv=a142e(process[a142m(0x112)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a142m(0x10e)](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0x11e)](deepCopyArgv);a142i['run'](args,opts);
@@ -45,7 +45,7 @@ class <%= className %> extends Component {
45
45
  const { t } = this.props;<% } %>
46
46
  return (
47
47
  <div id="<%= cssCaseName %>">
48
- <% if (isLayout) { %><Outlet/><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
48
+ <% if (isLayout) { %><Outlet /><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
49
49
  </div>
50
50
  );
51
51
  }
@@ -50,7 +50,7 @@ class <%= className %> extends React.Component<I<%= className %>> {
50
50
  const { t } = this.props;<% } %>
51
51
  return (
52
52
  <div id="<%= cssCaseName %>">
53
- <% if (isLayout) { %><Outlet/><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
53
+ <% if (isLayout) { %><Outlet /><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
54
54
  </div>
55
55
  );
56
56
  }
@@ -10,7 +10,7 @@ function <%= className %>(props) {
10
10
 
11
11
  return (
12
12
  <div id="<%= cssCaseName %>">
13
- <% if (isLayout) { %><Outlet/><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
13
+ <% if (isLayout) { %><Outlet /><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
14
14
  </div>
15
15
  );
16
16
  }
@@ -1 +1 @@
1
- function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x19b;let f=c[d];return f;},a143d(a,b);}const a143L=a143d;function a143c(){const a3=['Invalid\x20argument:\x20','homedir','find','NIE','search','list','map','apply','\x20version\x20','concat','resourceName','help','string','every','Please\x20choose\x20a\x20valid\x20value\x20for\x20','validateMeteorInstall','No\x20description\x20provided.','keys','examples','6097520cYCwDf','(((.+)+)+)+$','local','ask','isPro','proCommands','platform','759742MSkNqx','assign','experimental','docker','AppData','constructor','204024QZMCCZ','formatToNamedParam','push','usage','remapShortToLong','validateMakaSubscription','engines','cwd','error','Please\x20choose\x20an\x20environment','options','description','5600225ZCKqXH','validateParams','config','shortDesc','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','proGenerators','existsSync','\x20installed\x20to\x20use\x20this\x20command.','toString','validateMakaProject','Invalid\x20option:\x20','findProjectDirectory','getAppProjectConfigs','8931750uWOyYe','filter','aliases','isCommand','Invalid\x20value\x20for\x20','.meteor','exit','roles','No\x20usage\x20provided.','getShortName','fsi','parent','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','getMakaProjectConfig','You\x20must\x20have\x20','72XOiLKG','dir','Please\x20provide\x20a\x20value\x20for\x20','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','1393980zWsGRn','name','length','env','match','join','singleLicense','590359uuEIDH','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','includes'];a143c=function(){return a3;};return a143c();}(function(a,b){const I=a143d,c=a();while(!![]){try{const d=parseInt(I(0x1e1))/0x1+-parseInt(I(0x1bd))/0x2+parseInt(I(0x1e7))/0x3*(-parseInt(I(0x1b9))/0x4)+parseInt(I(0x19d))/0x5+parseInt(I(0x1aa))/0x6+parseInt(I(0x1c4))/0x7+-parseInt(I(0x1da))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0xbbd91));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x1ce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0x1a5)]()[K(0x1cb)](K(0x1db))[K(0x1a5)]()[K(0x1e6)](a143a)[K(0x1cb)](K(0x1db));});a143a();import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x1c8)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a143L(0x1e4)];[a143L(0x1b4)];[a143L(0x19b)];[a143L(0x1be)];[a143L(0x1b5)];['_handler'];constructor(){const M=a143L;this[M(0x1e4)]=new Docker(),this['fsi']=new FSI();}[a143L(0x1b3)](a){return a['charAt'](0x0);}[a143L(0x1eb)](a,b){const N=a143L,c=this[N(0x1e8)](b),d={...a};for(const e of c){const f=this[N(0x1b3)](e[N(0x1be)]);a[f]&&(d[e[N(0x1be)]]=a[f],delete d[f]);}return d;}[a143L(0x1e8)](a){const O=a143L;if(a[O(0x1d4)](b=>typeof b===O(0x1d3)))return a[O(0x1cd)](b=>({'name':b}));return a;}[a143L(0x1c1)](a){const P=a143L,b=[this[P(0x1be)]][P(0x1d0)](this[P(0x19b)]['aliases']||[]);return this['parent']&&b[P(0x1e9)](this['parent']),b[P(0x1c6)](a);}[a143L(0x1a6)](){const Q=a143L,a=this[Q(0x1b4)][Q(0x1a8)]();return a!==![]?!![]:![];}async['validateUserIsLoggedIn'](){return!![];}[a143L(0x1d6)](){const R=a143L,a=process[R(0x1e0)]==='win32';if(a){if(!a143g[R(0x1a3)](a143e[R(0x1c2)](homeDir,R(0x1e5),'Local',R(0x1af))))return![];}else{if(!a143g[R(0x1a3)](a143e[R(0x1c2)](homeDir,R(0x1af))))return![];}return!![];}['validateEngines'](a){const S=a143L,b=this['fsi'][S(0x1b7)](),c=b[S(0x1ed)],d=Object['keys'](a);if(d[S(0x1bf)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log['error'](S(0x1b8)+e+S(0x1cf)+a[e]+S(0x1a4));throw UsageError;}}}async[a143L(0x19e)](a,b,c){const T=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[T(0x1d8)](b);if(h['includes'](T(0x1d1))&&b[T(0x1d1)]===undefined&&!g){const m=await Actions['ask']('Please\x20provide\x20a\x20resource\x20name:');b[T(0x1d1)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[T(0x1eb)](b,i);if(i&&i?.[T(0x1bf)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[T(0x1d8)](j)[T(0x1c6)](o)){if(o===T(0x1c0)){const r=this[T(0x1b4)][T(0x1a9)]()[T(0x1ab)](t=>t!==T(0x1dc));r[T(0x1bf)]===0x0&&(Log[T(0x1ef)](T(0x1b6)),process[T(0x1b0)](0x1));const s=await Actions['options']({'type':'list','name':T(0x1c0),'message':T(0x1f0),'choices':r});b[T(0x1c0)]=s['env'];}else{const t=p;if(t){const u=await Actions[T(0x19b)]({'type':T(0x1cc),'name':o,'message':'Please\x20choose\x20a\x20value\x20for\x20'+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[T(0x1dd)](T(0x1bb)+o);if(v[T(0x1c1)](q))b[o]=v;else{Log[T(0x1ef)]('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[T(0x1dd)](T(0x1bb)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[T(0x1c6)](x)){Log[T(0x1ef)](T(0x1ae)+o+':\x20'+x);throw new UsageError();}}}}let k=this[T(0x1e8)](f),l=b;if(k&&Object['keys'](k)?.[T(0x1bf)]>0x0){k=k[T(0x1d0)](i||[]),k['push']({'name':'resourceName','hidden':!![]}),k[T(0x1e9)]({'name':T(0x1d2),'boolFlag':!![]}),k[T(0x1e9)]({'name':T(0x1ba),'hidden':!![]}),k[T(0x1e9)]({'name':T(0x1ee),'hidden':!![]}),k[T(0x1e9)]({'name':'root','hidden':!![]}),k[T(0x1e9)]({'name':T(0x19f),'hidden':!![]}),l=this[T(0x1eb)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[T(0x1c6)](B))){const C=A;if(C){const D=await Actions['options']({'type':'list','name':z,'message':T(0x1d5)+z,'choices':A});l[z]=D[z];}}if(k[T(0x1bf)]>0x0)for(const E of Object['keys'](l)){const F=k[T(0x1c9)](G=>G[T(0x1be)]===E);if(!F){Log['error'](T(0x1a7)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e['includes'](G)){Log[T(0x1ef)](T(0x1c7)+G);const H=await Actions[T(0x1dd)](T(0x1bc)+G);a[a['indexOf'](G)]=H;}}return Object[T(0x1e2)](j,l);}async[a143L(0x1ec)](a){const U=a143L;try{if(!a)return;const b=await this[U(0x1b4)]['getPro']();!b&&(Log[U(0x1ef)](U(0x1a1)),process[U(0x1b0)](0x1));const c=!b?.[U(0x1b1)]['includes'](U(0x1c3))&&!b?.[U(0x1b1)]['includes']('domainLicense');if(this[U(0x1ad)](a)){const d='To\x20use\x20this\x20command,\x20\x22'+a[U(0x1be)]+U(0x1c5);if(a[U(0x19b)]['disableAuthCheck'])return;const f=b?.[U(0x1df)]['includes'](a[U(0x1be)])||b?.[U(0x1df)][U(0x1c6)](a[U(0x1b5)]||'')||this[U(0x19b)][U(0x1de)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.[U(0x1a2)][U(0x1c6)](a[U(0x1be)])||b?.['proGenerators']['includes'](a[U(0x1b5)]||'');if(g&&c)throw'To\x20use\x20this\x20generator,\x20\x22'+a[U(0x1be)]+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}catch(h){Log[U(0x1ef)](h),process[U(0x1b0)](0x1);}}[a143L(0x1ad)](a){const V=a143L;return V(0x19b)in a;}['isGenerator'](a){const W=a143L;return!(W(0x19b)in a);}[a143L(0x19c)](){const X=a143L;return this['options'][X(0x19c)]||this[X(0x19b)]['shortDesc']||X(0x1d7);}[a143L(0x1a0)](){const Y=a143L;return this['options']['shortDesc']||Y(0x1ca);}[a143L(0x1ea)](){const Z=a143L;return this[Z(0x19b)]['usage']||Z(0x1b2);}[a143L(0x1d9)](){const a0=a143L;return this[a0(0x19b)]['examples']||[];}['aliases'](){const a1=a143L;return this[a1(0x19b)][a1(0x1ac)]||'None';}['experimental'](){const a2=a143L;return this[a2(0x19b)][a2(0x1e3)]||![];}}
1
+ function a143c(){const a2=['homedir','parent','keys','getPro','existsSync','shortDesc','Invalid\x20argument:\x20','usage','roles','ask','domainLicense','8776ZvStdn','config','includes','constructor','Invalid\x20option:\x20','concat','5UiediR','validateMeteorInstall','Please\x20provide\x20a\x20value\x20for\x20','match','isCommand','map','getMakaProjectConfig','\x20version\x20','NIE','No\x20usage\x20provided.','Please\x20choose\x20an\x20environment','find','\x20installed\x20to\x20use\x20this\x20command.','exit','root','formatToNamedParam','list','9560950eHDHJW','experimental','filter','91bjkhbA','(((.+)+)+)+$','win32','Invalid\x20value\x20for\x20','No\x20description\x20provided.','You\x20must\x20have\x20','getAppProjectConfigs','error','fsi','env','523476ecWhWs','push','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','options','218521zmqFcn','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','dir','52986ClOKQj','aliases','cwd','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','validateMakaSubscription','Please\x20choose\x20a\x20value\x20for\x20','search','singleLicense','indexOf','proGenerators','toString','isGenerator','string','join','resourceName','.meteor','docker','examples','validateUserIsLoggedIn','remapShortToLong','169892YBomqE','apply','None','assign','description','Please\x20provide\x20a\x20resource\x20name:','isPro','length','_handler','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','927Wnuhld','platform','validateParams','name','355090jGaGEZ'];a143c=function(){return a2;};return a143c();}const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0x203))/0x1+-parseInt(I(0x1cf))/0x2+-parseInt(I(0x1ff))/0x3+-parseInt(I(0x1c1))/0x4*(parseInt(I(0x1e1))/0x5)+parseInt(I(0x206))/0x6*(-parseInt(I(0x1f5))/0x7)+-parseInt(I(0x1db))/0x8*(parseInt(I(0x1cb))/0x9)+parseInt(I(0x1f2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x1c246));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0x210)]()[K(0x20c)](K(0x1f6))[K(0x210)]()[K(0x1de)](a143a)[K(0x20c)](K(0x1f6));});a143a();import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x1d0)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a143d(a,b);}import{UsageError}from'./error.js';export class Tool{['docker'];[a143L(0x1fd)];[a143L(0x202)];[a143L(0x1ce)];[a143L(0x1d1)];[a143L(0x1c9)];constructor(){const M=a143L;this[M(0x216)]=new Docker(),this[M(0x1fd)]=new FSI();}['getShortName'](a){return a['charAt'](0x0);}['remapShortToLong'](a,b){const N=a143L,c=this[N(0x1f0)](b),d={...a};for(const e of c){const f=this['getShortName'](e[N(0x1ce)]);a[f]&&(d[e[N(0x1ce)]]=a[f],delete d[f]);}return d;}[a143L(0x1f0)](a){const O=a143L;if(a['every'](b=>typeof b===O(0x212)))return a[O(0x1e6)](b=>({'name':b}));return a;}[a143L(0x1e4)](a){const P=a143L,b=[this[P(0x1ce)]][P(0x1e0)](this[P(0x202)][P(0x207)]||[]);return this[P(0x1d1)]&&b[P(0x200)](this[P(0x1d1)]),b[P(0x1dd)](a);}['validateMakaProject'](){const Q=a143L,a=this[Q(0x1fd)]['findProjectDirectory']();return a!==![]?!![]:![];}async[a143L(0x1bf)](){return!![];}[a143L(0x1e2)](){const R=a143L,a=process[R(0x1cc)]===R(0x1f7);if(a){if(!a143g[R(0x1d4)](a143e[R(0x213)](homeDir,'AppData','Local',R(0x215))))return![];}else{if(!a143g[R(0x1d4)](a143e[R(0x213)](homeDir,R(0x215))))return![];}return!![];}['validateEngines'](a){const S=a143L,b=this[S(0x1fd)][S(0x1e7)](),c=b['engines'],d=Object[S(0x1d2)](a);if(d[S(0x1c8)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[S(0x1fc)](S(0x1fa)+e+S(0x1e8)+a[e]+S(0x1ed));throw UsageError;}}}async[a143L(0x1cd)](a,b,c){const T=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h[T(0x1dd)]('resourceName')&&b[T(0x214)]===undefined&&!g){const m=await Actions['ask'](T(0x1c6));b[T(0x214)]=m;}let i=[],j=b;if(d){i=this[T(0x1f0)](d),j=this[T(0x1c0)](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[T(0x1d2)](j)[T(0x1dd)](o)){if(o===T(0x1fe)){const r=this[T(0x1fd)][T(0x1fb)]()[T(0x1f4)](t=>t!=='local');r[T(0x1c8)]===0x0&&(Log[T(0x1fc)](T(0x1ca)),process[T(0x1ee)](0x1));const s=await Actions[T(0x202)]({'type':T(0x1f1),'name':T(0x1fe),'message':T(0x1eb),'choices':r});b['env']=s[T(0x1fe)];}else{const t=p;if(t){const u=await Actions['options']({'type':T(0x1f1),'name':o,'message':T(0x20b)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[T(0x1d9)](T(0x1e3)+o);if(v[T(0x1e4)](q))b[o]=v;else{Log['error'](T(0x1f8)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[T(0x1d9)](T(0x1e3)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[T(0x1dd)](x)){Log['error'](T(0x1f8)+o+':\x20'+x);throw new UsageError();}}}}let k=this[T(0x1f0)](f),l=b;if(k&&Object['keys'](k)?.[T(0x1c8)]>0x0){k=k['concat'](i||[]),k[T(0x200)]({'name':T(0x214),'hidden':!![]}),k[T(0x200)]({'name':'help','boolFlag':!![]}),k[T(0x200)]({'name':T(0x205),'hidden':!![]}),k[T(0x200)]({'name':T(0x208),'hidden':!![]}),k[T(0x200)]({'name':T(0x1ef),'hidden':!![]}),k[T(0x200)]({'name':T(0x1dc),'hidden':!![]}),l=this[T(0x1c0)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[T(0x1dd)](B))){const C=A;if(C){const D=await Actions[T(0x202)]({'type':T(0x1f1),'name':z,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+z,'choices':A});l[z]=D[z];}}if(k['length']>0x0)for(const E of Object[T(0x1d2)](l)){const F=k[T(0x1ec)](G=>G[T(0x1ce)]===E);if(!F){Log[T(0x1fc)](T(0x1df)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[T(0x1dd)](G)){Log[T(0x1fc)](T(0x1d6)+G);const H=await Actions['ask'](T(0x201)+G);a[a[T(0x20e)](G)]=H;}}return Object[T(0x1c4)](j,l);}async[a143L(0x20a)](a){const U=a143L;try{if(!a)return;const b=await this[U(0x1fd)][U(0x1d3)]();!b&&(Log['error'](U(0x204)),process['exit'](0x1));const c=!b?.[U(0x1d8)][U(0x1dd)](U(0x20d))&&!b?.['roles'][U(0x1dd)](U(0x1da));if(this[U(0x1e5)](a)){const d='To\x20use\x20this\x20command,\x20\x22'+a[U(0x1ce)]+U(0x209);if(a['options']['disableAuthCheck'])return;const f=b?.['proCommands'][U(0x1dd)](a[U(0x1ce)])||b?.['proCommands'][U(0x1dd)](a[U(0x1d1)]||'')||this[U(0x202)][U(0x1c7)];if(f&&c)throw d;}else{if(this[U(0x211)](a)){const g=b?.[U(0x20f)][U(0x1dd)](a['name'])||b?.[U(0x20f)][U(0x1dd)](a[U(0x1d1)]||'');if(g&&c)throw'To\x20use\x20this\x20generator,\x20\x22'+a[U(0x1ce)]+U(0x209);}}}catch(h){Log[U(0x1fc)](h),process['exit'](0x1);}}['isCommand'](a){const V=a143L;return V(0x202)in a;}['isGenerator'](a){const W=a143L;return!(W(0x202)in a);}[a143L(0x1c5)](){const X=a143L;return this[X(0x202)][X(0x1c5)]||this[X(0x202)]['shortDesc']||X(0x1f9);}[a143L(0x1d5)](){const Y=a143L;return this['options'][Y(0x1d5)]||Y(0x1e9);}[a143L(0x1d7)](){const Z=a143L;return this['options'][Z(0x1d7)]||Z(0x1ea);}[a143L(0x217)](){return this['options']['examples']||[];}['aliases'](){const a0=a143L;return this[a0(0x202)][a0(0x207)]||a0(0x1c3);}['experimental'](){const a1=a143L;return this[a1(0x202)][a1(0x1f3)]||![];}}
@@ -1 +1 @@
1
- const a144h=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=-parseInt(f(0x196))/0x1+-parseInt(f(0x19d))/0x2*(-parseInt(f(0x19c))/0x3)+-parseInt(f(0x192))/0x4+-parseInt(f(0x190))/0x5+-parseInt(f(0x195))/0x6+parseInt(f(0x199))/0x7+-parseInt(f(0x18f))/0x8*(-parseInt(f(0x19a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0xc859b));const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const g=a144d;return a144a[g(0x19b)]()[g(0x198)](g(0x197))['toString']()[g(0x18e)](a144a)[g(0x198)]('(((.+)+)+)+$');});a144a();import a144e from'inquirer';function a144c(){const k=['7759578FpGxTl','136479vOLwge','(((.+)+)+)+$','search','776496aetaUe','135ILjQYJ','toString','625491LaqaSt','4KSAarz','ask','prompt','password','answer','constructor','2276440VqddRK','7423760mxvlKN','input','4244472kGcRoX','confirm','options'];a144c=function(){return k;};return a144c();}function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x18a;let f=c[d];return f;},a144d(a,b);}export class Actions{static async[a144h(0x18a)](a,b){const i=a144h,{answer:c}=await a144e['prompt']({'type':b?i(0x18c):i(0x191),'name':i(0x18d),'message':a});return c;}static async[a144h(0x193)](a,b=![]){const j=a144h,{answer:c}=await a144e[j(0x18b)]({'type':j(0x193),'name':j(0x18d),'message':a,'default':b});return c;}static async[a144h(0x194)](a){const b=await a144e['prompt'](a);return b;}}
1
+ const a144h=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=parseInt(f(0x1ab))/0x1*(parseInt(f(0x1a5))/0x2)+parseInt(f(0x1a9))/0x3+parseInt(f(0x1a7))/0x4*(parseInt(f(0x1b2))/0x5)+-parseInt(f(0x1b6))/0x6+-parseInt(f(0x1a3))/0x7*(parseInt(f(0x1a1))/0x8)+parseInt(f(0x1b4))/0x9*(-parseInt(f(0x1a4))/0xa)+-parseInt(f(0x1ac))/0xb*(-parseInt(f(0x1af))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x9b1ed));function a144c(){const l=['answer','32DnZJlN','prompt','1069355WCMVCQ','10CUjNbf','755788UZPNEs','input','57668MUhsDm','confirm','476751EDQZCX','ask','3tqmvZX','3597lwPgUU','password','toString','28284yCuSVt','search','constructor','265ICVXta','(((.+)+)+)+$','3742641pdZuRv','options','6990942Kbazlc'];a144c=function(){return l;};return a144c();}const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const g=a144d;return a144a[g(0x1ae)]()[g(0x1b0)](g(0x1b3))[g(0x1ae)]()[g(0x1b1)](a144a)[g(0x1b0)](g(0x1b3));});a144a();import a144e from'inquirer';function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x1a1;let f=c[d];return f;},a144d(a,b);}export class Actions{static async[a144h(0x1aa)](a,b){const i=a144h,{answer:c}=await a144e['prompt']({'type':b?i(0x1ad):i(0x1a6),'name':i(0x1b7),'message':a});return c;}static async[a144h(0x1a8)](a,b=![]){const j=a144h,{answer:c}=await a144e[j(0x1a2)]({'type':j(0x1a8),'name':j(0x1b7),'message':a,'default':b});return c;}static async[a144h(0x1b5)](a){const k=a144h,b=await a144e[k(0x1a2)](a);return b;}}
@@ -1 +1 @@
1
- const a145s=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=parseInt(p(0x107))/0x1*(parseInt(p(0x11d))/0x2)+-parseInt(p(0xec))/0x3+-parseInt(p(0x11e))/0x4+parseInt(p(0x1b4))/0x5*(parseInt(p(0xe4))/0x6)+-parseInt(p(0x1b5))/0x7+-parseInt(p(0x16c))/0x8*(parseInt(p(0x14f))/0x9)+-parseInt(p(0x177))/0xa*(-parseInt(p(0x105))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x6b8b4));function a145c(){const a8=['length','fsi','listAllEcrRepositories','description','945659hxVVmb','Error\x20creating\x20hosted\x20zone','87smUAzq','UserData','Final\x20list\x20of\x20ECR\x20repositories:','**\x20Available\x20Security\x20Groups\x20**','CidrBlock','eu-north-1','root-device-type','tags','ec2create','hvm','sgPorts','Successfully\x20linked\x20EC2\x20instance\x20','suggestion','KeyName','privateIp','ap-southeast-2','uri','listAvailableAMIs','forEach','ssh.json','getEcrLoginPassword','Error\x20linking\x20EC2\x20to\x20Route\x2053:','16082lbMnsN','271204PdTsnn','running','imageId','readFileSync','Reservations','Please\x20choose\x20a\x20VPC:\x20[0]\x20','file://','**\x20Available\x20\x20VPCs\x20**','createKeyPairEC2Key','\x20to\x20','us-west-2','key','join','region','ap-south-1','map','Availability','repositoryUri','config','eu-west-1','\x20DESCRIPTION:\x20','toString','eu-central-2','\x20CIDR:\x20','statusCode','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','ec2describeKeys','env','\x20AZONE:\x20','\x27\x20has\x20been\x20registered\x20successfully.','ap-northeast-1','name','route53CreateHostedZone','ImageId','now','us-west-1','chooseVPC','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Instance\x20rebooted!','Error\x20fetching\x20domain\x20pricing:','push','log','createKeyPair','ecrCreateRepository','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','GroupId','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','isFile','18ajRknZ','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','ecrDeleteRepository','Failed\x20to\x20create\x20repository\x20in\x20','eu-south-1','ingressRule','AVAILABLE','constructor','template','Description','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','listAvailableSubnets','Hosted\x20zone\x20created\x20successfully!','authorizationToken','Failed\x20in\x20','maxCount','apply','eu-west-2','listHostedZonesByName','us-east-2','vpcId','error','chooseInstance','\x22\x20created\x20successfully\x20in\x20','Canonical*Ubuntu*20.04*','ec2createSG','Subnets','warn','getSubnetCidr','1125968dPGiXF','\x20INSTANCE_ID:\x20','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','AvailabilityZone','terminated','stringify','me-south-1','CreationDate','nextToken','message','Instances','170GzNDEz','us-east-1','Authorization\x20token\x20is\x20missing','HostedZones','send','race','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','checkDomainAvailability','state','registerDomain','writeFileSync','ebs','exit','UPSERT','userData','ap-southeast-4','\x20:\x20','\x20AMIID:\x20','utf8','httpStatusCode','ask','split','\x20PRIV_IP:\x20','amiId','KeyMaterial','ap-south-2','chooseSecurityGroup','ec2terminateInstance','subnet','\x20Error\x20Rason:\x20','changeResourceRecordSets','Description:','il-central-1','repositories','date','sgIds','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','success','start','Repository\x20\x22','concat','Setting\x20Subnet\x20ID\x20to\x20','SubnetId','af-south-1','pop','eu-west-3','search','config/ssh.json','slice','deleteKeyPair','Name','deleteSecurityGroup','Created:\x20','The\x20domain\x20\x27','from','No\x20subnets\x20found.','status','parse','ID:\x20','ignore','RegistrationPrice','740875caYsRn','5084996ApoBev','$metadata',',\x20URI:\x20','bright',',\x20Name:\x20','image-type','Port\x20','sgId','available','UNSUPPORTED','filter','createFile','find','machine','VpcId','\x20NAME:\x20','Canonical*Ubuntu*18.04*','...','getAppConfigPath','subnet-id','instanceId','\x20opened!','Error\x20generating\x20key\x20pair','authorizationData','linkEC2ToRoute53','trim','sort','Error\x20saving\x20pem\x20file,\x20aborting','6iEdEJS','cidr','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ap-southeast-3','notice','_keys','environment','\x20VPCID:\x20','2378982hIPnLq','ap-northeast-2','getTime','Setting\x20SG\x20ID\x20to:\x20','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','ca-west-1','$response','timeout','Invalid\x20choice','desc','(((.+)+)+)+$','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','ap-northeast-3','Authorization\x20data\x20is\x20empty','Timeout\x20while\x20processing\x20','\x20SG\x20NAME:\x20','reason','ca-central-1','No\x20images\x20found.','repositoryName','Prices'];a145c=function(){return a8;};return a145c();}const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x15f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x133)]()[r(0x1a5)](r(0xf6))[r(0x133)]()[r(0x156)](a145a)[r(0x1a5)](r(0xf6));});a145a();import a145e from'fs';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0xcd;let f=c[d];return f;},a145d(a,b);}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';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a145s(0x102)];constructor(){const t=a145s;this[t(0x102)]=new FSI();}async[a145s(0x191)](a){const u=a145s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log['notice'](u(0x10a)),d[u(0x119)](function(h){const v=u;h['name']===a?Log['notice']('ID:\x20'+h['id']+v(0xfb)+h['name']+'\x20SGID:\x20'+h[v(0xcf)]):Log[v(0x1b8)](v(0x1b1)+h['id']+v(0xfb)+h[v(0x13d)]+'\x20SGID:\x20'+h[v(0xcf)]);});const g=await Actions[u(0x18b)](u(0x137)+b+']\x20')||b[u(0x133)]();d[u(0x119)](function(h){const w=u;h['id']===parseInt(g)&&(f=h[w(0xcf)],Log[w(0x19c)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log[u(0x19c)](u(0xef)+f+'\x0a');if(f==='')throw new Error(u(0x17d));return f;}catch(h){Log[u(0x164)](h);throw h;}}async[a145s(0x118)](){const x=a145s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':'architecture','Values':['x86_64']},{'Name':'virtualization-type','Values':[x(0x110)]},{'Name':x(0x10d),'Values':[x(0x182)]},{'Name':x(0x17f),'Values':[x(0xd0)]},{'Name':x(0xcd),'Values':[x(0xd5)]},{'Name':x(0x104),'Values':[x(0xd8),x(0x167)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b[x(0x17b)](d);if(f&&f[x(0x101)]>0x0){const g=new Date(),h=new Date(g[x(0xee)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[x(0xd2)](j=>j[x(0x173)]&&!j[x(0x158)]?.['includes'](x(0xd1))&&new Date(j['CreationDate'])>h)[x(0x12d)](j=>({'amiId':j[x(0x13f)],'desc':j[x(0x158)],'date':j[x(0x173)]}));if(i[x(0x101)]>0x0){i[x(0xe2)]((n,o)=>new Date(o[x(0x199)])[x(0xee)]()-new Date(n['date'])[x(0xee)]());const j=i[x(0x1a7)](0x0,0x4),k=j[x(0x12d)]((n,o)=>({'id':o,'amiId':n[x(0x18e)],'desc':n[x(0xf5)]}));k[x(0x119)](n=>{const y=x;Log[y(0x1b8)](y(0x1b1)+n['id']+y(0x188)+n[y(0x18e)]+y(0x132)+n[y(0xf5)]);});const l=await Actions['ask'](x(0xe6))||'0',m=k[x(0xd4)](n=>n['id']===parseInt(l));if(m)a=m['amiId'],Log[x(0x19c)]('Setting\x20AMI\x20ID\x20to\x20'+a+x(0x187)+m[x(0xf5)]);else throw Log[x(0x164)](x(0x17d));}else throw Log['error'](x(0x19b));}else throw Log[x(0x164)](x(0xfe));}catch(n){Log[x(0x164)](n);}return a;}async[a145s(0x15a)](){const z=a145s;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[z(0x17b)](d);if(f&&f[z(0x101)]>0x0){const g=f['map']((j,k)=>({'id':k,'cidr':j[z(0x10b)],'az':j[z(0x16f)],'subnetId':j[z(0x1a1)]}));g[z(0x119)](j=>{const A=z;Log[A(0x1b8)](A(0x1b1)+j['id']+'\x20CIDR:\x20'+j[A(0xe5)]+A(0x13a)+j['az']+'\x20SUBNETID:\x20'+j['subnetId']);});const h=await Actions['ask'](z(0x144))||'0',i=g[z(0xd4)](j=>j['id']===parseInt(h));if(i)a=i['subnetId'],Log[z(0x19c)](z(0x1a0)+a);else throw Log['error'](z(0x17d));}else throw Log[z(0x164)](z(0x1ae));}catch(j){Log[z(0x164)](j);}return a;}async[a145s(0x16b)](a){const B=a145s;try{const b=new EC2Client({}),c={'Filters':[{'Name':B(0xdb),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[B(0x17b)](d);return e[B(0x169)]&&e['Subnets'][B(0x101)]>0x0?e[B(0x169)][0x0][B(0x10b)]||'':'';}catch(f){return Log[B(0x164)](f),'';}}async[a145s(0x14a)](a){const C=a145s;try{const b=new ECRClient({'region':a['region']}),c={'repositoryName':a[C(0x13d)]},d=new CreateRepositoryCommand(c),f=await b[C(0x17b)](d);return Log['success'](C(0x19e)+a[C(0x13d)]+C(0x166)+a[C(0x12b)]+'.'),f;}catch(g){Log['error'](C(0x152)+a[C(0x12b)]+':\x20'+g);throw g;}}async[a145s(0x103)](a){const D=a145s,b=[D(0x178),D(0x162),D(0x141),D(0x128),D(0x12c),D(0xf8),D(0xed),'ap-southeast-1',D(0x116),D(0x13c),D(0xfd),'eu-central-1',D(0x131),D(0x160),D(0x1a4),D(0x10c),'sa-east-1',D(0x1a2),'ap-east-1',D(0x190),D(0xe7),D(0x186),D(0xf1),D(0x153),'eu-south-2',D(0x134),D(0x172),'me-central-1',D(0x197)],c=[D(0x178),'us-east-2','us-west-1',D(0x128)],d=a==='all'?b:a?a[D(0x18c)](','):c;let f=[];const g=Log['withSpinner']();for(const h of d){g[D(0x19d)]('Processing\x20'+h[D(0xe1)]()+D(0xd9));const i=new ECRClient({'region':h[D(0xe1)]()});try{let j=undefined;do{const k=await Promise[D(0x17c)]([i[D(0x17b)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(D(0xf3)),0x7d0))]);if(k===D(0xf3)){Log['warn'](D(0xfa)+h[D(0xe1)]()+'.');break;}else k['repositories']&&k[D(0x198)][D(0x101)]>0x0&&(f=f[D(0x19f)](k['repositories']['map'](l=>({'name':l[D(0xff)],'uri':l[D(0x12f)],'region':h[D(0xe1)]()}))));j=k[D(0x174)];}while(j);}catch(l){Log[D(0x164)](D(0x15d)+h[D(0xe1)]()+':\x20'+l[D(0x175)]);}finally{g['stop']();}}return f['length']>0x0?(console['log'](),Log['success'](D(0x109)),f['forEach'](m=>{const E=D;Log['info']('Region:\x20'+m[E(0x12b)]+E(0x1b9)+m[E(0x13d)]+E(0x1b7)+m[E(0x117)]);})):Log[D(0x16a)](D(0xf7)),f;}async[a145s(0x13e)](a){const F=a145s;try{const b={'CallerReference':''+Date[F(0x140)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[F(0x17b)](c),Log[F(0x19c)](F(0x15b));}catch(d){Log[F(0x164)](F(0x106)),console[F(0x164)](d);}}async[a145s(0x180)](a,b,c,d){const G=a145s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[G(0x17b)](f),Log[G(0xe8)](G(0x1ac)+b+G(0x13b));}catch(g){Log['error'](G(0x16e)),Log[G(0x16a)]('From\x20AWS:'),console[G(0x164)]('\x20Status\x20Code:\x20'+g['$response'][G(0x136)]),console['error'](G(0x194)+g[G(0xf2)][G(0xfc)]);}}async[a145s(0x17e)](a){const H=a145s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[H(0x17b)](c),e=d[H(0x12e)]===H(0x155);if(e){const f=a[H(0x18c)]('.')[H(0x1a3)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[H(0x17b)](h);if(i&&i[H(0x100)]&&i['Prices'][0x0]?.[H(0x1b3)]){const j=i[H(0x100)][0x0][H(0x1b3)];return{'available':e,'cost':j};}}catch(k){console[H(0x164)](H(0x146),k);}}return{'available':e};}async[a145s(0xe0)](a,b,c){const I=a145s;try{const d=await route53[I(0x161)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[I(0x164)]('Could\x20not\x20find\x20hosted\x20zone');const e=d?.[I(0x17a)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':I(0x184),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[I(0x195)](f),Log['notice'](I(0x112)+a+I(0x127)+c);}catch(g){console[I(0x164)](I(0x11c),g);}}async[a145s(0x11b)]({awsAccountId:a,region:b}){const J=a145s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c['send'](d);if(!f[J(0xdf)]||f[J(0xdf)][J(0x101)]===0x0)throw new Error(J(0xf9));const g=f['authorizationData'][0x0];if(!g['authorizationToken'])throw new Error(J(0x179));const h=g[J(0x15c)];if(!h)throw new Error(J(0x14b));const i=Buffer[J(0x1ad)](h,'base64')['toString'](),j=i['split'](':')[0x1];if(!j)throw new Error('Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token');return j;}catch(k){Log[J(0x164)](k);throw k;}}async[a145s(0x151)]({repoName:a,region:b}){const K=a145s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c['send'](d);return f;}catch(g){Log[K(0x164)](g);throw g;}}async[a145s(0x10f)](a){const L=a145s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[L(0x120)],'InstanceType':a['type'],'KeyName':a[L(0x129)],'MaxCount':a[L(0x15e)],'MinCount':a['minCount'],'SecurityGroupIds':a[L(0x19a)][L(0x18c)](','),'SubnetId':a[L(0x193)],'TagSpecifications':[{'ResourceType':'instance','Tags':a[L(0x10e)]}]};a['userData']&&(b[L(0x108)]=L(0x124)+a[L(0x185)]);const c=new RunInstancesCommand(b),d=await client[L(0x17b)](c);return d;}catch(f){Log[L(0x164)](f);}}async[a145s(0x192)](a){const M=a145s;try{const b={'InstanceIds':[a[M(0xdc)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log['error'](f),{};}}async[a145s(0x126)]({keyName:a,env:b}){const N=a145s,c=this[N(0x102)][N(0xda)](b),d=a145f['join'](c,N(0xe9),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[N(0x17b)](g),i=h[N(0x18f)];if(i){await this['fsi'][N(0xd3)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':N(0x1b2)});const j=this['fsi']['isFile'](d);if(j)return Log[N(0x19c)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(N(0xe3));}else throw new Error(N(0xde));}catch(k){Log[N(0x164)](k),process[N(0x183)](0x1);}}async[a145s(0x154)]({port:a,groupId:b}){const O=a145s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[O(0xe8)](O(0xce)+a+O(0xdd)),await client[O(0x17b)](d);}async[a145s(0x168)](a){const P=a145s;try{a[P(0x104)]===''&&(a[P(0x104)]=await Actions[P(0x18b)](P(0x196))||'Web\x20App');const b={'Description':a['description'],'GroupName':a[P(0x13d)],'VpcId':a[P(0x163)]},c=new CreateSecurityGroupCommand(b),d=await client[P(0x17b)](c),{GroupId:f}=d;if(!d)throw new Error(P(0x159));f&&a[P(0x111)][P(0x119)](g=>{const Q=P;this[Q(0x154)]({'port':parseInt(g),'groupId':f});}),Log[P(0x19c)](P(0x1ab)+f+'\x20NAME:\x20'+a['name']);}catch(g){return Log[P(0x164)](g),![];}return!![];}async[a145s(0x138)](a){const R=a145s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[R(0x17b)](d);if(!f)throw R(0x159);const {KeyPairs:g}=f;g?(g?.[R(0x119)]((h,i)=>{const S=R;h[S(0x114)]&&b[S(0x147)]({'id':i,'name':h[S(0x114)]});}),b[R(0x101)]>0x0&&b[R(0x119)](h=>{const T=R;h['name']===a?.[T(0x113)]?Log[T(0x19c)](T(0x1b1)+h['id']+T(0xd7)+h[T(0x13d)]):Log[T(0xe8)](T(0x1b1)+h['id']+T(0xd7)+h[T(0x13d)]);})):Log[R(0x164)](R(0x143));}catch(h){Log['error'](h);}return b;}async[a145s(0x1a8)](a){const U=a145s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log['error'](d),process[U(0x183)](0x1);}}async['ec2describeInstances'](){const V=a145s,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[V(0x17b)](c);d[V(0x122)]?.['forEach']((f,g)=>{const W=V;if(f?.[W(0x176)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[W(0x176)][0x0],n=m?.[W(0xd4)](({Key:o})=>o===W(0xea));a[W(0x147)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[W(0x1a9)],'name':l,'env':n?.['Value']});}}),a[V(0x101)]>0x0?a[V(0x119)](f=>{const X=V,g=X(0x1b1)+f['id']+X(0xd7)+f['name']+'\x20ENV:\x20'+f[X(0x139)]+'\x20STATUS:\x20'+f[X(0x1af)]+X(0x16d)+f[X(0xdc)]+'\x20PUB_IP:\x20'+f['publicIp']+X(0x18d)+f[X(0x115)];if(f[X(0x1af)]===X(0x170))Log[X(0x164)](g);else f['status']===X(0x11f)?Log[X(0x19c)](g):Log[X(0xe8)](g);}):Log[V(0x164)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log[V(0x164)](f);}return a;}async['ec2rebootInstance'](a){const Y=a145s;try{const b={'InstanceIds':[a[Y(0xdc)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[Y(0x1b6)][Y(0x18a)]===0xc8&&Log['success'](Y(0x145)),d;}catch(f){Log['error'](f);}}async[a145s(0x142)](){const Z=a145s;let a='';Log[Z(0xe8)](Z(0x125));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[Z(0x119)]((g,h)=>{const a0=Z;g[a0(0xd6)]&&g['CidrBlock']&&e[a0(0x147)]({'id':h,'vpcId':g[a0(0xd6)],'cidr':g[a0(0x10b)]});});e[Z(0x119)](function(g){const a1=Z;console[a1(0x148)](a1(0x1b1)+g['id']+a1(0xeb)+g[a1(0x163)]+a1(0x135)+g['cidr']);});const f=await Actions[Z(0x18b)](Z(0x123))||0x0;e[Z(0x119)](function(g){const a2=Z;g['id']==f&&(a=g['vpcId'],Log[a2(0x19c)](a2(0xf0)+a+'\x0a'));});if(a==='')return Log['error'](Z(0x17d)),'';return a;}async[a145s(0x165)](){const a3=a145s,a=await this['ec2describeInstances']();if(a[a3(0x101)]===0x0)return Log[a3(0x164)]('No\x20instances\x20found'),null;const b=await Actions[a3(0x18b)](a3(0x14d));!b&&(Log[a3(0x164)](a3(0xf4)),process[a3(0x183)](0x0));const c=a[a3(0xd4)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145s(0x149)]({env:a}){const a4=a145s,b=this[a4(0x102)]['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask']('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[a4(0x126)]({'keyName':f,'env':a});try{const h=await Actions['confirm'](a4(0x150),!![]);if(h)try{const i=a145f['join']('config',a,'ssh.json');!this[a4(0x102)][a4(0x14e)](i)&&await this['fsi'][a4(0x157)]({'srcPath':a4(0x1a6),'destPath':i,'context':{'app':f}});const j=a145e[a4(0x121)](a145f[a4(0x12a)]('config',a,a4(0x11a)),a4(0x189)),k=JSON[a4(0x1b0)](j);k['pem']=a145f[a4(0x12a)](a4(0xe9),f+'.pem.txt'),a145e[a4(0x181)](a145f[a4(0x12a)](a4(0x130),a,a4(0x11a)),JSON[a4(0x171)](k,null,0x2));}catch(l){Log['error'](l),Log[a4(0x164)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(m){Log[a4(0x164)](m),process[a4(0x183)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const a5=a145s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a5(0x17b)](d),{SecurityGroups:f}=e;f&&f[a5(0x119)](function(i,j){const a6=a5;i['GroupName']&&i['GroupId']&&b[a6(0x147)]({'id':j,'name':i['GroupName'],'sgId':i[a6(0x14c)]});});let g='',h=0x0;return b['forEach'](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145s(0x1aa)](a){const a7=a145s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a7(0x17b)](c);}catch(d){Log[a7(0x164)](d),process[a7(0x183)](0x1);}}}
1
+ const a145s=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=parseInt(p(0x16b))/0x1+-parseInt(p(0x1fc))/0x2*(-parseInt(p(0x187))/0x3)+-parseInt(p(0x16f))/0x4*(parseInt(p(0x1d6))/0x5)+parseInt(p(0x1de))/0x6+parseInt(p(0x189))/0x7+parseInt(p(0x1d8))/0x8+-parseInt(p(0x125))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x8d12f));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x1c9)]()[r(0x1f4)](r(0x1e6))[r(0x1c9)]()['constructor'](a145a)[r(0x1f4)](r(0x1e6));});a145a();import a145e from'fs';import a145f from'path';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x117;let f=c[d];return f;},a145d(a,b);}import{execSync}from'child_process';function a145c(){const a9=['config','chooseVPC','key','x86_64','parse','registerDomain','listAvailableSubnets','Error\x20saving\x20pem\x20file,\x20aborting','ask','changeResourceRecordSets','type','createKeyPairEC2Key','utf8','privateIp','sgId','ImageId','toString','env','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','message','VpcId','Region:\x20','\x20SGID:\x20','description','\x20NAME:\x20','No\x20images\x20found.','join','ID:\x20','RegistrationPrice','5292650FvtWPy','AVAILABLE','8662176KhxdIl','maxCount','Failed\x20in\x20','ec2createSG','tag:created-by','KeyName','4768104ETdzCn','name','Could\x20not\x20find\x20hosted\x20zone','\x20INSTANCE_ID:\x20','ap-southeast-2','\x20ENV:\x20','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Created:\x20','(((.+)+)+)+$','Canonical*Ubuntu*18.04*','\x20DESCRIPTION:\x20','suggestion','authorizationData','ssh.json','\x20opened!','log','split','cidr','SubnetId','\x20to\x20','Error\x20generating\x20key\x20pair','listAvailableAMIs','search','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','\x20PUB_IP:\x20','status','chooseSecurityGroup','UNSUPPORTED','publicIp','stringify','462736jaQVvV','ecrCreateRepository','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','0.0.0.0/0','virtualization-type','Subnets','tags','HostedZones','ap-southeast-3','Name','trim','eu-central-1','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','The\x20domain\x20\x27','running','eu-south-2','concat','forEach','environment','\x20PRIV_IP:\x20','map','us-west-2','state','\x20AZONE:\x20','length','imageId','subnet','/dev/sdh','desc','chooseInstance','repositories','getAppConfigPath','race','11342529UpPVnf',',\x20Name:\x20','available','ec2describeInstances','me-south-1','Hosted\x20zone\x20created\x20successfully!','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','confirm','Availability','file://','af-south-1','eu-west-3','error','authorizationToken','minCount','deleteKeyPair','\x20:\x20','Final\x20list\x20of\x20ECR\x20repositories:','route53CreateHostedZone','getSecurityGroups','ec2create','nextToken','Instances','ap-southeast-4','amiId','getTime','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','...','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','us-east-2','eu-north-1','find','Processing\x20','root-device-type','config/ssh.json','ec2rebootInstance','checkDomainAvailability','hvm','push','chmod\x20400\x20','subnetId','notice','ap-northeast-1','fsi','deleteSecurityGroup','Description','\x20VPCID:\x20','ebs','maka-cli','Error\x20linking\x20EC2\x20to\x20Route\x2053:','ap-southeast-1','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Canonical*Ubuntu*20.04*','instance','createFile','Setting\x20Subnet\x20ID\x20to\x20','ca-west-1','listHostedZonesByName','all','statusCode','Repository\x20\x22','sa-east-1','Invalid\x20choice','ingressRule','userData','ap-northeast-3','$response','us-west-1','ec2describeKeys','me-central-1','286875YlNUwL','**\x20Available\x20Security\x20Groups\x20**','region','now','4puHYfJ','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','vpcId','sgPorts','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','apply','GroupId','isFile','ignore','createKeyPair','sgIds','machine','listAllEcrRepositories','terminated','ec2terminateInstance','success','date','warn','No\x20instances\x20found','GroupName','stop','\x20SG\x20NAME:\x20','**\x20Available\x20\x20VPCs\x20**','eu-west-2','6uflFOW','Setting\x20SG\x20ID\x20to:\x20','1887081wUhnQu','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','template','ecrDeleteRepository','\x20Error\x20Rason:\x20','No\x20subnets\x20found.','CidrBlock','ap-south-2','ap-east-1','Prices','includes','Pem\x20key\x20saved\x20to\x20','slice','from','Value','repositoryUri','ap-south-1','exit','us-east-1','Error\x20fetching\x20domain\x20pricing:','image-type','_keys','Successfully\x20linked\x20EC2\x20instance\x20','readFileSync','bright','Description:','$metadata','info','sort','CreationDate','pem','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','Key\x20Name:\x20[','Web\x20App','linkEC2ToRoute53','Reservations','reason','timeout','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','\x20CIDR:\x20','\x20Status\x20Code:\x20','ca-central-1','eu-south-1','From\x20AWS:','AvailabilityZone','Error\x20creating\x20hosted\x20zone','instanceId','send'];a145c=function(){return a9;};return a145c();}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';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a145s(0x150)];constructor(){const t=a145s;this[t(0x150)]=new FSI();}async[a145s(0x1f8)](a){const u=a145s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[u(0x138)](a);let f='';if(c===''){Log['notice'](u(0x16c)),d[u(0x20d)](function(h){const v=u;h[v(0x1df)]===a?Log[v(0x14e)](v(0x1d4)+h['id']+v(0x184)+h[v(0x1df)]+v(0x1cf)+h[v(0x1c7)]):Log[v(0x1a1)](v(0x1d4)+h['id']+'\x20SG\x20NAME:\x20'+h['name']+'\x20SGID:\x20'+h[v(0x1c7)]);});const g=await Actions['ask']('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+b+']\x20')||b[u(0x1c9)]();d[u(0x20d)](function(h){const w=u;h['id']===parseInt(g)&&(f=h[w(0x1c7)],Log[w(0x17e)](w(0x188)+f+'\x0a'));});}else f=c,Log[u(0x17e)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a');if(f==='')throw new Error(u(0x18a));return f;}catch(h){Log['error'](h);throw h;}}async[a145s(0x1f3)](){const x=a145s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':'architecture','Values':[x(0x1bc)]},{'Name':x(0x200),'Values':[x(0x14a)]},{'Name':x(0x146),'Values':[x(0x154)]},{'Name':x(0x11a),'Values':[x(0x127)]},{'Name':x(0x19d),'Values':[x(0x17a)]},{'Name':x(0x1d0),'Values':[x(0x1e7),x(0x159)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b[x(0x1b8)](d);if(f&&f[x(0x11c)]>0x0){const g=new Date(),h=new Date(g[x(0x13e)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f['filter'](j=>j['CreationDate']&&!j[x(0x152)]?.[x(0x193)](x(0x1f9))&&new Date(j[x(0x1a6)])>h)[x(0x118)](j=>({'amiId':j[x(0x1c8)],'desc':j[x(0x152)],'date':j[x(0x1a6)]}));if(i[x(0x11c)]>0x0){i[x(0x1a5)]((n,o)=>new Date(o[x(0x17f)])[x(0x13e)]()-new Date(n['date'])[x(0x13e)]());const j=i[x(0x195)](0x0,0x4),k=j[x(0x118)]((n,o)=>({'id':o,'amiId':n[x(0x13d)],'desc':n['desc']}));k[x(0x20d)](n=>{const y=x;Log[y(0x1a1)](y(0x1d4)+n['id']+'\x20AMIID:\x20'+n[y(0x13d)]+y(0x1e8)+n[y(0x120)]);});const l=await Actions[x(0x1c1)](x(0x1fe))||'0',m=k[x(0x144)](n=>n['id']===parseInt(l));if(m)a=m[x(0x13d)],Log[x(0x17e)]('Setting\x20AMI\x20ID\x20to\x20'+a+x(0x135)+m[x(0x120)]);else throw Log[x(0x131)](x(0x18a));}else throw Log[x(0x131)](x(0x1cb));}else throw Log['error'](x(0x1d2));}catch(n){Log['error'](n);}return a;}async[a145s(0x1bf)](){const z=a145s;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[z(0x1b8)](d);if(f&&f['length']>0x0){const g=f[z(0x118)]((j,k)=>({'id':k,'cidr':j[z(0x18f)],'az':j[z(0x1b5)],'subnetId':j[z(0x1f0)]}));g[z(0x20d)](j=>{const A=z;Log[A(0x1a1)](A(0x1d4)+j['id']+A(0x1b0)+j[A(0x1ef)]+A(0x11b)+j['az']+'\x20SUBNETID:\x20'+j['subnetId']);});const h=await Actions[z(0x1c1)](z(0x158))||'0',i=g[z(0x144)](j=>j['id']===parseInt(h));if(i)a=i[z(0x14d)],Log[z(0x17e)](z(0x15c)+a);else throw Log[z(0x131)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log['error'](z(0x18e));}catch(j){Log['error'](j);}return a;}async['getSubnetCidr'](a){const B=a145s;try{const b=new EC2Client({}),c={'Filters':[{'Name':'subnet-id','Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[B(0x1b8)](d);return e[B(0x201)]&&e[B(0x201)]['length']>0x0?e['Subnets'][0x0][B(0x18f)]||'':'';}catch(f){return Log[B(0x131)](f),'';}}async[a145s(0x1fd)](a){const C=a145s;try{const b=new ECRClient({'region':a[C(0x16d)]}),c={'repositoryName':a[C(0x1df)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log[C(0x17e)](C(0x161)+a[C(0x1df)]+'\x22\x20created\x20successfully\x20in\x20'+a['region']+'.'),f;}catch(g){Log[C(0x131)]('Failed\x20to\x20create\x20repository\x20in\x20'+a[C(0x16d)]+':\x20'+g);throw g;}}async[a145s(0x17b)](a){const D=a145s,b=[D(0x19b),'us-east-2',D(0x168),D(0x119),D(0x199),D(0x166),'ap-northeast-2',D(0x157),D(0x1e2),D(0x14f),D(0x1b2),D(0x207),'eu-west-1',D(0x186),D(0x130),D(0x143),D(0x162),D(0x12f),D(0x191),D(0x190),D(0x204),D(0x13c),D(0x15d),D(0x1b3),D(0x20b),'eu-central-2',D(0x129),D(0x16a),'il-central-1'],c=[D(0x19b),D(0x142),D(0x168),D(0x119)],d=a===D(0x15f)?b:a?a[D(0x1ee)](','):c;let f=[];const g=Log['withSpinner']();for(const h of d){g['start'](D(0x145)+h[D(0x206)]()+D(0x140));const i=new ECRClient({'region':h[D(0x206)]()});try{let j=undefined;do{const k=await Promise[D(0x124)]([i[D(0x1b8)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(D(0x1ae)),0x7d0))]);if(k==='timeout'){Log[D(0x180)]('Timeout\x20while\x20processing\x20'+h[D(0x206)]()+'.');break;}else k[D(0x122)]&&k[D(0x122)][D(0x11c)]>0x0&&(f=f[D(0x20c)](k[D(0x122)][D(0x118)](l=>({'name':l['repositoryName'],'uri':l[D(0x198)],'region':h['trim']()}))));j=k[D(0x13a)];}while(j);}catch(l){Log[D(0x131)](D(0x1da)+h['trim']()+':\x20'+l[D(0x1cc)]);}finally{g[D(0x183)]();}}return f[D(0x11c)]>0x0?(console[D(0x1ed)](),Log[D(0x17e)](D(0x136)),f[D(0x20d)](m=>{const E=D;Log[E(0x1a4)](E(0x1ce)+m['region']+E(0x126)+m['name']+',\x20URI:\x20'+m['uri']);})):Log[D(0x180)](D(0x208)),f;}async[a145s(0x137)](a){const F=a145s;try{const b={'CallerReference':''+Date[F(0x16e)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[F(0x1b8)](c),Log[F(0x17e)](F(0x12a));}catch(d){Log['error'](F(0x1b6)),console[F(0x131)](d);}}async[a145s(0x1be)](a,b,c,d){const G=a145s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53['send'](f),Log[G(0x14e)](G(0x209)+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log['error'](G(0x141)),Log[G(0x180)](G(0x1b4)),console[G(0x131)](G(0x1b1)+g[G(0x167)][G(0x160)]),console['error'](G(0x18d)+g[G(0x167)][G(0x1ad)]);}}async[a145s(0x149)](a){const H=a145s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[H(0x12d)]===H(0x1d7);if(e){const f=a[H(0x1ee)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i['Prices']&&i[H(0x192)][0x0]?.[H(0x1d5)]){const j=i['Prices'][0x0][H(0x1d5)];return{'available':e,'cost':j};}}catch(k){console['error'](H(0x19c),k);}}return{'available':e};}async[a145s(0x1ab)](a,b,c){const I=a145s;try{const d=await route53[I(0x15e)]({'DNSName':c});if(!d?.[I(0x203)])throw Log[I(0x131)](I(0x1e0));const e=d?.[I(0x203)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[I(0x1c2)](f),Log['notice'](I(0x19f)+a+I(0x1f1)+c);}catch(g){console[I(0x131)](I(0x156),g);}}async['getEcrLoginPassword']({awsAccountId:a,region:b}){const J=a145s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[J(0x1b8)](d);if(!f[J(0x1ea)]||f['authorizationData'][J(0x11c)]===0x0)throw new Error('Authorization\x20data\x20is\x20empty');const g=f[J(0x1ea)][0x0];if(!g[J(0x132)])throw new Error('Authorization\x20token\x20is\x20missing');const h=g[J(0x132)];if(!h)throw new Error('No\x20credentials\x20returned\x20from\x20AWS\x20ECR');const i=Buffer[J(0x196)](h,'base64')[J(0x1c9)](),j=i['split'](':')[0x1];if(!j)throw new Error(J(0x1af));return j;}catch(k){Log[J(0x131)](k);throw k;}}async[a145s(0x18c)]({repoName:a,region:b}){const K=a145s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[K(0x1b8)](d);return f;}catch(g){Log[K(0x131)](g);throw g;}}async[a145s(0x139)](a){const L=a145s;try{const b={'BlockDeviceMappings':[{'DeviceName':L(0x11f),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[L(0x11d)],'InstanceType':a[L(0x1c3)],'KeyName':a[L(0x1bb)],'MaxCount':a[L(0x1d9)],'MinCount':a[L(0x133)],'SecurityGroupIds':a[L(0x179)][L(0x1ee)](','),'SubnetId':a[L(0x11e)],'TagSpecifications':[{'ResourceType':L(0x15a),'Tags':a[L(0x202)]}]};a[L(0x165)]&&(b['UserData']=L(0x12e)+a[L(0x165)]);const c=new RunInstancesCommand(b),d=await client[L(0x1b8)](c);return d;}catch(f){Log['error'](f);}}async[a145s(0x17d)](a){const M=a145s;try{const b={'InstanceIds':[a[M(0x1b7)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[M(0x131)](f),{};}}async[a145s(0x1c4)]({keyName:a,env:b}){const N=a145s,c=this['fsi'][N(0x123)](b),d=a145f[N(0x1d3)](c,N(0x19e),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[N(0x1b8)](g),i=h['KeyMaterial'];if(i){await this[N(0x150)][N(0x15b)]({'filePath':d,'data':i}),execSync(N(0x14c)+d,{'stdio':N(0x177)});const j=this['fsi'][N(0x176)](d);if(j)return Log[N(0x17e)](N(0x194)+d),{'keyName':a,'filePath':d};else throw new Error(N(0x1c0));}else throw new Error(N(0x1f2));}catch(k){Log[N(0x131)](k),process[N(0x19a)](0x1);}}async[a145s(0x164)]({port:a,groupId:b}){const O=a145s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':O(0x1ff),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[O(0x14e)]('Port\x20'+a+O(0x1ec)),await client['send'](d);}async[a145s(0x1db)](a){const P=a145s;try{a['description']===''&&(a['description']=await Actions[P(0x1c1)](P(0x1a2))||P(0x1aa));const b={'Description':a[P(0x1d0)],'GroupName':a[P(0x1df)],'VpcId':a[P(0x171)]},c=new CreateSecurityGroupCommand(b),d=await client[P(0x1b8)](c),{GroupId:f}=d;if(!d)throw new Error(P(0x1f5));f&&a[P(0x172)][P(0x20d)](g=>{const Q=P;this[Q(0x164)]({'port':parseInt(g),'groupId':f});}),Log[P(0x17e)](P(0x1e5)+f+P(0x1d1)+a[P(0x1df)]);}catch(g){return Log['error'](g),![];}return!![];}async[a145s(0x169)](a){const R=a145s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[R(0x1b8)](d);if(!f)throw R(0x1f5);const {KeyPairs:g}=f;g?(g?.[R(0x20d)]((h,i)=>{const S=R;h[S(0x1dd)]&&b[S(0x14b)]({'id':i,'name':h[S(0x1dd)]});}),b[R(0x11c)]>0x0&&b[R(0x20d)](h=>{const T=R;h[T(0x1df)]===a?.[T(0x1e9)]?Log[T(0x17e)]('ID:\x20'+h['id']+T(0x1d1)+h[T(0x1df)]):Log[T(0x14e)](T(0x1d4)+h['id']+T(0x1d1)+h[T(0x1df)]);})):Log[R(0x131)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log['error'](h);}return b;}async[a145s(0x134)](a){const U=a145s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[U(0x1b8)](c);}catch(d){Log[U(0x131)](d),process['exit'](0x1);}}async[a145s(0x128)](){const V=a145s,a=[];try{const b={'Filters':[{'Name':V(0x1dc),'Values':[V(0x155)]}]},c=new DescribeInstancesCommand(b),d=await client[V(0x1b8)](c);d[V(0x1ac)]?.[V(0x20d)]((f,g)=>{const W=V;if(f?.[W(0x13b)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[W(0x13b)][0x0],n=m?.[W(0x144)](({Key:o})=>o===W(0x20e));a[W(0x14b)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[W(0x205)],'name':l,'env':n?.[W(0x197)]});}}),a[V(0x11c)]>0x0?a[V(0x20d)](f=>{const X=V,g='ID:\x20'+f['id']+'\x20NAME:\x20'+f[X(0x1df)]+X(0x1e3)+f[X(0x1ca)]+'\x20STATUS:\x20'+f[X(0x1f7)]+X(0x1e1)+f[X(0x1b7)]+X(0x1f6)+f[X(0x1fa)]+X(0x117)+f[X(0x1c6)];if(f['status']===X(0x17c))Log[X(0x131)](g);else f['status']===X(0x20a)?Log['success'](g):Log[X(0x14e)](g);}):Log[V(0x131)](V(0x173));}catch(f){Log[V(0x131)](f);}return a;}async[a145s(0x148)](a){const Y=a145s;try{const b={'InstanceIds':[a[Y(0x1b7)]]},c=new RebootInstancesCommand(b),d=await client[Y(0x1b8)](c);return d[Y(0x1a3)]['httpStatusCode']===0xc8&&Log['success']('Instance\x20rebooted!'),d;}catch(f){Log[Y(0x131)](f);}}async[a145s(0x1ba)](){const Z=a145s;let a='';Log[Z(0x14e)](Z(0x185));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[Z(0x20d)]((g,h)=>{const a0=Z;g[a0(0x1cd)]&&g[a0(0x18f)]&&e[a0(0x14b)]({'id':h,'vpcId':g[a0(0x1cd)],'cidr':g[a0(0x18f)]});});e[Z(0x20d)](function(g){const a1=Z;console[a1(0x1ed)](a1(0x1d4)+g['id']+a1(0x153)+g['vpcId']+a1(0x1b0)+g['cidr']);});const f=await Actions['ask'](Z(0x1e4))||0x0;e[Z(0x20d)](function(g){const a2=Z;g['id']==f&&(a=g[a2(0x171)],Log[a2(0x17e)](a2(0x170)+a+'\x0a'));});if(a==='')return Log[Z(0x131)](Z(0x18a)),'';return a;}async[a145s(0x121)](){const a3=a145s,a=await this[a3(0x128)]();if(a['length']===0x0)return Log[a3(0x131)](a3(0x181)),null;const b=await Actions[a3(0x1c1)](a3(0x12b));!b&&(Log[a3(0x131)](a3(0x163)),process[a3(0x19a)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145s(0x178)]({env:a}){const a4=a145s,b=this[a4(0x150)]['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[a4(0x1c1)](a4(0x1a9)+d+']\x20')||d,{filePath:g}=await this[a4(0x1c4)]({'keyName':f,'env':a});try{const h=await Actions[a4(0x12c)](a4(0x1a8),!![]);if(h)try{const i=a145f['join'](a4(0x1b9),a,'ssh.json');!this['fsi'][a4(0x176)](i)&&await this[a4(0x150)][a4(0x18b)]({'srcPath':a4(0x147),'destPath':i,'context':{'app':f}});const j=a145e[a4(0x1a0)](a145f['join'](a4(0x1b9),a,a4(0x1eb)),a4(0x1c5)),k=JSON[a4(0x1bd)](j);k[a4(0x1a7)]=a145f[a4(0x1d3)](a4(0x19e),f+'.pem.txt'),a145e['writeFileSync'](a145f[a4(0x1d3)](a4(0x1b9),a,a4(0x1eb)),JSON[a4(0x1fb)](k,null,0x2));}catch(l){Log[a4(0x131)](l),Log[a4(0x131)](a4(0x13f));}}catch(m){Log['error'](m),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async[a145s(0x138)](a){const a5=a145s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a5(0x1b8)](d),{SecurityGroups:f}=e;f&&f[a5(0x20d)](function(i,j){const a6=a5;i[a6(0x182)]&&i[a6(0x175)]&&b[a6(0x14b)]({'id':j,'name':i['GroupName'],'sgId':i[a6(0x175)]});});let g='',h=0x0;return b[a5(0x20d)](function(i){const a7=a5;i['name']===a&&(g=i[a7(0x1c7)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145s(0x151)](a){const a8=a145s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a8(0x1b8)](c);}catch(d){Log[a8(0x131)](d),process[a8(0x19a)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0x12b))/0x1+-parseInt(k(0x128))/0x2*(parseInt(k(0x12e))/0x3)+-parseInt(k(0x12a))/0x4+parseInt(k(0x12c))/0x5+-parseInt(k(0x127))/0x6+parseInt(k(0x129))/0x7+-parseInt(k(0x125))/0x8*(-parseInt(k(0x130))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0xd7479));export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a146d;if(h){var j=h[l(0x12d)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0x12f)]()['search'](m(0x126))[m(0x12f)]()['constructor'](e)['search'](m(0x126));});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 a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0x125;var f=c[d];return f;},a146d(a,b);}function a146c(){var n=['9KiMesd','32544136DtrrLW','(((.+)+)+)+$','6242358FVukLZ','2720726weYQYx','6260723FvkEif','1385492RUwdhl','1577596ZMPhQw','1220520rynGYj','apply','3KkbdXB','toString'];a146c=function(){return n;};return a146c();}
1
+ function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0x1a2;var f=c[d];return f;},a146d(a,b);}(function(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0x1ad))/0x1+-parseInt(k(0x1ab))/0x2*(parseInt(k(0x1a3))/0x3)+parseInt(k(0x1aa))/0x4+-parseInt(k(0x1ae))/0x5+-parseInt(k(0x1a8))/0x6+parseInt(k(0x1a2))/0x7*(parseInt(k(0x1a6))/0x8)+-parseInt(k(0x1a5))/0x9*(-parseInt(k(0x1ac))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x65194));function a146c(){var m=['search','2415540XyDiDE','33518dmLfrk','6540940jASyal','792296sDTAMB','2910840UkiJxu','1211LEeVya','84EWfHEV','toString','27EEOMZz','12816NYxgWu','(((.+)+)+)+$','3512982HFOFSp'];a146c=function(){return m;};return a146c();}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){if(h){var j=h['apply'](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var l=a146d;return e[l(0x1a4)]()[l(0x1a9)](l(0x1a7))[l(0x1a4)]()['constructor'](e)[l(0x1a9)](l(0x1a7));});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(a,b){const j=a147d,c=a();while(!![]){try{const d=-parseInt(j(0x16d))/0x1*(parseInt(j(0x185))/0x2)+-parseInt(j(0x170))/0x3*(parseInt(j(0x182))/0x4)+-parseInt(j(0x171))/0x5*(-parseInt(j(0x17d))/0x6)+-parseInt(j(0x16e))/0x7+parseInt(j(0x17f))/0x8*(-parseInt(j(0x184))/0x9)+parseInt(j(0x176))/0xa*(-parseInt(j(0x17b))/0xb)+parseInt(j(0x175))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0xeeb20));function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0x16b;let f=c[d];return f;},a147d(a,b);}function a147c(){const q=['854528yCorTp','.dkr.ecr.','31626ybvVgF','4JMJzza','tag','inherit','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','396467FxYBgv','11907490doZTvr','search','21TiqliP','2125NYOtNd','push','join','toString','65808612ZzirLj','6433490NIrkjJ','docker\x20','(((.+)+)+)+$','awsLogin','.amazonaws.com/','22EXygge','.amazonaws.com','16374WPnLlK','apply','888xGUybj','error','echo\x20'];a147c=function(){return q;};return a147c();}const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a['toString']()[l(0x16f)](l(0x178))['toString']()['constructor'](a147a)[l(0x16f)]('(((.+)+)+)+$');});a147a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a147m(0x186)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=[n(0x186),a,b+n(0x183)+c+n(0x17a)+d],g=n(0x177)+f[n(0x173)]('\x20'),h=execSync(g,{'stdio':n(0x16b)})[n(0x174)]();return h;}catch(i){return Log[n(0x180)](i),'';}}static[a147m(0x179)]({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d=o(0x181)+c+o(0x16c)+a+o(0x183)+b+o(0x17c);return execSync(d,{'stdio':'inherit'}),d;}catch(f){return Log['error'](f),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=[p(0x172),a+p(0x183)+b+p(0x17a)+c],f=p(0x177)+d['join']('\x20'),g=execSync(f,{'stdio':p(0x16b)})[p(0x174)]();return g;}catch(h){return Log[p(0x180)](h),'';}}}
1
+ const a147m=a147d;function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0xcd;let f=c[d];return f;},a147d(a,b);}(function(a,b){const j=a147d,c=a();while(!![]){try{const d=parseInt(j(0xe5))/0x1+-parseInt(j(0xe2))/0x2+-parseInt(j(0xde))/0x3*(-parseInt(j(0xd7))/0x4)+parseInt(j(0xd3))/0x5*(-parseInt(j(0xda))/0x6)+parseInt(j(0xdb))/0x7*(-parseInt(j(0xe4))/0x8)+-parseInt(j(0xcf))/0x9+parseInt(j(0xcd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x8df17));function a147c(){const q=['toString','883364AILwlH','.amazonaws.com/','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','2396886HCpwGd','7HQwTkH','docker\x20','error','3xnsCeD','awsLogin','tag','.dkr.ecr.','561644Ayvlzs','inherit','3145416QvzXlQ','474783gorzsf','19376700CuEjUx','join','8805735pQUlmh','pushImage','search','(((.+)+)+)+$','5QAiaCb','push','apply'];a147c=function(){return q;};return a147c();}const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a[l(0xd6)]()[l(0xd1)](l(0xd2))[l(0xd6)]()['constructor'](a147a)['search']('(((.+)+)+)+$');});a147a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a147m(0xe0)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=[n(0xe0),a,b+n(0xe1)+c+n(0xd8)+d],g='docker\x20'+f[n(0xce)]('\x20'),h=execSync(g,{'stdio':n(0xe3)})[n(0xd6)]();return h;}catch(i){return Log[n(0xdd)](i),'';}}static[a147m(0xdf)]({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d='echo\x20'+c+o(0xd9)+a+o(0xe1)+b+'.amazonaws.com';return execSync(d,{'stdio':o(0xe3)}),d;}catch(f){return Log['error'](f),'';}}static[a147m(0xd0)]({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=[p(0xd4),a+p(0xe1)+b+p(0xd8)+c],f=p(0xdc)+d['join']('\x20'),g=execSync(f,{'stdio':p(0xe3)})[p(0xd6)]();return g;}catch(h){return Log[p(0xdd)](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0x182))/0x1+parseInt(f(0x17a))/0x2+parseInt(f(0x180))/0x3+parseInt(f(0x17c))/0x4+parseInt(f(0x179))/0x5*(parseInt(f(0x17e))/0x6)+-parseInt(f(0x17f))/0x7+-parseInt(f(0x17d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0x70b6d));function a148c(){var h=['constructor','507320yVakcn','3713472qsaLJB','4661262pMlPkN','4191418enVvwH','1316781kAAtRA','toString','336953pfTUPW','(((.+)+)+)+$','5vUjipl','1037908WOvkPn'];a148c=function(){return h;};return a148c();}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['toString']()['search'](g(0x178))[g(0x181)]()[g(0x17b)](a148a)['search'](g(0x178));});a148a();function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x178;var f=c[d];return f;},a148d(a,b);}export{};
1
+ function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x110;var f=c[d];return f;},a148d(a,b);}(function(a,b){var f=a148d,c=a();while(!![]){try{var d=parseInt(f(0x117))/0x1*(-parseInt(f(0x114))/0x2)+parseInt(f(0x112))/0x3*(-parseInt(f(0x113))/0x4)+parseInt(f(0x118))/0x5*(-parseInt(f(0x11a))/0x6)+parseInt(f(0x111))/0x7+-parseInt(f(0x11b))/0x8+parseInt(f(0x11c))/0x9*(-parseInt(f(0x11e))/0xa)+parseInt(f(0x11d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0xe7d62));var a148b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a148d;if(c){var e=c[g(0x115)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a148a=a148b(this,function(){var h=a148d;return a148a[h(0x116)]()[h(0x119)](h(0x110))[h(0x116)]()['constructor'](a148a)[h(0x119)](h(0x110));});function a148c(){var i=['4156MvrjVz','apply','toString','827uHHgBu','5NaaskD','search','1623162MaUOQK','4265848YVZalO','3231EhUrPz','44544225DpOTge','25760aGHfOE','(((.+)+)+)+$','5412449vuAXLt','319524LAuwzb','16NzZkyg'];a148c=function(){return i;};return a148c();}a148a();export{};