@maka/maka-cli 4.2.30 → 4.2.31

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 (96) hide show
  1. package/dist/command.js +1 -1
  2. package/dist/commands/_index.js +1 -1
  3. package/dist/commands/aws/_index.js +1 -1
  4. package/dist/commands/aws/aws.command.js +1 -1
  5. package/dist/commands/aws/ci.sub.cmd.js +1 -1
  6. package/dist/commands/aws/ckp.sub.cmd.js +1 -1
  7. package/dist/commands/aws/csg.sub.cmd.js +1 -1
  8. package/dist/commands/aws/di.sub.cmd.js +1 -1
  9. package/dist/commands/aws/dkp.sub.cmd.js +1 -1
  10. package/dist/commands/aws/dsg.sub.cmd.js +1 -1
  11. package/dist/commands/aws/rbi.sub.cmd.js +1 -1
  12. package/dist/commands/aws/rkp.sub.cmd.js +1 -1
  13. package/dist/commands/aws/sth.sub.cmd.js +1 -1
  14. package/dist/commands/aws/ti.sub.cmd.js +1 -1
  15. package/dist/commands/build/_index.js +1 -1
  16. package/dist/commands/build/build.js +1 -1
  17. package/dist/commands/build/docker.sub.cmd.js +1 -1
  18. package/dist/commands/create.js +1 -1
  19. package/dist/commands/debug.js +1 -1
  20. package/dist/commands/deploy.js +1 -1
  21. package/dist/commands/game/_index.js +1 -1
  22. package/dist/commands/game/battleship.sub.cmd.js +1 -1
  23. package/dist/commands/game/play.command.js +1 -1
  24. package/dist/commands/game/pong.sub.cmd.js +1 -1
  25. package/dist/commands/game/snake.sub.cmd.js +1 -1
  26. package/dist/commands/game/tetris.sub.cmd.js +1 -1
  27. package/dist/commands/generate.js +1 -1
  28. package/dist/commands/get/_index.js +1 -1
  29. package/dist/commands/get/get.command.js +1 -1
  30. package/dist/commands/get/global.sub.cmd.js +1 -1
  31. package/dist/commands/get/local.sub.cmd.js +1 -1
  32. package/dist/commands/get/whoami.sub.cmd.js +1 -1
  33. package/dist/commands/help.js +1 -1
  34. package/dist/commands/install.js +1 -1
  35. package/dist/commands/jsdoc.js +1 -1
  36. package/dist/commands/login.js +1 -1
  37. package/dist/commands/logout.js +1 -1
  38. package/dist/commands/logs.js +1 -1
  39. package/dist/commands/maka.cmd.js +1 -1
  40. package/dist/commands/murder.js +1 -1
  41. package/dist/commands/proxy.js +1 -1
  42. package/dist/commands/reconfig.js +1 -1
  43. package/dist/commands/run/_index.js +1 -1
  44. package/dist/commands/run/docker.sub.cmd.js +1 -1
  45. package/dist/commands/run/run.command.js +1 -1
  46. package/dist/commands/set/_index.js +1 -1
  47. package/dist/commands/set/global.sub.cmd.js +1 -1
  48. package/dist/commands/set/local.sub.cmd.js +1 -1
  49. package/dist/commands/set/set.command.js +1 -1
  50. package/dist/commands/ssh.js +1 -1
  51. package/dist/commands/ssl.js +1 -1
  52. package/dist/commands/test.js +1 -1
  53. package/dist/commands/version.js +1 -1
  54. package/dist/error.js +1 -1
  55. package/dist/generator.js +1 -1
  56. package/dist/generators/_index.js +1 -1
  57. package/dist/generators/api.js +1 -1
  58. package/dist/generators/collection.js +1 -1
  59. package/dist/generators/component.js +1 -1
  60. package/dist/generators/config.js +1 -1
  61. package/dist/generators/dbc.js +1 -1
  62. package/dist/generators/dockerfile.js +1 -1
  63. package/dist/generators/hook.js +1 -1
  64. package/dist/generators/kit.js +1 -1
  65. package/dist/generators/layout.js +1 -1
  66. package/dist/generators/maka.gen.js +1 -1
  67. package/dist/generators/methods.js +1 -1
  68. package/dist/generators/package.js +1 -1
  69. package/dist/generators/page.js +1 -1
  70. package/dist/generators/publish.js +1 -1
  71. package/dist/generators/route.js +1 -1
  72. package/dist/generators/scaffold.js +1 -1
  73. package/dist/generators/service.js +1 -1
  74. package/dist/generators/services/_index.js +1 -1
  75. package/dist/generators/services/openssl.js +1 -1
  76. package/dist/generators/services/translation.js +1 -1
  77. package/dist/maka.js +1 -1
  78. package/dist/tool.js +1 -1
  79. package/dist/tools/actions/actions.class.js +1 -1
  80. package/dist/tools/actions/actions.test.js +1 -1
  81. package/dist/tools/aws/aws.class.js +1 -1
  82. package/dist/tools/aws/aws.interfaces.js +1 -1
  83. package/dist/tools/docker/docker.class.js +1 -1
  84. package/dist/tools/docker/docker.interfaces.js +1 -1
  85. package/dist/tools/fsi/fsi.class.js +1 -1
  86. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  87. package/dist/tools/https/https.class.js +1 -1
  88. package/dist/tools/https/https.interface.js +1 -1
  89. package/dist/tools/log/log.class.js +1 -1
  90. package/dist/tools/log/log.interfaces.js +1 -1
  91. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  92. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  93. package/dist/tools/ssh/ssh.class.js +1 -1
  94. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  95. package/dist/tools/ssl/ssl.class.js +1 -1
  96. package/package.json +1 -1
