@maka/maka-cli 4.9.12 → 4.9.13

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 (159) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/patreon.js +1 -1
  84. package/bundle/obf/src/commands/proxy.js +1 -1
  85. package/bundle/obf/src/commands/reconfig.js +1 -1
  86. package/bundle/obf/src/commands/register.js +1 -1
  87. package/bundle/obf/src/commands/run/_index.js +1 -1
  88. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  89. package/bundle/obf/src/commands/run/run.command.js +1 -1
  90. package/bundle/obf/src/commands/set/_index.js +1 -1
  91. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/set/set.command.js +1 -1
  94. package/bundle/obf/src/commands/ssh.js +1 -1
  95. package/bundle/obf/src/commands/ssl.js +1 -1
  96. package/bundle/obf/src/commands/test.js +1 -1
  97. package/bundle/obf/src/commands/undo.js +1 -1
  98. package/bundle/obf/src/commands/version.js +1 -1
  99. package/bundle/obf/src/error.js +1 -1
  100. package/bundle/obf/src/exec.js +1 -1
  101. package/bundle/obf/src/generator.js +1 -1
  102. package/bundle/obf/src/generators/_index.js +1 -1
  103. package/bundle/obf/src/generators/api.js +1 -1
  104. package/bundle/obf/src/generators/collection.js +1 -1
  105. package/bundle/obf/src/generators/component.js +1 -1
  106. package/bundle/obf/src/generators/config.js +1 -1
  107. package/bundle/obf/src/generators/dbc.js +1 -1
  108. package/bundle/obf/src/generators/dockerfile.js +1 -1
  109. package/bundle/obf/src/generators/hook.js +1 -1
  110. package/bundle/obf/src/generators/kits/_index.js +1 -1
  111. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  112. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  113. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  114. package/bundle/obf/src/generators/kits/kit.js +1 -1
  115. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  117. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  118. package/bundle/obf/src/generators/layout.js +1 -1
  119. package/bundle/obf/src/generators/maka.gen.js +1 -1
  120. package/bundle/obf/src/generators/methods.js +1 -1
  121. package/bundle/obf/src/generators/package.js +1 -1
  122. package/bundle/obf/src/generators/page.js +1 -1
  123. package/bundle/obf/src/generators/publish.js +1 -1
  124. package/bundle/obf/src/generators/route.js +1 -1
  125. package/bundle/obf/src/generators/service.js +1 -1
  126. package/bundle/obf/src/generators/services/_index.js +1 -1
  127. package/bundle/obf/src/generators/services/openssl.js +1 -1
  128. package/bundle/obf/src/generators/services/translation.js +1 -1
  129. package/bundle/obf/src/maka.js +1 -1
  130. package/bundle/obf/src/templates/meteor/api/api.js +4 -4
  131. package/bundle/obf/src/templates/meteor/api/api.js.ts +4 -3
  132. package/bundle/obf/src/templates/meteor/api/methods.js +8 -104
  133. package/bundle/obf/src/templates/meteor/api/methods.js.ts +6 -103
  134. package/bundle/obf/src/templates/meteor/api/register-api.js +2 -15
  135. package/bundle/obf/src/templates/meteor/api/register-api.js.ts +2 -15
  136. package/bundle/obf/src/tool.js +1 -1
  137. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  138. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  139. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  140. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  141. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  142. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  143. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  144. package/bundle/obf/src/tools/https/https.class.js +1 -1
  145. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  146. package/bundle/obf/src/tools/log/log.class.js +1 -1
  147. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  148. package/bundle/obf/src/tools/options/options.class.js +1 -1
  149. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  150. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  151. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  153. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  154. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  155. package/package.json +1 -1
  156. package/bundle/obf/src/templates/meteor/api/fixtures.js +0 -23
  157. package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +0 -23
  158. package/bundle/obf/src/templates/meteor/api/publications.js +0 -31
  159. package/bundle/obf/src/templates/meteor/api/publications.js.ts +0 -31
@@ -1,9 +1,6 @@
1
1
  import { Meteor } from 'meteor/meteor';
2
2
  import { ValidatedMethod } from 'meteor/mdg:validated-method';
3
3
  import { DDPRateLimiter } from 'meteor/ddp-rate-limiter';
4
- import { check, Match } from 'meteor/maka:check';
5
-
6
- import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
7
4
 
8
5
  /**
9
6
  * Using ValidatedMethod (maintained by MDG) is the best
@@ -12,113 +9,20 @@ import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
12
9
  * calls from the client are properly handled.
13
10
  *
14
11
  */
