@markjaquith/agency 3.6.1 → 3.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 +19 -1
- 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 +217 -0
- package/node_modules/@babel/code-frame/lib/index.js.map +1 -0
- package/node_modules/@babel/code-frame/package.json +32 -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 +2120 -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 +38 -0
- package/node_modules/@babel/compat-data/data/plugin-bugfixes.json +231 -0
- package/node_modules/@babel/compat-data/data/plugins.json +843 -0
- package/node_modules/@babel/compat-data/native-modules.js +2 -0
- package/node_modules/@babel/compat-data/overlapping-plugins.js +2 -0
- package/node_modules/@babel/compat-data/package.json +40 -0
- package/node_modules/@babel/compat-data/plugin-bugfixes.js +2 -0
- package/node_modules/@babel/compat-data/plugins.js +2 -0
- package/node_modules/@babel/core/LICENSE +22 -0
- package/node_modules/@babel/core/README.md +19 -0
- package/node_modules/@babel/core/lib/config/cache-contexts.js +5 -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 +469 -0
- package/node_modules/@babel/core/lib/config/config-chain.js.map +1 -0
- package/node_modules/@babel/core/lib/config/config-descriptors.js +190 -0
- package/node_modules/@babel/core/lib/config/config-descriptors.js.map +1 -0
- package/node_modules/@babel/core/lib/config/files/configuration.js +290 -0
- package/node_modules/@babel/core/lib/config/files/configuration.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 +58 -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 +203 -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 +220 -0
- package/node_modules/@babel/core/lib/config/files/plugins.js.map +1 -0
- package/node_modules/@babel/core/lib/config/files/types.js +5 -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 +312 -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 +87 -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 +158 -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 +113 -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 +187 -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 +68 -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 +90 -0
- package/node_modules/@babel/core/lib/gensync-utils/async.js.map +1 -0
- package/node_modules/@babel/core/lib/gensync-utils/fs.js +31 -0
- package/node_modules/@babel/core/lib/gensync-utils/fs.js.map +1 -0
- package/node_modules/@babel/core/lib/gensync-utils/functional.js +58 -0
- package/node_modules/@babel/core/lib/gensync-utils/functional.js.map +1 -0
- package/node_modules/@babel/core/lib/index.js +230 -0
- package/node_modules/@babel/core/lib/index.js.map +1 -0
- package/node_modules/@babel/core/lib/parse.js +45 -0
- package/node_modules/@babel/core/lib/parse.js.map +1 -0
- package/node_modules/@babel/core/lib/parser/index.js +85 -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 +337 -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 +144 -0
- package/node_modules/@babel/core/lib/tools/build-external-helpers.js.map +1 -0
- package/node_modules/@babel/core/lib/transform-ast.js +48 -0
- package/node_modules/@babel/core/lib/transform-ast.js.map +1 -0
- package/node_modules/@babel/core/lib/transform-file-browser.js +23 -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 +47 -0
- package/node_modules/@babel/core/lib/transform.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js +84 -0
- package/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +4 -0
- package/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map +1 -0
- package/node_modules/@babel/core/lib/transformation/file/file.js +204 -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 +90 -0
- package/node_modules/@babel/core/lib/transformation/index.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/normalize-file.js +113 -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/read-input-source-map-file-browser.js +12 -0
- package/node_modules/@babel/core/lib/transformation/read-input-source-map-file-browser.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/read-input-source-map-file.js +88 -0
- package/node_modules/@babel/core/lib/transformation/read-input-source-map-file.js.map +1 -0
- package/node_modules/@babel/core/lib/transformation/util/clone-deep.js +54 -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 +1042 -0
- package/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map +1 -0
- package/node_modules/@babel/core/package.json +84 -0
- package/node_modules/@babel/core/src/config/files/index-browser.ts +115 -0
- package/node_modules/@babel/core/src/config/files/index.ts +30 -0
- package/node_modules/@babel/core/src/config/resolve-targets-browser.ts +42 -0
- package/node_modules/@babel/core/src/config/resolve-targets.ts +54 -0
- package/node_modules/@babel/core/src/transform-file-browser.ts +33 -0
- package/node_modules/@babel/core/src/transform-file.ts +56 -0
- package/node_modules/@babel/core/src/transformation/read-input-source-map-file-browser.ts +5 -0
- package/node_modules/@babel/core/src/transformation/read-input-source-map-file.ts +89 -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 +247 -0
- package/node_modules/@babel/generator/lib/buffer.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/base.js +86 -0
- package/node_modules/@babel/generator/lib/generators/base.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/classes.js +215 -0
- package/node_modules/@babel/generator/lib/generators/classes.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/deprecated.js +73 -0
- package/node_modules/@babel/generator/lib/generators/deprecated.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 +658 -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 +124 -0
- package/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/methods.js +207 -0
- package/node_modules/@babel/generator/lib/generators/methods.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/modules.js +290 -0
- package/node_modules/@babel/generator/lib/generators/modules.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/statements.js +297 -0
- package/node_modules/@babel/generator/lib/generators/statements.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/template-literals.js +38 -0
- package/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/types.js +183 -0
- package/node_modules/@babel/generator/lib/generators/types.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/typescript.js +726 -0
- package/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -0
- package/node_modules/@babel/generator/lib/index.js +108 -0
- package/node_modules/@babel/generator/lib/index.js.map +1 -0
- package/node_modules/@babel/generator/lib/node/index.js +81 -0
- package/node_modules/@babel/generator/lib/node/index.js.map +1 -0
- package/node_modules/@babel/generator/lib/node/parentheses.js +298 -0
- package/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -0
- package/node_modules/@babel/generator/lib/nodes.js +19 -0
- package/node_modules/@babel/generator/lib/nodes.js.map +1 -0
- package/node_modules/@babel/generator/lib/printer.js +783 -0
- package/node_modules/@babel/generator/lib/printer.js.map +1 -0
- package/node_modules/@babel/generator/lib/source-map.js +88 -0
- package/node_modules/@babel/generator/lib/source-map.js.map +1 -0
- package/node_modules/@babel/generator/lib/token-map.js +195 -0
- package/node_modules/@babel/generator/lib/token-map.js.map +1 -0
- package/node_modules/@babel/generator/package.json +39 -0
- package/node_modules/@babel/helper-annotate-as-pure/LICENSE +22 -0
- package/node_modules/@babel/helper-annotate-as-pure/README.md +19 -0
- package/node_modules/@babel/helper-annotate-as-pure/lib/index.js +23 -0
- package/node_modules/@babel/helper-annotate-as-pure/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-annotate-as-pure/package.json +27 -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 +229 -0
- package/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-compilation-targets/lib/options.js +24 -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 +28 -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 +43 -0
- package/node_modules/@babel/helper-create-class-features-plugin/LICENSE +22 -0
- package/node_modules/@babel/helper-create-class-features-plugin/README.md +19 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js +124 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js.map +1 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js +1312 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js.map +1 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/features.js +137 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/features.js.map +1 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js +1041 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js.map +1 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/index.js +237 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js +136 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js.map +1 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js +13 -0
- package/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map +1 -0
- package/node_modules/@babel/helper-create-class-features-plugin/package.json +43 -0
- package/node_modules/@babel/helper-globals/LICENSE +22 -0
- package/node_modules/@babel/helper-globals/README.md +19 -0
- package/node_modules/@babel/helper-globals/data/browser-upper.json +911 -0
- package/node_modules/@babel/helper-globals/data/builtin-lower.json +15 -0
- package/node_modules/@babel/helper-globals/data/builtin-upper.json +51 -0
- package/node_modules/@babel/helper-globals/package.json +32 -0
- package/node_modules/@babel/helper-member-expression-to-functions/LICENSE +22 -0
- package/node_modules/@babel/helper-member-expression-to-functions/README.md +19 -0
- package/node_modules/@babel/helper-member-expression-to-functions/lib/index.js +400 -0
- package/node_modules/@babel/helper-member-expression-to-functions/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-member-expression-to-functions/package.json +25 -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 +304 -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 +46 -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 +46 -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 +396 -0
- package/node_modules/@babel/helper-module-transforms/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js +31 -0
- package/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js.map +1 -0
- package/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js +362 -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 +360 -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 +22 -0
- package/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js.map +1 -0
- package/node_modules/@babel/helper-module-transforms/package.json +32 -0
- package/node_modules/@babel/helper-optimise-call-expression/LICENSE +22 -0
- package/node_modules/@babel/helper-optimise-call-expression/README.md +19 -0
- package/node_modules/@babel/helper-optimise-call-expression/lib/index.js +33 -0
- package/node_modules/@babel/helper-optimise-call-expression/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-optimise-call-expression/package.json +28 -0
- package/node_modules/@babel/helper-plugin-utils/LICENSE +22 -0
- package/node_modules/@babel/helper-plugin-utils/README.md +19 -0
- package/node_modules/@babel/helper-plugin-utils/lib/index.js +74 -0
- package/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-plugin-utils/package.json +24 -0
- package/node_modules/@babel/helper-replace-supers/LICENSE +22 -0
- package/node_modules/@babel/helper-replace-supers/README.md +19 -0
- package/node_modules/@babel/helper-replace-supers/lib/index.js +303 -0
- package/node_modules/@babel/helper-replace-supers/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-replace-supers/package.json +32 -0
- package/node_modules/@babel/helper-skip-transparent-expression-wrappers/LICENSE +22 -0
- package/node_modules/@babel/helper-skip-transparent-expression-wrappers/README.md +19 -0
- package/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js +34 -0
- package/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js.map +1 -0
- package/node_modules/@babel/helper-skip-transparent-expression-wrappers/package.json +31 -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 +31 -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 +31 -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 +27 -0
- package/node_modules/@babel/helpers/LICENSE +23 -0
- package/node_modules/@babel/helpers/README.md +19 -0
- package/node_modules/@babel/helpers/lib/helpers/AwaitValue.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/AwaitValue.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/applyDecoratedDescriptor.js +31 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs.js +459 -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 +376 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2203R.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2301.js +421 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2301.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2305.js +235 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2305.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2311.js +236 -0
- package/node_modules/@babel/helpers/lib/helpers/applyDecs2311.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/arrayLikeToArray.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/arrayLikeToArray.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/arrayWithHoles.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/arrayWithHoles.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/arrayWithoutHoles.js +12 -0
- package/node_modules/@babel/helpers/lib/helpers/arrayWithoutHoles.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/assertClassBrand.js +14 -0
- package/node_modules/@babel/helpers/lib/helpers/assertClassBrand.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/assertThisInitialized.js +14 -0
- package/node_modules/@babel/helpers/lib/helpers/assertThisInitialized.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 +72 -0
- package/node_modules/@babel/helpers/lib/helpers/asyncIterator.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/asyncToGenerator.js +38 -0
- package/node_modules/@babel/helpers/lib/helpers/asyncToGenerator.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/callSuper.js +15 -0
- package/node_modules/@babel/helpers/lib/helpers/callSuper.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/checkPrivateRedeclaration.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/checkPrivateRedeclaration.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorDestructureSet.js +25 -0
- package/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorDestructureSet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorGet.js +14 -0
- package/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorGet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorSet.js +18 -0
- package/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorSet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classCallCheck.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/classCallCheck.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticAccess.js +12 -0
- package/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticAccess.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticFieldDescriptor.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticFieldDescriptor.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classExtractFieldDescriptor.js +12 -0
- package/node_modules/@babel/helpers/lib/helpers/classExtractFieldDescriptor.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classNameTDZError.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/classNameTDZError.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldDestructureSet.js +14 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldDestructureSet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet.js +14 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet2.js +12 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet2.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldInitSpec.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldInitSpec.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseBase.js +14 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseBase.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseKey.js +12 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseKey.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet.js +15 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet2.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet2.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateGetter.js +12 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateGetter.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateMethodGet.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateMethodGet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateMethodInitSpec.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateMethodInitSpec.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateMethodSet.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateMethodSet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateSetter.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/classPrivateSetter.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldDestructureSet.js +16 -0
- package/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldDestructureSet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecGet.js +16 -0
- package/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecGet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecSet.js +17 -0
- package/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecSet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodGet.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodGet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodSet.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodSet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/construct.js +20 -0
- package/node_modules/@babel/helpers/lib/helpers/construct.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/createClass.js +26 -0
- package/node_modules/@babel/helpers/lib/helpers/createClass.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js +64 -0
- package/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelperLoose.js +29 -0
- package/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelperLoose.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/createSuper.js +25 -0
- package/node_modules/@babel/helpers/lib/helpers/createSuper.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/decorate.js +350 -0
- package/node_modules/@babel/helpers/lib/helpers/decorate.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/defaults.js +18 -0
- package/node_modules/@babel/helpers/lib/helpers/defaults.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/defineEnumerableProperties.js +27 -0
- package/node_modules/@babel/helpers/lib/helpers/defineEnumerableProperties.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/defineProperty.js +23 -0
- package/node_modules/@babel/helpers/lib/helpers/defineProperty.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/extends.js +22 -0
- package/node_modules/@babel/helpers/lib/helpers/extends.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/get.js +25 -0
- package/node_modules/@babel/helpers/lib/helpers/get.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/getPrototypeOf.js +14 -0
- package/node_modules/@babel/helpers/lib/helpers/getPrototypeOf.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/identity.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/identity.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/importDeferProxy.js +35 -0
- package/node_modules/@babel/helpers/lib/helpers/importDeferProxy.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/inherits.js +25 -0
- package/node_modules/@babel/helpers/lib/helpers/inherits.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/inheritsLoose.js +14 -0
- package/node_modules/@babel/helpers/lib/helpers/inheritsLoose.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/initializerDefineProperty.js +17 -0
- package/node_modules/@babel/helpers/lib/helpers/initializerDefineProperty.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/initializerWarningHelper.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/initializerWarningHelper.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/instanceof.js +15 -0
- package/node_modules/@babel/helpers/lib/helpers/instanceof.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/interopRequireDefault.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/interopRequireDefault.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/interopRequireWildcard.js +44 -0
- package/node_modules/@babel/helpers/lib/helpers/interopRequireWildcard.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js +15 -0
- package/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/isNativeReflectConstruct.js +16 -0
- package/node_modules/@babel/helpers/lib/helpers/isNativeReflectConstruct.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/iterableToArray.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/iterableToArray.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/jsx.js +47 -0
- package/node_modules/@babel/helpers/lib/helpers/jsx.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/maybeArrayLike.js +16 -0
- package/node_modules/@babel/helpers/lib/helpers/maybeArrayLike.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/newArrowCheck.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/newArrowCheck.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/nonIterableRest.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/nonIterableRest.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/nonIterableSpread.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/nonIterableSpread.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/nullishReceiverError.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/nullishReceiverError.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/objectDestructuringEmpty.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/objectDestructuringEmpty.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/objectSpread.js +24 -0
- package/node_modules/@babel/helpers/lib/helpers/objectSpread.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/objectWithoutProperties.js +24 -0
- package/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js +19 -0
- package/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/possibleConstructorReturn.js +17 -0
- package/node_modules/@babel/helpers/lib/helpers/possibleConstructorReturn.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/readOnlyError.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/readOnlyError.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/regenerator.js +188 -0
- package/node_modules/@babel/helpers/lib/helpers/regenerator.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorAsync.js +15 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorAsync.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorAsyncGen.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorAsyncGen.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorAsyncIterator.js +49 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorAsyncIterator.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorDefine.js +40 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorDefine.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorKeys.js +28 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorKeys.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorRuntime.js +98 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorRuntime.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorValues.js +32 -0
- package/node_modules/@babel/helpers/lib/helpers/regeneratorValues.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/set.js +48 -0
- package/node_modules/@babel/helpers/lib/helpers/set.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/setFunctionName.js +21 -0
- package/node_modules/@babel/helpers/lib/helpers/setFunctionName.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/setPrototypeOf.js +15 -0
- package/node_modules/@babel/helpers/lib/helpers/setPrototypeOf.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/skipFirstGeneratorNext.js +15 -0
- package/node_modules/@babel/helpers/lib/helpers/skipFirstGeneratorNext.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/slicedToArray.js +15 -0
- package/node_modules/@babel/helpers/lib/helpers/slicedToArray.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/superPropBase.js +16 -0
- package/node_modules/@babel/helpers/lib/helpers/superPropBase.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/superPropGet.js +16 -0
- package/node_modules/@babel/helpers/lib/helpers/superPropGet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/superPropSet.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/superPropSet.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteral.js +18 -0
- package/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteral.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteralLoose.js +15 -0
- package/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteralLoose.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/tdz.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/tdz.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/temporalRef.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/temporalRef.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/temporalUndefined.js +9 -0
- package/node_modules/@babel/helpers/lib/helpers/temporalUndefined.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/toArray.js +15 -0
- package/node_modules/@babel/helpers/lib/helpers/toArray.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/toConsumableArray.js +15 -0
- package/node_modules/@babel/helpers/lib/helpers/toConsumableArray.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/toPrimitive.js +18 -0
- package/node_modules/@babel/helpers/lib/helpers/toPrimitive.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/toPropertyKey.js +13 -0
- package/node_modules/@babel/helpers/lib/helpers/toPropertyKey.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/toSetter.js +18 -0
- package/node_modules/@babel/helpers/lib/helpers/toSetter.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/tsRewriteRelativeImportExtensions.js +16 -0
- package/node_modules/@babel/helpers/lib/helpers/tsRewriteRelativeImportExtensions.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/unsupportedIterableToArray.js +19 -0
- package/node_modules/@babel/helpers/lib/helpers/unsupportedIterableToArray.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/usingCtx.js +103 -0
- package/node_modules/@babel/helpers/lib/helpers/usingCtx.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/wrapAsyncGenerator.js +88 -0
- package/node_modules/@babel/helpers/lib/helpers/wrapAsyncGenerator.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/wrapNativeSuper.js +38 -0
- package/node_modules/@babel/helpers/lib/helpers/wrapNativeSuper.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js +72 -0
- package/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers/writeOnlyError.js +11 -0
- package/node_modules/@babel/helpers/lib/helpers/writeOnlyError.js.map +1 -0
- package/node_modules/@babel/helpers/lib/helpers-generated.js +1440 -0
- package/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -0
- package/node_modules/@babel/helpers/lib/index.js +122 -0
- package/node_modules/@babel/helpers/lib/index.js.map +1 -0
- package/node_modules/@babel/helpers/package.json +31 -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/lib/index.js +14599 -0
- package/node_modules/@babel/parser/lib/index.js.map +1 -0
- package/node_modules/@babel/parser/package.json +50 -0
- package/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
- package/node_modules/@babel/plugin-syntax-jsx/LICENSE +22 -0
- package/node_modules/@babel/plugin-syntax-jsx/README.md +19 -0
- package/node_modules/@babel/plugin-syntax-jsx/lib/index.js +21 -0
- package/node_modules/@babel/plugin-syntax-jsx/lib/index.js.map +1 -0
- package/node_modules/@babel/plugin-syntax-jsx/package.json +33 -0
- package/node_modules/@babel/plugin-syntax-typescript/LICENSE +22 -0
- package/node_modules/@babel/plugin-syntax-typescript/README.md +19 -0
- package/node_modules/@babel/plugin-syntax-typescript/lib/index.js +49 -0
- package/node_modules/@babel/plugin-syntax-typescript/lib/index.js.map +1 -0
- package/node_modules/@babel/plugin-syntax-typescript/package.json +35 -0
- package/node_modules/@babel/plugin-transform-modules-commonjs/LICENSE +22 -0
- package/node_modules/@babel/plugin-transform-modules-commonjs/README.md +19 -0
- package/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js +16 -0
- package/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js.map +1 -0
- package/node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js +37 -0
- package/node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js.map +1 -0
- package/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js +192 -0
- package/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js.map +1 -0
- package/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js +44 -0
- package/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js.map +1 -0
- package/node_modules/@babel/plugin-transform-modules-commonjs/package.json +36 -0
- package/node_modules/@babel/plugin-transform-typescript/LICENSE +22 -0
- package/node_modules/@babel/plugin-transform-typescript/README.md +19 -0
- package/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js +60 -0
- package/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js.map +1 -0
- package/node_modules/@babel/plugin-transform-typescript/lib/enum.js +332 -0
- package/node_modules/@babel/plugin-transform-typescript/lib/enum.js.map +1 -0
- package/node_modules/@babel/plugin-transform-typescript/lib/global-types.js +22 -0
- package/node_modules/@babel/plugin-transform-typescript/lib/global-types.js.map +1 -0
- package/node_modules/@babel/plugin-transform-typescript/lib/index.js +495 -0
- package/node_modules/@babel/plugin-transform-typescript/lib/index.js.map +1 -0
- package/node_modules/@babel/plugin-transform-typescript/lib/namespace.js +176 -0
- package/node_modules/@babel/plugin-transform-typescript/lib/namespace.js.map +1 -0
- package/node_modules/@babel/plugin-transform-typescript/package.json +41 -0
- package/node_modules/@babel/preset-typescript/LICENSE +22 -0
- package/node_modules/@babel/preset-typescript/README.md +19 -0
- package/node_modules/@babel/preset-typescript/lib/index.js +167 -0
- package/node_modules/@babel/preset-typescript/lib/index.js.map +1 -0
- package/node_modules/@babel/preset-typescript/package.json +40 -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 +61 -0
- package/node_modules/@babel/template/lib/formatters.js.map +1 -0
- package/node_modules/@babel/template/lib/index.js +23 -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 +163 -0
- package/node_modules/@babel/template/lib/parse.js.map +1 -0
- package/node_modules/@babel/template/lib/populate.js +138 -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 +37 -0
- package/node_modules/@babel/traverse/lib/cache.js.map +1 -0
- package/node_modules/@babel/traverse/lib/context.js +125 -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 +87 -0
- package/node_modules/@babel/traverse/lib/index.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/ancestry.js +139 -0
- package/node_modules/@babel/traverse/lib/path/ancestry.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/comments.js +52 -0
- package/node_modules/@babel/traverse/lib/path/comments.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/context.js +254 -0
- package/node_modules/@babel/traverse/lib/path/context.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/conversion.js +608 -0
- package/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/evaluation.js +373 -0
- package/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/family.js +346 -0
- package/node_modules/@babel/traverse/lib/path/family.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/index.js +288 -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 +28 -0
- package/node_modules/@babel/traverse/lib/path/inference/util.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/introspection.js +395 -0
- package/node_modules/@babel/traverse/lib/path/introspection.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/lib/hoister.js +172 -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 +162 -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 +26 -0
- package/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/modification.js +229 -0
- package/node_modules/@babel/traverse/lib/path/modification.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/removal.js +67 -0
- package/node_modules/@babel/traverse/lib/path/removal.js.map +1 -0
- package/node_modules/@babel/traverse/lib/path/replacement.js +264 -0
- package/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -0
- package/node_modules/@babel/traverse/lib/scope/binding.js +84 -0
- package/node_modules/@babel/traverse/lib/scope/binding.js.map +1 -0
- package/node_modules/@babel/traverse/lib/scope/index.js +1018 -0
- package/node_modules/@babel/traverse/lib/scope/index.js.map +1 -0
- package/node_modules/@babel/traverse/lib/scope/lib/renamer.js +132 -0
- package/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +1 -0
- package/node_modules/@babel/traverse/lib/scope/traverseForScope.js +66 -0
- package/node_modules/@babel/traverse/lib/scope/traverseForScope.js.map +1 -0
- package/node_modules/@babel/traverse/lib/traverse-node.js +137 -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 +252 -0
- package/node_modules/@babel/traverse/lib/visitors.js.map +1 -0
- package/node_modules/@babel/traverse/package.json +35 -0
- package/node_modules/@babel/traverse/tsconfig.overrides.json +6 -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 +1251 -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 +31 -0
- package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/generated/index.js +29 -0
- package/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js +2902 -0
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js +272 -0
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/productions.js +12 -0
- package/node_modules/@babel/types/lib/builders/productions.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 +21 -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 +107 -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 +60 -0
- package/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -0
- package/node_modules/@babel/types/lib/constants/index.js +31 -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 +65 -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 +39 -0
- package/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -0
- package/node_modules/@babel/types/lib/converters/valueToNode.js +89 -0
- package/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/core.js +1725 -0
- package/node_modules/@babel/types/lib/definitions/core.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +11 -0
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/experimental.js +124 -0
- package/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/flow.js +495 -0
- package/node_modules/@babel/types/lib/definitions/flow.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/index.js +106 -0
- package/node_modules/@babel/types/lib/definitions/index.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/jsx.js +157 -0
- package/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/misc.js +31 -0
- package/node_modules/@babel/types/lib/definitions/misc.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/placeholders.js +27 -0
- package/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/typescript.js +528 -0
- package/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -0
- package/node_modules/@babel/types/lib/definitions/utils.js +296 -0
- package/node_modules/@babel/types/lib/definitions/utils.js.map +1 -0
- package/node_modules/@babel/types/lib/index-legacy.d.ts +2797 -0
- package/node_modules/@babel/types/lib/index.d.ts +3617 -0
- package/node_modules/@babel/types/lib/index.js +582 -0
- package/node_modules/@babel/types/lib/index.js.flow +2650 -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 +66 -0
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -0
- package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +48 -0
- package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +1 -0
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +102 -0
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -0
- package/node_modules/@babel/types/lib/retrievers/getFunctionName.js +63 -0
- package/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +1 -0
- package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +13 -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 +40 -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 +2797 -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 +15 -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 +17 -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 +44 -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 +11 -0
- package/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -0
- package/node_modules/@babel/types/lib/validators/validate.js +42 -0
- package/node_modules/@babel/types/lib/validators/validate.js.map +1 -0
- package/node_modules/@babel/types/package.json +39 -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 +292 -0
- package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +6 -0
- package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +358 -0
- package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +6 -0
- package/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
- package/node_modules/@jridgewell/gen-mapping/dist/types/set-array.d.ts +32 -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 +43 -0
- package/node_modules/@jridgewell/gen-mapping/package.json +67 -0
- package/node_modules/@jridgewell/gen-mapping/src/gen-mapping.ts +614 -0
- package/node_modules/@jridgewell/gen-mapping/src/set-array.ts +82 -0
- package/node_modules/@jridgewell/gen-mapping/src/sourcemap-segment.ts +16 -0
- package/node_modules/@jridgewell/gen-mapping/src/types.ts +61 -0
- package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts +89 -0
- package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +89 -0
- package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts +33 -0
- package/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +33 -0
- package/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts +13 -0
- package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +13 -0
- package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/types.d.cts +44 -0
- package/node_modules/@jridgewell/gen-mapping/types/types.d.cts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/types.d.mts +44 -0
- package/node_modules/@jridgewell/gen-mapping/types/types.d.mts.map +1 -0
- package/node_modules/@jridgewell/remapping/LICENSE +19 -0
- package/node_modules/@jridgewell/remapping/README.md +218 -0
- package/node_modules/@jridgewell/remapping/dist/remapping.mjs +144 -0
- package/node_modules/@jridgewell/remapping/dist/remapping.mjs.map +6 -0
- package/node_modules/@jridgewell/remapping/dist/remapping.umd.js +212 -0
- package/node_modules/@jridgewell/remapping/dist/remapping.umd.js.map +6 -0
- package/node_modules/@jridgewell/remapping/package.json +71 -0
- package/node_modules/@jridgewell/remapping/src/build-source-map-tree.ts +89 -0
- package/node_modules/@jridgewell/remapping/src/remapping.ts +42 -0
- package/node_modules/@jridgewell/remapping/src/source-map-tree.ts +172 -0
- package/node_modules/@jridgewell/remapping/src/source-map.ts +38 -0
- package/node_modules/@jridgewell/remapping/src/types.ts +27 -0
- package/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.cts +15 -0
- package/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.cts.map +1 -0
- package/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts +15 -0
- package/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts.map +1 -0
- package/node_modules/@jridgewell/remapping/types/remapping.d.cts +21 -0
- package/node_modules/@jridgewell/remapping/types/remapping.d.cts.map +1 -0
- package/node_modules/@jridgewell/remapping/types/remapping.d.mts +21 -0
- package/node_modules/@jridgewell/remapping/types/remapping.d.mts.map +1 -0
- package/node_modules/@jridgewell/remapping/types/source-map-tree.d.cts +46 -0
- package/node_modules/@jridgewell/remapping/types/source-map-tree.d.cts.map +1 -0
- package/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts +46 -0
- package/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts.map +1 -0
- package/node_modules/@jridgewell/remapping/types/source-map.d.cts +19 -0
- package/node_modules/@jridgewell/remapping/types/source-map.d.cts.map +1 -0
- package/node_modules/@jridgewell/remapping/types/source-map.d.mts +19 -0
- package/node_modules/@jridgewell/remapping/types/source-map.d.mts.map +1 -0
- package/node_modules/@jridgewell/remapping/types/types.d.cts +16 -0
- package/node_modules/@jridgewell/remapping/types/types.d.cts.map +1 -0
- package/node_modules/@jridgewell/remapping/types/types.d.mts +16 -0
- package/node_modules/@jridgewell/remapping/types/types.d.mts.map +1 -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 +232 -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 +240 -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/sourcemap-codec/LICENSE +19 -0
- package/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
- package/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
- package/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
- package/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
- package/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/node_modules/@jridgewell/trace-mapping/README.md +348 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +493 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +6 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +559 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +6 -0
- package/node_modules/@jridgewell/trace-mapping/package.json +67 -0
- package/node_modules/@jridgewell/trace-mapping/src/binary-search.ts +115 -0
- package/node_modules/@jridgewell/trace-mapping/src/by-source.ts +41 -0
- package/node_modules/@jridgewell/trace-mapping/src/flatten-map.ts +192 -0
- package/node_modules/@jridgewell/trace-mapping/src/resolve.ts +16 -0
- package/node_modules/@jridgewell/trace-mapping/src/sort.ts +45 -0
- package/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts +23 -0
- package/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts +8 -0
- package/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts +502 -0
- package/node_modules/@jridgewell/trace-mapping/src/types.ts +114 -0
- package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts +33 -0
- package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +33 -0
- package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts +4 -0
- package/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts +4 -0
- package/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts +9 -0
- package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +9 -0
- package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts +4 -0
- package/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +4 -0
- package/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/sort.d.cts +4 -0
- package/node_modules/@jridgewell/trace-mapping/types/sort.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/sort.d.mts +4 -0
- package/node_modules/@jridgewell/trace-mapping/types/sort.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts +17 -0
- package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +17 -0
- package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts +5 -0
- package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts +5 -0
- package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts +80 -0
- package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +80 -0
- package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/types.d.cts +107 -0
- package/node_modules/@jridgewell/trace-mapping/types/types.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/types.d.mts +107 -0
- package/node_modules/@jridgewell/trace-mapping/types/types.d.mts.map +1 -0
- package/node_modules/@opentui/core/LICENSE +21 -0
- package/node_modules/@opentui/core/NativeSpanFeed.d.ts +52 -0
- package/node_modules/@opentui/core/README.md +72 -0
- package/node_modules/@opentui/core/Renderable.d.ts +349 -0
- package/node_modules/@opentui/core/animation/Timeline.d.ts +126 -0
- package/node_modules/@opentui/core/ansi.d.ts +17 -0
- package/node_modules/@opentui/core/assets/javascript/highlights.scm +205 -0
- package/node_modules/@opentui/core/assets/javascript/tree-sitter-javascript.wasm +0 -0
- package/node_modules/@opentui/core/assets/markdown/highlights.scm +150 -0
- package/node_modules/@opentui/core/assets/markdown/injections.scm +27 -0
- package/node_modules/@opentui/core/assets/markdown/tree-sitter-markdown.wasm +0 -0
- package/node_modules/@opentui/core/assets/markdown_inline/highlights.scm +115 -0
- package/node_modules/@opentui/core/assets/markdown_inline/tree-sitter-markdown_inline.wasm +0 -0
- package/node_modules/@opentui/core/assets/typescript/highlights.scm +604 -0
- package/node_modules/@opentui/core/assets/typescript/tree-sitter-typescript.wasm +0 -0
- package/node_modules/@opentui/core/assets/zig/highlights.scm +284 -0
- package/node_modules/@opentui/core/assets/zig/tree-sitter-zig.wasm +0 -0
- package/node_modules/@opentui/core/audio-stream/demuxer.d.ts +19 -0
- package/node_modules/@opentui/core/audio-stream/icy/demuxer.d.ts +21 -0
- package/node_modules/@opentui/core/audio-stream/icy/metadata.d.ts +1 -0
- package/node_modules/@opentui/core/audio.d.ts +495 -0
- package/node_modules/@opentui/core/buffer.d.ts +116 -0
- package/node_modules/@opentui/core/chunk-bun-37s3zwb6.js +18792 -0
- package/node_modules/@opentui/core/chunk-bun-37s3zwb6.js.map +64 -0
- package/node_modules/@opentui/core/chunk-bun-bwjmgnxw.js +10477 -0
- package/node_modules/@opentui/core/chunk-bun-bwjmgnxw.js.map +32 -0
- package/node_modules/@opentui/core/chunk-node-54dhb2fr.js +10476 -0
- package/node_modules/@opentui/core/chunk-node-54dhb2fr.js.map +32 -0
- package/node_modules/@opentui/core/chunk-node-70eg2nhg.js +18774 -0
- package/node_modules/@opentui/core/chunk-node-70eg2nhg.js.map +63 -0
- package/node_modules/@opentui/core/console.d.ts +146 -0
- package/node_modules/@opentui/core/edit-buffer.d.ts +99 -0
- package/node_modules/@opentui/core/editor-view.d.ts +79 -0
- package/node_modules/@opentui/core/image.d.ts +131 -0
- package/node_modules/@opentui/core/index.bun.js +15880 -0
- package/node_modules/@opentui/core/index.bun.js.map +42 -0
- package/node_modules/@opentui/core/index.d.ts +29 -0
- package/node_modules/@opentui/core/index.node.js +15879 -0
- package/node_modules/@opentui/core/index.node.js.map +76 -0
- package/node_modules/@opentui/core/lib/KeyHandler.d.ts +61 -0
- package/node_modules/@opentui/core/lib/RGBA.d.ts +42 -0
- package/node_modules/@opentui/core/lib/ascii.font.d.ts +508 -0
- package/node_modules/@opentui/core/lib/border.d.ts +51 -0
- package/node_modules/@opentui/core/lib/bunfs.d.ts +7 -0
- package/node_modules/@opentui/core/lib/clipboard.d.ts +134 -0
- package/node_modules/@opentui/core/lib/clock.d.ts +15 -0
- package/node_modules/@opentui/core/lib/data-paths.d.ts +26 -0
- package/node_modules/@opentui/core/lib/debounce.d.ts +42 -0
- package/node_modules/@opentui/core/lib/detect-links.d.ts +11 -0
- package/node_modules/@opentui/core/lib/env.d.ts +43 -0
- package/node_modules/@opentui/core/lib/extmarks-history.d.ts +17 -0
- package/node_modules/@opentui/core/lib/extmarks.d.ts +90 -0
- package/node_modules/@opentui/core/lib/hast-styled-text.d.ts +17 -0
- package/node_modules/@opentui/core/lib/host-clipboard.internal.d.ts +22 -0
- package/node_modules/@opentui/core/lib/host-clipboard.native.d.ts +2 -0
- package/node_modules/@opentui/core/lib/index.d.ts +22 -0
- package/node_modules/@opentui/core/lib/keybinding.internal.d.ts +33 -0
- package/node_modules/@opentui/core/lib/objects-in-viewport.d.ts +24 -0
- package/node_modules/@opentui/core/lib/output.capture.d.ts +24 -0
- package/node_modules/@opentui/core/lib/parse.keypress-kitty.d.ts +3 -0
- package/node_modules/@opentui/core/lib/parse.keypress.d.ts +27 -0
- package/node_modules/@opentui/core/lib/parse.mouse.d.ts +30 -0
- package/node_modules/@opentui/core/lib/paste.d.ts +7 -0
- package/node_modules/@opentui/core/lib/queue.d.ts +15 -0
- package/node_modules/@opentui/core/lib/render-geometry.d.ts +8 -0
- package/node_modules/@opentui/core/lib/renderable.validations.d.ts +12 -0
- package/node_modules/@opentui/core/lib/scroll-acceleration.d.ts +43 -0
- package/node_modules/@opentui/core/lib/selection.d.ts +66 -0
- package/node_modules/@opentui/core/lib/singleton.d.ts +8 -0
- package/node_modules/@opentui/core/lib/stdin-parser.d.ts +95 -0
- package/node_modules/@opentui/core/lib/styled-text.d.ts +63 -0
- package/node_modules/@opentui/core/lib/terminal-capability-detection.d.ts +32 -0
- package/node_modules/@opentui/core/lib/terminal-palette.d.ts +65 -0
- package/node_modules/@opentui/core/lib/tree-sitter/assets/update.d.ts +12 -0
- package/node_modules/@opentui/core/lib/tree-sitter/client.d.ts +65 -0
- package/node_modules/@opentui/core/lib/tree-sitter/default-parser-assets.bun.d.ts +1 -0
- package/node_modules/@opentui/core/lib/tree-sitter/default-parsers.d.ts +3 -0
- package/node_modules/@opentui/core/lib/tree-sitter/download-utils.d.ts +21 -0
- package/node_modules/@opentui/core/lib/tree-sitter/index.d.ts +7 -0
- package/node_modules/@opentui/core/lib/tree-sitter/parser.worker.d.ts +1 -0
- package/node_modules/@opentui/core/lib/tree-sitter/parsers-config.d.ts +53 -0
- package/node_modules/@opentui/core/lib/tree-sitter/resolve-ft.d.ts +5 -0
- package/node_modules/@opentui/core/lib/tree-sitter/types.d.ts +187 -0
- package/node_modules/@opentui/core/lib/tree-sitter/update-assets.d.ts +3 -0
- package/node_modules/@opentui/core/lib/tree-sitter/update-assets.js +445 -0
- package/node_modules/@opentui/core/lib/tree-sitter/update-assets.js.map +12 -0
- package/node_modules/@opentui/core/lib/tree-sitter-styled-text.d.ts +20 -0
- package/node_modules/@opentui/core/lib/validate-dir-name.d.ts +1 -0
- package/node_modules/@opentui/core/lib/yoga.options.d.ts +32 -0
- package/node_modules/@opentui/core/native-event-worker-repro.worker.d.ts +1 -0
- package/node_modules/@opentui/core/node-asset-target.d.ts +12 -0
- package/node_modules/@opentui/core/node-assets.d.ts +7 -0
- package/node_modules/@opentui/core/node-assets.js +264 -0
- package/node_modules/@opentui/core/node-assets.js.map +16 -0
- package/node_modules/@opentui/core/package.json +91 -0
- package/node_modules/@opentui/core/parser.worker.js +4563 -0
- package/node_modules/@opentui/core/parser.worker.js.map +26 -0
- package/node_modules/@opentui/core/platform/assets.d.ts +5 -0
- package/node_modules/@opentui/core/platform/ffi.d.ts +131 -0
- package/node_modules/@opentui/core/platform/runtime-assets.bun.d.ts +4 -0
- package/node_modules/@opentui/core/platform/runtime-assets.node.d.ts +4 -0
- package/node_modules/@opentui/core/platform/runtime.d.ts +18 -0
- package/node_modules/@opentui/core/platform/test.d.ts +12 -0
- package/node_modules/@opentui/core/platform/worker.d.ts +26 -0
- package/node_modules/@opentui/core/platform/worker.node-test.d.ts +1 -0
- package/node_modules/@opentui/core/plugins/core-slot.d.ts +72 -0
- package/node_modules/@opentui/core/plugins/registry.d.ts +42 -0
- package/node_modules/@opentui/core/plugins/types.d.ts +34 -0
- package/node_modules/@opentui/core/post/effects.d.ts +149 -0
- package/node_modules/@opentui/core/post/filters.d.ts +65 -0
- package/node_modules/@opentui/core/post/matrices.d.ts +20 -0
- package/node_modules/@opentui/core/renderables/ASCIIFont.d.ts +52 -0
- package/node_modules/@opentui/core/renderables/Box.d.ts +85 -0
- package/node_modules/@opentui/core/renderables/Code.d.ts +110 -0
- package/node_modules/@opentui/core/renderables/Diff.d.ts +146 -0
- package/node_modules/@opentui/core/renderables/EditBufferRenderable.d.ts +242 -0
- package/node_modules/@opentui/core/renderables/EmbeddedTerminal.d.ts +67 -0
- package/node_modules/@opentui/core/renderables/FrameBuffer.d.ts +16 -0
- package/node_modules/@opentui/core/renderables/Image.d.ts +46 -0
- package/node_modules/@opentui/core/renderables/Input.d.ts +72 -0
- package/node_modules/@opentui/core/renderables/LineNumberRenderable.d.ts +78 -0
- package/node_modules/@opentui/core/renderables/Markdown.d.ts +261 -0
- package/node_modules/@opentui/core/renderables/ScrollBar.d.ts +77 -0
- package/node_modules/@opentui/core/renderables/ScrollBox.d.ts +128 -0
- package/node_modules/@opentui/core/renderables/Select.d.ts +122 -0
- package/node_modules/@opentui/core/renderables/Slider.d.ts +47 -0
- package/node_modules/@opentui/core/renderables/TabSelect.d.ts +98 -0
- package/node_modules/@opentui/core/renderables/Text.d.ts +36 -0
- package/node_modules/@opentui/core/renderables/TextBufferRenderable.d.ts +109 -0
- package/node_modules/@opentui/core/renderables/TextNode.d.ts +92 -0
- package/node_modules/@opentui/core/renderables/TextTable.d.ts +154 -0
- package/node_modules/@opentui/core/renderables/Textarea.d.ts +65 -0
- package/node_modules/@opentui/core/renderables/TimeToFirstDraw.d.ts +24 -0
- package/node_modules/@opentui/core/renderables/__tests__/renderable-test-utils.d.ts +12 -0
- package/node_modules/@opentui/core/renderables/composition/VRenderable.d.ts +16 -0
- package/node_modules/@opentui/core/renderables/composition/constructs.d.ts +35 -0
- package/node_modules/@opentui/core/renderables/composition/vnode.d.ts +46 -0
- package/node_modules/@opentui/core/renderables/index.d.ts +25 -0
- package/node_modules/@opentui/core/renderables/markdown-parser.d.ts +11 -0
- package/node_modules/@opentui/core/renderables/text-table-width.d.ts +1 -0
- package/node_modules/@opentui/core/renderer-theme-mode.d.ts +29 -0
- package/node_modules/@opentui/core/renderer.d.ts +642 -0
- package/node_modules/@opentui/core/runtime-plugin-support-configure.d.ts +4 -0
- package/node_modules/@opentui/core/runtime-plugin-support-configure.js +36 -0
- package/node_modules/@opentui/core/runtime-plugin-support-configure.js.map +1 -0
- package/node_modules/@opentui/core/runtime-plugin-support-configure.node.js +15 -0
- package/node_modules/@opentui/core/runtime-plugin-support.d.ts +3 -0
- package/node_modules/@opentui/core/runtime-plugin-support.js +5 -0
- package/node_modules/@opentui/core/runtime-plugin-support.js.map +1 -0
- package/node_modules/@opentui/core/runtime-plugin-support.node.js +15 -0
- package/node_modules/@opentui/core/runtime-plugin.d.ts +16 -0
- package/node_modules/@opentui/core/runtime-plugin.js +473 -0
- package/node_modules/@opentui/core/runtime-plugin.js.map +1 -0
- package/node_modules/@opentui/core/runtime-plugin.node.js +15 -0
- package/node_modules/@opentui/core/syntax-style.d.ts +61 -0
- package/node_modules/@opentui/core/testing/bun-test-node.d.ts +88 -0
- package/node_modules/@opentui/core/testing/manual-clock.d.ts +17 -0
- package/node_modules/@opentui/core/testing/mock-keys.d.ts +81 -0
- package/node_modules/@opentui/core/testing/mock-mouse.d.ts +38 -0
- package/node_modules/@opentui/core/testing/mock-tree-sitter-client.d.ts +27 -0
- package/node_modules/@opentui/core/testing/spy.d.ts +7 -0
- package/node_modules/@opentui/core/testing/terminal-capabilities.d.ts +7 -0
- package/node_modules/@opentui/core/testing/test-recorder.d.ts +61 -0
- package/node_modules/@opentui/core/testing/test-renderer.d.ts +54 -0
- package/node_modules/@opentui/core/testing/test-streams.d.ts +12 -0
- package/node_modules/@opentui/core/testing.bun.js +1006 -0
- package/node_modules/@opentui/core/testing.bun.js.map +18 -0
- package/node_modules/@opentui/core/testing.d.ts +8 -0
- package/node_modules/@opentui/core/testing.js +1005 -0
- package/node_modules/@opentui/core/testing.js.map +18 -0
- package/node_modules/@opentui/core/tests/image-icc-allocation-child.d.ts +1 -0
- package/node_modules/@opentui/core/tests/yoga-upstream/tools/MeasureCounter.d.ts +16 -0
- package/node_modules/@opentui/core/tests/yoga-upstream/tools/utils.d.ts +11 -0
- package/node_modules/@opentui/core/text-buffer-view.d.ts +43 -0
- package/node_modules/@opentui/core/text-buffer.d.ts +65 -0
- package/node_modules/@opentui/core/types.d.ts +193 -0
- package/node_modules/@opentui/core/utils.d.ts +15 -0
- package/node_modules/@opentui/core/yoga.bun.js +194 -0
- package/node_modules/@opentui/core/yoga.bun.js.map +9 -0
- package/node_modules/@opentui/core/yoga.d.ts +437 -0
- package/node_modules/@opentui/core/yoga.js +193 -0
- package/node_modules/@opentui/core/yoga.js.map +9 -0
- package/node_modules/@opentui/core/zig-structs.d.ts +334 -0
- package/node_modules/@opentui/core/zig.d.ts +772 -0
- package/node_modules/@opentui/core-linux-x64/AUTHORS-LIBWEBP +72 -0
- package/node_modules/@opentui/core-linux-x64/LICENSE +21 -0
- package/node_modules/@opentui/core-linux-x64/LICENSE-GHOSTTY +117 -0
- package/node_modules/@opentui/core-linux-x64/LICENSE-LCMS2 +22 -0
- package/node_modules/@opentui/core-linux-x64/LICENSE-LIBWEBP +30 -0
- package/node_modules/@opentui/core-linux-x64/LICENSE-STB +37 -0
- package/node_modules/@opentui/core-linux-x64/LICENSE-WUFFS +177 -0
- package/node_modules/@opentui/core-linux-x64/PATENTS-LIBWEBP +23 -0
- package/node_modules/@opentui/core-linux-x64/README.md +3 -0
- package/node_modules/@opentui/core-linux-x64/index.bun.js +3 -0
- package/node_modules/@opentui/core-linux-x64/index.d.ts +2 -0
- package/node_modules/@opentui/core-linux-x64/index.js +3 -0
- package/node_modules/@opentui/core-linux-x64/libopentui.so +0 -0
- package/node_modules/@opentui/core-linux-x64/package.json +32 -0
- package/node_modules/@opentui/core-linux-x64-musl/AUTHORS-LIBWEBP +72 -0
- package/node_modules/@opentui/core-linux-x64-musl/LICENSE +21 -0
- package/node_modules/@opentui/core-linux-x64-musl/LICENSE-GHOSTTY +117 -0
- package/node_modules/@opentui/core-linux-x64-musl/LICENSE-LCMS2 +22 -0
- package/node_modules/@opentui/core-linux-x64-musl/LICENSE-LIBWEBP +30 -0
- package/node_modules/@opentui/core-linux-x64-musl/LICENSE-STB +37 -0
- package/node_modules/@opentui/core-linux-x64-musl/LICENSE-WUFFS +177 -0
- package/node_modules/@opentui/core-linux-x64-musl/PATENTS-LIBWEBP +23 -0
- package/node_modules/@opentui/core-linux-x64-musl/README.md +3 -0
- package/node_modules/@opentui/core-linux-x64-musl/index.bun.js +3 -0
- package/node_modules/@opentui/core-linux-x64-musl/index.d.ts +2 -0
- package/node_modules/@opentui/core-linux-x64-musl/index.js +3 -0
- package/node_modules/@opentui/core-linux-x64-musl/libopentui.so +0 -0
- package/node_modules/@opentui/core-linux-x64-musl/package.json +35 -0
- package/node_modules/@opentui/solid/LICENSE +21 -0
- package/node_modules/@opentui/solid/README.md +192 -0
- package/node_modules/@opentui/solid/components.d.ts +2 -0
- package/node_modules/@opentui/solid/components.js +1 -0
- package/node_modules/@opentui/solid/index.bun.js +1634 -0
- package/node_modules/@opentui/solid/index.bun.js.map +22 -0
- package/node_modules/@opentui/solid/index.d.ts +12 -0
- package/node_modules/@opentui/solid/index.js +1608 -0
- package/node_modules/@opentui/solid/index.js.map +22 -0
- package/node_modules/@opentui/solid/jsx-dev-runtime.d.ts +1 -0
- package/node_modules/@opentui/solid/jsx-dev-runtime.js +2 -0
- package/node_modules/@opentui/solid/jsx-dev-runtime.js.map +1 -0
- package/node_modules/@opentui/solid/jsx-runtime.d.ts +56 -0
- package/node_modules/@opentui/solid/jsx-runtime.js +31 -0
- package/node_modules/@opentui/solid/jsx-runtime.js.map +1 -0
- package/node_modules/@opentui/solid/package.json +82 -0
- package/node_modules/@opentui/solid/scripts/preload.js +3 -0
- package/node_modules/@opentui/solid/scripts/preload.js.map +1 -0
- package/node_modules/@opentui/solid/scripts/preload.node.js +9 -0
- package/node_modules/@opentui/solid/scripts/runtime-plugin-support-configure.d.ts +7 -0
- package/node_modules/@opentui/solid/scripts/runtime-plugin-support-configure.js +73 -0
- package/node_modules/@opentui/solid/scripts/runtime-plugin-support-configure.js.map +1 -0
- package/node_modules/@opentui/solid/scripts/runtime-plugin-support-configure.node.js +11 -0
- package/node_modules/@opentui/solid/scripts/runtime-plugin-support.d.ts +3 -0
- package/node_modules/@opentui/solid/scripts/runtime-plugin-support.js +4 -0
- package/node_modules/@opentui/solid/scripts/runtime-plugin-support.js.map +1 -0
- package/node_modules/@opentui/solid/scripts/runtime-plugin-support.node.js +11 -0
- package/node_modules/@opentui/solid/scripts/solid-plugin.d.ts +11 -0
- package/node_modules/@opentui/solid/scripts/solid-plugin.js +76 -0
- package/node_modules/@opentui/solid/scripts/solid-plugin.js.map +1 -0
- package/node_modules/@opentui/solid/scripts/solid-plugin.node.js +21 -0
- package/node_modules/@opentui/solid/scripts/solid-transform.d.ts +10 -0
- package/node_modules/@opentui/solid/scripts/solid-transform.js +66 -0
- package/node_modules/@opentui/solid/scripts/solid-transform.js.map +1 -0
- package/node_modules/@opentui/solid/src/elements/catalogue.d.ts +70 -0
- package/node_modules/@opentui/solid/src/elements/extras.d.ts +41 -0
- package/node_modules/@opentui/solid/src/elements/hooks.d.ts +38 -0
- package/node_modules/@opentui/solid/src/elements/index.d.ts +4 -0
- package/node_modules/@opentui/solid/src/elements/slot.d.ts +62 -0
- package/node_modules/@opentui/solid/src/plugins/slot.d.ts +25 -0
- package/node_modules/@opentui/solid/src/reconciler.d.ts +5 -0
- package/node_modules/@opentui/solid/src/renderer/index.d.ts +3 -0
- package/node_modules/@opentui/solid/src/renderer/universal.d.ts +30 -0
- package/node_modules/@opentui/solid/src/scrollback.d.ts +12 -0
- package/node_modules/@opentui/solid/src/testing/bun-test-node.d.ts +15 -0
- package/node_modules/@opentui/solid/src/time-to-first-draw.d.ts +9 -0
- package/node_modules/@opentui/solid/src/types/elements.d.ts +93 -0
- package/node_modules/@opentui/solid/src/utils/id-counter.d.ts +1 -0
- package/node_modules/@opentui/solid/src/utils/log.d.ts +1 -0
- package/node_modules/ansi-regex/index.d.ts +33 -0
- package/node_modules/ansi-regex/index.js +14 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +61 -0
- package/node_modules/ansi-regex/readme.md +66 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/LICENSE +21 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/README.md +312 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/index.js +4360 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/node_modules/@babel/helper-module-imports/LICENSE +22 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/node_modules/@babel/helper-module-imports/README.md +19 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/node_modules/@babel/helper-module-imports/lib/import-builder.js +164 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/node_modules/@babel/helper-module-imports/lib/import-injector.js +280 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/node_modules/@babel/helper-module-imports/lib/index.js +41 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/node_modules/@babel/helper-module-imports/lib/is-module.js +18 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/node_modules/@babel/helper-module-imports/package.json +28 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/package.json +37 -0
- package/node_modules/babel-plugin-jsx-dom-expressions/tsconfig.json +15 -0
- package/node_modules/babel-plugin-module-resolver/LICENSE.md +21 -0
- package/node_modules/babel-plugin-module-resolver/README.md +160 -0
- package/node_modules/babel-plugin-module-resolver/lib/index.js +49 -0
- package/node_modules/babel-plugin-module-resolver/lib/log.js +11 -0
- package/node_modules/babel-plugin-module-resolver/lib/mapPath.js +22 -0
- package/node_modules/babel-plugin-module-resolver/lib/mapToRelative.js +15 -0
- package/node_modules/babel-plugin-module-resolver/lib/normalizeOptions.js +115 -0
- package/node_modules/babel-plugin-module-resolver/lib/resolvePath.js +92 -0
- package/node_modules/babel-plugin-module-resolver/lib/transformers/call.js +18 -0
- package/node_modules/babel-plugin-module-resolver/lib/transformers/import.js +13 -0
- package/node_modules/babel-plugin-module-resolver/lib/utils.js +72 -0
- package/node_modules/babel-plugin-module-resolver/package.json +86 -0
- package/node_modules/babel-preset-solid/LICENSE +21 -0
- package/node_modules/babel-preset-solid/README.md +62 -0
- package/node_modules/babel-preset-solid/index.js +34 -0
- package/node_modules/babel-preset-solid/package.json +28 -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/baseline-browser-mapping/LICENSE.txt +201 -0
- package/node_modules/baseline-browser-mapping/README.md +545 -0
- package/node_modules/baseline-browser-mapping/dist/cli.cjs +2 -0
- package/node_modules/baseline-browser-mapping/dist/index.cjs +1 -0
- package/node_modules/baseline-browser-mapping/dist/index.d.ts +28 -0
- package/node_modules/baseline-browser-mapping/dist/index.js +1 -0
- package/node_modules/baseline-browser-mapping/dist/types.d.ts +121 -0
- package/node_modules/baseline-browser-mapping/dist/utils.d.ts +1 -0
- package/node_modules/baseline-browser-mapping/package.json +68 -0
- package/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
- package/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/brace-expansion/README.md +157 -0
- package/node_modules/brace-expansion/index.js +338 -0
- package/node_modules/brace-expansion/package.json +49 -0
- package/node_modules/browserslist/LICENSE +20 -0
- package/node_modules/browserslist/README.md +61 -0
- package/node_modules/browserslist/browser.js +54 -0
- package/node_modules/browserslist/cli.js +156 -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 +224 -0
- package/node_modules/browserslist/index.js +1346 -0
- package/node_modules/browserslist/node.js +504 -0
- package/node_modules/browserslist/package.json +45 -0
- package/node_modules/browserslist/parse.js +136 -0
- package/node_modules/bun-ffi-structs/LICENSE +7 -0
- package/node_modules/bun-ffi-structs/README.md +111 -0
- package/node_modules/bun-ffi-structs/dist/error.d.ts +1 -0
- package/node_modules/bun-ffi-structs/dist/ffi.d.ts +3 -0
- package/node_modules/bun-ffi-structs/dist/index.d.ts +2 -0
- package/node_modules/bun-ffi-structs/dist/index.js +1309 -0
- package/node_modules/bun-ffi-structs/dist/structs_ffi.d.ts +31 -0
- package/node_modules/bun-ffi-structs/dist/types.d.ts +136 -0
- package/node_modules/bun-ffi-structs/package.json +47 -0
- package/node_modules/caniuse-lite/LICENSE +395 -0
- package/node_modules/caniuse-lite/README.md +3 -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/cross-document-view-transitions.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-anchor-positioning.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-lanes.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-if.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-module-scripts.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-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/customizable-select.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/loading-lazy-media.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-backdrop-pseudo-element.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-bigint.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -0
- package/node_modules/caniuse-lite/data/features/wasm-threads.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/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/data/versionGroups.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 +81 -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/dist/unpacker/versionGroups.js +1 -0
- package/node_modules/caniuse-lite/package.json +34 -0
- package/node_modules/convert-source-map/LICENSE +23 -0
- package/node_modules/convert-source-map/README.md +206 -0
- package/node_modules/convert-source-map/index.js +233 -0
- package/node_modules/convert-source-map/package.json +38 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/diff/CONTRIBUTING.md +28 -0
- package/node_modules/diff/LICENSE +29 -0
- package/node_modules/diff/README.md +468 -0
- package/node_modules/diff/dist/diff.js +2313 -0
- package/node_modules/diff/dist/diff.min.js +1 -0
- package/node_modules/diff/eslint.config.mjs +182 -0
- package/node_modules/diff/libcjs/convert/dmp.d.ts +8 -0
- package/node_modules/diff/libcjs/convert/dmp.d.ts.map +1 -0
- package/node_modules/diff/libcjs/convert/dmp.js +24 -0
- package/node_modules/diff/libcjs/convert/xml.d.ts +6 -0
- package/node_modules/diff/libcjs/convert/xml.d.ts.map +1 -0
- package/node_modules/diff/libcjs/convert/xml.js +34 -0
- package/node_modules/diff/libcjs/diff/array.d.ts +19 -0
- package/node_modules/diff/libcjs/diff/array.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/array.js +23 -0
- package/node_modules/diff/libcjs/diff/base.d.ts +20 -0
- package/node_modules/diff/libcjs/diff/base.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/base.js +256 -0
- package/node_modules/diff/libcjs/diff/character.d.ts +19 -0
- package/node_modules/diff/libcjs/diff/character.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/character.js +14 -0
- package/node_modules/diff/libcjs/diff/css.d.ts +18 -0
- package/node_modules/diff/libcjs/diff/css.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/css.js +17 -0
- package/node_modules/diff/libcjs/diff/json.d.ts +24 -0
- package/node_modules/diff/libcjs/diff/json.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/json.js +86 -0
- package/node_modules/diff/libcjs/diff/line.d.ts +24 -0
- package/node_modules/diff/libcjs/diff/line.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/line.js +74 -0
- package/node_modules/diff/libcjs/diff/sentence.d.ts +21 -0
- package/node_modules/diff/libcjs/diff/sentence.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/sentence.js +50 -0
- package/node_modules/diff/libcjs/diff/word.d.ts +35 -0
- package/node_modules/diff/libcjs/diff/word.d.ts.map +1 -0
- package/node_modules/diff/libcjs/diff/word.js +289 -0
- package/node_modules/diff/libcjs/index.d.ts +20 -0
- package/node_modules/diff/libcjs/index.d.ts.map +1 -0
- package/node_modules/diff/libcjs/index.js +67 -0
- package/node_modules/diff/libcjs/package.json +1 -0
- package/node_modules/diff/libcjs/patch/apply.d.ts +62 -0
- package/node_modules/diff/libcjs/patch/apply.d.ts.map +1 -0
- package/node_modules/diff/libcjs/patch/apply.js +264 -0
- package/node_modules/diff/libcjs/patch/create.d.ts +131 -0
- package/node_modules/diff/libcjs/patch/create.d.ts.map +1 -0
- package/node_modules/diff/libcjs/patch/create.js +364 -0
- package/node_modules/diff/libcjs/patch/line-endings.d.ts +17 -0
- package/node_modules/diff/libcjs/patch/line-endings.d.ts.map +1 -0
- package/node_modules/diff/libcjs/patch/line-endings.js +50 -0
- package/node_modules/diff/libcjs/patch/parse.d.ts +16 -0
- package/node_modules/diff/libcjs/patch/parse.d.ts.map +1 -0
- package/node_modules/diff/libcjs/patch/parse.js +515 -0
- package/node_modules/diff/libcjs/patch/reverse.d.ts +22 -0
- package/node_modules/diff/libcjs/patch/reverse.d.ts.map +1 -0
- package/node_modules/diff/libcjs/patch/reverse.js +63 -0
- package/node_modules/diff/libcjs/types.d.ts +260 -0
- package/node_modules/diff/libcjs/types.d.ts.map +1 -0
- package/node_modules/diff/libcjs/types.js +2 -0
- package/node_modules/diff/libcjs/util/array.d.ts +3 -0
- package/node_modules/diff/libcjs/util/array.d.ts.map +1 -0
- package/node_modules/diff/libcjs/util/array.js +21 -0
- package/node_modules/diff/libcjs/util/distance-iterator.d.ts +2 -0
- package/node_modules/diff/libcjs/util/distance-iterator.d.ts.map +1 -0
- package/node_modules/diff/libcjs/util/distance-iterator.js +40 -0
- package/node_modules/diff/libcjs/util/params.d.ts +4 -0
- package/node_modules/diff/libcjs/util/params.d.ts.map +1 -0
- package/node_modules/diff/libcjs/util/params.js +17 -0
- package/node_modules/diff/libcjs/util/string.d.ts +30 -0
- package/node_modules/diff/libcjs/util/string.d.ts.map +1 -0
- package/node_modules/diff/libcjs/util/string.js +199 -0
- package/node_modules/diff/libesm/convert/dmp.d.ts +8 -0
- package/node_modules/diff/libesm/convert/dmp.d.ts.map +1 -0
- package/node_modules/diff/libesm/convert/dmp.js +21 -0
- package/node_modules/diff/libesm/convert/xml.d.ts +6 -0
- package/node_modules/diff/libesm/convert/xml.d.ts.map +1 -0
- package/node_modules/diff/libesm/convert/xml.js +31 -0
- package/node_modules/diff/libesm/diff/array.d.ts +19 -0
- package/node_modules/diff/libesm/diff/array.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/array.js +16 -0
- package/node_modules/diff/libesm/diff/base.d.ts +20 -0
- package/node_modules/diff/libesm/diff/base.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/base.js +253 -0
- package/node_modules/diff/libesm/diff/character.d.ts +19 -0
- package/node_modules/diff/libesm/diff/character.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/character.js +7 -0
- package/node_modules/diff/libesm/diff/css.d.ts +18 -0
- package/node_modules/diff/libesm/diff/css.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/css.js +10 -0
- package/node_modules/diff/libesm/diff/json.d.ts +24 -0
- package/node_modules/diff/libesm/diff/json.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/json.js +78 -0
- package/node_modules/diff/libesm/diff/line.d.ts +24 -0
- package/node_modules/diff/libesm/diff/line.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/line.js +65 -0
- package/node_modules/diff/libesm/diff/sentence.d.ts +21 -0
- package/node_modules/diff/libesm/diff/sentence.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/sentence.js +43 -0
- package/node_modules/diff/libesm/diff/word.d.ts +35 -0
- package/node_modules/diff/libesm/diff/word.d.ts.map +1 -0
- package/node_modules/diff/libesm/diff/word.js +281 -0
- package/node_modules/diff/libesm/index.d.ts +20 -0
- package/node_modules/diff/libesm/index.d.ts.map +1 -0
- package/node_modules/diff/libesm/index.js +30 -0
- package/node_modules/diff/libesm/package.json +1 -0
- package/node_modules/diff/libesm/patch/apply.d.ts +62 -0
- package/node_modules/diff/libesm/patch/apply.d.ts.map +1 -0
- package/node_modules/diff/libesm/patch/apply.js +257 -0
- package/node_modules/diff/libesm/patch/create.d.ts +131 -0
- package/node_modules/diff/libesm/patch/create.d.ts.map +1 -0
- package/node_modules/diff/libesm/patch/create.js +357 -0
- package/node_modules/diff/libesm/patch/line-endings.d.ts +17 -0
- package/node_modules/diff/libesm/patch/line-endings.d.ts.map +1 -0
- package/node_modules/diff/libesm/patch/line-endings.js +44 -0
- package/node_modules/diff/libesm/patch/parse.d.ts +16 -0
- package/node_modules/diff/libesm/patch/parse.d.ts.map +1 -0
- package/node_modules/diff/libesm/patch/parse.js +512 -0
- package/node_modules/diff/libesm/patch/reverse.d.ts +22 -0
- package/node_modules/diff/libesm/patch/reverse.d.ts.map +1 -0
- package/node_modules/diff/libesm/patch/reverse.js +60 -0
- package/node_modules/diff/libesm/types.d.ts +260 -0
- package/node_modules/diff/libesm/types.d.ts.map +1 -0
- package/node_modules/diff/libesm/types.js +1 -0
- package/node_modules/diff/libesm/util/array.d.ts +3 -0
- package/node_modules/diff/libesm/util/array.d.ts.map +1 -0
- package/node_modules/diff/libesm/util/array.js +17 -0
- package/node_modules/diff/libesm/util/distance-iterator.d.ts +2 -0
- package/node_modules/diff/libesm/util/distance-iterator.d.ts.map +1 -0
- package/node_modules/diff/libesm/util/distance-iterator.js +37 -0
- package/node_modules/diff/libesm/util/params.d.ts +4 -0
- package/node_modules/diff/libesm/util/params.d.ts.map +1 -0
- package/node_modules/diff/libesm/util/params.js +14 -0
- package/node_modules/diff/libesm/util/string.d.ts +30 -0
- package/node_modules/diff/libesm/util/string.d.ts.map +1 -0
- package/node_modules/diff/libesm/util/string.js +184 -0
- package/node_modules/diff/package.json +130 -0
- package/node_modules/diff/release-notes.md +474 -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 +91 -0
- package/node_modules/electron-to-chromium/chromium-versions.json +1 -0
- package/node_modules/electron-to-chromium/full-chromium-versions.js +2892 -0
- package/node_modules/electron-to-chromium/full-chromium-versions.json +1 -0
- package/node_modules/electron-to-chromium/full-versions.js +1836 -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 +43 -0
- package/node_modules/electron-to-chromium/versions.js +263 -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 +107 -0
- package/node_modules/emoji-regex/index.d.ts +3 -0
- package/node_modules/emoji-regex/index.js +4 -0
- package/node_modules/emoji-regex/index.mjs +4 -0
- package/node_modules/emoji-regex/package.json +45 -0
- package/node_modules/entities/LICENSE +11 -0
- package/node_modules/entities/decode.d.ts +3 -0
- package/node_modules/entities/decode.js +3 -0
- package/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/node_modules/entities/dist/commonjs/decode.d.ts +205 -0
- package/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/encode.js +92 -0
- package/node_modules/entities/dist/commonjs/encode.js.map +1 -0
- package/node_modules/entities/dist/commonjs/escape.d.ts +46 -0
- package/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/escape.js +138 -0
- package/node_modules/entities/dist/commonjs/escape.js.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
- package/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/generated/encode-html.js +14 -0
- package/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
- package/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/index.js +131 -0
- package/node_modules/entities/dist/commonjs/index.js.map +1 -0
- package/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
- package/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +1 -0
- package/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
- package/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +1 -0
- package/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
- package/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +1 -0
- package/node_modules/entities/dist/commonjs/internal/encode-shared.js +94 -0
- package/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +1 -0
- package/node_modules/entities/dist/commonjs/package.json +3 -0
- package/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
- package/node_modules/entities/dist/esm/decode.d.ts +205 -0
- package/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/decode.js +554 -0
- package/node_modules/entities/dist/esm/decode.js.map +1 -0
- package/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/encode.js +88 -0
- package/node_modules/entities/dist/esm/encode.js.map +1 -0
- package/node_modules/entities/dist/esm/escape.d.ts +46 -0
- package/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/escape.js +134 -0
- package/node_modules/entities/dist/esm/escape.js.map +1 -0
- package/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -0
- package/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
- package/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/generated/decode-data-xml.js +4 -0
- package/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
- package/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
- package/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/generated/encode-html.js +11 -0
- package/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
- package/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/node_modules/entities/dist/esm/index.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/index.js +107 -0
- package/node_modules/entities/dist/esm/index.js.map +1 -0
- package/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
- package/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/internal/bin-trie-flags.js +18 -0
- package/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +1 -0
- package/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
- package/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/internal/decode-shared.js +28 -0
- package/node_modules/entities/dist/esm/internal/decode-shared.js.map +1 -0
- package/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
- package/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +1 -0
- package/node_modules/entities/dist/esm/internal/encode-shared.js +91 -0
- package/node_modules/entities/dist/esm/internal/encode-shared.js.map +1 -0
- package/node_modules/entities/dist/esm/package.json +3 -0
- package/node_modules/entities/escape.d.ts +3 -0
- package/node_modules/entities/escape.js +3 -0
- package/node_modules/entities/package.json +120 -0
- package/node_modules/entities/readme.md +143 -0
- package/node_modules/entities/src/decode-codepoint.ts +81 -0
- package/node_modules/entities/src/decode.ts +685 -0
- package/node_modules/entities/src/encode.ts +93 -0
- package/node_modules/entities/src/escape.ts +161 -0
- package/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/node_modules/entities/src/generated/decode-data-html.ts +6 -0
- package/node_modules/entities/src/generated/decode-data-xml.ts +6 -0
- package/node_modules/entities/src/generated/encode-html.ts +17 -0
- package/node_modules/entities/src/index.ts +187 -0
- package/node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
- package/node_modules/entities/src/internal/decode-shared.ts +30 -0
- package/node_modules/entities/src/internal/encode-shared.ts +121 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -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.mts +11 -0
- package/node_modules/escalade/index.d.ts +15 -0
- package/node_modules/escalade/license +9 -0
- package/node_modules/escalade/package.json +74 -0
- package/node_modules/escalade/readme.md +211 -0
- package/node_modules/escalade/sync/index.d.mts +9 -0
- package/node_modules/escalade/sync/index.d.ts +13 -0
- package/node_modules/escalade/sync/index.js +18 -0
- package/node_modules/escalade/sync/index.mjs +18 -0
- package/node_modules/find-babel-config/.babelrc +10 -0
- package/node_modules/find-babel-config/.eslintrc +13 -0
- package/node_modules/find-babel-config/.github/workflows/test.yml +32 -0
- package/node_modules/find-babel-config/CHANGELOG.md +99 -0
- package/node_modules/find-babel-config/LICENSE.md +21 -0
- package/node_modules/find-babel-config/README.md +57 -0
- package/node_modules/find-babel-config/package.json +51 -0
- package/node_modules/find-babel-config/src/index.js +173 -0
- package/node_modules/find-up/index.js +46 -0
- package/node_modules/find-up/license +9 -0
- package/node_modules/find-up/package.json +50 -0
- package/node_modules/find-up/readme.md +87 -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/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -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-east-asian-width/index.d.ts +60 -0
- package/node_modules/get-east-asian-width/index.js +30 -0
- package/node_modules/get-east-asian-width/license +9 -0
- package/node_modules/get-east-asian-width/lookup-data.js +21 -0
- package/node_modules/get-east-asian-width/lookup.js +138 -0
- package/node_modules/get-east-asian-width/package.json +71 -0
- package/node_modules/get-east-asian-width/readme.md +65 -0
- package/node_modules/get-east-asian-width/utilities.js +24 -0
- package/node_modules/glob/LICENSE +15 -0
- package/node_modules/glob/README.md +1086 -0
- package/node_modules/glob/dist/cjs/glob.d.ts +333 -0
- package/node_modules/glob/dist/cjs/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/cjs/glob.js +229 -0
- package/node_modules/glob/dist/cjs/glob.js.map +1 -0
- package/node_modules/glob/dist/cjs/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/cjs/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/cjs/has-magic.js +27 -0
- package/node_modules/glob/dist/cjs/has-magic.js.map +1 -0
- package/node_modules/glob/dist/cjs/ignore.d.ts +20 -0
- package/node_modules/glob/dist/cjs/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/cjs/ignore.js +103 -0
- package/node_modules/glob/dist/cjs/ignore.js.map +1 -0
- package/node_modules/glob/dist/cjs/index-cjs.d.ts +75 -0
- package/node_modules/glob/dist/cjs/index-cjs.d.ts.map +1 -0
- package/node_modules/glob/dist/cjs/index-cjs.js +7 -0
- package/node_modules/glob/dist/cjs/index-cjs.js.map +1 -0
- package/node_modules/glob/dist/cjs/index.d.ts +96 -0
- package/node_modules/glob/dist/cjs/index.d.ts.map +1 -0
- package/node_modules/glob/dist/cjs/index.js +68 -0
- package/node_modules/glob/dist/cjs/index.js.map +1 -0
- package/node_modules/glob/dist/cjs/package.json +3 -0
- package/node_modules/glob/dist/cjs/pattern.d.ts +77 -0
- package/node_modules/glob/dist/cjs/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/cjs/pattern.js +219 -0
- package/node_modules/glob/dist/cjs/pattern.js.map +1 -0
- package/node_modules/glob/dist/cjs/processor.d.ts +59 -0
- package/node_modules/glob/dist/cjs/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/cjs/processor.js +309 -0
- package/node_modules/glob/dist/cjs/processor.js.map +1 -0
- package/node_modules/glob/dist/cjs/walker.d.ts +95 -0
- package/node_modules/glob/dist/cjs/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/cjs/walker.js +360 -0
- package/node_modules/glob/dist/cjs/walker.js.map +1 -0
- package/node_modules/glob/dist/mjs/glob.d.ts +333 -0
- package/node_modules/glob/dist/mjs/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/mjs/glob.js +225 -0
- package/node_modules/glob/dist/mjs/glob.js.map +1 -0
- package/node_modules/glob/dist/mjs/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/mjs/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/mjs/has-magic.js +23 -0
- package/node_modules/glob/dist/mjs/has-magic.js.map +1 -0
- package/node_modules/glob/dist/mjs/ignore.d.ts +20 -0
- package/node_modules/glob/dist/mjs/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/mjs/ignore.js +99 -0
- package/node_modules/glob/dist/mjs/ignore.js.map +1 -0
- package/node_modules/glob/dist/mjs/index.d.ts +96 -0
- package/node_modules/glob/dist/mjs/index.d.ts.map +1 -0
- package/node_modules/glob/dist/mjs/index.js +55 -0
- package/node_modules/glob/dist/mjs/index.js.map +1 -0
- package/node_modules/glob/dist/mjs/package.json +3 -0
- package/node_modules/glob/dist/mjs/pattern.d.ts +77 -0
- package/node_modules/glob/dist/mjs/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/mjs/pattern.js +215 -0
- package/node_modules/glob/dist/mjs/pattern.js.map +1 -0
- package/node_modules/glob/dist/mjs/processor.d.ts +59 -0
- package/node_modules/glob/dist/mjs/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/mjs/processor.js +302 -0
- package/node_modules/glob/dist/mjs/processor.js.map +1 -0
- package/node_modules/glob/dist/mjs/walker.d.ts +95 -0
- package/node_modules/glob/dist/mjs/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/mjs/walker.js +351 -0
- package/node_modules/glob/dist/mjs/walker.js.map +1 -0
- package/node_modules/glob/package.json +97 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +58 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/html-entities/LICENSE +19 -0
- package/node_modules/html-entities/README.md +213 -0
- package/node_modules/html-entities/lib/index.d.ts +20 -0
- package/node_modules/html-entities/lib/index.js +198 -0
- package/node_modules/html-entities/lib/index.js.flow +51 -0
- package/node_modules/html-entities/lib/named-references.js +1 -0
- package/node_modules/html-entities/lib/numeric-unicode-map.js +1 -0
- package/node_modules/html-entities/lib/surrogate-pairs.js +1 -0
- package/node_modules/html-entities/package.json +73 -0
- package/node_modules/is-core-module/.eslintrc +18 -0
- package/node_modules/is-core-module/.nycrc +9 -0
- package/node_modules/is-core-module/CHANGELOG.md +349 -0
- package/node_modules/is-core-module/LICENSE +20 -0
- package/node_modules/is-core-module/README.md +40 -0
- package/node_modules/is-core-module/core.json +162 -0
- package/node_modules/is-core-module/index.js +69 -0
- package/node_modules/is-core-module/package.json +76 -0
- package/node_modules/is-core-module/test/index.js +258 -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/jsesc/LICENSE-MIT.txt +20 -0
- package/node_modules/jsesc/README.md +422 -0
- package/node_modules/jsesc/bin/jsesc +148 -0
- package/node_modules/jsesc/jsesc.js +337 -0
- package/node_modules/jsesc/man/jsesc.1 +94 -0
- package/node_modules/jsesc/package.json +56 -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.js +24 -0
- package/node_modules/locate-path/license +9 -0
- package/node_modules/locate-path/package.json +44 -0
- package/node_modules/locate-path/readme.md +99 -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/marked/LICENSE.md +44 -0
- package/node_modules/marked/README.md +107 -0
- package/node_modules/marked/bin/main.js +283 -0
- package/node_modules/marked/bin/marked.js +16 -0
- package/node_modules/marked/lib/marked.d.ts +756 -0
- package/node_modules/marked/lib/marked.esm.js +72 -0
- package/node_modules/marked/lib/marked.esm.js.map +7 -0
- package/node_modules/marked/lib/marked.umd.js +74 -0
- package/node_modules/marked/lib/marked.umd.js.map +7 -0
- package/node_modules/marked/man/marked.1 +113 -0
- package/node_modules/marked/man/marked.1.md +93 -0
- package/node_modules/marked/package.json +103 -0
- package/node_modules/minimatch/LICENSE +15 -0
- package/node_modules/minimatch/README.md +496 -0
- package/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +2 -0
- package/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +14 -0
- package/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +1 -0
- package/node_modules/minimatch/dist/cjs/ast.d.ts +25 -0
- package/node_modules/minimatch/dist/cjs/ast.d.ts.map +1 -0
- package/node_modules/minimatch/dist/cjs/ast.js +719 -0
- package/node_modules/minimatch/dist/cjs/ast.js.map +1 -0
- package/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +8 -0
- package/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +1 -0
- package/node_modules/minimatch/dist/cjs/brace-expressions.js +152 -0
- package/node_modules/minimatch/dist/cjs/brace-expressions.js.map +1 -0
- package/node_modules/minimatch/dist/cjs/escape.d.ts +12 -0
- package/node_modules/minimatch/dist/cjs/escape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/cjs/escape.js +22 -0
- package/node_modules/minimatch/dist/cjs/escape.js.map +1 -0
- package/node_modules/minimatch/dist/cjs/index-cjs.d.ts +45 -0
- package/node_modules/minimatch/dist/cjs/index-cjs.d.ts.map +1 -0
- package/node_modules/minimatch/dist/cjs/index-cjs.js +7 -0
- package/node_modules/minimatch/dist/cjs/index-cjs.js.map +1 -0
- package/node_modules/minimatch/dist/cjs/index.d.ts +99 -0
- package/node_modules/minimatch/dist/cjs/index.d.ts.map +1 -0
- package/node_modules/minimatch/dist/cjs/index.js +1025 -0
- package/node_modules/minimatch/dist/cjs/index.js.map +1 -0
- package/node_modules/minimatch/dist/cjs/package.json +3 -0
- package/node_modules/minimatch/dist/cjs/unescape.d.ts +17 -0
- package/node_modules/minimatch/dist/cjs/unescape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/cjs/unescape.js +24 -0
- package/node_modules/minimatch/dist/cjs/unescape.js.map +1 -0
- package/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +2 -0
- package/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +10 -0
- package/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +1 -0
- package/node_modules/minimatch/dist/mjs/ast.d.ts +25 -0
- package/node_modules/minimatch/dist/mjs/ast.d.ts.map +1 -0
- package/node_modules/minimatch/dist/mjs/ast.js +715 -0
- package/node_modules/minimatch/dist/mjs/ast.js.map +1 -0
- package/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +8 -0
- package/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +1 -0
- package/node_modules/minimatch/dist/mjs/brace-expressions.js +148 -0
- package/node_modules/minimatch/dist/mjs/brace-expressions.js.map +1 -0
- package/node_modules/minimatch/dist/mjs/escape.d.ts +12 -0
- package/node_modules/minimatch/dist/mjs/escape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/mjs/escape.js +18 -0
- package/node_modules/minimatch/dist/mjs/escape.js.map +1 -0
- package/node_modules/minimatch/dist/mjs/index.d.ts +99 -0
- package/node_modules/minimatch/dist/mjs/index.d.ts.map +1 -0
- package/node_modules/minimatch/dist/mjs/index.js +1009 -0
- package/node_modules/minimatch/dist/mjs/index.js.map +1 -0
- package/node_modules/minimatch/dist/mjs/package.json +3 -0
- package/node_modules/minimatch/dist/mjs/unescape.d.ts +17 -0
- package/node_modules/minimatch/dist/mjs/unescape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/mjs/unescape.js +20 -0
- package/node_modules/minimatch/dist/mjs/unescape.js.map +1 -0
- package/node_modules/minimatch/package.json +89 -0
- package/node_modules/minipass/LICENSE +15 -0
- package/node_modules/minipass/README.md +769 -0
- package/node_modules/minipass/index.d.ts +150 -0
- package/node_modules/minipass/index.js +702 -0
- package/node_modules/minipass/index.mjs +702 -0
- package/node_modules/minipass/package.json +79 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/node-releases/LICENSE +21 -0
- package/node_modules/node-releases/README.md +32 -0
- package/node_modules/node-releases/data/processed/envs.json +2970 -0
- package/node_modules/node-releases/data/release-schedule/release-schedule.json +160 -0
- package/node_modules/node-releases/package.json +28 -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.js +34 -0
- package/node_modules/p-locate/license +9 -0
- package/node_modules/p-locate/package.json +51 -0
- package/node_modules/p-locate/readme.md +88 -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/parse5/LICENSE +19 -0
- package/node_modules/parse5/README.md +38 -0
- package/node_modules/parse5/dist/cjs/common/doctype.d.ts +4 -0
- package/node_modules/parse5/dist/cjs/common/doctype.js +118 -0
- package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +67 -0
- package/node_modules/parse5/dist/cjs/common/error-codes.js +66 -0
- package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +9 -0
- package/node_modules/parse5/dist/cjs/common/foreign-content.js +237 -0
- package/node_modules/parse5/dist/cjs/common/html.d.ts +289 -0
- package/node_modules/parse5/dist/cjs/common/html.js +528 -0
- package/node_modules/parse5/dist/cjs/common/token.d.ts +84 -0
- package/node_modules/parse5/dist/cjs/common/token.js +24 -0
- package/node_modules/parse5/dist/cjs/common/unicode.d.ts +42 -0
- package/node_modules/parse5/dist/cjs/common/unicode.js +70 -0
- package/node_modules/parse5/dist/cjs/index.d.ts +71 -0
- package/node_modules/parse5/dist/cjs/index.js +54 -0
- package/node_modules/parse5/dist/cjs/package.json +1 -0
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +36 -0
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +114 -0
- package/node_modules/parse5/dist/cjs/parser/index.d.ts +221 -0
- package/node_modules/parse5/dist/cjs/parser/index.js +3240 -0
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +53 -0
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +328 -0
- package/node_modules/parse5/dist/cjs/serializer/index.d.ts +60 -0
- package/node_modules/parse5/dist/cjs/serializer/index.js +172 -0
- package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +247 -0
- package/node_modules/parse5/dist/cjs/tokenizer/index.js +2714 -0
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +36 -0
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +200 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +84 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/default.js +176 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +255 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +2 -0
- package/node_modules/parse5/dist/common/doctype.d.ts +4 -0
- package/node_modules/parse5/dist/common/doctype.js +114 -0
- package/node_modules/parse5/dist/common/error-codes.d.ts +67 -0
- package/node_modules/parse5/dist/common/error-codes.js +63 -0
- package/node_modules/parse5/dist/common/foreign-content.d.ts +9 -0
- package/node_modules/parse5/dist/common/foreign-content.js +228 -0
- package/node_modules/parse5/dist/common/html.d.ts +289 -0
- package/node_modules/parse5/dist/common/html.js +523 -0
- package/node_modules/parse5/dist/common/token.d.ts +84 -0
- package/node_modules/parse5/dist/common/token.js +20 -0
- package/node_modules/parse5/dist/common/unicode.d.ts +42 -0
- package/node_modules/parse5/dist/common/unicode.js +62 -0
- package/node_modules/parse5/dist/index.d.ts +71 -0
- package/node_modules/parse5/dist/index.js +42 -0
- package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +36 -0
- package/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
- package/node_modules/parse5/dist/parser/index.d.ts +221 -0
- package/node_modules/parse5/dist/parser/index.js +3245 -0
- package/node_modules/parse5/dist/parser/open-element-stack.d.ts +53 -0
- package/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
- package/node_modules/parse5/dist/serializer/index.d.ts +60 -0
- package/node_modules/parse5/dist/serializer/index.js +168 -0
- package/node_modules/parse5/dist/tokenizer/index.d.ts +247 -0
- package/node_modules/parse5/dist/tokenizer/index.js +2710 -0
- package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +36 -0
- package/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
- package/node_modules/parse5/dist/tree-adapters/default.d.ts +84 -0
- package/node_modules/parse5/dist/tree-adapters/default.js +173 -0
- package/node_modules/parse5/dist/tree-adapters/interface.d.ts +255 -0
- package/node_modules/parse5/dist/tree-adapters/interface.js +1 -0
- package/node_modules/parse5/node_modules/entities/LICENSE +11 -0
- package/node_modules/parse5/node_modules/entities/decode.d.ts +1 -0
- package/node_modules/parse5/node_modules/entities/decode.js +3 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts +209 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js +511 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js +73 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts +43 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js +121 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js +10 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +10 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +8 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js +13 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js +131 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/package.json +3 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts +209 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.js +497 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.js +69 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts +43 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.js +117 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js +7 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts +8 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js +10 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.js +107 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/package.json +3 -0
- package/node_modules/parse5/node_modules/entities/escape.d.ts +1 -0
- package/node_modules/parse5/node_modules/entities/escape.js +3 -0
- package/node_modules/parse5/node_modules/entities/package.json +118 -0
- package/node_modules/parse5/node_modules/entities/readme.md +122 -0
- package/node_modules/parse5/node_modules/entities/src/decode-codepoint.ts +81 -0
- package/node_modules/parse5/node_modules/entities/src/decode.spec.ts +320 -0
- package/node_modules/parse5/node_modules/entities/src/decode.ts +620 -0
- package/node_modules/parse5/node_modules/entities/src/encode.spec.ts +78 -0
- package/node_modules/parse5/node_modules/entities/src/encode.ts +77 -0
- package/node_modules/parse5/node_modules/entities/src/escape.spec.ts +14 -0
- package/node_modules/parse5/node_modules/entities/src/escape.ts +148 -0
- package/node_modules/parse5/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/node_modules/parse5/node_modules/entities/src/generated/decode-data-html.ts +8 -0
- package/node_modules/parse5/node_modules/entities/src/generated/decode-data-xml.ts +8 -0
- package/node_modules/parse5/node_modules/entities/src/generated/encode-html.ts +17 -0
- package/node_modules/parse5/node_modules/entities/src/index.spec.ts +125 -0
- package/node_modules/parse5/node_modules/entities/src/index.ts +188 -0
- package/node_modules/parse5/package.json +50 -0
- package/node_modules/path-exists/index.js +17 -0
- package/node_modules/path-exists/license +21 -0
- package/node_modules/path-exists/package.json +40 -0
- package/node_modules/path-exists/readme.md +50 -0
- package/node_modules/path-parse/LICENSE +21 -0
- package/node_modules/path-parse/README.md +42 -0
- package/node_modules/path-parse/index.js +75 -0
- package/node_modules/path-parse/package.json +33 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/README.md +636 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts +1116 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
- package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts +1116 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/esm/index.js +1979 -0
- package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/LICENSE +15 -0
- package/node_modules/path-scurry/node_modules/lru-cache/README.md +331 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.d.ts +1277 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts +1277 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/package.json +116 -0
- package/node_modules/path-scurry/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/path-scurry/node_modules/minipass/README.md +825 -0
- package/node_modules/path-scurry/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
- package/node_modules/path-scurry/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/path-scurry/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/node_modules/minipass/dist/esm/index.d.ts +545 -0
- package/node_modules/path-scurry/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/path-scurry/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/minipass/package.json +77 -0
- package/node_modules/path-scurry/package.json +89 -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 +75 -0
- package/node_modules/picocolors/types.d.ts +51 -0
- package/node_modules/pkg-up/index.d.ts +48 -0
- package/node_modules/pkg-up/index.js +5 -0
- package/node_modules/pkg-up/license +9 -0
- package/node_modules/pkg-up/package.json +52 -0
- package/node_modules/pkg-up/readme.md +68 -0
- package/node_modules/reselect/LICENSE +21 -0
- package/node_modules/reselect/README.md +658 -0
- package/node_modules/reselect/dist/reselect.js +291 -0
- package/node_modules/reselect/dist/reselect.min.js +1 -0
- package/node_modules/reselect/es/defaultMemoize.d.ts +11 -0
- package/node_modules/reselect/es/defaultMemoize.js +147 -0
- package/node_modules/reselect/es/index.d.ts +48 -0
- package/node_modules/reselect/es/index.js +130 -0
- package/node_modules/reselect/es/types.d.ts +142 -0
- package/node_modules/reselect/es/versionedTypes/index.d.ts +1 -0
- package/node_modules/reselect/es/versionedTypes/package.json +14 -0
- package/node_modules/reselect/es/versionedTypes/ts46-mergeParameters.d.ts +61 -0
- package/node_modules/reselect/es/versionedTypes/ts47-mergeParameters.d.ts +24 -0
- package/node_modules/reselect/lib/defaultMemoize.js +159 -0
- package/node_modules/reselect/lib/index.js +155 -0
- package/node_modules/reselect/package.json +94 -0
- package/node_modules/reselect/src/defaultMemoize.ts +171 -0
- package/node_modules/reselect/src/index.ts +268 -0
- package/node_modules/reselect/src/legacyTypes/ts4.1/index.d.ts +3325 -0
- package/node_modules/reselect/src/types.ts +305 -0
- package/node_modules/reselect/src/versionedTypes/index.ts +1 -0
- package/node_modules/reselect/src/versionedTypes/package.dist.json +14 -0
- package/node_modules/reselect/src/versionedTypes/ts46-mergeParameters.ts +171 -0
- package/node_modules/reselect/src/versionedTypes/ts47-mergeParameters.ts +66 -0
- package/node_modules/resolve/.claude/notes.md +26 -0
- package/node_modules/resolve/.claude/settings.local.json +26 -0
- package/node_modules/resolve/.editorconfig +38 -0
- package/node_modules/resolve/.eslintrc +65 -0
- package/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +119 -0
- package/node_modules/resolve/.github/THREAT_MODEL.md +74 -0
- package/node_modules/resolve/LICENSE +21 -0
- package/node_modules/resolve/SECURITY.md +13 -0
- package/node_modules/resolve/async.js +3 -0
- package/node_modules/resolve/bin/resolve +50 -0
- package/node_modules/resolve/eslint.config.mjs +80 -0
- package/node_modules/resolve/example/async.js +5 -0
- package/node_modules/resolve/example/sync.js +3 -0
- package/node_modules/resolve/index.js +6 -0
- package/node_modules/resolve/lib/async.js +336 -0
- package/node_modules/resolve/lib/caller.js +12 -0
- package/node_modules/resolve/lib/core.js +12 -0
- package/node_modules/resolve/lib/core.json +162 -0
- package/node_modules/resolve/lib/homedir.js +31 -0
- package/node_modules/resolve/lib/is-core.js +5 -0
- package/node_modules/resolve/lib/node-modules-paths.js +45 -0
- package/node_modules/resolve/lib/normalize-options.js +10 -0
- package/node_modules/resolve/lib/sync.js +216 -0
- package/node_modules/resolve/package.json +78 -0
- package/node_modules/resolve/readme.markdown +300 -0
- package/node_modules/resolve/sync.js +3 -0
- package/node_modules/resolve/test/core.js +88 -0
- package/node_modules/resolve/test/default_paths.js +49 -0
- package/node_modules/resolve/test/dotdot/abc/index.js +2 -0
- package/node_modules/resolve/test/dotdot/index.js +1 -0
- package/node_modules/resolve/test/dotdot.js +29 -0
- package/node_modules/resolve/test/faulty_basedir.js +29 -0
- package/node_modules/resolve/test/filter.js +34 -0
- package/node_modules/resolve/test/filter_sync.js +33 -0
- package/node_modules/resolve/test/home_paths.js +127 -0
- package/node_modules/resolve/test/home_paths_sync.js +114 -0
- package/node_modules/resolve/test/homedir.js +112 -0
- package/node_modules/resolve/test/mock.js +353 -0
- package/node_modules/resolve/test/mock_sync.js +234 -0
- package/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
- package/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
- package/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
- package/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
- package/node_modules/resolve/test/module_dir.js +56 -0
- package/node_modules/resolve/test/node-modules-paths.js +143 -0
- package/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
- package/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
- package/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
- package/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
- package/node_modules/resolve/test/node_path.js +70 -0
- package/node_modules/resolve/test/nonstring.js +9 -0
- package/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/node_modules/resolve/test/pathfilter.js +75 -0
- package/node_modules/resolve/test/pathfilter_sync.js +24 -0
- package/node_modules/resolve/test/precedence/aaa/index.js +1 -0
- package/node_modules/resolve/test/precedence/aaa/main.js +1 -0
- package/node_modules/resolve/test/precedence/aaa.js +1 -0
- package/node_modules/resolve/test/precedence/bbb/main.js +1 -0
- package/node_modules/resolve/test/precedence/bbb.js +1 -0
- package/node_modules/resolve/test/precedence.js +23 -0
- package/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/node_modules/resolve/test/resolver/baz/package.json +4 -0
- package/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- package/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- package/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- package/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
- package/node_modules/resolve/test/resolver/cup.coffee +1 -0
- package/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
- package/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
- package/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
- package/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
- package/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/node_modules/resolve/test/resolver/false_main/package.json +4 -0
- package/node_modules/resolve/test/resolver/foo.js +1 -0
- package/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- package/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- package/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
- package/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/node_modules/resolve/test/resolver/mug.js +0 -0
- package/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
- package/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- package/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
- package/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
- package/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- package/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
- package/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
- package/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- package/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- package/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
- package/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
- package/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
- package/node_modules/resolve/test/resolver.js +597 -0
- package/node_modules/resolve/test/resolver_sync.js +730 -0
- package/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- package/node_modules/resolve/test/shadowed_core.js +54 -0
- package/node_modules/resolve/test/subdirs.js +13 -0
- package/node_modules/resolve/test/symlinks.js +176 -0
- package/node_modules/s-js/.gitattributes +1 -0
- package/node_modules/s-js/.vscode/settings.json +5 -0
- package/node_modules/s-js/LICENSE +21 -0
- package/node_modules/s-js/README.md +487 -0
- package/node_modules/s-js/bench/bench-after-default-compat.txt +22 -0
- package/node_modules/s-js/bench/bench-after-exported-nodes.txt +22 -0
- package/node_modules/s-js/bench/bench-after-last-swap.txt +22 -0
- package/node_modules/s-js/bench/bench-before-default-compat.txt +22 -0
- package/node_modules/s-js/bench/bench-before-exported-nodes.txt +22 -0
- package/node_modules/s-js/bench/bench-before-last-swap.txt +22 -0
- package/node_modules/s-js/bench/bench-inline-1st-node.txt +0 -0
- package/node_modules/s-js/bench/bench-log-01n.txt +0 -0
- package/node_modules/s-js/bench/bench-negative-count.txt +0 -0
- package/node_modules/s-js/bench/bench-post-inline-queue-run.txt +0 -0
- package/node_modules/s-js/bench/bench-post-sources-01n-isArray.txt +0 -0
- package/node_modules/s-js/bench/bench-post-sources-01n.txt +0 -0
- package/node_modules/s-js/bench/bench-pre-inline-queue-run.txt +0 -0
- package/node_modules/s-js/bench/bench.html +2 -0
- package/node_modules/s-js/bench/bench.js +312 -0
- package/node_modules/s-js/bench/benchNode.js +312 -0
- package/node_modules/s-js/bench/create-pre-sources-01n.txt +0 -0
- package/node_modules/s-js/dist/S.js +487 -0
- package/node_modules/s-js/dist/es/S.d.ts +37 -0
- package/node_modules/s-js/dist/es/S.js +478 -0
- package/node_modules/s-js/dist/es/withsubclocks.d.ts +20 -0
- package/node_modules/s-js/dist/es/withsubclocks.js +650 -0
- package/node_modules/s-js/dist/withsubclocks.js +659 -0
- package/node_modules/s-js/karma.conf.js +69 -0
- package/node_modules/s-js/package.json +38 -0
- package/node_modules/s-js/spec/S.data.spec.js +54 -0
- package/node_modules/s-js/spec/S.dispose.spec.js +66 -0
- package/node_modules/s-js/spec/S.exceptions.spec.js +61 -0
- package/node_modules/s-js/spec/S.freeze.spec.js +26 -0
- package/node_modules/s-js/spec/S.mutation.spec.js +75 -0
- package/node_modules/s-js/spec/S.on.spec.js +97 -0
- package/node_modules/s-js/spec/S.root.spec.js +79 -0
- package/node_modules/s-js/spec/S.sample.spec.js +23 -0
- package/node_modules/s-js/spec/S.spec.js +367 -0
- package/node_modules/s-js/spec/S.subclock.spec.js +269 -0
- package/node_modules/s-js/spec/S.subcomputations.spec.js +128 -0
- package/node_modules/s-js/spec/S.value.spec.js +56 -0
- package/node_modules/s-js/spec/support/jasmine.json +11 -0
- package/node_modules/s-js/spec/support/loadS.js +3 -0
- package/node_modules/s-js/src/S.ts +598 -0
- package/node_modules/s-js/src/withsubclocks.ts +749 -0
- package/node_modules/s-js/tsconfig.json +13 -0
- package/node_modules/s-js/txt/bottomup.md +93 -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/string-width/index.d.ts +39 -0
- package/node_modules/string-width/index.js +82 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +64 -0
- package/node_modules/string-width/readme.md +66 -0
- package/node_modules/strip-ansi/index.d.ts +15 -0
- package/node_modules/strip-ansi/index.js +14 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +59 -0
- package/node_modules/strip-ansi/readme.md +37 -0
- package/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
- package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
- package/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
- package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- package/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- package/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- package/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- package/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- package/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
- package/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/node_modules/update-browserslist-db/LICENSE +20 -0
- package/node_modules/update-browserslist-db/README.md +30 -0
- package/node_modules/update-browserslist-db/check-npm-version.js +17 -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 +347 -0
- package/node_modules/update-browserslist-db/package.json +40 -0
- package/node_modules/update-browserslist-db/utils.js +25 -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/package.json +19 -3
- package/src/cli-parser.ts +4 -2
- package/src/commands/act.ts +12 -14
|
@@ -0,0 +1,4360 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var SyntaxJSX = require('@babel/plugin-syntax-jsx');
|
|
4
|
+
var t = require('@babel/types');
|
|
5
|
+
var helperModuleImports = require('@babel/helper-module-imports');
|
|
6
|
+
var htmlEntities = require('html-entities');
|
|
7
|
+
|
|
8
|
+
function _interopNamespaceDefault(e) {
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var t__namespace = /*#__PURE__*/_interopNamespaceDefault(t);
|
|
26
|
+
|
|
27
|
+
// list of lowercase booleans
|
|
28
|
+
const booleans = [
|
|
29
|
+
"allowfullscreen",
|
|
30
|
+
"async",
|
|
31
|
+
"alpha", // HTMLInputElement
|
|
32
|
+
"autofocus", // HTMLElement prop
|
|
33
|
+
"autoplay",
|
|
34
|
+
"checked",
|
|
35
|
+
"controls",
|
|
36
|
+
"default",
|
|
37
|
+
"disabled",
|
|
38
|
+
"formnovalidate",
|
|
39
|
+
"hidden", // HTMLElement prop - not a boolean
|
|
40
|
+
"indeterminate",
|
|
41
|
+
"inert", // HTMLElement prop
|
|
42
|
+
"ismap",
|
|
43
|
+
"loop",
|
|
44
|
+
"multiple",
|
|
45
|
+
"muted",
|
|
46
|
+
"nomodule",
|
|
47
|
+
"novalidate",
|
|
48
|
+
"open",
|
|
49
|
+
"playsinline",
|
|
50
|
+
"readonly",
|
|
51
|
+
"required",
|
|
52
|
+
"reversed",
|
|
53
|
+
"seamless", // HTMLIframeElement - non-standard
|
|
54
|
+
"selected",
|
|
55
|
+
|
|
56
|
+
"adauctionheaders", // experimental
|
|
57
|
+
"browsingtopics", // experimental
|
|
58
|
+
"credentialless", // experimental
|
|
59
|
+
"defaultchecked",
|
|
60
|
+
"defaultmuted",
|
|
61
|
+
"defaultselected",
|
|
62
|
+
"defer",
|
|
63
|
+
"disablepictureinpicture",
|
|
64
|
+
"disableremoteplayback",
|
|
65
|
+
"preservespitch", // appears as camelCase property only (not as attribute)
|
|
66
|
+
"shadowrootclonable",
|
|
67
|
+
"shadowrootcustomelementregistry", // experimental - doesnt seem to have a prop yet
|
|
68
|
+
"shadowrootdelegatesfocus",
|
|
69
|
+
"shadowrootserializable", // experimental
|
|
70
|
+
"sharedstoragewritable" // experimental
|
|
71
|
+
];
|
|
72
|
+
|
|
73
|
+
const BooleanAttributes = /*#__PURE__*/new Set(booleans);
|
|
74
|
+
|
|
75
|
+
const Properties = /*#__PURE__*/new Set([
|
|
76
|
+
// locked to properties
|
|
77
|
+
"className",
|
|
78
|
+
"value",
|
|
79
|
+
|
|
80
|
+
// booleans with camelCase
|
|
81
|
+
"readOnly",
|
|
82
|
+
"noValidate",
|
|
83
|
+
"formNoValidate",
|
|
84
|
+
"isMap",
|
|
85
|
+
"noModule",
|
|
86
|
+
"playsInline",
|
|
87
|
+
|
|
88
|
+
"adAuctionHeaders", // experimental
|
|
89
|
+
"allowFullscreen",
|
|
90
|
+
"browsingTopics", // experimental
|
|
91
|
+
"defaultChecked",
|
|
92
|
+
"defaultMuted",
|
|
93
|
+
"defaultSelected",
|
|
94
|
+
"disablePictureInPicture",
|
|
95
|
+
"disableRemotePlayback",
|
|
96
|
+
"preservesPitch",
|
|
97
|
+
"shadowRootClonable",
|
|
98
|
+
"shadowRootCustomElementRegistry", // experimental
|
|
99
|
+
"shadowRootDelegatesFocus",
|
|
100
|
+
"shadowRootSerializable", // experimental
|
|
101
|
+
"sharedStorageWritable", // experimental
|
|
102
|
+
|
|
103
|
+
...booleans]);
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
const ChildProperties = /*#__PURE__*/new Set([
|
|
107
|
+
"innerHTML",
|
|
108
|
+
"textContent",
|
|
109
|
+
"innerText",
|
|
110
|
+
"children"]);
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
// React Compat
|
|
114
|
+
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
115
|
+
className: "class",
|
|
116
|
+
htmlFor: "for"
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
120
|
+
// locked to properties
|
|
121
|
+
class: "className",
|
|
122
|
+
|
|
123
|
+
// booleans map
|
|
124
|
+
novalidate: {
|
|
125
|
+
$: "noValidate",
|
|
126
|
+
FORM: 1
|
|
127
|
+
},
|
|
128
|
+
formnovalidate: {
|
|
129
|
+
$: "formNoValidate",
|
|
130
|
+
BUTTON: 1,
|
|
131
|
+
INPUT: 1
|
|
132
|
+
},
|
|
133
|
+
ismap: {
|
|
134
|
+
$: "isMap",
|
|
135
|
+
IMG: 1
|
|
136
|
+
},
|
|
137
|
+
nomodule: {
|
|
138
|
+
$: "noModule",
|
|
139
|
+
SCRIPT: 1
|
|
140
|
+
},
|
|
141
|
+
playsinline: {
|
|
142
|
+
$: "playsInline",
|
|
143
|
+
VIDEO: 1
|
|
144
|
+
},
|
|
145
|
+
readonly: {
|
|
146
|
+
$: "readOnly",
|
|
147
|
+
INPUT: 1,
|
|
148
|
+
TEXTAREA: 1
|
|
149
|
+
},
|
|
150
|
+
|
|
151
|
+
adauctionheaders: {
|
|
152
|
+
$: "adAuctionHeaders",
|
|
153
|
+
IFRAME: 1
|
|
154
|
+
},
|
|
155
|
+
allowfullscreen: {
|
|
156
|
+
$: "allowFullscreen",
|
|
157
|
+
IFRAME: 1
|
|
158
|
+
},
|
|
159
|
+
browsingtopics: {
|
|
160
|
+
$: "browsingTopics",
|
|
161
|
+
IMG: 1
|
|
162
|
+
},
|
|
163
|
+
defaultchecked: {
|
|
164
|
+
$: "defaultChecked",
|
|
165
|
+
INPUT: 1
|
|
166
|
+
},
|
|
167
|
+
defaultmuted: {
|
|
168
|
+
$: "defaultMuted",
|
|
169
|
+
AUDIO: 1,
|
|
170
|
+
VIDEO: 1
|
|
171
|
+
},
|
|
172
|
+
defaultselected: {
|
|
173
|
+
$: "defaultSelected",
|
|
174
|
+
OPTION: 1
|
|
175
|
+
},
|
|
176
|
+
disablepictureinpicture: {
|
|
177
|
+
$: "disablePictureInPicture",
|
|
178
|
+
VIDEO: 1
|
|
179
|
+
},
|
|
180
|
+
disableremoteplayback: {
|
|
181
|
+
$: "disableRemotePlayback",
|
|
182
|
+
AUDIO: 1,
|
|
183
|
+
VIDEO: 1
|
|
184
|
+
},
|
|
185
|
+
preservespitch: {
|
|
186
|
+
$: "preservesPitch",
|
|
187
|
+
AUDIO: 1,
|
|
188
|
+
VIDEO: 1
|
|
189
|
+
},
|
|
190
|
+
shadowrootclonable: {
|
|
191
|
+
$: "shadowRootClonable",
|
|
192
|
+
TEMPLATE: 1
|
|
193
|
+
},
|
|
194
|
+
shadowrootdelegatesfocus: {
|
|
195
|
+
$: "shadowRootDelegatesFocus",
|
|
196
|
+
TEMPLATE: 1
|
|
197
|
+
},
|
|
198
|
+
shadowrootserializable: {
|
|
199
|
+
$: "shadowRootSerializable",
|
|
200
|
+
TEMPLATE: 1
|
|
201
|
+
},
|
|
202
|
+
sharedstoragewritable: {
|
|
203
|
+
$: "sharedStorageWritable",
|
|
204
|
+
IFRAME: 1,
|
|
205
|
+
IMG: 1
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
function getPropAlias(prop, tagName) {
|
|
210
|
+
const a = PropAliases[prop];
|
|
211
|
+
return typeof a === "object" ? a[tagName] ? a["$"] : undefined : a;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// list of Element events that will be delegated
|
|
215
|
+
const DelegatedEvents = /*#__PURE__*/new Set([
|
|
216
|
+
"beforeinput",
|
|
217
|
+
"click",
|
|
218
|
+
"dblclick",
|
|
219
|
+
"contextmenu",
|
|
220
|
+
"focusin",
|
|
221
|
+
"focusout",
|
|
222
|
+
"input",
|
|
223
|
+
"keydown",
|
|
224
|
+
"keyup",
|
|
225
|
+
"mousedown",
|
|
226
|
+
"mousemove",
|
|
227
|
+
"mouseout",
|
|
228
|
+
"mouseover",
|
|
229
|
+
"mouseup",
|
|
230
|
+
"pointerdown",
|
|
231
|
+
"pointermove",
|
|
232
|
+
"pointerout",
|
|
233
|
+
"pointerover",
|
|
234
|
+
"pointerup",
|
|
235
|
+
"touchend",
|
|
236
|
+
"touchmove",
|
|
237
|
+
"touchstart"]);
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
const SVGElements = /*#__PURE__*/new Set([
|
|
241
|
+
// "a",
|
|
242
|
+
"altGlyph",
|
|
243
|
+
"altGlyphDef",
|
|
244
|
+
"altGlyphItem",
|
|
245
|
+
"animate",
|
|
246
|
+
"animateColor",
|
|
247
|
+
"animateMotion",
|
|
248
|
+
"animateTransform",
|
|
249
|
+
"circle",
|
|
250
|
+
"clipPath",
|
|
251
|
+
"color-profile",
|
|
252
|
+
"cursor",
|
|
253
|
+
"defs",
|
|
254
|
+
"desc",
|
|
255
|
+
"ellipse",
|
|
256
|
+
"feBlend",
|
|
257
|
+
"feColorMatrix",
|
|
258
|
+
"feComponentTransfer",
|
|
259
|
+
"feComposite",
|
|
260
|
+
"feConvolveMatrix",
|
|
261
|
+
"feDiffuseLighting",
|
|
262
|
+
"feDisplacementMap",
|
|
263
|
+
"feDistantLight",
|
|
264
|
+
"feDropShadow",
|
|
265
|
+
"feFlood",
|
|
266
|
+
"feFuncA",
|
|
267
|
+
"feFuncB",
|
|
268
|
+
"feFuncG",
|
|
269
|
+
"feFuncR",
|
|
270
|
+
"feGaussianBlur",
|
|
271
|
+
"feImage",
|
|
272
|
+
"feMerge",
|
|
273
|
+
"feMergeNode",
|
|
274
|
+
"feMorphology",
|
|
275
|
+
"feOffset",
|
|
276
|
+
"fePointLight",
|
|
277
|
+
"feSpecularLighting",
|
|
278
|
+
"feSpotLight",
|
|
279
|
+
"feTile",
|
|
280
|
+
"feTurbulence",
|
|
281
|
+
"filter",
|
|
282
|
+
"font",
|
|
283
|
+
"font-face",
|
|
284
|
+
"font-face-format",
|
|
285
|
+
"font-face-name",
|
|
286
|
+
"font-face-src",
|
|
287
|
+
"font-face-uri",
|
|
288
|
+
"foreignObject",
|
|
289
|
+
"g",
|
|
290
|
+
"glyph",
|
|
291
|
+
"glyphRef",
|
|
292
|
+
"hkern",
|
|
293
|
+
"image",
|
|
294
|
+
"line",
|
|
295
|
+
"linearGradient",
|
|
296
|
+
"marker",
|
|
297
|
+
"mask",
|
|
298
|
+
"metadata",
|
|
299
|
+
"missing-glyph",
|
|
300
|
+
"mpath",
|
|
301
|
+
"path",
|
|
302
|
+
"pattern",
|
|
303
|
+
"polygon",
|
|
304
|
+
"polyline",
|
|
305
|
+
"radialGradient",
|
|
306
|
+
"rect",
|
|
307
|
+
// "script",
|
|
308
|
+
"set",
|
|
309
|
+
"stop",
|
|
310
|
+
// "style",
|
|
311
|
+
"svg",
|
|
312
|
+
"switch",
|
|
313
|
+
"symbol",
|
|
314
|
+
"text",
|
|
315
|
+
"textPath",
|
|
316
|
+
// "title",
|
|
317
|
+
"tref",
|
|
318
|
+
"tspan",
|
|
319
|
+
"use",
|
|
320
|
+
"view",
|
|
321
|
+
"vkern"]);
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
const SVGNamespace = {
|
|
325
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
326
|
+
xml: "http://www.w3.org/XML/1998/namespace"
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
var VoidElements = [
|
|
330
|
+
'area',
|
|
331
|
+
'base',
|
|
332
|
+
'br',
|
|
333
|
+
'col',
|
|
334
|
+
'embed',
|
|
335
|
+
'hr',
|
|
336
|
+
'img',
|
|
337
|
+
'input',
|
|
338
|
+
'keygen',
|
|
339
|
+
'link',
|
|
340
|
+
'menuitem',
|
|
341
|
+
'meta',
|
|
342
|
+
'param',
|
|
343
|
+
'source',
|
|
344
|
+
'track',
|
|
345
|
+
'wbr'];
|
|
346
|
+
|
|
347
|
+
const reservedNameSpaces = new Set([
|
|
348
|
+
"class",
|
|
349
|
+
"on",
|
|
350
|
+
"oncapture",
|
|
351
|
+
"style",
|
|
352
|
+
"use",
|
|
353
|
+
"prop",
|
|
354
|
+
"attr",
|
|
355
|
+
"bool"]);
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
const nonSpreadNameSpaces = new Set(["class", "style", "use", "prop", "attr", "bool"]);
|
|
359
|
+
|
|
360
|
+
function getConfig(path) {
|
|
361
|
+
return path.hub.file.metadata.config;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
const getRendererConfig = (path, renderer) => {
|
|
365
|
+
const config = getConfig(path);
|
|
366
|
+
return config?.renderers?.find((r) => r.name === renderer) ?? config;
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
function registerImportMethod(path, name, moduleName) {
|
|
370
|
+
const imports =
|
|
371
|
+
path.scope.getProgramParent().data.imports || (
|
|
372
|
+
path.scope.getProgramParent().data.imports = new Map());
|
|
373
|
+
moduleName = moduleName || getConfig(path).moduleName;
|
|
374
|
+
if (!imports.has(`${moduleName}:${name}`)) {
|
|
375
|
+
let id = helperModuleImports.addNamed(path, name, moduleName, {
|
|
376
|
+
nameHint: `_$${name}`
|
|
377
|
+
});
|
|
378
|
+
imports.set(`${moduleName}:${name}`, id);
|
|
379
|
+
return id;
|
|
380
|
+
} else {
|
|
381
|
+
let iden = imports.get(`${moduleName}:${name}`);
|
|
382
|
+
// the cloning is required to play well with babel-preset-env which is
|
|
383
|
+
// transpiling import as we add them and using the same identifier causes
|
|
384
|
+
// problems with the multiple identifiers of the same thing
|
|
385
|
+
return t__namespace.cloneNode(iden);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
function jsxElementNameToString(node) {
|
|
390
|
+
if (t__namespace.isJSXMemberExpression(node)) {
|
|
391
|
+
return `${jsxElementNameToString(node.object)}.${node.property.name}`;
|
|
392
|
+
}
|
|
393
|
+
if (t__namespace.isJSXIdentifier(node) || t__namespace.isIdentifier(node)) {
|
|
394
|
+
return node.name;
|
|
395
|
+
}
|
|
396
|
+
return `${node.namespace.name}:${node.name.name}`;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function getTagName(tag) {
|
|
400
|
+
const jsxName = tag.openingElement.name;
|
|
401
|
+
return jsxElementNameToString(jsxName);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
function isComponent(tagName) {
|
|
405
|
+
return (
|
|
406
|
+
tagName[0] && tagName[0].toLowerCase() !== tagName[0] ||
|
|
407
|
+
tagName.includes(".") ||
|
|
408
|
+
/[^a-zA-Z]/.test(tagName[0]));
|
|
409
|
+
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
function hasStaticMarker(object, path) {
|
|
413
|
+
if (!object) return false;
|
|
414
|
+
if (
|
|
415
|
+
object.leadingComments &&
|
|
416
|
+
object.leadingComments[0] &&
|
|
417
|
+
object.leadingComments[0].value.trim() === getConfig(path).staticMarker)
|
|
418
|
+
|
|
419
|
+
return true;
|
|
420
|
+
if (object.expression) return hasStaticMarker(object.expression, path);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
function isDynamic(path, { checkMember, checkTags, checkCallExpressions = true, native }) {
|
|
424
|
+
const config = getConfig(path);
|
|
425
|
+
if (config.generate === "ssr" && native) {
|
|
426
|
+
checkMember = false;
|
|
427
|
+
checkCallExpressions = false;
|
|
428
|
+
}
|
|
429
|
+
const expr = path.node;
|
|
430
|
+
if (t__namespace.isFunction(expr)) return false;
|
|
431
|
+
if (
|
|
432
|
+
expr.leadingComments &&
|
|
433
|
+
expr.leadingComments[0] &&
|
|
434
|
+
expr.leadingComments[0].value.trim() === config.staticMarker)
|
|
435
|
+
{
|
|
436
|
+
return false;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if (
|
|
440
|
+
checkCallExpressions && (
|
|
441
|
+
t__namespace.isCallExpression(expr) ||
|
|
442
|
+
t__namespace.isOptionalCallExpression(expr) ||
|
|
443
|
+
t__namespace.isTaggedTemplateExpression(expr)))
|
|
444
|
+
{
|
|
445
|
+
return true;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
if (checkMember && t__namespace.isMemberExpression(expr)) {
|
|
449
|
+
// Do not assume property access on namespaced imports as dynamic.
|
|
450
|
+
const object = path.get("object").node;
|
|
451
|
+
|
|
452
|
+
if (
|
|
453
|
+
t__namespace.isIdentifier(object) && (
|
|
454
|
+
!expr.computed ||
|
|
455
|
+
!isDynamic(path.get("property"), {
|
|
456
|
+
checkMember,
|
|
457
|
+
checkTags,
|
|
458
|
+
checkCallExpressions,
|
|
459
|
+
native
|
|
460
|
+
})))
|
|
461
|
+
{
|
|
462
|
+
const binding = path.scope.getBinding(object.name);
|
|
463
|
+
|
|
464
|
+
if (binding && binding.path.isImportNamespaceSpecifier()) {
|
|
465
|
+
return false;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
return true;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
if (
|
|
473
|
+
checkMember && (
|
|
474
|
+
t__namespace.isOptionalMemberExpression(expr) ||
|
|
475
|
+
t__namespace.isSpreadElement(expr) ||
|
|
476
|
+
t__namespace.isBinaryExpression(expr) && expr.operator === "in"))
|
|
477
|
+
{
|
|
478
|
+
return true;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
if (checkTags && (t__namespace.isJSXElement(expr) || t__namespace.isJSXFragment(expr) && expr.children.length)) {
|
|
482
|
+
return true;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
let dynamic;
|
|
486
|
+
path.traverse({
|
|
487
|
+
Function(p) {
|
|
488
|
+
if (t__namespace.isObjectMethod(p.node) && p.node.computed) {
|
|
489
|
+
dynamic = isDynamic(p.get("key"), { checkMember, checkTags, checkCallExpressions, native });
|
|
490
|
+
}
|
|
491
|
+
p.skip();
|
|
492
|
+
},
|
|
493
|
+
CallExpression(p) {
|
|
494
|
+
checkCallExpressions && (dynamic = true) && p.stop();
|
|
495
|
+
},
|
|
496
|
+
OptionalCallExpression(p) {
|
|
497
|
+
checkCallExpressions && (dynamic = true) && p.stop();
|
|
498
|
+
},
|
|
499
|
+
MemberExpression(p) {
|
|
500
|
+
checkMember && (dynamic = true) && p.stop();
|
|
501
|
+
},
|
|
502
|
+
OptionalMemberExpression(p) {
|
|
503
|
+
checkMember && (dynamic = true) && p.stop();
|
|
504
|
+
},
|
|
505
|
+
SpreadElement(p) {
|
|
506
|
+
checkMember && (dynamic = true) && p.stop();
|
|
507
|
+
},
|
|
508
|
+
BinaryExpression(p) {
|
|
509
|
+
checkMember && p.node.operator === "in" && (dynamic = true) && p.stop();
|
|
510
|
+
},
|
|
511
|
+
JSXElement(p) {
|
|
512
|
+
checkTags ? (dynamic = true) && p.stop() : p.skip();
|
|
513
|
+
},
|
|
514
|
+
JSXFragment(p) {
|
|
515
|
+
checkTags && p.node.children.length ? (dynamic = true) && p.stop() : p.skip();
|
|
516
|
+
}
|
|
517
|
+
});
|
|
518
|
+
return dynamic;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
function getStaticExpression(path) {
|
|
522
|
+
const node = path.node;
|
|
523
|
+
let value, type;
|
|
524
|
+
return (
|
|
525
|
+
t__namespace.isJSXExpressionContainer(node) &&
|
|
526
|
+
t__namespace.isJSXElement(path.parent) &&
|
|
527
|
+
!isComponent(getTagName(path.parent)) &&
|
|
528
|
+
!t__namespace.isSequenceExpression(node.expression) &&
|
|
529
|
+
(value = path.get("expression").evaluate().value) !== undefined && (
|
|
530
|
+
(type = typeof value) === "string" || type === "number") &&
|
|
531
|
+
value);
|
|
532
|
+
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
// remove unnecessary JSX Text nodes
|
|
536
|
+
function filterChildren(children) {
|
|
537
|
+
return children.filter(
|
|
538
|
+
({ node: child }) =>
|
|
539
|
+
!(t__namespace.isJSXExpressionContainer(child) && t__namespace.isJSXEmptyExpression(child.expression)) && (
|
|
540
|
+
!t__namespace.isJSXText(child) || !/^[\r\n]\s*$/.test(child.extra.raw)));
|
|
541
|
+
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
function checkLength(children) {
|
|
545
|
+
let i = 0;
|
|
546
|
+
children.forEach((path) => {
|
|
547
|
+
const child = path.node;
|
|
548
|
+
!(t__namespace.isJSXExpressionContainer(child) && t__namespace.isJSXEmptyExpression(child.expression)) && (
|
|
549
|
+
!t__namespace.isJSXText(child) || !/^\s*$/.test(child.extra.raw) || /^ *$/.test(child.extra.raw)) &&
|
|
550
|
+
i++;
|
|
551
|
+
});
|
|
552
|
+
return i > 1;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
function trimWhitespace(text) {
|
|
556
|
+
text = text.replace(/\r/g, "");
|
|
557
|
+
if (/\n/g.test(text)) {
|
|
558
|
+
text = text.
|
|
559
|
+
split("\n").
|
|
560
|
+
map((t, i) => i ? t.replace(/^\s*/g, "") : t).
|
|
561
|
+
filter((s) => !/^\s*$/.test(s)).
|
|
562
|
+
join(" ");
|
|
563
|
+
}
|
|
564
|
+
return text.replace(/\s+/g, " ");
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
function toEventName(name) {
|
|
568
|
+
return name.slice(2).toLowerCase();
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
function toPropertyName(name) {
|
|
572
|
+
return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
function wrappedByText(list, startIndex) {
|
|
576
|
+
let index = startIndex,
|
|
577
|
+
wrapped;
|
|
578
|
+
while (--index >= 0) {
|
|
579
|
+
const node = list[index];
|
|
580
|
+
if (!node) continue;
|
|
581
|
+
if (node.text) {
|
|
582
|
+
wrapped = true;
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
if (node.id) return false;
|
|
586
|
+
}
|
|
587
|
+
if (!wrapped) return false;
|
|
588
|
+
index = startIndex;
|
|
589
|
+
while (++index < list.length) {
|
|
590
|
+
const node = list[index];
|
|
591
|
+
if (!node) continue;
|
|
592
|
+
if (node.text) return true;
|
|
593
|
+
if (node.id) return false;
|
|
594
|
+
}
|
|
595
|
+
return false;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
function transformCondition(path, inline, deep) {
|
|
599
|
+
const config = getConfig(path);
|
|
600
|
+
const expr = path.node;
|
|
601
|
+
const memo = registerImportMethod(path, config.memoWrapper);
|
|
602
|
+
let dTest, cond, id;
|
|
603
|
+
if (
|
|
604
|
+
t__namespace.isConditionalExpression(expr) && (
|
|
605
|
+
isDynamic(path.get("consequent"), {
|
|
606
|
+
checkTags: true,
|
|
607
|
+
checkMember: true
|
|
608
|
+
}) ||
|
|
609
|
+
isDynamic(path.get("alternate"), { checkTags: true, checkMember: true })))
|
|
610
|
+
{
|
|
611
|
+
dTest = isDynamic(path.get("test"), { checkMember: true });
|
|
612
|
+
if (dTest) {
|
|
613
|
+
cond = expr.test;
|
|
614
|
+
if (!t__namespace.isBinaryExpression(cond))
|
|
615
|
+
cond = t__namespace.unaryExpression("!", t__namespace.unaryExpression("!", cond, true), true);
|
|
616
|
+
id = inline ?
|
|
617
|
+
t__namespace.callExpression(memo, [t__namespace.arrowFunctionExpression([], cond)]) :
|
|
618
|
+
path.scope.generateUidIdentifier("_c$");
|
|
619
|
+
expr.test = t__namespace.callExpression(id, []);
|
|
620
|
+
if (t__namespace.isConditionalExpression(expr.consequent) || t__namespace.isLogicalExpression(expr.consequent)) {
|
|
621
|
+
expr.consequent = transformCondition(path.get("consequent"), true, true);
|
|
622
|
+
}
|
|
623
|
+
if (t__namespace.isConditionalExpression(expr.alternate) || t__namespace.isLogicalExpression(expr.alternate)) {
|
|
624
|
+
expr.alternate = transformCondition(path.get("alternate"), true, true);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
} else if (t__namespace.isLogicalExpression(expr)) {
|
|
628
|
+
let nextPath = path;
|
|
629
|
+
// handle top-level or, ie cond && <A/> || <B/>
|
|
630
|
+
while (nextPath.node.operator !== "&&" && t__namespace.isLogicalExpression(nextPath.node.left)) {
|
|
631
|
+
nextPath = nextPath.get("left");
|
|
632
|
+
}
|
|
633
|
+
nextPath.node.operator === "&&" &&
|
|
634
|
+
isDynamic(nextPath.get("right"), { checkTags: true, checkMember: true }) && (
|
|
635
|
+
dTest = isDynamic(nextPath.get("left"), {
|
|
636
|
+
checkMember: true
|
|
637
|
+
}));
|
|
638
|
+
if (dTest) {
|
|
639
|
+
cond = nextPath.node.left;
|
|
640
|
+
if (!t__namespace.isBinaryExpression(cond))
|
|
641
|
+
cond = t__namespace.unaryExpression("!", t__namespace.unaryExpression("!", cond, true), true);
|
|
642
|
+
id = inline ?
|
|
643
|
+
t__namespace.callExpression(memo, [t__namespace.arrowFunctionExpression([], cond)]) :
|
|
644
|
+
path.scope.generateUidIdentifier("_c$");
|
|
645
|
+
nextPath.node.left = t__namespace.callExpression(id, []);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
if (dTest && !inline) {
|
|
649
|
+
const statements = [
|
|
650
|
+
t__namespace.variableDeclaration("var", [
|
|
651
|
+
t__namespace.variableDeclarator(
|
|
652
|
+
id,
|
|
653
|
+
config.memoWrapper ?
|
|
654
|
+
t__namespace.callExpression(memo, [t__namespace.arrowFunctionExpression([], cond)]) :
|
|
655
|
+
t__namespace.arrowFunctionExpression([], cond))]),
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
t__namespace.arrowFunctionExpression([], expr)];
|
|
659
|
+
|
|
660
|
+
return deep ?
|
|
661
|
+
t__namespace.callExpression(
|
|
662
|
+
t__namespace.arrowFunctionExpression(
|
|
663
|
+
[],
|
|
664
|
+
t__namespace.blockStatement([statements[0], t__namespace.returnStatement(statements[1])])),
|
|
665
|
+
|
|
666
|
+
[]) :
|
|
667
|
+
|
|
668
|
+
statements;
|
|
669
|
+
}
|
|
670
|
+
return deep ? expr : t__namespace.arrowFunctionExpression([], expr);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
function escapeHTML(s, attr) {
|
|
674
|
+
if (typeof s !== "string") return s;
|
|
675
|
+
const delim = attr ? '"' : "<";
|
|
676
|
+
const escDelim = attr ? """ : "<";
|
|
677
|
+
let iDelim = s.indexOf(delim);
|
|
678
|
+
let iAmp = s.indexOf("&");
|
|
679
|
+
|
|
680
|
+
if (iDelim < 0 && iAmp < 0) return s;
|
|
681
|
+
|
|
682
|
+
let left = 0,
|
|
683
|
+
out = "";
|
|
684
|
+
|
|
685
|
+
while (iDelim >= 0 && iAmp >= 0) {
|
|
686
|
+
if (iDelim < iAmp) {
|
|
687
|
+
if (left < iDelim) out += s.substring(left, iDelim);
|
|
688
|
+
out += escDelim;
|
|
689
|
+
left = iDelim + 1;
|
|
690
|
+
iDelim = s.indexOf(delim, left);
|
|
691
|
+
} else {
|
|
692
|
+
if (left < iAmp) out += s.substring(left, iAmp);
|
|
693
|
+
out += "&";
|
|
694
|
+
left = iAmp + 1;
|
|
695
|
+
iAmp = s.indexOf("&", left);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
if (iDelim >= 0) {
|
|
700
|
+
do {
|
|
701
|
+
if (left < iDelim) out += s.substring(left, iDelim);
|
|
702
|
+
out += escDelim;
|
|
703
|
+
left = iDelim + 1;
|
|
704
|
+
iDelim = s.indexOf(delim, left);
|
|
705
|
+
} while (iDelim >= 0);
|
|
706
|
+
} else {
|
|
707
|
+
while (iAmp >= 0) {
|
|
708
|
+
if (left < iAmp) out += s.substring(left, iAmp);
|
|
709
|
+
out += "&";
|
|
710
|
+
left = iAmp + 1;
|
|
711
|
+
iAmp = s.indexOf("&", left);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
return left < s.length ? out + s.substring(left) : out;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
function convertJSXIdentifier(node) {
|
|
719
|
+
if (t__namespace.isJSXIdentifier(node)) {
|
|
720
|
+
if (t__namespace.isValidIdentifier(node.name)) {
|
|
721
|
+
node.type = "Identifier";
|
|
722
|
+
} else {
|
|
723
|
+
return t__namespace.stringLiteral(node.name);
|
|
724
|
+
}
|
|
725
|
+
} else if (t__namespace.isJSXMemberExpression(node)) {
|
|
726
|
+
return t__namespace.memberExpression(
|
|
727
|
+
convertJSXIdentifier(node.object),
|
|
728
|
+
convertJSXIdentifier(node.property));
|
|
729
|
+
|
|
730
|
+
} else if (t__namespace.isJSXNamespacedName(node)) {
|
|
731
|
+
return t__namespace.stringLiteral(`${node.namespace.name}:${node.name.name}`);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
return node;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
function canNativeSpread(key, { checkNameSpaces } = {}) {
|
|
738
|
+
if (checkNameSpaces && key.includes(":") && nonSpreadNameSpaces.has(key.split(":")[0]))
|
|
739
|
+
return false;
|
|
740
|
+
// TODO: figure out how to detect definitely function ref
|
|
741
|
+
if (key === "ref") return false;
|
|
742
|
+
return true;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
const chars = "etaoinshrdlucwmfygpbTAOISWCBvkxjqzPHFMDRELNGUKVYJQZX_$";
|
|
746
|
+
const base = chars.length;
|
|
747
|
+
|
|
748
|
+
function getNumberedId(num) {
|
|
749
|
+
let out = "";
|
|
750
|
+
|
|
751
|
+
do {
|
|
752
|
+
const digit = num % base;
|
|
753
|
+
|
|
754
|
+
num = Math.floor(num / base);
|
|
755
|
+
out = chars[digit] + out;
|
|
756
|
+
} while (num !== 0);
|
|
757
|
+
|
|
758
|
+
return out;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
function escapeStringForTemplate(str) {
|
|
762
|
+
return str.replace(/[{\\`\n\t\b\f\v\r\u2028\u2029]/g, (ch) => templateEscapes.get(ch));
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
const templateEscapes = new Map([
|
|
766
|
+
["{", "\\{"],
|
|
767
|
+
["`", "\\`"],
|
|
768
|
+
["\\", "\\\\"],
|
|
769
|
+
["\n", "\\n"],
|
|
770
|
+
["\t", "\\t"],
|
|
771
|
+
["\b", "\\b"],
|
|
772
|
+
["\f", "\\f"],
|
|
773
|
+
["\v", "\\v"],
|
|
774
|
+
["\r", "\\r"],
|
|
775
|
+
["\u2028", "\\u2028"],
|
|
776
|
+
["\u2029", "\\u2029"]]);
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
function evaluateAndInline(value, valueNode) {
|
|
780
|
+
if (t__namespace.isJSXExpressionContainer(value)) {
|
|
781
|
+
evaluateAndInline(value.expression, valueNode.get("expression"));
|
|
782
|
+
} else if (t__namespace.isObjectProperty(value)) {
|
|
783
|
+
evaluateAndInline(value.value, valueNode.get("value"));
|
|
784
|
+
} else if (
|
|
785
|
+
t__namespace.isStringLiteral(value) ||
|
|
786
|
+
t__namespace.isNumericLiteral(value) ||
|
|
787
|
+
t__namespace.isBooleanLiteral(value) ||
|
|
788
|
+
t__namespace.isNullLiteral(value))
|
|
789
|
+
; else if (t__namespace.isObjectExpression(value)) {const properties = value.properties;
|
|
790
|
+
const propertiesNode = valueNode.get("properties");
|
|
791
|
+
for (let i = 0; i < properties.length; i++) {
|
|
792
|
+
evaluateAndInline(properties[i], propertiesNode[i]);
|
|
793
|
+
}
|
|
794
|
+
} else {
|
|
795
|
+
const r = valueNode.evaluate();
|
|
796
|
+
if (r.confident) {
|
|
797
|
+
if (typeof r.value === "string") {
|
|
798
|
+
valueNode.replaceWith(t__namespace.stringLiteral(r.value));
|
|
799
|
+
} else if (typeof r.value === "number") {
|
|
800
|
+
valueNode.replaceWith(t__namespace.numericLiteral(r.value));
|
|
801
|
+
} else if (typeof r.value === "boolean") {
|
|
802
|
+
valueNode.replaceWith(t__namespace.booleanLiteral(r.value));
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
const InlineElements = [
|
|
809
|
+
"a",
|
|
810
|
+
"abbr",
|
|
811
|
+
"acronym",
|
|
812
|
+
"b",
|
|
813
|
+
"bdi",
|
|
814
|
+
"bdo",
|
|
815
|
+
"big",
|
|
816
|
+
"br",
|
|
817
|
+
"button",
|
|
818
|
+
"canvas",
|
|
819
|
+
"cite",
|
|
820
|
+
"code",
|
|
821
|
+
"data",
|
|
822
|
+
"datalist",
|
|
823
|
+
"del",
|
|
824
|
+
"dfn",
|
|
825
|
+
"em",
|
|
826
|
+
"embed",
|
|
827
|
+
"i",
|
|
828
|
+
"iframe",
|
|
829
|
+
"img",
|
|
830
|
+
"input",
|
|
831
|
+
"ins",
|
|
832
|
+
"kbd",
|
|
833
|
+
"label",
|
|
834
|
+
"map",
|
|
835
|
+
"mark",
|
|
836
|
+
"meter",
|
|
837
|
+
"noscript",
|
|
838
|
+
"object",
|
|
839
|
+
"output",
|
|
840
|
+
"picture",
|
|
841
|
+
"progress",
|
|
842
|
+
"q",
|
|
843
|
+
"ruby",
|
|
844
|
+
"s",
|
|
845
|
+
"samp",
|
|
846
|
+
"script",
|
|
847
|
+
"select",
|
|
848
|
+
"slot",
|
|
849
|
+
"small",
|
|
850
|
+
"span",
|
|
851
|
+
"strong",
|
|
852
|
+
"sub",
|
|
853
|
+
"sup",
|
|
854
|
+
"svg",
|
|
855
|
+
"template",
|
|
856
|
+
"textarea",
|
|
857
|
+
"time",
|
|
858
|
+
"u",
|
|
859
|
+
"tt",
|
|
860
|
+
"var",
|
|
861
|
+
"video"];
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
const BlockElements = [
|
|
865
|
+
"address",
|
|
866
|
+
"article",
|
|
867
|
+
"aside",
|
|
868
|
+
"blockquote",
|
|
869
|
+
"dd",
|
|
870
|
+
"details",
|
|
871
|
+
"dialog",
|
|
872
|
+
"div",
|
|
873
|
+
"dl",
|
|
874
|
+
"dt",
|
|
875
|
+
"fieldset",
|
|
876
|
+
"figcaption",
|
|
877
|
+
"figure",
|
|
878
|
+
"footer",
|
|
879
|
+
"form",
|
|
880
|
+
"h1",
|
|
881
|
+
"h2",
|
|
882
|
+
"h3",
|
|
883
|
+
"h4",
|
|
884
|
+
"h5",
|
|
885
|
+
"h6",
|
|
886
|
+
"header",
|
|
887
|
+
"hgroup",
|
|
888
|
+
"hr",
|
|
889
|
+
"li",
|
|
890
|
+
"main",
|
|
891
|
+
"menu",
|
|
892
|
+
"nav",
|
|
893
|
+
"ol",
|
|
894
|
+
"p",
|
|
895
|
+
"pre",
|
|
896
|
+
"section",
|
|
897
|
+
"table",
|
|
898
|
+
"ul"];
|
|
899
|
+
|
|
900
|
+
const alwaysClose = [
|
|
901
|
+
"title",
|
|
902
|
+
"style",
|
|
903
|
+
"a",
|
|
904
|
+
"strong",
|
|
905
|
+
"small",
|
|
906
|
+
"b",
|
|
907
|
+
"u",
|
|
908
|
+
"i",
|
|
909
|
+
"em",
|
|
910
|
+
"s",
|
|
911
|
+
"code",
|
|
912
|
+
"object",
|
|
913
|
+
"table",
|
|
914
|
+
"button",
|
|
915
|
+
"textarea",
|
|
916
|
+
"select",
|
|
917
|
+
"iframe",
|
|
918
|
+
"script",
|
|
919
|
+
"noscript",
|
|
920
|
+
"template",
|
|
921
|
+
"fieldset"];
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
function transformElement$3(path, info) {
|
|
925
|
+
path.
|
|
926
|
+
get("openingElement").
|
|
927
|
+
get("attributes").
|
|
928
|
+
forEach((attr) => {
|
|
929
|
+
evaluateAndInline(attr.node.value, attr.get("value"));
|
|
930
|
+
});
|
|
931
|
+
|
|
932
|
+
let tagName = getTagName(path.node),
|
|
933
|
+
config = getConfig(path),
|
|
934
|
+
wrapSVG = info.topLevel && tagName != "svg" && SVGElements.has(tagName),
|
|
935
|
+
voidTag = VoidElements.indexOf(tagName) > -1,
|
|
936
|
+
isCustomElement =
|
|
937
|
+
tagName.indexOf("-") > -1 ||
|
|
938
|
+
path.
|
|
939
|
+
get("openingElement").
|
|
940
|
+
get("attributes").
|
|
941
|
+
some((a) => a.node?.name?.name === "is" || a.name?.name === "is"),
|
|
942
|
+
isImportNode =
|
|
943
|
+
(tagName === "img" || tagName === "iframe") &&
|
|
944
|
+
path.
|
|
945
|
+
get("openingElement").
|
|
946
|
+
get("attributes").
|
|
947
|
+
some((a) => a.node.name?.name === "loading"),
|
|
948
|
+
results = {
|
|
949
|
+
template: `<${tagName}`,
|
|
950
|
+
templateWithClosingTags: `<${tagName}`,
|
|
951
|
+
declarations: [],
|
|
952
|
+
exprs: [],
|
|
953
|
+
dynamics: [],
|
|
954
|
+
postExprs: [],
|
|
955
|
+
isSVG: wrapSVG,
|
|
956
|
+
hasCustomElement: isCustomElement,
|
|
957
|
+
isImportNode,
|
|
958
|
+
tagName,
|
|
959
|
+
renderer: "dom",
|
|
960
|
+
skipTemplate: false
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
if (!config.inlineStyles) {
|
|
964
|
+
path.
|
|
965
|
+
get("openingElement").
|
|
966
|
+
get("attributes").
|
|
967
|
+
forEach((a) => {
|
|
968
|
+
if (a.node.name?.name === "style") {
|
|
969
|
+
let value = a.node.value.expression ? a.node.value.expression : a.node.value;
|
|
970
|
+
if (t__namespace.isStringLiteral(value)) {
|
|
971
|
+
// jsx attribute value is a sting that may takes more than one line
|
|
972
|
+
value = t__namespace.templateLiteral(
|
|
973
|
+
[t__namespace.templateElement({ raw: value.value, cooked: value.value })],
|
|
974
|
+
[]);
|
|
975
|
+
|
|
976
|
+
}
|
|
977
|
+
a.get("value").replaceWith(
|
|
978
|
+
t__namespace.jSXExpressionContainer(t__namespace.callExpression(t__namespace.arrowFunctionExpression([], value), [])));
|
|
979
|
+
|
|
980
|
+
}
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
path.
|
|
985
|
+
get("openingElement").
|
|
986
|
+
get("attributes").
|
|
987
|
+
some((a) => {
|
|
988
|
+
if (a.node.name?.name === "data-hk") {
|
|
989
|
+
a.remove();
|
|
990
|
+
let filename = "";
|
|
991
|
+
try {
|
|
992
|
+
filename = path.scope.getProgramParent().path.hub.file.opts.filename;
|
|
993
|
+
} catch (e) {}
|
|
994
|
+
|
|
995
|
+
console.log(
|
|
996
|
+
"\n" +
|
|
997
|
+
path.
|
|
998
|
+
buildCodeFrameError(
|
|
999
|
+
`"data-hk" attribute found in template, which could potentially cause hydration miss-matches. Usually happens when copying and pasting Solid SSRed code into JSX. Please remove the attribute from the JSX. \n\n${filename}\n`).
|
|
1000
|
+
|
|
1001
|
+
toString());
|
|
1002
|
+
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
1005
|
+
if (config.hydratable && (tagName === "html" || tagName === "head" || tagName === "body")) {
|
|
1006
|
+
results.skipTemplate = true;
|
|
1007
|
+
if (tagName === "head" && info.topLevel) {
|
|
1008
|
+
const createComponent = registerImportMethod(
|
|
1009
|
+
path,
|
|
1010
|
+
"createComponent",
|
|
1011
|
+
getRendererConfig(path, "dom").moduleName);
|
|
1012
|
+
|
|
1013
|
+
const NoHydration = registerImportMethod(
|
|
1014
|
+
path,
|
|
1015
|
+
"NoHydration",
|
|
1016
|
+
getRendererConfig(path, "dom").moduleName);
|
|
1017
|
+
|
|
1018
|
+
results.exprs.push(
|
|
1019
|
+
t__namespace.expressionStatement(
|
|
1020
|
+
t__namespace.callExpression(createComponent, [NoHydration, t__namespace.objectExpression([])])));
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
return results;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
if (wrapSVG) {
|
|
1027
|
+
results.template = "<svg>" + results.template;
|
|
1028
|
+
results.templateWithClosingTags = "<svg>" + results.templateWithClosingTags;
|
|
1029
|
+
}
|
|
1030
|
+
if (!info.skipId) {
|
|
1031
|
+
results.id = path.scope.generateUidIdentifier("el$");
|
|
1032
|
+
}
|
|
1033
|
+
transformAttributes$2(path, results);
|
|
1034
|
+
if (config.contextToCustomElements && (tagName === "slot" || isCustomElement)) {
|
|
1035
|
+
contextToCustomElement(path, results);
|
|
1036
|
+
}
|
|
1037
|
+
results.template += ">";
|
|
1038
|
+
results.templateWithClosingTags += ">";
|
|
1039
|
+
if (!voidTag) {
|
|
1040
|
+
// always close tags can still be skipped if they have no closing parents and are the last element
|
|
1041
|
+
const toBeClosed =
|
|
1042
|
+
!info.lastElement ||
|
|
1043
|
+
!config.omitLastClosingTag ||
|
|
1044
|
+
info.toBeClosed && (!config.omitNestedClosingTags || info.toBeClosed.has(tagName));
|
|
1045
|
+
if (toBeClosed) {
|
|
1046
|
+
results.toBeClosed = new Set(info.toBeClosed || alwaysClose);
|
|
1047
|
+
results.toBeClosed.add(tagName);
|
|
1048
|
+
if (InlineElements.includes(tagName)) BlockElements.forEach((i) => results.toBeClosed.add(i));
|
|
1049
|
+
} else results.toBeClosed = info.toBeClosed;
|
|
1050
|
+
if (tagName !== "noscript") transformChildren$2(path, results, config);
|
|
1051
|
+
if (toBeClosed) results.template += `</${tagName}>`;
|
|
1052
|
+
results.templateWithClosingTags += `</${tagName}>`;
|
|
1053
|
+
}
|
|
1054
|
+
if (info.topLevel && config.hydratable && results.hasHydratableEvent) {
|
|
1055
|
+
let runHydrationEvents = registerImportMethod(
|
|
1056
|
+
path,
|
|
1057
|
+
"runHydrationEvents",
|
|
1058
|
+
getRendererConfig(path, "dom").moduleName);
|
|
1059
|
+
|
|
1060
|
+
results.postExprs.push(t__namespace.expressionStatement(t__namespace.callExpression(runHydrationEvents, [])));
|
|
1061
|
+
}
|
|
1062
|
+
if (wrapSVG) {
|
|
1063
|
+
results.template += "</svg>";
|
|
1064
|
+
results.templateWithClosingTags += "</svg>";
|
|
1065
|
+
}
|
|
1066
|
+
return results;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
function setAttr$2(path, elem, name, value, { isSVG, dynamic, prevId, isCE, tagName }) {
|
|
1070
|
+
// pull out namespace
|
|
1071
|
+
const config = getConfig(path);
|
|
1072
|
+
let parts, namespace;
|
|
1073
|
+
if ((parts = name.split(":")) && parts[1] && reservedNameSpaces.has(parts[0])) {
|
|
1074
|
+
name = parts[1];
|
|
1075
|
+
namespace = parts[0];
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
if (namespace === "style") {
|
|
1079
|
+
const setStyleProperty = registerImportMethod(
|
|
1080
|
+
path,
|
|
1081
|
+
"setStyleProperty",
|
|
1082
|
+
getRendererConfig(path, "dom").moduleName);
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
return t__namespace.callExpression(setStyleProperty, [
|
|
1086
|
+
elem,
|
|
1087
|
+
t__namespace.stringLiteral(name),
|
|
1088
|
+
t__namespace.isAssignmentExpression(value) && t__namespace.isIdentifier(value.left) ? value.right : value]);
|
|
1089
|
+
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
if (namespace === "class") {
|
|
1093
|
+
return t__namespace.callExpression(
|
|
1094
|
+
t__namespace.memberExpression(
|
|
1095
|
+
t__namespace.memberExpression(elem, t__namespace.identifier("classList")),
|
|
1096
|
+
t__namespace.identifier("toggle")),
|
|
1097
|
+
|
|
1098
|
+
[
|
|
1099
|
+
t__namespace.stringLiteral(name),
|
|
1100
|
+
dynamic ? value : t__namespace.unaryExpression("!", t__namespace.unaryExpression("!", value))]);
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
if (name === "style") {
|
|
1106
|
+
return t__namespace.callExpression(
|
|
1107
|
+
registerImportMethod(path, "style", getRendererConfig(path, "dom").moduleName),
|
|
1108
|
+
prevId ? [elem, value, prevId] : [elem, value]);
|
|
1109
|
+
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
if (!isSVG && name === "class") {
|
|
1113
|
+
return t__namespace.callExpression(
|
|
1114
|
+
registerImportMethod(path, "className", getRendererConfig(path, "dom").moduleName),
|
|
1115
|
+
[elem, value]);
|
|
1116
|
+
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
if (name === "classList") {
|
|
1120
|
+
return t__namespace.callExpression(
|
|
1121
|
+
registerImportMethod(path, "classList", getRendererConfig(path, "dom").moduleName),
|
|
1122
|
+
prevId ? [elem, value, prevId] : [elem, value]);
|
|
1123
|
+
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
if (dynamic && name === "textContent") {
|
|
1127
|
+
if (config.hydratable) {
|
|
1128
|
+
return t__namespace.callExpression(registerImportMethod(path, "setProperty"), [
|
|
1129
|
+
elem,
|
|
1130
|
+
t__namespace.stringLiteral("data"),
|
|
1131
|
+
value]);
|
|
1132
|
+
|
|
1133
|
+
}
|
|
1134
|
+
return t__namespace.assignmentExpression("=", t__namespace.memberExpression(elem, t__namespace.identifier("data")), value);
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
if (namespace === "bool") {
|
|
1138
|
+
return t__namespace.callExpression(
|
|
1139
|
+
registerImportMethod(path, "setBoolAttribute", getRendererConfig(path, "dom").moduleName),
|
|
1140
|
+
[elem, t__namespace.stringLiteral(name), value]);
|
|
1141
|
+
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
const isChildProp = ChildProperties.has(name);
|
|
1145
|
+
const isProp = Properties.has(name);
|
|
1146
|
+
const alias = getPropAlias(name, tagName.toUpperCase());
|
|
1147
|
+
if (namespace !== "attr" && (isChildProp || !isSVG && isProp || isCE || namespace === "prop")) {
|
|
1148
|
+
if (isCE && !isChildProp && !isProp && namespace !== "prop") name = toPropertyName(name);
|
|
1149
|
+
if (config.hydratable && namespace !== "prop") {
|
|
1150
|
+
return t__namespace.callExpression(registerImportMethod(path, "setProperty"), [
|
|
1151
|
+
elem,
|
|
1152
|
+
t__namespace.stringLiteral(alias || name),
|
|
1153
|
+
value]);
|
|
1154
|
+
|
|
1155
|
+
}
|
|
1156
|
+
return t__namespace.assignmentExpression(
|
|
1157
|
+
"=",
|
|
1158
|
+
t__namespace.memberExpression(elem, t__namespace.identifier(alias || name)),
|
|
1159
|
+
value);
|
|
1160
|
+
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
let isNameSpaced = name.indexOf(":") > -1;
|
|
1164
|
+
name = Aliases[name] || name;
|
|
1165
|
+
!isSVG && (name = name.toLowerCase());
|
|
1166
|
+
const ns = isNameSpaced && SVGNamespace[name.split(":")[0]];
|
|
1167
|
+
if (ns) {
|
|
1168
|
+
return t__namespace.callExpression(
|
|
1169
|
+
registerImportMethod(path, "setAttributeNS", getRendererConfig(path, "dom").moduleName),
|
|
1170
|
+
[elem, t__namespace.stringLiteral(ns), t__namespace.stringLiteral(name), value]);
|
|
1171
|
+
|
|
1172
|
+
} else {
|
|
1173
|
+
return t__namespace.callExpression(
|
|
1174
|
+
registerImportMethod(path, "setAttribute", getRendererConfig(path, "dom").moduleName),
|
|
1175
|
+
[elem, t__namespace.stringLiteral(name), value]);
|
|
1176
|
+
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
function detectResolvableEventHandler(attribute, handler) {
|
|
1181
|
+
while (t__namespace.isIdentifier(handler)) {
|
|
1182
|
+
const lookup = attribute.scope.getBinding(handler.name);
|
|
1183
|
+
if (lookup) {
|
|
1184
|
+
if (t__namespace.isVariableDeclarator(lookup.path.node)) {
|
|
1185
|
+
handler = lookup.path.node.init;
|
|
1186
|
+
} else if (t__namespace.isFunctionDeclaration(lookup.path.node)) {
|
|
1187
|
+
return true;
|
|
1188
|
+
} else return false;
|
|
1189
|
+
} else return false;
|
|
1190
|
+
}
|
|
1191
|
+
return t__namespace.isFunction(handler);
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
function transformAttributes$2(path, results) {
|
|
1195
|
+
let elem = results.id,
|
|
1196
|
+
hasHydratableEvent = false,
|
|
1197
|
+
children,
|
|
1198
|
+
spreadExpr,
|
|
1199
|
+
attributes = path.get("openingElement").get("attributes");
|
|
1200
|
+
const tagName = getTagName(path.node),
|
|
1201
|
+
isSVG = SVGElements.has(tagName),
|
|
1202
|
+
isCE = tagName.includes("-") || attributes.some((a) => a.node.name?.name === "is"),
|
|
1203
|
+
hasChildren = path.node.children.length > 0,
|
|
1204
|
+
config = getConfig(path);
|
|
1205
|
+
|
|
1206
|
+
// preprocess spreads
|
|
1207
|
+
if (attributes.some((attribute) => t__namespace.isJSXSpreadAttribute(attribute.node))) {
|
|
1208
|
+
[attributes, spreadExpr] = processSpreads$1(path, attributes, {
|
|
1209
|
+
elem,
|
|
1210
|
+
isSVG,
|
|
1211
|
+
hasChildren,
|
|
1212
|
+
wrapConditionals: config.wrapConditionals
|
|
1213
|
+
});
|
|
1214
|
+
path.get("openingElement").set(
|
|
1215
|
+
"attributes",
|
|
1216
|
+
attributes.map((a) => a.node));
|
|
1217
|
+
|
|
1218
|
+
//NOTE: can't be checked at compile time so add to compiled output
|
|
1219
|
+
hasHydratableEvent = true;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* Inline styles
|
|
1224
|
+
*
|
|
1225
|
+
* 1. When string
|
|
1226
|
+
* 2. When is an object, the key is a string, and value is string/numeric
|
|
1227
|
+
* 3. Remove properties from object when value is undefined/null
|
|
1228
|
+
* 4. When `value.evaluate().confident`
|
|
1229
|
+
*
|
|
1230
|
+
* Also, when `key` is computed value is also `value.evaluate().confident`
|
|
1231
|
+
*/
|
|
1232
|
+
|
|
1233
|
+
attributes = path.get("openingElement").get("attributes");
|
|
1234
|
+
|
|
1235
|
+
const styleAttributes = attributes.filter((a) => a.node.name && a.node.name.name === "style");
|
|
1236
|
+
if (styleAttributes.length > 0) {
|
|
1237
|
+
let inlinedStyle = "";
|
|
1238
|
+
|
|
1239
|
+
for (let i = 0; i < styleAttributes.length; i++) {
|
|
1240
|
+
const attr = styleAttributes[i];
|
|
1241
|
+
|
|
1242
|
+
let value = attr.node.value;
|
|
1243
|
+
const node = attr.get("value");
|
|
1244
|
+
if (t__namespace.isJSXExpressionContainer(value)) {
|
|
1245
|
+
value = value.expression;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
if (t__namespace.isStringLiteral(value)) {
|
|
1249
|
+
inlinedStyle += `${value.value.replace(/;$/, "")};`;
|
|
1250
|
+
attr.remove();
|
|
1251
|
+
} else if (t__namespace.isObjectExpression(value)) {
|
|
1252
|
+
const properties = value.properties;
|
|
1253
|
+
const propertiesNode = node.get("expression").get("properties");
|
|
1254
|
+
const toRemoveProperty = [];
|
|
1255
|
+
for (let i = 0; i < properties.length; i++) {
|
|
1256
|
+
const property = properties[i];
|
|
1257
|
+
|
|
1258
|
+
if (property.computed) {
|
|
1259
|
+
/* { [computed]: `${1+1}px` } => { [computed]: `2px` } */
|
|
1260
|
+
const r = propertiesNode[i].get("value").evaluate();
|
|
1261
|
+
if (r.confident && (typeof r.value === "string" || typeof r.value === "number")) {
|
|
1262
|
+
property.value = t__namespace.inherits(t__namespace.stringLiteral(`${r.value}`), property.value);
|
|
1263
|
+
}
|
|
1264
|
+
// computed cannot be inlined - maybe can be evaluated but this is pretty rare
|
|
1265
|
+
continue;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
if (t__namespace.isObjectProperty(property)) {
|
|
1269
|
+
const key = t__namespace.isIdentifier(property.key) ? property.key.name : property.key.value;
|
|
1270
|
+
if (t__namespace.isStringLiteral(property.value) || t__namespace.isNumericLiteral(property.value)) {
|
|
1271
|
+
inlinedStyle += `${key}:${property.value.value};`;
|
|
1272
|
+
toRemoveProperty.push(property);
|
|
1273
|
+
} else if (
|
|
1274
|
+
t__namespace.isIdentifier(property.value) && property.value.name === "undefined" ||
|
|
1275
|
+
t__namespace.isNullLiteral(property.value))
|
|
1276
|
+
{
|
|
1277
|
+
toRemoveProperty.push(property);
|
|
1278
|
+
} else {
|
|
1279
|
+
const r = propertiesNode[i].get("value").evaluate();
|
|
1280
|
+
if (r.confident && (typeof r.value === "string" || typeof r.value === "number")) {
|
|
1281
|
+
inlinedStyle += `${key}:${r.value};`;
|
|
1282
|
+
toRemoveProperty.push(property);
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
for (const remove of toRemoveProperty) {
|
|
1288
|
+
value.properties.splice(value.properties.indexOf(remove), 1);
|
|
1289
|
+
}
|
|
1290
|
+
if (value.properties.length === 0) {
|
|
1291
|
+
attr.remove();
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
if (inlinedStyle !== "") {
|
|
1297
|
+
const styleAttribute = t__namespace.jsxAttribute(
|
|
1298
|
+
t__namespace.jsxIdentifier("style"),
|
|
1299
|
+
t__namespace.stringLiteral(inlinedStyle.replace(/;$/, "")));
|
|
1300
|
+
|
|
1301
|
+
path.get("openingElement").node.attributes.push(styleAttribute);
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
// preprocess styles
|
|
1306
|
+
const styleAttribute = path.
|
|
1307
|
+
get("openingElement").
|
|
1308
|
+
get("attributes").
|
|
1309
|
+
find(
|
|
1310
|
+
(a) =>
|
|
1311
|
+
a.node.name &&
|
|
1312
|
+
a.node.name.name === "style" &&
|
|
1313
|
+
t__namespace.isJSXExpressionContainer(a.node.value) &&
|
|
1314
|
+
t__namespace.isObjectExpression(a.node.value.expression) &&
|
|
1315
|
+
!a.node.value.expression.properties.some((p) => t__namespace.isSpreadElement(p)));
|
|
1316
|
+
|
|
1317
|
+
if (styleAttribute) {
|
|
1318
|
+
let i = 0,
|
|
1319
|
+
leading = styleAttribute.node.value.expression.leadingComments;
|
|
1320
|
+
styleAttribute.node.value.expression.properties.slice().forEach((p, index) => {
|
|
1321
|
+
if (!p.computed) {
|
|
1322
|
+
if (leading) p.value.leadingComments = leading;
|
|
1323
|
+
path.
|
|
1324
|
+
get("openingElement").
|
|
1325
|
+
node.attributes.splice(
|
|
1326
|
+
styleAttribute.key + ++i,
|
|
1327
|
+
0,
|
|
1328
|
+
t__namespace.jsxAttribute(
|
|
1329
|
+
t__namespace.jsxNamespacedName(
|
|
1330
|
+
t__namespace.jsxIdentifier("style"),
|
|
1331
|
+
t__namespace.jsxIdentifier(t__namespace.isIdentifier(p.key) ? p.key.name : p.key.value)),
|
|
1332
|
+
|
|
1333
|
+
t__namespace.jsxExpressionContainer(p.value)));
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
styleAttribute.node.value.expression.properties.splice(index - i - 1, 1);
|
|
1337
|
+
}
|
|
1338
|
+
});
|
|
1339
|
+
if (!styleAttribute.node.value.expression.properties.length)
|
|
1340
|
+
path.get("openingElement").node.attributes.splice(styleAttribute.key, 1);
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
// preprocess classList
|
|
1344
|
+
attributes = path.get("openingElement").get("attributes");
|
|
1345
|
+
const classListAttribute = attributes.find(
|
|
1346
|
+
(a) =>
|
|
1347
|
+
a.node.name &&
|
|
1348
|
+
a.node.name.name === "classList" &&
|
|
1349
|
+
t__namespace.isJSXExpressionContainer(a.node.value) &&
|
|
1350
|
+
t__namespace.isObjectExpression(a.node.value.expression) &&
|
|
1351
|
+
!a.node.value.expression.properties.some(
|
|
1352
|
+
(p) =>
|
|
1353
|
+
t__namespace.isSpreadElement(p) ||
|
|
1354
|
+
p.computed ||
|
|
1355
|
+
t__namespace.isStringLiteral(p.key) && (p.key.value.includes(" ") || p.key.value.includes(":"))));
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
if (classListAttribute) {
|
|
1359
|
+
let i = 0,
|
|
1360
|
+
leading = classListAttribute.node.value.expression.leadingComments,
|
|
1361
|
+
classListProperties = classListAttribute.get("value").get("expression").get("properties");
|
|
1362
|
+
classListProperties.slice().forEach((propPath, index) => {
|
|
1363
|
+
const p = propPath.node;
|
|
1364
|
+
const { confident, value: computed } = propPath.get("value").evaluate();
|
|
1365
|
+
if (leading) p.value.leadingComments = leading;
|
|
1366
|
+
if (!confident) {
|
|
1367
|
+
path.
|
|
1368
|
+
get("openingElement").
|
|
1369
|
+
node.attributes.splice(
|
|
1370
|
+
classListAttribute.key + ++i,
|
|
1371
|
+
0,
|
|
1372
|
+
t__namespace.jsxAttribute(
|
|
1373
|
+
t__namespace.jsxNamespacedName(
|
|
1374
|
+
t__namespace.jsxIdentifier("class"),
|
|
1375
|
+
t__namespace.jsxIdentifier(t__namespace.isIdentifier(p.key) ? p.key.name : p.key.value)),
|
|
1376
|
+
|
|
1377
|
+
t__namespace.jsxExpressionContainer(p.value)));
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
} else if (computed) {
|
|
1381
|
+
path.
|
|
1382
|
+
get("openingElement").
|
|
1383
|
+
node.attributes.splice(
|
|
1384
|
+
classListAttribute.key + ++i,
|
|
1385
|
+
0,
|
|
1386
|
+
t__namespace.jsxAttribute(
|
|
1387
|
+
t__namespace.jsxIdentifier("class"),
|
|
1388
|
+
t__namespace.stringLiteral(t__namespace.isIdentifier(p.key) ? p.key.name : p.key.value)));
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
}
|
|
1392
|
+
classListProperties.splice(index - i - 1, 1);
|
|
1393
|
+
});
|
|
1394
|
+
if (!classListProperties.length)
|
|
1395
|
+
path.get("openingElement").node.attributes.splice(classListAttribute.key, 1);
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
// combine class properties
|
|
1399
|
+
attributes = path.get("openingElement").get("attributes");
|
|
1400
|
+
const classAttributes = attributes.filter(
|
|
1401
|
+
(a) => a.node.name && (a.node.name.name === "class" || a.node.name.name === "className"));
|
|
1402
|
+
|
|
1403
|
+
if (classAttributes.length > 1) {
|
|
1404
|
+
const first = classAttributes[0].node,
|
|
1405
|
+
values = [],
|
|
1406
|
+
quasis = [t__namespace.templateElement({ raw: "" })];
|
|
1407
|
+
for (let i = 0; i < classAttributes.length; i++) {
|
|
1408
|
+
const attr = classAttributes[i].node,
|
|
1409
|
+
isLast = i === classAttributes.length - 1;
|
|
1410
|
+
if (!t__namespace.isJSXExpressionContainer(attr.value)) {
|
|
1411
|
+
const prev = quasis.pop();
|
|
1412
|
+
quasis.push(
|
|
1413
|
+
t__namespace.templateElement({
|
|
1414
|
+
raw: (prev ? prev.value.raw : "") + `${attr.value.value}` + (isLast ? "" : " ")
|
|
1415
|
+
}));
|
|
1416
|
+
|
|
1417
|
+
} else {
|
|
1418
|
+
values.push(t__namespace.logicalExpression("||", attr.value.expression, t__namespace.stringLiteral("")));
|
|
1419
|
+
quasis.push(t__namespace.templateElement({ raw: isLast ? "" : " " }));
|
|
1420
|
+
}
|
|
1421
|
+
i && attributes.splice(attributes.indexOf(classAttributes[i]), 1);
|
|
1422
|
+
}
|
|
1423
|
+
if (values.length) first.value = t__namespace.jsxExpressionContainer(t__namespace.templateLiteral(quasis, values));else
|
|
1424
|
+
first.value = t__namespace.stringLiteral(quasis[0].value.raw);
|
|
1425
|
+
}
|
|
1426
|
+
path.get("openingElement").set(
|
|
1427
|
+
"attributes",
|
|
1428
|
+
attributes.map((a) => a.node));
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
let needsSpacing = true;
|
|
1432
|
+
|
|
1433
|
+
// scoped because of `needsSpacing`
|
|
1434
|
+
function inlineAttributeOnTemplate(isSVG, key, results, value) {
|
|
1435
|
+
!isSVG && (key = key.toLowerCase());
|
|
1436
|
+
results.template += `${needsSpacing ? " " : ""}${key}`;
|
|
1437
|
+
|
|
1438
|
+
if (!value) {
|
|
1439
|
+
needsSpacing = true;
|
|
1440
|
+
return;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
let text = value.value;
|
|
1444
|
+
if (typeof text === "number") text = String(text);
|
|
1445
|
+
let needsQuoting = !config.omitQuotes;
|
|
1446
|
+
|
|
1447
|
+
if (key === "style" || key === "class") {
|
|
1448
|
+
text = trimWhitespace(text);
|
|
1449
|
+
if (key === "style") {
|
|
1450
|
+
text = text.replace(/; /g, ";").replace(/: /g, ":");
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
if (!text.length) {
|
|
1455
|
+
needsSpacing = true;
|
|
1456
|
+
results.template += ``;
|
|
1457
|
+
return;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
for (let i = 0, len = text.length; i < len; i++) {
|
|
1461
|
+
let char = text[i];
|
|
1462
|
+
|
|
1463
|
+
if (
|
|
1464
|
+
char === "'" ||
|
|
1465
|
+
char === '"' ||
|
|
1466
|
+
char === " " ||
|
|
1467
|
+
char === "\t" ||
|
|
1468
|
+
char === "\n" ||
|
|
1469
|
+
char === "\r" ||
|
|
1470
|
+
char === "`" ||
|
|
1471
|
+
char === "=" ||
|
|
1472
|
+
char === "<" ||
|
|
1473
|
+
char === ">")
|
|
1474
|
+
{
|
|
1475
|
+
needsQuoting = true;
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
if (needsQuoting) {
|
|
1480
|
+
needsSpacing = !config.omitAttributeSpacing;
|
|
1481
|
+
results.template += `="${escapeHTML(text, true)}"`;
|
|
1482
|
+
} else {
|
|
1483
|
+
needsSpacing = true;
|
|
1484
|
+
results.template += `=${escapeHTML(text, true)}`;
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
path.
|
|
1489
|
+
get("openingElement").
|
|
1490
|
+
get("attributes").
|
|
1491
|
+
forEach((attribute) => {
|
|
1492
|
+
const node = attribute.node;
|
|
1493
|
+
let value = node.value,
|
|
1494
|
+
key = t__namespace.isJSXNamespacedName(node.name) ?
|
|
1495
|
+
`${node.name.namespace.name}:${node.name.name.name}` :
|
|
1496
|
+
node.name.name,
|
|
1497
|
+
reservedNameSpace =
|
|
1498
|
+
t__namespace.isJSXNamespacedName(node.name) && reservedNameSpaces.has(node.name.namespace.name);
|
|
1499
|
+
if (t__namespace.isJSXExpressionContainer(value) && !key.startsWith("use:")) {
|
|
1500
|
+
const evaluated = attribute.get("value").get("expression").evaluate().value;
|
|
1501
|
+
let type;
|
|
1502
|
+
if (
|
|
1503
|
+
evaluated !== undefined && (
|
|
1504
|
+
(type = typeof evaluated) === "string" || type === "number"))
|
|
1505
|
+
{
|
|
1506
|
+
if (type === "number" && (Properties.has(key) || key.startsWith("prop:"))) {
|
|
1507
|
+
value = t__namespace.jsxExpressionContainer(t__namespace.numericLiteral(evaluated));
|
|
1508
|
+
} else value = t__namespace.stringLiteral(String(evaluated));
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
if (
|
|
1512
|
+
t__namespace.isJSXNamespacedName(node.name) &&
|
|
1513
|
+
reservedNameSpace &&
|
|
1514
|
+
!t__namespace.isJSXExpressionContainer(value))
|
|
1515
|
+
{
|
|
1516
|
+
node.value = value = t__namespace.jsxExpressionContainer(value || t__namespace.jsxEmptyExpression());
|
|
1517
|
+
}
|
|
1518
|
+
if (
|
|
1519
|
+
t__namespace.isJSXExpressionContainer(value) && (
|
|
1520
|
+
reservedNameSpace ||
|
|
1521
|
+
!(t__namespace.isStringLiteral(value.expression) || t__namespace.isNumericLiteral(value.expression))))
|
|
1522
|
+
{
|
|
1523
|
+
if (key === "ref") {
|
|
1524
|
+
// Normalize expressions for non-null and type-as
|
|
1525
|
+
while (
|
|
1526
|
+
t__namespace.isTSNonNullExpression(value.expression) ||
|
|
1527
|
+
t__namespace.isTSAsExpression(value.expression))
|
|
1528
|
+
{
|
|
1529
|
+
value.expression = value.expression.expression;
|
|
1530
|
+
}
|
|
1531
|
+
let binding,
|
|
1532
|
+
isConstant =
|
|
1533
|
+
t__namespace.isIdentifier(value.expression) && (
|
|
1534
|
+
binding = path.scope.getBinding(value.expression.name)) && (
|
|
1535
|
+
binding.kind === "const" || binding.kind === "module");
|
|
1536
|
+
if (!isConstant && t__namespace.isLVal(value.expression)) {
|
|
1537
|
+
const refIdentifier = path.scope.generateUidIdentifier("_ref$");
|
|
1538
|
+
results.exprs.unshift(
|
|
1539
|
+
t__namespace.variableDeclaration("var", [t__namespace.variableDeclarator(refIdentifier, value.expression)]),
|
|
1540
|
+
t__namespace.expressionStatement(
|
|
1541
|
+
t__namespace.conditionalExpression(
|
|
1542
|
+
t__namespace.binaryExpression(
|
|
1543
|
+
"===",
|
|
1544
|
+
t__namespace.unaryExpression("typeof", refIdentifier),
|
|
1545
|
+
t__namespace.stringLiteral("function")),
|
|
1546
|
+
|
|
1547
|
+
t__namespace.callExpression(
|
|
1548
|
+
registerImportMethod(path, "use", getRendererConfig(path, "dom").moduleName),
|
|
1549
|
+
[refIdentifier, elem]),
|
|
1550
|
+
|
|
1551
|
+
t__namespace.assignmentExpression("=", value.expression, elem))));
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
} else if (isConstant || t__namespace.isFunction(value.expression)) {
|
|
1556
|
+
results.exprs.unshift(
|
|
1557
|
+
t__namespace.expressionStatement(
|
|
1558
|
+
t__namespace.callExpression(
|
|
1559
|
+
registerImportMethod(path, "use", getRendererConfig(path, "dom").moduleName),
|
|
1560
|
+
[value.expression, elem])));
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
|
|
1564
|
+
} else {
|
|
1565
|
+
const refIdentifier = path.scope.generateUidIdentifier("_ref$");
|
|
1566
|
+
results.exprs.unshift(
|
|
1567
|
+
t__namespace.variableDeclaration("var", [t__namespace.variableDeclarator(refIdentifier, value.expression)]),
|
|
1568
|
+
t__namespace.expressionStatement(
|
|
1569
|
+
t__namespace.logicalExpression(
|
|
1570
|
+
"&&",
|
|
1571
|
+
t__namespace.binaryExpression(
|
|
1572
|
+
"===",
|
|
1573
|
+
t__namespace.unaryExpression("typeof", refIdentifier),
|
|
1574
|
+
t__namespace.stringLiteral("function")),
|
|
1575
|
+
|
|
1576
|
+
t__namespace.callExpression(
|
|
1577
|
+
registerImportMethod(path, "use", getRendererConfig(path, "dom").moduleName),
|
|
1578
|
+
[refIdentifier, elem]))));
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
}
|
|
1584
|
+
} else if (key.startsWith("use:")) {
|
|
1585
|
+
// Some trick to treat JSXIdentifier as Identifier
|
|
1586
|
+
node.name.name.type = "Identifier";
|
|
1587
|
+
results.exprs.unshift(
|
|
1588
|
+
t__namespace.expressionStatement(
|
|
1589
|
+
t__namespace.callExpression(
|
|
1590
|
+
registerImportMethod(path, "use", getRendererConfig(path, "dom").moduleName),
|
|
1591
|
+
[
|
|
1592
|
+
node.name.name,
|
|
1593
|
+
elem,
|
|
1594
|
+
t__namespace.arrowFunctionExpression(
|
|
1595
|
+
[],
|
|
1596
|
+
t__namespace.isJSXEmptyExpression(value.expression) ?
|
|
1597
|
+
t__namespace.booleanLiteral(true) :
|
|
1598
|
+
value.expression)])));
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
|
|
1604
|
+
} else if (key === "children") {
|
|
1605
|
+
children = value;
|
|
1606
|
+
} else if (key.startsWith("on")) {
|
|
1607
|
+
const ev = toEventName(key);
|
|
1608
|
+
if (key.startsWith("on:")) {
|
|
1609
|
+
const args = [elem, t__namespace.stringLiteral(key.split(":")[1]), value.expression];
|
|
1610
|
+
|
|
1611
|
+
results.exprs.unshift(
|
|
1612
|
+
t__namespace.expressionStatement(
|
|
1613
|
+
t__namespace.callExpression(
|
|
1614
|
+
registerImportMethod(
|
|
1615
|
+
path,
|
|
1616
|
+
"addEventListener",
|
|
1617
|
+
getRendererConfig(path, "dom").moduleName),
|
|
1618
|
+
|
|
1619
|
+
args)));
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
} else if (key.startsWith("oncapture:")) {
|
|
1624
|
+
// deprecated see above condition
|
|
1625
|
+
const args = [
|
|
1626
|
+
t__namespace.stringLiteral(key.split(":")[1]),
|
|
1627
|
+
value.expression,
|
|
1628
|
+
t__namespace.booleanLiteral(true)];
|
|
1629
|
+
|
|
1630
|
+
results.exprs.push(
|
|
1631
|
+
t__namespace.expressionStatement(
|
|
1632
|
+
t__namespace.callExpression(t__namespace.memberExpression(elem, t__namespace.identifier("addEventListener")), args)));
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
} else if (
|
|
1636
|
+
config.delegateEvents && (
|
|
1637
|
+
DelegatedEvents.has(ev) || config.delegatedEvents.indexOf(ev) !== -1))
|
|
1638
|
+
{
|
|
1639
|
+
// can only hydrate delegated events
|
|
1640
|
+
hasHydratableEvent = true;
|
|
1641
|
+
const events =
|
|
1642
|
+
attribute.scope.getProgramParent().data.events || (
|
|
1643
|
+
attribute.scope.getProgramParent().data.events = new Set());
|
|
1644
|
+
events.add(ev);
|
|
1645
|
+
let handler = value.expression;
|
|
1646
|
+
const resolveable = detectResolvableEventHandler(attribute, handler);
|
|
1647
|
+
if (t__namespace.isArrayExpression(handler)) {
|
|
1648
|
+
if (handler.elements.length > 1) {
|
|
1649
|
+
results.exprs.unshift(
|
|
1650
|
+
t__namespace.expressionStatement(
|
|
1651
|
+
t__namespace.assignmentExpression(
|
|
1652
|
+
"=",
|
|
1653
|
+
t__namespace.memberExpression(elem, t__namespace.identifier(`$$${ev}Data`)),
|
|
1654
|
+
handler.elements[1])));
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
}
|
|
1659
|
+
handler = handler.elements[0];
|
|
1660
|
+
results.exprs.unshift(
|
|
1661
|
+
t__namespace.expressionStatement(
|
|
1662
|
+
t__namespace.assignmentExpression(
|
|
1663
|
+
"=",
|
|
1664
|
+
t__namespace.memberExpression(elem, t__namespace.identifier(`$$${ev}`)),
|
|
1665
|
+
handler)));
|
|
1666
|
+
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
} else if (t__namespace.isFunction(handler) || resolveable) {
|
|
1670
|
+
results.exprs.unshift(
|
|
1671
|
+
t__namespace.expressionStatement(
|
|
1672
|
+
t__namespace.assignmentExpression(
|
|
1673
|
+
"=",
|
|
1674
|
+
t__namespace.memberExpression(elem, t__namespace.identifier(`$$${ev}`)),
|
|
1675
|
+
handler)));
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
} else {
|
|
1680
|
+
results.exprs.unshift(
|
|
1681
|
+
t__namespace.expressionStatement(
|
|
1682
|
+
t__namespace.callExpression(
|
|
1683
|
+
registerImportMethod(
|
|
1684
|
+
path,
|
|
1685
|
+
"addEventListener",
|
|
1686
|
+
getRendererConfig(path, "dom").moduleName),
|
|
1687
|
+
|
|
1688
|
+
[elem, t__namespace.stringLiteral(ev), handler, t__namespace.booleanLiteral(true)])));
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
}
|
|
1693
|
+
} else {
|
|
1694
|
+
let handler = value.expression;
|
|
1695
|
+
const resolveable = detectResolvableEventHandler(attribute, handler);
|
|
1696
|
+
if (t__namespace.isArrayExpression(handler)) {
|
|
1697
|
+
if (handler.elements.length > 1) {
|
|
1698
|
+
handler = t__namespace.arrowFunctionExpression(
|
|
1699
|
+
[t__namespace.identifier("e")],
|
|
1700
|
+
t__namespace.callExpression(handler.elements[0], [handler.elements[1], t__namespace.identifier("e")]));
|
|
1701
|
+
|
|
1702
|
+
} else handler = handler.elements[0];
|
|
1703
|
+
results.exprs.unshift(
|
|
1704
|
+
t__namespace.expressionStatement(
|
|
1705
|
+
t__namespace.callExpression(t__namespace.memberExpression(elem, t__namespace.identifier("addEventListener")), [
|
|
1706
|
+
t__namespace.stringLiteral(ev),
|
|
1707
|
+
handler])));
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
} else if (t__namespace.isFunction(handler) || resolveable) {
|
|
1712
|
+
results.exprs.unshift(
|
|
1713
|
+
t__namespace.expressionStatement(
|
|
1714
|
+
t__namespace.callExpression(t__namespace.memberExpression(elem, t__namespace.identifier("addEventListener")), [
|
|
1715
|
+
t__namespace.stringLiteral(ev),
|
|
1716
|
+
handler])));
|
|
1717
|
+
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
} else {
|
|
1721
|
+
results.exprs.unshift(
|
|
1722
|
+
t__namespace.expressionStatement(
|
|
1723
|
+
t__namespace.callExpression(
|
|
1724
|
+
registerImportMethod(
|
|
1725
|
+
path,
|
|
1726
|
+
"addEventListener",
|
|
1727
|
+
getRendererConfig(path, "dom").moduleName),
|
|
1728
|
+
|
|
1729
|
+
[elem, t__namespace.stringLiteral(ev), handler])));
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
} else if (
|
|
1736
|
+
config.effectWrapper && (
|
|
1737
|
+
isDynamic(attribute.get("value").get("expression"), {
|
|
1738
|
+
checkMember: true
|
|
1739
|
+
}) ||
|
|
1740
|
+
(key === "classList" || key === "style") &&
|
|
1741
|
+
!attribute.get("value").get("expression").evaluate().confident &&
|
|
1742
|
+
!hasStaticMarker(value, path)))
|
|
1743
|
+
{
|
|
1744
|
+
/*
|
|
1745
|
+
Following code doesn't repect static marker `@once`.
|
|
1746
|
+
https://github.com/ryansolid/dom-expressions/pull/438
|
|
1747
|
+
||
|
|
1748
|
+
(
|
|
1749
|
+
(
|
|
1750
|
+
key === "classList" || key === "style") &&
|
|
1751
|
+
!attribute.get("value").get("expression").evaluate().confident
|
|
1752
|
+
)
|
|
1753
|
+
)
|
|
1754
|
+
*/
|
|
1755
|
+
|
|
1756
|
+
let nextElem = elem;
|
|
1757
|
+
if (key === "value" || key === "checked") {
|
|
1758
|
+
const effectWrapperId = registerImportMethod(path, config.effectWrapper);
|
|
1759
|
+
results.postExprs.push(
|
|
1760
|
+
t__namespace.expressionStatement(
|
|
1761
|
+
t__namespace.callExpression(effectWrapperId, [
|
|
1762
|
+
t__namespace.arrowFunctionExpression(
|
|
1763
|
+
[],
|
|
1764
|
+
setAttr$2(path, elem, key, value.expression, {
|
|
1765
|
+
tagName,
|
|
1766
|
+
isSVG,
|
|
1767
|
+
isCE
|
|
1768
|
+
}))])));
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
|
|
1773
|
+
return;
|
|
1774
|
+
}
|
|
1775
|
+
if (key === "textContent") {
|
|
1776
|
+
nextElem = attribute.scope.generateUidIdentifier("el$");
|
|
1777
|
+
children = t__namespace.jsxText(" ");
|
|
1778
|
+
children.extra = { raw: " ", rawValue: " " };
|
|
1779
|
+
results.declarations.push(
|
|
1780
|
+
t__namespace.variableDeclarator(nextElem, t__namespace.memberExpression(elem, t__namespace.identifier("firstChild"))));
|
|
1781
|
+
|
|
1782
|
+
}
|
|
1783
|
+
results.dynamics.push({
|
|
1784
|
+
elem: nextElem,
|
|
1785
|
+
key,
|
|
1786
|
+
value: value.expression,
|
|
1787
|
+
isSVG,
|
|
1788
|
+
isCE,
|
|
1789
|
+
tagName
|
|
1790
|
+
});
|
|
1791
|
+
} else if (key.slice(0, 5) === "attr:") {
|
|
1792
|
+
if (t__namespace.isJSXExpressionContainer(value)) value = value.expression;
|
|
1793
|
+
|
|
1794
|
+
if (t__namespace.isStringLiteral(value) || t__namespace.isNumericLiteral(value)) {
|
|
1795
|
+
// inlined "attr:"
|
|
1796
|
+
inlineAttributeOnTemplate(isSVG, key.slice(5), results, value);
|
|
1797
|
+
} else {
|
|
1798
|
+
// dynamic "attr:"
|
|
1799
|
+
results.exprs.push(
|
|
1800
|
+
t__namespace.expressionStatement(setAttr$2(attribute, elem, key, value, { isSVG, isCE, tagName })));
|
|
1801
|
+
|
|
1802
|
+
}
|
|
1803
|
+
} else if (key.slice(0, 5) === "bool:") {
|
|
1804
|
+
// inline it on the template when possible
|
|
1805
|
+
let content = value;
|
|
1806
|
+
|
|
1807
|
+
if (t__namespace.isJSXExpressionContainer(content)) content = content.expression;
|
|
1808
|
+
|
|
1809
|
+
function addBoolAttribute() {
|
|
1810
|
+
results.template += `${needsSpacing ? " " : ""}${key.slice(5)}`;
|
|
1811
|
+
needsSpacing = true;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
switch (content.type) {
|
|
1815
|
+
case "StringLiteral":{
|
|
1816
|
+
if (content.value.length && content.value !== "0") {
|
|
1817
|
+
addBoolAttribute();
|
|
1818
|
+
}
|
|
1819
|
+
return;
|
|
1820
|
+
}
|
|
1821
|
+
case "NullLiteral":{
|
|
1822
|
+
return;
|
|
1823
|
+
}
|
|
1824
|
+
case "BooleanLiteral":{
|
|
1825
|
+
if (content.value) {
|
|
1826
|
+
addBoolAttribute();
|
|
1827
|
+
}
|
|
1828
|
+
return;
|
|
1829
|
+
}
|
|
1830
|
+
case "Identifier":{
|
|
1831
|
+
if (content.name === "undefined") {
|
|
1832
|
+
return;
|
|
1833
|
+
}
|
|
1834
|
+
break;
|
|
1835
|
+
}}
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
// when not possible to inline it in the template
|
|
1839
|
+
results.exprs.push(
|
|
1840
|
+
t__namespace.expressionStatement(
|
|
1841
|
+
setAttr$2(
|
|
1842
|
+
attribute,
|
|
1843
|
+
elem,
|
|
1844
|
+
key,
|
|
1845
|
+
t__namespace.isJSXExpressionContainer(value) ? value.expression : value,
|
|
1846
|
+
{ isSVG, isCE, tagName })));
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
} else {
|
|
1851
|
+
results.exprs.push(
|
|
1852
|
+
t__namespace.expressionStatement(
|
|
1853
|
+
setAttr$2(attribute, elem, key, value.expression, { isSVG, isCE, tagName })));
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
}
|
|
1857
|
+
} else {
|
|
1858
|
+
if (config.hydratable && key === "$ServerOnly") {
|
|
1859
|
+
results.skipTemplate = true;
|
|
1860
|
+
return;
|
|
1861
|
+
}
|
|
1862
|
+
if (t__namespace.isJSXExpressionContainer(value)) value = value.expression;
|
|
1863
|
+
|
|
1864
|
+
// properties
|
|
1865
|
+
key = Aliases[key] || key;
|
|
1866
|
+
if (value && ChildProperties.has(key)) {
|
|
1867
|
+
results.exprs.push(
|
|
1868
|
+
t__namespace.expressionStatement(setAttr$2(attribute, elem, key, value, { isSVG, isCE, tagName })));
|
|
1869
|
+
|
|
1870
|
+
} else {
|
|
1871
|
+
inlineAttributeOnTemplate(isSVG, key, results, value);
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
});
|
|
1875
|
+
if (!hasChildren && children) {
|
|
1876
|
+
path.node.children.push(children);
|
|
1877
|
+
}
|
|
1878
|
+
if (spreadExpr) results.exprs.push(spreadExpr);
|
|
1879
|
+
|
|
1880
|
+
results.hasHydratableEvent = results.hasHydratableEvent || hasHydratableEvent;
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
function findLastElement(children, hydratable) {
|
|
1884
|
+
let lastElement = -1,
|
|
1885
|
+
tagName;
|
|
1886
|
+
for (let i = children.length - 1; i >= 0; i--) {
|
|
1887
|
+
const node = children[i].node;
|
|
1888
|
+
if (
|
|
1889
|
+
hydratable ||
|
|
1890
|
+
t__namespace.isJSXText(node) ||
|
|
1891
|
+
getStaticExpression(children[i]) !== false ||
|
|
1892
|
+
t__namespace.isJSXElement(node) && (tagName = getTagName(node)) && !isComponent(tagName))
|
|
1893
|
+
{
|
|
1894
|
+
lastElement = i;
|
|
1895
|
+
break;
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
return lastElement;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
function transformChildren$2(path, results, config) {
|
|
1902
|
+
let tempPath = results.id && results.id.name,
|
|
1903
|
+
tagName = getTagName(path.node),
|
|
1904
|
+
nextPlaceholder,
|
|
1905
|
+
childPostExprs = [],
|
|
1906
|
+
i = 0;
|
|
1907
|
+
const filteredChildren = filterChildren(path.get("children")),
|
|
1908
|
+
lastElement = findLastElement(filteredChildren, config.hydratable),
|
|
1909
|
+
childNodes = filteredChildren.reduce((memo, child, index) => {
|
|
1910
|
+
if (child.isJSXFragment()) {
|
|
1911
|
+
throw new Error(
|
|
1912
|
+
`Fragments can only be used top level in JSX. Not used under a <${tagName}>.`);
|
|
1913
|
+
|
|
1914
|
+
}
|
|
1915
|
+
const transformed = transformNode(child, {
|
|
1916
|
+
toBeClosed: results.toBeClosed,
|
|
1917
|
+
lastElement: index === lastElement,
|
|
1918
|
+
skipId: !results.id || !detectExpressions(filteredChildren, index, config)
|
|
1919
|
+
});
|
|
1920
|
+
if (!transformed) return memo;
|
|
1921
|
+
const i = memo.length;
|
|
1922
|
+
if (transformed.text && i && memo[i - 1].text) {
|
|
1923
|
+
memo[i - 1].template += transformed.template;
|
|
1924
|
+
memo[i - 1].templateWithClosingTags +=
|
|
1925
|
+
transformed.templateWithClosingTags || transformed.template;
|
|
1926
|
+
} else memo.push(transformed);
|
|
1927
|
+
return memo;
|
|
1928
|
+
}, []);
|
|
1929
|
+
|
|
1930
|
+
childNodes.forEach((child, index) => {
|
|
1931
|
+
if (!child) return;
|
|
1932
|
+
if (child.tagName && child.renderer !== "dom") {
|
|
1933
|
+
throw new Error(`<${child.tagName}> is not supported in <${tagName}>.
|
|
1934
|
+
Wrap the usage with a component that would render this element, eg. Canvas`);
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
results.template += child.template;
|
|
1938
|
+
results.templateWithClosingTags += child.templateWithClosingTags || child.template;
|
|
1939
|
+
results.isImportNode = results.isImportNode || child.isImportNode;
|
|
1940
|
+
|
|
1941
|
+
if (child.id) {
|
|
1942
|
+
if (child.tagName === "head") {
|
|
1943
|
+
if (config.hydratable) {
|
|
1944
|
+
const createComponent = registerImportMethod(
|
|
1945
|
+
path,
|
|
1946
|
+
"createComponent",
|
|
1947
|
+
getRendererConfig(path, "dom").moduleName);
|
|
1948
|
+
|
|
1949
|
+
const NoHydration = registerImportMethod(
|
|
1950
|
+
path,
|
|
1951
|
+
"NoHydration",
|
|
1952
|
+
getRendererConfig(path, "dom").moduleName);
|
|
1953
|
+
|
|
1954
|
+
results.exprs.push(
|
|
1955
|
+
t__namespace.expressionStatement(
|
|
1956
|
+
t__namespace.callExpression(createComponent, [NoHydration, t__namespace.objectExpression([])])));
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
}
|
|
1960
|
+
return;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
let getNextMatch;
|
|
1964
|
+
if (config.hydratable && tagName === "html") {
|
|
1965
|
+
getNextMatch = registerImportMethod(
|
|
1966
|
+
path,
|
|
1967
|
+
"getNextMatch",
|
|
1968
|
+
getRendererConfig(path, "dom").moduleName);
|
|
1969
|
+
|
|
1970
|
+
}
|
|
1971
|
+
const walk = t__namespace.memberExpression(
|
|
1972
|
+
t__namespace.identifier(tempPath),
|
|
1973
|
+
t__namespace.identifier(i === 0 ? "firstChild" : "nextSibling"));
|
|
1974
|
+
|
|
1975
|
+
results.declarations.push(
|
|
1976
|
+
t__namespace.variableDeclarator(
|
|
1977
|
+
child.id,
|
|
1978
|
+
config.hydratable && tagName === "html" ?
|
|
1979
|
+
t__namespace.callExpression(getNextMatch, [walk, t__namespace.stringLiteral(child.tagName)]) :
|
|
1980
|
+
walk));
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
results.declarations.push(...child.declarations);
|
|
1984
|
+
results.exprs.push(...child.exprs);
|
|
1985
|
+
results.dynamics.push(...child.dynamics);
|
|
1986
|
+
childPostExprs.push(...child.postExprs);
|
|
1987
|
+
results.hasHydratableEvent = results.hasHydratableEvent || child.hasHydratableEvent;
|
|
1988
|
+
results.hasCustomElement = results.hasCustomElement || child.hasCustomElement;
|
|
1989
|
+
results.isImportNode = results.isImportNode || child.isImportNode;
|
|
1990
|
+
tempPath = child.id.name;
|
|
1991
|
+
nextPlaceholder = null;
|
|
1992
|
+
i++;
|
|
1993
|
+
} else if (child.exprs.length) {
|
|
1994
|
+
let insert = registerImportMethod(path, "insert", getRendererConfig(path, "dom").moduleName);
|
|
1995
|
+
const multi = checkLength(filteredChildren),
|
|
1996
|
+
markers = config.hydratable && multi;
|
|
1997
|
+
// boxed by textNodes
|
|
1998
|
+
if (markers || wrappedByText(childNodes, index)) {
|
|
1999
|
+
let exprId, contentId;
|
|
2000
|
+
if (markers) tempPath = createPlaceholder(path, results, tempPath, i++, "$")[0].name;
|
|
2001
|
+
if (nextPlaceholder) {
|
|
2002
|
+
exprId = nextPlaceholder;
|
|
2003
|
+
} else {
|
|
2004
|
+
[exprId, contentId] = createPlaceholder(path, results, tempPath, i++, markers ? "/" : "");
|
|
2005
|
+
}
|
|
2006
|
+
if (!markers) nextPlaceholder = exprId;
|
|
2007
|
+
results.exprs.push(
|
|
2008
|
+
t__namespace.expressionStatement(
|
|
2009
|
+
t__namespace.callExpression(
|
|
2010
|
+
insert,
|
|
2011
|
+
contentId ?
|
|
2012
|
+
[results.id, child.exprs[0], exprId, contentId] :
|
|
2013
|
+
[results.id, child.exprs[0], exprId])));
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
tempPath = exprId.name;
|
|
2018
|
+
} else if (multi) {
|
|
2019
|
+
results.exprs.push(
|
|
2020
|
+
t__namespace.expressionStatement(
|
|
2021
|
+
t__namespace.callExpression(insert, [
|
|
2022
|
+
results.id,
|
|
2023
|
+
child.exprs[0],
|
|
2024
|
+
nextChild$1(childNodes, index) || t__namespace.nullLiteral()])));
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
} else {
|
|
2029
|
+
results.exprs.push(
|
|
2030
|
+
t__namespace.expressionStatement(t__namespace.callExpression(insert, [results.id, child.exprs[0]])));
|
|
2031
|
+
|
|
2032
|
+
}
|
|
2033
|
+
} else nextPlaceholder = null;
|
|
2034
|
+
});
|
|
2035
|
+
results.postExprs.unshift(...childPostExprs);
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
function createPlaceholder(path, results, tempPath, i, char) {
|
|
2039
|
+
const exprId = path.scope.generateUidIdentifier("el$"),
|
|
2040
|
+
config = getConfig(path);
|
|
2041
|
+
let contentId;
|
|
2042
|
+
results.template += `<!${char}>`;
|
|
2043
|
+
results.templateWithClosingTags += `<!${char}>`;
|
|
2044
|
+
if (config.hydratable && char === "/") {
|
|
2045
|
+
contentId = path.scope.generateUidIdentifier("co$");
|
|
2046
|
+
results.declarations.push(
|
|
2047
|
+
t__namespace.variableDeclarator(
|
|
2048
|
+
t__namespace.arrayPattern([exprId, contentId]),
|
|
2049
|
+
t__namespace.callExpression(
|
|
2050
|
+
registerImportMethod(path, "getNextMarker", getRendererConfig(path, "dom").moduleName),
|
|
2051
|
+
[t__namespace.memberExpression(t__namespace.identifier(tempPath), t__namespace.identifier("nextSibling"))])));
|
|
2052
|
+
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
} else
|
|
2056
|
+
results.declarations.push(
|
|
2057
|
+
t__namespace.variableDeclarator(
|
|
2058
|
+
exprId,
|
|
2059
|
+
t__namespace.memberExpression(
|
|
2060
|
+
t__namespace.identifier(tempPath),
|
|
2061
|
+
t__namespace.identifier(i === 0 ? "firstChild" : "nextSibling"))));
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
|
|
2065
|
+
return [exprId, contentId];
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
function nextChild$1(children, index) {
|
|
2069
|
+
return children[index + 1] && (children[index + 1].id || nextChild$1(children, index + 1));
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
// reduce unnecessary refs
|
|
2073
|
+
function detectExpressions(children, index, config) {
|
|
2074
|
+
if (children[index - 1]) {
|
|
2075
|
+
const node = children[index - 1].node;
|
|
2076
|
+
if (
|
|
2077
|
+
t__namespace.isJSXExpressionContainer(node) &&
|
|
2078
|
+
!t__namespace.isJSXEmptyExpression(node.expression) &&
|
|
2079
|
+
getStaticExpression(children[index - 1]) === false)
|
|
2080
|
+
|
|
2081
|
+
return true;
|
|
2082
|
+
let tagName;
|
|
2083
|
+
if (t__namespace.isJSXElement(node) && (tagName = getTagName(node)) && isComponent(tagName)) return true;
|
|
2084
|
+
}
|
|
2085
|
+
for (let i = index; i < children.length; i++) {
|
|
2086
|
+
const child = children[i].node;
|
|
2087
|
+
if (t__namespace.isJSXExpressionContainer(child)) {
|
|
2088
|
+
if (!t__namespace.isJSXEmptyExpression(child.expression) && getStaticExpression(children[i]) === false)
|
|
2089
|
+
return true;
|
|
2090
|
+
} else if (t__namespace.isJSXElement(child)) {
|
|
2091
|
+
const tagName = getTagName(child);
|
|
2092
|
+
if (isComponent(tagName)) return true;
|
|
2093
|
+
if (
|
|
2094
|
+
config.contextToCustomElements && (
|
|
2095
|
+
tagName === "slot" ||
|
|
2096
|
+
tagName.indexOf("-") > -1 ||
|
|
2097
|
+
child.openingElement.attributes.some((a) => a.name?.name === "is")))
|
|
2098
|
+
|
|
2099
|
+
return true;
|
|
2100
|
+
if (
|
|
2101
|
+
child.openingElement.attributes.some(
|
|
2102
|
+
(attr) =>
|
|
2103
|
+
t__namespace.isJSXSpreadAttribute(attr) ||
|
|
2104
|
+
["textContent", "innerHTML", "innerText"].includes(attr.name.name) ||
|
|
2105
|
+
attr.name.namespace && (
|
|
2106
|
+
attr.name.namespace.name === "use" || attr.name.namespace.name === "prop") ||
|
|
2107
|
+
t__namespace.isJSXExpressionContainer(attr.value) &&
|
|
2108
|
+
!(
|
|
2109
|
+
t__namespace.isStringLiteral(attr.value.expression) ||
|
|
2110
|
+
t__namespace.isNumericLiteral(attr.value.expression))))
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
|
|
2114
|
+
return true;
|
|
2115
|
+
const nextChildren = filterChildren(children[i].get("children"));
|
|
2116
|
+
if (nextChildren.length) if (detectExpressions(nextChildren, 0, config)) return true;
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
function contextToCustomElement(path, results) {
|
|
2122
|
+
results.exprs.push(
|
|
2123
|
+
t__namespace.expressionStatement(
|
|
2124
|
+
t__namespace.assignmentExpression(
|
|
2125
|
+
"=",
|
|
2126
|
+
t__namespace.memberExpression(results.id, t__namespace.identifier("_$owner")),
|
|
2127
|
+
t__namespace.callExpression(
|
|
2128
|
+
registerImportMethod(path, "getOwner", getRendererConfig(path, "dom").moduleName),
|
|
2129
|
+
[]))));
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
function processSpreads$1(path, attributes, { elem, isSVG, hasChildren, wrapConditionals }) {
|
|
2137
|
+
const config = getConfig(path);
|
|
2138
|
+
// TODO: skip but collect the names of any properties after the last spread to not overwrite them
|
|
2139
|
+
const filteredAttributes = [];
|
|
2140
|
+
const spreadArgs = [];
|
|
2141
|
+
let runningObject = [];
|
|
2142
|
+
let dynamicSpread = false;
|
|
2143
|
+
let firstSpread = false;
|
|
2144
|
+
attributes.forEach((attribute) => {
|
|
2145
|
+
const node = attribute.node;
|
|
2146
|
+
const key =
|
|
2147
|
+
!t__namespace.isJSXSpreadAttribute(node) && (
|
|
2148
|
+
t__namespace.isJSXNamespacedName(node.name) ?
|
|
2149
|
+
`${node.name.namespace.name}:${node.name.name.name}` :
|
|
2150
|
+
node.name.name);
|
|
2151
|
+
if (t__namespace.isJSXSpreadAttribute(node)) {
|
|
2152
|
+
const isStatic =
|
|
2153
|
+
node.innerComments &&
|
|
2154
|
+
node.innerComments[0] &&
|
|
2155
|
+
node.innerComments[0].value.trim() === config.staticMarker;
|
|
2156
|
+
|
|
2157
|
+
firstSpread = true;
|
|
2158
|
+
if (runningObject.length) {
|
|
2159
|
+
spreadArgs.push(t__namespace.objectExpression(runningObject));
|
|
2160
|
+
runningObject = [];
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
const s =
|
|
2164
|
+
isDynamic(attribute.get("argument"), {
|
|
2165
|
+
checkMember: true
|
|
2166
|
+
}) && (dynamicSpread = true) ?
|
|
2167
|
+
t__namespace.isCallExpression(node.argument) &&
|
|
2168
|
+
!node.argument.arguments.length &&
|
|
2169
|
+
!t__namespace.isCallExpression(node.argument.callee) &&
|
|
2170
|
+
!t__namespace.isMemberExpression(node.argument.callee) ?
|
|
2171
|
+
node.argument.callee :
|
|
2172
|
+
t__namespace.arrowFunctionExpression([], node.argument) :
|
|
2173
|
+
node.argument;
|
|
2174
|
+
|
|
2175
|
+
spreadArgs.push(isStatic ? t__namespace.objectExpression([t__namespace.spreadElement(s)]) : s);
|
|
2176
|
+
} else if (
|
|
2177
|
+
(firstSpread ||
|
|
2178
|
+
t__namespace.isJSXExpressionContainer(node.value) &&
|
|
2179
|
+
isDynamic(attribute.get("value").get("expression"), { checkMember: true })) &&
|
|
2180
|
+
canNativeSpread(key, { checkNameSpaces: true }))
|
|
2181
|
+
{
|
|
2182
|
+
const isContainer = t__namespace.isJSXExpressionContainer(node.value);
|
|
2183
|
+
const dynamic =
|
|
2184
|
+
isContainer && isDynamic(attribute.get("value").get("expression"), { checkMember: true });
|
|
2185
|
+
if (dynamic) {
|
|
2186
|
+
const id = convertJSXIdentifier(node.name);
|
|
2187
|
+
let expr =
|
|
2188
|
+
wrapConditionals && (
|
|
2189
|
+
t__namespace.isLogicalExpression(node.value.expression) ||
|
|
2190
|
+
t__namespace.isConditionalExpression(node.value.expression)) ?
|
|
2191
|
+
transformCondition(attribute.get("value").get("expression"), true) :
|
|
2192
|
+
t__namespace.arrowFunctionExpression([], node.value.expression);
|
|
2193
|
+
runningObject.push(
|
|
2194
|
+
t__namespace.objectMethod(
|
|
2195
|
+
"get",
|
|
2196
|
+
id,
|
|
2197
|
+
[],
|
|
2198
|
+
t__namespace.blockStatement([t__namespace.returnStatement(expr.body)]),
|
|
2199
|
+
!t__namespace.isValidIdentifier(key)));
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
} else {
|
|
2203
|
+
runningObject.push(
|
|
2204
|
+
t__namespace.objectProperty(
|
|
2205
|
+
t__namespace.stringLiteral(key),
|
|
2206
|
+
isContainer ?
|
|
2207
|
+
node.value.expression :
|
|
2208
|
+
node.value || (Properties.has(key) ? t__namespace.booleanLiteral(true) : t__namespace.stringLiteral(""))));
|
|
2209
|
+
|
|
2210
|
+
|
|
2211
|
+
}
|
|
2212
|
+
} else filteredAttributes.push(attribute);
|
|
2213
|
+
});
|
|
2214
|
+
|
|
2215
|
+
if (runningObject.length) {
|
|
2216
|
+
spreadArgs.push(t__namespace.objectExpression(runningObject));
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
const props =
|
|
2220
|
+
spreadArgs.length === 1 && !dynamicSpread ?
|
|
2221
|
+
spreadArgs[0] :
|
|
2222
|
+
t__namespace.callExpression(registerImportMethod(path, "mergeProps"), spreadArgs);
|
|
2223
|
+
|
|
2224
|
+
return [
|
|
2225
|
+
filteredAttributes,
|
|
2226
|
+
t__namespace.expressionStatement(
|
|
2227
|
+
t__namespace.callExpression(
|
|
2228
|
+
registerImportMethod(path, "spread", getRendererConfig(path, "dom").moduleName),
|
|
2229
|
+
[elem, props, t__namespace.booleanLiteral(isSVG), t__namespace.booleanLiteral(hasChildren)]))];
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
function createTemplate$2(path, result, wrap) {
|
|
2236
|
+
const config = getConfig(path);
|
|
2237
|
+
if (result.id) {
|
|
2238
|
+
registerTemplate(path, result);
|
|
2239
|
+
if (
|
|
2240
|
+
!(result.exprs.length || result.dynamics.length || result.postExprs.length) &&
|
|
2241
|
+
result.decl.declarations.length === 1)
|
|
2242
|
+
{
|
|
2243
|
+
return result.decl.declarations[0].init;
|
|
2244
|
+
} else {
|
|
2245
|
+
return t__namespace.callExpression(
|
|
2246
|
+
t__namespace.arrowFunctionExpression(
|
|
2247
|
+
[],
|
|
2248
|
+
t__namespace.blockStatement([
|
|
2249
|
+
result.decl,
|
|
2250
|
+
...result.exprs.concat(
|
|
2251
|
+
wrapDynamics$1(path, result.dynamics) || [],
|
|
2252
|
+
result.postExprs || []),
|
|
2253
|
+
|
|
2254
|
+
t__namespace.returnStatement(result.id)])),
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
[]);
|
|
2258
|
+
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
if (wrap && result.dynamic && config.memoWrapper) {
|
|
2262
|
+
return t__namespace.callExpression(registerImportMethod(path, config.memoWrapper), [result.exprs[0]]);
|
|
2263
|
+
}
|
|
2264
|
+
return result.exprs[0];
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
function appendTemplates$1(path, templates) {
|
|
2268
|
+
const declarators = templates.map((template) => {
|
|
2269
|
+
const tmpl = {
|
|
2270
|
+
cooked: template.template,
|
|
2271
|
+
raw: escapeStringForTemplate(template.template)
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2274
|
+
const shouldUseImportNode = template.isCE || template.isImportNode;
|
|
2275
|
+
const isMathML =
|
|
2276
|
+
/^<(math|annotation|annotation-xml|maction|math|merror|mfrac|mi|mmultiscripts|mn|mo|mover|mpadded|mphantom|mprescripts|mroot|mrow|ms|mspace|msqrt|mstyle|msub|msubsup|msup|mtable|mtd|mtext|mtr|munder|munderover|semantics|menclose|mfenced)(\s|>)/.test(
|
|
2277
|
+
template.template);
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
return t__namespace.variableDeclarator(
|
|
2281
|
+
template.id,
|
|
2282
|
+
t__namespace.addComment(
|
|
2283
|
+
t__namespace.callExpression(
|
|
2284
|
+
registerImportMethod(path, "template", getRendererConfig(path, "dom").moduleName),
|
|
2285
|
+
[t__namespace.templateLiteral([t__namespace.templateElement(tmpl, true)], [])].concat(
|
|
2286
|
+
template.isSVG || shouldUseImportNode || isMathML ?
|
|
2287
|
+
[
|
|
2288
|
+
t__namespace.booleanLiteral(!!shouldUseImportNode),
|
|
2289
|
+
t__namespace.booleanLiteral(template.isSVG),
|
|
2290
|
+
t__namespace.booleanLiteral(isMathML)] :
|
|
2291
|
+
|
|
2292
|
+
[])),
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
"leading",
|
|
2296
|
+
"#__PURE__"));
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
});
|
|
2300
|
+
path.node.body.unshift(t__namespace.variableDeclaration("var", declarators));
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
function registerTemplate(path, results) {
|
|
2304
|
+
const { hydratable } = getConfig(path);
|
|
2305
|
+
let decl;
|
|
2306
|
+
if (results.template.length) {
|
|
2307
|
+
let templateDef, templateId;
|
|
2308
|
+
if (!results.skipTemplate) {
|
|
2309
|
+
const templates =
|
|
2310
|
+
path.scope.getProgramParent().data.templates || (
|
|
2311
|
+
path.scope.getProgramParent().data.templates = []);
|
|
2312
|
+
if (templateDef = templates.find((t) => t.template === results.template)) {
|
|
2313
|
+
templateId = templateDef.id;
|
|
2314
|
+
} else {
|
|
2315
|
+
templateId = path.scope.generateUidIdentifier("tmpl$");
|
|
2316
|
+
templates.push({
|
|
2317
|
+
id: templateId,
|
|
2318
|
+
template: results.template,
|
|
2319
|
+
templateWithClosingTags: results.templateWithClosingTags,
|
|
2320
|
+
isSVG: results.isSVG,
|
|
2321
|
+
isCE: results.hasCustomElement,
|
|
2322
|
+
isImportNode: results.isImportNode,
|
|
2323
|
+
renderer: "dom"
|
|
2324
|
+
});
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
decl = t__namespace.variableDeclarator(
|
|
2328
|
+
results.id,
|
|
2329
|
+
hydratable ?
|
|
2330
|
+
t__namespace.callExpression(
|
|
2331
|
+
registerImportMethod(path, "getNextElement", getRendererConfig(path, "dom").moduleName),
|
|
2332
|
+
templateId ? [templateId] : []) :
|
|
2333
|
+
|
|
2334
|
+
t__namespace.callExpression(templateId, []));
|
|
2335
|
+
|
|
2336
|
+
}
|
|
2337
|
+
results.declarations.unshift(decl);
|
|
2338
|
+
results.decl = t__namespace.variableDeclaration("var", results.declarations);
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
function wrapDynamics$1(path, dynamics) {
|
|
2342
|
+
if (!dynamics.length) return;
|
|
2343
|
+
const config = getConfig(path);
|
|
2344
|
+
|
|
2345
|
+
const effectWrapperId = registerImportMethod(path, config.effectWrapper);
|
|
2346
|
+
|
|
2347
|
+
if (dynamics.length === 1) {
|
|
2348
|
+
let dynamicStyle;
|
|
2349
|
+
const prevValue =
|
|
2350
|
+
dynamics[0].key === "classList" ||
|
|
2351
|
+
dynamics[0].key === "style" || (
|
|
2352
|
+
dynamicStyle = dynamics[0].key.startsWith("style:")) ?
|
|
2353
|
+
t__namespace.identifier("_$p") :
|
|
2354
|
+
undefined;
|
|
2355
|
+
if (dynamicStyle) {
|
|
2356
|
+
dynamics[0].value = t__namespace.assignmentExpression("=", prevValue, dynamics[0].value);
|
|
2357
|
+
} else if (
|
|
2358
|
+
dynamics[0].key.startsWith("class:") &&
|
|
2359
|
+
!t__namespace.isBooleanLiteral(dynamics[0].value) &&
|
|
2360
|
+
!t__namespace.isUnaryExpression(dynamics[0].value))
|
|
2361
|
+
{
|
|
2362
|
+
dynamics[0].value = t__namespace.unaryExpression("!", t__namespace.unaryExpression("!", dynamics[0].value));
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
return t__namespace.expressionStatement(
|
|
2366
|
+
t__namespace.callExpression(effectWrapperId, [
|
|
2367
|
+
t__namespace.arrowFunctionExpression(
|
|
2368
|
+
prevValue ? [prevValue] : [],
|
|
2369
|
+
setAttr$2(path, dynamics[0].elem, dynamics[0].key, dynamics[0].value, {
|
|
2370
|
+
isSVG: dynamics[0].isSVG,
|
|
2371
|
+
isCE: dynamics[0].isCE,
|
|
2372
|
+
tagName: dynamics[0].tagName,
|
|
2373
|
+
dynamic: true,
|
|
2374
|
+
prevId: prevValue
|
|
2375
|
+
}))]));
|
|
2376
|
+
|
|
2377
|
+
|
|
2378
|
+
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
const prevId = t__namespace.identifier("_p$");
|
|
2382
|
+
|
|
2383
|
+
/** @type {t.VariableDeclarator[]} */
|
|
2384
|
+
const declarations = [];
|
|
2385
|
+
/** @type {t.ExpressionStatement[]} */
|
|
2386
|
+
const statements = [];
|
|
2387
|
+
/** @type {t.Identifier[]} */
|
|
2388
|
+
const properties = [];
|
|
2389
|
+
|
|
2390
|
+
dynamics.forEach(({ elem, key, value, isSVG, isCE, tagName }, index) => {
|
|
2391
|
+
const varIdent = path.scope.generateUidIdentifier("v$");
|
|
2392
|
+
|
|
2393
|
+
const propIdent = t__namespace.identifier(getNumberedId(index));
|
|
2394
|
+
const propMember = t__namespace.memberExpression(prevId, propIdent);
|
|
2395
|
+
|
|
2396
|
+
if (key.startsWith("class:") && !t__namespace.isBooleanLiteral(value) && !t__namespace.isUnaryExpression(value)) {
|
|
2397
|
+
value = t__namespace.unaryExpression("!", t__namespace.unaryExpression("!", value));
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
properties.push(propIdent);
|
|
2401
|
+
declarations.push(t__namespace.variableDeclarator(varIdent, value));
|
|
2402
|
+
|
|
2403
|
+
if (key === "classList" || key === "style") {
|
|
2404
|
+
statements.push(
|
|
2405
|
+
t__namespace.expressionStatement(
|
|
2406
|
+
t__namespace.assignmentExpression(
|
|
2407
|
+
"=",
|
|
2408
|
+
propMember,
|
|
2409
|
+
setAttr$2(path, elem, key, varIdent, {
|
|
2410
|
+
isSVG,
|
|
2411
|
+
isCE,
|
|
2412
|
+
tagName,
|
|
2413
|
+
dynamic: true,
|
|
2414
|
+
prevId: propMember
|
|
2415
|
+
}))));
|
|
2416
|
+
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
} else {
|
|
2420
|
+
const prev = key.startsWith("style:") ? varIdent : undefined;
|
|
2421
|
+
statements.push(
|
|
2422
|
+
t__namespace.expressionStatement(
|
|
2423
|
+
t__namespace.logicalExpression(
|
|
2424
|
+
"&&",
|
|
2425
|
+
t__namespace.binaryExpression("!==", varIdent, propMember),
|
|
2426
|
+
setAttr$2(path, elem, key, t__namespace.assignmentExpression("=", propMember, varIdent), {
|
|
2427
|
+
isSVG,
|
|
2428
|
+
isCE,
|
|
2429
|
+
tagName,
|
|
2430
|
+
dynamic: true,
|
|
2431
|
+
prevId: prev
|
|
2432
|
+
}))));
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
}
|
|
2437
|
+
});
|
|
2438
|
+
|
|
2439
|
+
return t__namespace.expressionStatement(
|
|
2440
|
+
t__namespace.callExpression(effectWrapperId, [
|
|
2441
|
+
t__namespace.arrowFunctionExpression(
|
|
2442
|
+
[prevId],
|
|
2443
|
+
t__namespace.blockStatement([
|
|
2444
|
+
t__namespace.variableDeclaration("var", declarations),
|
|
2445
|
+
...statements,
|
|
2446
|
+
t__namespace.returnStatement(prevId)])),
|
|
2447
|
+
|
|
2448
|
+
|
|
2449
|
+
t__namespace.objectExpression(properties.map((id) => t__namespace.objectProperty(id, t__namespace.identifier("undefined"))))]));
|
|
2450
|
+
|
|
2451
|
+
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
function createTemplate$1(path, result) {
|
|
2455
|
+
if (!result.template) {
|
|
2456
|
+
return result.exprs[0];
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
let template, id;
|
|
2460
|
+
|
|
2461
|
+
if (!Array.isArray(result.template)) {
|
|
2462
|
+
template = t__namespace.stringLiteral(result.template);
|
|
2463
|
+
} else if (result.template.length === 1) {
|
|
2464
|
+
template = t__namespace.stringLiteral(result.template[0]);
|
|
2465
|
+
} else {
|
|
2466
|
+
const strings = result.template.map((tmpl) => t__namespace.stringLiteral(tmpl));
|
|
2467
|
+
template = t__namespace.arrayExpression(strings);
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
const templates =
|
|
2471
|
+
path.scope.getProgramParent().data.templates || (
|
|
2472
|
+
path.scope.getProgramParent().data.templates = []);
|
|
2473
|
+
const found = templates.find((tmp) => {
|
|
2474
|
+
if (t__namespace.isArrayExpression(tmp.template) && t__namespace.isArrayExpression(template)) {
|
|
2475
|
+
return tmp.template.elements.every(
|
|
2476
|
+
(el, i) => template.elements[i] && el.value === template.elements[i].value);
|
|
2477
|
+
|
|
2478
|
+
}
|
|
2479
|
+
return tmp.template.value === template.value;
|
|
2480
|
+
});
|
|
2481
|
+
if (!found) {
|
|
2482
|
+
id = path.scope.generateUidIdentifier("tmpl$");
|
|
2483
|
+
templates.push({
|
|
2484
|
+
id,
|
|
2485
|
+
template,
|
|
2486
|
+
templateWithClosingTags: template,
|
|
2487
|
+
renderer: "ssr"
|
|
2488
|
+
});
|
|
2489
|
+
} else id = found.id;
|
|
2490
|
+
|
|
2491
|
+
if (result.wontEscape) {
|
|
2492
|
+
if (!Array.isArray(result.template) || result.template.length === 1) return id;else
|
|
2493
|
+
if (
|
|
2494
|
+
Array.isArray(result.template) &&
|
|
2495
|
+
result.template.length === 2 &&
|
|
2496
|
+
result.templateValues[0].type === "CallExpression" &&
|
|
2497
|
+
result.templateValues[0].callee.name === "_$ssrHydrationKey")
|
|
2498
|
+
{
|
|
2499
|
+
// remove unnecessary ssr call when only hydration key is used
|
|
2500
|
+
return t__namespace.binaryExpression(
|
|
2501
|
+
"+",
|
|
2502
|
+
t__namespace.binaryExpression(
|
|
2503
|
+
"+",
|
|
2504
|
+
t__namespace.memberExpression(id, t__namespace.numericLiteral(0), true),
|
|
2505
|
+
result.templateValues[0]),
|
|
2506
|
+
|
|
2507
|
+
t__namespace.memberExpression(id, t__namespace.numericLiteral(1), true));
|
|
2508
|
+
|
|
2509
|
+
}
|
|
2510
|
+
}
|
|
2511
|
+
return t__namespace.callExpression(
|
|
2512
|
+
registerImportMethod(path, "ssr"),
|
|
2513
|
+
Array.isArray(result.template) && result.template.length > 1 ?
|
|
2514
|
+
[id, ...result.templateValues] :
|
|
2515
|
+
[id]);
|
|
2516
|
+
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
function appendTemplates(path, templates) {
|
|
2520
|
+
const declarators = templates.map((template) => {
|
|
2521
|
+
return t__namespace.variableDeclarator(template.id, template.template);
|
|
2522
|
+
});
|
|
2523
|
+
path.node.body.unshift(t__namespace.variableDeclaration("var", declarators));
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
function appendToTemplate(template, value) {
|
|
2527
|
+
let array;
|
|
2528
|
+
if (Array.isArray(value)) {
|
|
2529
|
+
[value, ...array] = value;
|
|
2530
|
+
}
|
|
2531
|
+
template[template.length - 1] += value;
|
|
2532
|
+
if (array && array.length) template.push.apply(template, array);
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
function transformElement$2(path, info) {
|
|
2536
|
+
path.
|
|
2537
|
+
get("openingElement").
|
|
2538
|
+
get("attributes").
|
|
2539
|
+
forEach((attr) => {
|
|
2540
|
+
evaluateAndInline(attr.node.value, attr.get("value"));
|
|
2541
|
+
});
|
|
2542
|
+
|
|
2543
|
+
const config = getConfig(path);
|
|
2544
|
+
const tagName = getTagName(path.node);
|
|
2545
|
+
if (tagName === "script" || tagName === "style") path.doNotEscape = true;
|
|
2546
|
+
|
|
2547
|
+
// contains spread attributes
|
|
2548
|
+
if (path.node.openingElement.attributes.some((a) => t__namespace.isJSXSpreadAttribute(a)))
|
|
2549
|
+
return createElement(path, { ...info, ...config });
|
|
2550
|
+
|
|
2551
|
+
const voidTag = VoidElements.indexOf(tagName) > -1,
|
|
2552
|
+
results = {
|
|
2553
|
+
template: [`<${tagName}`],
|
|
2554
|
+
templateValues: [],
|
|
2555
|
+
declarations: [],
|
|
2556
|
+
exprs: [],
|
|
2557
|
+
dynamics: [],
|
|
2558
|
+
tagName,
|
|
2559
|
+
wontEscape: path.node.wontEscape,
|
|
2560
|
+
renderer: "ssr"
|
|
2561
|
+
};
|
|
2562
|
+
|
|
2563
|
+
if (info.topLevel && config.hydratable) {
|
|
2564
|
+
if (tagName === "head") {
|
|
2565
|
+
registerImportMethod(path, "NoHydration");
|
|
2566
|
+
registerImportMethod(path, "createComponent");
|
|
2567
|
+
const child = transformElement$2(path, { ...info, topLevel: false });
|
|
2568
|
+
results.template = "";
|
|
2569
|
+
results.templateWithClosingTags = "";
|
|
2570
|
+
results.exprs.push(
|
|
2571
|
+
t__namespace.callExpression(t__namespace.identifier("_$createComponent"), [
|
|
2572
|
+
t__namespace.identifier("_$NoHydration"),
|
|
2573
|
+
t__namespace.objectExpression([
|
|
2574
|
+
t__namespace.objectMethod(
|
|
2575
|
+
"get",
|
|
2576
|
+
t__namespace.identifier("children"),
|
|
2577
|
+
[],
|
|
2578
|
+
t__namespace.blockStatement([t__namespace.returnStatement(createTemplate$1(path, child))]))])]));
|
|
2579
|
+
|
|
2580
|
+
|
|
2581
|
+
|
|
2582
|
+
|
|
2583
|
+
return results;
|
|
2584
|
+
}
|
|
2585
|
+
results.template.push("");
|
|
2586
|
+
results.templateValues.push(
|
|
2587
|
+
t__namespace.callExpression(registerImportMethod(path, "ssrHydrationKey"), []));
|
|
2588
|
+
|
|
2589
|
+
}
|
|
2590
|
+
transformAttributes$1(path, results, { ...config, ...info });
|
|
2591
|
+
appendToTemplate(results.template, ">");
|
|
2592
|
+
if (!voidTag) {
|
|
2593
|
+
transformChildren$1(path, results, { ...config, ...info });
|
|
2594
|
+
appendToTemplate(results.template, `</${tagName}>`);
|
|
2595
|
+
}
|
|
2596
|
+
return results;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
function toAttribute(key, isSVG) {
|
|
2600
|
+
key = Aliases[key] || key;
|
|
2601
|
+
!isSVG && (key = key.toLowerCase());
|
|
2602
|
+
return key;
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
function setAttr$1(attribute, results, name, value, isSVG) {
|
|
2606
|
+
// strip out namespaces for now, everything at this point is an attribute
|
|
2607
|
+
let parts;
|
|
2608
|
+
if ((parts = name.split(":")) && parts[1] && reservedNameSpaces.has(parts[0])) {
|
|
2609
|
+
name = parts[1];
|
|
2610
|
+
parts[0];
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
name = toAttribute(name, isSVG);
|
|
2614
|
+
const attr = t__namespace.callExpression(registerImportMethod(attribute, "ssrAttribute"), [
|
|
2615
|
+
t__namespace.stringLiteral(name),
|
|
2616
|
+
value,
|
|
2617
|
+
t__namespace.booleanLiteral(false)]);
|
|
2618
|
+
|
|
2619
|
+
if (results.template[results.template.length - 1].length) {
|
|
2620
|
+
results.template.push("");
|
|
2621
|
+
results.templateValues.push(attr);
|
|
2622
|
+
} else {
|
|
2623
|
+
const last = results.templateValues.length - 1;
|
|
2624
|
+
results.templateValues[last] = t__namespace.binaryExpression("+", results.templateValues[last], attr);
|
|
2625
|
+
}
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
function escapeExpression(path, expression, attr, escapeLiterals) {
|
|
2629
|
+
if (
|
|
2630
|
+
t__namespace.isStringLiteral(expression) ||
|
|
2631
|
+
t__namespace.isNumericLiteral(expression) ||
|
|
2632
|
+
t__namespace.isTemplateLiteral(expression) && expression.expressions.length === 0)
|
|
2633
|
+
{
|
|
2634
|
+
if (escapeLiterals) {
|
|
2635
|
+
if (t__namespace.isStringLiteral(expression)) return t__namespace.stringLiteral(escapeHTML(expression.value, attr));else
|
|
2636
|
+
if (t__namespace.isTemplateLiteral(expression))
|
|
2637
|
+
return t__namespace.stringLiteral(escapeHTML(expression.quasis[0].value.raw, attr));
|
|
2638
|
+
}
|
|
2639
|
+
return expression;
|
|
2640
|
+
} else if (t__namespace.isFunction(expression)) {
|
|
2641
|
+
if (t__namespace.isBlockStatement(expression.body)) {
|
|
2642
|
+
expression.body.body = expression.body.body.map((e) => {
|
|
2643
|
+
if (t__namespace.isReturnStatement(e))
|
|
2644
|
+
e.argument = escapeExpression(path, e.argument, attr, escapeLiterals);
|
|
2645
|
+
return e;
|
|
2646
|
+
});
|
|
2647
|
+
} else expression.body = escapeExpression(path, expression.body, attr, escapeLiterals);
|
|
2648
|
+
return expression;
|
|
2649
|
+
} else if (t__namespace.isTemplateLiteral(expression)) {
|
|
2650
|
+
expression.expressions = expression.expressions.map((e) =>
|
|
2651
|
+
escapeExpression(path, e, attr, escapeLiterals));
|
|
2652
|
+
|
|
2653
|
+
return expression;
|
|
2654
|
+
} else if (t__namespace.isUnaryExpression(expression)) {
|
|
2655
|
+
return expression;
|
|
2656
|
+
} else if (t__namespace.isBinaryExpression(expression)) {
|
|
2657
|
+
expression.left = escapeExpression(path, expression.left, attr, escapeLiterals);
|
|
2658
|
+
expression.right = escapeExpression(path, expression.right, attr, escapeLiterals);
|
|
2659
|
+
return expression;
|
|
2660
|
+
} else if (t__namespace.isConditionalExpression(expression)) {
|
|
2661
|
+
expression.consequent = escapeExpression(path, expression.consequent, attr, escapeLiterals);
|
|
2662
|
+
expression.alternate = escapeExpression(path, expression.alternate, attr, escapeLiterals);
|
|
2663
|
+
return expression;
|
|
2664
|
+
} else if (t__namespace.isLogicalExpression(expression)) {
|
|
2665
|
+
// Preserve the old short-circuit shape for && while still escaping the
|
|
2666
|
+
// selected result of || and ?? as a whole.
|
|
2667
|
+
if (expression.operator === "&&") {
|
|
2668
|
+
expression.right = escapeExpression(path, expression.right, attr, escapeLiterals);
|
|
2669
|
+
return expression;
|
|
2670
|
+
}
|
|
2671
|
+
} else if (t__namespace.isCallExpression(expression) && t__namespace.isFunction(expression.callee)) {
|
|
2672
|
+
if (t__namespace.isBlockStatement(expression.callee.body)) {
|
|
2673
|
+
expression.callee.body.body = expression.callee.body.body.map((e) => {
|
|
2674
|
+
if (t__namespace.isReturnStatement(e))
|
|
2675
|
+
e.argument = escapeExpression(path, e.argument, attr, escapeLiterals);
|
|
2676
|
+
return e;
|
|
2677
|
+
});
|
|
2678
|
+
} else
|
|
2679
|
+
expression.callee.body = escapeExpression(path, expression.callee.body, attr, escapeLiterals);
|
|
2680
|
+
return expression;
|
|
2681
|
+
} else if (t__namespace.isJSXElement(expression) && !isComponent(getTagName(expression))) {
|
|
2682
|
+
expression.wontEscape = true;
|
|
2683
|
+
return expression;
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
return t__namespace.callExpression(
|
|
2687
|
+
registerImportMethod(path, "escape"),
|
|
2688
|
+
[expression].concat(attr ? [t__namespace.booleanLiteral(true)] : []));
|
|
2689
|
+
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
function transformToObject(attrName, attributes, selectedAttributes) {
|
|
2693
|
+
const properties = [];
|
|
2694
|
+
const existingAttribute = attributes.find((a) => a.node.name.name === attrName);
|
|
2695
|
+
for (let i = 0; i < selectedAttributes.length; i++) {
|
|
2696
|
+
const attr = selectedAttributes[i].node;
|
|
2697
|
+
const computed = !t__namespace.isValidIdentifier(attr.name.name.name);
|
|
2698
|
+
if (!computed) {
|
|
2699
|
+
attr.name.name.type = "Identifier";
|
|
2700
|
+
}
|
|
2701
|
+
properties.push(
|
|
2702
|
+
t__namespace.objectProperty(
|
|
2703
|
+
computed ? t__namespace.stringLiteral(attr.name.name.name) : attr.name.name,
|
|
2704
|
+
t__namespace.isJSXExpressionContainer(attr.value) ? attr.value.expression : attr.value));
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
(existingAttribute || i) && attributes.splice(selectedAttributes[i].key, 1);
|
|
2708
|
+
}
|
|
2709
|
+
if (
|
|
2710
|
+
existingAttribute &&
|
|
2711
|
+
t__namespace.isJSXExpressionContainer(existingAttribute.node.value) &&
|
|
2712
|
+
t__namespace.isObjectExpression(existingAttribute.node.value.expression))
|
|
2713
|
+
{
|
|
2714
|
+
existingAttribute.node.value.expression.properties.push(...properties);
|
|
2715
|
+
} else {
|
|
2716
|
+
selectedAttributes[0].node = t__namespace.jsxAttribute(
|
|
2717
|
+
t__namespace.jsxIdentifier(attrName),
|
|
2718
|
+
t__namespace.jsxExpressionContainer(t__namespace.objectExpression(properties)));
|
|
2719
|
+
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
function normalizeAttributes(path) {
|
|
2724
|
+
const attributes = path.get("openingElement").get("attributes"),
|
|
2725
|
+
styleAttributes = attributes.filter(
|
|
2726
|
+
(a) => t__namespace.isJSXNamespacedName(a.node.name) && a.node.name.namespace.name === "style"),
|
|
2727
|
+
|
|
2728
|
+
classNamespaceAttributes = attributes.filter(
|
|
2729
|
+
(a) => t__namespace.isJSXNamespacedName(a.node.name) && a.node.name.namespace.name === "class");
|
|
2730
|
+
|
|
2731
|
+
if (classNamespaceAttributes.length)
|
|
2732
|
+
transformToObject("classList", attributes, classNamespaceAttributes);
|
|
2733
|
+
const classAttributes = attributes.filter(
|
|
2734
|
+
(a) =>
|
|
2735
|
+
a.node.name && (
|
|
2736
|
+
a.node.name.name === "class" ||
|
|
2737
|
+
a.node.name.name === "className" ||
|
|
2738
|
+
a.node.name.name === "classList"));
|
|
2739
|
+
|
|
2740
|
+
// combine class propertoes
|
|
2741
|
+
if (classAttributes.length > 1) {
|
|
2742
|
+
const first = classAttributes[0].node,
|
|
2743
|
+
values = [],
|
|
2744
|
+
quasis = [t__namespace.templateElement({ raw: "" })];
|
|
2745
|
+
for (let i = 0; i < classAttributes.length; i++) {
|
|
2746
|
+
const attr = classAttributes[i].node,
|
|
2747
|
+
isLast = i === classAttributes.length - 1;
|
|
2748
|
+
if (!t__namespace.isJSXExpressionContainer(attr.value)) {
|
|
2749
|
+
const prev = quasis.pop();
|
|
2750
|
+
quasis.push(
|
|
2751
|
+
t__namespace.templateElement({
|
|
2752
|
+
raw: (prev ? prev.value.raw : "") + `${attr.value.value}` + (isLast ? "" : " ")
|
|
2753
|
+
}));
|
|
2754
|
+
|
|
2755
|
+
} else {
|
|
2756
|
+
let expr = attr.value.expression;
|
|
2757
|
+
if (attr.name.name === "classList") {
|
|
2758
|
+
if (t__namespace.isObjectExpression(expr) && !expr.properties.some((p) => t__namespace.isSpreadElement(p))) {
|
|
2759
|
+
transformClasslistObject(path, expr, values, quasis);
|
|
2760
|
+
if (!isLast) quasis[quasis.length - 1].value.raw += " ";
|
|
2761
|
+
i && attributes.splice(attributes.indexOf(classAttributes[i]), 1);
|
|
2762
|
+
continue;
|
|
2763
|
+
}
|
|
2764
|
+
expr = t__namespace.callExpression(registerImportMethod(path, "ssrClassList"), [expr]);
|
|
2765
|
+
}
|
|
2766
|
+
values.push(t__namespace.logicalExpression("||", expr, t__namespace.stringLiteral("")));
|
|
2767
|
+
quasis.push(t__namespace.templateElement({ raw: isLast ? "" : " " }));
|
|
2768
|
+
}
|
|
2769
|
+
i && attributes.splice(attributes.indexOf(classAttributes[i]), 1);
|
|
2770
|
+
}
|
|
2771
|
+
first.name = t__namespace.jsxIdentifier("class");
|
|
2772
|
+
first.value = t__namespace.jsxExpressionContainer(t__namespace.templateLiteral(quasis, values));
|
|
2773
|
+
}
|
|
2774
|
+
if (styleAttributes.length) transformToObject("style", attributes, styleAttributes);
|
|
2775
|
+
return attributes;
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
function transformAttributes$1(path, results, info) {
|
|
2779
|
+
const tagName = getTagName(path.node),
|
|
2780
|
+
isSVG = SVGElements.has(tagName),
|
|
2781
|
+
hasChildren = path.node.children.length > 0,
|
|
2782
|
+
attributes = normalizeAttributes(path);
|
|
2783
|
+
let children;
|
|
2784
|
+
|
|
2785
|
+
attributes.forEach((attribute) => {
|
|
2786
|
+
const node = attribute.node;
|
|
2787
|
+
|
|
2788
|
+
let value = node.value,
|
|
2789
|
+
key = t__namespace.isJSXNamespacedName(node.name) ?
|
|
2790
|
+
`${node.name.namespace.name}:${node.name.name.name}` :
|
|
2791
|
+
node.name.name,
|
|
2792
|
+
reservedNameSpace =
|
|
2793
|
+
t__namespace.isJSXNamespacedName(node.name) && reservedNameSpaces.has(node.name.namespace.name);
|
|
2794
|
+
if (
|
|
2795
|
+
(t__namespace.isJSXNamespacedName(node.name) && reservedNameSpace || ChildProperties.has(key)) &&
|
|
2796
|
+
!t__namespace.isJSXExpressionContainer(value))
|
|
2797
|
+
{
|
|
2798
|
+
node.value = value = t__namespace.jsxExpressionContainer(value || t__namespace.jsxEmptyExpression());
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
if (
|
|
2802
|
+
t__namespace.isJSXExpressionContainer(value) && (
|
|
2803
|
+
reservedNameSpace ||
|
|
2804
|
+
ChildProperties.has(key) ||
|
|
2805
|
+
!(
|
|
2806
|
+
t__namespace.isStringLiteral(value.expression) ||
|
|
2807
|
+
t__namespace.isNumericLiteral(value.expression) ||
|
|
2808
|
+
t__namespace.isBooleanLiteral(value.expression))))
|
|
2809
|
+
|
|
2810
|
+
{
|
|
2811
|
+
if (
|
|
2812
|
+
key === "ref" ||
|
|
2813
|
+
key.startsWith("use:") ||
|
|
2814
|
+
key.startsWith("prop:") ||
|
|
2815
|
+
key.startsWith("on"))
|
|
2816
|
+
|
|
2817
|
+
return;else
|
|
2818
|
+
if (ChildProperties.has(key)) {
|
|
2819
|
+
if (info.hydratable && key === "textContent" && value && value.expression) {
|
|
2820
|
+
value.expression = t__namespace.logicalExpression("||", value.expression, t__namespace.stringLiteral(" "));
|
|
2821
|
+
}
|
|
2822
|
+
if (key === "innerHTML") path.doNotEscape = true;
|
|
2823
|
+
children = value;
|
|
2824
|
+
} else {
|
|
2825
|
+
let doEscape = true;
|
|
2826
|
+
|
|
2827
|
+
if (key.startsWith("attr:")) key = key.replace("attr:", "");
|
|
2828
|
+
if (BooleanAttributes.has(key) || key.startsWith("bool:")) {
|
|
2829
|
+
key = key.replace("bool:", "");
|
|
2830
|
+
results.template.push("");
|
|
2831
|
+
const fn = t__namespace.callExpression(registerImportMethod(attribute, "ssrAttribute"), [
|
|
2832
|
+
t__namespace.stringLiteral(key),
|
|
2833
|
+
value.expression,
|
|
2834
|
+
t__namespace.booleanLiteral(true)]);
|
|
2835
|
+
|
|
2836
|
+
results.templateValues.push(fn);
|
|
2837
|
+
return;
|
|
2838
|
+
}
|
|
2839
|
+
if (key === "style") {
|
|
2840
|
+
if (
|
|
2841
|
+
t__namespace.isJSXExpressionContainer(value) &&
|
|
2842
|
+
t__namespace.isObjectExpression(value.expression) &&
|
|
2843
|
+
!value.expression.properties.some((p) => t__namespace.isSpreadElement(p)))
|
|
2844
|
+
{
|
|
2845
|
+
if (value.expression.properties.length === 0) {
|
|
2846
|
+
return;
|
|
2847
|
+
}
|
|
2848
|
+
const props = value.expression.properties.map((p, i) => {
|
|
2849
|
+
if (p.computed) {
|
|
2850
|
+
return t__namespace.callExpression(registerImportMethod(path, "ssrStyleProperty"), [
|
|
2851
|
+
t__namespace.binaryExpression("+", p.key, t__namespace.stringLiteral(":")),
|
|
2852
|
+
escapeExpression(path, p.value, true, true)]);
|
|
2853
|
+
|
|
2854
|
+
}
|
|
2855
|
+
return t__namespace.callExpression(registerImportMethod(path, "ssrStyleProperty"), [
|
|
2856
|
+
t__namespace.stringLiteral(
|
|
2857
|
+
(i ? ";" : "") + (t__namespace.isIdentifier(p.key) ? p.key.name : p.key.value) + ":"),
|
|
2858
|
+
|
|
2859
|
+
escapeExpression(path, p.value, true, true)]);
|
|
2860
|
+
|
|
2861
|
+
});
|
|
2862
|
+
|
|
2863
|
+
let res = props[0];
|
|
2864
|
+
for (let i = 1; i < props.length; i++) {
|
|
2865
|
+
res = t__namespace.binaryExpression("+", res, props[i]);
|
|
2866
|
+
}
|
|
2867
|
+
value.expression = res;
|
|
2868
|
+
} else {
|
|
2869
|
+
value.expression = t__namespace.callExpression(registerImportMethod(path, "ssrStyle"), [
|
|
2870
|
+
value.expression]);
|
|
2871
|
+
|
|
2872
|
+
}
|
|
2873
|
+
doEscape = false;
|
|
2874
|
+
}
|
|
2875
|
+
if (key === "classList") {
|
|
2876
|
+
if (
|
|
2877
|
+
t__namespace.isObjectExpression(value.expression) &&
|
|
2878
|
+
!value.expression.properties.some((p) => t__namespace.isSpreadElement(p)))
|
|
2879
|
+
{
|
|
2880
|
+
const values = [],
|
|
2881
|
+
quasis = [t__namespace.templateElement({ raw: "" })];
|
|
2882
|
+
transformClasslistObject(path, value.expression, values, quasis);
|
|
2883
|
+
if (!values.length) value.expression = t__namespace.stringLiteral(quasis[0].value.raw);else
|
|
2884
|
+
if (values.length === 1 && !quasis[0].value.raw && !quasis[1].value.raw) {
|
|
2885
|
+
value.expression = values[0];
|
|
2886
|
+
} else value.expression = t__namespace.templateLiteral(quasis, values);
|
|
2887
|
+
} else {
|
|
2888
|
+
value.expression = t__namespace.callExpression(registerImportMethod(path, "ssrClassList"), [
|
|
2889
|
+
value.expression]);
|
|
2890
|
+
|
|
2891
|
+
}
|
|
2892
|
+
key = "class";
|
|
2893
|
+
doEscape = false;
|
|
2894
|
+
}
|
|
2895
|
+
if (doEscape) value.expression = escapeExpression(path, value.expression, true);
|
|
2896
|
+
|
|
2897
|
+
if (!doEscape || t__namespace.isLiteral(value.expression)) {
|
|
2898
|
+
key = toAttribute(key, isSVG);
|
|
2899
|
+
appendToTemplate(results.template, ` ${key}="`);
|
|
2900
|
+
results.template.push(`"`);
|
|
2901
|
+
results.templateValues.push(value.expression);
|
|
2902
|
+
} else setAttr$1(attribute, results, key, value.expression, isSVG);
|
|
2903
|
+
}
|
|
2904
|
+
} else {
|
|
2905
|
+
if (key === "$ServerOnly") return;
|
|
2906
|
+
if (t__namespace.isJSXExpressionContainer(value)) value = value.expression;
|
|
2907
|
+
key = toAttribute(key, isSVG);
|
|
2908
|
+
const isBoolean = BooleanAttributes.has(key);
|
|
2909
|
+
if (isBoolean && value && value.value !== "" && !value.value) return;
|
|
2910
|
+
appendToTemplate(results.template, ` ${key}`);
|
|
2911
|
+
if (!value) return;
|
|
2912
|
+
let text = isBoolean ? "" : value.value;
|
|
2913
|
+
if (key === "style" || key === "class") {
|
|
2914
|
+
text = trimWhitespace(String(text));
|
|
2915
|
+
if (key === "style") {
|
|
2916
|
+
text = text.replace(/; /g, ";").replace(/: /g, ":");
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2920
|
+
appendToTemplate(
|
|
2921
|
+
results.template,
|
|
2922
|
+
// `String(text)` is needed, as text.length will mess up `attr=10>` becomes `attr>` without it
|
|
2923
|
+
String(text) === "" ? `` : `="${escapeHTML(text, true)}"`);
|
|
2924
|
+
|
|
2925
|
+
}
|
|
2926
|
+
});
|
|
2927
|
+
if (!hasChildren && children) {
|
|
2928
|
+
path.node.children.push(children);
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
function transformClasslistObject(path, expr, values, quasis) {
|
|
2933
|
+
expr.properties.forEach((prop, i) => {
|
|
2934
|
+
const isLast = expr.properties.length - 1 === i;
|
|
2935
|
+
let key = prop.key;
|
|
2936
|
+
if (t__namespace.isIdentifier(prop.key) && !prop.computed) key = t__namespace.stringLiteral(key.name);else
|
|
2937
|
+
if (prop.computed) {
|
|
2938
|
+
key = t__namespace.callExpression(registerImportMethod(path, "escape"), [
|
|
2939
|
+
prop.key,
|
|
2940
|
+
t__namespace.booleanLiteral(true)]);
|
|
2941
|
+
|
|
2942
|
+
} else key = t__namespace.stringLiteral(escapeHTML(prop.key.value));
|
|
2943
|
+
if (t__namespace.isBooleanLiteral(prop.value)) {
|
|
2944
|
+
if (prop.value.value === true) {
|
|
2945
|
+
if (!prop.computed) {
|
|
2946
|
+
const prev = quasis.pop();
|
|
2947
|
+
quasis.push(
|
|
2948
|
+
t__namespace.templateElement({
|
|
2949
|
+
raw:
|
|
2950
|
+
(prev ? prev.value.raw : "") + (i ? " " : "") + `${key.value}` + (isLast ? "" : " ")
|
|
2951
|
+
}));
|
|
2952
|
+
|
|
2953
|
+
} else {
|
|
2954
|
+
values.push(key);
|
|
2955
|
+
quasis.push(t__namespace.templateElement({ raw: isLast ? "" : " " }));
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
} else {
|
|
2959
|
+
values.push(t__namespace.conditionalExpression(prop.value, key, t__namespace.stringLiteral("")));
|
|
2960
|
+
quasis.push(t__namespace.templateElement({ raw: isLast ? "" : " " }));
|
|
2961
|
+
}
|
|
2962
|
+
});
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
function transformChildren$1(path, results, { hydratable }) {
|
|
2966
|
+
const doNotEscape = path.doNotEscape;
|
|
2967
|
+
const filteredChildren = filterChildren(path.get("children"));
|
|
2968
|
+
const multi = checkLength(filteredChildren),
|
|
2969
|
+
markers = hydratable && multi;
|
|
2970
|
+
filteredChildren.forEach((node) => {
|
|
2971
|
+
if (t__namespace.isJSXElement(node.node) && getTagName(node.node) === "head") {
|
|
2972
|
+
const child = transformNode(node, { doNotEscape, hydratable: false });
|
|
2973
|
+
registerImportMethod(path, "NoHydration");
|
|
2974
|
+
registerImportMethod(path, "createComponent");
|
|
2975
|
+
results.template.push("");
|
|
2976
|
+
results.templateValues.push(
|
|
2977
|
+
t__namespace.callExpression(t__namespace.identifier("_$createComponent"), [
|
|
2978
|
+
t__namespace.identifier("_$NoHydration"),
|
|
2979
|
+
t__namespace.objectExpression([
|
|
2980
|
+
t__namespace.objectMethod(
|
|
2981
|
+
"get",
|
|
2982
|
+
t__namespace.identifier("children"),
|
|
2983
|
+
[],
|
|
2984
|
+
t__namespace.blockStatement([t__namespace.returnStatement(createTemplate$1(path, child))]))])]));
|
|
2985
|
+
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
return;
|
|
2990
|
+
}
|
|
2991
|
+
const child = transformNode(node, { doNotEscape });
|
|
2992
|
+
if (!child) return;
|
|
2993
|
+
appendToTemplate(results.template, child.template);
|
|
2994
|
+
results.templateValues.push.apply(results.templateValues, child.templateValues || []);
|
|
2995
|
+
if (child.exprs.length) {
|
|
2996
|
+
if (!doNotEscape && !child.spreadElement)
|
|
2997
|
+
child.exprs[0] = escapeExpression(path, child.exprs[0]);
|
|
2998
|
+
|
|
2999
|
+
// boxed by textNodes
|
|
3000
|
+
if (markers && !child.spreadElement) {
|
|
3001
|
+
appendToTemplate(results.template, `<!--$-->`);
|
|
3002
|
+
results.template.push("");
|
|
3003
|
+
results.templateValues.push(child.exprs[0]);
|
|
3004
|
+
appendToTemplate(results.template, `<!--/-->`);
|
|
3005
|
+
} else {
|
|
3006
|
+
results.template.push("");
|
|
3007
|
+
results.templateValues.push(child.exprs[0]);
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
});
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
function createElement(path, { topLevel, hydratable }) {
|
|
3014
|
+
const tagName = getTagName(path.node),
|
|
3015
|
+
config = getConfig(path),
|
|
3016
|
+
attributes = normalizeAttributes(path),
|
|
3017
|
+
doNotEscape = path.doNotEscape;
|
|
3018
|
+
|
|
3019
|
+
const filteredChildren = filterChildren(path.get("children")),
|
|
3020
|
+
multi = checkLength(filteredChildren),
|
|
3021
|
+
markers = hydratable && multi,
|
|
3022
|
+
childNodes = filteredChildren.reduce((memo, path) => {
|
|
3023
|
+
if (t__namespace.isJSXText(path.node)) {
|
|
3024
|
+
const v = htmlEntities.decode(trimWhitespace(path.node.extra.raw));
|
|
3025
|
+
if (v.length) memo.push(t__namespace.stringLiteral(v));
|
|
3026
|
+
} else {
|
|
3027
|
+
const child = transformNode(path);
|
|
3028
|
+
if (markers && child.exprs.length && !child.spreadElement)
|
|
3029
|
+
memo.push(t__namespace.stringLiteral("<!--$-->"));
|
|
3030
|
+
if (child.exprs.length && !doNotEscape && !child.spreadElement)
|
|
3031
|
+
child.exprs[0] = escapeExpression(path, child.exprs[0]);
|
|
3032
|
+
memo.push(getCreateTemplate(config, path, child)(path, child, true));
|
|
3033
|
+
if (markers && child.exprs.length && !child.spreadElement)
|
|
3034
|
+
memo.push(t__namespace.stringLiteral("<!--/-->"));
|
|
3035
|
+
}
|
|
3036
|
+
return memo;
|
|
3037
|
+
}, []);
|
|
3038
|
+
|
|
3039
|
+
let props;
|
|
3040
|
+
if (attributes.length === 1) {
|
|
3041
|
+
props = [attributes[0].node.argument];
|
|
3042
|
+
} else {
|
|
3043
|
+
props = [];
|
|
3044
|
+
let runningObject = [],
|
|
3045
|
+
dynamicSpread = false,
|
|
3046
|
+
hasChildren = path.node.children.length > 0;
|
|
3047
|
+
|
|
3048
|
+
attributes.forEach((attribute) => {
|
|
3049
|
+
const node = attribute.node;
|
|
3050
|
+
if (t__namespace.isJSXSpreadAttribute(node)) {
|
|
3051
|
+
if (runningObject.length) {
|
|
3052
|
+
props.push(t__namespace.objectExpression(runningObject));
|
|
3053
|
+
runningObject = [];
|
|
3054
|
+
}
|
|
3055
|
+
props.push(
|
|
3056
|
+
isDynamic(attribute.get("argument"), {
|
|
3057
|
+
checkMember: true
|
|
3058
|
+
}) && (dynamicSpread = true) ?
|
|
3059
|
+
t__namespace.isCallExpression(node.argument) &&
|
|
3060
|
+
!node.argument.arguments.length &&
|
|
3061
|
+
!t__namespace.isCallExpression(node.argument.callee) &&
|
|
3062
|
+
!t__namespace.isMemberExpression(node.argument.callee) ?
|
|
3063
|
+
node.argument.callee :
|
|
3064
|
+
t__namespace.arrowFunctionExpression([], node.argument) :
|
|
3065
|
+
node.argument);
|
|
3066
|
+
|
|
3067
|
+
} else {
|
|
3068
|
+
const value = node.value || t__namespace.booleanLiteral(true),
|
|
3069
|
+
id = convertJSXIdentifier(node.name),
|
|
3070
|
+
key = t__namespace.isJSXNamespacedName(node.name) ?
|
|
3071
|
+
`${node.name.namespace.name}:${node.name.name.name}` :
|
|
3072
|
+
node.name.name;
|
|
3073
|
+
|
|
3074
|
+
if (hasChildren && key === "children") return;
|
|
3075
|
+
if (
|
|
3076
|
+
key === "ref" ||
|
|
3077
|
+
key.startsWith("use:") ||
|
|
3078
|
+
key.startsWith("prop:") ||
|
|
3079
|
+
key.startsWith("on"))
|
|
3080
|
+
|
|
3081
|
+
return;
|
|
3082
|
+
if (t__namespace.isJSXExpressionContainer(value)) {
|
|
3083
|
+
if (
|
|
3084
|
+
isDynamic(attribute.get("value").get("expression"), {
|
|
3085
|
+
checkMember: true,
|
|
3086
|
+
checkTags: true
|
|
3087
|
+
}))
|
|
3088
|
+
{
|
|
3089
|
+
let expr = t__namespace.arrowFunctionExpression([], value.expression);
|
|
3090
|
+
runningObject.push(
|
|
3091
|
+
t__namespace.objectMethod(
|
|
3092
|
+
"get",
|
|
3093
|
+
id,
|
|
3094
|
+
[],
|
|
3095
|
+
t__namespace.blockStatement([t__namespace.returnStatement(expr.body)]),
|
|
3096
|
+
!t__namespace.isValidIdentifier(key)));
|
|
3097
|
+
|
|
3098
|
+
|
|
3099
|
+
} else runningObject.push(t__namespace.objectProperty(id, value.expression));} else
|
|
3100
|
+
runningObject.push(t__namespace.objectProperty(id, value));
|
|
3101
|
+
}
|
|
3102
|
+
});
|
|
3103
|
+
|
|
3104
|
+
if (runningObject.length || !props.length) props.push(t__namespace.objectExpression(runningObject));
|
|
3105
|
+
|
|
3106
|
+
if (props.length > 1 || dynamicSpread) {
|
|
3107
|
+
props = [t__namespace.callExpression(registerImportMethod(path, "mergeProps"), props)];
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
const exprs = [
|
|
3112
|
+
t__namespace.callExpression(registerImportMethod(path, "ssrElement"), [
|
|
3113
|
+
t__namespace.stringLiteral(tagName),
|
|
3114
|
+
props[0],
|
|
3115
|
+
childNodes.length ?
|
|
3116
|
+
hydratable ?
|
|
3117
|
+
t__namespace.arrowFunctionExpression(
|
|
3118
|
+
[],
|
|
3119
|
+
childNodes.length === 1 ? childNodes[0] : t__namespace.arrayExpression(childNodes)) :
|
|
3120
|
+
|
|
3121
|
+
childNodes.length === 1 ?
|
|
3122
|
+
childNodes[0] :
|
|
3123
|
+
t__namespace.arrayExpression(childNodes) :
|
|
3124
|
+
t__namespace.identifier("undefined"),
|
|
3125
|
+
t__namespace.booleanLiteral(Boolean(topLevel && config.hydratable))])];
|
|
3126
|
+
|
|
3127
|
+
|
|
3128
|
+
return { exprs, template: "", spreadElement: true };
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3131
|
+
function transformElement$1(path, info) {
|
|
3132
|
+
path.
|
|
3133
|
+
get("openingElement").
|
|
3134
|
+
get("attributes").
|
|
3135
|
+
forEach((attr) => {
|
|
3136
|
+
evaluateAndInline(attr.node.value, attr.get("value"));
|
|
3137
|
+
});
|
|
3138
|
+
|
|
3139
|
+
let tagName = getTagName(path.node),
|
|
3140
|
+
results = {
|
|
3141
|
+
id: path.scope.generateUidIdentifier("el$"),
|
|
3142
|
+
declarations: [],
|
|
3143
|
+
exprs: [],
|
|
3144
|
+
dynamics: [],
|
|
3145
|
+
postExprs: [],
|
|
3146
|
+
tagName,
|
|
3147
|
+
renderer: "universal"
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3150
|
+
results.declarations.push(
|
|
3151
|
+
t__namespace.variableDeclarator(
|
|
3152
|
+
results.id,
|
|
3153
|
+
t__namespace.callExpression(
|
|
3154
|
+
registerImportMethod(
|
|
3155
|
+
path,
|
|
3156
|
+
"createElement",
|
|
3157
|
+
getRendererConfig(path, "universal").moduleName),
|
|
3158
|
+
|
|
3159
|
+
[t__namespace.stringLiteral(tagName)])));
|
|
3160
|
+
|
|
3161
|
+
|
|
3162
|
+
|
|
3163
|
+
|
|
3164
|
+
transformAttributes(path, results);
|
|
3165
|
+
transformChildren(path, results);
|
|
3166
|
+
|
|
3167
|
+
return results;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
function transformAttributes(path, results) {
|
|
3171
|
+
let children, spreadExpr;
|
|
3172
|
+
let attributes = path.get("openingElement").get("attributes");
|
|
3173
|
+
const elem = results.id,
|
|
3174
|
+
hasChildren = path.node.children.length > 0,
|
|
3175
|
+
config = getConfig(path);
|
|
3176
|
+
|
|
3177
|
+
// preprocess spreads
|
|
3178
|
+
if (attributes.some((attribute) => t__namespace.isJSXSpreadAttribute(attribute.node))) {
|
|
3179
|
+
[attributes, spreadExpr] = processSpreads(path, attributes, {
|
|
3180
|
+
elem,
|
|
3181
|
+
hasChildren,
|
|
3182
|
+
wrapConditionals: config.wrapConditionals
|
|
3183
|
+
});
|
|
3184
|
+
path.get("openingElement").set(
|
|
3185
|
+
"attributes",
|
|
3186
|
+
attributes.map((a) => a.node));
|
|
3187
|
+
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3190
|
+
path.
|
|
3191
|
+
get("openingElement").
|
|
3192
|
+
get("attributes").
|
|
3193
|
+
forEach((attribute) => {
|
|
3194
|
+
const node = attribute.node;
|
|
3195
|
+
|
|
3196
|
+
let value = node.value,
|
|
3197
|
+
key = t__namespace.isJSXNamespacedName(node.name) ?
|
|
3198
|
+
`${node.name.namespace.name}:${node.name.name.name}` :
|
|
3199
|
+
node.name.name,
|
|
3200
|
+
reservedNameSpace = t__namespace.isJSXNamespacedName(node.name) && node.name.namespace.name === "use";
|
|
3201
|
+
if (
|
|
3202
|
+
t__namespace.isJSXNamespacedName(node.name) &&
|
|
3203
|
+
reservedNameSpace &&
|
|
3204
|
+
!t__namespace.isJSXExpressionContainer(value))
|
|
3205
|
+
{
|
|
3206
|
+
node.value = value = t__namespace.jsxExpressionContainer(value || t__namespace.jsxEmptyExpression());
|
|
3207
|
+
}
|
|
3208
|
+
if (t__namespace.isJSXExpressionContainer(value)) {
|
|
3209
|
+
if (key === "ref") {
|
|
3210
|
+
// Normalize expressions for non-null and type-as
|
|
3211
|
+
while (
|
|
3212
|
+
t__namespace.isTSNonNullExpression(value.expression) ||
|
|
3213
|
+
t__namespace.isTSAsExpression(value.expression))
|
|
3214
|
+
{
|
|
3215
|
+
value.expression = value.expression.expression;
|
|
3216
|
+
}
|
|
3217
|
+
let binding,
|
|
3218
|
+
isConstant =
|
|
3219
|
+
t__namespace.isIdentifier(value.expression) && (
|
|
3220
|
+
binding = path.scope.getBinding(value.expression.name)) && (
|
|
3221
|
+
binding.kind === "const" || binding.kind === "module");
|
|
3222
|
+
if (!isConstant && t__namespace.isLVal(value.expression)) {
|
|
3223
|
+
const refIdentifier = path.scope.generateUidIdentifier("_ref$");
|
|
3224
|
+
results.exprs.unshift(
|
|
3225
|
+
t__namespace.variableDeclaration("var", [t__namespace.variableDeclarator(refIdentifier, value.expression)]),
|
|
3226
|
+
t__namespace.expressionStatement(
|
|
3227
|
+
t__namespace.conditionalExpression(
|
|
3228
|
+
t__namespace.binaryExpression(
|
|
3229
|
+
"===",
|
|
3230
|
+
t__namespace.unaryExpression("typeof", refIdentifier),
|
|
3231
|
+
t__namespace.stringLiteral("function")),
|
|
3232
|
+
|
|
3233
|
+
t__namespace.callExpression(
|
|
3234
|
+
registerImportMethod(
|
|
3235
|
+
path,
|
|
3236
|
+
"use",
|
|
3237
|
+
getRendererConfig(path, "universal").moduleName),
|
|
3238
|
+
|
|
3239
|
+
[refIdentifier, elem]),
|
|
3240
|
+
|
|
3241
|
+
t__namespace.assignmentExpression("=", value.expression, elem))));
|
|
3242
|
+
|
|
3243
|
+
|
|
3244
|
+
|
|
3245
|
+
} else if (isConstant || t__namespace.isFunction(value.expression)) {
|
|
3246
|
+
results.exprs.unshift(
|
|
3247
|
+
t__namespace.expressionStatement(
|
|
3248
|
+
t__namespace.callExpression(
|
|
3249
|
+
registerImportMethod(
|
|
3250
|
+
path,
|
|
3251
|
+
"use",
|
|
3252
|
+
getRendererConfig(path, "universal").moduleName),
|
|
3253
|
+
|
|
3254
|
+
[value.expression, elem])));
|
|
3255
|
+
|
|
3256
|
+
|
|
3257
|
+
|
|
3258
|
+
} else {
|
|
3259
|
+
const refIdentifier = path.scope.generateUidIdentifier("_ref$");
|
|
3260
|
+
results.exprs.unshift(
|
|
3261
|
+
t__namespace.variableDeclaration("var", [t__namespace.variableDeclarator(refIdentifier, value.expression)]),
|
|
3262
|
+
t__namespace.expressionStatement(
|
|
3263
|
+
t__namespace.logicalExpression(
|
|
3264
|
+
"&&",
|
|
3265
|
+
t__namespace.binaryExpression(
|
|
3266
|
+
"===",
|
|
3267
|
+
t__namespace.unaryExpression("typeof", refIdentifier),
|
|
3268
|
+
t__namespace.stringLiteral("function")),
|
|
3269
|
+
|
|
3270
|
+
t__namespace.callExpression(
|
|
3271
|
+
registerImportMethod(
|
|
3272
|
+
path,
|
|
3273
|
+
"use",
|
|
3274
|
+
getRendererConfig(path, "universal").moduleName),
|
|
3275
|
+
|
|
3276
|
+
[refIdentifier, elem]))));
|
|
3277
|
+
|
|
3278
|
+
|
|
3279
|
+
|
|
3280
|
+
|
|
3281
|
+
}
|
|
3282
|
+
} else if (key.startsWith("use:")) {
|
|
3283
|
+
// Some trick to treat JSXIdentifier as Identifier
|
|
3284
|
+
node.name.name.type = "Identifier";
|
|
3285
|
+
results.exprs.unshift(
|
|
3286
|
+
t__namespace.expressionStatement(
|
|
3287
|
+
t__namespace.callExpression(
|
|
3288
|
+
registerImportMethod(path, "use", getRendererConfig(path, "universal").moduleName),
|
|
3289
|
+
[
|
|
3290
|
+
node.name.name,
|
|
3291
|
+
elem,
|
|
3292
|
+
t__namespace.arrowFunctionExpression(
|
|
3293
|
+
[],
|
|
3294
|
+
t__namespace.isJSXEmptyExpression(value.expression) ?
|
|
3295
|
+
t__namespace.booleanLiteral(true) :
|
|
3296
|
+
value.expression)])));
|
|
3297
|
+
|
|
3298
|
+
|
|
3299
|
+
|
|
3300
|
+
|
|
3301
|
+
|
|
3302
|
+
} else if (key === "children") {
|
|
3303
|
+
children = value;
|
|
3304
|
+
} else if (
|
|
3305
|
+
config.effectWrapper &&
|
|
3306
|
+
isDynamic(attribute.get("value").get("expression"), {
|
|
3307
|
+
checkMember: true
|
|
3308
|
+
}))
|
|
3309
|
+
{
|
|
3310
|
+
results.dynamics.push({ elem, key, value: value.expression });
|
|
3311
|
+
} else {
|
|
3312
|
+
results.exprs.push(
|
|
3313
|
+
t__namespace.expressionStatement(setAttr(attribute, elem, key, value.expression)));
|
|
3314
|
+
|
|
3315
|
+
}
|
|
3316
|
+
} else {
|
|
3317
|
+
results.exprs.push(t__namespace.expressionStatement(setAttr(attribute, elem, key, value)));
|
|
3318
|
+
}
|
|
3319
|
+
});
|
|
3320
|
+
if (spreadExpr) results.exprs.push(spreadExpr);
|
|
3321
|
+
if (!hasChildren && children) {
|
|
3322
|
+
path.node.children.push(children);
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
|
|
3326
|
+
function setAttr(path, elem, name, value, { prevId } = {}) {
|
|
3327
|
+
if (!value) value = t__namespace.booleanLiteral(true);
|
|
3328
|
+
return t__namespace.callExpression(
|
|
3329
|
+
registerImportMethod(path, "setProp", getRendererConfig(path, "universal").moduleName),
|
|
3330
|
+
prevId ? [elem, t__namespace.stringLiteral(name), value, prevId] : [elem, t__namespace.stringLiteral(name), value]);
|
|
3331
|
+
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
function transformChildren(path, results) {
|
|
3335
|
+
const filteredChildren = filterChildren(path.get("children")),
|
|
3336
|
+
multi = checkLength(filteredChildren),
|
|
3337
|
+
childNodes = filteredChildren.map(transformNode).reduce((memo, child) => {
|
|
3338
|
+
if (!child) return memo;
|
|
3339
|
+
const i = memo.length;
|
|
3340
|
+
if (child.text && i && memo[i - 1].text) {
|
|
3341
|
+
memo[i - 1].template += child.template;
|
|
3342
|
+
memo[i - 1].templateWithClosingTags += child.templateWithClosingTags || child.template;
|
|
3343
|
+
} else memo.push(child);
|
|
3344
|
+
return memo;
|
|
3345
|
+
}, []);
|
|
3346
|
+
|
|
3347
|
+
const appends = [];
|
|
3348
|
+
childNodes.forEach((child, index) => {
|
|
3349
|
+
if (!child) return;
|
|
3350
|
+
if (child.tagName && child.renderer !== "universal") {
|
|
3351
|
+
throw new Error(`<${child.tagName}> is not supported in <${getTagName(path.node)}>.
|
|
3352
|
+
Wrap the usage with a component that would render this element, eg. Canvas`);
|
|
3353
|
+
}
|
|
3354
|
+
if (child.id) {
|
|
3355
|
+
let insertNode = registerImportMethod(
|
|
3356
|
+
path,
|
|
3357
|
+
"insertNode",
|
|
3358
|
+
getRendererConfig(path, "universal").moduleName);
|
|
3359
|
+
|
|
3360
|
+
let insert = child.id;
|
|
3361
|
+
if (child.text) {
|
|
3362
|
+
let createTextNode = registerImportMethod(
|
|
3363
|
+
path,
|
|
3364
|
+
"createTextNode",
|
|
3365
|
+
getRendererConfig(path, "universal").moduleName);
|
|
3366
|
+
|
|
3367
|
+
if (multi) {
|
|
3368
|
+
results.declarations.push(
|
|
3369
|
+
t__namespace.variableDeclarator(
|
|
3370
|
+
child.id,
|
|
3371
|
+
t__namespace.callExpression(createTextNode, [
|
|
3372
|
+
t__namespace.templateLiteral(
|
|
3373
|
+
[t__namespace.templateElement({ raw: escapeStringForTemplate(child.template) })],
|
|
3374
|
+
[])])));
|
|
3375
|
+
|
|
3376
|
+
|
|
3377
|
+
|
|
3378
|
+
|
|
3379
|
+
} else
|
|
3380
|
+
insert = t__namespace.callExpression(createTextNode, [
|
|
3381
|
+
t__namespace.templateLiteral(
|
|
3382
|
+
[t__namespace.templateElement({ raw: escapeStringForTemplate(child.template) })],
|
|
3383
|
+
[])]);
|
|
3384
|
+
|
|
3385
|
+
|
|
3386
|
+
}
|
|
3387
|
+
appends.push(t__namespace.expressionStatement(t__namespace.callExpression(insertNode, [results.id, insert])));
|
|
3388
|
+
results.declarations.push(...child.declarations);
|
|
3389
|
+
results.exprs.push(...child.exprs);
|
|
3390
|
+
results.dynamics.push(...child.dynamics);
|
|
3391
|
+
} else if (child.exprs.length) {
|
|
3392
|
+
let insert = registerImportMethod(
|
|
3393
|
+
path,
|
|
3394
|
+
"insert",
|
|
3395
|
+
getRendererConfig(path, "universal").moduleName);
|
|
3396
|
+
|
|
3397
|
+
if (multi) {
|
|
3398
|
+
results.exprs.push(
|
|
3399
|
+
t__namespace.expressionStatement(
|
|
3400
|
+
t__namespace.callExpression(insert, [
|
|
3401
|
+
results.id,
|
|
3402
|
+
child.exprs[0],
|
|
3403
|
+
nextChild(childNodes, index) || t__namespace.nullLiteral()])));
|
|
3404
|
+
|
|
3405
|
+
|
|
3406
|
+
|
|
3407
|
+
} else {
|
|
3408
|
+
results.exprs.push(
|
|
3409
|
+
t__namespace.expressionStatement(t__namespace.callExpression(insert, [results.id, child.exprs[0]])));
|
|
3410
|
+
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
});
|
|
3414
|
+
results.exprs.unshift(...appends);
|
|
3415
|
+
}
|
|
3416
|
+
|
|
3417
|
+
function nextChild(children, index) {
|
|
3418
|
+
return children[index + 1] && (children[index + 1].id || nextChild(children, index + 1));
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
function processSpreads(path, attributes, { elem, hasChildren, wrapConditionals }) {
|
|
3422
|
+
// TODO: skip but collect the names of any properties after the last spread to not overwrite them
|
|
3423
|
+
const filteredAttributes = [];
|
|
3424
|
+
const spreadArgs = [];
|
|
3425
|
+
let runningObject = [];
|
|
3426
|
+
let dynamicSpread = false;
|
|
3427
|
+
let firstSpread = false;
|
|
3428
|
+
attributes.forEach((attribute) => {
|
|
3429
|
+
const node = attribute.node;
|
|
3430
|
+
const key =
|
|
3431
|
+
!t__namespace.isJSXSpreadAttribute(node) && (
|
|
3432
|
+
t__namespace.isJSXNamespacedName(node.name) ?
|
|
3433
|
+
`${node.name.namespace.name}:${node.name.name.name}` :
|
|
3434
|
+
node.name.name);
|
|
3435
|
+
if (t__namespace.isJSXSpreadAttribute(node)) {
|
|
3436
|
+
firstSpread = true;
|
|
3437
|
+
if (runningObject.length) {
|
|
3438
|
+
spreadArgs.push(t__namespace.objectExpression(runningObject));
|
|
3439
|
+
runningObject = [];
|
|
3440
|
+
}
|
|
3441
|
+
spreadArgs.push(
|
|
3442
|
+
isDynamic(attribute.get("argument"), {
|
|
3443
|
+
checkMember: true
|
|
3444
|
+
}) && (dynamicSpread = true) ?
|
|
3445
|
+
t__namespace.isCallExpression(node.argument) &&
|
|
3446
|
+
!node.argument.arguments.length &&
|
|
3447
|
+
!t__namespace.isCallExpression(node.argument.callee) &&
|
|
3448
|
+
!t__namespace.isMemberExpression(node.argument.callee) ?
|
|
3449
|
+
node.argument.callee :
|
|
3450
|
+
t__namespace.arrowFunctionExpression([], node.argument) :
|
|
3451
|
+
node.argument);
|
|
3452
|
+
|
|
3453
|
+
} else if (
|
|
3454
|
+
(firstSpread ||
|
|
3455
|
+
t__namespace.isJSXExpressionContainer(node.value) &&
|
|
3456
|
+
isDynamic(attribute.get("value").get("expression"), { checkMember: true })) &&
|
|
3457
|
+
canNativeSpread(key, { checkNameSpaces: true }))
|
|
3458
|
+
{
|
|
3459
|
+
const isContainer = t__namespace.isJSXExpressionContainer(node.value);
|
|
3460
|
+
const dynamic =
|
|
3461
|
+
isContainer && isDynamic(attribute.get("value").get("expression"), { checkMember: true });
|
|
3462
|
+
if (dynamic) {
|
|
3463
|
+
const id = convertJSXIdentifier(node.name);
|
|
3464
|
+
let expr =
|
|
3465
|
+
wrapConditionals && (
|
|
3466
|
+
t__namespace.isLogicalExpression(node.value.expression) ||
|
|
3467
|
+
t__namespace.isConditionalExpression(node.value.expression)) ?
|
|
3468
|
+
transformCondition(attribute.get("value").get("expression"), true) :
|
|
3469
|
+
t__namespace.arrowFunctionExpression([], node.value.expression);
|
|
3470
|
+
runningObject.push(
|
|
3471
|
+
t__namespace.objectMethod(
|
|
3472
|
+
"get",
|
|
3473
|
+
id,
|
|
3474
|
+
[],
|
|
3475
|
+
t__namespace.blockStatement([t__namespace.returnStatement(expr.body)]),
|
|
3476
|
+
!t__namespace.isValidIdentifier(key)));
|
|
3477
|
+
|
|
3478
|
+
|
|
3479
|
+
} else {
|
|
3480
|
+
runningObject.push(
|
|
3481
|
+
t__namespace.objectProperty(
|
|
3482
|
+
t__namespace.stringLiteral(key),
|
|
3483
|
+
isContainer ? node.value.expression : node.value || t__namespace.booleanLiteral(true)));
|
|
3484
|
+
|
|
3485
|
+
|
|
3486
|
+
}
|
|
3487
|
+
} else filteredAttributes.push(attribute);
|
|
3488
|
+
});
|
|
3489
|
+
|
|
3490
|
+
if (runningObject.length) {
|
|
3491
|
+
spreadArgs.push(t__namespace.objectExpression(runningObject));
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
const props =
|
|
3495
|
+
spreadArgs.length === 1 && !dynamicSpread ?
|
|
3496
|
+
spreadArgs[0] :
|
|
3497
|
+
t__namespace.callExpression(registerImportMethod(path, "mergeProps"), spreadArgs);
|
|
3498
|
+
|
|
3499
|
+
return [
|
|
3500
|
+
filteredAttributes,
|
|
3501
|
+
t__namespace.expressionStatement(
|
|
3502
|
+
t__namespace.callExpression(
|
|
3503
|
+
registerImportMethod(path, "spread", getRendererConfig(path, "universal").moduleName),
|
|
3504
|
+
[elem, props, t__namespace.booleanLiteral(hasChildren)]))];
|
|
3505
|
+
|
|
3506
|
+
|
|
3507
|
+
|
|
3508
|
+
}
|
|
3509
|
+
|
|
3510
|
+
function createTemplate(path, result, wrap) {
|
|
3511
|
+
const config = getConfig(path);
|
|
3512
|
+
if (result.id) {
|
|
3513
|
+
result.decl = t__namespace.variableDeclaration("var", result.declarations);
|
|
3514
|
+
if (
|
|
3515
|
+
!(result.exprs.length || result.dynamics.length || result.postExprs.length) &&
|
|
3516
|
+
result.decl.declarations.length === 1)
|
|
3517
|
+
{
|
|
3518
|
+
return result.decl.declarations[0].init;
|
|
3519
|
+
} else {
|
|
3520
|
+
return t__namespace.callExpression(
|
|
3521
|
+
t__namespace.arrowFunctionExpression(
|
|
3522
|
+
[],
|
|
3523
|
+
t__namespace.blockStatement([
|
|
3524
|
+
result.decl,
|
|
3525
|
+
...result.exprs.concat(
|
|
3526
|
+
wrapDynamics(path, result.dynamics) || [],
|
|
3527
|
+
result.postExprs || []),
|
|
3528
|
+
|
|
3529
|
+
t__namespace.returnStatement(result.id)])),
|
|
3530
|
+
|
|
3531
|
+
|
|
3532
|
+
[]);
|
|
3533
|
+
|
|
3534
|
+
}
|
|
3535
|
+
}
|
|
3536
|
+
if (wrap && result.dynamic && config.memoWrapper) {
|
|
3537
|
+
return t__namespace.callExpression(registerImportMethod(path, config.memoWrapper), [result.exprs[0]]);
|
|
3538
|
+
}
|
|
3539
|
+
return result.exprs[0];
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3542
|
+
function wrapDynamics(path, dynamics) {
|
|
3543
|
+
if (!dynamics.length) return;
|
|
3544
|
+
const config = getConfig(path);
|
|
3545
|
+
|
|
3546
|
+
const effectWrapperId = registerImportMethod(path, config.effectWrapper);
|
|
3547
|
+
|
|
3548
|
+
if (dynamics.length === 1) {
|
|
3549
|
+
const prevValue = t__namespace.identifier("_$p");
|
|
3550
|
+
|
|
3551
|
+
return t__namespace.expressionStatement(
|
|
3552
|
+
t__namespace.callExpression(effectWrapperId, [
|
|
3553
|
+
t__namespace.arrowFunctionExpression(
|
|
3554
|
+
[prevValue],
|
|
3555
|
+
setAttr(path, dynamics[0].elem, dynamics[0].key, dynamics[0].value, {
|
|
3556
|
+
dynamic: true,
|
|
3557
|
+
prevId: prevValue
|
|
3558
|
+
}))]));
|
|
3559
|
+
|
|
3560
|
+
|
|
3561
|
+
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3564
|
+
const prevId = t__namespace.identifier("_p$");
|
|
3565
|
+
|
|
3566
|
+
/** @type {t.VariableDeclarator[]} */
|
|
3567
|
+
const declarations = [];
|
|
3568
|
+
/** @type {t.ExpressionStatement[]} */
|
|
3569
|
+
const statements = [];
|
|
3570
|
+
/** @type {t.Identifier[]} */
|
|
3571
|
+
const properties = [];
|
|
3572
|
+
|
|
3573
|
+
dynamics.forEach(({ elem, key, value }, index) => {
|
|
3574
|
+
const varIdent = path.scope.generateUidIdentifier("v$");
|
|
3575
|
+
|
|
3576
|
+
const propIdent = t__namespace.identifier(getNumberedId(index));
|
|
3577
|
+
const propMember = t__namespace.memberExpression(prevId, propIdent);
|
|
3578
|
+
|
|
3579
|
+
properties.push(propIdent);
|
|
3580
|
+
declarations.push(t__namespace.variableDeclarator(varIdent, value));
|
|
3581
|
+
|
|
3582
|
+
statements.push(
|
|
3583
|
+
t__namespace.expressionStatement(
|
|
3584
|
+
t__namespace.logicalExpression(
|
|
3585
|
+
"&&",
|
|
3586
|
+
t__namespace.binaryExpression("!==", varIdent, propMember),
|
|
3587
|
+
t__namespace.assignmentExpression(
|
|
3588
|
+
"=",
|
|
3589
|
+
propMember,
|
|
3590
|
+
setAttr(path, elem, key, varIdent, { dynamic: true, prevId: propMember })))));
|
|
3591
|
+
|
|
3592
|
+
|
|
3593
|
+
|
|
3594
|
+
|
|
3595
|
+
});
|
|
3596
|
+
|
|
3597
|
+
return t__namespace.expressionStatement(
|
|
3598
|
+
t__namespace.callExpression(effectWrapperId, [
|
|
3599
|
+
t__namespace.arrowFunctionExpression(
|
|
3600
|
+
[prevId],
|
|
3601
|
+
t__namespace.blockStatement([
|
|
3602
|
+
t__namespace.variableDeclaration("var", declarations),
|
|
3603
|
+
...statements,
|
|
3604
|
+
t__namespace.returnStatement(prevId)])),
|
|
3605
|
+
|
|
3606
|
+
|
|
3607
|
+
t__namespace.objectExpression(
|
|
3608
|
+
properties.map((id) => t__namespace.objectProperty(id, t__namespace.identifier("undefined"))))]));
|
|
3609
|
+
|
|
3610
|
+
|
|
3611
|
+
|
|
3612
|
+
}
|
|
3613
|
+
|
|
3614
|
+
function convertComponentIdentifier(node) {
|
|
3615
|
+
if (t__namespace.isJSXIdentifier(node)) {
|
|
3616
|
+
if (node.name === "this") return t__namespace.thisExpression();
|
|
3617
|
+
if (t__namespace.isValidIdentifier(node.name)) node.type = "Identifier";else
|
|
3618
|
+
return t__namespace.stringLiteral(node.name);
|
|
3619
|
+
} else if (t__namespace.isJSXMemberExpression(node)) {
|
|
3620
|
+
const prop = convertComponentIdentifier(node.property);
|
|
3621
|
+
const computed = t__namespace.isStringLiteral(prop);
|
|
3622
|
+
return t__namespace.memberExpression(convertComponentIdentifier(node.object), prop, computed);
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3625
|
+
return node;
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
function transformComponent(path) {
|
|
3629
|
+
let exprs = [],
|
|
3630
|
+
config = getConfig(path),
|
|
3631
|
+
tagId = convertComponentIdentifier(path.node.openingElement.name),
|
|
3632
|
+
props = [],
|
|
3633
|
+
runningObject = [],
|
|
3634
|
+
dynamicSpread = false,
|
|
3635
|
+
hasChildren = path.node.children.length > 0;
|
|
3636
|
+
|
|
3637
|
+
if (config.builtIns.indexOf(tagId.name) > -1 && !path.scope.hasBinding(tagId.name)) {
|
|
3638
|
+
const newTagId = registerImportMethod(path, tagId.name);
|
|
3639
|
+
tagId.name = newTagId.name;
|
|
3640
|
+
}
|
|
3641
|
+
|
|
3642
|
+
path.
|
|
3643
|
+
get("openingElement").
|
|
3644
|
+
get("attributes").
|
|
3645
|
+
forEach((attribute) => {
|
|
3646
|
+
const node = attribute.node;
|
|
3647
|
+
if (t__namespace.isJSXSpreadAttribute(node)) {
|
|
3648
|
+
if (runningObject.length) {
|
|
3649
|
+
props.push(t__namespace.objectExpression(runningObject));
|
|
3650
|
+
runningObject = [];
|
|
3651
|
+
}
|
|
3652
|
+
props.push(
|
|
3653
|
+
isDynamic(attribute.get("argument"), {
|
|
3654
|
+
checkMember: true
|
|
3655
|
+
}) && (dynamicSpread = true) ?
|
|
3656
|
+
t__namespace.isCallExpression(node.argument) &&
|
|
3657
|
+
!node.argument.arguments.length &&
|
|
3658
|
+
!t__namespace.isCallExpression(node.argument.callee) &&
|
|
3659
|
+
!t__namespace.isMemberExpression(node.argument.callee) ?
|
|
3660
|
+
node.argument.callee :
|
|
3661
|
+
t__namespace.arrowFunctionExpression([], node.argument) :
|
|
3662
|
+
node.argument);
|
|
3663
|
+
|
|
3664
|
+
} else {
|
|
3665
|
+
// handle weird babel bug around HTML entities
|
|
3666
|
+
const value =
|
|
3667
|
+
(t__namespace.isStringLiteral(node.value) ? t__namespace.stringLiteral(node.value.value) : node.value) ||
|
|
3668
|
+
t__namespace.booleanLiteral(true),
|
|
3669
|
+
id = convertJSXIdentifier(node.name),
|
|
3670
|
+
key = id.name;
|
|
3671
|
+
if (hasChildren && key === "children") return;
|
|
3672
|
+
if (t__namespace.isJSXExpressionContainer(value)) {
|
|
3673
|
+
if (key === "ref") {
|
|
3674
|
+
if (config.generate === "ssr") return;
|
|
3675
|
+
// Normalize expressions for non-null and type-as
|
|
3676
|
+
while (
|
|
3677
|
+
t__namespace.isTSNonNullExpression(value.expression) ||
|
|
3678
|
+
t__namespace.isTSAsExpression(value.expression) ||
|
|
3679
|
+
t__namespace.isTSSatisfiesExpression(value.expression))
|
|
3680
|
+
{
|
|
3681
|
+
value.expression = value.expression.expression;
|
|
3682
|
+
}
|
|
3683
|
+
let binding,
|
|
3684
|
+
isConstant =
|
|
3685
|
+
t__namespace.isIdentifier(value.expression) && (
|
|
3686
|
+
binding = path.scope.getBinding(value.expression.name)) && (
|
|
3687
|
+
binding.kind === "const" || binding.kind === "module");
|
|
3688
|
+
if (!isConstant && t__namespace.isLVal(value.expression)) {
|
|
3689
|
+
const refIdentifier = path.scope.generateUidIdentifier("_ref$");
|
|
3690
|
+
runningObject.push(
|
|
3691
|
+
t__namespace.objectMethod(
|
|
3692
|
+
"method",
|
|
3693
|
+
t__namespace.identifier("ref"),
|
|
3694
|
+
[t__namespace.identifier("r$")],
|
|
3695
|
+
t__namespace.blockStatement([
|
|
3696
|
+
t__namespace.variableDeclaration("var", [
|
|
3697
|
+
t__namespace.variableDeclarator(refIdentifier, value.expression)]),
|
|
3698
|
+
|
|
3699
|
+
t__namespace.expressionStatement(
|
|
3700
|
+
t__namespace.conditionalExpression(
|
|
3701
|
+
t__namespace.binaryExpression(
|
|
3702
|
+
"===",
|
|
3703
|
+
t__namespace.unaryExpression("typeof", refIdentifier),
|
|
3704
|
+
t__namespace.stringLiteral("function")),
|
|
3705
|
+
|
|
3706
|
+
t__namespace.callExpression(refIdentifier, [t__namespace.identifier("r$")]),
|
|
3707
|
+
t__namespace.assignmentExpression("=", value.expression, t__namespace.identifier("r$"))))])));
|
|
3708
|
+
|
|
3709
|
+
|
|
3710
|
+
|
|
3711
|
+
|
|
3712
|
+
|
|
3713
|
+
} else if (!isConstant && t__namespace.isOptionalMemberExpression(value.expression)) {
|
|
3714
|
+
const refIdentifier = path.scope.generateUidIdentifier("_ref$");
|
|
3715
|
+
runningObject.push(
|
|
3716
|
+
t__namespace.objectMethod(
|
|
3717
|
+
"method",
|
|
3718
|
+
t__namespace.identifier("ref"),
|
|
3719
|
+
[t__namespace.identifier("r$")],
|
|
3720
|
+
t__namespace.blockStatement([
|
|
3721
|
+
t__namespace.variableDeclaration("var", [
|
|
3722
|
+
t__namespace.variableDeclarator(refIdentifier, value.expression)]),
|
|
3723
|
+
|
|
3724
|
+
|
|
3725
|
+
t__namespace.expressionStatement(
|
|
3726
|
+
t__namespace.conditionalExpression(
|
|
3727
|
+
t__namespace.binaryExpression(
|
|
3728
|
+
"===",
|
|
3729
|
+
t__namespace.unaryExpression("typeof", refIdentifier),
|
|
3730
|
+
t__namespace.stringLiteral("function")),
|
|
3731
|
+
|
|
3732
|
+
t__namespace.callExpression(refIdentifier, [t__namespace.identifier("r$")]),
|
|
3733
|
+
t__namespace.logicalExpression(
|
|
3734
|
+
"&&",
|
|
3735
|
+
t__namespace.unaryExpression(
|
|
3736
|
+
"!",
|
|
3737
|
+
t__namespace.unaryExpression("!", t__namespace.identifier(value.expression.object.name))),
|
|
3738
|
+
|
|
3739
|
+
t__namespace.assignmentExpression(
|
|
3740
|
+
"=",
|
|
3741
|
+
t__namespace.memberExpression(
|
|
3742
|
+
t__namespace.identifier(value.expression.object.name),
|
|
3743
|
+
t__namespace.identifier(value.expression.property.name)),
|
|
3744
|
+
|
|
3745
|
+
t__namespace.identifier("r$")))))])));
|
|
3746
|
+
|
|
3747
|
+
|
|
3748
|
+
|
|
3749
|
+
|
|
3750
|
+
|
|
3751
|
+
|
|
3752
|
+
|
|
3753
|
+
} else if (isConstant || t__namespace.isFunction(value.expression)) {
|
|
3754
|
+
runningObject.push(t__namespace.objectProperty(t__namespace.identifier("ref"), value.expression));
|
|
3755
|
+
} else if (t__namespace.isCallExpression(value.expression)) {
|
|
3756
|
+
const refIdentifier = path.scope.generateUidIdentifier("_ref$");
|
|
3757
|
+
runningObject.push(
|
|
3758
|
+
t__namespace.objectMethod(
|
|
3759
|
+
"method",
|
|
3760
|
+
t__namespace.identifier("ref"),
|
|
3761
|
+
[t__namespace.identifier("r$")],
|
|
3762
|
+
t__namespace.blockStatement([
|
|
3763
|
+
t__namespace.variableDeclaration("var", [
|
|
3764
|
+
t__namespace.variableDeclarator(refIdentifier, value.expression)]),
|
|
3765
|
+
|
|
3766
|
+
t__namespace.expressionStatement(
|
|
3767
|
+
t__namespace.logicalExpression(
|
|
3768
|
+
"&&",
|
|
3769
|
+
t__namespace.binaryExpression(
|
|
3770
|
+
"===",
|
|
3771
|
+
t__namespace.unaryExpression("typeof", refIdentifier),
|
|
3772
|
+
t__namespace.stringLiteral("function")),
|
|
3773
|
+
|
|
3774
|
+
t__namespace.callExpression(refIdentifier, [t__namespace.identifier("r$")])))])));
|
|
3775
|
+
|
|
3776
|
+
|
|
3777
|
+
|
|
3778
|
+
|
|
3779
|
+
|
|
3780
|
+
}
|
|
3781
|
+
} else if (
|
|
3782
|
+
isDynamic(attribute.get("value").get("expression"), {
|
|
3783
|
+
checkMember: true,
|
|
3784
|
+
checkTags: true
|
|
3785
|
+
}))
|
|
3786
|
+
{
|
|
3787
|
+
if (
|
|
3788
|
+
config.wrapConditionals &&
|
|
3789
|
+
config.generate !== "ssr" && (
|
|
3790
|
+
t__namespace.isLogicalExpression(value.expression) ||
|
|
3791
|
+
t__namespace.isConditionalExpression(value.expression)))
|
|
3792
|
+
{
|
|
3793
|
+
const expr = transformCondition(attribute.get("value").get("expression"), true);
|
|
3794
|
+
|
|
3795
|
+
runningObject.push(
|
|
3796
|
+
t__namespace.objectMethod(
|
|
3797
|
+
"get",
|
|
3798
|
+
id,
|
|
3799
|
+
[],
|
|
3800
|
+
t__namespace.blockStatement([t__namespace.returnStatement(expr.body)]),
|
|
3801
|
+
!t__namespace.isValidIdentifier(key)));
|
|
3802
|
+
|
|
3803
|
+
|
|
3804
|
+
} else if (
|
|
3805
|
+
t__namespace.isCallExpression(value.expression) &&
|
|
3806
|
+
t__namespace.isArrowFunctionExpression(value.expression.callee) &&
|
|
3807
|
+
value.expression.callee.params.length === 0)
|
|
3808
|
+
{
|
|
3809
|
+
const callee = value.expression.callee;
|
|
3810
|
+
const body = t__namespace.isBlockStatement(callee.body) ?
|
|
3811
|
+
callee.body :
|
|
3812
|
+
t__namespace.blockStatement([t__namespace.returnStatement(callee.body)]);
|
|
3813
|
+
|
|
3814
|
+
runningObject.push(t__namespace.objectMethod("get", id, [], body, !t__namespace.isValidIdentifier(key)));
|
|
3815
|
+
} else {
|
|
3816
|
+
runningObject.push(
|
|
3817
|
+
t__namespace.objectMethod(
|
|
3818
|
+
"get",
|
|
3819
|
+
id,
|
|
3820
|
+
[],
|
|
3821
|
+
t__namespace.blockStatement([t__namespace.returnStatement(value.expression)]),
|
|
3822
|
+
!t__namespace.isValidIdentifier(key)));
|
|
3823
|
+
|
|
3824
|
+
|
|
3825
|
+
}
|
|
3826
|
+
} else runningObject.push(t__namespace.objectProperty(id, value.expression));} else
|
|
3827
|
+
runningObject.push(t__namespace.objectProperty(id, value));
|
|
3828
|
+
}
|
|
3829
|
+
});
|
|
3830
|
+
|
|
3831
|
+
const childResult = transformComponentChildren(path.get("children"), config);
|
|
3832
|
+
if (childResult && childResult[0]) {
|
|
3833
|
+
if (childResult[1]) {
|
|
3834
|
+
const body =
|
|
3835
|
+
t__namespace.isCallExpression(childResult[0]) && t__namespace.isFunction(childResult[0].arguments[0]) ?
|
|
3836
|
+
childResult[0].arguments[0].body :
|
|
3837
|
+
childResult[0].body ?
|
|
3838
|
+
childResult[0].body :
|
|
3839
|
+
childResult[0];
|
|
3840
|
+
runningObject.push(
|
|
3841
|
+
t__namespace.objectMethod(
|
|
3842
|
+
"get",
|
|
3843
|
+
t__namespace.identifier("children"),
|
|
3844
|
+
[],
|
|
3845
|
+
t__namespace.isExpression(body) ? t__namespace.blockStatement([t__namespace.returnStatement(body)]) : body));
|
|
3846
|
+
|
|
3847
|
+
|
|
3848
|
+
} else runningObject.push(t__namespace.objectProperty(t__namespace.identifier("children"), childResult[0]));
|
|
3849
|
+
}
|
|
3850
|
+
if (runningObject.length || !props.length) props.push(t__namespace.objectExpression(runningObject));
|
|
3851
|
+
|
|
3852
|
+
if (props.length > 1 || dynamicSpread) {
|
|
3853
|
+
props = [t__namespace.callExpression(registerImportMethod(path, "mergeProps"), props)];
|
|
3854
|
+
}
|
|
3855
|
+
const componentArgs = [tagId, props[0]];
|
|
3856
|
+
exprs.push(t__namespace.callExpression(registerImportMethod(path, "createComponent"), componentArgs));
|
|
3857
|
+
|
|
3858
|
+
// handle hoisting conditionals
|
|
3859
|
+
if (exprs.length > 1) {
|
|
3860
|
+
const ret = exprs.pop();
|
|
3861
|
+
exprs = [
|
|
3862
|
+
t__namespace.callExpression(
|
|
3863
|
+
t__namespace.arrowFunctionExpression([], t__namespace.blockStatement([...exprs, t__namespace.returnStatement(ret)])),
|
|
3864
|
+
[])];
|
|
3865
|
+
|
|
3866
|
+
|
|
3867
|
+
}
|
|
3868
|
+
return { exprs, template: "", component: true };
|
|
3869
|
+
}
|
|
3870
|
+
|
|
3871
|
+
function transformComponentChildren(children, config) {
|
|
3872
|
+
const filteredChildren = filterChildren(children);
|
|
3873
|
+
if (!filteredChildren.length) return;
|
|
3874
|
+
let dynamic = false;
|
|
3875
|
+
let pathNodes = [];
|
|
3876
|
+
|
|
3877
|
+
let transformedChildren = filteredChildren.reduce((memo, path) => {
|
|
3878
|
+
if (t__namespace.isJSXText(path.node)) {
|
|
3879
|
+
const v = htmlEntities.decode(trimWhitespace(path.node.extra.raw));
|
|
3880
|
+
if (v.length) {
|
|
3881
|
+
pathNodes.push(path.node);
|
|
3882
|
+
memo.push(t__namespace.stringLiteral(v));
|
|
3883
|
+
}
|
|
3884
|
+
} else {
|
|
3885
|
+
const child = transformNode(path, {
|
|
3886
|
+
topLevel: true,
|
|
3887
|
+
componentChild: true,
|
|
3888
|
+
lastElement: true
|
|
3889
|
+
});
|
|
3890
|
+
dynamic = dynamic || child.dynamic;
|
|
3891
|
+
if (
|
|
3892
|
+
config.generate === "ssr" &&
|
|
3893
|
+
filteredChildren.length > 1 &&
|
|
3894
|
+
child.dynamic &&
|
|
3895
|
+
t__namespace.isFunction(child.exprs[0]))
|
|
3896
|
+
{
|
|
3897
|
+
child.exprs[0] = child.exprs[0].body;
|
|
3898
|
+
}
|
|
3899
|
+
pathNodes.push(path.node);
|
|
3900
|
+
memo.push(getCreateTemplate(config, path, child)(path, child, filteredChildren.length > 1));
|
|
3901
|
+
}
|
|
3902
|
+
return memo;
|
|
3903
|
+
}, []);
|
|
3904
|
+
|
|
3905
|
+
if (transformedChildren.length === 1) {
|
|
3906
|
+
transformedChildren = transformedChildren[0];
|
|
3907
|
+
if (
|
|
3908
|
+
!t__namespace.isJSXExpressionContainer(pathNodes[0]) &&
|
|
3909
|
+
!t__namespace.isJSXSpreadChild(pathNodes[0]) &&
|
|
3910
|
+
!t__namespace.isJSXText(pathNodes[0]))
|
|
3911
|
+
{
|
|
3912
|
+
transformedChildren =
|
|
3913
|
+
t__namespace.isCallExpression(transformedChildren) &&
|
|
3914
|
+
!transformedChildren.arguments.length &&
|
|
3915
|
+
!t__namespace.isIdentifier(transformedChildren.callee) ?
|
|
3916
|
+
transformedChildren.callee :
|
|
3917
|
+
t__namespace.arrowFunctionExpression([], transformedChildren);
|
|
3918
|
+
dynamic = true;
|
|
3919
|
+
}
|
|
3920
|
+
} else {
|
|
3921
|
+
transformedChildren = t__namespace.arrowFunctionExpression([], t__namespace.arrayExpression(transformedChildren));
|
|
3922
|
+
dynamic = true;
|
|
3923
|
+
}
|
|
3924
|
+
return [transformedChildren, dynamic];
|
|
3925
|
+
}
|
|
3926
|
+
|
|
3927
|
+
function transformFragmentChildren(children, results, config) {
|
|
3928
|
+
const filteredChildren = filterChildren(children),
|
|
3929
|
+
childNodes = filteredChildren.reduce((memo, path) => {
|
|
3930
|
+
if (t__namespace.isJSXText(path.node)) {
|
|
3931
|
+
const v = htmlEntities.decode(trimWhitespace(path.node.extra.raw));
|
|
3932
|
+
if (v.length) memo.push(t__namespace.stringLiteral(v));
|
|
3933
|
+
} else {
|
|
3934
|
+
const child = transformNode(path, { topLevel: true, fragmentChild: true, lastElement: true });
|
|
3935
|
+
memo.push(getCreateTemplate(config, path, child)(path, child, true));
|
|
3936
|
+
}
|
|
3937
|
+
return memo;
|
|
3938
|
+
}, []);
|
|
3939
|
+
results.exprs.push(childNodes.length === 1 ? childNodes[0] : t__namespace.arrayExpression(childNodes));
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3942
|
+
function transformJSX(path, state) {
|
|
3943
|
+
if (state.skip) return;
|
|
3944
|
+
|
|
3945
|
+
const config = getConfig(path);
|
|
3946
|
+
|
|
3947
|
+
const replace = transformThis(path);
|
|
3948
|
+
const result = transformNode(
|
|
3949
|
+
path,
|
|
3950
|
+
t__namespace.isJSXFragment(path.node) ?
|
|
3951
|
+
{} :
|
|
3952
|
+
{
|
|
3953
|
+
topLevel: true,
|
|
3954
|
+
lastElement: true
|
|
3955
|
+
});
|
|
3956
|
+
|
|
3957
|
+
|
|
3958
|
+
const template = getCreateTemplate(config, path, result);
|
|
3959
|
+
|
|
3960
|
+
path.replaceWith(replace(template(path, result, false)));
|
|
3961
|
+
|
|
3962
|
+
path.traverse({
|
|
3963
|
+
enter(path) {
|
|
3964
|
+
if (
|
|
3965
|
+
path.node.leadingComments &&
|
|
3966
|
+
path.node.leadingComments[0] &&
|
|
3967
|
+
path.node.leadingComments[0].value.trim() === config.staticMarker)
|
|
3968
|
+
{
|
|
3969
|
+
path.node.leadingComments.shift();
|
|
3970
|
+
}
|
|
3971
|
+
}
|
|
3972
|
+
});
|
|
3973
|
+
}
|
|
3974
|
+
|
|
3975
|
+
function getTargetFunctionParent(path, parent) {
|
|
3976
|
+
let current = path.scope.getFunctionParent();
|
|
3977
|
+
while (current !== parent && current.path.isArrowFunctionExpression()) {
|
|
3978
|
+
current = current.path.parentPath.scope.getFunctionParent();
|
|
3979
|
+
}
|
|
3980
|
+
return current;
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
function transformThis(path) {
|
|
3984
|
+
const parent = path.scope.getFunctionParent();
|
|
3985
|
+
let thisId;
|
|
3986
|
+
path.traverse({
|
|
3987
|
+
ThisExpression(path) {
|
|
3988
|
+
const current = getTargetFunctionParent(path, parent);
|
|
3989
|
+
if (current === parent) {
|
|
3990
|
+
thisId || (thisId = path.scope.generateUidIdentifier("self$"));
|
|
3991
|
+
path.replaceWith(thisId);
|
|
3992
|
+
}
|
|
3993
|
+
},
|
|
3994
|
+
JSXElement(path) {
|
|
3995
|
+
let source = path.get("openingElement").get("name");
|
|
3996
|
+
while (source.isJSXMemberExpression()) {
|
|
3997
|
+
source = source.get("object");
|
|
3998
|
+
}
|
|
3999
|
+
if (source.isJSXIdentifier() && source.node.name === "this") {
|
|
4000
|
+
const current = getTargetFunctionParent(path, parent);
|
|
4001
|
+
if (current === parent) {
|
|
4002
|
+
thisId || (thisId = path.scope.generateUidIdentifier("self$"));
|
|
4003
|
+
source.replaceWith(t__namespace.jsxIdentifier(thisId.name));
|
|
4004
|
+
|
|
4005
|
+
if (path.node.closingElement) {
|
|
4006
|
+
path.node.closingElement.name = path.node.openingElement.name;
|
|
4007
|
+
}
|
|
4008
|
+
}
|
|
4009
|
+
}
|
|
4010
|
+
}
|
|
4011
|
+
});
|
|
4012
|
+
return (node) => {
|
|
4013
|
+
if (thisId) {
|
|
4014
|
+
if (!parent || parent.block.type === "ClassMethod") {
|
|
4015
|
+
const decl = t__namespace.variableDeclaration("const", [
|
|
4016
|
+
t__namespace.variableDeclarator(thisId, t__namespace.thisExpression())]);
|
|
4017
|
+
|
|
4018
|
+
if (parent) {
|
|
4019
|
+
const stmt = path.getStatementParent();
|
|
4020
|
+
stmt.insertBefore(decl);
|
|
4021
|
+
} else {
|
|
4022
|
+
return t__namespace.callExpression(
|
|
4023
|
+
t__namespace.arrowFunctionExpression([], t__namespace.blockStatement([decl, t__namespace.returnStatement(node)])),
|
|
4024
|
+
[]);
|
|
4025
|
+
|
|
4026
|
+
}
|
|
4027
|
+
} else {
|
|
4028
|
+
parent.push({
|
|
4029
|
+
id: thisId,
|
|
4030
|
+
init: t__namespace.thisExpression(),
|
|
4031
|
+
kind: "const"
|
|
4032
|
+
});
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
return node;
|
|
4036
|
+
};
|
|
4037
|
+
}
|
|
4038
|
+
|
|
4039
|
+
function transformNode(path, info = {}) {
|
|
4040
|
+
const config = getConfig(path);
|
|
4041
|
+
const node = path.node;
|
|
4042
|
+
let staticValue;
|
|
4043
|
+
if (t__namespace.isJSXElement(node)) {
|
|
4044
|
+
return transformElement(config, path, info);
|
|
4045
|
+
} else if (t__namespace.isJSXFragment(node)) {
|
|
4046
|
+
let results = { template: "", declarations: [], exprs: [], dynamics: [] };
|
|
4047
|
+
// <><div /><Component /></>
|
|
4048
|
+
transformFragmentChildren(path.get("children"), results, config);
|
|
4049
|
+
return results;
|
|
4050
|
+
} else if (t__namespace.isJSXText(node) || (staticValue = getStaticExpression(path)) !== false) {
|
|
4051
|
+
const text =
|
|
4052
|
+
staticValue !== undefined ?
|
|
4053
|
+
info.doNotEscape ?
|
|
4054
|
+
staticValue.toString() :
|
|
4055
|
+
escapeHTML(staticValue.toString()) :
|
|
4056
|
+
trimWhitespace(node.extra.raw);
|
|
4057
|
+
if (!text.length) return null;
|
|
4058
|
+
const results = {
|
|
4059
|
+
template: text,
|
|
4060
|
+
declarations: [],
|
|
4061
|
+
exprs: [],
|
|
4062
|
+
dynamics: [],
|
|
4063
|
+
postExprs: [],
|
|
4064
|
+
text: true
|
|
4065
|
+
};
|
|
4066
|
+
if (!info.skipId && config.generate !== "ssr")
|
|
4067
|
+
results.id = path.scope.generateUidIdentifier("el$");
|
|
4068
|
+
return results;
|
|
4069
|
+
} else if (t__namespace.isJSXExpressionContainer(node)) {
|
|
4070
|
+
if (t__namespace.isJSXEmptyExpression(node.expression)) return null;
|
|
4071
|
+
if (
|
|
4072
|
+
!isDynamic(path.get("expression"), {
|
|
4073
|
+
checkMember: true,
|
|
4074
|
+
checkTags: !!info.componentChild,
|
|
4075
|
+
native: !info.componentChild
|
|
4076
|
+
}))
|
|
4077
|
+
{
|
|
4078
|
+
return { exprs: [node.expression], template: "" };
|
|
4079
|
+
}
|
|
4080
|
+
const expr =
|
|
4081
|
+
config.wrapConditionals &&
|
|
4082
|
+
config.generate !== "ssr" && (
|
|
4083
|
+
t__namespace.isLogicalExpression(node.expression) || t__namespace.isConditionalExpression(node.expression)) ?
|
|
4084
|
+
transformCondition(path.get("expression"), info.componentChild || info.fragmentChild) :
|
|
4085
|
+
!info.componentChild && (
|
|
4086
|
+
config.generate !== "ssr" || info.fragmentChild) &&
|
|
4087
|
+
t__namespace.isCallExpression(node.expression) &&
|
|
4088
|
+
!t__namespace.isCallExpression(node.expression.callee) &&
|
|
4089
|
+
!t__namespace.isMemberExpression(node.expression.callee) &&
|
|
4090
|
+
node.expression.arguments.length === 0 ?
|
|
4091
|
+
node.expression.callee :
|
|
4092
|
+
t__namespace.arrowFunctionExpression([], node.expression);
|
|
4093
|
+
return {
|
|
4094
|
+
exprs:
|
|
4095
|
+
expr.length > 1 ?
|
|
4096
|
+
[
|
|
4097
|
+
t__namespace.callExpression(
|
|
4098
|
+
t__namespace.arrowFunctionExpression(
|
|
4099
|
+
[],
|
|
4100
|
+
t__namespace.blockStatement([expr[0], t__namespace.returnStatement(expr[1])])),
|
|
4101
|
+
|
|
4102
|
+
[])] :
|
|
4103
|
+
|
|
4104
|
+
|
|
4105
|
+
[expr],
|
|
4106
|
+
template: "",
|
|
4107
|
+
dynamic: true
|
|
4108
|
+
};
|
|
4109
|
+
} else if (t__namespace.isJSXSpreadChild(node)) {
|
|
4110
|
+
if (
|
|
4111
|
+
!isDynamic(path.get("expression"), {
|
|
4112
|
+
checkMember: true,
|
|
4113
|
+
native: !info.componentChild
|
|
4114
|
+
}))
|
|
4115
|
+
|
|
4116
|
+
return { exprs: [node.expression], template: "" };
|
|
4117
|
+
const expr = t__namespace.arrowFunctionExpression([], node.expression);
|
|
4118
|
+
return {
|
|
4119
|
+
exprs: [expr],
|
|
4120
|
+
template: "",
|
|
4121
|
+
dynamic: true
|
|
4122
|
+
};
|
|
4123
|
+
}
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4126
|
+
function getCreateTemplate(config, path, result) {
|
|
4127
|
+
if (result.tagName && result.renderer === "dom" || config.generate === "dom") {
|
|
4128
|
+
return createTemplate$2;
|
|
4129
|
+
}
|
|
4130
|
+
|
|
4131
|
+
if (result.renderer === "ssr" || config.generate === "ssr") {
|
|
4132
|
+
return createTemplate$1;
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
return createTemplate;
|
|
4136
|
+
}
|
|
4137
|
+
|
|
4138
|
+
function transformElement(config, path, info = {}) {
|
|
4139
|
+
const node = path.node;
|
|
4140
|
+
let tagName = getTagName(node);
|
|
4141
|
+
// <Component ...></Component>
|
|
4142
|
+
if (isComponent(tagName)) return transformComponent(path);
|
|
4143
|
+
|
|
4144
|
+
// <div ...></div>
|
|
4145
|
+
// const element = getTransformElemet(config, path, tagName);
|
|
4146
|
+
|
|
4147
|
+
const tagRenderer = (config.renderers ?? []).find((renderer) =>
|
|
4148
|
+
renderer.elements.includes(tagName));
|
|
4149
|
+
|
|
4150
|
+
|
|
4151
|
+
if (tagRenderer?.name === "dom" || getConfig(path).generate === "dom") {
|
|
4152
|
+
return transformElement$3(path, info);
|
|
4153
|
+
}
|
|
4154
|
+
|
|
4155
|
+
if (getConfig(path).generate === "ssr") {
|
|
4156
|
+
return transformElement$2(path, info);
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
return transformElement$1(path);
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
// import parse5 from "parse5";
|
|
4163
|
+
const parse5 = require("parse5");
|
|
4164
|
+
|
|
4165
|
+
/** `bodyElement` will be used as a `context` (The place where we run `innerHTML`) */
|
|
4166
|
+
const bodyElement = parse5.parse(
|
|
4167
|
+
`<!DOCTYPE html><html><head></head><body></body></html>`
|
|
4168
|
+
// @ts-ignore
|
|
4169
|
+
).childNodes[1].childNodes[1];
|
|
4170
|
+
|
|
4171
|
+
function innerHTML(htmlFragment) {
|
|
4172
|
+
/** `htmlFragment` will be parsed as if it was set to the `bodyElement`'s `innerHTML` property. */
|
|
4173
|
+
const parsedFragment = parse5.parseFragment(bodyElement, htmlFragment);
|
|
4174
|
+
|
|
4175
|
+
/** `serialize` returns back a string from the parsed nodes */
|
|
4176
|
+
return parse5.serialize(parsedFragment);
|
|
4177
|
+
}
|
|
4178
|
+
|
|
4179
|
+
/**
|
|
4180
|
+
* Returns an object with information when the markup is invalid
|
|
4181
|
+
*
|
|
4182
|
+
* @param {string} html - The html string to validate
|
|
4183
|
+
* @returns {{
|
|
4184
|
+
* html: string; // html stripped of attributives and content
|
|
4185
|
+
* browser: string; // what the browser returned from evaluating `html`
|
|
4186
|
+
* } | null}
|
|
4187
|
+
*/
|
|
4188
|
+
function isInvalidMarkup(html) {
|
|
4189
|
+
html = html
|
|
4190
|
+
|
|
4191
|
+
// normalize dom-expressions comments, so comments location are also validated
|
|
4192
|
+
.replaceAll("<!>", "<!---->").
|
|
4193
|
+
replaceAll("<!$>", "<!--$-->").
|
|
4194
|
+
replaceAll("<!/>", "<!--/-->")
|
|
4195
|
+
|
|
4196
|
+
// replace text nodes
|
|
4197
|
+
// text nodes are problematic, think "doesn't" vs "doesn't"
|
|
4198
|
+
// we can detect if text nodes were moved by the browser when the `#text` moves
|
|
4199
|
+
|
|
4200
|
+
// replace text nodes that isnt in between tags by `#text`
|
|
4201
|
+
.replace(/^[^<]+/, "#text").
|
|
4202
|
+
replace(/[^>]+$/, "#text")
|
|
4203
|
+
// replace text nodes in between tags by `#text`
|
|
4204
|
+
.replace(/>[^<]+</gi, ">#text<")
|
|
4205
|
+
|
|
4206
|
+
// remove attributes (the lack of quotes will make it mismatch)
|
|
4207
|
+
// attributes are not longer added to `templateWithClosingTags`
|
|
4208
|
+
// https://github.com/solidjs/solid/issues/2338
|
|
4209
|
+
// .replace(/<([a-z0-9-:]+)\s+[^>]+>/gi, "<$1>")
|
|
4210
|
+
|
|
4211
|
+
// fix escaping, so doesnt mess up the validation
|
|
4212
|
+
// `<script>a();</script>` -> `<script>a();</script>`
|
|
4213
|
+
.replace(/<([^>]+)>/gi, "<$1>");
|
|
4214
|
+
|
|
4215
|
+
// edge cases (safe to assume they will use the partial in the right place)
|
|
4216
|
+
|
|
4217
|
+
// table cells
|
|
4218
|
+
if (/^<(td|th)>/.test(html)) {
|
|
4219
|
+
html = `<table><tbody><tr>${html}</tr></tbody></table>`;
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
// table rows
|
|
4223
|
+
if (/^<tr>/.test(html)) {
|
|
4224
|
+
html = `<table><tbody>${html}</tbody></table>`;
|
|
4225
|
+
}
|
|
4226
|
+
|
|
4227
|
+
// table misc
|
|
4228
|
+
if (/^<col>/.test(html)) {
|
|
4229
|
+
html = `<table><colgroup>${html}</colgroup></table>`;
|
|
4230
|
+
}
|
|
4231
|
+
|
|
4232
|
+
// table components
|
|
4233
|
+
if (/^<(thead|tbody|tfoot|colgroup|caption)>/.test(html)) {
|
|
4234
|
+
html = `<table>${html}</table>`;
|
|
4235
|
+
}
|
|
4236
|
+
|
|
4237
|
+
// skip when equal to:
|
|
4238
|
+
switch (html) {
|
|
4239
|
+
// empty table components
|
|
4240
|
+
case "<table></table>":
|
|
4241
|
+
case "<table><thead></thead></table>":
|
|
4242
|
+
case "<table><tbody></tbody></table>":
|
|
4243
|
+
case "<table><thead></thead><tbody></tbody></table>":{
|
|
4244
|
+
return;
|
|
4245
|
+
}}
|
|
4246
|
+
|
|
4247
|
+
|
|
4248
|
+
/** Parse HTML. `browser` is a string with the supposed resulting html of a real `innerHTML` call */
|
|
4249
|
+
const browser = innerHTML(html);
|
|
4250
|
+
|
|
4251
|
+
if (html.toLowerCase() !== browser.toLowerCase()) {
|
|
4252
|
+
return {
|
|
4253
|
+
html,
|
|
4254
|
+
browser
|
|
4255
|
+
};
|
|
4256
|
+
}
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
// add to the top/bottom of the module.
|
|
4260
|
+
var postprocess = ((path, state) => {
|
|
4261
|
+
if (state.skip) return;
|
|
4262
|
+
|
|
4263
|
+
if (path.scope.data.events) {
|
|
4264
|
+
path.node.body.push(
|
|
4265
|
+
t__namespace.expressionStatement(
|
|
4266
|
+
t__namespace.callExpression(
|
|
4267
|
+
registerImportMethod(path, "delegateEvents", getRendererConfig(path, "dom").moduleName),
|
|
4268
|
+
[t__namespace.arrayExpression(Array.from(path.scope.data.events).map((e) => t__namespace.stringLiteral(e)))])));
|
|
4269
|
+
|
|
4270
|
+
|
|
4271
|
+
|
|
4272
|
+
}
|
|
4273
|
+
if (path.scope.data.templates?.length) {
|
|
4274
|
+
if (path.hub.file.metadata.config.validate) {
|
|
4275
|
+
for (const template of path.scope.data.templates) {
|
|
4276
|
+
const html = template.templateWithClosingTags;
|
|
4277
|
+
// not sure when/why this is not a string
|
|
4278
|
+
if (typeof html === "string") {
|
|
4279
|
+
const result = isInvalidMarkup(html);
|
|
4280
|
+
if (result) {
|
|
4281
|
+
const message =
|
|
4282
|
+
"\nThe HTML provided is malformed and will yield unexpected output when evaluated by a browser.\n";
|
|
4283
|
+
console.warn(message);
|
|
4284
|
+
console.warn("User HTML:\n", result.html);
|
|
4285
|
+
console.warn("Browser HTML:\n", result.browser);
|
|
4286
|
+
console.warn("Original HTML:\n", html);
|
|
4287
|
+
// throw path.buildCodeFrameError();
|
|
4288
|
+
}
|
|
4289
|
+
}
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
let domTemplates = path.scope.data.templates.filter((temp) => temp.renderer === "dom");
|
|
4293
|
+
let ssrTemplates = path.scope.data.templates.filter((temp) => temp.renderer === "ssr");
|
|
4294
|
+
domTemplates.length > 0 && appendTemplates$1(path, domTemplates);
|
|
4295
|
+
ssrTemplates.length > 0 && appendTemplates(path, ssrTemplates);
|
|
4296
|
+
}
|
|
4297
|
+
});
|
|
4298
|
+
|
|
4299
|
+
var config = {
|
|
4300
|
+
moduleName: "dom",
|
|
4301
|
+
generate: "dom",
|
|
4302
|
+
hydratable: false,
|
|
4303
|
+
delegateEvents: true,
|
|
4304
|
+
delegatedEvents: [],
|
|
4305
|
+
builtIns: [],
|
|
4306
|
+
requireImportSource: false,
|
|
4307
|
+
wrapConditionals: true,
|
|
4308
|
+
omitNestedClosingTags: false,
|
|
4309
|
+
omitLastClosingTag: true,
|
|
4310
|
+
omitQuotes: true,
|
|
4311
|
+
omitAttributeSpacing: true,
|
|
4312
|
+
contextToCustomElements: false,
|
|
4313
|
+
staticMarker: "@once",
|
|
4314
|
+
effectWrapper: "effect",
|
|
4315
|
+
memoWrapper: "memo",
|
|
4316
|
+
validate: true,
|
|
4317
|
+
inlineStyles: true
|
|
4318
|
+
};
|
|
4319
|
+
|
|
4320
|
+
var preprocess = ((path, state) => {
|
|
4321
|
+
const merged = path.hub.file.metadata.config = Object.assign({}, config, state.opts);
|
|
4322
|
+
const lib = merged.requireImportSource;
|
|
4323
|
+
if (lib) {
|
|
4324
|
+
const comments = path.hub.file.ast.comments;
|
|
4325
|
+
let process = false;
|
|
4326
|
+
for (let i = 0; i < comments.length; i++) {
|
|
4327
|
+
const comment = comments[i];
|
|
4328
|
+
const pieces = comment.value.split("@jsxImportSource");
|
|
4329
|
+
if (pieces.length === 2 && pieces[1].trim() === lib) {
|
|
4330
|
+
process = true;
|
|
4331
|
+
break;
|
|
4332
|
+
}
|
|
4333
|
+
}
|
|
4334
|
+
if (!process) {
|
|
4335
|
+
state.skip = true;
|
|
4336
|
+
return;
|
|
4337
|
+
}
|
|
4338
|
+
}
|
|
4339
|
+
});
|
|
4340
|
+
|
|
4341
|
+
var index = (() =>
|
|
4342
|
+
|
|
4343
|
+
|
|
4344
|
+
|
|
4345
|
+
{
|
|
4346
|
+
return {
|
|
4347
|
+
name: "JSX DOM Expressions",
|
|
4348
|
+
inherits: SyntaxJSX.default,
|
|
4349
|
+
visitor: {
|
|
4350
|
+
JSXElement: transformJSX,
|
|
4351
|
+
JSXFragment: transformJSX,
|
|
4352
|
+
Program: {
|
|
4353
|
+
enter: preprocess,
|
|
4354
|
+
exit: postprocess
|
|
4355
|
+
}
|
|
4356
|
+
}
|
|
4357
|
+
};
|
|
4358
|
+
});
|
|
4359
|
+
|
|
4360
|
+
module.exports = index;
|