@maka/maka-cli 5.0.31 → 5.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/profile.js +1 -1
  87. package/bundle/obf/src/commands/proxy.js +1 -1
  88. package/bundle/obf/src/commands/reconfig.js +1 -1
  89. package/bundle/obf/src/commands/register.js +1 -1
  90. package/bundle/obf/src/commands/run/_index.js +1 -1
  91. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/run/run.command.js +1 -1
  93. package/bundle/obf/src/commands/set/_index.js +1 -1
  94. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  95. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/set.command.js +1 -1
  97. package/bundle/obf/src/commands/ssh.js +1 -1
  98. package/bundle/obf/src/commands/ssl.js +1 -1
  99. package/bundle/obf/src/commands/test.js +1 -1
  100. package/bundle/obf/src/commands/undo.js +1 -1
  101. package/bundle/obf/src/commands/version.js +1 -1
  102. package/bundle/obf/src/error.js +1 -1
  103. package/bundle/obf/src/exec.js +1 -1
  104. package/bundle/obf/src/generator.js +1 -1
  105. package/bundle/obf/src/generators/_index.js +1 -1
  106. package/bundle/obf/src/generators/api.js +1 -1
  107. package/bundle/obf/src/generators/aws/_index.js +1 -1
  108. package/bundle/obf/src/generators/aws/aws.js +1 -1
  109. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  112. package/bundle/obf/src/generators/collection.js +1 -1
  113. package/bundle/obf/src/generators/component.js +1 -1
  114. package/bundle/obf/src/generators/config.js +1 -1
  115. package/bundle/obf/src/generators/dbc.js +1 -1
  116. package/bundle/obf/src/generators/dockerfile.js +1 -1
  117. package/bundle/obf/src/generators/hook.js +1 -1
  118. package/bundle/obf/src/generators/kits/_index.js +1 -1
  119. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/kit.js +1 -1
  127. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  131. package/bundle/obf/src/generators/layout.js +1 -1
  132. package/bundle/obf/src/generators/maka.gen.js +1 -1
  133. package/bundle/obf/src/generators/methods.js +1 -1
  134. package/bundle/obf/src/generators/package.js +1 -1
  135. package/bundle/obf/src/generators/page.js +1 -1
  136. package/bundle/obf/src/generators/publish.js +1 -1
  137. package/bundle/obf/src/generators/route.js +1 -1
  138. package/bundle/obf/src/generators/service.js +1 -1
  139. package/bundle/obf/src/generators/services/_index.js +1 -1
  140. package/bundle/obf/src/generators/services/openssl.js +1 -1
  141. package/bundle/obf/src/generators/services/translation.js +1 -1
  142. package/bundle/obf/src/maka.js +1 -1
  143. package/bundle/obf/src/templates/service/eslint/babelrc +16 -1
  144. package/bundle/obf/src/templates/service/eslint/config.eslint.js +29 -33
  145. package/bundle/obf/src/tool.js +1 -1
  146. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  147. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  148. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  149. package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
  150. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  151. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  153. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  154. package/bundle/obf/src/tools/https/https.class.js +1 -1
  155. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  156. package/bundle/obf/src/tools/log/log.class.js +1 -1
  157. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  158. package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
  159. package/bundle/obf/src/tools/options/options.class.js +1 -1
  160. package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
  161. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  162. package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
  163. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  164. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  165. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  166. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  167. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  168. package/package.json +1 -1