15
-
16
- /**
17
- * Client side insert method.
18
- *
19
- * @memberof Server.<%= name %>
20
- * @method
21
- * @property { string } name String that defines the method.
22
- * @property { function } validate Is run before the main execution.
23
- * @property { function } run The main action that is executed.
24
- */
25
- const insert<%= name %> = new ValidatedMethod({
26
- name: '<%= fileName %>.insert',
27
- validate(doc) {
28
- check(doc, Object, 'while checking insert doc');
29
- //check(this.userId, String, 'while validating user');
12
+ const <%= name %> = new ValidatedMethod({
13
+ name: '<%= fileName %>',
14
+ validate() {
15
+ // check(doc, Object, 'while checking insert doc');
16
+ // check(this.userId, String, 'while validating user');
30
17
  },
31
- run(doc) {
32
- //return <%= name %>.insert(doc);
18
+ run() {
19
+ //return null;
33
20
  }
34
21
  });
35
22
 
36
- /**
37
- * Client side find method.
38
- *
39
- * @memberof Server.<%= name %>
40
- * @method
41
- * @property { string } name String that defines the method.
42
- * @property { function } validate Is run before the main execution.
43
- * @property { function } run The main action that is executed.
44
- */
45
- const find<%= name %> = new ValidatedMethod({
46
- name: '<%= fileName %>.find',
47
- validate(doc = {}) {
48
- check(doc, Match.OneOf(String, Object), 'while checking find selector');
49
- //check(this.userId, String, 'while validating user');
50
- },
51
- run(doc = {}) {
52
- //return <%= name %>.find(doc).fetch();
53
- }
54
- });
55
-
56
- /**
57
- * Client side findOne method.
58
- *
59
- * @memberof Server.<%= name %>
60
- * @method
61
- * @property { string } name String that defines the method.
62
- * @property { function } validate Is run before the main execution.
63
- * @property { function } run The main action that is executed.
64
- */
65
- const findOne<%= name %> = new ValidatedMethod({
66
- name: '<%= fileName %>.findOne',
67
- validate(doc = {}) {
68
- check(doc, Match.OneOf(String, Object), 'while checking findOne selector');
69
- //check(this.userId, String, 'while validating user');
70
- },
71
- run(doc = {}) {
72
- //return <%= name %>.findOne(doc);
73
- }
74
- });
75
-
76
-
77
- /**
78
- * Client side update method.
79
- *
80
- * @memberof Server.<%= name %>
81
- * @method
82
- * @property { string } name String that defines the method.
83
- * @property { function } validate Is run before the main execution.
84
- * @property { function } run The main action that is executed.
85
- */
86
- const update<%= name %> = new ValidatedMethod({
87
- name: '<%= fileName %>.update',
88
- validate({_id, set}) {
89
- if (typeof _id !== 'string' && typeof set !== 'object') throw 'Usage Error: Expecting signature { _id: <string>, set: <object> }';
90
- check(_id, String, 'while checking _id selector');
91
- check(set, Object, 'while checking update set object');
92
- //check(this.userId, String, 'while validating user');
93
- },
94
- run({_id, set}) {
95
- //return <%= name %>.update(_id, {$set: set});
96
- }
97
- });
98
-
99
- /**
100
- * Client side remove method.
101
- *
102
- * @memberof Server.<%= name %>
103
- * @method
104
- * @property { string } name String that defines the method.
105
- * @property { function } validate Is run before the main execution.
106
- * @property { function } run The main action that is executed.
107
- */
108
- const remove<%= name %> = new ValidatedMethod({
109
- name: '<%= fileName %>.remove',
110
- validate(_id) {
111
- // NOTE: May want to use object removal, but dangerous!!!
112
- check(_id, String, 'while checking remove _id selector');
113
- //check(this.userId, String, 'while validating user');
114
- },
115
- run(_id) {
116
- //return <%= name %>.remove(_id);
117
- }
118
- });
119
23
 
120
24
  const RATE_LIMITED_METHODS = [
121
- insert<%= name %> , find<%= name %>, findOne<%= name %>, update<%= name %> , remove<%= name %>
25
+ <%= name %>
122
26
  ].map(value => value['name']);
123
27
 
124
28
  if (Meteor.isServer) {
@@ -1,9 +1,7 @@
1
1
  import { Meteor } from 'meteor/meteor';
2
2
  import { ValidatedMethod } from 'meteor/mdg:validated-method';
3
3
  import { DDPRateLimiter } from 'meteor/ddp-rate-limiter';
4
- import { check, Match } from 'meteor/maka:check';
5
4
 
6
- import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
7
5
 
8
6
  /**
9
7
  * Using ValidatedMethod (maintained by MDG) is the best
@@ -13,112 +11,17 @@ import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
13
11
  *
14
12
  */
15
13
 
16
- /**
17
- * Client side insert method.
18
- *
19
- * @memberof Server.<%= name %>
20
- * @method
21
- * @property { string } name String that defines the method.
22
- * @property { function } validate Is run before the main execution.
23
- * @property { function } run The main action that is executed.
24
- */
25
- const insert<%= name %> = new ValidatedMethod({
26
- name: '<%= fileName %>.insert',
27
- validate(doc) {
28
- check(doc, Object, 'while checking insert doc');
29
- //check(this.userId, String, 'while validating user');
30
- },
31
- run(doc) {
32
- //return <%= name %>.insert(doc);
33
- }
34
- });
35
-
36
- /**
37
- * Client side find method.
38
- *
39
- * @memberof Server.<%= name %>
40
- * @method
41
- * @property { string } name String that defines the method.
42
- * @property { function } validate Is run before the main execution.
43
- * @property { function } run The main action that is executed.
44
- */
45
- const find<%= name %> = new ValidatedMethod({
46
- name: '<%= fileName %>.find',
47
- validate(doc = {}) {
48
- check(doc, Match.OneOf(String, Object), 'while checking find selector');
49
- //check(this.userId, String, 'while validating user');
50
- },
51
- run(doc = {}) {
52
- //return <%= name %>.find(doc).fetch();
53
- }
54
- });
55
-
56
- /**
57
- * Client side findOne method.
58
- *
59
- * @memberof Server.<%= name %>
60
- * @method
61
- * @property { string } name String that defines the method.
62
- * @property { function } validate Is run before the main execution.
63
- * @property { function } run The main action that is executed.
64
- */
65
- const findOne<%= name %> = new ValidatedMethod({
66
- name: '<%= fileName %>.findOne',
67
- validate(doc = {}) {
68
- check(doc, Match.OneOf(String, Object), 'while checking findOne selector');
69
- //check(this.userId, String, 'while validating user');
70
- },
71
- run(doc = {}) {
72
- //return <%= name %>.findOne(doc);
73
- }
74
- });
75
-
76
-
77
- /**
78
- * Client side update method.
79
- *
80
- * @memberof Server.<%= name %>
81
- * @method
82
- * @property { string } name String that defines the method.
83
- * @property { function } validate Is run before the main execution.
84
- * @property { function } run The main action that is executed.
85
- */
86
- const update<%= name %> = new ValidatedMethod({
87
- name: '<%= fileName %>.update',
88
- validate({_id, set}) {
89
- if (typeof _id !== 'string' && typeof set !== 'object') throw 'Usage Error: Expecting signature { _id: <string>, set: <object> }';
90
- check(_id, String, 'while checking _id selector');
91
- check(set, Object, 'while checking update set object');
92
- //check(this.userId, String, 'while validating user');
93
- },
94
- run({_id, set}) {
95
- //return <%= name %>.update(_id, {$set: set});
96
- }
97
- });
98
-
99
- /**
100
- * Client side remove method.
101
- *
102
- * @memberof Server.<%= name %>
103
- * @method
104
- * @property { string } name String that defines the method.
105
- * @property { function } validate Is run before the main execution.
106
- * @property { function } run The main action that is executed.
107
- */
108
- const remove<%= name %> = new ValidatedMethod({
109
- name: '<%= fileName %>.remove',
110
- validate(_id) {
111
- // NOTE: May want to use object removal, but dangerous!!!
112
- check(_id, String, 'while checking remove _id selector');
113
- //check(this.userId, String, 'while validating user');
14
+ const <%= name %> = new ValidatedMethod({
15
+ name: '<%= fileName %>',
16
+ validate() {
114
17
  },
115
- run(_id) {
116
- //return <%= name %>.remove(_id);
18
+ run() {
19
+ //return null;
117
20
  }
118
21
  });
119
22
 
120
23
  const RATE_LIMITED_METHODS = [
121
- insert<%= name %> , find<%= name %>, findOne<%= name %>, update<%= name %> , remove<%= name %>
24
+ <%= name %>
122
25
  ].map(value => value['name']);
123
26
 
124
27
  if (Meteor.isServer) {
@@ -1,15 +1,2 @@
1
- /**
2
- * Registration of the following files for the
3
- * <%= name %> API into the Server namespace.
4
- * ```
5
- * './api<%= optsDir %><%= fileName %>/methods.js'
6
- * './api<%= optsDir %><%= fileName %>/api.js'
7
- * './api<%= optsDir %><%= fileName %>/fixtures.js'
8
- * './api<%= optsDir %><%= fileName %>/publications.js'
9
- * ```
10
- * @namespace Server.<%= name %>
11
- */
12
- <% if( withMethods ) { %>import '../../api<%= optsDir %><%= fileName %>/rpc-methods';<% } %>
13
- <% if( withFixtures ) { %>import '../../api<%= optsDir %><%= fileName %>/fixtures';<% } %>
14
- <% if( withPubs ) { %>import '../../api<%= optsDir %><%= fileName %>/publications';<% } %>
15
- <% if( api === 'rest' && withRest ) { %>import '../../api<%= optsDir %><%= fileName %>/rest-api';<% } %>
1
+ <% if( withMethods ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/rpc-methods';<% } %>
2
+ <% if( api === 'rest' && withRest ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/rest-api';<% } %>
@@ -1,15 +1,2 @@
1
- /**
2
- * Registration of the following files for the
3
- * <%= name %> API into the Server namespace.
4
- * ```
5
- * './api<%= optsDir %><%= fileName %>/methods.js'
6
- * './api<%= optsDir %><%= fileName %>/api.js'
7
- * './api<%= optsDir %><%= fileName %>/fixtures.js'
8
- * './api<%= optsDir %><%= fileName %>/publications.js'
9
- * ```
10
- * @namespace Server.<%= name %>
11
- */
12
- <% if( withMethods ) { %>import '../../api<%= optsDir %><%= fileName %>/rpc-methods';<% } %>
13
- <% if( withFixtures ) { %>import '../../api<%= optsDir %><%= fileName %>/fixtures';<% } %>
14
- <% if( withPubs ) { %>import '../../api<%= optsDir %><%= fileName %>/publications';<% } %>
15
- <% if( api === 'rest' && withRest ) { %>import '../../api<%= optsDir %><%= fileName %>/rest-api';<% } %>
1
+ <% if( withMethods ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/rpc-methods';<% } %>
2
+ <% if( api === 'rest' && withRest ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/rest-api';<% } %>
@@ -1 +1 @@
1
- const a129L=a129d;(function(a,b){const I=a129d,c=a();while(!![]){try{const d=parseInt(I(0x1a6))/0x1*(parseInt(I(0x1a7))/0x2)+parseInt(I(0x1a9))/0x3+-parseInt(I(0x1ba))/0x4*(parseInt(I(0x173))/0x5)+-parseInt(I(0x172))/0x6+-parseInt(I(0x1b1))/0x7+-parseInt(I(0x19d))/0x8+-parseInt(I(0x189))/0x9*(-parseInt(I(0x194))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x2b6eb));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a129d;if(c){const e=c[J(0x171)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const K=a129d;return a129a[K(0x190)]()[K(0x1b6)](K(0x16c))[K(0x190)]()[K(0x1aa)](a129a)[K(0x1b6)](K(0x16c));});a129a();import a129e from'path';function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x166;let f=c[d];return f;},a129d(a,b);}import a129f from'os';import a129g from'fs';const homeDir=a129f[a129L(0x181)]();import{Docker}from'./tools/docker/docker.class.js';function a129c(){const a4=['20XNNHYU','error','Local','domainLicense','validateMakaSubscription','To\x20use\x20this\x20generator,\x20\x22','root','assign','validateMakaProject','2198840gPDJQe','resourceName','charAt','existsSync','options','Invalid\x20value\x20for\x20','indexOf','concat','engines','2xNnKML','331946BzvTBW','every','476460EzbRXW','constructor','singleLicense','Please\x20provide\x20a\x20value\x20for\x20','examples','\x20version\x20','proGenerators','Please\x20choose\x20a\x20value\x20for\x20','1155434JQRWQB','exit','description','env','Please\x20provide\x20a\x20resource\x20name:','search','keys','validateEngines','usage','637792ONNqdN','No\x20description\x20provided.','Invalid\x20option:\x20','validateParams','name','.meteor','remapShortToLong','shortDesc','To\x20use\x20this\x20command,\x20\x22','ask','(((.+)+)+)+$','platform','docker','length','NIE','apply','1280160gBFUCi','5jGAEpB','parent','disableAuthCheck','isGenerator','You\x20must\x20have\x20','isCommand','includes','getShortName','findProjectDirectory','user','Please\x20choose\x20an\x20environment','join','fsi','push','homedir','Please\x20choose\x20a\x20valid\x20value\x20for\x20','formatToNamedParam','AppData','list','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','guest','roles','2249361qPkjbo','getPro','getAppProjectConfigs','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','match','map','string','toString','aliases','proCommands','Invalid\x20argument:\x20'];a129c=function(){return a4;};return a129c();}import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a129L(0x16e)];[a129L(0x17f)];[a129L(0x1a1)];[a129L(0x166)];[a129L(0x174)];['_handler'];constructor(){const M=a129L;this[M(0x16e)]=new Docker(),this[M(0x17f)]=new FSI();}[a129L(0x17a)](a){const N=a129L;return a[N(0x19f)](0x0);}[a129L(0x168)](a,b){const O=a129L,c=this[O(0x183)](b),d={...a};for(const e of c){const f=this[O(0x17a)](e[O(0x166)]);a[f]&&(d[e[O(0x166)]]=a[f],delete d[f]);}return d;}[a129L(0x183)](a){const P=a129L;if(a[P(0x1a8)](b=>typeof b===P(0x18f)))return a[P(0x18e)](b=>({'name':b}));return a;}[a129L(0x18d)](a){const Q=a129L,b=[this[Q(0x166)]][Q(0x1a4)](this[Q(0x1a1)][Q(0x191)]||[]);return this[Q(0x174)]&&b[Q(0x180)](this['parent']),b[Q(0x179)](a);}[a129L(0x19c)](){const R=a129L,a=this[R(0x17f)][R(0x17b)]();return a!==![]?!![]:![];}async['validateUserIsLoggedIn'](){const S=a129L,a=await this[S(0x17f)][S(0x18a)]();return a?.[S(0x17c)]&&a?.[S(0x17c)]!==S(0x187)?!![]:![];}['validateMeteorInstall'](){const T=a129L;let a=a129e[T(0x17e)](homeDir,T(0x167));const b=process[T(0x16d)]==='win32';if(b){a=a129e[T(0x17e)](homeDir,T(0x184),T(0x196),'.meteor');if(!a129g['existsSync'](a))return![];}else{if(!a129g[T(0x1a0)](a))return![];}return!![];}[a129L(0x1b8)](a){const U=a129L,b=this[U(0x17f)]['getMakaProjectConfig'](),c=b[U(0x1a5)],d=Object['keys'](a);if(d[U(0x16f)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0x195)](U(0x177)+e+U(0x1ae)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a129L(0x1bd)](a,b,c){const V=a129L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[V(0x1b7)](b);if(h[V(0x179)](V(0x19e))&&b[V(0x19e)]===undefined&&!g){const m=await Actions[V(0x16b)](V(0x1b5));b['resourceName']=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[V(0x168)](b,i);if(i&&i?.[V(0x16f)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[V(0x1b7)](j)[V(0x179)](o)){if(o===V(0x1b4)){const r=this[V(0x17f)][V(0x18b)](),s=await Actions[V(0x1a1)]({'type':V(0x185),'name':V(0x1b4),'message':V(0x17d),'choices':r});b[V(0x1b4)]=s[V(0x1b4)];}else{const t=p;if(t){const u=await Actions[V(0x1a1)]({'type':V(0x185),'name':o,'message':V(0x1b0)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0x16b)](V(0x1ac)+o);if(v[V(0x18d)](q))b[o]=v;else{Log[V(0x195)](V(0x1a2)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[V(0x16b)]('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[V(0x179)](x)){Log[V(0x195)](V(0x1a2)+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0x183)](f),l=b;if(k&&Object[V(0x1b7)](k)?.['length']>0x0){k=k[V(0x1a4)](i||[]),k[V(0x180)]({'name':V(0x19e),'hidden':!![]}),k[V(0x180)]({'name':'help','boolFlag':!![]}),k[V(0x180)]({'name':'dir','hidden':!![]}),k[V(0x180)]({'name':'cwd','hidden':!![]}),k[V(0x180)]({'name':V(0x19a),'hidden':!![]}),k[V(0x180)]({'name':'config','hidden':!![]}),l=this[V(0x168)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A['includes'](B))){const C=A;if(C){const D=await Actions['options']({'type':V(0x185),'name':z,'message':V(0x182)+z,'choices':A});l[z]=D[z];}}if(k[V(0x16f)]>0x0)for(const E of Object['keys'](l)){const F=k['find'](G=>G['name']===E);if(!F){Log['error'](V(0x1bc)+E);throw new UsageError();}}}}if(e&&e?.[V(0x16f)]>0x0)for(const G of e){if(!e[V(0x179)](G)){Log[V(0x195)](V(0x193)+G);const H=await Actions['ask'](V(0x186)+G);a[a[V(0x1a3)](G)]=H;}}return Object[V(0x19b)](j,l);}async[a129L(0x198)](a){const W=a129L;try{if(!a)return;const b=await this[W(0x17f)]['getPro']();!b&&(Log[W(0x195)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[W(0x1b2)](0x1));const c=!b?.[W(0x188)][W(0x179)](W(0x1ab))&&!b?.[W(0x188)][W(0x179)](W(0x197));if(this[W(0x178)](a)){const d=W(0x16a)+a[W(0x166)]+W(0x18c);if(a[W(0x1a1)][W(0x175)])return;const f=b?.[W(0x192)][W(0x179)](a[W(0x166)])||b?.[W(0x192)][W(0x179)](a[W(0x174)]||'')||this[W(0x1a1)]['isPro'];if(f&&c)throw d;}else{if(this[W(0x176)](a)){const g=b?.['proGenerators'][W(0x179)](a['name'])||b?.[W(0x1af)][W(0x179)](a[W(0x174)]||'');if(g&&c)throw W(0x199)+a['name']+W(0x18c);}}}catch(h){Log[W(0x195)](h),process['exit'](0x1);}}[a129L(0x178)](a){const X=a129L;return X(0x1a1)in a;}[a129L(0x176)](a){const Y=a129L;return!(Y(0x1a1)in a);}[a129L(0x1b3)](){const Z=a129L;return this[Z(0x1a1)][Z(0x1b3)]||this['options'][Z(0x169)]||Z(0x1bb);}[a129L(0x169)](){const a0=a129L;return this[a0(0x1a1)][a0(0x169)]||a0(0x170);}[a129L(0x1b9)](){const a1=a129L;return this[a1(0x1a1)][a1(0x1b9)]||'No\x20usage\x20provided.';}[a129L(0x1ad)](){const a2=a129L;return this['options'][a2(0x1ad)]||[];}[a129L(0x191)](){const a3=a129L;return this[a3(0x1a1)][a3(0x191)]||'None';}}
1
+ const a129K=a129d;(function(a,b){const I=a129d,c=a();while(!![]){try{const d=-parseInt(I(0x196))/0x1+-parseInt(I(0x193))/0x2+parseInt(I(0x188))/0x3*(parseInt(I(0x1a3))/0x4)+parseInt(I(0x1a8))/0x5*(parseInt(I(0x1b3))/0x6)+parseInt(I(0x182))/0x7+-parseInt(I(0x181))/0x8+-parseInt(I(0x19d))/0x9*(parseInt(I(0x1b9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x2f0ee));const a129b=(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;};}()),a129a=a129b(this,function(){const J=a129d;return a129a['toString']()[J(0x1af)](J(0x1bb))['toString']()['constructor'](a129a)[J(0x1af)](J(0x1bb));});a129a();import a129e from'path';import a129f from'os';function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x177;let f=c[d];return f;},a129d(a,b);}import a129g from'fs';const homeDir=a129f[a129K(0x1ac)]();function a129c(){const a2=['5571scNcEw','config','assign','charAt','dir','Local','16lovNIn','findProjectDirectory','Please\x20provide\x20a\x20resource\x20name:','fsi','getMakaProjectConfig','20EJjytl','Please\x20choose\x20an\x20environment','join','win32','homedir','examples','length','search','engines','To\x20use\x20this\x20command,\x20\x22','resourceName','485064IASnDY','push','Invalid\x20option:\x20','map','env','shortDesc','460UWaTFX','validateParams','(((.+)+)+)+$','isPro','every','validateUserIsLoggedIn','help','guest','user','You\x20must\x20have\x20','Please\x20provide\x20a\x20value\x20for\x20','No\x20description\x20provided.','Please\x20choose\x20a\x20valid\x20value\x20for\x20','getShortName','.meteor','Please\x20choose\x20a\x20value\x20for\x20','roles','parent','concat','singleLicense','keys','2674056HgCaOh','2377305RcFTCA','error','getPro','indexOf','proCommands','name','238677maljCW','list','remapShortToLong','includes','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','ask','None','disableAuthCheck','cwd','platform','docker','141878hTOpVX','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','root','354807DAZeog','Invalid\x20value\x20for\x20','aliases','exit','options','validateEngines','formatToNamedParam'];a129c=function(){return a2;};return a129c();}import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a129K(0x192)];[a129K(0x1a6)];[a129K(0x19a)];[a129K(0x187)];[a129K(0x17d)];['_handler'];constructor(){const L=a129K;this['docker']=new Docker(),this[L(0x1a6)]=new FSI();}[a129K(0x179)](a){const M=a129K;return a[M(0x1a0)](0x0);}['remapShortToLong'](a,b){const N=a129K,c=this['formatToNamedParam'](b),d={...a};for(const e of c){const f=this[N(0x179)](e[N(0x187)]);a[f]&&(d[e[N(0x187)]]=a[f],delete d[f]);}return d;}[a129K(0x19c)](a){const O=a129K;if(a[O(0x1bd)](b=>typeof b==='string'))return a[O(0x1b6)](b=>({'name':b}));return a;}['match'](a){const P=a129K,b=[this[P(0x187)]][P(0x17e)](this[P(0x19a)][P(0x198)]||[]);return this[P(0x17d)]&&b[P(0x1b4)](this[P(0x17d)]),b[P(0x18b)](a);}['validateMakaProject'](){const Q=a129K,a=this[Q(0x1a6)][Q(0x1a4)]();return a!==![]?!![]:![];}async[a129K(0x1be)](){const R=a129K,a=await this[R(0x1a6)][R(0x184)]();return a?.[R(0x1c1)]&&a?.[R(0x1c1)]!==R(0x1c0)?!![]:![];}['validateMeteorInstall'](){const S=a129K;let a=a129e[S(0x1aa)](homeDir,'.meteor');const b=process[S(0x191)]===S(0x1ab);if(b){a=a129e[S(0x1aa)](homeDir,'AppData',S(0x1a2),S(0x17a));if(!a129g['existsSync'](a))return![];}else{if(!a129g['existsSync'](a))return![];}return!![];}[a129K(0x19b)](a){const T=a129K,b=this[T(0x1a6)][T(0x1a7)](),c=b[T(0x1b0)],d=Object['keys'](a);if(d[T(0x1ae)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0x183)](T(0x1c2)+e+'\x20version\x20'+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a129K(0x1ba)](a,b,c){const U=a129K,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0x180)](b);if(h[U(0x18b)](U(0x1b2))&&b['resourceName']===undefined&&!g){const m=await Actions[U(0x18d)](U(0x1a5));b[U(0x1b2)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[U(0x18a)](b,i);if(i&&i?.[U(0x1ae)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0x180)](j)['includes'](o)){if(o===U(0x1b7)){const r=this[U(0x1a6)]['getAppProjectConfigs'](),s=await Actions[U(0x19a)]({'type':U(0x189),'name':U(0x1b7),'message':U(0x1a9),'choices':r});b['env']=s[U(0x1b7)];}else{const t=p;if(t){const u=await Actions['options']({'type':'list','name':o,'message':U(0x17b)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](U(0x1c3)+o);if(v['match'](q))b[o]=v;else{Log['error'](U(0x197)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0x18d)](U(0x1c3)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0x18b)](x)){Log[U(0x183)](U(0x197)+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0x19c)](f),l=b;if(k&&Object['keys'](k)?.[U(0x1ae)]>0x0){k=k[U(0x17e)](i||[]),k[U(0x1b4)]({'name':'resourceName','hidden':!![]}),k[U(0x1b4)]({'name':U(0x1bf),'boolFlag':!![]}),k[U(0x1b4)]({'name':U(0x1a1),'hidden':!![]}),k['push']({'name':U(0x190),'hidden':!![]}),k[U(0x1b4)]({'name':U(0x195),'hidden':!![]}),k[U(0x1b4)]({'name':U(0x19e),'hidden':!![]}),l=this[U(0x18a)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A['includes'](B))){const C=A;if(C){const D=await Actions[U(0x19a)]({'type':'list','name':z,'message':U(0x178)+z,'choices':A});l[z]=D[z];}}if(k[U(0x1ae)]>0x0)for(const E of Object[U(0x180)](l)){const F=k['find'](G=>G['name']===E);if(!F){Log[U(0x183)](U(0x1b5)+E);throw new UsageError();}}}}if(e&&e?.[U(0x1ae)]>0x0)for(const G of e){if(!e[U(0x18b)](G)){Log[U(0x183)]('Invalid\x20argument:\x20'+G);const H=await Actions[U(0x18d)]('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a[U(0x185)](G)]=H;}}return Object[U(0x19f)](j,l);}async['validateMakaSubscription'](a){const V=a129K;try{if(!a)return;const b=await this[V(0x1a6)][V(0x184)]();!b&&(Log[V(0x183)](V(0x18c)),process[V(0x199)](0x1));const c=!b?.[V(0x17c)][V(0x18b)](V(0x17f))&&!b?.[V(0x17c)]['includes']('domainLicense');if(this['isCommand'](a)){const d=V(0x1b1)+a[V(0x187)]+V(0x194);if(a[V(0x19a)][V(0x18f)])return;const f=b?.[V(0x186)][V(0x18b)](a[V(0x187)])||b?.[V(0x186)][V(0x18b)](a['parent']||'')||this[V(0x19a)][V(0x1bc)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.['proGenerators']['includes'](a[V(0x187)])||b?.['proGenerators'][V(0x18b)](a[V(0x17d)]||'');if(g&&c)throw'To\x20use\x20this\x20generator,\x20\x22'+a[V(0x187)]+V(0x194);}}}catch(h){Log['error'](h),process[V(0x199)](0x1);}}['isCommand'](a){return'options'in a;}['isGenerator'](a){const W=a129K;return!(W(0x19a)in a);}['description'](){const X=a129K;return this[X(0x19a)]['description']||this[X(0x19a)]['shortDesc']||X(0x177);}[a129K(0x1b8)](){const Y=a129K;return this['options'][Y(0x1b8)]||'NIE';}['usage'](){const Z=a129K;return this[Z(0x19a)]['usage']||'No\x20usage\x20provided.';}[a129K(0x1ad)](){const a0=a129K;return this[a0(0x19a)][a0(0x1ad)]||[];}[a129K(0x198)](){const a1=a129K;return this[a1(0x19a)][a1(0x198)]||a1(0x18e);}}
@@ -1 +1 @@
1
- const a130i=a130d;function a130c(){const m=['constructor','10520fHbfbU','10068VQdBFB','1272296RihRUm','password','apply','109016PRzOPn','input','ask','answer','prompt','(((.+)+)+)+$','385TJVlEe','confirm','search','6jMnHgz','toString','227590kIISjQ','11781rwYUzz','1597950MEqklZ','566979XAJTuW'];a130c=function(){return m;};return a130c();}(function(a,b){const f=a130d,c=a();while(!![]){try{const d=-parseInt(f(0x16d))/0x1+-parseInt(f(0x16b))/0x2*(parseInt(f(0x170))/0x3)+-parseInt(f(0x177))/0x4+-parseInt(f(0x16f))/0x5+-parseInt(f(0x173))/0x6*(parseInt(f(0x17d))/0x7)+parseInt(f(0x174))/0x8+-parseInt(f(0x16e))/0x9*(-parseInt(f(0x172))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x49d42));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a130d;if(c){const e=c[g(0x176)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const h=a130d;return a130a[h(0x16c)]()['search'](h(0x17c))['toString']()[h(0x171)](a130a)[h(0x16a)](h(0x17c));});a130a();import a130e from'inquirer';function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x16a;let f=c[d];return f;},a130d(a,b);}export class Actions{static async[a130i(0x179)](a,b){const j=a130i,{answer:c}=await a130e[j(0x17b)]({'type':b?j(0x175):j(0x178),'name':'answer','message':a});return c;}static async[a130i(0x17e)](a,b=![]){const k=a130i,{answer:c}=await a130e[k(0x17b)]({'type':'confirm','name':k(0x17a),'message':a,'default':b});return c;}static async['options'](a){const l=a130i,b=await a130e[l(0x17b)](a);return b;}}
1
+ const a130i=a130d;function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a130d(a,b);}(function(a,b){const f=a130d,c=a();while(!![]){try{const d=parseInt(f(0x1fc))/0x1*(-parseInt(f(0x1f7))/0x2)+-parseInt(f(0x1fe))/0x3+parseInt(f(0x1f9))/0x4+-parseInt(f(0x1f6))/0x5+-parseInt(f(0x1f2))/0x6+-parseInt(f(0x1eb))/0x7*(parseInt(f(0x1f5))/0x8)+-parseInt(f(0x1ee))/0x9*(-parseInt(f(0x1ef))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xd76cd));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a130d;if(c){const e=c[g(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const h=a130d;return a130a[h(0x1fd)]()[h(0x1f0)](h(0x1ec))[h(0x1fd)]()['constructor'](a130a)[h(0x1f0)](h(0x1ec));});a130a();import a130e from'inquirer';function a130c(){const l=['search','password','4119804XwpbKS','apply','ask','8FDVITX','370970tGPJyk','1535594qqWVTJ','confirm','6514116umeabm','prompt','options','1vaJxBL','toString','3769971IYxMmq','5719511MaYpNO','(((.+)+)+)+$','answer','133191Pqpnhx','1930bviUZj'];a130c=function(){return l;};return a130c();}export class Actions{static async[a130i(0x1f4)](a,b){const j=a130i,{answer:c}=await a130e[j(0x1fa)]({'type':b?j(0x1f1):'input','name':j(0x1ed),'message':a});return c;}static async[a130i(0x1f8)](a,b=![]){const k=a130i,{answer:c}=await a130e['prompt']({'type':k(0x1f8),'name':k(0x1ed),'message':a,'default':b});return c;}static async[a130i(0x1fb)](a){const b=await a130e['prompt'](a);return b;}}
@@ -1 +1 @@
1
- const a131t=a131d;(function(a,b){const p=a131d,c=a();while(!![]){try{const d=parseInt(p(0xa1))/0x1*(-parseInt(p(0xad))/0x2)+parseInt(p(0xc1))/0x3+-parseInt(p(0xf3))/0x4+-parseInt(p(0x95))/0x5+parseInt(p(0xe3))/0x6*(parseInt(p(0xb1))/0x7)+parseInt(p(0x109))/0x8*(-parseInt(p(0x104))/0x9)+parseInt(p(0xcb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x43c2c));const a131b=(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;};}()),a131a=a131b(this,function(){const q=a131d;return a131a[q(0xec)]()[q(0x111)](q(0x94))[q(0xec)]()['constructor'](a131a)['search'](q(0x94));});a131a();import a131e from'fs';import a131f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x8f;let f=c[d];return f;},a131d(a,b);}import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';function a131c(){const W=['getAppConfigPath','type','tag:created-by','Pem\x20key\x20saved\x20to\x20','4868aGRSVs','fsi','parse','ec2describeKeys','5677NHcVfO','split','$metadata','pop','join','\x20to\x20','AVAILABLE','running','RegistrationPrice','getSecurityGroups','readFileSync','\x20PRIV_IP:\x20','instanceId','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','Created:\x20','route53CreateHostedZone','42342IDozWu','createKeyPair','KeyMaterial','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','imageId','ask','Reservations','terminated','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','vpcId','16204130bUpnTz','Port\x20','Could\x20not\x20find\x20hosted\x20zone','publicIp','Key\x20Name:\x20[','httpStatusCode','/dev/sdh','find','environment','createKeyPairEC2Key','status','sgId','isFile','CidrBlock','notice','Error\x20generating\x20key\x20pair','HostedZones','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','From\x20AWS:','\x20Error\x20Rason:\x20','Please\x20choose\x20a\x20VPC:\x20[0]\x20','push','getMakaProjectConfig','Error\x20saving\x20pem\x20file,\x20aborting','558MItVri','key','subnet','sgPorts','name','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Prices','send','GroupName','toString','The\x20domain\x20\x27','deleteKeyPair','\x20Status\x20Code:\x20','maka-cli','UPSERT','minCount','842344ovHXrN','\x20NAME:\x20','_keys','sgIds','KeyName','Instances','config','Error\x20linking\x20EC2\x20to\x20Route\x2053:','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','log','\x20CIDR:\x20','changeResourceRecordSets','Invalid\x20choice','\x20PUB_IP:\x20','No\x20instances\x20found','Value','\x20STATUS:\x20','45phLkRO','ingressRule','ID:\x20','checkDomainAvailability','file://','437872qbfhxt','Name','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Successfully\x20linked\x20EC2\x20instance\x20','instance','tcp','Instance\x20rebooted!','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','search','\x20VPCID:\x20','$response','ec2createSG','deleteSecurityGroup','**\x20Available\x20\x20VPCs\x20**','Availability','ec2describeInstances','forEach','GroupId','(((.+)+)+)+$','1978140qtfmfm','Hosted\x20zone\x20created\x20successfully!','UserData','exit','description','length','error','userData','linkEC2ToRoute53','success','suggestion','createFile','227wXDchM','writeFileSync','ssh.json','registerDomain','chooseVPC','Error\x20creating\x20hosted\x20zone','cidr','warn'];a131c=function(){return W;};return a131c();}import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{['fsi'];constructor(){const r=a131d;this[r(0xae)]=new FSI();}async['ecrCreateRepository'](a){const s=a131d;try{const b={'repositoryName':a[s(0xe7)]},c=new CreateRepositoryCommand(b),d=await ecrClient[s(0xea)](c);return d;}catch(f){Log['error'](f);}}async[a131t(0xc0)](a){const u=a131t;try{const b={'CallerReference':''+Date['now'](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0xea)](c),Log[u(0x9e)](u(0x96));}catch(d){Log[u(0x9b)](u(0xa6)),console[u(0x9b)](d);}}async[a131t(0xa4)](a,b,c,d){const v=a131t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53['send'](f),Log[v(0xd9)](v(0xed)+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[v(0x9b)](v(0xbe)),Log[v(0xa8)](v(0xdd)),console['error'](v(0xef)+g[v(0x113)]['statusCode']),console[v(0x9b)](v(0xde)+g['$response']['reason']);}}async[a131t(0x107)](a){const w=a131t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0xea)](c),e=d[w(0x90)]===w(0xb7);if(e){const f=a[w(0xb2)]('.')[w(0xb4)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0xea)](h);if(i&&i[w(0xe9)]&&i[w(0xe9)][0x0]?.[w(0xb9)]){const j=i[w(0xe9)][0x0][w(0xb9)];return{'available':e,'cost':j};}}catch(k){console[w(0x9b)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async[a131t(0x9d)](a,b,c){const x=a131t;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[x(0xdb)])throw Log[x(0x9b)](x(0xcd));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0xf1),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0xfe)](f),Log[x(0xd9)](x(0x10c)+a+x(0xb6)+c);}catch(g){console['error'](x(0xfa),g);}}async['ec2create'](a){const y=a131t;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0xd1),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[y(0xc5)],'InstanceType':a[y(0xaa)],'KeyName':a[y(0xe4)],'MaxCount':a['maxCount'],'MinCount':a[y(0xf2)],'SecurityGroupIds':a[y(0xf6)][y(0xb2)](','),'SubnetId':a[y(0xe5)],'TagSpecifications':[{'ResourceType':y(0x10d),'Tags':a['tags']}]};a[y(0x9c)]&&(b[y(0x97)]=y(0x108)+a['userData']);const c=new RunInstancesCommand(b),d=await client[y(0xea)](c);return d;}catch(f){Log[y(0x9b)](f);}}async['ec2terminateInstance'](a){const z=a131t;try{const b={'InstanceIds':[a[z(0xbd)]]},c=new TerminateInstancesCommand(b),d=await client[z(0xea)](c);return d;}catch(f){return Log[z(0x9b)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const A=a131t,c=this[A(0xae)][A(0xa9)](b),d=a131f['join'](c,A(0xf5),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[A(0xc3)];if(i){await this[A(0xae)][A(0xa0)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':'ignore'});const j=this['fsi'][A(0xd7)](d);if(j)return Log[A(0x9e)](A(0xac)+d),{'keyName':a,'filePath':d};else throw new Error(A(0xe2));}else throw new Error(A(0xda));}catch(k){Log[A(0x9b)](k),process['exit'](0x1);}}async[a131t(0x105)]({port:a,groupId:b}){const B=a131t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x10e),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0xd9)](B(0xcc)+a+'\x20opened!'),await client[B(0xea)](d);}async[a131t(0x114)](a){const C=a131t;try{a[C(0x99)]===''&&(a[C(0x99)]=await Actions[C(0xc6)]('Description:')||'Web\x20App');const b={'Description':a[C(0x99)],'GroupName':a[C(0xe7)],'VpcId':a[C(0xca)]},c=new CreateSecurityGroupCommand(b),d=await client[C(0xea)](c),{GroupId:f}=d;if(!d)throw new Error(C(0x10b));f&&a[C(0xe6)][C(0x92)](g=>{const D=C;this[D(0x105)]({'port':parseInt(g),'groupId':f});}),Log[C(0x9e)](C(0xbf)+f+'\x20NAME:\x20'+a[C(0xe7)]);}catch(g){return Log[C(0x9b)](g),![];}return!![];}async[a131t(0xb0)](a){const E=a131t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0xea)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const F=E;h[F(0xf7)]&&b['push']({'id':i,'name':h[F(0xf7)]});}),b[E(0x9a)]>0x0&&b[E(0x92)](h=>{const G=E;h['name']===a?.[G(0x9f)]?Log[G(0x9e)](G(0x106)+h['id']+G(0xf4)+h[G(0xe7)]):Log['notice']('ID:\x20'+h['id']+G(0xf4)+h[G(0xe7)]);})):Log[E(0x9b)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[E(0x9b)](h);}return b;}async[a131t(0xee)](a){const H=a131t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0xea)](c);}catch(d){Log[H(0x9b)](d),process[H(0x98)](0x1);}}async[a131t(0x91)](){const I=a131t,a=[];try{const b={'Filters':[{'Name':I(0xab),'Values':[I(0xf0)]}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[I(0xc7)]?.['forEach']((f,g)=>{const J=I;if(f?.[J(0xf8)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0xf8)][0x0],n=m?.[J(0xd2)](({Key:o})=>o===J(0xd3));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x10a)],'name':l,'env':n?.[J(0x102)]});}}),a[I(0x9a)]>0x0?a[I(0x92)](f=>{const K=I,g='ID:\x20'+f['id']+K(0xf4)+f[K(0xe7)]+'\x20ENV:\x20'+f['env']+K(0x103)+f[K(0xd5)]+'\x20INSTANCE_ID:\x20'+f[K(0xbd)]+K(0x100)+f[K(0xce)]+K(0xbc)+f['privateIp'];if(f[K(0xd5)]===K(0xc8))Log['error'](g);else f[K(0xd5)]===K(0xb8)?Log[K(0x9e)](g):Log[K(0xd9)](g);}):Log[I(0x9b)](I(0xc9));}catch(f){Log['error'](f);}return a;}async['ec2rebootInstance'](a){const L=a131t;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[L(0xea)](c);return d[L(0xb3)][L(0xd0)]===0xc8&&Log['success'](L(0x10f)),d;}catch(f){Log[L(0x9b)](f);}}async[a131t(0xa5)](){const M=a131t;let a='';Log[M(0xd9)](M(0x8f));const b=new DescribeVpcsCommand({}),c=await client[M(0xea)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const N=M;g['VpcId']&&g[N(0xd8)]&&e[N(0xe0)]({'id':h,'vpcId':g['VpcId'],'cidr':g[N(0xd8)]});});e[M(0x92)](function(g){const O=M;console[O(0xfc)]('ID:\x20'+g['id']+O(0x112)+g[O(0xca)]+O(0xfd)+g[O(0xa7)]);});const f=await Actions[M(0xc6)](M(0xdf))||0x0;e[M(0x92)](function(g){const P=M;g['id']==f&&(a=g[P(0xca)],Log[P(0x9e)](P(0xc4)+a+'\x0a'));});if(a==='')return Log[M(0x9b)](M(0xe8)),'';return a;}async['chooseInstance'](){const Q=a131t,a=await this[Q(0x91)]();if(a['length']===0x0)return Log[Q(0x9b)](Q(0x101)),null;const b=await Actions[Q(0xc6)](Q(0xfb));!b&&(Log['error'](Q(0xff)),process[Q(0x98)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a131t(0xc2)]({env:a}){const R=a131t,b=this['fsi'][R(0xe1)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0xc6)](R(0xcf)+d+']\x20')||d,{filePath:g}=await this[R(0xd4)]({'keyName':f,'env':a});try{const h=await Actions['confirm'](R(0xdc),!![]);if(h)try{const i=a131e[R(0xbb)](a131f[R(0xb5)]('config',a,R(0xa3)),'utf8'),j=JSON[R(0xaf)](i);j['pem']=a131f[R(0xb5)]('_keys',f+'.pem.txt'),a131e[R(0xa2)](a131f['join'](R(0xf9),a,R(0xa3)),JSON['stringify'](j,null,0x2));}catch(k){Log[R(0x9b)](k),Log[R(0x9b)](R(0x110));}}catch(l){Log[R(0x9b)](l),process[R(0x98)](0x1);}return{'keyName':f,'filePath':g};}async[a131t(0xba)](a){const S=a131t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0xea)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const T=S;i[T(0xeb)]&&i[T(0x93)]&&b[T(0xe0)]({'id':j,'name':i[T(0xeb)],'sgId':i[T(0x93)]});});let g='',h=0x0;return b[S(0x92)](function(i){const U=S;i[U(0xe7)]===a&&(g=i[U(0xd6)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a131t(0x115)](a){const V=a131t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0xea)](c);}catch(d){Log[V(0x9b)](d),process[V(0x98)](0x1);}}}
1
+ const a131s=a131d;(function(a,b){const p=a131d,c=a();while(!![]){try{const d=parseInt(p(0x205))/0x1+parseInt(p(0x191))/0x2+parseInt(p(0x1be))/0x3+parseInt(p(0x1ac))/0x4*(parseInt(p(0x1bb))/0x5)+parseInt(p(0x19e))/0x6+parseInt(p(0x1c5))/0x7*(parseInt(p(0x1ee))/0x8)+-parseInt(p(0x1a9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xe6111));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a131d;if(c){const e=c[q(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const r=a131d;return a131a['toString']()[r(0x1d4)](r(0x1b4))[r(0x1d2)]()['constructor'](a131a)['search'](r(0x1b4));});a131a();import a131e from'fs';import a131f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x18b;let f=c[d];return f;},a131d(a,b);}import{Log}from'../log/log.class.js';function a131c(){const V=['log','.pem.txt','publicIp','\x20NAME:\x20','getAppConfigPath','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','toString','\x20CIDR:\x20','search','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','Description:','chooseInstance','No\x20instances\x20found','RegistrationPrice','ID:\x20','description','GroupId','\x20STATUS:\x20','listHostedZonesByName','$metadata','split','apply','cidr','route53CreateHostedZone','Value','linkEC2ToRoute53','Web\x20App','getSecurityGroups','VpcId','vpcId','Error\x20linking\x20EC2\x20to\x20Route\x2053:','ec2describeKeys','Reservations','Availability','15014152AFrfBc','\x20VPCID:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','error','Name','statusCode','tags','running','Instances','chmod\x20400\x20','\x20to\x20','readFileSync','stringify','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','UserData','status','$response','createFile','notice','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','\x20ENV:\x20','createKeyPair','CidrBlock','588074rlcFhz','deleteSecurityGroup','ask','imageId','find','now','send','isFile','pop','From\x20AWS:','utf8','KeyName','parse','Prices','tcp','length','exit','\x20Status\x20Code:\x20','join','ec2describeInstances','tag:created-by','environment','confirm','2944492IvjvdE','name','_keys','\x20PRIV_IP:\x20','terminated','privateIp','ec2terminateInstance','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','\x20Error\x20Rason:\x20','fsi','push','Created:\x20','Error\x20generating\x20key\x20pair','3326844OpQkep','Error\x20fetching\x20domain\x20pricing:','warn','minCount','userData','ec2create','httpStatusCode','0.0.0.0/0','maxCount','forEach','success','49983462RExGeo','pem','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','1376HcVloa','AVAILABLE','/dev/sdh','sgId','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','\x20opened!','HostedZones','key','(((.+)+)+)+$','registerDomain','ssh.json','instanceId','The\x20domain\x20\x27','instance','GroupName','10205kbaVZX','\x20PUB_IP:\x20','Error\x20saving\x20pem\x20file,\x20aborting','3907212cqKOAw','**\x20Available\x20\x20VPCs\x20**','config','chooseVPC','Hosted\x20zone\x20created\x20successfully!','suggestion','Instance\x20rebooted!','7gDAVGp','sgPorts','Could\x20not\x20find\x20hosted\x20zone','ingressRule','Key\x20Name:\x20[','\x27\x20has\x20been\x20registered\x20successfully.','createKeyPairEC2Key'];a131c=function(){return V;};return a131c();}import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a131s(0x19a)];constructor(){this['fsi']=new FSI();}async['ecrCreateRepository'](a){const t=a131s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x20b)](c);return d;}catch(f){Log['error'](f);}}async[a131s(0x1e3)](a){const u=a131s;try{const b={'CallerReference':''+Date[u(0x20a)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0x20b)](c),Log[u(0x1a8)](u(0x1c2));}catch(d){Log['error']('Error\x20creating\x20hosted\x20zone'),console[u(0x1f1)](d);}}async[a131s(0x1b5)](a,b,c,d){const v=a131s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[v(0x20b)](f),Log[v(0x200)](v(0x1b8)+b+v(0x1ca));}catch(g){Log[v(0x1f1)](v(0x1fb)),Log[v(0x1a0)](v(0x20e)),console[v(0x1f1)](v(0x18b)+g[v(0x1fe)][v(0x1f3)]),console[v(0x1f1)](v(0x199)+g[v(0x1fe)]['reason']);}}async['checkDomainAvailability'](a){const w=a131s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0x20b)](c),e=d[w(0x1ed)]===w(0x1ad);if(e){const f=a[w(0x1e0)]('.')[w(0x20d)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0x20b)](h);if(i&&i[w(0x212)]&&i[w(0x212)][0x0]?.[w(0x1d9)]){const j=i[w(0x212)][0x0][w(0x1d9)];return{'available':e,'cost':j};}}catch(k){console['error'](w(0x19f),k);}}return{'available':e};}async[a131s(0x1e5)](a,b,c){const x=a131s;try{const d=await route53[x(0x1de)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[x(0x1f1)](x(0x1c7));const e=d?.[x(0x1b2)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log['notice']('Successfully\x20linked\x20EC2\x20instance\x20'+a+x(0x1f8)+c);}catch(g){console[x(0x1f1)](x(0x1ea),g);}}async[a131s(0x1a3)](a){const y=a131s;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0x1ae),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[y(0x208)],'InstanceType':a['type'],'KeyName':a[y(0x1b3)],'MaxCount':a[y(0x1a6)],'MinCount':a[y(0x1a1)],'SecurityGroupIds':a['sgIds'][y(0x1e0)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':y(0x1b9),'Tags':a[y(0x1f4)]}]};a[y(0x1a2)]&&(b[y(0x1fc)]='file://'+a[y(0x1a2)]);const c=new RunInstancesCommand(b),d=await client[y(0x20b)](c);return d;}catch(f){Log[y(0x1f1)](f);}}async[a131s(0x197)](a){try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log['error'](f),{};}}async[a131s(0x1cb)]({keyName:a,env:b}){const z=a131s,c=this[z(0x19a)][z(0x1d0)](b),d=a131f[z(0x18c)](c,z(0x193),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[z(0x20b)](g),i=h['KeyMaterial'];if(i){await this[z(0x19a)][z(0x1ff)]({'filePath':d,'data':i}),execSync(z(0x1f7)+d,{'stdio':'ignore'});const j=this[z(0x19a)][z(0x20c)](d);if(j)return Log['success']('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(z(0x1bd));}else throw new Error(z(0x19d));}catch(k){Log['error'](k),process[z(0x215)](0x1);}}async['ingressRule']({port:a,groupId:b}){const A=a131s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':A(0x213),'IpRanges':[{'CidrIp':A(0x1a5),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[A(0x200)]('Port\x20'+a+A(0x1b1)),await client[A(0x20b)](d);}async['ec2createSG'](a){const B=a131s;try{a[B(0x1db)]===''&&(a['description']=await Actions[B(0x207)](B(0x1d6))||B(0x1e6));const b={'Description':a[B(0x1db)],'GroupName':a[B(0x192)],'VpcId':a[B(0x1e9)]},c=new CreateSecurityGroupCommand(b),d=await client[B(0x20b)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[B(0x1c6)][B(0x1a7)](g=>{const C=B;this[C(0x1c8)]({'port':parseInt(g),'groupId':f});}),Log['success'](B(0x19c)+f+'\x20NAME:\x20'+a[B(0x192)]);}catch(g){return Log['error'](g),![];}return!![];}async[a131s(0x1eb)](a){const D=a131s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[D(0x20b)](d);if(!f)throw D(0x1d1);const {KeyPairs:g}=f;g?(g?.[D(0x1a7)]((h,i)=>{const E=D;h['KeyName']&&b[E(0x19b)]({'id':i,'name':h[E(0x210)]});}),b[D(0x214)]>0x0&&b[D(0x1a7)](h=>{const F=D;h[F(0x192)]===a?.[F(0x1c3)]?Log[F(0x1a8)](F(0x1da)+h['id']+F(0x1cf)+h[F(0x192)]):Log['notice'](F(0x1da)+h['id']+'\x20NAME:\x20'+h['name']);})):Log[D(0x1f1)](D(0x198));}catch(h){Log[D(0x1f1)](h);}return b;}async['deleteKeyPair'](a){const G=a131s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[G(0x20b)](c);}catch(d){Log[G(0x1f1)](d),process['exit'](0x1);}}async[a131s(0x18d)](){const H=a131s,a=[];try{const b={'Filters':[{'Name':H(0x18e),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[H(0x20b)](c);d[H(0x1ec)]?.[H(0x1a7)]((f,g)=>{const I=H;if(f?.[I(0x1f6)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[I(0x1f6)][0x0],n=m?.['find'](({Key:o})=>o===I(0x18f));a[I(0x19b)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[I(0x1f2)],'name':l,'env':n?.[I(0x1e4)]});}}),a[H(0x214)]>0x0?a['forEach'](f=>{const J=H,g=J(0x1da)+f['id']+J(0x1cf)+f[J(0x192)]+J(0x202)+f['env']+J(0x1dd)+f[J(0x1fd)]+'\x20INSTANCE_ID:\x20'+f[J(0x1b7)]+J(0x1bc)+f[J(0x1ce)]+J(0x194)+f[J(0x196)];if(f[J(0x1fd)]===J(0x195))Log[J(0x1f1)](g);else f[J(0x1fd)]===J(0x1f5)?Log[J(0x1a8)](g):Log['notice'](g);}):Log[H(0x1f1)](H(0x1d5));}catch(f){Log[H(0x1f1)](f);}return a;}async['ec2rebootInstance'](a){const K=a131s;try{const b={'InstanceIds':[a[K(0x1b7)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[K(0x1df)][K(0x1a4)]===0xc8&&Log[K(0x1a8)](K(0x1c4)),d;}catch(f){Log[K(0x1f1)](f);}}async[a131s(0x1c1)](){const L=a131s;let a='';Log[L(0x200)](L(0x1bf));const b=new DescribeVpcsCommand({}),c=await client[L(0x20b)](b),{Vpcs:d}=c,e=[];d&&d[L(0x1a7)]((g,h)=>{const M=L;g['VpcId']&&g[M(0x204)]&&e[M(0x19b)]({'id':h,'vpcId':g[M(0x1e8)],'cidr':g[M(0x204)]});});e[L(0x1a7)](function(g){const N=L;console[N(0x1cc)](N(0x1da)+g['id']+N(0x1ef)+g[N(0x1e9)]+N(0x1d3)+g[N(0x1e2)]);});const f=await Actions[L(0x207)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[L(0x1a7)](function(g){const O=L;g['id']==f&&(a=g[O(0x1e9)],Log['success'](O(0x1ab)+a+'\x0a'));});if(a==='')return Log[L(0x1f1)](L(0x1f0)),'';return a;}async[a131s(0x1d7)](){const P=a131s,a=await this['ec2describeInstances']();if(a[P(0x214)]===0x0)return Log[P(0x1f1)](P(0x1d8)),null;const b=await Actions[P(0x207)](P(0x1b0));!b&&(Log[P(0x1f1)]('Invalid\x20choice'),process['exit'](0x0));const c=a[P(0x209)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a131s(0x203)]({env:a}){const Q=a131s,b=this['fsi']['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[Q(0x207)](Q(0x1c9)+d+']\x20')||d,{filePath:g}=await this[Q(0x1cb)]({'keyName':f,'env':a});try{const h=await Actions[Q(0x190)](Q(0x201),!![]);if(h)try{const i=a131e[Q(0x1f9)](a131f[Q(0x18c)](Q(0x1c0),a,Q(0x1b6)),Q(0x20f)),j=JSON[Q(0x211)](i);j[Q(0x1aa)]=a131f[Q(0x18c)](Q(0x193),f+Q(0x1cd)),a131e['writeFileSync'](a131f[Q(0x18c)]('config',a,Q(0x1b6)),JSON[Q(0x1fa)](j,null,0x2));}catch(k){Log['error'](k),Log[Q(0x1f1)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[Q(0x1f1)](l),process[Q(0x215)](0x1);}return{'keyName':f,'filePath':g};}async[a131s(0x1e7)](a){const R=a131s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[R(0x20b)](d),{SecurityGroups:f}=e;f&&f[R(0x1a7)](function(i,j){const S=R;i[S(0x1ba)]&&i[S(0x1dc)]&&b[S(0x19b)]({'id':j,'name':i['GroupName'],'sgId':i['GroupId']});});let g='',h=0x0;return b[R(0x1a7)](function(i){const T=R;i['name']===a&&(g=i[T(0x1af)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a131s(0x206)](a){const U=a131s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[U(0x1f1)](d),process[U(0x215)](0x1);}}}
@@ -1 +1 @@
1
- function a132c(){var n=['206XsxrXb','445vEDVrr','35527270fXPeNA','1338528GStPof','56iflmRL','apply','376211zlOBqo','54951dSFZFe','5888148KgEOCp','constructor','search','1626741qoPsVo','11ljNwLo','37628VFPUnt','(((.+)+)+)+$'];a132c=function(){return n;};return a132c();}(function(a,b){var k=a132d,c=a();while(!![]){try{var d=parseInt(k(0xfa))/0x1+parseInt(k(0xf4))/0x2*(-parseInt(k(0xfb))/0x3)+parseInt(k(0xf2))/0x4*(parseInt(k(0xf5))/0x5)+parseInt(k(0xf7))/0x6+-parseInt(k(0xfc))/0x7+parseInt(k(0xf8))/0x8*(-parseInt(k(0xff))/0x9)+parseInt(k(0xf6))/0xa*(parseInt(k(0xf1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0xf335f));function a132d(a,b){var c=a132c();return a132d=function(d,e){d=d-0xf1;var f=c[d];return f;},a132d(a,b);}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a132d;if(h){var j=h[l(0xf9)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a132d;return e['toString']()[m(0xfe)](m(0xf3))['toString']()[m(0xfd)](e)[m(0xfe)]('(((.+)+)+)+$');});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
1
+ (function(a,b){var k=a132d,c=a();while(!![]){try{var d=-parseInt(k(0x1da))/0x1*(parseInt(k(0x1d3))/0x2)+parseInt(k(0x1d7))/0x3*(parseInt(k(0x1df))/0x4)+parseInt(k(0x1dd))/0x5*(-parseInt(k(0x1e1))/0x6)+-parseInt(k(0x1d5))/0x7*(-parseInt(k(0x1dc))/0x8)+parseInt(k(0x1d8))/0x9+parseInt(k(0x1de))/0xa+parseInt(k(0x1db))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0x3dcd2));export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a132d;if(h){var j=h[l(0x1d9)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a132d;return e[m(0x1d6)]()[m(0x1e0)](m(0x1d4))['toString']()[m(0x1e2)](e)[m(0x1e0)]('(((.+)+)+)+$');});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));function a132d(a,b){var c=a132c();return a132d=function(d,e){d=d-0x1d3;var f=c[d];return f;},a132d(a,b);}function a132c(){var n=['25UOewli','2566680odKfdx','13748DxWMVm','search','371388nnASLy','constructor','1982TLhiXo','(((.+)+)+)+$','801374AQuNGN','toString','123MCGwtX','14409zzQJjt','apply','382ndFARc','4702742BvvPTf','8YNXtqh'];a132c=function(){return n;};return a132c();}
@@ -1 +1 @@
1
- const a133m=a133d;(function(a,b){const j=a133d,c=a();while(!![]){try{const d=parseInt(j(0x18b))/0x1+parseInt(j(0x19d))/0x2+-parseInt(j(0x18e))/0x3*(-parseInt(j(0x19a))/0x4)+-parseInt(j(0x188))/0x5+parseInt(j(0x19c))/0x6*(parseInt(j(0x18c))/0x7)+parseInt(j(0x198))/0x8*(-parseInt(j(0x190))/0x9)+-parseInt(j(0x197))/0xa*(parseInt(j(0x199))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0xcf2b7));function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x186;let f=c[d];return f;},a133d(a,b);}const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a133d;if(c){const e=c[k(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const l=a133d;return a133a[l(0x196)]()[l(0x18a)](l(0x19e))[l(0x196)]()[l(0x195)](a133a)['search'](l(0x19e));});a133a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a133m(0x1a3)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a133m;try{const f=[n(0x1a3),a,b+'.dkr.ecr.'+c+n(0x1a2)+d],g=n(0x18d)+f[n(0x1a4)]('\x20'),h=execSync(g,{'stdio':n(0x1a0)})[n(0x196)]();return h;}catch(i){return Log['error'](i),'';}}static[a133m(0x186)]({awsAccountId:a,region:b}){const o=a133m;try{const c=[o(0x19f),o(0x187),o(0x191),o(0x192),a+'.dkr.ecr.'+b+o(0x189)],d=o(0x18d)+c['join']('\x20'),f=execSync(d,{'stdio':o(0x1a0)})[o(0x196)]();return f;}catch(g){return Log[o(0x193)](g),'';}}static[a133m(0x1a1)]({awsAccountId:a,region:b,repoName:c}){const p=a133m;try{const d=[p(0x194),a+p(0x19b)+b+p(0x1a2)+c],f=p(0x18d)+d[p(0x1a4)]('\x20'),g=execSync(f,{'stdio':'inherit'})[p(0x196)]();return g;}catch(h){return Log['error'](h),'';}}}function a133c(){const q=['7sTeyUm','docker\x20','71502kgDUhF','apply','32013PqOcAy','AWS','--password-stdin','error','push','constructor','toString','585370slyuTD','8ocICld','330FVcNvm','136rEZocw','.dkr.ecr.','4586034oJcDQX','2090492YFCDqv','(((.+)+)+)+$','login','inherit','pushImage','.amazonaws.com/','tag','join','awsLogin','--username','8413150UTgPGt','.amazonaws.com','search','1670923zwJdPv'];a133c=function(){return q;};return a133c();}
1
+ const a133l=a133d;(function(a,b){const j=a133d,c=a();while(!![]){try{const d=parseInt(j(0x12e))/0x1*(parseInt(j(0x131))/0x2)+parseInt(j(0x141))/0x3+-parseInt(j(0x140))/0x4+parseInt(j(0x13e))/0x5+-parseInt(j(0x130))/0x6+parseInt(j(0x134))/0x7*(-parseInt(j(0x138))/0x8)+parseInt(j(0x13d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0xc6783));const a133b=(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;};}()),a133a=a133b(this,function(){const k=a133d;return a133a['toString']()[k(0x139)](k(0x135))['toString']()[k(0x13a)](a133a)[k(0x139)]('(((.+)+)+)+$');});a133a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a133c(){const p=['pushImage','3587952CLzVwy','2332050uHEbEr','docker\x20','error','.dkr.ecr.','--username','login','.amazonaws.com/','104461ZYLdwe','awsLogin','1129806NqhUxv','10dHTpAu','.amazonaws.com','tag','11487fcjdOR','(((.+)+)+)+$','inherit','toString','7032pvGCbj','search','constructor','join','AWS','12129669PzaXKj','3466315kjyyua'];a133c=function(){return p;};return a133c();}function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x12a;let f=c[d];return f;},a133d(a,b);}export class Docker{static[a133l(0x133)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a133l;try{const f=[m(0x133),a,b+m(0x12a)+c+m(0x12d)+d],g=m(0x142)+f['join']('\x20'),h=execSync(g,{'stdio':m(0x136)})[m(0x137)]();return h;}catch(i){return Log[m(0x143)](i),'';}}static[a133l(0x12f)]({awsAccountId:a,region:b}){const n=a133l;try{const c=[n(0x12c),n(0x12b),n(0x13c),'--password-stdin',a+n(0x12a)+b+n(0x132)],d=n(0x142)+c['join']('\x20'),f=execSync(d,{'stdio':n(0x136)})[n(0x137)]();return f;}catch(g){return Log[n(0x143)](g),'';}}static[a133l(0x13f)]({awsAccountId:a,region:b,repoName:c}){const o=a133l;try{const d=['push',a+o(0x12a)+b+o(0x12d)+c],f=o(0x142)+d[o(0x13b)]('\x20'),g=execSync(f,{'stdio':'inherit'})[o(0x137)]();return g;}catch(h){return Log[o(0x143)](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a134d,c=a();while(!![]){try{var d=parseInt(f(0xfd))/0x1*(parseInt(f(0xf8))/0x2)+-parseInt(f(0xf1))/0x3*(-parseInt(f(0xfb))/0x4)+parseInt(f(0xfc))/0x5*(parseInt(f(0xf2))/0x6)+parseInt(f(0xf7))/0x7*(-parseInt(f(0xf5))/0x8)+parseInt(f(0xf0))/0x9+-parseInt(f(0xf9))/0xa+parseInt(f(0xfa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0xac295));function a134c(){var i=['9029090KYsSrT','15172047ULhlHc','4dAkdIw','305PfNFAF','89qadfej','4344453YMBqbs','965058wrWKXS','38046SCqgBi','toString','search','376DZJncN','apply','162596QBqCfG','2906swndFd'];a134c=function(){return i;};return a134c();}var a134b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a134d;if(c){var e=c[g(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){var h=a134d;return a134a[h(0xf3)]()[h(0xf4)]('(((.+)+)+)+$')[h(0xf3)]()['constructor'](a134a)[h(0xf4)]('(((.+)+)+)+$');});function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0xf0;var f=c[d];return f;},a134d(a,b);}a134a();export{};
1
+ (function(a,b){var f=a134d,c=a();while(!![]){try{var d=parseInt(f(0x117))/0x1+parseInt(f(0x113))/0x2*(parseInt(f(0x118))/0x3)+-parseInt(f(0x110))/0x4*(parseInt(f(0x115))/0x5)+-parseInt(f(0x116))/0x6+-parseInt(f(0x111))/0x7*(parseInt(f(0x112))/0x8)+-parseInt(f(0x11f))/0x9*(-parseInt(f(0x11c))/0xa)+-parseInt(f(0x11b))/0xb*(-parseInt(f(0x119))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x7833d));var a134b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a134d;if(c){var e=c[g(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){var h=a134d;return a134a[h(0x10f)]()[h(0x11d)](h(0x11e))[h(0x10f)]()[h(0x11a)](a134a)[h(0x11d)](h(0x11e));});a134a();function a134c(){var i=['2543630HtOjhQ','search','(((.+)+)+)+$','18yNDzMs','toString','3929492rmPBXw','5331375cHTqpx','8FJqqRN','3734xaJChS','apply','5SMFLWY','189264GAkUDU','607704TTnpDB','642bwrIrX','36DmoBYW','constructor','2757051qBSevY'];a134c=function(){return i;};return a134c();}function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0x10f;var f=c[d];return f;},a134d(a,b);}export{};