├── LICENSE ├── README.md ├── data.json ├── node_modules ├── .package-lock.json ├── @babel │ ├── code-frame │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ └── index.js │ │ └── package.json │ ├── generator │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ ├── buffer.js │ │ │ ├── buffer.js.map │ │ │ ├── generators │ │ │ │ ├── base.js │ │ │ │ ├── base.js.map │ │ │ │ ├── classes.js │ │ │ │ ├── classes.js.map │ │ │ │ ├── expressions.js │ │ │ │ ├── expressions.js.map │ │ │ │ ├── flow.js │ │ │ │ ├── flow.js.map │ │ │ │ ├── index.js │ │ │ │ ├── index.js.map │ │ │ │ ├── jsx.js │ │ │ │ ├── jsx.js.map │ │ │ │ ├── methods.js │ │ │ │ ├── methods.js.map │ │ │ │ ├── modules.js │ │ │ │ ├── modules.js.map │ │ │ │ ├── statements.js │ │ │ │ ├── statements.js.map │ │ │ │ ├── template-literals.js │ │ │ │ ├── template-literals.js.map │ │ │ │ ├── types.js │ │ │ │ ├── types.js.map │ │ │ │ ├── typescript.js │ │ │ │ └── typescript.js.map │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── node │ │ │ │ ├── index.js │ │ │ │ ├── index.js.map │ │ │ │ ├── parentheses.js │ │ │ │ ├── parentheses.js.map │ │ │ │ ├── whitespace.js │ │ │ │ └── whitespace.js.map │ │ │ ├── printer.js │ │ │ ├── printer.js.map │ │ │ ├── source-map.js │ │ │ └── source-map.js.map │ │ └── package.json │ ├── helper-environment-visitor │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ └── index.js │ │ └── package.json │ ├── helper-function-name │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── helper-hoist-variables │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ └── index.js │ │ └── package.json │ ├── helper-split-export-declaration │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ └── index.js │ │ └── package.json │ ├── helper-string-parser │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── helper-validator-identifier │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ ├── identifier.js │ │ │ ├── identifier.js.map │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── keyword.js │ │ │ └── keyword.js.map │ │ ├── package.json │ │ └── scripts │ │ │ └── generate-identifier-regex.js │ ├── highlight │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ └── index.js │ │ └── package.json │ ├── parser │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bin │ │ │ └── babel-parser.js │ │ ├── index.cjs │ │ ├── lib │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── package.json │ │ └── typings │ │ │ ├── babel-parser.d.ts │ │ │ └── babel-parser.source.d.ts │ ├── template │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ ├── builder.js │ │ │ ├── formatters.js │ │ │ ├── index.js │ │ │ ├── literal.js │ │ │ ├── options.js │ │ │ ├── parse.js │ │ │ ├── populate.js │ │ │ └── string.js │ │ └── package.json │ ├── traverse │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ ├── cache.js │ │ │ ├── cache.js.map │ │ │ ├── context.js │ │ │ ├── context.js.map │ │ │ ├── hub.js │ │ │ ├── hub.js.map │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── path │ │ │ │ ├── ancestry.js │ │ │ │ ├── ancestry.js.map │ │ │ │ ├── comments.js │ │ │ │ ├── comments.js.map │ │ │ │ ├── context.js │ │ │ │ ├── context.js.map │ │ │ │ ├── conversion.js │ │ │ │ ├── conversion.js.map │ │ │ │ ├── evaluation.js │ │ │ │ ├── evaluation.js.map │ │ │ │ ├── family.js │ │ │ │ ├── family.js.map │ │ │ │ ├── index.js │ │ │ │ ├── index.js.map │ │ │ │ ├── inference │ │ │ │ │ ├── index.js │ │ │ │ │ ├── index.js.map │ │ │ │ │ ├── inferer-reference.js │ │ │ │ │ ├── inferer-reference.js.map │ │ │ │ │ ├── inferers.js │ │ │ │ │ ├── inferers.js.map │ │ │ │ │ ├── util.js │ │ │ │ │ └── util.js.map │ │ │ │ ├── introspection.js │ │ │ │ ├── introspection.js.map │ │ │ │ ├── lib │ │ │ │ │ ├── hoister.js │ │ │ │ │ ├── hoister.js.map │ │ │ │ │ ├── removal-hooks.js │ │ │ │ │ ├── removal-hooks.js.map │ │ │ │ │ ├── virtual-types-validator.js │ │ │ │ │ ├── virtual-types-validator.js.map │ │ │ │ │ ├── virtual-types.js │ │ │ │ │ └── virtual-types.js.map │ │ │ │ ├── modification.js │ │ │ │ ├── modification.js.map │ │ │ │ ├── removal.js │ │ │ │ ├── removal.js.map │ │ │ │ ├── replacement.js │ │ │ │ └── replacement.js.map │ │ │ ├── scope │ │ │ │ ├── binding.js │ │ │ │ ├── binding.js.map │ │ │ │ ├── index.js │ │ │ │ ├── index.js.map │ │ │ │ └── lib │ │ │ │ │ ├── renamer.js │ │ │ │ │ └── renamer.js.map │ │ │ ├── traverse-node.js │ │ │ ├── traverse-node.js.map │ │ │ ├── types.js │ │ │ ├── types.js.map │ │ │ ├── visitors.js │ │ │ └── visitors.js.map │ │ └── package.json │ └── types │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ ├── asserts │ │ │ ├── assertNode.js │ │ │ ├── assertNode.js.map │ │ │ └── generated │ │ │ │ ├── index.js │ │ │ │ └── index.js.map │ │ ├── ast-types │ │ │ └── generated │ │ │ │ ├── index.js │ │ │ │ └── index.js.map │ │ ├── builders │ │ │ ├── flow │ │ │ │ ├── createFlowUnionType.js │ │ │ │ ├── createFlowUnionType.js.map │ │ │ │ ├── createTypeAnnotationBasedOnTypeof.js │ │ │ │ └── createTypeAnnotationBasedOnTypeof.js.map │ │ │ ├── generated │ │ │ │ ├── index.js │ │ │ │ ├── index.js.map │ │ │ │ ├── uppercase.js │ │ │ │ └── uppercase.js.map │ │ │ ├── react │ │ │ │ ├── buildChildren.js │ │ │ │ └── buildChildren.js.map │ │ │ ├── typescript │ │ │ │ ├── createTSUnionType.js │ │ │ │ └── createTSUnionType.js.map │ │ │ ├── validateNode.js │ │ │ └── validateNode.js.map │ │ ├── clone │ │ │ ├── clone.js │ │ │ ├── clone.js.map │ │ │ ├── cloneDeep.js │ │ │ ├── cloneDeep.js.map │ │ │ ├── cloneDeepWithoutLoc.js │ │ │ ├── cloneDeepWithoutLoc.js.map │ │ │ ├── cloneNode.js │ │ │ ├── cloneNode.js.map │ │ │ ├── cloneWithoutLoc.js │ │ │ └── cloneWithoutLoc.js.map │ │ ├── comments │ │ │ ├── addComment.js │ │ │ ├── addComment.js.map │ │ │ ├── addComments.js │ │ │ ├── addComments.js.map │ │ │ ├── inheritInnerComments.js │ │ │ ├── inheritInnerComments.js.map │ │ │ ├── inheritLeadingComments.js │ │ │ ├── inheritLeadingComments.js.map │ │ │ ├── inheritTrailingComments.js │ │ │ ├── inheritTrailingComments.js.map │ │ │ ├── inheritsComments.js │ │ │ ├── inheritsComments.js.map │ │ │ ├── removeComments.js │ │ │ └── removeComments.js.map │ │ ├── constants │ │ │ ├── generated │ │ │ │ ├── index.js │ │ │ │ └── index.js.map │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── converters │ │ │ ├── ensureBlock.js │ │ │ ├── ensureBlock.js.map │ │ │ ├── gatherSequenceExpressions.js │ │ │ ├── gatherSequenceExpressions.js.map │ │ │ ├── toBindingIdentifierName.js │ │ │ ├── toBindingIdentifierName.js.map │ │ │ ├── toBlock.js │ │ │ ├── toBlock.js.map │ │ │ ├── toComputedKey.js │ │ │ ├── toComputedKey.js.map │ │ │ ├── toExpression.js │ │ │ ├── toExpression.js.map │ │ │ ├── toIdentifier.js │ │ │ ├── toIdentifier.js.map │ │ │ ├── toKeyAlias.js │ │ │ ├── toKeyAlias.js.map │ │ │ ├── toSequenceExpression.js │ │ │ ├── toSequenceExpression.js.map │ │ │ ├── toStatement.js │ │ │ ├── toStatement.js.map │ │ │ ├── valueToNode.js │ │ │ └── valueToNode.js.map │ │ ├── definitions │ │ │ ├── core.js │ │ │ ├── core.js.map │ │ │ ├── experimental.js │ │ │ ├── experimental.js.map │ │ │ ├── flow.js │ │ │ ├── flow.js.map │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── jsx.js │ │ │ ├── jsx.js.map │ │ │ ├── misc.js │ │ │ ├── misc.js.map │ │ │ ├── placeholders.js │ │ │ ├── placeholders.js.map │ │ │ ├── typescript.js │ │ │ ├── typescript.js.map │ │ │ ├── utils.js │ │ │ └── utils.js.map │ │ ├── index-legacy.d.ts │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── index.js.flow │ │ ├── index.js.map │ │ ├── modifications │ │ │ ├── appendToMemberExpression.js │ │ │ ├── appendToMemberExpression.js.map │ │ │ ├── flow │ │ │ │ ├── removeTypeDuplicates.js │ │ │ │ └── removeTypeDuplicates.js.map │ │ │ ├── inherits.js │ │ │ ├── inherits.js.map │ │ │ ├── prependToMemberExpression.js │ │ │ ├── prependToMemberExpression.js.map │ │ │ ├── removeProperties.js │ │ │ ├── removeProperties.js.map │ │ │ ├── removePropertiesDeep.js │ │ │ ├── removePropertiesDeep.js.map │ │ │ └── typescript │ │ │ │ ├── removeTypeDuplicates.js │ │ │ │ └── removeTypeDuplicates.js.map │ │ ├── retrievers │ │ │ ├── getBindingIdentifiers.js │ │ │ ├── getBindingIdentifiers.js.map │ │ │ ├── getOuterBindingIdentifiers.js │ │ │ └── getOuterBindingIdentifiers.js.map │ │ ├── traverse │ │ │ ├── traverse.js │ │ │ ├── traverse.js.map │ │ │ ├── traverseFast.js │ │ │ └── traverseFast.js.map │ │ ├── utils │ │ │ ├── inherit.js │ │ │ ├── inherit.js.map │ │ │ ├── react │ │ │ │ ├── cleanJSXElementLiteralChild.js │ │ │ │ └── cleanJSXElementLiteralChild.js.map │ │ │ ├── shallowEqual.js │ │ │ └── shallowEqual.js.map │ │ └── validators │ │ │ ├── buildMatchMemberExpression.js │ │ │ ├── buildMatchMemberExpression.js.map │ │ │ ├── generated │ │ │ ├── index.js │ │ │ └── index.js.map │ │ │ ├── is.js │ │ │ ├── is.js.map │ │ │ ├── isBinding.js │ │ │ ├── isBinding.js.map │ │ │ ├── isBlockScoped.js │ │ │ ├── isBlockScoped.js.map │ │ │ ├── isImmutable.js │ │ │ ├── isImmutable.js.map │ │ │ ├── isLet.js │ │ │ ├── isLet.js.map │ │ │ ├── isNode.js │ │ │ ├── isNode.js.map │ │ │ ├── isNodesEquivalent.js │ │ │ ├── isNodesEquivalent.js.map │ │ │ ├── isPlaceholderType.js │ │ │ ├── isPlaceholderType.js.map │ │ │ ├── isReferenced.js │ │ │ ├── isReferenced.js.map │ │ │ ├── isScope.js │ │ │ ├── isScope.js.map │ │ │ ├── isSpecifierDefault.js │ │ │ ├── isSpecifierDefault.js.map │ │ │ ├── isType.js │ │ │ ├── isType.js.map │ │ │ ├── isValidES3Identifier.js │ │ │ ├── isValidES3Identifier.js.map │ │ │ ├── isValidIdentifier.js │ │ │ ├── isValidIdentifier.js.map │ │ │ ├── isVar.js │ │ │ ├── isVar.js.map │ │ │ ├── matchesPattern.js │ │ │ ├── matchesPattern.js.map │ │ │ ├── react │ │ │ ├── isCompatTag.js │ │ │ ├── isCompatTag.js.map │ │ │ ├── isReactComponent.js │ │ │ └── isReactComponent.js.map │ │ │ ├── validate.js │ │ │ └── validate.js.map │ │ └── package.json ├── @jridgewell │ ├── gen-mapping │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist │ │ │ ├── gen-mapping.mjs │ │ │ ├── gen-mapping.mjs.map │ │ │ ├── gen-mapping.umd.js │ │ │ ├── gen-mapping.umd.js.map │ │ │ └── types │ │ │ │ ├── gen-mapping.d.ts │ │ │ │ ├── sourcemap-segment.d.ts │ │ │ │ └── types.d.ts │ │ ├── package.json │ │ └── src │ │ │ ├── gen-mapping.ts │ │ │ ├── sourcemap-segment.ts │ │ │ └── types.ts │ ├── resolve-uri │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist │ │ │ ├── resolve-uri.mjs │ │ │ ├── resolve-uri.mjs.map │ │ │ ├── resolve-uri.umd.js │ │ │ ├── resolve-uri.umd.js.map │ │ │ └── types │ │ │ │ └── resolve-uri.d.ts │ │ └── package.json │ ├── set-array │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist │ │ │ ├── set-array.mjs │ │ │ ├── set-array.mjs.map │ │ │ ├── set-array.umd.js │ │ │ ├── set-array.umd.js.map │ │ │ └── types │ │ │ │ └── set-array.d.ts │ │ ├── package.json │ │ └── src │ │ │ └── set-array.ts │ ├── sourcemap-codec │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist │ │ │ ├── sourcemap-codec.mjs │ │ │ ├── sourcemap-codec.mjs.map │ │ │ ├── sourcemap-codec.umd.js │ │ │ ├── sourcemap-codec.umd.js.map │ │ │ └── types │ │ │ │ └── sourcemap-codec.d.ts │ │ ├── package.json │ │ └── src │ │ │ └── sourcemap-codec.ts │ └── trace-mapping │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist │ │ ├── trace-mapping.mjs │ │ ├── trace-mapping.mjs.map │ │ ├── trace-mapping.umd.js │ │ ├── trace-mapping.umd.js.map │ │ └── types │ │ │ ├── any-map.d.ts │ │ │ ├── binary-search.d.ts │ │ │ ├── by-source.d.ts │ │ │ ├── resolve.d.ts │ │ │ ├── sort.d.ts │ │ │ ├── sourcemap-segment.d.ts │ │ │ ├── strip-filename.d.ts │ │ │ ├── trace-mapping.d.ts │ │ │ └── types.d.ts │ │ └── package.json ├── ansi-styles │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── chalk │ ├── index.js │ ├── index.js.flow │ ├── license │ ├── package.json │ ├── readme.md │ ├── templates.js │ └── types │ │ └── index.d.ts ├── color-convert │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── conversions.js │ ├── index.js │ ├── package.json │ └── route.js ├── color-name │ ├── .eslintrc.json │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── debug │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── src │ │ ├── browser.js │ │ ├── common.js │ │ ├── index.js │ │ └── node.js ├── escape-string-regexp │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── globals │ ├── globals.json │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── has-flag │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── js-tokens │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── jsesc │ ├── LICENSE-MIT.txt │ ├── README.md │ ├── bin │ │ └── jsesc │ ├── jsesc.js │ ├── man │ │ └── jsesc.1 │ └── package.json ├── ms │ ├── index.js │ ├── license.md │ ├── package.json │ └── readme.md ├── supports-color │ ├── browser.js │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md └── to-fast-properties │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── startfun.js ├── 原来的js.js ├── 反编译的js.js ├── 更好的解混淆(运行有问题).js ├── 解混淆.js └── 魔改前的sm3.js /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 执行 startfun.js 5 | 6 | 7 | 8 | 9 | 反编译大部分语法, 剩下的可以自己研究然后加上呢 10 | 11 | 知识星球:https://t.zsxq.com/06bIUvBEM 12 | 13 | 14 | -------------------------------------------------------------------------------- /node_modules/@babel/code-frame/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/code-frame/README.md: -------------------------------------------------------------------------------- 1 | # @babel/code-frame 2 | 3 | > Generate errors that contain a code frame that point to source locations. 4 | 5 | See our website [@babel/code-frame](https://babeljs.io/docs/en/babel-code-frame) for more information. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save-dev @babel/code-frame 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/code-frame --dev 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/code-frame/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/code-frame", 3 | "version": "7.18.6", 4 | "description": "Generate errors that contain a code frame that point to source locations.", 5 | "author": "The Babel Team (https://babel.dev/team)", 6 | "homepage": "https://babel.dev/docs/en/next/babel-code-frame", 7 | "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen", 8 | "license": "MIT", 9 | "publishConfig": { 10 | "access": "public" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/babel/babel.git", 15 | "directory": "packages/babel-code-frame" 16 | }, 17 | "main": "./lib/index.js", 18 | "dependencies": { 19 | "@babel/highlight": "^7.18.6" 20 | }, 21 | "devDependencies": { 22 | "@types/chalk": "^2.0.0", 23 | "chalk": "^2.0.0", 24 | "strip-ansi": "^4.0.0" 25 | }, 26 | "engines": { 27 | "node": ">=6.9.0" 28 | }, 29 | "type": "commonjs" 30 | } -------------------------------------------------------------------------------- /node_modules/@babel/generator/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/generator/README.md: -------------------------------------------------------------------------------- 1 | # @babel/generator 2 | 3 | > Turns an AST into code. 4 | 5 | See our website [@babel/generator](https://babeljs.io/docs/en/babel-generator) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20generator%22+is%3Aopen) associated with this package. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save-dev @babel/generator 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/generator --dev 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/generator/lib/generators/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":[],"sources":["../../src/generators/index.ts"],"sourcesContent":["export * from \"./template-literals\";\nexport * from \"./expressions\";\nexport * from \"./statements\";\nexport * from \"./classes\";\nexport * from \"./methods\";\nexport * from \"./modules\";\nexport * from \"./types\";\nexport * from \"./flow\";\nexport * from \"./base\";\nexport * from \"./jsx\";\nexport * from \"./typescript\";\n"],"mappings":";;;;;AAAA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"} -------------------------------------------------------------------------------- /node_modules/@babel/generator/lib/generators/template-literals.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.TaggedTemplateExpression = TaggedTemplateExpression; 7 | exports.TemplateElement = TemplateElement; 8 | exports.TemplateLiteral = TemplateLiteral; 9 | function TaggedTemplateExpression(node) { 10 | this.print(node.tag, node); 11 | this.print(node.typeParameters, node); 12 | this.print(node.quasi, node); 13 | } 14 | function TemplateElement(node, parent) { 15 | const isFirst = parent.quasis[0] === node; 16 | const isLast = parent.quasis[parent.quasis.length - 1] === node; 17 | const value = (isFirst ? "`" : "}") + node.value.raw + (isLast ? "`" : "${"); 18 | this.token(value, true); 19 | } 20 | function TemplateLiteral(node) { 21 | const quasis = node.quasis; 22 | for (let i = 0; i < quasis.length; i++) { 23 | this.print(quasis[i], node); 24 | if (i + 1 < quasis.length) { 25 | this.print(node.expressions[i], node); 26 | } 27 | } 28 | } 29 | 30 | //# sourceMappingURL=template-literals.js.map 31 | -------------------------------------------------------------------------------- /node_modules/@babel/generator/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/generator", 3 | "version": "7.20.4", 4 | "description": "Turns an AST into code.", 5 | "author": "The Babel Team (https://babel.dev/team)", 6 | "license": "MIT", 7 | "publishConfig": { 8 | "access": "public" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/babel/babel.git", 13 | "directory": "packages/babel-generator" 14 | }, 15 | "homepage": "https://babel.dev/docs/en/next/babel-generator", 16 | "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20generator%22+is%3Aopen", 17 | "main": "./lib/index.js", 18 | "files": [ 19 | "lib" 20 | ], 21 | "dependencies": { 22 | "@babel/types": "^7.20.2", 23 | "@jridgewell/gen-mapping": "^0.3.2", 24 | "jsesc": "^2.5.1" 25 | }, 26 | "devDependencies": { 27 | "@babel/helper-fixtures": "^7.19.4", 28 | "@babel/parser": "^7.20.3", 29 | "@jridgewell/trace-mapping": "^0.3.8", 30 | "@types/jsesc": "^2.5.0", 31 | "charcodes": "^0.2.0" 32 | }, 33 | "engines": { 34 | "node": ">=6.9.0" 35 | }, 36 | "type": "commonjs" 37 | } -------------------------------------------------------------------------------- /node_modules/@babel/helper-environment-visitor/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-environment-visitor/README.md: -------------------------------------------------------------------------------- 1 | # @babel/helper-environment-visitor 2 | 3 | > Helper visitor to only visit nodes in the current 'this' context 4 | 5 | See our website [@babel/helper-environment-visitor](https://babeljs.io/docs/en/babel-helper-environment-visitor) for more information. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save-dev @babel/helper-environment-visitor 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/helper-environment-visitor --dev 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-environment-visitor/lib/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | exports.requeueComputedKeyAndDecorators = requeueComputedKeyAndDecorators; 8 | exports.skipAllButComputedKey = skipAllButComputedKey; 9 | 10 | function skipAllButComputedKey(path) { 11 | path.skip(); 12 | 13 | if (path.node.computed) { 14 | path.context.maybeQueue(path.get("key")); 15 | } 16 | } 17 | 18 | function requeueComputedKeyAndDecorators(path) { 19 | const { 20 | context, 21 | node 22 | } = path; 23 | 24 | if (node.computed) { 25 | context.maybeQueue(path.get("key")); 26 | } 27 | 28 | if (node.decorators) { 29 | for (const decorator of path.get("decorators")) { 30 | context.maybeQueue(decorator); 31 | } 32 | } 33 | } 34 | 35 | const visitor = { 36 | FunctionParent(path) { 37 | if (path.isArrowFunctionExpression()) { 38 | return; 39 | } else { 40 | path.skip(); 41 | 42 | if (path.isMethod()) { 43 | requeueComputedKeyAndDecorators(path); 44 | } 45 | } 46 | }, 47 | 48 | Property(path) { 49 | if (path.isObjectProperty()) { 50 | return; 51 | } 52 | 53 | path.skip(); 54 | requeueComputedKeyAndDecorators(path); 55 | } 56 | 57 | }; 58 | var _default = visitor; 59 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/@babel/helper-environment-visitor/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/helper-environment-visitor", 3 | "version": "7.18.9", 4 | "description": "Helper visitor to only visit nodes in the current 'this' context", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com/babel/babel.git", 8 | "directory": "packages/babel-helper-environment-visitor" 9 | }, 10 | "homepage": "https://babel.dev/docs/en/next/babel-helper-environment-visitor", 11 | "license": "MIT", 12 | "publishConfig": { 13 | "access": "public" 14 | }, 15 | "main": "./lib/index.js", 16 | "exports": { 17 | ".": "./lib/index.js", 18 | "./package.json": "./package.json" 19 | }, 20 | "devDependencies": { 21 | "@babel/traverse": "^7.18.9", 22 | "@babel/types": "^7.18.9" 23 | }, 24 | "engines": { 25 | "node": ">=6.9.0" 26 | }, 27 | "author": "The Babel Team (https://babel.dev/team)", 28 | "type": "commonjs" 29 | } -------------------------------------------------------------------------------- /node_modules/@babel/helper-function-name/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-function-name/README.md: -------------------------------------------------------------------------------- 1 | # @babel/helper-function-name 2 | 3 | > Helper function to change the property 'name' of every function 4 | 5 | See our website [@babel/helper-function-name](https://babeljs.io/docs/en/babel-helper-function-name) for more information. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save @babel/helper-function-name 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/helper-function-name 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-function-name/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/helper-function-name", 3 | "version": "7.19.0", 4 | "description": "Helper function to change the property 'name' of every function", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com/babel/babel.git", 8 | "directory": "packages/babel-helper-function-name" 9 | }, 10 | "homepage": "https://babel.dev/docs/en/next/babel-helper-function-name", 11 | "license": "MIT", 12 | "publishConfig": { 13 | "access": "public" 14 | }, 15 | "main": "./lib/index.js", 16 | "dependencies": { 17 | "@babel/template": "^7.18.10", 18 | "@babel/types": "^7.19.0" 19 | }, 20 | "engines": { 21 | "node": ">=6.9.0" 22 | }, 23 | "author": "The Babel Team (https://babel.dev/team)", 24 | "type": "commonjs" 25 | } -------------------------------------------------------------------------------- /node_modules/@babel/helper-hoist-variables/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-hoist-variables/README.md: -------------------------------------------------------------------------------- 1 | # @babel/helper-hoist-variables 2 | 3 | > Helper function to hoist variables 4 | 5 | See our website [@babel/helper-hoist-variables](https://babeljs.io/docs/en/babel-helper-hoist-variables) for more information. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save @babel/helper-hoist-variables 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/helper-hoist-variables 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-hoist-variables/lib/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = hoistVariables; 7 | 8 | var _t = require("@babel/types"); 9 | 10 | const { 11 | assignmentExpression, 12 | expressionStatement, 13 | identifier 14 | } = _t; 15 | const visitor = { 16 | Scope(path, state) { 17 | if (state.kind === "let") path.skip(); 18 | }, 19 | 20 | FunctionParent(path) { 21 | path.skip(); 22 | }, 23 | 24 | VariableDeclaration(path, state) { 25 | if (state.kind && path.node.kind !== state.kind) return; 26 | const nodes = []; 27 | const declarations = path.get("declarations"); 28 | let firstId; 29 | 30 | for (const declar of declarations) { 31 | firstId = declar.node.id; 32 | 33 | if (declar.node.init) { 34 | nodes.push(expressionStatement(assignmentExpression("=", declar.node.id, declar.node.init))); 35 | } 36 | 37 | for (const name of Object.keys(declar.getBindingIdentifiers())) { 38 | state.emit(identifier(name), name, declar.node.init !== null); 39 | } 40 | } 41 | 42 | if (path.parentPath.isFor({ 43 | left: path.node 44 | })) { 45 | path.replaceWith(firstId); 46 | } else { 47 | path.replaceWithMultiple(nodes); 48 | } 49 | } 50 | 51 | }; 52 | 53 | function hoistVariables(path, emit, kind = "var") { 54 | path.traverse(visitor, { 55 | kind, 56 | emit 57 | }); 58 | } -------------------------------------------------------------------------------- /node_modules/@babel/helper-hoist-variables/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/helper-hoist-variables", 3 | "version": "7.18.6", 4 | "description": "Helper function to hoist variables", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com/babel/babel.git", 8 | "directory": "packages/babel-helper-hoist-variables" 9 | }, 10 | "homepage": "https://babel.dev/docs/en/next/babel-helper-hoist-variables", 11 | "license": "MIT", 12 | "publishConfig": { 13 | "access": "public" 14 | }, 15 | "main": "./lib/index.js", 16 | "dependencies": { 17 | "@babel/types": "^7.18.6" 18 | }, 19 | "TODO": "The @babel/traverse dependency is only needed for the NodePath TS type. We can consider exporting it from @babel/core.", 20 | "devDependencies": { 21 | "@babel/traverse": "^7.18.6" 22 | }, 23 | "engines": { 24 | "node": ">=6.9.0" 25 | }, 26 | "author": "The Babel Team (https://babel.dev/team)", 27 | "type": "commonjs" 28 | } -------------------------------------------------------------------------------- /node_modules/@babel/helper-split-export-declaration/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-split-export-declaration/README.md: -------------------------------------------------------------------------------- 1 | # @babel/helper-split-export-declaration 2 | 3 | > 4 | 5 | See our website [@babel/helper-split-export-declaration](https://babeljs.io/docs/en/babel-helper-split-export-declaration) for more information. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save @babel/helper-split-export-declaration 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/helper-split-export-declaration 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-split-export-declaration/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/helper-split-export-declaration", 3 | "version": "7.18.6", 4 | "description": "", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com/babel/babel.git", 8 | "directory": "packages/babel-helper-split-export-declaration" 9 | }, 10 | "homepage": "https://babel.dev/docs/en/next/babel-helper-split-export-declaration", 11 | "license": "MIT", 12 | "publishConfig": { 13 | "access": "public" 14 | }, 15 | "main": "./lib/index.js", 16 | "dependencies": { 17 | "@babel/types": "^7.18.6" 18 | }, 19 | "engines": { 20 | "node": ">=6.9.0" 21 | }, 22 | "author": "The Babel Team (https://babel.dev/team)", 23 | "type": "commonjs" 24 | } -------------------------------------------------------------------------------- /node_modules/@babel/helper-string-parser/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-string-parser/README.md: -------------------------------------------------------------------------------- 1 | # @babel/helper-string-parser 2 | 3 | > A utility package to parse strings 4 | 5 | See our website [@babel/helper-string-parser](https://babeljs.io/docs/en/babel-helper-string-parser) for more information. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save @babel/helper-string-parser 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/helper-string-parser 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-string-parser/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/helper-string-parser", 3 | "version": "7.19.4", 4 | "description": "A utility package to parse strings", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com/babel/babel.git", 8 | "directory": "packages/babel-helper-string-parser" 9 | }, 10 | "homepage": "https://babel.dev/docs/en/next/babel-helper-string-parser", 11 | "license": "MIT", 12 | "publishConfig": { 13 | "access": "public" 14 | }, 15 | "main": "./lib/index.js", 16 | "devDependencies": { 17 | "charcodes": "^0.2.0" 18 | }, 19 | "engines": { 20 | "node": ">=6.9.0" 21 | }, 22 | "author": "The Babel Team (https://babel.dev/team)", 23 | "exports": { 24 | ".": "./lib/index.js", 25 | "./package.json": "./package.json" 26 | }, 27 | "type": "commonjs" 28 | } -------------------------------------------------------------------------------- /node_modules/@babel/helper-validator-identifier/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-validator-identifier/README.md: -------------------------------------------------------------------------------- 1 | # @babel/helper-validator-identifier 2 | 3 | > Validate identifier/keywords name 4 | 5 | See our website [@babel/helper-validator-identifier](https://babeljs.io/docs/en/babel-helper-validator-identifier) for more information. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save @babel/helper-validator-identifier 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/helper-validator-identifier 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-validator-identifier/lib/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | Object.defineProperty(exports, "isIdentifierChar", { 7 | enumerable: true, 8 | get: function () { 9 | return _identifier.isIdentifierChar; 10 | } 11 | }); 12 | Object.defineProperty(exports, "isIdentifierName", { 13 | enumerable: true, 14 | get: function () { 15 | return _identifier.isIdentifierName; 16 | } 17 | }); 18 | Object.defineProperty(exports, "isIdentifierStart", { 19 | enumerable: true, 20 | get: function () { 21 | return _identifier.isIdentifierStart; 22 | } 23 | }); 24 | Object.defineProperty(exports, "isKeyword", { 25 | enumerable: true, 26 | get: function () { 27 | return _keyword.isKeyword; 28 | } 29 | }); 30 | Object.defineProperty(exports, "isReservedWord", { 31 | enumerable: true, 32 | get: function () { 33 | return _keyword.isReservedWord; 34 | } 35 | }); 36 | Object.defineProperty(exports, "isStrictBindOnlyReservedWord", { 37 | enumerable: true, 38 | get: function () { 39 | return _keyword.isStrictBindOnlyReservedWord; 40 | } 41 | }); 42 | Object.defineProperty(exports, "isStrictBindReservedWord", { 43 | enumerable: true, 44 | get: function () { 45 | return _keyword.isStrictBindReservedWord; 46 | } 47 | }); 48 | Object.defineProperty(exports, "isStrictReservedWord", { 49 | enumerable: true, 50 | get: function () { 51 | return _keyword.isStrictReservedWord; 52 | } 53 | }); 54 | 55 | var _identifier = require("./identifier"); 56 | 57 | var _keyword = require("./keyword"); 58 | 59 | //# sourceMappingURL=index.js.map 60 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-validator-identifier/lib/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":[],"sources":["../src/index.ts"],"sourcesContent":["export {\n isIdentifierName,\n isIdentifierChar,\n isIdentifierStart,\n} from \"./identifier\";\nexport {\n isReservedWord,\n isStrictBindOnlyReservedWord,\n isStrictBindReservedWord,\n isStrictReservedWord,\n isKeyword,\n} from \"./keyword\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAKA"} -------------------------------------------------------------------------------- /node_modules/@babel/helper-validator-identifier/lib/keyword.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.isKeyword = isKeyword; 7 | exports.isReservedWord = isReservedWord; 8 | exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord; 9 | exports.isStrictBindReservedWord = isStrictBindReservedWord; 10 | exports.isStrictReservedWord = isStrictReservedWord; 11 | const reservedWords = { 12 | keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], 13 | strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], 14 | strictBind: ["eval", "arguments"] 15 | }; 16 | const keywords = new Set(reservedWords.keyword); 17 | const reservedWordsStrictSet = new Set(reservedWords.strict); 18 | const reservedWordsStrictBindSet = new Set(reservedWords.strictBind); 19 | 20 | function isReservedWord(word, inModule) { 21 | return inModule && word === "await" || word === "enum"; 22 | } 23 | 24 | function isStrictReservedWord(word, inModule) { 25 | return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word); 26 | } 27 | 28 | function isStrictBindOnlyReservedWord(word) { 29 | return reservedWordsStrictBindSet.has(word); 30 | } 31 | 32 | function isStrictBindReservedWord(word, inModule) { 33 | return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word); 34 | } 35 | 36 | function isKeyword(word) { 37 | return keywords.has(word); 38 | } 39 | 40 | //# sourceMappingURL=keyword.js.map 41 | -------------------------------------------------------------------------------- /node_modules/@babel/helper-validator-identifier/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/helper-validator-identifier", 3 | "version": "7.19.1", 4 | "description": "Validate identifier/keywords name", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com/babel/babel.git", 8 | "directory": "packages/babel-helper-validator-identifier" 9 | }, 10 | "license": "MIT", 11 | "publishConfig": { 12 | "access": "public" 13 | }, 14 | "main": "./lib/index.js", 15 | "exports": { 16 | ".": "./lib/index.js", 17 | "./package.json": "./package.json" 18 | }, 19 | "devDependencies": { 20 | "@unicode/unicode-15.0.0": "^1.3.1", 21 | "charcodes": "^0.2.0" 22 | }, 23 | "engines": { 24 | "node": ">=6.9.0" 25 | }, 26 | "author": "The Babel Team (https://babel.dev/team)", 27 | "type": "commonjs" 28 | } -------------------------------------------------------------------------------- /node_modules/@babel/highlight/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/highlight/README.md: -------------------------------------------------------------------------------- 1 | # @babel/highlight 2 | 3 | > Syntax highlight JavaScript strings for output in terminals. 4 | 5 | See our website [@babel/highlight](https://babeljs.io/docs/en/babel-highlight) for more information. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save-dev @babel/highlight 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/highlight --dev 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/highlight/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/highlight", 3 | "version": "7.18.6", 4 | "description": "Syntax highlight JavaScript strings for output in terminals.", 5 | "author": "The Babel Team (https://babel.dev/team)", 6 | "homepage": "https://babel.dev/docs/en/next/babel-highlight", 7 | "license": "MIT", 8 | "publishConfig": { 9 | "access": "public" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "https://github.com/babel/babel.git", 14 | "directory": "packages/babel-highlight" 15 | }, 16 | "main": "./lib/index.js", 17 | "dependencies": { 18 | "@babel/helper-validator-identifier": "^7.18.6", 19 | "chalk": "^2.0.0", 20 | "js-tokens": "^4.0.0" 21 | }, 22 | "devDependencies": { 23 | "@types/chalk": "^2.0.0", 24 | "strip-ansi": "^4.0.0" 25 | }, 26 | "engines": { 27 | "node": ">=6.9.0" 28 | }, 29 | "type": "commonjs" 30 | } -------------------------------------------------------------------------------- /node_modules/@babel/parser/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2012-2014 by various contributors (see AUTHORS) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/@babel/parser/README.md: -------------------------------------------------------------------------------- 1 | # @babel/parser 2 | 3 | > A JavaScript parser 4 | 5 | See our website [@babel/parser](https://babeljs.io/docs/en/babel-parser) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20parser%20(babylon)%22+is%3Aopen) associated with this package. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save-dev @babel/parser 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/parser --dev 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/parser/bin/babel-parser.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | /* eslint no-var: 0 */ 3 | 4 | var parser = require(".."); 5 | var fs = require("fs"); 6 | 7 | var filename = process.argv[2]; 8 | if (!filename) { 9 | console.error("no filename specified"); 10 | } else { 11 | var file = fs.readFileSync(filename, "utf8"); 12 | var ast = parser.parse(file); 13 | 14 | console.log(JSON.stringify(ast, null, " ")); 15 | } 16 | -------------------------------------------------------------------------------- /node_modules/@babel/parser/index.cjs: -------------------------------------------------------------------------------- 1 | try { 2 | module.exports = require("./lib/index.cjs"); 3 | } catch { 4 | module.exports = require("./lib/index.js"); 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/@babel/parser/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/parser", 3 | "version": "7.20.3", 4 | "description": "A JavaScript parser", 5 | "author": "The Babel Team (https://babel.dev/team)", 6 | "homepage": "https://babel.dev/docs/en/next/babel-parser", 7 | "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen", 8 | "license": "MIT", 9 | "publishConfig": { 10 | "access": "public" 11 | }, 12 | "keywords": [ 13 | "babel", 14 | "javascript", 15 | "parser", 16 | "tc39", 17 | "ecmascript", 18 | "@babel/parser" 19 | ], 20 | "repository": { 21 | "type": "git", 22 | "url": "https://github.com/babel/babel.git", 23 | "directory": "packages/babel-parser" 24 | }, 25 | "main": "./lib/index.js", 26 | "types": "./typings/babel-parser.d.ts", 27 | "files": [ 28 | "bin", 29 | "lib", 30 | "typings", 31 | "index.cjs" 32 | ], 33 | "engines": { 34 | "node": ">=6.0.0" 35 | }, 36 | "devDependencies": { 37 | "@babel/code-frame": "^7.18.6", 38 | "@babel/helper-check-duplicate-nodes": "^7.18.6", 39 | "@babel/helper-fixtures": "^7.19.4", 40 | "@babel/helper-string-parser": "^7.19.4", 41 | "@babel/helper-validator-identifier": "^7.19.1", 42 | "charcodes": "^0.2.0" 43 | }, 44 | "bin": "./bin/babel-parser.js", 45 | "type": "commonjs" 46 | } -------------------------------------------------------------------------------- /node_modules/@babel/template/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/template/README.md: -------------------------------------------------------------------------------- 1 | # @babel/template 2 | 3 | > Generate an AST from a string template. 4 | 5 | See our website [@babel/template](https://babeljs.io/docs/en/babel-template) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20template%22+is%3Aopen) associated with this package. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save-dev @babel/template 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/template --dev 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/template/lib/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.statements = exports.statement = exports.smart = exports.program = exports.expression = exports.default = void 0; 7 | 8 | var formatters = require("./formatters"); 9 | 10 | var _builder = require("./builder"); 11 | 12 | const smart = (0, _builder.default)(formatters.smart); 13 | exports.smart = smart; 14 | const statement = (0, _builder.default)(formatters.statement); 15 | exports.statement = statement; 16 | const statements = (0, _builder.default)(formatters.statements); 17 | exports.statements = statements; 18 | const expression = (0, _builder.default)(formatters.expression); 19 | exports.expression = expression; 20 | const program = (0, _builder.default)(formatters.program); 21 | exports.program = program; 22 | 23 | var _default = Object.assign(smart.bind(undefined), { 24 | smart, 25 | statement, 26 | statements, 27 | expression, 28 | program, 29 | ast: smart.ast 30 | }); 31 | 32 | exports.default = _default; -------------------------------------------------------------------------------- /node_modules/@babel/template/lib/string.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = stringTemplate; 7 | 8 | var _options = require("./options"); 9 | 10 | var _parse = require("./parse"); 11 | 12 | var _populate = require("./populate"); 13 | 14 | function stringTemplate(formatter, code, opts) { 15 | code = formatter.code(code); 16 | let metadata; 17 | return arg => { 18 | const replacements = (0, _options.normalizeReplacements)(arg); 19 | if (!metadata) metadata = (0, _parse.default)(formatter, code, opts); 20 | return formatter.unwrap((0, _populate.default)(metadata, replacements)); 21 | }; 22 | } -------------------------------------------------------------------------------- /node_modules/@babel/template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/template", 3 | "version": "7.18.10", 4 | "description": "Generate an AST from a string template.", 5 | "author": "The Babel Team (https://babel.dev/team)", 6 | "homepage": "https://babel.dev/docs/en/next/babel-template", 7 | "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20template%22+is%3Aopen", 8 | "license": "MIT", 9 | "publishConfig": { 10 | "access": "public" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/babel/babel.git", 15 | "directory": "packages/babel-template" 16 | }, 17 | "main": "./lib/index.js", 18 | "dependencies": { 19 | "@babel/code-frame": "^7.18.6", 20 | "@babel/parser": "^7.18.10", 21 | "@babel/types": "^7.18.10" 22 | }, 23 | "engines": { 24 | "node": ">=6.9.0" 25 | }, 26 | "type": "commonjs" 27 | } -------------------------------------------------------------------------------- /node_modules/@babel/traverse/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/traverse/README.md: -------------------------------------------------------------------------------- 1 | # @babel/traverse 2 | 3 | > The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes 4 | 5 | See our website [@babel/traverse](https://babeljs.io/docs/en/babel-traverse) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen) associated with this package. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save-dev @babel/traverse 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/traverse --dev 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/traverse/lib/cache.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.clear = clear; 7 | exports.clearPath = clearPath; 8 | exports.clearScope = clearScope; 9 | exports.scope = exports.path = void 0; 10 | let path = new WeakMap(); 11 | exports.path = path; 12 | let scope = new WeakMap(); 13 | exports.scope = scope; 14 | function clear() { 15 | clearPath(); 16 | clearScope(); 17 | } 18 | function clearPath() { 19 | exports.path = path = new WeakMap(); 20 | } 21 | function clearScope() { 22 | exports.scope = scope = new WeakMap(); 23 | } 24 | 25 | //# sourceMappingURL=cache.js.map 26 | -------------------------------------------------------------------------------- /node_modules/@babel/traverse/lib/cache.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["path","WeakMap","scope","clear","clearPath","clearScope"],"sources":["../src/cache.ts"],"sourcesContent":["export let path = new WeakMap();\nexport let scope = new WeakMap();\n\nexport function clear() {\n clearPath();\n clearScope();\n}\n\nexport function clearPath() {\n path = new WeakMap();\n}\n\nexport function clearScope() {\n scope = new WeakMap();\n}\n"],"mappings":";;;;;;;;;AAAO,IAAIA,IAAI,GAAG,IAAIC,OAAO,EAAE;AAAC;AACzB,IAAIC,KAAK,GAAG,IAAID,OAAO,EAAE;AAAC;AAE1B,SAASE,KAAK,GAAG;EACtBC,SAAS,EAAE;EACXC,UAAU,EAAE;AACd;AAEO,SAASD,SAAS,GAAG;EAC1B,eAAAJ,IAAI,GAAG,IAAIC,OAAO,EAAE;AACtB;AAEO,SAASI,UAAU,GAAG;EAC3B,gBAAAH,KAAK,GAAG,IAAID,OAAO,EAAE;AACvB"} -------------------------------------------------------------------------------- /node_modules/@babel/traverse/lib/hub.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | class Hub { 8 | getCode() {} 9 | getScope() {} 10 | addHelper() { 11 | throw new Error("Helpers are not supported by the default hub."); 12 | } 13 | buildError(node, msg, Error = TypeError) { 14 | return new Error(msg); 15 | } 16 | } 17 | exports.default = Hub; 18 | 19 | //# sourceMappingURL=hub.js.map 20 | -------------------------------------------------------------------------------- /node_modules/@babel/traverse/lib/hub.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["Hub","getCode","getScope","addHelper","Error","buildError","node","msg","TypeError"],"sources":["../src/hub.ts"],"sourcesContent":["import type Scope from \"./scope\";\nimport type { Node } from \"@babel/types\";\n\nexport interface HubInterface {\n getCode(): string | void;\n getScope(): Scope | void;\n addHelper(name: string): any;\n buildError(node: Node, msg: string, Error: new () => Error): Error;\n}\n\nexport default class Hub implements HubInterface {\n getCode() {}\n\n getScope() {}\n\n addHelper() {\n throw new Error(\"Helpers are not supported by the default hub.\");\n }\n\n buildError(node: Node, msg: string, Error = TypeError): Error {\n return new Error(msg);\n }\n}\n"],"mappings":";;;;;;AAUe,MAAMA,GAAG,CAAyB;EAC/CC,OAAO,GAAG,CAAC;EAEXC,QAAQ,GAAG,CAAC;EAEZC,SAAS,GAAG;IACV,MAAM,IAAIC,KAAK,CAAC,+CAA+C,CAAC;EAClE;EAEAC,UAAU,CAACC,IAAU,EAAEC,GAAW,EAAEH,KAAK,GAAGI,SAAS,EAAS;IAC5D,OAAO,IAAIJ,KAAK,CAACG,GAAG,CAAC;EACvB;AACF;AAAC"} -------------------------------------------------------------------------------- /node_modules/@babel/traverse/lib/path/comments.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.addComment = addComment; 7 | exports.addComments = addComments; 8 | exports.shareCommentsWithSiblings = shareCommentsWithSiblings; 9 | var _t = require("@babel/types"); 10 | const { 11 | addComment: _addComment, 12 | addComments: _addComments 13 | } = _t; 14 | 15 | function shareCommentsWithSiblings() { 16 | if (typeof this.key === "string") return; 17 | const node = this.node; 18 | if (!node) return; 19 | const trailing = node.trailingComments; 20 | const leading = node.leadingComments; 21 | if (!trailing && !leading) return; 22 | const prev = this.getSibling(this.key - 1); 23 | const next = this.getSibling(this.key + 1); 24 | const hasPrev = Boolean(prev.node); 25 | const hasNext = Boolean(next.node); 26 | if (hasPrev && !hasNext) { 27 | prev.addComments("trailing", trailing); 28 | } else if (hasNext && !hasPrev) { 29 | next.addComments("leading", leading); 30 | } 31 | } 32 | function addComment(type, content, line) { 33 | _addComment(this.node, type, content, line); 34 | } 35 | 36 | function addComments(type, comments) { 37 | _addComments(this.node, type, comments); 38 | } 39 | 40 | //# sourceMappingURL=comments.js.map 41 | -------------------------------------------------------------------------------- /node_modules/@babel/traverse/lib/path/inference/util.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.createUnionType = createUnionType; 7 | var _t = require("@babel/types"); 8 | const { 9 | createFlowUnionType, 10 | createTSUnionType, 11 | createUnionTypeAnnotation, 12 | isFlowType, 13 | isTSType 14 | } = _t; 15 | function createUnionType(types) { 16 | { 17 | if (isFlowType(types[0])) { 18 | if (createFlowUnionType) { 19 | return createFlowUnionType(types); 20 | } 21 | return createUnionTypeAnnotation(types); 22 | } else { 23 | if (createTSUnionType) { 24 | return createTSUnionType(types); 25 | } 26 | } 27 | } 28 | } 29 | 30 | //# sourceMappingURL=util.js.map 31 | -------------------------------------------------------------------------------- /node_modules/@babel/traverse/lib/path/inference/util.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["createFlowUnionType","createTSUnionType","createUnionTypeAnnotation","isFlowType","isTSType","createUnionType","types"],"sources":["../../../src/path/inference/util.ts"],"sourcesContent":["import {\n createFlowUnionType,\n createTSUnionType,\n createUnionTypeAnnotation,\n isFlowType,\n isTSType,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nexport function createUnionType(\n types: Array,\n): t.FlowType | t.TSType {\n if (process.env.BABEL_8_BREAKING) {\n if (isFlowType(types[0])) {\n return createFlowUnionType(types as t.FlowType[]);\n }\n if (isTSType(types[0])) {\n return createTSUnionType(types as t.TSType[]);\n }\n } else {\n if (isFlowType(types[0])) {\n if (createFlowUnionType) {\n return createFlowUnionType(types as t.FlowType[]);\n }\n\n return createUnionTypeAnnotation(types as t.FlowType[]);\n } else {\n if (createTSUnionType) {\n return createTSUnionType(types as t.TSType[]);\n }\n }\n }\n}\n"],"mappings":";;;;;;AAAA;AAMsB;EALpBA,mBAAmB;EACnBC,iBAAiB;EACjBC,yBAAyB;EACzBC,UAAU;EACVC;AAAQ;AAIH,SAASC,eAAe,CAC7BC,KAAmC,EACZ;EAQhB;IACL,IAAIH,UAAU,CAACG,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;MACxB,IAAIN,mBAAmB,EAAE;QACvB,OAAOA,mBAAmB,CAACM,KAAK,CAAiB;MACnD;MAEA,OAAOJ,yBAAyB,CAACI,KAAK,CAAiB;IACzD,CAAC,MAAM;MACL,IAAIL,iBAAiB,EAAE;QACrB,OAAOA,iBAAiB,CAACK,KAAK,CAAe;MAC/C;IACF;EACF;AACF"} -------------------------------------------------------------------------------- /node_modules/@babel/traverse/lib/path/lib/removal-hooks.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.hooks = void 0; 7 | 8 | const hooks = [function (self, parent) { 9 | const removeParent = 10 | self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || 11 | self.key === "declaration" && parent.isExportDeclaration() || 12 | self.key === "body" && parent.isLabeledStatement() || 13 | self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || 14 | self.key === "expression" && parent.isExpressionStatement(); 15 | if (removeParent) { 16 | parent.remove(); 17 | return true; 18 | } 19 | }, function (self, parent) { 20 | if (parent.isSequenceExpression() && parent.node.expressions.length === 1) { 21 | parent.replaceWith(parent.node.expressions[0]); 22 | return true; 23 | } 24 | }, function (self, parent) { 25 | if (parent.isBinary()) { 26 | if (self.key === "left") { 27 | parent.replaceWith(parent.node.right); 28 | } else { 29 | parent.replaceWith(parent.node.left); 30 | } 31 | return true; 32 | } 33 | }, function (self, parent) { 34 | if (parent.isIfStatement() && self.key === "consequent" || self.key === "body" && (parent.isLoop() || parent.isArrowFunctionExpression())) { 35 | self.replaceWith({ 36 | type: "BlockStatement", 37 | body: [] 38 | }); 39 | return true; 40 | } 41 | }]; 42 | exports.hooks = hooks; 43 | 44 | //# sourceMappingURL=removal-hooks.js.map 45 | -------------------------------------------------------------------------------- /node_modules/@babel/traverse/lib/traverse-node.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.traverseNode = traverseNode; 7 | var _context = require("./context"); 8 | var _t = require("@babel/types"); 9 | const { 10 | VISITOR_KEYS 11 | } = _t; 12 | function traverseNode(node, opts, scope, state, path, skipKeys) { 13 | const keys = VISITOR_KEYS[node.type]; 14 | if (!keys) return false; 15 | const context = new _context.default(scope, opts, state, path); 16 | for (const key of keys) { 17 | if (skipKeys && skipKeys[key]) continue; 18 | if (context.visit(node, key)) { 19 | return true; 20 | } 21 | } 22 | return false; 23 | } 24 | 25 | //# sourceMappingURL=traverse-node.js.map 26 | -------------------------------------------------------------------------------- /node_modules/@babel/traverse/lib/types.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | //# sourceMappingURL=types.js.map 4 | -------------------------------------------------------------------------------- /node_modules/@babel/traverse/lib/types.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":[],"sources":["../src/types.ts"],"sourcesContent":["import type * as t from \"@babel/types\";\nimport type { NodePath } from \"./index\";\nimport type { VirtualTypeAliases } from \"./path/lib/virtual-types\";\n\nexport type Visitor = VisitNodeObject & {\n [Type in t.Node[\"type\"]]?: VisitNode>;\n} & {\n [K in keyof t.Aliases]?: VisitNode;\n} & {\n [K in keyof VirtualTypeAliases]?: VisitNode;\n} & {\n [K in keyof InternalVisitorFlags]?: InternalVisitorFlags[K];\n} & {\n // Babel supports `NodeTypesWithoutComment | NodeTypesWithoutComment | ... ` but it is\n // too complex for TS. So we type it as a general visitor only if the key contains `|`\n // this is good enough for non-visitor traverse options e.g. `noScope`\n [k: `${string}|${string}`]: VisitNode;\n};\n\n/** @internal */\ntype InternalVisitorFlags = {\n _exploded?: boolean;\n _verified?: boolean;\n};\n\nexport type VisitNode =\n | VisitNodeFunction\n | VisitNodeObject;\n\nexport type VisitNodeFunction = (\n this: S,\n path: NodePath

