@maka/maka-cli 4.5.32 → 4.5.33

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 (133) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/jsdoc.js +1 -1
  73. package/bundle/obf/src/commands/lint.js +1 -1
  74. package/bundle/obf/src/commands/login.js +1 -1
  75. package/bundle/obf/src/commands/logout.js +1 -1
  76. package/bundle/obf/src/commands/logs.js +1 -1
  77. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  78. package/bundle/obf/src/commands/murder.js +1 -1
  79. package/bundle/obf/src/commands/proxy.js +1 -1
  80. package/bundle/obf/src/commands/reconfig.js +1 -1
  81. package/bundle/obf/src/commands/run/_index.js +1 -1
  82. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  83. package/bundle/obf/src/commands/run/run.command.js +1 -1
  84. package/bundle/obf/src/commands/set/_index.js +1 -1
  85. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/set.command.js +1 -1
  88. package/bundle/obf/src/commands/ssh.js +1 -1
  89. package/bundle/obf/src/commands/ssl.js +1 -1
  90. package/bundle/obf/src/commands/test.js +1 -1
  91. package/bundle/obf/src/commands/version.js +1 -1
  92. package/bundle/obf/src/error.js +1 -1
  93. package/bundle/obf/src/exec.js +1 -1
  94. package/bundle/obf/src/generator.js +1 -1
  95. package/bundle/obf/src/generators/_index.js +1 -1
  96. package/bundle/obf/src/generators/api.js +1 -1
  97. package/bundle/obf/src/generators/collection.js +1 -1
  98. package/bundle/obf/src/generators/component.js +1 -1
  99. package/bundle/obf/src/generators/config.js +1 -1
  100. package/bundle/obf/src/generators/dbc.js +1 -1
  101. package/bundle/obf/src/generators/dockerfile.js +1 -1
  102. package/bundle/obf/src/generators/hook.js +1 -1
  103. package/bundle/obf/src/generators/kit.js +1 -1
  104. package/bundle/obf/src/generators/layout.js +1 -1
  105. package/bundle/obf/src/generators/maka.gen.js +1 -1
  106. package/bundle/obf/src/generators/methods.js +1 -1
  107. package/bundle/obf/src/generators/package.js +1 -1
  108. package/bundle/obf/src/generators/page.js +1 -1
  109. package/bundle/obf/src/generators/publish.js +1 -1
  110. package/bundle/obf/src/generators/route.js +1 -1
  111. package/bundle/obf/src/generators/service.js +1 -1
  112. package/bundle/obf/src/generators/services/_index.js +1 -1
  113. package/bundle/obf/src/generators/services/openssl.js +1 -1
  114. package/bundle/obf/src/generators/services/translation.js +1 -1
  115. package/bundle/obf/src/maka.js +1 -1
  116. package/bundle/obf/src/tool.js +1 -1
  117. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  118. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  120. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  122. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  124. package/bundle/obf/src/tools/https/https.class.js +1 -1
  125. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  126. package/bundle/obf/src/tools/log/log.class.js +1 -1
  127. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  129. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  131. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  133. package/package.json +1 -1
