@maka/maka-cli 5.0.0-beta.3 → 5.0.0-beta.5
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.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +1 -2
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +1 -2
- package/bundle/obf/src/templates/react/kit/auth/provider/authentication-provider.js.jsx +23 -11
- package/bundle/obf/src/templates/react/kit/auth/provider/authentication-provider.js.tsx +23 -12
- package/bundle/obf/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.jsx +5 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.tsx +5 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/login/basic-login-page.js.jsx +6 -6
- package/bundle/obf/src/templates/react/kit/mui/auth/login/basic-login-page.js.tsx +7 -8
- package/bundle/obf/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.jsx +3 -2
- package/bundle/obf/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.tsx +4 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.jsx +4 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.tsx +4 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/register/basic-register-page.js.jsx +4 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/register/basic-register-page.js.tsx +5 -4
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +4 -3
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +9 -7
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/bundle/obf/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.tsx
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { Container, Paper, Typography, TextField, Button } from '@mui/material';
|
|
3
|
-
import {
|
|
3
|
+
import { useNavigate } from 'react-router-dom';
|
|
4
4
|
|
|
5
5
|
export const BasicPasswordResetPage = (props) => {
|
|
6
6
|
const { params = {} } = props;
|
|
7
7
|
const { token } = params;
|
|
8
8
|
|
|
9
9
|
const { resetPassword } = useContext(AuthContext);
|
|
10
|
+
const navigate = useNavigate();
|
|
10
11
|
const handleSubmit = async (event) => {
|
|
11
12
|
event.preventDefault();
|
|
12
13
|
const { password } = event.target;
|
|
13
14
|
await resetPassword(token, password.value);
|
|
14
|
-
|
|
15
|
+
navigate('/');
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
return (
|
|
@@ -24,7 +25,7 @@ export const BasicPasswordResetPage = (props) => {
|
|
|
24
25
|
<Button type="submit" fullWidth variant="contained" color="primary" style={{ margin: '20px 0' }}>
|
|
25
26
|
Reset Password
|
|
26
27
|
</Button>
|
|
27
|
-
<Button onClick={() =>
|
|
28
|
+
<Button onClick={() => navigate('/login')} fullWidth>
|
|
28
29
|
Back to Login
|
|
29
30
|
</Button>
|
|
30
31
|
</form>
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { Container, Paper, Typography, TextField, Button, Link } from '@mui/material';
|
|
3
|
-
import {
|
|
3
|
+
import { useNavigate } from 'react-router-dom';
|
|
4
4
|
|
|
5
5
|
export const BasicRegisterPage = () => {
|
|
6
6
|
const { register } = useContext(AuthContext);
|
|
7
|
+
const navigate = useNavigate();
|
|
7
8
|
const handleSubmit = async (event) => {
|
|
8
9
|
event.preventDefault();
|
|
9
10
|
const { email, password } = event.target;
|
|
10
11
|
await register(email.value, password.value);
|
|
11
|
-
|
|
12
|
+
navigate('/');
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
return (
|
|
@@ -22,7 +23,7 @@ export const BasicRegisterPage = () => {
|
|
|
22
23
|
<Button type="submit" fullWidth variant="contained" color="primary" style={{ margin: '20px 0' }}>
|
|
23
24
|
Register
|
|
24
25
|
</Button>
|
|
25
|
-
<Link href="#" onClick={() =>
|
|
26
|
+
<Link href="#" onClick={() => navigate('/login')} variant="body2">
|
|
26
27
|
Already have an account? Log in
|
|
27
28
|
</Link>
|
|
28
29
|
</form>
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { Container, Paper, Typography, TextField, Button, Link } from '@mui/material';
|
|
3
|
-
import {
|
|
3
|
+
import { useNavigate } from 'react-router-dom';
|
|
4
4
|
|
|
5
5
|
export const BasicRegisterPage = () => {
|
|
6
6
|
const { register } = useContext(AuthContext);
|
|
7
|
-
const
|
|
7
|
+
const navigate = useNavigate();
|
|
8
|
+
const handleSubmit = async (event) => {
|
|
8
9
|
event.preventDefault();
|
|
9
10
|
const { email, password } = event.target;
|
|
10
11
|
await register(email.value, password.value);
|
|
11
|
-
|
|
12
|
+
navigate('/');
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
return (
|
|
@@ -22,7 +23,7 @@ export const BasicRegisterPage = () => {
|
|
|
22
23
|
<Button type="submit" fullWidth variant="contained" color="primary" style={{ margin: '20px 0' }}>
|
|
23
24
|
Register
|
|
24
25
|
</Button>
|
|
25
|
-
<Link href="#" onClick={() =>
|
|
26
|
+
<Link href="#" onClick={() => navigate('/login')} variant="body2">
|
|
26
27
|
Already have an account? Log in
|
|
27
28
|
</Link>
|
|
28
29
|
</form>
|
|
@@ -6,7 +6,7 @@ import Typography from '@mui/material/Typography';
|
|
|
6
6
|
import Button from '@mui/material/Button';
|
|
7
7
|
import IconButton from '@mui/material/IconButton';
|
|
8
8
|
import MenuIcon from '@mui/icons-material/Menu';
|
|
9
|
-
import {
|
|
9
|
+
import { useNavigate } from 'react-router-dom';
|
|
10
10
|
|
|
11
11
|
import { Session } from 'meteor/session';
|
|
12
12
|
|
|
@@ -14,6 +14,7 @@ function BasicAppBar() {
|
|
|
14
14
|
const handleDrawerToggle = () => {
|
|
15
15
|
Session.set('drawerOpen', !Session.get('drawerOpen'));
|
|
16
16
|
};
|
|
17
|
+
const navigate = useNavigate();
|
|
17
18
|
|
|
18
19
|
return (
|
|
19
20
|
<Box id="app-bar" sx={{ flexGrow: 1 }}>
|
|
@@ -29,10 +30,10 @@ function BasicAppBar() {
|
|
|
29
30
|
>
|
|
30
31
|
<MenuIcon />
|
|
31
32
|
</IconButton>
|
|
32
|
-
<Typography onClick={() =>
|
|
33
|
+
<Typography onClick={() => navigate('/')} variant="h6" component="div" sx={{ flexGrow: 1, cursor: 'pointer' }}>
|
|
33
34
|
<%= name %>
|
|
34
35
|
</Typography>
|
|
35
|
-
<Button onClick={() =>
|
|
36
|
+
<Button onClick={() => navigate('/login')} color="inherit">Login</Button>
|
|
36
37
|
</Toolbar>
|
|
37
38
|
</AppBar>
|
|
38
39
|
</Box>
|
|
@@ -6,13 +6,15 @@ import Typography from '@mui/material/Typography';
|
|
|
6
6
|
import Button from '@mui/material/Button';
|
|
7
7
|
import IconButton from '@mui/material/IconButton';
|
|
8
8
|
import MenuIcon from '@mui/icons-material/Menu';
|
|
9
|
-
import {
|
|
9
|
+
import { useNavigate } from 'react-router-dom';
|
|
10
10
|
|
|
11
11
|
import { Session } from 'meteor/session';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
|
|
13
|
+
function BasicAppBar() {
|
|
14
|
+
const handleDrawerToggle = () => {
|
|
15
|
+
Session.set('drawerOpen', !Session.get('drawerOpen'));
|
|
16
|
+
};
|
|
17
|
+
const navigate = useNavigate();
|
|
16
18
|
|
|
17
19
|
return (
|
|
18
20
|
<Box id="app-bar" sx={{ flexGrow: 1 }}>
|
|
@@ -28,10 +30,10 @@ import { Session } from 'meteor/session';
|
|
|
28
30
|
>
|
|
29
31
|
<MenuIcon />
|
|
30
32
|
</IconButton>
|
|
31
|
-
<Typography onClick={() =>
|
|
33
|
+
<Typography onClick={() => navigate('/')} variant="h6" component="div" sx={{ flexGrow: 1, cursor: 'pointer' }}>
|
|
32
34
|
<%= name %>
|
|
33
35
|
</Typography>
|
|
34
|
-
<Button onClick={() =>
|
|
36
|
+
<Button onClick={() => navigate('/login')} color="inherit">Login</Button>
|
|
35
37
|
</Toolbar>
|
|
36
38
|
</AppBar>
|
|
37
39
|
</Box>
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d
|
|
1
|
+
const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0x178))/0x1+-parseInt(I(0x156))/0x2+-parseInt(I(0x144))/0x3+-parseInt(I(0x12b))/0x4*(parseInt(I(0x148))/0x5)+parseInt(I(0x15e))/0x6+parseInt(I(0x179))/0x7*(-parseInt(I(0x134))/0x8)+parseInt(I(0x133))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0xe896c));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0x15d)]()['search'](K(0x165))[K(0x15d)]()[K(0x180)](a143a)[K(0x15f)](K(0x165));});a143a();function a143c(){const a4=['Invalid\x20option:\x20','fsi','isPro','apply','platform','list','Invalid\x20argument:\x20','2493936PzCmHx','dir','Please\x20choose\x20a\x20value\x20for\x20','Please\x20provide\x20a\x20value\x20for\x20','resourceName','Please\x20choose\x20an\x20environment','help','toString','9778356fRQdfn','search','error','ask','No\x20usage\x20provided.','NIE','disableAuthCheck','(((.+)+)+)+$','config','.meteor','Local','assign','experimental','Invalid\x20value\x20for\x20','Please\x20choose\x20a\x20valid\x20value\x20for\x20','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','keys','name','engines','proGenerators','filter','validateEngines','every','concat','remapShortToLong','homedir','1630133jZfgEc','56ICRQui','includes','formatToNamedParam','None','usage','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','charAt','constructor','To\x20use\x20this\x20generator,\x20\x22','exit','description','length','AppData','push','env','8nFpTMr','aliases','win32','options','You\x20must\x20have\x20','isCommand','findProjectDirectory','examples','44838027WwVlXx','477008yAkYnw','find','docker','roles','user','proCommands','indexOf','match','getAppProjectConfigs','domainLicense','string','validateParams','getShortName','Please\x20provide\x20a\x20resource\x20name:','shortDesc','\x20version\x20','5656350FJaand','parent','getPro','singleLicense','1048715tOTRtA','root','existsSync','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','_handler','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','local'];a143c=function(){return a4;};return a143c();}import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x177)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x124;let f=c[d];return f;},a143d(a,b);}import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a143L(0x136)];[a143L(0x150)];['options'];['name'];['parent'];[a143L(0x14c)];constructor(){const M=a143L;this[M(0x136)]=new Docker(),this['fsi']=new FSI();}[a143L(0x140)](a){const N=a143L;return a[N(0x17f)](0x0);}['remapShortToLong'](a,b){const O=a143L,c=this[O(0x17b)](b),d={...a};for(const e of c){const f=this[O(0x140)](e[O(0x16f)]);a[f]&&(d[e[O(0x16f)]]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const P=a143L;if(a[P(0x174)](b=>typeof b===P(0x13e)))return a['map'](b=>({'name':b}));return a;}[a143L(0x13b)](a){const Q=a143L,b=[this[Q(0x16f)]]['concat'](this[Q(0x12e)][Q(0x12c)]||[]);return this['parent']&&b[Q(0x129)](this['parent']),b[Q(0x17a)](a);}['validateMakaProject'](){const R=a143L,a=this[R(0x150)][R(0x131)]();return a!==![]?!![]:![];}async['validateUserIsLoggedIn'](){const S=a143L,a=await this[S(0x150)][S(0x146)]();return a?.[S(0x138)]&&a?.[S(0x138)]!=='guest'?!![]:![];}['validateMeteorInstall'](){const T=a143L,a=process[T(0x153)]===T(0x12d);if(a){if(!a143g[T(0x14a)](a143e['join'](homeDir,T(0x128),T(0x168),T(0x167))))return![];}else{if(!a143g[T(0x14a)](a143e['join'](homeDir,T(0x167))))return![];}return!![];}[a143L(0x173)](a){const U=a143L,b=this[U(0x150)]['getMakaProjectConfig'](),c=b[U(0x170)],d=Object[U(0x16e)](a);if(d['length']>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0x160)](U(0x12f)+e+U(0x143)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a143L(0x13f)](a,b,c){const V=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h['includes'](V(0x15a))&&b['resourceName']===undefined&&!g){const m=await Actions[V(0x161)](V(0x141));b['resourceName']=m;}let i=[],j=b;if(d){i=this[V(0x17b)](d),j=this[V(0x176)](b,i);if(i&&i?.[V(0x127)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[V(0x16e)](j)['includes'](o)){if(o==='env'){const r=this[V(0x150)][V(0x13c)]()[V(0x172)](t=>t!==V(0x14e));r[V(0x127)]===0x0&&(Log[V(0x160)](V(0x16d)),process[V(0x125)](0x1));const s=await Actions[V(0x12e)]({'type':V(0x154),'name':V(0x12a),'message':V(0x15b),'choices':r});b['env']=s['env'];}else{const t=p;if(t){const u=await Actions[V(0x12e)]({'type':V(0x154),'name':o,'message':V(0x158)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0x161)](V(0x159)+o);if(v[V(0x13b)](q))b[o]=v;else{Log[V(0x160)](V(0x16b)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask']('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[V(0x17a)](x)){Log[V(0x160)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0x17b)](f),l=b;if(k&&Object[V(0x16e)](k)?.[V(0x127)]>0x0){k=k[V(0x175)](i||[]),k[V(0x129)]({'name':V(0x15a),'hidden':!![]}),k[V(0x129)]({'name':V(0x15c),'boolFlag':!![]}),k[V(0x129)]({'name':V(0x157),'hidden':!![]}),k['push']({'name':'cwd','hidden':!![]}),k[V(0x129)]({'name':V(0x149),'hidden':!![]}),k[V(0x129)]({'name':V(0x166),'hidden':!![]}),l=this['remapShortToLong'](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[V(0x17a)](B))){const C=A;if(C){const D=await Actions[V(0x12e)]({'type':V(0x154),'name':z,'message':V(0x16c)+z,'choices':A});l[z]=D[z];}}if(k[V(0x127)]>0x0)for(const E of Object['keys'](l)){const F=k[V(0x135)](G=>G['name']===E);if(!F){Log[V(0x160)](V(0x14f)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[V(0x17a)](G)){Log[V(0x160)](V(0x155)+G);const H=await Actions[V(0x161)](V(0x14d)+G);a[a[V(0x13a)](G)]=H;}}return Object[V(0x169)](j,l);}async['validateMakaSubscription'](a){const W=a143L;try{if(!a)return;const b=await this[W(0x150)][W(0x146)]();!b&&(Log['error'](W(0x17e)),process['exit'](0x1));const c=!b?.[W(0x137)][W(0x17a)](W(0x147))&&!b?.[W(0x137)][W(0x17a)](W(0x13d));if(this[W(0x130)](a)){const d='To\x20use\x20this\x20command,\x20\x22'+a[W(0x16f)]+W(0x14b);if(a[W(0x12e)][W(0x164)])return;const f=b?.['proCommands'][W(0x17a)](a['name'])||b?.[W(0x139)]['includes'](a[W(0x145)]||'')||this['options'][W(0x151)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.['proGenerators']['includes'](a['name'])||b?.[W(0x171)][W(0x17a)](a[W(0x145)]||'');if(g&&c)throw W(0x124)+a[W(0x16f)]+W(0x14b);}}}catch(h){Log[W(0x160)](h),process[W(0x125)](0x1);}}[a143L(0x130)](a){return'options'in a;}['isGenerator'](a){const X=a143L;return!(X(0x12e)in a);}[a143L(0x126)](){const Y=a143L;return this[Y(0x12e)][Y(0x126)]||this['options']['shortDesc']||'No\x20description\x20provided.';}[a143L(0x142)](){const Z=a143L;return this[Z(0x12e)][Z(0x142)]||Z(0x163);}['usage'](){const a0=a143L;return this[a0(0x12e)][a0(0x17d)]||a0(0x162);}[a143L(0x132)](){const a1=a143L;return this[a1(0x12e)]['examples']||[];}[a143L(0x12c)](){const a2=a143L;return this[a2(0x12e)]['aliases']||a2(0x17c);}[a143L(0x16a)](){const a3=a143L;return this[a3(0x12e)]['experimental']||![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a144h=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=parseInt(f(0x130))/0x1+-parseInt(f(0x12e))/0x2*(parseInt(f(0x135))/0x3)+parseInt(f(0x136))/0x4*(parseInt(f(0x12b))/0x5)+-parseInt(f(0x12a))/0x6+-parseInt(f(0x12f))/0x7+-parseInt(f(0x132))/0x8+parseInt(f(0x12d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x8ec69));function a144c(){const l=['17726jtzdnu','2121091CPAfmu','118616mWzocz','input','6659024PoZhYx','search','(((.+)+)+)+$','372DFSUhM','4HFhbAQ','toString','ask','options','prompt','confirm','constructor','1117794Zejfnm','2932055GWetNP','answer','20704356OiOSRc'];a144c=function(){return l;};return a144c();}const a144b=(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;};}()),a144a=a144b(this,function(){const g=a144d;return a144a[g(0x124)]()[g(0x133)](g(0x134))['toString']()[g(0x129)](a144a)['search'](g(0x134));});a144a();function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x124;let f=c[d];return f;},a144d(a,b);}import a144e from'inquirer';export class Actions{static async[a144h(0x125)](a,b){const i=a144h,{answer:c}=await a144e['prompt']({'type':b?'password':i(0x131),'name':i(0x12c),'message':a});return c;}static async[a144h(0x128)](a,b=![]){const j=a144h,{answer:c}=await a144e[j(0x127)]({'type':j(0x128),'name':j(0x12c),'message':a,'default':b});return c;}static async[a144h(0x126)](a){const k=a144h,b=await a144e[k(0x127)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a145s=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=-parseInt(p(0x160))/0x1+-parseInt(p(0x121))/0x2+parseInt(p(0x1e0))/0x3+parseInt(p(0x100))/0x4*(parseInt(p(0x15d))/0x5)+parseInt(p(0x13b))/0x6+-parseInt(p(0x181))/0x7+parseInt(p(0x146))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x3949f));const a145b=(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;};}()),a145a=a145b(this,function(){const q=a145d;return a145a[q(0x16e)]()['search'](q(0x126))[q(0x16e)]()[q(0x1e7)](a145a)[q(0x1ba)](q(0x126));});a145a();import a145e from'fs';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0xf9;let f=c[d];return f;},a145d(a,b);}import a145f from'path';function a145c(){const a7=['userData','timeout','KeyMaterial','us-west-2','\x20DESCRIPTION:\x20','type','Could\x20not\x20find\x20hosted\x20zone','From\x20AWS:','publicIp','**\x20Available\x20Security\x20Groups\x20**','\x20CIDR:\x20','map','listAvailableSubnets','info','ignore','32742QNjAzM','chmod\x20400\x20','_keys','Error\x20linking\x20EC2\x20to\x20Route\x2053:','$response','(((.+)+)+)+$','**\x20Available\x20\x20VPCs\x20**','Repository\x20\x22','\x22\x20created\x20successfully\x20in\x20','x86_64','getTime','find','UserData','ca-central-1','Prices','success','\x20PRIV_IP:\x20','AVAILABLE','eu-south-1','chooseSecurityGroup','ca-west-1','Region:\x20','\x20PUB_IP:\x20','Instance\x20rebooted!','Error\x20creating\x20hosted\x20zone','ap-south-2','968664sAlVho','instance','ap-east-1','terminated','Value','race','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','$metadata','Failed\x20in\x20','\x20SGID:\x20','ecrCreateRepository','675864TAdeMj','warn','us-west-1','ec2create','subnetId','includes','\x20:\x20','AvailabilityZone','httpStatusCode','eu-central-1','Canonical*Ubuntu*18.04*','Reservations','getMakaProjectConfig','stringify','authorizationData','deleteSecurityGroup','getSubnetCidr','Canonical*Ubuntu*20.04*','readFileSync','KeyName','Name','Setting\x20Subnet\x20ID\x20to\x20','statusCode','5PfchQI','Error\x20generating\x20key\x20pair','getSecurityGroups','144125vEPsMa','template','running','base64','me-south-1','maxCount','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','Final\x20list\x20of\x20ECR\x20repositories:','push','\x27\x20has\x20been\x20registered\x20successfully.','notice','hvm','Authorization\x20data\x20is\x20empty','VpcId','toString','getAppConfigPath','Hosted\x20zone\x20created\x20successfully!','\x20NAME:\x20','ssh.json','GroupName','Instances','chooseInstance','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','repositoryName','deleteKeyPair','ec2describeKeys','CidrBlock','desc','ap-northeast-1','CreationDate','Error\x20saving\x20pem\x20file,\x20aborting','ec2terminateInstance','\x20ENV:\x20','2054927eGihrk','listAvailableAMIs','ask','status','date','description','Port\x20','chooseVPC','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','from','\x20VPCID:\x20','trim','UNSUPPORTED','subnet','createKeyPairEC2Key','sgPorts','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','fsi','.pem.txt','il-central-1','...','instanceId','Failed\x20to\x20create\x20repository\x20in\x20','ecrDeleteRepository','environment','concat','ap-southeast-1','privateIp','machine','writeFileSync','sort','createKeyPair','available','eu-south-2','exit','ImageId','us-east-2','config','ingressRule','parse','Key\x20Name:\x20[','pem','suggestion','\x20to\x20','tag:created-by','now','\x20Error\x20Rason:\x20','RegistrationPrice','The\x20domain\x20\x27','error','isFile','start','confirm','sgId','ec2rebootInstance','ap-northeast-2','changeResourceRecordSets','search','authorizationToken','HostedZones','name','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','us-east-1','root-device-type','eu-central-2','cidr',',\x20URI:\x20','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','subnet-id','/dev/sdh','Subnets','slice','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','region','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','architecture','length',',\x20Name:\x20','state','ap-northeast-3','nextToken','Setting\x20SG\x20ID\x20to:\x20','Setting\x20AMI\x20ID\x20to\x20','No\x20images\x20found.','repositories','af-south-1','amiId','send','sa-east-1','utf8','virtualization-type','Authorization\x20token\x20is\x20missing','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','eu-north-1','split','510249BYLWnj','createFile','GroupId','Web\x20App','file://','\x20Status\x20Code:\x20','reason','constructor','join','forEach','me-central-1','Description','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','bright','eu-west-2','1090808ilvtVI','imageId','repositoryUri','ID:\x20','tcp','stop','Timeout\x20while\x20processing\x20','withSpinner','Description:','filter','ec2describeInstances','SubnetId','message','ap-southeast-2','Created:\x20','vpcId','\x20SG\x20NAME:\x20','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20'];a145c=function(){return a7;};return a145c();}import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';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,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}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({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{['fsi'];constructor(){const r=a145d;this[r(0x192)]=new FSI();}async[a145s(0x134)](a){const t=a145s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[t(0x15f)](a);let f='';if(c===''){Log['notice'](t(0x11b)),d[t(0xfa)](function(h){const u=t;h[u(0x1bd)]===a?Log[u(0x16a)](u(0x103)+h['id']+u(0x110)+h[u(0x1bd)]+u(0x144)+h[u(0x1b6)]):Log[u(0xfe)](u(0x103)+h['id']+u(0x110)+h[u(0x1bd)]+'\x20SGID:\x20'+h[u(0x1b6)]);});const g=await Actions[t(0x183)](t(0x1c4)+b+']\x20')||b[t(0x16e)]();d[t(0xfa)](function(h){const v=t;h['id']===parseInt(g)&&(f=h[v(0x1b6)],Log[v(0x130)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log['success'](t(0x1d2)+f+'\x0a');if(f==='')throw new Error('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');return f;}catch(h){Log[t(0x1b2)](h);throw h;}}async[a145s(0x182)](){const w=a145s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':w(0x1cc),'Values':[w(0x12a)]},{'Name':w(0x1db),'Values':[w(0x16b)]},{'Name':w(0x1c0),'Values':['ebs']},{'Name':w(0x1cf),'Values':[w(0x1a1)]},{'Name':'image-type','Values':[w(0x19d)]},{'Name':w(0x186),'Values':[w(0x150),w(0x157)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b[w(0x1d8)](d);if(f&&f[w(0x1cd)]>0x0){const g=new Date(),h=new Date(g['getTime']()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[w(0x109)](j=>j[w(0x17d)]&&!j[w(0xfc)]?.[w(0x14b)](w(0x18d))&&new Date(j[w(0x17d)])>h)[w(0x11d)](j=>({'amiId':j[w(0x1a4)],'desc':j[w(0xfc)],'date':j[w(0x17d)]}));if(i['length']>0x0){i[w(0x19f)]((n,o)=>new Date(o[w(0x185)])['getTime']()-new Date(n[w(0x185)])[w(0x12b)]());const j=i[w(0x1c8)](0x0,0x4),k=j[w(0x11d)]((n,o)=>({'id':o,'amiId':n[w(0x1d7)],'desc':n[w(0x17b)]}));k[w(0xfa)](n=>{const x=w;Log[x(0xfe)](x(0x103)+n['id']+'\x20AMIID:\x20'+n[x(0x1d7)]+x(0x116)+n['desc']);});const l=await Actions[w(0x183)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',m=k['find'](n=>n['id']===parseInt(l));if(m)a=m[w(0x1d7)],Log[w(0x130)](w(0x1d3)+a+w(0x14c)+m[w(0x17b)]);else throw Log[w(0x1b2)](w(0x1be));}else throw Log[w(0x1b2)](w(0x1c9));}else throw Log[w(0x1b2)](w(0x1d4));}catch(n){Log[w(0x1b2)](n);}return a;}async[a145s(0x11e)](){const y=a145s;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b['send'](d);if(f&&f[y(0x1cd)]>0x0){const g=f[y(0x11d)]((j,k)=>({'id':k,'cidr':j[y(0x17a)],'az':j[y(0x14d)],'subnetId':j[y(0x10b)]}));g['forEach'](j=>{const z=y;Log[z(0xfe)](z(0x103)+j['id']+z(0x11c)+j['cidr']+'\x20AZONE:\x20'+j['az']+'\x20SUBNETID:\x20'+j[z(0x14a)]);});const h=await Actions[y(0x183)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',i=g[y(0x12c)](j=>j['id']===parseInt(h));if(i)a=i[y(0x14a)],Log[y(0x130)](y(0x15b)+a);else throw Log[y(0x1b2)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log[y(0x1b2)]('No\x20subnets\x20found.');}catch(j){Log[y(0x1b2)](j);}return a;}async[a145s(0x156)](a){const A=a145s;try{const b=new EC2Client({}),c={'Filters':[{'Name':A(0x1c5),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[A(0x1d8)](d);return e[A(0x1c7)]&&e[A(0x1c7)][A(0x1cd)]>0x0?e['Subnets'][0x0][A(0x17a)]||'':'';}catch(f){return Log[A(0x1b2)](f),'';}}async[a145s(0x145)](a){const B=a145s;try{const b=new ECRClient({'region':a[B(0x1ca)]}),c={'repositoryName':a[B(0x1bd)]},d=new CreateRepositoryCommand(c),f=await b[B(0x1d8)](d);return Log['success'](B(0x128)+a[B(0x1bd)]+B(0x129)+a['region']+'.'),f;}catch(g){Log[B(0x1b2)](B(0x197)+a['region']+':\x20'+g);throw g;}}async['listAllEcrRepositories'](a){const C=a145s,b=[C(0x1bf),'us-east-2',C(0x148),'us-west-2','ap-south-1',C(0x1d0),C(0x1b8),C(0x19b),C(0x10d),C(0x17c),C(0x12e),C(0x14f),'eu-west-1',C(0xff),'eu-west-3',C(0x1de),C(0x1d9),C(0x1d6),C(0x13d),C(0x13a),'ap-southeast-3','ap-southeast-4',C(0x135),C(0x133),C(0x1a2),C(0x1c1),C(0x164),C(0xfb),C(0x194)],c=['us-east-1',C(0x1a5),'us-west-1',C(0x115)],d=a==='all'?b:a?a[C(0x1df)](','):c;let f=[];const g=Log[C(0x107)]();for(const h of d){g[C(0x1b4)]('Processing\x20'+h['trim']()+C(0x195));const i=new ECRClient({'region':h['trim']()});try{let j=undefined;do{const k=await Promise[C(0x140)]([i[C(0x1d8)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(C(0x113)),0x7d0))]);if(k===C(0x113)){Log[C(0x147)](C(0x106)+h['trim']()+'.');break;}else k['repositories']&&k[C(0x1d5)][C(0x1cd)]>0x0&&(f=f[C(0x19a)](k[C(0x1d5)][C(0x11d)](l=>({'name':l[C(0x177)],'uri':l[C(0x102)],'region':h['trim']()}))));j=k[C(0x1d1)];}while(j);}catch(l){Log['error'](C(0x143)+h[C(0x18c)]()+':\x20'+l[C(0x10c)]);}finally{g[C(0x105)]();}}return f[C(0x1cd)]>0x0?(console['log'](),Log[C(0x130)](C(0x167)),f[C(0xfa)](m=>{const D=C;Log[D(0x11f)](D(0x136)+m['region']+D(0x1ce)+m['name']+D(0x1c3)+m['uri']);})):Log[C(0x147)](C(0x166)),f;}async['route53CreateHostedZone'](a){const E=a145s;try{const b={'CallerReference':''+Date[E(0x1ae)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[E(0x130)](E(0x170));}catch(d){Log['error'](E(0x139)),console[E(0x1b2)](d);}}async['registerDomain'](a,b,c,d){const F=a145s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[F(0x1d8)](f),Log[F(0x16a)](F(0x1b1)+b+F(0x169));}catch(g){Log[F(0x1b2)](F(0x1dd)),Log[F(0x147)](F(0x119)),console[F(0x1b2)](F(0x1e5)+g[F(0x125)][F(0x15c)]),console[F(0x1b2)](F(0x1af)+g[F(0x125)][F(0x1e6)]);}}async['checkDomainAvailability'](a){const G=a145s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[G(0x1d8)](c),e=d['Availability']===G(0x132);if(e){const f=a[G(0x1df)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[G(0x1d8)](h);if(i&&i[G(0x12f)]&&i[G(0x12f)][0x0]?.[G(0x1b0)]){const j=i[G(0x12f)][0x0][G(0x1b0)];return{'available':e,'cost':j};}}catch(k){console[G(0x1b2)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const H=a145s;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.['HostedZones'])throw Log[H(0x1b2)](H(0x118));const e=d?.[H(0x1bc)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[H(0x1b9)](f),Log['notice']('Successfully\x20linked\x20EC2\x20instance\x20'+a+H(0x1ac)+c);}catch(g){console[H(0x1b2)](H(0x124),g);}}async['getEcrLoginPassword']({awsAccountId:a,region:b}){const I=a145s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[I(0x1d8)](d);if(!f[I(0x154)]||f[I(0x154)]['length']===0x0)throw new Error(I(0x16c));const g=f[I(0x154)][0x0];if(!g['authorizationToken'])throw new Error(I(0x1dc));const h=g[I(0x1bb)];if(!h)throw new Error(I(0x1cb));const i=Buffer[I(0x18a)](h,I(0x163))[I(0x16e)](),j=i[I(0x1df)](':')[0x1];if(!j)throw new Error('Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token');return j;}catch(k){Log['error'](k);throw k;}}async[a145s(0x198)]({repoName:a,region:b}){const c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c['send'](d);return f;}catch(g){Log['error'](g);throw g;}}async[a145s(0x149)](a){const J=a145s;try{const b={'BlockDeviceMappings':[{'DeviceName':J(0x1c6),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[J(0x101)],'InstanceType':a[J(0x117)],'KeyName':a['key'],'MaxCount':a[J(0x165)],'MinCount':a['minCount'],'SecurityGroupIds':a['sgIds'][J(0x1df)](','),'SubnetId':a[J(0x18e)],'TagSpecifications':[{'ResourceType':J(0x13c),'Tags':a['tags']}]};a[J(0x112)]&&(b[J(0x12d)]=J(0x1e4)+a[J(0x112)]);const c=new RunInstancesCommand(b),d=await client[J(0x1d8)](c);return d;}catch(f){Log[J(0x1b2)](f);}}async[a145s(0x17f)](a){const K=a145s;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[K(0x1d8)](c);return d;}catch(f){return Log['error'](f),{};}}async[a145s(0x18f)]({keyName:a,env:b}){const L=a145s,c=this[L(0x192)][L(0x16f)](b),d=a145f[L(0xf9)](c,L(0x123),a+L(0x193));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[L(0x1d8)](g),i=h[L(0x114)];if(i){await this['fsi'][L(0x1e1)]({'filePath':d,'data':i}),execSync(L(0x122)+d,{'stdio':L(0x120)});const j=this['fsi'][L(0x1b3)](d);if(j)return Log[L(0x130)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(L(0x17e));}else throw new Error(L(0x15e));}catch(k){Log['error'](k),process[L(0x1a3)](0x1);}}async[a145s(0x1a7)]({port:a,groupId:b}){const M=a145s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':M(0x104),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[M(0x16a)](M(0x187)+a+'\x20opened!'),await client['send'](d);}async['ec2createSG'](a){const N=a145s;try{a[N(0x186)]===''&&(a[N(0x186)]=await Actions[N(0x183)](N(0x108))||N(0x1e3));const b={'Description':a[N(0x186)],'GroupName':a[N(0x1bd)],'VpcId':a[N(0x10f)]},c=new CreateSecurityGroupCommand(b),d=await client[N(0x1d8)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[N(0x190)]['forEach'](g=>{const O=N;this[O(0x1a7)]({'port':parseInt(g),'groupId':f});}),Log[N(0x130)](N(0x10e)+f+N(0x171)+a['name']);}catch(g){return Log[N(0x1b2)](g),![];}return!![];}async[a145s(0x179)](a){const P=a145s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[P(0x1d8)](d);if(!f)throw P(0x191);const {KeyPairs:g}=f;g?(g?.[P(0xfa)]((h,i)=>{const Q=P;h['KeyName']&&b[Q(0x168)]({'id':i,'name':h[Q(0x159)]});}),b['length']>0x0&&b[P(0xfa)](h=>{const R=P;h[R(0x1bd)]===a?.[R(0x1ab)]?Log['success'](R(0x103)+h['id']+R(0x171)+h[R(0x1bd)]):Log[R(0x16a)]('ID:\x20'+h['id']+R(0x171)+h['name']);})):Log[P(0x1b2)](P(0x141));}catch(h){Log[P(0x1b2)](h);}return b;}async[a145s(0x178)](a){const S=a145s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[S(0x1d8)](c);}catch(d){Log['error'](d),process[S(0x1a3)](0x1);}}async[a145s(0x10a)](){const T=a145s,a=[];try{const b={'Filters':[{'Name':T(0x1ad),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[T(0x1d8)](c);d[T(0x151)]?.[T(0xfa)]((f,g)=>{const U=T;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[U(0x174)][0x0],n=m?.['find'](({Key:o})=>o===U(0x199));a[U(0x168)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[U(0x15a)],'name':l,'env':n?.[U(0x13f)]});}}),a[T(0x1cd)]>0x0?a[T(0xfa)](f=>{const V=T,g='ID:\x20'+f['id']+'\x20NAME:\x20'+f[V(0x1bd)]+V(0x180)+f['env']+'\x20STATUS:\x20'+f[V(0x184)]+'\x20INSTANCE_ID:\x20'+f[V(0x196)]+V(0x137)+f[V(0x11a)]+V(0x131)+f[V(0x19c)];if(f['status']===V(0x13e))Log[V(0x1b2)](g);else f[V(0x184)]===V(0x162)?Log['success'](g):Log[V(0x16a)](g);}):Log['error'](T(0xfd));}catch(f){Log[T(0x1b2)](f);}return a;}async[a145s(0x1b7)](a){const W=a145s;try{const b={'InstanceIds':[a[W(0x196)]]},c=new RebootInstancesCommand(b),d=await client[W(0x1d8)](c);return d[W(0x142)][W(0x14e)]===0xc8&&Log['success'](W(0x138)),d;}catch(f){Log['error'](f);}}async[a145s(0x188)](){const X=a145s;let a='';Log[X(0x16a)](X(0x127));const b=new DescribeVpcsCommand({}),c=await client[X(0x1d8)](b),{Vpcs:d}=c,e=[];d&&d[X(0xfa)]((g,h)=>{const Y=X;g[Y(0x16d)]&&g[Y(0x17a)]&&e[Y(0x168)]({'id':h,'vpcId':g[Y(0x16d)],'cidr':g[Y(0x17a)]});});e[X(0xfa)](function(g){const Z=X;console['log']('ID:\x20'+g['id']+Z(0x18b)+g[Z(0x10f)]+Z(0x11c)+g[Z(0x1c2)]);});const f=await Actions[X(0x183)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[X(0xfa)](function(g){const a0=X;g['id']==f&&(a=g['vpcId'],Log[a0(0x130)](a0(0x189)+a+'\x0a'));});if(a==='')return Log[X(0x1b2)](X(0x1be)),'';return a;}async[a145s(0x175)](){const a1=a145s,a=await this['ec2describeInstances']();if(a['length']===0x0)return Log[a1(0x1b2)]('No\x20instances\x20found'),null;const b=await Actions['ask'](a1(0x111));!b&&(Log[a1(0x1b2)]('Invalid\x20choice'),process[a1(0x1a3)](0x0));const c=a[a1(0x12c)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145s(0x1a0)]({env:a}){const a2=a145s,b=this[a2(0x192)][a2(0x152)](),{appName:c}=b,d=c+'-'+a,f=await Actions[a2(0x183)](a2(0x1a9)+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions[a2(0x1b5)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a145f[a2(0xf9)]('config',a,a2(0x172));!this[a2(0x192)][a2(0x1b3)](i)&&await this[a2(0x192)][a2(0x161)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':f}});const j=a145e[a2(0x158)](a145f['join'](a2(0x1a6),a,a2(0x172)),a2(0x1da)),k=JSON[a2(0x1a8)](j);k[a2(0x1aa)]=a145f[a2(0xf9)](a2(0x123),f+a2(0x193)),a145e[a2(0x19e)](a145f[a2(0xf9)](a2(0x1a6),a,a2(0x172)),JSON[a2(0x153)](k,null,0x2));}catch(l){Log[a2(0x1b2)](l),Log['error'](a2(0x176));}}catch(m){Log['error'](m),process[a2(0x1a3)](0x1);}return{'keyName':f,'filePath':g};}async[a145s(0x15f)](a){const a3=a145s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client['send'](d),{SecurityGroups:f}=e;f&&f[a3(0xfa)](function(i,j){const a4=a3;i[a4(0x173)]&&i['GroupId']&&b[a4(0x168)]({'id':j,'name':i[a4(0x173)],'sgId':i[a4(0x1e2)]});});let g='',h=0x0;return b[a3(0xfa)](function(i){const a5=a3;i[a5(0x1bd)]===a&&(g=i[a5(0x1b6)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145s(0x155)](a){const a6=a145s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a6(0x1d8)](c);}catch(d){Log[a6(0x1b2)](d),process[a6(0x1a3)](0x1);}}}
|
|
1
|
+
function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x1de;let f=c[d];return f;},a145d(a,b);}const a145s=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=parseInt(p(0x1f5))/0x1+parseInt(p(0x262))/0x2*(parseInt(p(0x21c))/0x3)+-parseInt(p(0x246))/0x4+parseInt(p(0x25f))/0x5+-parseInt(p(0x1e7))/0x6+parseInt(p(0x2c9))/0x7+-parseInt(p(0x28a))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x2a7e4));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x22f)]()[r(0x283)](r(0x2bf))[r(0x22f)]()[r(0x2c2)](a145a)[r(0x283)](r(0x2bf));});a145a();import a145e from'fs';import a145f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';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,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';function a145c(){const a8=['exit','success','privateIp','\x20STATUS:\x20','imageId','template','Invalid\x20choice','getEcrLoginPassword','Timeout\x20while\x20processing\x20','tcp','Value','info','error','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','CidrBlock','Pem\x20key\x20saved\x20to\x20','ecrCreateRepository','\x20:\x20','config/ssh.json','\x20Status\x20Code:\x20','585892MvmnNC','\x20CIDR:\x20','vpcId','ec2createSG','statusCode','CreationDate','ap-southeast-2','Subnets','listAllEcrRepositories','**\x20Available\x20Security\x20Groups\x20**','ID:\x20','\x27\x20has\x20been\x20registered\x20successfully.','hvm','\x22\x20created\x20successfully\x20in\x20','bright','ssh.json','sa-east-1','Please\x20choose\x20a\x20VPC:\x20[0]\x20','state','0.0.0.0/0','forEach','The\x20domain\x20\x27','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','\x20NAME:\x20','slice','6190VXviwt','confirm','now','30674InlfKY','Prices','isFile','find','repositories','join','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','...','GroupName','Reservations','\x20Error\x20Rason:\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ca-central-1','eu-north-1','instance','sgIds','ap-northeast-1','key','publicIp','**\x20Available\x20\x20VPCs\x20**','filter','Setting\x20AMI\x20ID\x20to\x20','virtualization-type','chooseVPC','.pem.txt','\x20SUBNETID:\x20','checkDomainAvailability','Repository\x20\x22','x86_64','No\x20subnets\x20found.','Error\x20creating\x20hosted\x20zone','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','tag:created-by','search','ap-northeast-2','map','timeout','authorizationToken','message','me-south-1','174464PWISKR','type','readFileSync','getTime','No\x20images\x20found.','Successfully\x20linked\x20EC2\x20instance\x20','writeFileSync','trim','Web\x20App','registerDomain','ec2describeKeys','listAvailableAMIs','log','subnetId','userData','me-central-1','getSecurityGroups','Setting\x20Subnet\x20ID\x20to\x20','chooseSecurityGroup','_keys','available','ingressRule','\x20AMIID:\x20','us-east-2','root-device-type','pop','linkEC2ToRoute53','pem','Setting\x20SG\x20ID\x20to:\x20','\x20opened!','Created:\x20','UserData','httpStatusCode','reason','Could\x20not\x20find\x20hosted\x20zone','Port\x20','stringify','us-west-2','ecrDeleteRepository','VpcId','ap-south-1','name','getAppConfigPath','eu-south-1','deleteKeyPair','split','ap-southeast-4','\x20VPCID:\x20','UNSUPPORTED','notice','ask','minCount','running','(((.+)+)+)+$','Failed\x20in\x20','$metadata','constructor','Instances','eu-west-2','fsi','authorizationData','RegistrationPrice','eu-central-1','1868685HiQWIL','chooseInstance','HostedZones','ap-southeast-3','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.',',\x20URI:\x20','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','desc','base64','\x20DESCRIPTION:\x20','Description','\x20ENV:\x20','391512myGEsK','machine','Authorization\x20data\x20is\x20empty','getSubnetCidr','environment','send','maka-cli','length','/dev/sdh','concat','Final\x20list\x20of\x20ECR\x20repositories:','apply','uri','sgPorts','124055GWXHDu','warn','push','KeyName','eu-west-1','createKeyPairEC2Key','terminated','\x20to\x20','Canonical*Ubuntu*18.04*','ap-east-1','race','Processing\x20','region','route53CreateHostedZone','config','\x20INSTANCE_ID:\x20',',\x20Name:\x20','Error\x20linking\x20EC2\x20to\x20Route\x2053:','subnet-id','instanceId','createKeyPair','description','status','listHostedZonesByName','nextToken','eu-south-2','Instance\x20rebooted!','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','Availability','us-west-1','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','cidr','Hosted\x20zone\x20created\x20successfully!','\x20SGID:\x20','\x20AZONE:\x20','deleteSecurityGroup','amiId','architecture','From\x20AWS:','3pZaNDY','sgId','Key\x20Name:\x20[','getMakaProjectConfig','GroupId','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','$response','\x20PRIV_IP:\x20','us-east-1','Description:','ap-southeast-1','ap-south-2','date','start','Region:\x20','eu-west-3','eu-central-2','\x20SG\x20NAME:\x20','Error\x20fetching\x20domain\x20pricing:','toString','af-south-1','subnet'];a145c=function(){return a8;};return a145c();}import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}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({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a145s(0x2c5)];constructor(){const t=a145s;this[t(0x2c5)]=new FSI();}async[a145s(0x29c)](a){const u=a145s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log['notice'](u(0x24f)),d[u(0x25a)](function(h){const v=u;h['name']===a?Log[v(0x2bb)](v(0x250)+h['id']+v(0x22d)+h[v(0x2b3)]+v(0x216)+h['sgId']):Log[v(0x254)](v(0x250)+h['id']+v(0x22d)+h[v(0x2b3)]+v(0x216)+h[v(0x21d)]);});const g=await Actions['ask']('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+b+']\x20')||b[u(0x22f)]();d[u(0x25a)](function(h){const w=u;h['id']===parseInt(g)&&(f=h[w(0x21d)],Log[w(0x233)](w(0x2a6)+f+'\x0a'));});}else f=c,Log[u(0x233)](u(0x2a6)+f+'\x0a');if(f==='')throw new Error(u(0x1df));return f;}catch(h){Log['error'](h);throw h;}}async[a145s(0x295)](){const x=a145s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':x(0x21a),'Values':[x(0x27e)]},{'Name':x(0x278),'Values':[x(0x252)]},{'Name':x(0x2a2),'Values':['ebs']},{'Name':x(0x258),'Values':[x(0x29e)]},{'Name':'image-type','Values':[x(0x1e8)]},{'Name':x(0x20a),'Values':[x(0x1fd),'Canonical*Ubuntu*20.04*']}]},d=new DescribeImagesCommand(c),{Images:f}=await b[x(0x1ec)](d);if(f&&f[x(0x1ee)]>0x0){const g=new Date(),h=new Date(g['getTime']()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[x(0x276)](j=>j['CreationDate']&&!j[x(0x1e5)]?.['includes'](x(0x2ba))&&new Date(j[x(0x24b)])>h)['map'](j=>({'amiId':j['ImageId'],'desc':j[x(0x1e5)],'date':j[x(0x24b)]}));if(i[x(0x1ee)]>0x0){i['sort']((n,o)=>new Date(o[x(0x228)])[x(0x28d)]()-new Date(n[x(0x228)])[x(0x28d)]());const j=i[x(0x25e)](0x0,0x4),k=j[x(0x285)]((n,o)=>({'id':o,'amiId':n[x(0x219)],'desc':n[x(0x1e2)]}));k[x(0x25a)](n=>{const y=x;Log[y(0x254)]('ID:\x20'+n['id']+y(0x2a0)+n['amiId']+y(0x1e4)+n[y(0x1e2)]);});const l=await Actions['ask'](x(0x213))||'0',m=k['find'](n=>n['id']===parseInt(l));if(m)a=m[x(0x219)],Log['success'](x(0x277)+a+x(0x243)+m[x(0x1e2)]);else throw Log['error'](x(0x1df));}else throw Log['error'](x(0x281));}else throw Log['error'](x(0x28e));}catch(n){Log['error'](n);}return a;}async['listAvailableSubnets'](){const z=a145s;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b['send'](d);if(f&&f[z(0x1ee)]>0x0){const g=f[z(0x285)]((j,k)=>({'id':k,'cidr':j[z(0x240)],'az':j['AvailabilityZone'],'subnetId':j['SubnetId']}));g[z(0x25a)](j=>{const A=z;Log[A(0x254)]('ID:\x20'+j['id']+'\x20CIDR:\x20'+j[A(0x214)]+A(0x217)+j['az']+A(0x27b)+j[A(0x297)]);});const h=await Actions[z(0x2bc)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',i=g[z(0x265)](j=>j['id']===parseInt(h));if(i)a=i[z(0x297)],Log['success'](z(0x29b)+a);else throw Log['error'](z(0x1df));}else throw Log[z(0x23e)](z(0x27f));}catch(j){Log[z(0x23e)](j);}return a;}async[a145s(0x1ea)](a){const B=a145s;try{const b=new EC2Client({}),c={'Filters':[{'Name':B(0x207),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[B(0x1ec)](d);return e[B(0x24d)]&&e[B(0x24d)][B(0x1ee)]>0x0?e[B(0x24d)][0x0][B(0x240)]||'':'';}catch(f){return Log[B(0x23e)](f),'';}}async[a145s(0x242)](a){const C=a145s;try{const b=new ECRClient({'region':a[C(0x201)]}),c={'repositoryName':a[C(0x2b3)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log['success'](C(0x27d)+a[C(0x2b3)]+C(0x253)+a[C(0x201)]+'.'),f;}catch(g){Log[C(0x23e)]('Failed\x20to\x20create\x20repository\x20in\x20'+a[C(0x201)]+':\x20'+g);throw g;}}async[a145s(0x24e)](a){const D=a145s,b=[D(0x224),'us-east-2',D(0x212),D(0x2af),D(0x2b2),'ap-northeast-3',D(0x284),D(0x226),D(0x24c),D(0x272),D(0x26e),D(0x2c8),D(0x1f9),D(0x2c4),D(0x22b),D(0x26f),D(0x256),D(0x230),D(0x1fe),D(0x227),D(0x1de),D(0x2b8),'ca-west-1',D(0x2b5),D(0x20e),D(0x22c),D(0x289),D(0x299),'il-central-1'],c=[D(0x224),D(0x2a1),D(0x212),D(0x2af)],d=a==='all'?b:a?a[D(0x2b7)](','):c;let f=[];const g=Log['withSpinner']();for(const h of d){g[D(0x229)](D(0x200)+h[D(0x291)]()+D(0x269));const i=new ECRClient({'region':h[D(0x291)]()});try{let j=undefined;do{const k=await Promise[D(0x1ff)]([i[D(0x1ec)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(D(0x286)),0x7d0))]);if(k===D(0x286)){Log['warn'](D(0x23a)+h[D(0x291)]()+'.');break;}else k[D(0x266)]&&k[D(0x266)][D(0x1ee)]>0x0&&(f=f[D(0x1f0)](k[D(0x266)][D(0x285)](l=>({'name':l['repositoryName'],'uri':l['repositoryUri'],'region':h['trim']()}))));j=k[D(0x20d)];}while(j);}catch(l){Log[D(0x23e)](D(0x2c0)+h[D(0x291)]()+':\x20'+l[D(0x288)]);}finally{g['stop']();}}return f[D(0x1ee)]>0x0?(console[D(0x296)](),Log[D(0x233)](D(0x1f1)),f[D(0x25a)](m=>{const E=D;Log[E(0x23d)](E(0x22a)+m[E(0x201)]+E(0x205)+m[E(0x2b3)]+E(0x1e0)+m[E(0x1f3)]);})):Log[D(0x1f6)](D(0x221)),f;}async[a145s(0x202)](a){const F=a145s;try{const b={'CallerReference':''+Date[F(0x261)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[F(0x1ec)](c),Log[F(0x233)](F(0x215));}catch(d){Log[F(0x23e)](F(0x280)),console['error'](d);}}async[a145s(0x293)](a,b,c,d){const G=a145s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[G(0x1ec)](f),Log[G(0x2bb)](G(0x25b)+b+G(0x251));}catch(g){Log[G(0x23e)](G(0x23f)),Log['warn'](G(0x21b)),console[G(0x23e)](G(0x245)+g[G(0x222)][G(0x24a)]),console[G(0x23e)](G(0x26c)+g[G(0x222)][G(0x2ab)]);}}async[a145s(0x27c)](a){const H=a145s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[H(0x211)]==='AVAILABLE';if(e){const f=a[H(0x2b7)]('.')[H(0x2a3)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[H(0x1ec)](h);if(i&&i[H(0x263)]&&i[H(0x263)][0x0]?.['RegistrationPrice']){const j=i[H(0x263)][0x0][H(0x2c7)];return{'available':e,'cost':j};}}catch(k){console[H(0x23e)](H(0x22e),k);}}return{'available':e};}async[a145s(0x2a4)](a,b,c){const I=a145s;try{const d=await route53[I(0x20c)]({'DNSName':c});if(!d?.[I(0x2cb)])throw Log[I(0x23e)](I(0x2ac));const e=d?.[I(0x2cb)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log[I(0x2bb)](I(0x28f)+a+I(0x1fc)+c);}catch(g){console[I(0x23e)](I(0x206),g);}}async[a145s(0x239)]({awsAccountId:a,region:b}){const J=a145s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[J(0x1ec)](d);if(!f[J(0x2c6)]||f['authorizationData']['length']===0x0)throw new Error(J(0x1e9));const g=f[J(0x2c6)][0x0];if(!g['authorizationToken'])throw new Error('Authorization\x20token\x20is\x20missing');const h=g[J(0x287)];if(!h)throw new Error(J(0x1e1));const i=Buffer['from'](h,J(0x1e3))['toString'](),j=i[J(0x2b7)](':')[0x1];if(!j)throw new Error('Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token');return j;}catch(k){Log[J(0x23e)](k);throw k;}}async[a145s(0x2b0)]({repoName:a,region:b}){const K=a145s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[K(0x1ec)](d);return f;}catch(g){Log[K(0x23e)](g);throw g;}}async['ec2create'](a){const L=a145s;try{const b={'BlockDeviceMappings':[{'DeviceName':L(0x1ef),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[L(0x236)],'InstanceType':a[L(0x28b)],'KeyName':a[L(0x273)],'MaxCount':a['maxCount'],'MinCount':a[L(0x2bd)],'SecurityGroupIds':a[L(0x271)]['split'](','),'SubnetId':a[L(0x231)],'TagSpecifications':[{'ResourceType':L(0x270),'Tags':a['tags']}]};a[L(0x298)]&&(b[L(0x2a9)]='file://'+a['userData']);const c=new RunInstancesCommand(b),d=await client[L(0x1ec)](c);return d;}catch(f){Log[L(0x23e)](f);}}async['ec2terminateInstance'](a){const M=a145s;try{const b={'InstanceIds':[a[M(0x208)]]},c=new TerminateInstancesCommand(b),d=await client[M(0x1ec)](c);return d;}catch(f){return Log[M(0x23e)](f),{};}}async[a145s(0x1fa)]({keyName:a,env:b}){const N=a145s,c=this[N(0x2c5)][N(0x2b4)](b),d=a145f[N(0x267)](c,N(0x29d),a+N(0x27a));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[N(0x1ec)](g),i=h['KeyMaterial'];if(i){await this['fsi']['createFile']({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':'ignore'});const j=this[N(0x2c5)][N(0x264)](d);if(j)return Log['success'](N(0x241)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[N(0x23e)](k),process[N(0x232)](0x1);}}async[a145s(0x29f)]({port:a,groupId:b}){const O=a145s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':O(0x23b),'IpRanges':[{'CidrIp':O(0x259),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[O(0x2bb)](O(0x2ad)+a+O(0x2a7)),await client[O(0x1ec)](d);}async[a145s(0x249)](a){const P=a145s;try{a[P(0x20a)]===''&&(a[P(0x20a)]=await Actions[P(0x2bc)](P(0x225))||P(0x292));const b={'Description':a[P(0x20a)],'GroupName':a[P(0x2b3)],'VpcId':a[P(0x248)]},c=new CreateSecurityGroupCommand(b),d=await client[P(0x1ec)](c),{GroupId:f}=d;if(!d)throw new Error(P(0x26d));f&&a[P(0x1f4)][P(0x25a)](g=>{const Q=P;this[Q(0x29f)]({'port':parseInt(g),'groupId':f});}),Log[P(0x233)](P(0x2a8)+f+'\x20NAME:\x20'+a[P(0x2b3)]);}catch(g){return Log[P(0x23e)](g),![];}return!![];}async[a145s(0x294)](a){const R=a145s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[R(0x1ec)](d);if(!f)throw R(0x26d);const {KeyPairs:g}=f;g?(g?.[R(0x25a)]((h,i)=>{const S=R;h['KeyName']&&b[S(0x1f7)]({'id':i,'name':h[S(0x1f8)]});}),b[R(0x1ee)]>0x0&&b[R(0x25a)](h=>{const T=R;h[T(0x2b3)]===a?.['suggestion']?Log[T(0x233)](T(0x250)+h['id']+T(0x25d)+h['name']):Log[T(0x2bb)]('ID:\x20'+h['id']+T(0x25d)+h[T(0x2b3)]);})):Log[R(0x23e)](R(0x25c));}catch(h){Log[R(0x23e)](h);}return b;}async[a145s(0x2b6)](a){const U=a145s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[U(0x1ec)](c);}catch(d){Log['error'](d),process['exit'](0x1);}}async['ec2describeInstances'](){const V=a145s,a=[];try{const b={'Filters':[{'Name':V(0x282),'Values':[V(0x1ed)]}]},c=new DescribeInstancesCommand(b),d=await client[V(0x1ec)](c);d[V(0x26b)]?.[V(0x25a)]((f,g)=>{const W=V;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[W(0x2c3)][0x0],n=m?.['find'](({Key:o})=>o===W(0x1eb));a[W(0x1f7)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[W(0x23c)]});}}),a['length']>0x0?a[V(0x25a)](f=>{const X=V,g=X(0x250)+f['id']+X(0x25d)+f['name']+X(0x1e6)+f['env']+X(0x235)+f[X(0x20b)]+X(0x204)+f[X(0x208)]+'\x20PUB_IP:\x20'+f[X(0x274)]+X(0x223)+f[X(0x234)];if(f[X(0x20b)]===X(0x1fb))Log[X(0x23e)](g);else f[X(0x20b)]===X(0x2be)?Log[X(0x233)](g):Log[X(0x2bb)](g);}):Log[V(0x23e)](V(0x210));}catch(f){Log['error'](f);}return a;}async['ec2rebootInstance'](a){const Y=a145s;try{const b={'InstanceIds':[a[Y(0x208)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[Y(0x2c1)][Y(0x2aa)]===0xc8&&Log[Y(0x233)](Y(0x20f)),d;}catch(f){Log['error'](f);}}async[a145s(0x279)](){const Z=a145s;let a='';Log['notice'](Z(0x275));const b=new DescribeVpcsCommand({}),c=await client[Z(0x1ec)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const a0=Z;g['VpcId']&&g[a0(0x240)]&&e[a0(0x1f7)]({'id':h,'vpcId':g[a0(0x2b1)],'cidr':g[a0(0x240)]});});e[Z(0x25a)](function(g){const a1=Z;console['log'](a1(0x250)+g['id']+a1(0x2b9)+g[a1(0x248)]+a1(0x247)+g[a1(0x214)]);});const f=await Actions[Z(0x2bc)](Z(0x257))||0x0;e[Z(0x25a)](function(g){const a2=Z;g['id']==f&&(a=g[a2(0x248)],Log[a2(0x233)](a2(0x268)+a+'\x0a'));});if(a==='')return Log['error'](Z(0x1df)),'';return a;}async[a145s(0x2ca)](){const a3=a145s,a=await this['ec2describeInstances']();if(a[a3(0x1ee)]===0x0)return Log[a3(0x23e)]('No\x20instances\x20found'),null;const b=await Actions[a3(0x2bc)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[a3(0x23e)](a3(0x238)),process[a3(0x232)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145s(0x209)]({env:a}){const a4=a145s,b=this[a4(0x2c5)][a4(0x21f)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](a4(0x21e)+d+']\x20')||d,{filePath:g}=await this[a4(0x1fa)]({'keyName':f,'env':a});try{const h=await Actions[a4(0x260)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a145f['join'](a4(0x203),a,a4(0x255));!this[a4(0x2c5)][a4(0x264)](i)&&await this[a4(0x2c5)][a4(0x237)]({'srcPath':a4(0x244),'destPath':i,'context':{'app':f}});const j=a145e[a4(0x28c)](a145f[a4(0x267)](a4(0x203),a,'ssh.json'),'utf8'),k=JSON['parse'](j);k[a4(0x2a5)]=a145f[a4(0x267)](a4(0x29d),f+a4(0x27a)),a145e[a4(0x290)](a145f[a4(0x267)](a4(0x203),a,a4(0x255)),JSON[a4(0x2ae)](k,null,0x2));}catch(l){Log[a4(0x23e)](l),Log['error']('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(m){Log[a4(0x23e)](m),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async[a145s(0x29a)](a){const a5=a145s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a5(0x1ec)](d),{SecurityGroups:f}=e;f&&f[a5(0x25a)](function(i,j){const a6=a5;i[a6(0x26a)]&&i[a6(0x220)]&&b[a6(0x1f7)]({'id':j,'name':i['GroupName'],'sgId':i['GroupId']});});let g='',h=0x0;return b[a5(0x25a)](function(i){const a7=a5;i[a7(0x2b3)]===a&&(g=i[a7(0x21d)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145s(0x218)](a){try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log['error'](d),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var k=a146d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0xb1))/0x1*(-parseInt(k(0xb7))/0x2)+-parseInt(k(0xab))/0x3+-parseInt(k(0xb4))/0x4+parseInt(k(0xaf))/0x5*(-parseInt(k(0xb0))/0x6)+parseInt(k(0xb2))/0x7+parseInt(k(0xac))/0x8+-parseInt(k(0xb5))/0x9*(parseInt(k(0xb3))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x5ddfb));function a146c(){var m=['149IOxSLX','3537562mqOQji','20MrrQpg','2015560UGVKsT','988479FmOyXu','toString','10164yxAQGS','constructor','680511MKxZHR','2868760HFgxqW','search','(((.+)+)+)+$','4055OjkOPq','2118EnlFNP'];a146c=function(){return m;};return a146c();}export var CountryCode;function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0xab;var f=c[d];return f;},a146d(a,b);}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){if(h){var j=h['apply'](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var l=a146d;return e[l(0xb6)]()[l(0xad)](l(0xae))[l(0xb6)]()[l(0xb8)](e)[l(0xad)](l(0xae));});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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a147n=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=parseInt(j(0xdf))/0x1*(parseInt(j(0xea))/0x2)+-parseInt(j(0xf3))/0x3+-parseInt(j(0xe7))/0x4*(-parseInt(j(0xf5))/0x5)+parseInt(j(0xf0))/0x6+-parseInt(j(0xe3))/0x7+parseInt(j(0xe0))/0x8*(-parseInt(j(0xe8))/0x9)+parseInt(j(0xe5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x9df24));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a[l(0xf1)]()['search'](l(0xee))['toString']()[l(0xf4)](a147a)[l(0xf2)](l(0xee));});a147a();function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0xdf;let f=c[d];return f;},a147d(a,b);}function a147c(){const q=['search','2227074PWBNjP','constructor','5WCwofl','apply','.dkr.ecr.','pushImage','41UaKYLx','72HzSWdN','.amazonaws.com/','.amazonaws.com','7561589ndjxiK','push','5456060GzJtXv','error','2167892CWWOeT','818721SrrTdZ','docker\x20','56428JeHZne','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','join','awsLogin','(((.+)+)+)+$','inherit','6263406HZzCJt','toString'];a147c=function(){return q;};return a147c();}import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a147d;try{const f=['tag',a,b+m(0xf7)+c+m(0xe1)+d],g='docker\x20'+f[m(0xec)]('\x20'),h=execSync(g,{'stdio':'inherit'})[m(0xf1)]();return h;}catch(i){return Log[m(0xe6)](i),'';}}static[a147n(0xed)]({awsAccountId:a,region:b,password:c}){const o=a147n;try{const d='echo\x20'+c+o(0xeb)+a+o(0xf7)+b+o(0xe2);return execSync(d,{'stdio':o(0xef)}),d;}catch(f){return Log['error'](f),'';}}static[a147n(0xf8)]({awsAccountId:a,region:b,repoName:c}){const p=a147n;try{const d=[p(0xe4),a+p(0xf7)+b+p(0xe1)+c],f=p(0xe9)+d[p(0xec)]('\x20'),g=execSync(f,{'stdio':p(0xef)})[p(0xf1)]();return g;}catch(h){return Log[p(0xe6)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a148d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0x121))/0x1*(parseInt(f(0x118))/0x2)+-parseInt(f(0x11d))/0x3*(-parseInt(f(0x119))/0x4)+-parseInt(f(0x115))/0x5*(parseInt(f(0x11f))/0x6)+parseInt(f(0x11b))/0x7+-parseInt(f(0x11c))/0x8+parseInt(f(0x11a))/0x9*(parseInt(f(0x114))/0xa)+-parseInt(f(0x120))/0xb*(-parseInt(f(0x117))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0x5cc0e));var a148b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a148d;if(c){var e=c[g(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a148a=a148b(this,function(){var h=a148d;return a148a[h(0x116)]()['search'](h(0x113))[h(0x116)]()['constructor'](a148a)['search'](h(0x113));});function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x113;var f=c[d];return f;},a148d(a,b);}function a148c(){var i=['1249908mzAWNp','189541KgpcBe','791RIHeXv','(((.+)+)+)+$','755870uhPtFs','5uaDjUF','toString','336mnpPHt','982SMulmC','4vbCMlN','45GqnTJu','1134483TyfeRa','1449736QQxDjR','406086nTKwwE','apply'];a148c=function(){return i;};return a148c();}a148a();export{};
|