@@ -1 +1 @@
1
- const a159z=a159d;(function(a,b){const v=a159d,c=a();while(!![]){try{const d=parseInt(v(0xf7))/0x1*(-parseInt(v(0x11a))/0x2)+-parseInt(v(0x12e))/0x3*(-parseInt(v(0x109))/0x4)+parseInt(v(0xd4))/0x5*(-parseInt(v(0xe2))/0x6)+parseInt(v(0x163))/0x7+parseInt(v(0xef))/0x8+-parseInt(v(0x124))/0x9*(parseInt(v(0xe3))/0xa)+parseInt(v(0x130))/0xb*(parseInt(v(0x139))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0xc7777));const a159b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a159d;if(c){const e=c[w(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){const x=a159d;return a159a[x(0xfd)]()[x(0x127)](x(0x102))[x(0xfd)]()[x(0x13d)](a159a)[x(0x127)](x(0x102));});a159a();import a159e from'path';import a159f from'fs';function a159c(){const a7=['release','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','noRename','css','pathFromAppWithNoReWrite()','normalize','.js','pathFromApp()','Error\x20in\x20','yaml','146765uLtPaK','instance','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','template()','.git','verbose','slice','readFileSync','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','writeSourcePath','repeat','apply','startsWith','type','306DJZQBU','50gZrXwD','isTemplateForEngine()','No\x20app\x20directory\x20found','sep','cwd','trim','pathFromApp','While\x20injecting\x20','injectIntoFile()','No\x20matching\x20section\x20found.','MAKA_COMMAND_PATH','createEmptyMeteorProject','11346656WUTOQr','rewriteDestinationPathForType','getCommonIndentSize','Directory\x20','jsx','length','pop','ico','523fehCNh','engines','scss','Dockerfile','src/templates/','templateContent','toString','templates.js','match','rewriteDestinationPathForEngine','forEach','(((.+)+)+)+$','lib','import\x20','meteor','--minimal','join','utf8','8mWwkDm','export\x20{\x20','replace','createFile','pathFromTemplates','\x20create\x20','[\x5cs\x5cS]*?)(','exit','engineAndTypeFromfilePath','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','findAppDirectory','warn','\x20from','getInstance','base64','keys','fileContainsString','3074cmFHDq','injectAtBeginningOfFile','injectIntoFile','copyTemplateDirectory','.js.ts','adjustIndentation','endsWith','injectAfterLineNumber','copyTemplateDirectory()','injectIntoCodeBlock','1987803rYVDnm','relative','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','search','template','pathFromAppWithNoReWrite','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','\x20}\x20from\x20\x27','rewriteDestinationPathForEngine()','detectIndentation','532995CXRgqd','map','33011msEiwO','tsx','some','message','win32','split','from\x20\x27','writeFileSync','env','6156DbaQvW','html','\x20->','includes','constructor','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','concat','\x5cS*$','splice','less','.jsx','.meteor','platform','none','.tsx','isFile','mpi','engineAndTypeFromfilePath()','imports','push','client','import\x20{\x20','True','rewriteSourcePathForEngine','from\x20\x22','existsSync','isTemplateForEngine','readdirSync','render','png','\x20doesn\x27t\x20exist','No\x20pathParts\x20option\x20provided','engine','json','stringify','pathFromTemplates()','isArray','templateContent()','ssr','injectAtBeginningOfFile()','fsi','isDirectory','6363203ndTTJU','Error\x20in\x20injectIntoCodeBlock:\x20','injectAtEndOfFile','calculateMode','\x20updated\x20file\x20','--release\x20','from','startup','createDirectory','Looking\x20for\x20','header','error'];a159c=function(){return a7;};return a159c();}import a159g from'util';function a159d(a,b){const c=a159c();return a159d=function(d,e){d=d-0xc2;let f=c[d];return f;},a159d(a,b);}import{exec}from'child_process';import a159h from'delete';import a159i from'ejs';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const y=a159d;process[y(0x138)]['MAKA_DEV']===y(0x14f)&&Log[y(0xc9)](y(0xd2)+a),b&&console[y(0xc9)](b);},isWin=process[a159z(0x145)]===a159z(0x134),treeSymbol=isWin?a159z(0x13b):'\x20┗';export class Scaffold{static [a159z(0xd5)];[a159z(0x161)];[a159z(0x149)];constructor(a,b){const A=a159z;this[A(0x161)]=a,this[A(0x149)]=b;}static[a159z(0x116)](a,b){const B=a159z;return!Scaffold[B(0xd5)]&&(Scaffold[B(0xd5)]=new Scaffold(a,b)),Scaffold[B(0xd5)];}async[a159z(0xee)](a,b){const C=a159z;b['cwd']=b[C(0xe7)]||'.';const c=a159e[C(0x107)](b[C(0xe7)],a),d=a159e[C(0x107)](c,'.meteor');if(this['fsi'][C(0x162)](d))throw new Error('Meteor\x20project\x20already\x20exists\x20at\x20'+JSON[C(0x15b)](c));const e=C(0x106),f=a159e[C(0x107)](b[C(0xe7)]),g=a159g['promisify'](exec),h=b[C(0xca)]?C(0xc3)+b[C(0xca)]:'';b['release']&&b[C(0xca)]['includes']('alpha')&&(Log[C(0x114)](C(0x12a)+b[C(0xca)]),Log['warn'](C(0x126)));try{await g(this['mpi'][C(0x105)]+C(0x10e)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0xc9)]('\x0a'+k[C(0x133)]);throw k;}const i=a159e[C(0x107)](f,a);if(!a159f[C(0x152)](i))throw new Error(C(0xf2)+i+C(0x157));const j=a159f['readdirSync'](i);for(const l of j){if(l!==C(0xd8)&&l!==C(0x144)){const m=a159e[C(0x107)](i,l);await a159h(m,{'force':!![]});}}}['engineAndTypeFromfilePath']({filePath:a}){const D=a159z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a['match'](b);c=c&&c[0x0][D(0x135)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0xf5)](),f=c[D(0xf5)]()||d;if(d)d=d[D(0x10b)]('.','');if(f)f=f[D(0x10b)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x14a),g),process['exit'](0x1);}}[a159z(0xf0)]({pathParts:a,config:b}){const E=a159z;try{const c=a[E(0x107)](a159e[E(0xe6)]),d=this[E(0x111)]({'filePath':c})[E(0xe1)],f=b?.[E(0xf8)][d],g=new RegExp('\x5c.'+d+E(0x140));return!d||!f?c:c[E(0x10b)](g,'.'+d);}catch(h){errorHandler('rewriteDestinationPathForType()',h),process[E(0x110)](0x1);}}['isTemplateForEngine']({pathParts:a,config:b}){const F=a159z;try{if(!b)throw new Error(F(0x13e));const c=a[F(0x107)](a159e[F(0xe6)]),d=this['engineAndTypeFromfilePath']({'filePath':c});if(!d[F(0xe1)]||!d[F(0x159)])return!![];const f=b['engines'][d[F(0xe1)]];if(!f)return!![];return f===d[F(0x159)];}catch(g){errorHandler(F(0xe4),g),process[F(0x110)](0x1);}}[a159z(0xdd)]({pathParts:pathParts=[]}){const G=a159z;return pathParts[G(0x107)](a159e[G(0xe6)]);}[a159z(0x100)]({pathParts:pathParts=[],config:a}){const H=a159z;try{const b=pathParts['join'](a159e[H(0xe6)]),c=this[H(0x111)]({'filePath':b})[H(0xe1)],d=a?.[H(0xf8)][c],f=new RegExp('\x5c.'+c+'\x5cS*$');return!c||!d?b:b[H(0x10b)](f,'.'+d);}catch(g){errorHandler(H(0x12c),g),process[H(0x110)](0x1);}}[a159z(0x150)]({pathParts:pathParts=[],framework:framework=a159z(0x105),config:a}){const I=a159z;try{const b=a159e[I(0xcf)](pathParts[I(0x107)](a159e[I(0xe6)]));if(!b[I(0x120)](I(0xd0)))return b;const c='js';if(!a?.[I(0xf8)]||!a?.['engines'][c])return b;const d=a[I(0xf8)][c],f=d==='tsx'?['.js.tsx',I(0x11e),I(0xd0)]:['.js.jsx','.js'];for(const g of f){const h=b[I(0x10b)](/\.js$/,g),i=a159e[I(0x107)]('templates',framework,h),j=a159e['normalize'](a159e[I(0x107)](global[I(0xed)],i));if(a159f[I(0x152)](j))return h;}return b;}catch(k){errorHandler('rewriteSourcePathForEngine()',k),process[I(0x110)](0x1);}}['pathFromTemplates']({pathParts:a,framework:framework=a159z(0x105),config:b}){const J=a159z;try{const c=this[J(0x150)]({'pathParts':a,'framework':framework,'config':b}),d=a159e['join'](J(0xfb)+framework,c),f=a159e[J(0x107)](global[J(0xed)],'..',d);return f;}catch(g){errorHandler(J(0x15c),g),process['exit'](0x1);}}['templateContent']({srcPath:a,context:b,framework:c,config:d}){const K=a159z;try{let f=this[K(0x10d)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[K(0x111)]({'filePath':f}),h=[K(0xcd),K(0xf9),K(0x142),K(0x13a),'js',K(0xf3),'ts',K(0x131),K(0x15a),K(0x138),K(0xd3),K(0x128)],i=[K(0x156),K(0xf6)];if(!this[K(0x161)][K(0x148)](f)){g===K(0xf3)&&(f=f[K(0x10b)](K(0x143),''));g==='tsx'&&(f=f[K(0x10b)](K(0x147),''));if(!this[K(0x161)]['isFile'](f))throw new Error(K(0x112)+JSON[K(0x15b)](f));}const j=f[K(0x135)]('.'),k=a159e[K(0xcf)](f)[K(0x135)](a159e[K(0xe6)]),l=k[k['length']-0x1]===K(0xfa),m=i['includes'](j[j['length']-0x1]),n=a159f[K(0xdb)](f);if(l)return a159i['render'](n[K(0xfd)](),b)[K(0xe8)]();if(m)return Buffer[K(0xc4)](n)[K(0xfd)](K(0x117));if(!h[K(0x13c)](j[j[K(0xf4)]-0x1]))return n[K(0xfd)]()[K(0xe8)]();return a159i[K(0x155)](n[K(0xfd)](),b||{})[K(0xe8)]();}catch(o){errorHandler(K(0x15e),o),process['exit'](0x1);}}async[a159z(0x128)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a159z;try{const g=['png',L(0xf6)],h=g['includes'](a[L(0x135)]('.')['pop']()||''),i=this[L(0xfc)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[L(0xcc)]?b=this['rewriteDestinationPathForType']({'pathParts':[b],'config':d}):b=this[L(0x100)]({'pathParts':[b],'config':d});const j=await this[L(0x161)][L(0x10c)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(L(0xd7),k),process[L(0x110)](0x1);}}async[a159z(0x11d)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a159z;try{const i=this['pathFromTemplates']({'pathParts':[a],'framework':g,'config':h}),j=this[M(0x10d)]({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0x10b)](j,'');},l=n=>{const O=M;return n[O(0x10b)](i,b);};await this[M(0x161)][M(0xc6)]({'dirPath':b});const m=a159f[M(0x154)](i);for(const n of m){try{const o=a159e[M(0x107)](i,n),p=k(o),q=l(o),r=d[M(0x12f)](t=>a159e[M(0xcf)](t)),s=a159e[M(0xcf)](a159e[M(0x107)](a,n));if(r['includes'](s))continue;if(this[M(0x161)][M(0x162)](o))await this[M(0x11d)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[M(0x161)][M(0x148)](o)&&this[M(0x153)]({'pathParts':[o],'config':h}))await this[M(0x128)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f['indexOf'](a159e[M(0x107)](a,n))>=0x0&&this[M(0x161)][M(0x148)](o)&&(c[M(0xcc)]=!![],await this[M(0x128)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0xcc)]=![]);}}catch(t){console['error'](t),process[M(0x110)](0x1);}}}catch(u){errorHandler(M(0x122),u),process['exit'](0x1);}}async[a159z(0x11b)]({filePath:a,content:b,opts:c}){const P=a159z;if(!a)throw new Error(P(0xdc));try{!this[P(0x161)]['isFile'](a)&&await this['fsi'][P(0x10c)]({'filePath':a,'data':b});let d=a159f['readFileSync'](a,P(0x108));d=b+'\x0a'+d,a159f[P(0x137)](a,d),c?.['verbose']&&Log[P(0xc8)](treeSymbol+'\x20updated\x20file\x20'+a159e[P(0x125)](process['cwd'](),a));}catch(f){errorHandler(P(0x160),f),process[P(0x110)](0x1);}}async['injectAtEndOfFile']({filePath:a,content:b,opts:c}){const Q=a159z;try{if(!this['fsi'][Q(0x148)](a))await this[Q(0x161)][Q(0x10c)]({'filePath':a,'data':b});else{let d=a159f['readFileSync'](a,Q(0x108));!d[Q(0x13c)](b)&&(d=d+'\x0a'+b,a159f[Q(0x137)](a,d)),c?.[Q(0xd9)]&&Log[Q(0xc8)](treeSymbol+Q(0xc2)+a159e[Q(0x125)](process[Q(0xe7)](),a));}}catch(f){errorHandler('injectAtEndOfFile()',f),process['exit'](0x1);}}async['injectAroundString']({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a159z;try{if(!this[R(0x161)][R(0x148)](a))throw Log['error']('No\x20file\x20found\x20at\x20path\x20'+JSON[R(0x15b)](a));const f=a159f['readFileSync'](a,R(0x108)),g=f[R(0x10b)](/\r\n|\r/g,'\x0a'),h=g['split']('\x0a'),j=this[R(0x12d)](h),k=b[R(0x10b)](/\r\n|\r/g,'\x0a')[R(0x135)]('\x0a'),l=c[R(0x10b)](/\r\n|\r/g,'\x0a')[R(0x135)]('\x0a'),m=new RegExp(Array['isArray'](d)?d[R(0x107)]('|'):d,'i'),n=[];for(let p=0x0;p<h[R(0xf4)];p++){const q=h[p];if(m['test'](q)){const r=this[R(0x11f)](j,targetIndentAdjustment),s=r+q['trim']();k['forEach'](t=>{const S=R;!g['includes'](t[S(0xe8)]())&&n[S(0x14c)](this[S(0x11f)](j,indentAdjustment)+t);}),n[R(0x14c)](s),l[R(0x101)](t=>{const T=R;!g[T(0x13c)](t[T(0xe8)]())&&n['push'](this['adjustIndentation'](j,indentAdjustment)+t);});}else n['push'](q);}const o=n[R(0x107)]('\x0a');a159f[R(0x137)](a,o),Log[R(0xc8)](treeSymbol+R(0xc2)+a159e[R(0x125)](process['cwd'](),a));}catch(t){errorHandler('injectAroundString()',t),process[R(0x110)](0x1);}}['adjustIndentation'](a,b){const U=a159z;if(b===0x0)return a;const c=a['length']+b;return c>0x0?a[0x0][U(0xde)](c):'';}[a159z(0x12d)](a){const V=a159z;let b=0x0,c=0x0;a[V(0x101)](f=>{const W=V;if(f[W(0xe0)]('\x20'))b++;else f[W(0xe0)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[V(0xf1)](a,d);return d[V(0xde)](e);}['getCommonIndentSize'](a,b){const X=a159z,c=a['filter'](d=>d&&d[X(0xe0)](b))[X(0x12f)](d=>{const Y=X,e=d[Y(0xff)](new RegExp('^'+b+'+'));return e?e[0x0][Y(0xf4)]:0x0;});if(c[X(0xf4)]===0x0)return 0x0;return this[X(0x166)](c);}[a159z(0x166)](a){const Z=a159z,b=a['reduce']((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Z(0x118)](b)['reduce']((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a159z(0x123)]({filePath:a,content:b,begin:c,replace:replace=![]}){const a0=a159z;try{if(!this[a0(0x161)]['isFile'](a))throw new Error('File\x20not\x20found:\x20'+a);const d=a159f[a0(0xdb)](a,a0(0x108)),f=d[a0(0x135)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[a0(0x15d)](c)?c:[c];for(let o=0x0;o<f[a0(0xf4)];o++){const p=f[o];k&&p[a0(0x13c)]('{')&&j++;if(m[a0(0x132)](q=>p[a0(0x13c)](q))){g=o,k=!![],j++;continue;}if(k){p['includes'](b[a0(0xe8)]())&&(l=!![]);if(p['includes']('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[a0(0xc9)]('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20'+a),Log[a0(0xc9)](a0(0xea)+b),Log['error'](a0(0xc7)+c);throw new Error(a0(0xcb));}if(l)return;let n=f[a0(0xda)](0x0,g+0x1);replace?(n[a0(0x14c)](b[a0(0xe8)]()),n[a0(0x14c)](f[h])):(n=n[a0(0x13f)](f[a0(0xda)](g+0x1,h)),n[a0(0x14c)](b[a0(0xe8)]())),n=n[a0(0x13f)](f[a0(0xda)](h+0x1)),a159f[a0(0x137)](a,n[a0(0x107)]('\x0a'),a0(0x108));}catch(q){console[a0(0xc9)](a0(0x164),q);throw q;}}async[a159z(0x11c)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a1=a159z;try{const g=await this['fsi']['fileContainsString'](a,c);if(g)return;if(!this['fsi']['isFile'](a))throw Log['error'](a1(0xd6)+JSON[a1(0x15b)](a));const h=a159f['readFileSync'](a,a1(0x108));if(!Array[a1(0x15d)](d))d=[d];if(!Array['isArray'](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+a1(0x10f)+l+')','i');i=h[a1(0x10b)](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error(a1(0xec));a159f[a1(0x137)](a,i),Log[a1(0xc8)](treeSymbol+'\x20updated\x20file\x20'+a159e[a1(0x125)](process['cwd'](),a));}catch(n){errorHandler(a1(0xeb),n),process[a1(0x110)](0x1);}}async['injectImport']({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a2=a159z;try{const f=a159f[a2(0xdb)](a,a2(0x108));let g;d?g=a2(0x14e)+b+a2(0x12b)+c+'\x27;\x0a':g=a2(0x104)+b+'\x20from\x20\x27'+c+'\x27;\x0a';const h=f[a2(0x135)]('\x0a');let j=0x0,k=![];for(const m of h){if(m['includes'](a2(0x136)+c+'\x27')||m['includes'](a2(0x151)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a2(0x104)+b+a2(0x115));if(m[a2(0xff)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a2(0xf4)];o++){if(h[o][a2(0xff)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a2(0xf4)];p++){h[p][a2(0xff)](/^import .* from .*;$/)&&(j=p);}j++;}h[a2(0x141)](j,0x0,g);const l=h[a2(0x107)]('\x0a');a159f[a2(0x137)](a,l,a2(0x108));}catch(q){errorHandler('injectImport()',q),process[a2(0x110)](0x1);}}async['injectTemplateModule'](a,b,c){const a3=a159z;try{let d;b['engines'][a3(0x15f)]!==a3(0x146)?d=this['pathFromApp']({'pathParts':[a3(0x14b),a3(0xc5),a3(0x103),a3(0xfe)],'config':b}):d=this[a3(0xe9)]({'pathParts':['imports','startup',a3(0x14d),'templates.js'],'config':b});const f=this[a3(0x100)]({'pathParts':[d],'config':b}),g=a3(0x10a)+pascalCase(a)+'\x20}\x20from\x20\x27'+c+'\x27;',h=await this[a3(0x161)][a3(0x119)](f,g);!h&&this[a3(0x165)]({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler('injectTemplateModule()',i),process[a3(0x110)](0x1);}}[a159z(0x121)]({filePath:a,content:b,lineNumber:c}){const a4=a159z;try{const d=a159f[a4(0xdb)](a)['toString']()[a4(0x135)]('\x0a');d[a4(0x141)](c,0x0,b);const f=d[a4(0x107)]('\x0a');a159f[a4(0x137)](a,f);}catch(g){errorHandler('injectAfterLineNumber()',g),process[a4(0x110)](0x1);}}['pathFromApp']({pathParts:a,config:b}){const a5=a159z;try{if(!a)throw new Error(a5(0x158));const c=this[a5(0x150)]({'pathParts':a,'config':b}),d=this[a5(0x161)]['findAppDirectory']();return d?a159e[a5(0x107)](d,c):'';}catch(f){errorHandler(a5(0xd1),f),process[a5(0x110)](0x1);}}[a159z(0x129)]({pathParts:a,config:b}){const a6=a159z;try{const c=this[a6(0xdd)]({'pathParts':a,'config':b}),d=this['fsi'][a6(0x113)]();if(!d)throw new Error(a6(0xe5));return a159e[a6(0x107)](d,c);}catch(f){errorHandler(a6(0xce),f),process[a6(0x110)](0x1);}}}
1
+ const a159z=a159d;(function(a,b){const v=a159d,c=a();while(!![]){try{const d=-parseInt(v(0x12a))/0x1*(parseInt(v(0x173))/0x2)+parseInt(v(0x10c))/0x3+-parseInt(v(0x122))/0x4*(-parseInt(v(0x199))/0x5)+parseInt(v(0x167))/0x6+-parseInt(v(0x16b))/0x7+-parseInt(v(0x144))/0x8+parseInt(v(0x115))/0x9*(-parseInt(v(0x193))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0xa5a81));const a159b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a159d;if(c){const e=c[w(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){const x=a159d;return a159a[x(0x19b)]()['search']('(((.+)+)+)+$')[x(0x19b)]()['constructor'](a159a)[x(0x14c)]('(((.+)+)+)+$');});a159a();import a159e from'path';function a159d(a,b){const c=a159c();return a159d=function(d,e){d=d-0x100;let f=c[d];return f;},a159d(a,b);}import a159f from'fs';import a159g from'util';import{exec}from'child_process';import a159h from'delete';function a159c(){const a6=['noRename','env','imports','meteor','engine','594592wNIvOW','reduce','push','rewriteSourcePathForEngine','mpi','Directory\x20','repeat','includes','search','pathFromApp()','jsx','\x20doesn\x27t\x20exist','templateContent()','keys','existsSync','File\x20not\x20found:\x20','png','engines','Looking\x20for\x20','copyTemplateDirectory','rewriteDestinationPathForType()','fsi','readFileSync','pathFromTemplates','calculateMode','utf8','writeFileSync','isFile','engineAndTypeFromfilePath','test','from\x20\x22','instance','getCommonIndentSize','type','.meteor','6792630UTvSGg','import\x20{\x20','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','injectImport()','593180cncnMs','templates.js','Error\x20in\x20injectIntoCodeBlock:\x20','injectAtBeginningOfFile','pop','forEach','startsWith','some','2XSByte','\x20}\x20from\x20\x27','Error\x20in\x20','copyTemplateDirectory()','adjustIndentation','isTemplateForEngine()','injectIntoFile()','pathFromApp','yaml','writeSourcePath','trim','apply','import\x20','templateContent','injectTemplateModule()','\x27;\x0a','endsWith','readdirSync','.js.jsx','concat','\x20->','.jsx','rewriteDestinationPathForType','No\x20matching\x20section\x20found.','detectIndentation','createFile','export\x20{\x20','relative','stringify','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','startup','sep','170zVKoSu','exit','isTemplateForEngine','.js.tsx','error','Dockerfile','5215VATRiO','template','toString','injectAtEndOfFile()','none','ico','win32','tsx','pathFromAppWithNoReWrite','length','\x20from','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','--release\x20','MAKA_COMMAND_PATH','verbose','message','slice','client','pathFromAppWithNoReWrite()','normalize','findAppDirectory','split','3494319iWikEH','engineAndTypeFromfilePath()','.js','injectImport','map','No\x20pathParts\x20option\x20provided','from','.js.ts','match','317421XXBUjS','promisify','[\x5cs\x5cS]*?)(','release','rewriteDestinationPathForEngine()','createDirectory','ssr','.tsx','isDirectory','warn','.git','injectAtEndOfFile','isArray','1852YOYIDj','rewriteDestinationPathForEngine','injectAfterLineNumber','splice','cwd','filter','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','base64','1342621HWnSDm','join','scss','render','injectIntoFile','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','templates','No\x20file\x20found\x20at\x20path\x20','replace','getInstance','Meteor\x20project\x20already\x20exists\x20at\x20','alpha','injectAfterLineNumber()','platform','fileContainsString','injectAroundString()','from\x20\x27','\x20updated\x20file\x20','header','True','No\x20app\x20directory\x20found'];a159c=function(){return a6;};return a159c();}import a159i from'ejs';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const y=a159d;process[y(0x140)]['MAKA_DEV']===y(0x13d)&&Log[y(0x197)](y(0x175)+a),b&&console['error'](b);},isWin=process[a159z(0x137)]===a159z(0x19f),treeSymbol=isWin?a159z(0x187):'\x20┗';export class Scaffold{static ['instance'];[a159z(0x159)];[a159z(0x148)];constructor(a,b){const A=a159z;this[A(0x159)]=a,this['mpi']=b;}static[a159z(0x133)](a,b){const B=a159z;return!Scaffold[B(0x163)]&&(Scaffold['instance']=new Scaffold(a,b)),Scaffold[B(0x163)];}async['createEmptyMeteorProject'](a,b){const C=a159z;b[C(0x126)]=b[C(0x126)]||'.';const c=a159e[C(0x12b)](b['cwd'],a),d=a159e[C(0x12b)](c,C(0x166));if(this[C(0x159)][C(0x11d)](d))throw new Error(C(0x134)+JSON[C(0x18f)](c));const e='--minimal',f=a159e[C(0x12b)](b['cwd']),g=a159g[C(0x116)](exec),h=b[C(0x118)]?C(0x102)+b[C(0x118)]:'';b[C(0x118)]&&b[C(0x118)][C(0x14b)](C(0x135))&&(Log[C(0x11e)]('Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20'+b[C(0x118)]),Log[C(0x11e)]('Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues'));try{await g(this['mpi'][C(0x142)]+'\x20create\x20'+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0x197)]('\x0a'+k[C(0x105)]);throw k;}const i=a159e[C(0x12b)](f,a);if(!a159f[C(0x152)](i))throw new Error(C(0x149)+i+C(0x14f));const j=a159f[C(0x184)](i);for(const l of j){if(l!==C(0x11f)&&l!=='.meteor'){const m=a159e['join'](i,l);await a159h(m,{'force':!![]});}}}[a159z(0x160)]({filePath:a}){const D=a159z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[D(0x114)](b);c=c&&c[0x0][D(0x10b)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0x16f)](),f=c['pop']()||d;if(d)d=d[D(0x132)]('.','');if(f)f=f[D(0x132)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x10d),g),process[D(0x194)](0x1);}}[a159z(0x189)]({pathParts:a,config:b}){const E=a159z;try{const c=a[E(0x12b)](a159e[E(0x192)]),d=this[E(0x160)]({'filePath':c})[E(0x165)],f=b?.['engines'][d],g=new RegExp('\x5c.'+d+'\x5cS*$');return!d||!f?c:c[E(0x132)](g,'.'+d);}catch(h){errorHandler(E(0x158),h),process['exit'](0x1);}}['isTemplateForEngine']({pathParts:a,config:b}){const F=a159z;try{if(!b)throw new Error(F(0x169));const c=a[F(0x12b)](a159e[F(0x192)]),d=this[F(0x160)]({'filePath':c});if(!d['type']||!d['engine'])return!![];const f=b['engines'][d[F(0x165)]];if(!f)return!![];return f===d[F(0x143)];}catch(g){errorHandler(F(0x178),g),process['exit'](0x1);}}[a159z(0x17c)]({pathParts:pathParts=[]}){const G=a159z;return pathParts[G(0x12b)](a159e[G(0x192)]);}[a159z(0x123)]({pathParts:pathParts=[],config:a}){const H=a159z;try{const b=pathParts['join'](a159e['sep']),c=this[H(0x160)]({'filePath':b})['type'],d=a?.[H(0x155)][c],f=new RegExp('\x5c.'+c+'\x5cS*$');return!c||!d?b:b[H(0x132)](f,'.'+d);}catch(g){errorHandler(H(0x119),g),process[H(0x194)](0x1);}}[a159z(0x147)]({pathParts:pathParts=[],framework:framework='meteor',config:a}){const I=a159z;try{const b=a159e[I(0x109)](pathParts[I(0x12b)](a159e[I(0x192)]));if(!b[I(0x183)]('.js'))return b;const c='js';if(!a?.[I(0x155)]||!a?.[I(0x155)][c])return b;const d=a[I(0x155)][c],f=d===I(0x1a0)?[I(0x196),I(0x113),I(0x10e)]:[I(0x185),I(0x10e)];for(const g of f){const h=b[I(0x132)](/\.js$/,g),i=a159e[I(0x12b)](I(0x130),framework,h),j=a159e['normalize'](a159e[I(0x12b)](global[I(0x103)],i));if(a159f[I(0x152)](j))return h;}return b;}catch(k){errorHandler('rewriteSourcePathForEngine()',k),process['exit'](0x1);}}[a159z(0x15b)]({pathParts:a,framework:framework=a159z(0x142),config:b}){const J=a159z;try{const c=this[J(0x147)]({'pathParts':a,'framework':framework,'config':b}),d=a159e[J(0x12b)]('src/templates/'+framework,c),f=a159e[J(0x12b)](global[J(0x103)],'..',d);return f;}catch(g){errorHandler('pathFromTemplates()',g),process['exit'](0x1);}}[a159z(0x180)]({srcPath:a,context:b,framework:c,config:d}){const K=a159z;try{let f=this[K(0x15b)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[K(0x160)]({'filePath':f}),h=['css',K(0x12c),'less','html','js',K(0x14e),'ts',K(0x1a0),'json',K(0x140),K(0x17b),'template'],i=[K(0x154),K(0x19e)];if(!this[K(0x159)]['isFile'](f)){g==='jsx'&&(f=f[K(0x132)](K(0x188),''));g===K(0x1a0)&&(f=f[K(0x132)](K(0x11c),''));if(!this[K(0x159)]['isFile'](f))throw new Error(K(0x12f)+JSON[K(0x18f)](f));}const j=f[K(0x10b)]('.'),k=a159e['normalize'](f)[K(0x10b)](a159e[K(0x192)]),l=k[k[K(0x1a2)]-0x1]===K(0x198),m=i['includes'](j[j['length']-0x1]),n=a159f['readFileSync'](f);if(l)return a159i[K(0x12d)](n[K(0x19b)](),b)[K(0x17d)]();if(m)return Buffer[K(0x112)](n)[K(0x19b)](K(0x129));if(!h['includes'](j[j[K(0x1a2)]-0x1]))return n[K(0x19b)]()[K(0x17d)]();return a159i[K(0x12d)](n[K(0x19b)](),b||{})[K(0x17d)]();}catch(o){errorHandler(K(0x150),o),process[K(0x194)](0x1);}}async[a159z(0x19a)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a159z;try{const g=[L(0x154),L(0x19e)],h=g[L(0x14b)](a[L(0x10b)]('.')[L(0x16f)]()||''),i=this['templateContent']({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[L(0x13f)]?b=this[L(0x189)]({'pathParts':[b],'config':d}):b=this[L(0x123)]({'pathParts':[b],'config':d});const j=await this[L(0x159)][L(0x18c)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler('template()',k),process[L(0x194)](0x1);}}async[a159z(0x157)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const N=a159z;try{const i=this['pathFromTemplates']({'pathParts':[a],'framework':g,'config':h}),j=this['pathFromTemplates']({'pathParts':[],'framework':g,'config':h}),k=n=>{return n['replace'](j,'');},l=n=>{const M=a159d;return n[M(0x132)](i,b);};await this[N(0x159)][N(0x11a)]({'dirPath':b});const m=a159f[N(0x184)](i);for(const n of m){try{const o=a159e[N(0x12b)](i,n),p=k(o),q=l(o),r=d[N(0x110)](t=>a159e[N(0x109)](t)),s=a159e[N(0x109)](a159e['join'](a,n));if(r[N(0x14b)](s))continue;if(this['fsi']['isDirectory'](o))await this[N(0x157)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[N(0x159)][N(0x15f)](o)&&this[N(0x195)]({'pathParts':[o],'config':h}))await this[N(0x19a)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f['indexOf'](a159e[N(0x12b)](a,n))>=0x0&&this[N(0x159)]['isFile'](o)&&(c[N(0x13f)]=!![],await this[N(0x19a)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[N(0x13f)]=![]);}}catch(t){console[N(0x197)](t),process[N(0x194)](0x1);}}}catch(u){errorHandler(N(0x176),u),process[N(0x194)](0x1);}}async[a159z(0x16e)]({filePath:a,content:b,opts:c}){const O=a159z;if(!a)throw new Error(O(0x190));try{!this[O(0x159)][O(0x15f)](a)&&await this['fsi'][O(0x18c)]({'filePath':a,'data':b});let d=a159f['readFileSync'](a,'utf8');d=b+'\x0a'+d,a159f[O(0x15e)](a,d),c?.[O(0x104)]&&Log[O(0x13c)](treeSymbol+'\x20updated\x20file\x20'+a159e[O(0x18e)](process[O(0x126)](),a));}catch(f){errorHandler('injectAtBeginningOfFile()',f),process[O(0x194)](0x1);}}async[a159z(0x120)]({filePath:a,content:b,opts:c}){const P=a159z;try{if(!this[P(0x159)][P(0x15f)](a))await this['fsi'][P(0x18c)]({'filePath':a,'data':b});else{let d=a159f[P(0x15a)](a,P(0x15d));!d[P(0x14b)](b)&&(d=d+'\x0a'+b,a159f['writeFileSync'](a,d)),c?.[P(0x104)]&&Log[P(0x13c)](treeSymbol+'\x20updated\x20file\x20'+a159e[P(0x18e)](process[P(0x126)](),a));}}catch(f){errorHandler(P(0x19c),f),process[P(0x194)](0x1);}}async['injectAroundString']({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const Q=a159z;try{if(!this[Q(0x159)][Q(0x15f)](a))throw Log[Q(0x197)](Q(0x131)+JSON[Q(0x18f)](a));const f=a159f[Q(0x15a)](a,'utf8'),g=f[Q(0x132)](/\r\n|\r/g,'\x0a'),h=g[Q(0x10b)]('\x0a'),j=this[Q(0x18b)](h),k=b['replace'](/\r\n|\r/g,'\x0a')[Q(0x10b)]('\x0a'),l=c[Q(0x132)](/\r\n|\r/g,'\x0a')[Q(0x10b)]('\x0a'),m=new RegExp(Array[Q(0x121)](d)?d[Q(0x12b)]('|'):d,'i'),n=[];for(let p=0x0;p<h['length'];p++){const q=h[p];if(m[Q(0x161)](q)){const r=this[Q(0x177)](j,targetIndentAdjustment),s=r+q[Q(0x17d)]();k[Q(0x170)](t=>{const R=Q;!g['includes'](t[R(0x17d)]())&&n['push'](this[R(0x177)](j,indentAdjustment)+t);}),n[Q(0x146)](s),l['forEach'](t=>{const S=Q;!g[S(0x14b)](t[S(0x17d)]())&&n['push'](this[S(0x177)](j,indentAdjustment)+t);});}else n[Q(0x146)](q);}const o=n[Q(0x12b)]('\x0a');a159f[Q(0x15e)](a,o),Log[Q(0x13c)](treeSymbol+Q(0x13b)+a159e[Q(0x18e)](process[Q(0x126)](),a));}catch(t){errorHandler(Q(0x139),t),process['exit'](0x1);}}[a159z(0x177)](a,b){const T=a159z;if(b===0x0)return a;const c=a[T(0x1a2)]+b;return c>0x0?a[0x0][T(0x14a)](c):'';}[a159z(0x18b)](a){const U=a159z;let b=0x0,c=0x0;a[U(0x170)](f=>{const V=U;if(f[V(0x171)]('\x20'))b++;else f[V(0x171)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[U(0x164)](a,d);return d[U(0x14a)](e);}[a159z(0x164)](a,b){const W=a159z,c=a[W(0x127)](d=>d&&d[W(0x171)](b))['map'](d=>{const X=W,e=d[X(0x114)](new RegExp('^'+b+'+'));return e?e[0x0][X(0x1a2)]:0x0;});if(c['length']===0x0)return 0x0;return this[W(0x15c)](c);}['calculateMode'](a){const Y=a159z,b=a[Y(0x145)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Y(0x151)](b)['reduce']((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async['injectIntoCodeBlock']({filePath:a,content:b,begin:c,replace:replace=![]}){const Z=a159z;try{if(!this['fsi'][Z(0x15f)](a))throw new Error(Z(0x153)+a);const d=a159f[Z(0x15a)](a,Z(0x15d)),f=d[Z(0x10b)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[Z(0x121)](c)?c:[c];for(let o=0x0;o<f['length'];o++){const p=f[o];k&&p['includes']('{')&&j++;if(m[Z(0x172)](q=>p[Z(0x14b)](q))){g=o,k=!![],j++;continue;}if(k){p[Z(0x14b)](b[Z(0x17d)]())&&(l=!![]);if(p[Z(0x14b)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[Z(0x197)](Z(0x128)+a),Log[Z(0x197)]('While\x20injecting\x20'+b),Log['error'](Z(0x156)+c);throw new Error('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.');}if(l)return;let n=f[Z(0x106)](0x0,g+0x1);replace?(n[Z(0x146)](b[Z(0x17d)]()),n[Z(0x146)](f[h])):(n=n[Z(0x186)](f[Z(0x106)](g+0x1,h)),n[Z(0x146)](b[Z(0x17d)]())),n=n[Z(0x186)](f[Z(0x106)](h+0x1)),a159f[Z(0x15e)](a,n['join']('\x0a'),Z(0x15d));}catch(q){console[Z(0x197)](Z(0x16d),q);throw q;}}async[a159z(0x12e)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a0=a159z;try{const g=await this[a0(0x159)][a0(0x138)](a,c);if(g)return;if(!this['fsi'][a0(0x15f)](a))throw Log['error'](a0(0x101)+JSON[a0(0x18f)](a));const h=a159f[a0(0x15a)](a,a0(0x15d));if(!Array[a0(0x121)](d))d=[d];if(!Array['isArray'](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+a0(0x117)+l+')','i');i=h['replace'](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error(a0(0x18a));a159f[a0(0x15e)](a,i),Log[a0(0x13c)](treeSymbol+a0(0x13b)+a159e[a0(0x18e)](process[a0(0x126)](),a));}catch(n){errorHandler(a0(0x179),n),process[a0(0x194)](0x1);}}async[a159z(0x10f)]({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a1=a159z;try{const f=a159f[a1(0x15a)](a,a1(0x15d));let g;d?g=a1(0x168)+b+a1(0x174)+c+a1(0x182):g=a1(0x17f)+b+'\x20from\x20\x27'+c+a1(0x182);const h=f[a1(0x10b)]('\x0a');let j=0x0,k=![];for(const m of h){if(m['includes'](a1(0x13a)+c+'\x27')||m[a1(0x14b)](a1(0x162)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a1(0x17f)+b+a1(0x100));if(m[a1(0x114)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h['length'];o++){if(h[o][a1(0x114)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a1(0x1a2)];p++){h[p]['match'](/^import .* from .*;$/)&&(j=p);}j++;}h[a1(0x125)](j,0x0,g);const l=h[a1(0x12b)]('\x0a');a159f[a1(0x15e)](a,l,a1(0x15d));}catch(q){errorHandler(a1(0x16a),q),process['exit'](0x1);}}async['injectTemplateModule'](a,b,c){const a2=a159z;try{let d;b[a2(0x155)][a2(0x11b)]!==a2(0x19d)?d=this[a2(0x17a)]({'pathParts':[a2(0x141),a2(0x191),'lib',a2(0x16c)],'config':b}):d=this[a2(0x17a)]({'pathParts':[a2(0x141),a2(0x191),a2(0x107),a2(0x16c)],'config':b});const f=this[a2(0x123)]({'pathParts':[d],'config':b}),g=a2(0x18d)+pascalCase(a)+a2(0x174)+c+'\x27;',h=await this[a2(0x159)]['fileContainsString'](f,g);!h&&this['injectAtEndOfFile']({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a2(0x181),i),process['exit'](0x1);}}[a159z(0x124)]({filePath:a,content:b,lineNumber:c}){const a3=a159z;try{const d=a159f[a3(0x15a)](a)[a3(0x19b)]()[a3(0x10b)]('\x0a');d['splice'](c,0x0,b);const f=d[a3(0x12b)]('\x0a');a159f[a3(0x15e)](a,f);}catch(g){errorHandler(a3(0x136),g),process[a3(0x194)](0x1);}}[a159z(0x17a)]({pathParts:a,config:b}){const a4=a159z;try{if(!a)throw new Error(a4(0x111));const c=this[a4(0x147)]({'pathParts':a,'config':b}),d=this[a4(0x159)][a4(0x10a)]();return d?a159e[a4(0x12b)](d,c):'';}catch(f){errorHandler(a4(0x14d),f),process[a4(0x194)](0x1);}}[a159z(0x1a1)]({pathParts:a,config:b}){const a5=a159z;try{const c=this['writeSourcePath']({'pathParts':a,'config':b}),d=this[a5(0x159)][a5(0x10a)]();if(!d)throw new Error(a5(0x13e));return a159e['join'](d,c);}catch(f){errorHandler(a5(0x108),f),process[a5(0x194)](0x1);}}}
@@ -1 +1 @@
1
- const a160m=a160d;(function(a,b){const j=a160d,c=a();while(!![]){try{const d=-parseInt(j(0x105))/0x1*(-parseInt(j(0x11e))/0x2)+parseInt(j(0x11a))/0x3*(-parseInt(j(0x116))/0x4)+-parseInt(j(0x113))/0x5+parseInt(j(0x10f))/0x6*(-parseInt(j(0x114))/0x7)+parseInt(j(0x112))/0x8+-parseInt(j(0x10a))/0x9*(-parseInt(j(0x115))/0xa)+parseInt(j(0x118))/0xb*(parseInt(j(0x10e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a160c,0x1f938));function a160c(){const s=['ignore','failure','117205WItcAQ','verbose','data','message','withSpinner','27pXDhet','error','close','apply','12xjHafv','90PYlxaV','toString','disconnect','716728fOGWmg','909020eAmJdc','118097XnKbvC','252950DVwZXq','48476ljpYWK','search','4029927jOhUOu','success','21ZdvywU','kill','SIGINT','(((.+)+)+)+$','2ywwbNt','start','constructor'];a160c=function(){return s;};return a160c();}const a160b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a160d;if(c){const e=c[k(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a160a=a160b(this,function(){const l=a160d;return a160a[l(0x110)]()['search'](l(0x11d))[l(0x110)]()[l(0x102)](a160a)[l(0x117)](l(0x11d));});a160a();function a160d(a,b){const c=a160c();return a160d=function(d,e){d=d-0x101;let f=c[d];return f;},a160d(a,b);}import{spawn}from'child_process';import{Log}from'../log/log.class.js';export class SpawnAsync{static[a160m(0x109)](a,b,c){return new Promise((d,e)=>{const n=a160d,f=Log[n(0x109)](),g=c?.['cwd']||'.';c?.['message']&&f[n(0x101)](c?.[n(0x108)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.[n(0x106)]?'inherit':n(0x103)});process['on'](n(0x11c),()=>{const o=n,i=h['pid'];i&&process[o(0x11b)](i);}),h['on'](n(0x107),i=>{console['log'](i);}),h['on'](n(0x111),()=>{const p=n;c?.[p(0x108)]&&f['success'](),d();}),h['on'](n(0x10c),()=>{const q=n;c?.[q(0x108)]&&f[q(0x119)](),d();}),h['on'](n(0x10b),()=>{const r=n;c?.[r(0x108)]&&f[r(0x104)](),e();});});}}
1
+ function a160d(a,b){const c=a160c();return a160d=function(d,e){d=d-0x8a;let f=c[d];return f;},a160d(a,b);}const a160m=a160d;(function(a,b){const j=a160d,c=a();while(!![]){try{const d=-parseInt(j(0xa0))/0x1+-parseInt(j(0x96))/0x2+parseInt(j(0x8e))/0x3+parseInt(j(0x8d))/0x4*(-parseInt(j(0x95))/0x5)+-parseInt(j(0x99))/0x6*(-parseInt(j(0xa5))/0x7)+-parseInt(j(0x9f))/0x8*(parseInt(j(0x9e))/0x9)+parseInt(j(0x93))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a160c,0xd77c7));const a160b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a160d;if(c){const e=c[k(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a160a=a160b(this,function(){const l=a160d;return a160a['toString']()[l(0xa1)](l(0x8a))['toString']()[l(0x94)](a160a)[l(0xa1)](l(0x8a));});a160a();import{spawn}from'child_process';function a160c(){const t=['168774cylAsp','error','log','60VEKmlH','failure','success','kill','cwd','36kLutAm','2226128bsbXCy','311227YpFdvO','search','pid','disconnect','message','730205bFoeag','(((.+)+)+)+$','apply','ignore','5627276GXBfHW','2930535dkICQa','close','data','withSpinner','start','17781330NJrCsz','constructor','5CPyUIa'];a160c=function(){return t;};return a160c();}import{Log}from'../log/log.class.js';export class SpawnAsync{static[a160m(0x91)](a,b,c){return new Promise((d,e)=>{const n=a160d,f=Log['withSpinner'](),g=c?.[n(0x9d)]||'.';c?.['message']&&f[n(0x92)](c?.[n(0xa4)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.['verbose']?'inherit':n(0x8c)});process['on']('SIGINT',()=>{const o=n,i=h[o(0xa2)];i&&process[o(0x9c)](i);}),h['on'](n(0x90),i=>{const p=n;console[p(0x98)](i);}),h['on'](n(0xa3),()=>{const q=n;c?.[q(0xa4)]&&f[q(0x9b)](),d();}),h['on'](n(0x8f),()=>{const r=n;c?.['message']&&f[r(0x9b)](),d();}),h['on'](n(0x97),()=>{const s=n;c?.['message']&&f[s(0x9a)](),e();});});}}
@@ -1 +1 @@
1
- (function(a,b){var f=a161d,c=a();while(!![]){try{var d=-parseInt(f(0x114))/0x1+-parseInt(f(0x113))/0x2*(parseInt(f(0x117))/0x3)+-parseInt(f(0x10b))/0x4+-parseInt(f(0x116))/0x5*(-parseInt(f(0x108))/0x6)+parseInt(f(0x10a))/0x7*(parseInt(f(0x109))/0x8)+-parseInt(f(0x10c))/0x9+parseInt(f(0x111))/0xa*(parseInt(f(0x10d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a161c,0x8b1eb));var a161b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a161d;if(c){var e=c[g(0x112)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a161a=a161b(this,function(){var h=a161d;return a161a[h(0x110)]()[h(0x10f)](h(0x115))[h(0x110)]()[h(0x10e)](a161a)['search']('(((.+)+)+)+$');});a161a();function a161d(a,b){var c=a161c();return a161d=function(d,e){d=d-0x108;var f=c[d];return f;},a161d(a,b);}export{};function a161c(){var i=['304330tJRajH','583677JnbbWt','108fqFjcB','8UmEgHy','214060lihCvA','2061256pmHwKL','3099888EnsAMj','40766WODPOv','constructor','search','toString','1980ABqgkO','apply','2NIEszY','235816hFzWBj','(((.+)+)+)+$'];a161c=function(){return i;};return a161c();}
1
+ (function(a,b){var f=a161d,c=a();while(!![]){try{var d=-parseInt(f(0x127))/0x1+parseInt(f(0x12c))/0x2*(-parseInt(f(0x12d))/0x3)+parseInt(f(0x132))/0x4+parseInt(f(0x12f))/0x5+-parseInt(f(0x129))/0x6*(-parseInt(f(0x12b))/0x7)+parseInt(f(0x12e))/0x8+parseInt(f(0x130))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a161c,0xf159d));var a161b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a161d;if(c){var e=c[g(0x12a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a161a=a161b(this,function(){var h=a161d;return a161a['toString']()[h(0x128)](h(0x131))[h(0x126)]()['constructor'](a161a)['search'](h(0x131));});a161a();function a161d(a,b){var c=a161c();return a161d=function(d,e){d=d-0x126;var f=c[d];return f;},a161d(a,b);}function a161c(){var i=['57841xDaBZG','245142dCbZEH','3wtqIPW','9199968uEXlmT','538920UobFtH','5979753EIlYFB','(((.+)+)+)+$','1123004oXDddD','toString','1257064jnsmLz','search','120yzYxda','apply'];a161c=function(){return i;};return a161c();}export{};
@@ -1 +1 @@
1
- const a162p=a162d;(function(a,b){const m=a162d,c=a();while(!![]){try{const d=-parseInt(m(0xe4))/0x1*(-parseInt(m(0xd5))/0x2)+parseInt(m(0xee))/0x3*(parseInt(m(0xdd))/0x4)+-parseInt(m(0xea))/0x5*(parseInt(m(0xd2))/0x6)+parseInt(m(0xd4))/0x7+parseInt(m(0xdb))/0x8*(parseInt(m(0xe5))/0x9)+parseInt(m(0xd3))/0xa+-parseInt(m(0xed))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0xb5c48));function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0xd0;let f=c[d];return f;},a162d(a,b);}const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a162d;if(c){const e=c[n(0xef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const o=a162d;return a162a[o(0xf8)]()[o(0xe2)](o(0xd7))[o(0xf8)]()[o(0xe0)](a162a)['search']('(((.+)+)+)+$');});a162a();function a162c(){const x=['930981aCWVGk','apply','message','sshVerbose','ignore','success','ssh','ssh\x20','join','push','toString','verbose','env','source','6PliuDC','7869430crrhvY','1663599pZQXrP','2734514DDaGIs','sshSync','(((.+)+)+)+$','error','tty','port','104tpZAIH','withSpinner','8OTSDxc','host','scp','constructor','pem','search','inherit','1MoSzBA','117990EjjMsX','failure','ConnectTimeout=2','close','2>&1','2938550DdJhiA','user','concat','20357821FHyVTO'];a162c=function(){return x;};return a162c();}import a162e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';export class SSH{static [a162p(0xf4)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a162d,f=b[q(0xeb)]+'@'+b['host'],g=a162e['join'](b[q(0xd0)],b['pem']),h=c?.[q(0xd9)]||![],i=c?.[q(0xf1)]||![];let j=[];h&&j[q(0xf7)]('-t');i&&j['push']('-v');j=j[q(0xec)](['-o',q(0xe7),'-i',g,'-p',b[q(0xda)],f,a]);const k=Log[q(0xdc)]();c?.[q(0xf0)]&&k['start'](c?.[q(0xf0)]);const l=spawn('ssh',j,{'stdio':c?.[q(0xf9)]?'inherit':'ignore'});l['on']('disconnect',()=>{const r=q;c?.[r(0xf0)]&&k[r(0xf3)](),d();}),l['on'](q(0xe8),()=>{const s=q;c?.[s(0xf0)]&&k[s(0xf3)](),d();}),l['on'](q(0xd8),()=>{const t=q;c?.[t(0xf0)]&&k[t(0xe6)](),e();});});};static [a162p(0xd6)]=(a,b,c)=>{const u=a162p,d=b[u(0xeb)]+'@'+b[u(0xde)],e=a162e['join'](b['env'],b['pem']),f=c?.[u(0xd9)]||![],g=c?.[u(0xf1)]||![];let h=[];f&&h[u(0xf7)]('-t'),g&&h[u(0xf7)]('-v'),h=h[u(0xec)](['-o',u(0xe7),'-i',e,'-p',b[u(0xda)],d,a]),spawnSync(u(0xf4),h,{'stdio':c?.[u(0xf9)]?u(0xe3):u(0xf2)});};static['ping'](a,b,c){const v=a162p,d=b['user']+'@'+b[v(0xde)],e=a162e[v(0xf6)](b[v(0xd0)],b['pem']),f=c?.[v(0xd9)]||![];let g=[];f&&g[v(0xf7)]('-t');g=g[v(0xec)](['-o',v(0xe7),'-i',e,'-p',b[v(0xda)],d,a,v(0xe9)]);const h=v(0xf5)+g[v(0xf6)]('\x20');return execSync(h)[v(0xf8)]();}static[a162p(0xdf)](a,b){const w=a162p,c=b['user']+'@'+b[w(0xde)]+':'+a['dest'],d=a162e[w(0xf6)](b[w(0xd0)],b[w(0xe1)]),e=['-i',d,'-P',b['port'],a[w(0xd1)],c];spawnSync(w(0xdf),e,{'stdio':a[w(0xf9)]?w(0xe3):w(0xf2)});}}
1
+ const a162o=a162d;(function(a,b){const m=a162d,c=a();while(!![]){try{const d=-parseInt(m(0x1f5))/0x1+-parseInt(m(0x1f4))/0x2+-parseInt(m(0x200))/0x3*(-parseInt(m(0x203))/0x4)+-parseInt(m(0x219))/0x5*(-parseInt(m(0x204))/0x6)+-parseInt(m(0x1f7))/0x7*(parseInt(m(0x20b))/0x8)+parseInt(m(0x210))/0x9*(-parseInt(m(0x1fe))/0xa)+-parseInt(m(0x1ef))/0xb*(-parseInt(m(0x205))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0xa506d));function a162c(){const w=['close','port','68HvTmaQ','28578sXAvPA','2811624puzTMi','inherit','tty','env','pem','concat','8TCWwSQ','withSpinner','(((.+)+)+)+$','failure','toString','36vcrCHt','search','verbose','error','success','join','scp','source','ping','565aofjGS','start','sshSync','110nuqtcW','host','user','ignore','2>&1','834308LcWuRj','1093347ZSrSbK','ConnectTimeout=2','9355409BlCqcE','sshVerbose','disconnect','constructor','message','ssh\x20','push','1280740qBszTu','ssh','203646eNaHpG'];a162c=function(){return w;};return a162c();}const a162b=(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;};}()),a162a=a162b(this,function(){const n=a162d;return a162a['toString']()['search']('(((.+)+)+)+$')[n(0x20f)]()[n(0x1fa)](a162a)[n(0x211)](n(0x20d));});function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a162d(a,b);}a162a();import a162e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';export class SSH{static [a162o(0x1ff)]=(a,b,c)=>{return new Promise((d,e)=>{const p=a162d,f=b[p(0x1f1)]+'@'+b[p(0x1f0)],g=a162e[p(0x215)](b[p(0x208)],b['pem']),h=c?.[p(0x207)]||![],i=c?.[p(0x1f8)]||![];let j=[];h&&j[p(0x1fd)]('-t');i&&j[p(0x1fd)]('-v');j=j[p(0x20a)](['-o','ConnectTimeout=2','-i',g,'-p',b[p(0x202)],f,a]);const k=Log[p(0x20c)]();c?.['message']&&k[p(0x21a)](c?.['message']);const l=spawn(p(0x1ff),j,{'stdio':c?.[p(0x212)]?p(0x206):p(0x1f2)});l['on'](p(0x1f9),()=>{const q=p;c?.[q(0x1fb)]&&k[q(0x214)](),d();}),l['on'](p(0x201),()=>{const r=p;c?.[r(0x1fb)]&&k[r(0x214)](),d();}),l['on'](p(0x213),()=>{const s=p;c?.[s(0x1fb)]&&k[s(0x20e)](),e();});});};static [a162o(0x21b)]=(a,b,c)=>{const t=a162o,d=b['user']+'@'+b['host'],e=a162e[t(0x215)](b['env'],b[t(0x209)]),f=c?.[t(0x207)]||![],g=c?.[t(0x1f8)]||![];let h=[];f&&h[t(0x1fd)]('-t'),g&&h[t(0x1fd)]('-v'),h=h[t(0x20a)](['-o',t(0x1f6),'-i',e,'-p',b[t(0x202)],d,a]),spawnSync(t(0x1ff),h,{'stdio':c?.[t(0x212)]?t(0x206):t(0x1f2)});};static[a162o(0x218)](a,b,c){const u=a162o,d=b[u(0x1f1)]+'@'+b[u(0x1f0)],e=a162e[u(0x215)](b['env'],b[u(0x209)]),f=c?.['tty']||![];let g=[];f&&g[u(0x1fd)]('-t');g=g[u(0x20a)](['-o',u(0x1f6),'-i',e,'-p',b[u(0x202)],d,a,u(0x1f3)]);const h=u(0x1fc)+g['join']('\x20');return execSync(h)[u(0x20f)]();}static[a162o(0x216)](a,b){const v=a162o,c=b['user']+'@'+b[v(0x1f0)]+':'+a['dest'],d=a162e[v(0x215)](b[v(0x208)],b[v(0x209)]),e=['-i',d,'-P',b[v(0x202)],a[v(0x217)],c];spawnSync('scp',e,{'stdio':a[v(0x212)]?v(0x206):'ignore'});}}
@@ -1 +1 @@
1
- function a163d(a,b){var c=a163c();return a163d=function(d,e){d=d-0x6d;var f=c[d];return f;},a163d(a,b);}(function(a,b){var f=a163d,c=a();while(!![]){try{var d=parseInt(f(0x6d))/0x1*(parseInt(f(0x75))/0x2)+-parseInt(f(0x73))/0x3*(-parseInt(f(0x6f))/0x4)+-parseInt(f(0x74))/0x5*(-parseInt(f(0x7a))/0x6)+parseInt(f(0x78))/0x7+-parseInt(f(0x72))/0x8+parseInt(f(0x79))/0x9+-parseInt(f(0x77))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0xd71a4));var a163b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a163d;if(c){var e=c[g(0x71)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){var h=a163d;return a163a['toString']()['search'](h(0x70))['toString']()[h(0x6e)](a163a)[h(0x76)](h(0x70));});a163a();function a163c(){var i=['1080izMfDY','(((.+)+)+)+$','apply','12217424BspWsA','117QyLvIx','1267480eivwvt','50982uKMrUV','search','16859680yrZJCQ','4238899qHaXrs','14568210haGDpI','6YrgfxC','63DEuYad','constructor'];a163c=function(){return i;};return a163c();}export{};
1
+ (function(a,b){var f=a163d,c=a();while(!![]){try{var d=parseInt(f(0x1c5))/0x1*(parseInt(f(0x1c0))/0x2)+-parseInt(f(0x1ca))/0x3*(-parseInt(f(0x1c6))/0x4)+-parseInt(f(0x1c8))/0x5*(parseInt(f(0x1cf))/0x6)+parseInt(f(0x1c2))/0x7*(-parseInt(f(0x1c9))/0x8)+parseInt(f(0x1c1))/0x9*(parseInt(f(0x1c3))/0xa)+-parseInt(f(0x1c7))/0xb+parseInt(f(0x1ce))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0x20f33));var a163b=(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;};}()),a163a=a163b(this,function(){var g=a163d;return a163a[g(0x1c4)]()['search'](g(0x1cb))[g(0x1c4)]()[g(0x1cc)](a163a)[g(0x1cd)]('(((.+)+)+)+$');});a163a();function a163c(){var h=['7qEzbDo','2470nYEwmL','toString','37iihect','20TSWkWD','2938749mfjIVO','5CTooQg','1900648YXBcSM','2847VtGawf','(((.+)+)+)+$','constructor','search','5655228vnwYBo','48354dmvUdJ','8042IBXzBE','837CmIJft'];a163c=function(){return h;};return a163c();}function a163d(a,b){var c=a163c();return a163d=function(d,e){d=d-0x1c0;var f=c[d];return f;},a163d(a,b);}export{};
@@ -1 +1 @@
1
- const a164h=a164d;(function(a,b){const f=a164d,c=a();while(!![]){try{const d=parseInt(f(0x154))/0x1*(-parseInt(f(0x15f))/0x2)+parseInt(f(0x151))/0x3*(-parseInt(f(0x153))/0x4)+parseInt(f(0x16a))/0x5*(-parseInt(f(0x168))/0x6)+parseInt(f(0x16c))/0x7+parseInt(f(0x14f))/0x8*(parseInt(f(0x156))/0x9)+-parseInt(f(0x169))/0xa*(-parseInt(f(0x162))/0xb)+parseInt(f(0x150))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0x9fdcd));const a164b=(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;};}()),a164a=a164b(this,function(){const g=a164d;return a164a[g(0x160)]()['search'](g(0x16e))[g(0x160)]()[g(0x163)](a164a)[g(0x14b)]('(((.+)+)+)+$');});a164a();import{spawnSync}from'child_process';export class SSL{static[a164h(0x166)](a){const i=a164h,b=a['cwd']?a['cwd']:process[i(0x167)](),c=[i(0x16d),i(0x15b),i(0x15d),i(0x164),i(0x14e),i(0x152),a[i(0x16f)],i(0x15c),a[i(0x15a)]];a[i(0x155)]&&(c[i(0x157)]('-config'),c[i(0x157)](i(0x158))),a['useConfig']?spawnSync(i(0x15e),c,{'cwd':b}):spawnSync('openssl',c,{'stdio':i(0x16b),'cwd':b});}static[a164h(0x165)](a){const j=a164h,b=a[j(0x167)]?a[j(0x167)]:process[j(0x167)](),c=[j(0x16d),j(0x14d),'-new',j(0x14c),a[j(0x16f)],j(0x15c),a[j(0x161)]];a['useConfig']&&(c[j(0x157)](j(0x159)),c[j(0x157)](j(0x158))),a['useConfig']?spawnSync(j(0x15e),c,{'cwd':b}):spawnSync(j(0x15e),c,{'stdio':j(0x16b),'cwd':b});}}function a164d(a,b){const c=a164c();return a164d=function(d,e){d=d-0x14b;let f=c[d];return f;},a164d(a,b);}function a164c(){const k=['82OAqmMg','useConfig','9TsrAtp','push','openssl.conf','-config','csrName','-new','-out','-newkey','openssl','18778LeIsnZ','toString','crtName','11vpavJN','constructor','rsa:2048','genSSC','genCSR','cwd','6jUqoml','2136490KTtIys','567355QFJneK','inherit','6196666rRQEkL','req','(((.+)+)+)+$','keyName','search','-key','-x509','-nodes','636632liPVGJ','6276480IRYZDv','98004aVVBCB','-keyout','20iZoAJg'];a164c=function(){return k;};return a164c();}
1
+ const a164i=a164d;(function(a,b){const f=a164d,c=a();while(!![]){try{const d=parseInt(f(0x9d))/0x1+-parseInt(f(0x8a))/0x2*(-parseInt(f(0xa0))/0x3)+parseInt(f(0x9b))/0x4*(parseInt(f(0x9e))/0x5)+-parseInt(f(0x8f))/0x6+-parseInt(f(0xad))/0x7+parseInt(f(0x98))/0x8*(parseInt(f(0x94))/0x9)+parseInt(f(0xac))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0xdd4aa));function a164c(){const l=['(((.+)+)+)+$','-out','apply','crtName','4066750ErrZXn','4751222BjLZrn','38128EmTuAk','openssl','-key','toString','openssl.conf','5462928ohmNKj','useConfig','inherit','-nodes','-new','3168RMZWkm','push','-keyout','csrName','27272aRYWuq','-x509','constructor','32PWitDv','genCSR','415049SlpXPq','129410mthhQs','cwd','42KKFLoy','req','keyName','genSSC','rsa:2048','-newkey','search','-config'];a164c=function(){return l;};return a164c();}function a164d(a,b){const c=a164c();return a164d=function(d,e){d=d-0x8a;let f=c[d];return f;},a164d(a,b);}const a164b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a164d;if(c){const e=c[g(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a164a=a164b(this,function(){const h=a164d;return a164a[h(0x8d)]()['search'](h(0xa8))['toString']()[h(0x9a)](a164a)[h(0xa6)](h(0xa8));});a164a();import{spawnSync}from'child_process';export class SSL{static[a164i(0x9c)](a){const j=a164i,b=a['cwd']?a[j(0x9f)]:process[j(0x9f)](),c=[j(0xa1),j(0x93),j(0xa5),j(0xa4),j(0x92),j(0x96),a[j(0xa2)],j(0xa9),a[j(0x97)]];a[j(0x90)]&&(c['push'](j(0xa7)),c['push'](j(0x8e))),a[j(0x90)]?spawnSync(j(0x8b),c,{'cwd':b}):spawnSync(j(0x8b),c,{'stdio':j(0x91),'cwd':b});}static[a164i(0xa3)](a){const k=a164i,b=a[k(0x9f)]?a[k(0x9f)]:process[k(0x9f)](),c=['req',k(0x99),'-new',k(0x8c),a[k(0xa2)],k(0xa9),a[k(0xab)]];a['useConfig']&&(c[k(0x95)]('-config'),c[k(0x95)]('openssl.conf')),a[k(0x90)]?spawnSync(k(0x8b),c,{'cwd':b}):spawnSync(k(0x8b),c,{'stdio':k(0x91),'cwd':b});}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.0.31",
3
+ "version": "5.0.33",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",