,\n state: S,\n) => void;\n\nexport interface VisitNodeObject {\n enter?: VisitNodeFunction;\n exit?: VisitNodeFunction;\n}\n"],"mappings":""} -------------------------------------------------------------------------------- /node_modules/@babel/traverse/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/traverse", 3 | "version": "7.20.1", 4 | "description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", 5 | "author": "The Babel Team (https://babel.dev/team)", 6 | "homepage": "https://babel.dev/docs/en/next/babel-traverse", 7 | "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen", 8 | "license": "MIT", 9 | "publishConfig": { 10 | "access": "public" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/babel/babel.git", 15 | "directory": "packages/babel-traverse" 16 | }, 17 | "main": "./lib/index.js", 18 | "dependencies": { 19 | "@babel/code-frame": "^7.18.6", 20 | "@babel/generator": "^7.20.1", 21 | "@babel/helper-environment-visitor": "^7.18.9", 22 | "@babel/helper-function-name": "^7.19.0", 23 | "@babel/helper-hoist-variables": "^7.18.6", 24 | "@babel/helper-split-export-declaration": "^7.18.6", 25 | "@babel/parser": "^7.20.1", 26 | "@babel/types": "^7.20.0", 27 | "debug": "^4.1.0", 28 | "globals": "^11.1.0" 29 | }, 30 | "devDependencies": { 31 | "@babel/helper-plugin-test-runner": "^7.18.6" 32 | }, 33 | "engines": { 34 | "node": ">=6.9.0" 35 | }, 36 | "type": "commonjs" 37 | } -------------------------------------------------------------------------------- /node_modules/@babel/types/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014-present Sebastian McKenzie and other contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@babel/types/README.md: -------------------------------------------------------------------------------- 1 | # @babel/types 2 | 3 | > Babel Types is a Lodash-esque utility library for AST nodes 4 | 5 | See our website [@babel/types](https://babeljs.io/docs/en/babel-types) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20types%22+is%3Aopen) associated with this package. 6 | 7 | ## Install 8 | 9 | Using npm: 10 | 11 | ```sh 12 | npm install --save-dev @babel/types 13 | ``` 14 | 15 | or using yarn: 16 | 17 | ```sh 18 | yarn add @babel/types --dev 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/asserts/assertNode.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = assertNode; 7 | var _isNode = require("../validators/isNode"); 8 | function assertNode(node) { 9 | if (!(0, _isNode.default)(node)) { 10 | var _node$type; 11 | const type = (_node$type = node == null ? void 0 : node.type) != null ? _node$type : JSON.stringify(node); 12 | throw new TypeError(`Not a valid node of type "${type}"`); 13 | } 14 | } 15 | 16 | //# sourceMappingURL=assertNode.js.map 17 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/asserts/assertNode.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["assertNode","node","isNode","type","JSON","stringify","TypeError"],"sources":["../../src/asserts/assertNode.ts"],"sourcesContent":["import isNode from \"../validators/isNode\";\nimport type * as t from \"..\";\n\nexport default function assertNode(node?: any): asserts node is t.Node {\n if (!isNode(node)) {\n const type = node?.type ?? JSON.stringify(node);\n throw new TypeError(`Not a valid node of type \"${type as any}\"`);\n }\n}\n"],"mappings":";;;;;;AAAA;AAGe,SAASA,UAAU,CAACC,IAAU,EAA0B;EACrE,IAAI,CAAC,IAAAC,eAAM,EAACD,IAAI,CAAC,EAAE;IAAA;IACjB,MAAME,IAAI,iBAAGF,IAAI,oBAAJA,IAAI,CAAEE,IAAI,yBAAIC,IAAI,CAACC,SAAS,CAACJ,IAAI,CAAC;IAC/C,MAAM,IAAIK,SAAS,CAAE,6BAA4BH,IAAY,GAAE,CAAC;EAClE;AACF"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/ast-types/generated/index.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | //# sourceMappingURL=index.js.map 4 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = createFlowUnionType; 7 | var _generated = require("../generated"); 8 | var _removeTypeDuplicates = require("../../modifications/flow/removeTypeDuplicates"); 9 | function createFlowUnionType(types) { 10 | const flattened = (0, _removeTypeDuplicates.default)(types); 11 | if (flattened.length === 1) { 12 | return flattened[0]; 13 | } else { 14 | return (0, _generated.unionTypeAnnotation)(flattened); 15 | } 16 | } 17 | 18 | //# sourceMappingURL=createFlowUnionType.js.map 19 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["createFlowUnionType","types","flattened","removeTypeDuplicates","length","unionTypeAnnotation"],"sources":["../../../src/builders/flow/createFlowUnionType.ts"],"sourcesContent":["import { unionTypeAnnotation } from \"../generated\";\nimport removeTypeDuplicates from \"../../modifications/flow/removeTypeDuplicates\";\nimport type * as t from \"../..\";\n\n/**\n * Takes an array of `types` and flattens them, removing duplicates and\n * returns a `UnionTypeAnnotation` node containing them.\n */\nexport default function createFlowUnionType(\n types: [T] | Array,\n): T | t.UnionTypeAnnotation {\n const flattened = removeTypeDuplicates(types);\n\n if (flattened.length === 1) {\n return flattened[0] as T;\n } else {\n return unionTypeAnnotation(flattened);\n }\n}\n"],"mappings":";;;;;;AAAA;AACA;AAOe,SAASA,mBAAmB,CACzCC,KAAqB,EACM;EAC3B,MAAMC,SAAS,GAAG,IAAAC,6BAAoB,EAACF,KAAK,CAAC;EAE7C,IAAIC,SAAS,CAACE,MAAM,KAAK,CAAC,EAAE;IAC1B,OAAOF,SAAS,CAAC,CAAC,CAAC;EACrB,CAAC,MAAM;IACL,OAAO,IAAAG,8BAAmB,EAACH,SAAS,CAAC;EACvC;AACF"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | var _generated = require("../generated"); 8 | var _default = createTypeAnnotationBasedOnTypeof; 9 | exports.default = _default; 10 | function createTypeAnnotationBasedOnTypeof(type) { 11 | switch (type) { 12 | case "string": 13 | return (0, _generated.stringTypeAnnotation)(); 14 | case "number": 15 | return (0, _generated.numberTypeAnnotation)(); 16 | case "undefined": 17 | return (0, _generated.voidTypeAnnotation)(); 18 | case "boolean": 19 | return (0, _generated.booleanTypeAnnotation)(); 20 | case "function": 21 | return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Function")); 22 | case "object": 23 | return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Object")); 24 | case "symbol": 25 | return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Symbol")); 26 | case "bigint": 27 | return (0, _generated.anyTypeAnnotation)(); 28 | } 29 | throw new Error("Invalid typeof value: " + type); 30 | } 31 | 32 | //# sourceMappingURL=createTypeAnnotationBasedOnTypeof.js.map 33 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/builders/react/buildChildren.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = buildChildren; 7 | var _generated = require("../../validators/generated"); 8 | var _cleanJSXElementLiteralChild = require("../../utils/react/cleanJSXElementLiteralChild"); 9 | function buildChildren(node) { 10 | const elements = []; 11 | for (let i = 0; i < node.children.length; i++) { 12 | let child = node.children[i]; 13 | if ((0, _generated.isJSXText)(child)) { 14 | (0, _cleanJSXElementLiteralChild.default)(child, elements); 15 | continue; 16 | } 17 | if ((0, _generated.isJSXExpressionContainer)(child)) child = child.expression; 18 | if ((0, _generated.isJSXEmptyExpression)(child)) continue; 19 | elements.push(child); 20 | } 21 | return elements; 22 | } 23 | 24 | //# sourceMappingURL=buildChildren.js.map 25 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/builders/react/buildChildren.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["buildChildren","node","elements","i","children","length","child","isJSXText","cleanJSXElementLiteralChild","isJSXExpressionContainer","expression","isJSXEmptyExpression","push"],"sources":["../../../src/builders/react/buildChildren.ts"],"sourcesContent":["import {\n isJSXText,\n isJSXExpressionContainer,\n isJSXEmptyExpression,\n} from \"../../validators/generated\";\nimport cleanJSXElementLiteralChild from \"../../utils/react/cleanJSXElementLiteralChild\";\nimport type * as t from \"../..\";\n\ntype ReturnedChild =\n | t.JSXSpreadChild\n | t.JSXElement\n | t.JSXFragment\n | t.Expression;\n\nexport default function buildChildren(\n node: t.JSXElement | t.JSXFragment,\n): ReturnedChild[] {\n const elements = [];\n\n for (let i = 0; i < node.children.length; i++) {\n let child: any = node.children[i];\n\n if (isJSXText(child)) {\n cleanJSXElementLiteralChild(child, elements);\n continue;\n }\n\n if (isJSXExpressionContainer(child)) child = child.expression;\n if (isJSXEmptyExpression(child)) continue;\n\n elements.push(child);\n }\n\n return elements;\n}\n"],"mappings":";;;;;;AAAA;AAKA;AASe,SAASA,aAAa,CACnCC,IAAkC,EACjB;EACjB,MAAMC,QAAQ,GAAG,EAAE;EAEnB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,IAAI,CAACG,QAAQ,CAACC,MAAM,EAAEF,CAAC,EAAE,EAAE;IAC7C,IAAIG,KAAU,GAAGL,IAAI,CAACG,QAAQ,CAACD,CAAC,CAAC;IAEjC,IAAI,IAAAI,oBAAS,EAACD,KAAK,CAAC,EAAE;MACpB,IAAAE,oCAA2B,EAACF,KAAK,EAAEJ,QAAQ,CAAC;MAC5C;IACF;IAEA,IAAI,IAAAO,mCAAwB,EAACH,KAAK,CAAC,EAAEA,KAAK,GAAGA,KAAK,CAACI,UAAU;IAC7D,IAAI,IAAAC,+BAAoB,EAACL,KAAK,CAAC,EAAE;IAEjCJ,QAAQ,CAACU,IAAI,CAACN,KAAK,CAAC;EACtB;EAEA,OAAOJ,QAAQ;AACjB"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = createTSUnionType; 7 | var _generated = require("../generated"); 8 | var _removeTypeDuplicates = require("../../modifications/typescript/removeTypeDuplicates"); 9 | var _index = require("../../validators/generated/index"); 10 | function createTSUnionType(typeAnnotations) { 11 | const types = typeAnnotations.map(type => { 12 | return (0, _index.isTSTypeAnnotation)(type) ? type.typeAnnotation : type; 13 | }); 14 | const flattened = (0, _removeTypeDuplicates.default)(types); 15 | if (flattened.length === 1) { 16 | return flattened[0]; 17 | } else { 18 | return (0, _generated.tsUnionType)(flattened); 19 | } 20 | } 21 | 22 | //# sourceMappingURL=createTSUnionType.js.map 23 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["createTSUnionType","typeAnnotations","types","map","type","isTSTypeAnnotation","typeAnnotation","flattened","removeTypeDuplicates","length","tsUnionType"],"sources":["../../../src/builders/typescript/createTSUnionType.ts"],"sourcesContent":["import { tsUnionType } from \"../generated\";\nimport removeTypeDuplicates from \"../../modifications/typescript/removeTypeDuplicates\";\nimport { isTSTypeAnnotation } from \"../../validators/generated/index\";\nimport type * as t from \"../..\";\n\n/**\n * Takes an array of `types` and flattens them, removing duplicates and\n * returns a `UnionTypeAnnotation` node containing them.\n */\nexport default function createTSUnionType(\n typeAnnotations: Array,\n): t.TSType {\n const types = typeAnnotations.map(type => {\n return isTSTypeAnnotation(type) ? type.typeAnnotation : type;\n });\n const flattened = removeTypeDuplicates(types);\n\n if (flattened.length === 1) {\n return flattened[0];\n } else {\n return tsUnionType(flattened);\n }\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAOe,SAASA,iBAAiB,CACvCC,eAAqD,EAC3C;EACV,MAAMC,KAAK,GAAGD,eAAe,CAACE,GAAG,CAACC,IAAI,IAAI;IACxC,OAAO,IAAAC,yBAAkB,EAACD,IAAI,CAAC,GAAGA,IAAI,CAACE,cAAc,GAAGF,IAAI;EAC9D,CAAC,CAAC;EACF,MAAMG,SAAS,GAAG,IAAAC,6BAAoB,EAACN,KAAK,CAAC;EAE7C,IAAIK,SAAS,CAACE,MAAM,KAAK,CAAC,EAAE;IAC1B,OAAOF,SAAS,CAAC,CAAC,CAAC;EACrB,CAAC,MAAM;IACL,OAAO,IAAAG,sBAAW,EAACH,SAAS,CAAC;EAC/B;AACF"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/builders/validateNode.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = validateNode; 7 | var _validate = require("../validators/validate"); 8 | var _ = require(".."); 9 | function validateNode(node) { 10 | const keys = _.BUILDER_KEYS[node.type]; 11 | for (const key of keys) { 12 | (0, _validate.default)(node, key, node[key]); 13 | } 14 | return node; 15 | } 16 | 17 | //# sourceMappingURL=validateNode.js.map 18 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/builders/validateNode.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["validateNode","node","keys","BUILDER_KEYS","type","key","validate"],"sources":["../../src/builders/validateNode.ts"],"sourcesContent":["import validate from \"../validators/validate\";\nimport type * as t from \"..\";\nimport { BUILDER_KEYS } from \"..\";\n\nexport default function validateNode(node: N) {\n // todo: because keys not in BUILDER_KEYS are not validated - this actually allows invalid nodes in some cases\n const keys = BUILDER_KEYS[node.type] as (keyof N & string)[];\n for (const key of keys) {\n validate(node, key, node[key]);\n }\n return node;\n}\n"],"mappings":";;;;;;AAAA;AAEA;AAEe,SAASA,YAAY,CAAmBC,IAAO,EAAE;EAE9D,MAAMC,IAAI,GAAGC,cAAY,CAACF,IAAI,CAACG,IAAI,CAAyB;EAC5D,KAAK,MAAMC,GAAG,IAAIH,IAAI,EAAE;IACtB,IAAAI,iBAAQ,EAACL,IAAI,EAAEI,GAAG,EAAEJ,IAAI,CAACI,GAAG,CAAC,CAAC;EAChC;EACA,OAAOJ,IAAI;AACb"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/clone/clone.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = clone; 7 | var _cloneNode = require("./cloneNode"); 8 | function clone(node) { 9 | return (0, _cloneNode.default)(node, false); 10 | } 11 | 12 | //# sourceMappingURL=clone.js.map 13 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/clone/clone.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["clone","node","cloneNode"],"sources":["../../src/clone/clone.ts"],"sourcesContent":["import cloneNode from \"./cloneNode\";\nimport type * as t from \"..\";\n\n/**\n * Create a shallow clone of a `node`, including only\n * properties belonging to the node.\n * @deprecated Use t.cloneNode instead.\n */\nexport default function clone(node: T): T {\n return cloneNode(node, /* deep */ false);\n}\n"],"mappings":";;;;;;AAAA;AAQe,SAASA,KAAK,CAAmBC,IAAO,EAAK;EAC1D,OAAO,IAAAC,kBAAS,EAACD,IAAI,EAAa,KAAK,CAAC;AAC1C"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/clone/cloneDeep.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = cloneDeep; 7 | var _cloneNode = require("./cloneNode"); 8 | function cloneDeep(node) { 9 | return (0, _cloneNode.default)(node); 10 | } 11 | 12 | //# sourceMappingURL=cloneDeep.js.map 13 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/clone/cloneDeep.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["cloneDeep","node","cloneNode"],"sources":["../../src/clone/cloneDeep.ts"],"sourcesContent":["import cloneNode from \"./cloneNode\";\nimport type * as t from \"..\";\n\n/**\n * Create a deep clone of a `node` and all of it's child nodes\n * including only properties belonging to the node.\n * @deprecated Use t.cloneNode instead.\n */\nexport default function cloneDeep(node: T): T {\n return cloneNode(node);\n}\n"],"mappings":";;;;;;AAAA;AAQe,SAASA,SAAS,CAAmBC,IAAO,EAAK;EAC9D,OAAO,IAAAC,kBAAS,EAACD,IAAI,CAAC;AACxB"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = cloneDeepWithoutLoc; 7 | var _cloneNode = require("./cloneNode"); 8 | function cloneDeepWithoutLoc(node) { 9 | return (0, _cloneNode.default)(node, true, true); 10 | } 11 | 12 | //# sourceMappingURL=cloneDeepWithoutLoc.js.map 13 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["cloneDeepWithoutLoc","node","cloneNode"],"sources":["../../src/clone/cloneDeepWithoutLoc.ts"],"sourcesContent":["import cloneNode from \"./cloneNode\";\nimport type * as t from \"..\";\n/**\n * Create a deep clone of a `node` and all of it's child nodes\n * including only properties belonging to the node.\n * excluding `_private` and location properties.\n */\nexport default function cloneDeepWithoutLoc(node: T): T {\n return cloneNode(node, /* deep */ true, /* withoutLoc */ true);\n}\n"],"mappings":";;;;;;AAAA;AAOe,SAASA,mBAAmB,CAAmBC,IAAO,EAAK;EACxE,OAAO,IAAAC,kBAAS,EAACD,IAAI,EAAa,IAAI,EAAmB,IAAI,CAAC;AAChE"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/clone/cloneWithoutLoc.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = cloneWithoutLoc; 7 | var _cloneNode = require("./cloneNode"); 8 | function cloneWithoutLoc(node) { 9 | return (0, _cloneNode.default)(node, false, true); 10 | } 11 | 12 | //# sourceMappingURL=cloneWithoutLoc.js.map 13 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["cloneWithoutLoc","node","cloneNode"],"sources":["../../src/clone/cloneWithoutLoc.ts"],"sourcesContent":["import cloneNode from \"./cloneNode\";\nimport type * as t from \"..\";\n\n/**\n * Create a shallow clone of a `node` excluding `_private` and location properties.\n */\nexport default function cloneWithoutLoc(node: T): T {\n return cloneNode(node, /* deep */ false, /* withoutLoc */ true);\n}\n"],"mappings":";;;;;;AAAA;AAMe,SAASA,eAAe,CAAmBC,IAAO,EAAK;EACpE,OAAO,IAAAC,kBAAS,EAACD,IAAI,EAAa,KAAK,EAAmB,IAAI,CAAC;AACjE"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/addComment.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = addComment; 7 | var _addComments = require("./addComments"); 8 | function addComment(node, type, content, line) { 9 | return (0, _addComments.default)(node, type, [{ 10 | type: line ? "CommentLine" : "CommentBlock", 11 | value: content 12 | }]); 13 | } 14 | 15 | //# sourceMappingURL=addComment.js.map 16 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/addComment.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["addComment","node","type","content","line","addComments","value"],"sources":["../../src/comments/addComment.ts"],"sourcesContent":["import addComments from \"./addComments\";\nimport type * as t from \"..\";\n\n/**\n * Add comment of certain type to a node.\n */\nexport default function addComment(\n node: T,\n type: t.CommentTypeShorthand,\n content: string,\n line?: boolean,\n): T {\n return addComments(node, type, [\n {\n type: line ? \"CommentLine\" : \"CommentBlock\",\n value: content,\n } as t.Comment,\n ]);\n}\n"],"mappings":";;;;;;AAAA;AAMe,SAASA,UAAU,CAChCC,IAAO,EACPC,IAA4B,EAC5BC,OAAe,EACfC,IAAc,EACX;EACH,OAAO,IAAAC,oBAAW,EAACJ,IAAI,EAAEC,IAAI,EAAE,CAC7B;IACEA,IAAI,EAAEE,IAAI,GAAG,aAAa,GAAG,cAAc;IAC3CE,KAAK,EAAEH;EACT,CAAC,CACF,CAAC;AACJ"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/addComments.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = addComments; 7 | function addComments(node, type, comments) { 8 | if (!comments || !node) return node; 9 | const key = `${type}Comments`; 10 | if (node[key]) { 11 | if (type === "leading") { 12 | node[key] = comments.concat(node[key]); 13 | } else { 14 | node[key].push(...comments); 15 | } 16 | } else { 17 | node[key] = comments; 18 | } 19 | return node; 20 | } 21 | 22 | //# sourceMappingURL=addComments.js.map 23 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/addComments.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["addComments","node","type","comments","key","concat","push"],"sources":["../../src/comments/addComments.ts"],"sourcesContent":["import type * as t from \"..\";\n\n/**\n * Add comments of certain type to a node.\n */\nexport default function addComments(\n node: T,\n type: t.CommentTypeShorthand,\n comments: Array,\n): T {\n if (!comments || !node) return node;\n\n const key = `${type}Comments` as const;\n\n if (node[key]) {\n if (type === \"leading\") {\n node[key] = comments.concat(node[key]);\n } else {\n node[key].push(...comments);\n }\n } else {\n node[key] = comments;\n }\n\n return node;\n}\n"],"mappings":";;;;;;AAKe,SAASA,WAAW,CACjCC,IAAO,EACPC,IAA4B,EAC5BC,QAA0B,EACvB;EACH,IAAI,CAACA,QAAQ,IAAI,CAACF,IAAI,EAAE,OAAOA,IAAI;EAEnC,MAAMG,GAAG,GAAI,GAAEF,IAAK,UAAkB;EAEtC,IAAID,IAAI,CAACG,GAAG,CAAC,EAAE;IACb,IAAIF,IAAI,KAAK,SAAS,EAAE;MACtBD,IAAI,CAACG,GAAG,CAAC,GAAGD,QAAQ,CAACE,MAAM,CAACJ,IAAI,CAACG,GAAG,CAAC,CAAC;IACxC,CAAC,MAAM;MACLH,IAAI,CAACG,GAAG,CAAC,CAACE,IAAI,CAAC,GAAGH,QAAQ,CAAC;IAC7B;EACF,CAAC,MAAM;IACLF,IAAI,CAACG,GAAG,CAAC,GAAGD,QAAQ;EACtB;EAEA,OAAOF,IAAI;AACb"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/inheritInnerComments.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = inheritInnerComments; 7 | var _inherit = require("../utils/inherit"); 8 | function inheritInnerComments(child, parent) { 9 | (0, _inherit.default)("innerComments", child, parent); 10 | } 11 | 12 | //# sourceMappingURL=inheritInnerComments.js.map 13 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/inheritInnerComments.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["inheritInnerComments","child","parent","inherit"],"sources":["../../src/comments/inheritInnerComments.ts"],"sourcesContent":["import inherit from \"../utils/inherit\";\nimport type * as t from \"..\";\n\nexport default function inheritInnerComments(\n child: t.Node,\n parent: t.Node,\n): void {\n inherit(\"innerComments\", child, parent);\n}\n"],"mappings":";;;;;;AAAA;AAGe,SAASA,oBAAoB,CAC1CC,KAAa,EACbC,MAAc,EACR;EACN,IAAAC,gBAAO,EAAC,eAAe,EAAEF,KAAK,EAAEC,MAAM,CAAC;AACzC"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/inheritLeadingComments.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = inheritLeadingComments; 7 | var _inherit = require("../utils/inherit"); 8 | function inheritLeadingComments(child, parent) { 9 | (0, _inherit.default)("leadingComments", child, parent); 10 | } 11 | 12 | //# sourceMappingURL=inheritLeadingComments.js.map 13 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["inheritLeadingComments","child","parent","inherit"],"sources":["../../src/comments/inheritLeadingComments.ts"],"sourcesContent":["import inherit from \"../utils/inherit\";\nimport type * as t from \"..\";\n\nexport default function inheritLeadingComments(\n child: t.Node,\n parent: t.Node,\n): void {\n inherit(\"leadingComments\", child, parent);\n}\n"],"mappings":";;;;;;AAAA;AAGe,SAASA,sBAAsB,CAC5CC,KAAa,EACbC,MAAc,EACR;EACN,IAAAC,gBAAO,EAAC,iBAAiB,EAAEF,KAAK,EAAEC,MAAM,CAAC;AAC3C"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/inheritTrailingComments.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = inheritTrailingComments; 7 | var _inherit = require("../utils/inherit"); 8 | function inheritTrailingComments(child, parent) { 9 | (0, _inherit.default)("trailingComments", child, parent); 10 | } 11 | 12 | //# sourceMappingURL=inheritTrailingComments.js.map 13 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["inheritTrailingComments","child","parent","inherit"],"sources":["../../src/comments/inheritTrailingComments.ts"],"sourcesContent":["import inherit from \"../utils/inherit\";\nimport type * as t from \"..\";\n\nexport default function inheritTrailingComments(\n child: t.Node,\n parent: t.Node,\n): void {\n inherit(\"trailingComments\", child, parent);\n}\n"],"mappings":";;;;;;AAAA;AAGe,SAASA,uBAAuB,CAC7CC,KAAa,EACbC,MAAc,EACR;EACN,IAAAC,gBAAO,EAAC,kBAAkB,EAAEF,KAAK,EAAEC,MAAM,CAAC;AAC5C"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/inheritsComments.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = inheritsComments; 7 | var _inheritTrailingComments = require("./inheritTrailingComments"); 8 | var _inheritLeadingComments = require("./inheritLeadingComments"); 9 | var _inheritInnerComments = require("./inheritInnerComments"); 10 | function inheritsComments(child, parent) { 11 | (0, _inheritTrailingComments.default)(child, parent); 12 | (0, _inheritLeadingComments.default)(child, parent); 13 | (0, _inheritInnerComments.default)(child, parent); 14 | return child; 15 | } 16 | 17 | //# sourceMappingURL=inheritsComments.js.map 18 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/inheritsComments.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["inheritsComments","child","parent","inheritTrailingComments","inheritLeadingComments","inheritInnerComments"],"sources":["../../src/comments/inheritsComments.ts"],"sourcesContent":["import inheritTrailingComments from \"./inheritTrailingComments\";\nimport inheritLeadingComments from \"./inheritLeadingComments\";\nimport inheritInnerComments from \"./inheritInnerComments\";\nimport type * as t from \"..\";\n\n/**\n * Inherit all unique comments from `parent` node to `child` node.\n */\nexport default function inheritsComments(\n child: T,\n parent: t.Node,\n): T {\n inheritTrailingComments(child, parent);\n inheritLeadingComments(child, parent);\n inheritInnerComments(child, parent);\n\n return child;\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAMe,SAASA,gBAAgB,CACtCC,KAAQ,EACRC,MAAc,EACX;EACH,IAAAC,gCAAuB,EAACF,KAAK,EAAEC,MAAM,CAAC;EACtC,IAAAE,+BAAsB,EAACH,KAAK,EAAEC,MAAM,CAAC;EACrC,IAAAG,6BAAoB,EAACJ,KAAK,EAAEC,MAAM,CAAC;EAEnC,OAAOD,KAAK;AACd"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/removeComments.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = removeComments; 7 | var _constants = require("../constants"); 8 | function removeComments(node) { 9 | _constants.COMMENT_KEYS.forEach(key => { 10 | node[key] = null; 11 | }); 12 | return node; 13 | } 14 | 15 | //# sourceMappingURL=removeComments.js.map 16 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/comments/removeComments.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["removeComments","node","COMMENT_KEYS","forEach","key"],"sources":["../../src/comments/removeComments.ts"],"sourcesContent":["import { COMMENT_KEYS } from \"../constants\";\nimport type * as t from \"..\";\n\n/**\n * Remove comment properties from a node.\n */\nexport default function removeComments(node: T): T {\n COMMENT_KEYS.forEach(key => {\n node[key] = null;\n });\n\n return node;\n}\n"],"mappings":";;;;;;AAAA;AAMe,SAASA,cAAc,CAAmBC,IAAO,EAAK;EACnEC,uBAAY,CAACC,OAAO,CAACC,GAAG,IAAI;IAC1BH,IAAI,CAACG,GAAG,CAAC,GAAG,IAAI;EAClB,CAAC,CAAC;EAEF,OAAOH,IAAI;AACb"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/ensureBlock.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = ensureBlock; 7 | var _toBlock = require("./toBlock"); 8 | function ensureBlock(node, key = "body") { 9 | const result = (0, _toBlock.default)(node[key], node); 10 | node[key] = result; 11 | return result; 12 | } 13 | 14 | //# sourceMappingURL=ensureBlock.js.map 15 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/ensureBlock.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["ensureBlock","node","key","result","toBlock"],"sources":["../../src/converters/ensureBlock.ts"],"sourcesContent":["import toBlock from \"./toBlock\";\nimport type * as t from \"..\";\n\n/**\n * Ensure the `key` (defaults to \"body\") of a `node` is a block.\n * Casting it to a block if it is not.\n *\n * Returns the BlockStatement\n */\nexport default function ensureBlock(\n node: t.Node,\n key: string = \"body\",\n): t.BlockStatement {\n // @ts-expect-error Fixme: key may not exist in node, consider remove key = \"body\"\n const result = toBlock(node[key], node);\n // @ts-expect-error Fixme: key may not exist in node, consider remove key = \"body\"\n node[key] = result;\n return result;\n}\n"],"mappings":";;;;;;AAAA;AASe,SAASA,WAAW,CACjCC,IAAY,EACZC,GAAW,GAAG,MAAM,EACF;EAElB,MAAMC,MAAM,GAAG,IAAAC,gBAAO,EAACH,IAAI,CAACC,GAAG,CAAC,EAAED,IAAI,CAAC;EAEvCA,IAAI,CAACC,GAAG,CAAC,GAAGC,MAAM;EAClB,OAAOA,MAAM;AACf"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toBindingIdentifierName.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = toBindingIdentifierName; 7 | var _toIdentifier = require("./toIdentifier"); 8 | function toBindingIdentifierName(name) { 9 | name = (0, _toIdentifier.default)(name); 10 | if (name === "eval" || name === "arguments") name = "_" + name; 11 | return name; 12 | } 13 | 14 | //# sourceMappingURL=toBindingIdentifierName.js.map 15 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["toBindingIdentifierName","name","toIdentifier"],"sources":["../../src/converters/toBindingIdentifierName.ts"],"sourcesContent":["import toIdentifier from \"./toIdentifier\";\n\nexport default function toBindingIdentifierName(name: string): string {\n name = toIdentifier(name);\n if (name === \"eval\" || name === \"arguments\") name = \"_\" + name;\n\n return name;\n}\n"],"mappings":";;;;;;AAAA;AAEe,SAASA,uBAAuB,CAACC,IAAY,EAAU;EACpEA,IAAI,GAAG,IAAAC,qBAAY,EAACD,IAAI,CAAC;EACzB,IAAIA,IAAI,KAAK,MAAM,IAAIA,IAAI,KAAK,WAAW,EAAEA,IAAI,GAAG,GAAG,GAAGA,IAAI;EAE9D,OAAOA,IAAI;AACb"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toBlock.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = toBlock; 7 | var _generated = require("../validators/generated"); 8 | var _generated2 = require("../builders/generated"); 9 | function toBlock(node, parent) { 10 | if ((0, _generated.isBlockStatement)(node)) { 11 | return node; 12 | } 13 | let blockNodes = []; 14 | if ((0, _generated.isEmptyStatement)(node)) { 15 | blockNodes = []; 16 | } else { 17 | if (!(0, _generated.isStatement)(node)) { 18 | if ((0, _generated.isFunction)(parent)) { 19 | node = (0, _generated2.returnStatement)(node); 20 | } else { 21 | node = (0, _generated2.expressionStatement)(node); 22 | } 23 | } 24 | blockNodes = [node]; 25 | } 26 | return (0, _generated2.blockStatement)(blockNodes); 27 | } 28 | 29 | //# sourceMappingURL=toBlock.js.map 30 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toBlock.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["toBlock","node","parent","isBlockStatement","blockNodes","isEmptyStatement","isStatement","isFunction","returnStatement","expressionStatement","blockStatement"],"sources":["../../src/converters/toBlock.ts"],"sourcesContent":["import {\n isBlockStatement,\n isFunction,\n isEmptyStatement,\n isStatement,\n} from \"../validators/generated\";\nimport {\n returnStatement,\n expressionStatement,\n blockStatement,\n} from \"../builders/generated\";\nimport type * as t from \"..\";\n\nexport default function toBlock(\n node: t.Statement | t.Expression,\n parent?: t.Node,\n): t.BlockStatement {\n if (isBlockStatement(node)) {\n return node;\n }\n\n let blockNodes: t.Statement[] = [];\n\n if (isEmptyStatement(node)) {\n blockNodes = [];\n } else {\n if (!isStatement(node)) {\n if (isFunction(parent)) {\n node = returnStatement(node);\n } else {\n node = expressionStatement(node);\n }\n }\n\n blockNodes = [node];\n }\n\n return blockStatement(blockNodes);\n}\n"],"mappings":";;;;;;AAAA;AAMA;AAOe,SAASA,OAAO,CAC7BC,IAAgC,EAChCC,MAAe,EACG;EAClB,IAAI,IAAAC,2BAAgB,EAACF,IAAI,CAAC,EAAE;IAC1B,OAAOA,IAAI;EACb;EAEA,IAAIG,UAAyB,GAAG,EAAE;EAElC,IAAI,IAAAC,2BAAgB,EAACJ,IAAI,CAAC,EAAE;IAC1BG,UAAU,GAAG,EAAE;EACjB,CAAC,MAAM;IACL,IAAI,CAAC,IAAAE,sBAAW,EAACL,IAAI,CAAC,EAAE;MACtB,IAAI,IAAAM,qBAAU,EAACL,MAAM,CAAC,EAAE;QACtBD,IAAI,GAAG,IAAAO,2BAAe,EAACP,IAAI,CAAC;MAC9B,CAAC,MAAM;QACLA,IAAI,GAAG,IAAAQ,+BAAmB,EAACR,IAAI,CAAC;MAClC;IACF;IAEAG,UAAU,GAAG,CAACH,IAAI,CAAC;EACrB;EAEA,OAAO,IAAAS,0BAAc,EAACN,UAAU,CAAC;AACnC"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toComputedKey.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = toComputedKey; 7 | var _generated = require("../validators/generated"); 8 | var _generated2 = require("../builders/generated"); 9 | function toComputedKey(node, 10 | key = node.key || node.property) { 11 | if (!node.computed && (0, _generated.isIdentifier)(key)) key = (0, _generated2.stringLiteral)(key.name); 12 | return key; 13 | } 14 | 15 | //# sourceMappingURL=toComputedKey.js.map 16 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toComputedKey.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["toComputedKey","node","key","property","computed","isIdentifier","stringLiteral","name"],"sources":["../../src/converters/toComputedKey.ts"],"sourcesContent":["import { isIdentifier } from \"../validators/generated\";\nimport { stringLiteral } from \"../builders/generated\";\nimport type * as t from \"..\";\n\nexport default function toComputedKey(\n node:\n | t.ObjectMember\n | t.ObjectProperty\n | t.ClassMethod\n | t.ClassProperty\n | t.ClassAccessorProperty\n | t.MemberExpression\n | t.OptionalMemberExpression,\n // @ts-expect-error todo(flow->ts): maybe check the type of node before accessing .key and .property\n key: t.Expression | t.PrivateName = node.key || node.property,\n) {\n if (!node.computed && isIdentifier(key)) key = stringLiteral(key.name);\n\n return key;\n}\n"],"mappings":";;;;;;AAAA;AACA;AAGe,SAASA,aAAa,CACnCC,IAO8B;AAE9BC,GAAiC,GAAGD,IAAI,CAACC,GAAG,IAAID,IAAI,CAACE,QAAQ,EAC7D;EACA,IAAI,CAACF,IAAI,CAACG,QAAQ,IAAI,IAAAC,uBAAY,EAACH,GAAG,CAAC,EAAEA,GAAG,GAAG,IAAAI,yBAAa,EAACJ,GAAG,CAACK,IAAI,CAAC;EAEtE,OAAOL,GAAG;AACZ"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toExpression.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | var _generated = require("../validators/generated"); 8 | var _default = toExpression; 9 | exports.default = _default; 10 | function toExpression(node) { 11 | if ((0, _generated.isExpressionStatement)(node)) { 12 | node = node.expression; 13 | } 14 | 15 | if ((0, _generated.isExpression)(node)) { 16 | return node; 17 | } 18 | 19 | if ((0, _generated.isClass)(node)) { 20 | node.type = "ClassExpression"; 21 | } else if ((0, _generated.isFunction)(node)) { 22 | node.type = "FunctionExpression"; 23 | } 24 | 25 | if (!(0, _generated.isExpression)(node)) { 26 | throw new Error(`cannot turn ${node.type} to an expression`); 27 | } 28 | return node; 29 | } 30 | 31 | //# sourceMappingURL=toExpression.js.map 32 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toIdentifier.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = toIdentifier; 7 | var _isValidIdentifier = require("../validators/isValidIdentifier"); 8 | var _helperValidatorIdentifier = require("@babel/helper-validator-identifier"); 9 | function toIdentifier(input) { 10 | input = input + ""; 11 | 12 | let name = ""; 13 | for (const c of input) { 14 | name += (0, _helperValidatorIdentifier.isIdentifierChar)(c.codePointAt(0)) ? c : "-"; 15 | } 16 | 17 | name = name.replace(/^[-0-9]+/, ""); 18 | 19 | name = name.replace(/[-\s]+(.)?/g, function (match, c) { 20 | return c ? c.toUpperCase() : ""; 21 | }); 22 | if (!(0, _isValidIdentifier.default)(name)) { 23 | name = `_${name}`; 24 | } 25 | return name || "_"; 26 | } 27 | 28 | //# sourceMappingURL=toIdentifier.js.map 29 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toIdentifier.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["toIdentifier","input","name","c","isIdentifierChar","codePointAt","replace","match","toUpperCase","isValidIdentifier"],"sources":["../../src/converters/toIdentifier.ts"],"sourcesContent":["import isValidIdentifier from \"../validators/isValidIdentifier\";\nimport { isIdentifierChar } from \"@babel/helper-validator-identifier\";\n\nexport default function toIdentifier(input: string): string {\n input = input + \"\";\n\n // replace all non-valid identifiers with dashes\n let name = \"\";\n for (const c of input) {\n name += isIdentifierChar(c.codePointAt(0)) ? c : \"-\";\n }\n\n // remove all dashes and numbers from start of name\n name = name.replace(/^[-0-9]+/, \"\");\n\n // camel case\n name = name.replace(/[-\\s]+(.)?/g, function (match, c) {\n return c ? c.toUpperCase() : \"\";\n });\n\n if (!isValidIdentifier(name)) {\n name = `_${name}`;\n }\n\n return name || \"_\";\n}\n"],"mappings":";;;;;;AAAA;AACA;AAEe,SAASA,YAAY,CAACC,KAAa,EAAU;EAC1DA,KAAK,GAAGA,KAAK,GAAG,EAAE;;EAGlB,IAAIC,IAAI,GAAG,EAAE;EACb,KAAK,MAAMC,CAAC,IAAIF,KAAK,EAAE;IACrBC,IAAI,IAAI,IAAAE,2CAAgB,EAACD,CAAC,CAACE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAGF,CAAC,GAAG,GAAG;EACtD;;EAGAD,IAAI,GAAGA,IAAI,CAACI,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;;EAGnCJ,IAAI,GAAGA,IAAI,CAACI,OAAO,CAAC,aAAa,EAAE,UAAUC,KAAK,EAAEJ,CAAC,EAAE;IACrD,OAAOA,CAAC,GAAGA,CAAC,CAACK,WAAW,EAAE,GAAG,EAAE;EACjC,CAAC,CAAC;EAEF,IAAI,CAAC,IAAAC,0BAAiB,EAACP,IAAI,CAAC,EAAE;IAC5BA,IAAI,GAAI,IAAGA,IAAK,EAAC;EACnB;EAEA,OAAOA,IAAI,IAAI,GAAG;AACpB"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toKeyAlias.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = toKeyAlias; 7 | var _generated = require("../validators/generated"); 8 | var _cloneNode = require("../clone/cloneNode"); 9 | var _removePropertiesDeep = require("../modifications/removePropertiesDeep"); 10 | function toKeyAlias(node, key = node.key) { 11 | let alias; 12 | 13 | if (node.kind === "method") { 14 | return toKeyAlias.increment() + ""; 15 | } else if ((0, _generated.isIdentifier)(key)) { 16 | alias = key.name; 17 | } else if ((0, _generated.isStringLiteral)(key)) { 18 | alias = JSON.stringify(key.value); 19 | } else { 20 | alias = JSON.stringify((0, _removePropertiesDeep.default)((0, _cloneNode.default)(key))); 21 | } 22 | 23 | if (node.computed) { 24 | alias = `[${alias}]`; 25 | } 26 | 27 | if (node.static) { 28 | alias = `static:${alias}`; 29 | } 30 | return alias; 31 | } 32 | toKeyAlias.uid = 0; 33 | toKeyAlias.increment = function () { 34 | if (toKeyAlias.uid >= Number.MAX_SAFE_INTEGER) { 35 | return toKeyAlias.uid = 0; 36 | } else { 37 | return toKeyAlias.uid++; 38 | } 39 | }; 40 | 41 | //# sourceMappingURL=toKeyAlias.js.map 42 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toSequenceExpression.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = toSequenceExpression; 7 | var _gatherSequenceExpressions = require("./gatherSequenceExpressions"); 8 | function toSequenceExpression(nodes, scope) { 9 | if (!(nodes != null && nodes.length)) return; 10 | const declars = []; 11 | const result = (0, _gatherSequenceExpressions.default)(nodes, scope, declars); 12 | if (!result) return; 13 | for (const declar of declars) { 14 | scope.push(declar); 15 | } 16 | 17 | return result; 18 | } 19 | 20 | //# sourceMappingURL=toSequenceExpression.js.map 21 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toSequenceExpression.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["toSequenceExpression","nodes","scope","length","declars","result","gatherSequenceExpressions","declar","push"],"sources":["../../src/converters/toSequenceExpression.ts"],"sourcesContent":["import gatherSequenceExpressions from \"./gatherSequenceExpressions\";\nimport type * as t from \"..\";\nimport type { DeclarationInfo } from \"./gatherSequenceExpressions\";\n\n/**\n * Turn an array of statement `nodes` into a `SequenceExpression`.\n *\n * Variable declarations are turned into simple assignments and their\n * declarations hoisted to the top of the current scope.\n *\n * Expression statements are just resolved to their expression.\n */\nexport default function toSequenceExpression(\n nodes: ReadonlyArray,\n scope: any,\n): t.SequenceExpression | undefined {\n if (!nodes?.length) return;\n\n const declars: DeclarationInfo[] = [];\n const result = gatherSequenceExpressions(nodes, scope, declars);\n if (!result) return;\n\n for (const declar of declars) {\n scope.push(declar);\n }\n\n // @ts-expect-error fixme: gatherSequenceExpressions will return an Expression when there are only one element\n return result;\n}\n"],"mappings":";;;;;;AAAA;AAYe,SAASA,oBAAoB,CAC1CC,KAA4B,EAC5BC,KAAU,EACwB;EAClC,IAAI,EAACD,KAAK,YAALA,KAAK,CAAEE,MAAM,GAAE;EAEpB,MAAMC,OAA0B,GAAG,EAAE;EACrC,MAAMC,MAAM,GAAG,IAAAC,kCAAyB,EAACL,KAAK,EAAEC,KAAK,EAAEE,OAAO,CAAC;EAC/D,IAAI,CAACC,MAAM,EAAE;EAEb,KAAK,MAAME,MAAM,IAAIH,OAAO,EAAE;IAC5BF,KAAK,CAACM,IAAI,CAACD,MAAM,CAAC;EACpB;;EAGA,OAAOF,MAAM;AACf"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/converters/toStatement.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | var _generated = require("../validators/generated"); 8 | var _generated2 = require("../builders/generated"); 9 | var _default = toStatement; 10 | exports.default = _default; 11 | function toStatement(node, ignore) { 12 | if ((0, _generated.isStatement)(node)) { 13 | return node; 14 | } 15 | let mustHaveId = false; 16 | let newType; 17 | if ((0, _generated.isClass)(node)) { 18 | mustHaveId = true; 19 | newType = "ClassDeclaration"; 20 | } else if ((0, _generated.isFunction)(node)) { 21 | mustHaveId = true; 22 | newType = "FunctionDeclaration"; 23 | } else if ((0, _generated.isAssignmentExpression)(node)) { 24 | return (0, _generated2.expressionStatement)(node); 25 | } 26 | 27 | if (mustHaveId && !node.id) { 28 | newType = false; 29 | } 30 | if (!newType) { 31 | if (ignore) { 32 | return false; 33 | } else { 34 | throw new Error(`cannot turn ${node.type} to a statement`); 35 | } 36 | } 37 | 38 | node.type = newType; 39 | 40 | return node; 41 | } 42 | 43 | //# sourceMappingURL=toStatement.js.map 44 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/definitions/misc.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _utils = require("./utils"); 4 | var _placeholders = require("./placeholders"); 5 | const defineType = (0, _utils.defineAliasedType)("Miscellaneous"); 6 | { 7 | defineType("Noop", { 8 | visitor: [] 9 | }); 10 | } 11 | defineType("Placeholder", { 12 | visitor: [], 13 | builder: ["expectedNode", "name"], 14 | fields: { 15 | name: { 16 | validate: (0, _utils.assertNodeType)("Identifier") 17 | }, 18 | expectedNode: { 19 | validate: (0, _utils.assertOneOf)(..._placeholders.PLACEHOLDERS) 20 | } 21 | } 22 | }); 23 | defineType("V8IntrinsicIdentifier", { 24 | builder: ["name"], 25 | fields: { 26 | name: { 27 | validate: (0, _utils.assertValueType)("string") 28 | } 29 | } 30 | }); 31 | 32 | //# sourceMappingURL=misc.js.map 33 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/definitions/misc.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["defineType","defineAliasedType","visitor","builder","fields","name","validate","assertNodeType","expectedNode","assertOneOf","PLACEHOLDERS","assertValueType"],"sources":["../../src/definitions/misc.ts"],"sourcesContent":["import {\n defineAliasedType,\n assertNodeType,\n assertOneOf,\n assertValueType,\n} from \"./utils\";\nimport { PLACEHOLDERS } from \"./placeholders\";\n\nconst defineType = defineAliasedType(\"Miscellaneous\");\n\nif (!process.env.BABEL_8_BREAKING) {\n defineType(\"Noop\", {\n visitor: [],\n });\n}\n\ndefineType(\"Placeholder\", {\n visitor: [],\n builder: [\"expectedNode\", \"name\"],\n // aliases: [], defined in placeholders.js\n fields: {\n name: {\n validate: assertNodeType(\"Identifier\"),\n },\n expectedNode: {\n validate: assertOneOf(...PLACEHOLDERS),\n },\n },\n});\n\ndefineType(\"V8IntrinsicIdentifier\", {\n builder: [\"name\"],\n fields: {\n name: {\n validate: assertValueType(\"string\"),\n },\n },\n});\n"],"mappings":";;AAAA;AAMA;AAEA,MAAMA,UAAU,GAAG,IAAAC,wBAAiB,EAAC,eAAe,CAAC;AAElB;EACjCD,UAAU,CAAC,MAAM,EAAE;IACjBE,OAAO,EAAE;EACX,CAAC,CAAC;AACJ;AAEAF,UAAU,CAAC,aAAa,EAAE;EACxBE,OAAO,EAAE,EAAE;EACXC,OAAO,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC;EAEjCC,MAAM,EAAE;IACNC,IAAI,EAAE;MACJC,QAAQ,EAAE,IAAAC,qBAAc,EAAC,YAAY;IACvC,CAAC;IACDC,YAAY,EAAE;MACZF,QAAQ,EAAE,IAAAG,kBAAW,EAAC,GAAGC,0BAAY;IACvC;EACF;AACF,CAAC,CAAC;AAEFV,UAAU,CAAC,uBAAuB,EAAE;EAClCG,OAAO,EAAE,CAAC,MAAM,CAAC;EACjBC,MAAM,EAAE;IACNC,IAAI,EAAE;MACJC,QAAQ,EAAE,IAAAK,sBAAe,EAAC,QAAQ;IACpC;EACF;AACF,CAAC,CAAC"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/definitions/placeholders.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.PLACEHOLDERS_FLIPPED_ALIAS = exports.PLACEHOLDERS_ALIAS = exports.PLACEHOLDERS = void 0; 7 | var _utils = require("./utils"); 8 | const PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBody", "Pattern"]; 9 | exports.PLACEHOLDERS = PLACEHOLDERS; 10 | const PLACEHOLDERS_ALIAS = { 11 | Declaration: ["Statement"], 12 | Pattern: ["PatternLike", "LVal"] 13 | }; 14 | exports.PLACEHOLDERS_ALIAS = PLACEHOLDERS_ALIAS; 15 | for (const type of PLACEHOLDERS) { 16 | const alias = _utils.ALIAS_KEYS[type]; 17 | if (alias != null && alias.length) PLACEHOLDERS_ALIAS[type] = alias; 18 | } 19 | const PLACEHOLDERS_FLIPPED_ALIAS = {}; 20 | exports.PLACEHOLDERS_FLIPPED_ALIAS = PLACEHOLDERS_FLIPPED_ALIAS; 21 | Object.keys(PLACEHOLDERS_ALIAS).forEach(type => { 22 | PLACEHOLDERS_ALIAS[type].forEach(alias => { 23 | if (!Object.hasOwnProperty.call(PLACEHOLDERS_FLIPPED_ALIAS, alias)) { 24 | PLACEHOLDERS_FLIPPED_ALIAS[alias] = []; 25 | } 26 | PLACEHOLDERS_FLIPPED_ALIAS[alias].push(type); 27 | }); 28 | }); 29 | 30 | //# sourceMappingURL=placeholders.js.map 31 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/modifications/appendToMemberExpression.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = appendToMemberExpression; 7 | var _generated = require("../builders/generated"); 8 | function appendToMemberExpression(member, append, computed = false) { 9 | member.object = (0, _generated.memberExpression)(member.object, member.property, member.computed); 10 | member.property = append; 11 | member.computed = !!computed; 12 | return member; 13 | } 14 | 15 | //# sourceMappingURL=appendToMemberExpression.js.map 16 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["appendToMemberExpression","member","append","computed","object","memberExpression","property"],"sources":["../../src/modifications/appendToMemberExpression.ts"],"sourcesContent":["import { memberExpression } from \"../builders/generated\";\nimport type * as t from \"..\";\n\n/**\n * Append a node to a member expression.\n */\nexport default function appendToMemberExpression(\n member: t.MemberExpression,\n append: t.MemberExpression[\"property\"],\n computed: boolean = false,\n): t.MemberExpression {\n member.object = memberExpression(\n member.object,\n member.property,\n member.computed,\n );\n member.property = append;\n member.computed = !!computed;\n\n return member;\n}\n"],"mappings":";;;;;;AAAA;AAMe,SAASA,wBAAwB,CAC9CC,MAA0B,EAC1BC,MAAsC,EACtCC,QAAiB,GAAG,KAAK,EACL;EACpBF,MAAM,CAACG,MAAM,GAAG,IAAAC,2BAAgB,EAC9BJ,MAAM,CAACG,MAAM,EACbH,MAAM,CAACK,QAAQ,EACfL,MAAM,CAACE,QAAQ,CAChB;EACDF,MAAM,CAACK,QAAQ,GAAGJ,MAAM;EACxBD,MAAM,CAACE,QAAQ,GAAG,CAAC,CAACA,QAAQ;EAE5B,OAAOF,MAAM;AACf"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/modifications/inherits.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = inherits; 7 | var _constants = require("../constants"); 8 | var _inheritsComments = require("../comments/inheritsComments"); 9 | function inherits(child, parent) { 10 | if (!child || !parent) return child; 11 | 12 | for (const key of _constants.INHERIT_KEYS.optional) { 13 | if (child[key] == null) { 14 | child[key] = parent[key]; 15 | } 16 | } 17 | 18 | for (const key of Object.keys(parent)) { 19 | if (key[0] === "_" && key !== "__clone") { 20 | child[key] = parent[key]; 21 | } 22 | } 23 | 24 | for (const key of _constants.INHERIT_KEYS.force) { 25 | child[key] = parent[key]; 26 | } 27 | (0, _inheritsComments.default)(child, parent); 28 | return child; 29 | } 30 | 31 | //# sourceMappingURL=inherits.js.map 32 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/modifications/prependToMemberExpression.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = prependToMemberExpression; 7 | var _generated = require("../builders/generated"); 8 | var _ = require(".."); 9 | function prependToMemberExpression(member, prepend) { 10 | if ((0, _.isSuper)(member.object)) { 11 | throw new Error("Cannot prepend node to super property access (`super.foo`)."); 12 | } 13 | member.object = (0, _generated.memberExpression)(prepend, member.object); 14 | return member; 15 | } 16 | 17 | //# sourceMappingURL=prependToMemberExpression.js.map 18 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["prependToMemberExpression","member","prepend","isSuper","object","Error","memberExpression"],"sources":["../../src/modifications/prependToMemberExpression.ts"],"sourcesContent":["import { memberExpression } from \"../builders/generated\";\nimport { isSuper } from \"..\";\nimport type * as t from \"..\";\n\n/**\n * Prepend a node to a member expression.\n */\nexport default function prependToMemberExpression<\n T extends Pick,\n>(member: T, prepend: t.MemberExpression[\"object\"]): T {\n if (isSuper(member.object)) {\n throw new Error(\n \"Cannot prepend node to super property access (`super.foo`).\",\n );\n }\n member.object = memberExpression(prepend, member.object);\n\n return member;\n}\n"],"mappings":";;;;;;AAAA;AACA;AAMe,SAASA,yBAAyB,CAE/CC,MAAS,EAAEC,OAAqC,EAAK;EACrD,IAAI,IAAAC,SAAO,EAACF,MAAM,CAACG,MAAM,CAAC,EAAE;IAC1B,MAAM,IAAIC,KAAK,CACb,6DAA6D,CAC9D;EACH;EACAJ,MAAM,CAACG,MAAM,GAAG,IAAAE,2BAAgB,EAACJ,OAAO,EAAED,MAAM,CAACG,MAAM,CAAC;EAExD,OAAOH,MAAM;AACf"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/modifications/removeProperties.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = removeProperties; 7 | var _constants = require("../constants"); 8 | const CLEAR_KEYS = ["tokens", 9 | "start", "end", "loc", 10 | "raw", "rawValue"]; 11 | const CLEAR_KEYS_PLUS_COMMENTS = [..._constants.COMMENT_KEYS, "comments", ...CLEAR_KEYS]; 12 | function removeProperties(node, opts = {}) { 13 | const map = opts.preserveComments ? CLEAR_KEYS : CLEAR_KEYS_PLUS_COMMENTS; 14 | for (const key of map) { 15 | if (node[key] != null) node[key] = undefined; 16 | } 17 | for (const key of Object.keys(node)) { 18 | if (key[0] === "_" && node[key] != null) node[key] = undefined; 19 | } 20 | const symbols = Object.getOwnPropertySymbols(node); 21 | for (const sym of symbols) { 22 | node[sym] = null; 23 | } 24 | } 25 | 26 | //# sourceMappingURL=removeProperties.js.map 27 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/modifications/removePropertiesDeep.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = removePropertiesDeep; 7 | var _traverseFast = require("../traverse/traverseFast"); 8 | var _removeProperties = require("./removeProperties"); 9 | function removePropertiesDeep(tree, opts) { 10 | (0, _traverseFast.default)(tree, _removeProperties.default, opts); 11 | return tree; 12 | } 13 | 14 | //# sourceMappingURL=removePropertiesDeep.js.map 15 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["removePropertiesDeep","tree","opts","traverseFast","removeProperties"],"sources":["../../src/modifications/removePropertiesDeep.ts"],"sourcesContent":["import traverseFast from \"../traverse/traverseFast\";\nimport removeProperties from \"./removeProperties\";\nimport type * as t from \"..\";\n\nexport default function removePropertiesDeep(\n tree: T,\n opts?: { preserveComments: boolean } | null,\n): T {\n traverseFast(tree, removeProperties, opts);\n\n return tree;\n}\n"],"mappings":";;;;;;AAAA;AACA;AAGe,SAASA,oBAAoB,CAC1CC,IAAO,EACPC,IAA2C,EACxC;EACH,IAAAC,qBAAY,EAACF,IAAI,EAAEG,yBAAgB,EAAEF,IAAI,CAAC;EAE1C,OAAOD,IAAI;AACb"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | var _getBindingIdentifiers = require("./getBindingIdentifiers"); 8 | var _default = getOuterBindingIdentifiers; 9 | exports.default = _default; 10 | function getOuterBindingIdentifiers(node, duplicates) { 11 | return (0, _getBindingIdentifiers.default)(node, duplicates, true); 12 | } 13 | 14 | //# sourceMappingURL=getOuterBindingIdentifiers.js.map 15 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["getOuterBindingIdentifiers","node","duplicates","getBindingIdentifiers"],"sources":["../../src/retrievers/getOuterBindingIdentifiers.ts"],"sourcesContent":["import getBindingIdentifiers from \"./getBindingIdentifiers\";\nimport type * as t from \"..\";\n\nexport default getOuterBindingIdentifiers as {\n (node: t.Node, duplicates: true): Record>;\n (node: t.Node, duplicates?: false): Record;\n (node: t.Node, duplicates?: boolean):\n | Record\n | Record>;\n};\n\nfunction getOuterBindingIdentifiers(\n node: t.Node,\n duplicates: boolean,\n): Record | Record> {\n return getBindingIdentifiers(node, duplicates, true);\n}\n"],"mappings":";;;;;;AAAA;AAA4D,eAG7CA,0BAA0B;AAAA;AAQzC,SAASA,0BAA0B,CACjCC,IAAY,EACZC,UAAmB,EACiD;EACpE,OAAO,IAAAC,8BAAqB,EAACF,IAAI,EAAEC,UAAU,EAAE,IAAI,CAAC;AACtD"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/traverse/traverse.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = traverse; 7 | var _definitions = require("../definitions"); 8 | function traverse(node, handlers, state) { 9 | if (typeof handlers === "function") { 10 | handlers = { 11 | enter: handlers 12 | }; 13 | } 14 | const { 15 | enter, 16 | exit 17 | } = handlers; 18 | traverseSimpleImpl(node, enter, exit, state, []); 19 | } 20 | function traverseSimpleImpl(node, enter, exit, state, ancestors) { 21 | const keys = _definitions.VISITOR_KEYS[node.type]; 22 | if (!keys) return; 23 | if (enter) enter(node, ancestors, state); 24 | for (const key of keys) { 25 | const subNode = node[key]; 26 | if (Array.isArray(subNode)) { 27 | for (let i = 0; i < subNode.length; i++) { 28 | const child = subNode[i]; 29 | if (!child) continue; 30 | ancestors.push({ 31 | node, 32 | key, 33 | index: i 34 | }); 35 | traverseSimpleImpl(child, enter, exit, state, ancestors); 36 | ancestors.pop(); 37 | } 38 | } else if (subNode) { 39 | ancestors.push({ 40 | node, 41 | key 42 | }); 43 | traverseSimpleImpl(subNode, enter, exit, state, ancestors); 44 | ancestors.pop(); 45 | } 46 | } 47 | if (exit) exit(node, ancestors, state); 48 | } 49 | 50 | //# sourceMappingURL=traverse.js.map 51 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/traverse/traverseFast.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = traverseFast; 7 | var _definitions = require("../definitions"); 8 | function traverseFast(node, enter, opts) { 9 | if (!node) return; 10 | const keys = _definitions.VISITOR_KEYS[node.type]; 11 | if (!keys) return; 12 | opts = opts || {}; 13 | enter(node, opts); 14 | for (const key of keys) { 15 | const subNode = 16 | node[key]; 17 | if (Array.isArray(subNode)) { 18 | for (const node of subNode) { 19 | traverseFast(node, enter, opts); 20 | } 21 | } else { 22 | traverseFast(subNode, enter, opts); 23 | } 24 | } 25 | } 26 | 27 | //# sourceMappingURL=traverseFast.js.map 28 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/traverse/traverseFast.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["traverseFast","node","enter","opts","keys","VISITOR_KEYS","type","key","subNode","Array","isArray"],"sources":["../../src/traverse/traverseFast.ts"],"sourcesContent":["import { VISITOR_KEYS } from \"../definitions\";\nimport type * as t from \"..\";\n\n/**\n * A prefix AST traversal implementation meant for simple searching\n * and processing.\n */\nexport default function traverseFast(\n node: t.Node | null | undefined,\n enter: (node: t.Node, opts?: Options) => void,\n opts?: Options,\n): void {\n if (!node) return;\n\n const keys = VISITOR_KEYS[node.type];\n if (!keys) return;\n\n opts = opts || ({} as Options);\n enter(node, opts);\n\n for (const key of keys) {\n const subNode: t.Node | undefined | null =\n // @ts-expect-error key must present in node\n node[key];\n\n if (Array.isArray(subNode)) {\n for (const node of subNode) {\n traverseFast(node, enter, opts);\n }\n } else {\n traverseFast(subNode, enter, opts);\n }\n }\n}\n"],"mappings":";;;;;;AAAA;AAOe,SAASA,YAAY,CAClCC,IAA+B,EAC/BC,KAA6C,EAC7CC,IAAc,EACR;EACN,IAAI,CAACF,IAAI,EAAE;EAEX,MAAMG,IAAI,GAAGC,yBAAY,CAACJ,IAAI,CAACK,IAAI,CAAC;EACpC,IAAI,CAACF,IAAI,EAAE;EAEXD,IAAI,GAAGA,IAAI,IAAK,CAAC,CAAa;EAC9BD,KAAK,CAACD,IAAI,EAAEE,IAAI,CAAC;EAEjB,KAAK,MAAMI,GAAG,IAAIH,IAAI,EAAE;IACtB,MAAMI,OAAkC;IAEtCP,IAAI,CAACM,GAAG,CAAC;IAEX,IAAIE,KAAK,CAACC,OAAO,CAACF,OAAO,CAAC,EAAE;MAC1B,KAAK,MAAMP,IAAI,IAAIO,OAAO,EAAE;QAC1BR,YAAY,CAACC,IAAI,EAAEC,KAAK,EAAEC,IAAI,CAAC;MACjC;IACF,CAAC,MAAM;MACLH,YAAY,CAACQ,OAAO,EAAEN,KAAK,EAAEC,IAAI,CAAC;IACpC;EACF;AACF"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/utils/inherit.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = inherit; 7 | function inherit(key, child, parent) { 8 | if (child && parent) { 9 | child[key] = Array.from(new Set([].concat(child[key], parent[key]).filter(Boolean))); 10 | } 11 | } 12 | 13 | //# sourceMappingURL=inherit.js.map 14 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/utils/inherit.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["inherit","key","child","parent","Array","from","Set","concat","filter","Boolean"],"sources":["../../src/utils/inherit.ts"],"sourcesContent":["import type * as t from \"..\";\n\nexport default function inherit<\n C extends t.Node | undefined,\n P extends t.Node | undefined,\n>(key: keyof C & keyof P, child: C, parent: P): void {\n if (child && parent) {\n // @ts-expect-error Could further refine key definitions\n child[key] = Array.from(\n new Set([].concat(child[key], parent[key]).filter(Boolean)),\n );\n }\n}\n"],"mappings":";;;;;;AAEe,SAASA,OAAO,CAG7BC,GAAsB,EAAEC,KAAQ,EAAEC,MAAS,EAAQ;EACnD,IAAID,KAAK,IAAIC,MAAM,EAAE;IAEnBD,KAAK,CAACD,GAAG,CAAC,GAAGG,KAAK,CAACC,IAAI,CACrB,IAAIC,GAAG,CAAC,EAAE,CAACC,MAAM,CAACL,KAAK,CAACD,GAAG,CAAC,EAAEE,MAAM,CAACF,GAAG,CAAC,CAAC,CAACO,MAAM,CAACC,OAAO,CAAC,CAAC,CAC5D;EACH;AACF"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = cleanJSXElementLiteralChild; 7 | var _generated = require("../../builders/generated"); 8 | function cleanJSXElementLiteralChild(child, args) { 9 | const lines = child.value.split(/\r\n|\n|\r/); 10 | let lastNonEmptyLine = 0; 11 | for (let i = 0; i < lines.length; i++) { 12 | if (lines[i].match(/[^ \t]/)) { 13 | lastNonEmptyLine = i; 14 | } 15 | } 16 | let str = ""; 17 | for (let i = 0; i < lines.length; i++) { 18 | const line = lines[i]; 19 | const isFirstLine = i === 0; 20 | const isLastLine = i === lines.length - 1; 21 | const isLastNonEmptyLine = i === lastNonEmptyLine; 22 | 23 | let trimmedLine = line.replace(/\t/g, " "); 24 | 25 | if (!isFirstLine) { 26 | trimmedLine = trimmedLine.replace(/^[ ]+/, ""); 27 | } 28 | 29 | if (!isLastLine) { 30 | trimmedLine = trimmedLine.replace(/[ ]+$/, ""); 31 | } 32 | if (trimmedLine) { 33 | if (!isLastNonEmptyLine) { 34 | trimmedLine += " "; 35 | } 36 | str += trimmedLine; 37 | } 38 | } 39 | if (str) args.push((0, _generated.stringLiteral)(str)); 40 | } 41 | 42 | //# sourceMappingURL=cleanJSXElementLiteralChild.js.map 43 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/utils/shallowEqual.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = shallowEqual; 7 | function shallowEqual(actual, expected) { 8 | const keys = Object.keys(expected); 9 | for (const key of keys) { 10 | if ( 11 | actual[key] !== expected[key]) { 12 | return false; 13 | } 14 | } 15 | return true; 16 | } 17 | 18 | //# sourceMappingURL=shallowEqual.js.map 19 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/utils/shallowEqual.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["shallowEqual","actual","expected","keys","Object","key"],"sources":["../../src/utils/shallowEqual.ts"],"sourcesContent":["export default function shallowEqual(\n actual: object,\n expected: T,\n): actual is T {\n const keys = Object.keys(expected) as (keyof T)[];\n\n for (const key of keys) {\n if (\n // @ts-expect-error maybe we should check whether key exists first\n actual[key] !== expected[key]\n ) {\n return false;\n }\n }\n\n return true;\n}\n"],"mappings":";;;;;;AAAe,SAASA,YAAY,CAClCC,MAAc,EACdC,QAAW,EACE;EACb,MAAMC,IAAI,GAAGC,MAAM,CAACD,IAAI,CAACD,QAAQ,CAAgB;EAEjD,KAAK,MAAMG,GAAG,IAAIF,IAAI,EAAE;IACtB;IAEEF,MAAM,CAACI,GAAG,CAAC,KAAKH,QAAQ,CAACG,GAAG,CAAC,EAC7B;MACA,OAAO,KAAK;IACd;EACF;EAEA,OAAO,IAAI;AACb"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = buildMatchMemberExpression; 7 | var _matchesPattern = require("./matchesPattern"); 8 | function buildMatchMemberExpression(match, allowPartial) { 9 | const parts = match.split("."); 10 | return member => (0, _matchesPattern.default)(member, parts, allowPartial); 11 | } 12 | 13 | //# sourceMappingURL=buildMatchMemberExpression.js.map 14 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["buildMatchMemberExpression","match","allowPartial","parts","split","member","matchesPattern"],"sources":["../../src/validators/buildMatchMemberExpression.ts"],"sourcesContent":["import matchesPattern from \"./matchesPattern\";\nimport type * as t from \"..\";\n\n/**\n * Build a function that when called will return whether or not the\n * input `node` `MemberExpression` matches the input `match`.\n *\n * For example, given the match `React.createClass` it would match the\n * parsed nodes of `React.createClass` and `React[\"createClass\"]`.\n */\nexport default function buildMatchMemberExpression(\n match: string,\n allowPartial?: boolean,\n) {\n const parts = match.split(\".\");\n\n return (member: t.Node) => matchesPattern(member, parts, allowPartial);\n}\n"],"mappings":";;;;;;AAAA;AAUe,SAASA,0BAA0B,CAChDC,KAAa,EACbC,YAAsB,EACtB;EACA,MAAMC,KAAK,GAAGF,KAAK,CAACG,KAAK,CAAC,GAAG,CAAC;EAE9B,OAAQC,MAAc,IAAK,IAAAC,uBAAc,EAACD,MAAM,EAAEF,KAAK,EAAED,YAAY,CAAC;AACxE"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/is.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = is; 7 | var _shallowEqual = require("../utils/shallowEqual"); 8 | var _isType = require("./isType"); 9 | var _isPlaceholderType = require("./isPlaceholderType"); 10 | var _definitions = require("../definitions"); 11 | function is(type, node, opts) { 12 | if (!node) return false; 13 | const matches = (0, _isType.default)(node.type, type); 14 | if (!matches) { 15 | if (!opts && node.type === "Placeholder" && type in _definitions.FLIPPED_ALIAS_KEYS) { 16 | return (0, _isPlaceholderType.default)(node.expectedNode, type); 17 | } 18 | return false; 19 | } 20 | if (typeof opts === "undefined") { 21 | return true; 22 | } else { 23 | return (0, _shallowEqual.default)(node, opts); 24 | } 25 | } 26 | 27 | //# sourceMappingURL=is.js.map 28 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isBinding.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isBinding; 7 | var _getBindingIdentifiers = require("../retrievers/getBindingIdentifiers"); 8 | function isBinding(node, parent, grandparent) { 9 | if (grandparent && node.type === "Identifier" && parent.type === "ObjectProperty" && grandparent.type === "ObjectExpression") { 10 | return false; 11 | } 12 | const keys = 13 | _getBindingIdentifiers.default.keys[parent.type]; 14 | if (keys) { 15 | for (let i = 0; i < keys.length; i++) { 16 | const key = keys[i]; 17 | const val = 18 | parent[key]; 19 | if (Array.isArray(val)) { 20 | if (val.indexOf(node) >= 0) return true; 21 | } else { 22 | if (val === node) return true; 23 | } 24 | } 25 | } 26 | return false; 27 | } 28 | 29 | //# sourceMappingURL=isBinding.js.map 30 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isBlockScoped.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isBlockScoped; 7 | var _generated = require("./generated"); 8 | var _isLet = require("./isLet"); 9 | function isBlockScoped(node) { 10 | return (0, _generated.isFunctionDeclaration)(node) || (0, _generated.isClassDeclaration)(node) || (0, _isLet.default)(node); 11 | } 12 | 13 | //# sourceMappingURL=isBlockScoped.js.map 14 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isBlockScoped.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isBlockScoped","node","isFunctionDeclaration","isClassDeclaration","isLet"],"sources":["../../src/validators/isBlockScoped.ts"],"sourcesContent":["import { isClassDeclaration, isFunctionDeclaration } from \"./generated\";\nimport isLet from \"./isLet\";\nimport type * as t from \"..\";\n\n/**\n * Check if the input `node` is block scoped.\n */\nexport default function isBlockScoped(node: t.Node): boolean {\n return isFunctionDeclaration(node) || isClassDeclaration(node) || isLet(node);\n}\n"],"mappings":";;;;;;AAAA;AACA;AAMe,SAASA,aAAa,CAACC,IAAY,EAAW;EAC3D,OAAO,IAAAC,gCAAqB,EAACD,IAAI,CAAC,IAAI,IAAAE,6BAAkB,EAACF,IAAI,CAAC,IAAI,IAAAG,cAAK,EAACH,IAAI,CAAC;AAC/E"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isImmutable.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isImmutable; 7 | var _isType = require("./isType"); 8 | var _generated = require("./generated"); 9 | function isImmutable(node) { 10 | if ((0, _isType.default)(node.type, "Immutable")) return true; 11 | if ((0, _generated.isIdentifier)(node)) { 12 | if (node.name === "undefined") { 13 | return true; 14 | } else { 15 | return false; 16 | } 17 | } 18 | return false; 19 | } 20 | 21 | //# sourceMappingURL=isImmutable.js.map 22 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isImmutable.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isImmutable","node","isType","type","isIdentifier","name"],"sources":["../../src/validators/isImmutable.ts"],"sourcesContent":["import isType from \"./isType\";\nimport { isIdentifier } from \"./generated\";\nimport type * as t from \"..\";\n\n/**\n * Check if the input `node` is definitely immutable.\n */\nexport default function isImmutable(node: t.Node): boolean {\n if (isType(node.type, \"Immutable\")) return true;\n\n if (isIdentifier(node)) {\n if (node.name === \"undefined\") {\n // immutable!\n return true;\n } else {\n // no idea...\n return false;\n }\n }\n\n return false;\n}\n"],"mappings":";;;;;;AAAA;AACA;AAMe,SAASA,WAAW,CAACC,IAAY,EAAW;EACzD,IAAI,IAAAC,eAAM,EAACD,IAAI,CAACE,IAAI,EAAE,WAAW,CAAC,EAAE,OAAO,IAAI;EAE/C,IAAI,IAAAC,uBAAY,EAACH,IAAI,CAAC,EAAE;IACtB,IAAIA,IAAI,CAACI,IAAI,KAAK,WAAW,EAAE;MAE7B,OAAO,IAAI;IACb,CAAC,MAAM;MAEL,OAAO,KAAK;IACd;EACF;EAEA,OAAO,KAAK;AACd"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isLet.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isLet; 7 | var _generated = require("./generated"); 8 | var _constants = require("../constants"); 9 | function isLet(node) { 10 | return (0, _generated.isVariableDeclaration)(node) && (node.kind !== "var" || 11 | node[_constants.BLOCK_SCOPED_SYMBOL]); 12 | } 13 | 14 | //# sourceMappingURL=isLet.js.map 15 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isLet.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isLet","node","isVariableDeclaration","kind","BLOCK_SCOPED_SYMBOL"],"sources":["../../src/validators/isLet.ts"],"sourcesContent":["import { isVariableDeclaration } from \"./generated\";\nimport { BLOCK_SCOPED_SYMBOL } from \"../constants\";\nimport type * as t from \"..\";\n\n/**\n * Check if the input `node` is a `let` variable declaration.\n */\nexport default function isLet(node: t.Node): boolean {\n return (\n isVariableDeclaration(node) &&\n (node.kind !== \"var\" ||\n // @ts-expect-error Fixme: document private properties\n node[BLOCK_SCOPED_SYMBOL])\n );\n}\n"],"mappings":";;;;;;AAAA;AACA;AAMe,SAASA,KAAK,CAACC,IAAY,EAAW;EACnD,OACE,IAAAC,gCAAqB,EAACD,IAAI,CAAC,KAC1BA,IAAI,CAACE,IAAI,KAAK,KAAK;EAElBF,IAAI,CAACG,8BAAmB,CAAC,CAAC;AAEhC"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isNode.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isNode; 7 | var _definitions = require("../definitions"); 8 | function isNode(node) { 9 | return !!(node && _definitions.VISITOR_KEYS[node.type]); 10 | } 11 | 12 | //# sourceMappingURL=isNode.js.map 13 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isNode.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isNode","node","VISITOR_KEYS","type"],"sources":["../../src/validators/isNode.ts"],"sourcesContent":["import { VISITOR_KEYS } from \"../definitions\";\nimport type * as t from \"..\";\n\nexport default function isNode(node: any): node is t.Node {\n return !!(node && VISITOR_KEYS[node.type]);\n}\n"],"mappings":";;;;;;AAAA;AAGe,SAASA,MAAM,CAACC,IAAS,EAAkB;EACxD,OAAO,CAAC,EAAEA,IAAI,IAAIC,yBAAY,CAACD,IAAI,CAACE,IAAI,CAAC,CAAC;AAC5C"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isNodesEquivalent.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isNodesEquivalent; 7 | var _definitions = require("../definitions"); 8 | function isNodesEquivalent(a, b) { 9 | if (typeof a !== "object" || typeof b !== "object" || a == null || b == null) { 10 | return a === b; 11 | } 12 | if (a.type !== b.type) { 13 | return false; 14 | } 15 | const fields = Object.keys(_definitions.NODE_FIELDS[a.type] || a.type); 16 | const visitorKeys = _definitions.VISITOR_KEYS[a.type]; 17 | for (const field of fields) { 18 | const val_a = 19 | a[field]; 20 | const val_b = b[field]; 21 | if (typeof val_a !== typeof val_b) { 22 | return false; 23 | } 24 | if (val_a == null && val_b == null) { 25 | continue; 26 | } else if (val_a == null || val_b == null) { 27 | return false; 28 | } 29 | if (Array.isArray(val_a)) { 30 | if (!Array.isArray(val_b)) { 31 | return false; 32 | } 33 | if (val_a.length !== val_b.length) { 34 | return false; 35 | } 36 | for (let i = 0; i < val_a.length; i++) { 37 | if (!isNodesEquivalent(val_a[i], val_b[i])) { 38 | return false; 39 | } 40 | } 41 | continue; 42 | } 43 | if (typeof val_a === "object" && !(visitorKeys != null && visitorKeys.includes(field))) { 44 | for (const key of Object.keys(val_a)) { 45 | if (val_a[key] !== val_b[key]) { 46 | return false; 47 | } 48 | } 49 | continue; 50 | } 51 | if (!isNodesEquivalent(val_a, val_b)) { 52 | return false; 53 | } 54 | } 55 | return true; 56 | } 57 | 58 | //# sourceMappingURL=isNodesEquivalent.js.map 59 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isPlaceholderType.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isPlaceholderType; 7 | var _definitions = require("../definitions"); 8 | function isPlaceholderType(placeholderType, targetType) { 9 | if (placeholderType === targetType) return true; 10 | const aliases = _definitions.PLACEHOLDERS_ALIAS[placeholderType]; 11 | if (aliases) { 12 | for (const alias of aliases) { 13 | if (targetType === alias) return true; 14 | } 15 | } 16 | return false; 17 | } 18 | 19 | //# sourceMappingURL=isPlaceholderType.js.map 20 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isPlaceholderType.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isPlaceholderType","placeholderType","targetType","aliases","PLACEHOLDERS_ALIAS","alias"],"sources":["../../src/validators/isPlaceholderType.ts"],"sourcesContent":["import { PLACEHOLDERS_ALIAS } from \"../definitions\";\n\n/**\n * Test if a `placeholderType` is a `targetType` or if `targetType` is an alias of `placeholderType`.\n */\nexport default function isPlaceholderType(\n placeholderType: string,\n targetType: string,\n): boolean {\n if (placeholderType === targetType) return true;\n\n const aliases: Array | undefined =\n PLACEHOLDERS_ALIAS[placeholderType];\n if (aliases) {\n for (const alias of aliases) {\n if (targetType === alias) return true;\n }\n }\n\n return false;\n}\n"],"mappings":";;;;;;AAAA;AAKe,SAASA,iBAAiB,CACvCC,eAAuB,EACvBC,UAAkB,EACT;EACT,IAAID,eAAe,KAAKC,UAAU,EAAE,OAAO,IAAI;EAE/C,MAAMC,OAAkC,GACtCC,+BAAkB,CAACH,eAAe,CAAC;EACrC,IAAIE,OAAO,EAAE;IACX,KAAK,MAAME,KAAK,IAAIF,OAAO,EAAE;MAC3B,IAAID,UAAU,KAAKG,KAAK,EAAE,OAAO,IAAI;IACvC;EACF;EAEA,OAAO,KAAK;AACd"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isScope.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isScope; 7 | var _generated = require("./generated"); 8 | function isScope(node, parent) { 9 | if ((0, _generated.isBlockStatement)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) { 10 | return false; 11 | } 12 | 13 | if ((0, _generated.isPattern)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) { 14 | return true; 15 | } 16 | return (0, _generated.isScopable)(node); 17 | } 18 | 19 | //# sourceMappingURL=isScope.js.map 20 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isScope.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isScope","node","parent","isBlockStatement","isFunction","isCatchClause","isPattern","isScopable"],"sources":["../../src/validators/isScope.ts"],"sourcesContent":["import {\n isFunction,\n isCatchClause,\n isBlockStatement,\n isScopable,\n isPattern,\n} from \"./generated\";\nimport type * as t from \"..\";\n\n/**\n * Check if the input `node` is a scope.\n */\nexport default function isScope(node: t.Node, parent: t.Node): boolean {\n // If a BlockStatement is an immediate descendent of a Function/CatchClause, it must be in the body.\n // Hence we skipped the parentKey === \"params\" check\n if (isBlockStatement(node) && (isFunction(parent) || isCatchClause(parent))) {\n return false;\n }\n\n // If a Pattern is an immediate descendent of a Function/CatchClause, it must be in the params.\n // Hence we skipped the parentKey === \"params\" check\n if (isPattern(node) && (isFunction(parent) || isCatchClause(parent))) {\n return true;\n }\n\n return isScopable(node);\n}\n"],"mappings":";;;;;;AAAA;AAYe,SAASA,OAAO,CAACC,IAAY,EAAEC,MAAc,EAAW;EAGrE,IAAI,IAAAC,2BAAgB,EAACF,IAAI,CAAC,KAAK,IAAAG,qBAAU,EAACF,MAAM,CAAC,IAAI,IAAAG,wBAAa,EAACH,MAAM,CAAC,CAAC,EAAE;IAC3E,OAAO,KAAK;EACd;;EAIA,IAAI,IAAAI,oBAAS,EAACL,IAAI,CAAC,KAAK,IAAAG,qBAAU,EAACF,MAAM,CAAC,IAAI,IAAAG,wBAAa,EAACH,MAAM,CAAC,CAAC,EAAE;IACpE,OAAO,IAAI;EACb;EAEA,OAAO,IAAAK,qBAAU,EAACN,IAAI,CAAC;AACzB"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isSpecifierDefault.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isSpecifierDefault; 7 | var _generated = require("./generated"); 8 | function isSpecifierDefault(specifier) { 9 | return (0, _generated.isImportDefaultSpecifier)(specifier) || 10 | (0, _generated.isIdentifier)(specifier.imported || specifier.exported, { 11 | name: "default" 12 | }); 13 | } 14 | 15 | //# sourceMappingURL=isSpecifierDefault.js.map 16 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isSpecifierDefault","specifier","isImportDefaultSpecifier","isIdentifier","imported","exported","name"],"sources":["../../src/validators/isSpecifierDefault.ts"],"sourcesContent":["import { isIdentifier, isImportDefaultSpecifier } from \"./generated\";\nimport type * as t from \"..\";\n\n/**\n * Check if the input `specifier` is a `default` import or export.\n */\nexport default function isSpecifierDefault(\n specifier: t.ModuleSpecifier,\n): boolean {\n return (\n isImportDefaultSpecifier(specifier) ||\n // @ts-expect-error todo(flow->ts): stricter type for specifier\n isIdentifier(specifier.imported || specifier.exported, {\n name: \"default\",\n })\n );\n}\n"],"mappings":";;;;;;AAAA;AAMe,SAASA,kBAAkB,CACxCC,SAA4B,EACnB;EACT,OACE,IAAAC,mCAAwB,EAACD,SAAS,CAAC;EAEnC,IAAAE,uBAAY,EAACF,SAAS,CAACG,QAAQ,IAAIH,SAAS,CAACI,QAAQ,EAAE;IACrDC,IAAI,EAAE;EACR,CAAC,CAAC;AAEN"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isType.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isType; 7 | var _definitions = require("../definitions"); 8 | function isType(nodeType, targetType) { 9 | if (nodeType === targetType) return true; 10 | 11 | if (_definitions.ALIAS_KEYS[targetType]) return false; 12 | const aliases = _definitions.FLIPPED_ALIAS_KEYS[targetType]; 13 | if (aliases) { 14 | if (aliases[0] === nodeType) return true; 15 | for (const alias of aliases) { 16 | if (nodeType === alias) return true; 17 | } 18 | } 19 | return false; 20 | } 21 | 22 | //# sourceMappingURL=isType.js.map 23 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isType.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isType","nodeType","targetType","ALIAS_KEYS","aliases","FLIPPED_ALIAS_KEYS","alias"],"sources":["../../src/validators/isType.ts"],"sourcesContent":["import { FLIPPED_ALIAS_KEYS, ALIAS_KEYS } from \"../definitions\";\nimport type * as t from \"..\";\n\nexport default function isType(\n nodeType: string,\n targetType: T,\n): nodeType is T;\n\nexport default function isType(\n nodeType: string | null | undefined,\n targetType: string,\n): boolean;\n\n/**\n * Test if a `nodeType` is a `targetType` or if `targetType` is an alias of `nodeType`.\n */\nexport default function isType(nodeType: string, targetType: string): boolean {\n if (nodeType === targetType) return true;\n\n // This is a fast-path. If the test above failed, but an alias key is found, then the\n // targetType was a primary node type, so there's no need to check the aliases.\n // @ts-expect-error targetType may not index ALIAS_KEYS\n if (ALIAS_KEYS[targetType]) return false;\n\n const aliases: Array | undefined = FLIPPED_ALIAS_KEYS[targetType];\n if (aliases) {\n if (aliases[0] === nodeType) return true;\n\n for (const alias of aliases) {\n if (nodeType === alias) return true;\n }\n }\n\n return false;\n}\n"],"mappings":";;;;;;AAAA;AAgBe,SAASA,MAAM,CAACC,QAAgB,EAAEC,UAAkB,EAAW;EAC5E,IAAID,QAAQ,KAAKC,UAAU,EAAE,OAAO,IAAI;;EAKxC,IAAIC,uBAAU,CAACD,UAAU,CAAC,EAAE,OAAO,KAAK;EAExC,MAAME,OAAkC,GAAGC,+BAAkB,CAACH,UAAU,CAAC;EACzE,IAAIE,OAAO,EAAE;IACX,IAAIA,OAAO,CAAC,CAAC,CAAC,KAAKH,QAAQ,EAAE,OAAO,IAAI;IAExC,KAAK,MAAMK,KAAK,IAAIF,OAAO,EAAE;MAC3B,IAAIH,QAAQ,KAAKK,KAAK,EAAE,OAAO,IAAI;IACrC;EACF;EAEA,OAAO,KAAK;AACd"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isValidES3Identifier.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isValidES3Identifier; 7 | var _isValidIdentifier = require("./isValidIdentifier"); 8 | const RESERVED_WORDS_ES3_ONLY = new Set(["abstract", "boolean", "byte", "char", "double", "enum", "final", "float", "goto", "implements", "int", "interface", "long", "native", "package", "private", "protected", "public", "short", "static", "synchronized", "throws", "transient", "volatile"]); 9 | 10 | function isValidES3Identifier(name) { 11 | return (0, _isValidIdentifier.default)(name) && !RESERVED_WORDS_ES3_ONLY.has(name); 12 | } 13 | 14 | //# sourceMappingURL=isValidES3Identifier.js.map 15 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["RESERVED_WORDS_ES3_ONLY","Set","isValidES3Identifier","name","isValidIdentifier","has"],"sources":["../../src/validators/isValidES3Identifier.ts"],"sourcesContent":["import isValidIdentifier from \"./isValidIdentifier\";\n\nconst RESERVED_WORDS_ES3_ONLY: Set = new Set([\n \"abstract\",\n \"boolean\",\n \"byte\",\n \"char\",\n \"double\",\n \"enum\",\n \"final\",\n \"float\",\n \"goto\",\n \"implements\",\n \"int\",\n \"interface\",\n \"long\",\n \"native\",\n \"package\",\n \"private\",\n \"protected\",\n \"public\",\n \"short\",\n \"static\",\n \"synchronized\",\n \"throws\",\n \"transient\",\n \"volatile\",\n]);\n\n/**\n * Check if the input `name` is a valid identifier name according to the ES3 specification.\n *\n * Additional ES3 reserved words are\n */\nexport default function isValidES3Identifier(name: string): boolean {\n return isValidIdentifier(name) && !RESERVED_WORDS_ES3_ONLY.has(name);\n}\n"],"mappings":";;;;;;AAAA;AAEA,MAAMA,uBAAoC,GAAG,IAAIC,GAAG,CAAC,CACnD,UAAU,EACV,SAAS,EACT,MAAM,EACN,MAAM,EACN,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,MAAM,EACN,YAAY,EACZ,KAAK,EACL,WAAW,EACX,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,WAAW,EACX,UAAU,CACX,CAAC;;AAOa,SAASC,oBAAoB,CAACC,IAAY,EAAW;EAClE,OAAO,IAAAC,0BAAiB,EAACD,IAAI,CAAC,IAAI,CAACH,uBAAuB,CAACK,GAAG,CAACF,IAAI,CAAC;AACtE"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isValidIdentifier.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isValidIdentifier; 7 | var _helperValidatorIdentifier = require("@babel/helper-validator-identifier"); 8 | function isValidIdentifier(name, reserved = true) { 9 | if (typeof name !== "string") return false; 10 | if (reserved) { 11 | if ((0, _helperValidatorIdentifier.isKeyword)(name) || (0, _helperValidatorIdentifier.isStrictReservedWord)(name, true)) { 12 | return false; 13 | } 14 | } 15 | return (0, _helperValidatorIdentifier.isIdentifierName)(name); 16 | } 17 | 18 | //# sourceMappingURL=isValidIdentifier.js.map 19 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isValidIdentifier.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isValidIdentifier","name","reserved","isKeyword","isStrictReservedWord","isIdentifierName"],"sources":["../../src/validators/isValidIdentifier.ts"],"sourcesContent":["import {\n isIdentifierName,\n isStrictReservedWord,\n isKeyword,\n} from \"@babel/helper-validator-identifier\";\n\n/**\n * Check if the input `name` is a valid identifier name\n * and isn't a reserved word.\n */\nexport default function isValidIdentifier(\n name: string,\n reserved: boolean = true,\n): boolean {\n if (typeof name !== \"string\") return false;\n\n if (reserved) {\n // \"await\" is invalid in module, valid in script; better be safe (see #4952)\n if (isKeyword(name) || isStrictReservedWord(name, true)) {\n return false;\n }\n }\n\n return isIdentifierName(name);\n}\n"],"mappings":";;;;;;AAAA;AAUe,SAASA,iBAAiB,CACvCC,IAAY,EACZC,QAAiB,GAAG,IAAI,EACf;EACT,IAAI,OAAOD,IAAI,KAAK,QAAQ,EAAE,OAAO,KAAK;EAE1C,IAAIC,QAAQ,EAAE;IAEZ,IAAI,IAAAC,oCAAS,EAACF,IAAI,CAAC,IAAI,IAAAG,+CAAoB,EAACH,IAAI,EAAE,IAAI,CAAC,EAAE;MACvD,OAAO,KAAK;IACd;EACF;EAEA,OAAO,IAAAI,2CAAgB,EAACJ,IAAI,CAAC;AAC/B"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isVar.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isVar; 7 | var _generated = require("./generated"); 8 | var _constants = require("../constants"); 9 | function isVar(node) { 10 | return (0, _generated.isVariableDeclaration)(node, { 11 | kind: "var" 12 | }) && ! 13 | node[_constants.BLOCK_SCOPED_SYMBOL]; 14 | } 15 | 16 | //# sourceMappingURL=isVar.js.map 17 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/isVar.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isVar","node","isVariableDeclaration","kind","BLOCK_SCOPED_SYMBOL"],"sources":["../../src/validators/isVar.ts"],"sourcesContent":["import { isVariableDeclaration } from \"./generated\";\nimport { BLOCK_SCOPED_SYMBOL } from \"../constants\";\nimport type * as t from \"..\";\n\n/**\n * Check if the input `node` is a variable declaration.\n */\nexport default function isVar(node: t.Node): boolean {\n return (\n isVariableDeclaration(node, { kind: \"var\" }) &&\n !(\n // @ts-expect-error document private properties\n node[BLOCK_SCOPED_SYMBOL]\n )\n );\n}\n"],"mappings":";;;;;;AAAA;AACA;AAMe,SAASA,KAAK,CAACC,IAAY,EAAW;EACnD,OACE,IAAAC,gCAAqB,EAACD,IAAI,EAAE;IAAEE,IAAI,EAAE;EAAM,CAAC,CAAC,IAC5C;EAEEF,IAAI,CAACG,8BAAmB,CACzB;AAEL"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/matchesPattern.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = matchesPattern; 7 | var _generated = require("./generated"); 8 | function matchesPattern(member, match, allowPartial) { 9 | if (!(0, _generated.isMemberExpression)(member)) return false; 10 | const parts = Array.isArray(match) ? match : match.split("."); 11 | const nodes = []; 12 | let node; 13 | for (node = member; (0, _generated.isMemberExpression)(node); node = node.object) { 14 | nodes.push(node.property); 15 | } 16 | nodes.push(node); 17 | if (nodes.length < parts.length) return false; 18 | if (!allowPartial && nodes.length > parts.length) return false; 19 | for (let i = 0, j = nodes.length - 1; i < parts.length; i++, j--) { 20 | const node = nodes[j]; 21 | let value; 22 | if ((0, _generated.isIdentifier)(node)) { 23 | value = node.name; 24 | } else if ((0, _generated.isStringLiteral)(node)) { 25 | value = node.value; 26 | } else if ((0, _generated.isThisExpression)(node)) { 27 | value = "this"; 28 | } else { 29 | return false; 30 | } 31 | if (parts[i] !== value) return false; 32 | } 33 | return true; 34 | } 35 | 36 | //# sourceMappingURL=matchesPattern.js.map 37 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/react/isCompatTag.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isCompatTag; 7 | function isCompatTag(tagName) { 8 | return !!tagName && /^[a-z]/.test(tagName); 9 | } 10 | 11 | //# sourceMappingURL=isCompatTag.js.map 12 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/react/isCompatTag.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isCompatTag","tagName","test"],"sources":["../../../src/validators/react/isCompatTag.ts"],"sourcesContent":["export default function isCompatTag(tagName?: string): boolean {\n // Must start with a lowercase ASCII letter\n return !!tagName && /^[a-z]/.test(tagName);\n}\n"],"mappings":";;;;;;AAAe,SAASA,WAAW,CAACC,OAAgB,EAAW;EAE7D,OAAO,CAAC,CAACA,OAAO,IAAI,QAAQ,CAACC,IAAI,CAACD,OAAO,CAAC;AAC5C"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/react/isReactComponent.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = void 0; 7 | var _buildMatchMemberExpression = require("../buildMatchMemberExpression"); 8 | const isReactComponent = (0, _buildMatchMemberExpression.default)("React.Component"); 9 | var _default = isReactComponent; 10 | exports.default = _default; 11 | 12 | //# sourceMappingURL=isReactComponent.js.map 13 | -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/react/isReactComponent.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"names":["isReactComponent","buildMatchMemberExpression"],"sources":["../../../src/validators/react/isReactComponent.ts"],"sourcesContent":["import buildMatchMemberExpression from \"../buildMatchMemberExpression\";\n\nconst isReactComponent = buildMatchMemberExpression(\"React.Component\");\n\nexport default isReactComponent;\n"],"mappings":";;;;;;AAAA;AAEA,MAAMA,gBAAgB,GAAG,IAAAC,mCAA0B,EAAC,iBAAiB,CAAC;AAAC,eAExDD,gBAAgB;AAAA"} -------------------------------------------------------------------------------- /node_modules/@babel/types/lib/validators/validate.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = validate; 7 | exports.validateChild = validateChild; 8 | exports.validateField = validateField; 9 | var _definitions = require("../definitions"); 10 | function validate(node, key, val) { 11 | if (!node) return; 12 | const fields = _definitions.NODE_FIELDS[node.type]; 13 | if (!fields) return; 14 | const field = fields[key]; 15 | validateField(node, key, val, field); 16 | validateChild(node, key, val); 17 | } 18 | function validateField(node, key, val, field) { 19 | if (!(field != null && field.validate)) return; 20 | if (field.optional && val == null) return; 21 | field.validate(node, key, val); 22 | } 23 | function validateChild(node, key, val) { 24 | if (val == null) return; 25 | const validate = _definitions.NODE_PARENT_VALIDATIONS[val.type]; 26 | if (!validate) return; 27 | validate(node, key, val); 28 | } 29 | 30 | //# sourceMappingURL=validate.js.map 31 | -------------------------------------------------------------------------------- /node_modules/@babel/types/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@babel/types", 3 | "version": "7.20.2", 4 | "description": "Babel Types is a Lodash-esque utility library for AST nodes", 5 | "author": "The Babel Team (https://babel.dev/team)", 6 | "homepage": "https://babel.dev/docs/en/next/babel-types", 7 | "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20types%22+is%3Aopen", 8 | "license": "MIT", 9 | "publishConfig": { 10 | "access": "public" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/babel/babel.git", 15 | "directory": "packages/babel-types" 16 | }, 17 | "main": "./lib/index.js", 18 | "types": "./lib/index-legacy.d.ts", 19 | "typesVersions": { 20 | ">=3.7": { 21 | "lib/index-legacy.d.ts": [ 22 | "lib/index.d.ts" 23 | ] 24 | } 25 | }, 26 | "dependencies": { 27 | "@babel/helper-string-parser": "^7.19.4", 28 | "@babel/helper-validator-identifier": "^7.19.1", 29 | "to-fast-properties": "^2.0.0" 30 | }, 31 | "devDependencies": { 32 | "@babel/generator": "^7.20.2", 33 | "@babel/parser": "^7.20.2", 34 | "chalk": "^4.1.0", 35 | "glob": "^7.2.0" 36 | }, 37 | "engines": { 38 | "node": ">=6.9.0" 39 | }, 40 | "type": "commonjs" 41 | } -------------------------------------------------------------------------------- /node_modules/@jridgewell/gen-mapping/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2022 Justin Ridgewell 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts: -------------------------------------------------------------------------------- 1 | declare type GeneratedColumn = number; 2 | declare type SourcesIndex = number; 3 | declare type SourceLine = number; 4 | declare type SourceColumn = number; 5 | declare type NamesIndex = number; 6 | export declare type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; 7 | export declare const COLUMN = 0; 8 | export declare const SOURCES_INDEX = 1; 9 | export declare const SOURCE_LINE = 2; 10 | export declare const SOURCE_COLUMN = 3; 11 | export declare const NAMES_INDEX = 4; 12 | export {}; 13 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts: -------------------------------------------------------------------------------- 1 | import type { SourceMapSegment } from './sourcemap-segment'; 2 | export interface SourceMapV3 { 3 | file?: string | null; 4 | names: readonly string[]; 5 | sourceRoot?: string; 6 | sources: readonly (string | null)[]; 7 | sourcesContent?: readonly (string | null)[]; 8 | version: 3; 9 | } 10 | export interface EncodedSourceMap extends SourceMapV3 { 11 | mappings: string; 12 | } 13 | export interface DecodedSourceMap extends SourceMapV3 { 14 | mappings: readonly SourceMapSegment[][]; 15 | } 16 | export interface Pos { 17 | line: number; 18 | column: number; 19 | } 20 | export declare type Mapping = { 21 | generated: Pos; 22 | source: undefined; 23 | original: undefined; 24 | name: undefined; 25 | } | { 26 | generated: Pos; 27 | source: string; 28 | original: Pos; 29 | name: string; 30 | } | { 31 | generated: Pos; 32 | source: string; 33 | original: Pos; 34 | name: undefined; 35 | }; 36 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/gen-mapping/src/sourcemap-segment.ts: -------------------------------------------------------------------------------- 1 | type GeneratedColumn = number; 2 | type SourcesIndex = number; 3 | type SourceLine = number; 4 | type SourceColumn = number; 5 | type NamesIndex = number; 6 | 7 | export type SourceMapSegment = 8 | | [GeneratedColumn] 9 | | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] 10 | | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; 11 | 12 | export const COLUMN = 0; 13 | export const SOURCES_INDEX = 1; 14 | export const SOURCE_LINE = 2; 15 | export const SOURCE_COLUMN = 3; 16 | export const NAMES_INDEX = 4; 17 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/gen-mapping/src/types.ts: -------------------------------------------------------------------------------- 1 | import type { SourceMapSegment } from './sourcemap-segment'; 2 | 3 | export interface SourceMapV3 { 4 | file?: string | null; 5 | names: readonly string[]; 6 | sourceRoot?: string; 7 | sources: readonly (string | null)[]; 8 | sourcesContent?: readonly (string | null)[]; 9 | version: 3; 10 | } 11 | 12 | export interface EncodedSourceMap extends SourceMapV3 { 13 | mappings: string; 14 | } 15 | 16 | export interface DecodedSourceMap extends SourceMapV3 { 17 | mappings: readonly SourceMapSegment[][]; 18 | } 19 | 20 | export interface Pos { 21 | line: number; 22 | column: number; 23 | } 24 | 25 | export type Mapping = 26 | | { 27 | generated: Pos; 28 | source: undefined; 29 | original: undefined; 30 | name: undefined; 31 | } 32 | | { 33 | generated: Pos; 34 | source: string; 35 | original: Pos; 36 | name: string; 37 | } 38 | | { 39 | generated: Pos; 40 | source: string; 41 | original: Pos; 42 | name: undefined; 43 | }; 44 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/resolve-uri/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2019 Justin Ridgewell 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. -------------------------------------------------------------------------------- /node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Attempts to resolve `input` URL/path relative to `base`. 3 | */ 4 | export default function resolve(input: string, base: string | undefined): string; 5 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/set-array/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2022 Justin Ridgewell 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/set-array/README.md: -------------------------------------------------------------------------------- 1 | # @jridgewell/set-array 2 | 3 | > Like a Set, but provides the index of the `key` in the backing array 4 | 5 | This is designed to allow synchronizing a second array with the contents of the backing array, like 6 | how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`, and there 7 | are never duplicates. 8 | 9 | ## Installation 10 | 11 | ```sh 12 | npm install @jridgewell/set-array 13 | ``` 14 | 15 | ## Usage 16 | 17 | ```js 18 | import { SetArray, get, put, pop } from '@jridgewell/set-array'; 19 | 20 | const sa = new SetArray(); 21 | 22 | let index = put(sa, 'first'); 23 | assert.strictEqual(index, 0); 24 | 25 | index = put(sa, 'second'); 26 | assert.strictEqual(index, 1); 27 | 28 | assert.deepEqual(sa.array, [ 'first', 'second' ]); 29 | 30 | index = get(sa, 'first'); 31 | assert.strictEqual(index, 0); 32 | 33 | pop(sa); 34 | index = get(sa, 'second'); 35 | assert.strictEqual(index, undefined); 36 | assert.deepEqual(sa.array, [ 'first' ]); 37 | ``` 38 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/set-array/dist/set-array.mjs: -------------------------------------------------------------------------------- 1 | /** 2 | * Gets the index associated with `key` in the backing array, if it is already present. 3 | */ 4 | let get; 5 | /** 6 | * Puts `key` into the backing array, if it is not already present. Returns 7 | * the index of the `key` in the backing array. 8 | */ 9 | let put; 10 | /** 11 | * Pops the last added item out of the SetArray. 12 | */ 13 | let pop; 14 | /** 15 | * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the 16 | * index of the `key` in the backing array. 17 | * 18 | * This is designed to allow synchronizing a second array with the contents of the backing array, 19 | * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`, 20 | * and there are never duplicates. 21 | */ 22 | class SetArray { 23 | constructor() { 24 | this._indexes = { __proto__: null }; 25 | this.array = []; 26 | } 27 | } 28 | (() => { 29 | get = (strarr, key) => strarr._indexes[key]; 30 | put = (strarr, key) => { 31 | // The key may or may not be present. If it is present, it's a number. 32 | const index = get(strarr, key); 33 | if (index !== undefined) 34 | return index; 35 | const { array, _indexes: indexes } = strarr; 36 | return (indexes[key] = array.push(key) - 1); 37 | }; 38 | pop = (strarr) => { 39 | const { array, _indexes: indexes } = strarr; 40 | if (array.length === 0) 41 | return; 42 | const last = array.pop(); 43 | indexes[last] = undefined; 44 | }; 45 | })(); 46 | 47 | export { SetArray, get, pop, put }; 48 | //# sourceMappingURL=set-array.mjs.map 49 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/set-array/dist/types/set-array.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Gets the index associated with `key` in the backing array, if it is already present. 3 | */ 4 | export declare let get: (strarr: SetArray, key: string) => number | undefined; 5 | /** 6 | * Puts `key` into the backing array, if it is not already present. Returns 7 | * the index of the `key` in the backing array. 8 | */ 9 | export declare let put: (strarr: SetArray, key: string) => number; 10 | /** 11 | * Pops the last added item out of the SetArray. 12 | */ 13 | export declare let pop: (strarr: SetArray) => void; 14 | /** 15 | * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the 16 | * index of the `key` in the backing array. 17 | * 18 | * This is designed to allow synchronizing a second array with the contents of the backing array, 19 | * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`, 20 | * and there are never duplicates. 21 | */ 22 | export declare class SetArray { 23 | private _indexes; 24 | array: readonly string[]; 25 | constructor(); 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/sourcemap-codec/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2015 Rich Harris 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts: -------------------------------------------------------------------------------- 1 | export declare type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number]; 2 | export declare type SourceMapLine = SourceMapSegment[]; 3 | export declare type SourceMapMappings = SourceMapLine[]; 4 | export declare function decode(mappings: string): SourceMapMappings; 5 | export declare function encode(decoded: SourceMapMappings): string; 6 | export declare function encode(decoded: Readonly): string; 7 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/trace-mapping/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2022 Justin Ridgewell 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts: -------------------------------------------------------------------------------- 1 | import { TraceMap } from './trace-mapping'; 2 | import type { SectionedSourceMapInput } from './types'; 3 | declare type AnyMap = { 4 | new (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap; 5 | (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap; 6 | }; 7 | export declare const AnyMap: AnyMap; 8 | export {}; 9 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts: -------------------------------------------------------------------------------- 1 | import type { SourceMapSegment, ReverseSegment } from './sourcemap-segment'; 2 | export declare type MemoState = { 3 | lastKey: number; 4 | lastNeedle: number; 5 | lastIndex: number; 6 | }; 7 | export declare let found: boolean; 8 | /** 9 | * A binary search implementation that returns the index if a match is found. 10 | * If no match is found, then the left-index (the index associated with the item that comes just 11 | * before the desired index) is returned. To maintain proper sort order, a splice would happen at 12 | * the next index: 13 | * 14 | * ```js 15 | * const array = [1, 3]; 16 | * const needle = 2; 17 | * const index = binarySearch(array, needle, (item, needle) => item - needle); 18 | * 19 | * assert.equal(index, 0); 20 | * array.splice(index + 1, 0, needle); 21 | * assert.deepEqual(array, [1, 2, 3]); 22 | * ``` 23 | */ 24 | export declare function binarySearch(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, low: number, high: number): number; 25 | export declare function upperBound(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, index: number): number; 26 | export declare function lowerBound(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, index: number): number; 27 | export declare function memoizedState(): MemoState; 28 | /** 29 | * This overly complicated beast is just to record the last tested line/column and the resulting 30 | * index, allowing us to skip a few tests if mappings are monotonically increasing. 31 | */ 32 | export declare function memoizedBinarySearch(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, state: MemoState, key: number): number; 33 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts: -------------------------------------------------------------------------------- 1 | import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment'; 2 | import type { MemoState } from './binary-search'; 3 | export declare type Source = { 4 | __proto__: null; 5 | [line: number]: Exclude[]; 6 | }; 7 | export default function buildBySources(decoded: readonly SourceMapSegment[][], memos: MemoState[]): Source[]; 8 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts: -------------------------------------------------------------------------------- 1 | export default function resolve(input: string, base: string | undefined): string; 2 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts: -------------------------------------------------------------------------------- 1 | import type { SourceMapSegment } from './sourcemap-segment'; 2 | export default function maybeSort(mappings: SourceMapSegment[][], owned: boolean): SourceMapSegment[][]; 3 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts: -------------------------------------------------------------------------------- 1 | declare type GeneratedColumn = number; 2 | declare type SourcesIndex = number; 3 | declare type SourceLine = number; 4 | declare type SourceColumn = number; 5 | declare type NamesIndex = number; 6 | declare type GeneratedLine = number; 7 | export declare type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; 8 | export declare type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn]; 9 | export declare const COLUMN = 0; 10 | export declare const SOURCES_INDEX = 1; 11 | export declare const SOURCE_LINE = 2; 12 | export declare const SOURCE_COLUMN = 3; 13 | export declare const NAMES_INDEX = 4; 14 | export declare const REV_GENERATED_LINE = 1; 15 | export declare const REV_GENERATED_COLUMN = 2; 16 | export {}; 17 | -------------------------------------------------------------------------------- /node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Removes everything after the last "/", but leaves the slash. 3 | */ 4 | export default function stripFilename(path: string | undefined | null): string; 5 | -------------------------------------------------------------------------------- /node_modules/ansi-styles/license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /node_modules/ansi-styles/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ansi-styles", 3 | "version": "3.2.1", 4 | "description": "ANSI escape codes for styling strings in the terminal", 5 | "license": "MIT", 6 | "repository": "chalk/ansi-styles", 7 | "author": { 8 | "name": "Sindre Sorhus", 9 | "email": "sindresorhus@gmail.com", 10 | "url": "sindresorhus.com" 11 | }, 12 | "engines": { 13 | "node": ">=4" 14 | }, 15 | "scripts": { 16 | "test": "xo && ava", 17 | "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" 18 | }, 19 | "files": [ 20 | "index.js" 21 | ], 22 | "keywords": [ 23 | "ansi", 24 | "styles", 25 | "color", 26 | "colour", 27 | "colors", 28 | "terminal", 29 | "console", 30 | "cli", 31 | "string", 32 | "tty", 33 | "escape", 34 | "formatting", 35 | "rgb", 36 | "256", 37 | "shell", 38 | "xterm", 39 | "log", 40 | "logging", 41 | "command-line", 42 | "text" 43 | ], 44 | "dependencies": { 45 | "color-convert": "^1.9.0" 46 | }, 47 | "devDependencies": { 48 | "ava": "*", 49 | "babel-polyfill": "^6.23.0", 50 | "svg-term-cli": "^2.1.1", 51 | "xo": "*" 52 | }, 53 | "ava": { 54 | "require": "babel-polyfill" 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /node_modules/chalk/license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /node_modules/chalk/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "chalk", 3 | "version": "2.4.2", 4 | "description": "Terminal string styling done right", 5 | "license": "MIT", 6 | "repository": "chalk/chalk", 7 | "engines": { 8 | "node": ">=4" 9 | }, 10 | "scripts": { 11 | "test": "xo && tsc --project types && flow --max-warnings=0 && nyc ava", 12 | "bench": "matcha benchmark.js", 13 | "coveralls": "nyc report --reporter=text-lcov | coveralls" 14 | }, 15 | "files": [ 16 | "index.js", 17 | "templates.js", 18 | "types/index.d.ts", 19 | "index.js.flow" 20 | ], 21 | "keywords": [ 22 | "color", 23 | "colour", 24 | "colors", 25 | "terminal", 26 | "console", 27 | "cli", 28 | "string", 29 | "str", 30 | "ansi", 31 | "style", 32 | "styles", 33 | "tty", 34 | "formatting", 35 | "rgb", 36 | "256", 37 | "shell", 38 | "xterm", 39 | "log", 40 | "logging", 41 | "command-line", 42 | "text" 43 | ], 44 | "dependencies": { 45 | "ansi-styles": "^3.2.1", 46 | "escape-string-regexp": "^1.0.5", 47 | "supports-color": "^5.3.0" 48 | }, 49 | "devDependencies": { 50 | "ava": "*", 51 | "coveralls": "^3.0.0", 52 | "execa": "^0.9.0", 53 | "flow-bin": "^0.68.0", 54 | "import-fresh": "^2.0.0", 55 | "matcha": "^0.7.0", 56 | "nyc": "^11.0.2", 57 | "resolve-from": "^4.0.0", 58 | "typescript": "^2.5.3", 59 | "xo": "*" 60 | }, 61 | "types": "types/index.d.ts", 62 | "xo": { 63 | "envs": [ 64 | "node", 65 | "mocha" 66 | ], 67 | "ignores": [ 68 | "test/_flow.js" 69 | ] 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /node_modules/color-convert/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.0 - 2016-01-07 2 | 3 | - Removed: unused speed test 4 | - Added: Automatic routing between previously unsupported conversions 5 | ([#27](https://github.com/Qix-/color-convert/pull/27)) 6 | - Removed: `xxx2xxx()` and `xxx2xxxRaw()` functions 7 | ([#27](https://github.com/Qix-/color-convert/pull/27)) 8 | - Removed: `convert()` class 9 | ([#27](https://github.com/Qix-/color-convert/pull/27)) 10 | - Changed: all functions to lookup dictionary 11 | ([#27](https://github.com/Qix-/color-convert/pull/27)) 12 | - Changed: `ansi` to `ansi256` 13 | ([#27](https://github.com/Qix-/color-convert/pull/27)) 14 | - Fixed: argument grouping for functions requiring only one argument 15 | ([#27](https://github.com/Qix-/color-convert/pull/27)) 16 | 17 | # 0.6.0 - 2015-07-23 18 | 19 | - Added: methods to handle 20 | [ANSI](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors) 16/256 colors: 21 | - rgb2ansi16 22 | - rgb2ansi 23 | - hsl2ansi16 24 | - hsl2ansi 25 | - hsv2ansi16 26 | - hsv2ansi 27 | - hwb2ansi16 28 | - hwb2ansi 29 | - cmyk2ansi16 30 | - cmyk2ansi 31 | - keyword2ansi16 32 | - keyword2ansi 33 | - ansi162rgb 34 | - ansi162hsl 35 | - ansi162hsv 36 | - ansi162hwb 37 | - ansi162cmyk 38 | - ansi162keyword 39 | - ansi2rgb 40 | - ansi2hsl 41 | - ansi2hsv 42 | - ansi2hwb 43 | - ansi2cmyk 44 | - ansi2keyword 45 | ([#18](https://github.com/harthur/color-convert/pull/18)) 46 | 47 | # 0.5.3 - 2015-06-02 48 | 49 | - Fixed: hsl2hsv does not return `NaN` anymore when using `[0,0,0]` 50 | ([#15](https://github.com/harthur/color-convert/issues/15)) 51 | 52 | --- 53 | 54 | Check out commit logs for older releases 55 | -------------------------------------------------------------------------------- /node_modules/color-convert/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2016 Heather Arthur 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /node_modules/color-convert/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "color-convert", 3 | "description": "Plain color conversion functions", 4 | "version": "1.9.3", 5 | "author": "Heather Arthur ", 6 | "license": "MIT", 7 | "repository": "Qix-/color-convert", 8 | "scripts": { 9 | "pretest": "xo", 10 | "test": "node test/basic.js" 11 | }, 12 | "keywords": [ 13 | "color", 14 | "colour", 15 | "convert", 16 | "converter", 17 | "conversion", 18 | "rgb", 19 | "hsl", 20 | "hsv", 21 | "hwb", 22 | "cmyk", 23 | "ansi", 24 | "ansi16" 25 | ], 26 | "files": [ 27 | "index.js", 28 | "conversions.js", 29 | "css-keywords.js", 30 | "route.js" 31 | ], 32 | "xo": { 33 | "rules": { 34 | "default-case": 0, 35 | "no-inline-comments": 0, 36 | "operator-linebreak": 0 37 | } 38 | }, 39 | "devDependencies": { 40 | "chalk": "1.1.1", 41 | "xo": "0.11.2" 42 | }, 43 | "dependencies": { 44 | "color-name": "1.1.3" 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /node_modules/color-name/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "node": true, 5 | "commonjs": true, 6 | "es6": true 7 | }, 8 | "extends": "eslint:recommended", 9 | "rules": { 10 | "strict": 2, 11 | "indent": 0, 12 | "linebreak-style": 0, 13 | "quotes": 0, 14 | "semi": 0, 15 | "no-cond-assign": 1, 16 | "no-constant-condition": 1, 17 | "no-duplicate-case": 1, 18 | "no-empty": 1, 19 | "no-ex-assign": 1, 20 | "no-extra-boolean-cast": 1, 21 | "no-extra-semi": 1, 22 | "no-fallthrough": 1, 23 | "no-func-assign": 1, 24 | "no-global-assign": 1, 25 | "no-implicit-globals": 2, 26 | "no-inner-declarations": ["error", "functions"], 27 | "no-irregular-whitespace": 2, 28 | "no-loop-func": 1, 29 | "no-multi-str": 1, 30 | "no-mixed-spaces-and-tabs": 1, 31 | "no-proto": 1, 32 | "no-sequences": 1, 33 | "no-throw-literal": 1, 34 | "no-unmodified-loop-condition": 1, 35 | "no-useless-call": 1, 36 | "no-void": 1, 37 | "no-with": 2, 38 | "wrap-iife": 1, 39 | "no-redeclare": 1, 40 | "no-unused-vars": ["error", { "vars": "all", "args": "none" }], 41 | "no-sparse-arrays": 1 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /node_modules/color-name/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | Copyright (c) 2015 Dmitry Ivanov 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5 | 6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/color-name/README.md: -------------------------------------------------------------------------------- 1 | A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors. 2 | 3 | [![NPM](https://nodei.co/npm/color-name.png?mini=true)](https://nodei.co/npm/color-name/) 4 | 5 | 6 | ```js 7 | var colors = require('color-name'); 8 | colors.red //[255,0,0] 9 | ``` 10 | 11 | 12 | -------------------------------------------------------------------------------- /node_modules/color-name/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "color-name", 3 | "version": "1.1.3", 4 | "description": "A list of color names and its values", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "node test.js" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git@github.com:dfcreative/color-name.git" 12 | }, 13 | "keywords": [ 14 | "color-name", 15 | "color", 16 | "color-keyword", 17 | "keyword" 18 | ], 19 | "author": "DY ", 20 | "license": "MIT", 21 | "bugs": { 22 | "url": "https://github.com/dfcreative/color-name/issues" 23 | }, 24 | "homepage": "https://github.com/dfcreative/color-name" 25 | } 26 | -------------------------------------------------------------------------------- /node_modules/color-name/test.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var names = require('./'); 4 | var assert = require('assert'); 5 | 6 | assert.deepEqual(names.red, [255,0,0]); 7 | assert.deepEqual(names.aliceblue, [240,248,255]); 8 | -------------------------------------------------------------------------------- /node_modules/debug/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014-2017 TJ Holowaychuk 4 | Copyright (c) 2018-2021 Josh Junon 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software 7 | and associated documentation files (the 'Software'), to deal in the Software without restriction, 8 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all copies or substantial 13 | portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 16 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 18 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 19 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | -------------------------------------------------------------------------------- /node_modules/debug/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "version": "4.3.4", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/debug-js/debug.git" 7 | }, 8 | "description": "Lightweight debugging utility for Node.js and the browser", 9 | "keywords": [ 10 | "debug", 11 | "log", 12 | "debugger" 13 | ], 14 | "files": [ 15 | "src", 16 | "LICENSE", 17 | "README.md" 18 | ], 19 | "author": "Josh Junon ", 20 | "contributors": [ 21 | "TJ Holowaychuk ", 22 | "Nathan Rajlich (http://n8.io)", 23 | "Andrew Rhyne " 24 | ], 25 | "license": "MIT", 26 | "scripts": { 27 | "lint": "xo", 28 | "test": "npm run test:node && npm run test:browser && npm run lint", 29 | "test:node": "istanbul cover _mocha -- test.js", 30 | "test:browser": "karma start --single-run", 31 | "test:coverage": "cat ./coverage/lcov.info | coveralls" 32 | }, 33 | "dependencies": { 34 | "ms": "2.1.2" 35 | }, 36 | "devDependencies": { 37 | "brfs": "^2.0.1", 38 | "browserify": "^16.2.3", 39 | "coveralls": "^3.0.2", 40 | "istanbul": "^0.4.5", 41 | "karma": "^3.1.4", 42 | "karma-browserify": "^6.0.0", 43 | "karma-chrome-launcher": "^2.2.0", 44 | "karma-mocha": "^1.3.0", 45 | "mocha": "^5.2.0", 46 | "mocha-lcov-reporter": "^1.2.0", 47 | "xo": "^0.23.0" 48 | }, 49 | "peerDependenciesMeta": { 50 | "supports-color": { 51 | "optional": true 52 | } 53 | }, 54 | "main": "./src/index.js", 55 | "browser": "./src/browser.js", 56 | "engines": { 57 | "node": ">=6.0" 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /node_modules/debug/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Detect Electron renderer / nwjs process, which is node, but we should 3 | * treat as a browser. 4 | */ 5 | 6 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { 7 | module.exports = require('./browser.js'); 8 | } else { 9 | module.exports = require('./node.js'); 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/escape-string-regexp/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; 4 | 5 | module.exports = function (str) { 6 | if (typeof str !== 'string') { 7 | throw new TypeError('Expected a string'); 8 | } 9 | 10 | return str.replace(matchOperatorsRe, '\\$&'); 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/escape-string-regexp/license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/escape-string-regexp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "escape-string-regexp", 3 | "version": "1.0.5", 4 | "description": "Escape RegExp special characters", 5 | "license": "MIT", 6 | "repository": "sindresorhus/escape-string-regexp", 7 | "author": { 8 | "name": "Sindre Sorhus", 9 | "email": "sindresorhus@gmail.com", 10 | "url": "sindresorhus.com" 11 | }, 12 | "maintainers": [ 13 | "Sindre Sorhus (sindresorhus.com)", 14 | "Joshua Boy Nicolai Appelman (jbna.nl)" 15 | ], 16 | "engines": { 17 | "node": ">=0.8.0" 18 | }, 19 | "scripts": { 20 | "test": "xo && ava" 21 | }, 22 | "files": [ 23 | "index.js" 24 | ], 25 | "keywords": [ 26 | "escape", 27 | "regex", 28 | "regexp", 29 | "re", 30 | "regular", 31 | "expression", 32 | "string", 33 | "str", 34 | "special", 35 | "characters" 36 | ], 37 | "devDependencies": { 38 | "ava": "*", 39 | "xo": "*" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /node_modules/escape-string-regexp/readme.md: -------------------------------------------------------------------------------- 1 | # escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp) 2 | 3 | > Escape RegExp special characters 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | $ npm install --save escape-string-regexp 10 | ``` 11 | 12 | 13 | ## Usage 14 | 15 | ```js 16 | const escapeStringRegexp = require('escape-string-regexp'); 17 | 18 | const escapedString = escapeStringRegexp('how much $ for a unicorn?'); 19 | //=> 'how much \$ for a unicorn\?' 20 | 21 | new RegExp(escapedString); 22 | ``` 23 | 24 | 25 | ## License 26 | 27 | MIT © [Sindre Sorhus](http://sindresorhus.com) 28 | -------------------------------------------------------------------------------- /node_modules/globals/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = require('./globals.json'); 3 | -------------------------------------------------------------------------------- /node_modules/globals/license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /node_modules/globals/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "globals", 3 | "version": "11.12.0", 4 | "description": "Global identifiers from different JavaScript environments", 5 | "license": "MIT", 6 | "repository": "sindresorhus/globals", 7 | "author": { 8 | "name": "Sindre Sorhus", 9 | "email": "sindresorhus@gmail.com", 10 | "url": "sindresorhus.com" 11 | }, 12 | "engines": { 13 | "node": ">=4" 14 | }, 15 | "scripts": { 16 | "test": "xo && ava" 17 | }, 18 | "files": [ 19 | "index.js", 20 | "globals.json" 21 | ], 22 | "keywords": [ 23 | "globals", 24 | "global", 25 | "identifiers", 26 | "variables", 27 | "vars", 28 | "jshint", 29 | "eslint", 30 | "environments" 31 | ], 32 | "devDependencies": { 33 | "ava": "0.21.0", 34 | "xo": "0.18.0" 35 | }, 36 | "xo": { 37 | "ignores": [ 38 | "get-browser-globals.js" 39 | ] 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /node_modules/globals/readme.md: -------------------------------------------------------------------------------- 1 | # globals [![Build Status](https://travis-ci.org/sindresorhus/globals.svg?branch=master)](https://travis-ci.org/sindresorhus/globals) 2 | 3 | > Global identifiers from different JavaScript environments 4 | 5 | Extracted from [JSHint](https://github.com/jshint/jshint/blob/3a8efa979dbb157bfb5c10b5826603a55a33b9ad/src/vars.js) and [ESLint](https://github.com/eslint/eslint/blob/b648406218f8a2d7302b98f5565e23199f44eb31/conf/environments.json) and merged. 6 | 7 | It's just a [JSON file](globals.json), so use it in whatever environment you like. 8 | 9 | **This module [no longer accepts](https://github.com/sindresorhus/globals/issues/82) new environments. If you need it for ESLint, just [create a plugin](http://eslint.org/docs/developer-guide/working-with-plugins#environments-in-plugins).** 10 | 11 | 12 | ## Install 13 | 14 | ``` 15 | $ npm install globals 16 | ``` 17 | 18 | 19 | ## Usage 20 | 21 | ```js 22 | const globals = require('globals'); 23 | 24 | console.log(globals.browser); 25 | /* 26 | { 27 | addEventListener: false, 28 | applicationCache: false, 29 | ArrayBuffer: false, 30 | atob: false, 31 | ... 32 | } 33 | */ 34 | ``` 35 | 36 | Each global is given a value of `true` or `false`. A value of `true` indicates that the variable may be overwritten. A value of `false` indicates that the variable should be considered read-only. This information is used by static analysis tools to flag incorrect behavior. We assume all variables should be `false` unless we hear otherwise. 37 | 38 | 39 | ## License 40 | 41 | MIT © [Sindre Sorhus](https://sindresorhus.com) 42 | -------------------------------------------------------------------------------- /node_modules/has-flag/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = (flag, argv) => { 3 | argv = argv || process.argv; 4 | const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); 5 | const pos = argv.indexOf(prefix + flag); 6 | const terminatorPos = argv.indexOf('--'); 7 | return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); 8 | }; 9 | -------------------------------------------------------------------------------- /node_modules/has-flag/license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /node_modules/has-flag/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "has-flag", 3 | "version": "3.0.0", 4 | "description": "Check if argv has a specific flag", 5 | "license": "MIT", 6 | "repository": "sindresorhus/has-flag", 7 | "author": { 8 | "name": "Sindre Sorhus", 9 | "email": "sindresorhus@gmail.com", 10 | "url": "sindresorhus.com" 11 | }, 12 | "engines": { 13 | "node": ">=4" 14 | }, 15 | "scripts": { 16 | "test": "xo && ava" 17 | }, 18 | "files": [ 19 | "index.js" 20 | ], 21 | "keywords": [ 22 | "has", 23 | "check", 24 | "detect", 25 | "contains", 26 | "find", 27 | "flag", 28 | "cli", 29 | "command-line", 30 | "argv", 31 | "process", 32 | "arg", 33 | "args", 34 | "argument", 35 | "arguments", 36 | "getopt", 37 | "minimist", 38 | "optimist" 39 | ], 40 | "devDependencies": { 41 | "ava": "*", 42 | "xo": "*" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /node_modules/has-flag/readme.md: -------------------------------------------------------------------------------- 1 | # has-flag [![Build Status](https://travis-ci.org/sindresorhus/has-flag.svg?branch=master)](https://travis-ci.org/sindresorhus/has-flag) 2 | 3 | > Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag 4 | 5 | Correctly stops looking after an `--` argument terminator. 6 | 7 | 8 | ## Install 9 | 10 | ``` 11 | $ npm install has-flag 12 | ``` 13 | 14 | 15 | ## Usage 16 | 17 | ```js 18 | // foo.js 19 | const hasFlag = require('has-flag'); 20 | 21 | hasFlag('unicorn'); 22 | //=> true 23 | 24 | hasFlag('--unicorn'); 25 | //=> true 26 | 27 | hasFlag('f'); 28 | //=> true 29 | 30 | hasFlag('-f'); 31 | //=> true 32 | 33 | hasFlag('foo=bar'); 34 | //=> true 35 | 36 | hasFlag('foo'); 37 | //=> false 38 | 39 | hasFlag('rainbow'); 40 | //=> false 41 | ``` 42 | 43 | ``` 44 | $ node foo.js -f --unicorn --foo=bar -- --rainbow 45 | ``` 46 | 47 | 48 | ## API 49 | 50 | ### hasFlag(flag, [argv]) 51 | 52 | Returns a boolean for whether the flag exists. 53 | 54 | #### flag 55 | 56 | Type: `string` 57 | 58 | CLI flag to look for. The `--` prefix is optional. 59 | 60 | #### argv 61 | 62 | Type: `string[]`
63 | Default: `process.argv` 64 | 65 | CLI arguments. 66 | 67 | 68 | ## License 69 | 70 | MIT © [Sindre Sorhus](https://sindresorhus.com) 71 | -------------------------------------------------------------------------------- /node_modules/js-tokens/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/js-tokens/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2014, 2015, 2016, 2017, 2018 Simon Lydell 2 | // License: MIT. (See LICENSE.) 3 | 4 | Object.defineProperty(exports, "__esModule", { 5 | value: true 6 | }) 7 | 8 | // This regex comes from regex.coffee, and is inserted here by generate-index.js 9 | // (run `npm run build`). 10 | exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g 11 | 12 | exports.matchToToken = function(match) { 13 | var token = {type: "invalid", value: match[0], closed: undefined} 14 | if (match[ 1]) token.type = "string" , token.closed = !!(match[3] || match[4]) 15 | else if (match[ 5]) token.type = "comment" 16 | else if (match[ 6]) token.type = "comment", token.closed = !!match[7] 17 | else if (match[ 8]) token.type = "regex" 18 | else if (match[ 9]) token.type = "number" 19 | else if (match[10]) token.type = "name" 20 | else if (match[11]) token.type = "punctuator" 21 | else if (match[12]) token.type = "whitespace" 22 | return token 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/js-tokens/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "js-tokens", 3 | "version": "4.0.0", 4 | "author": "Simon Lydell", 5 | "license": "MIT", 6 | "description": "A regex that tokenizes JavaScript.", 7 | "keywords": [ 8 | "JavaScript", 9 | "js", 10 | "token", 11 | "tokenize", 12 | "regex" 13 | ], 14 | "files": [ 15 | "index.js" 16 | ], 17 | "repository": "lydell/js-tokens", 18 | "scripts": { 19 | "test": "mocha --ui tdd", 20 | "esprima-compare": "node esprima-compare ./index.js everything.js/es5.js", 21 | "build": "node generate-index.js", 22 | "dev": "npm run build && npm test" 23 | }, 24 | "devDependencies": { 25 | "coffeescript": "2.1.1", 26 | "esprima": "4.0.0", 27 | "everything.js": "1.0.3", 28 | "mocha": "5.0.0" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /node_modules/jsesc/LICENSE-MIT.txt: -------------------------------------------------------------------------------- 1 | Copyright Mathias Bynens 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /node_modules/jsesc/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jsesc", 3 | "version": "2.5.2", 4 | "description": "Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.", 5 | "homepage": "https://mths.be/jsesc", 6 | "engines": { 7 | "node": ">=4" 8 | }, 9 | "main": "jsesc.js", 10 | "bin": "bin/jsesc", 11 | "man": "man/jsesc.1", 12 | "keywords": [ 13 | "buffer", 14 | "escape", 15 | "javascript", 16 | "json", 17 | "map", 18 | "set", 19 | "string", 20 | "stringify", 21 | "tool" 22 | ], 23 | "license": "MIT", 24 | "author": { 25 | "name": "Mathias Bynens", 26 | "url": "https://mathiasbynens.be/" 27 | }, 28 | "repository": { 29 | "type": "git", 30 | "url": "https://github.com/mathiasbynens/jsesc.git" 31 | }, 32 | "bugs": "https://github.com/mathiasbynens/jsesc/issues", 33 | "files": [ 34 | "LICENSE-MIT.txt", 35 | "jsesc.js", 36 | "bin/", 37 | "man/" 38 | ], 39 | "scripts": { 40 | "build": "grunt template", 41 | "coveralls": "istanbul cover --verbose --dir 'coverage' 'tests/tests.js' && coveralls < coverage/lcov.info'", 42 | "cover": "istanbul cover --report 'html' --verbose --dir 'coverage' 'tests/tests.js'", 43 | "test": "mocha tests" 44 | }, 45 | "devDependencies": { 46 | "coveralls": "^2.11.6", 47 | "grunt": "^0.4.5", 48 | "grunt-template": "^0.2.3", 49 | "istanbul": "^0.4.2", 50 | "mocha": "*", 51 | "regenerate": "^1.3.0", 52 | "requirejs": "^2.1.22" 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /node_modules/ms/license.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Zeit, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/ms/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ms", 3 | "version": "2.1.2", 4 | "description": "Tiny millisecond conversion utility", 5 | "repository": "zeit/ms", 6 | "main": "./index", 7 | "files": [ 8 | "index.js" 9 | ], 10 | "scripts": { 11 | "precommit": "lint-staged", 12 | "lint": "eslint lib/* bin/*", 13 | "test": "mocha tests.js" 14 | }, 15 | "eslintConfig": { 16 | "extends": "eslint:recommended", 17 | "env": { 18 | "node": true, 19 | "es6": true 20 | } 21 | }, 22 | "lint-staged": { 23 | "*.js": [ 24 | "npm run lint", 25 | "prettier --single-quote --write", 26 | "git add" 27 | ] 28 | }, 29 | "license": "MIT", 30 | "devDependencies": { 31 | "eslint": "4.12.1", 32 | "expect.js": "0.3.1", 33 | "husky": "0.14.3", 34 | "lint-staged": "5.0.0", 35 | "mocha": "4.0.1" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /node_modules/supports-color/browser.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = { 3 | stdout: false, 4 | stderr: false 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/supports-color/license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /node_modules/supports-color/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "supports-color", 3 | "version": "5.5.0", 4 | "description": "Detect whether a terminal supports color", 5 | "license": "MIT", 6 | "repository": "chalk/supports-color", 7 | "author": { 8 | "name": "Sindre Sorhus", 9 | "email": "sindresorhus@gmail.com", 10 | "url": "sindresorhus.com" 11 | }, 12 | "engines": { 13 | "node": ">=4" 14 | }, 15 | "scripts": { 16 | "test": "xo && ava" 17 | }, 18 | "files": [ 19 | "index.js", 20 | "browser.js" 21 | ], 22 | "keywords": [ 23 | "color", 24 | "colour", 25 | "colors", 26 | "terminal", 27 | "console", 28 | "cli", 29 | "ansi", 30 | "styles", 31 | "tty", 32 | "rgb", 33 | "256", 34 | "shell", 35 | "xterm", 36 | "command-line", 37 | "support", 38 | "supports", 39 | "capability", 40 | "detect", 41 | "truecolor", 42 | "16m" 43 | ], 44 | "dependencies": { 45 | "has-flag": "^3.0.0" 46 | }, 47 | "devDependencies": { 48 | "ava": "^0.25.0", 49 | "import-fresh": "^2.0.0", 50 | "xo": "^0.20.0" 51 | }, 52 | "browser": "browser.js" 53 | } 54 | -------------------------------------------------------------------------------- /node_modules/to-fast-properties/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | let fastProto = null; 4 | 5 | // Creates an object with permanently fast properties in V8. See Toon Verwaest's 6 | // post https://medium.com/@tverwaes/setting-up-prototypes-in-v8-ec9c9491dfe2#5f62 7 | // for more details. Use %HasFastProperties(object) and the Node.js flag 8 | // --allow-natives-syntax to check whether an object has fast properties. 9 | function FastObject(o) { 10 | // A prototype object will have "fast properties" enabled once it is checked 11 | // against the inline property cache of a function, e.g. fastProto.property: 12 | // https://github.com/v8/v8/blob/6.0.122/test/mjsunit/fast-prototype.js#L48-L63 13 | if (fastProto !== null && typeof fastProto.property) { 14 | const result = fastProto; 15 | fastProto = FastObject.prototype = null; 16 | return result; 17 | } 18 | fastProto = FastObject.prototype = o == null ? Object.create(null) : o; 19 | return new FastObject; 20 | } 21 | 22 | // Initialize the inline property cache of FastObject 23 | FastObject(); 24 | 25 | module.exports = function toFastproperties(o) { 26 | return FastObject(o); 27 | }; 28 | -------------------------------------------------------------------------------- /node_modules/to-fast-properties/license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2014 Petka Antonov 4 | 2015 Sindre Sorhus 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 7 | 8 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 9 | 10 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 11 | -------------------------------------------------------------------------------- /node_modules/to-fast-properties/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "to-fast-properties", 3 | "version": "2.0.0", 4 | "description": "Force V8 to use fast properties for an object", 5 | "license": "MIT", 6 | "repository": "sindresorhus/to-fast-properties", 7 | "author": { 8 | "name": "Sindre Sorhus", 9 | "email": "sindresorhus@gmail.com", 10 | "url": "sindresorhus.com" 11 | }, 12 | "engines": { 13 | "node": ">=4" 14 | }, 15 | "scripts": { 16 | "test": "node --allow-natives-syntax test.js" 17 | }, 18 | "files": [ 19 | "index.js" 20 | ], 21 | "keywords": [ 22 | "object", 23 | "obj", 24 | "properties", 25 | "props", 26 | "v8", 27 | "optimize", 28 | "fast", 29 | "convert", 30 | "mode" 31 | ], 32 | "devDependencies": { 33 | "ava": "0.0.4" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /node_modules/to-fast-properties/readme.md: -------------------------------------------------------------------------------- 1 | # to-fast-properties [![Build Status](https://travis-ci.org/sindresorhus/to-fast-properties.svg?branch=master)](https://travis-ci.org/sindresorhus/to-fast-properties) 2 | 3 | > Force V8 to use fast properties for an object 4 | 5 | [Read more.](http://stackoverflow.com/questions/24987896/) 6 | 7 | Use `%HasFastProperties(object)` and `--allow-natives-syntax` to check whether an object already has fast properties. 8 | 9 | 10 | ## Install 11 | 12 | ``` 13 | $ npm install --save to-fast-properties 14 | ``` 15 | 16 | 17 | ## Usage 18 | 19 | ```js 20 | const toFastProperties = require('to-fast-properties'); 21 | 22 | const obj = { 23 | foo: true, 24 | bar: true 25 | }; 26 | 27 | delete obj.foo; 28 | // `obj` now has slow properties 29 | 30 | toFastProperties(obj); 31 | // `obj` now has fast properties 32 | ``` 33 | 34 | 35 | ## License 36 | 37 | MIT © Petka Antonov, John-David Dalton, Sindre Sorhus 38 | --------------------------------------------------------------------------------