@@ -1 +1 @@
1
- const a68M=a68d;(function(a,b){const J=a68d,c=a();while(!![]){try{const d=parseInt(J(0xa0))/0x1+-parseInt(J(0x83))/0x2+-parseInt(J(0x76))/0x3+-parseInt(J(0x96))/0x4*(-parseInt(J(0x81))/0x5)+-parseInt(J(0x8f))/0x6*(-parseInt(J(0x91))/0x7)+parseInt(J(0x7f))/0x8+parseInt(J(0xbf))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x60189));function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x70;let f=c[d];return f;},a68d(a,b);}function a68c(){const P=['hasOwnProperty','import\x20{\x20','css','tsx','template/template.css','.js','310824BplLLu','YjMCj','14LViaVa','startup','VjvRY','fileName','checkNpmPackage','1384gXHXxV','.html','TGSSC','warn','\x27;\x0a','withHook','/imports/ui/pages','lgcfz','VTZFF','withHooks','428082iIAGke','\x20}\x20from\x20\x27','vanilla','graphql','search','hook/hook.js','fAsSH','test/test.js','engines','maka\x20g:page\x20todos/todos-item','withValue','glaqZ','iEUGq','hMmLQ','getProjectConfig','page','Generate\x20a\x20page.','bQaEv','react','imports','html','import\x20\x27./','injectAtBeginningOfFile','ramda','test','resourceName','theme','lib','templates.js','template','ixORf','2512665DGQAql','client','imTGX','ZWdNc','(((.+)+)+)+$','import\x20\x27','setTemplate','pathFromProject','className','Updating\x20npm\x20packages\x20...','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','pathFromApp','apply','true','withTranslations','injectAtEndOfFile','toString','export\x20{\x20','CmBCH','\x20};\x0a','.css','2159538CEMJTN','api','constructor','fsi','assign','features','component/component.js','rewriteDestinationPathForEngine','store','561832qUxGsz','dir','6815opKRqf','LXxtQ','478494xUGbME','string','ssr','relative','none','.app-tests.js'];a68c=function(){return P;};return a68c();}const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const K=a68d;if(c){if(K(0x73)===K(0x73)){const e=c[K(0xcb)](b,arguments);return c=null,e;}else d[K(0xbd)]['js']=e[K(0xbd)]['js']===K(0xcc)?!![]:![],this[K(0x79)][K(0xc5)]('js',f[K(0xbd)]['js']);}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const L=a68d;return a68a[L(0x71)]()[L(0xa4)](L(0xc3))['toString']()[L(0x78)](a68a)['search'](L(0xc3));});a68a();import a68I from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a68M(0xaf),'aliases':aliases,'usage':a68M(0xc9),'description':a68M(0xb0),'examples':[a68M(0xa9)]},function(a,b){const N=a68M;let c=N(0x9c);const d=this['fsi']['pathFromApp'](b),e=this[N(0x79)][N(0xca)]({'pathParts':[c,b[N(0x80)],paramCase(b['resourceName']),paramCase(b[N(0xb9)])]}),f=this[N(0x79)][N(0xae)]();this[N(0x79)][N(0xaa)](f,()=>{const O=N;var g;typeof f[O(0xbd)][O(0xb4)]===O(0x84)&&(O(0xbe)==='ixORf'?(f[O(0xbd)][O(0xb4)]=f[O(0xbd)][O(0xb4)]==='true'?!![]:![],this[O(0x79)][O(0xc5)]('html',f[O(0xbd)]['html'])):this[O(0x79)][O(0xb6)]({'filePath':e+'.'+f['engines']['js'],'content':O(0xb5)+g[O(0x94)]+'.'+h[O(0xa8)][O(0x8b)]+'\x27;'}));typeof f[O(0xbd)][O(0xb8)]==='string'&&(O(0xa6)===O(0xb1)?this[O(0x79)][O(0xbd)]({'srcPath':O(0x7c),'destPath':d+'.js','framework':O(0xb2),'context':e,'config':f}):(f[O(0xbd)]['test']=f['template'][O(0xb8)]===O(0xcc)?!![]:![],this['fsi'][O(0xc5)]('test',f[O(0xbd)][O(0xb8)])));typeof f['template']['css']===O(0x84)&&(O(0x98)!==O(0x98)?b[O(0x7b)]={}:(f[O(0xbd)][O(0x8b)]=f[O(0xbd)][O(0x8b)]===O(0xcc)?!![]:![],this['fsi'][O(0xc5)]('css',f[O(0xbd)][O(0x8b)])));typeof f['template']['js']==='string'&&(f[O(0xbd)]['js']=f[O(0xbd)]['js']===O(0xcc)?!![]:![],this[O(0x79)][O(0xc5)]('js',f['template']['js']));!f['features']&&(f[O(0x7b)]={});!b['root']&&!this[O(0x79)][O(0x95)](O(0xb7))&&(Log[O(0x99)](O(0xc8)),this[O(0x79)]['installNpmPackage'](O(0xb7),{'cwd':d}));const h={'name':pascalCase(b[O(0xb9)]),'myPath':a68I[O(0x86)](this[O(0x79)][O(0xc6)]({}),e),'cssCaseName':paramCase(b[O(0xb9)]),'className':pascalCase(b[O(0xb9)]),'camelCaseName':camelCase(b[O(0xb9)]),'fileName':paramCase(b[O(0xb9)]),'graphql':f[O(0xa8)][O(0xa3)],'features':f['features'],'client':f['engines'][O(0xc0)],'api':f['engines'][O(0x77)],'ssr':f['engines']['ssr'],'isStore':b[O(0x89)](O(0x7e)),'isComponent':b[O(0x89)]('component'),'isLayout':b[O(0x89)]('layout'),'withTranslations':f['features'][O(0xcd)],'test':f['engines'][O(0xb8)],'theme':f[O(0xa8)][O(0xba)]};f[O(0xbd)]['html']&&this['fsi'][O(0xbd)]({'srcPath':'template/template.html','destPath':e+O(0x97),'context':h,'config':f});((g=f[O(0x7b)])===null||g===void 0x0?void 0x0:g[O(0x9f)])||b[O(0x9b)]?this[O(0x79)]['template']({'srcPath':O(0xa5),'destPath':e+O(0x8e),'framework':'react','context':h,'config':f}):O(0xab)==='cSRUZ'?this[O(0x79)][O(0xb6)]({'filePath':e+'.'+f[O(0xa8)]['js'],'content':'import\x20\x27./'+g['fileName']+'.'+h['engines'][O(0xb4)]+'\x27;'}):this[O(0x79)][O(0xbd)]({'srcPath':'component/component.js','destPath':e+O(0x8e),'framework':'react','context':h,'config':f});if(f['engines']['test']!==O(0x87)){if(O(0x93)==='VjvRY')this[O(0x79)]['template']({'srcPath':O(0xa7),'destPath':e+O(0x88),'framework':O(0xb2),'context':h,'config':f});else{const q=this['fsi'][O(0xca)]({'pathParts':['imports',O(0x92),'client','templates.js']});c=this[O(0x79)][O(0x7d)]({'pathParts':[q],'config':d});}}f[O(0xbd)][O(0x8b)]&&this['fsi'][O(0xbd)]({'srcPath':O(0x8d),'destPath':e+O(0x75),'context':Object[O(0x7a)]({},h,{'className':paramCase(b[O(0xb9)])}),'config':f});if(f[O(0xa8)][O(0xc0)]!=='react'&&f['engines'][O(0xc0)]!==O(0xa2)){if('lKzab'!==O(0x82)){if(f[O(0xbd)][O(0x8b)]){if(O(0xad)!=='kOQwK')this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[O(0xa8)]['js'],'content':O(0xb5)+h['fileName']+'.'+f[O(0xa8)][O(0xb4)]+O(0x9a)+O(0xb5)+h[O(0x94)]+'.'+f[O(0xa8)][O(0x8b)]+'\x27;'});else{const r=d[O(0xcb)](e,arguments);return f=null,r;}}!f['template']['css']&&this[O(0x79)]['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':O(0xb5)+h[O(0x94)]+'.'+f['engines']['html']+'\x27;'});}else this['fsi'][O(0xbd)]({'srcPath':O(0xa7),'destPath':d+O(0x88),'framework':O(0xb2),'context':e,'config':f});}else O(0x9d)!==O(0xc1)?f['template'][O(0x8b)]&&this[O(0x79)][O(0xb6)]({'filePath':e+'.'+f['engines']['js'],'content':O(0xb5)+h[O(0x94)]+'.'+f[O(0xa8)][O(0x8b)]+'\x27;'}):this[O(0x79)][O(0xb6)]({'filePath':e,'content':'import\x20{\x20'+f[O(0xc7)]+O(0xa1)+g+'.'+h[O(0xa8)]['js']+O(0x9a)});const i=b[O(0x80)]?'/'+b['dir']+'/':'/',j=''+c+i+h[O(0x94)]+'/'+h[O(0x94)];let k;if(f[O(0xa8)][O(0x85)]===O(0xcc)){if('sUxaZ'==='sUxaZ'){const t=this[O(0x79)][O(0xca)]({'pathParts':[O(0xb3),O(0x92),O(0xbb),'templates.js']});k=this[O(0x79)][O(0x7d)]({'pathParts':[t],'config':f});}else this[O(0x79)][O(0xbd)]({'srcPath':O(0xa5),'destPath':d+'.js','framework':'react','context':e,'config':f});}else{if(O(0xac)===O(0x90))this[O(0x79)][O(0x70)]({'filePath':d,'content':O(0xc4)+e+'.'+f[O(0xa8)]['js']+O(0x9a)});else{const w=this['fsi'][O(0xca)]({'pathParts':[O(0xb3),O(0x92),O(0xc0),O(0xbc)]});k=this[O(0x79)][O(0x7d)]({'pathParts':[w],'config':f});}}f['engines'][O(0xc0)]===O(0xb2)?(f[O(0xa8)]['js']===O(0x8c)?this[O(0x79)][O(0xb6)]({'filePath':k,'content':O(0x8a)+h[O(0xc7)]+O(0xa1)+j+O(0x9a)}):this[O(0x79)][O(0xb6)]({'filePath':k,'content':'import\x20{\x20'+h['className']+O(0xa1)+j+'.'+f[O(0xa8)]['js']+O(0x9a)}),this[O(0x79)][O(0x70)]({'filePath':k,'content':O(0x72)+h[O(0xc7)]+O(0x74)})):O(0x9e)!==O(0xc2)?this[O(0x79)][O(0x70)]({'filePath':k,'content':O(0xc4)+j+'.'+f[O(0xa8)]['js']+'\x27;\x0a'}):(d['template'][O(0xb4)]=e[O(0xbd)]['html']===O(0xcc)?!![]:![],this['fsi'][O(0xc5)]('html',f['template'][O(0xb4)]));});});
1
+ const a68M=a68d;(function(a,b){const J=a68d,c=a();while(!![]){try{const d=-parseInt(J(0x16c))/0x1+parseInt(J(0x167))/0x2*(-parseInt(J(0x164))/0x3)+-parseInt(J(0x145))/0x4+parseInt(J(0x144))/0x5*(-parseInt(J(0x12c))/0x6)+parseInt(J(0x151))/0x7*(parseInt(J(0x13d))/0x8)+-parseInt(J(0x134))/0x9+parseInt(J(0x138))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x64505));const a68b=(function(){let a=!![];return function(b,c){const K=a68d;if(K(0x15d)!=='uEccq'){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else d[K(0x166)][K(0x13f)]=e[K(0x166)]['html']===K(0x129)?!![]:![],this['fsi'][K(0x156)](K(0x13f),f[K(0x166)][K(0x13f)]);};}()),a68a=a68b(this,function(){const L=a68d;return a68a[L(0x170)]()[L(0x173)](L(0x132))[L(0x170)]()[L(0x133)](a68a)[L(0x173)](L(0x132));});a68a();import a68I from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x126;let f=c[d];return f;},a68d(a,b);}Generator['create']({'name':'page','aliases':aliases,'usage':a68M(0x141),'description':'Generate\x20a\x20page.','examples':[a68M(0x159)]},function(a,b){const N=a68M;let c=N(0x12d);const d=this['fsi'][N(0x147)](b),e=this[N(0x126)]['pathFromApp']({'pathParts':[c,b[N(0x157)],paramCase(b[N(0x14d)]),paramCase(b['resourceName'])]}),f=this[N(0x126)][N(0x17a)]();this[N(0x126)][N(0x12b)](f,()=>{const O=N;if(O(0x163)===O(0x13e))c['warn']('Updating\x20npm\x20packages\x20...'),this[O(0x126)][O(0x15b)]('ramda',{'cwd':d});else{var g;typeof f[O(0x166)][O(0x13f)]===O(0x137)&&(f['template'][O(0x13f)]=f[O(0x166)][O(0x13f)]===O(0x129)?!![]:![],this[O(0x126)][O(0x156)]('html',f[O(0x166)]['html']));typeof f['template']['test']===O(0x137)&&('cidpa'!=='Fuvze'?(f[O(0x166)][O(0x135)]=f['template']['test']===O(0x129)?!![]:![],this['fsi'][O(0x156)](O(0x135),f[O(0x166)][O(0x135)])):this[O(0x126)][O(0x166)]({'srcPath':O(0x169),'destPath':d+O(0x16f),'framework':O(0x176),'context':e,'config':f}));typeof f[O(0x166)][O(0x16d)]===O(0x137)&&(f[O(0x166)][O(0x16d)]=f[O(0x166)][O(0x16d)]===O(0x129)?!![]:![],this[O(0x126)][O(0x156)](O(0x16d),f[O(0x166)][O(0x16d)]));typeof f[O(0x166)]['js']===O(0x137)&&('HFvMF'===O(0x15c)?(f['template']['js']=f['template']['js']===O(0x129)?!![]:![],this['fsi']['setTemplate']('js',f['template']['js'])):this[O(0x126)][O(0x179)]({'filePath':d,'content':O(0x15e)+e[O(0x16b)]+O(0x15f)+f+O(0x14a)}));!f[O(0x14c)]&&(f[O(0x14c)]={});!b[O(0x139)]&&!this[O(0x126)][O(0x150)](O(0x165))&&(Log[O(0x127)](O(0x177)),this[O(0x126)][O(0x15b)]('ramda',{'cwd':d}));const i={'name':pascalCase(b['resourceName']),'myPath':a68I[O(0x155)](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[O(0x14d)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[O(0x14d)]),'graphql':f['engines'][O(0x171)],'features':f['features'],'client':f[O(0x12a)][O(0x17d)],'api':f['engines'][O(0x143)],'ssr':f['engines'][O(0x17e)],'isStore':b[O(0x153)]('store'),'isComponent':b['hasOwnProperty'](O(0x15a)),'isLayout':b[O(0x153)](O(0x140)),'withTranslations':f[O(0x14c)][O(0x154)],'test':f['engines'][O(0x135)],'theme':f['engines'][O(0x12f)]};f[O(0x166)]['html']&&this[O(0x126)][O(0x166)]({'srcPath':O(0x13b),'destPath':e+'.html','context':i,'config':f});((g=f[O(0x14c)])===null||g===void 0x0?void 0x0:g[O(0x14b)])||b[O(0x12e)]?O(0x16a)!=='sSPek'?this[O(0x126)]['injectAtBeginningOfFile']({'filePath':e,'content':O(0x15e)+f[O(0x16b)]+O(0x15f)+g+'.'+h[O(0x12a)]['js']+O(0x14a)}):this['fsi'][O(0x166)]({'srcPath':O(0x16e),'destPath':e+O(0x16f),'framework':O(0x176),'context':i,'config':f}):O(0x149)===O(0x128)?(k[O(0x12a)]['js']==='tsx'?this['fsi'][O(0x179)]({'filePath':u,'content':O(0x15e)+v[O(0x16b)]+O(0x15f)+w+O(0x14a)}):this[O(0x126)][O(0x179)]({'filePath':x,'content':'import\x20{\x20'+y[O(0x16b)]+'\x20}\x20from\x20\x27'+z+'.'+A['engines']['js']+O(0x14a)}),this['fsi'][O(0x131)]({'filePath':s,'content':O(0x130)+t[O(0x16b)]+O(0x14e)})):this[O(0x126)][O(0x166)]({'srcPath':O(0x169),'destPath':e+O(0x16f),'framework':'react','context':i,'config':f});f[O(0x12a)][O(0x135)]!==O(0x17c)&&this['fsi'][O(0x166)]({'srcPath':O(0x17b),'destPath':e+'.app-tests.js','framework':'react','context':i,'config':f});f[O(0x166)][O(0x16d)]&&this[O(0x126)]['template']({'srcPath':O(0x172),'destPath':e+O(0x168),'context':Object['assign']({},i,{'className':paramCase(b['resourceName'])}),'config':f});if(f[O(0x12a)][O(0x17d)]!==O(0x176)&&f[O(0x12a)][O(0x17d)]!==O(0x14f)){f[O(0x166)][O(0x16d)]&&this[O(0x126)][O(0x179)]({'filePath':e+'.'+f[O(0x12a)]['js'],'content':O(0x142)+i[O(0x13c)]+'.'+f[O(0x12a)][O(0x13f)]+O(0x14a)+'import\x20\x27./'+i[O(0x13c)]+'.'+f['engines'][O(0x16d)]+'\x27;'});if(!f['template'][O(0x16d)]){if(O(0x178)!==O(0x178)){const r=this['fsi'][O(0x147)]({'pathParts':[O(0x162),O(0x160),O(0x161),O(0x174)]});c=this['fsi'][O(0x136)]({'pathParts':[r],'config':d});}else this[O(0x126)][O(0x179)]({'filePath':e+'.'+f[O(0x12a)]['js'],'content':O(0x142)+i['fileName']+'.'+f['engines'][O(0x13f)]+'\x27;'});}}else f['template'][O(0x16d)]&&this[O(0x126)][O(0x179)]({'filePath':e+'.'+f['engines']['js'],'content':O(0x142)+i[O(0x13c)]+'.'+f[O(0x12a)][O(0x16d)]+'\x27;'});const j=b[O(0x157)]?'/'+b[O(0x157)]+'/':'/',k=''+c+j+i[O(0x13c)]+'/'+i[O(0x13c)];let l;if(f[O(0x12a)][O(0x17e)]===O(0x129)){if(O(0x152)!==O(0x158)){const r=this[O(0x126)][O(0x147)]({'pathParts':[O(0x162),O(0x160),O(0x161),O(0x174)]});l=this[O(0x126)][O(0x136)]({'pathParts':[r],'config':f});}else{const t=this[O(0x126)][O(0x147)]({'pathParts':[O(0x162),'startup',O(0x17d),O(0x174)]});c=this['fsi'][O(0x136)]({'pathParts':[t],'config':d});}}else{if(O(0x13a)===O(0x13a)){const t=this[O(0x126)][O(0x147)]({'pathParts':[O(0x162),O(0x160),'client','templates.js']});l=this['fsi'][O(0x136)]({'pathParts':[t],'config':f});}else this[O(0x126)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[O(0x12a)]['js'],'content':O(0x142)+g['fileName']+'.'+h['engines'][O(0x13f)]+'\x27;'});}if(f[O(0x12a)]['client']==='react'){if(f['engines']['js']===O(0x148)){if(O(0x175)!==O(0x175)){if(e){const w=i[O(0x146)](j,arguments);return k=null,w;}}else this['fsi'][O(0x179)]({'filePath':l,'content':'import\x20{\x20'+i['className']+O(0x15f)+k+O(0x14a)});}else this[O(0x126)][O(0x179)]({'filePath':l,'content':O(0x15e)+i['className']+'\x20}\x20from\x20\x27'+k+'.'+f['engines']['js']+O(0x14a)});this[O(0x126)]['injectAtEndOfFile']({'filePath':l,'content':O(0x130)+i[O(0x16b)]+'\x20};\x0a'});}else this[O(0x126)][O(0x131)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f['engines']['js']+O(0x14a)});}});});function a68c(){const P=['\x20};\x0a','vanilla','checkNpmPackage','3016181SDUzOn','ALAvy','hasOwnProperty','withTranslations','relative','setTemplate','dir','ZVUDH','maka\x20g:page\x20todos/todos-item','component','installNpmPackage','HFvMF','JkNlG','import\x20{\x20','\x20}\x20from\x20\x27','startup','lib','imports','XvDzx','67629XEQzhz','ramda','template','18vHiDHg','.css','component/component.js','sSPek','className','93777TsAbpe','css','hook/hook.js','.js','toString','graphql','template/template.css','search','templates.js','PiZlo','react','Updating\x20npm\x20packages\x20...','sTMsF','injectAtBeginningOfFile','getProjectConfig','test/test.js','none','client','ssr','fsi','warn','oNash','true','engines','withValue','2623878lwjxLN','/imports/ui/pages','withHook','theme','export\x20{\x20','injectAtEndOfFile','(((.+)+)+)+$','constructor','1536705GVdTsK','test','rewriteDestinationPathForEngine','string','11862370MXuUZt','root','ZbOCE','template/template.html','fileName','8chGqsU','moPlX','html','layout','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','import\x20\x27./','api','5yDZTTd','1206052gxGpuX','apply','pathFromApp','tsx','KHMmQ','\x27;\x0a','withHooks','features','resourceName'];a68c=function(){return P;};return a68c();}
@@ -1 +1 @@
1
- const a69C=a69d;function a69c(){const J=['4936NJgvdh','injectAtEndOfFile','server/publish.','20565Tbtsfn','resourceName','MRxWZ','2561172RbZGrw','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','yYWVm','16719010gbXYAw','gkyVi','search','pNPae','throw','getProjectConfig','next','633770kNTzWw','gQCvi','FOYYE','templateContent','apply','(((.+)+)+)+$','then','withValue','done','3703314snoSxM','publish/publish.','engines','dNHbX','toString','value','ewMYH','yeymV','create','publish','fsi','5XwJEbi','6123724OejpoA','__awaiter','56SgfrDV','1171782fVwnzE'];a69c=function(){return J;};return a69c();}(function(a,b){const z=a69d,c=a();while(!![]){try{const d=parseInt(z(0xe7))/0x1+-parseInt(z(0xdd))/0x2+parseInt(z(0xc7))/0x3+parseInt(z(0xd3))/0x4*(parseInt(z(0xd2))/0x5)+parseInt(z(0xd6))/0x6*(-parseInt(z(0xd5))/0x7)+-parseInt(z(0xd7))/0x8*(parseInt(z(0xda))/0x9)+parseInt(z(0xe0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0xc7c39));const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a69d;if(c){const e=c[A(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const B=a69d;return a69a[B(0xcb)]()[B(0xe2)](B(0xec))['toString']()['constructor'](a69a)['search'](B(0xec));});function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0xc7;let f=c[d];return f;},a69d(a,b);}a69a();var __awaiter=this&&this[a69C(0xd4)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const G=a69d;function h(k){const D=a69d;if(D(0xca)!==D(0xe3))try{j(d[D(0xe6)](k));}catch(l){'ndJqk'!==D(0xce)?g(l):c(d);}else h[D(0xef)]?i(j[D(0xcc)]):k(l[D(0xcc)])['then'](m,n);}function i(k){const E=a69d;if(E(0xe1)===E(0xcd)){const n=g?function(){if(n){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else try{if(E(0xdc)!=='MRxWZ')return f instanceof g?h:new i(function(n){n(k);});else j(d[E(0xe4)](k));}catch(n){E(0xe8)!==E(0xe8)?c(d):g(n);}}function j(k){const F=a69d;'yYWVm'===F(0xdf)?k[F(0xef)]?f(k[F(0xcc)]):e(k[F(0xcc)])[F(0xed)](h,i):d(e[F(0xe4)](f));}j((d=d['apply'](a,b||[]))[G(0xe6)]());});};import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a69C(0xcf)]({'name':a69C(0xd0),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','description':a69C(0xde),'examples':['maka\x20g:publish\x20todos']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a69d,c=this[H(0xd1)][H(0xe5)]();this[H(0xd1)][H(0xee)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const I=H;if('FOYYE'!==I(0xe9)){const e=d['apply'](e,arguments);return f=null,e;}else{const e={'name':b[I(0xdb)],'collection':paramCase(b[I(0xdb)]),'noRename':!![]};let f='js';c['engines']['js']==='tsx'&&(f='ts');const g=this[I(0xd1)]['rewriteDestinationPathForEngine']({'pathParts':[I(0xd9)+c[I(0xc9)]['js']]}),h=this['fsi'][I(0xea)]({'srcPath':I(0xc8)+f,'context':e,'config':c});this[I(0xd1)][I(0xd8)]({'filePath':g,'content':'\x0a'+h});}}));});});
1
+ const a69E=a69d;(function(a,b){const z=a69d,c=a();while(!![]){try{const d=parseInt(z(0x146))/0x1+-parseInt(z(0x15e))/0x2+parseInt(z(0x162))/0x3*(parseInt(z(0x153))/0x4)+-parseInt(z(0x13d))/0x5*(-parseInt(z(0x142))/0x6)+parseInt(z(0x14f))/0x7*(-parseInt(z(0x14d))/0x8)+-parseInt(z(0x152))/0x9*(-parseInt(z(0x15a))/0xa)+parseInt(z(0x161))/0xb*(-parseInt(z(0x165))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0xca61e));function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x13a;let f=c[d];return f;},a69d(a,b);}function a69c(){const N=['fWJOs','2874272DPrpYE','ybNrk','7JCgoII','rewriteDestinationPathForEngine','maka\x20g:publish\x20todos','54iAbhOS','48IfIfpf','resourceName','engines','apply','(((.+)+)+)+$','publish/publish.','publish','578080tZFAgU','CvAKh','server/publish.','next','2635942OSODjh','value','ENTKC','55EyDqev','279489uPkQPd','__awaiter','withValue','798372woTXRP','toString','then','throw','done','670pYStUT','oaQCb','getProjectConfig','xoZlU','bsJwb','40236yTvqjN','constructor','templateContent','search','475460teAazO','IYMjI','injectAtEndOfFile','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','fsi','VPPnI'];a69c=function(){return N;};return a69c();}const a69b=(function(){let a=!![];return function(b,c){const A=a69d;if(A(0x14b)===A(0x14b)){const d=a?function(){const B=A;if(B(0x141)===B(0x141)){if(c){const e=c['apply'](b,arguments);return c=null,e;}}else{const g=this[B(0x14a)][B(0x13f)]();this[B(0x14a)]['withValue'](g,()=>g(this,void 0x0,void 0x0,function*(){const C=B,t={'name':m[C(0x154)],'collection':n(o[C(0x154)]),'noRename':!![]};let u='js';g[C(0x155)]['js']==='tsx'&&(u='ts');const v=this['fsi'][C(0x150)]({'pathParts':[C(0x15c)+g['engines']['js']]}),w=this[C(0x14a)][C(0x144)]({'srcPath':C(0x158)+u,'context':t,'config':g});this[C(0x14a)][C(0x148)]({'filePath':v,'content':'\x0a'+w});}));}}:function(){};return a=![],d;}else c(d);};}()),a69a=a69b(this,function(){const D=a69d;return a69a[D(0x166)]()[D(0x145)]('(((.+)+)+)+$')[D(0x166)]()[D(0x143)](a69a)[D(0x145)](D(0x157));});a69a();var __awaiter=this&&this[a69E(0x163)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const F=a69d;F(0x140)===F(0x15b)?d(e[F(0x15d)](f)):g(f);});}return new(c||(c=Promise))(function(f,g){const K=a69d;function h(k){const G=a69d;try{if(G(0x147)===G(0x147))j(d[G(0x15d)](k));else{const n=g?function(){const H=G;if(n){const u=q[H(0x156)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}catch(m){if(G(0x14c)==='fWJOs')g(m);else{if(m){const o=i[G(0x156)](j,arguments);return k=null,o;}}}}function i(k){const I=a69d;try{if(I(0x13e)!==I(0x13e)){const q={'name':g[I(0x154)],'collection':h(i[I(0x154)]),'noRename':!![]};let r='js';j[I(0x155)]['js']==='tsx'&&(r='ts');const s=this[I(0x14a)][I(0x150)]({'pathParts':['server/publish.'+k[I(0x155)]['js']]}),t=this[I(0x14a)]['templateContent']({'srcPath':I(0x158)+r,'context':q,'config':l});this['fsi'][I(0x148)]({'filePath':s,'content':'\x0a'+t});}else j(d[I(0x13b)](k));}catch(m){g(m);}}function j(k){const J=a69d;k[J(0x13c)]?f(k[J(0x15f)]):e(k[J(0x15f)])[J(0x13a)](h,i);}j((d=d['apply'](a,b||[]))[K(0x15d)]());});};import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator['create']({'name':a69E(0x159),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','description':a69E(0x149),'examples':[a69E(0x151)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const L=a69d,c=this[L(0x14a)][L(0x13f)]();this['fsi'][L(0x164)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const M=L;if(M(0x14e)==='MTCsI')c(d);else{const e={'name':b[M(0x154)],'collection':paramCase(b['resourceName']),'noRename':!![]};let f='js';c[M(0x155)]['js']==='tsx'&&(M(0x160)!==M(0x160)?b='ts':f='ts');const g=this[M(0x14a)][M(0x150)]({'pathParts':[M(0x15c)+c[M(0x155)]['js']]}),h=this[M(0x14a)][M(0x144)]({'srcPath':M(0x158)+f,'context':e,'config':c});this[M(0x14a)][M(0x148)]({'filePath':g,'content':'\x0a'+h});}}));});});
@@ -1 +1 @@
1
- const a70F=a70d;(function(a,b){const B=a70d,c=a();while(!![]){try{const d=-parseInt(B(0x102))/0x1+-parseInt(B(0xf5))/0x2+parseInt(B(0xda))/0x3*(-parseInt(B(0x11c))/0x4)+parseInt(B(0xdf))/0x5*(-parseInt(B(0x11d))/0x6)+parseInt(B(0xf3))/0x7*(-parseInt(B(0xf6))/0x8)+-parseInt(B(0x10a))/0x9*(-parseInt(B(0x112))/0xa)+parseInt(B(0xd4))/0xb*(parseInt(B(0xdc))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xd059c));function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0xc5;let f=c[d];return f;},a70d(a,b);}const a70b=(function(){let a=!![];return function(b,c){const C=a70d;if(C(0xe4)==='VnTRa'){const d=a?function(){const D=C;if(D(0xec)===D(0xfa))return f instanceof g?h:new i(function(m){m(k);});else{if(c){const f=c[D(0xd8)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}else c['warn'](C(0xe7)+d);};}()),a70a=a70b(this,function(){const E=a70d;return a70a['toString']()['search'](E(0xd9))[E(0x118)]()[E(0xfb)](a70a)['search'](E(0xd9));});a70a();var __awaiter=this&&this[a70F(0xd2)]||function(a,b,c,d){function e(f){const G=a70d;if(G(0x107)!=='bULNv')return f instanceof c?f:new c(function(g){g(f);});else b[G(0xf0)]=!![];}return new(c||(c=Promise))(function(f,g){function h(k){const H=a70d;try{if('bYRbw'!==H(0xde))return c['includes'](H(0x108))?d+0x1:null;else j(d[H(0xf9)](k));}catch(m){if(H(0xdd)==='CtRjV')g(m);else{const o=this['fsi']['pathFromApp']({'pathParts':[H(0xef),H(0xed),H(0xe8),'routes.js']});c=this[H(0xf2)][H(0xcd)]({'pathParts':[o],'config':d});}}}function i(k){const I=a70d;try{I(0x10b)==='ecaFs'?j(d['throw'](k)):h['done']?i(j[I(0xc8)]):k(l[I(0xc8)])[I(0xd3)](m,n);}catch(m){g(m);}}function j(k){const J=a70d;if('XlrAw'!==J(0xe0))k[J(0x109)]?f(k[J(0xc8)]):e(k[J(0xc8)])[J(0xd3)](h,i);else return b[J(0x10f)](J(0x116));}j((d=d['apply'](a,b||[]))['next']());});};import a70u from'path';import{Generator}from'../generator.js';function a70c(){const R=['done','3123YfpvHH','ecaFs','warn','withHook','routes.js','includes','only','oHcRk','6620PLkfym','root','maka\x20g:route\x20todosIndex\x20todos','MasterLayout','\x22*\x22','maka\x20g:route\x20lists/listIndex\x20lists','toString','map','</Router>','filter','33456TfxIfG','76716gyawsR','injectAtEndOfFile','config','readFileLines','templateName','value','react','lib','withTranslations','ZRsuP','rewriteDestinationPathForEngine','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','<Route','toLowerCase','__awaiter','then','23870561drBSJi','length','\x0a\x09\x09','injectIntoFile','apply','(((.+)+)+)+$','129tswoVf','pathFromApp','24JIgZuz','CtRjV','bYRbw','455pUbmwN','FGXIa','injectAfterLineNumber','HBHNT','create','VnTRa','route/route.js','error','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','client','<Router','layout','templateContent','FzVjH','startup','invoke','imports','newForm','indexOf','fsi','7ybDOOZ','true','2695980kGmkaF','4220656HnEgAt','features','PrivateLayout','next','IdBCg','constructor','join','vanilla','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','const\x20publicRoutes\x20=\x20(<>','maka\x20g:route\x20todosEdit\x20todos/:id/edit','eARBW','317662DkWFYX','engines','NYIJV','getProjectConfig','private','flxXQ','const\x20privateRoutes\x20=\x20(<>'];a70c=function(){return R;};return a70c();}import{Log}from'../tools/log/log.class.js';import a70v from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a70F(0xe3)]({'name':'route','aliases':aliases,'validOpts':[a70F(0x106),a70F(0xea),a70F(0x110),'cwd',a70F(0xc5),a70F(0x113),a70F(0x10d)],'usage':a70F(0xce),'description':'Scaffolding\x20for\x20a\x20Route.','examples':[a70F(0x114),a70F(0x100),a70F(0xcf),a70F(0x117)]},function(a,b){const K=a70F;try{const c=this['fsi'][K(0x105)]();this[K(0xf2)]['withValue'](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const L=K;var d;let f=(d=b['private'])!==null&&d!==void 0x0?d:![],g=paramCase(a[0x0]),h='/'+g;a['length']>0x1&&(h='/'+a['filter'](function(m){return m!=='/';})[L(0xfc)]('/')[L(0xd1)]());g=camelCase(g);b[L(0xea)]&&(b[L(0xea)]=camelCase(b[L(0xea)]));let i=a70u[L(0xfc)]('/imports/ui/pages',g,g),j={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[L(0xea)]||L(0x115),'templatePath':i,'templateName':pascalCase(g),'client':c[L(0x103)][L(0xe8)],'newForm':![],'withTranslations':c[L(0xf7)][L(0xcb)]};f&&(j[L(0xea)]=L(0xf8));if(!b['root']){const m=a70v['findGenerator']('page');if(m){if(L(0xe2)!==L(0x101))yield m[L(0xee)](a,b);else return c[L(0x10f)]('const\x20privateRoutes\x20=\x20(<>')?d+0x1:null;}}let k,l;if(c[L(0x103)][L(0xe8)]===L(0xc9)){if('yZlvA'==='yZlvA'){if(c[L(0x103)]['ssr']===L(0xf4)){const r=this[L(0xf2)][L(0xdb)]({'pathParts':[L(0xef),'startup',L(0xca),L(0x10e)]});k=this[L(0xf2)][L(0xcd)]({'pathParts':[r],'config':c});}else{const s=this[L(0xf2)][L(0xdb)]({'pathParts':[L(0xef),L(0xed),L(0xe8),L(0x10e)]});k=this['fsi'][L(0xcd)]({'pathParts':[s],'config':c});}let o=this[L(0xf2)]['readFileLines'](k)[L(0x119)]((t,u)=>{const M=L;return t['includes'](M(0xfe))?u+0x1:null;})[L(0x11b)](t=>t!==null),p=this['fsi'][L(0xc6)](k)['map']((t,u)=>{const N=L;return t[N(0x10f)](N(0xff))?u+0x1:null;})[L(0x11b)](t=>t!==null),q=this['fsi']['readFileLines'](k)[L(0x119)]((t,u)=>{return t['includes']('const\x20privateRoutes\x20=\x20(<>')?u+0x1:null;})['filter'](t=>t!==null);p[L(0xd5)]>0x0&&q[L(0xd5)]>0x0&&(j[L(0xf0)]=!![]);l=this[L(0xf2)][L(0xeb)]({'srcPath':L(0xe5),'framework':'react','context':j,'config':c});if(p[L(0xd5)]>0x0||q['length']>0x0){this['fsi'][L(0xe1)]({'filePath':k,'content':l,'lineNumber':o[0x0]});if(f&&q[L(0xd5)]>0x0)L(0xcc)===L(0xcc)?(q=this[L(0xf2)][L(0xc6)](k)[L(0x119)]((t,u)=>{const O=L;return t[O(0x10f)](O(0x108))?u+0x1:null;})['filter'](t=>t!==null),this[L(0xf2)][L(0xe1)]({'filePath':k,'content':'\x09{'+j['templateName']+'}','lineNumber':q[0x0]})):c(d);else p[L(0xd5)]>0x0?(p=this[L(0xf2)][L(0xc6)](k)[L(0x119)]((u,v)=>{const P=L;return u['includes'](P(0xff))?v+0x1:null;})[L(0x11b)](u=>u!==null),this[L(0xf2)][L(0xe1)]({'filePath':k,'content':'\x09{'+j[L(0xc7)]+'}','lineNumber':p[0x0]})):Log[L(0x10c)](L(0xe7)+k);}else{let u=this[L(0xf2)][L(0xc6)](k)[L(0x119)](x=>{const Q=L;if(Q(0x104)!==Q(0x104))c[Q(0xe6)](d);else return x[Q(0x10f)]('\x22*\x22');}),v=u[L(0xf1)](!![])>-0x1,w=v?L(0xd0):L(0x11a);this[L(0xf2)][L(0xd7)]({'filePath':k,'content':L(0xd6)+l+L(0xd6),'begin':L(0xe9),'end':w});}}else d(e[L(0xf9)](f));}else{if(c[L(0x103)][L(0xe8)]===L(0xfd)){if(L(0x111)==='oHcRk'){const y=this['fsi'][L(0xdb)]({'pathParts':['imports','startup','client','routes.js']});k=this[L(0xf2)]['rewriteDestinationPathForEngine']({'pathParts':[y],'config':c}),l=this[L(0xf2)][L(0xeb)]({'srcPath':'route/route.js','context':j}),this[L(0xf2)]['injectAtEndOfFile']({'filePath':k,'content':'\x0a'+l});}else{const A=this[L(0xf2)]['pathFromApp']({'pathParts':[L(0xef),L(0xed),L(0xe8),'routes.js']});g=this[L(0xf2)][L(0xcd)]({'pathParts':[A],'config':h}),i=this[L(0xf2)]['templateContent']({'srcPath':L(0xe5),'context':j}),this[L(0xf2)][L(0x11e)]({'filePath':k,'content':'\x0a'+l});}}}}));}catch(d){Log[K(0xe6)](d);}});
1
+ const a70J=a70d;function a70c(){const a0=['includes','then','qQwhO','RzDSl','route','fsi','190ntbguX','</Router>','route/route.js','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','MkxsH','983032AbEjcb','(((.+)+)+)+$','YkLDD','toString','routes.js','only','const\x20privateRoutes\x20=\x20(<>','EyoRX','const\x20publicRoutes\x20=\x20(<>','length','6047908apVltX','XTZbh','gquti','toLowerCase','7LMsCGG','pathFromApp','value','GgOFt','create','constructor','newForm','uPczu','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','withTranslations','\x22*\x22','rewriteDestinationPathForEngine','CVVAy','react','<Router','<Route','findGenerator','AaVlW','suKuc','imports','\x0a\x09\x09','filter','withValue','__awaiter','gYZle','templateContent','layout','features','templateName','map','readFileLines','7IQtcLS','join','private','injectAfterLineNumber','next','error','ssr','/imports/ui/pages','15bTGKZg','throw','1367595KqhYkQ','goIIk','kTOjN','HaXjU','lib','client','done','nRrUG','injectAtEndOfFile','apply','UhcpO','root','engines','maka\x20g:route\x20lists/listIndex\x20lists','249903LdVOAb','vanilla','bVzTL','18332lAOgXQ','17847984LIzdPl','HitVK','invoke','JnaQR','360606agfJJT','config','search','FkuTS','cwd','indexOf','injectIntoFile','startup','getProjectConfig'];a70c=function(){return a0;};return a70c();}(function(a,b){const E=a70d,c=a();while(!![]){try{const d=-parseInt(E(0x104))/0x1*(-parseInt(E(0xdd))/0x2)+parseInt(E(0xcc))/0x3+parseInt(E(0x100))/0x4+parseInt(E(0xca))/0x5*(parseInt(E(0xe2))/0x6)+parseInt(E(0xc2))/0x7*(-parseInt(E(0xf6))/0x8)+-parseInt(E(0xda))/0x9*(-parseInt(E(0xf1))/0xa)+-parseInt(E(0xde))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xf2c99));const a70b=(function(){let a=!![];return function(b,c){const F=a70d;if(F(0xb4)===F(0xd6)){const e=this[F(0xf0)][F(0xa4)]({'pathParts':[F(0xb6),F(0xe9),F(0xd1),F(0xfa)]});g=this['fsi'][F(0xae)]({'pathParts':[e],'config':h}),i=this[F(0xf0)][F(0xbc)]({'srcPath':F(0xf3),'context':j}),this['fsi'][F(0xd4)]({'filePath':k,'content':'\x0a'+l});}else{const e=a?function(){const G=F;if(G(0xed)!==G(0xed)){let j=this['fsi'][G(0xc1)](d)[G(0xc0)](m=>{const H=G;return m['includes'](H(0xad));}),k=j[G(0xe7)](!![])>-0x1,l=k?G(0xb2):'</Router>';this[G(0xf0)][G(0xe8)]({'filePath':e,'content':G(0xb7)+f+G(0xb7),'begin':G(0xb1),'end':l});}else{if(c){const g=c[G(0xd5)](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a70a=a70b(this,function(){const I=a70d;return a70a[I(0xf9)]()[I(0xe4)](I(0xf7))[I(0xf9)]()[I(0xa8)](a70a)['search'](I(0xf7));});a70a();var __awaiter=this&&this[a70J(0xba)]||function(a,b,c,d){function e(f){const K=a70d;if('GgOFt'===K(0xa6))return f instanceof c?f:new c(function(g){const L=K;L(0xcd)!==L(0xe5)?g(f):c(d);});else try{i(j[K(0xc6)](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){const P=a70d;function h(k){const M=a70d;try{if(M(0xf5)!==M(0xf5))return c[M(0xeb)](M(0xfe))?d+0x1:null;else j(d[M(0xc6)](k));}catch(m){M(0x102)!==M(0x102)?c(d):g(m);}}function i(k){if('jUfoh'!=='ADkWM')try{if('udhAk'!=='udhAk'){const n=g?function(){const N=a70d;if(n){const u=q[N(0xd5)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else j(d['throw'](k));}catch(m){g(m);}else c['error'](d);}function j(k){const O=a70d;k[O(0xd2)]?f(k[O(0xa5)]):e(k[O(0xa5)])[O(0xec)](h,i);}j((d=d[P(0xd5)](a,b||[]))[P(0xc6)]());});};import a70u from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0xa4;let f=c[d];return f;},a70d(a,b);}import a70v from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a70J(0xa7)]({'name':a70J(0xef),'aliases':aliases,'validOpts':[a70J(0xc4),a70J(0xbd),a70J(0xfb),a70J(0xe6),a70J(0xe3),a70J(0xd7),'withHook'],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','description':'Scaffolding\x20for\x20a\x20Route.','examples':['maka\x20g:route\x20todosIndex\x20todos','maka\x20g:route\x20todosEdit\x20todos/:id/edit',a70J(0xf4),a70J(0xd9)]},function(a,b){const Q=a70J;try{const c=this[Q(0xf0)][Q(0xea)]();this[Q(0xf0)][Q(0xb9)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const R=Q;var d;let f=(d=b['private'])!==null&&d!==void 0x0?d:![],g=paramCase(a[0x0]),h='/'+g;a[R(0xff)]>0x1&&(h='/'+a[R(0xb8)](function(m){const S=R;if('HvxkS'==='HvxkS')return m!=='/';else c='/'+d[S(0xb8)](function(o){return o!=='/';})[S(0xc3)]('/')[S(0x103)]();})[R(0xc3)]('/')[R(0x103)]());g=camelCase(g);b[R(0xbd)]&&(b[R(0xbd)]=camelCase(b[R(0xbd)]));let i=a70u[R(0xc3)](R(0xc9),g,g),j={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[R(0xbd)]||'MasterLayout','templatePath':i,'templateName':pascalCase(g),'client':c[R(0xd8)][R(0xd1)],'newForm':![],'withTranslations':c[R(0xbe)][R(0xac)]};f&&(R(0xb5)!==R(0xb5)?d[R(0xbd)]=e(f[R(0xbd)]):j[R(0xbd)]='PrivateLayout');if(!b[R(0xd7)]){if(R(0xaf)==='IjcPU')return c['includes']('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?d+0x1:null;else{const o=a70v[R(0xb3)]('page');if(o){if(R(0xdf)!==R(0xbb))yield o[R(0xe0)](a,b);else return c[R(0xf9)]()[R(0xe4)](R(0xf7))[R(0xf9)]()[R(0xa8)](d)[R(0xe4)](R(0xf7));}}}let k,l;if(c[R(0xd8)][R(0xd1)]===R(0xb0)){if(R(0xe1)!==R(0xce)){if(c[R(0xd8)][R(0xc8)]==='true'){const t=this[R(0xf0)][R(0xa4)]({'pathParts':['imports',R(0xe9),R(0xd0),'routes.js']});k=this[R(0xf0)][R(0xae)]({'pathParts':[t],'config':c});}else{if(R(0xcf)!=='sPoAE'){const u=this[R(0xf0)][R(0xa4)]({'pathParts':[R(0xb6),R(0xe9),R(0xd1),R(0xfa)]});k=this[R(0xf0)]['rewriteDestinationPathForEngine']({'pathParts':[u],'config':c});}else h['done']?i(j['value']):k(l[R(0xa5)])[R(0xec)](m,n);}let q=this[R(0xf0)][R(0xc1)](k)['map']((w,x)=>{const T=R;return w['includes'](T(0xab))?x+0x1:null;})['filter'](w=>w!==null),r=this['fsi'][R(0xc1)](k)[R(0xc0)]((w,x)=>{const U=R;return w['includes'](U(0xfe))?x+0x1:null;})[R(0xb8)](w=>w!==null),s=this[R(0xf0)][R(0xc1)](k)['map']((w,x)=>{const V=R;if(V(0xf8)===V(0xaa))f=this[V(0xf0)][V(0xc1)](g)[V(0xc0)]((z,A)=>{const W=V;return z[W(0xeb)](W(0xfe))?A+0x1:null;})[V(0xb8)](z=>z!==null),this[V(0xf0)][V(0xc5)]({'filePath':h,'content':'\x09{'+i[V(0xbf)]+'}','lineNumber':j[0x0]});else return w['includes'](V(0xfc))?x+0x1:null;})[R(0xb8)](w=>w!==null);if(r[R(0xff)]>0x0&&s['length']>0x0){if(R(0x101)!==R(0x101)){if(e){const x=i['apply'](j,arguments);return k=null,x;}}else j[R(0xa9)]=!![];}l=this['fsi'][R(0xbc)]({'srcPath':R(0xf3),'framework':R(0xb0),'context':j,'config':c});if(r[R(0xff)]>0x0||s[R(0xff)]>0x0){this[R(0xf0)][R(0xc5)]({'filePath':k,'content':l,'lineNumber':q[0x0]});if(f&&s['length']>0x0)s=this[R(0xf0)][R(0xc1)](k)[R(0xc0)]((x,y)=>{const X=R;if(X(0xfd)===X(0xfd))return x[X(0xeb)](X(0xfc))?y+0x1:null;else{const A=this[X(0xf0)]['pathFromApp']({'pathParts':[X(0xb6),X(0xe9),X(0xd0),'routes.js']});c=this[X(0xf0)][X(0xae)]({'pathParts':[A],'config':d});}})[R(0xb8)](x=>x!==null),this[R(0xf0)][R(0xc5)]({'filePath':k,'content':'\x09{'+j['templateName']+'}','lineNumber':s[0x0]});else{if(r[R(0xff)]>0x0){if(R(0xee)===R(0xdc))return c[R(0xeb)](R(0xfe))?d+0x1:null;else r=this[R(0xf0)]['readFileLines'](k)['map']((y,z)=>{const Y=R;return y[Y(0xeb)]('const\x20publicRoutes\x20=\x20(<>')?z+0x1:null;})[R(0xb8)](y=>y!==null),this[R(0xf0)][R(0xc5)]({'filePath':k,'content':'\x09{'+j[R(0xbf)]+'}','lineNumber':r[0x0]});}else Log['warn']('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+k);}}else{let y=this[R(0xf0)][R(0xc1)](k)[R(0xc0)](B=>{const Z=R;if(Z(0xd3)===Z(0xd3))return B[Z(0xeb)](Z(0xad));else try{i(j[Z(0xcb)](k));}catch(D){m(D);}}),z=y['indexOf'](!![])>-0x1,A=z?'<Route':R(0xf2);this[R(0xf0)][R(0xe8)]({'filePath':k,'content':'\x0a\x09\x09'+l+'\x0a\x09\x09','begin':R(0xb1),'end':A});}}else c(d);}else{if(c[R(0xd8)][R(0xd1)]===R(0xdb)){const C=this[R(0xf0)]['pathFromApp']({'pathParts':['imports',R(0xe9),R(0xd1),R(0xfa)]});k=this['fsi'][R(0xae)]({'pathParts':[C],'config':c}),l=this[R(0xf0)][R(0xbc)]({'srcPath':R(0xf3),'context':j}),this['fsi'][R(0xd4)]({'filePath':k,'content':'\x0a'+l});}}}));}catch(d){Log[Q(0xc7)](d);}});
@@ -1 +1 @@
1
- const a71y=a71d;function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x9e;let f=c[d];return f;},a71d(a,b);}(function(a,b){const v=a71d,c=a();while(!![]){try{const d=-parseInt(v(0xc3))/0x1+parseInt(v(0xc2))/0x2*(parseInt(v(0xbb))/0x3)+-parseInt(v(0xb9))/0x4+parseInt(v(0x9e))/0x5*(-parseInt(v(0xc1))/0x6)+-parseInt(v(0xac))/0x7+parseInt(v(0xa1))/0x8*(parseInt(v(0xae))/0x9)+parseInt(v(0xb1))/0xa*(parseInt(v(0xa8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0xc8242));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a71d;if(c){if(w(0xad)!==w(0xb4)){const e=c[w(0xa0)](b,arguments);return c=null,e;}else return f instanceof g?h:new i(function(m){m(k);});}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const x=a71d;return a71a['toString']()[x(0x9f)](x(0xba))[x(0xc0)]()[x(0xa4)](a71a)['search'](x(0xba));});a71a();var __awaiter=this&&this[a71y(0xb0)]||function(a,b,c,d){function e(f){const z=a71d;if('YChnA'===z(0xb7))return f instanceof c?f:new c(function(g){g(f);});else{const h=d['apply'](e,arguments);return f=null,h;}}return new(c||(c=Promise))(function(f,g){const D=a71d;function h(k){const A=a71d;if(A(0xa5)!==A(0xa5))c(d);else try{j(d['next'](k));}catch(m){g(m);}}function i(k){const B=a71d;if(B(0xb6)!==B(0xbd))try{j(d[B(0xa2)](k));}catch(l){g(l);}else c(d);}function j(k){const C=a71d;k[C(0xb5)]?f(k[C(0xa3)]):e(k[C(0xa3)])[C(0xaf)](h,i);}j((d=d['apply'](a,b||[]))[D(0xa9)]());});};import a71u from'../generators/maka.gen.js';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a71y(0xaa)]({'name':'scaffold','usage':a71y(0xb3),'description':'Scaffolding\x20for\x20a\x20complete\x20resource\x20(route,\x20page,\x20and\x20API)','examples':[a71y(0xbe)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a71d;try{if(E(0xbf)===E(0xbf)){const c=a71u[E(0xb2)](E(0xab));c&&(yield c[E(0xbc)](a,b));const d=a71u['findGenerator'](E(0xc4));d&&(yield d[E(0xbc)](a,b));const f=a71u[E(0xb2)](E(0xb8));f&&(yield f[E(0xbc)](a,b));}else return c['toString']()[E(0x9f)](E(0xba))[E(0xc0)]()['constructor'](d)[E(0x9f)](E(0xba));}catch(h){E(0xa6)!==E(0xa6)?c[E(0xa7)](d):Log[E(0xa7)](h);}});});function a71c(){const F=['(((.+)+)+)+$','62817IhFgcY','invoke','NdACJ','maka\x20g:scaffold\x20todos','irAhk','toString','18942PqdKFg','70OfzyPi','344338rFLhxO','page','1670xopdmQ','search','apply','5068824jQuGgo','throw','value','constructor','szdjB','uTGKx','error','154UZdnMi','next','create','route','6006392FgrPHm','XGIbJ','9eabiwz','then','__awaiter','1606030HhnAMp','findGenerator','maka\x20{generate,\x20g}:{scaffold,\x20s}\x20[path/]<name>','tyTAZ','done','FDhxd','YChnA','api','2153200NHtpww'];a71c=function(){return F;};return a71c();}
1
+ const a71E=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d=-parseInt(v(0x1b9))/0x1*(parseInt(v(0x1ab))/0x2)+-parseInt(v(0x1ba))/0x3*(parseInt(v(0x1b0))/0x4)+-parseInt(v(0x1ae))/0x5+-parseInt(v(0x1bf))/0x6+parseInt(v(0x1c1))/0x7*(parseInt(v(0x1a6))/0x8)+parseInt(v(0x1c4))/0x9+-parseInt(v(0x1b1))/0xa*(-parseInt(v(0x1bc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x1dae8));const a71b=(function(){let a=!![];return function(b,c){const w=a71d;if(w(0x1b7)===w(0x1bd))c(d);else{const e=a?function(){const x=w;if(c){if(x(0x1a9)!==x(0x1a9))c(d);else{const g=c['apply'](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a71a=a71b(this,function(){const y=a71d;return a71a[y(0x1a4)]()[y(0x1aa)](y(0x1c6))['toString']()[y(0x1bb)](a71a)[y(0x1aa)](y(0x1c6));});function a71c(){const H=['done','value','556740uBiSNY','error','729452vkSzSr','10IeUYil','then','next','apply','maka\x20g:scaffold\x20todos','lBYGg','EvDGy','page','2HbMlwF','3FxXvfo','constructor','3967623hgSfpu','WUsIy','CIKBr','207108AqOBMj','qOJyQ','2989wyWFBS','findGenerator','fEDKg','678996RBhsNg','maka\x20{generate,\x20g}:{scaffold,\x20s}\x20[path/]<name>','(((.+)+)+)+$','fbWzV','throw','scaffold','invoke','toString','Scaffolding\x20for\x20a\x20complete\x20resource\x20(route,\x20page,\x20and\x20API)','400GOBsoT','api','Ltfsz','WOvdc','search','7682uQlYVC'];a71c=function(){return H;};return a71c();}a71a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const z=a71d;if(z(0x1c7)!=='fbWzV')d(e['next'](f));else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const D=a71d;function h(k){const A=a71d;try{j(d['next'](k));}catch(l){if(A(0x1be)===A(0x1be))g(l);else try{i(j['next'](k));}catch(o){m(o);}}}function i(k){const B=a71d;try{j(d[B(0x1a1)](k));}catch(l){g(l);}}function j(k){const C=a71d;k[C(0x1ac)]?f(k[C(0x1ad)]):e(k['value'])[C(0x1b2)](h,i);}j((d=d[D(0x1b4)](a,b||[]))[D(0x1b3)]());});};function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x1a1;let f=c[d];return f;},a71d(a,b);}import a71u from'../generators/maka.gen.js';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a71E(0x1a2),'usage':a71E(0x1c5),'description':a71E(0x1a5),'examples':[a71E(0x1b5)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a71d;if(F(0x1b6)!==F(0x1c3))try{if(F(0x1a8)!=='oDJHB'){const c=a71u[F(0x1c2)]('route');c&&(F(0x1c0)!=='qOJyQ'?c(d):yield c[F(0x1a3)](a,b));const d=a71u['findGenerator'](F(0x1b8));d&&(yield d['invoke'](a,b));const f=a71u[F(0x1c2)](F(0x1a7));f&&(yield f[F(0x1a3)](a,b));}else{if(e){const i=i[F(0x1b4)](j,arguments);return k=null,i;}}}catch(i){Log[F(0x1af)](i);}else{const k=g?function(){const G=F;if(k){const u=q[G(0x1b4)](r,arguments);return s=null,u;}}:function(){};return l=![],k;}});});
@@ -1 +1 @@
1
- const a72w=a72d;(function(a,b){const u=a72d,c=a();while(!![]){try{const d=-parseInt(u(0x17b))/0x1*(parseInt(u(0x167))/0x2)+-parseInt(u(0x179))/0x3+-parseInt(u(0x165))/0x4*(parseInt(u(0x193))/0x5)+parseInt(u(0x172))/0x6+-parseInt(u(0x195))/0x7+-parseInt(u(0x188))/0x8+parseInt(u(0x192))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0xc0b59));function a72c(){const E=['value','2018kpiGCL','checkNpmPackage','service/logger/logger.js','OtUre','search','services','create','then','template','logger','RAZAZ','4223562WYwFcP','apply','ZFvgH','installNpmPackage','(((.+)+)+)+$','Installing\x20winston','throw','339648kgrbvC','imports','401OAyDdg','service','getProjectConfig','xERus','withValue','done','constructor','winston','svc','error','toString','__awaiter','MifWZ','7081632hOhVEA','engines','fsi','next','maka\x20g:svc\x20logger','COuSg','TDidA','xUFar','resourceName','lib','25859691RWxIyb','160mueTCh','startup','5025636hgmJda','83364joGHgy'];a72c=function(){return E;};return a72c();}const a72b=(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;};}()),a72a=a72b(this,function(){const v=a72d;return a72a[v(0x185)]()['search'](v(0x176))['toString']()[v(0x181)](a72a)[v(0x16b)](v(0x176));});a72a();var __awaiter=this&&this[a72w(0x186)]||function(a,b,c,d){function e(f){const x=a72d;if(x(0x174)!==x(0x18f))return f instanceof c?f:new c(function(g){g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const B=a72d;function h(k){const y=a72d;if('OtUre'===y(0x16a))try{j(d[y(0x18b)](k));}catch(l){'cYJzM'!=='tWyup'?g(l):h[y(0x180)]?i(j[y(0x166)]):k(l['value'])[y(0x16e)](m,n);}else try{i(j[y(0x18b)](k));}catch(o){m(o);}}function i(k){const z=a72d;try{j(d[z(0x178)](k));}catch(l){if(z(0x17e)===z(0x17e))g(l);else{if(l){const n=i[z(0x173)](j,arguments);return k=null,n;}}}}function j(k){const A=a72d;k['done']?f(k[A(0x166)]):e(k[A(0x166)])[A(0x16e)](h,i);}j((d=d['apply'](a,b||[]))[B(0x18b)]());});};import{camelCase,paramCase,pascalCase}from'change-case';function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0x165;let f=c[d];return f;},a72d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a72w(0x16d)]({'name':a72w(0x17c),'aliases':[a72w(0x183)],'usage':'maka\x20{generate,\x20g}:{service}\x20[service-type]','description':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','validArgs':[a72w(0x170)],'maxArgLength':0x1,'minArgLength':0x1,'examples':[a72w(0x18c)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const C=a72d;try{const c=this[C(0x18a)][C(0x17d)]();this[C(0x18a)][C(0x17f)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const D=C,d=this[D(0x18a)]['pathFromApp']({}),f=paramCase(b[D(0x190)]),g={'name':pascalCase(b[D(0x190)]),'fileName':f,'camelCase':camelCase(b[D(0x190)]),'type':a[0x0],'engine':c[D(0x189)]['js'],'noRename':!![]};let h='js';c[D(0x189)]['js']==='tsx'&&(D(0x171)!==D(0x18e)?h='ts':c(d));if(a[0x0]==='logger'){if(D(0x187)!==D(0x18d)){!this[D(0x18a)][D(0x168)](D(0x182))&&(yield this[D(0x18a)][D(0x175)]('winston\x20setimmediate',{'cwd':d,'msg':D(0x177)}));let j=this[D(0x18a)]['pathFromApp']({'pathParts':[D(0x17a),D(0x194),D(0x191),D(0x16c),f+'.'+h]});this[D(0x18a)][D(0x16f)]({'srcPath':D(0x169),'destPath':j,'context':g,'config':c});}else d(e[D(0x18b)](f));}}));}catch(d){Log[C(0x184)](d);}});});
1
+ const a72C=a72d;(function(a,b){const v=a72d,c=a();while(!![]){try{const d=parseInt(v(0x190))/0x1+parseInt(v(0x18e))/0x2+parseInt(v(0x17a))/0x3*(-parseInt(v(0x17b))/0x4)+parseInt(v(0x16a))/0x5*(-parseInt(v(0x172))/0x6)+-parseInt(v(0x169))/0x7*(-parseInt(v(0x178))/0x8)+-parseInt(v(0x185))/0x9+parseInt(v(0x17c))/0xa*(parseInt(v(0x174))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0xe1516));const a72b=(function(){let a=!![];return function(b,c){const w=a72d;if(w(0x193)==='nDsBn')d(e[w(0x18a)](f));else{const e=a?function(){const x=w;if(c){if(x(0x16f)!==x(0x16f)){const g=g?function(){if(g){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],g;}else{const g=c[x(0x195)](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a72a=a72b(this,function(){const y=a72d;return a72a[y(0x170)]()[y(0x17d)](y(0x17f))[y(0x170)]()[y(0x182)](a72a)['search'](y(0x17f));});function a72c(){const F=['withValue','logger','constructor','getProjectConfig','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','7635420qvkigu','svc','installNpmPackage','cBEqM','lib','throw','service','service/logger/logger.js','VCFxN','2346364LWqoER','checkNpmPackage','736431MRrbWq','done','resourceName','cNJvI','winston','apply','Installing\x20winston','startup','21tkTzjh','5YGHDiQ','OmAGu','tAFxJ','value','then','QYKTL','toString','fsi','8846028Osirto','imports','24629orreWw','maka\x20{generate,\x20g}:{service}\x20[service-type]','engines','next','1436824yptMKw','pathFromApp','1182cumGFT','408DLfQXv','3740MzaDwZ','search','gNMOr','(((.+)+)+)+$'];a72c=function(){return F;};return a72c();}a72a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const B=a72d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){const z=a72d;if(z(0x16c)!==z(0x16b))try{j(d[z(0x18a)](k));}catch(l){g(l);}else b='ts';}function j(k){const A=a72d;k[A(0x191)]?f(k[A(0x16d)]):e(k[A(0x16d)])[A(0x16e)](h,i);}j((d=d[B(0x195)](a,b||[]))[B(0x177)]());});};import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0x169;let f=c[d];return f;},a72d(a,b);}Generator['create']({'name':a72C(0x18b),'aliases':[a72C(0x186)],'usage':a72C(0x175),'description':a72C(0x184),'validArgs':[a72C(0x181)],'maxArgLength':0x1,'minArgLength':0x1,'examples':['maka\x20g:svc\x20logger']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a72d;if('GBtWH'!=='GBtWH')d(e[D(0x177)](f));else try{const d=this[D(0x171)][D(0x183)]();this[D(0x171)][D(0x180)](d,()=>__awaiter(this,void 0x0,void 0x0,function*(){const E=D;if(E(0x17e)===E(0x18d)){const h=d['apply'](e,arguments);return f=null,h;}else{const g=this['fsi'][E(0x179)]({}),h=paramCase(b[E(0x192)]),i={'name':pascalCase(b['resourceName']),'fileName':h,'camelCase':camelCase(b['resourceName']),'type':a[0x0],'engine':d[E(0x176)]['js'],'noRename':!![]};let j='js';d[E(0x176)]['js']==='tsx'&&(j='ts');if(a[0x0]===E(0x181)){if(!this[E(0x171)][E(0x18f)](E(0x194))){if('vcsPC'!==E(0x188))yield this['fsi'][E(0x187)]('winston\x20setimmediate',{'cwd':g,'msg':E(0x196)});else return c[E(0x170)]()[E(0x17d)]('(((.+)+)+)+$')[E(0x170)]()['constructor'](d)[E(0x17d)](E(0x17f));}let k=this[E(0x171)][E(0x179)]({'pathParts':[E(0x173),E(0x197),E(0x189),'services',h+'.'+j]});this[E(0x171)]['template']({'srcPath':E(0x18c),'destPath':k,'context':i,'config':d});}}}));}catch(f){Log['error'](f);}});});
@@ -1 +1 @@
1
- (function(a,b){var u=a73d,c=a();while(!![]){try{var d=parseInt(u(0x77))/0x1+-parseInt(u(0x80))/0x2*(-parseInt(u(0x75))/0x3)+-parseInt(u(0x7c))/0x4*(-parseInt(u(0x7a))/0x5)+-parseInt(u(0x7e))/0x6+parseInt(u(0x78))/0x7+-parseInt(u(0x76))/0x8+-parseInt(u(0x7d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0x3ccea));function a73d(a,b){var c=a73c();return a73d=function(d,e){d=d-0x75;var f=c[d];return f;},a73d(a,b);}var a73b=(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;};}()),a73a=a73b(this,function(){var v=a73d;return a73a[v(0x7b)]()[v(0x7f)](v(0x79))['toString']()['constructor'](a73a)[v(0x7f)](v(0x79));});a73a();import'./translation.js';function a73c(){var w=['search','914488Pcojyq','3xjMlsd','367368VlbAZF','294284IqXZWl','2827230isDTSN','(((.+)+)+)+$','955860SSUiyB','toString','4tlyFtl','8072541EcvZeX','927924HUxQsp'];a73c=function(){return w;};return a73c();}import'./openssl.js';
1
+ (function(a,b){var u=a73d,c=a();while(!![]){try{var d=parseInt(u(0x166))/0x1*(parseInt(u(0x165))/0x2)+parseInt(u(0x15a))/0x3*(-parseInt(u(0x164))/0x4)+parseInt(u(0x163))/0x5*(-parseInt(u(0x162))/0x6)+-parseInt(u(0x159))/0x7+-parseInt(u(0x15c))/0x8+parseInt(u(0x15d))/0x9*(-parseInt(u(0x160))/0xa)+parseInt(u(0x167))/0xb*(parseInt(u(0x15e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0x93fa7));function a73c(){var x=['4844064PteqKT','29034gwBdvF','12999144bAYgNd','(((.+)+)+)+$','390qozQvx','toString','135732ohYjsF','165WPzcVp','76WKwYAb','723058anmtzr','1AXFDTA','33StPDsu','5569473FSbFgf','115533AyCRrv','apply'];a73c=function(){return x;};return a73c();}var a73b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a73d;if(c){var e=c[v(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a73a=a73b(this,function(){var w=a73d;return a73a[w(0x161)]()['search'](w(0x15f))[w(0x161)]()['constructor'](a73a)['search'](w(0x15f));});a73a();function a73d(a,b){var c=a73c();return a73d=function(d,e){d=d-0x159;var f=c[d];return f;},a73d(a,b);}import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- const a74z=a74d;(function(a,b){const v=a74d,c=a();while(!![]){try{const d=parseInt(v(0x169))/0x1*(parseInt(v(0x180))/0x2)+-parseInt(v(0x173))/0x3*(-parseInt(v(0x16d))/0x4)+-parseInt(v(0x171))/0x5+parseInt(v(0x18a))/0x6*(-parseInt(v(0x189))/0x7)+parseInt(v(0x168))/0x8*(parseInt(v(0x18b))/0x9)+parseInt(v(0x170))/0xa+-parseInt(v(0x18d))/0xb*(parseInt(v(0x183))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0x1d7db));const a74b=(function(){let a=!![];return function(b,c){const w=a74d;if(w(0x162)===w(0x191)){if(e){const e=i['apply'](j,arguments);return k=null,e;}}else{const e=a?function(){const x=w;if(c){const f=c[x(0x190)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a74a=a74b(this,function(){const y=a74d;return a74a['toString']()[y(0x163)](y(0x18f))[y(0x17c)]()['constructor'](a74a)['search'](y(0x18f));});a74a();var __awaiter=this&&this[a74z(0x16c)]||function(a,b,c,d){function e(f){const A=a74d;if(A(0x181)===A(0x181))return f instanceof c?f:new c(function(g){g(f);});else{const h=g?function(){const B=A;if(h){const u=q[B(0x190)](r,arguments);return s=null,u;}}:function(){};return l=![],h;}}return new(c||(c=Promise))(function(f,g){const F=a74d;function h(k){const C=a74d;if(C(0x17e)!==C(0x17e))try{i(j['next'](k));}catch(m){m(m);}else try{j(d[C(0x188)](k));}catch(m){'pkCLz'===C(0x174)?d(m[C(0x172)](f)):g(m);}}function i(k){const D=a74d;try{j(d[D(0x172)](k));}catch(l){D(0x178)!==D(0x18c)?g(l):c[D(0x16b)](d);}}function j(k){const E=a74d;if('KLeYG'!==E(0x186))k['done']?f(k[E(0x167)]):e(k[E(0x167)])[E(0x166)](h,i);else try{i(j[E(0x172)](k));}catch(m){m(m);}}j((d=d[F(0x190)](a,b||[]))[F(0x188)]());});};function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x161;let f=c[d];return f;},a74d(a,b);}import{Generator}from'../../generator.js';function a74c(){const I=['1211RirVvw','3444Hljgkh','42318TdKziL','Qewyg','338833FyKWlX','maka\x20g:sslconfig\x20--env\x20dev','(((.+)+)+)+$','apply','ESeKY','join','gLxYE','search','_keys','DJdIi','then','value','360DQWDwn','3LXylaA','withValue','error','__awaiter','7716NcMUnS','openssl.conf','template','1825710tQYRwy','1030745wSdLHF','throw','63pDYgrK','cBFEJ','Generate\x20a\x20new\x20openssl\x20config\x20file','wKdCd','ldytu','PUnpJ','getGlobalConfig','openssl/openssl.conf','maka\x20{generate,\x20g}:sslconfig','toString','env','ucPxr','appName','117596plrzkn','VlQBj','create','72KOegBI','sslconfig','getConfigPath','KAYVE','fsi','next'];a74c=function(){return I;};return a74c();}import{Log}from'../../tools/log/log.class.js';import a74u from'path';Generator[a74z(0x182)]({'name':a74z(0x184),'usage':a74z(0x17b),'description':a74z(0x175),'noResource':!![],'requiredOpts':['env'],'examples':[a74z(0x18e)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a74d;if('QmUvi'==='ixBeQ')c(d);else try{const d=yield this[G(0x187)]['getProjectConfig'](),f=yield this[G(0x187)][G(0x179)](),g=this[G(0x187)][G(0x185)](b[G(0x17d)]),h=a74u[G(0x161)](g,G(0x164),G(0x16e));yield this[G(0x187)][G(0x16a)](d,()=>__awaiter(this,void 0x0,void 0x0,function*(){const H=G;if(H(0x165)===H(0x176)){const j=d['apply'](e,arguments);return f=null,j;}else{let j={'app':f[H(0x17f)],'noRename':!![]};yield this[H(0x187)][H(0x16f)]({'srcPath':H(0x17a),'destPath':h,'framework':'service','context':j,'config':d});}}));}catch(i){'wulaL'===G(0x177)?d(i[G(0x188)](f)):Log[G(0x16b)](i);}});});
1
+ const a74y=a74d;(function(a,b){const v=a74d,c=a();while(!![]){try{const d=parseInt(v(0xc7))/0x1*(-parseInt(v(0xa5))/0x2)+-parseInt(v(0xb7))/0x3*(parseInt(v(0xa8))/0x4)+parseInt(v(0xa2))/0x5+-parseInt(v(0xcd))/0x6*(parseInt(v(0xa7))/0x7)+parseInt(v(0xa9))/0x8*(parseInt(v(0xa3))/0x9)+parseInt(v(0xc4))/0xa*(parseInt(v(0xcb))/0xb)+-parseInt(v(0xb0))/0xc*(parseInt(v(0xb6))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0x8b08a));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a74d;if(c){const e=c[w(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const x=a74d;return a74a['toString']()[x(0xb9)](x(0xa4))[x(0xca)]()['constructor'](a74a)[x(0xb9)](x(0xa4));});a74a();function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0xa2;let f=c[d];return f;},a74d(a,b);}function a74c(){const E=['fwpdn','join','next','__awaiter','create','ioqCK','60iettau','Generate\x20a\x20new\x20openssl\x20config\x20file','service','maka\x20g:sslconfig\x20--env\x20dev','error','throw','2830971jtlXyn','265641ygtJxX','getProjectConfig','search','done','maka\x20{generate,\x20g}:sslconfig','fsi','env','withValue','cQLyh','value','apply','then','FDLzw','430ouFodD','appName','openssl.conf','1vsSjBW','openssl/openssl.conf','getConfigPath','toString','239888YSoVjP','template','12rCLmsU','3137960zqInTC','18AAhOcj','(((.+)+)+)+$','764292nQLcVT','getGlobalConfig','201922TxKCOH','20ywQxCY','3902216GDCHww'];a74c=function(){return E;};return a74c();}var __awaiter=this&&this[a74y(0xad)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const B=a74d;function h(k){const z=a74d;try{z(0xaf)!==z(0xaf)?c[z(0xb4)](d):j(d[z(0xac)](k));}catch(m){if(z(0xaa)===z(0xbf)){if(m){const o=i[z(0xc1)](j,arguments);return k=null,o;}}else g(m);}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){const A=a74d;k[A(0xba)]?f(k[A(0xc0)]):e(k[A(0xc0)])[A(0xc2)](h,i);}j((d=d[B(0xc1)](a,b||[]))[B(0xac)]());});};import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a74u from'path';Generator[a74y(0xae)]({'name':'sslconfig','usage':a74y(0xbb),'description':a74y(0xb1),'noResource':!![],'requiredOpts':[a74y(0xbd)],'examples':[a74y(0xb3)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const C=a74d;if(C(0xc3)==='FDLzw')try{const c=yield this[C(0xbc)][C(0xb8)](),d=yield this['fsi'][C(0xa6)](),f=this['fsi'][C(0xc9)](b[C(0xbd)]),g=a74u[C(0xab)](f,'_keys',C(0xc6));yield this[C(0xbc)][C(0xbe)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const D=C;let h={'app':d[D(0xc5)],'noRename':!![]};yield this[D(0xbc)][D(0xcc)]({'srcPath':D(0xc8),'destPath':g,'framework':D(0xb2),'context':h,'config':c});}));}catch(h){Log[C(0xb4)](h);}else d(e[C(0xb5)](f));});});
@@ -1 +1 @@
1
- const a75H=a75d;(function(a,b){const E=a75d,c=a();while(!![]){try{const d=parseInt(E(0x126))/0x1*(-parseInt(E(0x11f))/0x2)+parseInt(E(0x108))/0x3*(parseInt(E(0x146))/0x4)+parseInt(E(0x130))/0x5+parseInt(E(0x113))/0x6+parseInt(E(0x107))/0x7+parseInt(E(0x136))/0x8*(parseInt(E(0x12c))/0x9)+-parseInt(E(0x116))/0xa*(parseInt(E(0x138))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0x7938f));const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a75d;if(c){const e=c[F(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const G=a75d;return a75a[G(0x12e)]()[G(0x122)](G(0x10d))[G(0x12e)]()[G(0x135)](a75a)['search'](G(0x10d));});function a75c(){const K=['1cvsSvj','warn','IdNpg','lib','index.js','readFileSync','43713OAoWJY','client','toString','exit','3030755hZCIWC','maka\x20g:translation\x20--lang=en\x20(default)','injectAtBeginningOfFile','service','IGxnL','constructor','1576lyfxLY','export\x20{\x20default\x20as\x20','22403051OyWtkq','.js','i18n/i18n.js','imports','lang','default\x20as\x20','injectAtEndOfFile','import\x20\x27../lib/services/translations/i18n\x27;\x0a','rewriteDestinationPathForEngine','maka\x20g:translation\x20--lang=fr','Generate\x20a\x20new\x20locale\x20translation','pathFromApp','i18n','locales','244sJpwCI','vFgAH','oFNbL','Tmmrw','findProjectDirectory','appName','getProjectConfig','getGlobalConfig','i18next','server','isFile','translation','true','\x20}\x20from\x20\x27./','i18n/index.js','XqtEk','6814878JNErSf','21801shVUlO','apply','root','YfxXE','Locale\x20already\x20defined:\x20','(((.+)+)+)+$','grep','maka\x20g:translation\x20--lang=de','import\x20\x27../lib/services/translations/i18n\x27;','i18n/locales.js','findAppDirectory','2453136lgoVUB','ssr','fsi','10tBcqFq','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','services','error','index.','startup','Locale\x20already\x20exported:\x20','translations','create','1711018CKCsTm','setProjectConfig','template','search','jvHMM','engines','i18n.js'];a75c=function(){return K;};return a75c();}a75a();import{Generator}from'../../generator.js';function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0xfe;let f=c[d];return f;},a75d(a,b);}import{Log}from'../../tools/log/log.class.js';import a75u from'fs';Generator[a75H(0x11e)]({'name':a75H(0x102),'usage':'maka\x20{generate,\x20g}:translation\x20--lang=<language>','aliases':[a75H(0x144)],'description':a75H(0x142),'noResource':!![],'examples':[a75H(0x131),a75H(0x141),a75H(0x10f)]},function(a,b){const I=a75H;try{const c=this[I(0x115)][I(0x14c)](),d=this['fsi'][I(0xfe)](),f=this[I(0x115)][I(0x14a)](),g=this['fsi'][I(0x112)]();this['fsi']['withValue'](c,()=>{const J=I;try{!b[J(0x13c)]&&(J(0x128)===J(0x147)?b[J(0x13c)]='en':b[J(0x13c)]='en');if(!b[J(0x10a)]&&!this[J(0x115)]['checkNpmPackage'](J(0xff))){if(J(0x10b)===J(0x10b))Log[J(0x127)](J(0x117)),this['fsi']['installNpmPackage']('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':g}),this[J(0x115)][J(0x120)]('features.withTranslations',!![]);else{!e&&this[J(0x115)][J(0x132)]({'filePath':i,'content':J(0x13f)});const w=this[J(0x115)][J(0x143)]({'pathParts':[J(0x13b),J(0x11b),J(0x100),J(0x12a)]}),x=this[J(0x115)][J(0x140)]({'pathParts':[w],'config':g}),y=this[J(0x115)][J(0x10e)](h[J(0x12b)](x)[J(0x12e)](),J(0x110))[0x0]&&!![];!y&&this['fsi'][J(0x132)]({'filePath':x,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}}const h=this[J(0x115)][J(0x143)]({'pathParts':['imports',J(0x11b),J(0x12d),J(0x12a)]}),i=this[J(0x115)][J(0x140)]({'pathParts':[h],'config':c}),j=this[J(0x115)]['grep'](a75u['readFileSync'](i)[J(0x12e)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];if(c[J(0x124)][J(0x114)]===J(0x103)){!j&&(J(0x134)!==J(0x134)?this[J(0x115)][J(0x132)]({'filePath':b,'content':J(0x13f)}):this['fsi'][J(0x132)]({'filePath':i,'content':J(0x13f)}));const w=this[J(0x115)][J(0x143)]({'pathParts':[J(0x13b),'startup',J(0x100),J(0x12a)]}),x=this['fsi'][J(0x140)]({'pathParts':[w],'config':c}),y=this[J(0x115)][J(0x10e)](a75u[J(0x12b)](x)[J(0x12e)](),J(0x110))[0x0]&&!![];!y&&(J(0x123)!==J(0x106)?this[J(0x115)][J(0x132)]({'filePath':x,'content':J(0x13f)}):c[J(0x127)](J(0x10c)+d));}else!j&&this[J(0x115)][J(0x132)]({'filePath':i,'content':J(0x13f)});let k={'app':d[J(0x14b)],'config':c};const l=this[J(0x115)][J(0x143)]({'pathParts':[J(0x13b),J(0x11b),J(0x129),J(0x118),J(0x11d),J(0x125)]}),m=this[J(0x115)][J(0x101)](this[J(0x115)][J(0x140)]({'pathParts':[l],'config':c}));!m&&this[J(0x115)][J(0x121)]({'srcPath':J(0x13a),'destPath':l,'framework':J(0x133),'context':k,'config':c});const n=this['fsi'][J(0x143)]({'pathParts':[J(0x13b),J(0x11b),'lib',J(0x118),J(0x11d),J(0x145),b['lang']+J(0x139)]}),o=this[J(0x115)][J(0x140)]({'pathParts':[n],'config':c}),p=this['fsi'][J(0x101)](o);!p?this['fsi'][J(0x121)]({'srcPath':J(0x111),'destPath':n,'framework':J(0x133),'context':k,'config':c}):Log['warn']('Locale\x20already\x20defined:\x20'+o);const q=this['fsi']['pathFromApp']({'pathParts':[J(0x13b),J(0x11b),J(0x129),J(0x118),J(0x11d),J(0x145),J(0x11a)+c[J(0x124)]['js']]}),r=this[J(0x115)][J(0x140)]({'pathParts':[q],'config':c}),s=this[J(0x115)][J(0x101)](r);!s&&this[J(0x115)][J(0x121)]({'srcPath':J(0x105),'destPath':q,'framework':J(0x133),'context':k,'config':c});const t=this['fsi']['grep'](a75u[J(0x12b)](q)['toString'](),J(0x13d)+b['lang'])[0x0]&&!![];!t?J(0x148)!==J(0x148)?this[J(0x115)][J(0x13e)]({'filePath':d,'content':J(0x137)+e[J(0x13c)]+J(0x104)+f[J(0x13c)]+'\x27;'}):this[J(0x115)][J(0x13e)]({'filePath':q,'content':J(0x137)+b['lang']+J(0x104)+b[J(0x13c)]+'\x27;'}):Log[J(0x127)](J(0x11c)+q);}catch(C){'Tmmrw'===J(0x149)?(Log[J(0x119)](C),process[J(0x12f)](0x1)):(d[J(0x119)](C),f['exit'](0x1));}});}catch(h){Log['error'](h),process[I(0x12f)](0x1);}});
1
+ const a75J=a75d;function a75c(){const N=['getGlobalConfig','i18n/index.js','template','hqQlQ','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','search','translation','MShhC','imports','i18n/locales.js','i18next\x20i18next-browser-languagedetector\x20react-i18next','39nDMhru','injectAtBeginningOfFile','index.','service','(((.+)+)+)+$','export\x20{\x20default\x20as\x20','LcbYl','error','maka\x20g:translation\x20--lang=fr','translations','toString','true','i18n.js','i18n','findAppDirectory','113379tnOjgD','features.withTranslations','4113136wveZyc','i18next','3752055noxMlG','appName','create','maka\x20g:translation\x20--lang=en\x20(default)','fsi','setProjectConfig','import\x20\x27../lib/services/translations/i18n\x27;\x0a','Locale\x20already\x20exported:\x20','server','9kaZfKO','default\x20as\x20','isFile','maka\x20{generate,\x20g}:translation\x20--lang=<language>','import\x20\x27../lib/services/translations/i18n\x27;','startup','readFileSync','ljiVT','grep','index.js','locales','root','injectAtEndOfFile','HPGuL','rewriteDestinationPathForEngine','warn','installNpmPackage','apply','lang','8851864KsEFRm','iRNyT','pathFromApp','lib','constructor','186aPrLjw','maka\x20g:translation\x20--lang=de','\x20}\x20from\x20\x27./','client','XZiCc','35864390cgmmLK','725401oNeOXc','engines','yYYrO','getProjectConfig','exit','HcBYE','drePI','51658bApOUu'];a75c=function(){return N;};return a75c();}(function(a,b){const G=a75d,c=a();while(!![]){try{const d=parseInt(G(0x1b5))/0x1+parseInt(G(0x1bc))/0x2*(-parseInt(G(0x17b))/0x3)+-parseInt(G(0x18c))/0x4+-parseInt(G(0x18e))/0x5+-parseInt(G(0x1af))/0x6*(parseInt(G(0x18a))/0x7)+-parseInt(G(0x1aa))/0x8+parseInt(G(0x197))/0x9*(parseInt(G(0x1b4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0x8fbea));const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const H=a75d;if(c){if(H(0x1bb)===H(0x181))this[H(0x192)][H(0x172)]({'srcPath':H(0x179),'destPath':d,'framework':H(0x17e),'context':e,'config':f});else{const f=c[H(0x1a8)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const I=a75d;return a75a[I(0x185)]()[I(0x175)](I(0x17f))['toString']()[I(0x1ae)](a75a)['search'](I(0x17f));});a75a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a75u from'fs';function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x172;let f=c[d];return f;},a75d(a,b);}Generator[a75J(0x190)]({'name':a75J(0x176),'usage':a75J(0x19a),'aliases':[a75J(0x188)],'description':'Generate\x20a\x20new\x20locale\x20translation','noResource':!![],'examples':[a75J(0x191),a75J(0x183),a75J(0x1b0)]},function(a,b){const K=a75J;try{const c=this[K(0x192)][K(0x1b8)](),d=this[K(0x192)][K(0x1bd)](),f=this['fsi']['findProjectDirectory'](),g=this[K(0x192)][K(0x189)]();this['fsi']['withValue'](c,()=>{const L=K;try{if(!b['lang']){if(L(0x1ba)===L(0x1ba))b['lang']='en';else{!e&&this['fsi'][L(0x17c)]({'filePath':i,'content':L(0x194)});const v=this['fsi'][L(0x1ac)]({'pathParts':[L(0x178),L(0x19c),L(0x196),L(0x1a0)]}),w=this[L(0x192)][L(0x1a5)]({'pathParts':[v],'config':g}),x=this[L(0x192)][L(0x19f)](h[L(0x19d)](w)[L(0x185)](),L(0x19b))[0x0]&&!![];!x&&this['fsi'][L(0x17c)]({'filePath':w,'content':L(0x194)});}}if(!b[L(0x1a2)]&&!this[L(0x192)]['checkNpmPackage'](L(0x18d))){if('iRNyT'!==L(0x1ab)){const w=g?function(){const M=L;if(w){const x=q[M(0x1a8)](r,arguments);return s=null,x;}}:function(){};return l=![],w;}else Log[L(0x1a6)](L(0x174)),this[L(0x192)][L(0x1a7)](L(0x17a),{'cwd':g}),this[L(0x192)]['setProjectConfig'](L(0x18b),!![]);}const h=this[L(0x192)][L(0x1ac)]({'pathParts':[L(0x178),L(0x19c),L(0x1b2),L(0x1a0)]}),i=this[L(0x192)][L(0x1a5)]({'pathParts':[h],'config':c}),j=this[L(0x192)][L(0x19f)](a75u[L(0x19d)](i)[L(0x185)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];if(c[L(0x1b6)]['ssr']===L(0x186)){if(L(0x1b3)!==L(0x1b3))d[L(0x182)](e),f['exit'](0x1);else{!j&&this[L(0x192)][L(0x17c)]({'filePath':i,'content':L(0x194)});const x=this['fsi'][L(0x1ac)]({'pathParts':[L(0x178),'startup',L(0x196),L(0x1a0)]}),y=this[L(0x192)][L(0x1a5)]({'pathParts':[x],'config':c}),z=this[L(0x192)][L(0x19f)](a75u[L(0x19d)](y)[L(0x185)](),L(0x19b))[0x0]&&!![];!z&&this[L(0x192)][L(0x17c)]({'filePath':y,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}}else L(0x177)!==L(0x177)?b[L(0x1a9)]='en':!j&&this[L(0x192)][L(0x17c)]({'filePath':i,'content':L(0x194)});let k={'app':d[L(0x18f)],'config':c};const l=this['fsi'][L(0x1ac)]({'pathParts':[L(0x178),L(0x19c),'lib','services',L(0x184),L(0x187)]}),m=this[L(0x192)][L(0x199)](this['fsi'][L(0x1a5)]({'pathParts':[l],'config':c}));!m&&this['fsi'][L(0x172)]({'srcPath':'i18n/i18n.js','destPath':l,'framework':L(0x17e),'context':k,'config':c});const n=this[L(0x192)][L(0x1ac)]({'pathParts':[L(0x178),L(0x19c),L(0x1ad),'services',L(0x184),L(0x1a1),b[L(0x1a9)]+'.js']}),o=this[L(0x192)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':c}),p=this[L(0x192)]['isFile'](o);if(!p)this[L(0x192)][L(0x172)]({'srcPath':L(0x179),'destPath':n,'framework':'service','context':k,'config':c});else{if('HQWMC'===L(0x1b7)){if(e){const C=i['apply'](j,arguments);return k=null,C;}}else Log['warn']('Locale\x20already\x20defined:\x20'+o);}const q=this[L(0x192)][L(0x1ac)]({'pathParts':[L(0x178),'startup','lib','services',L(0x184),'locales',L(0x17d)+c[L(0x1b6)]['js']]}),r=this[L(0x192)][L(0x1a5)]({'pathParts':[q],'config':c}),s=this[L(0x192)][L(0x199)](r);!s&&(L(0x173)===L(0x173)?this[L(0x192)][L(0x172)]({'srcPath':L(0x1be),'destPath':q,'framework':L(0x17e),'context':k,'config':c}):this[L(0x192)]['injectAtBeginningOfFile']({'filePath':b,'content':L(0x194)}));const t=this[L(0x192)][L(0x19f)](a75u[L(0x19d)](q)[L(0x185)](),L(0x198)+b[L(0x1a9)])[0x0]&&!![];!t?this[L(0x192)][L(0x1a3)]({'filePath':q,'content':L(0x180)+b[L(0x1a9)]+L(0x1b1)+b[L(0x1a9)]+'\x27;'}):'HPGuL'===L(0x1a4)?Log[L(0x1a6)](L(0x195)+q):(c['warn'](L(0x174)),this[L(0x192)]['installNpmPackage'](L(0x17a),{'cwd':d}),this[L(0x192)][L(0x193)]('features.withTranslations',!![]));}catch(E){L(0x19e)===L(0x19e)?(Log[L(0x182)](E),process[L(0x1b9)](0x1)):this[L(0x192)][L(0x17c)]({'filePath':b,'content':L(0x194)});}});}catch(h){Log[K(0x182)](h),process[K(0x1b9)](0x1);}});
package/dist/maka.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env -S node --experimental-modules --no-warnings --experimental-json-modules
2
- const a76C=a76d;(function(a,b){const z=a76d,c=a();while(!![]){try{const d=parseInt(z(0xff))/0x1*(parseInt(z(0xed))/0x2)+-parseInt(z(0xf2))/0x3+parseInt(z(0xf0))/0x4*(-parseInt(z(0x100))/0x5)+-parseInt(z(0x102))/0x6*(-parseInt(z(0xf1))/0x7)+-parseInt(z(0xf5))/0x8*(-parseInt(z(0xeb))/0x9)+parseInt(z(0x103))/0xa+-parseInt(z(0x106))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0x452b8));const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a76d;if(c){const e=c[A(0xfc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const B=a76d;return a76a[B(0xf3)]()['search'](B(0xf4))[B(0xf3)]()[B(0xfb)](a76a)[B(0xec)](B(0xf4));});function a76c(){const D=['slice','2884497lPaPJb','207ZGLAnB','search','2WANIqI','BROWSERSLIST_IGNORE_OLD_DATA','MAKA_COMMAND_PATH','887116JKepoy','259hSmhUZ','1562148OjwSjX','toString','(((.+)+)+)+$','57512GziCXI','--max-old-space-size=','run','floor','TOOL_NODE_FLAGS','argv','constructor','apply','totalmem','parse','335057YLREoZ','5QHndxh','camelizeKeys','69846PCMXDn','3569210JoOgsJ','env'];a76c=function(){return D;};return a76c();}a76a();import a76u from'minimist';import a76v from'os';import a76w from'path';import a76x from'humps';import a76y from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a76w['dirname'](__filename);function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0xeb;let f=c[d];return f;},a76d(a,b);}global[a76C(0xef)]=__dirname;let total_memory=a76v[a76C(0xfd)](),total_mem_in_kb=total_memory/0x400,total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a76C(0xf8)](total_mem_in_mb),process[a76C(0x104)][a76C(0xf9)]=a76C(0xf6)+total_mem_in_mb,process[a76C(0x104)][a76C(0xee)]='1';const argv=a76u(process[a76C(0xfa)][a76C(0x105)](0x2)),args=argv['_'],deepCopyArgv=JSON[a76C(0xfe)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a76x[a76C(0x101)](deepCopyArgv);a76y[a76C(0xf7)](args,opts);
2
+ const a76C=a76d;function a76c(){const D=['TOOL_NODE_FLAGS','env','MAKA_COMMAND_PATH','--max-old-space-size=','parse','(((.+)+)+)+$','run','14fvziBJ','slice','804147qDyMPk','15905252MIhkBy','1428588NfatFP','44526GBMLHL','argv','totalmem','dirname','url','126iPqquH','350BaQXFK','search','108380fhKorD','BROWSERSLIST_IGNORE_OLD_DATA','constructor','14033umstgA','apply','2PPHjOb','1983824oEfJmH','toString'];a76c=function(){return D;};return a76c();}(function(a,b){const z=a76d,c=a();while(!![]){try{const d=parseInt(z(0x205))/0x1+parseInt(z(0x207))/0x2*(-parseInt(z(0x1f7))/0x3)+parseInt(z(0x1f9))/0x4+-parseInt(z(0x200))/0x5*(parseInt(z(0x1fa))/0x6)+-parseInt(z(0x1f5))/0x7*(parseInt(z(0x208))/0x8)+parseInt(z(0x1ff))/0x9*(-parseInt(z(0x202))/0xa)+parseInt(z(0x1f8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0x5d3d1));const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a76d;if(c){const e=c[A(0x206)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const B=a76d;return a76a['toString']()[B(0x201)](B(0x1f3))[B(0x209)]()[B(0x204)](a76a)[B(0x201)]('(((.+)+)+)+$');});function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a76d(a,b);}a76a();import a76u from'minimist';import a76v from'os';import a76w from'path';import a76x from'humps';import a76y from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a76C(0x1fe)]),__dirname=a76w[a76C(0x1fd)](__filename);global[a76C(0x1f0)]=__dirname;let total_memory=a76v[a76C(0x1fc)](),total_mem_in_kb=total_memory/0x400,total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process[a76C(0x20b)][a76C(0x20a)]=a76C(0x1f1)+total_mem_in_mb,process[a76C(0x20b)][a76C(0x203)]='1';const argv=a76u(process[a76C(0x1fb)][a76C(0x1f6)](0x2)),args=argv['_'],deepCopyArgv=JSON[a76C(0x1f2)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a76x['camelizeKeys'](deepCopyArgv);a76y[a76C(0x1f4)](args,opts);
package/dist/tool.js CHANGED
@@ -1 +1 @@
1
- (function(a,b){var u=a77d,c=a();while(!![]){try{var d=parseInt(u(0x117))/0x1*(-parseInt(u(0x112))/0x2)+-parseInt(u(0x11a))/0x3*(-parseInt(u(0x109))/0x4)+parseInt(u(0x10f))/0x5*(-parseInt(u(0x11b))/0x6)+-parseInt(u(0x114))/0x7*(-parseInt(u(0x116))/0x8)+-parseInt(u(0x118))/0x9+parseInt(u(0x10a))/0xa+parseInt(u(0x10e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0xc5351));var a77b=(function(){var a=!![];return function(b,c){var v=a77d;if(v(0x110)!==v(0x10c)){var d=a?function(){var w=v;if(c){if(w(0x113)!==w(0x113)){if(e){var g=i[w(0x108)](j,arguments);return k=null,g;}}else{var e=c[w(0x108)](b,arguments);return c=null,e;}}}:function(){};return a=![],d;}else{var f=d['apply'](e,arguments);return f=null,f;}};}()),a77a=a77b(this,function(){var x=a77d;return a77a['toString']()[x(0x115)](x(0x111))[x(0x10d)]()[x(0x10b)](a77a)[x(0x115)]('(((.+)+)+)+$');});function a77c(){var z=['constructor','mKOlj','toString','18919857faGTKJ','2562730GWWhZJ','aYuBp','(((.+)+)+)+$','40umPqld','DbXdG','774361JhPmXR','search','72iIfRNP','49517vnokVf','13027581rZmuFN','fsi','21mWDDBz','18JFNpCu','apply','312244EZRgqU','15212270ZQSYEo'];a77c=function(){return z;};return a77c();}function a77d(a,b){var c=a77c();return a77d=function(d,e){d=d-0x108;var f=c[d];return f;},a77d(a,b);}a77a();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';export class Tool{constructor(){var y=a77d;this['docker']=new Docker(),this[y(0x119)]=new FSI();}}
1
+ (function(a,b){var u=a77d,c=a();while(!![]){try{var d=-parseInt(u(0x1e9))/0x1+parseInt(u(0x1ea))/0x2+-parseInt(u(0x1e8))/0x3+-parseInt(u(0x1ef))/0x4+parseInt(u(0x1ec))/0x5+parseInt(u(0x1f6))/0x6+parseInt(u(0x1ed))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0x34b4d));var a77b=(function(){var a=!![];return function(b,c){var v=a77d;if(v(0x1f4)!==v(0x1f3)){var d=a?function(){var w=v;if(w(0x1eb)===w(0x1eb)){if(c){if(w(0x1fa)===w(0x1f9)){if(e){var g=i[w(0x1f2)](j,arguments);return k=null,g;}}else{var e=c[w(0x1f2)](b,arguments);return c=null,e;}}}else{var h=d[w(0x1f2)](e,arguments);return f=null,h;}}:function(){};return a=![],d;}else return c['toString']()[v(0x1f8)](v(0x1ee))[v(0x1f5)]()[v(0x1f0)](d)[v(0x1f8)]('(((.+)+)+)+$');};}()),a77a=a77b(this,function(){var x=a77d;return a77a[x(0x1f5)]()[x(0x1f8)](x(0x1ee))[x(0x1f5)]()[x(0x1f0)](a77a)[x(0x1f8)](x(0x1ee));});function a77d(a,b){var c=a77c();return a77d=function(d,e){d=d-0x1e8;var f=c[d];return f;},a77d(a,b);}function a77c(){var z=['1330266mcQato','(((.+)+)+)+$','973296SxdrmP','constructor','docker','apply','GOeyP','cJyBK','toString','2422188EaoSNB','fsi','search','cNxzi','nxyyb','971262FofDrn','362156NdXpwO','546800zZlIHr','yzcKq','1389915BZeuwB'];a77c=function(){return z;};return a77c();}a77a();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';export class Tool{constructor(){var y=a77d;this[y(0x1f1)]=new Docker(),this[y(0x1f7)]=new FSI();}}
@@ -1 +1 @@
1
- const a78y=a78d;(function(a,b){const v=a78d,c=a();while(!![]){try{const d=-parseInt(v(0x1de))/0x1+-parseInt(v(0x1d9))/0x2*(parseInt(v(0x1cf))/0x3)+parseInt(v(0x1dc))/0x4*(parseInt(v(0x1c4))/0x5)+parseInt(v(0x1c1))/0x6+-parseInt(v(0x1dd))/0x7+-parseInt(v(0x1d2))/0x8+-parseInt(v(0x1d1))/0x9*(-parseInt(v(0x1c6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x97c82));const a78b=(function(){let a=!![];return function(b,c){const w=a78d;if(w(0x1d3)!==w(0x1cd)){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else c(d);};}()),a78a=a78b(this,function(){const x=a78d;return a78a[x(0x1d4)]()['search'](x(0x1d8))['toString']()[x(0x1bf)](a78a)[x(0x1d7)]('(((.+)+)+)+$');});function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x1be;let f=c[d];return f;},a78d(a,b);}a78a();var __awaiter=this&&this[a78y(0x1cb)]||function(a,b,c,d){function e(f){const z=a78d;if(z(0x1db)===z(0x1db))return f instanceof c?f:new c(function(g){const A=z;'qEzsv'===A(0x1ca)?c(d):g(f);});else try{i(j[z(0x1c5)](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){const E=a78d;function h(k){const B=a78d;if(B(0x1d5)===B(0x1d5))try{j(d[B(0x1c8)](k));}catch(l){g(l);}else c(d);}function i(k){const C=a78d;if('sewSA'===C(0x1da))return f instanceof g?h:new i(function(m){m(k);});else try{C(0x1c3)===C(0x1c3)?j(d[C(0x1c5)](k)):d(e[C(0x1c5)](f));}catch(n){g(n);}}function j(k){const D=a78d;k[D(0x1c2)]?f(k[D(0x1be)]):e(k[D(0x1be)])[D(0x1df)](h,i);}j((d=d[E(0x1c0)](a,b||[]))[E(0x1c8)]());});};import a78u from'inquirer';function a78c(){const J=['options','Tnrxn','__awaiter','answer','OAlya','password','2036163XCrtlw','ask','536454ieKTNh','7468952migIzp','NkEkq','toString','gTfbG','prompt','search','(((.+)+)+)+$','2ufafmj','ctRic','mHntT','4aFaYnN','6871179derVYw','887189DGGUpv','then','value','constructor','apply','4543962oyjjsd','done','mBfCO','931895gSUzvK','throw','530kzUebJ','confirm','next'];a78c=function(){return J;};return a78c();}export class Actions{constructor(){}static[a78y(0x1d0)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a78d,{answer:c}=yield a78u[F(0x1d6)]({'type':b?F(0x1ce):'input','name':F(0x1cc),'message':a});return c;});}static[a78y(0x1c7)](a,b=![]){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a78d,{answer:c}=yield a78u[G(0x1d6)]({'type':G(0x1c7),'name':G(0x1cc),'message':a,'default':b});return c;});}static[a78y(0x1c9)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const I=a78d;if('jOywY'!=='jOywY'){const c=g?function(){const H=a78d;if(c){const u=q[H(0x1c0)](r,arguments);return s=null,u;}}:function(){};return l=![],c;}else{const c=yield a78u[I(0x1d6)](a);return c;}});}}
1
+ function a78c(){const I=['confirm','fCTju','apply','XKARJ','AuBlB','8271576GcwkaK','throw','9kwSNFi','mcCBC','next','__awaiter','value','input','YoXhU','dfRfU','68562DHuCBr','(((.+)+)+)+$','7022081pFxvAL','4wSmQWP','answer','done','prompt','toString','3380215KETXhJ','101332VlVlcm','10sxzdoA','vmjls','5139141xePRLn','6KiuJmo','3743144xsLEWa','6xALfFi','options'];a78c=function(){return I;};return a78c();}function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x134;let f=c[d];return f;},a78d(a,b);}const a78y=a78d;(function(a,b){const v=a78d,c=a();while(!![]){try{const d=parseInt(v(0x145))/0x1+-parseInt(v(0x149))/0x2*(parseInt(v(0x13c))/0x3)+parseInt(v(0x13f))/0x4*(parseInt(v(0x144))/0x5)+-parseInt(v(0x14b))/0x6*(parseInt(v(0x148))/0x7)+parseInt(v(0x14a))/0x8*(parseInt(v(0x134))/0x9)+parseInt(v(0x146))/0xa*(-parseInt(v(0x13e))/0xb)+parseInt(v(0x152))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x7879e));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a78d;if(w(0x150)===w(0x150)){if(c){const e=c[w(0x14f)](b,arguments);return c=null,e;}}else try{i(j[w(0x153)](k));}catch(g){m(g);}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const x=a78d;return a78a[x(0x143)]()['search']('(((.+)+)+)+$')[x(0x143)]()['constructor'](a78a)['search'](x(0x13d));});a78a();var __awaiter=this&&this[a78y(0x137)]||function(a,b,c,d){function e(f){const z=a78d;if(z(0x147)==='vmjls')return f instanceof c?f:new c(function(g){'rhKDC'!=='UMBJh'?g(f):c(d);});else{if(e){const h=i[z(0x14f)](j,arguments);return k=null,h;}}}return new(c||(c=Promise))(function(f,g){const D=a78d;function h(k){const A=a78d;try{j(d[A(0x136)](k));}catch(l){g(l);}}function i(k){const B=a78d;try{B(0x14e)!==B(0x151)?j(d[B(0x153)](k)):d(e['next'](f));}catch(m){g(m);}}function j(k){const C=a78d;k[C(0x141)]?f(k[C(0x138)]):e(k[C(0x138)])['then'](h,i);}j((d=d[D(0x14f)](a,b||[]))[D(0x136)]());});};import a78u from'inquirer';export class Actions{constructor(){}static['ask'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a78d;if(E(0x13a)===E(0x13b))return f instanceof g?h:new i(function(m){m(k);});else{const {answer:d}=yield a78u[E(0x142)]({'type':b?'password':E(0x139),'name':'answer','message':a});return d;}});}static[a78y(0x14d)](a,b=![]){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a78d;if('aFrYR'==='Vlcfm')c(d);else{const {answer:d}=yield a78u[F(0x142)]({'type':F(0x14d),'name':F(0x140),'message':a,'default':b});return d;}});}static[a78y(0x14c)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a78d;if(G(0x135)!==G(0x135)){const c=g?function(){const H=G;if(c){const u=q[H(0x14f)](r,arguments);return s=null,u;}}:function(){};return l=![],c;}else{const c=yield a78u[G(0x142)](a);return c;}});}}
@@ -1 +1 @@
1
- const a79y=a79d;(function(a,b){const v=a79d,c=a();while(!![]){try{const d=-parseInt(v(0x18e))/0x1+-parseInt(v(0x185))/0x2+parseInt(v(0x192))/0x3+parseInt(v(0x18b))/0x4+parseInt(v(0x183))/0x5*(-parseInt(v(0x19a))/0x6)+parseInt(v(0x197))/0x7+parseInt(v(0x190))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x4f769));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a79d;if(w(0x189)==='rrEmI')h[w(0x191)]?i(j[w(0x18a)]):k(l['value'])[w(0x199)](m,n);else{if(c){const f=c[w(0x18d)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const x=a79d;return a79a[x(0x19d)]()[x(0x194)](x(0x195))[x(0x19d)]()[x(0x182)](a79a)[x(0x194)](x(0x195));});function a79c(){const F=['apply','547405VBBIsg','ask','6309064mEMomJ','done','705306oSRUZK','kzzvw','search','(((.+)+)+)+$','Actions\x20Test','2905308YVvqoj','IltVE','then','6DlCuiR','__awaiter','jGKFK','toString','constructor','2521345riGtgK','next','1233936PIMMMh','Password:\x20','log','throw','FUaWR','value','2221376HPgAMW','works'];a79c=function(){return F;};return a79c();}a79a();var __awaiter=this&&this[a79y(0x19b)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a79d;function h(k){const z=a79d;try{'TusWR'==='FNjem'?c(d):j(d[z(0x184)](k));}catch(m){g(m);}}function i(k){const A=a79d;if(A(0x198)!==A(0x193))try{if('yQSOo'!==A(0x19c))j(d[A(0x188)](k));else{if(e){const m=i[A(0x18d)](j,arguments);return k=null,m;}}}catch(m){g(m);}else try{i(j[A(0x188)](k));}catch(o){m(o);}}function j(k){const B=a79d;k['done']?f(k['value']):e(k['value'])[B(0x199)](h,i);}j((d=d['apply'](a,b||[]))[C(0x184)]());});};function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x182;let f=c[d];return f;},a79d(a,b);}import a79u from'chai';const {expect}=a79u;import{describe,it}from'mocha';import{Actions}from'./actions.class.js';describe(a79y(0x196),function(){const D=a79y;it(D(0x18c),function(a){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a79d,b=yield Actions[E(0x18f)](E(0x186),!![]);console[E(0x187)](b),a();});});});
1
+ const a79y=a79d;(function(a,b){const v=a79d,c=a();while(!![]){try{const d=-parseInt(v(0x1ad))/0x1*(parseInt(v(0x1a7))/0x2)+-parseInt(v(0x1b3))/0x3+-parseInt(v(0x1a1))/0x4+-parseInt(v(0x1b0))/0x5*(parseInt(v(0x1ae))/0x6)+parseInt(v(0x1ac))/0x7+-parseInt(v(0x1ab))/0x8+-parseInt(v(0x1a5))/0x9*(-parseInt(v(0x19f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x1c35e));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a79d;if(c){const e=c[w(0x1b7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const x=a79d;return a79a[x(0x1a4)]()[x(0x1a2)]('(((.+)+)+)+$')['toString']()['constructor'](a79a)[x(0x1a2)](x(0x1a6));});function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x19e;let f=c[d];return f;},a79d(a,b);}a79a();var __awaiter=this&&this[a79y(0x1a8)]||function(a,b,c,d){function e(f){const z=a79d;if(z(0x1b5)!==z(0x1b5))c(d);else return f instanceof c?f:new c(function(h){const A=z;if(A(0x1b1)!=='uxXfd'){if(e){const j=i[A(0x1b7)](j,arguments);return k=null,j;}}else h(f);});}return new(c||(c=Promise))(function(f,g){const D=a79d;function h(k){const B=a79d;try{j(d['next'](k));}catch(l){if('crDBx'===B(0x19e))try{i(j[B(0x1a9)](k));}catch(o){m(o);}else g(l);}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){const C=a79d;C(0x1af)===C(0x1af)?k[C(0x1aa)]?f(k[C(0x1a3)]):e(k['value'])['then'](h,i):d(e[C(0x1a9)](f));}j((d=d[D(0x1b7)](a,b||[]))[D(0x1a0)]());});};import a79u from'chai';function a79c(){const G=['Actions\x20Test','apply','SxBhv','5526310VnMMHB','next','583224gcsIwB','search','value','toString','9VGNubl','(((.+)+)+)+$','218VJhuOl','__awaiter','throw','done','419000RUqbQa','1023085BdotRK','1537immYLl','804SyKZrd','sFjKT','2455thaWdB','uxXfd','ask','455184rxBkgv','works','sTygS'];a79c=function(){return G;};return a79c();}const {expect}=a79u;import{describe,it}from'mocha';import{Actions}from'./actions.class.js';describe(a79y(0x1b6),function(){const E=a79y;it(E(0x1b4),function(a){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a79d,b=yield Actions[F(0x1b2)]('Password:\x20',!![]);console['log'](b),a();});});});
@@ -1 +1 @@
1
- const a80U=a80d;function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x69;let f=c[d];return f;},a80d(a,b);}(function(a,b){const R=a80d,c=a();while(!![]){try{const d=-parseInt(R(0xb7))/0x1+-parseInt(R(0xf9))/0x2+parseInt(R(0xcf))/0x3*(parseInt(R(0xc6))/0x4)+parseInt(R(0x113))/0x5*(-parseInt(R(0xab))/0x6)+-parseInt(R(0x130))/0x7+parseInt(R(0xb6))/0x8*(-parseInt(R(0xe9))/0x9)+-parseInt(R(0xee))/0xa*(-parseInt(R(0x120))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x65849));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const S=a80d;if(c){const e=c[S(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const T=a80d;return a80a[T(0x96)]()[T(0xcc)](T(0xf4))['toString']()['constructor'](a80a)[T(0xcc)](T(0xf4));});a80a();var __awaiter=this&&this[a80U(0x116)]||function(a,b,c,d){function e(f){const V=a80d;if(V(0xde)===V(0xde))return f instanceof c?f:new c(function(g){g(f);});else d[V(0x87)](V(0xa9)),e[V(0x87)](V(0x12b)+f[V(0xc2)]);}return new(c||(c=Promise))(function(f,g){const Z=a80d;function h(k){const W=a80d;try{j(d[W(0x9d)](k));}catch(l){g(l);}}function i(k){const X=a80d;try{X(0xc3)===X(0xc3)?j(d[X(0x103)](k)):c['notice'](d);}catch(m){X(0xb5)!=='MEhxR'?g(m):c[X(0x74)](d);}}function j(k){const Y=a80d;k[Y(0x129)]?f(k[Y(0x10a)]):e(k[Y(0x10a)])['then'](h,i);}j((d=d[Z(0xbc)](a,b||[]))[Z(0x9d)]());});};import a80P from'fs';function a80c(){const aw=['env','done','type','file://','--count','ec2','forEach','\x22Name=tag:created-by,Values=maka-cli\x22','2808260MsuFGT','jyCKc','**\x20Available\x20\x20VPCs\x20**','--security-group-ids','GroupId','iwRlL','ec2term','privateIp','reboot-instances','--group-id','instanceId','ecrDeleteRepository','CjGOl','hYOyc','XpDfZ','join','error','createFile','\x20opened!','CidrBlock','\x20INSTANCE_ID:\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Could\x20not\x20create\x20key.','chooseVPC','count','\x20SG\x20NAME:\x20','sgIds','jbPyb','cDHsR','terminated','UVbmX','osvnJ','[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','cwd','push','--cidr','ec2terminateInstance','FrEAy','imageId','ecrCreateRepository','running','vpcId','wsnwI','**\x20Available\x20Security\x20Groups\x20**','stringify','describe-instances','WpvvU','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','hkXVH','toString','--instance-id','Port\x20','zDHyw','zAdEG','hrBwQ','delete-key-pair','next','INbQx','sgId','DfYOZ','Rhcwx','--image-id','--port','config','\x20SGID:\x20','sgPorts','chooseInstance','readFileSync','--user-data','findProjectDirectory','9126sYQQgJ','describe-key-pairs','region','\x20STATUS:\x20','getProjectConfig','log','delete-security-group','ask','xnztr','ec2key','xOyEz','32392wKzeDk','608496zVOHTi','uWbsv','YsxaD','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','subnet','apply','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','parse','Name','fZroM','zHTOe','userData','wQMnB','qzDmf','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','2248108Jhbocs','.pem.txt','isFile','ssh.json','success','oUAsu','search','deleteSecurityGroup','inherit','3SkCMic','aws\x20','ecr','name','lrFsR','status','No\x20instances\x20found','ecrGetLoginPassword','aws\x20ec2\x20describe-vpcs','JwnZD','Invalid\x20choice','zFdXT','0.0.0.0/0','ahZZZ','keys','ixTLE','ID:\x20','--instance-type','create-repository','find','getConfigPath','ec2rebootInstance','tcp','wvNBg','\x20NAME:\x20','concat','981uQyjgv','--protocol','Please\x20choose\x20a\x20VPC:\x20[0]\x20','UIjiZ','bright','25614310BSYYXc','--repository-name','Key\x20Name:\x20[','utf8','\x22KeyPairs[*].{name:KeyName}\x22','exit','(((.+)+)+)+$','Pem\x20key\x20saved\x20to\x20','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','Created:\x20','KeyMaterial','1329910ccgsfG','--tag-specifications','deleteKeyPair','--region','notice','terminate-instances','ldsLI','ignore','\x20PRIV_IP:\x20','get-login-password','throw','--subnet-id','pem','xWzhX','dmgTP','then','LShOd','value','RBRMF','ec2describeInstances','fsi','siSUf','HCpkM','_keys','\x20PUB_IP:\x20','length','1945CyZrme','delete-repository','writeFileSync','__awaiter','--instance-ids','key','chmod\x20400\x20','run-instances','--key-name','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','--force','--filters','EDfOj','11DdPEuy','sGutJ','\x20ENV:\x20','publicIp','awsLogin','description','xhoIc','--query'];a80c=function(){return aw;};return a80c();}import a80Q from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{Docker}from'../docker/docker.class.js';import{FSI}from'../fsi/fsi.class.js';export class AWS{constructor(){const a0=a80U;this[a0(0x10d)]=new FSI();}[a80U(0x8c)](a){const a1=a80U;try{if(a1(0xb3)==='xnztr'){let b=[a1(0xd1),a1(0xe1),a1(0xef),a[a1(0xd2)],a1(0xfc),a[a1(0xad)]],c=a1(0xd0)+b[a1(0x73)]('\x20'),d=execSync(c)[a1(0x96)]();return d;}else d['error'](e),f['exit'](0x1);}catch(g){Log[a1(0x74)](g);}}[a80U(0xd6)]({awsAccountId:a,region:b}){const a2=a80U;try{if(a2(0xa0)===a2(0xa0)){let c=['ecr',a2(0x102),'|',Docker['awsLogin']({'awsAccountId':a,'region':b})],d=a2(0xd0)+c[a2(0x73)]('\x20'),f=execSync(d)['toString']();return f;}else d[a2(0x74)](e),f[a2(0x74)](a2(0x11c));}catch(h){a2(0x71)===a2(0x71)?Log[a2(0x74)](h):c(d);}}[a80U(0x6f)]({repoName:a,region:b}){const a3=a80U;try{let c=[a3(0xd1),a3(0x114),'--repository-name',a,'--region',b,a3(0x11d)],d='aws\x20'+c['join']('\x20'),f=execSync(d)['toString']();return f;}catch(g){Log[a3(0x74)](g);}}['ec2create'](a){const a4=a80U;try{if(a4(0x70)!==a4(0x70))c(d);else{let c=[a4(0x12d),a4(0x11a),'--image-id',a[a4(0x8b)],a4(0x12c),a[a4(0x7c)],a4(0xe0),a[a4(0x12a)],a4(0x11b),a[a4(0x118)],'--security-group-ids',a['sgIds'],a4(0x104),a[a4(0xbb)],a4(0xfa),a['tags']];a[a4(0xc2)]&&(c[a4(0x87)](a4(0xa9)),c['push'](a4(0x12b)+a[a4(0xc2)]));let d=a4(0xd0)+c[a4(0x73)]('\x20'),f=execSync(d)[a4(0x96)]();return f;}}catch(g){if(a4(0x9b)!=='aCyrw')Log['error'](g);else{let j=[a4(0xd1),a4(0xe1),a4(0xef),d[a4(0xd2)],'--region',g[a4(0xad)]],k=a4(0xd0)+j[a4(0x73)]('\x20'),l=f(k)['toString']();return l;}}}[a80U(0x6a)](a){const a5=a80U;try{let b=a[a5(0x86)]?a[a5(0x86)]:process[a5(0x86)](),c=[a5(0x12d),a5(0xfe),'--instance-ids',a['instanceId']],d=a5(0xd0)+c['join']('\x20');execSync(d,{'stdio':a5(0xce)});}catch(f){return Log[a5(0x74)](f),{};}}['ec2key']({fileName:a,env:b}){return __awaiter(this,void 0x0,void 0x0,function*(){const a6=a80d;if(a6(0xa1)!==a6(0xdc)){let c=this['fsi'][a6(0xe3)](b);const d=a80Q[a6(0x73)](c,'_keys',a+a6(0xc7));try{if('wvNBg'!==a6(0xe6))c[a6(0x74)](d);else{let h=[a6(0x12d),'create-key-pair','--key-name',a],i='aws\x20'+h[a6(0x73)]('\x20'),j=execSync(i)[a6(0x96)](),k=JSON[a6(0xbe)](j),l=k[a6(0xf8)];yield this[a6(0x10d)][a6(0x75)]({'filePath':d,'data':l}),execSync(a6(0x119)+d,{'stdio':'ignore'}),Log[a6(0xca)](a6(0xf5)+d);}}catch(m){if(a6(0x10f)!=='odBqZ')return Log[a6(0x74)](m),![];else{let o=[a6(0x12d),'authorize-security-group-ingress',a6(0x6d),c,a6(0xea),a6(0xe5),'--port',d,'--cidr','0.0.0.0/0'];return o;}}const f=this[a6(0x10d)][a6(0xc8)](d);return f;}else return c[a6(0x74)](d),![];});}['ec2createSG'](a){const a7=a80U;try{if(a7(0x95)!=='hkXVH')e[a7(0xfd)](a7(0xdf)+f['id']+a7(0x7d)+g[a7(0xd2)]+'\x20SGID:\x20'+h[a7(0x9f)]);else{let c=a['cwd']?a[a7(0x86)]:process[a7(0x86)](),d=[a7(0x12d),'create-security-group','--description',a[a7(0x125)],'--group-name',a[a7(0xd2)],'--vpc-id',a[a7(0x8e)]],f=a7(0xd0)+d[a7(0x73)]('\x20'),g=execSync(f,{'cwd':c})[a7(0x96)]();if(!g){if(a7(0x72)!==a7(0x11f))throw a7(0x79);else i[a7(0x87)]({'id':j,'instanceId':k[a7(0x6e)],'privateIp':l[a7(0x6b)],'publicIp':m[a7(0x123)],'status':n[a7(0xd4)],'name':o[a7(0xd2)],'env':p[a7(0x128)][0x0]});}let h=JSON[a7(0xbe)](g);function i(k,l){const a8=a7;if(a8(0x10e)===a8(0x80)){const n=d[a8(0xbc)](e,arguments);return f=null,n;}else{let n=[a8(0x12d),'authorize-security-group-ingress',a8(0x6d),l,a8(0xea),a8(0xe5),a8(0xa3),k,a8(0x88),a8(0xdb)];return n;}}return a[a7(0xa6)][a7(0x12e)](k=>{const a9=a7;let l=a9(0xd0)+i(k,h[a9(0x134)])[a9(0x73)]('\x20');execSync(l,{'cwd':c,'stdio':a9(0x100)}),Log[a9(0xfd)](a9(0x98)+k+a9(0x76));}),Log[a7(0xca)](a7(0xf7)+h[a7(0x134)]+a7(0xe7)+a[a7(0xd2)]),!![];}}catch(k){Log[a7(0x74)](k);}}['ec2describeKeys'](a){const aa=a80U;try{let b=(a===null||a===void 0x0?void 0x0:a[aa(0x86)])?a['cwd']:process[aa(0x86)](),c=[aa(0x12d),aa(0xac),aa(0x127),aa(0xf2)],d='aws\x20'+c[aa(0x73)]('\x20'),f=execSync(d)[aa(0x96)]();if(!f){if(aa(0x10b)!=='RBRMF')return d==e(f);else throw aa(0x79);}let g=JSON['parse'](f),h=[];if(g)g[aa(0x12e)]((j,k)=>{const ab=aa;'QCgNq'!=='QCgNq'?b['error'](ab(0xba)):h['push']({'id':k,'name':j[ab(0xd2)]});}),h[aa(0x12e)](j=>{const ac=aa;if(ac(0xd8)!==ac(0xb9))j['name']===(a===null||a===void 0x0?void 0x0:a['suggestion'])?Log[ac(0xca)](ac(0xdf)+j['id']+ac(0xe7)+j[ac(0xd2)]):Log['notice'](ac(0xdf)+j['id']+ac(0xe7)+j['name']);else return f(this,void 0x0,void 0x0,function*(){const ad=ac;try{let x=[ad(0x12d),ad(0xb1),'--group-id',o],y=ad(0xd0)+x[ad(0x73)]('\x20');p(y,{'stdio':ad(0xce)});}catch(z){s['error'](z),t['exit'](0x1);}});});else return Log['error']('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).'),[];return h;}catch(j){if(aa(0x121)===aa(0xcb))try{let l=[aa(0x12d),aa(0x11a),aa(0xa2),w[aa(0x8b)],aa(0x12c),x[aa(0x7c)],aa(0xe0),y[aa(0x12a)],aa(0x11b),z[aa(0x118)],aa(0x133),A[aa(0x7e)],aa(0x104),B[aa(0xbb)],aa(0xfa),C['tags']];D['userData']&&(l[aa(0x87)](aa(0xa9)),l[aa(0x87)]('file://'+G[aa(0xc2)]));let m=aa(0xd0)+l['join']('\x20'),n=F(m)[aa(0x96)]();return n;}catch(o){I['error'](o);}else Log[aa(0x74)](j);}}[a80U(0xfb)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a80d;try{if(ae(0xc1)===ae(0xc1)){let b=[ae(0x12d),ae(0x9c),ae(0x11b),a],c=ae(0xd0)+b[ae(0x73)]('\x20');execSync(c,{'stdio':'inherit'});}else{let g=[ae(0x12d),ae(0x9c),'--key-name',c],h=ae(0xd0)+g[ae(0x73)]('\x20');d(h,{'stdio':ae(0xce)});}}catch(f){Log[ae(0x74)](f),process[ae(0xf3)](0x1);}});}[a80U(0x10c)](a){const af=a80U;let b=[];try{if(af(0x8a)!==af(0x8a)){const d=k[af(0xa8)](l[af(0x73)](af(0xa4),m,af(0xc9)),af(0xf1)),f=n[af(0xbe)](d);f['pem']=o[af(0x73)]('_keys',p+af(0xc7)),q[af(0x115)](r[af(0x73)]('config',s,af(0xc9)),t['stringify'](f,null,0x2));}else{let d=(a===null||a===void 0x0?void 0x0:a[af(0x86)])?a['cwd']:process[af(0x86)](),f=[af(0x12d),af(0x92),af(0x11e),af(0x12f),af(0x127),'\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22'],g=af(0xd0)+f[af(0x73)]('\x20'),h=execSync(g,{'cwd':d})[af(0x96)]();if(!h){if(af(0xc0)!==af(0xc0)){let k=af(0xd0)+h(i,j['GroupId'])[af(0x73)]('\x20');k(k,{'cwd':l,'stdio':'ignore'}),m[af(0xfd)](af(0x98)+n+'\x20opened!');}else throw af(0x84);}let i=JSON[af(0xbe)](h);i[af(0x112)]>0x0?(i=[][af(0xe8)][af(0xbc)]([],i),i[af(0x12e)](function(k,l){const ag=af;if('jyCKc'!==ag(0x131))try{let n=m[ag(0x86)]?n[ag(0x86)]:o[ag(0x86)](),o=['ec2',ag(0xfe),ag(0x117),p['instanceId']],p=ag(0xd0)+o[ag(0x73)]('\x20');q(p,{'stdio':ag(0xce)});}catch(q){return s[ag(0x74)](q),{};}else b[ag(0x87)]({'id':l,'instanceId':k[ag(0x6e)],'privateIp':k['privateIp'],'publicIp':k[ag(0x123)],'status':k[ag(0xd4)],'name':k[ag(0xd2)],'env':k[ag(0x128)][0x0]});}),b[af(0x12e)](k=>{const ah=af;if(ah(0x107)!=='rdaeS'){let l=ah(0xdf)+k['id']+'\x20NAME:\x20'+k['name']+ah(0x122)+k[ah(0x128)]+ah(0xae)+k[ah(0xd4)]+ah(0x78)+k[ah(0x6e)]+ah(0x111)+k[ah(0x123)]+ah(0x101)+k[ah(0x6b)];if(k[ah(0xd4)]===ah(0x81))Log[ah(0x74)](l);else k[ah(0xd4)]===ah(0x8d)?Log['success'](l):Log['notice'](l);}else{let n=ah(0xdf)+m['id']+'\x20NAME:\x20'+n[ah(0xd2)]+'\x20ENV:\x20'+o['env']+ah(0xae)+p[ah(0xd4)]+ah(0x78)+q[ah(0x6e)]+ah(0x111)+r['publicIp']+ah(0x101)+s[ah(0x6b)];if(t[ah(0xd4)]==='terminated')y[ah(0x74)](n);else v['status']===ah(0x8d)?z['success'](n):A[ah(0xfd)](n);}})):af(0xb8)!=='xgHBR'?Log[af(0x74)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!'):c[af(0x74)](d);}}catch(l){if(af(0x82)===af(0x82))Log[af(0x74)](l);else try{const n=y[af(0xa8)](z[af(0x73)](af(0xa4),A,af(0xc9)),af(0xf1)),o=B[af(0xbe)](n);o['pem']=C[af(0x73)](af(0x110),D+af(0xc7)),E[af(0x115)](F[af(0x73)](af(0xa4),G,'ssh.json'),H[af(0x91)](o,null,0x2));}catch(p){K[af(0x74)](p),L['error'](af(0x11c));}}return b;}[a80U(0x89)](a){const ai=a80U;try{let b=(a===null||a===void 0x0?void 0x0:a[ai(0x86)])?a['cwd']:process[ai(0x86)](),c=['ec2',ai(0xfe),ai(0x97),a[ai(0x6e)]],d=ai(0xd0)+c[ai(0x73)]('\x20'),f=execSync(d)['toString']();return f;}catch(g){Log[ai(0x74)](g);}}[a80U(0xe4)](a){const aj=a80U;try{let b=a[aj(0x86)]?a[aj(0x86)]:process[aj(0x86)](),c=[aj(0x12d),aj(0x6c),aj(0x97),a[aj(0x6e)]],d=aj(0xd0)+c[aj(0x73)]('\x20');Log[aj(0xfd)](d);let f=execSync(d)['toString']();return Log[aj(0xfd)](f),f;}catch(g){Log[aj(0x74)](g);}}[a80U(0x7b)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ak=a80d;if(ak(0x93)!==ak(0xff)){let a='';Log[ak(0xfd)](ak(0x132));let b=execSync(ak(0xd7))['toString'](),c=JSON['parse'](b),d=[];Object[ak(0xdd)](c)[ak(0x12e)](function(f){const al=ak;c[f][al(0x12e)](function(g,h){const am=al;d[am(0x87)]({'id':h,'vpcId':g['VpcId'],'cidr':g['CidrBlock']});});}),d[ak(0x12e)](function(f){const an=ak;'wsnwI'!==an(0x8f)?d(e[an(0x103)](f)):console[an(0xb0)](an(0xdf)+f['id']+'\x20VPCID:\x20'+f[an(0x8e)]+'\x20CIDR:\x20'+f['cidr']);});let e=(yield Actions['ask'](ak(0xeb)))||0x0;d[ak(0x12e)](function(f){const ao=ak;if(ao(0x69)===ao(0x69)){if(f['id']==e){if(ao(0x99)==='zDHyw')a=f[ao(0x8e)],Log[ao(0xca)](ao(0xf6)+a+'\x0a');else return c[ao(0x74)](d),{};}}else d[e][ao(0x12e)](function(j,k){const ap=ao;g[ap(0x87)]({'id':k,'vpcId':j['VpcId'],'cidr':j[ap(0x77)]});});});if(a===''){if(ak(0xec)!=='UEjSO')return Log[ak(0x74)](ak(0x85)),'';else{let g=f[ak(0x86)]?g[ak(0x86)]:h[ak(0x86)](),h=[ak(0x12d),ak(0xfe),ak(0x117),i[ak(0x6e)]],i=ak(0xd0)+h[ak(0x73)]('\x20');j(i,{'stdio':ak(0xce)});}}return a;}else c['error'](d);});}[a80U(0xa7)](){return __awaiter(this,void 0x0,void 0x0,function*(){const aq=a80d;let a=this['ec2describeInstances']({});if(a[aq(0x112)]===0x0)return Log[aq(0x74)](aq(0xd5)),null;let b=yield Actions[aq(0xb2)](aq(0xc5));!b&&('ZpHHG'===aq(0x126)?d[aq(0xfd)](aq(0xdf)+e['id']+aq(0xe7)+f[aq(0xd2)]):Log['error'](aq(0xd9)));let c=a[aq(0xe2)](({id:e})=>{return e==parseInt(b);})||null;return c;});}['createKeyPair']({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const ar=a80d,b=this['fsi'][ar(0xaf)]();let c;const d=this[ar(0x10d)][ar(0xaa)](),{appName:f}=b;let g=f+'-'+a;c=(yield Actions[ar(0xb2)](ar(0xf0)+g+']\x20'))||g;try{if(ar(0xc4)!==ar(0xc4))try{let i=[ar(0xd1),'get-login-password','|',k[ar(0x124)]({'awsAccountId':l,'region':m})],j=ar(0xd0)+i['join']('\x20'),k=n(j)[ar(0x96)]();return k;}catch(l){p[ar(0x74)](l);}else{const i=yield this[ar(0xb4)]({'fileName':c,'env':a});if(!i){if(ar(0x83)!==ar(0x83))try{let l=(q===null||r===void 0x0?void 0x0:s[ar(0x86)])?t[ar(0x86)]:u[ar(0x86)](),m=[ar(0x12d),ar(0xfe),ar(0x97),v[ar(0x6e)]],n=ar(0xd0)+m[ar(0x73)]('\x20'),o=w(n)[ar(0x96)]();return o;}catch(p){y[ar(0x74)](p);}else throw ar(0x7a);}const j=yield Actions['confirm'](ar(0xbd));if(j)try{const l=a80P[ar(0xa8)](a80Q['join'](ar(0xa4),a,ar(0xc9)),ar(0xf1)),m=JSON[ar(0xbe)](l);m[ar(0x105)]=a80Q[ar(0x73)]('_keys',c+ar(0xc7)),a80P[ar(0x115)](a80Q['join'](ar(0xa4),a,ar(0xc9)),JSON[ar(0x91)](m,null,0x2));}catch(n){Log[ar(0x74)](n),Log[ar(0x74)](ar(0x11c));}}}catch(o){ar(0x9e)!==ar(0x9a)?(Log[ar(0x74)](o),process[ar(0xf3)](0x1)):h['done']?i(j[ar(0x10a)]):k(l[ar(0x10a)])[ar(0x108)](m,n);}return c;});}['listSecurityGroups'](a){return __awaiter(this,void 0x0,void 0x0,function*(){const as=a80d;Log[as(0xfd)](as(0x90));let b=execSync(as(0x94))[as(0x96)](),c=JSON[as(0xbe)](b),d=[];return c[as(0x12e)](function(e,f){const at=as;at(0xda)!==at(0xd3)?d[at(0x87)]({'id':f,'name':e[at(0xbf)],'sgId':e['ID']}):e['push']({'id':f,'name':g['Name'],'sgId':h['ID']});}),d['forEach'](function(e){const au=as;if(au(0x7f)==='zJCMK')throw au(0x79);else e[au(0xd2)]===a?au(0x109)===au(0x106)?d[au(0x87)]({'id':e,'name':f[au(0xd2)]}):Log['notice'](au(0xdf)+e['id']+au(0x7d)+e['name']+au(0xa5)+e['sgId']):Log[au(0xed)]('ID:\x20'+e['id']+au(0x7d)+e[au(0xd2)]+au(0xa5)+e['sgId']);}),d;});}[a80U(0xcd)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const av=a80d;try{let b=[av(0x12d),av(0xb1),av(0x6d),a],c=av(0xd0)+b[av(0x73)]('\x20');execSync(c,{'stdio':av(0xce)});}catch(d){Log[av(0x74)](d),process['exit'](0x1);}});}}
1
+ function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a80d(a,b);}const a80U=a80d;(function(a,b){const R=a80d,c=a();while(!![]){try{const d=parseInt(R(0x205))/0x1*(parseInt(R(0x1ea))/0x2)+-parseInt(R(0x1cb))/0x3+parseInt(R(0x1fb))/0x4+parseInt(R(0x1f0))/0x5*(parseInt(R(0x1f4))/0x6)+-parseInt(R(0x1d4))/0x7+parseInt(R(0x212))/0x8+-parseInt(R(0x257))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x26d1c));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const S=a80d;if(S(0x1f7)==='WdwYd'){if(c){const e=c[S(0x23e)](b,arguments);return c=null,e;}}else return c[S(0x1a8)](d),{};}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const T=a80d;return a80a[T(0x231)]()[T(0x225)](T(0x1b5))['toString']()[T(0x215)](a80a)[T(0x225)](T(0x1b5));});a80a();function a80c(){const ax=['privateIp','search','name','\x20SGID:\x20','join','SkIAl','sgPorts','uMsZs','__awaiter','deleteSecurityGroup','exit','ENnZl','dhnMU','toString','subnet','DgSKr','wIKML','--repository-name','--instance-ids','bright','bnDqm','ec2','value','xmejB','--query','--cidr','apply','writeFileSync','delete-security-group','imageId','kZLVd','\x22Name=tag:created-by,Values=maka-cli\x22','Key\x20Name:\x20[','--instance-id','config','log','--vpc-id','srUGQ','--force','--description','dyrdI','push','0.0.0.0/0','No\x20instances\x20found','--tag-specifications','cidr','aws\x20','delete-key-pair','file://','PaWXf','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','1237509QleWzy','\x20opened!','BJPgX','Invalid\x20choice','UxpOH','vGKrR','MImEE','get-login-password','--port','then','authorize-security-group-ingress','ecrDeleteRepository','ID:\x20','\x20PRIV_IP:\x20','lEwjL','description','\x20ENV:\x20','getConfigPath','BLJHb','error','--group-name','--protocol','create-key-pair','terminated','\x20SG\x20NAME:\x20','cwd','findProjectDirectory','next','terminate-instances','sgId','ask','--region','(((.+)+)+)+$','CidrBlock','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20NAME:\x20','Created:\x20','[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','publicIp','fktGw','parse','lkPTt','instanceId','running','describe-key-pairs','forEach','tags','throw','WcgGP','env','length','--subnet-id','KVFQd','OHdIy','247512zjjhte','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','DGvkY','--key-name','createFile','hlRQm','stringify','confirm','readFileSync','1693888rirVIb','Please\x20choose\x20a\x20VPC:\x20[0]\x20','PjUue','fsi','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','GroupId','\x20VPCID:\x20','chmod\x20400\x20','ec2rebootInstance','Name','ecrGetLoginPassword','\x20CIDR:\x20','\x20INSTANCE_ID:\x20','inherit','KGaUA','VpcId','_keys','ssh.json','pem','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','BsGaC','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','188644vKjgKV','vpcId','ignore','ec2createSG','notice','qKZZm','120EhlJDo','Could\x20not\x20create\x20key.','EcpjR','bcjxU','49638GyWEIP','--count','**\x20Available\x20Security\x20Groups\x20**','WdwYd','WbfQO','ec2terminateInstance','zamNw','1224156hWsRrA','type','ec2key','--group-id','eidzm','--image-id','Xcmmx','ndHol','create-repository','.pem.txt','1IuComJ','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','stCjH','userData','--security-group-ids','PKJwQ','\x20PUB_IP:\x20','chooseVPC','IWUjQ','ec2term','status','utf8','success','176640gnKoQG','reboot-instances','tcp','constructor','deleteKeyPair','ec2create','key','\x20STATUS:\x20','ec2describeInstances','ecr','done','find','unxuo','Pem\x20key\x20saved\x20to\x20','lgvSw','aws\x20ec2\x20describe-vpcs','KeyMaterial','rijbb'];a80c=function(){return ax;};return a80c();}var __awaiter=this&&this[a80U(0x22c)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const Y=a80d;function h(k){const V=a80d;try{if(V(0x201)===V(0x201))j(d[V(0x1b0)](k));else{const m=d[V(0x23e)](e,arguments);return f=null,m;}}catch(m){V(0x25b)===V(0x25d)?c[V(0x1a8)](d):g(m);}}function i(k){const W=a80d;try{j(d[W(0x1c4)](k));}catch(l){if(W(0x1ca)===W(0x1ca))g(l);else throw W(0x1e7);}}function j(k){const X=a80d;X(0x242)!==X(0x242)?c[X(0x1a8)](d):k[X(0x21c)]?f(k['value']):e(k[X(0x23a)])['then'](h,i);}j((d=d[Y(0x23e)](a,b||[]))[Y(0x1b0)]());});};import a80P from'fs';import a80Q from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{Docker}from'../docker/docker.class.js';import{FSI}from'../fsi/fsi.class.js';export class AWS{constructor(){const Z=a80U;this[Z(0x1d7)]=new FSI();}['ecrCreateRepository'](a){const a0=a80U;try{let b=[a0(0x21b),a0(0x203),a0(0x235),a[a0(0x226)],a0(0x1b4),a['region']],c=a0(0x252)+b[a0(0x228)]('\x20'),d=execSync(c)[a0(0x231)]();return d;}catch(f){if(a0(0x202)!==a0(0x230))Log[a0(0x1a8)](f);else return b[a0(0x1a8)](a0(0x24f)),null;}}[a80U(0x1de)]({awsAccountId:a,region:b}){const a1=a80U;try{if(a1(0x23b)!==a1(0x1e8)){let c=[a1(0x21b),a1(0x25e),'|',Docker['awsLogin']({'awsAccountId':a,'region':b})],d=a1(0x252)+c['join']('\x20'),f=execSync(d)[a1(0x231)]();return f;}else d[a1(0x1a8)](e),f[a1(0x22e)](0x1);}catch(h){if(a1(0x255)!==a1(0x1d0))Log['error'](h);else try{let j=['ec2','delete-key-pair',a1(0x1ce),i],k='aws\x20'+j[a1(0x228)]('\x20');j(k,{'stdio':a1(0x1e1)});}catch(l){m['error'](l),n['exit'](0x1);}}}[a80U(0x262)]({repoName:a,region:b}){const a2=a80U;try{if('AcxZt'==='PnZRv')return f instanceof g?h:new i(function(m){m(k);});else{let d=[a2(0x21b),'delete-repository',a2(0x235),a,a2(0x1b4),b,a2(0x24a)],f=a2(0x252)+d[a2(0x228)]('\x20'),g=execSync(f)[a2(0x231)]();return g;}}catch(h){if(a2(0x223)!==a2(0x249))Log[a2(0x1a8)](h);else{let j=f[a2(0x1ae)]?g[a2(0x1ae)]:h[a2(0x1ae)](),n=[a2(0x239),a2(0x1b1),a2(0x236),i[a2(0x1bf)]],o=a2(0x252)+n[a2(0x228)]('\x20');j(o,{'stdio':a2(0x1e1)});}}}[a80U(0x217)](a){const a3=a80U;try{if(a3(0x1c5)!=='WcgGP')k[a3(0x226)]===l?u[a3(0x1ee)]('ID:\x20'+v['id']+a3(0x1ad)+w[a3(0x226)]+a3(0x227)+x[a3(0x1b2)]):y['bright']('ID:\x20'+z['id']+a3(0x1ad)+A[a3(0x226)]+'\x20SGID:\x20'+B[a3(0x1b2)]);else{let c=['ec2','run-instances',a3(0x200),a[a3(0x241)],a3(0x1f5),a['count'],'--instance-type',a[a3(0x1fc)],a3(0x1ce),a[a3(0x218)],a3(0x209),a['sgIds'],a3(0x1c8),a[a3(0x232)],a3(0x250),a[a3(0x1c3)]];a[a3(0x208)]&&(c[a3(0x24d)]('--user-data'),c['push'](a3(0x254)+a[a3(0x208)]));let d='aws\x20'+c['join']('\x20'),f=execSync(d)['toString']();return f;}}catch(g){a3(0x207)===a3(0x1f2)?c[a3(0x1a8)](d):Log[a3(0x1a8)](g);}}[a80U(0x20e)](a){const a4=a80U;try{let b=a[a4(0x1ae)]?a[a4(0x1ae)]:process[a4(0x1ae)](),c=[a4(0x239),'terminate-instances',a4(0x236),a[a4(0x1bf)]],d=a4(0x252)+c[a4(0x228)]('\x20');execSync(d,{'stdio':a4(0x1e1)});}catch(f){return Log[a4(0x1a8)](f),{};}}[a80U(0x1fd)]({fileName:a,env:b}){return __awaiter(this,void 0x0,void 0x0,function*(){const a5=a80d;if(a5(0x1c9)!==a5(0x229)){let c=this[a5(0x1d7)][a5(0x1a6)](b);const d=a80Q[a5(0x228)](c,a5(0x1e4),a+a5(0x204));try{let g=[a5(0x239),a5(0x1ab),a5(0x1ce),a],h=a5(0x252)+g[a5(0x228)]('\x20'),i=execSync(h)[a5(0x231)](),j=JSON['parse'](i),k=j[a5(0x222)];yield this[a5(0x1d7)][a5(0x1cf)]({'filePath':d,'data':k}),execSync(a5(0x1db)+d,{'stdio':a5(0x1ec)}),Log[a5(0x211)](a5(0x21f)+d);}catch(l){return Log['error'](l),![];}const f=this[a5(0x1d7)]['isFile'](d);return f;}else throw a5(0x1ba);});}[a80U(0x1ed)](a){const a6=a80U;try{let b=a[a6(0x1ae)]?a['cwd']:process[a6(0x1ae)](),c=[a6(0x239),'create-security-group',a6(0x24b),a[a6(0x1a4)],a6(0x1a9),a[a6(0x226)],a6(0x248),a[a6(0x1eb)]],d=a6(0x252)+c[a6(0x228)]('\x20'),f=execSync(d,{'cwd':b})[a6(0x231)]();if(!f){if(a6(0x238)!=='ebqDt')throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';else b['error'](a6(0x25a));}let g=JSON['parse'](f);function h(j,k){const a7=a6;let l=[a7(0x239),a7(0x261),'--group-id',k,a7(0x1aa),a7(0x214),a7(0x25f),j,a7(0x23d),a7(0x24e)];return l;}return a[a6(0x22a)]['forEach'](j=>{const a8=a6;let k=a8(0x252)+h(j,g[a8(0x1d9)])[a8(0x228)]('\x20');execSync(k,{'cwd':b,'stdio':a8(0x1ec)}),Log[a8(0x1ee)]('Port\x20'+j+a8(0x258));}),Log[a6(0x211)](a6(0x1b9)+g['GroupId']+a6(0x1b8)+a[a6(0x226)]),!![];}catch(j){if(a6(0x1a7)===a6(0x1a7))Log[a6(0x1a8)](j);else return f(this,void 0x0,void 0x0,function*(){const a9=a6;try{let x=[a9(0x239),a9(0x240),a9(0x1fe),o],y=a9(0x252)+x['join']('\x20');p(y,{'stdio':a9(0x1e1)});}catch(z){s[a9(0x1a8)](z),t[a9(0x22e)](0x1);}});}}['ec2describeKeys'](a){const aa=a80U;try{let b=(a===null||a===void 0x0?void 0x0:a[aa(0x1ae)])?a[aa(0x1ae)]:process['cwd'](),c=[aa(0x239),aa(0x1c1),aa(0x23c),'\x22KeyPairs[*].{name:KeyName}\x22'],d=aa(0x252)+c[aa(0x228)]('\x20'),f=execSync(d)[aa(0x231)]();if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';let g=JSON['parse'](f),h=[];if(g)g[aa(0x1c2)]((i,j)=>{const ab=aa;if(ab(0x1e2)!==ab(0x1ff))h['push']({'id':j,'name':i[ab(0x226)]});else return f(this,void 0x0,void 0x0,function*(){const ac=ab;try{let x=[ac(0x239),ac(0x253),ac(0x1ce),o],y=ac(0x252)+x[ac(0x228)]('\x20');p(y,{'stdio':ac(0x1e1)});}catch(z){s[ac(0x1a8)](z),t[ac(0x22e)](0x1);}});}),h['forEach'](i=>{const ad=aa;if(ad(0x1ef)!==ad(0x259))i['name']===(a===null||a===void 0x0?void 0x0:a['suggestion'])?Log['success'](ad(0x263)+i['id']+ad(0x1b8)+i[ad(0x226)]):Log['notice'](ad(0x263)+i['id']+ad(0x1b8)+i[ad(0x226)]);else try{const k=y[ad(0x1d3)](z['join'](ad(0x246),A,'ssh.json'),ad(0x210)),l=B[ad(0x1bd)](k);l[ad(0x1e6)]=C['join'](ad(0x1e4),D+'.pem.txt'),E[ad(0x23f)](F[ad(0x228)]('config',G,'ssh.json'),H[ad(0x1d1)](l,null,0x2));}catch(m){K[ad(0x1a8)](m),L[ad(0x1a8)](ad(0x206));}});else return Log[aa(0x1a8)](aa(0x1cc)),[];return h;}catch(i){Log[aa(0x1a8)](i);}}[a80U(0x216)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a80d;try{let b=[ae(0x239),'delete-key-pair',ae(0x1ce),a],c=ae(0x252)+b['join']('\x20');execSync(c,{'stdio':ae(0x1e1)});}catch(d){ae(0x220)!=='zoxLB'?(Log[ae(0x1a8)](d),process[ae(0x22e)](0x1)):d[ae(0x24d)]({'id':d,'name':f[ae(0x226)]});}});}[a80U(0x21a)](a){const af=a80U;let b=[];try{if(af(0x22f)===af(0x22f)){let c=(a===null||a===void 0x0?void 0x0:a[af(0x1ae)])?a[af(0x1ae)]:process[af(0x1ae)](),d=[af(0x239),'describe-instances','--filters',af(0x243),af(0x23c),af(0x256)],f=af(0x252)+d['join']('\x20'),g=execSync(f,{'cwd':c})[af(0x231)]();if(!g){if('drupP'!=='drupP')h[af(0x21c)]?i(j[af(0x23a)]):k(l['value'])[af(0x260)](m,n);else throw af(0x1ba);}let h=JSON[af(0x1bd)](g);h[af(0x1c7)]>0x0?(h=[]['concat'][af(0x23e)]([],h),h[af(0x1c2)](function(j,k){const ag=af;b['push']({'id':k,'instanceId':j['instanceId'],'privateIp':j[ag(0x224)],'publicIp':j[ag(0x1bb)],'status':j[ag(0x20f)],'name':j['name'],'env':j[ag(0x1c6)][0x0]});}),b[af(0x1c2)](j=>{const ah=af;let k=ah(0x263)+j['id']+'\x20NAME:\x20'+j[ah(0x226)]+ah(0x1a5)+j[ah(0x1c6)]+'\x20STATUS:\x20'+j[ah(0x20f)]+ah(0x1e0)+j[ah(0x1bf)]+ah(0x20b)+j[ah(0x1bb)]+ah(0x264)+j[ah(0x224)];if(j['status']===ah(0x1ac))Log[ah(0x1a8)](k);else j[ah(0x20f)]==='running'?ah(0x24c)===ah(0x24c)?Log[ah(0x211)](k):e['log'](ah(0x263)+f['id']+ah(0x1da)+g[ah(0x1eb)]+ah(0x1df)+h[ah(0x251)]):Log['notice'](k);})):Log[af(0x1a8)](af(0x1e9));}else c[af(0x1a8)](d);}catch(k){af(0x1cd)===af(0x22b)?d['success'](af(0x263)+k['id']+af(0x1b8)+f[af(0x226)]):Log[af(0x1a8)](k);}return b;}[a80U(0x1f9)](a){const ai=a80U;try{let b=(a===null||a===void 0x0?void 0x0:a[ai(0x1ae)])?a[ai(0x1ae)]:process[ai(0x1ae)](),c=[ai(0x239),ai(0x1b1),'--instance-id',a[ai(0x1bf)]],d=ai(0x252)+c[ai(0x228)]('\x20'),f=execSync(d)[ai(0x231)]();return f;}catch(g){if('ROEMp'===ai(0x1f8)){const i=g?function(){const aj=ai;if(i){const u=q[aj(0x23e)](r,arguments);return s=null,u;}}:function(){};return l=![],i;}else Log[ai(0x1a8)](g);}}[a80U(0x1dc)](a){const ak=a80U;try{let b=a[ak(0x1ae)]?a[ak(0x1ae)]:process[ak(0x1ae)](),c=[ak(0x239),ak(0x213),ak(0x245),a[ak(0x1bf)]],d='aws\x20'+c[ak(0x228)]('\x20');Log[ak(0x1ee)](d);let f=execSync(d)[ak(0x231)]();return Log[ak(0x1ee)](f),f;}catch(g){Log[ak(0x1a8)](g);}}[a80U(0x20c)](){return __awaiter(this,void 0x0,void 0x0,function*(){const al=a80d;if(al(0x25c)!==al(0x25c)){let b=[al(0x239),al(0x240),al(0x1fe),c],c=al(0x252)+b[al(0x228)]('\x20');d(c,{'stdio':al(0x1e1)});}else{let b='';Log[al(0x1ee)]('**\x20Available\x20\x20VPCs\x20**');let c=execSync(al(0x221))[al(0x231)](),d=JSON[al(0x1bd)](c),e=[];Object['keys'](d)[al(0x1c2)](function(g){const am=al;am(0x21e)===am(0x21e)?d[g]['forEach'](function(h,i){const an=am;if(an(0x234)===an(0x234))e[an(0x24d)]({'id':i,'vpcId':h['VpcId'],'cidr':h[an(0x1b6)]});else{let k='ID:\x20'+m['id']+'\x20NAME:\x20'+n['name']+an(0x1a5)+o[an(0x1c6)]+an(0x219)+p[an(0x20f)]+an(0x1e0)+q['instanceId']+an(0x20b)+r[an(0x1bb)]+an(0x264)+s[an(0x224)];if(t['status']===an(0x1ac))y[an(0x1a8)](k);else v['status']===an(0x1c0)?z[an(0x211)](k):A['notice'](k);}}):d[e][am(0x1c2)](function(j,k){const ao=am;g['push']({'id':k,'vpcId':j[ao(0x1e3)],'cidr':j[ao(0x1b6)]});});}),e[al(0x1c2)](function(g){const ap=al;console[ap(0x247)](ap(0x263)+g['id']+'\x20VPCID:\x20'+g[ap(0x1eb)]+ap(0x1df)+g[ap(0x251)]);});let f=(yield Actions[al(0x1b3)](al(0x1d5)))||0x0;e[al(0x1c2)](function(g){const aq=al;g['id']==f&&('TBUdN'===aq(0x233)?c[aq(0x1a8)](d):(b=g['vpcId'],Log[aq(0x211)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+b+'\x0a')));});if(b==='')return Log[al(0x1a8)](al(0x1b7)),'';return b;}});}['chooseInstance'](){return __awaiter(this,void 0x0,void 0x0,function*(){const ar=a80d;let a=this['ec2describeInstances']({});if(a['length']===0x0){if(ar(0x20d)==='inVFy')e[ar(0x24d)]({'id':f,'vpcId':g['VpcId'],'cidr':h['CidrBlock']});else return Log[ar(0x1a8)](ar(0x24f)),null;}let b=yield Actions['ask'](ar(0x1d8));if(!b){if(ar(0x1d6)===ar(0x1be))try{i(j['throw'](k));}catch(f){m(f);}else Log[ar(0x1a8)](ar(0x25a));}let c=a[ar(0x21d)](({id:f})=>{return f==parseInt(b);})||null;return c;});}['createKeyPair']({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const as=a80d;if('PKJwQ'===as(0x20a)){const b=this[as(0x1d7)]['getProjectConfig']();let c;const d=this['fsi'][as(0x1af)](),{appName:f}=b;let g=f+'-'+a;c=(yield Actions[as(0x1b3)](as(0x244)+g+']\x20'))||g;try{const h=yield this['ec2key']({'fileName':c,'env':a});if(!h){if(as(0x1bc)==='fktGw')throw as(0x1f1);else try{let k=(q===null||r===void 0x0?void 0x0:s[as(0x1ae)])?t[as(0x1ae)]:u['cwd'](),l=[as(0x239),as(0x1b1),as(0x245),v[as(0x1bf)]],m=as(0x252)+l['join']('\x20'),n=w(m)[as(0x231)]();return n;}catch(o){y['error'](o);}}const i=yield Actions[as(0x1d2)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?');if(i)try{const k=a80P['readFileSync'](a80Q[as(0x228)]('config',a,'ssh.json'),as(0x210)),l=JSON[as(0x1bd)](k);l['pem']=a80Q['join'](as(0x1e4),c+as(0x204)),a80P[as(0x23f)](a80Q[as(0x228)](as(0x246),a,as(0x1e5)),JSON['stringify'](l,null,0x2));}catch(m){Log['error'](m),Log[as(0x1a8)](as(0x206));}}catch(n){Log[as(0x1a8)](n),process[as(0x22e)](0x1);}return c;}else{if(e){const p=i[as(0x23e)](j,arguments);return k=null,p;}}});}['listSecurityGroups'](a){return __awaiter(this,void 0x0,void 0x0,function*(){const at=a80d;if(at(0x1f3)!=='GYeSW'){Log[at(0x1ee)](at(0x1f6));let b=execSync('aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22')[at(0x231)](),c=JSON[at(0x1bd)](b),d=[];return c['forEach'](function(e,f){const au=at;d[au(0x24d)]({'id':f,'name':e[au(0x1dd)],'sgId':e['ID']});}),d[at(0x1c2)](function(e){const av=at;av(0x265)!==av(0x1fa)?e[av(0x226)]===a?Log[av(0x1ee)](av(0x263)+e['id']+av(0x1ad)+e['name']+av(0x227)+e[av(0x1b2)]):Log[av(0x237)]('ID:\x20'+e['id']+'\x20SG\x20NAME:\x20'+e[av(0x226)]+av(0x227)+e[av(0x1b2)]):c(d);}),d;}else e[at(0x237)](at(0x263)+f['id']+at(0x1ad)+g[at(0x226)]+at(0x227)+h['sgId']);});}[a80U(0x22d)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const aw=a80d;try{let b=[aw(0x239),aw(0x240),aw(0x1fe),a],c=aw(0x252)+b[aw(0x228)]('\x20');execSync(c,{'stdio':aw(0x1e1)});}catch(d){Log[aw(0x1a8)](d),process[aw(0x22e)](0x1);}});}}
@@ -1 +1 @@
1
- (function(a,b){var u=a81d,c=a();while(!![]){try{var d=-parseInt(u(0x1fd))/0x1+-parseInt(u(0x1fb))/0x2*(-parseInt(u(0x200))/0x3)+-parseInt(u(0x1ff))/0x4*(parseInt(u(0x1f8))/0x5)+-parseInt(u(0x1fa))/0x6*(-parseInt(u(0x1f1))/0x7)+parseInt(u(0x201))/0x8*(-parseInt(u(0x1fc))/0x9)+parseInt(u(0x1f2))/0xa*(-parseInt(u(0x1f3))/0xb)+parseInt(u(0x1f6))/0xc*(parseInt(u(0x1fe))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x77c71));function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0x1f1;var f=c[d];return f;},a81d(a,b);}var a81b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a81d;if(c){var e=c[v(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){var w=a81d;return a81a[w(0x1f7)]()[w(0x1f5)](w(0x1f4))[w(0x1f7)]()[w(0x202)](a81a)[w(0x1f5)](w(0x1f4));});a81a();function a81c(){var x=['4980DMzfMq','toString','18765CUukDc','apply','1916532CwrEKW','202462LMGpJC','157995FFhURe','97769lIpWaF','40144ZGzCLL','228GxOBtm','3yjVXjA','392XgZxJY','constructor','14vmgvzi','3591010hBloLl','11sRIKaT','(((.+)+)+)+$','search'];a81c=function(){return x;};return a81c();}export{};
1
+ (function(a,b){var u=a81d,c=a();while(!![]){try{var d=parseInt(u(0xa5))/0x1*(parseInt(u(0x9d))/0x2)+parseInt(u(0xa7))/0x3*(-parseInt(u(0xa6))/0x4)+-parseInt(u(0xa4))/0x5*(-parseInt(u(0xa1))/0x6)+-parseInt(u(0x99))/0x7+-parseInt(u(0x9e))/0x8*(parseInt(u(0x9c))/0x9)+-parseInt(u(0xa2))/0xa+parseInt(u(0xa0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x4c105));var a81b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a81d;if(c){var e=c[v(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){var w=a81d;return a81a[w(0x9f)]()['search'](w(0xa3))[w(0x9f)]()['constructor'](a81a)[w(0x9b)](w(0xa3));});function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0x99;var f=c[d];return f;},a81d(a,b);}a81a();export{};function a81c(){var x=['1469800XrOPVz','3CoLQAu','3330908ckxcDb','apply','search','27uLSVFW','12WGOWax','734840fJoQeY','toString','12772221qfYqKn','12wVDolP','4729130EZmzSF','(((.+)+)+)+$','631860jETFgr','81579bzTHml'];a81c=function(){return x;};return a81c();}
@@ -1 +1 @@
1
- const a83A=a83d;(function(a,b){const x=a83d,c=a();while(!![]){try{const d=-parseInt(x(0x10a))/0x1*(parseInt(x(0x102))/0x2)+parseInt(x(0x10d))/0x3+parseInt(x(0x109))/0x4*(parseInt(x(0x11d))/0x5)+-parseInt(x(0x108))/0x6*(parseInt(x(0x104))/0x7)+-parseInt(x(0x10b))/0x8*(parseInt(x(0x100))/0x9)+-parseInt(x(0x107))/0xa*(parseInt(x(0x118))/0xb)+parseInt(x(0x111))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x29c25));function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0xfe;let f=c[d];return f;},a83d(a,b);}const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a83d;if(y(0x105)!==y(0x105)){if(e){const f=i['apply'](j,arguments);return k=null,f;}}else{if(c){const f=c[y(0x113)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const z=a83d;return a83a[z(0x11b)]()[z(0x116)](z(0x117))['toString']()[z(0xff)](a83a)[z(0x116)]('(((.+)+)+)+$');});function a83c(){const E=['error','apply','AWS','inherit','search','(((.+)+)+)+$','33cYavhy','pushImage','.dkr.ecr.','toString','tag','39815JLIOMx','push','constructor','27QonHoe','--password-stdin','33016mxGKMR','.amazonaws.com/','17885hdOybF','JRjlI','docker\x20','286070GbbVxS','570HFmzeE','8BDmisW','13UmXPTj','844056QgewwQ','--username','763854ksNTBN','RpJOb','join','login','9122064SqNZdo'];a83c=function(){return E;};return a83c();}a83a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{constructor(){}static[a83A(0x11c)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const B=a83A;try{let f=[B(0x11c),a,b+B(0x11a)+c+B(0x103)+d],g=B(0x106)+f[B(0x10f)]('\x20'),h=execSync(g,{'stdio':'inherit'})[B(0x11b)]();return h;}catch(i){return Log[B(0x112)](i),'';}}static['awsLogin']({awsAccountId:a,region:b}){const C=a83A;try{if('Stmjl'===C(0x10e))return c[C(0x112)](d),'';else{let d=[C(0x110),C(0x10c),C(0x114),C(0x101),a+'.dkr.ecr.'+b+'.amazonaws.com'],f=C(0x106)+d[C(0x10f)]('\x20'),g=execSync(f,{'stdio':'inherit'})[C(0x11b)]();return g;}}catch(h){return Log['error'](h),'';}}static[a83A(0x119)]({awsAccountId:a,region:b,repoName:c}){const D=a83A;try{let d=[D(0xfe),a+D(0x11a)+b+'.amazonaws.com/'+c],f=D(0x106)+d[D(0x10f)]('\x20'),g=execSync(f,{'stdio':D(0x115)})[D(0x11b)]();return g;}catch(h){return Log[D(0x112)](h),'';}}}
1
+ const a83A=a83d;(function(a,b){const x=a83d,c=a();while(!![]){try{const d=parseInt(x(0x193))/0x1+parseInt(x(0x19e))/0x2*(-parseInt(x(0x1a1))/0x3)+parseInt(x(0x19f))/0x4+parseInt(x(0x1a6))/0x5+parseInt(x(0x1a7))/0x6+-parseInt(x(0x19a))/0x7*(-parseInt(x(0x18e))/0x8)+parseInt(x(0x19d))/0x9*(-parseInt(x(0x196))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x55e1d));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a83d;if(y(0x19b)===y(0x19b)){if(c){const e=c[y(0x18f)](b,arguments);return c=null,e;}}else{let g=['tag',f,g+y(0x1a4)+h+y(0x1a8)+i],h=y(0x1a2)+g[y(0x192)]('\x20'),i=j(h,{'stdio':y(0x1a3)})[y(0x191)]();return i;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const z=a83d;return a83a[z(0x191)]()[z(0x18d)]('(((.+)+)+)+$')[z(0x191)]()[z(0x1a5)](a83a)[z(0x18d)]('(((.+)+)+)+$');});a83a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a83c(){const E=['docker\x20','inherit','.dkr.ecr.','constructor','286550lsvrhM','1244472LhtbfD','.amazonaws.com/','search','1099304HvVsvf','apply','tag','toString','join','291331nuIiyt','login','error','279460XyyxTm','--password-stdin','push','pushImage','21EwoxPC','ylvTP','AWS','63UCIJaM','16EuobiG','575580gHLHSI','awsLogin','211797InHFcg'];a83c=function(){return E;};return a83c();}function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x18d;let f=c[d];return f;},a83d(a,b);}export class Docker{constructor(){}static[a83A(0x190)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const B=a83A;try{let f=[B(0x190),a,b+B(0x1a4)+c+B(0x1a8)+d],g='docker\x20'+f['join']('\x20'),h=execSync(g,{'stdio':B(0x1a3)})[B(0x191)]();return h;}catch(i){return Log['error'](i),'';}}static[a83A(0x1a0)]({awsAccountId:a,region:b}){const C=a83A;try{let c=[C(0x194),'--username',C(0x19c),C(0x197),a+C(0x1a4)+b+'.amazonaws.com'],d=C(0x1a2)+c[C(0x192)]('\x20'),f=execSync(d,{'stdio':C(0x1a3)})[C(0x191)]();return f;}catch(g){return Log[C(0x195)](g),'';}}static[a83A(0x199)]({awsAccountId:a,region:b,repoName:c}){const D=a83A;try{let d=[D(0x198),a+'.dkr.ecr.'+b+'.amazonaws.com/'+c],f=D(0x1a2)+d[D(0x192)]('\x20'),g=execSync(f,{'stdio':D(0x1a3)})[D(0x191)]();return g;}catch(h){return Log[D(0x195)](h),'';}}}