@@ -1 +1 @@
1
- function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x137;let f=c[d];return f;},a97d(a,b);}const a97r=a97d;(function(a,b){const o=a97d,c=a();while(!![]){try{const d=-parseInt(o(0x137))/0x1*(parseInt(o(0x13c))/0x2)+parseInt(o(0x15e))/0x3*(-parseInt(o(0x16d))/0x4)+-parseInt(o(0x165))/0x5*(parseInt(o(0x162))/0x6)+-parseInt(o(0x13e))/0x7*(parseInt(o(0x150))/0x8)+-parseInt(o(0x169))/0x9*(parseInt(o(0x158))/0xa)+parseInt(o(0x166))/0xb+parseInt(o(0x174))/0xc*(parseInt(o(0x17f))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xada80));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a97d;if(c){const e=c[p(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const q=a97d;return a97a['toString']()[q(0x157)]('(((.+)+)+)+$')['toString']()[q(0x141)](a97a)[q(0x157)](q(0x184));});a97a();import a97e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';const aliases=['comp'];Generator[a97r(0x153)]({'name':a97r(0x14d),'aliases':aliases,'usage':a97r(0x181),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':['baseDir'],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const s=a97r;try{const c=[s(0x160),s(0x159),s(0x16e),'layouts'];if(b[s(0x140)]&&!c[s(0x14e)](b[s(0x140)])){Log[s(0x14f)](s(0x13a)+b[s(0x140)]+'\x22'),Log[s(0x14f)](s(0x17a)+c[s(0x13f)](',\x20'));throw new UsageError();}const d=this[s(0x16c)][s(0x16f)](),f=b[s(0x140)]?s(0x163)+b[s(0x140)]:s(0x151),g=this[s(0x16c)]['pathFromApp']({'pathParts':[f,b['dir'],b[s(0x156)],paramCase(b[s(0x156)])]}),h=await this['fsi'][s(0x173)]();this[s(0x16c)][s(0x175)](h,async()=>{const t=s;typeof h[t(0x168)]['test']===t(0x182)&&(h[t(0x168)][t(0x17d)]=h['template'][t(0x17d)]===t(0x13d)?!![]:![],this['fsi'][t(0x180)](t(0x17d),h['template'][t(0x17d)]));typeof h[t(0x168)][t(0x15d)]==='string'&&(h[t(0x168)][t(0x15d)]=h['template'][t(0x15d)]===t(0x13d)?!![]:![],this[t(0x16c)][t(0x180)](t(0x15d),h[t(0x168)][t(0x15d)]));typeof h[t(0x168)]['js']==='string'&&(h[t(0x168)]['js']=h[t(0x168)]['js']===t(0x13d)?!![]:![],this[t(0x16c)][t(0x180)]('js',h['template']['js']));!h[t(0x164)]&&(h[t(0x164)]={});!b['root']&&!this[t(0x16c)][t(0x178)]('ramda')&&(Log[t(0x167)](t(0x149)),await this['fsi']['installNpmPackage'](t(0x17e),{'cwd':d}));if(!b['root']&&!this[t(0x16c)]['checkNpmPackage'](t(0x144))){Log[t(0x14f)](t(0x14a));return;}const i={'name':pascalCase(b[t(0x156)]),'myPath':a97e[t(0x15b)](this['fsi']['pathFromProject']({}),g),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x156)]),'camelCaseName':camelCase(b[t(0x156)]),'fileName':paramCase(b[t(0x156)]),'graphql':h['engines'][t(0x16a)],'features':h[t(0x164)],'client':h[t(0x170)][t(0x152)],'api':h[t(0x170)][t(0x179)],'ssr':h[t(0x170)]['ssr'],'test':h['engines'][t(0x17d)],'theme':h[t(0x170)][t(0x171)],'isLayout':![],'isComponent':!![],'withTranslations':h['features']['withTranslations']};this[t(0x16c)][t(0x168)]({'srcPath':'component/component.js','destPath':g+'.js','context':i,'framework':'react','config':h});h[t(0x170)][t(0x17d)]!==t(0x148)&&this[t(0x16c)][t(0x168)]({'srcPath':t(0x161),'destPath':g+'.tests.js','context':i,'framework':'react','config':h});h['template']['css']&&(this[t(0x16c)][t(0x168)]({'srcPath':t(0x17c),'destPath':g+t(0x14b),'context':Object[t(0x15a)]({},i,{'className':paramCase(b[t(0x156)])}),'config':h}),this[t(0x16c)][t(0x155)]({'filePath':g+'.'+h[t(0x170)]['js'],'content':t(0x15f)+i[t(0x138)]+'.'+h['engines'][t(0x15d)]+'\x27;'}));const j=b[t(0x147)]?'/'+b['dir']+'/':'/',k=''+f+j+i['fileName']+'/'+i['fileName'];let l;if(h[t(0x170)]['ssr']===t(0x13d)){const m=this[t(0x16c)]['pathFromApp']({'pathParts':[t(0x139),t(0x14c),t(0x17b),t(0x145)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x16c)][t(0x143)]({'pathParts':[t(0x139),'startup',t(0x152),t(0x145)]});l=this['fsi'][t(0x176)]({'pathParts':[n],'config':h});}h[t(0x170)]['client']===t(0x144)||h[t(0x170)][t(0x152)]===t(0x13b)?(h[t(0x170)]['js']==='tsx'?this[t(0x16c)][t(0x155)]({'filePath':l,'content':t(0x16b)+i[t(0x177)]+t(0x146)+k+'\x27;\x0a'}):this[t(0x16c)][t(0x155)]({'filePath':l,'content':t(0x16b)+i[t(0x177)]+t(0x146)+k+'.'+h[t(0x170)]['js']+t(0x15c)}),this[t(0x16c)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i[t(0x177)]+t(0x183)})):this['fsi'][t(0x142)]({'filePath':l,'content':t(0x154)+k+'.'+h[t(0x170)]['js']+t(0x15c)});});}catch(i){Log[s(0x14f)](i);}});function a97c(){const u=['2eDTAaU','cssCaseName','imports','Invalid\x20directory\x20option\x20\x22','reflux','1073092WoouFm','true','3903802BywetJ','join','baseDir','constructor','injectAtEndOfFile','pathFromApp','react','templates.js','\x20}\x20from\x20\x27','dir','none','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','.css','startup','component','includes','error','16IPliYy','/imports/ui/components','client','create','import\x20\x27','injectAtBeginningOfFile','resourceName','search','1109180AmNLGp','components','assign','relative','\x27;\x0a','css','3QmNSAh','import\x20\x27./','hooks','test/test.js','234ZvJDFa','/imports/ui/','features','45705RqWfri','14296887QHXMVe','warn','template','63JHQmKY','graphql','import\x20{\x20','fsi','2685364ItFdie','pages','findAppDirectory','engines','theme','apply','getProjectConfig','40851708TlDaJg','withValue','rewriteDestinationPathForEngine','className','checkNpmPackage','api','Valid\x20options\x20are:\x20','lib','template/template.css','test','ramda','13xYVQdH','setTemplate','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','string','\x20};\x0a','(((.+)+)+)+$'];a97c=function(){return u;};return a97c();}
1
+ const a97r=a97d;function a97c(){const u=['api','149654leqDda','pages','test','className','tsx','669436WcyTSf','1110pnjdIr','error','templates.js','checkNpmPackage','lib','true','pathFromProject','setTemplate','1203HNKMYm','(((.+)+)+)+$','installNpmPackage','client','engines','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','create','fsi','\x20}\x20from\x20\x27','imports','ramda','import\x20\x27','findAppDirectory','14771112myQaXu','react','maka\x20g:comp\x20todos/todos-item','import\x20{\x20','dir','search','apply','fileName','assign','none','.js','rewriteDestinationPathForEngine','getProjectConfig','Invalid\x20directory\x20option\x20\x22','component/component.js','components','startup','comp','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','reflux','baseDir','1301480jtztHe','2806507oPEhDh','.tests.js','pathFromApp','\x20};\x0a','graphql','features','toString','196077xaCOTY','18rBBkWr','injectAtEndOfFile','warn','css','string','injectAtBeginningOfFile','root','export\x20{\x20','ssr','/imports/ui/components','relative','import\x20\x27./','78zLZBmI','10OOpHIX','template','join','hooks','includes','layouts','resourceName','5Rbxodz','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Valid\x20options\x20are:\x20'];a97c=function(){return u;};return a97c();}(function(a,b){const o=a97d,c=a();while(!![]){try{const d=-parseInt(o(0x1f5))/0x1+parseInt(o(0x1fb))/0x2*(parseInt(o(0x203))/0x3)+parseInt(o(0x1fa))/0x4*(-parseInt(o(0x1f1))/0x5)+parseInt(o(0x1e9))/0x6*(-parseInt(o(0x1dc))/0x7)+-parseInt(o(0x1d4))/0x8*(parseInt(o(0x1dd))/0x9)+parseInt(o(0x1ea))/0xa*(-parseInt(o(0x1d5))/0xb)+parseInt(o(0x210))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x2ed4a));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a97d;if(c){const e=c[p(0x216)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const q=a97d;return a97a['toString']()[q(0x215)](q(0x204))[q(0x1db)]()['constructor'](a97a)['search']('(((.+)+)+)+$');});a97a();import a97e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a97d(a,b);}const aliases=[a97r(0x1d0)];Generator[a97r(0x209)]({'name':'component','aliases':aliases,'usage':a97r(0x1d1),'shortDesc':a97r(0x208),'validOpts':['baseDir'],'examples':[a97r(0x212)]},async function(a,b){const s=a97r;try{const c=[s(0x1ed),s(0x21f),s(0x1f6),s(0x1ef)];if(b[s(0x1d3)]&&!c[s(0x1ee)](b[s(0x1d3)])){Log[s(0x1fc)](s(0x21d)+b['baseDir']+'\x22'),Log[s(0x1fc)](s(0x1f3)+c[s(0x1ec)](',\x20'));throw new UsageError();}const d=this['fsi'][s(0x20f)](),f=b[s(0x1d3)]?'/imports/ui/'+b['baseDir']:s(0x1e6),g=this[s(0x20a)][s(0x1d7)]({'pathParts':[f,b[s(0x214)],b[s(0x1f0)],paramCase(b['resourceName'])]}),h=await this[s(0x20a)][s(0x21c)]();this[s(0x20a)]['withValue'](h,async()=>{const t=s;typeof h['template'][t(0x1f7)]===t(0x1e1)&&(h[t(0x1eb)]['test']=h['template'][t(0x1f7)]==='true'?!![]:![],this[t(0x20a)][t(0x202)]('test',h[t(0x1eb)][t(0x1f7)]));typeof h['template']['css']===t(0x1e1)&&(h['template']['css']=h['template']['css']===t(0x200)?!![]:![],this[t(0x20a)][t(0x202)](t(0x1e0),h[t(0x1eb)]['css']));typeof h['template']['js']==='string'&&(h[t(0x1eb)]['js']=h[t(0x1eb)]['js']===t(0x200)?!![]:![],this[t(0x20a)]['setTemplate']('js',h[t(0x1eb)]['js']));!h[t(0x1da)]&&(h[t(0x1da)]={});!b[t(0x1e3)]&&!this[t(0x20a)][t(0x1fe)](t(0x20d))&&(Log[t(0x1df)](t(0x1f2)),await this['fsi'][t(0x205)](t(0x20d),{'cwd':d}));if(!b['root']&&!this[t(0x20a)]['checkNpmPackage']('react')){Log[t(0x1fc)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x1f0)]),'myPath':a97e[t(0x1e7)](this[t(0x20a)][t(0x201)]({}),g),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1f0)]),'fileName':paramCase(b[t(0x1f0)]),'graphql':h[t(0x207)][t(0x1d9)],'features':h['features'],'client':h[t(0x207)][t(0x206)],'api':h[t(0x207)][t(0x1f4)],'ssr':h[t(0x207)][t(0x1e5)],'test':h[t(0x207)][t(0x1f7)],'theme':h[t(0x207)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0x1da)]['withTranslations']};this[t(0x20a)][t(0x1eb)]({'srcPath':t(0x21e),'destPath':g+t(0x21a),'context':i,'framework':t(0x211),'config':h});h['engines']['test']!==t(0x219)&&this['fsi']['template']({'srcPath':'test/test.js','destPath':g+t(0x1d6),'context':i,'framework':t(0x211),'config':h});h[t(0x1eb)][t(0x1e0)]&&(this[t(0x20a)][t(0x1eb)]({'srcPath':'template/template.css','destPath':g+'.css','context':Object[t(0x218)]({},i,{'className':paramCase(b[t(0x1f0)])}),'config':h}),this[t(0x20a)][t(0x1e2)]({'filePath':g+'.'+h[t(0x207)]['js'],'content':t(0x1e8)+i['cssCaseName']+'.'+h[t(0x207)][t(0x1e0)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x214)]+'/':'/',k=''+f+j+i[t(0x217)]+'/'+i['fileName'];let l;if(h['engines']['ssr']==='true'){const m=this[t(0x20a)][t(0x1d7)]({'pathParts':[t(0x20c),t(0x220),t(0x1ff),t(0x1fd)]});l=this[t(0x20a)][t(0x21b)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x1d7)]({'pathParts':['imports',t(0x220),'client',t(0x1fd)]});l=this[t(0x20a)][t(0x21b)]({'pathParts':[n],'config':h});}h[t(0x207)][t(0x206)]===t(0x211)||h['engines'][t(0x206)]===t(0x1d2)?(h[t(0x207)]['js']===t(0x1f9)?this[t(0x20a)][t(0x1e2)]({'filePath':l,'content':t(0x213)+i[t(0x1f8)]+t(0x20b)+k+'\x27;\x0a'}):this['fsi'][t(0x1e2)]({'filePath':l,'content':t(0x213)+i[t(0x1f8)]+t(0x20b)+k+'.'+h['engines']['js']+'\x27;\x0a'}),this[t(0x20a)]['injectAtEndOfFile']({'filePath':l,'content':t(0x1e4)+i[t(0x1f8)]+t(0x1d8)})):this[t(0x20a)][t(0x1de)]({'filePath':l,'content':t(0x20e)+k+'.'+h[t(0x207)]['js']+'\x27;\x0a'});});}catch(i){Log[s(0x1fc)](i);}});
@@ -1 +1 @@
1
- const a98k=a98d;function a98c(){const n=['713529laqUPH','6jsLcvI','5sPBBjp','toString','maka\x20{generate,\x20g}:{config}\x20<name>','config/settings.json','3726522eUbilF','resourceName','config','fsi','7RSpSox','308423YCsRzt','(((.+)+)+)+$','production','maka\x20g:config\x20production','isDocker','search','pathFromProject','config/process.env','withValue','ubuntu','684712PoEYqy','9831646UAApyH','45kXznwt','1754950WYBkfc','getProjectConfig','3238964uzMVjj','create','appName','dev','apply','constructor','template','Generate\x20configuration\x20settings.'];a98c=function(){return n;};return a98c();}(function(a,b){const h=a98d,c=a();while(!![]){try{const d=-parseInt(h(0x15b))/0x1+parseInt(h(0x151))/0x2*(parseInt(h(0x150))/0x3)+parseInt(h(0x148))/0x4+-parseInt(h(0x152))/0x5*(parseInt(h(0x156))/0x6)+parseInt(h(0x15a))/0x7*(-parseInt(h(0x143))/0x8)+-parseInt(h(0x145))/0x9*(-parseInt(h(0x146))/0xa)+-parseInt(h(0x144))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x78154));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a[j(0x153)]()[j(0x160)](j(0x15c))[j(0x153)]()[j(0x14d)](a98a)[j(0x160)](j(0x15c));});a98a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x13f;let f=c[d];return f;},a98d(a,b);}Generator[a98k(0x149)]({'name':a98k(0x158),'usage':a98k(0x154),'shortDesc':a98k(0x14f),'validOpts':['isDocker'],'examples':[a98k(0x15e)]},function(a,b){const l=a98k,c=this[l(0x159)][l(0x147)]();this[l(0x159)][l(0x141)](c,async()=>{const m=l,d={'app':c[m(0x14a)],'appFileCase':paramCase(c[m(0x14a)]),'name':pascalCase(b[m(0x157)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'userName':m(0x142),'isDocker':b[m(0x15f)]};let e=a[0x0];if(e===m(0x14b))e='development';else e==='prod'&&(e=m(0x15d));const f=this[m(0x159)][m(0x13f)]({'pathParts':[m(0x158),e,'settings.json']});this[m(0x159)][m(0x14e)]({'srcPath':m(0x155),'destPath':f,'context':d,'config':c});if(!b[m(0x15f)]){const g=this[m(0x159)][m(0x13f)]({'pathParts':[m(0x158),e,'process.env']});this[m(0x159)][m(0x14e)]({'srcPath':m(0x140),'destPath':g,'context':d,'config':c});}});});
1
+ function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x15d;let f=c[d];return f;},a98d(a,b);}const a98j=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=parseInt(h(0x17a))/0x1*(parseInt(h(0x17d))/0x2)+parseInt(h(0x167))/0x3+-parseInt(h(0x179))/0x4+-parseInt(h(0x163))/0x5*(parseInt(h(0x165))/0x6)+-parseInt(h(0x171))/0x7+parseInt(h(0x16c))/0x8*(-parseInt(h(0x173))/0x9)+parseInt(h(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x709b4));const a98b=(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;};}()),a98a=a98b(this,function(){const i=a98d;return a98a['toString']()['search']('(((.+)+)+)+$')[i(0x174)]()[i(0x168)](a98a)[i(0x16a)](i(0x177));});a98a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98j(0x178)]({'name':a98j(0x162),'usage':a98j(0x166),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a98j(0x16f)],'examples':[a98j(0x160)]},function(a,b){const k=a98j,c=this[k(0x175)][k(0x15e)]();this['fsi'][k(0x164)](c,async()=>{const l=k,d={'app':c[l(0x17b)],'appFileCase':paramCase(c[l(0x17b)]),'name':pascalCase(b[l(0x15d)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'userName':l(0x16e),'isDocker':b[l(0x16f)]};let e=a[0x0];if(e===l(0x15f))e='development';else e===l(0x16d)&&(e=l(0x17c));const f=this[l(0x175)][l(0x169)]({'pathParts':['config',e,l(0x172)]});this[l(0x175)][l(0x176)]({'srcPath':l(0x161),'destPath':f,'context':d,'config':c});if(!b[l(0x16f)]){const g=this[l(0x175)][l(0x169)]({'pathParts':[l(0x162),e,l(0x16b)]});this[l(0x175)][l(0x176)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});function a98c(){const m=['prod','ubuntu','isDocker','13146150RYVhGO','2035271zQmvom','settings.json','107613rVZgtm','toString','fsi','template','(((.+)+)+)+$','create','652240BHNZFx','856rAxGLA','appName','production','2110BTeFVQ','resourceName','getProjectConfig','dev','maka\x20g:config\x20production','config/settings.json','config','40yKvVtI','withValue','580494KLdBHI','maka\x20{generate,\x20g}:{config}\x20<name>','1032621OtqcaJ','constructor','pathFromProject','search','process.env','584eYVcQo'];a98c=function(){return m;};return a98c();}
@@ -1 +1 @@
1
- const a99q=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x76;let f=c[d];return f;},a99d(a,b);}(function(a,b){const n=a99d,c=a();while(!![]){try{const d=parseInt(n(0x7d))/0x1+-parseInt(n(0x85))/0x2*(parseInt(n(0x94))/0x3)+-parseInt(n(0x8d))/0x4+parseInt(n(0xaf))/0x5+parseInt(n(0x8f))/0x6+parseInt(n(0x82))/0x7*(-parseInt(n(0x8b))/0x8)+-parseInt(n(0x7f))/0x9*(-parseInt(n(0xaa))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xa184b));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x84)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0xa9)]()[p(0x83)](p(0x91))[p(0xa9)]()[p(0x95)](a99a)[p(0x83)](p(0x91));});a99a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a99c(){const t=['engines','config.','list','register-','warn','17464OSFjpL','fsi','4519268fRqyJW','dir','2946912wsQZvD','startup','(((.+)+)+)+$','imports','pgsql','435204FlPsqB','constructor','mssql','type','conn.','MS\x20SQL','injectAtEndOfFile','dbc/conn.js',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','maka\x20g:dbc\x20geoserver\x20--type=pgsql','-dbc.','better-sqlite3','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','options','dbc/register-dbc.js','error','create','tsx','maka\x20g:dbc\x20todos\x20--type=sqlite','Invalid\x20type\x20','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','toString','20faDNfl','index.','checkNpmPackage','sqlite','server','2369530GzIwUJ','dbc/config.js','dbc','resourceName','DB\x20Driver','pathFromApp','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','template','294935IwKdsM','PostgreSQL','6280506QGMyCC','import\x20\x27./register-','installNpmPackage','1841HVqrVJ','search','apply','4sHXnFl'];a99c=function(){return t;};return a99c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a99q(0xa4)]({'name':a99q(0x77),'usage':a99q(0x7b),'shortDesc':a99q(0xa8),'validOpts':[a99q(0x97),'dir'],'examples':[a99q(0x9d),'maka\x20g:dbc\x20azure\x20--type=mssql',a99q(0xa6)]},async function(a,b){const r=a99q;try{const c=await this[r(0x8c)]['getProjectConfig'](),d=this[r(0x8c)][r(0x7a)]({}),f=paramCase(b[r(0x78)]);if(!b[r(0x97)]){const h={'type':r(0x88),'name':'dbAnswer','message':r(0x79),'choices':[{'name':r(0x7e),'value':r(0x93)},{'name':r(0x99),'value':r(0x96)}]},{dbAnswer:i}=await Actions[r(0xa1)](h);i&&(b[r(0x97)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[r(0x78)]),'type':b[r(0x97)],'engine':c[r(0x86)]['js'],'noRename':!![]};this[r(0x8c)]['withValue'](c,async()=>{const s=r;let j='js';c[s(0x86)]['js']===s(0xa5)&&(j='ts');const k=[s(0x96),s(0x93)];if(k['indexOf'](g[s(0x97)])<0x0){const m=g[s(0x97)]?g[s(0x97)]:'(blank)';Log[s(0xa3)](s(0xa7)+m+s(0x9c));return;}b[s(0x97)]==='pgsql'&&!this[s(0x8c)][s(0xac)]('pg')&&(Log[s(0x8a)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0x81)]('pg',{'cwd':d}));b[s(0x97)]===s(0x96)&&!this[s(0x8c)][s(0xac)](s(0x96))&&(Log[s(0x8a)](s(0xa0)),await this['fsi'][s(0x81)](s(0x96),{'cwd':d}));b[s(0x97)]===s(0xad)&&!this['fsi']['checkNpmPackage'](s(0x9f))&&(Log[s(0x8a)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0x8c)][s(0x81)](s(0x9f),{'cwd':d}));this[s(0x8c)][s(0x7c)]({'srcPath':s(0x76),'destPath':this[s(0x8c)][s(0x7a)]({'pathParts':[s(0x92),s(0x90),'server',s(0x77),b[s(0x8e)],f,s(0x87)+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':s(0x9b),'destPath':this[s(0x8c)]['pathFromApp']({'pathParts':[s(0x92),s(0x90),s(0xae),s(0x77),b[s(0x8e)],f,s(0x98)+j]}),'context':g,'config':c}),this[s(0x8c)]['template']({'srcPath':s(0xa2),'destPath':this[s(0x8c)]['pathFromApp']({'pathParts':[s(0x92),s(0x90),'server',s(0x89)+f+s(0x9e)+j]}),'context':g,'config':c});const l=this[s(0x8c)][s(0x7a)]({'pathParts':[s(0x92),'startup','server',s(0xab)+c[s(0x86)]['js']]});this[s(0x8c)][s(0x9a)]({'filePath':l,'content':s(0x80)+f+'-dbc\x27;'});});}catch(j){Log[r(0xa3)](j);}});
1
+ const a99q=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=parseInt(n(0x1a9))/0x1*(-parseInt(n(0x1a0))/0x2)+-parseInt(n(0x1b1))/0x3+-parseInt(n(0x1ae))/0x4*(parseInt(n(0x1ad))/0x5)+parseInt(n(0x19d))/0x6*(-parseInt(n(0x1b2))/0x7)+-parseInt(n(0x1b4))/0x8+parseInt(n(0x188))/0x9*(-parseInt(n(0x1aa))/0xa)+-parseInt(n(0x18e))/0xb*(-parseInt(n(0x185))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xc7253));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0x1a6)]()['search'](p(0x1b0))[p(0x1a6)]()[p(0x19a)](a99a)['search'](p(0x1b0));});a99a();function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x182;let f=c[d];return f;},a99d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a99c(){const t=['type','66479941UsYOfR','maka\x20g:dbc\x20todos\x20--type=sqlite','dbc','template','config.','import\x20\x27./register-','better-sqlite3','PostgreSQL','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','fsi','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','getProjectConfig','constructor','apply','list','6WMVfLK','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','engines','951330HjBApk','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','resourceName','pgsql','-dbc\x27;','warn','toString','sqlite','dbc/register-dbc.js','2LsWeRO','600MVHhkA','installNpmPackage','Invalid\x20type\x20','22510shUpCl','668lsiWQN','server','(((.+)+)+)+$','2431398lwiHeK','10256414kCZmbU','checkNpmPackage','3731200OTkIFw','MS\x20SQL','pathFromApp','error','(blank)','tsx','dir','mssql','12HMDugb','create','startup','117405XLlXVP','withValue','maka\x20g:dbc\x20geoserver\x20--type=pgsql','register-','imports'];a99c=function(){return t;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a99q(0x186)]({'name':a99q(0x190),'usage':a99q(0x198),'shortDesc':a99q(0x1a1),'validOpts':[a99q(0x18d),a99q(0x183)],'examples':[a99q(0x18a),'maka\x20g:dbc\x20azure\x20--type=mssql',a99q(0x18f)]},async function(a,b){const r=a99q;try{const c=await this['fsi'][r(0x199)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b[r(0x1a2)]);if(!b[r(0x18d)]){const h={'type':r(0x19c),'name':'dbAnswer','message':'DB\x20Driver','choices':[{'name':r(0x195),'value':r(0x1a3)},{'name':r(0x1b5),'value':'mssql'}]},{dbAnswer:i}=await Actions['options'](h);i&&(b[r(0x18d)]=i);}const g={'name':pascalCase(b[r(0x1a2)]),'fileName':paramCase(b[r(0x1a2)]),'camelCase':camelCase(b[r(0x1a2)]),'type':b[r(0x18d)],'engine':c[r(0x19f)]['js'],'noRename':!![]};this[r(0x197)][r(0x189)](c,async()=>{const s=r;let j='js';c['engines']['js']===s(0x182)&&(j='ts');const k=[s(0x184),'pgsql'];if(k['indexOf'](g['type'])<0x0){const m=g[s(0x18d)]?g[s(0x18d)]:s(0x1b8);Log[s(0x1b7)](s(0x1ac)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0x18d)]===s(0x1a3)&&!this[s(0x197)]['checkNpmPackage']('pg')&&(Log['warn'](s(0x19e)),await this[s(0x197)][s(0x1ab)]('pg',{'cwd':d}));b[s(0x18d)]===s(0x184)&&!this[s(0x197)][s(0x1b3)](s(0x184))&&(Log[s(0x1a5)](s(0x196)),await this[s(0x197)][s(0x1ab)]('mssql',{'cwd':d}));b['type']===s(0x1a7)&&!this[s(0x197)]['checkNpmPackage'](s(0x194))&&(Log[s(0x1a5)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0x197)][s(0x1ab)](s(0x194),{'cwd':d}));this['fsi'][s(0x191)]({'srcPath':'dbc/config.js','destPath':this['fsi']['pathFromApp']({'pathParts':['imports',s(0x187),s(0x1af),s(0x190),b[s(0x183)],f,s(0x192)+j]}),'context':g,'config':c}),this[s(0x197)][s(0x191)]({'srcPath':'dbc/conn.js','destPath':this[s(0x197)][s(0x1b6)]({'pathParts':[s(0x18c),s(0x187),s(0x1af),s(0x190),b[s(0x183)],f,'conn.'+j]}),'context':g,'config':c}),this[s(0x197)]['template']({'srcPath':s(0x1a8),'destPath':this[s(0x197)][s(0x1b6)]({'pathParts':['imports',s(0x187),'server',s(0x18b)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x197)][s(0x1b6)]({'pathParts':[s(0x18c),s(0x187),s(0x1af),'index.'+c[s(0x19f)]['js']]});this['fsi']['injectAtEndOfFile']({'filePath':l,'content':s(0x193)+f+s(0x1a4)});});}catch(j){Log[r(0x1b7)](j);}});
@@ -1 +1 @@
1
- const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=parseInt(f(0x137))/0x1+-parseInt(f(0x124))/0x2*(-parseInt(f(0x122))/0x3)+parseInt(f(0x131))/0x4+parseInt(f(0x11e))/0x5+-parseInt(f(0x11c))/0x6+-parseInt(f(0x126))/0x7*(-parseInt(f(0x136))/0x8)+-parseInt(f(0x11f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xaf142));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a[h(0x138)]()[h(0x139)](h(0x12c))[h(0x138)]()[h(0x12a)](a100a)[h(0x139)](h(0x12c));});function a100c(){const l=['8pWHWHB','1106844JMoOUZ','toString','search','cert','5167212acWZdJ','Dockerfile','3442050plPOve','25434009GyAHOV','fsi','build','12LymPjt','join','338298DLTJfN','getProjectConfig','3982636DEWbLA','maka\x20g:dockerfile','docker/Dockerfile','getGlobalConfig','constructor','appName','(((.+)+)+)+$','apply','Generate\x20an\x20updated\x20dockerfile','service','template','5454108RMpwfe','withValue','isFile','findProjectDirectory','dockerfile'];a100c=function(){return l;};return a100c();}a100a();function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x11b;let f=c[d];return f;},a100d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';Generator['create']({'name':a100i(0x135),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a100i(0x12e),'validOpts':[],'noResource':!![],'examples':[a100i(0x127)]},async function(){const j=a100i;try{const a=await this['fsi'][j(0x125)](),b=await this['fsi'][j(0x129)](),c=this[j(0x120)][j(0x134)]();this[j(0x120)][j(0x132)](a,async()=>{const k=j,d={'app':b[k(0x12b)],'config':a,'appPath':a100e[k(0x123)](c,'app'),'bundlePath':a100e[k(0x123)](c,k(0x121),'app.tar.gz'),'useCert':this[k(0x120)][k(0x133)](b[k(0x11b)])};this[k(0x120)][k(0x130)]({'srcPath':k(0x128),'destPath':a100e[k(0x123)](c,k(0x11d)),'framework':k(0x12f),'context':d,'config':a});});}catch(d){Log['error'](d);}});
1
+ const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=parseInt(f(0x166))/0x1*(parseInt(f(0x150))/0x2)+-parseInt(f(0x167))/0x3+parseInt(f(0x155))/0x4+-parseInt(f(0x169))/0x5+-parseInt(f(0x157))/0x6+-parseInt(f(0x154))/0x7*(parseInt(f(0x164))/0x8)+parseInt(f(0x15a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x94349));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a[h(0x168)]()[h(0x14d)](h(0x15d))[h(0x168)]()[h(0x15f)](a100a)['search'](h(0x15d));});a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';function a100c(){const l=['14110335ngCIpN','Dockerfile','maka\x20{generate,\x20g}:dockerfile','(((.+)+)+)+$','docker/Dockerfile','constructor','join','service','getGlobalConfig','create','3691112fKYhTi','withValue','4rEcmiG','2129928gALcKc','toString','1017015KKTKqT','cert','fsi','search','error','findProjectDirectory','463156SVehdo','template','app','maka\x20g:dockerfile','14IHpGgd','1386764zzfGIK','app.tar.gz','2385672BdcMch','isFile','apply'];a100c=function(){return l;};return a100c();}function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x14d;let f=c[d];return f;},a100d(a,b);}Generator[a100i(0x163)]({'name':'dockerfile','usage':a100i(0x15c),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a100i(0x153)]},async function(){const j=a100i;try{const a=await this['fsi']['getProjectConfig'](),b=await this[j(0x16b)][j(0x162)](),c=this[j(0x16b)][j(0x14f)]();this[j(0x16b)][j(0x165)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a100e[k(0x160)](c,k(0x152)),'bundlePath':a100e['join'](c,'build',k(0x156)),'useCert':this['fsi'][k(0x158)](b[k(0x16a)])};this[k(0x16b)][k(0x151)]({'srcPath':k(0x15e),'destPath':a100e[k(0x160)](c,k(0x15b)),'framework':k(0x161),'context':d,'config':a});});}catch(d){Log[j(0x14e)](d);}});
@@ -1 +1 @@
1
- const a101s=a101d;(function(a,b){const p=a101d,c=a();while(!![]){try{const d=parseInt(p(0x198))/0x1*(-parseInt(p(0x17b))/0x2)+-parseInt(p(0x181))/0x3*(parseInt(p(0x178))/0x4)+-parseInt(p(0x182))/0x5*(-parseInt(p(0x193))/0x6)+parseInt(p(0x19e))/0x7+-parseInt(p(0x18c))/0x8+parseInt(p(0x190))/0x9*(parseInt(p(0x16f))/0xa)+-parseInt(p(0x1aa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xf1796));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a101d;if(c){const e=c[q(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const r=a101d;return a101a[r(0x1a6)]()['search'](r(0x16d))[r(0x1a6)]()[r(0x165)](a101a)[r(0x169)](r(0x16d));});a101a();import a101e from'path';import{paramCase,pascalCase,camelCase}from'change-case';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x162;let f=c[d];return f;},a101d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':'hook','aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[a101s(0x1ad)],'examples':['maka\x20g:hook\x20cool-hook']},async function(a,b){const t=a101s;Log[t(0x16e)](t(0x17e)+a[0x0]+t(0x18f));try{const c=[t(0x189),t(0x1ab),t(0x18e),t(0x167)];if(b[t(0x1ad)]&&!c[t(0x173)](b['baseDir'])){Log['error'](t(0x177)+b[t(0x1ad)]+'\x22'),Log[t(0x17f)](t(0x179)+c[t(0x186)](',\x20'));throw new UsageError();}const d=this[t(0x16a)]['checkNpmPackage'](t(0x166));if(!d){Log[t(0x17f)](t(0x1a5));throw new UsageError();}const f=this[t(0x16a)]['pathFromApp'](b),g=b[t(0x1ad)]?t(0x163)+b[t(0x1ad)]:t(0x16b),h=this[t(0x16a)][t(0x174)]({'pathParts':[g,b[t(0x1a3)],b['resourceName'],paramCase(b['resourceName'])]}),i=await this['fsi'][t(0x1a4)]();this['fsi']['withValue'](i,async()=>{const u=t;typeof i[u(0x164)][u(0x1a0)]===u(0x19d)&&(i['template']['css']=i['template'][u(0x1a0)]==='true'?!![]:![],this[u(0x16a)][u(0x176)](u(0x1a0),i[u(0x164)][u(0x1a0)]));i[u(0x168)][u(0x1a9)]===u(0x183)&&!this['fsi']['checkNpmPackage'](u(0x170))&&(Log[u(0x192)](u(0x17a)),await this['fsi'][u(0x19c)](u(0x195),{'cwd':f}));const j={'cssCaseName':paramCase(b[u(0x197)]),'camelCaseName':camelCase(b[u(0x197)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[u(0x197)]),'graphql':i[u(0x168)][u(0x1a9)],'theme':i[u(0x168)][u(0x1a8)],'features':i['features'],'myPath':a101e[u(0x191)](this[u(0x16a)][u(0x16c)]({}),h),'fileName':paramCase(b[u(0x197)]),'isComponent':![],'isLayout':![],'withTranslations':i[u(0x19b)][u(0x1ac)]};this['fsi'][u(0x164)]({'srcPath':'hook/hook.js','destPath':h+u(0x1a1),'context':j,'config':i,'framework':u(0x166)});i[u(0x164)][u(0x1a0)]&&(this[u(0x16a)]['template']({'srcPath':'template/template.css','destPath':h+'.css','context':Object[u(0x18d)]({},j,{'className':j[u(0x1a2)]}),'config':i}),this[u(0x16a)]['injectAtBeginningOfFile']({'filePath':h+'.'+i[u(0x168)]['js'],'content':u(0x19a)+j['fileName']+'.'+i[u(0x168)]['css']+'\x27;'}));i[u(0x168)]['test']!==u(0x18b)&&this[u(0x16a)][u(0x164)]({'srcPath':u(0x162),'destPath':h+u(0x188),'framework':u(0x166),'context':j,'config':i});const k=b[u(0x1a3)]?'/'+b[u(0x1a3)]+'/':'/',l=''+g+k+j['fileName']+'/'+j[u(0x171)];let m;if(i[u(0x168)][u(0x194)]==='true'){const n=this['fsi'][u(0x174)]({'pathParts':[u(0x172),u(0x199),u(0x185),u(0x180)]});m=this[u(0x16a)][u(0x18a)]({'pathParts':[n],'config':i});}else{const o=this[u(0x16a)][u(0x174)]({'pathParts':[u(0x172),u(0x199),'client',u(0x180)]});m=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[o],'config':i});}i['engines']['client']==='react'?(i[u(0x168)]['js']==='tsx'?this[u(0x16a)]['injectAtBeginningOfFile']({'filePath':m,'content':'import\x20{\x20'+j['className']+u(0x17c)+l+u(0x19f)}):this[u(0x16a)][u(0x187)]({'filePath':m,'content':u(0x196)+j[u(0x184)]+u(0x17c)+l+'.'+i[u(0x168)]['js']+u(0x19f)}),this['fsi'][u(0x1a7)]({'filePath':m,'content':'export\x20{\x20'+j['className']+'\x20};\x0a'})):this['fsi'][u(0x1a7)]({'filePath':m,'content':u(0x175)+l+'.'+i[u(0x168)]['js']+u(0x19f)});});}catch(j){Log[t(0x17f)](j);}});function a101c(){const v=['/imports/ui/hooks','pathFromProject','(((.+)+)+)+$','notice','14470xxvboY','@apollo/client','fileName','imports','includes','pathFromApp','import\x20\x27','setTemplate','Invalid\x20directory\x20option\x20\x22','48036xCXtJz','Valid\x20options\x20are:\x20','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','598SJHwsV','\x20}\x20from\x20\x27','apply','Creating\x20','error','templates.js','24plrPeP','5WEIFtQ','apollo','className','lib','join','injectAtBeginningOfFile','.app-tests.js','hooks','rewriteDestinationPathForEngine','none','26896rYiKNQ','assign','pages','\x20hook...','6066CieCeg','relative','warn','8745162AwoZkk','ssr','@apollo/client\x20isomorphic-fetch','import\x20{\x20','resourceName','3023svQAgq','startup','import\x20\x27./','features','installNpmPackage','string','3186274PusAVo','\x27;\x0a','css','.js','cssCaseName','dir','getProjectConfig','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','toString','injectAtEndOfFile','theme','graphql','9851578EsvATO','components','withTranslations','baseDir','test/test.js','/imports/ui/','template','constructor','react','layouts','engines','search','fsi'];a101c=function(){return v;};return a101c();}
1
+ const a101s=a101d;(function(a,b){const p=a101d,c=a();while(!![]){try{const d=-parseInt(p(0x8a))/0x1+-parseInt(p(0xa1))/0x2*(-parseInt(p(0x9f))/0x3)+-parseInt(p(0x92))/0x4*(parseInt(p(0xb9))/0x5)+-parseInt(p(0xc0))/0x6*(-parseInt(p(0x8b))/0x7)+-parseInt(p(0x97))/0x8*(parseInt(p(0xa8))/0x9)+-parseInt(p(0xa4))/0xa+parseInt(p(0x94))/0xb*(parseInt(p(0x95))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x548f7));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a101d;if(c){const e=c[q(0xb5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const r=a101d;return a101a[r(0x99)]()[r(0xbd)](r(0x98))[r(0x99)]()['constructor'](a101a)[r(0xbd)](r(0x98));});a101a();function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x7d;let f=c[d];return f;},a101d(a,b);}import a101e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a101c(){const v=['react','theme','.js','templates.js','startup','fsi','Invalid\x20directory\x20option\x20\x22','hook','rewriteDestinationPathForEngine','injectAtBeginningOfFile','hooks','fileName','checkNpmPackage','withValue','template','client','600123zXahwa','587867zTOAEP','setTemplate','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','string','baseDir','apollo','features','4tdwEjw','join','4169EqvTHD','48516wjBWZX','installNpmPackage','2024392ffBQEu','(((.+)+)+)+$','toString','pathFromProject','pages','pathFromApp','assign','maka\x20g:hook\x20cool-hook','3XXVYQX','graphql','320074ARLoFV','resourceName','notice','4623170kjzsVW','warn','className','\x20hook...','9bZFNoj','@apollo/client\x20isomorphic-fetch','components','/imports/ui/hooks','error','Valid\x20options\x20are:\x20','tsx','\x27;\x0a','layouts','relative','Creating\x20','test/test.js','css','apply','\x20}\x20from\x20\x27','.css','cssCaseName','1412145yxrEmY','injectAtEndOfFile','ssr','includes','search','engines','import\x20\x27','18efsskz','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','dir','/imports/ui/','\x20};\x0a','lib','true','create','export\x20{\x20','import\x20{\x20'];a101c=function(){return v;};return a101c();}Generator[a101s(0xc7)]({'name':a101s(0x81),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a101s(0xc1),'validOpts':[a101s(0x8f)],'examples':[a101s(0x9e)]},async function(a,b){const t=a101s;Log[t(0xa3)](t(0xb2)+a[0x0]+t(0xa7));try{const c=[t(0x84),t(0xaa),t(0x9b),t(0xb0)];if(b[t(0x8f)]&&!c[t(0xbc)](b[t(0x8f)])){Log['error'](t(0x80)+b[t(0x8f)]+'\x22'),Log[t(0xac)](t(0xad)+c[t(0x93)](',\x20'));throw new UsageError();}const d=this[t(0x7f)][t(0x86)](t(0xca));if(!d){Log[t(0xac)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const f=this['fsi'][t(0x9c)](b),g=b[t(0x8f)]?t(0xc3)+b[t(0x8f)]:t(0xab),h=this[t(0x7f)][t(0x9c)]({'pathParts':[g,b[t(0xc2)],b[t(0xa2)],paramCase(b[t(0xa2)])]}),i=await this[t(0x7f)]['getProjectConfig']();this[t(0x7f)][t(0x87)](i,async()=>{const u=t;typeof i['template'][u(0xb4)]===u(0x8e)&&(i[u(0x88)][u(0xb4)]=i[u(0x88)][u(0xb4)]===u(0xc6)?!![]:![],this['fsi'][u(0x8c)](u(0xb4),i[u(0x88)][u(0xb4)]));i[u(0xbe)][u(0xa0)]===u(0x90)&&!this[u(0x7f)][u(0x86)]('@apollo/client')&&(Log[u(0xa5)](u(0x8d)),await this[u(0x7f)][u(0x96)](u(0xa9),{'cwd':f}));const j={'cssCaseName':paramCase(b[u(0xa2)]),'camelCaseName':camelCase(b[u(0xa2)]),'className':pascalCase(b[u(0xa2)]),'name':pascalCase(b[u(0xa2)]),'graphql':i['engines'][u(0xa0)],'theme':i[u(0xbe)][u(0xcb)],'features':i[u(0x91)],'myPath':a101e[u(0xb1)](this['fsi'][u(0x9a)]({}),h),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':i[u(0x91)]['withTranslations']};this[u(0x7f)][u(0x88)]({'srcPath':'hook/hook.js','destPath':h+u(0xcc),'context':j,'config':i,'framework':u(0xca)});i['template']['css']&&(this[u(0x7f)][u(0x88)]({'srcPath':'template/template.css','destPath':h+u(0xb7),'context':Object[u(0x9d)]({},j,{'className':j[u(0xb8)]}),'config':i}),this[u(0x7f)][u(0x83)]({'filePath':h+'.'+i[u(0xbe)]['js'],'content':'import\x20\x27./'+j[u(0x85)]+'.'+i[u(0xbe)][u(0xb4)]+'\x27;'}));i[u(0xbe)]['test']!=='none'&&this[u(0x7f)][u(0x88)]({'srcPath':u(0xb3),'destPath':h+'.app-tests.js','framework':u(0xca),'context':j,'config':i});const k=b[u(0xc2)]?'/'+b['dir']+'/':'/',l=''+g+k+j['fileName']+'/'+j[u(0x85)];let m;if(i[u(0xbe)][u(0xbb)]===u(0xc6)){const n=this[u(0x7f)]['pathFromApp']({'pathParts':['imports','startup',u(0xc5),u(0x7d)]});m=this['fsi'][u(0x82)]({'pathParts':[n],'config':i});}else{const o=this[u(0x7f)]['pathFromApp']({'pathParts':['imports',u(0x7e),u(0x89),'templates.js']});m=this[u(0x7f)][u(0x82)]({'pathParts':[o],'config':i});}i[u(0xbe)][u(0x89)]===u(0xca)?(i[u(0xbe)]['js']===u(0xae)?this[u(0x7f)]['injectAtBeginningOfFile']({'filePath':m,'content':u(0xc9)+j['className']+u(0xb6)+l+u(0xaf)}):this['fsi'][u(0x83)]({'filePath':m,'content':u(0xc9)+j['className']+u(0xb6)+l+'.'+i[u(0xbe)]['js']+u(0xaf)}),this[u(0x7f)][u(0xba)]({'filePath':m,'content':u(0xc8)+j[u(0xa6)]+u(0xc4)})):this['fsi'][u(0xba)]({'filePath':m,'content':u(0xbf)+l+'.'+i['engines']['js']+u(0xaf)});});}catch(j){Log[t(0xac)](j);}});
@@ -1 +1 @@
1
- const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0x98))/0x1*(-parseInt(h(0x91))/0x2)+-parseInt(h(0x7a))/0x3*(parseInt(h(0x8a))/0x4)+-parseInt(h(0x8d))/0x5+parseInt(h(0x82))/0x6+-parseInt(h(0x89))/0x7+parseInt(h(0x8c))/0x8+parseInt(h(0x8e))/0x9*(-parseInt(h(0x90))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x3e3c9));function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x78;let f=c[d];return f;},a102d(a,b);}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x7f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a['toString']()['search']('(((.+)+)+)+$')['toString']()[j(0x78)](a102a)[j(0x86)](j(0x84));});function a102c(){const n=['(blank)','kit','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','467681zLgtly','constructor',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','1356ZieUUT','getProjectConfig','maka\x20g:k\x20city-map\x20--type=leaflet-map','indexOf','fsi','apply','withValue','resourceName','1681884UjwNKy','maka\x20g:kit\x20--type=map','(((.+)+)+)+$','leaflet-map','search','error','notice','3551233UMXvzF','1724FwNcoY','type','3467880EccNNp','79455iyebLZ','63LkRCpS','map','297910QTrNoW','2RYVTBt','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','NIE','login'];a102c=function(){return n;};return a102c();}a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a102k(0x96),'aliases':['k'],'usage':a102k(0x92),'shortDesc':a102k(0x97),'validOpts':[a102k(0x8b)],'examples':[a102k(0x83),a102k(0x7c)]},async function(a,b){const l=a102k;try{const c=this[l(0x7e)][l(0x7b)]();this['fsi'][l(0x80)](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x81)]),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]},f=[m(0x85),m(0x94)];if(f[m(0x7d)](d[m(0x8b)])<0x0){const g=d[m(0x8b)]?d['type']:m(0x95);Log['error']('Invalid\x20type\x20'+g+m(0x79));return;}b[m(0x8b)]===m(0x8f)&&Log[m(0x88)](m(0x93)),b['type']===m(0x94)&&Log['notice']('NIE');});}catch(d){Log[l(0x87)](d);}});
1
+ function a102c(){const m=['resourceName','fsi','notice','17280140WSccCr','login','11NUbOTo','1757PuaNpe','1443SOIyvp','(blank)',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','5336496heqXZm','error','getProjectConfig','type','4262055ETbiaf','create','search','indexOf','NIE','maka\x20g:kit\x20--type=map','constructor','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','map','22986GzAVqo','(((.+)+)+)+$','maka\x20g:k\x20city-map\x20--type=leaflet-map','5055255peiKHj','1916HDHrSo','engines','withValue','toString','4JQjLSa','Invalid\x20type\x20','6731950rUqXto','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.'];a102c=function(){return m;};return a102c();}const a102j=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x168))/0x1*(-parseInt(h(0x159))/0x2)+parseInt(h(0x16f))/0x3+parseInt(h(0x15d))/0x4*(parseInt(h(0x15f))/0x5)+parseInt(h(0x155))/0x6*(parseInt(h(0x167))/0x7)+parseInt(h(0x16b))/0x8+-parseInt(h(0x158))/0x9+parseInt(h(0x164))/0xa*(-parseInt(h(0x166))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xb0a9f));const a102b=(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;};}()),a102a=a102b(this,function(){const i=a102d;return a102a[i(0x15c)]()[i(0x171)](i(0x156))[i(0x15c)]()[i(0x152)](a102a)[i(0x171)](i(0x156));});a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x152;let f=c[d];return f;},a102d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102j(0x170)]({'name':'kit','aliases':['k'],'usage':a102j(0x153),'shortDesc':a102j(0x160),'validOpts':[a102j(0x16e)],'examples':[a102j(0x174),a102j(0x157)]},async function(a,b){const k=a102j;try{const c=this[k(0x162)][k(0x16d)]();this[k(0x162)][k(0x15b)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0x161)]),'fileName':paramCase(b[l(0x161)]),'camelCase':camelCase(b[l(0x161)]),'type':b[l(0x16e)],'engine':c[l(0x15a)]['js'],'noRename':!![]},f=['leaflet-map',l(0x165)];if(f[l(0x172)](d['type'])<0x0){const g=d['type']?d[l(0x16e)]:l(0x169);Log['error'](l(0x15e)+g+l(0x16a));return;}b[l(0x16e)]===l(0x154)&&Log[l(0x163)](l(0x173)),b[l(0x16e)]===l(0x165)&&Log[l(0x163)](l(0x173));});}catch(d){Log[k(0x16c)](d);}});
@@ -1 +1 @@
1
- const a103r=a103d;function a103c(){const u=['true','withTranslations','import\x20\x27','hook/hook.js','9mEUoru','tsx','setTemplate','pathFromProject','6120814AfRDPa','\x20}\x20from\x20\x27','Scaffolding\x20for\x20a\x20React\x20Layout.','5653420ZwXVxB','imports','injectAtBeginningOfFile','84AclemK','rewriteDestinationPathForEngine','css','.app-tests.js','react','assign','startup','getProjectConfig','test/test.js','template/template.css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','className','pathFromApp','import\x20{\x20','apply','2090334zmzNyG','fsi','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','api','warn','test','checkNpmPackage','template','ramda','graphql','component/component.js','621956NPbTQc','dir','14651752swlwVL','fileName','resourceName','constructor','findAppDirectory','import\x20\x27./','withValue','\x20};\x0a','.js','export\x20{\x20','toString','engines','client','5436895czbjVR','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','create','ssr','\x27;\x0a','string','features','withHooks','search','relative','includes','templates.js','(((.+)+)+)+$','32872IHuCIu'];a103c=function(){return u;};return a103c();}(function(a,b){const o=a103d,c=a();while(!![]){try{const d=parseInt(o(0x1d3))/0x1+parseInt(o(0x1ef))/0x2*(-parseInt(o(0x1b9))/0x3)+-parseInt(o(0x1b6))/0x4+-parseInt(o(0x1e2))/0x5+parseInt(o(0x1c8))/0x6+parseInt(o(0x1b3))/0x7+parseInt(o(0x1d5))/0x8*(parseInt(o(0x1f4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xaea0a));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0x1c7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a[q(0x1df)]()[q(0x1ea)](q(0x1ee))[q(0x1df)]()[q(0x1d8)](a103a)[q(0x1ea)]('(((.+)+)+)+$');});a103a();import a103e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a103d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a103r(0x1e4)]({'name':'layout','aliases':aliases,'usage':a103r(0x1ca),'shortDesc':a103r(0x1b5),'validOpts':[],'examples':['maka\x20g:layout\x20mobile/iPhone8','maka\x20g:l\x20web/safari']},function(a,b){const s=a103r,c='/imports/ui/layouts',d=this[s(0x1c9)][s(0x1d9)](),e=this['fsi'][s(0x1c5)]({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b[s(0x1d7)])]}),f=this[s(0x1c9)][s(0x1c0)]();this[s(0x1c9)][s(0x1db)](f,()=>{const t=s;typeof f['template'][t(0x1cd)]==='string'&&(f[t(0x1cf)][t(0x1cd)]=f[t(0x1cf)]['test']==='true'?!![]:![],this[t(0x1c9)][t(0x1b1)](t(0x1cd),f[t(0x1cf)][t(0x1cd)]));typeof f[t(0x1cf)][t(0x1bb)]===t(0x1e7)&&(f[t(0x1cf)]['css']=f[t(0x1cf)][t(0x1bb)]===t(0x1f0)?!![]:![],this[t(0x1c9)][t(0x1b1)](t(0x1bb),f['template'][t(0x1bb)]));typeof f['template']['js']===t(0x1e7)&&(f[t(0x1cf)]['js']=f[t(0x1cf)]['js']===t(0x1f0)?!![]:![],this[t(0x1c9)]['setTemplate']('js',f[t(0x1cf)]['js']));!f['features']&&(f[t(0x1e8)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[t(0x1ec)](g);h&&!this['checkNpmPackage'](t(0x1d0))&&(Log[t(0x1cc)](t(0x1e3)),this['fsi']['installNpmPackage'](t(0x1d0),{'cwd':d}));if(h&&!this[t(0x1ce)](t(0x1bd))){Log[t(0x1cc)](t(0x1c3));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a103e[t(0x1eb)](this[t(0x1c9)][t(0x1b2)]({}),e),'cssCaseName':paramCase(b[t(0x1d7)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0x1d7)]),'graphql':f[t(0x1e0)][t(0x1d1)],'features':f[t(0x1e8)],'client':f[t(0x1e0)][t(0x1e1)],'api':f[t(0x1e0)][t(0x1cb)],'ssr':f[t(0x1e0)][t(0x1e5)],'test':f[t(0x1e0)][t(0x1cd)],'theme':f[t(0x1e0)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1e8)][t(0x1f1)]};f[t(0x1e8)]?.[t(0x1e9)]||b['withHook']?this['fsi'][t(0x1cf)]({'srcPath':t(0x1f3),'destPath':e+t(0x1dd),'framework':'react','context':i,'config':f}):this[t(0x1c9)][t(0x1cf)]({'srcPath':t(0x1d2),'destPath':e+t(0x1dd),'framework':'react','context':i,'config':f});f[t(0x1e0)]['test']!=='none'&&this[t(0x1c9)][t(0x1cf)]({'srcPath':t(0x1c1),'destPath':e+t(0x1bc),'framework':'react','context':i,'config':f});f[t(0x1cf)][t(0x1bb)]&&(this[t(0x1c9)][t(0x1cf)]({'srcPath':t(0x1c2),'destPath':e+'.css','context':Object[t(0x1be)]({},i,{'className':paramCase(b[t(0x1d7)])}),'config':f}),this[t(0x1c9)][t(0x1b8)]({'filePath':e+'.'+f[t(0x1e0)]['js'],'content':t(0x1da)+i[t(0x1d6)]+'.'+f[t(0x1e0)]['css']+'\x27;'}));const j=b[t(0x1d4)]?'/'+b[t(0x1d4)]+'/':'/',k=''+c+j+i[t(0x1d6)]+'/'+i[t(0x1d6)];let l;if(f[t(0x1e0)]['ssr']==='true'){const m=this[t(0x1c9)][t(0x1c5)]({'pathParts':[t(0x1b7),t(0x1bf),'lib',t(0x1ed)]});l=this[t(0x1c9)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0x1c9)][t(0x1c5)]({'pathParts':[t(0x1b7),'startup','client','templates.js']});l=this[t(0x1c9)][t(0x1ba)]({'pathParts':[n],'config':f});}f[t(0x1e0)]['client']==='react'?(f[t(0x1e0)]['js']===t(0x1f5)?this[t(0x1c9)][t(0x1b8)]({'filePath':l,'content':t(0x1c6)+i[t(0x1c4)]+t(0x1b4)+k+t(0x1e6)}):this[t(0x1c9)][t(0x1b8)]({'filePath':l,'content':t(0x1c6)+i[t(0x1c4)]+t(0x1b4)+k+'.'+f[t(0x1e0)]['js']+t(0x1e6)}),this[t(0x1c9)]['injectAtEndOfFile']({'filePath':l,'content':t(0x1de)+i['className']+t(0x1dc)})):this[t(0x1c9)]['injectAtEndOfFile']({'filePath':l,'content':t(0x1f2)+k+'.'+f[t(0x1e0)]['js']+t(0x1e6)});});});
1
+ const a103r=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=-parseInt(o(0x15e))/0x1*(parseInt(o(0x143))/0x2)+-parseInt(o(0x139))/0x3+-parseInt(o(0x137))/0x4*(-parseInt(o(0x165))/0x5)+parseInt(o(0x13a))/0x6*(parseInt(o(0x166))/0x7)+-parseInt(o(0x169))/0x8+-parseInt(o(0x15b))/0x9*(-parseInt(o(0x15d))/0xa)+-parseInt(o(0x14a))/0xb*(-parseInt(o(0x13f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x9d040));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a[q(0x16d)]()[q(0x147)](q(0x14f))[q(0x16d)]()[q(0x168)](a103a)[q(0x147)](q(0x14f));});a103a();import a103e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x131;let f=c[d];return f;},a103d(a,b);}const aliases=['l'];Generator['create']({'name':'layout','aliases':aliases,'usage':a103r(0x154),'shortDesc':a103r(0x16e),'validOpts':[],'examples':[a103r(0x149),a103r(0x16f)]},function(a,b){const s=a103r,c=s(0x14e),d=this[s(0x153)][s(0x140)](),e=this[s(0x153)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b[s(0x171)])]}),f=this[s(0x153)][s(0x13e)]();this['fsi'][s(0x173)](f,()=>{const t=s;typeof f[t(0x155)][t(0x172)]==='string'&&(f[t(0x155)][t(0x172)]=f[t(0x155)][t(0x172)]==='true'?!![]:![],this[t(0x153)][t(0x15c)](t(0x172),f['template'][t(0x172)]));typeof f[t(0x155)][t(0x170)]===t(0x132)&&(f[t(0x155)][t(0x170)]=f[t(0x155)]['css']===t(0x174)?!![]:![],this[t(0x153)][t(0x15c)](t(0x170),f['template'][t(0x170)]));typeof f['template']['js']===t(0x132)&&(f[t(0x155)]['js']=f[t(0x155)]['js']===t(0x174)?!![]:![],this['fsi'][t(0x15c)]('js',f[t(0x155)]['js']));!f[t(0x131)]&&(f[t(0x131)]={});const g=b['_']?b['_'][0x0][t(0x16b)](':')[0x1]:![],h=b['_']&&aliases[t(0x160)](g);h&&!this[t(0x177)](t(0x144))&&(Log[t(0x136)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x153)][t(0x138)]('ramda',{'cwd':d}));if(h&&!this['checkNpmPackage'](t(0x159))){Log[t(0x136)](t(0x152));return;}const i={'name':pascalCase(b[t(0x171)]),'myPath':a103e[t(0x167)](this[t(0x153)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[t(0x171)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x171)]),'fileName':paramCase(b[t(0x171)]),'graphql':f['engines'][t(0x176)],'features':f[t(0x131)],'client':f[t(0x14c)][t(0x175)],'api':f[t(0x14c)][t(0x178)],'ssr':f[t(0x14c)][t(0x163)],'test':f[t(0x14c)][t(0x172)],'theme':f['engines']['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x131)]['withTranslations']};f['features']?.[t(0x164)]||b['withHook']?this['fsi'][t(0x155)]({'srcPath':'hook/hook.js','destPath':e+t(0x161),'framework':t(0x159),'context':i,'config':f}):this[t(0x153)][t(0x155)]({'srcPath':t(0x135),'destPath':e+'.js','framework':t(0x159),'context':i,'config':f});f[t(0x14c)][t(0x172)]!==t(0x13d)&&this[t(0x153)][t(0x155)]({'srcPath':t(0x13b),'destPath':e+t(0x16c),'framework':t(0x159),'context':i,'config':f});f[t(0x155)]['css']&&(this['fsi'][t(0x155)]({'srcPath':t(0x148),'destPath':e+t(0x162),'context':Object[t(0x142)]({},i,{'className':paramCase(b[t(0x171)])}),'config':f}),this[t(0x153)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x14c)]['js'],'content':t(0x14b)+i[t(0x133)]+'.'+f[t(0x14c)]['css']+'\x27;'}));const j=b['dir']?'/'+b[t(0x141)]+'/':'/',k=''+c+j+i['fileName']+'/'+i['fileName'];let l;if(f[t(0x14c)][t(0x163)]===t(0x174)){const m=this['fsi']['pathFromApp']({'pathParts':['imports',t(0x158),t(0x134),'templates.js']});l=this[t(0x153)][t(0x145)]({'pathParts':[m],'config':f});}else{const n=this[t(0x153)]['pathFromApp']({'pathParts':['imports',t(0x158),t(0x175),'templates.js']});l=this[t(0x153)][t(0x145)]({'pathParts':[n],'config':f});}f['engines'][t(0x175)]===t(0x159)?(f['engines']['js']===t(0x156)?this[t(0x153)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x151)+i[t(0x15a)]+t(0x13c)+k+t(0x150)}):this[t(0x153)][t(0x14d)]({'filePath':l,'content':t(0x151)+i[t(0x15a)]+t(0x13c)+k+'.'+f[t(0x14c)]['js']+t(0x150)}),this[t(0x153)]['injectAtEndOfFile']({'filePath':l,'content':t(0x15f)+i[t(0x15a)]+t(0x157)})):this['fsi'][t(0x16a)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f['engines']['js']+t(0x150)});});});function a103c(){const u=['2467386JCvKUx','3446292sPyquV','test/test.js','\x20}\x20from\x20\x27','none','getProjectConfig','20319804WjrXqp','findAppDirectory','dir','assign','117770nUzRQc','ramda','rewriteDestinationPathForEngine','apply','search','template/template.css','maka\x20g:layout\x20mobile/iPhone8','11oPpHtM','import\x20\x27./','engines','injectAtBeginningOfFile','/imports/ui/layouts','(((.+)+)+)+$','\x27;\x0a','import\x20{\x20','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','fsi','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','template','tsx','\x20};\x0a','startup','react','className','48807CXBgZO','setTemplate','1570Wtrpzq','16OMGyzH','export\x20{\x20','includes','.js','.css','ssr','withHooks','5RkIWrZ','7LLwzWV','relative','constructor','7865448GYPCep','injectAtEndOfFile','split','.app-tests.js','toString','Scaffolding\x20for\x20a\x20React\x20Layout.','maka\x20g:l\x20web/safari','css','resourceName','test','withValue','true','client','graphql','checkNpmPackage','api','features','string','fileName','lib','component/component.js','warn','1087316jJgwPz','installNpmPackage'];a103c=function(){return u;};return a103c();}
@@ -1 +1 @@
1
- const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x8b))/0x1*(-parseInt(f(0x84))/0x2)+-parseInt(f(0x7e))/0x3*(parseInt(f(0x7d))/0x4)+-parseInt(f(0x7f))/0x5*(-parseInt(f(0x8c))/0x6)+-parseInt(f(0x82))/0x7+-parseInt(f(0x79))/0x8*(-parseInt(f(0x80))/0x9)+-parseInt(f(0x81))/0xa*(parseInt(f(0x86))/0xb)+parseInt(f(0x8a))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xb1ca1));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x88)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x89)]()['search'](h(0x7c))['toString']()['constructor'](a104a)[h(0x87)](h(0x7c));});a104a();function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x79;let f=c[d];return f;},a104d(a,b);}function a104c(){const j=['6WAmSjh','8LvIgUa','maka\x20generate:api\x20Trucks','maka','(((.+)+)+)+$','4dahsnF','4279863oIxckl','3015315JIGrqT','4227867sXkYAL','1941650IGqMwE','2459779VmxKBH','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','5386ZZtNmG','Maka!','55rSuJrk','search','apply','toString','44588796QiTufN','487NLhVAY'];a104c=function(){return j;};return a104c();}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0x7b),'shortDesc':a104i(0x85),'validOpts':[],'description':'\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','usage':a104i(0x83),'examples':[a104i(0x7a),'maka\x20g:hook\x20cool-hook']},function(){return null;});export default MakaGen;
1
+ const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x1f0))/0x1*(parseInt(f(0x1ef))/0x2)+parseInt(f(0x1ea))/0x3+parseInt(f(0x1e0))/0x4*(parseInt(f(0x1e5))/0x5)+parseInt(f(0x1df))/0x6*(-parseInt(f(0x1e4))/0x7)+parseInt(f(0x1ec))/0x8+-parseInt(f(0x1ed))/0x9*(-parseInt(f(0x1e9))/0xa)+-parseInt(f(0x1de))/0xb*(parseInt(f(0x1ee))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xacbd0));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a['toString']()['search'](h(0x1eb))['toString']()[h(0x1e6)](a104a)['search'](h(0x1eb));});a104a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0x1e3),'shortDesc':'Maka!','validOpts':[],'description':a104i(0x1e7),'usage':a104i(0x1e1),'examples':['maka\x20generate:api\x20Trucks',a104i(0x1e2)]},function(){return null;});export default MakaGen;function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1de;let f=c[d];return f;},a104d(a,b);}function a104c(){const j=['constructor','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','apply','440890EosNVi','3410838qfIQyR','(((.+)+)+)+$','6241352SdXQqA','207FyFLJJ','1524jhhUkI','32HvqLXO','45822jqsMkL','160721ezkGFA','1938hRErzU','76CDimSS','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','maka\x20g:hook\x20cool-hook','maka','14147bGZBTs','267870bXxlAm'];a104c=function(){return j;};return a104c();}
@@ -1 +1 @@
1
- function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x153;let f=c[d];return f;},a105d(a,b);}const a105n=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x178))/0x1*(-parseInt(k(0x16c))/0x2)+parseInt(k(0x159))/0x3+-parseInt(k(0x153))/0x4*(-parseInt(k(0x165))/0x5)+-parseInt(k(0x166))/0x6+-parseInt(k(0x16e))/0x7*(parseInt(k(0x17a))/0x8)+-parseInt(k(0x179))/0x9*(-parseInt(k(0x161))/0xa)+-parseInt(k(0x154))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x7b618));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a[m(0x167)]()[m(0x15e)](m(0x163))[m(0x167)]()['constructor'](a105a)[m(0x15e)](m(0x163));});a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105n(0x172)]({'name':a105n(0x164),'aliases':['m'],'usage':a105n(0x158),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a105n(0x15c)],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a105n;try{const c=this['fsi'][o(0x157)]();this[o(0x17b)][o(0x17c)](c,async()=>{const p=o,d=paramCase(b[p(0x175)]),f={'name':b[p(0x175)],'fileName':d,'className':pascalCase(b[p(0x175)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x15f)]['js']===p(0x170)&&(g='ts');const h=this[p(0x17b)][p(0x15b)]({});(!this[p(0x17b)]['checkMeteorPackage'](p(0x171))||!this[p(0x17b)][p(0x17d)](p(0x176))||!this[p(0x17b)][p(0x17d)](p(0x15a)))&&(Log[p(0x160)](p(0x16a)),this[p(0x17b)][p(0x177)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this[p(0x17b)][p(0x16d)]({'srcPath':p(0x162),'destPath':this[p(0x17b)][p(0x15b)]({'pathParts':[p(0x16f),'startup',b[p(0x173)],p(0x169),b[p(0x15c)],d+p(0x174)+g]}),'context':f,'config':c});const i=b[p(0x15c)]?'/'+b[p(0x15c)]+'/':'/',j=this[p(0x17b)][p(0x15b)]({'pathParts':[p(0x16f),'startup',b['appPathPrefix'],p(0x156)+c[p(0x15f)]['js']]});this['fsi'][p(0x15d)]({'filePath':j,'content':'import\x20\x27./methods'+i+d+p(0x168)});});}catch(d){Log[o(0x16b)](d);}});function a105c(){const q=['(((.+)+)+)+$','method','10xkniOW','911436mgxwgQ','toString','-rpc-method\x27;','methods','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','error','224JCMhyC','template','7OSRBQg','imports','tsx','check','create','appPathPrefix','-rpc-method.','resourceName','ddp-rate-limiter','installMeteorPackage','8594chavCM','2192301PvkvkB','1983640HaocVw','fsi','withValue','checkMeteorPackage','337588BvlLiY','15066887ZAuJlj','apply','index.','getProjectConfig','maka\x20{generate,\x20g}:{method,\x20m}\x20name','2700105rBukri','mdg:validated-method','pathFromApp','dir','injectAtEndOfFile','search','engines','warn','10CiFGPx','method/method.js'];a105c=function(){return q;};return a105c();}
1
+ const a105m=a105d;function a105c(){const p=['136fFkQKX','2516944syAvQE','index.','warn','-rpc-method.','methods','pathFromApp','944617yYbZwx','constructor','checkMeteorPackage','maka\x20g:method\x20todos','error','startup','1124900oKbVvF','engines','2226762gGJmDS','check\x20ddp-rate-limiter\x20mdg:validated-method','1596987hsviLM','search','1662020pZTvkJ','withValue','54LdoOHc','appPathPrefix','import\x20\x27./methods','getProjectConfig','maka\x20{generate,\x20g}:{method,\x20m}\x20name','fsi','(((.+)+)+)+$','template','check','toString','1262219jYNKoZ','dir','resourceName','imports','create','method/method.js','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','installMeteorPackage'];a105c=function(){return p;};return a105c();}(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x1f0))/0x1+-parseInt(k(0x1ea))/0x2+parseInt(k(0x1fa))/0x3+parseInt(k(0x1f6))/0x4+-parseInt(k(0x1fc))/0x5+-parseInt(k(0x1fe))/0x6*(parseInt(k(0x1e1))/0x7)+-parseInt(k(0x1e9))/0x8*(-parseInt(k(0x1f8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xd2482));const a105b=(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;};}()),a105a=a105b(this,function(){const l=a105d;return a105a[l(0x1e0)]()[l(0x1fb)](l(0x1dd))['toString']()[l(0x1f1)](a105a)[l(0x1fb)](l(0x1dd));});a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a105d(a,b);}Generator[a105m(0x1e5)]({'name':'method','aliases':['m'],'usage':a105m(0x202),'checkWhere':!![],'shortDesc':a105m(0x1e7),'validOpts':[a105m(0x1e2)],'examples':[a105m(0x1f3)]},function(a,b){const n=a105m;try{const c=this['fsi'][n(0x201)]();this[n(0x203)][n(0x1fd)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':b[o(0x1e3)],'fileName':d,'className':pascalCase(b[o(0x1e3)]),'camelCase':camelCase(b[o(0x1e3)]),'noRename':!![]};let g='js';c[o(0x1f7)]['js']==='tsx'&&(g='ts');const h=this[o(0x203)][o(0x1ef)]({});(!this[o(0x203)][o(0x1f2)](o(0x1df))||!this[o(0x203)]['checkMeteorPackage']('ddp-rate-limiter')||!this[o(0x203)][o(0x1f2)]('mdg:validated-method'))&&(Log[o(0x1ec)]('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[o(0x203)][o(0x1e8)](o(0x1f9),{'cwd':h}));this[o(0x203)][o(0x1de)]({'srcPath':o(0x1e6),'destPath':this[o(0x203)]['pathFromApp']({'pathParts':['imports',o(0x1f5),b[o(0x1ff)],o(0x1ee),b[o(0x1e2)],d+o(0x1ed)+g]}),'context':f,'config':c});const i=b[o(0x1e2)]?'/'+b[o(0x1e2)]+'/':'/',j=this[o(0x203)]['pathFromApp']({'pathParts':[o(0x1e4),'startup',b['appPathPrefix'],o(0x1eb)+c['engines']['js']]});this[o(0x203)]['injectAtEndOfFile']({'filePath':j,'content':o(0x200)+i+d+'-rpc-method\x27;'});});}catch(d){Log[n(0x1f4)](d);}});
@@ -1 +1 @@
1
- function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xbd;let f=c[d];return f;},a106d(a,b);}const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0xbe))/0x1*(parseInt(l(0xbf))/0x2)+-parseInt(l(0xc5))/0x3*(-parseInt(l(0xc6))/0x4)+parseInt(l(0xe6))/0x5+parseInt(l(0xd6))/0x6+-parseInt(l(0xe3))/0x7*(-parseInt(l(0xe8))/0x8)+-parseInt(l(0xcf))/0x9+parseInt(l(0xe1))/0xa*(-parseInt(l(0xc9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xbcaf8));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0xe2)]()[n(0xca)](n(0xdd))[n(0xe2)]()[n(0xd7)](a106a)[n(0xca)](n(0xdd));});a106a();import a106e from'path';function a106c(){const s=['template/template.js','package/package.js','5404640hMcmKo','pathFromApp','152Rfllhm','.js','engines','packages','tests/server','features','/client/','store','6044yGdVRR','36MjGRRe','hasOwnProperty','ssr','dir','pathFromProject','maka\x20g:package\x20todos:package','45AvSZEa','189452ESnJCw','withValue','relative','22TPCsyC','search','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','/package.js','fsi','package.js','13220550ZGYhrn','layout','forEach','getProjectConfig','resourceName','apply','component','7587600kVWwGm','constructor','pathFromAppWithNoReWrite','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','graphql','client','noRename','(((.+)+)+)+$','template','package','package/','5465140CNVoGN','toString','62657cHsOxC'];a106c=function(){return s;};return a106c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a106o(0xdf),'aliases':['p'],'usage':a106o(0xd9),'shortDesc':a106o(0xcb),'validOpts':[a106o(0xc2)],'examples':[a106o(0xc4)]},async function(a,b){const p=a106o,c=paramCase(b[p(0xd3)]),d=this[p(0xcd)][p(0xe7)]({'pathParts':[p(0xeb),b[p(0xc2)],c]}),e=this[p(0xcd)][p(0xd8)]({'pathParts':[p(0xeb),b[p(0xc2)],c,p(0xce)]}),f=this[p(0xcd)][p(0xd2)]();this['fsi'][p(0xc7)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xd3)]),'myPath':a106e[q(0xc8)](this[q(0xcd)][q(0xc3)]({}),d),'cssCaseName':paramCase(b[q(0xd3)]),'className':pascalCase(b[q(0xd3)]),'camelCaseName':camelCase(b[q(0xd3)]),'fileName':c,'client':f[q(0xea)][q(0xdb)],'graphql':f[q(0xea)][q(0xda)],'ssr':f[q(0xea)][q(0xc1)],'isComponent':b['hasOwnProperty'](q(0xd5)),'isLayout':b['hasOwnProperty'](q(0xd0)),'isStore':b[q(0xc0)](q(0xbd)),'features':f[q(0xed)],'noRename':!![],'theme':f[q(0xea)]['theme']};this['fsi'][q(0xde)]({'srcPath':q(0xe5),'destPath':e,'context':g,'config':f}),g[q(0xdc)]=![];const h=d+q(0xee)+c+q(0xe9);this['fsi'][q(0xde)]({'srcPath':q(0xe4),'destPath':h,'context':g,'config':f});const i=['lib','server','tests/client',q(0xec)];i[q(0xd1)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xe9);this[r(0xcd)][r(0xde)]({'srcPath':r(0xe0)+j+r(0xcc),'destPath':k,'context':g,'config':f});});});});
1
+ const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0xed))/0x1+parseInt(l(0xf0))/0x2+-parseInt(l(0xfa))/0x3*(parseInt(l(0x10c))/0x4)+parseInt(l(0xfb))/0x5+parseInt(l(0x106))/0x6+parseInt(l(0x100))/0x7*(-parseInt(l(0xf6))/0x8)+-parseInt(l(0xf4))/0x9*(parseInt(l(0xf2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x81e4a));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0xf1)]()[n(0xdd)](n(0xe4))[n(0xf1)]()[n(0xe6)](a106a)[n(0xdd)](n(0xe4));});a106a();import a106e from'path';import{Generator}from'../generator.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xdd;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a106c(){const s=['forEach','.js','packages','4796190AMqGfA','store','tests/server','engines','resourceName','template','5915100merwlN','relative','server','getProjectConfig','dir','package.js','861632xNgXqP','search','package/package.js','/package.js','template/template.js','pathFromApp','apply','maka\x20g:package\x20todos:package','(((.+)+)+)+$','package/','constructor','hasOwnProperty','tests/client','lib','fsi','pathFromAppWithNoReWrite','features','471252blbVzp','/client/','graphql','775220FvUDvg','toString','1940PuBclE','client','42696GsIPnC','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','8BhpOMQ','package','create','theme','9qTjstc','4695300TNZTEW','layout'];a106c=function(){return s;};return a106c();}Generator[a106o(0xf8)]({'name':a106o(0xf7),'aliases':['p'],'usage':a106o(0xf5),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a106o(0x10a)],'examples':[a106o(0xe3)]},async function(a,b){const p=a106o,c=paramCase(b['resourceName']),d=this[p(0xea)][p(0xe1)]({'pathParts':[p(0xff),b[p(0x10a)],c]}),e=this[p(0xea)][p(0xeb)]({'pathParts':[p(0xff),b[p(0x10a)],c,p(0x10b)]}),f=this['fsi'][p(0x109)]();this[p(0xea)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x104)]),'myPath':a106e[q(0x107)](this[q(0xea)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x104)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x104)]),'fileName':c,'client':f[q(0x103)][q(0xf3)],'graphql':f[q(0x103)][q(0xef)],'ssr':f[q(0x103)]['ssr'],'isComponent':b['hasOwnProperty']('component'),'isLayout':b[q(0xe7)](q(0xfc)),'isStore':b[q(0xe7)](q(0x101)),'features':f[q(0xec)],'noRename':!![],'theme':f[q(0x103)][q(0xf9)]};this[q(0xea)]['template']({'srcPath':q(0xde),'destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+q(0xee)+c+'.js';this['fsi']['template']({'srcPath':q(0xe0),'destPath':h,'context':g,'config':f});const i=[q(0xe9),q(0x108),q(0xe8),q(0x102)];i[q(0xfd)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xfe);this[r(0xea)][r(0x105)]({'srcPath':r(0xe5)+j+r(0xdf),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a107q=a107d;function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x134;let f=c[d];return f;},a107d(a,b);}(function(a,b){const n=a107d,c=a();while(!![]){try{const d=-parseInt(n(0x13b))/0x1*(-parseInt(n(0x181))/0x2)+-parseInt(n(0x141))/0x3+-parseInt(n(0x17b))/0x4+parseInt(n(0x15c))/0x5+-parseInt(n(0x16d))/0x6+parseInt(n(0x138))/0x7*(-parseInt(n(0x137))/0x8)+parseInt(n(0x139))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xecf41));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a107d;if(c){const e=c[o(0x14e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const p=a107d;return a107a['toString']()['search'](p(0x17e))[p(0x145)]()[p(0x160)](a107a)['search']('(((.+)+)+)+$');});function a107c(){const t=['react','html','import\x20\x27','vanilla','true','withValue','12637416RDHMty','7PzoHYA','19848267YmzOcs','layout','3BDrUnp','component/component.js','template/template.html','fileName','template','assign','1069356GcGjGi','getProjectConfig','startup','tsx','toString','import\x20\x27./','layouts','hook/hook.js','fsi','hasOwnProperty','withHook','includes','error','apply','Valid\x20options\x20are:\x20','setTemplate','join','injectAtEndOfFile','test/test.js','store','templates.js','pathFromProject','imports','.app-tests.js','import\x20{\x20','pages','ssr','4520310PRcQFB','components','/imports/ui/pages','features','constructor','dir','checkNpmPackage','hooks','string','rewriteDestinationPathForEngine','withHooks','pathFromApp','\x27;\x0a','injectAtBeginningOfFile','lib','none','warn','366768bWAfCY','api','resourceName','test','\x20};\x0a','client','page','component','baseDir','\x20}\x20from\x20\x27','className','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','Updating\x20npm\x20packages\x20...','theme','1340752XWklwh','engines','css','(((.+)+)+)+$','ramda','/imports/ui/','129054mnDjSP','Generate\x20a\x20page.','.js','create','installNpmPackage'];a107c=function(){return t;};return a107c();}a107a();import a107e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a107q(0x184)]({'name':a107q(0x173),'aliases':aliases,'usage':a107q(0x178),'shortDesc':a107q(0x182),'validOpts':[a107q(0x175),a107q(0x14b)],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const r=a107q,c=[r(0x163),r(0x15d),r(0x15a),r(0x147)];if(b[r(0x175)]&&!c[r(0x14c)](b[r(0x175)])){Log[r(0x14d)]('Invalid\x20directory\x20option\x20\x22'+b['baseDir']+'\x22'),Log[r(0x14d)](r(0x14f)+c[r(0x151)](',\x20'));throw new UsageError();}const d=b[r(0x175)]?r(0x180)+b[r(0x175)]:r(0x15e),e=this[r(0x149)]['pathFromApp'](b),f=this[r(0x149)][r(0x167)]({'pathParts':[d,b[r(0x161)],b[r(0x16f)],paramCase(b[r(0x16f)])]}),g=this[r(0x149)][r(0x142)]();this[r(0x149)][r(0x136)](g,()=>{const s=r;typeof g['template'][s(0x187)]==='string'&&(g[s(0x13f)][s(0x187)]=g[s(0x13f)][s(0x187)]==='true'?!![]:![],this[s(0x149)][s(0x150)](s(0x187),g['template']['html']));typeof g[s(0x13f)][s(0x170)]===s(0x164)&&(g[s(0x13f)][s(0x170)]=g[s(0x13f)][s(0x170)]==='true'?!![]:![],this[s(0x149)][s(0x150)](s(0x170),g[s(0x13f)][s(0x170)]));typeof g[s(0x13f)][s(0x17d)]===s(0x164)&&(g['template'][s(0x17d)]=g[s(0x13f)][s(0x17d)]===s(0x135)?!![]:![],this['fsi'][s(0x150)](s(0x17d),g[s(0x13f)][s(0x17d)]));typeof g['template']['js']==='string'&&(g[s(0x13f)]['js']=g[s(0x13f)]['js']===s(0x135)?!![]:![],this['fsi']['setTemplate']('js',g['template']['js']));!g['features']&&(g[s(0x15f)]={});!b['root']&&!this[s(0x149)][s(0x162)]('ramda')&&(Log[s(0x16c)](s(0x179)),this[s(0x149)][s(0x185)](s(0x17f),{'cwd':e}));const h={'name':pascalCase(b[s(0x16f)]),'myPath':a107e['relative'](this[s(0x149)][s(0x156)]({}),f),'cssCaseName':paramCase(b[s(0x16f)]),'className':pascalCase(b[s(0x16f)]),'camelCaseName':camelCase(b[s(0x16f)]),'fileName':paramCase(b[s(0x16f)]),'graphql':g['engines']['graphql'],'features':g['features'],'client':g[s(0x17c)][s(0x172)],'api':g['engines'][s(0x16e)],'ssr':g[s(0x17c)][s(0x15b)],'isStore':b[s(0x14a)](s(0x154)),'isComponent':b['hasOwnProperty'](s(0x174)),'isLayout':b[s(0x14a)](s(0x13a)),'withTranslations':g[s(0x15f)]['withTranslations'],'test':g[s(0x17c)][s(0x170)],'theme':g[s(0x17c)][s(0x17a)]};g['template'][s(0x187)]&&this[s(0x149)]['template']({'srcPath':s(0x13d),'destPath':f+'.html','context':h,'config':g});g[s(0x15f)]?.[s(0x166)]||b[s(0x14b)]?this[s(0x149)][s(0x13f)]({'srcPath':s(0x148),'destPath':f+s(0x183),'framework':'react','context':h,'config':g}):this[s(0x149)][s(0x13f)]({'srcPath':s(0x13c),'destPath':f+s(0x183),'framework':s(0x186),'context':h,'config':g});g['engines'][s(0x170)]!==s(0x16b)&&this['fsi'][s(0x13f)]({'srcPath':s(0x153),'destPath':f+s(0x158),'framework':s(0x186),'context':h,'config':g});g[s(0x13f)][s(0x17d)]&&this['fsi'][s(0x13f)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[s(0x140)]({},h,{'className':paramCase(b[s(0x16f)])}),'config':g});g[s(0x17c)][s(0x172)]!==s(0x186)&&g[s(0x17c)][s(0x172)]!==s(0x134)?(g[s(0x13f)][s(0x17d)]&&this[s(0x149)][s(0x169)]({'filePath':f+'.'+g[s(0x17c)]['js'],'content':s(0x146)+h['fileName']+'.'+g[s(0x17c)]['html']+s(0x168)+s(0x146)+h[s(0x13e)]+'.'+g[s(0x17c)][s(0x17d)]+'\x27;'}),!g[s(0x13f)][s(0x17d)]&&this[s(0x149)][s(0x169)]({'filePath':f+'.'+g['engines']['js'],'content':s(0x146)+h[s(0x13e)]+'.'+g[s(0x17c)][s(0x187)]+'\x27;'})):g[s(0x13f)][s(0x17d)]&&this[s(0x149)][s(0x169)]({'filePath':f+'.'+g[s(0x17c)]['js'],'content':s(0x146)+h[s(0x13e)]+'.'+g[s(0x17c)]['css']+'\x27;'});const i=b[s(0x161)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0x13e)]+'/'+h[s(0x13e)];let k;if(g[s(0x17c)][s(0x15b)]===s(0x135)){const l=this[s(0x149)][s(0x167)]({'pathParts':[s(0x157),s(0x143),s(0x16a),'templates.js']});k=this[s(0x149)][s(0x165)]({'pathParts':[l],'config':g});}else{const m=this['fsi'][s(0x167)]({'pathParts':[s(0x157),'startup',s(0x172),s(0x155)]});k=this[s(0x149)][s(0x165)]({'pathParts':[m],'config':g});}g[s(0x17c)][s(0x172)]==='react'?(g[s(0x17c)]['js']===s(0x144)?this['fsi'][s(0x169)]({'filePath':k,'content':s(0x159)+h[s(0x177)]+s(0x176)+j+s(0x168)}):this[s(0x149)][s(0x169)]({'filePath':k,'content':s(0x159)+h[s(0x177)]+s(0x176)+j+'.'+g['engines']['js']+s(0x168)}),this[s(0x149)][s(0x152)]({'filePath':k,'content':'export\x20{\x20'+h[s(0x177)]+s(0x171)})):this['fsi']['injectAtEndOfFile']({'filePath':k,'content':s(0x188)+j+'.'+g['engines']['js']+s(0x168)});});});
1
+ const a107q=a107d;(function(a,b){const n=a107d,c=a();while(!![]){try{const d=-parseInt(n(0xfe))/0x1*(parseInt(n(0xde))/0x2)+parseInt(n(0xeb))/0x3+parseInt(n(0x121))/0x4+-parseInt(n(0xf6))/0x5+parseInt(n(0xf8))/0x6*(parseInt(n(0xe5))/0x7)+parseInt(n(0x104))/0x8+-parseInt(n(0x10a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xf4199));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a107d;if(c){const e=c[o(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const p=a107d;return a107a['toString']()['search'](p(0x111))[p(0x12a)]()[p(0xf0)](a107a)[p(0x11d)](p(0x111));});a107a();import a107e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0xdd;let f=c[d];return f;},a107d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a107c(){const t=['fileName','features','694505NgTBEB','css','component','none','ssr','hooks','4717248KjkuHh','startup','page','import\x20\x27./','\x20};\x0a','constructor','client','layout','html','setTemplate','withTranslations','5470365Havwbe','.app-tests.js','6sVjZuQ','component/component.js','lib','rewriteDestinationPathForEngine','template/template.css','pathFromApp','6140xUUrDh','string','store','import\x20{\x20','hasOwnProperty','layouts','14231880lBPmBL','create','Invalid\x20directory\x20option\x20\x22','.css','hook/hook.js','/imports/ui/','18447633atiFDl','ramda','root','templates.js','template/template.html','import\x20\x27','className','(((.+)+)+)+$','components','apply','relative','withHook','test','graphql','error','baseDir','.html','\x20}\x20from\x20\x27','tsx','search','\x27;\x0a','withHooks','theme','5228108wfwbmI','test/test.js','fsi','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','maka\x20g:page\x20todos/todos-item','injectAtBeginningOfFile','template','.js','join','toString','installNpmPackage','withValue','resourceName','vanilla','pages','true','200suHwne','react','injectAtEndOfFile','dir','engines'];a107c=function(){return t;};return a107c();}Generator[a107q(0x105)]({'name':a107q(0xed),'aliases':aliases,'usage':a107q(0x124),'shortDesc':'Generate\x20a\x20page.','validOpts':[a107q(0x119),'withHook'],'examples':[a107q(0x125)]},function(a,b){const r=a107q,c=[r(0xea),r(0x112),r(0x12f),r(0x103)];if(b[r(0x119)]&&!c['includes'](b[r(0x119)])){Log[r(0x118)](r(0x106)+b[r(0x119)]+'\x22'),Log['error']('Valid\x20options\x20are:\x20'+c[r(0x129)](',\x20'));throw new UsageError();}const d=b[r(0x119)]?r(0x109)+b[r(0x119)]:'/imports/ui/pages',e=this['fsi'][r(0xfd)](b),f=this['fsi'][r(0xfd)]({'pathParts':[d,b[r(0xe1)],b[r(0x12d)],paramCase(b[r(0x12d)])]}),g=this['fsi']['getProjectConfig']();this[r(0x123)][r(0x12c)](g,()=>{const s=r;typeof g[s(0x127)][s(0xf3)]===s(0xff)&&(g['template'][s(0xf3)]=g['template'][s(0xf3)]===s(0xdd)?!![]:![],this['fsi']['setTemplate'](s(0xf3),g[s(0x127)]['html']));typeof g[s(0x127)][s(0x116)]===s(0xff)&&(g[s(0x127)][s(0x116)]=g[s(0x127)][s(0x116)]==='true'?!![]:![],this[s(0x123)][s(0xf4)](s(0x116),g[s(0x127)][s(0x116)]));typeof g[s(0x127)][s(0xe6)]===s(0xff)&&(g[s(0x127)][s(0xe6)]=g[s(0x127)][s(0xe6)]===s(0xdd)?!![]:![],this[s(0x123)][s(0xf4)]('css',g['template'][s(0xe6)]));typeof g[s(0x127)]['js']==='string'&&(g[s(0x127)]['js']=g[s(0x127)]['js']===s(0xdd)?!![]:![],this[s(0x123)][s(0xf4)]('js',g[s(0x127)]['js']));!g[s(0xe4)]&&(g[s(0xe4)]={});!b[s(0x10c)]&&!this[s(0x123)]['checkNpmPackage'](s(0x10b))&&(Log['warn']('Updating\x20npm\x20packages\x20...'),this[s(0x123)][s(0x12b)]('ramda',{'cwd':e}));const h={'name':pascalCase(b['resourceName']),'myPath':a107e[s(0x114)](this[s(0x123)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x12d)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x12d)]),'fileName':paramCase(b[s(0x12d)]),'graphql':g['engines'][s(0x117)],'features':g['features'],'client':g['engines'][s(0xf1)],'api':g[s(0xe2)]['api'],'ssr':g[s(0xe2)]['ssr'],'isStore':b[s(0x102)](s(0x100)),'isComponent':b[s(0x102)](s(0xe7)),'isLayout':b[s(0x102)](s(0xf2)),'withTranslations':g[s(0xe4)][s(0xf5)],'test':g[s(0xe2)][s(0x116)],'theme':g[s(0xe2)][s(0x120)]};g[s(0x127)][s(0xf3)]&&this[s(0x123)]['template']({'srcPath':s(0x10e),'destPath':f+s(0x11a),'context':h,'config':g});g[s(0xe4)]?.[s(0x11f)]||b[s(0x115)]?this[s(0x123)]['template']({'srcPath':s(0x108),'destPath':f+s(0x128),'framework':s(0xdf),'context':h,'config':g}):this[s(0x123)]['template']({'srcPath':s(0xf9),'destPath':f+s(0x128),'framework':'react','context':h,'config':g});g[s(0xe2)][s(0x116)]!==s(0xe8)&&this[s(0x123)][s(0x127)]({'srcPath':s(0x122),'destPath':f+s(0xf7),'framework':'react','context':h,'config':g});g[s(0x127)]['css']&&this[s(0x123)][s(0x127)]({'srcPath':s(0xfc),'destPath':f+s(0x107),'context':Object['assign']({},h,{'className':paramCase(b[s(0x12d)])}),'config':g});g[s(0xe2)][s(0xf1)]!==s(0xdf)&&g[s(0xe2)][s(0xf1)]!==s(0x12e)?(g[s(0x127)]['css']&&this[s(0x123)][s(0x126)]({'filePath':f+'.'+g[s(0xe2)]['js'],'content':s(0xee)+h['fileName']+'.'+g[s(0xe2)]['html']+s(0x11e)+s(0xee)+h[s(0xe3)]+'.'+g[s(0xe2)][s(0xe6)]+'\x27;'}),!g[s(0x127)][s(0xe6)]&&this[s(0x123)][s(0x126)]({'filePath':f+'.'+g[s(0xe2)]['js'],'content':s(0xee)+h[s(0xe3)]+'.'+g[s(0xe2)][s(0xf3)]+'\x27;'})):g['template'][s(0xe6)]&&this[s(0x123)][s(0x126)]({'filePath':f+'.'+g['engines']['js'],'content':s(0xee)+h['fileName']+'.'+g[s(0xe2)][s(0xe6)]+'\x27;'});const i=b[s(0xe1)]?'/'+b[s(0xe1)]+'/':'/',j=''+d+i+h[s(0xe3)]+'/'+h[s(0xe3)];let k;if(g[s(0xe2)][s(0xe9)]===s(0xdd)){const l=this[s(0x123)][s(0xfd)]({'pathParts':['imports',s(0xec),s(0xfa),s(0x10d)]});k=this[s(0x123)][s(0xfb)]({'pathParts':[l],'config':g});}else{const m=this[s(0x123)][s(0xfd)]({'pathParts':['imports','startup',s(0xf1),s(0x10d)]});k=this[s(0x123)][s(0xfb)]({'pathParts':[m],'config':g});}g[s(0xe2)][s(0xf1)]===s(0xdf)?(g[s(0xe2)]['js']===s(0x11c)?this['fsi'][s(0x126)]({'filePath':k,'content':'import\x20{\x20'+h[s(0x110)]+s(0x11b)+j+s(0x11e)}):this[s(0x123)][s(0x126)]({'filePath':k,'content':s(0x101)+h['className']+'\x20}\x20from\x20\x27'+j+'.'+g[s(0xe2)]['js']+s(0x11e)}),this[s(0x123)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h['className']+s(0xef)})):this[s(0x123)][s(0xe0)]({'filePath':k,'content':s(0x10f)+j+'.'+g['engines']['js']+'\x27;\x0a'});});});
@@ -1 +1 @@
1
- const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0xd7))/0x1+parseInt(h(0xe0))/0x2*(parseInt(h(0xd9))/0x3)+parseInt(h(0xd1))/0x4+parseInt(h(0xe5))/0x5+parseInt(h(0xea))/0x6+-parseInt(h(0xd5))/0x7+-parseInt(h(0xde))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x3a28f));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a[j(0xd4)]()['search']('(((.+)+)+)+$')[j(0xd4)]()[j(0xe7)](a108a)['search'](j(0xd2));});a108a();import{paramCase}from'change-case';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xd1;let f=c[d];return f;},a108d(a,b);}import{Generator}from'../generator.js';Generator[a108k(0xe2)]({'name':a108k(0xd3),'aliases':['p'],'usage':a108k(0xdc),'shortDesc':a108k(0xda),'validOpts':[],'examples':[a108k(0xe9)]},async function(a,b){const l=a108k,c=this[l(0xe4)]['getProjectConfig']();this[l(0xe4)][l(0xdf)](c,async()=>{const m=l,d={'name':b[m(0xe3)],'collection':paramCase(b[m(0xe3)]),'noRename':!![]};let e='js';c[m(0xe8)]['js']===m(0xdd)&&(e='ts');const f=this[m(0xe4)][m(0xeb)]({'pathParts':[m(0xe1)+c[m(0xe8)]['js']]}),g=this['fsi'][m(0xd6)]({'srcPath':m(0xd8)+e,'context':d,'config':c});this['fsi'][m(0xdb)]({'filePath':f,'content':'\x0a'+g});});});function a108c(){const n=['86pnegmT','server/publish.','create','resourceName','fsi','335595DWaUIf','apply','constructor','engines','maka\x20g:publish\x20todos','2736426yqRUsn','rewriteDestinationPathForEngine','1109828qVbNZl','(((.+)+)+)+$','publish','toString','2392943FyzuHX','templateContent','371770iCPHJs','publish/publish.','32283MNLHoZ','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','injectAtEndOfFile','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','tsx','8440544PXecEO','withValue'];a108c=function(){return n;};return a108c();}
1
+ const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=-parseInt(h(0x142))/0x1+parseInt(h(0x13d))/0x2*(parseInt(h(0x139))/0x3)+parseInt(h(0x13c))/0x4*(parseInt(h(0x145))/0x5)+parseInt(h(0x134))/0x6*(parseInt(h(0x135))/0x7)+parseInt(h(0x137))/0x8+parseInt(h(0x132))/0x9*(parseInt(h(0x144))/0xa)+-parseInt(h(0x131))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x33b98));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a['toString']()['search'](j(0x141))['toString']()[j(0x13f)](a108a)['search'](j(0x141));});a108a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x131;let f=c[d];return f;},a108d(a,b);}Generator[a108k(0x136)]({'name':a108k(0x13e),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a108k(0x133),'validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a108k,c=this['fsi'][l(0x147)]();this[l(0x138)][l(0x146)](c,async()=>{const m=l,d={'name':b[m(0x13b)],'collection':paramCase(b[m(0x13b)]),'noRename':!![]};let e='js';c[m(0x140)]['js']==='tsx'&&(e='ts');const f=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m(0x13a)+c[m(0x140)]['js']]}),g=this['fsi'][m(0x148)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x138)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});function a108c(){const n=['apply','2563150dHiaHq','55cMBBEQ','withValue','getProjectConfig','templateContent','6430204wpncsV','9YetZaP','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','186666XecrjV','77ANIqAm','create','1510432hibhur','fsi','479697ARoQkw','server/publish.','resourceName','39768sPLQXh','4dwofQK','publish','constructor','engines','(((.+)+)+)+$','420072jSqhUK'];a108c=function(){return n;};return a108c();}
@@ -1 +1 @@
1
- const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d=-parseInt(x(0x10a))/0x1+parseInt(x(0x132))/0x2*(-parseInt(x(0x116))/0x3)+-parseInt(x(0xf4))/0x4*(parseInt(x(0xf0))/0x5)+parseInt(x(0xe8))/0x6*(parseInt(x(0x115))/0x7)+parseInt(x(0xed))/0x8+parseInt(x(0x120))/0x9*(-parseInt(x(0xe9))/0xa)+-parseInt(x(0xfc))/0xb*(-parseInt(x(0x112))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xf013f));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0x130)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x106)]()['search'](z(0x110))[z(0x106)]()[z(0x119)](a109a)[z(0x122)]('(((.+)+)+)+$');});a109a();function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xe3;let f=c[d];return f;},a109d(a,b);}import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a109c(){const J=['vanilla','7UbKktC','9VdGeEd','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','PrivateLayout','constructor','readFileLines','maka\x20g:route\x20pages/lists/listIndex\x20lists','MasterLayout','newForm','private','error','279LtDsWr','create','search','includes','rewriteDestinationPathForEngine','Valid\x20options\x20are:\x20','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','injectAfterLineNumber','filter','page','client','only','maka\x20g:route\x20todosIndex\x20todos','engines','maka\x20g:route\x20todosEdit\x20todos/:id/edit','layout','apply','findGenerator','304146cjhwMX','config','startup','root','pages','maka\x20g:route\x20pages/about','join','toLowerCase','3196410qbZnaJ','544210jsttWd','/imports/ui/','indexOf','dir','5801616DKJvQj','cwd','injectAtEndOfFile','10jGHtYc','<Router','pathFromApp','true','1153696paAzWj','baseDir','routes.js','Scaffolding\x20for\x20a\x20Route.','withHook','fsi','length','imports','13897026hRzsRF','route','layouts','/imports/ui/pages','const\x20privateRoutes\x20=\x20(<>','const\x20publicRoutes\x20=\x20(<>','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','map','react','invoke','toString','hooks','ssr','</Router>','81192gClClZ','templateContent','warn','features','getProjectConfig','templateName','(((.+)+)+)+$','withValue','24cnOKam','route/route.js'];a109c=function(){return J;};return a109c();}import a109f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a109A(0x121)]({'name':a109A(0xfd),'aliases':aliases,'validOpts':[a109A(0x11e),a109A(0x12f),a109A(0x12b),a109A(0xee),a109A(0x133),'root',a109A(0xf8),'url','baseDir'],'usage':a109A(0x102),'shortDesc':a109A(0xf7),'examples':[a109A(0x12c),a109A(0x12e),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a109A(0x11b),a109A(0xe5)]},function(a,b){const B=a109A;try{const c=[B(0x107),'components',B(0xe4),B(0xfe)];if(b['baseDir']&&!c['includes'](b['baseDir'])){Log[B(0x11f)]('Invalid\x20directory\x20option\x20\x22'+b[B(0xf5)]+'\x22'),Log[B(0x11f)](B(0x125)+c[B(0xe6)](',\x20'));throw new UsageError();}const d=this[B(0xf9)][B(0x10e)]();this[B(0xf9)][B(0x111)](d,async()=>{const C=B,f=b[C(0x11e)]??![];let g=paramCase(a[0x0]),h='/'+g;a[C(0xfa)]>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})[C(0xe6)]('/')[C(0xe7)]());g=camelCase(g);b[C(0x12f)]&&(b[C(0x12f)]=camelCase(b[C(0x12f)]));const i=b['baseDir']?C(0xea)+b['baseDir']:C(0xff),j=a109e[C(0xe6)](i,b[C(0xec)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x12f)]||C(0x11c),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0x12d)][C(0x12a)],'newForm':![],'withTranslations':d[C(0x10d)]['withTranslations']};f&&(k['layout']=C(0x118));if(!b[C(0xe3)]){const n=a109f[C(0x131)](C(0x129));n&&await n[C(0x105)](a,b);}let l,m;if(d['engines'][C(0x12a)]===C(0x104)){if(d[C(0x12d)][C(0x108)]===C(0xf3)){const r=this[C(0xf9)]['pathFromApp']({'pathParts':['imports',C(0x134),'lib',C(0xf6)]});l=this[C(0xf9)][C(0x124)]({'pathParts':[r],'config':d});}else{const s=this[C(0xf9)]['pathFromApp']({'pathParts':[C(0xfb),C(0x134),C(0x12a),C(0xf6)]});l=this[C(0xf9)][C(0x124)]({'pathParts':[s],'config':d});}const o=this['fsi'][C(0x11a)](l)['map']((t,u)=>{const D=C;return t[D(0x123)](D(0x117))?u+0x1:null;})[C(0x128)](t=>t!==null);let p=this[C(0xf9)]['readFileLines'](l)['map']((t,u)=>{const E=C;return t[E(0x123)](E(0x101))?u+0x1:null;})['filter'](t=>t!==null),q=this[C(0xf9)][C(0x11a)](l)['map']((t,u)=>{const F=C;return t[F(0x123)]('const\x20privateRoutes\x20=\x20(<>')?u+0x1:null;})[C(0x128)](t=>t!==null);p[C(0xfa)]>0x0&&q[C(0xfa)]>0x0&&(k[C(0x11d)]=!![]);m=this[C(0xf9)][C(0x10b)]({'srcPath':'route/route.js','framework':C(0x104),'context':k,'config':d});if(p['length']>0x0||q['length']>0x0){this[C(0xf9)][C(0x127)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xfa)]>0x0)q=this['fsi']['readFileLines'](l)[C(0x103)]((t,u)=>{const G=C;return t[G(0x123)](G(0x100))?u+0x1:null;})[C(0x128)](t=>t!==null),this[C(0xf9)][C(0x127)]({'filePath':l,'content':'\x09{'+k[C(0x10f)]+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[C(0xf9)]['readFileLines'](l)['map']((t,u)=>{const H=C;return t[H(0x123)](H(0x101))?u+0x1:null;})['filter'](t=>t!==null),this['fsi'][C(0x127)]({'filePath':l,'content':'\x09{'+k[C(0x10f)]+'}','lineNumber':p[0x0]})):Log[C(0x10c)](C(0x126)+l);}else{const t=this[C(0xf9)]['readFileLines'](l)[C(0x103)](w=>{const I=C;return w[I(0x123)]('\x22*\x22');}),u=t[C(0xeb)](!![])>-0x1,v=u?'<Route':C(0x109);this[C(0xf9)]['injectIntoFile']({'filePath':l,'content':'\x0a\x09\x09'+m+'\x0a\x09\x09','begin':C(0xf1),'end':v});}}else{if(d[C(0x12d)][C(0x12a)]===C(0x114)){const w=this['fsi'][C(0xf2)]({'pathParts':['imports','startup',C(0x12a),C(0xf6)]});l=this[C(0xf9)][C(0x124)]({'pathParts':[w],'config':d}),m=this['fsi']['templateContent']({'srcPath':C(0x113),'context':k}),this[C(0xf9)][C(0xef)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0x11f)](f);}});
1
+ const a109A=a109d;function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x7c;let f=c[d];return f;},a109d(a,b);}(function(a,b){const x=a109d,c=a();while(!![]){try{const d=parseInt(x(0x7c))/0x1+parseInt(x(0xab))/0x2+parseInt(x(0x85))/0x3+-parseInt(x(0x89))/0x4+-parseInt(x(0xb9))/0x5+-parseInt(x(0xb1))/0x6*(-parseInt(x(0x92))/0x7)+-parseInt(x(0xac))/0x8*(parseInt(x(0x88))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x8a360));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0x7d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x87)]()[z(0x9a)]('(((.+)+)+)+$')[z(0x87)]()[z(0xa7)](a109a)[z(0x9a)]('(((.+)+)+)+$');});a109a();import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a109f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];function a109c(){const J=['2468776IQOVFL','maka\x20g:route\x20pages/lists/listIndex\x20lists','components','client','hooks','toLowerCase','newForm','warn','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','7mJPBxQ','route','engines','</Router>','PrivateLayout','ssr','injectAfterLineNumber','indexOf','search','injectAtEndOfFile','length','readFileLines','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','const\x20privateRoutes\x20=\x20(<>','route/route.js','rewriteDestinationPathForEngine','pages','page','filter','map','only','constructor','root','withValue','templateName','1760432gOUzdg','188080Qymkxc','url','fsi','vanilla','includes','3535338VqnCvH','error','react','withHook','<Route','injectIntoFile','baseDir','routes.js','2943665DQhKfI','join','Valid\x20options\x20are:\x20','true','layout','lib','templateContent','/imports/ui/pages','89087nDhNAO','apply','cwd','startup','const\x20publicRoutes\x20=\x20(<>','\x0a\x09\x09','Invalid\x20directory\x20option\x20\x22','imports','pathFromApp','1839549lHyWci','\x22*\x22','toString','153pSMWwp'];a109c=function(){return J;};return a109c();}Generator['create']({'name':a109A(0x93),'aliases':aliases,'validOpts':['private','layout',a109A(0xa6),a109A(0x7e),'config','root',a109A(0xb4),a109A(0xad),'baseDir'],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':['maka\x20g:route\x20todosIndex\x20todos','maka\x20g:route\x20todosEdit\x20todos/:id/edit',a109A(0x9e),a109A(0x8a),'maka\x20g:route\x20pages/about']},function(a,b){const B=a109A;try{const c=[B(0x8d),B(0x8b),B(0xa2),'layouts'];if(b[B(0xb7)]&&!c[B(0xb0)](b[B(0xb7)])){Log[B(0xb2)](B(0x82)+b[B(0xb7)]+'\x22'),Log[B(0xb2)](B(0xbb)+c['join'](',\x20'));throw new UsageError();}const d=this['fsi']['getProjectConfig']();this['fsi'][B(0xa9)](d,async()=>{const C=B,f=b['private']??![];let g=paramCase(a[0x0]),h='/'+g;a[C(0x9c)]>0x1&&(h='/'+a[C(0xa4)](function(n){return n!=='/';})[C(0xba)]('/')[C(0x8e)]());g=camelCase(g);b[C(0xbd)]&&(b['layout']=camelCase(b[C(0xbd)]));const i=b[C(0xb7)]?'/imports/ui/'+b[C(0xb7)]:C(0xc0),j=a109e[C(0xba)](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b['layout']||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d['engines']['client'],'newForm':![],'withTranslations':d['features']['withTranslations']};f&&(k[C(0xbd)]=C(0x96));if(!b[C(0xa8)]){const n=a109f['findGenerator'](C(0xa3));n&&await n['invoke'](a,b);}let l,m;if(d[C(0x94)][C(0x8c)]==='react'){if(d[C(0x94)][C(0x97)]===C(0xbc)){const r=this['fsi']['pathFromApp']({'pathParts':['imports',C(0x7f),C(0xbe),'routes.js']});l=this[C(0xae)][C(0xa1)]({'pathParts':[r],'config':d});}else{const s=this[C(0xae)][C(0x84)]({'pathParts':['imports','startup','client','routes.js']});l=this[C(0xae)]['rewriteDestinationPathForEngine']({'pathParts':[s],'config':d});}const o=this[C(0xae)][C(0x9d)](l)[C(0xa5)]((t,u)=>{const D=C;return t[D(0xb0)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?u+0x1:null;})[C(0xa4)](t=>t!==null);let p=this['fsi'][C(0x9d)](l)['map']((t,u)=>{const E=C;return t[E(0xb0)](E(0x80))?u+0x1:null;})[C(0xa4)](t=>t!==null),q=this[C(0xae)]['readFileLines'](l)[C(0xa5)]((t,u)=>{const F=C;return t[F(0xb0)](F(0x9f))?u+0x1:null;})[C(0xa4)](t=>t!==null);p['length']>0x0&&q[C(0x9c)]>0x0&&(k[C(0x8f)]=!![]);m=this[C(0xae)][C(0xbf)]({'srcPath':C(0xa0),'framework':C(0xb3),'context':k,'config':d});if(p[C(0x9c)]>0x0||q[C(0x9c)]>0x0){this[C(0xae)][C(0x98)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0x9c)]>0x0)q=this[C(0xae)]['readFileLines'](l)[C(0xa5)]((t,u)=>{const G=C;return t[G(0xb0)](G(0x9f))?u+0x1:null;})[C(0xa4)](t=>t!==null),this['fsi'][C(0x98)]({'filePath':l,'content':'\x09{'+k[C(0xaa)]+'}','lineNumber':q[0x0]});else p[C(0x9c)]>0x0?(p=this['fsi'][C(0x9d)](l)[C(0xa5)]((t,u)=>{const H=C;return t[H(0xb0)](H(0x80))?u+0x1:null;})[C(0xa4)](t=>t!==null),this[C(0xae)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':p[0x0]})):Log[C(0x90)](C(0x91)+l);}else{const t=this['fsi'][C(0x9d)](l)[C(0xa5)](w=>{const I=C;return w[I(0xb0)](I(0x86));}),u=t[C(0x99)](!![])>-0x1,v=u?C(0xb5):C(0x95);this[C(0xae)][C(0xb6)]({'filePath':l,'content':'\x0a\x09\x09'+m+C(0x81),'begin':'<Router','end':v});}}else{if(d['engines'][C(0x8c)]===C(0xaf)){const w=this[C(0xae)][C(0x84)]({'pathParts':[C(0x83),C(0x7f),C(0x8c),C(0xb8)]});l=this['fsi'][C(0xa1)]({'pathParts':[w],'config':d}),m=this[C(0xae)][C(0xbf)]({'srcPath':C(0xa0),'context':k}),this[C(0xae)][C(0x9b)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
@@ -1 +1 @@
1
- const a110m=a110d;function a110c(){const p=['imports','service/logger/logger.js','services','36aybZJs','error','resourceName','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','toString','template','logger','checkNpmPackage','235168hCsvoY','search','lib','startup','pathFromApp','24EnFaFS','winston','create','832779JeOhki','23695kkFNMu','96478dTLdvn','service','installNpmPackage','Installing\x20winston','engines','winston\x20setimmediate','15826PsaIZN','apply','64745uIenOu','280UJDRwz','fsi','maka\x20{generate,\x20g}:{service}\x20[service-type]','1006181MQKWtr','10HCxxOA'];a110c=function(){return p;};return a110c();}(function(a,b){const j=a110d,c=a();while(!![]){try{const d=parseInt(j(0x11a))/0x1+-parseInt(j(0x120))/0x2*(-parseInt(j(0x138))/0x3)+-parseInt(j(0x133))/0x4+parseInt(j(0x122))/0x5*(parseInt(j(0x12b))/0x6)+-parseInt(j(0x119))/0x7*(-parseInt(j(0x123))/0x8)+-parseInt(j(0x13b))/0x9+-parseInt(j(0x127))/0xa*(parseInt(j(0x126))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x1ba05));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a110d;if(c){const e=c[k(0x121)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const l=a110d;return a110a[l(0x12f)]()[l(0x134)]('(((.+)+)+)+$')[l(0x12f)]()['constructor'](a110a)[l(0x134)]('(((.+)+)+)+$');});a110a();function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x119;let f=c[d];return f;},a110d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a110m(0x13a)]({'name':a110m(0x11b),'aliases':['svc'],'usage':a110m(0x125),'shortDesc':a110m(0x12e),'validOpts':['type'],'validArgs':['logger'],'maxArgLength':0x1,'minArgLength':0x1,'examples':['maka\x20g:svc\x20logger']},async function(a,b){const n=a110m;try{const c=this[n(0x124)]['getProjectConfig']();this[n(0x124)]['withValue'](c,async()=>{const o=n,d=this[o(0x124)][o(0x137)]({}),f=paramCase(b[o(0x12d)]),g={'name':pascalCase(b[o(0x12d)]),'fileName':f,'camelCase':camelCase(b[o(0x12d)]),'type':a[0x0],'engine':c[o(0x11e)]['js'],'noRename':!![]};let h='js';c[o(0x11e)]['js']==='tsx'&&(h='ts');if(a[0x0]===o(0x131)){!this[o(0x124)][o(0x132)](o(0x139))&&await this['fsi'][o(0x11c)](o(0x11f),{'cwd':d,'msg':o(0x11d)});const i=this['fsi'][o(0x137)]({'pathParts':[o(0x128),o(0x136),o(0x135),o(0x12a),f+'.'+h]});this[o(0x124)][o(0x130)]({'srcPath':o(0x129),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x12c)](d);}});
1
+ function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xe5;let f=c[d];return f;},a110d(a,b);}const a110m=a110d;(function(a,b){const j=a110d,c=a();while(!![]){try{const d=-parseInt(j(0xfc))/0x1+parseInt(j(0xfb))/0x2*(parseInt(j(0xff))/0x3)+parseInt(j(0xf1))/0x4+parseInt(j(0x103))/0x5*(parseInt(j(0xf6))/0x6)+-parseInt(j(0x101))/0x7*(parseInt(j(0xf5))/0x8)+parseInt(j(0xfa))/0x9+-parseInt(j(0x108))/0xa*(parseInt(j(0xea))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xe3a65));function a110c(){const p=['svc','43437uBSJIm','(((.+)+)+)+$','7xGDmDb','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','86750rbxnVS','installNpmPackage','winston\x20setimmediate','service/logger/logger.js','fsi','2081810gUDfpf','maka\x20{generate,\x20g}:{service}\x20[service-type]','winston','toString','logger','imports','error','pathFromApp','187gqUQsZ','template','search','startup','tsx','apply','services','5171528eNaKMh','resourceName','Installing\x20winston','engines','2831992NoiGrI','402jCoaKF','constructor','type','service','7683174UgKcXH','254GNtgLi','322322HxDnND','withValue'];a110c=function(){return p;};return a110c();}const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a110d;if(c){const e=c[k(0xef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const l=a110d;return a110a[l(0xe5)]()[l(0xec)](l(0x100))['toString']()[l(0xf7)](a110a)[l(0xec)]('(((.+)+)+)+$');});a110a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a110m(0xf9),'aliases':[a110m(0xfe)],'usage':a110m(0x109),'shortDesc':a110m(0x102),'validOpts':[a110m(0xf8)],'validArgs':[a110m(0xe6)],'maxArgLength':0x1,'minArgLength':0x1,'examples':['maka\x20g:svc\x20logger']},async function(a,b){const n=a110m;try{const c=this['fsi']['getProjectConfig']();this['fsi'][n(0xfd)](c,async()=>{const o=n,d=this['fsi']['pathFromApp']({}),f=paramCase(b[o(0xf2)]),g={'name':pascalCase(b[o(0xf2)]),'fileName':f,'camelCase':camelCase(b[o(0xf2)]),'type':a[0x0],'engine':c[o(0xf4)]['js'],'noRename':!![]};let h='js';c[o(0xf4)]['js']===o(0xee)&&(h='ts');if(a[0x0]==='logger'){!this[o(0x107)]['checkNpmPackage'](o(0x10a))&&await this['fsi'][o(0x104)](o(0x105),{'cwd':d,'msg':o(0xf3)});const i=this[o(0x107)][o(0xe9)]({'pathParts':[o(0xe7),o(0xed),'lib',o(0xf0),f+'.'+h]});this[o(0x107)][o(0xeb)]({'srcPath':o(0x106),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0xe8)](d);}});
@@ -1 +1 @@
1
- function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x164;var f=c[d];return f;},a111d(a,b);}(function(a,b){var f=a111d,c=a();while(!![]){try{var d=parseInt(f(0x165))/0x1*(parseInt(f(0x169))/0x2)+parseInt(f(0x164))/0x3*(parseInt(f(0x173))/0x4)+-parseInt(f(0x16a))/0x5+-parseInt(f(0x16c))/0x6*(-parseInt(f(0x168))/0x7)+-parseInt(f(0x166))/0x8*(-parseInt(f(0x172))/0x9)+-parseInt(f(0x16b))/0xa+-parseInt(f(0x167))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x7f145));var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a[h(0x171)]()[h(0x16d)](h(0x16f))[h(0x171)]()[h(0x16e)](a111a)[h(0x16d)]('(((.+)+)+)+$');});a111a();import'./translation.js';import'./openssl.js';function a111c(){var i=['1511091PXlvDJ','8652OqVODR','1266vAhieI','1YEJReU','32mZULJs','16861009gEuGfP','1589rhOCLV','2020786JzCsmj','4509155PczJNt','6431750ivmLSc','26526OpMMxP','search','constructor','(((.+)+)+)+$','apply','toString'];a111c=function(){return i;};return a111c();}
1
+ (function(a,b){var f=a111d,c=a();while(!![]){try{var d=parseInt(f(0x1d8))/0x1+parseInt(f(0x1d3))/0x2*(parseInt(f(0x1cf))/0x3)+-parseInt(f(0x1db))/0x4+parseInt(f(0x1d2))/0x5*(-parseInt(f(0x1d0))/0x6)+parseInt(f(0x1d4))/0x7*(parseInt(f(0x1d9))/0x8)+parseInt(f(0x1d5))/0x9*(-parseInt(f(0x1d7))/0xa)+-parseInt(f(0x1d6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x99aba));var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a[h(0x1d1)]()['search']('(((.+)+)+)+$')[h(0x1d1)]()['constructor'](a111a)['search'](h(0x1dc));});function a111c(){var i=['171sFsbFW','100146UxWghD','toString','125esXBDw','1744jzrOXv','19292YFllqc','232614FHfquQ','2805539pjbBxU','310WWUSXi','1097225dBOFRV','3128xumrTN','apply','486164EamlXe','(((.+)+)+)+$'];a111c=function(){return i;};return a111c();}function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x1cf;var f=c[d];return f;},a111d(a,b);}a111a();import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- const a112l=a112d;(function(a,b){const i=a112d,c=a();while(!![]){try{const d=-parseInt(i(0x1a7))/0x1+-parseInt(i(0x1a4))/0x2+parseInt(i(0x1b5))/0x3*(-parseInt(i(0x1b2))/0x4)+-parseInt(i(0x1b1))/0x5+-parseInt(i(0x1ab))/0x6*(-parseInt(i(0x1b9))/0x7)+-parseInt(i(0x1a6))/0x8+parseInt(i(0x1bb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xb8869));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a112d;if(c){const e=c[j(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const k=a112d;return a112a[k(0x1ba)]()[k(0x1b0)](k(0x1b3))[k(0x1ba)]()[k(0x1af)](a112a)[k(0x1b0)]('(((.+)+)+)+$');});a112a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a112e from'path';Generator['create']({'name':a112l(0x1b4),'usage':a112l(0x1ae),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noResource':!![],'requiredOpts':[a112l(0x1aa)],'examples':[a112l(0x1b8)],'validOpts':['env']},async function(a,b){const m=a112l;try{const c=await this['fsi']['getProjectConfig'](),d=await this[m(0x1b7)]['getGlobalConfig'](),f=this[m(0x1b7)][m(0x1b6)](b[m(0x1aa)]),g=a112e['join'](f,'_keys','openssl.conf');await this[m(0x1b7)][m(0x1a8)](c,async()=>{const n=m,h={'app':d[n(0x1ad)],'noRename':!![]};await this['fsi'][n(0x1a9)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[m(0x1a5)](h);}});function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a112d(a,b);}function a112c(){const o=['getConfigPath','fsi','maka\x20g:sslconfig\x20--env\x20dev','103145WholBu','toString','54874521yOuUyD','1313034Nahsxs','error','10837200JghAKe','1242120xDwwaY','withValue','template','env','168rcpNSu','apply','appName','maka\x20{generate,\x20g}:sslconfig','constructor','search','6809450hdKyxJ','12EQpUUl','(((.+)+)+)+$','sslconfig','1138755qSFvoT'];a112c=function(){return o;};return a112c();}
1
+ const a112k=a112d;(function(a,b){const i=a112d,c=a();while(!![]){try{const d=parseInt(i(0x146))/0x1*(parseInt(i(0x150))/0x2)+-parseInt(i(0x152))/0x3*(-parseInt(i(0x158))/0x4)+parseInt(i(0x15f))/0x5*(parseInt(i(0x14d))/0x6)+parseInt(i(0x148))/0x7*(-parseInt(i(0x149))/0x8)+-parseInt(i(0x156))/0x9*(-parseInt(i(0x14a))/0xa)+-parseInt(i(0x145))/0xb+parseInt(i(0x14b))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x6a8d2));const a112b=(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;};}()),a112a=a112b(this,function(){const j=a112d;return a112a['toString']()[j(0x14f)]('(((.+)+)+)+$')['toString']()[j(0x162)](a112a)[j(0x14f)](j(0x161));});a112a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a112e from'path';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x145;let f=c[d];return f;},a112d(a,b);}function a112c(){const n=['maka\x20g:sslconfig\x20--env\x20dev','16344oinKmZ','openssl.conf','maka\x20{generate,\x20g}:sslconfig','_keys','2995605rXBJqH','env','212zzRDwJ','appName','fsi','openssl/openssl.conf','getGlobalConfig','template','getConfigPath','85yNCFiP','Generate\x20a\x20new\x20openssl\x20config\x20file','(((.+)+)+)+$','constructor','6472950ljMmra','1rsBvLX','withValue','2627387gmfUsQ','8XZNqJt','10JamMfz','1764132yfwWJg','create','115398qXRYRc','sslconfig','search','609328gMifzS'];a112c=function(){return n;};return a112c();}Generator[a112k(0x14c)]({'name':a112k(0x14e),'usage':a112k(0x154),'shortDesc':a112k(0x160),'noResource':!![],'requiredOpts':[a112k(0x157)],'examples':[a112k(0x151)],'validOpts':['env']},async function(a,b){const l=a112k;try{const c=await this[l(0x15a)]['getProjectConfig'](),d=await this[l(0x15a)][l(0x15c)](),f=this[l(0x15a)][l(0x15e)](b[l(0x157)]),g=a112e['join'](f,l(0x155),l(0x153));await this['fsi'][l(0x147)](c,async()=>{const m=l,h={'app':d[m(0x159)],'noRename':!![]};await this[m(0x15a)][m(0x15d)]({'srcPath':m(0x15b),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log['error'](h);}});
@@ -1 +1 @@
1
- const a113A=a113d;function a113c(){const D=['constructor','translation','4fsrbQC','245232jZVERM','getProjectConfig','features.withTranslations','176706wZIdCU','3UrPmsW','exit','services','getGlobalConfig','findAppDirectory','search','lang','rewriteDestinationPathForEngine','template','withValue','(((.+)+)+)+$','service','fsi','maka\x20g:translation\x20--lang=fr','ssr','Locale\x20already\x20exported:\x20','locales','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','i18n/index.js','17621jcXDEP','4694310AuXGEO','injectAtEndOfFile','error','translations','apply','installNpmPackage','3804552eBcFAr','readFileSync','import\x20\x27../lib/services/translations/i18n\x27;','i18next\x20i18next-browser-languagedetector\x20react-i18next','index.js','i18next','appName','maka\x20{generate,\x20g}:translation\x20--lang=<language>','\x20}\x20from\x20\x27./','true','i18n','checkNpmPackage','lib','create','Locale\x20already\x20defined:\x20','imports','root','3524934CIneeE','engines','pathFromApp','maka\x20g:translation\x20--lang=en\x20(default)','toString','grep','402580JDujep','warn','isFile','.js','i18n/locales.js','index.','default\x20as\x20','injectAtBeginningOfFile','startup','server','Generate\x20a\x20new\x20locale\x20translation','import\x20\x27../lib/services/translations/i18n\x27;\x0a','i18n/i18n.js'];a113c=function(){return D;};return a113c();}(function(a,b){const x=a113d,c=a();while(!![]){try{const d=parseInt(x(0xe8))/0x1+parseInt(x(0x119))/0x2*(parseInt(x(0x11a))/0x3)+parseInt(x(0x115))/0x4*(parseInt(x(0x106))/0x5)+-parseInt(x(0xe9))/0x6+parseInt(x(0x100))/0x7+parseInt(x(0xef))/0x8+parseInt(x(0x116))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x64374));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a113d;if(c){const e=c[y(0xed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const z=a113d;return a113a['toString']()[z(0x11f)](z(0xdf))['toString']()[z(0x113)](a113a)[z(0x11f)](z(0xdf));});a113a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a113e from'fs';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xdc;let f=c[d];return f;},a113d(a,b);}Generator[a113A(0xfc)]({'name':a113A(0x114),'usage':a113A(0xf6),'aliases':[a113A(0xf9)],'shortDesc':a113A(0x110),'noResource':!![],'examples':[a113A(0x103),a113A(0xe2),'maka\x20g:translation\x20--lang=de'],'validOpts':['lang']},function(a,b){const B=a113A;try{const c=this['fsi'][B(0x117)](),d=this[B(0xe1)][B(0x11d)](),f=this[B(0xe1)][B(0x11e)]();this['fsi'][B(0xde)](c,()=>{const C=B;try{!b[C(0x120)]&&(b[C(0x120)]='en');!b[C(0xff)]&&!this[C(0xe1)][C(0xfa)](C(0xf4))&&(Log[C(0x107)](C(0xe6)),this['fsi'][C(0xee)](C(0xf2),{'cwd':f}),this[C(0xe1)]['setProjectConfig'](C(0x118),!![]));const g=this['fsi'][C(0x102)]({'pathParts':[C(0xfe),C(0x10e),'client',C(0xf3)]}),h=this[C(0xe1)][C(0xdc)]({'pathParts':[g],'config':c}),i=this['fsi']['grep'](a113e['readFileSync'](h)[C(0x104)](),C(0xf1))[0x0]&&!![];if(c[C(0x101)][C(0xe3)]===C(0xf8)){!i&&this['fsi'][C(0x10d)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[C(0xe1)][C(0x102)]({'pathParts':[C(0xfe),C(0x10e),C(0x10f),C(0xf3)]}),u=this[C(0xe1)][C(0xdc)]({'pathParts':[t],'config':c}),v=this[C(0xe1)]['grep'](a113e[C(0xf0)](u)[C(0x104)](),C(0xf1))[0x0]&&!![];!v&&this[C(0xe1)]['injectAtBeginningOfFile']({'filePath':u,'content':C(0x111)});}else!i&&this[C(0xe1)][C(0x10d)]({'filePath':h,'content':C(0x111)});const j={'app':d[C(0xf5)],'config':c},k=this[C(0xe1)][C(0x102)]({'pathParts':[C(0xfe),C(0x10e),C(0xfb),C(0x11c),C(0xec),'i18n.js']}),l=this[C(0xe1)][C(0x108)](this[C(0xe1)][C(0xdc)]({'pathParts':[k],'config':c}));!l&&this[C(0xe1)][C(0xdd)]({'srcPath':C(0x112),'destPath':k,'framework':'service','context':j,'config':c});const m=this[C(0xe1)]['pathFromApp']({'pathParts':[C(0xfe),C(0x10e),C(0xfb),'services',C(0xec),C(0xe5),b[C(0x120)]+C(0x109)]}),n=this[C(0xe1)][C(0xdc)]({'pathParts':[m],'config':c}),o=this['fsi'][C(0x108)](n);!o?this['fsi'][C(0xdd)]({'srcPath':C(0x10a),'destPath':m,'framework':C(0xe0),'context':j,'config':c}):Log[C(0x107)](C(0xfd)+n);const p=this['fsi'][C(0x102)]({'pathParts':[C(0xfe),'startup',C(0xfb),C(0x11c),'translations',C(0xe5),C(0x10b)+c[C(0x101)]['js']]}),q=this[C(0xe1)][C(0xdc)]({'pathParts':[p],'config':c}),r=this[C(0xe1)][C(0x108)](q);!r&&this['fsi'][C(0xdd)]({'srcPath':C(0xe7),'destPath':p,'framework':C(0xe0),'context':j,'config':c});const s=this[C(0xe1)][C(0x105)](a113e[C(0xf0)](p)[C(0x104)](),C(0x10c)+b['lang'])[0x0]&&!![];!s?this[C(0xe1)][C(0xea)]({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b[C(0x120)]+C(0xf7)+b[C(0x120)]+'\x27;'}):Log[C(0x107)](C(0xe4)+p);}catch(w){Log[C(0xeb)](w),process['exit'](0x1);}});}catch(g){Log[B(0xeb)](g),process[B(0x11b)](0x1);}});
1
+ const a113A=a113d;function a113c(){const D=['checkNpmPackage','index.js','locales','imports','isFile','translations','findAppDirectory','(((.+)+)+)+$','appName','2155008TxWXcU','44AoXJXG','grep','7GKvQPP','service','toString','getProjectConfig','setProjectConfig','translation','i18n','index.','error','export\x20{\x20default\x20as\x20','create','62285uigJdx','Generate\x20a\x20new\x20locale\x20translation','exit','12ZKCyiO','server','ssr','readFileSync','.js','features.withTranslations','Locale\x20already\x20defined:\x20','1376056GUWiKr','apply','10380056Mawuam','getGlobalConfig','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','lib','client','true','startup','9927XQKobs','9873612gfUCwa','services','i18n/i18n.js','search','warn','engines','pathFromApp','i18n/locales.js','withValue','import\x20\x27../lib/services/translations/i18n\x27;\x0a','maka\x20{generate,\x20g}:translation\x20--lang=<language>','maka\x20g:translation\x20--lang=de','constructor','1692860RGVxWg','import\x20\x27../lib/services/translations/i18n\x27;','injectAtBeginningOfFile','maka\x20g:translation\x20--lang=en\x20(default)','\x20}\x20from\x20\x27./','fsi','346CrqNeT','root','maka\x20g:translation\x20--lang=fr','lang','rewriteDestinationPathForEngine'];a113c=function(){return D;};return a113c();}(function(a,b){const x=a113d,c=a();while(!![]){try{const d=parseInt(x(0x12b))/0x1+-parseInt(x(0x105))/0x2*(parseInt(x(0x134))/0x3)+parseInt(x(0x124))/0x4*(parseInt(x(0x121))/0x5)+parseInt(x(0x113))/0x6+-parseInt(x(0x116))/0x7*(-parseInt(x(0x12d))/0x8)+-parseInt(x(0x135))/0x9+parseInt(x(0xff))/0xa*(-parseInt(x(0x114))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xb09e9));function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xff;let f=c[d];return f;},a113d(a,b);}const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a113d;if(c){const e=c[y(0x12c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const z=a113d;return a113a['toString']()[z(0x138)](z(0x111))[z(0x118)]()[z(0x141)](a113a)[z(0x138)]('(((.+)+)+)+$');});a113a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a113e from'fs';Generator[a113A(0x120)]({'name':a113A(0x11b),'usage':a113A(0x13f),'aliases':[a113A(0x11c)],'shortDesc':a113A(0x122),'noResource':!![],'examples':[a113A(0x102),a113A(0x107),a113A(0x140)],'validOpts':['lang']},function(a,b){const B=a113A;try{const c=this[B(0x104)][B(0x119)](),d=this['fsi'][B(0x12e)](),f=this[B(0x104)][B(0x110)]();this['fsi'][B(0x13d)](c,()=>{const C=B;try{!b[C(0x108)]&&(b[C(0x108)]='en');!b[C(0x106)]&&!this['fsi'][C(0x10a)]('i18next')&&(Log['warn'](C(0x12f)),this[C(0x104)]['installNpmPackage']('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[C(0x104)][C(0x11a)](C(0x129),!![]));const g=this[C(0x104)]['pathFromApp']({'pathParts':[C(0x10d),C(0x133),C(0x131),C(0x10b)]}),h=this[C(0x104)][C(0x109)]({'pathParts':[g],'config':c}),i=this[C(0x104)][C(0x115)](a113e['readFileSync'](h)['toString'](),C(0x100))[0x0]&&!![];if(c[C(0x13a)][C(0x126)]===C(0x132)){!i&&this[C(0x104)][C(0x101)]({'filePath':h,'content':C(0x13e)});const t=this[C(0x104)]['pathFromApp']({'pathParts':[C(0x10d),C(0x133),C(0x125),C(0x10b)]}),u=this['fsi'][C(0x109)]({'pathParts':[t],'config':c}),v=this[C(0x104)][C(0x115)](a113e[C(0x127)](u)[C(0x118)](),C(0x100))[0x0]&&!![];!v&&this[C(0x104)][C(0x101)]({'filePath':u,'content':C(0x13e)});}else!i&&this[C(0x104)][C(0x101)]({'filePath':h,'content':C(0x13e)});const j={'app':d[C(0x112)],'config':c},k=this[C(0x104)][C(0x13b)]({'pathParts':[C(0x10d),C(0x133),C(0x130),C(0x136),C(0x10f),'i18n.js']}),l=this[C(0x104)][C(0x10e)](this[C(0x104)][C(0x109)]({'pathParts':[k],'config':c}));!l&&this['fsi']['template']({'srcPath':C(0x137),'destPath':k,'framework':'service','context':j,'config':c});const m=this[C(0x104)][C(0x13b)]({'pathParts':[C(0x10d),C(0x133),C(0x130),C(0x136),C(0x10f),C(0x10c),b[C(0x108)]+C(0x128)]}),n=this[C(0x104)][C(0x109)]({'pathParts':[m],'config':c}),o=this[C(0x104)][C(0x10e)](n);!o?this[C(0x104)]['template']({'srcPath':C(0x13c),'destPath':m,'framework':'service','context':j,'config':c}):Log['warn'](C(0x12a)+n);const p=this[C(0x104)][C(0x13b)]({'pathParts':['imports',C(0x133),C(0x130),'services','translations','locales',C(0x11d)+c['engines']['js']]}),q=this[C(0x104)][C(0x109)]({'pathParts':[p],'config':c}),r=this['fsi'][C(0x10e)](q);!r&&this[C(0x104)]['template']({'srcPath':'i18n/index.js','destPath':p,'framework':C(0x117),'context':j,'config':c});const s=this[C(0x104)]['grep'](a113e[C(0x127)](p)[C(0x118)](),'default\x20as\x20'+b[C(0x108)])[0x0]&&!![];!s?this[C(0x104)]['injectAtEndOfFile']({'filePath':p,'content':C(0x11f)+b[C(0x108)]+C(0x103)+b[C(0x108)]+'\x27;'}):Log[C(0x139)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[C(0x11e)](w),process[C(0x123)](0x1);}});}catch(g){Log[B(0x11e)](g),process[B(0x123)](0x1);}});