@maka/maka-cli 4.9.6 → 4.9.8

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 (150) 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/_index.js +1 -1
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/patreon.js +1 -1
  84. package/bundle/obf/src/commands/proxy.js +1 -1
  85. package/bundle/obf/src/commands/reconfig.js +1 -1
  86. package/bundle/obf/src/commands/register.js +1 -1
  87. package/bundle/obf/src/commands/run/_index.js +1 -1
  88. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  89. package/bundle/obf/src/commands/run/run.command.js +1 -1
  90. package/bundle/obf/src/commands/set/_index.js +1 -1
  91. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/set/set.command.js +1 -1
  94. package/bundle/obf/src/commands/ssh.js +1 -1
  95. package/bundle/obf/src/commands/ssl.js +1 -1
  96. package/bundle/obf/src/commands/test.js +1 -1
  97. package/bundle/obf/src/commands/undo.js +1 -1
  98. package/bundle/obf/src/commands/version.js +1 -1
  99. package/bundle/obf/src/error.js +1 -1
  100. package/bundle/obf/src/exec.js +1 -1
  101. package/bundle/obf/src/generator.js +1 -1
  102. package/bundle/obf/src/generators/_index.js +1 -1
  103. package/bundle/obf/src/generators/api.js +1 -1
  104. package/bundle/obf/src/generators/collection.js +1 -1
  105. package/bundle/obf/src/generators/component.js +1 -1
  106. package/bundle/obf/src/generators/config.js +1 -1
  107. package/bundle/obf/src/generators/dbc.js +1 -1
  108. package/bundle/obf/src/generators/dockerfile.js +1 -1
  109. package/bundle/obf/src/generators/hook.js +1 -1
  110. package/bundle/obf/src/generators/kits/_index.js +1 -1
  111. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  112. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  113. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  114. package/bundle/obf/src/generators/kits/kit.js +1 -1
  115. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  117. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  118. package/bundle/obf/src/generators/layout.js +1 -1
  119. package/bundle/obf/src/generators/maka.gen.js +1 -1
  120. package/bundle/obf/src/generators/methods.js +1 -1
  121. package/bundle/obf/src/generators/package.js +1 -1
  122. package/bundle/obf/src/generators/page.js +1 -1
  123. package/bundle/obf/src/generators/publish.js +1 -1
  124. package/bundle/obf/src/generators/route.js +1 -1
  125. package/bundle/obf/src/generators/service.js +1 -1
  126. package/bundle/obf/src/generators/services/_index.js +1 -1
  127. package/bundle/obf/src/generators/services/openssl.js +1 -1
  128. package/bundle/obf/src/generators/services/translation.js +1 -1
  129. package/bundle/obf/src/maka.js +1 -1
  130. package/bundle/obf/src/templates/meteor/project/package.json +1 -1
  131. package/bundle/obf/src/tool.js +1 -1
  132. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  133. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  134. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  135. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  136. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  137. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  138. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  139. package/bundle/obf/src/tools/https/https.class.js +1 -1
  140. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  141. package/bundle/obf/src/tools/log/log.class.js +1 -1
  142. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  143. package/bundle/obf/src/tools/options/options.class.js +1 -1
  144. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  145. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  146. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  147. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  148. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  149. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  150. package/package.json +1 -1
