@maka/maka-cli 4.5.19 → 4.5.21
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 +127 -0
- package/bundle/obf/src/README.md +31 -0
- package/bundle/obf/src/command.js +1 -0
- package/bundle/obf/src/commands/_index.js +1 -0
- package/bundle/obf/src/commands/aws/_index.js +1 -0
- package/bundle/obf/src/commands/aws/aws.command.js +1 -0
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/build/_index.js +1 -0
- package/bundle/obf/src/commands/build/build.js +1 -0
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/create.js +1 -0
- package/bundle/obf/src/commands/debug.js +1 -0
- package/bundle/obf/src/commands/deploy.js +1 -0
- package/bundle/obf/src/commands/game/_index.js +1 -0
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/game/play.command.js +1 -0
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/scenes/puzzles.js +0 -0
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/generate.js +1 -0
- package/bundle/obf/src/commands/get/_index.js +1 -0
- package/bundle/obf/src/commands/get/get.command.js +1 -0
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/help.js +1 -0
- package/bundle/obf/src/commands/jsdoc.js +1 -0
- package/bundle/obf/src/commands/lint.js +1 -0
- package/bundle/obf/src/commands/login.js +1 -0
- package/bundle/obf/src/commands/logout.js +1 -0
- package/bundle/obf/src/commands/logs.js +1 -0
- package/bundle/obf/src/commands/maka.cmd.js +1 -0
- package/bundle/obf/src/commands/murder.js +1 -0
- package/bundle/obf/src/commands/proxy.js +1 -0
- package/bundle/obf/src/commands/reconfig.js +1 -0
- package/bundle/obf/src/commands/run/_index.js +1 -0
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/run/run.command.js +1 -0
- package/bundle/obf/src/commands/set/_index.js +1 -0
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/set/set.command.js +1 -0
- package/bundle/obf/src/commands/ssh.js +1 -0
- package/bundle/obf/src/commands/ssl.js +1 -0
- package/bundle/obf/src/commands/test.js +1 -0
- package/bundle/obf/src/commands/version.js +1 -0
- package/bundle/obf/src/error.js +1 -0
- package/bundle/obf/src/exec.js +2 -0
- package/bundle/obf/src/generator.js +1 -0
- package/bundle/obf/src/generators/_index.js +1 -0
- package/bundle/obf/src/generators/api.js +1 -0
- package/bundle/obf/src/generators/collection.js +1 -0
- package/bundle/obf/src/generators/component.js +1 -0
- package/bundle/obf/src/generators/config.js +1 -0
- package/bundle/obf/src/generators/dbc.js +1 -0
- package/bundle/obf/src/generators/dockerfile.js +1 -0
- package/bundle/obf/src/generators/hook.js +1 -0
- package/bundle/obf/src/generators/kit.js +1 -0
- package/bundle/obf/src/generators/layout.js +1 -0
- package/bundle/obf/src/generators/maka.gen.js +1 -0
- package/bundle/obf/src/generators/methods.js +1 -0
- package/bundle/obf/src/generators/package.js +1 -0
- package/bundle/obf/src/generators/page.js +1 -0
- package/bundle/obf/src/generators/publish.js +1 -0
- package/bundle/obf/src/generators/route.js +1 -0
- package/bundle/obf/src/generators/service.js +1 -0
- package/bundle/obf/src/generators/services/_index.js +1 -0
- package/bundle/obf/src/generators/services/openssl.js +1 -0
- package/bundle/obf/src/generators/services/translation.js +1 -0
- package/bundle/obf/src/maka.js +1 -0
- package/bundle/obf/src/templates/meteor/api/api.js +11 -0
- package/bundle/obf/src/templates/meteor/api/api.js.ts +11 -0
- package/bundle/obf/src/templates/meteor/api/collection.js +86 -0
- package/bundle/obf/src/templates/meteor/api/collection.js.ts +94 -0
- package/bundle/obf/src/templates/meteor/api/fixtures.js +23 -0
- package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +23 -0
- package/bundle/obf/src/templates/meteor/api/methods.js +136 -0
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +137 -0
- package/bundle/obf/src/templates/meteor/api/publications.js +31 -0
- package/bundle/obf/src/templates/meteor/api/publications.js.ts +31 -0
- package/bundle/obf/src/templates/meteor/api/register-api.js +15 -0
- package/bundle/obf/src/templates/meteor/api/register-api.js.ts +15 -0
- package/bundle/obf/src/templates/meteor/api/resolvers.js +9 -0
- package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +9 -0
- package/bundle/obf/src/templates/meteor/api/tests.js +1 -0
- package/bundle/obf/src/templates/meteor/api/tests.js.ts +1 -0
- package/bundle/obf/src/templates/meteor/api/typeDefs.js +5 -0
- package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +5 -0
- package/bundle/obf/src/templates/meteor/app/client/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/client/body.html +3 -0
- package/bundle/obf/src/templates/meteor/app/client/head.html +15 -0
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +9 -0
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +9 -0
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +9 -0
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +9 -0
- package/bundle/obf/src/templates/meteor/app/client/main.js +13 -0
- package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +13 -0
- package/bundle/obf/src/templates/meteor/app/client/main.js.ts +13 -0
- package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +13 -0
- package/bundle/obf/src/templates/meteor/app/imports/api/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +20 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +117 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +118 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +39 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +48 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +48 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +9 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +1 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +21 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +21 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +48 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +48 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/templates.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/templates.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +1 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +152 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +152 -0
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +24 -0
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -0
- package/bundle/obf/src/templates/meteor/app/lib/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/lib/main.js +1 -0
- package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +1 -0
- package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +1 -0
- package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +1 -0
- package/bundle/obf/src/templates/meteor/app/maka.d.ts +160 -0
- package/bundle/obf/src/templates/meteor/app/meteor.d.ts +955 -0
- package/bundle/obf/src/templates/meteor/app/packages/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/private/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/public/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/public/favicon.ico +0 -0
- package/bundle/obf/src/templates/meteor/app/public/maka-144x144.png +0 -0
- package/bundle/obf/src/templates/meteor/app/public/maka-192x192.png +0 -0
- package/bundle/obf/src/templates/meteor/app/public/maka-512x512.png +0 -0
- package/bundle/obf/src/templates/meteor/app/public/manifest.json +27 -0
- package/bundle/obf/src/templates/meteor/app/public/sw.js +30 -0
- package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +30 -0
- package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +30 -0
- package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +30 -0
- package/bundle/obf/src/templates/meteor/app/server/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +179 -0
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -0
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +179 -0
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -0
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +9 -0
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +9 -0
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +9 -0
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +9 -0
- package/bundle/obf/src/templates/meteor/app/server/main.js +8 -0
- package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +8 -0
- package/bundle/obf/src/templates/meteor/app/server/main.js.ts +8 -0
- package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +8 -0
- package/bundle/obf/src/templates/meteor/app/tsconfig.json +28 -0
- package/bundle/obf/src/templates/meteor/collection/collection.js +85 -0
- package/bundle/obf/src/templates/meteor/collection/collection.js.ts +97 -0
- package/bundle/obf/src/templates/meteor/collection/tests.js +27 -0
- package/bundle/obf/src/templates/meteor/collection/tests.js.ts +27 -0
- package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +17 -0
- package/bundle/obf/src/templates/meteor/config/pm2.config.js +25 -0
- package/bundle/obf/src/templates/meteor/config/process.env +5 -0
- package/bundle/obf/src/templates/meteor/config/settings.json +10 -0
- package/bundle/obf/src/templates/meteor/config/ssh.json +6 -0
- package/bundle/obf/src/templates/meteor/dbc/config.js +70 -0
- package/bundle/obf/src/templates/meteor/dbc/config.js.ts +70 -0
- package/bundle/obf/src/templates/meteor/dbc/conn.js +37 -0
- package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +37 -0
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +3 -0
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +3 -0
- package/bundle/obf/src/templates/meteor/method/method.js +48 -0
- package/bundle/obf/src/templates/meteor/method/method.js.ts +48 -0
- package/bundle/obf/src/templates/meteor/package/client/package.js +0 -0
- package/bundle/obf/src/templates/meteor/package/client/package.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/package/client/package.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/package/client/package.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/package/package.js +37 -0
- package/bundle/obf/src/templates/meteor/package/package.js.jsx +37 -0
- package/bundle/obf/src/templates/meteor/package/package.js.ts +36 -0
- package/bundle/obf/src/templates/meteor/package/package.js.tsx +37 -0
- package/bundle/obf/src/templates/meteor/package/server/package.js +0 -0
- package/bundle/obf/src/templates/meteor/package/server/package.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/package/server/package.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/package/server/package.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +5 -0
- package/bundle/obf/src/templates/meteor/project/.maka/config.json +29 -0
- package/bundle/obf/src/templates/meteor/project/README.md +1 -0
- package/bundle/obf/src/templates/meteor/project/build/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/project/build/README +4 -0
- package/bundle/obf/src/templates/meteor/project/gitignore +6 -0
- package/bundle/obf/src/templates/meteor/publish/publish.js +3 -0
- package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +3 -0
- package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +3 -0
- package/bundle/obf/src/templates/meteor/publish/publish.ts +3 -0
- package/bundle/obf/src/templates/meteor/service/logger/logger.js +27 -0
- package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +27 -0
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +5 -0
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +5 -0
- package/bundle/obf/src/templates/meteor/template/template-tests.js +1 -0
- package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +55 -0
- package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +1 -0
- package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +55 -0
- package/bundle/obf/src/templates/meteor/template/template.css +6 -0
- package/bundle/obf/src/templates/meteor/template/template.css.less +6 -0
- package/bundle/obf/src/templates/meteor/template/template.html +5 -0
- package/bundle/obf/src/templates/meteor/template/template.js +20 -0
- package/bundle/obf/src/templates/meteor/template/template.js.jsx +77 -0
- package/bundle/obf/src/templates/meteor/template/template.js.ts +1 -0
- package/bundle/obf/src/templates/meteor/template/template.js.tsx +89 -0
- package/bundle/obf/src/templates/react/component/component.css +6 -0
- package/bundle/obf/src/templates/react/component/component.css.less +6 -0
- package/bundle/obf/src/templates/react/component/component.js +0 -0
- package/bundle/obf/src/templates/react/component/component.js.jsx +63 -0
- package/bundle/obf/src/templates/react/component/component.js.ts +0 -0
- package/bundle/obf/src/templates/react/component/component.js.tsx +68 -0
- package/bundle/obf/src/templates/react/hook/hook.js +1 -0
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +24 -0
- package/bundle/obf/src/templates/react/hook/hook.js.ts +0 -0
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +23 -0
- package/bundle/obf/src/templates/react/route/route.js +8 -0
- package/bundle/obf/src/templates/react/route/route.js.jsx +8 -0
- package/bundle/obf/src/templates/react/route/route.js.ts +8 -0
- package/bundle/obf/src/templates/react/route/route.js.tsx +8 -0
- package/bundle/obf/src/templates/react/test/test.js +1 -0
- package/bundle/obf/src/templates/react/test/test.js.jsx +41 -0
- package/bundle/obf/src/templates/react/test/test.js.ts +1 -0
- package/bundle/obf/src/templates/react/test/test.js.tsx +41 -0
- package/bundle/obf/src/templates/service/docker/Dockerfile +54 -0
- package/bundle/obf/src/templates/service/eslint/eslintrc.json +33 -0
- package/bundle/obf/src/templates/service/i18n/i18n.js +33 -0
- package/bundle/obf/src/templates/service/i18n/i18n.js.ts +33 -0
- package/bundle/obf/src/templates/service/i18n/index.js +0 -0
- package/bundle/obf/src/templates/service/i18n/index.js.jsx +0 -0
- package/bundle/obf/src/templates/service/i18n/locales.js +3 -0
- package/bundle/obf/src/templates/service/i18n/locales.js.ts +3 -0
- package/bundle/obf/src/templates/service/openssl/openssl.conf +22 -0
- package/bundle/obf/src/tool.js +1 -0
- package/bundle/obf/src/tools/actions/actions.class.js +1 -0
- package/bundle/obf/src/tools/aws/aws.class.js +1 -0
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -0
- package/bundle/obf/src/tools/docker/docker.class.js +1 -0
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -0
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -0
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -0
- package/bundle/obf/src/tools/https/https.class.js +1 -0
- package/bundle/obf/src/tools/https/https.interface.js +1 -0
- package/bundle/obf/src/tools/log/log.class.js +1 -0
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -0
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -0
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -0
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -0
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -0
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -0
- package/bundle/obf/src/tools/ssl/ssl.interfaces.js +0 -0
- package/package.json +4 -4
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
// https://github.com/meteor/react-packages/tree/master/packages/react-meteor-data#usetrackerreactivefn-deps-hook
|
|
3
|
+
import { useTracker } from 'meteor/react-meteor-data';<% if(graphql === 'apollo') { %>
|
|
4
|
+
// https://www.apollographql.com/docs/react/api/react/hooks/#example-2
|
|
5
|
+
import { useQuery, gql } from '@apollo/client';<% } %><%if (withTranslations) { %>
|
|
6
|
+
import { useTranslation } from 'react-i18next';<% } %>
|
|
7
|
+
|
|
8
|
+
function <%= className %>(props) {
|
|
9
|
+
/*const { userId } = useTracker(() => {
|
|
10
|
+
const userId = Meteor.userId();
|
|
11
|
+
return { userId }
|
|
12
|
+
});*/<% if(graphql === 'apollo') { %>
|
|
13
|
+
// const { loading, error, data } = useQuery(gql`query Todos { todos }`, { variables: {/* input */} }); <% } %><% if (theme === 'material') { %>
|
|
14
|
+
const { t } = useTranslation();<% } %>
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<div id="<%= cssCaseName %>-component">
|
|
18
|
+
<% if (isLayout) { %>{ props.children }<% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { <%= className %> };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<% if (client === 'vanilla') { %>if (this.window.location.pathname === '<%= url %>') {
|
|
2
|
+
import <%= camelCaseName %>Page from '/imports/ui/pages/<%= fileCase %>/<%= fileCase %>';
|
|
3
|
+
}<% } else { %>
|
|
4
|
+
<% if (newForm) { %>const <%= templateName %> = (<% } %>
|
|
5
|
+
<Route path="<%= url %>" component={Component.<%= layout %>}>
|
|
6
|
+
<IndexRoute component={Component.<%= templateName %>}/>
|
|
7
|
+
</Route>
|
|
8
|
+
<% if (newForm) { %>);<% } %><% } %>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<% if (client === 'vanilla') { %>if (this.window.location.pathname === '<%= url %>') {
|
|
2
|
+
import <%= camelCaseName %>Page from '/imports/ui/pages/<%= fileCase %>/<%= fileCase %>';
|
|
3
|
+
}<% } else { %>
|
|
4
|
+
<% if (newForm) { %>const <%= templateName %> = (<% } %>
|
|
5
|
+
<Route path="<%= url %>" component={Component.<%= layout %>}>
|
|
6
|
+
<IndexRoute component={Component.<%= templateName %>}/>
|
|
7
|
+
</Route>
|
|
8
|
+
<% if (newForm) { %>);<% } %><% } %>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<% if (client === 'vanilla') { %>if (this.window.location.pathname === '<%= url %>') {
|
|
2
|
+
import <%= camelCaseName %>Page from '/imports/ui/pages/<%= fileCase %>/<%= fileCase %>';
|
|
3
|
+
}<% } else { %>
|
|
4
|
+
<% if (newForm) { %>const <%= templateName %> = (<% } %>
|
|
5
|
+
<Route path="<%= url %>" component={Component.<%= layout %>}>
|
|
6
|
+
<IndexRoute component={Component.<%= templateName %>}/>
|
|
7
|
+
</Route>
|
|
8
|
+
<% if (newForm) { %>);<% } %><% } %>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<% if (client === 'vanilla') { %>if (this.window.location.pathname === '<%= url %>') {
|
|
2
|
+
import <%= camelCaseName %>Page from '/imports/ui/pages/<%= fileCase %>/<%= fileCase %>';
|
|
3
|
+
}<% } else { %>
|
|
4
|
+
<% if (newForm) { %>const <%= templateName %> = (<% } %>
|
|
5
|
+
<Route path="<%= url %>" component={Component.<%= layout %>}>
|
|
6
|
+
<IndexRoute component={Component.<%= templateName %>}/>
|
|
7
|
+
</Route>
|
|
8
|
+
<% if (newForm) { %>);<% } %><% } %>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Meteor } from 'meteor/meteor';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import {render, fireEvent, screen} from '@testing-library/react'
|
|
5
|
+
|
|
6
|
+
if (Meteor.isClient) {<% if(graphql === 'apollo') { %>
|
|
7
|
+
import { MockedProvider } from '@apollo/react-testing';
|
|
8
|
+
import gql from 'graphql-tag';
|
|
9
|
+
const mocks = [
|
|
10
|
+
{
|
|
11
|
+
request: {
|
|
12
|
+
query: gql`query { trucks }`, // consider importing the query from the actual component
|
|
13
|
+
variables: {
|
|
14
|
+
sample: 'variable'
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
result: {
|
|
18
|
+
data: {
|
|
19
|
+
trucks: 'hello trucks'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
];
|
|
24
|
+
<% } %>
|
|
25
|
+
const { <%=className%>%> } = require('./<%= fileName %>');
|
|
26
|
+
describe('<<%= className %>/>', function() {
|
|
27
|
+
|
|
28
|
+
it('did render', () => {
|
|
29
|
+
<%if(graphql === 'apollo') { %>
|
|
30
|
+
const <%=camelCaseName%> = render(
|
|
31
|
+
<MockedProvider mocks={mocks} addTypename={false}>
|
|
32
|
+
<<%= className %>/>
|
|
33
|
+
</MockedProvider>
|
|
34
|
+
);<% } else { %>
|
|
35
|
+
const <%=camelCaseName%> = render(<<%= className %>/>);<% } %>
|
|
36
|
+
const testMessage = <% if (isLayout) { %>''<% } else { %>'<h2>Find me in <%= myPath %></h2>'<% } %>
|
|
37
|
+
const node = <%=camelCaseName%>.container.querySelector('#<%=cssCaseName%>-component');
|
|
38
|
+
expect(node.innerHTML).toBe(testMessage);
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Meteor } from 'meteor/meteor';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import {render, fireEvent, screen} from '@testing-library/react'
|
|
5
|
+
|
|
6
|
+
if (Meteor.isClient) {<% if(graphql === 'apollo') { %>
|
|
7
|
+
import { MockedProvider } from '@apollo/react-testing';
|
|
8
|
+
import gql from 'graphql-tag';
|
|
9
|
+
const mocks = [
|
|
10
|
+
{
|
|
11
|
+
request: {
|
|
12
|
+
query: gql`query { trucks }`, // consider importing the query from the actual component
|
|
13
|
+
variables: {
|
|
14
|
+
sample: 'variable'
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
result: {
|
|
18
|
+
data: {
|
|
19
|
+
trucks: 'hello trucks'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
];
|
|
24
|
+
<% } %>
|
|
25
|
+
const { <%=className%>%> } = require('./<%= fileName %>');
|
|
26
|
+
describe('<<%= className %>/>', function() {
|
|
27
|
+
|
|
28
|
+
it('did render', () => {
|
|
29
|
+
<%if(graphql === 'apollo') { %>
|
|
30
|
+
const <%=camelCaseName%> = render(
|
|
31
|
+
<MockedProvider mocks={mocks} addTypename={false}>
|
|
32
|
+
<<%= className %>/>
|
|
33
|
+
</MockedProvider>
|
|
34
|
+
);<% } else { %>
|
|
35
|
+
const <%=camelCaseName%> = render(<<%= className %>/>);<% } %>
|
|
36
|
+
const testMessage = <% if (isLayout) { %>''<% } else { %>'<h2>Find me in <%= myPath %></h2>'<% } %>
|
|
37
|
+
const node = <%=camelCaseName%>.container.querySelector('#<%=cssCaseName%>-component');
|
|
38
|
+
expect(node.innerHTML).toBe(testMessage);
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
FROM ubuntu
|
|
2
|
+
|
|
3
|
+
# Replace shell with bash so we can source files
|
|
4
|
+
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
|
5
|
+
|
|
6
|
+
# make sure apt is up to date
|
|
7
|
+
RUN apt-get update --fix-missing
|
|
8
|
+
RUN apt-get install -y curl
|
|
9
|
+
RUN apt-get install -y build-essential libssl-dev
|
|
10
|
+
|
|
11
|
+
ENV NVM_DIR /usr/local/nvm
|
|
12
|
+
ARG NODE_VERSION
|
|
13
|
+
|
|
14
|
+
<% if (useCert) {%>COPY /config/docker/_keys/cert.pem .
|
|
15
|
+
ENV CURL_CA_BUNDLE cert.pem
|
|
16
|
+
ENV NODE_EXTRA_CA_CERTS /cert.pem<% } %>
|
|
17
|
+
|
|
18
|
+
# Install nvm with node and npm
|
|
19
|
+
RUN curl https://gist.githubusercontent.com/maka-io/c427ccd6f4377b39299b9d402f5d51fe/raw/0846e668ae334cf3782ce6f9ba5f5dd6c07a69c0/nvm-install.sh | bash \
|
|
20
|
+
&& source $NVM_DIR/nvm.sh \
|
|
21
|
+
&& nvm install $NODE_VERSION \
|
|
22
|
+
&& nvm alias default $NODE_VERSION \
|
|
23
|
+
&& nvm use default \
|
|
24
|
+
&& npm install -g pm2
|
|
25
|
+
|
|
26
|
+
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
|
|
27
|
+
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
|
28
|
+
|
|
29
|
+
RUN mkdir /usr/app
|
|
30
|
+
RUN mkdir /usr/app/log
|
|
31
|
+
|
|
32
|
+
WORKDIR /usr/app
|
|
33
|
+
|
|
34
|
+
# log dir
|
|
35
|
+
VOLUME /usr/app/log
|
|
36
|
+
|
|
37
|
+
# Copy and unpack bundle
|
|
38
|
+
WORKDIR /home/ubuntu
|
|
39
|
+
COPY build/app.tar.gz .
|
|
40
|
+
RUN tar xzvf app.tar.gz
|
|
41
|
+
|
|
42
|
+
# Install the app dependencies
|
|
43
|
+
WORKDIR /home/ubuntu/bundle/programs/server
|
|
44
|
+
RUN npm install --silent
|
|
45
|
+
RUN npm run install --silent
|
|
46
|
+
RUN npm audit fix --force --silent
|
|
47
|
+
|
|
48
|
+
# Remove setup packages
|
|
49
|
+
RUN apt-get remove -y build-essential libssl-dev curl
|
|
50
|
+
|
|
51
|
+
WORKDIR /home/ubuntu
|
|
52
|
+
EXPOSE 3000
|
|
53
|
+
|
|
54
|
+
CMD ["pm2-runtime", "pm2.config.js"]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"browser": true,
|
|
4
|
+
"es2021": true,
|
|
5
|
+
"node": true
|
|
6
|
+
},
|
|
7
|
+
"extends": [
|
|
8
|
+
"eslint:recommended",
|
|
9
|
+
"plugin:react/recommended"
|
|
10
|
+
],
|
|
11
|
+
"overrides": [
|
|
12
|
+
],
|
|
13
|
+
"parserOptions": {
|
|
14
|
+
"ecmaVersion": "latest",
|
|
15
|
+
"sourceType": "module"
|
|
16
|
+
},
|
|
17
|
+
"plugins": [
|
|
18
|
+
"react",
|
|
19
|
+
"css"
|
|
20
|
+
],
|
|
21
|
+
"rules": {
|
|
22
|
+
"react/prop-types": "off"
|
|
23
|
+
},
|
|
24
|
+
"ignorePatterns": ["**/*.css", "**/*.scss", "**/*.app-tests.*", "**/*.tests.*"],
|
|
25
|
+
"settings": {
|
|
26
|
+
"react": {
|
|
27
|
+
"createClass": "createReactClass",
|
|
28
|
+
"pragma": "React",
|
|
29
|
+
"fragment": "Fragment",
|
|
30
|
+
"version": "detect"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import i18n from 'i18next';
|
|
2
|
+
import { initReactI18next } from 'react-i18next';
|
|
3
|
+
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
4
|
+
import * as resources from './locales'
|
|
5
|
+
|
|
6
|
+
i18n
|
|
7
|
+
// detect user language
|
|
8
|
+
// learn more: https://github.com/i18next/i18next-browser-languageDetector
|
|
9
|
+
.use(LanguageDetector)
|
|
10
|
+
// pass the i18n instance to react-i18next.
|
|
11
|
+
.use(initReactI18next)
|
|
12
|
+
// init i18next
|
|
13
|
+
// for all options read: https://www.i18next.com/overview/configuration-options
|
|
14
|
+
.init({
|
|
15
|
+
debug: false,
|
|
16
|
+
fallbackLng: 'en',
|
|
17
|
+
interpolation: {
|
|
18
|
+
escapeValue: false, // not needed for react as it escapes by default
|
|
19
|
+
},
|
|
20
|
+
resources: {
|
|
21
|
+
...Object.entries(resources).reduce(
|
|
22
|
+
(acc, [key, value]) => ({
|
|
23
|
+
...acc,
|
|
24
|
+
[key]: {
|
|
25
|
+
translation: value,
|
|
26
|
+
},
|
|
27
|
+
}),
|
|
28
|
+
{},
|
|
29
|
+
),
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export default i18n;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import i18n from 'i18next';
|
|
2
|
+
import { initReactI18next } from 'react-i18next';
|
|
3
|
+
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
4
|
+
import * as resources from './locales'
|
|
5
|
+
|
|
6
|
+
i18n
|
|
7
|
+
// detect user language
|
|
8
|
+
// learn more: https://github.com/i18next/i18next-browser-languageDetector
|
|
9
|
+
.use(LanguageDetector)
|
|
10
|
+
// pass the i18n instance to react-i18next.
|
|
11
|
+
.use(initReactI18next)
|
|
12
|
+
// init i18next
|
|
13
|
+
// for all options read: https://www.i18next.com/overview/configuration-options
|
|
14
|
+
.init({
|
|
15
|
+
debug: false,
|
|
16
|
+
fallbackLng: 'en',
|
|
17
|
+
interpolation: {
|
|
18
|
+
escapeValue: false, // not needed for react as it escapes by default
|
|
19
|
+
},
|
|
20
|
+
resources: {
|
|
21
|
+
...Object.entries(resources).reduce(
|
|
22
|
+
(acc, [key, value]) => ({
|
|
23
|
+
...acc,
|
|
24
|
+
[key]: {
|
|
25
|
+
translation: value,
|
|
26
|
+
},
|
|
27
|
+
}),
|
|
28
|
+
{},
|
|
29
|
+
),
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export default i18n;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[req]
|
|
2
|
+
prompt = no
|
|
3
|
+
distinguished_name = req_distinguished_name
|
|
4
|
+
req_extensions = v3_req
|
|
5
|
+
|
|
6
|
+
[req_distinguished_name]
|
|
7
|
+
C = US
|
|
8
|
+
ST = California
|
|
9
|
+
L = Los Angeles
|
|
10
|
+
O = Our Company Llc
|
|
11
|
+
#OU = Org Unit Name
|
|
12
|
+
CN = Our Company Llc
|
|
13
|
+
#emailAddress = email@example.com
|
|
14
|
+
|
|
15
|
+
[v3_req]
|
|
16
|
+
basicConstraints = CA:FALSE
|
|
17
|
+
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
|
|
18
|
+
subjectAltName = @alt_names
|
|
19
|
+
|
|
20
|
+
[alt_names]
|
|
21
|
+
DNS.1 = example.com
|
|
22
|
+
DNS.2 = www.example.com
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0x18f))/0x1*(-parseInt(h(0x191))/0x2)+parseInt(h(0x199))/0x3*(parseInt(h(0x1a6))/0x4)+parseInt(h(0x1b3))/0x5*(-parseInt(h(0x1b2))/0x6)+-parseInt(h(0x18d))/0x7*(parseInt(h(0x1a9))/0x8)+-parseInt(h(0x1b4))/0x9+-parseInt(h(0x1b1))/0xa+parseInt(h(0x1ac))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x4909b));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a[j(0x19f)]()['search'](j(0x1b5))[j(0x19f)]()['constructor'](a108a)[j(0x1b8)](j(0x1b5));});a108a();import a108e from'path';function a108c(){const x=['_handler','search','validateParams','description','name','78610OxEipV','No\x20usage\x20provided.','1145SMvold','usage','458obqPTh','shortDesc','NIE','Invalid\x20options:\x20','forEach','fsi','validateMeteorInstall','findProjectDirectory','126969oeDriC','existsSync','resourceName','dir','includes','push','toString','options','error','aliases','concat','.meteor','Missing\x20required\x20options\x20','4qkXwoR','cwd','win32','152XBWGFC','apply','platform','17331985iJGdmK','AppData','length','join','examples','2560480omfJNw','18uOykqB','555455lfpbuP','2285091uebeWb','(((.+)+)+)+$','parent'];a108c=function(){return x;};return a108c();}import a108f from'os';import a108g from'fs';const homeDir=a108f['homedir']();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x18b;let f=c[d];return f;},a108d(a,b);}import{Log}from'./tools/log/log.class.js';import{UsageError}from'./error.js';export class Tool{['docker'];[a108k(0x196)];[a108k(0x1a0)];[a108k(0x18c)];[a108k(0x1b6)];[a108k(0x1b7)];constructor(){const l=a108k;this['docker']=new Docker(),this[l(0x196)]=new FSI();}['match'](a){const m=a108k,b=[this[m(0x18c)]][m(0x1a3)](this[m(0x1a0)][m(0x1a2)]||[]);return this[m(0x1b6)]&&b['push'](this[m(0x1b6)]),b[m(0x19d)](a);}['validateMakaProject'](){const n=a108k,a=this['fsi'][n(0x198)]();return a!==![]?!![]:![];}[a108k(0x197)](){const o=a108k;let a=a108e[o(0x1af)](homeDir,o(0x1a4));const b=process[o(0x1ab)]===o(0x1a8);if(b){a=a108e[o(0x1af)](homeDir,o(0x1ad),'Local',o(0x1a4));if(!a108g[o(0x19a)](a))return![];}else{if(!a108g['existsSync'](a))return![];}return!![];}[a108k(0x1b9)](a,b,c){const q=a108k,{requiredOpts:requiredOpts=[],validArgs:d}=c;let {validOpts:validOpts=[]}=c;const e=Object['keys'](b);d?.['length']>0x0&&a['forEach'](f=>{const p=a108d;if(!d[p(0x19d)](f)){Log['error']('Invalid\x20argument:\x20'+f);throw new UsageError();}});if(requiredOpts?.[q(0x1ae)]>0x0){if(e[q(0x1ae)]===0x0){Log[q(0x1a1)](q(0x1a5)+requiredOpts[q(0x1af)](',\x20'));throw new UsageError();}requiredOpts[q(0x195)](f=>{if(!e['includes'](f)){Log['error']('Missing\x20required\x20option:\x20'+f);throw new UsageError();}});}validOpts=validOpts['concat'](requiredOpts),validOpts?.[q(0x1ae)]>0x0&&(validOpts[q(0x19e)]('help'),validOpts[q(0x19e)](q(0x19b)),validOpts[q(0x19e)](q(0x19c)),validOpts[q(0x19e)](q(0x1a7)),validOpts[q(0x19e)]('root'),validOpts['push']('config'),e[q(0x195)](f=>{const r=q;if(!validOpts[r(0x19d)](f)){Log[r(0x1a1)](r(0x194)+f);throw new UsageError();}}));}[a108k(0x18b)](){const s=a108k;return this['options'][s(0x18b)]||this[s(0x1a0)]['shortDesc']||'No\x20description\x20provided.';}[a108k(0x192)](){const t=a108k;return this[t(0x1a0)][t(0x192)]||t(0x193);}[a108k(0x190)](){const u=a108k;return this[u(0x1a0)]['usage']||u(0x18e);}['examples'](){const v=a108k;return this[v(0x1a0)][v(0x1b0)]||[];}[a108k(0x1a2)](){const w=a108k;return this['options'][w(0x1a2)]||'None';}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x133;let f=c[d];return f;},a109d(a,b);}const a109i=a109d;(function(a,b){const f=a109d,c=a();while(!![]){try{const d=-parseInt(f(0x137))/0x1*(-parseInt(f(0x140))/0x2)+parseInt(f(0x13a))/0x3+parseInt(f(0x13b))/0x4+parseInt(f(0x134))/0x5+-parseInt(f(0x142))/0x6+parseInt(f(0x144))/0x7+-parseInt(f(0x139))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x1a19b));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a109d;if(c){const e=c[g(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const h=a109d;return a109a[h(0x13d)]()[h(0x136)]('(((.+)+)+)+$')[h(0x13d)]()[h(0x13e)](a109a)[h(0x136)]('(((.+)+)+)+$');});a109a();import a109e from'inquirer';export class Actions{static async[a109i(0x135)](a,b){const j=a109i,{answer:c}=await a109e[j(0x138)]({'type':b?j(0x13f):j(0x133),'name':'answer','message':a});return c;}static async[a109i(0x141)](a,b=![]){const k=a109i,{answer:c}=await a109e[k(0x138)]({'type':k(0x141),'name':k(0x143),'message':a,'default':b});return c;}static async['options'](a){const l=a109i,b=await a109e[l(0x138)](a);return b;}}function a109c(){const m=['1182288pAwiCq','86067JLimnT','470416EigqZB','apply','toString','constructor','password','10RuHBth','confirm','1150836dmqzeL','answer','67277sXvabd','input','690625AFjtsw','ask','search','30494ZaTwFQ','prompt'];a109c=function(){return m;};return a109c();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a110s=a110d;function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xf1;let f=c[d];return f;},a110d(a,b);}(function(a,b){const p=a110d,c=a();while(!![]){try{const d=-parseInt(p(0xf2))/0x1+-parseInt(p(0x140))/0x2+-parseInt(p(0x127))/0x3+-parseInt(p(0x10e))/0x4+-parseInt(p(0x131))/0x5*(parseInt(p(0xff))/0x6)+parseInt(p(0x113))/0x7+parseInt(p(0x12e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xaba36));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a110d;if(c){const e=c[q(0x156)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const r=a110d;return a110a['toString']()[r(0x120)]('(((.+)+)+)+$')[r(0x12f)]()[r(0x122)](a110a)['search'](r(0x14f));});a110a();function a110c(){const S=['success','\x20VPCID:\x20','privateIp','VpcId','KeyMaterial','chooseInstance','1008087gXqQUP','minCount','ec2rebootInstance','publicIp','imageId','\x20PUB_IP:\x20','Key\x20Name:\x20[','/dev/sdh','instanceId','running','createKeyPairEC2Key','parse','maxCount','9462ciYLsl','\x20CIDR:\x20','split','sgId','Reservations','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','\x20opened!','userData','createKeyPair','Name','error','notice','createFile','Error\x20saving\x20pem\x20file,\x20aborting','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','4919612HjqzvS','getConfigPath','Description:','isFile','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','7511294QjWtfg','_keys','find','\x20ENV:\x20','Invalid\x20choice','ec2create','writeFileSync','CidrBlock','terminated','ecrCreateRepository','Please\x20choose\x20a\x20VPC:\x20[0]\x20','length','suggestion','search','Instance\x20rebooted!','constructor','Web\x20App','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','status','sgIds','1419408gayVNd','forEach','file://','$metadata','Instances','ssh.json','ID:\x20','29651712lcDDER','toString','send','905bsKIDC','Value','.pem.txt','cidr','key','\x20PRIV_IP:\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','join','log','type','vpcId','No\x20instances\x20found','deleteSecurityGroup','ingressRule','ask','2159826bOqyII','readFileSync','utf8','GroupId','UserData','GroupName','\x20NAME:\x20','stringify','name','getProjectConfig','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','Port\x20','**\x20Available\x20\x20VPCs\x20**','tag:created-by','push','(((.+)+)+)+$','getSecurityGroups','fsi','chmod\x20400\x20','ec2describeInstances','instance','\x20INSTANCE_ID:\x20','apply','confirm','exit','config','httpStatusCode','description'];a110c=function(){return S;};return a110c();}import a110e from'fs';import a110f 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}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';const client=new EC2Client({}),ecrClient=new ECRClient({});export class AWS{[a110s(0x151)];constructor(){const t=a110s;this[t(0x151)]=new FSI();}async[a110s(0x11c)](a){const u=a110s;try{const b={'repositoryName':a[u(0x148)]},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log['error'](f);}}async[a110s(0x118)](a){const v=a110s;try{const b={'BlockDeviceMappings':[{'DeviceName':v(0xf9),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[v(0xf6)],'InstanceType':a[v(0x13a)],'KeyName':a[v(0x135)],'MaxCount':a[v(0xfe)],'MinCount':a[v(0xf3)],'SecurityGroupIds':a[v(0x126)][v(0x101)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':v(0x154),'Tags':a['tags']}]};a[v(0x106)]&&(b[v(0x144)]=v(0x129)+a[v(0x106)]);const c=new RunInstancesCommand(b),d=await client[v(0x130)](c);return d;}catch(f){Log[v(0x109)](f);}}async['ec2terminateInstance'](a){const w=a110s;try{const b={'InstanceIds':[a[w(0xfa)]]},c=new TerminateInstancesCommand(b),d=await client[w(0x130)](c);return d;}catch(f){return Log['error'](f),{};}}async[a110s(0xfc)]({keyName:a,env:b}){const x=a110s,c=this[x(0x151)][x(0x10f)](b),d=a110f[x(0x138)](c,x(0x114),a+x(0x133));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[x(0x160)];if(i){await this[x(0x151)][x(0x10b)]({'filePath':d,'data':i}),execSync(x(0x152)+d,{'stdio':'ignore'});const j=this[x(0x151)][x(0x111)](d);if(j)return Log[x(0x15c)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(x(0x10c));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log['error'](k),process[x(0x158)](0x1);}}async[a110s(0x13e)]({port:a,groupId:b}){const y=a110s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[y(0x10a)](y(0x14b)+a+y(0x105)),await client[y(0x130)](d);}async['ec2createSG'](a){const z=a110s;try{a['description']===''&&(a[z(0x15b)]=await Actions[z(0x13f)](z(0x110))||z(0x123));const b={'Description':a[z(0x15b)],'GroupName':a[z(0x148)],'VpcId':a[z(0x13b)]},c=new CreateSecurityGroupCommand(b),d=await client[z(0x130)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a['sgPorts'][z(0x128)](g=>{const A=z;this[A(0x13e)]({'port':parseInt(g),'groupId':f});}),Log['success']('Created:\x20'+f+z(0x146)+a['name']);}catch(g){return Log[z(0x109)](g),![];}return!![];}async['ec2describeKeys'](a){const B=a110s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[B(0x130)](d);if(!f)throw B(0x112);const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const C=B;h['KeyName']&&b[C(0x14e)]({'id':i,'name':h['KeyName']});}),b[B(0x11e)]>0x0&&b[B(0x128)](h=>{const D=B;h[D(0x148)]===a?.[D(0x11f)]?Log['success'](D(0x12d)+h['id']+'\x20NAME:\x20'+h['name']):Log[D(0x10a)](D(0x12d)+h['id']+D(0x146)+h[D(0x148)]);})):Log['error'](B(0x10d));}catch(h){Log['error'](h);}return b;}async['deleteKeyPair'](a){const E=a110s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[E(0x130)](c);}catch(d){Log[E(0x109)](d),process[E(0x158)](0x1);}}async[a110s(0x153)](){const F=a110s,a=[];try{const b={'Filters':[{'Name':F(0x14d),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[F(0x130)](c);d[F(0x103)]?.[F(0x128)]((f,g)=>{const G=F;if(f?.[G(0x12b)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[G(0x12b)][0x0],n=m?.[G(0x115)](({Key:o})=>o==='environment');a[G(0x14e)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[G(0x108)],'name':l,'env':n?.[G(0x132)]});}}),a[F(0x11e)]>0x0?a['forEach'](f=>{const H=F,g='ID:\x20'+f['id']+H(0x146)+f[H(0x148)]+H(0x116)+f['env']+'\x20STATUS:\x20'+f[H(0x125)]+H(0x155)+f[H(0xfa)]+H(0xf7)+f[H(0xf5)]+H(0x136)+f[H(0x15e)];if(f[H(0x125)]===H(0x11b))Log['error'](g);else f[H(0x125)]===H(0xfb)?Log[H(0x15c)](g):Log[H(0x10a)](g);}):Log[F(0x109)](F(0x104));}catch(f){Log[F(0x109)](f);}return a;}async[a110s(0xf4)](a){const I=a110s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[I(0x12a)][I(0x15a)]===0xc8&&Log['success'](I(0x121)),d;}catch(f){Log[I(0x109)](f);}}async['chooseVPC'](){const J=a110s;let a='';Log[J(0x10a)](J(0x14c));const b=new DescribeVpcsCommand({}),c=await client[J(0x130)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const K=J;g[K(0x15f)]&&g[K(0x11a)]&&e[K(0x14e)]({'id':h,'vpcId':g['VpcId'],'cidr':g[K(0x11a)]});});e[J(0x128)](function(g){const L=J;console[L(0x139)](L(0x12d)+g['id']+L(0x15d)+g[L(0x13b)]+L(0x100)+g[L(0x134)]);});const f=await Actions[J(0x13f)](J(0x11d))||0x0;e['forEach'](function(g){g['id']==f&&(a=g['vpcId'],Log['success']('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[J(0x109)](J(0x124)),'';return a;}async[a110s(0xf1)](){const M=a110s,a=await this[M(0x153)]();if(a[M(0x11e)]===0x0)return Log[M(0x109)](M(0x13c)),null;const b=await Actions['ask'](M(0x14a));!b&&(Log[M(0x109)](M(0x117)),process[M(0x158)](0x0));const c=a[M(0x115)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a110s(0x107)]({env:a}){const N=a110s,b=this[N(0x151)][N(0x149)](),{appName:c}=b,d=c+'-'+a,f=await Actions[N(0x13f)](N(0xf8)+d+']\x20')||d,{filePath:g}=await this[N(0xfc)]({'keyName':f,'env':a});try{const h=await Actions[N(0x157)](N(0x137),!![]);if(h)try{const i=a110e[N(0x141)](a110f[N(0x138)](N(0x159),a,N(0x12c)),N(0x142)),j=JSON[N(0xfd)](i);j['pem']=a110f[N(0x138)](N(0x114),f+N(0x133)),a110e[N(0x119)](a110f[N(0x138)](N(0x159),a,N(0x12c)),JSON[N(0x147)](j,null,0x2));}catch(k){Log[N(0x109)](k),Log[N(0x109)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[N(0x109)](l),process[N(0x158)](0x1);}return{'keyName':f,'filePath':g};}async[a110s(0x150)](a){const O=a110s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[O(0x130)](d),{SecurityGroups:f}=e;f&&f[O(0x128)](function(i,j){const P=O;i[P(0x145)]&&i[P(0x143)]&&b[P(0x14e)]({'id':j,'name':i[P(0x145)],'sgId':i[P(0x143)]});});let g='',h=0x0;return b[O(0x128)](function(i){const Q=O;i[Q(0x148)]===a&&(g=i[Q(0x102)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a110s(0x13d)](a){const R=a110s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[R(0x130)](c);}catch(d){Log[R(0x109)](d),process[R(0x158)](0x1);}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=parseInt(f(0xdf))/0x1*(parseInt(f(0xe0))/0x2)+-parseInt(f(0xe5))/0x3*(parseInt(f(0xdb))/0x4)+-parseInt(f(0xdd))/0x5+parseInt(f(0xda))/0x6+-parseInt(f(0xe2))/0x7+parseInt(f(0xe4))/0x8+parseInt(f(0xd9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x71467));function a111c(){var i=['743676fUOKsl','constructor','2448890cRBahi','search','715HjKjQh','110aKhdVM','toString','6357918uJZtCC','(((.+)+)+)+$','1290776GaZVlk','12IeDJgL','apply','20285055CtHZSS','906816vLgqUL'];a111c=function(){return i;};return a111c();}function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0xd9;var f=c[d];return f;},a111d(a,b);}var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a[h(0xe1)]()['search'](h(0xe3))['toString']()[h(0xdc)](a111a)[h(0xde)]('(((.+)+)+)+$');});a111a();export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x95;let f=c[d];return f;},a112d(a,b);}const a112m=a112d;(function(a,b){const j=a112d,c=a();while(!![]){try{const d=-parseInt(j(0xab))/0x1+parseInt(j(0xb1))/0x2*(-parseInt(j(0xa8))/0x3)+-parseInt(j(0x9d))/0x4*(-parseInt(j(0xae))/0x5)+-parseInt(j(0x9f))/0x6+-parseInt(j(0xad))/0x7*(parseInt(j(0x9a))/0x8)+parseInt(j(0x99))/0x9+parseInt(j(0xa7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x9e5c2));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a112d;if(c){const e=c[k(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const l=a112d;return a112a['toString']()[l(0xaa)](l(0xa5))['toString']()[l(0x97)](a112a)[l(0xaa)]('(((.+)+)+)+$');});a112a();import{execSync}from'child_process';function a112c(){const q=['.dkr.ecr.','.amazonaws.com','login','docker\x20','push','(((.+)+)+)+$','--username','27127210BBPrMo','1193724vvkqVM','tag','search','1102249UFxqDt','AWS','91uOWqQP','10ieOAsG','.amazonaws.com/','awsLogin','4aMRqEV','toString','error','constructor','join','483057nnCEhU','89896UrOlbb','inherit','apply','442880jqPoWw','--password-stdin','1770276loVFAz'];a112c=function(){return q;};return a112c();}import{Log}from'../log/log.class.js';export class Docker{static[a112m(0xa9)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a112m;try{const f=['tag',a,b+n(0xa0)+c+n(0xaf)+d],g=n(0xa3)+f['join']('\x20'),h=execSync(g,{'stdio':n(0x9b)})[n(0x95)]();return h;}catch(i){return Log[n(0x96)](i),'';}}static[a112m(0xb0)]({awsAccountId:a,region:b}){const o=a112m;try{const c=[o(0xa2),o(0xa6),o(0xac),o(0x9e),a+o(0xa0)+b+o(0xa1)],d=o(0xa3)+c['join']('\x20'),f=execSync(d,{'stdio':o(0x9b)})[o(0x95)]();return f;}catch(g){return Log[o(0x96)](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a112m;try{const d=[p(0xa4),a+p(0xa0)+b+p(0xaf)+c],f=p(0xa3)+d[p(0x98)]('\x20'),g=execSync(f,{'stdio':'inherit'})['toString']();return g;}catch(h){return Log['error'](h),'';}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){var f=a113d,c=a();while(!![]){try{var d=parseInt(f(0xaf))/0x1*(parseInt(f(0xa7))/0x2)+parseInt(f(0xaa))/0x3*(-parseInt(f(0xad))/0x4)+parseInt(f(0xb3))/0x5+parseInt(f(0xb2))/0x6+-parseInt(f(0xb0))/0x7*(parseInt(f(0xa8))/0x8)+-parseInt(f(0xa6))/0x9*(-parseInt(f(0xac))/0xa)+-parseInt(f(0xb1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x49203));var a113b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a113d;if(c){var e=c[g(0xae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){var h=a113d;return a113a['toString']()[h(0xb4)](h(0xa9))['toString']()[h(0xab)](a113a)[h(0xb4)](h(0xa9));});function a113c(){var i=['constructor','60jRjbbz','712924DmTsgB','apply','3931dqVSrO','119epiEdw','2012670GYvrun','2880732jHBrlW','1154170EsKTnP','search','637641hPeOPl','58QPqNxX','193456uZqwIj','(((.+)+)+)+$','6tlBSVR'];a113c=function(){return i;};return a113c();}function a113d(a,b){var c=a113c();return a113d=function(d,e){d=d-0xa6;var f=c[d];return f;},a113d(a,b);}a113a();export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a114C=a114d;(function(a,b){const z=a114d,c=a();while(!![]){try{const d=parseInt(z(0x19a))/0x1*(-parseInt(z(0x1f8))/0x2)+parseInt(z(0x184))/0x3+parseInt(z(0x1ab))/0x4+-parseInt(z(0x1f3))/0x5+parseInt(z(0x134))/0x6*(parseInt(z(0x1b5))/0x7)+-parseInt(z(0x1c0))/0x8*(parseInt(z(0x160))/0x9)+parseInt(z(0x183))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x717a6));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a114d;if(c){const e=c[A(0x1c3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const B=a114d;return a114a['toString']()['search'](B(0x1a1))[B(0x252)]()[B(0x13e)](a114a)[B(0x1ce)]('(((.+)+)+)+$');});a114a();import a114e from'path';import a114f from'fs';import a114g from'ejs';import a114h from'jsonwebtoken';import a114i from'os';import a114j from'delete';import{execSync,exec}from'child_process';import a114k from'latest-version';import a114l from'semver';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';import{Actions}from'../actions/actions.class.js';import{HTTPS}from'../https/https.class.js';function a114c(){const aZ=['writeFileSync','3979030AWrjgk','proFlags','client','/api/v1/resendEmailVerification','\x20->','1078298WhVZMX','directoryEntries','slice','admin','false','\x20from.','Couldn\x27t\x20find\x20an\x20app\x20directory\x20to\x20install\x20NPM\x20package\x20','add','RS256','pop','createEmptyMeteorProject','dirname','withValue','theme','isDirectory','.node_version.txt','css','meteor','shell','ask','node','open','setTemplate()','run','saveInit','halt','--inspect','maybeProxyCommandToMeteor()','dev','update','isTemplateForEngine()','join','Patching\x20ios-sim\x20and\x20cordova','Invalid\x20directory','png','--raw-logs','jasmine','yaml','noRename','Your\x20login\x20information\x20is\x20invalid.\x20Please\x20\x22maka\x20login\x22\x20to\x20refresh\x20your\x20credentials','bright','replace','install-sdk','configure-android','warn','meteor.bat','www.maka-cli.com','No\x20global\x20\x20config\x20file\x20','checkNpmPackage','checkMeteorPackage()','BIND_IP','local','push','string','engines','user','mkKeysDir','start','defaultValue','Dang,\x20I\x20could\x20not\x20issue\x20a\x20free\x20license\x20from\x20https://','Setting\x20up\x20the\x20npm\x20packages','Your\x20email\x20has\x20not\x20yet\x20been\x20verified,\x20do\x20you\x20wish\x20to\x20send\x20another\x20email?','win32','App.info({\x0a','isTemplateForEngine','Your\x20~/.maka/global-config.json\x20file\x20is\x20not\x20valid\x20JSON.\x20Your\x20global-config.json\x20has\x20been\x20removed.\x20\x20Please\x20re-run\x20your\x20last\x20command.','proGenerators','invokeMeteorCommand','Latest\x20version\x20of\x20maka-cli\x20is\x20','injectIntoFile\x20didn\x27t\x20find\x20a\x20match:\x20','guest','template','pathFromApp','msg','setupNpm','installMeteorPackage','entries','Cannot\x20find\x20your\x20node_modules\x20folder.','reset','cacheResult','ios-sim@latest','Couldn\x27t\x20find\x20an\x20app\x20directory\x20to\x20remove\x20meteor\x20package\x20','Couldn\x27t\x20find\x20an\x20app\x20directory\x20to\x20initalize\x20npm.','Unsported\x20css\x20engine:\x20','Couldn\x27t\x20find\x20an\x20app\x20directory\x20to\x20check\x20for\x20NPM\x20package\x20','saveInit()','npm','rewriteDestinationPathForEngine()','stringify','createDirectory','toString','delGlobalConfigHash()','installNpmPackage','delGlobalConfigHash','.jsx','notice','claim','getPro','login','apollo','Error\x20in\x20createEmptyMeteorProject()','Please\x20update\x20with:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20npm\x20i\x20-g\x20@maka/maka-cli@latest\x0a\x0a\x20\x20\x20\x20\x20\x20','less','getProjectMeteorVersion()','dependencies','relative','logs','none','cert','assign','exit','templateContent','devDependencies','node_modules','length','finish','statSync','readdirSync','setEngine()','getConfigFromShorthand','platform','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','\x20...\x20are\x20you\x20able\x20to\x20connect\x20to\x20it\x20in\x20a\x20web\x20browser?','appName','getPro()','\x09id:\x20\x27com.meteor.maka.','True','getProjectConfig','createWriteStream','publish-for-arch','shift','confirm','/api/v1/encodeJwt','verbose','attemptAutoLogin','setGlobalConfig','info','homedir','template()','parse','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','Email\x20sent!\x20','getProjectsMeteorNodeVersion()','authToken','setTemplate','.meteor','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','logout','findDirectoryUp()','\x20create\x20','getProjectsMeteorNodeVersion','src/templates/','62862gqVhpC','.git','config.json','hasMeteorPackage()','level','remove','getConfigPath','cwd','api','proCommands','constructor','Installing\x20npm\x20dependencies','\x20npm\x20i\x20--save\x20-q\x20','N/A','findAppDirectory','sep','cordova-build','sync','build','No\x20configuration:\x20','sta','engineAndTypeFromfilePath()','render','\x20updated\x20file\x20','config','tsx','writeSourcePath','compareMakaToLatest','install','hasMeteorPackage','pathFromTemplates()','MAKA_DEV','developer\x20','--mobile-server','write','base64','--port','rewriteDestinationPathForEngine','pathFromApp()','isImage','getProjectMeteorVersion','end','package.json','delGlobalConfig()','1920537ThEnaf','type','\x20created\x20file\x20','A\x20mobile-config.js\x20file\x20already\x20exists,\x20overwrite?\x20[yN]','existsSync','isFile','getConfigFromShorthand()','Meteor','pro','engineAndTypeFromfilePath','@maka/maka-cli','material','templateContent()','readFileLines','Run\x20\x22maka\x20--help\x22\x20for\x20a\x20list\x20of\x20commands','//\x20For\x20more\x20information\x20on\x20mobile\x20config,\x20visit:\x0a','Environemnt\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.','checkConfigExists()','split','pathFromAppWithNoReWrite','rewriteDestinationPathForType','force','\x27,\x0a','\x20npm\x20i\x20--save-dev\x20-q\x20','rewriteSourcePathForEngine()','setEngine','failure','Command\x20not\x20found','writeToFile()','cordova@latest','findDirectoryUp','pathFromTemplates','mongo','findProjectDirectory','mobile-config.js','7601900pUfwcl','834069LgwWIt','emailVerified','Couldn\x27t\x20find\x20an\x20app\x20directory\x20to\x20install\x20meteor\x20package\x20','jsx','Mobile\x20app\x20configuration\x20written\x20to\x20','initNpm','getLatestMakaVersion','unlinkSync','post','--ssl','\x20remove\x20','createProBodyFromJwt','injectAfterLineNumber()','match','Installing\x20','publish','packages','staging','deepen','hash','PORT','Created\x20','1lHCedY','silent','rest','utf-8','engine','exec','forEach','(((.+)+)+)+$','concat','delGlobalConfig','METEOR@','indexOf','plugins','createFile','eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiZ3Vlc3QiLCJlbWFpbFZlcmlmaWVkIjpmYWxzZSwicm9sZXMiOlsiZnJlZUxpY2Vuc2UiXSwicHJvQ29tbWFuZHMiOlsiYXdzIiwibG9ncyIsImRlcGxveSB1YnVudHUiLCJyZWNvbmZpZyIsInNzaCIsInNzbCIsInByb3h5IiwiZG9ja2VyIl0sInByb0dlbmVyYXRvcnMiOlsia2l0IiwiZG9ja2VyZmlsZSJdLCJwcm9GbGFncyI6WyJkb2NrZXIiXSwiaWF0IjoxNjcxMTE2ODk3fQ.BBduQH4j-P3ZQwdTEiS_5qlAd84cAlCkk0nnnv7OLBDcpTz06k3EGpuCHvzxRAHTLSJrFUIZhoF3K-V76EVmPLST2EubThp23o-E5JkQiDvYJrEYzyREB3719rXZLS2LRfXdpm99Sk1j6_vyoAtLluk6aAA_4w7YX4InasJFnLWjclzCEL1m6AqMZVrvr1lLyKmc8eeSXwrz66lB4h9ypNLcRMBxJ4vP5Sb1X4BJLNOnym0Z6aGr-TssQOCJEM2Wu4n1nKf_ChIzhwsu2TPx9dJvQkABsWaYOBLibB1P8ZCLL4yr7yavRE7MBELDXGPu2czf6Z1FwOLEIeoeri5Z-A','withValidation','writeToFile','2474892amYkFi','maybeProxyCommandToMeteor','\x20add\x20','success','add-platform','json','version','Unsupported\x20api\x20engine:\x20',').*$','invokeMeteorCommand()','238Uhrfvl','includes','pathFromProject','projectConfig','Installing\x20meteor\x20packages','\x20into.','remove-platform','ios','isMakaProject','log','utf8','8gSthwG','rewriteSourcePathForEngine','checkConfigExists','apply','copyTemplateDirectory','findAppDirectory()','object','error','Dockerfile','getGlobalConfig','html','setProjectConfig()','splice','.maka','search','\x20--version','\x20--allow-incompatible-update','readFileSync','trim','withSpinner','undefined','/api/v1/freeLicense','show','isSelfTest','deeperAssign','token','app','normalize','withValue()','vanilla','development','createFile()','testing','publish-release','injectIntoFile','react','verify','\x09version:\x20\x270.0.1\x27,\x0a','\x09name:\x20\x27','Meteor\x20project\x20already\x20exists\x20at\x20','findProjectDirectory()','env','ico','setupNpm()','directoryEntries()','checkGlobalConfigExists','header','localhost','getGlobalMeteorVersion','Updated\x20file\x20'];a114c=function(){return aZ;};return a114c();}import{MustBeInProjectError}from'../../error.js';import{SpawnAsync}from'../spawn-async/spawn-async.class.js';const pjson={'version':'4.5.21'},GLOBAL_CONFIG='global-config.json',GLOBAL_CACHE='cache.json',PROJECT_CONFIG=a114C(0x136),FREE_LICENSE=a114C(0x1a8),hostname=process['env'][a114C(0x153)]===a114C(0x276)?a114C(0x1ef):a114C(0x226),homeDir=a114i[a114C(0x281)](),isWin=process['platform']===a114C(0x236),treeSymbol=isWin?a114C(0x1f7):'\x20┗',errorHandler=(a,b)=>{const D=a114C;process['env'][D(0x153)]==='True'&&Log[D(0x1c7)]('Error\x20in\x20'+a),b&&console[D(0x1c7)](b);};function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x127;let f=c[d];return f;},a114d(a,b);}export class FSI{['projectConfig'];['appName'];[a114C(0x209)];constructor(){const E=a114C;this[E(0x209)]=process[E(0x270)]===E(0x236)?E(0x225):E(0x209);}async[a114C(0x1a7)]({filePath:a,data:b,opts:c}){const F=a114C,d=c?.['absolute']?a114e['join'](process[F(0x13b)](),a):a114e[F(0x261)](process[F(0x13b)](),a);try{const f=a114e['normalize'](a)[F(0x172)](a114e['sep']);f[F(0x201)]();const g=f[F(0x217)](a114e[F(0x143)]),h=!this[F(0x206)](g);h&&this[F(0x251)]({'dirPath':g,'force':c?.[F(0x175)]});if(this[F(0x165)](a)&&!c?.['force']){const i=await Actions['confirm'](a+'\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20overwrite\x20it?');if(!i)throw{'msg':'File\x20not\x20written','level':F(0x280),'verbose':!![]};else a114f[F(0x18b)](a);}if(c?.[F(0x15b)]){const j=Buffer['from'](b,'base64');a114f['writeFileSync'](a,j);}else a114f[F(0x1f2)](a,b);!c?.[F(0x19b)]&&Log[F(0x220)](F(0x162)+d);}catch(k){k[F(0x27d)]?k[F(0x138)]===F(0x280)?Log[F(0x1c7)](k[F(0x241)]):errorHandler(F(0x1df),k[F(0x241)]):errorHandler(F(0x1df),k);}}[a114C(0x230)]({configPath:a}){const G=a114C;if(!this['isDirectory'](a))throw G(0x219);const b=a114e['join'](a,'_keys');try{a114f[G(0x26c)](b);}catch(c){a114f['mkdirSync'](b,{'recursive':!![]});}return b;}[a114C(0x1aa)]({filePath:a,data:b,opts:c}){const H=a114C,d=c?.['absolute']?a114e[H(0x217)](process[H(0x13b)](),a):a114e[H(0x261)](process[H(0x13b)](),a);try{if(this[H(0x206)](a))throw Log[H(0x1c7)]('Cannot\x20write\x20data\x20to\x20a\x20directory');a114f[H(0x1f2)](a,b),!c?.[H(0x19b)]&&Log[H(0x220)](H(0x1f1)+d);}catch(f){errorHandler(H(0x17c),f);}}[a114C(0x251)]({dirPath:a,force:b}){const I=a114C;try{b&&a114j[I(0x145)](a);if(this[I(0x165)](a))throw Log['error']('File\x20exists\x20at\x20that\x20location');const c=this[I(0x206)](a);if(!c){a114f['mkdirSync'](a,{'recursive':!![]});if(!this[I(0x206)](a))throw'Uh-oh,\x20the\x20directory\x20is\x20not\x20a\x20directory\x20'+a;Log[I(0x1ae)](I(0x199)+a114e[I(0x261)](process['cwd'](),a));}}catch(d){errorHandler('createDirectory()',d);}}[a114C(0x202)](a,b){return new Promise((c,d)=>{const J=a114d;try{b=b||{},b[J(0x13b)]=b[J(0x13b)]||'.';const f=a114e[J(0x217)](b[J(0x13b)],a),g=a114e[J(0x217)](f,J(0x12d));if(this[J(0x206)](g))throw Log[J(0x1c7)](J(0x1e7)+JSON[J(0x250)](f));const h='--minimal',i=a114e[J(0x217)](b[J(0x13b)]);exec(this[J(0x209)]+J(0x131)+a+'\x20'+h,{'cwd':i},()=>{const K=J,j=a114e['join'](i,a);a114f[K(0x26d)](j)[K(0x1a0)](k=>{const L=K;if(k===L(0x135))return;if(k===L(0x12d))return;a114j[L(0x145)](a114e[L(0x217)](j,k),{'force':!![]});}),c();});}catch(j){Log[J(0x1c7)](J(0x25c)),console['error'](j),d(j);}});}['findDirectoryUp']({predicate:a,startPath:b}){const M=a114C;try{let c=b||process[M(0x13b)]();while(c){if(a(c))break;const d=a114e[M(0x203)](c);d===c?c=![]:c=d;}return c;}catch(f){errorHandler(M(0x130),f),process[M(0x266)](0x1);}}['findProjectDirectory'](a=process[a114C(0x13b)]()){const N=a114C;try{return this[N(0x17e)]({'predicate':b=>{const O=N;return this[O(0x165)](a114e[O(0x217)](b,O(0x1cd),PROJECT_CONFIG));},'startPath':a||process['cwd']()});}catch(b){errorHandler(N(0x1e8),b),process[N(0x266)](0x1);}}['findAppDirectory'](a=process[a114C(0x13b)]()){const P=a114C;try{const b=this[P(0x181)](a);return b&&typeof b===P(0x22d)?a114e[P(0x217)](b,P(0x1da)):'';}catch(c){errorHandler(P(0x1c5),c),process[P(0x266)](0x1);}}[a114C(0x169)]({filePath:a}){const Q=a114C;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a['match'](b);c=c&&c[0x0][Q(0x172)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[Q(0x201)](),f=c[Q(0x201)]()||d;if(d)d=d['replace']('.','');if(f)f=f['replace']('.','');return{'type':f,'engine':d};}catch(g){errorHandler(Q(0x149),g),process[Q(0x266)](0x1);}}[a114C(0x174)]({pathParts:a}){const R=a114C;try{const b=this[R(0x1b8)],c=a['join'](a114e[R(0x143)]),d=this[R(0x169)]({'filePath':c})[R(0x161)],f=b?.[R(0x22e)][d],g=new RegExp('\x5c.'+d+'\x5cS*$');return!d||!f?c:c[R(0x221)](g,'.'+d);}catch(h){errorHandler('rewriteDestinationPathForType()',h),process[R(0x266)](0x1);}}[a114C(0x238)]({pathParts:a,config:b}){const S=a114C;try{if(!b)throw new Error('No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.');const c=a[S(0x217)](a114e[S(0x143)]),d=this[S(0x169)]({'filePath':c});if(!d[S(0x161)]||!d[S(0x19e)])return!![];const f=b['engines'][d['type']];if(!f)return!![];return f===d[S(0x19e)];}catch(g){errorHandler(S(0x216),g),process[S(0x266)](0x1);}}[a114C(0x17f)]({pathParts:a,framework:framework='meteor',config:b}){const T=a114C;try{const c=this[T(0x1c1)]({'pathParts':a,'config':b}),d=a114e[T(0x217)](T(0x133)+framework,c),f=a114e['join'](global['MAKA_COMMAND_PATH'],'..',d);return f;}catch(g){errorHandler(T(0x152),g),process[T(0x266)](0x1);}}[a114C(0x1b7)]({pathParts:a}){const U=a114C;try{const b=a?.['join'](a114e[U(0x143)]),c=this[U(0x181)]();return c&&typeof c==='string'?a114e['join'](c,b||''):'';}catch(d){errorHandler('pathFromProject()',d),process[U(0x266)](0x1);}}[a114C(0x240)]({pathParts:a,config:b}){const V=a114C;try{const c=this['rewriteSourcePathForEngine']({'pathParts':a,'config':b}),d=this[V(0x142)]();return d?a114e[V(0x217)](d,c):'';}catch(f){errorHandler(V(0x15a),f),process[V(0x266)](0x1);}}[a114C(0x173)]({pathParts:a,config:b}){const W=a114C;try{const c=this[W(0x14e)]({'pathParts':a,'config':b}),d=this[W(0x142)]();return d?a114e[W(0x217)](d,c):![];}catch(f){errorHandler('pathFromAppWithNoReWrite()',f),process[W(0x266)](0x1);}}['isFile'](a){const X=a114C;try{const b=a114f['statSync'](a);return b[X(0x165)]();}catch(c){return![];}}[a114C(0x206)](a){const Y=a114C;try{const b=a114f['statSync'](a);return b[Y(0x206)]();}catch(c){return![];}}[a114C(0x16d)](a){const Z=a114C;try{const b=a114f[Z(0x1d1)](a,'utf8'),c=b[Z(0x172)](/\r*\n\r*/);while(c['length']){const d=c[c[Z(0x26a)]-0x1];if(d[Z(0x191)](/\S/))break;c[Z(0x201)]();}return c;}catch(f){errorHandler('readFileLines()',f),process['exit'](0x1);}}[a114C(0x15c)](){const a0=a114C;try{const a=this[a0(0x1b7)]({'pathParts':[a0(0x1da),a0(0x12d),'release']}),b=a114f[a0(0x1d1)](a,'utf8');let c=b[a0(0x221)](a0(0x1a4),'')[a0(0x221)]('\x0a','');const d=c[a0(0x172)]('.')['length'];return d<0x3&&(c=c+'.0'),c;}catch(f){errorHandler(a0(0x25f),f),process[a0(0x266)](0x1);}}async[a114C(0x132)](){const a1=a114C;try{const a=this[a1(0x1b7)]({'pathParts':[a1(0x1da),'.meteor','local',a1(0x146),a1(0x207)]});if(!this[a1(0x165)](a))return a1(0x141);else{const b=this[a1(0x1b7)]({'pathParts':['app','.meteor',a1(0x22b),a1(0x146),'.node_version.txt']}),c=a114f[a1(0x1d1)](b,'utf8'),d=c[a1(0x221)]('v','')[a1(0x221)]('\x0a','');return d;}}catch(f){errorHandler(a1(0x12a),f),process[a1(0x266)](0x1);}}async[a114C(0x18a)](){const a2=a114C,a=await a114k(a2(0x16a));return a;}async[a114C(0x14f)](){const a3=a114C,a=await this[a3(0x18a)]();a114l['gt'](a,pjson[a3(0x1b1)])&&(Log['warn'](a3(0x23c)+a),Log['warn'](a3(0x25d)));return;}[a114C(0x1f0)](){const a4=a114C;let a=execSync(this[a4(0x209)]+a4(0x1cf))[a4(0x252)]()[a4(0x221)](a4(0x167),'')['trim']();const b=a[a4(0x172)]('.')['length'];return b<0x3&&(a=a+'.0'),a;}[a114C(0x14e)]({pathParts:pathParts=[]}){const a5=a114C;return pathParts[a5(0x217)](a114e[a5(0x143)]);}[a114C(0x159)]({pathParts:pathParts=[],config:a}){const a6=a114C;try{const b=pathParts[a6(0x217)](a114e[a6(0x143)]),c=this[a6(0x169)]({'filePath':b})[a6(0x161)],d=a[a6(0x22e)][c],f=new RegExp('\x5c.'+c+'\x5cS*$');return!c||!d?b:b[a6(0x221)](f,'.'+d);}catch(g){errorHandler(a6(0x24f),g),process['exit'](0x1);}}[a114C(0x1c1)]({pathParts:pathParts=[]}){const a7=a114C;try{const a=this[a7(0x1b8)],b=pathParts[a7(0x217)](a114e[a7(0x143)]),c=this['engineAndTypeFromfilePath']({'filePath':b}),d=c[a7(0x161)];if(!a||!a[a7(0x22e)]||!a[a7(0x22e)][d])return b;const f=a[a7(0x22e)][c['type']],g=new RegExp('\x5c.'+d+'\x5cS*$');return f===d?b[a7(0x221)](g,'.'+d):b[a7(0x221)](g,'.'+d+'.'+f);}catch(h){errorHandler(a7(0x178),h),process['exit'](0x1);}}['templateContent']({srcPath:a,context:b,framework:c,config:d}){const a8=a114C;try{let f=this[a8(0x17f)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[a8(0x169)]({'filePath':f}),h=[a8(0x208),'scss',a8(0x25e),a8(0x1ca),'js',a8(0x187),'ts','tsx',a8(0x1b0),'env',a8(0x21d)],i=[a8(0x21a),a8(0x1ea)];if(!this[a8(0x165)](f)){g==='jsx'&&(f=f['replace'](a8(0x256),''));g==='tsx'&&(f=f['replace']('.tsx',''));if(!this[a8(0x165)](f))throw new Error(a8(0x128)+JSON[a8(0x250)](f));}const j=f[a8(0x172)]('.'),k=a114e[a8(0x1db)](f)['split'](a114e[a8(0x143)]),l=k[k[a8(0x26a)]-0x1]===a8(0x1c8),m=i[a8(0x1b6)](j[j[a8(0x26a)]-0x1]),n=a114f['readFileSync'](f);if(l)return a114g[a8(0x14a)](n['toString'](),b)['trim']();if(m)return new Buffer(n)[a8(0x252)](a8(0x157));if(!h[a8(0x1b6)](j[j[a8(0x26a)]-0x1]))return n['toString']()[a8(0x1d2)]();return a114g[a8(0x14a)](n[a8(0x252)](),b||{})[a8(0x1d2)]();}catch(o){errorHandler(a8(0x16c),o),process['exit'](0x1);}}async['template']({srcPath:a,destPath:b,context:c,framework:d,config:f,force:force=![]}){const a9=a114C;try{const g=['png','ico'],h=g[a9(0x1b6)](a[a9(0x172)]('.')[a9(0x201)]()||''),i=this[a9(0x267)]({'srcPath':a,'context':c,'framework':d,'config':f})+'\x0a';c?.[a9(0x21e)]?b=this['rewriteDestinationPathForType']({'pathParts':[b],'config':f}):b=this[a9(0x159)]({'pathParts':[b],'config':f});const j=await this[a9(0x1a7)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h}});return j;}catch(k){errorHandler(a9(0x282),k),process[a9(0x266)](0x1);}}[a114C(0x1f9)](a){const aa=a114C;try{let b=[];return a114f['readdirSync'](a),a114f[aa(0x26d)](a)[aa(0x1a0)](c=>{const ab=aa,d=a114e[ab(0x217)](a,c);b[ab(0x22c)](d);if(this[ab(0x206)](d))b=b[ab(0x1a2)](this[ab(0x1f9)](d));}),b;}catch(c){errorHandler(aa(0x1ec),c),process[aa(0x266)](0x1);}}['copyTemplateDirectory']({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const ac=a114C;try{const i=this['pathFromTemplates']({'pathParts':[a],'framework':g,'config':h}),j=this[ac(0x17f)]({'pathParts':[],'framework':g,'config':h}),k=m=>{return m['replace'](j,'');},l=m=>{const ad=ac;return m[ad(0x221)](i,b);};this['createDirectory']({'dirPath':b}),a114f['readdirSync'](i)[ac(0x1a0)](async m=>{const ae=ac;try{const n=a114e[ae(0x217)](i,m),o=k(n),p=l(n);if(d['includes'](a114e[ae(0x217)](a,m)))return;if(this['isDirectory'](n))this[ae(0x1c4)]({'srcPath':o,'destPath':p,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this['isFile'](n)&&this[ae(0x238)]({'pathParts':[n],'config':h}))this[ae(0x23f)]({'srcPath':o,'destPath':p,'context':c,'framework':g,'config':h});else f[ae(0x1a5)](a114e[ae(0x217)](a,m))>=0x0&&this[ae(0x165)](n)&&(c[ae(0x21e)]=!![],this[ae(0x23f)]({'srcPath':o,'destPath':p,'context':c,'framework':g,'config':h}),c['noRename']=![]);}}catch(q){console[ae(0x1c7)](q),process[ae(0x266)](0x1);}});}catch(m){errorHandler('copyTemplateDirectory()',m),process['exit'](0x1);}}[a114C(0x1bd)](){const af=a114C,a=this[af(0x181)]();return a!==![]?!![]:![];}['injectAtBeginningOfFile']({filePath:a,content:b,opts:c}){const ag=a114C;try{!this[ag(0x165)](a)&&this['createFile']({'filePath':a,'data':b});let d=a114f[ag(0x1d1)](a,'utf8');d=b+'\x0a'+d,a114f[ag(0x1f2)](a,d),c?.['verbose']&&Log[ag(0x1ee)](treeSymbol+ag(0x14b)+a114e[ag(0x261)](process[ag(0x13b)](),a));}catch(f){errorHandler('injectAtBeginningOfFile()',f),process[ag(0x266)](0x1);}}['injectAtEndOfFile']({filePath:a,content:b,opts:c}){const ah=a114C;try{!this[ah(0x165)](a)&&this[ah(0x1a7)]({'filePath':a,'data':b});let d=a114f[ah(0x1d1)](a,ah(0x1bf));d=d+'\x0a'+b,a114f[ah(0x1f2)](a,d),c?.[ah(0x27d)]&&Log[ah(0x1ee)](treeSymbol+ah(0x14b)+a114e['relative'](process[ah(0x13b)](),a));}catch(f){errorHandler('injectAtEndOfFile()',f),process[ah(0x266)](0x1);}}[a114C(0x1e2)]({filePath:a,content:b,begin:c,end:d}){const ai=a114C;try{if(!this[ai(0x165)](a))throw Log['error'](ai(0x271)+JSON[ai(0x250)](a));const f=a114f[ai(0x1d1)](a,'utf8'),g='[\x5cs\x5cS]*',h=function(l){return'('+l+')';},i=new RegExp(h(g)+h(c)+h(g)+h(d)+h(g),'i'),j=i[ai(0x19f)](f);if(!j)throw new Error(ai(0x23d)+i['source']);const k=j[ai(0x1fa)](0x1);k[ai(0x1cc)](0x3,0x0,b),a114f[ai(0x1f2)](a,k[ai(0x217)]('')),Log[ai(0x1ee)](treeSymbol+ai(0x14b)+a114e[ai(0x261)](process[ai(0x13b)](),a));}catch(l){errorHandler('injectIntoFile()',l),process[ai(0x266)](0x1);}}['injectAfterLineNumber']({filePath:a,content:b,lineNumber:c}){const aj=a114C;try{const d=a114f[aj(0x1d1)](a)[aj(0x252)]()['split']('\x0a');d['splice'](c,0x0,b);const f=d[aj(0x217)]('\x0a');a114f[aj(0x1f2)](a,f);}catch(g){errorHandler(aj(0x190),g),process[aj(0x266)](0x1);}}['getConfigFromShorthand'](a){const ak=a114C;try{if(!a||typeof a!==ak(0x22d))throw ak(0x170);let b=a;if(b['includes']('dev')||b==='d')b=ak(0x1de);else{if(b[ak(0x1b6)]('test')||b==='t')b=ak(0x1e0);else{if(b[ak(0x1b6)](ak(0x148))||b==='s')b=ak(0x195);else(b[ak(0x1b6)](ak(0x168))||b==='p')&&(b='production');}}return b;}catch(c){errorHandler(ak(0x166),c),process[ak(0x266)](0x1);}}[a114C(0x1ed)](){const al=a114C;try{const a=a114e[al(0x217)](homeDir,al(0x1cd),GLOBAL_CONFIG),b=a114f[al(0x164)](a);if(!b)throw Log['error'](al(0x227)+a);return a;}catch(c){errorHandler('checkGlobalConfigExists()',c),process[al(0x266)](0x1);}}[a114C(0x1c2)](a){const am=a114C;try{if(!a||typeof a!=='string')throw'Environemnt\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.';const b=this['getConfigFromShorthand'](a),c=this['pathFromProject']({'pathParts':[am(0x14c),b]}),d=a114f[am(0x164)](c);if(!d)return![];return!![];}catch(f){errorHandler(am(0x171),f),process[am(0x266)](0x1);}}[a114C(0x13a)](a){const an=a114C;try{if(!a||typeof a!==an(0x22d))throw an(0x170);const b=this[an(0x26f)](a),c=this[an(0x1b7)]({'pathParts':[an(0x14c),b]}),d=a114f[an(0x164)](c);if(!d)throw Log['error'](an(0x147)+b+',\x20consider\x20running\x20\x22maka\x20g:config\x20'+b+'\x22');return c;}catch(f){errorHandler('getConfigPath()',f),process[an(0x266)](0x1);}}['grep'](a,b){const ao=a114C;try{const c=new RegExp('^.*('+b+ao(0x1b3),'mg'),d=a[ao(0x191)](c);return d||[];}catch(f){errorHandler('grep()',f),process[ao(0x266)](0x1);}}[a114C(0x277)](){const ap=a114C;try{const a=this[ap(0x1b7)]({'pathParts':[ap(0x1cd),PROJECT_CONFIG]}),b=JSON['parse'](a114f['readFileSync'](a,ap(0x1bf)));return!b[ap(0x273)]&&(Log['warn']('No\x20app\x20name\x20present\x20in\x20./maka/config.json.'),b[ap(0x273)]='app'),b;}catch(c){errorHandler('getProjectConfig()',c),process[ap(0x266)](0x1);}}[a114C(0x255)](){const aq=a114C;try{const a=a114e[aq(0x217)](homeDir,aq(0x1cd),GLOBAL_CONFIG),b=JSON[aq(0x127)](a114f[aq(0x1d1)](a)['toString']());b[aq(0x197)]='';const c=JSON[aq(0x250)](b,null,0x2);return this[aq(0x1aa)]({'filePath':a,'data':c,'opts':{'absolute':!![],'silent':!![]}}),b;}catch(d){errorHandler(aq(0x253),d),process['exit'](0x1);}}['delGlobalConfig'](){const ar=a114C;try{const a=a114e[ar(0x217)](homeDir,ar(0x1cd),GLOBAL_CONFIG);a114j[ar(0x145)](a,{'force':!![]});}catch(b){errorHandler(ar(0x15f),b),process[ar(0x266)](0x1);}}['getCachedResult'](a){const as=a114C,b=a114e[as(0x217)](homeDir,as(0x1cd),GLOBAL_CACHE);try{const c=JSON[as(0x127)](a114f[as(0x1d1)](b,as(0x19d)));return c[a]||null;}catch(d){return null;}}[a114C(0x247)](a,b){const at=a114C,c=a114e['join'](homeDir,'.maka',GLOBAL_CACHE);try{const d=JSON[at(0x127)](a114f[at(0x1d1)](c,at(0x19d)));d[a]=b,a114f[at(0x1f2)](c,JSON[at(0x250)](d));}catch(e){const f={[a]:b};a114f[at(0x1f2)](c,JSON['stringify'](f));}}['getGlobalMakaDir'](){const au=a114C;return a114e[au(0x217)](homeDir,'.maka');}async[a114C(0x1c9)](){const av=a114C;try{const a=a114e[av(0x217)](homeDir,av(0x1cd),GLOBAL_CONFIG);if(!this[av(0x165)](a)){const b={'token':{'authToken':'','userId':'','when':''},'hash':FREE_LICENSE},c=JSON[av(0x250)](b,null,0x2);await this['createFile']({'filePath':a,'data':c,'opts':{'force':!![]}});}return JSON['parse'](a114f[av(0x1d1)](a)[av(0x252)]());}catch(d){if(d instanceof SyntaxError){this[av(0x1a3)]();throw av(0x239);}else console['error'](d);process[av(0x266)](0x1);}}[a114C(0x210)](a,b){const aw=a114C;try{const c=JSON[aw(0x250)](a,null,0x2);this[aw(0x1a7)]({'filePath':b,'data':c,'opts':{'force':!![]}});}catch(d){errorHandler(aw(0x24d),d),process[aw(0x266)](0x1);}}[a114C(0x196)](a){const ax=a114C,b={};for(const c in a){const d=c[ax(0x172)]('.');let e=b;while(d?.[ax(0x26a)]>0x1){const f=d?.[ax(0x27a)]();f&&(e=e[f]=e[f]||{});}e[d[0x0]]=a[c];}return b;}[a114C(0x1d8)](c,d){const ay=a114C;return Object[ay(0x244)](d)[ay(0x1a0)](([e,f])=>c[e]=f&&typeof f===ay(0x1c6)?this[ay(0x1d8)](c[e]=c[e]||{},f):f),c;}['setProjectConfig'](a,b){const az=a114C;try{const c=this[az(0x1b7)]({'pathParts':['.maka',PROJECT_CONFIG]});let d=JSON[az(0x127)](a114f['readFileSync'](c,'utf8'));const f=this[az(0x196)]({[a]:b});d=this[az(0x1d8)](d,f);const g=JSON[az(0x250)](d,null,0x2);a114f['writeFileSync'](c,g);}catch(h){errorHandler(az(0x1cb),h),process['exit'](0x1);}}async[a114C(0x27f)](a){const aA=a114C;try{const b=a114e[aA(0x217)](homeDir,aA(0x1cd),GLOBAL_CONFIG);if(!this[aA(0x165)](b)){const f=JSON[aA(0x250)](a,null,0x2);await this[aA(0x1a7)]({'filePath':b,'data':f,'opts':{'force':!![]}});}const c=await this['getGlobalConfig']();Object['assign'](c,{...a});const d=JSON[aA(0x250)](c,null,0x2);this['writeToFile']({'filePath':b,'data':d,'opts':{'absolute':!![],'silent':!![]}});}catch(g){errorHandler('setGlobalConfig()',g),process[aA(0x266)](0x1);}}[a114C(0x12c)](a,b){const aB=a114C;try{const c=this['pathFromProject']({'pathParts':[aB(0x1cd),PROJECT_CONFIG]}),d=JSON['parse'](a114f['readFileSync'](c,aB(0x1bf)));d[aB(0x23f)][a]=b;const f=JSON['stringify'](d,null,0x2);a114f[aB(0x1f2)](c,f);}catch(g){errorHandler(aB(0x20e),g),process['exit'](0x1);}}[a114C(0x179)](a,b){const aC=a114C;try{const c=this[aC(0x1b7)]({'pathParts':[aC(0x1cd),PROJECT_CONFIG]}),d=JSON[aC(0x127)](a114f[aC(0x1d1)](c,'utf8'));d[aC(0x19e)][a]=b;const f=JSON[aC(0x250)](d,null,0x2);a114f[aC(0x1f2)](c,f);}catch(g){errorHandler(aC(0x26e),g),process['exit'](0x1);}}[a114C(0x204)](a,b){const aD=a114C;try{const c=this['projectConfig'];let d=null;try{this['projectConfig']=this[aD(0x1a9)](a),d=b();}finally{this['projectConfig']=c;}return d;}catch(f){errorHandler(aD(0x1dc),f),process[aD(0x266)](0x1);}}[a114C(0x1a9)](a){const aE=a114C;try{const b={'html':[aE(0x1ca)],'js':['js',aE(0x187),'ts',aE(0x14d)],'css':[aE(0x208),aE(0x25e),aE(0x263)],'api':[aE(0x19c),aE(0x263)],'test':[aE(0x21c),'mocha','none'],'client':['react',aE(0x1dd)],'graphql':[aE(0x25b)],'ssr':['true',aE(0x1fc)],'theme':[aE(0x16b),aE(0x263)]},c=a[aE(0x22e)]=this[aE(0x232)](a['engines'],{});if(c[aE(0x1ca)]&&!b[aE(0x1ca)][aE(0x1b6)](c[aE(0x1ca)]))throw new Error('Unsported\x20html\x20engine:\x20'+c[aE(0x1ca)]);if(c['js']&&!b['js'][aE(0x1b6)](c['js']))throw new Error('Unsported\x20js\x20engine:\x20'+c['js']);if(c[aE(0x208)]&&!b[aE(0x208)]['includes'](c[aE(0x208)]))throw new Error(aE(0x24b)+c[aE(0x208)]);if(c[aE(0x13c)]&&!b['api'][aE(0x1b6)](c['api']))throw new Error(aE(0x1b2)+c[aE(0x13c)]);if(c[aE(0x1f5)]&&!b[aE(0x1f5)]['includes'](c[aE(0x1f5)]))throw new Error('Unsupported\x20client\x20engine:\x20'+c[aE(0x1f5)]);if(c[aE(0x205)]&&!b[aE(0x205)]['includes'](c['theme']))throw new Error('Unsupported\x20theme\x20engine:\x20'+c[aE(0x205)]);return c['html']=this[aE(0x232)](c['html'],aE(0x1ca)),c['js']=this[aE(0x232)](c['js'],'js'),c[aE(0x208)]=this[aE(0x232)](c['css'],aE(0x208)),c[aE(0x1f5)]=this[aE(0x232)](c['client'],aE(0x1e3)),c['api']=this[aE(0x232)](c[aE(0x13c)],aE(0x263)),c[aE(0x205)]=this['defaultValue'](c[aE(0x205)],aE(0x263)),a;}catch(d){errorHandler('withValidation()',d),process['exit'](0x1);}}['defaultValue'](a,b){const aF=a114C;try{return typeof a===aF(0x1d4)?b:a;}catch(c){errorHandler('defaultValue()',c);}}async[a114C(0x27e)](a){const aG=a114C,b=await this['getGlobalConfig'](),c=b?.[aG(0x1d9)],d=b?.['cert'],f=b?.[aG(0x197)];let g=![];if(f)try{const h=a114h[aG(0x1e4)](f,a,{'algorithms':[aG(0x200)]});h&&(g=!![]);}catch(i){g=![];}if(!g&&c?.['authToken']){const j={'hostname':aG(0x226),'path':'/api/v1/encodeJwt','headers':{'x-auth-token':c[aG(0x12b)]},'data':{}};d&&Object[aG(0x265)](j,{'cert':d});const {data:k,statusCode:l}=await HTTPS['post'](j),{token:m}=JSON[aG(0x127)](k);m&&l!==0x198&&(b[aG(0x197)]=m,this[aG(0x27f)](b));}}[a114C(0x18f)](a){const aH=a114C;return{'user':a[aH(0x22f)],'proFlags':a[aH(0x1f4)],'proCommands':a[aH(0x13d)],'proGenerators':a[aH(0x23a)],'emailVerified':a[aH(0x185)],'roles':a['roles']};}async[a114C(0x259)](){const aI=a114C;try{const a='-----BEGIN\x20CERTIFICATE-----\x0aMIIDrDCCApQCCQD/qoSMO0msAjANBgkqhkiG9w0BAQsFADCBlzELMAkGA1UEBhMC\x0aVVMxCzAJBgNVBAgMAlJJMRIwEAYDVQQHDAlXYWtlZmllbGQxHDAaBgNVBAoME0Nh\x0abXBiZWxsIExhYnMsIExMQy4xDTALBgNVBAsMBExhaXIxGTAXBgNVBAMMEHd3dy5t\x0aYWthLWNsaS5jb20xHzAdBgkqhkiG9w0BCQEWEG1qbWNlZUBnbWFpbC5jb20wHhcN\x0aMjAxMjMwMTkxMjU3WhcNMjEwMTI5MTkxMjU3WjCBlzELMAkGA1UEBhMCVVMxCzAJ\x0aBgNVBAgMAlJJMRIwEAYDVQQHDAlXYWtlZmllbGQxHDAaBgNVBAoME0NhbXBiZWxs\x0aIExhYnMsIExMQy4xDTALBgNVBAsMBExhaXIxGTAXBgNVBAMMEHd3dy5tYWthLWNs\x0aaS5jb20xHzAdBgkqhkiG9w0BCQEWEG1qbWNlZUBnbWFpbC5jb20wggEiMA0GCSqG\x0aSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDLQ/k5jMhXYV5ukZMwsPjSu7bcDyrZZ9sd\x0aWZWO5UldI7j0VvIw/hid2cXQuVAtQ8q4xA7NwcAaMBrgSJHHrgDDukN2L2uiPt1a\x0a14TdPl3UJcmgHzv99S1R/n3DtK7U9Wvy7aSwWF6xjBEw+tQ7U4VnqvQTKyAD8Arl\x0aZIRwJQd8l3WYXhFD/0xHrpOizW9Exo2bwE0E9c2av2Q5SkAjyoxktpy+RkqcOifr\x0aJZB5/AeZxiHxUasE/BSXMFgbNZeg4eO/Q75QemLxUP2mz2oSTLL9EUQe3Aaf06Ql\x0a5a9wszl50WrkEIOTuuhDsTzxhhO5p5iwIXUIt5jYQ2YfePS0xxWxAgMBAAEwDQYJ\x0aKoZIhvcNAQELBQADggEBAImu+Czc7nd+j4jcuBaXjNLiewh/mnm2obaJ0VNG90Ng\x0ap97xWyWEytNulsS6EOyOd4oqa+ZdUz5J2Lc0Ya2H4G0dosvxTEbhH6Y4mF89BWPu\x0auqZz0TYnWq66qv7MTXsySZyyfzouxspyz6PbTliylnDVo4xmcwY6k4WOHYknrdft\x0aF12LSHrnhmqO3+N2Olm4CfATcirpM/vahmfIfkzbhit3G1y/Pqb7KUDBC/Zs2gGc\x0aXflCck4RdaPYPDHFxJO3jCFdaB9c4zpH+Ztn1w0RvJ1X0MMbO+gT7Bj7+IBytPQ1\x0ayjoKepxBe1aDzgcfyg55oSMKF+H7M75ynIN9JALhl5I=\x0a-----END\x20CERTIFICATE-----';await this['attemptAutoLogin'](a);let b=await this[aI(0x1c9)]();try{a114h[aI(0x1e4)](b[aI(0x197)],a,{'algorithms':[aI(0x200)]});}catch(c){b=this[aI(0x255)]();}if(b[aI(0x197)]==='')try{const d={'hostname':hostname,'path':aI(0x1d5),'data':{}};b[aI(0x264)]&&Object[aI(0x265)](d,{'cert':b[aI(0x264)]});const {data:f}=await HTTPS[aI(0x18c)](d),{token:g}=JSON['parse'](f),h=a114h[aI(0x1e4)](g,a,{'jwtid':'','algorithms':[aI(0x200)]}),i=this[aI(0x18f)](h);if(!i?.['proCommands']||!i?.[aI(0x23a)]||!i?.['proFlags'])throw aI(0x233)+hostname+aI(0x272);return b[aI(0x197)]=g,this[aI(0x27f)](b),i;}catch(j){console[aI(0x1be)](j);}try{const k=a114h['verify'](b[aI(0x197)],a,{'algorithms':[aI(0x200)]}),l=this[aI(0x18f)](k);if(!l?.[aI(0x185)]&&!l?.[aI(0x22f)][aI(0x1b6)](aI(0x23e))){const m={'hostname':hostname,'path':aI(0x1f6),'headers':{'x-auth-token':b?.[aI(0x1d9)]?.[aI(0x12b)]},'data':{}},n=await Actions[aI(0x27b)](aI(0x235),!![]);if(n){const {statusCode:o,data:p}=await HTTPS[aI(0x18c)](m);o>0xc8?Log[aI(0x1c7)](o+':\x20'+p):Log['success'](aI(0x129)+p);}}return l;}catch(q){q[aI(0x211)]&&process[aI(0x266)](0x1);}try{let r;!b[aI(0x1d9)]?r={'hostname':aI(0x226),'path':aI(0x1d5),'data':{}}:r={'hostname':aI(0x226),'path':aI(0x27c),'headers':{'x-auth-token':b['token']['authToken']},'data':{}};b[aI(0x264)]&&Object[aI(0x265)](r,{'cert':b[aI(0x264)]});const {data:s,statusCode:t}=await HTTPS[aI(0x18c)](r),{token:u}=JSON[aI(0x127)](s);if(t===0x198)throw aI(0x12e);const v=a114h['verify'](u,a,{'algorithms':[aI(0x200)]}),w=this[aI(0x18f)](v);if(!w?.['proCommands']||!w?.[aI(0x23a)]||!w?.[aI(0x1f4)])throw aI(0x21f);return b['hash']=u,this[aI(0x27f)](b),w;}catch(x){}}catch(y){errorHandler(aI(0x274),y),process[aI(0x266)](0x1);}}[a114C(0x243)](a,b){return new Promise((c,d)=>{const aJ=a114d;b=b||{},b['cwd']=b[aJ(0x13b)]||'.';if(!b[aJ(0x1d7)]){const f=Log[aJ(0x1d3)](),g=this[aJ(0x142)](b['cwd']);if(!g)Log['error'](aJ(0x186)+JSON[aJ(0x250)](a)+aJ(0x1ba)),d();else try{f[aJ(0x231)](aJ(0x1b9)),exec(this[aJ(0x209)]+aJ(0x1ad)+a+aJ(0x1d0),{'cwd':g},()=>{const aK=aJ;f[aK(0x1ae)](),c();});}catch(h){Log[aJ(0x1c7)](h),f['failure'](),d();}}});}['removeMeteorPackage'](a,b){return new Promise((c,d)=>{const aL=a114d;b=b||{},b[aL(0x13b)]=b['cwd']||'.';if(!b[aL(0x1d7)]){const f=this[aL(0x142)](b[aL(0x13b)]);if(!f)Log[aL(0x1c7)](aL(0x249)+JSON[aL(0x250)](a)+aL(0x1fd)),d();else{const g=Log[aL(0x1d3)]();try{g[aL(0x231)]('Removing\x20insecure\x20meteor\x20packages'),exec(this[aL(0x209)]+aL(0x18e)+a,{'cwd':f},()=>{const aM=aL;g[aM(0x1ae)](),c();});}catch(h){Log[aL(0x1c7)](h),g[aL(0x17a)](),d();}}}});}[a114C(0x189)](a){return new Promise((b,c)=>{const aN=a114d;a=a||{},a[aN(0x13b)]=a[aN(0x13b)]||'.';if(!a[aN(0x1d7)]){const d=this[aN(0x142)](a[aN(0x13b)]);if(!d)Log[aN(0x1c7)]('Couldn\x27t\x20find\x20an\x20app\x20directory\x20to\x20init\x20npm\x20into.'),c();else{const f=Log[aN(0x1d3)]();try{f[aN(0x231)](aN(0x234)),exec('npm\x20init\x20-f\x20',{'cwd':d},()=>{f['success'](),b();});}catch(g){Log[aN(0x1c7)](g),f[aN(0x17a)](),c();}}}});}[a114C(0x254)](a,b){return new Promise((c,d)=>{const aO=a114d;b=b||{},b[aO(0x13b)]=b[aO(0x13b)]||'.';const f=b[aO(0x241)]?b['msg']:aO(0x192)+(b[aO(0x214)]?aO(0x154):'')+'npm\x20packages';if(!b['isSelfTest']){const g=this[aO(0x142)](b[aO(0x13b)]);if(!g)Log[aO(0x1c7)](aO(0x1fe)+JSON[aO(0x250)](a)+aO(0x1ba)),d();else{const h=Log[aO(0x1d3)]();try{b['dev']?(h[aO(0x231)](f),exec(this[aO(0x209)]+aO(0x177)+a,{'cwd':g},()=>{h['success'](),c();})):(h[aO(0x231)](f),exec(this[aO(0x209)]+aO(0x140)+a,{'cwd':g},()=>{const aP=aO;h[aP(0x1ae)](),c();}));}catch(i){Log[aO(0x1c7)](i),d();}}}});}async['setupNpm'](a){const aQ=a114C;try{const b=this[aQ(0x142)](a['cwd']);!b?Log[aQ(0x1c7)](aQ(0x24a)):(Log[aQ(0x224)](aQ(0x245)),await SpawnAsync['withSpinner'](this[aQ(0x209)],[aQ(0x24e),aQ(0x150)],{'cwd':b,'message':aQ(0x13f)}));}catch(c){errorHandler(aQ(0x1eb),c),process[aQ(0x266)](0x1);}}[a114C(0x228)](a,b){const aR=a114C;try{b=b||{},b['cwd']=b['cwd']||'.';if(b[aR(0x1d7)])return![];const c=this['findAppDirectory'](b[aR(0x13b)]);if(!c)return Log['error'](aR(0x24c)+JSON[aR(0x250)](a)+'\x20is\x20present.'),![];const d=JSON[aR(0x127)](a114f['readFileSync'](a114e['join'](c,aR(0x15e)))[aR(0x252)]());return!d['devDependencies']&&(d[aR(0x268)]={}),d[aR(0x260)][a]||d[aR(0x268)][a]?!![]:![];}catch(f){errorHandler('checkNpmPackage()',f),process[aR(0x266)](0x1);}}['checkMeteorPackage'](a,b){const aS=a114C;try{b=b||{},b['cwd']=b[aS(0x13b)]||'.';const c=this[aS(0x142)](b['cwd']);if(!c)return Log[aS(0x1c7)](aS(0x24c)+JSON[aS(0x250)](a)+'\x20is\x20present.'),![];const d=a114f['readFileSync'](a114e[aS(0x217)](c,aS(0x12d),'packages'),'utf-8')[aS(0x172)]('\x0a')['filter'](Boolean);return d[aS(0x1b6)](a);}catch(f){errorHandler(aS(0x229),f),process[aS(0x266)](0x1);}}[a114C(0x151)](a){const aT=a114C;try{const b=this['findAppDirectory'](a114e['join'](aT(0x12d),aT(0x194)));if(!b)return![];const c=this['readFileLines'](b),d=[];return c[aT(0x1a0)](f=>{const aU=aT,g=f['trim']();if(g!=='')d[aU(0x22c)](g);}),d[aT(0x1b6)](a);}catch(f){errorHandler(aT(0x137),f),process['exit'](0x1);}}async[a114C(0x1ac)](){const aV=a114C;try{const a=[aV(0x24e),aV(0x20f),aV(0x215),aV(0x1ff),aV(0x139),'list',aV(0x1af),aV(0x222),aV(0x1bb),'list-platforms',aV(0x223),aV(0x146),aV(0x20a),aV(0x180),aV(0x246),aV(0x262),'authorized',aV(0x258),aV(0x25a),aV(0x12f),'whoami','test-packages',aV(0x1fb),'list-sites',aV(0x1e1),aV(0x193),aV(0x279),aV(0x1ce),aV(0x1d6),aV(0x20c)],b=process['argv'][aV(0x1fa)](0x2),c=b[0x0],d=b[aV(0x1fa)](0x1);if(!a[aV(0x1b6)](c)){Log[aV(0x1c7)](aV(0x17b));throw Log[aV(0x1c7)](aV(0x16e));}if(c===aV(0x1af)){const f=this['findAppDirectory'](),g=this[aV(0x277)](),h=await Actions[aV(0x20b)](aV(0x163),![]);if(typeof f==='string'){const i=a114e[aV(0x217)](f,aV(0x182)),j=this[aV(0x165)](i);if(!j||h){const k=await Actions[aV(0x20b)]('App\x20name?\x20['+g['appName']+']')||g[aV(0x273)],l=a114f[aV(0x278)](i,{'flags':'w'});l['on'](aV(0x20d),function(){const aW=aV;l['write'](aW(0x16f)),l['write']('//\x20https://docs.meteor.com/api/mobile-config.html\x0a'),l['write'](aW(0x237)),l[aW(0x156)](aW(0x275)+pascalCase(g[aW(0x273)])+aW(0x176)),l[aW(0x156)](aW(0x1e6)+k+aW(0x176)),l[aW(0x156)](aW(0x1e5)),l[aW(0x156)]('});\x0a'),l[aW(0x15d)]();}),l['on'](aV(0x26b),function(){const aX=aV;Log[aX(0x1ae)](aX(0x188)+i);});}else Log['warn']('A\x20mobile-config.js\x20already\x20exists,\x20not\x20over\x20writing');}if(d[0x0]===aV(0x1bc)){const m=this[aV(0x181)]();if(typeof m===aV(0x22d)){this[aV(0x23b)](c,d);const n=a114e[aV(0x217)](m,aV(0x1da),aV(0x12d),aV(0x22b),aV(0x144),aV(0x1a6),'cordova-plugin-meteor-webapp');if(n){const o=[aV(0x248),aV(0x17d)];await this[aV(0x254)](o[aV(0x217)]('\x20'),{'cwd':f,'dev':!![],'msg':aV(0x218)}),Log[aV(0x257)]('Don\x27t\x20forget\x20these\x20commands:\x20\x0a\x20sudo\x20xcode-select\x20-s\x20/Applications/Xcode.app/Contents/Developer\x20\x0a\x20sudo\x20gem\x20install\x20cocoapods\x20\x0a\x20sudo\x20xcodebuild\x20-license\x20accept\x20\x0a\x20brew\x20install\x20ios-deploy');}}return;}}this[aV(0x23b)](c,d);}catch(p){errorHandler(aV(0x213),p),process['exit'](0x1);}}async[a114C(0x23b)](a,b){const aY=a114C;try{const c=this[aY(0x181)]();if(!c)throw new MustBeInProjectError();const d=b[aY(0x1a5)]('-p');b[d]=aY(0x158);const f=b['indexOf']('-r');b[f]=aY(0x21b);const g=b['indexOf']('-i');b[g]=aY(0x212);const h=b[aY(0x1a5)]('-x');b[h]='--exclude-archs=\x22web.browser.legacy,\x20web.cordova\x22';const i=b[aY(0x1a5)]('-m');b[i]=aY(0x155);const j=b[aY(0x1a5)](aY(0x18d));j>0x0&&b[aY(0x1cc)](j,0x1);const k=this[aY(0x142)](),l=a114f['existsSync'](a114e['join'](k,aY(0x269))),m=[aY(0x20f)],n=m[aY(0x1a5)](a)>=0x0;if(!l&&n){const p=process['cwd']();await this[aY(0x242)]({'cwd':a114e[aY(0x217)](p,aY(0x1da))});}process[aY(0x1e9)][aY(0x198)]&&!b['includes'](aY(0x158))&&(b=b['concat']([aY(0x158),process[aY(0x1e9)][aY(0x198)]]));process[aY(0x1e9)][aY(0x22a)]&&!b[aY(0x1b6)](aY(0x158))&&(b=b[aY(0x1a2)]([aY(0x158),process[aY(0x1e9)][aY(0x22a)]]));const o=[a][aY(0x1a2)](b);execSync(this['meteor']+'\x20'+o['join']('\x20'),{'stdio':'inherit','cwd':this[aY(0x142)]()});}catch(q){errorHandler(aY(0x1b4),q),process[aY(0x266)](0x1);}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){var f=a115d,c=a();while(!![]){try{var d=parseInt(f(0x174))/0x1*(parseInt(f(0x16d))/0x2)+-parseInt(f(0x16b))/0x3*(-parseInt(f(0x176))/0x4)+parseInt(f(0x169))/0x5*(parseInt(f(0x170))/0x6)+parseInt(f(0x171))/0x7*(-parseInt(f(0x175))/0x8)+parseInt(f(0x16e))/0x9+parseInt(f(0x167))/0xa+-parseInt(f(0x16f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xe9671));var a115b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a115d;if(c){var e=c[g(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){var h=a115d;return a115a[h(0x168)]()[h(0x16a)](h(0x16c))['toString']()[h(0x173)](a115a)['search'](h(0x16c));});a115a();function a115c(){var i=['216UGzyxo','244stIWFq','8672450JwNHdl','toString','4415VNQHjT','search','15261eesysn','(((.+)+)+)+$','934KPIeTa','15500934AdaEZF','43944406gXEOQM','11994PcYApU','157717NDHJHH','apply','constructor','1915OZqwNl'];a115c=function(){return i;};return a115c();}function a115d(a,b){var c=a115c();return a115d=function(d,e){d=d-0x167;var f=c[d];return f;},a115d(a,b);}export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a116q=a116d;(function(a,b){const n=a116d,c=a();while(!![]){try{const d=parseInt(n(0x89))/0x1+parseInt(n(0x8b))/0x2+-parseInt(n(0x8a))/0x3*(-parseInt(n(0x80))/0x4)+-parseInt(n(0x8c))/0x5+-parseInt(n(0x7d))/0x6+-parseInt(n(0x98))/0x7+parseInt(n(0x9a))/0x8*(parseInt(n(0x95))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xb3cbe));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a116d;if(c){const e=c[o(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const p=a116d;return a116a[p(0x92)]()[p(0x93)]('(((.+)+)+)+$')[p(0x92)]()['constructor'](a116a)['search'](p(0x85));});a116a();import a116e from'https';function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x7d;let f=c[d];return f;},a116d(a,b);}import a116f from'fs';function a116c(){const B=['post','(((.+)+)+)+$','write','assign','MAKA_DEV','4315Gxtzqn','632685iFaPZS','1671878OrMRmS','6671025qLKJIy','statusMessage','readFileSync','error','Request\x20timeout','apply','toString','search','BAD\x20RETURN','45uKXOpE','get','statusCode','2148258CBjYtI','end','2486584NNKepB','data','True','1366314cLxwBf','abort','timeout','4jULiSO','application/json','env','POST'];a116c=function(){return B;};return a116c();}const TIMEOUT=0xbb8;process[a116q(0x82)]['NODE_TLS_REJECT_UNAUTHORIZED']=process[a116q(0x82)][a116q(0x88)]===a116q(0x9c)?'0':'1';export class HTTPS{static async[a116q(0x84)]({hostname:a,path:b,data:c,headers:d,cert:e}){const r=a116q,f=JSON['stringify'](c),g={'Content-Type':r(0x81),'Content-Length':f['length']};Object['assign'](g,d);const h={'hostname':a,'port':0x1bb,'path':b,'method':r(0x83),'headers':g,'timeout':TIMEOUT};return e&&Object[r(0x87)](h,{'cert':a116f[r(0x8e)](e)}),new Promise((i,j)=>{const u=r,k=a116e['request'](h,l=>{const s=a116d;l['on'](s(0x9b),m=>{const t=s;i({'statusCode':l[t(0x97)]||0x1f4,'statusMessage':l[t(0x8d)]||t(0x94),'data':m[t(0x92)]()});});});k['on']('error',l=>{j(l);}),k['on'](u(0x7f),()=>{const v=u;k[v(0x7e)](),j({'statusCode':0x198,'statusMessage':'Request\x20timeout'});}),k[u(0x86)](f),k[u(0x99)]();});}static[a116q(0x96)]({url:a,headers:b,cert:c}){const w=a116q,d={'Content-Type':w(0x81)};Object[w(0x87)](d,b);const e={'headers':d,'timeout':TIMEOUT};return c&&Object[w(0x87)](e,{'cert':a116f[w(0x8e)](c)}),new Promise((f,g)=>{const x=w,h=a116e[x(0x96)](a,e,i=>{const y=x;i['on'](y(0x9b),j=>{const z=y;f({'statusCode':i[z(0x97)]||0x1f4,'statusMessage':i[z(0x8d)]||z(0x94),'data':j[z(0x92)]()});});});h['on'](x(0x8f),i=>{g(i);}),h['on'](x(0x7f),()=>{const A=x;h['abort'](),g({'statusCode':0x198,'statusMessage':A(0x90)});});});}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a117c(){var i=['2057571wuqOWK','209672eztxLz','80792UrkhAB','apply','458515zuKElj','(((.+)+)+)+$','3009720AOfhWD','33WVPKZI','32uXELyu','search','138943ukIdnq','70ZJHVtx','3038090DPEUbZ','toString'];a117c=function(){return i;};return a117c();}function a117d(a,b){var c=a117c();return a117d=function(d,e){d=d-0x1ae;var f=c[d];return f;},a117d(a,b);}(function(a,b){var f=a117d,c=a();while(!![]){try{var d=-parseInt(f(0x1b9))/0x1+-parseInt(f(0x1b1))/0x2*(parseInt(f(0x1b6))/0x3)+parseInt(f(0x1b7))/0x4*(parseInt(f(0x1b3))/0x5)+parseInt(f(0x1b5))/0x6+-parseInt(f(0x1ba))/0x7*(parseInt(f(0x1b0))/0x8)+-parseInt(f(0x1af))/0x9+parseInt(f(0x1bb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x71895));var a117b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a117d;if(c){var e=c[g(0x1b2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){var h=a117d;return a117a[h(0x1ae)]()[h(0x1b8)]('(((.+)+)+)+$')[h(0x1ae)]()['constructor'](a117a)['search'](h(0x1b4));});a117a();export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a118l=a118d;function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x162;let f=c[d];return f;},a118d(a,b);}(function(a,b){const i=a118d,c=a();while(!![]){try{const d=-parseInt(i(0x166))/0x1*(parseInt(i(0x183))/0x2)+-parseInt(i(0x171))/0x3*(-parseInt(i(0x182))/0x4)+-parseInt(i(0x164))/0x5+-parseInt(i(0x17b))/0x6+parseInt(i(0x165))/0x7+-parseInt(i(0x17c))/0x8*(parseInt(i(0x186))/0x9)+-parseInt(i(0x16e))/0xa*(-parseInt(i(0x184))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x94664));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a118d;if(c){const e=c[j(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const k=a118d;return a118a['toString']()[k(0x174)](k(0x179))['toString']()[k(0x187)](a118a)[k(0x174)](k(0x179));});a118a();import*as a118e from'single-line-log2';import a118f from'cli-color';import a118g from'cli-cursor';import a118h from'elegant-spinner';const isWin=process[a118l(0x181)]==='win32',check=isWin?'K':'✔',cross=isWin?'X\x20':'✘',formatOptionalOpts=a=>{const n=a118l;return a['map'](b=>{const m=a118d;return m(0x170)+b+']';})[n(0x173)]('\x20');},formatRequiredOpts=a=>{return a['map'](b=>{return'--'+b;})['join']('\x20');};export class Log{static[a118l(0x176)](a){const o=a118l;console['log'](a118f[o(0x188)](a));}static[a118l(0x177)](a){const p=a118l;console[p(0x18c)](a118f[p(0x18b)](a));}static[a118l(0x162)](a){const q=a118l;console[q(0x18c)](a118f[q(0x17d)](a));}static['error'](a){const r=a118l;console[r(0x18c)](a118f[r(0x172)][r(0x167)](a));}static[a118l(0x16b)](a){const s=a118l;console['log'](a118f[s(0x185)](a));}static[a118l(0x175)](a){const t=a118l;console[t(0x18c)](a118f[t(0x17f)](a));}static[a118l(0x17e)](a){const u=a118l;console[u(0x18c)](a118f[u(0x18f)](a));}static[a118l(0x189)](a,b,c,d,e,f){const v=a118l,g=a118f[v(0x185)];Log['bright'](d),b&&b[v(0x18a)]>0x0&&(Log[v(0x175)](g(v(0x178))),b[v(0x16a)](h=>{const w=v;Log[w(0x175)](w(0x16c)+h);})),a&&(Log['header'](v(0x18e)),Log['notice']('\x20\x20'+a[v(0x17a)]()+'\x0a')),c&&Log['bright'](g(v(0x18d))+c+'\x20'+formatRequiredOpts(e)+'\x20'+formatOptionalOpts(f)+'\x0a'),Log[v(0x16b)]('For\x20more\x20information,\x20visit\x20https://www.maka-cli.com');}static[a118l(0x168)](a=''){const x=a118l;a118g[x(0x16d)]();const b=a118h();a118g[x(0x16d)]();let c;return{'start'(d){d&&(a=d),c=setInterval(function(){const y=a118d;a118e[y(0x16f)](a118f[y(0x169)](b())+'\x20'+d);},0x5a);},'success'(d=''){const z=x;clearInterval(c),a118e[z(0x16f)](a118f[z(0x188)](check)+'\x20'+a+'\x20'+d),console[z(0x18c)](),a118g[z(0x180)]();},'failure'(d=''){const A=x;clearInterval(c),a118e[A(0x16f)](a118f['red'][A(0x167)](cross)+'\x20'+a+'\x20'+d),console['log'](),a118g['show']();},'stop'(){const B=x;clearInterval(c),a118g[B(0x180)]();}};}}function a118c(){const C=['notice','apply','4116350riWtBn','1459906dXdODm','4cCBXoC','bold','withSpinner','cyan','forEach','header','\x20>\x20','hide','13703890yerVvB','stdout','[--','287223dVqcCS','red','join','search','bright','success','warn','Examples:','(((.+)+)+)+$','trim','1224912gIaIhU','231080npOogF','cyanBright','majestic','whiteBright','show','platform','20ywNfvl','448670paEfmv','22ahVtMU','blackBright','279tPIcek','constructor','greenBright','usage','length','yellowBright','log','Usage:\x20','\x0aManual:','magentaBright'];a118c=function(){return C;};return a118c();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a119d(a,b){var c=a119c();return a119d=function(d,e){d=d-0x1db;var f=c[d];return f;},a119d(a,b);}(function(a,b){var f=a119d,c=a();while(!![]){try{var d=parseInt(f(0x1dc))/0x1*(-parseInt(f(0x1e2))/0x2)+-parseInt(f(0x1de))/0x3*(parseInt(f(0x1ea))/0x4)+parseInt(f(0x1dd))/0x5*(-parseInt(f(0x1ec))/0x6)+parseInt(f(0x1e0))/0x7*(-parseInt(f(0x1e5))/0x8)+parseInt(f(0x1e1))/0x9*(-parseInt(f(0x1e4))/0xa)+parseInt(f(0x1e8))/0xb*(-parseInt(f(0x1db))/0xc)+-parseInt(f(0x1df))/0xd*(-parseInt(f(0x1e9))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0xdb731));function a119c(){var i=['toString','apply','8304703znbiye','368648wqTqcc','139800TqzqHT','(((.+)+)+)+$','90FZnSQF','search','12GBgYvO','1RdNSPM','301330HZZNhE','63PiVuSC','2756MgCsDi','99631BvSTXV','55440HObfFw','2400114xwGRxN','constructor','1470TMrtFI','104WIEDxe'];a119c=function(){return i;};return a119c();}var a119b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a119d;if(c){var e=c[g(0x1e7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){var h=a119d;return a119a[h(0x1e6)]()['search'](h(0x1eb))[h(0x1e6)]()[h(0x1e3)](a119a)[h(0x1ed)](h(0x1eb));});a119a();export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a120d(a,b);}const a120l=a120d;(function(a,b){const j=a120d,c=a();while(!![]){try{const d=parseInt(j(0x1db))/0x1+parseInt(j(0x1eb))/0x2+-parseInt(j(0x1d0))/0x3*(-parseInt(j(0x1e9))/0x4)+-parseInt(j(0x1e7))/0x5+parseInt(j(0x1de))/0x6*(parseInt(j(0x1e6))/0x7)+-parseInt(j(0x1e8))/0x8*(-parseInt(j(0x1dc))/0x9)+parseInt(j(0x1dd))/0xa*(-parseInt(j(0x1e3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x399af));const a120b=(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;};}()),a120a=a120b(this,function(){const k=a120d;return a120a[k(0x1d9)]()[k(0x1d4)](k(0x1df))[k(0x1d9)]()[k(0x1d2)](a120a)[k(0x1d4)](k(0x1df));});a120a();import{spawn}from'child_process';function a120c(){const s=['inherit','121wMkFRF','pid','data','49497HyUFqb','2305990NONNtL','32RMJPew','4NlYJnB','disconnect','676922GTtnYT','49431IghGat','success','constructor','message','search','log','close','failure','withSpinner','toString','cwd','77327tkPTZP','1048122rOSKtS','253390ghkosx','66CtjbGo','(((.+)+)+)+$','SIGINT','kill'];a120c=function(){return s;};return a120c();}import{Log}from'../log/log.class.js';export class SpawnAsync{static[a120l(0x1d8)](a,b,c){return new Promise((d,e)=>{const m=a120d,f=Log['withSpinner'](),g=c?.[m(0x1da)]||'.';c?.['message']&&f['start'](c?.[m(0x1d3)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.['verbose']?m(0x1e2):'ignore'});process['on'](m(0x1e0),()=>{const n=m,i=h[n(0x1e4)];i&&process[n(0x1e1)](i);}),h['on'](m(0x1e5),i=>{const o=m;console[o(0x1d5)](i);}),h['on'](m(0x1ea),()=>{const p=m;c?.[p(0x1d3)]&&f[p(0x1d1)](),d();}),h['on'](m(0x1d6),()=>{const q=m;c?.[q(0x1d3)]&&f[q(0x1d1)](),d();}),h['on']('error',()=>{const r=m;c?.[r(0x1d3)]&&f[r(0x1d7)](),e();});});}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a121c(){var i=['12xhFyEY','590xujXXt','apply','toString','2190470RVHUGi','358260qdfEtP','192856Zwrjal','8488IzJYkY','778qxiUKj','121rCNLTx','386834jArTfP','63vdFFvs','199466OLceMH','1077RNgSzT'];a121c=function(){return i;};return a121c();}(function(a,b){var f=a121d,c=a();while(!![]){try{var d=parseInt(f(0xa3))/0x1+-parseInt(f(0xad))/0x2*(-parseInt(f(0xa4))/0x3)+parseInt(f(0xac))/0x4*(-parseInt(f(0xa6))/0x5)+-parseInt(f(0xa5))/0x6*(-parseInt(f(0xaf))/0x7)+parseInt(f(0xab))/0x8*(-parseInt(f(0xa2))/0x9)+-parseInt(f(0xa9))/0xa+parseInt(f(0xae))/0xb*(parseInt(f(0xaa))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x2224e));function a121d(a,b){var c=a121c();return a121d=function(d,e){d=d-0xa2;var f=c[d];return f;},a121d(a,b);}var a121b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a121d;if(c){var e=c[g(0xa7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){var h=a121d;return a121a[h(0xa8)]()['search']('(((.+)+)+)+$')[h(0xa8)]()['constructor'](a121a)['search']('(((.+)+)+)+$');});a121a();export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a122c(){const w=['constructor','message','tty','start','1HUfEkD','inherit','search','pem','host','2971790lRbkmh','ignore','join','port','toString','ssh\x20','ConnectTimeout=2','sshSync','6vcKrFi','scp','push','concat','ping','sshVerbose','3647625GnQdvu','failure','source','user','verbose','2602362VTgOcS','disconnect','env','11887659vumMwF','2485357ulqiUZ','ssh','dest','8GJnqNq','5906560tDtlIX','17004760eDQlXR','close','success'];a122c=function(){return w;};return a122c();}const a122s=a122d;function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0x10a;let f=c[d];return f;},a122d(a,b);}(function(a,b){const m=a122d,c=a();while(!![]){try{const d=-parseInt(m(0x113))/0x1*(parseInt(m(0x118))/0x2)+parseInt(m(0x12b))/0x3*(parseInt(m(0x10a))/0x4)+-parseInt(m(0x126))/0x5*(parseInt(m(0x120))/0x6)+parseInt(m(0x12f))/0x7+parseInt(m(0x10b))/0x8+-parseInt(m(0x12e))/0x9+parseInt(m(0x10c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xf24e4));const a122b=(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;};}()),a122a=a122b(this,function(){const n=a122d;return a122a[n(0x11c)]()[n(0x115)]('(((.+)+)+)+$')['toString']()[n(0x10f)](a122a)[n(0x115)]('(((.+)+)+)+$');});a122a();import a122e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';class SSH{static ['ssh']=(a,b,c)=>{return new Promise((d,e)=>{const o=a122d,f=b[o(0x129)]+'@'+b[o(0x117)],g=a122e[o(0x11a)](b[o(0x12d)],b[o(0x116)]),h=c?.[o(0x111)]||![],i=c?.[o(0x125)]||![];let j=[];h&&j[o(0x122)]('-t');i&&j[o(0x122)]('-v');j=j[o(0x123)](['-o',o(0x11e),'-i',g,'-p',b[o(0x11b)],f,a]);const k=Log['withSpinner']();c?.[o(0x110)]&&k[o(0x112)](c?.[o(0x110)]);const l=spawn(o(0x130),j,{'stdio':c?.[o(0x12a)]?o(0x114):o(0x119)});l['on'](o(0x12c),()=>{const p=o;c?.[p(0x110)]&&k[p(0x10e)](),d();}),l['on'](o(0x10d),()=>{const q=o;c?.[q(0x110)]&&k[q(0x10e)](),d();}),l['on']('error',()=>{const r=o;c?.[r(0x110)]&&k[r(0x127)](),e();});});};static [a122s(0x11f)]=(a,b,c)=>{const t=a122s,d=b[t(0x129)]+'@'+b['host'],e=a122e[t(0x11a)](b[t(0x12d)],b[t(0x116)]),f=c?.[t(0x111)]||![],g=c?.[t(0x125)]||![];let h=[];f&&h[t(0x122)]('-t'),g&&h['push']('-v'),h=h['concat'](['-o',t(0x11e),'-i',e,'-p',b['port'],d,a]),spawnSync(t(0x130),h,{'stdio':c?.[t(0x12a)]?'inherit':t(0x119)});};static[a122s(0x124)](a,b,c){const u=a122s,d=b['user']+'@'+b[u(0x117)],e=a122e[u(0x11a)](b[u(0x12d)],b[u(0x116)]),f=c?.['tty']||![];let g=[];f&&g['push']('-t');g=g[u(0x123)](['-o',u(0x11e),'-i',e,'-p',b[u(0x11b)],d,a,'2>&1']);const h=u(0x11d)+g[u(0x11a)]('\x20');return execSync(h)[u(0x11c)]();}static[a122s(0x121)](a,b){const v=a122s,c=b[v(0x129)]+'@'+b[v(0x117)]+':'+a[v(0x131)],d=a122e[v(0x11a)](b[v(0x12d)],b[v(0x116)]),e=['-i',d,'-P',b['port'],a[v(0x128)],c];spawnSync(v(0x121),e,{'stdio':a[v(0x12a)]?v(0x114):'ignore'});}}export{SSH};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){var f=a123d,c=a();while(!![]){try{var d=-parseInt(f(0x11e))/0x1*(-parseInt(f(0x127))/0x2)+-parseInt(f(0x120))/0x3*(-parseInt(f(0x125))/0x4)+parseInt(f(0x129))/0x5+-parseInt(f(0x12d))/0x6*(-parseInt(f(0x12e))/0x7)+parseInt(f(0x123))/0x8*(-parseInt(f(0x12b))/0x9)+-parseInt(f(0x11f))/0xa+-parseInt(f(0x122))/0xb*(-parseInt(f(0x128))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x3c26d));function a123d(a,b){var c=a123c();return a123d=function(d,e){d=d-0x11e;var f=c[d];return f;},a123d(a,b);}var a123b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a123d;if(c){var e=c[g(0x124)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){var h=a123d;return a123a[h(0x121)]()[h(0x12c)](h(0x12a))[h(0x121)]()[h(0x126)](a123a)[h(0x12c)]('(((.+)+)+)+$');});function a123c(){var i=['206994PdXMHp','35fTbKjY','4789YDVcGR','4817820KAVKDR','30126MEZMIT','toString','11SqzkAH','1674152uRPNTk','apply','172QRlexC','constructor','110pqpGsg','205788zPcdHJ','262935CjUCip','(((.+)+)+)+$','9ajlDgg','search'];a123c=function(){return i;};return a123c();}a123a();export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x138;let f=c[d];return f;},a124d(a,b);}const a124h=a124d;(function(a,b){const f=a124d,c=a();while(!![]){try{const d=-parseInt(f(0x13c))/0x1+parseInt(f(0x144))/0x2+-parseInt(f(0x147))/0x3+parseInt(f(0x154))/0x4*(-parseInt(f(0x14e))/0x5)+-parseInt(f(0x141))/0x6+parseInt(f(0x138))/0x7+parseInt(f(0x13f))/0x8*(parseInt(f(0x13e))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0xe81e7));const a124b=(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;};}()),a124a=a124b(this,function(){const g=a124d;return a124a[g(0x149)]()[g(0x146)](g(0x152))['toString']()[g(0x153)](a124a)['search'](g(0x152));});function a124c(){const k=['rsa:2048','10kbbUsX','-config','-x509','openssl.conf','(((.+)+)+)+$','constructor','2214580agmfug','-keyout','-out','inherit','327061YKfYmS','csrName','useConfig','cwd','1892033BgTJrk','genCSR','27kDWsZH','18955624LoJaSy','-nodes','10026684IATLNo','-key','openssl','559402ZBODCs','keyName','search','5440761zpRQMe','crtName','toString','push','req','-new'];a124c=function(){return k;};return a124c();}a124a();import{spawnSync}from'child_process';export class SSL{static[a124h(0x13d)](a){const i=a124h,b=a[i(0x13b)]?a[i(0x13b)]:process[i(0x13b)](),c=['req','-new','-newkey',i(0x14d),i(0x140),i(0x155),a[i(0x145)],i(0x156),a[i(0x139)]];a['useConfig']&&(c[i(0x14a)](i(0x14f)),c[i(0x14a)](i(0x151))),spawnSync('openssl',c,{'stdio':i(0x157),'cwd':b});}static['genSSC'](a){const j=a124h,b=a[j(0x13b)]?a[j(0x13b)]:process['cwd'](),c=[j(0x14b),j(0x150),j(0x14c),j(0x142),a[j(0x145)],j(0x156),a[j(0x148)]];a[j(0x13a)]&&(c[j(0x14a)](j(0x14f)),c[j(0x14a)](j(0x151))),spawnSync(j(0x143),c,{'stdio':j(0x157),'cwd':b});}}
|