@catladder/cli 0.0.0-refactor-docker-c24f8608 → 0.0.0-refactor-cache-b38c122b
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/CONTRIBUTING.md +3 -86
- package/README.md +6 -29
- package/dist/bundles/catci/index.js +1563 -1231
- package/dist/bundles/catenv/index.js +9837 -12286
- package/dist/bundles/cli/index.js +35139 -41941
- package/dist/cli/src/apps/catci/catci.js +19 -91
- package/dist/cli/src/apps/catci/catci.js.map +1 -1
- package/dist/cli/src/apps/catci/commands/security/auditDocument.js +73 -79
- package/dist/cli/src/apps/catci/commands/security/auditDocument.js.map +1 -1
- package/dist/cli/src/apps/catci/commands/security/commands.js +94 -169
- package/dist/cli/src/apps/catci/commands/security/commands.js.map +1 -1
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.js +42 -102
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.js.map +1 -1
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.js +19 -67
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.js.map +1 -1
- package/dist/cli/src/apps/catenv/catenv.js +18 -64
- package/dist/cli/src/apps/catenv/catenv.js.map +1 -1
- package/dist/cli/src/apps/catenv/printVariables.js +36 -123
- package/dist/cli/src/apps/catenv/printVariables.js.map +1 -1
- package/dist/cli/src/apps/catenv/utils.js +26 -112
- package/dist/cli/src/apps/catenv/utils.js.map +1 -1
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.js +28 -132
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.js.map +1 -1
- package/dist/cli/src/apps/catenv/writeEnvDTs.js +49 -150
- package/dist/cli/src/apps/catenv/writeEnvDTs.js.map +1 -1
- package/dist/cli/src/apps/cli/cli.js +31 -76
- package/dist/cli/src/apps/cli/cli.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js +106 -180
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.js +4 -43
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/general/index.js +67 -191
- package/dist/cli/src/apps/cli/commands/general/index.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js +4 -49
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/general/portForward.js +36 -93
- package/dist/cli/src/apps/cli/commands/general/portForward.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/index.js +8 -47
- package/dist/cli/src/apps/cli/commands/mongodb/index.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js +86 -183
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js +30 -90
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js +50 -114
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js +58 -192
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js +118 -197
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js +82 -158
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js +134 -397
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js +40 -140
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js +23 -92
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js +10 -71
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js +7 -54
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.js +27 -89
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js +65 -180
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandListPods.js +13 -72
- package/dist/cli/src/apps/cli/commands/project/commandListPods.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandMigrateHelm3.js +38 -104
- package/dist/cli/src/apps/cli/commands/project/commandMigrateHelm3.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.js +8 -67
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenCostDashboard.js +16 -77
- package/dist/cli/src/apps/cli/commands/project/commandOpenCostDashboard.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenDashboard.js +18 -80
- package/dist/cli/src/apps/cli/commands/project/commandOpenDashboard.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js +14 -74
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js +6 -53
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenGrafana.js +16 -77
- package/dist/cli/src/apps/cli/commands/project/commandOpenGrafana.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenGrafanaPod.js +28 -93
- package/dist/cli/src/apps/cli/commands/project/commandOpenGrafanaPod.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js +11 -71
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js +23 -92
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.js +71 -161
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js +9 -0
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js +17 -112
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js +15 -66
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandSetup.js +6 -55
- package/dist/cli/src/apps/cli/commands/project/commandSetup.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js +47 -135
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/index.js +54 -91
- package/dist/cli/src/apps/cli/commands/project/index.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/index.js +39 -127
- package/dist/cli/src/apps/cli/commands/project/setup/index.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js +35 -94
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js +52 -128
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js +20 -76
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js +107 -147
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js +7 -80
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js +16 -105
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js +28 -78
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js +29 -110
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js +9 -53
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js +26 -92
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js.map +1 -1
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js +13 -62
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js.map +1 -1
- package/dist/cli/src/apps/cli/verify/index.js +10 -62
- package/dist/cli/src/apps/cli/verify/index.js.map +1 -1
- package/dist/cli/src/catci.js +1 -1
- package/dist/cli/src/catci.js.map +1 -1
- package/dist/cli/src/catenv.js +10 -4
- package/dist/cli/src/catenv.js.map +1 -1
- package/dist/cli/src/cli.js +1 -1
- package/dist/cli/src/cli.js.map +1 -1
- package/dist/cli/src/config/getProjectConfig.js +118 -292
- package/dist/cli/src/config/getProjectConfig.js.map +1 -1
- package/dist/cli/src/config/parseChoice.js +3 -19
- package/dist/cli/src/config/parseChoice.js.map +1 -1
- package/dist/cli/src/gcloud/artifactsRegistry.js +10 -54
- package/dist/cli/src/gcloud/artifactsRegistry.js.map +1 -1
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.js +21 -60
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.js.map +1 -1
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js +12 -56
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js.map +1 -1
- package/dist/cli/src/gcloud/cloudSql/copyDb.js +30 -56
- package/dist/cli/src/gcloud/cloudSql/copyDb.js.map +1 -1
- package/dist/cli/src/gcloud/cloudSql/startProxy.js +41 -123
- package/dist/cli/src/gcloud/cloudSql/startProxy.js.map +1 -1
- package/dist/cli/src/gcloud/enableServices.js +6 -82
- package/dist/cli/src/gcloud/enableServices.js.map +1 -1
- package/dist/cli/src/gcloud/openDashboard.js +12 -95
- package/dist/cli/src/gcloud/openDashboard.js.map +1 -1
- package/dist/cli/src/gcloud/serviceAccounts.js +63 -177
- package/dist/cli/src/gcloud/serviceAccounts.js.map +1 -1
- package/dist/cli/src/k8sApi/index.js +9 -9
- package/dist/cli/src/k8sApi/index.js.map +1 -1
- package/dist/cli/src/kubernetes/index.js +20 -81
- package/dist/cli/src/kubernetes/index.js.map +1 -1
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js +34 -86
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js.map +1 -1
- package/dist/cli/src/kubernetes/portForward.js +5 -50
- package/dist/cli/src/kubernetes/portForward.js.map +1 -1
- package/dist/cli/src/packageInfos.js +2 -2
- package/dist/cli/src/packageInfos.js.map +1 -1
- package/dist/cli/src/utils/boxWithAscii.js +6 -6
- package/dist/cli/src/utils/boxWithAscii.js.map +1 -1
- package/dist/cli/src/utils/cluster.js +8 -61
- package/dist/cli/src/utils/cluster.js.map +1 -1
- package/dist/cli/src/utils/editAsFile.js +21 -75
- package/dist/cli/src/utils/editAsFile.js.map +1 -1
- package/dist/cli/src/utils/files.js +11 -57
- package/dist/cli/src/utils/files.js.map +1 -1
- package/dist/cli/src/utils/getEditor.js +15 -71
- package/dist/cli/src/utils/getEditor.js.map +1 -1
- package/dist/cli/src/utils/gitlab.js +176 -466
- package/dist/cli/src/utils/gitlab.js.map +1 -1
- package/dist/cli/src/utils/log.js +2 -2
- package/dist/cli/src/utils/log.js.map +1 -1
- package/dist/cli/src/utils/portForwards.js +32 -120
- package/dist/cli/src/utils/portForwards.js.map +1 -1
- package/dist/cli/src/utils/preferences/index.js +27 -108
- package/dist/cli/src/utils/preferences/index.js.map +1 -1
- package/dist/cli/src/utils/projects/index.d.ts +1 -1
- package/dist/cli/src/utils/projects/index.js +28 -108
- package/dist/cli/src/utils/projects/index.js.map +1 -1
- package/dist/cli/src/utils/promise.js +4 -55
- package/dist/cli/src/utils/promise.js.map +1 -1
- package/dist/cli/src/utils/shell.js +19 -75
- package/dist/cli/src/utils/shell.js.map +1 -1
- package/dist/pipeline/src/bash/BashExpression.js +20 -52
- package/dist/pipeline/src/bash/BashExpression.js.map +1 -1
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js +1 -1
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js.map +1 -1
- package/dist/pipeline/src/bash/bashYaml.js +13 -10
- package/dist/pipeline/src/bash/bashYaml.js.map +1 -1
- package/dist/pipeline/src/bash/getInjectVarsScript.js +5 -27
- package/dist/pipeline/src/bash/getInjectVarsScript.js.map +1 -1
- package/dist/pipeline/src/bash/replaceAsync.js +29 -79
- package/dist/pipeline/src/bash/replaceAsync.js.map +1 -1
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.d.ts +3 -0
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +50 -0
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js.map +1 -0
- package/dist/pipeline/src/build/base/constants.js +1 -1
- package/dist/pipeline/src/build/base/constants.js.map +1 -1
- package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +3 -3
- package/dist/pipeline/src/build/base/createAppBuildJob.js +42 -71
- package/dist/pipeline/src/build/base/createAppBuildJob.js.map +1 -1
- package/dist/pipeline/src/build/base/createArtifactsConfig.js +11 -40
- package/dist/pipeline/src/build/base/createArtifactsConfig.js.map +1 -1
- package/dist/pipeline/src/build/base/createBuildJobDefinition.d.ts +6 -0
- package/dist/pipeline/src/build/base/createBuildJobDefinition.js +30 -0
- package/dist/pipeline/src/build/base/createBuildJobDefinition.js.map +1 -0
- package/dist/pipeline/src/build/base/index.d.ts +7 -4
- package/dist/pipeline/src/build/base/index.js +42 -50
- package/dist/pipeline/src/build/base/index.js.map +1 -1
- package/dist/pipeline/src/build/base/writeBuildInfo.js +2 -2
- package/dist/pipeline/src/build/base/writeBuildInfo.js.map +1 -1
- package/dist/pipeline/src/build/base/writeDotEnv.d.ts +1 -0
- package/dist/pipeline/src/build/base/writeDotEnv.js +21 -32
- package/dist/pipeline/src/build/base/writeDotEnv.js.map +1 -1
- package/dist/pipeline/src/build/cache/createJobCache.d.ts +7 -0
- package/dist/pipeline/src/build/cache/createJobCache.js +57 -0
- package/dist/pipeline/src/build/cache/createJobCache.js.map +1 -0
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.d.ts +3 -0
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +25 -0
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js.map +1 -0
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.d.ts +3 -0
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.js +17 -0
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.js.map +1 -0
- package/dist/pipeline/src/build/custom/buildJob.js +8 -55
- package/dist/pipeline/src/build/custom/buildJob.js.map +1 -1
- package/dist/pipeline/src/build/custom/index.js +4 -29
- package/dist/pipeline/src/build/custom/index.js.map +1 -1
- package/dist/pipeline/src/build/custom/testJob.d.ts +1 -1
- package/dist/pipeline/src/build/custom/testJob.js +46 -54
- package/dist/pipeline/src/build/custom/testJob.js.map +1 -1
- package/dist/pipeline/src/build/docker.d.ts +8 -9
- package/dist/pipeline/src/build/docker.js +88 -109
- package/dist/pipeline/src/build/docker.js.map +1 -1
- package/dist/pipeline/src/build/index.d.ts +14 -5
- package/dist/pipeline/src/build/index.js +36 -16
- package/dist/pipeline/src/build/index.js.map +1 -1
- package/dist/pipeline/src/build/node/buildJob.d.ts +6 -2
- package/dist/pipeline/src/build/node/buildJob.js +43 -78
- package/dist/pipeline/src/build/node/buildJob.js.map +1 -1
- package/dist/pipeline/src/build/node/cache.d.ts +7 -6
- package/dist/pipeline/src/build/node/cache.js +60 -67
- package/dist/pipeline/src/build/node/cache.js.map +1 -1
- package/dist/pipeline/src/build/node/constants.js +2 -2
- package/dist/pipeline/src/build/node/constants.js.map +1 -1
- package/dist/pipeline/src/build/node/index.d.ts +2 -2
- package/dist/pipeline/src/build/node/index.js +9 -34
- package/dist/pipeline/src/build/node/index.js.map +1 -1
- package/dist/pipeline/src/build/node/meteor.js +21 -52
- package/dist/pipeline/src/build/node/meteor.js.map +1 -1
- package/dist/pipeline/src/build/node/testJob.d.ts +3 -2
- package/dist/pipeline/src/build/node/testJob.js +76 -65
- package/dist/pipeline/src/build/node/testJob.js.map +1 -1
- package/dist/pipeline/src/build/node/yarn.d.ts +4 -4
- package/dist/pipeline/src/build/node/yarn.js +39 -54
- package/dist/pipeline/src/build/node/yarn.js.map +1 -1
- package/dist/pipeline/src/build/rails/build.d.ts +1 -1
- package/dist/pipeline/src/build/rails/build.js +28 -58
- package/dist/pipeline/src/build/rails/build.js.map +1 -1
- package/dist/pipeline/src/build/rails/index.js +4 -29
- package/dist/pipeline/src/build/rails/index.js.map +1 -1
- package/dist/pipeline/src/build/rails/test.d.ts +1 -1
- package/dist/pipeline/src/build/rails/test.js +64 -65
- package/dist/pipeline/src/build/rails/test.js.map +1 -1
- package/dist/pipeline/src/build/sbom.js +19 -14
- package/dist/pipeline/src/build/sbom.js.map +1 -1
- package/dist/pipeline/src/build/types.d.ts +108 -7
- package/dist/pipeline/src/build/types.js +10 -6
- package/dist/pipeline/src/build/types.js.map +1 -1
- package/dist/pipeline/src/config/configruedEnvs.js +18 -47
- package/dist/pipeline/src/config/configruedEnvs.js.map +1 -1
- package/dist/pipeline/src/config/readConfig.d.ts +2 -2
- package/dist/pipeline/src/config/readConfig.js +14 -26
- package/dist/pipeline/src/config/readConfig.js.map +1 -1
- package/dist/pipeline/src/context/createAllComponentsContext.d.ts +8 -0
- package/dist/pipeline/src/context/createAllComponentsContext.js +21 -0
- package/dist/pipeline/src/context/createAllComponentsContext.js.map +1 -0
- package/dist/pipeline/src/context/createComponentContext.d.ts +11 -0
- package/dist/pipeline/src/context/createComponentContext.js +101 -0
- package/dist/pipeline/src/context/createComponentContext.js.map +1 -0
- package/dist/pipeline/src/context/createWorkspaceContext.d.ts +9 -0
- package/dist/pipeline/src/context/createWorkspaceContext.js +36 -0
- package/dist/pipeline/src/context/createWorkspaceContext.js.map +1 -0
- package/dist/pipeline/src/context/getBuildInfoVariables.d.ts +3 -4
- package/dist/pipeline/src/context/getBuildInfoVariables.js +23 -21
- package/dist/pipeline/src/context/getBuildInfoVariables.js.map +1 -1
- package/dist/pipeline/src/context/getEnvConfig.js +4 -4
- package/dist/pipeline/src/context/getEnvConfig.js.map +1 -1
- package/dist/pipeline/src/context/getEnvType.js +2 -2
- package/dist/pipeline/src/context/getEnvType.js.map +1 -1
- package/dist/pipeline/src/context/getEnvironment.js +17 -64
- package/dist/pipeline/src/context/getEnvironment.js.map +1 -1
- package/dist/pipeline/src/context/getEnvironmentContext.d.ts +1 -1
- package/dist/pipeline/src/context/getEnvironmentContext.js +21 -22
- package/dist/pipeline/src/context/getEnvironmentContext.js.map +1 -1
- package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +2 -5
- package/dist/pipeline/src/context/getEnvironmentVariables.js +109 -165
- package/dist/pipeline/src/context/getEnvironmentVariables.js.map +1 -1
- package/dist/pipeline/src/context/getLabels.js +13 -16
- package/dist/pipeline/src/context/getLabels.js.map +1 -1
- package/dist/pipeline/src/context/getReviewSlug.js +7 -7
- package/dist/pipeline/src/context/getReviewSlug.js.map +1 -1
- package/dist/pipeline/src/context/index.d.ts +1 -16
- package/dist/pipeline/src/context/index.js +1 -87
- package/dist/pipeline/src/context/index.js.map +1 -1
- package/dist/pipeline/src/context/resolveReferences.js +51 -172
- package/dist/pipeline/src/context/resolveReferences.js.map +1 -1
- package/dist/pipeline/src/context/transformJobOnlyVars.js +22 -69
- package/dist/pipeline/src/context/transformJobOnlyVars.js.map +1 -1
- package/dist/pipeline/src/context/utils/envVars.js +13 -39
- package/dist/pipeline/src/context/utils/envVars.js.map +1 -1
- package/dist/pipeline/src/deploy/base/deploy.d.ts +2 -2
- package/dist/pipeline/src/deploy/base/deploy.js +74 -77
- package/dist/pipeline/src/deploy/base/deploy.js.map +1 -1
- package/dist/pipeline/src/deploy/base/index.d.ts +1 -3
- package/dist/pipeline/src/deploy/base/index.js +11 -34
- package/dist/pipeline/src/deploy/base/index.js.map +1 -1
- package/dist/pipeline/src/deploy/base/rollback.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/rollback.js +11 -15
- package/dist/pipeline/src/deploy/base/rollback.js.map +1 -1
- package/dist/pipeline/src/deploy/base/stop.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/stop.js +11 -15
- package/dist/pipeline/src/deploy/base/stop.js.map +1 -1
- package/dist/pipeline/src/deploy/base/variables.js +1 -1
- package/dist/pipeline/src/deploy/base/variables.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js +46 -70
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js +8 -33
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js +27 -33
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +121 -150
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +46 -62
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js +27 -54
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +36 -47
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +22 -39
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js +28 -36
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js +7 -34
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/index.d.ts +2 -2
- package/dist/pipeline/src/deploy/cloudRun/index.js +38 -75
- package/dist/pipeline/src/deploy/cloudRun/index.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js +14 -42
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js +14 -30
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js +5 -5
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js +1 -3
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js +1 -3
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudSql/utils.js +4 -4
- package/dist/pipeline/src/deploy/cloudSql/utils.js.map +1 -1
- package/dist/pipeline/src/deploy/custom/deployJob.js +23 -43
- package/dist/pipeline/src/deploy/custom/deployJob.js.map +1 -1
- package/dist/pipeline/src/deploy/custom/index.d.ts +2 -2
- package/dist/pipeline/src/deploy/custom/index.js +4 -4
- package/dist/pipeline/src/deploy/custom/index.js.map +1 -1
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js +17 -51
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js.map +1 -1
- package/dist/pipeline/src/deploy/dockerTag/index.d.ts +2 -2
- package/dist/pipeline/src/deploy/dockerTag/index.js +4 -4
- package/dist/pipeline/src/deploy/dockerTag/index.js.map +1 -1
- package/dist/pipeline/src/deploy/index.d.ts +7 -7
- package/dist/pipeline/src/deploy/index.js +4 -4
- package/dist/pipeline/src/deploy/index.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.d.ts +3 -1
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js +6 -7
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js +21 -19
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js +65 -76
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/index.d.ts +2 -2
- package/dist/pipeline/src/deploy/kubernetes/index.js +21 -47
- package/dist/pipeline/src/deploy/kubernetes/index.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js +15 -37
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +27 -64
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js +45 -55
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/processSecretsAsFiles.js +15 -17
- package/dist/pipeline/src/deploy/kubernetes/processSecretsAsFiles.js.map +1 -1
- package/dist/pipeline/src/deploy/sbom.d.ts +1 -1
- package/dist/pipeline/src/deploy/sbom.js +11 -11
- package/dist/pipeline/src/deploy/sbom.js.map +1 -1
- package/dist/pipeline/src/deploy/types/custom.d.ts +2 -6
- package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +26 -0
- package/dist/pipeline/src/deploy/types/index.d.ts +3 -3
- package/dist/pipeline/src/deploy/types/index.js +2 -6
- package/dist/pipeline/src/deploy/types/index.js.map +1 -1
- package/dist/pipeline/src/deploy/utils.js +8 -7
- package/dist/pipeline/src/deploy/utils.js.map +1 -1
- package/dist/pipeline/src/packageInfos.d.ts +3 -1
- package/dist/pipeline/src/packageInfos.js +10 -5
- package/dist/pipeline/src/packageInfos.js.map +1 -1
- package/dist/pipeline/src/pipeline/createAllJobs.d.ts +12 -10
- package/dist/pipeline/src/pipeline/createAllJobs.js +39 -81
- package/dist/pipeline/src/pipeline/createAllJobs.js.map +1 -1
- package/dist/pipeline/src/pipeline/createChildPipeline.js +24 -70
- package/dist/pipeline/src/pipeline/createChildPipeline.js.map +1 -1
- package/dist/pipeline/src/pipeline/createJobsForComponent.d.ts +3 -3
- package/dist/pipeline/src/pipeline/createJobsForComponent.js +21 -120
- package/dist/pipeline/src/pipeline/createJobsForComponent.js.map +1 -1
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.d.ts +3 -0
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.js +10 -0
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.js.map +1 -0
- package/dist/pipeline/src/pipeline/createMainPipeline.js +57 -130
- package/dist/pipeline/src/pipeline/createMainPipeline.js.map +1 -1
- package/dist/pipeline/src/pipeline/generatePipelineFiles.d.ts +38 -0
- package/dist/pipeline/src/pipeline/generatePipelineFiles.js +47 -92
- package/dist/pipeline/src/pipeline/generatePipelineFiles.js.map +1 -1
- package/dist/pipeline/src/pipeline/getPipelineStages.d.ts +3 -4
- package/dist/pipeline/src/pipeline/getPipelineStages.js +11 -35
- package/dist/pipeline/src/pipeline/getPipelineStages.js.map +1 -1
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.d.ts +4 -4
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js +226 -189
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js.map +1 -1
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js +14 -26
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js.map +1 -1
- package/dist/pipeline/src/pipeline/gitlab/getPipelineTriggerForGitlabChildPipeline.js +11 -11
- package/dist/pipeline/src/pipeline/gitlab/getPipelineTriggerForGitlabChildPipeline.js.map +1 -1
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.d.ts +2 -0
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js +10 -8
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js.map +1 -1
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.d.ts +7 -0
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.js +50 -0
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.js.map +1 -0
- package/dist/pipeline/src/pipeline/packageManager.d.ts +3 -2
- package/dist/pipeline/src/pipeline/packageManager.js +62 -115
- package/dist/pipeline/src/pipeline/packageManager.js.map +1 -1
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.d.ts +2 -2
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.js +30 -119
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.js.map +1 -1
- package/dist/pipeline/src/runner/index.js +2 -4
- package/dist/pipeline/src/runner/index.js.map +1 -1
- package/dist/pipeline/src/types/config.d.ts +10 -5
- package/dist/pipeline/src/types/config.js +4 -28
- package/dist/pipeline/src/types/config.js.map +1 -1
- package/dist/pipeline/src/types/context.d.ts +91 -19
- package/dist/pipeline/src/types/context.js +9 -0
- package/dist/pipeline/src/types/context.js.map +1 -1
- package/dist/pipeline/src/types/environmentContext.d.ts +5 -6
- package/dist/pipeline/src/types/gitlab-types.d.ts +2 -2
- package/dist/pipeline/src/types/index.d.ts +1 -0
- package/dist/pipeline/src/types/index.js +1 -0
- package/dist/pipeline/src/types/index.js.map +1 -1
- package/dist/pipeline/src/types/jobDefinition.d.ts +11 -0
- package/dist/pipeline/src/types/jobDefinition.js +3 -0
- package/dist/pipeline/src/types/jobDefinition.js.map +1 -0
- package/dist/pipeline/src/types/jobs.d.ts +8 -2
- package/dist/pipeline/src/types/jobs.js.map +1 -1
- package/dist/pipeline/src/utils/gitlab.js +19 -42
- package/dist/pipeline/src/utils/gitlab.js.map +1 -1
- package/dist/pipeline/src/utils/index.d.ts +2 -1
- package/dist/pipeline/src/utils/index.js +9 -35
- package/dist/pipeline/src/utils/index.js.map +1 -1
- package/dist/pipeline/src/utils/jsonParse.d.ts +1 -0
- package/dist/pipeline/src/utils/jsonParse.js +13 -0
- package/dist/pipeline/src/utils/jsonParse.js.map +1 -0
- package/dist/pipeline/src/utils/removeUndefined.d.ts +1 -0
- package/dist/pipeline/src/utils/removeUndefined.js +6 -0
- package/dist/pipeline/src/utils/removeUndefined.js.map +1 -0
- package/dist/pipeline/src/utils/writeFiles.d.ts +4 -0
- package/dist/pipeline/src/utils/writeFiles.js +26 -69
- package/dist/pipeline/src/utils/writeFiles.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -7
- package/scripts/bundle +3 -3
- package/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.ts +4 -4
- package/src/apps/cli/commands/project/commandCloudSqlProxy.ts +8 -19
- package/src/apps/cli/commands/project/commandOpenDashboard.ts +2 -2
- package/src/apps/cli/commands/project/commandPortForward.ts +4 -4
- package/src/apps/cli/commands/project/commandRenewToken.ts +12 -0
- package/src/apps/cli/commands/project/index.ts +2 -0
- package/src/apps/cli/commands/project/setup/setupAccessTokens.ts +48 -35
- package/src/apps/cli/commands/project/setup/setupCloudRun.ts +4 -4
- package/src/apps/cli/commands/project/setup/setupContext.ts +4 -16
- package/src/apps/cli/commands/project/setup/setupKubernetes.ts +4 -4
- package/src/apps/cli/commands/project/utils/ensureCluster.ts +2 -4
- package/src/apps/cli/commands/project/utils/ensureNamespace.ts +3 -16
- package/src/catenv.ts +12 -2
- package/src/config/getProjectConfig.ts +21 -19
- package/src/gcloud/cloudRun/openCloudRunDashboards.ts +2 -2
- package/src/gcloud/serviceAccounts.ts +28 -10
- package/src/kubernetes/openKubernetesDashboards.ts +2 -2
- package/src/utils/projects/index.ts +7 -2
- package/tsconfig.json +2 -2
- package/.nvmrc +0 -1
|
@@ -6,104 +6,32 @@
|
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
8
|
|
|
9
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
11
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
12
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
13
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
14
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
15
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
19
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
20
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
21
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
22
|
-
function step(op) {
|
|
23
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
24
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
25
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
26
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
27
|
-
switch (op[0]) {
|
|
28
|
-
case 0: case 1: t = op; break;
|
|
29
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
30
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
31
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
32
|
-
default:
|
|
33
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
34
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
35
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
36
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
37
|
-
if (t[2]) _.ops.pop();
|
|
38
|
-
_.trys.pop(); continue;
|
|
39
|
-
}
|
|
40
|
-
op = body.call(thisArg, _);
|
|
41
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
42
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
46
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
47
|
-
if (!m) return o;
|
|
48
|
-
var i = m.call(o), r, ar = [], e;
|
|
49
|
-
try {
|
|
50
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
51
|
-
}
|
|
52
|
-
catch (error) { e = { error: error }; }
|
|
53
|
-
finally {
|
|
54
|
-
try {
|
|
55
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
56
|
-
}
|
|
57
|
-
finally { if (e) throw e.error; }
|
|
58
|
-
}
|
|
59
|
-
return ar;
|
|
60
|
-
};
|
|
61
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
62
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
63
|
-
if (ar || !(i in from)) {
|
|
64
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
65
|
-
ar[i] = from[i];
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
69
|
-
};
|
|
70
9
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
71
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
72
11
|
};
|
|
73
12
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
74
13
|
exports.runCatCi = void 0;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
14
|
+
const vorpal_1 = __importDefault(__nccwpck_require__(1491));
|
|
15
|
+
const packageInfos_1 = __importDefault(__nccwpck_require__(2260));
|
|
16
|
+
const commands_1 = __importDefault(__nccwpck_require__(4288));
|
|
78
17
|
function reconstructArgs(args) {
|
|
79
|
-
return
|
|
18
|
+
return [args[0], ...args.slice(1).map((arg) => `"${arg}"`)].join(" ");
|
|
80
19
|
}
|
|
81
|
-
function runCatCi() {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
process.exitCode = 1;
|
|
97
|
-
args = reconstructArgs(process.argv.slice(2));
|
|
98
|
-
return [4 /*yield*/, vorpal.exec(args)];
|
|
99
|
-
case 2:
|
|
100
|
-
_a.sent();
|
|
101
|
-
process.exit();
|
|
102
|
-
_a.label = 3;
|
|
103
|
-
case 3: return [2 /*return*/];
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
});
|
|
20
|
+
async function runCatCi() {
|
|
21
|
+
const vorpal = new vorpal_1.default();
|
|
22
|
+
process.exitCode = 0;
|
|
23
|
+
vorpal.delimiter("catci $").history("catci").version(packageInfos_1.default.version);
|
|
24
|
+
(0, commands_1.default)(vorpal);
|
|
25
|
+
const isInteractive = process.argv.length <= 2;
|
|
26
|
+
if (isInteractive) {
|
|
27
|
+
vorpal.log(`Catladder CI Tools 😻🔨 version ${packageInfos_1.default.version}`).show();
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
process.exitCode = 1;
|
|
31
|
+
const args = reconstructArgs(process.argv.slice(2));
|
|
32
|
+
await vorpal.exec(args);
|
|
33
|
+
process.exit();
|
|
34
|
+
}
|
|
107
35
|
}
|
|
108
36
|
exports.runCatCi = runCatCi;
|
|
109
37
|
//# sourceMappingURL=catci.js.map
|
|
@@ -115,115 +43,109 @@ exports.runCatCi = runCatCi;
|
|
|
115
43
|
|
|
116
44
|
"use strict";
|
|
117
45
|
|
|
118
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
119
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
120
|
-
if (!m) return o;
|
|
121
|
-
var i = m.call(o), r, ar = [], e;
|
|
122
|
-
try {
|
|
123
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
124
|
-
}
|
|
125
|
-
catch (error) { e = { error: error }; }
|
|
126
|
-
finally {
|
|
127
|
-
try {
|
|
128
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
129
|
-
}
|
|
130
|
-
finally { if (e) throw e.error; }
|
|
131
|
-
}
|
|
132
|
-
return ar;
|
|
133
|
-
};
|
|
134
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
135
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
136
|
-
if (ar || !(i in from)) {
|
|
137
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
138
|
-
ar[i] = from[i];
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
142
|
-
};
|
|
143
46
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
144
47
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
145
48
|
};
|
|
146
49
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
147
50
|
exports.evaluateDocument = exports.makeTemplate = void 0;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
51
|
+
const topics_json_1 = __importDefault(__nccwpck_require__(1888));
|
|
52
|
+
const allTopics = topics_json_1.default;
|
|
53
|
+
const checkYes = "✅";
|
|
54
|
+
const checkNo = "❌";
|
|
55
|
+
const checkPlaceholder = `${checkYes}/${checkNo}`;
|
|
56
|
+
const responsiblePlaceholder = "@...";
|
|
57
|
+
const rows = [
|
|
155
58
|
["Responsible", checkPlaceholder, "Description", "Note", "More Information"],
|
|
156
|
-
].concat(allTopics.map(
|
|
59
|
+
].concat(allTopics.map((t) => [
|
|
157
60
|
Array(t.responsibles).fill(responsiblePlaceholder).join(", "),
|
|
158
61
|
checkPlaceholder,
|
|
159
62
|
t.description,
|
|
160
63
|
"",
|
|
161
64
|
t.more,
|
|
162
|
-
]
|
|
65
|
+
]));
|
|
163
66
|
function makeTable(rows) {
|
|
164
|
-
|
|
165
|
-
return
|
|
67
|
+
const colWidths = calculateColumnWidths(rows);
|
|
68
|
+
return `
|
|
69
|
+
${makeRow(rows[0], colWidths, " ")}
|
|
70
|
+
${makeRow(rows[0].map(() => ""), colWidths, "-")}
|
|
71
|
+
${rows
|
|
166
72
|
.slice(1)
|
|
167
|
-
.map(
|
|
168
|
-
.join("\n")
|
|
73
|
+
.map((row) => makeRow(row, colWidths, " "))
|
|
74
|
+
.join("\n")}
|
|
75
|
+
`;
|
|
169
76
|
}
|
|
170
77
|
function calculateColumnWidths(rows) {
|
|
171
|
-
|
|
172
|
-
return Array.from({ length: columnCount },
|
|
173
|
-
return Math.max.apply(Math, __spreadArray([], __read(rows.map(function (row) { return row[columnIndex].length; })), false));
|
|
174
|
-
});
|
|
78
|
+
const columnCount = rows[0].length;
|
|
79
|
+
return Array.from({ length: columnCount }, (_, i) => i).map((columnIndex) => Math.max(...rows.map((row) => row[columnIndex].length)));
|
|
175
80
|
}
|
|
176
81
|
function makeRow(row, colWidths, fillString) {
|
|
177
|
-
return
|
|
178
|
-
.map(
|
|
179
|
-
.join(" | ")
|
|
82
|
+
return `| ${row
|
|
83
|
+
.map((cell, i) => cell.padEnd(colWidths[i], fillString))
|
|
84
|
+
.join(" | ")} |`;
|
|
180
85
|
}
|
|
181
86
|
function makeTemplate() {
|
|
182
|
-
return
|
|
87
|
+
return `
|
|
88
|
+
# Security Audit Report
|
|
89
|
+
|
|
90
|
+
A security audit report document is a comprehensive assessment of an application's security posture, containing security topics that auditors can mark to indicate the state of various security aspects.
|
|
91
|
+
|
|
92
|
+
It serves as a structured guide for security team to evaluate different security factors such as authentication, authorization, data encryption, input validation, and more.
|
|
93
|
+
|
|
94
|
+
## General Information
|
|
95
|
+
|
|
96
|
+
- Project Owner is @...
|
|
97
|
+
- Dev team:
|
|
98
|
+
- @...
|
|
99
|
+
- @...
|
|
100
|
+
- @...
|
|
101
|
+
|
|
102
|
+
## Project Security
|
|
103
|
+
|
|
104
|
+
${makeTable(rows)}
|
|
105
|
+
|
|
106
|
+
`;
|
|
183
107
|
}
|
|
184
108
|
exports.makeTemplate = makeTemplate;
|
|
185
109
|
function evaluateDocument(document) {
|
|
186
110
|
var _a, _b;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
.map(
|
|
111
|
+
const rawRows = (_b = (_a = document.match(/^\s*\|.*?\|\s*$/gm)) === null || _a === void 0 ? void 0 : _a.map((row) => row.trim())) !== null && _b !== void 0 ? _b : [];
|
|
112
|
+
const matchedRows = rawRows
|
|
113
|
+
.map((row) => row.split("|").map((col) => col.trim()))
|
|
190
114
|
.slice(2);
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
115
|
+
const knownTopics = new Set(allTopics.map((t) => t.description));
|
|
116
|
+
const topics = matchedRows.map((col) => {
|
|
117
|
+
const responsibles = col[1].split(", ");
|
|
118
|
+
const answer = col[2];
|
|
119
|
+
const description = col[3];
|
|
120
|
+
const note = col[4];
|
|
121
|
+
const isUnknown = !knownTopics.has(description);
|
|
122
|
+
const isAnswered = !isUnknown &&
|
|
199
123
|
!answer.includes(checkPlaceholder) &&
|
|
200
|
-
!responsibles.some(
|
|
201
|
-
|
|
202
|
-
});
|
|
203
|
-
var isSecured = !isUnknown && isAnswered && answer.includes(checkYes);
|
|
124
|
+
!responsibles.some((responsible) => responsible.includes(responsiblePlaceholder));
|
|
125
|
+
const isSecured = !isUnknown && isAnswered && answer.includes(checkYes);
|
|
204
126
|
return {
|
|
205
|
-
responsibles
|
|
206
|
-
answer
|
|
207
|
-
description
|
|
208
|
-
note
|
|
209
|
-
isUnknown
|
|
210
|
-
isAnswered
|
|
211
|
-
isSecured
|
|
127
|
+
responsibles,
|
|
128
|
+
answer,
|
|
129
|
+
description,
|
|
130
|
+
note,
|
|
131
|
+
isUnknown,
|
|
132
|
+
isAnswered,
|
|
133
|
+
isSecured,
|
|
212
134
|
};
|
|
213
135
|
});
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
136
|
+
const totalTopics = allTopics.length;
|
|
137
|
+
const answeredTopics = topics.filter((t) => t.isAnswered).length;
|
|
138
|
+
const securedTopics = topics.filter((t) => t.isSecured).length;
|
|
139
|
+
const unknownTopics = topics.filter((t) => t.isUnknown).length;
|
|
140
|
+
const rating = Math.round((securedTopics / totalTopics) * 100);
|
|
219
141
|
return {
|
|
220
|
-
topics
|
|
142
|
+
topics,
|
|
221
143
|
score: {
|
|
222
|
-
rating
|
|
223
|
-
totalTopics
|
|
224
|
-
answeredTopics
|
|
225
|
-
securedTopics
|
|
226
|
-
unknownTopics
|
|
144
|
+
rating,
|
|
145
|
+
totalTopics,
|
|
146
|
+
answeredTopics,
|
|
147
|
+
securedTopics,
|
|
148
|
+
unknownTopics,
|
|
227
149
|
},
|
|
228
150
|
};
|
|
229
151
|
}
|
|
@@ -233,52 +155,16 @@ exports.evaluateDocument = evaluateDocument;
|
|
|
233
155
|
/***/ }),
|
|
234
156
|
|
|
235
157
|
/***/ 4288:
|
|
236
|
-
/***/ (
|
|
158
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
237
159
|
|
|
238
160
|
"use strict";
|
|
239
161
|
|
|
240
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
241
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
242
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
243
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
244
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
245
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
246
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
247
|
-
});
|
|
248
|
-
};
|
|
249
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
250
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
251
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
252
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
253
|
-
function step(op) {
|
|
254
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
255
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
256
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
257
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
258
|
-
switch (op[0]) {
|
|
259
|
-
case 0: case 1: t = op; break;
|
|
260
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
261
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
262
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
263
|
-
default:
|
|
264
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
265
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
266
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
267
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
268
|
-
if (t[2]) _.ops.pop();
|
|
269
|
-
_.trys.pop(); continue;
|
|
270
|
-
}
|
|
271
|
-
op = body.call(thisArg, _);
|
|
272
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
273
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
162
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
163
|
+
const evaluateSecurityAudit_1 = __nccwpck_require__(6725);
|
|
164
|
+
const rest_1 = __nccwpck_require__(1084);
|
|
165
|
+
const createSecurityAuditMergeRequest_1 = __nccwpck_require__(8933);
|
|
166
|
+
const ts_results_es_1 = __nccwpck_require__(2807);
|
|
167
|
+
const GITLAB_HOST = "https://git.panter.ch";
|
|
282
168
|
function default_1(vorpal) {
|
|
283
169
|
commandCiJob(vorpal);
|
|
284
170
|
commandEvaluate(vorpal);
|
|
@@ -286,257 +172,158 @@ function default_1(vorpal) {
|
|
|
286
172
|
}
|
|
287
173
|
exports["default"] = default_1;
|
|
288
174
|
function resultAsExitCode(func) {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
175
|
+
return async (args) => {
|
|
176
|
+
const result = await func(args);
|
|
177
|
+
process.exitCode = result.isErr() ? 1 : 0;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
async function commandCiJob(vorpal) {
|
|
181
|
+
vorpal
|
|
182
|
+
.command("security-audit-ci-job <path> <token> <mainBranch> <projectId> <userId>", `Evaluates security audit document. If the document can't be evaluated or does not exist, creates a new MR with security audit document template.
|
|
183
|
+
|
|
184
|
+
<path> root path of a project with security audit document (${createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME})
|
|
185
|
+
<token> gitlab token with 'api' scopes and permissions to create a new branch
|
|
186
|
+
<main-branch> main branch name
|
|
187
|
+
<project-id> project id to create security audit for
|
|
188
|
+
<user-id> gitlab user id that will be assignee of the audit
|
|
189
|
+
`)
|
|
190
|
+
.action(resultAsExitCode(async (args) => {
|
|
191
|
+
const evaluation = await (0, evaluateSecurityAudit_1.evaluateSecurityAudit)({ path: args.path });
|
|
192
|
+
if (evaluation.isErr()) {
|
|
193
|
+
console.log("could not evaluate security audit document");
|
|
194
|
+
console.log("creating new merge request with security audit template...");
|
|
195
|
+
const { token, mainBranch, projectId, userId } = args;
|
|
196
|
+
const api = new rest_1.Gitlab({
|
|
197
|
+
host: GITLAB_HOST,
|
|
198
|
+
token,
|
|
199
|
+
});
|
|
200
|
+
const mr = await (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
201
|
+
api,
|
|
202
|
+
mainBranch,
|
|
203
|
+
projectId,
|
|
204
|
+
userId: parseInt(userId),
|
|
205
|
+
});
|
|
206
|
+
if (mr.isErr()) {
|
|
207
|
+
console.error(`could not create merge request with security audit template: ${mr.error}`);
|
|
208
|
+
return mr;
|
|
299
209
|
}
|
|
300
|
-
|
|
301
|
-
|
|
210
|
+
console.log("security audit merge request created successfully");
|
|
211
|
+
console.log(`please finish the MR by updating SECURITY.md document: ${mr.value.web_url}`);
|
|
212
|
+
return (0, ts_results_es_1.Err)("merge request created");
|
|
213
|
+
}
|
|
214
|
+
if (evaluation.value.score.answeredTopics === 0) {
|
|
215
|
+
console.error("audit document has no answered topics");
|
|
216
|
+
console.error(`please answer security topics in ${createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME} by adding responsible people and check/cross in the table`);
|
|
217
|
+
return (0, ts_results_es_1.Err)("audit document has no answered topics");
|
|
218
|
+
}
|
|
219
|
+
console.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(evaluation.value));
|
|
220
|
+
return (0, ts_results_es_1.Ok)({});
|
|
221
|
+
}));
|
|
302
222
|
}
|
|
303
|
-
function
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
console.log("creating new merge request with security audit template...");
|
|
319
|
-
token = args.token, mainBranch = args.mainBranch, projectId = args.projectId, userId = args.userId;
|
|
320
|
-
api = new rest_1.Gitlab({
|
|
321
|
-
host: GITLAB_HOST,
|
|
322
|
-
token: token,
|
|
323
|
-
});
|
|
324
|
-
return [4 /*yield*/, (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
325
|
-
api: api,
|
|
326
|
-
mainBranch: mainBranch,
|
|
327
|
-
projectId: projectId,
|
|
328
|
-
userId: parseInt(userId),
|
|
329
|
-
})];
|
|
330
|
-
case 2:
|
|
331
|
-
mr = _a.sent();
|
|
332
|
-
if (mr.isErr()) {
|
|
333
|
-
console.error("could not create merge request with security audit template: ".concat(mr.error));
|
|
334
|
-
return [2 /*return*/, mr];
|
|
335
|
-
}
|
|
336
|
-
console.log("security audit merge request created successfully");
|
|
337
|
-
console.log("please finish the MR by updating SECURITY.md document: ".concat(mr.value.web_url));
|
|
338
|
-
return [2 /*return*/, (0, ts_results_es_1.Err)("merge request created")];
|
|
339
|
-
case 3:
|
|
340
|
-
if (evaluation.value.score.answeredTopics === 0) {
|
|
341
|
-
console.error("audit document has no answered topics");
|
|
342
|
-
console.error("please answer security topics in ".concat(createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME, " by adding responsible people and check/cross in the table"));
|
|
343
|
-
return [2 /*return*/, (0, ts_results_es_1.Err)("audit document has no answered topics")];
|
|
344
|
-
}
|
|
345
|
-
console.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(evaluation.value));
|
|
346
|
-
return [2 /*return*/, (0, ts_results_es_1.Ok)({})];
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
}); }));
|
|
350
|
-
return [2 /*return*/];
|
|
351
|
-
});
|
|
352
|
-
});
|
|
223
|
+
async function commandEvaluate(vorpal) {
|
|
224
|
+
vorpal
|
|
225
|
+
.command("security-audit-evaluate <path>", "Evaluates security audit document in given <path>")
|
|
226
|
+
.action(resultAsExitCode(async (args) => {
|
|
227
|
+
console.log("evaluating security audit document...");
|
|
228
|
+
const result = await (0, evaluateSecurityAudit_1.evaluateSecurityAudit)({ path: args.path });
|
|
229
|
+
if (result.isErr()) {
|
|
230
|
+
console.error(result.error);
|
|
231
|
+
console.error(`please make sure the security audit document ${createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME} is in the repository`);
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
console.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(result.value));
|
|
235
|
+
}
|
|
236
|
+
return result;
|
|
237
|
+
}));
|
|
353
238
|
}
|
|
354
|
-
function
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
result = _a.sent();
|
|
369
|
-
if (result.isErr()) {
|
|
370
|
-
console.error(result.error);
|
|
371
|
-
console.error("please make sure the security audit document ".concat(createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME, " is in the repository"));
|
|
372
|
-
}
|
|
373
|
-
else {
|
|
374
|
-
console.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(result.value));
|
|
375
|
-
}
|
|
376
|
-
return [2 /*return*/, result];
|
|
377
|
-
}
|
|
378
|
-
});
|
|
379
|
-
}); }));
|
|
380
|
-
return [2 /*return*/];
|
|
239
|
+
async function commandCreate(vorpal) {
|
|
240
|
+
vorpal
|
|
241
|
+
.command("security-audit-create <token> <mainBranch> <projectId> <userId>", `Creates a MR in given project with the latest security audit template document
|
|
242
|
+
|
|
243
|
+
<token> gitlab token with 'api' scopes and permissions to create a new branch
|
|
244
|
+
<main-branch> main branch name
|
|
245
|
+
<project-id> project id to create security audit for
|
|
246
|
+
<user-id> gitlab user id that will be assignee of the audit
|
|
247
|
+
`)
|
|
248
|
+
.action(resultAsExitCode(async (args) => {
|
|
249
|
+
const { token, mainBranch, projectId, userId } = args;
|
|
250
|
+
const api = new rest_1.Gitlab({
|
|
251
|
+
host: GITLAB_HOST,
|
|
252
|
+
token,
|
|
381
253
|
});
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
return __generator(this, function (_a) {
|
|
388
|
-
vorpal
|
|
389
|
-
.command("security-audit-create <token> <mainBranch> <projectId> <userId>", "Creates a MR in given project with the latest security audit template document\n\n<token> gitlab token with 'api' scopes and permissions to create a new branch\n<main-branch> main branch name\n<project-id> project id to create security audit for\n<user-id> gitlab user id that will be assignee of the audit\n")
|
|
390
|
-
.action(resultAsExitCode(function (args) { return __awaiter(_this, void 0, void 0, function () {
|
|
391
|
-
var token, mainBranch, projectId, userId, api, result;
|
|
392
|
-
return __generator(this, function (_a) {
|
|
393
|
-
switch (_a.label) {
|
|
394
|
-
case 0:
|
|
395
|
-
token = args.token, mainBranch = args.mainBranch, projectId = args.projectId, userId = args.userId;
|
|
396
|
-
api = new rest_1.Gitlab({
|
|
397
|
-
host: GITLAB_HOST,
|
|
398
|
-
token: token,
|
|
399
|
-
});
|
|
400
|
-
return [4 /*yield*/, (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
401
|
-
api: api,
|
|
402
|
-
mainBranch: mainBranch,
|
|
403
|
-
projectId: projectId,
|
|
404
|
-
userId: parseInt(userId),
|
|
405
|
-
})];
|
|
406
|
-
case 1:
|
|
407
|
-
result = _a.sent();
|
|
408
|
-
if (result.isErr()) {
|
|
409
|
-
console.error("could not create security audit merge request: ".concat(result.error));
|
|
410
|
-
}
|
|
411
|
-
else {
|
|
412
|
-
console.log("security audit merge request created successfully");
|
|
413
|
-
console.log("please finish the MR by updating SECURITY.md document: ".concat(result.value.web_url));
|
|
414
|
-
}
|
|
415
|
-
return [2 /*return*/, result];
|
|
416
|
-
}
|
|
417
|
-
});
|
|
418
|
-
}); }));
|
|
419
|
-
return [2 /*return*/];
|
|
254
|
+
const result = await (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
255
|
+
api,
|
|
256
|
+
mainBranch,
|
|
257
|
+
projectId,
|
|
258
|
+
userId: parseInt(userId),
|
|
420
259
|
});
|
|
421
|
-
|
|
260
|
+
if (result.isErr()) {
|
|
261
|
+
console.error(`could not create security audit merge request: ${result.error}`);
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
console.log("security audit merge request created successfully");
|
|
265
|
+
console.log(`please finish the MR by updating SECURITY.md document: ${result.value.web_url}`);
|
|
266
|
+
}
|
|
267
|
+
return result;
|
|
268
|
+
}));
|
|
422
269
|
}
|
|
423
270
|
//# sourceMappingURL=commands.js.map
|
|
424
271
|
|
|
425
272
|
/***/ }),
|
|
426
273
|
|
|
427
274
|
/***/ 8933:
|
|
428
|
-
/***/ (
|
|
275
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
429
276
|
|
|
430
277
|
"use strict";
|
|
431
278
|
|
|
432
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
433
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
434
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
435
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
436
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
437
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
438
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
439
|
-
});
|
|
440
|
-
};
|
|
441
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
442
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
443
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
444
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
445
|
-
function step(op) {
|
|
446
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
447
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
448
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
449
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
450
|
-
switch (op[0]) {
|
|
451
|
-
case 0: case 1: t = op; break;
|
|
452
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
453
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
454
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
455
|
-
default:
|
|
456
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
457
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
458
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
459
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
460
|
-
if (t[2]) _.ops.pop();
|
|
461
|
-
_.trys.pop(); continue;
|
|
462
|
-
}
|
|
463
|
-
op = body.call(thisArg, _);
|
|
464
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
465
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
279
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
469
280
|
exports.createSecurityAuditMergeRequest = exports.SECURITY_AUDIT_FILE_NAME = void 0;
|
|
470
|
-
|
|
471
|
-
|
|
281
|
+
const ts_results_es_1 = __nccwpck_require__(2807);
|
|
282
|
+
const auditDocument_1 = __nccwpck_require__(2488);
|
|
472
283
|
function makeDatedBranchName(branchName) {
|
|
473
|
-
|
|
474
|
-
return
|
|
284
|
+
const date = new Date().toISOString().slice(0, -5).replaceAll(/[:.T]/g, "-");
|
|
285
|
+
return `${branchName}-${date}`;
|
|
475
286
|
}
|
|
476
|
-
|
|
287
|
+
const MR_TITLE = "Draft: chore(security): add security audit document";
|
|
477
288
|
exports.SECURITY_AUDIT_FILE_NAME = "SECURITY.md";
|
|
478
|
-
function createSecurityAuditMergeRequest(
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
existingMr = mrs.value[0];
|
|
496
|
-
if (existingMr)
|
|
497
|
-
return [2 /*return*/, (0, ts_results_es_1.Err)("open merge request with security audit already exists: ".concat(existingMr.web_url))];
|
|
498
|
-
auditTemplate = ts_results_es_1.Result.wrap(function () { return (0, auditDocument_1.makeTemplate)(); }).mapErr(function () { return "could not make security audit template document"; });
|
|
499
|
-
if (auditTemplate.isErr())
|
|
500
|
-
return [2 /*return*/, auditTemplate];
|
|
501
|
-
return [4 /*yield*/, ts_results_es_1.Result.wrapAsync(function () {
|
|
502
|
-
return api.Branches.create(projectId, makeDatedBranchName("chore/security-audit"), mainBranch);
|
|
503
|
-
})];
|
|
504
|
-
case 2:
|
|
505
|
-
branch = (_c.sent()).mapErr(function (e) {
|
|
506
|
-
console.log(e);
|
|
507
|
-
return "could not create branch";
|
|
508
|
-
});
|
|
509
|
-
if (branch.isErr())
|
|
510
|
-
return [2 /*return*/, branch];
|
|
511
|
-
return [4 /*yield*/, ts_results_es_1.Result.wrapAsync(function () {
|
|
512
|
-
return api.Commits.create(projectId, branch.value.name, "chore(security): add empty security audit document template", [
|
|
513
|
-
{
|
|
514
|
-
action: "create",
|
|
515
|
-
filePath: exports.SECURITY_AUDIT_FILE_NAME,
|
|
516
|
-
content: auditTemplate.value,
|
|
517
|
-
encoding: "text",
|
|
518
|
-
},
|
|
519
|
-
]);
|
|
520
|
-
})];
|
|
521
|
-
case 3:
|
|
522
|
-
commit = (_c.sent()).mapErr(function () { return "could not create commit"; });
|
|
523
|
-
if (commit.isErr())
|
|
524
|
-
return [2 /*return*/, commit];
|
|
525
|
-
return [4 /*yield*/, ts_results_es_1.Result.wrapAsync(function () {
|
|
526
|
-
return api.MergeRequests.create(projectId, branch.value.name, mainBranch, MR_TITLE, {
|
|
527
|
-
description: "Please follow and update security audit document in `".concat(exports.SECURITY_AUDIT_FILE_NAME, "`."),
|
|
528
|
-
assigneeId: userId,
|
|
529
|
-
squash: true,
|
|
530
|
-
labels: "security-audit",
|
|
531
|
-
removeSourceBranch: true,
|
|
532
|
-
});
|
|
533
|
-
})];
|
|
534
|
-
case 4:
|
|
535
|
-
mr = (_c.sent()).mapErr(function () { return "could not create merge request"; });
|
|
536
|
-
return [2 /*return*/, mr];
|
|
537
|
-
}
|
|
538
|
-
});
|
|
289
|
+
async function createSecurityAuditMergeRequest({ projectId, mainBranch, userId, api, }) {
|
|
290
|
+
const mrs = (await ts_results_es_1.Result.wrapAsync(() => api.MergeRequests.all({
|
|
291
|
+
state: "opened",
|
|
292
|
+
wip: "yes",
|
|
293
|
+
labels: "security-audit",
|
|
294
|
+
}))).mapErr(() => `could not search for existing merge requests`);
|
|
295
|
+
if (mrs.isErr())
|
|
296
|
+
return mrs;
|
|
297
|
+
const existingMr = mrs.value[0];
|
|
298
|
+
if (existingMr)
|
|
299
|
+
return (0, ts_results_es_1.Err)(`open merge request with security audit already exists: ${existingMr.web_url}`);
|
|
300
|
+
const auditTemplate = ts_results_es_1.Result.wrap(() => (0, auditDocument_1.makeTemplate)()).mapErr(() => "could not make security audit template document");
|
|
301
|
+
if (auditTemplate.isErr())
|
|
302
|
+
return auditTemplate;
|
|
303
|
+
const branch = (await ts_results_es_1.Result.wrapAsync(() => api.Branches.create(projectId, makeDatedBranchName("chore/security-audit"), mainBranch))).mapErr((e) => {
|
|
304
|
+
console.log(e);
|
|
305
|
+
return "could not create branch";
|
|
539
306
|
});
|
|
307
|
+
if (branch.isErr())
|
|
308
|
+
return branch;
|
|
309
|
+
const commit = (await ts_results_es_1.Result.wrapAsync(() => api.Commits.create(projectId, branch.value.name, "chore(security): add empty security audit document template", [
|
|
310
|
+
{
|
|
311
|
+
action: "create",
|
|
312
|
+
filePath: exports.SECURITY_AUDIT_FILE_NAME,
|
|
313
|
+
content: auditTemplate.value,
|
|
314
|
+
encoding: "text",
|
|
315
|
+
},
|
|
316
|
+
]))).mapErr(() => "could not create commit");
|
|
317
|
+
if (commit.isErr())
|
|
318
|
+
return commit;
|
|
319
|
+
const mr = (await ts_results_es_1.Result.wrapAsync(() => api.MergeRequests.create(projectId, branch.value.name, mainBranch, MR_TITLE, {
|
|
320
|
+
description: `Please follow and update security audit document in \`${exports.SECURITY_AUDIT_FILE_NAME}\`.`,
|
|
321
|
+
assigneeId: userId,
|
|
322
|
+
squash: true,
|
|
323
|
+
labels: "security-audit",
|
|
324
|
+
removeSourceBranch: true,
|
|
325
|
+
}))).mapErr(() => "could not create merge request");
|
|
326
|
+
return mr;
|
|
540
327
|
}
|
|
541
328
|
exports.createSecurityAuditMergeRequest = createSecurityAuditMergeRequest;
|
|
542
329
|
//# sourceMappingURL=createSecurityAuditMergeRequest.js.map
|
|
@@ -544,82 +331,34 @@ exports.createSecurityAuditMergeRequest = createSecurityAuditMergeRequest;
|
|
|
544
331
|
/***/ }),
|
|
545
332
|
|
|
546
333
|
/***/ 6725:
|
|
547
|
-
/***/ (
|
|
334
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
548
335
|
|
|
549
336
|
"use strict";
|
|
550
337
|
|
|
551
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
552
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
553
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
554
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
555
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
556
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
557
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
558
|
-
});
|
|
559
|
-
};
|
|
560
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
561
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
562
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
563
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
564
|
-
function step(op) {
|
|
565
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
566
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
567
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
568
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
569
|
-
switch (op[0]) {
|
|
570
|
-
case 0: case 1: t = op; break;
|
|
571
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
572
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
573
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
574
|
-
default:
|
|
575
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
576
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
577
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
578
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
579
|
-
if (t[2]) _.ops.pop();
|
|
580
|
-
_.trys.pop(); continue;
|
|
581
|
-
}
|
|
582
|
-
op = body.call(thisArg, _);
|
|
583
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
584
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
338
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
588
339
|
exports.makeSecurityAuditOverview = exports.evaluateSecurityAudit = void 0;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
function evaluateSecurityAudit(
|
|
595
|
-
return
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
var filePath, docData, doc;
|
|
602
|
-
return __generator(this, function (_a) {
|
|
603
|
-
switch (_a.label) {
|
|
604
|
-
case 0:
|
|
605
|
-
filePath = (0, path_1.join)(path, createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME);
|
|
606
|
-
return [4 /*yield*/, (0, promises_1.readFile)(filePath)];
|
|
607
|
-
case 1:
|
|
608
|
-
docData = _a.sent();
|
|
609
|
-
doc = docData.toString("utf-8");
|
|
610
|
-
return [2 /*return*/, (0, auditDocument_1.evaluateDocument)(doc)];
|
|
611
|
-
}
|
|
612
|
-
});
|
|
613
|
-
}); })];
|
|
614
|
-
case 1: return [2 /*return*/, (_c.sent()).mapErr(function (e) { return "could not evaluate ".concat(createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME, ": ").concat(e); })];
|
|
615
|
-
}
|
|
616
|
-
});
|
|
617
|
-
});
|
|
340
|
+
const ts_results_es_1 = __nccwpck_require__(2807);
|
|
341
|
+
const path_1 = __nccwpck_require__(1017);
|
|
342
|
+
const promises_1 = __nccwpck_require__(3292);
|
|
343
|
+
const createSecurityAuditMergeRequest_1 = __nccwpck_require__(8933);
|
|
344
|
+
const auditDocument_1 = __nccwpck_require__(2488);
|
|
345
|
+
async function evaluateSecurityAudit({ path }) {
|
|
346
|
+
return (await ts_results_es_1.Result.wrapAsync(async () => {
|
|
347
|
+
const filePath = (0, path_1.join)(path, createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME);
|
|
348
|
+
const docData = await (0, promises_1.readFile)(filePath);
|
|
349
|
+
const doc = docData.toString("utf-8");
|
|
350
|
+
return (0, auditDocument_1.evaluateDocument)(doc);
|
|
351
|
+
})).mapErr((e) => `could not evaluate ${createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME}: ${e}`);
|
|
618
352
|
}
|
|
619
353
|
exports.evaluateSecurityAudit = evaluateSecurityAudit;
|
|
620
354
|
function makeSecurityAuditOverview(evaluation) {
|
|
621
|
-
|
|
622
|
-
return
|
|
355
|
+
const ratingToEmo = (r) => (r < 33 ? "🟥" : r < 66 ? "🟨" : "🟩");
|
|
356
|
+
return `Project security posture overview:
|
|
357
|
+
🧐 Total topics: ${evaluation.score.totalTopics}
|
|
358
|
+
🔒 Secured topics: ${evaluation.score.securedTopics}
|
|
359
|
+
📢 Answered topics: ${evaluation.score.answeredTopics}
|
|
360
|
+
❔ Unknown topics: ${evaluation.score.unknownTopics}
|
|
361
|
+
📊 Rating: ${ratingToEmo(evaluation.score.rating)} ${evaluation.score.rating}/100`;
|
|
623
362
|
}
|
|
624
363
|
exports.makeSecurityAuditOverview = makeSecurityAuditOverview;
|
|
625
364
|
//# sourceMappingURL=evaluateSecurityAudit.js.map
|
|
@@ -637,9 +376,9 @@ exports.makeSecurityAuditOverview = makeSecurityAuditOverview;
|
|
|
637
376
|
// this will point to the root package.json
|
|
638
377
|
var _a;
|
|
639
378
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
640
|
-
|
|
379
|
+
const path = ((_a = require.main) === null || _a === void 0 ? void 0 : _a.path) + "/../package.json";
|
|
641
380
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
642
|
-
|
|
381
|
+
const ownPkg = require(path);
|
|
643
382
|
exports["default"] = ownPkg;
|
|
644
383
|
//# sourceMappingURL=packageInfos.js.map
|
|
645
384
|
|
|
@@ -13028,7 +12767,7 @@ exports.flatten = (...args) => {
|
|
|
13028
12767
|
"use strict";
|
|
13029
12768
|
|
|
13030
12769
|
|
|
13031
|
-
var GetIntrinsic = __nccwpck_require__(
|
|
12770
|
+
var GetIntrinsic = __nccwpck_require__(62);
|
|
13032
12771
|
|
|
13033
12772
|
var callBind = __nccwpck_require__(3398);
|
|
13034
12773
|
|
|
@@ -13051,8 +12790,8 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
13051
12790
|
"use strict";
|
|
13052
12791
|
|
|
13053
12792
|
|
|
13054
|
-
var bind = __nccwpck_require__(
|
|
13055
|
-
var GetIntrinsic = __nccwpck_require__(
|
|
12793
|
+
var bind = __nccwpck_require__(5039);
|
|
12794
|
+
var GetIntrinsic = __nccwpck_require__(62);
|
|
13056
12795
|
|
|
13057
12796
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
13058
12797
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
@@ -13098,6 +12837,488 @@ if ($defineProperty) {
|
|
|
13098
12837
|
}
|
|
13099
12838
|
|
|
13100
12839
|
|
|
12840
|
+
/***/ }),
|
|
12841
|
+
|
|
12842
|
+
/***/ 1450:
|
|
12843
|
+
/***/ ((module) => {
|
|
12844
|
+
|
|
12845
|
+
"use strict";
|
|
12846
|
+
|
|
12847
|
+
|
|
12848
|
+
/* eslint no-invalid-this: 1 */
|
|
12849
|
+
|
|
12850
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
12851
|
+
var slice = Array.prototype.slice;
|
|
12852
|
+
var toStr = Object.prototype.toString;
|
|
12853
|
+
var funcType = '[object Function]';
|
|
12854
|
+
|
|
12855
|
+
module.exports = function bind(that) {
|
|
12856
|
+
var target = this;
|
|
12857
|
+
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
|
12858
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
12859
|
+
}
|
|
12860
|
+
var args = slice.call(arguments, 1);
|
|
12861
|
+
|
|
12862
|
+
var bound;
|
|
12863
|
+
var binder = function () {
|
|
12864
|
+
if (this instanceof bound) {
|
|
12865
|
+
var result = target.apply(
|
|
12866
|
+
this,
|
|
12867
|
+
args.concat(slice.call(arguments))
|
|
12868
|
+
);
|
|
12869
|
+
if (Object(result) === result) {
|
|
12870
|
+
return result;
|
|
12871
|
+
}
|
|
12872
|
+
return this;
|
|
12873
|
+
} else {
|
|
12874
|
+
return target.apply(
|
|
12875
|
+
that,
|
|
12876
|
+
args.concat(slice.call(arguments))
|
|
12877
|
+
);
|
|
12878
|
+
}
|
|
12879
|
+
};
|
|
12880
|
+
|
|
12881
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
12882
|
+
var boundArgs = [];
|
|
12883
|
+
for (var i = 0; i < boundLength; i++) {
|
|
12884
|
+
boundArgs.push('$' + i);
|
|
12885
|
+
}
|
|
12886
|
+
|
|
12887
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
12888
|
+
|
|
12889
|
+
if (target.prototype) {
|
|
12890
|
+
var Empty = function Empty() {};
|
|
12891
|
+
Empty.prototype = target.prototype;
|
|
12892
|
+
bound.prototype = new Empty();
|
|
12893
|
+
Empty.prototype = null;
|
|
12894
|
+
}
|
|
12895
|
+
|
|
12896
|
+
return bound;
|
|
12897
|
+
};
|
|
12898
|
+
|
|
12899
|
+
|
|
12900
|
+
/***/ }),
|
|
12901
|
+
|
|
12902
|
+
/***/ 5039:
|
|
12903
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
12904
|
+
|
|
12905
|
+
"use strict";
|
|
12906
|
+
|
|
12907
|
+
|
|
12908
|
+
var implementation = __nccwpck_require__(1450);
|
|
12909
|
+
|
|
12910
|
+
module.exports = Function.prototype.bind || implementation;
|
|
12911
|
+
|
|
12912
|
+
|
|
12913
|
+
/***/ }),
|
|
12914
|
+
|
|
12915
|
+
/***/ 62:
|
|
12916
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
12917
|
+
|
|
12918
|
+
"use strict";
|
|
12919
|
+
|
|
12920
|
+
|
|
12921
|
+
var undefined;
|
|
12922
|
+
|
|
12923
|
+
var $SyntaxError = SyntaxError;
|
|
12924
|
+
var $Function = Function;
|
|
12925
|
+
var $TypeError = TypeError;
|
|
12926
|
+
|
|
12927
|
+
// eslint-disable-next-line consistent-return
|
|
12928
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
12929
|
+
try {
|
|
12930
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
12931
|
+
} catch (e) {}
|
|
12932
|
+
};
|
|
12933
|
+
|
|
12934
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
12935
|
+
if ($gOPD) {
|
|
12936
|
+
try {
|
|
12937
|
+
$gOPD({}, '');
|
|
12938
|
+
} catch (e) {
|
|
12939
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
12940
|
+
}
|
|
12941
|
+
}
|
|
12942
|
+
|
|
12943
|
+
var throwTypeError = function () {
|
|
12944
|
+
throw new $TypeError();
|
|
12945
|
+
};
|
|
12946
|
+
var ThrowTypeError = $gOPD
|
|
12947
|
+
? (function () {
|
|
12948
|
+
try {
|
|
12949
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
12950
|
+
arguments.callee; // IE 8 does not throw here
|
|
12951
|
+
return throwTypeError;
|
|
12952
|
+
} catch (calleeThrows) {
|
|
12953
|
+
try {
|
|
12954
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
12955
|
+
return $gOPD(arguments, 'callee').get;
|
|
12956
|
+
} catch (gOPDthrows) {
|
|
12957
|
+
return throwTypeError;
|
|
12958
|
+
}
|
|
12959
|
+
}
|
|
12960
|
+
}())
|
|
12961
|
+
: throwTypeError;
|
|
12962
|
+
|
|
12963
|
+
var hasSymbols = __nccwpck_require__(9340)();
|
|
12964
|
+
|
|
12965
|
+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
12966
|
+
|
|
12967
|
+
var needsEval = {};
|
|
12968
|
+
|
|
12969
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
12970
|
+
|
|
12971
|
+
var INTRINSICS = {
|
|
12972
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
12973
|
+
'%Array%': Array,
|
|
12974
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
12975
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
12976
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
12977
|
+
'%AsyncFunction%': needsEval,
|
|
12978
|
+
'%AsyncGenerator%': needsEval,
|
|
12979
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
12980
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
12981
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
12982
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
12983
|
+
'%Boolean%': Boolean,
|
|
12984
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
12985
|
+
'%Date%': Date,
|
|
12986
|
+
'%decodeURI%': decodeURI,
|
|
12987
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
12988
|
+
'%encodeURI%': encodeURI,
|
|
12989
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
12990
|
+
'%Error%': Error,
|
|
12991
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
12992
|
+
'%EvalError%': EvalError,
|
|
12993
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
12994
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
12995
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
12996
|
+
'%Function%': $Function,
|
|
12997
|
+
'%GeneratorFunction%': needsEval,
|
|
12998
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
12999
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
13000
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
13001
|
+
'%isFinite%': isFinite,
|
|
13002
|
+
'%isNaN%': isNaN,
|
|
13003
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
13004
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
13005
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
13006
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
13007
|
+
'%Math%': Math,
|
|
13008
|
+
'%Number%': Number,
|
|
13009
|
+
'%Object%': Object,
|
|
13010
|
+
'%parseFloat%': parseFloat,
|
|
13011
|
+
'%parseInt%': parseInt,
|
|
13012
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
13013
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
13014
|
+
'%RangeError%': RangeError,
|
|
13015
|
+
'%ReferenceError%': ReferenceError,
|
|
13016
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
13017
|
+
'%RegExp%': RegExp,
|
|
13018
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
13019
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
13020
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
13021
|
+
'%String%': String,
|
|
13022
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
13023
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
13024
|
+
'%SyntaxError%': $SyntaxError,
|
|
13025
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
13026
|
+
'%TypedArray%': TypedArray,
|
|
13027
|
+
'%TypeError%': $TypeError,
|
|
13028
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
13029
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
13030
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
13031
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
13032
|
+
'%URIError%': URIError,
|
|
13033
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
13034
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
13035
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
13036
|
+
};
|
|
13037
|
+
|
|
13038
|
+
var doEval = function doEval(name) {
|
|
13039
|
+
var value;
|
|
13040
|
+
if (name === '%AsyncFunction%') {
|
|
13041
|
+
value = getEvalledConstructor('async function () {}');
|
|
13042
|
+
} else if (name === '%GeneratorFunction%') {
|
|
13043
|
+
value = getEvalledConstructor('function* () {}');
|
|
13044
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
13045
|
+
value = getEvalledConstructor('async function* () {}');
|
|
13046
|
+
} else if (name === '%AsyncGenerator%') {
|
|
13047
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
13048
|
+
if (fn) {
|
|
13049
|
+
value = fn.prototype;
|
|
13050
|
+
}
|
|
13051
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
13052
|
+
var gen = doEval('%AsyncGenerator%');
|
|
13053
|
+
if (gen) {
|
|
13054
|
+
value = getProto(gen.prototype);
|
|
13055
|
+
}
|
|
13056
|
+
}
|
|
13057
|
+
|
|
13058
|
+
INTRINSICS[name] = value;
|
|
13059
|
+
|
|
13060
|
+
return value;
|
|
13061
|
+
};
|
|
13062
|
+
|
|
13063
|
+
var LEGACY_ALIASES = {
|
|
13064
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
13065
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
13066
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
13067
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
13068
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
13069
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
13070
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
13071
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
13072
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
13073
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
13074
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
13075
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
13076
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
13077
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
13078
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
13079
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
13080
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
13081
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
13082
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
13083
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
13084
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
13085
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
13086
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
13087
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
13088
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
13089
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
13090
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
13091
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
13092
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
13093
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
13094
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
13095
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
13096
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
13097
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
13098
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
13099
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
13100
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
13101
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
13102
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
13103
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
13104
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
13105
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
13106
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
13107
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
13108
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
13109
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
13110
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
13111
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
13112
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
13113
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
13114
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
13115
|
+
};
|
|
13116
|
+
|
|
13117
|
+
var bind = __nccwpck_require__(5039);
|
|
13118
|
+
var hasOwn = __nccwpck_require__(1558);
|
|
13119
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
13120
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
13121
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
13122
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
13123
|
+
|
|
13124
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
13125
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
13126
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
13127
|
+
var stringToPath = function stringToPath(string) {
|
|
13128
|
+
var first = $strSlice(string, 0, 1);
|
|
13129
|
+
var last = $strSlice(string, -1);
|
|
13130
|
+
if (first === '%' && last !== '%') {
|
|
13131
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
13132
|
+
} else if (last === '%' && first !== '%') {
|
|
13133
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
13134
|
+
}
|
|
13135
|
+
var result = [];
|
|
13136
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
13137
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
13138
|
+
});
|
|
13139
|
+
return result;
|
|
13140
|
+
};
|
|
13141
|
+
/* end adaptation */
|
|
13142
|
+
|
|
13143
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
13144
|
+
var intrinsicName = name;
|
|
13145
|
+
var alias;
|
|
13146
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
13147
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
13148
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
13149
|
+
}
|
|
13150
|
+
|
|
13151
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
13152
|
+
var value = INTRINSICS[intrinsicName];
|
|
13153
|
+
if (value === needsEval) {
|
|
13154
|
+
value = doEval(intrinsicName);
|
|
13155
|
+
}
|
|
13156
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
13157
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
13158
|
+
}
|
|
13159
|
+
|
|
13160
|
+
return {
|
|
13161
|
+
alias: alias,
|
|
13162
|
+
name: intrinsicName,
|
|
13163
|
+
value: value
|
|
13164
|
+
};
|
|
13165
|
+
}
|
|
13166
|
+
|
|
13167
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
13168
|
+
};
|
|
13169
|
+
|
|
13170
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
13171
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
13172
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
13173
|
+
}
|
|
13174
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
13175
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
13176
|
+
}
|
|
13177
|
+
|
|
13178
|
+
var parts = stringToPath(name);
|
|
13179
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
13180
|
+
|
|
13181
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
13182
|
+
var intrinsicRealName = intrinsic.name;
|
|
13183
|
+
var value = intrinsic.value;
|
|
13184
|
+
var skipFurtherCaching = false;
|
|
13185
|
+
|
|
13186
|
+
var alias = intrinsic.alias;
|
|
13187
|
+
if (alias) {
|
|
13188
|
+
intrinsicBaseName = alias[0];
|
|
13189
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
13190
|
+
}
|
|
13191
|
+
|
|
13192
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
13193
|
+
var part = parts[i];
|
|
13194
|
+
var first = $strSlice(part, 0, 1);
|
|
13195
|
+
var last = $strSlice(part, -1);
|
|
13196
|
+
if (
|
|
13197
|
+
(
|
|
13198
|
+
(first === '"' || first === "'" || first === '`')
|
|
13199
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
13200
|
+
)
|
|
13201
|
+
&& first !== last
|
|
13202
|
+
) {
|
|
13203
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
13204
|
+
}
|
|
13205
|
+
if (part === 'constructor' || !isOwn) {
|
|
13206
|
+
skipFurtherCaching = true;
|
|
13207
|
+
}
|
|
13208
|
+
|
|
13209
|
+
intrinsicBaseName += '.' + part;
|
|
13210
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
13211
|
+
|
|
13212
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
13213
|
+
value = INTRINSICS[intrinsicRealName];
|
|
13214
|
+
} else if (value != null) {
|
|
13215
|
+
if (!(part in value)) {
|
|
13216
|
+
if (!allowMissing) {
|
|
13217
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
13218
|
+
}
|
|
13219
|
+
return void undefined;
|
|
13220
|
+
}
|
|
13221
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
13222
|
+
var desc = $gOPD(value, part);
|
|
13223
|
+
isOwn = !!desc;
|
|
13224
|
+
|
|
13225
|
+
// By convention, when a data property is converted to an accessor
|
|
13226
|
+
// property to emulate a data property that does not suffer from
|
|
13227
|
+
// the override mistake, that accessor's getter is marked with
|
|
13228
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
13229
|
+
// uphold the illusion by pretending to see that original data
|
|
13230
|
+
// property, i.e., returning the value rather than the getter
|
|
13231
|
+
// itself.
|
|
13232
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
13233
|
+
value = desc.get;
|
|
13234
|
+
} else {
|
|
13235
|
+
value = value[part];
|
|
13236
|
+
}
|
|
13237
|
+
} else {
|
|
13238
|
+
isOwn = hasOwn(value, part);
|
|
13239
|
+
value = value[part];
|
|
13240
|
+
}
|
|
13241
|
+
|
|
13242
|
+
if (isOwn && !skipFurtherCaching) {
|
|
13243
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
13244
|
+
}
|
|
13245
|
+
}
|
|
13246
|
+
}
|
|
13247
|
+
return value;
|
|
13248
|
+
};
|
|
13249
|
+
|
|
13250
|
+
|
|
13251
|
+
/***/ }),
|
|
13252
|
+
|
|
13253
|
+
/***/ 9340:
|
|
13254
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
13255
|
+
|
|
13256
|
+
"use strict";
|
|
13257
|
+
|
|
13258
|
+
|
|
13259
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
13260
|
+
var hasSymbolSham = __nccwpck_require__(3933);
|
|
13261
|
+
|
|
13262
|
+
module.exports = function hasNativeSymbols() {
|
|
13263
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
13264
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
13265
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
13266
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
13267
|
+
|
|
13268
|
+
return hasSymbolSham();
|
|
13269
|
+
};
|
|
13270
|
+
|
|
13271
|
+
|
|
13272
|
+
/***/ }),
|
|
13273
|
+
|
|
13274
|
+
/***/ 3933:
|
|
13275
|
+
/***/ ((module) => {
|
|
13276
|
+
|
|
13277
|
+
"use strict";
|
|
13278
|
+
|
|
13279
|
+
|
|
13280
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
13281
|
+
module.exports = function hasSymbols() {
|
|
13282
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
13283
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
13284
|
+
|
|
13285
|
+
var obj = {};
|
|
13286
|
+
var sym = Symbol('test');
|
|
13287
|
+
var symObj = Object(sym);
|
|
13288
|
+
if (typeof sym === 'string') { return false; }
|
|
13289
|
+
|
|
13290
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
13291
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
13292
|
+
|
|
13293
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
13294
|
+
// if (sym instanceof Symbol) { return false; }
|
|
13295
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
13296
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
13297
|
+
|
|
13298
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
13299
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
13300
|
+
|
|
13301
|
+
var symVal = 42;
|
|
13302
|
+
obj[sym] = symVal;
|
|
13303
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
13304
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
13305
|
+
|
|
13306
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
13307
|
+
|
|
13308
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
13309
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
13310
|
+
|
|
13311
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
13312
|
+
|
|
13313
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
13314
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
13315
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
13316
|
+
}
|
|
13317
|
+
|
|
13318
|
+
return true;
|
|
13319
|
+
};
|
|
13320
|
+
|
|
13321
|
+
|
|
13101
13322
|
/***/ }),
|
|
13102
13323
|
|
|
13103
13324
|
/***/ 2701:
|
|
@@ -22213,25 +22434,6 @@ __nccwpck_require__(497);
|
|
|
22213
22434
|
module.exports = __nccwpck_require__(1157);
|
|
22214
22435
|
|
|
22215
22436
|
|
|
22216
|
-
/***/ }),
|
|
22217
|
-
|
|
22218
|
-
/***/ 1369:
|
|
22219
|
-
/***/ ((module) => {
|
|
22220
|
-
|
|
22221
|
-
"use strict";
|
|
22222
|
-
|
|
22223
|
-
|
|
22224
|
-
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
22225
|
-
|
|
22226
|
-
module.exports = function (str) {
|
|
22227
|
-
if (typeof str !== 'string') {
|
|
22228
|
-
throw new TypeError('Expected a string');
|
|
22229
|
-
}
|
|
22230
|
-
|
|
22231
|
-
return str.replace(matchOperatorsRe, '\\$&');
|
|
22232
|
-
};
|
|
22233
|
-
|
|
22234
|
-
|
|
22235
22437
|
/***/ }),
|
|
22236
22438
|
|
|
22237
22439
|
/***/ 4793:
|
|
@@ -22278,7 +22480,7 @@ module.exports = function (cb) {
|
|
|
22278
22480
|
"use strict";
|
|
22279
22481
|
|
|
22280
22482
|
var objectAssign = __nccwpck_require__(1756);
|
|
22281
|
-
var escapeStringRegexp = __nccwpck_require__(
|
|
22483
|
+
var escapeStringRegexp = __nccwpck_require__(7043);
|
|
22282
22484
|
var platform = process.platform;
|
|
22283
22485
|
|
|
22284
22486
|
var main = {
|
|
@@ -22425,6 +22627,25 @@ var fn = function (str) {
|
|
|
22425
22627
|
module.exports = objectAssign(fn, figures);
|
|
22426
22628
|
|
|
22427
22629
|
|
|
22630
|
+
/***/ }),
|
|
22631
|
+
|
|
22632
|
+
/***/ 7043:
|
|
22633
|
+
/***/ ((module) => {
|
|
22634
|
+
|
|
22635
|
+
"use strict";
|
|
22636
|
+
|
|
22637
|
+
|
|
22638
|
+
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
22639
|
+
|
|
22640
|
+
module.exports = function (str) {
|
|
22641
|
+
if (typeof str !== 'string') {
|
|
22642
|
+
throw new TypeError('Expected a string');
|
|
22643
|
+
}
|
|
22644
|
+
|
|
22645
|
+
return str.replace(matchOperatorsRe, '\\$&');
|
|
22646
|
+
};
|
|
22647
|
+
|
|
22648
|
+
|
|
22428
22649
|
/***/ }),
|
|
22429
22650
|
|
|
22430
22651
|
/***/ 8191:
|
|
@@ -22684,7 +22905,31 @@ module.exports = fill;
|
|
|
22684
22905
|
|
|
22685
22906
|
/***/ }),
|
|
22686
22907
|
|
|
22687
|
-
/***/
|
|
22908
|
+
/***/ 1098:
|
|
22909
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
22910
|
+
|
|
22911
|
+
"use strict";
|
|
22912
|
+
|
|
22913
|
+
var ansiRegex = __nccwpck_require__(1082);
|
|
22914
|
+
var re = new RegExp(ansiRegex().source); // remove the `g` flag
|
|
22915
|
+
module.exports = re.test.bind(re);
|
|
22916
|
+
|
|
22917
|
+
|
|
22918
|
+
/***/ }),
|
|
22919
|
+
|
|
22920
|
+
/***/ 1082:
|
|
22921
|
+
/***/ ((module) => {
|
|
22922
|
+
|
|
22923
|
+
"use strict";
|
|
22924
|
+
|
|
22925
|
+
module.exports = function () {
|
|
22926
|
+
return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
|
|
22927
|
+
};
|
|
22928
|
+
|
|
22929
|
+
|
|
22930
|
+
/***/ }),
|
|
22931
|
+
|
|
22932
|
+
/***/ 6324:
|
|
22688
22933
|
/***/ ((module) => {
|
|
22689
22934
|
|
|
22690
22935
|
"use strict";
|
|
@@ -22744,450 +22989,17 @@ module.exports = function bind(that) {
|
|
|
22744
22989
|
|
|
22745
22990
|
/***/ }),
|
|
22746
22991
|
|
|
22747
|
-
/***/
|
|
22992
|
+
/***/ 2025:
|
|
22748
22993
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
22749
22994
|
|
|
22750
22995
|
"use strict";
|
|
22751
22996
|
|
|
22752
22997
|
|
|
22753
|
-
var implementation = __nccwpck_require__(
|
|
22998
|
+
var implementation = __nccwpck_require__(6324);
|
|
22754
22999
|
|
|
22755
23000
|
module.exports = Function.prototype.bind || implementation;
|
|
22756
23001
|
|
|
22757
23002
|
|
|
22758
|
-
/***/ }),
|
|
22759
|
-
|
|
22760
|
-
/***/ 7603:
|
|
22761
|
-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
22762
|
-
|
|
22763
|
-
"use strict";
|
|
22764
|
-
|
|
22765
|
-
|
|
22766
|
-
var undefined;
|
|
22767
|
-
|
|
22768
|
-
var $SyntaxError = SyntaxError;
|
|
22769
|
-
var $Function = Function;
|
|
22770
|
-
var $TypeError = TypeError;
|
|
22771
|
-
|
|
22772
|
-
// eslint-disable-next-line consistent-return
|
|
22773
|
-
var getEvalledConstructor = function (expressionSyntax) {
|
|
22774
|
-
try {
|
|
22775
|
-
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
22776
|
-
} catch (e) {}
|
|
22777
|
-
};
|
|
22778
|
-
|
|
22779
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
22780
|
-
if ($gOPD) {
|
|
22781
|
-
try {
|
|
22782
|
-
$gOPD({}, '');
|
|
22783
|
-
} catch (e) {
|
|
22784
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
22785
|
-
}
|
|
22786
|
-
}
|
|
22787
|
-
|
|
22788
|
-
var throwTypeError = function () {
|
|
22789
|
-
throw new $TypeError();
|
|
22790
|
-
};
|
|
22791
|
-
var ThrowTypeError = $gOPD
|
|
22792
|
-
? (function () {
|
|
22793
|
-
try {
|
|
22794
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
22795
|
-
arguments.callee; // IE 8 does not throw here
|
|
22796
|
-
return throwTypeError;
|
|
22797
|
-
} catch (calleeThrows) {
|
|
22798
|
-
try {
|
|
22799
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
22800
|
-
return $gOPD(arguments, 'callee').get;
|
|
22801
|
-
} catch (gOPDthrows) {
|
|
22802
|
-
return throwTypeError;
|
|
22803
|
-
}
|
|
22804
|
-
}
|
|
22805
|
-
}())
|
|
22806
|
-
: throwTypeError;
|
|
22807
|
-
|
|
22808
|
-
var hasSymbols = __nccwpck_require__(5132)();
|
|
22809
|
-
|
|
22810
|
-
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
22811
|
-
|
|
22812
|
-
var needsEval = {};
|
|
22813
|
-
|
|
22814
|
-
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
22815
|
-
|
|
22816
|
-
var INTRINSICS = {
|
|
22817
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
22818
|
-
'%Array%': Array,
|
|
22819
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
22820
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
22821
|
-
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
22822
|
-
'%AsyncFunction%': needsEval,
|
|
22823
|
-
'%AsyncGenerator%': needsEval,
|
|
22824
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
22825
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
22826
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
22827
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
22828
|
-
'%Boolean%': Boolean,
|
|
22829
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
22830
|
-
'%Date%': Date,
|
|
22831
|
-
'%decodeURI%': decodeURI,
|
|
22832
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
22833
|
-
'%encodeURI%': encodeURI,
|
|
22834
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
22835
|
-
'%Error%': Error,
|
|
22836
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
22837
|
-
'%EvalError%': EvalError,
|
|
22838
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
22839
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
22840
|
-
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
22841
|
-
'%Function%': $Function,
|
|
22842
|
-
'%GeneratorFunction%': needsEval,
|
|
22843
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
22844
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
22845
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
22846
|
-
'%isFinite%': isFinite,
|
|
22847
|
-
'%isNaN%': isNaN,
|
|
22848
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
22849
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
22850
|
-
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
22851
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
22852
|
-
'%Math%': Math,
|
|
22853
|
-
'%Number%': Number,
|
|
22854
|
-
'%Object%': Object,
|
|
22855
|
-
'%parseFloat%': parseFloat,
|
|
22856
|
-
'%parseInt%': parseInt,
|
|
22857
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
22858
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
22859
|
-
'%RangeError%': RangeError,
|
|
22860
|
-
'%ReferenceError%': ReferenceError,
|
|
22861
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
22862
|
-
'%RegExp%': RegExp,
|
|
22863
|
-
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
22864
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
22865
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
22866
|
-
'%String%': String,
|
|
22867
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
22868
|
-
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
22869
|
-
'%SyntaxError%': $SyntaxError,
|
|
22870
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
22871
|
-
'%TypedArray%': TypedArray,
|
|
22872
|
-
'%TypeError%': $TypeError,
|
|
22873
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
22874
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
22875
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
22876
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
22877
|
-
'%URIError%': URIError,
|
|
22878
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
22879
|
-
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
22880
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
22881
|
-
};
|
|
22882
|
-
|
|
22883
|
-
var doEval = function doEval(name) {
|
|
22884
|
-
var value;
|
|
22885
|
-
if (name === '%AsyncFunction%') {
|
|
22886
|
-
value = getEvalledConstructor('async function () {}');
|
|
22887
|
-
} else if (name === '%GeneratorFunction%') {
|
|
22888
|
-
value = getEvalledConstructor('function* () {}');
|
|
22889
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
22890
|
-
value = getEvalledConstructor('async function* () {}');
|
|
22891
|
-
} else if (name === '%AsyncGenerator%') {
|
|
22892
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
22893
|
-
if (fn) {
|
|
22894
|
-
value = fn.prototype;
|
|
22895
|
-
}
|
|
22896
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
22897
|
-
var gen = doEval('%AsyncGenerator%');
|
|
22898
|
-
if (gen) {
|
|
22899
|
-
value = getProto(gen.prototype);
|
|
22900
|
-
}
|
|
22901
|
-
}
|
|
22902
|
-
|
|
22903
|
-
INTRINSICS[name] = value;
|
|
22904
|
-
|
|
22905
|
-
return value;
|
|
22906
|
-
};
|
|
22907
|
-
|
|
22908
|
-
var LEGACY_ALIASES = {
|
|
22909
|
-
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
22910
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
22911
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
22912
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
22913
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
22914
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
22915
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
22916
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
22917
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
22918
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
22919
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
22920
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
22921
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
22922
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
22923
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
22924
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
22925
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
22926
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
22927
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
22928
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
22929
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
22930
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
22931
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
22932
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
22933
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
22934
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
22935
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
22936
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
22937
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
22938
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
22939
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
22940
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
22941
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
22942
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
22943
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
22944
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
22945
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
22946
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
22947
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
22948
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
22949
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
22950
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
22951
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
22952
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
22953
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
22954
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
22955
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
22956
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
22957
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
22958
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
22959
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
22960
|
-
};
|
|
22961
|
-
|
|
22962
|
-
var bind = __nccwpck_require__(5887);
|
|
22963
|
-
var hasOwn = __nccwpck_require__(1558);
|
|
22964
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
22965
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
22966
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
22967
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
22968
|
-
|
|
22969
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
22970
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
22971
|
-
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
22972
|
-
var stringToPath = function stringToPath(string) {
|
|
22973
|
-
var first = $strSlice(string, 0, 1);
|
|
22974
|
-
var last = $strSlice(string, -1);
|
|
22975
|
-
if (first === '%' && last !== '%') {
|
|
22976
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
22977
|
-
} else if (last === '%' && first !== '%') {
|
|
22978
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
22979
|
-
}
|
|
22980
|
-
var result = [];
|
|
22981
|
-
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
22982
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
22983
|
-
});
|
|
22984
|
-
return result;
|
|
22985
|
-
};
|
|
22986
|
-
/* end adaptation */
|
|
22987
|
-
|
|
22988
|
-
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
22989
|
-
var intrinsicName = name;
|
|
22990
|
-
var alias;
|
|
22991
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
22992
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
22993
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
22994
|
-
}
|
|
22995
|
-
|
|
22996
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
22997
|
-
var value = INTRINSICS[intrinsicName];
|
|
22998
|
-
if (value === needsEval) {
|
|
22999
|
-
value = doEval(intrinsicName);
|
|
23000
|
-
}
|
|
23001
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
23002
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
23003
|
-
}
|
|
23004
|
-
|
|
23005
|
-
return {
|
|
23006
|
-
alias: alias,
|
|
23007
|
-
name: intrinsicName,
|
|
23008
|
-
value: value
|
|
23009
|
-
};
|
|
23010
|
-
}
|
|
23011
|
-
|
|
23012
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
23013
|
-
};
|
|
23014
|
-
|
|
23015
|
-
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
23016
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
23017
|
-
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
23018
|
-
}
|
|
23019
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
23020
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
23021
|
-
}
|
|
23022
|
-
|
|
23023
|
-
var parts = stringToPath(name);
|
|
23024
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
23025
|
-
|
|
23026
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
23027
|
-
var intrinsicRealName = intrinsic.name;
|
|
23028
|
-
var value = intrinsic.value;
|
|
23029
|
-
var skipFurtherCaching = false;
|
|
23030
|
-
|
|
23031
|
-
var alias = intrinsic.alias;
|
|
23032
|
-
if (alias) {
|
|
23033
|
-
intrinsicBaseName = alias[0];
|
|
23034
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
23035
|
-
}
|
|
23036
|
-
|
|
23037
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
23038
|
-
var part = parts[i];
|
|
23039
|
-
var first = $strSlice(part, 0, 1);
|
|
23040
|
-
var last = $strSlice(part, -1);
|
|
23041
|
-
if (
|
|
23042
|
-
(
|
|
23043
|
-
(first === '"' || first === "'" || first === '`')
|
|
23044
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
23045
|
-
)
|
|
23046
|
-
&& first !== last
|
|
23047
|
-
) {
|
|
23048
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
23049
|
-
}
|
|
23050
|
-
if (part === 'constructor' || !isOwn) {
|
|
23051
|
-
skipFurtherCaching = true;
|
|
23052
|
-
}
|
|
23053
|
-
|
|
23054
|
-
intrinsicBaseName += '.' + part;
|
|
23055
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
23056
|
-
|
|
23057
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
23058
|
-
value = INTRINSICS[intrinsicRealName];
|
|
23059
|
-
} else if (value != null) {
|
|
23060
|
-
if (!(part in value)) {
|
|
23061
|
-
if (!allowMissing) {
|
|
23062
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
23063
|
-
}
|
|
23064
|
-
return void undefined;
|
|
23065
|
-
}
|
|
23066
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
23067
|
-
var desc = $gOPD(value, part);
|
|
23068
|
-
isOwn = !!desc;
|
|
23069
|
-
|
|
23070
|
-
// By convention, when a data property is converted to an accessor
|
|
23071
|
-
// property to emulate a data property that does not suffer from
|
|
23072
|
-
// the override mistake, that accessor's getter is marked with
|
|
23073
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
23074
|
-
// uphold the illusion by pretending to see that original data
|
|
23075
|
-
// property, i.e., returning the value rather than the getter
|
|
23076
|
-
// itself.
|
|
23077
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
23078
|
-
value = desc.get;
|
|
23079
|
-
} else {
|
|
23080
|
-
value = value[part];
|
|
23081
|
-
}
|
|
23082
|
-
} else {
|
|
23083
|
-
isOwn = hasOwn(value, part);
|
|
23084
|
-
value = value[part];
|
|
23085
|
-
}
|
|
23086
|
-
|
|
23087
|
-
if (isOwn && !skipFurtherCaching) {
|
|
23088
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
23089
|
-
}
|
|
23090
|
-
}
|
|
23091
|
-
}
|
|
23092
|
-
return value;
|
|
23093
|
-
};
|
|
23094
|
-
|
|
23095
|
-
|
|
23096
|
-
/***/ }),
|
|
23097
|
-
|
|
23098
|
-
/***/ 1098:
|
|
23099
|
-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
23100
|
-
|
|
23101
|
-
"use strict";
|
|
23102
|
-
|
|
23103
|
-
var ansiRegex = __nccwpck_require__(1082);
|
|
23104
|
-
var re = new RegExp(ansiRegex().source); // remove the `g` flag
|
|
23105
|
-
module.exports = re.test.bind(re);
|
|
23106
|
-
|
|
23107
|
-
|
|
23108
|
-
/***/ }),
|
|
23109
|
-
|
|
23110
|
-
/***/ 1082:
|
|
23111
|
-
/***/ ((module) => {
|
|
23112
|
-
|
|
23113
|
-
"use strict";
|
|
23114
|
-
|
|
23115
|
-
module.exports = function () {
|
|
23116
|
-
return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
|
|
23117
|
-
};
|
|
23118
|
-
|
|
23119
|
-
|
|
23120
|
-
/***/ }),
|
|
23121
|
-
|
|
23122
|
-
/***/ 5132:
|
|
23123
|
-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
23124
|
-
|
|
23125
|
-
"use strict";
|
|
23126
|
-
|
|
23127
|
-
|
|
23128
|
-
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
23129
|
-
var hasSymbolSham = __nccwpck_require__(2180);
|
|
23130
|
-
|
|
23131
|
-
module.exports = function hasNativeSymbols() {
|
|
23132
|
-
if (typeof origSymbol !== 'function') { return false; }
|
|
23133
|
-
if (typeof Symbol !== 'function') { return false; }
|
|
23134
|
-
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
23135
|
-
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
23136
|
-
|
|
23137
|
-
return hasSymbolSham();
|
|
23138
|
-
};
|
|
23139
|
-
|
|
23140
|
-
|
|
23141
|
-
/***/ }),
|
|
23142
|
-
|
|
23143
|
-
/***/ 2180:
|
|
23144
|
-
/***/ ((module) => {
|
|
23145
|
-
|
|
23146
|
-
"use strict";
|
|
23147
|
-
|
|
23148
|
-
|
|
23149
|
-
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
23150
|
-
module.exports = function hasSymbols() {
|
|
23151
|
-
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
23152
|
-
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
23153
|
-
|
|
23154
|
-
var obj = {};
|
|
23155
|
-
var sym = Symbol('test');
|
|
23156
|
-
var symObj = Object(sym);
|
|
23157
|
-
if (typeof sym === 'string') { return false; }
|
|
23158
|
-
|
|
23159
|
-
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
23160
|
-
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
23161
|
-
|
|
23162
|
-
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
23163
|
-
// if (sym instanceof Symbol) { return false; }
|
|
23164
|
-
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
23165
|
-
// if (!(symObj instanceof Symbol)) { return false; }
|
|
23166
|
-
|
|
23167
|
-
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
23168
|
-
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
23169
|
-
|
|
23170
|
-
var symVal = 42;
|
|
23171
|
-
obj[sym] = symVal;
|
|
23172
|
-
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
23173
|
-
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
23174
|
-
|
|
23175
|
-
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
23176
|
-
|
|
23177
|
-
var syms = Object.getOwnPropertySymbols(obj);
|
|
23178
|
-
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
23179
|
-
|
|
23180
|
-
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
23181
|
-
|
|
23182
|
-
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
23183
|
-
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
23184
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
23185
|
-
}
|
|
23186
|
-
|
|
23187
|
-
return true;
|
|
23188
|
-
};
|
|
23189
|
-
|
|
23190
|
-
|
|
23191
23003
|
/***/ }),
|
|
23192
23004
|
|
|
23193
23005
|
/***/ 1558:
|
|
@@ -23196,7 +23008,7 @@ module.exports = function hasSymbols() {
|
|
|
23196
23008
|
"use strict";
|
|
23197
23009
|
|
|
23198
23010
|
|
|
23199
|
-
var bind = __nccwpck_require__(
|
|
23011
|
+
var bind = __nccwpck_require__(2025);
|
|
23200
23012
|
|
|
23201
23013
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
23202
23014
|
|
|
@@ -25726,7 +25538,7 @@ Object.defineProperty(module, 'exports', {
|
|
|
25726
25538
|
|
|
25727
25539
|
"use strict";
|
|
25728
25540
|
|
|
25729
|
-
var escapeStringRegexp = __nccwpck_require__(
|
|
25541
|
+
var escapeStringRegexp = __nccwpck_require__(9679);
|
|
25730
25542
|
var ansiStyles = __nccwpck_require__(6695);
|
|
25731
25543
|
var stripAnsi = __nccwpck_require__(9310);
|
|
25732
25544
|
var hasAnsi = __nccwpck_require__(1098);
|
|
@@ -25843,6 +25655,25 @@ module.exports.stripColor = stripAnsi;
|
|
|
25843
25655
|
module.exports.supportsColor = supportsColor;
|
|
25844
25656
|
|
|
25845
25657
|
|
|
25658
|
+
/***/ }),
|
|
25659
|
+
|
|
25660
|
+
/***/ 9679:
|
|
25661
|
+
/***/ ((module) => {
|
|
25662
|
+
|
|
25663
|
+
"use strict";
|
|
25664
|
+
|
|
25665
|
+
|
|
25666
|
+
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
25667
|
+
|
|
25668
|
+
module.exports = function (str) {
|
|
25669
|
+
if (typeof str !== 'string') {
|
|
25670
|
+
throw new TypeError('Expected a string');
|
|
25671
|
+
}
|
|
25672
|
+
|
|
25673
|
+
return str.replace(matchOperatorsRe, '\\$&');
|
|
25674
|
+
};
|
|
25675
|
+
|
|
25676
|
+
|
|
25846
25677
|
/***/ }),
|
|
25847
25678
|
|
|
25848
25679
|
/***/ 6294:
|
|
@@ -55517,6 +55348,258 @@ module.exports = function(num) {
|
|
|
55517
55348
|
}.call(this));
|
|
55518
55349
|
|
|
55519
55350
|
|
|
55351
|
+
/***/ }),
|
|
55352
|
+
|
|
55353
|
+
/***/ 5982:
|
|
55354
|
+
/***/ ((module) => {
|
|
55355
|
+
|
|
55356
|
+
module.exports = function (args, opts) {
|
|
55357
|
+
if (!opts) opts = {};
|
|
55358
|
+
|
|
55359
|
+
var flags = { bools : {}, strings : {}, unknownFn: null };
|
|
55360
|
+
|
|
55361
|
+
if (typeof opts['unknown'] === 'function') {
|
|
55362
|
+
flags.unknownFn = opts['unknown'];
|
|
55363
|
+
}
|
|
55364
|
+
|
|
55365
|
+
if (typeof opts['boolean'] === 'boolean' && opts['boolean']) {
|
|
55366
|
+
flags.allBools = true;
|
|
55367
|
+
} else {
|
|
55368
|
+
[].concat(opts['boolean']).filter(Boolean).forEach(function (key) {
|
|
55369
|
+
flags.bools[key] = true;
|
|
55370
|
+
});
|
|
55371
|
+
}
|
|
55372
|
+
|
|
55373
|
+
var aliases = {};
|
|
55374
|
+
Object.keys(opts.alias || {}).forEach(function (key) {
|
|
55375
|
+
aliases[key] = [].concat(opts.alias[key]);
|
|
55376
|
+
aliases[key].forEach(function (x) {
|
|
55377
|
+
aliases[x] = [key].concat(aliases[key].filter(function (y) {
|
|
55378
|
+
return x !== y;
|
|
55379
|
+
}));
|
|
55380
|
+
});
|
|
55381
|
+
});
|
|
55382
|
+
|
|
55383
|
+
[].concat(opts.string).filter(Boolean).forEach(function (key) {
|
|
55384
|
+
flags.strings[key] = true;
|
|
55385
|
+
if (aliases[key]) {
|
|
55386
|
+
flags.strings[aliases[key]] = true;
|
|
55387
|
+
}
|
|
55388
|
+
});
|
|
55389
|
+
|
|
55390
|
+
var defaults = opts['default'] || {};
|
|
55391
|
+
|
|
55392
|
+
var argv = { _ : [] };
|
|
55393
|
+
Object.keys(flags.bools).forEach(function (key) {
|
|
55394
|
+
setArg(key, defaults[key] === undefined ? false : defaults[key]);
|
|
55395
|
+
});
|
|
55396
|
+
|
|
55397
|
+
var notFlags = [];
|
|
55398
|
+
|
|
55399
|
+
if (args.indexOf('--') !== -1) {
|
|
55400
|
+
notFlags = args.slice(args.indexOf('--')+1);
|
|
55401
|
+
args = args.slice(0, args.indexOf('--'));
|
|
55402
|
+
}
|
|
55403
|
+
|
|
55404
|
+
function argDefined(key, arg) {
|
|
55405
|
+
return (flags.allBools && /^--[^=]+$/.test(arg)) ||
|
|
55406
|
+
flags.strings[key] || flags.bools[key] || aliases[key];
|
|
55407
|
+
}
|
|
55408
|
+
|
|
55409
|
+
function setArg (key, val, arg) {
|
|
55410
|
+
if (arg && flags.unknownFn && !argDefined(key, arg)) {
|
|
55411
|
+
if (flags.unknownFn(arg) === false) return;
|
|
55412
|
+
}
|
|
55413
|
+
|
|
55414
|
+
var value = !flags.strings[key] && isNumber(val)
|
|
55415
|
+
? Number(val) : val
|
|
55416
|
+
;
|
|
55417
|
+
setKey(argv, key.split('.'), value);
|
|
55418
|
+
|
|
55419
|
+
(aliases[key] || []).forEach(function (x) {
|
|
55420
|
+
setKey(argv, x.split('.'), value);
|
|
55421
|
+
});
|
|
55422
|
+
}
|
|
55423
|
+
|
|
55424
|
+
function setKey (obj, keys, value) {
|
|
55425
|
+
var o = obj;
|
|
55426
|
+
for (var i = 0; i < keys.length-1; i++) {
|
|
55427
|
+
var key = keys[i];
|
|
55428
|
+
if (key === '__proto__') return;
|
|
55429
|
+
if (o[key] === undefined) o[key] = {};
|
|
55430
|
+
if (o[key] === Object.prototype || o[key] === Number.prototype
|
|
55431
|
+
|| o[key] === String.prototype) o[key] = {};
|
|
55432
|
+
if (o[key] === Array.prototype) o[key] = [];
|
|
55433
|
+
o = o[key];
|
|
55434
|
+
}
|
|
55435
|
+
|
|
55436
|
+
var key = keys[keys.length - 1];
|
|
55437
|
+
if (key === '__proto__') return;
|
|
55438
|
+
if (o === Object.prototype || o === Number.prototype
|
|
55439
|
+
|| o === String.prototype) o = {};
|
|
55440
|
+
if (o === Array.prototype) o = [];
|
|
55441
|
+
if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') {
|
|
55442
|
+
o[key] = value;
|
|
55443
|
+
}
|
|
55444
|
+
else if (Array.isArray(o[key])) {
|
|
55445
|
+
o[key].push(value);
|
|
55446
|
+
}
|
|
55447
|
+
else {
|
|
55448
|
+
o[key] = [ o[key], value ];
|
|
55449
|
+
}
|
|
55450
|
+
}
|
|
55451
|
+
|
|
55452
|
+
function aliasIsBoolean(key) {
|
|
55453
|
+
return aliases[key].some(function (x) {
|
|
55454
|
+
return flags.bools[x];
|
|
55455
|
+
});
|
|
55456
|
+
}
|
|
55457
|
+
|
|
55458
|
+
for (var i = 0; i < args.length; i++) {
|
|
55459
|
+
var arg = args[i];
|
|
55460
|
+
|
|
55461
|
+
if (/^--.+=/.test(arg)) {
|
|
55462
|
+
// Using [\s\S] instead of . because js doesn't support the
|
|
55463
|
+
// 'dotall' regex modifier. See:
|
|
55464
|
+
// http://stackoverflow.com/a/1068308/13216
|
|
55465
|
+
var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
|
|
55466
|
+
var key = m[1];
|
|
55467
|
+
var value = m[2];
|
|
55468
|
+
if (flags.bools[key]) {
|
|
55469
|
+
value = value !== 'false';
|
|
55470
|
+
}
|
|
55471
|
+
setArg(key, value, arg);
|
|
55472
|
+
}
|
|
55473
|
+
else if (/^--no-.+/.test(arg)) {
|
|
55474
|
+
var key = arg.match(/^--no-(.+)/)[1];
|
|
55475
|
+
setArg(key, false, arg);
|
|
55476
|
+
}
|
|
55477
|
+
else if (/^--.+/.test(arg)) {
|
|
55478
|
+
var key = arg.match(/^--(.+)/)[1];
|
|
55479
|
+
var next = args[i + 1];
|
|
55480
|
+
if (next !== undefined && !/^-/.test(next)
|
|
55481
|
+
&& !flags.bools[key]
|
|
55482
|
+
&& !flags.allBools
|
|
55483
|
+
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
55484
|
+
setArg(key, next, arg);
|
|
55485
|
+
i++;
|
|
55486
|
+
}
|
|
55487
|
+
else if (/^(true|false)$/.test(next)) {
|
|
55488
|
+
setArg(key, next === 'true', arg);
|
|
55489
|
+
i++;
|
|
55490
|
+
}
|
|
55491
|
+
else {
|
|
55492
|
+
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
55493
|
+
}
|
|
55494
|
+
}
|
|
55495
|
+
else if (/^-[^-]+/.test(arg)) {
|
|
55496
|
+
var letters = arg.slice(1,-1).split('');
|
|
55497
|
+
|
|
55498
|
+
var broken = false;
|
|
55499
|
+
for (var j = 0; j < letters.length; j++) {
|
|
55500
|
+
var next = arg.slice(j+2);
|
|
55501
|
+
|
|
55502
|
+
if (next === '-') {
|
|
55503
|
+
setArg(letters[j], next, arg)
|
|
55504
|
+
continue;
|
|
55505
|
+
}
|
|
55506
|
+
|
|
55507
|
+
if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
|
|
55508
|
+
setArg(letters[j], next.split('=')[1], arg);
|
|
55509
|
+
broken = true;
|
|
55510
|
+
break;
|
|
55511
|
+
}
|
|
55512
|
+
|
|
55513
|
+
if (/[A-Za-z]/.test(letters[j])
|
|
55514
|
+
&& /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
|
|
55515
|
+
setArg(letters[j], next, arg);
|
|
55516
|
+
broken = true;
|
|
55517
|
+
break;
|
|
55518
|
+
}
|
|
55519
|
+
|
|
55520
|
+
if (letters[j+1] && letters[j+1].match(/\W/)) {
|
|
55521
|
+
setArg(letters[j], arg.slice(j+2), arg);
|
|
55522
|
+
broken = true;
|
|
55523
|
+
break;
|
|
55524
|
+
}
|
|
55525
|
+
else {
|
|
55526
|
+
setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
|
|
55527
|
+
}
|
|
55528
|
+
}
|
|
55529
|
+
|
|
55530
|
+
var key = arg.slice(-1)[0];
|
|
55531
|
+
if (!broken && key !== '-') {
|
|
55532
|
+
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
|
|
55533
|
+
&& !flags.bools[key]
|
|
55534
|
+
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
55535
|
+
setArg(key, args[i+1], arg);
|
|
55536
|
+
i++;
|
|
55537
|
+
}
|
|
55538
|
+
else if (args[i+1] && /^(true|false)$/.test(args[i+1])) {
|
|
55539
|
+
setArg(key, args[i+1] === 'true', arg);
|
|
55540
|
+
i++;
|
|
55541
|
+
}
|
|
55542
|
+
else {
|
|
55543
|
+
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
55544
|
+
}
|
|
55545
|
+
}
|
|
55546
|
+
}
|
|
55547
|
+
else {
|
|
55548
|
+
if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
|
|
55549
|
+
argv._.push(
|
|
55550
|
+
flags.strings['_'] || !isNumber(arg) ? arg : Number(arg)
|
|
55551
|
+
);
|
|
55552
|
+
}
|
|
55553
|
+
if (opts.stopEarly) {
|
|
55554
|
+
argv._.push.apply(argv._, args.slice(i + 1));
|
|
55555
|
+
break;
|
|
55556
|
+
}
|
|
55557
|
+
}
|
|
55558
|
+
}
|
|
55559
|
+
|
|
55560
|
+
Object.keys(defaults).forEach(function (key) {
|
|
55561
|
+
if (!hasKey(argv, key.split('.'))) {
|
|
55562
|
+
setKey(argv, key.split('.'), defaults[key]);
|
|
55563
|
+
|
|
55564
|
+
(aliases[key] || []).forEach(function (x) {
|
|
55565
|
+
setKey(argv, x.split('.'), defaults[key]);
|
|
55566
|
+
});
|
|
55567
|
+
}
|
|
55568
|
+
});
|
|
55569
|
+
|
|
55570
|
+
if (opts['--']) {
|
|
55571
|
+
argv['--'] = new Array();
|
|
55572
|
+
notFlags.forEach(function(key) {
|
|
55573
|
+
argv['--'].push(key);
|
|
55574
|
+
});
|
|
55575
|
+
}
|
|
55576
|
+
else {
|
|
55577
|
+
notFlags.forEach(function(key) {
|
|
55578
|
+
argv._.push(key);
|
|
55579
|
+
});
|
|
55580
|
+
}
|
|
55581
|
+
|
|
55582
|
+
return argv;
|
|
55583
|
+
};
|
|
55584
|
+
|
|
55585
|
+
function hasKey (obj, keys) {
|
|
55586
|
+
var o = obj;
|
|
55587
|
+
keys.slice(0,-1).forEach(function (key) {
|
|
55588
|
+
o = (o[key] || {});
|
|
55589
|
+
});
|
|
55590
|
+
|
|
55591
|
+
var key = keys[keys.length - 1];
|
|
55592
|
+
return key in o;
|
|
55593
|
+
}
|
|
55594
|
+
|
|
55595
|
+
function isNumber (x) {
|
|
55596
|
+
if (typeof x === 'number') return true;
|
|
55597
|
+
if (/^0x[0-9a-f]+$/i.test(x)) return true;
|
|
55598
|
+
return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
|
|
55599
|
+
}
|
|
55600
|
+
|
|
55601
|
+
|
|
55602
|
+
|
|
55520
55603
|
/***/ }),
|
|
55521
55604
|
|
|
55522
55605
|
/***/ 4778:
|
|
@@ -63626,7 +63709,7 @@ observableProto.controlled = function (enableQueue, scheduler) {
|
|
|
63626
63709
|
"use strict";
|
|
63627
63710
|
|
|
63628
63711
|
|
|
63629
|
-
var GetIntrinsic = __nccwpck_require__(
|
|
63712
|
+
var GetIntrinsic = __nccwpck_require__(2375);
|
|
63630
63713
|
var callBound = __nccwpck_require__(4469);
|
|
63631
63714
|
var inspect = __nccwpck_require__(8819);
|
|
63632
63715
|
|
|
@@ -63750,6 +63833,488 @@ module.exports = function getSideChannel() {
|
|
|
63750
63833
|
};
|
|
63751
63834
|
|
|
63752
63835
|
|
|
63836
|
+
/***/ }),
|
|
63837
|
+
|
|
63838
|
+
/***/ 2475:
|
|
63839
|
+
/***/ ((module) => {
|
|
63840
|
+
|
|
63841
|
+
"use strict";
|
|
63842
|
+
|
|
63843
|
+
|
|
63844
|
+
/* eslint no-invalid-this: 1 */
|
|
63845
|
+
|
|
63846
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
63847
|
+
var slice = Array.prototype.slice;
|
|
63848
|
+
var toStr = Object.prototype.toString;
|
|
63849
|
+
var funcType = '[object Function]';
|
|
63850
|
+
|
|
63851
|
+
module.exports = function bind(that) {
|
|
63852
|
+
var target = this;
|
|
63853
|
+
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
|
63854
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
63855
|
+
}
|
|
63856
|
+
var args = slice.call(arguments, 1);
|
|
63857
|
+
|
|
63858
|
+
var bound;
|
|
63859
|
+
var binder = function () {
|
|
63860
|
+
if (this instanceof bound) {
|
|
63861
|
+
var result = target.apply(
|
|
63862
|
+
this,
|
|
63863
|
+
args.concat(slice.call(arguments))
|
|
63864
|
+
);
|
|
63865
|
+
if (Object(result) === result) {
|
|
63866
|
+
return result;
|
|
63867
|
+
}
|
|
63868
|
+
return this;
|
|
63869
|
+
} else {
|
|
63870
|
+
return target.apply(
|
|
63871
|
+
that,
|
|
63872
|
+
args.concat(slice.call(arguments))
|
|
63873
|
+
);
|
|
63874
|
+
}
|
|
63875
|
+
};
|
|
63876
|
+
|
|
63877
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
63878
|
+
var boundArgs = [];
|
|
63879
|
+
for (var i = 0; i < boundLength; i++) {
|
|
63880
|
+
boundArgs.push('$' + i);
|
|
63881
|
+
}
|
|
63882
|
+
|
|
63883
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
63884
|
+
|
|
63885
|
+
if (target.prototype) {
|
|
63886
|
+
var Empty = function Empty() {};
|
|
63887
|
+
Empty.prototype = target.prototype;
|
|
63888
|
+
bound.prototype = new Empty();
|
|
63889
|
+
Empty.prototype = null;
|
|
63890
|
+
}
|
|
63891
|
+
|
|
63892
|
+
return bound;
|
|
63893
|
+
};
|
|
63894
|
+
|
|
63895
|
+
|
|
63896
|
+
/***/ }),
|
|
63897
|
+
|
|
63898
|
+
/***/ 7019:
|
|
63899
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
63900
|
+
|
|
63901
|
+
"use strict";
|
|
63902
|
+
|
|
63903
|
+
|
|
63904
|
+
var implementation = __nccwpck_require__(2475);
|
|
63905
|
+
|
|
63906
|
+
module.exports = Function.prototype.bind || implementation;
|
|
63907
|
+
|
|
63908
|
+
|
|
63909
|
+
/***/ }),
|
|
63910
|
+
|
|
63911
|
+
/***/ 2375:
|
|
63912
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
63913
|
+
|
|
63914
|
+
"use strict";
|
|
63915
|
+
|
|
63916
|
+
|
|
63917
|
+
var undefined;
|
|
63918
|
+
|
|
63919
|
+
var $SyntaxError = SyntaxError;
|
|
63920
|
+
var $Function = Function;
|
|
63921
|
+
var $TypeError = TypeError;
|
|
63922
|
+
|
|
63923
|
+
// eslint-disable-next-line consistent-return
|
|
63924
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
63925
|
+
try {
|
|
63926
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
63927
|
+
} catch (e) {}
|
|
63928
|
+
};
|
|
63929
|
+
|
|
63930
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
63931
|
+
if ($gOPD) {
|
|
63932
|
+
try {
|
|
63933
|
+
$gOPD({}, '');
|
|
63934
|
+
} catch (e) {
|
|
63935
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
63936
|
+
}
|
|
63937
|
+
}
|
|
63938
|
+
|
|
63939
|
+
var throwTypeError = function () {
|
|
63940
|
+
throw new $TypeError();
|
|
63941
|
+
};
|
|
63942
|
+
var ThrowTypeError = $gOPD
|
|
63943
|
+
? (function () {
|
|
63944
|
+
try {
|
|
63945
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
63946
|
+
arguments.callee; // IE 8 does not throw here
|
|
63947
|
+
return throwTypeError;
|
|
63948
|
+
} catch (calleeThrows) {
|
|
63949
|
+
try {
|
|
63950
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
63951
|
+
return $gOPD(arguments, 'callee').get;
|
|
63952
|
+
} catch (gOPDthrows) {
|
|
63953
|
+
return throwTypeError;
|
|
63954
|
+
}
|
|
63955
|
+
}
|
|
63956
|
+
}())
|
|
63957
|
+
: throwTypeError;
|
|
63958
|
+
|
|
63959
|
+
var hasSymbols = __nccwpck_require__(2890)();
|
|
63960
|
+
|
|
63961
|
+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
63962
|
+
|
|
63963
|
+
var needsEval = {};
|
|
63964
|
+
|
|
63965
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
63966
|
+
|
|
63967
|
+
var INTRINSICS = {
|
|
63968
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
63969
|
+
'%Array%': Array,
|
|
63970
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
63971
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
63972
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
63973
|
+
'%AsyncFunction%': needsEval,
|
|
63974
|
+
'%AsyncGenerator%': needsEval,
|
|
63975
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
63976
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
63977
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
63978
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
63979
|
+
'%Boolean%': Boolean,
|
|
63980
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
63981
|
+
'%Date%': Date,
|
|
63982
|
+
'%decodeURI%': decodeURI,
|
|
63983
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
63984
|
+
'%encodeURI%': encodeURI,
|
|
63985
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
63986
|
+
'%Error%': Error,
|
|
63987
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
63988
|
+
'%EvalError%': EvalError,
|
|
63989
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
63990
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
63991
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
63992
|
+
'%Function%': $Function,
|
|
63993
|
+
'%GeneratorFunction%': needsEval,
|
|
63994
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
63995
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
63996
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
63997
|
+
'%isFinite%': isFinite,
|
|
63998
|
+
'%isNaN%': isNaN,
|
|
63999
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
64000
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
64001
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
64002
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
64003
|
+
'%Math%': Math,
|
|
64004
|
+
'%Number%': Number,
|
|
64005
|
+
'%Object%': Object,
|
|
64006
|
+
'%parseFloat%': parseFloat,
|
|
64007
|
+
'%parseInt%': parseInt,
|
|
64008
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
64009
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
64010
|
+
'%RangeError%': RangeError,
|
|
64011
|
+
'%ReferenceError%': ReferenceError,
|
|
64012
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
64013
|
+
'%RegExp%': RegExp,
|
|
64014
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
64015
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
64016
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
64017
|
+
'%String%': String,
|
|
64018
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
64019
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
64020
|
+
'%SyntaxError%': $SyntaxError,
|
|
64021
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
64022
|
+
'%TypedArray%': TypedArray,
|
|
64023
|
+
'%TypeError%': $TypeError,
|
|
64024
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
64025
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
64026
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
64027
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
64028
|
+
'%URIError%': URIError,
|
|
64029
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
64030
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
64031
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
64032
|
+
};
|
|
64033
|
+
|
|
64034
|
+
var doEval = function doEval(name) {
|
|
64035
|
+
var value;
|
|
64036
|
+
if (name === '%AsyncFunction%') {
|
|
64037
|
+
value = getEvalledConstructor('async function () {}');
|
|
64038
|
+
} else if (name === '%GeneratorFunction%') {
|
|
64039
|
+
value = getEvalledConstructor('function* () {}');
|
|
64040
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
64041
|
+
value = getEvalledConstructor('async function* () {}');
|
|
64042
|
+
} else if (name === '%AsyncGenerator%') {
|
|
64043
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
64044
|
+
if (fn) {
|
|
64045
|
+
value = fn.prototype;
|
|
64046
|
+
}
|
|
64047
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
64048
|
+
var gen = doEval('%AsyncGenerator%');
|
|
64049
|
+
if (gen) {
|
|
64050
|
+
value = getProto(gen.prototype);
|
|
64051
|
+
}
|
|
64052
|
+
}
|
|
64053
|
+
|
|
64054
|
+
INTRINSICS[name] = value;
|
|
64055
|
+
|
|
64056
|
+
return value;
|
|
64057
|
+
};
|
|
64058
|
+
|
|
64059
|
+
var LEGACY_ALIASES = {
|
|
64060
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
64061
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
64062
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
64063
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
64064
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
64065
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
64066
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
64067
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
64068
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
64069
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
64070
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
64071
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
64072
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
64073
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
64074
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
64075
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
64076
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
64077
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
64078
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
64079
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
64080
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
64081
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
64082
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
64083
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
64084
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
64085
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
64086
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
64087
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
64088
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
64089
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
64090
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
64091
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
64092
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
64093
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
64094
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
64095
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
64096
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
64097
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
64098
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
64099
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
64100
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
64101
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
64102
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
64103
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
64104
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
64105
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
64106
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
64107
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
64108
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
64109
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
64110
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
64111
|
+
};
|
|
64112
|
+
|
|
64113
|
+
var bind = __nccwpck_require__(7019);
|
|
64114
|
+
var hasOwn = __nccwpck_require__(1558);
|
|
64115
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
64116
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
64117
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
64118
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
64119
|
+
|
|
64120
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
64121
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
64122
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
64123
|
+
var stringToPath = function stringToPath(string) {
|
|
64124
|
+
var first = $strSlice(string, 0, 1);
|
|
64125
|
+
var last = $strSlice(string, -1);
|
|
64126
|
+
if (first === '%' && last !== '%') {
|
|
64127
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
64128
|
+
} else if (last === '%' && first !== '%') {
|
|
64129
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
64130
|
+
}
|
|
64131
|
+
var result = [];
|
|
64132
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
64133
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
64134
|
+
});
|
|
64135
|
+
return result;
|
|
64136
|
+
};
|
|
64137
|
+
/* end adaptation */
|
|
64138
|
+
|
|
64139
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
64140
|
+
var intrinsicName = name;
|
|
64141
|
+
var alias;
|
|
64142
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
64143
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
64144
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
64145
|
+
}
|
|
64146
|
+
|
|
64147
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
64148
|
+
var value = INTRINSICS[intrinsicName];
|
|
64149
|
+
if (value === needsEval) {
|
|
64150
|
+
value = doEval(intrinsicName);
|
|
64151
|
+
}
|
|
64152
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
64153
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
64154
|
+
}
|
|
64155
|
+
|
|
64156
|
+
return {
|
|
64157
|
+
alias: alias,
|
|
64158
|
+
name: intrinsicName,
|
|
64159
|
+
value: value
|
|
64160
|
+
};
|
|
64161
|
+
}
|
|
64162
|
+
|
|
64163
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
64164
|
+
};
|
|
64165
|
+
|
|
64166
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
64167
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
64168
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
64169
|
+
}
|
|
64170
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
64171
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
64172
|
+
}
|
|
64173
|
+
|
|
64174
|
+
var parts = stringToPath(name);
|
|
64175
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
64176
|
+
|
|
64177
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
64178
|
+
var intrinsicRealName = intrinsic.name;
|
|
64179
|
+
var value = intrinsic.value;
|
|
64180
|
+
var skipFurtherCaching = false;
|
|
64181
|
+
|
|
64182
|
+
var alias = intrinsic.alias;
|
|
64183
|
+
if (alias) {
|
|
64184
|
+
intrinsicBaseName = alias[0];
|
|
64185
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
64186
|
+
}
|
|
64187
|
+
|
|
64188
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
64189
|
+
var part = parts[i];
|
|
64190
|
+
var first = $strSlice(part, 0, 1);
|
|
64191
|
+
var last = $strSlice(part, -1);
|
|
64192
|
+
if (
|
|
64193
|
+
(
|
|
64194
|
+
(first === '"' || first === "'" || first === '`')
|
|
64195
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
64196
|
+
)
|
|
64197
|
+
&& first !== last
|
|
64198
|
+
) {
|
|
64199
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
64200
|
+
}
|
|
64201
|
+
if (part === 'constructor' || !isOwn) {
|
|
64202
|
+
skipFurtherCaching = true;
|
|
64203
|
+
}
|
|
64204
|
+
|
|
64205
|
+
intrinsicBaseName += '.' + part;
|
|
64206
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
64207
|
+
|
|
64208
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
64209
|
+
value = INTRINSICS[intrinsicRealName];
|
|
64210
|
+
} else if (value != null) {
|
|
64211
|
+
if (!(part in value)) {
|
|
64212
|
+
if (!allowMissing) {
|
|
64213
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
64214
|
+
}
|
|
64215
|
+
return void undefined;
|
|
64216
|
+
}
|
|
64217
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
64218
|
+
var desc = $gOPD(value, part);
|
|
64219
|
+
isOwn = !!desc;
|
|
64220
|
+
|
|
64221
|
+
// By convention, when a data property is converted to an accessor
|
|
64222
|
+
// property to emulate a data property that does not suffer from
|
|
64223
|
+
// the override mistake, that accessor's getter is marked with
|
|
64224
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
64225
|
+
// uphold the illusion by pretending to see that original data
|
|
64226
|
+
// property, i.e., returning the value rather than the getter
|
|
64227
|
+
// itself.
|
|
64228
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
64229
|
+
value = desc.get;
|
|
64230
|
+
} else {
|
|
64231
|
+
value = value[part];
|
|
64232
|
+
}
|
|
64233
|
+
} else {
|
|
64234
|
+
isOwn = hasOwn(value, part);
|
|
64235
|
+
value = value[part];
|
|
64236
|
+
}
|
|
64237
|
+
|
|
64238
|
+
if (isOwn && !skipFurtherCaching) {
|
|
64239
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
64240
|
+
}
|
|
64241
|
+
}
|
|
64242
|
+
}
|
|
64243
|
+
return value;
|
|
64244
|
+
};
|
|
64245
|
+
|
|
64246
|
+
|
|
64247
|
+
/***/ }),
|
|
64248
|
+
|
|
64249
|
+
/***/ 2890:
|
|
64250
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
64251
|
+
|
|
64252
|
+
"use strict";
|
|
64253
|
+
|
|
64254
|
+
|
|
64255
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
64256
|
+
var hasSymbolSham = __nccwpck_require__(4862);
|
|
64257
|
+
|
|
64258
|
+
module.exports = function hasNativeSymbols() {
|
|
64259
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
64260
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
64261
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
64262
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
64263
|
+
|
|
64264
|
+
return hasSymbolSham();
|
|
64265
|
+
};
|
|
64266
|
+
|
|
64267
|
+
|
|
64268
|
+
/***/ }),
|
|
64269
|
+
|
|
64270
|
+
/***/ 4862:
|
|
64271
|
+
/***/ ((module) => {
|
|
64272
|
+
|
|
64273
|
+
"use strict";
|
|
64274
|
+
|
|
64275
|
+
|
|
64276
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
64277
|
+
module.exports = function hasSymbols() {
|
|
64278
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
64279
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
64280
|
+
|
|
64281
|
+
var obj = {};
|
|
64282
|
+
var sym = Symbol('test');
|
|
64283
|
+
var symObj = Object(sym);
|
|
64284
|
+
if (typeof sym === 'string') { return false; }
|
|
64285
|
+
|
|
64286
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
64287
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
64288
|
+
|
|
64289
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
64290
|
+
// if (sym instanceof Symbol) { return false; }
|
|
64291
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
64292
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
64293
|
+
|
|
64294
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
64295
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
64296
|
+
|
|
64297
|
+
var symVal = 42;
|
|
64298
|
+
obj[sym] = symVal;
|
|
64299
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
64300
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
64301
|
+
|
|
64302
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
64303
|
+
|
|
64304
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
64305
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
64306
|
+
|
|
64307
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
64308
|
+
|
|
64309
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
64310
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
64311
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
64312
|
+
}
|
|
64313
|
+
|
|
64314
|
+
return true;
|
|
64315
|
+
};
|
|
64316
|
+
|
|
64317
|
+
|
|
63753
64318
|
/***/ }),
|
|
63754
64319
|
|
|
63755
64320
|
/***/ 8819:
|
|
@@ -67489,7 +68054,7 @@ if (!global.__vorpal.ui.exists) {
|
|
|
67489
68054
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
|
|
67490
68055
|
|
|
67491
68056
|
var _ = __nccwpck_require__(3255);
|
|
67492
|
-
var minimist = __nccwpck_require__(
|
|
68057
|
+
var minimist = __nccwpck_require__(5982);
|
|
67493
68058
|
var strip = __nccwpck_require__(7668);
|
|
67494
68059
|
|
|
67495
68060
|
var util = {
|
|
@@ -68022,7 +68587,7 @@ var VorpalUtil = __nccwpck_require__(9821);
|
|
|
68022
68587
|
var ui = __nccwpck_require__(2155);
|
|
68023
68588
|
var Session = __nccwpck_require__(3120);
|
|
68024
68589
|
var intercept = __nccwpck_require__(5447);
|
|
68025
|
-
var minimist = __nccwpck_require__(
|
|
68590
|
+
var minimist = __nccwpck_require__(5982);
|
|
68026
68591
|
var commons = __nccwpck_require__(8972);
|
|
68027
68592
|
var chalk = __nccwpck_require__(8173);
|
|
68028
68593
|
var os = __nccwpck_require__(2037);
|
|
@@ -69451,7 +70016,7 @@ Object.defineProperty(module, 'exports', {
|
|
|
69451
70016
|
|
|
69452
70017
|
"use strict";
|
|
69453
70018
|
|
|
69454
|
-
var escapeStringRegexp = __nccwpck_require__(
|
|
70019
|
+
var escapeStringRegexp = __nccwpck_require__(8082);
|
|
69455
70020
|
var ansiStyles = __nccwpck_require__(1982);
|
|
69456
70021
|
var stripAnsi = __nccwpck_require__(7668);
|
|
69457
70022
|
var hasAnsi = __nccwpck_require__(1098);
|
|
@@ -69568,6 +70133,25 @@ module.exports.stripColor = stripAnsi;
|
|
|
69568
70133
|
module.exports.supportsColor = supportsColor;
|
|
69569
70134
|
|
|
69570
70135
|
|
|
70136
|
+
/***/ }),
|
|
70137
|
+
|
|
70138
|
+
/***/ 8082:
|
|
70139
|
+
/***/ ((module) => {
|
|
70140
|
+
|
|
70141
|
+
"use strict";
|
|
70142
|
+
|
|
70143
|
+
|
|
70144
|
+
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
70145
|
+
|
|
70146
|
+
module.exports = function (str) {
|
|
70147
|
+
if (typeof str !== 'string') {
|
|
70148
|
+
throw new TypeError('Expected a string');
|
|
70149
|
+
}
|
|
70150
|
+
|
|
70151
|
+
return str.replace(matchOperatorsRe, '\\$&');
|
|
70152
|
+
};
|
|
70153
|
+
|
|
70154
|
+
|
|
69571
70155
|
/***/ }),
|
|
69572
70156
|
|
|
69573
70157
|
/***/ 6666:
|
|
@@ -69660,258 +70244,6 @@ module.exports.stderr = main(process.stderr);
|
|
|
69660
70244
|
module.exports.create = main;
|
|
69661
70245
|
|
|
69662
70246
|
|
|
69663
|
-
/***/ }),
|
|
69664
|
-
|
|
69665
|
-
/***/ 1675:
|
|
69666
|
-
/***/ ((module) => {
|
|
69667
|
-
|
|
69668
|
-
module.exports = function (args, opts) {
|
|
69669
|
-
if (!opts) opts = {};
|
|
69670
|
-
|
|
69671
|
-
var flags = { bools : {}, strings : {}, unknownFn: null };
|
|
69672
|
-
|
|
69673
|
-
if (typeof opts['unknown'] === 'function') {
|
|
69674
|
-
flags.unknownFn = opts['unknown'];
|
|
69675
|
-
}
|
|
69676
|
-
|
|
69677
|
-
if (typeof opts['boolean'] === 'boolean' && opts['boolean']) {
|
|
69678
|
-
flags.allBools = true;
|
|
69679
|
-
} else {
|
|
69680
|
-
[].concat(opts['boolean']).filter(Boolean).forEach(function (key) {
|
|
69681
|
-
flags.bools[key] = true;
|
|
69682
|
-
});
|
|
69683
|
-
}
|
|
69684
|
-
|
|
69685
|
-
var aliases = {};
|
|
69686
|
-
Object.keys(opts.alias || {}).forEach(function (key) {
|
|
69687
|
-
aliases[key] = [].concat(opts.alias[key]);
|
|
69688
|
-
aliases[key].forEach(function (x) {
|
|
69689
|
-
aliases[x] = [key].concat(aliases[key].filter(function (y) {
|
|
69690
|
-
return x !== y;
|
|
69691
|
-
}));
|
|
69692
|
-
});
|
|
69693
|
-
});
|
|
69694
|
-
|
|
69695
|
-
[].concat(opts.string).filter(Boolean).forEach(function (key) {
|
|
69696
|
-
flags.strings[key] = true;
|
|
69697
|
-
if (aliases[key]) {
|
|
69698
|
-
flags.strings[aliases[key]] = true;
|
|
69699
|
-
}
|
|
69700
|
-
});
|
|
69701
|
-
|
|
69702
|
-
var defaults = opts['default'] || {};
|
|
69703
|
-
|
|
69704
|
-
var argv = { _ : [] };
|
|
69705
|
-
Object.keys(flags.bools).forEach(function (key) {
|
|
69706
|
-
setArg(key, defaults[key] === undefined ? false : defaults[key]);
|
|
69707
|
-
});
|
|
69708
|
-
|
|
69709
|
-
var notFlags = [];
|
|
69710
|
-
|
|
69711
|
-
if (args.indexOf('--') !== -1) {
|
|
69712
|
-
notFlags = args.slice(args.indexOf('--')+1);
|
|
69713
|
-
args = args.slice(0, args.indexOf('--'));
|
|
69714
|
-
}
|
|
69715
|
-
|
|
69716
|
-
function argDefined(key, arg) {
|
|
69717
|
-
return (flags.allBools && /^--[^=]+$/.test(arg)) ||
|
|
69718
|
-
flags.strings[key] || flags.bools[key] || aliases[key];
|
|
69719
|
-
}
|
|
69720
|
-
|
|
69721
|
-
function setArg (key, val, arg) {
|
|
69722
|
-
if (arg && flags.unknownFn && !argDefined(key, arg)) {
|
|
69723
|
-
if (flags.unknownFn(arg) === false) return;
|
|
69724
|
-
}
|
|
69725
|
-
|
|
69726
|
-
var value = !flags.strings[key] && isNumber(val)
|
|
69727
|
-
? Number(val) : val
|
|
69728
|
-
;
|
|
69729
|
-
setKey(argv, key.split('.'), value);
|
|
69730
|
-
|
|
69731
|
-
(aliases[key] || []).forEach(function (x) {
|
|
69732
|
-
setKey(argv, x.split('.'), value);
|
|
69733
|
-
});
|
|
69734
|
-
}
|
|
69735
|
-
|
|
69736
|
-
function setKey (obj, keys, value) {
|
|
69737
|
-
var o = obj;
|
|
69738
|
-
for (var i = 0; i < keys.length-1; i++) {
|
|
69739
|
-
var key = keys[i];
|
|
69740
|
-
if (key === '__proto__') return;
|
|
69741
|
-
if (o[key] === undefined) o[key] = {};
|
|
69742
|
-
if (o[key] === Object.prototype || o[key] === Number.prototype
|
|
69743
|
-
|| o[key] === String.prototype) o[key] = {};
|
|
69744
|
-
if (o[key] === Array.prototype) o[key] = [];
|
|
69745
|
-
o = o[key];
|
|
69746
|
-
}
|
|
69747
|
-
|
|
69748
|
-
var key = keys[keys.length - 1];
|
|
69749
|
-
if (key === '__proto__') return;
|
|
69750
|
-
if (o === Object.prototype || o === Number.prototype
|
|
69751
|
-
|| o === String.prototype) o = {};
|
|
69752
|
-
if (o === Array.prototype) o = [];
|
|
69753
|
-
if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') {
|
|
69754
|
-
o[key] = value;
|
|
69755
|
-
}
|
|
69756
|
-
else if (Array.isArray(o[key])) {
|
|
69757
|
-
o[key].push(value);
|
|
69758
|
-
}
|
|
69759
|
-
else {
|
|
69760
|
-
o[key] = [ o[key], value ];
|
|
69761
|
-
}
|
|
69762
|
-
}
|
|
69763
|
-
|
|
69764
|
-
function aliasIsBoolean(key) {
|
|
69765
|
-
return aliases[key].some(function (x) {
|
|
69766
|
-
return flags.bools[x];
|
|
69767
|
-
});
|
|
69768
|
-
}
|
|
69769
|
-
|
|
69770
|
-
for (var i = 0; i < args.length; i++) {
|
|
69771
|
-
var arg = args[i];
|
|
69772
|
-
|
|
69773
|
-
if (/^--.+=/.test(arg)) {
|
|
69774
|
-
// Using [\s\S] instead of . because js doesn't support the
|
|
69775
|
-
// 'dotall' regex modifier. See:
|
|
69776
|
-
// http://stackoverflow.com/a/1068308/13216
|
|
69777
|
-
var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
|
|
69778
|
-
var key = m[1];
|
|
69779
|
-
var value = m[2];
|
|
69780
|
-
if (flags.bools[key]) {
|
|
69781
|
-
value = value !== 'false';
|
|
69782
|
-
}
|
|
69783
|
-
setArg(key, value, arg);
|
|
69784
|
-
}
|
|
69785
|
-
else if (/^--no-.+/.test(arg)) {
|
|
69786
|
-
var key = arg.match(/^--no-(.+)/)[1];
|
|
69787
|
-
setArg(key, false, arg);
|
|
69788
|
-
}
|
|
69789
|
-
else if (/^--.+/.test(arg)) {
|
|
69790
|
-
var key = arg.match(/^--(.+)/)[1];
|
|
69791
|
-
var next = args[i + 1];
|
|
69792
|
-
if (next !== undefined && !/^-/.test(next)
|
|
69793
|
-
&& !flags.bools[key]
|
|
69794
|
-
&& !flags.allBools
|
|
69795
|
-
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
69796
|
-
setArg(key, next, arg);
|
|
69797
|
-
i++;
|
|
69798
|
-
}
|
|
69799
|
-
else if (/^(true|false)$/.test(next)) {
|
|
69800
|
-
setArg(key, next === 'true', arg);
|
|
69801
|
-
i++;
|
|
69802
|
-
}
|
|
69803
|
-
else {
|
|
69804
|
-
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
69805
|
-
}
|
|
69806
|
-
}
|
|
69807
|
-
else if (/^-[^-]+/.test(arg)) {
|
|
69808
|
-
var letters = arg.slice(1,-1).split('');
|
|
69809
|
-
|
|
69810
|
-
var broken = false;
|
|
69811
|
-
for (var j = 0; j < letters.length; j++) {
|
|
69812
|
-
var next = arg.slice(j+2);
|
|
69813
|
-
|
|
69814
|
-
if (next === '-') {
|
|
69815
|
-
setArg(letters[j], next, arg)
|
|
69816
|
-
continue;
|
|
69817
|
-
}
|
|
69818
|
-
|
|
69819
|
-
if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
|
|
69820
|
-
setArg(letters[j], next.split('=')[1], arg);
|
|
69821
|
-
broken = true;
|
|
69822
|
-
break;
|
|
69823
|
-
}
|
|
69824
|
-
|
|
69825
|
-
if (/[A-Za-z]/.test(letters[j])
|
|
69826
|
-
&& /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
|
|
69827
|
-
setArg(letters[j], next, arg);
|
|
69828
|
-
broken = true;
|
|
69829
|
-
break;
|
|
69830
|
-
}
|
|
69831
|
-
|
|
69832
|
-
if (letters[j+1] && letters[j+1].match(/\W/)) {
|
|
69833
|
-
setArg(letters[j], arg.slice(j+2), arg);
|
|
69834
|
-
broken = true;
|
|
69835
|
-
break;
|
|
69836
|
-
}
|
|
69837
|
-
else {
|
|
69838
|
-
setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
|
|
69839
|
-
}
|
|
69840
|
-
}
|
|
69841
|
-
|
|
69842
|
-
var key = arg.slice(-1)[0];
|
|
69843
|
-
if (!broken && key !== '-') {
|
|
69844
|
-
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
|
|
69845
|
-
&& !flags.bools[key]
|
|
69846
|
-
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
69847
|
-
setArg(key, args[i+1], arg);
|
|
69848
|
-
i++;
|
|
69849
|
-
}
|
|
69850
|
-
else if (args[i+1] && /^(true|false)$/.test(args[i+1])) {
|
|
69851
|
-
setArg(key, args[i+1] === 'true', arg);
|
|
69852
|
-
i++;
|
|
69853
|
-
}
|
|
69854
|
-
else {
|
|
69855
|
-
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
69856
|
-
}
|
|
69857
|
-
}
|
|
69858
|
-
}
|
|
69859
|
-
else {
|
|
69860
|
-
if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
|
|
69861
|
-
argv._.push(
|
|
69862
|
-
flags.strings['_'] || !isNumber(arg) ? arg : Number(arg)
|
|
69863
|
-
);
|
|
69864
|
-
}
|
|
69865
|
-
if (opts.stopEarly) {
|
|
69866
|
-
argv._.push.apply(argv._, args.slice(i + 1));
|
|
69867
|
-
break;
|
|
69868
|
-
}
|
|
69869
|
-
}
|
|
69870
|
-
}
|
|
69871
|
-
|
|
69872
|
-
Object.keys(defaults).forEach(function (key) {
|
|
69873
|
-
if (!hasKey(argv, key.split('.'))) {
|
|
69874
|
-
setKey(argv, key.split('.'), defaults[key]);
|
|
69875
|
-
|
|
69876
|
-
(aliases[key] || []).forEach(function (x) {
|
|
69877
|
-
setKey(argv, x.split('.'), defaults[key]);
|
|
69878
|
-
});
|
|
69879
|
-
}
|
|
69880
|
-
});
|
|
69881
|
-
|
|
69882
|
-
if (opts['--']) {
|
|
69883
|
-
argv['--'] = new Array();
|
|
69884
|
-
notFlags.forEach(function(key) {
|
|
69885
|
-
argv['--'].push(key);
|
|
69886
|
-
});
|
|
69887
|
-
}
|
|
69888
|
-
else {
|
|
69889
|
-
notFlags.forEach(function(key) {
|
|
69890
|
-
argv._.push(key);
|
|
69891
|
-
});
|
|
69892
|
-
}
|
|
69893
|
-
|
|
69894
|
-
return argv;
|
|
69895
|
-
};
|
|
69896
|
-
|
|
69897
|
-
function hasKey (obj, keys) {
|
|
69898
|
-
var o = obj;
|
|
69899
|
-
keys.slice(0,-1).forEach(function (key) {
|
|
69900
|
-
o = (o[key] || {});
|
|
69901
|
-
});
|
|
69902
|
-
|
|
69903
|
-
var key = keys[keys.length - 1];
|
|
69904
|
-
return key in o;
|
|
69905
|
-
}
|
|
69906
|
-
|
|
69907
|
-
function isNumber (x) {
|
|
69908
|
-
if (typeof x === 'number') return true;
|
|
69909
|
-
if (/^0x[0-9a-f]+$/i.test(x)) return true;
|
|
69910
|
-
return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
|
|
69911
|
-
}
|
|
69912
|
-
|
|
69913
|
-
|
|
69914
|
-
|
|
69915
70247
|
/***/ }),
|
|
69916
70248
|
|
|
69917
70249
|
/***/ 1389:
|
|
@@ -71419,7 +71751,7 @@ var __webpack_exports__ = {};
|
|
|
71419
71751
|
var exports = __webpack_exports__;
|
|
71420
71752
|
|
|
71421
71753
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
71422
|
-
|
|
71754
|
+
const catci_1 = __nccwpck_require__(1123);
|
|
71423
71755
|
(0, catci_1.runCatCi)();
|
|
71424
71756
|
//# sourceMappingURL=catci.js.map
|
|
71425
71757
|
})();
|