@@ -1 +1 @@
1
- const a95q=a95d;(function(a,b){const m=a95d,c=a();while(!![]){try{const d=-parseInt(m(0x11b))/0x1*(parseInt(m(0xf5))/0x2)+-parseInt(m(0x10b))/0x3*(-parseInt(m(0xf6))/0x4)+-parseInt(m(0x11c))/0x5*(-parseInt(m(0x10a))/0x6)+parseInt(m(0x107))/0x7+parseInt(m(0x126))/0x8+parseInt(m(0x101))/0x9*(-parseInt(m(0x118))/0xa)+-parseInt(m(0x11a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x58066));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a95d;if(c){const e=c[n(0x124)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const o=a95d;return a95a['toString']()['search']('(((.+)+)+)+$')[o(0xff)]()[o(0x119)](a95a)[o(0x11d)](o(0xfc));});a95a();import a95e from'fs';import a95f from'path';import a95g from'dotenv';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0xed;let f=c[d];return f;},a95d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a95c(){const t=['filter','272826ljpsDA','meteortesting:mocha','port','Node\x20Env\x20Config:\x20','driverPackage','none','780591teUzBp','concat','inspect','582soEFqE','70572dzDsYm','Cannot\x20find\x20Node\x20Environment\x20File:\x20','notice','create','getAppConfigPath','mocha','engines','--settings','.maka','exit','warn','rawLogs','packages','10FOqwMM','constructor','6642240AvvLxe','650134ephzPS','24355KTFrBz','search','driver','test','invokeMeteorCommand','--env','driver-package','argv','apply','--driver-package','3593712IvHvHB','unit','fsi','settings.json','--full-app','once','development','readFileSync','parse','2wLNcjJ','104ZWkbyV','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','openSync','env','isFile','tests','(((.+)+)+)+$','config.json','forEach','toString'];a95c=function(){return t;};return a95c();}const syncSource=function(a){const p=a95d;a95e[p(0xf8)](a,'r'),a95g['config']({'path':a});};Command[a95q(0x10e)]({'name':a95q(0x11f),'mustBeInMakaProject':!![],'validOpts':['once',a95q(0x117),'driver',a95q(0x105),'unit',a95q(0xf9),a95q(0x116),a95q(0x103),a95q(0x109),'testAppPath'],'usage':'maka\x20test','aliases':['t',a95q(0xfb)],'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const r=a95q;try{let c=this[r(0xee)][r(0x10f)](r(0xf2));b[r(0xf9)]&&(c=this['fsi'][r(0x10f)](b[r(0xf9)]));(!b[r(0xed)]||!!b[r(0xf1)])&&(a=a[r(0x108)]([r(0xf0)]));b[r(0xed)]&&delete b[r(0xed)];let d=b[r(0x122)]||b['driver']||r(0x106);if(d===r(0x106)){const j=JSON[r(0xf4)](a95e[r(0xf3)](a95f['join'](this[r(0xee)]['findProjectDirectory'](),r(0x113),r(0xfd)),'utf8'));if(j[r(0x111)]['test']==='jasmine')d='sanjo:jasmine';else j[r(0x111)][r(0x11f)]===r(0x110)&&(d=r(0x102));}if(d===r(0x106))throw'This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)';(!b[r(0x122)]||!b[r(0x11e)])&&(a=a[r(0x108)]([r(0x125),d]));const f=a95f['join'](c,r(0xef));this[r(0xee)][r(0xfa)](f)?(Log[r(0x10d)]('Meteor\x20Settings:\x20'+f),a=a['concat']([r(0x112),f])):Log['warn'](r(0xf7)+f);const g=a95f['join'](c,'process.env');this[r(0xee)][r(0xfa)](g)?(Log['notice'](r(0x104)+g),syncSource(g)):Log[r(0x115)](r(0x10c)+g);const h=process[r(0x123)]['slice'](0x2)['filter'](k=>k!==r(0x121))[r(0x100)](k=>k!==r(0x11f))[r(0x100)](k=>k!==a[0x0]);h[r(0xfe)]((k,l)=>{const s=r;(k===s(0x121)||k==='--driver')&&h['splice'](l,0x2),k==='--packages'&&h['splice'](l,0x1);});const i=b['packages']?'test-packages':r(0x11f);this[r(0xee)][r(0x120)](i,a[r(0x108)](h));}catch(k){console['error'](k),process[r(0x114)](0x0);}});
1
+ const a95q=a95d;(function(a,b){const m=a95d,c=a();while(!![]){try{const d=-parseInt(m(0xa2))/0x1*(-parseInt(m(0x8f))/0x2)+-parseInt(m(0x92))/0x3*(-parseInt(m(0xa6))/0x4)+-parseInt(m(0x96))/0x5+-parseInt(m(0xbf))/0x6*(parseInt(m(0xb5))/0x7)+parseInt(m(0xbd))/0x8+-parseInt(m(0xb7))/0x9*(parseInt(m(0x8c))/0xa)+parseInt(m(0x90))/0xb*(parseInt(m(0xa7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xc46a2));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a95d;if(c){const e=c[n(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const o=a95d;return a95a[o(0xc3)]()['search'](o(0x9f))[o(0xc3)]()['constructor'](a95a)[o(0xb0)]('(((.+)+)+)+$');});function a95c(){const t=['toString','none','meteortesting:mocha','warn','parse','concat','driver','isFile','exit','10ZlRiSa','inspect','create','32476YRwUuD','121ZlHBTL','test','6CrCIyj','--packages','apply','filter','5133245hZAIqJ','--settings','rawLogs','driverPackage','jasmine','--full-app','env','port','process.env','(((.+)+)+)+$','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','argv','92fBGGCZ','Node\x20Env\x20Config:\x20','unit','engines','210632KwrBUP','1511688JkiphW','packages','forEach','readFileSync','mocha','config','development','driver-package','join','search','Meteor\x20Settings:\x20','Cannot\x20find\x20Node\x20Environment\x20File:\x20','splice','error','98aSNlRC','fsi','11902482tnrQdP','openSync','.maka','notice','utf8','config.json','9801736nmlIDe','testAppPath','452778IWwozk','tests','--env','getAppConfigPath'];a95c=function(){return t;};return a95c();}a95a();import a95e from'fs';import a95f from'path';import a95g from'dotenv';import{Command}from'../command.js';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x8b;let f=c[d];return f;},a95d(a,b);}import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a95d;a95e[p(0xb8)](a,'r'),a95g[p(0xac)]({'path':a});};Command[a95q(0x8e)]({'name':a95q(0x91),'mustBeInMakaProject':!![],'validOpts':['once',a95q(0xa8),a95q(0xc9),a95q(0x99),a95q(0xa4),a95q(0x9c),a95q(0x98),a95q(0x9d),a95q(0x8d),a95q(0xbe)],'usage':'maka\x20test','aliases':['t',a95q(0xc0)],'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const r=a95q;try{let c=this[r(0xb6)][r(0xc2)](r(0xad));b[r(0x9c)]&&(c=this[r(0xb6)]['getAppConfigPath'](b[r(0x9c)]));(!b[r(0xa4)]||!!b['once'])&&(a=a[r(0xc8)]([r(0x9b)]));b[r(0xa4)]&&delete b[r(0xa4)];let d=b[r(0xae)]||b[r(0xc9)]||r(0xc4);if(d==='none'){const j=JSON[r(0xc7)](a95e[r(0xaa)](a95f[r(0xaf)](this[r(0xb6)]['findProjectDirectory'](),r(0xb9),r(0xbc)),r(0xbb)));if(j['engines'][r(0x91)]===r(0x9a))d='sanjo:jasmine';else j[r(0xa5)][r(0x91)]===r(0xab)&&(d=r(0xc5));}if(d===r(0xc4))throw r(0xa0);(!b[r(0xae)]||!b[r(0xc9)])&&(a=a[r(0xc8)](['--driver-package',d]));const f=a95f[r(0xaf)](c,'settings.json');this['fsi'][r(0xca)](f)?(Log['notice'](r(0xb1)+f),a=a['concat']([r(0x97),f])):Log[r(0xc6)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+f);const g=a95f[r(0xaf)](c,r(0x9e));this[r(0xb6)]['isFile'](g)?(Log[r(0xba)](r(0xa3)+g),syncSource(g)):Log['warn'](r(0xb2)+g);const h=process[r(0xa1)]['slice'](0x2)[r(0x95)](k=>k!==r(0xc1))[r(0x95)](k=>k!==r(0x91))['filter'](k=>k!==a[0x0]);h[r(0xa9)]((k,l)=>{const s=r;(k==='--env'||k==='--driver')&&h[s(0xb3)](l,0x2),k===s(0x93)&&h[s(0xb3)](l,0x1);});const i=b[r(0xa8)]?'test-packages':'test';this[r(0xb6)]['invokeMeteorCommand'](i,a[r(0xc8)](h));}catch(k){console[r(0xb4)](k),process[r(0x8b)](0x0);}});
@@ -1 +1 @@
1
- function a96c(){var i=['2702IPiGeX','create','(((.+)+)+)+$','2808640CPHViR','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20under\x20the\x20last\x20action','constructor','2bMMGgr','627446oPMdvG','undo','961245pSjXRX','400DtPszl','toString','27990INITAo','5684591FzFPOi','1446jktWab','search','12912zVlhhE','4910JEXhMt'];a96c=function(){return i;};return a96c();}var a96h=a96d;function a96d(a,b){var c=a96c();return a96d=function(d,e){d=d-0xe7;var f=c[d];return f;},a96d(a,b);}(function(a,b){var f=a96d,c=a();while(!![]){try{var d=-parseInt(f(0xf0))/0x1+-parseInt(f(0xef))/0x2*(-parseInt(f(0xf2))/0x3)+-parseInt(f(0xec))/0x4+-parseInt(f(0xe8))/0x5*(-parseInt(f(0xf7))/0x6)+parseInt(f(0xe9))/0x7*(parseInt(f(0xe7))/0x8)+parseInt(f(0xf5))/0x9*(parseInt(f(0xf3))/0xa)+parseInt(f(0xf6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x78088));var a96b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){var g=a96d;return a96a[g(0xf4)]()[g(0xf8)](g(0xeb))[g(0xf4)]()[g(0xee)](a96a)[g(0xf8)](g(0xeb));});a96a();import{Command}from'../command.js';import a96e from'../generators/maka.gen.js';Command[a96h(0xea)]({'name':a96h(0xf1),'aliases':['u'],'validOpts':[],'shortDesc':a96h(0xed)},async function(){a96e['undo']();});
1
+ var a96i=a96d;(function(a,b){var f=a96d,c=a();while(!![]){try{var d=parseInt(f(0xf1))/0x1*(parseInt(f(0xea))/0x2)+parseInt(f(0xf8))/0x3*(parseInt(f(0xf6))/0x4)+-parseInt(f(0xf4))/0x5+parseInt(f(0xec))/0x6*(-parseInt(f(0xf0))/0x7)+-parseInt(f(0xef))/0x8*(-parseInt(f(0xed))/0x9)+-parseInt(f(0xf7))/0xa+parseInt(f(0xf2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xbf703));var a96b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a96d;if(c){var e=c[g(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){var h=a96d;return a96a[h(0xf9)]()[h(0xf3)](h(0xeb))[h(0xf9)]()[h(0xee)](a96a)[h(0xf3)](h(0xeb));});a96a();import{Command}from'../command.js';function a96d(a,b){var c=a96c();return a96d=function(d,e){d=d-0xe9;var f=c[d];return f;},a96d(a,b);}import a96e from'../generators/maka.gen.js';Command[a96i(0xe9)]({'name':'undo','aliases':['u'],'validOpts':[],'shortDesc':'Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20under\x20the\x20last\x20action'},async function(){a96e['undo']();});function a96c(){var j=['constructor','12351704sCssrL','4290139pirWgZ','55155pApqjt','6455746hMDHHF','search','6934235xYwUKU','apply','32244NmXsUi','8117550bvNjqW','219iRsMzh','toString','create','54fBRamz','(((.+)+)+)+$','12Smwsis','9dZFKUf'];a96c=function(){return j;};return a96c();}
@@ -1 +1 @@
1
- const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0x9a))/0x1*(-parseInt(k(0x9f))/0x2)+-parseInt(k(0x9e))/0x3+parseInt(k(0xb6))/0x4*(-parseInt(k(0xae))/0x5)+parseInt(k(0xa1))/0x6+-parseInt(k(0xbb))/0x7*(parseInt(k(0xbc))/0x8)+-parseInt(k(0x94))/0x9+parseInt(k(0xc2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xf0246));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0xb5)]()['search'](m(0xa2))[m(0xb5)]()[m(0xb8)](a97a)['search'](m(0xa2));});a97a();import{execSync}from'child_process';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x94;let f=c[d];return f;},a97d(a,b);}import a97e from'semver';import{Command}from'../command.js';function a97c(){const p=['4.9.6','Maka\x20','win32','55058400doANER','getProjectMeteorVersion','apply','13417650hZdDqv','isMakaProject','Project\x27s\x20Meteor\x20Version\x20','exit','meteor','\x20node\x20-v','20FVtoFu','majestic',')\x20to\x20at\x20least\x20meteor\x27s\x20(','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','2982579sdsxdK','151766WFcEyz','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','1231272eRrGIH','(((.+)+)+)+$','maka\x20v','version','verbose','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','getProjectsMeteorNodeVersion','----------------------Project----------------------------','maka\x20version\x20--verbose','maka\x20version','System\x27s\x20Node\x20Version\x20','bright','meteor.bat','114115jlwQNg','node\x20-v','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','fsi','Project\x27s\x20Meteor\x20Node\x20Version\x20','replace','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','toString','316bNRbuA','warn','constructor','platform','System\x27s\x20Meteor\x20Version\x20','35iiXOPQ','3131248yOzBAs','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','----------------------System----------------------------'];a97c=function(){return p;};return a97c();}import{Log}from'../tools/log/log.class.js';const pjson={'version':a97n(0xbf)};Command['create']({'name':a97n(0xa4),'aliases':['v'],'usage':a97n(0xaa),'maxArgLength':0x1,'validOpts':[a97n(0xa5)],'shortDesc':a97n(0xa6),'examples':[a97n(0xa3),a97n(0xaa),a97n(0xa9)],'description':a97n(0xb4)},async function(a,b){const o=a97n;try{const c=process[o(0xb9)]===o(0xc1)?o(0xad):o(0x98);Log[o(0x9b)](o(0xc0)+pjson[o(0xa4)]),await this[o(0xb1)]['compareMakaToLatest']();if(b[o(0xa5)]){await this[o(0xb1)]['compareMakaToLatest'](),Log[o(0xac)](o(0xbe));const d=this[o(0xb1)]['getGlobalMeteorVersion']();Log[o(0xac)]((o(0xba)+d)[o(0xb3)]('\x0a',''));const f=execSync(c+o(0x99))[o(0xb5)]()[o(0xb3)](/\r?\n|\r/,'')[o(0xb3)]('v','');Log[o(0xac)](o(0xa0)+f);const g=execSync(o(0xaf))[o(0xb5)]()[o(0xb3)](/\r?\n|\r/,'')['replace']('v','');a97e['gt'](f,g)?(Log[o(0xb7)](o(0xab)+g),Log[o(0xb7)](o(0xbd)+g+o(0x9c)+f+')')):Log[o(0xac)](o(0xab)+g);if(this[o(0xb1)][o(0x95)]()){Log[o(0xac)](o(0xa8));const h=this[o(0xb1)][o(0xc3)]();if(!a97e['valid'](h))Log['warn'](o(0x96)+h[o(0xb3)]('\x0a',''));else a97e['gt'](d,h)?(Log[o(0xb7)](o(0x96)+h[o(0xb3)]('\x0a','')),Log[o(0xb7)](o(0xb0)+d+'\x22')):Log['notice']((o(0x96)+h)[o(0xb3)]('\x0a',''));const i=await this[o(0xb1)][o(0xa7)]();i==='N/A'?(Log[o(0xb7)]('Project\x27s\x20Meteor\x20Node\x20Version\x20'+i),Log['warn'](o(0x9d))):Log[o(0xac)](o(0xb2)+i),Log[o(0xac)]('\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22');}}}catch(j){console['error'](j),process[o(0x97)](0x0);}});
1
+ const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0x1ad))/0x1*(parseInt(k(0x1ba))/0x2)+parseInt(k(0x1b5))/0x3+parseInt(k(0x1ae))/0x4*(parseInt(k(0x1af))/0x5)+parseInt(k(0x1d6))/0x6+-parseInt(k(0x1dc))/0x7*(-parseInt(k(0x1d0))/0x8)+parseInt(k(0x1cd))/0x9*(-parseInt(k(0x1c7))/0xa)+-parseInt(k(0x1da))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xc6f49));function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a97d(a,b);}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a['toString']()[m(0x1db)]('(((.+)+)+)+$')['toString']()[m(0x1b7)](a97a)[m(0x1db)](m(0x1c9));});a97a();import{execSync}from'child_process';import a97e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a97n(0x1c8)};function a97c(){const p=['constructor','getGlobalMeteorVersion','getProjectsMeteorNodeVersion','2QCjyvw','compareMakaToLatest','System\x27s\x20Meteor\x20Version\x20','System\x27s\x20Node\x20Version\x20','replace','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','Project\x27s\x20Meteor\x20Version\x20','toString','notice','getProjectMeteorVersion','create',')\x20to\x20at\x20least\x20meteor\x27s\x20(','majestic','463600jejAWD','4.9.8','(((.+)+)+)+$','meteor.bat','verbose','bright','99GGIbNp','isMakaProject','warn','2208jLsFYI','node\x20-v','fsi','exit','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','9678600XjGmYW','win32','maka\x20version\x20--verbose','Maka\x20','24801700tmsuGs','search','18438WUDjMh','maka\x20version','75245UxoGAT','327684EcDwKO','35ExBDtD','version','\x20node\x20-v','Project\x27s\x20Meteor\x20Node\x20Version\x20','N/A','apply','2223885uhozIx','maka\x20v'];a97c=function(){return p;};return a97c();}Command[a97n(0x1c4)]({'name':a97n(0x1b0),'aliases':['v'],'usage':a97n(0x1ac),'maxArgLength':0x1,'validOpts':[a97n(0x1cb)],'shortDesc':'Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','examples':[a97n(0x1b6),a97n(0x1ac),a97n(0x1d8)],'description':'\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20'},async function(a,b){const o=a97n;try{const c=process['platform']===o(0x1d7)?o(0x1ca):'meteor';Log[o(0x1c6)](o(0x1d9)+pjson[o(0x1b0)]),await this[o(0x1d2)][o(0x1bb)]();if(b[o(0x1cb)]){await this[o(0x1d2)][o(0x1bb)](),Log['bright']('----------------------System----------------------------');const d=this[o(0x1d2)][o(0x1b8)]();Log[o(0x1cc)]((o(0x1bc)+d)[o(0x1be)]('\x0a',''));const f=execSync(c+o(0x1b1))[o(0x1c1)]()[o(0x1be)](/\r?\n|\r/,'')[o(0x1be)]('v','');Log[o(0x1cc)](o(0x1bf)+f);const g=execSync(o(0x1d1))[o(0x1c1)]()[o(0x1be)](/\r?\n|\r/,'')[o(0x1be)]('v','');a97e['gt'](f,g)?(Log[o(0x1cf)](o(0x1bd)+g),Log[o(0x1cf)]('\x20!\x20consider\x20updating\x20your\x20node\x20version\x20('+g+o(0x1c5)+f+')')):Log[o(0x1cc)](o(0x1bd)+g);if(this[o(0x1d2)][o(0x1ce)]()){Log['bright']('----------------------Project----------------------------');const h=this['fsi'][o(0x1c3)]();if(!a97e['valid'](h))Log[o(0x1cf)]('Project\x27s\x20Meteor\x20Version\x20'+h[o(0x1be)]('\x0a',''));else a97e['gt'](d,h)?(Log[o(0x1cf)](o(0x1c0)+h[o(0x1be)]('\x0a','')),Log[o(0x1cf)](o(0x1d4)+d+'\x22')):Log[o(0x1c2)](('Project\x27s\x20Meteor\x20Version\x20'+h)[o(0x1be)]('\x0a',''));const i=await this[o(0x1d2)][o(0x1b9)]();i===o(0x1b3)?(Log[o(0x1cf)](o(0x1b2)+i),Log[o(0x1cf)](o(0x1d5))):Log[o(0x1cc)](o(0x1b2)+i),Log[o(0x1cc)]('\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22');}}}catch(j){console['error'](j),process[o(0x1d3)](0x0);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0x104))/0x1+parseInt(f(0xff))/0x2+-parseInt(f(0x105))/0x3*(parseInt(f(0xfa))/0x4)+-parseInt(f(0xfc))/0x5*(parseInt(f(0x101))/0x6)+-parseInt(f(0x102))/0x7*(parseInt(f(0xfe))/0x8)+-parseInt(f(0xf9))/0x9+parseInt(f(0x106))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x994ee));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var g=a98d;return a98a[g(0xfb)]()[g(0x100)](g(0x103))['toString']()[g(0xfd)](a98a)[g(0x100)]('(((.+)+)+)+$');});a98a();export class UsageError{}function a98c(){var h=['2754882VaSidf','136232sUAfJo','toString','29485aaqoJm','constructor','8852248ftTIWs','918244pVPuPB','search','654NnOkzv','7zMtxiI','(((.+)+)+)+$','247174fpYbfC','57qOLCbC','26241580GaeYXI'];a98c=function(){return h;};return a98c();}function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0xf9;var f=c[d];return f;},a98d(a,b);}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
1
+ (function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0x1f7))/0x1+parseInt(f(0x1f2))/0x2+parseInt(f(0x1f9))/0x3+parseInt(f(0x1fb))/0x4+-parseInt(f(0x1f3))/0x5+parseInt(f(0x1f6))/0x6*(parseInt(f(0x1f1))/0x7)+-parseInt(f(0x1f0))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xa5de3));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x1fa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x1f8)]()[h(0x1f4)](h(0x1f5))['toString']()['constructor'](a98a)[h(0x1f4)]('(((.+)+)+)+$');});a98a();export class UsageError{}export class UsageErrorWithSubs{}function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x1f0;var f=c[d];return f;},a98d(a,b);}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}function a98c(){var i=['search','(((.+)+)+)+$','3683742kDbGLm','197074CZMSNn','toString','168411qsVrfd','apply','2172484PZUTNr','14066088FBtNJl','14BZAYFB','2226490gMdwVa','3499175soMUSV'];a98c=function(){return i;};return a98c();}export class MustBeLoggedIn{}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a99d(a,b){var c=a99c();return a99d=function(d,e){d=d-0x6b;var f=c[d];return f;},a99d(a,b);}var a99h=a99d;(function(a,b){var f=a99d,c=a();while(!![]){try{var d=parseInt(f(0x6f))/0x1*(-parseInt(f(0x6d))/0x2)+-parseInt(f(0x6e))/0x3+parseInt(f(0x74))/0x4*(parseInt(f(0x77))/0x5)+-parseInt(f(0x73))/0x6*(-parseInt(f(0x72))/0x7)+-parseInt(f(0x7a))/0x8+parseInt(f(0x76))/0x9+-parseInt(f(0x70))/0xa*(-parseInt(f(0x71))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xdf0ee));function a99c(){var i=['1292992AENqKW','NODE_OPTIONS','env','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','11968SIwRew','5004033uLEiXi','77zXFKeV','4604060mvjTjq','11gLSPaD','70KuBJMU','398994hAEmOE','873856oDvTmA','(((.+)+)+)+$','10843173tWugKN','20YqYLoK','search','toString'];a99c=function(){return i;};return a99c();}var a99b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){var g=a99d;return a99a[g(0x79)]()[g(0x78)](g(0x75))[g(0x79)]()['constructor'](a99a)[g(0x78)](g(0x75));});a99a(),process[a99h(0x6b)][a99h(0x7b)]=a99h(0x6c);import'./maka.js';
2
+ var a99i=a99d;function a99c(){var j=['458525TEmpoM','(((.+)+)+)+$','10wajyXN','2374248sJfcLV','search','798289zDMyBo','48wHaFMa','3389948RnYwqE','4789341VCGnqe','toString','constructor','1521838RKxDQO','apply','3pcdLEn','8667494PyDVyO','env','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','7bRobSl'];a99c=function(){return j;};return a99c();}(function(a,b){var f=a99d,c=a();while(!![]){try{var d=parseInt(f(0x19f))/0x1+-parseInt(f(0x193))/0x2*(parseInt(f(0x195))/0x3)+parseInt(f(0x1a1))/0x4+parseInt(f(0x19a))/0x5*(parseInt(f(0x1a0))/0x6)+-parseInt(f(0x199))/0x7*(-parseInt(f(0x19d))/0x8)+-parseInt(f(0x1a2))/0x9*(parseInt(f(0x19c))/0xa)+-parseInt(f(0x196))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x914e7));var a99b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a99d;if(c){var e=c[g(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){var h=a99d;return a99a[h(0x1a3)]()[h(0x19e)](h(0x19b))[h(0x1a3)]()[h(0x192)](a99a)[h(0x19e)](h(0x19b));});function a99d(a,b){var c=a99c();return a99d=function(d,e){d=d-0x192;var f=c[d];return f;},a99d(a,b);}a99a(),process[a99i(0x197)]['NODE_OPTIONS']=a99i(0x198);import'./maka.js';
@@ -1 +1 @@
1
- const a100v=a100d;(function(a,b){const r=a100d,c=a();while(!![]){try{const d=parseInt(r(0x1d2))/0x1+parseInt(r(0x234))/0x2*(-parseInt(r(0x203))/0x3)+-parseInt(r(0x1c8))/0x4+parseInt(r(0x202))/0x5*(-parseInt(r(0x1f6))/0x6)+parseInt(r(0x233))/0x7+-parseInt(r(0x1af))/0x8*(parseInt(r(0x1eb))/0x9)+-parseInt(r(0x223))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x3bae8));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a100d;if(c){const e=c[s(0x22d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const t=a100d;return a100a[t(0x235)]()[t(0x1c0)](t(0x1e5))['toString']()[t(0x1e7)](a100a)[t(0x1c0)]('(((.+)+)+)+$');});a100a();function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1ae;let f=c[d];return f;},a100d(a,b);}import a100e from'path';import a100f from'fs';import a100g from'cli-table';import{v4 as a100h}from'uuid';import{paramCase}from'change-case';import a100i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a100c(){const N=['checkWhere','Generator\x20requires\x20a\x20name','root','Description','call','notice','requiredEngines','apply','help','parse','shift','addGenerator','filter','3116932duhyYf','2lkVwZr','toString','minArgLength','size','810408EvozJb','undo','listGenerators','pallet','noNeedResource','Too\x20few\x20options','keys','create','replace','warn','Generator\x20','pop','.maka','message','params','validateMakaProject','\x20generator.\x20Skipping\x20undo.','search','writeFileSync','function','success','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','addToHistory','Generator\x20format\x20is\x20incorrect','bind','306868PDyiNJ','Generator\x20not\x20found','stringify','details','client','reverse','join','handleGenerateError','map','dir','159907EhMxCv','push','minOptsLength','resourceName','includes','\x20not\x20found.\x20Cannot\x20undo.','maxArgLength','sort','getHistoryFileSize','sep','list','shortDesc','transactionId','validateMakaSubscription','Generators:','existsSync','server','_generators','\x20not\x20found','(((.+)+)+)+$','Generator\x20requires\x20a\x20handler\x20function','constructor','Too\x20many\x20arguments','Generator.create\x20requires\x20some\x20options!','generatorName','18vzMGkn','DARK','getGlobalConfig','Please\x20run\x20\x22maka\x20install\x20meteor\x22','bright','localeCompare','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','validateMeteorInstall','both','light','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','48gTwwti','validateParams','Both','find','validateEngines','where','writeHistory','error','readHistory','match','invoke','history.json','22885XpIvLK','13773WHpPZT','mustBeInMakaProject','_genTransactionId','deepen','split','chdir','There\x20is\x20no\x20Meteor\x20application\x20here','Alias','readFileSync','Name','addGenerator\x20requires\x20a\x20Generator\x20instance','fsi','name','_historyFilePath','_undoHandler','cwd','number','Generator.create\x20requires\x20a\x20handler\x20function!','setColorMode','Client','No\x20resource\x20name\x20specified','Too\x20many\x20options','Server','appPathPrefix','length','maxOptsLength','assign','fullNameChain','findGeneratorByName','_handler','mustHaveMeteorInstalled','options','402010vMfwDx','No\x20undo\x20handler\x20defined\x20for\x20','opts'];a100c=function(){return N;};return a100c();}import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a100h();async function inside(a='.',b){const u=a100d,c=process[u(0x212)]();let d=null;try{process[u(0x208)](a),d=await b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a100v(0x222)];['fullNameChain'];[a100v(0x1e3)];[a100v(0x210)];['_undoHandler'];[a100v(0x205)];constructor(a,b,c){const w=a100v;super();if(!a)throw new Error(w(0x1c4));if(!a['name'])throw new Error(w(0x227));if(typeof b!==w(0x1c2))throw new Error(w(0x1e6));this[w(0x1e3)]=[],this['options']=Object['assign']({},a),this[w(0x20f)]=this[w(0x222)][w(0x20f)],this[w(0x220)]=b[w(0x1c7)](this);try{this['_historyFilePath']=this[w(0x20e)]['pathFromProject']({'pathParts':[w(0x1bb),w(0x201)]})||a100e[w(0x1ce)]('.',w(0x1bb),'history.json');}catch(d){Log[w(0x1fd)](d);}c&&(this['_undoHandler']=c[w(0x1c7)](this));}[a100v(0x1da)](){const x=a100v;if(a100f[x(0x1e1)](this[x(0x210)])){const a=a100f['statSync'](this[x(0x210)]);return a[x(0x1ae)];}return 0x0;}[a100v(0x1fe)](){const y=a100v;if(!a100f[y(0x1e1)](this['_historyFilePath']))return[];return JSON[y(0x22f)](a100f[y(0x20b)](this[y(0x210)],'utf-8'));}[a100v(0x1fc)](a){const z=a100v;this[z(0x210)]&&!a100f[z(0x1e1)](this['_historyFilePath'])&&a100f[z(0x1c1)](this[z(0x210)],JSON['stringify']([])),a100f['writeFileSync'](this['_historyFilePath'],JSON[z(0x1ca)](a,null,0x2));}[a100v(0x1c5)](a){const A=a100v;try{a?.[A(0x1bd)]?.[A(0x225)]['config']&&delete a[A(0x1bd)]['opts']['config'];const b=this[A(0x1fe)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b['push'](c);const d=Buffer['from'](JSON['stringify'](b))[A(0x21b)];while(d>MAX_HISTORY_SIZE&&b[A(0x21b)]>0x0){b[A(0x230)]();}this[A(0x1fc)](b);}catch(f){Log[A(0x1fd)](f);}}async[a100v(0x1b0)](){const B=a100v,a=this[B(0x1fe)]();if(a[B(0x21b)]===0x0){Log[B(0x1b8)]('Nothing\x20to\x20undo.');return;}const b=a[B(0x1ba)](),c=b[B(0x1de)],d=a['filter'](e=>e[B(0x1de)]===c);d[B(0x1d3)](b),d[B(0x1cd)]();for(const e of d){const f=this['findGeneratorByName'](e['generatorName']);if(!f){Log['error'](B(0x1b9)+e['generatorName']+B(0x1d7));continue;}f[B(0x211)]?await f[B(0x211)](e[B(0x1cb)]):Log[B(0x1b8)](B(0x224)+e[B(0x1ea)]+B(0x1bf));}this[B(0x1fc)](a[B(0x232)](g=>g[B(0x1de)]!==c));}static[a100v(0x1b6)](a,b,c,d){const C=a100v;if(!a)throw new Error(C(0x1e9));if(typeof b!==C(0x1c2))throw new Error(C(0x214));const e=new Generator(a,b);c&&(e['_undoHandler']=c[C(0x1c7)](e));d=d||a100i;const f=d?d[C(0x21e)]:'';return e[C(0x21e)]=f?f+':'+a[C(0x20f)]:a[C(0x20f)],Object[C(0x21d)](e,{'parent':d?.[C(0x222)]?.['name']}),d[C(0x231)](e),e;}[a100v(0x231)](a){const D=a100v;if(!(a instanceof Generator))throw new Error(D(0x20d));this[D(0x1e3)]['push'](a);}async['processAndRunGenerator'](a,b=[],c={}){const E=a100v;let d;try{const f=a?.['split'](':');if(!f||f[E(0x21b)]===0x0)throw E(0x1c6);let g=this['_generators'],h;for(const i of f){h=g[E(0x1f9)](j=>j[E(0x1ff)](i));if(!h)throw E(0x1b9)+i+E(0x1e4);await this['validateMakaSubscription'](h),g=h['_generators'];}if(h)d=await h[E(0x200)](b,c);else throw E(0x1c9);}catch(j){Log[E(0x1fd)](j);}return d;}[a100v(0x21f)](a){const F=a100v,b=a?.[F(0x207)](':');if(!b||b[F(0x21b)]===0x0)return Log['error'](F(0x1c6)),null;let c=this[F(0x1e3)],d;for(const e of b){d=c['find'](f=>f[F(0x1ff)](e));if(!d)return Log[F(0x1fd)](F(0x1b9)+e+F(0x1e4)),null;c=d['_generators'];}return d||null;}async[a100v(0x200)](a,b){const G=a100v,c=a['slice']();b[G(0x1d5)]=c[0x0];try{const d=await this[G(0x20e)][G(0x1ed)](),f=d[G(0x1b2)]===G(0x1f4)?ColorMode['LIGHT']:ColorMode[G(0x1ec)];Log[G(0x215)](f),await this[G(0x1df)](this);const g=a[0x0]===_prevGen||a[G(0x21b)]===0x0&&this[G(0x1e3)][G(0x21b)]>=0x0,h=b[G(0x22e)]||b['h'];if(g&&h){if(this['_generators'][G(0x21b)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0x222)][G(0x204)]){const i=this[G(0x1be)]();if(!i)throw new MustBeInProjectError();}if(this['options'][G(0x221)]){const j=this[G(0x1f2)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[G(0x222)][G(0x236)]===G(0x213)){if(a[G(0x21b)]<this[G(0x222)][G(0x236)]){Log[G(0x1fd)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this['options'][G(0x1d8)]===G(0x213)){if(a[G(0x21b)]>this[G(0x222)][G(0x1d8)]){Log[G(0x1fd)](G(0x1e8));throw new UsageError();}}if(typeof this['options'][G(0x1d4)]==='number'){if(Object[G(0x1b5)](b)[G(0x21b)]<this[G(0x222)][G(0x1d4)]){Log[G(0x1fd)](G(0x1b4));throw new UsageError();}}if(typeof this[G(0x222)]['maxOptsLength']===G(0x213)){if(Object[G(0x1b5)](b)['length']>=this[G(0x222)][G(0x21c)]){Log['error'](G(0x218));throw new UsageError();}}}this['options']['requiredEngines']&&this[G(0x1fa)](this[G(0x222)][G(0x22c)]);await this[G(0x1f7)](a,b,this[G(0x222)]);if(!b['resourceName']&&!this['options'][G(0x1b3)]){Log[G(0x1fd)](G(0x217));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0x1cf)](k),process['exit'](0x1);}return await inside(b[G(0x212)],async()=>{const H=G;try{if(!b[H(0x228)]&&!this[H(0x20e)]['findProjectDirectory']())throw new MustBeInProjectError();const l=b['resourceName']?.[H(0x1b7)](/\\/g,'/')[H(0x207)]('/');!b[H(0x1d1)]&&(l?.['length']>0x1?(b[H(0x1d5)]=l['pop'](),c[0x0]=b[H(0x1d5)],b[H(0x1d1)]=l[H(0x1d0)](n=>{return paramCase(n);})['join'](a100e[H(0x1db)])):b[H(0x1d1)]='');if(this[H(0x222)][H(0x226)]){if(!b[H(0x1fb)]){const o={'type':H(0x1dc),'name':'colLocAnswer','message':'Location','choices':[{'name':H(0x216),'value':H(0x1cc)},{'name':H(0x219),'value':H(0x1e2)},{'name':H(0x1f8),'value':H(0x1f3)}]},{colLocAnswer:p}=await Actions['options'](o);p?b[H(0x1fb)]=p:b[H(0x1fb)]=H(0x1f3);}const n=[H(0x1f3),'client','server'];if(!n[H(0x1d6)](b[H(0x1fb)])){Log[H(0x1fd)](H(0x1f5));throw new UsageError();}switch(b[H(0x1fb)]){case H(0x1f3):b['appPathPrefix']='lib';break;case H(0x1e2):b[H(0x21a)]=H(0x1e2);break;case H(0x1cc):b[H(0x21a)]=H(0x1cc);break;default:b[H(0x21a)]='';}}const m=await this[H(0x220)][H(0x22a)](this,c,b);return m&&this[H(0x1c5)]({'params':{'args':c,'opts':this[H(0x20e)][H(0x206)](b)},'success':m?.[H(0x1c3)],'message':m?.[H(0x1bc)],'details':m?.[H(0x1cb)]}),m;}catch(q){this['handleGenerateError'](q);}});}[a100v(0x1b1)](){const I=a100v;this['tableList'](this[I(0x1e3)]);}[a100v(0x1cf)](a){const J=a100v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[J(0x222)];Log['usage'](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log['notice'](J(0x1e0)),this['tableList'](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[J(0x1fd)](J(0x1f1));else{if(a instanceof NoMeteorFoundError)Log[J(0x1fd)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[J(0x22b)](J(0x1ee));else a instanceof NoMeteorAppFoundError&&Log[J(0x1fd)](J(0x209));}}}['tableList'](a){const K=a100v,b=new a100g({});b[K(0x1d3)]([K(0x20c),K(0x20a),K(0x229)]),a[K(0x1d9)]((c,d)=>{const L=K;return c[L(0x20f)][L(0x1f0)](d[L(0x20f)]);})['forEach'](c=>{const M=K;b[M(0x1d3)]([c[M(0x20f)],c['aliases'](),c[M(0x1dd)]()]);}),Log[K(0x1ef)](b['toString']());}}
1
+ const a100v=a100d;(function(a,b){const r=a100d,c=a();while(!![]){try{const d=-parseInt(r(0xa9))/0x1+-parseInt(r(0xff))/0x2*(parseInt(r(0xb1))/0x3)+-parseInt(r(0x112))/0x4*(-parseInt(r(0xc1))/0x5)+-parseInt(r(0xa3))/0x6+-parseInt(r(0xaa))/0x7+parseInt(r(0x10a))/0x8*(parseInt(r(0xfa))/0x9)+parseInt(r(0xf6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x24dce));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a100d;if(c){const e=c[s(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const t=a100d;return a100a['toString']()['search']('(((.+)+)+)+$')['toString']()[t(0xd8)](a100a)['search']('(((.+)+)+)+$');});a100a();import a100e from'path';import a100f from'fs';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xa0;let f=c[d];return f;},a100d(a,b);}import a100g from'cli-table';import{v4 as a100h}from'uuid';import{paramCase}from'change-case';import a100i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a100h();async function inside(a='.',b){const u=a100d,c=process[u(0x11c)]();let d=null;try{process[u(0xde)](a),d=await b();}finally{process[u(0xde)](c);}return d;}export class Generator extends Tool{[a100v(0xb8)];[a100v(0xe8)];[a100v(0x121)];[a100v(0xd5)];[a100v(0xa6)];[a100v(0xce)];constructor(a,b,c){const w=a100v;super();if(!a)throw new Error(w(0xfc));if(!a['name'])throw new Error(w(0x113));if(typeof b!=='function')throw new Error(w(0xdc));this['_generators']=[],this[w(0xb8)]=Object['assign']({},a),this['name']=this[w(0xb8)][w(0x11e)],this[w(0xa0)]=b['bind'](this);try{this[w(0xd5)]=this[w(0xc4)][w(0x116)]({'pathParts':['.maka',w(0x109)]})||a100e[w(0x10c)]('.',w(0xfb),'history.json');}catch(d){Log[w(0xb2)](d);}c&&(this[w(0xa6)]=c[w(0xca)](this));}[a100v(0xfd)](){const x=a100v;if(a100f[x(0xb3)](this['_historyFilePath'])){const a=a100f['statSync'](this['_historyFilePath']);return a[x(0x10f)];}return 0x0;}[a100v(0x11f)](){const y=a100v;if(!a100f['existsSync'](this[y(0xd5)]))return[];return JSON[y(0xcf)](a100f[y(0xdf)](this[y(0xd5)],y(0xab)));}[a100v(0xef)](a){const z=a100v;this['_historyFilePath']&&!a100f[z(0xb3)](this[z(0xd5)])&&a100f[z(0xb9)](this[z(0xd5)],JSON[z(0x105)]([])),a100f[z(0xb9)](this[z(0xd5)],JSON[z(0x105)](a,null,0x2));}[a100v(0x11b)](a){const A=a100v;try{a?.[A(0x117)]?.[A(0x103)][A(0xea)]&&delete a[A(0x117)][A(0x103)]['config'];const b=this[A(0x11f)](),c={'generatorName':this[A(0xe8)],'transactionId':TRANSACTION_ID,'details':a};b['push'](c);const d=Buffer['from'](JSON[A(0x105)](b))['length'];while(d>MAX_HISTORY_SIZE&&b[A(0xa2)]>0x0){b['shift']();}this[A(0xef)](b);}catch(f){Log['error'](f);}}async[a100v(0xec)](){const B=a100v,a=this[B(0x11f)]();if(a['length']===0x0){Log['warn']('Nothing\x20to\x20undo.');return;}const b=a[B(0xc2)](),c=b[B(0xd3)],d=a[B(0x100)](e=>e[B(0xd3)]===c);d[B(0xa7)](b),d[B(0xeb)]();for(const e of d){const f=this[B(0xe7)](e[B(0xdd)]);if(!f){Log['error']('Generator\x20'+e[B(0xdd)]+B(0x107));continue;}f[B(0xa6)]?await f[B(0xa6)](e['details']):Log[B(0xd4)](B(0xe5)+e[B(0xdd)]+B(0xfe));}this[B(0xef)](a[B(0x100)](g=>g[B(0xd3)]!==c));}static[a100v(0xd2)](a,b,c,d){const C=a100v;if(!a)throw new Error(C(0xbf));if(typeof b!==C(0x120))throw new Error(C(0x102));const e=new Generator(a,b);c&&(e[C(0xa6)]=c[C(0xca)](e));d=d||a100i;const f=d?d[C(0xe8)]:'';return e[C(0xe8)]=f?f+':'+a[C(0x11e)]:a[C(0x11e)],Object[C(0xf4)](e,{'parent':d?.[C(0xb8)]?.[C(0x11e)]}),d[C(0x114)](e),e;}[a100v(0x114)](a){const D=a100v;if(!(a instanceof Generator))throw new Error(D(0xd9));this['_generators']['push'](a);}async[a100v(0xda)](a,b=[],c={}){const E=a100v;let d;try{const f=a?.['split'](':');if(!f||f['length']===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this['_generators'],h;for(const i of f){h=g[E(0xee)](j=>j[E(0xae)](i));if(!h)throw E(0xd1)+i+'\x20not\x20found';await this[E(0xcc)](h),g=h[E(0x121)];}if(h)d=await h[E(0xba)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0xb2)](j);}return d;}[a100v(0xe7)](a){const F=a100v,b=a?.[F(0xf0)](':');if(!b||b[F(0xa2)]===0x0)return Log[F(0xb2)]('Generator\x20format\x20is\x20incorrect'),null;let c=this[F(0x121)],d;for(const e of b){d=c[F(0xee)](f=>f[F(0xae)](e));if(!d)return Log[F(0xb2)](F(0xd1)+e+'\x20not\x20found'),null;c=d['_generators'];}return d||null;}async[a100v(0xba)](a,b){const G=a100v,c=a[G(0xe1)]();b[G(0xf1)]=c[0x0];try{const d=await this[G(0xc4)][G(0xbc)](),f=d[G(0xe3)]==='light'?ColorMode[G(0xad)]:ColorMode[G(0xb6)];Log['setColorMode'](f),await this[G(0xcc)](this);const g=a[0x0]===_prevGen||a[G(0xa2)]===0x0&&this['_generators'][G(0xa2)]>=0x0,h=b[G(0x101)]||b['h'];if(g&&h){if(this['_generators'][G(0xa2)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0xb8)][G(0xbe)]){const i=this[G(0x10d)]();if(!i)throw new MustBeInProjectError();}if(this[G(0xb8)][G(0xa8)]){const j=this[G(0xe4)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[G(0xb8)][G(0x108)]===G(0xb5)){if(a[G(0xa2)]<this[G(0xb8)][G(0x108)]){Log['error'](G(0x11d));throw new UsageError();}}if(typeof this[G(0xb8)]['maxArgLength']==='number'){if(a[G(0xa2)]>this[G(0xb8)][G(0x11a)]){Log[G(0xb2)](G(0xac));throw new UsageError();}}if(typeof this[G(0xb8)]['minOptsLength']===G(0xb5)){if(Object['keys'](b)[G(0xa2)]<this[G(0xb8)][G(0xe6)]){Log[G(0xb2)](G(0xdb));throw new UsageError();}}if(typeof this[G(0xb8)]['maxOptsLength']===G(0xb5)){if(Object['keys'](b)[G(0xa2)]>=this[G(0xb8)][G(0xc7)]){Log[G(0xb2)](G(0x118));throw new UsageError();}}}this[G(0xb8)]['requiredEngines']&&this[G(0xb0)](this[G(0xb8)][G(0xbd)]);await this[G(0xc3)](a,b,this[G(0xb8)]);if(!b['resourceName']&&!this['options']['noNeedResource']){Log[G(0xb2)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0xcd)](k),process['exit'](0x1);}return await inside(b[G(0x11c)],async()=>{const H=G;try{if(!b['root']&&!this[H(0xc4)]['findProjectDirectory']())throw new MustBeInProjectError();const l=b['resourceName']?.[H(0x110)](/\\/g,'/')['split']('/');!b[H(0xb4)]&&(l?.['length']>0x1?(b[H(0xf1)]=l[H(0xc2)](),c[0x0]=b['resourceName'],b['dir']=l[H(0xd7)](n=>{return paramCase(n);})['join'](a100e[H(0xf8)])):b['dir']='');if(this[H(0xb8)][H(0xc6)]){if(!b['where']){const o={'type':'list','name':H(0x106),'message':H(0xc9),'choices':[{'name':H(0x10b),'value':'client'},{'name':'Server','value':H(0xed)},{'name':'Both','value':'both'}]},{colLocAnswer:p}=await Actions[H(0xb8)](o);p?b[H(0xe9)]=p:b[H(0xe9)]='both';}const n=[H(0xcb),H(0xbb),'server'];if(!n[H(0xc5)](b[H(0xe9)])){Log[H(0xb2)](H(0xc8));throw new UsageError();}switch(b['where']){case H(0xcb):b['appPathPrefix']=H(0xe2);break;case H(0xed):b[H(0x119)]='server';break;case'client':b[H(0x119)]=H(0xbb);break;default:b['appPathPrefix']='';}}const m=await this[H(0xa0)]['call'](this,c,b);return m&&this[H(0x11b)]({'params':{'args':c,'opts':this[H(0xc4)]['deepen'](b)},'success':m?.[H(0xf9)],'message':m?.[H(0xaf)],'details':m?.['details']}),m;}catch(q){this['handleGenerateError'](q);}});}[a100v(0x10e)](){const I=a100v;this[I(0xf7)](this['_generators']);}['handleGenerateError'](a){const J=a100v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[J(0xb8)];Log['usage'](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[J(0xa4)]('Generators:'),this[J(0xf7)](this[J(0x121)]);else{if(a instanceof MustBeInProjectError)Log[J(0xb2)](J(0xc0));else{if(a instanceof NoMeteorFoundError)Log[J(0xb2)](J(0x115)),Log[J(0xa4)](J(0x104));else a instanceof NoMeteorAppFoundError&&Log[J(0xb2)](J(0xa1));}}}[a100v(0xf7)](a){const K=a100v,b=new a100g({});b[K(0xa7)](['Name',K(0xa5),K(0xe0)]),a[K(0xf3)]((c,d)=>{const L=K;return c['name'][L(0xf5)](d[L(0x11e)]);})[K(0xb7)](c=>{const M=K;b['push']([c[M(0x11e)],c[M(0x122)](),c[M(0xf2)]()]);}),Log[K(0xd0)](b[K(0x111)]());}}function a100c(){const N=['No\x20undo\x20handler\x20defined\x20for\x20','minOptsLength','findGeneratorByName','fullNameChain','where','config','reverse','undo','server','find','writeHistory','split','resourceName','shortDesc','sort','assign','localeCompare','5113400CJZUwQ','tableList','sep','success','30249uefgXO','.maka','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','getHistoryFileSize','\x20generator.\x20Skipping\x20undo.','130waxXkI','filter','help','Generator.create\x20requires\x20a\x20handler\x20function!','opts','Please\x20run\x20\x22maka\x20install\x20meteor\x22','stringify','colLocAnswer','\x20not\x20found.\x20Cannot\x20undo.','minArgLength','history.json','208UHTXrB','Client','join','validateMakaProject','listGenerators','size','replace','toString','4rxyBgR','Generator\x20requires\x20a\x20name','addGenerator','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','pathFromProject','params','Too\x20many\x20options','appPathPrefix','maxArgLength','addToHistory','cwd','Too\x20few\x20arguments','name','readHistory','function','_generators','aliases','_handler','There\x20is\x20no\x20Meteor\x20application\x20here','length','127158boRrTG','notice','Alias','_undoHandler','push','mustHaveMeteorInstalled','11723rXYvva','1588433gutBSJ','utf-8','Too\x20many\x20arguments','LIGHT','match','message','validateEngines','10773YNdmrh','error','existsSync','dir','number','DARK','forEach','options','writeFileSync','invoke','client','getGlobalConfig','requiredEngines','mustBeInMakaProject','Generator.create\x20requires\x20some\x20options!','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','227570PKZhKI','pop','validateParams','fsi','includes','checkWhere','maxOptsLength','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','Location','bind','both','validateMakaSubscription','handleGenerateError','_genTransactionId','parse','bright','Generator\x20','create','transactionId','warn','_historyFilePath','apply','map','constructor','addGenerator\x20requires\x20a\x20Generator\x20instance','processAndRunGenerator','Too\x20few\x20options','Generator\x20requires\x20a\x20handler\x20function','generatorName','chdir','readFileSync','Description','slice','lib','pallet','validateMeteorInstall'];a100c=function(){return N;};return a100c();}
@@ -1 +1 @@
1
- (function(a,b){var f=a101d,c=a();while(!![]){try{var d=parseInt(f(0x133))/0x1*(-parseInt(f(0x12e))/0x2)+-parseInt(f(0x137))/0x3*(-parseInt(f(0x130))/0x4)+-parseInt(f(0x132))/0x5+-parseInt(f(0x12f))/0x6+parseInt(f(0x136))/0x7*(-parseInt(f(0x134))/0x8)+parseInt(f(0x131))/0x9*(parseInt(f(0x139))/0xa)+-parseInt(f(0x12c))/0xb*(-parseInt(f(0x12b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xe5122));var a101b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){var g=a101d;return a101a[g(0x12a)]()[g(0x12d)](g(0x138))[g(0x12a)]()[g(0x135)](a101a)['search'](g(0x138));});a101a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';function a101d(a,b){var c=a101c();return a101d=function(d,e){d=d-0x12a;var f=c[d];return f;},a101d(a,b);}import'./publish.js';import'./route.js';function a101c(){var h=['232134xDBnUM','4953420fNcsFc','580lwAiwd','396exdllh','6718735EpYEQP','8UxoFdT','2434352idIPQS','constructor','7CuxheX','20589CrnmZA','(((.+)+)+)+$','343980ruSnCv','toString','21981288rNNdEU','11oAllxG','search'];a101c=function(){return h;};return a101c();}import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
1
+ (function(a,b){var f=a101d,c=a();while(!![]){try{var d=-parseInt(f(0xff))/0x1+parseInt(f(0xf4))/0x2*(parseInt(f(0xf8))/0x3)+parseInt(f(0xfd))/0x4*(parseInt(f(0xfe))/0x5)+-parseInt(f(0xfa))/0x6+parseInt(f(0xf5))/0x7+-parseInt(f(0xf0))/0x8*(parseInt(f(0xf2))/0x9)+parseInt(f(0xfc))/0xa*(parseInt(f(0xf6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x5985a));var a101b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a101d;if(c){var e=c[g(0xf7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){var h=a101d;return a101a[h(0xf3)]()[h(0xf1)](h(0xfb))['toString']()[h(0xf9)](a101a)[h(0xf1)]('(((.+)+)+)+$');});a101a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';function a101c(){var i=['456078waTRZo','702709sXJkvQ','2519gtCPdj','apply','3MFkgWl','constructor','2281782TanPlt','(((.+)+)+)+$','19630FgHZzK','1981516GSPWbl','5NpMFUz','313747ZPmHWo','1700848OnQvqL','search','9lLdOIE','toString'];a101c=function(){return i;};return a101c();}function a101d(a,b){var c=a101c();return a101d=function(d,e){d=d-0xf0;var f=c[d];return f;},a101d(a,b);}import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
@@ -1 +1 @@
1
- function a102c(){const z=['maka:rest','typeDefs.','test','typeList.push(','template','import\x20\x27./register-','/imports/api','apollo','8906655AvhGpO','checkbox','REST\x20API','imports','none','28137sajrTm','withRest','Resolvers);\x0a\x0a','maka\x20{generate,\x20g}:{api}\x20<resource-name>','819gLmBGf','rpc-methods.','/graphql/typeDefs','toString','Resolvers\x20}\x20from\x20\x27','api/fixtures.js','20JpxxdO','length','fixtures.','.app-tests.','withMethods','api/api.js','withGql','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','withPubs','Fixtures','error','exit','api/register-api.js','\x27;\x0a','maka\x20g:api\x20Todos','graphql','getMakaProjectConfig','Publications','1330508tHCEvC','maka:check','resolvers.','(((.+)+)+)+$','109096qNcIRg','const','No\x20API\x20boundaries\x20selected','dir','push','engines','api','create','rewriteDestinationPathForEngine','register-','server','api/typeDefs.js','TypeDefs);\x0a','rest-api.','search','withFixtures','tsx','1497661esMgYI','\x0aimport\x20{\x20resolvers\x20as\x20','api/tests.js','resourceName','mdg:validated-method','startup','-api\x27;','options','fsi','injectAtBeginningOfFile','API\x20boundaries\x20to\x20create','injectIntoFile','pathFromApp','if\x20\x5c(typeList','includes','9470790oUtQNL','api/resolvers.js','9872178KatUCt','index.','api/methods.js','checkMeteorPackage','-api.','rest','publications.','injectAtEndOfFile'];a102c=function(){return z;};return a102c();}const a102w=a102d;(function(a,b){const u=a102d,c=a();while(!![]){try{const d=parseInt(u(0x1bc))/0x1+-parseInt(u(0x1a7))/0x2+-parseInt(u(0x1e2))/0x3*(-parseInt(u(0x1ec))/0x4)+parseInt(u(0x1dd))/0x5+-parseInt(u(0x1cd))/0x6+-parseInt(u(0x1cb))/0x7+parseInt(u(0x1ab))/0x8*(parseInt(u(0x1e6))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xdc863));function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a102d(a,b);}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 v=a102d;return a102a[v(0x1e9)]()[v(0x1b9)](v(0x1aa))['toString']()['constructor'](a102a)[v(0x1b9)](v(0x1aa));});a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102w(0x1b2)]({'name':a102w(0x1b1),'aliases':['a'],'usage':a102w(0x1e5),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a102w(0x1ae)],'examples':[a102w(0x1a3)],'description':a102w(0x1f3)},async function(a,b){const x=a102w;try{const c=this[x(0x1c4)][x(0x1a5)](),d=[{'name':'RPC\x20(Methods)','value':x(0x1f0)},{'name':x(0x1f5),'value':'withFixtures'},{'name':x(0x1a6),'value':x(0x1f4)}];c[x(0x1b0)][x(0x1b1)]===x(0x1d2)&&d['push']({'name':x(0x1df),'value':x(0x1e3)});c[x(0x1b0)][x(0x1a4)]===x(0x1dc)&&d[x(0x1af)]({'name':'GraphQL','value':x(0x1f2)});const f={'type':x(0x1de),'name':'apiAnswers','message':x(0x1c6),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[x(0x1c3)](f);g[x(0x1ed)]===0x0&&(Log[x(0x1f6)](x(0x1ad)),process[x(0x1a0)](0x1)),await this['fsi']['withValue'](c,async()=>{const y=x,h=b[y(0x1bf)],i=paramCase(h),j=camelCase(h),k=b[y(0x1ae)]?'/'+b[y(0x1ae)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c['engines']['api'],'graphql':c[y(0x1b0)][y(0x1a4)],'test':c[y(0x1b0)][y(0x1d7)],'noRename':!![],'withPubs':g[y(0x1ca)](y(0x1f4)),'withFixtures':g[y(0x1ca)](y(0x1ba)),'withMethods':g[y(0x1ca)]('withMethods'),'withRest':g[y(0x1ca)]('withRest')};let m='js';c[y(0x1b0)]['js']===y(0x1bb)&&(m='ts');await this[y(0x1c4)][y(0x1d0)]([y(0x1d5),y(0x1a8),'ddp-rate-limiter',y(0x1c0)],{'shouldInstall':!![]});c[y(0x1b0)][y(0x1b1)]==='rest'&&(l[y(0x1e3)]&&await this['fsi'][y(0x1d9)]({'srcPath':y(0x1f1),'destPath':this['fsi'][y(0x1c8)]({'pathParts':[y(0x1e0),'api',b[y(0x1ae)],i,y(0x1b8)+m]}),'context':l,'config':c}));l[y(0x1f0)]&&await this[y(0x1c4)][y(0x1d9)]({'srcPath':y(0x1cf),'destPath':this[y(0x1c4)][y(0x1c8)]({'pathParts':[y(0x1e0),y(0x1b1),b[y(0x1ae)],i,y(0x1e7)+m]}),'context':l,'config':c});l[y(0x1ba)]&&await this[y(0x1c4)][y(0x1d9)]({'srcPath':y(0x1eb),'destPath':this[y(0x1c4)]['pathFromApp']({'pathParts':[y(0x1e0),y(0x1b1),b[y(0x1ae)],i,y(0x1ee)+m]}),'context':l,'config':c});c[y(0x1b0)][y(0x1d7)]!==y(0x1e1)&&this['fsi'][y(0x1d9)]({'srcPath':y(0x1be),'destPath':this['fsi']['pathFromApp']({'pathParts':[y(0x1e0),y(0x1b1),b['dir'],i,i+y(0x1ef)+m]}),'context':l,'config':c});l['withPubs']&&await this[y(0x1c4)][y(0x1d9)]({'srcPath':'api/publications.js','destPath':this[y(0x1c4)][y(0x1c8)]({'pathParts':[y(0x1e0),'api',b['dir'],i,y(0x1d3)+m]}),'context':l,'config':c});if(c[y(0x1b0)][y(0x1a4)]===y(0x1dc)){if(g[y(0x1ca)]('withGql')){const o=this[y(0x1c4)]['pathFromApp']({'pathParts':[y(0x1e0),y(0x1c1),y(0x1b5),'index.'+c[y(0x1b0)]['js']]}),p=this[y(0x1c4)][y(0x1b3)]({'pathParts':[o],'config':c}),q=this[y(0x1c4)][y(0x1c8)]({'pathParts':['imports',y(0x1b1),b[y(0x1ae)],i,y(0x1a4),y(0x1d6)+m]}),r='/imports/api'+k+i+y(0x1e8);this['fsi']['template']({'srcPath':y(0x1b6),'destPath':q,'context':l,'config':c}),await this[y(0x1c4)][y(0x1c5)]({'filePath':p,'content':'import\x20{\x20typeDefs\x20as\x20'+j+'TypeDefs\x20}\x20from\x20\x27'+r+y(0x1a2)}),await this['fsi']['injectIntoFile']({'filePath':p,'content':y(0x1d8)+j+y(0x1b7),'begin':'const','end':y(0x1c9)});const s=this[y(0x1c4)]['pathFromApp']({'pathParts':[y(0x1e0),y(0x1b1),b['dir'],i,'graphql',y(0x1a9)+m]}),t=y(0x1db)+k+i+'/graphql/resolvers';await this[y(0x1c4)][y(0x1d9)]({'srcPath':y(0x1cc),'destPath':s,'context':l,'config':c}),await this[y(0x1c4)][y(0x1c5)]({'filePath':p,'content':y(0x1bd)+j+y(0x1ea)+t+'\x27;'}),await this[y(0x1c4)][y(0x1c7)]({'filePath':p,'content':'resolverList.push('+j+y(0x1e4),'begin':y(0x1ac),'end':'if\x20\x5c(typeList'});}}await this['fsi'][y(0x1d9)]({'srcPath':y(0x1a1),'destPath':this[y(0x1c4)]['pathFromApp']({'pathParts':['imports',y(0x1c1),y(0x1b5),y(0x1b4)+i+y(0x1d1)+m]}),'context':l,'config':c,'force':!![]});const n=this['fsi'][y(0x1c8)]({'pathParts':['imports',y(0x1c1),y(0x1b5),y(0x1ce)+c['engines']['js']]});await this['fsi'][y(0x1d4)]({'filePath':n,'content':y(0x1da)+i+y(0x1c2)});});}catch(h){console[x(0x1f6)](h),process['exit'](0x0);}});
1
+ const a102x=a102d;(function(a,b){const u=a102d,c=a();while(!![]){try{const d=parseInt(u(0x1b6))/0x1*(parseInt(u(0x1ae))/0x2)+-parseInt(u(0x177))/0x3*(-parseInt(u(0x1a7))/0x4)+-parseInt(u(0x190))/0x5*(-parseInt(u(0x1b7))/0x6)+parseInt(u(0x17d))/0x7+parseInt(u(0x1b4))/0x8+-parseInt(u(0x17a))/0x9*(parseInt(u(0x18a))/0xa)+-parseInt(u(0x1b8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xebb5f));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a102d;if(c){const e=c[v(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const w=a102d;return a102a[w(0x1a3)]()['search']('(((.+)+)+)+$')[w(0x1a3)]()[w(0x1ac)](a102a)['search']('(((.+)+)+)+$');});a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a102c(){const A=['index.','engines','pathFromApp','resolvers.','const','withPubs','\x0aimport\x20{\x20resolvers\x20as\x20','1094410FUDOsz','api/publications.js','none','TypeDefs);\x0a','api/tests.js','rewriteDestinationPathForEngine','270CbpRqB','api/resolvers.js','Resolvers);\x0a\x0a','TypeDefs\x20}\x20from\x20\x27','api','/imports/api','api/register-api.js','No\x20API\x20boundaries\x20selected','server','withFixtures','template','test','injectIntoFile','startup','apply','RPC\x20(Methods)','graphql','withGql','api/typeDefs.js','toString','exit','-api\x27;','error','10204QmfMNN','withMethods','api/methods.js','typeList.push(','resourceName','constructor','maka\x20{generate,\x20g}:{api}\x20<resource-name>','312742SFLSRZ','injectAtBeginningOfFile','import\x20{\x20typeDefs\x20as\x20','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','create','ddp-rate-limiter','11432472tNPZlV','apiAnswers','8yjsrTv','162420YidXoL','38778883TkFYlE','includes','.app-tests.','maka\x20g:api\x20Todos','maka:check','if\x20\x5c(typeList','apollo','rpc-methods.','rest-api.','checkbox','dir','options','REST\x20API','138GppdEe','fsi','-api.','9QvplAy','rest','push','2387784RyWkYn','length','Resolvers\x20}\x20from\x20\x27','withRest','/graphql/resolvers','imports'];a102c=function(){return A;};return a102c();}import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x176;let f=c[d];return f;},a102d(a,b);}Generator[a102x(0x1b2)]({'name':'api','aliases':['a'],'usage':a102x(0x1ad),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':['dir'],'examples':[a102x(0x1bb)],'description':a102x(0x1b1)},async function(a,b){const y=a102x;try{const c=this[y(0x178)]['getMakaProjectConfig'](),d=[{'name':y(0x19f),'value':'withMethods'},{'name':'Fixtures','value':'withFixtures'},{'name':'Publications','value':y(0x188)}];c[y(0x184)]['api']===y(0x17b)&&d['push']({'name':y(0x176),'value':y(0x180)});c[y(0x184)]['graphql']===y(0x1be)&&d[y(0x17c)]({'name':'GraphQL','value':y(0x1a1)});const f={'type':y(0x1c1),'name':y(0x1b5),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0x1c3)](f);g[y(0x17e)]===0x0&&(Log[y(0x1a6)](y(0x197)),process['exit'](0x1)),await this[y(0x178)]['withValue'](c,async()=>{const z=y,h=b[z(0x1ab)],i=paramCase(h),j=camelCase(h),k=b[z(0x1c2)]?'/'+b[z(0x1c2)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c[z(0x184)][z(0x194)],'graphql':c['engines']['graphql'],'test':c['engines'][z(0x19b)],'noRename':!![],'withPubs':g['includes'](z(0x188)),'withFixtures':g[z(0x1b9)](z(0x199)),'withMethods':g[z(0x1b9)](z(0x1a8)),'withRest':g[z(0x1b9)](z(0x180))};let m='js';c['engines']['js']==='tsx'&&(m='ts');await this[z(0x178)]['checkMeteorPackage'](['maka:rest',z(0x1bc),z(0x1b3),'mdg:validated-method'],{'shouldInstall':!![]});c['engines']['api']===z(0x17b)&&(l[z(0x180)]&&await this[z(0x178)]['template']({'srcPath':'api/api.js','destPath':this[z(0x178)]['pathFromApp']({'pathParts':[z(0x182),z(0x194),b[z(0x1c2)],i,z(0x1c0)+m]}),'context':l,'config':c}));l[z(0x1a8)]&&await this[z(0x178)][z(0x19a)]({'srcPath':z(0x1a9),'destPath':this['fsi']['pathFromApp']({'pathParts':[z(0x182),z(0x194),b['dir'],i,z(0x1bf)+m]}),'context':l,'config':c});l[z(0x199)]&&await this[z(0x178)][z(0x19a)]({'srcPath':'api/fixtures.js','destPath':this[z(0x178)][z(0x185)]({'pathParts':[z(0x182),z(0x194),b[z(0x1c2)],i,'fixtures.'+m]}),'context':l,'config':c});c['engines'][z(0x19b)]!==z(0x18c)&&this['fsi'][z(0x19a)]({'srcPath':z(0x18e),'destPath':this[z(0x178)][z(0x185)]({'pathParts':[z(0x182),z(0x194),b[z(0x1c2)],i,i+z(0x1ba)+m]}),'context':l,'config':c});l['withPubs']&&await this[z(0x178)][z(0x19a)]({'srcPath':z(0x18b),'destPath':this[z(0x178)]['pathFromApp']({'pathParts':['imports',z(0x194),b[z(0x1c2)],i,'publications.'+m]}),'context':l,'config':c});if(c[z(0x184)][z(0x1a0)]===z(0x1be)){if(g['includes'](z(0x1a1))){const o=this['fsi'][z(0x185)]({'pathParts':['imports','startup',z(0x198),'index.'+c[z(0x184)]['js']]}),p=this[z(0x178)][z(0x18f)]({'pathParts':[o],'config':c}),q=this[z(0x178)][z(0x185)]({'pathParts':['imports',z(0x194),b['dir'],i,'graphql','typeDefs.'+m]}),r=z(0x195)+k+i+'/graphql/typeDefs';this[z(0x178)]['template']({'srcPath':z(0x1a2),'destPath':q,'context':l,'config':c}),await this[z(0x178)][z(0x1af)]({'filePath':p,'content':z(0x1b0)+j+z(0x193)+r+'\x27;\x0a'}),await this[z(0x178)][z(0x19c)]({'filePath':p,'content':z(0x1aa)+j+z(0x18d),'begin':z(0x187),'end':'if\x20\x5c(typeList'});const s=this[z(0x178)][z(0x185)]({'pathParts':['imports',z(0x194),b[z(0x1c2)],i,z(0x1a0),z(0x186)+m]}),t='/imports/api'+k+i+z(0x181);await this[z(0x178)][z(0x19a)]({'srcPath':z(0x191),'destPath':s,'context':l,'config':c}),await this[z(0x178)][z(0x1af)]({'filePath':p,'content':z(0x189)+j+z(0x17f)+t+'\x27;'}),await this[z(0x178)][z(0x19c)]({'filePath':p,'content':'resolverList.push('+j+z(0x192),'begin':z(0x187),'end':z(0x1bd)});}}await this[z(0x178)]['template']({'srcPath':z(0x196),'destPath':this['fsi']['pathFromApp']({'pathParts':[z(0x182),z(0x19d),z(0x198),'register-'+i+z(0x179)+m]}),'context':l,'config':c,'force':!![]});const n=this[z(0x178)][z(0x185)]({'pathParts':[z(0x182),z(0x19d),z(0x198),z(0x183)+c[z(0x184)]['js']]});await this[z(0x178)]['injectAtEndOfFile']({'filePath':n,'content':'import\x20\x27./register-'+i+z(0x1a5)});});}catch(h){console[y(0x1a6)](h),process[y(0x1a4)](0x0);}});
@@ -1 +1 @@
1
- const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=parseInt(j(0x1f6))/0x1+parseInt(j(0x1f1))/0x2*(parseInt(j(0x1fb))/0x3)+parseInt(j(0x1f5))/0x4*(parseInt(j(0x1e1))/0x5)+-parseInt(j(0x1ec))/0x6+parseInt(j(0x1ed))/0x7*(-parseInt(j(0x202))/0x8)+-parseInt(j(0x1eb))/0x9*(-parseInt(j(0x1f7))/0xa)+parseInt(j(0x1e4))/0xb*(parseInt(j(0x205))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x89da4));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x1fa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x206)]()[l(0x1f9)](l(0x1e2))[l(0x206)]()[l(0x207)](a103a)[l(0x1f9)](l(0x1e2));});function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x1df;let f=c[d];return f;},a103d(a,b);}a103a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103c(){const p=['1601082XnLWQu','7wSEcre','fsi','withValue','create','2UiGoSW','pathFromApp','checkMeteorPackage','none','2996rSsSWo','128326kTFNku','10FZkxVg','error','search','apply','1516989WmZEVM','.app-tests.','import\x20\x27./collections','col','tsx','injectAtEndOfFile','engines','4470448pmcYcO','startup','maka:check','113532zsSVmM','toString','constructor','resourceName','collections','10kZaolR','(((.+)+)+)+$','imports','583JfFHSm','dir','getMakaProjectConfig','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','test','collection','template','2280393OghHZp'];a103c=function(){return p;};return a103c();}Generator[a103m(0x1f0)]({'name':a103m(0x1e9),'aliases':[a103m(0x1fe)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a103m(0x1e5),'where'],'description':a103m(0x1e7),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const n=a103m;try{const c=this[n(0x1ee)][n(0x1e6)]();await this[n(0x1ee)][n(0x1ef)](c,async()=>{const o=n,d=paramCase(b[o(0x1df)]),f={'name':pascalCase(b[o(0x1df)]),'collectionName':pascalCase(b['resourceName']),'fileName':d,'where':b['where'],'test':c[o(0x201)]['test'],'noRename':!![]};let g='js';c[o(0x201)]['js']===o(0x1ff)&&(g='ts');await this[o(0x1ee)][o(0x1f3)](['mongo',o(0x204)],{'shouldInstall':!![]}),await this['fsi']['template']({'srcPath':'collection/collection.js','destPath':this['fsi'][o(0x1f2)]({'pathParts':[o(0x1e3),o(0x203),b['appPathPrefix'],o(0x1e0),b[o(0x1e5)],d+'.'+g]}),'context':f,'config':c});c[o(0x201)][o(0x1e8)]!==o(0x1f4)&&await this[o(0x1ee)][o(0x1ea)]({'srcPath':'collection/tests.js','destPath':this[o(0x1ee)][o(0x1f2)]({'pathParts':[o(0x1e3),o(0x203),b['appPathPrefix'],'collections',b[o(0x1e5)],d+o(0x1fc)+g]}),'context':f,'config':c});const h=b[o(0x1e5)]?'/'+b[o(0x1e5)]+'/':'/',i=this[o(0x1ee)]['pathFromApp']({'pathParts':['imports',o(0x203),b['appPathPrefix'],'index.'+c[o(0x201)]['js']]});await this['fsi'][o(0x200)]({'filePath':i,'content':o(0x1fd)+h+d+'\x27;'});});}catch(d){Log[n(0x1f8)](d);}});
1
+ const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=parseInt(j(0x210))/0x1+-parseInt(j(0x200))/0x2+-parseInt(j(0x206))/0x3+parseInt(j(0x1f9))/0x4+parseInt(j(0x205))/0x5*(parseInt(j(0x209))/0x6)+parseInt(j(0x215))/0x7+-parseInt(j(0x1fa))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xc066a));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x211)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x219)]()[l(0x1f8)](l(0x20e))[l(0x219)]()[l(0x213)](a103a)[l(0x1f8)](l(0x20e));});function a103c(){const p=['appPathPrefix','collection','collection/tests.js','165946QAlEWO','maka\x20g:collection\x20todos','pathFromApp','none','test','15HgAGxc','1106328VRCNYv','where','index.','1062708BsBnlU','maka:check','imports','startup','getMakaProjectConfig','(((.+)+)+)+$','collection/collection.js','856374ZeZJXJ','apply','collections','constructor','checkMeteorPackage','2017967PktNLD','dir','error','.app-tests.','toString','engines','resourceName','create','template','fsi','withValue','search','5955844dFBnCJ','15401176SzrLnO','tsx','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection'];a103c=function(){return p;};return a103c();}a103a();import{paramCase,pascalCase}from'change-case';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-0x1f2;let f=c[d];return f;},a103d(a,b);}Generator[a103m(0x1f4)]({'name':a103m(0x1fe),'aliases':['col'],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a103m(0x1fc),'validOpts':[a103m(0x216),a103m(0x207)],'description':'\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','examples':[a103m(0x201)]},async function(a,b){const n=a103m;try{const c=this['fsi'][n(0x20d)]();await this[n(0x1f6)][n(0x1f7)](c,async()=>{const o=n,d=paramCase(b[o(0x1f3)]),f={'name':pascalCase(b[o(0x1f3)]),'collectionName':pascalCase(b[o(0x1f3)]),'fileName':d,'where':b['where'],'test':c[o(0x1f2)]['test'],'noRename':!![]};let g='js';c['engines']['js']===o(0x1fb)&&(g='ts');await this[o(0x1f6)][o(0x214)](['mongo',o(0x20a)],{'shouldInstall':!![]}),await this[o(0x1f6)]['template']({'srcPath':o(0x20f),'destPath':this['fsi'][o(0x202)]({'pathParts':[o(0x20b),o(0x20c),b[o(0x1fd)],o(0x212),b[o(0x216)],d+'.'+g]}),'context':f,'config':c});c['engines'][o(0x204)]!==o(0x203)&&await this['fsi'][o(0x1f5)]({'srcPath':o(0x1ff),'destPath':this[o(0x1f6)][o(0x202)]({'pathParts':[o(0x20b),o(0x20c),b[o(0x1fd)],o(0x212),b[o(0x216)],d+o(0x218)+g]}),'context':f,'config':c});const h=b['dir']?'/'+b['dir']+'/':'/',i=this[o(0x1f6)]['pathFromApp']({'pathParts':['imports',o(0x20c),b[o(0x1fd)],o(0x208)+c[o(0x1f2)]['js']]});await this[o(0x1f6)]['injectAtEndOfFile']({'filePath':i,'content':'import\x20\x27./collections'+h+d+'\x27;'});});}catch(d){Log[n(0x217)](d);}});
@@ -1 +1 @@
1
- const a104m=a104d;(function(a,b){const k=a104d,c=a();while(!![]){try{const d=parseInt(k(0xa9))/0x1*(parseInt(k(0xaf))/0x2)+-parseInt(k(0x8b))/0x3*(parseInt(k(0xac))/0x4)+parseInt(k(0xc4))/0x5+parseInt(k(0xba))/0x6*(-parseInt(k(0xa0))/0x7)+-parseInt(k(0xc5))/0x8+-parseInt(k(0xc7))/0x9+-parseInt(k(0x97))/0xa*(-parseInt(k(0xc6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x25dc4));function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x8a;let f=c[d];return f;},a104d(a,b);}const a104b=(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;};}()),a104a=a104b(this,function(){const l=a104d;return a104a[l(0x96)]()[l(0xb8)]('(((.+)+)+)+$')[l(0x96)]()[l(0x9f)](a104a)['search'](l(0xa1));});function a104c(){const p=['ssr','ramda','css','429845lxYQWr','2336832fybtyo','1787027BpFfDK','1107819IkANjY','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','/imports/ui/components','import\x20\x27./','features','105jufYRB','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','setTemplate','cssCaseName','error','baseDir','none','theme','root','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','dir','toString','20bnsvgk','test','comp','pages','assign','checkNpmPackage','components','template','constructor','10556wCPcyq','(((.+)+)+)+$','/imports/ui/','warn','.tests.js','fsi','.css','template/template.css','react','28771EGUyTD','.js','api','5504kREEiK','true','graphql','16bbdfMr','create','hooks','string','component/component.js','client','injectAtBeginningOfFile','findAppDirectory','getMakaProjectConfig','search','layouts','90jxAzPR','withValue','engines','fileName','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','installNpmPackage','resourceName'];a104c=function(){return p;};return a104c();}a104a();import a104e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a104m(0x99)];Generator[a104m(0xb0)]({'name':'component','aliases':aliases,'usage':a104m(0xbe),'shortDesc':a104m(0xc8),'validOpts':[{'name':a104m(0x90),'values':[a104m(0xb1),a104m(0x9d),a104m(0x9a),a104m(0xb9)]}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const n=a104m;try{const c=this['fsi'][n(0xb6)](),d=b[n(0x90)]?n(0xa2)+b['baseDir']:n(0xc9),f=this[n(0xa5)]['pathFromApp']({'pathParts':[d,b['dir'],paramCase(b[n(0xc0)]),paramCase(b[n(0xc0)])]}),g=await this[n(0xa5)][n(0xb7)]();await this[n(0xa5)][n(0xbb)](g,async()=>{const o=n;typeof g[o(0x9e)][o(0x98)]===o(0xb2)&&(g[o(0x9e)][o(0x98)]=g[o(0x9e)][o(0x98)]===o(0xad)?!![]:![],this[o(0xa5)][o(0x8d)](o(0x98),g['template'][o(0x98)]));typeof g[o(0x9e)][o(0xc3)]===o(0xb2)&&(g[o(0x9e)][o(0xc3)]=g[o(0x9e)][o(0xc3)]===o(0xad)?!![]:![],this['fsi']['setTemplate'](o(0xc3),g[o(0x9e)][o(0xc3)]));typeof g[o(0x9e)]['js']===o(0xb2)&&(g[o(0x9e)]['js']=g[o(0x9e)]['js']===o(0xad)?!![]:![],this['fsi']['setTemplate']('js',g[o(0x9e)]['js']));!g['features']&&(g['features']={});!b[o(0x93)]&&!this[o(0xa5)][o(0x9c)](o(0xc2))&&(Log[o(0xa3)](o(0x94)),await this[o(0xa5)][o(0xbf)](o(0xc2),{'cwd':c}));if(!b[o(0x93)]&&!this[o(0xa5)][o(0x9c)](o(0xa8))){Log[o(0x8f)](o(0x8c));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a104e['relative'](this[o(0xa5)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[o(0xc0)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':g[o(0xbc)][o(0xae)],'features':g[o(0x8a)],'client':g[o(0xbc)][o(0xb4)],'api':g['engines'][o(0xab)],'ssr':g[o(0xbc)][o(0xc1)],'test':g[o(0xbc)][o(0x98)],'theme':g[o(0xbc)][o(0x92)],'isLayout':![],'isComponent':!![],'withTranslations':g[o(0x8a)]['withTranslations']};await this[o(0xa5)][o(0x9e)]({'srcPath':o(0xb3),'destPath':f+o(0xaa),'context':h,'framework':'react','config':g});g[o(0xbc)]['test']!==o(0x91)&&await this[o(0xa5)][o(0x9e)]({'srcPath':'test/test.js','destPath':f+o(0xa4),'context':h,'framework':o(0xa8),'config':g});g[o(0x9e)]['css']&&(await this[o(0xa5)][o(0x9e)]({'srcPath':o(0xa7),'destPath':f+o(0xa6),'context':Object[o(0x9b)]({},h,{'className':paramCase(b[o(0xc0)])}),'config':g}),await this[o(0xa5)][o(0xb5)]({'filePath':f+'.'+g[o(0xbc)]['js'],'content':o(0xca)+h[o(0x8e)]+'.'+g[o(0xbc)][o(0xc3)]+'\x27;'}));const i=b[o(0x95)]?'/'+b['dir']+'/':'/',j=''+d+i+h['fileName']+'/'+h[o(0xbd)];await this[o(0xa5)]['injectTemplateModule'](h['className'],g,j);});}catch(h){Log[n(0x8f)](h);}});
1
+ const a104n=a104d;function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xdb;let f=c[d];return f;},a104d(a,b);}function a104c(){const q=['root','component','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','engines','.tests.js','4632dXEHuq','cssCaseName','dir','graphql','17163TzzICU','checkNpmPackage','test','maka\x20g:comp\x20todos/todos-item','1165824QyEpVP','create','theme','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','constructor','162291EDLIsf','template/template.css','setTemplate','injectTemplateModule','.css','features','8078DeDuik','none','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','layouts','resourceName','withTranslations','1803808SsrvdD','(((.+)+)+)+$','components','template','true','66QENHbZ','installNpmPackage','baseDir','pages','pathFromApp','307300ATzYvs','search','ssr','apply','react','1379060PlElAK','pathFromProject','error','injectAtBeginningOfFile','fileName','findAppDirectory','toString','.js','fsi','css','/imports/ui/components','ramda','string','className'];a104c=function(){return q;};return a104c();}(function(a,b){const k=a104d,c=a();while(!![]){try{const d=-parseInt(k(0x114))/0x1*(parseInt(k(0xe4))/0x2)+-parseInt(k(0x10e))/0x3+-parseInt(k(0xdf))/0x4+-parseInt(k(0xee))/0x5+parseInt(k(0x109))/0x6+parseInt(k(0xe9))/0x7+-parseInt(k(0x101))/0x8*(-parseInt(k(0x105))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x4800a));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a104d;if(c){const e=c[l(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const m=a104d;return a104a['toString']()['search']('(((.+)+)+)+$')[m(0xf4)]()[m(0x10d)](a104a)[m(0xea)](m(0xe0));});a104a();import a104e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator[a104n(0x10a)]({'name':a104n(0xfd),'aliases':aliases,'usage':a104n(0x10c),'shortDesc':a104n(0xfe),'validOpts':[{'name':a104n(0xe6),'values':['hooks',a104n(0xe1),a104n(0xe7),a104n(0xdc)]}],'examples':[a104n(0x108)]},async function(a,b){const o=a104n;try{const c=this[o(0xf6)][o(0xf3)](),d=b['baseDir']?'/imports/ui/'+b[o(0xe6)]:o(0xf8),f=this[o(0xf6)][o(0xe8)]({'pathParts':[d,b[o(0x103)],paramCase(b['resourceName']),paramCase(b[o(0xdd)])]}),g=await this['fsi']['getMakaProjectConfig']();await this[o(0xf6)]['withValue'](g,async()=>{const p=o;typeof g[p(0xe2)][p(0x107)]===p(0xfa)&&(g['template'][p(0x107)]=g[p(0xe2)]['test']===p(0xe3)?!![]:![],this[p(0xf6)][p(0x110)](p(0x107),g[p(0xe2)][p(0x107)]));typeof g['template'][p(0xf7)]==='string'&&(g['template']['css']=g['template']['css']===p(0xe3)?!![]:![],this[p(0xf6)]['setTemplate'](p(0xf7),g[p(0xe2)][p(0xf7)]));typeof g[p(0xe2)]['js']==='string'&&(g[p(0xe2)]['js']=g[p(0xe2)]['js']===p(0xe3)?!![]:![],this[p(0xf6)][p(0x110)]('js',g[p(0xe2)]['js']));!g[p(0x113)]&&(g[p(0x113)]={});!b[p(0xfc)]&&!this[p(0xf6)]['checkNpmPackage'](p(0xf9))&&(Log['warn'](p(0xdb)),await this[p(0xf6)][p(0xe5)](p(0xf9),{'cwd':c}));if(!b[p(0xfc)]&&!this[p(0xf6)][p(0x106)](p(0xed))){Log[p(0xf0)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[p(0xdd)]),'myPath':a104e['relative'](this[p(0xf6)][p(0xef)]({}),f),'cssCaseName':paramCase(b[p(0xdd)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0xdd)]),'fileName':paramCase(b[p(0xdd)]),'graphql':g[p(0xff)][p(0x104)],'features':g[p(0x113)],'client':g[p(0xff)]['client'],'api':g[p(0xff)]['api'],'ssr':g['engines'][p(0xeb)],'test':g[p(0xff)][p(0x107)],'theme':g['engines'][p(0x10b)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][p(0xde)]};await this[p(0xf6)][p(0xe2)]({'srcPath':'component/component.js','destPath':f+p(0xf5),'context':h,'framework':'react','config':g});g['engines'][p(0x107)]!==p(0x115)&&await this[p(0xf6)]['template']({'srcPath':'test/test.js','destPath':f+p(0x100),'context':h,'framework':p(0xed),'config':g});g[p(0xe2)]['css']&&(await this['fsi'][p(0xe2)]({'srcPath':p(0x10f),'destPath':f+p(0x112),'context':Object['assign']({},h,{'className':paramCase(b['resourceName'])}),'config':g}),await this[p(0xf6)][p(0xf1)]({'filePath':f+'.'+g[p(0xff)]['js'],'content':'import\x20\x27./'+h[p(0x102)]+'.'+g['engines']['css']+'\x27;'}));const i=b[p(0x103)]?'/'+b[p(0x103)]+'/':'/',j=''+d+i+h[p(0xf2)]+'/'+h['fileName'];await this[p(0xf6)][p(0x111)](h[p(0xfb)],g,j);});}catch(h){Log['error'](h);}});
@@ -1 +1 @@
1
- const a105j=a105d;function a105c(){const m=['template','13368yPJgdT','pathFromProject','development','44488EWNFUn','resourceName','create','2978460FqsVit','toString','dev','config/settings.json','maka\x20{generate,\x20g}:{config}\x20<name>','settings.json','1101oEtubL','getMakaProjectConfig','constructor','production','3214848YgYxeg','withValue','appName','(((.+)+)+)+$','fsi','32xIcXfG','Generate\x20configuration\x20settings.','876155HJvTDq','config','435AuLJtl','prod','2705292VtmOQt','isDocker','search','config/process.env','3190UbVjYO'];a105c=function(){return m;};return a105c();}function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xd8;let f=c[d];return f;},a105d(a,b);}(function(a,b){const h=a105d,c=a();while(!![]){try{const d=-parseInt(h(0xda))/0x1+-parseInt(h(0xf6))/0x2*(parseInt(h(0xe3))/0x3)+-parseInt(h(0xf8))/0x4*(-parseInt(h(0xf0))/0x5)+parseInt(h(0xe7))/0x6+parseInt(h(0xee))/0x7*(-parseInt(h(0xec))/0x8)+parseInt(h(0xf2))/0x9+parseInt(h(0xdd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x47e53));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 i=a105d;return a105a[i(0xde)]()['search'](i(0xea))[i(0xde)]()[i(0xe5)](a105a)[i(0xf4)](i(0xea));});a105a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105j(0xdc)]({'name':'config','usage':a105j(0xe1),'shortDesc':a105j(0xed),'validOpts':[a105j(0xf3)],'examples':['maka\x20g:config\x20production']},async function(a,b){const k=a105j,c=this[k(0xeb)][k(0xe4)]();await this[k(0xeb)][k(0xe8)](c,async()=>{const l=k,d={'app':c[l(0xe9)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[l(0xdb)]),'fileName':paramCase(b[l(0xdb)]),'camelCase':camelCase(b[l(0xdb)]),'userName':'ubuntu','isDocker':b[l(0xf3)]};let e=b['resourceName'];if(e===l(0xdf))e=l(0xd9);else e===l(0xf1)&&(e=l(0xe6));const f=this['fsi'][l(0xd8)]({'pathParts':[l(0xef),e,l(0xe2)]});await this['fsi'][l(0xf7)]({'srcPath':l(0xe0),'destPath':f,'context':d,'config':c});if(!b[l(0xf3)]){const g=this[l(0xeb)]['pathFromProject']({'pathParts':['config',e,'process.env']});await this[l(0xeb)][l(0xf7)]({'srcPath':l(0xf5),'destPath':g,'context':d,'config':c});}});});
1
+ function a105c(){const n=['process.env','1175790DGsJbu','335499hIupiE','resourceName','create','prod','854824DEwnHN','config/process.env','(((.+)+)+)+$','10935353XDAbCY','search','production','constructor','7cuEhSJ','appName','fsi','settings.json','Generate\x20configuration\x20settings.','maka\x20g:config\x20production','maka\x20{generate,\x20g}:{config}\x20<name>','template','config/settings.json','2WeJSzj','45WysQKF','config','dev','pathFromProject','toString','457340yZrKdi','858612OzaLYd','84tbfAFu','withValue','apply','23292aiQWLd','isDocker'];a105c=function(){return n;};return a105c();}const a105k=a105d;(function(a,b){const h=a105d,c=a();while(!![]){try{const d=-parseInt(h(0x1f6))/0x1*(-parseInt(h(0x1e7))/0x2)+parseInt(h(0x1f2))/0x3*(parseInt(h(0x1ef))/0x4)+parseInt(h(0x1f5))/0x5+parseInt(h(0x1ee))/0x6+parseInt(h(0x1de))/0x7*(parseInt(h(0x1d7))/0x8)+-parseInt(h(0x1e8))/0x9*(-parseInt(h(0x1ed))/0xa)+-parseInt(h(0x1da))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x3545b));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a105d;if(c){const e=c[i(0x1f1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const j=a105d;return a105a[j(0x1ec)]()[j(0x1db)](j(0x1d9))[j(0x1ec)]()[j(0x1dd)](a105a)[j(0x1db)]('(((.+)+)+)+$');});a105a();import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a105d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105k(0x1d5)]({'name':'config','usage':a105k(0x1e4),'shortDesc':a105k(0x1e2),'validOpts':[a105k(0x1f3)],'examples':[a105k(0x1e3)]},async function(a,b){const l=a105k,c=this[l(0x1e0)]['getMakaProjectConfig']();await this[l(0x1e0)][l(0x1f0)](c,async()=>{const m=l,d={'app':c[m(0x1df)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x1d4)]),'camelCase':camelCase(b[m(0x1d4)]),'userName':'ubuntu','isDocker':b[m(0x1f3)]};let e=b[m(0x1d4)];if(e===m(0x1ea))e='development';else e===m(0x1d6)&&(e=m(0x1dc));const f=this['fsi'][m(0x1eb)]({'pathParts':[m(0x1e9),e,m(0x1e1)]});await this[m(0x1e0)][m(0x1e5)]({'srcPath':m(0x1e6),'destPath':f,'context':d,'config':c});if(!b[m(0x1f3)]){const g=this['fsi']['pathFromProject']({'pathParts':['config',e,m(0x1f4)]});await this[m(0x1e0)][m(0x1e5)]({'srcPath':m(0x1d8),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a106d(a,b);}const a106m=a106d;function a106c(){const p=['105325JnwFJo','80wQpcrr','better-sqlite3','42161QBQKBz','imports','9XzrGKj','149892zlGDvT','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','sqlite','tsx','dbc/config.js','search','84roUmCj','12UVvaAD','engines','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','toString','dir','131532zQVyXx','maka\x20g:dbc\x20geoserver\x20--type=pgsql','pathFromApp','warn','pgsql','mssql','import\x20\x27./register-','error','10968peVISY','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','resourceName','-dbc\x27;','dbc/conn.js','fsi','injectAtEndOfFile','template','182312BVTZxn','-dbc.','maka\x20g:dbc\x20todos\x20--type=sqlite','maka\x20g:dbc\x20azure\x20--type=mssql','type','798291Vhokit','50WIicdk','dbc','installNpmPackage','conn.','checkNpmPackage','server','apply','withValue','startup','88XhBvlN','(((.+)+)+)+$'];a106c=function(){return p;};return a106c();}(function(a,b){const j=a106d,c=a();while(!![]){try{const d=-parseInt(j(0x1b8))/0x1*(-parseInt(j(0x1c5))/0x2)+parseInt(j(0x1b0))/0x3*(parseInt(j(0x1b1))/0x4)+-parseInt(j(0x1d4))/0x5*(parseInt(j(0x1bd))/0x6)+parseInt(j(0x1ae))/0x7*(-parseInt(j(0x1dd))/0x8)+parseInt(j(0x1d3))/0x9+parseInt(j(0x1ac))/0xa*(parseInt(j(0x1df))/0xb)+-parseInt(j(0x1b7))/0xc*(-parseInt(j(0x1ce))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x2623d));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a106d;if(c){const e=c[k(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const l=a106d;return a106a[l(0x1bb)]()[l(0x1b6)](l(0x1de))['toString']()['constructor'](a106a)[l(0x1b6)]('(((.+)+)+)+$');});a106a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a106m(0x1d5),'usage':a106m(0x1c7),'shortDesc':a106m(0x1c6),'validOpts':[a106m(0x1bc)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a106m(0x1d2),'values':['pgsql',a106m(0x1c2),a106m(0x1b3)]}],'examples':[a106m(0x1be),a106m(0x1d1),a106m(0x1d0)]},async function(a,b){const n=a106m;try{const c=await this[n(0x1cb)]['getMakaProjectConfig'](),d=this[n(0x1cb)][n(0x1bf)]({}),f=paramCase(b[n(0x1c8)]),g={'name':pascalCase(b[n(0x1c8)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[n(0x1c8)]),'type':b[n(0x1d2)],'engine':c[n(0x1b9)]['js'],'noRename':!![]};await this[n(0x1cb)][n(0x1db)](c,async()=>{const o=n;let h='js';c[o(0x1b9)]['js']===o(0x1b4)&&(h='ts');b[o(0x1d2)]===o(0x1c1)&&!this['fsi'][o(0x1d8)]('pg')&&(Log[o(0x1c0)](o(0x1b2)),await this[o(0x1cb)][o(0x1d6)]('pg',{'cwd':d}));b[o(0x1d2)]==='mssql'&&!this[o(0x1cb)][o(0x1d8)]('mssql')&&(Log['warn'](o(0x1ba)),await this[o(0x1cb)][o(0x1d6)](o(0x1c2),{'cwd':d}));b[o(0x1d2)]==='sqlite'&&!this['fsi'][o(0x1d8)](o(0x1ad))&&(Log[o(0x1c0)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this['fsi'][o(0x1d6)](o(0x1ad),{'cwd':d}));await this[o(0x1cb)]['template']({'srcPath':o(0x1b5),'destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x1af),o(0x1dc),'server','dbc',b[o(0x1bc)],f,'config.'+h]}),'context':g,'config':c}),await this[o(0x1cb)][o(0x1cd)]({'srcPath':o(0x1ca),'destPath':this[o(0x1cb)][o(0x1bf)]({'pathParts':[o(0x1af),'startup',o(0x1d9),o(0x1d5),b[o(0x1bc)],f,o(0x1d7)+h]}),'context':g,'config':c}),await this[o(0x1cb)][o(0x1cd)]({'srcPath':'dbc/register-dbc.js','destPath':this['fsi'][o(0x1bf)]({'pathParts':[o(0x1af),'startup',o(0x1d9),'register-'+f+o(0x1cf)+h]}),'context':g,'config':c});const i=this['fsi'][o(0x1bf)]({'pathParts':[o(0x1af),'startup','server','index.'+c[o(0x1b9)]['js']]});await this[o(0x1cb)][o(0x1cc)]({'filePath':i,'content':o(0x1c3)+f+o(0x1c9)});});}catch(h){Log[n(0x1c4)](h);}});
1
+ const a106m=a106d;(function(a,b){const j=a106d,c=a();while(!![]){try{const d=parseInt(j(0x171))/0x1*(-parseInt(j(0x16e))/0x2)+-parseInt(j(0x19e))/0x3+-parseInt(j(0x1a0))/0x4*(parseInt(j(0x187))/0x5)+-parseInt(j(0x181))/0x6*(-parseInt(j(0x196))/0x7)+-parseInt(j(0x17a))/0x8+-parseInt(j(0x192))/0x9+parseInt(j(0x194))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xe8cf1));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a106d;if(c){const e=c[k(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const l=a106d;return a106a[l(0x17c)]()['search'](l(0x186))[l(0x17c)]()[l(0x176)](a106a)['search']('(((.+)+)+)+$');});a106a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a106c(){const p=['7785NEkXEG','dbc/conn.js','maka\x20g:dbc\x20geoserver\x20--type=pgsql','warn','engines','constructor','better-sqlite3','startup','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','3330576XxawvZ','pgsql','toString','pathFromApp','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','imports','tsx','1812NGkcFj','register-','error','create','dir','(((.+)+)+)+$','19705hFhFBJ','maka\x20g:dbc\x20todos\x20--type=sqlite','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','resourceName','server','checkNpmPackage','sqlite','import\x20\x27./register-','conn.','installNpmPackage','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','13588983ykCIvx','index.','47705360oxmVit','dbc/register-dbc.js','1337IKnHhm','apply','type','config.','dbc/config.js','dbc','mssql','-dbc.','1426995YbkoPy','template','436edfNst','268sOKejB','fsi','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'];a106c=function(){return p;};return a106c();}function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x16e;let f=c[d];return f;},a106d(a,b);}Generator[a106m(0x184)]({'name':a106m(0x19b),'usage':a106m(0x17e),'shortDesc':a106m(0x189),'validOpts':[a106m(0x185)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a106m(0x198),'values':[a106m(0x17b),'mssql',a106m(0x18d)]}],'examples':[a106m(0x173),'maka\x20g:dbc\x20azure\x20--type=mssql',a106m(0x188)]},async function(a,b){const n=a106m;try{const c=await this['fsi']['getMakaProjectConfig'](),d=this[n(0x16f)]['pathFromApp']({}),f=paramCase(b[n(0x18a)]),g={'name':pascalCase(b[n(0x18a)]),'fileName':paramCase(b[n(0x18a)]),'camelCase':camelCase(b['resourceName']),'type':b[n(0x198)],'engine':c['engines']['js'],'noRename':!![]};await this[n(0x16f)]['withValue'](c,async()=>{const o=n;let h='js';c['engines']['js']===o(0x180)&&(h='ts');b[o(0x198)]===o(0x17b)&&!this[o(0x16f)]['checkNpmPackage']('pg')&&(Log[o(0x174)](o(0x179)),await this[o(0x16f)][o(0x190)]('pg',{'cwd':d}));b['type']===o(0x19c)&&!this[o(0x16f)][o(0x18c)]('mssql')&&(Log['warn'](o(0x191)),await this[o(0x16f)][o(0x190)](o(0x19c),{'cwd':d}));b[o(0x198)]==='sqlite'&&!this['fsi']['checkNpmPackage'](o(0x177))&&(Log[o(0x174)](o(0x170)),await this[o(0x16f)][o(0x190)](o(0x177),{'cwd':d}));await this[o(0x16f)][o(0x19f)]({'srcPath':o(0x19a),'destPath':this[o(0x16f)][o(0x17d)]({'pathParts':[o(0x17f),o(0x178),o(0x18b),o(0x19b),b['dir'],f,o(0x199)+h]}),'context':g,'config':c}),await this[o(0x16f)][o(0x19f)]({'srcPath':o(0x172),'destPath':this[o(0x16f)]['pathFromApp']({'pathParts':[o(0x17f),o(0x178),o(0x18b),'dbc',b['dir'],f,o(0x18f)+h]}),'context':g,'config':c}),await this[o(0x16f)][o(0x19f)]({'srcPath':o(0x195),'destPath':this[o(0x16f)][o(0x17d)]({'pathParts':['imports',o(0x178),o(0x18b),o(0x182)+f+o(0x19d)+h]}),'context':g,'config':c});const i=this[o(0x16f)][o(0x17d)]({'pathParts':['imports',o(0x178),'server',o(0x193)+c[o(0x175)]['js']]});await this[o(0x16f)]['injectAtEndOfFile']({'filePath':i,'content':o(0x18e)+f+'-dbc\x27;'});});}catch(h){Log[n(0x183)](h);}});
@@ -1 +1 @@
1
- function a107c(){const k=['fsi','4253240DshAtE','Generate\x20an\x20updated\x20dockerfile','6062696GLdpOi','1cEpuUL','appName','template','service','cert','4730298QczkAS','maka\x20{generate,\x20g}:dockerfile','join','withValue','getGlobalConfig','constructor','dockerfile','docker/Dockerfile','8043cIeTaA','search','3mwbsyR','getMakaProjectConfig','22206deelhI','create','3510693wUcSbl','isFile','4072UyEdbE','toString','maka\x20g:dockerfile','220dDJubr','error','1268366IMobTn','Dockerfile'];a107c=function(){return k;};return a107c();}const a107h=a107d;(function(a,b){const f=a107d,c=a();while(!![]){try{const d=-parseInt(f(0x86))/0x1*(-parseInt(f(0x77))/0x2)+parseInt(f(0x75))/0x3*(-parseInt(f(0x85))/0x4)+-parseInt(f(0x83))/0x5+parseInt(f(0x6b))/0x6+-parseInt(f(0x73))/0x7*(parseInt(f(0x7b))/0x8)+parseInt(f(0x79))/0x9+-parseInt(f(0x7e))/0xa*(-parseInt(f(0x80))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xbd3dc));const a107b=(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;};}()),a107a=a107b(this,function(){const g=a107d;return a107a['toString']()[g(0x74)]('(((.+)+)+)+$')[g(0x7c)]()[g(0x70)](a107a)[g(0x74)]('(((.+)+)+)+$');});function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x69;let f=c[d];return f;},a107d(a,b);}a107a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a107e from'path';Generator[a107h(0x78)]({'name':a107h(0x71),'usage':a107h(0x6c),'shortDesc':a107h(0x84),'validOpts':[],'noNeedResource':!![],'examples':[a107h(0x7d)]},async function(){const i=a107h;try{const a=await this[i(0x82)][i(0x76)](),b=await this[i(0x82)][i(0x6f)](),c=this[i(0x82)]['findProjectDirectory']();await this[i(0x82)][i(0x6e)](a,async()=>{const j=i,d={'app':b[j(0x87)],'config':a,'appPath':a107e[j(0x6d)](c,'app'),'bundlePath':a107e[j(0x6d)](c,'build','app.tar.gz'),'useCert':this['fsi'][j(0x7a)](b[j(0x6a)])};await this[j(0x82)][j(0x88)]({'srcPath':j(0x72),'destPath':a107e[j(0x6d)](c,j(0x81)),'framework':j(0x69),'context':d,'config':a});});}catch(d){Log[i(0x7f)](d);}});
1
+ const a107i=a107d;(function(a,b){const f=a107d,c=a();while(!![]){try{const d=-parseInt(f(0x174))/0x1*(parseInt(f(0x169))/0x2)+parseInt(f(0x16f))/0x3+-parseInt(f(0x15d))/0x4*(parseInt(f(0x162))/0x5)+parseInt(f(0x17c))/0x6+parseInt(f(0x176))/0x7*(-parseInt(f(0x172))/0x8)+parseInt(f(0x165))/0x9*(-parseInt(f(0x161))/0xa)+-parseInt(f(0x160))/0xb*(-parseInt(f(0x177))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xf1573));function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x15d;let f=c[d];return f;},a107d(a,b);}const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a107d;if(c){const e=c[g(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const h=a107d;return a107a[h(0x17a)]()['search'](h(0x16c))['toString']()[h(0x166)](a107a)['search'](h(0x16c));});function a107c(){const l=['583zvrBUV','20RvnjCe','40930izoSay','getMakaProjectConfig','Generate\x20an\x20updated\x20dockerfile','3630699riMGoz','constructor','app.tar.gz','withValue','8446szhlYI','maka\x20g:dockerfile','dockerfile','(((.+)+)+)+$','template','build','3732822UiAZQy','docker/Dockerfile','cert','56PjEXrR','apply','323mHXuSd','isFile','1350335NZlGNi','816432ItkegF','fsi','Dockerfile','toString','service','5373726oxBmoi','604BussBm','join','findProjectDirectory'];a107c=function(){return l;};return a107c();}a107a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a107e from'path';Generator['create']({'name':a107i(0x16b),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a107i(0x164),'validOpts':[],'noNeedResource':!![],'examples':[a107i(0x16a)]},async function(){const j=a107i;try{const a=await this['fsi'][j(0x163)](),b=await this['fsi']['getGlobalConfig'](),c=this[j(0x178)][j(0x15f)]();await this['fsi'][j(0x168)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a107e['join'](c,'app'),'bundlePath':a107e[k(0x15e)](c,k(0x16e),k(0x167)),'useCert':this[k(0x178)][k(0x175)](b[k(0x171)])};await this[k(0x178)][k(0x16d)]({'srcPath':k(0x170),'destPath':a107e[k(0x15e)](c,k(0x179)),'framework':k(0x17b),'context':d,'config':a});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a108o=a108d;(function(a,b){const l=a108d,c=a();while(!![]){try{const d=parseInt(l(0x1cb))/0x1+-parseInt(l(0x1d9))/0x2+-parseInt(l(0x1e9))/0x3+parseInt(l(0x1cc))/0x4*(parseInt(l(0x1f5))/0x5)+parseInt(l(0x1ec))/0x6*(-parseInt(l(0x1f6))/0x7)+-parseInt(l(0x1f9))/0x8*(parseInt(l(0x201))/0x9)+parseInt(l(0x1cf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x799a7));function a108c(){const r=['create','error','295362JvCmVt','withTranslations','fileName','18VwkxOl','template/template.css','installNpmPackage','withValue','assign','cssCaseName','components','fsi','react','829385AXRAeN','477904lWXTLM','injectAtBeginningOfFile','warn','354912QUEtVI','force','graphql','hook/hook.js','template','relative','true','test','171CbfxVp','/imports/ui/','notice','engines','@apollo/client','checkNpmPackage','setTemplate','theme','layouts','baseDir','955855RrTzyw','4iXRpWj','.css','dir','8564620hUgdkk','\x20hook...','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','.js','css','toString','test/test.js','import\x20\x27./','resourceName','injectTemplateModule','667842NSxACI','string','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','/imports/ui/hooks','pages','pathFromProject','apply','(((.+)+)+)+$','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','getMakaProjectConfig','pathFromApp','hook','features','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator'];a108c=function(){return r;};return a108c();}function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a108d(a,b);}const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a108d;if(c){const e=c[m(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const n=a108d;return a108a[n(0x1d4)]()['search'](n(0x1e0))[n(0x1d4)]()['constructor'](a108a)['search'](n(0x1e0));});a108a();import a108e 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';Generator[a108o(0x1e7)]({'name':a108o(0x1e4),'aliases':['h'],'checkWhere':![],'usage':a108o(0x1db),'shortDesc':a108o(0x1e1),'validOpts':[{'name':a108o(0x1ca),'values':['hooks',a108o(0x1f2),a108o(0x1dd),a108o(0x1c9)]},{'name':a108o(0x1fa),'boolFlag':!![]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':'\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20'},async function(a,b){const p=a108o;Log[p(0x203)]('Creating\x20'+b[p(0x1d7)]+p(0x1d0));try{const c=this[p(0x1f3)][p(0x1c6)](p(0x1f4));if(!c){Log['error'](p(0x1e6));throw new UsageError();}const d=this[p(0x1f3)][p(0x1e3)](b),f=b[p(0x1ca)]?p(0x202)+b[p(0x1ca)]:p(0x1dc),g=this[p(0x1f3)]['pathFromApp']({'pathParts':[f,b[p(0x1ce)],paramCase(b[p(0x1d7)]),paramCase(b['resourceName'])]}),h=await this[p(0x1f3)][p(0x1e2)]();await this['fsi'][p(0x1ef)](h,async()=>{const q=p;typeof h[q(0x1fd)][q(0x1d3)]===q(0x1da)&&(h['template'][q(0x1d3)]=h['template']['css']===q(0x1ff)?!![]:![],this['fsi'][q(0x1c7)](q(0x1d3),h[q(0x1fd)][q(0x1d3)]));h[q(0x204)][q(0x1fb)]==='apollo'&&!this['fsi'][q(0x1c6)](q(0x1c5))&&(Log[q(0x1f8)](q(0x1d1)),await this[q(0x1f3)][q(0x1ee)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0x1d7)]),'camelCaseName':camelCase(b[q(0x1d7)]),'className':pascalCase(b[q(0x1d7)]),'name':pascalCase(b[q(0x1d7)]),'graphql':h[q(0x204)][q(0x1fb)],'theme':h['engines'][q(0x1c8)],'features':h[q(0x1e5)],'myPath':a108e[q(0x1fe)](this[q(0x1f3)][q(0x1de)]({}),g),'fileName':paramCase(b[q(0x1d7)]),'isComponent':![],'isLayout':![],'withTranslations':h[q(0x1e5)][q(0x1ea)]};await this[q(0x1f3)]['template']({'srcPath':q(0x1fc),'destPath':g+q(0x1d2),'context':i,'config':h,'framework':q(0x1f4),'force':b[q(0x1fa)]});h[q(0x1fd)][q(0x1d3)]&&(await this[q(0x1f3)][q(0x1fd)]({'srcPath':q(0x1ed),'destPath':g+q(0x1cd),'context':Object[q(0x1f0)]({},i,{'className':i[q(0x1f1)]}),'config':h,'force':b[q(0x1fa)]}),await this[q(0x1f3)][q(0x1f7)]({'filePath':g+'.'+h[q(0x204)]['js'],'content':q(0x1d6)+i['fileName']+'.'+h[q(0x204)][q(0x1d3)]+'\x27;'}));h['engines'][q(0x200)]!=='none'&&await this['fsi'][q(0x1fd)]({'srcPath':q(0x1d5),'destPath':g+'.app-tests.js','framework':'react','context':i,'config':h,'force':b['force']});const j=b[q(0x1ce)]?'/'+b[q(0x1ce)]+'/':'/',k=''+f+j+i[q(0x1eb)]+'/'+i[q(0x1eb)];await this[q(0x1f3)][q(0x1d8)](i['className'],h,k);});}catch(i){Log[p(0x1e8)](i);}});
1
+ const a108o=a108d;function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xb6;let f=c[d];return f;},a108d(a,b);}(function(a,b){const l=a108d,c=a();while(!![]){try{const d=-parseInt(l(0xc7))/0x1*(-parseInt(l(0xbc))/0x2)+-parseInt(l(0xd4))/0x3*(parseInt(l(0xe4))/0x4)+parseInt(l(0xdf))/0x5*(-parseInt(l(0xee))/0x6)+parseInt(l(0xf0))/0x7+parseInt(l(0xd7))/0x8+-parseInt(l(0xc5))/0x9+-parseInt(l(0xc9))/0xa*(-parseInt(l(0xbe))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x32dcd));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a108d;if(c){const e=c[m(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const n=a108d;return a108a[n(0xe1)]()[n(0xb8)](n(0xdb))[n(0xe1)]()[n(0xba)](a108a)[n(0xb8)](n(0xdb));});function a108c(){const r=['setTemplate','.js','template/template.css','installNpmPackage','baseDir','1153395nUepYi','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','192792xVVOEV','template','100HEeEnT','features','graphql','warn','apollo','resourceName','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','none','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','assign','test/test.js','3nHjXvf','react','force','1416544OAZHKN','dir','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','@apollo/client','(((.+)+)+)+$','true','css','test','15TbINov','withTranslations','toString','apply','error','1653636tRQvFl','create','withValue','hooks','hook/hook.js','injectTemplateModule','maka\x20g:hook\x20cool-hook','checkNpmPackage','notice','pathFromApp','546906JydcKN','fileName','150416ptpLGu','string','cssCaseName','Creating\x20','.css','theme','/imports/ui/','search','components','constructor','fsi','4TXscGq','import\x20\x27./','483131SPBBzx','engines'];a108c=function(){return r;};return a108c();}a108a();import a108e 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';Generator[a108o(0xe5)]({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a108o(0xd1),'shortDesc':a108o(0xc6),'validOpts':[{'name':a108o(0xc4),'values':[a108o(0xe7),a108o(0xb9),'pages','layouts']},{'name':a108o(0xd6),'boolFlag':!![]}],'examples':[a108o(0xea)],'description':a108o(0xcf)},async function(a,b){const p=a108o;Log[p(0xec)](p(0xf3)+b[p(0xce)]+'\x20hook...');try{const c=this[p(0xbb)][p(0xeb)](p(0xd5));if(!c){Log['error'](p(0xd9));throw new UsageError();}const d=this[p(0xbb)][p(0xed)](b),f=b[p(0xc4)]?p(0xb7)+b[p(0xc4)]:'/imports/ui/hooks',g=this[p(0xbb)][p(0xed)]({'pathParts':[f,b[p(0xd8)],paramCase(b[p(0xce)]),paramCase(b[p(0xce)])]}),h=await this[p(0xbb)]['getMakaProjectConfig']();await this['fsi'][p(0xe6)](h,async()=>{const q=p;typeof h[q(0xc8)][q(0xdd)]===q(0xf1)&&(h['template'][q(0xdd)]=h[q(0xc8)][q(0xdd)]===q(0xdc)?!![]:![],this[q(0xbb)][q(0xc0)](q(0xdd),h[q(0xc8)][q(0xdd)]));h[q(0xbf)][q(0xcb)]===q(0xcd)&&!this[q(0xbb)][q(0xeb)](q(0xda))&&(Log[q(0xcc)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[q(0xbb)][q(0xc3)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'camelCaseName':camelCase(b[q(0xce)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b['resourceName']),'graphql':h[q(0xbf)]['graphql'],'theme':h[q(0xbf)][q(0xb6)],'features':h['features'],'myPath':a108e['relative'](this['fsi']['pathFromProject']({}),g),'fileName':paramCase(b[q(0xce)]),'isComponent':![],'isLayout':![],'withTranslations':h[q(0xca)][q(0xe0)]};await this['fsi'][q(0xc8)]({'srcPath':q(0xe8),'destPath':g+q(0xc1),'context':i,'config':h,'framework':'react','force':b['force']});h[q(0xc8)][q(0xdd)]&&(await this[q(0xbb)][q(0xc8)]({'srcPath':q(0xc2),'destPath':g+q(0xf4),'context':Object[q(0xd2)]({},i,{'className':i[q(0xf2)]}),'config':h,'force':b[q(0xd6)]}),await this[q(0xbb)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[q(0xbf)]['js'],'content':q(0xbd)+i[q(0xef)]+'.'+h[q(0xbf)]['css']+'\x27;'}));h[q(0xbf)][q(0xde)]!==q(0xd0)&&await this[q(0xbb)]['template']({'srcPath':q(0xd3),'destPath':g+'.app-tests.js','framework':q(0xd5),'context':i,'config':h,'force':b['force']});const j=b[q(0xd8)]?'/'+b[q(0xd8)]+'/':'/',k=''+f+j+i[q(0xef)]+'/'+i[q(0xef)];await this[q(0xbb)][q(0xe9)](i['className'],h,k);});}catch(i){Log[p(0xe3)](i);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a109d,c=a();while(!![]){try{var d=parseInt(f(0xb0))/0x1*(parseInt(f(0xa6))/0x2)+parseInt(f(0xa8))/0x3*(parseInt(f(0xb1))/0x4)+-parseInt(f(0xac))/0x5+parseInt(f(0xad))/0x6+-parseInt(f(0xa5))/0x7+parseInt(f(0xa3))/0x8+parseInt(f(0xaf))/0x9*(-parseInt(f(0xa7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xd4d10));var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0xab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a['toString']()[h(0xa4)](h(0xaa))[h(0xae)]()[h(0xa9)](a109a)[h(0xa4)]('(((.+)+)+)+$');});function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0xa3;var f=c[d];return f;},a109d(a,b);}a109a();import'./kit.js';function a109c(){var i=['8400635figYuG','8970744NlTwCB','toString','5216499jkUUrh','13IAchUu','4vOkoww','4388272ctPXUx','search','6612473AUfiZV','162188MGeSrW','10ntEmIO','2934579sNqRfX','constructor','(((.+)+)+)+$','apply'];a109c=function(){return i;};return a109c();}import'./mui/_index.js';import'./esri/_index.js';
1
+ function a109c(){var i=['3270bznUaH','(((.+)+)+)+$','47558bHuRRB','constructor','3075468AMdwYV','1288sxSGLq','1779650aCgTEk','2649682xXGURU','search','toString','4088316NIStAT','32AzASvm','511185SZYhcy','apply','137205LUJDbz'];a109c=function(){return i;};return a109c();}(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(0x1dc))/0x1+parseInt(f(0x1dd))/0x2+-parseInt(f(0x1da))/0x3+-parseInt(f(0x1d2))/0x4*(parseInt(f(0x1d3))/0x5)+-parseInt(f(0x1d1))/0x6+-parseInt(f(0x1d8))/0x7*(parseInt(f(0x1db))/0x8)+parseInt(f(0x1d5))/0x9*(parseInt(f(0x1d6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xdeaa2));function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0x1d0;var f=c[d];return f;},a109d(a,b);}var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a[h(0x1d0)]()[h(0x1de)](h(0x1d7))[h(0x1d0)]()[h(0x1d9)](a109a)[h(0x1de)](h(0x1d7));});a109a();import'./kit.js';import'./mui/_index.js';import'./esri/_index.js';
@@ -1 +1 @@
1
- (function(a,b){var f=a110d,c=a();while(!![]){try{var d=parseInt(f(0x12b))/0x1+-parseInt(f(0x12a))/0x2*(-parseInt(f(0x12e))/0x3)+-parseInt(f(0x126))/0x4*(parseInt(f(0x130))/0x5)+-parseInt(f(0x125))/0x6*(parseInt(f(0x128))/0x7)+-parseInt(f(0x12f))/0x8*(-parseInt(f(0x132))/0x9)+parseInt(f(0x12d))/0xa*(-parseInt(f(0x133))/0xb)+parseInt(f(0x12c))/0xc*(parseInt(f(0x127))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xa227b));var a110b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){var g=a110d;return a110a[g(0x124)]()[g(0x129)]('(((.+)+)+)+$')[g(0x124)]()[g(0x131)](a110a)[g(0x129)](g(0x134));});a110a();function a110c(){var h=['10qHkxyq','3eMObdy','512056mWMXWE','35pDnuXz','constructor','171PWmehM','10079267yWhkCW','(((.+)+)+)+$','toString','6648732OizJqi','157772uBsCSy','4397055Elxuxa','7JlaBpd','search','1886154XrfcSw','129027udehHe','24WngJly'];a110c=function(){return h;};return a110c();}function a110d(a,b){var c=a110c();return a110d=function(d,e){d=d-0x124;var f=c[d];return f;},a110d(a,b);}import'./esri.generator.js';import'./map.esri.gen.js';
1
+ function a110c(){var i=['(((.+)+)+)+$','47970CWRKaa','search','8494155vAvDEg','toString','3alxmMx','3257408uynOEf','8956724IhuCCz','565FTEUhG','1686809dPZbVa','constructor','4106156eWPqko','1616992eIoVwO','apply'];a110c=function(){return i;};return a110c();}(function(a,b){var f=a110d,c=a();while(!![]){try{var d=parseInt(f(0x88))/0x1+parseInt(f(0x85))/0x2+-parseInt(f(0x84))/0x3*(parseInt(f(0x8a))/0x4)+-parseInt(f(0x87))/0x5*(parseInt(f(0x80))/0x6)+-parseInt(f(0x86))/0x7+-parseInt(f(0x8b))/0x8+parseInt(f(0x82))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xcef3e));var a110b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a110d;if(c){var e=c[g(0x8c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){var h=a110d;return a110a[h(0x83)]()[h(0x81)](h(0x8d))[h(0x83)]()[h(0x89)](a110a)['search'](h(0x8d));});a110a();function a110d(a,b){var c=a110c();return a110d=function(d,e){d=d-0x80;var f=c[d];return f;},a110d(a,b);}import'./esri.generator.js';import'./map.esri.gen.js';
@@ -1 +1 @@
1
- const a111i=a111d;(function(a,b){const f=a111d,c=a();while(!![]){try{const d=-parseInt(f(0xe8))/0x1+parseInt(f(0xef))/0x2*(-parseInt(f(0xf8))/0x3)+-parseInt(f(0xfb))/0x4+-parseInt(f(0xf1))/0x5*(-parseInt(f(0xea))/0x6)+-parseInt(f(0xf0))/0x7*(parseInt(f(0xee))/0x8)+parseInt(f(0xf7))/0x9+parseInt(f(0xe7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x4cb78));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a111d;if(c){const e=c[g(0xfa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const h=a111d;return a111a[h(0xf9)]()[h(0xec)]('(((.+)+)+)+$')[h(0xf9)]()[h(0xf6)](a111a)[h(0xec)](h(0xf3));});a111a();import{Generator}from'../../../generator.js';function a111c(){const k=['276525jlJMLo','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','6yAfWqN','esri','search','Esri\x20Kit\x20generated\x20successfully','8qQsFkU','1249198QLcYyf','1265243GfNCoB','928900jaIfyK','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','(((.+)+)+)+$','\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20kit\x20for\x20Esri\x20Maps.\x20Starting\x20with\x20a\x20basic\x20map,\x0a\x20\x20\x20\x20but\x20with\x20the\x20ability\x20to\x20add\x20more\x20components\x20to\x20the\x20kit.\x0a\x20\x20','/foo/bar','constructor','5239728QygKlD','3AgJnkQ','toString','apply','505912wqnOxl','7546110KTEqQn'];a111c=function(){return k;};return a111c();}import a111e from'../kit.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0xe7;let f=c[d];return f;},a111d(a,b);}const EsriGen=Generator['create']({'name':a111i(0xeb),'aliases':['e'],'usage':a111i(0xe9),'noNeedResource':!![],'shortDesc':a111i(0xf2),'validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:e'],'description':a111i(0xf4)},async function(){const j=a111i;return{'success':!![],'message':j(0xed),'details':{'filesCreated':[j(0xf5)],'filesUpdated':['/foo']}};},async function(){},a111e);export default EsriGen;
1
+ function a111c(){const k=['toString','8cpagsf','516sBUaCH','607100OoYXbt','search','6QraecR','create','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','8824572qnJerE','esri','(((.+)+)+)+$','/foo','Esri\x20Kit\x20generated\x20successfully','2252511mozoQU','maka\x20g:kit:e','499842ZDnnYC','\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20kit\x20for\x20Esri\x20Maps.\x20Starting\x20with\x20a\x20basic\x20map,\x0a\x20\x20\x20\x20but\x20with\x20the\x20ability\x20to\x20add\x20more\x20components\x20to\x20the\x20kit.\x0a\x20\x20','apply','428481nlFJrB','70651caFAVI','55IVTEKT','19010LZelwB','/foo/bar','6WOYQfE'];a111c=function(){return k;};return a111c();}const a111i=a111d;(function(a,b){const f=a111d,c=a();while(!![]){try{const d=-parseInt(f(0x1c1))/0x1+-parseInt(f(0x1cf))/0x2*(parseInt(f(0x1c4))/0x3)+parseInt(f(0x1cc))/0x4*(parseInt(f(0x1c7))/0x5)+parseInt(f(0x1c9))/0x6*(parseInt(f(0x1c5))/0x7)+parseInt(f(0x1cb))/0x8*(parseInt(f(0x1d7))/0x9)+-parseInt(f(0x1cd))/0xa*(parseInt(f(0x1c6))/0xb)+parseInt(f(0x1d2))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x3e182));function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1c0;let f=c[d];return f;},a111d(a,b);}const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a111d;if(c){const e=c[g(0x1c3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const h=a111d;return a111a['toString']()['search'](h(0x1d4))[h(0x1ca)]()['constructor'](a111a)[h(0x1ce)](h(0x1d4));});a111a();import{Generator}from'../../../generator.js';import a111e from'../kit.js';const EsriGen=Generator[a111i(0x1d0)]({'name':a111i(0x1d3),'aliases':['e'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','noNeedResource':!![],'shortDesc':a111i(0x1d1),'validOpts':[''],'isPro':!![],'examples':[a111i(0x1c0)],'description':a111i(0x1c2)},async function(){const j=a111i;return{'success':!![],'message':j(0x1d6),'details':{'filesCreated':[j(0x1c8)],'filesUpdated':[j(0x1d5)]}};},async function(){},a111e);export default EsriGen;
@@ -1 +1 @@
1
- const a112s=a112d;(function(a,b){const p=a112d,c=a();while(!![]){try{const d=-parseInt(p(0x100))/0x1*(-parseInt(p(0xe0))/0x2)+-parseInt(p(0xde))/0x3*(parseInt(p(0xe9))/0x4)+parseInt(p(0xef))/0x5*(-parseInt(p(0xfa))/0x6)+parseInt(p(0xf2))/0x7*(-parseInt(p(0xd4))/0x8)+parseInt(p(0xe7))/0x9+parseInt(p(0xd8))/0xa*(parseInt(p(0xdd))/0xb)+-parseInt(p(0xff))/0xc*(-parseInt(p(0xdc))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x4bb4f));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a112d;if(c){const e=c[q(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const r=a112d;return a112a[r(0xf4)]()[r(0xe3)]('(((.+)+)+)+$')[r(0xf4)]()[r(0xfc)](a112a)[r(0xe3)](r(0xf3));});a112a();function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xd2;let f=c[d];return f;},a112d(a,b);}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';function a112c(){const v=['(((.+)+)+)+$','toString','getMakaProjectConfig','processAndRunGenerator','injectIntoFile','/imports/ui/','@esri/react-arcgis','213138QdFuWi','page','constructor','\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20map\x20component\x20in\x20the\x20/imports/ui/hooks\x20directory.\x0a\x0a\x20\x20\x20\x20It\x27ll\x20also\x20create\x20a\x20page\x20component\x20in\x20the\x20/imports/ui/pages/map\x20directory.\x0a\x0a\x20\x20\x20\x20The\x20map\x20component\x20will\x20be\x20named\x20\x27BasicMap\x27\x20by\x20default.\x0a\x0a\x20\x20','baseDir','12NYzubp','36431vpKilh','findProjectDirectory','true','checkNpmPackage','injectImport','fsi','exit','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','ssr','34856VVCuZz','error','apply','create','174670kgqHRT','/imports/startup/client/templates','template','pathFromApp','10697349MQGdmL','319hWmtOR','1344495gMdRVv','withValue','2UEUrTZ','<div\x20id=\x22map-hook\x22>','/imports/startup/lib/templates','search','Generate\x20an\x20Esri\x20map\x20component','dir','esri-loader','4699503BJxVvH','replaceAll','4aTjRRw','split','map','injectTemplateModule','.js','kit/esri/map/','75wZuaPv','engines','bright','959nVKppr'];a112c=function(){return v;};return a112c();}import a112e from'./esri.generator.js';import a112f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a112s(0xd7)]({'name':a112s(0xeb),'aliases':['m'],'usage':a112s(0xd2),'shortDesc':a112s(0xe4),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines['REACT'],'ssr':SsrEngines['FALSE']},'description':a112s(0xfd)},async function(a,b){const t=a112s;try{Log[t(0xf1)]('Generating\x20a\x20map\x20component');const c='basic-map';await this['fsi'][t(0x103)]([t(0xf9),t(0xe6)],{'shouldInstall':!![]});const d=this[t(0x105)][t(0x101)](),f=this[t(0x105)][t(0xf5)](),g=f[t(0xf0)][t(0xd3)]===t(0x102),h=await a112f[t(0xf6)](t(0xfb),[t(0xeb)],{'cwd':d,'config':f}),i={'name':headerCase(f['appName'])[t(0xe8)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0xfe)]?t(0xf8)+b[t(0xfe)]:'/imports/ui/hooks',k=this['fsi'][t(0xdb)]({'pathParts':[j,b[t(0xe5)],paramCase(c),paramCase(c)]});this[t(0x105)][t(0xdf)](f,async()=>{const u=t;this['fsi'][u(0xda)]({'srcPath':u(0xee)+c+u(0xed),'destPath':k+u(0xed),'framework':'react','context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0xe5)]+'/'+c+'/'+c;await this[t(0x105)][t(0xec)](c,f,l);const m=h[t(0xea)]('/'),n=this['fsi']['pathFromApp']({'pathParts':m});await this[t(0x105)][t(0x104)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?t(0xe2):t(0xd9),'isNamedExport':!![]}),await this[t(0x105)][t(0xf7)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+'\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','begin':[t(0xe1),'<div\x20id=\x22map-component\x22>'],'end':['</div>'],'replace':!![]});}catch(o){Log[t(0xd5)](o),process[t(0x106)](0x1);}},async function(){},a112e);
1
+ const a112s=a112d;(function(a,b){const p=a112d,c=a();while(!![]){try{const d=parseInt(p(0x170))/0x1+-parseInt(p(0x171))/0x2*(-parseInt(p(0x164))/0x3)+-parseInt(p(0x15a))/0x4*(-parseInt(p(0x159))/0x5)+parseInt(p(0x174))/0x6*(-parseInt(p(0x14b))/0x7)+-parseInt(p(0x15b))/0x8+-parseInt(p(0x149))/0x9*(-parseInt(p(0x14f))/0xa)+-parseInt(p(0x160))/0xb*(parseInt(p(0x16f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xc49a0));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a112d;if(c){const e=c[q(0x14e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const r=a112d;return a112a['toString']()['search']('(((.+)+)+)+$')[r(0x16a)]()[r(0x175)](a112a)[r(0x14c)]('(((.+)+)+)+$');});a112a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x147;let f=c[d];return f;},a112d(a,b);}import a112e from'./esri.generator.js';function a112c(){const v=['166418wfnMdM','search','esri-loader','apply','670CkAMYO','baseDir','dir','page','getMakaProjectConfig','</div>','/imports/ui/','react','map','processAndRunGenerator','14635pvPole','2092fesOqs','9670240Zzvaht','create','injectIntoFile','engines','split','22zWglJA','<div\x20id=\x22map-component\x22>','.js','true','363VnSbMD','injectImport','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','injectTemplateModule','fsi','error','toString','bright','REACT','template','Generate\x20an\x20Esri\x20map\x20component','4982268qKhfGh','187152ppgLIF','23794nmPzLM','<div\x20id=\x22map-hook\x22>','@esri/react-arcgis','120AIBiRT','constructor','/imports/startup/lib/templates','FALSE','withValue','exit','pathFromApp','replaceAll','21816UVmcfY','checkNpmPackage'];a112c=function(){return v;};return a112c();}import a112f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a112s(0x15c)]({'name':a112s(0x157),'aliases':['m'],'usage':a112s(0x166),'shortDesc':a112s(0x16e),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a112s(0x16c)],'ssr':SsrEngines[a112s(0x177)]},'description':'\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20map\x20component\x20in\x20the\x20/imports/ui/hooks\x20directory.\x0a\x0a\x20\x20\x20\x20It\x27ll\x20also\x20create\x20a\x20page\x20component\x20in\x20the\x20/imports/ui/pages/map\x20directory.\x0a\x0a\x20\x20\x20\x20The\x20map\x20component\x20will\x20be\x20named\x20\x27BasicMap\x27\x20by\x20default.\x0a\x0a\x20\x20'},async function(a,b){const t=a112s;try{Log[t(0x16b)]('Generating\x20a\x20map\x20component');const c='basic-map';await this[t(0x168)][t(0x14a)]([t(0x173),t(0x14d)],{'shouldInstall':!![]});const d=this[t(0x168)]['findProjectDirectory'](),f=this[t(0x168)][t(0x153)](),g=f[t(0x15e)]['ssr']===t(0x163),h=await a112f[t(0x158)](t(0x152),[t(0x157)],{'cwd':d,'config':f}),i={'name':headerCase(f['appName'])[t(0x148)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0x150)]?t(0x155)+b['baseDir']:'/imports/ui/hooks',k=this[t(0x168)][t(0x147)]({'pathParts':[j,b[t(0x151)],paramCase(c),paramCase(c)]});this[t(0x168)][t(0x178)](f,async()=>{const u=t;this['fsi'][u(0x16d)]({'srcPath':'kit/esri/map/'+c+'.js','destPath':k+u(0x162),'framework':u(0x156),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0x151)]+'/'+c+'/'+c;await this['fsi'][t(0x167)](c,f,l);const m=h[t(0x15f)]('/'),n=this['fsi'][t(0x147)]({'pathParts':m});await this[t(0x168)][t(0x165)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?t(0x176):'/imports/startup/client/templates','isNamedExport':!![]}),await this[t(0x168)][t(0x15d)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+'\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','begin':[t(0x172),t(0x161)],'end':[t(0x154)],'replace':!![]});}catch(o){Log[t(0x169)](o),process[t(0x179)](0x1);}},async function(){},a112e);
@@ -1 +1 @@
1
- function a113c(){const j=['maka\x20g:kit','9fUFPVq','4gscCze','5596269FTVepo','12OlJwkh','1582815CkTxUW','183403bIREMu','kit','2926116xhlnBw','(((.+)+)+)+$','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','325162drADzo','104670nAdxvU','create','constructor','apply','9484208SDcEMf','290PPMZmI','toString','maka\x20{generate,\x20g}:{kit}\x20<name>','search'];a113c=function(){return j;};return a113c();}const a113i=a113d;(function(a,b){const f=a113d,c=a();while(!![]){try{const d=parseInt(f(0xd6))/0x1+-parseInt(f(0xcd))/0x2*(parseInt(f(0xd0))/0x3)+parseInt(f(0xd3))/0x4+parseInt(f(0xd7))/0x5+parseInt(f(0xcf))/0x6*(parseInt(f(0xce))/0x7)+parseInt(f(0xdb))/0x8*(-parseInt(f(0xe1))/0x9)+parseInt(f(0xdc))/0xa*(parseInt(f(0xd1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xe072c));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a113d;if(c){const e=c[g(0xda)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const h=a113d;return a113a[h(0xdd)]()[h(0xdf)](h(0xd4))[h(0xdd)]()[h(0xd9)](a113a)['search'](h(0xd4));});a113a();function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xcd;let f=c[d];return f;},a113d(a,b);}import{Generator}from'../../generator.js';const KitGen=Generator[a113i(0xd8)]({'name':a113i(0xd2),'aliases':['k'],'usage':a113i(0xde),'shortDesc':a113i(0xd5),'minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':[a113i(0xe0),'maka\x20g:k']},async function(){});export default KitGen;
1
+ const a113h=a113d;(function(a,b){const f=a113d,c=a();while(!![]){try{const d=parseInt(f(0xe0))/0x1*(parseInt(f(0xe1))/0x2)+parseInt(f(0xe9))/0x3+parseInt(f(0xe3))/0x4*(-parseInt(f(0xeb))/0x5)+parseInt(f(0xdd))/0x6*(parseInt(f(0xe8))/0x7)+parseInt(f(0xe6))/0x8+parseInt(f(0xda))/0x9+-parseInt(f(0xdc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xbe5e7));const a113b=(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;};}()),a113a=a113b(this,function(){const g=a113d;return a113a[g(0xdb)]()[g(0xe4)](g(0xdf))[g(0xdb)]()[g(0xea)](a113a)[g(0xe4)](g(0xdf));});a113a();function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xda;let f=c[d];return f;},a113d(a,b);}import{Generator}from'../../generator.js';function a113c(){const i=['7675760pDHiNh','maka\x20{generate,\x20g}:{kit}\x20<name>','7581PiXqEy','633549zFcCDT','constructor','590rPsHTz','3526713pjvtVD','toString','11316170kMpuYg','1314SwcHbx','kit','(((.+)+)+)+$','1sNAaQy','2580766phOaSM','create','39956CnObik','search','maka\x20g:kit'];a113c=function(){return i;};return a113c();}const KitGen=Generator[a113h(0xe2)]({'name':a113h(0xde),'aliases':['k'],'usage':a113h(0xe7),'shortDesc':'Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':[a113h(0xe5),'maka\x20g:k']},async function(){});export default KitGen;
@@ -1 +1 @@
1
- (function(a,b){var f=a114d,c=a();while(!![]){try{var d=parseInt(f(0x153))/0x1+parseInt(f(0x149))/0x2*(-parseInt(f(0x150))/0x3)+parseInt(f(0x152))/0x4*(parseInt(f(0x154))/0x5)+-parseInt(f(0x148))/0x6+parseInt(f(0x151))/0x7+parseInt(f(0x14f))/0x8*(parseInt(f(0x14e))/0x9)+-parseInt(f(0x14a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x4d289));var a114b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a114d;if(c){var e=c[g(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){var h=a114d;return a114a[h(0x14c)]()[h(0x156)](h(0x14b))[h(0x14c)]()[h(0x14d)](a114a)['search'](h(0x14b));});a114a();import'./mui.generator.js';import'./frame.mui.gen.js';function a114d(a,b){var c=a114c();return a114d=function(d,e){d=d-0x148;var f=c[d];return f;},a114d(a,b);}function a114c(){var i=['constructor','81RJQOBE','509072ATVWbR','1471677yRlggJ','3632069yrsRSx','8ufodza','222327VDeAPx','80220ZKdRrW','apply','search','1407348RUUbNi','2KXNibe','3048300hXeueM','(((.+)+)+)+$','toString'];a114c=function(){return i;};return a114c();}
1
+ function a114d(a,b){var c=a114c();return a114d=function(d,e){d=d-0x8a;var f=c[d];return f;},a114d(a,b);}(function(a,b){var f=a114d,c=a();while(!![]){try{var d=-parseInt(f(0x90))/0x1*(parseInt(f(0x98))/0x2)+-parseInt(f(0x9a))/0x3*(-parseInt(f(0x94))/0x4)+-parseInt(f(0x8a))/0x5*(parseInt(f(0x91))/0x6)+parseInt(f(0x92))/0x7*(parseInt(f(0x8b))/0x8)+parseInt(f(0x8d))/0x9+-parseInt(f(0x93))/0xa*(parseInt(f(0x8f))/0xb)+parseInt(f(0x97))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x2eb82));function a114c(){var i=['3eZfFej','13170aknjqh','392xgdSYe','constructor','1929978xfOdCH','(((.+)+)+)+$','77rQundv','23631ZBKnQS','360PMjBmV','3101UyeGsY','288380hHWMxn','282652FVgWOi','search','toString','3784188RptmQG','6scrrIf','apply'];a114c=function(){return i;};return a114c();}var a114b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a114d;if(c){var e=c[g(0x99)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){var h=a114d;return a114a['toString']()[h(0x95)](h(0x8e))[h(0x96)]()[h(0x8c)](a114a)['search'](h(0x8e));});a114a();import'./mui.generator.js';import'./frame.mui.gen.js';