node-red-contrib-tak-registration 0.6.0 → 0.7.0
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/README.md +21 -3
- package/icons/tak.png +0 -0
- package/node_modules/@ampproject/remapping/LICENSE +202 -0
- package/node_modules/@ampproject/remapping/README.md +218 -0
- package/node_modules/@ampproject/remapping/dist/remapping.mjs +191 -0
- package/node_modules/@ampproject/remapping/dist/remapping.mjs.map +1 -0
- package/node_modules/@ampproject/remapping/dist/remapping.umd.js +196 -0
- package/node_modules/@ampproject/remapping/dist/remapping.umd.js.map +1 -0
- package/node_modules/@ampproject/remapping/dist/types/build-source-map-tree.d.ts +14 -0
- package/node_modules/@ampproject/remapping/dist/types/remapping.d.ts +19 -0
- package/node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts +42 -0
- package/node_modules/@ampproject/remapping/dist/types/source-map.d.ts +17 -0
- package/node_modules/@ampproject/remapping/dist/types/types.d.ts +14 -0
- package/node_modules/@ampproject/remapping/package.json +75 -0
- package/node_modules/@babel/code-frame/LICENSE +22 -0
- package/node_modules/@babel/code-frame/README.md +19 -0
- package/node_modules/@babel/code-frame/lib/index.js +142 -0
- package/node_modules/@babel/code-frame/lib/index.js.map +1 -0
- package/node_modules/@babel/code-frame/package.json +28 -0
- package/node_modules/@babel/compat-data/LICENSE +22 -0
- package/node_modules/@babel/compat-data/README.md +19 -0
- package/node_modules/@babel/compat-data/corejs2-built-ins.js +2 -0
- package/node_modules/@babel/compat-data/corejs3-shipped-proposals.js +2 -0
- package/node_modules/@babel/compat-data/data/corejs2-built-ins.json +2081 -0
- package/node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json +5 -0
- package/node_modules/@babel/compat-data/data/native-modules.json +18 -0
- package/node_modules/@babel/compat-data/data/overlapping-plugins.json +25 -0
- package/node_modules/@babel/compat-data/data/plugin-bugfixes.json +201 -0
- package/node_modules/@babel/compat-data/data/plugins.json +763 -0
- package/node_modules/@babel/compat-data/native-modules.js +1 -0
- package/node_modules/@babel/compat-data/overlapping-plugins.js +1 -0
- package/node_modules/@babel/compat-data/package.json +40 -0
- package/node_modules/@babel/compat-data/plugin-bugfixes.js +1 -0
- package/node_modules/@babel/compat-data/plugins.js +1 -0
- package/node_modules/@babel/core/LICENSE +22 -0
- package/node_modules/@babel/core/README.md +19 -0
- package/node_modules/@babel/core/cjs-proxy.cjs +51 -0
- package/node_modules/@babel/core/lib/config/cache-contexts.js +3 -0
- package/node_modules/@babel/core/lib/config/cache-contexts.js.map +1 -0
- package/node_modules/@babel/core/lib/config/caching.js +261 -0
- package/node_modules/@babel/core/lib/config/caching.js.map +1 -0
- package/node_modules/@babel/core/lib/config/config-chain.js +467 -0
- package/node_modules/@babel/core/lib/config/config-chain.js.map +1 -0
- package/node_modules/@babel/core/lib/config/config-descriptors.js +189 -0
- package/node_modules/@babel/core/lib/config/config-descriptors.js.map +1 -0
- package/node_modules/@babel/core/lib/config/files/configuration.js +284 -0
- package/node_modules/@babel/core/lib/config/files/configuration.js.map +1 -0
- package/node_modules/@babel/core/lib/config/files/import-meta-resolve.js +17 -0
- package/node_modules/@babel/core/lib/config/files/import-meta-resolve.js.map +1 -0
- package/node_modules/@babel/core/lib/config/files/import.cjs +6 -0
- package/node_modules/@babel/core/lib/config/files/import.cjs.map +1 -0
- package/node_modules/@babel/core/lib/config/files/index-browser.js +59 -0
- package/node_modules/@babel/core/lib/config/files/index-browser.js.map +1 -0
- package/node_modules/@babel/core/lib/config/files/index.js +78 -0
- package/node_modules/@babel/core/lib/config/files/index.js.map +1 -0
- package/node_modules/@babel/core/lib/config/files/module-types.js +155 -0
- package/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -0
- package/node_modules/@babel/core/lib/config/files/package.js +61 -0
- package/node_modules/@babel/core/lib/config/files/package.js.map +1 -0
- package/node_modules/@babel/core/lib/config/files/plugins.js +206 -0
- package/node_modules/@babel/core/lib/config/files/plugins.js.map +1 -0
- package/node_modules/@babel/core/lib/config/files/types.js +3 -0
- package/node_modules/@babel/core/lib/config/files/types.js.map +1 -0
- package/node_modules/@babel/core/lib/config/files/utils.js +36 -0
- package/node_modules/@babel/core/lib/config/files/utils.js.map +1 -0
- package/node_modules/@babel/core/lib/config/full.js +311 -0
- package/node_modules/@babel/core/lib/config/full.js.map +1 -0
- package/node_modules/@babel/core/lib/config/helpers/config-api.js +85 -0
- package/node_modules/@babel/core/lib/config/helpers/config-api.js.map +1 -0
- package/node_modules/@babel/core/lib/config/helpers/deep-array.js +23 -0
- package/node_modules/@babel/core/lib/config/helpers/deep-array.js.map +1 -0
- package/node_modules/@babel/core/lib/config/helpers/environment.js +12 -0
- package/node_modules/@babel/core/lib/config/helpers/environment.js.map +1 -0
- package/node_modules/@babel/core/lib/config/index.js +73 -0
- package/node_modules/@babel/core/lib/config/index.js.map +1 -0
- package/node_modules/@babel/core/lib/config/item.js +67 -0
- package/node_modules/@babel/core/lib/config/item.js.map +1 -0
- package/node_modules/@babel/core/lib/config/partial.js +166 -0
- package/node_modules/@babel/core/lib/config/partial.js.map +1 -0
- package/node_modules/@babel/core/lib/config/pattern-to-regex.js +38 -0
- package/node_modules/@babel/core/lib/config/pattern-to-regex.js.map +1 -0
- package/node_modules/@babel/core/lib/config/plugin.js +33 -0
- package/node_modules/@babel/core/lib/config/plugin.js.map +1 -0
- package/node_modules/@babel/core/lib/config/printer.js +114 -0
- package/node_modules/@babel/core/lib/config/printer.js.map +1 -0
- package/node_modules/@babel/core/lib/config/resolve-targets-browser.js +41 -0
- package/node_modules/@babel/core/lib/config/resolve-targets-browser.js.map +1 -0
- package/node_modules/@babel/core/lib/config/resolve-targets.js +61 -0
- package/node_modules/@babel/core/lib/config/resolve-targets.js.map +1 -0
- package/node_modules/@babel/core/lib/config/util.js +31 -0
- package/node_modules/@babel/core/lib/config/util.js.map +1 -0
- package/node_modules/@babel/core/lib/config/validation/option-assertions.js +277 -0
- package/node_modules/@babel/core/lib/config/validation/option-assertions.js.map +1 -0
- package/node_modules/@babel/core/lib/config/validation/options.js +193 -0
- package/node_modules/@babel/core/lib/config/validation/options.js.map +1 -0
- package/node_modules/@babel/core/lib/config/validation/plugins.js +67 -0
- package/node_modules/@babel/core/lib/config/validation/plugins.js.map +1 -0
- package/node_modules/@babel/core/lib/config/validation/removed.js +69 -0
- package/node_modules/@babel/core/lib/config/validation/removed.js.map +1 -0
- package/node_modules/@babel/core/lib/errors/config-error.js +18 -0
- package/node_modules/@babel/core/lib/errors/config-error.js.map +1 -0
- package/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js +98 -0
- package/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js.map +1 -0
- package/node_modules/@babel/core/lib/gensync-utils/async.js +93 -0
- package/node_modules/@babel/core/lib/gensync-utils/async.js.map +1 -0
- package/node_modules/@babel/core/lib/gensync-utils/fs.js +33 -0
- package/node_modules/@babel/core/lib/gensync-utils/fs.js.map +1 -0
- package/node_modules/@babel/core/lib/gensync-utils/functional.js +33 -0
- package/node_modules/@babel/core/lib/gensync-utils/functional.js.map +1 -0
- package/node_modules/@babel/core/lib/index.js +245 -0
- package/node_modules/@babel/core/lib/index.js.map +1 -0
- package/node_modules/@babel/core/lib/parse.js +48 -0
- package/node_modules/@babel/core/lib/parse.js.map +1 -0
- package/node_modules/@babel/core/lib/parser/index.js +79 -0
- package/node_modules/@babel/core/lib/parser/index.js.map +1 -0
- package/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js +329 -0
- package/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js.map +1 -0
- package/node_modules/@babel/core/lib/tools/build-external-helpers.js +143 -0
- package/node_modules/@babel/core/lib/tools/build-external-helpers.js.map +1 -0
- package/node_modules/@babel/core/lib/transform-ast.js +51 -0
- package/node_modules/@babel/core/lib/transform-ast.js.map +1 -0
- package/node_modules/@babel/core/lib/transform-file-browser.js +24 -0
- package/node_modules/@babel/core/lib/transform-file-browser.js.map +1 -0
- package/node_modules/@babel/core/lib/transform-file.js +40 -0
- package/node_modules/@babel/core/lib/transform-file.js.map +1 -0
- package/node_modules/@babel/core/lib/transform.js +50 -0
- package/node_modules/@babel/core/lib/transform.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js +77 -0
- package/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/file/file.js +211 -0
- package/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/file/generate.js +84 -0
- package/node_modules/@babel/core/lib/transformation/file/generate.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/file/merge-map.js +37 -0
- package/node_modules/@babel/core/lib/transformation/file/merge-map.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/index.js +99 -0
- package/node_modules/@babel/core/lib/transformation/index.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/normalize-file.js +127 -0
- package/node_modules/@babel/core/lib/transformation/normalize-file.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/normalize-opts.js +59 -0
- package/node_modules/@babel/core/lib/transformation/normalize-opts.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/plugin-pass.js +48 -0
- package/node_modules/@babel/core/lib/transformation/plugin-pass.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/util/clone-deep.js +36 -0
- package/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map +1 -0
- package/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +1012 -0
- package/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map +1 -0
- package/node_modules/@babel/core/package.json +82 -0
- package/node_modules/@babel/core/src/config/files/index-browser.ts +109 -0
- package/node_modules/@babel/core/src/config/files/index.ts +29 -0
- package/node_modules/@babel/core/src/config/resolve-targets-browser.ts +40 -0
- package/node_modules/@babel/core/src/config/resolve-targets.ts +56 -0
- package/node_modules/@babel/core/src/transform-file-browser.ts +31 -0
- package/node_modules/@babel/core/src/transform-file.ts +55 -0
- package/node_modules/@babel/generator/LICENSE +22 -0
- package/node_modules/@babel/generator/README.md +19 -0
- package/node_modules/@babel/generator/lib/buffer.js +307 -0
- package/node_modules/@babel/generator/lib/buffer.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/base.js +92 -0
- package/node_modules/@babel/generator/lib/generators/base.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/classes.js +177 -0
- package/node_modules/@babel/generator/lib/generators/classes.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/expressions.js +309 -0
- package/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/flow.js +668 -0
- package/node_modules/@babel/generator/lib/generators/flow.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/index.js +128 -0
- package/node_modules/@babel/generator/lib/generators/index.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/jsx.js +123 -0
- package/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/methods.js +173 -0
- package/node_modules/@babel/generator/lib/generators/methods.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/modules.js +254 -0
- package/node_modules/@babel/generator/lib/generators/modules.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/statements.js +277 -0
- package/node_modules/@babel/generator/lib/generators/statements.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/template-literals.js +30 -0
- package/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/types.js +220 -0
- package/node_modules/@babel/generator/lib/generators/types.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/typescript.js +694 -0
- package/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -0
- package/node_modules/@babel/generator/lib/index.js +94 -0
- package/node_modules/@babel/generator/lib/index.js.map +1 -0
- package/node_modules/@babel/generator/lib/node/index.js +78 -0
- package/node_modules/@babel/generator/lib/node/index.js.map +1 -0
- package/node_modules/@babel/generator/lib/node/parentheses.js +305 -0
- package/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -0
- package/node_modules/@babel/generator/lib/node/whitespace.js +146 -0
- package/node_modules/@babel/generator/lib/node/whitespace.js.map +1 -0
- package/node_modules/@babel/generator/lib/printer.js +651 -0
- package/node_modules/@babel/generator/lib/printer.js.map +1 -0
- package/node_modules/@babel/generator/lib/source-map.js +85 -0
- package/node_modules/@babel/generator/lib/source-map.js.map +1 -0
- package/node_modules/@babel/generator/package.json +38 -0
- package/node_modules/@babel/helper-compilation-targets/LICENSE +22 -0
- package/node_modules/@babel/helper-compilation-targets/README.md +19 -0
- package/node_modules/@babel/helper-compilation-targets/lib/debug.js +28 -0
- package/node_modules/@babel/helper-compilation-targets/lib/debug.js.map +1 -0
- package/node_modules/@babel/helper-compilation-targets/lib/filter-items.js +67 -0
- package/node_modules/@babel/helper-compilation-targets/lib/filter-items.js.map +1 -0
- package/node_modules/@babel/helper-compilation-targets/lib/index.js +224 -0
- package/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-compilation-targets/lib/options.js +25 -0
- package/node_modules/@babel/helper-compilation-targets/lib/options.js.map +1 -0
- package/node_modules/@babel/helper-compilation-targets/lib/pretty.js +40 -0
- package/node_modules/@babel/helper-compilation-targets/lib/pretty.js.map +1 -0
- package/node_modules/@babel/helper-compilation-targets/lib/targets.js +30 -0
- package/node_modules/@babel/helper-compilation-targets/lib/targets.js.map +1 -0
- package/node_modules/@babel/helper-compilation-targets/lib/utils.js +58 -0
- package/node_modules/@babel/helper-compilation-targets/lib/utils.js.map +1 -0
- package/node_modules/@babel/helper-compilation-targets/package.json +44 -0
- package/node_modules/@babel/helper-environment-visitor/LICENSE +22 -0
- package/node_modules/@babel/helper-environment-visitor/README.md +19 -0
- package/node_modules/@babel/helper-environment-visitor/lib/index.js +56 -0
- package/node_modules/@babel/helper-environment-visitor/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-environment-visitor/package.json +29 -0
- package/node_modules/@babel/helper-function-name/LICENSE +22 -0
- package/node_modules/@babel/helper-function-name/README.md +19 -0
- package/node_modules/@babel/helper-function-name/lib/index.js +170 -0
- package/node_modules/@babel/helper-function-name/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-function-name/package.json +25 -0
- package/node_modules/@babel/helper-hoist-variables/LICENSE +22 -0
- package/node_modules/@babel/helper-hoist-variables/README.md +19 -0
- package/node_modules/@babel/helper-hoist-variables/lib/index.js +50 -0
- package/node_modules/@babel/helper-hoist-variables/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-hoist-variables/package.json +28 -0
- package/node_modules/@babel/helper-module-imports/LICENSE +22 -0
- package/node_modules/@babel/helper-module-imports/README.md +19 -0
- package/node_modules/@babel/helper-module-imports/lib/import-builder.js +122 -0
- package/node_modules/@babel/helper-module-imports/lib/import-builder.js.map +1 -0
- package/node_modules/@babel/helper-module-imports/lib/import-injector.js +240 -0
- package/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +1 -0
- package/node_modules/@babel/helper-module-imports/lib/index.js +37 -0
- package/node_modules/@babel/helper-module-imports/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-module-imports/lib/is-module.js +11 -0
- package/node_modules/@babel/helper-module-imports/lib/is-module.js.map +1 -0
- package/node_modules/@babel/helper-module-imports/package.json +28 -0
- package/node_modules/@babel/helper-module-transforms/LICENSE +22 -0
- package/node_modules/@babel/helper-module-transforms/README.md +19 -0
- package/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js +52 -0
- package/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js.map +1 -0
- package/node_modules/@babel/helper-module-transforms/lib/get-module-name.js +48 -0
- package/node_modules/@babel/helper-module-transforms/lib/get-module-name.js.map +1 -0
- package/node_modules/@babel/helper-module-transforms/lib/index.js +375 -0
- package/node_modules/@babel/helper-module-transforms/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js +354 -0
- package/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js.map +1 -0
- package/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js +349 -0
- package/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js.map +1 -0
- package/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js +24 -0
- package/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js.map +1 -0
- package/node_modules/@babel/helper-module-transforms/package.json +35 -0
- package/node_modules/@babel/helper-simple-access/LICENSE +22 -0
- package/node_modules/@babel/helper-simple-access/README.md +19 -0
- package/node_modules/@babel/helper-simple-access/lib/index.js +91 -0
- package/node_modules/@babel/helper-simple-access/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-simple-access/package.json +28 -0
- package/node_modules/@babel/helper-split-export-declaration/LICENSE +22 -0
- package/node_modules/@babel/helper-split-export-declaration/README.md +19 -0
- package/node_modules/@babel/helper-split-export-declaration/lib/index.js +59 -0
- package/node_modules/@babel/helper-split-export-declaration/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-split-export-declaration/package.json +24 -0
- package/node_modules/@babel/helper-string-parser/LICENSE +22 -0
- package/node_modules/@babel/helper-string-parser/README.md +19 -0
- package/node_modules/@babel/helper-string-parser/lib/index.js +295 -0
- package/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-string-parser/package.json +28 -0
- package/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/node_modules/@babel/helper-validator-identifier/package.json +28 -0
- package/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +75 -0
- package/node_modules/@babel/helper-validator-option/LICENSE +22 -0
- package/node_modules/@babel/helper-validator-option/README.md +19 -0
- package/node_modules/@babel/helper-validator-option/lib/find-suggestion.js +39 -0
- package/node_modules/@babel/helper-validator-option/lib/find-suggestion.js.map +1 -0
- package/node_modules/@babel/helper-validator-option/lib/index.js +21 -0
- package/node_modules/@babel/helper-validator-option/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-validator-option/lib/validator.js +48 -0
- package/node_modules/@babel/helper-validator-option/lib/validator.js.map +1 -0
- package/node_modules/@babel/helper-validator-option/package.json +24 -0
- package/node_modules/@babel/helpers/LICENSE +22 -0
- package/node_modules/@babel/helpers/README.md +19 -0
- package/node_modules/@babel/helpers/lib/helpers/AsyncGenerator.js +92 -0
- package/node_modules/@babel/helpers/lib/helpers/AsyncGenerator.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/OverloadYield.js +12 -0
- package/node_modules/@babel/helpers/lib/helpers/OverloadYield.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs.js +448 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2203.js +363 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2203.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2203R.js +365 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2203R.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2301.js +410 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2301.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2305.js +388 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2305.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/asyncGeneratorDelegate.js +52 -0
- package/node_modules/@babel/helpers/lib/helpers/asyncGeneratorDelegate.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/asyncIterator.js +70 -0
- package/node_modules/@babel/helpers/lib/helpers/asyncIterator.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/awaitAsyncGenerator.js +12 -0
- package/node_modules/@babel/helpers/lib/helpers/awaitAsyncGenerator.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/checkInRHS.js +14 -0
- package/node_modules/@babel/helpers/lib/helpers/checkInRHS.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/defineAccessor.js +16 -0
- package/node_modules/@babel/helpers/lib/helpers/defineAccessor.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/dispose.js +47 -0
- package/node_modules/@babel/helpers/lib/helpers/dispose.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimit.js +41 -0
- package/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimit.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimitLoose.js +18 -0
- package/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimitLoose.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/jsx.js +47 -0
- package/node_modules/@babel/helpers/lib/helpers/jsx.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/objectSpread2.js +39 -0
- package/node_modules/@babel/helpers/lib/helpers/objectSpread2.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorRuntime.js +501 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorRuntime.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/typeof.js +22 -0
- package/node_modules/@babel/helpers/lib/helpers/typeof.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/using.js +29 -0
- package/node_modules/@babel/helpers/lib/helpers/using.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js +66 -0
- package/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers-generated.js +41 -0
- package/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers.js +1784 -0
- package/node_modules/@babel/helpers/lib/helpers.js.map +1 -0
- package/node_modules/@babel/helpers/lib/index.js +242 -0
- package/node_modules/@babel/helpers/lib/index.js.map +1 -0
- package/node_modules/@babel/helpers/package.json +33 -0
- package/node_modules/@babel/helpers/scripts/generate-helpers.js +64 -0
- package/node_modules/@babel/helpers/scripts/generate-regenerator-runtime.js +63 -0
- package/node_modules/@babel/helpers/scripts/package.json +1 -0
- package/node_modules/@babel/highlight/LICENSE +22 -0
- package/node_modules/@babel/highlight/README.md +19 -0
- package/node_modules/@babel/highlight/lib/index.js +96 -0
- package/node_modules/@babel/highlight/lib/index.js.map +1 -0
- package/node_modules/@babel/highlight/package.json +30 -0
- package/node_modules/@babel/parser/CHANGELOG.md +1073 -0
- package/node_modules/@babel/parser/LICENSE +19 -0
- package/node_modules/@babel/parser/README.md +19 -0
- package/node_modules/@babel/parser/bin/babel-parser.js +15 -0
- package/node_modules/@babel/parser/index.cjs +5 -0
- package/node_modules/@babel/parser/lib/index.js +14429 -0
- package/node_modules/@babel/parser/lib/index.js.map +1 -0
- package/node_modules/@babel/parser/lib/options.js +40 -0
- package/node_modules/@babel/parser/lib/options.js.map +1 -0
- package/node_modules/@babel/parser/lib/parse-error/credentials.js +28 -0
- package/node_modules/@babel/parser/lib/parse-error/credentials.js.map +1 -0
- package/node_modules/@babel/parser/lib/parse-error/module-errors.js +20 -0
- package/node_modules/@babel/parser/lib/parse-error/module-errors.js.map +1 -0
- package/node_modules/@babel/parser/lib/parse-error/pipeline-operator-errors.js +32 -0
- package/node_modules/@babel/parser/lib/parse-error/pipeline-operator-errors.js.map +1 -0
- package/node_modules/@babel/parser/lib/parse-error/standard-errors.js +220 -0
- package/node_modules/@babel/parser/lib/parse-error/standard-errors.js.map +1 -0
- package/node_modules/@babel/parser/lib/parse-error/strict-mode-errors.js +22 -0
- package/node_modules/@babel/parser/lib/parse-error/strict-mode-errors.js.map +1 -0
- package/node_modules/@babel/parser/lib/parse-error/to-node-description.js +39 -0
- package/node_modules/@babel/parser/lib/parse-error/to-node-description.js.map +1 -0
- package/node_modules/@babel/parser/lib/parse-error.js +106 -0
- package/node_modules/@babel/parser/lib/parse-error.js.map +1 -0
- package/node_modules/@babel/parser/lib/parser/base.js +36 -0
- package/node_modules/@babel/parser/lib/parser/base.js.map +1 -0
- package/node_modules/@babel/parser/lib/parser/comments.js +190 -0
- package/node_modules/@babel/parser/lib/parser/comments.js.map +1 -0
- package/node_modules/@babel/parser/lib/parser/expression.js +1824 -0
- package/node_modules/@babel/parser/lib/parser/expression.js.map +1 -0
- package/node_modules/@babel/parser/lib/parser/index.js +43 -0
- package/node_modules/@babel/parser/lib/parser/index.js.map +1 -0
- package/node_modules/@babel/parser/lib/parser/lval.js +421 -0
- package/node_modules/@babel/parser/lib/parser/lval.js.map +1 -0
- package/node_modules/@babel/parser/lib/parser/node.js +127 -0
- package/node_modules/@babel/parser/lib/parser/node.js.map +1 -0
- package/node_modules/@babel/parser/lib/parser/statement.js +2032 -0
- package/node_modules/@babel/parser/lib/parser/statement.js.map +1 -0
- package/node_modules/@babel/parser/lib/parser/util.js +238 -0
- package/node_modules/@babel/parser/lib/parser/util.js.map +1 -0
- package/node_modules/@babel/parser/lib/plugin-utils.js +136 -0
- package/node_modules/@babel/parser/lib/plugin-utils.js.map +1 -0
- package/node_modules/@babel/parser/lib/plugins/estree.js +340 -0
- package/node_modules/@babel/parser/lib/plugins/estree.js.map +1 -0
- package/node_modules/@babel/parser/lib/plugins/flow/index.js +2474 -0
- package/node_modules/@babel/parser/lib/plugins/flow/index.js.map +1 -0
- package/node_modules/@babel/parser/lib/plugins/flow/scope.js +44 -0
- package/node_modules/@babel/parser/lib/plugins/flow/scope.js.map +1 -0
- package/node_modules/@babel/parser/lib/plugins/jsx/index.js +444 -0
- package/node_modules/@babel/parser/lib/plugins/jsx/index.js.map +1 -0
- package/node_modules/@babel/parser/lib/plugins/jsx/xhtml.js +266 -0
- package/node_modules/@babel/parser/lib/plugins/jsx/xhtml.js.map +1 -0
- package/node_modules/@babel/parser/lib/plugins/placeholders.js +197 -0
- package/node_modules/@babel/parser/lib/plugins/placeholders.js.map +1 -0
- package/node_modules/@babel/parser/lib/plugins/typescript/index.js +2656 -0
- package/node_modules/@babel/parser/lib/plugins/typescript/index.js.map +1 -0
- package/node_modules/@babel/parser/lib/plugins/typescript/scope.js +119 -0
- package/node_modules/@babel/parser/lib/plugins/typescript/scope.js.map +1 -0
- package/node_modules/@babel/parser/lib/plugins/v8intrinsic.js +31 -0
- package/node_modules/@babel/parser/lib/plugins/v8intrinsic.js.map +1 -0
- package/node_modules/@babel/parser/lib/tokenizer/context.js +27 -0
- package/node_modules/@babel/parser/lib/tokenizer/context.js.map +1 -0
- package/node_modules/@babel/parser/lib/tokenizer/index.js +1119 -0
- package/node_modules/@babel/parser/lib/tokenizer/index.js.map +1 -0
- package/node_modules/@babel/parser/lib/tokenizer/state.js +82 -0
- package/node_modules/@babel/parser/lib/tokenizer/state.js.map +1 -0
- package/node_modules/@babel/parser/lib/tokenizer/types.js +586 -0
- package/node_modules/@babel/parser/lib/tokenizer/types.js.map +1 -0
- package/node_modules/@babel/parser/lib/util/class-scope.js +92 -0
- package/node_modules/@babel/parser/lib/util/class-scope.js.map +1 -0
- package/node_modules/@babel/parser/lib/util/expression-scope.js +147 -0
- package/node_modules/@babel/parser/lib/util/expression-scope.js.map +1 -0
- package/node_modules/@babel/parser/lib/util/identifier.js +62 -0
- package/node_modules/@babel/parser/lib/util/identifier.js.map +1 -0
- package/node_modules/@babel/parser/lib/util/location.js +39 -0
- package/node_modules/@babel/parser/lib/util/location.js.map +1 -0
- package/node_modules/@babel/parser/lib/util/production-parameter.js +49 -0
- package/node_modules/@babel/parser/lib/util/production-parameter.js.map +1 -0
- package/node_modules/@babel/parser/lib/util/scope.js +161 -0
- package/node_modules/@babel/parser/lib/util/scope.js.map +1 -0
- package/node_modules/@babel/parser/lib/util/scopeflags.js +106 -0
- package/node_modules/@babel/parser/lib/util/scopeflags.js.map +1 -0
- package/node_modules/@babel/parser/lib/util/whitespace.js +59 -0
- package/node_modules/@babel/parser/lib/util/whitespace.js.map +1 -0
- package/node_modules/@babel/parser/package.json +46 -0
- package/node_modules/@babel/parser/typings/babel-parser.d.ts +241 -0
- package/node_modules/@babel/template/LICENSE +22 -0
- package/node_modules/@babel/template/README.md +19 -0
- package/node_modules/@babel/template/lib/builder.js +69 -0
- package/node_modules/@babel/template/lib/builder.js.map +1 -0
- package/node_modules/@babel/template/lib/formatters.js +66 -0
- package/node_modules/@babel/template/lib/formatters.js.map +1 -0
- package/node_modules/@babel/template/lib/index.js +29 -0
- package/node_modules/@babel/template/lib/index.js.map +1 -0
- package/node_modules/@babel/template/lib/literal.js +69 -0
- package/node_modules/@babel/template/lib/literal.js.map +1 -0
- package/node_modules/@babel/template/lib/options.js +73 -0
- package/node_modules/@babel/template/lib/options.js.map +1 -0
- package/node_modules/@babel/template/lib/parse.js +160 -0
- package/node_modules/@babel/template/lib/parse.js.map +1 -0
- package/node_modules/@babel/template/lib/populate.js +122 -0
- package/node_modules/@babel/template/lib/populate.js.map +1 -0
- package/node_modules/@babel/template/lib/string.js +20 -0
- package/node_modules/@babel/template/lib/string.js.map +1 -0
- package/node_modules/@babel/template/package.json +27 -0
- package/node_modules/@babel/traverse/LICENSE +22 -0
- package/node_modules/@babel/traverse/README.md +19 -0
- package/node_modules/@babel/traverse/lib/cache.js +25 -0
- package/node_modules/@babel/traverse/lib/cache.js.map +1 -0
- package/node_modules/@babel/traverse/lib/context.js +115 -0
- package/node_modules/@babel/traverse/lib/context.js.map +1 -0
- package/node_modules/@babel/traverse/lib/hub.js +19 -0
- package/node_modules/@babel/traverse/lib/hub.js.map +1 -0
- package/node_modules/@babel/traverse/lib/index.js +93 -0
- package/node_modules/@babel/traverse/lib/index.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/ancestry.js +141 -0
- package/node_modules/@babel/traverse/lib/path/ancestry.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/comments.js +54 -0
- package/node_modules/@babel/traverse/lib/path/comments.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/context.js +222 -0
- package/node_modules/@babel/traverse/lib/path/context.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/conversion.js +473 -0
- package/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/evaluation.js +340 -0
- package/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/family.js +336 -0
- package/node_modules/@babel/traverse/lib/path/family.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/index.js +197 -0
- package/node_modules/@babel/traverse/lib/path/index.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/inference/index.js +149 -0
- package/node_modules/@babel/traverse/lib/path/inference/index.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js +151 -0
- package/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/inference/inferers.js +207 -0
- package/node_modules/@babel/traverse/lib/path/inference/inferers.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/inference/util.js +30 -0
- package/node_modules/@babel/traverse/lib/path/inference/util.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/introspection.js +385 -0
- package/node_modules/@babel/traverse/lib/path/introspection.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/lib/hoister.js +171 -0
- package/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js +38 -0
- package/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js +161 -0
- package/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/lib/virtual-types.js +44 -0
- package/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/modification.js +224 -0
- package/node_modules/@babel/traverse/lib/path/modification.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/removal.js +58 -0
- package/node_modules/@babel/traverse/lib/path/removal.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/replacement.js +205 -0
- package/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -0
- package/node_modules/@babel/traverse/lib/scope/binding.js +85 -0
- package/node_modules/@babel/traverse/lib/scope/binding.js.map +1 -0
- package/node_modules/@babel/traverse/lib/scope/index.js +887 -0
- package/node_modules/@babel/traverse/lib/scope/index.js.map +1 -0
- package/node_modules/@babel/traverse/lib/scope/lib/renamer.js +113 -0
- package/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +1 -0
- package/node_modules/@babel/traverse/lib/traverse-node.js +25 -0
- package/node_modules/@babel/traverse/lib/traverse-node.js.map +1 -0
- package/node_modules/@babel/traverse/lib/types.js +3 -0
- package/node_modules/@babel/traverse/lib/types.js.map +1 -0
- package/node_modules/@babel/traverse/lib/visitors.js +218 -0
- package/node_modules/@babel/traverse/lib/visitors.js.map +1 -0
- package/node_modules/@babel/traverse/package.json +37 -0
- package/node_modules/@babel/types/LICENSE +22 -0
- package/node_modules/@babel/types/README.md +19 -0
- package/node_modules/@babel/types/lib/asserts/assertNode.js +16 -0
- package/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -0
- package/node_modules/@babel/types/lib/asserts/generated/index.js +1231 -0
- package/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -0
- package/node_modules/@babel/types/lib/ast-types/generated/index.js +3 -0
- package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +18 -0
- package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +32 -0
- package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/generated/index.js +1985 -0
- package/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js +1526 -0
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/react/buildChildren.js +24 -0
- package/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +22 -0
- package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/validateNode.js +17 -0
- package/node_modules/@babel/types/lib/builders/validateNode.js.map +1 -0
- package/node_modules/@babel/types/lib/clone/clone.js +12 -0
- package/node_modules/@babel/types/lib/clone/clone.js.map +1 -0
- package/node_modules/@babel/types/lib/clone/cloneDeep.js +12 -0
- package/node_modules/@babel/types/lib/clone/cloneDeep.js.map +1 -0
- package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +12 -0
- package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +1 -0
- package/node_modules/@babel/types/lib/clone/cloneNode.js +100 -0
- package/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -0
- package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +12 -0
- package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +1 -0
- package/node_modules/@babel/types/lib/comments/addComment.js +15 -0
- package/node_modules/@babel/types/lib/comments/addComment.js.map +1 -0
- package/node_modules/@babel/types/lib/comments/addComments.js +22 -0
- package/node_modules/@babel/types/lib/comments/addComments.js.map +1 -0
- package/node_modules/@babel/types/lib/comments/inheritInnerComments.js +12 -0
- package/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +1 -0
- package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +12 -0
- package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +1 -0
- package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +12 -0
- package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +1 -0
- package/node_modules/@babel/types/lib/comments/inheritsComments.js +17 -0
- package/node_modules/@babel/types/lib/comments/inheritsComments.js.map +1 -0
- package/node_modules/@babel/types/lib/comments/removeComments.js +15 -0
- package/node_modules/@babel/types/lib/comments/removeComments.js.map +1 -0
- package/node_modules/@babel/types/lib/constants/generated/index.js +109 -0
- package/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -0
- package/node_modules/@babel/types/lib/constants/index.js +51 -0
- package/node_modules/@babel/types/lib/constants/index.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/ensureBlock.js +14 -0
- package/node_modules/@babel/types/lib/converters/ensureBlock.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +64 -0
- package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +14 -0
- package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/toBlock.js +29 -0
- package/node_modules/@babel/types/lib/converters/toBlock.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/toComputedKey.js +14 -0
- package/node_modules/@babel/types/lib/converters/toComputedKey.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/toExpression.js +28 -0
- package/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/toIdentifier.js +25 -0
- package/node_modules/@babel/types/lib/converters/toIdentifier.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/toKeyAlias.js +38 -0
- package/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/toSequenceExpression.js +19 -0
- package/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/toStatement.js +40 -0
- package/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/valueToNode.js +77 -0
- package/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/core.js +1663 -0
- package/node_modules/@babel/types/lib/definitions/core.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +12 -0
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/experimental.js +134 -0
- package/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/flow.js +488 -0
- package/node_modules/@babel/types/lib/definitions/flow.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/index.js +97 -0
- package/node_modules/@babel/types/lib/definitions/index.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/jsx.js +158 -0
- package/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/misc.js +32 -0
- package/node_modules/@babel/types/lib/definitions/misc.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/placeholders.js +30 -0
- package/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/typescript.js +490 -0
- package/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/utils.js +280 -0
- package/node_modules/@babel/types/lib/definitions/utils.js.map +1 -0
- package/node_modules/@babel/types/lib/index-legacy.d.ts +2748 -0
- package/node_modules/@babel/types/lib/index.d.ts +3266 -0
- package/node_modules/@babel/types/lib/index.js +570 -0
- package/node_modules/@babel/types/lib/index.js.flow +2602 -0
- package/node_modules/@babel/types/lib/index.js.map +1 -0
- package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +15 -0
- package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +1 -0
- package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +65 -0
- package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -0
- package/node_modules/@babel/types/lib/modifications/inherits.js +28 -0
- package/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -0
- package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +17 -0
- package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +1 -0
- package/node_modules/@babel/types/lib/modifications/removeProperties.js +24 -0
- package/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -0
- package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +14 -0
- package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +1 -0
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +65 -0
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -0
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +93 -0
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -0
- package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +14 -0
- package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -0
- package/node_modules/@babel/types/lib/traverse/traverse.js +50 -0
- package/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -0
- package/node_modules/@babel/types/lib/traverse/traverseFast.js +26 -0
- package/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -0
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js +44 -0
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -0
- package/node_modules/@babel/types/lib/utils/inherit.js +13 -0
- package/node_modules/@babel/types/lib/utils/inherit.js.map +1 -0
- package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +40 -0
- package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -0
- package/node_modules/@babel/types/lib/utils/shallowEqual.js +17 -0
- package/node_modules/@babel/types/lib/utils/shallowEqual.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +13 -0
- package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/generated/index.js +2744 -0
- package/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/is.js +27 -0
- package/node_modules/@babel/types/lib/validators/is.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isBinding.js +27 -0
- package/node_modules/@babel/types/lib/validators/isBinding.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isBlockScoped.js +13 -0
- package/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isImmutable.js +21 -0
- package/node_modules/@babel/types/lib/validators/isImmutable.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isLet.js +13 -0
- package/node_modules/@babel/types/lib/validators/isLet.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isNode.js +12 -0
- package/node_modules/@babel/types/lib/validators/isNode.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +57 -0
- package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js +19 -0
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isReferenced.js +96 -0
- package/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isScope.js +18 -0
- package/node_modules/@babel/types/lib/validators/isScope.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +14 -0
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isType.js +21 -0
- package/node_modules/@babel/types/lib/validators/isType.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +13 -0
- package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isValidIdentifier.js +18 -0
- package/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/isVar.js +15 -0
- package/node_modules/@babel/types/lib/validators/isVar.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/matchesPattern.js +36 -0
- package/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/react/isCompatTag.js +11 -0
- package/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/react/isReactComponent.js +12 -0
- package/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/validate.js +30 -0
- package/node_modules/@babel/types/lib/validators/validate.js.map +1 -0
- package/node_modules/@babel/types/package.json +41 -0
- package/node_modules/@istanbuljs/load-nyc-config/CHANGELOG.md +41 -0
- package/node_modules/@istanbuljs/load-nyc-config/LICENSE +16 -0
- package/node_modules/@istanbuljs/load-nyc-config/README.md +64 -0
- package/node_modules/@istanbuljs/load-nyc-config/index.js +166 -0
- package/node_modules/@istanbuljs/load-nyc-config/load-esm.js +12 -0
- package/node_modules/@istanbuljs/load-nyc-config/package.json +49 -0
- package/node_modules/@istanbuljs/schema/CHANGELOG.md +44 -0
- package/node_modules/@istanbuljs/schema/LICENSE +21 -0
- package/node_modules/@istanbuljs/schema/README.md +30 -0
- package/node_modules/@istanbuljs/schema/default-exclude.js +22 -0
- package/node_modules/@istanbuljs/schema/default-extension.js +10 -0
- package/node_modules/@istanbuljs/schema/index.js +466 -0
- package/node_modules/@istanbuljs/schema/package.json +30 -0
- package/node_modules/@jridgewell/gen-mapping/LICENSE +19 -0
- package/node_modules/@jridgewell/gen-mapping/README.md +227 -0
- package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +230 -0
- package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +236 -0
- package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +90 -0
- package/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- package/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +35 -0
- package/node_modules/@jridgewell/gen-mapping/package.json +77 -0
- package/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- package/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +242 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +250 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- package/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- package/node_modules/@jridgewell/resolve-uri/package.json +69 -0
- package/node_modules/@jridgewell/set-array/LICENSE +19 -0
- package/node_modules/@jridgewell/set-array/README.md +37 -0
- package/node_modules/@jridgewell/set-array/dist/set-array.mjs +48 -0
- package/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +1 -0
- package/node_modules/@jridgewell/set-array/dist/set-array.umd.js +58 -0
- package/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +1 -0
- package/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts +26 -0
- package/node_modules/@jridgewell/set-array/package.json +66 -0
- package/node_modules/@jridgewell/set-array/src/set-array.ts +55 -0
- package/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
- package/node_modules/@jridgewell/sourcemap-codec/README.md +200 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +164 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +175 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +6 -0
- package/node_modules/@jridgewell/sourcemap-codec/package.json +74 -0
- package/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/node_modules/@jridgewell/trace-mapping/README.md +252 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +552 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +566 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +92 -0
- package/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
- package/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/README.md +200 -0
- package/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +164 -0
- package/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +175 -0
- package/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +6 -0
- package/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/package.json +75 -0
- package/node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +198 -0
- package/node_modules/@jridgewell/trace-mapping/package.json +75 -0
- package/node_modules/@protobufjs/aspromise/LICENSE +26 -0
- package/node_modules/@protobufjs/aspromise/README.md +13 -0
- package/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
- package/node_modules/@protobufjs/aspromise/index.js +52 -0
- package/node_modules/@protobufjs/aspromise/package.json +21 -0
- package/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
- package/node_modules/@protobufjs/base64/LICENSE +26 -0
- package/node_modules/@protobufjs/base64/README.md +19 -0
- package/node_modules/@protobufjs/base64/index.d.ts +32 -0
- package/node_modules/@protobufjs/base64/index.js +139 -0
- package/node_modules/@protobufjs/base64/package.json +21 -0
- package/node_modules/@protobufjs/base64/tests/index.js +46 -0
- package/node_modules/@protobufjs/codegen/LICENSE +26 -0
- package/node_modules/@protobufjs/codegen/README.md +49 -0
- package/node_modules/@protobufjs/codegen/index.d.ts +31 -0
- package/node_modules/@protobufjs/codegen/index.js +99 -0
- package/node_modules/@protobufjs/codegen/package.json +13 -0
- package/node_modules/@protobufjs/codegen/tests/index.js +13 -0
- package/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
- package/node_modules/@protobufjs/eventemitter/README.md +22 -0
- package/node_modules/@protobufjs/eventemitter/index.d.ts +43 -0
- package/node_modules/@protobufjs/eventemitter/index.js +76 -0
- package/node_modules/@protobufjs/eventemitter/package.json +21 -0
- package/node_modules/@protobufjs/eventemitter/tests/index.js +47 -0
- package/node_modules/@protobufjs/fetch/LICENSE +26 -0
- package/node_modules/@protobufjs/fetch/README.md +13 -0
- package/node_modules/@protobufjs/fetch/index.d.ts +56 -0
- package/node_modules/@protobufjs/fetch/index.js +115 -0
- package/node_modules/@protobufjs/fetch/package.json +25 -0
- package/node_modules/@protobufjs/fetch/tests/index.js +16 -0
- package/node_modules/@protobufjs/float/LICENSE +26 -0
- package/node_modules/@protobufjs/float/README.md +102 -0
- package/node_modules/@protobufjs/float/bench/index.js +87 -0
- package/node_modules/@protobufjs/float/bench/suite.js +46 -0
- package/node_modules/@protobufjs/float/index.d.ts +83 -0
- package/node_modules/@protobufjs/float/index.js +335 -0
- package/node_modules/@protobufjs/float/package.json +26 -0
- package/node_modules/@protobufjs/float/tests/index.js +100 -0
- package/node_modules/@protobufjs/inquire/.npmignore +3 -0
- package/node_modules/@protobufjs/inquire/LICENSE +26 -0
- package/node_modules/@protobufjs/inquire/README.md +13 -0
- package/node_modules/@protobufjs/inquire/index.d.ts +9 -0
- package/node_modules/@protobufjs/inquire/index.js +17 -0
- package/node_modules/@protobufjs/inquire/package.json +21 -0
- package/node_modules/@protobufjs/inquire/tests/data/array.js +1 -0
- package/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +1 -0
- package/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +1 -0
- package/node_modules/@protobufjs/inquire/tests/data/object.js +1 -0
- package/node_modules/@protobufjs/inquire/tests/index.js +20 -0
- package/node_modules/@protobufjs/path/LICENSE +26 -0
- package/node_modules/@protobufjs/path/README.md +19 -0
- package/node_modules/@protobufjs/path/index.d.ts +22 -0
- package/node_modules/@protobufjs/path/index.js +65 -0
- package/node_modules/@protobufjs/path/package.json +21 -0
- package/node_modules/@protobufjs/path/tests/index.js +60 -0
- package/node_modules/@protobufjs/pool/.npmignore +3 -0
- package/node_modules/@protobufjs/pool/LICENSE +26 -0
- package/node_modules/@protobufjs/pool/README.md +13 -0
- package/node_modules/@protobufjs/pool/index.d.ts +32 -0
- package/node_modules/@protobufjs/pool/index.js +48 -0
- package/node_modules/@protobufjs/pool/package.json +21 -0
- package/node_modules/@protobufjs/pool/tests/index.js +33 -0
- package/node_modules/@protobufjs/utf8/.npmignore +3 -0
- package/node_modules/@protobufjs/utf8/LICENSE +26 -0
- package/node_modules/@protobufjs/utf8/README.md +20 -0
- package/node_modules/@protobufjs/utf8/index.d.ts +24 -0
- package/node_modules/@protobufjs/utf8/index.js +105 -0
- package/node_modules/@protobufjs/utf8/package.json +21 -0
- package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
- package/node_modules/@protobufjs/utf8/tests/index.js +57 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@types/node/assert.d.ts +972 -0
- package/node_modules/@types/node/async_hooks.d.ts +530 -0
- package/node_modules/@types/node/buffer.d.ts +2354 -0
- package/node_modules/@types/node/child_process.d.ts +1395 -0
- package/node_modules/@types/node/cluster.d.ts +414 -0
- package/node_modules/@types/node/console.d.ts +412 -0
- package/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/node/crypto.d.ts +3978 -0
- package/node_modules/@types/node/dgram.d.ts +545 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- package/node_modules/@types/node/dns/promises.d.ts +414 -0
- package/node_modules/@types/node/dns.d.ts +668 -0
- package/node_modules/@types/node/dom-events.d.ts +126 -0
- package/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@types/node/events.d.ts +753 -0
- package/node_modules/@types/node/fs/promises.d.ts +1197 -0
- package/node_modules/@types/node/fs.d.ts +4044 -0
- package/node_modules/@types/node/globals.d.ts +303 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +1724 -0
- package/node_modules/@types/node/http2.d.ts +2129 -0
- package/node_modules/@types/node/https.d.ts +441 -0
- package/node_modules/@types/node/index.d.ts +133 -0
- package/node_modules/@types/node/inspector.d.ts +2748 -0
- package/node_modules/@types/node/module.d.ts +129 -0
- package/node_modules/@types/node/net.d.ts +888 -0
- package/node_modules/@types/node/os.d.ts +477 -0
- package/node_modules/@types/node/package.json +232 -0
- package/node_modules/@types/node/path.d.ts +191 -0
- package/node_modules/@types/node/perf_hooks.d.ts +638 -0
- package/node_modules/@types/node/process.d.ts +1494 -0
- package/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/node/querystring.d.ts +131 -0
- package/node_modules/@types/node/readline/promises.d.ts +145 -0
- package/node_modules/@types/node/readline.d.ts +526 -0
- package/node_modules/@types/node/repl.d.ts +424 -0
- package/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/node_modules/@types/node/stream/promises.d.ts +42 -0
- package/node_modules/@types/node/stream/web.d.ts +330 -0
- package/node_modules/@types/node/stream.d.ts +1425 -0
- package/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/test.d.ts +1432 -0
- package/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@types/node/timers.d.ts +215 -0
- package/node_modules/@types/node/tls.d.ts +1130 -0
- package/node_modules/@types/node/trace_events.d.ts +182 -0
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
- package/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
- package/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
- package/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
- package/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/node/ts4.8/crypto.d.ts +3977 -0
- package/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
- package/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@types/node/ts4.8/events.d.ts +753 -0
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +1197 -0
- package/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
- package/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
- package/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
- package/node_modules/@types/node/ts4.8/https.d.ts +441 -0
- package/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
- package/node_modules/@types/node/ts4.8/module.d.ts +129 -0
- package/node_modules/@types/node/ts4.8/net.d.ts +888 -0
- package/node_modules/@types/node/ts4.8/os.d.ts +477 -0
- package/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
- package/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
- package/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
- package/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
- package/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- package/node_modules/@types/node/ts4.8/stream.d.ts +1396 -0
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/ts4.8/test.d.ts +1414 -0
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
- package/node_modules/@types/node/ts4.8/tls.d.ts +1130 -0
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/node_modules/@types/node/ts4.8/url.d.ts +915 -0
- package/node_modules/@types/node/ts4.8/util.d.ts +2116 -0
- package/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
- package/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
- package/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@types/node/url.d.ts +915 -0
- package/node_modules/@types/node/util.d.ts +2116 -0
- package/node_modules/@types/node/v8.d.ts +635 -0
- package/node_modules/@types/node/vm.d.ts +894 -0
- package/node_modules/@types/node/wasi.d.ts +152 -0
- package/node_modules/@types/node/worker_threads.d.ts +693 -0
- package/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/aggregate-error/index.d.ts +51 -0
- package/node_modules/aggregate-error/index.js +47 -0
- package/node_modules/aggregate-error/license +9 -0
- package/node_modules/aggregate-error/package.json +41 -0
- package/node_modules/aggregate-error/readme.md +61 -0
- package/node_modules/ansi-regex/index.d.ts +37 -0
- package/node_modules/ansi-regex/index.js +10 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +55 -0
- package/node_modules/ansi-regex/readme.md +78 -0
- package/node_modules/ansi-styles/index.js +165 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +56 -0
- package/node_modules/ansi-styles/readme.md +147 -0
- package/node_modules/append-transform/CHANGELOG.md +14 -0
- package/node_modules/append-transform/index.js +91 -0
- package/node_modules/append-transform/license +21 -0
- package/node_modules/append-transform/package.json +47 -0
- package/node_modules/append-transform/readme.md +76 -0
- package/node_modules/archy/.travis.yml +4 -0
- package/node_modules/archy/LICENSE +18 -0
- package/node_modules/archy/examples/beep.js +24 -0
- package/node_modules/archy/examples/multi_line.js +25 -0
- package/node_modules/archy/index.js +35 -0
- package/node_modules/archy/package.json +40 -0
- package/node_modules/archy/readme.markdown +88 -0
- package/node_modules/archy/test/beep.js +40 -0
- package/node_modules/archy/test/multi_line.js +45 -0
- package/node_modules/archy/test/non_unicode.js +40 -0
- package/node_modules/argparse/CHANGELOG.md +185 -0
- package/node_modules/argparse/LICENSE +21 -0
- package/node_modules/argparse/README.md +257 -0
- package/node_modules/argparse/index.js +3 -0
- package/node_modules/argparse/lib/action/append/constant.js +47 -0
- package/node_modules/argparse/lib/action/append.js +53 -0
- package/node_modules/argparse/lib/action/count.js +40 -0
- package/node_modules/argparse/lib/action/help.js +47 -0
- package/node_modules/argparse/lib/action/store/constant.js +43 -0
- package/node_modules/argparse/lib/action/store/false.js +27 -0
- package/node_modules/argparse/lib/action/store/true.js +26 -0
- package/node_modules/argparse/lib/action/store.js +50 -0
- package/node_modules/argparse/lib/action/subparsers.js +149 -0
- package/node_modules/argparse/lib/action/version.js +47 -0
- package/node_modules/argparse/lib/action.js +146 -0
- package/node_modules/argparse/lib/action_container.js +482 -0
- package/node_modules/argparse/lib/argparse.js +14 -0
- package/node_modules/argparse/lib/argument/error.js +50 -0
- package/node_modules/argparse/lib/argument/exclusive.js +54 -0
- package/node_modules/argparse/lib/argument/group.js +75 -0
- package/node_modules/argparse/lib/argument_parser.js +1161 -0
- package/node_modules/argparse/lib/const.js +21 -0
- package/node_modules/argparse/lib/help/added_formatters.js +87 -0
- package/node_modules/argparse/lib/help/formatter.js +795 -0
- package/node_modules/argparse/lib/namespace.js +76 -0
- package/node_modules/argparse/lib/utils.js +57 -0
- package/node_modules/argparse/package.json +34 -0
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/balanced-match/README.md +97 -0
- package/node_modules/balanced-match/index.js +62 -0
- package/node_modules/balanced-match/package.json +48 -0
- package/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/brace-expansion/README.md +129 -0
- package/node_modules/brace-expansion/index.js +201 -0
- package/node_modules/brace-expansion/package.json +47 -0
- package/node_modules/browserslist/LICENSE +20 -0
- package/node_modules/browserslist/README.md +73 -0
- package/node_modules/browserslist/browser.js +52 -0
- package/node_modules/browserslist/cli.js +151 -0
- package/node_modules/browserslist/error.d.ts +7 -0
- package/node_modules/browserslist/error.js +12 -0
- package/node_modules/browserslist/index.d.ts +200 -0
- package/node_modules/browserslist/index.js +1196 -0
- package/node_modules/browserslist/node.js +410 -0
- package/node_modules/browserslist/package.json +44 -0
- package/node_modules/browserslist/parse.js +78 -0
- package/node_modules/caching-transform/index.js +102 -0
- package/node_modules/caching-transform/license +21 -0
- package/node_modules/caching-transform/package.json +46 -0
- package/node_modules/caching-transform/readme.md +163 -0
- package/node_modules/camelcase/index.d.ts +63 -0
- package/node_modules/camelcase/index.js +76 -0
- package/node_modules/camelcase/license +9 -0
- package/node_modules/camelcase/package.json +43 -0
- package/node_modules/camelcase/readme.md +99 -0
- package/node_modules/caniuse-lite/LICENSE +395 -0
- package/node_modules/caniuse-lite/README.md +6 -0
- package/node_modules/caniuse-lite/data/agents.js +1 -0
- package/node_modules/caniuse-lite/data/browserVersions.js +1 -0
- package/node_modules/caniuse-lite/data/browsers.js +1 -0
- package/node_modules/caniuse-lite/data/features/aac.js +1 -0
- package/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -0
- package/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -0
- package/node_modules/caniuse-lite/data/features/accelerometer.js +1 -0
- package/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -0
- package/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -0
- package/node_modules/caniuse-lite/data/features/ambient-light.js +1 -0
- package/node_modules/caniuse-lite/data/features/apng.js +1 -0
- package/node_modules/caniuse-lite/data/features/array-find-index.js +1 -0
- package/node_modules/caniuse-lite/data/features/array-find.js +1 -0
- package/node_modules/caniuse-lite/data/features/array-flat.js +1 -0
- package/node_modules/caniuse-lite/data/features/array-includes.js +1 -0
- package/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -0
- package/node_modules/caniuse-lite/data/features/asmjs.js +1 -0
- package/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -0
- package/node_modules/caniuse-lite/data/features/async-functions.js +1 -0
- package/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -0
- package/node_modules/caniuse-lite/data/features/audio-api.js +1 -0
- package/node_modules/caniuse-lite/data/features/audio.js +1 -0
- package/node_modules/caniuse-lite/data/features/audiotracks.js +1 -0
- package/node_modules/caniuse-lite/data/features/autofocus.js +1 -0
- package/node_modules/caniuse-lite/data/features/auxclick.js +1 -0
- package/node_modules/caniuse-lite/data/features/av1.js +1 -0
- package/node_modules/caniuse-lite/data/features/avif.js +1 -0
- package/node_modules/caniuse-lite/data/features/background-attachment.js +1 -0
- package/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -0
- package/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -0
- package/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -0
- package/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -0
- package/node_modules/caniuse-lite/data/features/background-sync.js +1 -0
- package/node_modules/caniuse-lite/data/features/battery-status.js +1 -0
- package/node_modules/caniuse-lite/data/features/beacon.js +1 -0
- package/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -0
- package/node_modules/caniuse-lite/data/features/bigint.js +1 -0
- package/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -0
- package/node_modules/caniuse-lite/data/features/bloburls.js +1 -0
- package/node_modules/caniuse-lite/data/features/border-image.js +1 -0
- package/node_modules/caniuse-lite/data/features/border-radius.js +1 -0
- package/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -0
- package/node_modules/caniuse-lite/data/features/brotli.js +1 -0
- package/node_modules/caniuse-lite/data/features/calc.js +1 -0
- package/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -0
- package/node_modules/caniuse-lite/data/features/canvas-text.js +1 -0
- package/node_modules/caniuse-lite/data/features/canvas.js +1 -0
- package/node_modules/caniuse-lite/data/features/ch-unit.js +1 -0
- package/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -0
- package/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -0
- package/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -0
- package/node_modules/caniuse-lite/data/features/classlist.js +1 -0
- package/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -0
- package/node_modules/caniuse-lite/data/features/clipboard.js +1 -0
- package/node_modules/caniuse-lite/data/features/colr-v1.js +1 -0
- package/node_modules/caniuse-lite/data/features/colr.js +1 -0
- package/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -0
- package/node_modules/caniuse-lite/data/features/console-basic.js +1 -0
- package/node_modules/caniuse-lite/data/features/console-time.js +1 -0
- package/node_modules/caniuse-lite/data/features/const.js +1 -0
- package/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -0
- package/node_modules/caniuse-lite/data/features/contenteditable.js +1 -0
- package/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -0
- package/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -0
- package/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -0
- package/node_modules/caniuse-lite/data/features/cors.js +1 -0
- package/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -0
- package/node_modules/caniuse-lite/data/features/credential-management.js +1 -0
- package/node_modules/caniuse-lite/data/features/cryptography.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-all.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-animation.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-any-link.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-appearance.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-autofill.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-canvas.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-color-function.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-containment.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-counters.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-element-function.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-env-function.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-filters.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-first-line.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-fixed.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-gradients.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-grid.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-has.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-image-set.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-masks.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-nesting.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-opacity.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-overflow.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-page-break.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-reflections.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-regions.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-resize.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-scroll-timeline.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-sel2.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-sel3.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-selection.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-shapes.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-sticky.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-table.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-transitions.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-variables.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-when-else.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -0
- package/node_modules/caniuse-lite/data/features/css-zoom.js +1 -0
- package/node_modules/caniuse-lite/data/features/css3-attr.js +1 -0
- package/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -0
- package/node_modules/caniuse-lite/data/features/css3-colors.js +1 -0
- package/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -0
- package/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -0
- package/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -0
- package/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -0
- package/node_modules/caniuse-lite/data/features/currentcolor.js +1 -0
- package/node_modules/caniuse-lite/data/features/custom-elements.js +1 -0
- package/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -0
- package/node_modules/caniuse-lite/data/features/customevent.js +1 -0
- package/node_modules/caniuse-lite/data/features/datalist.js +1 -0
- package/node_modules/caniuse-lite/data/features/dataset.js +1 -0
- package/node_modules/caniuse-lite/data/features/datauri.js +1 -0
- package/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -0
- package/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -0
- package/node_modules/caniuse-lite/data/features/decorators.js +1 -0
- package/node_modules/caniuse-lite/data/features/details.js +1 -0
- package/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -0
- package/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -0
- package/node_modules/caniuse-lite/data/features/dialog.js +1 -0
- package/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -0
- package/node_modules/caniuse-lite/data/features/dnssec.js +1 -0
- package/node_modules/caniuse-lite/data/features/do-not-track.js +1 -0
- package/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -0
- package/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -0
- package/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -0
- package/node_modules/caniuse-lite/data/features/document-policy.js +1 -0
- package/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -0
- package/node_modules/caniuse-lite/data/features/documenthead.js +1 -0
- package/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -0
- package/node_modules/caniuse-lite/data/features/dom-range.js +1 -0
- package/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -0
- package/node_modules/caniuse-lite/data/features/dommatrix.js +1 -0
- package/node_modules/caniuse-lite/data/features/download.js +1 -0
- package/node_modules/caniuse-lite/data/features/dragndrop.js +1 -0
- package/node_modules/caniuse-lite/data/features/element-closest.js +1 -0
- package/node_modules/caniuse-lite/data/features/element-from-point.js +1 -0
- package/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -0
- package/node_modules/caniuse-lite/data/features/eme.js +1 -0
- package/node_modules/caniuse-lite/data/features/eot.js +1 -0
- package/node_modules/caniuse-lite/data/features/es5.js +1 -0
- package/node_modules/caniuse-lite/data/features/es6-class.js +1 -0
- package/node_modules/caniuse-lite/data/features/es6-generators.js +1 -0
- package/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -0
- package/node_modules/caniuse-lite/data/features/es6-module.js +1 -0
- package/node_modules/caniuse-lite/data/features/es6-number.js +1 -0
- package/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -0
- package/node_modules/caniuse-lite/data/features/es6.js +1 -0
- package/node_modules/caniuse-lite/data/features/eventsource.js +1 -0
- package/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -0
- package/node_modules/caniuse-lite/data/features/feature-policy.js +1 -0
- package/node_modules/caniuse-lite/data/features/fetch.js +1 -0
- package/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -0
- package/node_modules/caniuse-lite/data/features/fileapi.js +1 -0
- package/node_modules/caniuse-lite/data/features/filereader.js +1 -0
- package/node_modules/caniuse-lite/data/features/filereadersync.js +1 -0
- package/node_modules/caniuse-lite/data/features/filesystem.js +1 -0
- package/node_modules/caniuse-lite/data/features/flac.js +1 -0
- package/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -0
- package/node_modules/caniuse-lite/data/features/flexbox.js +1 -0
- package/node_modules/caniuse-lite/data/features/flow-root.js +1 -0
- package/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -0
- package/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -0
- package/node_modules/caniuse-lite/data/features/font-feature.js +1 -0
- package/node_modules/caniuse-lite/data/features/font-kerning.js +1 -0
- package/node_modules/caniuse-lite/data/features/font-loading.js +1 -0
- package/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -0
- package/node_modules/caniuse-lite/data/features/font-smooth.js +1 -0
- package/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -0
- package/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -0
- package/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -0
- package/node_modules/caniuse-lite/data/features/fontface.js +1 -0
- package/node_modules/caniuse-lite/data/features/form-attribute.js +1 -0
- package/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -0
- package/node_modules/caniuse-lite/data/features/form-validation.js +1 -0
- package/node_modules/caniuse-lite/data/features/forms.js +1 -0
- package/node_modules/caniuse-lite/data/features/fullscreen.js +1 -0
- package/node_modules/caniuse-lite/data/features/gamepad.js +1 -0
- package/node_modules/caniuse-lite/data/features/geolocation.js +1 -0
- package/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -0
- package/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -0
- package/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -0
- package/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -0
- package/node_modules/caniuse-lite/data/features/gyroscope.js +1 -0
- package/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -0
- package/node_modules/caniuse-lite/data/features/hashchange.js +1 -0
- package/node_modules/caniuse-lite/data/features/heif.js +1 -0
- package/node_modules/caniuse-lite/data/features/hevc.js +1 -0
- package/node_modules/caniuse-lite/data/features/hidden.js +1 -0
- package/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -0
- package/node_modules/caniuse-lite/data/features/history.js +1 -0
- package/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -0
- package/node_modules/caniuse-lite/data/features/html5semantic.js +1 -0
- package/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -0
- package/node_modules/caniuse-lite/data/features/http2.js +1 -0
- package/node_modules/caniuse-lite/data/features/http3.js +1 -0
- package/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -0
- package/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -0
- package/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -0
- package/node_modules/caniuse-lite/data/features/imagecapture.js +1 -0
- package/node_modules/caniuse-lite/data/features/ime.js +1 -0
- package/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -0
- package/node_modules/caniuse-lite/data/features/import-maps.js +1 -0
- package/node_modules/caniuse-lite/data/features/imports.js +1 -0
- package/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -0
- package/node_modules/caniuse-lite/data/features/indexeddb.js +1 -0
- package/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -0
- package/node_modules/caniuse-lite/data/features/inline-block.js +1 -0
- package/node_modules/caniuse-lite/data/features/innertext.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-color.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-datetime.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-event.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-minlength.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-number.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-pattern.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-range.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-search.js +1 -0
- package/node_modules/caniuse-lite/data/features/input-selection.js +1 -0
- package/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -0
- package/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -0
- package/node_modules/caniuse-lite/data/features/internationalization.js +1 -0
- package/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -0
- package/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -0
- package/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -0
- package/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -0
- package/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -0
- package/node_modules/caniuse-lite/data/features/jpegxl.js +1 -0
- package/node_modules/caniuse-lite/data/features/jpegxr.js +1 -0
- package/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -0
- package/node_modules/caniuse-lite/data/features/json.js +1 -0
- package/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -0
- package/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -0
- package/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -0
- package/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -0
- package/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -0
- package/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -0
- package/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -0
- package/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -0
- package/node_modules/caniuse-lite/data/features/lazyload.js +1 -0
- package/node_modules/caniuse-lite/data/features/let.js +1 -0
- package/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -0
- package/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -0
- package/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -0
- package/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -0
- package/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -0
- package/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -0
- package/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -0
- package/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -0
- package/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -0
- package/node_modules/caniuse-lite/data/features/localecompare.js +1 -0
- package/node_modules/caniuse-lite/data/features/magnetometer.js +1 -0
- package/node_modules/caniuse-lite/data/features/matchesselector.js +1 -0
- package/node_modules/caniuse-lite/data/features/matchmedia.js +1 -0
- package/node_modules/caniuse-lite/data/features/mathml.js +1 -0
- package/node_modules/caniuse-lite/data/features/maxlength.js +1 -0
- package/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -0
- package/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -0
- package/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -0
- package/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -0
- package/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -0
- package/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -0
- package/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -0
- package/node_modules/caniuse-lite/data/features/media-fragments.js +1 -0
- package/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -0
- package/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -0
- package/node_modules/caniuse-lite/data/features/mediasource.js +1 -0
- package/node_modules/caniuse-lite/data/features/menu.js +1 -0
- package/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -0
- package/node_modules/caniuse-lite/data/features/meter.js +1 -0
- package/node_modules/caniuse-lite/data/features/midi.js +1 -0
- package/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -0
- package/node_modules/caniuse-lite/data/features/mp3.js +1 -0
- package/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -0
- package/node_modules/caniuse-lite/data/features/mpeg4.js +1 -0
- package/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -0
- package/node_modules/caniuse-lite/data/features/multicolumn.js +1 -0
- package/node_modules/caniuse-lite/data/features/mutation-events.js +1 -0
- package/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -0
- package/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -0
- package/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -0
- package/node_modules/caniuse-lite/data/features/nav-timing.js +1 -0
- package/node_modules/caniuse-lite/data/features/netinfo.js +1 -0
- package/node_modules/caniuse-lite/data/features/notifications.js +1 -0
- package/node_modules/caniuse-lite/data/features/object-entries.js +1 -0
- package/node_modules/caniuse-lite/data/features/object-fit.js +1 -0
- package/node_modules/caniuse-lite/data/features/object-observe.js +1 -0
- package/node_modules/caniuse-lite/data/features/object-values.js +1 -0
- package/node_modules/caniuse-lite/data/features/objectrtc.js +1 -0
- package/node_modules/caniuse-lite/data/features/offline-apps.js +1 -0
- package/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -0
- package/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -0
- package/node_modules/caniuse-lite/data/features/ogv.js +1 -0
- package/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -0
- package/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -0
- package/node_modules/caniuse-lite/data/features/online-status.js +1 -0
- package/node_modules/caniuse-lite/data/features/opus.js +1 -0
- package/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -0
- package/node_modules/caniuse-lite/data/features/outline.js +1 -0
- package/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -0
- package/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -0
- package/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -0
- package/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -0
- package/node_modules/caniuse-lite/data/features/passkeys.js +1 -0
- package/node_modules/caniuse-lite/data/features/passwordrules.js +1 -0
- package/node_modules/caniuse-lite/data/features/path2d.js +1 -0
- package/node_modules/caniuse-lite/data/features/payment-request.js +1 -0
- package/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -0
- package/node_modules/caniuse-lite/data/features/permissions-api.js +1 -0
- package/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -0
- package/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -0
- package/node_modules/caniuse-lite/data/features/picture.js +1 -0
- package/node_modules/caniuse-lite/data/features/ping.js +1 -0
- package/node_modules/caniuse-lite/data/features/png-alpha.js +1 -0
- package/node_modules/caniuse-lite/data/features/pointer-events.js +1 -0
- package/node_modules/caniuse-lite/data/features/pointer.js +1 -0
- package/node_modules/caniuse-lite/data/features/pointerlock.js +1 -0
- package/node_modules/caniuse-lite/data/features/portals.js +1 -0
- package/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -0
- package/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -0
- package/node_modules/caniuse-lite/data/features/progress.js +1 -0
- package/node_modules/caniuse-lite/data/features/promise-finally.js +1 -0
- package/node_modules/caniuse-lite/data/features/promises.js +1 -0
- package/node_modules/caniuse-lite/data/features/proximity.js +1 -0
- package/node_modules/caniuse-lite/data/features/proxy.js +1 -0
- package/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -0
- package/node_modules/caniuse-lite/data/features/push-api.js +1 -0
- package/node_modules/caniuse-lite/data/features/queryselector.js +1 -0
- package/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -0
- package/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -0
- package/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -0
- package/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -0
- package/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -0
- package/node_modules/caniuse-lite/data/features/rellist.js +1 -0
- package/node_modules/caniuse-lite/data/features/rem.js +1 -0
- package/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -0
- package/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -0
- package/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -0
- package/node_modules/caniuse-lite/data/features/resource-timing.js +1 -0
- package/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -0
- package/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -0
- package/node_modules/caniuse-lite/data/features/ruby.js +1 -0
- package/node_modules/caniuse-lite/data/features/run-in.js +1 -0
- package/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -0
- package/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -0
- package/node_modules/caniuse-lite/data/features/script-async.js +1 -0
- package/node_modules/caniuse-lite/data/features/script-defer.js +1 -0
- package/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -0
- package/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -0
- package/node_modules/caniuse-lite/data/features/sdch.js +1 -0
- package/node_modules/caniuse-lite/data/features/selection-api.js +1 -0
- package/node_modules/caniuse-lite/data/features/server-timing.js +1 -0
- package/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -0
- package/node_modules/caniuse-lite/data/features/setimmediate.js +1 -0
- package/node_modules/caniuse-lite/data/features/shadowdom.js +1 -0
- package/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -0
- package/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -0
- package/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -0
- package/node_modules/caniuse-lite/data/features/sni.js +1 -0
- package/node_modules/caniuse-lite/data/features/spdy.js +1 -0
- package/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -0
- package/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -0
- package/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -0
- package/node_modules/caniuse-lite/data/features/sql-storage.js +1 -0
- package/node_modules/caniuse-lite/data/features/srcset.js +1 -0
- package/node_modules/caniuse-lite/data/features/stream.js +1 -0
- package/node_modules/caniuse-lite/data/features/streams.js +1 -0
- package/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -0
- package/node_modules/caniuse-lite/data/features/style-scoped.js +1 -0
- package/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -0
- package/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -0
- package/node_modules/caniuse-lite/data/features/svg-css.js +1 -0
- package/node_modules/caniuse-lite/data/features/svg-filters.js +1 -0
- package/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -0
- package/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -0
- package/node_modules/caniuse-lite/data/features/svg-html.js +1 -0
- package/node_modules/caniuse-lite/data/features/svg-html5.js +1 -0
- package/node_modules/caniuse-lite/data/features/svg-img.js +1 -0
- package/node_modules/caniuse-lite/data/features/svg-smil.js +1 -0
- package/node_modules/caniuse-lite/data/features/svg.js +1 -0
- package/node_modules/caniuse-lite/data/features/sxg.js +1 -0
- package/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -0
- package/node_modules/caniuse-lite/data/features/template-literals.js +1 -0
- package/node_modules/caniuse-lite/data/features/template.js +1 -0
- package/node_modules/caniuse-lite/data/features/temporal.js +1 -0
- package/node_modules/caniuse-lite/data/features/testfeat.js +1 -0
- package/node_modules/caniuse-lite/data/features/text-decoration.js +1 -0
- package/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -0
- package/node_modules/caniuse-lite/data/features/text-overflow.js +1 -0
- package/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -0
- package/node_modules/caniuse-lite/data/features/text-stroke.js +1 -0
- package/node_modules/caniuse-lite/data/features/textcontent.js +1 -0
- package/node_modules/caniuse-lite/data/features/textencoder.js +1 -0
- package/node_modules/caniuse-lite/data/features/tls1-1.js +1 -0
- package/node_modules/caniuse-lite/data/features/tls1-2.js +1 -0
- package/node_modules/caniuse-lite/data/features/tls1-3.js +1 -0
- package/node_modules/caniuse-lite/data/features/touch.js +1 -0
- package/node_modules/caniuse-lite/data/features/transforms2d.js +1 -0
- package/node_modules/caniuse-lite/data/features/transforms3d.js +1 -0
- package/node_modules/caniuse-lite/data/features/trusted-types.js +1 -0
- package/node_modules/caniuse-lite/data/features/ttf.js +1 -0
- package/node_modules/caniuse-lite/data/features/typedarrays.js +1 -0
- package/node_modules/caniuse-lite/data/features/u2f.js +1 -0
- package/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -0
- package/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -0
- package/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -0
- package/node_modules/caniuse-lite/data/features/url.js +1 -0
- package/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -0
- package/node_modules/caniuse-lite/data/features/use-strict.js +1 -0
- package/node_modules/caniuse-lite/data/features/user-select-none.js +1 -0
- package/node_modules/caniuse-lite/data/features/user-timing.js +1 -0
- package/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -0
- package/node_modules/caniuse-lite/data/features/vector-effect.js +1 -0
- package/node_modules/caniuse-lite/data/features/vibration.js +1 -0
- package/node_modules/caniuse-lite/data/features/video.js +1 -0
- package/node_modules/caniuse-lite/data/features/videotracks.js +1 -0
- package/node_modules/caniuse-lite/data/features/view-transitions.js +1 -0
- package/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -0
- package/node_modules/caniuse-lite/data/features/viewport-units.js +1 -0
- package/node_modules/caniuse-lite/data/features/wai-aria.js +1 -0
- package/node_modules/caniuse-lite/data/features/wake-lock.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm.js +1 -0
- package/node_modules/caniuse-lite/data/features/wav.js +1 -0
- package/node_modules/caniuse-lite/data/features/wbr-element.js +1 -0
- package/node_modules/caniuse-lite/data/features/web-animation.js +1 -0
- package/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -0
- package/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -0
- package/node_modules/caniuse-lite/data/features/web-serial.js +1 -0
- package/node_modules/caniuse-lite/data/features/web-share.js +1 -0
- package/node_modules/caniuse-lite/data/features/webauthn.js +1 -0
- package/node_modules/caniuse-lite/data/features/webcodecs.js +1 -0
- package/node_modules/caniuse-lite/data/features/webgl.js +1 -0
- package/node_modules/caniuse-lite/data/features/webgl2.js +1 -0
- package/node_modules/caniuse-lite/data/features/webgpu.js +1 -0
- package/node_modules/caniuse-lite/data/features/webhid.js +1 -0
- package/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -0
- package/node_modules/caniuse-lite/data/features/webm.js +1 -0
- package/node_modules/caniuse-lite/data/features/webnfc.js +1 -0
- package/node_modules/caniuse-lite/data/features/webp.js +1 -0
- package/node_modules/caniuse-lite/data/features/websockets.js +1 -0
- package/node_modules/caniuse-lite/data/features/webtransport.js +1 -0
- package/node_modules/caniuse-lite/data/features/webusb.js +1 -0
- package/node_modules/caniuse-lite/data/features/webvr.js +1 -0
- package/node_modules/caniuse-lite/data/features/webvtt.js +1 -0
- package/node_modules/caniuse-lite/data/features/webworkers.js +1 -0
- package/node_modules/caniuse-lite/data/features/webxr.js +1 -0
- package/node_modules/caniuse-lite/data/features/will-change.js +1 -0
- package/node_modules/caniuse-lite/data/features/woff.js +1 -0
- package/node_modules/caniuse-lite/data/features/woff2.js +1 -0
- package/node_modules/caniuse-lite/data/features/word-break.js +1 -0
- package/node_modules/caniuse-lite/data/features/wordwrap.js +1 -0
- package/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -0
- package/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -0
- package/node_modules/caniuse-lite/data/features/xhr2.js +1 -0
- package/node_modules/caniuse-lite/data/features/xhtml.js +1 -0
- package/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -0
- package/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -0
- package/node_modules/caniuse-lite/data/features/zstd.js +1 -0
- package/node_modules/caniuse-lite/data/features.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AD.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AF.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AI.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AL.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AO.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AS.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AT.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AU.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AW.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AX.js +1 -0
- package/node_modules/caniuse-lite/data/regions/AZ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BB.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BD.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BF.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BH.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BI.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BJ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BN.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BO.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BS.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BT.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BW.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BY.js +1 -0
- package/node_modules/caniuse-lite/data/regions/BZ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CD.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CF.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CH.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CI.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CK.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CL.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CN.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CO.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CU.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CV.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CX.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CY.js +1 -0
- package/node_modules/caniuse-lite/data/regions/CZ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/DE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/DJ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/DK.js +1 -0
- package/node_modules/caniuse-lite/data/regions/DM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/DO.js +1 -0
- package/node_modules/caniuse-lite/data/regions/DZ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/EC.js +1 -0
- package/node_modules/caniuse-lite/data/regions/EE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/EG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/ER.js +1 -0
- package/node_modules/caniuse-lite/data/regions/ES.js +1 -0
- package/node_modules/caniuse-lite/data/regions/ET.js +1 -0
- package/node_modules/caniuse-lite/data/regions/FI.js +1 -0
- package/node_modules/caniuse-lite/data/regions/FJ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/FK.js +1 -0
- package/node_modules/caniuse-lite/data/regions/FM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/FO.js +1 -0
- package/node_modules/caniuse-lite/data/regions/FR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GB.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GD.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GF.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GH.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GI.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GL.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GN.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GP.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GQ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GT.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GU.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GW.js +1 -0
- package/node_modules/caniuse-lite/data/regions/GY.js +1 -0
- package/node_modules/caniuse-lite/data/regions/HK.js +1 -0
- package/node_modules/caniuse-lite/data/regions/HN.js +1 -0
- package/node_modules/caniuse-lite/data/regions/HR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/HT.js +1 -0
- package/node_modules/caniuse-lite/data/regions/HU.js +1 -0
- package/node_modules/caniuse-lite/data/regions/ID.js +1 -0
- package/node_modules/caniuse-lite/data/regions/IE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/IL.js +1 -0
- package/node_modules/caniuse-lite/data/regions/IM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/IN.js +1 -0
- package/node_modules/caniuse-lite/data/regions/IQ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/IR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/IS.js +1 -0
- package/node_modules/caniuse-lite/data/regions/IT.js +1 -0
- package/node_modules/caniuse-lite/data/regions/JE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/JM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/JO.js +1 -0
- package/node_modules/caniuse-lite/data/regions/JP.js +1 -0
- package/node_modules/caniuse-lite/data/regions/KE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/KG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/KH.js +1 -0
- package/node_modules/caniuse-lite/data/regions/KI.js +1 -0
- package/node_modules/caniuse-lite/data/regions/KM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/KN.js +1 -0
- package/node_modules/caniuse-lite/data/regions/KP.js +1 -0
- package/node_modules/caniuse-lite/data/regions/KR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/KW.js +1 -0
- package/node_modules/caniuse-lite/data/regions/KY.js +1 -0
- package/node_modules/caniuse-lite/data/regions/KZ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/LA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/LB.js +1 -0
- package/node_modules/caniuse-lite/data/regions/LC.js +1 -0
- package/node_modules/caniuse-lite/data/regions/LI.js +1 -0
- package/node_modules/caniuse-lite/data/regions/LK.js +1 -0
- package/node_modules/caniuse-lite/data/regions/LR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/LS.js +1 -0
- package/node_modules/caniuse-lite/data/regions/LT.js +1 -0
- package/node_modules/caniuse-lite/data/regions/LU.js +1 -0
- package/node_modules/caniuse-lite/data/regions/LV.js +1 -0
- package/node_modules/caniuse-lite/data/regions/LY.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MC.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MD.js +1 -0
- package/node_modules/caniuse-lite/data/regions/ME.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MH.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MK.js +1 -0
- package/node_modules/caniuse-lite/data/regions/ML.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MN.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MO.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MP.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MQ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MS.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MT.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MU.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MV.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MW.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MX.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MY.js +1 -0
- package/node_modules/caniuse-lite/data/regions/MZ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NC.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NF.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NI.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NL.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NO.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NP.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NU.js +1 -0
- package/node_modules/caniuse-lite/data/regions/NZ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/OM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PF.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PH.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PK.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PL.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PN.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PS.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PT.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PW.js +1 -0
- package/node_modules/caniuse-lite/data/regions/PY.js +1 -0
- package/node_modules/caniuse-lite/data/regions/QA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/RE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/RO.js +1 -0
- package/node_modules/caniuse-lite/data/regions/RS.js +1 -0
- package/node_modules/caniuse-lite/data/regions/RU.js +1 -0
- package/node_modules/caniuse-lite/data/regions/RW.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SB.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SC.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SD.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SH.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SI.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SK.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SL.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SN.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SO.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/ST.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SV.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SY.js +1 -0
- package/node_modules/caniuse-lite/data/regions/SZ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TC.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TD.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TH.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TJ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TK.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TL.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TN.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TO.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TR.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TT.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TV.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TW.js +1 -0
- package/node_modules/caniuse-lite/data/regions/TZ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/UA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/UG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/US.js +1 -0
- package/node_modules/caniuse-lite/data/regions/UY.js +1 -0
- package/node_modules/caniuse-lite/data/regions/UZ.js +1 -0
- package/node_modules/caniuse-lite/data/regions/VA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/VC.js +1 -0
- package/node_modules/caniuse-lite/data/regions/VE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/VG.js +1 -0
- package/node_modules/caniuse-lite/data/regions/VI.js +1 -0
- package/node_modules/caniuse-lite/data/regions/VN.js +1 -0
- package/node_modules/caniuse-lite/data/regions/VU.js +1 -0
- package/node_modules/caniuse-lite/data/regions/WF.js +1 -0
- package/node_modules/caniuse-lite/data/regions/WS.js +1 -0
- package/node_modules/caniuse-lite/data/regions/YE.js +1 -0
- package/node_modules/caniuse-lite/data/regions/YT.js +1 -0
- package/node_modules/caniuse-lite/data/regions/ZA.js +1 -0
- package/node_modules/caniuse-lite/data/regions/ZM.js +1 -0
- package/node_modules/caniuse-lite/data/regions/ZW.js +1 -0
- package/node_modules/caniuse-lite/data/regions/alt-af.js +1 -0
- package/node_modules/caniuse-lite/data/regions/alt-an.js +1 -0
- package/node_modules/caniuse-lite/data/regions/alt-as.js +1 -0
- package/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -0
- package/node_modules/caniuse-lite/data/regions/alt-na.js +1 -0
- package/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -0
- package/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -0
- package/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -0
- package/node_modules/caniuse-lite/dist/lib/statuses.js +9 -0
- package/node_modules/caniuse-lite/dist/lib/supported.js +9 -0
- package/node_modules/caniuse-lite/dist/unpacker/agents.js +47 -0
- package/node_modules/caniuse-lite/dist/unpacker/browserVersions.js +1 -0
- package/node_modules/caniuse-lite/dist/unpacker/browsers.js +1 -0
- package/node_modules/caniuse-lite/dist/unpacker/feature.js +48 -0
- package/node_modules/caniuse-lite/dist/unpacker/features.js +6 -0
- package/node_modules/caniuse-lite/dist/unpacker/index.js +4 -0
- package/node_modules/caniuse-lite/dist/unpacker/region.js +22 -0
- package/node_modules/caniuse-lite/package.json +34 -0
- package/node_modules/chalk/index.js +228 -0
- package/node_modules/chalk/index.js.flow +93 -0
- package/node_modules/chalk/license +9 -0
- package/node_modules/chalk/package.json +71 -0
- package/node_modules/chalk/readme.md +314 -0
- package/node_modules/chalk/templates.js +128 -0
- package/node_modules/chalk/types/index.d.ts +97 -0
- package/node_modules/clean-stack/index.d.ts +47 -0
- package/node_modules/clean-stack/index.js +40 -0
- package/node_modules/clean-stack/license +9 -0
- package/node_modules/clean-stack/package.json +39 -0
- package/node_modules/clean-stack/readme.md +76 -0
- package/node_modules/cliui/CHANGELOG.md +76 -0
- package/node_modules/cliui/LICENSE.txt +14 -0
- package/node_modules/cliui/README.md +115 -0
- package/node_modules/cliui/index.js +354 -0
- package/node_modules/cliui/package.json +65 -0
- package/node_modules/color-convert/CHANGELOG.md +54 -0
- package/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +868 -0
- package/node_modules/color-convert/index.js +78 -0
- package/node_modules/color-convert/package.json +46 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-name/.eslintrc.json +43 -0
- package/node_modules/color-name/.npmignore +107 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +25 -0
- package/node_modules/color-name/test.js +7 -0
- package/node_modules/commondir/LICENSE +24 -0
- package/node_modules/commondir/example/dir.js +3 -0
- package/node_modules/commondir/index.js +29 -0
- package/node_modules/commondir/package.json +34 -0
- package/node_modules/commondir/readme.markdown +48 -0
- package/node_modules/commondir/test/dirs.js +55 -0
- package/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/concat-map/index.js +13 -0
- package/node_modules/concat-map/package.json +43 -0
- package/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/convert-source-map/LICENSE +23 -0
- package/node_modules/convert-source-map/README.md +123 -0
- package/node_modules/convert-source-map/index.js +179 -0
- package/node_modules/convert-source-map/package.json +41 -0
- package/node_modules/cross-spawn/CHANGELOG.md +130 -0
- package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/cross-spawn/README.md +96 -0
- package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/cross-spawn/lib/parse.js +91 -0
- package/node_modules/cross-spawn/lib/util/escape.js +45 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/node_modules/cross-spawn/package.json +73 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +59 -0
- package/node_modules/debug/src/browser.js +269 -0
- package/node_modules/debug/src/common.js +274 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/decamelize/index.js +13 -0
- package/node_modules/decamelize/license +21 -0
- package/node_modules/decamelize/package.json +38 -0
- package/node_modules/decamelize/readme.md +48 -0
- package/node_modules/default-require-extensions/js.js +8 -0
- package/node_modules/default-require-extensions/json.js +14 -0
- package/node_modules/default-require-extensions/license +11 -0
- package/node_modules/default-require-extensions/package.json +43 -0
- package/node_modules/default-require-extensions/readme.md +27 -0
- package/node_modules/electron-to-chromium/CHANGELOG.md +14 -0
- package/node_modules/electron-to-chromium/LICENSE +5 -0
- package/node_modules/electron-to-chromium/README.md +186 -0
- package/node_modules/electron-to-chromium/chromium-versions.js +57 -0
- package/node_modules/electron-to-chromium/chromium-versions.json +1 -0
- package/node_modules/electron-to-chromium/full-chromium-versions.js +2726 -0
- package/node_modules/electron-to-chromium/full-chromium-versions.json +1 -0
- package/node_modules/electron-to-chromium/full-versions.js +1994 -0
- package/node_modules/electron-to-chromium/full-versions.json +1 -0
- package/node_modules/electron-to-chromium/index.js +36 -0
- package/node_modules/electron-to-chromium/package.json +44 -0
- package/node_modules/electron-to-chromium/versions.js +129 -0
- package/node_modules/electron-to-chromium/versions.json +1 -0
- package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/emoji-regex/index.d.ts +23 -0
- package/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/emoji-regex/package.json +50 -0
- package/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/es6-error/CHANGELOG.md +26 -0
- package/node_modules/es6-error/LICENSE.md +21 -0
- package/node_modules/es6-error/README.md +59 -0
- package/node_modules/es6-error/es6/index.js +72 -0
- package/node_modules/es6-error/lib/index.js +79 -0
- package/node_modules/es6-error/package.json +48 -0
- package/node_modules/es6-error/typings/index.d.ts +1 -0
- package/node_modules/escalade/dist/index.js +22 -0
- package/node_modules/escalade/dist/index.mjs +22 -0
- package/node_modules/escalade/index.d.ts +3 -0
- package/node_modules/escalade/license +9 -0
- package/node_modules/escalade/package.json +61 -0
- package/node_modules/escalade/readme.md +211 -0
- package/node_modules/escalade/sync/index.d.ts +2 -0
- package/node_modules/escalade/sync/index.js +18 -0
- package/node_modules/escalade/sync/index.mjs +18 -0
- package/node_modules/escape-string-regexp/index.js +11 -0
- package/node_modules/escape-string-regexp/license +21 -0
- package/node_modules/escape-string-regexp/package.json +41 -0
- package/node_modules/escape-string-regexp/readme.md +27 -0
- package/node_modules/esprima/ChangeLog +235 -0
- package/node_modules/esprima/LICENSE.BSD +21 -0
- package/node_modules/esprima/README.md +46 -0
- package/node_modules/esprima/bin/esparse.js +139 -0
- package/node_modules/esprima/bin/esvalidate.js +236 -0
- package/node_modules/esprima/dist/esprima.js +6709 -0
- package/node_modules/esprima/package.json +112 -0
- package/node_modules/fast-xml-parser/LICENSE +21 -0
- package/node_modules/fast-xml-parser/README.md +367 -0
- package/node_modules/fast-xml-parser/cli.js +101 -0
- package/node_modules/fast-xml-parser/package.json +94 -0
- package/node_modules/fast-xml-parser/src/json2xml.js +274 -0
- package/node_modules/fast-xml-parser/src/nimndata.js +144 -0
- package/node_modules/fast-xml-parser/src/node2json.js +42 -0
- package/node_modules/fast-xml-parser/src/node2json_str.js +63 -0
- package/node_modules/fast-xml-parser/src/parser.d.ts +79 -0
- package/node_modules/fast-xml-parser/src/parser.js +76 -0
- package/node_modules/fast-xml-parser/src/read.js +92 -0
- package/node_modules/fast-xml-parser/src/util.js +108 -0
- package/node_modules/fast-xml-parser/src/validator.js +413 -0
- package/node_modules/fast-xml-parser/src/xmlNode.js +17 -0
- package/node_modules/fast-xml-parser/src/xmlstr2xmlnode.js +339 -0
- package/node_modules/find-cache-dir/index.js +67 -0
- package/node_modules/find-cache-dir/license +9 -0
- package/node_modules/find-cache-dir/package.json +44 -0
- package/node_modules/find-cache-dir/readme.md +123 -0
- package/node_modules/find-up/index.d.ts +137 -0
- package/node_modules/find-up/index.js +89 -0
- package/node_modules/find-up/license +9 -0
- package/node_modules/find-up/package.json +53 -0
- package/node_modules/find-up/readme.md +156 -0
- package/node_modules/foreground-child/CHANGELOG.md +99 -0
- package/node_modules/foreground-child/LICENSE +15 -0
- package/node_modules/foreground-child/README.md +62 -0
- package/node_modules/foreground-child/changelog.sh +10 -0
- package/node_modules/foreground-child/index.js +133 -0
- package/node_modules/foreground-child/package.json +40 -0
- package/node_modules/fromentries/LICENSE +20 -0
- package/node_modules/fromentries/README.md +70 -0
- package/node_modules/fromentries/index.d.ts +3 -0
- package/node_modules/fromentries/index.js +7 -0
- package/node_modules/fromentries/package.json +58 -0
- package/node_modules/fs.realpath/LICENSE +43 -0
- package/node_modules/fs.realpath/README.md +33 -0
- package/node_modules/fs.realpath/index.js +66 -0
- package/node_modules/fs.realpath/old.js +303 -0
- package/node_modules/fs.realpath/package.json +26 -0
- package/node_modules/gensync/LICENSE +7 -0
- package/node_modules/gensync/README.md +196 -0
- package/node_modules/gensync/index.js +373 -0
- package/node_modules/gensync/index.js.flow +32 -0
- package/node_modules/gensync/package.json +37 -0
- package/node_modules/gensync/test/.babelrc +5 -0
- package/node_modules/gensync/test/index.test.js +489 -0
- package/node_modules/get-caller-file/LICENSE.md +6 -0
- package/node_modules/get-caller-file/README.md +41 -0
- package/node_modules/get-caller-file/index.d.ts +2 -0
- package/node_modules/get-caller-file/index.js +22 -0
- package/node_modules/get-caller-file/index.js.map +1 -0
- package/node_modules/get-caller-file/package.json +42 -0
- package/node_modules/get-package-type/CHANGELOG.md +10 -0
- package/node_modules/get-package-type/LICENSE +21 -0
- package/node_modules/get-package-type/README.md +32 -0
- package/node_modules/get-package-type/async.cjs +52 -0
- package/node_modules/get-package-type/cache.cjs +3 -0
- package/node_modules/get-package-type/index.cjs +7 -0
- package/node_modules/get-package-type/is-node-modules.cjs +15 -0
- package/node_modules/get-package-type/package.json +35 -0
- package/node_modules/get-package-type/sync.cjs +42 -0
- package/node_modules/glob/LICENSE +21 -0
- package/node_modules/glob/README.md +378 -0
- package/node_modules/glob/common.js +238 -0
- package/node_modules/glob/glob.js +790 -0
- package/node_modules/glob/package.json +55 -0
- package/node_modules/glob/sync.js +486 -0
- package/node_modules/globals/globals.json +1563 -0
- package/node_modules/globals/index.js +2 -0
- package/node_modules/globals/license +9 -0
- package/node_modules/globals/package.json +41 -0
- package/node_modules/globals/readme.md +41 -0
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +143 -0
- package/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/graceful-fs/package.json +53 -0
- package/node_modules/graceful-fs/polyfills.js +355 -0
- package/node_modules/has-flag/index.js +8 -0
- package/node_modules/has-flag/license +9 -0
- package/node_modules/has-flag/package.json +44 -0
- package/node_modules/has-flag/readme.md +70 -0
- package/node_modules/hasha/index.d.ts +167 -0
- package/node_modules/hasha/index.js +150 -0
- package/node_modules/hasha/license +9 -0
- package/node_modules/hasha/package.json +62 -0
- package/node_modules/hasha/readme.md +129 -0
- package/node_modules/hasha/thread.js +57 -0
- package/node_modules/html-escaper/LICENSE.txt +19 -0
- package/node_modules/html-escaper/README.md +97 -0
- package/node_modules/html-escaper/cjs/index.js +65 -0
- package/node_modules/html-escaper/cjs/package.json +1 -0
- package/node_modules/html-escaper/esm/index.js +62 -0
- package/node_modules/html-escaper/index.js +70 -0
- package/node_modules/html-escaper/min.js +1 -0
- package/node_modules/html-escaper/package.json +42 -0
- package/node_modules/html-escaper/test/index.js +23 -0
- package/node_modules/html-escaper/test/package.json +1 -0
- package/node_modules/imurmurhash/README.md +122 -0
- package/node_modules/imurmurhash/imurmurhash.js +138 -0
- package/node_modules/imurmurhash/imurmurhash.min.js +12 -0
- package/node_modules/imurmurhash/package.json +40 -0
- package/node_modules/indent-string/index.d.ts +42 -0
- package/node_modules/indent-string/index.js +35 -0
- package/node_modules/indent-string/license +9 -0
- package/node_modules/indent-string/package.json +37 -0
- package/node_modules/indent-string/readme.md +70 -0
- package/node_modules/inflight/LICENSE +15 -0
- package/node_modules/inflight/README.md +37 -0
- package/node_modules/inflight/inflight.js +54 -0
- package/node_modules/inflight/package.json +29 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/node_modules/is-fullwidth-code-point/index.js +50 -0
- package/node_modules/is-fullwidth-code-point/license +9 -0
- package/node_modules/is-fullwidth-code-point/package.json +42 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/is-stream/index.d.ts +79 -0
- package/node_modules/is-stream/index.js +28 -0
- package/node_modules/is-stream/license +9 -0
- package/node_modules/is-stream/package.json +42 -0
- package/node_modules/is-stream/readme.md +60 -0
- package/node_modules/is-typedarray/LICENSE.md +18 -0
- package/node_modules/is-typedarray/README.md +16 -0
- package/node_modules/is-typedarray/index.js +41 -0
- package/node_modules/is-typedarray/package.json +30 -0
- package/node_modules/is-typedarray/test.js +34 -0
- package/node_modules/is-windows/LICENSE +21 -0
- package/node_modules/is-windows/README.md +95 -0
- package/node_modules/is-windows/index.js +27 -0
- package/node_modules/is-windows/package.json +71 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +31 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/istanbul-lib-coverage/CHANGELOG.md +193 -0
- package/node_modules/istanbul-lib-coverage/LICENSE +24 -0
- package/node_modules/istanbul-lib-coverage/README.md +29 -0
- package/node_modules/istanbul-lib-coverage/index.js +64 -0
- package/node_modules/istanbul-lib-coverage/lib/coverage-map.js +134 -0
- package/node_modules/istanbul-lib-coverage/lib/coverage-summary.js +112 -0
- package/node_modules/istanbul-lib-coverage/lib/data-properties.js +12 -0
- package/node_modules/istanbul-lib-coverage/lib/file-coverage.js +345 -0
- package/node_modules/istanbul-lib-coverage/lib/percent.js +15 -0
- package/node_modules/istanbul-lib-coverage/package.json +47 -0
- package/node_modules/istanbul-lib-hook/CHANGELOG.md +184 -0
- package/node_modules/istanbul-lib-hook/LICENSE +24 -0
- package/node_modules/istanbul-lib-hook/README.md +6 -0
- package/node_modules/istanbul-lib-hook/index.js +6 -0
- package/node_modules/istanbul-lib-hook/lib/hook.js +237 -0
- package/node_modules/istanbul-lib-hook/package.json +40 -0
- package/node_modules/istanbul-lib-instrument/CHANGELOG.md +571 -0
- package/node_modules/istanbul-lib-instrument/LICENSE +24 -0
- package/node_modules/istanbul-lib-instrument/README.md +21 -0
- package/node_modules/istanbul-lib-instrument/dist/constants.js +22 -0
- package/node_modules/istanbul-lib-instrument/dist/index.js +42 -0
- package/node_modules/istanbul-lib-instrument/dist/instrumenter.js +182 -0
- package/node_modules/istanbul-lib-instrument/dist/read-coverage.js +87 -0
- package/node_modules/istanbul-lib-instrument/dist/source-coverage.js +121 -0
- package/node_modules/istanbul-lib-instrument/dist/visitor.js +683 -0
- package/node_modules/istanbul-lib-instrument/package.json +54 -0
- package/node_modules/istanbul-lib-processinfo/LICENSE +15 -0
- package/node_modules/istanbul-lib-processinfo/README.md +188 -0
- package/node_modules/istanbul-lib-processinfo/index.js +347 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/CHANGELOG.md +229 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/README.md +505 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/rng-browser.js +26 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/stringify.js +39 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/v35.js +78 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/v4.js +37 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/package.json +135 -0
- package/node_modules/istanbul-lib-processinfo/node_modules/uuid/wrapper.mjs +10 -0
- package/node_modules/istanbul-lib-processinfo/package.json +42 -0
- package/node_modules/istanbul-lib-report/CHANGELOG.md +192 -0
- package/node_modules/istanbul-lib-report/LICENSE +24 -0
- package/node_modules/istanbul-lib-report/README.md +43 -0
- package/node_modules/istanbul-lib-report/index.js +40 -0
- package/node_modules/istanbul-lib-report/lib/context.js +132 -0
- package/node_modules/istanbul-lib-report/lib/file-writer.js +189 -0
- package/node_modules/istanbul-lib-report/lib/path.js +169 -0
- package/node_modules/istanbul-lib-report/lib/report-base.js +16 -0
- package/node_modules/istanbul-lib-report/lib/summarizer-factory.js +284 -0
- package/node_modules/istanbul-lib-report/lib/tree.js +137 -0
- package/node_modules/istanbul-lib-report/lib/watermarks.js +15 -0
- package/node_modules/istanbul-lib-report/lib/xml-writer.js +90 -0
- package/node_modules/istanbul-lib-report/node_modules/has-flag/index.d.ts +39 -0
- package/node_modules/istanbul-lib-report/node_modules/has-flag/index.js +8 -0
- package/node_modules/istanbul-lib-report/node_modules/has-flag/license +9 -0
- package/node_modules/istanbul-lib-report/node_modules/has-flag/package.json +46 -0
- package/node_modules/istanbul-lib-report/node_modules/has-flag/readme.md +89 -0
- package/node_modules/istanbul-lib-report/node_modules/lru-cache/LICENSE +15 -0
- package/node_modules/istanbul-lib-report/node_modules/lru-cache/README.md +166 -0
- package/node_modules/istanbul-lib-report/node_modules/lru-cache/index.js +334 -0
- package/node_modules/istanbul-lib-report/node_modules/lru-cache/package.json +34 -0
- package/node_modules/istanbul-lib-report/node_modules/make-dir/index.d.ts +66 -0
- package/node_modules/istanbul-lib-report/node_modules/make-dir/index.js +155 -0
- package/node_modules/istanbul-lib-report/node_modules/make-dir/license +9 -0
- package/node_modules/istanbul-lib-report/node_modules/make-dir/package.json +63 -0
- package/node_modules/istanbul-lib-report/node_modules/make-dir/readme.md +125 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/LICENSE +15 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/README.md +637 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/bin/semver.js +197 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/classes/comparator.js +141 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/classes/index.js +5 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/classes/range.js +539 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/classes/semver.js +302 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/clean.js +6 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/cmp.js +52 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/coerce.js +52 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/compare-build.js +7 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/compare-loose.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/compare.js +5 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/diff.js +65 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/eq.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/gt.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/gte.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/inc.js +19 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/lt.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/lte.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/major.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/minor.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/neq.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/parse.js +16 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/patch.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/prerelease.js +6 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/rcompare.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/rsort.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/satisfies.js +10 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/sort.js +3 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/functions/valid.js +6 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/index.js +89 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/internal/constants.js +35 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/internal/debug.js +9 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/internal/identifiers.js +23 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/internal/parse-options.js +15 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/internal/re.js +212 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/package.json +87 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/preload.js +2 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/range.bnf +16 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/ranges/gtr.js +4 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/ranges/intersects.js +7 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/ranges/ltr.js +4 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/ranges/min-version.js +61 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/ranges/outside.js +80 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/ranges/simplify.js +47 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/ranges/subset.js +247 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/ranges/to-comparators.js +8 -0
- package/node_modules/istanbul-lib-report/node_modules/semver/ranges/valid.js +11 -0
- package/node_modules/istanbul-lib-report/node_modules/supports-color/browser.js +5 -0
- package/node_modules/istanbul-lib-report/node_modules/supports-color/index.js +135 -0
- package/node_modules/istanbul-lib-report/node_modules/supports-color/license +9 -0
- package/node_modules/istanbul-lib-report/node_modules/supports-color/package.json +53 -0
- package/node_modules/istanbul-lib-report/node_modules/supports-color/readme.md +76 -0
- package/node_modules/istanbul-lib-report/node_modules/yallist/LICENSE +15 -0
- package/node_modules/istanbul-lib-report/node_modules/yallist/README.md +204 -0
- package/node_modules/istanbul-lib-report/node_modules/yallist/iterator.js +8 -0
- package/node_modules/istanbul-lib-report/node_modules/yallist/package.json +29 -0
- package/node_modules/istanbul-lib-report/node_modules/yallist/yallist.js +426 -0
- package/node_modules/istanbul-lib-report/package.json +44 -0
- package/node_modules/istanbul-lib-source-maps/CHANGELOG.md +295 -0
- package/node_modules/istanbul-lib-source-maps/LICENSE +24 -0
- package/node_modules/istanbul-lib-source-maps/README.md +11 -0
- package/node_modules/istanbul-lib-source-maps/index.js +15 -0
- package/node_modules/istanbul-lib-source-maps/lib/get-mapping.js +182 -0
- package/node_modules/istanbul-lib-source-maps/lib/map-store.js +226 -0
- package/node_modules/istanbul-lib-source-maps/lib/mapped.js +113 -0
- package/node_modules/istanbul-lib-source-maps/lib/pathutils.js +21 -0
- package/node_modules/istanbul-lib-source-maps/lib/transform-utils.js +21 -0
- package/node_modules/istanbul-lib-source-maps/lib/transformer.js +147 -0
- package/node_modules/istanbul-lib-source-maps/package.json +45 -0
- package/node_modules/istanbul-reports/CHANGELOG.md +457 -0
- package/node_modules/istanbul-reports/LICENSE +24 -0
- package/node_modules/istanbul-reports/README.md +13 -0
- package/node_modules/istanbul-reports/index.js +24 -0
- package/node_modules/istanbul-reports/lib/clover/index.js +163 -0
- package/node_modules/istanbul-reports/lib/cobertura/index.js +151 -0
- package/node_modules/istanbul-reports/lib/html/annotator.js +305 -0
- package/node_modules/istanbul-reports/lib/html/assets/base.css +224 -0
- package/node_modules/istanbul-reports/lib/html/assets/block-navigation.js +86 -0
- package/node_modules/istanbul-reports/lib/html/assets/favicon.png +0 -0
- package/node_modules/istanbul-reports/lib/html/assets/sort-arrow-sprite.png +0 -0
- package/node_modules/istanbul-reports/lib/html/assets/sorter.js +195 -0
- package/node_modules/istanbul-reports/lib/html/assets/vendor/prettify.css +1 -0
- package/node_modules/istanbul-reports/lib/html/assets/vendor/prettify.js +1 -0
- package/node_modules/istanbul-reports/lib/html/index.js +421 -0
- package/node_modules/istanbul-reports/lib/html/insertion-text.js +114 -0
- package/node_modules/istanbul-reports/lib/html-spa/.babelrc +3 -0
- package/node_modules/istanbul-reports/lib/html-spa/assets/bundle.js +30 -0
- package/node_modules/istanbul-reports/lib/html-spa/assets/sort-arrow-sprite.png +0 -0
- package/node_modules/istanbul-reports/lib/html-spa/assets/spa.css +298 -0
- package/node_modules/istanbul-reports/lib/html-spa/index.js +176 -0
- package/node_modules/istanbul-reports/lib/html-spa/src/fileBreadcrumbs.js +31 -0
- package/node_modules/istanbul-reports/lib/html-spa/src/filterToggle.js +50 -0
- package/node_modules/istanbul-reports/lib/html-spa/src/flattenToggle.js +25 -0
- package/node_modules/istanbul-reports/lib/html-spa/src/getChildData.js +155 -0
- package/node_modules/istanbul-reports/lib/html-spa/src/index.js +160 -0
- package/node_modules/istanbul-reports/lib/html-spa/src/routing.js +52 -0
- package/node_modules/istanbul-reports/lib/html-spa/src/summaryHeader.js +63 -0
- package/node_modules/istanbul-reports/lib/html-spa/src/summaryTableHeader.js +130 -0
- package/node_modules/istanbul-reports/lib/html-spa/src/summaryTableLine.js +159 -0
- package/node_modules/istanbul-reports/lib/html-spa/webpack.config.js +22 -0
- package/node_modules/istanbul-reports/lib/json/index.js +44 -0
- package/node_modules/istanbul-reports/lib/json-summary/index.js +56 -0
- package/node_modules/istanbul-reports/lib/lcov/index.js +33 -0
- package/node_modules/istanbul-reports/lib/lcovonly/index.js +77 -0
- package/node_modules/istanbul-reports/lib/none/index.js +10 -0
- package/node_modules/istanbul-reports/lib/teamcity/index.js +67 -0
- package/node_modules/istanbul-reports/lib/text/index.js +298 -0
- package/node_modules/istanbul-reports/lib/text-lcov/index.js +17 -0
- package/node_modules/istanbul-reports/lib/text-summary/index.js +62 -0
- package/node_modules/istanbul-reports/package.json +60 -0
- package/node_modules/js-tokens/CHANGELOG.md +151 -0
- package/node_modules/js-tokens/LICENSE +21 -0
- package/node_modules/js-tokens/README.md +240 -0
- package/node_modules/js-tokens/index.js +23 -0
- package/node_modules/js-tokens/package.json +30 -0
- package/node_modules/js-yaml/CHANGELOG.md +557 -0
- package/node_modules/js-yaml/LICENSE +21 -0
- package/node_modules/js-yaml/README.md +299 -0
- package/node_modules/js-yaml/bin/js-yaml.js +132 -0
- package/node_modules/js-yaml/dist/js-yaml.js +3989 -0
- package/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
- package/node_modules/js-yaml/index.js +7 -0
- package/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
- package/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
- package/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
- package/node_modules/js-yaml/lib/js-yaml/loader.js +1644 -0
- package/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
- package/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
- package/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
- package/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
- package/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
- package/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
- package/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
- package/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
- package/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
- package/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
- package/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
- package/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
- package/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
- package/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
- package/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
- package/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
- package/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
- package/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
- package/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
- package/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
- package/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
- package/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
- package/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
- package/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
- package/node_modules/js-yaml/lib/js-yaml.js +39 -0
- package/node_modules/js-yaml/package.json +49 -0
- package/node_modules/jsesc/LICENSE-MIT.txt +20 -0
- package/node_modules/jsesc/README.md +421 -0
- package/node_modules/jsesc/bin/jsesc +148 -0
- package/node_modules/jsesc/jsesc.js +329 -0
- package/node_modules/jsesc/man/jsesc.1 +94 -0
- package/node_modules/jsesc/package.json +54 -0
- package/node_modules/json5/LICENSE.md +23 -0
- package/node_modules/json5/README.md +282 -0
- package/node_modules/json5/dist/index.js +1737 -0
- package/node_modules/json5/dist/index.min.js +1 -0
- package/node_modules/json5/dist/index.min.mjs +1 -0
- package/node_modules/json5/dist/index.mjs +1426 -0
- package/node_modules/json5/lib/cli.js +152 -0
- package/node_modules/json5/lib/index.d.ts +4 -0
- package/node_modules/json5/lib/index.js +9 -0
- package/node_modules/json5/lib/parse.d.ts +15 -0
- package/node_modules/json5/lib/parse.js +1114 -0
- package/node_modules/json5/lib/register.js +13 -0
- package/node_modules/json5/lib/require.js +4 -0
- package/node_modules/json5/lib/stringify.d.ts +89 -0
- package/node_modules/json5/lib/stringify.js +261 -0
- package/node_modules/json5/lib/unicode.d.ts +3 -0
- package/node_modules/json5/lib/unicode.js +4 -0
- package/node_modules/json5/lib/util.d.ts +5 -0
- package/node_modules/json5/lib/util.js +35 -0
- package/node_modules/json5/package.json +72 -0
- package/node_modules/locate-path/index.d.ts +83 -0
- package/node_modules/locate-path/index.js +65 -0
- package/node_modules/locate-path/license +9 -0
- package/node_modules/locate-path/package.json +45 -0
- package/node_modules/locate-path/readme.md +122 -0
- package/node_modules/lodash.flattendeep/LICENSE +47 -0
- package/node_modules/lodash.flattendeep/README.md +18 -0
- package/node_modules/lodash.flattendeep/index.js +350 -0
- package/node_modules/lodash.flattendeep/package.json +17 -0
- package/node_modules/long/LICENSE +202 -0
- package/node_modules/long/README.md +280 -0
- package/node_modules/long/index.d.ts +457 -0
- package/node_modules/long/index.js +1467 -0
- package/node_modules/long/package.json +50 -0
- package/node_modules/long/umd/index.d.ts +2 -0
- package/node_modules/long/umd/index.js +1432 -0
- package/node_modules/long/umd/package.json +3 -0
- package/node_modules/lru-cache/LICENSE +15 -0
- package/node_modules/lru-cache/README.md +166 -0
- package/node_modules/lru-cache/index.js +334 -0
- package/node_modules/lru-cache/package.json +32 -0
- package/node_modules/make-dir/index.d.ts +66 -0
- package/node_modules/make-dir/index.js +156 -0
- package/node_modules/make-dir/license +9 -0
- package/node_modules/make-dir/package.json +59 -0
- package/node_modules/make-dir/readme.md +125 -0
- package/node_modules/minimatch/LICENSE +15 -0
- package/node_modules/minimatch/README.md +230 -0
- package/node_modules/minimatch/minimatch.js +947 -0
- package/node_modules/minimatch/package.json +33 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +37 -0
- package/node_modules/ms/readme.md +60 -0
- package/node_modules/node-preload/CHANGELOG.md +61 -0
- package/node_modules/node-preload/LICENSE +21 -0
- package/node_modules/node-preload/README.md +47 -0
- package/node_modules/node-preload/generate-require.js +31 -0
- package/node_modules/node-preload/hook-spawn.js +21 -0
- package/node_modules/node-preload/index.js +5 -0
- package/node_modules/node-preload/internal-preload-module.js +25 -0
- package/node_modules/node-preload/package.json +50 -0
- package/node_modules/node-preload/preload-list-env.js +8 -0
- package/node_modules/node-preload/preload-list.js +15 -0
- package/node_modules/node-preload/preload-path/node-preload.js +11 -0
- package/node_modules/node-preload/process-node-options.js +16 -0
- package/node_modules/node-releases/LICENSE +21 -0
- package/node_modules/node-releases/README.md +12 -0
- package/node_modules/node-releases/data/processed/envs.json +1 -0
- package/node_modules/node-releases/data/release-schedule/release-schedule.json +1 -0
- package/node_modules/node-releases/package.json +19 -0
- package/node_modules/nyc/CHANGELOG.md +1017 -0
- package/node_modules/nyc/LICENSE.txt +16 -0
- package/node_modules/nyc/README.md +388 -0
- package/node_modules/nyc/bin/nyc.js +118 -0
- package/node_modules/nyc/bin/wrap.js +4 -0
- package/node_modules/nyc/index.js +546 -0
- package/node_modules/nyc/lib/commands/check-coverage.js +28 -0
- package/node_modules/nyc/lib/commands/helpers.js +74 -0
- package/node_modules/nyc/lib/commands/instrument.js +63 -0
- package/node_modules/nyc/lib/commands/merge.js +46 -0
- package/node_modules/nyc/lib/commands/report.js +30 -0
- package/node_modules/nyc/lib/config-util.js +65 -0
- package/node_modules/nyc/lib/fs-promises.js +51 -0
- package/node_modules/nyc/lib/hash.js +30 -0
- package/node_modules/nyc/lib/instrumenters/istanbul.js +44 -0
- package/node_modules/nyc/lib/instrumenters/noop.js +22 -0
- package/node_modules/nyc/lib/process-args.js +39 -0
- package/node_modules/nyc/lib/register-env.js +27 -0
- package/node_modules/nyc/lib/source-maps.js +84 -0
- package/node_modules/nyc/lib/wrap.js +28 -0
- package/node_modules/nyc/package.json +107 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/p-limit/index.d.ts +38 -0
- package/node_modules/p-limit/index.js +57 -0
- package/node_modules/p-limit/license +9 -0
- package/node_modules/p-limit/package.json +52 -0
- package/node_modules/p-limit/readme.md +101 -0
- package/node_modules/p-locate/index.d.ts +64 -0
- package/node_modules/p-locate/index.js +52 -0
- package/node_modules/p-locate/license +9 -0
- package/node_modules/p-locate/package.json +53 -0
- package/node_modules/p-locate/readme.md +90 -0
- package/node_modules/p-map/index.d.ts +65 -0
- package/node_modules/p-map/index.js +81 -0
- package/node_modules/p-map/license +9 -0
- package/node_modules/p-map/package.json +52 -0
- package/node_modules/p-map/readme.md +99 -0
- package/node_modules/p-try/index.d.ts +39 -0
- package/node_modules/p-try/index.js +9 -0
- package/node_modules/p-try/license +9 -0
- package/node_modules/p-try/package.json +42 -0
- package/node_modules/p-try/readme.md +58 -0
- package/node_modules/package-hash/LICENSE +14 -0
- package/node_modules/package-hash/README.md +79 -0
- package/node_modules/package-hash/index.js +162 -0
- package/node_modules/package-hash/package.json +60 -0
- package/node_modules/path-exists/index.d.ts +28 -0
- package/node_modules/path-exists/index.js +23 -0
- package/node_modules/path-exists/license +9 -0
- package/node_modules/path-exists/package.json +39 -0
- package/node_modules/path-exists/readme.md +52 -0
- package/node_modules/path-is-absolute/index.js +20 -0
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/path-is-absolute/package.json +43 -0
- package/node_modules/path-is-absolute/readme.md +59 -0
- package/node_modules/path-key/index.d.ts +40 -0
- package/node_modules/path-key/index.js +16 -0
- package/node_modules/path-key/license +9 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/path-key/readme.md +61 -0
- package/node_modules/picocolors/LICENSE +15 -0
- package/node_modules/picocolors/README.md +21 -0
- package/node_modules/picocolors/package.json +25 -0
- package/node_modules/picocolors/picocolors.browser.js +4 -0
- package/node_modules/picocolors/picocolors.d.ts +5 -0
- package/node_modules/picocolors/picocolors.js +58 -0
- package/node_modules/picocolors/types.ts +30 -0
- package/node_modules/pkg-dir/index.d.ts +44 -0
- package/node_modules/pkg-dir/index.js +17 -0
- package/node_modules/pkg-dir/license +9 -0
- package/node_modules/pkg-dir/package.json +56 -0
- package/node_modules/pkg-dir/readme.md +66 -0
- package/node_modules/process-on-spawn/CHANGELOG.md +10 -0
- package/node_modules/process-on-spawn/LICENSE +21 -0
- package/node_modules/process-on-spawn/README.md +64 -0
- package/node_modules/process-on-spawn/index.js +112 -0
- package/node_modules/process-on-spawn/package.json +34 -0
- package/node_modules/protobufjs/LICENSE +39 -0
- package/node_modules/protobufjs/README.md +740 -0
- package/node_modules/protobufjs/dist/light/protobuf.js +7370 -0
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -0
- package/node_modules/protobufjs/dist/light/protobuf.min.js +8 -0
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2731 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +8 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -0
- package/node_modules/protobufjs/dist/protobuf.js +9066 -0
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -0
- package/node_modules/protobufjs/dist/protobuf.min.js +8 -0
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -0
- package/node_modules/protobufjs/ext/debug/README.md +4 -0
- package/node_modules/protobufjs/ext/debug/index.js +71 -0
- package/node_modules/protobufjs/ext/descriptor/README.md +72 -0
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -0
- package/node_modules/protobufjs/ext/descriptor/index.js +1052 -0
- package/node_modules/protobufjs/ext/descriptor/test.js +54 -0
- package/node_modules/protobufjs/google/LICENSE +27 -0
- package/node_modules/protobufjs/google/README.md +1 -0
- package/node_modules/protobufjs/google/api/annotations.json +83 -0
- package/node_modules/protobufjs/google/api/annotations.proto +11 -0
- package/node_modules/protobufjs/google/api/http.json +86 -0
- package/node_modules/protobufjs/google/api/http.proto +31 -0
- package/node_modules/protobufjs/google/protobuf/api.json +118 -0
- package/node_modules/protobufjs/google/protobuf/api.proto +34 -0
- package/node_modules/protobufjs/google/protobuf/descriptor.json +739 -0
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -0
- package/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
- package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -0
- package/node_modules/protobufjs/google/protobuf/type.json +202 -0
- package/node_modules/protobufjs/google/protobuf/type.proto +89 -0
- package/node_modules/protobufjs/index.d.ts +2741 -0
- package/node_modules/protobufjs/index.js +4 -0
- package/node_modules/protobufjs/light.d.ts +2 -0
- package/node_modules/protobufjs/light.js +4 -0
- package/node_modules/protobufjs/minimal.d.ts +2 -0
- package/node_modules/protobufjs/minimal.js +4 -0
- package/node_modules/protobufjs/package.json +111 -0
- package/node_modules/protobufjs/scripts/postinstall.js +32 -0
- package/node_modules/protobufjs/src/common.js +399 -0
- package/node_modules/protobufjs/src/converter.js +301 -0
- package/node_modules/protobufjs/src/decoder.js +129 -0
- package/node_modules/protobufjs/src/encoder.js +100 -0
- package/node_modules/protobufjs/src/enum.js +198 -0
- package/node_modules/protobufjs/src/field.js +377 -0
- package/node_modules/protobufjs/src/index-light.js +104 -0
- package/node_modules/protobufjs/src/index-minimal.js +36 -0
- package/node_modules/protobufjs/src/index.js +12 -0
- package/node_modules/protobufjs/src/mapfield.js +126 -0
- package/node_modules/protobufjs/src/message.js +139 -0
- package/node_modules/protobufjs/src/method.js +160 -0
- package/node_modules/protobufjs/src/namespace.js +433 -0
- package/node_modules/protobufjs/src/object.js +243 -0
- package/node_modules/protobufjs/src/oneof.js +203 -0
- package/node_modules/protobufjs/src/parse.js +869 -0
- package/node_modules/protobufjs/src/reader.js +411 -0
- package/node_modules/protobufjs/src/reader_buffer.js +51 -0
- package/node_modules/protobufjs/src/root.js +368 -0
- package/node_modules/protobufjs/src/roots.js +18 -0
- package/node_modules/protobufjs/src/rpc/service.js +142 -0
- package/node_modules/protobufjs/src/rpc.js +36 -0
- package/node_modules/protobufjs/src/service.js +167 -0
- package/node_modules/protobufjs/src/tokenize.js +418 -0
- package/node_modules/protobufjs/src/type.js +589 -0
- package/node_modules/protobufjs/src/types.js +196 -0
- package/node_modules/protobufjs/src/typescript.jsdoc +15 -0
- package/node_modules/protobufjs/src/util/longbits.js +200 -0
- package/node_modules/protobufjs/src/util/minimal.js +438 -0
- package/node_modules/protobufjs/src/util.js +212 -0
- package/node_modules/protobufjs/src/verifier.js +177 -0
- package/node_modules/protobufjs/src/wrappers.js +102 -0
- package/node_modules/protobufjs/src/writer.js +465 -0
- package/node_modules/protobufjs/src/writer_buffer.js +85 -0
- package/node_modules/protobufjs/tsconfig.json +8 -0
- package/node_modules/release-zalgo/LICENSE +14 -0
- package/node_modules/release-zalgo/README.md +194 -0
- package/node_modules/release-zalgo/index.js +9 -0
- package/node_modules/release-zalgo/lib/Async.js +21 -0
- package/node_modules/release-zalgo/lib/Sync.js +24 -0
- package/node_modules/release-zalgo/lib/Thenable.js +39 -0
- package/node_modules/release-zalgo/lib/constants.js +6 -0
- package/node_modules/release-zalgo/lib/unwrapSync.js +54 -0
- package/node_modules/release-zalgo/package.json +49 -0
- package/node_modules/require-directory/.jshintrc +67 -0
- package/node_modules/require-directory/.npmignore +1 -0
- package/node_modules/require-directory/.travis.yml +3 -0
- package/node_modules/require-directory/LICENSE +22 -0
- package/node_modules/require-directory/README.markdown +184 -0
- package/node_modules/require-directory/index.js +86 -0
- package/node_modules/require-directory/package.json +40 -0
- package/node_modules/require-main-filename/CHANGELOG.md +26 -0
- package/node_modules/require-main-filename/LICENSE.txt +14 -0
- package/node_modules/require-main-filename/README.md +26 -0
- package/node_modules/require-main-filename/index.js +18 -0
- package/node_modules/require-main-filename/package.json +35 -0
- package/node_modules/resolve-from/index.d.ts +31 -0
- package/node_modules/resolve-from/index.js +47 -0
- package/node_modules/resolve-from/license +9 -0
- package/node_modules/resolve-from/package.json +36 -0
- package/node_modules/resolve-from/readme.md +72 -0
- package/node_modules/rimraf/CHANGELOG.md +65 -0
- package/node_modules/rimraf/LICENSE +15 -0
- package/node_modules/rimraf/README.md +101 -0
- package/node_modules/rimraf/bin.js +68 -0
- package/node_modules/rimraf/package.json +32 -0
- package/node_modules/rimraf/rimraf.js +360 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +443 -0
- package/node_modules/semver/bin/semver.js +174 -0
- package/node_modules/semver/package.json +38 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/semver.js +1643 -0
- package/node_modules/set-blocking/CHANGELOG.md +26 -0
- package/node_modules/set-blocking/LICENSE.txt +14 -0
- package/node_modules/set-blocking/README.md +31 -0
- package/node_modules/set-blocking/index.js +7 -0
- package/node_modules/set-blocking/package.json +42 -0
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +9 -0
- package/node_modules/shebang-command/package.json +34 -0
- package/node_modules/shebang-command/readme.md +34 -0
- package/node_modules/shebang-regex/index.d.ts +22 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/license +9 -0
- package/node_modules/shebang-regex/package.json +35 -0
- package/node_modules/shebang-regex/readme.md +33 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +202 -0
- package/node_modules/signal-exit/package.json +38 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/source-map/CHANGELOG.md +301 -0
- package/node_modules/source-map/LICENSE +28 -0
- package/node_modules/source-map/README.md +742 -0
- package/node_modules/source-map/dist/source-map.debug.js +3234 -0
- package/node_modules/source-map/dist/source-map.js +3233 -0
- package/node_modules/source-map/dist/source-map.min.js +2 -0
- package/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/node_modules/source-map/lib/array-set.js +121 -0
- package/node_modules/source-map/lib/base64-vlq.js +140 -0
- package/node_modules/source-map/lib/base64.js +67 -0
- package/node_modules/source-map/lib/binary-search.js +111 -0
- package/node_modules/source-map/lib/mapping-list.js +79 -0
- package/node_modules/source-map/lib/quick-sort.js +114 -0
- package/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- package/node_modules/source-map/lib/source-map-generator.js +425 -0
- package/node_modules/source-map/lib/source-node.js +413 -0
- package/node_modules/source-map/lib/util.js +488 -0
- package/node_modules/source-map/package.json +73 -0
- package/node_modules/source-map/source-map.d.ts +98 -0
- package/node_modules/source-map/source-map.js +8 -0
- package/node_modules/spawn-wrap/CHANGELOG.md +43 -0
- package/node_modules/spawn-wrap/LICENSE +15 -0
- package/node_modules/spawn-wrap/README.md +111 -0
- package/node_modules/spawn-wrap/index.js +165 -0
- package/node_modules/spawn-wrap/lib/debug.js +32 -0
- package/node_modules/spawn-wrap/lib/exe-type.js +53 -0
- package/node_modules/spawn-wrap/lib/homedir.js +5 -0
- package/node_modules/spawn-wrap/lib/munge.js +84 -0
- package/node_modules/spawn-wrap/lib/mungers/cmd.js +59 -0
- package/node_modules/spawn-wrap/lib/mungers/env.js +49 -0
- package/node_modules/spawn-wrap/lib/mungers/node.js +79 -0
- package/node_modules/spawn-wrap/lib/mungers/npm.js +32 -0
- package/node_modules/spawn-wrap/lib/mungers/sh.js +61 -0
- package/node_modules/spawn-wrap/lib/mungers/shebang.js +43 -0
- package/node_modules/spawn-wrap/lib/which-or-undefined.js +12 -0
- package/node_modules/spawn-wrap/package.json +45 -0
- package/node_modules/spawn-wrap/shim.js +156 -0
- package/node_modules/sprintf-js/.npmignore +1 -0
- package/node_modules/sprintf-js/LICENSE +24 -0
- package/node_modules/sprintf-js/README.md +88 -0
- package/node_modules/sprintf-js/bower.json +14 -0
- package/node_modules/sprintf-js/demo/angular.html +20 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js +4 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.map +1 -0
- package/node_modules/sprintf-js/dist/sprintf.min.js +4 -0
- package/node_modules/sprintf-js/dist/sprintf.min.js.map +1 -0
- package/node_modules/sprintf-js/dist/sprintf.min.map +1 -0
- package/node_modules/sprintf-js/gruntfile.js +36 -0
- package/node_modules/sprintf-js/package.json +22 -0
- package/node_modules/sprintf-js/src/angular-sprintf.js +18 -0
- package/node_modules/sprintf-js/src/sprintf.js +208 -0
- package/node_modules/sprintf-js/test/test.js +82 -0
- package/node_modules/string-width/index.d.ts +29 -0
- package/node_modules/string-width/index.js +47 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +56 -0
- package/node_modules/string-width/readme.md +50 -0
- package/node_modules/strip-ansi/index.d.ts +17 -0
- package/node_modules/strip-ansi/index.js +4 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +54 -0
- package/node_modules/strip-ansi/readme.md +46 -0
- package/node_modules/strip-bom/index.d.ts +14 -0
- package/node_modules/strip-bom/index.js +15 -0
- package/node_modules/strip-bom/license +9 -0
- package/node_modules/strip-bom/package.json +42 -0
- package/node_modules/strip-bom/readme.md +54 -0
- package/node_modules/strnum/.vscode/launch.json +25 -0
- package/node_modules/strnum/LICENSE +21 -0
- package/node_modules/strnum/README.md +86 -0
- package/node_modules/strnum/package.json +24 -0
- package/node_modules/strnum/strnum.js +124 -0
- package/node_modules/strnum/strnum.test.js +150 -0
- package/node_modules/supports-color/browser.js +5 -0
- package/node_modules/supports-color/index.js +131 -0
- package/node_modules/supports-color/license +9 -0
- package/node_modules/supports-color/package.json +53 -0
- package/node_modules/supports-color/readme.md +66 -0
- package/node_modules/test-exclude/CHANGELOG.md +352 -0
- package/node_modules/test-exclude/LICENSE.txt +14 -0
- package/node_modules/test-exclude/README.md +96 -0
- package/node_modules/test-exclude/index.js +161 -0
- package/node_modules/test-exclude/is-outside-dir-posix.js +7 -0
- package/node_modules/test-exclude/is-outside-dir-win32.js +10 -0
- package/node_modules/test-exclude/is-outside-dir.js +7 -0
- package/node_modules/test-exclude/package.json +45 -0
- package/node_modules/to-fast-properties/index.js +27 -0
- package/node_modules/to-fast-properties/license +10 -0
- package/node_modules/to-fast-properties/package.json +35 -0
- package/node_modules/to-fast-properties/readme.md +37 -0
- package/node_modules/type-fest/index.d.ts +20 -0
- package/node_modules/type-fest/license +9 -0
- package/node_modules/type-fest/package.json +51 -0
- package/node_modules/type-fest/readme.md +635 -0
- package/node_modules/type-fest/source/basic.d.ts +67 -0
- package/node_modules/type-fest/source/except.d.ts +22 -0
- package/node_modules/type-fest/source/literal-union.d.ts +33 -0
- package/node_modules/type-fest/source/merge-exclusive.d.ts +39 -0
- package/node_modules/type-fest/source/merge.d.ts +22 -0
- package/node_modules/type-fest/source/mutable.d.ts +22 -0
- package/node_modules/type-fest/source/opaque.d.ts +40 -0
- package/node_modules/type-fest/source/package-json.d.ts +501 -0
- package/node_modules/type-fest/source/partial-deep.d.ts +72 -0
- package/node_modules/type-fest/source/promisable.d.ts +23 -0
- package/node_modules/type-fest/source/readonly-deep.d.ts +59 -0
- package/node_modules/type-fest/source/require-at-least-one.d.ts +32 -0
- package/node_modules/type-fest/source/require-exactly-one.d.ts +36 -0
- package/node_modules/type-fest/source/set-optional.d.ts +32 -0
- package/node_modules/type-fest/source/set-required.d.ts +32 -0
- package/node_modules/typedarray-to-buffer/.airtap.yml +15 -0
- package/node_modules/typedarray-to-buffer/.travis.yml +11 -0
- package/node_modules/typedarray-to-buffer/LICENSE +21 -0
- package/node_modules/typedarray-to-buffer/README.md +85 -0
- package/node_modules/typedarray-to-buffer/index.js +25 -0
- package/node_modules/typedarray-to-buffer/package.json +50 -0
- package/node_modules/typedarray-to-buffer/test/basic.js +50 -0
- package/node_modules/update-browserslist-db/LICENSE +20 -0
- package/node_modules/update-browserslist-db/README.md +22 -0
- package/node_modules/update-browserslist-db/check-npm-version.js +16 -0
- package/node_modules/update-browserslist-db/cli.js +42 -0
- package/node_modules/update-browserslist-db/index.d.ts +6 -0
- package/node_modules/update-browserslist-db/index.js +317 -0
- package/node_modules/update-browserslist-db/package.json +40 -0
- package/node_modules/update-browserslist-db/utils.js +22 -0
- package/node_modules/which/CHANGELOG.md +166 -0
- package/node_modules/which/LICENSE +15 -0
- package/node_modules/which/README.md +54 -0
- package/node_modules/which/bin/node-which +52 -0
- package/node_modules/which/package.json +43 -0
- package/node_modules/which/which.js +125 -0
- package/node_modules/which-module/LICENSE +13 -0
- package/node_modules/which-module/README.md +58 -0
- package/node_modules/which-module/index.js +9 -0
- package/node_modules/which-module/package.json +41 -0
- package/node_modules/wrap-ansi/index.js +186 -0
- package/node_modules/wrap-ansi/license +9 -0
- package/node_modules/wrap-ansi/node_modules/ansi-styles/index.d.ts +345 -0
- package/node_modules/wrap-ansi/node_modules/ansi-styles/index.js +163 -0
- package/node_modules/wrap-ansi/node_modules/ansi-styles/license +9 -0
- package/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +56 -0
- package/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md +152 -0
- package/node_modules/wrap-ansi/node_modules/color-convert/CHANGELOG.md +54 -0
- package/node_modules/wrap-ansi/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/wrap-ansi/node_modules/color-convert/README.md +68 -0
- package/node_modules/wrap-ansi/node_modules/color-convert/conversions.js +839 -0
- package/node_modules/wrap-ansi/node_modules/color-convert/index.js +81 -0
- package/node_modules/wrap-ansi/node_modules/color-convert/package.json +48 -0
- package/node_modules/wrap-ansi/node_modules/color-convert/route.js +97 -0
- package/node_modules/wrap-ansi/node_modules/color-name/LICENSE +8 -0
- package/node_modules/wrap-ansi/node_modules/color-name/README.md +11 -0
- package/node_modules/wrap-ansi/node_modules/color-name/index.js +152 -0
- package/node_modules/wrap-ansi/node_modules/color-name/package.json +28 -0
- package/node_modules/wrap-ansi/package.json +61 -0
- package/node_modules/wrap-ansi/readme.md +97 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/write-file-atomic/CHANGELOG.md +32 -0
- package/node_modules/write-file-atomic/LICENSE +6 -0
- package/node_modules/write-file-atomic/README.md +72 -0
- package/node_modules/write-file-atomic/index.js +259 -0
- package/node_modules/write-file-atomic/package.json +48 -0
- package/node_modules/y18n/CHANGELOG.md +35 -0
- package/node_modules/y18n/LICENSE +13 -0
- package/node_modules/y18n/README.md +109 -0
- package/node_modules/y18n/index.js +188 -0
- package/node_modules/y18n/package.json +39 -0
- package/node_modules/yallist/LICENSE +15 -0
- package/node_modules/yallist/README.md +204 -0
- package/node_modules/yallist/iterator.js +8 -0
- package/node_modules/yallist/package.json +29 -0
- package/node_modules/yallist/yallist.js +426 -0
- package/node_modules/yargs/CHANGELOG.md +420 -0
- package/node_modules/yargs/LICENSE +21 -0
- package/node_modules/yargs/README.md +140 -0
- package/node_modules/yargs/build/lib/apply-extends.d.ts +2 -0
- package/node_modules/yargs/build/lib/apply-extends.js +65 -0
- package/node_modules/yargs/build/lib/argsert.d.ts +2 -0
- package/node_modules/yargs/build/lib/argsert.js +65 -0
- package/node_modules/yargs/build/lib/command.d.ts +64 -0
- package/node_modules/yargs/build/lib/command.js +416 -0
- package/node_modules/yargs/build/lib/common-types.d.ts +36 -0
- package/node_modules/yargs/build/lib/common-types.js +25 -0
- package/node_modules/yargs/build/lib/completion-templates.d.ts +2 -0
- package/node_modules/yargs/build/lib/completion-templates.js +50 -0
- package/node_modules/yargs/build/lib/completion.d.ts +21 -0
- package/node_modules/yargs/build/lib/completion.js +135 -0
- package/node_modules/yargs/build/lib/is-promise.d.ts +1 -0
- package/node_modules/yargs/build/lib/is-promise.js +9 -0
- package/node_modules/yargs/build/lib/levenshtein.d.ts +1 -0
- package/node_modules/yargs/build/lib/levenshtein.js +58 -0
- package/node_modules/yargs/build/lib/middleware.d.ts +10 -0
- package/node_modules/yargs/build/lib/middleware.js +57 -0
- package/node_modules/yargs/build/lib/obj-filter.d.ts +1 -0
- package/node_modules/yargs/build/lib/obj-filter.js +14 -0
- package/node_modules/yargs/build/lib/parse-command.d.ts +11 -0
- package/node_modules/yargs/build/lib/parse-command.js +36 -0
- package/node_modules/yargs/build/lib/process-argv.d.ts +2 -0
- package/node_modules/yargs/build/lib/process-argv.js +31 -0
- package/node_modules/yargs/build/lib/usage.d.ts +49 -0
- package/node_modules/yargs/build/lib/usage.js +540 -0
- package/node_modules/yargs/build/lib/validation.d.ts +34 -0
- package/node_modules/yargs/build/lib/validation.js +330 -0
- package/node_modules/yargs/build/lib/yargs.d.ts +274 -0
- package/node_modules/yargs/build/lib/yargs.js +1190 -0
- package/node_modules/yargs/build/lib/yerror.d.ts +4 -0
- package/node_modules/yargs/build/lib/yerror.js +11 -0
- package/node_modules/yargs/index.js +40 -0
- package/node_modules/yargs/locales/be.json +46 -0
- package/node_modules/yargs/locales/de.json +46 -0
- package/node_modules/yargs/locales/en.json +51 -0
- package/node_modules/yargs/locales/es.json +46 -0
- package/node_modules/yargs/locales/fi.json +49 -0
- package/node_modules/yargs/locales/fr.json +53 -0
- package/node_modules/yargs/locales/hi.json +49 -0
- package/node_modules/yargs/locales/hu.json +46 -0
- package/node_modules/yargs/locales/id.json +50 -0
- package/node_modules/yargs/locales/it.json +46 -0
- package/node_modules/yargs/locales/ja.json +51 -0
- package/node_modules/yargs/locales/ko.json +49 -0
- package/node_modules/yargs/locales/nb.json +44 -0
- package/node_modules/yargs/locales/nl.json +49 -0
- package/node_modules/yargs/locales/nn.json +44 -0
- package/node_modules/yargs/locales/pirate.json +13 -0
- package/node_modules/yargs/locales/pl.json +49 -0
- package/node_modules/yargs/locales/pt.json +45 -0
- package/node_modules/yargs/locales/pt_BR.json +48 -0
- package/node_modules/yargs/locales/ru.json +46 -0
- package/node_modules/yargs/locales/th.json +46 -0
- package/node_modules/yargs/locales/tr.json +48 -0
- package/node_modules/yargs/locales/zh_CN.json +48 -0
- package/node_modules/yargs/locales/zh_TW.json +47 -0
- package/node_modules/yargs/package.json +92 -0
- package/node_modules/yargs/yargs.js +14 -0
- package/node_modules/yargs-parser/CHANGELOG.md +601 -0
- package/node_modules/yargs-parser/LICENSE.txt +14 -0
- package/node_modules/yargs-parser/README.md +449 -0
- package/node_modules/yargs-parser/index.js +1032 -0
- package/node_modules/yargs-parser/lib/tokenize-arg-string.js +40 -0
- package/node_modules/yargs-parser/package.json +46 -0
- package/package.json +5 -1
- package/proto/contact.proto +14 -0
- package/proto/cotevent.proto +44 -0
- package/proto/detail.proto +78 -0
- package/proto/group.proto +13 -0
- package/proto/precisionlocation.proto +13 -0
- package/proto/protocol.txt +352 -0
- package/proto/status.proto +12 -0
- package/proto/takcontrol.proto +24 -0
- package/proto/takmessage.proto +18 -0
- package/proto/takv.proto +15 -0
- package/proto/track.proto +13 -0
- package/tak-ingest.html +1 -1
- package/tak-ingest.js +49 -1
- package/tak-registration.html +1 -1
|
@@ -0,0 +1,2656 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _types = require("../../tokenizer/types");
|
|
8
|
+
var _context = require("../../tokenizer/context");
|
|
9
|
+
var _location = require("../../util/location");
|
|
10
|
+
var _scopeflags = require("../../util/scopeflags");
|
|
11
|
+
var _scope = require("./scope");
|
|
12
|
+
var _productionParameter = require("../../util/production-parameter");
|
|
13
|
+
var _parseError = require("../../parse-error");
|
|
14
|
+
var _node = require("../../parser/node");
|
|
15
|
+
var _lval = require("../../parser/lval");
|
|
16
|
+
const getOwn = (object, key) => Object.hasOwnProperty.call(object, key) && object[key];
|
|
17
|
+
function nonNull(x) {
|
|
18
|
+
if (x == null) {
|
|
19
|
+
throw new Error(`Unexpected ${x} value.`);
|
|
20
|
+
}
|
|
21
|
+
return x;
|
|
22
|
+
}
|
|
23
|
+
function assert(x) {
|
|
24
|
+
if (!x) {
|
|
25
|
+
throw new Error("Assert fail");
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const TSErrors = (0, _parseError.ParseErrorEnum)`typescript`({
|
|
29
|
+
AbstractMethodHasImplementation: ({
|
|
30
|
+
methodName
|
|
31
|
+
}) => `Method '${methodName}' cannot have an implementation because it is marked abstract.`,
|
|
32
|
+
AbstractPropertyHasInitializer: ({
|
|
33
|
+
propertyName
|
|
34
|
+
}) => `Property '${propertyName}' cannot have an initializer because it is marked abstract.`,
|
|
35
|
+
AccesorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.",
|
|
36
|
+
AccesorCannotHaveTypeParameters: "An accessor cannot have type parameters.",
|
|
37
|
+
AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.",
|
|
38
|
+
ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.",
|
|
39
|
+
ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.",
|
|
40
|
+
ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",
|
|
41
|
+
ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.",
|
|
42
|
+
DeclareAccessor: ({
|
|
43
|
+
kind
|
|
44
|
+
}) => `'declare' is not allowed in ${kind}ters.`,
|
|
45
|
+
DeclareClassFieldHasInitializer: "Initializers are not allowed in ambient contexts.",
|
|
46
|
+
DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.",
|
|
47
|
+
DuplicateAccessibilityModifier: ({
|
|
48
|
+
modifier
|
|
49
|
+
}) => `Accessibility modifier already seen.`,
|
|
50
|
+
DuplicateModifier: ({
|
|
51
|
+
modifier
|
|
52
|
+
}) => `Duplicate modifier: '${modifier}'.`,
|
|
53
|
+
EmptyHeritageClauseType: ({
|
|
54
|
+
token
|
|
55
|
+
}) => `'${token}' list cannot be empty.`,
|
|
56
|
+
EmptyTypeArguments: "Type argument list cannot be empty.",
|
|
57
|
+
EmptyTypeParameters: "Type parameter list cannot be empty.",
|
|
58
|
+
ExpectedAmbientAfterExportDeclare: "'export declare' must be followed by an ambient declaration.",
|
|
59
|
+
ImportAliasHasImportType: "An import alias can not use 'import type'.",
|
|
60
|
+
ImportReflectionHasImportType: "An `import module` declaration can not use `type` modifier",
|
|
61
|
+
IncompatibleModifiers: ({
|
|
62
|
+
modifiers
|
|
63
|
+
}) => `'${modifiers[0]}' modifier cannot be used with '${modifiers[1]}' modifier.`,
|
|
64
|
+
IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.",
|
|
65
|
+
IndexSignatureHasAccessibility: ({
|
|
66
|
+
modifier
|
|
67
|
+
}) => `Index signatures cannot have an accessibility modifier ('${modifier}').`,
|
|
68
|
+
IndexSignatureHasDeclare: "Index signatures cannot have the 'declare' modifier.",
|
|
69
|
+
IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.",
|
|
70
|
+
IndexSignatureHasStatic: "Index signatures cannot have the 'static' modifier.",
|
|
71
|
+
InitializerNotAllowedInAmbientContext: "Initializers are not allowed in ambient contexts.",
|
|
72
|
+
InvalidModifierOnTypeMember: ({
|
|
73
|
+
modifier
|
|
74
|
+
}) => `'${modifier}' modifier cannot appear on a type member.`,
|
|
75
|
+
InvalidModifierOnTypeParameter: ({
|
|
76
|
+
modifier
|
|
77
|
+
}) => `'${modifier}' modifier cannot appear on a type parameter.`,
|
|
78
|
+
InvalidModifierOnTypeParameterPositions: ({
|
|
79
|
+
modifier
|
|
80
|
+
}) => `'${modifier}' modifier can only appear on a type parameter of a class, interface or type alias.`,
|
|
81
|
+
InvalidModifiersOrder: ({
|
|
82
|
+
orderedModifiers
|
|
83
|
+
}) => `'${orderedModifiers[0]}' modifier must precede '${orderedModifiers[1]}' modifier.`,
|
|
84
|
+
InvalidPropertyAccessAfterInstantiationExpression: "Invalid property access after an instantiation expression. " + "You can either wrap the instantiation expression in parentheses, or delete the type arguments.",
|
|
85
|
+
InvalidTupleMemberLabel: "Tuple members must be labeled with a simple identifier.",
|
|
86
|
+
MissingInterfaceName: "'interface' declarations must be followed by an identifier.",
|
|
87
|
+
MixedLabeledAndUnlabeledElements: "Tuple members must all have names or all not have names.",
|
|
88
|
+
NonAbstractClassHasAbstractMethod: "Abstract methods can only appear within an abstract class.",
|
|
89
|
+
NonClassMethodPropertyHasAbstractModifer: "'abstract' modifier can only appear on a class, method, or property declaration.",
|
|
90
|
+
OptionalTypeBeforeRequired: "A required element cannot follow an optional element.",
|
|
91
|
+
OverrideNotInSubClass: "This member cannot have an 'override' modifier because its containing class does not extend another class.",
|
|
92
|
+
PatternIsOptional: "A binding pattern parameter cannot be optional in an implementation signature.",
|
|
93
|
+
PrivateElementHasAbstract: "Private elements cannot have the 'abstract' modifier.",
|
|
94
|
+
PrivateElementHasAccessibility: ({
|
|
95
|
+
modifier
|
|
96
|
+
}) => `Private elements cannot have an accessibility modifier ('${modifier}').`,
|
|
97
|
+
ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.",
|
|
98
|
+
ReservedArrowTypeParam: "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",
|
|
99
|
+
ReservedTypeAssertion: "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",
|
|
100
|
+
SetAccesorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.",
|
|
101
|
+
SetAccesorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.",
|
|
102
|
+
SetAccesorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.",
|
|
103
|
+
SingleTypeParameterWithoutTrailingComma: ({
|
|
104
|
+
typeParameterName
|
|
105
|
+
}) => `Single type parameter ${typeParameterName} should have a trailing comma. Example usage: <${typeParameterName},>.`,
|
|
106
|
+
StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.",
|
|
107
|
+
TupleOptionalAfterType: "A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",
|
|
108
|
+
TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",
|
|
109
|
+
TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.",
|
|
110
|
+
TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",
|
|
111
|
+
TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",
|
|
112
|
+
UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.",
|
|
113
|
+
UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.",
|
|
114
|
+
UnexpectedTypeAnnotation: "Did not expect a type annotation here.",
|
|
115
|
+
UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.",
|
|
116
|
+
UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.",
|
|
117
|
+
UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.",
|
|
118
|
+
UnsupportedSignatureParameterKind: ({
|
|
119
|
+
type
|
|
120
|
+
}) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${type}.`
|
|
121
|
+
});
|
|
122
|
+
function keywordTypeFromName(value) {
|
|
123
|
+
switch (value) {
|
|
124
|
+
case "any":
|
|
125
|
+
return "TSAnyKeyword";
|
|
126
|
+
case "boolean":
|
|
127
|
+
return "TSBooleanKeyword";
|
|
128
|
+
case "bigint":
|
|
129
|
+
return "TSBigIntKeyword";
|
|
130
|
+
case "never":
|
|
131
|
+
return "TSNeverKeyword";
|
|
132
|
+
case "number":
|
|
133
|
+
return "TSNumberKeyword";
|
|
134
|
+
case "object":
|
|
135
|
+
return "TSObjectKeyword";
|
|
136
|
+
case "string":
|
|
137
|
+
return "TSStringKeyword";
|
|
138
|
+
case "symbol":
|
|
139
|
+
return "TSSymbolKeyword";
|
|
140
|
+
case "undefined":
|
|
141
|
+
return "TSUndefinedKeyword";
|
|
142
|
+
case "unknown":
|
|
143
|
+
return "TSUnknownKeyword";
|
|
144
|
+
default:
|
|
145
|
+
return undefined;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
function tsIsAccessModifier(modifier) {
|
|
149
|
+
return modifier === "private" || modifier === "public" || modifier === "protected";
|
|
150
|
+
}
|
|
151
|
+
function tsIsVarianceAnnotations(modifier) {
|
|
152
|
+
return modifier === "in" || modifier === "out";
|
|
153
|
+
}
|
|
154
|
+
var _default = superClass => class TypeScriptParserMixin extends superClass {
|
|
155
|
+
constructor(...args) {
|
|
156
|
+
super(...args);
|
|
157
|
+
this.tsParseInOutModifiers = this.tsParseModifiers.bind(this, {
|
|
158
|
+
allowedModifiers: ["in", "out"],
|
|
159
|
+
disallowedModifiers: ["const", "public", "private", "protected", "readonly", "declare", "abstract", "override"],
|
|
160
|
+
errorTemplate: TSErrors.InvalidModifierOnTypeParameter
|
|
161
|
+
});
|
|
162
|
+
this.tsParseConstModifier = this.tsParseModifiers.bind(this, {
|
|
163
|
+
allowedModifiers: ["const"],
|
|
164
|
+
disallowedModifiers: ["in", "out"],
|
|
165
|
+
errorTemplate: TSErrors.InvalidModifierOnTypeParameterPositions
|
|
166
|
+
});
|
|
167
|
+
this.tsParseInOutConstModifiers = this.tsParseModifiers.bind(this, {
|
|
168
|
+
allowedModifiers: ["in", "out", "const"],
|
|
169
|
+
disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"],
|
|
170
|
+
errorTemplate: TSErrors.InvalidModifierOnTypeParameter
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
getScopeHandler() {
|
|
174
|
+
return _scope.default;
|
|
175
|
+
}
|
|
176
|
+
tsIsIdentifier() {
|
|
177
|
+
return (0, _types.tokenIsIdentifier)(this.state.type);
|
|
178
|
+
}
|
|
179
|
+
tsTokenCanFollowModifier() {
|
|
180
|
+
return (this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(136) || this.isLiteralPropertyName()) && !this.hasPrecedingLineBreak();
|
|
181
|
+
}
|
|
182
|
+
tsNextTokenCanFollowModifier() {
|
|
183
|
+
this.next();
|
|
184
|
+
return this.tsTokenCanFollowModifier();
|
|
185
|
+
}
|
|
186
|
+
tsParseModifier(allowedModifiers, stopOnStartOfClassStaticBlock) {
|
|
187
|
+
if (!(0, _types.tokenIsIdentifier)(this.state.type) && this.state.type !== 58 && this.state.type !== 75) {
|
|
188
|
+
return undefined;
|
|
189
|
+
}
|
|
190
|
+
const modifier = this.state.value;
|
|
191
|
+
if (allowedModifiers.indexOf(modifier) !== -1) {
|
|
192
|
+
if (stopOnStartOfClassStaticBlock && this.tsIsStartOfStaticBlocks()) {
|
|
193
|
+
return undefined;
|
|
194
|
+
}
|
|
195
|
+
if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))) {
|
|
196
|
+
return modifier;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return undefined;
|
|
200
|
+
}
|
|
201
|
+
tsParseModifiers({
|
|
202
|
+
allowedModifiers,
|
|
203
|
+
disallowedModifiers,
|
|
204
|
+
stopOnStartOfClassStaticBlock,
|
|
205
|
+
errorTemplate = TSErrors.InvalidModifierOnTypeMember
|
|
206
|
+
}, modified) {
|
|
207
|
+
const enforceOrder = (loc, modifier, before, after) => {
|
|
208
|
+
if (modifier === before && modified[after]) {
|
|
209
|
+
this.raise(TSErrors.InvalidModifiersOrder, {
|
|
210
|
+
at: loc,
|
|
211
|
+
orderedModifiers: [before, after]
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
const incompatible = (loc, modifier, mod1, mod2) => {
|
|
216
|
+
if (modified[mod1] && modifier === mod2 || modified[mod2] && modifier === mod1) {
|
|
217
|
+
this.raise(TSErrors.IncompatibleModifiers, {
|
|
218
|
+
at: loc,
|
|
219
|
+
modifiers: [mod1, mod2]
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
for (;;) {
|
|
224
|
+
const {
|
|
225
|
+
startLoc
|
|
226
|
+
} = this.state;
|
|
227
|
+
const modifier = this.tsParseModifier(allowedModifiers.concat(disallowedModifiers != null ? disallowedModifiers : []), stopOnStartOfClassStaticBlock);
|
|
228
|
+
if (!modifier) break;
|
|
229
|
+
if (tsIsAccessModifier(modifier)) {
|
|
230
|
+
if (modified.accessibility) {
|
|
231
|
+
this.raise(TSErrors.DuplicateAccessibilityModifier, {
|
|
232
|
+
at: startLoc,
|
|
233
|
+
modifier
|
|
234
|
+
});
|
|
235
|
+
} else {
|
|
236
|
+
enforceOrder(startLoc, modifier, modifier, "override");
|
|
237
|
+
enforceOrder(startLoc, modifier, modifier, "static");
|
|
238
|
+
enforceOrder(startLoc, modifier, modifier, "readonly");
|
|
239
|
+
modified.accessibility = modifier;
|
|
240
|
+
}
|
|
241
|
+
} else if (tsIsVarianceAnnotations(modifier)) {
|
|
242
|
+
if (modified[modifier]) {
|
|
243
|
+
this.raise(TSErrors.DuplicateModifier, {
|
|
244
|
+
at: startLoc,
|
|
245
|
+
modifier
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
modified[modifier] = true;
|
|
249
|
+
enforceOrder(startLoc, modifier, "in", "out");
|
|
250
|
+
} else {
|
|
251
|
+
if (Object.hasOwnProperty.call(modified, modifier)) {
|
|
252
|
+
this.raise(TSErrors.DuplicateModifier, {
|
|
253
|
+
at: startLoc,
|
|
254
|
+
modifier
|
|
255
|
+
});
|
|
256
|
+
} else {
|
|
257
|
+
enforceOrder(startLoc, modifier, "static", "readonly");
|
|
258
|
+
enforceOrder(startLoc, modifier, "static", "override");
|
|
259
|
+
enforceOrder(startLoc, modifier, "override", "readonly");
|
|
260
|
+
enforceOrder(startLoc, modifier, "abstract", "override");
|
|
261
|
+
incompatible(startLoc, modifier, "declare", "override");
|
|
262
|
+
incompatible(startLoc, modifier, "static", "abstract");
|
|
263
|
+
}
|
|
264
|
+
modified[modifier] = true;
|
|
265
|
+
}
|
|
266
|
+
if (disallowedModifiers != null && disallowedModifiers.includes(modifier)) {
|
|
267
|
+
this.raise(errorTemplate, {
|
|
268
|
+
at: startLoc,
|
|
269
|
+
modifier
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
tsIsListTerminator(kind) {
|
|
275
|
+
switch (kind) {
|
|
276
|
+
case "EnumMembers":
|
|
277
|
+
case "TypeMembers":
|
|
278
|
+
return this.match(8);
|
|
279
|
+
case "HeritageClauseElement":
|
|
280
|
+
return this.match(5);
|
|
281
|
+
case "TupleElementTypes":
|
|
282
|
+
return this.match(3);
|
|
283
|
+
case "TypeParametersOrArguments":
|
|
284
|
+
return this.match(48);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
tsParseList(kind, parseElement) {
|
|
288
|
+
const result = [];
|
|
289
|
+
while (!this.tsIsListTerminator(kind)) {
|
|
290
|
+
result.push(parseElement());
|
|
291
|
+
}
|
|
292
|
+
return result;
|
|
293
|
+
}
|
|
294
|
+
tsParseDelimitedList(kind, parseElement, refTrailingCommaPos) {
|
|
295
|
+
return nonNull(this.tsParseDelimitedListWorker(kind, parseElement, true, refTrailingCommaPos));
|
|
296
|
+
}
|
|
297
|
+
tsParseDelimitedListWorker(kind, parseElement, expectSuccess, refTrailingCommaPos) {
|
|
298
|
+
const result = [];
|
|
299
|
+
let trailingCommaPos = -1;
|
|
300
|
+
for (;;) {
|
|
301
|
+
if (this.tsIsListTerminator(kind)) {
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
trailingCommaPos = -1;
|
|
305
|
+
const element = parseElement();
|
|
306
|
+
if (element == null) {
|
|
307
|
+
return undefined;
|
|
308
|
+
}
|
|
309
|
+
result.push(element);
|
|
310
|
+
if (this.eat(12)) {
|
|
311
|
+
trailingCommaPos = this.state.lastTokStart;
|
|
312
|
+
continue;
|
|
313
|
+
}
|
|
314
|
+
if (this.tsIsListTerminator(kind)) {
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
if (expectSuccess) {
|
|
318
|
+
this.expect(12);
|
|
319
|
+
}
|
|
320
|
+
return undefined;
|
|
321
|
+
}
|
|
322
|
+
if (refTrailingCommaPos) {
|
|
323
|
+
refTrailingCommaPos.value = trailingCommaPos;
|
|
324
|
+
}
|
|
325
|
+
return result;
|
|
326
|
+
}
|
|
327
|
+
tsParseBracketedList(kind, parseElement, bracket, skipFirstToken, refTrailingCommaPos) {
|
|
328
|
+
if (!skipFirstToken) {
|
|
329
|
+
if (bracket) {
|
|
330
|
+
this.expect(0);
|
|
331
|
+
} else {
|
|
332
|
+
this.expect(47);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
const result = this.tsParseDelimitedList(kind, parseElement, refTrailingCommaPos);
|
|
336
|
+
if (bracket) {
|
|
337
|
+
this.expect(3);
|
|
338
|
+
} else {
|
|
339
|
+
this.expect(48);
|
|
340
|
+
}
|
|
341
|
+
return result;
|
|
342
|
+
}
|
|
343
|
+
tsParseImportType() {
|
|
344
|
+
const node = this.startNode();
|
|
345
|
+
this.expect(83);
|
|
346
|
+
this.expect(10);
|
|
347
|
+
if (!this.match(131)) {
|
|
348
|
+
this.raise(TSErrors.UnsupportedImportTypeArgument, {
|
|
349
|
+
at: this.state.startLoc
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
node.argument = super.parseExprAtom();
|
|
353
|
+
this.expect(11);
|
|
354
|
+
if (this.eat(16)) {
|
|
355
|
+
node.qualifier = this.tsParseEntityName();
|
|
356
|
+
}
|
|
357
|
+
if (this.match(47)) {
|
|
358
|
+
node.typeParameters = this.tsParseTypeArguments();
|
|
359
|
+
}
|
|
360
|
+
return this.finishNode(node, "TSImportType");
|
|
361
|
+
}
|
|
362
|
+
tsParseEntityName(allowReservedWords = true) {
|
|
363
|
+
let entity = this.parseIdentifier(allowReservedWords);
|
|
364
|
+
while (this.eat(16)) {
|
|
365
|
+
const node = this.startNodeAtNode(entity);
|
|
366
|
+
node.left = entity;
|
|
367
|
+
node.right = this.parseIdentifier(allowReservedWords);
|
|
368
|
+
entity = this.finishNode(node, "TSQualifiedName");
|
|
369
|
+
}
|
|
370
|
+
return entity;
|
|
371
|
+
}
|
|
372
|
+
tsParseTypeReference() {
|
|
373
|
+
const node = this.startNode();
|
|
374
|
+
node.typeName = this.tsParseEntityName();
|
|
375
|
+
if (!this.hasPrecedingLineBreak() && this.match(47)) {
|
|
376
|
+
node.typeParameters = this.tsParseTypeArguments();
|
|
377
|
+
}
|
|
378
|
+
return this.finishNode(node, "TSTypeReference");
|
|
379
|
+
}
|
|
380
|
+
tsParseThisTypePredicate(lhs) {
|
|
381
|
+
this.next();
|
|
382
|
+
const node = this.startNodeAtNode(lhs);
|
|
383
|
+
node.parameterName = lhs;
|
|
384
|
+
node.typeAnnotation = this.tsParseTypeAnnotation(false);
|
|
385
|
+
node.asserts = false;
|
|
386
|
+
return this.finishNode(node, "TSTypePredicate");
|
|
387
|
+
}
|
|
388
|
+
tsParseThisTypeNode() {
|
|
389
|
+
const node = this.startNode();
|
|
390
|
+
this.next();
|
|
391
|
+
return this.finishNode(node, "TSThisType");
|
|
392
|
+
}
|
|
393
|
+
tsParseTypeQuery() {
|
|
394
|
+
const node = this.startNode();
|
|
395
|
+
this.expect(87);
|
|
396
|
+
if (this.match(83)) {
|
|
397
|
+
node.exprName = this.tsParseImportType();
|
|
398
|
+
} else {
|
|
399
|
+
node.exprName = this.tsParseEntityName();
|
|
400
|
+
}
|
|
401
|
+
if (!this.hasPrecedingLineBreak() && this.match(47)) {
|
|
402
|
+
node.typeParameters = this.tsParseTypeArguments();
|
|
403
|
+
}
|
|
404
|
+
return this.finishNode(node, "TSTypeQuery");
|
|
405
|
+
}
|
|
406
|
+
tsParseTypeParameter(parseModifiers) {
|
|
407
|
+
const node = this.startNode();
|
|
408
|
+
parseModifiers(node);
|
|
409
|
+
node.name = this.tsParseTypeParameterName();
|
|
410
|
+
node.constraint = this.tsEatThenParseType(81);
|
|
411
|
+
node.default = this.tsEatThenParseType(29);
|
|
412
|
+
return this.finishNode(node, "TSTypeParameter");
|
|
413
|
+
}
|
|
414
|
+
tsTryParseTypeParameters(parseModifiers) {
|
|
415
|
+
if (this.match(47)) {
|
|
416
|
+
return this.tsParseTypeParameters(parseModifiers);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
tsParseTypeParameters(parseModifiers) {
|
|
420
|
+
const node = this.startNode();
|
|
421
|
+
if (this.match(47) || this.match(140)) {
|
|
422
|
+
this.next();
|
|
423
|
+
} else {
|
|
424
|
+
this.unexpected();
|
|
425
|
+
}
|
|
426
|
+
const refTrailingCommaPos = {
|
|
427
|
+
value: -1
|
|
428
|
+
};
|
|
429
|
+
node.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, parseModifiers), false, true, refTrailingCommaPos);
|
|
430
|
+
if (node.params.length === 0) {
|
|
431
|
+
this.raise(TSErrors.EmptyTypeParameters, {
|
|
432
|
+
at: node
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
if (refTrailingCommaPos.value !== -1) {
|
|
436
|
+
this.addExtra(node, "trailingComma", refTrailingCommaPos.value);
|
|
437
|
+
}
|
|
438
|
+
return this.finishNode(node, "TSTypeParameterDeclaration");
|
|
439
|
+
}
|
|
440
|
+
tsFillSignature(returnToken, signature) {
|
|
441
|
+
const returnTokenRequired = returnToken === 19;
|
|
442
|
+
const paramsKey = "parameters";
|
|
443
|
+
const returnTypeKey = "typeAnnotation";
|
|
444
|
+
signature.typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier);
|
|
445
|
+
this.expect(10);
|
|
446
|
+
signature[paramsKey] = this.tsParseBindingListForSignature();
|
|
447
|
+
if (returnTokenRequired) {
|
|
448
|
+
signature[returnTypeKey] = this.tsParseTypeOrTypePredicateAnnotation(returnToken);
|
|
449
|
+
} else if (this.match(returnToken)) {
|
|
450
|
+
signature[returnTypeKey] = this.tsParseTypeOrTypePredicateAnnotation(returnToken);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
tsParseBindingListForSignature() {
|
|
454
|
+
const list = super.parseBindingList(11, 41, _lval.ParseBindingListFlags.IS_FUNCTION_PARAMS);
|
|
455
|
+
for (const pattern of list) {
|
|
456
|
+
const {
|
|
457
|
+
type
|
|
458
|
+
} = pattern;
|
|
459
|
+
if (type === "AssignmentPattern" || type === "TSParameterProperty") {
|
|
460
|
+
this.raise(TSErrors.UnsupportedSignatureParameterKind, {
|
|
461
|
+
at: pattern,
|
|
462
|
+
type
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
return list;
|
|
467
|
+
}
|
|
468
|
+
tsParseTypeMemberSemicolon() {
|
|
469
|
+
if (!this.eat(12) && !this.isLineTerminator()) {
|
|
470
|
+
this.expect(13);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
tsParseSignatureMember(kind, node) {
|
|
474
|
+
this.tsFillSignature(14, node);
|
|
475
|
+
this.tsParseTypeMemberSemicolon();
|
|
476
|
+
return this.finishNode(node, kind);
|
|
477
|
+
}
|
|
478
|
+
tsIsUnambiguouslyIndexSignature() {
|
|
479
|
+
this.next();
|
|
480
|
+
if ((0, _types.tokenIsIdentifier)(this.state.type)) {
|
|
481
|
+
this.next();
|
|
482
|
+
return this.match(14);
|
|
483
|
+
}
|
|
484
|
+
return false;
|
|
485
|
+
}
|
|
486
|
+
tsTryParseIndexSignature(node) {
|
|
487
|
+
if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))) {
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
this.expect(0);
|
|
491
|
+
const id = this.parseIdentifier();
|
|
492
|
+
id.typeAnnotation = this.tsParseTypeAnnotation();
|
|
493
|
+
this.resetEndLocation(id);
|
|
494
|
+
this.expect(3);
|
|
495
|
+
node.parameters = [id];
|
|
496
|
+
const type = this.tsTryParseTypeAnnotation();
|
|
497
|
+
if (type) node.typeAnnotation = type;
|
|
498
|
+
this.tsParseTypeMemberSemicolon();
|
|
499
|
+
return this.finishNode(node, "TSIndexSignature");
|
|
500
|
+
}
|
|
501
|
+
tsParsePropertyOrMethodSignature(node, readonly) {
|
|
502
|
+
if (this.eat(17)) node.optional = true;
|
|
503
|
+
const nodeAny = node;
|
|
504
|
+
if (this.match(10) || this.match(47)) {
|
|
505
|
+
if (readonly) {
|
|
506
|
+
this.raise(TSErrors.ReadonlyForMethodSignature, {
|
|
507
|
+
at: node
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
const method = nodeAny;
|
|
511
|
+
if (method.kind && this.match(47)) {
|
|
512
|
+
this.raise(TSErrors.AccesorCannotHaveTypeParameters, {
|
|
513
|
+
at: this.state.curPosition()
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
this.tsFillSignature(14, method);
|
|
517
|
+
this.tsParseTypeMemberSemicolon();
|
|
518
|
+
const paramsKey = "parameters";
|
|
519
|
+
const returnTypeKey = "typeAnnotation";
|
|
520
|
+
if (method.kind === "get") {
|
|
521
|
+
if (method[paramsKey].length > 0) {
|
|
522
|
+
this.raise(_parseError.Errors.BadGetterArity, {
|
|
523
|
+
at: this.state.curPosition()
|
|
524
|
+
});
|
|
525
|
+
if (this.isThisParam(method[paramsKey][0])) {
|
|
526
|
+
this.raise(TSErrors.AccesorCannotDeclareThisParameter, {
|
|
527
|
+
at: this.state.curPosition()
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
} else if (method.kind === "set") {
|
|
532
|
+
if (method[paramsKey].length !== 1) {
|
|
533
|
+
this.raise(_parseError.Errors.BadSetterArity, {
|
|
534
|
+
at: this.state.curPosition()
|
|
535
|
+
});
|
|
536
|
+
} else {
|
|
537
|
+
const firstParameter = method[paramsKey][0];
|
|
538
|
+
if (this.isThisParam(firstParameter)) {
|
|
539
|
+
this.raise(TSErrors.AccesorCannotDeclareThisParameter, {
|
|
540
|
+
at: this.state.curPosition()
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
if (firstParameter.type === "Identifier" && firstParameter.optional) {
|
|
544
|
+
this.raise(TSErrors.SetAccesorCannotHaveOptionalParameter, {
|
|
545
|
+
at: this.state.curPosition()
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
if (firstParameter.type === "RestElement") {
|
|
549
|
+
this.raise(TSErrors.SetAccesorCannotHaveRestParameter, {
|
|
550
|
+
at: this.state.curPosition()
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
if (method[returnTypeKey]) {
|
|
555
|
+
this.raise(TSErrors.SetAccesorCannotHaveReturnType, {
|
|
556
|
+
at: method[returnTypeKey]
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
} else {
|
|
560
|
+
method.kind = "method";
|
|
561
|
+
}
|
|
562
|
+
return this.finishNode(method, "TSMethodSignature");
|
|
563
|
+
} else {
|
|
564
|
+
const property = nodeAny;
|
|
565
|
+
if (readonly) property.readonly = true;
|
|
566
|
+
const type = this.tsTryParseTypeAnnotation();
|
|
567
|
+
if (type) property.typeAnnotation = type;
|
|
568
|
+
this.tsParseTypeMemberSemicolon();
|
|
569
|
+
return this.finishNode(property, "TSPropertySignature");
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
tsParseTypeMember() {
|
|
573
|
+
const node = this.startNode();
|
|
574
|
+
if (this.match(10) || this.match(47)) {
|
|
575
|
+
return this.tsParseSignatureMember("TSCallSignatureDeclaration", node);
|
|
576
|
+
}
|
|
577
|
+
if (this.match(77)) {
|
|
578
|
+
const id = this.startNode();
|
|
579
|
+
this.next();
|
|
580
|
+
if (this.match(10) || this.match(47)) {
|
|
581
|
+
return this.tsParseSignatureMember("TSConstructSignatureDeclaration", node);
|
|
582
|
+
} else {
|
|
583
|
+
node.key = this.createIdentifier(id, "new");
|
|
584
|
+
return this.tsParsePropertyOrMethodSignature(node, false);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
this.tsParseModifiers({
|
|
588
|
+
allowedModifiers: ["readonly"],
|
|
589
|
+
disallowedModifiers: ["declare", "abstract", "private", "protected", "public", "static", "override"]
|
|
590
|
+
}, node);
|
|
591
|
+
const idx = this.tsTryParseIndexSignature(node);
|
|
592
|
+
if (idx) {
|
|
593
|
+
return idx;
|
|
594
|
+
}
|
|
595
|
+
super.parsePropertyName(node);
|
|
596
|
+
if (!node.computed && node.key.type === "Identifier" && (node.key.name === "get" || node.key.name === "set") && this.tsTokenCanFollowModifier()) {
|
|
597
|
+
node.kind = node.key.name;
|
|
598
|
+
super.parsePropertyName(node);
|
|
599
|
+
}
|
|
600
|
+
return this.tsParsePropertyOrMethodSignature(node, !!node.readonly);
|
|
601
|
+
}
|
|
602
|
+
tsParseTypeLiteral() {
|
|
603
|
+
const node = this.startNode();
|
|
604
|
+
node.members = this.tsParseObjectTypeMembers();
|
|
605
|
+
return this.finishNode(node, "TSTypeLiteral");
|
|
606
|
+
}
|
|
607
|
+
tsParseObjectTypeMembers() {
|
|
608
|
+
this.expect(5);
|
|
609
|
+
const members = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this));
|
|
610
|
+
this.expect(8);
|
|
611
|
+
return members;
|
|
612
|
+
}
|
|
613
|
+
tsIsStartOfMappedType() {
|
|
614
|
+
this.next();
|
|
615
|
+
if (this.eat(53)) {
|
|
616
|
+
return this.isContextual(120);
|
|
617
|
+
}
|
|
618
|
+
if (this.isContextual(120)) {
|
|
619
|
+
this.next();
|
|
620
|
+
}
|
|
621
|
+
if (!this.match(0)) {
|
|
622
|
+
return false;
|
|
623
|
+
}
|
|
624
|
+
this.next();
|
|
625
|
+
if (!this.tsIsIdentifier()) {
|
|
626
|
+
return false;
|
|
627
|
+
}
|
|
628
|
+
this.next();
|
|
629
|
+
return this.match(58);
|
|
630
|
+
}
|
|
631
|
+
tsParseMappedTypeParameter() {
|
|
632
|
+
const node = this.startNode();
|
|
633
|
+
node.name = this.tsParseTypeParameterName();
|
|
634
|
+
node.constraint = this.tsExpectThenParseType(58);
|
|
635
|
+
return this.finishNode(node, "TSTypeParameter");
|
|
636
|
+
}
|
|
637
|
+
tsParseMappedType() {
|
|
638
|
+
const node = this.startNode();
|
|
639
|
+
this.expect(5);
|
|
640
|
+
if (this.match(53)) {
|
|
641
|
+
node.readonly = this.state.value;
|
|
642
|
+
this.next();
|
|
643
|
+
this.expectContextual(120);
|
|
644
|
+
} else if (this.eatContextual(120)) {
|
|
645
|
+
node.readonly = true;
|
|
646
|
+
}
|
|
647
|
+
this.expect(0);
|
|
648
|
+
node.typeParameter = this.tsParseMappedTypeParameter();
|
|
649
|
+
node.nameType = this.eatContextual(93) ? this.tsParseType() : null;
|
|
650
|
+
this.expect(3);
|
|
651
|
+
if (this.match(53)) {
|
|
652
|
+
node.optional = this.state.value;
|
|
653
|
+
this.next();
|
|
654
|
+
this.expect(17);
|
|
655
|
+
} else if (this.eat(17)) {
|
|
656
|
+
node.optional = true;
|
|
657
|
+
}
|
|
658
|
+
node.typeAnnotation = this.tsTryParseType();
|
|
659
|
+
this.semicolon();
|
|
660
|
+
this.expect(8);
|
|
661
|
+
return this.finishNode(node, "TSMappedType");
|
|
662
|
+
}
|
|
663
|
+
tsParseTupleType() {
|
|
664
|
+
const node = this.startNode();
|
|
665
|
+
node.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseTupleElementType.bind(this), true, false);
|
|
666
|
+
let seenOptionalElement = false;
|
|
667
|
+
let labeledElements = null;
|
|
668
|
+
node.elementTypes.forEach(elementNode => {
|
|
669
|
+
var _labeledElements;
|
|
670
|
+
const {
|
|
671
|
+
type
|
|
672
|
+
} = elementNode;
|
|
673
|
+
if (seenOptionalElement && type !== "TSRestType" && type !== "TSOptionalType" && !(type === "TSNamedTupleMember" && elementNode.optional)) {
|
|
674
|
+
this.raise(TSErrors.OptionalTypeBeforeRequired, {
|
|
675
|
+
at: elementNode
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
seenOptionalElement || (seenOptionalElement = type === "TSNamedTupleMember" && elementNode.optional || type === "TSOptionalType");
|
|
679
|
+
let checkType = type;
|
|
680
|
+
if (type === "TSRestType") {
|
|
681
|
+
elementNode = elementNode.typeAnnotation;
|
|
682
|
+
checkType = elementNode.type;
|
|
683
|
+
}
|
|
684
|
+
const isLabeled = checkType === "TSNamedTupleMember";
|
|
685
|
+
(_labeledElements = labeledElements) != null ? _labeledElements : labeledElements = isLabeled;
|
|
686
|
+
if (labeledElements !== isLabeled) {
|
|
687
|
+
this.raise(TSErrors.MixedLabeledAndUnlabeledElements, {
|
|
688
|
+
at: elementNode
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
return this.finishNode(node, "TSTupleType");
|
|
693
|
+
}
|
|
694
|
+
tsParseTupleElementType() {
|
|
695
|
+
const {
|
|
696
|
+
startLoc
|
|
697
|
+
} = this.state;
|
|
698
|
+
const rest = this.eat(21);
|
|
699
|
+
let labeled;
|
|
700
|
+
let label;
|
|
701
|
+
let optional;
|
|
702
|
+
let type;
|
|
703
|
+
const isWord = (0, _types.tokenIsKeywordOrIdentifier)(this.state.type);
|
|
704
|
+
const chAfterWord = isWord ? this.lookaheadCharCode() : null;
|
|
705
|
+
if (chAfterWord === 58) {
|
|
706
|
+
labeled = true;
|
|
707
|
+
optional = false;
|
|
708
|
+
label = this.parseIdentifier(true);
|
|
709
|
+
this.expect(14);
|
|
710
|
+
type = this.tsParseType();
|
|
711
|
+
} else if (chAfterWord === 63) {
|
|
712
|
+
optional = true;
|
|
713
|
+
const startLoc = this.state.startLoc;
|
|
714
|
+
const wordName = this.state.value;
|
|
715
|
+
const typeOrLabel = this.tsParseNonArrayType();
|
|
716
|
+
if (this.lookaheadCharCode() === 58) {
|
|
717
|
+
labeled = true;
|
|
718
|
+
label = this.createIdentifier(this.startNodeAt(startLoc), wordName);
|
|
719
|
+
this.expect(17);
|
|
720
|
+
this.expect(14);
|
|
721
|
+
type = this.tsParseType();
|
|
722
|
+
} else {
|
|
723
|
+
labeled = false;
|
|
724
|
+
type = typeOrLabel;
|
|
725
|
+
this.expect(17);
|
|
726
|
+
}
|
|
727
|
+
} else {
|
|
728
|
+
type = this.tsParseType();
|
|
729
|
+
optional = this.eat(17);
|
|
730
|
+
labeled = this.eat(14);
|
|
731
|
+
}
|
|
732
|
+
if (labeled) {
|
|
733
|
+
let labeledNode;
|
|
734
|
+
if (label) {
|
|
735
|
+
labeledNode = this.startNodeAtNode(label);
|
|
736
|
+
labeledNode.optional = optional;
|
|
737
|
+
labeledNode.label = label;
|
|
738
|
+
labeledNode.elementType = type;
|
|
739
|
+
if (this.eat(17)) {
|
|
740
|
+
labeledNode.optional = true;
|
|
741
|
+
this.raise(TSErrors.TupleOptionalAfterType, {
|
|
742
|
+
at: this.state.lastTokStartLoc
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
} else {
|
|
746
|
+
labeledNode = this.startNodeAtNode(type);
|
|
747
|
+
labeledNode.optional = optional;
|
|
748
|
+
this.raise(TSErrors.InvalidTupleMemberLabel, {
|
|
749
|
+
at: type
|
|
750
|
+
});
|
|
751
|
+
labeledNode.label = type;
|
|
752
|
+
labeledNode.elementType = this.tsParseType();
|
|
753
|
+
}
|
|
754
|
+
type = this.finishNode(labeledNode, "TSNamedTupleMember");
|
|
755
|
+
} else if (optional) {
|
|
756
|
+
const optionalTypeNode = this.startNodeAtNode(type);
|
|
757
|
+
optionalTypeNode.typeAnnotation = type;
|
|
758
|
+
type = this.finishNode(optionalTypeNode, "TSOptionalType");
|
|
759
|
+
}
|
|
760
|
+
if (rest) {
|
|
761
|
+
const restNode = this.startNodeAt(startLoc);
|
|
762
|
+
restNode.typeAnnotation = type;
|
|
763
|
+
type = this.finishNode(restNode, "TSRestType");
|
|
764
|
+
}
|
|
765
|
+
return type;
|
|
766
|
+
}
|
|
767
|
+
tsParseParenthesizedType() {
|
|
768
|
+
const node = this.startNode();
|
|
769
|
+
this.expect(10);
|
|
770
|
+
node.typeAnnotation = this.tsParseType();
|
|
771
|
+
this.expect(11);
|
|
772
|
+
return this.finishNode(node, "TSParenthesizedType");
|
|
773
|
+
}
|
|
774
|
+
tsParseFunctionOrConstructorType(type, abstract) {
|
|
775
|
+
const node = this.startNode();
|
|
776
|
+
if (type === "TSConstructorType") {
|
|
777
|
+
node.abstract = !!abstract;
|
|
778
|
+
if (abstract) this.next();
|
|
779
|
+
this.next();
|
|
780
|
+
}
|
|
781
|
+
this.tsInAllowConditionalTypesContext(() => this.tsFillSignature(19, node));
|
|
782
|
+
return this.finishNode(node, type);
|
|
783
|
+
}
|
|
784
|
+
tsParseLiteralTypeNode() {
|
|
785
|
+
const node = this.startNode();
|
|
786
|
+
switch (this.state.type) {
|
|
787
|
+
case 132:
|
|
788
|
+
case 133:
|
|
789
|
+
case 131:
|
|
790
|
+
case 85:
|
|
791
|
+
case 86:
|
|
792
|
+
node.literal = super.parseExprAtom();
|
|
793
|
+
break;
|
|
794
|
+
default:
|
|
795
|
+
this.unexpected();
|
|
796
|
+
}
|
|
797
|
+
return this.finishNode(node, "TSLiteralType");
|
|
798
|
+
}
|
|
799
|
+
tsParseTemplateLiteralType() {
|
|
800
|
+
const node = this.startNode();
|
|
801
|
+
node.literal = super.parseTemplate(false);
|
|
802
|
+
return this.finishNode(node, "TSLiteralType");
|
|
803
|
+
}
|
|
804
|
+
parseTemplateSubstitution() {
|
|
805
|
+
if (this.state.inType) return this.tsParseType();
|
|
806
|
+
return super.parseTemplateSubstitution();
|
|
807
|
+
}
|
|
808
|
+
tsParseThisTypeOrThisTypePredicate() {
|
|
809
|
+
const thisKeyword = this.tsParseThisTypeNode();
|
|
810
|
+
if (this.isContextual(114) && !this.hasPrecedingLineBreak()) {
|
|
811
|
+
return this.tsParseThisTypePredicate(thisKeyword);
|
|
812
|
+
} else {
|
|
813
|
+
return thisKeyword;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
tsParseNonArrayType() {
|
|
817
|
+
switch (this.state.type) {
|
|
818
|
+
case 131:
|
|
819
|
+
case 132:
|
|
820
|
+
case 133:
|
|
821
|
+
case 85:
|
|
822
|
+
case 86:
|
|
823
|
+
return this.tsParseLiteralTypeNode();
|
|
824
|
+
case 53:
|
|
825
|
+
if (this.state.value === "-") {
|
|
826
|
+
const node = this.startNode();
|
|
827
|
+
const nextToken = this.lookahead();
|
|
828
|
+
if (nextToken.type !== 132 && nextToken.type !== 133) {
|
|
829
|
+
this.unexpected();
|
|
830
|
+
}
|
|
831
|
+
node.literal = this.parseMaybeUnary();
|
|
832
|
+
return this.finishNode(node, "TSLiteralType");
|
|
833
|
+
}
|
|
834
|
+
break;
|
|
835
|
+
case 78:
|
|
836
|
+
return this.tsParseThisTypeOrThisTypePredicate();
|
|
837
|
+
case 87:
|
|
838
|
+
return this.tsParseTypeQuery();
|
|
839
|
+
case 83:
|
|
840
|
+
return this.tsParseImportType();
|
|
841
|
+
case 5:
|
|
842
|
+
return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral();
|
|
843
|
+
case 0:
|
|
844
|
+
return this.tsParseTupleType();
|
|
845
|
+
case 10:
|
|
846
|
+
;
|
|
847
|
+
return this.tsParseParenthesizedType();
|
|
848
|
+
case 25:
|
|
849
|
+
case 24:
|
|
850
|
+
return this.tsParseTemplateLiteralType();
|
|
851
|
+
default:
|
|
852
|
+
{
|
|
853
|
+
const {
|
|
854
|
+
type
|
|
855
|
+
} = this.state;
|
|
856
|
+
if ((0, _types.tokenIsIdentifier)(type) || type === 88 || type === 84) {
|
|
857
|
+
const nodeType = type === 88 ? "TSVoidKeyword" : type === 84 ? "TSNullKeyword" : keywordTypeFromName(this.state.value);
|
|
858
|
+
if (nodeType !== undefined && this.lookaheadCharCode() !== 46) {
|
|
859
|
+
const node = this.startNode();
|
|
860
|
+
this.next();
|
|
861
|
+
return this.finishNode(node, nodeType);
|
|
862
|
+
}
|
|
863
|
+
return this.tsParseTypeReference();
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
this.unexpected();
|
|
868
|
+
}
|
|
869
|
+
tsParseArrayTypeOrHigher() {
|
|
870
|
+
let type = this.tsParseNonArrayType();
|
|
871
|
+
while (!this.hasPrecedingLineBreak() && this.eat(0)) {
|
|
872
|
+
if (this.match(3)) {
|
|
873
|
+
const node = this.startNodeAtNode(type);
|
|
874
|
+
node.elementType = type;
|
|
875
|
+
this.expect(3);
|
|
876
|
+
type = this.finishNode(node, "TSArrayType");
|
|
877
|
+
} else {
|
|
878
|
+
const node = this.startNodeAtNode(type);
|
|
879
|
+
node.objectType = type;
|
|
880
|
+
node.indexType = this.tsParseType();
|
|
881
|
+
this.expect(3);
|
|
882
|
+
type = this.finishNode(node, "TSIndexedAccessType");
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
return type;
|
|
886
|
+
}
|
|
887
|
+
tsParseTypeOperator() {
|
|
888
|
+
const node = this.startNode();
|
|
889
|
+
const operator = this.state.value;
|
|
890
|
+
this.next();
|
|
891
|
+
node.operator = operator;
|
|
892
|
+
node.typeAnnotation = this.tsParseTypeOperatorOrHigher();
|
|
893
|
+
if (operator === "readonly") {
|
|
894
|
+
this.tsCheckTypeAnnotationForReadOnly(node);
|
|
895
|
+
}
|
|
896
|
+
return this.finishNode(node, "TSTypeOperator");
|
|
897
|
+
}
|
|
898
|
+
tsCheckTypeAnnotationForReadOnly(node) {
|
|
899
|
+
switch (node.typeAnnotation.type) {
|
|
900
|
+
case "TSTupleType":
|
|
901
|
+
case "TSArrayType":
|
|
902
|
+
return;
|
|
903
|
+
default:
|
|
904
|
+
this.raise(TSErrors.UnexpectedReadonly, {
|
|
905
|
+
at: node
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
tsParseInferType() {
|
|
910
|
+
const node = this.startNode();
|
|
911
|
+
this.expectContextual(113);
|
|
912
|
+
const typeParameter = this.startNode();
|
|
913
|
+
typeParameter.name = this.tsParseTypeParameterName();
|
|
914
|
+
typeParameter.constraint = this.tsTryParse(() => this.tsParseConstraintForInferType());
|
|
915
|
+
node.typeParameter = this.finishNode(typeParameter, "TSTypeParameter");
|
|
916
|
+
return this.finishNode(node, "TSInferType");
|
|
917
|
+
}
|
|
918
|
+
tsParseConstraintForInferType() {
|
|
919
|
+
if (this.eat(81)) {
|
|
920
|
+
const constraint = this.tsInDisallowConditionalTypesContext(() => this.tsParseType());
|
|
921
|
+
if (this.state.inDisallowConditionalTypesContext || !this.match(17)) {
|
|
922
|
+
return constraint;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
tsParseTypeOperatorOrHigher() {
|
|
927
|
+
const isTypeOperator = (0, _types.tokenIsTSTypeOperator)(this.state.type) && !this.state.containsEsc;
|
|
928
|
+
return isTypeOperator ? this.tsParseTypeOperator() : this.isContextual(113) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher());
|
|
929
|
+
}
|
|
930
|
+
tsParseUnionOrIntersectionType(kind, parseConstituentType, operator) {
|
|
931
|
+
const node = this.startNode();
|
|
932
|
+
const hasLeadingOperator = this.eat(operator);
|
|
933
|
+
const types = [];
|
|
934
|
+
do {
|
|
935
|
+
types.push(parseConstituentType());
|
|
936
|
+
} while (this.eat(operator));
|
|
937
|
+
if (types.length === 1 && !hasLeadingOperator) {
|
|
938
|
+
return types[0];
|
|
939
|
+
}
|
|
940
|
+
node.types = types;
|
|
941
|
+
return this.finishNode(node, kind);
|
|
942
|
+
}
|
|
943
|
+
tsParseIntersectionTypeOrHigher() {
|
|
944
|
+
return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), 45);
|
|
945
|
+
}
|
|
946
|
+
tsParseUnionTypeOrHigher() {
|
|
947
|
+
return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), 43);
|
|
948
|
+
}
|
|
949
|
+
tsIsStartOfFunctionType() {
|
|
950
|
+
if (this.match(47)) {
|
|
951
|
+
return true;
|
|
952
|
+
}
|
|
953
|
+
return this.match(10) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this));
|
|
954
|
+
}
|
|
955
|
+
tsSkipParameterStart() {
|
|
956
|
+
if ((0, _types.tokenIsIdentifier)(this.state.type) || this.match(78)) {
|
|
957
|
+
this.next();
|
|
958
|
+
return true;
|
|
959
|
+
}
|
|
960
|
+
if (this.match(5)) {
|
|
961
|
+
const {
|
|
962
|
+
errors
|
|
963
|
+
} = this.state;
|
|
964
|
+
const previousErrorCount = errors.length;
|
|
965
|
+
try {
|
|
966
|
+
this.parseObjectLike(8, true);
|
|
967
|
+
return errors.length === previousErrorCount;
|
|
968
|
+
} catch (_unused) {
|
|
969
|
+
return false;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
if (this.match(0)) {
|
|
973
|
+
this.next();
|
|
974
|
+
const {
|
|
975
|
+
errors
|
|
976
|
+
} = this.state;
|
|
977
|
+
const previousErrorCount = errors.length;
|
|
978
|
+
try {
|
|
979
|
+
super.parseBindingList(3, 93, _lval.ParseBindingListFlags.ALLOW_EMPTY);
|
|
980
|
+
return errors.length === previousErrorCount;
|
|
981
|
+
} catch (_unused2) {
|
|
982
|
+
return false;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
return false;
|
|
986
|
+
}
|
|
987
|
+
tsIsUnambiguouslyStartOfFunctionType() {
|
|
988
|
+
this.next();
|
|
989
|
+
if (this.match(11) || this.match(21)) {
|
|
990
|
+
return true;
|
|
991
|
+
}
|
|
992
|
+
if (this.tsSkipParameterStart()) {
|
|
993
|
+
if (this.match(14) || this.match(12) || this.match(17) || this.match(29)) {
|
|
994
|
+
return true;
|
|
995
|
+
}
|
|
996
|
+
if (this.match(11)) {
|
|
997
|
+
this.next();
|
|
998
|
+
if (this.match(19)) {
|
|
999
|
+
return true;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
return false;
|
|
1004
|
+
}
|
|
1005
|
+
tsParseTypeOrTypePredicateAnnotation(returnToken) {
|
|
1006
|
+
return this.tsInType(() => {
|
|
1007
|
+
const t = this.startNode();
|
|
1008
|
+
this.expect(returnToken);
|
|
1009
|
+
const node = this.startNode();
|
|
1010
|
+
const asserts = !!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));
|
|
1011
|
+
if (asserts && this.match(78)) {
|
|
1012
|
+
let thisTypePredicate = this.tsParseThisTypeOrThisTypePredicate();
|
|
1013
|
+
if (thisTypePredicate.type === "TSThisType") {
|
|
1014
|
+
node.parameterName = thisTypePredicate;
|
|
1015
|
+
node.asserts = true;
|
|
1016
|
+
node.typeAnnotation = null;
|
|
1017
|
+
thisTypePredicate = this.finishNode(node, "TSTypePredicate");
|
|
1018
|
+
} else {
|
|
1019
|
+
this.resetStartLocationFromNode(thisTypePredicate, node);
|
|
1020
|
+
thisTypePredicate.asserts = true;
|
|
1021
|
+
}
|
|
1022
|
+
t.typeAnnotation = thisTypePredicate;
|
|
1023
|
+
return this.finishNode(t, "TSTypeAnnotation");
|
|
1024
|
+
}
|
|
1025
|
+
const typePredicateVariable = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));
|
|
1026
|
+
if (!typePredicateVariable) {
|
|
1027
|
+
if (!asserts) {
|
|
1028
|
+
return this.tsParseTypeAnnotation(false, t);
|
|
1029
|
+
}
|
|
1030
|
+
node.parameterName = this.parseIdentifier();
|
|
1031
|
+
node.asserts = asserts;
|
|
1032
|
+
node.typeAnnotation = null;
|
|
1033
|
+
t.typeAnnotation = this.finishNode(node, "TSTypePredicate");
|
|
1034
|
+
return this.finishNode(t, "TSTypeAnnotation");
|
|
1035
|
+
}
|
|
1036
|
+
const type = this.tsParseTypeAnnotation(false);
|
|
1037
|
+
node.parameterName = typePredicateVariable;
|
|
1038
|
+
node.typeAnnotation = type;
|
|
1039
|
+
node.asserts = asserts;
|
|
1040
|
+
t.typeAnnotation = this.finishNode(node, "TSTypePredicate");
|
|
1041
|
+
return this.finishNode(t, "TSTypeAnnotation");
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
tsTryParseTypeOrTypePredicateAnnotation() {
|
|
1045
|
+
if (this.match(14)) {
|
|
1046
|
+
return this.tsParseTypeOrTypePredicateAnnotation(14);
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
tsTryParseTypeAnnotation() {
|
|
1050
|
+
if (this.match(14)) {
|
|
1051
|
+
return this.tsParseTypeAnnotation();
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
tsTryParseType() {
|
|
1055
|
+
return this.tsEatThenParseType(14);
|
|
1056
|
+
}
|
|
1057
|
+
tsParseTypePredicatePrefix() {
|
|
1058
|
+
const id = this.parseIdentifier();
|
|
1059
|
+
if (this.isContextual(114) && !this.hasPrecedingLineBreak()) {
|
|
1060
|
+
this.next();
|
|
1061
|
+
return id;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
tsParseTypePredicateAsserts() {
|
|
1065
|
+
if (this.state.type !== 107) {
|
|
1066
|
+
return false;
|
|
1067
|
+
}
|
|
1068
|
+
const containsEsc = this.state.containsEsc;
|
|
1069
|
+
this.next();
|
|
1070
|
+
if (!(0, _types.tokenIsIdentifier)(this.state.type) && !this.match(78)) {
|
|
1071
|
+
return false;
|
|
1072
|
+
}
|
|
1073
|
+
if (containsEsc) {
|
|
1074
|
+
this.raise(_parseError.Errors.InvalidEscapedReservedWord, {
|
|
1075
|
+
at: this.state.lastTokStartLoc,
|
|
1076
|
+
reservedWord: "asserts"
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
1079
|
+
return true;
|
|
1080
|
+
}
|
|
1081
|
+
tsParseTypeAnnotation(eatColon = true, t = this.startNode()) {
|
|
1082
|
+
this.tsInType(() => {
|
|
1083
|
+
if (eatColon) this.expect(14);
|
|
1084
|
+
t.typeAnnotation = this.tsParseType();
|
|
1085
|
+
});
|
|
1086
|
+
return this.finishNode(t, "TSTypeAnnotation");
|
|
1087
|
+
}
|
|
1088
|
+
tsParseType() {
|
|
1089
|
+
assert(this.state.inType);
|
|
1090
|
+
const type = this.tsParseNonConditionalType();
|
|
1091
|
+
if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81)) {
|
|
1092
|
+
return type;
|
|
1093
|
+
}
|
|
1094
|
+
const node = this.startNodeAtNode(type);
|
|
1095
|
+
node.checkType = type;
|
|
1096
|
+
node.extendsType = this.tsInDisallowConditionalTypesContext(() => this.tsParseNonConditionalType());
|
|
1097
|
+
this.expect(17);
|
|
1098
|
+
node.trueType = this.tsInAllowConditionalTypesContext(() => this.tsParseType());
|
|
1099
|
+
this.expect(14);
|
|
1100
|
+
node.falseType = this.tsInAllowConditionalTypesContext(() => this.tsParseType());
|
|
1101
|
+
return this.finishNode(node, "TSConditionalType");
|
|
1102
|
+
}
|
|
1103
|
+
isAbstractConstructorSignature() {
|
|
1104
|
+
return this.isContextual(122) && this.lookahead().type === 77;
|
|
1105
|
+
}
|
|
1106
|
+
tsParseNonConditionalType() {
|
|
1107
|
+
if (this.tsIsStartOfFunctionType()) {
|
|
1108
|
+
return this.tsParseFunctionOrConstructorType("TSFunctionType");
|
|
1109
|
+
}
|
|
1110
|
+
if (this.match(77)) {
|
|
1111
|
+
return this.tsParseFunctionOrConstructorType("TSConstructorType");
|
|
1112
|
+
} else if (this.isAbstractConstructorSignature()) {
|
|
1113
|
+
return this.tsParseFunctionOrConstructorType("TSConstructorType", true);
|
|
1114
|
+
}
|
|
1115
|
+
return this.tsParseUnionTypeOrHigher();
|
|
1116
|
+
}
|
|
1117
|
+
tsParseTypeAssertion() {
|
|
1118
|
+
if (this.getPluginOption("typescript", "disallowAmbiguousJSXLike")) {
|
|
1119
|
+
this.raise(TSErrors.ReservedTypeAssertion, {
|
|
1120
|
+
at: this.state.startLoc
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
const node = this.startNode();
|
|
1124
|
+
node.typeAnnotation = this.tsInType(() => {
|
|
1125
|
+
this.next();
|
|
1126
|
+
return this.match(75) ? this.tsParseTypeReference() : this.tsParseType();
|
|
1127
|
+
});
|
|
1128
|
+
this.expect(48);
|
|
1129
|
+
node.expression = this.parseMaybeUnary();
|
|
1130
|
+
return this.finishNode(node, "TSTypeAssertion");
|
|
1131
|
+
}
|
|
1132
|
+
tsParseHeritageClause(token) {
|
|
1133
|
+
const originalStartLoc = this.state.startLoc;
|
|
1134
|
+
const delimitedList = this.tsParseDelimitedList("HeritageClauseElement", () => {
|
|
1135
|
+
const node = this.startNode();
|
|
1136
|
+
node.expression = this.tsParseEntityName();
|
|
1137
|
+
if (this.match(47)) {
|
|
1138
|
+
node.typeParameters = this.tsParseTypeArguments();
|
|
1139
|
+
}
|
|
1140
|
+
return this.finishNode(node, "TSExpressionWithTypeArguments");
|
|
1141
|
+
});
|
|
1142
|
+
if (!delimitedList.length) {
|
|
1143
|
+
this.raise(TSErrors.EmptyHeritageClauseType, {
|
|
1144
|
+
at: originalStartLoc,
|
|
1145
|
+
token
|
|
1146
|
+
});
|
|
1147
|
+
}
|
|
1148
|
+
return delimitedList;
|
|
1149
|
+
}
|
|
1150
|
+
tsParseInterfaceDeclaration(node, properties = {}) {
|
|
1151
|
+
if (this.hasFollowingLineBreak()) return null;
|
|
1152
|
+
this.expectContextual(127);
|
|
1153
|
+
if (properties.declare) node.declare = true;
|
|
1154
|
+
if ((0, _types.tokenIsIdentifier)(this.state.type)) {
|
|
1155
|
+
node.id = this.parseIdentifier();
|
|
1156
|
+
this.checkIdentifier(node.id, _scopeflags.BIND_TS_INTERFACE);
|
|
1157
|
+
} else {
|
|
1158
|
+
node.id = null;
|
|
1159
|
+
this.raise(TSErrors.MissingInterfaceName, {
|
|
1160
|
+
at: this.state.startLoc
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
node.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);
|
|
1164
|
+
if (this.eat(81)) {
|
|
1165
|
+
node.extends = this.tsParseHeritageClause("extends");
|
|
1166
|
+
}
|
|
1167
|
+
const body = this.startNode();
|
|
1168
|
+
body.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this));
|
|
1169
|
+
node.body = this.finishNode(body, "TSInterfaceBody");
|
|
1170
|
+
return this.finishNode(node, "TSInterfaceDeclaration");
|
|
1171
|
+
}
|
|
1172
|
+
tsParseTypeAliasDeclaration(node) {
|
|
1173
|
+
node.id = this.parseIdentifier();
|
|
1174
|
+
this.checkIdentifier(node.id, _scopeflags.BIND_TS_TYPE);
|
|
1175
|
+
node.typeAnnotation = this.tsInType(() => {
|
|
1176
|
+
node.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers);
|
|
1177
|
+
this.expect(29);
|
|
1178
|
+
if (this.isContextual(112) && this.lookahead().type !== 16) {
|
|
1179
|
+
const node = this.startNode();
|
|
1180
|
+
this.next();
|
|
1181
|
+
return this.finishNode(node, "TSIntrinsicKeyword");
|
|
1182
|
+
}
|
|
1183
|
+
return this.tsParseType();
|
|
1184
|
+
});
|
|
1185
|
+
this.semicolon();
|
|
1186
|
+
return this.finishNode(node, "TSTypeAliasDeclaration");
|
|
1187
|
+
}
|
|
1188
|
+
tsInNoContext(cb) {
|
|
1189
|
+
const oldContext = this.state.context;
|
|
1190
|
+
this.state.context = [oldContext[0]];
|
|
1191
|
+
try {
|
|
1192
|
+
return cb();
|
|
1193
|
+
} finally {
|
|
1194
|
+
this.state.context = oldContext;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
tsInType(cb) {
|
|
1198
|
+
const oldInType = this.state.inType;
|
|
1199
|
+
this.state.inType = true;
|
|
1200
|
+
try {
|
|
1201
|
+
return cb();
|
|
1202
|
+
} finally {
|
|
1203
|
+
this.state.inType = oldInType;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
tsInDisallowConditionalTypesContext(cb) {
|
|
1207
|
+
const oldInDisallowConditionalTypesContext = this.state.inDisallowConditionalTypesContext;
|
|
1208
|
+
this.state.inDisallowConditionalTypesContext = true;
|
|
1209
|
+
try {
|
|
1210
|
+
return cb();
|
|
1211
|
+
} finally {
|
|
1212
|
+
this.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
tsInAllowConditionalTypesContext(cb) {
|
|
1216
|
+
const oldInDisallowConditionalTypesContext = this.state.inDisallowConditionalTypesContext;
|
|
1217
|
+
this.state.inDisallowConditionalTypesContext = false;
|
|
1218
|
+
try {
|
|
1219
|
+
return cb();
|
|
1220
|
+
} finally {
|
|
1221
|
+
this.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
tsEatThenParseType(token) {
|
|
1225
|
+
if (this.match(token)) {
|
|
1226
|
+
return this.tsNextThenParseType();
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
tsExpectThenParseType(token) {
|
|
1230
|
+
return this.tsInType(() => {
|
|
1231
|
+
this.expect(token);
|
|
1232
|
+
return this.tsParseType();
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
tsNextThenParseType() {
|
|
1236
|
+
return this.tsInType(() => {
|
|
1237
|
+
this.next();
|
|
1238
|
+
return this.tsParseType();
|
|
1239
|
+
});
|
|
1240
|
+
}
|
|
1241
|
+
tsParseEnumMember() {
|
|
1242
|
+
const node = this.startNode();
|
|
1243
|
+
node.id = this.match(131) ? super.parseStringLiteral(this.state.value) : this.parseIdentifier(true);
|
|
1244
|
+
if (this.eat(29)) {
|
|
1245
|
+
node.initializer = super.parseMaybeAssignAllowIn();
|
|
1246
|
+
}
|
|
1247
|
+
return this.finishNode(node, "TSEnumMember");
|
|
1248
|
+
}
|
|
1249
|
+
tsParseEnumDeclaration(node, properties = {}) {
|
|
1250
|
+
if (properties.const) node.const = true;
|
|
1251
|
+
if (properties.declare) node.declare = true;
|
|
1252
|
+
this.expectContextual(124);
|
|
1253
|
+
node.id = this.parseIdentifier();
|
|
1254
|
+
this.checkIdentifier(node.id, node.const ? _scopeflags.BIND_TS_CONST_ENUM : _scopeflags.BIND_TS_ENUM);
|
|
1255
|
+
this.expect(5);
|
|
1256
|
+
node.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this));
|
|
1257
|
+
this.expect(8);
|
|
1258
|
+
return this.finishNode(node, "TSEnumDeclaration");
|
|
1259
|
+
}
|
|
1260
|
+
tsParseModuleBlock() {
|
|
1261
|
+
const node = this.startNode();
|
|
1262
|
+
this.scope.enter(_scopeflags.SCOPE_OTHER);
|
|
1263
|
+
this.expect(5);
|
|
1264
|
+
super.parseBlockOrModuleBlockBody(node.body = [], undefined, true, 8);
|
|
1265
|
+
this.scope.exit();
|
|
1266
|
+
return this.finishNode(node, "TSModuleBlock");
|
|
1267
|
+
}
|
|
1268
|
+
tsParseModuleOrNamespaceDeclaration(node, nested = false) {
|
|
1269
|
+
node.id = this.parseIdentifier();
|
|
1270
|
+
if (!nested) {
|
|
1271
|
+
this.checkIdentifier(node.id, _scopeflags.BIND_TS_NAMESPACE);
|
|
1272
|
+
}
|
|
1273
|
+
if (this.eat(16)) {
|
|
1274
|
+
const inner = this.startNode();
|
|
1275
|
+
this.tsParseModuleOrNamespaceDeclaration(inner, true);
|
|
1276
|
+
node.body = inner;
|
|
1277
|
+
} else {
|
|
1278
|
+
this.scope.enter(_scopeflags.SCOPE_TS_MODULE);
|
|
1279
|
+
this.prodParam.enter(_productionParameter.PARAM);
|
|
1280
|
+
node.body = this.tsParseModuleBlock();
|
|
1281
|
+
this.prodParam.exit();
|
|
1282
|
+
this.scope.exit();
|
|
1283
|
+
}
|
|
1284
|
+
return this.finishNode(node, "TSModuleDeclaration");
|
|
1285
|
+
}
|
|
1286
|
+
tsParseAmbientExternalModuleDeclaration(node) {
|
|
1287
|
+
if (this.isContextual(110)) {
|
|
1288
|
+
node.global = true;
|
|
1289
|
+
node.id = this.parseIdentifier();
|
|
1290
|
+
} else if (this.match(131)) {
|
|
1291
|
+
node.id = super.parseStringLiteral(this.state.value);
|
|
1292
|
+
} else {
|
|
1293
|
+
this.unexpected();
|
|
1294
|
+
}
|
|
1295
|
+
if (this.match(5)) {
|
|
1296
|
+
this.scope.enter(_scopeflags.SCOPE_TS_MODULE);
|
|
1297
|
+
this.prodParam.enter(_productionParameter.PARAM);
|
|
1298
|
+
node.body = this.tsParseModuleBlock();
|
|
1299
|
+
this.prodParam.exit();
|
|
1300
|
+
this.scope.exit();
|
|
1301
|
+
} else {
|
|
1302
|
+
this.semicolon();
|
|
1303
|
+
}
|
|
1304
|
+
return this.finishNode(node, "TSModuleDeclaration");
|
|
1305
|
+
}
|
|
1306
|
+
tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier, isExport) {
|
|
1307
|
+
node.isExport = isExport || false;
|
|
1308
|
+
node.id = maybeDefaultIdentifier || this.parseIdentifier();
|
|
1309
|
+
this.checkIdentifier(node.id, _scopeflags.BIND_FLAGS_TS_IMPORT);
|
|
1310
|
+
this.expect(29);
|
|
1311
|
+
const moduleReference = this.tsParseModuleReference();
|
|
1312
|
+
if (node.importKind === "type" && moduleReference.type !== "TSExternalModuleReference") {
|
|
1313
|
+
this.raise(TSErrors.ImportAliasHasImportType, {
|
|
1314
|
+
at: moduleReference
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
node.moduleReference = moduleReference;
|
|
1318
|
+
this.semicolon();
|
|
1319
|
+
return this.finishNode(node, "TSImportEqualsDeclaration");
|
|
1320
|
+
}
|
|
1321
|
+
tsIsExternalModuleReference() {
|
|
1322
|
+
return this.isContextual(117) && this.lookaheadCharCode() === 40;
|
|
1323
|
+
}
|
|
1324
|
+
tsParseModuleReference() {
|
|
1325
|
+
return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(false);
|
|
1326
|
+
}
|
|
1327
|
+
tsParseExternalModuleReference() {
|
|
1328
|
+
const node = this.startNode();
|
|
1329
|
+
this.expectContextual(117);
|
|
1330
|
+
this.expect(10);
|
|
1331
|
+
if (!this.match(131)) {
|
|
1332
|
+
this.unexpected();
|
|
1333
|
+
}
|
|
1334
|
+
node.expression = super.parseExprAtom();
|
|
1335
|
+
this.expect(11);
|
|
1336
|
+
this.sawUnambiguousESM = true;
|
|
1337
|
+
return this.finishNode(node, "TSExternalModuleReference");
|
|
1338
|
+
}
|
|
1339
|
+
tsLookAhead(f) {
|
|
1340
|
+
const state = this.state.clone();
|
|
1341
|
+
const res = f();
|
|
1342
|
+
this.state = state;
|
|
1343
|
+
return res;
|
|
1344
|
+
}
|
|
1345
|
+
tsTryParseAndCatch(f) {
|
|
1346
|
+
const result = this.tryParse(abort => f() || abort());
|
|
1347
|
+
if (result.aborted || !result.node) return;
|
|
1348
|
+
if (result.error) this.state = result.failState;
|
|
1349
|
+
return result.node;
|
|
1350
|
+
}
|
|
1351
|
+
tsTryParse(f) {
|
|
1352
|
+
const state = this.state.clone();
|
|
1353
|
+
const result = f();
|
|
1354
|
+
if (result !== undefined && result !== false) {
|
|
1355
|
+
return result;
|
|
1356
|
+
}
|
|
1357
|
+
this.state = state;
|
|
1358
|
+
}
|
|
1359
|
+
tsTryParseDeclare(nany) {
|
|
1360
|
+
if (this.isLineTerminator()) {
|
|
1361
|
+
return;
|
|
1362
|
+
}
|
|
1363
|
+
let startType = this.state.type;
|
|
1364
|
+
let kind;
|
|
1365
|
+
if (this.isContextual(99)) {
|
|
1366
|
+
startType = 74;
|
|
1367
|
+
kind = "let";
|
|
1368
|
+
}
|
|
1369
|
+
return this.tsInAmbientContext(() => {
|
|
1370
|
+
switch (startType) {
|
|
1371
|
+
case 68:
|
|
1372
|
+
nany.declare = true;
|
|
1373
|
+
return super.parseFunctionStatement(nany, false, false);
|
|
1374
|
+
case 80:
|
|
1375
|
+
nany.declare = true;
|
|
1376
|
+
return this.parseClass(nany, true, false);
|
|
1377
|
+
case 124:
|
|
1378
|
+
return this.tsParseEnumDeclaration(nany, {
|
|
1379
|
+
declare: true
|
|
1380
|
+
});
|
|
1381
|
+
case 110:
|
|
1382
|
+
return this.tsParseAmbientExternalModuleDeclaration(nany);
|
|
1383
|
+
case 75:
|
|
1384
|
+
case 74:
|
|
1385
|
+
if (!this.match(75) || !this.isLookaheadContextual("enum")) {
|
|
1386
|
+
nany.declare = true;
|
|
1387
|
+
return this.parseVarStatement(nany, kind || this.state.value, true);
|
|
1388
|
+
}
|
|
1389
|
+
this.expect(75);
|
|
1390
|
+
return this.tsParseEnumDeclaration(nany, {
|
|
1391
|
+
const: true,
|
|
1392
|
+
declare: true
|
|
1393
|
+
});
|
|
1394
|
+
case 127:
|
|
1395
|
+
{
|
|
1396
|
+
const result = this.tsParseInterfaceDeclaration(nany, {
|
|
1397
|
+
declare: true
|
|
1398
|
+
});
|
|
1399
|
+
if (result) return result;
|
|
1400
|
+
}
|
|
1401
|
+
default:
|
|
1402
|
+
if ((0, _types.tokenIsIdentifier)(startType)) {
|
|
1403
|
+
return this.tsParseDeclaration(nany, this.state.value, true, null);
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
tsTryParseExportDeclaration() {
|
|
1409
|
+
return this.tsParseDeclaration(this.startNode(), this.state.value, true, null);
|
|
1410
|
+
}
|
|
1411
|
+
tsParseExpressionStatement(node, expr, decorators) {
|
|
1412
|
+
switch (expr.name) {
|
|
1413
|
+
case "declare":
|
|
1414
|
+
{
|
|
1415
|
+
const declaration = this.tsTryParseDeclare(node);
|
|
1416
|
+
if (declaration) {
|
|
1417
|
+
declaration.declare = true;
|
|
1418
|
+
}
|
|
1419
|
+
return declaration;
|
|
1420
|
+
}
|
|
1421
|
+
case "global":
|
|
1422
|
+
if (this.match(5)) {
|
|
1423
|
+
this.scope.enter(_scopeflags.SCOPE_TS_MODULE);
|
|
1424
|
+
this.prodParam.enter(_productionParameter.PARAM);
|
|
1425
|
+
const mod = node;
|
|
1426
|
+
mod.global = true;
|
|
1427
|
+
mod.id = expr;
|
|
1428
|
+
mod.body = this.tsParseModuleBlock();
|
|
1429
|
+
this.scope.exit();
|
|
1430
|
+
this.prodParam.exit();
|
|
1431
|
+
return this.finishNode(mod, "TSModuleDeclaration");
|
|
1432
|
+
}
|
|
1433
|
+
break;
|
|
1434
|
+
default:
|
|
1435
|
+
return this.tsParseDeclaration(node, expr.name, false, decorators);
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
tsParseDeclaration(node, value, next, decorators) {
|
|
1439
|
+
switch (value) {
|
|
1440
|
+
case "abstract":
|
|
1441
|
+
if (this.tsCheckLineTerminator(next) && (this.match(80) || (0, _types.tokenIsIdentifier)(this.state.type))) {
|
|
1442
|
+
return this.tsParseAbstractDeclaration(node, decorators);
|
|
1443
|
+
}
|
|
1444
|
+
break;
|
|
1445
|
+
case "module":
|
|
1446
|
+
if (this.tsCheckLineTerminator(next)) {
|
|
1447
|
+
if (this.match(131)) {
|
|
1448
|
+
return this.tsParseAmbientExternalModuleDeclaration(node);
|
|
1449
|
+
} else if ((0, _types.tokenIsIdentifier)(this.state.type)) {
|
|
1450
|
+
return this.tsParseModuleOrNamespaceDeclaration(node);
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
break;
|
|
1454
|
+
case "namespace":
|
|
1455
|
+
if (this.tsCheckLineTerminator(next) && (0, _types.tokenIsIdentifier)(this.state.type)) {
|
|
1456
|
+
return this.tsParseModuleOrNamespaceDeclaration(node);
|
|
1457
|
+
}
|
|
1458
|
+
break;
|
|
1459
|
+
case "type":
|
|
1460
|
+
if (this.tsCheckLineTerminator(next) && (0, _types.tokenIsIdentifier)(this.state.type)) {
|
|
1461
|
+
return this.tsParseTypeAliasDeclaration(node);
|
|
1462
|
+
}
|
|
1463
|
+
break;
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
tsCheckLineTerminator(next) {
|
|
1467
|
+
if (next) {
|
|
1468
|
+
if (this.hasFollowingLineBreak()) return false;
|
|
1469
|
+
this.next();
|
|
1470
|
+
return true;
|
|
1471
|
+
}
|
|
1472
|
+
return !this.isLineTerminator();
|
|
1473
|
+
}
|
|
1474
|
+
tsTryParseGenericAsyncArrowFunction(startLoc) {
|
|
1475
|
+
if (!this.match(47)) return;
|
|
1476
|
+
const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
|
|
1477
|
+
this.state.maybeInArrowParameters = true;
|
|
1478
|
+
const res = this.tsTryParseAndCatch(() => {
|
|
1479
|
+
const node = this.startNodeAt(startLoc);
|
|
1480
|
+
node.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier);
|
|
1481
|
+
super.parseFunctionParams(node);
|
|
1482
|
+
node.returnType = this.tsTryParseTypeOrTypePredicateAnnotation();
|
|
1483
|
+
this.expect(19);
|
|
1484
|
+
return node;
|
|
1485
|
+
});
|
|
1486
|
+
this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
|
|
1487
|
+
if (!res) return;
|
|
1488
|
+
return super.parseArrowExpression(res, null, true);
|
|
1489
|
+
}
|
|
1490
|
+
tsParseTypeArgumentsInExpression() {
|
|
1491
|
+
if (this.reScan_lt() !== 47) return;
|
|
1492
|
+
return this.tsParseTypeArguments();
|
|
1493
|
+
}
|
|
1494
|
+
tsParseTypeArguments() {
|
|
1495
|
+
const node = this.startNode();
|
|
1496
|
+
node.params = this.tsInType(() => this.tsInNoContext(() => {
|
|
1497
|
+
this.expect(47);
|
|
1498
|
+
return this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this));
|
|
1499
|
+
}));
|
|
1500
|
+
if (node.params.length === 0) {
|
|
1501
|
+
this.raise(TSErrors.EmptyTypeArguments, {
|
|
1502
|
+
at: node
|
|
1503
|
+
});
|
|
1504
|
+
} else if (!this.state.inType && this.curContext() === _context.types.brace) {
|
|
1505
|
+
this.reScan_lt_gt();
|
|
1506
|
+
}
|
|
1507
|
+
this.expect(48);
|
|
1508
|
+
return this.finishNode(node, "TSTypeParameterInstantiation");
|
|
1509
|
+
}
|
|
1510
|
+
tsIsDeclarationStart() {
|
|
1511
|
+
return (0, _types.tokenIsTSDeclarationStart)(this.state.type);
|
|
1512
|
+
}
|
|
1513
|
+
isExportDefaultSpecifier() {
|
|
1514
|
+
if (this.tsIsDeclarationStart()) return false;
|
|
1515
|
+
return super.isExportDefaultSpecifier();
|
|
1516
|
+
}
|
|
1517
|
+
parseAssignableListItem(flags, decorators) {
|
|
1518
|
+
const startLoc = this.state.startLoc;
|
|
1519
|
+
const modified = {};
|
|
1520
|
+
this.tsParseModifiers({
|
|
1521
|
+
allowedModifiers: ["public", "private", "protected", "override", "readonly"]
|
|
1522
|
+
}, modified);
|
|
1523
|
+
const accessibility = modified.accessibility;
|
|
1524
|
+
const override = modified.override;
|
|
1525
|
+
const readonly = modified.readonly;
|
|
1526
|
+
if (!(flags & _lval.ParseBindingListFlags.IS_CONSTRUCTOR_PARAMS) && (accessibility || readonly || override)) {
|
|
1527
|
+
this.raise(TSErrors.UnexpectedParameterModifier, {
|
|
1528
|
+
at: startLoc
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1531
|
+
const left = this.parseMaybeDefault();
|
|
1532
|
+
this.parseAssignableListItemTypes(left, flags);
|
|
1533
|
+
const elt = this.parseMaybeDefault(left.loc.start, left);
|
|
1534
|
+
if (accessibility || readonly || override) {
|
|
1535
|
+
const pp = this.startNodeAt(startLoc);
|
|
1536
|
+
if (decorators.length) {
|
|
1537
|
+
pp.decorators = decorators;
|
|
1538
|
+
}
|
|
1539
|
+
if (accessibility) pp.accessibility = accessibility;
|
|
1540
|
+
if (readonly) pp.readonly = readonly;
|
|
1541
|
+
if (override) pp.override = override;
|
|
1542
|
+
if (elt.type !== "Identifier" && elt.type !== "AssignmentPattern") {
|
|
1543
|
+
this.raise(TSErrors.UnsupportedParameterPropertyKind, {
|
|
1544
|
+
at: pp
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
pp.parameter = elt;
|
|
1548
|
+
return this.finishNode(pp, "TSParameterProperty");
|
|
1549
|
+
}
|
|
1550
|
+
if (decorators.length) {
|
|
1551
|
+
left.decorators = decorators;
|
|
1552
|
+
}
|
|
1553
|
+
return elt;
|
|
1554
|
+
}
|
|
1555
|
+
isSimpleParameter(node) {
|
|
1556
|
+
return node.type === "TSParameterProperty" && super.isSimpleParameter(node.parameter) || super.isSimpleParameter(node);
|
|
1557
|
+
}
|
|
1558
|
+
tsDisallowOptionalPattern(node) {
|
|
1559
|
+
for (const param of node.params) {
|
|
1560
|
+
if (param.type !== "Identifier" && param.optional && !this.state.isAmbientContext) {
|
|
1561
|
+
this.raise(TSErrors.PatternIsOptional, {
|
|
1562
|
+
at: param
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
setArrowFunctionParameters(node, params, trailingCommaLoc) {
|
|
1568
|
+
super.setArrowFunctionParameters(node, params, trailingCommaLoc);
|
|
1569
|
+
this.tsDisallowOptionalPattern(node);
|
|
1570
|
+
}
|
|
1571
|
+
parseFunctionBodyAndFinish(node, type, isMethod = false) {
|
|
1572
|
+
if (this.match(14)) {
|
|
1573
|
+
node.returnType = this.tsParseTypeOrTypePredicateAnnotation(14);
|
|
1574
|
+
}
|
|
1575
|
+
const bodilessType = type === "FunctionDeclaration" ? "TSDeclareFunction" : type === "ClassMethod" || type === "ClassPrivateMethod" ? "TSDeclareMethod" : undefined;
|
|
1576
|
+
if (bodilessType && !this.match(5) && this.isLineTerminator()) {
|
|
1577
|
+
return this.finishNode(node, bodilessType);
|
|
1578
|
+
}
|
|
1579
|
+
if (bodilessType === "TSDeclareFunction" && this.state.isAmbientContext) {
|
|
1580
|
+
this.raise(TSErrors.DeclareFunctionHasImplementation, {
|
|
1581
|
+
at: node
|
|
1582
|
+
});
|
|
1583
|
+
if (node.declare) {
|
|
1584
|
+
return super.parseFunctionBodyAndFinish(node, bodilessType, isMethod);
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
this.tsDisallowOptionalPattern(node);
|
|
1588
|
+
return super.parseFunctionBodyAndFinish(node, type, isMethod);
|
|
1589
|
+
}
|
|
1590
|
+
registerFunctionStatementId(node) {
|
|
1591
|
+
if (!node.body && node.id) {
|
|
1592
|
+
this.checkIdentifier(node.id, _scopeflags.BIND_TS_AMBIENT);
|
|
1593
|
+
} else {
|
|
1594
|
+
super.registerFunctionStatementId(node);
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
tsCheckForInvalidTypeCasts(items) {
|
|
1598
|
+
items.forEach(node => {
|
|
1599
|
+
if ((node == null ? void 0 : node.type) === "TSTypeCastExpression") {
|
|
1600
|
+
this.raise(TSErrors.UnexpectedTypeAnnotation, {
|
|
1601
|
+
at: node.typeAnnotation
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
toReferencedList(exprList, isInParens) {
|
|
1607
|
+
this.tsCheckForInvalidTypeCasts(exprList);
|
|
1608
|
+
return exprList;
|
|
1609
|
+
}
|
|
1610
|
+
parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) {
|
|
1611
|
+
const node = super.parseArrayLike(close, canBePattern, isTuple, refExpressionErrors);
|
|
1612
|
+
if (node.type === "ArrayExpression") {
|
|
1613
|
+
this.tsCheckForInvalidTypeCasts(node.elements);
|
|
1614
|
+
}
|
|
1615
|
+
return node;
|
|
1616
|
+
}
|
|
1617
|
+
parseSubscript(base, startLoc, noCalls, state) {
|
|
1618
|
+
if (!this.hasPrecedingLineBreak() && this.match(35)) {
|
|
1619
|
+
this.state.canStartJSXElement = false;
|
|
1620
|
+
this.next();
|
|
1621
|
+
const nonNullExpression = this.startNodeAt(startLoc);
|
|
1622
|
+
nonNullExpression.expression = base;
|
|
1623
|
+
return this.finishNode(nonNullExpression, "TSNonNullExpression");
|
|
1624
|
+
}
|
|
1625
|
+
let isOptionalCall = false;
|
|
1626
|
+
if (this.match(18) && this.lookaheadCharCode() === 60) {
|
|
1627
|
+
if (noCalls) {
|
|
1628
|
+
state.stop = true;
|
|
1629
|
+
return base;
|
|
1630
|
+
}
|
|
1631
|
+
state.optionalChainMember = isOptionalCall = true;
|
|
1632
|
+
this.next();
|
|
1633
|
+
}
|
|
1634
|
+
if (this.match(47) || this.match(51)) {
|
|
1635
|
+
let missingParenErrorLoc;
|
|
1636
|
+
const result = this.tsTryParseAndCatch(() => {
|
|
1637
|
+
if (!noCalls && this.atPossibleAsyncArrow(base)) {
|
|
1638
|
+
const asyncArrowFn = this.tsTryParseGenericAsyncArrowFunction(startLoc);
|
|
1639
|
+
if (asyncArrowFn) {
|
|
1640
|
+
return asyncArrowFn;
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
const typeArguments = this.tsParseTypeArgumentsInExpression();
|
|
1644
|
+
if (!typeArguments) return;
|
|
1645
|
+
if (isOptionalCall && !this.match(10)) {
|
|
1646
|
+
missingParenErrorLoc = this.state.curPosition();
|
|
1647
|
+
return;
|
|
1648
|
+
}
|
|
1649
|
+
if ((0, _types.tokenIsTemplate)(this.state.type)) {
|
|
1650
|
+
const result = super.parseTaggedTemplateExpression(base, startLoc, state);
|
|
1651
|
+
result.typeParameters = typeArguments;
|
|
1652
|
+
return result;
|
|
1653
|
+
}
|
|
1654
|
+
if (!noCalls && this.eat(10)) {
|
|
1655
|
+
const node = this.startNodeAt(startLoc);
|
|
1656
|
+
node.callee = base;
|
|
1657
|
+
node.arguments = this.parseCallExpressionArguments(11, false);
|
|
1658
|
+
this.tsCheckForInvalidTypeCasts(node.arguments);
|
|
1659
|
+
node.typeParameters = typeArguments;
|
|
1660
|
+
if (state.optionalChainMember) {
|
|
1661
|
+
node.optional = isOptionalCall;
|
|
1662
|
+
}
|
|
1663
|
+
return this.finishCallExpression(node, state.optionalChainMember);
|
|
1664
|
+
}
|
|
1665
|
+
const tokenType = this.state.type;
|
|
1666
|
+
if (tokenType === 48 || tokenType === 52 || tokenType !== 10 && (0, _types.tokenCanStartExpression)(tokenType) && !this.hasPrecedingLineBreak()) {
|
|
1667
|
+
return;
|
|
1668
|
+
}
|
|
1669
|
+
const node = this.startNodeAt(startLoc);
|
|
1670
|
+
node.expression = base;
|
|
1671
|
+
node.typeParameters = typeArguments;
|
|
1672
|
+
return this.finishNode(node, "TSInstantiationExpression");
|
|
1673
|
+
});
|
|
1674
|
+
if (missingParenErrorLoc) {
|
|
1675
|
+
this.unexpected(missingParenErrorLoc, 10);
|
|
1676
|
+
}
|
|
1677
|
+
if (result) {
|
|
1678
|
+
if (result.type === "TSInstantiationExpression" && (this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40)) {
|
|
1679
|
+
this.raise(TSErrors.InvalidPropertyAccessAfterInstantiationExpression, {
|
|
1680
|
+
at: this.state.startLoc
|
|
1681
|
+
});
|
|
1682
|
+
}
|
|
1683
|
+
return result;
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
return super.parseSubscript(base, startLoc, noCalls, state);
|
|
1687
|
+
}
|
|
1688
|
+
parseNewCallee(node) {
|
|
1689
|
+
var _callee$extra;
|
|
1690
|
+
super.parseNewCallee(node);
|
|
1691
|
+
const {
|
|
1692
|
+
callee
|
|
1693
|
+
} = node;
|
|
1694
|
+
if (callee.type === "TSInstantiationExpression" && !((_callee$extra = callee.extra) != null && _callee$extra.parenthesized)) {
|
|
1695
|
+
node.typeParameters = callee.typeParameters;
|
|
1696
|
+
node.callee = callee.expression;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
parseExprOp(left, leftStartLoc, minPrec) {
|
|
1700
|
+
let isSatisfies;
|
|
1701
|
+
if ((0, _types.tokenOperatorPrecedence)(58) > minPrec && !this.hasPrecedingLineBreak() && (this.isContextual(93) || (isSatisfies = this.isContextual(118)))) {
|
|
1702
|
+
const node = this.startNodeAt(leftStartLoc);
|
|
1703
|
+
node.expression = left;
|
|
1704
|
+
node.typeAnnotation = this.tsInType(() => {
|
|
1705
|
+
this.next();
|
|
1706
|
+
if (this.match(75)) {
|
|
1707
|
+
if (isSatisfies) {
|
|
1708
|
+
this.raise(_parseError.Errors.UnexpectedKeyword, {
|
|
1709
|
+
at: this.state.startLoc,
|
|
1710
|
+
keyword: "const"
|
|
1711
|
+
});
|
|
1712
|
+
}
|
|
1713
|
+
return this.tsParseTypeReference();
|
|
1714
|
+
}
|
|
1715
|
+
return this.tsParseType();
|
|
1716
|
+
});
|
|
1717
|
+
this.finishNode(node, isSatisfies ? "TSSatisfiesExpression" : "TSAsExpression");
|
|
1718
|
+
this.reScan_lt_gt();
|
|
1719
|
+
return this.parseExprOp(node, leftStartLoc, minPrec);
|
|
1720
|
+
}
|
|
1721
|
+
return super.parseExprOp(left, leftStartLoc, minPrec);
|
|
1722
|
+
}
|
|
1723
|
+
checkReservedWord(word, startLoc, checkKeywords, isBinding) {
|
|
1724
|
+
if (!this.state.isAmbientContext) {
|
|
1725
|
+
super.checkReservedWord(word, startLoc, checkKeywords, isBinding);
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
checkImportReflection(node) {
|
|
1729
|
+
super.checkImportReflection(node);
|
|
1730
|
+
if (node.module && node.importKind !== "value") {
|
|
1731
|
+
this.raise(TSErrors.ImportReflectionHasImportType, {
|
|
1732
|
+
at: node.specifiers[0].loc.start
|
|
1733
|
+
});
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
checkDuplicateExports() {}
|
|
1737
|
+
isPotentialImportPhase(isExport) {
|
|
1738
|
+
if (super.isPotentialImportPhase(isExport)) return true;
|
|
1739
|
+
if (this.isContextual(128)) {
|
|
1740
|
+
const ch = this.lookaheadCharCode();
|
|
1741
|
+
return isExport ? ch === 123 || ch === 42 : ch !== 61;
|
|
1742
|
+
}
|
|
1743
|
+
return !isExport && this.isContextual(87);
|
|
1744
|
+
}
|
|
1745
|
+
applyImportPhase(node, isExport, phase, loc) {
|
|
1746
|
+
super.applyImportPhase(node, isExport, phase, loc);
|
|
1747
|
+
if (isExport) {
|
|
1748
|
+
node.exportKind = phase === "type" ? "type" : "value";
|
|
1749
|
+
} else {
|
|
1750
|
+
node.importKind = phase === "type" || phase === "typeof" ? phase : "value";
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
parseImport(node) {
|
|
1754
|
+
if (this.match(131)) {
|
|
1755
|
+
node.importKind = "value";
|
|
1756
|
+
return super.parseImport(node);
|
|
1757
|
+
}
|
|
1758
|
+
let importNode;
|
|
1759
|
+
if ((0, _types.tokenIsIdentifier)(this.state.type) && this.lookaheadCharCode() === 61) {
|
|
1760
|
+
node.importKind = "value";
|
|
1761
|
+
return this.tsParseImportEqualsDeclaration(node);
|
|
1762
|
+
} else if (this.isContextual(128)) {
|
|
1763
|
+
const maybeDefaultIdentifier = this.parseMaybeImportPhase(node, false);
|
|
1764
|
+
if (this.lookaheadCharCode() === 61) {
|
|
1765
|
+
return this.tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier);
|
|
1766
|
+
} else {
|
|
1767
|
+
importNode = super.parseImportSpecifiersAndAfter(node, maybeDefaultIdentifier);
|
|
1768
|
+
}
|
|
1769
|
+
} else {
|
|
1770
|
+
importNode = super.parseImport(node);
|
|
1771
|
+
}
|
|
1772
|
+
if (importNode.importKind === "type" && importNode.specifiers.length > 1 && importNode.specifiers[0].type === "ImportDefaultSpecifier") {
|
|
1773
|
+
this.raise(TSErrors.TypeImportCannotSpecifyDefaultAndNamed, {
|
|
1774
|
+
at: importNode
|
|
1775
|
+
});
|
|
1776
|
+
}
|
|
1777
|
+
return importNode;
|
|
1778
|
+
}
|
|
1779
|
+
parseExport(node, decorators) {
|
|
1780
|
+
if (this.match(83)) {
|
|
1781
|
+
this.next();
|
|
1782
|
+
let maybeDefaultIdentifier = null;
|
|
1783
|
+
if (this.isContextual(128) && this.isPotentialImportPhase(false)) {
|
|
1784
|
+
maybeDefaultIdentifier = this.parseMaybeImportPhase(node, false);
|
|
1785
|
+
} else {
|
|
1786
|
+
node.importKind = "value";
|
|
1787
|
+
}
|
|
1788
|
+
return this.tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier, true);
|
|
1789
|
+
} else if (this.eat(29)) {
|
|
1790
|
+
const assign = node;
|
|
1791
|
+
assign.expression = super.parseExpression();
|
|
1792
|
+
this.semicolon();
|
|
1793
|
+
this.sawUnambiguousESM = true;
|
|
1794
|
+
return this.finishNode(assign, "TSExportAssignment");
|
|
1795
|
+
} else if (this.eatContextual(93)) {
|
|
1796
|
+
const decl = node;
|
|
1797
|
+
this.expectContextual(126);
|
|
1798
|
+
decl.id = this.parseIdentifier();
|
|
1799
|
+
this.semicolon();
|
|
1800
|
+
return this.finishNode(decl, "TSNamespaceExportDeclaration");
|
|
1801
|
+
} else {
|
|
1802
|
+
return super.parseExport(node, decorators);
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
isAbstractClass() {
|
|
1806
|
+
return this.isContextual(122) && this.lookahead().type === 80;
|
|
1807
|
+
}
|
|
1808
|
+
parseExportDefaultExpression() {
|
|
1809
|
+
if (this.isAbstractClass()) {
|
|
1810
|
+
const cls = this.startNode();
|
|
1811
|
+
this.next();
|
|
1812
|
+
cls.abstract = true;
|
|
1813
|
+
return this.parseClass(cls, true, true);
|
|
1814
|
+
}
|
|
1815
|
+
if (this.match(127)) {
|
|
1816
|
+
const result = this.tsParseInterfaceDeclaration(this.startNode());
|
|
1817
|
+
if (result) return result;
|
|
1818
|
+
}
|
|
1819
|
+
return super.parseExportDefaultExpression();
|
|
1820
|
+
}
|
|
1821
|
+
parseVarStatement(node, kind, allowMissingInitializer = false) {
|
|
1822
|
+
const {
|
|
1823
|
+
isAmbientContext
|
|
1824
|
+
} = this.state;
|
|
1825
|
+
const declaration = super.parseVarStatement(node, kind, allowMissingInitializer || isAmbientContext);
|
|
1826
|
+
if (!isAmbientContext) return declaration;
|
|
1827
|
+
for (const {
|
|
1828
|
+
id,
|
|
1829
|
+
init
|
|
1830
|
+
} of declaration.declarations) {
|
|
1831
|
+
if (!init) continue;
|
|
1832
|
+
if (kind !== "const" || !!id.typeAnnotation) {
|
|
1833
|
+
this.raise(TSErrors.InitializerNotAllowedInAmbientContext, {
|
|
1834
|
+
at: init
|
|
1835
|
+
});
|
|
1836
|
+
} else if (!isValidAmbientConstInitializer(init, this.hasPlugin("estree"))) {
|
|
1837
|
+
this.raise(TSErrors.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference, {
|
|
1838
|
+
at: init
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
return declaration;
|
|
1843
|
+
}
|
|
1844
|
+
parseStatementContent(flags, decorators) {
|
|
1845
|
+
if (this.match(75) && this.isLookaheadContextual("enum")) {
|
|
1846
|
+
const node = this.startNode();
|
|
1847
|
+
this.expect(75);
|
|
1848
|
+
return this.tsParseEnumDeclaration(node, {
|
|
1849
|
+
const: true
|
|
1850
|
+
});
|
|
1851
|
+
}
|
|
1852
|
+
if (this.isContextual(124)) {
|
|
1853
|
+
return this.tsParseEnumDeclaration(this.startNode());
|
|
1854
|
+
}
|
|
1855
|
+
if (this.isContextual(127)) {
|
|
1856
|
+
const result = this.tsParseInterfaceDeclaration(this.startNode());
|
|
1857
|
+
if (result) return result;
|
|
1858
|
+
}
|
|
1859
|
+
return super.parseStatementContent(flags, decorators);
|
|
1860
|
+
}
|
|
1861
|
+
parseAccessModifier() {
|
|
1862
|
+
return this.tsParseModifier(["public", "protected", "private"]);
|
|
1863
|
+
}
|
|
1864
|
+
tsHasSomeModifiers(member, modifiers) {
|
|
1865
|
+
return modifiers.some(modifier => {
|
|
1866
|
+
if (tsIsAccessModifier(modifier)) {
|
|
1867
|
+
return member.accessibility === modifier;
|
|
1868
|
+
}
|
|
1869
|
+
return !!member[modifier];
|
|
1870
|
+
});
|
|
1871
|
+
}
|
|
1872
|
+
tsIsStartOfStaticBlocks() {
|
|
1873
|
+
return this.isContextual(104) && this.lookaheadCharCode() === 123;
|
|
1874
|
+
}
|
|
1875
|
+
parseClassMember(classBody, member, state) {
|
|
1876
|
+
const modifiers = ["declare", "private", "public", "protected", "override", "abstract", "readonly", "static"];
|
|
1877
|
+
this.tsParseModifiers({
|
|
1878
|
+
allowedModifiers: modifiers,
|
|
1879
|
+
disallowedModifiers: ["in", "out"],
|
|
1880
|
+
stopOnStartOfClassStaticBlock: true,
|
|
1881
|
+
errorTemplate: TSErrors.InvalidModifierOnTypeParameterPositions
|
|
1882
|
+
}, member);
|
|
1883
|
+
const callParseClassMemberWithIsStatic = () => {
|
|
1884
|
+
if (this.tsIsStartOfStaticBlocks()) {
|
|
1885
|
+
this.next();
|
|
1886
|
+
this.next();
|
|
1887
|
+
if (this.tsHasSomeModifiers(member, modifiers)) {
|
|
1888
|
+
this.raise(TSErrors.StaticBlockCannotHaveModifier, {
|
|
1889
|
+
at: this.state.curPosition()
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
1892
|
+
super.parseClassStaticBlock(classBody, member);
|
|
1893
|
+
} else {
|
|
1894
|
+
this.parseClassMemberWithIsStatic(classBody, member, state, !!member.static);
|
|
1895
|
+
}
|
|
1896
|
+
};
|
|
1897
|
+
if (member.declare) {
|
|
1898
|
+
this.tsInAmbientContext(callParseClassMemberWithIsStatic);
|
|
1899
|
+
} else {
|
|
1900
|
+
callParseClassMemberWithIsStatic();
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
parseClassMemberWithIsStatic(classBody, member, state, isStatic) {
|
|
1904
|
+
const idx = this.tsTryParseIndexSignature(member);
|
|
1905
|
+
if (idx) {
|
|
1906
|
+
classBody.body.push(idx);
|
|
1907
|
+
if (member.abstract) {
|
|
1908
|
+
this.raise(TSErrors.IndexSignatureHasAbstract, {
|
|
1909
|
+
at: member
|
|
1910
|
+
});
|
|
1911
|
+
}
|
|
1912
|
+
if (member.accessibility) {
|
|
1913
|
+
this.raise(TSErrors.IndexSignatureHasAccessibility, {
|
|
1914
|
+
at: member,
|
|
1915
|
+
modifier: member.accessibility
|
|
1916
|
+
});
|
|
1917
|
+
}
|
|
1918
|
+
if (member.declare) {
|
|
1919
|
+
this.raise(TSErrors.IndexSignatureHasDeclare, {
|
|
1920
|
+
at: member
|
|
1921
|
+
});
|
|
1922
|
+
}
|
|
1923
|
+
if (member.override) {
|
|
1924
|
+
this.raise(TSErrors.IndexSignatureHasOverride, {
|
|
1925
|
+
at: member
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1928
|
+
return;
|
|
1929
|
+
}
|
|
1930
|
+
if (!this.state.inAbstractClass && member.abstract) {
|
|
1931
|
+
this.raise(TSErrors.NonAbstractClassHasAbstractMethod, {
|
|
1932
|
+
at: member
|
|
1933
|
+
});
|
|
1934
|
+
}
|
|
1935
|
+
if (member.override) {
|
|
1936
|
+
if (!state.hadSuperClass) {
|
|
1937
|
+
this.raise(TSErrors.OverrideNotInSubClass, {
|
|
1938
|
+
at: member
|
|
1939
|
+
});
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
super.parseClassMemberWithIsStatic(classBody, member, state, isStatic);
|
|
1943
|
+
}
|
|
1944
|
+
parsePostMemberNameModifiers(methodOrProp) {
|
|
1945
|
+
const optional = this.eat(17);
|
|
1946
|
+
if (optional) methodOrProp.optional = true;
|
|
1947
|
+
if (methodOrProp.readonly && this.match(10)) {
|
|
1948
|
+
this.raise(TSErrors.ClassMethodHasReadonly, {
|
|
1949
|
+
at: methodOrProp
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
if (methodOrProp.declare && this.match(10)) {
|
|
1953
|
+
this.raise(TSErrors.ClassMethodHasDeclare, {
|
|
1954
|
+
at: methodOrProp
|
|
1955
|
+
});
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
parseExpressionStatement(node, expr, decorators) {
|
|
1959
|
+
const decl = expr.type === "Identifier" ? this.tsParseExpressionStatement(node, expr, decorators) : undefined;
|
|
1960
|
+
return decl || super.parseExpressionStatement(node, expr, decorators);
|
|
1961
|
+
}
|
|
1962
|
+
shouldParseExportDeclaration() {
|
|
1963
|
+
if (this.tsIsDeclarationStart()) return true;
|
|
1964
|
+
return super.shouldParseExportDeclaration();
|
|
1965
|
+
}
|
|
1966
|
+
parseConditional(expr, startLoc, refExpressionErrors) {
|
|
1967
|
+
if (!this.state.maybeInArrowParameters || !this.match(17)) {
|
|
1968
|
+
return super.parseConditional(expr, startLoc, refExpressionErrors);
|
|
1969
|
+
}
|
|
1970
|
+
const result = this.tryParse(() => super.parseConditional(expr, startLoc));
|
|
1971
|
+
if (!result.node) {
|
|
1972
|
+
if (result.error) {
|
|
1973
|
+
super.setOptionalParametersError(refExpressionErrors, result.error);
|
|
1974
|
+
}
|
|
1975
|
+
return expr;
|
|
1976
|
+
}
|
|
1977
|
+
if (result.error) this.state = result.failState;
|
|
1978
|
+
return result.node;
|
|
1979
|
+
}
|
|
1980
|
+
parseParenItem(node, startLoc) {
|
|
1981
|
+
node = super.parseParenItem(node, startLoc);
|
|
1982
|
+
if (this.eat(17)) {
|
|
1983
|
+
node.optional = true;
|
|
1984
|
+
this.resetEndLocation(node);
|
|
1985
|
+
}
|
|
1986
|
+
if (this.match(14)) {
|
|
1987
|
+
const typeCastNode = this.startNodeAt(startLoc);
|
|
1988
|
+
typeCastNode.expression = node;
|
|
1989
|
+
typeCastNode.typeAnnotation = this.tsParseTypeAnnotation();
|
|
1990
|
+
return this.finishNode(typeCastNode, "TSTypeCastExpression");
|
|
1991
|
+
}
|
|
1992
|
+
return node;
|
|
1993
|
+
}
|
|
1994
|
+
parseExportDeclaration(node) {
|
|
1995
|
+
if (!this.state.isAmbientContext && this.isContextual(123)) {
|
|
1996
|
+
return this.tsInAmbientContext(() => this.parseExportDeclaration(node));
|
|
1997
|
+
}
|
|
1998
|
+
const startLoc = this.state.startLoc;
|
|
1999
|
+
const isDeclare = this.eatContextual(123);
|
|
2000
|
+
if (isDeclare && (this.isContextual(123) || !this.shouldParseExportDeclaration())) {
|
|
2001
|
+
throw this.raise(TSErrors.ExpectedAmbientAfterExportDeclare, {
|
|
2002
|
+
at: this.state.startLoc
|
|
2003
|
+
});
|
|
2004
|
+
}
|
|
2005
|
+
const isIdentifier = (0, _types.tokenIsIdentifier)(this.state.type);
|
|
2006
|
+
const declaration = isIdentifier && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(node);
|
|
2007
|
+
if (!declaration) return null;
|
|
2008
|
+
if (declaration.type === "TSInterfaceDeclaration" || declaration.type === "TSTypeAliasDeclaration" || isDeclare) {
|
|
2009
|
+
node.exportKind = "type";
|
|
2010
|
+
}
|
|
2011
|
+
if (isDeclare) {
|
|
2012
|
+
this.resetStartLocation(declaration, startLoc);
|
|
2013
|
+
declaration.declare = true;
|
|
2014
|
+
}
|
|
2015
|
+
return declaration;
|
|
2016
|
+
}
|
|
2017
|
+
parseClassId(node, isStatement, optionalId, bindingType) {
|
|
2018
|
+
if ((!isStatement || optionalId) && this.isContextual(111)) {
|
|
2019
|
+
return;
|
|
2020
|
+
}
|
|
2021
|
+
super.parseClassId(node, isStatement, optionalId, node.declare ? _scopeflags.BIND_TS_AMBIENT : _scopeflags.BIND_CLASS);
|
|
2022
|
+
const typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);
|
|
2023
|
+
if (typeParameters) node.typeParameters = typeParameters;
|
|
2024
|
+
}
|
|
2025
|
+
parseClassPropertyAnnotation(node) {
|
|
2026
|
+
if (!node.optional) {
|
|
2027
|
+
if (this.eat(35)) {
|
|
2028
|
+
node.definite = true;
|
|
2029
|
+
} else if (this.eat(17)) {
|
|
2030
|
+
node.optional = true;
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
const type = this.tsTryParseTypeAnnotation();
|
|
2034
|
+
if (type) node.typeAnnotation = type;
|
|
2035
|
+
}
|
|
2036
|
+
parseClassProperty(node) {
|
|
2037
|
+
this.parseClassPropertyAnnotation(node);
|
|
2038
|
+
if (this.state.isAmbientContext && !(node.readonly && !node.typeAnnotation) && this.match(29)) {
|
|
2039
|
+
this.raise(TSErrors.DeclareClassFieldHasInitializer, {
|
|
2040
|
+
at: this.state.startLoc
|
|
2041
|
+
});
|
|
2042
|
+
}
|
|
2043
|
+
if (node.abstract && this.match(29)) {
|
|
2044
|
+
const {
|
|
2045
|
+
key
|
|
2046
|
+
} = node;
|
|
2047
|
+
this.raise(TSErrors.AbstractPropertyHasInitializer, {
|
|
2048
|
+
at: this.state.startLoc,
|
|
2049
|
+
propertyName: key.type === "Identifier" && !node.computed ? key.name : `[${this.input.slice(key.start, key.end)}]`
|
|
2050
|
+
});
|
|
2051
|
+
}
|
|
2052
|
+
return super.parseClassProperty(node);
|
|
2053
|
+
}
|
|
2054
|
+
parseClassPrivateProperty(node) {
|
|
2055
|
+
if (node.abstract) {
|
|
2056
|
+
this.raise(TSErrors.PrivateElementHasAbstract, {
|
|
2057
|
+
at: node
|
|
2058
|
+
});
|
|
2059
|
+
}
|
|
2060
|
+
if (node.accessibility) {
|
|
2061
|
+
this.raise(TSErrors.PrivateElementHasAccessibility, {
|
|
2062
|
+
at: node,
|
|
2063
|
+
modifier: node.accessibility
|
|
2064
|
+
});
|
|
2065
|
+
}
|
|
2066
|
+
this.parseClassPropertyAnnotation(node);
|
|
2067
|
+
return super.parseClassPrivateProperty(node);
|
|
2068
|
+
}
|
|
2069
|
+
parseClassAccessorProperty(node) {
|
|
2070
|
+
this.parseClassPropertyAnnotation(node);
|
|
2071
|
+
if (node.optional) {
|
|
2072
|
+
this.raise(TSErrors.AccessorCannotBeOptional, {
|
|
2073
|
+
at: node
|
|
2074
|
+
});
|
|
2075
|
+
}
|
|
2076
|
+
return super.parseClassAccessorProperty(node);
|
|
2077
|
+
}
|
|
2078
|
+
pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) {
|
|
2079
|
+
const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier);
|
|
2080
|
+
if (typeParameters && isConstructor) {
|
|
2081
|
+
this.raise(TSErrors.ConstructorHasTypeParameters, {
|
|
2082
|
+
at: typeParameters
|
|
2083
|
+
});
|
|
2084
|
+
}
|
|
2085
|
+
const {
|
|
2086
|
+
declare = false,
|
|
2087
|
+
kind
|
|
2088
|
+
} = method;
|
|
2089
|
+
if (declare && (kind === "get" || kind === "set")) {
|
|
2090
|
+
this.raise(TSErrors.DeclareAccessor, {
|
|
2091
|
+
at: method,
|
|
2092
|
+
kind
|
|
2093
|
+
});
|
|
2094
|
+
}
|
|
2095
|
+
if (typeParameters) method.typeParameters = typeParameters;
|
|
2096
|
+
super.pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper);
|
|
2097
|
+
}
|
|
2098
|
+
pushClassPrivateMethod(classBody, method, isGenerator, isAsync) {
|
|
2099
|
+
const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier);
|
|
2100
|
+
if (typeParameters) method.typeParameters = typeParameters;
|
|
2101
|
+
super.pushClassPrivateMethod(classBody, method, isGenerator, isAsync);
|
|
2102
|
+
}
|
|
2103
|
+
declareClassPrivateMethodInScope(node, kind) {
|
|
2104
|
+
if (node.type === "TSDeclareMethod") return;
|
|
2105
|
+
if (node.type === "MethodDefinition" && !node.value.body) return;
|
|
2106
|
+
super.declareClassPrivateMethodInScope(node, kind);
|
|
2107
|
+
}
|
|
2108
|
+
parseClassSuper(node) {
|
|
2109
|
+
super.parseClassSuper(node);
|
|
2110
|
+
if (node.superClass && (this.match(47) || this.match(51))) {
|
|
2111
|
+
node.superTypeParameters = this.tsParseTypeArgumentsInExpression();
|
|
2112
|
+
}
|
|
2113
|
+
if (this.eatContextual(111)) {
|
|
2114
|
+
node.implements = this.tsParseHeritageClause("implements");
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors) {
|
|
2118
|
+
const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier);
|
|
2119
|
+
if (typeParameters) prop.typeParameters = typeParameters;
|
|
2120
|
+
return super.parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors);
|
|
2121
|
+
}
|
|
2122
|
+
parseFunctionParams(node, isConstructor) {
|
|
2123
|
+
const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier);
|
|
2124
|
+
if (typeParameters) node.typeParameters = typeParameters;
|
|
2125
|
+
super.parseFunctionParams(node, isConstructor);
|
|
2126
|
+
}
|
|
2127
|
+
parseVarId(decl, kind) {
|
|
2128
|
+
super.parseVarId(decl, kind);
|
|
2129
|
+
if (decl.id.type === "Identifier" && !this.hasPrecedingLineBreak() && this.eat(35)) {
|
|
2130
|
+
decl.definite = true;
|
|
2131
|
+
}
|
|
2132
|
+
const type = this.tsTryParseTypeAnnotation();
|
|
2133
|
+
if (type) {
|
|
2134
|
+
decl.id.typeAnnotation = type;
|
|
2135
|
+
this.resetEndLocation(decl.id);
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
parseAsyncArrowFromCallExpression(node, call) {
|
|
2139
|
+
if (this.match(14)) {
|
|
2140
|
+
node.returnType = this.tsParseTypeAnnotation();
|
|
2141
|
+
}
|
|
2142
|
+
return super.parseAsyncArrowFromCallExpression(node, call);
|
|
2143
|
+
}
|
|
2144
|
+
parseMaybeAssign(refExpressionErrors, afterLeftParse) {
|
|
2145
|
+
var _jsx, _jsx2, _typeCast, _jsx3, _typeCast2;
|
|
2146
|
+
let state;
|
|
2147
|
+
let jsx;
|
|
2148
|
+
let typeCast;
|
|
2149
|
+
if (this.hasPlugin("jsx") && (this.match(140) || this.match(47))) {
|
|
2150
|
+
state = this.state.clone();
|
|
2151
|
+
jsx = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state);
|
|
2152
|
+
if (!jsx.error) return jsx.node;
|
|
2153
|
+
const {
|
|
2154
|
+
context
|
|
2155
|
+
} = this.state;
|
|
2156
|
+
const currentContext = context[context.length - 1];
|
|
2157
|
+
if (currentContext === _context.types.j_oTag || currentContext === _context.types.j_expr) {
|
|
2158
|
+
context.pop();
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
if (!((_jsx = jsx) != null && _jsx.error) && !this.match(47)) {
|
|
2162
|
+
return super.parseMaybeAssign(refExpressionErrors, afterLeftParse);
|
|
2163
|
+
}
|
|
2164
|
+
if (!state || state === this.state) state = this.state.clone();
|
|
2165
|
+
let typeParameters;
|
|
2166
|
+
const arrow = this.tryParse(abort => {
|
|
2167
|
+
var _expr$extra, _typeParameters;
|
|
2168
|
+
typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier);
|
|
2169
|
+
const expr = super.parseMaybeAssign(refExpressionErrors, afterLeftParse);
|
|
2170
|
+
if (expr.type !== "ArrowFunctionExpression" || (_expr$extra = expr.extra) != null && _expr$extra.parenthesized) {
|
|
2171
|
+
abort();
|
|
2172
|
+
}
|
|
2173
|
+
if (((_typeParameters = typeParameters) == null ? void 0 : _typeParameters.params.length) !== 0) {
|
|
2174
|
+
this.resetStartLocationFromNode(expr, typeParameters);
|
|
2175
|
+
}
|
|
2176
|
+
expr.typeParameters = typeParameters;
|
|
2177
|
+
;
|
|
2178
|
+
return expr;
|
|
2179
|
+
}, state);
|
|
2180
|
+
if (!arrow.error && !arrow.aborted) {
|
|
2181
|
+
if (typeParameters) this.reportReservedArrowTypeParam(typeParameters);
|
|
2182
|
+
return arrow.node;
|
|
2183
|
+
}
|
|
2184
|
+
if (!jsx) {
|
|
2185
|
+
assert(!this.hasPlugin("jsx"));
|
|
2186
|
+
typeCast = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state);
|
|
2187
|
+
if (!typeCast.error) return typeCast.node;
|
|
2188
|
+
}
|
|
2189
|
+
if ((_jsx2 = jsx) != null && _jsx2.node) {
|
|
2190
|
+
this.state = jsx.failState;
|
|
2191
|
+
return jsx.node;
|
|
2192
|
+
}
|
|
2193
|
+
if (arrow.node) {
|
|
2194
|
+
this.state = arrow.failState;
|
|
2195
|
+
if (typeParameters) this.reportReservedArrowTypeParam(typeParameters);
|
|
2196
|
+
return arrow.node;
|
|
2197
|
+
}
|
|
2198
|
+
if ((_typeCast = typeCast) != null && _typeCast.node) {
|
|
2199
|
+
this.state = typeCast.failState;
|
|
2200
|
+
return typeCast.node;
|
|
2201
|
+
}
|
|
2202
|
+
throw ((_jsx3 = jsx) == null ? void 0 : _jsx3.error) || arrow.error || ((_typeCast2 = typeCast) == null ? void 0 : _typeCast2.error);
|
|
2203
|
+
}
|
|
2204
|
+
reportReservedArrowTypeParam(node) {
|
|
2205
|
+
var _node$extra;
|
|
2206
|
+
if (node.params.length === 1 && !node.params[0].constraint && !((_node$extra = node.extra) != null && _node$extra.trailingComma) && this.getPluginOption("typescript", "disallowAmbiguousJSXLike")) {
|
|
2207
|
+
this.raise(TSErrors.ReservedArrowTypeParam, {
|
|
2208
|
+
at: node
|
|
2209
|
+
});
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
parseMaybeUnary(refExpressionErrors, sawUnary) {
|
|
2213
|
+
if (!this.hasPlugin("jsx") && this.match(47)) {
|
|
2214
|
+
return this.tsParseTypeAssertion();
|
|
2215
|
+
}
|
|
2216
|
+
return super.parseMaybeUnary(refExpressionErrors, sawUnary);
|
|
2217
|
+
}
|
|
2218
|
+
parseArrow(node) {
|
|
2219
|
+
if (this.match(14)) {
|
|
2220
|
+
const result = this.tryParse(abort => {
|
|
2221
|
+
const returnType = this.tsParseTypeOrTypePredicateAnnotation(14);
|
|
2222
|
+
if (this.canInsertSemicolon() || !this.match(19)) abort();
|
|
2223
|
+
return returnType;
|
|
2224
|
+
});
|
|
2225
|
+
if (result.aborted) return;
|
|
2226
|
+
if (!result.thrown) {
|
|
2227
|
+
if (result.error) this.state = result.failState;
|
|
2228
|
+
node.returnType = result.node;
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
return super.parseArrow(node);
|
|
2232
|
+
}
|
|
2233
|
+
parseAssignableListItemTypes(param, flags) {
|
|
2234
|
+
if (!(flags & _lval.ParseBindingListFlags.IS_FUNCTION_PARAMS)) return param;
|
|
2235
|
+
if (this.eat(17)) {
|
|
2236
|
+
param.optional = true;
|
|
2237
|
+
}
|
|
2238
|
+
const type = this.tsTryParseTypeAnnotation();
|
|
2239
|
+
if (type) param.typeAnnotation = type;
|
|
2240
|
+
this.resetEndLocation(param);
|
|
2241
|
+
return param;
|
|
2242
|
+
}
|
|
2243
|
+
isAssignable(node, isBinding) {
|
|
2244
|
+
switch (node.type) {
|
|
2245
|
+
case "TSTypeCastExpression":
|
|
2246
|
+
return this.isAssignable(node.expression, isBinding);
|
|
2247
|
+
case "TSParameterProperty":
|
|
2248
|
+
return true;
|
|
2249
|
+
default:
|
|
2250
|
+
return super.isAssignable(node, isBinding);
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
toAssignable(node, isLHS = false) {
|
|
2254
|
+
switch (node.type) {
|
|
2255
|
+
case "ParenthesizedExpression":
|
|
2256
|
+
this.toAssignableParenthesizedExpression(node, isLHS);
|
|
2257
|
+
break;
|
|
2258
|
+
case "TSAsExpression":
|
|
2259
|
+
case "TSSatisfiesExpression":
|
|
2260
|
+
case "TSNonNullExpression":
|
|
2261
|
+
case "TSTypeAssertion":
|
|
2262
|
+
if (isLHS) {
|
|
2263
|
+
this.expressionScope.recordArrowParameterBindingError(TSErrors.UnexpectedTypeCastInParameter, {
|
|
2264
|
+
at: node
|
|
2265
|
+
});
|
|
2266
|
+
} else {
|
|
2267
|
+
this.raise(TSErrors.UnexpectedTypeCastInParameter, {
|
|
2268
|
+
at: node
|
|
2269
|
+
});
|
|
2270
|
+
}
|
|
2271
|
+
this.toAssignable(node.expression, isLHS);
|
|
2272
|
+
break;
|
|
2273
|
+
case "AssignmentExpression":
|
|
2274
|
+
if (!isLHS && node.left.type === "TSTypeCastExpression") {
|
|
2275
|
+
node.left = this.typeCastToParameter(node.left);
|
|
2276
|
+
}
|
|
2277
|
+
default:
|
|
2278
|
+
super.toAssignable(node, isLHS);
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
toAssignableParenthesizedExpression(node, isLHS) {
|
|
2282
|
+
switch (node.expression.type) {
|
|
2283
|
+
case "TSAsExpression":
|
|
2284
|
+
case "TSSatisfiesExpression":
|
|
2285
|
+
case "TSNonNullExpression":
|
|
2286
|
+
case "TSTypeAssertion":
|
|
2287
|
+
case "ParenthesizedExpression":
|
|
2288
|
+
this.toAssignable(node.expression, isLHS);
|
|
2289
|
+
break;
|
|
2290
|
+
default:
|
|
2291
|
+
super.toAssignable(node, isLHS);
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
checkToRestConversion(node, allowPattern) {
|
|
2295
|
+
switch (node.type) {
|
|
2296
|
+
case "TSAsExpression":
|
|
2297
|
+
case "TSSatisfiesExpression":
|
|
2298
|
+
case "TSTypeAssertion":
|
|
2299
|
+
case "TSNonNullExpression":
|
|
2300
|
+
this.checkToRestConversion(node.expression, false);
|
|
2301
|
+
break;
|
|
2302
|
+
default:
|
|
2303
|
+
super.checkToRestConversion(node, allowPattern);
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
isValidLVal(type, isUnparenthesizedInAssign, binding) {
|
|
2307
|
+
return getOwn({
|
|
2308
|
+
TSTypeCastExpression: true,
|
|
2309
|
+
TSParameterProperty: "parameter",
|
|
2310
|
+
TSNonNullExpression: "expression",
|
|
2311
|
+
TSAsExpression: (binding !== _scopeflags.BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true],
|
|
2312
|
+
TSSatisfiesExpression: (binding !== _scopeflags.BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true],
|
|
2313
|
+
TSTypeAssertion: (binding !== _scopeflags.BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true]
|
|
2314
|
+
}, type) || super.isValidLVal(type, isUnparenthesizedInAssign, binding);
|
|
2315
|
+
}
|
|
2316
|
+
parseBindingAtom() {
|
|
2317
|
+
if (this.state.type === 78) {
|
|
2318
|
+
return this.parseIdentifier(true);
|
|
2319
|
+
}
|
|
2320
|
+
return super.parseBindingAtom();
|
|
2321
|
+
}
|
|
2322
|
+
parseMaybeDecoratorArguments(expr) {
|
|
2323
|
+
if (this.match(47) || this.match(51)) {
|
|
2324
|
+
const typeArguments = this.tsParseTypeArgumentsInExpression();
|
|
2325
|
+
if (this.match(10)) {
|
|
2326
|
+
const call = super.parseMaybeDecoratorArguments(expr);
|
|
2327
|
+
call.typeParameters = typeArguments;
|
|
2328
|
+
return call;
|
|
2329
|
+
}
|
|
2330
|
+
this.unexpected(null, 10);
|
|
2331
|
+
}
|
|
2332
|
+
return super.parseMaybeDecoratorArguments(expr);
|
|
2333
|
+
}
|
|
2334
|
+
checkCommaAfterRest(close) {
|
|
2335
|
+
if (this.state.isAmbientContext && this.match(12) && this.lookaheadCharCode() === close) {
|
|
2336
|
+
this.next();
|
|
2337
|
+
return false;
|
|
2338
|
+
}
|
|
2339
|
+
return super.checkCommaAfterRest(close);
|
|
2340
|
+
}
|
|
2341
|
+
isClassMethod() {
|
|
2342
|
+
return this.match(47) || super.isClassMethod();
|
|
2343
|
+
}
|
|
2344
|
+
isClassProperty() {
|
|
2345
|
+
return this.match(35) || this.match(14) || super.isClassProperty();
|
|
2346
|
+
}
|
|
2347
|
+
parseMaybeDefault(startLoc, left) {
|
|
2348
|
+
const node = super.parseMaybeDefault(startLoc, left);
|
|
2349
|
+
if (node.type === "AssignmentPattern" && node.typeAnnotation && node.right.start < node.typeAnnotation.start) {
|
|
2350
|
+
this.raise(TSErrors.TypeAnnotationAfterAssign, {
|
|
2351
|
+
at: node.typeAnnotation
|
|
2352
|
+
});
|
|
2353
|
+
}
|
|
2354
|
+
return node;
|
|
2355
|
+
}
|
|
2356
|
+
getTokenFromCode(code) {
|
|
2357
|
+
if (this.state.inType) {
|
|
2358
|
+
if (code === 62) {
|
|
2359
|
+
this.finishOp(48, 1);
|
|
2360
|
+
return;
|
|
2361
|
+
}
|
|
2362
|
+
if (code === 60) {
|
|
2363
|
+
this.finishOp(47, 1);
|
|
2364
|
+
return;
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
super.getTokenFromCode(code);
|
|
2368
|
+
}
|
|
2369
|
+
reScan_lt_gt() {
|
|
2370
|
+
const {
|
|
2371
|
+
type
|
|
2372
|
+
} = this.state;
|
|
2373
|
+
if (type === 47) {
|
|
2374
|
+
this.state.pos -= 1;
|
|
2375
|
+
this.readToken_lt();
|
|
2376
|
+
} else if (type === 48) {
|
|
2377
|
+
this.state.pos -= 1;
|
|
2378
|
+
this.readToken_gt();
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
reScan_lt() {
|
|
2382
|
+
const {
|
|
2383
|
+
type
|
|
2384
|
+
} = this.state;
|
|
2385
|
+
if (type === 51) {
|
|
2386
|
+
this.state.pos -= 2;
|
|
2387
|
+
this.finishOp(47, 1);
|
|
2388
|
+
return 47;
|
|
2389
|
+
}
|
|
2390
|
+
return type;
|
|
2391
|
+
}
|
|
2392
|
+
toAssignableList(exprList, trailingCommaLoc, isLHS) {
|
|
2393
|
+
for (let i = 0; i < exprList.length; i++) {
|
|
2394
|
+
const expr = exprList[i];
|
|
2395
|
+
if ((expr == null ? void 0 : expr.type) === "TSTypeCastExpression") {
|
|
2396
|
+
exprList[i] = this.typeCastToParameter(expr);
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
super.toAssignableList(exprList, trailingCommaLoc, isLHS);
|
|
2400
|
+
}
|
|
2401
|
+
typeCastToParameter(node) {
|
|
2402
|
+
node.expression.typeAnnotation = node.typeAnnotation;
|
|
2403
|
+
this.resetEndLocation(node.expression, node.typeAnnotation.loc.end);
|
|
2404
|
+
return node.expression;
|
|
2405
|
+
}
|
|
2406
|
+
shouldParseArrow(params) {
|
|
2407
|
+
if (this.match(14)) {
|
|
2408
|
+
return params.every(expr => this.isAssignable(expr, true));
|
|
2409
|
+
}
|
|
2410
|
+
return super.shouldParseArrow(params);
|
|
2411
|
+
}
|
|
2412
|
+
shouldParseAsyncArrow() {
|
|
2413
|
+
return this.match(14) || super.shouldParseAsyncArrow();
|
|
2414
|
+
}
|
|
2415
|
+
canHaveLeadingDecorator() {
|
|
2416
|
+
return super.canHaveLeadingDecorator() || this.isAbstractClass();
|
|
2417
|
+
}
|
|
2418
|
+
jsxParseOpeningElementAfterName(node) {
|
|
2419
|
+
if (this.match(47) || this.match(51)) {
|
|
2420
|
+
const typeArguments = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression());
|
|
2421
|
+
if (typeArguments) node.typeParameters = typeArguments;
|
|
2422
|
+
}
|
|
2423
|
+
return super.jsxParseOpeningElementAfterName(node);
|
|
2424
|
+
}
|
|
2425
|
+
getGetterSetterExpectedParamCount(method) {
|
|
2426
|
+
const baseCount = super.getGetterSetterExpectedParamCount(method);
|
|
2427
|
+
const params = this.getObjectOrClassMethodParams(method);
|
|
2428
|
+
const firstParam = params[0];
|
|
2429
|
+
const hasContextParam = firstParam && this.isThisParam(firstParam);
|
|
2430
|
+
return hasContextParam ? baseCount + 1 : baseCount;
|
|
2431
|
+
}
|
|
2432
|
+
parseCatchClauseParam() {
|
|
2433
|
+
const param = super.parseCatchClauseParam();
|
|
2434
|
+
const type = this.tsTryParseTypeAnnotation();
|
|
2435
|
+
if (type) {
|
|
2436
|
+
param.typeAnnotation = type;
|
|
2437
|
+
this.resetEndLocation(param);
|
|
2438
|
+
}
|
|
2439
|
+
return param;
|
|
2440
|
+
}
|
|
2441
|
+
tsInAmbientContext(cb) {
|
|
2442
|
+
const oldIsAmbientContext = this.state.isAmbientContext;
|
|
2443
|
+
this.state.isAmbientContext = true;
|
|
2444
|
+
try {
|
|
2445
|
+
return cb();
|
|
2446
|
+
} finally {
|
|
2447
|
+
this.state.isAmbientContext = oldIsAmbientContext;
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
parseClass(node, isStatement, optionalId) {
|
|
2451
|
+
const oldInAbstractClass = this.state.inAbstractClass;
|
|
2452
|
+
this.state.inAbstractClass = !!node.abstract;
|
|
2453
|
+
try {
|
|
2454
|
+
return super.parseClass(node, isStatement, optionalId);
|
|
2455
|
+
} finally {
|
|
2456
|
+
this.state.inAbstractClass = oldInAbstractClass;
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
tsParseAbstractDeclaration(node, decorators) {
|
|
2460
|
+
if (this.match(80)) {
|
|
2461
|
+
node.abstract = true;
|
|
2462
|
+
return this.maybeTakeDecorators(decorators, this.parseClass(node, true, false));
|
|
2463
|
+
} else if (this.isContextual(127)) {
|
|
2464
|
+
if (!this.hasFollowingLineBreak()) {
|
|
2465
|
+
node.abstract = true;
|
|
2466
|
+
this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifer, {
|
|
2467
|
+
at: node
|
|
2468
|
+
});
|
|
2469
|
+
return this.tsParseInterfaceDeclaration(node);
|
|
2470
|
+
}
|
|
2471
|
+
} else {
|
|
2472
|
+
this.unexpected(null, 80);
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope) {
|
|
2476
|
+
const method = super.parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope);
|
|
2477
|
+
if (method.abstract) {
|
|
2478
|
+
const hasBody = this.hasPlugin("estree") ? !!method.value.body : !!method.body;
|
|
2479
|
+
if (hasBody) {
|
|
2480
|
+
const {
|
|
2481
|
+
key
|
|
2482
|
+
} = method;
|
|
2483
|
+
this.raise(TSErrors.AbstractMethodHasImplementation, {
|
|
2484
|
+
at: method,
|
|
2485
|
+
methodName: key.type === "Identifier" && !method.computed ? key.name : `[${this.input.slice(key.start, key.end)}]`
|
|
2486
|
+
});
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
return method;
|
|
2490
|
+
}
|
|
2491
|
+
tsParseTypeParameterName() {
|
|
2492
|
+
const typeName = this.parseIdentifier();
|
|
2493
|
+
return typeName.name;
|
|
2494
|
+
}
|
|
2495
|
+
shouldParseAsAmbientContext() {
|
|
2496
|
+
return !!this.getPluginOption("typescript", "dts");
|
|
2497
|
+
}
|
|
2498
|
+
parse() {
|
|
2499
|
+
if (this.shouldParseAsAmbientContext()) {
|
|
2500
|
+
this.state.isAmbientContext = true;
|
|
2501
|
+
}
|
|
2502
|
+
return super.parse();
|
|
2503
|
+
}
|
|
2504
|
+
getExpression() {
|
|
2505
|
+
if (this.shouldParseAsAmbientContext()) {
|
|
2506
|
+
this.state.isAmbientContext = true;
|
|
2507
|
+
}
|
|
2508
|
+
return super.getExpression();
|
|
2509
|
+
}
|
|
2510
|
+
parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly) {
|
|
2511
|
+
if (!isString && isMaybeTypeOnly) {
|
|
2512
|
+
this.parseTypeOnlyImportExportSpecifier(node, false, isInTypeExport);
|
|
2513
|
+
return this.finishNode(node, "ExportSpecifier");
|
|
2514
|
+
}
|
|
2515
|
+
node.exportKind = "value";
|
|
2516
|
+
return super.parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly);
|
|
2517
|
+
}
|
|
2518
|
+
parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, bindingType) {
|
|
2519
|
+
if (!importedIsString && isMaybeTypeOnly) {
|
|
2520
|
+
this.parseTypeOnlyImportExportSpecifier(specifier, true, isInTypeOnlyImport);
|
|
2521
|
+
return this.finishNode(specifier, "ImportSpecifier");
|
|
2522
|
+
}
|
|
2523
|
+
specifier.importKind = "value";
|
|
2524
|
+
return super.parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, isInTypeOnlyImport ? _scopeflags.BIND_TS_TYPE_IMPORT : _scopeflags.BIND_FLAGS_TS_IMPORT);
|
|
2525
|
+
}
|
|
2526
|
+
parseTypeOnlyImportExportSpecifier(node, isImport, isInTypeOnlyImportExport) {
|
|
2527
|
+
const leftOfAsKey = isImport ? "imported" : "local";
|
|
2528
|
+
const rightOfAsKey = isImport ? "local" : "exported";
|
|
2529
|
+
let leftOfAs = node[leftOfAsKey];
|
|
2530
|
+
let rightOfAs;
|
|
2531
|
+
let hasTypeSpecifier = false;
|
|
2532
|
+
let canParseAsKeyword = true;
|
|
2533
|
+
const loc = leftOfAs.loc.start;
|
|
2534
|
+
if (this.isContextual(93)) {
|
|
2535
|
+
const firstAs = this.parseIdentifier();
|
|
2536
|
+
if (this.isContextual(93)) {
|
|
2537
|
+
const secondAs = this.parseIdentifier();
|
|
2538
|
+
if ((0, _types.tokenIsKeywordOrIdentifier)(this.state.type)) {
|
|
2539
|
+
hasTypeSpecifier = true;
|
|
2540
|
+
leftOfAs = firstAs;
|
|
2541
|
+
rightOfAs = isImport ? this.parseIdentifier() : this.parseModuleExportName();
|
|
2542
|
+
canParseAsKeyword = false;
|
|
2543
|
+
} else {
|
|
2544
|
+
rightOfAs = secondAs;
|
|
2545
|
+
canParseAsKeyword = false;
|
|
2546
|
+
}
|
|
2547
|
+
} else if ((0, _types.tokenIsKeywordOrIdentifier)(this.state.type)) {
|
|
2548
|
+
canParseAsKeyword = false;
|
|
2549
|
+
rightOfAs = isImport ? this.parseIdentifier() : this.parseModuleExportName();
|
|
2550
|
+
} else {
|
|
2551
|
+
hasTypeSpecifier = true;
|
|
2552
|
+
leftOfAs = firstAs;
|
|
2553
|
+
}
|
|
2554
|
+
} else if ((0, _types.tokenIsKeywordOrIdentifier)(this.state.type)) {
|
|
2555
|
+
hasTypeSpecifier = true;
|
|
2556
|
+
if (isImport) {
|
|
2557
|
+
leftOfAs = this.parseIdentifier(true);
|
|
2558
|
+
if (!this.isContextual(93)) {
|
|
2559
|
+
this.checkReservedWord(leftOfAs.name, leftOfAs.loc.start, true, true);
|
|
2560
|
+
}
|
|
2561
|
+
} else {
|
|
2562
|
+
leftOfAs = this.parseModuleExportName();
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
if (hasTypeSpecifier && isInTypeOnlyImportExport) {
|
|
2566
|
+
this.raise(isImport ? TSErrors.TypeModifierIsUsedInTypeImports : TSErrors.TypeModifierIsUsedInTypeExports, {
|
|
2567
|
+
at: loc
|
|
2568
|
+
});
|
|
2569
|
+
}
|
|
2570
|
+
node[leftOfAsKey] = leftOfAs;
|
|
2571
|
+
node[rightOfAsKey] = rightOfAs;
|
|
2572
|
+
const kindKey = isImport ? "importKind" : "exportKind";
|
|
2573
|
+
node[kindKey] = hasTypeSpecifier ? "type" : "value";
|
|
2574
|
+
if (canParseAsKeyword && this.eatContextual(93)) {
|
|
2575
|
+
node[rightOfAsKey] = isImport ? this.parseIdentifier() : this.parseModuleExportName();
|
|
2576
|
+
}
|
|
2577
|
+
if (!node[rightOfAsKey]) {
|
|
2578
|
+
node[rightOfAsKey] = (0, _node.cloneIdentifier)(node[leftOfAsKey]);
|
|
2579
|
+
}
|
|
2580
|
+
if (isImport) {
|
|
2581
|
+
this.checkIdentifier(node[rightOfAsKey], hasTypeSpecifier ? _scopeflags.BIND_TS_TYPE_IMPORT : _scopeflags.BIND_FLAGS_TS_IMPORT);
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
};
|
|
2585
|
+
exports.default = _default;
|
|
2586
|
+
function isPossiblyLiteralEnum(expression) {
|
|
2587
|
+
if (expression.type !== "MemberExpression") return false;
|
|
2588
|
+
const {
|
|
2589
|
+
computed,
|
|
2590
|
+
property
|
|
2591
|
+
} = expression;
|
|
2592
|
+
if (computed && property.type !== "StringLiteral" && (property.type !== "TemplateLiteral" || property.expressions.length > 0)) {
|
|
2593
|
+
return false;
|
|
2594
|
+
}
|
|
2595
|
+
return isUncomputedMemberExpressionChain(expression.object);
|
|
2596
|
+
}
|
|
2597
|
+
function isValidAmbientConstInitializer(expression, estree) {
|
|
2598
|
+
var _expression$extra;
|
|
2599
|
+
const {
|
|
2600
|
+
type
|
|
2601
|
+
} = expression;
|
|
2602
|
+
if ((_expression$extra = expression.extra) != null && _expression$extra.parenthesized) {
|
|
2603
|
+
return false;
|
|
2604
|
+
}
|
|
2605
|
+
if (estree) {
|
|
2606
|
+
if (type === "Literal") {
|
|
2607
|
+
const {
|
|
2608
|
+
value
|
|
2609
|
+
} = expression;
|
|
2610
|
+
if (typeof value === "string" || typeof value === "boolean") {
|
|
2611
|
+
return true;
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
} else {
|
|
2615
|
+
if (type === "StringLiteral" || type === "BooleanLiteral") {
|
|
2616
|
+
return true;
|
|
2617
|
+
}
|
|
2618
|
+
}
|
|
2619
|
+
if (isNumber(expression, estree) || isNegativeNumber(expression, estree)) {
|
|
2620
|
+
return true;
|
|
2621
|
+
}
|
|
2622
|
+
if (type === "TemplateLiteral" && expression.expressions.length === 0) {
|
|
2623
|
+
return true;
|
|
2624
|
+
}
|
|
2625
|
+
if (isPossiblyLiteralEnum(expression)) {
|
|
2626
|
+
return true;
|
|
2627
|
+
}
|
|
2628
|
+
return false;
|
|
2629
|
+
}
|
|
2630
|
+
function isNumber(expression, estree) {
|
|
2631
|
+
if (estree) {
|
|
2632
|
+
return expression.type === "Literal" && (typeof expression.value === "number" || "bigint" in expression);
|
|
2633
|
+
}
|
|
2634
|
+
return expression.type === "NumericLiteral" || expression.type === "BigIntLiteral";
|
|
2635
|
+
}
|
|
2636
|
+
function isNegativeNumber(expression, estree) {
|
|
2637
|
+
if (expression.type === "UnaryExpression") {
|
|
2638
|
+
const {
|
|
2639
|
+
operator,
|
|
2640
|
+
argument
|
|
2641
|
+
} = expression;
|
|
2642
|
+
if (operator === "-" && isNumber(argument, estree)) {
|
|
2643
|
+
return true;
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
return false;
|
|
2647
|
+
}
|
|
2648
|
+
function isUncomputedMemberExpressionChain(expression) {
|
|
2649
|
+
if (expression.type === "Identifier") return true;
|
|
2650
|
+
if (expression.type !== "MemberExpression" || expression.computed) {
|
|
2651
|
+
return false;
|
|
2652
|
+
}
|
|
2653
|
+
return isUncomputedMemberExpressionChain(expression.object);
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
//# sourceMappingURL=index.js.map
|