@maka/maka-cli 4.2.24 → 4.2.27

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 (95) 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 -0
  10. package/dist/commands/aws/dsg.sub.cmd.js +1 -0
  11. package/dist/commands/aws/rbi.sub.cmd.js +1 -1
  12. package/dist/commands/aws/rkp.sub.cmd.js +1 -0
  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.js +1 -1
  44. package/dist/commands/set/_index.js +1 -1
  45. package/dist/commands/set/global.sub.cmd.js +1 -1
  46. package/dist/commands/set/local.sub.cmd.js +1 -1
  47. package/dist/commands/set/set.command.js +1 -1
  48. package/dist/commands/ssh.js +1 -1
  49. package/dist/commands/ssl.js +1 -1
  50. package/dist/commands/test.js +1 -1
  51. package/dist/commands/version.js +1 -1
  52. package/dist/error.js +1 -1
  53. package/dist/generator.js +1 -1
  54. package/dist/generators/_index.js +1 -1
  55. package/dist/generators/api.js +1 -1
  56. package/dist/generators/collection.js +1 -1
  57. package/dist/generators/component.js +1 -1
  58. package/dist/generators/config.js +1 -1
  59. package/dist/generators/dbc.js +1 -1
  60. package/dist/generators/dockerfile.js +1 -1
  61. package/dist/generators/hook.js +1 -1
  62. package/dist/generators/kit.js +1 -1
  63. package/dist/generators/layout.js +1 -1
  64. package/dist/generators/maka.gen.js +1 -1
  65. package/dist/generators/methods.js +1 -1
  66. package/dist/generators/package.js +1 -1
  67. package/dist/generators/page.js +1 -1
  68. package/dist/generators/publish.js +1 -1
  69. package/dist/generators/route.js +1 -1
  70. package/dist/generators/scaffold.js +1 -1
  71. package/dist/generators/service.js +1 -1
  72. package/dist/generators/services/_index.js +1 -1
  73. package/dist/generators/services/openssl.js +1 -1
  74. package/dist/generators/services/translation.js +1 -1
  75. package/dist/maka.js +1 -1
  76. package/dist/tool.js +1 -1
  77. package/dist/tools/actions/actions.class.js +1 -1
  78. package/dist/tools/actions/actions.test.js +1 -1
  79. package/dist/tools/aws/aws.class.js +1 -1
  80. package/dist/tools/aws/aws.interfaces.js +1 -1
  81. package/dist/tools/docker/docker.class.js +1 -1
  82. package/dist/tools/docker/docker.interfaces.js +1 -1
  83. package/dist/tools/fsi/fsi.class.js +1 -1
  84. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  85. package/dist/tools/https/https.class.js +1 -1
  86. package/dist/tools/https/https.interface.js +1 -1
  87. package/dist/tools/log/log.class.js +1 -1
  88. package/dist/tools/log/log.interfaces.js +1 -1
  89. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  90. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  91. package/dist/tools/ssh/ssh.class.js +1 -1
  92. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  93. package/dist/tools/ssl/ssl.class.js +1 -1
  94. package/package.json +1 -1
  95. package/dist/commands/aws/dks.sub.cmd.js +0 -1
