@maka/maka-cli 5.0.10 → 5.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/aws/_index.js +1 -1
  109. package/bundle/obf/src/generators/aws/aws.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  112. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  113. package/bundle/obf/src/generators/collection.js +1 -1
  114. package/bundle/obf/src/generators/component.js +1 -1
  115. package/bundle/obf/src/generators/config.js +1 -1
  116. package/bundle/obf/src/generators/dbc.js +1 -1
  117. package/bundle/obf/src/generators/dockerfile.js +1 -1
  118. package/bundle/obf/src/generators/hook.js +1 -1
  119. package/bundle/obf/src/generators/kits/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  126. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  127. package/bundle/obf/src/generators/kits/kit.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  131. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  132. package/bundle/obf/src/generators/layout.js +1 -1
  133. package/bundle/obf/src/generators/maka.gen.js +1 -1
  134. package/bundle/obf/src/generators/methods.js +1 -1
  135. package/bundle/obf/src/generators/package.js +1 -1
  136. package/bundle/obf/src/generators/page.js +1 -1
  137. package/bundle/obf/src/generators/publish.js +1 -1
  138. package/bundle/obf/src/generators/route.js +1 -1
  139. package/bundle/obf/src/generators/service.js +1 -1
  140. package/bundle/obf/src/generators/services/_index.js +1 -1
  141. package/bundle/obf/src/generators/services/openssl.js +1 -1
  142. package/bundle/obf/src/generators/services/translation.js +1 -1
  143. package/bundle/obf/src/maka.js +1 -1
  144. package/bundle/obf/src/tool.js +1 -1
  145. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  146. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  147. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  148. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  149. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  150. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  151. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/https/https.class.js +1 -1
  153. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  154. package/bundle/obf/src/tools/log/log.class.js +1 -1
  155. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  156. package/bundle/obf/src/tools/options/options.class.js +1 -1
  157. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  158. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  159. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  160. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  161. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  162. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  163. package/package.json +1 -1
