@maka/maka-cli 4.7.29 → 4.8.0

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 (147) 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/proxy.js +1 -1
  84. package/bundle/obf/src/commands/reconfig.js +1 -1
  85. package/bundle/obf/src/commands/run/_index.js +1 -1
  86. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/run/run.command.js +1 -1
  88. package/bundle/obf/src/commands/set/_index.js +1 -1
  89. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  90. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  91. package/bundle/obf/src/commands/set/set.command.js +1 -1
  92. package/bundle/obf/src/commands/ssh.js +1 -1
  93. package/bundle/obf/src/commands/ssl.js +1 -1
  94. package/bundle/obf/src/commands/test.js +1 -1
  95. package/bundle/obf/src/commands/version.js +1 -1
  96. package/bundle/obf/src/error.js +1 -1
  97. package/bundle/obf/src/exec.js +1 -1
  98. package/bundle/obf/src/generator.js +1 -1
  99. package/bundle/obf/src/generators/_index.js +1 -1
  100. package/bundle/obf/src/generators/api.js +1 -1
  101. package/bundle/obf/src/generators/collection.js +1 -1
  102. package/bundle/obf/src/generators/component.js +1 -1
  103. package/bundle/obf/src/generators/config.js +1 -1
  104. package/bundle/obf/src/generators/dbc.js +1 -1
  105. package/bundle/obf/src/generators/dockerfile.js +1 -1
  106. package/bundle/obf/src/generators/hook.js +1 -1
  107. package/bundle/obf/src/generators/kits/_index.js +1 -1
  108. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  109. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  110. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  111. package/bundle/obf/src/generators/kits/kit.js +1 -1
  112. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  113. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  114. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  115. package/bundle/obf/src/generators/layout.js +1 -1
  116. package/bundle/obf/src/generators/maka.gen.js +1 -1
  117. package/bundle/obf/src/generators/methods.js +1 -1
  118. package/bundle/obf/src/generators/package.js +1 -1
  119. package/bundle/obf/src/generators/page.js +1 -1
  120. package/bundle/obf/src/generators/publish.js +1 -1
  121. package/bundle/obf/src/generators/route.js +1 -1
  122. package/bundle/obf/src/generators/service.js +1 -1
  123. package/bundle/obf/src/generators/services/_index.js +1 -1
  124. package/bundle/obf/src/generators/services/openssl.js +1 -1
  125. package/bundle/obf/src/generators/services/translation.js +1 -1
  126. package/bundle/obf/src/maka.js +1 -1
  127. package/bundle/obf/src/templates/meteor/project/package.json +1 -1
  128. package/bundle/obf/src/tool.js +1 -1
  129. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  130. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  131. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  133. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  134. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  135. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  136. package/bundle/obf/src/tools/https/https.class.js +1 -1
  137. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  138. package/bundle/obf/src/tools/log/log.class.js +1 -1
  139. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  140. package/bundle/obf/src/tools/options/options.class.js +1 -1
  141. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  142. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  143. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  144. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  145. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  146. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  147. package/package.json +1 -1
