stacks 0.58.73 → 0.59.2
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/buddy/build.ts +38 -0
- package/{core/buddy → buddy}/compile.ts +1 -1
- package/buddy/dist/chunk-d2428b387d843985.js +2016 -0
- package/buddy/dist/cli.d.ts +1 -0
- package/{core/buddy → buddy}/dist/cli.js +23 -9
- package/buddy/dist/commands/build.d.ts +2 -0
- package/buddy/dist/commands/changelog.d.ts +2 -0
- package/buddy/dist/commands/clean.d.ts +2 -0
- package/buddy/dist/commands/cloud.d.ts +2 -0
- package/buddy/dist/commands/commit.d.ts +2 -0
- package/buddy/dist/commands/configure.d.ts +2 -0
- package/buddy/dist/commands/create.d.ts +2 -0
- package/buddy/dist/commands/deploy.d.ts +2 -0
- package/buddy/dist/commands/dev.d.ts +3 -0
- package/buddy/dist/commands/dns.d.ts +2 -0
- package/buddy/dist/commands/domains.d.ts +2 -0
- package/buddy/dist/commands/fresh.d.ts +2 -0
- package/buddy/dist/commands/generate.d.ts +2 -0
- package/buddy/dist/commands/http.d.ts +2 -0
- package/buddy/dist/commands/index.d.ts +31 -0
- package/buddy/dist/commands/install.d.ts +2 -0
- package/buddy/dist/commands/key.d.ts +2 -0
- package/buddy/dist/commands/lint.d.ts +2 -0
- package/buddy/dist/commands/list.d.ts +2 -0
- package/buddy/dist/commands/make.d.ts +2 -0
- package/buddy/dist/commands/migrate.d.ts +2 -0
- package/buddy/dist/commands/ports.d.ts +2 -0
- package/buddy/dist/commands/prepublish.d.ts +2 -0
- package/buddy/dist/commands/projects.d.ts +2 -0
- package/buddy/dist/commands/release.d.ts +2 -0
- package/buddy/dist/commands/seed.d.ts +2 -0
- package/buddy/dist/commands/setup.d.ts +4 -0
- package/buddy/dist/commands/test.d.ts +2 -0
- package/buddy/dist/commands/tinker.d.ts +2 -0
- package/buddy/dist/commands/types.d.ts +2 -0
- package/buddy/dist/commands/upgrade.d.ts +2 -0
- package/buddy/dist/commands/version.d.ts +2 -0
- package/buddy/dist/index.d.ts +1 -0
- package/{core/buddy → buddy}/dist/index.js +2 -5
- package/{core/buddy → buddy}/dist/stacks +0 -0
- package/{core/buddy → buddy}/package.json +1 -3
- package/{core/buddy → buddy}/src/cli.ts +18 -13
- package/{core/buddy → buddy}/src/commands/add.ts +1 -1
- package/{core/buddy → buddy}/src/commands/commit.ts +1 -1
- package/{core/buddy → buddy}/src/commands/deploy.ts +1 -1
- package/{core/buddy → buddy}/src/commands/dev.ts +1 -3
- package/{core/buddy → buddy}/src/commands/index.ts +0 -1
- package/{core/buddy → buddy}/src/commands/list.ts +1 -1
- package/{core/buddy → buddy}/src/commands/make.ts +28 -2
- package/buddy/src/commands/ports.ts +180 -0
- package/{core/buddy → buddy}/src/commands/prepublish.ts +1 -1
- package/{core/buddy → buddy}/src/commands/projects.ts +2 -3
- package/{core/buddy → buddy}/src/commands/setup.ts +1 -0
- package/{core/buddy → buddy}/src/commands/types.ts +1 -1
- package/buddy/tsconfig.tsbuildinfo +1 -0
- package/package.json +285 -285
- package/core/.simple-git-hooks.js +0 -3
- package/core/actions/README.md +0 -58
- package/core/actions/build.ts +0 -5
- package/core/actions/dist/src/add.js +0 -29
- package/core/actions/dist/src/build/component-libs.js +0 -6
- package/core/actions/dist/src/build/core.js +0 -21
- package/core/actions/dist/src/build/stacks.js +0 -8
- package/core/actions/dist/src/build.js +0 -219
- package/core/actions/dist/src/bump.js +0 -14
- package/core/actions/dist/src/changelog.js +0 -17
- package/core/actions/dist/src/clean.js +0 -6
- package/core/actions/dist/src/commit.js +0 -17
- package/core/actions/dist/src/copy-types.js +0 -14
- package/core/actions/dist/src/database/seed.js +0 -1
- package/core/actions/dist/src/deploy/index.js +0 -31
- package/core/actions/dist/src/dev/components.js +0 -11
- package/core/actions/dist/src/dev/docs.js +0 -7
- package/core/actions/dist/src/dev/index.js +0 -92
- package/core/actions/dist/src/examples.js +0 -43
- package/core/actions/dist/src/fresh.js +0 -18
- package/core/actions/dist/src/generate/component-meta.js +0 -59
- package/core/actions/dist/src/generate/ide-helpers.js +0 -91
- package/core/actions/dist/src/generate/index.js +0 -154
- package/core/actions/dist/src/generate/lib-entries.js +0 -170
- package/core/actions/dist/src/generate/vscode-custom-data.js +0 -91
- package/core/actions/dist/src/helpers/component-meta.js +0 -50
- package/core/actions/dist/src/helpers/index.js +0 -48
- package/core/actions/dist/src/helpers/lib-entries.js +0 -161
- package/core/actions/dist/src/helpers/package-json.js +0 -136
- package/core/actions/dist/src/helpers/utils.js +0 -48
- package/core/actions/dist/src/helpers/vscode-custom-data.js +0 -83
- package/core/actions/dist/src/index.js +0 -590
- package/core/actions/dist/src/key-generate.js +0 -10
- package/core/actions/dist/src/lint/fix.js +0 -12
- package/core/actions/dist/src/lint/index.js +0 -17
- package/core/actions/dist/src/make.js +0 -291
- package/core/actions/dist/src/prepublish.js +0 -14
- package/core/actions/dist/src/release.js +0 -559
- package/core/actions/dist/src/test/coverage.js +0 -6
- package/core/actions/dist/src/test/feature.js +0 -6
- package/core/actions/dist/src/test/ui.js +0 -6
- package/core/actions/dist/src/test/unit.js +0 -6
- package/core/actions/dist/src/test.js +0 -6
- package/core/actions/dist/src/tinker.js +0 -5
- package/core/actions/dist/src/typecheck.js +0 -6
- package/core/actions/dist/src/types.js +0 -21
- package/core/actions/dist/src/upgrade/dependencies.js +0 -6
- package/core/actions/dist/src/upgrade/framework.js +0 -1
- package/core/actions/dist/src/upgrade/index.js +0 -58
- package/core/actions/dist/src/upgrade.js +0 -47
- package/core/actions/package.json +0 -92
- package/core/actions/src/action.ts +0 -52
- package/core/actions/src/actions.ts +0 -2
- package/core/actions/src/add.ts +0 -27
- package/core/actions/src/ai/request-model-access.ts +0 -74
- package/core/actions/src/build/cli.ts +0 -7
- package/core/actions/src/build/component-libs.ts +0 -5
- package/core/actions/src/build/core.ts +0 -34
- package/core/actions/src/build/desktop.ts +0 -7
- package/core/actions/src/build/docs.ts +0 -7
- package/core/actions/src/build/server.ts +0 -9
- package/core/actions/src/build/stacks.ts +0 -7
- package/core/actions/src/build.ts +0 -89
- package/core/actions/src/bump.ts +0 -18
- package/core/actions/src/cdn/invalidate-cache.ts +0 -27
- package/core/actions/src/changelog.ts +0 -21
- package/core/actions/src/check/ports.ts +0 -24
- package/core/actions/src/clean.ts +0 -6
- package/core/actions/src/commit.ts +0 -14
- package/core/actions/src/copy-types.ts +0 -22
- package/core/actions/src/database/fields.ts +0 -111
- package/core/actions/src/database/migration-mysql.ts +0 -72
- package/core/actions/src/database/migration-sqlite.ts +0 -67
- package/core/actions/src/database/migration.ts +0 -10
- package/core/actions/src/database/seed.ts +0 -4
- package/core/actions/src/database/user-migration.ts +0 -20
- package/core/actions/src/deploy/create-receipt-rule.ts +0 -55
- package/core/actions/src/deploy/index.ts +0 -46
- package/core/actions/src/dev/api.ts +0 -18
- package/core/actions/src/dev/components.ts +0 -14
- package/core/actions/src/dev/dashboard.ts +0 -7
- package/core/actions/src/dev/desktop.ts +0 -7
- package/core/actions/src/dev/docs.ts +0 -7
- package/core/actions/src/dev/index.ts +0 -48
- package/core/actions/src/dev/system-tray.ts +0 -6
- package/core/actions/src/dev/views.ts +0 -7
- package/core/actions/src/domains/add.ts +0 -67
- package/core/actions/src/domains/purchase.ts +0 -76
- package/core/actions/src/domains/remove.ts +0 -38
- package/core/actions/src/examples.ts +0 -46
- package/core/actions/src/find-projects.ts +0 -21
- package/core/actions/src/fresh.ts +0 -20
- package/core/actions/src/generate/action-types.ts +0 -25
- package/core/actions/src/generate/caddyfile.ts +0 -44
- package/core/actions/src/generate/component-meta.ts +0 -19
- package/core/actions/src/generate/custom-cli-file.ts +0 -24
- package/core/actions/src/generate/env-files.ts +0 -89
- package/core/actions/src/generate/ide-helpers.ts +0 -18
- package/core/actions/src/generate/index.ts +0 -140
- package/core/actions/src/generate/lib-entries.ts +0 -18
- package/core/actions/src/generate/model-classes.ts +0 -299
- package/core/actions/src/generate/model-generate.ts +0 -12
- package/core/actions/src/generate/pkgx-file.ts +0 -72
- package/core/actions/src/generate/symlink-core.ts +0 -3
- package/core/actions/src/generate/types.ts +0 -6
- package/core/actions/src/generate/vscode-custom-data.ts +0 -19
- package/core/actions/src/generate/web-types.ts +0 -2
- package/core/actions/src/helpers/component-meta.ts +0 -93
- package/core/actions/src/helpers/index.ts +0 -1
- package/core/actions/src/helpers/lib-entries.ts +0 -139
- package/core/actions/src/helpers/package-json.ts +0 -96
- package/core/actions/src/helpers/utils.ts +0 -70
- package/core/actions/src/helpers/vscode-custom-data.ts +0 -35
- package/core/actions/src/index.ts +0 -29
- package/core/actions/src/key-generate.ts +0 -10
- package/core/actions/src/lint/fix.ts +0 -13
- package/core/actions/src/lint/index.ts +0 -27
- package/core/actions/src/make.ts +0 -322
- package/core/actions/src/migrate/database.ts +0 -1
- package/core/actions/src/migrate/dns.ts +0 -3
- package/core/actions/src/prepublish.ts +0 -17
- package/core/actions/src/release.ts +0 -18
- package/core/actions/src/start-caddy.ts +0 -13
- package/core/actions/src/test/coverage.ts +0 -5
- package/core/actions/src/test/feature.ts +0 -5
- package/core/actions/src/test/ui.ts +0 -5
- package/core/actions/src/test/unit.ts +0 -5
- package/core/actions/src/test.ts +0 -5
- package/core/actions/src/tinker.ts +0 -10
- package/core/actions/src/typecheck.ts +0 -5
- package/core/actions/src/types.ts +0 -20
- package/core/actions/src/upgrade/binary.ts +0 -43
- package/core/actions/src/upgrade/bun.ts +0 -4
- package/core/actions/src/upgrade/dependencies.ts +0 -0
- package/core/actions/src/upgrade/framework.ts +0 -30
- package/core/actions/src/upgrade/index.ts +0 -28
- package/core/actions/src/upgrade/shell.ts +0 -64
- package/core/actions/src/upgrade.ts +0 -68
- package/core/actions/tests/example.test.ts +0 -5
- package/core/ai/README.md +0 -67
- package/core/ai/build.ts +0 -9
- package/core/ai/dist/index.js +0 -10624
- package/core/ai/package.json +0 -60
- package/core/ai/src/chatbots.ts +0 -0
- package/core/ai/src/image-generation.ts +0 -0
- package/core/ai/src/index.ts +0 -8
- package/core/ai/src/personalization.ts +0 -0
- package/core/ai/src/search.ts +0 -0
- package/core/ai/src/text-generation.ts +0 -0
- package/core/ai/src/text-summary.ts +0 -0
- package/core/ai/src/utils/client-bedrock-runtime.ts +0 -38
- package/core/ai/src/utils/client-bedrock.ts +0 -53
- package/core/ai/tests/example.test.ts +0 -5
- package/core/ai/tsconfig.json +0 -3
- package/core/alias/README.md +0 -53
- package/core/alias/build.ts +0 -8
- package/core/alias/dist/index.js +0 -218
- package/core/alias/package.json +0 -52
- package/core/alias/src/index.ts +0 -220
- package/core/alias/tests/example.test.ts +0 -5
- package/core/alias/tsconfig.json +0 -3
- package/core/analytics/README.md +0 -55
- package/core/analytics/build.ts +0 -8
- package/core/analytics/dist/index.js +0 -5
- package/core/analytics/package.json +0 -55
- package/core/analytics/src/drivers/fathom.ts +0 -1
- package/core/analytics/src/drivers/index.ts +0 -1
- package/core/analytics/src/index.ts +0 -1
- package/core/analytics/tests/example.test.ts +0 -5
- package/core/analytics/tsconfig.json +0 -3
- package/core/api/build.ts +0 -7
- package/core/api/dist/index.js +0 -639
- package/core/api/package.json +0 -61
- package/core/api/src/index.ts +0 -115
- package/core/api/tsconfig.json +0 -3
- package/core/arrays/README.md +0 -59
- package/core/arrays/build.ts +0 -8
- package/core/arrays/dist/index.js +0 -469
- package/core/arrays/package.json +0 -60
- package/core/arrays/src/arr.ts +0 -3
- package/core/arrays/src/contains.ts +0 -87
- package/core/arrays/src/helpers.ts +0 -272
- package/core/arrays/src/index.ts +0 -3
- package/core/arrays/src/macro.ts +0 -131
- package/core/arrays/src/math.ts +0 -220
- package/core/arrays/tests/example.test.ts +0 -5
- package/core/arrays/tsconfig.json +0 -3
- package/core/auth/README.md +0 -59
- package/core/auth/build.ts +0 -8
- package/core/auth/dist/index.js +0 -5
- package/core/auth/package.json +0 -51
- package/core/auth/src/index.ts +0 -1
- package/core/auth/tests/example.test.ts +0 -5
- package/core/auth/tsconfig.json +0 -3
- package/core/buddy/build.ts +0 -8
- package/core/buddy/dist/chunk-1a569f35f66ae151.js +0 -10945
- package/core/buddy/dist/chunk-bf054cfbc9cf2201.js +0 -993
- package/core/buddy/src/commands/check.ts +0 -45
- package/core/buddy/src/commands/ports.ts +0 -73
- package/core/buddy/tsconfig.json +0 -3
- package/core/build/README.md +0 -59
- package/core/build/build.ts +0 -8
- package/core/build/dist/index.js +0 -19
- package/core/build/package.json +0 -64
- package/core/build/src/index.ts +0 -11
- package/core/build/tests/example.test.ts +0 -5
- package/core/build/tsconfig.json +0 -3
- package/core/build/web-types.config.cjs +0 -5
- package/core/build/web-types.ts +0 -15
- package/core/bun-create/bud/README.md +0 -45
- package/core/bun-create/bud/package.json +0 -151
- package/core/bun-create/buddy/README.md +0 -45
- package/core/bun-create/buddy/package.json +0 -150
- package/core/bun-create/stack/README.md +0 -45
- package/core/bun-create/stack/package.json +0 -150
- package/core/bun-create/stacks/README.md +0 -45
- package/core/bun-create/stacks/package.json +0 -150
- package/core/bun-create/stx/README.md +0 -45
- package/core/bun-create/stx/package.json +0 -151
- package/core/bun-plugin-yml/README.md +0 -56
- package/core/bun-plugin-yml/TODO.md +0 -1
- package/core/bun-plugin-yml/build.ts +0 -8
- package/core/bun-plugin-yml/dist/index.js +0 -2762
- package/core/bun-plugin-yml/package.json +0 -62
- package/core/bun-plugin-yml/src/index.ts +0 -21
- package/core/bun-plugin-yml/tests/example.test.ts +0 -5
- package/core/bun-plugin-yml/tsconfig.json +0 -3
- package/core/cache/README.md +0 -59
- package/core/cache/build.ts +0 -8
- package/core/cache/dist/index.js +0 -88
- package/core/cache/package.json +0 -66
- package/core/cache/src/drivers/dynamodb.ts +0 -119
- package/core/cache/src/drivers/index.ts +0 -2
- package/core/cache/src/drivers/redis.ts +0 -37
- package/core/cache/src/index.ts +0 -1
- package/core/cache/tests/DynamoDB.test.ts +0 -135
- package/core/cache/tests/Memcached.test.ts +0 -51
- package/core/cache/tests/Redis.test.ts +0 -84
- package/core/cache/tsconfig.json +0 -3
- package/core/chat/README.md +0 -83
- package/core/chat/build.ts +0 -8
- package/core/chat/dist/index.js +0 -42
- package/core/chat/package.json +0 -74
- package/core/chat/src/drivers/discord.ts +0 -15
- package/core/chat/src/drivers/slack.ts +0 -24
- package/core/chat/src/drivers/teams.ts +0 -24
- package/core/chat/src/index.ts +0 -3
- package/core/chat/tests/example.test.ts +0 -5
- package/core/chat/tsconfig.json +0 -3
- package/core/cli/README.md +0 -168
- package/core/cli/build.ts +0 -8
- package/core/cli/dist/index.js +0 -780
- package/core/cli/package.json +0 -92
- package/core/cli/src/actions/index.ts +0 -1
- package/core/cli/src/actions/install.ts +0 -40
- package/core/cli/src/cli.ts +0 -30
- package/core/cli/src/command.ts +0 -47
- package/core/cli/src/console.ts +0 -79
- package/core/cli/src/exec.ts +0 -114
- package/core/cli/src/helpers.ts +0 -80
- package/core/cli/src/index.ts +0 -10
- package/core/cli/src/parse.ts +0 -179
- package/core/cli/src/run.ts +0 -99
- package/core/cli/src/spinner.ts +0 -3
- package/core/cli/src/utils.ts +0 -82
- package/core/cli/tests/example.test.ts +0 -5
- package/core/cli/tsconfig.json +0 -3
- package/core/cloud/README.md +0 -67
- package/core/cloud/build.ts +0 -12
- package/core/cloud/dist/index.js +0 -2013
- package/core/cloud/dist/origin-request.js +0 -27
- package/core/cloud/package.json +0 -113
- package/core/cloud/src/cloud/ai.ts +0 -94
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +0 -386
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +0 -15
- package/core/cloud/src/cloud/cache.ts +0 -0
- package/core/cloud/src/cloud/cdn.ts +0 -427
- package/core/cloud/src/cloud/cli.ts +0 -45
- package/core/cloud/src/cloud/compute.ts +0 -212
- package/core/cloud/src/cloud/dashboard.ts +0 -86
- package/core/cloud/src/cloud/database.ts +0 -0
- package/core/cloud/src/cloud/deployment.ts +0 -41
- package/core/cloud/src/cloud/dns.ts +0 -42
- package/core/cloud/src/cloud/docs.ts +0 -51
- package/core/cloud/src/cloud/email.ts +0 -339
- package/core/cloud/src/cloud/file-system.ts +0 -35
- package/core/cloud/src/cloud/index.ts +0 -135
- package/core/cloud/src/cloud/jump-box.ts +0 -48
- package/core/cloud/src/cloud/lambda/ask/index.js +0 -35
- package/core/cloud/src/cloud/lambda/cli-setup/index.js +0 -67
- package/core/cloud/src/cloud/lambda/summarize/index.js +0 -35
- package/core/cloud/src/cloud/network.ts +0 -32
- package/core/cloud/src/cloud/permissions.ts +0 -33
- package/core/cloud/src/cloud/queue.ts +0 -142
- package/core/cloud/src/cloud/redirects.ts +0 -45
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +0 -15
- package/core/cloud/src/cloud/search-engine.ts +0 -108
- package/core/cloud/src/cloud/security.ts +0 -259
- package/core/cloud/src/cloud/storage.ts +0 -168
- package/core/cloud/src/edge/origin-request.ts +0 -49
- package/core/cloud/src/helpers.ts +0 -609
- package/core/cloud/src/index.ts +0 -2
- package/core/cloud/src/types.ts +0 -28
- package/core/cloud/tests/example.test.ts +0 -5
- package/core/cloud/tsconfig.json +0 -3
- package/core/cloud/zip.ts +0 -17
- package/core/collections/README.md +0 -71
- package/core/collections/build.ts +0 -8
- package/core/collections/dist/index.js +0 -6
- package/core/collections/package.json +0 -58
- package/core/collections/src/index.ts +0 -1
- package/core/collections/tests/example.test.ts +0 -5
- package/core/collections/tsconfig.json +0 -3
- package/core/config/README.md +0 -71
- package/core/config/build.ts +0 -8
- package/core/config/dist/index.js +0 -1823
- package/core/config/package.json +0 -54
- package/core/config/src/config.ts +0 -39
- package/core/config/src/defaults.ts +0 -481
- package/core/config/src/helpers.ts +0 -256
- package/core/config/src/index.ts +0 -2
- package/core/config/src/overrides.ts +0 -51
- package/core/config/tests/example.test.ts +0 -5
- package/core/config/tsconfig.json +0 -3
- package/core/custom-elements.json +0 -4
- package/core/database/README.md +0 -59
- package/core/database/build.ts +0 -8
- package/core/database/dist/index.js +0 -200
- package/core/database/package.json +0 -79
- package/core/database/src/index.ts +0 -63
- package/core/database/src/kysely-bun-worker/driver.ts +0 -144
- package/core/database/src/kysely-bun-worker/index.ts +0 -46
- package/core/database/src/kysely-bun-worker/mitt.ts +0 -24
- package/core/database/src/kysely-bun-worker/type.ts +0 -40
- package/core/database/src/kysely-bun-worker/worker.ts +0 -52
- package/core/database/src/migrations/index.ts +0 -73
- package/core/database/src/seeder/index.ts +0 -79
- package/core/database/tests/example.test.ts +0 -5
- package/core/database/tsconfig.json +0 -3
- package/core/datetime/README.md +0 -66
- package/core/datetime/build.ts +0 -8
- package/core/datetime/dist/index.js +0 -9
- package/core/datetime/package.json +0 -57
- package/core/datetime/src/index.ts +0 -7
- package/core/datetime/tests/example.test.ts +0 -5
- package/core/datetime/tsconfig.json +0 -3
- package/core/desktop/README.md +0 -49
- package/core/desktop/build.ts +0 -8
- package/core/desktop/dist/index.js +0 -3081
- package/core/desktop/package.json +0 -83
- package/core/desktop/src/index.ts +0 -43
- package/core/desktop/src/system-tray.ts +0 -1
- package/core/desktop/tests/example.test.ts +0 -5
- package/core/desktop/tsconfig.json +0 -3
- package/core/development/README.md +0 -27
- package/core/development/build.ts +0 -8
- package/core/development/dist/index.js +0 -6
- package/core/development/package.json +0 -77
- package/core/development/src/index.ts +0 -0
- package/core/development/tests/example.test.ts +0 -5
- package/core/development/tsconfig.json +0 -3
- package/core/dns/README.md +0 -56
- package/core/dns/build.ts +0 -8
- package/core/dns/dist/index.js +0 -166
- package/core/dns/package.json +0 -77
- package/core/dns/src/drivers/aws.ts +0 -224
- package/core/dns/src/index.ts +0 -20
- package/core/dns/tests/example.test.ts +0 -5
- package/core/dns/tsconfig.json +0 -3
- package/core/docs/README.md +0 -59
- package/core/docs/build.ts +0 -8
- package/core/docs/dist/index.js +0 -205
- package/core/docs/package.json +0 -70
- package/core/docs/src/index.ts +0 -67
- package/core/docs/src/meta.ts +0 -32
- package/core/docs/src/plugins.ts +0 -4
- package/core/docs/src/scripts/pwa.ts +0 -116
- package/core/docs/tests/example.test.ts +0 -5
- package/core/docs/tsconfig.json +0 -3
- package/core/email/README.md +0 -155
- package/core/email/build-inbound.ts +0 -8
- package/core/email/build.ts +0 -8
- package/core/email/dist/index.js +0 -306735
- package/core/email/email-forwarder.cjs +0 -407
- package/core/email/email-forwarder.zip +0 -0
- package/core/email/package.json +0 -69
- package/core/email/src/drivers/index.ts +0 -3
- package/core/email/src/drivers/mailgun.ts +0 -21
- package/core/email/src/drivers/nodemailer.ts +0 -23
- package/core/email/src/drivers/ses.ts +0 -22
- package/core/email/src/email.ts +0 -84
- package/core/email/src/index.ts +0 -3
- package/core/email/src/send.ts +0 -37
- package/core/email/src/server/converter.ts +0 -305
- package/core/email/src/server/inbound.ts +0 -406
- package/core/email/src/server/outbound.ts +0 -296
- package/core/email/src/template.ts +0 -18
- package/core/email/src/types.ts +0 -39
- package/core/email/src/utils/config.ts +0 -7
- package/core/email/tests/example.test.ts +0 -5
- package/core/email/tsconfig.json +0 -3
- package/core/enums/README.md +0 -54
- package/core/enums/build.ts +0 -8
- package/core/enums/dist/index.js +0 -105
- package/core/enums/package.json +0 -49
- package/core/enums/src/index.ts +0 -102
- package/core/enums/tests/example.test.ts +0 -5
- package/core/enums/tsconfig.json +0 -3
- package/core/env/README.md +0 -71
- package/core/env/build.ts +0 -8
- package/core/env/dist/index.js +0 -238
- package/core/env/package.json +0 -55
- package/core/env/src/index.ts +0 -76
- package/core/env/src/types.ts +0 -54
- package/core/env/src/utils.ts +0 -1
- package/core/env/tests/example.test.ts +0 -5
- package/core/env/tsconfig.json +0 -3
- package/core/error-handling/README.md +0 -131
- package/core/error-handling/build.ts +0 -8
- package/core/error-handling/dist/index.js +0 -432
- package/core/error-handling/package.json +0 -63
- package/core/error-handling/src/handler.ts +0 -51
- package/core/error-handling/src/index.ts +0 -2
- package/core/error-handling/tests/example.test.ts +0 -5
- package/core/error-handling/tsconfig.json +0 -3
- package/core/eslint-config/.gitattributes +0 -2
- package/core/eslint-config/README.md +0 -587
- package/core/eslint-config/build.ts +0 -8
- package/core/eslint-config/package.json +0 -122
- package/core/eslint-config/src/configs/comments.ts +0 -19
- package/core/eslint-config/src/configs/formatters.ts +0 -187
- package/core/eslint-config/src/configs/ignores.ts +0 -10
- package/core/eslint-config/src/configs/imports.ts +0 -46
- package/core/eslint-config/src/configs/index.ts +0 -21
- package/core/eslint-config/src/configs/javascript.ts +0 -226
- package/core/eslint-config/src/configs/jsdoc.ts +0 -42
- package/core/eslint-config/src/configs/jsonc.ts +0 -86
- package/core/eslint-config/src/configs/markdown.ts +0 -110
- package/core/eslint-config/src/configs/node.ts +0 -23
- package/core/eslint-config/src/configs/perfectionist.ts +0 -18
- package/core/eslint-config/src/configs/react.ts +0 -111
- package/core/eslint-config/src/configs/sort.ts +0 -223
- package/core/eslint-config/src/configs/stylistic.ts +0 -57
- package/core/eslint-config/src/configs/svelte.ts +0 -107
- package/core/eslint-config/src/configs/test.ts +0 -54
- package/core/eslint-config/src/configs/toml.ts +0 -72
- package/core/eslint-config/src/configs/typescript.ts +0 -157
- package/core/eslint-config/src/configs/unicorn.ts +0 -41
- package/core/eslint-config/src/configs/unocss.ts +0 -43
- package/core/eslint-config/src/configs/vue.ts +0 -168
- package/core/eslint-config/src/configs/yaml.ts +0 -72
- package/core/eslint-config/src/factory.ts +0 -255
- package/core/eslint-config/src/globs.ts +0 -91
- package/core/eslint-config/src/index.ts +0 -9
- package/core/eslint-config/src/plugins.ts +0 -10
- package/core/eslint-config/src/stub.d.ts +0 -3
- package/core/eslint-config/src/types.ts +0 -366
- package/core/eslint-config/src/utils.ts +0 -72
- package/core/eslint-config/src/vendor/prettier-types.ts +0 -136
- package/core/eslint-config/test/cli.spec.ts +0 -91
- package/core/eslint-config/test/fixtures.test.ts +0 -125
- package/core/eslint-config/tsconfig.json +0 -17
- package/core/eslint-config/tsup.config.ts +0 -8
- package/core/events/README.md +0 -76
- package/core/events/build.ts +0 -8
- package/core/events/dist/index.js +0 -63
- package/core/events/package.json +0 -53
- package/core/events/src/index.ts +0 -167
- package/core/events/tests/example.test.ts +0 -5
- package/core/events/tsconfig.json +0 -3
- package/core/faker/README.md +0 -53
- package/core/faker/build.ts +0 -8
- package/core/faker/dist/index.js +0 -6
- package/core/faker/package.json +0 -62
- package/core/faker/src/index.ts +0 -1
- package/core/faker/tests/example.test.ts +0 -5
- package/core/faker/tsconfig.json +0 -3
- package/core/git/README.md +0 -65
- package/core/git/build.ts +0 -8
- package/core/git/dist/index.js +0 -46
- package/core/git/package.json +0 -69
- package/core/git/src/index.ts +0 -63
- package/core/git/tests/example.test.ts +0 -5
- package/core/git/tsconfig.json +0 -3
- package/core/health/README.md +0 -56
- package/core/health/build.ts +0 -8
- package/core/health/dist/index.js +0 -9
- package/core/health/package.json +0 -59
- package/core/health/src/drivers/index.ts +0 -1
- package/core/health/src/drivers/ohdear.ts +0 -1
- package/core/health/src/index.ts +0 -2
- package/core/health/src/notifications/index.ts +0 -1
- package/core/health/tests/example.test.ts +0 -5
- package/core/health/tsconfig.json +0 -3
- package/core/http/README.md +0 -59
- package/core/http/build.ts +0 -8
- package/core/http/dist/index.js +0 -65
- package/core/http/package.json +0 -53
- package/core/http/src/index.ts +0 -71
- package/core/http/tsconfig.json +0 -3
- package/core/index.ts +0 -57
- package/core/lint/.eslintrc.json +0 -3
- package/core/lint/README.md +0 -73
- package/core/lint/build.ts +0 -8
- package/core/lint/dist/index.js +0 -6
- package/core/lint/package.json +0 -70
- package/core/lint/src/index.ts +0 -3
- package/core/lint/tests/example.test.ts +0 -5
- package/core/lint/tsconfig.json +0 -3
- package/core/logging/README.md +0 -58
- package/core/logging/build.ts +0 -8
- package/core/logging/dist/index.js +0 -90
- package/core/logging/package.json +0 -62
- package/core/logging/src/index.ts +0 -137
- package/core/logging/tests/example.test.ts +0 -5
- package/core/logging/tsconfig.json +0 -3
- package/core/notifications/README.md +0 -272
- package/core/notifications/build.ts +0 -8
- package/core/notifications/dist/index.js +0 -54
- package/core/notifications/package.json +0 -104
- package/core/notifications/src/drivers/chat.ts +0 -1
- package/core/notifications/src/drivers/email.ts +0 -1
- package/core/notifications/src/drivers/index.ts +0 -4
- package/core/notifications/src/drivers/push.ts +0 -1
- package/core/notifications/src/drivers/sms.ts +0 -1
- package/core/notifications/src/index.ts +0 -51
- package/core/notifications/src/tailwind.config.ts +0 -39
- package/core/notifications/src/utils/config.ts +0 -5
- package/core/notifications/src/utils/template.html +0 -8
- package/core/notifications/tests/chat/Slack.test.ts +0 -34
- package/core/notifications/tests/email/Mailgun.test.ts +0 -40
- package/core/notifications/tests/email/Sendgrid.test.ts +0 -40
- package/core/notifications/tests/sms/Twilio.test.ts +0 -37
- package/core/notifications/tsconfig.json +0 -3
- package/core/objects/README.md +0 -71
- package/core/objects/build.ts +0 -8
- package/core/objects/dist/index.js +0 -64
- package/core/objects/package.json +0 -64
- package/core/objects/src/index.ts +0 -145
- package/core/objects/tests/example.test.ts +0 -5
- package/core/objects/tsconfig.json +0 -3
- package/core/orm/README.md +0 -48
- package/core/orm/build.ts +0 -8
- package/core/orm/dist/index.js +0 -6
- package/core/orm/package.json +0 -60
- package/core/orm/src/index.ts +0 -49
- package/core/orm/tests/example.test.ts +0 -5
- package/core/orm/tsconfig.json +0 -3
- package/core/path/README.md +0 -64
- package/core/path/build.ts +0 -8
- package/core/path/dist/index.js +0 -587
- package/core/path/package.json +0 -55
- package/core/path/src/index.ts +0 -632
- package/core/path/tests/example.test.ts +0 -5
- package/core/path/tsconfig.json +0 -3
- package/core/payments/README.md +0 -64
- package/core/payments/build.ts +0 -8
- package/core/payments/dist/index.js +0 -6297
- package/core/payments/package.json +0 -61
- package/core/payments/src/drivers/stripe.ts +0 -116
- package/core/payments/src/index.ts +0 -1
- package/core/payments/tests/example.test.ts +0 -5
- package/core/payments/tsconfig.json +0 -3
- package/core/playwright.config.ts +0 -109
- package/core/push/README.md +0 -71
- package/core/push/build.ts +0 -9
- package/core/push/dist/index.js +0 -35
- package/core/push/package.json +0 -65
- package/core/push/src/drivers/expo.ts +0 -21
- package/core/push/src/drivers/fcm.ts +0 -21
- package/core/push/src/drivers/index.ts +0 -2
- package/core/push/src/index.ts +0 -1
- package/core/push/tests/example.test.ts +0 -5
- package/core/push/tsconfig.json +0 -3
- package/core/query-builder/README.md +0 -48
- package/core/query-builder/build.ts +0 -8
- package/core/query-builder/dist/index.js +0 -18
- package/core/query-builder/package.json +0 -60
- package/core/query-builder/src/index.ts +0 -1
- package/core/query-builder/src/kysely.ts +0 -38
- package/core/query-builder/tests/example.test.ts +0 -5
- package/core/query-builder/tsconfig.json +0 -3
- package/core/queue/README.md +0 -59
- package/core/queue/build.ts +0 -8
- package/core/queue/dist/index.js +0 -25
- package/core/queue/package.json +0 -56
- package/core/queue/src/index.ts +0 -23
- package/core/queue/tests/example.test.ts +0 -5
- package/core/queue/tsconfig.json +0 -3
- package/core/raycast/package.json +0 -9
- package/core/raycast/src/index.ts +0 -0
- package/core/realtime/README.md +0 -59
- package/core/realtime/build.ts +0 -8
- package/core/realtime/dist/index.js +0 -6
- package/core/realtime/package.json +0 -53
- package/core/realtime/src/drivers/index.ts +0 -1
- package/core/realtime/src/index.ts +0 -1
- package/core/realtime/tests/example.test.ts +0 -5
- package/core/realtime/tsconfig.json +0 -3
- package/core/repl/README.md +0 -53
- package/core/repl/build.ts +0 -8
- package/core/repl/dist/index.js +0 -6
- package/core/repl/package.json +0 -60
- package/core/repl/src/index.ts +0 -1
- package/core/repl/tests/example.test.ts +0 -5
- package/core/repl/tsconfig.json +0 -3
- package/core/router/README.md +0 -59
- package/core/router/build.ts +0 -8
- package/core/router/dist/index.js +0 -1544
- package/core/router/package.json +0 -64
- package/core/router/src/index.ts +0 -4
- package/core/router/src/middleware.ts +0 -34
- package/core/router/src/request.ts +0 -44
- package/core/router/src/router.ts +0 -310
- package/core/router/src/server.ts +0 -173
- package/core/router/tests/example.test.ts +0 -5
- package/core/router/tsconfig.json +0 -3
- package/core/scheduler/README.md +0 -137
- package/core/scheduler/build.ts +0 -8
- package/core/scheduler/dist/index.js +0 -742
- package/core/scheduler/package.json +0 -62
- package/core/scheduler/src/constants.ts +0 -81
- package/core/scheduler/src/errors.ts +0 -7
- package/core/scheduler/src/index.ts +0 -20
- package/core/scheduler/src/job.ts +0 -315
- package/core/scheduler/src/schedule.ts +0 -116
- package/core/scheduler/src/time.ts +0 -823
- package/core/scheduler/src/types/cron.ts +0 -98
- package/core/scheduler/src/types/utils.ts +0 -14
- package/core/scheduler/src/utils.ts +0 -19
- package/core/scheduler/tests/cron.fuzz.ts +0 -120
- package/core/scheduler/tests/cron.test.ts +0 -1243
- package/core/scheduler/tests/crontime.test.ts +0 -780
- package/core/scheduler/tsconfig.json +0 -3
- package/core/search-engine/README.md +0 -66
- package/core/search-engine/build.ts +0 -8
- package/core/search-engine/dist/index.js +0 -87
- package/core/search-engine/package.json +0 -68
- package/core/search-engine/src/drivers/index.ts +0 -1
- package/core/search-engine/src/drivers/meilisearch.ts +0 -124
- package/core/search-engine/src/drivers/opensearch.ts +0 -59
- package/core/search-engine/src/helpers.ts +0 -138
- package/core/search-engine/src/index.ts +0 -69
- package/core/search-engine/tests/example.test.ts +0 -5
- package/core/search-engine/tsconfig.json +0 -3
- package/core/security/README.md +0 -66
- package/core/security/build.ts +0 -8
- package/core/security/dist/index.js +0 -3285
- package/core/security/package.json +0 -66
- package/core/security/src/crypt.ts +0 -23
- package/core/security/src/hash.ts +0 -54
- package/core/security/src/index.ts +0 -3
- package/core/security/src/key.ts +0 -11
- package/core/security/tests/example.test.ts +0 -5
- package/core/security/tsconfig.json +0 -3
- package/core/server/README.md +0 -51
- package/core/server/build.ts +0 -8
- package/core/server/dist/index.js +0 -13591
- package/core/server/package.json +0 -68
- package/core/server/src/config.ts +0 -76
- package/core/server/src/index.ts +0 -1
- package/core/server/tests/example.test.ts +0 -5
- package/core/server/tsconfig.json +0 -3
- package/core/shell/README.md +0 -55
- package/core/shell/build.ts +0 -8
- package/core/shell/dist/index.js +0 -6
- package/core/shell/package.json +0 -39
- package/core/shell/src/buddy.plugin.zsh +0 -120
- package/core/shell/src/index.ts +0 -1
- package/core/signals/README.md +0 -105
- package/core/signals/build.ts +0 -8
- package/core/signals/dist/index.js +0 -9
- package/core/signals/package.json +0 -64
- package/core/signals/src/index.ts +0 -1
- package/core/signals/tests/example.test.ts +0 -5
- package/core/signals/tsconfig.json +0 -3
- package/core/slug/README.md +0 -59
- package/core/slug/build.ts +0 -8
- package/core/slug/dist/index.js +0 -5
- package/core/slug/package.json +0 -66
- package/core/slug/src/index.ts +0 -56
- package/core/slug/tests/example.test.ts +0 -5
- package/core/slug/tsconfig.json +0 -3
- package/core/sms/README.md +0 -137
- package/core/sms/build.ts +0 -9
- package/core/sms/dist/index.js +0 -240
- package/core/sms/package.json +0 -83
- package/core/sms/src/drivers/gupshup.ts +0 -21
- package/core/sms/src/drivers/index.ts +0 -8
- package/core/sms/src/drivers/nexmo.ts +0 -23
- package/core/sms/src/drivers/plivo.ts +0 -23
- package/core/sms/src/drivers/sms77.ts +0 -22
- package/core/sms/src/drivers/sns.ts +0 -22
- package/core/sms/src/drivers/telnyx.ts +0 -23
- package/core/sms/src/drivers/termii.ts +0 -22
- package/core/sms/src/drivers/twilio.ts +0 -23
- package/core/sms/src/index.ts +0 -1
- package/core/sms/tests/example.test.ts +0 -5
- package/core/sms/tsconfig.json +0 -3
- package/core/storage/README.md +0 -74
- package/core/storage/build.ts +0 -8
- package/core/storage/dist/index.js +0 -816
- package/core/storage/package.json +0 -78
- package/core/storage/src/copy.ts +0 -42
- package/core/storage/src/delete.ts +0 -131
- package/core/storage/src/drivers/aws.ts +0 -15
- package/core/storage/src/drivers/index.ts +0 -1
- package/core/storage/src/files.ts +0 -187
- package/core/storage/src/folders.ts +0 -51
- package/core/storage/src/fs.ts +0 -9
- package/core/storage/src/glob.ts +0 -1
- package/core/storage/src/hash.ts +0 -39
- package/core/storage/src/helpers.ts +0 -29
- package/core/storage/src/index.ts +0 -11
- package/core/storage/src/move.ts +0 -84
- package/core/storage/src/storage.ts +0 -10
- package/core/storage/src/visibility.ts +0 -6
- package/core/storage/src/zip.ts +0 -55
- package/core/storage/tests/example.test.ts +0 -5
- package/core/storage/tsconfig.json +0 -3
- package/core/strings/README.md +0 -137
- package/core/strings/build.ts +0 -9
- package/core/strings/dist/index.js +0 -393
- package/core/strings/package.json +0 -82
- package/core/strings/src/case.ts +0 -27
- package/core/strings/src/helpers.ts +0 -3
- package/core/strings/src/index.ts +0 -2
- package/core/strings/src/is.ts +0 -170
- package/core/strings/src/macro.ts +0 -131
- package/core/strings/src/pluralize.ts +0 -26
- package/core/strings/src/string.ts +0 -5
- package/core/strings/src/types.ts +0 -4
- package/core/strings/src/utils.ts +0 -117
- package/core/strings/tests/example.test.ts +0 -5
- package/core/strings/tsconfig.json +0 -3
- package/core/tables/README.md +0 -110
- package/core/tables/examples/vue/App.stx +0 -12
- package/core/tables/examples/vue/favicon.png +0 -0
- package/core/tables/examples/vue/index.html +0 -20
- package/core/tables/examples/web/favicon.png +0 -0
- package/core/tables/examples/web/index.html +0 -13
- package/core/tables/index.html +0 -13
- package/core/tables/package.json +0 -57
- package/core/tables/src/App.stx +0 -23
- package/core/tables/src/commands/index.ts +0 -1
- package/core/tables/src/components/Demo.stx +0 -84
- package/core/tables/src/components/README.md +0 -109
- package/core/tables/src/components/Table.stx +0 -342
- package/core/tables/src/components/TableBody.stx +0 -32
- package/core/tables/src/components/TableCellActionItems.stx +0 -9
- package/core/tables/src/components/TableFilters.stx +0 -704
- package/core/tables/src/components/TableHead.stx +0 -60
- package/core/tables/src/components/TablePagination.stx +0 -131
- package/core/tables/src/components/TableRow.stx +0 -73
- package/core/tables/src/components/TableSearch.stx +0 -39
- package/core/tables/src/components/Tooltip.stx +0 -10
- package/core/tables/src/components.d.ts +0 -24
- package/core/tables/src/config/tables.ts +0 -2
- package/core/tables/src/docs/index.md +0 -0
- package/core/tables/src/functions/README.md +0 -8
- package/core/tables/src/functions/dark.ts +0 -3
- package/core/tables/src/functions/index.ts +0 -2
- package/core/tables/src/functions/table.ts +0 -207
- package/core/tables/src/main.ts +0 -4
- package/core/tables/tests/example.test.ts +0 -5
- package/core/tables/tsconfig.json +0 -3
- package/core/testing/README.md +0 -59
- package/core/testing/build.ts +0 -8
- package/core/testing/dist/index.js +0 -15025
- package/core/testing/package.json +0 -65
- package/core/testing/src/index.ts +0 -13
- package/core/testing/tsconfig.json +0 -3
- package/core/tinker/package.json +0 -47
- package/core/tinker/src/index.ts +0 -1
- package/core/tinker/tsconfig.json +0 -3
- package/core/tmp.json +0 -0
- package/core/tsconfig.json +0 -83
- package/core/tunnel/README.md +0 -53
- package/core/tunnel/build.ts +0 -8
- package/core/tunnel/dist/index.js +0 -10
- package/core/tunnel/package.json +0 -58
- package/core/tunnel/src/index.ts +0 -6
- package/core/tunnel/tests/example.test.ts +0 -5
- package/core/tunnel/tsconfig.json +0 -3
- package/core/types/README.md +0 -59
- package/core/types/build.ts +0 -8
- package/core/types/dist/index.js +0 -2285
- package/core/types/package.json +0 -87
- package/core/types/src/ai.ts +0 -26
- package/core/types/src/analytics.ts +0 -21
- package/core/types/src/api.ts +0 -65
- package/core/types/src/app.ts +0 -151
- package/core/types/src/auto-imports.ts +0 -1
- package/core/types/src/binary.ts +0 -13
- package/core/types/src/build.ts +0 -2
- package/core/types/src/cache.ts +0 -98
- package/core/types/src/cdn.ts +0 -17
- package/core/types/src/chat.ts +0 -5
- package/core/types/src/cli.ts +0 -333
- package/core/types/src/cloud.ts +0 -105
- package/core/types/src/components.ts +0 -64
- package/core/types/src/configure.ts +0 -13
- package/core/types/src/cron-jobs.ts +0 -51
- package/core/types/src/database.ts +0 -45
- package/core/types/src/dependencies.ts +0 -69
- package/core/types/src/deploy.ts +0 -13
- package/core/types/src/dns.ts +0 -186
- package/core/types/src/docs.ts +0 -26
- package/core/types/src/email.ts +0 -19
- package/core/types/src/env.ts +0 -1
- package/core/types/src/errors.ts +0 -11
- package/core/types/src/events.ts +0 -30
- package/core/types/src/exit-code.ts +0 -10
- package/core/types/src/file-systems.ts +0 -70
- package/core/types/src/git.ts +0 -133
- package/core/types/src/hashing.ts +0 -131
- package/core/types/src/helpers.ts +0 -11
- package/core/types/src/i18n.ts +0 -19
- package/core/types/src/index.ts +0 -61
- package/core/types/src/inspect.ts +0 -10
- package/core/types/src/layout.ts +0 -8
- package/core/types/src/library.ts +0 -156
- package/core/types/src/logger.ts +0 -54
- package/core/types/src/manifest.ts +0 -9
- package/core/types/src/model.ts +0 -72
- package/core/types/src/money.ts +0 -3
- package/core/types/src/native.ts +0 -0
- package/core/types/src/notifications.ts +0 -147
- package/core/types/src/pages.ts +0 -10
- package/core/types/src/payments.ts +0 -65
- package/core/types/src/ports.ts +0 -19
- package/core/types/src/promise.ts +0 -1
- package/core/types/src/push.ts +0 -36
- package/core/types/src/pwa.ts +0 -8
- package/core/types/src/queue.ts +0 -38
- package/core/types/src/reactivity.ts +0 -1
- package/core/types/src/request.ts +0 -3
- package/core/types/src/router.ts +0 -73
- package/core/types/src/scheduler.ts +0 -1
- package/core/types/src/search-engine.ts +0 -136
- package/core/types/src/security.ts +0 -23
- package/core/types/src/services.ts +0 -44
- package/core/types/src/sms.ts +0 -5
- package/core/types/src/ssg.ts +0 -3
- package/core/types/src/stacks.ts +0 -246
- package/core/types/src/storage.ts +0 -13
- package/core/types/src/tables.ts +0 -57
- package/core/types/src/team.ts +0 -8
- package/core/types/src/ui.ts +0 -189
- package/core/types/src/utils.ts +0 -47
- package/core/types/tsconfig.json +0 -3
- package/core/ui/README.md +0 -66
- package/core/ui/build.ts +0 -8
- package/core/ui/dist/components.js +0 -68
- package/core/ui/dist/index.js +0 -121
- package/core/ui/package.json +0 -93
- package/core/ui/src/components/autocomplete.ts +0 -0
- package/core/ui/src/components/disclosure.ts +0 -5
- package/core/ui/src/components/menu.ts +0 -1
- package/core/ui/src/components/modal.ts +0 -6
- package/core/ui/src/components/popover.ts +0 -1
- package/core/ui/src/components/radio-group.ts +0 -5
- package/core/ui/src/components/select.ts +0 -6
- package/core/ui/src/components/tabs.ts +0 -1
- package/core/ui/src/components/toggle.ts +0 -1
- package/core/ui/src/components/transition.ts +0 -1
- package/core/ui/src/components.ts +0 -10
- package/core/ui/src/index.ts +0 -15
- package/core/ui/src/uno.config.ts +0 -66
- package/core/ui/tests/example.test.ts +0 -5
- package/core/ui/tsconfig.json +0 -3
- package/core/utils/build.ts +0 -8
- package/core/utils/dist/index.js +0 -3240
- package/core/utils/package.json +0 -111
- package/core/utils/scripts/export-size.ts +0 -94
- package/core/utils/src/base.ts +0 -12
- package/core/utils/src/clean.ts +0 -17
- package/core/utils/src/config.ts +0 -25
- package/core/utils/src/currency.ts +0 -29
- package/core/utils/src/debounce.ts +0 -1
- package/core/utils/src/delete.ts +0 -1
- package/core/utils/src/equal.ts +0 -27
- package/core/utils/src/export-size.ts +0 -1
- package/core/utils/src/find.ts +0 -91
- package/core/utils/src/function.ts +0 -32
- package/core/utils/src/git.ts +0 -11
- package/core/utils/src/glob.ts +0 -1
- package/core/utils/src/guards.ts +0 -39
- package/core/utils/src/hash.ts +0 -26
- package/core/utils/src/helpers.ts +0 -187
- package/core/utils/src/index.ts +0 -24
- package/core/utils/src/macroable.ts +0 -1
- package/core/utils/src/math.ts +0 -30
- package/core/utils/src/p.ts +0 -119
- package/core/utils/src/promise.ts +0 -117
- package/core/utils/src/regex.ts +0 -2
- package/core/utils/src/retry.ts +0 -33
- package/core/utils/src/sleep.ts +0 -60
- package/core/utils/src/throttle.ts +0 -44
- package/core/utils/src/vendors.ts +0 -258
- package/core/utils/src/versions.ts +0 -6
- package/core/utils/tests/example.test.ts +0 -5
- package/core/utils/tsconfig.json +0 -3
- package/core/validation/README.md +0 -53
- package/core/validation/build.ts +0 -5
- package/core/validation/dist/index.js +0 -187
- package/core/validation/package.json +0 -64
- package/core/validation/src/index.ts +0 -4
- package/core/validation/src/is.ts +0 -111
- package/core/validation/src/rules.ts +0 -126
- package/core/validation/src/types/index.ts +0 -7
- package/core/validation/src/types/money.ts +0 -17
- package/core/validation/src/validate.ts +0 -33
- package/core/validation/tests/example.test.ts +0 -5
- package/core/validation/tsconfig.json +0 -3
- package/core/vite/README.md +0 -59
- package/core/vite/build.ts +0 -9
- package/core/vite/dist/index.js +0 -644
- package/core/vite/package.json +0 -122
- package/core/vite/src/api.ts +0 -18
- package/core/vite/src/components.ts +0 -79
- package/core/vite/src/dashboard.ts +0 -100
- package/core/vite/src/desktop.ts +0 -3
- package/core/vite/src/example-vue.ts +0 -20
- package/core/vite/src/example-wc.ts +0 -24
- package/core/vite/src/functions.ts +0 -54
- package/core/vite/src/index.ts +0 -18
- package/core/vite/src/plugin/auto-imports.ts +0 -39
- package/core/vite/src/plugin/components.ts +0 -17
- package/core/vite/src/plugin/css-engine.ts +0 -18
- package/core/vite/src/plugin/devtools.ts +0 -1
- package/core/vite/src/plugin/docs.ts +0 -18
- package/core/vite/src/plugin/fonts.ts +0 -6
- package/core/vite/src/plugin/i18n.ts +0 -13
- package/core/vite/src/plugin/inspect.ts +0 -6
- package/core/vite/src/plugin/layouts.ts +0 -17
- package/core/vite/src/plugin/markdown.ts +0 -26
- package/core/vite/src/plugin/pages.ts +0 -34
- package/core/vite/src/plugin/presets.ts +0 -17
- package/core/vite/src/plugin/pwa.ts +0 -33
- package/core/vite/src/plugin/router.ts +0 -17
- package/core/vite/src/plugin/stacks.ts +0 -150
- package/core/vite/src/plugin/ui-engine.ts +0 -19
- package/core/vite/src/plugins.ts +0 -12
- package/core/vite/src/system-tray.ts +0 -100
- package/core/vite/src/views.ts +0 -97
- package/core/vite/src/web-components.ts +0 -67
- package/core/vite/tests/example.test.ts +0 -5
- package/core/vite/tsconfig.json +0 -3
- package/core/web-types.json +0 -67
- package/core/whois/README.md +0 -55
- package/core/whois/build.ts +0 -8
- package/core/whois/dist/index.js +0 -600
- package/core/whois/package.json +0 -61
- package/core/whois/src/index.ts +0 -499
- package/core/whois/src/parameters.ts +0 -4
- package/core/whois/src/servers.ts +0 -318
- package/core/whois/src/test.ts +0 -5
- package/core/whois/tests/example.test.ts +0 -5
- package/core/whois/tsconfig.json +0 -3
- package/core/x-ray/README.md +0 -55
- package/core/x-ray/index.html +0 -13
- package/core/x-ray/package.json +0 -53
- package/core/x-ray/routes/index.ts +0 -19
- package/core/x-ray/src/client.ts +0 -14
- package/core/x-ray/src/desktop/api/nitro.config.ts +0 -19
- package/core/x-ray/src/desktop/api/routes/api/logs.ts +0 -7
- package/core/x-ray/src/desktop/api/routes/api/store-logs.ts +0 -22
- package/core/x-ray/src/desktop/api/src/types.ts +0 -7
- package/core/x-ray/src/desktop/api/storage/index.ts +0 -7
- package/core/x-ray/src/desktop/app.stx +0 -377
- package/core/x-ray/src/desktop/functions/http.ts +0 -26
- package/core/x-ray/src/desktop/functions/types.ts +0 -7
- package/core/x-ray/src/desktop/main.ts +0 -8
- package/core/x-ray/src/desktop/modules/counter/mod.stx +0 -44
- package/core/x-ray/src/desktop/modules/fetcher/mod.stx +0 -63
- package/core/x-ray/src/desktop/plugins/unified/unified-app.ts +0 -5
- package/core/x-ray/src/desktop/plugins/unified/unified-styles.scss +0 -0
- package/core/x-ray/src/desktop/services/http.ts +0 -45
- package/core/x-ray/src/desktop/styles/app.scss +0 -0
- package/core/x-ray/src/http.ts +0 -26
- package/core/x-ray/src/index.ts +0 -42
- package/core/x-ray/src/ray.config.ts +0 -27
- package/core/x-ray/src/types.ts +0 -8
- package/core/x-ray/tests/example.test.ts +0 -5
- package/core/x-ray/tsconfig.json +0 -3
- package/ide/dictionary.txt +0 -333
- package/ide/jetbrains/.fleet/settings.json +0 -4
- package/ide/jetbrains/.idea/.name +0 -1
- package/ide/jetbrains/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/ide/jetbrains/.idea/jsLinters/eslint.xml +0 -7
- package/ide/jetbrains/.idea/modules.xml +0 -8
- package/ide/jetbrains/.idea/stacks.iml +0 -22
- package/ide/jetbrains/.idea/vcs.xml +0 -6
- package/ide/jetbrains/.idea/webResources.xml +0 -14
- package/ide/jetbrains/IntelliJ IDEA Global Settings +0 -0
- package/ide/jetbrains/installed.txt +0 -4
- package/ide/jetbrains/options/github-copilot.xml +0 -5
- package/ide/jetbrains/options/nodejs.xml +0 -7
- package/ide/jetbrains/options/templates.xml +0 -124
- package/ide/jetbrains/templates/JavaScript.xml +0 -6
- package/ide/jetbrains/templates/Stacks.xml +0 -8
- package/ide/vscode/.vscode/README.md +0 -23
- package/ide/vscode/.vscode/extensions.json +0 -5
- package/ide/vscode/.vscode/settings.json +0 -135
- package/ide/vscode/.vscode/stacks.code-snippets +0 -182
- package/ide/vscode/LICENSE.md +0 -21
- package/ide/vscode/README.md +0 -37
- package/ide/vscode/logo.png +0 -0
- package/ide/vscode/package.json +0 -63
- package/stubs/.gitkeep +0 -0
- package/stubs/TODO.md +0 -18
- package/vcs/github/CODE_OF_CONDUCT.md +0 -83
- package/vcs/github/CONTRIBUTING.md +0 -188
- package/vcs/github/EXPLANATIONS.md +0 -41
- package/vcs/github/FUNDING.yml +0 -1
- package/vcs/github/ISSUE_TEMPLATE/bug_report.yml +0 -49
- package/vcs/github/ISSUE_TEMPLATE/config.yml +0 -10
- package/vcs/github/ISSUE_TEMPLATE/feature_request.yml +0 -44
- package/vcs/github/SECURITY.md +0 -70
- package/vcs/github/renovate.json +0 -5
- package/vcs/github/stale.yml +0 -14
- package/vcs/github/workflows/README.md +0 -16
- package/vcs/github/workflows/ci.yml +0 -174
- package/vcs/github/workflows/export-size.yml +0 -23
- package/vcs/github/workflows/labeler.yml +0 -13
- package/vcs/github/workflows/release.yml +0 -69
- package/{core/README.md → README.md} +0 -0
- package/{core/buddy → buddy}/README.md +0 -0
- package/{core/buddy → buddy}/art/social.jpg +0 -0
- package/{core/buddy → buddy}/bin/cli.ts +0 -0
- package/{core/buddy/dist/chunk-0455e53fab4244b1.js → buddy/dist/chunk-970e033f764e29fc.js} +0 -0
- package/{core/buddy → buddy}/src/commands/build.ts +0 -0
- package/{core/buddy → buddy}/src/commands/changelog.ts +0 -0
- package/{core/buddy → buddy}/src/commands/clean.ts +0 -0
- package/{core/buddy → buddy}/src/commands/cloud.ts +0 -0
- package/{core/buddy → buddy}/src/commands/configure.ts +0 -0
- package/{core/buddy → buddy}/src/commands/create.ts +0 -0
- package/{core/buddy → buddy}/src/commands/dns.ts +0 -0
- package/{core/buddy → buddy}/src/commands/domains.ts +0 -0
- package/{core/buddy → buddy}/src/commands/fresh.ts +0 -0
- package/{core/buddy → buddy}/src/commands/generate.ts +0 -0
- package/{core/buddy → buddy}/src/commands/http.ts +0 -0
- package/{core/buddy → buddy}/src/commands/install.ts +0 -0
- package/{core/buddy → buddy}/src/commands/key.ts +1 -1
- /package/{core/buddy → buddy}/src/commands/lint.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/migrate.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/release.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/seed.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/test.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/tinker.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/upgrade.ts +0 -0
- /package/{core/buddy → buddy}/src/commands/version.ts +0 -0
- /package/{core/buddy → buddy}/src/custom-cli.ts +0 -0
- /package/{core/buddy → buddy}/src/index.ts +0 -0
- /package/{core/actions → buddy}/tsconfig.json +0 -0
package/core/utils/dist/index.js
DELETED
|
@@ -1,3240 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __export = (target, all) => {
|
|
4
|
-
for (var name in all)
|
|
5
|
-
__defProp(target, name, {
|
|
6
|
-
get: all[name],
|
|
7
|
-
enumerable: true,
|
|
8
|
-
configurable: true,
|
|
9
|
-
set: (newValue) => all[name] = () => newValue
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
13
|
-
|
|
14
|
-
// ../../../../node_modules/consola/dist/core.mjs
|
|
15
|
-
class Consola {
|
|
16
|
-
constructor(options = {}) {
|
|
17
|
-
const types2 = options.types || LogTypes;
|
|
18
|
-
this.options = defu({
|
|
19
|
-
...options,
|
|
20
|
-
defaults: { ...options.defaults },
|
|
21
|
-
level: _normalizeLogLevel(options.level, types2),
|
|
22
|
-
reporters: [...options.reporters || []]
|
|
23
|
-
}, {
|
|
24
|
-
types: LogTypes,
|
|
25
|
-
throttle: 1000,
|
|
26
|
-
throttleMin: 5,
|
|
27
|
-
formatOptions: {
|
|
28
|
-
date: true,
|
|
29
|
-
colors: false,
|
|
30
|
-
compact: true
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
for (const type in types2) {
|
|
34
|
-
const defaults = {
|
|
35
|
-
type,
|
|
36
|
-
...this.options.defaults,
|
|
37
|
-
...types2[type]
|
|
38
|
-
};
|
|
39
|
-
this[type] = this._wrapLogFn(defaults);
|
|
40
|
-
this[type].raw = this._wrapLogFn(defaults, true);
|
|
41
|
-
}
|
|
42
|
-
if (this.options.mockFn) {
|
|
43
|
-
this.mockTypes();
|
|
44
|
-
}
|
|
45
|
-
this._lastLog = {};
|
|
46
|
-
}
|
|
47
|
-
get level() {
|
|
48
|
-
return this.options.level;
|
|
49
|
-
}
|
|
50
|
-
set level(level) {
|
|
51
|
-
this.options.level = _normalizeLogLevel(level, this.options.types, this.options.level);
|
|
52
|
-
}
|
|
53
|
-
prompt(message, opts) {
|
|
54
|
-
if (!this.options.prompt) {
|
|
55
|
-
throw new Error("prompt is not supported!");
|
|
56
|
-
}
|
|
57
|
-
return this.options.prompt(message, opts);
|
|
58
|
-
}
|
|
59
|
-
create(options) {
|
|
60
|
-
const instance = new Consola({
|
|
61
|
-
...this.options,
|
|
62
|
-
...options
|
|
63
|
-
});
|
|
64
|
-
if (this._mockFn) {
|
|
65
|
-
instance.mockTypes(this._mockFn);
|
|
66
|
-
}
|
|
67
|
-
return instance;
|
|
68
|
-
}
|
|
69
|
-
withDefaults(defaults) {
|
|
70
|
-
return this.create({
|
|
71
|
-
...this.options,
|
|
72
|
-
defaults: {
|
|
73
|
-
...this.options.defaults,
|
|
74
|
-
...defaults
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
withTag(tag) {
|
|
79
|
-
return this.withDefaults({
|
|
80
|
-
tag: this.options.defaults.tag ? this.options.defaults.tag + ":" + tag : tag
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
addReporter(reporter) {
|
|
84
|
-
this.options.reporters.push(reporter);
|
|
85
|
-
return this;
|
|
86
|
-
}
|
|
87
|
-
removeReporter(reporter) {
|
|
88
|
-
if (reporter) {
|
|
89
|
-
const i = this.options.reporters.indexOf(reporter);
|
|
90
|
-
if (i >= 0) {
|
|
91
|
-
return this.options.reporters.splice(i, 1);
|
|
92
|
-
}
|
|
93
|
-
} else {
|
|
94
|
-
this.options.reporters.splice(0);
|
|
95
|
-
}
|
|
96
|
-
return this;
|
|
97
|
-
}
|
|
98
|
-
setReporters(reporters) {
|
|
99
|
-
this.options.reporters = Array.isArray(reporters) ? reporters : [reporters];
|
|
100
|
-
return this;
|
|
101
|
-
}
|
|
102
|
-
wrapAll() {
|
|
103
|
-
this.wrapConsole();
|
|
104
|
-
this.wrapStd();
|
|
105
|
-
}
|
|
106
|
-
restoreAll() {
|
|
107
|
-
this.restoreConsole();
|
|
108
|
-
this.restoreStd();
|
|
109
|
-
}
|
|
110
|
-
wrapConsole() {
|
|
111
|
-
for (const type in this.options.types) {
|
|
112
|
-
if (!console["__" + type]) {
|
|
113
|
-
console["__" + type] = console[type];
|
|
114
|
-
}
|
|
115
|
-
console[type] = this[type].raw;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
restoreConsole() {
|
|
119
|
-
for (const type in this.options.types) {
|
|
120
|
-
if (console["__" + type]) {
|
|
121
|
-
console[type] = console["__" + type];
|
|
122
|
-
delete console["__" + type];
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
wrapStd() {
|
|
127
|
-
this._wrapStream(this.options.stdout, "log");
|
|
128
|
-
this._wrapStream(this.options.stderr, "log");
|
|
129
|
-
}
|
|
130
|
-
_wrapStream(stream, type) {
|
|
131
|
-
if (!stream) {
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
if (!stream.__write) {
|
|
135
|
-
stream.__write = stream.write;
|
|
136
|
-
}
|
|
137
|
-
stream.write = (data) => {
|
|
138
|
-
this[type].raw(String(data).trim());
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
restoreStd() {
|
|
142
|
-
this._restoreStream(this.options.stdout);
|
|
143
|
-
this._restoreStream(this.options.stderr);
|
|
144
|
-
}
|
|
145
|
-
_restoreStream(stream) {
|
|
146
|
-
if (!stream) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
if (stream.__write) {
|
|
150
|
-
stream.write = stream.__write;
|
|
151
|
-
delete stream.__write;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
pauseLogs() {
|
|
155
|
-
paused = true;
|
|
156
|
-
}
|
|
157
|
-
resumeLogs() {
|
|
158
|
-
paused = false;
|
|
159
|
-
const _queue = queue.splice(0);
|
|
160
|
-
for (const item of _queue) {
|
|
161
|
-
item[0]._logFn(item[1], item[2]);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
mockTypes(mockFn) {
|
|
165
|
-
const _mockFn = mockFn || this.options.mockFn;
|
|
166
|
-
this._mockFn = _mockFn;
|
|
167
|
-
if (typeof _mockFn !== "function") {
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
for (const type in this.options.types) {
|
|
171
|
-
this[type] = _mockFn(type, this.options.types[type]) || this[type];
|
|
172
|
-
this[type].raw = this[type];
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
_wrapLogFn(defaults, isRaw) {
|
|
176
|
-
return (...args) => {
|
|
177
|
-
if (paused) {
|
|
178
|
-
queue.push([this, defaults, args, isRaw]);
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
return this._logFn(defaults, args, isRaw);
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
_logFn(defaults, args, isRaw) {
|
|
185
|
-
if ((defaults.level || 0) > this.level) {
|
|
186
|
-
return false;
|
|
187
|
-
}
|
|
188
|
-
const logObj = {
|
|
189
|
-
date: new Date,
|
|
190
|
-
args: [],
|
|
191
|
-
...defaults,
|
|
192
|
-
level: _normalizeLogLevel(defaults.level, this.options.types)
|
|
193
|
-
};
|
|
194
|
-
if (!isRaw && args.length === 1 && isLogObj(args[0])) {
|
|
195
|
-
Object.assign(logObj, args[0]);
|
|
196
|
-
} else {
|
|
197
|
-
logObj.args = [...args];
|
|
198
|
-
}
|
|
199
|
-
if (logObj.message) {
|
|
200
|
-
logObj.args.unshift(logObj.message);
|
|
201
|
-
delete logObj.message;
|
|
202
|
-
}
|
|
203
|
-
if (logObj.additional) {
|
|
204
|
-
if (!Array.isArray(logObj.additional)) {
|
|
205
|
-
logObj.additional = logObj.additional.split("\n");
|
|
206
|
-
}
|
|
207
|
-
logObj.args.push("\n" + logObj.additional.join("\n"));
|
|
208
|
-
delete logObj.additional;
|
|
209
|
-
}
|
|
210
|
-
logObj.type = typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log";
|
|
211
|
-
logObj.tag = typeof logObj.tag === "string" ? logObj.tag : "";
|
|
212
|
-
const resolveLog = (newLog = false) => {
|
|
213
|
-
const repeated = (this._lastLog.count || 0) - this.options.throttleMin;
|
|
214
|
-
if (this._lastLog.object && repeated > 0) {
|
|
215
|
-
const args2 = [...this._lastLog.object.args];
|
|
216
|
-
if (repeated > 1) {
|
|
217
|
-
args2.push(`(repeated ${repeated} times)`);
|
|
218
|
-
}
|
|
219
|
-
this._log({ ...this._lastLog.object, args: args2 });
|
|
220
|
-
this._lastLog.count = 1;
|
|
221
|
-
}
|
|
222
|
-
if (newLog) {
|
|
223
|
-
this._lastLog.object = logObj;
|
|
224
|
-
this._log(logObj);
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
clearTimeout(this._lastLog.timeout);
|
|
228
|
-
const diffTime = this._lastLog.time && logObj.date ? logObj.date.getTime() - this._lastLog.time.getTime() : 0;
|
|
229
|
-
this._lastLog.time = logObj.date;
|
|
230
|
-
if (diffTime < this.options.throttle) {
|
|
231
|
-
try {
|
|
232
|
-
const serializedLog = JSON.stringify([
|
|
233
|
-
logObj.type,
|
|
234
|
-
logObj.tag,
|
|
235
|
-
logObj.args
|
|
236
|
-
]);
|
|
237
|
-
const isSameLog = this._lastLog.serialized === serializedLog;
|
|
238
|
-
this._lastLog.serialized = serializedLog;
|
|
239
|
-
if (isSameLog) {
|
|
240
|
-
this._lastLog.count = (this._lastLog.count || 0) + 1;
|
|
241
|
-
if (this._lastLog.count > this.options.throttleMin) {
|
|
242
|
-
this._lastLog.timeout = setTimeout(resolveLog, this.options.throttle);
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
} catch {
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
resolveLog(true);
|
|
250
|
-
}
|
|
251
|
-
_log(logObj) {
|
|
252
|
-
for (const reporter of this.options.reporters) {
|
|
253
|
-
reporter.log(logObj, {
|
|
254
|
-
options: this.options
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
var isObject, _defu, createDefu, isPlainObject, isLogObj, _normalizeLogLevel, createConsola, LogLevels, LogTypes, defu, paused, queue;
|
|
260
|
-
var init_core = __esm(() => {
|
|
261
|
-
isObject = function(value) {
|
|
262
|
-
return value !== null && typeof value === "object";
|
|
263
|
-
};
|
|
264
|
-
_defu = function(baseObject, defaults, namespace = ".", merger) {
|
|
265
|
-
if (!isObject(defaults)) {
|
|
266
|
-
return _defu(baseObject, {}, namespace, merger);
|
|
267
|
-
}
|
|
268
|
-
const object = Object.assign({}, defaults);
|
|
269
|
-
for (const key in baseObject) {
|
|
270
|
-
if (key === "__proto__" || key === "constructor") {
|
|
271
|
-
continue;
|
|
272
|
-
}
|
|
273
|
-
const value = baseObject[key];
|
|
274
|
-
if (value === null || value === undefined) {
|
|
275
|
-
continue;
|
|
276
|
-
}
|
|
277
|
-
if (merger && merger(object, key, value, namespace)) {
|
|
278
|
-
continue;
|
|
279
|
-
}
|
|
280
|
-
if (Array.isArray(value) && Array.isArray(object[key])) {
|
|
281
|
-
object[key] = [...value, ...object[key]];
|
|
282
|
-
} else if (isObject(value) && isObject(object[key])) {
|
|
283
|
-
object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
|
|
284
|
-
} else {
|
|
285
|
-
object[key] = value;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
return object;
|
|
289
|
-
};
|
|
290
|
-
createDefu = function(merger) {
|
|
291
|
-
return (...arguments_) => arguments_.reduce((p2, c) => _defu(p2, c, "", merger), {});
|
|
292
|
-
};
|
|
293
|
-
isPlainObject = function(obj) {
|
|
294
|
-
return Object.prototype.toString.call(obj) === "[object Object]";
|
|
295
|
-
};
|
|
296
|
-
isLogObj = function(arg) {
|
|
297
|
-
if (!isPlainObject(arg)) {
|
|
298
|
-
return false;
|
|
299
|
-
}
|
|
300
|
-
if (!arg.message && !arg.args) {
|
|
301
|
-
return false;
|
|
302
|
-
}
|
|
303
|
-
if (arg.stack) {
|
|
304
|
-
return false;
|
|
305
|
-
}
|
|
306
|
-
return true;
|
|
307
|
-
};
|
|
308
|
-
_normalizeLogLevel = function(input, types2 = {}, defaultLevel = 3) {
|
|
309
|
-
if (input === undefined) {
|
|
310
|
-
return defaultLevel;
|
|
311
|
-
}
|
|
312
|
-
if (typeof input === "number") {
|
|
313
|
-
return input;
|
|
314
|
-
}
|
|
315
|
-
if (types2[input] && types2[input].level !== undefined) {
|
|
316
|
-
return types2[input].level;
|
|
317
|
-
}
|
|
318
|
-
return defaultLevel;
|
|
319
|
-
};
|
|
320
|
-
createConsola = function(options = {}) {
|
|
321
|
-
return new Consola(options);
|
|
322
|
-
};
|
|
323
|
-
LogLevels = {
|
|
324
|
-
silent: Number.NEGATIVE_INFINITY,
|
|
325
|
-
fatal: 0,
|
|
326
|
-
error: 0,
|
|
327
|
-
warn: 1,
|
|
328
|
-
log: 2,
|
|
329
|
-
info: 3,
|
|
330
|
-
success: 3,
|
|
331
|
-
fail: 3,
|
|
332
|
-
ready: 3,
|
|
333
|
-
start: 3,
|
|
334
|
-
box: 3,
|
|
335
|
-
debug: 4,
|
|
336
|
-
trace: 5,
|
|
337
|
-
verbose: Number.POSITIVE_INFINITY
|
|
338
|
-
};
|
|
339
|
-
LogTypes = {
|
|
340
|
-
silent: {
|
|
341
|
-
level: -1
|
|
342
|
-
},
|
|
343
|
-
fatal: {
|
|
344
|
-
level: LogLevels.fatal
|
|
345
|
-
},
|
|
346
|
-
error: {
|
|
347
|
-
level: LogLevels.error
|
|
348
|
-
},
|
|
349
|
-
warn: {
|
|
350
|
-
level: LogLevels.warn
|
|
351
|
-
},
|
|
352
|
-
log: {
|
|
353
|
-
level: LogLevels.log
|
|
354
|
-
},
|
|
355
|
-
info: {
|
|
356
|
-
level: LogLevels.info
|
|
357
|
-
},
|
|
358
|
-
success: {
|
|
359
|
-
level: LogLevels.success
|
|
360
|
-
},
|
|
361
|
-
fail: {
|
|
362
|
-
level: LogLevels.fail
|
|
363
|
-
},
|
|
364
|
-
ready: {
|
|
365
|
-
level: LogLevels.info
|
|
366
|
-
},
|
|
367
|
-
start: {
|
|
368
|
-
level: LogLevels.info
|
|
369
|
-
},
|
|
370
|
-
box: {
|
|
371
|
-
level: LogLevels.info
|
|
372
|
-
},
|
|
373
|
-
debug: {
|
|
374
|
-
level: LogLevels.debug
|
|
375
|
-
},
|
|
376
|
-
trace: {
|
|
377
|
-
level: LogLevels.trace
|
|
378
|
-
},
|
|
379
|
-
verbose: {
|
|
380
|
-
level: LogLevels.verbose
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
defu = createDefu();
|
|
384
|
-
paused = false;
|
|
385
|
-
queue = [];
|
|
386
|
-
Consola.prototype.add = Consola.prototype.addReporter;
|
|
387
|
-
Consola.prototype.remove = Consola.prototype.removeReporter;
|
|
388
|
-
Consola.prototype.clear = Consola.prototype.removeReporter;
|
|
389
|
-
Consola.prototype.withScope = Consola.prototype.withTag;
|
|
390
|
-
Consola.prototype.mock = Consola.prototype.mockTypes;
|
|
391
|
-
Consola.prototype.pause = Consola.prototype.pauseLogs;
|
|
392
|
-
Consola.prototype.resume = Consola.prototype.resumeLogs;
|
|
393
|
-
});
|
|
394
|
-
|
|
395
|
-
// ../../../../node_modules/consola/dist/shared/consola.06ad8a64.mjs
|
|
396
|
-
import {formatWithOptions} from "util";
|
|
397
|
-
import {sep} from "path";
|
|
398
|
-
|
|
399
|
-
class BasicReporter {
|
|
400
|
-
formatStack(stack, opts) {
|
|
401
|
-
return " " + parseStack(stack).join("\n ");
|
|
402
|
-
}
|
|
403
|
-
formatArgs(args, opts) {
|
|
404
|
-
const _args = args.map((arg) => {
|
|
405
|
-
if (arg && typeof arg.stack === "string") {
|
|
406
|
-
return arg.message + "\n" + this.formatStack(arg.stack, opts);
|
|
407
|
-
}
|
|
408
|
-
return arg;
|
|
409
|
-
});
|
|
410
|
-
return formatWithOptions(opts, ..._args);
|
|
411
|
-
}
|
|
412
|
-
formatDate(date, opts) {
|
|
413
|
-
return opts.date ? date.toLocaleTimeString() : "";
|
|
414
|
-
}
|
|
415
|
-
filterAndJoin(arr) {
|
|
416
|
-
return arr.filter(Boolean).join(" ");
|
|
417
|
-
}
|
|
418
|
-
formatLogObj(logObj, opts) {
|
|
419
|
-
const message = this.formatArgs(logObj.args, opts);
|
|
420
|
-
if (logObj.type === "box") {
|
|
421
|
-
return "\n" + [
|
|
422
|
-
bracket(logObj.tag),
|
|
423
|
-
logObj.title && logObj.title,
|
|
424
|
-
...message.split("\n")
|
|
425
|
-
].filter(Boolean).map((l) => " > " + l).join("\n") + "\n";
|
|
426
|
-
}
|
|
427
|
-
return this.filterAndJoin([
|
|
428
|
-
bracket(logObj.type),
|
|
429
|
-
bracket(logObj.tag),
|
|
430
|
-
message
|
|
431
|
-
]);
|
|
432
|
-
}
|
|
433
|
-
log(logObj, ctx) {
|
|
434
|
-
const line = this.formatLogObj(logObj, {
|
|
435
|
-
columns: ctx.options.stdout.columns || 0,
|
|
436
|
-
...ctx.options.formatOptions
|
|
437
|
-
});
|
|
438
|
-
return writeStream(line + "\n", logObj.level < 2 ? ctx.options.stderr || process.stderr : ctx.options.stdout || process.stdout);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
var parseStack, writeStream, bracket;
|
|
442
|
-
var init_consola_06ad8a64 = __esm(() => {
|
|
443
|
-
parseStack = function(stack) {
|
|
444
|
-
const cwd = process.cwd() + sep;
|
|
445
|
-
const lines = stack.split("\n").splice(1).map((l) => l.trim().replace("file://", "").replace(cwd, ""));
|
|
446
|
-
return lines;
|
|
447
|
-
};
|
|
448
|
-
writeStream = function(data, stream) {
|
|
449
|
-
const write = stream.__write || stream.write;
|
|
450
|
-
return write.call(stream, data);
|
|
451
|
-
};
|
|
452
|
-
bracket = (x) => x ? `[${x}]` : "";
|
|
453
|
-
});
|
|
454
|
-
|
|
455
|
-
// ../../../../node_modules/consola/dist/utils.mjs
|
|
456
|
-
import * as tty from "tty";
|
|
457
|
-
var replaceClose, clearBleed, filterEmpty, init, createColors, getColor, stripAnsi, box, env, argv, platform, isDisabled, isForced, isWindows, isDumbTerminal, isCompatibleTerminal, isCI, isColorSupported, colorDefs, colors, ansiRegex, boxStylePresets, defaultStyle;
|
|
458
|
-
var init_utils = __esm(() => {
|
|
459
|
-
replaceClose = function(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
|
|
460
|
-
return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
|
|
461
|
-
};
|
|
462
|
-
clearBleed = function(index, string, open, close, replace) {
|
|
463
|
-
return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
|
|
464
|
-
};
|
|
465
|
-
filterEmpty = function(open, close, replace = open, at = open.length + 1) {
|
|
466
|
-
return (string) => string || !(string === "" || string === undefined) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
|
|
467
|
-
};
|
|
468
|
-
init = function(open, close, replace) {
|
|
469
|
-
return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
|
|
470
|
-
};
|
|
471
|
-
createColors = function(useColor = isColorSupported) {
|
|
472
|
-
return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));
|
|
473
|
-
};
|
|
474
|
-
getColor = function(color, fallback = "reset") {
|
|
475
|
-
return colors[color] || colors[fallback];
|
|
476
|
-
};
|
|
477
|
-
stripAnsi = function(text) {
|
|
478
|
-
return text.replace(new RegExp(ansiRegex, "g"), "");
|
|
479
|
-
};
|
|
480
|
-
box = function(text, _opts = {}) {
|
|
481
|
-
const opts = {
|
|
482
|
-
..._opts,
|
|
483
|
-
style: {
|
|
484
|
-
...defaultStyle,
|
|
485
|
-
..._opts.style
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
|
-
const textLines = text.split("\n");
|
|
489
|
-
const boxLines = [];
|
|
490
|
-
const _color = getColor(opts.style.borderColor);
|
|
491
|
-
const borderStyle = {
|
|
492
|
-
...typeof opts.style.borderStyle === "string" ? boxStylePresets[opts.style.borderStyle] || boxStylePresets.solid : opts.style.borderStyle
|
|
493
|
-
};
|
|
494
|
-
if (_color) {
|
|
495
|
-
for (const key in borderStyle) {
|
|
496
|
-
borderStyle[key] = _color(borderStyle[key]);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
|
|
500
|
-
const height = textLines.length + paddingOffset;
|
|
501
|
-
const width = Math.max(...textLines.map((line) => line.length)) + paddingOffset;
|
|
502
|
-
const widthOffset = width + paddingOffset;
|
|
503
|
-
const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
|
|
504
|
-
if (opts.style.marginTop > 0) {
|
|
505
|
-
boxLines.push("".repeat(opts.style.marginTop));
|
|
506
|
-
}
|
|
507
|
-
if (opts.title) {
|
|
508
|
-
const left = borderStyle.h.repeat(Math.floor((width - stripAnsi(opts.title).length) / 2));
|
|
509
|
-
const right = borderStyle.h.repeat(width - stripAnsi(opts.title).length - stripAnsi(left).length + paddingOffset);
|
|
510
|
-
boxLines.push(`${leftSpace}${borderStyle.tl}${left}${opts.title}${right}${borderStyle.tr}`);
|
|
511
|
-
} else {
|
|
512
|
-
boxLines.push(`${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`);
|
|
513
|
-
}
|
|
514
|
-
const valignOffset = opts.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
|
|
515
|
-
for (let i = 0;i < height; i++) {
|
|
516
|
-
if (i < valignOffset || i >= valignOffset + textLines.length) {
|
|
517
|
-
boxLines.push(`${leftSpace}${borderStyle.v}${" ".repeat(widthOffset)}${borderStyle.v}`);
|
|
518
|
-
} else {
|
|
519
|
-
const line = textLines[i - valignOffset];
|
|
520
|
-
const left = " ".repeat(paddingOffset);
|
|
521
|
-
const right = " ".repeat(width - stripAnsi(line).length);
|
|
522
|
-
boxLines.push(`${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`);
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
boxLines.push(`${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`);
|
|
526
|
-
if (opts.style.marginBottom > 0) {
|
|
527
|
-
boxLines.push("".repeat(opts.style.marginBottom));
|
|
528
|
-
}
|
|
529
|
-
return boxLines.join("\n");
|
|
530
|
-
};
|
|
531
|
-
({
|
|
532
|
-
env = {},
|
|
533
|
-
argv = [],
|
|
534
|
-
platform = ""
|
|
535
|
-
} = typeof process === "undefined" ? {} : process);
|
|
536
|
-
isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
|
|
537
|
-
isForced = "FORCE_COLOR" in env || argv.includes("--color");
|
|
538
|
-
isWindows = platform === "win32";
|
|
539
|
-
isDumbTerminal = env.TERM === "dumb";
|
|
540
|
-
isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env.TERM && !isDumbTerminal;
|
|
541
|
-
isCI = "CI" in env && (("GITHUB_ACTIONS" in env) || ("GITLAB_CI" in env) || ("CIRCLECI" in env));
|
|
542
|
-
isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
|
|
543
|
-
colorDefs = {
|
|
544
|
-
reset: init(0, 0),
|
|
545
|
-
bold: init(1, 22, "\x1B[22m\x1B[1m"),
|
|
546
|
-
dim: init(2, 22, "\x1B[22m\x1B[2m"),
|
|
547
|
-
italic: init(3, 23),
|
|
548
|
-
underline: init(4, 24),
|
|
549
|
-
inverse: init(7, 27),
|
|
550
|
-
hidden: init(8, 28),
|
|
551
|
-
strikethrough: init(9, 29),
|
|
552
|
-
black: init(30, 39),
|
|
553
|
-
red: init(31, 39),
|
|
554
|
-
green: init(32, 39),
|
|
555
|
-
yellow: init(33, 39),
|
|
556
|
-
blue: init(34, 39),
|
|
557
|
-
magenta: init(35, 39),
|
|
558
|
-
cyan: init(36, 39),
|
|
559
|
-
white: init(37, 39),
|
|
560
|
-
gray: init(90, 39),
|
|
561
|
-
bgBlack: init(40, 49),
|
|
562
|
-
bgRed: init(41, 49),
|
|
563
|
-
bgGreen: init(42, 49),
|
|
564
|
-
bgYellow: init(43, 49),
|
|
565
|
-
bgBlue: init(44, 49),
|
|
566
|
-
bgMagenta: init(45, 49),
|
|
567
|
-
bgCyan: init(46, 49),
|
|
568
|
-
bgWhite: init(47, 49),
|
|
569
|
-
blackBright: init(90, 39),
|
|
570
|
-
redBright: init(91, 39),
|
|
571
|
-
greenBright: init(92, 39),
|
|
572
|
-
yellowBright: init(93, 39),
|
|
573
|
-
blueBright: init(94, 39),
|
|
574
|
-
magentaBright: init(95, 39),
|
|
575
|
-
cyanBright: init(96, 39),
|
|
576
|
-
whiteBright: init(97, 39),
|
|
577
|
-
bgBlackBright: init(100, 49),
|
|
578
|
-
bgRedBright: init(101, 49),
|
|
579
|
-
bgGreenBright: init(102, 49),
|
|
580
|
-
bgYellowBright: init(103, 49),
|
|
581
|
-
bgBlueBright: init(104, 49),
|
|
582
|
-
bgMagentaBright: init(105, 49),
|
|
583
|
-
bgCyanBright: init(106, 49),
|
|
584
|
-
bgWhiteBright: init(107, 49)
|
|
585
|
-
};
|
|
586
|
-
colors = createColors();
|
|
587
|
-
ansiRegex = [
|
|
588
|
-
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
589
|
-
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
|
|
590
|
-
].join("|");
|
|
591
|
-
boxStylePresets = {
|
|
592
|
-
solid: {
|
|
593
|
-
tl: "\u250C",
|
|
594
|
-
tr: "\u2510",
|
|
595
|
-
bl: "\u2514",
|
|
596
|
-
br: "\u2518",
|
|
597
|
-
h: "\u2500",
|
|
598
|
-
v: "\u2502"
|
|
599
|
-
},
|
|
600
|
-
double: {
|
|
601
|
-
tl: "\u2554",
|
|
602
|
-
tr: "\u2557",
|
|
603
|
-
bl: "\u255A",
|
|
604
|
-
br: "\u255D",
|
|
605
|
-
h: "\u2550",
|
|
606
|
-
v: "\u2551"
|
|
607
|
-
},
|
|
608
|
-
doubleSingle: {
|
|
609
|
-
tl: "\u2553",
|
|
610
|
-
tr: "\u2556",
|
|
611
|
-
bl: "\u2559",
|
|
612
|
-
br: "\u255C",
|
|
613
|
-
h: "\u2500",
|
|
614
|
-
v: "\u2551"
|
|
615
|
-
},
|
|
616
|
-
doubleSingleRounded: {
|
|
617
|
-
tl: "\u256D",
|
|
618
|
-
tr: "\u256E",
|
|
619
|
-
bl: "\u2570",
|
|
620
|
-
br: "\u256F",
|
|
621
|
-
h: "\u2500",
|
|
622
|
-
v: "\u2551"
|
|
623
|
-
},
|
|
624
|
-
singleThick: {
|
|
625
|
-
tl: "\u250F",
|
|
626
|
-
tr: "\u2513",
|
|
627
|
-
bl: "\u2517",
|
|
628
|
-
br: "\u251B",
|
|
629
|
-
h: "\u2501",
|
|
630
|
-
v: "\u2503"
|
|
631
|
-
},
|
|
632
|
-
singleDouble: {
|
|
633
|
-
tl: "\u2552",
|
|
634
|
-
tr: "\u2555",
|
|
635
|
-
bl: "\u2558",
|
|
636
|
-
br: "\u255B",
|
|
637
|
-
h: "\u2550",
|
|
638
|
-
v: "\u2502"
|
|
639
|
-
},
|
|
640
|
-
singleDoubleRounded: {
|
|
641
|
-
tl: "\u256D",
|
|
642
|
-
tr: "\u256E",
|
|
643
|
-
bl: "\u2570",
|
|
644
|
-
br: "\u256F",
|
|
645
|
-
h: "\u2550",
|
|
646
|
-
v: "\u2502"
|
|
647
|
-
},
|
|
648
|
-
rounded: {
|
|
649
|
-
tl: "\u256D",
|
|
650
|
-
tr: "\u256E",
|
|
651
|
-
bl: "\u2570",
|
|
652
|
-
br: "\u256F",
|
|
653
|
-
h: "\u2500",
|
|
654
|
-
v: "\u2502"
|
|
655
|
-
}
|
|
656
|
-
};
|
|
657
|
-
defaultStyle = {
|
|
658
|
-
borderColor: "white",
|
|
659
|
-
borderStyle: "rounded",
|
|
660
|
-
valign: "center",
|
|
661
|
-
padding: 2,
|
|
662
|
-
marginLeft: 1,
|
|
663
|
-
marginTop: 1,
|
|
664
|
-
marginBottom: 1
|
|
665
|
-
};
|
|
666
|
-
});
|
|
667
|
-
|
|
668
|
-
// ../../../../node_modules/consola/dist/chunks/prompt.mjs
|
|
669
|
-
var exports_prompt = {};
|
|
670
|
-
__export(exports_prompt, {
|
|
671
|
-
prompt: () => {
|
|
672
|
-
{
|
|
673
|
-
return prompt;
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
});
|
|
677
|
-
import {stdin, stdout} from "process";
|
|
678
|
-
import f from "readline";
|
|
679
|
-
import {WriteStream} from "tty";
|
|
680
|
-
import require$$0 from "tty";
|
|
681
|
-
async function prompt(message, opts = {}) {
|
|
682
|
-
if (!opts.type || opts.type === "text") {
|
|
683
|
-
return await text({
|
|
684
|
-
message,
|
|
685
|
-
defaultValue: opts.default,
|
|
686
|
-
placeholder: opts.placeholder,
|
|
687
|
-
initialValue: opts.initial
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
if (opts.type === "confirm") {
|
|
691
|
-
return await confirm({
|
|
692
|
-
message,
|
|
693
|
-
initialValue: opts.initial
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
if (opts.type === "select") {
|
|
697
|
-
return await select({
|
|
698
|
-
message,
|
|
699
|
-
options: opts.options.map((o) => typeof o === "string" ? { value: o, label: o } : o)
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
if (opts.type === "multiselect") {
|
|
703
|
-
return await multiselect({
|
|
704
|
-
message,
|
|
705
|
-
options: opts.options.map((o) => typeof o === "string" ? { value: o, label: o } : o),
|
|
706
|
-
required: opts.required
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
throw new Error(`Unknown prompt type: ${opts.type}`);
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
class h {
|
|
713
|
-
constructor({ render: u, input: F = stdin, output: e = stdout, ...s }, C = true) {
|
|
714
|
-
this._track = false, this._cursor = 0, this.state = "initial", this.error = "", this.subscribers = new Map, this._prevFrame = "", this.opts = s, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = u.bind(this), this._track = C, this.input = F, this.output = e;
|
|
715
|
-
}
|
|
716
|
-
prompt() {
|
|
717
|
-
const u = new WriteStream(0);
|
|
718
|
-
return u._write = (F, e, s) => {
|
|
719
|
-
this._track && (this.value = this.rl.line.replace(/\t/g, ""), this._cursor = this.rl.cursor, this.emit("value", this.value)), s();
|
|
720
|
-
}, this.input.pipe(u), this.rl = f.createInterface({ input: this.input, output: u, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), f.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== undefined && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), g(this.input, true), this.output.on("resize", this.render), this.render(), new Promise((F, e) => {
|
|
721
|
-
this.once("submit", () => {
|
|
722
|
-
this.output.write(src.cursor.show), this.output.off("resize", this.render), g(this.input, false), F(this.value);
|
|
723
|
-
}), this.once("cancel", () => {
|
|
724
|
-
this.output.write(src.cursor.show), this.output.off("resize", this.render), g(this.input, false), F(R);
|
|
725
|
-
});
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
on(u, F) {
|
|
729
|
-
const e = this.subscribers.get(u) ?? [];
|
|
730
|
-
e.push({ cb: F }), this.subscribers.set(u, e);
|
|
731
|
-
}
|
|
732
|
-
once(u, F) {
|
|
733
|
-
const e = this.subscribers.get(u) ?? [];
|
|
734
|
-
e.push({ cb: F, once: true }), this.subscribers.set(u, e);
|
|
735
|
-
}
|
|
736
|
-
emit(u, ...F) {
|
|
737
|
-
const e = this.subscribers.get(u) ?? [], s = [];
|
|
738
|
-
for (const C of e)
|
|
739
|
-
C.cb(...F), C.once && s.push(() => e.splice(e.indexOf(C), 1));
|
|
740
|
-
for (const C of s)
|
|
741
|
-
C();
|
|
742
|
-
}
|
|
743
|
-
unsubscribe() {
|
|
744
|
-
this.subscribers.clear();
|
|
745
|
-
}
|
|
746
|
-
onKeypress(u, F) {
|
|
747
|
-
if (this.state === "error" && (this.state = "active"), F?.name && !this._track && V.has(F.name) && this.emit("cursor", V.get(F.name)), F?.name && tD.has(F.name) && this.emit("cursor", F.name), u && (u.toLowerCase() === "y" || u.toLowerCase() === "n") && this.emit("confirm", u.toLowerCase() === "y"), u && this.emit("key", u.toLowerCase()), F?.name === "return") {
|
|
748
|
-
if (this.opts.validate) {
|
|
749
|
-
const e = this.opts.validate(this.value);
|
|
750
|
-
e && (this.error = e, this.state = "error", this.rl.write(this.value));
|
|
751
|
-
}
|
|
752
|
-
this.state !== "error" && (this.state = "submit");
|
|
753
|
-
}
|
|
754
|
-
u === "" && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
|
|
755
|
-
}
|
|
756
|
-
close() {
|
|
757
|
-
this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
|
|
758
|
-
`), g(this.input, false), this.rl.close(), this.emit(`${this.state}`, this.value), this.unsubscribe();
|
|
759
|
-
}
|
|
760
|
-
restoreCursor() {
|
|
761
|
-
const u = P(this._prevFrame, process.stdout.columns, { hard: true }).split(`
|
|
762
|
-
`).length - 1;
|
|
763
|
-
this.output.write(src.cursor.move(-999, u * -1));
|
|
764
|
-
}
|
|
765
|
-
render() {
|
|
766
|
-
const u = P(this._render(this) ?? "", process.stdout.columns, { hard: true });
|
|
767
|
-
if (u !== this._prevFrame) {
|
|
768
|
-
if (this.state === "initial")
|
|
769
|
-
this.output.write(src.cursor.hide);
|
|
770
|
-
else {
|
|
771
|
-
const F = FD(this._prevFrame, u);
|
|
772
|
-
if (this.restoreCursor(), F && F?.length === 1) {
|
|
773
|
-
const e = F[0];
|
|
774
|
-
this.output.write(src.cursor.move(0, e)), this.output.write(src.erase.lines(1));
|
|
775
|
-
const s = u.split(`
|
|
776
|
-
`);
|
|
777
|
-
this.output.write(s[e]), this._prevFrame = u, this.output.write(src.cursor.move(0, s.length - e - 1));
|
|
778
|
-
return;
|
|
779
|
-
} else if (F && F?.length > 1) {
|
|
780
|
-
const e = F[0];
|
|
781
|
-
this.output.write(src.cursor.move(0, e)), this.output.write(src.erase.down());
|
|
782
|
-
const C = u.split(`
|
|
783
|
-
`).slice(e);
|
|
784
|
-
this.output.write(C.join(`
|
|
785
|
-
`)), this._prevFrame = u;
|
|
786
|
-
return;
|
|
787
|
-
}
|
|
788
|
-
this.output.write(src.erase.down());
|
|
789
|
-
}
|
|
790
|
-
this.output.write(u), this.state === "initial" && (this.state = "active"), this._prevFrame = u;
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
class sD extends h {
|
|
796
|
-
get cursor() {
|
|
797
|
-
return this.value ? 0 : 1;
|
|
798
|
-
}
|
|
799
|
-
get _value() {
|
|
800
|
-
return this.cursor === 0;
|
|
801
|
-
}
|
|
802
|
-
constructor(u) {
|
|
803
|
-
super(u, false), this.value = !!u.initialValue, this.on("value", () => {
|
|
804
|
-
this.value = this._value;
|
|
805
|
-
}), this.on("confirm", (F) => {
|
|
806
|
-
this.output.write(src.cursor.move(0, -1)), this.value = F, this.state = "submit", this.close();
|
|
807
|
-
}), this.on("cursor", () => {
|
|
808
|
-
this.value = !this.value;
|
|
809
|
-
});
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
class iD extends h {
|
|
814
|
-
constructor(u) {
|
|
815
|
-
super(u, false), this.cursor = 0, this.options = u.options, this.value = [...u.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F }) => F === u.cursorAt), 0), this.on("key", (F) => {
|
|
816
|
-
F === "a" && this.toggleAll();
|
|
817
|
-
}), this.on("cursor", (F) => {
|
|
818
|
-
switch (F) {
|
|
819
|
-
case "left":
|
|
820
|
-
case "up":
|
|
821
|
-
this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
|
|
822
|
-
break;
|
|
823
|
-
case "down":
|
|
824
|
-
case "right":
|
|
825
|
-
this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
|
|
826
|
-
break;
|
|
827
|
-
case "space":
|
|
828
|
-
this.toggleValue();
|
|
829
|
-
break;
|
|
830
|
-
}
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
get _value() {
|
|
834
|
-
return this.options[this.cursor].value;
|
|
835
|
-
}
|
|
836
|
-
toggleAll() {
|
|
837
|
-
const u = this.value.length === this.options.length;
|
|
838
|
-
this.value = u ? [] : this.options.map((F) => F.value);
|
|
839
|
-
}
|
|
840
|
-
toggleValue() {
|
|
841
|
-
const u = this.value.includes(this._value);
|
|
842
|
-
this.value = u ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
class ED extends h {
|
|
847
|
-
constructor(u) {
|
|
848
|
-
super(u, false), this.cursor = 0, this.options = u.options, this.cursor = this.options.findIndex(({ value: F }) => F === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {
|
|
849
|
-
switch (F) {
|
|
850
|
-
case "left":
|
|
851
|
-
case "up":
|
|
852
|
-
this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
|
|
853
|
-
break;
|
|
854
|
-
case "down":
|
|
855
|
-
case "right":
|
|
856
|
-
this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
|
|
857
|
-
break;
|
|
858
|
-
}
|
|
859
|
-
this.changeValue();
|
|
860
|
-
});
|
|
861
|
-
}
|
|
862
|
-
get _value() {
|
|
863
|
-
return this.options[this.cursor];
|
|
864
|
-
}
|
|
865
|
-
changeValue() {
|
|
866
|
-
this.value = this._value.value;
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
class oD extends h {
|
|
871
|
-
constructor(u) {
|
|
872
|
-
super(u), this.valueWithCursor = "", this.on("finalize", () => {
|
|
873
|
-
this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
|
|
874
|
-
}), this.on("value", () => {
|
|
875
|
-
if (this.cursor >= this.value.length)
|
|
876
|
-
this.valueWithCursor = `${this.value}${l.inverse(l.hidden("_"))}`;
|
|
877
|
-
else {
|
|
878
|
-
const F = this.value.slice(0, this.cursor), e = this.value.slice(this.cursor);
|
|
879
|
-
this.valueWithCursor = `${F}${l.inverse(e[0])}${e.slice(1)}`;
|
|
880
|
-
}
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
|
-
get cursor() {
|
|
884
|
-
return this._cursor;
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
var z, $, c, U, P, FD, g, ESC, CSI, beep, cursor, scroll, erase, src, picocolors, tty2, isColorSupported2, formatter, replaceClose2, createColors2, picocolorsExports, l, m, G, K, Y, v, L, M, T, r, Z, H, q, p2, J, b, W, Q, I, w, N, j, X, _, DD, uD, R, V, tD, unicode, s, S_STEP_ACTIVE, S_STEP_CANCEL, S_STEP_ERROR, S_STEP_SUBMIT, S_BAR, S_BAR_END, S_RADIO_ACTIVE, S_RADIO_INACTIVE, S_CHECKBOX_ACTIVE, S_CHECKBOX_SELECTED, S_CHECKBOX_INACTIVE, symbol, text, confirm, select, multiselect;
|
|
888
|
-
var init_prompt = __esm(() => {
|
|
889
|
-
init_consola_36c0034f();
|
|
890
|
-
init_utils();
|
|
891
|
-
init_core();
|
|
892
|
-
init_consola_06ad8a64();
|
|
893
|
-
z = function({ onlyFirst: t = false } = {}) {
|
|
894
|
-
const u = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
|
|
895
|
-
return new RegExp(u, t ? undefined : "g");
|
|
896
|
-
};
|
|
897
|
-
$ = function(t) {
|
|
898
|
-
if (typeof t != "string")
|
|
899
|
-
throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
|
|
900
|
-
return t.replace(z(), "");
|
|
901
|
-
};
|
|
902
|
-
c = function(t, u = {}) {
|
|
903
|
-
if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = $(t), t.length === 0))
|
|
904
|
-
return 0;
|
|
905
|
-
t = t.replace(Y(), " ");
|
|
906
|
-
const F = u.ambiguousIsNarrow ? 1 : 2;
|
|
907
|
-
let e = 0;
|
|
908
|
-
for (const s of t) {
|
|
909
|
-
const C = s.codePointAt(0);
|
|
910
|
-
if (C <= 31 || C >= 127 && C <= 159 || C >= 768 && C <= 879)
|
|
911
|
-
continue;
|
|
912
|
-
switch (K.eastAsianWidth(s)) {
|
|
913
|
-
case "F":
|
|
914
|
-
case "W":
|
|
915
|
-
e += 2;
|
|
916
|
-
break;
|
|
917
|
-
case "A":
|
|
918
|
-
e += F;
|
|
919
|
-
break;
|
|
920
|
-
default:
|
|
921
|
-
e += 1;
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
return e;
|
|
925
|
-
};
|
|
926
|
-
U = function() {
|
|
927
|
-
const t = new Map;
|
|
928
|
-
for (const [u, F] of Object.entries(r)) {
|
|
929
|
-
for (const [e, s] of Object.entries(F))
|
|
930
|
-
r[e] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F[e] = r[e], t.set(s[0], s[1]);
|
|
931
|
-
Object.defineProperty(r, u, { value: F, enumerable: false });
|
|
932
|
-
}
|
|
933
|
-
return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = M(), r.color.ansi16m = T(), r.bgColor.ansi = L(v), r.bgColor.ansi256 = M(v), r.bgColor.ansi16m = T(v), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F, e) => u === F && F === e ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {
|
|
934
|
-
const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
|
|
935
|
-
if (!F)
|
|
936
|
-
return [0, 0, 0];
|
|
937
|
-
let [e] = F;
|
|
938
|
-
e.length === 3 && (e = [...e].map((C) => C + C).join(""));
|
|
939
|
-
const s = Number.parseInt(e, 16);
|
|
940
|
-
return [s >> 16 & 255, s >> 8 & 255, s & 255];
|
|
941
|
-
}, enumerable: false }, hexToAnsi256: { value: (u) => r.rgbToAnsi256(...r.hexToRgb(u)), enumerable: false }, ansi256ToAnsi: { value: (u) => {
|
|
942
|
-
if (u < 8)
|
|
943
|
-
return 30 + u;
|
|
944
|
-
if (u < 16)
|
|
945
|
-
return 90 + (u - 8);
|
|
946
|
-
let F, e, s;
|
|
947
|
-
if (u >= 232)
|
|
948
|
-
F = ((u - 232) * 10 + 8) / 255, e = F, s = F;
|
|
949
|
-
else {
|
|
950
|
-
u -= 16;
|
|
951
|
-
const i = u % 36;
|
|
952
|
-
F = Math.floor(u / 36) / 5, e = Math.floor(i / 6) / 5, s = i % 6 / 5;
|
|
953
|
-
}
|
|
954
|
-
const C = Math.max(F, e, s) * 2;
|
|
955
|
-
if (C === 0)
|
|
956
|
-
return 30;
|
|
957
|
-
let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));
|
|
958
|
-
return C === 2 && (D += 60), D;
|
|
959
|
-
}, enumerable: false }, rgbToAnsi: { value: (u, F, e) => r.ansi256ToAnsi(r.rgbToAnsi256(u, F, e)), enumerable: false }, hexToAnsi: { value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)), enumerable: false } }), r;
|
|
960
|
-
};
|
|
961
|
-
P = function(t, u, F) {
|
|
962
|
-
return String(t).normalize().replace(/\r\n/g, `
|
|
963
|
-
`).split(`
|
|
964
|
-
`).map((e) => uD(e, u, F)).join(`
|
|
965
|
-
`);
|
|
966
|
-
};
|
|
967
|
-
FD = function(t, u) {
|
|
968
|
-
if (t === u)
|
|
969
|
-
return;
|
|
970
|
-
const F = t.split(`
|
|
971
|
-
`), e = u.split(`
|
|
972
|
-
`), s = [];
|
|
973
|
-
for (let C = 0;C < Math.max(F.length, e.length); C++)
|
|
974
|
-
F[C] !== e[C] && s.push(C);
|
|
975
|
-
return s;
|
|
976
|
-
};
|
|
977
|
-
g = function(t, u) {
|
|
978
|
-
t.isTTY && t.setRawMode(u);
|
|
979
|
-
};
|
|
980
|
-
ESC = "\x1B";
|
|
981
|
-
CSI = `${ESC}[`;
|
|
982
|
-
beep = "\x07";
|
|
983
|
-
cursor = {
|
|
984
|
-
to(x, y) {
|
|
985
|
-
if (!y)
|
|
986
|
-
return `${CSI}${x + 1}G`;
|
|
987
|
-
return `${CSI}${y + 1};${x + 1}H`;
|
|
988
|
-
},
|
|
989
|
-
move(x, y) {
|
|
990
|
-
let ret = "";
|
|
991
|
-
if (x < 0)
|
|
992
|
-
ret += `${CSI}${-x}D`;
|
|
993
|
-
else if (x > 0)
|
|
994
|
-
ret += `${CSI}${x}C`;
|
|
995
|
-
if (y < 0)
|
|
996
|
-
ret += `${CSI}${-y}A`;
|
|
997
|
-
else if (y > 0)
|
|
998
|
-
ret += `${CSI}${y}B`;
|
|
999
|
-
return ret;
|
|
1000
|
-
},
|
|
1001
|
-
up: (count = 1) => `${CSI}${count}A`,
|
|
1002
|
-
down: (count = 1) => `${CSI}${count}B`,
|
|
1003
|
-
forward: (count = 1) => `${CSI}${count}C`,
|
|
1004
|
-
backward: (count = 1) => `${CSI}${count}D`,
|
|
1005
|
-
nextLine: (count = 1) => `${CSI}E`.repeat(count),
|
|
1006
|
-
prevLine: (count = 1) => `${CSI}F`.repeat(count),
|
|
1007
|
-
left: `${CSI}G`,
|
|
1008
|
-
hide: `${CSI}?25l`,
|
|
1009
|
-
show: `${CSI}?25h`,
|
|
1010
|
-
save: `${ESC}7`,
|
|
1011
|
-
restore: `${ESC}8`
|
|
1012
|
-
};
|
|
1013
|
-
scroll = {
|
|
1014
|
-
up: (count = 1) => `${CSI}S`.repeat(count),
|
|
1015
|
-
down: (count = 1) => `${CSI}T`.repeat(count)
|
|
1016
|
-
};
|
|
1017
|
-
erase = {
|
|
1018
|
-
screen: `${CSI}2J`,
|
|
1019
|
-
up: (count = 1) => `${CSI}1J`.repeat(count),
|
|
1020
|
-
down: (count = 1) => `${CSI}J`.repeat(count),
|
|
1021
|
-
line: `${CSI}2K`,
|
|
1022
|
-
lineEnd: `${CSI}K`,
|
|
1023
|
-
lineStart: `${CSI}1K`,
|
|
1024
|
-
lines(count) {
|
|
1025
|
-
let clear = "";
|
|
1026
|
-
for (let i = 0;i < count; i++)
|
|
1027
|
-
clear += this.line + (i < count - 1 ? cursor.up() : "");
|
|
1028
|
-
if (count)
|
|
1029
|
-
clear += cursor.left;
|
|
1030
|
-
return clear;
|
|
1031
|
-
}
|
|
1032
|
-
};
|
|
1033
|
-
src = { cursor, scroll, erase, beep };
|
|
1034
|
-
picocolors = { exports: {} };
|
|
1035
|
-
tty2 = require$$0;
|
|
1036
|
-
isColorSupported2 = !(("NO_COLOR" in process.env) || process.argv.includes("--no-color")) && (("FORCE_COLOR" in process.env) || process.argv.includes("--color") || process.platform === "win32" || tty2.isatty(1) && process.env.TERM !== "dumb" || ("CI" in process.env));
|
|
1037
|
-
formatter = (open, close, replace = open) => (input) => {
|
|
1038
|
-
let string = "" + input;
|
|
1039
|
-
let index = string.indexOf(close, open.length);
|
|
1040
|
-
return ~index ? open + replaceClose2(string, close, replace, index) + close : open + string + close;
|
|
1041
|
-
};
|
|
1042
|
-
replaceClose2 = (string, close, replace, index) => {
|
|
1043
|
-
let start = string.substring(0, index) + replace;
|
|
1044
|
-
let end = string.substring(index + close.length);
|
|
1045
|
-
let nextIndex = end.indexOf(close);
|
|
1046
|
-
return ~nextIndex ? start + replaceClose2(end, close, replace, nextIndex) : start + end;
|
|
1047
|
-
};
|
|
1048
|
-
createColors2 = (enabled = isColorSupported2) => ({
|
|
1049
|
-
isColorSupported: enabled,
|
|
1050
|
-
reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
|
|
1051
|
-
bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
|
|
1052
|
-
dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
|
|
1053
|
-
italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
|
|
1054
|
-
underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
|
|
1055
|
-
inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
|
|
1056
|
-
hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
|
|
1057
|
-
strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
|
|
1058
|
-
black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
|
|
1059
|
-
red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
|
|
1060
|
-
green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
|
|
1061
|
-
yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
|
|
1062
|
-
blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
|
|
1063
|
-
magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
|
|
1064
|
-
cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
|
|
1065
|
-
white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
|
|
1066
|
-
gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
|
|
1067
|
-
bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
|
|
1068
|
-
bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
|
|
1069
|
-
bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
|
|
1070
|
-
bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
|
|
1071
|
-
bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
|
|
1072
|
-
bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
|
|
1073
|
-
bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
|
|
1074
|
-
bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
|
|
1075
|
-
});
|
|
1076
|
-
picocolors.exports = createColors2();
|
|
1077
|
-
picocolors.exports.createColors = createColors2;
|
|
1078
|
-
picocolorsExports = picocolors.exports;
|
|
1079
|
-
l = getDefaultExportFromCjs(picocolorsExports);
|
|
1080
|
-
m = {};
|
|
1081
|
-
G = { get exports() {
|
|
1082
|
-
return m;
|
|
1083
|
-
}, set exports(t) {
|
|
1084
|
-
m = t;
|
|
1085
|
-
} };
|
|
1086
|
-
(function(t) {
|
|
1087
|
-
var u = {};
|
|
1088
|
-
t.exports = u, u.eastAsianWidth = function(e) {
|
|
1089
|
-
var s = e.charCodeAt(0), C = e.length == 2 ? e.charCodeAt(1) : 0, D = s;
|
|
1090
|
-
return 55296 <= s && s <= 56319 && 56320 <= C && C <= 57343 && (s &= 1023, C &= 1023, D = s << 10 | C, D += 65536), D == 12288 || 65281 <= D && D <= 65376 || 65504 <= D && D <= 65510 ? "F" : D == 8361 || 65377 <= D && D <= 65470 || 65474 <= D && D <= 65479 || 65482 <= D && D <= 65487 || 65490 <= D && D <= 65495 || 65498 <= D && D <= 65500 || 65512 <= D && D <= 65518 ? "H" : 4352 <= D && D <= 4447 || 4515 <= D && D <= 4519 || 4602 <= D && D <= 4607 || 9001 <= D && D <= 9002 || 11904 <= D && D <= 11929 || 11931 <= D && D <= 12019 || 12032 <= D && D <= 12245 || 12272 <= D && D <= 12283 || 12289 <= D && D <= 12350 || 12353 <= D && D <= 12438 || 12441 <= D && D <= 12543 || 12549 <= D && D <= 12589 || 12593 <= D && D <= 12686 || 12688 <= D && D <= 12730 || 12736 <= D && D <= 12771 || 12784 <= D && D <= 12830 || 12832 <= D && D <= 12871 || 12880 <= D && D <= 13054 || 13056 <= D && D <= 19903 || 19968 <= D && D <= 42124 || 42128 <= D && D <= 42182 || 43360 <= D && D <= 43388 || 44032 <= D && D <= 55203 || 55216 <= D && D <= 55238 || 55243 <= D && D <= 55291 || 63744 <= D && D <= 64255 || 65040 <= D && D <= 65049 || 65072 <= D && D <= 65106 || 65108 <= D && D <= 65126 || 65128 <= D && D <= 65131 || 110592 <= D && D <= 110593 || 127488 <= D && D <= 127490 || 127504 <= D && D <= 127546 || 127552 <= D && D <= 127560 || 127568 <= D && D <= 127569 || 131072 <= D && D <= 194367 || 177984 <= D && D <= 196605 || 196608 <= D && D <= 262141 ? "W" : 32 <= D && D <= 126 || 162 <= D && D <= 163 || 165 <= D && D <= 166 || D == 172 || D == 175 || 10214 <= D && D <= 10221 || 10629 <= D && D <= 10630 ? "Na" : D == 161 || D == 164 || 167 <= D && D <= 168 || D == 170 || 173 <= D && D <= 174 || 176 <= D && D <= 180 || 182 <= D && D <= 186 || 188 <= D && D <= 191 || D == 198 || D == 208 || 215 <= D && D <= 216 || 222 <= D && D <= 225 || D == 230 || 232 <= D && D <= 234 || 236 <= D && D <= 237 || D == 240 || 242 <= D && D <= 243 || 247 <= D && D <= 250 || D == 252 || D == 254 || D == 257 || D == 273 || D == 275 || D == 283 || 294 <= D && D <= 295 || D == 299 || 305 <= D && D <= 307 || D == 312 || 319 <= D && D <= 322 || D == 324 || 328 <= D && D <= 331 || D == 333 || 338 <= D && D <= 339 || 358 <= D && D <= 359 || D == 363 || D == 462 || D == 464 || D == 466 || D == 468 || D == 470 || D == 472 || D == 474 || D == 476 || D == 593 || D == 609 || D == 708 || D == 711 || 713 <= D && D <= 715 || D == 717 || D == 720 || 728 <= D && D <= 731 || D == 733 || D == 735 || 768 <= D && D <= 879 || 913 <= D && D <= 929 || 931 <= D && D <= 937 || 945 <= D && D <= 961 || 963 <= D && D <= 969 || D == 1025 || 1040 <= D && D <= 1103 || D == 1105 || D == 8208 || 8211 <= D && D <= 8214 || 8216 <= D && D <= 8217 || 8220 <= D && D <= 8221 || 8224 <= D && D <= 8226 || 8228 <= D && D <= 8231 || D == 8240 || 8242 <= D && D <= 8243 || D == 8245 || D == 8251 || D == 8254 || D == 8308 || D == 8319 || 8321 <= D && D <= 8324 || D == 8364 || D == 8451 || D == 8453 || D == 8457 || D == 8467 || D == 8470 || 8481 <= D && D <= 8482 || D == 8486 || D == 8491 || 8531 <= D && D <= 8532 || 8539 <= D && D <= 8542 || 8544 <= D && D <= 8555 || 8560 <= D && D <= 8569 || D == 8585 || 8592 <= D && D <= 8601 || 8632 <= D && D <= 8633 || D == 8658 || D == 8660 || D == 8679 || D == 8704 || 8706 <= D && D <= 8707 || 8711 <= D && D <= 8712 || D == 8715 || D == 8719 || D == 8721 || D == 8725 || D == 8730 || 8733 <= D && D <= 8736 || D == 8739 || D == 8741 || 8743 <= D && D <= 8748 || D == 8750 || 8756 <= D && D <= 8759 || 8764 <= D && D <= 8765 || D == 8776 || D == 8780 || D == 8786 || 8800 <= D && D <= 8801 || 8804 <= D && D <= 8807 || 8810 <= D && D <= 8811 || 8814 <= D && D <= 8815 || 8834 <= D && D <= 8835 || 8838 <= D && D <= 8839 || D == 8853 || D == 8857 || D == 8869 || D == 8895 || D == 8978 || 9312 <= D && D <= 9449 || 9451 <= D && D <= 9547 || 9552 <= D && D <= 9587 || 9600 <= D && D <= 9615 || 9618 <= D && D <= 9621 || 9632 <= D && D <= 9633 || 9635 <= D && D <= 9641 || 9650 <= D && D <= 9651 || 9654 <= D && D <= 9655 || 9660 <= D && D <= 9661 || 9664 <= D && D <= 9665 || 9670 <= D && D <= 9672 || D == 9675 || 9678 <= D && D <= 9681 || 9698 <= D && D <= 9701 || D == 9711 || 9733 <= D && D <= 9734 || D == 9737 || 9742 <= D && D <= 9743 || 9748 <= D && D <= 9749 || D == 9756 || D == 9758 || D == 9792 || D == 9794 || 9824 <= D && D <= 9825 || 9827 <= D && D <= 9829 || 9831 <= D && D <= 9834 || 9836 <= D && D <= 9837 || D == 9839 || 9886 <= D && D <= 9887 || 9918 <= D && D <= 9919 || 9924 <= D && D <= 9933 || 9935 <= D && D <= 9953 || D == 9955 || 9960 <= D && D <= 9983 || D == 10045 || D == 10071 || 10102 <= D && D <= 10111 || 11093 <= D && D <= 11097 || 12872 <= D && D <= 12879 || 57344 <= D && D <= 63743 || 65024 <= D && D <= 65039 || D == 65533 || 127232 <= D && D <= 127242 || 127248 <= D && D <= 127277 || 127280 <= D && D <= 127337 || 127344 <= D && D <= 127386 || 917760 <= D && D <= 917999 || 983040 <= D && D <= 1048573 || 1048576 <= D && D <= 1114109 ? "A" : "N";
|
|
1091
|
-
}, u.characterLength = function(e) {
|
|
1092
|
-
var s = this.eastAsianWidth(e);
|
|
1093
|
-
return s == "F" || s == "W" || s == "A" ? 2 : 1;
|
|
1094
|
-
};
|
|
1095
|
-
function F(e) {
|
|
1096
|
-
return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
|
|
1097
|
-
}
|
|
1098
|
-
u.length = function(e) {
|
|
1099
|
-
for (var s = F(e), C = 0, D = 0;D < s.length; D++)
|
|
1100
|
-
C = C + this.characterLength(s[D]);
|
|
1101
|
-
return C;
|
|
1102
|
-
}, u.slice = function(e, s, C) {
|
|
1103
|
-
textLen = u.length(e), s = s || 0, C = C || 1, s < 0 && (s = textLen + s), C < 0 && (C = textLen + C);
|
|
1104
|
-
for (var D = "", i = 0, o = F(e), E = 0;E < o.length; E++) {
|
|
1105
|
-
var a = o[E], n = u.length(a);
|
|
1106
|
-
if (i >= s - (n == 2 ? 1 : 0))
|
|
1107
|
-
if (i + n <= C)
|
|
1108
|
-
D += a;
|
|
1109
|
-
else
|
|
1110
|
-
break;
|
|
1111
|
-
i += n;
|
|
1112
|
-
}
|
|
1113
|
-
return D;
|
|
1114
|
-
};
|
|
1115
|
-
})(G);
|
|
1116
|
-
K = m;
|
|
1117
|
-
Y = function() {
|
|
1118
|
-
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
1119
|
-
};
|
|
1120
|
-
v = 10;
|
|
1121
|
-
L = (t = 0) => (u) => `\x1B[${u + t}m`;
|
|
1122
|
-
M = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
|
|
1123
|
-
T = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`;
|
|
1124
|
-
r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
|
|
1125
|
-
Object.keys(r.modifier);
|
|
1126
|
-
Z = Object.keys(r.color);
|
|
1127
|
-
H = Object.keys(r.bgColor);
|
|
1128
|
-
[...Z];
|
|
1129
|
-
q = U();
|
|
1130
|
-
p2 = new Set(["\x1B", "\x9B"]);
|
|
1131
|
-
J = 39;
|
|
1132
|
-
b = "\x07";
|
|
1133
|
-
W = "[";
|
|
1134
|
-
Q = "]";
|
|
1135
|
-
I = "m";
|
|
1136
|
-
w = `${Q}8;;`;
|
|
1137
|
-
N = (t) => `${p2.values().next().value}${W}${t}${I}`;
|
|
1138
|
-
j = (t) => `${p2.values().next().value}${w}${t}${b}`;
|
|
1139
|
-
X = (t) => t.split(" ").map((u) => c(u));
|
|
1140
|
-
_ = (t, u, F) => {
|
|
1141
|
-
const e = [...u];
|
|
1142
|
-
let s = false, C = false, D = c($(t[t.length - 1]));
|
|
1143
|
-
for (const [i, o] of e.entries()) {
|
|
1144
|
-
const E = c(o);
|
|
1145
|
-
if (D + E <= F ? t[t.length - 1] += o : (t.push(o), D = 0), p2.has(o) && (s = true, C = e.slice(i + 1).join("").startsWith(w)), s) {
|
|
1146
|
-
C ? o === b && (s = false, C = false) : o === I && (s = false);
|
|
1147
|
-
continue;
|
|
1148
|
-
}
|
|
1149
|
-
D += E, D === F && i < e.length - 1 && (t.push(""), D = 0);
|
|
1150
|
-
}
|
|
1151
|
-
!D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
|
|
1152
|
-
};
|
|
1153
|
-
DD = (t) => {
|
|
1154
|
-
const u = t.split(" ");
|
|
1155
|
-
let F = u.length;
|
|
1156
|
-
for (;F > 0 && !(c(u[F - 1]) > 0); )
|
|
1157
|
-
F--;
|
|
1158
|
-
return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
|
|
1159
|
-
};
|
|
1160
|
-
uD = (t, u, F = {}) => {
|
|
1161
|
-
if (F.trim !== false && t.trim() === "")
|
|
1162
|
-
return "";
|
|
1163
|
-
let e = "", s, C;
|
|
1164
|
-
const D = X(t);
|
|
1165
|
-
let i = [""];
|
|
1166
|
-
for (const [E, a] of t.split(" ").entries()) {
|
|
1167
|
-
F.trim !== false && (i[i.length - 1] = i[i.length - 1].trimStart());
|
|
1168
|
-
let n = c(i[i.length - 1]);
|
|
1169
|
-
if (E !== 0 && (n >= u && (F.wordWrap === false || F.trim === false) && (i.push(""), n = 0), (n > 0 || F.trim === false) && (i[i.length - 1] += " ", n++)), F.hard && D[E] > u) {
|
|
1170
|
-
const B = u - n, A = 1 + Math.floor((D[E] - B - 1) / u);
|
|
1171
|
-
Math.floor((D[E] - 1) / u) < A && i.push(""), _(i, a, u);
|
|
1172
|
-
continue;
|
|
1173
|
-
}
|
|
1174
|
-
if (n + D[E] > u && n > 0 && D[E] > 0) {
|
|
1175
|
-
if (F.wordWrap === false && n < u) {
|
|
1176
|
-
_(i, a, u);
|
|
1177
|
-
continue;
|
|
1178
|
-
}
|
|
1179
|
-
i.push("");
|
|
1180
|
-
}
|
|
1181
|
-
if (n + D[E] > u && F.wordWrap === false) {
|
|
1182
|
-
_(i, a, u);
|
|
1183
|
-
continue;
|
|
1184
|
-
}
|
|
1185
|
-
i[i.length - 1] += a;
|
|
1186
|
-
}
|
|
1187
|
-
F.trim !== false && (i = i.map((E) => DD(E)));
|
|
1188
|
-
const o = [...i.join(`
|
|
1189
|
-
`)];
|
|
1190
|
-
for (const [E, a] of o.entries()) {
|
|
1191
|
-
if (e += a, p2.has(a)) {
|
|
1192
|
-
const { groups: B } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${w}(?<uri>.*)${b})`).exec(o.slice(E).join("")) || { groups: {} };
|
|
1193
|
-
if (B.code !== undefined) {
|
|
1194
|
-
const A = Number.parseFloat(B.code);
|
|
1195
|
-
s = A === J ? undefined : A;
|
|
1196
|
-
} else
|
|
1197
|
-
B.uri !== undefined && (C = B.uri.length === 0 ? undefined : B.uri);
|
|
1198
|
-
}
|
|
1199
|
-
const n = q.codes.get(Number(s));
|
|
1200
|
-
o[E + 1] === `
|
|
1201
|
-
` ? (C && (e += j("")), s && n && (e += N(n))) : a === `
|
|
1202
|
-
` && (s && n && (e += N(s)), C && (e += j(C)));
|
|
1203
|
-
}
|
|
1204
|
-
return e;
|
|
1205
|
-
};
|
|
1206
|
-
R = Symbol("clack:cancel");
|
|
1207
|
-
V = new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]);
|
|
1208
|
-
tD = new Set(["up", "down", "left", "right", "space", "enter"]);
|
|
1209
|
-
unicode = isUnicodeSupported();
|
|
1210
|
-
s = (c2, fallback) => unicode ? c2 : fallback;
|
|
1211
|
-
S_STEP_ACTIVE = s("\u276F", ">");
|
|
1212
|
-
S_STEP_CANCEL = s("\u25A0", "x");
|
|
1213
|
-
S_STEP_ERROR = s("\u25B2", "x");
|
|
1214
|
-
S_STEP_SUBMIT = s("\u2714", "\u221A");
|
|
1215
|
-
S_BAR = "";
|
|
1216
|
-
S_BAR_END = "";
|
|
1217
|
-
S_RADIO_ACTIVE = s("\u25CF", ">");
|
|
1218
|
-
S_RADIO_INACTIVE = s("\u25CB", " ");
|
|
1219
|
-
S_CHECKBOX_ACTIVE = s("\u25FB", "[\u2022]");
|
|
1220
|
-
S_CHECKBOX_SELECTED = s("\u25FC", "[+]");
|
|
1221
|
-
S_CHECKBOX_INACTIVE = s("\u25FB", "[ ]");
|
|
1222
|
-
symbol = (state) => {
|
|
1223
|
-
switch (state) {
|
|
1224
|
-
case "initial":
|
|
1225
|
-
case "active": {
|
|
1226
|
-
return colors.cyan(S_STEP_ACTIVE);
|
|
1227
|
-
}
|
|
1228
|
-
case "cancel": {
|
|
1229
|
-
return colors.red(S_STEP_CANCEL);
|
|
1230
|
-
}
|
|
1231
|
-
case "error": {
|
|
1232
|
-
return colors.yellow(S_STEP_ERROR);
|
|
1233
|
-
}
|
|
1234
|
-
case "submit": {
|
|
1235
|
-
return colors.green(S_STEP_SUBMIT);
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
};
|
|
1239
|
-
text = (opts) => {
|
|
1240
|
-
return new oD({
|
|
1241
|
-
validate: opts.validate,
|
|
1242
|
-
placeholder: opts.placeholder,
|
|
1243
|
-
defaultValue: opts.defaultValue,
|
|
1244
|
-
initialValue: opts.initialValue,
|
|
1245
|
-
render() {
|
|
1246
|
-
const title = `${colors.gray(S_BAR)}
|
|
1247
|
-
${symbol(this.state)} ${opts.message}
|
|
1248
|
-
`;
|
|
1249
|
-
const placeholder = opts.placeholder ? colors.inverse(opts.placeholder[0]) + colors.dim(opts.placeholder.slice(1)) : colors.inverse(colors.hidden("_"));
|
|
1250
|
-
const value = this.value ? this.valueWithCursor : placeholder;
|
|
1251
|
-
switch (this.state) {
|
|
1252
|
-
case "error": {
|
|
1253
|
-
return `${title.trim()}
|
|
1254
|
-
${colors.yellow(S_BAR)} ${value}
|
|
1255
|
-
${colors.yellow(S_BAR_END)} ${colors.yellow(this.error)}
|
|
1256
|
-
`;
|
|
1257
|
-
}
|
|
1258
|
-
case "submit": {
|
|
1259
|
-
return `${title}${colors.gray(S_BAR)} ${colors.dim(this.value || opts.placeholder)}`;
|
|
1260
|
-
}
|
|
1261
|
-
case "cancel": {
|
|
1262
|
-
return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(colors.dim(this.value ?? ""))}${this.value?.trim() ? "\n" + colors.gray(S_BAR) : ""}`;
|
|
1263
|
-
}
|
|
1264
|
-
default: {
|
|
1265
|
-
return `${title}${colors.cyan(S_BAR)} ${value}
|
|
1266
|
-
${colors.cyan(S_BAR_END)}
|
|
1267
|
-
`;
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
}).prompt();
|
|
1272
|
-
};
|
|
1273
|
-
confirm = (opts) => {
|
|
1274
|
-
const active = opts.active ?? "Yes";
|
|
1275
|
-
const inactive = opts.inactive ?? "No";
|
|
1276
|
-
return new sD({
|
|
1277
|
-
active,
|
|
1278
|
-
inactive,
|
|
1279
|
-
initialValue: opts.initialValue ?? true,
|
|
1280
|
-
render() {
|
|
1281
|
-
const title = `${colors.gray(S_BAR)}
|
|
1282
|
-
${symbol(this.state)} ${opts.message}
|
|
1283
|
-
`;
|
|
1284
|
-
const value = this.value ? active : inactive;
|
|
1285
|
-
switch (this.state) {
|
|
1286
|
-
case "submit": {
|
|
1287
|
-
return `${title}${colors.gray(S_BAR)} ${colors.dim(value)}`;
|
|
1288
|
-
}
|
|
1289
|
-
case "cancel": {
|
|
1290
|
-
return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(colors.dim(value))}
|
|
1291
|
-
${colors.gray(S_BAR)}`;
|
|
1292
|
-
}
|
|
1293
|
-
default: {
|
|
1294
|
-
return `${title}${colors.cyan(S_BAR)} ${this.value ? `${colors.green(S_RADIO_ACTIVE)} ${active}` : `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(active)}`} ${colors.dim("/")} ${this.value ? `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(inactive)}` : `${colors.green(S_RADIO_ACTIVE)} ${inactive}`}
|
|
1295
|
-
${colors.cyan(S_BAR_END)}
|
|
1296
|
-
`;
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
}).prompt();
|
|
1301
|
-
};
|
|
1302
|
-
select = (opts) => {
|
|
1303
|
-
const opt = (option, state) => {
|
|
1304
|
-
const label = option.label ?? String(option.value);
|
|
1305
|
-
switch (state) {
|
|
1306
|
-
case "active": {
|
|
1307
|
-
return `${colors.green(S_RADIO_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
|
|
1308
|
-
}
|
|
1309
|
-
case "selected": {
|
|
1310
|
-
return `${colors.dim(label)}`;
|
|
1311
|
-
}
|
|
1312
|
-
case "cancelled": {
|
|
1313
|
-
return `${colors.strikethrough(colors.dim(label))}`;
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
return `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(label)}`;
|
|
1317
|
-
};
|
|
1318
|
-
return new ED({
|
|
1319
|
-
options: opts.options,
|
|
1320
|
-
initialValue: opts.initialValue,
|
|
1321
|
-
render() {
|
|
1322
|
-
const title = `${colors.gray(S_BAR)}
|
|
1323
|
-
${symbol(this.state)} ${opts.message}
|
|
1324
|
-
`;
|
|
1325
|
-
switch (this.state) {
|
|
1326
|
-
case "submit": {
|
|
1327
|
-
return `${title}${colors.gray(S_BAR)} ${opt(this.options[this.cursor], "selected")}`;
|
|
1328
|
-
}
|
|
1329
|
-
case "cancel": {
|
|
1330
|
-
return `${title}${colors.gray(S_BAR)} ${opt(this.options[this.cursor], "cancelled")}
|
|
1331
|
-
${colors.gray(S_BAR)}`;
|
|
1332
|
-
}
|
|
1333
|
-
default: {
|
|
1334
|
-
return `${title}${colors.cyan(S_BAR)} ${this.options.map((option, i) => opt(option, i === this.cursor ? "active" : "inactive")).join(`
|
|
1335
|
-
${colors.cyan(S_BAR)} `)}
|
|
1336
|
-
${colors.cyan(S_BAR_END)}
|
|
1337
|
-
`;
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
}).prompt();
|
|
1342
|
-
};
|
|
1343
|
-
multiselect = (opts) => {
|
|
1344
|
-
const opt = (option, state) => {
|
|
1345
|
-
const label = option.label ?? String(option.value);
|
|
1346
|
-
switch (state) {
|
|
1347
|
-
case "active": {
|
|
1348
|
-
return `${colors.cyan(S_CHECKBOX_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
|
|
1349
|
-
}
|
|
1350
|
-
case "selected": {
|
|
1351
|
-
return `${colors.green(S_CHECKBOX_SELECTED)} ${colors.dim(label)}`;
|
|
1352
|
-
}
|
|
1353
|
-
case "cancelled": {
|
|
1354
|
-
return `${colors.strikethrough(colors.dim(label))}`;
|
|
1355
|
-
}
|
|
1356
|
-
case "active-selected": {
|
|
1357
|
-
return `${colors.green(S_CHECKBOX_SELECTED)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
|
|
1358
|
-
}
|
|
1359
|
-
case "submitted": {
|
|
1360
|
-
return `${colors.dim(label)}`;
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
return `${colors.dim(S_CHECKBOX_INACTIVE)} ${colors.dim(label)}`;
|
|
1364
|
-
};
|
|
1365
|
-
return new iD({
|
|
1366
|
-
options: opts.options,
|
|
1367
|
-
initialValues: opts.initialValues,
|
|
1368
|
-
required: opts.required ?? true,
|
|
1369
|
-
cursorAt: opts.cursorAt,
|
|
1370
|
-
validate(selected) {
|
|
1371
|
-
if (this.required && selected.length === 0) {
|
|
1372
|
-
return `Please select at least one option.
|
|
1373
|
-
${colors.reset(colors.dim(`Press ${colors.gray(colors.bgWhite(colors.inverse(" space ")))} to select, ${colors.gray(colors.bgWhite(colors.inverse(" enter ")))} to submit`))}`;
|
|
1374
|
-
}
|
|
1375
|
-
},
|
|
1376
|
-
render() {
|
|
1377
|
-
const title = `${colors.gray(S_BAR)}
|
|
1378
|
-
${symbol(this.state)} ${opts.message}
|
|
1379
|
-
`;
|
|
1380
|
-
switch (this.state) {
|
|
1381
|
-
case "submit": {
|
|
1382
|
-
return `${title}${colors.gray(S_BAR)} ${this.options.filter(({ value }) => this.value.includes(value)).map((option) => opt(option, "submitted")).join(colors.dim(", ")) || colors.dim("none")}`;
|
|
1383
|
-
}
|
|
1384
|
-
case "cancel": {
|
|
1385
|
-
const label = this.options.filter(({ value }) => this.value.includes(value)).map((option) => opt(option, "cancelled")).join(colors.dim(", "));
|
|
1386
|
-
return `${title}${colors.gray(S_BAR)} ${label.trim() ? `${label}
|
|
1387
|
-
${colors.gray(S_BAR)}` : ""}`;
|
|
1388
|
-
}
|
|
1389
|
-
case "error": {
|
|
1390
|
-
const footer = this.error.split("\n").map((ln, i) => i === 0 ? `${colors.yellow(S_BAR_END)} ${colors.yellow(ln)}` : ` ${ln}`).join("\n");
|
|
1391
|
-
return title + colors.yellow(S_BAR) + " " + this.options.map((option, i) => {
|
|
1392
|
-
const selected = this.value.includes(option.value);
|
|
1393
|
-
const active = i === this.cursor;
|
|
1394
|
-
if (active && selected) {
|
|
1395
|
-
return opt(option, "active-selected");
|
|
1396
|
-
}
|
|
1397
|
-
if (selected) {
|
|
1398
|
-
return opt(option, "selected");
|
|
1399
|
-
}
|
|
1400
|
-
return opt(option, active ? "active" : "inactive");
|
|
1401
|
-
}).join(`
|
|
1402
|
-
${colors.yellow(S_BAR)} `) + "\n" + footer + "\n";
|
|
1403
|
-
}
|
|
1404
|
-
default: {
|
|
1405
|
-
return `${title}${colors.cyan(S_BAR)} ${this.options.map((option, i) => {
|
|
1406
|
-
const selected = this.value.includes(option.value);
|
|
1407
|
-
const active = i === this.cursor;
|
|
1408
|
-
if (active && selected) {
|
|
1409
|
-
return opt(option, "active-selected");
|
|
1410
|
-
}
|
|
1411
|
-
if (selected) {
|
|
1412
|
-
return opt(option, "selected");
|
|
1413
|
-
}
|
|
1414
|
-
return opt(option, active ? "active" : "inactive");
|
|
1415
|
-
}).join(`
|
|
1416
|
-
${colors.cyan(S_BAR)} `)}
|
|
1417
|
-
${colors.cyan(S_BAR_END)}
|
|
1418
|
-
`;
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
}).prompt();
|
|
1423
|
-
};
|
|
1424
|
-
});
|
|
1425
|
-
|
|
1426
|
-
// ../../../../node_modules/consola/dist/shared/consola.36c0034f.mjs
|
|
1427
|
-
import process$1 from "process";
|
|
1428
|
-
|
|
1429
|
-
class FancyReporter extends BasicReporter {
|
|
1430
|
-
formatStack(stack) {
|
|
1431
|
-
return "\n" + parseStack(stack).map((line) => " " + line.replace(/^at +/, (m2) => colors.gray(m2)).replace(/\((.+)\)/, (_2, m2) => `(${colors.cyan(m2)})`)).join("\n");
|
|
1432
|
-
}
|
|
1433
|
-
formatType(logObj, isBadge, opts) {
|
|
1434
|
-
const typeColor = TYPE_COLOR_MAP[logObj.type] || LEVEL_COLOR_MAP[logObj.level] || "gray";
|
|
1435
|
-
if (isBadge) {
|
|
1436
|
-
return getBgColor(typeColor)(colors.black(` ${logObj.type.toUpperCase()} `));
|
|
1437
|
-
}
|
|
1438
|
-
const _type = typeof TYPE_ICONS[logObj.type] === "string" ? TYPE_ICONS[logObj.type] : logObj.icon || logObj.type;
|
|
1439
|
-
return _type ? getColor2(typeColor)(_type) : "";
|
|
1440
|
-
}
|
|
1441
|
-
formatLogObj(logObj, opts) {
|
|
1442
|
-
const [message, ...additional] = this.formatArgs(logObj.args, opts).split("\n");
|
|
1443
|
-
if (logObj.type === "box") {
|
|
1444
|
-
return box(characterFormat(message + (additional.length > 0 ? "\n" + additional.join("\n") : "")), {
|
|
1445
|
-
title: logObj.title ? characterFormat(logObj.title) : undefined,
|
|
1446
|
-
style: logObj.style
|
|
1447
|
-
});
|
|
1448
|
-
}
|
|
1449
|
-
const date = this.formatDate(logObj.date, opts);
|
|
1450
|
-
const coloredDate = date && colors.gray(date);
|
|
1451
|
-
const isBadge = logObj.badge ?? logObj.level < 2;
|
|
1452
|
-
const type = this.formatType(logObj, isBadge, opts);
|
|
1453
|
-
const tag = logObj.tag ? colors.gray(logObj.tag) : "";
|
|
1454
|
-
let line;
|
|
1455
|
-
const left = this.filterAndJoin([type, characterFormat(message)]);
|
|
1456
|
-
const right = this.filterAndJoin(opts.columns ? [tag, coloredDate] : [tag]);
|
|
1457
|
-
const space = (opts.columns || 0) - stringWidth(left) - stringWidth(right) - 2;
|
|
1458
|
-
line = space > 0 && (opts.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : "") + left;
|
|
1459
|
-
line += characterFormat(additional.length > 0 ? "\n" + additional.join("\n") : "");
|
|
1460
|
-
if (logObj.type === "trace") {
|
|
1461
|
-
const _err = new Error("Trace: " + logObj.message);
|
|
1462
|
-
line += this.formatStack(_err.stack || "");
|
|
1463
|
-
}
|
|
1464
|
-
return isBadge ? "\n" + line + "\n" : line;
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
var detectProvider, toBoolean, ansiRegex2, stripAnsi2, getDefaultExportFromCjs, stringWidth$1, isUnicodeSupported, stringWidth, characterFormat, getColor2, getBgColor, createConsola2, _getDefaultLogLevel, providers, processShim, envShim, providerInfo, nodeENV, isCI2, hasTTY, isDebug, isTest, regex, eastasianwidth, eastasianwidthExports, eastAsianWidth, emojiRegex, TYPE_COLOR_MAP, LEVEL_COLOR_MAP, unicode2, s2, TYPE_ICONS, consola;
|
|
1468
|
-
var init_consola_36c0034f = __esm(() => {
|
|
1469
|
-
init_core();
|
|
1470
|
-
init_consola_06ad8a64();
|
|
1471
|
-
init_utils();
|
|
1472
|
-
detectProvider = function(env2) {
|
|
1473
|
-
for (const provider of providers) {
|
|
1474
|
-
const envName = provider[1] || provider[0];
|
|
1475
|
-
if (env2[envName]) {
|
|
1476
|
-
return {
|
|
1477
|
-
name: provider[0].toLowerCase(),
|
|
1478
|
-
...provider[2]
|
|
1479
|
-
};
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
if (env2.SHELL && env2.SHELL === "/bin/jsh") {
|
|
1483
|
-
return {
|
|
1484
|
-
name: "stackblitz",
|
|
1485
|
-
ci: false
|
|
1486
|
-
};
|
|
1487
|
-
}
|
|
1488
|
-
return {
|
|
1489
|
-
name: "",
|
|
1490
|
-
ci: false
|
|
1491
|
-
};
|
|
1492
|
-
};
|
|
1493
|
-
toBoolean = function(val) {
|
|
1494
|
-
return val ? val !== "false" : false;
|
|
1495
|
-
};
|
|
1496
|
-
ansiRegex2 = function({ onlyFirst = false } = {}) {
|
|
1497
|
-
const pattern = [
|
|
1498
|
-
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
1499
|
-
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
1500
|
-
].join("|");
|
|
1501
|
-
return new RegExp(pattern, onlyFirst ? undefined : "g");
|
|
1502
|
-
};
|
|
1503
|
-
stripAnsi2 = function(string) {
|
|
1504
|
-
if (typeof string !== "string") {
|
|
1505
|
-
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
1506
|
-
}
|
|
1507
|
-
return string.replace(regex, "");
|
|
1508
|
-
};
|
|
1509
|
-
getDefaultExportFromCjs = function(x) {
|
|
1510
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1511
|
-
};
|
|
1512
|
-
stringWidth$1 = function(string, options) {
|
|
1513
|
-
if (typeof string !== "string" || string.length === 0) {
|
|
1514
|
-
return 0;
|
|
1515
|
-
}
|
|
1516
|
-
options = {
|
|
1517
|
-
ambiguousIsNarrow: true,
|
|
1518
|
-
countAnsiEscapeCodes: false,
|
|
1519
|
-
...options
|
|
1520
|
-
};
|
|
1521
|
-
if (!options.countAnsiEscapeCodes) {
|
|
1522
|
-
string = stripAnsi2(string);
|
|
1523
|
-
}
|
|
1524
|
-
if (string.length === 0) {
|
|
1525
|
-
return 0;
|
|
1526
|
-
}
|
|
1527
|
-
const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
|
|
1528
|
-
let width = 0;
|
|
1529
|
-
for (const { segment: character } of new Intl.Segmenter().segment(string)) {
|
|
1530
|
-
const codePoint = character.codePointAt(0);
|
|
1531
|
-
if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
|
|
1532
|
-
continue;
|
|
1533
|
-
}
|
|
1534
|
-
if (codePoint >= 768 && codePoint <= 879) {
|
|
1535
|
-
continue;
|
|
1536
|
-
}
|
|
1537
|
-
if (emojiRegex().test(character)) {
|
|
1538
|
-
width += 2;
|
|
1539
|
-
continue;
|
|
1540
|
-
}
|
|
1541
|
-
const code = eastAsianWidth.eastAsianWidth(character);
|
|
1542
|
-
switch (code) {
|
|
1543
|
-
case "F":
|
|
1544
|
-
case "W": {
|
|
1545
|
-
width += 2;
|
|
1546
|
-
break;
|
|
1547
|
-
}
|
|
1548
|
-
case "A": {
|
|
1549
|
-
width += ambiguousCharacterWidth;
|
|
1550
|
-
break;
|
|
1551
|
-
}
|
|
1552
|
-
default: {
|
|
1553
|
-
width += 1;
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
return width;
|
|
1558
|
-
};
|
|
1559
|
-
isUnicodeSupported = function() {
|
|
1560
|
-
if (process$1.platform !== "win32") {
|
|
1561
|
-
return process$1.env.TERM !== "linux";
|
|
1562
|
-
}
|
|
1563
|
-
return Boolean(process$1.env.CI) || Boolean(process$1.env.WT_SESSION) || Boolean(process$1.env.TERMINUS_SUBLIME) || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
1564
|
-
};
|
|
1565
|
-
stringWidth = function(str) {
|
|
1566
|
-
if (!Intl.Segmenter) {
|
|
1567
|
-
return stripAnsi(str).length;
|
|
1568
|
-
}
|
|
1569
|
-
return stringWidth$1(str);
|
|
1570
|
-
};
|
|
1571
|
-
characterFormat = function(str) {
|
|
1572
|
-
return str.replace(/`([^`]+)`/gm, (_2, m2) => colors.cyan(m2)).replace(/\s+_([^_]+)_\s+/gm, (_2, m2) => ` ${colors.underline(m2)} `);
|
|
1573
|
-
};
|
|
1574
|
-
getColor2 = function(color = "white") {
|
|
1575
|
-
return colors[color] || colors.white;
|
|
1576
|
-
};
|
|
1577
|
-
getBgColor = function(color = "bgWhite") {
|
|
1578
|
-
return colors[`bg${color[0].toUpperCase()}${color.slice(1)}`] || colors.bgWhite;
|
|
1579
|
-
};
|
|
1580
|
-
createConsola2 = function(options = {}) {
|
|
1581
|
-
let level = _getDefaultLogLevel();
|
|
1582
|
-
if (process.env.CONSOLA_LEVEL) {
|
|
1583
|
-
level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
|
|
1584
|
-
}
|
|
1585
|
-
const consola2 = createConsola({
|
|
1586
|
-
level,
|
|
1587
|
-
defaults: { level },
|
|
1588
|
-
stdout: process.stdout,
|
|
1589
|
-
stderr: process.stderr,
|
|
1590
|
-
prompt: (...args) => Promise.resolve().then(() => (init_prompt(), exports_prompt)).then((m2) => m2.prompt(...args)),
|
|
1591
|
-
reporters: options.reporters || [
|
|
1592
|
-
options.fancy ?? !(isCI2 || isTest) ? new FancyReporter : new BasicReporter
|
|
1593
|
-
],
|
|
1594
|
-
...options
|
|
1595
|
-
});
|
|
1596
|
-
return consola2;
|
|
1597
|
-
};
|
|
1598
|
-
_getDefaultLogLevel = function() {
|
|
1599
|
-
if (isDebug) {
|
|
1600
|
-
return LogLevels.debug;
|
|
1601
|
-
}
|
|
1602
|
-
if (isTest) {
|
|
1603
|
-
return LogLevels.warn;
|
|
1604
|
-
}
|
|
1605
|
-
return LogLevels.info;
|
|
1606
|
-
};
|
|
1607
|
-
providers = [
|
|
1608
|
-
["APPVEYOR"],
|
|
1609
|
-
["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
|
|
1610
|
-
["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],
|
|
1611
|
-
["APPCIRCLE", "AC_APPCIRCLE"],
|
|
1612
|
-
["BAMBOO", "bamboo_planKey"],
|
|
1613
|
-
["BITBUCKET", "BITBUCKET_COMMIT"],
|
|
1614
|
-
["BITRISE", "BITRISE_IO"],
|
|
1615
|
-
["BUDDY", "BUDDY_WORKSPACE_ID"],
|
|
1616
|
-
["BUILDKITE"],
|
|
1617
|
-
["CIRCLE", "CIRCLECI"],
|
|
1618
|
-
["CIRRUS", "CIRRUS_CI"],
|
|
1619
|
-
["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }],
|
|
1620
|
-
["CODEBUILD", "CODEBUILD_BUILD_ARN"],
|
|
1621
|
-
["CODEFRESH", "CF_BUILD_ID"],
|
|
1622
|
-
["DRONE"],
|
|
1623
|
-
["DRONE", "DRONE_BUILD_EVENT"],
|
|
1624
|
-
["DSARI"],
|
|
1625
|
-
["GITHUB_ACTIONS"],
|
|
1626
|
-
["GITLAB", "GITLAB_CI"],
|
|
1627
|
-
["GITLAB", "CI_MERGE_REQUEST_ID"],
|
|
1628
|
-
["GOCD", "GO_PIPELINE_LABEL"],
|
|
1629
|
-
["LAYERCI"],
|
|
1630
|
-
["HUDSON", "HUDSON_URL"],
|
|
1631
|
-
["JENKINS", "JENKINS_URL"],
|
|
1632
|
-
["MAGNUM"],
|
|
1633
|
-
["NETLIFY"],
|
|
1634
|
-
["NETLIFY", "NETLIFY_LOCAL", { ci: false }],
|
|
1635
|
-
["NEVERCODE"],
|
|
1636
|
-
["RENDER"],
|
|
1637
|
-
["SAIL", "SAILCI"],
|
|
1638
|
-
["SEMAPHORE"],
|
|
1639
|
-
["SCREWDRIVER"],
|
|
1640
|
-
["SHIPPABLE"],
|
|
1641
|
-
["SOLANO", "TDDIUM"],
|
|
1642
|
-
["STRIDER"],
|
|
1643
|
-
["TEAMCITY", "TEAMCITY_VERSION"],
|
|
1644
|
-
["TRAVIS"],
|
|
1645
|
-
["VERCEL", "NOW_BUILDER"],
|
|
1646
|
-
["APPCENTER", "APPCENTER_BUILD_ID"],
|
|
1647
|
-
["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }],
|
|
1648
|
-
["STACKBLITZ"],
|
|
1649
|
-
["STORMKIT"],
|
|
1650
|
-
["CLEAVR"]
|
|
1651
|
-
];
|
|
1652
|
-
processShim = typeof process !== "undefined" ? process : {};
|
|
1653
|
-
envShim = processShim.env || {};
|
|
1654
|
-
providerInfo = detectProvider(envShim);
|
|
1655
|
-
nodeENV = typeof process !== "undefined" && process.env && "development" || "";
|
|
1656
|
-
processShim.platform;
|
|
1657
|
-
providerInfo.name;
|
|
1658
|
-
isCI2 = toBoolean(envShim.CI) || providerInfo.ci !== false;
|
|
1659
|
-
hasTTY = toBoolean(processShim.stdout && processShim.stdout.isTTY);
|
|
1660
|
-
isDebug = toBoolean(envShim.DEBUG);
|
|
1661
|
-
isTest = nodeENV === "test" || toBoolean(envShim.TEST);
|
|
1662
|
-
toBoolean(envShim.MINIMAL);
|
|
1663
|
-
regex = ansiRegex2();
|
|
1664
|
-
eastasianwidth = { exports: {} };
|
|
1665
|
-
(function(module) {
|
|
1666
|
-
var eaw = {};
|
|
1667
|
-
{
|
|
1668
|
-
module.exports = eaw;
|
|
1669
|
-
}
|
|
1670
|
-
eaw.eastAsianWidth = function(character) {
|
|
1671
|
-
var x = character.charCodeAt(0);
|
|
1672
|
-
var y = character.length == 2 ? character.charCodeAt(1) : 0;
|
|
1673
|
-
var codePoint = x;
|
|
1674
|
-
if (55296 <= x && x <= 56319 && (56320 <= y && y <= 57343)) {
|
|
1675
|
-
x &= 1023;
|
|
1676
|
-
y &= 1023;
|
|
1677
|
-
codePoint = x << 10 | y;
|
|
1678
|
-
codePoint += 65536;
|
|
1679
|
-
}
|
|
1680
|
-
if (codePoint == 12288 || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510) {
|
|
1681
|
-
return "F";
|
|
1682
|
-
}
|
|
1683
|
-
if (codePoint == 8361 || 65377 <= codePoint && codePoint <= 65470 || 65474 <= codePoint && codePoint <= 65479 || 65482 <= codePoint && codePoint <= 65487 || 65490 <= codePoint && codePoint <= 65495 || 65498 <= codePoint && codePoint <= 65500 || 65512 <= codePoint && codePoint <= 65518) {
|
|
1684
|
-
return "H";
|
|
1685
|
-
}
|
|
1686
|
-
if (4352 <= codePoint && codePoint <= 4447 || 4515 <= codePoint && codePoint <= 4519 || 4602 <= codePoint && codePoint <= 4607 || 9001 <= codePoint && codePoint <= 9002 || 11904 <= codePoint && codePoint <= 11929 || 11931 <= codePoint && codePoint <= 12019 || 12032 <= codePoint && codePoint <= 12245 || 12272 <= codePoint && codePoint <= 12283 || 12289 <= codePoint && codePoint <= 12350 || 12353 <= codePoint && codePoint <= 12438 || 12441 <= codePoint && codePoint <= 12543 || 12549 <= codePoint && codePoint <= 12589 || 12593 <= codePoint && codePoint <= 12686 || 12688 <= codePoint && codePoint <= 12730 || 12736 <= codePoint && codePoint <= 12771 || 12784 <= codePoint && codePoint <= 12830 || 12832 <= codePoint && codePoint <= 12871 || 12880 <= codePoint && codePoint <= 13054 || 13056 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42124 || 42128 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 55216 <= codePoint && codePoint <= 55238 || 55243 <= codePoint && codePoint <= 55291 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65106 || 65108 <= codePoint && codePoint <= 65126 || 65128 <= codePoint && codePoint <= 65131 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127490 || 127504 <= codePoint && codePoint <= 127546 || 127552 <= codePoint && codePoint <= 127560 || 127568 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 194367 || 177984 <= codePoint && codePoint <= 196605 || 196608 <= codePoint && codePoint <= 262141) {
|
|
1687
|
-
return "W";
|
|
1688
|
-
}
|
|
1689
|
-
if (32 <= codePoint && codePoint <= 126 || 162 <= codePoint && codePoint <= 163 || 165 <= codePoint && codePoint <= 166 || codePoint == 172 || codePoint == 175 || 10214 <= codePoint && codePoint <= 10221 || 10629 <= codePoint && codePoint <= 10630) {
|
|
1690
|
-
return "Na";
|
|
1691
|
-
}
|
|
1692
|
-
if (codePoint == 161 || codePoint == 164 || 167 <= codePoint && codePoint <= 168 || codePoint == 170 || 173 <= codePoint && codePoint <= 174 || 176 <= codePoint && codePoint <= 180 || 182 <= codePoint && codePoint <= 186 || 188 <= codePoint && codePoint <= 191 || codePoint == 198 || codePoint == 208 || 215 <= codePoint && codePoint <= 216 || 222 <= codePoint && codePoint <= 225 || codePoint == 230 || 232 <= codePoint && codePoint <= 234 || 236 <= codePoint && codePoint <= 237 || codePoint == 240 || 242 <= codePoint && codePoint <= 243 || 247 <= codePoint && codePoint <= 250 || codePoint == 252 || codePoint == 254 || codePoint == 257 || codePoint == 273 || codePoint == 275 || codePoint == 283 || 294 <= codePoint && codePoint <= 295 || codePoint == 299 || 305 <= codePoint && codePoint <= 307 || codePoint == 312 || 319 <= codePoint && codePoint <= 322 || codePoint == 324 || 328 <= codePoint && codePoint <= 331 || codePoint == 333 || 338 <= codePoint && codePoint <= 339 || 358 <= codePoint && codePoint <= 359 || codePoint == 363 || codePoint == 462 || codePoint == 464 || codePoint == 466 || codePoint == 468 || codePoint == 470 || codePoint == 472 || codePoint == 474 || codePoint == 476 || codePoint == 593 || codePoint == 609 || codePoint == 708 || codePoint == 711 || 713 <= codePoint && codePoint <= 715 || codePoint == 717 || codePoint == 720 || 728 <= codePoint && codePoint <= 731 || codePoint == 733 || codePoint == 735 || 768 <= codePoint && codePoint <= 879 || 913 <= codePoint && codePoint <= 929 || 931 <= codePoint && codePoint <= 937 || 945 <= codePoint && codePoint <= 961 || 963 <= codePoint && codePoint <= 969 || codePoint == 1025 || 1040 <= codePoint && codePoint <= 1103 || codePoint == 1105 || codePoint == 8208 || 8211 <= codePoint && codePoint <= 8214 || 8216 <= codePoint && codePoint <= 8217 || 8220 <= codePoint && codePoint <= 8221 || 8224 <= codePoint && codePoint <= 8226 || 8228 <= codePoint && codePoint <= 8231 || codePoint == 8240 || 8242 <= codePoint && codePoint <= 8243 || codePoint == 8245 || codePoint == 8251 || codePoint == 8254 || codePoint == 8308 || codePoint == 8319 || 8321 <= codePoint && codePoint <= 8324 || codePoint == 8364 || codePoint == 8451 || codePoint == 8453 || codePoint == 8457 || codePoint == 8467 || codePoint == 8470 || 8481 <= codePoint && codePoint <= 8482 || codePoint == 8486 || codePoint == 8491 || 8531 <= codePoint && codePoint <= 8532 || 8539 <= codePoint && codePoint <= 8542 || 8544 <= codePoint && codePoint <= 8555 || 8560 <= codePoint && codePoint <= 8569 || codePoint == 8585 || 8592 <= codePoint && codePoint <= 8601 || 8632 <= codePoint && codePoint <= 8633 || codePoint == 8658 || codePoint == 8660 || codePoint == 8679 || codePoint == 8704 || 8706 <= codePoint && codePoint <= 8707 || 8711 <= codePoint && codePoint <= 8712 || codePoint == 8715 || codePoint == 8719 || codePoint == 8721 || codePoint == 8725 || codePoint == 8730 || 8733 <= codePoint && codePoint <= 8736 || codePoint == 8739 || codePoint == 8741 || 8743 <= codePoint && codePoint <= 8748 || codePoint == 8750 || 8756 <= codePoint && codePoint <= 8759 || 8764 <= codePoint && codePoint <= 8765 || codePoint == 8776 || codePoint == 8780 || codePoint == 8786 || 8800 <= codePoint && codePoint <= 8801 || 8804 <= codePoint && codePoint <= 8807 || 8810 <= codePoint && codePoint <= 8811 || 8814 <= codePoint && codePoint <= 8815 || 8834 <= codePoint && codePoint <= 8835 || 8838 <= codePoint && codePoint <= 8839 || codePoint == 8853 || codePoint == 8857 || codePoint == 8869 || codePoint == 8895 || codePoint == 8978 || 9312 <= codePoint && codePoint <= 9449 || 9451 <= codePoint && codePoint <= 9547 || 9552 <= codePoint && codePoint <= 9587 || 9600 <= codePoint && codePoint <= 9615 || 9618 <= codePoint && codePoint <= 9621 || 9632 <= codePoint && codePoint <= 9633 || 9635 <= codePoint && codePoint <= 9641 || 9650 <= codePoint && codePoint <= 9651 || 9654 <= codePoint && codePoint <= 9655 || 9660 <= codePoint && codePoint <= 9661 || 9664 <= codePoint && codePoint <= 9665 || 9670 <= codePoint && codePoint <= 9672 || codePoint == 9675 || 9678 <= codePoint && codePoint <= 9681 || 9698 <= codePoint && codePoint <= 9701 || codePoint == 9711 || 9733 <= codePoint && codePoint <= 9734 || codePoint == 9737 || 9742 <= codePoint && codePoint <= 9743 || 9748 <= codePoint && codePoint <= 9749 || codePoint == 9756 || codePoint == 9758 || codePoint == 9792 || codePoint == 9794 || 9824 <= codePoint && codePoint <= 9825 || 9827 <= codePoint && codePoint <= 9829 || 9831 <= codePoint && codePoint <= 9834 || 9836 <= codePoint && codePoint <= 9837 || codePoint == 9839 || 9886 <= codePoint && codePoint <= 9887 || 9918 <= codePoint && codePoint <= 9919 || 9924 <= codePoint && codePoint <= 9933 || 9935 <= codePoint && codePoint <= 9953 || codePoint == 9955 || 9960 <= codePoint && codePoint <= 9983 || codePoint == 10045 || codePoint == 10071 || 10102 <= codePoint && codePoint <= 10111 || 11093 <= codePoint && codePoint <= 11097 || 12872 <= codePoint && codePoint <= 12879 || 57344 <= codePoint && codePoint <= 63743 || 65024 <= codePoint && codePoint <= 65039 || codePoint == 65533 || 127232 <= codePoint && codePoint <= 127242 || 127248 <= codePoint && codePoint <= 127277 || 127280 <= codePoint && codePoint <= 127337 || 127344 <= codePoint && codePoint <= 127386 || 917760 <= codePoint && codePoint <= 917999 || 983040 <= codePoint && codePoint <= 1048573 || 1048576 <= codePoint && codePoint <= 1114109) {
|
|
1693
|
-
return "A";
|
|
1694
|
-
}
|
|
1695
|
-
return "N";
|
|
1696
|
-
};
|
|
1697
|
-
eaw.characterLength = function(character) {
|
|
1698
|
-
var code = this.eastAsianWidth(character);
|
|
1699
|
-
if (code == "F" || code == "W" || code == "A") {
|
|
1700
|
-
return 2;
|
|
1701
|
-
} else {
|
|
1702
|
-
return 1;
|
|
1703
|
-
}
|
|
1704
|
-
};
|
|
1705
|
-
function stringToArray(string) {
|
|
1706
|
-
return string.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
|
|
1707
|
-
}
|
|
1708
|
-
eaw.length = function(string) {
|
|
1709
|
-
var characters = stringToArray(string);
|
|
1710
|
-
var len = 0;
|
|
1711
|
-
for (var i = 0;i < characters.length; i++) {
|
|
1712
|
-
len = len + this.characterLength(characters[i]);
|
|
1713
|
-
}
|
|
1714
|
-
return len;
|
|
1715
|
-
};
|
|
1716
|
-
eaw.slice = function(text2, start, end) {
|
|
1717
|
-
textLen = eaw.length(text2);
|
|
1718
|
-
start = start ? start : 0;
|
|
1719
|
-
end = end ? end : 1;
|
|
1720
|
-
if (start < 0) {
|
|
1721
|
-
start = textLen + start;
|
|
1722
|
-
}
|
|
1723
|
-
if (end < 0) {
|
|
1724
|
-
end = textLen + end;
|
|
1725
|
-
}
|
|
1726
|
-
var result = "";
|
|
1727
|
-
var eawLen = 0;
|
|
1728
|
-
var chars = stringToArray(text2);
|
|
1729
|
-
for (var i = 0;i < chars.length; i++) {
|
|
1730
|
-
var char = chars[i];
|
|
1731
|
-
var charLen = eaw.length(char);
|
|
1732
|
-
if (eawLen >= start - (charLen == 2 ? 1 : 0)) {
|
|
1733
|
-
if (eawLen + charLen <= end) {
|
|
1734
|
-
result += char;
|
|
1735
|
-
} else {
|
|
1736
|
-
break;
|
|
1737
|
-
}
|
|
1738
|
-
}
|
|
1739
|
-
eawLen += charLen;
|
|
1740
|
-
}
|
|
1741
|
-
return result;
|
|
1742
|
-
};
|
|
1743
|
-
})(eastasianwidth);
|
|
1744
|
-
eastasianwidthExports = eastasianwidth.exports;
|
|
1745
|
-
eastAsianWidth = getDefaultExportFromCjs(eastasianwidthExports);
|
|
1746
|
-
emojiRegex = () => {
|
|
1747
|
-
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
1748
|
-
};
|
|
1749
|
-
TYPE_COLOR_MAP = {
|
|
1750
|
-
info: "cyan",
|
|
1751
|
-
fail: "red",
|
|
1752
|
-
success: "green",
|
|
1753
|
-
ready: "green",
|
|
1754
|
-
start: "magenta"
|
|
1755
|
-
};
|
|
1756
|
-
LEVEL_COLOR_MAP = {
|
|
1757
|
-
0: "red",
|
|
1758
|
-
1: "yellow"
|
|
1759
|
-
};
|
|
1760
|
-
unicode2 = isUnicodeSupported();
|
|
1761
|
-
s2 = (c2, fallback) => unicode2 ? c2 : fallback;
|
|
1762
|
-
TYPE_ICONS = {
|
|
1763
|
-
error: s2("\u2716", "\xD7"),
|
|
1764
|
-
fatal: s2("\u2716", "\xD7"),
|
|
1765
|
-
ready: s2("\u2714", "\u221A"),
|
|
1766
|
-
warn: s2("\u26A0", "\u203C"),
|
|
1767
|
-
info: s2("\u2139", "i"),
|
|
1768
|
-
success: s2("\u2714", "\u221A"),
|
|
1769
|
-
debug: s2("\u2699", "D"),
|
|
1770
|
-
trace: s2("\u2192", "\u2192"),
|
|
1771
|
-
fail: s2("\u2716", "\xD7"),
|
|
1772
|
-
start: s2("\u25D0", "o"),
|
|
1773
|
-
log: ""
|
|
1774
|
-
};
|
|
1775
|
-
consola = createConsola2();
|
|
1776
|
-
});
|
|
1777
|
-
|
|
1778
|
-
// src/base.ts
|
|
1779
|
-
import {toString} from "@stacksjs/strings";
|
|
1780
|
-
async function loop(times, callback) {
|
|
1781
|
-
[...Array(times)].forEach(async (item, i) => await callback(i));
|
|
1782
|
-
}
|
|
1783
|
-
// src/clean.ts
|
|
1784
|
-
import {path as p} from "@stacksjs/path";
|
|
1785
|
-
|
|
1786
|
-
// src/delete.ts
|
|
1787
|
-
import {rimraf} from "rimraf";
|
|
1788
|
-
|
|
1789
|
-
// src/clean.ts
|
|
1790
|
-
async function cleanProject() {
|
|
1791
|
-
return await rimraf([
|
|
1792
|
-
p.projectPath("bun.lockb"),
|
|
1793
|
-
p.projectPath("yarn.lock"),
|
|
1794
|
-
p.projectPath("node_modules/"),
|
|
1795
|
-
p.frameworkPath("dist"),
|
|
1796
|
-
p.frameworkPath("node_modules"),
|
|
1797
|
-
p.frameworkPath("**/dist"),
|
|
1798
|
-
p.frameworkPath("**/node_modules"),
|
|
1799
|
-
p.frameworkCloudPath("cdk.out/"),
|
|
1800
|
-
p.frameworkCloudPath("cdk.context.json"),
|
|
1801
|
-
p.frameworkCloudPath("dist.zip")
|
|
1802
|
-
]);
|
|
1803
|
-
}
|
|
1804
|
-
// src/config.ts
|
|
1805
|
-
import {
|
|
1806
|
-
defineApp,
|
|
1807
|
-
defineCache,
|
|
1808
|
-
defineCli,
|
|
1809
|
-
defineCdn,
|
|
1810
|
-
defineCronJob,
|
|
1811
|
-
defineJob,
|
|
1812
|
-
defineDependencies,
|
|
1813
|
-
defineDatabase,
|
|
1814
|
-
defineDns,
|
|
1815
|
-
defineEmailConfig,
|
|
1816
|
-
defineGit,
|
|
1817
|
-
defineHashing,
|
|
1818
|
-
defineLibrary,
|
|
1819
|
-
defineNotification,
|
|
1820
|
-
defineSms,
|
|
1821
|
-
defineEmail,
|
|
1822
|
-
defineChat,
|
|
1823
|
-
definePayment,
|
|
1824
|
-
defineQueue,
|
|
1825
|
-
defineSearchEngine,
|
|
1826
|
-
defineServices,
|
|
1827
|
-
defineStorage,
|
|
1828
|
-
defineUi
|
|
1829
|
-
} from "@stacksjs/config";
|
|
1830
|
-
// src/currency.ts
|
|
1831
|
-
import {
|
|
1832
|
-
add,
|
|
1833
|
-
allocate,
|
|
1834
|
-
compare,
|
|
1835
|
-
convert,
|
|
1836
|
-
equal,
|
|
1837
|
-
greaterThan,
|
|
1838
|
-
greaterThanOrEqual,
|
|
1839
|
-
hasSubUnits,
|
|
1840
|
-
isZero,
|
|
1841
|
-
lessThan,
|
|
1842
|
-
lessThanOrEqual,
|
|
1843
|
-
maximum,
|
|
1844
|
-
minimum,
|
|
1845
|
-
multiply,
|
|
1846
|
-
normalizeScale,
|
|
1847
|
-
dinero,
|
|
1848
|
-
dinero as dinero2,
|
|
1849
|
-
subtract,
|
|
1850
|
-
toSnapshot,
|
|
1851
|
-
toUnits,
|
|
1852
|
-
toDecimal,
|
|
1853
|
-
trimScale,
|
|
1854
|
-
haveSameCurrency,
|
|
1855
|
-
haveSameAmount,
|
|
1856
|
-
dinero as dinero3
|
|
1857
|
-
} from "dinero.js";
|
|
1858
|
-
import {USD} from "@dinero.js/currencies";
|
|
1859
|
-
// src/debounce.ts
|
|
1860
|
-
import {debounce} from "perfect-debounce";
|
|
1861
|
-
// src/equal.ts
|
|
1862
|
-
import {getTypeName} from "@stacksjs/types";
|
|
1863
|
-
function isDeepEqual(value1, value2) {
|
|
1864
|
-
const type1 = getTypeName(value1);
|
|
1865
|
-
const type2 = getTypeName(value2);
|
|
1866
|
-
if (type1 !== type2)
|
|
1867
|
-
return false;
|
|
1868
|
-
if (type1 === "array") {
|
|
1869
|
-
if (value1.length !== value2.length)
|
|
1870
|
-
return false;
|
|
1871
|
-
return value1.every((item, i) => {
|
|
1872
|
-
return isDeepEqual(item, value2[i]);
|
|
1873
|
-
});
|
|
1874
|
-
}
|
|
1875
|
-
if (type1 === "object") {
|
|
1876
|
-
const keyArr = Object.keys(value1);
|
|
1877
|
-
if (keyArr.length !== Object.keys(value2).length)
|
|
1878
|
-
return false;
|
|
1879
|
-
return keyArr.every((key) => {
|
|
1880
|
-
return isDeepEqual(value1[key], value2[key]);
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
return Object.is(value1, value2);
|
|
1884
|
-
}
|
|
1885
|
-
// src/export-size.ts
|
|
1886
|
-
import {getExportsSize} from "export-size";
|
|
1887
|
-
// src/find.ts
|
|
1888
|
-
import os from "os";
|
|
1889
|
-
import fs from "fs/promises";
|
|
1890
|
-
import path3 from "path";
|
|
1891
|
-
import {italic} from "@stacksjs/cli";
|
|
1892
|
-
|
|
1893
|
-
// ../logging/src/index.ts
|
|
1894
|
-
import process2 from "process";
|
|
1895
|
-
|
|
1896
|
-
// ../../../../node_modules/consola/dist/index.mjs
|
|
1897
|
-
init_consola_36c0034f();
|
|
1898
|
-
init_core();
|
|
1899
|
-
init_consola_06ad8a64();
|
|
1900
|
-
init_utils();
|
|
1901
|
-
|
|
1902
|
-
// ../logging/src/index.ts
|
|
1903
|
-
import {ExitCode} from "@stacksjs/types";
|
|
1904
|
-
import {logger as logConfig} from "@stacksjs/config";
|
|
1905
|
-
import {logsPath} from "@stacksjs/path";
|
|
1906
|
-
import {handleError} from "@stacksjs/error-handling";
|
|
1907
|
-
import {buddyOptions, prompt as getPrompt} from "@stacksjs/cli";
|
|
1908
|
-
function logLevel() {
|
|
1909
|
-
const verboseRegex = /--verbose(?!(\s*=\s*false|\s+false))(\s+|=true)?($|\s)/;
|
|
1910
|
-
if (verboseRegex.test(buddyOptions().trim()))
|
|
1911
|
-
return 4;
|
|
1912
|
-
return logConfig.level;
|
|
1913
|
-
}
|
|
1914
|
-
async function writeToLogFile(message) {
|
|
1915
|
-
const formattedMessage = `[${new Date().toISOString()}] ${message}\n`;
|
|
1916
|
-
try {
|
|
1917
|
-
const file = Bun.file(logFilePath);
|
|
1918
|
-
const writer = file.writer();
|
|
1919
|
-
const text2 = await file.text();
|
|
1920
|
-
writer.write(`${text2}\n`);
|
|
1921
|
-
writer.write(`${formattedMessage}\n`);
|
|
1922
|
-
await writer.end();
|
|
1923
|
-
} catch (error) {
|
|
1924
|
-
const file = Bun.file(logFilePath);
|
|
1925
|
-
const writer = file.writer();
|
|
1926
|
-
writer.write(`${formattedMessage}\n`);
|
|
1927
|
-
await writer.end();
|
|
1928
|
-
}
|
|
1929
|
-
}
|
|
1930
|
-
function dump(...args) {
|
|
1931
|
-
args.forEach((arg) => log2.debug(arg));
|
|
1932
|
-
}
|
|
1933
|
-
function dd(...args) {
|
|
1934
|
-
args.forEach((arg) => log2.debug(arg));
|
|
1935
|
-
process2.exit(ExitCode.FatalError);
|
|
1936
|
-
}
|
|
1937
|
-
function echo(...args) {
|
|
1938
|
-
console.log(...args);
|
|
1939
|
-
}
|
|
1940
|
-
var logger = createConsola2({
|
|
1941
|
-
level: logLevel()
|
|
1942
|
-
});
|
|
1943
|
-
var logFilePath = logsPath("console.log");
|
|
1944
|
-
var log2 = {
|
|
1945
|
-
async info(...arg) {
|
|
1946
|
-
logger.info(...arg);
|
|
1947
|
-
await writeToLogFile(`INFO: ${arg}`);
|
|
1948
|
-
},
|
|
1949
|
-
async success(msg) {
|
|
1950
|
-
logger.success(msg);
|
|
1951
|
-
await writeToLogFile(`SUCCESS: ${msg}`);
|
|
1952
|
-
},
|
|
1953
|
-
async error(err, options) {
|
|
1954
|
-
handleError(err, options);
|
|
1955
|
-
await writeToLogFile(`ERROR: ${err}`);
|
|
1956
|
-
},
|
|
1957
|
-
async warn(arg) {
|
|
1958
|
-
logger.warn(arg);
|
|
1959
|
-
await writeToLogFile(`WARN: ${arg}`);
|
|
1960
|
-
},
|
|
1961
|
-
async debug(...arg) {
|
|
1962
|
-
if (process2.env.APP_ENV === "production" || process2.env.APP_ENV === "prod")
|
|
1963
|
-
return await writeToLogFile(`DEBUG: ${arg}`);
|
|
1964
|
-
logger.debug(arg);
|
|
1965
|
-
await writeToLogFile(`DEBUG: ${arg}`);
|
|
1966
|
-
},
|
|
1967
|
-
async start(...arg) {
|
|
1968
|
-
logger.start(arg);
|
|
1969
|
-
await writeToLogFile(`START: ${arg}`);
|
|
1970
|
-
},
|
|
1971
|
-
box: logger.box,
|
|
1972
|
-
get prompt() {
|
|
1973
|
-
return getPrompt();
|
|
1974
|
-
},
|
|
1975
|
-
dump,
|
|
1976
|
-
dd,
|
|
1977
|
-
echo
|
|
1978
|
-
};
|
|
1979
|
-
|
|
1980
|
-
// src/find.ts
|
|
1981
|
-
async function findStacksProjects(dir, options) {
|
|
1982
|
-
dir = dir || os.homedir();
|
|
1983
|
-
if (!options?.quiet) {
|
|
1984
|
-
log2.info(`This may take a few moments, searching for Stacks projects in: ${italic(dir)}`);
|
|
1985
|
-
console.log("");
|
|
1986
|
-
console.log(italic(" Please note, while Stacks is searching for projects on your machine,"));
|
|
1987
|
-
console.log(italic(" you may be asked for permissions to scan certain directories."));
|
|
1988
|
-
console.log("");
|
|
1989
|
-
log2.debug(`Excluding directories: ${excludePatterns.join(", ")}`);
|
|
1990
|
-
}
|
|
1991
|
-
const foundProjects = [];
|
|
1992
|
-
async function searchDirectory(directory) {
|
|
1993
|
-
if (path3.basename(directory).startsWith("."))
|
|
1994
|
-
return;
|
|
1995
|
-
const isExcluded = excludePatterns.some((pattern) => typeof pattern === "string" ? directory.includes(pattern) : pattern.test(directory));
|
|
1996
|
-
if (isExcluded)
|
|
1997
|
-
return;
|
|
1998
|
-
let items;
|
|
1999
|
-
try {
|
|
2000
|
-
items = await fs.readdir(directory, { withFileTypes: true });
|
|
2001
|
-
} catch (error) {
|
|
2002
|
-
console.error(`Error reading directory ${directory}:`, error);
|
|
2003
|
-
return;
|
|
2004
|
-
}
|
|
2005
|
-
let buddyFileFound = false;
|
|
2006
|
-
let storageDirFound = false;
|
|
2007
|
-
for (const item of items) {
|
|
2008
|
-
if (item.isFile() && item.name === targetFileName) {
|
|
2009
|
-
buddyFileFound = true;
|
|
2010
|
-
} else if (item.isDirectory()) {
|
|
2011
|
-
const fullPath = path3.join(directory, item.name);
|
|
2012
|
-
if (item.name === "storage") {
|
|
2013
|
-
try {
|
|
2014
|
-
const storagePath = path3.join(fullPath, "framework/core/buddy");
|
|
2015
|
-
await fs.access(storagePath);
|
|
2016
|
-
storageDirFound = true;
|
|
2017
|
-
} catch (error) {
|
|
2018
|
-
}
|
|
2019
|
-
}
|
|
2020
|
-
await searchDirectory(fullPath);
|
|
2021
|
-
}
|
|
2022
|
-
}
|
|
2023
|
-
if (buddyFileFound && storageDirFound)
|
|
2024
|
-
foundProjects.push(directory);
|
|
2025
|
-
}
|
|
2026
|
-
await searchDirectory(dir);
|
|
2027
|
-
return foundProjects;
|
|
2028
|
-
}
|
|
2029
|
-
var targetFileName = "buddy";
|
|
2030
|
-
var excludePatterns = [
|
|
2031
|
-
"node_modules",
|
|
2032
|
-
"dist",
|
|
2033
|
-
/.*out.*/,
|
|
2034
|
-
`${os.homedir()}/Documents`,
|
|
2035
|
-
`${os.homedir()}/Pictures`,
|
|
2036
|
-
`${os.homedir()}/Library`,
|
|
2037
|
-
`${os.homedir()}/.Trash`
|
|
2038
|
-
];
|
|
2039
|
-
// src/function.ts
|
|
2040
|
-
function batchInvoke(functions) {
|
|
2041
|
-
functions.forEach((fn) => fn && fn());
|
|
2042
|
-
}
|
|
2043
|
-
function tap(value, callback) {
|
|
2044
|
-
callback(value);
|
|
2045
|
-
return value;
|
|
2046
|
-
}
|
|
2047
|
-
// src/git.ts
|
|
2048
|
-
import {execSync} from "child_process";
|
|
2049
|
-
function isGitClean() {
|
|
2050
|
-
try {
|
|
2051
|
-
execSync("git diff-index --quiet HEAD --");
|
|
2052
|
-
return true;
|
|
2053
|
-
} catch (error) {
|
|
2054
|
-
return false;
|
|
2055
|
-
}
|
|
2056
|
-
}
|
|
2057
|
-
// src/guards.ts
|
|
2058
|
-
function notNullish(v2) {
|
|
2059
|
-
return v2 != null;
|
|
2060
|
-
}
|
|
2061
|
-
function noNull(v2) {
|
|
2062
|
-
return v2 !== null;
|
|
2063
|
-
}
|
|
2064
|
-
function notUndefined(v2) {
|
|
2065
|
-
return v2 !== undefined;
|
|
2066
|
-
}
|
|
2067
|
-
function isTruthy(v2) {
|
|
2068
|
-
return Boolean(v2);
|
|
2069
|
-
}
|
|
2070
|
-
// src/hash.ts
|
|
2071
|
-
import {hashPaths} from "@stacksjs/storage";
|
|
2072
|
-
import {path as p3} from "@stacksjs/path";
|
|
2073
|
-
import {config as config3} from "@stacksjs/config";
|
|
2074
|
-
function originRequestFunctionHash() {
|
|
2075
|
-
try {
|
|
2076
|
-
return hashPaths(p3.cloudPath("src/edge"));
|
|
2077
|
-
} catch (error) {
|
|
2078
|
-
log.error("Are we in a Docker container? Failed to hash paths. Error below:");
|
|
2079
|
-
log.error(error);
|
|
2080
|
-
return;
|
|
2081
|
-
}
|
|
2082
|
-
}
|
|
2083
|
-
var docsSrc = [
|
|
2084
|
-
p3.projectPath("docs"),
|
|
2085
|
-
p3.projectPath("config/docs.ts")
|
|
2086
|
-
];
|
|
2087
|
-
var websiteSrc = [
|
|
2088
|
-
p3.projectPath("resources/views")
|
|
2089
|
-
];
|
|
2090
|
-
var websiteSourceHash = config3.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc);
|
|
2091
|
-
// src/helpers.ts
|
|
2092
|
-
import {log as log3, runCommand} from "@stacksjs/cli";
|
|
2093
|
-
import {err, handleError as handleError2, ok} from "@stacksjs/error-handling";
|
|
2094
|
-
import {frameworkPath, projectPath} from "@stacksjs/path";
|
|
2095
|
-
import * as storage2 from "@stacksjs/storage";
|
|
2096
|
-
import {Action} from "@stacksjs/enums";
|
|
2097
|
-
import {parse} from "yaml";
|
|
2098
|
-
import {app, ui} from "@stacksjs/config";
|
|
2099
|
-
async function packageManager() {
|
|
2100
|
-
const { packageManager: packageManager2 } = await storage2.readPackageJson(frameworkPath("package.json"));
|
|
2101
|
-
return packageManager2;
|
|
2102
|
-
}
|
|
2103
|
-
async function initProject() {
|
|
2104
|
-
if (app.env !== "production")
|
|
2105
|
-
log3.info("Project not yet initialized, generating application key...");
|
|
2106
|
-
else
|
|
2107
|
-
handleError2("Please run `buddy key:generate` to generate an application key");
|
|
2108
|
-
const result = await runAction(Action.KeyGenerate, { cwd: projectPath() });
|
|
2109
|
-
if (result.isErr())
|
|
2110
|
-
return err(handleError2(result.error));
|
|
2111
|
-
log3.info("Application key generated.");
|
|
2112
|
-
return ok(result.value);
|
|
2113
|
-
}
|
|
2114
|
-
async function ensureProjectIsInitialized() {
|
|
2115
|
-
if (storage2.isFile(projectPath(".env")))
|
|
2116
|
-
return await isAppKeySet();
|
|
2117
|
-
if (storage2.isFile(projectPath(".env.example")))
|
|
2118
|
-
await runCommand("cp .env.example .env", { cwd: projectPath() });
|
|
2119
|
-
else
|
|
2120
|
-
console.error("no .env.example file found");
|
|
2121
|
-
return await isAppKeySet();
|
|
2122
|
-
}
|
|
2123
|
-
async function installIfVersionMismatch() {
|
|
2124
|
-
}
|
|
2125
|
-
async function frameworkVersion() {
|
|
2126
|
-
return (await storage2.readPackageJson(frameworkPath("package.json"))).version;
|
|
2127
|
-
}
|
|
2128
|
-
async function isAppKeySet() {
|
|
2129
|
-
const env2 = await storage2.readTextFile(".env", projectPath());
|
|
2130
|
-
const lines = env2.data.split("\n");
|
|
2131
|
-
const appKey = lines.find((line) => line.startsWith("APP_KEY="));
|
|
2132
|
-
return !!(appKey && appKey.length > 16);
|
|
2133
|
-
}
|
|
2134
|
-
function determineResetPreset(preset) {
|
|
2135
|
-
if (ui.reset)
|
|
2136
|
-
preset = ui.reset;
|
|
2137
|
-
if (preset === "tailwind")
|
|
2138
|
-
return ["import \'@unocss/reset/tailwind.css\'"];
|
|
2139
|
-
if (preset === "normalize")
|
|
2140
|
-
return ["import \'@unocss/reset/normalize.css\'"];
|
|
2141
|
-
if (preset === "sanitize")
|
|
2142
|
-
return ["import \'@unocss/reset/sanitize/sanitize.css\'", "import \'@unocss/reset/sanitize/assets.css"];
|
|
2143
|
-
if (preset === "eric-meyer")
|
|
2144
|
-
return ["import \'@unocss/reset/eric-meyer.css\'"];
|
|
2145
|
-
if (preset === "antfu")
|
|
2146
|
-
return ["import \'@unocss/reset/antfu.css\'"];
|
|
2147
|
-
return [];
|
|
2148
|
-
}
|
|
2149
|
-
function isManifest(obj) {
|
|
2150
|
-
return obj && typeof obj === "object" && isOptionalString(obj.name) && isOptionalString(obj.version) && isOptionalString(obj.description);
|
|
2151
|
-
}
|
|
2152
|
-
function isOptionalString(value) {
|
|
2153
|
-
const type = typeof value;
|
|
2154
|
-
return value === null || type === "undefined" || type === "string";
|
|
2155
|
-
}
|
|
2156
|
-
async function setEnvValue(key, value) {
|
|
2157
|
-
const file = await storage2.readTextFile(projectPath(".env"));
|
|
2158
|
-
await storage2.writeTextFile({
|
|
2159
|
-
path: projectPath(".env"),
|
|
2160
|
-
data: file.data.replace(/APP_KEY=/g, `APP_KEY=${value}`)
|
|
2161
|
-
});
|
|
2162
|
-
}
|
|
2163
|
-
async function runNpmScript(script, options) {
|
|
2164
|
-
const { data: manifest } = await storage2.readJsonFile("package.json", frameworkPath());
|
|
2165
|
-
if (isManifest(manifest) && hasScript(manifest, script))
|
|
2166
|
-
return await runCommand(`bun --bun run ${script}`, options);
|
|
2167
|
-
return err(handleError2(`The ${script} script does not exist in the package.json file.`));
|
|
2168
|
-
}
|
|
2169
|
-
function hasScript(manifest, script) {
|
|
2170
|
-
const scripts = manifest.scripts;
|
|
2171
|
-
if (scripts && typeof scripts === "object")
|
|
2172
|
-
return Boolean(scripts[script]);
|
|
2173
|
-
return false;
|
|
2174
|
-
}
|
|
2175
|
-
function parseYaml(content) {
|
|
2176
|
-
return parse(content);
|
|
2177
|
-
}
|
|
2178
|
-
function determineDebugLevel(options) {
|
|
2179
|
-
if (options?.verbose === true)
|
|
2180
|
-
return true;
|
|
2181
|
-
return app.debug === true;
|
|
2182
|
-
}
|
|
2183
|
-
function isIpv6(address) {
|
|
2184
|
-
return address.family === "IPv6" || address.family === 6;
|
|
2185
|
-
}
|
|
2186
|
-
import {dump as dump2, load} from "js-yaml";
|
|
2187
|
-
// src/macroable.ts
|
|
2188
|
-
import {Macroable} from "macroable";
|
|
2189
|
-
// src/math.ts
|
|
2190
|
-
function rand(min, max) {
|
|
2191
|
-
min = Math.ceil(min);
|
|
2192
|
-
max = Math.floor(max);
|
|
2193
|
-
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
2194
|
-
}
|
|
2195
|
-
import {
|
|
2196
|
-
and,
|
|
2197
|
-
createGenericProjection,
|
|
2198
|
-
createProjection,
|
|
2199
|
-
logicNot,
|
|
2200
|
-
logicOr,
|
|
2201
|
-
or,
|
|
2202
|
-
useAbs,
|
|
2203
|
-
useAverage,
|
|
2204
|
-
useCeil,
|
|
2205
|
-
useClamp,
|
|
2206
|
-
useFloor,
|
|
2207
|
-
useMath,
|
|
2208
|
-
useMax,
|
|
2209
|
-
useMin,
|
|
2210
|
-
usePrecision,
|
|
2211
|
-
useProjection,
|
|
2212
|
-
useRound,
|
|
2213
|
-
useSum,
|
|
2214
|
-
useTrunc
|
|
2215
|
-
} from "@vueuse/math";
|
|
2216
|
-
var clamp = (n, min, max) => Math.min(max, Math.max(min, n));
|
|
2217
|
-
// src/p.ts
|
|
2218
|
-
import pLimit from "p-limit";
|
|
2219
|
-
function p4(items, options) {
|
|
2220
|
-
return new PInstance(items, options);
|
|
2221
|
-
}
|
|
2222
|
-
var VOID = Symbol("p-void");
|
|
2223
|
-
|
|
2224
|
-
class PInstance extends Promise {
|
|
2225
|
-
items;
|
|
2226
|
-
options;
|
|
2227
|
-
promises = new Set;
|
|
2228
|
-
get promise() {
|
|
2229
|
-
let batch;
|
|
2230
|
-
const items = [...Array.from(this.items), ...Array.from(this.promises)];
|
|
2231
|
-
if (this.options?.concurrency) {
|
|
2232
|
-
const limit = pLimit(this.options.concurrency);
|
|
2233
|
-
batch = Promise.all(items.map((p5) => limit(() => p5)));
|
|
2234
|
-
} else {
|
|
2235
|
-
batch = Promise.all(items);
|
|
2236
|
-
}
|
|
2237
|
-
return batch.then((l2) => l2.filter((i) => i !== VOID));
|
|
2238
|
-
}
|
|
2239
|
-
constructor(items = [], options) {
|
|
2240
|
-
super(() => {
|
|
2241
|
-
});
|
|
2242
|
-
this.items = items;
|
|
2243
|
-
this.options = options;
|
|
2244
|
-
}
|
|
2245
|
-
add(...args) {
|
|
2246
|
-
args.forEach((i) => {
|
|
2247
|
-
this.promises.add(i);
|
|
2248
|
-
});
|
|
2249
|
-
}
|
|
2250
|
-
map(fn) {
|
|
2251
|
-
return new PInstance(Array.from(this.items).map(async (i, idx) => {
|
|
2252
|
-
const v2 = await i;
|
|
2253
|
-
if (v2 === VOID)
|
|
2254
|
-
return VOID;
|
|
2255
|
-
return fn(v2, idx);
|
|
2256
|
-
}), this.options);
|
|
2257
|
-
}
|
|
2258
|
-
filter(fn) {
|
|
2259
|
-
return new PInstance(Array.from(this.items).map(async (i, idx) => {
|
|
2260
|
-
const v2 = await i;
|
|
2261
|
-
const r2 = await fn(v2, idx);
|
|
2262
|
-
if (!r2)
|
|
2263
|
-
return VOID;
|
|
2264
|
-
return v2;
|
|
2265
|
-
}), this.options);
|
|
2266
|
-
}
|
|
2267
|
-
forEach(fn) {
|
|
2268
|
-
return this.map(fn).then();
|
|
2269
|
-
}
|
|
2270
|
-
reduce(fn, initialValue) {
|
|
2271
|
-
return this.promise.then((array) => array.reduce(fn, initialValue));
|
|
2272
|
-
}
|
|
2273
|
-
clear() {
|
|
2274
|
-
this.promises.clear();
|
|
2275
|
-
}
|
|
2276
|
-
then(fn) {
|
|
2277
|
-
const p5 = this.promise;
|
|
2278
|
-
if (fn)
|
|
2279
|
-
return p5.then(fn);
|
|
2280
|
-
return p5;
|
|
2281
|
-
}
|
|
2282
|
-
catch(fn) {
|
|
2283
|
-
return this.promise.catch(fn);
|
|
2284
|
-
}
|
|
2285
|
-
finally(fn) {
|
|
2286
|
-
return this.promise.finally(fn);
|
|
2287
|
-
}
|
|
2288
|
-
}
|
|
2289
|
-
// src/promise.ts
|
|
2290
|
-
import {remove} from "@stacksjs/arrays";
|
|
2291
|
-
function createSingletonPromise(fn) {
|
|
2292
|
-
let _promise;
|
|
2293
|
-
function wrapper() {
|
|
2294
|
-
if (!_promise)
|
|
2295
|
-
_promise = fn();
|
|
2296
|
-
return _promise;
|
|
2297
|
-
}
|
|
2298
|
-
wrapper.reset = async () => {
|
|
2299
|
-
const _prev = _promise;
|
|
2300
|
-
_promise = undefined;
|
|
2301
|
-
if (_prev)
|
|
2302
|
-
await _prev;
|
|
2303
|
-
};
|
|
2304
|
-
return wrapper;
|
|
2305
|
-
}
|
|
2306
|
-
function createPromiseLock() {
|
|
2307
|
-
const locks = [];
|
|
2308
|
-
return {
|
|
2309
|
-
async run(fn) {
|
|
2310
|
-
const p5 = fn();
|
|
2311
|
-
locks.push(p5);
|
|
2312
|
-
try {
|
|
2313
|
-
return await p5;
|
|
2314
|
-
} finally {
|
|
2315
|
-
remove(locks, p5);
|
|
2316
|
-
}
|
|
2317
|
-
},
|
|
2318
|
-
async wait() {
|
|
2319
|
-
await Promise.allSettled(locks);
|
|
2320
|
-
},
|
|
2321
|
-
isWaiting() {
|
|
2322
|
-
return Boolean(locks.length);
|
|
2323
|
-
},
|
|
2324
|
-
clear() {
|
|
2325
|
-
locks.length = 0;
|
|
2326
|
-
}
|
|
2327
|
-
};
|
|
2328
|
-
}
|
|
2329
|
-
function createControlledPromise() {
|
|
2330
|
-
let resolve, reject;
|
|
2331
|
-
const promise = new Promise((_resolve, _reject) => {
|
|
2332
|
-
resolve = _resolve;
|
|
2333
|
-
reject = _reject;
|
|
2334
|
-
});
|
|
2335
|
-
promise.resolve = resolve;
|
|
2336
|
-
promise.reject = reject;
|
|
2337
|
-
return promise;
|
|
2338
|
-
}
|
|
2339
|
-
// ../../../../node_modules/magic-regexp/dist/shared/magic-regexp.b7c910ac.mjs
|
|
2340
|
-
var NO_WRAP_RE = /^(\(.*\)|\\?.)$/;
|
|
2341
|
-
var wrap = (s3) => {
|
|
2342
|
-
const v2 = s3.toString();
|
|
2343
|
-
return NO_WRAP_RE.test(v2) ? v2 : `(?:${v2})`;
|
|
2344
|
-
};
|
|
2345
|
-
var GROUPED_AS_REPLACE_RE = /^(?:\(\?:(.+)\)|(\(?.+\)?))$/;
|
|
2346
|
-
var GROUPED_REPLACE_RE = /^(?:\(\?:(.+)\)([?+*]|{[\d,]+})?|(.+))$/;
|
|
2347
|
-
var createInput = (s3) => {
|
|
2348
|
-
const groupedAsFn = (key) => createInput(`(?<${key}>${`${s3}`.replace(GROUPED_AS_REPLACE_RE, "$1$2")})`);
|
|
2349
|
-
return {
|
|
2350
|
-
toString: () => s3.toString(),
|
|
2351
|
-
and: Object.assign((...inputs) => createInput(`${s3}${exactly(...inputs)}`), {
|
|
2352
|
-
referenceTo: (groupName) => createInput(`${s3}\\k<${groupName}>`)
|
|
2353
|
-
}),
|
|
2354
|
-
or: (...inputs) => createInput(`(?:${s3}|${exactly(...inputs)})`),
|
|
2355
|
-
after: (...input) => createInput(`(?<=${exactly(...input)})${s3}`),
|
|
2356
|
-
before: (...input) => createInput(`${s3}(?=${exactly(...input)})`),
|
|
2357
|
-
notAfter: (...input) => createInput(`(?<!${exactly(...input)})${s3}`),
|
|
2358
|
-
notBefore: (...input) => createInput(`${s3}(?!${exactly(...input)})`),
|
|
2359
|
-
times: Object.assign((number) => createInput(`${wrap(s3)}{${number}}`), {
|
|
2360
|
-
any: () => createInput(`${wrap(s3)}*`),
|
|
2361
|
-
atLeast: (min) => createInput(`${wrap(s3)}{${min},}`),
|
|
2362
|
-
atMost: (max) => createInput(`${wrap(s3)}{0,${max}}`),
|
|
2363
|
-
between: (min, max) => createInput(`${wrap(s3)}{${min},${max}}`)
|
|
2364
|
-
}),
|
|
2365
|
-
optionally: () => createInput(`${wrap(s3)}?`),
|
|
2366
|
-
as: groupedAsFn,
|
|
2367
|
-
groupedAs: groupedAsFn,
|
|
2368
|
-
grouped: () => createInput(`${s3}`.replace(GROUPED_REPLACE_RE, "($1$3)$2")),
|
|
2369
|
-
at: {
|
|
2370
|
-
lineStart: () => createInput(`^${s3}`),
|
|
2371
|
-
lineEnd: () => createInput(`${s3}\$`)
|
|
2372
|
-
}
|
|
2373
|
-
};
|
|
2374
|
-
};
|
|
2375
|
-
var ESCAPE_REPLACE_RE = /[.*+?^${}()|[\]\\/]/g;
|
|
2376
|
-
var charIn = (chars) => createInput(`[${chars.replace(/[-\\^\]]/g, "\\$&")}]`);
|
|
2377
|
-
var charNotIn = (chars) => createInput(`[^${chars.replace(/[-\\^\]]/g, "\\$&")}]`);
|
|
2378
|
-
var anyOf = (...inputs) => createInput(`(?:${inputs.map((a) => exactly(a)).join("|")})`);
|
|
2379
|
-
var char = createInput(".");
|
|
2380
|
-
var word = createInput("\\b\\w+\\b");
|
|
2381
|
-
var wordChar = createInput("\\w");
|
|
2382
|
-
var wordBoundary = createInput("\\b");
|
|
2383
|
-
var digit = createInput("\\d");
|
|
2384
|
-
var whitespace = createInput("\\s");
|
|
2385
|
-
var letter = Object.assign(createInput("[a-zA-Z]"), {
|
|
2386
|
-
lowercase: createInput("[a-z]"),
|
|
2387
|
-
uppercase: createInput("[A-Z]")
|
|
2388
|
-
});
|
|
2389
|
-
var tab = createInput("\\t");
|
|
2390
|
-
var linefeed = createInput("\\n");
|
|
2391
|
-
var carriageReturn = createInput("\\r");
|
|
2392
|
-
var not = {
|
|
2393
|
-
word: createInput("\\W+"),
|
|
2394
|
-
wordChar: createInput("\\W"),
|
|
2395
|
-
wordBoundary: createInput("\\B"),
|
|
2396
|
-
digit: createInput("\\D"),
|
|
2397
|
-
whitespace: createInput("\\S"),
|
|
2398
|
-
letter: Object.assign(createInput("[^a-zA-Z]"), {
|
|
2399
|
-
lowercase: createInput("[^a-z]"),
|
|
2400
|
-
uppercase: createInput("[^A-Z]")
|
|
2401
|
-
}),
|
|
2402
|
-
tab: createInput("[^\\t]"),
|
|
2403
|
-
linefeed: createInput("[^\\n]"),
|
|
2404
|
-
carriageReturn: createInput("[^\\r]")
|
|
2405
|
-
};
|
|
2406
|
-
var maybe = (...inputs) => createInput(`${wrap(exactly(...inputs))}?`);
|
|
2407
|
-
var exactly = (...inputs) => createInput(inputs.map((input) => typeof input === "string" ? input.replace(ESCAPE_REPLACE_RE, "\\$&") : input).join(""));
|
|
2408
|
-
var oneOrMore = (...inputs) => createInput(`${wrap(exactly(...inputs))}+`);
|
|
2409
|
-
var withIndices = "d";
|
|
2410
|
-
var caseInsensitive = "i";
|
|
2411
|
-
var global = "g";
|
|
2412
|
-
var multiline = "m";
|
|
2413
|
-
var dotAll = "s";
|
|
2414
|
-
var unicode3 = "u";
|
|
2415
|
-
var sticky = "y";
|
|
2416
|
-
|
|
2417
|
-
// ../../../../node_modules/magic-regexp/dist/index.mjs
|
|
2418
|
-
var createRegExp = (...inputs) => {
|
|
2419
|
-
const flags = inputs.length > 1 && (Array.isArray(inputs[inputs.length - 1]) || inputs[inputs.length - 1] instanceof Set) ? inputs.pop() : undefined;
|
|
2420
|
-
return new RegExp(exactly(...inputs).toString(), [...flags || ""].join(""));
|
|
2421
|
-
};
|
|
2422
|
-
// src/retry.ts
|
|
2423
|
-
function retry(fn, options) {
|
|
2424
|
-
const { retries = 3, initialDelay = 1000, backoffFactor = 2, jitter = true } = options;
|
|
2425
|
-
return new Promise((resolve, reject) => {
|
|
2426
|
-
let attemptCount = 0;
|
|
2427
|
-
const attempt = async () => {
|
|
2428
|
-
try {
|
|
2429
|
-
resolve(await fn());
|
|
2430
|
-
} catch (err2) {
|
|
2431
|
-
if (attemptCount >= retries) {
|
|
2432
|
-
reject(err2);
|
|
2433
|
-
} else {
|
|
2434
|
-
const delay = calculateDelay(attemptCount, initialDelay, backoffFactor, jitter);
|
|
2435
|
-
setTimeout(() => attempt(), delay);
|
|
2436
|
-
attemptCount++;
|
|
2437
|
-
}
|
|
2438
|
-
}
|
|
2439
|
-
};
|
|
2440
|
-
attempt();
|
|
2441
|
-
});
|
|
2442
|
-
}
|
|
2443
|
-
function calculateDelay(attemptCount, initialDelay, backoffFactor, jitter) {
|
|
2444
|
-
let delay = initialDelay * backoffFactor ** attemptCount;
|
|
2445
|
-
if (jitter) {
|
|
2446
|
-
const random = Math.random();
|
|
2447
|
-
const jitterValue = delay * 0.3;
|
|
2448
|
-
delay = delay + jitterValue * (random - 0.5) * 2;
|
|
2449
|
-
}
|
|
2450
|
-
return delay;
|
|
2451
|
-
}
|
|
2452
|
-
// src/sleep.ts
|
|
2453
|
-
function sleep(ms) {
|
|
2454
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
2455
|
-
}
|
|
2456
|
-
function wait(ms) {
|
|
2457
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
2458
|
-
}
|
|
2459
|
-
function delay(ms) {
|
|
2460
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
2461
|
-
}
|
|
2462
|
-
function waitUntil(condition, interval = 1000) {
|
|
2463
|
-
return new Promise((resolve) => {
|
|
2464
|
-
const check = setInterval(() => {
|
|
2465
|
-
if (condition()) {
|
|
2466
|
-
clearInterval(check);
|
|
2467
|
-
resolve();
|
|
2468
|
-
}
|
|
2469
|
-
}, interval);
|
|
2470
|
-
});
|
|
2471
|
-
}
|
|
2472
|
-
function waitWhile(condition, interval = 1000) {
|
|
2473
|
-
return new Promise((resolve) => {
|
|
2474
|
-
const check = setInterval(() => {
|
|
2475
|
-
if (!condition()) {
|
|
2476
|
-
clearInterval(check);
|
|
2477
|
-
resolve();
|
|
2478
|
-
}
|
|
2479
|
-
}, interval);
|
|
2480
|
-
});
|
|
2481
|
-
}
|
|
2482
|
-
// src/throttle.ts
|
|
2483
|
-
function throttle(fn, wait2 = 300) {
|
|
2484
|
-
let inThrottle;
|
|
2485
|
-
let lastFn;
|
|
2486
|
-
let lastTime;
|
|
2487
|
-
return function(...args) {
|
|
2488
|
-
if (!inThrottle) {
|
|
2489
|
-
fn.apply(this, args);
|
|
2490
|
-
lastTime = Date.now();
|
|
2491
|
-
inThrottle = true;
|
|
2492
|
-
} else {
|
|
2493
|
-
clearTimeout(lastFn);
|
|
2494
|
-
lastFn = setTimeout(() => {
|
|
2495
|
-
if (Date.now() - lastTime >= wait2) {
|
|
2496
|
-
fn.apply(this, args);
|
|
2497
|
-
lastTime = Date.now();
|
|
2498
|
-
}
|
|
2499
|
-
}, Math.max(wait2 - (Date.now() - lastTime), 0));
|
|
2500
|
-
}
|
|
2501
|
-
};
|
|
2502
|
-
}
|
|
2503
|
-
// src/vendors.ts
|
|
2504
|
-
import {
|
|
2505
|
-
asyncComputed,
|
|
2506
|
-
breakpointsAntDesign,
|
|
2507
|
-
breakpointsBootstrapV5,
|
|
2508
|
-
breakpointsMasterCss,
|
|
2509
|
-
breakpointsQuasar,
|
|
2510
|
-
breakpointsSematic,
|
|
2511
|
-
breakpointsTailwind,
|
|
2512
|
-
breakpointsVuetify,
|
|
2513
|
-
cloneFnJSON,
|
|
2514
|
-
computedAsync,
|
|
2515
|
-
computedInject,
|
|
2516
|
-
createFetch,
|
|
2517
|
-
createReusableTemplate,
|
|
2518
|
-
createTemplatePromise,
|
|
2519
|
-
createUnrefFn,
|
|
2520
|
-
customStorageEventName,
|
|
2521
|
-
defaultDocument,
|
|
2522
|
-
defaultLocation,
|
|
2523
|
-
defaultNavigator,
|
|
2524
|
-
defaultWindow,
|
|
2525
|
-
executeTransition,
|
|
2526
|
-
formatTimeAgo,
|
|
2527
|
-
getSSRHandler,
|
|
2528
|
-
mapGamepadToXbox360Controller,
|
|
2529
|
-
onClickOutside,
|
|
2530
|
-
onKeyDown,
|
|
2531
|
-
onKeyPressed,
|
|
2532
|
-
onKeyStroke,
|
|
2533
|
-
onKeyUp,
|
|
2534
|
-
onLongPress,
|
|
2535
|
-
onStartTyping,
|
|
2536
|
-
setSSRHandler,
|
|
2537
|
-
templateRef,
|
|
2538
|
-
unrefElement,
|
|
2539
|
-
useActiveElement,
|
|
2540
|
-
useAnimate,
|
|
2541
|
-
useAsyncQueue,
|
|
2542
|
-
useAsyncState,
|
|
2543
|
-
useBase64,
|
|
2544
|
-
useBattery,
|
|
2545
|
-
useBluetooth,
|
|
2546
|
-
useBreakpoints,
|
|
2547
|
-
useBroadcastChannel,
|
|
2548
|
-
useBrowserLocation,
|
|
2549
|
-
useCached,
|
|
2550
|
-
useClipboard,
|
|
2551
|
-
useCloned,
|
|
2552
|
-
useColorMode,
|
|
2553
|
-
useConfirmDialog,
|
|
2554
|
-
useCssVar,
|
|
2555
|
-
useCurrentElement,
|
|
2556
|
-
useCycleList,
|
|
2557
|
-
useDark,
|
|
2558
|
-
useDebouncedRefHistory,
|
|
2559
|
-
useDeviceMotion,
|
|
2560
|
-
useDeviceOrientation,
|
|
2561
|
-
useDevicePixelRatio,
|
|
2562
|
-
useDevicesList,
|
|
2563
|
-
useDisplayMedia,
|
|
2564
|
-
useDocumentVisibility,
|
|
2565
|
-
useDraggable,
|
|
2566
|
-
useDropZone,
|
|
2567
|
-
useElementBounding,
|
|
2568
|
-
useElementByPoint,
|
|
2569
|
-
useElementHover,
|
|
2570
|
-
useElementSize,
|
|
2571
|
-
useElementVisibility,
|
|
2572
|
-
useEventBus,
|
|
2573
|
-
useEventListener,
|
|
2574
|
-
useEventSource,
|
|
2575
|
-
useEyeDropper,
|
|
2576
|
-
useFavicon,
|
|
2577
|
-
useFetch,
|
|
2578
|
-
useFileDialog,
|
|
2579
|
-
useFileSystemAccess,
|
|
2580
|
-
useFocus,
|
|
2581
|
-
useFocusWithin,
|
|
2582
|
-
useFps,
|
|
2583
|
-
useFullscreen,
|
|
2584
|
-
useGamepad,
|
|
2585
|
-
useGeolocation,
|
|
2586
|
-
useIdle,
|
|
2587
|
-
useImage,
|
|
2588
|
-
useInfiniteScroll,
|
|
2589
|
-
useIntersectionObserver,
|
|
2590
|
-
useKeyModifier,
|
|
2591
|
-
useLocalStorage,
|
|
2592
|
-
useMagicKeys,
|
|
2593
|
-
useManualRefHistory,
|
|
2594
|
-
useMediaControls,
|
|
2595
|
-
useMediaQuery,
|
|
2596
|
-
useMemoize,
|
|
2597
|
-
useMemory,
|
|
2598
|
-
useMounted,
|
|
2599
|
-
useMouse,
|
|
2600
|
-
useMouseInElement,
|
|
2601
|
-
useMousePressed,
|
|
2602
|
-
useMutationObserver,
|
|
2603
|
-
useNavigatorLanguage,
|
|
2604
|
-
useNetwork,
|
|
2605
|
-
useObjectUrl,
|
|
2606
|
-
useOffsetPagination,
|
|
2607
|
-
useOnline,
|
|
2608
|
-
usePageLeave,
|
|
2609
|
-
useParallax,
|
|
2610
|
-
useParentElement,
|
|
2611
|
-
usePerformanceObserver,
|
|
2612
|
-
usePermission,
|
|
2613
|
-
usePointer,
|
|
2614
|
-
usePointerLock,
|
|
2615
|
-
usePointerSwipe,
|
|
2616
|
-
usePreferredColorScheme,
|
|
2617
|
-
usePreferredContrast,
|
|
2618
|
-
usePreferredDark,
|
|
2619
|
-
usePreferredLanguages,
|
|
2620
|
-
usePreferredReducedMotion,
|
|
2621
|
-
usePrevious,
|
|
2622
|
-
useRafFn,
|
|
2623
|
-
useRefHistory,
|
|
2624
|
-
useResizeObserver,
|
|
2625
|
-
useScreenOrientation,
|
|
2626
|
-
useScreenSafeArea,
|
|
2627
|
-
useScriptTag,
|
|
2628
|
-
useScroll,
|
|
2629
|
-
useScrollLock,
|
|
2630
|
-
useSessionStorage,
|
|
2631
|
-
useShare,
|
|
2632
|
-
useSorted,
|
|
2633
|
-
useSpeechRecognition,
|
|
2634
|
-
useSpeechSynthesis,
|
|
2635
|
-
useStepper,
|
|
2636
|
-
useStorage,
|
|
2637
|
-
useStorageAsync,
|
|
2638
|
-
useStyleTag,
|
|
2639
|
-
useSupported,
|
|
2640
|
-
useSwipe,
|
|
2641
|
-
useTemplateRefsList,
|
|
2642
|
-
useTextDirection,
|
|
2643
|
-
useTextSelection,
|
|
2644
|
-
useTextareaAutosize,
|
|
2645
|
-
useThrottledRefHistory,
|
|
2646
|
-
useTimeAgo,
|
|
2647
|
-
useTimeoutPoll,
|
|
2648
|
-
useTimestamp,
|
|
2649
|
-
useTitle,
|
|
2650
|
-
useTransition,
|
|
2651
|
-
useToggle,
|
|
2652
|
-
useUrlSearchParams,
|
|
2653
|
-
useUserMedia,
|
|
2654
|
-
useVModel,
|
|
2655
|
-
useVModels,
|
|
2656
|
-
useVibrate,
|
|
2657
|
-
useVirtualList,
|
|
2658
|
-
useWakeLock,
|
|
2659
|
-
useWebNotification,
|
|
2660
|
-
useWebSocket,
|
|
2661
|
-
useWebWorker,
|
|
2662
|
-
useWebWorkerFn,
|
|
2663
|
-
useWindowFocus,
|
|
2664
|
-
useWindowScroll,
|
|
2665
|
-
useWindowSize,
|
|
2666
|
-
useDateFormat,
|
|
2667
|
-
useNow,
|
|
2668
|
-
watchArray,
|
|
2669
|
-
watchAtMost,
|
|
2670
|
-
watchDebounced,
|
|
2671
|
-
watchDeep,
|
|
2672
|
-
watchIgnorable,
|
|
2673
|
-
watchImmediate,
|
|
2674
|
-
watchOnce,
|
|
2675
|
-
watchPausable,
|
|
2676
|
-
watchThrottled,
|
|
2677
|
-
watchTriggerable,
|
|
2678
|
-
watchWithFilter,
|
|
2679
|
-
whenever,
|
|
2680
|
-
syncRef,
|
|
2681
|
-
syncRefs,
|
|
2682
|
-
throttledRef,
|
|
2683
|
-
throttledWatch,
|
|
2684
|
-
toReactive,
|
|
2685
|
-
tryOnBeforeMount,
|
|
2686
|
-
tryOnBeforeUnmount,
|
|
2687
|
-
tryOnMounted,
|
|
2688
|
-
tryOnScopeDispose,
|
|
2689
|
-
tryOnUnmounted,
|
|
2690
|
-
until,
|
|
2691
|
-
isDefined,
|
|
2692
|
-
ignorableWatch,
|
|
2693
|
-
extendRef,
|
|
2694
|
-
eagerComputed,
|
|
2695
|
-
debouncedRef,
|
|
2696
|
-
debouncedWatch,
|
|
2697
|
-
createReactiveFn,
|
|
2698
|
-
createSharedComposable,
|
|
2699
|
-
createInjectionState,
|
|
2700
|
-
createGlobalState,
|
|
2701
|
-
createEventHook,
|
|
2702
|
-
controlledRef,
|
|
2703
|
-
controlledComputed,
|
|
2704
|
-
computedEager,
|
|
2705
|
-
computedWithControl,
|
|
2706
|
-
autoResetRef,
|
|
2707
|
-
injectLocal,
|
|
2708
|
-
makeDestructurable,
|
|
2709
|
-
pausableWatch,
|
|
2710
|
-
provideLocal,
|
|
2711
|
-
reactify,
|
|
2712
|
-
reactifyObject,
|
|
2713
|
-
reactiveComputed,
|
|
2714
|
-
reactiveOmit,
|
|
2715
|
-
reactivePick,
|
|
2716
|
-
refAutoReset,
|
|
2717
|
-
refDebounced,
|
|
2718
|
-
refDefault,
|
|
2719
|
-
refThrottled,
|
|
2720
|
-
refWithControl,
|
|
2721
|
-
resolveRef,
|
|
2722
|
-
resolveUnref,
|
|
2723
|
-
useArrayDifference,
|
|
2724
|
-
useArrayEvery,
|
|
2725
|
-
useArrayFilter,
|
|
2726
|
-
useArrayFind,
|
|
2727
|
-
useArrayFindIndex,
|
|
2728
|
-
useArrayIncludes,
|
|
2729
|
-
useArrayMap,
|
|
2730
|
-
useArrayReduce,
|
|
2731
|
-
useArraySome,
|
|
2732
|
-
useArrayUnique,
|
|
2733
|
-
useClipboardItems,
|
|
2734
|
-
useCounter,
|
|
2735
|
-
useDebounce,
|
|
2736
|
-
useDebounceFn,
|
|
2737
|
-
useInterval,
|
|
2738
|
-
useIntervalFn,
|
|
2739
|
-
useLastChanged,
|
|
2740
|
-
useThrottle,
|
|
2741
|
-
useThrottleFn,
|
|
2742
|
-
useTimeout,
|
|
2743
|
-
useTimeoutFn,
|
|
2744
|
-
useToNumber,
|
|
2745
|
-
useToString
|
|
2746
|
-
} from "@vueuse/core";
|
|
2747
|
-
import {
|
|
2748
|
-
Head,
|
|
2749
|
-
HeadVuePlugin,
|
|
2750
|
-
createHead,
|
|
2751
|
-
renderHeadToString
|
|
2752
|
-
} from "@vueuse/head";
|
|
2753
|
-
|
|
2754
|
-
// ../../../../node_modules/pretty-bytes/index.js
|
|
2755
|
-
var BYTE_UNITS = [
|
|
2756
|
-
"B",
|
|
2757
|
-
"kB",
|
|
2758
|
-
"MB",
|
|
2759
|
-
"GB",
|
|
2760
|
-
"TB",
|
|
2761
|
-
"PB",
|
|
2762
|
-
"EB",
|
|
2763
|
-
"ZB",
|
|
2764
|
-
"YB"
|
|
2765
|
-
];
|
|
2766
|
-
var BIBYTE_UNITS = [
|
|
2767
|
-
"B",
|
|
2768
|
-
"KiB",
|
|
2769
|
-
"MiB",
|
|
2770
|
-
"GiB",
|
|
2771
|
-
"TiB",
|
|
2772
|
-
"PiB",
|
|
2773
|
-
"EiB",
|
|
2774
|
-
"ZiB",
|
|
2775
|
-
"YiB"
|
|
2776
|
-
];
|
|
2777
|
-
var BIT_UNITS = [
|
|
2778
|
-
"b",
|
|
2779
|
-
"kbit",
|
|
2780
|
-
"Mbit",
|
|
2781
|
-
"Gbit",
|
|
2782
|
-
"Tbit",
|
|
2783
|
-
"Pbit",
|
|
2784
|
-
"Ebit",
|
|
2785
|
-
"Zbit",
|
|
2786
|
-
"Ybit"
|
|
2787
|
-
];
|
|
2788
|
-
var BIBIT_UNITS = [
|
|
2789
|
-
"b",
|
|
2790
|
-
"kibit",
|
|
2791
|
-
"Mibit",
|
|
2792
|
-
"Gibit",
|
|
2793
|
-
"Tibit",
|
|
2794
|
-
"Pibit",
|
|
2795
|
-
"Eibit",
|
|
2796
|
-
"Zibit",
|
|
2797
|
-
"Yibit"
|
|
2798
|
-
];
|
|
2799
|
-
var toLocaleString = (number, locale, options) => {
|
|
2800
|
-
let result = number;
|
|
2801
|
-
if (typeof locale === "string" || Array.isArray(locale)) {
|
|
2802
|
-
result = number.toLocaleString(locale, options);
|
|
2803
|
-
} else if (locale === true || options !== undefined) {
|
|
2804
|
-
result = number.toLocaleString(undefined, options);
|
|
2805
|
-
}
|
|
2806
|
-
return result;
|
|
2807
|
-
};
|
|
2808
|
-
function prettyBytes(number, options) {
|
|
2809
|
-
if (!Number.isFinite(number)) {
|
|
2810
|
-
throw new TypeError(`Expected a finite number, got ${typeof number}: ${number}`);
|
|
2811
|
-
}
|
|
2812
|
-
options = {
|
|
2813
|
-
bits: false,
|
|
2814
|
-
binary: false,
|
|
2815
|
-
space: true,
|
|
2816
|
-
...options
|
|
2817
|
-
};
|
|
2818
|
-
const UNITS = options.bits ? options.binary ? BIBIT_UNITS : BIT_UNITS : options.binary ? BIBYTE_UNITS : BYTE_UNITS;
|
|
2819
|
-
const separator = options.space ? " " : "";
|
|
2820
|
-
if (options.signed && number === 0) {
|
|
2821
|
-
return ` 0${separator}${UNITS[0]}`;
|
|
2822
|
-
}
|
|
2823
|
-
const isNegative = number < 0;
|
|
2824
|
-
const prefix = isNegative ? "-" : options.signed ? "+" : "";
|
|
2825
|
-
if (isNegative) {
|
|
2826
|
-
number = -number;
|
|
2827
|
-
}
|
|
2828
|
-
let localeOptions;
|
|
2829
|
-
if (options.minimumFractionDigits !== undefined) {
|
|
2830
|
-
localeOptions = { minimumFractionDigits: options.minimumFractionDigits };
|
|
2831
|
-
}
|
|
2832
|
-
if (options.maximumFractionDigits !== undefined) {
|
|
2833
|
-
localeOptions = { maximumFractionDigits: options.maximumFractionDigits, ...localeOptions };
|
|
2834
|
-
}
|
|
2835
|
-
if (number < 1) {
|
|
2836
|
-
const numberString2 = toLocaleString(number, options.locale, localeOptions);
|
|
2837
|
-
return prefix + numberString2 + separator + UNITS[0];
|
|
2838
|
-
}
|
|
2839
|
-
const exponent = Math.min(Math.floor(options.binary ? Math.log(number) / Math.log(1024) : Math.log10(number) / 3), UNITS.length - 1);
|
|
2840
|
-
number /= (options.binary ? 1024 : 1000) ** exponent;
|
|
2841
|
-
if (!localeOptions) {
|
|
2842
|
-
number = number.toPrecision(3);
|
|
2843
|
-
}
|
|
2844
|
-
const numberString = toLocaleString(Number(number), options.locale, localeOptions);
|
|
2845
|
-
const unit = UNITS[exponent];
|
|
2846
|
-
return prefix + numberString + separator + unit;
|
|
2847
|
-
}
|
|
2848
|
-
// package.json
|
|
2849
|
-
var version = "0.58.73";
|
|
2850
|
-
export {
|
|
2851
|
-
wordChar,
|
|
2852
|
-
wordBoundary,
|
|
2853
|
-
word,
|
|
2854
|
-
withIndices,
|
|
2855
|
-
whitespace,
|
|
2856
|
-
whenever,
|
|
2857
|
-
websiteSourceHash,
|
|
2858
|
-
watchWithFilter,
|
|
2859
|
-
watchTriggerable,
|
|
2860
|
-
watchThrottled,
|
|
2861
|
-
watchPausable,
|
|
2862
|
-
watchOnce,
|
|
2863
|
-
watchImmediate,
|
|
2864
|
-
watchIgnorable,
|
|
2865
|
-
watchDeep,
|
|
2866
|
-
watchDebounced,
|
|
2867
|
-
watchAtMost,
|
|
2868
|
-
watchArray,
|
|
2869
|
-
waitWhile,
|
|
2870
|
-
waitUntil,
|
|
2871
|
-
wait,
|
|
2872
|
-
version,
|
|
2873
|
-
useWindowSize,
|
|
2874
|
-
useWindowScroll,
|
|
2875
|
-
useWindowFocus,
|
|
2876
|
-
useWebWorkerFn,
|
|
2877
|
-
useWebWorker,
|
|
2878
|
-
useWebSocket,
|
|
2879
|
-
useWebNotification,
|
|
2880
|
-
useWakeLock,
|
|
2881
|
-
useVirtualList,
|
|
2882
|
-
useVibrate,
|
|
2883
|
-
useVModels,
|
|
2884
|
-
useVModel,
|
|
2885
|
-
useUserMedia,
|
|
2886
|
-
useUrlSearchParams,
|
|
2887
|
-
useTrunc,
|
|
2888
|
-
useTransition,
|
|
2889
|
-
useToggle,
|
|
2890
|
-
useToString,
|
|
2891
|
-
useToNumber,
|
|
2892
|
-
useTitle,
|
|
2893
|
-
useTimestamp,
|
|
2894
|
-
useTimeoutPoll,
|
|
2895
|
-
useTimeoutFn,
|
|
2896
|
-
useTimeout,
|
|
2897
|
-
useTimeAgo,
|
|
2898
|
-
useThrottledRefHistory,
|
|
2899
|
-
useThrottleFn,
|
|
2900
|
-
useThrottle,
|
|
2901
|
-
useTextareaAutosize,
|
|
2902
|
-
useTextSelection,
|
|
2903
|
-
useTextDirection,
|
|
2904
|
-
useTemplateRefsList,
|
|
2905
|
-
useSwipe,
|
|
2906
|
-
useSupported,
|
|
2907
|
-
useSum,
|
|
2908
|
-
useStyleTag,
|
|
2909
|
-
useStorageAsync,
|
|
2910
|
-
useStorage,
|
|
2911
|
-
useStepper,
|
|
2912
|
-
useSpeechSynthesis,
|
|
2913
|
-
useSpeechRecognition,
|
|
2914
|
-
useSorted,
|
|
2915
|
-
useShare,
|
|
2916
|
-
useSessionStorage,
|
|
2917
|
-
useScrollLock,
|
|
2918
|
-
useScroll,
|
|
2919
|
-
useScriptTag,
|
|
2920
|
-
useScreenSafeArea,
|
|
2921
|
-
useScreenOrientation,
|
|
2922
|
-
useRound,
|
|
2923
|
-
useResizeObserver,
|
|
2924
|
-
useRefHistory,
|
|
2925
|
-
useRafFn,
|
|
2926
|
-
useProjection,
|
|
2927
|
-
usePrevious,
|
|
2928
|
-
usePreferredReducedMotion,
|
|
2929
|
-
usePreferredLanguages,
|
|
2930
|
-
usePreferredDark,
|
|
2931
|
-
usePreferredContrast,
|
|
2932
|
-
usePreferredColorScheme,
|
|
2933
|
-
usePrecision,
|
|
2934
|
-
usePointerSwipe,
|
|
2935
|
-
usePointerLock,
|
|
2936
|
-
usePointer,
|
|
2937
|
-
usePermission,
|
|
2938
|
-
usePerformanceObserver,
|
|
2939
|
-
useParentElement,
|
|
2940
|
-
useParallax,
|
|
2941
|
-
usePageLeave,
|
|
2942
|
-
useOnline,
|
|
2943
|
-
useOffsetPagination,
|
|
2944
|
-
useObjectUrl,
|
|
2945
|
-
useNow,
|
|
2946
|
-
useNetwork,
|
|
2947
|
-
useNavigatorLanguage,
|
|
2948
|
-
useMutationObserver,
|
|
2949
|
-
useMousePressed,
|
|
2950
|
-
useMouseInElement,
|
|
2951
|
-
useMouse,
|
|
2952
|
-
useMounted,
|
|
2953
|
-
useMin,
|
|
2954
|
-
useMemory,
|
|
2955
|
-
useMemoize,
|
|
2956
|
-
useMediaQuery,
|
|
2957
|
-
useMediaControls,
|
|
2958
|
-
useMax,
|
|
2959
|
-
useMath,
|
|
2960
|
-
useManualRefHistory,
|
|
2961
|
-
useMagicKeys,
|
|
2962
|
-
useLocalStorage,
|
|
2963
|
-
useLastChanged,
|
|
2964
|
-
useKeyModifier,
|
|
2965
|
-
useIntervalFn,
|
|
2966
|
-
useInterval,
|
|
2967
|
-
useIntersectionObserver,
|
|
2968
|
-
useInfiniteScroll,
|
|
2969
|
-
useImage,
|
|
2970
|
-
useIdle,
|
|
2971
|
-
useGeolocation,
|
|
2972
|
-
useGamepad,
|
|
2973
|
-
useFullscreen,
|
|
2974
|
-
useFps,
|
|
2975
|
-
useFocusWithin,
|
|
2976
|
-
useFocus,
|
|
2977
|
-
useFloor,
|
|
2978
|
-
useFileSystemAccess,
|
|
2979
|
-
useFileDialog,
|
|
2980
|
-
useFetch,
|
|
2981
|
-
useFavicon,
|
|
2982
|
-
useEyeDropper,
|
|
2983
|
-
useEventSource,
|
|
2984
|
-
useEventListener,
|
|
2985
|
-
useEventBus,
|
|
2986
|
-
useElementVisibility,
|
|
2987
|
-
useElementSize,
|
|
2988
|
-
useElementHover,
|
|
2989
|
-
useElementByPoint,
|
|
2990
|
-
useElementBounding,
|
|
2991
|
-
useDropZone,
|
|
2992
|
-
useDraggable,
|
|
2993
|
-
useDocumentVisibility,
|
|
2994
|
-
useDisplayMedia,
|
|
2995
|
-
useDevicesList,
|
|
2996
|
-
useDevicePixelRatio,
|
|
2997
|
-
useDeviceOrientation,
|
|
2998
|
-
useDeviceMotion,
|
|
2999
|
-
useDebouncedRefHistory,
|
|
3000
|
-
useDebounceFn,
|
|
3001
|
-
useDebounce,
|
|
3002
|
-
useDateFormat,
|
|
3003
|
-
useDark,
|
|
3004
|
-
useCycleList,
|
|
3005
|
-
useCurrentElement,
|
|
3006
|
-
useCssVar,
|
|
3007
|
-
useCounter,
|
|
3008
|
-
useConfirmDialog,
|
|
3009
|
-
useColorMode,
|
|
3010
|
-
useCloned,
|
|
3011
|
-
useClipboardItems,
|
|
3012
|
-
useClipboard,
|
|
3013
|
-
useClamp,
|
|
3014
|
-
useCeil,
|
|
3015
|
-
useCached,
|
|
3016
|
-
useBrowserLocation,
|
|
3017
|
-
useBroadcastChannel,
|
|
3018
|
-
useBreakpoints,
|
|
3019
|
-
useBluetooth,
|
|
3020
|
-
useBattery,
|
|
3021
|
-
useBase64,
|
|
3022
|
-
useAverage,
|
|
3023
|
-
useAsyncState,
|
|
3024
|
-
useAsyncQueue,
|
|
3025
|
-
useArrayUnique,
|
|
3026
|
-
useArraySome,
|
|
3027
|
-
useArrayReduce,
|
|
3028
|
-
useArrayMap,
|
|
3029
|
-
useArrayIncludes,
|
|
3030
|
-
useArrayFindIndex,
|
|
3031
|
-
useArrayFind,
|
|
3032
|
-
useArrayFilter,
|
|
3033
|
-
useArrayEvery,
|
|
3034
|
-
useArrayDifference,
|
|
3035
|
-
useAnimate,
|
|
3036
|
-
useActiveElement,
|
|
3037
|
-
useAbs,
|
|
3038
|
-
until,
|
|
3039
|
-
unrefElement,
|
|
3040
|
-
unicode3 as unicode,
|
|
3041
|
-
tryOnUnmounted,
|
|
3042
|
-
tryOnScopeDispose,
|
|
3043
|
-
tryOnMounted,
|
|
3044
|
-
tryOnBeforeUnmount,
|
|
3045
|
-
tryOnBeforeMount,
|
|
3046
|
-
trimScale,
|
|
3047
|
-
toUnits,
|
|
3048
|
-
toString,
|
|
3049
|
-
toSnapshot,
|
|
3050
|
-
toReactive,
|
|
3051
|
-
toDecimal,
|
|
3052
|
-
throttledWatch,
|
|
3053
|
-
throttledRef,
|
|
3054
|
-
throttle,
|
|
3055
|
-
templateRef,
|
|
3056
|
-
tap,
|
|
3057
|
-
tab,
|
|
3058
|
-
syncRefs,
|
|
3059
|
-
syncRef,
|
|
3060
|
-
subtract,
|
|
3061
|
-
sticky,
|
|
3062
|
-
sleep,
|
|
3063
|
-
setSSRHandler,
|
|
3064
|
-
setEnvValue,
|
|
3065
|
-
runNpmScript,
|
|
3066
|
-
rimraf,
|
|
3067
|
-
retry,
|
|
3068
|
-
resolveUnref,
|
|
3069
|
-
resolveRef,
|
|
3070
|
-
renderHeadToString,
|
|
3071
|
-
refWithControl,
|
|
3072
|
-
refThrottled,
|
|
3073
|
-
refDefault,
|
|
3074
|
-
refDebounced,
|
|
3075
|
-
refAutoReset,
|
|
3076
|
-
prettyBytes as readableSize,
|
|
3077
|
-
reactivePick,
|
|
3078
|
-
reactiveOmit,
|
|
3079
|
-
reactiveComputed,
|
|
3080
|
-
reactifyObject,
|
|
3081
|
-
reactify,
|
|
3082
|
-
rand,
|
|
3083
|
-
provideLocal,
|
|
3084
|
-
pausableWatch,
|
|
3085
|
-
parseYaml,
|
|
3086
|
-
packageManager,
|
|
3087
|
-
p4 as p,
|
|
3088
|
-
originRequestFunctionHash,
|
|
3089
|
-
or,
|
|
3090
|
-
oneOrMore,
|
|
3091
|
-
onStartTyping,
|
|
3092
|
-
onLongPress,
|
|
3093
|
-
onKeyUp,
|
|
3094
|
-
onKeyStroke,
|
|
3095
|
-
onKeyPressed,
|
|
3096
|
-
onKeyDown,
|
|
3097
|
-
onClickOutside,
|
|
3098
|
-
notUndefined,
|
|
3099
|
-
notNullish,
|
|
3100
|
-
not,
|
|
3101
|
-
normalizeScale,
|
|
3102
|
-
noNull,
|
|
3103
|
-
multiply,
|
|
3104
|
-
multiline,
|
|
3105
|
-
dinero2 as money,
|
|
3106
|
-
minimum,
|
|
3107
|
-
maybe,
|
|
3108
|
-
maximum,
|
|
3109
|
-
mapGamepadToXbox360Controller,
|
|
3110
|
-
makeDestructurable,
|
|
3111
|
-
loop,
|
|
3112
|
-
logicOr,
|
|
3113
|
-
logicNot,
|
|
3114
|
-
load as loadYaml,
|
|
3115
|
-
linefeed,
|
|
3116
|
-
letter,
|
|
3117
|
-
lessThanOrEqual,
|
|
3118
|
-
lessThan,
|
|
3119
|
-
isZero,
|
|
3120
|
-
isTruthy,
|
|
3121
|
-
isOptionalString,
|
|
3122
|
-
isManifest,
|
|
3123
|
-
isIpv6,
|
|
3124
|
-
isGitClean,
|
|
3125
|
-
isDefined,
|
|
3126
|
-
isDeepEqual,
|
|
3127
|
-
isAppKeySet,
|
|
3128
|
-
installIfVersionMismatch,
|
|
3129
|
-
injectLocal,
|
|
3130
|
-
initProject,
|
|
3131
|
-
ignorableWatch,
|
|
3132
|
-
haveSameCurrency,
|
|
3133
|
-
haveSameAmount,
|
|
3134
|
-
hasSubUnits,
|
|
3135
|
-
hasScript,
|
|
3136
|
-
greaterThanOrEqual,
|
|
3137
|
-
greaterThan,
|
|
3138
|
-
global,
|
|
3139
|
-
getSSRHandler,
|
|
3140
|
-
getExportsSize,
|
|
3141
|
-
frameworkVersion,
|
|
3142
|
-
formatTimeAgo,
|
|
3143
|
-
findStacksProjects,
|
|
3144
|
-
extendRef,
|
|
3145
|
-
executeTransition,
|
|
3146
|
-
exactly,
|
|
3147
|
-
equal,
|
|
3148
|
-
ensureProjectIsInitialized,
|
|
3149
|
-
eagerComputed,
|
|
3150
|
-
dump2 as dumpYaml,
|
|
3151
|
-
dotAll,
|
|
3152
|
-
dinero,
|
|
3153
|
-
digit,
|
|
3154
|
-
determineResetPreset,
|
|
3155
|
-
determineDebugLevel,
|
|
3156
|
-
delay,
|
|
3157
|
-
defineUi,
|
|
3158
|
-
defineStorage,
|
|
3159
|
-
defineSms,
|
|
3160
|
-
defineServices,
|
|
3161
|
-
defineSearchEngine,
|
|
3162
|
-
defineQueue,
|
|
3163
|
-
definePayment,
|
|
3164
|
-
defineNotification,
|
|
3165
|
-
defineLibrary,
|
|
3166
|
-
defineJob,
|
|
3167
|
-
defineHashing,
|
|
3168
|
-
defineGit,
|
|
3169
|
-
defineEmailConfig,
|
|
3170
|
-
defineEmail,
|
|
3171
|
-
defineDns,
|
|
3172
|
-
defineDependencies,
|
|
3173
|
-
defineDatabase,
|
|
3174
|
-
defineCronJob,
|
|
3175
|
-
defineCli,
|
|
3176
|
-
defineChat,
|
|
3177
|
-
defineCdn,
|
|
3178
|
-
defineCache,
|
|
3179
|
-
defineApp,
|
|
3180
|
-
defaultWindow,
|
|
3181
|
-
defaultNavigator,
|
|
3182
|
-
defaultLocation,
|
|
3183
|
-
defaultDocument,
|
|
3184
|
-
debouncedWatch,
|
|
3185
|
-
debouncedRef,
|
|
3186
|
-
debounce,
|
|
3187
|
-
customStorageEventName,
|
|
3188
|
-
dinero3 as currency,
|
|
3189
|
-
createUnrefFn,
|
|
3190
|
-
createTemplatePromise,
|
|
3191
|
-
createSingletonPromise,
|
|
3192
|
-
createSharedComposable,
|
|
3193
|
-
createReusableTemplate,
|
|
3194
|
-
createRegExp,
|
|
3195
|
-
createReactiveFn,
|
|
3196
|
-
createPromiseLock,
|
|
3197
|
-
createProjection,
|
|
3198
|
-
createInjectionState,
|
|
3199
|
-
createHead,
|
|
3200
|
-
createGlobalState,
|
|
3201
|
-
createGenericProjection,
|
|
3202
|
-
createFetch,
|
|
3203
|
-
createEventHook,
|
|
3204
|
-
createControlledPromise,
|
|
3205
|
-
convert,
|
|
3206
|
-
controlledRef,
|
|
3207
|
-
controlledComputed,
|
|
3208
|
-
computedWithControl,
|
|
3209
|
-
computedInject,
|
|
3210
|
-
computedEager,
|
|
3211
|
-
computedAsync,
|
|
3212
|
-
compare,
|
|
3213
|
-
cloneFnJSON,
|
|
3214
|
-
cleanProject,
|
|
3215
|
-
clamp,
|
|
3216
|
-
charNotIn,
|
|
3217
|
-
charIn,
|
|
3218
|
-
char,
|
|
3219
|
-
caseInsensitive,
|
|
3220
|
-
carriageReturn,
|
|
3221
|
-
calculateDelay,
|
|
3222
|
-
breakpointsVuetify,
|
|
3223
|
-
breakpointsTailwind,
|
|
3224
|
-
breakpointsSematic,
|
|
3225
|
-
breakpointsQuasar,
|
|
3226
|
-
breakpointsMasterCss,
|
|
3227
|
-
breakpointsBootstrapV5,
|
|
3228
|
-
breakpointsAntDesign,
|
|
3229
|
-
batchInvoke,
|
|
3230
|
-
autoResetRef,
|
|
3231
|
-
asyncComputed,
|
|
3232
|
-
anyOf,
|
|
3233
|
-
and,
|
|
3234
|
-
allocate,
|
|
3235
|
-
add,
|
|
3236
|
-
USD,
|
|
3237
|
-
Macroable,
|
|
3238
|
-
HeadVuePlugin,
|
|
3239
|
-
Head
|
|
3240
|
-
};
|