@@ -1 +1 @@
1
- const a65C=a65d;(function(a,b){const z=a65d,c=a();while(!![]){try{const d=-parseInt(z(0x1bb))/0x1*(-parseInt(z(0x1a3))/0x2)+-parseInt(z(0x199))/0x3*(-parseInt(z(0x1a5))/0x4)+-parseInt(z(0x1ae))/0x5*(-parseInt(z(0x1b3))/0x6)+-parseInt(z(0x19b))/0x7+parseInt(z(0x1a9))/0x8+-parseInt(z(0x19c))/0x9+parseInt(z(0x1b8))/0xa*(parseInt(z(0x197))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0xb4d1a));function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x197;let f=c[d];return f;},a65d(a,b);}const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a65d;if(c){const e=c[A(0x1ba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const B=a65d;return a65a['toString']()['search'](B(0x1a4))['toString']()[B(0x1b7)](a65a)['search'](B(0x1a4));});a65a();var __awaiter=this&&this[a65C(0x1b5)]||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 H=a65d;function h(k){const D=a65d;try{if(D(0x19d)==='quhJK'){const n=g?function(){const E=D;if(n){const u=q[E(0x1ba)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else j(d['next'](k));}catch(m){g(m);}}function i(k){const F=a65d;try{j(d[F(0x1a6)](k));}catch(l){F(0x1bc)===F(0x1b4)?c(d):g(l);}}function j(k){const G=a65d;k[G(0x1a2)]?f(k[G(0x1a7)]):e(k[G(0x1a7)])[G(0x198)](h,i);}j((d=d[H(0x1ba)](a,b||[]))[H(0x19a)]());});};import{paramCase}from'change-case';function a65c(){const K=['constructor','1440710hdkTlB','getProjectConfig','apply','4DjzwwN','ncoGC','11xGLcAK','then','150kUNCOh','next','9315166CsUfZQ','5941629gAPuLF','OkFsF','injectAtEndOfFile','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','maka\x20g:publish\x20todos','server/publish.','done','192374ufuKVw','(((.+)+)+)+$','52844exLtIE','throw','value','publish/publish.','8562048VNzpac','rewriteDestinationPathForEngine','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','publish','tsx','10lQMeoi','engines','create','resourceName','templateContent','1415784fDjeTj','IJCBS','__awaiter','fsi'];a65c=function(){return K;};return a65c();}import{Generator}from'../generator.js';Generator[a65C(0x1b0)]({'name':a65C(0x1ac),'aliases':['p'],'usage':a65C(0x1ab),'description':a65C(0x19f),'examples':[a65C(0x1a0)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const I=a65d,c=this['fsi'][I(0x1b9)]();this[I(0x1b6)]['withValue'](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=I,d={'name':b['resourceName'],'collection':paramCase(b[J(0x1b1)]),'noRename':!![]};let e='js';c[J(0x1af)]['js']===J(0x1ad)&&(e='ts');const f=this['fsi'][J(0x1aa)]({'pathParts':[J(0x1a1)+c[J(0x1af)]['js']]}),g=this['fsi'][J(0x1b2)]({'srcPath':J(0x1a8)+e,'context':d,'config':c});this['fsi'][J(0x19e)]({'filePath':f,'content':'\x0a'+g});}));});});
1
+ function a67c(){const L=['182fBRkUG','__awaiter','22120BNspvW','2581275aqzxNa','next','value','qPjnW','AWaUC','WxMhc','1820894hLTqiu','1359015TaUmIh','maka\x20g:publish\x20todos','(((.+)+)+)+$','templateContent','8012544jLynLA','tsx','1yFtRap','6RcxsmK','resourceName','1959192MnIsEA','getProjectConfig','apply','9MLJtEW','engines','then','wngyI','3927EUROlA','InGVJ','toString','12BjEMHh','publish','590045bdadQI','fsi','aDuEI','search','server/publish.','injectAtEndOfFile','constructor','throw','done','WSPdy','create'];a67c=function(){return L;};return a67c();}const a67D=a67d;(function(a,b){const z=a67d,c=a();while(!![]){try{const d=-parseInt(z(0x183))/0x1*(parseInt(z(0x17c))/0x2)+parseInt(z(0x176))/0x3+-parseInt(z(0x166))/0x4*(-parseInt(z(0x168))/0x5)+-parseInt(z(0x184))/0x6*(parseInt(z(0x17d))/0x7)+parseInt(z(0x181))/0x8*(-parseInt(z(0x15f))/0x9)+-parseInt(z(0x175))/0xa*(parseInt(z(0x163))/0xb)+parseInt(z(0x15c))/0xc*(parseInt(z(0x173))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x938ac));const a67b=(function(){let a=!![];return function(b,c){const B=a67d;if('gyxUQ'==='gyxUQ'){const d=a?function(){const A=a67d;if(A(0x164)===A(0x179))c(d);else{if(c){const f=c[A(0x15e)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}else{if(e){const f=i[B(0x15e)](j,arguments);return k=null,f;}}};}()),a67a=a67b(this,function(){const C=a67d;return a67a[C(0x165)]()[C(0x16b)](C(0x17f))[C(0x165)]()[C(0x16e)](a67a)['search'](C(0x17f));});a67a();function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x15b;let f=c[d];return f;},a67d(a,b);}var __awaiter=this&&this[a67D(0x174)]||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 I=a67d;function h(k){const E=a67d;if(E(0x162)===E(0x162))try{j(d[E(0x177)](k));}catch(l){E(0x17b)!==E(0x17b)?d(l['next'](f)):g(l);}else d(e[E(0x16f)](f));}function i(k){const F=a67d;try{if(F(0x17a)!==F(0x16a))j(d['throw'](k));else{const n=g?function(){const G=F;if(n){const u=q[G(0x15e)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}catch(m){g(m);}}function j(k){const H=a67d;k[H(0x170)]?f(k[H(0x178)]):e(k['value'])[H(0x161)](h,i);}j((d=d[I(0x15e)](a,b||[]))['next']());});};import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a67D(0x172)]({'name':a67D(0x167),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','description':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','examples':[a67D(0x17e)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const J=a67d;if(J(0x171)===J(0x171)){const c=this[J(0x169)][J(0x15d)]();this[J(0x169)]['withValue'](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const K=J,d={'name':b[K(0x15b)],'collection':paramCase(b[K(0x15b)]),'noRename':!![]};let e='js';c[K(0x160)]['js']===K(0x182)&&(e='ts');const f=this[K(0x169)]['rewriteDestinationPathForEngine']({'pathParts':[K(0x16c)+c[K(0x160)]['js']]}),g=this[K(0x169)][K(0x180)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[K(0x169)][K(0x16d)]({'filePath':f,'content':'\x0a'+g});}));}else h[J(0x170)]?i(j[J(0x178)]):k(l[J(0x178)])[J(0x161)](m,n);});});
@@ -1 +1 @@
1
- const a66E=a66d;(function(a,b){const B=a66d,c=a();while(!![]){try{const d=parseInt(B(0x11d))/0x1+-parseInt(B(0x119))/0x2*(parseInt(B(0x110))/0x3)+-parseInt(B(0x122))/0x4*(parseInt(B(0x14f))/0x5)+parseInt(B(0x14d))/0x6*(-parseInt(B(0x141))/0x7)+-parseInt(B(0x138))/0x8+parseInt(B(0x15b))/0x9+-parseInt(B(0x15a))/0xa*(-parseInt(B(0x117))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x262a6));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const C=a66d;if(c){if(C(0x156)==='kCcFr')d(e[C(0x134)](f));else{const f=c[C(0x158)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const D=a66d;return a66a[D(0x125)]()[D(0x15f)]('(((.+)+)+)+$')[D(0x125)]()[D(0x11c)](a66a)[D(0x15f)](D(0x148));});a66a();var __awaiter=this&&this[a66E(0x14e)]||function(a,b,c,d){function e(f){const F=a66d;if(F(0x15e)===F(0x15e))return f instanceof c?f:new c(function(g){g(f);});else d(e[F(0x10d)](f));}return new(c||(c=Promise))(function(f,g){const J=a66d;function h(k){const G=a66d;if('AuLQP'==='aVheN')c(d);else try{j(d[G(0x134)](k));}catch(m){g(m);}}function i(k){const H=a66d;if('oeNDu'!==H(0x112))try{j(d[H(0x10d)](k));}catch(l){H(0x150)!=='bdsXl'?c['warn'](H(0x109)+d):g(l);}else return b!=='/';}function j(k){const I=a66d;k[I(0x13a)]?f(k[I(0x10b)]):e(k[I(0x10b)])[I(0x12c)](h,i);}j((d=d['apply'](a,b||[]))[J(0x134)]());});};import a66u from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x106;let f=c[d];return f;},a66d(a,b);}import a66v from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a66c(){const U=['withValue','filter','next','fsi','injectAtEndOfFile','layout','333592GXxfUC','includes','done','vanilla','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','findGenerator','map','only','route','3241MZpHhD','routes.js','maka\x20g:route\x20todosEdit\x20todos/:id/edit','</Router>','templateName','const\x20privateRoutes\x20=\x20(<>','newForm','(((.+)+)+)+$','client','join','length','ysSEk','2544CCwaNu','__awaiter','5dbNbAi','bdsXl','withTranslations','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','injectAfterLineNumber','ynQgO','const\x20publicRoutes\x20=\x20(<>','iyySv','invoke','apply','/imports/ui/pages','714920xwXEDp','1910025QBEgco','Scaffolding\x20for\x20a\x20Route.','warn','EGIgB','search','\x22*\x22','<Route','templateContent','ssr','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','NIUHG','value','cwd','throw','MasterLayout','react','5415MjbBKw','maka\x20g:route\x20lists/listIndex\x20lists','GdiWI','WTooK','rewriteDestinationPathForEngine','page','root','55cyawtG','indexOf','66cDHpQz','engines','startup','constructor','187750mFgUah','withHook','PrivateLayout','getProjectConfig','toLowerCase','1214132jYaFjB','route/route.js','imports','toString','pathFromApp','config','features','injectIntoFile','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','XXwWw','then','private','readFileLines','\x0a\x09\x09','LXfVz','lib'];a66c=function(){return U;};return a66c();}const aliases=['r'];Generator['create']({'name':a66E(0x140),'aliases':aliases,'validOpts':[a66E(0x12d),a66E(0x137),a66E(0x13f),a66E(0x10c),a66E(0x127),a66E(0x116),a66E(0x11e)],'usage':a66E(0x12a),'description':a66E(0x15c),'examples':['maka\x20g:route\x20todosIndex\x20todos',a66E(0x143),a66E(0x13c),a66E(0x111)]},function(a,b){const K=a66E;try{if(K(0x154)===K(0x154)){const c=this[K(0x135)][K(0x120)]();this['fsi'][K(0x132)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const L=K;if(L(0x113)!==L(0x113))return b[L(0x139)]('\x22*\x22');else{var d;let g=(d=b[L(0x12d)])!==null&&d!==void 0x0?d:![],h=paramCase(a[0x0]),i='/'+h;a[L(0x14b)]>0x1&&(i='/'+a[L(0x133)](function(n){return n!=='/';})[L(0x14a)]('/')[L(0x121)]());h=camelCase(h);b[L(0x137)]&&('zhLDD'!==L(0x12b)?b[L(0x137)]=camelCase(b[L(0x137)]):c(d));let j=a66u[L(0x14a)](L(0x159),h,h),k={'name':h,'fileCase':paramCase(h),'camelCaseName':camelCase(h),'url':i,'layout':b[L(0x137)]||L(0x10e),'templatePath':j,'templateName':pascalCase(h),'client':c[L(0x11a)]['client'],'newForm':![],'withTranslations':c[L(0x128)][L(0x151)]};g&&(k['layout']=L(0x11f));if(!b['root']){const o=a66v[L(0x13d)](L(0x115));o&&(yield o[L(0x157)](a,b));}let l,m;if(c[L(0x11a)][L(0x149)]===L(0x10f)){if(L(0x14c)===L(0x14c)){if(c[L(0x11a)][L(0x108)]==='true'){const s=this[L(0x135)]['pathFromApp']({'pathParts':[L(0x124),L(0x11b),L(0x131),'routes.js']});l=this[L(0x135)][L(0x114)]({'pathParts':[s],'config':c});}else{const t=this[L(0x135)][L(0x126)]({'pathParts':['imports',L(0x11b),L(0x149),L(0x142)]});l=this[L(0x135)][L(0x114)]({'pathParts':[t],'config':c});}let p=this[L(0x135)][L(0x12e)](l)[L(0x13e)]((u,v)=>{const M=L;return u[M(0x139)](M(0x152))?v+0x1:null;})[L(0x133)](u=>u!==null),q=this[L(0x135)]['readFileLines'](l)[L(0x13e)]((u,v)=>{const N=L;if('hbkSR'===N(0x10a)){const x=g?function(){const O=N;if(x){const y=q[O(0x158)](r,arguments);return s=null,y;}}:function(){};return l=![],x;}else return u[N(0x139)](N(0x155))?v+0x1:null;})[L(0x133)](u=>u!==null),r=this[L(0x135)][L(0x12e)](l)[L(0x13e)]((u,v)=>{const P=L;return u[P(0x139)](P(0x146))?v+0x1:null;})['filter'](u=>u!==null);q[L(0x14b)]>0x0&&r['length']>0x0&&(k[L(0x147)]=!![]);m=this[L(0x135)]['templateContent']({'srcPath':L(0x123),'framework':L(0x10f),'context':k,'config':c});if(q['length']>0x0||r['length']>0x0){this[L(0x135)][L(0x153)]({'filePath':l,'content':m,'lineNumber':p[0x0]});if(g&&r['length']>0x0)'VcNkK'!==L(0x130)?(r=this[L(0x135)][L(0x12e)](l)[L(0x13e)]((u,v)=>{const Q=L;return u[Q(0x139)](Q(0x146))?v+0x1:null;})[L(0x133)](u=>u!==null),this[L(0x135)][L(0x153)]({'filePath':l,'content':'\x09{'+k[L(0x145)]+'}','lineNumber':r[0x0]})):c='/'+d['filter'](function(v){return v!=='/';})['join']('/')[L(0x121)]();else q[L(0x14b)]>0x0?(q=this[L(0x135)][L(0x12e)](l)['map']((v,w)=>{const R=L;return v[R(0x139)](R(0x155))?w+0x1:null;})['filter'](v=>v!==null),this[L(0x135)][L(0x153)]({'filePath':l,'content':'\x09{'+k[L(0x145)]+'}','lineNumber':q[0x0]})):Log[L(0x15d)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{let v=this[L(0x135)][L(0x12e)](l)[L(0x13e)](y=>{const S=L;return y['includes'](S(0x160));}),w=v[L(0x118)](!![])>-0x1,x=w?L(0x106):L(0x144);this[L(0x135)][L(0x129)]({'filePath':l,'content':L(0x12f)+m+'\x0a\x09\x09','begin':'<Router','end':x});}}else f=this[L(0x135)][L(0x12e)](g)[L(0x13e)]((z,A)=>{const T=L;return z[T(0x139)](T(0x155))?A+0x1:null;})[L(0x133)](z=>z!==null),this[L(0x135)][L(0x153)]({'filePath':h,'content':'\x09{'+i[L(0x145)]+'}','lineNumber':j[0x0]});}else{if(c['engines'][L(0x149)]===L(0x13b)){const z=this['fsi'][L(0x126)]({'pathParts':['imports','startup',L(0x149),'routes.js']});l=this[L(0x135)][L(0x114)]({'pathParts':[z],'config':c}),m=this['fsi'][L(0x107)]({'srcPath':'route/route.js','context':k}),this['fsi'][L(0x136)]({'filePath':l,'content':'\x0a'+m});}}}}));}else b['layout']=K(0x11f);}catch(f){Log['error'](f);}});
1
+ const a68K=a68d;(function(a,b){const D=a68d,c=a();while(!![]){try{const d=parseInt(D(0x200))/0x1+-parseInt(D(0x1d6))/0x2+parseInt(D(0x1dc))/0x3*(parseInt(D(0x1fc))/0x4)+-parseInt(D(0x1fe))/0x5+-parseInt(D(0x210))/0x6+-parseInt(D(0x1f1))/0x7+-parseInt(D(0x1f0))/0x8*(-parseInt(D(0x1ea))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x5a82c));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const E=a68d;if(c){const e=c[E(0x220)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const F=a68d;return a68a[F(0x223)]()[F(0x1fd)](F(0x221))['toString']()[F(0x1f9)](a68a)['search']('(((.+)+)+)+$');});function a68c(){const U=['injectAtEndOfFile','16TVNIKH','5026980tTfWxv','true','toLowerCase','throw','ArncT','cwd','XkTRX','length','constructor','gzjLh','engines','60mKEzKm','search','2562800ivxaai','indexOf','54801dRiidp','PrivateLayout','private','templateName','then','kmQNr','rewriteDestinationPathForEngine','page','<Route','value','\x22*\x22','readFileLines','const\x20privateRoutes\x20=\x20(<>','imports','next','wixXi','1224846XbvhYW','filter','create','react','vanilla','MSmYo','newForm','const\x20publicRoutes\x20=\x20(<>','pathFromApp','maka\x20g:route\x20todosEdit\x20todos/:id/edit','arjcx','map','<Router','route/route.js','injectIntoFile','</Router>','apply','(((.+)+)+)+$','withTranslations','toString','chRDn','fsi','getProjectConfig','templateContent','client','223854vKkwju','done','warn','join','maka\x20g:route\x20todosIndex\x20todos','includes','19791zTqkno','xFgOL','startup','\x0a\x09\x09','oJifb','EBDiI','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','config','lib','MasterLayout','withHook','invoke','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','injectAfterLineNumber','7936848lZbLvQ','layout','CjtpL','routes.js','JnrBh'];a68c=function(){return U;};return a68c();}a68a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const G=a68d;if(G(0x1fa)===G(0x1fa))return f instanceof c?f:new c(function(g){g(f);});else try{i(j[G(0x1f4)](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){function h(k){const H=a68d;try{if('wihJQ'==='wihJQ')j(d[H(0x20e)](k));else{const m=this[H(0x1d2)][H(0x218)]({'pathParts':[H(0x20d),H(0x1de),'lib',H(0x1ed)]});c=this[H(0x1d2)][H(0x206)]({'pathParts':[m],'config':d});}}catch(m){g(m);}}function i(k){const I=a68d;try{j(d[I(0x1f4)](k));}catch(l){g(l);}}function j(k){const J=a68d;if('LWBvB'===J(0x205))try{i(j['next'](k));}catch(m){m(m);}else k['done']?f(k[J(0x209)]):e(k[J(0x209)])[J(0x204)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a68u from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a68v from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x1d2;let f=c[d];return f;},a68d(a,b);}Generator[a68K(0x212)]({'name':'route','aliases':aliases,'validOpts':['private',a68K(0x1eb),'only',a68K(0x1f6),a68K(0x1e3),'root',a68K(0x1e6)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','description':'Scaffolding\x20for\x20a\x20Route.','examples':[a68K(0x1da),a68K(0x219),a68K(0x1e2),'maka\x20g:route\x20lists/listIndex\x20lists']},function(a,b){const L=a68K;try{const c=this[L(0x1d2)][L(0x1d3)]();this[L(0x1d2)]['withValue'](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const M=L;var d;let f=(d=b[M(0x202)])!==null&&d!==void 0x0?d:![],g=paramCase(a[0x0]),h='/'+g;a['length']>0x1&&(h='/'+a['filter'](function(m){const N=M;if('ePAZe'!=='ePAZe')d[N(0x1eb)]=e(f[N(0x1eb)]);else return m!=='/';})[M(0x1d9)]('/')['toLowerCase']());g=camelCase(g);b[M(0x1eb)]&&(M(0x1e1)!==M(0x1e1)?c='/'+d[M(0x211)](function(n){return n!=='/';})[M(0x1d9)]('/')[M(0x1f3)]():b['layout']=camelCase(b['layout']));let i=a68u[M(0x1d9)]('/imports/ui/pages',g,g),j={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[M(0x1eb)]||M(0x1e5),'templatePath':i,'templateName':pascalCase(g),'client':c[M(0x1fb)][M(0x1d5)],'newForm':![],'withTranslations':c['features'][M(0x222)]};if(f){if(M(0x1e0)!==M(0x215))j['layout']=M(0x201);else return c[M(0x223)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](d)[M(0x1fd)](M(0x221));}if(!b['root']){const o=a68v['findGenerator'](M(0x207));if(o){if('gvuvB'!==M(0x20f))yield o[M(0x1e7)](a,b);else return c[M(0x1db)](M(0x217))?d+0x1:null;}}let k,l;if(c['engines']['client']==='react'){if(c[M(0x1fb)]['ssr']===M(0x1f2)){if(M(0x21a)!==M(0x21a))h[M(0x1d7)]?i(j[M(0x209)]):k(l['value'])[M(0x204)](m,n);else{const u=this[M(0x1d2)][M(0x218)]({'pathParts':['imports',M(0x1de),M(0x1e4),M(0x1ed)]});k=this[M(0x1d2)][M(0x206)]({'pathParts':[u],'config':c});}}else{const v=this[M(0x1d2)][M(0x218)]({'pathParts':[M(0x20d),'startup',M(0x1d5),'routes.js']});k=this[M(0x1d2)]['rewriteDestinationPathForEngine']({'pathParts':[v],'config':c});}let q=this[M(0x1d2)]['readFileLines'](k)[M(0x21b)]((w,x)=>{return w['includes']('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?x+0x1:null;})['filter'](w=>w!==null),r=this[M(0x1d2)][M(0x20b)](k)[M(0x21b)]((w,x)=>{const O=M;if(O(0x1ec)!==O(0x1f7))return w['includes'](O(0x217))?x+0x1:null;else{const z=g?function(){const P=O;if(z){const A=q[P(0x220)](r,arguments);return s=null,A;}}:function(){};return l=![],z;}})[M(0x211)](w=>w!==null),s=this[M(0x1d2)]['readFileLines'](k)['map']((w,x)=>{const Q=M;return w[Q(0x1db)]('const\x20privateRoutes\x20=\x20(<>')?x+0x1:null;})[M(0x211)](w=>w!==null);r[M(0x1f8)]>0x0&&s[M(0x1f8)]>0x0&&(j[M(0x216)]=!![]);l=this[M(0x1d2)][M(0x1d4)]({'srcPath':M(0x21d),'framework':M(0x213),'context':j,'config':c});if(r[M(0x1f8)]>0x0||s['length']>0x0){if(M(0x1ee)!=='pZFqZ'){this[M(0x1d2)][M(0x1e9)]({'filePath':k,'content':l,'lineNumber':q[0x0]});if(f&&s[M(0x1f8)]>0x0)s=this[M(0x1d2)][M(0x20b)](k)['map']((w,x)=>{const R=M;return w[R(0x1db)](R(0x20c))?x+0x1:null;})[M(0x211)](w=>w!==null),this[M(0x1d2)][M(0x1e9)]({'filePath':k,'content':'\x09{'+j['templateName']+'}','lineNumber':s[0x0]});else{if(r['length']>0x0)r=this[M(0x1d2)]['readFileLines'](k)[M(0x21b)]((w,x)=>{const S=M;return w[S(0x1db)](S(0x217))?x+0x1:null;})[M(0x211)](w=>w!==null),this['fsi'][M(0x1e9)]({'filePath':k,'content':'\x09{'+j[M(0x203)]+'}','lineNumber':r[0x0]});else{if(M(0x224)!==M(0x224)){const x=d[M(0x220)](e,arguments);return f=null,x;}else Log[M(0x1d8)](M(0x1e8)+k);}}}else return f instanceof g?h:new i(function(y){y(k);});}else{if(M(0x1f5)!==M(0x1f5))d(e[M(0x20e)](f));else{let z=this[M(0x1d2)]['readFileLines'](k)[M(0x21b)](C=>{const T=M;return C[T(0x1db)](T(0x20a));}),A=z[M(0x1ff)](!![])>-0x1,B=A?M(0x208):M(0x21f);this[M(0x1d2)][M(0x21e)]({'filePath':k,'content':M(0x1df)+l+'\x0a\x09\x09','begin':M(0x21c),'end':B});}}}else{if(c[M(0x1fb)][M(0x1d5)]===M(0x214)){const C=this['fsi'][M(0x218)]({'pathParts':[M(0x20d),M(0x1de),'client','routes.js']});k=this[M(0x1d2)][M(0x206)]({'pathParts':[C],'config':c}),l=this[M(0x1d2)][M(0x1d4)]({'srcPath':M(0x21d),'context':j}),this['fsi'][M(0x1ef)]({'filePath':k,'content':'\x0a'+l});}}}));}catch(d){if(L(0x1dd)!=='HFFwV')Log['error'](d);else return c['includes'](L(0x20c))?d+0x1:null;}});
@@ -1 +1 @@
1
- const a67y=a67d;(function(a,b){const v=a67d,c=a();while(!![]){try{const d=-parseInt(v(0x1ad))/0x1*(parseInt(v(0x1af))/0x2)+-parseInt(v(0x1a9))/0x3*(-parseInt(v(0x1b6))/0x4)+-parseInt(v(0x1b2))/0x5*(parseInt(v(0x19b))/0x6)+parseInt(v(0x1a8))/0x7+-parseInt(v(0x1a4))/0x8*(parseInt(v(0x1b1))/0x9)+-parseInt(v(0x1a6))/0xa*(parseInt(v(0x19e))/0xb)+parseInt(v(0x1a1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xbddbb));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a67d;if(c){const e=c[w(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const x=a67d;return a67a[x(0x1a2)]()['search'](x(0x198))['toString']()['constructor'](a67a)[x(0x19d)](x(0x198));});function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x193;let f=c[d];return f;},a67d(a,b);}a67a();var __awaiter=this&&this[a67y(0x1ac)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a67d;if('fMzSy'===z(0x195))return c[z(0x1a2)]()[z(0x19d)]('(((.+)+)+)+$')[z(0x1a2)]()[z(0x1b3)](d)['search'](z(0x198));else g(f);});}return new(c||(c=Promise))(function(f,g){const D=a67d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){const A=a67d;if(A(0x1b0)===A(0x1b5)){const n=g?function(){const B=A;if(n){const u=q[B(0x19f)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else try{j(d[A(0x19a)](k));}catch(m){A(0x194)!==A(0x194)?d(m['next'](f)):g(m);}}function j(k){const C=a67d;k[C(0x199)]?f(k[C(0x1ae)]):e(k['value'])[C(0x193)](h,i);}j((d=d['apply'](a,b||[]))[D(0x1ab)]());});};function a67c(){const F=['89AgetdJ','value','2962LjFhmK','AItxu','63ukIZDm','39385yysAMV','constructor','page','FQOvU','1528012GDuEkj','findGenerator','maka\x20g:scaffold\x20todos','route','then','yjCpE','IPJpP','Scaffolding\x20for\x20a\x20complete\x20resource\x20(route,\x20page,\x20and\x20API)','api','(((.+)+)+)+$','done','throw','474AUibLZ','scaffold','search','5302yQarYe','apply','create','24445236sIKsgf','toString','invoke','1671576jJnzFl','error','9410OMWzWY','maka\x20{generate,\x20g}:{scaffold,\x20s}\x20[path/]<name>','1853810jJsEED','9kxsnGz','VghjF','next','__awaiter'];a67c=function(){return F;};return a67c();}import a67u from'../generators/maka.gen.js';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a67y(0x1a0)]({'name':a67y(0x19c),'usage':a67y(0x1a7),'description':a67y(0x196),'examples':[a67y(0x1b8)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a67d;try{if(E(0x1aa)==='vJwiV')c(d);else{const d=a67u[E(0x1b7)](E(0x1b9));d&&(yield d[E(0x1a3)](a,b));const f=a67u[E(0x1b7)](E(0x1b4));f&&(yield f[E(0x1a3)](a,b));const g=a67u['findGenerator'](E(0x197));g&&(yield g['invoke'](a,b));}}catch(h){Log[E(0x1a5)](h);}});});
1
+ const a69z=a69d;(function(a,b){const v=a69d,c=a();while(!![]){try{const d=-parseInt(v(0x192))/0x1*(parseInt(v(0x197))/0x2)+-parseInt(v(0x19b))/0x3*(-parseInt(v(0x196))/0x4)+parseInt(v(0x19d))/0x5*(parseInt(v(0x198))/0x6)+parseInt(v(0x19e))/0x7+-parseInt(v(0x1a3))/0x8+-parseInt(v(0x1a6))/0x9*(-parseInt(v(0x193))/0xa)+-parseInt(v(0x1ad))/0xb*(parseInt(v(0x1a1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x5df7a));const a69b=(function(){let a=!![];return function(b,c){const w=a69d;if('aYdTJ'===w(0x1a5))d(e['throw'](f));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;}};}()),a69a=a69b(this,function(){const y=a69d;return a69a[y(0x18e)]()['search']('(((.+)+)+)+$')[y(0x18e)]()[y(0x1ab)](a69a)['search']('(((.+)+)+)+$');});function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x18d;let f=c[d];return f;},a69d(a,b);}a69a();var __awaiter=this&&this[a69z(0x1a4)]||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 D=a69d;function h(k){const A=a69d;if(A(0x1a7)!==A(0x19f))try{j(d[A(0x1ac)](k));}catch(l){g(l);}else{if(e){const n=i['apply'](j,arguments);return k=null,n;}}}function i(k){const B=a69d;try{j(d[B(0x1ae)](k));}catch(l){g(l);}}function j(k){const C=a69d;k[C(0x195)]?f(k[C(0x18d)]):e(k[C(0x18d)])[C(0x19c)](h,i);}j((d=d[D(0x190)](a,b||[]))[D(0x1ac)]());});};import a69u from'../generators/maka.gen.js';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a69z(0x1aa),'usage':'maka\x20{generate,\x20g}:{scaffold,\x20s}\x20[path/]<name>','description':a69z(0x199),'examples':['maka\x20g:scaffold\x20todos']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a69d;try{if(E(0x18f)!==E(0x194)){const c=a69u[E(0x1a2)]('route');c&&(yield c['invoke'](a,b));const d=a69u[E(0x1a2)](E(0x191));if(d){if('jCJTx'==='AGZTQ')try{i(j[E(0x1ac)](k));}catch(h){m(h);}else yield d[E(0x1a0)](a,b);}const f=a69u[E(0x1a2)](E(0x19a));if(f){if('rHdNK'===E(0x1a8)){const i=g?function(){const F=E;if(i){const u=q[F(0x190)](r,arguments);return s=null,u;}}:function(){};return l=![],i;}else yield f['invoke'](a,b);}}else h[E(0x195)]?i(j[E(0x18d)]):k(l[E(0x18d)])[E(0x19c)](m,n);}catch(j){Log[E(0x1a9)](j);}});});function a69c(){const G=['BQtMM','done','1891492UotePL','2YUZpeO','45306FdlSCn','Scaffolding\x20for\x20a\x20complete\x20resource\x20(route,\x20page,\x20and\x20API)','api','3kMAWzs','then','435NNCAQV','1171268aJPVwn','nPIel','invoke','7688112bwjZpQ','findGenerator','4990760uGbOJa','__awaiter','TxRBz','39204ehwlhv','OUIvw','zhpFk','error','scaffold','constructor','next','11WrPmKI','throw','value','toString','eOgDL','apply','page','392599TUGzzQ','1710ovFPSd'];a69c=function(){return G;};return a69c();}
@@ -1 +1 @@
1
- const a68D=a68d;(function(a,b){const v=a68d,c=a();while(!![]){try{const d=-parseInt(v(0xa4))/0x1*(parseInt(v(0xa0))/0x2)+-parseInt(v(0xb9))/0x3+-parseInt(v(0xa1))/0x4*(-parseInt(v(0xa5))/0x5)+-parseInt(v(0xac))/0x6+parseInt(v(0xc2))/0x7*(-parseInt(v(0xb6))/0x8)+-parseInt(v(0xbc))/0x9+parseInt(v(0xab))/0xa*(parseInt(v(0xb4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0xdee5d));const a68b=(function(){let a=!![];return function(b,c){const w=a68d;if(w(0xb2)===w(0xb2)){const d=a?function(){const x=w;if(c){if(x(0xc0)===x(0xc0)){const e=c[x(0xbf)](b,arguments);return c=null,e;}else return c[x(0xcf)]()[x(0xba)](x(0xcb))[x(0xcf)]()['constructor'](d)['search'](x(0xcb));}}:function(){};return a=![],d;}else{const f=d['apply'](e,arguments);return f=null,f;}};}()),a68a=a68b(this,function(){const y=a68d;return a68a[y(0xcf)]()[y(0xba)](y(0xcb))[y(0xcf)]()[y(0xa6)](a68a)['search'](y(0xcb));});a68a();function a68c(){const G=['pathFromApp','service/logger/logger.js','1798367ynLTFx','1099590xtnUSt','constructor','next','Installing\x20winston','done','installNpmPackage','9715690tsNTpW','8500932wyHvYO','HWeyD','resourceName','getProjectConfig','XoPKK','withValue','dmwAb','welYQ','55fZDIUw','IkNgi','67432dMDBvD','imports','value','5341032dBnRWX','search','fsi','4405617XbIlRK','lib','zfAHr','apply','NMKEe','svc','182GtteRL','then','services','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','error','throw','create','logger','template','(((.+)+)+)+$','KQKlQ','startup','engines','toString','2jLIxSm','32cPCQOd'];a68c=function(){return G;};return a68c();}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){function h(k){const z=a68d;try{if(z(0xb0)==='afjaX'){const n=g?function(){const A=z;if(n){const u=q[A(0xbf)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else j(d[z(0xa7)](k));}catch(m){g(m);}}function i(k){const B=a68d;if(B(0xcc)==='KQKlQ')try{j(d[B(0xc7)](k));}catch(l){if('byMab'!==B(0xbe))g(l);else try{i(j[B(0xa7)](k));}catch(o){m(o);}}else c(d);}function j(k){const C=a68d;k[C(0xa9)]?f(k['value']):e(k[C(0xb8)])[C(0xc3)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0xa0;let f=c[d];return f;},a68d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a68D(0xc8)]({'name':'service','aliases':[a68D(0xc1)],'usage':'maka\x20{generate,\x20g}:{service}\x20[service-type]','description':a68D(0xc5),'validArgs':[a68D(0xc9)],'maxArgLength':0x1,'minArgLength':0x1,'examples':['maka\x20g:svc\x20logger']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a68d;try{if(E(0xad)!=='XwLrs'){const c=this[E(0xbb)][E(0xaf)]();this['fsi'][E(0xb1)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const F=E;if('IkNgi'!==F(0xb5))h[F(0xa9)]?i(j[F(0xb8)]):k(l[F(0xb8)])[F(0xc3)](m,n);else{const f=this[F(0xbb)][F(0xa2)]({}),g=paramCase(b[F(0xae)]),h={'name':pascalCase(b['resourceName']),'fileName':g,'camelCase':camelCase(b[F(0xae)]),'type':a[0x0],'engine':c[F(0xce)]['js'],'noRename':!![]};let i='js';c[F(0xce)]['js']==='tsx'&&(i='ts');if(a[0x0]===F(0xc9)){!this[F(0xbb)]['checkNpmPackage']('winston')&&(yield this['fsi'][F(0xaa)]('winston\x20setimmediate',{'cwd':f,'msg':F(0xa8)}));let j=this['fsi'][F(0xa2)]({'pathParts':[F(0xb7),F(0xcd),F(0xbd),F(0xc4),g+'.'+i]});this['fsi'][F(0xca)]({'srcPath':F(0xa3),'destPath':j,'context':h,'config':c});}}}));}else try{i(j[E(0xc7)](k));}catch(f){m(f);}}catch(f){E(0xb3)!==E(0xb3)?d(f[E(0xa7)](f)):Log[E(0xc6)](f);}});});
1
+ const a70x=a70d;(function(a,b){const u=a70d,c=a();while(!![]){try{const d=parseInt(u(0xee))/0x1+-parseInt(u(0xf7))/0x2*(parseInt(u(0xe0))/0x3)+parseInt(u(0xe5))/0x4*(parseInt(u(0xe4))/0x5)+parseInt(u(0xfc))/0x6+parseInt(u(0xf4))/0x7+parseInt(u(0xf5))/0x8*(-parseInt(u(0xe3))/0x9)+parseInt(u(0xf6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x3d7be));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a70d;if(v(0xfe)===v(0xfe)){if(c){if('Attjw'!==v(0xfa)){const e=c[v(0xe6)](b,arguments);return c=null,e;}else{if(e){const g=i['apply'](j,arguments);return k=null,g;}}}}else b='ts';}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const w=a70d;return a70a[w(0x105)]()[w(0x107)](w(0xde))[w(0x105)]()[w(0xf9)](a70a)[w(0x107)](w(0xde));});a70a();var __awaiter=this&&this[a70x(0x100)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const y=a70d;if('FwWcN'===y(0x109))try{i(j[y(0xf2)](k));}catch(i){m(i);}else g(f);});}return new(c||(c=Promise))(function(f,g){const B=a70d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){const z=a70d;try{z(0xeb)!=='woFDC'?j(d[z(0xf2)](k)):d(e['throw'](f));}catch(m){g(m);}}function j(k){const A=a70d;if('VJvOF'==='FHYWS')return f instanceof g?h:new i(function(m){m(k);});else k[A(0xf1)]?f(k['value']):e(k[A(0x108)])['then'](h,i);}j((d=d['apply'](a,b||[]))[B(0xdd)]());});};import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a70c(){const E=['startup','3362653yriCPN','8LjffiB','66540KPTDeo','7388dcAQJT','template','constructor','QRjLj','tsx','1304610iAKcBF','resourceName','mhqXt','withValue','__awaiter','Installing\x20winston','svc','engines','IzPmg','toString','error','search','value','gppuQ','next','(((.+)+)+)+$','services','321yOeiRR','maka\x20{generate,\x20g}:{service}\x20[service-type]','WFAtd','3252222JSoQCW','930155rNRwSZ','4hkciNi','apply','winston\x20setimmediate','lib','logger','fsi','XFLan','create','UcbIX','117955zTDyDb','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','winston','done','throw'];a70c=function(){return E;};return a70c();}function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0xdd;let f=c[d];return f;},a70d(a,b);}Generator[a70x(0xec)]({'name':'service','aliases':[a70x(0x102)],'usage':a70x(0xe1),'description':a70x(0xef),'validArgs':[a70x(0xe9)],'maxArgLength':0x1,'minArgLength':0x1,'examples':['maka\x20g:svc\x20logger']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const C=a70d;try{const c=this[C(0xea)]['getProjectConfig']();this[C(0xea)][C(0xff)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const D=C,d=this[D(0xea)]['pathFromApp']({}),f=paramCase(b[D(0xfd)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[D(0xfd)]),'type':a[0x0],'engine':c[D(0x103)]['js'],'noRename':!![]};let h='js';c['engines']['js']===D(0xfb)&&(h='ts');if(a[0x0]===D(0xe9)){if('ZnWCi'===D(0x104))c(d);else{!this[D(0xea)]['checkNpmPackage'](D(0xf0))&&(D(0xe2)!==D(0xed)?yield this[D(0xea)]['installNpmPackage'](D(0xe7),{'cwd':d,'msg':D(0x101)}):c[D(0x106)](d));let j=this[D(0xea)]['pathFromApp']({'pathParts':['imports',D(0xf3),D(0xe8),D(0xdf),f+'.'+h]});this[D(0xea)][D(0xf8)]({'srcPath':'service/logger/logger.js','destPath':j,'context':g,'config':c});}}}));}catch(d){Log[C(0x106)](d);}});});
@@ -1 +1 @@
1
- function a69c(){var x=['(((.+)+)+)+$','search','constructor','toString','42448tNOseF','2LRfTiZ','2750076pCTeoh','apply','1400787OZvgTs','17059660StvcEE','190127oVwORy','32YXaIWM','859156exsBVt','11724PTKvCH','915rPygdZ'];a69c=function(){return x;};return a69c();}function a69d(a,b){var c=a69c();return a69d=function(d,e){d=d-0x14b;var f=c[d];return f;},a69d(a,b);}(function(a,b){var u=a69d,c=a();while(!![]){try{var d=parseInt(u(0x150))/0x1*(-parseInt(u(0x158))/0x2)+-parseInt(u(0x14c))/0x3+parseInt(u(0x157))/0x4+-parseInt(u(0x152))/0x5*(parseInt(u(0x151))/0x6)+-parseInt(u(0x14e))/0x7*(-parseInt(u(0x14f))/0x8)+parseInt(u(0x159))/0x9+parseInt(u(0x14d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x6d28f));var a69b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a69d;if(c){var e=c[v(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){var w=a69d;return a69a[w(0x156)]()['search'](w(0x153))['toString']()[w(0x155)](a69a)[w(0x154)](w(0x153));});a69a();import'./translation.js';import'./openssl.js';
1
+ function a71c(){var w=['474798CDruhl','25572gFJeia','2738fzbWFA','toString','169910QoqBBZ','(((.+)+)+)+$','20032cHHJJj','69QDvfzK','search','7655626MlYMzO','693gWiBRJ','15GkiMSu','2413719VfxSxr','17VKWsBz'];a71c=function(){return w;};return a71c();}(function(a,b){var u=a71d,c=a();while(!![]){try{var d=parseInt(u(0x100))/0x1*(-parseInt(u(0x103))/0x2)+parseInt(u(0x108))/0x3*(-parseInt(u(0x102))/0x4)+parseInt(u(0xfe))/0x5*(-parseInt(u(0x101))/0x6)+parseInt(u(0xfd))/0x7*(-parseInt(u(0x107))/0x8)+parseInt(u(0xff))/0x9+-parseInt(u(0x105))/0xa+parseInt(u(0xfc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x472e7));var a71b=(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;};}()),a71a=a71b(this,function(){var v=a71d;return a71a[v(0x104)]()[v(0xfb)](v(0x106))['toString']()['constructor'](a71a)[v(0xfb)]('(((.+)+)+)+$');});a71a();function a71d(a,b){var c=a71c();return a71d=function(d,e){d=d-0xfb;var f=c[d];return f;},a71d(a,b);}import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- const a70y=a70d;(function(a,b){const v=a70d,c=a();while(!![]){try{const d=-parseInt(v(0x104))/0x1+parseInt(v(0xf4))/0x2+parseInt(v(0x100))/0x3*(-parseInt(v(0x106))/0x4)+-parseInt(v(0xf5))/0x5*(-parseInt(v(0x10d))/0x6)+parseInt(v(0xfd))/0x7*(-parseInt(v(0xe9))/0x8)+parseInt(v(0x103))/0x9*(parseInt(v(0x102))/0xa)+parseInt(v(0xeb))/0xb*(-parseInt(v(0x101))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xc6997));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a70d;if(c){const e=c[w(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const x=a70d;return a70a[x(0xf9)]()[x(0xfa)]('(((.+)+)+)+$')['toString']()['constructor'](a70a)[x(0xfa)](x(0xf1));});function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0xe9;let f=c[d];return f;},a70d(a,b);}a70a();var __awaiter=this&&this[a70y(0xee)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a70d;z(0x109)!==z(0x109)?c(d):g(f);});}return new(c||(c=Promise))(function(f,g){const D=a70d;function h(k){const A=a70d;try{j(d[A(0xfb)](k));}catch(l){g(l);}}function i(k){const B=a70d;try{B(0xf6)==='iLkso'?h[B(0xef)]?i(j[B(0x10b)]):k(l[B(0x10b)])['then'](m,n):j(d[B(0x10c)](k));}catch(m){g(m);}}function j(k){const C=a70d;k[C(0xef)]?f(k['value']):e(k[C(0x10b)])['then'](h,i);}j((d=d[D(0x10a)](a,b||[]))[D(0xfb)]());});};function a70c(){const G=['maka\x20g:sslconfig\x20--env\x20dev','create','AXRMa','apply','value','throw','858KpqpGT','env','16vpLJXC','pCMqQ','2254813pbQiKK','fsi','getGlobalConfig','__awaiter','done','yiWcW','(((.+)+)+)+$','Generate\x20a\x20new\x20openssl\x20config\x20file','join','2708348YTWqHU','51365KgjWvx','fnDyR','service','withValue','toString','search','next','error','687638gRQnXa','openssl/openssl.conf','getConfigPath','69RxOjrO','12VfGNZI','10ksZegs','7133823qgCCOf','1181141nTKiKN','appName','212140ohfgDi'];a70c=function(){return G;};return a70c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a70u from'path';Generator[a70y(0x108)]({'name':'sslconfig','usage':'maka\x20{generate,\x20g}:sslconfig','description':a70y(0xf2),'noResource':!![],'requiredOpts':['env'],'examples':[a70y(0x107)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a70d;try{const c=yield this[E(0xec)]['getProjectConfig'](),d=yield this['fsi'][E(0xed)](),f=this[E(0xec)][E(0xff)](b[E(0x10e)]),g=a70u[E(0xf3)](f,'_keys','openssl.conf');yield this['fsi'][E(0xf8)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const F=E;if(F(0xea)!=='pCMqQ')return f instanceof g?h:new i(function(m){m(k);});else{let i={'app':d[F(0x105)],'noRename':!![]};yield this[F(0xec)]['template']({'srcPath':F(0xfe),'destPath':g,'framework':F(0xf7),'context':i,'config':c});}}));}catch(h){if(E(0xf0)!=='yiWcW')try{i(j[E(0x10c)](k));}catch(j){m(j);}else Log[E(0xfc)](h);}});});
1
+ const a72z=a72d;function a72c(){const H=['3667005OPGRNN','openssl/openssl.conf','552888UdZPrL','lHfuf','appName','env','constructor','throw','then','FGYrX','getGlobalConfig','3381730riVcyn','sslconfig','service','search','__awaiter','(((.+)+)+)+$','maka\x20g:sslconfig\x20--env\x20dev','oHHjI','Generate\x20a\x20new\x20openssl\x20config\x20file','JlDlN','XCvMT','TnNSv','3565667nykhZI','fsi','next','1639776kZjfjQ','create','GLbgT','519SfBpce','9684eNLsla','error','done','1238639Mkepmi','Tfwqk','apply','btczr','getConfigPath','toString','template','maka\x20{generate,\x20g}:sslconfig','getProjectConfig','value','HNAVW','_keys'];a72c=function(){return H;};return a72c();}(function(a,b){const v=a72d,c=a();while(!![]){try{const d=-parseInt(v(0x1c7))/0x1+parseInt(v(0x1de))/0x2+parseInt(v(0x1c3))/0x3*(parseInt(v(0x1c4))/0x4)+parseInt(v(0x1d3))/0x5+-parseInt(v(0x1c0))/0x6+-parseInt(v(0x1bd))/0x7+parseInt(v(0x1d5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0xd980e));const a72b=(function(){let a=!![];return function(b,c){const w=a72d;if('btczr'!==w(0x1ca))c(d);else{const e=a?function(){const x=w;if(c){if('DZnkl'!=='DZnkl')try{i(j[x(0x1da)](k));}catch(g){m(g);}else{const g=c[x(0x1c9)](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a72a=a72b(this,function(){const y=a72d;return a72a[y(0x1cc)]()['search'](y(0x1e3))[y(0x1cc)]()[y(0x1d9)](a72a)[y(0x1e1)](y(0x1e3));});a72a();var __awaiter=this&&this[a72z(0x1e2)]||function(a,b,c,d){function e(f){const A=a72d;if(A(0x1d6)===A(0x1dc))c(d);else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const E=a72d;function h(k){const B=a72d;try{j(d['next'](k));}catch(l){B(0x1b8)!==B(0x1ba)?g(l):c[B(0x1c5)](d);}}function i(k){const C=a72d;if(C(0x1bb)===C(0x1d1))return c['toString']()[C(0x1e1)]('(((.+)+)+)+$')[C(0x1cc)]()[C(0x1d9)](d)[C(0x1e1)](C(0x1e3));else try{if(C(0x1bc)!==C(0x1bc))try{i(j['next'](k));}catch(o){m(o);}else j(d[C(0x1da)](k));}catch(n){g(n);}}function j(k){const D=a72d;k[D(0x1c6)]?f(k[D(0x1d0)]):e(k[D(0x1d0)])[D(0x1db)](h,i);}j((d=d[E(0x1c9)](a,b||[]))[E(0x1bf)]());});};import{Generator}from'../../generator.js';function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0x1b8;let f=c[d];return f;},a72d(a,b);}import{Log}from'../../tools/log/log.class.js';import a72u from'path';Generator[a72z(0x1c1)]({'name':a72z(0x1df),'usage':a72z(0x1ce),'description':a72z(0x1b9),'noResource':!![],'requiredOpts':[a72z(0x1d8)],'examples':[a72z(0x1e4)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a72d;try{if(F(0x1c8)!==F(0x1c2)){const c=yield this[F(0x1be)][F(0x1cf)](),d=yield this[F(0x1be)][F(0x1dd)](),f=this[F(0x1be)][F(0x1cb)](b['env']),g=a72u['join'](f,F(0x1d2),'openssl.conf');yield this[F(0x1be)]['withValue'](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const G=F;let h={'app':d[G(0x1d7)],'noRename':!![]};yield this[G(0x1be)][G(0x1cd)]({'srcPath':G(0x1d4),'destPath':g,'framework':G(0x1e0),'context':h,'config':c});}));}else c(d);}catch(i){Log[F(0x1c5)](i);}});});
@@ -1 +1 @@
1
- const a71H=a71d;(function(a,b){const E=a71d,c=a();while(!![]){try{const d=-parseInt(E(0x1a6))/0x1*(-parseInt(E(0x1bd))/0x2)+parseInt(E(0x18c))/0x3+-parseInt(E(0x1a3))/0x4*(-parseInt(E(0x17b))/0x5)+parseInt(E(0x186))/0x6+parseInt(E(0x176))/0x7*(parseInt(E(0x184))/0x8)+parseInt(E(0x1bb))/0x9*(-parseInt(E(0x197))/0xa)+-parseInt(E(0x1b4))/0xb*(parseInt(E(0x1a7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0xea847));function a71c(){const K=['engines','Generate\x20a\x20new\x20locale\x20translation','i18n/i18n.js','.js','startup','lang','installNpmPackage','(((.+)+)+)+$','1060WKmbLF','toString','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','7734bcHuhc','348XIEZMj','import\x20\x27../lib/services/translations/i18n\x27;','Locale\x20already\x20exported:\x20','search','apply','service','root','true','translations','warn','injectAtBeginningOfFile','translation','DGpoq','592790HZFVIc','setProjectConfig','findProjectDirectory','features.withTranslations','rewriteDestinationPathForEngine','error','getGlobalConfig','279hAUokC','index.','2wUTNOD','locales','59724SXxfnx','server','lib','Locale\x20already\x20defined:\x20','iQNFk','13025DNjaTR','index.js','bIFnu','isFile','jBOCt','template','i18n.js','\x20}\x20from\x20\x27./','client','32hukDpS','grep','11429904jtUsYZ','readFileSync','maka\x20g:translation\x20--lang=de','findAppDirectory','nEymn','i18next\x20i18next-browser-languagedetector\x20react-i18next','985032MXoSbe','maka\x20{generate,\x20g}:translation\x20--lang=<language>','fsi','withValue','services','default\x20as\x20','import\x20\x27../lib/services/translations/i18n\x27;\x0a','appName','exit','aTvZX','pathFromApp','142620myNUvs','checkNpmPackage','create','imports'];a71c=function(){return K;};return a71c();}const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a71d;if(c){if(F(0x18a)!=='LsvSw'){const e=c[F(0x1ab)](b,arguments);return c=null,e;}else d[F(0x1b9)](e),f[F(0x194)](0x1);}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const G=a71d;return a71a[G(0x1a4)]()['search'](G(0x1a2))[G(0x1a4)]()['constructor'](a71a)[G(0x1aa)]('(((.+)+)+)+$');});a71a();function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x176;let f=c[d];return f;},a71d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a71u from'fs';Generator[a71H(0x199)]({'name':a71H(0x1b2),'usage':a71H(0x18d),'aliases':['i18n'],'description':a71H(0x19c),'noResource':!![],'examples':['maka\x20g:translation\x20--lang=en\x20(default)','maka\x20g:translation\x20--lang=fr',a71H(0x188)]},function(a,b){const I=a71H;try{const c=this[I(0x18e)]['getProjectConfig'](),d=this[I(0x18e)][I(0x1ba)](),f=this[I(0x18e)][I(0x1b6)](),g=this[I(0x18e)][I(0x189)]();this[I(0x18e)][I(0x18f)](c,()=>{const J=I;try{if(J(0x17f)===J(0x17f)){!b[J(0x1a0)]&&(b[J(0x1a0)]='en');!b[J(0x1ad)]&&!this[J(0x18e)][J(0x198)]('i18next')&&(Log[J(0x1b0)](J(0x1a5)),this[J(0x18e)][J(0x1a1)](J(0x18b),{'cwd':g}),this[J(0x18e)][J(0x1b5)](J(0x1b7),!![]));const h=this[J(0x18e)][J(0x196)]({'pathParts':[J(0x19a),J(0x19f),J(0x183),J(0x17c)]}),i=this['fsi'][J(0x1b8)]({'pathParts':[h],'config':c}),j=this[J(0x18e)][J(0x185)](a71u[J(0x187)](i)[J(0x1a4)](),J(0x1a8))[0x0]&&!![];if(c[J(0x19b)]['ssr']===J(0x1ae)){!j&&this['fsi'][J(0x1b1)]({'filePath':i,'content':J(0x192)});const u=this[J(0x18e)][J(0x196)]({'pathParts':[J(0x19a),J(0x19f),J(0x177),J(0x17c)]}),v=this[J(0x18e)][J(0x1b8)]({'pathParts':[u],'config':c}),w=this['fsi'][J(0x185)](a71u[J(0x187)](v)[J(0x1a4)](),J(0x1a8))[0x0]&&!![];!w&&this[J(0x18e)]['injectAtBeginningOfFile']({'filePath':v,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!j&&this['fsi']['injectAtBeginningOfFile']({'filePath':i,'content':J(0x192)});let k={'app':d[J(0x193)],'config':c};const l=this[J(0x18e)]['pathFromApp']({'pathParts':[J(0x19a),'startup',J(0x178),J(0x190),J(0x1af),J(0x181)]}),m=this[J(0x18e)][J(0x17e)](this[J(0x18e)][J(0x1b8)]({'pathParts':[l],'config':c}));!m&&(J(0x1b3)!==J(0x1b3)?this[J(0x18e)][J(0x1b1)]({'filePath':b,'content':J(0x192)}):this[J(0x18e)]['template']({'srcPath':J(0x19d),'destPath':l,'framework':J(0x1ac),'context':k,'config':c}));const n=this['fsi'][J(0x196)]({'pathParts':[J(0x19a),J(0x19f),J(0x178),J(0x190),'translations',J(0x1be),b[J(0x1a0)]+J(0x19e)]}),o=this[J(0x18e)][J(0x1b8)]({'pathParts':[n],'config':c}),p=this[J(0x18e)][J(0x17e)](o);!p?this['fsi'][J(0x180)]({'srcPath':'i18n/locales.js','destPath':n,'framework':'service','context':k,'config':c}):J(0x17d)!=='bIFnu'?c[J(0x1b0)](J(0x179)+d):Log['warn'](J(0x179)+o);const q=this['fsi'][J(0x196)]({'pathParts':[J(0x19a),'startup','lib','services',J(0x1af),J(0x1be),J(0x1bc)+c['engines']['js']]}),r=this[J(0x18e)][J(0x1b8)]({'pathParts':[q],'config':c}),s=this[J(0x18e)][J(0x17e)](r);!s&&(J(0x17a)===J(0x17a)?this[J(0x18e)][J(0x180)]({'srcPath':'i18n/index.js','destPath':q,'framework':J(0x1ac),'context':k,'config':c}):!c&&this[J(0x18e)][J(0x1b1)]({'filePath':e,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'}));const t=this[J(0x18e)]['grep'](a71u[J(0x187)](q)['toString'](),J(0x191)+b[J(0x1a0)])[0x0]&&!![];!t?this[J(0x18e)]['injectAtEndOfFile']({'filePath':q,'content':'export\x20{\x20default\x20as\x20'+b['lang']+J(0x182)+b[J(0x1a0)]+'\x27;'}):Log[J(0x1b0)](J(0x1a9)+q);}else b[J(0x1a0)]='en';}catch(B){if(J(0x195)!==J(0x195)){const D=d[J(0x1ab)](B,arguments);return f=null,D;}else Log[J(0x1b9)](B),process[J(0x194)](0x1);}});}catch(h){Log[I(0x1b9)](h),process['exit'](0x1);}});
1
+ function a73c(){const J=['i18next','maka\x20{generate,\x20g}:translation\x20--lang=<language>','translation','translations','import\x20\x27../lib/services/translations/i18n\x27;\x0a','fsi','startup','Locale\x20already\x20exported:\x20','i18n/locales.js','getProjectConfig','rewriteDestinationPathForEngine','cUQqG','toString','rEpgv','lib','i18n.js','.js','getGlobalConfig','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','840YsSweQ','server','4652840DybpXN','export\x20{\x20default\x20as\x20','maka\x20g:translation\x20--lang=de','services','337611aIaicz','default\x20as\x20','apply','7amwuIu','maka\x20g:translation\x20--lang=en\x20(default)','injectAtBeginningOfFile','findProjectDirectory','warn','import\x20\x27../lib/services/translations/i18n\x27;','template','lang','24798BJVBmZ','create','643449CvXtSs','3055956OdGnAU','setProjectConfig','(((.+)+)+)+$','i18n','withValue','i18next\x20i18next-browser-languagedetector\x20react-i18next','search','index.','root','readFileSync','engines','zGgWR','error','constructor','true','10947645EHhRWS','features.withTranslations','locales','pathFromApp','client','vucao','isFile','service','injectAtEndOfFile','grep','exit','jVzBR','762042CiCCcW','index.js','installNpmPackage','imports'];a73c=function(){return J;};return a73c();}function a73d(a,b){const c=a73c();return a73d=function(d,e){d=d-0x13c;let f=c[d];return f;},a73d(a,b);}const a73G=a73d;(function(a,b){const D=a73d,c=a();while(!![]){try{const d=-parseInt(D(0x140))/0x1+parseInt(D(0x15c))/0x2+parseInt(D(0x179))/0x3+-parseInt(D(0x141))/0x4+-parseInt(D(0x173))/0x5*(-parseInt(D(0x13e))/0x6)+-parseInt(D(0x17c))/0x7*(parseInt(D(0x175))/0x8)+parseInt(D(0x150))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0x65620));const a73b=(function(){let a=!![];return function(b,c){const d=a?function(){const E=a73d;if(c){const e=c[E(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a73a=a73b(this,function(){const F=a73d;return a73a[F(0x16c)]()[F(0x147)](F(0x143))[F(0x16c)]()[F(0x14e)](a73a)[F(0x147)]('(((.+)+)+)+$');});a73a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a73u from'fs';Generator[a73G(0x13f)]({'name':a73G(0x162),'usage':a73G(0x161),'aliases':[a73G(0x144)],'description':'Generate\x20a\x20new\x20locale\x20translation','noResource':!![],'examples':[a73G(0x17d),'maka\x20g:translation\x20--lang=fr',a73G(0x177)]},function(a,b){const H=a73G;try{if(H(0x15b)!==H(0x15b))d[H(0x14d)](e),f[H(0x15a)](0x1);else{const d=this[H(0x165)][H(0x169)](),f=this[H(0x165)][H(0x171)](),g=this[H(0x165)][H(0x17f)](),h=this[H(0x165)]['findAppDirectory']();this[H(0x165)][H(0x145)](d,()=>{const I=H;try{!b[I(0x13d)]&&(b[I(0x13d)]='en');if(!b[I(0x149)]&&!this[I(0x165)]['checkNpmPackage'](I(0x160))){if(I(0x14c)===I(0x14c))Log[I(0x180)](I(0x172)),this[I(0x165)][I(0x15e)](I(0x146),{'cwd':h}),this[I(0x165)][I(0x142)](I(0x151),!![]);else{!e&&this[I(0x165)][I(0x17e)]({'filePath':i,'content':I(0x164)});const w=this[I(0x165)][I(0x153)]({'pathParts':[I(0x15f),I(0x166),I(0x174),I(0x15d)]}),x=this[I(0x165)][I(0x16a)]({'pathParts':[w],'config':g}),y=this[I(0x165)][I(0x159)](h[I(0x14a)](x)[I(0x16c)](),I(0x181))[0x0]&&!![];!y&&this[I(0x165)]['injectAtBeginningOfFile']({'filePath':x,'content':I(0x164)});}}const i=this[I(0x165)]['pathFromApp']({'pathParts':[I(0x15f),I(0x166),I(0x154),I(0x15d)]}),j=this['fsi'][I(0x16a)]({'pathParts':[i],'config':d}),k=this[I(0x165)][I(0x159)](a73u[I(0x14a)](j)[I(0x16c)](),I(0x181))[0x0]&&!![];if(d['engines']['ssr']===I(0x14f)){!k&&this[I(0x165)][I(0x17e)]({'filePath':j,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const w=this[I(0x165)]['pathFromApp']({'pathParts':[I(0x15f),I(0x166),'server',I(0x15d)]}),x=this[I(0x165)][I(0x16a)]({'pathParts':[w],'config':d}),y=this[I(0x165)]['grep'](a73u[I(0x14a)](x)['toString'](),I(0x181))[0x0]&&!![];!y&&this[I(0x165)]['injectAtBeginningOfFile']({'filePath':x,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!k&&this['fsi'][I(0x17e)]({'filePath':j,'content':I(0x164)});let l={'app':f['appName'],'config':d};const m=this['fsi']['pathFromApp']({'pathParts':[I(0x15f),I(0x166),I(0x16e),'services','translations',I(0x16f)]}),n=this[I(0x165)][I(0x156)](this[I(0x165)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':d}));!n&&('BnPJZ'!=='BnPJZ'?c[I(0x180)]('Locale\x20already\x20exported:\x20'+d):this['fsi'][I(0x13c)]({'srcPath':'i18n/i18n.js','destPath':m,'framework':I(0x157),'context':l,'config':d}));const o=this[I(0x165)][I(0x153)]({'pathParts':[I(0x15f),I(0x166),I(0x16e),'services',I(0x163),I(0x152),b[I(0x13d)]+I(0x170)]}),p=this[I(0x165)][I(0x16a)]({'pathParts':[o],'config':d}),q=this[I(0x165)][I(0x156)](p);if(!q)this['fsi'][I(0x13c)]({'srcPath':I(0x168),'destPath':o,'framework':I(0x157),'context':l,'config':d});else{if(I(0x16d)!==I(0x155))Log['warn']('Locale\x20already\x20defined:\x20'+p);else return c[I(0x16c)]()['search'](I(0x143))[I(0x16c)]()['constructor'](d)[I(0x147)](I(0x143));}const r=this[I(0x165)]['pathFromApp']({'pathParts':['imports',I(0x166),I(0x16e),I(0x178),'translations',I(0x152),I(0x148)+d[I(0x14b)]['js']]}),s=this[I(0x165)]['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d}),t=this['fsi']['isFile'](s);!t&&(I(0x16b)!==I(0x16b)?(d['error'](e),f[I(0x15a)](0x1)):this['fsi'][I(0x13c)]({'srcPath':'i18n/index.js','destPath':r,'framework':I(0x157),'context':l,'config':d}));const u=this['fsi'][I(0x159)](a73u[I(0x14a)](r)['toString'](),I(0x17a)+b['lang'])[0x0]&&!![];!u?this['fsi'][I(0x158)]({'filePath':r,'content':I(0x176)+b['lang']+'\x20}\x20from\x20\x27./'+b[I(0x13d)]+'\x27;'}):Log[I(0x180)](I(0x167)+r);}catch(C){Log[I(0x14d)](C),process['exit'](0x1);}});}}catch(i){Log[H(0x14d)](i),process[H(0x15a)](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
- function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0xe4;let f=c[d];return f;},a72d(a,b);}const a72B=a72d;(function(a,b){const z=a72d,c=a();while(!![]){try{const d=parseInt(z(0xe9))/0x1+parseInt(z(0xe5))/0x2+-parseInt(z(0xf2))/0x3*(-parseInt(z(0xeb))/0x4)+-parseInt(z(0xf8))/0x5*(parseInt(z(0xee))/0x6)+parseInt(z(0xfe))/0x7+parseInt(z(0xe6))/0x8*(parseInt(z(0xf4))/0x9)+parseInt(z(0xf7))/0xa*(-parseInt(z(0xe4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0xa78c1));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 A=a72d;return a72a[A(0xfd)]()[A(0xe8)](A(0xf0))[A(0xfd)]()[A(0xf6)](a72a)[A(0xe8)](A(0xf0));});a72a();import a72u from'minimist';import a72v from'os';import a72w from'path';import a72x from'humps';import a72y from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a72B(0xf3)]),__dirname=a72w[a72B(0xef)](__filename);global[a72B(0xec)]=__dirname;let total_memory=a72v[a72B(0xfc)](),total_mem_in_kb=total_memory/0x400,total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a72B(0xe7)](total_mem_in_mb),process[a72B(0xf1)][a72B(0xfa)]='--max-old-space-size='+total_mem_in_mb,process['env']['BROWSERSLIST_IGNORE_OLD_DATA']='1';const argv=a72u(process[a72B(0xea)][a72B(0xf9)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a72B(0xf5)](argv));delete deepCopyArgv['_'];const opts=a72x[a72B(0xed)](deepCopyArgv);function a72c(){const C=['stringify','constructor','9563130zmaCZV','20okkjcX','slice','TOOL_NODE_FLAGS','run','totalmem','toString','2638020dFbYGw','33PCsUQO','2193832PUSmFJ','83152nQKRxQ','floor','search','1300644BFffsw','argv','492SsRLXf','MAKA_COMMAND_PATH','camelizeKeys','820818jYULWt','dirname','(((.+)+)+)+$','env','14898qgueXt','url','621brCghx'];a72c=function(){return C;};return a72c();}a72y[a72B(0xfb)](args,opts);
2
+ const a74C=a74d;(function(a,b){const z=a74d,c=a();while(!![]){try{const d=parseInt(z(0x81))/0x1*(-parseInt(z(0x85))/0x2)+parseInt(z(0x7f))/0x3*(-parseInt(z(0x8e))/0x4)+parseInt(z(0x74))/0x5+-parseInt(z(0x89))/0x6*(parseInt(z(0x8b))/0x7)+parseInt(z(0x86))/0x8+-parseInt(z(0x82))/0x9+parseInt(z(0x77))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0xe35f5));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a74d;if(c){const e=c[A(0x75)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const B=a74d;return a74a[B(0x7d)]()['search'](B(0x7c))[B(0x7d)]()[B(0x8c)](a74a)[B(0x7e)]('(((.+)+)+)+$');});a74a();import a74u from'minimist';import a74v from'os';function a74c(){const D=['apply','BROWSERSLIST_IGNORE_OLD_DATA','21472960AFWKfp','env','floor','stringify','url','(((.+)+)+)+$','toString','search','1419jUNvzy','argv','231245lxKZVh','2391318mvLjXK','MAKA_COMMAND_PATH','camelizeKeys','16pOitGy','13381848nUzPnS','--max-old-space-size=','slice','6ztwqIi','totalmem','7142303ZngsVQ','constructor','TOOL_NODE_FLAGS','5800ZODkOl','4665655elcdtI'];a74c=function(){return D;};return a74c();}import a74w from'path';import a74x from'humps';import a74y from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a74C(0x7b)]),__dirname=a74w['dirname'](__filename);global[a74C(0x83)]=__dirname;function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x74;let f=c[d];return f;},a74d(a,b);}let total_memory=a74v[a74C(0x8a)](),total_mem_in_kb=total_memory/0x400,total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a74C(0x79)](total_mem_in_mb),process[a74C(0x78)][a74C(0x8d)]=a74C(0x87)+total_mem_in_mb,process[a74C(0x78)][a74C(0x76)]='1';const argv=a74u(process[a74C(0x80)][a74C(0x88)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a74C(0x7a)](argv));delete deepCopyArgv['_'];const opts=a74x[a74C(0x84)](deepCopyArgv);a74y['run'](args,opts);
package/dist/tool.js CHANGED
@@ -1 +1 @@
1
- function a73d(a,b){var c=a73c();return a73d=function(d,e){d=d-0xd9;var f=c[d];return f;},a73d(a,b);}(function(a,b){var v=a73d,c=a();while(!![]){try{var d=parseInt(v(0xe2))/0x1+parseInt(v(0xea))/0x2*(parseInt(v(0xe4))/0x3)+parseInt(v(0xdf))/0x4*(parseInt(v(0xe7))/0x5)+-parseInt(v(0xe8))/0x6+parseInt(v(0xe3))/0x7+-parseInt(v(0xe0))/0x8+-parseInt(v(0xe5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0xab1cc));var a73b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a73d;if('mfEHn'!==w(0xd9))this['docker']=new c(),this['fsi']=new d();else{if(c){if(w(0xeb)!==w(0xdd)){var e=c[w(0xe9)](b,arguments);return c=null,e;}else{var h=g?function(){if(h){var u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],h;}}}}:function(){};return a=![],d;};}()),a73a=a73b(this,function(){var x=a73d;return a73a[x(0xdc)]()[x(0xda)](x(0xe1))[x(0xdc)]()[x(0xe6)](a73a)[x(0xda)](x(0xe1));});a73a();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a73c(){var z=['5vMyofj','5227020GcdNiz','apply','1295828ppMvhd','nCvFN','mfEHn','search','fsi','toString','pBpmA','docker','3875644BpoadR','3236736AnxmtP','(((.+)+)+)+$','472513Stqwne','5966100klNaQY','3IfcHjb','8685000xNUits','constructor'];a73c=function(){return z;};return a73c();}export class Tool{constructor(){var y=a73d;this[y(0xde)]=new Docker(),this[y(0xdb)]=new FSI();}}
1
+ (function(a,b){var u=a75d,c=a();while(!![]){try{var d=-parseInt(u(0x1e4))/0x1+parseInt(u(0x1d6))/0x2*(parseInt(u(0x1e5))/0x3)+parseInt(u(0x1e0))/0x4+-parseInt(u(0x1de))/0x5*(parseInt(u(0x1d7))/0x6)+parseInt(u(0x1dd))/0x7*(-parseInt(u(0x1da))/0x8)+parseInt(u(0x1d8))/0x9+-parseInt(u(0x1dc))/0xa*(-parseInt(u(0x1e3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0x899e1));function a75c(){var y=['22qCdBvM','225024HOMEvA','68427SJMriq','(((.+)+)+)+$','search','apply','14JxwKdl','1128ozpKVU','5763141FERYhu','XvHYA','472hLFSIV','docker','1370560UfKHod','65359TVlBye','1295tmsLMH','toString','1256624EtySrx','constructor','fsi'];a75c=function(){return y;};return a75c();}var a75b=(function(){var a=!![];return function(b,c){var v=a75d;if(v(0x1d9)!==v(0x1d9)){var f=d[v(0x1d5)](e,arguments);return f=null,f;}else{var d=a?function(){if(c){var f=c['apply'](b,arguments);return c=null,f;}}:function(){};return a=![],d;}};}()),a75a=a75b(this,function(){var w=a75d;return a75a[w(0x1df)]()[w(0x1e7)](w(0x1e6))[w(0x1df)]()[w(0x1e1)](a75a)[w(0x1e7)]('(((.+)+)+)+$');});a75a();import{Docker}from'./tools/docker/docker.class.js';function a75d(a,b){var c=a75c();return a75d=function(d,e){d=d-0x1d5;var f=c[d];return f;},a75d(a,b);}import{FSI}from'./tools/fsi/fsi.class.js';export class Tool{constructor(){var x=a75d;this[x(0x1db)]=new Docker(),this[x(0x1e2)]=new FSI();}}
@@ -1 +1 @@
1
- const a74D=a74d;function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x68;let f=c[d];return f;},a74d(a,b);}(function(a,b){const v=a74d,c=a();while(!![]){try{const d=-parseInt(v(0x7c))/0x1*(-parseInt(v(0x6f))/0x2)+parseInt(v(0x73))/0x3+parseInt(v(0x68))/0x4*(-parseInt(v(0x6b))/0x5)+parseInt(v(0x6d))/0x6+parseInt(v(0x80))/0x7+-parseInt(v(0x7a))/0x8+-parseInt(v(0x6a))/0x9*(parseInt(v(0x69))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0xaa44c));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a74d;if(c){const e=c[w(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const x=a74d;return a74a[x(0x75)]()[x(0x7f)]('(((.+)+)+)+$')['toString']()[x(0x74)](a74a)[x(0x7f)](x(0x71));});a74a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const y=a74d;if(y(0x70)!=='OnXQe')c(d);else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const B=a74d;function h(k){const z=a74d;try{j(d[z(0x72)](k));}catch(l){if(z(0x78)===z(0x78))g(l);else try{i(j[z(0x72)](k));}catch(o){m(o);}}}function i(k){if('rGkxI'==='rGkxI')try{j(d['throw'](k));}catch(l){g(l);}else c(d);}function j(k){const A=a74d;k[A(0x77)]?f(k['value']):e(k[A(0x76)])['then'](h,i);}j((d=d[B(0x81)](a,b||[]))[B(0x72)]());});};function a74c(){const F=['input','514456SOEhTy','answer','320139QkLtZQ','confirm','options','search','6237875GxIPBY','apply','1128XpdlkQ','1881410cFUkSz','117uJQVwz','10255rKyXIh','icmdT','8124096PXFwSq','prompt','8Acdnge','OnXQe','(((.+)+)+)+$','next','780735oQQInI','constructor','toString','value','done','pnIuq'];a74c=function(){return F;};return a74c();}import a74u from'inquirer';export class Actions{constructor(){}static['ask'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const C=a74d,{answer:c}=yield a74u[C(0x6e)]({'type':b?'password':C(0x79),'name':C(0x7b),'message':a});return c;});}static[a74D(0x7d)](a,b=![]){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a74d;if('icmdT'!==E(0x6c))return c[E(0x75)]()[E(0x7f)](E(0x71))[E(0x75)]()[E(0x74)](d)[E(0x7f)]('(((.+)+)+)+$');else{const {answer:d}=yield a74u['prompt']({'type':E(0x7d),'name':'answer','message':a,'default':b});return d;}});}static[a74D(0x7e)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const b=yield a74u['prompt'](a);return b;});}}
1
+ const a76y=a76d;function a76c(){const H=['Mgici','10FvXsKL','toString','(((.+)+)+)+$','27oUCDsT','apply','answer','sRAoK','ask','IfbEw','785190OKLrqt','throw','748DhiYuO','316yRtktX','input','constructor','CuyGL','VkGkR','26457SVunfW','value','6719010qBtCOt','56950gBqPBB','confirm','6hIitHR','qOqjV','3484348dcCrTu','1093816fafoQP','password','options','next','jVZJv','search','done','160368MMnXao','TbacD','prompt','__awaiter'];a76c=function(){return H;};return a76c();}(function(a,b){const v=a76d,c=a();while(!![]){try{const d=-parseInt(v(0x156))/0x1*(parseInt(v(0x154))/0x2)+-parseInt(v(0x151))/0x3*(parseInt(v(0x171))/0x4)+-parseInt(v(0x165))/0x5*(parseInt(v(0x16e))/0x6)+parseInt(v(0x158))/0x7+parseInt(v(0x159))/0x8*(-parseInt(v(0x168))/0x9)+parseInt(v(0x153))/0xa+-parseInt(v(0x170))/0xb*(-parseInt(v(0x160))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0x8394b));const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a76d;if(w(0x15d)===w(0x150))c(d);else{if(c){const f=c[w(0x169)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const x=a76d;return a76a[x(0x166)]()['search'](x(0x167))[x(0x166)]()[x(0x173)](a76a)[x(0x15e)](x(0x167));});function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x14f;let f=c[d];return f;},a76d(a,b);}a76a();var __awaiter=this&&this[a76y(0x163)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a76d;if(z(0x14f)==='PMbbI'){if(e){const i=i[z(0x169)](j,arguments);return k=null,i;}}else g(f);});}return new(c||(c=Promise))(function(f,g){const D=a76d;function h(k){const A=a76d;if(A(0x157)!==A(0x16d))try{j(d[A(0x15c)](k));}catch(l){A(0x161)!==A(0x161)?c(d):g(l);}else try{i(j['throw'](k));}catch(o){m(o);}}function i(k){const B=a76d;try{B(0x164)!==B(0x164)?d(e[B(0x15c)](f)):j(d[B(0x16f)](k));}catch(m){g(m);}}function j(k){const C=a76d;'dnXbB'!=='dnXbB'?c(d):k[C(0x15f)]?f(k[C(0x152)]):e(k[C(0x152)])['then'](h,i);}j((d=d[D(0x169)](a,b||[]))[D(0x15c)]());});};import a76u from'inquirer';export class Actions{constructor(){}static[a76y(0x16c)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a76d,{answer:c}=yield a76u[E(0x162)]({'type':b?E(0x15a):E(0x172),'name':'answer','message':a});return c;});}static['confirm'](a,b=![]){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a76d;if('sRAoK'!==F(0x16b))try{i(j[F(0x15c)](k));}catch(d){m(d);}else{const {answer:d}=yield a76u[F(0x162)]({'type':F(0x155),'name':F(0x16a),'message':a,'default':b});return d;}});}static[a76y(0x15b)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a76d,b=yield a76u[G(0x162)](a);return b;});}}
@@ -1 +1 @@
1
- const a75y=a75d;(function(a,b){const v=a75d,c=a();while(!![]){try{const d=parseInt(v(0x208))/0x1*(parseInt(v(0x20a))/0x2)+-parseInt(v(0x1fd))/0x3+parseInt(v(0x1f9))/0x4*(parseInt(v(0x204))/0x5)+parseInt(v(0x201))/0x6*(-parseInt(v(0x20c))/0x7)+parseInt(v(0x1f5))/0x8+-parseInt(v(0x1ff))/0x9*(parseInt(v(0x1fa))/0xa)+parseInt(v(0x20d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0xbef8a));const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a75d;if('JAqgM'===w(0x209)){if(c){const e=c[w(0x20b)](b,arguments);return c=null,e;}}else c(d);}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const x=a75d;return a75a[x(0x1fe)]()[x(0x1f3)]('(((.+)+)+)+$')['toString']()['constructor'](a75a)[x(0x1f3)](x(0x200));});function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a75d(a,b);}a75a();var __awaiter=this&&this[a75y(0x1f7)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a75d;if(z(0x1f6)===z(0x1f6))g(f);else try{i(j['throw'](k));}catch(i){m(i);}});}return new(c||(c=Promise))(function(f,g){const E=a75d;function h(k){const A=a75d;try{j(d[A(0x1fb)](k));}catch(l){if(A(0x1fc)!==A(0x207))g(l);else{const n=g?function(){const B=A;if(n){const u=q[B(0x20b)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}}function i(k){const C=a75d;try{j(d[C(0x206)](k));}catch(l){g(l);}}function j(k){const D=a75d;k[D(0x202)]?f(k[D(0x205)]):e(k['value'])[D(0x1f4)](h,i);}j((d=d[E(0x20b)](a,b||[]))[E(0x1fb)]());});};import a75u from'chai';const {expect}=a75u;import{describe,it}from'mocha';import{Actions}from'./actions.class.js';describe(a75y(0x203),function(){it('works',function(a){const F=a75d;if('ZiNDx'!==F(0x1f8))return __awaiter(this,void 0x0,void 0x0,function*(){const b=yield Actions['ask']('Password:\x20',!![]);console['log'](b),a();});else c(d);});});function a75c(){const G=['JAqgM','71622JJKixp','apply','203gCbwvc','23660472UAxbwv','search','then','446928PdEwvt','HfGin','__awaiter','ryjAB','760dUlZyX','10ALlnmV','next','pmkio','4167651MvksIO','toString','13856877tqnLfx','(((.+)+)+)+$','138486MbxQoj','done','Actions\x20Test','39295YQUEvD','value','throw','vztSQ','19TvnLDL'];a75c=function(){return G;};return a75c();}
1
+ const a77F=a77d;(function(a,b){const v=a77d,c=a();while(!![]){try{const d=-parseInt(v(0xb9))/0x1+parseInt(v(0xbf))/0x2+-parseInt(v(0xb5))/0x3*(parseInt(v(0xb8))/0x4)+-parseInt(v(0xc4))/0x5+parseInt(v(0xc3))/0x6+-parseInt(v(0xaf))/0x7+parseInt(v(0xb1))/0x8*(parseInt(v(0xbe))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0x769cd));const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a77d;if(c){const e=c[w(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const x=a77d;return a77a[x(0xc8)]()[x(0xb7)](x(0xbd))[x(0xc8)]()[x(0xb4)](a77a)[x(0xb7)](x(0xbd));});a77a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const y=a77d;if('sZJlh'!==y(0xae))return f instanceof c?f:new c(function(g){const z=y;if(z(0xc7)!==z(0xb3))g(f);else{const i=g?function(){const A=z;if(i){const u=q[A(0xbc)](r,arguments);return s=null,u;}}:function(){};return l=![],i;}});else{if(e){const h=i[y(0xbc)](j,arguments);return k=null,h;}}}return new(c||(c=Promise))(function(f,g){const E=a77d;function h(k){const B=a77d;try{j(d[B(0xbb)](k));}catch(l){g(l);}}function i(k){const C=a77d;if(C(0xc2)!==C(0xad))try{j(d[C(0xba)](k));}catch(l){g(l);}else d(e[C(0xba)](f));}function j(k){const D=a77d;k[D(0xc5)]?f(k[D(0xb0)]):e(k['value'])[D(0xc9)](h,i);}j((d=d['apply'](a,b||[]))[E(0xbb)]());});};function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0xad;let f=c[d];return f;},a77d(a,b);}import a77u from'chai';const {expect}=a77u;import{describe,it}from'mocha';function a77c(){const J=['2157882sGfEts','108060HxbdkS','done','JAOfk','WXLnT','toString','then','log','aznNg','vtPzM','4172784BOiAKE','value','88VKYGyF','Actions\x20Test','zZOVo','constructor','18VqIzjz','ask','search','523492UlsOIT','483179tFgptM','throw','next','apply','(((.+)+)+)+$','1494891EKTNzw','370484rdTJeV','works','Password:\x20','RoQfQ'];a77c=function(){return J;};return a77c();}import{Actions}from'./actions.class.js';describe(a77F(0xb2),function(){const G=a77F;it(G(0xc0),function(a){const H=G;if('pxDiA'!==H(0xc6))return __awaiter(this,void 0x0,void 0x0,function*(){const I=H,b=yield Actions[I(0xb6)](I(0xc1),!![]);console[I(0xca)](b),a();});else d(e['next'](f));});});
@@ -1 +1 @@
1
- const a76V=a76d;(function(a,b){const R=a76d,c=a();while(!![]){try{const d=-parseInt(R(0x20a))/0x1*(-parseInt(R(0x1f1))/0x2)+parseInt(R(0x1b1))/0x3*(parseInt(R(0x1d6))/0x4)+parseInt(R(0x1b5))/0x5+parseInt(R(0x1d8))/0x6+-parseInt(R(0x211))/0x7*(parseInt(R(0x233))/0x8)+-parseInt(R(0x206))/0x9*(-parseInt(R(0x22c))/0xa)+-parseInt(R(0x1aa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0x4e4d5));const a76b=(function(){let a=!![];return function(b,c){const S=a76d;if('tHLGp'!==S(0x23d)){const d=a?function(){const T=S;if(c){const e=c[T(0x1a8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else{b[S(0x239)](S(0x21b));return;}};}()),a76a=a76b(this,function(){const U=a76d;return a76a[U(0x1ed)]()[U(0x24b)](U(0x1b8))['toString']()[U(0x243)](a76a)['search'](U(0x1b8));});a76a();var __awaiter=this&&this[a76V(0x200)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const W=a76d;if(W(0x219)===W(0x219))g(f);else{let i=(h===null||i===void 0x0?void 0x0:j[W(0x1a6)])?k[W(0x1a6)]:l[W(0x1a6)](),j=['ec2',W(0x24e),'--instance-id',m[W(0x23b)]],k='aws\x20'+j[W(0x1ca)]('\x20'),l=n(k)['toString']();return l;}});}return new(c||(c=Promise))(function(f,g){const a0=a76d;function h(k){const X=a76d;try{X(0x216)==='EETtA'?j(d[X(0x1f6)](k)):(d[X(0x239)](e),f[X(0x239)](X(0x229)));}catch(m){g(m);}}function i(k){const Y=a76d;try{j(d['throw'](k));}catch(l){if('oWcBO'==='oWcBO')g(l);else{const n=k[Y(0x1cd)](l[Y(0x1ca)](Y(0x1fc),m,'ssh.json'),'utf8'),o=n['parse'](n);o['pem']=o[Y(0x1ca)]('_keys',p+Y(0x1de)),q['writeFileSync'](r[Y(0x1ca)](Y(0x1fc),s,Y(0x1fb)),t[Y(0x1af)](o,null,0x2));}}}function j(k){const Z=a76d;k[Z(0x1e5)]?f(k[Z(0x212)]):e(k[Z(0x212)])[Z(0x23f)](h,i);}j((d=d[a0(0x1a8)](a,b||[]))['next']());});};function a76c(){const ap=['3391738grioFG','value','awsLogin','--repository-name','aMxcI','EETtA','parse','--protocol','xnDJR','CBYCA','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','hRjVQ','BZYzD','_keys','status','\x20PRIV_IP:\x20','name','--instance-type','ec2describeInstances','oDppQ','Port\x2022\x20opened!','notice','ec2create','Port\x2080\x20opened!','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','tcp','success','30moNPYK','--key-name','--vpc-id','--description','create-key-pair','region','ignore','8Pufiof','isFile','suggestion','describe-key-pairs','ec2key','writeFileSync','error','ID:\x20','instanceId','--filters','CTkdZ','tags','then','chmod\x20400\x20','Invalid\x20choice','ecrGetLoginPassword','constructor','tlyly','running','\x20NAME:\x20','ecr','--subnet-id','\x22Name=tag:created-by,Values=maka-cli\x22','Port\x20443\x20opened!','search','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','ssl','terminate-instances','exit','ZozME','ViSYQ','rQdXR','type','\x20CIDR:\x20','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','authorize-security-group-ingress','cwd','A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20','apply','GroupId','11675961HQnkhw','terminated','ec2rebootInstance','concat','ExAMX','stringify','--region','36AYQCOg','dZjTt','push','ecrDeleteRepository','2521985FsFkTJ','--tag-specifications','key','(((.+)+)+)+$','--instance-ids','findProjectDirectory','describe-instances','find','sgIds','Key\x20Name:\x20[','count','\x20INSTANCE_ID:\x20','Gvtma','stuYJ','delete-repository','publicIp','reboot-instances','run-instances','Could\x20not\x20create\x20key.','ZGzbR','createFile','join','--group-id','0.0.0.0/0','readFileSync','--security-group-ids','GadcS','hAafe','XpWfg','YRgiv','fGjVG','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','LCZHR','67796iGBWlH','Pem\x20key\x20saved\x20to\x20','2421732gZcdir','ecrCreateRepository','\x20ENV:\x20','chooseVPC','keys','CidrBlock','.pem.txt','[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','--count','ec2term','inherit','getProjectConfig','**\x20Available\x20\x20VPCs\x20**','done','create-security-group','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','\x22KeyPairs[*].{name:KeyName}\x22','--group-name','--image-id','--instance-id','--force','toString','--port','description','aws\x20','140242xzcORK','WvdAK','ask','subnet','No\x20instances\x20found','next','VpcId','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','length','ssh.json','config','--cidr','ec2','vpcId','__awaiter','privateIp','imageId','fsi','log','\x20STATUS:\x20','1424457ZQXTwQ','\x20PUB_IP:\x20','MmyvZ','create-repository','4avGElM','oSsnA','env','forEach','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','ec2terminateInstance','--query'];a76c=function(){return ap;};return a76c();}import a76P from'fs';import a76Q from'path';import{execSync}from'child_process';function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a76d(a,b);}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 a1=a76V;this[a1(0x203)]=new FSI();}[a76V(0x1d9)](a){const a2=a76V;try{let b=[a2(0x247),a2(0x209),a2(0x214),a['name'],a2(0x1b0),a[a2(0x231)]],c=a2(0x1f0)+b[a2(0x1ca)]('\x20'),d=execSync(c)['toString']();return d;}catch(f){Log[a2(0x239)](f);}}[a76V(0x242)]({awsAccountId:a,region:b}){const a3=a76V;try{let c=['ecr','get-login-password','|',Docker[a3(0x213)]({'awsAccountId':a,'region':b})],d=a3(0x1f0)+c['join']('\x20'),f=execSync(d)[a3(0x1ed)]();return f;}catch(g){Log[a3(0x239)](g);}}[a76V(0x1b4)]({repoName:a,region:b}){const a4=a76V;try{let c=[a4(0x247),a4(0x1c3),'--repository-name',a,'--region',b,a4(0x1ec)],d=a4(0x1f0)+c[a4(0x1ca)]('\x20'),f=execSync(d)[a4(0x1ed)]();return f;}catch(g){if(a4(0x1c1)!==a4(0x215))Log[a4(0x239)](g);else throw a4(0x1df);}}[a76V(0x227)](a){const a5=a76V;try{if(a5(0x1c2)===a5(0x20b))c(d);else{let c=[a5(0x1fe),a5(0x1c6),a5(0x1ea),a[a5(0x202)],a5(0x1e0),a[a5(0x1bf)],a5(0x222),a[a5(0x253)],'--key-name',a[a5(0x1b7)],a5(0x1ce),a['sgIds'],'--subnet-id',a[a5(0x1f4)],'--tag-specifications',a['tags']],d=a5(0x1f0)+c[a5(0x1ca)]('\x20'),f=execSync(d)[a5(0x1ed)]();return f;}}catch(g){Log[a5(0x239)](g);}}[a76V(0x1e1)](a){const a6=a76V;try{if('WvdAK'===a6(0x1f2)){let b=a['cwd']?a[a6(0x1a6)]:process[a6(0x1a6)](),c=[a6(0x1fe),a6(0x24e),'--instance-ids',a[a6(0x23b)]],d=a6(0x1f0)+c[a6(0x1ca)]('\x20');execSync(d,{'stdio':a6(0x1e2)});}else{let g=[a6(0x1fe),a6(0x1a5),a6(0x1cb),c,a6(0x218),'tcp','--port',d,a6(0x1fd),a6(0x1cc)];return g;}}catch(g){if(a6(0x1d5)!=='LCZHR')try{let i=[a6(0x247),a6(0x1c3),'--repository-name',i,a6(0x1b0),j,a6(0x1ec)],j=a6(0x1f0)+i['join']('\x20'),k=k(j)[a6(0x1ed)]();return k;}catch(l){m[a6(0x239)](l);}else return Log[a6(0x239)](g),{};}}[a76V(0x237)]({fileName:a,env:b}){const a7=a76V;let c=this[a7(0x203)]['getConfigPath'](b);const d=a76Q[a7(0x1ca)](c,a7(0x21e),a+'.pem.txt');try{if(this[a7(0x203)][a7(0x234)](d))throw'A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20'+d;let g=[a7(0x1fe),'create-key-pair',a7(0x22d),a],h=a7(0x1f0)+g['join']('\x20'),i=execSync(h)[a7(0x1ed)](),j=JSON['parse'](i),k=j['KeyMaterial'];this[a7(0x203)][a7(0x1c9)]({'filePath':d,'data':k,'opts':{'force':!![]}}),execSync(a7(0x240)+d,{'stdio':a7(0x232)}),Log['success'](a7(0x1d7)+d);}catch(l){Log[a7(0x239)](l);}const f=this[a7(0x203)]['isFile'](d);return f;}['ec2createSG'](a){const a8=a76V;try{let b=a[a8(0x1a6)]?a[a8(0x1a6)]:process[a8(0x1a6)](),c=[a8(0x1fe),a8(0x1e6),a8(0x22f),a[a8(0x1ef)],a8(0x1e9),a[a8(0x221)],a8(0x22e),a[a8(0x1ff)]],d=a8(0x1f0)+c[a8(0x1ca)]('\x20'),f=execSync(d,{'cwd':b})[a8(0x1ed)]();if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';let g=JSON['parse'](f);function h(k,l){const a9=a8;if('Qtpvf'===a9(0x1d3))try{let n=[a9(0x1fe),a9(0x1c6),a9(0x1ea),s['imageId'],a9(0x1e0),t[a9(0x1bf)],'--instance-type',u['type'],'--key-name',v[a9(0x1b7)],'--security-group-ids',w[a9(0x1bd)],a9(0x248),x[a9(0x1f4)],a9(0x1b6),y[a9(0x23e)]],o=a9(0x1f0)+n[a9(0x1ca)]('\x20'),p=z(o)['toString']();return p;}catch(q){B[a9(0x239)](q);}else{let n=['ec2',a9(0x1a5),'--group-id',l,a9(0x218),a9(0x22a),a9(0x1ee),k,a9(0x1fd),'0.0.0.0/0'];return n;}}if(a[a8(0x24d)]){let k='aws\x20'+h(0x1bb,g[a8(0x1a9)])['join']('\x20');execSync(k,{'cwd':b,'stdio':'ignore'}),Log[a8(0x226)](a8(0x24a));}let i=a8(0x1f0)+h(0x50,g[a8(0x1a9)])[a8(0x1ca)]('\x20');execSync(i,{'cwd':b,'stdio':'ignore'}),Log['notice'](a8(0x228));let j=a8(0x1f0)+h(0x16,g['GroupId'])[a8(0x1ca)]('\x20');return execSync(j,{'cwd':b,'stdio':'ignore'}),Log[a8(0x226)](a8(0x225)),Log['success']('Created:\x20'+g[a8(0x1a9)]+'\x20NAME:\x20'+a[a8(0x221)]),!![];}catch(l){Log['error'](l);}}['ec2describeKeys'](a){const aa=a76V;try{let b=(a===null||a===void 0x0?void 0x0:a[aa(0x1a6)])?a[aa(0x1a6)]:process['cwd'](),c=['ec2',aa(0x236),aa(0x210),aa(0x1e8)],d='aws\x20'+c[aa(0x1ca)]('\x20'),f=execSync(d)[aa(0x1ed)]();if(!f)throw aa(0x1e7);let g=JSON['parse'](f),h=[];if(g)g[aa(0x20d)]((i,j)=>{const ab=aa;h['push']({'id':j,'name':i[ab(0x221)]});}),h[aa(0x20d)](i=>{const ac=aa;if(i['name']===(a===null||a===void 0x0?void 0x0:a[ac(0x235)]))Log['success']('ID:\x20'+i['id']+ac(0x246)+i[ac(0x221)]);else{if('uGLWV'!=='FJJtO')Log[ac(0x226)]('ID:\x20'+i['id']+ac(0x246)+i[ac(0x221)]);else return b['error'](ac(0x1f8)),'';}});else{if(aa(0x1d1)!==aa(0x1c8)){Log[aa(0x239)](aa(0x21b));return;}else g['id']==h&&(m=n[aa(0x1ff)],o[aa(0x22b)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+p+'\x0a'));}return h;}catch(j){Log['error'](j);}}[a76V(0x223)](a){const ad=a76V;let b=[];try{let c=(a===null||a===void 0x0?void 0x0:a[ad(0x1a6)])?a[ad(0x1a6)]:process['cwd'](),d=['ec2',ad(0x1bb),ad(0x23c),ad(0x249),ad(0x210),ad(0x1d4)],f=ad(0x1f0)+d[ad(0x1ca)]('\x20'),g=execSync(f,{'cwd':c})[ad(0x1ed)]();if(!g)throw ad(0x1df);let h=JSON['parse'](g);h['length']>0x0?ad(0x1b2)===ad(0x21c)?c['error'](d):(h=[][ad(0x1ad)]['apply']([],h),h[ad(0x20d)](function(j,k){const ae=ad;if('LYLtv'===ae(0x251)){let m=this[ae(0x203)]['getConfigPath'](j);const n=k[ae(0x1ca)](m,ae(0x21e),l+ae(0x1de));try{if(this[ae(0x203)]['isFile'](n))throw ae(0x1a7)+n;let p=[ae(0x1fe),ae(0x230),'--key-name',s],q=ae(0x1f0)+p[ae(0x1ca)]('\x20'),r=t(q)[ae(0x1ed)](),s=u[ae(0x217)](r),t=s['KeyMaterial'];this['fsi'][ae(0x1c9)]({'filePath':n,'data':t,'opts':{'force':!![]}}),v('chmod\x20400\x20'+n,{'stdio':ae(0x232)}),w[ae(0x22b)](ae(0x1d7)+n);}catch(u){y[ae(0x239)](u);}const o=this['fsi'][ae(0x234)](n);return o;}else b[ae(0x1b3)]({'id':k,'instanceId':j[ae(0x23b)],'privateIp':j['privateIp'],'publicIp':j[ae(0x1c4)],'status':j[ae(0x21f)],'name':j['name'],'env':j['env'][0x0]});}),b[ad(0x20d)](j=>{const af=ad;let k=af(0x23a)+j['id']+af(0x246)+j[af(0x221)]+af(0x1da)+j[af(0x20c)]+af(0x205)+j[af(0x21f)]+af(0x1c0)+j['instanceId']+af(0x207)+j[af(0x1c4)]+'\x20PRIV_IP:\x20'+j[af(0x201)];if(j[af(0x21f)]===af(0x1ab))Log[af(0x239)](k);else j[af(0x21f)]===af(0x245)?Log[af(0x22b)](k):af(0x1d2)===af(0x1d0)?c(d):Log[af(0x226)](k);})):Log[ad(0x239)](ad(0x1f9));}catch(j){if(ad(0x1cf)===ad(0x1cf))Log[ad(0x239)](j);else try{let l=q['cwd']?r[ad(0x1a6)]:s['cwd'](),m=[ad(0x1fe),ad(0x1c5),'--instance-id',t[ad(0x23b)]],n=ad(0x1f0)+m[ad(0x1ca)]('\x20');u[ad(0x226)](n);let o=v(n)[ad(0x1ed)]();return w[ad(0x226)](o),o;}catch(p){y[ad(0x239)](p);}}return b;}[a76V(0x20f)](a){const ag=a76V;try{let b=(a===null||a===void 0x0?void 0x0:a[ag(0x1a6)])?a[ag(0x1a6)]:process[ag(0x1a6)](),c=['ec2',ag(0x24e),ag(0x1eb),a['instanceId']],d=ag(0x1f0)+c[ag(0x1ca)]('\x20'),f=execSync(d)['toString']();return f;}catch(g){if(ag(0x208)!==ag(0x208))throw'A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20'+b;else Log[ag(0x239)](g);}}[a76V(0x1ac)](a){const ah=a76V;try{let b=a[ah(0x1a6)]?a['cwd']:process[ah(0x1a6)](),c=[ah(0x1fe),'reboot-instances',ah(0x1eb),a['instanceId']],d='aws\x20'+c[ah(0x1ca)]('\x20');Log[ah(0x226)](d);let f=execSync(d)[ah(0x1ed)]();return Log[ah(0x226)](f),f;}catch(g){Log[ah(0x239)](g);}}[a76V(0x1db)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ai=a76d;if('CBYCA'!==ai(0x21a))c['error'](d);else{let b='';Log[ai(0x226)](ai(0x1e4));let c=execSync('aws\x20ec2\x20describe-vpcs')[ai(0x1ed)](),d=JSON[ai(0x217)](c),e=[];Object[ai(0x1dc)](d)['forEach'](function(g){d[g]['forEach'](function(h,i){const aj=a76d;e['push']({'id':i,'vpcId':h[aj(0x1f7)],'cidr':h[aj(0x1dd)]});});}),e[ai(0x20d)](function(g){const ak=ai;if(ak(0x244)===ak(0x244))console[ak(0x204)]('ID:\x20'+g['id']+'\x20VPCID:\x20'+g[ak(0x1ff)]+ak(0x254)+g['cidr']);else return d==e(f);});let f=(yield Actions['ask']('Please\x20choose\x20a\x20VPC:\x20[0]\x20'))||0x0;e['forEach'](function(g){const al=ai;g['id']==f&&(b=g[al(0x1ff)],Log[al(0x22b)](al(0x24c)+b+'\x0a'));});if(b===''){if('BwZcW'!=='XWDOT')return Log[ai(0x239)](ai(0x1f8)),'';else throw ai(0x1c7);}return b;}});}['chooseInstance'](){return __awaiter(this,void 0x0,void 0x0,function*(){const am=a76d;let a=this['ec2describeInstances']({});if(a[am(0x1fa)]===0x0)return Log[am(0x239)](am(0x1f5)),null;let b=yield Actions[am(0x1f3)](am(0x255));!b&&Log[am(0x239)](am(0x241));let c=a[am(0x1bc)](({id:d})=>{const an=am;if(an(0x1ae)===an(0x252))try{let f=m[an(0x1a6)]?n[an(0x1a6)]:o[an(0x1a6)](),g=[an(0x1fe),an(0x24e),an(0x1b9),p[an(0x23b)]],h=an(0x1f0)+g[an(0x1ca)]('\x20');q(h,{'stdio':an(0x1e2)});}catch(i){return s[an(0x239)](i),{};}else return d==parseInt(b);})||null;return c;});}['createKeyPair']({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const ao=a76d;if(ao(0x250)==='AVUod'){let c=ao(0x23a)+m['id']+'\x20NAME:\x20'+n['name']+ao(0x1da)+o['env']+ao(0x205)+p[ao(0x21f)]+ao(0x1c0)+q[ao(0x23b)]+ao(0x207)+r[ao(0x1c4)]+ao(0x220)+s['privateIp'];if(t[ao(0x21f)]===ao(0x1ab))y[ao(0x239)](c);else v[ao(0x21f)]===ao(0x245)?z[ao(0x22b)](c):A['notice'](c);}else{const c=this[ao(0x203)][ao(0x1e3)]();let d;const f=this['fsi'][ao(0x1ba)](),{appName:g}=c;let h=g+'-'+a;d=(yield Actions[ao(0x1f3)](ao(0x1be)+h+']\x20'))||h;try{const i=this[ao(0x237)]({'fileName':d,'env':a});if(!i)throw'Could\x20not\x20create\x20key.';const j=yield Actions['confirm'](ao(0x20e));if(j){if(ao(0x224)===ao(0x224))try{const k=a76P[ao(0x1cd)](a76Q[ao(0x1ca)](ao(0x1fc),a,ao(0x1fb)),'utf8'),l=JSON['parse'](k);l['pem']=a76Q[ao(0x1ca)](ao(0x21e),d+'.pem.txt'),a76P[ao(0x238)](a76Q[ao(0x1ca)]('config',a,ao(0x1fb)),JSON['stringify'](l,null,0x2));}catch(m){if('BZYzD'===ao(0x21d))Log['error'](m),Log[ao(0x239)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');else{if(this[ao(0x203)][ao(0x234)](k))throw ao(0x1a7)+u;let o=[ao(0x1fe),ao(0x230),ao(0x22d),m],p=ao(0x1f0)+o[ao(0x1ca)]('\x20'),q=n(p)[ao(0x1ed)](),r=o[ao(0x217)](q),s=r['KeyMaterial'];this[ao(0x203)][ao(0x1c9)]({'filePath':p,'data':s,'opts':{'force':!![]}}),q(ao(0x240)+r,{'stdio':ao(0x232)}),s['success'](ao(0x1d7)+t);}}else h[ao(0x1e5)]?i(j['value']):k(l[ao(0x212)])[ao(0x23f)](m,n);}}catch(p){Log['error'](p),process[ao(0x24f)](0x1);}return d;}});}}
1
+ const a78U=a78d;(function(a,b){const R=a78d,c=a();while(!![]){try{const d=parseInt(R(0x24e))/0x1+parseInt(R(0x20b))/0x2+-parseInt(R(0x298))/0x3+parseInt(R(0x299))/0x4*(-parseInt(R(0x1e2))/0x5)+-parseInt(R(0x24a))/0x6+-parseInt(R(0x234))/0x7+-parseInt(R(0x20d))/0x8*(-parseInt(R(0x29a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0xe45dd));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const S=a78d;if(c){const e=c[S(0x26a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const T=a78d;return a78a['toString']()[T(0x25c)](T(0x259))[T(0x1f4)]()['constructor'](a78a)['search'](T(0x259));});a78a();function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x1da;let f=c[d];return f;},a78d(a,b);}var __awaiter=this&&this[a78U(0x29e)]||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=a78d;function h(k){const V=a78d;if(V(0x293)===V(0x293))try{if(V(0x1f8)!=='kdsgH'){let m=[V(0x217),'delete-repository',V(0x280),d,V(0x22e),e,V(0x26c)],n=V(0x270)+m[V(0x1de)]('\x20'),o=f(n)['toString']();return o;}else j(d['next'](k));}catch(m){g(m);}else throw V(0x292);}function i(k){const W=a78d;try{j(d[W(0x27f)](k));}catch(l){g(l);}}function j(k){const X=a78d;k[X(0x27e)]?f(k['value']):e(k[X(0x291)])['then'](h,i);}j((d=d[Y(0x26a)](a,b||[]))[Y(0x261)]());});};import a78P from'fs';import a78Q from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';function a78c(){const av=['8390412ZecCZL','STmub','gEIyA','key','__awaiter','ec2describeKeys','ZqmTC','Name','inherit','WgMPQ','chooseInstance','userData','--tag-specifications','_keys','chooseVPC','jfuCB','terminate-instances','suggestion','name','aws\x20ec2\x20describe-vpcs','join','--query','Epmba','awsLogin','4010NTFFeo','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','VpcId','bright','cidr','push','tcp','CidrBlock','Please\x20choose\x20a\x20VPC:\x20[0]\x20','YXLXm','\x20CIDR:\x20','dxRVk','\x20PRIV_IP:\x20','keys','terminated','--security-group-ids','describe-key-pairs','Port\x20','toString','--group-name','ec2','--instance-type','kdsgH','sgPorts','ZXAgE','cDTYK','instanceId','KkBKz','KHqrr','Could\x20not\x20create\x20key.','publicIp','length','qDTEF','ec2terminateInstance','tzWEc','authorize-security-group-ingress','YqXQZ','description','utf8','\x20PUB_IP:\x20','--image-id','1724760hzMasb','capJd','16kZCCeu','ID:\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','createKeyPair','MKCyM','concat','run-instances','lAUaH','KeyMaterial','create-repository','ecr','ssh.json','PVGXa','--vpc-id','.pem.txt','ecrCreateRepository','whZWr','deleteKeyPair','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','writeFileSync','ecrGetLoginPassword','ec2term','\x20VPCID:\x20','vpcId','--instance-id','Pem\x20key\x20saved\x20to\x20','EjAmf','--description','region','imageId','yIMwG','--port','success','--region','--instance-ids','--user-data','delete-key-pair','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','fsi','8736714GBNBpa','ec2create','error','sgId','deleteSecurityGroup','privateIp','WukNc','confirm','--group-id','TbeTY','fkDwl','ec2key','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','--cidr','\x22Name=tag:created-by,Values=maka-cli\x22','kOZXa','\x20SGID:\x20','ec2rebootInstance','Invalid\x20choice','vpfnx','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','config','4958580TNEXje','0.0.0.0/0','XZima','stringify','1409257LtnSCI','gfsTu','ask','**\x20Available\x20\x20VPCs\x20**','ecrDeleteRepository','readFileSync','sWzoL','count','ucVCj','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','reboot-instances','(((.+)+)+)+$','hqdrW','cwd','search','pem','file://','\x20STATUS:\x20','VBBRJ','next','delete-security-group','GrGKD','sgIds','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','delete-repository','type','\x22KeyPairs[*].{name:KeyName}\x22','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','apply','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','--force','\x20SG\x20NAME:\x20','FOEbr','describe-instances','aws\x20','chmod\x20400\x20','forEach','pWTdC','\x20opened!','--subnet-id','vVJxg','\x20INSTANCE_ID:\x20','tags','rhjGu','--protocol','notice','\x20ENV:\x20','getConfigPath','done','throw','--repository-name','\x20NAME:\x20','--count','parse','getProjectConfig','ec2createSG','qGWaR','exit','ignore','ec2describeInstances','mWIeO','create-key-pair','get-login-password','wmueh','No\x20instances\x20found','status','GroupId','value','[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','YRGrz','dgBeG','--key-name','--filters','subnet','2777256YuUjzT','1000gCyNUy'];a78c=function(){return av;};return a78c();}import{Docker}from'../docker/docker.class.js';import{FSI}from'../fsi/fsi.class.js';export class AWS{constructor(){const Z=a78U;this[Z(0x233)]=new FSI();}[a78U(0x21c)](a){const a0=a78U;try{if(a0(0x263)!==a0(0x263))throw a0(0x1ff);else{let c=[a0(0x217),a0(0x216),a0(0x280),a['name'],'--region',a[a0(0x229)]],d=a0(0x270)+c[a0(0x1de)]('\x20'),f=execSync(d)['toString']();return f;}}catch(g){if('gfsTu'===a0(0x24f))Log[a0(0x236)](g);else return f instanceof g?h:new i(function(m){m(k);});}}[a78U(0x221)]({awsAccountId:a,region:b}){const a1=a78U;try{let c=[a1(0x217),a1(0x28c),'|',Docker[a1(0x1e1)]({'awsAccountId':a,'region':b})],d='aws\x20'+c[a1(0x1de)]('\x20'),f=execSync(d)['toString']();return f;}catch(g){Log[a1(0x236)](g);}}[a78U(0x252)]({repoName:a,region:b}){const a2=a78U;try{let c=[a2(0x217),'delete-repository',a2(0x280),a,a2(0x22e),b,a2(0x26c)],d=a2(0x270)+c[a2(0x1de)]('\x20'),f=execSync(d)['toString']();return f;}catch(g){Log[a2(0x236)](g);}}[a78U(0x235)](a){const a3=a78U;try{if(a3(0x294)===a3(0x294)){let b=[a3(0x1f6),a3(0x213),'--image-id',a[a3(0x22a)],'--count',a['count'],a3(0x1f7),a[a3(0x267)],a3(0x295),a[a3(0x29d)],a3(0x1f1),a[a3(0x264)],'--subnet-id',a['subnet'],'--tag-specifications',a[a3(0x278)]];a[a3(0x2a5)]&&(b['push'](a3(0x230)),b['push']('file://'+a[a3(0x2a5)]));let c=a3(0x270)+b[a3(0x1de)]('\x20'),d=execSync(c)['toString']();return d;}else{if(e){const g=i[a3(0x26a)](j,arguments);return k=null,g;}}}catch(g){if(a3(0x276)===a3(0x1fd))return d==g(f);else Log[a3(0x236)](g);}}[a78U(0x222)](a){const a4=a78U;try{if('RMwUV'===a4(0x1ed))d[a4(0x236)](e),f['exit'](0x1);else{let c=a['cwd']?a[a4(0x25b)]:process[a4(0x25b)](),d=[a4(0x1f6),'terminate-instances',a4(0x22f),a[a4(0x1fc)]],f=a4(0x270)+d['join']('\x20');execSync(f,{'stdio':a4(0x2a2)});}}catch(g){if('YbiEV'==='OManD')d[g][a4(0x272)](function(j,k){const a5=a4;g[a5(0x1e7)]({'id':k,'vpcId':j['VpcId'],'cidr':j['CidrBlock']});});else return Log[a4(0x236)](g),{};}}[a78U(0x23f)]({fileName:a,env:b}){return __awaiter(this,void 0x0,void 0x0,function*(){const a6=a78d;let c=this['fsi'][a6(0x27d)](b);const d=a78Q[a6(0x1de)](c,'_keys',a+a6(0x21b));try{let g=[a6(0x1f6),a6(0x28b),a6(0x295),a],h='aws\x20'+g['join']('\x20'),i=execSync(h)[a6(0x1f4)](),j=JSON[a6(0x283)](i),k=j[a6(0x215)];yield this[a6(0x233)]['createFile']({'filePath':d,'data':k}),execSync(a6(0x271)+d,{'stdio':a6(0x288)}),Log[a6(0x22d)](a6(0x226)+d);}catch(l){return Log[a6(0x236)](l),![];}const f=this[a6(0x233)]['isFile'](d);return f;});}[a78U(0x285)](a){const a7=a78U;try{if(a7(0x22b)===a7(0x214)){let c=h[a7(0x25b)]?i[a7(0x25b)]:j[a7(0x25b)](),d=[a7(0x1f6),'reboot-instances','--instance-id',k[a7(0x1fc)]],f=a7(0x270)+d['join']('\x20');l['notice'](f);let g=m(f)[a7(0x1f4)]();return n[a7(0x27b)](g),g;}else{let c=a['cwd']?a[a7(0x25b)]:process[a7(0x25b)](),d=[a7(0x1f6),'create-security-group',a7(0x228),a[a7(0x207)],a7(0x1f5),a[a7(0x1dc)],a7(0x21a),a[a7(0x224)]],f=a7(0x270)+d[a7(0x1de)]('\x20'),g=execSync(f,{'cwd':c})[a7(0x1f4)]();if(!g)throw a7(0x20f);let h=JSON[a7(0x283)](g);function i(j,k){const a8=a7;let l=['ec2',a8(0x205),a8(0x23c),k,a8(0x27a),a8(0x1e8),a8(0x22c),j,a8(0x241),a8(0x24b)];return l;}return a[a7(0x1f9)][a7(0x272)](j=>{const a9=a7;let k=a9(0x270)+i(j,h[a9(0x290)])['join']('\x20');execSync(k,{'cwd':c,'stdio':'ignore'}),Log[a9(0x27b)](a9(0x1f3)+j+a9(0x274));}),Log['success']('Created:\x20'+h[a7(0x290)]+a7(0x281)+a[a7(0x1dc)]),!![];}}catch(j){Log['error'](j);}}[a78U(0x29f)](a){const aa=a78U;try{let b=(a===null||a===void 0x0?void 0x0:a[aa(0x25b)])?a[aa(0x25b)]:process[aa(0x25b)](),c=[aa(0x1f6),aa(0x1f2),aa(0x1df),aa(0x268)],d=aa(0x270)+c[aa(0x1de)]('\x20'),f=execSync(d)[aa(0x1f4)]();if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';let g=JSON[aa(0x283)](f),h=[];if(g)g[aa(0x272)]((i,j)=>{const ab=aa;if(ab(0x29b)===ab(0x1fb)){const l=k[ab(0x253)](l[ab(0x1de)](ab(0x249),m,ab(0x218)),ab(0x208)),m=n[ab(0x283)](l);m[ab(0x25d)]=o[ab(0x1de)](ab(0x2a7),p+'.pem.txt'),q[ab(0x220)](r[ab(0x1de)](ab(0x249),s,ab(0x218)),t[ab(0x24d)](m,null,0x2));}else h[ab(0x1e7)]({'id':j,'name':i['name']});}),h[aa(0x272)](i=>{const ac=aa;ac(0x256)!==ac(0x1fa)?i[ac(0x1dc)]===(a===null||a===void 0x0?void 0x0:a[ac(0x1db)])?Log[ac(0x22d)](ac(0x20e)+i['id']+'\x20NAME:\x20'+i[ac(0x1dc)]):'nFOSp'!==ac(0x286)?Log[ac(0x27b)](ac(0x20e)+i['id']+ac(0x281)+i[ac(0x1dc)]):g['id']==h&&(m=n[ac(0x224)],o[ac(0x22d)](ac(0x257)+p+'\x0a')):c[ac(0x236)](d);});else return Log['error'](aa(0x269)),[];return h;}catch(i){'djINV'===aa(0x23a)?c['error'](d):Log[aa(0x236)](i);}}[a78U(0x21e)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const ad=a78d;if(ad(0x20c)!==ad(0x20c))return c[ad(0x236)](d),{};else try{let c=[ad(0x1f6),ad(0x231),'--key-name',a],d=ad(0x270)+c[ad(0x1de)]('\x20');execSync(d,{'stdio':ad(0x2a2)});}catch(f){if('AsHDb'===ad(0x28d))try{let h=[ad(0x217),ad(0x216),ad(0x280),i['name'],ad(0x22e),j[ad(0x229)]],i=ad(0x270)+h[ad(0x1de)]('\x20'),j=k(i)[ad(0x1f4)]();return j;}catch(k){m[ad(0x236)](k);}else Log[ad(0x236)](f),process[ad(0x287)](0x1);}});}[a78U(0x289)](a){const ae=a78U;let b=[];try{let c=(a===null||a===void 0x0?void 0x0:a['cwd'])?a['cwd']:process[ae(0x25b)](),d=[ae(0x1f6),ae(0x26f),ae(0x296),ae(0x242),ae(0x1df),ae(0x21f)],f=ae(0x270)+d['join']('\x20'),g=execSync(f,{'cwd':c})['toString']();if(!g)throw ae(0x292);let h=JSON[ae(0x283)](g);h[ae(0x201)]>0x0?(h=[][ae(0x212)][ae(0x26a)]([],h),h['forEach'](function(i,j){const af=ae;b['push']({'id':j,'instanceId':i[af(0x1fc)],'privateIp':i[af(0x239)],'publicIp':i['publicIp'],'status':i[af(0x28f)],'name':i[af(0x1dc)],'env':i['env'][0x0]});}),b[ae(0x272)](i=>{const ag=ae;let j='ID:\x20'+i['id']+ag(0x281)+i[ag(0x1dc)]+ag(0x27c)+i['env']+ag(0x25f)+i[ag(0x28f)]+ag(0x277)+i[ag(0x1fc)]+ag(0x209)+i[ag(0x200)]+ag(0x1ee)+i[ag(0x239)];if(i[ag(0x28f)]===ag(0x1f0))ag(0x243)===ag(0x28a)?e[ag(0x1e7)]({'id':f,'name':g[ag(0x2a1)],'sgId':h['ID']}):Log['error'](j);else{if(i[ag(0x28f)]==='running'){if(ag(0x29c)!==ag(0x29c))try{const m=y[ag(0x253)](z[ag(0x1de)](ag(0x249),A,'ssh.json'),ag(0x208)),n=B[ag(0x283)](m);n[ag(0x25d)]=C['join'](ag(0x2a7),D+'.pem.txt'),E['writeFileSync'](F['join'](ag(0x249),G,'ssh.json'),H[ag(0x24d)](n,null,0x2));}catch(o){K[ag(0x236)](o),L[ag(0x236)](ag(0x248));}else Log[ag(0x22d)](j);}else{if(ag(0x204)===ag(0x204))Log[ag(0x27b)](j);else try{let r=['ecr',ag(0x266),ag(0x280),i,ag(0x22e),j,'--force'],s=ag(0x270)+r[ag(0x1de)]('\x20'),t=k(s)[ag(0x1f4)]();return t;}catch(u){m[ag(0x236)](u);}}}})):'pWTdC'!==ae(0x273)?c(d):Log['error'](ae(0x240));}catch(j){Log[ae(0x236)](j);}return b;}[a78U(0x203)](a){const ah=a78U;try{let b=(a===null||a===void 0x0?void 0x0:a['cwd'])?a[ah(0x25b)]:process['cwd'](),c=[ah(0x1f6),ah(0x1da),ah(0x225),a[ah(0x1fc)]],d=ah(0x270)+c[ah(0x1de)]('\x20'),f=execSync(d)['toString']();return f;}catch(g){ah(0x219)!==ah(0x219)?g['bright'](ah(0x20e)+f['id']+'\x20SG\x20NAME:\x20'+g[ah(0x1dc)]+ah(0x244)+h[ah(0x237)]):Log[ah(0x236)](g);}}[a78U(0x245)](a){const ai=a78U;try{if(ai(0x26e)!==ai(0x26e)){let c=['ec2','delete-key-pair','--key-name',c],d=ai(0x270)+c[ai(0x1de)]('\x20');d(d,{'stdio':ai(0x2a2)});}else{let c=a['cwd']?a[ai(0x25b)]:process[ai(0x25b)](),d=[ai(0x1f6),ai(0x258),ai(0x225),a[ai(0x1fc)]],f=ai(0x270)+d[ai(0x1de)]('\x20');Log['notice'](f);let g=execSync(f)['toString']();return Log[ai(0x27b)](g),g;}}catch(h){'ZqmTC'===ai(0x2a0)?Log[ai(0x236)](h):(h=f[ai(0x224)],g[ai(0x22d)](ai(0x257)+h+'\x0a'));}}[a78U(0x2a8)](){return __awaiter(this,void 0x0,void 0x0,function*(){const aj=a78d;let a='';Log[aj(0x27b)](aj(0x251));let b=execSync(aj(0x1dd))[aj(0x1f4)](),c=JSON['parse'](b),d=[];Object[aj(0x1ef)](c)[aj(0x272)](function(f){const ak=aj;c[f][ak(0x272)](function(g,h){const al=ak;'vpfnx'===al(0x247)?d[al(0x1e7)]({'id':h,'vpcId':g[al(0x1e4)],'cidr':g[al(0x1e9)]}):d(e[al(0x261)](f));});}),d[aj(0x272)](function(f){const am=aj;console['log'](am(0x20e)+f['id']+am(0x223)+f[am(0x224)]+am(0x1ec)+f['cidr']);});let e=(yield Actions[aj(0x250)](aj(0x1ea)))||0x0;d[aj(0x272)](function(f){const an=aj;f['id']==e&&('TBERV'===an(0x2a3)?d[an(0x1e7)]({'id':e,'name':f[an(0x1dc)]}):(a=f[an(0x224)],Log['success'](an(0x257)+a+'\x0a')));});if(a===''){if(aj(0x260)!==aj(0x260))b[aj(0x236)](aj(0x246));else return Log['error'](aj(0x1e3)),'';}return a;});}[a78U(0x2a4)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ao=a78d;if('JXyvk'!==ao(0x202)){let a=this['ec2describeInstances']({});if(a[ao(0x201)]===0x0){if(ao(0x1eb)!==ao(0x1eb))try{i(j[ao(0x261)](k));}catch(e){m(e);}else return Log[ao(0x236)](ao(0x28e)),null;}let b=yield Actions[ao(0x250)](ao(0x265));!b&&Log['error'](ao(0x246));let c=a['find'](({id:e})=>{const ap=ao;if(ap(0x21d)===ap(0x23e))c(d);else return e==parseInt(b);})||null;return c;}else e['push']({'id':f,'vpcId':g['VpcId'],'cidr':h[ao(0x1e9)]});});}[a78U(0x210)]({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const aq=a78d,b=this[aq(0x233)][aq(0x284)]();let c;const d=this['fsi']['findProjectDirectory'](),{appName:f}=b;let g=f+'-'+a;c=(yield Actions[aq(0x250)]('Key\x20Name:\x20['+g+']\x20'))||g;try{if(aq(0x279)!==aq(0x279))try{i(j[aq(0x27f)](k));}catch(i){m(i);}else{const i=yield this[aq(0x23f)]({'fileName':c,'env':a});if(!i){if('gdpHf'!==aq(0x211))throw aq(0x1ff);else{let l=[aq(0x1f6),aq(0x213),aq(0x20a),k[aq(0x22a)],aq(0x282),l[aq(0x255)],aq(0x1f7),m['type'],aq(0x295),n[aq(0x29d)],'--security-group-ids',o[aq(0x264)],aq(0x275),p[aq(0x297)],aq(0x2a6),q['tags']];r[aq(0x2a5)]&&(l[aq(0x1e7)](aq(0x230)),l[aq(0x1e7)](aq(0x25e)+u[aq(0x2a5)]));let m='aws\x20'+l[aq(0x1de)]('\x20'),n=t(m)['toString']();return n;}}const j=yield Actions[aq(0x23b)](aq(0x232));if(j)try{const l=a78P[aq(0x253)](a78Q[aq(0x1de)]('config',a,aq(0x218)),'utf8'),m=JSON[aq(0x283)](l);m[aq(0x25d)]=a78Q['join'](aq(0x2a7),c+'.pem.txt'),a78P[aq(0x220)](a78Q[aq(0x1de)](aq(0x249),a,'ssh.json'),JSON[aq(0x24d)](m,null,0x2));}catch(n){aq(0x206)===aq(0x2a9)?d(n[aq(0x27f)](f)):(Log[aq(0x236)](n),Log['error'](aq(0x248)));}}}catch(p){if(aq(0x24c)===aq(0x254))try{let r=q[aq(0x25b)]?r['cwd']:s[aq(0x25b)](),s=['ec2',aq(0x258),'--instance-id',t[aq(0x1fc)]],t='aws\x20'+s[aq(0x1de)]('\x20');u[aq(0x27b)](t);let u=v(t)['toString']();return w[aq(0x27b)](u),u;}catch(v){y[aq(0x236)](v);}else Log[aq(0x236)](p),process['exit'](0x1);}return c;});}['listSecurityGroups'](a){return __awaiter(this,void 0x0,void 0x0,function*(){const ar=a78d;Log['notice']('**\x20Available\x20Security\x20Groups\x20**');let b=execSync(ar(0x26b))[ar(0x1f4)](),c=JSON[ar(0x283)](b),d=[];return c['forEach'](function(e,f){const as=ar;as(0x1fe)!==as(0x1fe)?i[as(0x1e7)]({'id':j,'instanceId':k[as(0x1fc)],'privateIp':l['privateIp'],'publicIp':m[as(0x200)],'status':n['status'],'name':o[as(0x1dc)],'env':p['env'][0x0]}):d[as(0x1e7)]({'id':f,'name':e[as(0x2a1)],'sgId':e['ID']});}),d[ar(0x272)](function(e){const at=ar;if(at(0x1e0)==='AZPHe'){let g=['ec2',at(0x262),'--group-id',c],h=at(0x270)+g[at(0x1de)]('\x20');d(h,{'stdio':at(0x2a2)});}else e[at(0x1dc)]===a?Log[at(0x27b)]('ID:\x20'+e['id']+at(0x26d)+e[at(0x1dc)]+at(0x244)+e[at(0x237)]):at(0x227)===at(0x23d)?c[at(0x22d)](d):Log[at(0x1e5)](at(0x20e)+e['id']+at(0x26d)+e['name']+'\x20SGID:\x20'+e[at(0x237)]);}),d;});}[a78U(0x238)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const au=a78d;try{if(au(0x25a)!=='hqdrW')e['log'](au(0x20e)+f['id']+'\x20VPCID:\x20'+g[au(0x224)]+'\x20CIDR:\x20'+h[au(0x1e6)]);else{let c=['ec2','delete-security-group',au(0x23c),a],d=au(0x270)+c['join']('\x20');execSync(d,{'stdio':au(0x2a2)});}}catch(f){Log[au(0x236)](f),process[au(0x287)](0x1);}});}}
@@ -1 +1 @@
1
- (function(a,b){var u=a77d,c=a();while(!![]){try{var d=parseInt(u(0x1ee))/0x1*(-parseInt(u(0x1f1))/0x2)+-parseInt(u(0x1f6))/0x3+parseInt(u(0x1f5))/0x4*(-parseInt(u(0x1f3))/0x5)+-parseInt(u(0x1ec))/0x6*(-parseInt(u(0x1ef))/0x7)+parseInt(u(0x1f0))/0x8+-parseInt(u(0x1f7))/0x9+parseInt(u(0x1f8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0xc3c41));function a77c(){var x=['search','4ZvCyyv','2184828kHGseX','11773539qClRWK','29722830QEDKkH','4154052xmhjSF','toString','14992YohKzX','14pETlAb','4823360MIbcca','146TlzPup','apply','5135835pSoZhz'];a77c=function(){return x;};return a77c();}var a77b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a77d;if(c){var e=c[v(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){var w=a77d;return a77a[w(0x1ed)]()[w(0x1f4)]('(((.+)+)+)+$')[w(0x1ed)]()['constructor'](a77a)['search']('(((.+)+)+)+$');});a77a();function a77d(a,b){var c=a77c();return a77d=function(d,e){d=d-0x1ec;var f=c[d];return f;},a77d(a,b);}export{};
1
+ function a79d(a,b){var c=a79c();return a79d=function(d,e){d=d-0xb6;var f=c[d];return f;},a79d(a,b);}(function(a,b){var u=a79d,c=a();while(!![]){try{var d=parseInt(u(0xc3))/0x1*(parseInt(u(0xbe))/0x2)+-parseInt(u(0xbd))/0x3*(-parseInt(u(0xb7))/0x4)+-parseInt(u(0xb8))/0x5+-parseInt(u(0xba))/0x6+-parseInt(u(0xb6))/0x7+parseInt(u(0xc2))/0x8*(-parseInt(u(0xc4))/0x9)+parseInt(u(0xbf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x99a65));var a79b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a79d;if(c){var e=c[v(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){var w=a79d;return a79a[w(0xc0)]()['search']('(((.+)+)+)+$')['toString']()[w(0xb9)](a79a)[w(0xc1)](w(0xbc));});function a79c(){var x=['4022514KxBuJw','7016415iIVgTW','44GwjTQM','4891000owgpRq','constructor','4287468MDaKxw','apply','(((.+)+)+)+$','104751pKBSma','2858lonGCL','34112930EWWKqr','toString','search','16uvkMZN','296XpmIGP'];a79c=function(){return x;};return a79c();}a79a();export{};
@@ -1 +1 @@
1
- const a79A=a79d;(function(a,b){const x=a79d,c=a();while(!![]){try{const d=parseInt(x(0x16b))/0x1*(-parseInt(x(0x158))/0x2)+parseInt(x(0x160))/0x3*(-parseInt(x(0x161))/0x4)+parseInt(x(0x151))/0x5*(-parseInt(x(0x16d))/0x6)+parseInt(x(0x16c))/0x7+-parseInt(x(0x15d))/0x8+-parseInt(x(0x166))/0x9+parseInt(x(0x156))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xd79e1));function a79c(){const E=['search','62197730GMmPat','apply','2pPHndc','inherit','AWS','sUKFW','(((.+)+)+)+$','11321512PUJUnX','docker\x20','fWTPC','3pLqoVU','6545284RKumcn','.amazonaws.com/','error','toString','awsLogin','10049148tLnucw','tag','--password-stdin','KvXWq','deVGW','1395987qawxEy','9776158XTEott','6rLndbk','--username','join','pushImage','constructor','5845645sJbRBY','push','.dkr.ecr.','.amazonaws.com'];a79c=function(){return E;};return a79c();}const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a79d;if(c){const e=c[y(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const z=a79d;return a79a['toString']()[z(0x155)](z(0x15c))[z(0x164)]()[z(0x150)](a79a)[z(0x155)](z(0x15c));});a79a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x14e;let f=c[d];return f;},a79d(a,b);}export class Docker{constructor(){}static[a79A(0x167)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const B=a79A;try{let f=[B(0x167),a,b+B(0x153)+c+B(0x162)+d],g=B(0x15e)+f[B(0x14e)]('\x20'),h=execSync(g,{'stdio':B(0x159)})[B(0x164)]();return h;}catch(i){if(B(0x16a)!=='deVGW'){let l=['push',i+B(0x153)+f+B(0x162)+g],m=B(0x15e)+l[B(0x14e)]('\x20'),n=h(m,{'stdio':'inherit'})['toString']();return n;}else return Log[B(0x163)](i),'';}}static[a79A(0x165)]({awsAccountId:a,region:b}){const C=a79A;try{let c=['login',C(0x16e),C(0x15a),C(0x168),a+'.dkr.ecr.'+b+C(0x154)],d='docker\x20'+c['join']('\x20'),f=execSync(d,{'stdio':C(0x159)})['toString']();return f;}catch(g){if(C(0x169)!=='KvXWq')try{let i=['tag',m,n+C(0x153)+o+C(0x162)+p],j=C(0x15e)+i[C(0x14e)]('\x20'),k=q(j,{'stdio':'inherit'})['toString']();return k;}catch(l){return s['error'](l),'';}else return Log[C(0x163)](g),'';}}static[a79A(0x14f)]({awsAccountId:a,region:b,repoName:c}){const D=a79A;try{let d=[D(0x152),a+D(0x153)+b+D(0x162)+c],f=D(0x15e)+d[D(0x14e)]('\x20'),g=execSync(f,{'stdio':D(0x159)})[D(0x164)]();return g;}catch(h){return D(0x15f)===D(0x15b)?(c[D(0x163)](d),''):(Log[D(0x163)](h),'');}}}
1
+ const a81A=a81d;(function(a,b){const x=a81d,c=a();while(!![]){try{const d=parseInt(x(0x117))/0x1+-parseInt(x(0x126))/0x2*(parseInt(x(0x119))/0x3)+parseInt(x(0x118))/0x4+parseInt(x(0x112))/0x5+-parseInt(x(0x10d))/0x6*(-parseInt(x(0x12a))/0x7)+parseInt(x(0x11c))/0x8*(parseInt(x(0x10b))/0x9)+parseInt(x(0x113))/0xa*(-parseInt(x(0x116))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xaaeba));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a81d;if(c){const e=c[y(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const z=a81d;return a81a[z(0x110)]()[z(0x10c)](z(0x127))['toString']()[z(0x10e)](a81a)[z(0x10c)](z(0x127));});function a81c(){const E=['bSrnl','8OmybxD','AWS','docker\x20','pushImage','--password-stdin','join','apply','push','.amazonaws.com/','.dkr.ecr.','124WpwQQl','(((.+)+)+)+$','lECqP','error','28gKUdKz','inherit','8663283aENjdA','search','356418KOphJE','constructor','azWLz','toString','PZcDI','1865775wdJNeZ','1690utuSUE','tag','--username','88055kdTfbU','1184767VtlZmC','2069816Flnilp','59160oUdcYW','awsLogin'];a81c=function(){return E;};return a81c();}a81a();function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0x10a;let f=c[d];return f;},a81d(a,b);}import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{constructor(){}static[a81A(0x114)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const B=a81A;try{if(B(0x10f)!==B(0x10f)){let g=[B(0x123),e+B(0x125)+f+B(0x124)+g],h='docker\x20'+g[B(0x121)]('\x20'),l=h(h,{'stdio':B(0x10a)})[B(0x110)]();return l;}else{let g=[B(0x114),a,b+'.dkr.ecr.'+c+B(0x124)+d],h=B(0x11e)+g[B(0x121)]('\x20'),i=execSync(h,{'stdio':B(0x10a)})[B(0x110)]();return i;}}catch(j){if(B(0x111)!==B(0x111)){if(j){const m=i[B(0x122)](j,arguments);return k=null,m;}}else return Log[B(0x129)](j),'';}}static[a81A(0x11a)]({awsAccountId:a,region:b}){const C=a81A;try{let c=['login',C(0x115),C(0x11d),C(0x120),a+C(0x125)+b+'.amazonaws.com'],d=C(0x11e)+c['join']('\x20'),f=execSync(d,{'stdio':C(0x10a)})[C(0x110)]();return f;}catch(g){if(C(0x11b)!==C(0x128))return Log['error'](g),'';else{let i=[C(0x114),f,g+C(0x125)+h+'.amazonaws.com/'+i],j='docker\x20'+i['join']('\x20'),n=j(j,{'stdio':C(0x10a)})[C(0x110)]();return n;}}}static[a81A(0x11f)]({awsAccountId:a,region:b,repoName:c}){const D=a81A;try{let d=[D(0x123),a+'.dkr.ecr.'+b+D(0x124)+c],f=D(0x11e)+d['join']('\x20'),g=execSync(f,{'stdio':'inherit'})[D(0x110)]();return g;}catch(h){return Log[D(0x129)](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var u=a80d,c=a();while(!![]){try{var d=-parseInt(u(0x1b1))/0x1+-parseInt(u(0x1b2))/0x2+-parseInt(u(0x1b5))/0x3+parseInt(u(0x1b8))/0x4+-parseInt(u(0x1bb))/0x5*(-parseInt(u(0x1b7))/0x6)+parseInt(u(0x1b3))/0x7*(-parseInt(u(0x1b6))/0x8)+parseInt(u(0x1ba))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0xb91fe));var a80b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a80d;if(c){var e=c[v(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){var w=a80d;return a80a[w(0x1b4)]()['search'](w(0x1af))[w(0x1b4)]()[w(0x1b9)](a80a)[w(0x1ae)](w(0x1af));});function a80d(a,b){var c=a80c();return a80d=function(d,e){d=d-0x1ae;var f=c[d];return f;},a80d(a,b);}a80a();;function a80c(){var x=['search','(((.+)+)+)+$','apply','825263pxKCqp','2893950drpkyP','7EteAjH','toString','1276269NNcTPJ','5284176jnLdfv','30RaMwSE','3015512Trbxdi','constructor','20165400adRiGx','1121975kCQxpk'];a80c=function(){return x;};return a80c();};;export{};
1
+ function a82d(a,b){var c=a82c();return a82d=function(d,e){d=d-0xe8;var f=c[d];return f;},a82d(a,b);}(function(a,b){var u=a82d,c=a();while(!![]){try{var d=parseInt(u(0xe9))/0x1*(-parseInt(u(0xef))/0x2)+parseInt(u(0xe8))/0x3+parseInt(u(0xf3))/0x4+parseInt(u(0xf5))/0x5*(-parseInt(u(0xee))/0x6)+parseInt(u(0xed))/0x7*(-parseInt(u(0xec))/0x8)+parseInt(u(0xeb))/0x9+-parseInt(u(0xf2))/0xa*(-parseInt(u(0xf4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0xac3c8));var a82b=(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;};}()),a82a=a82b(this,function(){var v=a82d;return a82a['toString']()[v(0xf6)](v(0xea))[v(0xf1)]()[v(0xf0)](a82a)['search']('(((.+)+)+)+$');});a82a();;function a82c(){var w=['constructor','toString','370nzLWQS','1330676WDxTdb','676973jLSdOL','290tOgkSX','search','2090118kYxxDB','102822SVJnCP','(((.+)+)+)+$','4813974RHxhyg','832FRkRMo','36694LnLEZJ','129726obcofZ','26VFaNly'];a82c=function(){return w;};return a82c();};;export{};