@@ -1 +1 @@
1
- const a135u=a135d;function a135c(){const x=['features','resourceName','split','injectTemplateModule','.html','(((.+)+)+)+$','hasOwnProperty','string','.css','hook/hook.js','slice','5650002aALsLQ','fileName','<Route\x20path=\x22','1267128ypyPDh','<Route\x20element={<PrivateRoute\x20/>}>','className','toLowerCase','store','lib','.js','template/template.css','react','</Route>','getMakaProjectConfig','pathFromProject','private','injectIntoFile','\x27;\x0a','search','withValue','<Route\x20path=\x22*\x22','vanilla','3ovjGZx','injectAtBeginningOfFile','indexOf','dir','setTemplate','root','layout','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','includes','ramda','findAppDirectory','test','css','toString','true','trim','2246682YYgChk','join','fsi','import\x20\x27./','endsWith','none','Generate\x20a\x20page.','<Route\x20index','relative','engines','theme','apply','withHooks','/>}/>\x0a','withTranslations','test/test.js','page','html','replaceAll','url','checkNpmPackage','Updating\x20npm\x20packages\x20...','client','component','1508406KYsKwO','ssr','562048yBpoDG','48321SSuAaH','graphql','imports','5SRuYYb','template','template/template.html','replace','\x22\x20element={<Component.','5170907KqBNmW','substring'];a135c=function(){return x;};return a135c();}(function(a,b){const r=a135d,c=a();while(!![]){try{const d=-parseInt(r(0x1d3))/0x1+-parseInt(r(0x1d0))/0x2+parseInt(r(0x1fe))/0x3*(parseInt(r(0x1eb))/0x4)+parseInt(r(0x1d6))/0x5*(-parseInt(r(0x20e))/0x6)+parseInt(r(0x1db))/0x7+parseInt(r(0x1d2))/0x8+parseInt(r(0x1e8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x8cc22));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a135d;if(c){const e=c[s(0x219)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a[t(0x20b)]()[t(0x1fa)](t(0x1e2))['toString']()['constructor'](a135a)[t(0x1fa)](t(0x1e2));});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'];function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a135d(a,b);}Generator['create']({'name':a135u(0x1c8),'aliases':aliases,'usage':a135u(0x205),'shortDesc':a135u(0x214),'validOpts':[{'name':a135u(0x1f7),'boolFlag':!![]},{'name':'url'}],'examples':['maka\x20g:page\x20todos/todos-item']},async function(a,b){const v=a135u,c='/imports/ui/pages',d=this[v(0x210)][v(0x208)](),e=b['resourceName'][v(0x206)](':')?b[v(0x1de)][v(0x1df)](':')[0x0][v(0x20d)]():b[v(0x1de)][v(0x20d)](),f=b[v(0x201)][v(0x1ca)]('/','_')+'_'+e[v(0x1ca)]('/','_'),g=this['fsi']['pathFromApp']({'pathParts':[c,b[v(0x201)],paramCase(f),paramCase(f)]}),h=this[v(0x210)][v(0x1f5)]();let i='';return await this[v(0x210)][v(0x1fb)](h,async()=>{const w=v;typeof h['template'][w(0x1c9)]===w(0x1e4)&&(h[w(0x1d7)][w(0x1c9)]=h['template'][w(0x1c9)]===w(0x20c)?!![]:![],this[w(0x210)][w(0x202)](w(0x1c9),h[w(0x1d7)][w(0x1c9)]));typeof h[w(0x1d7)][w(0x209)]===w(0x1e4)&&(h['template'][w(0x209)]=h['template'][w(0x209)]===w(0x20c)?!![]:![],this[w(0x210)][w(0x202)]('test',h['template']['test']));typeof h[w(0x1d7)][w(0x20a)]==='string'&&(h['template'][w(0x20a)]=h['template']['css']===w(0x20c)?!![]:![],this[w(0x210)][w(0x202)](w(0x20a),h['template']['css']));typeof h['template']['js']==='string'&&(h[w(0x1d7)]['js']=h[w(0x1d7)]['js']===w(0x20c)?!![]:![],this[w(0x210)]['setTemplate']('js',h[w(0x1d7)]['js']));!h[w(0x1dd)]&&(h[w(0x1dd)]={});!b[w(0x203)]&&!this[w(0x210)][w(0x1cc)]('ramda')&&(Log['warn'](w(0x1cd)),this[w(0x210)]['installNpmPackage'](w(0x207),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e[w(0x216)](this['fsi'][w(0x1f6)]({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0x217)][w(0x1d4)],'features':h[w(0x1dd)],'client':h[w(0x217)][w(0x1ce)],'api':h[w(0x217)]['api'],'ssr':h[w(0x217)][w(0x1d1)],'isStore':b[w(0x1e3)](w(0x1ef)),'isComponent':b['hasOwnProperty'](w(0x1cf)),'isLayout':b['hasOwnProperty'](w(0x204)),'withTranslations':h[w(0x1dd)][w(0x1c6)],'test':h[w(0x217)]['test'],'theme':h[w(0x217)][w(0x218)]};h[w(0x1d7)]['html']&&await this[w(0x210)][w(0x1d7)]({'srcPath':w(0x1d8),'destPath':g+w(0x1e1),'context':j,'config':h});h[w(0x1dd)]?.[w(0x21a)]?await this[w(0x210)][w(0x1d7)]({'srcPath':w(0x1e6),'destPath':g+w(0x1f1),'framework':w(0x1f3),'context':j,'config':h}):await this[w(0x210)][w(0x1d7)]({'srcPath':'component/component.js','destPath':g+w(0x1f1),'framework':w(0x1f3),'context':j,'config':h});h[w(0x217)][w(0x209)]!==w(0x213)&&await this[w(0x210)]['template']({'srcPath':w(0x1c7),'destPath':g+'.app-tests.js','framework':w(0x1f3),'context':j,'config':h});h[w(0x1d7)]['css']&&await this[w(0x210)][w(0x1d7)]({'srcPath':w(0x1f2),'destPath':g+w(0x1e5),'context':Object['assign']({},j,{'className':paramCase(b['resourceName'])}),'config':h});h[w(0x217)]['client']!=='react'&&h[w(0x217)][w(0x1ce)]!==w(0x1fd)?(h['template'][w(0x20a)]&&await this[w(0x210)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[w(0x217)]['js'],'content':w(0x211)+j[w(0x1e9)]+'.'+h[w(0x217)][w(0x1c9)]+w(0x1f9)+w(0x211)+j[w(0x1e9)]+'.'+h[w(0x217)][w(0x20a)]+'\x27;'}),!h[w(0x1d7)]['css']&&await this[w(0x210)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[w(0x217)]['js'],'content':w(0x211)+j[w(0x1e9)]+'.'+h[w(0x217)][w(0x1c9)]+'\x27;'})):h['template'][w(0x20a)]&&await this[w(0x210)][w(0x1ff)]({'filePath':g+'.'+h[w(0x217)]['js'],'content':w(0x211)+j['fileName']+'.'+h[w(0x217)][w(0x20a)]+'\x27;'});const k=b[w(0x201)]?'/'+b[w(0x201)]+'/':'/';i=''+c+k+j[w(0x1e9)]+'/'+j[w(0x1e9)],await this[w(0x210)][w(0x1e0)](j[w(0x1ed)],h,i);if(!b[w(0x203)]){const l=b['private']??![];if(!f){Log['error']('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}let m=b[w(0x1cb)]?b[w(0x1cb)]:'/'+b[w(0x201)][w(0x20d)]()+'/'+b[w(0x1de)][w(0x20d)]()[w(0x1d9)](/\\/g,'/')[w(0x1d9)](/\/+$/,'')[w(0x1ee)]();const n=b['resourceName'][w(0x200)](':');n!==-0x1&&(m+='/'+b['resourceName'][w(0x1dc)](0x0,n)[w(0x20d)]());m[w(0x212)]('/')&&(m=m[w(0x1e7)](0x0,-0x1));m=m[w(0x1d9)](/\/\//g,'/');const o=h[w(0x217)]['js'],p=h[w(0x217)][w(0x1d1)]===w(0x20c)?w(0x1f0):w(0x1ce),q=a135e[w(0x20f)](d,w(0x1d5),'startup',p,'routes.'+o);l?await this[w(0x210)]['injectIntoFile']({'filePath':q,'content':w(0x1ea)+m+'\x22\x20element={<Component.'+pascalCase(f)+w(0x1c5),'begin':[w(0x1ec)],'end':[w(0x1f4)]}):await this['fsi'][w(0x1f8)]({'filePath':q,'content':'<Route\x20path=\x22'+m+w(0x1da)+pascalCase(f)+w(0x1c5),'begin':[w(0x215)],'end':[w(0x1fc)]});}}),i+'.'+h[v(0x217)]['js'];});
1
+ const a135u=a135d;(function(a,b){const r=a135d,c=a();while(!![]){try{const d=-parseInt(r(0xd5))/0x1+parseInt(r(0xbd))/0x2+-parseInt(r(0xfa))/0x3*(-parseInt(r(0xdd))/0x4)+-parseInt(r(0xb0))/0x5*(-parseInt(r(0xcf))/0x6)+parseInt(r(0xe2))/0x7+-parseInt(r(0xf9))/0x8*(parseInt(r(0xfd))/0x9)+parseInt(r(0xbe))/0xa*(-parseInt(r(0xc2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x30ce2));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a135d;if(c){const e=c[s(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a[t(0xdc)]()[t(0xb5)](t(0xae))[t(0xdc)]()[t(0xb4)](a135a)['search'](t(0xae));});function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0xac;let f=c[d];return f;},a135d(a,b);}a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a135c(){const x=['2464882cpTElJ','/imports/ui/pages','includes','findAppDirectory','string','template/template.css','split','installNpmPackage','withValue','withTranslations','test','hook/hook.js','apply','Updating\x20npm\x20packages\x20...','trim','\x22\x20element={<Component.','pathFromProject','component','/>}/>\x0a','create','startup','withHooks','</Route>','4504RXNcxI','549828eKyrHw','lib','injectAtBeginningOfFile','3897PNvZqx','routes.','api','url','<Route\x20path=\x22','setTemplate','.js','ramda','features','(((.+)+)+)+$','<Route\x20element={<PrivateRoute\x20/>}>','1110TGYyNA','ssr','client','html','constructor','search','import\x20\x27./','maka\x20g:page\x20todos/todos-item','resourceName','dir','store','assign','.css','446760jASMCH','2892970kIfUWK','template','replaceAll','fsi','11jRYBRC','layout','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','toLowerCase','<Route\x20path=\x22*\x22','checkNpmPackage','injectIntoFile','react','Generate\x20a\x20page.','slice','error','getMakaProjectConfig','substring','3534nzOidl','fileName','private','indexOf','hasOwnProperty','replace','156558MIehfB','\x27;\x0a','none','pathFromApp','true','.app-tests.js','css','toString','4XuMHNm','theme','<Route\x20index','engines','vanilla'];a135c=function(){return x;};return a135c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a135u(0xf5)]({'name':'page','aliases':aliases,'usage':a135u(0xc4),'shortDesc':a135u(0xca),'validOpts':[{'name':a135u(0xd1),'boolFlag':!![]},{'name':a135u(0x100)}],'examples':[a135u(0xb7)]},async function(a,b){const v=a135u,c=v(0xe3),d=this['fsi'][v(0xe5)](),e=b[v(0xb8)][v(0xe4)](':')?b[v(0xb8)][v(0xe8)](':')[0x0][v(0xf0)]():b['resourceName']['trim'](),f=b[v(0xb9)]['replaceAll']('/','_')+'_'+e[v(0xc0)]('/','_'),g=this[v(0xc1)][v(0xd8)]({'pathParts':[c,b[v(0xb9)],paramCase(f),paramCase(f)]}),h=this['fsi'][v(0xcd)]();let i='';return await this[v(0xc1)][v(0xea)](h,async()=>{const w=v;typeof h[w(0xbf)][w(0xb3)]===w(0xe6)&&(h[w(0xbf)][w(0xb3)]=h['template'][w(0xb3)]===w(0xd9)?!![]:![],this['fsi'][w(0x102)](w(0xb3),h[w(0xbf)][w(0xb3)]));typeof h[w(0xbf)]['test']===w(0xe6)&&(h[w(0xbf)][w(0xec)]=h[w(0xbf)][w(0xec)]==='true'?!![]:![],this['fsi'][w(0x102)](w(0xec),h[w(0xbf)][w(0xec)]));typeof h[w(0xbf)][w(0xdb)]==='string'&&(h[w(0xbf)][w(0xdb)]=h[w(0xbf)][w(0xdb)]===w(0xd9)?!![]:![],this['fsi'][w(0x102)](w(0xdb),h[w(0xbf)]['css']));typeof h[w(0xbf)]['js']==='string'&&(h[w(0xbf)]['js']=h[w(0xbf)]['js']===w(0xd9)?!![]:![],this[w(0xc1)][w(0x102)]('js',h[w(0xbf)]['js']));!h['features']&&(h[w(0xad)]={});!b['root']&&!this[w(0xc1)][w(0xc7)]('ramda')&&(Log['warn'](w(0xef)),this[w(0xc1)][w(0xe9)](w(0xac),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e['relative'](this['fsi'][w(0xf2)]({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0xe0)]['graphql'],'features':h['features'],'client':h[w(0xe0)][w(0xb2)],'api':h[w(0xe0)][w(0xff)],'ssr':h[w(0xe0)][w(0xb1)],'isStore':b[w(0xd3)](w(0xba)),'isComponent':b[w(0xd3)](w(0xf3)),'isLayout':b[w(0xd3)](w(0xc3)),'withTranslations':h['features'][w(0xeb)],'test':h[w(0xe0)][w(0xec)],'theme':h['engines'][w(0xde)]};h[w(0xbf)][w(0xb3)]&&await this[w(0xc1)][w(0xbf)]({'srcPath':'template/template.html','destPath':g+'.html','context':j,'config':h});h[w(0xad)]?.[w(0xf7)]?await this[w(0xc1)][w(0xbf)]({'srcPath':w(0xed),'destPath':g+w(0x103),'framework':w(0xc9),'context':j,'config':h}):await this['fsi'][w(0xbf)]({'srcPath':'component/component.js','destPath':g+'.js','framework':w(0xc9),'context':j,'config':h});h['engines'][w(0xec)]!==w(0xd7)&&await this[w(0xc1)][w(0xbf)]({'srcPath':'test/test.js','destPath':g+w(0xda),'framework':w(0xc9),'context':j,'config':h});h[w(0xbf)][w(0xdb)]&&await this['fsi']['template']({'srcPath':w(0xe7),'destPath':g+w(0xbc),'context':Object[w(0xbb)]({},j,{'className':paramCase(b[w(0xb8)])}),'config':h});h[w(0xe0)][w(0xb2)]!==w(0xc9)&&h[w(0xe0)][w(0xb2)]!==w(0xe1)?(h[w(0xbf)][w(0xdb)]&&await this[w(0xc1)][w(0xfc)]({'filePath':g+'.'+h['engines']['js'],'content':w(0xb6)+j[w(0xd0)]+'.'+h[w(0xe0)][w(0xb3)]+w(0xd6)+w(0xb6)+j[w(0xd0)]+'.'+h[w(0xe0)]['css']+'\x27;'}),!h[w(0xbf)][w(0xdb)]&&await this['fsi'][w(0xfc)]({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+j[w(0xd0)]+'.'+h['engines']['html']+'\x27;'})):h[w(0xbf)][w(0xdb)]&&await this[w(0xc1)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[w(0xe0)]['js'],'content':w(0xb6)+j[w(0xd0)]+'.'+h['engines'][w(0xdb)]+'\x27;'});const k=b['dir']?'/'+b[w(0xb9)]+'/':'/';i=''+c+k+j[w(0xd0)]+'/'+j[w(0xd0)],await this[w(0xc1)]['injectTemplateModule'](j['className'],h,i);if(!b['root']){const l=b['private']??![];if(!f){Log[w(0xcc)]('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}let m=b[w(0x100)]?b['url']:'/'+b[w(0xb9)][w(0xf0)]()+'/'+b[w(0xb8)]['trim']()[w(0xd4)](/\\/g,'/')['replace'](/\/+$/,'')[w(0xc5)]();const n=b['resourceName'][w(0xd2)](':');n!==-0x1&&(m+='/'+b[w(0xb8)][w(0xce)](0x0,n)['trim']());m['endsWith']('/')&&(m=m[w(0xcb)](0x0,-0x1));m=m[w(0xd4)](/\/\//g,'/');const o=h[w(0xe0)]['js'],p=h[w(0xe0)][w(0xb1)]===w(0xd9)?w(0xfb):w(0xb2),q=a135e['join'](d,'imports',w(0xf6),p,w(0xfe)+o);l?await this['fsi'][w(0xc8)]({'filePath':q,'content':w(0x101)+m+'\x22\x20element={<Component.'+pascalCase(f)+w(0xf4),'begin':[w(0xaf)],'end':[w(0xf8)]}):await this[w(0xc1)][w(0xc8)]({'filePath':q,'content':w(0x101)+m+w(0xf1)+pascalCase(f)+w(0xf4),'begin':[w(0xdf)],'end':[w(0xc6)]});}}),i+'.'+h[v(0xe0)]['js'];});
@@ -1 +1 @@
1
- const a136p=a136d;function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x1dc;let f=c[d];return f;},a136d(a,b);}(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x1fb))/0x1*(-parseInt(m(0x1e1))/0x2)+-parseInt(m(0x1fe))/0x3+-parseInt(m(0x1e3))/0x4*(parseInt(m(0x1f3))/0x5)+parseInt(m(0x1f9))/0x6*(parseInt(m(0x1ee))/0x7)+-parseInt(m(0x1f4))/0x8+-parseInt(m(0x1de))/0x9+parseInt(m(0x200))/0xa*(parseInt(m(0x201))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0xca74e));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x1dc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x1f6)]()[o(0x1ef)](o(0x203))[o(0x1f6)]()[o(0x1e6)](a136a)['search'](o(0x203));});a136a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a136c(){const s=['779376afzYmQ','force','5753OGhvgk','startup','globalPublish','2044371XOkYFa','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','1364210jJUllX','121txlfqA','pathFromApp','(((.+)+)+)+$','apply','server','7168725CeaNRP','template','imports','194xHdgMF','exit','211148RgrRpG','injectAtEndOfFile','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','constructor','engines','fsi','getMakaProjectConfig','import\x20\x27./publications','resourceName','dir','publish/publish.js','42EVWUNG','search','create','baseDir','error','35ZkrHtP','1290360ScJrpX','maka\x20g:publish\x20todos','toString','/imports/ui/','withValue'];a136c=function(){return s;};return a136c();}import{Log}from'../tools/log/log.class.js';Generator[a136p(0x1f0)]({'name':'publish','aliases':['p'],'usage':a136p(0x1e5),'shortDesc':a136p(0x1ff),'validOpts':[a136p(0x1fa),a136p(0x1fd)],'examples':[a136p(0x1f5)]},async function(a,b){const q=a136p;try{const c=b[q(0x1fa)]||![],d=b[q(0x1f1)]?q(0x1f7)+b[q(0x1f1)]:'/imports/startup/server/publications',f=this[q(0x1e8)][q(0x1e9)](),g=paramCase(b['resourceName']),h=this['fsi']['pathFromApp']({'pathParts':[d,b[q(0x1ec)],'',g]});let i='js';f[q(0x1e7)]['js']==='tsx'&&(i='ts');await this['fsi'][q(0x1f8)](f,async()=>{const r=q,l={'name':b[r(0x1eb)],'collection':pascalCase(b[r(0x1eb)]),'noRename':!![],'globalPublish':b[r(0x1fd)]};await this[r(0x1e8)][r(0x1df)]({'srcPath':r(0x1ed),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x1e8)][q(0x202)]({'pathParts':[q(0x1e0),q(0x1fc),q(0x1dd),b['appPathPrefix'],'index.'+f['engines']['js']]}),k=b[q(0x1ec)]?'/'+b[q(0x1ec)]+'/':'/';return await this['fsi'][q(0x1e4)]({'filePath':j,'content':q(0x1ea)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x1f2)](l),process[q(0x1e2)](0x1);}});
1
+ const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x78))/0x1+parseInt(m(0x7c))/0x2+parseInt(m(0x84))/0x3*(parseInt(m(0x85))/0x4)+-parseInt(m(0x81))/0x5*(-parseInt(m(0x8b))/0x6)+-parseInt(m(0x7b))/0x7+-parseInt(m(0x7d))/0x8+parseInt(m(0x80))/0x9*(parseInt(m(0x7a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x75488));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x95)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x8d)]()[o(0x87)](o(0x77))[o(0x8d)]()[o(0x86)](a136a)[o(0x87)](o(0x77));});a136a();import{paramCase,pascalCase}from'change-case';function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x77;let f=c[d];return f;},a136d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'publish','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[a136p(0x92),'globalPublish'],'examples':[a136p(0x93)]},async function(a,b){const q=a136p;try{const c=b[q(0x92)]||![],d=b[q(0x89)]?'/imports/ui/'+b[q(0x89)]:q(0x79),f=this[q(0x88)]['getMakaProjectConfig'](),g=paramCase(b[q(0x90)]),h=this['fsi'][q(0x8e)]({'pathParts':[d,b[q(0x82)],'',g]});let i='js';f[q(0x7f)]['js']==='tsx'&&(i='ts');await this[q(0x88)]['withValue'](f,async()=>{const r=q,l={'name':b[r(0x90)],'collection':pascalCase(b[r(0x90)]),'noRename':!![],'globalPublish':b[r(0x91)]};await this[r(0x88)][r(0x83)]({'srcPath':'publish/publish.js','destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x88)][q(0x8e)]({'pathParts':[q(0x94),q(0x7e),'server',b['appPathPrefix'],q(0x8f)+f['engines']['js']]}),k=b[q(0x82)]?'/'+b['dir']+'/':'/';return await this[q(0x88)][q(0x8c)]({'filePath':j,'content':'import\x20\x27./publications'+k+g+'\x27;'}),h+'.'+i;}catch(l){Log['error'](l),process[q(0x8a)](0x1);}});function a136c(){const s=['1972041InCODV','4vyqvnZ','constructor','search','fsi','baseDir','exit','12VPgsfx','injectAtEndOfFile','toString','pathFromApp','index.','resourceName','globalPublish','force','maka\x20g:publish\x20todos','imports','apply','(((.+)+)+)+$','824691dappOS','/imports/startup/server/publications','4926010CzJSUb','4161031DQOURP','1169158uFjUti','5500200yjFcbR','startup','engines','9hioLiX','2131285dANbyH','dir','template'];a136c=function(){return s;};return a136c();}
@@ -1 +1 @@
1
- const a137p=a137d;(function(a,b){const m=a137d,c=a();while(!![]){try{const d=parseInt(m(0x10f))/0x1+parseInt(m(0xf5))/0x2*(-parseInt(m(0x10d))/0x3)+-parseInt(m(0x108))/0x4*(-parseInt(m(0x109))/0x5)+parseInt(m(0xff))/0x6+-parseInt(m(0x103))/0x7*(parseInt(m(0x100))/0x8)+-parseInt(m(0x114))/0x9+parseInt(m(0x102))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x8e947));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a137d;if(c){const e=c[n(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const o=a137d;return a137a['toString']()[o(0xf7)](o(0x10b))[o(0x117)]()[o(0x112)](a137a)[o(0xf7)](o(0x10b));});function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0xef;let f=c[d];return f;},a137d(a,b);}a137a();import a137e from'path';function a137c(){const s=['<Route\x20path=\x22*\x22','injectIntoFile','getMakaProjectConfig','resourceName','route','4408404wtHMfE','72136aNGvgy','engines','4384060RTVpDn','413kUCIoA','private','toLowerCase','/>}/>\x0a','<Route\x20path=\x22','188iKZHoe','79510yuaWUv','fsi','(((.+)+)+)+$','\x22\x20element={<Component.','35454SUeKPW','replace','188683pCgKEk','pop','<Route\x20element={<PrivateRoute\x20/>}>','constructor','routes.','8087967dOWcmT','withValue','imports','toString','apply','findAppDirectory','create','join','filter','<Route\x20index','lib','16kSotmg','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','search','ssr','error'];a137c=function(){return s;};return a137c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{pascalCase}from'change-case';const aliases=['r'];Generator[a137p(0xf0)]({'name':a137p(0xfe),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137p(0x104),'boolFlag':!![]},{'name':'route'}],'usage':'maka\x20{generate,\x20g}:{route,\x20r}','shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[]},async function(a,b){const q=a137p;try{const c=this['fsi'][q(0xfc)](),d=this[q(0x10a)][q(0xef)]();await this[q(0x10a)][q(0x115)](c,async()=>{const r=q,f=b['private']??![];let g=b[r(0xfd)]['split']('/')[r(0x110)]();if(!g){Log[r(0xf9)](r(0xf6));throw new UsageError();}g=pascalCase(g);let h=b[r(0xfe)]?'/'+b[r(0xfe)]:'/'+b['resourceName']['replace'](/\\/g,'/')[r(0x105)]();a['length']>0x1&&(h='/'+a[r(0xf2)](function(l){return l!=='/';})[r(0xf1)]('/')['toLowerCase']());h=h[r(0x10e)](/\/\//g,'/');const i=c[r(0x101)]['js'],j=c[r(0xf8)]?r(0xf4):'client',k=a137e[r(0xf1)](d,r(0x116),'startup',j,r(0x113)+i);f?await this[r(0x10a)]['injectIntoFile']({'filePath':k,'content':r(0x107)+h+r(0x10c)+g+r(0x106),'begin':[r(0x111)],'end':['</Route>']}):await this['fsi'][r(0xfb)]({'filePath':k,'content':r(0x107)+h+r(0x10c)+g+r(0x106),'begin':[r(0xf3)],'end':[r(0xfa)]});});}catch(f){Log[q(0xf9)](f),process['exit'](0x1);}});
1
+ const a137o=a137d;(function(a,b){const m=a137d,c=a();while(!![]){try{const d=-parseInt(m(0x8a))/0x1+parseInt(m(0x83))/0x2*(-parseInt(m(0x8b))/0x3)+-parseInt(m(0x72))/0x4+parseInt(m(0x70))/0x5+parseInt(m(0x7b))/0x6+-parseInt(m(0x73))/0x7+parseInt(m(0x78))/0x8*(parseInt(m(0x86))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x794ff));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(0x76)]()['search']('(((.+)+)+)+$')[n(0x76)]()[n(0x6f)](a137a)[n(0x74)](n(0x7e));});a137a();import a137e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{pascalCase}from'change-case';const aliases=['r'];function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x68;let f=c[d];return f;},a137d(a,b);}Generator[a137o(0x71)]({'name':a137o(0x81),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137o(0x87),'boolFlag':!![]},{'name':'route'}],'usage':'maka\x20{generate,\x20g}:{route,\x20r}','shortDesc':a137o(0x84),'examples':[]},async function(a,b){const p=a137o;try{const c=this[p(0x6c)][p(0x6d)](),d=this[p(0x6c)][p(0x6e)]();await this[p(0x6c)]['withValue'](c,async()=>{const q=p,f=b[q(0x87)]??![];let g=b[q(0x7a)][q(0x79)]('/')[q(0x7d)]();if(!g){Log[q(0x69)]('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}g=pascalCase(g);let h=b[q(0x81)]?'/'+b[q(0x81)]:'/'+b[q(0x7a)][q(0x77)](/\\/g,'/')['toLowerCase']();a[q(0x8c)]>0x1&&(h='/'+a['filter'](function(l){return l!=='/';})[q(0x82)]('/')['toLowerCase']());h=h['replace'](/\/\//g,'/');const i=c[q(0x85)]['js'],j=c[q(0x88)]?q(0x89):'client',k=a137e[q(0x82)](d,q(0x80),q(0x6a),j,'routes.'+i);f?await this[q(0x6c)][q(0x7c)]({'filePath':k,'content':q(0x75)+h+'\x22\x20element={<Component.'+g+q(0x68),'begin':['<Route\x20element={<PrivateRoute\x20/>}>'],'end':['</Route>']}):await this[q(0x6c)][q(0x7c)]({'filePath':k,'content':'<Route\x20path=\x22'+h+q(0x7f)+g+'/>}/>\x0a','begin':['<Route\x20index'],'end':[q(0x6b)]});});}catch(f){Log[p(0x69)](f),process['exit'](0x1);}});function a137c(){const r=['3925943SBQKzL','search','<Route\x20path=\x22','toString','replace','8OKvhFo','split','resourceName','3523398OupaMf','injectIntoFile','pop','(((.+)+)+)+$','\x22\x20element={<Component.','imports','route','join','1630paCMjj','Scaffolding\x20for\x20a\x20Route.','engines','17193528pDlkUY','private','ssr','lib','900663nVIKFu','951lXeDfh','length','/>}/>\x0a','error','startup','<Route\x20path=\x22*\x22','fsi','getMakaProjectConfig','findAppDirectory','constructor','2172115IGnIaw','create','2861144PSOmuR'];a137c=function(){return r;};return a137c();}
@@ -1 +1 @@
1
- function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x1c8;let f=c[d];return f;},a138d(a,b);}const a138l=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=-parseInt(j(0x1e8))/0x1*(-parseInt(j(0x1c8))/0x2)+-parseInt(j(0x1d5))/0x3*(-parseInt(j(0x1e4))/0x4)+parseInt(j(0x1e1))/0x5+parseInt(j(0x1d1))/0x6*(parseInt(j(0x1ee))/0x7)+parseInt(j(0x1d2))/0x8+-parseInt(j(0x1ea))/0x9*(-parseInt(j(0x1cf))/0xa)+-parseInt(j(0x1e2))/0xb*(parseInt(j(0x1cb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x688f3));function a138c(){const o=['logger','withValue','tsx','svc','getMakaProjectConfig','2652230tUDLWl','33NvUCIP','service/logger/logger.js','44592WgEBYg','error','toString','imports','8IhpRoc','template','18sMaLBJ','create','maka\x20g:svc\x20service-logger\x20--type=logger','(((.+)+)+)+$','70FUKMDr','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','50176YgrkYw','pathFromApp','search','7554648bSqBNq','type','winston','resourceName','1208920JyoHTi','fsi','290286hfPhIY','5722152DMjqTt','maka\x20{generate,\x20g}:{service}\x20<resource-name>','lib','39JsxuAs','engines','services','service','checkNpmPackage','constructor','winston\x20setimmediate'];a138c=function(){return o;};return a138c();}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(0x1e6)]()[k(0x1ca)](k(0x1ed))[k(0x1e6)]()[k(0x1da)](a138a)[k(0x1ca)](k(0x1ed));});a138a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a138l(0x1eb)]({'name':a138l(0x1d8),'aliases':[a138l(0x1df)],'usage':a138l(0x1d3),'shortDesc':a138l(0x1ef),'requiredOpts':[{'name':a138l(0x1cc),'values':[a138l(0x1dc)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138l(0x1ec)]},async function(a,b){const m=a138l;try{const c=this[m(0x1d0)][m(0x1e0)]();await this[m(0x1d0)][m(0x1dd)](c,async()=>{const n=m,d=this['fsi'][n(0x1c9)]({}),f=paramCase(b[n(0x1ce)]),g={'name':pascalCase(b[n(0x1ce)]),'fileName':f,'camelCase':camelCase(b[n(0x1ce)]),'type':b[n(0x1cc)],'engine':c[n(0x1d6)]['js'],'noRename':!![]};let h='js';c[n(0x1d6)]['js']===n(0x1de)&&(h='ts');if(b['type']===n(0x1dc)){!this[n(0x1d0)][n(0x1d9)](n(0x1cd))&&await this[n(0x1d0)]['installNpmPackage'](n(0x1db),{'cwd':d,'msg':'Installing\x20winston'});const i=this['fsi'][n(0x1c9)]({'pathParts':[n(0x1e7),'startup',n(0x1d4),n(0x1d7),f+'.'+h]});await this[n(0x1d0)][n(0x1e9)]({'srcPath':n(0x1e3),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0x1e5)](d);}});
1
+ const a138l=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=-parseInt(j(0x190))/0x1+parseInt(j(0x1b1))/0x2*(-parseInt(j(0x1af))/0x3)+-parseInt(j(0x1b3))/0x4*(parseInt(j(0x1a6))/0x5)+-parseInt(j(0x1ab))/0x6*(parseInt(j(0x196))/0x7)+parseInt(j(0x1b2))/0x8*(parseInt(j(0x194))/0x9)+parseInt(j(0x1ad))/0xa+parseInt(j(0x19b))/0xb*(parseInt(j(0x18e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x6b58b));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(0x1a8)]()[k(0x19d)]('(((.+)+)+)+$')[k(0x1a8)]()[k(0x1aa)](a138a)['search'](k(0x1a1));});a138a();import{camelCase,paramCase,pascalCase}from'change-case';function a138c(){const o=['tsx','15757umXzGK','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','withValue','winston\x20setimmediate','create','33heWxcy','Installing\x20winston','search','error','imports','logger','(((.+)+)+)+$','checkNpmPackage','service','resourceName','template','2977525nIJGQw','pathFromApp','toString','services','constructor','372nJZnyf','getMakaProjectConfig','4045680fwDQya','maka\x20{generate,\x20g}:{service}\x20<resource-name>','11511GAHVAd','installNpmPackage','282jojWXr','8DgXhsS','4tTkNYs','type','maka\x20g:svc\x20service-logger\x20--type=logger','2686800qkiTuy','startup','26379CXFgov','winston','fsi','engines','5992974nfymGY'];a138c=function(){return o;};return a138c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x18c;let f=c[d];return f;},a138d(a,b);}Generator[a138l(0x19a)]({'name':a138l(0x1a3),'aliases':['svc'],'usage':a138l(0x1ae),'shortDesc':a138l(0x197),'requiredOpts':[{'name':a138l(0x18c),'values':[a138l(0x1a0)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138l(0x18d)]},async function(a,b){const m=a138l;try{const c=this[m(0x192)][m(0x1ac)]();await this[m(0x192)][m(0x198)](c,async()=>{const n=m,d=this[n(0x192)][n(0x1a7)]({}),f=paramCase(b[n(0x1a4)]),g={'name':pascalCase(b[n(0x1a4)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[n(0x193)]['js'],'noRename':!![]};let h='js';c[n(0x193)]['js']===n(0x195)&&(h='ts');if(b[n(0x18c)]===n(0x1a0)){!this[n(0x192)][n(0x1a2)](n(0x191))&&await this[n(0x192)][n(0x1b0)](n(0x199),{'cwd':d,'msg':n(0x19c)});const i=this[n(0x192)]['pathFromApp']({'pathParts':[n(0x19f),n(0x18f),'lib',n(0x1a9),f+'.'+h]});await this[n(0x192)][n(0x1a5)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0x19e)](d);}});
@@ -1 +1 @@
1
- function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0x179;var f=c[d];return f;},a139d(a,b);}(function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(0x181))/0x1+parseInt(f(0x17c))/0x2+-parseInt(f(0x17b))/0x3+-parseInt(f(0x17f))/0x4+parseInt(f(0x179))/0x5*(parseInt(f(0x17e))/0x6)+parseInt(f(0x182))/0x7+parseInt(f(0x17d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x4349b));var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0x183)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0x17a)]()['search']('(((.+)+)+)+$')[h(0x17a)]()[h(0x180)](a139a)['search']('(((.+)+)+)+$');});a139a();import'./translation.js';function a139c(){var i=['12pJrnDD','827060KUmOCE','constructor','227859MlrCnm','1332961yMQyIS','apply','1222955sGFhvW','toString','1413993oJZdWW','825182EsPpMc','714960pOOZfT'];a139c=function(){return i;};return a139c();}import'./openssl.js';
1
+ (function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(0xe2))/0x1*(-parseInt(f(0xdf))/0x2)+parseInt(f(0xe4))/0x3*(parseInt(f(0xeb))/0x4)+parseInt(f(0xe8))/0x5*(-parseInt(f(0xe3))/0x6)+parseInt(f(0xde))/0x7+-parseInt(f(0xe5))/0x8+parseInt(f(0xe0))/0x9*(-parseInt(f(0xec))/0xa)+-parseInt(f(0xed))/0xb*(-parseInt(f(0xe1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x2aba2));var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var g=a139d;return a139a['toString']()[g(0xe9)](g(0xe6))[g(0xea)]()[g(0xe7)](a139a)[g(0xe9)](g(0xe6));});function a139c(){var h=['224760pXnFRj','search','toString','4ttwyBK','133290iPehdM','1723865OiRiWA','1153201oMuYPl','726UaOLXl','234hVUcAZ','12kAGXPD','599mFjtXd','6ojuxAO','834873tkNlre','2005360iDHXPj','(((.+)+)+)+$','constructor'];a139c=function(){return h;};return a139c();}a139a();function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xde;var f=c[d];return f;},a139d(a,b);}import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- function a140c(){const o=['18AKuCgY','service','apply','getMakaProjectConfig','153IcKdxn','13687390pPPhGG','env','245256uHYYfK','Generate\x20a\x20new\x20openssl\x20config\x20file','toString','openssl.conf','maka\x20g:sslconfig\x20--env\x20dev','search','fsi','(((.+)+)+)+$','maka\x20{generate,\x20g}:sslconfig','5IZrVfh','appName','193096bIGCfs','787344VDzMzz','withValue','join','sslconfig','983514QHlgft','constructor','2193684LEtWNp','906248tBGoSP','_keys'];a140c=function(){return o;};return a140c();}function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x1ed;let f=c[d];return f;},a140d(a,b);}const a140l=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=parseInt(i(0x1fc))/0x1+-parseInt(i(0x203))/0x2+-parseInt(i(0x205))/0x3*(parseInt(i(0x1fb))/0x4)+parseInt(i(0x1f9))/0x5*(-parseInt(i(0x202))/0x6)+parseInt(i(0x200))/0x7+-parseInt(i(0x1f0))/0x8*(parseInt(i(0x1ed))/0x9)+parseInt(i(0x1ee))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xa2d9a));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0x207)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a[k(0x1f2)]()[k(0x1f5)](k(0x1f7))[k(0x1f2)]()[k(0x201)](a140a)[k(0x1f5)](k(0x1f7));});a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a140e from'path';Generator['create']({'name':a140l(0x1ff),'usage':a140l(0x1f8),'shortDesc':a140l(0x1f1),'noNeedResource':!![],'requiredOpts':['env'],'examples':[a140l(0x1f4)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this['fsi'][m(0x208)](),d=await this['fsi']['getGlobalConfig'](),f=this[m(0x1f6)]['getAppConfigPath'](b[m(0x1ef)]),g=a140e[m(0x1fe)](f,m(0x204),m(0x1f3));await this[m(0x1f6)][m(0x1fd)](c,async()=>{const n=m,h={'app':d[n(0x1fa)],'noRename':!![]};await this[n(0x1f6)]['template']({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0x206),'context':h,'config':c});});}catch(h){Log['error'](h);}});
1
+ const a140l=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x156))/0x1*(parseInt(i(0x147))/0x2)+-parseInt(i(0x159))/0x3*(parseInt(i(0x150))/0x4)+parseInt(i(0x15a))/0x5+parseInt(i(0x157))/0x6+-parseInt(i(0x14f))/0x7+-parseInt(i(0x144))/0x8+-parseInt(i(0x149))/0x9*(-parseInt(i(0x15f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xe6cba));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a[k(0x15e)]()[k(0x15b)](k(0x14d))[k(0x15e)]()[k(0x15d)](a140a)[k(0x15b)](k(0x14d));});function a140c(){const o=['1703190ltamQb','env','702NBAXQy','1243330HlIbrc','search','join','constructor','toString','512370YsescP','openssl/openssl.conf','template','sslconfig','getGlobalConfig','5038808DsaWSA','fsi','maka\x20{generate,\x20g}:sslconfig','298052DcoIJX','getAppConfigPath','738zTJqQJ','Generate\x20a\x20new\x20openssl\x20config\x20file','getMakaProjectConfig','apply','(((.+)+)+)+$','withValue','9042054hbRAxj','29368yWTKNH','appName','openssl.conf','create','_keys','maka\x20g:sslconfig\x20--env\x20dev','1YGQGoQ'];a140c=function(){return o;};return a140c();}a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a140e from'path';function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x142;let f=c[d];return f;},a140d(a,b);}Generator[a140l(0x153)]({'name':a140l(0x142),'usage':a140l(0x146),'shortDesc':a140l(0x14a),'noNeedResource':!![],'requiredOpts':[a140l(0x158)],'examples':[a140l(0x155)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this[m(0x145)][m(0x14b)](),d=await this['fsi'][m(0x143)](),f=this[m(0x145)][m(0x148)](b[m(0x158)]),g=a140e[m(0x15c)](f,m(0x154),m(0x152));await this['fsi'][m(0x14e)](c,async()=>{const n=m,h={'app':d[n(0x151)],'noRename':!![]};await this[n(0x145)][n(0x161)]({'srcPath':n(0x160),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log['error'](h);}});
@@ -1 +1 @@
1
- const a141z=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=-parseInt(x(0x110))/0x1+-parseInt(x(0x116))/0x2+parseInt(x(0x10b))/0x3+-parseInt(x(0x10f))/0x4+parseInt(x(0x137))/0x5*(-parseInt(x(0x124))/0x6)+-parseInt(x(0x10e))/0x7*(parseInt(x(0x139))/0x8)+parseInt(x(0x10c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0x79c42));function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x104;let f=c[d];return f;},a141d(a,b);}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(0x130)]()[y(0x12f)]('(((.+)+)+)+$')[y(0x130)]()['constructor'](a141a)[y(0x12f)]('(((.+)+)+)+$');});a141a();function a141c(){const C=['true','installNpmPackage','Locale\x20already\x20defined:\x20','lang','exit','\x20}\x20from\x20\x27./','\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','1031373WefwIo','35764101Kkrflb','findAppDirectory','737569YFmdFF','3175644YBHBBl','729002KOBpwY','template','index.','i18n.js','lib','setProjectConfig','1970488QRFfSu','readFileSync','isFile','injectAtEndOfFile','startup','pathFromApp','services','imports','import\x20\x27../lib/services/translations/i18n\x27;\x0a','error','rewriteDestinationPathForEngine','i18n/i18n.js','index.js','root','12dYfdOB','translation','maka\x20g:translation\x20--lang=en\x20(default)','engines','injectAtBeginningOfFile','ssr','service','appName','getGlobalConfig','locales','grep','search','toString','translations','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','maka\x20g:translation\x20--lang=de','fsi','features.withTranslations','i18next','905915dqsjiV','import\x20\x27../lib/services/translations/i18n\x27;','72NCloxU','i18n/index.js'];a141c=function(){return C;};return a141c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a141e from'fs';Generator['create']({'name':a141z(0x125),'usage':'maka\x20{generate,\x20g}:translation','aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':'lang','boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a141z(0x10a),'examples':[a141z(0x126),'maka\x20g:translation\x20--lang=fr',a141z(0x133)],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this[A(0x134)]['getMakaProjectConfig'](),d=this['fsi'][A(0x12c)](),f=this[A(0x134)][A(0x10d)]();await this[A(0x134)]['withValue'](c,async()=>{const B=A;try{!b['lang']&&(b['lang']='en');!b[B(0x123)]&&!this[B(0x134)]['checkNpmPackage'](B(0x136))&&(Log['warn'](B(0x132)),this[B(0x134)][B(0x105)]('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[B(0x134)][B(0x115)](B(0x135),!![]));const g=this['fsi'][B(0x11b)]({'pathParts':[B(0x11d),'startup','client',B(0x122)]}),h=this[B(0x134)][B(0x120)]({'pathParts':[g],'config':c}),i=this['fsi'][B(0x12e)](a141e[B(0x117)](h)[B(0x130)](),B(0x138))[0x0]&&!![];if(c['engines'][B(0x129)]===B(0x104)){!i&&this[B(0x134)]['injectAtBeginningOfFile']({'filePath':h,'content':B(0x11e)});const t=this[B(0x134)][B(0x11b)]({'pathParts':[B(0x11d),B(0x11a),'server',B(0x122)]}),u=this[B(0x134)][B(0x120)]({'pathParts':[t],'config':c}),v=this[B(0x134)][B(0x12e)](a141e[B(0x117)](u)[B(0x130)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this['fsi'][B(0x128)]({'filePath':u,'content':B(0x11e)});}else!i&&this['fsi']['injectAtBeginningOfFile']({'filePath':h,'content':B(0x11e)});const j={'app':d[B(0x12b)],'config':c},k=this[B(0x134)][B(0x11b)]({'pathParts':[B(0x11d),'startup',B(0x114),'services',B(0x131),B(0x113)]}),l=this[B(0x134)][B(0x118)](this[B(0x134)][B(0x120)]({'pathParts':[k],'config':c}));!l&&await this[B(0x134)]['template']({'srcPath':B(0x121),'destPath':k,'framework':B(0x12a),'context':j,'config':c});const m=this[B(0x134)][B(0x11b)]({'pathParts':[B(0x11d),B(0x11a),B(0x114),'services',B(0x131),B(0x12d),b[B(0x107)]+'.js']}),n=this['fsi'][B(0x120)]({'pathParts':[m],'config':c}),o=this['fsi'][B(0x118)](n);!o?await this['fsi']['template']({'srcPath':'i18n/locales.js','destPath':m,'framework':B(0x12a),'context':j,'config':c}):Log['warn'](B(0x106)+n);const p=this[B(0x134)][B(0x11b)]({'pathParts':[B(0x11d),B(0x11a),B(0x114),B(0x11c),B(0x131),B(0x12d),B(0x112)+c[B(0x127)]['js']]}),q=this[B(0x134)][B(0x120)]({'pathParts':[p],'config':c}),r=this[B(0x134)][B(0x118)](q);!r&&await this['fsi'][B(0x111)]({'srcPath':B(0x13a),'destPath':p,'framework':B(0x12a),'context':j,'config':c});const s=this['fsi'][B(0x12e)](a141e['readFileSync'](p)[B(0x130)](),'default\x20as\x20'+b['lang'])[0x0]&&!![];!s?await this[B(0x134)][B(0x119)]({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b[B(0x107)]+B(0x109)+b[B(0x107)]+'\x27;'}):Log['warn']('Locale\x20already\x20exported:\x20'+p);}catch(w){Log['error'](w),process['exit'](0x1);}});}catch(g){Log[A(0x11f)](g),process[A(0x108)](0x1);}});
1
+ const a141z=a141d;function a141c(){const C=['grep','i18n/i18n.js','setProjectConfig','\x20}\x20from\x20\x27./','11NyVSQV','exit','7QwsTca','constructor','appName','client','true','index.js','readFileSync','pathFromApp','injectAtBeginningOfFile','lang','findAppDirectory','i18next','ssr','translations','(((.+)+)+)+$','translation','isFile','injectAtEndOfFile','16TyxryS','startup','Locale\x20already\x20defined:\x20','maka\x20g:translation\x20--lang=fr','error','server','template','import\x20\x27../lib/services/translations/i18n\x27;','index.','services','i18n/index.js','warn','195905OOjGUE','959680jimdae','maka\x20g:translation\x20--lang=en\x20(default)','2BNmmGT','fsi','service','lib','maka\x20{generate,\x20g}:translation','.js','6437810gDmRpp','toString','imports','\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','1749208IzLpwc','i18next\x20i18next-browser-languagedetector\x20react-i18next','171963FWbvfC','default\x20as\x20','withValue','3567162WhllsV','import\x20\x27../lib/services/translations/i18n\x27;\x0a','getMakaProjectConfig','getGlobalConfig','4244964ayafVb','search','engines','rewriteDestinationPathForEngine'];a141c=function(){return C;};return a141c();}(function(a,b){const x=a141d,c=a();while(!![]){try{const d=-parseInt(x(0x1d1))/0x1*(parseInt(x(0x1cf))/0x2)+parseInt(x(0x1e0))/0x3+-parseInt(x(0x1c2))/0x4*(-parseInt(x(0x1ce))/0x5)+parseInt(x(0x1e4))/0x6+-parseInt(x(0x1b0))/0x7*(-parseInt(x(0x1db))/0x8)+parseInt(x(0x1dd))/0x9+-parseInt(x(0x1d7))/0xa*(parseInt(x(0x1ec))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xa7dd1));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(0x1d8)]()['search'](y(0x1be))[y(0x1d8)]()[y(0x1b1)](a141a)[y(0x1e5)]('(((.+)+)+)+$');});a141a();function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x1af;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['create']({'name':a141z(0x1bf),'usage':a141z(0x1d5),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141z(0x1b9),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a141z(0x1da),'examples':[a141z(0x1d0),a141z(0x1c5),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this[A(0x1d2)][A(0x1e2)](),d=this[A(0x1d2)][A(0x1e3)](),f=this[A(0x1d2)][A(0x1ba)]();await this[A(0x1d2)][A(0x1df)](c,async()=>{const B=A;try{!b[B(0x1b9)]&&(b['lang']='en');!b['root']&&!this['fsi']['checkNpmPackage'](B(0x1bb))&&(Log[B(0x1cd)]('Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...'),this[B(0x1d2)]['installNpmPackage'](B(0x1dc),{'cwd':f}),this[B(0x1d2)][B(0x1ea)]('features.withTranslations',!![]));const g=this['fsi'][B(0x1b7)]({'pathParts':[B(0x1d9),B(0x1c3),B(0x1b3),B(0x1b5)]}),h=this[B(0x1d2)][B(0x1e7)]({'pathParts':[g],'config':c}),i=this[B(0x1d2)][B(0x1e8)](a141e[B(0x1b6)](h)[B(0x1d8)](),B(0x1c9))[0x0]&&!![];if(c[B(0x1e6)][B(0x1bc)]===B(0x1b4)){!i&&this['fsi'][B(0x1b8)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[B(0x1d2)][B(0x1b7)]({'pathParts':[B(0x1d9),B(0x1c3),B(0x1c7),B(0x1b5)]}),u=this[B(0x1d2)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi'][B(0x1e8)](a141e['readFileSync'](u)[B(0x1d8)](),B(0x1c9))[0x0]&&!![];!v&&this['fsi']['injectAtBeginningOfFile']({'filePath':u,'content':B(0x1e1)});}else!i&&this['fsi'][B(0x1b8)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[B(0x1b2)],'config':c},k=this[B(0x1d2)][B(0x1b7)]({'pathParts':[B(0x1d9),B(0x1c3),B(0x1d4),B(0x1cb),B(0x1bd),'i18n.js']}),l=this[B(0x1d2)]['isFile'](this[B(0x1d2)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&await this[B(0x1d2)]['template']({'srcPath':B(0x1e9),'destPath':k,'framework':B(0x1d3),'context':j,'config':c});const m=this[B(0x1d2)]['pathFromApp']({'pathParts':[B(0x1d9),B(0x1c3),B(0x1d4),B(0x1cb),'translations','locales',b['lang']+B(0x1d6)]}),n=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this['fsi'][B(0x1c0)](n);!o?await this[B(0x1d2)][B(0x1c8)]({'srcPath':'i18n/locales.js','destPath':m,'framework':B(0x1d3),'context':j,'config':c}):Log[B(0x1cd)](B(0x1c4)+n);const p=this[B(0x1d2)][B(0x1b7)]({'pathParts':[B(0x1d9),B(0x1c3),B(0x1d4),B(0x1cb),B(0x1bd),'locales',B(0x1ca)+c[B(0x1e6)]['js']]}),q=this['fsi'][B(0x1e7)]({'pathParts':[p],'config':c}),r=this[B(0x1d2)][B(0x1c0)](q);!r&&await this[B(0x1d2)][B(0x1c8)]({'srcPath':B(0x1cc),'destPath':p,'framework':'service','context':j,'config':c});const s=this['fsi'][B(0x1e8)](a141e['readFileSync'](p)[B(0x1d8)](),B(0x1de)+b[B(0x1b9)])[0x0]&&!![];!s?await this[B(0x1d2)][B(0x1c1)]({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b[B(0x1b9)]+B(0x1eb)+b[B(0x1b9)]+'\x27;'}):Log['warn']('Locale\x20already\x20exported:\x20'+p);}catch(w){Log['error'](w),process[B(0x1af)](0x1);}});}catch(g){Log[A(0x1c6)](g),process[A(0x1af)](0x1);}});
@@ -1 +1 @@
1
- const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=parseInt(j(0xb8))/0x1*(parseInt(j(0xcf))/0x2)+-parseInt(j(0xcc))/0x3+-parseInt(j(0xbb))/0x4*(-parseInt(j(0xc0))/0x5)+parseInt(j(0xc4))/0x6*(parseInt(j(0xbc))/0x7)+parseInt(j(0xbd))/0x8+parseInt(j(0xbe))/0x9+parseInt(j(0xc2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x56004));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a['toString']()[l(0xc1)](l(0xce))[l(0xb9)]()[l(0xbf)](a142a)[l(0xc1)](l(0xce));});function a142c(){const n=['TOOL_NODE_FLAGS','128AtgtLL','3115RkXlgC','1285496uXorFF','2169090KlXYLo','constructor','28280mtgiYy','search','1588480tXpfds','--max-old-space-size=','3174jxkEWX','floor','dirname','env','apply','slice','MAKA_COMMAND_PATH','BROWSERSLIST_IGNORE_OLD_DATA','2038575upTgLc','argv','(((.+)+)+)+$','606ObXbyP','camelizeKeys','181BUafTE','toString'];a142c=function(){return n;};return a142c();}a142a();import a142e from'minimist';import a142f from'os';import a142g from'path';import a142h from'humps';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0xb7;let f=c[d];return f;},a142d(a,b);}import a142i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a142g[a142m(0xc6)](__filename);global[a142m(0xca)]=__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(0xc5)](total_mem_in_mb),process[a142m(0xc7)][a142m(0xba)]=a142m(0xc3)+total_mem_in_mb,process['env'][a142m(0xcb)]='1',process[a142m(0xc7)]['NODE_NO_WARNINGS']='1';const argv=a142e(process[a142m(0xcd)][a142m(0xc9)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0xb7)](deepCopyArgv);a142i['run'](args,opts);
1
+ const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0xe9))/0x1+parseInt(j(0xf3))/0x2+parseInt(j(0xec))/0x3*(-parseInt(j(0xf2))/0x4)+-parseInt(j(0xdd))/0x5+parseInt(j(0xde))/0x6+parseInt(j(0xe1))/0x7+parseInt(j(0xf4))/0x8*(parseInt(j(0xe8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x31383));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0xe0)]()[l(0xdb)](l(0xe5))[l(0xe0)]()[l(0xdc)](a142a)[l(0xdb)](l(0xe5));});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=['camelizeKeys','search','constructor','1443195wMKuAi','340236dfueLc','slice','toString','1001539VajyEQ','MAKA_COMMAND_PATH','TOOL_NODE_FLAGS','env','(((.+)+)+)+$','parse','argv','15921osWVSB','227444bZKnla','apply','dirname','6gTnxqg','url','--max-old-space-size=','run','BROWSERSLIST_IGNORE_OLD_DATA','stringify','110564niqTZu','194648ZkLbtW','2152diKbEW','floor'];a142c=function(){return n;};return a142c();}const __filename=fileURLToPath(import.meta[a142m(0xed)]),__dirname=a142g[a142m(0xeb)](__filename);global[a142m(0xe2)]=__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(0xd9)](total_mem_in_mb),process[a142m(0xe4)][a142m(0xe3)]=a142m(0xee)+total_mem_in_mb,process[a142m(0xe4)][a142m(0xf0)]='1',process['env']['NODE_NO_WARNINGS']='1';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0xd9;let f=c[d];return f;},a142d(a,b);}const argv=a142e(process[a142m(0xe7)][a142m(0xdf)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0xe6)](JSON[a142m(0xf1)](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0xda)](deepCopyArgv);a142i[a142m(0xef)](args,opts);
@@ -1 +1 @@
1
- const a143L=a143d;function a143c(){const a3=['singleLicense','win32','existsSync','9024375buvdiR','description','getShortName','Please\x20provide\x20a\x20resource\x20name:','(((.+)+)+)+$','validateMakaSubscription','validateParams','getPro','domainLicense','To\x20use\x20this\x20generator,\x20\x22','remapShortToLong','charAt','docker','disableAuthCheck','.meteor','root','To\x20use\x20this\x20command,\x20\x22','concat','Invalid\x20argument:\x20','help','9574040kBwyzp','fsi','\x20installed\x20to\x20use\x20this\x20command.','1515787UyCDQN','isGenerator','push','Please\x20choose\x20a\x20value\x20for\x20','map','assign','validateEngines','isCommand','every','examples','_handler','375656LHOdbg','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','validateUserIsLoggedIn','getAppProjectConfigs','constructor','proGenerators','formatToNamedParam','join','name','353166QVmHSQ','Invalid\x20value\x20for\x20','length','proCommands','options','NIE','No\x20usage\x20provided.','AppData','validateMakaProject','cwd','isPro','search','52SKgavQ','error','Please\x20choose\x20a\x20valid\x20value\x20for\x20','includes','env','parent','ask','experimental','Invalid\x20option:\x20','Local','shortDesc','toString','43764jxOgau','1349zbaPBz','apply','homedir','846kKqJkU','You\x20must\x20have\x20','keys','exit','resourceName','Please\x20provide\x20a\x20value\x20for\x20','config','369BBZRzt','aliases','list','engines','validateMeteorInstall'];a143c=function(){return a3;};return a143c();}(function(a,b){const I=a143d,c=a();while(!![]){try{const d=parseInt(I(0x16c))/0x1*(-parseInt(I(0x16f))/0x2)+-parseInt(I(0x16b))/0x3*(-parseInt(I(0x1b5))/0x4)+-parseInt(I(0x17e))/0x5+parseInt(I(0x1a9))/0x6+parseInt(I(0x195))/0x7+-parseInt(I(0x1a0))/0x8*(-parseInt(I(0x176))/0x9)+parseInt(I(0x192))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0xed599));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x16d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0x16a)]()[K(0x1b4)]('(((.+)+)+)+$')[K(0x16a)]()[K(0x1a4)](a143a)[K(0x1b4)](K(0x182));});a143a();import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x16e)]();function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x169;let f=c[d];return f;},a143d(a,b);}import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{['docker'];[a143L(0x193)];['options'];['name'];[a143L(0x1ba)];[a143L(0x19f)];constructor(){const M=a143L;this[M(0x18a)]=new Docker(),this[M(0x193)]=new FSI();}[a143L(0x180)](a){const N=a143L;return a[N(0x189)](0x0);}[a143L(0x188)](a,b){const O=a143L,c=this[O(0x1a6)](b),d={...a};for(const e of c){const f=this[O(0x180)](e[O(0x1a8)]);a[f]&&(d[e[O(0x1a8)]]=a[f],delete d[f]);}return d;}[a143L(0x1a6)](a){const P=a143L;if(a[P(0x19d)](b=>typeof b==='string'))return a[P(0x199)](b=>({'name':b}));return a;}['match'](a){const Q=a143L,b=[this[Q(0x1a8)]][Q(0x18f)](this['options'][Q(0x177)]||[]);return this['parent']&&b[Q(0x197)](this[Q(0x1ba)]),b['includes'](a);}[a143L(0x1b1)](){const a=this['fsi']['findProjectDirectory']();return a!==![]?!![]:![];}async[a143L(0x1a2)](){return!![];}[a143L(0x17a)](){const R=a143L,a=process['platform']===R(0x17c);if(a){if(!a143g[R(0x17d)](a143e[R(0x1a7)](homeDir,R(0x1b0),R(0x1be),'.meteor')))return![];}else{if(!a143g['existsSync'](a143e[R(0x1a7)](homeDir,R(0x18c))))return![];}return!![];}[a143L(0x19b)](a){const S=a143L,b=this[S(0x193)]['getMakaProjectConfig'](),c=b[S(0x179)],d=Object[S(0x171)](a);if(d[S(0x1ab)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[S(0x1b6)](S(0x170)+e+'\x20version\x20'+a[e]+S(0x194));throw UsageError;}}}async[a143L(0x184)](a,b,c){const T=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h[T(0x1b8)](T(0x173))&&b[T(0x173)]===undefined&&!g){const m=await Actions[T(0x1bb)](T(0x181));b[T(0x173)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this['remapShortToLong'](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[T(0x171)](j)['includes'](o)){if(o===T(0x1b9)){const r=this[T(0x193)][T(0x1a3)]()['filter'](t=>t!=='local');r[T(0x1ab)]===0x0&&(Log['error']('This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`'),process[T(0x172)](0x1));const s=await Actions[T(0x1ad)]({'type':T(0x178),'name':T(0x1b9),'message':'Please\x20choose\x20an\x20environment','choices':r});b[T(0x1b9)]=s[T(0x1b9)];}else{const t=p;if(t){const u=await Actions['options']({'type':T(0x178),'name':o,'message':T(0x198)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](T(0x174)+o);if(v['match'](q))b[o]=v;else{Log[T(0x1b6)](T(0x1aa)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[T(0x1bb)]('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[T(0x1b8)](x)){Log[T(0x1b6)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this[T(0x1a6)](f),l=b;if(k&&Object[T(0x171)](k)?.[T(0x1ab)]>0x0){k=k[T(0x18f)](i||[]),k[T(0x197)]({'name':T(0x173),'hidden':!![]}),k[T(0x197)]({'name':T(0x191),'boolFlag':!![]}),k[T(0x197)]({'name':'dir','hidden':!![]}),k[T(0x197)]({'name':T(0x1b2),'hidden':!![]}),k[T(0x197)]({'name':T(0x18d),'hidden':!![]}),k[T(0x197)]({'name':T(0x175),'hidden':!![]}),l=this[T(0x188)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[T(0x1b8)](B))){const C=A;if(C){const D=await Actions['options']({'type':T(0x178),'name':z,'message':T(0x1b7)+z,'choices':A});l[z]=D[z];}}if(k[T(0x1ab)]>0x0)for(const E of Object[T(0x171)](l)){const F=k['find'](G=>G[T(0x1a8)]===E);if(!F){Log[T(0x1b6)](T(0x1bd)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e['includes'](G)){Log[T(0x1b6)](T(0x190)+G);const H=await Actions[T(0x1bb)]('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a['indexOf'](G)]=H;}}return Object[T(0x19a)](j,l);}async[a143L(0x183)](a){const U=a143L;try{if(!a)return;const b=await this[U(0x193)][U(0x185)]();!b&&(Log[U(0x1b6)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[U(0x172)](0x1));const c=!b?.['roles'][U(0x1b8)](U(0x17b))&&!b?.['roles'][U(0x1b8)](U(0x186));if(this[U(0x19c)](a)){const d=U(0x18e)+a[U(0x1a8)]+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';if(a[U(0x1ad)][U(0x18b)])return;const f=b?.[U(0x1ac)][U(0x1b8)](a['name'])||b?.[U(0x1ac)][U(0x1b8)](a[U(0x1ba)]||'')||this[U(0x1ad)][U(0x1b3)];if(f&&c)throw d;}else{if(this[U(0x196)](a)){const g=b?.[U(0x1a5)][U(0x1b8)](a[U(0x1a8)])||b?.[U(0x1a5)][U(0x1b8)](a[U(0x1ba)]||'');if(g&&c)throw U(0x187)+a[U(0x1a8)]+U(0x1a1);}}}catch(h){Log['error'](h),process[U(0x172)](0x1);}}[a143L(0x19c)](a){const V=a143L;return V(0x1ad)in a;}[a143L(0x196)](a){const W=a143L;return!(W(0x1ad)in a);}[a143L(0x17f)](){const X=a143L;return this[X(0x1ad)][X(0x17f)]||this[X(0x1ad)][X(0x169)]||'No\x20description\x20provided.';}[a143L(0x169)](){const Y=a143L;return this['options'][Y(0x169)]||Y(0x1ae);}['usage'](){const Z=a143L;return this[Z(0x1ad)]['usage']||Z(0x1af);}[a143L(0x19e)](){const a0=a143L;return this['options'][a0(0x19e)]||[];}[a143L(0x177)](){const a1=a143L;return this[a1(0x1ad)]['aliases']||'None';}[a143L(0x1bc)](){const a2=a143L;return this[a2(0x1ad)][a2(0x1bc)]||![];}}
1
+ const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0x241))/0x1*(parseInt(I(0x22c))/0x2)+parseInt(I(0x228))/0x3*(parseInt(I(0x215))/0x4)+-parseInt(I(0x21a))/0x5+-parseInt(I(0x24d))/0x6+parseInt(I(0x22e))/0x7+-parseInt(I(0x221))/0x8*(-parseInt(I(0x200))/0x9)+-parseInt(I(0x246))/0xa*(parseInt(I(0x250))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0xe1d05));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x207)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a['toString']()[K(0x20b)]('(((.+)+)+)+$')[K(0x1f5)]()[K(0x244)](a143a)[K(0x20b)](K(0x242));});a143a();function a143c(){const a3=['Please\x20provide\x20a\x20value\x20for\x20','assign','apply','getAppProjectConfigs','To\x20use\x20this\x20generator,\x20\x22','No\x20description\x20provided.','search','No\x20usage\x20provided.','string','charAt','validateMakaProject','None','exit','includes','Invalid\x20option:\x20','join','4uXAzIN','getPro','keys','docker','parent','4887810DaXDXB','examples','To\x20use\x20this\x20command,\x20\x22','fsi','isCommand','validateMeteorInstall','Please\x20choose\x20a\x20value\x20for\x20','152Pfmkpp','ask','NIE','disableAuthCheck','length','shortDesc','dir','3947781vLmebl','options','push','description','10PHIggk','root','7385091kDWWQr','proGenerators','Invalid\x20value\x20for\x20','concat','domainLicense','Please\x20choose\x20an\x20environment','.meteor','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','validateMakaSubscription','You\x20must\x20have\x20','aliases','env','list','filter','usage','formatToNamedParam','existsSync','every','getMakaProjectConfig','95793sKmFMx','(((.+)+)+)+$','remapShortToLong','constructor','resourceName','4735320YVsFCN','homedir','win32','indexOf','isGenerator','_handler','Please\x20choose\x20a\x20valid\x20value\x20for\x20','2822850pSSsyG','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','match','22LPccTS','getShortName','toString','proCommands','name','cwd','engines','validateEngines','isPro','map','error','validateUserIsLoggedIn','platform','676449QOMNnR','roles','help','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','find'];a143c=function(){return a3;};return a143c();}import a143e from'path';function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x1f4;let f=c[d];return f;},a143d(a,b);}import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x247)]();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(0x218)];[a143L(0x21d)];[a143L(0x229)];['name'];[a143L(0x219)];[a143L(0x24b)];constructor(){const M=a143L;this[M(0x218)]=new Docker(),this['fsi']=new FSI();}[a143L(0x1f4)](a){const N=a143L;return a[N(0x20e)](0x0);}[a143L(0x243)](a,b){const O=a143L,c=this['formatToNamedParam'](b),d={...a};for(const e of c){const f=this[O(0x1f4)](e['name']);a[f]&&(d[e[O(0x1f7)]]=a[f],delete d[f]);}return d;}[a143L(0x23d)](a){const P=a143L;if(a[P(0x23f)](b=>typeof b===P(0x20d)))return a[P(0x1fc)](b=>({'name':b}));return a;}[a143L(0x24f)](a){const Q=a143L,b=[this[Q(0x1f7)]]['concat'](this[Q(0x229)][Q(0x238)]||[]);return this[Q(0x219)]&&b[Q(0x22a)](this[Q(0x219)]),b[Q(0x212)](a);}[a143L(0x20f)](){const R=a143L,a=this[R(0x21d)]['findProjectDirectory']();return a!==![]?!![]:![];}async[a143L(0x1fe)](){return!![];}[a143L(0x21f)](){const S=a143L,a=process[S(0x1ff)]===S(0x248);if(a){if(!a143g[S(0x23e)](a143e['join'](homeDir,'AppData','Local',S(0x234))))return![];}else{if(!a143g['existsSync'](a143e[S(0x214)](homeDir,S(0x234))))return![];}return!![];}[a143L(0x1fa)](a){const T=a143L,b=this['fsi'][T(0x240)](),c=b[T(0x1f9)],d=Object['keys'](a);if(d[T(0x225)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0x1fd)](T(0x237)+e+'\x20version\x20'+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async['validateParams'](a,b,c){const U=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0x217)](b);if(h[U(0x212)]('resourceName')&&b[U(0x245)]===undefined&&!g){const m=await Actions[U(0x222)]('Please\x20provide\x20a\x20resource\x20name:');b[U(0x245)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[U(0x243)](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0x217)](j)[U(0x212)](o)){if(o===U(0x239)){const r=this[U(0x21d)][U(0x208)]()[U(0x23b)](t=>t!=='local');r['length']===0x0&&(Log[U(0x1fd)](U(0x203)),process[U(0x211)](0x1));const s=await Actions[U(0x229)]({'type':U(0x23a),'name':U(0x239),'message':U(0x233),'choices':r});b[U(0x239)]=s[U(0x239)];}else{const t=p;if(t){const u=await Actions[U(0x229)]({'type':U(0x23a),'name':o,'message':U(0x220)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[U(0x222)](U(0x205)+o);if(v['match'](q))b[o]=v;else{Log[U(0x1fd)]('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0x222)](U(0x205)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0x212)](x)){Log[U(0x1fd)](U(0x230)+o+':\x20'+x);throw new UsageError();}}}}let k=this['formatToNamedParam'](f),l=b;if(k&&Object[U(0x217)](k)?.[U(0x225)]>0x0){k=k[U(0x231)](i||[]),k['push']({'name':U(0x245),'hidden':!![]}),k['push']({'name':U(0x202),'boolFlag':!![]}),k[U(0x22a)]({'name':U(0x227),'hidden':!![]}),k[U(0x22a)]({'name':U(0x1f8),'hidden':!![]}),k[U(0x22a)]({'name':U(0x22d),'hidden':!![]}),k[U(0x22a)]({'name':'config','hidden':!![]}),l=this[U(0x243)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A['includes'](B))){const C=A;if(C){const D=await Actions['options']({'type':U(0x23a),'name':z,'message':U(0x24c)+z,'choices':A});l[z]=D[z];}}if(k[U(0x225)]>0x0)for(const E of Object[U(0x217)](l)){const F=k[U(0x204)](G=>G[U(0x1f7)]===E);if(!F){Log[U(0x1fd)](U(0x213)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e['includes'](G)){Log[U(0x1fd)]('Invalid\x20argument:\x20'+G);const H=await Actions['ask']('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a[U(0x249)](G)]=H;}}return Object[U(0x206)](j,l);}async[a143L(0x236)](a){const V=a143L;try{if(!a)return;const b=await this[V(0x21d)][V(0x216)]();!b&&(Log['error'](V(0x235)),process[V(0x211)](0x1));const c=!b?.[V(0x201)][V(0x212)]('singleLicense')&&!b?.[V(0x201)][V(0x212)](V(0x232));if(this['isCommand'](a)){const d=V(0x21c)+a[V(0x1f7)]+V(0x24e);if(a[V(0x229)][V(0x224)])return;const f=b?.[V(0x1f6)][V(0x212)](a[V(0x1f7)])||b?.[V(0x1f6)][V(0x212)](a['parent']||'')||this['options'][V(0x1fb)];if(f&&c)throw d;}else{if(this[V(0x24a)](a)){const g=b?.['proGenerators']['includes'](a[V(0x1f7)])||b?.[V(0x22f)][V(0x212)](a['parent']||'');if(g&&c)throw V(0x209)+a[V(0x1f7)]+V(0x24e);}}}catch(h){Log['error'](h),process[V(0x211)](0x1);}}[a143L(0x21e)](a){const W=a143L;return W(0x229)in a;}['isGenerator'](a){return!('options'in a);}['description'](){const X=a143L;return this['options'][X(0x22b)]||this[X(0x229)][X(0x226)]||X(0x20a);}['shortDesc'](){const Y=a143L;return this['options']['shortDesc']||Y(0x223);}[a143L(0x23c)](){const Z=a143L;return this[Z(0x229)][Z(0x23c)]||Z(0x20c);}['examples'](){const a0=a143L;return this[a0(0x229)][a0(0x21b)]||[];}[a143L(0x238)](){const a1=a143L;return this['options'][a1(0x238)]||a1(0x210);}['experimental'](){const a2=a143L;return this[a2(0x229)]['experimental']||![];}}
@@ -1 +1 @@
1
- const a144j=a144d;function a144c(){const m=['confirm','constructor','1251496uwCilh','(((.+)+)+)+$','6ioqkcw','password','6kLpWuF','1305318ezviOp','answer','toString','search','1102250CxqGAg','7857720QeEWSZ','130366qVhQCS','apply','prompt','53625iVBZSk','623544lvTLVY'];a144c=function(){return m;};return a144c();}function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a144d(a,b);}(function(a,b){const f=a144d,c=a();while(!![]){try{const d=-parseInt(f(0x1f8))/0x1*(-parseInt(f(0x201))/0x2)+parseInt(f(0x1fb))/0x3+parseInt(f(0x1fc))/0x4+parseInt(f(0x1f6))/0x5+parseInt(f(0x1f1))/0x6*(parseInt(f(0x1f2))/0x7)+parseInt(f(0x1ff))/0x8+-parseInt(f(0x1f7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x3e4a4));const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a144d;if(c){const e=c[g(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const h=a144d;return a144a[h(0x1f4)]()[h(0x1f5)]('(((.+)+)+)+$')[h(0x1f4)]()[h(0x1fe)](a144a)[h(0x1f5)](h(0x200));});a144a();import a144e from'inquirer';export class Actions{static async['ask'](a,b){const i=a144d,{answer:c}=await a144e[i(0x1fa)]({'type':b?i(0x1f0):'input','name':i(0x1f3),'message':a});return c;}static async[a144j(0x1fd)](a,b=![]){const k=a144j,{answer:c}=await a144e[k(0x1fa)]({'type':k(0x1fd),'name':'answer','message':a,'default':b});return c;}static async['options'](a){const l=a144j,b=await a144e[l(0x1fa)](a);return b;}}
1
+ const a144h=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=-parseInt(f(0x152))/0x1+-parseInt(f(0x15c))/0x2+-parseInt(f(0x156))/0x3*(-parseInt(f(0x14f))/0x4)+parseInt(f(0x15f))/0x5*(-parseInt(f(0x15d))/0x6)+-parseInt(f(0x154))/0x7*(-parseInt(f(0x159))/0x8)+parseInt(f(0x155))/0x9*(parseInt(f(0x14c))/0xa)+-parseInt(f(0x151))/0xb*(-parseInt(f(0x157))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0xece1c));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(0x158)]()['search'](g(0x15e))[g(0x158)]()['constructor'](a144a)['search'](g(0x15e));});a144a();import a144e from'inquirer';function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x14c;let f=c[d];return f;},a144d(a,b);}export class Actions{static async[a144h(0x14e)](a,b){const i=a144h,{answer:c}=await a144e[i(0x150)]({'type':b?i(0x153):i(0x15a),'name':i(0x14d),'message':a});return c;}static async['confirm'](a,b=![]){const j=a144h,{answer:c}=await a144e[j(0x150)]({'type':j(0x15b),'name':j(0x14d),'message':a,'default':b});return c;}static async['options'](a){const b=await a144e['prompt'](a);return b;}}function a144c(){const k=['485110PRqwpk','answer','ask','3748OlaMYE','prompt','1474UMvPnf','1356021TIIbcy','password','168pIvZDW','81ulyxHU','4398FxtJwV','191556PcOVSP','toString','307784pjnZOM','input','confirm','3782214rWbqtR','12402QHeYTH','(((.+)+)+)+$','1585DuToDl'];a144c=function(){return k;};return a144c();}
@@ -1 +1 @@
1
- const a145t=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=parseInt(p(0x74))/0x1+parseInt(p(0xf9))/0x2*(parseInt(p(0x138))/0x3)+parseInt(p(0x12b))/0x4*(parseInt(p(0x120))/0x5)+-parseInt(p(0x147))/0x6+parseInt(p(0x91))/0x7*(parseInt(p(0xa9))/0x8)+parseInt(p(0xec))/0x9+-parseInt(p(0x6e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x81fdb));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x156)]()['search'](r(0x11a))[r(0x156)]()['constructor'](a145a)[r(0x105)](r(0x11a));});a145a();import a145e from'fs';import a145f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x68;let f=c[d];return f;},a145d(a,b);}const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});function a145c(){const a9=['\x20DESCRIPTION:\x20','Key\x20Name:\x20[','\x20AZONE:\x20','apply','state','sort','7248852uTwBXl','running','HostedZones','eu-west-1','exit','all','route53CreateHostedZone','Final\x20list\x20of\x20ECR\x20repositories:','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','find','config','ap-northeast-2','Instances','1082jLOKHX','status','getSecurityGroups','eu-north-1','RegistrationPrice','ask','createKeyPairEC2Key','Canonical*Ubuntu*20.04*','Availability','Error\x20fetching\x20domain\x20pricing:','Failed\x20to\x20create\x20repository\x20in\x20','Authorization\x20token\x20is\x20missing','search','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','**\x20Available\x20Security\x20Groups\x20**','length','date','authorizationToken','\x20:\x20','KeyMaterial','.pem.txt','SubnetId','No\x20instances\x20found','GroupName','sgId','Timeout\x20while\x20processing\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','instanceId','eu-central-2','chooseSecurityGroup','statusCode','repositories','Created:\x20','(((.+)+)+)+$','\x20opened!','Instance\x20rebooted!','createKeyPair','type','description','2095LSwwRe','The\x20domain\x20\x27','Setting\x20SG\x20ID\x20to:\x20','getEcrLoginPassword','\x20NAME:\x20','chooseInstance','readFileSync','\x20SUBNETID:\x20','deleteKeyPair','minCount','\x20ENV:\x20','9320ntkYdC','error','privateIp','chooseVPC','ap-south-2','success','imageId','ignore','Name','\x20CIDR:\x20','key','Error\x20linking\x20EC2\x20to\x20Route\x2053:','suggestion','2400awvmwZ','\x20PUB_IP:\x20','UserData','machine','Authorization\x20data\x20is\x20empty','us-west-1','ecrDeleteRepository','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Value','$response','filter','eu-central-1','trim','isFile','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','2296914trdISB','\x20Status\x20Code:\x20','parse','join','split','GroupId','createFile','architecture','linkEC2ToRoute53','Error\x20generating\x20key\x20pair','race','subnet-id','vpcId','utf8','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','toString','_keys','ap-south-1','template','forEach','\x20AMIID:\x20','root-device-type','17095820SHyBFy','env','eu-south-2','stop','chmod\x20400\x20','us-east-1','61967YLfHDp','**\x20Available\x20\x20VPCs\x20**','checkDomainAvailability','Hosted\x20zone\x20created\x20successfully!','notice','ec2rebootInstance','\x20STATUS:\x20','getMakaProjectConfig','concat','maka-cli','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','pop','Description','\x27\x20has\x20been\x20registered\x20successfully.','send','confirm','now','ingressRule','il-central-1','Description:','getAppConfigPath','message','tcp','us-east-2','terminated',',\x20Name:\x20','tag:created-by','Region:\x20','region','21581eAEDtX','listAllEcrRepositories','subnetId','cidr','warn','UPSERT','Prices','AvailabilityZone','includes','\x20to\x20','push',',\x20URI:\x20','Repository\x20\x22','ec2terminateInstance','CidrBlock','No\x20subnets\x20found.','tags','timeout','eu-west-2','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ssh.json','nextToken','pem','904UejWCf','writeFileSync','VpcId','bright','Port\x20','amiId','sgIds','Subnets','from','start','me-south-1','maxCount','ap-east-1','\x20SGID:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','repositoryName','No\x20images\x20found.','getSubnetCidr','KeyName','name','httpStatusCode','publicIp','getTime','desc','image-type','ap-northeast-1','authorizationData','ebs','listAvailableAMIs','hvm','changeResourceRecordSets','\x20INSTANCE_ID:\x20','ec2describeInstances','map','info','userData','stringify','Canonical*Ubuntu*18.04*','subnet','Processing\x20','sgPorts','Could\x20not\x20find\x20hosted\x20zone','fsi','base64','ID:\x20','\x20PRIV_IP:\x20','Invalid\x20choice','\x20VPCID:\x20','log','ap-southeast-1','Error\x20creating\x20hosted\x20zone','listAvailableSubnets','ec2describeKeys','us-west-2','CreationDate','From\x20AWS:','ap-southeast-4','eu-west-3','ca-central-1','0.0.0.0/0','Setting\x20AMI\x20ID\x20to\x20'];a145c=function(){return a9;};return a145c();}export class AWS{['fsi'];constructor(){const s=a145d;this[s(0xd3)]=new FSI();}async[a145t(0x116)](a){const u=a145t;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log[u(0x78)](u(0x107)),d['forEach'](function(h){const v=u;h[v(0xbc)]===a?Log[v(0x78)](v(0xd5)+h['id']+'\x20SG\x20NAME:\x20'+h['name']+v(0xb6)+h[v(0x111)]):Log[v(0xac)](v(0xd5)+h['id']+'\x20SG\x20NAME:\x20'+h[v(0xbc)]+v(0xb6)+h[v(0x111)]);});const g=await Actions[u(0xfe)](u(0x13f)+b+']\x20')||b[u(0x156)]();d['forEach'](function(h){const w=u;h['id']===parseInt(g)&&(f=h[w(0x111)],Log[w(0x130)](w(0x122)+f+'\x0a'));});}else f=c,Log[u(0x130)](u(0x122)+f+'\x0a');if(f==='')throw new Error(u(0xb7));return f;}catch(h){Log['error'](h);throw h;}}async[a145t(0xc5)](){const x=a145t;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':x(0x14e),'Values':['x86_64']},{'Name':'virtualization-type','Values':[x(0xc6)]},{'Name':x(0x6d),'Values':[x(0xc4)]},{'Name':x(0xea),'Values':['available']},{'Name':x(0xc1),'Values':[x(0x13b)]},{'Name':x(0x11f),'Values':[x(0xce),x(0x100)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b[x(0x82)](d);if(f&&f['length']>0x0){const g=new Date(),h=new Date(g[x(0xbf)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[x(0x142)](j=>j[x(0xdf)]&&!j[x(0x80)]?.[x(0x99)]('UNSUPPORTED')&&new Date(j[x(0xdf)])>h)[x(0xca)](j=>({'amiId':j['ImageId'],'desc':j[x(0x80)],'date':j[x(0xdf)]}));if(i[x(0x108)]>0x0){i[x(0xeb)]((n,o)=>new Date(o[x(0x109)])[x(0xbf)]()-new Date(n['date'])[x(0xbf)]());const j=i['slice'](0x0,0x4),k=j['map']((n,o)=>({'id':o,'amiId':n[x(0xae)],'desc':n[x(0xc0)]}));k[x(0x6b)](n=>{const y=x;Log['bright'](y(0xd5)+n['id']+y(0x6c)+n['amiId']+y(0xe6)+n[y(0xc0)]);});const l=await Actions[x(0xfe)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',m=k[x(0xf5)](n=>n['id']===parseInt(l));if(m)a=m[x(0xae)],Log[x(0x130)](x(0xe5)+a+x(0x10b)+m[x(0xc0)]);else throw Log[x(0x12c)](x(0xb7));}else throw Log['error'](x(0xf4));}else throw Log[x(0x12c)](x(0xb9));}catch(n){Log[x(0x12c)](n);}return a;}async[a145t(0xdc)](){const z=a145t;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[z(0x82)](d);if(f&&f[z(0x108)]>0x0){const g=f['map']((j,k)=>({'id':k,'cidr':j['CidrBlock'],'az':j[z(0x98)],'subnetId':j[z(0x10e)]}));g[z(0x6b)](j=>{const A=z;Log['bright'](A(0xd5)+j['id']+A(0x134)+j[A(0x94)]+A(0xe8)+j['az']+A(0x127)+j[A(0x93)]);});const h=await Actions['ask'](z(0xa5))||'0',i=g['find'](j=>j['id']===parseInt(h));if(i)a=i[z(0x93)],Log[z(0x130)]('Setting\x20Subnet\x20ID\x20to\x20'+a);else throw Log['error'](z(0xb7));}else throw Log[z(0x12c)](z(0xa0));}catch(j){Log[z(0x12c)](j);}return a;}async[a145t(0xba)](a){const B=a145t;try{const b=new EC2Client({}),c={'Filters':[{'Name':B(0x152),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b['send'](d);return e[B(0xb0)]&&e[B(0xb0)][B(0x108)]>0x0?e[B(0xb0)][0x0][B(0x9f)]||'':'';}catch(f){return Log['error'](f),'';}}async['ecrCreateRepository'](a){const C=a145t;try{const b=new ECRClient({'region':a[C(0x90)]}),c={'repositoryName':a[C(0xbc)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log[C(0x130)](C(0x9d)+a[C(0xbc)]+'\x22\x20created\x20successfully\x20in\x20'+a[C(0x90)]+'.'),f;}catch(g){Log[C(0x12c)](C(0x103)+a[C(0x90)]+':\x20'+g);throw g;}}async[a145t(0x92)](a){const D=a145t,b=[D(0x73),'us-east-2',D(0x13d),D(0xde),D(0x69),'ap-northeast-3',D(0xf7),D(0xda),'ap-southeast-2',D(0xc2),D(0xe3),D(0x143),D(0xef),D(0xa3),D(0xe2),D(0xfc),'sa-east-1','af-south-1',D(0xb5),D(0x12f),'ap-southeast-3',D(0xe1),'ca-west-1','eu-south-1',D(0x70),D(0x115),D(0xb3),'me-central-1',D(0x86)],c=['us-east-1',D(0x8b),D(0x13d),D(0xde)],d=a===D(0xf1)?b:a?a[D(0x14b)](','):c;let f=[];const g=Log['withSpinner']();for(const h of d){g[D(0xb2)](D(0xd0)+h[D(0x144)]()+'...');const i=new ECRClient({'region':h[D(0x144)]()});try{let j=undefined;do{const k=await Promise[D(0x151)]([i[D(0x82)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(D(0xa2)),0x7d0))]);if(k===D(0xa2)){Log['warn'](D(0x112)+h[D(0x144)]()+'.');break;}else k[D(0x118)]&&k[D(0x118)][D(0x108)]>0x0&&(f=f[D(0x7c)](k[D(0x118)][D(0xca)](l=>({'name':l[D(0xb8)],'uri':l['repositoryUri'],'region':h[D(0x144)]()}))));j=k[D(0xa7)];}while(j);}catch(l){Log[D(0x12c)]('Failed\x20in\x20'+h[D(0x144)]()+':\x20'+l[D(0x89)]);}finally{g[D(0x71)]();}}return f[D(0x108)]>0x0?(console[D(0xd9)](),Log[D(0x130)](D(0xf3)),f[D(0x6b)](m=>{const E=D;Log[E(0xcb)](E(0x8f)+m[E(0x90)]+E(0x8d)+m[E(0xbc)]+E(0x9c)+m['uri']);})):Log[D(0x95)](D(0x146)),f;}async[a145t(0xf2)](a){const F=a145t;try{const b={'CallerReference':''+Date[F(0x84)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log['success'](F(0x77));}catch(d){Log['error'](F(0xdb)),console[F(0x12c)](d);}}async['registerDomain'](a,b,c,d){const G=a145t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[G(0x82)](f),Log['notice'](G(0x121)+b+G(0x81));}catch(g){Log[G(0x12c)]('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log[G(0x95)](G(0xe0)),console[G(0x12c)](G(0x148)+g[G(0x141)][G(0x117)]),console[G(0x12c)]('\x20Error\x20Rason:\x20'+g['$response']['reason']);}}async[a145t(0x76)](a){const H=a145t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[H(0x82)](c),e=d[H(0x101)]==='AVAILABLE';if(e){const f=a[H(0x14b)]('.')[H(0x7f)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[H(0x82)](h);if(i&&i[H(0x97)]&&i['Prices'][0x0]?.[H(0xfd)]){const j=i[H(0x97)][0x0][H(0xfd)];return{'available':e,'cost':j};}}catch(k){console[H(0x12c)](H(0x102),k);}}return{'available':e};}async[a145t(0x14f)](a,b,c){const I=a145t;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.['HostedZones'])throw Log['error'](I(0xd2));const e=d?.[I(0xee)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':I(0x96),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[I(0xc7)](f),Log[I(0x78)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+I(0x9a)+c);}catch(g){console[I(0x12c)](I(0x136),g);}}async[a145t(0x123)]({awsAccountId:a,region:b}){const J=a145t,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c['send'](d);if(!f[J(0xc3)]||f[J(0xc3)][J(0x108)]===0x0)throw new Error(J(0x13c));const g=f['authorizationData'][0x0];if(!g['authorizationToken'])throw new Error(J(0x104));const h=g[J(0x10a)];if(!h)throw new Error(J(0xa4));const i=Buffer[J(0xb1)](h,J(0xd4))[J(0x156)](),j=i[J(0x14b)](':')[0x1];if(!j)throw new Error(J(0x7e));return j;}catch(k){Log[J(0x12c)](k);throw k;}}async[a145t(0x13e)]({repoName:a,region:b}){const K=a145t,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[K(0x82)](d);return f;}catch(g){Log[K(0x12c)](g);throw g;}}async['ec2create'](a){const L=a145t;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[L(0x131)],'InstanceType':a[L(0x11e)],'KeyName':a[L(0x135)],'MaxCount':a[L(0xb4)],'MinCount':a[L(0x129)],'SecurityGroupIds':a[L(0xaf)][L(0x14b)](','),'SubnetId':a[L(0xcf)],'TagSpecifications':[{'ResourceType':'instance','Tags':a[L(0xa1)]}]};a[L(0xcc)]&&(b[L(0x13a)]='file://'+a[L(0xcc)]);const c=new RunInstancesCommand(b),d=await client[L(0x82)](c);return d;}catch(f){Log['error'](f);}}async[a145t(0x9e)](a){const M=a145t;try{const b={'InstanceIds':[a[M(0x114)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[M(0x12c)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const N=a145t,c=this[N(0xd3)][N(0x88)](b),d=a145f[N(0x14a)](c,'_keys',a+N(0x10d));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[N(0x82)](g),i=h[N(0x10c)];if(i){await this[N(0xd3)][N(0x14d)]({'filePath':d,'data':i}),execSync(N(0x72)+d,{'stdio':N(0x132)});const j=this[N(0xd3)]['isFile'](d);if(j)return Log['success']('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error(N(0x150));}catch(k){Log['error'](k),process[N(0xf0)](0x1);}}async[a145t(0x85)]({port:a,groupId:b}){const O=a145t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':O(0x8a),'IpRanges':[{'CidrIp':O(0xe4),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[O(0x78)](O(0xad)+a+O(0x11b)),await client[O(0x82)](d);}async['ec2createSG'](a){const P=a145t;try{a[P(0x11f)]===''&&(a[P(0x11f)]=await Actions[P(0xfe)](P(0x87))||'Web\x20App');const b={'Description':a[P(0x11f)],'GroupName':a[P(0xbc)],'VpcId':a[P(0x153)]},c=new CreateSecurityGroupCommand(b),d=await client[P(0x82)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[P(0xd1)][P(0x6b)](g=>{const Q=P;this[Q(0x85)]({'port':parseInt(g),'groupId':f});}),Log[P(0x130)](P(0x119)+f+P(0x124)+a['name']);}catch(g){return Log['error'](g),![];}return!![];}async[a145t(0xdd)](a){const R=a145t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[R(0x6b)]((h,i)=>{const S=R;h[S(0xbb)]&&b[S(0x9b)]({'id':i,'name':h[S(0xbb)]});}),b[R(0x108)]>0x0&&b[R(0x6b)](h=>{const T=R;h[T(0xbc)]===a?.[T(0x137)]?Log['success']('ID:\x20'+h['id']+T(0x124)+h[T(0xbc)]):Log[T(0x78)](T(0xd5)+h['id']+'\x20NAME:\x20'+h[T(0xbc)]);})):Log[R(0x12c)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[R(0x12c)](h);}return b;}async[a145t(0x128)](a){const U=a145t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[U(0x82)](c);}catch(d){Log[U(0x12c)](d),process[U(0xf0)](0x1);}}async[a145t(0xc9)](){const V=a145t,a=[];try{const b={'Filters':[{'Name':V(0x8e),'Values':[V(0x7d)]}]},c=new DescribeInstancesCommand(b),d=await client[V(0x82)](c);d['Reservations']?.[V(0x6b)]((f,g)=>{const W=V;if(f?.[W(0xf8)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[W(0xf8)][0x0],n=m?.[W(0xf5)](({Key:o})=>o==='environment');a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[W(0x133)],'name':l,'env':n?.[W(0x140)]});}}),a[V(0x108)]>0x0?a['forEach'](f=>{const X=V,g=X(0xd5)+f['id']+X(0x124)+f[X(0xbc)]+X(0x12a)+f[X(0x6f)]+X(0x7a)+f['status']+X(0xc8)+f['instanceId']+X(0x139)+f[X(0xbe)]+X(0xd6)+f[X(0x12d)];if(f[X(0xfa)]===X(0x8c))Log[X(0x12c)](g);else f[X(0xfa)]===X(0xed)?Log['success'](g):Log[X(0x78)](g);}):Log[V(0x12c)](V(0x106));}catch(f){Log[V(0x12c)](f);}return a;}async[a145t(0x79)](a){const Y=a145t;try{const b={'InstanceIds':[a[Y(0x114)]]},c=new RebootInstancesCommand(b),d=await client[Y(0x82)](c);return d['$metadata'][Y(0xbd)]===0xc8&&Log[Y(0x130)](Y(0x11c)),d;}catch(f){Log[Y(0x12c)](f);}}async[a145t(0x12e)](){const Z=a145t;let a='';Log[Z(0x78)](Z(0x75));const b=new DescribeVpcsCommand({}),c=await client[Z(0x82)](b),{Vpcs:d}=c,e=[];d&&d[Z(0x6b)]((g,h)=>{const a0=Z;g[a0(0xab)]&&g[a0(0x9f)]&&e[a0(0x9b)]({'id':h,'vpcId':g['VpcId'],'cidr':g[a0(0x9f)]});});e['forEach'](function(g){const a1=Z;console[a1(0xd9)](a1(0xd5)+g['id']+a1(0xd8)+g[a1(0x153)]+'\x20CIDR:\x20'+g[a1(0x94)]);});const f=await Actions[Z(0xfe)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[Z(0x6b)](function(g){const a2=Z;g['id']==f&&(a=g['vpcId'],Log[a2(0x130)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[Z(0x12c)](Z(0xb7)),'';return a;}async[a145t(0x125)](){const a3=a145t,a=await this[a3(0xc9)]();if(a['length']===0x0)return Log[a3(0x12c)](a3(0x10f)),null;const b=await Actions[a3(0xfe)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[a3(0x12c)](a3(0xd7)),process['exit'](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145t(0x11d)]({env:a}){const a4=a145t,b=this[a4(0xd3)][a4(0x7b)](),{appName:c}=b,d=c+'-'+a,f=await Actions[a4(0xfe)](a4(0xe7)+d+']\x20')||d,{filePath:g}=await this[a4(0xff)]({'keyName':f,'env':a});try{const h=await Actions[a4(0x83)](a4(0x113),!![]);if(h)try{const i=a145f[a4(0x14a)](a4(0xf6),a,a4(0xa6));!this[a4(0xd3)][a4(0x145)](i)&&await this[a4(0xd3)][a4(0x6a)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':f}});const j=a145e[a4(0x126)](a145f[a4(0x14a)](a4(0xf6),a,a4(0xa6)),a4(0x154)),k=JSON[a4(0x149)](j);k[a4(0xa8)]=a145f[a4(0x14a)](a4(0x68),f+a4(0x10d)),a145e[a4(0xaa)](a145f[a4(0x14a)](a4(0xf6),a,a4(0xa6)),JSON[a4(0xcd)](k,null,0x2));}catch(l){Log['error'](l),Log[a4(0x12c)](a4(0x155));}}catch(m){Log[a4(0x12c)](m),process[a4(0xf0)](0x1);}return{'keyName':f,'filePath':g};}async[a145t(0xfb)](a){const a5=a145t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client['send'](d),{SecurityGroups:f}=e;f&&f[a5(0x6b)](function(i,j){const a6=a5;i[a6(0x110)]&&i[a6(0x14c)]&&b['push']({'id':j,'name':i[a6(0x110)],'sgId':i[a6(0x14c)]});});let g='',h=0x0;return b[a5(0x6b)](function(i){const a7=a5;i[a7(0xbc)]===a&&(g=i[a7(0x111)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const a8=a145t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[a8(0x12c)](d),process[a8(0xf0)](0x1);}}}
1
+ const a145r=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=parseInt(p(0x181))/0x1+-parseInt(p(0x1a8))/0x2+-parseInt(p(0x12f))/0x3+parseInt(p(0x147))/0x4+-parseInt(p(0x193))/0x5*(parseInt(p(0x1bb))/0x6)+parseInt(p(0x165))/0x7*(parseInt(p(0x183))/0x8)+parseInt(p(0x186))/0x9*(parseInt(p(0x199))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0xe4132));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const q=a145d;return a145a[q(0x1d6)]()[q(0x11b)](q(0x1a1))[q(0x1d6)]()[q(0x12e)](a145a)['search']('(((.+)+)+)+$');});a145a();import a145e from'fs';import a145f from'path';function a145c(){const a8=['35664JkGpGd','Error\x20creating\x20hosted\x20zone','createKeyPair','25398jrSMtD','SubnetId','bright','info','send','The\x20domain\x20\x27','Processing\x20','sa-east-1','createFile','hvm','Description','base64','readFileSync','2296855hchpCg','key','virtualization-type','sgPorts','terminated','desc','150FunvLi','checkDomainAvailability','ImageId','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','eu-west-3','name','Region:\x20','\x20STATUS:\x20','(((.+)+)+)+$','length','From\x20AWS:','environment','push','Value','ap-east-1','212818fDIwem','UNSUPPORTED','getEcrLoginPassword','changeResourceRecordSets','amiId','ask','image-type','Canonical*Ubuntu*18.04*','maka-cli','$metadata','VpcId','subnet','sort','eu-central-2','chooseInstance','state','Key\x20Name:\x20[','linkEC2ToRoute53','cidr','6uVZjXr','subnetId','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','Authorization\x20token\x20is\x20missing','getSecurityGroups','listHostedZonesByName','chmod\x20400\x20','ap-northeast-1','available','\x20CIDR:\x20','ignore','eu-west-1','getTime','**\x20Available\x20\x20VPCs\x20**','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','registerDomain',',\x20URI:\x20','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','find','Setting\x20SG\x20ID\x20to:\x20','createKeyPairEC2Key','Failed\x20in\x20','AvailabilityZone','getSubnetCidr','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','eu-south-2','slice','toString','trim','Invalid\x20choice','Successfully\x20linked\x20EC2\x20instance\x20','date','Authorization\x20data\x20is\x20empty','GroupName','\x20AMIID:\x20','chooseSecurityGroup','success','0.0.0.0/0','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','deleteKeyPair','\x20PRIV_IP:\x20','TLDRulesViolation','ec2create','Could\x20not\x20find\x20hosted\x20zone','type','Error\x20linking\x20EC2\x20to\x20Route\x2053:','RegistrationPrice','fsi','ap-southeast-3','ssh.json','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','CreationDate','split','listAvailableSubnets','\x20SG\x20NAME:\x20','uri','UserData','ca-central-1','tcp','notice','UPSERT','us-west-1','\x20INSTANCE_ID:\x20','userData','\x20Request\x20ID:\x20','ap-southeast-1','\x20:\x20','race','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','instanceId','Please\x20choose\x20a\x20VPC:\x20[0]\x20','withSpinner','af-south-1','**\x20Available\x20Security\x20Groups\x20**','repositoryName','search','Prices','KeyMaterial','join','authorizationData','_keys','writeFileSync','Response:\x20','getMakaProjectConfig','Subnets','status','\x20opened!','machine','description','us-west-2','ec2createSG','Error\x20fetching\x20domain\x20pricing:','EKS','Created:\x20','constructor','1567944VmkFIC','privateIp','isFile',',\x20Name:\x20','Pem\x20key\x20saved\x20to\x20','log','config','confirm','instance','me-south-1','maxCount','eu-west-2','includes','\x20AZONE:\x20','ebs','exit','\x20PUB_IP:\x20','root-device-type','KeyName','ap-southeast-2','ingressRule','template','requestId','error','3496300qOdhwd','\x20Status\x20Code:\x20','region','Canonical*Ubuntu*20.04*','\x20to\x20','CidrBlock','repositories','Error\x20Message:\x20','ec2describeInstances','us-east-1','listAllEcrRepositories','running','ap-northeast-2','concat','\x27\x20has\x20been\x20registered\x20successfully.','stop','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20NAME:\x20','eu-north-1','\x20SGID:\x20','Final\x20list\x20of\x20ECR\x20repositories:','filter','imageId','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','authorizationToken','env','ec2terminateInstance','sgId','vpcId','No\x20images\x20found.','1092vOxKYz','httpStatusCode','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','Reservations','chooseVPC','deleteSecurityGroup','HostedZones','minCount','timeout','now','from','ap-south-1','ec2describeKeys','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','warn','pem','message','ca-west-1','us-east-2','Error\x20saving\x20pem\x20file,\x20aborting','forEach','.pem.txt','stringify','map','\x20SUBNETID:\x20','eu-south-1','ID:\x20','pop','410769aHvXGL','ecrDeleteRepository'];a145c=function(){return a8;};return a145c();}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({});function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x109;let f=c[d];return f;},a145d(a,b);}export class AWS{[a145r(0x1ea)];constructor(){const s=a145r;this[s(0x1ea)]=new FSI();}async[a145r(0x1de)](a){const t=a145r;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log['notice'](t(0x119)),d['forEach'](function(h){const u=t;h['name']===a?Log[u(0x10b)](u(0x17f)+h['id']+u(0x1f1)+h[u(0x19e)]+'\x20SGID:\x20'+h[u(0x162)]):Log[u(0x188)](u(0x17f)+h['id']+u(0x1f1)+h[u(0x19e)]+u(0x15a)+h[u(0x162)]);});const g=await Actions[t(0x1ad)](t(0x1cc)+b+']\x20')||b[t(0x1d6)]();d['forEach'](function(h){const v=t;h['id']===parseInt(g)&&(f=h[v(0x162)],Log[v(0x1df)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log[t(0x1df)](t(0x1ce)+f+'\x0a');if(f==='')throw new Error(t(0x157));return f;}catch(h){Log[t(0x146)](h);throw h;}}async['listAvailableAMIs'](){const w=a145r;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':'architecture','Values':['x86_64']},{'Name':w(0x195),'Values':[w(0x18f)]},{'Name':w(0x140),'Values':[w(0x13d)]},{'Name':w(0x1b7),'Values':[w(0x1c3)]},{'Name':w(0x1ae),'Values':[w(0x127)]},{'Name':w(0x128),'Values':[w(0x1af),w(0x14a)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b['send'](d);if(f&&f[w(0x1a2)]>0x0){const g=new Date(),h=new Date(g[w(0x1c7)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[w(0x15c)](j=>j[w(0x1ee)]&&!j[w(0x190)]?.[w(0x13b)](w(0x1a9))&&!j[w(0x190)]?.[w(0x13b)](w(0x12c))&&new Date(j['CreationDate'])>h)[w(0x17c)](j=>({'amiId':j[w(0x19b)],'desc':j[w(0x190)],'date':j[w(0x1ee)]}));if(i['length']>0x0){i[w(0x1b4)]((n,o)=>new Date(o[w(0x1da)])[w(0x1c7)]()-new Date(n['date'])[w(0x1c7)]());const j=i[w(0x1d5)](0x0,0x4),k=j[w(0x17c)]((n,o)=>({'id':o,'amiId':n[w(0x1ac)],'desc':n['desc']}));k[w(0x179)](n=>{const x=w;Log[x(0x188)](x(0x17f)+n['id']+x(0x1dd)+n[x(0x1ac)]+'\x20DESCRIPTION:\x20'+n[x(0x198)]);});const l=await Actions[w(0x1ad)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',m=k[w(0x1cd)](n=>n['id']===parseInt(l));if(m)a=m[w(0x1ac)],Log[w(0x1df)]('Setting\x20AMI\x20ID\x20to\x20'+a+w(0x112)+m[w(0x198)]);else throw Log[w(0x146)](w(0x157));}else throw Log[w(0x146)]('No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.');}else throw Log[w(0x146)](w(0x164));}catch(n){Log[w(0x146)](n);}return a;}async[a145r(0x1f0)](){const y=a145r;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[y(0x18a)](d);if(f&&f[y(0x1a2)]>0x0){const g=f[y(0x17c)]((j,k)=>({'id':k,'cidr':j[y(0x14c)],'az':j[y(0x1d1)],'subnetId':j[y(0x187)]}));g[y(0x179)](j=>{const z=y;Log[z(0x188)]('ID:\x20'+j['id']+z(0x1c4)+j[z(0x1ba)]+z(0x13c)+j['az']+z(0x17d)+j[z(0x1bc)]);});const h=await Actions['ask'](y(0x172))||'0',i=g[y(0x1cd)](j=>j['id']===parseInt(h));if(i)a=i[y(0x1bc)],Log[y(0x1df)]('Setting\x20Subnet\x20ID\x20to\x20'+a);else throw Log[y(0x146)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log[y(0x146)]('No\x20subnets\x20found.');}catch(j){Log[y(0x146)](j);}return a;}async[a145r(0x1d2)](a){const A=a145r;try{const b=new EC2Client({}),c={'Filters':[{'Name':'subnet-id','Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b['send'](d);return e['Subnets']&&e[A(0x124)][A(0x1a2)]>0x0?e[A(0x124)][0x0][A(0x14c)]||'':'';}catch(f){return Log['error'](f),'';}}async['ecrCreateRepository'](a){const B=a145r;try{const b=new ECRClient({'region':a[B(0x149)]}),c={'repositoryName':a[B(0x19e)]},d=new CreateRepositoryCommand(c),f=await b[B(0x18a)](d);return Log[B(0x1df)]('Repository\x20\x22'+a[B(0x19e)]+'\x22\x20created\x20successfully\x20in\x20'+a[B(0x149)]+'.'),f;}catch(g){Log[B(0x146)]('Failed\x20to\x20create\x20repository\x20in\x20'+a['region']+':\x20'+g);throw g;}}async[a145r(0x151)](a){const C=a145r,b=[C(0x150),C(0x177),C(0x10d),C(0x129),C(0x170),'ap-northeast-3',C(0x153),C(0x111),C(0x142),C(0x1c2),C(0x109),'eu-central-1',C(0x1c6),C(0x13a),C(0x19d),C(0x159),C(0x18d),C(0x118),C(0x1a7),'ap-south-2',C(0x1eb),'ap-southeast-4',C(0x176),C(0x17e),C(0x1d4),C(0x1b5),C(0x138),'me-central-1','il-central-1'],c=[C(0x150),'us-east-2','us-west-1',C(0x129)],d=a==='all'?b:a?a[C(0x1ef)](','):c;let f=[];const g=Log[C(0x117)]();for(const h of d){g['start'](C(0x18c)+h['trim']()+'...');const i=new ECRClient({'region':h['trim']()});try{let j=undefined;do{const k=await Promise[C(0x113)]([i[C(0x18a)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l('timeout'),0x7d0))]);if(k===C(0x16d)){Log[C(0x173)]('Timeout\x20while\x20processing\x20'+h[C(0x1d7)]()+'.');break;}else k[C(0x14d)]&&k['repositories'][C(0x1a2)]>0x0&&(f=f[C(0x154)](k[C(0x14d)]['map'](l=>({'name':l[C(0x11a)],'uri':l['repositoryUri'],'region':h[C(0x1d7)]()}))));j=k['nextToken'];}while(j);}catch(l){Log[C(0x146)](C(0x1d0)+h['trim']()+':\x20'+l['message']);}finally{g[C(0x156)]();}}return f[C(0x1a2)]>0x0?(console[C(0x134)](),Log[C(0x1df)](C(0x15b)),f[C(0x179)](m=>{const D=C;Log[D(0x189)](D(0x19f)+m[D(0x149)]+D(0x132)+m[D(0x19e)]+D(0x1cb)+m[D(0x1f2)]);})):Log[C(0x173)](C(0x1d3)),f;}async['route53CreateHostedZone'](a){const E=a145r;try{const b={'CallerReference':''+Date[E(0x16e)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[E(0x1df)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[E(0x146)](E(0x184)),console['error'](d);}}async[a145r(0x1ca)](a,b,c,d){const F=a145r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a,'BillingContact':a},f=new RegisterDomainCommand(e),g=await route53Domains[F(0x18a)](f);Log['notice'](F(0x18b)+b+F(0x155)),Log[F(0x10b)](F(0x122)+JSON[F(0x17b)](g));}catch(h){Log[F(0x146)](F(0x1ed)),Log[F(0x173)](F(0x1a3)),h['$metadata']&&(console['error'](F(0x148)+h[F(0x1b1)]['httpStatusCode']),console[F(0x146)](F(0x110)+h[F(0x1b1)][F(0x145)])),console[F(0x146)](F(0x14e)+h[F(0x175)]),h['name']===F(0x1e4)?Log['error'](h[F(0x175)]):Log[F(0x146)]('An\x20unknown\x20error\x20occurred.'),console['error'](h);}}async[a145r(0x19a)](a){const G=a145r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[G(0x18a)](c),e=d['Availability']==='AVAILABLE';if(e){const f=a[G(0x1ef)]('.')[G(0x180)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[G(0x18a)](h);if(i&&i[G(0x11c)]&&i['Prices'][0x0]?.[G(0x1e9)]){const j=i[G(0x11c)][0x0][G(0x1e9)];return{'available':e,'cost':j};}}catch(k){console[G(0x146)](G(0x12b),k);}}return{'available':e};}async[a145r(0x1b9)](a,b,c){const H=a145r;try{const d=await route53[H(0x1c0)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[H(0x146)](H(0x1e6));const e=d?.[H(0x16b)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':H(0x10c),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[H(0x1ab)](f),Log['notice'](H(0x1d9)+a+H(0x14b)+c);}catch(g){console['error'](H(0x1e8),g);}}async[a145r(0x1aa)]({awsAccountId:a,region:b}){const I=a145r,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[I(0x18a)](d);if(!f[I(0x11f)]||f[I(0x11f)][I(0x1a2)]===0x0)throw new Error(I(0x1db));const g=f[I(0x11f)][0x0];if(!g[I(0x15f)])throw new Error(I(0x1be));const h=g[I(0x15f)];if(!h)throw new Error(I(0x1bd));const i=Buffer[I(0x16f)](h,I(0x191))[I(0x1d6)](),j=i[I(0x1ef)](':')[0x1];if(!j)throw new Error(I(0x15e));return j;}catch(k){Log['error'](k);throw k;}}async[a145r(0x182)]({repoName:a,region:b}){const J=a145r,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c['send'](d);return f;}catch(g){Log[J(0x146)](g);throw g;}}async[a145r(0x1e5)](a){const K=a145r;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[K(0x15d)],'InstanceType':a[K(0x1e7)],'KeyName':a[K(0x194)],'MaxCount':a[K(0x139)],'MinCount':a[K(0x16c)],'SecurityGroupIds':a['sgIds'][K(0x1ef)](','),'SubnetId':a[K(0x1b3)],'TagSpecifications':[{'ResourceType':K(0x137),'Tags':a['tags']}]};a[K(0x10f)]&&(b[K(0x1f3)]='file://'+a[K(0x10f)]);const c=new RunInstancesCommand(b),d=await client[K(0x18a)](c);return d;}catch(f){Log[K(0x146)](f);}}async[a145r(0x161)](a){const L=a145r;try{const b={'InstanceIds':[a[L(0x115)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[L(0x146)](f),{};}}async[a145r(0x1cf)]({keyName:a,env:b}){const M=a145r,c=this[M(0x1ea)]['getAppConfigPath'](b),d=a145f[M(0x11e)](c,M(0x120),a+M(0x17a));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[M(0x18a)](g),i=h[M(0x11d)];if(i){await this[M(0x1ea)][M(0x18e)]({'filePath':d,'data':i}),execSync(M(0x1c1)+d,{'stdio':M(0x1c5)});const j=this[M(0x1ea)][M(0x131)](d);if(j)return Log[M(0x1df)](M(0x133)+d),{'keyName':a,'filePath':d};else throw new Error(M(0x178));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[M(0x146)](k),process['exit'](0x1);}}async[a145r(0x143)]({port:a,groupId:b}){const N=a145r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':N(0x10a),'IpRanges':[{'CidrIp':N(0x1e0),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice']('Port\x20'+a+N(0x126)),await client['send'](d);}async[a145r(0x12a)](a){const O=a145r;try{a[O(0x128)]===''&&(a[O(0x128)]=await Actions['ask']('Description:')||'Web\x20App');const b={'Description':a[O(0x128)],'GroupName':a[O(0x19e)],'VpcId':a[O(0x163)]},c=new CreateSecurityGroupCommand(b),d=await client[O(0x18a)](c),{GroupId:f}=d;if(!d)throw new Error(O(0x19c));f&&a[O(0x196)][O(0x179)](g=>{const P=O;this[P(0x143)]({'port':parseInt(g),'groupId':f});}),Log['success'](O(0x12d)+f+'\x20NAME:\x20'+a['name']);}catch(g){return Log['error'](g),![];}return!![];}async[a145r(0x171)](a){const Q=a145r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[Q(0x18a)](d);if(!f)throw Q(0x19c);const {KeyPairs:g}=f;g?(g?.[Q(0x179)]((h,i)=>{const R=Q;h[R(0x141)]&&b[R(0x1a5)]({'id':i,'name':h[R(0x141)]});}),b['length']>0x0&&b[Q(0x179)](h=>{const S=Q;h[S(0x19e)]===a?.['suggestion']?Log[S(0x1df)]('ID:\x20'+h['id']+'\x20NAME:\x20'+h[S(0x19e)]):Log[S(0x10b)]('ID:\x20'+h['id']+S(0x158)+h[S(0x19e)]);})):Log['error'](Q(0x114));}catch(h){Log[Q(0x146)](h);}return b;}async[a145r(0x1e2)](a){const T=a145r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[T(0x18a)](c);}catch(d){Log[T(0x146)](d),process[T(0x13e)](0x1);}}async[a145r(0x14f)](){const U=a145r,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[U(0x1b0)]}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[U(0x168)]?.['forEach']((f,g)=>{const V=U;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.[V(0x1cd)](({Key:o})=>o===V(0x1a4));a[V(0x1a5)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[V(0x1a6)]});}}),a[U(0x1a2)]>0x0?a['forEach'](f=>{const W=U,g=W(0x17f)+f['id']+W(0x158)+f[W(0x19e)]+'\x20ENV:\x20'+f[W(0x160)]+W(0x1a0)+f['status']+W(0x10e)+f[W(0x115)]+W(0x13f)+f['publicIp']+W(0x1e3)+f[W(0x130)];if(f[W(0x125)]===W(0x197))Log[W(0x146)](g);else f['status']===W(0x152)?Log['success'](g):Log[W(0x10b)](g);}):Log[U(0x146)](U(0x1c9));}catch(f){Log[U(0x146)](f);}return a;}async['ec2rebootInstance'](a){const X=a145r;try{const b={'InstanceIds':[a[X(0x115)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[X(0x1b1)][X(0x166)]===0xc8&&Log[X(0x1df)]('Instance\x20rebooted!'),d;}catch(f){Log['error'](f);}}async[a145r(0x169)](){const Y=a145r;let a='';Log['notice'](Y(0x1c8));const b=new DescribeVpcsCommand({}),c=await client[Y(0x18a)](b),{Vpcs:d}=c,e=[];d&&d[Y(0x179)]((g,h)=>{const Z=Y;g[Z(0x1b2)]&&g[Z(0x14c)]&&e[Z(0x1a5)]({'id':h,'vpcId':g[Z(0x1b2)],'cidr':g[Z(0x14c)]});});e[Y(0x179)](function(g){const a0=Y;console[a0(0x134)]('ID:\x20'+g['id']+'\x20VPCID:\x20'+g[a0(0x163)]+a0(0x1c4)+g[a0(0x1ba)]);});const f=await Actions[Y(0x1ad)](Y(0x116))||0x0;e[Y(0x179)](function(g){const a1=Y;g['id']==f&&(a=g[a1(0x163)],Log[a1(0x1df)](a1(0x167)+a+'\x0a'));});if(a==='')return Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a145r(0x1b6)](){const a2=a145r,a=await this[a2(0x14f)]();if(a[a2(0x1a2)]===0x0)return Log[a2(0x146)]('No\x20instances\x20found'),null;const b=await Actions[a2(0x1ad)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[a2(0x146)](a2(0x1d8)),process[a2(0x13e)](0x0));const c=a[a2(0x1cd)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145r(0x185)]({env:a}){const a3=a145r,b=this[a3(0x1ea)][a3(0x123)](),{appName:c}=b,d=c+'-'+a,f=await Actions[a3(0x1ad)](a3(0x1b8)+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions[a3(0x136)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a145f[a3(0x11e)](a3(0x135),a,a3(0x1ec));!this[a3(0x1ea)][a3(0x131)](i)&&await this[a3(0x1ea)][a3(0x144)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':f}});const j=a145e[a3(0x192)](a145f[a3(0x11e)]('config',a,a3(0x1ec)),'utf8'),k=JSON['parse'](j);k[a3(0x174)]=a145f[a3(0x11e)](a3(0x120),f+a3(0x17a)),a145e[a3(0x121)](a145f[a3(0x11e)]('config',a,a3(0x1ec)),JSON[a3(0x17b)](k,null,0x2));}catch(l){Log['error'](l),Log[a3(0x146)](a3(0x1e1));}}catch(m){Log['error'](m),process[a3(0x13e)](0x1);}return{'keyName':f,'filePath':g};}async[a145r(0x1bf)](a){const a4=a145r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a4(0x18a)](d),{SecurityGroups:f}=e;f&&f[a4(0x179)](function(i,j){const a5=a4;i[a5(0x1dc)]&&i['GroupId']&&b[a5(0x1a5)]({'id':j,'name':i[a5(0x1dc)],'sgId':i['GroupId']});});let g='',h=0x0;return b['forEach'](function(i){const a6=a4;i[a6(0x19e)]===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145r(0x16a)](a){const a7=a145r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a7(0x18a)](c);}catch(d){Log[a7(0x146)](d),process['exit'](0x1);}}}
@@ -1 +1 @@
1
- function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0xd4;var f=c[d];return f;},a146d(a,b);}function a146c(){var n=['25052384HYaJNv','apply','search','5922150ZOnoGS','1818210ataskY','2438961crfGeC','(((.+)+)+)+$','263460HRqjlz','toString','1906074ZEqPzr','423387CvWGEk','constructor'];a146c=function(){return n;};return a146c();}(function(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0xdf))/0x1+-parseInt(k(0xd9))/0x2+-parseInt(k(0xda))/0x3+parseInt(k(0xdc))/0x4+-parseInt(k(0xd8))/0x5+parseInt(k(0xde))/0x6+parseInt(k(0xd5))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x9a6e3));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(0xd6)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0xdd)]()[m(0xd7)](m(0xdb))[m(0xdd)]()[m(0xd4)](e)['search'](m(0xdb));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
1
+ function a146c(){var n=['57QLoYAn','24538dlfTqy','26212kMlUcX','toString','5210kOFKlS','search','35XKOknr','8PdKFDO','963cdMqIk','234858LvqlPt','1490cSAkRb','77NmCFuJ','671935khHjbG','apply','constructor'];a146c=function(){return n;};return a146c();}function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0xbd;var f=c[d];return f;},a146d(a,b);}(function(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0xc1))/0x1+parseInt(k(0xc4))/0x2+-parseInt(k(0xc0))/0x3*(parseInt(k(0xc2))/0x4)+-parseInt(k(0xc6))/0x5*(-parseInt(k(0xc9))/0x6)+parseInt(k(0xcb))/0x7*(-parseInt(k(0xc7))/0x8)+-parseInt(k(0xc8))/0x9*(-parseInt(k(0xca))/0xa)+parseInt(k(0xbd))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x31f22));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(0xbe)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0xc3)]()['search']('(((.+)+)+)+$')['toString']()[m(0xbf)](e)[m(0xc5)]('(((.+)+)+)+$');});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(0x188))/0x1*(parseInt(j(0x194))/0x2)+-parseInt(j(0x18f))/0x3+parseInt(j(0x19e))/0x4*(-parseInt(j(0x198))/0x5)+-parseInt(j(0x1a3))/0x6+parseInt(j(0x18d))/0x7+-parseInt(j(0x19c))/0x8*(parseInt(j(0x18a))/0x9)+parseInt(j(0x190))/0xa*(parseInt(j(0x1a2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x73a9c));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0x199)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a[l(0x196)]()['search'](l(0x1a1))[l(0x196)]()[l(0x1a0)](a147a)[l(0x19d)]('(((.+)+)+)+$');});function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0x188;let f=c[d];return f;},a147d(a,b);}a147a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a147m(0x18e)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=[n(0x18e),a,b+n(0x192)+c+n(0x191)+d],g=n(0x197)+f[n(0x18c)]('\x20'),h=execSync(g,{'stdio':'inherit'})[n(0x196)]();return h;}catch(i){return Log[n(0x189)](i),'';}}static[a147m(0x193)]({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d='echo\x20'+c+o(0x19b)+a+o(0x192)+b+o(0x18b);return execSync(d,{'stdio':o(0x19a)}),d;}catch(f){return Log[o(0x189)](f),'';}}static[a147m(0x19f)]({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=[p(0x195),a+p(0x192)+b+'.amazonaws.com/'+c],f=p(0x197)+d[p(0x18c)]('\x20'),g=execSync(f,{'stdio':p(0x19a)})[p(0x196)]();return g;}catch(h){return Log[p(0x189)](h),'';}}}function a147c(){const q=['push','toString','docker\x20','1452365FodDNZ','apply','inherit','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','48QbejHf','search','8dwHkpR','pushImage','constructor','(((.+)+)+)+$','1493635iAnqwx','3248826QQLOKE','1mLFffd','error','268578noWpqI','.amazonaws.com','join','442757zXcAHJ','tag','1101303iLXEuV','100WHhoqS','.amazonaws.com/','.dkr.ecr.','awsLogin','1442450cqvece'];a147c=function(){return q;};return a147c();}
1
+ const a147m=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=parseInt(j(0xc8))/0x1*(parseInt(j(0xc6))/0x2)+parseInt(j(0xcb))/0x3*(-parseInt(j(0xc4))/0x4)+-parseInt(j(0xca))/0x5+-parseInt(j(0xd3))/0x6+-parseInt(j(0xbd))/0x7*(-parseInt(j(0xce))/0x8)+-parseInt(j(0xc7))/0x9+-parseInt(j(0xcf))/0xa*(-parseInt(j(0xc9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x7edff));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['toString']()[l(0xc5)]('(((.+)+)+)+$')['toString']()[l(0xc2)](a147a)[l(0xc5)](l(0xc3));});a147a();import{execSync}from'child_process';function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0xbc;let f=c[d];return f;},a147d(a,b);}import{Log}from'../log/log.class.js';function a147c(){const q=['.amazonaws.com','6001800mrFMCa','pushImage','apply','.amazonaws.com/','2305576dUomyU','toString','echo\x20','tag','docker\x20','constructor','(((.+)+)+)+$','845816TDTkQE','search','9346cNzVkT','913167xWMIFe','117ZrIgrh','1314379AGiUzj','1190515AgtmzX','3teLILq','error','join','8MTMRJp','100vJsELQ','.dkr.ecr.','inherit'];a147c=function(){return q;};return a147c();}export class Docker{static[a147m(0xc0)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=[n(0xc0),a,b+n(0xd0)+c+'.amazonaws.com/'+d],g=n(0xc1)+f['join']('\x20'),h=execSync(g,{'stdio':n(0xd1)})[n(0xbe)]();return h;}catch(i){return Log[n(0xcc)](i),'';}}static['awsLogin']({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d=o(0xbf)+c+'\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20'+a+o(0xd0)+b+o(0xd2);return execSync(d,{'stdio':o(0xd1)}),d;}catch(f){return Log['error'](f),'';}}static[a147m(0xd4)]({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=['push',a+p(0xd0)+b+p(0xbc)+c],f=p(0xc1)+d[p(0xcd)]('\x20'),g=execSync(f,{'stdio':p(0xd1)})[p(0xbe)]();return g;}catch(h){return Log[p(0xcc)](h),'';}}}
@@ -1 +1 @@
1
- function a148c(){var i=['264mHXwJU','52218kTWrLc','27695jrhmMI','1050873RGYYcR','apply','11570MtsAWW','(((.+)+)+)+$','8CIBhSQ','10452978TxSQtf','search','4358375IsvDiO','357686pTaQDR','1441qGWTns','toString','constructor','66GFGZTS'];a148c=function(){return i;};return a148c();}(function(a,b){var f=a148d,c=a();while(!![]){try{var d=parseInt(f(0x157))/0x1+parseInt(f(0x14f))/0x2+-parseInt(f(0x155))/0x3*(-parseInt(f(0x154))/0x4)+-parseInt(f(0x156))/0x5*(parseInt(f(0x153))/0x6)+-parseInt(f(0x14e))/0x7+-parseInt(f(0x14b))/0x8*(parseInt(f(0x14c))/0x9)+parseInt(f(0x149))/0xa*(parseInt(f(0x150))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0xa741b));var a148b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a148d;if(c){var e=c[g(0x158)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a148a=a148b(this,function(){var h=a148d;return a148a[h(0x151)]()['search'](h(0x14a))[h(0x151)]()[h(0x152)](a148a)[h(0x14d)](h(0x14a));});a148a();function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x149;var f=c[d];return f;},a148d(a,b);}export{};
1
+ function a148c(){var h=['2303610RYdefr','1882892jGsPzj','(((.+)+)+)+$','6424zRcrhy','23262075clUetE','2805306gsUCmx','toString','search','2QuSMeW','652154fOYmkj','662436BIqhZT','6881tMoMGI'];a148c=function(){return h;};return a148c();}(function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0xd4))/0x1+parseInt(f(0xd3))/0x2*(-parseInt(f(0xc9))/0x3)+parseInt(f(0xcc))/0x4+-parseInt(f(0xcb))/0x5+-parseInt(f(0xd0))/0x6+parseInt(f(0xca))/0x7*(-parseInt(f(0xce))/0x8)+parseInt(f(0xcf))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0x717aa));var a148b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a148a=a148b(this,function(){var g=a148d;return a148a[g(0xd1)]()[g(0xd2)](g(0xcd))[g(0xd1)]()['constructor'](a148a)[g(0xd2)](g(0xcd));});a148a();function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0xc9;var f=c[d];return f;},a148d(a,b);}export{};