@@ -1 +1 @@
1
- const a20T=a20d;(function(a,b){const Q=a20d,c=a();while(!![]){try{const d=parseInt(Q(0x1c4))/0x1*(parseInt(Q(0x222))/0x2)+-parseInt(Q(0x202))/0x3*(parseInt(Q(0x228))/0x4)+parseInt(Q(0x185))/0x5*(-parseInt(Q(0x20a))/0x6)+parseInt(Q(0x1d7))/0x7*(parseInt(Q(0x20b))/0x8)+parseInt(Q(0x217))/0x9*(parseInt(Q(0x223))/0xa)+-parseInt(Q(0x22f))/0xb+-parseInt(Q(0x229))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x5ac99));const a20b=(function(){let a=!![];return function(b,c){const d=a?function(){const R=a20d;if(c){const e=c[R(0x21e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){const S=a20d;return a20a[S(0x212)]()[S(0x1e1)]('(((.+)+)+)+$')[S(0x212)]()[S(0x1a1)](a20a)[S(0x1e1)](S(0x1eb));});a20a();import a20e from'path';import a20f from'fs';function a20d(a,b){const c=a20c();return a20d=function(d,e){d=d-0x171;let f=c[d];return f;},a20d(a,b);}import{execSync}from'child_process';import a20g from'cli-color';import a20h from'../generators/maka.gen.js';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Command[a20T(0x1fd)]({'name':'create','aliases':['c'],'minArgLength':0x0,'maxArgLength':0x2,'usage':a20T(0x1e9),'shortDesc':'Create\x20a\x20new\x20Maka\x20Meteor\x20project','validOpts':[a20T(0x1d8),'js','css',a20T(0x1d3),a20T(0x1cc),a20T(0x1bc),a20T(0x210),a20T(0x221),a20T(0x20e),'withHooks',a20T(0x1b4),a20T(0x22e),a20T(0x1c3)],'description':a20T(0x1e4),'mustBeInMakaProject':![],'examples':[a20T(0x1c5),a20T(0x187),a20T(0x17a),'maka\x20create\x20ssr-app\x20--ssr',a20T(0x1dc)]},async function(a,b){const U=a20T;try{if(this[U(0x225)]['isMeteorInstalled']())Log['notice'](U(0x19d));else throw Log[U(0x20c)](U(0x1da));let c=a[0x0];(!c||c[U(0x181)]===0x0)&&(c=await Actions[U(0x1fa)](U(0x200)));if(!b['force']&&this[U(0x225)]['isDirectory'](c))throw Log['error'](U(0x239));else{if(this[U(0x225)][U(0x193)](c)){const x=await Actions[U(0x1f7)](U(0x1db),![]);if(!x)throw Log[U(0x20c)](U(0x194));}}if(!b['js']){const y={'type':U(0x21f),'name':U(0x17c),'message':U(0x230),'choices':[U(0x191),'Typescript']},{typescriptAnswer:z}=await Actions[U(0x177)](y);z[U(0x189)]()===U(0x1a2)&&(b['js']='ts');}if(!b[U(0x1a3)]){const A={'type':'list','name':U(0x178),'message':U(0x1de),'choices':[U(0x1e3),U(0x1ce)]},{reactAnswer:B}=await Actions[U(0x177)](A);B[U(0x189)]()===U(0x206)&&(b['withHooks']=!![]);}if(!b[U(0x1bc)]){const C={'type':'list','name':'testAnswer','message':U(0x231),'choices':[{'name':U(0x1fc),'value':U(0x1be)},{'name':U(0x1ac),'value':U(0x1ee)},{'name':U(0x1e2),'value':U(0x22b)}]},{testAnswer:D}=await Actions[U(0x177)](C);D&&(b[U(0x1bc)]=D);}if(!b['theme']){const E={'type':'list','name':U(0x1b8),'message':U(0x1df),'choices':[{'name':U(0x1aa),'value':U(0x17e)},{'name':U(0x1e2),'value':U(0x22b)}]},{themeAnswer:F}=await Actions[U(0x177)](E);F&&(b[U(0x221)]=F);if(!b['css']){const G={'type':'list','name':U(0x1a7),'message':U(0x201),'choices':[{'name':'CSS','value':U(0x1b7)},{'name':U(0x1f8),'value':U(0x21b)},{'name':'LESS','value':U(0x1d9)},{'name':U(0x1e2),'value':U(0x22b)}]},{cssAnswer:H}=await Actions[U(0x177)](G);H&&(b[U(0x1b7)]=H);}}if(!b[U(0x1b4)]){const I=await Actions['confirm'](U(0x175),![]);I&&(b[U(0x1b4)]=!![]);}const d=[];!b[U(0x210)]&&d[U(0x1d6)]({'name':U(0x19e),'value':U(0x218)});!b['api']&&d['push']({'name':'REST','value':U(0x1d0)});if(d[U(0x181)]>0x0){const J={'type':U(0x21d),'name':U(0x216),'message':U(0x1c7),'pageSize':0x64,'default':0x0,'choices':d},{apiAnswers:K}=await Actions[U(0x177)](J);K['forEach'](L=>{const V=U;L===V(0x218)&&(b['graphql']=L),L===V(0x1d0)&&(b[V(0x1d3)]=L),L===V(0x22e)&&(b['rpc']=L);});if(!b['graphql']){const L=await Actions[U(0x1f7)]('Enable\x20server-side\x20rendering\x20(ssr)');L&&(b[U(0x20e)]=U(0x1f4));}}const f=await Actions['confirm'](U(0x1fb)+a20g['greenBright'](c),!![]);if(!f)throw Log[U(0x20c)](U(0x194));const g=await this[U(0x225)][U(0x1ae)](),h=g[U(0x1cf)];h&&(Log[U(0x184)](U(0x19a)+h),c=a20e['join'](h,c));const i=c,j=c,k=b[U(0x171)](U(0x1f1)),l={'appName':i,'engines':{'html':b['html']||U(0x1d8),'js':b['js']||'js','css':b['css']||U(0x1b7),'api':b[U(0x1d3)]||U(0x22b),'client':b[U(0x1cc)]||'react','test':b[U(0x1bc)]||'none','graphql':b['graphql']||'none','theme':b[U(0x221)]||U(0x22b),'ssr':b['ssr']?'true':U(0x197)},'features':{'withHooks':b[U(0x1a3)]||![],'withTranslations':b[U(0x1b4)]||![]},'template':{'html':!b[U(0x171)](U(0x176))&&!b[U(0x171)](U(0x208)),'js':!b[U(0x171)](U(0x199))&&!b[U(0x171)](U(0x1f5)),'css':b[U(0x1b7)]!==U(0x22b),'test':!b['hasOwnProperty'](U(0x188))&&!b[U(0x171)](U(0x1ef))},'route':{'template':!b['hasOwnProperty']('skip-route-template')},'generator':{'comments':!b[U(0x171)](U(0x237))}};l[U(0x1c0)]['graphql']!==U(0x22b)&&(l[U(0x1c0)][U(0x210)]=U(0x218));l[U(0x1c0)]['client']===U(0x17d)||l['engines'][U(0x1cc)]==='reflux'?(l['engines']['js']==='ts'&&(l[U(0x1c0)]['js']=U(0x21c)),l[U(0x1c0)]['js']==='js'&&(l[U(0x1c0)]['js']=U(0x205)),l[U(0x207)][U(0x1d8)]=![]):(l[U(0x1c0)]['js']===U(0x21c)&&(l[U(0x1c0)]['js']='ts'),l[U(0x1c0)]['js']===U(0x205)&&(l['engines']['js']='js'));l[U(0x1c0)][U(0x1cc)]==='vanilla'&&(l[U(0x1c0)]['js']='js',l[U(0x1c0)]['graphql']='none',l[U(0x1c0)][U(0x221)]=U(0x22b),l[U(0x1c0)]['ssr']=U(0x197),l[U(0x1b9)][U(0x207)]=![],l['template'][U(0x1d8)]=![]);l[U(0x1c0)]['ssr']===U(0x1f4)&&(l[U(0x1c0)][U(0x1cc)]!==U(0x17d)&&l['engines'][U(0x1cc)]!==U(0x1f6)&&(Log[U(0x20c)](U(0x182)),l[U(0x1c0)][U(0x20e)]='false'),(l[U(0x1c0)]['api']===U(0x210)||l[U(0x1c0)][U(0x210)]===U(0x218))&&(Log[U(0x20c)](U(0x1b2)),Log[U(0x20c)](U(0x18d)),l[U(0x1c0)]['ssr']=U(0x197)));if(l[U(0x1c0)]['ssr']===U(0x1f4)){}const m={'app':i,'config':l,'appPath':a20e[U(0x1c1)](j,'app'),'bundlePath':a20e['join'](j,U(0x1ad),U(0x1c8)),'useCert':this['fsi']['isFile'](g[U(0x22c)])};let n=[];l[U(0x1c0)][U(0x20e)]==='true'?n=[U(0x1dd),U(0x1b3),'/app/imports/startup/client/templates.js.tsx',U(0x209)]:n=[U(0x204),'/app/imports/startup/lib/routes.js.jsx',U(0x1ab),'/app/imports/startup/lib/routes.js.tsx'];l[U(0x1c0)]['js']!==U(0x1cb)&&n[U(0x1d6)]('/app/imports/ui/test-helpers.js');l[U(0x1c0)]['js']!=='ts'&&l[U(0x1c0)]['js']!==U(0x21c)&&(n['push']('app/meteor.d.ts'),n[U(0x1d6)]('app/maka.d.ts'),n[U(0x1d6)](U(0x1a8)));l[U(0x1c0)][U(0x1cc)]==='vanilla'&&n[U(0x1d6)](U(0x195));const o=[];o[U(0x1d6)](U(0x1c9)),n[U(0x1d6)](U(0x234)),n[U(0x1d6)]('/app/public/sw.js.tsx'),n[U(0x1d6)]('/app/public/sw.js.ts'),n[U(0x1d6)](U(0x190)),n['push'](U(0x22a));const p=[],q=[],r=[],s=[],t=a20e[U(0x1c1)](j,'app'),u=Log[U(0x17f)]();await this['fsi'][U(0x213)]({'srcPath':U(0x1e8),'destPath':j,'context':m,'ignore':n,'config':l}),a20f[U(0x18b)](j+a20e[U(0x1b6)]+U(0x1f3),j+a20e[U(0x1b6)]+U(0x1f2)),u[U(0x180)](U(0x1e7)),await this[U(0x225)][U(0x227)](U(0x226),{'cwd':j,...b}),u[U(0x1d1)](),await this[U(0x225)][U(0x213)]({'srcPath':U(0x226),'destPath':t,'context':m,'ignore':n,'keep':o,'config':l}),await this[U(0x225)][U(0x1b5)](l,a20e[U(0x1c1)](j,'.maka','config.json'));const v=l['engines'][U(0x1cc)]===U(0x17d)?U(0x1a9):'template';Log[U(0x184)](U(0x1ec)),await a20h[U(0x1a4)](v,[U(0x1d5)],{'cwd':j,'root':!![],'config':l}),await a20h[U(0x1a4)](v,[U(0x1d2)],{'cwd':j,'root':!![],'config':l}),await a20h['processAndRunGenerator']('route',[U(0x1e0),'/'],{'cwd':j,'root':!![],'config':l}),await a20h['processAndRunGenerator']('page',[U(0x1e0)],{'cwd':j,'root':!![],'config':l}),await a20h[U(0x1a4)](U(0x173),[U(0x203)],{'cwd':j,'root':!![],'config':l}),await a20h['processAndRunGenerator'](U(0x1f0),[U(0x1b0)],{'cwd':j,'root':!![],'config':l});l[U(0x18f)][U(0x1b4)]&&(await a20h[U(0x1a4)]('translation',[U(0x20d)],{'lang':'en','cwd':j,'root':!![],'config':l}),p[U(0x1d6)](U(0x1a0)));!b[U(0x171)](U(0x211))&&m[U(0x1f0)]['engines'][U(0x1cc)]===U(0x1cb)&&r[U(0x1d6)]('kadira:flow-router\x20kadira:blaze-layout');p['push']('crypto'),p[U(0x1d6)](U(0x1d4)),r['push'](U(0x219));if(l[U(0x1c0)]['client']===U(0x17d)||l[U(0x1c0)][U(0x1cc)]==='reflux'){if(l[U(0x1c0)]['test']===U(0x1be))r[U(0x1d6)](U(0x18c)),q[U(0x1d6)](U(0x1f9)),l[U(0x1c0)][U(0x210)]===U(0x218)&&q[U(0x1d6)](U(0x1af));else l[U(0x1c0)][U(0x1bc)]===U(0x1ee)&&(r['push'](U(0x1ba)),q[U(0x1d6)](U(0x1f9)),l[U(0x1c0)]['graphql']===U(0x218)&&q[U(0x1d6)](U(0x1af)));}else{if(l['engines'][U(0x1bc)]===U(0x1be))r['push'](U(0x18c)),q[U(0x1d6)](U(0x1bb));else l[U(0x1c0)][U(0x1bc)]===U(0x1ee)&&(r[U(0x1d6)]('jquery\x20meteortesting:mocha\x20meteortesting:mocha\x20xolvio:cleaner\x20hwillson:stub-collections\x20practicalmeteor:chai\x20dburles:factory\x20velocity:meteor-stubs\x20practicalmeteor:sinon'),q[U(0x1d6)](U(0x19f)));}l[U(0x1c0)][U(0x1d3)]!==U(0x22b)&&(l[U(0x1c0)][U(0x1d3)]===U(0x210)&&(l[U(0x1c0)][U(0x210)]=U(0x218)));l[U(0x207)][U(0x1b7)]&&(l['engines'][U(0x1b7)]=='less'&&r[U(0x1d6)]('less'),l[U(0x1c0)][U(0x1b7)]=='scss'&&r['push'](U(0x17b)));if(l[U(0x207)]['js']){if(l[U(0x1c0)]['js']=='coffee')r[U(0x1d6)](U(0x198));}if(l[U(0x207)][U(0x1d8)]){if(l[U(0x1c0)][U(0x1d8)]==='jade')r[U(0x1d6)]('mquandalle:jade');}(l[U(0x1c0)]['js']==='ts'||l[U(0x1c0)]['js']===U(0x21c))&&(r['push'](U(0x1a2)),q['push']('@types/meteor'),q[U(0x1d6)]('@types/mocha'),q[U(0x1d6)](U(0x174)),q[U(0x1d6)](U(0x1a6)),l['engines'][U(0x1bc)]!==U(0x22b)&&q[U(0x1d6)](U(0x1c2)));p['push'](U(0x1bd));'js'in b&&b['js']?.[U(0x189)]()==='es6'&&r['push'](U(0x1ca));p['push'](U(0x1e6));(l[U(0x1c0)]['client']==='react'||l['engines']['client']==='reflux')&&(r[U(0x1d6)](U(0x220)),l[U(0x1c0)][U(0x1bc)]!=='none'?p[U(0x1d6)](U(0x238)):p[U(0x1d6)]('react\x20react-dom'),p[U(0x1d6)](U(0x183)));l[U(0x1c0)]['client']===U(0x1f6)&&p[U(0x1d6)]('reflux');l[U(0x1c0)][U(0x210)]===U(0x218)&&(p[U(0x1d6)](U(0x21a)),p[U(0x1d6)](U(0x192)),p[U(0x1d6)](U(0x1ea)),r[U(0x1d6)](U(0x218)));l[U(0x1c0)][U(0x221)]==='material'&&p[U(0x1d6)]('@mui/icons-material\x20@mui/material\x20@emotion/styled\x20@mui/system');l[U(0x1c0)][U(0x20e)]&&p[U(0x1d6)]('@emotion/server');l['engines'][U(0x20e)]===U(0x1f4)&&(p['push']('react-router-dom@5.3.0\x20styled-components\x20history@3.3.0'),r[U(0x1d6)]('server-render'));(l[U(0x1c0)][U(0x1bc)]===U(0x1be)||l[U(0x1c0)]['ssr']===U(0x1f4)||l['engines'][U(0x1cc)]==='react'||l[U(0x1c0)][U(0x1cc)]===U(0x1f6))&&(l['engines'][U(0x1cc)]!==U(0x1cb)&&r[U(0x1d6)](U(0x1bf)));l['engines']['ssr']===U(0x1f4)&&l[U(0x1c0)]['graphql']===U(0x218)&&p[U(0x1d6)](U(0x233));l[U(0x1c0)][U(0x1cc)]===U(0x179)&&(s[U(0x1d6)](U(0x23b)),r[U(0x1d6)](U(0x224)));l[U(0x1c0)][U(0x1cc)]===U(0x1cb)&&(r[U(0x1d6)](U(0x215)),s[U(0x1d6)](U(0x1bf)));r['push'](U(0x19c)),Log[U(0x184)](U(0x1ed)),await this[U(0x225)]['initNpm']({'cwd':t,'isSelfTest':k}),await this[U(0x225)][U(0x1e5)](p[U(0x1c1)]('\x20'),{'cwd':t,'isSelfTest':k}),await this[U(0x225)][U(0x1e5)](q['join']('\x20'),{'cwd':t,'isSelfTest':k,'dev':!![]});r[U(0x181)]>0x0&&await this[U(0x225)][U(0x1ff)](r['join']('\x20'),{'cwd':t,'isSelfTest':k});s['length']>0x0&&await this['fsi'][U(0x23a)](s[U(0x1c1)]('\x20'),{'cwd':t,'isSelfTest':k});try{const M=new Date(),N=a20e[U(0x1c1)](j);execSync(U(0x1cd)+N+U(0x18e),{'stdio':'ignore'}),execSync(U(0x232)+N+U(0x1a5)+N+U(0x186)+M[U(0x1fe)]()+'\x22',{'stdio':U(0x235)});}catch(O){Log[U(0x1c6)](U(0x20f));}Log[U(0x1d1)](U(0x214)+i);h&&h!==process[U(0x1b1)]()&&Log['success'](U(0x172)+h);const w=process[U(0x236)]===U(0x196);w&&(Log[U(0x184)](U(0x22d)),Log[U(0x184)]('\x20\x20Open\x20an\x20administrative\x20PowerShell\x20terminal,\x20then\x20run:\x20'),Log['notice'](U(0x19b)+a20e[U(0x1c1)](j)+'\x22'));}catch(P){Log[U(0x20c)](P),process[U(0x18a)](0x0);}});function a20c(){const W=['ssr','Cannot\x20init\x20git,\x20do\x20you\x20have\x20git\x20installed?','graphql','skip-flow-router','toString','copyTemplateDirectory','Created\x20','blaze-html-templates','apiAnswers','3384DbrFGM','apollo','autoupdate','graphql\x20graphql-type-json@0.2.4\x20isomorphic-fetch','scss','tsx','checkbox','apply','list','react-meteor-data','theme','8196KPyEVi','5710DhRMFz','static-html\x20jquery','fsi','app','createEmptyMeteorProject','20ZhNVpv','3192444NWqqdN','/app/imports/ui/test-helpers.js.tsx','none','cert','For\x20improved\x20performance,\x20consider\x20whitelisting\x20the\x20following\x20from\x20windows\x20defender.','rpc','1381952mrJTQC','Use\x20Typescript\x20or\x20Javascript','Test\x20with\x20Jasmine\x20or\x20Mocha','git\x20-C\x20','isomorphic-fetch','/app/public/sw.js.jsx','ignore','platform','skip-generator-comments','react\x20react-dom\x20react-test-renderer','Project\x20already\x20exists.','removeMeteorPackage','blaze-html-templates\x20tracker','hasOwnProperty','\x20in\x20workspace\x20','page','@types/ramda','Use\x20i18n\x20Translations','skip-template-html','options','reactAnswer','vanilla','maka\x20create\x20gql-service\x20--graphql=apollo','fourseven:scss','typescriptAnswer','react','material','withSpinner','start','length','SSR\x20is\x20not\x20supported\x20on\x20any\x20other\x20client\x20than\x20react\x20or\x20reflux','react-router@3.2.4\x20prop-types\x20@emotion/react','notice','985peDFgX','\x20commit\x20-m\x20\x22Maka-CLI\x20init\x20@\x20','maka\x20create\x20material-app\x20--theme=material','skip-testing','toLowerCase','exit','renameSync','sanjo:jasmine\x20maka:html-reporter\x20velocity:console-reporter\x20dburles:factory','https://github.com/apollographql/meteor-integration/issues/133','\x20--initial-branch=main','features','/app/imports/ui/test-helpers.js.jsx','Javascript','@apollo/link-context\x20@apollo/react-hooks\x20@apollo/client\x20graphql-type-json@0.2.4','isDirectory','Aborted','/app/imports/startup/client/template.js','win32','false','coffeescript','skip-template-js','Creating\x20project\x20in\x20workspace:\x20','\x20\x20\x20\x20Add-MpPreference\x20-ExclusionPath\x20\x22','mongo','Meteor\x20is\x20installed.','GraphQL','nightmare\x20phantomjs-prebuilt\x20chai\x20meteor-node-stubs','i18next\x20i18next-browser-languagedetector\x20react-i18next','constructor','typescript','withHooks','processAndRunGenerator','\x20add\x20.\x20&&\x20git\x20-C\x20','@types/react-dom','cssAnswer','app/tsconfig.json','layout','Material-UI','/app/imports/startup/lib/templates.js.tsx','Mocha','build','getGlobalConfig','@apollo/react-testing','development','cwd','SSR\x20with\x20GraphQL\x20is\x20not\x20supported.','/app/imports/startup/client/routes.js.jsx','withTranslations','saveInit','sep','css','themeAnswer','route','jquery\x20meteortesting:mocha\x20meteortesting:mocha\x20xolvio:cleaner\x20hwillson:stub-collections\x20practicalmeteor:chai\x20dburles:factory\x20velocity:meteor-stubs\x20practicalmeteor:sinon','meteor-node-stubs','test','meteor-node-stubs\x20ramda','jasmine','static-html','engines','join','@types/testing-library__react','force','29pMhGcX','maka\x20create\x20my-app','warn','API','app.tar.gz','/app/public/sw.js','grigio:babel','blaze','client','git\x20init\x20','Hooks','workspace','rest','success','private-layout','api','helmet','master-layout','push','344407gLqguR','html','less','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x0a\x20Run\x20`npm\x20i\x20-g\x20meteor`','You\x20are\x20forcing\x20to\x20create\x20a\x20meteor\x20project\x20in\x20an\x20existing\x20directory.\x20You\x20sure?','maka\x20create\x20testable-app\x20--test=mocha','/app/imports/startup/client/templates.js.jsx','React\x20Components\x20or\x20Hooks','UI\x20Theming','home','search','None','Components','\x0a\x20\x20Create\x20a\x20new\x20maka\x20meteor\x20project.\x0a\x0a\x20\x20Without\x20any\x20arguments,\x20you\x20will\x20be\x20prompted\x20for\x20project\x20settings\x20such\x20as\x0a\x20\x20including\x20GraphQL,\x20preferring\x20React\x20Hooks\x20or\x20Components,\x0a\x20\x20Typescript\x20or\x20Javascript,\x20and\x20a\x20few\x20others.\x0a\x0a\x20\x20You\x20can\x20also\x20pass\x20in\x20arguments\x20to\x20the\x20create\x20command\x20to\x20skip\x20the\x20prompts.\x0a\x20\x20For\x20example,\x20`maka\x20create\x20my-app\x20--js=ts\x20--theme=material`\x20will\x20create\x20a\x0a\x20\x20new\x20maka\x20meteor\x20project\x20named\x20`my-app`\x20with\x20Typescript\x20and\x20Material-UI.\x0a\x20\x20','installNpmPackage','@babel/runtime@latest','Preparing\x20Meteor\x20Project','project','maka\x20create\x20<name>','express\x20@apollo/server\x20@apollo/server-plugin-landing-page-graphql-playground','(((.+)+)+)+$','Project\x20scaffolded,\x20running\x20generators\x20in\x20project\x20directory...','Running\x20post\x20creation\x20tasks','mocha','skip-tests','config','self-test','.gitignore','gitignore','true','skip-js','reflux','confirm','SCSS','meteor-node-stubs\x20@testing-library/react','ask','Please\x20review\x20choices,\x20ready\x20to\x20scaffold\x20','Jasmine','create','toUTCString','installMeteorPackage','App\x20Name:','CSS\x20Style','100830KOmQTQ','not-found','/app/imports/startup/lib/templates.js.jsx','jsx','hooks','template','skip-html','/app/imports/startup/client/routes.js.tsx','1266vhGmLJ','104jwxCvm','error','translations'];a20c=function(){return W;};return a20c();}
1
+ const a20T=a20d;(function(a,b){const Q=a20d,c=a();while(!![]){try{const d=parseInt(Q(0x189))/0x1*(-parseInt(Q(0x1b6))/0x2)+-parseInt(Q(0x228))/0x3+parseInt(Q(0x1a3))/0x4+-parseInt(Q(0x1b4))/0x5+-parseInt(Q(0x235))/0x6+-parseInt(Q(0x1bf))/0x7*(parseInt(Q(0x1ab))/0x8)+-parseInt(Q(0x1e7))/0x9*(-parseInt(Q(0x20d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xa34f1));const a20b=(function(){let a=!![];return function(b,c){const d=a?function(){const R=a20d;if(c){const e=c[R(0x210)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){const S=a20d;return a20a[S(0x1d6)]()[S(0x17e)](S(0x178))[S(0x1d6)]()[S(0x1bb)](a20a)[S(0x17e)](S(0x178));});a20a();import a20e from'path';import a20f from'fs';import{execSync}from'child_process';import a20g from'cli-color';import a20h from'../generators/maka.gen.js';function a20d(a,b){const c=a20c();return a20d=function(d,e){d=d-0x176;let f=c[d];return f;},a20d(a,b);}import{Command}from'../command.js';function a20c(){const W=['713615EcqHoU','.gitignore','cert','force','join','reflux','blaze-html-templates\x20tracker','react-meteor-data','layout','Material-UI','https://github.com/apollographql/meteor-integration/issues/133','React\x20Components\x20or\x20Hooks','meteor-node-stubs\x20@testing-library/react','coffee','SCSS','skip-js','installMeteorPackage','workspace','express\x20@apollo/server\x20@apollo/server-plugin-landing-page-graphql-playground','Test\x20with\x20Jasmine\x20or\x20Mocha','tsx','kadira:flow-router\x20kadira:blaze-layout','error','toString','hasOwnProperty','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x0a\x20Run\x20`npm\x20i\x20-g\x20meteor`','static-html','coffeescript','Cannot\x20init\x20git,\x20do\x20you\x20have\x20git\x20installed?','Enable\x20server-side\x20rendering\x20(ssr)','skip-route-template','@types/testing-library__react','@apollo/react-testing','Meteor\x20is\x20installed.','API','getGlobalConfig','css','ssr','home','\x20in\x20workspace\x20','9MTnriY','fourseven:scss','/app/imports/startup/lib/templates.js.jsx','isomorphic-fetch','blaze-html-templates','template','/app/imports/startup/client/routes.js.tsx','typescriptAnswer','/app/public/sw.js.jsx','mocha','gitignore','jquery\x20meteortesting:mocha\x20meteortesting:mocha\x20xolvio:cleaner\x20hwillson:stub-collections\x20practicalmeteor:chai\x20dburles:factory\x20velocity:meteor-stubs\x20practicalmeteor:sinon','react-router-dom@5.3.0\x20styled-components\x20history@3.3.0','react','helmet','sep','ask','maka\x20create\x20ssr-app\x20--ssr','withHooks','checkbox','mquandalle:jade','vanilla','\x20--initial-branch=main','blaze','react\x20react-dom\x20react-test-renderer','None','notice','config','not-found','@types/ramda','\x20\x20Open\x20an\x20administrative\x20PowerShell\x20terminal,\x20then\x20run:\x20','reactAnswer','@types/meteor','ignore','Mocha','options','/app/imports/startup/client/routes.js.jsx','client','20282390NAlZeQ','/app/imports/startup/lib/templates.js.tsx','react-router@3.2.4\x20prop-types\x20@emotion/react','apply','app.tar.gz','false','translation','Created\x20','html','CSS','GraphQL','copyTemplateDirectory','git\x20init\x20','theme','win32','jade','greenBright','themeAnswer','maka\x20create\x20testable-app\x20--test=mocha','skip-generator-comments','api','/app/imports/startup/lib/routes.js.jsx','test','master-layout','create','length','cwd','232347sjgDHG','maka\x20create\x20<name>','graphql','hooks','route','static-html\x20jquery','app','Hooks','scss','installNpmPackage','jasmine','app/tsconfig.json','none','599238hmWXQd','start','project','You\x20are\x20forcing\x20to\x20create\x20a\x20meteor\x20project\x20in\x20an\x20existing\x20directory.\x20You\x20sure?','@types/react-dom','toUTCString','/app/imports/startup/client/templates.js.tsx','(((.+)+)+)+$','list','skip-template-html','Jasmine','/app/public/sw.js.tsx','skip-flow-router','search','\x20\x20\x20\x20Add-MpPreference\x20-ExclusionPath\x20\x22','/app/imports/ui/test-helpers.js','Project\x20scaffolded,\x20running\x20generators\x20in\x20project\x20directory...','Please\x20review\x20choices,\x20ready\x20to\x20scaffold\x20','jsx','true','\x20add\x20.\x20&&\x20git\x20-C\x20','mongo','apiAnswers','skip-testing','3xelMPl','grigio:babel','maka\x20create\x20my-app','/app/imports/startup/lib/routes.js.tsx','processAndRunGenerator','Javascript','/app/imports/startup/client/templates.js.jsx','@babel/runtime@latest','LESS','crypto','confirm','Project\x20already\x20exists.','isDirectory','push','saveInit','forEach','exit','createEmptyMeteorProject','initNpm','page','rest','engines','server-render','SSR\x20with\x20GraphQL\x20is\x20not\x20supported.','@mui/icons-material\x20@mui/material\x20@emotion/styled\x20@mui/system','renameSync','279024ISVVIE','Components','sanjo:jasmine\x20maka:html-reporter\x20velocity:console-reporter\x20dburles:factory','\x0a\x20\x20Create\x20a\x20new\x20maka\x20meteor\x20project.\x0a\x0a\x20\x20Without\x20any\x20arguments,\x20you\x20will\x20be\x20prompted\x20for\x20project\x20settings\x20such\x20as\x0a\x20\x20including\x20GraphQL,\x20preferring\x20React\x20Hooks\x20or\x20Components,\x0a\x20\x20Typescript\x20or\x20Javascript,\x20and\x20a\x20few\x20others.\x0a\x0a\x20\x20You\x20can\x20also\x20pass\x20in\x20arguments\x20to\x20the\x20create\x20command\x20to\x20skip\x20the\x20prompts.\x0a\x20\x20For\x20example,\x20`maka\x20create\x20my-app\x20--js=ts\x20--theme=material`\x20will\x20create\x20a\x0a\x20\x20new\x20maka\x20meteor\x20project\x20named\x20`my-app`\x20with\x20Typescript\x20and\x20Material-UI.\x0a\x20\x20','REST','UI\x20Theming','Aborted','/app/imports/ui/test-helpers.js.jsx','16DBXnpQ','apollo','features','nightmare\x20phantomjs-prebuilt\x20chai\x20meteor-node-stubs','withTranslations','Use\x20Typescript\x20or\x20Javascript','Creating\x20project\x20in\x20workspace:\x20','.maka','warn','2390895OBQbIz','/app/imports/ui/test-helpers.js.tsx','379794eASDqV','removeMeteorPackage','rpc','typescript','fsi','constructor','maka\x20create\x20material-app\x20--theme=material','less','success'];a20c=function(){return W;};return a20c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Command[a20T(0x225)]({'name':a20T(0x225),'aliases':['c'],'minArgLength':0x0,'maxArgLength':0x2,'usage':a20T(0x229),'shortDesc':'Create\x20a\x20new\x20Maka\x20Meteor\x20project','validOpts':[a20T(0x215),'js',a20T(0x1e3),a20T(0x221),a20T(0x20c),a20T(0x223),a20T(0x22a),a20T(0x21a),a20T(0x1e4),'withHooks',a20T(0x1af),a20T(0x1b8),a20T(0x1c2)],'description':a20T(0x1a6),'mustBeInMakaProject':![],'examples':[a20T(0x18b),a20T(0x1bc),'maka\x20create\x20gql-service\x20--graphql=apollo',a20T(0x1f8),a20T(0x21f)]},async function(a,b){const U=a20T;try{if(this[U(0x1ba)]['isMeteorInstalled']())Log[U(0x201)](U(0x1e0));else throw Log[U(0x1d5)](U(0x1d8));let c=a[0x0];(!c||c['length']===0x0)&&(c=await Actions[U(0x1f7)]('App\x20Name:'));if(!b[U(0x1c2)]&&this[U(0x1ba)][U(0x195)](c))throw Log[U(0x1d5)](U(0x194));else{if(this['fsi']['isDirectory'](c)){const x=await Actions[U(0x193)](U(0x238),![]);if(!x)throw Log[U(0x1d5)](U(0x1a9));}}if(!b['js']){const y={'type':U(0x179),'name':U(0x1ee),'message':U(0x1b0),'choices':[U(0x18e),'Typescript']},{typescriptAnswer:z}=await Actions['options'](y);z['toLowerCase']()===U(0x1b9)&&(b['js']='ts');}if(!b[U(0x1f9)]){const A={'type':U(0x179),'name':U(0x206),'message':U(0x1ca),'choices':[U(0x1a4),U(0x22f)]},{reactAnswer:B}=await Actions[U(0x20a)](A);B['toLowerCase']()===U(0x22b)&&(b[U(0x1f9)]=!![]);}if(!b['test']){const C={'type':U(0x179),'name':'testAnswer','message':U(0x1d2),'choices':[{'name':U(0x17b),'value':U(0x232)},{'name':U(0x209),'value':U(0x1f0)},{'name':'None','value':'none'}]},{testAnswer:D}=await Actions[U(0x20a)](C);D&&(b['test']=D);}if(!b[U(0x21a)]){const E={'type':U(0x179),'name':U(0x21e),'message':U(0x1a8),'choices':[{'name':U(0x1c8),'value':'material'},{'name':U(0x200),'value':'none'}]},{themeAnswer:F}=await Actions[U(0x20a)](E);F&&(b[U(0x21a)]=F);if(!b[U(0x1e3)]){const G={'type':U(0x179),'name':'cssAnswer','message':'CSS\x20Style','choices':[{'name':U(0x216),'value':U(0x1e3)},{'name':U(0x1cd),'value':U(0x230)},{'name':U(0x191),'value':'less'},{'name':U(0x200),'value':U(0x234)}]},{cssAnswer:H}=await Actions[U(0x20a)](G);H&&(b[U(0x1e3)]=H);}}if(!b[U(0x1af)]){const I=await Actions[U(0x193)]('Use\x20i18n\x20Translations',![]);I&&(b[U(0x1af)]=!![]);}const d=[];!b[U(0x22a)]&&d['push']({'name':U(0x217),'value':'apollo'});!b['api']&&d[U(0x196)]({'name':U(0x1a7),'value':U(0x19d)});if(d['length']>0x0){const J={'type':U(0x1fa),'name':U(0x187),'message':U(0x1e1),'pageSize':0x64,'default':0x0,'choices':d},{apiAnswers:K}=await Actions[U(0x20a)](J);K[U(0x198)](L=>{const V=U;L===V(0x1ac)&&(b[V(0x22a)]=L),L===V(0x19d)&&(b['api']=L),L==='rpc'&&(b[V(0x1b8)]=L);});if(!b[U(0x22a)]){const L=await Actions[U(0x193)](U(0x1dc));L&&(b[U(0x1e4)]=U(0x184));}}const f=await Actions['confirm'](U(0x182)+a20g[U(0x21d)](c),!![]);if(!f)throw Log[U(0x1d5)](U(0x1a9));const g=await this[U(0x1ba)][U(0x1e2)](),h=g[U(0x1d0)];h&&(Log['notice'](U(0x1b1)+h),c=a20e[U(0x1c3)](h,c));const i=c,j=c,k=b[U(0x1d7)]('self-test'),l={'appName':i,'engines':{'html':b[U(0x215)]||U(0x215),'js':b['js']||'js','css':b[U(0x1e3)]||U(0x1e3),'api':b[U(0x221)]||U(0x234),'client':b[U(0x20c)]||U(0x1f4),'test':b[U(0x223)]||U(0x234),'graphql':b[U(0x22a)]||U(0x234),'theme':b[U(0x21a)]||'none','ssr':b[U(0x1e4)]?U(0x184):U(0x212)},'features':{'withHooks':b[U(0x1f9)]||![],'withTranslations':b[U(0x1af)]||![]},'template':{'html':!b['hasOwnProperty'](U(0x17a))&&!b[U(0x1d7)]('skip-html'),'js':!b[U(0x1d7)]('skip-template-js')&&!b['hasOwnProperty'](U(0x1ce)),'css':b[U(0x1e3)]!==U(0x234),'test':!b[U(0x1d7)](U(0x188))&&!b['hasOwnProperty']('skip-tests')},'route':{'template':!b[U(0x1d7)](U(0x1dd))},'generator':{'comments':!b[U(0x1d7)](U(0x220))}};l[U(0x19e)][U(0x22a)]!=='none'&&(l[U(0x19e)][U(0x22a)]='apollo');l[U(0x19e)]['client']===U(0x1f4)||l[U(0x19e)][U(0x20c)]===U(0x1c4)?(l[U(0x19e)]['js']==='ts'&&(l[U(0x19e)]['js']=U(0x1d3)),l[U(0x19e)]['js']==='js'&&(l[U(0x19e)]['js']=U(0x183)),l[U(0x1ec)][U(0x215)]=![]):(l['engines']['js']===U(0x1d3)&&(l[U(0x19e)]['js']='ts'),l[U(0x19e)]['js']===U(0x183)&&(l[U(0x19e)]['js']='js'));l[U(0x19e)][U(0x20c)]===U(0x1fc)&&(l[U(0x19e)]['js']='js',l[U(0x19e)]['graphql']=U(0x234),l[U(0x19e)]['theme']=U(0x234),l[U(0x19e)][U(0x1e4)]=U(0x212),l[U(0x22c)][U(0x1ec)]=![],l['template']['html']=![]);l[U(0x19e)][U(0x1e4)]===U(0x184)&&(l[U(0x19e)]['client']!=='react'&&l['engines']['client']!=='reflux'&&(Log['error']('SSR\x20is\x20not\x20supported\x20on\x20any\x20other\x20client\x20than\x20react\x20or\x20reflux'),l['engines'][U(0x1e4)]=U(0x212)),(l[U(0x19e)]['api']===U(0x22a)||l[U(0x19e)][U(0x22a)]===U(0x1ac))&&(Log[U(0x1d5)](U(0x1a0)),Log['error'](U(0x1c9)),l[U(0x19e)][U(0x1e4)]=U(0x212)));if(l[U(0x19e)]['ssr']==='true'){}const m={'app':i,'config':l,'appPath':a20e['join'](j,'app'),'bundlePath':a20e[U(0x1c3)](j,'build',U(0x211)),'useCert':this[U(0x1ba)]['isFile'](g[U(0x1c1)])};let n=[];l[U(0x19e)][U(0x1e4)]===U(0x184)?n=[U(0x18f),U(0x20b),U(0x177),U(0x1ed)]:n=[U(0x1e9),U(0x222),U(0x20e),U(0x18c)];l[U(0x19e)]['js']!=='blaze'&&n[U(0x196)](U(0x180));l[U(0x19e)]['js']!=='ts'&&l['engines']['js']!=='tsx'&&(n[U(0x196)]('app/meteor.d.ts'),n['push']('app/maka.d.ts'),n[U(0x196)](U(0x233)));l[U(0x19e)]['client']===U(0x1fc)&&n[U(0x196)]('/app/imports/startup/client/template.js');const o=[];o[U(0x196)]('/app/public/sw.js'),n['push'](U(0x1ef)),n[U(0x196)](U(0x17c)),n['push']('/app/public/sw.js.ts'),n['push'](U(0x1aa)),n['push'](U(0x1b5));const p=[],q=[],r=[],s=[],t=a20e[U(0x1c3)](j,U(0x22e)),u=Log['withSpinner']();await this[U(0x1ba)][U(0x218)]({'srcPath':U(0x237),'destPath':j,'context':m,'ignore':n,'config':l}),a20f[U(0x1a2)](j+a20e[U(0x1f6)]+U(0x1f1),j+a20e['sep']+U(0x1c0)),u[U(0x236)]('Preparing\x20Meteor\x20Project'),await this[U(0x1ba)][U(0x19a)]('app',{'cwd':j,...b}),u['success'](),await this[U(0x1ba)][U(0x218)]({'srcPath':'app','destPath':t,'context':m,'ignore':n,'keep':o,'config':l}),await this[U(0x1ba)][U(0x197)](l,a20e[U(0x1c3)](j,U(0x1b2),'config.json'));const v=l['engines']['client']==='react'?U(0x1c7):U(0x1ec);Log['notice'](U(0x181)),await a20h['processAndRunGenerator'](v,[U(0x224)],{'cwd':j,'root':!![],'config':l}),await a20h[U(0x18d)](v,['private-layout'],{'cwd':j,'root':!![],'config':l}),await a20h[U(0x18d)](U(0x22c),['home','/'],{'cwd':j,'root':!![],'config':l}),await a20h[U(0x18d)](U(0x19c),[U(0x1e5)],{'cwd':j,'root':!![],'config':l}),await a20h[U(0x18d)](U(0x19c),[U(0x203)],{'cwd':j,'root':!![],'config':l}),await a20h[U(0x18d)]('config',['development'],{'cwd':j,'root':!![],'config':l});l[U(0x1ad)][U(0x1af)]&&(await a20h['processAndRunGenerator'](U(0x213),['translations'],{'lang':'en','cwd':j,'root':!![],'config':l}),p[U(0x196)]('i18next\x20i18next-browser-languagedetector\x20react-i18next'));!b[U(0x1d7)](U(0x17d))&&m[U(0x202)][U(0x19e)][U(0x20c)]==='blaze'&&r['push'](U(0x1d4));p['push'](U(0x192)),p[U(0x196)](U(0x1f5)),r['push']('autoupdate');if(l[U(0x19e)][U(0x20c)]===U(0x1f4)||l['engines']['client']==='reflux'){if(l['engines'][U(0x223)]===U(0x232))r['push'](U(0x1a5)),q[U(0x196)](U(0x1cb)),l['engines']['graphql']===U(0x1ac)&&q[U(0x196)](U(0x1df));else l['engines'][U(0x223)]===U(0x1f0)&&(r['push'](U(0x1f2)),q[U(0x196)](U(0x1cb)),l['engines'][U(0x22a)]===U(0x1ac)&&q[U(0x196)](U(0x1df)));}else{if(l['engines'][U(0x223)]===U(0x232))r[U(0x196)](U(0x1a5)),q[U(0x196)]('meteor-node-stubs');else l['engines']['test']==='mocha'&&(r[U(0x196)](U(0x1f2)),q['push'](U(0x1ae)));}l['engines'][U(0x221)]!==U(0x234)&&(l[U(0x19e)][U(0x221)]===U(0x22a)&&(l[U(0x19e)][U(0x22a)]=U(0x1ac)));l['template']['css']&&(l[U(0x19e)][U(0x1e3)]==U(0x1bd)&&r[U(0x196)](U(0x1bd)),l[U(0x19e)]['css']==U(0x230)&&r[U(0x196)](U(0x1e8)));if(l['template']['js']){if(l['engines']['js']==U(0x1cc))r[U(0x196)](U(0x1da));}if(l[U(0x1ec)][U(0x215)]){if(l[U(0x19e)][U(0x215)]===U(0x21c))r['push'](U(0x1fb));}(l[U(0x19e)]['js']==='ts'||l[U(0x19e)]['js']===U(0x1d3))&&(r[U(0x196)]('typescript'),q['push'](U(0x207)),q[U(0x196)]('@types/mocha'),q[U(0x196)](U(0x204)),q['push'](U(0x239)),l[U(0x19e)][U(0x223)]!==U(0x234)&&q[U(0x196)](U(0x1de)));p[U(0x196)]('meteor-node-stubs\x20ramda');'js'in b&&b['js']?.['toLowerCase']()==='es6'&&r[U(0x196)](U(0x18a));p[U(0x196)](U(0x190));(l['engines'][U(0x20c)]==='react'||l[U(0x19e)][U(0x20c)]===U(0x1c4))&&(r[U(0x196)](U(0x1c6)),l['engines'][U(0x223)]!==U(0x234)?p[U(0x196)](U(0x1ff)):p[U(0x196)]('react\x20react-dom'),p[U(0x196)](U(0x20f)));l['engines'][U(0x20c)]===U(0x1c4)&&p['push'](U(0x1c4));l[U(0x19e)][U(0x22a)]===U(0x1ac)&&(p[U(0x196)]('graphql\x20graphql-type-json@0.2.4\x20isomorphic-fetch'),p[U(0x196)]('@apollo/link-context\x20@apollo/react-hooks\x20@apollo/client\x20graphql-type-json@0.2.4'),p[U(0x196)](U(0x1d1)),r[U(0x196)](U(0x1ac)));l[U(0x19e)][U(0x21a)]==='material'&&p[U(0x196)](U(0x1a1));l[U(0x19e)][U(0x1e4)]&&p['push']('@emotion/server');l['engines']['ssr']===U(0x184)&&(p[U(0x196)](U(0x1f3)),r[U(0x196)](U(0x19f)));(l[U(0x19e)]['test']===U(0x232)||l[U(0x19e)]['ssr']==='true'||l['engines'][U(0x20c)]==='react'||l['engines'][U(0x20c)]==='reflux')&&(l[U(0x19e)][U(0x20c)]!=='blaze'&&r['push'](U(0x1d9)));l[U(0x19e)][U(0x1e4)]===U(0x184)&&l[U(0x19e)][U(0x22a)]===U(0x1ac)&&p[U(0x196)](U(0x1ea));l['engines'][U(0x20c)]===U(0x1fc)&&(s[U(0x196)](U(0x1c5)),r[U(0x196)](U(0x22d)));l[U(0x19e)][U(0x20c)]===U(0x1fe)&&(r['push'](U(0x1eb)),s[U(0x196)]('static-html'));r[U(0x196)](U(0x186)),Log[U(0x201)]('Running\x20post\x20creation\x20tasks'),await this[U(0x1ba)][U(0x19b)]({'cwd':t,'isSelfTest':k}),await this[U(0x1ba)][U(0x231)](p[U(0x1c3)]('\x20'),{'cwd':t,'isSelfTest':k}),await this[U(0x1ba)][U(0x231)](q[U(0x1c3)]('\x20'),{'cwd':t,'isSelfTest':k,'dev':!![]});r[U(0x226)]>0x0&&await this['fsi'][U(0x1cf)](r['join']('\x20'),{'cwd':t,'isSelfTest':k});s[U(0x226)]>0x0&&await this[U(0x1ba)][U(0x1b7)](s[U(0x1c3)]('\x20'),{'cwd':t,'isSelfTest':k});try{const M=new Date(),N=a20e[U(0x1c3)](j);execSync(U(0x219)+N+U(0x1fd),{'stdio':U(0x208)}),execSync('git\x20-C\x20'+N+U(0x185)+N+'\x20commit\x20-m\x20\x22Maka-CLI\x20init\x20@\x20'+M[U(0x176)]()+'\x22',{'stdio':U(0x208)});}catch(O){Log[U(0x1b3)](U(0x1db));}Log[U(0x1be)](U(0x214)+i);h&&h!==process[U(0x227)]()&&Log[U(0x1be)](U(0x1e6)+h);const w=process['platform']===U(0x21b);w&&(Log[U(0x201)]('For\x20improved\x20performance,\x20consider\x20whitelisting\x20the\x20following\x20from\x20windows\x20defender.'),Log[U(0x201)](U(0x205)),Log[U(0x201)](U(0x17f)+a20e[U(0x1c3)](j)+'\x22'));}catch(P){Log[U(0x1d5)](P),process[U(0x199)](0x0);}});
@@ -1 +1 @@
1
- const a21n=a21d;(function(a,b){const j=a21d,c=a();while(!![]){try{const d=-parseInt(j(0x10b))/0x1*(parseInt(j(0xf1))/0x2)+parseInt(j(0xfe))/0x3+parseInt(j(0xf8))/0x4*(-parseInt(j(0xfb))/0x5)+-parseInt(j(0xfd))/0x6*(-parseInt(j(0xf7))/0x7)+-parseInt(j(0x112))/0x8+-parseInt(j(0xf9))/0x9+parseInt(j(0x104))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xdafc4));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a21d;if(c){const e=c[k(0xfa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const l=a21d;return a21a['toString']()[l(0x109)](l(0xf0))['toString']()[l(0x113)](a21a)[l(0x109)](l(0xf0));});function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0xe9;let f=c[d];return f;},a21d(a,b);}a21a();import a21e from'path';import a21f from'fs';import a21g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const m=a21d;a21f['openSync'](a,'r'),a21g[m(0x111)]({'path':a});};function a21c(){const q=['maka\x20debug\x20--inspect','maka\x20debug\x20--raw-logs','getAppConfigPath','maka\x20debug\x20--env\x20dev','Running\x20in\x20Debug','maka\x20debug\x20--port\x204000','development','warn','(((.+)+)+)+$','65686KoSONn','Debug\x20your\x20app\x20for\x20a\x20given\x20environment.','forEach','error','inspect','isFile','990941LuJpNx','28yepEIW','5368338JZvsGC','apply','918505YuaiPy','fsi','6CfIRkD','1170669FQIarP','--settings','Node\x20Env\x20Config:\x20','\x0a\x20\x20Debug\x20your\x20app\x20for\x20a\x20given\x20environment.\x20This\x20command\x20will\x20source\x20the\x20process.env\x20file\x20for\x20the\x20given\x20environment\x0a\x20\x20and\x20then\x20run\x20meteor\x20debug.\x20This\x20allows\x20you\x20to\x20debug\x20your\x20app\x20in\x20a\x20given\x20environment.\x20This\x20command\x20will\x20also\x0a\x20\x20source\x20the\x20settings.json\x20file\x20for\x20the\x20given\x20environment\x20and\x20pass\x20it\x20to\x20meteor\x20debug.\x0a\x20\x20','maka\x20debug','slice','26808370gfkhjf','env','splice','exit','argv','search','--packages','12vvimPe','settings.json','filter','debug','join','Meteor\x20Settings:\x20','config','313232WYRdGv','constructor','invokeMeteorCommand','--env','concat'];a21c=function(){return q;};return a21c();}Command['create']({'name':a21n(0x10e),'usage':a21n(0x102),'validOpts':[a21n(0x105),'rawLogs','port',a21n(0xf5)],'maxArgLength':0x1,'shortDesc':a21n(0xf2),'description':a21n(0x101),'mustBeInMakaProject':!![],'examples':['maka\x20debug\x20--env\x20prod',a21n(0xeb),a21n(0xe9),a21n(0xed),a21n(0x117)]},function(a,b){const o=a21n;try{let c=this[o(0xfc)][o(0xea)](o(0xee));b['env']&&(c=this[o(0xea)](b[o(0x105)]));const d=a21e['join'](c,'process.env'),f=a21e[o(0x10f)](c,o(0x10c));this['fsi'][o(0xf6)](f)?(Log['notice'](o(0x110)+f),a=a[o(0x116)]([o(0xff),f])):Log[o(0xef)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+f);this[o(0xfc)]['isFile'](d)?(Log['notice'](o(0x100)+d),syncSource(d)):Log['warn']('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+d);const g=process[o(0x108)][o(0x103)](0x2)[o(0x10d)](h=>h!==o(0x10e))['filter'](h=>h!==a[0x0]);g[o(0xf3)]((h,i)=>{const p=o;h===p(0x115)&&g[p(0x106)](i,0x2),h===p(0x10a)&&g[p(0x106)](i,0x1);}),Log[o(0xef)](o(0xec)),this['fsi'][o(0x114)](o(0x10e),a[o(0x116)](g));}catch(h){console[o(0xf4)](h),process[o(0x107)](0x0);}});
1
+ const a21m=a21d;(function(a,b){const j=a21d,c=a();while(!![]){try{const d=-parseInt(j(0xae))/0x1*(-parseInt(j(0xb3))/0x2)+parseInt(j(0xa3))/0x3+-parseInt(j(0xa2))/0x4*(-parseInt(j(0xcc))/0x5)+-parseInt(j(0xc0))/0x6+-parseInt(j(0xbf))/0x7*(parseInt(j(0xb6))/0x8)+parseInt(j(0xb2))/0x9+parseInt(j(0xbb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x49300));const a21b=(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;};}()),a21a=a21b(this,function(){const k=a21d;return a21a[k(0xc2)]()[k(0xb0)]('(((.+)+)+)+$')[k(0xc2)]()[k(0xbd)](a21a)['search'](k(0xc7));});function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x9f;let f=c[d];return f;},a21d(a,b);}a21a();import a21e from'path';import a21f from'fs';import a21g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const l=a21d;a21f[l(0xb4)](a,'r'),a21g['config']({'path':a});};function a21c(){const p=['inspect','search','slice','73809ZdyjHo','1894ovZoxr','openSync','Running\x20in\x20Debug','2128eHPtKr','invokeMeteorCommand','--settings','maka\x20debug','\x0a\x20\x20Debug\x20your\x20app\x20for\x20a\x20given\x20environment.\x20This\x20command\x20will\x20source\x20the\x20process.env\x20file\x20for\x20the\x20given\x20environment\x0a\x20\x20and\x20then\x20run\x20meteor\x20debug.\x20This\x20allows\x20you\x20to\x20debug\x20your\x20app\x20in\x20a\x20given\x20environment.\x20This\x20command\x20will\x20also\x0a\x20\x20source\x20the\x20settings.json\x20file\x20for\x20the\x20given\x20environment\x20and\x20pass\x20it\x20to\x20meteor\x20debug.\x0a\x20\x20','1897290heSESC','maka\x20debug\x20--raw-logs','constructor','--env','11249aXsMFw','1585710YqhRbP','env','toString','fsi','maka\x20debug\x20--env\x20dev','Debug\x20your\x20app\x20for\x20a\x20given\x20environment.','warn','(((.+)+)+)+$','exit','notice','settings.json','splice','15tdmxqL','join','development','rawLogs','filter','concat','getAppConfigPath','Cannot\x20find\x20Node\x20Environment\x20File:\x20','300924FNnRji','206493FNUJBD','isFile','maka\x20debug\x20--inspect','create','process.env','Meteor\x20Settings:\x20','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','Node\x20Env\x20Config:\x20','argv','debug','--packages','527cFOAHL'];a21c=function(){return p;};return a21c();}Command[a21m(0xa6)]({'name':a21m(0xac),'usage':a21m(0xb9),'validOpts':[a21m(0xc1),a21m(0xcf),'port',a21m(0xaf)],'maxArgLength':0x1,'shortDesc':a21m(0xc5),'description':a21m(0xba),'mustBeInMakaProject':!![],'examples':['maka\x20debug\x20--env\x20prod',a21m(0xc4),a21m(0xbc),'maka\x20debug\x20--port\x204000',a21m(0xa5)]},function(a,b){const n=a21m;try{let c=this[n(0xc3)][n(0xa0)](n(0xce));b['env']&&(c=this[n(0xa0)](b[n(0xc1)]));const d=a21e[n(0xcd)](c,n(0xa7)),f=a21e[n(0xcd)](c,n(0xca));this[n(0xc3)][n(0xa4)](f)?(Log[n(0xc9)](n(0xa8)+f),a=a['concat']([n(0xb8),f])):Log[n(0xc6)](n(0xa9)+f);this['fsi'][n(0xa4)](d)?(Log[n(0xc9)](n(0xaa)+d),syncSource(d)):Log['warn'](n(0xa1)+d);const g=process[n(0xab)][n(0xb1)](0x2)[n(0xd0)](h=>h!==n(0xac))['filter'](h=>h!==a[0x0]);g['forEach']((h,i)=>{const o=n;h===o(0xbe)&&g['splice'](i,0x2),h===o(0xad)&&g[o(0xcb)](i,0x1);}),Log[n(0xc6)](n(0xb5)),this[n(0xc3)][n(0xb7)](n(0xac),a[n(0x9f)](g));}catch(h){console['error'](h),process[n(0xc8)](0x0);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a22d,c=a();while(!![]){try{var d=parseInt(f(0x97))/0x1*(parseInt(f(0x99))/0x2)+-parseInt(f(0x96))/0x3*(-parseInt(f(0x9f))/0x4)+parseInt(f(0x95))/0x5+parseInt(f(0x93))/0x6+-parseInt(f(0x9e))/0x7*(-parseInt(f(0xa0))/0x8)+-parseInt(f(0xa1))/0x9*(-parseInt(f(0x9b))/0xa)+parseInt(f(0x92))/0xb*(-parseInt(f(0x9d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a22c,0x831d5));function a22c(){var i=['517OaJjvM','4877184dVgrlg','(((.+)+)+)+$','2195590TLNJod','270XpnJOO','2825OanFLn','constructor','706RHlNMj','toString','40RSgfPj','apply','1010652aDXIaN','7553qTsLZl','45276oDvluU','7048kKvBLw','623061lVBZhz','search'];a22c=function(){return i;};return a22c();}var a22b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a22d;if(c){var e=c[g(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a22a=a22b(this,function(){var h=a22d;return a22a[h(0x9a)]()[h(0xa2)](h(0x94))['toString']()[h(0x98)](a22a)[h(0xa2)]('(((.+)+)+)+$');});a22a();import'./deploy.command.js';function a22d(a,b){var c=a22c();return a22d=function(d,e){d=d-0x92;var f=c[d];return f;},a22d(a,b);}import'./galaxy.sub.cmd.js';import'./ubuntu.sub.cmd.js';
1
+ (function(a,b){var f=a22d,c=a();while(!![]){try{var d=parseInt(f(0xaa))/0x1*(parseInt(f(0xa3))/0x2)+-parseInt(f(0xac))/0x3+-parseInt(f(0xa9))/0x4+-parseInt(f(0xa5))/0x5+parseInt(f(0xa4))/0x6*(parseInt(f(0xae))/0x7)+parseInt(f(0xab))/0x8+parseInt(f(0xa8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a22c,0x44275));var a22b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a22d;if(c){var e=c[g(0xaf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a22a=a22b(this,function(){var h=a22d;return a22a[h(0xa7)]()[h(0xad)](h(0xa6))[h(0xa7)]()['constructor'](a22a)[h(0xad)](h(0xa6));});a22a();import'./deploy.command.js';import'./galaxy.sub.cmd.js';function a22d(a,b){var c=a22c();return a22d=function(d,e){d=d-0xa3;var f=c[d];return f;},a22d(a,b);}import'./ubuntu.sub.cmd.js';function a22c(){var i=['12937NQcGGj','3990312kmYBVc','277323RKWdcn','search','2254DhdlVC','apply','86ZLCdjF','2622vUimwO','2465980UZmIFd','(((.+)+)+)+$','toString','1076481FUywwg','1802436PHiTUA'];a22c=function(){return i;};return a22c();}
@@ -1 +1 @@
1
- const a23i=a23d;function a23d(a,b){const c=a23c();return a23d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a23d(a,b);}(function(a,b){const f=a23d,c=a();while(!![]){try{const d=-parseInt(f(0x1eb))/0x1*(parseInt(f(0x1e1))/0x2)+parseInt(f(0x1de))/0x3*(-parseInt(f(0x1da))/0x4)+-parseInt(f(0x1e5))/0x5*(parseInt(f(0x1e8))/0x6)+-parseInt(f(0x1ec))/0x7*(parseInt(f(0x1ef))/0x8)+-parseInt(f(0x1e7))/0x9+parseInt(f(0x1e9))/0xa*(parseInt(f(0x1e0))/0xb)+-parseInt(f(0x1ea))/0xc*(-parseInt(f(0x1d7))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a23c,0xcd8bd));const a23b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a23d;if(c){const e=c[g(0x1dc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a23a=a23b(this,function(){const h=a23d;return a23a['toString']()[h(0x1e2)]('(((.+)+)+)+$')[h(0x1d9)]()[h(0x1dd)](a23a)['search'](h(0x1e6));});a23a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';function a23c(){const j=['\x0a\x20\x20Deploy\x20your\x20app\x20to\x20an\x20Ubuntu\x20server\x20running\x20in\x20AWS,\x20On\x20Prem,\x0a\x20\x20or\x20even\x20ARM,\x20or\x20to\x20Meteor\x20Galaxy\x20hosted\x20platform.','apply','constructor','1198974mBliHa','create','244475jFXhrw','1091598LoZbZg','search','maka\x20deploy:ubuntu\x20-e\x20p\x20--mongo\x20--ssl=letsencrypt\x20--domains=www.maka-cli.com\x20--email=admin@maka-cli.com','deploy','10JnPAUz','(((.+)+)+)+$','9440073naYoFD','1322436cOcIkM','130AVNBHT','21972MzAoZk','3URXlXs','7pLsGjR','maka\x20deploy','maka\x20deploy:galaxy\x20-e\x20p\x20--plan=professional\x20|\x20essentials','9387064EUwvvk','Deploy\x20your\x20application','37297QgzBwn','maka\x20deploy:ubuntu\x20--env\x20prod','toString','4kkUKKy'];a23c=function(){return j;};return a23c();}const DeployCommand=Command[a23i(0x1df)]({'name':a23i(0x1e4),'usage':a23i(0x1ed),'aliases':['d'],'validOpts':[],'mustBeInMakaProject':!![],'shortDesc':a23i(0x1d6),'description':a23i(0x1db),'examples':[a23i(0x1d8),'maka\x20deploy:galaxy\x20--env\x20prod\x20--free',a23i(0x1ee),'maka\x20deploy:galaxy\x20-e\x20p\x20--delete',a23i(0x1e3)]},async function(){throw UsageError;});export default DeployCommand;
1
+ const a23i=a23d;(function(a,b){const f=a23d,c=a();while(!![]){try{const d=parseInt(f(0x8e))/0x1*(-parseInt(f(0x8b))/0x2)+-parseInt(f(0x8a))/0x3+-parseInt(f(0x96))/0x4+parseInt(f(0x89))/0x5*(parseInt(f(0x91))/0x6)+parseInt(f(0x98))/0x7*(parseInt(f(0x87))/0x8)+parseInt(f(0x92))/0x9*(parseInt(f(0x9a))/0xa)+parseInt(f(0x94))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a23c,0x80c33));const a23b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a23d;if(c){const e=c[g(0x97)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a23a=a23b(this,function(){const h=a23d;return a23a[h(0x8c)]()[h(0x86)](h(0x8d))[h(0x8c)]()[h(0x95)](a23a)[h(0x86)]('(((.+)+)+)+$');});function a23d(a,b){const c=a23c();return a23d=function(d,e){d=d-0x84;let f=c[d];return f;},a23d(a,b);}a23a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';function a23c(){const j=['113210RZDDfM','Deploy\x20your\x20application','maka\x20deploy:ubuntu\x20--env\x20prod','search','16MyZeJt','maka\x20deploy:galaxy\x20--env\x20prod\x20--free','5615sIUAKU','541134EuHiLd','14WtsQos','toString','(((.+)+)+)+$','57026KpGfhj','maka\x20deploy:ubuntu\x20-e\x20p\x20--mongo\x20--ssl=letsencrypt\x20--domains=www.maka-cli.com\x20--email=admin@maka-cli.com','maka\x20deploy:galaxy\x20-e\x20p\x20--plan=professional\x20|\x20essentials','258gRlJAP','99CBemIF','maka\x20deploy:galaxy\x20-e\x20p\x20--delete','2222286YBfqJa','constructor','937180LgRBtP','apply','3382470NgEUGA','create'];a23c=function(){return j;};return a23c();}const DeployCommand=Command[a23i(0x99)]({'name':'deploy','usage':'maka\x20deploy','aliases':['d'],'validOpts':[],'mustBeInMakaProject':!![],'shortDesc':a23i(0x84),'description':'\x0a\x20\x20Deploy\x20your\x20app\x20to\x20an\x20Ubuntu\x20server\x20running\x20in\x20AWS,\x20On\x20Prem,\x0a\x20\x20or\x20even\x20ARM,\x20or\x20to\x20Meteor\x20Galaxy\x20hosted\x20platform.','examples':[a23i(0x85),a23i(0x88),a23i(0x90),a23i(0x93),a23i(0x8f)]},async function(){throw UsageError;});export default DeployCommand;
@@ -1 +1 @@
1
- const a24v=a24d;(function(a,b){const s=a24d,c=a();while(!![]){try{const d=-parseInt(s(0x12b))/0x1*(-parseInt(s(0x141))/0x2)+parseInt(s(0x12a))/0x3+-parseInt(s(0x139))/0x4*(parseInt(s(0x153))/0x5)+-parseInt(s(0x12e))/0x6+-parseInt(s(0x157))/0x7+-parseInt(s(0x131))/0x8+-parseInt(s(0x14d))/0x9*(-parseInt(s(0x151))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a24c,0xd029f));function a24c(){const y=['galaxy.meteor.com','debug','Select\x20your\x20Galaxy\x20plan','appName','force','filter','delete','Free','toString','galaxy','list','plan','maka\x20deploy\x20galaxy\x20-e\x20p\x20--delete','3951171FfRAkb','36814gSFozO','Error\x20in\x20deployment:','(((.+)+)+)+$','9605286KHkbte','maka\x20deploy\x20galaxy\x20--env\x20prod\x20--free','deploy','7350616ipCxoG','settings.json','free','constructor','Elite','getConfigFromShorthand','apply','\x0a\x20\x20Deploy\x20your\x20application\x20to\x20Galaxy,\x20Meteor\x27s\x20hosting\x20platform.\x0a\x20\x20','60aRRsEC','env','isFile','--free','Professional','--delete','galaxySiteName','fsi','52NgzcUf','elite','search','Aborting','You\x20may\x20be\x20prompted\x20to\x20log\x20into\x20meteor.com\x20to\x20deploy\x20to\x20Galaxy.','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','--settings','professional','settings','confirm','concat','splice','234bgEtYX','--plan','create','notice','928440XyqwVg','Deploy\x20your\x20application','33445cewqnY','slice','invokeMeteorCommand','Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20this\x20app\x20from\x20Galaxy?','8508381kiayjD','warn','parse','error','performance','getMakaProjectConfig','forEach'];a24c=function(){return y;};return a24c();}const a24b=(function(){let a=!![];return function(b,c){const d=a?function(){const t=a24d;if(c){const e=c[t(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a24a=a24b(this,function(){const u=a24d;return a24a[u(0x125)]()[u(0x143)](u(0x12d))[u(0x125)]()[u(0x134)](a24a)['search'](u(0x12d));});function a24d(a,b){const c=a24c();return a24d=function(d,e){d=d-0x11c;let f=c[d];return f;},a24d(a,b);}a24a();import a24e from'path';import a24f from'fs';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{Actions}from'../../tools/actions/actions.class.js';import a24g from'./deploy.command.js';Command[a24v(0x14f)]({'name':a24v(0x126),'aliases':['g'],'usage':'maka\x20deploy\x20galaxy','validOpts':[a24v(0x11e),a24v(0x13a),a24v(0x121),'verbose',a24v(0x133),a24v(0x128),a24v(0x123),'galaxySiteName'],'mustBeInMakaProject':!![],'requiredOpts':['env'],'shortDesc':a24v(0x152),'description':a24v(0x138),'examples':[a24v(0x12f),'maka\x20deploy\x20galaxy\x20-e\x20p\x20--plan=professional\x20|\x20essentials',a24v(0x129)]},async function(a,b){const w=a24v,c=this[w(0x140)][w(0x15c)](),d=this[w(0x140)]['getAppConfigPath'](b[w(0x13a)]),f=this[w(0x140)][w(0x136)](b[w(0x13a)]),g=w(0x126);try{let h='';if(g===w(0x126)){let i=b[w(0x13f)];if(!i){const m=c[w(0x120)]+'-'+f;i=await Actions['ask']('Please\x20provide\x20a\x20Galaxy\x20site\x20name\x20['+m+']:')||m;}const j=[i];if(b['delete']){const {confirm:n}=await Actions['options']({'type':w(0x14a),'name':w(0x14a),'message':w(0x156)});if(n)return this[w(0x140)]['invokeMeteorCommand'](w(0x130),j[w(0x14b)]([w(0x13e)]));else{Log['notice'](w(0x144));return;}}if(!b[w(0x123)]){if(!b['plan']&&!b['free']){const {plan:o}=await Actions['options']({'type':w(0x127),'name':w(0x128),'message':w(0x11f),'choices':[{'name':w(0x124),'value':w(0x133)},{'name':'Essentials','value':'essentials'},{'name':w(0x13d),'value':w(0x148)},{'name':'Performance','value':w(0x15b)},{'name':w(0x135),'value':w(0x142)}]});h=o;}else{if(b[w(0x128)])h=b[w(0x128)];else b[w(0x133)]&&(h=w(0x133));}}let k=process['argv'][w(0x154)](0x2)[w(0x122)](p=>p!=='deploy')['filter'](p=>p!==a[0x0]);k[w(0x11c)]((p,q)=>{const x=w;p==='--env'&&k[x(0x14c)](q,0x2),p==='-e'&&k[x(0x14c)](q,0x2);});let l=a24e['join'](d,w(0x132));b[w(0x149)]&&(l=b['settings']);if(this[w(0x140)][w(0x13b)](l)){Log[w(0x150)]('Meteor\x20Settings:\x20'+l),k=k[w(0x14b)]([w(0x147),l]);const p=a24f['readFileSync'](l),q=JSON[w(0x159)](p[w(0x125)]());!q[w(0x11d)]&&Log[w(0x158)]('No\x20\x22galaxy.meteor.com\x22\x20settings\x20found\x20in\x20'+f+'\x20settings.json.\x20\x20See\x20https://cloud-guide.meteor.com/environment-variables.html\x20for\x20info');}else Log[w(0x158)](w(0x146)+l);if(h===w(0x133))k=k[w(0x14b)]([w(0x13c)]);else h&&(k=k['concat']([w(0x14e),h]));return Log['warn'](w(0x145)),this['fsi'][w(0x155)](w(0x130),j[w(0x14b)](k));}}catch(r){Log[w(0x15a)](w(0x12c)),Log[w(0x15a)](r);}},a24g);
1
+ function a24c(){const x=['Professional','free','galaxy','\x0a\x20\x20Deploy\x20your\x20application\x20to\x20Galaxy,\x20Meteor\x27s\x20hosting\x20platform.\x0a\x20\x20','329EukcQf','force','Select\x20your\x20Galaxy\x20plan','notice','concat','debug','4UCsBYy','env','315998UbnRpp','maka\x20deploy\x20galaxy','delete','getAppConfigPath','confirm','32532jkUGHo','search','galaxy.meteor.com','Free','essentials','join','forEach','create','Error\x20in\x20deployment:','galaxySiteName','professional','list','10936fnFTKP','fsi','getConfigFromShorthand','ask','maka\x20deploy\x20galaxy\x20-e\x20p\x20--delete','--delete','--free','plan','Please\x20provide\x20a\x20Galaxy\x20site\x20name\x20[','3368160jDhEeM','isFile','apply','slice','filter','settings','2244588bDumqI','options','invokeMeteorCommand','No\x20\x22galaxy.meteor.com\x22\x20settings\x20found\x20in\x20','Elite','462399XbIbKt','appName','performance','getMakaProjectConfig','warn','You\x20may\x20be\x20prompted\x20to\x20log\x20into\x20meteor.com\x20to\x20deploy\x20to\x20Galaxy.','maka\x20deploy\x20galaxy\x20-e\x20p\x20--plan=professional\x20|\x20essentials','Aborting','deploy','1302150ahFhMv','3771ffcIUt','toString','error','parse'];a24c=function(){return x;};return a24c();}const a24v=a24d;function a24d(a,b){const c=a24c();return a24d=function(d,e){d=d-0x90;let f=c[d];return f;},a24d(a,b);}(function(a,b){const s=a24d,c=a();while(!![]){try{const d=parseInt(s(0x9b))/0x1+parseInt(s(0x99))/0x2*(parseInt(s(0xc0))/0x3)+-parseInt(s(0xbb))/0x4+-parseInt(s(0xc9))/0x5+parseInt(s(0xa0))/0x6*(parseInt(s(0x93))/0x7)+-parseInt(s(0xac))/0x8*(-parseInt(s(0xca))/0x9)+-parseInt(s(0xb5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a24c,0x47a66));const a24b=(function(){let a=!![];return function(b,c){const d=a?function(){const t=a24d;if(c){const e=c[t(0xb7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a24a=a24b(this,function(){const u=a24d;return a24a[u(0xcb)]()[u(0xa1)]('(((.+)+)+)+$')[u(0xcb)]()['constructor'](a24a)['search']('(((.+)+)+)+$');});a24a();import a24e from'path';import a24f from'fs';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{Actions}from'../../tools/actions/actions.class.js';import a24g from'./deploy.command.js';Command[a24v(0xa7)]({'name':a24v(0x91),'aliases':['g'],'usage':a24v(0x9c),'validOpts':[a24v(0x98),a24v(0x9a),a24v(0x94),'verbose',a24v(0x90),a24v(0xb3),a24v(0x9d),a24v(0xa9)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'shortDesc':'Deploy\x20your\x20application','description':a24v(0x92),'examples':['maka\x20deploy\x20galaxy\x20--env\x20prod\x20--free',a24v(0xc6),a24v(0xb0)]},async function(a,b){const w=a24v,c=this[w(0xad)][w(0xc3)](),d=this['fsi'][w(0x9e)](b['env']),f=this[w(0xad)][w(0xae)](b['env']),g=w(0x91);try{let h='';if(g===w(0x91)){let i=b[w(0xa9)];if(!i){const m=c[w(0xc1)]+'-'+f;i=await Actions[w(0xaf)](w(0xb4)+m+']:')||m;}const j=[i];if(b['delete']){const {confirm:n}=await Actions[w(0xbc)]({'type':w(0x9f),'name':w(0x9f),'message':'Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20this\x20app\x20from\x20Galaxy?'});if(n)return this['fsi']['invokeMeteorCommand'](w(0xc8),j[w(0x97)]([w(0xb1)]));else{Log[w(0x96)](w(0xc7));return;}}if(!b['delete']){if(!b['plan']&&!b[w(0x90)]){const {plan:o}=await Actions['options']({'type':w(0xab),'name':'plan','message':w(0x95),'choices':[{'name':w(0xa3),'value':w(0x90)},{'name':'Essentials','value':w(0xa4)},{'name':w(0xce),'value':w(0xaa)},{'name':'Performance','value':w(0xc2)},{'name':w(0xbf),'value':'elite'}]});h=o;}else{if(b[w(0xb3)])h=b['plan'];else b[w(0x90)]&&(h=w(0x90));}}let k=process['argv'][w(0xb8)](0x2)[w(0xb9)](p=>p!==w(0xc8))[w(0xb9)](p=>p!==a[0x0]);k[w(0xa6)]((p,q)=>{p==='--env'&&k['splice'](q,0x2),p==='-e'&&k['splice'](q,0x2);});let l=a24e[w(0xa5)](d,'settings.json');b[w(0xba)]&&(l=b[w(0xba)]);if(this[w(0xad)][w(0xb6)](l)){Log[w(0x96)]('Meteor\x20Settings:\x20'+l),k=k[w(0x97)](['--settings',l]);const p=a24f['readFileSync'](l),q=JSON[w(0xcd)](p[w(0xcb)]());!q[w(0xa2)]&&Log[w(0xc4)](w(0xbe)+f+'\x20settings.json.\x20\x20See\x20https://cloud-guide.meteor.com/environment-variables.html\x20for\x20info');}else Log[w(0xc4)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+l);if(h===w(0x90))k=k[w(0x97)]([w(0xb2)]);else h&&(k=k[w(0x97)](['--plan',h]));return Log[w(0xc4)](w(0xc5)),this[w(0xad)][w(0xbd)](w(0xc8),j[w(0x97)](k));}}catch(r){Log['error'](w(0xa8)),Log[w(0xcc)](r);}},a24g);
@@ -1 +1 @@
1
- const a25ah=a25d;(function(a,b){const ae=a25d,c=a();while(!![]){try{const d=-parseInt(ae(0x156))/0x1*(-parseInt(ae(0x7a))/0x2)+parseInt(ae(0x13c))/0x3+parseInt(ae(0x133))/0x4+parseInt(ae(0xbd))/0x5+parseInt(ae(0x12b))/0x6*(-parseInt(ae(0x126))/0x7)+-parseInt(ae(0xf6))/0x8+-parseInt(ae(0x120))/0x9*(parseInt(ae(0xdd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a25c,0x1d19d));const a25b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a25d;if(c){const e=c[af(0x73)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a25a=a25b(this,function(){const ag=a25d;return a25a[ag(0xa8)]()[ag(0x106)]('(((.+)+)+)+$')['toString']()[ag(0xbb)](a25a)[ag(0x106)](ag(0x80));});a25a();import a25e from'path';import a25f from'fs';function a25d(a,b){const c=a25c();return a25d=function(d,e){d=d-0x66;let f=c[d];return f;},a25d(a,b);}import{execSync}from'child_process';function a25c(){const an=['ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-','ping','config/ssh.json','toString','#\x20Decompress\x20the\x20bundle\x0a','\x09\x09proxy_set_header\x20Upgrade\x20$http_upgrade;\x0a','\x09if\x20($http_user_agent\x20~\x20\x22MSIE\x22\x20)\x20{\x0a','\x09ssl_certificate_key\x20/etc/nginx/ssl/','server\x20{\x0a','[\x20\x22$(nvm\x20current)\x22\x20==\x20\x22','serverPort','isFile','\x20--hp\x20/home/','~/nginx.conf','Aborted','ssh','pm2.config.js','://','\x09listen\x2080\x20default_server;\x0a','\x09add_header\x20Strict-Transport-Security\x20\x22max-age=31536000;\x22;\x0a','findProjectDirectory','deploy.sh','constructor','pathFromProject','1120105PERsBd','readFileSync','inherit','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','sudo\x20systemctl\x20enable\x20mongod.service\x0a','echo\x20\x22Attempting\x20to\x20decompress\x20the\x20bundle\x22\x0a','~/ses.json','readFileLines','#\x20updating\x20PM2\x20to\x20latest\x0a','trim','\x20||\x20nvm\x20install\x20','includes','nvm\x20install\x20','pm2\x20start\x20~/pm2.config.js\x0a','443','setEnvSettings','Supplied\x20SSL\x20/\x20CRT\x20file','npm\x20audit\x20fix\x20--force\x0a','\x09ssl_protocols\x20TLSv1\x20TLSv1.1\x20TLSv1.2;\x0a','\x09location\x20/\x20{\x0a','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','maka\x20deploy:ubuntu\x20--env\x20prod','localhost','sudo\x20cp\x20~/nginx.conf\x20/etc/nginx/sites-enabled/default\x0a','platforms','error','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','sslAnswer','#\x20install\x20and\x20configure\x20local\x20mongo\x0a','sudo\x20apt-get\x20update\x0a','writeFileSync','70HuynZh','ssl','~/deploy.sh','wget\x20-qO\x20-\x20https://www.mongodb.org/static/pgp/server-4.2.asc\x20|\x20sudo\x20apt-key\x20add\x20-\x0a','.key;\x0a','if\x20[\x20-f\x20app.tar.gz\x20];\x20then\x0a','sudo\x20mv\x20~/','\x09listen\x20443\x20ssl;\x0a','\x09\x27\x27\x20\x20\x20\x20\x20\x20close;\x0a','ask','\x20\x20echo\x20\x22No\x20bundle\x20found,\x20using\x20backup\x22\x0a','sudo\x20env\x20PATH=$PATH:$(which\x20npm)\x20$(which\x20pm2)\x20startup\x20systemd\x20-u\x20','setProjectConfig','stringify','\x0a\x20\x20Deploy\x20your\x20app\x20to\x20an\x20Ubuntu\x20server\x20running\x20in\x20AWS,\x20On\x20Prem,\x0a\x20\x20or\x20even\x20ARM.','env','basic','\x09ssl_certificate\x20/etc/nginx/ssl/','sudo\x20systemctl\x20daemon-reload\x20||\x20null\x0a','Using\x20letsencrypt.json','\x20\x20exit\x201\x0a','_keys','Pushing\x20up\x20deploy\x20scripts\x20...','#\x20Prepare\x20nginx\x0a','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','1872192dDRrKa','mv\x20~/app.tar.gz\x20~/app.tar.gz.bk\x0a','\x09\x09proxy_http_version\x201.1;\x0a','sudo\x20service\x20mongod\x20start\x0a','echo\x20\x22deb\x20[\x20arch=amd64\x20]\x20https://repo.mongodb.org/apt/ubuntu\x20bionic/mongodb-org/4.2\x20multiverse\x22\x20|\x20sudo\x20tee\x20/etc/apt/sources.list.d/mongodb-org-4.2.list\x0a','127.0.0.1','getMakaProjectConfig','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?\x20[yn]','This\x20project\x27s\x20meteor\x20version\x20(','\x09}\x0a','\x09\x09proxy_set_header\x20Host\x20$host;\x0a','warn','email','emailUpdate','Deployment\x20complete','\x20\x20tar\x20-xf\x20app.tar.gz\x0a','search',').\x20Continue?','Error\x20in\x20deployment:','rm\x20-rf\x20~/maka-env/nvm-install\x0a','Running\x20deployment\x20scripts\x20on\x20remote\x20server','pm2\x20delete\x20all\x0a','config/pm2.config.js','length','success','#\x20Reset\x20pm2\x20\x0a','fi\x0a','\x20--email\x20','\x09\x09proxy_set_header\x20X-Forwarded-For\x20$remote_addr;\x0a','nginx.conf','cd\x20bundle/programs/server\x0a','\x09root\x20/usr/share/nginx/html;\x0a','cd\x20~\x0a','sudo\x20','\x09\x09if\x20($uri\x20!=\x20\x27/\x27)\x20{\x0a','Email\x20to\x20use\x20for\x20auto-updates:\x20','\x09\x09proxy_set_header\x20Connection\x20\x22upgrade\x22;\x0a','\x09ssl\x20on;\x0a','none','\x09default\x20upgrade;\x0a','grep','\x09ssl_session_cache\x20shared:SSL:10m;\x0a','131778yFXWVP','parse','split','ses.json','sudo\x20systemctl\x20daemon-reload\x20&&\x20sudo\x20systemctl\x20start\x20nginx\x0a','Pushing\x20up\x20bundle\x20...','7XKbSVU','config.json','http','options','platform','489282IeIgYQ','\x09listen\x20[::]:80\x20default_server\x20ipv6only=on;\x0a','notice','sshSync','Attempting\x20to\x20setup\x20SSL\x20using\x20LetsEncrypt','Verifying\x20Nginx','host','map\x20$http_upgrade\x20$connection_upgrade\x20{\x0a','172136KuwacO','.meteor','\x09\x09alias\x20/home/','\x09ssl_ciphers\x20\x22ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:kEDH+','push','You\x20do\x20not\x20have\x20a\x20valid\x20ssl\x20crt.\x20\x20Looking\x20for:\x20','~/settings.json','user','Remote\x20host\x20connection\x20successful','696135AohoBB','\x09\x09}\x0a','Setting\x20up\x20letsencrypt','Consider\x20updating\x20with\x20\x22maka\x20update\x20--release\x20','createWriteStream','appName','domains','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','settings.json','Deployment\x20script\x20written\x20to:\x20','confirm','sudo\x20systemctl\x20stop\x20nginx\x0a','sudo\x20cp\x20override.conf\x20/etc/systemd/system/nginx.service.d/override.conf\x0a','Free\x20SSL\x20with\x20Letsencrypt','win32','join','sudo\x20snap\x20install\x20--classic\x20certbot','port','noRebuild','Using\x20saved\x20letsencrypt\x20config','chmod\x20+x\x20~/maka-env/nvm-install/nvm-install.sh\x20&&\x20~/maka-env/nvm-install/nvm-install.sh\x0a','->\x20','ssh.json','#\x20setup\x20node\x20and\x20npm\x20with\x20the\x20proper\x20node\x20version\x20using\x20nvm\x0a','force','getAppConfigPath','1CeSfXj','ubuntu','I\x20could\x20not\x20find\x20a\x20valid\x20SSL\x20file,\x20please\x20provide\x20the\x20name\x20of\x20the\x20SSL\x20file\x20in\x20the\x20_keys/\x20directory:','pm2\x20update\x0a','existsSync','meteor','create','server_tokens\x20off;\x0a','Mobile\x20server\x20port:\x20','--architecture=os.linux.x86_64','PM2\x20has\x20MONGO_URL\x20pointing\x20to\x20localhost;\x20deployment\x20will\x20install\x20a\x20local\x20mongo\x20instance.','\x09location\x20=\x20/favicon.ico\x20{\x0a','end','[\x20-d\x20/etc/systemd/system/nginx.service.d\x20]\x20&&\x20echo\x20\x22nginx.service.d\x20exists\x22\x20||\x20sudo\x20mkdir\x20/etc/systemd/system/nginx.service.d\x0a','#\x20Nginx\x20will\x20be\x20restarted\x20just\x20before\x20completing\x20the\x20deployment.\x0a','serverName','apply','letsencrypt','Domains\x20to\x20register\x20(comma\x20separated):\x20','debug','AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:','\x09\x09proxy_pass\x20http://0.0.0.0:3000;\x0a','echo\x20\x22test\x20-f\x20~/.bashrc\x20&&\x20.\x20~/.bashrc\x22\x20>\x20~/.bash_profile\x0a','76324CASTgT','template','write','No\x20🤔','\x09\x09return\x20303\x20https://browser-update.org/update.html;\x0a','\x09\x09\x09expires\x2030d;\x0a','(((.+)+)+)+$','\x20\x20echo\x20\x22Bundle\x20found,\x20decompressing\x22\x0a','\x20\x20echo\x20\x22Could\x20not\x20find\x20app.tar.gz,\x20exiting!\x22\x0a','rm\x20-rf\x20~/.bash_profile\x20~/.bashrc\x0a','Aborted\x20deployment!','app.tar.gz','npm\x20install\x0a','\x09ssl_prefer_server_ciphers\x20on;\x0a','Stored\x20server\x20config\x20to\x20','verbose','sudo\x20apt-get\x20install\x20-y\x20mongodb-org\x0a','\x09root\x20html;\x0a','letsencrypt.json','\x09ssl_session_timeout\x205m;\x0a','build','\x20install\x20build-essential\x20git\x20nginx\x20-y\x0a','enforceCSP','fsi','sudo\x20mkdir\x20-p\x20/etc/nginx/ssl/\x0a','open','.crt','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','I\x20could\x20not\x20find\x20a\x20valid\x20CRT\x20file,\x20please\x20provide\x20the\x20name\x20of\x20the\x20CRT\x20file\x20in\x20the\x20_keys/\x20directory:','printf\x20\x22[Service]\x5cnExecStartPost=/bin/sleep\x200.1\x5cn\x22\x20>\x20override.conf\x0a','\x09server_name\x20','You\x20do\x20not\x20have\x20a\x20valid\x20SSL\x20file:\x20','scp','Deploy\x20your\x20application','git\x20clone\x20https://gist.github.com/c427ccd6f4377b39299b9d402f5d51fe.git\x20~/maka-env/nvm-install\x0a','source\x20~/.bashrc\x0a','#\x20Configure\x20pm2\x20to\x20start\x20on\x20boot\x0a','Configure\x20SSL','\x20/etc/nginx/ssl/','~/app.tar.gz','finish','findAppDirectory','\x09index\x20index.html;\x0a'];a25c=function(){return an;};return a25c();}import a25g from'semver';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{SSH}from'../../tools/ssh/ssh.class.js';import{Actions}from'../../tools/actions/actions.class.js';import a25h from'./deploy.command.js';Command[a25ah(0x69)]({'name':a25ah(0x157),'usage':'maka\x20deploy:ubuntu','aliases':['u'],'validOpts':[a25ah(0x76),a25ah(0xec),a25ah(0xde),'domains','mongo',a25ah(0x154),a25ah(0x102),'verbose',a25ah(0x14e),a25ah(0x74)],'mustBeInMakaProject':!![],'isPro':![],'requiredOpts':[a25ah(0xec)],'shortDesc':a25ah(0x9b),'description':a25ah(0xeb),'examples':[a25ah(0xd3),'maka\x20d:u\x20-e\x20p\x20--mongo\x20--ssl=letsencrypt\x20--domains=www.maka-cli.com\x20--email=admin@maka-cli.com']},async function(a,b){const ai=a25ah,c=b[ai(0x89)]?!![]:![],d=process[ai(0x12a)]===ai(0x14a)?'meteor.bat':ai(0x68),f=this[ai(0x91)][ai(0xfc)](),g=this[ai(0x91)][ai(0x155)](b[ai(0xec)]),h=await this[ai(0x91)]['getProjectsMeteorNodeVersion'](),[i,j]=h[ai(0x122)]('.'),k=i+'.'+j,l='apt',m=b[ai(0x154)];try{const n=a25e[ai(0x14b)](g,ai(0xb5));!this[ai(0x91)]['isFile'](n)&&await this['fsi'][ai(0x7b)]({'srcPath':ai(0x10c),'destPath':n,'context':{'app':f[ai(0x141)],'isDocker':![]},'config':f});const o=a25e['join'](g,ai(0x152));!this[ai(0x91)][ai(0xb0)](o)&&await this['fsi'][ai(0x7b)]({'srcPath':ai(0xa7),'destPath':o,'context':{'app':f[ai(0x141)]},'config':f});const p=JSON[ai(0x121)](a25f[ai(0xbe)](o)[ai(0xa8)]()),q={'env':g,'user':p[ai(0x13a)],'host':p[ai(0x131)],'port':p[ai(0x14d)],'pem':p['pem']};let r=b[ai(0x142)],s=b[ai(0x102)];try{a25f['readFileSync'](a25e[ai(0x14b)](g,ai(0x8c))),Log[ai(0x12d)](ai(0xf0)),b['letsencrypt']=!![];}catch(x){b[ai(0x74)]&&Log[ai(0x101)]('No\x20letsencrypt.json\x20file\x20found.\x20You\x20will\x20be\x20prompted\x20at\x20the\x20end\x20of\x20deployment\x20for\x20configuration.');const y={'type':'list','name':ai(0xd9),'message':ai(0x9f),'choices':[{'name':ai(0x149),'value':'letsencrypt'},{'name':ai(0xcd),'value':ai(0xed)},{'name':ai(0x7d),'value':ai(0x11c)}]},{sslAnswer:z}=await Actions[ai(0x129)](y);if(z===ai(0x74)){b[ai(0x74)]=!![],b['ssl']=![],r=r?r:await Actions['ask'](ai(0x75)),s=s?s:await Actions[ai(0xe6)](ai(0x119));const A={'domainNames':r,'emailUpdate':s},B=JSON[ai(0xea)](A,null,0x2);a25f[ai(0xdc)](a25e['join'](g,ai(0x8c)),B),this[ai(0x91)][ai(0xcc)](b[ai(0xec)],ai(0x90),!![]);}else z===ai(0xed)?(b[ai(0x74)]=![],b[ai(0xde)]=!![],this[ai(0x91)][ai(0xcc)](b[ai(0xec)],ai(0x90),!![])):this['fsi'][ai(0xcc)](b['env'],ai(0x90),![]);}let t='',u='';if(b[ai(0xde)]&&!b[ai(0x74)]){t=f[ai(0x141)]+'.key';!a25f['existsSync'](a25e[ai(0x14b)](g,ai(0xf2),t))&&(t=await Actions[ai(0xe6)](ai(0x158)));if(!a25f[ai(0x67)](a25e[ai(0x14b)](g,ai(0xf2),t)))throw ai(0x99)+a25e[ai(0x14b)](g,ai(0xf2),t);u=f[ai(0x141)]+ai(0x94);!a25f[ai(0x67)](a25e[ai(0x14b)](g,ai(0xf2),u))&&(u=await Actions[ai(0xe6)](ai(0x96)));if(!a25f[ai(0x67)](a25e[ai(0x14b)](g,ai(0xf2),u)))throw ai(0x138)+a25e['join'](g,ai(0xf2),u);}Log[ai(0x12d)]('Checking\x20remote\x20host\x20availability\x20using\x20'+o);try{const C=SSH[ai(0xa6)]('uname\x20-a',q,{'verbose':!![]});if(!C)throw ai(0xd1);if(C)Log[ai(0x10e)](ai(0x13b));}catch(D){Log[ai(0xd7)](D);return;}Log[ai(0x12d)]('Building\x20deployment\x20script\x20...');const v=a25f[ai(0xbe)](a25e['join'](g,'pm2.config.js')),w=this[ai(0x91)][ai(0x11e)](v[ai(0xa8)](),'MONGO_URL');(w[0x0][ai(0xc6)]()[ai(0xc8)](ai(0xd4))||w[0x0][ai(0xc6)]()[ai(0xc8)](ai(0xfb))||w[0x0][ai(0xc6)]()['includes']('0.0.0.0'))&&(b['mongo']=!![],Log['notice'](ai(0x6d)),Log['notice'](ai(0x151)+w[0x0][ai(0xc6)]()));try{const E=a25f['createWriteStream'](a25e['join'](g,ai(0x113)),{'flags':'w'});E['on'](ai(0x93),function(){const aj=ai;b[aj(0xde)]&&!b['letsencrypt']?(E['write'](aj(0x6a)),E['write'](aj(0x132)),E[aj(0x7c)](aj(0x11d)),E[aj(0x7c)](aj(0xe5)),E[aj(0x7c)]('}\x0a'),E[aj(0x7c)]('\x0a'),E[aj(0x7c)]('server\x20{\x0a'),E[aj(0x7c)]('\x09listen\x2080\x20default_server;\x0a'),E['write'](aj(0x12c)),E[aj(0x7c)](aj(0x98)+f['appName']+';\x0a'),E[aj(0x7c)](aj(0x115)),E[aj(0x7c)]('\x09index\x20index.html\x20index.htm;\x0a'),E[aj(0x7c)]('\x09location\x20/\x20{\x0a'),E[aj(0x7c)]('\x09\x09rewrite\x20\x20\x20\x20\x20^\x20https://$server_name$request_uri?\x20permanent;\x0a'),E[aj(0x7c)](aj(0xff)),E[aj(0x7c)]('}'),E[aj(0x7c)]('\x0a'),E[aj(0x7c)]('\x0a'),E[aj(0x7c)](aj(0xad)),E['write'](aj(0xe4)),E['write'](aj(0x98)+f[aj(0x141)]+';\x0a'),E['write'](aj(0x8b)),E['write'](aj(0xa4)),E[aj(0x7c)](aj(0x11b)),E[aj(0x7c)](aj(0xee)+f[aj(0x141)]+'.crt;\x0a'),E['write'](aj(0xac)+f['appName']+aj(0xe1)),E['write']('\x09ssl_certificate\x20;\x0a'),E[aj(0x7c)]('\x09ssl_certificate_key\x20;\x0a'),E['write'](aj(0x11f)),E[aj(0x7c)](aj(0x8d)),E[aj(0x7c)]('\x09\x0a'),E[aj(0x7c)](aj(0x87)),E[aj(0x7c)](aj(0xcf)),E['write'](aj(0x136)+aj(0x77)+aj(0xa5)+'SHA384:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:RC4-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK\x22;\x0a'),E[aj(0x7c)](aj(0xb8)),E[aj(0x7c)]('\x09\x0a'),E[aj(0x7c)](aj(0xab)),E[aj(0x7c)](aj(0x7e)),E[aj(0x7c)](aj(0xff)),E['write']('\x09location\x20=\x20/favicon.ico\x20{\x0a'),E[aj(0x7c)](aj(0x135)+p['user']+'/bundle/programs/web.browser/app;\x0a'),E[aj(0x7c)]('\x09}\x0a'),E[aj(0x7c)]('\x09\x0a'),E[aj(0x7c)](aj(0xd0)),E[aj(0x7c)]('\x09\x09proxy_pass\x20http://0.0.0.0:3000;\x0a'),E[aj(0x7c)]('\x09\x09proxy_http_version\x201.1;\x0a'),E['write'](aj(0xaa)),E[aj(0x7c)](aj(0x11a)),E[aj(0x7c)](aj(0x112)),E[aj(0x7c)]('\x09\x09proxy_set_header\x20Host\x20$host;\x0a'),E['write'](aj(0x118)),E[aj(0x7c)](aj(0x7f)),E[aj(0x7c)](aj(0x13d)),E['write'](aj(0xff)),E[aj(0x7c)]('}')):(E[aj(0x7c)](aj(0x6a)),E['write'](aj(0x132)),E[aj(0x7c)](aj(0x11d)),E['write'](aj(0xe5)),E['write']('}\x0a'),E[aj(0x7c)]('\x0a'),E[aj(0x7c)]('server\x20{\x0a'),E[aj(0x7c)](aj(0xb7)),E[aj(0x7c)](aj(0x12c)),E[aj(0x7c)](aj(0xab)),E[aj(0x7c)]('\x09\x09return\x20303\x20https://browser-update.org/update.html;\x0a'),E[aj(0x7c)]('\x09}\x0a'),E[aj(0x7c)](aj(0x6e)),E[aj(0x7c)]('\x09\x09alias\x20/home/'+p[aj(0x13a)]+'/bundle/programs/web.browser/app;\x0a'),E[aj(0x7c)](aj(0xff)),E[aj(0x7c)]('\x09\x0a'),E[aj(0x7c)](aj(0xd0)),E[aj(0x7c)](aj(0x78)),E['write'](aj(0xf8)),E[aj(0x7c)](aj(0xaa)),E[aj(0x7c)](aj(0x11a)),E[aj(0x7c)](aj(0x112)),E[aj(0x7c)](aj(0x100)),E[aj(0x7c)](aj(0x118)),E[aj(0x7c)](aj(0x7f)),E[aj(0x7c)]('\x09\x09}\x0a'),E[aj(0x7c)](aj(0xff)),E['write']('}'));}),E['on'](ai(0xa2),function(){const ak=ai;E[ak(0x6f)]();});const F=a25f[ai(0x140)](a25e['join'](g,ai(0xba)),{'flags':'w'});F['on'](ai(0x93),function(){const al=ai;F[al(0x7c)](al(0xdb)),F[al(0x7c)]('#\x20install\x20git\x20and\x20nginx\x0a'),F[al(0x7c)](al(0x117)+l+al(0x8f)),b['mongo']===!![]&&(F['write'](al(0xda)),F[al(0x7c)](al(0xe0)),F['write'](al(0xfa)),F[al(0x7c)](al(0xdb)),F[al(0x7c)](al(0x8a)),F[al(0x7c)](al(0xf9)),F['write'](al(0xc1))),F[al(0x7c)](al(0x153)),F[al(0x7c)](al(0x9c)),F['write'](al(0x83)),F[al(0x7c)]('touch\x20~/.bash_profile\x20~/.bashrc\x0a'),F[al(0x7c)](al(0x79)),F[al(0x7c)](al(0x150)),F[al(0x7c)](al(0x9d)),F[al(0x7c)](al(0xc9)+h+al(0xc7)+k+'\x0a'),F['write'](al(0xae)+h+'\x22\x20]\x20&&\x20nvm\x20alias\x20default\x20'+h+'\x20||\x20nvm\x20alias\x20default\x20'+k+'\x0a'),F['write']('npm\x20install\x20-g\x20pm2@latest\x0a'),F[al(0x7c)](al(0x109)),F[al(0x7c)](al(0xf4)),F[al(0x7c)](al(0x70)),F[al(0x7c)](al(0x97)),F[al(0x7c)](al(0x148)),F[al(0x7c)](al(0xef)),F['write'](al(0x147)),F['write']('sudo\x20nginx\x20-s\x20stop\x0a'),F[al(0x7c)](al(0x71)),F['write'](al(0xd5)),b[al(0xde)]&&!b[al(0x74)]&&(F[al(0x7c)](al(0x92)),F[al(0x7c)](al(0xe3)+t+al(0xa0)+t+'\x0a'),F[al(0x7c)](al(0xe3)+u+al(0xa0)+u+'\x0a')),F[al(0x7c)](al(0xa9)),F[al(0x7c)](al(0xc2)),F[al(0x7c)](al(0xe2)),F[al(0x7c)](al(0x81)),F[al(0x7c)](al(0x105)),F[al(0x7c)]('elif\x20[\x20-f\x20app.tar.gz.bk\x20];\x20then\x0a'),F[al(0x7c)](al(0xe7)),F['write']('\x20\x20cp\x20app.tar.gz.bk\x20app.tar.gz\x0a'),F[al(0x7c)](al(0x105)),F['write']('else\x0a'),F[al(0x7c)](al(0x82)),F[al(0x7c)](al(0xf1)),F[al(0x7c)](al(0x110)),F[al(0x7c)](al(0x114)),F[al(0x7c)](al(0x86)),F[al(0x7c)](al(0xce)),F['write'](al(0x116)),F['write'](al(0x10f)),F[al(0x7c)](al(0x10b)),F[al(0x7c)](al(0xc5)),F['write'](al(0x66)),F[al(0x7c)]('#\x20Bring\x20up\x20pm2\x20with\x20environment\x0a'),F[al(0x7c)](al(0xca)),F[al(0x7c)](al(0x9e)),F[al(0x7c)]('pm2\x20startup\x0a'),F['write'](al(0xe8)+p[al(0x13a)]+al(0xb1)+p[al(0x13a)]+'\x0a'),F[al(0x7c)]('pm2\x20save\x0a'),F[al(0x7c)]('#\x20bring\x20back\x20up\x20nginx\x0a'),F['write'](al(0x124)),F[al(0x7c)]('#\x20remove\x20backup\x20tar,\x20if\x20any\x0a'),F[al(0x7c)]('#\x20rm\x20-f\x20~/app.tar.gz.bk\x0a'),F[al(0x7c)]('#\x20backup\x20tar\x20bundle\x0a'),F['write'](al(0xf7)),F['write']('exit\x200');}),F['on'](ai(0xa2),function(){const am=ai;F[am(0x6f)]();}),Log[ai(0x10e)](ai(0x145)+a25e[ai(0x14b)](g,ai(0xba)));if(!m){const X=await Actions[ai(0x146)]('Are\x20you\x20ready\x20to\x20deploy?');if(!X)throw ai(0x84);}const G=[ai(0x8e),a25e['join'](this[ai(0x91)][ai(0xb9)](),ai(0x8e)),ai(0x6c)];try{const Y=this[ai(0x91)][ai(0xc4)](a25e[ai(0x14b)](this[ai(0x91)]['pathFromProject']({}),'app',ai(0x134),ai(0xd6))),Z=Y['length']>0x2?!![]:![];if(Z){const a0=f[ai(0x72)]?f[ai(0x72)]:await Actions[ai(0xe6)](ai(0x95)),a1=f[ai(0xaf)]?f['serverPort']:await Actions[ai(0xe6)](ai(0x6b));if(a0[ai(0x10d)]==0x0||a1['length']==0x0)throw'[!]\x20Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';const a2=a1==ai(0xcb)?'https':ai(0x128);G[ai(0x137)]('--server='+a2+ai(0xb6)+a0+':'+a1);if(!f[ai(0x72)]&&!f['serverPort']){const a3=await Actions['ask'](ai(0xfd));a3&&(this[ai(0x91)][ai(0xe9)](ai(0x72),a0),this['fsi']['setProjectConfig'](ai(0xaf),a1),Log[ai(0x12d)](ai(0x88)+a25e[ai(0x14b)]('.maka',ai(0x127))));}}}catch(a4){Log[ai(0xd7)](a4);return;}const H=a25e['join'](this[ai(0x91)][ai(0xbc)]({}),ai(0x8e),ai(0x85)),I=this['fsi']['getGlobalMeteorVersion'](),J=this[ai(0x91)]['getProjectMeteorVersion'](),K=a25g['gt'](I,J);if(K&&!m){const a5=await Actions[ai(0x146)](ai(0xfe)+J+ai(0xd2)+I+ai(0x107),![]);if(!a5){Log[ai(0xd7)](ai(0xb3)),Log['notice'](ai(0x13f)+I+'\x22');return;}}let L=!![];a25f[ai(0x67)](H)&&!m&&(L=await Actions[ai(0x146)](ai(0xd8)));L&&(execSync(d+'\x20npm\x20install\x20--save',{'cwd':this[ai(0x91)][ai(0xa3)](),'stdio':'ignore'}),execSync(d+'\x20'+G[ai(0x14b)]('\x20'),{'cwd':this[ai(0x91)][ai(0xa3)](),'stdio':ai(0xbf)}));Log[ai(0x12d)](ai(0x125));const M={'source':H,'dest':ai(0xa1),'verbose':!![]};SSH[ai(0x9a)](M,q),Log[ai(0x12d)](ai(0xf3));const N=a25e[ai(0x14b)](g,ai(0xba)),O={'source':N,'dest':ai(0xdf),'verbose':!![]};SSH[ai(0x9a)](O,q);const P=a25e[ai(0x14b)](g,ai(0x113)),Q={'source':P,'dest':ai(0xb2),'verbose':!![]};SSH[ai(0x9a)](Q,q);const R=a25e[ai(0x14b)](g,'pm2.config.js'),S={'source':R,'dest':'~/pm2.config.js','verbose':!![]};SSH[ai(0x9a)](S,q);const T=a25e[ai(0x14b)](g,ai(0x144)),U={'source':T,'dest':ai(0x139),'verbose':!![]};SSH[ai(0x9a)](U,q);if(b[ai(0xde)]&&!b[ai(0x74)]){t=a25e['join'](g,ai(0xf2),t);const a6={'source':t,'dest':t};SSH[ai(0x9a)](a6,q),u=a25e[ai(0x14b)](g,ai(0xf2),u);const a7={'source':u,'dest':u};SSH[ai(0x9a)](a7,q);}const V=a25e[ai(0x14b)](g,ai(0xf2),ai(0x123));if(a25f['existsSync'](V)){const a8={'source':V,'dest':ai(0xc3),'verbose':!![]};SSH[ai(0x9a)](a8,q);}const W=ai(0x10a);await SSH[ai(0xb4)]('chmod\x20+x\x20~/deploy.sh\x20&&\x20./deploy.sh',q,{'verbose':c,'message':W}),Log[ai(0x12d)](ai(0x130)),SSH[ai(0x12e)]('echo\x20\x22\x22\x20&&\x20sudo\x20systemctl\x20status\x20nginx\x20|\x20grep\x20Active\x20&&\x20echo\x20\x22\x22',q,{'tty':!![],'verbose':!![]}),Log['notice']('Verifying\x20PM2'),SSH['sshSync']('source\x20~/.bashrc\x20&&\x20echo\x20\x22\x22\x20&&\x20pm2\x20status\x20&&\x20echo\x20\x22\x22',q,{'tty':!![],'verbose':!![]}),Log[ai(0x10e)]('Deployed\x20to:\x20'+p[ai(0x131)]);if(b[ai(0x74)]){Log[ai(0x12d)](ai(0x12f));try{const a9=a25f[ai(0xbe)](a25e[ai(0x14b)](g,'letsencrypt.json')),aa=JSON[ai(0x121)](a9[ai(0xa8)]());r=b[ai(0x142)]?b[ai(0x142)]:aa['domainNames'],s=b[ai(0x102)]?b[ai(0x102)]:aa[ai(0x103)],(!b[ai(0x102)]||!b[ai(0x142)])&&Log['notice'](ai(0x14f));}catch(ab){Log[ai(0x101)]('Warning:\x20'+ab);}Log[ai(0x12d)](ai(0x13e)),SSH[ai(0xb4)](ai(0x143),q),SSH[ai(0xb4)](ai(0x14c),q),SSH[ai(0xb4)](ai(0xf5),q),SSH['ssh'](ai(0xc0)+r+ai(0x111)+s,q);}Log[ai(0x10e)](ai(0x104));}catch(ac){Log[ai(0xd7)](ai(0x108)),Log['error'](ac);}}catch(ad){Log[ai(0xd7)](ai(0x108)),Log[ai(0xd7)](ad);}},a25h);
1
+ const a25ah=a25d;(function(a,b){const ae=a25d,c=a();while(!![]){try{const d=-parseInt(ae(0x2a2))/0x1+-parseInt(ae(0x276))/0x2*(-parseInt(ae(0x1c6))/0x3)+-parseInt(ae(0x228))/0x4+parseInt(ae(0x1da))/0x5+parseInt(ae(0x1f6))/0x6*(-parseInt(ae(0x268))/0x7)+-parseInt(ae(0x1df))/0x8*(parseInt(ae(0x22e))/0x9)+parseInt(ae(0x292))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a25c,0x95e48));const a25b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a25d;if(c){const e=c[af(0x1f4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a25a=a25b(this,function(){const ag=a25d;return a25a[ag(0x1dd)]()['search']('(((.+)+)+)+$')[ag(0x1dd)]()[ag(0x216)](a25a)[ag(0x1ee)](ag(0x256));});a25a();import a25e from'path';import a25f from'fs';import{execSync}from'child_process';import a25g from'semver';import{Command}from'../../command.js';function a25d(a,b){const c=a25c();return a25d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a25d(a,b);}import{Log}from'../../tools/log/log.class.js';function a25c(){const an=['No\x20letsencrypt.json\x20file\x20found.\x20You\x20will\x20be\x20prompted\x20at\x20the\x20end\x20of\x20deployment\x20for\x20configuration.','\x09root\x20html;\x0a','\x09add_header\x20Strict-Transport-Security\x20\x22max-age=31536000;\x22;\x0a','Consider\x20updating\x20with\x20\x22maka\x20update\x20--release\x20','source\x20~/.bashrc\x20&&\x20echo\x20\x22\x22\x20&&\x20pm2\x20status\x20&&\x20echo\x20\x22\x22','nvm\x20install\x20','rm\x20-rf\x20~/.bash_profile\x20~/.bashrc\x0a','verbose','uname\x20-a','\x09\x09proxy_set_header\x20Host\x20$host;\x0a','domainNames','app.tar.gz','sudo\x20systemctl\x20daemon-reload\x20||\x20null\x0a','readFileSync','trim','win32','15534280scEeOn','echo\x20\x22\x22\x20&&\x20sudo\x20systemctl\x20status\x20nginx\x20|\x20grep\x20Active\x20&&\x20echo\x20\x22\x22','_keys','\x09\x09proxy_pass\x20http://0.0.0.0:3000;\x0a','PM2\x20has\x20MONGO_URL\x20pointing\x20to\x20localhost;\x20deployment\x20will\x20install\x20a\x20local\x20mongo\x20instance.','apt','emailUpdate','#\x20install\x20and\x20configure\x20local\x20mongo\x0a','\x09\x09if\x20($uri\x20!=\x20\x27/\x27)\x20{\x0a','Aborted','getMakaProjectConfig','user','rm\x20-rf\x20~/maka-env/nvm-install\x0a','~/nginx.conf','ubuntu','\x09\x09proxy_set_header\x20Upgrade\x20$http_upgrade;\x0a','814098UdHyvy','notice','ssl','[\x20\x22$(nvm\x20current)\x22\x20==\x20\x22','Deployment\x20complete','force','scp','else\x0a','Attempting\x20to\x20setup\x20SSL\x20using\x20LetsEncrypt','chmod\x20+x\x20~/deploy.sh\x20&&\x20./deploy.sh','Checking\x20remote\x20host\x20availability\x20using\x20','.maka','setEnvSettings','\x09listen\x2080\x20default_server;\x0a','letsencrypt.json','\x09ssl_protocols\x20TLSv1\x20TLSv1.1\x20TLSv1.2;\x0a','readFileLines','I\x20could\x20not\x20find\x20a\x20valid\x20SSL\x20file,\x20please\x20provide\x20the\x20name\x20of\x20the\x20SSL\x20file\x20in\x20the\x20_keys/\x20directory:','No\x20🤔','sudo\x20apt-get\x20update\x0a','Are\x20you\x20ready\x20to\x20deploy?','AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:','ask','Free\x20SSL\x20with\x20Letsencrypt','pm2\x20start\x20~/pm2.config.js\x0a','build','3OMAOVe','join','\x09ssl\x20on;\x0a','127.0.0.1','Remote\x20host\x20connection\x20successful','template','#\x20Nginx\x20will\x20be\x20restarted\x20just\x20before\x20completing\x20the\x20deployment.\x0a','sudo\x20service\x20mongod\x20start\x0a','\x09ssl_ciphers\x20\x22ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:kEDH+','\x20--hp\x20/home/','error','Pushing\x20up\x20bundle\x20...','pm2\x20startup\x0a','success','getGlobalMeteorVersion','meteor','Aborted\x20deployment!','app','echo\x20\x22Attempting\x20to\x20decompress\x20the\x20bundle\x22\x0a','\x09ssl_certificate_key\x20/etc/nginx/ssl/','2315835SFsVAE','appName','\x22\x20]\x20&&\x20nvm\x20alias\x20default\x20','toString','[\x20-d\x20/etc/systemd/system/nginx.service.d\x20]\x20&&\x20echo\x20\x22nginx.service.d\x20exists\x22\x20||\x20sudo\x20mkdir\x20/etc/systemd/system/nginx.service.d\x0a','3026176mRhXSv','email','\x09\x09proxy_http_version\x201.1;\x0a','\x09listen\x20443\x20ssl;\x0a','ping','npm\x20audit\x20fix\x20--force\x0a','\x09\x09return\x20303\x20https://browser-update.org/update.html;\x0a','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','sshSync','findAppDirectory','\x20/etc/nginx/ssl/','You\x20do\x20not\x20have\x20a\x20valid\x20ssl\x20crt.\x20\x20Looking\x20for:\x20','sudo\x20mv\x20~/','sudo\x20snap\x20install\x20--classic\x20certbot','printf\x20\x22[Service]\x5cnExecStartPost=/bin/sleep\x200.1\x5cn\x22\x20>\x20override.conf\x0a','search','mongo','Building\x20deployment\x20script\x20...','#\x20backup\x20tar\x20bundle\x0a','\x20--email\x20','sudo\x20env\x20PATH=$PATH:$(which\x20npm)\x20$(which\x20pm2)\x20startup\x20systemd\x20-u\x20','apply','\x20||\x20nvm\x20install\x20','504ciDeWg','\x09if\x20($http_user_agent\x20~\x20\x22MSIE\x22\x20)\x20{\x0a','echo\x20\x22deb\x20[\x20arch=amd64\x20]\x20https://repo.mongodb.org/apt/ubuntu\x20bionic/mongodb-org/4.2\x20multiverse\x22\x20|\x20sudo\x20tee\x20/etc/apt/sources.list.d/mongodb-org-4.2.list\x0a','chmod\x20+x\x20~/maka-env/nvm-install/nvm-install.sh\x20&&\x20~/maka-env/nvm-install/nvm-install.sh\x0a','includes','exit\x200','sudo\x20cp\x20~/nginx.conf\x20/etc/nginx/sites-enabled/default\x0a','source\x20~/.bashrc\x0a','letsencrypt','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','\x20\x20tar\x20-xf\x20app.tar.gz\x0a','ssh','platforms','Verifying\x20Nginx','Deployment\x20script\x20written\x20to:\x20','.crt;\x0a','~/deploy.sh','if\x20[\x20-f\x20app.tar.gz\x20];\x20then\x0a','#\x20Bring\x20up\x20pm2\x20with\x20environment\x0a','\x09}\x0a','maka\x20deploy:ubuntu','server_tokens\x20off;\x0a','\x09\x09\x09expires\x2030d;\x0a','\x20npm\x20install\x20--save','map\x20$http_upgrade\x20$connection_upgrade\x20{\x0a','Supplied\x20SSL\x20/\x20CRT\x20file','write','~/settings.json','\x09\x09proxy_set_header\x20Connection\x20\x22upgrade\x22;\x0a','cd\x20bundle/programs/server\x0a','\x09location\x20/\x20{\x0a','[!]\x20Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','constructor','serverPort','Mobile\x20server\x20port:\x20','#\x20remove\x20backup\x20tar,\x20if\x20any\x0a','serverName','\x20\x20echo\x20\x22Could\x20not\x20find\x20app.tar.gz,\x20exiting!\x22\x0a','getProjectsMeteorNodeVersion','\x09\x09}\x0a','npm\x20install\x20-g\x20pm2@latest\x0a','sudo\x20systemctl\x20daemon-reload\x20&&\x20sudo\x20systemctl\x20start\x20nginx\x0a','SHA384:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:RC4-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK\x22;\x0a','\x20\x20echo\x20\x22No\x20bundle\x20found,\x20using\x20backup\x22\x0a','.key','domains','parse','echo\x20\x22test\x20-f\x20~/.bashrc\x20&&\x20.\x20~/.bashrc\x22\x20>\x20~/.bash_profile\x0a','443','pm2\x20update\x0a','4391484dChtDE','\x20\x20echo\x20\x22Bundle\x20found,\x20decompressing\x22\x0a','\x0a\x20\x20Deploy\x20your\x20app\x20to\x20an\x20Ubuntu\x20server\x20running\x20in\x20AWS,\x20On\x20Prem,\x0a\x20\x20or\x20even\x20ARM.',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','noRebuild','/bundle/programs/web.browser/app;\x0a','9ZiRAsv','\x20\x20exit\x201\x0a','Deploy\x20your\x20application','sslAnswer','\x09server_name\x20','\x09default\x20upgrade;\x0a','confirm','~/ses.json','writeFileSync','config/ssh.json','~/app.tar.gz','\x20\x20cp\x20app.tar.gz.bk\x20app.tar.gz\x0a',').\x20Continue?','\x09\x09alias\x20/home/','pem','sudo\x20','#\x20install\x20git\x20and\x20nginx\x0a','end','https','length','none','ssh.json','createWriteStream','npm\x20install\x0a','meteor.bat','\x09location\x20=\x20/favicon.ico\x20{\x0a','elif\x20[\x20-f\x20app.tar.gz.bk\x20];\x20then\x0a','sudo\x20cp\x20override.conf\x20/etc/systemd/system/nginx.service.d/override.conf\x0a','.key;\x0a','\x09ssl_certificate\x20/etc/nginx/ssl/','#\x20rm\x20-f\x20~/app.tar.gz.bk\x0a','#\x20Prepare\x20nginx\x0a','getProjectMeteorVersion','http','sudo\x20apt-get\x20install\x20-y\x20mongodb-org\x0a','server\x20{\x0a','.meteor','inherit','ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-','open','(((.+)+)+)+$','deploy.sh','stringify','pathFromProject','Deployed\x20to:\x20','touch\x20~/.bash_profile\x20~/.bashrc\x0a','mv\x20~/app.tar.gz\x20~/app.tar.gz.bk\x0a','This\x20project\x27s\x20meteor\x20version\x20(','--architecture=os.linux.x86_64','port','push','Configure\x20SSL','\x09listen\x20[::]:80\x20default_server\x20ipv6only=on;\x0a','findProjectDirectory','settings.json','sudo\x20mkdir\x20-p\x20/etc/nginx/ssl/\x0a','cd\x20~\x0a','setProjectConfig','27265rpjqZh','Email\x20to\x20use\x20for\x20auto-updates:\x20','You\x20do\x20not\x20have\x20a\x20valid\x20SSL\x20file:\x20','enforceCSP','0.0.0.0','Error\x20in\x20deployment:','env','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','\x09ssl_certificate\x20;\x0a','nginx.conf','warn','--server=','maka\x20d:u\x20-e\x20p\x20--mongo\x20--ssl=letsencrypt\x20--domains=www.maka-cli.com\x20--email=admin@maka-cli.com','maka\x20deploy:ubuntu\x20--env\x20prod','2429572ihlbOM','debug','\x09\x27\x27\x20\x20\x20\x20\x20\x20close;\x0a','host','existsSync','\x09\x09proxy_set_header\x20X-Forwarded-For\x20$remote_addr;\x0a','fi\x0a','fsi','Using\x20saved\x20letsencrypt\x20config','isFile','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?\x20[yn]','\x09ssl_session_cache\x20shared:SSL:10m;\x0a'];a25c=function(){return an;};return a25c();}import{SSH}from'../../tools/ssh/ssh.class.js';import{Actions}from'../../tools/actions/actions.class.js';import a25h from'./deploy.command.js';Command['create']({'name':a25ah(0x2a0),'usage':a25ah(0x20a),'aliases':['u'],'validOpts':[a25ah(0x277),a25ah(0x26e),a25ah(0x2a4),a25ah(0x223),a25ah(0x1ef),a25ah(0x2a7),'email',a25ah(0x289),a25ah(0x22c),a25ah(0x1fe)],'mustBeInMakaProject':!![],'isPro':![],'requiredOpts':[a25ah(0x26e)],'shortDesc':a25ah(0x230),'description':a25ah(0x22a),'examples':[a25ah(0x275),a25ah(0x274)]},async function(a,b){const ai=a25ah,c=b[ai(0x289)]?!![]:![],d=process['platform']===ai(0x291)?ai(0x246):ai(0x1d5),f=this['fsi'][ai(0x29c)](),g=this[ai(0x27d)]['getAppConfigPath'](b[ai(0x26e)]),h=await this['fsi'][ai(0x21c)](),[i,j]=h['split']('.'),k=i+'.'+j,l=ai(0x297),m=b[ai(0x2a7)];try{const n=a25e[ai(0x1c7)](g,'pm2.config.js');!this[ai(0x27d)]['isFile'](n)&&await this['fsi'][ai(0x1cb)]({'srcPath':'config/pm2.config.js','destPath':n,'context':{'app':f[ai(0x1db)],'isDocker':![]},'config':f});const o=a25e[ai(0x1c7)](g,ai(0x243));!this['fsi'][ai(0x27f)](o)&&await this[ai(0x27d)][ai(0x1cb)]({'srcPath':ai(0x237),'destPath':o,'context':{'app':f[ai(0x1db)]},'config':f});const p=JSON[ai(0x224)](a25f[ai(0x28f)](o)[ai(0x1dd)]()),q={'env':g,'user':p['user'],'host':p[ai(0x279)],'port':p[ai(0x25f)],'pem':p[ai(0x23c)]};let r=b[ai(0x223)],s=b[ai(0x1e0)];try{a25f[ai(0x28f)](a25e[ai(0x1c7)](g,ai(0x1ba))),Log[ai(0x2a3)]('Using\x20letsencrypt.json'),b[ai(0x1fe)]=!![];}catch(x){b[ai(0x1fe)]&&Log[ai(0x272)](ai(0x282));const y={'type':'list','name':ai(0x231),'message':ai(0x261),'choices':[{'name':ai(0x1c3),'value':ai(0x1fe)},{'name':ai(0x20f),'value':'basic'},{'name':ai(0x1be),'value':ai(0x242)}]},{sslAnswer:z}=await Actions['options'](y);if(z===ai(0x1fe)){b[ai(0x1fe)]=!![],b[ai(0x2a4)]=![],r=r?r:await Actions[ai(0x1c2)]('Domains\x20to\x20register\x20(comma\x20separated):\x20'),s=s?s:await Actions['ask'](ai(0x269));const A={'domainNames':r,'emailUpdate':s},B=JSON[ai(0x258)](A,null,0x2);a25f[ai(0x236)](a25e['join'](g,'letsencrypt.json'),B),this[ai(0x27d)][ai(0x1b8)](b[ai(0x26e)],ai(0x26b),!![]);}else z==='basic'?(b['letsencrypt']=![],b[ai(0x2a4)]=!![],this[ai(0x27d)]['setEnvSettings'](b[ai(0x26e)],'enforceCSP',!![])):this['fsi'][ai(0x1b8)](b[ai(0x26e)],ai(0x26b),![]);}let t='',u='';if(b[ai(0x2a4)]&&!b[ai(0x1fe)]){t=f[ai(0x1db)]+ai(0x222);!a25f['existsSync'](a25e[ai(0x1c7)](g,ai(0x294),t))&&(t=await Actions[ai(0x1c2)](ai(0x1bd)));if(!a25f[ai(0x27a)](a25e[ai(0x1c7)](g,ai(0x294),t)))throw ai(0x26a)+a25e[ai(0x1c7)](g,ai(0x294),t);u=f['appName']+'.crt';!a25f[ai(0x27a)](a25e[ai(0x1c7)](g,ai(0x294),u))&&(u=await Actions[ai(0x1c2)]('I\x20could\x20not\x20find\x20a\x20valid\x20CRT\x20file,\x20please\x20provide\x20the\x20name\x20of\x20the\x20CRT\x20file\x20in\x20the\x20_keys/\x20directory:'));if(!a25f[ai(0x27a)](a25e[ai(0x1c7)](g,'_keys',u)))throw ai(0x1ea)+a25e[ai(0x1c7)](g,ai(0x294),u);}Log[ai(0x2a3)](ai(0x1b6)+o);try{const C=SSH[ai(0x1e3)](ai(0x28a),q,{'verbose':!![]});if(!C)throw ai(0x1e6);if(C)Log[ai(0x1d3)](ai(0x1ca));}catch(D){Log[ai(0x1d0)](D);return;}Log['notice'](ai(0x1f0));const v=a25f[ai(0x28f)](a25e['join'](g,'pm2.config.js')),w=this['fsi']['grep'](v[ai(0x1dd)](),'MONGO_URL');(w[0x0][ai(0x290)]()['includes']('localhost')||w[0x0][ai(0x290)]()[ai(0x1fa)](ai(0x1c9))||w[0x0][ai(0x290)]()[ai(0x1fa)](ai(0x26c)))&&(b[ai(0x1ef)]=!![],Log[ai(0x2a3)](ai(0x296)),Log[ai(0x2a3)]('->\x20'+w[0x0][ai(0x290)]()));try{const E=a25f[ai(0x244)](a25e['join'](g,'nginx.conf'),{'flags':'w'});E['on'](ai(0x255),function(){const aj=ai;b['ssl']&&!b['letsencrypt']?(E[aj(0x210)](aj(0x20b)),E[aj(0x210)]('map\x20$http_upgrade\x20$connection_upgrade\x20{\x0a'),E['write']('\x09default\x20upgrade;\x0a'),E[aj(0x210)](aj(0x278)),E[aj(0x210)]('}\x0a'),E[aj(0x210)]('\x0a'),E[aj(0x210)](aj(0x251)),E[aj(0x210)](aj(0x1b9)),E['write'](aj(0x262)),E[aj(0x210)](aj(0x232)+f[aj(0x1db)]+';\x0a'),E['write']('\x09root\x20/usr/share/nginx/html;\x0a'),E[aj(0x210)]('\x09index\x20index.html\x20index.htm;\x0a'),E[aj(0x210)]('\x09location\x20/\x20{\x0a'),E[aj(0x210)]('\x09\x09rewrite\x20\x20\x20\x20\x20^\x20https://$server_name$request_uri?\x20permanent;\x0a'),E[aj(0x210)](aj(0x209)),E[aj(0x210)]('}'),E[aj(0x210)]('\x0a'),E[aj(0x210)]('\x0a'),E[aj(0x210)](aj(0x251)),E['write'](aj(0x1e2)),E['write']('\x09server_name\x20'+f[aj(0x1db)]+';\x0a'),E[aj(0x210)](aj(0x283)),E[aj(0x210)]('\x09index\x20index.html;\x0a'),E[aj(0x210)](aj(0x1c8)),E[aj(0x210)](aj(0x24b)+f[aj(0x1db)]+aj(0x205)),E['write'](aj(0x1d9)+f[aj(0x1db)]+aj(0x24a)),E[aj(0x210)](aj(0x270)),E[aj(0x210)]('\x09ssl_certificate_key\x20;\x0a'),E[aj(0x210)](aj(0x281)),E[aj(0x210)]('\x09ssl_session_timeout\x205m;\x0a'),E[aj(0x210)]('\x09\x0a'),E[aj(0x210)]('\x09ssl_prefer_server_ciphers\x20on;\x0a'),E['write'](aj(0x1bb)),E[aj(0x210)](aj(0x1ce)+aj(0x1c1)+aj(0x254)+aj(0x220)),E['write'](aj(0x284)),E[aj(0x210)]('\x09\x0a'),E[aj(0x210)](aj(0x1f7)),E[aj(0x210)]('\x09\x09return\x20303\x20https://browser-update.org/update.html;\x0a'),E[aj(0x210)](aj(0x209)),E['write'](aj(0x247)),E[aj(0x210)](aj(0x23b)+p[aj(0x29d)]+'/bundle/programs/web.browser/app;\x0a'),E[aj(0x210)](aj(0x209)),E['write']('\x09\x0a'),E[aj(0x210)](aj(0x214)),E[aj(0x210)](aj(0x295)),E[aj(0x210)](aj(0x1e1)),E[aj(0x210)](aj(0x2a1)),E[aj(0x210)](aj(0x212)),E[aj(0x210)](aj(0x27b)),E[aj(0x210)](aj(0x28b)),E[aj(0x210)](aj(0x29a)),E['write'](aj(0x20c)),E[aj(0x210)](aj(0x21d)),E[aj(0x210)](aj(0x209)),E[aj(0x210)]('}')):(E['write'](aj(0x20b)),E[aj(0x210)](aj(0x20e)),E[aj(0x210)](aj(0x233)),E[aj(0x210)](aj(0x278)),E['write']('}\x0a'),E[aj(0x210)]('\x0a'),E[aj(0x210)](aj(0x251)),E[aj(0x210)](aj(0x1b9)),E[aj(0x210)](aj(0x262)),E[aj(0x210)](aj(0x1f7)),E[aj(0x210)](aj(0x1e5)),E[aj(0x210)](aj(0x209)),E[aj(0x210)](aj(0x247)),E[aj(0x210)](aj(0x23b)+p[aj(0x29d)]+aj(0x22d)),E['write'](aj(0x209)),E[aj(0x210)]('\x09\x0a'),E[aj(0x210)]('\x09location\x20/\x20{\x0a'),E[aj(0x210)](aj(0x295)),E[aj(0x210)](aj(0x1e1)),E[aj(0x210)]('\x09\x09proxy_set_header\x20Upgrade\x20$http_upgrade;\x0a'),E[aj(0x210)]('\x09\x09proxy_set_header\x20Connection\x20\x22upgrade\x22;\x0a'),E[aj(0x210)](aj(0x27b)),E['write'](aj(0x28b)),E['write'](aj(0x29a)),E[aj(0x210)](aj(0x20c)),E[aj(0x210)](aj(0x21d)),E['write'](aj(0x209)),E[aj(0x210)]('}'));}),E['on']('finish',function(){const ak=ai;E[ak(0x23f)]();});const F=a25f[ai(0x244)](a25e[ai(0x1c7)](g,ai(0x257)),{'flags':'w'});F['on'](ai(0x255),function(){const al=ai;F['write'](al(0x1bf)),F[al(0x210)](al(0x23e)),F[al(0x210)](al(0x23d)+l+'\x20install\x20build-essential\x20git\x20nginx\x20-y\x0a'),b[al(0x1ef)]===!![]&&(F[al(0x210)](al(0x299)),F[al(0x210)]('wget\x20-qO\x20-\x20https://www.mongodb.org/static/pgp/server-4.2.asc\x20|\x20sudo\x20apt-key\x20add\x20-\x0a'),F[al(0x210)](al(0x1f8)),F[al(0x210)](al(0x1bf)),F[al(0x210)](al(0x250)),F[al(0x210)](al(0x1cd)),F[al(0x210)]('sudo\x20systemctl\x20enable\x20mongod.service\x0a')),F[al(0x210)]('#\x20setup\x20node\x20and\x20npm\x20with\x20the\x20proper\x20node\x20version\x20using\x20nvm\x0a'),F[al(0x210)]('git\x20clone\x20https://gist.github.com/c427ccd6f4377b39299b9d402f5d51fe.git\x20~/maka-env/nvm-install\x0a'),F[al(0x210)](al(0x288)),F[al(0x210)](al(0x25b)),F[al(0x210)](al(0x225)),F[al(0x210)](al(0x1f9)),F['write'](al(0x1fd)),F[al(0x210)](al(0x287)+h+al(0x1f5)+k+'\x0a'),F[al(0x210)](al(0x2a5)+h+al(0x1dc)+h+'\x20||\x20nvm\x20alias\x20default\x20'+k+'\x0a'),F[al(0x210)](al(0x21e)),F[al(0x210)](al(0x29e)),F[al(0x210)](al(0x24d)),F[al(0x210)](al(0x1de)),F[al(0x210)](al(0x1ed)),F['write'](al(0x249)),F[al(0x210)](al(0x28e)),F[al(0x210)]('sudo\x20systemctl\x20stop\x20nginx\x0a'),F[al(0x210)]('sudo\x20nginx\x20-s\x20stop\x0a'),F[al(0x210)](al(0x1cc)),F[al(0x210)](al(0x1fc)),b[al(0x2a4)]&&!b[al(0x1fe)]&&(F['write'](al(0x265)),F[al(0x210)](al(0x1eb)+t+'\x20/etc/nginx/ssl/'+t+'\x0a'),F[al(0x210)](al(0x1eb)+u+al(0x1e9)+u+'\x0a')),F[al(0x210)]('#\x20Decompress\x20the\x20bundle\x0a'),F[al(0x210)](al(0x1d8)),F[al(0x210)](al(0x207)),F[al(0x210)](al(0x229)),F[al(0x210)](al(0x200)),F[al(0x210)](al(0x248)),F['write'](al(0x221)),F['write'](al(0x239)),F[al(0x210)](al(0x200)),F['write'](al(0x1b3)),F[al(0x210)](al(0x21b)),F[al(0x210)](al(0x22f)),F[al(0x210)](al(0x27c)),F['write'](al(0x213)),F[al(0x210)](al(0x245)),F[al(0x210)](al(0x1e4)),F[al(0x210)](al(0x266)),F[al(0x210)]('#\x20Reset\x20pm2\x20\x0a'),F[al(0x210)]('pm2\x20delete\x20all\x0a'),F['write']('#\x20updating\x20PM2\x20to\x20latest\x0a'),F['write'](al(0x227)),F[al(0x210)](al(0x208)),F[al(0x210)](al(0x1c4)),F['write']('#\x20Configure\x20pm2\x20to\x20start\x20on\x20boot\x0a'),F['write'](al(0x1d2)),F[al(0x210)](al(0x1f3)+p['user']+al(0x1cf)+p['user']+'\x0a'),F[al(0x210)]('pm2\x20save\x0a'),F[al(0x210)]('#\x20bring\x20back\x20up\x20nginx\x0a'),F[al(0x210)](al(0x21f)),F['write'](al(0x219)),F[al(0x210)](al(0x24c)),F[al(0x210)](al(0x1f1)),F[al(0x210)](al(0x25c)),F[al(0x210)](al(0x1fb));}),F['on']('finish',function(){const am=ai;F[am(0x23f)]();}),Log[ai(0x1d3)](ai(0x204)+a25e[ai(0x1c7)](g,'deploy.sh'));if(!m){const X=await Actions[ai(0x234)](ai(0x1c0));if(!X)throw ai(0x1d6);}const G=[ai(0x1c5),a25e[ai(0x1c7)](this[ai(0x27d)][ai(0x263)](),'build'),ai(0x25e)];try{const Y=this['fsi'][ai(0x1bc)](a25e[ai(0x1c7)](this[ai(0x27d)]['pathFromProject']({}),ai(0x1d7),ai(0x252),ai(0x202))),Z=Y[ai(0x241)]>0x2?!![]:![];if(Z){const a0=f[ai(0x21a)]?f[ai(0x21a)]:await Actions[ai(0x1c2)]('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),a1=f[ai(0x217)]?f[ai(0x217)]:await Actions[ai(0x1c2)](ai(0x218));if(a0[ai(0x241)]==0x0||a1[ai(0x241)]==0x0)throw ai(0x215);const a2=a1==ai(0x226)?ai(0x240):ai(0x24f);G[ai(0x260)](ai(0x273)+a2+'://'+a0+':'+a1);if(!f[ai(0x21a)]&&!f[ai(0x217)]){const a3=await Actions[ai(0x1c2)](ai(0x280));a3&&(this[ai(0x27d)][ai(0x267)]('serverName',a0),this[ai(0x27d)]['setProjectConfig'](ai(0x217),a1),Log[ai(0x2a3)]('Stored\x20server\x20config\x20to\x20'+a25e[ai(0x1c7)](ai(0x1b7),'config.json')));}}}catch(a4){Log[ai(0x1d0)](a4);return;}const H=a25e[ai(0x1c7)](this[ai(0x27d)][ai(0x259)]({}),'build',ai(0x28d)),I=this[ai(0x27d)][ai(0x1d4)](),J=this[ai(0x27d)][ai(0x24e)](),K=a25g['gt'](I,J);if(K&&!m){const a5=await Actions['confirm'](ai(0x25d)+J+ai(0x22b)+I+ai(0x23a),![]);if(!a5){Log[ai(0x1d0)](ai(0x29b)),Log[ai(0x2a3)](ai(0x285)+I+'\x22');return;}}let L=!![];a25f[ai(0x27a)](H)&&!m&&(L=await Actions['confirm'](ai(0x1ff)));L&&(execSync(d+ai(0x20d),{'cwd':this['fsi'][ai(0x1e8)](),'stdio':'ignore'}),execSync(d+'\x20'+G['join']('\x20'),{'cwd':this['fsi'][ai(0x1e8)](),'stdio':ai(0x253)}));Log[ai(0x2a3)](ai(0x1d1));const M={'source':H,'dest':ai(0x238),'verbose':!![]};SSH[ai(0x1b2)](M,q),Log['notice']('Pushing\x20up\x20deploy\x20scripts\x20...');const N=a25e[ai(0x1c7)](g,'deploy.sh'),O={'source':N,'dest':ai(0x206),'verbose':!![]};SSH[ai(0x1b2)](O,q);const P=a25e[ai(0x1c7)](g,ai(0x271)),Q={'source':P,'dest':ai(0x29f),'verbose':!![]};SSH[ai(0x1b2)](Q,q);const R=a25e[ai(0x1c7)](g,'pm2.config.js'),S={'source':R,'dest':'~/pm2.config.js','verbose':!![]};SSH['scp'](S,q);const T=a25e[ai(0x1c7)](g,ai(0x264)),U={'source':T,'dest':ai(0x211),'verbose':!![]};SSH[ai(0x1b2)](U,q);if(b[ai(0x2a4)]&&!b['letsencrypt']){t=a25e[ai(0x1c7)](g,'_keys',t);const a6={'source':t,'dest':t};SSH[ai(0x1b2)](a6,q),u=a25e[ai(0x1c7)](g,'_keys',u);const a7={'source':u,'dest':u};SSH['scp'](a7,q);}const V=a25e[ai(0x1c7)](g,ai(0x294),'ses.json');if(a25f[ai(0x27a)](V)){const a8={'source':V,'dest':ai(0x235),'verbose':!![]};SSH[ai(0x1b2)](a8,q);}const W='Running\x20deployment\x20scripts\x20on\x20remote\x20server';await SSH[ai(0x201)](ai(0x1b5),q,{'verbose':c,'message':W}),Log[ai(0x2a3)](ai(0x203)),SSH[ai(0x1e7)](ai(0x293),q,{'tty':!![],'verbose':!![]}),Log[ai(0x2a3)]('Verifying\x20PM2'),SSH[ai(0x1e7)](ai(0x286),q,{'tty':!![],'verbose':!![]}),Log['success'](ai(0x25a)+p['host']);if(b['letsencrypt']){Log[ai(0x2a3)](ai(0x1b4));try{const a9=a25f[ai(0x28f)](a25e['join'](g,ai(0x1ba))),aa=JSON[ai(0x224)](a9['toString']());r=b['domains']?b[ai(0x223)]:aa[ai(0x28c)],s=b[ai(0x1e0)]?b['email']:aa[ai(0x298)],(!b[ai(0x1e0)]||!b[ai(0x223)])&&Log[ai(0x2a3)](ai(0x27e));}catch(ab){Log[ai(0x272)]('Warning:\x20'+ab);}Log[ai(0x2a3)]('Setting\x20up\x20letsencrypt'),SSH[ai(0x201)]('sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core',q),SSH['ssh'](ai(0x1ec),q),SSH[ai(0x201)]('sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot',q),SSH[ai(0x201)](ai(0x26f)+r+ai(0x1f2)+s,q);}Log[ai(0x1d3)](ai(0x2a6));}catch(ac){Log['error']('Error\x20in\x20deployment:'),Log[ai(0x1d0)](ac);}}catch(ad){Log[ai(0x1d0)](ai(0x26d)),Log['error'](ad);}},a25h);
@@ -1 +1 @@
1
- (function(a,b){var f=a26d,c=a();while(!![]){try{var d=parseInt(f(0x127))/0x1+parseInt(f(0x12c))/0x2+-parseInt(f(0x12f))/0x3*(-parseInt(f(0x12a))/0x4)+parseInt(f(0x124))/0x5+parseInt(f(0x126))/0x6+parseInt(f(0x12e))/0x7+-parseInt(f(0x125))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a26c,0xf1669));var a26b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a26d;if(c){var e=c[g(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a26a=a26b(this,function(){var h=a26d;return a26a[h(0x123)]()[h(0x12b)](h(0x12d))[h(0x123)]()[h(0x129)](a26a)[h(0x12b)]('(((.+)+)+)+$');});function a26d(a,b){var c=a26c();return a26d=function(d,e){d=d-0x123;var f=c[d];return f;},a26d(a,b);}function a26c(){var i=['892kQrhUB','search','1153674IJgvpb','(((.+)+)+)+$','9357474JkxHEc','3087XkwSGn','toString','1267260KxkOQZ','21212256EYNXsz','6129834WAEOYY','222132wZOSBf','apply','constructor'];a26c=function(){return i;};return a26c();}a26a();import'./play.command.js';import'./pong.sub.cmd.js';import'./snake.sub.cmd.js';import'./battleship.sub.cmd.js';import'./sideQuest.sub.cmd.js';
1
+ (function(a,b){var f=a26d,c=a();while(!![]){try{var d=-parseInt(f(0x1af))/0x1+parseInt(f(0x1b6))/0x2*(parseInt(f(0x1ae))/0x3)+-parseInt(f(0x1aa))/0x4*(parseInt(f(0x1b2))/0x5)+-parseInt(f(0x1ab))/0x6*(parseInt(f(0x1b3))/0x7)+parseInt(f(0x1b0))/0x8*(-parseInt(f(0x1b4))/0x9)+parseInt(f(0x1b7))/0xa+parseInt(f(0x1ad))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a26c,0xe999c));function a26c(){var i=['40pQvNGR','(((.+)+)+)+$','8440205BtQrBl','7JUMEcp','1230039ESIllW','toString','1430906NJefMZ','18843100YtVfPS','search','apply','4GPNGMA','8025240bidnTQ','constructor','41396806icNOaw','3OqAjvz','1697345AiQrBE'];a26c=function(){return i;};return a26c();}var a26b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a26d;if(c){var e=c[g(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a26a=a26b(this,function(){var h=a26d;return a26a[h(0x1b5)]()['search']('(((.+)+)+)+$')['toString']()[h(0x1ac)](a26a)[h(0x1a8)](h(0x1b1));});a26a();import'./play.command.js';function a26d(a,b){var c=a26c();return a26d=function(d,e){d=d-0x1a8;var f=c[d];return f;},a26d(a,b);}import'./pong.sub.cmd.js';import'./snake.sub.cmd.js';import'./battleship.sub.cmd.js';import'./sideQuest.sub.cmd.js';
@@ -1 +1 @@
1
- var a27i=a27d;(function(a,b){var f=a27d,c=a();while(!![]){try{var d=parseInt(f(0x1b8))/0x1+parseInt(f(0x1c0))/0x2*(-parseInt(f(0x1b2))/0x3)+parseInt(f(0x1b7))/0x4*(-parseInt(f(0x1b1))/0x5)+parseInt(f(0x1b5))/0x6+parseInt(f(0x1b4))/0x7*(parseInt(f(0x1ba))/0x8)+-parseInt(f(0x1bf))/0x9+-parseInt(f(0x1b9))/0xa*(-parseInt(f(0x1b6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a27c,0x44858));var a27b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a27d;if(c){var e=c[g(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a27a=a27b(this,function(){var h=a27d;return a27a[h(0x1bd)]()['search'](h(0x1b3))[h(0x1bd)]()['constructor'](a27a)[h(0x1be)]('(((.+)+)+)+$');});a27a();import a27e from'./play.command.js';import{Command}from'../../command.js';function a27d(a,b){var c=a27c();return a27d=function(d,e){d=d-0x1b0;var f=c[d];return f;},a27d(a,b);}import{execSync}from'child_process';function a27c(){var k=['175687fUrrZl','7700sKUAbF','673208BXidvm','inherit','Play\x20Battlehsip:\x20https://www.npmjs.com/package/battleship-game','toString','search','3553092SDVWVp','5388aUVtHe','create','apply','55fowSTc','624OlTLxO','(((.+)+)+)+$','21zrITGe','589248IySLCL','15499FwOJEI','136536QjcwgN'];a27c=function(){return k;};return a27c();}Command[a27i(0x1c1)]({'name':'battleship','usage':'maka\x20game:battleship','shortDesc':a27i(0x1bc),'validOpts':[]},async function(){var j=a27i;execSync('npx\x20battleship-game',{'stdio':j(0x1bb)});},a27e);
1
+ function a27d(a,b){var c=a27c();return a27d=function(d,e){d=d-0x64;var f=c[d];return f;},a27d(a,b);}var a27h=a27d;(function(a,b){var f=a27d,c=a();while(!![]){try{var d=-parseInt(f(0x66))/0x1+parseInt(f(0x6f))/0x2+-parseInt(f(0x73))/0x3+-parseInt(f(0x6e))/0x4+-parseInt(f(0x6b))/0x5*(-parseInt(f(0x72))/0x6)+-parseInt(f(0x6a))/0x7+parseInt(f(0x69))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a27c,0x2204c));var a27b=(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;};}()),a27a=a27b(this,function(){var g=a27d;return a27a[g(0x6d)]()[g(0x71)](g(0x65))['toString']()[g(0x68)](a27a)['search'](g(0x65));});function a27c(){var j=['battleship','(((.+)+)+)+$','45838zvEUQS','inherit','constructor','2920664MVBrlQ','1091111tJGKOR','5vCGAoZ','maka\x20game:battleship','toString','320784WoWpEU','490884npbdQT','npx\x20battleship-game','search','389406WvYgRJ','762537WcnnSO'];a27c=function(){return j;};return a27c();}a27a();import a27e from'./play.command.js';import{Command}from'../../command.js';import{execSync}from'child_process';Command['create']({'name':a27h(0x64),'usage':a27h(0x6c),'shortDesc':'Play\x20Battlehsip:\x20https://www.npmjs.com/package/battleship-game','validOpts':[]},async function(){var i=a27h;execSync(i(0x70),{'stdio':i(0x67)});},a27e);
@@ -1 +1 @@
1
- const a28j=a28d;(function(a,b){const g=a28d,c=a();while(!![]){try{const d=-parseInt(g(0x137))/0x1*(parseInt(g(0x136))/0x2)+-parseInt(g(0x13a))/0x3*(-parseInt(g(0x139))/0x4)+parseInt(g(0x140))/0x5+parseInt(g(0x146))/0x6*(-parseInt(g(0x135))/0x7)+parseInt(g(0x133))/0x8+-parseInt(g(0x144))/0x9+parseInt(g(0x13e))/0xa*(parseInt(g(0x13c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a28c,0x66bb2));const a28b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a28d;if(c){const e=c[h(0x145)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a28a=a28b(this,function(){const i=a28d;return a28a[i(0x138)]()['search']('(((.+)+)+)+$')['toString']()[i(0x143)](a28a)[i(0x142)]('(((.+)+)+)+$');});function a28c(){const l=['runSubCommand','2831040XSYFeR','maka\x20play:pong','21epYkhS','2ALCQDX','301751xeFRXA','toString','8wybeOg','214257XRhtvW','exit','726hCTkTu','maka\x20play:snake','132590ehuMuL','play','2335360uTeodz','create','search','constructor','4686759PpdMbE','apply','1191192TVAnKy'];a28c=function(){return l;};return a28c();}a28a();import{Command}from'../../command.js';function a28d(a,b){const c=a28c();return a28d=function(d,e){d=d-0x132;let f=c[d];return f;},a28d(a,b);}const PlayCommand=Command[a28j(0x141)]({'name':a28j(0x13f),'usage':'maka\x20play:<game>','shortDesc':'Ok...only\x20for\x20a\x20few\x20minutes\x20;)','validOpts':[],'examples':['maka\x20play:battleship',a28j(0x134),a28j(0x13d),'maka\x20play:tetris']},async function(a,b){const k=a28j;try{const c=a[0x0],d=this['findSubCommand'](c);d&&this[k(0x132)](c,a,b);}catch(f){console['error'](f),process[k(0x13b)](0x0);}});export default PlayCommand;
1
+ const a28i=a28d;function a28d(a,b){const c=a28c();return a28d=function(d,e){d=d-0x79;let f=c[d];return f;},a28d(a,b);}(function(a,b){const g=a28d,c=a();while(!![]){try{const d=-parseInt(g(0x7a))/0x1+parseInt(g(0x86))/0x2*(parseInt(g(0x7b))/0x3)+parseInt(g(0x8e))/0x4+-parseInt(g(0x89))/0x5+parseInt(g(0x80))/0x6*(parseInt(g(0x79))/0x7)+-parseInt(g(0x7c))/0x8*(-parseInt(g(0x83))/0x9)+-parseInt(g(0x8b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a28c,0xda53f));const a28b=(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;};}()),a28a=a28b(this,function(){const h=a28d;return a28a[h(0x81)]()[h(0x8a)](h(0x85))[h(0x81)]()['constructor'](a28a)[h(0x8a)](h(0x85));});function a28c(){const k=['runSubCommand','27hVmQQU','Ok...only\x20for\x20a\x20few\x20minutes\x20;)','(((.+)+)+)+$','28LXrJSw','error','maka\x20play:snake','2104175bGNWbw','search','28460390gCUPKu','maka\x20play:battleship','maka\x20play:<game>','4853404KLPHMH','exit','create','35WmFWJm','738850mShSxW','167703hSNIZW','4297960UdvJns','maka\x20play:tetris','findSubCommand','maka\x20play:pong','1550754RFAfdM','toString'];a28c=function(){return k;};return a28c();}a28a();import{Command}from'../../command.js';const PlayCommand=Command[a28i(0x90)]({'name':'play','usage':a28i(0x8d),'shortDesc':a28i(0x84),'validOpts':[],'examples':[a28i(0x8c),a28i(0x7f),a28i(0x88),a28i(0x7d)]},async function(a,b){const j=a28i;try{const c=a[0x0],d=this[j(0x7e)](c);d&&this[j(0x82)](c,a,b);}catch(f){console[j(0x87)](f),process[j(0x8f)](0x0);}});export default PlayCommand;
@@ -1 +1 @@
1
- var a29i=a29d;function a29d(a,b){var c=a29c();return a29d=function(d,e){d=d-0xb7;var f=c[d];return f;},a29d(a,b);}(function(a,b){var f=a29d,c=a();while(!![]){try{var d=-parseInt(f(0xbc))/0x1+-parseInt(f(0xba))/0x2*(parseInt(f(0xc4))/0x3)+-parseInt(f(0xc3))/0x4+parseInt(f(0xc7))/0x5*(parseInt(f(0xbf))/0x6)+parseInt(f(0xb7))/0x7+parseInt(f(0xc5))/0x8+-parseInt(f(0xbb))/0x9*(-parseInt(f(0xb8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a29c,0xa1ffb));var a29b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a29d;if(c){var e=c[g(0xc6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a29a=a29b(this,function(){var h=a29d;return a29a[h(0xc0)]()[h(0xb9)](h(0xbe))['toString']()['constructor'](a29a)[h(0xb9)](h(0xbe));});function a29c(){var k=['438BZTboy','toString','create','maka\x20game:pong','1389396kJQRNM','3696414vtfMUq','5020064fJgaJm','apply','86225aqwBVc','inherit','3123246jlDNqW','190FfzhJp','search','2acawol','173385krRqge','455572SfhBtP','npx\x20command-line-pong\x20--no-install','(((.+)+)+)+$'];a29c=function(){return k;};return a29c();}a29a();import a29e from'./play.command.js';import{Command}from'../../command.js';import{execSync}from'child_process';Command[a29i(0xc1)]({'name':'pong','usage':a29i(0xc2),'shortDesc':'Play\x20Pong:\x20https://github.com/liambloom/node-pong','validOpts':[]},async function(){var j=a29i;execSync(j(0xbd),{'stdio':j(0xc8)});},a29e);
1
+ function a29d(a,b){var c=a29c();return a29d=function(d,e){d=d-0x104;var f=c[d];return f;},a29d(a,b);}var a29i=a29d;(function(a,b){var f=a29d,c=a();while(!![]){try{var d=parseInt(f(0x108))/0x1*(-parseInt(f(0x114))/0x2)+-parseInt(f(0x10f))/0x3+parseInt(f(0x104))/0x4*(parseInt(f(0x10a))/0x5)+parseInt(f(0x10e))/0x6*(-parseInt(f(0x10d))/0x7)+parseInt(f(0x10b))/0x8*(-parseInt(f(0x119))/0x9)+-parseInt(f(0x116))/0xa+parseInt(f(0x110))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a29c,0x62885));var a29b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a29d;if(c){var e=c[g(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a29a=a29b(this,function(){var h=a29d;return a29a['toString']()[h(0x106)](h(0x111))[h(0x10c)]()[h(0x107)](a29a)['search'](h(0x111));});function a29c(){var k=['114360JUQSNl','maka\x20game:pong','search','constructor','2ZStwDC','apply','5VgAhsv','248hnefUn','toString','7fDwjrn','4654542rWeQKu','2291121DRXMsk','33310651JnGOGY','(((.+)+)+)+$','inherit','npx\x20command-line-pong\x20--no-install','244906hsFwdy','create','7370290dpBOjU','Play\x20Pong:\x20https://github.com/liambloom/node-pong','pong','38277HKDglb'];a29c=function(){return k;};return a29c();}a29a();import a29e from'./play.command.js';import{Command}from'../../command.js';import{execSync}from'child_process';Command[a29i(0x115)]({'name':a29i(0x118),'usage':a29i(0x105),'shortDesc':a29i(0x117),'validOpts':[]},async function(){var j=a29i;execSync(j(0x113),{'stdio':j(0x112)});},a29e);
@@ -1 +1 @@
1
- var a30i=a30d;function a30c(){var m=['9285EtAJUB','3199210iNbhTK','800318lYYYQI','9HAZSHm','1516haPiNu','values','5590455UZUwzP','(((.+)+)+)+$','constructor','rooms','getInstance','search','826824wmqWhU','logger','description','apply','6045410QYGfzM','6865208IojguY','actor','toString','2ueKgBq','scene'];a30c=function(){return m;};return a30c();}function a30d(a,b){var c=a30c();return a30d=function(d,e){d=d-0x1dd;var f=c[d];return f;},a30d(a,b);}(function(a,b){var f=a30d,c=a();while(!![]){try{var d=parseInt(f(0x1f2))/0x1*(parseInt(f(0x1ee))/0x2)+-parseInt(f(0x1f0))/0x3*(-parseInt(f(0x1de))/0x4)+-parseInt(f(0x1e0))/0x5+parseInt(f(0x1e6))/0x6+-parseInt(f(0x1ea))/0x7+parseInt(f(0x1eb))/0x8+parseInt(f(0x1dd))/0x9*(-parseInt(f(0x1f1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a30c,0xa2ff4));var a30b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a30d;if(c){var e=c[g(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a30a=a30b(this,function(){var h=a30d;return a30a[h(0x1ed)]()[h(0x1e5)](h(0x1e1))[h(0x1ed)]()[h(0x1e2)](a30a)[h(0x1e5)](h(0x1e1));});a30a();import{Direction}from'../types/enums.js';import{Logger}from'../utilities/logger.js';export class Command{static ['verb'];static [a30i(0x1e8)];['actor'];[a30i(0x1e3)];[a30i(0x1e7)];[a30i(0x1ef)];constructor(a){var j=a30i;this[j(0x1ec)]=a[j(0x1ec)],this['rooms']=a['rooms'],this[j(0x1e7)]=Logger[j(0x1e4)]();}['isValidDirection'](a){var k=a30i;return Object[k(0x1df)](Direction)['includes'](a);}static['getDescription'](){var l=a30i;return this[l(0x1e8)]||'No\x20description\x20available.';}}
1
+ function a30d(a,b){var c=a30c();return a30d=function(d,e){d=d-0x1bf;var f=c[d];return f;},a30d(a,b);}var a30i=a30d;(function(a,b){var f=a30d,c=a();while(!![]){try{var d=parseInt(f(0x1ca))/0x1*(parseInt(f(0x1d0))/0x2)+parseInt(f(0x1d9))/0x3+-parseInt(f(0x1c3))/0x4*(-parseInt(f(0x1d2))/0x5)+parseInt(f(0x1d6))/0x6*(parseInt(f(0x1c7))/0x7)+-parseInt(f(0x1c0))/0x8*(parseInt(f(0x1ce))/0x9)+parseInt(f(0x1d5))/0xa*(-parseInt(f(0x1c8))/0xb)+-parseInt(f(0x1d4))/0xc*(parseInt(f(0x1c2))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a30c,0x22e48));var a30b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a30d;if(c){var e=c[g(0x1c9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a30a=a30b(this,function(){var h=a30d;return a30a[h(0x1cb)]()[h(0x1d7)](h(0x1c1))[h(0x1cb)]()['constructor'](a30a)[h(0x1d7)](h(0x1c1));});a30a();import{Direction}from'../types/enums.js';import{Logger}from'../utilities/logger.js';function a30c(){var m=['1402506RMzzAY','22KSshSr','apply','1720SjDHDw','toString','actor','verb','9KppNKw','scene','220KYCIWK','values','487085Lpwulg','includes','12cEsPzK','800810KCSpYc','6pIOqWr','search','description','493506MDDrOq','rooms','getDescription','1448336mtRbhx','(((.+)+)+)+$','2175589OFDqMh','4NKspFM','logger','No\x20description\x20available.','getInstance'];a30c=function(){return m;};return a30c();}export class Command{static [a30i(0x1cd)];static [a30i(0x1d8)];[a30i(0x1cc)];[a30i(0x1da)];[a30i(0x1c4)];[a30i(0x1cf)];constructor(a){var j=a30i;this[j(0x1cc)]=a[j(0x1cc)],this['rooms']=a[j(0x1da)],this[j(0x1c4)]=Logger[j(0x1c6)]();}['isValidDirection'](a){var k=a30i;return Object[k(0x1d1)](Direction)[k(0x1d3)](a);}static[a30i(0x1bf)](){var l=a30i;return this[l(0x1d8)]||l(0x1c5);}}
@@ -1 +1 @@
1
- const a31h=a31d;(function(a,b){const f=a31d,c=a();while(!![]){try{const d=parseInt(f(0x11b))/0x1+parseInt(f(0x100))/0x2*(parseInt(f(0x105))/0x3)+parseInt(f(0x121))/0x4*(-parseInt(f(0x110))/0x5)+parseInt(f(0x120))/0x6+parseInt(f(0x119))/0x7+-parseInt(f(0x10a))/0x8*(parseInt(f(0x10e))/0x9)+-parseInt(f(0x10f))/0xa*(parseInt(f(0x101))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a31c,0xf1096));const a31b=(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;};}()),a31a=a31b(this,function(){const g=a31d;return a31a[g(0x104)]()['search']('(((.+)+)+)+$')[g(0x104)]()['constructor'](a31a)[g(0x114)]('(((.+)+)+)+$');});function a31c(){const k=['33jITSjM','inventory','Item\x20\x22','toString','78JwMhlQ','execute','drop','getItem','join','2648TVcSOM','You\x20dropped\x20','removeItem','verb','21942AfZrkA','6188410cvDMff','1835cdQLdH','\x20has\x20successfully\x20dropped\x20\x22','write','Drop\x20an\x20item\x20from\x20your\x20inventory.','search','name','hasItem','\x20is\x20Attempting\x20\x27Drop\x27\x20command\x20with\x20item:\x20','You\x20don\x27t\x20have\x20','2940644RxZtpm','logger','75068KAuDqB','description','\x27s\x20inventory\x20during\x20\x27Drop\x27\x20command.','actor','addItem','8630274fhjKhM','520Nmwhjx','\x22\x20from\x20inventory\x20to\x20room\x20during\x20\x27Drop\x27\x20command.','\x20in\x20your\x20inventory.','\x22\x20not\x20found\x20in\x20','135766WOEBex'];a31c=function(){return k;};return a31c();}a31a();import{Command}from'./command.js';function a31d(a,b){const c=a31c();return a31d=function(d,e){d=d-0xfe;let f=c[d];return f;},a31d(a,b);}export class DropCommand extends Command{static [a31h(0x10d)]=a31h(0x107);static [a31h(0x11c)]=a31h(0x113);[a31h(0x106)](a){const i=a31h;return this[i(0x11a)]['write'](this[i(0x11e)]['name']+i(0x117)+a[i(0x109)]('\x20')),this[i(0x107)](a);}[a31h(0x107)](a){const j=a31h,b=a[j(0x109)]('\x20')['toLowerCase']();if(!this[j(0x11e)][j(0x102)][j(0x116)](b))return this['logger'][j(0x112)](j(0x103)+b+j(0xff)+this['actor'][j(0x115)]+j(0x11d)),j(0x118)+b+j(0xfe);const c=this['actor']['inventory'][j(0x108)](b);if(!c)return this[j(0x11a)]['write']('Item\x20\x22'+b+'\x22\x20not\x20retrieved\x20from\x20'+this[j(0x11e)][j(0x115)]+j(0x11d)),j(0x118)+b+'\x20in\x20your\x20inventory.';return this['actor']['inventory'][j(0x10c)](b),this[j(0x11e)]['currentLocation']['inventory'][j(0x11f)](c),this[j(0x11a)][j(0x112)](this[j(0x11e)][j(0x115)]+j(0x111)+b+j(0x122)),j(0x10b)+b+'.';}}
1
+ const a31h=a31d;(function(a,b){const f=a31d,c=a();while(!![]){try{const d=-parseInt(f(0x90))/0x1+parseInt(f(0x86))/0x2*(parseInt(f(0x7c))/0x3)+parseInt(f(0x7b))/0x4+-parseInt(f(0x94))/0x5+-parseInt(f(0x77))/0x6+-parseInt(f(0x7f))/0x7+parseInt(f(0x7d))/0x8*(parseInt(f(0x93))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a31c,0xdcc5e));const a31b=(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;};}()),a31a=a31b(this,function(){const g=a31d;return a31a['toString']()[g(0x92)](g(0x7e))[g(0x84)]()[g(0x8e)](a31a)[g(0x92)](g(0x7e));});function a31c(){const k=['\x20has\x20successfully\x20dropped\x20\x22','hasItem','5887100QVTqeg','3546858pVwEFW','798520Lhprfw','(((.+)+)+)+$','1565368vCZCUV','join','Item\x20\x22','\x22\x20not\x20retrieved\x20from\x20','\x20is\x20Attempting\x20\x27Drop\x27\x20command\x20with\x20item:\x20','toString','execute','2NQbTXf','name','getItem','inventory','logger','\x22\x20from\x20inventory\x20to\x20room\x20during\x20\x27Drop\x27\x20command.','removeItem','Drop\x20an\x20item\x20from\x20your\x20inventory.','constructor','toLowerCase','772554rdgtPF','write','search','198KGowhM','8896155PJtXSz','\x27s\x20inventory\x20during\x20\x27Drop\x27\x20command.','drop','actor','description','7021776DceJOs','You\x20don\x27t\x20have\x20'];a31c=function(){return k;};return a31c();}a31a();import{Command}from'./command.js';function a31d(a,b){const c=a31c();return a31d=function(d,e){d=d-0x73;let f=c[d];return f;},a31d(a,b);}export class DropCommand extends Command{static ['verb']=a31h(0x74);static [a31h(0x76)]=a31h(0x8d);[a31h(0x85)](a){const i=a31h;return this[i(0x8a)]['write'](this['actor'][i(0x87)]+i(0x83)+a[i(0x80)]('\x20')),this[i(0x74)](a);}['drop'](a){const j=a31h,b=a['join']('\x20')[j(0x8f)]();if(!this[j(0x75)]['inventory'][j(0x7a)](b))return this['logger'][j(0x91)]('Item\x20\x22'+b+'\x22\x20not\x20found\x20in\x20'+this[j(0x75)][j(0x87)]+j(0x73)),j(0x78)+b+'\x20in\x20your\x20inventory.';const c=this[j(0x75)][j(0x89)][j(0x88)](b);if(!c)return this[j(0x8a)][j(0x91)](j(0x81)+b+j(0x82)+this[j(0x75)][j(0x87)]+j(0x73)),j(0x78)+b+'\x20in\x20your\x20inventory.';return this[j(0x75)][j(0x89)][j(0x8c)](b),this[j(0x75)]['currentLocation'][j(0x89)]['addItem'](c),this[j(0x8a)][j(0x91)](this[j(0x75)]['name']+j(0x79)+b+j(0x8b)),'You\x20dropped\x20'+b+'.';}}
@@ -1 +1 @@
1
- const a32i=a32d;(function(a,b){const f=a32d,c=a();while(!![]){try{const d=-parseInt(f(0x1c9))/0x1*(-parseInt(f(0x1c8))/0x2)+parseInt(f(0x1c6))/0x3+parseInt(f(0x1cc))/0x4*(parseInt(f(0x1c2))/0x5)+-parseInt(f(0x1bc))/0x6*(parseInt(f(0x1bf))/0x7)+-parseInt(f(0x1d3))/0x8*(-parseInt(f(0x1bd))/0x9)+-parseInt(f(0x1d4))/0xa*(parseInt(f(0x1c5))/0xb)+-parseInt(f(0x1cd))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a32c,0x71524));function a32d(a,b){const c=a32c();return a32d=function(d,e){d=d-0x1af;let f=c[d];return f;},a32d(a,b);}const a32b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a32d;if(c){const e=c[g(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a32a=a32b(this,function(){const h=a32d;return a32a[h(0x1af)]()[h(0x1c0)](h(0x1cf))[h(0x1af)]()[h(0x1b8)](a32a)['search'](h(0x1cf));});function a32c(){const l=['7350123iOePft','2492103lPdjYB','\x20room.','404830BqZOJa','4GYTVQt','\x20not\x20found\x20in\x20','join','248CGsTzu','7569768FwXKdB','getItem','(((.+)+)+)+$','You\x20don\x27t\x20have\x20','inventory','verb','13264zPCPIZ','10CWrSPH','toString','currentLocation','equip','\x20taken\x20from\x20room\x20and\x20added\x20to\x20','\x20inventory\x20or\x20','\x27s\x20inventory.','\x20in\x20your\x20inventory,\x20and\x20it\x27s\x20not\x20in\x20this\x20room.','logger','error','constructor','apply','toLowerCase','removeItem','78396qKNVxv','927UcSHQf','actor','119rCwsyD','search','write','14045sPVpHQ','EquipCommand:\x20','name'];a32c=function(){return l;};return a32c();}a32a();import{Command}from'./command.js';export class EquipCommand extends Command{static [a32i(0x1d2)]='equip';static ['description']='Equip\x20an\x20item.';['execute'](a){const j=a32i;return this[j(0x1b1)](a);}[a32i(0x1b1)](a){const k=a32i,b=a[k(0x1cb)]('\x20')[k(0x1ba)]();let c=this['actor'][k(0x1d1)][k(0x1ce)](b);if(!c){const e=this[k(0x1be)]['currentLocation'];c=e[k(0x1d1)][k(0x1ce)](b);if(c)this['actor'][k(0x1d1)]['addItem'](c),e[k(0x1d1)][k(0x1bb)](b),this[k(0x1b6)][k(0x1c1)]('EquipCommand:\x20'+b+k(0x1b2)+this[k(0x1be)][k(0x1c4)]+k(0x1b4));else return this[k(0x1b6)][k(0x1b7)](k(0x1c3)+b+k(0x1ca)+this[k(0x1be)][k(0x1c4)]+k(0x1b3)+this[k(0x1be)][k(0x1b0)][k(0x1c4)]+k(0x1c7)),k(0x1d0)+b+k(0x1b5);}const d=this[k(0x1be)]['equip'](c);return this[k(0x1b6)][k(0x1c1)](k(0x1c3)+d),d;}}
1
+ const a32i=a32d;(function(a,b){const f=a32d,c=a();while(!![]){try{const d=-parseInt(f(0xf4))/0x1+-parseInt(f(0xea))/0x2*(-parseInt(f(0xe1))/0x3)+-parseInt(f(0xf6))/0x4*(-parseInt(f(0xf7))/0x5)+-parseInt(f(0xfc))/0x6*(-parseInt(f(0xfd))/0x7)+-parseInt(f(0xf1))/0x8+parseInt(f(0xf2))/0x9+-parseInt(f(0xeb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a32c,0x93348));const a32b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a32d;if(c){const e=c[g(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a32a=a32b(this,function(){const h=a32d;return a32a[h(0xf0)]()[h(0xe7)]('(((.+)+)+)+$')[h(0xf0)]()['constructor'](a32a)['search']('(((.+)+)+)+$');});a32a();import{Command}from'./command.js';function a32c(){const k=['5336whiZQi','7610290IDqEoI','equip','\x20not\x20found\x20in\x20','\x27s\x20inventory.','getItem','toString','6126368TKYcJT','4552965bTWKNa','join','292960ctDVtG','removeItem','44HSeYSP','345155NhvVbH','execute','description','\x20taken\x20from\x20room\x20and\x20added\x20to\x20','EquipCommand:\x20','7710ohVNNx','3297NpoZFD','addItem','\x20inventory\x20or\x20','Equip\x20an\x20item.','621cMJFME','apply','write','actor','inventory','logger','search','name','currentLocation'];a32c=function(){return k;};return a32c();}function a32d(a,b){const c=a32c();return a32d=function(d,e){d=d-0xe0;let f=c[d];return f;},a32d(a,b);}export class EquipCommand extends Command{static ['verb']=a32i(0xec);static [a32i(0xf9)]=a32i(0xe0);[a32i(0xf8)](a){return this['equip'](a);}[a32i(0xec)](a){const j=a32i,b=a[j(0xf3)]('\x20')['toLowerCase']();let c=this[j(0xe4)][j(0xe5)][j(0xef)](b);if(!c){const e=this[j(0xe4)][j(0xe9)];c=e[j(0xe5)][j(0xef)](b);if(c)this[j(0xe4)][j(0xe5)][j(0xfe)](c),e[j(0xe5)][j(0xf5)](b),this[j(0xe6)][j(0xe3)](j(0xfb)+b+j(0xfa)+this['actor'][j(0xe8)]+j(0xee));else return this[j(0xe6)]['error'](j(0xfb)+b+j(0xed)+this[j(0xe4)][j(0xe8)]+j(0xff)+this['actor'][j(0xe9)][j(0xe8)]+'\x20room.'),'You\x20don\x27t\x20have\x20'+b+'\x20in\x20your\x20inventory,\x20and\x20it\x27s\x20not\x20in\x20this\x20room.';}const d=this[j(0xe4)][j(0xec)](c);return this['logger']['write'](j(0xfb)+d),d;}}
@@ -1 +1 @@
1
- function a33c(){const m=['verb','14rwnJkm','The\x20door\x20in\x20the\x20direction\x20\x22','currentLocation','logger','There\x20seems\x20to\x20be\x20an\x20error\x20with\x20the\x20door\x20you\x27re\x20trying\x20to\x20go\x20through.','Unnamed\x20room','apply','8qJGpgL','\x27s\x20\x27Go\x27\x20command\x20failed:\x20No\x20direction\x20specified.','\x20\x27Go\x27\x20command\x20failed:\x20Specified\x20direction\x20\x22','getOtherSide','rooms','257903mfEbOv','55ZkGSMa','\x20which\x20is\x20not\x20valid.','search','checkIfLocked','Move\x20in\x20the\x20specified\x20direction.','join','You\x20can\x27t\x20go\x20that\x20way.','\x22\x20does\x20not\x20exist\x20in\x20current\x20room\x27s\x20exits.','That\x20is\x20not\x20a\x20way\x20to\x20go','1436584TtokDv','(((.+)+)+)+$','4307090DbtchF','\x20moved\x20to\x20room:\x20','write','\x22\x20is\x20locked.','name','10964640bEUobo','description','Please\x20specify\x20a\x20direction\x20to\x20go.','\x20attempted\x20to\x20go\x20','execute','35zJpsAU','\x20is\x20attempting\x20\x27Go\x27\x20command\x20with\x20direction:\x20','getExit','isValidDirection','\x22\x20not\x20found.','\x20\x27Go\x27\x20command\x20failed:\x20Unable\x20to\x20determine\x20the\x20other\x20side\x20of\x20the\x20door.','toLowerCase','actor','2475393sRlLdT','error','length','toString','7325680ckEFJO','4537251FqOjmN','There\x20seems\x20to\x20be\x20an\x20error\x20with\x20the\x20room\x20you\x27re\x20trying\x20to\x20go\x20to.'];a33c=function(){return m;};return a33c();}const a33j=a33d;(function(a,b){const g=a33d,c=a();while(!![]){try{const d=-parseInt(g(0x175))/0x1*(parseInt(g(0x19b))/0x2)+parseInt(g(0x193))/0x3*(parseInt(g(0x1a2))/0x4)+-parseInt(g(0x197))/0x5+parseInt(g(0x186))/0x6+parseInt(g(0x18b))/0x7*(-parseInt(g(0x17f))/0x8)+-parseInt(g(0x198))/0x9+parseInt(g(0x181))/0xa*(parseInt(g(0x176))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a33c,0xea142));const a33b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a33d;if(c){const e=c[h(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a33a=a33b(this,function(){const i=a33d;return a33a[i(0x196)]()[i(0x178)](i(0x180))['toString']()['constructor'](a33a)[i(0x178)](i(0x180));});a33a();function a33d(a,b){const c=a33c();return a33d=function(d,e){d=d-0x175;let f=c[d];return f;},a33d(a,b);}import{Door}from'../models/door.js';import{Command}from'./command.js';export class GoCommand extends Command{static [a33j(0x19a)]='go';static [a33j(0x187)]=a33j(0x17a);[a33j(0x18a)](a){const k=a33j;return this[k(0x19e)][k(0x183)](this[k(0x192)]['name']+k(0x18c)+a[k(0x17b)]('\x20')),this['go'](a);}['go'](a){const l=a33j;if(a[l(0x195)]===0x0)return this[l(0x19e)][l(0x183)](this[l(0x192)][l(0x185)]+l(0x1a3)),l(0x188);const b=a[0x0][l(0x191)]();if(!this[l(0x18e)](b))return this[l(0x19e)][l(0x183)](this[l(0x192)]['name']+l(0x189)+b+l(0x177)),l(0x17e);const c=this[l(0x192)][l(0x19d)];if(!c)return this[l(0x19e)][l(0x194)](this[l(0x192)]['name']+'\x27s\x20\x27Go\x27\x20command\x20failed:\x20Current\x20room\x20is\x20undefined\x20or\x20null.\x20This\x20is\x20a\x20bug.'),'You\x20seem\x20to\x20be\x20nowhere.\x20This\x20is\x20a\x20bug.';const d=c[l(0x18d)](b);if(!d)return this[l(0x19e)][l(0x183)](this[l(0x192)][l(0x185)]+l(0x1a4)+b+l(0x17d)),l(0x17c);if(d instanceof Door){if(d[l(0x179)]())return l(0x19c)+b+l(0x184);const e=d[l(0x1a5)](c);if(!e)return this[l(0x19e)][l(0x194)](this[l(0x192)]['name']+l(0x190)),l(0x19f);this['actor'][l(0x19d)]=e;}else{const f=this[l(0x1a6)]&&this['rooms'][d];if(!f)return this[l(0x19e)][l(0x194)](this[l(0x192)][l(0x185)]+'\x20\x27Go\x27\x20command\x20failed:\x20Room\x20\x22'+d+l(0x18f)),l(0x199);this[l(0x192)]['currentLocation']=f;}return this[l(0x19e)]['write'](this[l(0x192)][l(0x185)]+l(0x182)+(this['actor'][l(0x19d)][l(0x185)]||l(0x1a0))+'.'),this[l(0x192)][l(0x19d)][l(0x187)];}}
1
+ const a33j=a33d;(function(a,b){const g=a33d,c=a();while(!![]){try{const d=parseInt(g(0x1f0))/0x1*(parseInt(g(0x1f4))/0x2)+-parseInt(g(0x1e0))/0x3+parseInt(g(0x1f3))/0x4*(parseInt(g(0x209))/0x5)+parseInt(g(0x1e2))/0x6*(-parseInt(g(0x1e6))/0x7)+parseInt(g(0x201))/0x8+parseInt(g(0x205))/0x9+-parseInt(g(0x200))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a33c,0x30fd9));const a33b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a33d;if(c){const e=c[h(0x203)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a33a=a33b(this,function(){const i=a33d;return a33a[i(0x1e3)]()[i(0x1f2)](i(0x1fd))['toString']()[i(0x206)](a33a)[i(0x1f2)](i(0x1fd));});function a33d(a,b){const c=a33c();return a33d=function(d,e){d=d-0x1e0;let f=c[d];return f;},a33d(a,b);}a33a();import{Door}from'../models/door.js';function a33c(){const m=['error','\x20\x27Go\x27\x20command\x20failed:\x20Unable\x20to\x20determine\x20the\x20other\x20side\x20of\x20the\x20door.','getOtherSide','515088mLYCgB','\x27s\x20\x27Go\x27\x20command\x20failed:\x20No\x20direction\x20specified.','498uFLGSb','toString','rooms','description','22869JruEOf','actor','Move\x20in\x20the\x20specified\x20direction.','You\x20can\x27t\x20go\x20that\x20way.','name','\x22\x20is\x20locked.','Unnamed\x20room','join','\x20which\x20is\x20not\x20valid.','\x20\x27Go\x27\x20command\x20failed:\x20Specified\x20direction\x20\x22','7233mxpKye','\x22\x20does\x20not\x20exist\x20in\x20current\x20room\x27s\x20exits.','search','12sEWlNT','50rmaLAu','The\x20door\x20in\x20the\x20direction\x20\x22','toLowerCase','currentLocation','logger','\x20moved\x20to\x20room:\x20','\x20attempted\x20to\x20go\x20','isValidDirection','\x20is\x20attempting\x20\x27Go\x27\x20command\x20with\x20direction:\x20','(((.+)+)+)+$','That\x20is\x20not\x20a\x20way\x20to\x20go','verb','3332790lOAPva','2861928TAFhne','There\x20seems\x20to\x20be\x20an\x20error\x20with\x20the\x20door\x20you\x27re\x20trying\x20to\x20go\x20through.','apply','\x27s\x20\x27Go\x27\x20command\x20failed:\x20Current\x20room\x20is\x20undefined\x20or\x20null.\x20This\x20is\x20a\x20bug.','1659510akyfFi','constructor','There\x20seems\x20to\x20be\x20an\x20error\x20with\x20the\x20room\x20you\x27re\x20trying\x20to\x20go\x20to.','write','423075MUjlWL'];a33c=function(){return m;};return a33c();}import{Command}from'./command.js';export class GoCommand extends Command{static [a33j(0x1ff)]='go';static [a33j(0x1e5)]=a33j(0x1e8);['execute'](a){const k=a33j;return this[k(0x1f8)][k(0x208)](this[k(0x1e7)]['name']+k(0x1fc)+a[k(0x1ed)]('\x20')),this['go'](a);}['go'](a){const l=a33j;if(a['length']===0x0)return this[l(0x1f8)]['write'](this[l(0x1e7)][l(0x1ea)]+l(0x1e1)),'Please\x20specify\x20a\x20direction\x20to\x20go.';const b=a[0x0][l(0x1f6)]();if(!this[l(0x1fb)](b))return this[l(0x1f8)][l(0x208)](this[l(0x1e7)][l(0x1ea)]+l(0x1fa)+b+l(0x1ee)),l(0x1fe);const c=this[l(0x1e7)][l(0x1f7)];if(!c)return this[l(0x1f8)][l(0x20a)](this['actor'][l(0x1ea)]+l(0x204)),'You\x20seem\x20to\x20be\x20nowhere.\x20This\x20is\x20a\x20bug.';const d=c['getExit'](b);if(!d)return this[l(0x1f8)]['write'](this[l(0x1e7)]['name']+l(0x1ef)+b+l(0x1f1)),l(0x1e9);if(d instanceof Door){if(d['checkIfLocked']())return l(0x1f5)+b+l(0x1eb);const e=d[l(0x20c)](c);if(!e)return this[l(0x1f8)][l(0x20a)](this[l(0x1e7)][l(0x1ea)]+l(0x20b)),l(0x202);this[l(0x1e7)][l(0x1f7)]=e;}else{const f=this['rooms']&&this[l(0x1e4)][d];if(!f)return this['logger'][l(0x20a)](this[l(0x1e7)][l(0x1ea)]+'\x20\x27Go\x27\x20command\x20failed:\x20Room\x20\x22'+d+'\x22\x20not\x20found.'),l(0x207);this[l(0x1e7)][l(0x1f7)]=f;}return this['logger'][l(0x208)](this[l(0x1e7)][l(0x1ea)]+l(0x1f9)+(this['actor'][l(0x1f7)][l(0x1ea)]||l(0x1ec))+'.'),this['actor'][l(0x1f7)][l(0x1e5)];}}
@@ -1 +1 @@
1
- function a34d(a,b){const c=a34c();return a34d=function(d,e){d=d-0x169;let f=c[d];return f;},a34d(a,b);}const a34i=a34d;(function(a,b){const f=a34d,c=a();while(!![]){try{const d=parseInt(f(0x185))/0x1*(parseInt(f(0x18d))/0x2)+parseInt(f(0x17d))/0x3*(-parseInt(f(0x188))/0x4)+parseInt(f(0x18c))/0x5+parseInt(f(0x179))/0x6+-parseInt(f(0x175))/0x7*(parseInt(f(0x16b))/0x8)+-parseInt(f(0x173))/0x9+-parseInt(f(0x172))/0xa*(parseInt(f(0x17b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a34c,0xaae88));const a34b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a34d;if(c){const e=c[g(0x184)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a34a=a34b(this,function(){const h=a34d;return a34a[h(0x195)]()[h(0x18f)](h(0x176))[h(0x195)]()[h(0x177)](a34a)['search']('(((.+)+)+)+$');});a34a();function a34c(){const l=['search','toLowerCase','name','lock','Lock\x20a\x20door.','hasItem','toString','\x20Locked\x20the\x20','exits','3286232GAppcH','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20lock.','You\x20locked\x20the\x20door\x20named\x20\x22','currentLocation','\x20door.','verb','write','610wFkEvY','2792250mgzNiY','LockCommand:\x20','7PiRXag','(((.+)+)+)+$','constructor','isValidDirection','1998576YjEiDI','logger','46321xPlqTs','actor','21831xhVFbm','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','error','has','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20this\x20room.','description','LockCommand:\x20No\x20target\x20specified.','apply','47416wXUWxG','inventory','isLocked','444iDBcrb','There\x27s\x20no\x20door\x20named\x20\x22','get','\x22\x20is\x20already\x20locked.','6969675ByOVhh','32JJIEVm','unlockItemOrSolution'];a34c=function(){return l;};return a34c();}import{Command}from'./command.js';export class LockCommand extends Command{static [a34i(0x170)]='lock';static [a34i(0x182)]=a34i(0x193);['execute'](a){const j=a34i;return this[j(0x192)](a);}['lock'](a){const k=a34i;if(a['length']===0x0)return this['logger'][k(0x17f)](k(0x183)),k(0x16c);const b=a[0x0][k(0x190)](),c=this[k(0x17c)][k(0x16e)];if(this[k(0x178)](b)&&c[k(0x16a)][k(0x180)](b)){const d=c[k(0x16a)][k(0x18a)](b);if(d[k(0x187)])return'The\x20door\x20named\x20\x22'+b+k(0x18b);const e=d[k(0x18e)]?.[k(0x190)]();return e&&this[k(0x17c)][k(0x186)][k(0x194)](e)?(d[k(0x187)]=!![],this[k(0x17a)][k(0x171)](k(0x174)+this[k(0x17c)][k(0x191)]+k(0x169)+b+k(0x16f)),k(0x16d)+b+'\x22.'):(this[k(0x17a)][k(0x171)](k(0x174)+this[k(0x17c)][k(0x191)]+k(0x17e)+b+'.'),'You\x20don\x27t\x20have\x20the\x20key\x20to\x20lock\x20this\x20door.');}else return this[k(0x17a)][k(0x171)](k(0x174)+b+k(0x181)),k(0x189)+b+'\x22\x20here.';}}
1
+ const a34i=a34d;function a34d(a,b){const c=a34c();return a34d=function(d,e){d=d-0x17a;let f=c[d];return f;},a34d(a,b);}(function(a,b){const f=a34d,c=a();while(!![]){try{const d=parseInt(f(0x184))/0x1+-parseInt(f(0x18b))/0x2*(-parseInt(f(0x190))/0x3)+-parseInt(f(0x192))/0x4+parseInt(f(0x188))/0x5*(parseInt(f(0x199))/0x6)+-parseInt(f(0x19e))/0x7+-parseInt(f(0x18c))/0x8+-parseInt(f(0x17a))/0x9*(-parseInt(f(0x19f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a34c,0xb4b5e));const a34b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a34d;if(c){const e=c[g(0x19a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a34a=a34b(this,function(){const h=a34d;return a34a[h(0x18d)]()[h(0x183)](h(0x18a))['toString']()[h(0x1a4)](a34a)[h(0x183)](h(0x18a));});a34a();function a34c(){const k=['hasItem','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','lock','constructor','9jKUgkf','write','LockCommand:\x20','Lock\x20a\x20door.','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20this\x20room.','\x20door.','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20lock.','There\x27s\x20no\x20door\x20named\x20\x22','\x22\x20here.','search','280036nSTHTA','length','\x22\x20is\x20already\x20locked.','isLocked','384425esyegF','isValidDirection','(((.+)+)+)+$','2635304dDiPqK','8512928mohibD','toString','has','You\x20don\x27t\x20have\x20the\x20key\x20to\x20lock\x20this\x20door.','3RzkxYt','get','4109252uOJuJU','logger','inventory','description','currentLocation','error','verb','42kScTLT','apply','name','exits','actor','8904630DOCEjl','19678260uZPsYt','unlockItemOrSolution'];a34c=function(){return k;};return a34c();}import{Command}from'./command.js';export class LockCommand extends Command{static [a34i(0x198)]=a34i(0x1a3);static [a34i(0x195)]=a34i(0x17d);['execute'](a){return this['lock'](a);}[a34i(0x1a3)](a){const j=a34i;if(a[j(0x185)]===0x0)return this[j(0x193)][j(0x197)]('LockCommand:\x20No\x20target\x20specified.'),j(0x180);const b=a[0x0]['toLowerCase'](),c=this[j(0x19d)][j(0x196)];if(this[j(0x189)](b)&&c[j(0x19c)][j(0x18e)](b)){const d=c[j(0x19c)][j(0x191)](b);if(d[j(0x187)])return'The\x20door\x20named\x20\x22'+b+j(0x186);const e=d[j(0x1a0)]?.['toLowerCase']();return e&&this[j(0x19d)][j(0x194)][j(0x1a1)](e)?(d['isLocked']=!![],this[j(0x193)][j(0x17b)](j(0x17c)+this['actor']['name']+'\x20Locked\x20the\x20'+b+j(0x17f)),'You\x20locked\x20the\x20door\x20named\x20\x22'+b+'\x22.'):(this['logger']['write'](j(0x17c)+this[j(0x19d)][j(0x19b)]+j(0x1a2)+b+'.'),j(0x18f));}else return this[j(0x193)][j(0x17b)](j(0x17c)+b+j(0x17e)),j(0x181)+b+j(0x182);}}
@@ -1 +1 @@
1
- function a35c(){const m=['There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','149334pQaiAv','\x20here.','hasItem','riddle','getOtherSide','4568585mAxYEx','roomType','\x20is\x20looking\x20around\x20the\x20current\x20room.','down','10021toaxtX','lookOutside','Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27','rooms','Above\x20you,\x20','You\x20cannot\x20see\x20through','877553UEstht','look','57132CsUIJR','string','\x27\x20in\x20','exits','Looking\x20at\x20item\x20\x27','OUTSIDE','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','(((.+)+)+)+$','currentLocation','315HlVePw','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','name','155KzZaUF','To\x20the\x20','actor','88YtGWWu','2537144dyswjI','constructor','puzzle',',\x20you\x20see\x20','4440nWghaQ','\x20inventory.','isValidDirection','\x27\x20in\x20current\x20room\x20inventory.','write','Examine\x20your\x20surroundings','You\x20don\x27t\x20see\x20any\x20','You\x27re\x20not\x20in\x20a\x20valid\x20room.','get','error','verb','getItem','search','description','inspectItem','inventory','logger','661401xrxxsK','Below\x20you,\x20','toString'];a35c=function(){return m;};return a35c();}const a35h=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d=parseInt(f(0x1fd))/0x1+-parseInt(f(0x20f))/0x2+-parseInt(f(0x208))/0x3*(-parseInt(f(0x1ff))/0x4)+parseInt(f(0x20b))/0x5*(parseInt(f(0x1ee))/0x6)+-parseInt(f(0x1f3))/0x7+parseInt(f(0x20e))/0x8*(-parseInt(f(0x1ea))/0x9)+-parseInt(f(0x213))/0xa*(-parseInt(f(0x1f7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a35c,0xc9199));const a35b=(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;};}()),a35a=a35b(this,function(){const g=a35d;return a35a[g(0x1ec)]()[g(0x1e5)](g(0x206))[g(0x1ec)]()[g(0x210)](a35a)[g(0x1e5)]('(((.+)+)+)+$');});a35a();import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';import{Command}from'./command.js';function a35d(a,b){const c=a35c();return a35d=function(d,e){d=d-0x1e0;let f=c[d];return f;},a35d(a,b);}export class LookCommand extends Command{static [a35h(0x1e3)]=a35h(0x1fe);static [a35h(0x1e6)]=a35h(0x218);['execute'](a=[]){const i=a35h;this[i(0x1e9)][i(0x217)]('Executing\x20\x27Look\x27\x20command.');const b=a['join']('\x20');if(b){if(this[i(0x20d)][i(0x1e8)][i(0x1f0)](b))return this[i(0x1e9)][i(0x217)](i(0x203)+b+i(0x201)+this[i(0x20d)][i(0x20a)]+i(0x214)),this[i(0x1e7)](b,this[i(0x20d)]['inventory']);else{if(this[i(0x20d)][i(0x207)][i(0x1e8)][i(0x1f0)](b))return this[i(0x1e9)][i(0x217)]('Looking\x20at\x20item\x20\x27'+b+i(0x216)),this['inspectItem'](b,this[i(0x20d)][i(0x207)][i(0x1e8)]);else return this[i(0x215)](b)?(this[i(0x1e9)]['write'](i(0x1f9)+b+'\x27.'),this['lookOutside'](b)):'You\x20cannot\x20see\x20'+b;}}else return this[i(0x1e9)][i(0x217)](this[i(0x20d)][i(0x20a)]+i(0x1f5)),this[i(0x1fe)]();}[a35h(0x1fe)](){const j=a35h,a=this[j(0x20d)]['currentLocation'];if(!a)return this['logger']['error'](this[j(0x20d)][j(0x20a)]+j(0x205)),j(0x1e0);let b=a[j(0x1e6)];return a[j(0x211)]&&(b+='\x0a'+a[j(0x211)][j(0x1f1)]),b;}[a35h(0x1f8)](a){const k=a35h,b=this[k(0x20d)][k(0x207)];if(!b)return this[k(0x1e9)][k(0x1e2)](this[k(0x20d)][k(0x20a)]+'\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.'),k(0x1e0);const c=b[k(0x202)][k(0x1e1)](a);if(!c)return'There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22'+a+'\x22.';let d;if(c instanceof Door)d=c[k(0x1f2)](b);else{if(typeof c===k(0x200)){d=this[k(0x1fa)]&&this['rooms'][c];if(!d)return k(0x1ed)+a+'\x22.';}else return k(0x209)+a+'\x22.';}if(d[k(0x1f4)]===RoomType[k(0x204)]){if(a==='up')return k(0x1fb)+d['description'];else return a===k(0x1f6)?k(0x1eb)+d['description']:k(0x20c)+a+k(0x212)+d[k(0x1e6)];}else return k(0x1fc);}[a35h(0x1e7)](a,b){const l=a35h,c=b[l(0x1e4)](a);if(!c)return l(0x219)+a+l(0x1ef);return c['description']||'It\x27s\x20just\x20a\x20regular\x20'+a+'.';}}
1
+ const a35i=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d=-parseInt(f(0x141))/0x1*(parseInt(f(0x166))/0x2)+-parseInt(f(0x167))/0x3*(-parseInt(f(0x16c))/0x4)+parseInt(f(0x15d))/0x5*(-parseInt(f(0x174))/0x6)+parseInt(f(0x16b))/0x7+parseInt(f(0x161))/0x8*(parseInt(f(0x163))/0x9)+-parseInt(f(0x14d))/0xa+parseInt(f(0x147))/0xb*(parseInt(f(0x152))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a35c,0x55baa));const a35b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a35d;if(c){const e=c[g(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a35a=a35b(this,function(){const h=a35d;return a35a[h(0x143)]()[h(0x158)](h(0x15a))['toString']()['constructor'](a35a)[h(0x158)](h(0x15a));});a35a();function a35c(){const n=['4yMtywd','name','Below\x20you,\x20','You\x20don\x27t\x20see\x20any\x20','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','error','You\x27re\x20not\x20in\x20a\x20valid\x20room.','isValidDirection','1850970gdPbdY','join','roomType','1uyzgQO','\x27\x20in\x20current\x20room\x20inventory.','toString','down','currentLocation','apply','99AmobBZ','\x20here.','lookOutside','look','Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27','verb','6247410vLdNZL','actor','Examine\x20your\x20surroundings','logger','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','637212sXhUue','getOtherSide','\x20inventory.','description','puzzle',',\x20you\x20see\x20','search','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','(((.+)+)+)+$','You\x20cannot\x20see\x20','\x20is\x20looking\x20around\x20the\x20current\x20room.','10RUdqMT','hasItem','Looking\x20at\x20item\x20\x27','rooms','8xPVLjm','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','4826457MfUJTP','riddle','write','1270946GABKwu','1629165RouZxX','string','inspectItem','inventory','4697791QLdogh'];a35c=function(){return n;};return a35c();}import{Door}from'../models/door.js';function a35d(a,b){const c=a35c();return a35d=function(d,e){d=d-0x13f;let f=c[d];return f;},a35d(a,b);}import{RoomType}from'../types/enums.js';import{Command}from'./command.js';export class LookCommand extends Command{static [a35i(0x14c)]=a35i(0x14a);static [a35i(0x155)]=a35i(0x14f);['execute'](a=[]){const j=a35i;this['logger'][j(0x165)]('Executing\x20\x27Look\x27\x20command.');const b=a[j(0x13f)]('\x20');if(b){if(this['actor'][j(0x16a)]['hasItem'](b))return this[j(0x150)][j(0x165)](j(0x15f)+b+'\x27\x20in\x20'+this[j(0x14e)][j(0x16d)]+j(0x154)),this['inspectItem'](b,this[j(0x14e)]['inventory']);else{if(this['actor'][j(0x145)][j(0x16a)][j(0x15e)](b))return this[j(0x150)][j(0x165)](j(0x15f)+b+j(0x142)),this[j(0x169)](b,this[j(0x14e)][j(0x145)]['inventory']);else return this[j(0x173)](b)?(this['logger'][j(0x165)](j(0x14b)+b+'\x27.'),this[j(0x149)](b)):j(0x15b)+b;}}else return this[j(0x150)][j(0x165)](this['actor']['name']+j(0x15c)),this['look']();}[a35i(0x14a)](){const k=a35i,a=this[k(0x14e)][k(0x145)];if(!a)return this[k(0x150)][k(0x171)](this[k(0x14e)][k(0x16d)]+k(0x170)),'You\x27re\x20not\x20in\x20a\x20valid\x20room.';let b=a['description'];return a[k(0x156)]&&(b+='\x0a'+a[k(0x156)][k(0x164)]),b;}[a35i(0x149)](a){const l=a35i,b=this[l(0x14e)][l(0x145)];if(!b)return this[l(0x150)][l(0x171)](this[l(0x14e)][l(0x16d)]+l(0x170)),l(0x172);const c=b['exits']['get'](a);if(!c)return l(0x162)+a+'\x22.';let d;if(c instanceof Door)d=c[l(0x153)](b);else{if(typeof c===l(0x168)){d=this[l(0x160)]&&this['rooms'][c];if(!d)return l(0x159)+a+'\x22.';}else return l(0x151)+a+'\x22.';}if(d[l(0x140)]===RoomType['OUTSIDE']){if(a==='up')return'Above\x20you,\x20'+d[l(0x155)];else return a===l(0x144)?l(0x16e)+d['description']:'To\x20the\x20'+a+l(0x157)+d[l(0x155)];}else return'You\x20cannot\x20see\x20through';}[a35i(0x169)](a,b){const m=a35i,c=b['getItem'](a);if(!c)return m(0x16f)+a+m(0x148);return c['description']||'It\x27s\x20just\x20a\x20regular\x20'+a+'.';}}
@@ -1 +1 @@
1
- const a36j=a36d;function a36c(){const m=['460wYMegD','243AvopzF','logger','34576AAVmgY','239762wXGCTo','95MZwhSR','(((.+)+)+)+$','72fttDTq','length','name','actor','log','say','join','\x20says\x20to\x20','9NQZHaJ','170335BxrJLx','allActors','toString','scene','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','2248yfHVSX','438102lLyggx','445193lFbOHL','currentLocation','apply','100872Pompel','constructor','description','search','You\x20say:\x20\x22','context','377RnidDT'];a36c=function(){return m;};return a36c();}(function(a,b){const g=a36d,c=a();while(!![]){try{const d=parseInt(g(0x1b5))/0x1+parseInt(g(0x1c4))/0x2*(parseInt(g(0x1cf))/0x3)+-parseInt(g(0x1c3))/0x4*(parseInt(g(0x1c5))/0x5)+parseInt(g(0x1c7))/0x6*(parseInt(g(0x1b6))/0x7)+parseInt(g(0x1b4))/0x8*(-parseInt(g(0x1c1))/0x9)+-parseInt(g(0x1c0))/0xa*(parseInt(g(0x1d0))/0xb)+parseInt(g(0x1b9))/0xc*(-parseInt(g(0x1bf))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x69b82));function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a36d(a,b);}const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a36d;if(c){const e=c[h(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const i=a36d;return a36a[i(0x1b1)]()[i(0x1bc)](i(0x1c6))[i(0x1b1)]()[i(0x1ba)](a36a)[i(0x1bc)](i(0x1c6));});a36a();import{Command}from'./command.js';export class SayCommand extends Command{static ['verb']=a36j(0x1cc);static [a36j(0x1bb)]=a36j(0x1b3);['context'];constructor(a){const k=a36j;super(a),this[k(0x1be)]=a;}['execute'](a){const l=a36j;if(a[l(0x1c8)]===0x0)return'What\x20do\x20you\x20want\x20to\x20say?';const b=a[l(0x1cd)]('\x20'),c=this['actor'],d=this[l(0x1be)][l(0x1b2)];if(!d)return this[l(0x1c2)][l(0x1cb)]('Scene\x20is\x20missing\x20from\x20context.'),'An\x20error\x20occurred.';const e=d[l(0x1d1)]['filter'](f=>f[l(0x1b7)]===c[l(0x1b7)]);for(const f of e){this[l(0x1c2)][l(0x1cb)](c[l(0x1c9)]+l(0x1ce)+f['name']+':\x20\x22'+b+'\x22'),this[l(0x1ca)][l(0x1b7)][l(0x1cc)](f,b);}return l(0x1bd)+b+'\x22';}}
1
+ const a36j=a36d;(function(a,b){const g=a36d,c=a();while(!![]){try{const d=-parseInt(g(0x160))/0x1*(-parseInt(g(0x168))/0x2)+parseInt(g(0x159))/0x3*(-parseInt(g(0x16a))/0x4)+-parseInt(g(0x174))/0x5*(-parseInt(g(0x161))/0x6)+parseInt(g(0x172))/0x7+-parseInt(g(0x16e))/0x8*(-parseInt(g(0x173))/0x9)+-parseInt(g(0x166))/0xa+-parseInt(g(0x16d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x31e1b));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a36d;if(c){const e=c[h(0x162)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const i=a36d;return a36a[i(0x164)]()[i(0x165)](i(0x15a))['toString']()['constructor'](a36a)[i(0x165)]('(((.+)+)+)+$');});a36a();function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x159;let f=c[d];return f;},a36d(a,b);}function a36c(){const m=['An\x20error\x20occurred.','687OMpORM','(((.+)+)+)+$','verb','filter','context','currentLocation',':\x20\x22','9697qvgdLY','50058DNAdXH','apply','log','toString','search','1448580cxAIxZ','say','50YSBUDh','length','32FcSvtv','name','scene','5062552FqsorE','16304vjGchz','logger','What\x20do\x20you\x20want\x20to\x20say?','actor','1683521PwgYPe','1413lmNLos','5ielCsR'];a36c=function(){return m;};return a36c();}import{Command}from'./command.js';export class SayCommand extends Command{static [a36j(0x15b)]=a36j(0x167);static ['description']='Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.';[a36j(0x15d)];constructor(a){const k=a36j;super(a),this[k(0x15d)]=a;}['execute'](a){const l=a36j;if(a[l(0x169)]===0x0)return l(0x170);const b=a['join']('\x20'),c=this['actor'],d=this[l(0x15d)][l(0x16c)];if(!d)return this[l(0x16f)][l(0x163)]('Scene\x20is\x20missing\x20from\x20context.'),l(0x175);const e=d['allActors'][l(0x15c)](f=>f[l(0x15e)]===c[l(0x15e)]);for(const f of e){this[l(0x16f)][l(0x163)](c[l(0x16b)]+'\x20says\x20to\x20'+f[l(0x16b)]+l(0x15f)+b+'\x22'),this[l(0x171)][l(0x15e)][l(0x167)](f,b);}return'You\x20say:\x20\x22'+b+'\x22';}}