diff --git a/node_modules/@babel/plugin-transform-member-expression-literals/package.json b/node_modules/@babel/plugin-transform-member-expression-literals/package.json new file mode 100644 index 0000000000000000000000000000000000000000..ed280e62dbff154379395cd1a2a95a45c94bc518 --- /dev/null +++ b/node_modules/@babel/plugin-transform-member-expression-literals/package.json @@ -0,0 +1,34 @@ +{ + "name": "@babel/plugin-transform-member-expression-literals", + "version": "7.29.7", + "description": "Ensure that reserved words are quoted in property accesses", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-member-expression-literals" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-member-expression-literals", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-modules-amd/LICENSE b/node_modules/@babel/plugin-transform-modules-amd/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-amd/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-modules-amd/README.md b/node_modules/@babel/plugin-transform-modules-amd/README.md new file mode 100644 index 0000000000000000000000000000000000000000..fba7f62dd0204aebdb33e77d21d15de1b9888438 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-amd/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-modules-amd + +> This plugin transforms ES2015 modules to AMD + +See our website [@babel/plugin-transform-modules-amd](https://babeljs.io/docs/babel-plugin-transform-modules-amd) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-modules-amd +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-modules-amd --dev +``` diff --git a/node_modules/@babel/plugin-transform-modules-amd/lib/index.js b/node_modules/@babel/plugin-transform-modules-amd/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..e7db686c57f3e35536ea92ea0b7ab7ac9f6be6a9 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-amd/lib/index.js @@ -0,0 +1,144 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _helperModuleTransforms = require("@babel/helper-module-transforms"); +var _core = require("@babel/core"); +const buildWrapper = _core.template.statement(` + define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) { + }) +`); +const buildAnonymousWrapper = _core.template.statement(` + define(["require"], function(REQUIRE) { + }) +`); +function injectWrapper(path, wrapper) { + const { + body, + directives + } = path.node; + path.node.directives = []; + path.node.body = []; + const amdFactoryCall = path.pushContainer("body", wrapper)[0].get("expression"); + const amdFactoryCallArgs = amdFactoryCall.get("arguments"); + const amdFactory = amdFactoryCallArgs[amdFactoryCallArgs.length - 1].get("body"); + amdFactory.pushContainer("directives", directives); + amdFactory.pushContainer("body", body); +} +var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2; + api.assertVersion(7); + const { + allowTopLevelThis, + strict, + strictMode, + importInterop, + noInterop + } = options; + const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : options.loose; + const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : options.loose; + return { + name: "transform-modules-amd", + pre() { + this.file.set("@babel/plugin-transform-modules-*", "amd"); + }, + visitor: { + ["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path, state) { + if (!this.file.has("@babel/plugin-proposal-dynamic-import")) return; + if (path.isCallExpression() && !path.get("callee").isImport()) return; + let { + requireId, + resolveId, + rejectId + } = state; + if (!requireId) { + requireId = path.scope.generateUidIdentifier("require"); + state.requireId = requireId; + } + if (!resolveId || !rejectId) { + resolveId = path.scope.generateUidIdentifier("resolve"); + rejectId = path.scope.generateUidIdentifier("reject"); + state.resolveId = resolveId; + state.rejectId = rejectId; + } + let result = _core.types.identifier("imported"); + if (!noInterop) { + result = (0, _helperModuleTransforms.wrapInterop)(this.file.path, result, "namespace"); + } + path.replaceWith((0, _helperModuleTransforms.buildDynamicImport)(path.node, false, false, specifier => _core.template.expression.ast` + new Promise((${resolveId}, ${rejectId}) => + ${requireId}( + [${specifier}], + imported => ${_core.types.cloneNode(resolveId)}(${result}), + ${_core.types.cloneNode(rejectId)} + ) + ) + `)); + }, + Program: { + exit(path, { + requireId + }) { + if (!(0, _helperModuleTransforms.isModule)(path)) { + if (requireId) { + injectWrapper(path, buildAnonymousWrapper({ + REQUIRE: _core.types.cloneNode(requireId) + })); + } + return; + } + const amdArgs = []; + const importNames = []; + if (requireId) { + amdArgs.push(_core.types.stringLiteral("require")); + importNames.push(_core.types.cloneNode(requireId)); + } + let moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); + if (moduleName) moduleName = _core.types.stringLiteral(moduleName); + const { + meta, + headers + } = (0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path, { + enumerableModuleMeta, + constantReexports, + strict, + strictMode, + allowTopLevelThis, + importInterop, + noInterop, + filename: this.file.opts.filename + }); + if ((0, _helperModuleTransforms.hasExports)(meta)) { + amdArgs.push(_core.types.stringLiteral("exports")); + importNames.push(_core.types.identifier(meta.exportName)); + } + for (const [source, metadata] of meta.source) { + amdArgs.push(_core.types.stringLiteral(source)); + importNames.push(_core.types.identifier(metadata.name)); + if (!(0, _helperModuleTransforms.isSideEffectImport)(metadata)) { + const interop = (0, _helperModuleTransforms.wrapInterop)(path, _core.types.identifier(metadata.name), metadata.interop); + if (interop) { + const header = _core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.identifier(metadata.name), interop)); + header.loc = metadata.loc; + headers.push(header); + } + } + headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports)); + } + (0, _helperModuleTransforms.ensureStatementsHoisted)(headers); + path.unshiftContainer("body", headers); + injectWrapper(path, buildWrapper({ + MODULE_NAME: moduleName, + AMD_ARGUMENTS: _core.types.arrayExpression(amdArgs), + IMPORT_NAMES: importNames + })); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-modules-amd/lib/index.js.map b/node_modules/@babel/plugin-transform-modules-amd/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..e7cdf54b9a1f79a22ff8678fed8151acc920837f --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-amd/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_helperModuleTransforms","_core","buildWrapper","template","statement","buildAnonymousWrapper","injectWrapper","path","wrapper","body","directives","node","amdFactoryCall","pushContainer","get","amdFactoryCallArgs","amdFactory","length","_default","exports","default","declare","api","options","_api$assumption","_api$assumption2","assertVersion","allowTopLevelThis","strict","strictMode","importInterop","noInterop","constantReexports","assumption","loose","enumerableModuleMeta","name","pre","file","set","visitor","types","importExpression","state","has","isCallExpression","isImport","requireId","resolveId","rejectId","scope","generateUidIdentifier","result","t","identifier","wrapInterop","replaceWith","buildDynamicImport","specifier","expression","ast","cloneNode","Program","exit","isModule","REQUIRE","amdArgs","importNames","push","stringLiteral","moduleName","getModuleName","opts","meta","headers","rewriteModuleStatementsAndPrepareHeader","filename","hasExports","exportName","source","metadata","isSideEffectImport","interop","header","expressionStatement","assignmentExpression","loc","buildNamespaceInitStatements","ensureStatementsHoisted","unshiftContainer","MODULE_NAME","AMD_ARGUMENTS","arrayExpression","IMPORT_NAMES"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport {\n buildDynamicImport,\n isModule,\n rewriteModuleStatementsAndPrepareHeader,\n type RewriteModuleStatementsAndPrepareHeaderOptions,\n hasExports,\n isSideEffectImport,\n buildNamespaceInitStatements,\n ensureStatementsHoisted,\n wrapInterop,\n getModuleName,\n} from \"@babel/helper-module-transforms\";\nimport { template, types as t } from \"@babel/core\";\nimport type { PluginOptions } from \"@babel/helper-module-transforms\";\nimport type { NodePath, PluginPass } from \"@babel/core\";\n\nconst buildWrapper = template.statement(`\n define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) {\n })\n`);\n\nconst buildAnonymousWrapper = template.statement(`\n define([\"require\"], function(REQUIRE) {\n })\n`);\n\nfunction injectWrapper(\n path: NodePath,\n wrapper: t.ExpressionStatement,\n) {\n const { body, directives } = path.node;\n path.node.directives = [];\n path.node.body = [];\n const amdFactoryCall = path\n .pushContainer(\"body\", wrapper)[0]\n .get(\"expression\") as NodePath;\n const amdFactoryCallArgs = amdFactoryCall.get(\"arguments\");\n const amdFactory = (\n amdFactoryCallArgs[\n amdFactoryCallArgs.length - 1\n ] as NodePath\n ).get(\"body\");\n amdFactory.pushContainer(\"directives\", directives);\n amdFactory.pushContainer(\"body\", body);\n}\n\nexport interface Options extends PluginOptions {\n allowTopLevelThis?: boolean;\n importInterop?: RewriteModuleStatementsAndPrepareHeaderOptions[\"importInterop\"];\n loose?: boolean;\n noInterop?: boolean;\n strict?: boolean;\n strictMode?: boolean;\n}\n\ntype State = {\n requireId?: t.Identifier;\n resolveId?: t.Identifier;\n rejectId?: t.Identifier;\n};\n\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const { allowTopLevelThis, strict, strictMode, importInterop, noInterop } =\n options;\n\n const constantReexports =\n api.assumption(\"constantReexports\") ?? options.loose;\n const enumerableModuleMeta =\n api.assumption(\"enumerableModuleMeta\") ?? options.loose;\n\n return {\n name: \"transform-modules-amd\",\n\n pre() {\n this.file.set(\"@babel/plugin-transform-modules-*\", \"amd\");\n },\n\n visitor: {\n [\"CallExpression\" +\n (api.types.importExpression ? \"|ImportExpression\" : \"\")](\n this: State & PluginPass,\n path: NodePath,\n state: State,\n ) {\n if (!this.file.has(\"@babel/plugin-proposal-dynamic-import\")) return;\n if (path.isCallExpression() && !path.get(\"callee\").isImport()) return;\n\n let { requireId, resolveId, rejectId } = state;\n if (!requireId) {\n requireId = path.scope.generateUidIdentifier(\"require\");\n state.requireId = requireId;\n }\n if (!resolveId || !rejectId) {\n resolveId = path.scope.generateUidIdentifier(\"resolve\");\n rejectId = path.scope.generateUidIdentifier(\"reject\");\n state.resolveId = resolveId;\n state.rejectId = rejectId;\n }\n\n let result: t.Node = t.identifier(\"imported\");\n if (!noInterop) {\n result = wrapInterop(this.file.path, result, \"namespace\");\n }\n\n path.replaceWith(\n buildDynamicImport(\n path.node,\n false,\n false,\n specifier => template.expression.ast`\n new Promise((${resolveId}, ${rejectId}) =>\n ${requireId}(\n [${specifier}],\n imported => ${t.cloneNode(resolveId)}(${result}),\n ${t.cloneNode(rejectId)}\n )\n )\n `,\n ),\n );\n },\n Program: {\n exit(path, { requireId }) {\n if (!isModule(path)) {\n if (requireId) {\n injectWrapper(\n path,\n buildAnonymousWrapper({\n REQUIRE: t.cloneNode(requireId),\n }) as t.ExpressionStatement,\n );\n }\n return;\n }\n\n const amdArgs = [];\n const importNames = [];\n if (requireId) {\n amdArgs.push(t.stringLiteral(\"require\"));\n importNames.push(t.cloneNode(requireId));\n }\n\n let moduleName = getModuleName(this.file.opts, options);\n // @ts-expect-error todo(flow->ts): do not reuse variables\n if (moduleName) moduleName = t.stringLiteral(moduleName);\n\n const { meta, headers } = rewriteModuleStatementsAndPrepareHeader(\n path,\n {\n enumerableModuleMeta,\n constantReexports,\n strict,\n strictMode,\n allowTopLevelThis,\n importInterop,\n noInterop,\n filename: this.file.opts.filename,\n },\n );\n\n if (hasExports(meta)) {\n amdArgs.push(t.stringLiteral(\"exports\"));\n\n importNames.push(t.identifier(meta.exportName));\n }\n\n for (const [source, metadata] of meta.source) {\n amdArgs.push(t.stringLiteral(source));\n importNames.push(t.identifier(metadata.name));\n\n if (!isSideEffectImport(metadata)) {\n const interop = wrapInterop(\n path,\n t.identifier(metadata.name),\n metadata.interop,\n );\n if (interop) {\n const header = t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n t.identifier(metadata.name),\n interop,\n ),\n );\n header.loc = metadata.loc;\n headers.push(header);\n }\n }\n\n headers.push(\n ...buildNamespaceInitStatements(\n meta,\n metadata,\n constantReexports,\n ),\n );\n }\n\n ensureStatementsHoisted(headers);\n path.unshiftContainer(\"body\", headers);\n\n injectWrapper(\n path,\n buildWrapper({\n MODULE_NAME: moduleName,\n\n AMD_ARGUMENTS: t.arrayExpression(amdArgs),\n IMPORT_NAMES: importNames,\n }) as t.ExpressionStatement,\n );\n },\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AAYA,IAA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,CAACe,MAAM,CAAC;cACtB;YACF;YAEAT,OAAO,CAACN,IAAI,CACV,GAAG,IAAAmB,oDAA4B,EAC7Bd,IAAI,EACJO,QAAQ,EACRhD,iBACF,CACF,CAAC;UACH;UAEA,IAAAwD,+CAAuB,EAACd,OAAO,CAAC;UAChCnE,IAAI,CAACkF,gBAAgB,CAAC,MAAM,EAAEf,OAAO,CAAC;UAEtCpE,aAAa,CACXC,IAAI,EACJL,YAAY,CAAC;YACXwF,WAAW,EAAEpB,UAAU;YAEvBqB,aAAa,EAAEtC,WAAC,CAACuC,eAAe,CAAC1B,OAAO,CAAC;YACzC2B,YAAY,EAAE1B;UAChB,CAAC,CACH,CAAC;QACH;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-modules-amd/package.json b/node_modules/@babel/plugin-transform-modules-amd/package.json new file mode 100644 index 0000000000000000000000000000000000000000..b9512c531a3f7ffbd9d3a030b0a429a056ccff43 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-amd/package.json @@ -0,0 +1,36 @@ +{ + "name": "@babel/plugin-transform-modules-amd", + "version": "7.29.7", + "description": "This plugin transforms ES2015 modules to AMD", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-modules-amd" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-modules-amd", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "dependencies": { + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "keywords": [ + "babel-plugin" + ], + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/plugin-external-helpers": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/LICENSE b/node_modules/@babel/plugin-transform-modules-commonjs/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-commonjs/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/README.md b/node_modules/@babel/plugin-transform-modules-commonjs/README.md new file mode 100644 index 0000000000000000000000000000000000000000..98145c79e331e39559144a03973846c6b8ce4899 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-commonjs/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-modules-commonjs + +> This plugin transforms ES2015 modules to CommonJS + +See our website [@babel/plugin-transform-modules-commonjs](https://babeljs.io/docs/babel-plugin-transform-modules-commonjs) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-modules-commonjs +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-modules-commonjs --dev +``` diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js b/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js new file mode 100644 index 0000000000000000000000000000000000000000..ac6c9ecd963f953102b9520ef9a7e6d80b84cea6 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js @@ -0,0 +1,16 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.transformDynamicImport = transformDynamicImport; +var _core = require("@babel/core"); +var _helperModuleTransforms = require("@babel/helper-module-transforms"); +const requireNoInterop = source => _core.template.expression.ast`require(${source})`; +const requireInterop = (source, file) => _core.types.callExpression(file.addHelper("interopRequireWildcard"), [requireNoInterop(source)]); +function transformDynamicImport(path, noInterop, file) { + const buildRequire = noInterop ? requireNoInterop : requireInterop; + path.replaceWith((0, _helperModuleTransforms.buildDynamicImport)(path.node, true, false, specifier => buildRequire(specifier, file))); +} + +//# sourceMappingURL=dynamic-import.js.map diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js.map b/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js.map new file mode 100644 index 0000000000000000000000000000000000000000..565af1faf4a3f0451fc2b9f917024635baeab63c --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_core","require","_helperModuleTransforms","requireNoInterop","source","template","expression","ast","requireInterop","file","t","callExpression","addHelper","transformDynamicImport","path","noInterop","buildRequire","replaceWith","buildDynamicImport","node","specifier"],"sources":["../src/dynamic-import.ts"],"sourcesContent":["// Heavily inspired by\n// https://github.com/airbnb/babel-plugin-dynamic-import-node/blob/master/src/utils.js\n\nimport type { File, NodePath } from \"@babel/core\";\nimport { types as t, template } from \"@babel/core\";\nimport { buildDynamicImport } from \"@babel/helper-module-transforms\";\n\nconst requireNoInterop = (source: t.Expression) =>\n template.expression.ast`require(${source})`;\n\nconst requireInterop = (source: t.Expression, file: File) =>\n t.callExpression(file.addHelper(\"interopRequireWildcard\"), [\n requireNoInterop(source),\n ]);\n\nexport function transformDynamicImport(\n path: NodePath,\n noInterop: boolean,\n file: File,\n) {\n const buildRequire = noInterop ? requireNoInterop : requireInterop;\n\n path.replaceWith(\n buildDynamicImport(path.node, true, false, specifier =>\n buildRequire(specifier, file),\n ),\n );\n}\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AAEA,MAAME,gBAAgB,GAAIC,MAAoB,IAC5CC,cAAQ,CAACC,UAAU,CAACC,GAAG,WAAWH,MAAM,GAAG;AAE7C,MAAMI,cAAc,GAAGA,CAACJ,MAAoB,EAAEK,IAAU,KACtDC,WAAC,CAACC,cAAc,CAACF,IAAI,CAACG,SAAS,CAAC,wBAAwB,CAAC,EAAE,CACzDT,gBAAgB,CAACC,MAAM,CAAC,CACzB,CAAC;AAEG,SAASS,sBAAsBA,CACpCC,IAAqD,EACrDC,SAAkB,EAClBN,IAAU,EACV;EACA,MAAMO,YAAY,GAAGD,SAAS,GAAGZ,gBAAgB,GAAGK,cAAc;EAElEM,IAAI,CAACG,WAAW,CACd,IAAAC,0CAAkB,EAACJ,IAAI,CAACK,IAAI,EAAE,IAAI,EAAE,KAAK,EAAEC,SAAS,IAClDJ,YAAY,CAACI,SAAS,EAAEX,IAAI,CAC9B,CACF,CAAC;AACH","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js b/node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js new file mode 100644 index 0000000000000000000000000000000000000000..af92a6507730c6213c887bf3e3502da47b176268 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.defineCommonJSHook = defineCommonJSHook; +exports.makeInvokers = makeInvokers; +const commonJSHooksKey = "@babel/plugin-transform-modules-commonjs/customWrapperPlugin"; +function defineCommonJSHook(file, hook) { + let hooks = file.get(commonJSHooksKey); + if (!hooks) file.set(commonJSHooksKey, hooks = []); + hooks.push(hook); +} +function findMap(arr, cb) { + if (arr) { + for (const el of arr) { + const res = cb(el); + if (res != null) return res; + } + } +} +function makeInvokers(file) { + const hooks = file.get(commonJSHooksKey); + return { + getWrapperPayload(...args) { + return findMap(hooks, hook => hook.getWrapperPayload == null ? void 0 : hook.getWrapperPayload(...args)); + }, + wrapReference(...args) { + return findMap(hooks, hook => hook.wrapReference == null ? void 0 : hook.wrapReference(...args)); + }, + buildRequireWrapper(...args) { + return findMap(hooks, hook => hook.buildRequireWrapper == null ? void 0 : hook.buildRequireWrapper(...args)); + } + }; +} + +//# sourceMappingURL=hooks.js.map diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js.map b/node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js.map new file mode 100644 index 0000000000000000000000000000000000000000..2e44dbb414cdbe8c13374ee532fbe8ac3464594d --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js.map @@ -0,0 +1 @@ +{"version":3,"names":["commonJSHooksKey","defineCommonJSHook","file","hook","hooks","get","set","push","findMap","arr","cb","el","res","makeInvokers","getWrapperPayload","args","wrapReference","buildRequireWrapper"],"sources":["../src/hooks.ts"],"sourcesContent":["import type { types as t, File } from \"@babel/core\";\nimport type { isSideEffectImport } from \"@babel/helper-module-transforms\";\n\nconst commonJSHooksKey =\n \"@babel/plugin-transform-modules-commonjs/customWrapperPlugin\";\n\ntype SourceMetadata = Parameters[0];\n\n// A hook exposes a set of function that can customize how `require()` calls and\n// references to the imported bindings are handled. These functions can either\n// return a result, or return `null` to delegate to the next hook.\nexport interface CommonJSHook {\n name: string;\n version: string;\n wrapReference?(ref: t.Expression, payload: unknown): t.CallExpression | null;\n // Optionally wrap a `require` call. If this function returns `false`, the\n // `require` call is removed from the generated code.\n buildRequireWrapper?(\n name: string,\n init: t.Expression,\n payload: unknown,\n referenced: boolean,\n ): t.Statement | false | null;\n getWrapperPayload?(\n source: string,\n metadata: SourceMetadata,\n importNodes: t.Node[],\n ): string | null;\n}\n\nexport function defineCommonJSHook(file: File, hook: CommonJSHook) {\n let hooks = file.get(commonJSHooksKey);\n if (!hooks) file.set(commonJSHooksKey, (hooks = []));\n hooks.push(hook);\n}\n\nfunction findMap(arr: T[] | null, cb: (el: T) => U): U | null {\n if (arr) {\n for (const el of arr) {\n const res = cb(el);\n if (res != null) return res;\n }\n }\n}\n\nexport function makeInvokers(\n file: File,\n): Pick<\n CommonJSHook,\n \"wrapReference\" | \"getWrapperPayload\" | \"buildRequireWrapper\"\n> {\n const hooks: CommonJSHook[] | null = file.get(commonJSHooksKey);\n\n return {\n getWrapperPayload(...args) {\n return findMap(hooks, hook => hook.getWrapperPayload?.(...args));\n },\n wrapReference(...args) {\n return findMap(hooks, hook => hook.wrapReference?.(...args));\n },\n buildRequireWrapper(...args) {\n return findMap(hooks, hook => hook.buildRequireWrapper?.(...args));\n },\n };\n}\n"],"mappings":";;;;;;;AAGA,MAAMA,gBAAgB,GACpB,8DAA8D;AA0BzD,SAASC,kBAAkBA,CAACC,IAAU,EAAEC,IAAkB,EAAE;EACjE,IAAIC,KAAK,GAAGF,IAAI,CAACG,GAAG,CAACL,gBAAgB,CAAC;EACtC,IAAI,CAACI,KAAK,EAAEF,IAAI,CAACI,GAAG,CAACN,gBAAgB,EAAGI,KAAK,GAAG,EAAG,CAAC;EACpDA,KAAK,CAACG,IAAI,CAACJ,IAAI,CAAC;AAClB;AAEA,SAASK,OAAOA,CAAOC,GAAe,EAAEC,EAAgB,EAAY;EAClE,IAAID,GAAG,EAAE;IACP,KAAK,MAAME,EAAE,IAAIF,GAAG,EAAE;MACpB,MAAMG,GAAG,GAAGF,EAAE,CAACC,EAAE,CAAC;MAClB,IAAIC,GAAG,IAAI,IAAI,EAAE,OAAOA,GAAG;IAC7B;EACF;AACF;AAEO,SAASC,YAAYA,CAC1BX,IAAU,EAIV;EACA,MAAME,KAA4B,GAAGF,IAAI,CAACG,GAAG,CAACL,gBAAgB,CAAC;EAE/D,OAAO;IACLc,iBAAiBA,CAAC,GAAGC,IAAI,EAAE;MACzB,OAAOP,OAAO,CAACJ,KAAK,EAAED,IAAI,IAAIA,IAAI,CAACW,iBAAiB,oBAAtBX,IAAI,CAACW,iBAAiB,CAAG,GAAGC,IAAI,CAAC,CAAC;IAClE,CAAC;IACDC,aAAaA,CAAC,GAAGD,IAAI,EAAE;MACrB,OAAOP,OAAO,CAACJ,KAAK,EAAED,IAAI,IAAIA,IAAI,CAACa,aAAa,oBAAlBb,IAAI,CAACa,aAAa,CAAG,GAAGD,IAAI,CAAC,CAAC;IAC9D,CAAC;IACDE,mBAAmBA,CAAC,GAAGF,IAAI,EAAE;MAC3B,OAAOP,OAAO,CAACJ,KAAK,EAAED,IAAI,IAAIA,IAAI,CAACc,mBAAmB,oBAAxBd,IAAI,CAACc,mBAAmB,CAAG,GAAGF,IAAI,CAAC,CAAC;IACpE;EACF,CAAC;AACH","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js b/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..cc89d6ace2367311b4a5efdb09e3b7383f328519 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js @@ -0,0 +1,192 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +Object.defineProperty(exports, "defineCommonJSHook", { + enumerable: true, + get: function () { + return _hooks.defineCommonJSHook; + } +}); +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _helperModuleTransforms = require("@babel/helper-module-transforms"); +var _core = require("@babel/core"); +var _dynamicImport = require("./dynamic-import.js"); +var _lazy = require("./lazy.js"); +var _hooks = require("./hooks.js"); +var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2, _api$assumption3; + api.assertVersion(7); + const { + strictNamespace = false, + mjsStrictNamespace = strictNamespace, + allowTopLevelThis, + strict, + strictMode, + noInterop, + importInterop, + lazy = false, + allowCommonJSExports = true, + loose = false + } = options; + const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : loose; + const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : loose; + const noIncompleteNsImportDetection = (_api$assumption3 = api.assumption("noIncompleteNsImportDetection")) != null ? _api$assumption3 : false; + if (typeof lazy !== "boolean" && typeof lazy !== "function" && (!Array.isArray(lazy) || !lazy.every(item => typeof item === "string"))) { + throw new Error(`.lazy must be a boolean, array of strings, or a function`); + } + if (typeof strictNamespace !== "boolean") { + throw new Error(`.strictNamespace must be a boolean, or undefined`); + } + if (typeof mjsStrictNamespace !== "boolean") { + throw new Error(`.mjsStrictNamespace must be a boolean, or undefined`); + } + const getAssertion = localName => _core.template.expression.ast` + (function(){ + throw new Error( + "The CommonJS '" + "${localName}" + "' variable is not available in ES6 modules." + + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + + "Babel config for this file."); + })() + `; + const moduleExportsVisitor = { + ReferencedIdentifier(path) { + const localName = path.node.name; + if (localName !== "module" && localName !== "exports") return; + const localBinding = path.scope.getBinding(localName); + const rootBinding = this.scope.getBinding(localName); + if (rootBinding !== localBinding || path.parentPath.isObjectProperty({ + value: path.node + }) && path.parentPath.parentPath.isObjectPattern() || path.parentPath.isAssignmentExpression({ + left: path.node + }) || path.isAssignmentExpression({ + left: path.node + })) { + return; + } + path.replaceWith(getAssertion(localName)); + }, + UpdateExpression(path) { + const arg = path.get("argument"); + if (!arg.isIdentifier()) return; + const localName = arg.node.name; + if (localName !== "module" && localName !== "exports") return; + const localBinding = path.scope.getBinding(localName); + const rootBinding = this.scope.getBinding(localName); + if (rootBinding !== localBinding) return; + path.replaceWith(_core.types.assignmentExpression(path.node.operator[0] + "=", arg.node, getAssertion(localName))); + }, + AssignmentExpression(path) { + const left = path.get("left"); + if (left.isIdentifier()) { + const localName = left.node.name; + if (localName !== "module" && localName !== "exports") return; + const localBinding = path.scope.getBinding(localName); + const rootBinding = this.scope.getBinding(localName); + if (rootBinding !== localBinding) return; + const right = path.get("right"); + right.replaceWith(_core.types.sequenceExpression([right.node, getAssertion(localName)])); + } else if (left.isPattern()) { + const ids = left.getOuterBindingIdentifiers(); + const localName = Object.keys(ids).find(localName => { + if (localName !== "module" && localName !== "exports") return false; + return this.scope.getBinding(localName) === path.scope.getBinding(localName); + }); + if (localName) { + const right = path.get("right"); + right.replaceWith(_core.types.sequenceExpression([right.node, getAssertion(localName)])); + } + } + } + }; + return { + name: "transform-modules-commonjs", + pre() { + this.file.set("@babel/plugin-transform-modules-*", "commonjs"); + if (lazy) (0, _hooks.defineCommonJSHook)(this.file, (0, _lazy.lazyImportsHook)(lazy)); + }, + visitor: { + ["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path) { + if (!this.file.has("@babel/plugin-proposal-dynamic-import")) return; + if (path.isCallExpression() && !_core.types.isImport(path.node.callee)) return; + let { + scope + } = path; + do { + scope.rename("require"); + } while (scope = scope.parent); + (0, _dynamicImport.transformDynamicImport)(path, noInterop, this.file); + }, + Program: { + exit(path, state) { + if (!(0, _helperModuleTransforms.isModule)(path)) return; + path.scope.rename("exports"); + path.scope.rename("module"); + path.scope.rename("require"); + path.scope.rename("__filename"); + path.scope.rename("__dirname"); + if (!allowCommonJSExports) { + path.traverse(moduleExportsVisitor, { + scope: path.scope + }); + } + let moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); + if (moduleName) moduleName = _core.types.stringLiteral(moduleName); + const hooks = (0, _hooks.makeInvokers)(this.file); + const { + meta, + headers + } = (0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path, { + exportName: "exports", + constantReexports, + enumerableModuleMeta, + strict, + strictMode, + allowTopLevelThis, + noInterop, + importInterop, + wrapReference: hooks.wrapReference, + getWrapperPayload: hooks.getWrapperPayload, + esNamespaceOnly: typeof state.filename === "string" && state.filename.endsWith(".mjs") ? mjsStrictNamespace : strictNamespace, + noIncompleteNsImportDetection, + filename: this.file.opts.filename + }); + for (const [source, metadata] of meta.source) { + const loadExpr = _core.types.callExpression(_core.types.identifier("require"), [_core.types.stringLiteral(source)]); + let header; + if ((0, _helperModuleTransforms.isSideEffectImport)(metadata)) { + if (lazy && metadata.wrap === "function") { + throw new Error("Assertion failure"); + } + header = _core.types.expressionStatement(loadExpr); + } else { + const init = (0, _helperModuleTransforms.wrapInterop)(path, loadExpr, metadata.interop) || loadExpr; + if (metadata.wrap) { + const res = hooks.buildRequireWrapper(metadata.name, init, metadata.wrap, metadata.referenced); + if (res === false) continue;else header = res; + } + header != null ? header : header = _core.template.statement.ast` + var ${metadata.name} = ${init}; + `; + } + header.loc = metadata.loc; + headers.push(header); + headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports, hooks.wrapReference)); + } + (0, _helperModuleTransforms.ensureStatementsHoisted)(headers); + path.unshiftContainer("body", headers); + path.get("body").forEach(path => { + if (!headers.includes(path.node)) return; + if (path.isVariableDeclaration()) { + path.scope.registerDeclaration(path); + } + }); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js.map b/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..9a20075de36608a0a4c588760efaee8c8a83e595 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_helperModuleTransforms","_core","_dynamicImport","_lazy","_hooks","_default","exports","default","declare","api","options","_api$assumption","_api$assumption2","_api$assumption3","assertVersion","strictNamespace","mjsStrictNamespace","allowTopLevelThis","strict","strictMode","noInterop","importInterop","lazy","allowCommonJSExports","loose","constantReexports","assumption","enumerableModuleMeta","noIncompleteNsImportDetection","Array","isArray","every","item","Error","getAssertion","localName","template","expression","ast","moduleExportsVisitor","ReferencedIdentifier","path","node","name","localBinding","scope","getBinding","rootBinding","parentPath","isObjectProperty","value","isObjectPattern","isAssignmentExpression","left","replaceWith","UpdateExpression","arg","get","isIdentifier","t","assignmentExpression","operator","AssignmentExpression","right","sequenceExpression","isPattern","ids","getOuterBindingIdentifiers","Object","keys","find","pre","file","set","defineCommonJSHook","lazyImportsHook","visitor","types","importExpression","has","isCallExpression","isImport","callee","rename","parent","transformDynamicImport","Program","exit","state","isModule","traverse","moduleName","getModuleName","opts","stringLiteral","hooks","makeInvokers","meta","headers","rewriteModuleStatementsAndPrepareHeader","exportName","wrapReference","getWrapperPayload","esNamespaceOnly","filename","endsWith","source","metadata","loadExpr","callExpression","identifier","header","isSideEffectImport","wrap","expressionStatement","init","wrapInterop","interop","res","buildRequireWrapper","referenced","statement","loc","push","buildNamespaceInitStatements","ensureStatementsHoisted","unshiftContainer","forEach","includes","isVariableDeclaration","registerDeclaration"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport {\n isModule,\n rewriteModuleStatementsAndPrepareHeader,\n type RewriteModuleStatementsAndPrepareHeaderOptions,\n isSideEffectImport,\n buildNamespaceInitStatements,\n ensureStatementsHoisted,\n wrapInterop,\n getModuleName,\n} from \"@babel/helper-module-transforms\";\nimport { template, types as t } from \"@babel/core\";\nimport type { PluginPass, Visitor, Scope, NodePath } from \"@babel/core\";\nimport type { PluginOptions } from \"@babel/helper-module-transforms\";\n\nimport { transformDynamicImport } from \"./dynamic-import.ts\";\nimport { lazyImportsHook } from \"./lazy.ts\";\n\nimport { defineCommonJSHook, makeInvokers } from \"./hooks.ts\";\nexport { defineCommonJSHook };\n\nexport interface Options extends PluginOptions {\n allowCommonJSExports?: boolean;\n allowTopLevelThis?: boolean;\n importInterop?: RewriteModuleStatementsAndPrepareHeaderOptions[\"importInterop\"];\n lazy?: RewriteModuleStatementsAndPrepareHeaderOptions[\"lazy\"];\n loose?: boolean;\n mjsStrictNamespace?: boolean;\n noInterop?: boolean;\n strict?: boolean;\n strictMode?: boolean;\n strictNamespace?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const {\n // 'true' for imports to strictly have .default, instead of having\n // destructuring-like behavior for their properties. This matches the behavior\n // of the initial Node.js (v12) behavior when importing a CommonJS without\n // the __esMoule property.\n // .strictNamespace is for non-mjs files, mjsStrictNamespace if for mjs files.\n strictNamespace = false,\n mjsStrictNamespace = strictNamespace,\n\n allowTopLevelThis,\n strict,\n strictMode,\n noInterop,\n importInterop,\n lazy = false,\n // Defaulting to 'true' for now. May change before 7.x major.\n allowCommonJSExports = true,\n loose = false,\n } = options;\n\n const constantReexports = api.assumption(\"constantReexports\") ?? loose;\n const enumerableModuleMeta = api.assumption(\"enumerableModuleMeta\") ?? loose;\n const noIncompleteNsImportDetection =\n api.assumption(\"noIncompleteNsImportDetection\") ?? false;\n\n if (\n typeof lazy !== \"boolean\" &&\n typeof lazy !== \"function\" &&\n (!Array.isArray(lazy) || !lazy.every(item => typeof item === \"string\"))\n ) {\n throw new Error(`.lazy must be a boolean, array of strings, or a function`);\n }\n\n if (typeof strictNamespace !== \"boolean\") {\n throw new Error(`.strictNamespace must be a boolean, or undefined`);\n }\n if (typeof mjsStrictNamespace !== \"boolean\") {\n throw new Error(`.mjsStrictNamespace must be a boolean, or undefined`);\n }\n\n const getAssertion = (localName: string) => template.expression.ast`\n (function(){\n throw new Error(\n \"The CommonJS '\" + \"${localName}\" + \"' variable is not available in ES6 modules.\" +\n \"Consider setting setting sourceType:script or sourceType:unambiguous in your \" +\n \"Babel config for this file.\");\n })()\n `;\n\n const moduleExportsVisitor: Visitor<{ scope: Scope }> = {\n ReferencedIdentifier(path) {\n const localName = path.node.name;\n if (localName !== \"module\" && localName !== \"exports\") return;\n\n const localBinding = path.scope.getBinding(localName);\n const rootBinding = this.scope.getBinding(localName);\n\n if (\n // redeclared in this scope\n rootBinding !== localBinding ||\n (path.parentPath.isObjectProperty({ value: path.node }) &&\n path.parentPath.parentPath.isObjectPattern()) ||\n path.parentPath.isAssignmentExpression({ left: path.node }) ||\n path.isAssignmentExpression({ left: path.node })\n ) {\n return;\n }\n\n path.replaceWith(getAssertion(localName));\n },\n\n UpdateExpression(path) {\n const arg = path.get(\"argument\");\n if (!arg.isIdentifier()) return;\n const localName = arg.node.name;\n if (localName !== \"module\" && localName !== \"exports\") return;\n\n const localBinding = path.scope.getBinding(localName);\n const rootBinding = this.scope.getBinding(localName);\n\n // redeclared in this scope\n if (rootBinding !== localBinding) return;\n\n path.replaceWith(\n t.assignmentExpression(\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n (path.node.operator[0] + \"=\") as t.AssignmentExpression[\"operator\"],\n arg.node,\n getAssertion(localName),\n ),\n );\n },\n\n AssignmentExpression(path) {\n const left = path.get(\"left\");\n if (left.isIdentifier()) {\n const localName = left.node.name;\n if (localName !== \"module\" && localName !== \"exports\") return;\n\n const localBinding = path.scope.getBinding(localName);\n const rootBinding = this.scope.getBinding(localName);\n\n // redeclared in this scope\n if (rootBinding !== localBinding) return;\n\n const right = path.get(\"right\");\n right.replaceWith(\n t.sequenceExpression([right.node, getAssertion(localName)]),\n );\n } else if (left.isPattern()) {\n const ids = left.getOuterBindingIdentifiers();\n const localName = Object.keys(ids).find(localName => {\n if (localName !== \"module\" && localName !== \"exports\") return false;\n\n return (\n this.scope.getBinding(localName) ===\n path.scope.getBinding(localName)\n );\n });\n\n if (localName) {\n const right = path.get(\"right\");\n right.replaceWith(\n t.sequenceExpression([right.node, getAssertion(localName)]),\n );\n }\n }\n },\n };\n\n return {\n name: \"transform-modules-commonjs\",\n\n pre() {\n this.file.set(\"@babel/plugin-transform-modules-*\", \"commonjs\");\n\n if (lazy) defineCommonJSHook(this.file, lazyImportsHook(lazy));\n },\n\n visitor: {\n [\"CallExpression\" +\n (api.types.importExpression ? \"|ImportExpression\" : \"\")](\n this: PluginPass,\n path: NodePath,\n ) {\n if (!this.file.has(\"@babel/plugin-proposal-dynamic-import\")) return;\n if (path.isCallExpression() && !t.isImport(path.node.callee)) return;\n\n let { scope } = path;\n do {\n scope.rename(\"require\");\n } while ((scope = scope.parent));\n\n transformDynamicImport(path, noInterop, this.file);\n },\n\n Program: {\n exit(path, state) {\n if (!isModule(path)) return;\n\n // Rename the bindings auto-injected into the scope so there is no\n // risk of conflict between the bindings.\n path.scope.rename(\"exports\");\n path.scope.rename(\"module\");\n path.scope.rename(\"require\");\n path.scope.rename(\"__filename\");\n path.scope.rename(\"__dirname\");\n\n // Rewrite references to 'module' and 'exports' to throw exceptions.\n // These objects are specific to CommonJS and are not available in\n // real ES6 implementations.\n if (!allowCommonJSExports) {\n path.traverse(moduleExportsVisitor, {\n scope: path.scope,\n });\n }\n\n let moduleName = getModuleName(this.file.opts, options);\n // @ts-expect-error todo(flow->ts): do not reuse variables\n if (moduleName) moduleName = t.stringLiteral(moduleName);\n\n const hooks = makeInvokers(this.file);\n\n const { meta, headers } = rewriteModuleStatementsAndPrepareHeader(\n path,\n {\n exportName: \"exports\",\n constantReexports,\n enumerableModuleMeta,\n strict,\n strictMode,\n allowTopLevelThis,\n noInterop,\n importInterop,\n wrapReference: hooks.wrapReference,\n getWrapperPayload: hooks.getWrapperPayload,\n esNamespaceOnly:\n typeof state.filename === \"string\" &&\n state.filename.endsWith(\".mjs\")\n ? mjsStrictNamespace\n : strictNamespace,\n noIncompleteNsImportDetection,\n filename: this.file.opts.filename,\n },\n );\n\n for (const [source, metadata] of meta.source) {\n const loadExpr = t.callExpression(t.identifier(\"require\"), [\n t.stringLiteral(source),\n ]);\n\n let header: t.Statement;\n if (isSideEffectImport(metadata)) {\n if (lazy && metadata.wrap === \"function\") {\n throw new Error(\"Assertion failure\");\n }\n\n header = t.expressionStatement(loadExpr);\n } else {\n const init =\n wrapInterop(path, loadExpr, metadata.interop) || loadExpr;\n\n if (metadata.wrap) {\n const res = hooks.buildRequireWrapper(\n metadata.name,\n init,\n metadata.wrap,\n metadata.referenced,\n );\n if (res === false) continue;\n else header = res;\n }\n header ??= template.statement.ast`\n var ${metadata.name} = ${init};\n `;\n }\n header.loc = metadata.loc;\n\n headers.push(header);\n headers.push(\n ...buildNamespaceInitStatements(\n meta,\n metadata,\n constantReexports,\n hooks.wrapReference,\n ),\n );\n }\n\n ensureStatementsHoisted(headers);\n path.unshiftContainer(\"body\", headers);\n path.get(\"body\").forEach(path => {\n if (!headers.includes(path.node)) return;\n if (path.isVariableDeclaration()) {\n path.scope.registerDeclaration(path);\n }\n });\n },\n },\n },\n };\n});\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AAUA,IAAAE,KAAA,GAAAF,OAAA;AAIA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AAA8D,IAAAM,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAgB/C,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAEC,OAAgB,KAAK;EAAA,IAAAC,eAAA,EAAAC,gBAAA,EAAAC,gBAAA;EAChDJ,GAAG,CAACK,aAAa,CAAkB,CAAE,CAAC;EAEtC,MAAM;IAMJC,eAAe,GAAG,KAAK;IACvBC,kBAAkB,GAAGD,eAAe;IAEpCE,iBAAiB;IACjBC,MAAM;IACNC,UAAU;IACVC,SAAS;IACTC,aAAa;IACbC,IAAI,GAAG,KAAK;IAEZC,oBAAoB,GAAG,IAAI;IAC3BC,KAAK,GAAG;EACV,CAAC,GAAGd,OAAO;EAEX,MAAMe,iBAAiB,IAAAd,eAAA,GAAGF,GAAG,CAACiB,UAAU,CAAC,mBAAmB,CAAC,YAAAf,eAAA,GAAIa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I,CAACwF,qBAAqB,CAAC,CAAC,EAAE;cAChCxF,IAAI,CAACI,KAAK,CAACqF,mBAAmB,CAACzF,IAAI,CAAC;YACtC;UACF,CAAC,CAAC;QACJ;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js b/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js new file mode 100644 index 0000000000000000000000000000000000000000..a145e232759ffa6c2a21579fbd10e4ccf3f77d72 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.lazyImportsHook = void 0; +var _core = require("@babel/core"); +var _helperModuleTransforms = require("@babel/helper-module-transforms"); +const lazyImportsHook = lazy => ({ + name: `${"@babel/plugin-transform-modules-commonjs"}/lazy`, + version: "7.29.7", + getWrapperPayload(source, metadata) { + if ((0, _helperModuleTransforms.isSideEffectImport)(metadata) || metadata.reexportAll) { + return null; + } + if (lazy === true) { + return source.includes(".") ? null : "lazy/function"; + } + if (Array.isArray(lazy)) { + return !lazy.includes(source) ? null : "lazy/function"; + } + if (typeof lazy === "function") { + return lazy(source) ? "lazy/function" : null; + } + }, + buildRequireWrapper(name, init, payload, referenced) { + if (payload === "lazy/function") { + if (!referenced) return false; + return _core.template.statement.ast` + function ${name}() { + const data = ${init}; + ${name} = function(){ return data; }; + return data; + } + `; + } + }, + wrapReference(ref, payload) { + if (payload === "lazy/function") return _core.types.callExpression(ref, []); + } +}); +exports.lazyImportsHook = lazyImportsHook; + +//# sourceMappingURL=lazy.js.map diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js.map b/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js.map new file mode 100644 index 0000000000000000000000000000000000000000..2ee40d66acfd2f4b11717fd79a3c4ff10b2c8c77 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_core","require","_helperModuleTransforms","lazyImportsHook","lazy","name","version","getWrapperPayload","source","metadata","isSideEffectImport","reexportAll","includes","Array","isArray","buildRequireWrapper","init","payload","referenced","template","statement","ast","wrapReference","ref","t","callExpression","exports"],"sources":["../src/lazy.ts"],"sourcesContent":["import { template, types as t } from \"@babel/core\";\nimport { isSideEffectImport } from \"@babel/helper-module-transforms\";\nimport type { CommonJSHook } from \"./hooks.ts\";\n\ntype Lazy = boolean | string[] | ((source: string) => boolean);\n\nexport const lazyImportsHook = (lazy: Lazy): CommonJSHook => ({\n name: `${PACKAGE_JSON.name}/lazy`,\n version: PACKAGE_JSON.version,\n getWrapperPayload(source, metadata) {\n if (isSideEffectImport(metadata) || metadata.reexportAll) {\n return null;\n }\n if (lazy === true) {\n // 'true' means that local relative files are eagerly loaded and\n // dependency modules are loaded lazily.\n return source.includes(\".\") ? null : \"lazy/function\";\n }\n if (Array.isArray(lazy)) {\n return !lazy.includes(source) ? null : \"lazy/function\";\n }\n if (typeof lazy === \"function\") {\n return lazy(source) ? \"lazy/function\" : null;\n }\n },\n buildRequireWrapper(name, init, payload, referenced) {\n if (payload === \"lazy/function\") {\n if (!referenced) return false;\n return template.statement.ast`\n function ${name}() {\n const data = ${init};\n ${name} = function(){ return data; };\n return data;\n }\n `;\n }\n },\n wrapReference(ref, payload) {\n if (payload === \"lazy/function\") return t.callExpression(ref, []);\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AAKO,MAAME,eAAe,GAAIC,IAAU,KAAoB;EAC5DC,IAAI,EAAE,oDAA2B;EACjCC,OAAO,UAAsB;EAC7BC,iBAAiBA,CAACC,MAAM,EAAEC,QAAQ,EAAE;IAClC,IAAI,IAAAC,0CAAkB,EAACD,QAAQ,CAAC,IAAIA,QAAQ,CAACE,WAAW,EAAE;MACxD,OAAO,IAAI;IACb;IACA,IAAIP,IAAI,KAAK,IAAI,EAAE;MAGjB,OAAOI,MAAM,CAACI,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,eAAe;IACtD;IACA,IAAIC,KAAK,CAACC,OAAO,CAACV,IAAI,CAAC,EAAE;MACvB,OAAO,CAACA,IAAI,CAACQ,QAAQ,CAACJ,MAAM,CAAC,GAAG,IAAI,GAAG,eAAe;IACxD;IACA,IAAI,OAAOJ,IAAI,KAAK,UAAU,EAAE;MAC9B,OAAOA,IAAI,CAACI,MAAM,CAAC,GAAG,eAAe,GAAG,IAAI;IAC9C;EACF,CAAC;EACDO,mBAAmBA,CAACV,IAAI,EAAEW,IAAI,EAAEC,OAAO,EAAEC,UAAU,EAAE;IACnD,IAAID,OAAO,KAAK,eAAe,EAAE;MAC/B,IAAI,CAACC,UAAU,EAAE,OAAO,KAAK;MAC7B,OAAOC,cAAQ,CAACC,SAAS,CAACC,GAAG;AACnC,mBAAmBhB,IAAI;AACvB,yBAAyBW,IAAI;AAC7B,YAAYX,IAAI;AAChB;AACA;AACA,OAAO;IACH;EACF,CAAC;EACDiB,aAAaA,CAACC,GAAG,EAAEN,OAAO,EAAE;IAC1B,IAAIA,OAAO,KAAK,eAAe,EAAE,OAAOO,WAAC,CAACC,cAAc,CAACF,GAAG,EAAE,EAAE,CAAC;EACnE;AACF,CAAC,CAAC;AAACG,OAAA,CAAAvB,eAAA,GAAAA,eAAA","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/package.json b/node_modules/@babel/plugin-transform-modules-commonjs/package.json new file mode 100644 index 0000000000000000000000000000000000000000..33c0e98a5f424b92107c6d63071f199adca1ae5e --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-commonjs/package.json @@ -0,0 +1,36 @@ +{ + "name": "@babel/plugin-transform-modules-commonjs", + "version": "7.29.7", + "description": "This plugin transforms ES2015 modules to CommonJS", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-modules-commonjs" + }, + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "dependencies": { + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "keywords": [ + "babel-plugin" + ], + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/plugin-external-helpers": "^7.29.7" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-modules-commonjs", + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-modules-systemjs/LICENSE b/node_modules/@babel/plugin-transform-modules-systemjs/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-systemjs/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-modules-systemjs/README.md b/node_modules/@babel/plugin-transform-modules-systemjs/README.md new file mode 100644 index 0000000000000000000000000000000000000000..cd4699f468abd6a4c6b3a556724c46a0a7196f2c --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-systemjs/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-modules-systemjs + +> This plugin transforms ES2015 modules to SystemJS + +See our website [@babel/plugin-transform-modules-systemjs](https://babeljs.io/docs/babel-plugin-transform-modules-systemjs) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-modules-systemjs +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-modules-systemjs --dev +``` diff --git a/node_modules/@babel/plugin-transform-modules-systemjs/lib/index.js b/node_modules/@babel/plugin-transform-modules-systemjs/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..24b26665c11a5c224366bbc4ed6ffa588eb3d83a --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-systemjs/lib/index.js @@ -0,0 +1,407 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +exports.getExportSpecifierName = getExportSpecifierName; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +var _helperModuleTransforms = require("@babel/helper-module-transforms"); +var _helperValidatorIdentifier = require("@babel/helper-validator-identifier"); +const buildTemplate = _core.template.statement(` + SYSTEM_REGISTER(MODULE_NAME, SOURCES, function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) { + "use strict"; + BEFORE_BODY; + return { + setters: SETTERS, + execute: EXECUTE, + }; + }); +`); +const buildExportAll = _core.template.statement(` + for (var KEY in TARGET) { + if (KEY !== "default" && KEY !== "__esModule") EXPORT_OBJ[KEY] = TARGET[KEY]; + } +`); +const MISSING_PLUGIN_WARNING = `\ +WARNING: Dynamic import() transformation must be enabled using the + @babel/plugin-transform-dynamic-import plugin. Babel 8 will + no longer transform import() without using that plugin. +`; +const MISSING_PLUGIN_ERROR = `\ +ERROR: Dynamic import() transformation must be enabled using the + @babel/plugin-transform-dynamic-import plugin. Babel 8 + no longer transforms import() without using that plugin. +`; +function getExportSpecifierName(node, stringSpecifiers) { + if (node.type === "Identifier") { + return node.name; + } else if (node.type === "StringLiteral") { + const stringValue = node.value; + if (!(0, _helperValidatorIdentifier.isIdentifierName)(stringValue)) { + stringSpecifiers.add(stringValue); + } + return stringValue; + } else { + throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${node.type}`); + } +} +const protoKey = "__proto__"; +function constructExportCall(path, exportIdent, exportNames, exportValues, exportStarTarget, stringSpecifiers) { + const statements = []; + if (!exportStarTarget) { + if (exportNames.length === 1) { + statements.push(_core.types.expressionStatement(_core.types.callExpression(exportIdent, [_core.types.stringLiteral(exportNames[0]), exportValues[0]]))); + } else { + const objectProperties = []; + for (let i = 0; i < exportNames.length; i++) { + const exportName = exportNames[i]; + const computed = exportName === protoKey; + const exportNameNode = stringSpecifiers.has(exportName) || computed ? _core.types.stringLiteral(exportName) : _core.types.identifier(exportName); + const exportValue = exportValues[i]; + objectProperties.push(_core.types.objectProperty(exportNameNode, exportValue, computed)); + } + statements.push(_core.types.expressionStatement(_core.types.callExpression(exportIdent, [_core.types.objectExpression(objectProperties)]))); + } + } else { + const exportObj = path.scope.generateUid("exportObj"); + statements.push(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(_core.types.identifier(exportObj), _core.types.objectExpression([_core.types.objectProperty(_core.types.identifier(protoKey), _core.types.nullLiteral())]))])); + statements.push(buildExportAll({ + KEY: path.scope.generateUidIdentifier("key"), + EXPORT_OBJ: _core.types.identifier(exportObj), + TARGET: exportStarTarget + })); + for (let i = 0; i < exportNames.length; i++) { + const exportName = exportNames[i]; + const computed = stringSpecifiers.has(exportName); + const exportNameNode = computed ? _core.types.stringLiteral(exportName) : _core.types.identifier(exportName); + const exportValue = exportValues[i]; + statements.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.memberExpression(_core.types.identifier(exportObj), exportNameNode, computed), exportValue))); + } + statements.push(_core.types.expressionStatement(_core.types.callExpression(exportIdent, [_core.types.identifier(exportObj)]))); + } + return statements; +} +var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion(7); + const { + systemGlobal = "System", + allowTopLevelThis = false + } = options; + const reassignmentVisited = new WeakSet(); + const reassignmentVisitor = { + "AssignmentExpression|UpdateExpression"(path) { + if (reassignmentVisited.has(path.node)) return; + reassignmentVisited.add(path.node); + const arg = path.isAssignmentExpression() ? path.get("left") : path.get("argument"); + if (arg.isObjectPattern() || arg.isArrayPattern()) { + const exprs = [path.node]; + for (const name of Object.keys(arg.getBindingIdentifiers())) { + if (this.scope.getBinding(name) !== path.scope.getBinding(name)) { + return; + } + const exportedNames = this.exports[name]; + if (!exportedNames) continue; + for (const exportedName of exportedNames) { + exprs.push(this.buildCall(exportedName, _core.types.identifier(name)).expression); + } + } + path.replaceWith(_core.types.sequenceExpression(exprs)); + return; + } + if (!arg.isIdentifier()) return; + const name = arg.node.name; + if (this.scope.getBinding(name) !== path.scope.getBinding(name)) return; + const exportedNames = this.exports[name]; + if (!exportedNames) return; + let node = path.node; + const isPostUpdateExpression = _core.types.isUpdateExpression(node, { + prefix: false + }); + if (isPostUpdateExpression) { + node = _core.types.binaryExpression(node.operator[0], _core.types.unaryExpression("+", _core.types.cloneNode(node.argument)), _core.types.numericLiteral(1)); + } + for (const exportedName of exportedNames) { + node = this.buildCall(exportedName, node).expression; + } + if (isPostUpdateExpression) { + node = _core.types.sequenceExpression([node, path.node]); + } + path.replaceWith(node); + } + }; + return { + name: "transform-modules-systemjs", + pre() { + this.file.set("@babel/plugin-transform-modules-*", "systemjs"); + }, + visitor: { + ["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path, state) { + if (path.isCallExpression() && !_core.types.isImport(path.node.callee)) return; + if (path.isCallExpression()) { + if (!this.file.has("@babel/plugin-proposal-dynamic-import")) { + console.warn(MISSING_PLUGIN_WARNING); + } + } else { + if (!this.file.has("@babel/plugin-proposal-dynamic-import")) { + throw new Error(MISSING_PLUGIN_ERROR); + } + } + path.replaceWith((0, _helperModuleTransforms.buildDynamicImport)(path.node, false, true, specifier => _core.types.callExpression(_core.types.memberExpression(_core.types.identifier(state.contextIdent), _core.types.identifier("import")), [specifier]))); + }, + MetaProperty(path, state) { + if (path.node.meta.name === "import" && path.node.property.name === "meta") { + path.replaceWith(_core.types.memberExpression(_core.types.identifier(state.contextIdent), _core.types.identifier("meta"))); + } + }, + ReferencedIdentifier(path, state) { + if (path.node.name === "__moduleName" && !path.scope.hasBinding("__moduleName")) { + path.replaceWith(_core.types.memberExpression(_core.types.identifier(state.contextIdent), _core.types.identifier("id"))); + } + }, + Program: { + enter(path, state) { + state.contextIdent = path.scope.generateUid("context"); + state.stringSpecifiers = new Set(); + if (!allowTopLevelThis) { + (0, _helperModuleTransforms.rewriteThis)(path); + } + }, + exit(path, state) { + var _path$scope, _path$scope$hoistVari; + const scope = path.scope; + const exportIdent = scope.generateUid("export"); + const { + contextIdent, + stringSpecifiers + } = state; + const exportMap = Object.create(null); + const modules = []; + const beforeBody = []; + const setters = []; + const sources = []; + const variableIds = []; + const removedPaths = []; + function addExportName(key, val) { + exportMap[key] = exportMap[key] || []; + exportMap[key].push(val); + } + function pushModule(source, key, specifiers) { + let module; + modules.forEach(function (m) { + if (m.key === source) { + module = m; + } + }); + if (!module) { + modules.push(module = { + key: source, + imports: [], + exports: [] + }); + } + module[key] = module[key].concat(specifiers); + } + function buildExportCall(name, val) { + return _core.types.expressionStatement(_core.types.callExpression(_core.types.identifier(exportIdent), [_core.types.stringLiteral(name), val])); + } + const exportNames = []; + const exportValues = []; + const body = path.get("body"); + for (const path of body) { + if (path.isFunctionDeclaration()) { + beforeBody.push(path.node); + removedPaths.push(path); + } else if (path.isClassDeclaration()) { + variableIds.push(_core.types.cloneNode(path.node.id)); + path.replaceWith(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(path.node.id), _core.types.toExpression(path.node)))); + } else if (path.isVariableDeclaration()) { + path.node.kind = "var"; + } else if (path.isImportDeclaration()) { + const source = path.node.source.value; + pushModule(source, "imports", path.node.specifiers); + for (const name of Object.keys(path.getBindingIdentifiers())) { + scope.removeBinding(name); + variableIds.push(_core.types.identifier(name)); + } + path.remove(); + } else if (path.isExportAllDeclaration()) { + pushModule(path.node.source.value, "exports", path.node); + path.remove(); + } else if (path.isExportDefaultDeclaration()) { + const declar = path.node.declaration; + if (_core.types.isClassDeclaration(declar)) { + const id = declar.id; + if (id) { + exportNames.push("default"); + exportValues.push(scope.buildUndefinedNode()); + variableIds.push(_core.types.cloneNode(id)); + addExportName(id.name, "default"); + path.replaceWith(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(id), _core.types.toExpression(declar)))); + } else { + exportNames.push("default"); + exportValues.push(_core.types.toExpression(declar)); + removedPaths.push(path); + } + } else if (_core.types.isFunctionDeclaration(declar)) { + const id = declar.id; + if (id) { + beforeBody.push(declar); + exportNames.push("default"); + exportValues.push(_core.types.cloneNode(id)); + addExportName(id.name, "default"); + } else { + exportNames.push("default"); + exportValues.push(_core.types.toExpression(declar)); + } + removedPaths.push(path); + } else { + path.replaceWith(buildExportCall("default", declar)); + } + } else if (path.isExportNamedDeclaration()) { + const declar = path.node.declaration; + if (declar) { + path.replaceWith(declar); + if (_core.types.isFunction(declar)) { + const name = declar.id.name; + addExportName(name, name); + beforeBody.push(declar); + exportNames.push(name); + exportValues.push(_core.types.cloneNode(declar.id)); + removedPaths.push(path); + } else if (_core.types.isClass(declar)) { + const name = declar.id.name; + exportNames.push(name); + exportValues.push(scope.buildUndefinedNode()); + variableIds.push(_core.types.cloneNode(declar.id)); + path.replaceWith(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(declar.id), _core.types.toExpression(declar)))); + addExportName(name, name); + } else { + if (_core.types.isVariableDeclaration(declar)) { + declar.kind = "var"; + } + for (const name of Object.keys(_core.types.getBindingIdentifiers(declar))) { + addExportName(name, name); + } + } + } else { + const specifiers = path.node.specifiers; + if (specifiers != null && specifiers.length) { + if (path.node.source) { + pushModule(path.node.source.value, "exports", specifiers); + path.remove(); + } else { + const nodes = []; + for (const specifier of specifiers) { + const { + local, + exported + } = specifier; + const binding = scope.getBinding(local.name); + const exportedName = getExportSpecifierName(exported, stringSpecifiers); + if (binding && _core.types.isFunctionDeclaration(binding.path.node)) { + exportNames.push(exportedName); + exportValues.push(_core.types.cloneNode(local)); + } else if (!binding) { + nodes.push(buildExportCall(exportedName, local)); + } + addExportName(local.name, exportedName); + } + path.replaceWithMultiple(nodes); + } + } else { + path.remove(); + } + } + } + } + modules.forEach(function (specifiers) { + const setterBody = []; + const target = scope.generateUid(specifiers.key); + for (let specifier of specifiers.imports) { + if (_core.types.isImportNamespaceSpecifier(specifier)) { + setterBody.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", specifier.local, _core.types.identifier(target)))); + } else if (_core.types.isImportDefaultSpecifier(specifier)) { + specifier = _core.types.importSpecifier(specifier.local, _core.types.identifier("default")); + } + if (_core.types.isImportSpecifier(specifier)) { + const { + imported + } = specifier; + setterBody.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", specifier.local, _core.types.memberExpression(_core.types.identifier(target), specifier.imported, imported.type === "StringLiteral")))); + } + } + if (specifiers.exports.length) { + const exportNames = []; + const exportValues = []; + let hasExportStar = false; + for (const node of specifiers.exports) { + if (_core.types.isExportAllDeclaration(node)) { + hasExportStar = true; + } else if (_core.types.isExportSpecifier(node)) { + const exportedName = getExportSpecifierName(node.exported, stringSpecifiers); + exportNames.push(exportedName); + exportValues.push(_core.types.memberExpression(_core.types.identifier(target), node.local, _core.types.isStringLiteral(node.local))); + } else {} + } + setterBody.push(...constructExportCall(path, _core.types.identifier(exportIdent), exportNames, exportValues, hasExportStar ? _core.types.identifier(target) : null, stringSpecifiers)); + } + sources.push(_core.types.stringLiteral(specifiers.key)); + setters.push(_core.types.functionExpression(null, [_core.types.identifier(target)], _core.types.blockStatement(setterBody))); + }); + let moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); + if (moduleName) moduleName = _core.types.stringLiteral(moduleName); + (_path$scope$hoistVari = (_path$scope = path.scope).hoistVariables) != null ? _path$scope$hoistVari : _path$scope.hoistVariables = require("@babel/traverse").Scope.prototype.hoistVariables; + path.scope.hoistVariables((id, hasInit) => { + variableIds.push(id); + if (!hasInit && id.name in exportMap) { + for (const exported of exportMap[id.name]) { + exportNames.push(exported); + exportValues.push(_core.types.buildUndefinedNode()); + } + } + }); + if (variableIds.length) { + beforeBody.unshift(_core.types.variableDeclaration("var", variableIds.map(id => _core.types.variableDeclarator(id)))); + } + if (exportNames.length) { + beforeBody.push(...constructExportCall(path, _core.types.identifier(exportIdent), exportNames, exportValues, null, stringSpecifiers)); + } + path.traverse(reassignmentVisitor, { + exports: exportMap, + buildCall: buildExportCall, + scope + }); + for (const path of removedPaths) { + path.remove(); + } + let hasTLA = false; + path.traverse({ + AwaitExpression(path) { + hasTLA = true; + path.stop(); + }, + Function(path) { + path.skip(); + }, + noScope: true + }); + path.node.body = [buildTemplate({ + SYSTEM_REGISTER: _core.types.memberExpression(_core.types.identifier(systemGlobal), _core.types.identifier("register")), + BEFORE_BODY: beforeBody, + MODULE_NAME: moduleName, + SETTERS: _core.types.arrayExpression(setters), + EXECUTE: _core.types.functionExpression(null, [], _core.types.blockStatement(path.node.body), false, hasTLA), + SOURCES: _core.types.arrayExpression(sources), + EXPORT_IDENTIFIER: _core.types.identifier(exportIdent), + CONTEXT_IDENTIFIER: _core.types.identifier(contextIdent) + })]; + path.requeue(path.get("body.0")); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-modules-systemjs/lib/index.js.map b/node_modules/@babel/plugin-transform-modules-systemjs/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..3ca3b4ad7eb69bf9a97f36368d876386310f8c23 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-systemjs/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","_helperModuleTransforms","_helperValidatorIdentifier","buildTemplate","template","statement","buildExportAll","MISSING_PLUGIN_WARNING","MISSING_PLUGIN_ERROR","getExportSpecifierName","node","stringSpecifiers","type","name","stringValue","value","isIdentifierName","add","Error","protoKey","constructExportCall","path","exportIdent","exportNames","exportValues","exportStarTarget","statements","length","push","t","expressionStatement","callExpression","stringLiteral","objectProperties","i","exportName","computed","exportNameNode","has","identifier","exportValue","objectProperty","objectExpression","exportObj","scope","generateUid","variableDeclaration","variableDeclarator","nullLiteral","KEY","generateUidIdentifier","EXPORT_OBJ","TARGET","assignmentExpression","memberExpression","_default","exports","default","declare","api","options","assertVersion","systemGlobal","allowTopLevelThis","reassignmentVisited","WeakSet","reassignmentVisitor","AssignmentExpression|UpdateExpression","arg","isAssignmentExpression","get","isObjectPattern","isArrayPattern","exprs","Object","keys","getBindingIdentifiers","getBinding","exportedNames","exportedName","buildCall","expression","replaceWith","sequenceExpression","isIdentifier","isPostUpdateExpression","isUpdateExpression","prefix","binaryExpression","operator","unaryExpression","cloneNode","argument","numericLiteral","pre","file","set","visitor","types","importExpression","state","isCallExpression","isImport","callee","console","warn","buildDynamicImport","specifier","contextIdent","MetaProperty","meta","property","ReferencedIdentifier","hasBinding","Program","enter","Set","rewriteThis","exit","_path$scope","_path$scope$hoistVari","exportMap","create","modules","beforeBody","setters","sources","variableIds","removedPaths","addExportName","key","val","pushModule","source","specifiers","module","forEach","m","imports","concat","buildExportCall","body","isFunctionDeclaration","isClassDeclaration","id","toExpression","isVariableDeclaration","kind","isImportDeclaration","removeBinding","remove","isExportAllDeclaration","isExportDefaultDeclaration","declar","declaration","buildUndefinedNode","isExportNamedDeclaration","isFunction","isClass","nodes","local","exported","binding","replaceWithMultiple","setterBody","target","isImportNamespaceSpecifier","isImportDefaultSpecifier","importSpecifier","isImportSpecifier","imported","hasExportStar","isExportSpecifier","isStringLiteral","functionExpression","blockStatement","moduleName","getModuleName","opts","hoistVariables","Scope","prototype","hasInit","unshift","map","traverse","hasTLA","AwaitExpression","stop","Function","skip","noScope","SYSTEM_REGISTER","BEFORE_BODY","MODULE_NAME","SETTERS","arrayExpression","EXECUTE","SOURCES","EXPORT_IDENTIFIER","CONTEXT_IDENTIFIER","requeue"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { template, types as t } from \"@babel/core\";\nimport type { PluginPass, NodePath, Scope, Visitor } from \"@babel/core\";\nimport {\n buildDynamicImport,\n getModuleName,\n rewriteThis,\n} from \"@babel/helper-module-transforms\";\nimport type { PluginOptions } from \"@babel/helper-module-transforms\";\nimport { isIdentifierName } from \"@babel/helper-validator-identifier\";\n\nconst buildTemplate = template.statement(`\n SYSTEM_REGISTER(MODULE_NAME, SOURCES, function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) {\n \"use strict\";\n BEFORE_BODY;\n return {\n setters: SETTERS,\n execute: EXECUTE,\n };\n });\n`);\n\nconst buildExportAll = template.statement(`\n for (var KEY in TARGET) {\n if (KEY !== \"default\" && KEY !== \"__esModule\") EXPORT_OBJ[KEY] = TARGET[KEY];\n }\n`);\n\nconst MISSING_PLUGIN_WARNING = `\\\nWARNING: Dynamic import() transformation must be enabled using the\n @babel/plugin-transform-dynamic-import plugin. Babel 8 will\n no longer transform import() without using that plugin.\n`;\n\nconst MISSING_PLUGIN_ERROR = `\\\nERROR: Dynamic import() transformation must be enabled using the\n @babel/plugin-transform-dynamic-import plugin. Babel 8\n no longer transforms import() without using that plugin.\n`;\n\n//todo: use getExportSpecifierName in `helper-module-transforms` when this library is refactored to NodePath usage.\n\nexport function getExportSpecifierName(\n node: t.Node,\n stringSpecifiers: Set,\n): string {\n if (node.type === \"Identifier\") {\n return node.name;\n } else if (node.type === \"StringLiteral\") {\n const stringValue = node.value;\n // add specifier value to `stringSpecifiers` only when it can not be converted to an identifier name\n // i.e In `import { \"foo\" as bar }`\n // we do not consider `\"foo\"` to be a `stringSpecifier` because we can treat it as\n // `import { foo as bar }`\n // This helps minimize the size of `stringSpecifiers` and reduce overhead of checking valid identifier names\n // when building transpiled code from metadata\n if (!isIdentifierName(stringValue)) {\n stringSpecifiers.add(stringValue);\n }\n return stringValue;\n } else {\n throw new Error(\n `Expected export specifier to be either Identifier or StringLiteral, got ${node.type}`,\n );\n }\n}\n\ntype PluginState = {\n contextIdent: string;\n // List of names that should only be printed as string literals.\n // i.e. `import { \"any unicode\" as foo } from \"some-module\"`\n // `stringSpecifiers` is Set(1) [\"any unicode\"]\n // In most cases `stringSpecifiers` is an empty Set\n stringSpecifiers: Set;\n};\n\ntype ModuleMetadata = {\n key: string;\n imports: any[];\n exports: any[];\n};\n\nconst protoKey = \"__proto__\";\n\nfunction constructExportCall(\n path: NodePath,\n exportIdent: t.Identifier,\n exportNames: string[],\n exportValues: t.Expression[],\n exportStarTarget: t.Identifier | null,\n stringSpecifiers: Set,\n) {\n const statements = [];\n if (!exportStarTarget) {\n if (exportNames.length === 1) {\n statements.push(\n t.expressionStatement(\n t.callExpression(exportIdent, [\n t.stringLiteral(exportNames[0]),\n exportValues[0],\n ]),\n ),\n );\n } else {\n const objectProperties = [];\n for (let i = 0; i < exportNames.length; i++) {\n const exportName = exportNames[i];\n const computed = exportName === protoKey;\n const exportNameNode =\n stringSpecifiers.has(exportName) || computed\n ? t.stringLiteral(exportName)\n : t.identifier(exportName);\n const exportValue = exportValues[i];\n objectProperties.push(\n t.objectProperty(exportNameNode, exportValue, computed),\n );\n }\n statements.push(\n t.expressionStatement(\n t.callExpression(exportIdent, [t.objectExpression(objectProperties)]),\n ),\n );\n }\n } else {\n const exportObj = path.scope.generateUid(\"exportObj\");\n\n statements.push(\n t.variableDeclaration(\"var\", [\n t.variableDeclarator(\n t.identifier(exportObj),\n t.objectExpression([\n t.objectProperty(t.identifier(protoKey), t.nullLiteral()),\n ]),\n ),\n ]),\n );\n\n statements.push(\n buildExportAll({\n KEY: path.scope.generateUidIdentifier(\"key\"),\n EXPORT_OBJ: t.identifier(exportObj),\n TARGET: exportStarTarget,\n }),\n );\n\n for (let i = 0; i < exportNames.length; i++) {\n const exportName = exportNames[i];\n const computed = stringSpecifiers.has(exportName);\n const exportNameNode = computed\n ? t.stringLiteral(exportName)\n : t.identifier(exportName);\n const exportValue = exportValues[i];\n\n statements.push(\n t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n t.memberExpression(\n t.identifier(exportObj),\n exportNameNode,\n computed,\n ),\n exportValue,\n ),\n ),\n );\n }\n\n statements.push(\n t.expressionStatement(\n t.callExpression(exportIdent, [t.identifier(exportObj)]),\n ),\n );\n }\n return statements;\n}\n\nexport interface Options extends PluginOptions {\n allowTopLevelThis?: boolean;\n systemGlobal?: string;\n}\n\ntype ReassignmentVisitorState = {\n scope: Scope;\n exports: any;\n buildCall: (name: string, value: t.Expression) => t.ExpressionStatement;\n};\n\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const { systemGlobal = \"System\", allowTopLevelThis = false } = options;\n const reassignmentVisited = new WeakSet();\n\n const reassignmentVisitor: Visitor = {\n \"AssignmentExpression|UpdateExpression\"(\n path: NodePath,\n ) {\n if (reassignmentVisited.has(path.node)) return;\n reassignmentVisited.add(path.node);\n\n const arg = path.isAssignmentExpression()\n ? path.get(\"left\")\n : path.get(\"argument\");\n\n if (arg.isObjectPattern() || arg.isArrayPattern()) {\n const exprs: t.SequenceExpression[\"expressions\"] = [path.node];\n for (const name of Object.keys(arg.getBindingIdentifiers())) {\n if (this.scope.getBinding(name) !== path.scope.getBinding(name)) {\n return;\n }\n const exportedNames = this.exports[name];\n if (!exportedNames) continue;\n for (const exportedName of exportedNames) {\n exprs.push(\n this.buildCall(exportedName, t.identifier(name)).expression,\n );\n }\n }\n path.replaceWith(t.sequenceExpression(exprs));\n return;\n }\n\n if (!arg.isIdentifier()) return;\n\n const name = arg.node.name;\n\n // redeclared in this scope\n if (this.scope.getBinding(name) !== path.scope.getBinding(name)) return;\n\n const exportedNames = this.exports[name];\n if (!exportedNames) return;\n\n let node: t.Expression = path.node;\n\n // if it is a non-prefix update expression (x++ etc)\n // then we must replace with the expression (_export('x', x + 1), x++)\n // in order to ensure the same update expression value\n const isPostUpdateExpression = t.isUpdateExpression(node, {\n prefix: false,\n });\n if (isPostUpdateExpression) {\n node = t.binaryExpression(\n // @ts-expect-error The operator of a post-update expression must be \"++\" | \"--\"\n node.operator[0],\n t.unaryExpression(\n \"+\",\n t.cloneNode(\n // @ts-expect-error node is UpdateExpression\n node.argument,\n ),\n ),\n t.numericLiteral(1),\n );\n }\n\n for (const exportedName of exportedNames) {\n node = this.buildCall(exportedName, node).expression;\n }\n\n if (isPostUpdateExpression) {\n node = t.sequenceExpression([node, path.node]);\n }\n\n path.replaceWith(node);\n },\n };\n\n return {\n name: \"transform-modules-systemjs\",\n\n pre() {\n this.file.set(\"@babel/plugin-transform-modules-*\", \"systemjs\");\n },\n\n visitor: {\n [\"CallExpression\" +\n (api.types.importExpression ? \"|ImportExpression\" : \"\")](\n this: PluginPass & PluginState,\n path: NodePath,\n state: PluginState,\n ) {\n if (path.isCallExpression() && !t.isImport(path.node.callee)) return;\n if (path.isCallExpression()) {\n if (!this.file.has(\"@babel/plugin-proposal-dynamic-import\")) {\n if (process.env.BABEL_8_BREAKING) {\n throw new Error(MISSING_PLUGIN_ERROR);\n } else {\n console.warn(MISSING_PLUGIN_WARNING);\n }\n }\n } else {\n // when createImportExpressions is true, we require the dynamic import transform\n if (!this.file.has(\"@babel/plugin-proposal-dynamic-import\")) {\n throw new Error(MISSING_PLUGIN_ERROR);\n }\n }\n path.replaceWith(\n buildDynamicImport(path.node, false, true, specifier =>\n t.callExpression(\n t.memberExpression(\n t.identifier(state.contextIdent),\n t.identifier(\"import\"),\n ),\n [specifier],\n ),\n ),\n );\n },\n\n MetaProperty(path, state: PluginState) {\n if (\n path.node.meta.name === \"import\" &&\n path.node.property.name === \"meta\"\n ) {\n path.replaceWith(\n t.memberExpression(\n t.identifier(state.contextIdent),\n t.identifier(\"meta\"),\n ),\n );\n }\n },\n\n ReferencedIdentifier(path, state) {\n if (\n path.node.name === \"__moduleName\" &&\n !path.scope.hasBinding(\"__moduleName\")\n ) {\n path.replaceWith(\n t.memberExpression(\n t.identifier(state.contextIdent),\n t.identifier(\"id\"),\n ),\n );\n }\n },\n\n Program: {\n enter(path, state) {\n state.contextIdent = path.scope.generateUid(\"context\");\n state.stringSpecifiers = new Set();\n if (!allowTopLevelThis) {\n rewriteThis(path);\n }\n },\n exit(path, state) {\n const scope = path.scope;\n const exportIdent = scope.generateUid(\"export\");\n const { contextIdent, stringSpecifiers } = state;\n\n const exportMap: Record = Object.create(null);\n const modules: ModuleMetadata[] = [];\n\n const beforeBody = [];\n const setters: t.Expression[] = [];\n const sources: t.StringLiteral[] = [];\n const variableIds = [];\n const removedPaths = [];\n\n function addExportName(key: string, val: string) {\n exportMap[key] = exportMap[key] || [];\n exportMap[key].push(val);\n }\n\n function pushModule(\n source: string,\n key: \"imports\" | \"exports\",\n specifiers: t.ModuleSpecifier[] | t.ExportAllDeclaration,\n ) {\n let module: ModuleMetadata;\n modules.forEach(function (m) {\n if (m.key === source) {\n module = m;\n }\n });\n if (!module) {\n modules.push(\n (module = { key: source, imports: [], exports: [] }),\n );\n }\n module[key] = module[key].concat(specifiers);\n }\n\n function buildExportCall(name: string, val: t.Expression) {\n return t.expressionStatement(\n t.callExpression(t.identifier(exportIdent), [\n t.stringLiteral(name),\n val,\n ]),\n );\n }\n\n const exportNames = [];\n const exportValues: t.Expression[] = [];\n\n const body = path.get(\"body\");\n\n for (const path of body) {\n if (path.isFunctionDeclaration()) {\n beforeBody.push(path.node);\n removedPaths.push(path);\n } else if (path.isClassDeclaration()) {\n variableIds.push(t.cloneNode(path.node.id));\n path.replaceWith(\n t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n t.cloneNode(path.node.id),\n t.toExpression(path.node),\n ),\n ),\n );\n } else if (path.isVariableDeclaration()) {\n // Convert top-level variable declarations to \"var\",\n // because they must be hoisted\n path.node.kind = \"var\";\n } else if (path.isImportDeclaration()) {\n const source = path.node.source.value;\n pushModule(source, \"imports\", path.node.specifiers);\n for (const name of Object.keys(path.getBindingIdentifiers())) {\n scope.removeBinding(name);\n variableIds.push(t.identifier(name));\n }\n path.remove();\n } else if (path.isExportAllDeclaration()) {\n pushModule(path.node.source.value, \"exports\", path.node);\n path.remove();\n } else if (path.isExportDefaultDeclaration()) {\n const declar = path.node.declaration;\n if (t.isClassDeclaration(declar)) {\n const id = declar.id;\n if (id) {\n exportNames.push(\"default\");\n exportValues.push(scope.buildUndefinedNode());\n variableIds.push(t.cloneNode(id));\n addExportName(id.name, \"default\");\n path.replaceWith(\n t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n t.cloneNode(id),\n t.toExpression(declar),\n ),\n ),\n );\n } else {\n exportNames.push(\"default\");\n exportValues.push(t.toExpression(declar));\n removedPaths.push(path);\n }\n } else if (t.isFunctionDeclaration(declar)) {\n const id = declar.id;\n if (id) {\n beforeBody.push(declar);\n exportNames.push(\"default\");\n exportValues.push(t.cloneNode(id));\n addExportName(id.name, \"default\");\n } else {\n exportNames.push(\"default\");\n exportValues.push(t.toExpression(declar));\n }\n removedPaths.push(path);\n } else {\n // @ts-expect-error TSDeclareFunction is not expected here\n path.replaceWith(buildExportCall(\"default\", declar));\n }\n } else if (path.isExportNamedDeclaration()) {\n const declar = path.node.declaration;\n\n if (declar) {\n path.replaceWith(declar);\n\n if (t.isFunction(declar)) {\n const name = declar.id.name;\n addExportName(name, name);\n beforeBody.push(declar);\n exportNames.push(name);\n exportValues.push(t.cloneNode(declar.id));\n removedPaths.push(path);\n } else if (t.isClass(declar)) {\n const name = declar.id.name;\n exportNames.push(name);\n exportValues.push(scope.buildUndefinedNode());\n variableIds.push(t.cloneNode(declar.id));\n path.replaceWith(\n t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n t.cloneNode(declar.id),\n t.toExpression(declar),\n ),\n ),\n );\n addExportName(name, name);\n } else {\n if (t.isVariableDeclaration(declar)) {\n // Convert top-level variable declarations to \"var\",\n // because they must be hoisted\n declar.kind = \"var\";\n }\n for (const name of Object.keys(\n t.getBindingIdentifiers(declar),\n )) {\n addExportName(name, name);\n }\n }\n } else {\n const specifiers = path.node.specifiers;\n if (specifiers?.length) {\n if (path.node.source) {\n pushModule(path.node.source.value, \"exports\", specifiers);\n path.remove();\n } else {\n const nodes = [];\n\n for (const specifier of specifiers) {\n // @ts-expect-error This isn't an \"export ... from\" declaration\n // because path.node.source is falsy, so the local specifier exists.\n const { local, exported } = specifier;\n\n const binding = scope.getBinding(local.name);\n const exportedName = getExportSpecifierName(\n exported,\n stringSpecifiers,\n );\n // hoisted function export\n if (\n binding &&\n t.isFunctionDeclaration(binding.path.node)\n ) {\n exportNames.push(exportedName);\n exportValues.push(t.cloneNode(local));\n }\n // only globals also exported this way\n else if (!binding) {\n nodes.push(buildExportCall(exportedName, local));\n }\n addExportName(local.name, exportedName);\n }\n\n path.replaceWithMultiple(nodes);\n }\n } else {\n path.remove();\n }\n }\n }\n }\n\n modules.forEach(function (specifiers) {\n const setterBody = [];\n const target = scope.generateUid(specifiers.key);\n\n for (let specifier of specifiers.imports) {\n if (t.isImportNamespaceSpecifier(specifier)) {\n setterBody.push(\n t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n specifier.local,\n t.identifier(target),\n ),\n ),\n );\n } else if (t.isImportDefaultSpecifier(specifier)) {\n specifier = t.importSpecifier(\n specifier.local,\n t.identifier(\"default\"),\n );\n }\n\n if (t.isImportSpecifier(specifier)) {\n const { imported } = specifier;\n setterBody.push(\n t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n specifier.local,\n t.memberExpression(\n t.identifier(target),\n specifier.imported,\n /* computed */ imported.type === \"StringLiteral\",\n ),\n ),\n ),\n );\n }\n }\n\n if (specifiers.exports.length) {\n const exportNames = [];\n const exportValues = [];\n let hasExportStar = false;\n\n for (const node of specifiers.exports) {\n if (t.isExportAllDeclaration(node)) {\n hasExportStar = true;\n } else if (t.isExportSpecifier(node)) {\n const exportedName = getExportSpecifierName(\n node.exported,\n stringSpecifiers,\n );\n exportNames.push(exportedName);\n exportValues.push(\n t.memberExpression(\n t.identifier(target),\n node.local,\n t.isStringLiteral(node.local),\n ),\n );\n } else {\n // todo\n }\n }\n\n setterBody.push(\n ...constructExportCall(\n path,\n t.identifier(exportIdent),\n exportNames,\n exportValues,\n hasExportStar ? t.identifier(target) : null,\n stringSpecifiers,\n ),\n );\n }\n\n sources.push(t.stringLiteral(specifiers.key));\n setters.push(\n t.functionExpression(\n null,\n [t.identifier(target)],\n t.blockStatement(setterBody),\n ),\n );\n });\n\n let moduleName = getModuleName(this.file.opts, options);\n // @ts-expect-error todo(flow->ts): do not reuse variables\n if (moduleName) moduleName = t.stringLiteral(moduleName);\n\n if (!process.env.BABEL_8_BREAKING && !USE_ESM && !IS_STANDALONE) {\n // polyfill when being run by an older Babel version\n path.scope.hoistVariables ??=\n // eslint-disable-next-line no-restricted-globals\n require(\"@babel/traverse\").Scope.prototype.hoistVariables;\n }\n\n path.scope.hoistVariables((id, hasInit) => {\n variableIds.push(id);\n if (!hasInit && id.name in exportMap) {\n for (const exported of exportMap[id.name]) {\n exportNames.push(exported);\n exportValues.push(t.buildUndefinedNode());\n }\n }\n });\n\n if (variableIds.length) {\n beforeBody.unshift(\n t.variableDeclaration(\n \"var\",\n variableIds.map(id => t.variableDeclarator(id)),\n ),\n );\n }\n\n if (exportNames.length) {\n beforeBody.push(\n ...constructExportCall(\n path,\n t.identifier(exportIdent),\n exportNames,\n exportValues,\n null,\n stringSpecifiers,\n ),\n );\n }\n\n path.traverse(reassignmentVisitor, {\n exports: exportMap,\n buildCall: buildExportCall,\n scope,\n });\n\n for (const path of removedPaths) {\n path.remove();\n }\n\n let hasTLA = false;\n if (process.env.BABEL_8_BREAKING) {\n t.traverseFast(path.node, node => {\n if (t.isFunction(node)) return t.traverseFast.skip;\n if (t.isAwaitExpression(node)) {\n hasTLA = true;\n return t.traverseFast.stop;\n }\n });\n } else {\n path.traverse({\n AwaitExpression(path) {\n hasTLA = true;\n path.stop();\n },\n Function(path) {\n path.skip();\n },\n // @ts-expect-error - todo: add noScope to type definitions\n noScope: true,\n });\n }\n\n path.node.body = [\n buildTemplate({\n SYSTEM_REGISTER: t.memberExpression(\n t.identifier(systemGlobal),\n t.identifier(\"register\"),\n ),\n BEFORE_BODY: beforeBody,\n MODULE_NAME: moduleName,\n SETTERS: t.arrayExpression(setters),\n EXECUTE: t.functionExpression(\n null,\n [],\n t.blockStatement(path.node.body),\n false,\n hasTLA,\n ),\n SOURCES: t.arrayExpression(sources),\n EXPORT_IDENTIFIER: t.identifier(exportIdent),\n CONTEXT_IDENTIFIER: t.identifier(contextIdent),\n }),\n ];\n path.requeue(path.get(\"body.0\"));\n },\n },\n },\n };\n});\n"],"mappings":";;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,uBAAA,GAAAF,OAAA;AAMA,IAAAG,0BAAA,GAAAH,OAAA;AAEA,MAAMI,aAAa,GAAGC,cAAQ,CAACC,SAAS,CAAC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AAEF,MAAMC,cAAc,GAAGF,cAAQ,CAACC,SAAS,CAAC;AAC1C;AACA;AACA;AACA,CAAC,CAAC;AAEF,MAAME,sBAAsB,GAAG;AAC/B;AACA;AACA;AACA,CAAC;AAED,MAAMC,oBAAoB,GAAG;AAC7B;AACA;AACA;AACA,CAAC;AAIM,SAASC,sBAAsBA,CACpCC,IAAY,EACZC,gBAA6B,EACrB;EACR,IAAID,IAAI,CAACE,IAAI,KAAK,YAAY,EAAE;IAC9B,OAAOF,IAAI,CAACG,IAAI;EAClB,C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I,CAAC,EAChC,KAAK,EACL6C,MACF,CAAC;YACDY,OAAO,EAAEzK,WAAC,CAACuK,eAAe,CAACtE,OAAO,CAAC;YACnCyE,iBAAiB,EAAE1K,WAAC,CAACU,UAAU,CAACjB,WAAW,CAAC;YAC5CkL,kBAAkB,EAAE3K,WAAC,CAACU,UAAU,CAACqE,YAAY;UAC/C,CAAC,CAAC,CACH;UACDvF,IAAI,CAACoL,OAAO,CAACpL,IAAI,CAACiD,GAAG,CAAC,QAAQ,CAAC,CAAC;QAClC;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-modules-systemjs/package.json b/node_modules/@babel/plugin-transform-modules-systemjs/package.json new file mode 100644 index 0000000000000000000000000000000000000000..30dab92f8d9b1899faedda3d2805a698330b38a4 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-systemjs/package.json @@ -0,0 +1,39 @@ +{ + "name": "@babel/plugin-transform-modules-systemjs", + "version": "7.29.8", + "description": "This plugin transforms ES2015 modules to SystemJS", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-modules-systemjs" + }, + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "dependencies": { + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.8" + }, + "keywords": [ + "babel-plugin" + ], + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/helper-transform-fixture-test-runner": "^7.29.8", + "core-js": "^3.48.0" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-modules-systemjs", + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-modules-umd/LICENSE b/node_modules/@babel/plugin-transform-modules-umd/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-umd/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-modules-umd/README.md b/node_modules/@babel/plugin-transform-modules-umd/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e9f0358ab43fcf28c6015ec704fab94fe1e38624 --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-umd/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-modules-umd + +> This plugin transforms ES2015 modules to UMD + +See our website [@babel/plugin-transform-modules-umd](https://babeljs.io/docs/babel-plugin-transform-modules-umd) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-modules-umd +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-modules-umd --dev +``` diff --git a/node_modules/@babel/plugin-transform-modules-umd/lib/index.js b/node_modules/@babel/plugin-transform-modules-umd/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..41190e738c2aa4fd7b14d7c69dfe9973beb5ae9a --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-umd/lib/index.js @@ -0,0 +1,156 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _path = require("path"); +var _helperModuleTransforms = require("@babel/helper-module-transforms"); +var _core = require("@babel/core"); +const buildPrerequisiteAssignment = (0, _core.template)(` + GLOBAL_REFERENCE = GLOBAL_REFERENCE || {} +`); +const buildWrapper = (0, _core.template)(` + (function (global, factory) { + if (typeof define === "function" && define.amd) { + define(MODULE_NAME, AMD_ARGUMENTS, factory); + } else if (typeof exports !== "undefined") { + factory(COMMONJS_ARGUMENTS); + } else { + var mod = { exports: {} }; + factory(BROWSER_ARGUMENTS); + + GLOBAL_TO_ASSIGN; + } + })( + typeof globalThis !== "undefined" ? globalThis + : typeof self !== "undefined" ? self + : this, + function(IMPORT_NAMES) { + }) +`); +var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2; + api.assertVersion(7); + const { + globals, + exactGlobals, + allowTopLevelThis, + strict, + strictMode, + noInterop, + importInterop + } = options; + const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : options.loose; + const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : options.loose; + function buildBrowserInit(browserGlobals, exactGlobals, filename, moduleName) { + const moduleNameOrBasename = moduleName ? moduleName.value : (0, _path.basename)(filename, (0, _path.extname)(filename)); + let globalToAssign = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(moduleNameOrBasename))); + let initAssignments = []; + if (exactGlobals) { + const globalName = browserGlobals[moduleNameOrBasename]; + if (globalName) { + initAssignments = []; + const members = globalName.split("."); + globalToAssign = members.slice(1).reduce((accum, curr) => { + initAssignments.push(buildPrerequisiteAssignment({ + GLOBAL_REFERENCE: _core.types.cloneNode(accum) + })); + return _core.types.memberExpression(accum, _core.types.identifier(curr)); + }, _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(members[0]))); + } + } + initAssignments.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", globalToAssign, _core.types.memberExpression(_core.types.identifier("mod"), _core.types.identifier("exports"))))); + return initAssignments; + } + function buildBrowserArg(browserGlobals, exactGlobals, source) { + let memberExpression; + if (exactGlobals) { + const globalRef = browserGlobals[source]; + if (globalRef) { + memberExpression = globalRef.split(".").reduce((accum, curr) => _core.types.memberExpression(accum, _core.types.identifier(curr)), _core.types.identifier("global")); + } else { + memberExpression = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(source))); + } + } else { + const requireName = (0, _path.basename)(source, (0, _path.extname)(source)); + const globalName = browserGlobals[requireName] || requireName; + memberExpression = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(globalName))); + } + return memberExpression; + } + return { + name: "transform-modules-umd", + visitor: { + Program: { + exit(path) { + if (!(0, _helperModuleTransforms.isModule)(path)) return; + const browserGlobals = globals || {}; + const moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); + let moduleNameLiteral; + if (moduleName) moduleNameLiteral = _core.types.stringLiteral(moduleName); + const { + meta, + headers + } = (0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path, { + constantReexports, + enumerableModuleMeta, + strict, + strictMode, + allowTopLevelThis, + noInterop, + importInterop, + filename: this.file.opts.filename + }); + const amdArgs = []; + const commonjsArgs = []; + const browserArgs = []; + const importNames = []; + if ((0, _helperModuleTransforms.hasExports)(meta)) { + amdArgs.push(_core.types.stringLiteral("exports")); + commonjsArgs.push(_core.types.identifier("exports")); + browserArgs.push(_core.types.memberExpression(_core.types.identifier("mod"), _core.types.identifier("exports"))); + importNames.push(_core.types.identifier(meta.exportName)); + } + for (const [source, metadata] of meta.source) { + amdArgs.push(_core.types.stringLiteral(source)); + commonjsArgs.push(_core.types.callExpression(_core.types.identifier("require"), [_core.types.stringLiteral(source)])); + browserArgs.push(buildBrowserArg(browserGlobals, exactGlobals, source)); + importNames.push(_core.types.identifier(metadata.name)); + if (!(0, _helperModuleTransforms.isSideEffectImport)(metadata)) { + const interop = (0, _helperModuleTransforms.wrapInterop)(path, _core.types.identifier(metadata.name), metadata.interop); + if (interop) { + const header = _core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.identifier(metadata.name), interop)); + header.loc = meta.loc; + headers.push(header); + } + } + headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports)); + } + (0, _helperModuleTransforms.ensureStatementsHoisted)(headers); + path.unshiftContainer("body", headers); + const { + body, + directives + } = path.node; + path.node.directives = []; + path.node.body = []; + const umdWrapper = path.pushContainer("body", [buildWrapper({ + MODULE_NAME: moduleNameLiteral, + AMD_ARGUMENTS: _core.types.arrayExpression(amdArgs), + COMMONJS_ARGUMENTS: commonjsArgs, + BROWSER_ARGUMENTS: browserArgs, + IMPORT_NAMES: importNames, + GLOBAL_TO_ASSIGN: buildBrowserInit(browserGlobals, exactGlobals, this.filename || "unknown", moduleNameLiteral) + })])[0]; + const umdFactory = umdWrapper.get("expression.arguments")[1].get("body"); + umdFactory.pushContainer("directives", directives); + umdFactory.pushContainer("body", body); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-modules-umd/lib/index.js.map b/node_modules/@babel/plugin-transform-modules-umd/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..52441ab2a5ad3a60af8dcb773ac194f30529757d --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-umd/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_path","_helperModuleTransforms","_core","buildPrerequisiteAssignment","template","buildWrapper","_default","exports","default","declare","api","options","_api$assumption","_api$assumption2","assertVersion","globals","exactGlobals","allowTopLevelThis","strict","strictMode","noInterop","importInterop","constantReexports","assumption","loose","enumerableModuleMeta","buildBrowserInit","browserGlobals","filename","moduleName","moduleNameOrBasename","value","basename","extname","globalToAssign","t","memberExpression","identifier","toIdentifier","initAssignments","globalName","members","split","slice","reduce","accum","curr","push","GLOBAL_REFERENCE","cloneNode","expressionStatement","assignmentExpression","buildBrowserArg","source","globalRef","requireName","name","visitor","Program","exit","path","isModule","getModuleName","file","opts","moduleNameLiteral","stringLiteral","meta","headers","rewriteModuleStatementsAndPrepareHeader","amdArgs","commonjsArgs","browserArgs","importNames","hasExports","exportName","metadata","callExpression","isSideEffectImport","interop","wrapInterop","header","loc","buildNamespaceInitStatements","ensureStatementsHoisted","unshiftContainer","body","directives","node","umdWrapper","pushContainer","MODULE_NAME","AMD_ARGUMENTS","arrayExpression","COMMONJS_ARGUMENTS","BROWSER_ARGUMENTS","IMPORT_NAMES","GLOBAL_TO_ASSIGN","umdFactory","get"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { basename, extname } from \"node:path\";\nimport {\n isModule,\n rewriteModuleStatementsAndPrepareHeader,\n type RewriteModuleStatementsAndPrepareHeaderOptions,\n hasExports,\n isSideEffectImport,\n buildNamespaceInitStatements,\n ensureStatementsHoisted,\n wrapInterop,\n getModuleName,\n} from \"@babel/helper-module-transforms\";\nimport type { PluginOptions } from \"@babel/helper-module-transforms\";\nimport { types as t, template, type NodePath } from \"@babel/core\";\n\nconst buildPrerequisiteAssignment = template(`\n GLOBAL_REFERENCE = GLOBAL_REFERENCE || {}\n`);\n// Note: we avoid comparing typeof results with \"object\" or \"symbol\" otherwise\n// they will be processed by `transform-typeof-symbol`, which in return could\n// cause typeof helper used before declaration\nconst buildWrapper = template(`\n (function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(MODULE_NAME, AMD_ARGUMENTS, factory);\n } else if (typeof exports !== \"undefined\") {\n factory(COMMONJS_ARGUMENTS);\n } else {\n var mod = { exports: {} };\n factory(BROWSER_ARGUMENTS);\n\n GLOBAL_TO_ASSIGN;\n }\n })(\n typeof globalThis !== \"undefined\" ? globalThis\n : typeof self !== \"undefined\" ? self\n : this,\n function(IMPORT_NAMES) {\n })\n`);\n\nexport interface Options extends PluginOptions {\n allowTopLevelThis?: boolean;\n exactGlobals?: boolean;\n globals?: Record;\n importInterop?: RewriteModuleStatementsAndPrepareHeaderOptions[\"importInterop\"];\n loose?: boolean;\n noInterop?: boolean;\n strict?: boolean;\n strictMode?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const {\n globals,\n exactGlobals,\n allowTopLevelThis,\n strict,\n strictMode,\n noInterop,\n importInterop,\n } = options;\n\n const constantReexports =\n api.assumption(\"constantReexports\") ?? options.loose;\n const enumerableModuleMeta =\n api.assumption(\"enumerableModuleMeta\") ?? options.loose;\n\n /**\n * Build the assignment statements that initialize the UMD global.\n */\n function buildBrowserInit(\n browserGlobals: Record,\n exactGlobals: boolean,\n filename: string,\n moduleName: t.StringLiteral | void,\n ) {\n const moduleNameOrBasename = moduleName\n ? moduleName.value\n : basename(filename, extname(filename));\n let globalToAssign = t.memberExpression(\n t.identifier(\"global\"),\n t.identifier(t.toIdentifier(moduleNameOrBasename)),\n );\n let initAssignments = [];\n\n if (exactGlobals) {\n const globalName = browserGlobals[moduleNameOrBasename];\n\n if (globalName) {\n initAssignments = [];\n\n const members = globalName.split(\".\");\n globalToAssign = members.slice(1).reduce(\n (accum, curr) => {\n initAssignments.push(\n buildPrerequisiteAssignment({\n GLOBAL_REFERENCE: t.cloneNode(accum),\n }),\n );\n return t.memberExpression(accum, t.identifier(curr));\n },\n t.memberExpression(t.identifier(\"global\"), t.identifier(members[0])),\n );\n }\n }\n\n initAssignments.push(\n t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n globalToAssign,\n t.memberExpression(t.identifier(\"mod\"), t.identifier(\"exports\")),\n ),\n ),\n );\n\n return initAssignments;\n }\n\n /**\n * Build the member expression that reads from a global for a given source.\n */\n function buildBrowserArg(\n browserGlobals: Record,\n exactGlobals: boolean,\n source: string,\n ) {\n let memberExpression: t.MemberExpression;\n if (exactGlobals) {\n const globalRef = browserGlobals[source];\n if (globalRef) {\n memberExpression = globalRef\n .split(\".\")\n .reduce(\n (accum: t.Identifier | t.MemberExpression, curr) =>\n t.memberExpression(accum, t.identifier(curr)),\n t.identifier(\"global\"),\n ) as t.MemberExpression;\n } else {\n memberExpression = t.memberExpression(\n t.identifier(\"global\"),\n t.identifier(t.toIdentifier(source)),\n );\n }\n } else {\n const requireName = basename(source, extname(source));\n const globalName = browserGlobals[requireName] || requireName;\n memberExpression = t.memberExpression(\n t.identifier(\"global\"),\n t.identifier(t.toIdentifier(globalName)),\n );\n }\n return memberExpression;\n }\n\n return {\n name: \"transform-modules-umd\",\n\n visitor: {\n Program: {\n exit(path) {\n if (!isModule(path)) return;\n\n const browserGlobals = globals || {};\n\n const moduleName = getModuleName(this.file.opts, options);\n let moduleNameLiteral: void | t.StringLiteral;\n if (moduleName) moduleNameLiteral = t.stringLiteral(moduleName);\n\n const { meta, headers } = rewriteModuleStatementsAndPrepareHeader(\n path,\n {\n constantReexports,\n enumerableModuleMeta,\n strict,\n strictMode,\n allowTopLevelThis,\n noInterop,\n importInterop,\n filename: this.file.opts.filename,\n },\n );\n\n const amdArgs = [];\n const commonjsArgs = [];\n const browserArgs = [];\n const importNames = [];\n\n if (hasExports(meta)) {\n amdArgs.push(t.stringLiteral(\"exports\"));\n commonjsArgs.push(t.identifier(\"exports\"));\n browserArgs.push(\n t.memberExpression(t.identifier(\"mod\"), t.identifier(\"exports\")),\n );\n importNames.push(t.identifier(meta.exportName));\n }\n\n for (const [source, metadata] of meta.source) {\n amdArgs.push(t.stringLiteral(source));\n commonjsArgs.push(\n t.callExpression(t.identifier(\"require\"), [\n t.stringLiteral(source),\n ]),\n );\n browserArgs.push(\n buildBrowserArg(browserGlobals, exactGlobals, source),\n );\n importNames.push(t.identifier(metadata.name));\n\n if (!isSideEffectImport(metadata)) {\n const interop = wrapInterop(\n path,\n t.identifier(metadata.name),\n metadata.interop,\n );\n if (interop) {\n const header = t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n t.identifier(metadata.name),\n interop,\n ),\n );\n // @ts-expect-error todo(flow->ts)\n header.loc = meta.loc;\n headers.push(header);\n }\n }\n\n headers.push(\n ...buildNamespaceInitStatements(\n meta,\n metadata,\n constantReexports,\n ),\n );\n }\n\n ensureStatementsHoisted(headers);\n path.unshiftContainer(\"body\", headers);\n\n const { body, directives } = path.node;\n path.node.directives = [];\n path.node.body = [];\n const umdWrapper = path.pushContainer(\"body\", [\n buildWrapper({\n //todo: buildWrapper does not handle void moduleNameLiteral\n MODULE_NAME: moduleNameLiteral,\n\n AMD_ARGUMENTS: t.arrayExpression(amdArgs),\n COMMONJS_ARGUMENTS: commonjsArgs,\n BROWSER_ARGUMENTS: browserArgs,\n IMPORT_NAMES: importNames,\n\n GLOBAL_TO_ASSIGN: buildBrowserInit(\n browserGlobals,\n exactGlobals,\n this.filename || \"unknown\",\n moduleNameLiteral,\n ),\n }) as t.Statement,\n ])[0] as NodePath;\n const umdFactory = (\n umdWrapper.get(\"expression.arguments\")[1] as NodePath\n ).get(\"body\") as NodePath;\n umdFactory.pushContainer(\"directives\", directives);\n umdFactory.pushContainer(\"body\", body);\n },\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AAYA,IAAAG,KAAA,GAAAH,OAAA;AAEA,MAAMI,2BAA2B,GAAG,IAAAC,cAAQ,EAAC;AAC7C;AACA,CAAC,CAAC;AAIF,MAAMC,YAAY,GAAG,IAAAD,cAAQ,EAAC;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA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U,GACdT,UAAU,CAACU,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CACzCA,GAAG,CAAC,MAAM,CAA+B;UAC3CD,UAAU,CAACR,aAAa,CAAC,YAAY,EAAEH,UAAU,CAAC;UAClDW,UAAU,CAACR,aAAa,CAAC,MAAM,EAAEJ,IAAI,CAAC;QACxC;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-modules-umd/package.json b/node_modules/@babel/plugin-transform-modules-umd/package.json new file mode 100644 index 0000000000000000000000000000000000000000..ce7c8f4352401d70bbbc55dd49032a9c8346113f --- /dev/null +++ b/node_modules/@babel/plugin-transform-modules-umd/package.json @@ -0,0 +1,36 @@ +{ + "name": "@babel/plugin-transform-modules-umd", + "version": "7.29.7", + "description": "This plugin transforms ES2015 modules to UMD", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-modules-umd" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-modules-umd", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "dependencies": { + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "keywords": [ + "babel-plugin" + ], + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/plugin-external-helpers": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/LICENSE b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/README.md b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/README.md new file mode 100644 index 0000000000000000000000000000000000000000..61fbeb3a14fd36dd3997dc128f9ab60af3276f83 --- /dev/null +++ b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-named-capturing-groups-regex + +> Compile regular expressions using named groups to ES5. + +See our website [@babel/plugin-transform-named-capturing-groups-regex](https://babeljs.io/docs/babel-plugin-transform-named-capturing-groups-regex) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-named-capturing-groups-regex +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-named-capturing-groups-regex --dev +``` diff --git a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/lib/index.js b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..c3923d3c7196de11a6b7268f4c43d37689502f27 --- /dev/null +++ b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/lib/index.js @@ -0,0 +1,25 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin"); +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => { + const { + runtime + } = options; + if (runtime !== undefined && typeof runtime !== "boolean") { + throw new Error("The 'runtime' option must be boolean"); + } + return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ + name: "transform-named-capturing-groups-regex", + feature: "namedCaptureGroups", + options: { + runtime + } + }); +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/lib/index.js.map b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f0c9c9e61f937f4085a9a032c7964485d463ee8f --- /dev/null +++ b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperCreateRegexpFeaturesPlugin","require","_helperPluginUtils","_default","exports","default","declare","api","options","runtime","undefined","Error","createRegExpFeaturePlugin","name","feature"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @babel/development/plugin-name */\nimport { createRegExpFeaturePlugin } from \"@babel/helper-create-regexp-features-plugin\";\nimport { declare } from \"@babel/helper-plugin-utils\";\n\nexport interface Options {\n runtime?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n const { runtime } = options;\n if (runtime !== undefined && typeof runtime !== \"boolean\") {\n throw new Error(\"The 'runtime' option must be boolean\");\n }\n\n return createRegExpFeaturePlugin({\n name: \"transform-named-capturing-groups-regex\",\n feature: \"namedCaptureGroups\",\n options: { runtime },\n });\n});\n"],"mappings":";;;;;;AACA,IAAAA,iCAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAAqD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMtC,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAEC,OAAgB,KAAK;EAChD,MAAM;IAAEC;EAAQ,CAAC,GAAGD,OAAO;EAC3B,IAAIC,OAAO,KAAKC,SAAS,IAAI,OAAOD,OAAO,KAAK,SAAS,EAAE;IACzD,MAAM,IAAIE,KAAK,CAAC,sCAAsC,CAAC;EACzD;EAEA,OAAO,IAAAC,2DAAyB,EAAC;IAC/BC,IAAI,EAAE,wCAAwC;IAC9CC,OAAO,EAAE,oBAAoB;IAC7BN,OAAO,EAAE;MAAEC;IAAQ;EACrB,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json new file mode 100644 index 0000000000000000000000000000000000000000..ec9dd9c1dcbcecc02a2b960c49f7f8a2ae34dd73 --- /dev/null +++ b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json @@ -0,0 +1,40 @@ +{ + "name": "@babel/plugin-transform-named-capturing-groups-regex", + "version": "7.29.7", + "description": "Compile regular expressions using named groups to ES5.", + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-named-capturing-groups-regex", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin", + "regex", + "regexp", + "regular expressions" + ], + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-named-capturing-groups-regex" + }, + "bugs": "https://github.com/babel/babel/issues", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "core-js": "^3.48.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-new-target/LICENSE b/node_modules/@babel/plugin-transform-new-target/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-new-target/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-new-target/README.md b/node_modules/@babel/plugin-transform-new-target/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6dcbcf7089f1dc3302cc1720bd729770e9c2c4d0 --- /dev/null +++ b/node_modules/@babel/plugin-transform-new-target/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-new-target + +> Transforms new.target meta property + +See our website [@babel/plugin-transform-new-target](https://babeljs.io/docs/babel-plugin-transform-new-target) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-new-target +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-new-target --dev +``` diff --git a/node_modules/@babel/plugin-transform-new-target/lib/index.js b/node_modules/@babel/plugin-transform-new-target/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..4a4940d0b5a9c858daa2e4f8688fb0e6734b48fe --- /dev/null +++ b/node_modules/@babel/plugin-transform-new-target/lib/index.js @@ -0,0 +1,71 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-new-target", + visitor: { + MetaProperty(path) { + const meta = path.get("meta"); + const property = path.get("property"); + const { + scope + } = path; + if (meta.isIdentifier({ + name: "new" + }) && property.isIdentifier({ + name: "target" + })) { + const func = path.findParent(path => { + if (path.isClass()) return true; + if (path.isFunction() && !path.isArrowFunctionExpression()) { + if (path.isClassMethod({ + kind: "constructor" + })) { + return false; + } + return true; + } + return false; + }); + if (!func) { + throw path.buildCodeFrameError("new.target must be under a (non-arrow) function or a class."); + } + const { + node + } = func; + if (_core.types.isMethod(node)) { + path.replaceWith(scope.buildUndefinedNode()); + return; + } + const constructor = _core.types.memberExpression(_core.types.thisExpression(), _core.types.identifier("constructor")); + if (func.isClass()) { + path.replaceWith(constructor); + return; + } + if (!node.id) { + node.id = scope.generateUidIdentifier("target"); + } else { + let scope = path.scope; + const name = node.id.name; + while (scope !== func.parentPath.scope) { + if (scope.hasOwnBinding(name) && !scope.bindingIdentifierEquals(name, node.id)) { + scope.rename(name); + } + scope = scope.parent; + } + } + path.replaceWith(_core.types.conditionalExpression(_core.types.binaryExpression("instanceof", _core.types.thisExpression(), _core.types.cloneNode(node.id)), constructor, scope.buildUndefinedNode())); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-new-target/lib/index.js.map b/node_modules/@babel/plugin-transform-new-target/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..84c178468be9988b506e9c6ef762c7e76eeb5469 --- /dev/null +++ b/node_modules/@babel/plugin-transform-new-target/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","_default","exports","default","declare","api","assertVersion","name","visitor","MetaProperty","path","meta","get","property","scope","isIdentifier","func","findParent","isClass","isFunction","isArrowFunctionExpression","isClassMethod","kind","buildCodeFrameError","node","t","isMethod","replaceWith","buildUndefinedNode","constructor","memberExpression","thisExpression","identifier","id","generateUidIdentifier","parentPath","hasOwnBinding","bindingIdentifierEquals","rename","parent","conditionalExpression","binaryExpression","cloneNode"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t, type NodePath } from \"@babel/core\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n return {\n name: \"transform-new-target\",\n\n visitor: {\n MetaProperty(path) {\n const meta = path.get(\"meta\");\n const property = path.get(\"property\");\n const { scope } = path;\n\n if (\n meta.isIdentifier({ name: \"new\" }) &&\n property.isIdentifier({ name: \"target\" })\n ) {\n const func = path.findParent(path => {\n if (path.isClass()) return true;\n if (path.isFunction() && !path.isArrowFunctionExpression()) {\n if (path.isClassMethod({ kind: \"constructor\" })) {\n return false;\n }\n\n return true;\n }\n return false;\n }) as NodePath<\n | t.FunctionDeclaration\n | t.FunctionExpression\n | t.Class\n | t.ClassMethod\n | t.ClassPrivateMethod\n >;\n\n if (!func) {\n throw path.buildCodeFrameError(\n \"new.target must be under a (non-arrow) function or a class.\",\n );\n }\n\n const { node } = func;\n if (t.isMethod(node)) {\n path.replaceWith(scope.buildUndefinedNode());\n return;\n }\n\n const constructor = t.memberExpression(\n t.thisExpression(),\n t.identifier(\"constructor\"),\n );\n\n if (func.isClass()) {\n path.replaceWith(constructor);\n return;\n }\n\n if (!node.id) {\n node.id = scope.generateUidIdentifier(\"target\");\n } else {\n // packages/babel-helper-create-class-features-plugin/src/fields.ts#L192 unshadow\n let scope = path.scope;\n const name = node.id.name;\n while (scope !== func.parentPath.scope) {\n if (\n scope.hasOwnBinding(name) &&\n !scope.bindingIdentifierEquals(name, node.id)\n ) {\n scope.rename(name);\n }\n scope = scope.parent;\n }\n }\n\n path.replaceWith(\n t.conditionalExpression(\n t.binaryExpression(\n \"instanceof\",\n t.thisExpression(),\n t.cloneNode(node.id),\n ),\n constructor,\n scope.buildUndefinedNode(),\n ),\n );\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAwD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEzC,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAkB,CAAE,CAAC;EAEtC,OAAO;IACLC,IAAI,EAAE,sBAAsB;IAE5BC,OAAO,EAAE;MACPC,YAAYA,CAACC,IAAI,EAAE;QACjB,MAAMC,IAAI,GAAGD,IAAI,CAACE,GAAG,CAAC,MAAM,CAAC;QAC7B,MAAMC,QAAQ,GAAGH,IAAI,CAACE,GAAG,CAAC,UAAU,CAAC;QACrC,MAAM;UAAEE;QAAM,CAAC,GAAGJ,IAAI;QAEtB,IACEC,IAAI,CAACI,YAAY,CAAC;UAAER,IAAI,EAAE;QAAM,CAAC,CAAC,IAClCM,QAAQ,CAACE,YAAY,CAAC;UAAER,IAAI,EAAE;QAAS,CAAC,CAAC,EACzC;UACA,MAAMS,IAAI,GAAGN,IAAI,CAACO,UAAU,CAACP,IAAI,IAAI;YACnC,IAAIA,IAAI,CAACQ,OAAO,CAAC,CAAC,EAAE,OAAO,IAAI;YAC/B,IAAIR,IAAI,CAACS,UAAU,CAAC,CAAC,IAAI,CAACT,IAAI,CAACU,yBAAyB,CAAC,CAAC,EAAE;cAC1D,IAAIV,IAAI,CAACW,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WAAC,CAACe,qBAAqB,CACrBf,WAAC,CAACgB,gBAAgB,CAChB,YAAY,EACZhB,WAAC,CAACM,cAAc,CAAC,CAAC,EAClBN,WAAC,CAACiB,SAAS,CAAClB,IAAI,CAACS,EAAE,CACrB,CAAC,EACDJ,WAAW,EACXf,KAAK,CAACc,kBAAkB,CAAC,CAC3B,CACF,CAAC;QACH;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-new-target/package.json b/node_modules/@babel/plugin-transform-new-target/package.json new file mode 100644 index 0000000000000000000000000000000000000000..43c683f5b903763ec172447fc1d0ee814ae4f842 --- /dev/null +++ b/node_modules/@babel/plugin-transform-new-target/package.json @@ -0,0 +1,36 @@ +{ + "name": "@babel/plugin-transform-new-target", + "version": "7.29.7", + "description": "Transforms new.target meta property", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-new-target" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-new-target", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/plugin-transform-arrow-functions": "^7.29.7", + "@babel/plugin-transform-class-properties": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-nullish-coalescing-operator/LICENSE b/node_modules/@babel/plugin-transform-nullish-coalescing-operator/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-nullish-coalescing-operator/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-nullish-coalescing-operator/README.md b/node_modules/@babel/plugin-transform-nullish-coalescing-operator/README.md new file mode 100644 index 0000000000000000000000000000000000000000..0d98d92c850a10df4ca7eea30246cec0b14da069 --- /dev/null +++ b/node_modules/@babel/plugin-transform-nullish-coalescing-operator/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-nullish-coalescing-operator + +> Remove nullish coalescing operator + +See our website [@babel/plugin-transform-nullish-coalescing-operator](https://babeljs.io/docs/babel-plugin-transform-nullish-coalescing-operator) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-nullish-coalescing-operator +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-nullish-coalescing-operator --dev +``` diff --git a/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js b/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..05e3b988d00d1728e2c1a4c76ab76d4a33f3a0c7 --- /dev/null +++ b/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js @@ -0,0 +1,49 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +var _default = exports.default = (0, _helperPluginUtils.declare)((api, { + loose = false +}) => { + var _api$assumption, _api$assumption2; + api.assertVersion("^7.0.0-0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta"); + const noDocumentAll = (_api$assumption = api.assumption("noDocumentAll")) != null ? _api$assumption : loose; + const pureGetters = (_api$assumption2 = api.assumption("pureGetters")) != null ? _api$assumption2 : false; + return { + name: "transform-nullish-coalescing-operator", + manipulateOptions: (_, parser) => parser.plugins.push("nullishCoalescingOperator"), + visitor: { + LogicalExpression(path) { + const { + node, + scope + } = path; + if (node.operator !== "??") { + return; + } + let ref; + let assignment; + if (pureGetters && scope.path.isPattern() && _core.types.isMemberExpression(node.left) && !node.left.computed && _core.types.isIdentifier(node.left.object) && _core.types.isIdentifier(node.left.property) || _core.types.isIdentifier(node.left) && (pureGetters || scope.hasBinding(node.left.name))) { + ref = node.left; + assignment = _core.types.cloneNode(node.left); + } else if (scope.path.isPattern()) { + path.replaceWith(_core.template.statement.ast`(() => ${path.node})()`); + return; + } else { + ref = scope.generateUidIdentifierBasedOnNode(node.left); + scope.push({ + id: _core.types.cloneNode(ref) + }); + assignment = _core.types.assignmentExpression("=", ref, node.left); + } + path.replaceWith(_core.types.conditionalExpression(noDocumentAll ? _core.types.binaryExpression("!=", assignment, _core.types.nullLiteral()) : _core.types.logicalExpression("&&", _core.types.binaryExpression("!==", assignment, _core.types.nullLiteral()), _core.types.binaryExpression("!==", _core.types.cloneNode(ref), scope.buildUndefinedNode())), _core.types.cloneNode(ref), node.right)); + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js.map b/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..9be7d0909d1ad29cee5d4638f9c9321bc1231ef5 --- /dev/null +++ b/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","_default","exports","default","declare","api","loose","_api$assumption","_api$assumption2","assertVersion","noDocumentAll","assumption","pureGetters","name","manipulateOptions","_","parser","plugins","push","visitor","LogicalExpression","path","node","scope","operator","ref","assignment","isPattern","t","isMemberExpression","left","computed","isIdentifier","object","property","hasBinding","cloneNode","replaceWith","template","statement","ast","generateUidIdentifierBasedOnNode","id","assignmentExpression","conditionalExpression","binaryExpression","nullLiteral","logicalExpression","buildUndefinedNode","right"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t, template } from \"@babel/core\";\n\nexport interface Options {\n loose?: boolean;\n}\n\nexport default declare((api, { loose = false }: Options) => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n const noDocumentAll = api.assumption(\"noDocumentAll\") ?? loose;\n const pureGetters = api.assumption(\"pureGetters\") ?? false;\n\n return {\n name: \"transform-nullish-coalescing-operator\",\n manipulateOptions: process.env.BABEL_8_BREAKING\n ? undefined\n : (_, parser) => parser.plugins.push(\"nullishCoalescingOperator\"),\n\n visitor: {\n LogicalExpression(path) {\n const { node, scope } = path;\n if (node.operator !== \"??\") {\n return;\n }\n\n let ref;\n let assignment;\n // skip creating extra reference when `left` is pure\n if (\n (pureGetters &&\n scope.path.isPattern() &&\n t.isMemberExpression(node.left) &&\n !node.left.computed &&\n t.isIdentifier(node.left.object) &&\n t.isIdentifier(node.left.property)) ||\n (t.isIdentifier(node.left) &&\n (pureGetters ||\n // globalThis\n scope.hasBinding(node.left.name)))\n ) {\n ref = node.left;\n assignment = t.cloneNode(node.left);\n } else if (scope.path.isPattern()) {\n // Replace `function (a, x = a.b ?? c) {}` to `function (a, x = (() => a.b ?? c)() ){}`\n // so the temporary variable can be injected in correct scope\n path.replaceWith(template.statement.ast`(() => ${path.node})()`);\n // The injected nullish expression will be queued and eventually transformed when visited\n return;\n } else {\n ref = scope.generateUidIdentifierBasedOnNode(node.left);\n scope.push({ id: t.cloneNode(ref) });\n assignment = t.assignmentExpression(\"=\", ref, node.left);\n }\n\n path.replaceWith(\n t.conditionalExpression(\n // We cannot use `!= null` in spec mode because\n // `document.all == null` and `document.all` is not \"nullish\".\n noDocumentAll\n ? t.binaryExpression(\"!=\", assignment, t.nullLiteral())\n : t.logicalExpression(\n \"&&\",\n t.binaryExpression(\"!==\", assignment, t.nullLiteral()),\n t.binaryExpression(\n \"!==\",\n t.cloneNode(ref),\n scope.buildUndefinedNode(),\n ),\n ),\n t.cloneNode(ref),\n node.right,\n ),\n );\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAmD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMpC,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAe,CAAC,KAAK;EAAA,IAAAC,eAAA,EAAAC,gBAAA;EAC1DH,GAAG,CAACI,aAAa,mDAAyC,CAAC;EAC3D,MAAMC,aAAa,IAAAH,eAAA,GAAGF,GAAG,CAACM,UAAU,CAAC,eAAe,CAAC,YAAAJ,eAAA,GAAID,KAAK;EAC9D,MAAMM,WAAW,IAAAJ,gBAAA,GAAGH,GAAG,CAACM,UAAU,CAAC,aAAa,CAAC,YAAAH,gBAAA,GAAI,KAAK;EAE1D,OAAO;IACLK,IAAI,EAAE,uCAAuC;IAC7CC,iBAAiB,EAEbA,CAACC,CAAC,EAAEC,MAAM,KAAKA,MAAM,CAACC,OAAO,CAACC,IAAI,CAAC,2BAA2B,CAAC;IAEnEC,OAAO,EAAE;MAC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AAC;QAC1D;QAEAT,IAAI,CAACgB,WAAW,CACdT,WAAC,CAACgB,qBAAqB,CAGrBlC,aAAa,GACTkB,WAAC,CAACiB,gBAAgB,CAAC,IAAI,EAAEnB,UAAU,EAAEE,WAAC,CAACkB,WAAW,CAAC,CAAC,CAAC,GACrDlB,WAAC,CAACmB,iBAAiB,CACjB,IAAI,EACJnB,WAAC,CAACiB,gBAAgB,CAAC,KAAK,EAAEnB,UAAU,EAAEE,WAAC,CAACkB,WAAW,CAAC,CAAC,CAAC,EACtDlB,WAAC,CAACiB,gBAAgB,CAChB,KAAK,EACLjB,WAAC,CAACQ,SAAS,CAACX,GAAG,CAAC,EAChBF,KAAK,CAACyB,kBAAkB,CAAC,CAC3B,CACF,CAAC,EACLpB,WAAC,CAACQ,SAAS,CAACX,GAAG,CAAC,EAChBH,IAAI,CAAC2B,KACP,CACF,CAAC;MACH;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json b/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json new file mode 100644 index 0000000000000000000000000000000000000000..d7bad91ddec74bd277615c3f972d34b2122ec30f --- /dev/null +++ b/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json @@ -0,0 +1,34 @@ +{ + "name": "@babel/plugin-transform-nullish-coalescing-operator", + "version": "7.29.7", + "description": "Remove nullish coalescing operator", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-nullish-coalescing-operator" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-nullish-coalescing-operator", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-numeric-separator/LICENSE b/node_modules/@babel/plugin-transform-numeric-separator/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-numeric-separator/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-numeric-separator/README.md b/node_modules/@babel/plugin-transform-numeric-separator/README.md new file mode 100644 index 0000000000000000000000000000000000000000..90c4bf48e957fd01e292de7de74a04f920bccd0d --- /dev/null +++ b/node_modules/@babel/plugin-transform-numeric-separator/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-numeric-separator + +> Remove numeric separators from Decimal, Binary, Hex and Octal literals + +See our website [@babel/plugin-transform-numeric-separator](https://babeljs.io/docs/babel-plugin-transform-numeric-separator) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-numeric-separator +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-numeric-separator --dev +``` diff --git a/node_modules/@babel/plugin-transform-numeric-separator/lib/index.js b/node_modules/@babel/plugin-transform-numeric-separator/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..f7dede91baeb215428938f3ae634342369fdb0d8 --- /dev/null +++ b/node_modules/@babel/plugin-transform-numeric-separator/lib/index.js @@ -0,0 +1,31 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +function remover({ + node +}) { + var _extra$raw; + const { + extra + } = node; + if (extra != null && (_extra$raw = extra.raw) != null && _extra$raw.includes("_")) { + extra.raw = extra.raw.replace(/_/g, ""); + } +} +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion("^7.0.0-0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta"); + return { + name: "transform-numeric-separator", + manipulateOptions: (_, parser) => parser.plugins.push("numericSeparator"), + visitor: { + NumericLiteral: remover, + BigIntLiteral: remover + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-numeric-separator/lib/index.js.map b/node_modules/@babel/plugin-transform-numeric-separator/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..c4adb26a4024cbe61be3e0e34081a924aa6b0188 --- /dev/null +++ b/node_modules/@babel/plugin-transform-numeric-separator/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","remover","node","_extra$raw","extra","raw","includes","replace","_default","exports","default","declare","api","assertVersion","name","manipulateOptions","_","parser","plugins","push","visitor","NumericLiteral","BigIntLiteral"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport type { NodePath, types as t } from \"@babel/core\";\n\n/**\n * Given a bigIntLiteral or NumericLiteral, remove numeric\n * separator `_` from its raw representation\n *\n * @param {NodePath} { node }: A Babel AST node path\n */\nfunction remover({ node }: NodePath) {\n const { extra } = node;\n // @ts-expect-error todo(flow->ts)\n if (extra?.raw?.includes(\"_\")) {\n // @ts-expect-error todo(flow->ts)\n extra.raw = extra.raw.replace(/_/g, \"\");\n }\n}\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n\n return {\n name: \"transform-numeric-separator\",\n manipulateOptions: process.env.BABEL_8_BREAKING\n ? undefined\n : (_, parser) => parser.plugins.push(\"numericSeparator\"),\n\n visitor: {\n NumericLiteral: remover,\n BigIntLiteral: remover,\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AASA,SAASC,OAAOA,CAAC;EAAEC;AAAmD,CAAC,EAAE;EAAA,IAAAC,UAAA;EACvE,MAAM;IAAEC;EAAM,CAAC,GAAGF,IAAI;EAEtB,IAAIE,KAAK,aAAAD,UAAA,GAALC,KAAK,CAAEC,GAAG,aAAVF,UAAA,CAAYG,QAAQ,CAAC,GAAG,CAAC,EAAE;IAE7BF,KAAK,CAACC,GAAG,GAAGD,KAAK,CAACC,GAAG,CAACE,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;EACzC;AACF;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEc,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,mDAAyC,CAAC;EAE3D,OAAO;IACLC,IAAI,EAAE,6BAA6B;IACnCC,iBAAiB,EAEbA,CAACC,CAAC,EAAEC,MAAM,KAAKA,MAAM,CAACC,OAAO,CAACC,IAAI,CAAC,kBAAkB,CAAC;IAE1DC,OAAO,EAAE;MACPC,cAAc,EAAEpB,OAAO;MACvBqB,aAAa,EAAErB;IACjB;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-numeric-separator/package.json b/node_modules/@babel/plugin-transform-numeric-separator/package.json new file mode 100644 index 0000000000000000000000000000000000000000..940926e34bb8186642af13ce5477b96bfdb8003a --- /dev/null +++ b/node_modules/@babel/plugin-transform-numeric-separator/package.json @@ -0,0 +1,36 @@ +{ + "name": "@babel/plugin-transform-numeric-separator", + "version": "7.29.7", + "description": "Remove numeric separators from Decimal, Binary, Hex and Octal literals", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-numeric-separator" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-numeric-separator", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-object-rest-spread/LICENSE b/node_modules/@babel/plugin-transform-object-rest-spread/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-object-rest-spread/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-object-rest-spread/README.md b/node_modules/@babel/plugin-transform-object-rest-spread/README.md new file mode 100644 index 0000000000000000000000000000000000000000..cef6d82128f8dc2666fec4c8b6bee3c390cabea6 --- /dev/null +++ b/node_modules/@babel/plugin-transform-object-rest-spread/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-object-rest-spread + +> Compile object rest and spread to ES5 + +See our website [@babel/plugin-transform-object-rest-spread](https://babeljs.io/docs/babel-plugin-transform-object-rest-spread) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-object-rest-spread +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-object-rest-spread --dev +``` diff --git a/node_modules/@babel/plugin-transform-object-rest-spread/lib/index.js b/node_modules/@babel/plugin-transform-object-rest-spread/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..1f8091c65463f96f9b56af4a58346f8f883044cb --- /dev/null +++ b/node_modules/@babel/plugin-transform-object-rest-spread/lib/index.js @@ -0,0 +1,550 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var helperPluginUtils = require('@babel/helper-plugin-utils'); +var core = require('@babel/core'); +var pluginTransformParameters = require('@babel/plugin-transform-parameters'); +var helperCompilationTargets = require('@babel/helper-compilation-targets'); +var pluginTransformDestructuring = require('@babel/plugin-transform-destructuring'); + +function shouldStoreRHSInTemporaryVariable(node) { + if (!node) return false; + if (node.type === "ArrayPattern") { + const nonNullElements = node.elements.filter(element => element !== null && element.type !== "VoidPattern"); + if (nonNullElements.length > 1) return true;else return shouldStoreRHSInTemporaryVariable(nonNullElements[0]); + } else if (node.type === "ObjectPattern") { + const { + properties + } = node; + if (properties.length > 1) return true;else if (properties.length === 0) return false;else { + const firstProperty = properties[0]; + if (firstProperty.type === "ObjectProperty") { + return shouldStoreRHSInTemporaryVariable(firstProperty.value); + } else { + return shouldStoreRHSInTemporaryVariable(firstProperty); + } + } + } else if (node.type === "AssignmentPattern") { + return shouldStoreRHSInTemporaryVariable(node.left); + } else if (node.type === "RestElement") { + if (node.argument.type === "Identifier") return true; + return shouldStoreRHSInTemporaryVariable(node.argument); + } else { + return false; + } +} + +var compatData = { + "Object.assign": { + chrome: "49", + opera: "36", + edge: "13", + firefox: "36", + safari: "10", + node: "6", + deno: "1", + ios: "10", + samsung: "5", + opera_mobile: "36", + electron: "0.37" + } +}; + +const node = core.types.identifier("a"); +const property = core.types.objectProperty(core.types.identifier("key"), node); +const pattern = core.types.objectPattern([property]); +var ZERO_REFS = core.types.isReferenced(node, property, pattern) ? 1 : 0; +var index = helperPluginUtils.declare((api, opts) => { + var _api$assumption, _api$assumption2, _api$assumption3, _api$assumption4; + api.assertVersion("^7.0.0-0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta"); + const targets = api.targets(); + const supportsObjectAssign = !helperCompilationTargets.isRequired("Object.assign", targets, { + compatData + }); + const { + useBuiltIns = supportsObjectAssign, + loose = false + } = opts; + if (typeof loose !== "boolean") { + throw new Error(".loose must be a boolean, or undefined"); + } + const ignoreFunctionLength = (_api$assumption = api.assumption("ignoreFunctionLength")) != null ? _api$assumption : loose; + const objectRestNoSymbols = (_api$assumption2 = api.assumption("objectRestNoSymbols")) != null ? _api$assumption2 : loose; + const pureGetters = (_api$assumption3 = api.assumption("pureGetters")) != null ? _api$assumption3 : loose; + const setSpreadProperties = (_api$assumption4 = api.assumption("setSpreadProperties")) != null ? _api$assumption4 : loose; + function getExtendsHelper(file) { + return useBuiltIns ? core.types.memberExpression(core.types.identifier("Object"), core.types.identifier("assign")) : file.addHelper("extends"); + } + function* iterateObjectRestElement(path) { + switch (path.type) { + case "ArrayPattern": + for (const elementPath of path.get("elements")) { + if (elementPath.isRestElement()) { + yield* iterateObjectRestElement(elementPath.get("argument")); + } else { + yield* iterateObjectRestElement(elementPath); + } + } + break; + case "ObjectPattern": + for (const propertyPath of path.get("properties")) { + if (propertyPath.isRestElement()) { + yield propertyPath; + } else { + yield* iterateObjectRestElement(propertyPath.get("value")); + } + } + break; + case "AssignmentPattern": + yield* iterateObjectRestElement(path.get("left")); + break; + } + } + function hasObjectRestElement(path) { + const objectRestPatternIterator = iterateObjectRestElement(path); + return !objectRestPatternIterator.next().done; + } + function visitObjectRestElements(path, visitor) { + for (const restElementPath of iterateObjectRestElement(path)) { + visitor(restElementPath); + } + } + function hasSpread(node) { + for (const prop of node.properties) { + if (core.types.isSpreadElement(prop)) { + return true; + } + } + return false; + } + function extractNormalizedKeys(pattern) { + const propsList = pattern.get("properties").map(p => p.node); + const keys = []; + let allPrimitives = true; + let hasTemplateLiteral = false; + for (const prop of propsList) { + const key = prop.key; + if (core.types.isIdentifier(key) && !prop.computed) { + keys.push(core.types.stringLiteral(key.name)); + } else if (core.types.isTemplateLiteral(key)) { + keys.push(core.types.cloneNode(key)); + hasTemplateLiteral = true; + } else if (core.types.isLiteral(key)) { + keys.push(core.types.stringLiteral(String(key.value))); + } else { + if (core.types.isAssignmentExpression(key) && core.types.isIdentifier(key.left)) { + keys.push(core.types.cloneNode(key.left)); + } else { + keys.push(core.types.cloneNode(key)); + } + const keyToCheck = core.types.isAssignmentExpression(key) ? key.right : key; + if (core.types.isMemberExpression(keyToCheck, { + computed: false + }) && core.types.isIdentifier(keyToCheck.object, { + name: "Symbol" + }) || core.types.isCallExpression(keyToCheck) && core.types.matchesPattern(keyToCheck.callee, "Symbol.for")) ; else { + allPrimitives = false; + } + } + } + return { + keys, + allPrimitives, + hasTemplateLiteral + }; + } + function replaceImpureComputedKeys(properties, scope) { + const tempVariableDeclarations = []; + for (const property of properties) { + const keyExpression = property.get("key"); + if (keyExpression.isAssignmentExpression() && keyExpression.get("left").isIdentifier()) { + const identName = keyExpression.node.left.name; + if (scope.hasUid(identName)) { + continue; + } + } + if (property.node.computed && !keyExpression.isPure()) { + const tempVariableName = scope.generateUidBasedOnNode(keyExpression.node); + const tempVariableDeclaration = core.types.variableDeclarator(core.types.identifier(tempVariableName), keyExpression.node); + tempVariableDeclarations.push(tempVariableDeclaration); + keyExpression.replaceWith(core.types.identifier(tempVariableName)); + } + } + return tempVariableDeclarations; + } + function removeUnusedExcludedKeys(path) { + const bindings = path.getOuterBindingIdentifierPaths(); + Object.keys(bindings).forEach(bindingName => { + const bindingParentPath = bindings[bindingName].parentPath; + if (path.scope.getBinding(bindingName).references > ZERO_REFS || !bindingParentPath.isObjectProperty()) { + return; + } + bindingParentPath.remove(); + }); + } + function collectComputedKeysInSourceOrder(destructuringPattern) { + const computedProperties = []; + function visitPattern(pattern) { + if (pattern.isObjectPattern()) { + const properties = pattern.get("properties"); + for (const property of properties) { + if (property.isRestElement()) continue; + if (property.node.computed) { + computedProperties.push(property); + } + const nestedPattern = property.get("value"); + visitPattern(nestedPattern); + } + } else if (pattern.isArrayPattern()) { + for (const element of pattern.get("elements")) { + if (!element) continue; + if (element.isRestElement()) { + const restArgument = element.get("argument"); + visitPattern(restArgument); + } else { + visitPattern(element); + } + } + } else if (pattern.isAssignmentPattern()) { + visitPattern(pattern.get("left")); + } + } + visitPattern(destructuringPattern); + return computedProperties; + } + function createObjectRest(path, file, objRef) { + const props = path.get("properties"); + const last = props[props.length - 1]; + core.types.assertRestElement(last.node); + const restElement = core.types.cloneNode(last.node); + last.remove(); + const impureComputedPropertyDeclarators = replaceImpureComputedKeys(path.get("properties"), path.scope); + const { + keys, + allPrimitives, + hasTemplateLiteral + } = extractNormalizedKeys(path); + if (keys.length === 0) { + return [impureComputedPropertyDeclarators, restElement.argument, core.types.callExpression(getExtendsHelper(file), [core.types.objectExpression([]), core.types.sequenceExpression([core.types.callExpression(file.addHelper("objectDestructuringEmpty"), [core.types.cloneNode(objRef)]), core.types.cloneNode(objRef)])])]; + } + let keyExpression; + if (!allPrimitives) { + keyExpression = core.types.callExpression(core.types.memberExpression(core.types.arrayExpression(keys), core.types.identifier("map")), [file.addHelper("toPropertyKey")]); + } else { + keyExpression = core.types.arrayExpression(keys); + if (!hasTemplateLiteral && !core.types.isProgram(path.scope.block)) { + const program = path.findParent(path => path.isProgram()); + const id = path.scope.generateUidIdentifier("excluded"); + program.scope.push({ + id, + init: keyExpression, + kind: "const" + }); + keyExpression = core.types.cloneNode(id); + } + } + return [impureComputedPropertyDeclarators, restElement.argument, core.types.callExpression(file.addHelper(`objectWithoutProperties${objectRestNoSymbols ? "Loose" : ""}`), [core.types.cloneNode(objRef), keyExpression])]; + } + function replaceRestElement(parentPath, paramPath, container) { + if (paramPath.isAssignmentPattern()) { + replaceRestElement(parentPath, paramPath.get("left"), container); + return; + } + if (paramPath.isArrayPattern() && hasObjectRestElement(paramPath)) { + const elements = paramPath.get("elements"); + for (let i = 0; i < elements.length; i++) { + replaceRestElement(parentPath, elements[i], container); + } + } + if (paramPath.isObjectPattern() && hasObjectRestElement(paramPath)) { + const uid = parentPath.scope.generateUidIdentifier("ref"); + const declar = core.types.variableDeclaration("let", [core.types.variableDeclarator(paramPath.node, uid)]); + if (container) { + container.push(declar); + } else { + parentPath.ensureBlock(); + parentPath.get("body").unshiftContainer("body", declar); + } + paramPath.replaceWith(core.types.cloneNode(uid)); + } + } + return { + name: "transform-object-rest-spread", + manipulateOptions: (_, parser) => parser.plugins.push("objectRestSpread"), + visitor: { + Function(path) { + const params = path.get("params"); + const paramsWithRestElement = new Set(); + const idsInRestParams = new Set(); + for (let i = 0; i < params.length; ++i) { + const param = params[i]; + if (hasObjectRestElement(param)) { + paramsWithRestElement.add(i); + for (const name of Object.keys(param.getBindingIdentifiers())) { + idsInRestParams.add(name); + } + } + } + let idInRest = false; + const IdentifierHandler = function (path, functionScope) { + const name = path.node.name; + if (path.scope.getBinding(name) === functionScope.getBinding(name) && idsInRestParams.has(name)) { + idInRest = true; + path.stop(); + } + }; + let i; + for (i = 0; i < params.length && !idInRest; ++i) { + const param = params[i]; + if (!paramsWithRestElement.has(i)) { + if (param.isReferencedIdentifier() || param.isBindingIdentifier()) { + IdentifierHandler(param, path.scope); + } else { + param.traverse({ + "Scope|TypeAnnotation|TSTypeAnnotation": path => path.skip(), + "ReferencedIdentifier|BindingIdentifier": IdentifierHandler + }, path.scope); + } + } + } + if (!idInRest) { + for (let i = 0; i < params.length; ++i) { + const param = params[i]; + if (paramsWithRestElement.has(i)) { + replaceRestElement(path, param); + } + } + } else { + const shouldTransformParam = idx => idx >= i - 1 || paramsWithRestElement.has(idx); + pluginTransformParameters.convertFunctionParams(path, ignoreFunctionLength, shouldTransformParam, replaceRestElement); + } + }, + VariableDeclarator(path, file) { + if (!path.get("id").isObjectPattern()) { + return; + } + let insertionPath = path; + const originalPath = path; + if (hasObjectRestElement(path.get("id"))) { + const destructuringPattern = originalPath.get("id"); + const propertiesWithComputedKeys = collectComputedKeysInSourceOrder(destructuringPattern); + for (const property of propertiesWithComputedKeys) { + const computedKeyExpression = property.get("key"); + if (computedKeyExpression.isAssignmentExpression() && computedKeyExpression.get("left").isIdentifier() && originalPath.scope.hasUid(computedKeyExpression.node.left.name)) { + continue; + } + if (!computedKeyExpression.isPure()) { + const tempVariableName = originalPath.scope.generateUidBasedOnNode(computedKeyExpression.node); + const tempIdentifier = core.types.identifier(tempVariableName); + originalPath.scope.push({ + id: tempIdentifier, + kind: "var" + }); + computedKeyExpression.replaceWith(core.types.assignmentExpression("=", core.types.cloneNode(tempIdentifier), computedKeyExpression.node)); + } + } + } + visitObjectRestElements(path.get("id"), path => { + if (shouldStoreRHSInTemporaryVariable(originalPath.node.id) && !core.types.isIdentifier(originalPath.node.init)) { + const initRef = path.scope.generateUidIdentifierBasedOnNode(originalPath.node.init, "ref"); + originalPath.insertBefore(core.types.variableDeclarator(initRef, originalPath.node.init)); + originalPath.replaceWith(core.types.variableDeclarator(originalPath.node.id, core.types.cloneNode(initRef))); + return; + } + let ref = originalPath.node.init; + const refPropertyPath = []; + let kind; + path.findParent(path => { + if (path.isObjectProperty()) { + refPropertyPath.unshift(path); + } else if (path.isVariableDeclarator()) { + kind = path.parentPath.node.kind; + return true; + } + }); + const impureObjRefComputedDeclarators = replaceImpureComputedKeys(refPropertyPath, path.scope); + refPropertyPath.forEach(prop => { + const keyPath = prop.get("key"); + let keyForMemberExpression = keyPath.node; + if (core.types.isAssignmentExpression(keyPath.node)) { + keyForMemberExpression = keyPath.node.left; + } + ref = core.types.memberExpression(ref, core.types.cloneNode(keyForMemberExpression), prop.node.computed || core.types.isLiteral(keyPath.node)); + }); + const objectPatternPath = path.parentPath; + const [impureComputedPropertyDeclarators, argument, callExpression] = createObjectRest(objectPatternPath, file, ref); + if (pureGetters) { + removeUnusedExcludedKeys(objectPatternPath); + } + core.types.assertIdentifier(argument); + insertionPath.insertBefore(impureComputedPropertyDeclarators); + insertionPath.insertBefore(impureObjRefComputedDeclarators); + insertionPath = insertionPath.insertAfter(core.types.variableDeclarator(argument, callExpression))[0]; + path.scope.registerBinding(kind, insertionPath); + if (objectPatternPath.node.properties.length === 0) { + objectPatternPath.findParent(path => path.isObjectProperty() || path.isVariableDeclarator()).remove(); + } + }); + }, + ExportNamedDeclaration(path) { + var _path$splitExportDecl; + const declaration = path.get("declaration"); + if (!declaration.isVariableDeclaration()) return; + const hasRest = declaration.get("declarations").some(path => hasObjectRestElement(path.get("id"))); + if (!hasRest) return; + (_path$splitExportDecl = path.splitExportDeclaration) != null ? _path$splitExportDecl : path.splitExportDeclaration = require("@babel/traverse").NodePath.prototype.splitExportDeclaration; + path.splitExportDeclaration(); + }, + CatchClause(path) { + const paramPath = path.get("param"); + replaceRestElement(path, paramPath); + }, + AssignmentExpression(path, file) { + const leftPath = path.get("left"); + if (leftPath.isObjectPattern() && hasObjectRestElement(leftPath)) { + const nodes = []; + const refName = path.scope.generateUidBasedOnNode(path.node.right, "ref"); + nodes.push(core.types.variableDeclaration("var", [core.types.variableDeclarator(core.types.identifier(refName), path.node.right)])); + const [impureComputedPropertyDeclarators, argument, callExpression] = createObjectRest(leftPath, file, core.types.identifier(refName)); + if (impureComputedPropertyDeclarators.length > 0) { + nodes.push(core.types.variableDeclaration("var", impureComputedPropertyDeclarators)); + } + const nodeWithoutSpread = core.types.cloneNode(path.node); + nodeWithoutSpread.right = core.types.identifier(refName); + nodes.push(core.types.expressionStatement(nodeWithoutSpread)); + nodes.push(core.types.expressionStatement(core.types.assignmentExpression("=", argument, callExpression))); + nodes.push(core.types.expressionStatement(core.types.identifier(refName))); + path.replaceWithMultiple(nodes); + } + }, + ForXStatement(path) { + const { + node, + scope + } = path; + const leftPath = path.get("left"); + if (!leftPath.isVariableDeclaration()) { + if (!hasObjectRestElement(leftPath)) { + return; + } + const temp = scope.generateUidIdentifier("ref"); + node.left = core.types.variableDeclaration("var", [core.types.variableDeclarator(temp)]); + path.ensureBlock(); + const statementBody = path.node.body.body; + const nodes = []; + if (statementBody.length === 0 && path.isCompletionRecord()) { + nodes.unshift(core.types.expressionStatement(scope.buildUndefinedNode())); + } + nodes.unshift(core.types.expressionStatement(core.types.assignmentExpression("=", leftPath.node, core.types.cloneNode(temp)))); + pluginTransformDestructuring.unshiftForXStatementBody(path, nodes); + scope.crawl(); + return; + } else { + const patternPath = leftPath.get("declarations")[0].get("id"); + if (!hasObjectRestElement(patternPath)) { + return; + } + const left = leftPath.node; + const pattern = patternPath.node; + const key = scope.generateUidIdentifier("ref"); + node.left = core.types.variableDeclaration(left.kind, [core.types.variableDeclarator(key, null)]); + path.ensureBlock(); + pluginTransformDestructuring.unshiftForXStatementBody(path, [core.types.variableDeclaration(node.left.kind, [core.types.variableDeclarator(pattern, core.types.cloneNode(key))])]); + scope.crawl(); + return; + } + }, + ArrayPattern(path) { + const objectPatterns = []; + const { + scope + } = path; + const uidIdentifiers = []; + visitObjectRestElements(path, path => { + const objectPattern = path.parentPath; + const uid = scope.generateUidIdentifier("ref"); + objectPatterns.push({ + left: objectPattern.node, + right: uid + }); + uidIdentifiers.push(uid); + objectPattern.replaceWith(core.types.cloneNode(uid)); + path.skip(); + }); + if (objectPatterns.length > 0) { + const patternParentPath = path.findParent(path => !(path.isPattern() || path.isObjectProperty())); + const patternParent = patternParentPath.node; + switch (patternParent.type) { + case "VariableDeclarator": + patternParentPath.insertAfter(objectPatterns.map(({ + left, + right + }) => core.types.variableDeclarator(left, right))); + break; + case "AssignmentExpression": + { + for (const uidIdentifier of uidIdentifiers) { + scope.push({ + id: core.types.cloneNode(uidIdentifier) + }); + } + patternParentPath.insertAfter(objectPatterns.map(({ + left, + right + }) => core.types.assignmentExpression("=", left, right))); + } + break; + default: + throw new Error(`Unexpected pattern parent type: ${patternParent.type}`); + } + } + }, + ObjectExpression(path, file) { + if (!hasSpread(path.node)) return; + let helper; + if (setSpreadProperties) { + helper = getExtendsHelper(file); + } else { + try { + helper = file.addHelper("objectSpread2"); + } catch (_unused) { + this.file.declarations.objectSpread2 = null; + helper = file.addHelper("objectSpread"); + } + } + let exp = null; + let props = []; + function make() { + const hadProps = props.length > 0; + const obj = core.types.objectExpression(props); + props = []; + if (!exp) { + exp = core.types.callExpression(helper, [obj]); + return; + } + if (pureGetters) { + if (hadProps) { + exp.arguments.push(obj); + } + return; + } + exp = core.types.callExpression(core.types.cloneNode(helper), [exp, ...(hadProps ? [core.types.objectExpression([]), obj] : [])]); + } + for (const prop of path.node.properties) { + if (core.types.isSpreadElement(prop)) { + make(); + exp.arguments.push(prop.argument); + } else { + props.push(prop); + } + } + if (props.length) make(); + path.replaceWith(exp); + } + } + }; +}); + +exports.default = index; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-object-rest-spread/lib/index.js.map b/node_modules/@babel/plugin-transform-object-rest-spread/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..b16613b4c3ee9924786ba688f527fbf1e81fbccd --- /dev/null +++ b/node_modules/@babel/plugin-transform-object-rest-spread/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../src/shouldStoreRHSInTemporaryVariable.ts","../src/compat-data.ts","../src/index.ts"],"sourcesContent":["import type { types as t } from \"@babel/core\";\n\n/**\n * This is a helper function to determine if we should create an intermediate variable\n * such that the RHS of an assignment is not duplicated.\n *\n * See https://github.com/babel/babel/pull/13711#issuecomment-914388382 for discussion\n * on further optimizations.\n */\nexport default function shouldStoreRHSInTemporaryVariable(\n node: t.LVal | t.PatternLike,\n): boolean {\n if (!node) return false;\n if (node.type === \"ArrayPattern\") {\n const nonNullElements = node.elements.filter(\n (element): element is Exclude<(typeof node.elements)[0], t.VoidPattern> =>\n element !== null && element.type !== \"VoidPattern\",\n );\n if (nonNullElements.length > 1) return true;\n else return shouldStoreRHSInTemporaryVariable(nonNullElements[0]);\n } else if (node.type === \"ObjectPattern\") {\n const { properties } = node;\n if (properties.length > 1) return true;\n else if (properties.length === 0) return false;\n else {\n const firstProperty = properties[0];\n if (firstProperty.type === \"ObjectProperty\") {\n // the value of the property must be an LVal\n return shouldStoreRHSInTemporaryVariable(firstProperty.value as t.LVal);\n } else {\n return shouldStoreRHSInTemporaryVariable(firstProperty);\n }\n }\n } else if (node.type === \"AssignmentPattern\") {\n return shouldStoreRHSInTemporaryVariable(node.left);\n } else if (node.type === \"RestElement\") {\n if (node.argument.type === \"Identifier\") return true;\n return shouldStoreRHSInTemporaryVariable(node.argument);\n } else {\n // node is Identifier or MemberExpression\n return false;\n }\n}\n","export default {\n \"Object.assign\": {\n chrome: \"49\",\n opera: \"36\",\n edge: \"13\",\n firefox: \"36\",\n safari: \"10\",\n node: \"6\",\n deno: \"1\",\n ios: \"10\",\n samsung: \"5\",\n opera_mobile: \"36\",\n electron: \"0.37\",\n },\n};\n","import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t } from \"@babel/core\";\nimport type { PluginPass, NodePath, Scope } from \"@babel/core\";\nimport { convertFunctionParams } from \"@babel/plugin-transform-parameters\";\nimport { isRequired } from \"@babel/helper-compilation-targets\";\nimport shouldStoreRHSInTemporaryVariable from \"./shouldStoreRHSInTemporaryVariable.ts\";\nimport compatData from \"./compat-data.ts\";\nimport { unshiftForXStatementBody } from \"@babel/plugin-transform-destructuring\";\n\n// @babel/types <=7.3.3 counts FOO as referenced in var { x: FOO }.\n// We need to detect this bug to know if \"unused\" means 0 or 1 references.\nif (!process.env.BABEL_8_BREAKING) {\n const node = t.identifier(\"a\");\n const property = t.objectProperty(t.identifier(\"key\"), node);\n const pattern = t.objectPattern([property]);\n\n // eslint-disable-next-line no-var\n var ZERO_REFS = t.isReferenced(node, property, pattern) ? 1 : 0;\n}\n\nexport interface Options {\n useBuiltIns?: boolean;\n loose?: boolean;\n}\n\nexport default declare((api, opts: Options) => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n\n const targets = api.targets();\n const supportsObjectAssign = !isRequired(\"Object.assign\", targets, {\n compatData,\n });\n\n const { useBuiltIns = supportsObjectAssign, loose = false } = opts;\n\n if (typeof loose !== \"boolean\") {\n throw new Error(\".loose must be a boolean, or undefined\");\n }\n\n const ignoreFunctionLength = api.assumption(\"ignoreFunctionLength\") ?? loose;\n const objectRestNoSymbols = api.assumption(\"objectRestNoSymbols\") ?? loose;\n const pureGetters = api.assumption(\"pureGetters\") ?? loose;\n const setSpreadProperties = api.assumption(\"setSpreadProperties\") ?? loose;\n\n function getExtendsHelper(\n file: PluginPass,\n ): t.MemberExpression | t.Identifier {\n return useBuiltIns\n ? t.memberExpression(t.identifier(\"Object\"), t.identifier(\"assign\"))\n : file.addHelper(\"extends\");\n }\n\n function* iterateObjectRestElement(\n path: NodePath,\n ): Generator> {\n switch (path.type) {\n case \"ArrayPattern\":\n for (const elementPath of path.get(\"elements\")) {\n if (elementPath.isRestElement()) {\n yield* iterateObjectRestElement(elementPath.get(\"argument\"));\n } else {\n yield* iterateObjectRestElement(elementPath);\n }\n }\n break;\n case \"ObjectPattern\":\n for (const propertyPath of path.get(\"properties\")) {\n if (propertyPath.isRestElement()) {\n yield propertyPath;\n } else {\n yield* iterateObjectRestElement(\n propertyPath.get(\"value\") as NodePath,\n );\n }\n }\n break;\n case \"AssignmentPattern\":\n yield* iterateObjectRestElement(path.get(\"left\"));\n break;\n default:\n break;\n }\n }\n\n function hasObjectRestElement(\n path: NodePath,\n ): boolean {\n const objectRestPatternIterator = iterateObjectRestElement(path);\n return !objectRestPatternIterator.next().done;\n }\n\n function visitObjectRestElements(\n path: NodePath,\n visitor: (path: NodePath) => void,\n ) {\n for (const restElementPath of iterateObjectRestElement(path)) {\n visitor(restElementPath);\n }\n }\n\n function hasSpread(node: t.ObjectExpression): boolean {\n for (const prop of node.properties) {\n if (t.isSpreadElement(prop)) {\n return true;\n }\n }\n return false;\n }\n\n // returns an array of all keys of an object, and a status flag indicating if all extracted keys\n // were converted to stringLiterals or not\n // e.g. extracts {keys: [\"a\", \"b\", \"3\", ++x], allPrimitives: false }\n // from ast of {a: \"foo\", b, 3: \"bar\", [++x]: \"baz\"}\n // `allPrimitives: false` doesn't necessarily mean that there is a non-primitive, but just\n // that we are not sure.\n function extractNormalizedKeys(pattern: NodePath) {\n // RestElement has been removed in createObjectRest\n const propsList: t.ObjectProperty[] = pattern\n .get(\"properties\")\n .map((p: NodePath) => p.node as t.ObjectProperty);\n\n const keys: t.Expression[] = [];\n let allPrimitives = true;\n let hasTemplateLiteral = false;\n\n for (const prop of propsList) {\n const key = prop.key;\n if (t.isIdentifier(key) && !prop.computed) {\n // since a key {a: 3} is equivalent to {\"a\": 3}, use the latter\n keys.push(t.stringLiteral(key.name));\n } else if (t.isTemplateLiteral(key)) {\n keys.push(t.cloneNode(key));\n hasTemplateLiteral = true;\n } else if (t.isLiteral(key)) {\n keys.push(\n t.stringLiteral(\n String(\n // @ts-expect-error prop.key can not be a NullLiteral\n key.value,\n ),\n ),\n );\n } else {\n // If the key is an inline memoization assignment (e.g. _key = expr),\n // use just the identifier part for the exclusion array\n if (t.isAssignmentExpression(key) && t.isIdentifier(key.left)) {\n // For inline memoized keys, use just the left side (the identifier)\n // to avoid evaluating the assignment expression multiple times\n keys.push(t.cloneNode(key.left));\n } else {\n // @ts-expect-error private name has been handled by destructuring-private\n keys.push(t.cloneNode(key));\n }\n\n // Check the original key for primitiveness\n const keyToCheck = t.isAssignmentExpression(key) ? key.right : key;\n if (\n (t.isMemberExpression(keyToCheck, { computed: false }) &&\n t.isIdentifier(keyToCheck.object, { name: \"Symbol\" })) ||\n (t.isCallExpression(keyToCheck) &&\n t.matchesPattern(keyToCheck.callee, \"Symbol.for\"))\n ) {\n // there all return a primitive\n } else {\n allPrimitives = false;\n }\n }\n }\n\n return { keys, allPrimitives, hasTemplateLiteral };\n }\n\n /**\n * Replaces computed keys that have side effects with inline memoization.\n *\n * Example: { [foo()]: x } becomes { [_temp = foo()]: x } with upfront declaration: var _temp;\n *\n * This function is called in multiple places during transformation. To avoid creating\n * duplicate temp variables, we skip properties that were already memoized inline by\n * checking if the key is an assignment expression with a UID identifier.\n */\n function replaceImpureComputedKeys(\n properties: NodePath[],\n scope: Scope,\n ) {\n const tempVariableDeclarations: t.VariableDeclarator[] = [];\n\n for (const property of properties) {\n // PrivateName is handled in destructuring-private plugin\n const keyExpression = property.get(\"key\") as NodePath;\n\n // Skip if already memoised (inline assignment expression with a UID)\n // This happens when inline memoization is used for nested object rest\n if (\n keyExpression.isAssignmentExpression() &&\n keyExpression.get(\"left\").isIdentifier()\n ) {\n const identName = (keyExpression.node.left as t.Identifier).name;\n // Check if it's a UID (hasUid already searches parent scopes)\n if (scope.hasUid(identName)) {\n continue;\n }\n }\n\n // Only process computed keys that have side effects (function calls, mutations, etc.)\n if (property.node.computed && !keyExpression.isPure()) {\n const tempVariableName = scope.generateUidBasedOnNode(\n keyExpression.node,\n );\n const tempVariableDeclaration = t.variableDeclarator(\n t.identifier(tempVariableName),\n keyExpression.node,\n );\n tempVariableDeclarations.push(tempVariableDeclaration);\n keyExpression.replaceWith(t.identifier(tempVariableName));\n }\n }\n\n return tempVariableDeclarations;\n }\n\n function removeUnusedExcludedKeys(path: NodePath): void {\n const bindings = path.getOuterBindingIdentifierPaths();\n\n Object.keys(bindings).forEach(bindingName => {\n const bindingParentPath = bindings[bindingName].parentPath;\n if (\n path.scope.getBinding(bindingName).references >\n (process.env.BABEL_8_BREAKING ? 0 : ZERO_REFS) ||\n !bindingParentPath.isObjectProperty()\n ) {\n return;\n }\n bindingParentPath.remove();\n });\n }\n\n /**\n * Finds all computed property keys in a destructuring pattern,\n * in the order they appear in the source code.\n *\n * Example: const { [a()]: { [b()]: x, ...rest }, [c()]: y } = obj\n * Returns: [a(), b(), c()] in that order\n *\n * This is needed because when nested patterns have rest elements (...rest),\n * the transformation splits them up, but need to ensure a(), b(), c()\n * are always evaluated in this exact order (left-to-right as written).\n */\n function collectComputedKeysInSourceOrder(\n destructuringPattern: NodePath,\n ): NodePath[] {\n const computedProperties: NodePath[] = [];\n\n function visitPattern(pattern: NodePath) {\n if (pattern.isObjectPattern()) {\n const properties = pattern.get(\"properties\") as NodePath<\n t.ObjectProperty | t.RestElement\n >[];\n for (const property of properties) {\n if (property.isRestElement()) continue;\n\n // If this property has a computed key like [someExpression], collect it\n if (property.node.computed) {\n computedProperties.push(property);\n }\n\n // Then look inside the property's value for more nested patterns\n const nestedPattern = property.get(\n \"value\",\n ) as NodePath;\n visitPattern(nestedPattern as NodePath);\n }\n } else if (pattern.isArrayPattern()) {\n for (const element of pattern.get(\"elements\")) {\n if (!element) continue;\n if (element.isRestElement()) {\n const restArgument = element.get(\"argument\") as NodePath<\n t.PatternLike | t.LVal\n >;\n visitPattern(restArgument);\n } else {\n visitPattern(element as NodePath);\n }\n }\n } else if (pattern.isAssignmentPattern()) {\n visitPattern(pattern.get(\"left\") as NodePath);\n }\n }\n\n visitPattern(\n destructuringPattern as unknown as NodePath,\n );\n return computedProperties;\n }\n\n //expects path to an object pattern\n function createObjectRest(\n path: NodePath,\n file: PluginPass,\n objRef: t.Identifier | t.MemberExpression,\n ): [\n t.VariableDeclarator[],\n t.AssignmentExpression[\"left\"],\n t.CallExpression,\n ] {\n const props = path.get(\"properties\");\n const last = props[props.length - 1];\n t.assertRestElement(last.node);\n const restElement = t.cloneNode(last.node);\n last.remove();\n\n const impureComputedPropertyDeclarators = replaceImpureComputedKeys(\n path.get(\"properties\") as NodePath[],\n path.scope,\n );\n const { keys, allPrimitives, hasTemplateLiteral } =\n extractNormalizedKeys(path);\n\n if (keys.length === 0) {\n return [\n impureComputedPropertyDeclarators,\n restElement.argument,\n t.callExpression(getExtendsHelper(file), [\n t.objectExpression([]),\n t.sequenceExpression([\n t.callExpression(file.addHelper(\"objectDestructuringEmpty\"), [\n t.cloneNode(objRef),\n ]),\n t.cloneNode(objRef),\n ]),\n ]),\n ];\n }\n\n let keyExpression;\n if (!allPrimitives) {\n // map to toPropertyKey to handle the possible non-string values\n keyExpression = t.callExpression(\n t.memberExpression(t.arrayExpression(keys), t.identifier(\"map\")),\n [file.addHelper(\"toPropertyKey\")],\n );\n } else {\n keyExpression = t.arrayExpression(keys);\n\n if (!hasTemplateLiteral && !t.isProgram(path.scope.block)) {\n // Hoist definition of excluded keys, so that it's not created each time.\n const program = path.findParent(path => path.isProgram());\n const id = path.scope.generateUidIdentifier(\"excluded\");\n\n program.scope.push({\n id,\n init: keyExpression,\n kind: \"const\",\n });\n\n keyExpression = t.cloneNode(id);\n }\n }\n\n return [\n impureComputedPropertyDeclarators,\n restElement.argument,\n t.callExpression(\n file.addHelper(\n `objectWithoutProperties${objectRestNoSymbols ? \"Loose\" : \"\"}`,\n ),\n [t.cloneNode(objRef), keyExpression],\n ),\n ];\n }\n\n function replaceRestElement(\n parentPath: NodePath,\n paramPath: NodePath<\n t.Function[\"params\"][number] | t.AssignmentPattern[\"left\"]\n >,\n container?: t.VariableDeclaration[],\n ): void {\n if (paramPath.isAssignmentPattern()) {\n replaceRestElement(parentPath, paramPath.get(\"left\"), container);\n return;\n }\n\n if (paramPath.isArrayPattern() && hasObjectRestElement(paramPath)) {\n const elements = paramPath.get(\"elements\");\n\n for (let i = 0; i < elements.length; i++) {\n replaceRestElement(parentPath, elements[i], container);\n }\n }\n\n if (paramPath.isObjectPattern() && hasObjectRestElement(paramPath)) {\n const uid = parentPath.scope.generateUidIdentifier(\"ref\");\n\n const declar = t.variableDeclaration(\"let\", [\n t.variableDeclarator(paramPath.node, uid),\n ]);\n\n if (container) {\n container.push(declar);\n } else {\n parentPath.ensureBlock();\n (parentPath.get(\"body\") as NodePath).unshiftContainer(\n \"body\",\n declar,\n );\n }\n paramPath.replaceWith(t.cloneNode(uid));\n }\n }\n\n return {\n name: \"transform-object-rest-spread\",\n manipulateOptions: process.env.BABEL_8_BREAKING\n ? undefined\n : (_, parser) => parser.plugins.push(\"objectRestSpread\"),\n\n visitor: {\n // function a({ b, ...c }) {}\n Function(path) {\n const params = path.get(\"params\");\n const paramsWithRestElement = new Set();\n const idsInRestParams = new Set();\n for (let i = 0; i < params.length; ++i) {\n const param = params[i];\n if (hasObjectRestElement(param)) {\n paramsWithRestElement.add(i);\n for (const name of Object.keys(param.getBindingIdentifiers())) {\n idsInRestParams.add(name);\n }\n }\n }\n\n // if true, a parameter exists that has an id in its initializer\n // that is also an id bound in a rest parameter\n // example: f({...R}, a = R)\n let idInRest = false;\n\n const IdentifierHandler = function (\n path: NodePath,\n functionScope: Scope,\n ) {\n const name = path.node.name;\n if (\n path.scope.getBinding(name) === functionScope.getBinding(name) &&\n idsInRestParams.has(name)\n ) {\n idInRest = true;\n path.stop();\n }\n };\n\n let i: number;\n for (i = 0; i < params.length && !idInRest; ++i) {\n const param = params[i];\n if (!paramsWithRestElement.has(i)) {\n if (param.isReferencedIdentifier() || param.isBindingIdentifier()) {\n IdentifierHandler(param, path.scope);\n } else {\n param.traverse(\n {\n \"Scope|TypeAnnotation|TSTypeAnnotation\": path => path.skip(),\n \"ReferencedIdentifier|BindingIdentifier\": IdentifierHandler,\n },\n path.scope,\n );\n }\n }\n }\n\n if (!idInRest) {\n for (let i = 0; i < params.length; ++i) {\n const param = params[i];\n if (paramsWithRestElement.has(i)) {\n replaceRestElement(path, param);\n }\n }\n } else {\n const shouldTransformParam = (idx: number) =>\n idx >= i - 1 || paramsWithRestElement.has(idx);\n convertFunctionParams(\n path,\n ignoreFunctionLength,\n shouldTransformParam,\n replaceRestElement,\n );\n }\n },\n\n // adapted from transform-destructuring/src/index.js#pushObjectRest\n // const { a, ...b } = c;\n VariableDeclarator(path, file) {\n if (!path.get(\"id\").isObjectPattern()) {\n return;\n }\n\n let insertionPath = path;\n const originalPath = path;\n\n /**\n * Fix for: https://github.com/babel/babel/issues/17274\n *\n * Problem: When you have nested destructuring with computed keys and rest elements:\n * const { [log(0)]: { [log(1)]: x, ...rest }, [log(2)]: y } = obj\n *\n * The functions log(0), log(1), log(2) must be called in that exact order.\n * But without this fix, the nested pattern gets processed first, causing the wrong order.\n *\n * Additionally, with default values:\n * const { [log(0)]: x = log(1), [log(2)]: y } = obj\n *\n * The order must be: log(0), then log(1) (if x is undefined), then log(2).\n *\n * Solution: Use inline memoization with assignment expressions.\n * Transform:\n * const { [log(0)]: { [log(1)]: x, ...rest }, [log(2)]: y } = obj\n * Into:\n * var _log, _log2, _log3;\n * const { [_log = log(0)]: { [_log2 = log(1)]: x, ...rest }, [_log3 = log(2)]: y } = obj\n *\n * This preserves correct evaluation order even with default values.\n */\n\n // Only memoize computed keys if there are rest elements that require this fix\n if (hasObjectRestElement(path.get(\"id\"))) {\n // Find all computed keys (like [someExpression]) in left-to-right order\n const destructuringPattern = originalPath.get(\n \"id\",\n ) as NodePath;\n const propertiesWithComputedKeys =\n collectComputedKeysInSourceOrder(destructuringPattern);\n\n // For each computed key that has side effects (not a simple variable)\n for (const property of propertiesWithComputedKeys) {\n const computedKeyExpression = property.get(\n \"key\",\n ) as NodePath;\n\n // Skip if already memoised (assignment expression with a UID)\n if (\n computedKeyExpression.isAssignmentExpression() &&\n computedKeyExpression.get(\"left\").isIdentifier() &&\n originalPath.scope.hasUid(\n (computedKeyExpression.node.left as t.Identifier).name,\n )\n ) {\n continue;\n }\n\n // Check if the expression has side effects (function call, ++x, etc.)\n if (!computedKeyExpression.isPure()) {\n // Create a temporary variable identifier\n const tempVariableName =\n originalPath.scope.generateUidBasedOnNode(\n computedKeyExpression.node,\n );\n const tempIdentifier = t.identifier(tempVariableName);\n\n // Declare the variable upfront with no initializer (var declaration)\n originalPath.scope.push({\n id: tempIdentifier,\n kind: \"var\",\n });\n\n // Replace [log(0)] with [_key = log(0)] for inline memoization\n computedKeyExpression.replaceWith(\n t.assignmentExpression(\n \"=\",\n t.cloneNode(tempIdentifier),\n computedKeyExpression.node,\n ),\n );\n }\n }\n }\n\n visitObjectRestElements(path.get(\"id\"), path => {\n if (\n // skip single-property case, e.g.\n // const { ...x } = foo();\n // since the RHS will not be duplicated\n shouldStoreRHSInTemporaryVariable(originalPath.node.id) &&\n !t.isIdentifier(originalPath.node.init)\n ) {\n // const { a, ...b } = foo();\n // to avoid calling foo() twice, as a first step convert it to:\n // const _foo = foo(),\n // { a, ...b } = _foo;\n const initRef = path.scope.generateUidIdentifierBasedOnNode(\n originalPath.node.init,\n \"ref\",\n );\n // insert _foo = foo()\n originalPath.insertBefore(\n t.variableDeclarator(initRef, originalPath.node.init),\n );\n // replace foo() with _foo\n originalPath.replaceWith(\n t.variableDeclarator(originalPath.node.id, t.cloneNode(initRef)),\n );\n\n return;\n }\n\n let ref = originalPath.node.init;\n const refPropertyPath: NodePath[] = [];\n let kind;\n\n path.findParent((path: NodePath): boolean => {\n if (path.isObjectProperty()) {\n refPropertyPath.unshift(path);\n } else if (path.isVariableDeclarator()) {\n kind = path.parentPath.node.kind;\n return true;\n }\n });\n\n const impureObjRefComputedDeclarators = replaceImpureComputedKeys(\n refPropertyPath,\n path.scope,\n );\n refPropertyPath.forEach(prop => {\n // Get the current key (which may have been transformed to an inline assignment)\n const keyPath = prop.get(\"key\") as NodePath;\n let keyForMemberExpression: t.Expression = keyPath.node;\n\n // If the key is an inline memoization assignment, use just the identifier\n if (t.isAssignmentExpression(keyPath.node)) {\n // For inline memoized keys, extract just the left side (the identifier)\n // to avoid re-evaluating the assignment expression\n keyForMemberExpression = keyPath.node.left as t.Expression;\n }\n\n ref = t.memberExpression(\n ref,\n t.cloneNode(keyForMemberExpression),\n prop.node.computed || t.isLiteral(keyPath.node),\n );\n });\n\n const objectPatternPath =\n path.parentPath as NodePath;\n\n const [impureComputedPropertyDeclarators, argument, callExpression] =\n createObjectRest(\n objectPatternPath,\n file,\n ref as t.MemberExpression,\n );\n\n if (pureGetters) {\n removeUnusedExcludedKeys(objectPatternPath);\n }\n\n t.assertIdentifier(argument);\n\n insertionPath.insertBefore(impureComputedPropertyDeclarators);\n\n insertionPath.insertBefore(impureObjRefComputedDeclarators);\n\n insertionPath = insertionPath.insertAfter(\n t.variableDeclarator(argument, callExpression),\n )[0];\n\n path.scope.registerBinding(kind, insertionPath);\n\n if (objectPatternPath.node.properties.length === 0) {\n objectPatternPath\n .findParent(\n path => path.isObjectProperty() || path.isVariableDeclarator(),\n )\n .remove();\n }\n });\n },\n\n // taken from transform-destructuring/src/index.js#visitor\n // export var { a, ...b } = c;\n ExportNamedDeclaration(path) {\n const declaration = path.get(\"declaration\");\n if (!declaration.isVariableDeclaration()) return;\n\n const hasRest = declaration\n .get(\"declarations\")\n .some(path => hasObjectRestElement(path.get(\"id\")));\n if (!hasRest) return;\n\n // Split the declaration and export list into two declarations so that the variable\n // declaration can be split up later without needing to worry about not being a\n // top-level statement.\n if (!process.env.BABEL_8_BREAKING && !USE_ESM && !IS_STANDALONE) {\n // polyfill when being run by an older Babel version\n path.splitExportDeclaration ??=\n // eslint-disable-next-line no-restricted-globals\n require(\"@babel/traverse\").NodePath.prototype.splitExportDeclaration;\n }\n path.splitExportDeclaration();\n },\n\n // try {} catch ({a, ...b}) {}\n CatchClause(path) {\n const paramPath = path.get(\"param\");\n replaceRestElement(path, paramPath);\n },\n\n // ({a, ...b} = c);\n AssignmentExpression(path, file) {\n const leftPath = path.get(\"left\");\n if (leftPath.isObjectPattern() && hasObjectRestElement(leftPath)) {\n const nodes = [];\n\n const refName = path.scope.generateUidBasedOnNode(\n path.node.right,\n \"ref\",\n );\n\n nodes.push(\n t.variableDeclaration(\"var\", [\n t.variableDeclarator(t.identifier(refName), path.node.right),\n ]),\n );\n\n const [impureComputedPropertyDeclarators, argument, callExpression] =\n createObjectRest(leftPath, file, t.identifier(refName));\n\n if (impureComputedPropertyDeclarators.length > 0) {\n nodes.push(\n t.variableDeclaration(\"var\", impureComputedPropertyDeclarators),\n );\n }\n\n const nodeWithoutSpread = t.cloneNode(path.node);\n nodeWithoutSpread.right = t.identifier(refName);\n nodes.push(t.expressionStatement(nodeWithoutSpread));\n nodes.push(\n t.expressionStatement(\n t.assignmentExpression(\"=\", argument, callExpression),\n ),\n );\n nodes.push(t.expressionStatement(t.identifier(refName)));\n\n path.replaceWithMultiple(nodes);\n }\n },\n\n // taken from transform-destructuring/src/index.js#visitor\n ForXStatement(path: NodePath) {\n const { node, scope } = path;\n const leftPath = path.get(\"left\");\n\n if (!leftPath.isVariableDeclaration()) {\n if (!hasObjectRestElement(leftPath)) {\n return;\n }\n // for ({a, ...b} of []) {}\n const temp = scope.generateUidIdentifier(\"ref\");\n\n node.left = t.variableDeclaration(\"var\", [\n t.variableDeclarator(temp),\n ]);\n\n path.ensureBlock();\n\n const statementBody = (path.node.body as t.BlockStatement).body;\n const nodes = [];\n // todo: the completion of a for statement can only be observed from\n // a do block (or eval that we don't support),\n // but the new do-expression proposal plans to ban iteration ends in the\n // do block, maybe we can get rid of this\n if (statementBody.length === 0 && path.isCompletionRecord()) {\n nodes.unshift(t.expressionStatement(scope.buildUndefinedNode()));\n }\n\n nodes.unshift(\n t.expressionStatement(\n t.assignmentExpression(\"=\", leftPath.node, t.cloneNode(temp)),\n ),\n );\n\n unshiftForXStatementBody(path, nodes);\n scope.crawl();\n return;\n } else {\n // for (var {a, ...b} of []) {}\n const patternPath = leftPath.get(\"declarations\")[0].get(\"id\");\n if (!hasObjectRestElement(patternPath)) {\n return;\n }\n const left = leftPath.node;\n const pattern = patternPath.node;\n\n const key = scope.generateUidIdentifier(\"ref\");\n node.left = t.variableDeclaration(left.kind, [\n t.variableDeclarator(key, null),\n ]);\n\n path.ensureBlock();\n\n unshiftForXStatementBody(path, [\n t.variableDeclaration(node.left.kind, [\n t.variableDeclarator(pattern, t.cloneNode(key)),\n ]),\n ]);\n scope.crawl();\n return;\n }\n },\n\n // [{a, ...b}] = c;\n ArrayPattern(path) {\n type LhsAndRhs = { left: t.ObjectPattern; right: t.Identifier };\n const objectPatterns: LhsAndRhs[] = [];\n const { scope } = path;\n const uidIdentifiers: t.Identifier[] = [];\n\n visitObjectRestElements(path, path => {\n const objectPattern = path.parentPath as NodePath;\n\n const uid = scope.generateUidIdentifier(\"ref\");\n objectPatterns.push({ left: objectPattern.node, right: uid });\n uidIdentifiers.push(uid);\n\n objectPattern.replaceWith(t.cloneNode(uid));\n path.skip();\n });\n\n if (objectPatterns.length > 0) {\n const patternParentPath = path.findParent(\n path => !(path.isPattern() || path.isObjectProperty()),\n );\n const patternParent = patternParentPath.node;\n switch (patternParent.type) {\n case \"VariableDeclarator\":\n patternParentPath.insertAfter(\n objectPatterns.map(({ left, right }) =>\n t.variableDeclarator(left, right),\n ),\n );\n break;\n case \"AssignmentExpression\":\n {\n for (const uidIdentifier of uidIdentifiers) {\n scope.push({ id: t.cloneNode(uidIdentifier) });\n }\n patternParentPath.insertAfter(\n objectPatterns.map(({ left, right }) =>\n t.assignmentExpression(\"=\", left, right),\n ),\n );\n }\n break;\n default:\n throw new Error(\n `Unexpected pattern parent type: ${patternParent.type}`,\n );\n }\n }\n },\n\n // var a = { ...b, ...c }\n ObjectExpression(path, file) {\n if (!hasSpread(path.node)) return;\n\n let helper: t.Identifier | t.MemberExpression;\n if (setSpreadProperties) {\n helper = getExtendsHelper(file);\n } else {\n if (process.env.BABEL_8_BREAKING) {\n helper = file.addHelper(\"objectSpread2\");\n } else {\n try {\n helper = file.addHelper(\"objectSpread2\");\n } catch {\n // TODO: This is needed to workaround https://github.com/babel/babel/issues/10187\n // and https://github.com/babel/babel/issues/10179 for older @babel/core versions\n // where #10187 isn't fixed.\n this.file.declarations.objectSpread2 = null;\n\n // objectSpread2 has been introduced in v7.5.0\n // We have to maintain backward compatibility.\n helper = file.addHelper(\"objectSpread\");\n }\n }\n }\n\n let exp: t.CallExpression = null;\n let props: t.ObjectMember[] = [];\n\n function make() {\n const hadProps = props.length > 0;\n const obj = t.objectExpression(props);\n props = [];\n\n if (!exp) {\n exp = t.callExpression(helper, [obj]);\n return;\n }\n\n // When we can assume that getters are pure and don't depend on\n // the order of evaluation, we can avoid making multiple calls.\n if (pureGetters) {\n if (hadProps) {\n exp.arguments.push(obj);\n }\n return;\n }\n\n exp = t.callExpression(t.cloneNode(helper), [\n exp,\n // If we have static props, we need to insert an empty object\n // because the odd arguments are copied with [[Get]], not\n // [[GetOwnProperty]]\n ...(hadProps ? [t.objectExpression([]), obj] : []),\n ]);\n }\n\n for (const prop of path.node.properties) {\n if (t.isSpreadElement(prop)) {\n make();\n exp.arguments.push(prop.argument);\n } else {\n props.push(prop);\n }\n }\n\n if (props.length) make();\n\n path.replaceWith(exp);\n },\n },\n };\n});\n"],"names":["shouldStoreRHSInTemporaryVariable","node","type","nonNullElements","elements","filter","element","length","properties","firstProperty","value","left","argument","chrome","opera","edge","firefox","safari","deno","ios","samsung","opera_mobile","electron","t","identifier","property","objectProperty","pattern","objectPattern","ZERO_REFS","isReferenced","declare","api","opts","_api$assumption","_api$assumption2","_api$assumption3","_api$assumption4","assertVersion","targets","supportsObjectAssign","isRequired","compatData","useBuiltIns","loose","Error","ignoreFunctionLength","assumption","objectRestNoSymbols","pureGetters","setSpreadProperties","getExtendsHelper","file","memberExpression","addHelper","iterateObjectRestElement","path","elementPath","get","isRestElement","propertyPath","hasObjectRestElement","objectRestPatternIterator","next","done","visitObjectRestElements","visitor","restElementPath","hasSpread","prop","isSpreadElement","extractNormalizedKeys","propsList","map","p","keys","allPrimitives","hasTemplateLiteral","key","isIdentifier","computed","push","stringLiteral","name","isTemplateLiteral","cloneNode","isLiteral","String","isAssignmentExpression","keyToCheck","right","isMemberExpression","object","isCallExpression","matchesPattern","callee","replaceImpureComputedKeys","scope","tempVariableDeclarations","keyExpression","identName","hasUid","isPure","tempVariableName","generateUidBasedOnNode","tempVariableDeclaration","variableDeclarator","replaceWith","removeUnusedExcludedKeys","bindings","getOuterBindingIdentifierPaths","Object","forEach","bindingName","bindingParentPath","parentPath","getBinding","references","isObjectProperty","remove","collectComputedKeysInSourceOrder","destructuringPattern","computedProperties","visitPattern","isObjectPattern","nestedPattern","isArrayPattern","restArgument","isAssignmentPattern","createObjectRest","objRef","props","last","assertRestElement","restElement","impureComputedPropertyDeclarators","callExpression","objectExpression","sequenceExpression","arrayExpression","isProgram","block","program","findParent","id","generateUidIdentifier","init","kind","replaceRestElement","paramPath","container","i","uid","declar","variableDeclaration","ensureBlock","unshiftContainer","manipulateOptions","_","parser","plugins","Function","params","paramsWithRestElement","Set","idsInRestParams","param","add","getBindingIdentifiers","idInRest","IdentifierHandler","functionScope","has","stop","isReferencedIdentifier","isBindingIdentifier","traverse","skip","shouldTransformParam","idx","convertFunctionParams","VariableDeclarator","insertionPath","originalPath","propertiesWithComputedKeys","computedKeyExpression","tempIdentifier","assignmentExpression","initRef","generateUidIdentifierBasedOnNode","insertBefore","ref","refPropertyPath","unshift","isVariableDeclarator","impureObjRefComputedDeclarators","keyPath","keyForMemberExpression","objectPatternPath","assertIdentifier","insertAfter","registerBinding","ExportNamedDeclaration","_path$splitExportDecl","declaration","isVariableDeclaration","hasRest","some","splitExportDeclaration","require","NodePath","prototype","CatchClause","AssignmentExpression","leftPath","nodes","refName","nodeWithoutSpread","expressionStatement","replaceWithMultiple","ForXStatement","temp","statementBody","body","isCompletionRecord","buildUndefinedNode","unshiftForXStatementBody","crawl","patternPath","ArrayPattern","objectPatterns","uidIdentifiers","patternParentPath","isPattern","patternParent","uidIdentifier","ObjectExpression","helper","_unused","declarations","objectSpread2","exp","make","hadProps","obj","arguments"],"mappings":";;;;;;;;;;AASe,SAASA,iCAAiCA,CACvDC,IAA4B,EACnB;AACT,EAAA,IAAI,CAACA,IAAI,EAAE,OAAO,KAAK,CAAA;AACvB,EAAA,IAAIA,IAAI,CAACC,IAAI,KAAK,cAAc,EAAE;AAChC,IAAA,MAAMC,eAAe,GAAGF,IAAI,CAACG,QAAQ,CAACC,MAAM,CACzCC,OAAO,IACNA,OAAO,KAAK,IAAI,IAAIA,OAAO,CAACJ,IAAI,KAAK,aACzC,CAAC,CAAA;AACD,IAAA,IAAIC,eAAe,CAACI,MAAM,GAAG,CAAC,EAAE,OAAO,IAAI,CAAC,KACvC,OAAOP,iCAAiC,CAACG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAA;AACnE,GAAC,MAAM,IAAIF,IAAI,CAACC,IAAI,KAAK,eAAe,EAAE;IACxC,MAAM;AAAEM,MAAAA,UAAAA;AAAW,KAAC,GAAGP,IAAI,CAAA;IAC3B,IAAIO,UAAU,CAACD,MAAM,GAAG,CAAC,EAAE,OAAO,IAAI,CAAC,KAClC,IAAIC,UAAU,CAACD,MAAM,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC,KAC1C;AACH,MAAA,MAAME,aAAa,GAAGD,UAAU,CAAC,CAAC,CAAC,CAAA;AACnC,MAAA,IAAIC,aAAa,CAACP,IAAI,KAAK,gBAAgB,EAAE;AAE3C,QAAA,OAAOF,iCAAiC,CAACS,aAAa,CAACC,KAAe,CAAC,CAAA;AACzE,OAAC,MAAM;QACL,OAAOV,iCAAiC,CAACS,aAAa,CAAC,CAAA;AACzD,OAAA;AACF,KAAA;AACF,GAAC,MAAM,IAAIR,IAAI,CAACC,IAAI,KAAK,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B1L,QAAAA,IAAI,CAACmD,WAAW,CAACsI,GAAG,CAAC,CAAA;AACvB,OAAA;AACF,KAAA;GACD,CAAA;AACH,CAAC,CAAC;;;;"} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-object-rest-spread/package.json b/node_modules/@babel/plugin-transform-object-rest-spread/package.json new file mode 100644 index 0000000000000000000000000000000000000000..df4f8320ecef9c3d6e0814bd2c202f259129adaf --- /dev/null +++ b/node_modules/@babel/plugin-transform-object-rest-spread/package.json @@ -0,0 +1,39 @@ +{ + "name": "@babel/plugin-transform-object-rest-spread", + "version": "7.29.7", + "description": "Compile object rest and spread to ES5", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-object-rest-spread" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-object-rest-spread", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/plugin-transform-destructuring": "^7.29.7", + "@babel/plugin-transform-parameters": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/parser": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-object-super/LICENSE b/node_modules/@babel/plugin-transform-object-super/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-object-super/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-object-super/README.md b/node_modules/@babel/plugin-transform-object-super/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1ab1b4d36c3b95c44748b213f4a049c1a9941236 --- /dev/null +++ b/node_modules/@babel/plugin-transform-object-super/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-object-super + +> Compile ES2015 object super to ES5 + +See our website [@babel/plugin-transform-object-super](https://babeljs.io/docs/babel-plugin-transform-object-super) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-object-super +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-object-super --dev +``` diff --git a/node_modules/@babel/plugin-transform-object-super/lib/index.js b/node_modules/@babel/plugin-transform-object-super/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..345090dbf1be9635d2e80d758081506e2693b631 --- /dev/null +++ b/node_modules/@babel/plugin-transform-object-super/lib/index.js @@ -0,0 +1,67 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _helperReplaceSupers = require("@babel/helper-replace-supers"); +var _core = require("@babel/core"); +function replacePropertySuper(path, getObjectRef, file) { + const replaceSupers = new _helperReplaceSupers.default({ + getObjectRef: getObjectRef, + methodPath: path, + file: file + }); + replaceSupers.replace(); +} +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + const newLets = new Set(); + return { + name: "transform-object-super", + visitor: { + Loop: { + exit(path) { + newLets.forEach(v => { + if (v.scopePath === path) { + path.scope.push({ + id: v.id, + kind: "let" + }); + path.scope.crawl(); + path.requeue(); + newLets.delete(v); + } + }); + } + }, + ObjectExpression(path, state) { + let objectRef; + const getObjectRef = () => objectRef = objectRef || path.scope.generateUidIdentifier("obj"); + path.get("properties").forEach(propPath => { + if (!propPath.isMethod()) return; + replacePropertySuper(propPath, getObjectRef, state.file); + }); + if (objectRef) { + const scopePath = path.findParent(p => p.isFunction() || p.isProgram() || p.isLoop()); + const useLet = scopePath.isLoop(); + if (useLet) { + newLets.add({ + scopePath, + id: _core.types.cloneNode(objectRef) + }); + } else { + path.scope.push({ + id: _core.types.cloneNode(objectRef), + kind: "var" + }); + } + path.replaceWith(_core.types.assignmentExpression("=", _core.types.cloneNode(objectRef), path.node)); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-object-super/lib/index.js.map b/node_modules/@babel/plugin-transform-object-super/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..038c04b855d30a0ce0c6baef65985bf05d844c70 --- /dev/null +++ b/node_modules/@babel/plugin-transform-object-super/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_helperReplaceSupers","_core","replacePropertySuper","path","getObjectRef","file","replaceSupers","ReplaceSupers","methodPath","replace","_default","exports","default","declare","api","assertVersion","newLets","Set","name","visitor","Loop","exit","forEach","v","scopePath","scope","push","id","kind","crawl","requeue","delete","ObjectExpression","state","objectRef","generateUidIdentifier","get","propPath","isMethod","findParent","p","isFunction","isProgram","isLoop","useLet","add","t","cloneNode","replaceWith","assignmentExpression","node"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport ReplaceSupers from \"@babel/helper-replace-supers\";\nimport { types as t } from \"@babel/core\";\nimport type { File, NodePath } from \"@babel/core\";\n\nfunction replacePropertySuper(\n path: NodePath,\n getObjectRef: () => t.Identifier,\n file: File,\n) {\n // @ts-expect-error todo(flow->ts):\n const replaceSupers = new ReplaceSupers({\n getObjectRef: getObjectRef,\n methodPath: path,\n file: file,\n });\n\n replaceSupers.replace();\n}\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n const newLets = new Set<{\n scopePath: NodePath;\n id: t.Identifier;\n }>();\n\n return {\n name: \"transform-object-super\",\n\n visitor: {\n Loop: {\n exit(path) {\n newLets.forEach(v => {\n if (v.scopePath === path) {\n path.scope.push({\n id: v.id,\n kind: \"let\",\n });\n path.scope.crawl();\n path.requeue();\n newLets.delete(v);\n }\n });\n },\n },\n ObjectExpression(path, state) {\n let objectRef: t.Identifier;\n const getObjectRef = () =>\n (objectRef = objectRef || path.scope.generateUidIdentifier(\"obj\"));\n\n path.get(\"properties\").forEach(propPath => {\n if (!propPath.isMethod()) return;\n\n replacePropertySuper(propPath, getObjectRef, state.file);\n });\n\n if (objectRef) {\n const scopePath = path.findParent(\n p => p.isFunction() || p.isProgram() || p.isLoop(),\n );\n const useLet = scopePath.isLoop();\n // For transform-block-scoping\n if (useLet) {\n newLets.add({ scopePath, id: t.cloneNode(objectRef) });\n } else {\n path.scope.push({\n id: t.cloneNode(objectRef),\n kind: \"var\",\n });\n }\n\n path.replaceWith(\n t.assignmentExpression(\"=\", t.cloneNode(objectRef), path.node),\n );\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAGA,SAASG,oBAAoBA,CAC3BC,IAA8B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C,oBAAoB,CAACmC,QAAQ,EAAEjC,YAAY,EAAE6B,KAAK,CAAC5B,IAAI,CAAC;QAC1D,CAAC,CAAC;QAEF,IAAI6B,SAAS,EAAE;UACb,MAAMV,SAAS,GAAGrB,IAAI,CAACoC,UAAU,CAC/BC,CAAC,IAAIA,CAAC,CAACC,UAAU,CAAC,CAAC,IAAID,CAAC,CAACE,SAAS,CAAC,CAAC,IAAIF,CAAC,CAACG,MAAM,CAAC,CACnD,CAAC;UACD,MAAMC,MAAM,GAAGpB,SAAS,CAACmB,MAAM,CAAC,CAAC;UAEjC,IAAIC,MAAM,EAAE;YACV5B,OAAO,CAAC6B,GAAG,CAAC;cAAErB,SAAS;cAAEG,EAAE,EAAEmB,WAAC,CAACC,SAAS,CAACb,SAAS;YAAE,CAAC,CAAC;UACxD,CAAC,MAAM;YACL/B,IAAI,CAACsB,KAAK,CAACC,IAAI,CAAC;cACdC,EAAE,EAAEmB,WAAC,CAACC,SAAS,CAACb,SAAS,CAAC;cAC1BN,IAAI,EAAE;YACR,CAAC,CAAC;UACJ;UAEAzB,IAAI,CAAC6C,WAAW,CACdF,WAAC,CAACG,oBAAoB,CAAC,GAAG,EAAEH,WAAC,CAACC,SAAS,CAACb,SAAS,CAAC,EAAE/B,IAAI,CAAC+C,IAAI,CAC/D,CAAC;QACH;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-object-super/package.json b/node_modules/@babel/plugin-transform-object-super/package.json new file mode 100644 index 0000000000000000000000000000000000000000..b3ef7e299af803db39ffe855c5c6d75051c50ccc --- /dev/null +++ b/node_modules/@babel/plugin-transform-object-super/package.json @@ -0,0 +1,35 @@ +{ + "name": "@babel/plugin-transform-object-super", + "version": "7.29.7", + "description": "Compile ES2015 object super to ES5", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-object-super" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-object-super", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-replace-supers": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-optional-catch-binding/LICENSE b/node_modules/@babel/plugin-transform-optional-catch-binding/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-optional-catch-binding/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-optional-catch-binding/README.md b/node_modules/@babel/plugin-transform-optional-catch-binding/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d2ecd426591a4dd0b2bc180076bc37e4e2189d0b --- /dev/null +++ b/node_modules/@babel/plugin-transform-optional-catch-binding/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-optional-catch-binding + +> Compile optional catch bindings + +See our website [@babel/plugin-transform-optional-catch-binding](https://babeljs.io/docs/babel-plugin-transform-optional-catch-binding) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-optional-catch-binding +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-optional-catch-binding --dev +``` diff --git a/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js b/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..13310e1dea104b870873fc3972962ee2a14501e9 --- /dev/null +++ b/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js @@ -0,0 +1,25 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion("^7.0.0-0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta"); + return { + name: "transform-optional-catch-binding", + manipulateOptions: (_, parser) => parser.plugins.push("optionalCatchBinding"), + visitor: { + CatchClause(path) { + if (!path.node.param) { + const uid = path.scope.generateUidIdentifier("unused"); + const paramPath = path.get("param"); + paramPath.replaceWith(uid); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js.map b/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..5f9271388e1f518265c37b47fa355b2e72165e17 --- /dev/null +++ b/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_default","exports","default","declare","api","assertVersion","name","manipulateOptions","_","parser","plugins","push","visitor","CatchClause","path","node","param","uid","scope","generateUidIdentifier","paramPath","get","replaceWith"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n\n return {\n name: \"transform-optional-catch-binding\",\n manipulateOptions: process.env.BABEL_8_BREAKING\n ? undefined\n : (_, parser) => parser.plugins.push(\"optionalCatchBinding\"),\n\n visitor: {\n CatchClause(path) {\n if (!path.node.param) {\n const uid = path.scope.generateUidIdentifier(\"unused\");\n const paramPath = path.get(\"param\");\n paramPath.replaceWith(uid);\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAAqD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEtC,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,mDAAyC,CAAC;EAE3D,OAAO;IACLC,IAAI,EAAE,kCAAkC;IACxCC,iBAAiB,EAEbA,CAACC,CAAC,EAAEC,MAAM,KAAKA,MAAM,CAACC,OAAO,CAACC,IAAI,CAAC,sBAAsB,CAAC;IAE9DC,OAAO,EAAE;MACPC,WAAWA,CAACC,IAAI,EAAE;QAChB,IAAI,CAACA,IAAI,CAACC,IAAI,CAACC,KAAK,EAAE;UACpB,MAAMC,GAAG,GAAGH,IAAI,CAACI,KAAK,CAACC,qBAAqB,CAAC,QAAQ,CAAC;UACtD,MAAMC,SAAS,GAAGN,IAAI,CAACO,GAAG,CAAC,OAAO,CAAC;UACnCD,SAAS,CAACE,WAAW,CAACL,GAAG,CAAC;QAC5B;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-optional-catch-binding/package.json b/node_modules/@babel/plugin-transform-optional-catch-binding/package.json new file mode 100644 index 0000000000000000000000000000000000000000..e9872936b132f266f6834538323a9ee8801bd30d --- /dev/null +++ b/node_modules/@babel/plugin-transform-optional-catch-binding/package.json @@ -0,0 +1,34 @@ +{ + "name": "@babel/plugin-transform-optional-catch-binding", + "version": "7.29.7", + "description": "Compile optional catch bindings", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-optional-catch-binding" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-optional-catch-binding", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-optional-chaining/LICENSE b/node_modules/@babel/plugin-transform-optional-chaining/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-optional-chaining/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-optional-chaining/README.md b/node_modules/@babel/plugin-transform-optional-chaining/README.md new file mode 100644 index 0000000000000000000000000000000000000000..41cdc2b6047478c80c512014b2a56667ecf1b8bd --- /dev/null +++ b/node_modules/@babel/plugin-transform-optional-chaining/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-optional-chaining + +> Transform optional chaining operators into a series of nil checks + +See our website [@babel/plugin-transform-optional-chaining](https://babeljs.io/docs/babel-plugin-transform-optional-chaining) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-optional-chaining +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-optional-chaining --dev +``` diff --git a/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js b/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..b361940ad513a4b5ef4f3d1f79c62493d86eac2f --- /dev/null +++ b/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js @@ -0,0 +1,245 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var helperPluginUtils = require('@babel/helper-plugin-utils'); +var core = require('@babel/core'); +var helperSkipTransparentExpressionWrappers = require('@babel/helper-skip-transparent-expression-wrappers'); + +function willPathCastToBoolean(path) { + const maybeWrapped = findOutermostTransparentParent(path); + const { + node, + parentPath + } = maybeWrapped; + if (parentPath.isLogicalExpression()) { + const { + operator, + right + } = parentPath.node; + if (operator === "&&" || operator === "||" || operator === "??" && node === right) { + return willPathCastToBoolean(parentPath); + } + } + if (parentPath.isSequenceExpression()) { + const { + expressions + } = parentPath.node; + if (expressions[expressions.length - 1] === node) { + return willPathCastToBoolean(parentPath); + } else { + return true; + } + } + return parentPath.isConditional({ + test: node + }) || parentPath.isUnaryExpression({ + operator: "!" + }) || parentPath.isForStatement({ + test: node + }) || parentPath.isWhile({ + test: node + }); +} +function findOutermostTransparentParent(path) { + let maybeWrapped = path; + path.findParent(p => { + if (!helperSkipTransparentExpressionWrappers.isTransparentExprWrapper(p.node)) return true; + maybeWrapped = p; + }); + return maybeWrapped; +} + +const last = arr => arr[arr.length - 1]; +function isSimpleMemberExpression(expression) { + expression = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression); + return core.types.isIdentifier(expression) || core.types.isSuper(expression) || core.types.isMemberExpression(expression) && !expression.computed && isSimpleMemberExpression(expression.object); +} +function needsMemoize(path) { + let optionalPath = path; + const { + scope + } = path; + while (optionalPath.isOptionalMemberExpression() || optionalPath.isOptionalCallExpression()) { + const { + node + } = optionalPath; + const childPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.isOptionalMemberExpression() ? optionalPath.get("object") : optionalPath.get("callee")); + if (node.optional) { + return !scope.isStatic(childPath.node); + } + optionalPath = childPath; + } +} +const NULLISH_CHECK = core.template.expression(`%%check%% === null || %%ref%% === void 0`); +const NULLISH_CHECK_NO_DDA = core.template.expression(`%%check%% == null`); +const NULLISH_CHECK_NEG = core.template.expression(`%%check%% !== null && %%ref%% !== void 0`); +const NULLISH_CHECK_NO_DDA_NEG = core.template.expression(`%%check%% != null`); +function transformOptionalChain(path, { + pureGetters, + noDocumentAll +}, replacementPath, ifNullish, wrapLast) { + const { + scope + } = path; + if (scope.path.isPattern() && needsMemoize(path)) { + replacementPath.replaceWith(core.template.expression.ast`(() => ${replacementPath.node})()`); + return; + } + const optionals = []; + let optionalPath = path; + while (optionalPath.isOptionalMemberExpression() || optionalPath.isOptionalCallExpression()) { + const { + node + } = optionalPath; + if (node.optional) { + optionals.push(node); + } + if (optionalPath.isOptionalMemberExpression()) { + optionalPath.node.type = "MemberExpression"; + optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("object")); + } else if (optionalPath.isOptionalCallExpression()) { + optionalPath.node.type = "CallExpression"; + optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("callee")); + } + } + if (optionals.length === 0) { + return; + } + const checks = []; + let tmpVar; + for (let i = optionals.length - 1; i >= 0; i--) { + const node = optionals[i]; + const isCall = core.types.isCallExpression(node); + const chainWithTypes = isCall ? node.callee : node.object; + const chain = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(chainWithTypes); + let ref; + let check; + if (isCall && core.types.isIdentifier(chain, { + name: "eval" + })) { + check = ref = chain; + node.callee = core.types.sequenceExpression([core.types.numericLiteral(0), ref]); + } else if (pureGetters && isCall && isSimpleMemberExpression(chain)) { + check = ref = node.callee; + } else if (scope.isStatic(chain)) { + check = ref = chainWithTypes; + } else { + if (!tmpVar || isCall) { + tmpVar = scope.generateUidIdentifierBasedOnNode(chain); + scope.push({ + id: core.types.cloneNode(tmpVar) + }); + } + ref = tmpVar; + check = core.types.assignmentExpression("=", core.types.cloneNode(tmpVar), chainWithTypes); + if (isCall) { + node.callee = ref; + } else { + node.object = ref; + } + } + if (isCall && core.types.isMemberExpression(chain)) { + if (pureGetters && isSimpleMemberExpression(chain)) { + node.callee = chainWithTypes; + } else { + const { + object + } = chain; + let context; + if (core.types.isSuper(object)) { + context = core.types.thisExpression(); + } else { + const memoized = scope.maybeGenerateMemoised(object); + if (memoized) { + context = memoized; + chain.object = core.types.assignmentExpression("=", memoized, object); + } else { + context = object; + } + } + node.arguments.unshift(core.types.cloneNode(context)); + node.callee = core.types.memberExpression(node.callee, core.types.identifier("call")); + } + } + const data = { + check: core.types.cloneNode(check), + ref: core.types.cloneNode(ref) + }; + Object.defineProperty(data, "ref", { + enumerable: false + }); + checks.push(data); + } + let result = replacementPath.node; + if (wrapLast) result = wrapLast(result); + const ifNullishBoolean = core.types.isBooleanLiteral(ifNullish); + const ifNullishFalse = ifNullishBoolean && ifNullish.value === false; + const ifNullishVoid = !ifNullishBoolean && core.types.isUnaryExpression(ifNullish, { + operator: "void" + }); + const isEvaluationValueIgnored = core.types.isExpressionStatement(replacementPath.parent) && !replacementPath.isCompletionRecord() || core.types.isSequenceExpression(replacementPath.parent) && last(replacementPath.parent.expressions) !== replacementPath.node; + const tpl = ifNullishFalse ? noDocumentAll ? NULLISH_CHECK_NO_DDA_NEG : NULLISH_CHECK_NEG : noDocumentAll ? NULLISH_CHECK_NO_DDA : NULLISH_CHECK; + const logicalOp = ifNullishFalse ? "&&" : "||"; + const check = checks.map(tpl).reduce((expr, check) => core.types.logicalExpression(logicalOp, expr, check)); + replacementPath.replaceWith(ifNullishBoolean || ifNullishVoid && isEvaluationValueIgnored ? core.types.logicalExpression(logicalOp, check, result) : core.types.conditionalExpression(check, ifNullish, result)); +} +function transform(path, assumptions) { + const { + scope + } = path; + const maybeWrapped = findOutermostTransparentParent(path); + const { + parentPath + } = maybeWrapped; + if (parentPath.isUnaryExpression({ + operator: "delete" + })) { + transformOptionalChain(path, assumptions, parentPath, core.types.booleanLiteral(true)); + } else { + let wrapLast; + if (parentPath.isCallExpression({ + callee: maybeWrapped.node + }) && path.isOptionalMemberExpression()) { + wrapLast = replacement => { + const object = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(replacement.object); + let baseRef; + if (!assumptions.pureGetters || !isSimpleMemberExpression(object)) { + baseRef = scope.maybeGenerateMemoised(object); + if (baseRef) { + replacement.object = core.types.assignmentExpression("=", baseRef, object); + } + } + return core.types.callExpression(core.types.memberExpression(replacement, core.types.identifier("bind")), [core.types.cloneNode(baseRef != null ? baseRef : object)]); + }; + } + transformOptionalChain(path, assumptions, path, willPathCastToBoolean(maybeWrapped) ? core.types.booleanLiteral(false) : scope.buildUndefinedNode(), wrapLast); + } +} + +var index = helperPluginUtils.declare((api, options) => { + var _api$assumption, _api$assumption2; + api.assertVersion("^7.0.0-0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta"); + const { + loose = false + } = options; + const noDocumentAll = (_api$assumption = api.assumption("noDocumentAll")) != null ? _api$assumption : loose; + const pureGetters = (_api$assumption2 = api.assumption("pureGetters")) != null ? _api$assumption2 : loose; + return { + name: "transform-optional-chaining", + manipulateOptions: (_, parser) => parser.plugins.push("optionalChaining"), + visitor: { + "OptionalCallExpression|OptionalMemberExpression"(path) { + transform(path, { + noDocumentAll, + pureGetters + }); + } + } + }; +}); + +exports.default = index; +exports.transform = transform; +exports.transformOptionalChain = transformOptionalChain; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js.map b/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..5f46906bff561438048a089adefdcdf99e959441 --- /dev/null +++ b/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../src/util.ts","../src/transform.ts","../src/index.ts"],"sourcesContent":["import type { NodePath } from \"@babel/core\";\nimport { isTransparentExprWrapper } from \"@babel/helper-skip-transparent-expression-wrappers\";\n/**\n * Test if a NodePath will be cast to boolean when evaluated.\n * It respects transparent expression wrappers defined in\n * \"@babel/helper-skip-transparent-expression-wrappers\"\n *\n * @example\n * // returns true\n * const nodePathADotB = NodePath(\"if (a.b) {}\").get(\"test\"); // a.b\n * willPathCastToBoolean(nodePathADotB)\n * @example\n * // returns false\n * willPathCastToBoolean(NodePath(\"a.b\"))\n * @param {NodePath} path\n * @returns {boolean}\n */\nexport function willPathCastToBoolean(path: NodePath): boolean {\n const maybeWrapped = findOutermostTransparentParent(path);\n const { node, parentPath } = maybeWrapped;\n if (parentPath.isLogicalExpression()) {\n const { operator, right } = parentPath.node;\n if (\n operator === \"&&\" ||\n operator === \"||\" ||\n (operator === \"??\" && node === right)\n ) {\n return willPathCastToBoolean(parentPath);\n }\n }\n if (parentPath.isSequenceExpression()) {\n const { expressions } = parentPath.node;\n if (expressions[expressions.length - 1] === node) {\n return willPathCastToBoolean(parentPath);\n } else {\n // if it is in the middle of a sequence expression, we don't\n // care the return value so just cast to boolean for smaller\n // output\n return true;\n }\n }\n return (\n parentPath.isConditional({ test: node }) ||\n parentPath.isUnaryExpression({ operator: \"!\" }) ||\n parentPath.isForStatement({ test: node }) ||\n parentPath.isWhile({ test: node })\n );\n}\n\n/**\n * Return the outermost transparent expression wrapper of a given path,\n * otherwise returns path itself.\n * @example\n * const nodePathADotB = NodePath(\"(a.b as any)\").get(\"expression\"); // a.b\n * // returns NodePath(\"(a.b as any)\")\n * findOutermostTransparentParent(nodePathADotB);\n * @param {NodePath} path\n * @returns {NodePath}\n */\nexport function findOutermostTransparentParent(path: NodePath): NodePath {\n let maybeWrapped = path;\n path.findParent(p => {\n if (!isTransparentExprWrapper(p.node)) return true;\n maybeWrapped = p;\n });\n return maybeWrapped;\n}\n","import { types as t, template, type NodePath } from \"@babel/core\";\nimport {\n skipTransparentExprWrapperNodes,\n skipTransparentExprWrappers,\n} from \"@babel/helper-skip-transparent-expression-wrappers\";\nimport {\n willPathCastToBoolean,\n findOutermostTransparentParent,\n} from \"./util.ts\";\n\n// TODO(Babel 9): Use .at(-1)\nconst last = (arr: T[]) => arr[arr.length - 1];\n\nfunction isSimpleMemberExpression(\n expression: t.Expression | t.Super,\n): expression is t.Identifier | t.Super | t.MemberExpression {\n expression = skipTransparentExprWrapperNodes(expression);\n return (\n t.isIdentifier(expression) ||\n t.isSuper(expression) ||\n (t.isMemberExpression(expression) &&\n !expression.computed &&\n isSimpleMemberExpression(expression.object))\n );\n}\n\n/**\n * Test if a given optional chain `path` needs to be memoized\n * @param {NodePath} path\n * @returns {boolean}\n */\nfunction needsMemoize(\n path: NodePath,\n) {\n let optionalPath: NodePath = path;\n const { scope } = path;\n while (\n optionalPath.isOptionalMemberExpression() ||\n optionalPath.isOptionalCallExpression()\n ) {\n const { node } = optionalPath;\n const childPath = skipTransparentExprWrappers(\n optionalPath.isOptionalMemberExpression()\n ? optionalPath.get(\"object\")\n : optionalPath.get(\"callee\"),\n );\n if (node.optional) {\n return !scope.isStatic(childPath.node);\n }\n\n optionalPath = childPath;\n }\n}\n\nconst NULLISH_CHECK = template.expression(\n `%%check%% === null || %%ref%% === void 0`,\n);\nconst NULLISH_CHECK_NO_DDA = template.expression(`%%check%% == null`);\nconst NULLISH_CHECK_NEG = template.expression(\n `%%check%% !== null && %%ref%% !== void 0`,\n);\nconst NULLISH_CHECK_NO_DDA_NEG = template.expression(`%%check%% != null`);\n\ninterface OptionalChainAssumptions {\n pureGetters: boolean;\n noDocumentAll: boolean;\n}\n\nexport function transformOptionalChain(\n path: NodePath,\n { pureGetters, noDocumentAll }: OptionalChainAssumptions,\n replacementPath: NodePath,\n ifNullish: t.Expression,\n wrapLast?: (value: t.Expression) => t.Expression,\n) {\n const { scope } = path;\n\n // Replace `function (a, x = a.b?.c) {}` to `function (a, x = (() => a.b?.c)() ){}`\n // so the temporary variable can be injected in correct scope\n if (scope.path.isPattern() && needsMemoize(path)) {\n replacementPath.replaceWith(\n template.expression.ast`(() => ${replacementPath.node})()`,\n );\n // The injected optional chain will be queued and eventually transformed when visited\n return;\n }\n\n const optionals = [];\n\n let optionalPath = path;\n while (\n optionalPath.isOptionalMemberExpression() ||\n optionalPath.isOptionalCallExpression()\n ) {\n const { node } = optionalPath;\n if (node.optional) {\n optionals.push(node);\n }\n if (optionalPath.isOptionalMemberExpression()) {\n // @ts-expect-error todo(flow->ts) avoid changing more type\n optionalPath.node.type = \"MemberExpression\";\n // @ts-expect-error todo(flow->ts)\n optionalPath = skipTransparentExprWrappers(optionalPath.get(\"object\"));\n } else if (optionalPath.isOptionalCallExpression()) {\n // @ts-expect-error todo(flow->ts) avoid changing more type\n optionalPath.node.type = \"CallExpression\";\n // @ts-expect-error todo(flow->ts)\n optionalPath = skipTransparentExprWrappers(optionalPath.get(\"callee\"));\n }\n }\n\n if (optionals.length === 0) {\n // Malformed AST: there was an OptionalMemberExpression node\n // with no actual optional elements.\n return;\n }\n\n const checks = [];\n\n let tmpVar;\n\n for (let i = optionals.length - 1; i >= 0; i--) {\n const node = optionals[i] as unknown as\n | t.MemberExpression\n | t.CallExpression;\n\n const isCall = t.isCallExpression(node);\n\n const chainWithTypes = isCall\n ? // V8 intrinsics must not be an optional call\n (node.callee as t.Expression)\n : node.object;\n const chain = skipTransparentExprWrapperNodes(chainWithTypes);\n\n let ref;\n let check;\n if (isCall && t.isIdentifier(chain, { name: \"eval\" })) {\n check = ref = chain;\n // `eval?.()` is an indirect eval call transformed to `(0,eval)()`\n node.callee = t.sequenceExpression([t.numericLiteral(0), ref]);\n } else if (pureGetters && isCall && isSimpleMemberExpression(chain)) {\n // If we assume getters are pure (avoiding a Function#call) and we are at the call,\n // we can avoid a needless memoize. We only do this if the callee is a simple member\n // expression, to avoid multiple calls to nested call expressions.\n check = ref = node.callee;\n } else if (scope.isStatic(chain)) {\n check = ref = chainWithTypes;\n } else {\n // We cannot reuse the tmpVar for calls, because we need to\n // store both the method and the receiver.\n if (!tmpVar || isCall) {\n tmpVar = scope.generateUidIdentifierBasedOnNode(chain);\n scope.push({ id: t.cloneNode(tmpVar) });\n }\n ref = tmpVar;\n check = t.assignmentExpression(\n \"=\",\n t.cloneNode(tmpVar),\n // Here `chainWithTypes` MUST NOT be cloned because it could be\n // updated when generating the memoised context of a call\n // expression. It must be an Expression when `ref` is an identifier\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n chainWithTypes as t.Expression,\n );\n\n if (isCall) {\n node.callee = ref;\n } else {\n node.object = ref;\n }\n }\n\n // Ensure call expressions have the proper `this`\n // `foo.bar()` has context `foo`.\n if (isCall && t.isMemberExpression(chain)) {\n if (pureGetters && isSimpleMemberExpression(chain)) {\n // To avoid a Function#call, we can instead re-grab the property from the context object.\n // `a.?b.?()` translates roughly to `_a.b != null && _a.b()`\n node.callee = chainWithTypes;\n } else {\n // Otherwise, we need to memoize the context object, and change the call into a Function#call.\n // `a.?b.?()` translates roughly to `(_b = _a.b) != null && _b.call(_a)`\n const { object } = chain;\n let context: t.Expression;\n if (t.isSuper(object)) {\n context = t.thisExpression();\n } else {\n const memoized = scope.maybeGenerateMemoised(object);\n if (memoized) {\n context = memoized;\n chain.object = t.assignmentExpression(\"=\", memoized, object);\n } else {\n context = object;\n }\n }\n\n node.arguments.unshift(t.cloneNode(context));\n // @ts-expect-error node.callee can not be an V8IntrinsicIdentifier: V8 intrinsic is disallowed in optional chain\n node.callee = t.memberExpression(node.callee, t.identifier(\"call\"));\n }\n }\n\n const data = { check: t.cloneNode(check), ref: t.cloneNode(ref) };\n // We make `ref` non-enumerable, so that @babel/template doesn't throw\n // in the noDocumentAll template if it's not used.\n Object.defineProperty(data, \"ref\", { enumerable: false });\n checks.push(data);\n }\n\n let result = replacementPath.node;\n if (wrapLast) result = wrapLast(result);\n\n const ifNullishBoolean = t.isBooleanLiteral(ifNullish);\n const ifNullishFalse = ifNullishBoolean && ifNullish.value === false;\n const ifNullishVoid =\n !ifNullishBoolean && t.isUnaryExpression(ifNullish, { operator: \"void\" });\n\n const isEvaluationValueIgnored =\n (t.isExpressionStatement(replacementPath.parent) &&\n !replacementPath.isCompletionRecord()) ||\n (t.isSequenceExpression(replacementPath.parent) &&\n last(replacementPath.parent.expressions) !== replacementPath.node);\n\n // prettier-ignore\n const tpl = ifNullishFalse\n ? (noDocumentAll ? NULLISH_CHECK_NO_DDA_NEG : NULLISH_CHECK_NEG)\n : (noDocumentAll ? NULLISH_CHECK_NO_DDA : NULLISH_CHECK);\n const logicalOp = ifNullishFalse ? \"&&\" : \"||\";\n\n const check = checks\n .map(tpl)\n .reduce((expr, check) => t.logicalExpression(logicalOp, expr, check));\n\n replacementPath.replaceWith(\n ifNullishBoolean || (ifNullishVoid && isEvaluationValueIgnored)\n ? t.logicalExpression(logicalOp, check, result)\n : t.conditionalExpression(check, ifNullish, result),\n );\n}\n\nexport function transform(\n path: NodePath,\n assumptions: OptionalChainAssumptions,\n) {\n const { scope } = path;\n\n // maybeWrapped points to the outermost transparent expression wrapper\n // or the path itself\n const maybeWrapped = findOutermostTransparentParent(path);\n const { parentPath } = maybeWrapped;\n\n if (parentPath.isUnaryExpression({ operator: \"delete\" })) {\n transformOptionalChain(\n path,\n assumptions,\n parentPath,\n t.booleanLiteral(true),\n );\n } else {\n let wrapLast;\n if (\n parentPath.isCallExpression({ callee: maybeWrapped.node }) &&\n // note that the first condition must implies that `path.optional` is `true`,\n // otherwise the parentPath should be an OptionalCallExpression\n path.isOptionalMemberExpression()\n ) {\n // Ensure (a?.b)() has proper `this`\n wrapLast = (replacement: t.MemberExpression) => {\n // `(a?.b)()` to `(a == null ? undefined : a.b.bind(a))()`\n // object must not be Super as super?.foo is invalid\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n const object = skipTransparentExprWrapperNodes(\n replacement.object,\n ) as t.Expression;\n let baseRef: t.Expression;\n if (!assumptions.pureGetters || !isSimpleMemberExpression(object)) {\n // memoize the context object when getters are not always pure\n // or the object is not a simple member expression\n // `(a?.b.c)()` to `(a == null ? undefined : (_a$b = a.b).c.bind(_a$b))()`\n baseRef = scope.maybeGenerateMemoised(object);\n if (baseRef) {\n replacement.object = t.assignmentExpression(\"=\", baseRef, object);\n }\n }\n return t.callExpression(\n t.memberExpression(replacement, t.identifier(\"bind\")),\n [t.cloneNode(baseRef ?? object)],\n );\n };\n }\n\n transformOptionalChain(\n path,\n assumptions,\n path,\n willPathCastToBoolean(maybeWrapped)\n ? t.booleanLiteral(false)\n : scope.buildUndefinedNode(),\n wrapLast,\n );\n }\n}\n","import { declare } from \"@babel/helper-plugin-utils\";\nimport { transform, transformOptionalChain } from \"./transform.ts\";\nimport type { NodePath, types as t } from \"@babel/core\";\n\nexport interface Options {\n loose?: boolean;\n}\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n\n const { loose = false } = options;\n const noDocumentAll = api.assumption(\"noDocumentAll\") ?? loose;\n const pureGetters = api.assumption(\"pureGetters\") ?? loose;\n\n return {\n name: \"transform-optional-chaining\",\n manipulateOptions: process.env.BABEL_8_BREAKING\n ? undefined\n : (_, parser) => parser.plugins.push(\"optionalChaining\"),\n\n visitor: {\n \"OptionalCallExpression|OptionalMemberExpression\"(\n path: NodePath,\n ) {\n transform(path, { noDocumentAll, pureGetters });\n },\n },\n };\n});\n\nexport { transform, transformOptionalChain };\n"],"names":["willPathCastToBoolean","path","maybeWrapped","findOutermostTransparentParent","node","parentPath","isLogicalExpression","operator","right","isSequenceExpression","expressions","length","isConditional","test","isUnaryExpression","isForStatement","isWhile","findParent","p","isTransparentExprWrapper","last","arr","isSimpleMemberExpression","expression","skipTransparentExprWrapperNodes","t","isIdentifier","isSuper","isMemberExpression","computed","object","needsMemoize","optionalPath","scope","isOptionalMemberExpression","isOptionalCallExpression","childPath","skipTransparentExprWrappers","get","optional","isStatic","NULLISH_CHECK","template","NULLISH_CHECK_NO_DDA","NULLISH_CHECK_NEG","NULLISH_CHECK_NO_DDA_NEG","transformOptionalChain","pureGetters","noDocumentAll","replacementPath","ifNullish","wrapLast","isPattern","replaceWith","ast","optionals","push","type","checks","tmpVar","i","isCall","isCallExpression","chainWithTypes","callee","chain","ref","check","name","sequenceExpression","numericLiteral","generateUidIdentifierBasedOnNode","id","cloneNode","assignmentExpression","context","thisExpression","memoized","maybeGenerateMemoised","arguments","unshift","memberExpression","identifier","data","Object","defineProperty","enumerable","result","ifNullishBoolean","isBooleanLiteral","ifNullishFalse","value","ifNullishVoid","isEvaluationValueIgnored","isExpressionStatement","parent","isCompletionRecord","tpl","logicalOp","map","reduce","expr","logicalExpression","conditionalExpression","transform","assumptions","booleanLiteral","replacement","baseRef","callExpression","buildUndefinedNode","declare","api","options","_api$assumption","_api$assumption2","assertVersion","loose","assumption","manipulateOptions","_","parser","plugins","visitor","OptionalCallExpression|OptionalMemberExpression"],"mappings":";;;;;;;;AAiBO,SAASA,qBA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E,6BAA6B;AACnCmD,IAAAA,iBAAiB,EAEbA,CAACC,CAAC,EAAEC,MAAM,KAAKA,MAAM,CAACC,OAAO,CAAClE,IAAI,CAAC,kBAAkB,CAAC;AAE1DmE,IAAAA,OAAO,EAAE;MACP,iDAAiDC,CAC/C3H,IAAqE,EACrE;QACAuG,SAAS,CAACvG,IAAI,EAAE;UAAE+C,aAAa;AAAED,UAAAA,WAAAA;AAAY,SAAC,CAAC,CAAA;AACjD,OAAA;AACF,KAAA;GACD,CAAA;AACH,CAAC,CAAC;;;;;;"} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-optional-chaining/package.json b/node_modules/@babel/plugin-transform-optional-chaining/package.json new file mode 100644 index 0000000000000000000000000000000000000000..de7e5dc9eef64fce1fcfe3b5ec9b5405f3b570ed --- /dev/null +++ b/node_modules/@babel/plugin-transform-optional-chaining/package.json @@ -0,0 +1,37 @@ +{ + "name": "@babel/plugin-transform-optional-chaining", + "version": "7.29.7", + "description": "Transform optional chaining operators into a series of nil checks", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-optional-chaining" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-optional-chaining", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/plugin-transform-block-scoping": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-parameters/LICENSE b/node_modules/@babel/plugin-transform-parameters/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-parameters/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-parameters/README.md b/node_modules/@babel/plugin-transform-parameters/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e0541a83f17d620f56b7d869d41d836fcd41ff7a --- /dev/null +++ b/node_modules/@babel/plugin-transform-parameters/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-parameters + +> Compile ES2015 default and rest parameters to ES5 + +See our website [@babel/plugin-transform-parameters](https://babeljs.io/docs/babel-plugin-transform-parameters) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-parameters +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-parameters --dev +``` diff --git a/node_modules/@babel/plugin-transform-parameters/lib/index.js b/node_modules/@babel/plugin-transform-parameters/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..141b982d9b1a9edd787ee4c5fce03be73b439c82 --- /dev/null +++ b/node_modules/@babel/plugin-transform-parameters/lib/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "convertFunctionParams", { + enumerable: true, + get: function () { + return _params.default; + } +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _params = require("./params.js"); +var _rest = require("./rest.js"); +var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2; + api.assertVersion(7); + const ignoreFunctionLength = (_api$assumption = api.assumption("ignoreFunctionLength")) != null ? _api$assumption : options.loose; + const noNewArrows = (_api$assumption2 = api.assumption("noNewArrows")) != null ? _api$assumption2 : true; + return { + name: "transform-parameters", + visitor: { + Function(path) { + if (path.isArrowFunctionExpression() && path.get("params").some(param => param.isRestElement() || param.isAssignmentPattern())) { + path.arrowFunctionToExpression({ + allowInsertArrowWithRest: false, + noNewArrows + }); + if (!path.isFunctionExpression()) return; + } + const convertedRest = (0, _rest.default)(path); + const convertedParams = (0, _params.default)(path, ignoreFunctionLength); + if (convertedRest || convertedParams) { + path.scope.crawl(); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-parameters/lib/index.js.map b/node_modules/@babel/plugin-transform-parameters/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..cd3c3fc92639674fe28ba5c871167d845ec4e884 --- /dev/null +++ b/node_modules/@babel/plugin-transform-parameters/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_params","_rest","_default","exports","default","declare","api","options","_api$assumption","_api$assumption2","assertVersion","ignoreFunctionLength","assumption","loose","noNewArrows","name","visitor","Function","path","isArrowFunctionExpression","get","some","param","isRestElement","isAssignmentPattern","arrowFunctionToExpression","allowInsertArrowWithRest","isFunctionExpression","convertedRest","convertFunctionRest","convertedParams","convertFunctionParams","scope","crawl"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport convertFunctionParams from \"./params.ts\";\nimport convertFunctionRest from \"./rest.ts\";\nexport { convertFunctionParams };\n\nexport interface Options {\n loose?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const ignoreFunctionLength =\n api.assumption(\"ignoreFunctionLength\") ?? options.loose;\n // Todo(BABEL 8): Consider default it to false\n const noNewArrows = api.assumption(\"noNewArrows\") ?? true;\n\n return {\n name: \"transform-parameters\",\n\n visitor: {\n Function(path) {\n if (\n path.isArrowFunctionExpression() &&\n path\n .get(\"params\")\n .some(param => param.isRestElement() || param.isAssignmentPattern())\n ) {\n // default/rest visitors require access to `arguments`, so it cannot be an arrow\n path.arrowFunctionToExpression({\n allowInsertArrowWithRest: false,\n noNewArrows,\n });\n\n // In some cases arrowFunctionToExpression replaces the function with a wrapper.\n // Return early; the wrapped function will be visited later in the AST traversal.\n if (!path.isFunctionExpression()) return;\n }\n\n const convertedRest = convertFunctionRest(path);\n const convertedParams = convertFunctionParams(\n path,\n ignoreFunctionLength,\n );\n\n if (convertedRest || convertedParams) {\n // Manually reprocess this scope to ensure that the moved params are updated.\n path.scope.crawl();\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAA4C,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAO7B,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAEC,OAAgB,KAAK;EAAA,IAAAC,eAAA,EAAAC,gBAAA;EAChDH,GAAG,CAACI,aAAa,CAAkB,CAAE,CAAC;EAEtC,MAAMC,oBAAoB,IAAAH,eAAA,GACxBF,GAAG,CAACM,UAAU,CAAC,sBAAsB,CAAC,YAAAJ,eAAA,GAAID,OAAO,CAACM,KAAK;EAEzD,MAAMC,WAAW,IAAAL,gBAAA,GAAGH,GAAG,CAACM,UAAU,CAAC,aAAa,CAAC,YAAAH,gBAAA,GAAI,IAAI;EAEzD,OAAO;IACLM,IAAI,EAAE,sBAAsB;IAE5BC,OAAO,EAAE;MACPC,QAAQA,CAACC,IAAI,EAAE;QACb,IACEA,IAAI,CAACC,yBAAyB,CAAC,CAAC,IAChCD,IAAI,CACDE,GAAG,CAAC,QAAQ,CAAC,CACbC,IAAI,CAACC,KAAK,IAAIA,KAAK,CAACC,aAAa,CAAC,CAAC,IAAID,KAAK,CAACE,mBAAmB,CAAC,CAAC,CAAC,EACtE;UAEAN,IAAI,CAACO,yBAAyB,CAAC;YAC7BC,wBAAwB,EAAE,KAAK;YAC/BZ;UACF,CAAC,CAAC;UAIF,IAAI,CAACI,IAAI,CAACS,oBAAoB,CAAC,CAAC,EAAE;QACpC;QAEA,MAAMC,aAAa,GAAG,IAAAC,aAAmB,EAACX,IAAI,CAAC;QAC/C,MAAMY,eAAe,GAAG,IAAAC,eAAqB,EAC3Cb,IAAI,EACJP,oBACF,CAAC;QAED,IAAIiB,aAAa,IAAIE,eAAe,EAAE;UAEpCZ,IAAI,CAACc,KAAK,CAACC,KAAK,CAAC,CAAC;QACpB;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-parameters/lib/params.js b/node_modules/@babel/plugin-transform-parameters/lib/params.js new file mode 100644 index 0000000000000000000000000000000000000000..888c92ae4b711ecd501abf99ea888bf983709f44 --- /dev/null +++ b/node_modules/@babel/plugin-transform-parameters/lib/params.js @@ -0,0 +1,144 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = convertFunctionParams; +var _core = require("@babel/core"); +var _shadowUtils = require("./shadow-utils.js"); +const buildDefaultParam = _core.template.statement(` + let VARIABLE_NAME = + arguments.length > ARGUMENT_KEY && arguments[ARGUMENT_KEY] !== undefined ? + arguments[ARGUMENT_KEY] + : + DEFAULT_VALUE; +`); +const buildLooseDefaultParam = _core.template.statement(` + if (ASSIGNMENT_IDENTIFIER === UNDEFINED) { + ASSIGNMENT_IDENTIFIER = DEFAULT_VALUE; + } +`); +const buildLooseDestructuredDefaultParam = _core.template.statement(` + let ASSIGNMENT_IDENTIFIER = PARAMETER_NAME === UNDEFINED ? DEFAULT_VALUE : PARAMETER_NAME ; +`); +const buildSafeArgumentsAccess = _core.template.statement(` + let $0 = arguments.length > $1 ? arguments[$1] : undefined; +`); +function convertFunctionParams(path, ignoreFunctionLength, shouldTransformParam, replaceRestElement) { + const params = path.get("params"); + const isSimpleParameterList = params.every(param => param.isIdentifier()); + if (isSimpleParameterList) return false; + const { + node, + scope + } = path; + const body = []; + const shadowedParams = new Set(); + for (const param of params) { + (0, _shadowUtils.collectShadowedParamsNames)(param, scope, shadowedParams); + } + const state = { + needsOuterBinding: false, + scope + }; + if (shadowedParams.size === 0) { + for (const param of params) { + if (!param.isIdentifier()) param.traverse(_shadowUtils.iifeVisitor, state); + if (state.needsOuterBinding) break; + } + } + let firstOptionalIndex = null; + for (let i = 0; i < params.length; i++) { + const param = params[i]; + if (shouldTransformParam && !shouldTransformParam(i)) { + continue; + } + const transformedRestNodes = []; + if (replaceRestElement) { + replaceRestElement(path, param, transformedRestNodes); + } + const paramIsAssignmentPattern = param.isAssignmentPattern(); + if (paramIsAssignmentPattern && (ignoreFunctionLength || _core.types.isMethod(node, { + kind: "set" + }))) { + const left = param.get("left"); + const right = param.get("right"); + const undefinedNode = scope.buildUndefinedNode(); + if (left.isIdentifier()) { + body.push(buildLooseDefaultParam({ + ASSIGNMENT_IDENTIFIER: _core.types.cloneNode(left.node), + DEFAULT_VALUE: right.node, + UNDEFINED: undefinedNode + })); + param.replaceWith(left.node); + } else if (left.isObjectPattern() || left.isArrayPattern()) { + const paramName = scope.generateUidIdentifier(); + body.push(buildLooseDestructuredDefaultParam({ + ASSIGNMENT_IDENTIFIER: left.node, + DEFAULT_VALUE: right.node, + PARAMETER_NAME: _core.types.cloneNode(paramName), + UNDEFINED: undefinedNode + })); + param.replaceWith(paramName); + } + } else if (paramIsAssignmentPattern) { + if (firstOptionalIndex === null) firstOptionalIndex = i; + const left = param.get("left"); + const right = param.get("right"); + const defNode = buildDefaultParam({ + VARIABLE_NAME: left.node, + DEFAULT_VALUE: right.node, + ARGUMENT_KEY: _core.types.numericLiteral(i) + }); + body.push(defNode); + } else if (firstOptionalIndex !== null) { + const defNode = buildSafeArgumentsAccess([param.node, _core.types.numericLiteral(i)]); + body.push(defNode); + } else if (param.isObjectPattern() || param.isArrayPattern()) { + const uid = path.scope.generateUidIdentifier("ref"); + uid.typeAnnotation = param.node.typeAnnotation; + const defNode = _core.types.variableDeclaration("let", [_core.types.variableDeclarator(param.node, uid)]); + body.push(defNode); + param.replaceWith(_core.types.cloneNode(uid)); + } + if (transformedRestNodes) { + for (const transformedNode of transformedRestNodes) { + body.push(transformedNode); + } + } + } + if (firstOptionalIndex !== null) { + node.params = node.params.slice(0, firstOptionalIndex); + } + path.ensureBlock(); + const path2 = path; + const { + async, + generator + } = node; + if (generator || state.needsOuterBinding || shadowedParams.size > 0) { + body.push((0, _shadowUtils.buildScopeIIFE)(shadowedParams, path2.node.body)); + path.set("body", _core.types.blockStatement(body)); + const bodyPath = path2.get("body.body"); + const arrowPath = bodyPath[bodyPath.length - 1].get("argument.callee"); + arrowPath.arrowFunctionToExpression(); + arrowPath.node.generator = generator; + arrowPath.node.async = async; + node.generator = false; + node.async = false; + if (async && !generator) { + path2.node.body = _core.template.statement.ast`{ + try { + ${path2.node.body.body} + } catch (e) { + return Promise.reject(e); + } + }`; + } + } else { + path2.get("body").unshiftContainer("body", body); + } + return true; +} + +//# sourceMappingURL=params.js.map diff --git a/node_modules/@babel/plugin-transform-parameters/lib/params.js.map b/node_modules/@babel/plugin-transform-parameters/lib/params.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f3af51ff183372f6cdaa6cff1e66e4627c991dc0 --- /dev/null +++ b/node_modules/@babel/plugin-transform-parameters/lib/params.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_core","require","_shadowUtils","buildDefaultParam","template","statement","buildLooseDefaultParam","buildLooseDestructuredDefaultParam","buildSafeArgumentsAccess","convertFunctionParams","path","ignoreFunctionLength","shouldTransformParam","replaceRestElement","params","get","isSimpleParameterList","every","param","isIdentifier","node","scope","body","shadowedParams","Set","collectShadowedParamsNames","state","needsOuterBinding","size","traverse","iifeVisitor","firstOptionalIndex","i","length","transformedRestNodes","paramIsAssignmentPattern","isAssignmentPattern","t","isMethod","kind","left","right","undefinedNode","buildUndefinedNode","push","ASSIGNMENT_IDENTIFIER","cloneNode","DEFAULT_VALUE","UNDEFINED","replaceWith","isObjectPattern","isArrayPattern","paramName","generateUidIdentifier","PARAMETER_NAME","defNode","VARIABLE_NAME","ARGUMENT_KEY","numericLiteral","uid","typeAnnotation","variableDeclaration","variableDeclarator","transformedNode","slice","ensureBlock","path2","async","generator","buildScopeIIFE","set","blockStatement","bodyPath","arrowPath","arrowFunctionToExpression","ast","unshiftContainer"],"sources":["../src/params.ts"],"sourcesContent":["import { template, types as t, type NodePath } from \"@babel/core\";\n\nimport {\n iifeVisitor,\n collectShadowedParamsNames,\n buildScopeIIFE,\n} from \"./shadow-utils.ts\";\n\nconst buildDefaultParam = template.statement(`\n let VARIABLE_NAME =\n arguments.length > ARGUMENT_KEY && arguments[ARGUMENT_KEY] !== undefined ?\n arguments[ARGUMENT_KEY]\n :\n DEFAULT_VALUE;\n`);\n\nconst buildLooseDefaultParam = template.statement(`\n if (ASSIGNMENT_IDENTIFIER === UNDEFINED) {\n ASSIGNMENT_IDENTIFIER = DEFAULT_VALUE;\n }\n`);\n\nconst buildLooseDestructuredDefaultParam = template.statement(`\n let ASSIGNMENT_IDENTIFIER = PARAMETER_NAME === UNDEFINED ? DEFAULT_VALUE : PARAMETER_NAME ;\n`);\n\nconst buildSafeArgumentsAccess = template.statement(`\n let $0 = arguments.length > $1 ? arguments[$1] : undefined;\n`);\n\n// last 2 parameters are optional -- they are used by transform-object-rest-spread/src/index.js\nexport default function convertFunctionParams(\n path: NodePath,\n ignoreFunctionLength: boolean | void,\n shouldTransformParam?: (index: number) => boolean,\n replaceRestElement?: (\n path: NodePath,\n paramPath: NodePath,\n transformedRestNodes: t.Statement[],\n ) => void,\n) {\n const params = path.get(\"params\");\n\n const isSimpleParameterList = params.every(param => param.isIdentifier());\n if (isSimpleParameterList) return false;\n\n const { node, scope } = path;\n\n const body = [];\n const shadowedParams = new Set();\n\n for (const param of params) {\n collectShadowedParamsNames(param, scope, shadowedParams);\n }\n\n const state = {\n needsOuterBinding: false,\n scope,\n };\n if (shadowedParams.size === 0) {\n for (const param of params) {\n if (!param.isIdentifier()) param.traverse(iifeVisitor, state);\n if (state.needsOuterBinding) break;\n }\n }\n\n let firstOptionalIndex = null;\n\n for (let i = 0; i < params.length; i++) {\n const param = params[i];\n\n if (shouldTransformParam && !shouldTransformParam(i)) {\n continue;\n }\n const transformedRestNodes: t.Statement[] = [];\n if (replaceRestElement) {\n replaceRestElement(path, param, transformedRestNodes);\n }\n\n const paramIsAssignmentPattern = param.isAssignmentPattern();\n if (\n paramIsAssignmentPattern &&\n (ignoreFunctionLength || t.isMethod(node, { kind: \"set\" }))\n ) {\n const left = param.get(\"left\");\n const right = param.get(\"right\");\n\n const undefinedNode = scope.buildUndefinedNode();\n\n if (left.isIdentifier()) {\n body.push(\n buildLooseDefaultParam({\n ASSIGNMENT_IDENTIFIER: t.cloneNode(left.node),\n DEFAULT_VALUE: right.node,\n UNDEFINED: undefinedNode,\n }),\n );\n param.replaceWith(left.node);\n } else if (left.isObjectPattern() || left.isArrayPattern()) {\n const paramName = scope.generateUidIdentifier();\n body.push(\n buildLooseDestructuredDefaultParam({\n ASSIGNMENT_IDENTIFIER: left.node,\n DEFAULT_VALUE: right.node,\n PARAMETER_NAME: t.cloneNode(paramName),\n UNDEFINED: undefinedNode,\n }),\n );\n param.replaceWith(paramName);\n }\n } else if (paramIsAssignmentPattern) {\n if (firstOptionalIndex === null) firstOptionalIndex = i;\n\n const left = param.get(\"left\");\n const right = param.get(\"right\");\n\n const defNode = buildDefaultParam({\n VARIABLE_NAME: left.node,\n DEFAULT_VALUE: right.node,\n ARGUMENT_KEY: t.numericLiteral(i),\n });\n body.push(defNode);\n } else if (firstOptionalIndex !== null) {\n const defNode = buildSafeArgumentsAccess([\n param.node,\n t.numericLiteral(i),\n ]);\n body.push(defNode);\n } else if (param.isObjectPattern() || param.isArrayPattern()) {\n const uid = path.scope.generateUidIdentifier(\"ref\");\n uid.typeAnnotation = param.node.typeAnnotation;\n\n const defNode = t.variableDeclaration(\"let\", [\n t.variableDeclarator(param.node, uid),\n ]);\n body.push(defNode);\n\n param.replaceWith(t.cloneNode(uid));\n }\n\n if (transformedRestNodes) {\n for (const transformedNode of transformedRestNodes) {\n body.push(transformedNode);\n }\n }\n }\n\n // we need to cut off all trailing parameters\n if (firstOptionalIndex !== null) {\n node.params = node.params.slice(0, firstOptionalIndex);\n }\n\n // ensure it's a block, useful for arrow functions\n path.ensureBlock();\n const path2 = path as NodePath;\n\n const { async, generator } = node;\n if (generator || state.needsOuterBinding || shadowedParams.size > 0) {\n body.push(buildScopeIIFE(shadowedParams, path2.node.body));\n\n path.set(\"body\", t.blockStatement(body as t.Statement[]));\n\n // We inject an arrow and then transform it to a normal function, to be\n // sure that we correctly handle this and arguments.\n const bodyPath = path2.get(\"body.body\");\n const arrowPath = bodyPath[bodyPath.length - 1].get(\n \"argument.callee\",\n ) as NodePath;\n\n // This is an IIFE, so we don't need to worry about the noNewArrows assumption\n arrowPath.arrowFunctionToExpression();\n\n arrowPath.node.generator = generator;\n arrowPath.node.async = async;\n\n node.generator = false;\n node.async = false;\n if (async && !generator) {\n // If the default value of a parameter throws, it must reject asynchronously.\n path2.node.body = template.statement.ast`{\n try {\n ${path2.node.body.body}\n } catch (e) {\n return Promise.reject(e);\n }\n }` as t.BlockStatement;\n }\n } else {\n path2.get(\"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C,WAAW,CAAC;IACvC,MAAM0D,SAAS,GAAGD,QAAQ,CAACA,QAAQ,CAACvC,MAAM,GAAG,CAAC,CAAC,CAAClB,GAAG,CACjD,iBACF,CAAwC;IAGxC0D,SAAS,CAACC,yBAAyB,CAAC,CAAC;IAErCD,SAAS,CAACrD,IAAI,CAACgD,SAAS,GAAGA,SAAS;IACpCK,SAAS,CAACrD,IAAI,CAAC+C,KAAK,GAAGA,KAAK;IAE5B/C,IAAI,CAACgD,SAAS,GAAG,KAAK;IACtBhD,IAAI,CAAC+C,KAAK,GAAG,KAAK;IAClB,IAAIA,KAAK,IAAI,CAACC,SAAS,EAAE;MAEvBF,KAAK,CAAC9C,IAAI,CAACE,IAAI,GAAGlB,cAAQ,CAACC,SAAS,CAACsE,GAAG;AAC9C;AACA,YAAYT,KAAK,CAAC9C,IAAI,CAACE,IAAI,CAACA,IAAI;AAChC;AACA;AACA;AACA,QAA4B;IACxB;EACF,CAAC,MAAM;IACL4C,KAAK,CAACnD,GAAG,CAAC,MAAM,CAAC,CAAC6D,gBAAgB,CAAC,MAAM,EAAEtD,IAAI,CAAC;EAClD;EAEA,OAAO,IAAI;AACb","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-parameters/lib/rest.js b/node_modules/@babel/plugin-transform-parameters/lib/rest.js new file mode 100644 index 0000000000000000000000000000000000000000..2ae054b14cfc24092a8ddfb8a3cea645095b6bca --- /dev/null +++ b/node_modules/@babel/plugin-transform-parameters/lib/rest.js @@ -0,0 +1,284 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = convertFunctionRest; +var _core = require("@babel/core"); +var _shadowUtils = require("./shadow-utils.js"); +const buildRest = _core.template.statement(` + for (var LEN = ARGUMENTS.length, + ARRAY = new Array(ARRAY_LEN), + KEY = START; + KEY < LEN; + KEY++) { + ARRAY[ARRAY_KEY] = ARGUMENTS[KEY]; + } +`); +const restIndex = _core.template.expression(` + (INDEX < OFFSET || ARGUMENTS.length <= INDEX) ? undefined : ARGUMENTS[INDEX] +`); +const restIndexImpure = _core.template.expression(` + REF = INDEX, (REF < OFFSET || ARGUMENTS.length <= REF) ? undefined : ARGUMENTS[REF] +`); +const restLength = _core.template.expression(` + ARGUMENTS.length <= OFFSET ? 0 : ARGUMENTS.length - OFFSET +`); +function referencesRest(path, state) { + if (path.node.name === state.name) { + return path.scope.bindingIdentifierEquals(state.name, state.outerBinding); + } + return false; +} +const memberExpressionOptimisationVisitor = { + Scope(path, state) { + if (!path.scope.bindingIdentifierEquals(state.name, state.outerBinding)) { + path.skip(); + } + }, + Flow(path) { + if (path.isTypeCastExpression()) return; + path.skip(); + }, + Function(path, state) { + const oldNoOptimise = state.noOptimise; + state.noOptimise = true; + path.traverse(memberExpressionOptimisationVisitor, state); + state.noOptimise = oldNoOptimise; + path.skip(); + }, + ReferencedIdentifier(path, state) { + const { + node + } = path; + if (node.name === "arguments") { + state.deopted = true; + } + if (!referencesRest(path, state)) return; + if (state.noOptimise) { + state.deopted = true; + } else { + const { + parentPath + } = path; + if (parentPath.listKey === "params" && parentPath.key < state.offset) { + return; + } + if (parentPath.isMemberExpression({ + object: node + })) { + const grandparentPath = parentPath.parentPath; + const argsOptEligible = !state.deopted && !(grandparentPath.isAssignmentExpression() && parentPath.node === grandparentPath.node.left || grandparentPath.isLVal() || grandparentPath.isForXStatement() || grandparentPath.isUpdateExpression() || grandparentPath.isUnaryExpression({ + operator: "delete" + }) || (grandparentPath.isCallExpression() || grandparentPath.isNewExpression()) && parentPath.node === grandparentPath.node.callee); + if (argsOptEligible) { + if (parentPath.node.computed) { + if (parentPath.get("property").isBaseType("number")) { + state.candidates.push({ + cause: "indexGetter", + path + }); + return; + } + } else if (parentPath.node.property.name === "length") { + state.candidates.push({ + cause: "lengthGetter", + path + }); + return; + } + } + } + if (state.offset === 0 && parentPath.isSpreadElement()) { + const call = parentPath.parentPath; + if (call.isCallExpression() && call.node.arguments.length === 1) { + state.candidates.push({ + cause: "argSpread", + path + }); + return; + } + } + state.references.push(path); + } + }, + BindingIdentifier(path, state) { + if (referencesRest(path, state)) { + state.deopted = true; + } + } +}; +function getParamsCount(node) { + let count = node.params.length; + if (count > 0 && _core.types.isIdentifier(node.params[0], { + name: "this" + })) { + count -= 1; + } + return count; +} +function hasRest(node) { + const length = node.params.length; + return length > 0 && _core.types.isRestElement(node.params[length - 1]); +} +function optimiseIndexGetter(path, argsId, offset) { + const offsetLiteral = _core.types.numericLiteral(offset); + let index; + const parent = path.parent; + if (_core.types.isNumericLiteral(parent.property)) { + index = _core.types.numericLiteral(parent.property.value + offset); + } else if (offset === 0) { + index = parent.property; + } else { + index = _core.types.binaryExpression("+", parent.property, _core.types.cloneNode(offsetLiteral)); + } + const { + scope, + parentPath + } = path; + if (!scope.isPure(index)) { + const temp = scope.generateUidIdentifierBasedOnNode(index); + scope.push({ + id: temp, + kind: "var" + }); + parentPath.replaceWith(restIndexImpure({ + ARGUMENTS: argsId, + OFFSET: offsetLiteral, + INDEX: index, + REF: _core.types.cloneNode(temp) + })); + } else { + parentPath.replaceWith(restIndex({ + ARGUMENTS: argsId, + OFFSET: offsetLiteral, + INDEX: index + })); + const replacedParentPath = parentPath; + const offsetTestPath = replacedParentPath.get("test"); + const valRes = offsetTestPath.get("left").evaluate(); + if (valRes.confident) { + if (valRes.value === true) { + replacedParentPath.replaceWith(scope.buildUndefinedNode()); + } else { + offsetTestPath.replaceWith(offsetTestPath.get("right")); + } + } + } +} +function optimiseLengthGetter(path, argsId, offset) { + if (offset) { + path.parentPath.replaceWith(restLength({ + ARGUMENTS: argsId, + OFFSET: _core.types.numericLiteral(offset) + })); + } else { + path.replaceWith(argsId); + } +} +function convertFunctionRest(path) { + const { + node, + scope + } = path; + if (!hasRest(node)) return false; + const restPath = path.get(`params.${node.params.length - 1}.argument`); + if (!restPath.isIdentifier()) { + const shadowedParams = new Set(); + (0, _shadowUtils.collectShadowedParamsNames)(restPath, path.scope, shadowedParams); + let needsIIFE = shadowedParams.size > 0; + if (!needsIIFE) { + const state = { + needsOuterBinding: false, + scope + }; + restPath.traverse(_shadowUtils.iifeVisitor, state); + needsIIFE = state.needsOuterBinding; + } + if (needsIIFE) { + path.ensureBlock(); + path.set("body", _core.types.blockStatement([(0, _shadowUtils.buildScopeIIFE)(shadowedParams, path.node.body)])); + } + } + let rest = restPath.node; + node.params.pop(); + if (_core.types.isPattern(rest)) { + const pattern = rest; + rest = scope.generateUidIdentifier("ref"); + const declar = _core.types.variableDeclaration("let", [_core.types.variableDeclarator(pattern, rest)]); + path.ensureBlock(); + node.body.body.unshift(declar); + } else if (rest.name === "arguments") { + scope.rename(rest.name); + } + const argsId = _core.types.identifier("arguments"); + const paramsCount = getParamsCount(node); + const state = { + references: [], + offset: paramsCount, + argumentsNode: argsId, + outerBinding: scope.getBindingIdentifier(rest.name), + candidates: [], + name: rest.name, + deopted: false + }; + path.traverse(memberExpressionOptimisationVisitor, state); + if (!state.deopted && !state.references.length) { + for (const { + path, + cause + } of state.candidates) { + const clonedArgsId = _core.types.cloneNode(argsId); + switch (cause) { + case "indexGetter": + optimiseIndexGetter(path, clonedArgsId, state.offset); + break; + case "lengthGetter": + optimiseLengthGetter(path, clonedArgsId, state.offset); + break; + default: + path.replaceWith(clonedArgsId); + } + } + return true; + } + state.references.push(...state.candidates.map(({ + path + }) => path)); + const start = _core.types.numericLiteral(paramsCount); + const key = scope.generateUidIdentifier("key"); + const len = scope.generateUidIdentifier("len"); + let arrKey, arrLen; + if (paramsCount) { + arrKey = _core.types.binaryExpression("-", _core.types.cloneNode(key), _core.types.cloneNode(start)); + arrLen = _core.types.conditionalExpression(_core.types.binaryExpression(">", _core.types.cloneNode(len), _core.types.cloneNode(start)), _core.types.binaryExpression("-", _core.types.cloneNode(len), _core.types.cloneNode(start)), _core.types.numericLiteral(0)); + } else { + arrKey = _core.types.identifier(key.name); + arrLen = _core.types.identifier(len.name); + } + const loop = buildRest({ + ARGUMENTS: argsId, + ARRAY_KEY: arrKey, + ARRAY_LEN: arrLen, + START: start, + ARRAY: rest, + KEY: key, + LEN: len + }); + if (state.deopted) { + node.body.body.unshift(loop); + } else { + let target = path.getEarliestCommonAncestorFrom(state.references).getStatementParent(); + target.findParent(path => { + if (path.isLoop()) { + target = path; + } else { + return path.isFunction(); + } + }); + target.insertBefore(loop); + } + return true; +} + +//# sourceMappingURL=rest.js.map diff --git a/node_modules/@babel/plugin-transform-parameters/lib/rest.js.map b/node_modules/@babel/plugin-transform-parameters/lib/rest.js.map new file mode 100644 index 0000000000000000000000000000000000000000..078936b048d8cef47e35387668dc12846cdefcab --- /dev/null +++ b/node_modules/@babel/plugin-transform-parameters/lib/rest.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_core","require","_shadowUtils","buildRest","template","statement","restIndex","expression","restIndexImpure","restLength","referencesRest","path","state","node","name","scope","bindingIdentifierEquals","outerBinding","memberExpressionOptimisationVisitor","Scope","skip","Flow","isTypeCastExpression","Function","oldNoOptimise","noOptimise","traverse","ReferencedIdentifier","deopted","parentPath","listKey","key","offset","isMemberExpression","object","grandparentPath","argsOptEligible","isAssignmentExpression","left","isLVal","isForXStatement","isUpdateExpression","isUnaryExpression","operator","isCallExpression","isNewExpression","callee","computed","get","isBaseType","candidates","push","cause","property","isSpreadElement","call","arguments","length","references","BindingIdentifier","getParamsCount","count","params","t","isIdentifier","hasRest","isRestElement","optimiseIndexGetter","argsId","offsetLiteral","numericLiteral","index","parent","isNumericLiteral","value","binaryExpression","cloneNode","isPure","temp","generateUidIdentifierBasedOnNode","id","kind","replaceWith","ARGUMENTS","OFFSET","INDEX","REF","replacedParentPath","offsetTestPath","valRes","evaluate","confident","buildUndefinedNode","optimiseLengthGetter","convertFunctionRest","restPath","shadowedParams","Set","collectShadowedParamsNames","needsIIFE","size","needsOuterBinding","iifeVisitor","ensureBlock","set","blockStatement","buildScopeIIFE","body","rest","pop","isPattern","pattern","generateUidIdentifier","declar","variableDeclaration","variableDeclarator","unshift","rename","identifier","paramsCount","argumentsNode","getBindingIdentifier","clonedArgsId","map","start","len","arrKey","arrLen","conditionalExpression","loop","ARRAY_KEY","ARRAY_LEN","START","ARRAY","KEY","LEN","target","getEarliestCommonAncestorFrom","getStatementParent","findParent","isLoop","isFunction","insertBefore"],"sources":["../src/rest.ts"],"sourcesContent":["import { template, types as t } from \"@babel/core\";\nimport type { NodePath, Visitor } from \"@babel/core\";\n\nimport {\n iifeVisitor,\n collectShadowedParamsNames,\n buildScopeIIFE,\n} from \"./shadow-utils.ts\";\n\nconst buildRest = template.statement(`\n for (var LEN = ARGUMENTS.length,\n ARRAY = new Array(ARRAY_LEN),\n KEY = START;\n KEY < LEN;\n KEY++) {\n ARRAY[ARRAY_KEY] = ARGUMENTS[KEY];\n }\n`);\n\nconst restIndex = template.expression(`\n (INDEX < OFFSET || ARGUMENTS.length <= INDEX) ? undefined : ARGUMENTS[INDEX]\n`);\n\nconst restIndexImpure = template.expression(`\n REF = INDEX, (REF < OFFSET || ARGUMENTS.length <= REF) ? undefined : ARGUMENTS[REF]\n`);\n\nconst restLength = template.expression(`\n ARGUMENTS.length <= OFFSET ? 0 : ARGUMENTS.length - OFFSET\n`);\n\nfunction referencesRest(\n path: NodePath,\n state: State,\n) {\n if (path.node.name === state.name) {\n // Check rest parameter is not shadowed by a binding in another scope.\n return path.scope.bindingIdentifierEquals(state.name, state.outerBinding);\n }\n\n return false;\n}\n\ntype Candidate = {\n cause: \"argSpread\" | \"indexGetter\" | \"lengthGetter\";\n path: NodePath;\n};\n\ntype State = {\n references: NodePath[];\n offset: number;\n\n argumentsNode: t.Identifier;\n outerBinding: t.Identifier;\n\n // candidate member expressions we could optimise if there are no other references\n candidates: Candidate[];\n\n // local rest binding name\n name: string;\n\n /*\n It may be possible to optimize the output code in certain ways, such as\n not generating code to initialize an array (perhaps substituting direct\n references to arguments[i] or arguments.length for reads of the\n corresponding rest parameter property) or positioning the initialization\n code so that it may not have to execute depending on runtime conditions.\n\n This property tracks eligibility for optimization. \"deopted\" means give up\n and don't perform optimization. For example, when any of rest's elements /\n properties is assigned to at the top level, or referenced at all in a\n nested function.\n */\n deopted: boolean;\n noOptimise?: boolean;\n};\n\nconst memberExpressionOptimisationVisitor: Visitor = {\n Scope(path, state) {\n // check if this scope has a local binding that will shadow the rest parameter\n if (!path.scope.bindingIdentifierEquals(state.name, state.outerBinding)) {\n path.skip();\n }\n },\n\n Flow(path: NodePath) {\n // Do not skip TypeCastExpressions as the contain valid non flow code\n if (path.isTypeCastExpression()) return;\n // don't touch reference in type annotations\n path.skip();\n },\n\n Function(path, state) {\n // Detect whether any reference to rest is contained in nested functions to\n // determine if deopt is necessary.\n const oldNoOptimise = state.noOptimise;\n state.noOptimise = true;\n path.traverse(memberExpressionOptimisationVisitor, state);\n state.noOptimise = oldNoOptimise;\n\n // Skip because optimizing references to rest would refer to the `arguments`\n // of the nested function.\n path.skip();\n },\n\n ReferencedIdentifier(path, state) {\n const { node } = path;\n\n // we can't guarantee the purity of arguments\n if (node.name === \"arguments\") {\n state.deopted = true;\n }\n\n // is this a referenced identifier and is it referencing the rest parameter?\n if (!referencesRest(path, state)) return;\n\n if (state.noOptimise) {\n state.deopted = true;\n } else {\n const { parentPath } = path;\n\n // Is this identifier the right hand side of a default parameter?\n if (\n parentPath.listKey === \"params\" &&\n (parentPath.key as number) < state.offset\n ) {\n return;\n }\n\n // ex: `args[0]`\n // ex: `args.whatever`\n if (parentPath.isMemberExpression({ object: node })) {\n const grandparentPath = parentPath.parentPath;\n\n const argsOptEligible =\n !state.deopted &&\n !(\n // ex: `args[0] = \"whatever\"`\n (\n (grandparentPath.isAssignmentExpression() &&\n parentPath.node === grandparentPath.node.left) ||\n // ex: `[args[0]] = [\"whatever\"]`\n grandparentPath.isLVal() ||\n // ex: `for (rest[0] in this)`\n // ex: `for (rest[0] of this)`\n grandparentPath.isForXStatement() ||\n // ex: `++args[0]`\n // ex: `args[0]--`\n grandparentPath.isUpdateExpression() ||\n // ex: `delete args[0]`\n grandparentPath.isUnaryExpression({ operator: \"delete\" }) ||\n // ex: `args[0]()`\n // ex: `new args[0]()`\n // ex: `new args[0]`\n ((grandparentPath.isCallExpression() ||\n grandparentPath.isNewExpression()) &&\n parentPath.node === grandparentPath.node.callee)\n )\n );\n\n if (argsOptEligible) {\n if (parentPath.node.computed) {\n // if we know that this member expression is referencing a number then\n // we can safely optimise it\n if (parentPath.get(\"property\").isBaseType(\"number\")) {\n state.candidates.push({ cause: \"indexGetter\", path });\n return;\n }\n } else if (\n // @ts-expect-error .length must not be a private name\n parentPath.node.property.name === \"length\"\n ) {\n // args.length\n state.candidates.push({ cause: \"lengthGetter\", path });\n return;\n }\n }\n }\n\n // we can only do these optimizations if the rest variable would match\n // the arguments exactly\n // optimise single spread args in calls\n // ex: fn(...args)\n if (state.offset === 0 && parentPath.isSpreadElement()) {\n const call = parentPath.parentPath;\n if (call.isCallExpression() && call.node.arguments.length === 1) {\n state.candidates.push({ cause: \"argSpread\", path });\n return;\n }\n }\n\n state.references.push(path);\n }\n },\n\n /**\n * Deopt on use of a binding identifier with the same name as our rest param.\n *\n * See https://github.com/babel/babel/issues/2091\n */\n\n BindingIdentifier(path, state) {\n if (referencesRest(path, state)) {\n state.deopted = true;\n }\n },\n};\n\nfunction getParamsCount(node: t.Function) {\n let count = node.params.length;\n // skip the first parameter if it is a TypeScript 'this parameter'\n if (count > 0 && t.isIdentifier(node.params[0], { name: \"this\" })) {\n count -= 1;\n }\n return count;\n}\n\nfunction hasRest(node: t.Function) {\n const length = node.params.length;\n return length > 0 && t.isRestElement(node.params[length - 1]);\n}\n\nfunction optimiseIndexGetter(\n path: NodePath,\n argsId: t.Identifier,\n offset: number,\n) {\n const offsetLiteral = t.numericLiteral(offset);\n let index;\n const parent = path.parent as t.MemberExpression;\n\n if (t.isNumericLiteral(parent.property)) {\n index = t.numericLiteral(parent.property.value + offset);\n } else if (offset === 0) {\n // Avoid unnecessary '+ 0'\n index = parent.property;\n } else {\n index = t.binaryExpression(\n \"+\",\n parent.property,\n t.cloneNode(offsetLiteral),\n );\n }\n\n const { scope, parentPath } = path;\n if (!scope.isPure(index)) {\n const temp = scope.generateUidIdentifierBasedOnNode(index);\n scope.push({ id: temp, kind: \"var\" });\n parentPath.replaceWith(\n restIndexImpure({\n ARGUMENTS: argsId,\n OFFSET: offsetLiteral,\n INDEX: index,\n REF: t.cloneNode(temp),\n }),\n );\n } else {\n parentPath.replaceWith(\n restIndex({\n ARGUMENTS: argsId,\n OFFSET: offsetLiteral,\n INDEX: index,\n }),\n );\n const replacedParentPath = parentPath as NodePath;\n\n // See if we can statically evaluate the first test (i.e. index < offset)\n // and optimize the AST accordingly.\n const offsetTestPath = replacedParentPath.get(\n \"test\",\n ) as NodePath;\n const valRes = offsetTestPath.get(\"left\").evaluate();\n if (valRes.confident) {\n if (valRes.value === true) {\n replacedParentPath.replaceWith(scope.buildUndefinedNode());\n } else {\n offsetTestPath.replaceWith(offsetTestPath.get(\"right\"));\n }\n }\n }\n}\n\nfunction optimiseLengthGetter(\n path: NodePath,\n argsId: t.Identifier,\n offset: number,\n) {\n if (offset) {\n path.parentPath.replaceWith(\n restLength({\n ARGUMENTS: argsId,\n OFFSET: t.numericLiteral(offset),\n }),\n );\n } else {\n path.replaceWith(argsId);\n }\n}\n\nexport default function convertFunctionRest(path: NodePath) {\n const { node, scope } = path;\n if (!hasRest(node)) return false;\n\n const restPath = path.get(\n `params.${node.params.length - 1}.argument`,\n ) as NodePath;\n\n if (!restPath.isIdentifier()) {\n const shadowedParams = new Set();\n collectShadowedParamsNames(restPath, path.scope, shadowedParams);\n\n let needsIIFE = shadowedParams.size > 0;\n if (!needsIIFE) {\n const state = {\n needsOuterBinding: false,\n scope,\n };\n restPath.traverse(iifeVisitor, state);\n needsIIFE = state.needsOuterBinding;\n }\n\n if (needsIIFE) {\n path.ensureBlock();\n path.set(\n \"body\",\n t.blockStatement([\n buildScopeIIFE(shadowedParams, path.node.body as t.BlockStatement),\n ]),\n );\n }\n }\n\n let rest = restPath.node;\n node.params.pop(); // This returns 'rest'\n\n if (t.isPattern(rest)) {\n const pattern = rest;\n rest = scope.generateUidIdentifier(\"ref\");\n\n const declar = t.variableDeclaration(\"let\", [\n t.variableDeclarator(pattern, rest),\n ]);\n path.ensureBlock();\n (node.body as t.BlockStatement).body.unshift(declar);\n } else if (rest.name === \"arguments\") {\n scope.rename(rest.name);\n }\n\n const argsId = t.identifier(\"arguments\");\n const paramsCount = getParamsCount(node);\n\n // check and optimise for extremely common cases\n const state: State = {\n references: [],\n offset: paramsCount,\n argumentsNode: argsId,\n outerBinding: scope.getBindingIdentifier(rest.name),\n candidates: [],\n name: rest.name,\n deopted: false,\n };\n\n path.traverse(memberExpressionOptimisationVisitor, state);\n\n // There are only \"shorthand\" references\n if (!state.deopted && !state.references.length) {\n for (const { path, cause } of state.candidates) {\n const clonedArgsId = t.cloneNode(argsId);\n switch (cause) {\n case \"indexGetter\":\n optimiseIndexGetter(path, clonedArgsId, state.offset);\n break;\n case \"lengthGetter\":\n optimiseLengthGetter(path, clonedArgsId, state.offset);\n break;\n default:\n path.replaceWith(clonedArgsId);\n }\n }\n return true;\n }\n\n state.references.push(...state.candidates.map(({ path }) => path));\n\n const start = t.numericLiteral(paramsCount);\n const key = scope.generateUidIdentifier(\"key\");\n const len = scope.generateUidIdentifier(\"len\");\n\n let arrKey, arrLen;\n if (paramsCount) {\n // this method has additional params, so we need to subtract\n // the index of the current argument position from the\n // position in the array that we want to populate\n arrKey = t.binaryExpression(\"-\", t.cloneNode(key), t.cloneNode(start));\n\n // we need to work out the size of the array that we're\n // going to store all the rest parameters\n //\n // we need to add a check to avoid constructing the array\n // with <0 if there are less arguments than params as it'll\n // cause an error\n arrLen = t.conditionalExpression(\n t.binaryExpression(\">\", t.cloneNode(len), t.cloneNode(start)),\n t.binaryExpression(\"-\", t.cloneNode(len), t.cloneNode(start)),\n t.numericLiteral(0),\n );\n } else {\n arrKey = t.identifier(key.name);\n arrLen = t.identifier(len.name);\n }\n\n const loop = buildRest({\n ARGUMENTS: argsId,\n ARRAY_KEY: arrKey,\n ARRAY_LEN: arrLen,\n START: start,\n ARRAY: rest,\n KEY: key,\n LEN: len,\n });\n\n if (state.deopted) {\n (node.body as t.BlockStatement).body.unshift(loop);\n } else {\n let target = path\n .getEarliestCommonAncestorFrom(state.references)\n .getStatementParent();\n\n // don't perform the allocation inside a loop\n target.findParent(path => {\n if (path.isLoop()) {\n target = path;\n } else {\n // Stop crawling up if this is a function.\n return path.isFunction();\n }\n });\n\n target.insertBefore(loop);\n }\n\n return true;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AAMA,MAAME,SAAS,GAAGC,cAAQ,CAACC,SAAS,CAAC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AAEF,MAAMC,SAAS,GAAGF,cAAQ,CAACG,UAAU,CAAC;AACtC;AACA,CAAC,CAAC;AAEF,MAAMC,eAAe,GAAGJ,cAAQ,CAACG,UAAU,CAAC;AAC5C;AACA,CAAC,CAAC;AAEF,MAAME,UAAU,GAAGL,cAAQ,CAACG,UAAU,CAAC;AACvC;AACA,CAAC,CAAC;AAEF,SAASG,cAAcA,CACrBC,IAA8C,EAC9CC,KAAY,EACZ;EACA,IAAID,IAAI,CAACE,IAAI,CAACC,IAAI,KAAKF,KAAK,CAACE,IAAI,EAAE;IAEjC,OAAOH,IAAI,CAACI,KAAK,CAACC,uBAAuB,CAACJ,KAAK,CAACE,IAAI,EAAEF,KAAK,CAACK,YAAY,CAAC;EAC3E;EAEA,OAAO,KAAK;AACd;AAoCA,MAAMC,mCAAmD,GAAG;EAC1DC,KAAKA,CAACR,IAAI,EAAEC,KAAK,EAAE;IAEjB,IAAI,CAACD,IAAI,CAACI,KAAK,CAACC,uBAAuB,CAACJ,KAAK,CAACE,IAAI,EAAEF,KAAK,CAACK,YAAY,CAAC,EAAE;MACvEN,IAAI,CAACS,IAAI,CAAC,CAAC;IACb;EACF,CAAC;EAEDC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babel/plugin-transform-parameters/lib/shadow-utils.js b/node_modules/@babel/plugin-transform-parameters/lib/shadow-utils.js new file mode 100644 index 0000000000000000000000000000000000000000..823329853b4f39fb0ed0c69a5ead79ab3beee679 --- /dev/null +++ b/node_modules/@babel/plugin-transform-parameters/lib/shadow-utils.js @@ -0,0 +1,64 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.buildScopeIIFE = buildScopeIIFE; +exports.collectShadowedParamsNames = collectShadowedParamsNames; +exports.iifeVisitor = void 0; +var _core = require("@babel/core"); +const iifeVisitor = exports.iifeVisitor = { + "ReferencedIdentifier|BindingIdentifier"(path, state) { + const { + scope, + node + } = path; + const { + name + } = node; + if (name === "eval" || scope.getBinding(name) === state.scope.parent.getBinding(name) && state.scope.hasOwnBinding(name)) { + state.needsOuterBinding = true; + path.stop(); + } + }, + "TypeAnnotation|TSTypeAnnotation|TypeParameterDeclaration|TSTypeParameterDeclaration": path => path.skip() +}; +function collectShadowedParamsNames(param, functionScope, shadowedParams) { + for (const name of Object.keys(param.getBindingIdentifiers())) { + var _functionScope$bindin; + const constantViolations = (_functionScope$bindin = functionScope.bindings[name]) == null ? void 0 : _functionScope$bindin.constantViolations; + if (constantViolations) { + for (const redeclarator of constantViolations) { + const node = redeclarator.node; + switch (node.type) { + case "VariableDeclarator": + { + if (node.init === null) { + const declaration = redeclarator.parentPath; + if (!declaration.parentPath.isFor() || declaration.parentPath.get("body") === declaration) { + redeclarator.remove(); + break; + } + } + shadowedParams.add(name); + break; + } + case "FunctionDeclaration": + shadowedParams.add(name); + break; + } + } + } + } +} +function buildScopeIIFE(shadowedParams, body) { + const args = []; + const params = []; + for (const name of shadowedParams) { + args.push(_core.types.identifier(name)); + params.push(_core.types.identifier(name)); + } + return _core.types.returnStatement(_core.types.callExpression(_core.types.arrowFunctionExpression(params, body), args)); +} + +//# sourceMappingURL=shadow-utils.js.map diff --git a/node_modules/@babel/plugin-transform-parameters/lib/shadow-utils.js.map b/node_modules/@babel/plugin-transform-parameters/lib/shadow-utils.js.map new file mode 100644 index 0000000000000000000000000000000000000000..e0cb295316bdc4290cb6c7d509ec76f685dffc3b --- /dev/null +++ b/node_modules/@babel/plugin-transform-parameters/lib/shadow-utils.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_core","require","iifeVisitor","exports","ReferencedIdentifier|BindingIdentifier","path","state","scope","node","name","getBinding","parent","hasOwnBinding","needsOuterBinding","stop","skip","collectShadowedParamsNames","param","functionScope","shadowedParams","Object","keys","getBindingIdentifiers","_functionScope$bindin","constantViolations","bindings","redeclarator","type","init","declaration","parentPath","isFor","get","remove","add","buildScopeIIFE","body","args","params","push","t","identifier","returnStatement","callExpression","arrowFunctionExpression"],"sources":["../src/shadow-utils.ts"],"sourcesContent":["import { types as t } from \"@babel/core\";\nimport type { NodePath, Scope, Visitor } from \"@babel/core\";\n\ntype State = {\n needsOuterBinding: boolean;\n scope: Scope;\n};\n\nexport const iifeVisitor: Visitor = {\n \"ReferencedIdentifier|BindingIdentifier\"(\n path: NodePath,\n state,\n ) {\n const { scope, node } = path;\n const { name } = node;\n\n if (\n name === \"eval\" ||\n (scope.getBinding(name) === state.scope.parent.getBinding(name) &&\n state.scope.hasOwnBinding(name))\n ) {\n state.needsOuterBinding = true;\n path.stop();\n }\n },\n // type annotations don't use or introduce \"real\" bindings\n \"TypeAnnotation|TSTypeAnnotation|TypeParameterDeclaration|TSTypeParameterDeclaration\":\n (path: NodePath) => path.skip(),\n};\n\nexport function collectShadowedParamsNames(\n param: NodePath,\n functionScope: Scope,\n shadowedParams: Set,\n) {\n for (const name of Object.keys(param.getBindingIdentifiers())) {\n const constantViolations = functionScope.bindings[name]?.constantViolations;\n if (constantViolations) {\n for (const redeclarator of constantViolations) {\n const node = redeclarator.node;\n // If a constant violation is a var or a function declaration,\n // we first check to see if it's a var without an init.\n // If so, we remove that declarator.\n // Otherwise, we have to wrap it in an IIFE.\n switch (node.type) {\n case \"VariableDeclarator\": {\n if (node.init === null) {\n const declaration = redeclarator.parentPath;\n // The following uninitialized var declarators should not be removed\n // for (var x in {})\n // for (var x;;)\n if (\n !declaration.parentPath.isFor() ||\n declaration.parentPath.get(\"body\") === declaration\n ) {\n redeclarator.remove();\n break;\n }\n }\n\n shadowedParams.add(name);\n break;\n }\n case \"FunctionDeclaration\":\n shadowedParams.add(name);\n break;\n }\n }\n }\n }\n}\n\nexport function buildScopeIIFE(\n shadowedParams: Set,\n body: t.BlockStatement,\n) {\n const args = [];\n const params = [];\n\n for (const name of shadowedParams) {\n // We create them twice; the other option is to use t.cloneNode\n args.push(t.identifier(name));\n params.push(t.identifier(name));\n }\n\n return t.returnStatement(\n t.callExpression(t.arrowFunctionExpression(params, body), args),\n );\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAQO,MAAMC,WAA2B,GAAAC,OAAA,CAAAD,WAAA,GAAG;EACzC,wCAAwCE,CACtCC,IAA4B,EAC5BC,KAAK,EACL;IACA,MAAM;MAAEC,KAAK;MAAEC;IAAK,CAAC,GAAGH,IAAI;IAC5B,MAAM;MAAEI;IAAK,CAAC,GAAGD,IAAI;IAErB,IACEC,IAAI,KAAK,MAAM,IACdF,KAAK,CAACG,UAAU,CAACD,IAAI,CAAC,KAAKH,KAAK,CAACC,KAAK,CAACI,MAAM,CAACD,UAAU,CAACD,IAAI,CAAC,IAC7DH,KAAK,CAACC,KAAK,CAACK,aAAa,CAACH,IAAI,CAAE,EAClC;MACAH,KAAK,CAACO,iBAAiB,GAAG,IAAI;MAC9BR,IAAI,CAACS,IAAI,CAAC,CAAC;IACb;EACF,CAAC;EAED,qFAAqF,EAClFT,IAAc,IAAKA,IAAI,CAACU,IAAI,CAAC;AAClC,CAAC;AAEM,SAASC,0BAA0BA,CACxCC,KAA6C,EAC7CC,aAAoB,EACpBC,cAA2B,EAC3B;EACA,KAAK,MAAMV,IAAI,IAAIW,MAAM,CAACC,IAAI,CAACJ,KAAK,CAACK,qBAAqB,CAAC,CAAC,C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E,CAAC;AACH","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-parameters/package.json b/node_modules/@babel/plugin-transform-parameters/package.json new file mode 100644 index 0000000000000000000000000000000000000000..bb6147b4e138c215ccec33241eb625bc59721e7b --- /dev/null +++ b/node_modules/@babel/plugin-transform-parameters/package.json @@ -0,0 +1,34 @@ +{ + "name": "@babel/plugin-transform-parameters", + "version": "7.29.7", + "description": "Compile ES2015 default and rest parameters to ES5", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-parameters" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-parameters", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "keywords": [ + "babel-plugin" + ], + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-private-methods/LICENSE b/node_modules/@babel/plugin-transform-private-methods/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-private-methods/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-private-methods/README.md b/node_modules/@babel/plugin-transform-private-methods/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c7ef0a4a96309b8290700694c853f2070f9e99b2 --- /dev/null +++ b/node_modules/@babel/plugin-transform-private-methods/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-private-methods + +> This plugin transforms private class methods + +See our website [@babel/plugin-transform-private-methods](https://babeljs.io/docs/babel-plugin-transform-private-methods) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-private-methods +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-private-methods --dev +``` diff --git a/node_modules/@babel/plugin-transform-private-methods/lib/index.js b/node_modules/@babel/plugin-transform-private-methods/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..11dbe64b3219e618947828f0d340bbe655f8f4ed --- /dev/null +++ b/node_modules/@babel/plugin-transform-private-methods/lib/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _helperCreateClassFeaturesPlugin = require("@babel/helper-create-class-features-plugin"); +var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion("^7.0.0-0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta"); + return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({ + name: "transform-private-methods", + api, + feature: _helperCreateClassFeaturesPlugin.FEATURES.privateMethods, + loose: options.loose, + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("classPrivateMethods"); + } + }); +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-private-methods/lib/index.js.map b/node_modules/@babel/plugin-transform-private-methods/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..7dc4be1ecc407c07f711d352a8121d9eeded26d4 --- /dev/null +++ b/node_modules/@babel/plugin-transform-private-methods/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_helperCreateClassFeaturesPlugin","_default","exports","default","declare","api","options","assertVersion","createClassFeaturePlugin","name","feature","FEATURES","privateMethods","loose","manipulateOptions","opts","parserOpts","plugins","push"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @babel/development/plugin-name */\n\nimport { declare } from \"@babel/helper-plugin-utils\";\nimport {\n createClassFeaturePlugin,\n FEATURES,\n} from \"@babel/helper-create-class-features-plugin\";\n\nexport interface Options {\n loose?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n\n return createClassFeaturePlugin({\n name: \"transform-private-methods\",\n\n api,\n feature: FEATURES.privateMethods,\n loose: options.loose,\n\n manipulateOptions(opts, parserOpts) {\n if (!process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) This plugin has been removed\n parserOpts.plugins.push(\"classPrivateMethods\");\n }\n },\n });\n});\n"],"mappings":";;;;;;AAEA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,gCAAA,GAAAD,OAAA;AAGoD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMrC,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAEC,OAAgB,KAAK;EAChDD,GAAG,CAACE,aAAa,mDAAyC,CAAC;EAE3D,OAAO,IAAAC,yDAAwB,EAAC;IAC9BC,IAAI,EAAE,2BAA2B;IAEjCJ,GAAG;IACHK,OAAO,EAAEC,yCAAQ,CAACC,cAAc;IAChCC,KAAK,EAAEP,OAAO,CAACO,KAAK;IAEpBC,iBAAiBA,CAACC,IAAI,EAAEC,UAAU,EAAE;MAGhCA,UAAU,CAACC,OAAO,CAACC,IAAI,CAAC,qBAAqB,CAAC;IAElD;EACF,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-private-methods/package.json b/node_modules/@babel/plugin-transform-private-methods/package.json new file mode 100644 index 0000000000000000000000000000000000000000..4a3267d21a0e7b9ddd86887e9dfef087bc5edc64 --- /dev/null +++ b/node_modules/@babel/plugin-transform-private-methods/package.json @@ -0,0 +1,35 @@ +{ + "name": "@babel/plugin-transform-private-methods", + "version": "7.29.7", + "description": "This plugin transforms private class methods", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-private-methods" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-private-methods", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-private-property-in-object/LICENSE b/node_modules/@babel/plugin-transform-private-property-in-object/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-private-property-in-object/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-private-property-in-object/README.md b/node_modules/@babel/plugin-transform-private-property-in-object/README.md new file mode 100644 index 0000000000000000000000000000000000000000..59a234dafb349cb1bfea81f064bda386ba816788 --- /dev/null +++ b/node_modules/@babel/plugin-transform-private-property-in-object/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-private-property-in-object + +> This plugin transforms checks for a private property in an object + +See our website [@babel/plugin-transform-private-property-in-object](https://babeljs.io/docs/babel-plugin-transform-private-property-in-object) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-private-property-in-object +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-private-property-in-object --dev +``` diff --git a/node_modules/@babel/plugin-transform-private-property-in-object/lib/index.js b/node_modules/@babel/plugin-transform-private-property-in-object/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..09674c6b5f01d089397ee054970f6f8f9897a40b --- /dev/null +++ b/node_modules/@babel/plugin-transform-private-property-in-object/lib/index.js @@ -0,0 +1,126 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _helperCreateClassFeaturesPlugin = require("@babel/helper-create-class-features-plugin"); +var _helperAnnotateAsPure = require("@babel/helper-annotate-as-pure"); +var _default = exports.default = (0, _helperPluginUtils.declare)((api, opt) => { + api.assertVersion("^7.0.0-0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta"); + const { + types: t, + template + } = api; + const { + loose + } = opt; + const classWeakSets = new WeakMap(); + const fieldsWeakSets = new WeakMap(); + function unshadow(name, targetScope, scope) { + while (scope !== targetScope) { + if (scope.hasOwnBinding(name)) scope.rename(name); + scope = scope.parent; + } + } + function injectToFieldInit(fieldPath, expr, before = false) { + if (fieldPath.node.value) { + const value = fieldPath.get("value"); + if (before) { + value.insertBefore(expr); + } else { + value.insertAfter(expr); + } + } else { + fieldPath.set("value", t.unaryExpression("void", expr)); + } + } + function injectInitialization(classPath, init) { + let firstFieldPath; + let constructorPath; + for (const el of classPath.get("body.body")) { + if ((el.isClassProperty() || el.isClassPrivateProperty()) && !el.node.static) { + firstFieldPath = el; + break; + } + if (!constructorPath && el.isClassMethod({ + kind: "constructor" + })) { + constructorPath = el; + } + } + if (firstFieldPath) { + injectToFieldInit(firstFieldPath, init, true); + } else { + (0, _helperCreateClassFeaturesPlugin.injectInitialization)(classPath, constructorPath, [t.expressionStatement(init)]); + } + } + function getWeakSetId(weakSets, outerClass, reference, name = "", inject) { + let id = weakSets.get(reference.node); + if (!id) { + id = outerClass.scope.generateUidIdentifier(`${name || ""} brandCheck`); + weakSets.set(reference.node, id); + inject(reference, template.expression.ast`${t.cloneNode(id)}.add(this)`); + const newExpr = t.newExpression(t.identifier("WeakSet"), []); + (0, _helperAnnotateAsPure.default)(newExpr); + outerClass.insertBefore(template.ast`var ${id} = ${newExpr}`); + } + return t.cloneNode(id); + } + return { + name: "transform-private-property-in-object", + manipulateOptions: (_, parser) => parser.plugins.push("privateIn"), + pre() { + (0, _helperCreateClassFeaturesPlugin.enableFeature)(this.file, _helperCreateClassFeaturesPlugin.FEATURES.privateIn, loose); + }, + visitor: { + BinaryExpression(path, state) { + const { + node + } = path; + const { + file + } = state; + if (node.operator !== "in") return; + if (!t.isPrivateName(node.left)) return; + const { + name + } = node.left.id; + let privateElement; + const outerClass = path.findParent(path => { + if (!path.isClass()) return false; + privateElement = path.get("body.body").find(({ + node + }) => t.isPrivate(node) && node.key.id.name === name); + return !!privateElement; + }); + if (outerClass.parentPath.scope.path.isPattern()) { + outerClass.replaceWith(template.ast`(() => ${outerClass.node})()`); + return; + } + if (privateElement.node.type === "ClassPrivateMethod") { + if (privateElement.node.static) { + if (outerClass.node.id) { + unshadow(outerClass.node.id.name, outerClass.scope, path.scope); + } else { + outerClass.set("id", path.scope.generateUidIdentifier("class")); + } + path.replaceWith(template.expression.ast` + ${t.cloneNode(outerClass.node.id)} === ${(0, _helperCreateClassFeaturesPlugin.buildCheckInRHS)(node.right, file)} + `); + } else { + var _outerClass$node$id; + const id = getWeakSetId(classWeakSets, outerClass, outerClass, (_outerClass$node$id = outerClass.node.id) == null ? void 0 : _outerClass$node$id.name, injectInitialization); + path.replaceWith(template.expression.ast`${id}.has(${(0, _helperCreateClassFeaturesPlugin.buildCheckInRHS)(node.right, file)})`); + } + } else { + const id = getWeakSetId(fieldsWeakSets, outerClass, privateElement, privateElement.node.key.id.name, injectToFieldInit); + path.replaceWith(template.expression.ast`${id}.has(${(0, _helperCreateClassFeaturesPlugin.buildCheckInRHS)(node.right, file)})`); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-private-property-in-object/lib/index.js.map b/node_modules/@babel/plugin-transform-private-property-in-object/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..1f4b96ee03b7b28ad609077ec363755ee94e1400 --- /dev/null +++ b/node_modules/@babel/plugin-transform-private-property-in-object/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_helperCreateClassFeaturesPlugin","_helperAnnotateAsPure","_default","exports","default","declare","api","opt","assertVersion","types","t","template","loose","classWeakSets","WeakMap","fieldsWeakSets","unshadow","name","targetScope","scope","hasOwnBinding","rename","parent","injectToFieldInit","fieldPath","expr","before","node","value","get","insertBefore","insertAfter","set","unaryExpression","injectInitialization","classPath","init","firstFieldPath","constructorPath","el","isClassProperty","isClassPrivateProperty","static","isClassMethod","kind","injectConstructorInit","expressionStatement","getWeakSetId","weakSets","outerClass","reference","inject","id","generateUidIdentifier","expression","ast","cloneNode","newExpr","newExpression","identifier","annotateAsPure","manipulateOptions","_","parser","plugins","push","pre","enableFeature","file","FEATURES","privateIn","visitor","BinaryExpression","path","state","operator","isPrivateName","left","privateElement","findParent","isClass","find","isPrivate","key","parentPath","isPattern","replaceWith","type","buildCheckInRHS","right","_outerClass$node$id"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport {\n enableFeature,\n FEATURES,\n injectInitialization as injectConstructorInit,\n buildCheckInRHS,\n} from \"@babel/helper-create-class-features-plugin\";\nimport annotateAsPure from \"@babel/helper-annotate-as-pure\";\nimport type { NodePath, Scope, types as t } from \"@babel/core\";\n\nexport interface Options {\n loose?: boolean;\n}\nexport default declare((api, opt: Options) => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n const { types: t, template } = api;\n const { loose } = opt;\n\n // NOTE: When using the class fields or private methods plugins,\n // they will also take care of '#priv in obj' checks when visiting\n // the ClassExpression or ClassDeclaration nodes.\n // The visitor of this plugin is only effective when not compiling\n // private fields and methods.\n\n const classWeakSets = new WeakMap();\n const fieldsWeakSets = new WeakMap<\n t.ClassPrivateProperty | t.ClassPrivateMethod,\n t.Identifier\n >();\n\n function unshadow(name: string, targetScope: Scope, scope: Scope) {\n while (scope !== targetScope) {\n if (scope.hasOwnBinding(name)) scope.rename(name);\n scope = scope.parent;\n }\n }\n\n function injectToFieldInit(\n fieldPath: NodePath,\n expr: t.Expression,\n before = false,\n ) {\n if (fieldPath.node.value) {\n const value = fieldPath.get(\"value\");\n if (before) {\n value.insertBefore(expr);\n } else {\n value.insertAfter(expr);\n }\n } else {\n fieldPath.set(\"value\", t.unaryExpression(\"void\", expr));\n }\n }\n\n function injectInitialization(\n classPath: NodePath,\n init: t.Expression,\n ) {\n let firstFieldPath;\n let constructorPath;\n\n for (const el of classPath.get(\"body.body\")) {\n if (\n (el.isClassProperty() || el.isClassPrivateProperty()) &&\n !el.node.static\n ) {\n firstFieldPath = el;\n break;\n }\n if (!constructorPath && el.isClassMethod({ kind: \"constructor\" })) {\n constructorPath = el;\n }\n }\n\n if (firstFieldPath) {\n injectToFieldInit(firstFieldPath, init, true);\n } else {\n injectConstructorInit(classPath, constructorPath, [\n t.expressionStatement(init),\n ]);\n }\n }\n\n function getWeakSetId(\n weakSets: WeakMap,\n outerClass: NodePath,\n reference: NodePath,\n name = \"\",\n inject: (\n reference: NodePath,\n expression: t.Expression,\n before?: boolean,\n ) => void,\n ) {\n let id = weakSets.get(reference.node);\n\n if (!id) {\n id = outerClass.scope.generateUidIdentifier(`${name || \"\"} brandCheck`);\n weakSets.set(reference.node, id);\n\n inject(reference, template.expression.ast`${t.cloneNode(id)}.add(this)`);\n\n const newExpr = t.newExpression(t.identifier(\"WeakSet\"), []);\n annotateAsPure(newExpr);\n\n outerClass.insertBefore(template.ast`var ${id} = ${newExpr}`);\n }\n\n return t.cloneNode(id);\n }\n\n return {\n name: \"transform-private-property-in-object\",\n manipulateOptions: process.env.BABEL_8_BREAKING\n ? undefined\n : (_, parser) => parser.plugins.push(\"privateIn\"),\n pre() {\n // Enable this in @babel/helper-create-class-features-plugin, so that it\n // can be handled by the private fields and methods transform.\n enableFeature(this.file, FEATURES.privateIn, loose);\n },\n visitor: {\n BinaryExpression(path, state) {\n const { node } = path;\n const { file } = state;\n if (node.operator !== \"in\") return;\n if (!t.isPrivateName(node.left)) return;\n\n const { name } = node.left.id;\n\n let privateElement: NodePath<\n t.ClassPrivateMethod | t.ClassPrivateProperty\n >;\n const outerClass = path.findParent(path => {\n if (!path.isClass()) return false;\n\n privateElement = path.get(\"body.body\").find(\n ({ node }) =>\n // fixme: Support class accessor property\n t.isPrivate(node) && node.key.id.name === name,\n ) as NodePath;\n\n return !!privateElement;\n }) as NodePath;\n\n if (outerClass.parentPath.scope.path.isPattern()) {\n outerClass.replaceWith(\n template.ast`(() => ${outerClass.node})()` as t.Statement,\n );\n // The injected class will be queued and eventually transformed when visited\n return;\n }\n\n if (privateElement.node.type === \"ClassPrivateMethod\") {\n if (privateElement.node.static) {\n if (outerClass.node.id) {\n unshadow(outerClass.node.id.name, outerClass.scope, path.scope);\n } else {\n outerClass.set(\"id\", path.scope.generateUidIdentifier(\"class\"));\n }\n path.replaceWith(\n template.expression.ast`\n ${t.cloneNode(outerClass.node.id)} === ${buildCheckInRHS(\n node.right,\n file,\n )}\n `,\n );\n } else {\n const id = getWeakSetId(\n classWeakSets,\n outerClass,\n outerClass,\n outerClass.node.id?.name,\n injectInitialization,\n );\n\n path.replaceWith(\n template.expression.ast`${id}.has(${buildCheckInRHS(\n node.right,\n file,\n )})`,\n );\n }\n } else {\n // Private fields might not all be initialized: see the 'halfConstructed'\n // example at https://v8.dev/features/private-brand-checks.\n\n const id = getWeakSetId(\n fieldsWeakSets,\n outerClass,\n privateElement as NodePath,\n privateElement.node.key.id.name,\n injectToFieldInit,\n );\n\n path.replaceWith(\n template.expression.ast`${id}.has(${buildCheckInRHS(\n node.right,\n file,\n )})`,\n );\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,gCAAA,GAAAD,OAAA;AAMA,IAAAE,qBAAA,GAAAF,OAAA;AAA4D,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAM7C,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAEC,GAAY,KAAK;EAC5CD,GAAG,CAACE,aAAa,mDAAyC,CAAC;EAC3D,M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ACnC,IAAI,EAC/BM,iBACF,CAAC;UAEDkD,IAAI,CAACa,WAAW,CACd3E,QAAQ,CAAC2C,UAAU,CAACC,GAAG,GAAGH,EAAE,QAAQ,IAAAoC,gDAAe,EACjD7D,IAAI,CAAC8D,KAAK,EACVrB,IACF,CAAC,GACH,CAAC;QACH;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-private-property-in-object/package.json b/node_modules/@babel/plugin-transform-private-property-in-object/package.json new file mode 100644 index 0000000000000000000000000000000000000000..9591d219fc3763d647f5026e69fcc97d3b7f94e9 --- /dev/null +++ b/node_modules/@babel/plugin-transform-private-property-in-object/package.json @@ -0,0 +1,36 @@ +{ + "name": "@babel/plugin-transform-private-property-in-object", + "version": "7.29.7", + "description": "This plugin transforms checks for a private property in an object", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-private-property-in-object" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-private-property-in-object", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-property-literals/LICENSE b/node_modules/@babel/plugin-transform-property-literals/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-property-literals/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-property-literals/README.md b/node_modules/@babel/plugin-transform-property-literals/README.md new file mode 100644 index 0000000000000000000000000000000000000000..8e490aba61ac7cae1ae15c5dedff7ac4ece7e50f --- /dev/null +++ b/node_modules/@babel/plugin-transform-property-literals/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-property-literals + +> Ensure that reserved words are quoted in object property keys + +See our website [@babel/plugin-transform-property-literals](https://babeljs.io/docs/babel-plugin-transform-property-literals) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-property-literals +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-property-literals --dev +``` diff --git a/node_modules/@babel/plugin-transform-property-literals/lib/index.js b/node_modules/@babel/plugin-transform-property-literals/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..2146054214906fb3e7661cb445ab8463326cf5ef --- /dev/null +++ b/node_modules/@babel/plugin-transform-property-literals/lib/index.js @@ -0,0 +1,28 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-property-literals", + visitor: { + ObjectProperty: { + exit({ + node + }) { + const key = node.key; + if (!node.computed && _core.types.isIdentifier(key) && !_core.types.isValidES3Identifier(key.name)) { + node.key = _core.types.stringLiteral(key.name); + } + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-property-literals/lib/index.js.map b/node_modules/@babel/plugin-transform-property-literals/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..2c77f2504cb85380fb8076be5c5fd4ac26cc2069 --- /dev/null +++ b/node_modules/@babel/plugin-transform-property-literals/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","_default","exports","default","declare","api","assertVersion","name","visitor","ObjectProperty","exit","node","key","computed","t","isIdentifier","isValidES3Identifier","stringLiteral"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t } from \"@babel/core\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n return {\n name: \"transform-property-literals\",\n\n visitor: {\n ObjectProperty: {\n exit({ node }) {\n const key = node.key;\n if (\n !node.computed &&\n t.isIdentifier(key) &&\n !t.isValidES3Identifier(key.name)\n ) {\n // default: \"bar\" -> \"default\": \"bar\"\n node.key = t.stringLiteral(key.name);\n }\n },\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAyC,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE1B,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAkB,CAAE,CAAC;EAEtC,OAAO;IACLC,IAAI,EAAE,6BAA6B;IAEnCC,OAAO,EAAE;MACPC,cAAc,EAAE;QACdC,IAAIA,CAAC;UAAEC;QAAK,CAAC,EAAE;UACb,MAAMC,GAAG,GAAGD,IAAI,CAACC,GAAG;UACpB,IACE,CAACD,IAAI,CAACE,QAAQ,IACdC,WAAC,CAACC,YAAY,CAACH,GAAG,CAAC,IACnB,CAACE,WAAC,CAACE,oBAAoB,CAACJ,GAAG,CAACL,IAAI,CAAC,EACjC;YAEAI,IAAI,CAACC,GAAG,GAAGE,WAAC,CAACG,aAAa,CAACL,GAAG,CAACL,IAAI,CAAC;UACtC;QACF;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-property-literals/package.json b/node_modules/@babel/plugin-transform-property-literals/package.json new file mode 100644 index 0000000000000000000000000000000000000000..b4de84211ce685fc3439bcffebe413517f32f410 --- /dev/null +++ b/node_modules/@babel/plugin-transform-property-literals/package.json @@ -0,0 +1,34 @@ +{ + "name": "@babel/plugin-transform-property-literals", + "version": "7.29.7", + "description": "Ensure that reserved words are quoted in object property keys", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-property-literals" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-property-literals", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-react-jsx-self/LICENSE b/node_modules/@babel/plugin-transform-react-jsx-self/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-react-jsx-self/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-react-jsx-self/README.md b/node_modules/@babel/plugin-transform-react-jsx-self/README.md new file mode 100644 index 0000000000000000000000000000000000000000..12c6e07d7854e239c80c489bfd8bcc5ea16d19a0 --- /dev/null +++ b/node_modules/@babel/plugin-transform-react-jsx-self/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-react-jsx-self + +> Add a __self prop to all JSX Elements + +See our website [@babel/plugin-transform-react-jsx-self](https://babeljs.io/docs/babel-plugin-transform-react-jsx-self) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-react-jsx-self +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-react-jsx-self --dev +``` diff --git a/node_modules/@babel/plugin-transform-react-jsx-self/lib/index.js b/node_modules/@babel/plugin-transform-react-jsx-self/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..20b05fe8dd6449587d9cadd056081b4acb02444d --- /dev/null +++ b/node_modules/@babel/plugin-transform-react-jsx-self/lib/index.js @@ -0,0 +1,61 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +const TRACE_ID = "__self"; +function getThisFunctionParent(path) { + let scope = path.scope; + do { + const { + path + } = scope; + if (path.isFunctionParent() && !path.isArrowFunctionExpression()) { + return path; + } + } while (scope = scope.parent); + return null; +} +function isDerivedClass(classPath) { + return classPath.node.superClass !== null; +} +function isThisAllowed(path) { + const parentMethodOrFunction = getThisFunctionParent(path); + if (parentMethodOrFunction === null) { + return true; + } + if (!parentMethodOrFunction.isMethod()) { + return true; + } + if (parentMethodOrFunction.node.kind !== "constructor") { + return true; + } + return !isDerivedClass(parentMethodOrFunction.parentPath.parentPath); +} +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + const visitor = { + JSXOpeningElement(path) { + if (!isThisAllowed(path)) { + return; + } + const node = path.node; + const id = _core.types.jsxIdentifier(TRACE_ID); + const trace = _core.types.thisExpression(); + node.attributes.push(_core.types.jsxAttribute(id, _core.types.jsxExpressionContainer(trace))); + } + }; + return { + name: "transform-react-jsx-self", + visitor: { + Program(path) { + path.traverse(visitor); + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-react-jsx-self/lib/index.js.map b/node_modules/@babel/plugin-transform-react-jsx-self/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..721b2957ca66b741c243658f6032a1fe472ac070 --- /dev/null +++ b/node_modules/@babel/plugin-transform-react-jsx-self/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","TRACE_ID","getThisFunctionParent","path","scope","isFunctionParent","isArrowFunctionExpression","parent","isDerivedClass","classPath","node","superClass","isThisAllowed","parentMethodOrFunction","isMethod","kind","parentPath","_default","exports","default","declare","api","assertVersion","visitor","JSXOpeningElement","id","t","jsxIdentifier","trace","thisExpression","attributes","push","jsxAttribute","jsxExpressionContainer","name","Program","traverse"],"sources":["../src/index.ts"],"sourcesContent":["/**\n * This adds a __self={this} JSX attribute to all JSX elements, which React will use\n * to generate some runtime warnings. However, if the JSX element appears within a\n * constructor of a derived class, `__self={this}` will not be inserted in order to\n * prevent runtime errors.\n *\n * == JSX Literals ==\n *\n * \n *\n * becomes:\n *\n * \n */\nimport { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t } from \"@babel/core\";\nimport type { Visitor, NodePath } from \"@babel/core\";\n\nconst TRACE_ID = \"__self\";\n\n/**\n * Finds the closest parent function that provides `this`. Specifically, this looks for\n * the first parent function that isn't an arrow function.\n *\n * Derived from `Scope#getFunctionParent`\n */\nfunction getThisFunctionParent(\n path: NodePath,\n): NodePath> | null {\n let scope = path.scope;\n do {\n const { path } = scope;\n if (path.isFunctionParent() && !path.isArrowFunctionExpression()) {\n return path;\n }\n } while ((scope = scope.parent));\n return null;\n}\n\n/**\n * Returns whether the class has specified a superclass.\n */\nfunction isDerivedClass(classPath: NodePath) {\n return classPath.node.superClass !== null;\n}\n\n/**\n * Returns whether `this` is allowed at given path.\n */\nfunction isThisAllowed(path: NodePath) {\n // This specifically skips arrow functions as they do not rewrite `this`.\n const parentMethodOrFunction = getThisFunctionParent(path);\n if (parentMethodOrFunction === null) {\n // We are not in a method or function. It is fine to use `this`.\n return true;\n }\n if (!parentMethodOrFunction.isMethod()) {\n // If the closest parent is a regular function, `this` will be rebound, therefore it is fine to use `this`.\n return true;\n }\n // Current node is within a method, so we need to check if the method is a constructor.\n if (parentMethodOrFunction.node.kind !== \"constructor\") {\n // We are not in a constructor, therefore it is always fine to use `this`.\n return true;\n }\n // Now we are in a constructor. If it is a derived class, we do not reference `this`.\n return !isDerivedClass(\n parentMethodOrFunction.parentPath.parentPath as NodePath,\n );\n}\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const visitor: Visitor = {\n JSXOpeningElement(path) {\n if (!isThisAllowed(path)) {\n return;\n }\n const node = path.node;\n const id = t.jsxIdentifier(TRACE_ID);\n const trace = t.thisExpression();\n\n node.attributes.push(t.jsxAttribute(id, t.jsxExpressionContainer(trace)));\n },\n };\n\n return {\n name: \"transform-react-jsx-self\",\n visitor: {\n Program(path) {\n path.traverse(visitor);\n },\n },\n };\n});\n"],"mappings":";;;;;;AAcA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAGA,MAAME,QAAQ,GAAG,QAAQ;AAQzB,SAASC,qBAAqBA,CAC5BC,IAAmC,EACoC;EACvE,IAAIC,KAAK,GAAGD,IAAI,CAACC,KAAK;EACtB,GAAG;IACD,MAAM;MAAED;IAAK,CAAC,GAAGC,KAAK;IACtB,IAAID,IAAI,CAACE,gBAAgB,CAAC,CAAC,IAAI,CAACF,IAAI,CAACG,yBAAyB,CAAC,CAAC,EAAE;MAChE,OAAOH,IAAI;IACb;EACF,CAAC,QAASC,KAAK,GAAGA,KAAK,CAACG,MAAM;EAC9B,OAAO,IAAI;AACb;AAKA,SAASC,cAAcA,CAACC,SAA4B,EAAE;EACpD,OAAOA,SAAS,CAACC,IAAI,CAACC,UAAU,KAAK,IAAI;AAC3C;AAKA,SAASC,aAAaA,CAACT,IAAmC,EAAE;EAE1D,MAAMU,sBAAsB,GAAGX,qBAAqB,CAACC,IAAI,CAAC;EAC1D,IAAIU,sBAAsB,KAAK,IAAI,EAAE;IAEnC,OAAO,IAAI;EACb;EACA,IAAI,CAACA,sBAAsB,CAACC,QAAQ,CAAC,CAAC,EAAE;IAEtC,OAAO,IAAI;EACb;EAEA,IAAID,sBAAsB,CAACH,IAAI,CAACK,IAAI,KAAK,aAAa,EAAE;IAEtD,OAAO,IAAI;EACb;EAEA,OAAO,CAACP,cAAc,CACpBK,sBAAsB,CAACG,UAAU,CAACA,UACpC,CAAC;AACH;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEc,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAkB,CAAE,CAAC;EAEtC,MAAMC,OAAgB,GAAG;IACvBC,iBAAiBA,CAACrB,IAAI,EAAE;MACtB,IAAI,CAACS,aAAa,CAACT,IAAI,CAAC,EAAE;QACxB;MACF;MACA,MAAMO,IAAI,GAAGP,IAAI,CAACO,IAAI;MACtB,MAAMe,EAAE,GAAGC,WAAC,CAACC,aAAa,CAAC1B,QAAQ,CAAC;MACpC,MAAM2B,KAAK,GAAGF,WAAC,CAACG,cAAc,CAAC,CAAC;MAEhCnB,IAAI,CAACoB,UAAU,CAACC,IAAI,CAACL,WAAC,CAACM,YAAY,CAACP,EAAE,EAAEC,WAAC,CAACO,sBAAsB,CAACL,KAAK,CAAC,CAAC,CAAC;IAC3E;EACF,CAAC;EAED,OAAO;IACLM,IAAI,EAAE,0BAA0B;IAChCX,OAAO,EAAE;MACPY,OAAOA,CAAChC,IAAI,EAAE;QACZA,IAAI,CAACiC,QAAQ,CAACb,OAAO,CAAC;MACxB;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-react-jsx-self/package.json b/node_modules/@babel/plugin-transform-react-jsx-self/package.json new file mode 100644 index 0000000000000000000000000000000000000000..8a614857265af159b018dd319b260eac1693879f --- /dev/null +++ b/node_modules/@babel/plugin-transform-react-jsx-self/package.json @@ -0,0 +1,35 @@ +{ + "name": "@babel/plugin-transform-react-jsx-self", + "version": "7.29.7", + "description": "Add a __self prop to all JSX Elements", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-react-jsx-self" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-react-jsx-self", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/plugin-syntax-jsx": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-react-jsx-source/LICENSE b/node_modules/@babel/plugin-transform-react-jsx-source/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-react-jsx-source/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-react-jsx-source/README.md b/node_modules/@babel/plugin-transform-react-jsx-source/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b77d0b12eb1dbd109c86676e536bd2521c164a82 --- /dev/null +++ b/node_modules/@babel/plugin-transform-react-jsx-source/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-react-jsx-source + +> Add a __source prop to all JSX Elements + +See our website [@babel/plugin-transform-react-jsx-source](https://babeljs.io/docs/babel-plugin-transform-react-jsx-source) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-react-jsx-source +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-react-jsx-source --dev +``` diff --git a/node_modules/@babel/plugin-transform-react-jsx-source/lib/index.js b/node_modules/@babel/plugin-transform-react-jsx-source/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..68526b44d819427632bbd545dd3b9a07ee1875c0 --- /dev/null +++ b/node_modules/@babel/plugin-transform-react-jsx-source/lib/index.js @@ -0,0 +1,51 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +const TRACE_ID = "__source"; +const FILE_NAME_VAR = "_jsxFileName"; +const createNodeFromNullish = (val, fn) => val == null ? _core.types.nullLiteral() : fn(val); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + function makeTrace(fileNameIdentifier, { + line, + column + }) { + const fileLineLiteral = createNodeFromNullish(line, _core.types.numericLiteral); + const fileColumnLiteral = createNodeFromNullish(column, c => _core.types.numericLiteral(c + 1)); + return _core.template.expression.ast`{ + fileName: ${fileNameIdentifier}, + lineNumber: ${fileLineLiteral}, + columnNumber: ${fileColumnLiteral}, + }`; + } + const isSourceAttr = attr => _core.types.isJSXAttribute(attr) && attr.name.name === TRACE_ID; + return { + name: "transform-react-jsx-source", + visitor: { + JSXOpeningElement(path, state) { + const { + node + } = path; + if (!node.loc || path.node.attributes.some(isSourceAttr)) { + return; + } + if (!state.fileNameIdentifier) { + const fileNameId = path.scope.generateUidIdentifier(FILE_NAME_VAR); + state.fileNameIdentifier = fileNameId; + path.scope.getProgramParent().push({ + id: fileNameId, + init: _core.types.stringLiteral(state.filename || "") + }); + } + node.attributes.push(_core.types.jsxAttribute(_core.types.jsxIdentifier(TRACE_ID), _core.types.jsxExpressionContainer(makeTrace(_core.types.cloneNode(state.fileNameIdentifier), node.loc.start)))); + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-react-jsx-source/lib/index.js.map b/node_modules/@babel/plugin-transform-react-jsx-source/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..0748e6ab60283babd6ab9983e0d8b792b9ef57f8 --- /dev/null +++ b/node_modules/@babel/plugin-transform-react-jsx-source/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","TRACE_ID","FILE_NAME_VAR","createNodeFromNullish","val","fn","t","nullLiteral","_default","exports","default","declare","api","assertVersion","makeTrace","fileNameIdentifier","line","column","fileLineLiteral","numericLiteral","fileColumnLiteral","c","template","expression","ast","isSourceAttr","attr","isJSXAttribute","name","visitor","JSXOpeningElement","path","state","node","loc","attributes","some","fileNameId","scope","generateUidIdentifier","getProgramParent","push","id","init","stringLiteral","filename","jsxAttribute","jsxIdentifier","jsxExpressionContainer","cloneNode","start"],"sources":["../src/index.ts"],"sourcesContent":["/**\n * This adds {fileName, lineNumber, columnNumber} annotations to JSX tags.\n *\n * NOTE: lineNumber and columnNumber are both 1-based.\n *\n * == JSX Literals ==\n *\n * \n *\n * becomes:\n *\n * var __jsxFileName = 'this/file.js';\n * \n */\nimport { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t, template } from \"@babel/core\";\n\nconst TRACE_ID = \"__source\";\nconst FILE_NAME_VAR = \"_jsxFileName\";\n\nconst createNodeFromNullish = (\n val: T | null,\n fn: (val: T) => N,\n): N | t.NullLiteral => (val == null ? t.nullLiteral() : fn(val));\n\ntype State = {\n fileNameIdentifier: t.Identifier;\n};\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n function makeTrace(\n fileNameIdentifier: t.Identifier,\n { line, column }: { line: number; column: number },\n ) {\n const fileLineLiteral = createNodeFromNullish(line, t.numericLiteral);\n const fileColumnLiteral = createNodeFromNullish(column, c =>\n // c + 1 to make it 1-based instead of 0-based.\n t.numericLiteral(c + 1),\n );\n\n return template.expression.ast`{\n fileName: ${fileNameIdentifier},\n lineNumber: ${fileLineLiteral},\n columnNumber: ${fileColumnLiteral},\n }`;\n }\n\n const isSourceAttr = (attr: t.Node) =>\n t.isJSXAttribute(attr) && attr.name.name === TRACE_ID;\n\n return {\n name: \"transform-react-jsx-source\",\n visitor: {\n JSXOpeningElement(path, state) {\n const { node } = path;\n if (\n // the element was generated and doesn't have location information\n !node.loc ||\n // Already has __source\n path.node.attributes.some(isSourceAttr)\n ) {\n return;\n }\n\n if (!state.fileNameIdentifier) {\n const fileNameId = path.scope.generateUidIdentifier(FILE_NAME_VAR);\n state.fileNameIdentifier = fileNameId;\n\n path.scope.getProgramParent().push({\n id: fileNameId,\n init: t.stringLiteral(state.filename || \"\"),\n });\n }\n\n node.attributes.push(\n t.jsxAttribute(\n t.jsxIdentifier(TRACE_ID),\n t.jsxExpressionContainer(\n makeTrace(t.cloneNode(state.fileNameIdentifier), node.loc.start),\n ),\n ),\n );\n },\n },\n };\n});\n"],"mappings":";;;;;;AAcA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,MAAME,QAAQ,GAAG,UAAU;AAC3B,MAAMC,aAAa,GAAG,cAAc;AAEpC,MAAMC,qBAAqB,GAAGA,CAC5BC,GAAa,EACbC,EAAiB,KACMD,GAAG,IAAI,IAAI,GAAGE,WAAC,CAACC,WAAW,CAAC,CAAC,GAAGF,EAAE,CAACD,GAAG,CAAE;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAKnD,IAAAC,0BAAO,EAAQC,GAAG,IAAI;EACnCA,GAAG,CAACC,aAAa,CAAkB,CAAE,CAAC;EAEtC,SAASC,SAASA,CA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ACZxC,WAAC,CAACyC,aAAa,CAAC9C,QAAQ,CAAC,EACzBK,WAAC,CAAC0C,sBAAsB,CACtBlC,SAAS,CAACR,WAAC,CAAC2C,SAAS,CAACjB,KAAK,CAACjB,kBAAkB,CAAC,EAAEkB,IAAI,CAACC,GAAG,CAACgB,KAAK,CACjE,CACF,CACF,CAAC;MACH;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-react-jsx-source/package.json b/node_modules/@babel/plugin-transform-react-jsx-source/package.json new file mode 100644 index 0000000000000000000000000000000000000000..3f24f33fa22023eb2a80c6ca8ebc512c0f0802a3 --- /dev/null +++ b/node_modules/@babel/plugin-transform-react-jsx-source/package.json @@ -0,0 +1,35 @@ +{ + "name": "@babel/plugin-transform-react-jsx-source", + "version": "7.29.7", + "description": "Add a __source prop to all JSX Elements", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-react-jsx-source" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-react-jsx-source", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/plugin-syntax-jsx": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-regenerator/LICENSE b/node_modules/@babel/plugin-transform-regenerator/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..79267c5e8e1aa516e8cd5e96ad460bbf9c3af048 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/LICENSE @@ -0,0 +1,23 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors +Copyright (c) 2014-present Facebook, Inc. + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-regenerator/README.md b/node_modules/@babel/plugin-transform-regenerator/README.md new file mode 100644 index 0000000000000000000000000000000000000000..0b1fedd9dbe47a31b806762161357156dfbe4b99 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-regenerator + +> Explode async and generator functions into a state machine. + +See our website [@babel/plugin-transform-regenerator](https://babeljs.io/docs/babel-plugin-transform-regenerator) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-regenerator +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-regenerator --dev +``` diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/index.js b/node_modules/@babel/plugin-transform-regenerator/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..32d81b65df782512eb93abe6181d016b6a5adf3c --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _visit = require("./regenerator/visit.js"); +var _default = exports.default = (0, _helperPluginUtils.declare)(({ + types: t, + traverse, + assertVersion +}) => { + assertVersion(7); + return { + name: "transform-regenerator", + visitor: traverse.visitors.merge([(0, _visit.getVisitor)(), { + CallExpression(path) { + var _this$availableHelper; + if (!((_this$availableHelper = this.availableHelper) != null && _this$availableHelper.call(this, "regeneratorRuntime"))) { + return; + } + const callee = path.get("callee"); + if (!callee.isMemberExpression()) return; + const obj = callee.get("object"); + if (obj.isIdentifier({ + name: "regeneratorRuntime" + })) { + const helper = this.addHelper("regeneratorRuntime"); + if (t.isArrowFunctionExpression(helper)) { + obj.replaceWith(helper.body); + return; + } + obj.replaceWith(t.callExpression(helper, [])); + } + } + }]) + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/index.js.map b/node_modules/@babel/plugin-transform-regenerator/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..a7f3ec0ce1f0a47f49e8aaaafc086caec529efee --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_visit","_default","exports","default","declare","types","t","traverse","assertVersion","name","visitor","visitors","merge","getVisitor","CallExpression","path","_this$availableHelper","availableHelper","call","callee","get","isMemberExpression","obj","isIdentifier","helper","addHelper","isArrowFunctionExpression","replaceWith","body","callExpression"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport type { types as t } from \"@babel/core\";\nimport { getVisitor } from \"./regenerator/visit.ts\";\n\nexport default declare(({ types: t, traverse, assertVersion }) => {\n assertVersion(REQUIRED_VERSION(7));\n\n return {\n name: \"transform-regenerator\",\n\n visitor: process.env.BABEL_8_BREAKING\n ? getVisitor()\n : traverse.visitors.merge([\n getVisitor(),\n {\n // We visit CallExpression so that we always transform\n // regeneratorRuntime.*() before babel-plugin-polyfill-regenerator.\n CallExpression(path) {\n if (!this.availableHelper?.(\"regeneratorRuntime\")) {\n // When using an older @babel/helpers version, fallback\n // to the old behavior.\n return;\n }\n\n const callee = path.get(\"callee\");\n if (!callee.isMemberExpression()) return;\n\n const obj = callee.get(\"object\");\n if (obj.isIdentifier({ name: \"regeneratorRuntime\" })) {\n const helper = this.addHelper(\"regeneratorRuntime\") as\n | t.Identifier\n | t.ArrowFunctionExpression;\n\n if (\n // It's necessary to avoid the IIFE when using older Babel versions.\n t.isArrowFunctionExpression(helper)\n ) {\n obj.replaceWith(helper.body);\n return;\n }\n\n obj.replaceWith(t.callExpression(helper, []));\n }\n },\n },\n ]),\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAAoD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAErC,IAAAC,0BAAO,EAAC,CAAC;EAAEC,KAAK,EAAEC,CAAC;EAAEC,QAAQ;EAAEC;AAAc,CAAC,KAAK;EAChEA,aAAa,CAAkB,CAAE,CAAC;EAElC,OAAO;IACLC,IAAI,EAAE,uBAAuB;IAE7BC,OAAO,EAEHH,QAAQ,CAACI,QAAQ,CAACC,KAAK,CAAC,CACtB,IAAAC,iBAAU,EAAC,CAAC,EACZ;MAGEC,cAAcA,CAACC,IAAI,EAAE;QAAA,IAAAC,qBAAA;QACnB,IAAI,GAAAA,qBAAA,GAAC,IAAI,CAACC,eAAe,aAApBD,qBAAA,CAAAE,IAAA,KAAI,EAAmB,oBAAoB,CAAC,GAAE;UAGjD;QACF;QAEA,MAAMC,MAAM,GAAGJ,IAAI,CAACK,GAAG,CAAC,QAAQ,CAAC;QACjC,IAAI,CAACD,MAAM,CAACE,kBAAkB,CAAC,CAAC,EAAE;QAElC,MAAMC,GAAG,GAAGH,MAAM,CAACC,GAAG,CAAC,QAAQ,CAAC;QAChC,IAAIE,GAAG,CAACC,YAAY,CAAC;UAAEd,IAAI,EAAE;QAAqB,CAAC,CAAC,EAAE;UACpD,MAAMe,MAAM,GAAG,IAAI,CAACC,SAAS,CAAC,oBAAoB,CAErB;UAE7B,IAEEnB,CAAC,CAACoB,yBAAyB,CAACF,MAAM,CAAC,EACnC;YACAF,GAAG,CAACK,WAAW,CAACH,MAAM,CAACI,IAAI,CAAC;YAC5B;UACF;UAEAN,GAAG,CAACK,WAAW,CAACrB,CAAC,CAACuB,cAAc,CAACL,MAAM,EAAE,EAAE,CAAC,CAAC;QAC/C;MACF;IACF,CAAC,CACF;EACP,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/emit.js b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/emit.js new file mode 100644 index 0000000000000000000000000000000000000000..d8774d03ea6d6115b02d28a7aac2e119a92638b1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/emit.js @@ -0,0 +1,639 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Emitter = void 0; +var _assert = require("assert"); +var leap = require("./leap.js"); +var meta = require("./meta.js"); +var util = require("./util.js"); +var _core = require("@babel/core"); +const PENDING_LOCATION = Number.MAX_VALUE; +function getDeclError(node) { + return new Error("all declarations should have been transformed into " + "assignments before the Exploder began its work: " + JSON.stringify(node)); +} +const catchParamVisitor = { + Identifier: function (path, state) { + if (path.node.name === state.catchParamName && util.isReference(path)) { + path.replaceWith(state.getSafeParam()); + } + }, + Scope: function (path, state) { + if (path.scope.hasOwnBinding(state.catchParamName)) { + path.skip(); + } + } +}; +class Emitter { + constructor(contextId, scope, vars, pluginPass) { + this.nextTempId = void 0; + this.contextId = void 0; + this.index = void 0; + this.indexMap = void 0; + this.listing = void 0; + this.returns = void 0; + this.lastReferenceIndex = 0; + this.marked = void 0; + this.insertedLocs = void 0; + this.finalLoc = void 0; + this.tryEntries = void 0; + this.leapManager = void 0; + this.scope = void 0; + this.vars = void 0; + this.pluginPass = void 0; + this.pluginPass = pluginPass; + this.scope = scope; + this.vars = vars; + this.nextTempId = 0; + this.contextId = contextId; + this.listing = []; + this.index = 0; + this.indexMap = new Map([[0, 0]]); + this.returns = new Set(); + this.lastReferenceIndex = 0; + this.marked = [true]; + this.insertedLocs = new Set(); + this.finalLoc = this.loc(); + this.tryEntries = []; + this.leapManager = new leap.LeapManager(this); + } + loc() { + const l = _core.types.numericLiteral(PENDING_LOCATION); + this.insertedLocs.add(l); + return l; + } + getInsertedLocs() { + return this.insertedLocs; + } + getContextId() { + return _core.types.cloneNode(this.contextId); + } + getIndex() { + if (!this.indexMap.has(this.listing.length)) { + this.indexMap.set(this.listing.length, ++this.index); + } + return this.index; + } + mark(loc) { + if (loc.value === PENDING_LOCATION) { + loc.value = this.getIndex(); + } else { + _assert.strictEqual(loc.value, this.index); + } + this.marked[this.listing.length] = true; + if (loc.value > this.lastReferenceIndex) { + this.lastReferenceIndex = loc.value; + } + return loc; + } + emit(node) { + if (_core.types.isExpression(node)) { + node = _core.types.expressionStatement(node); + } + _core.types.assertStatement(node); + this.listing.push(node); + } + emitAssign(lhs, rhs) { + this.emit(this.assign(lhs, rhs)); + return lhs; + } + assign(lhs, rhs) { + return _core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(lhs), rhs)); + } + contextProperty(name) { + const computed = name === "catch"; + return _core.types.memberExpression(this.getContextId(), computed ? _core.types.stringLiteral(name) : _core.types.identifier(name), !!computed); + } + clearPendingException(tryLoc, assignee) { + const catchCall = _core.types.callExpression(this.contextProperty("catch"), [_core.types.cloneNode(tryLoc)]); + if (assignee) { + this.emitAssign(assignee, catchCall); + } else { + this.emit(catchCall); + } + } + jump(toLoc) { + this.emitAssign(this.contextProperty(util.newHelpersAvailable(this.pluginPass) ? "n" : "next"), toLoc); + this.emit(_core.types.breakStatement()); + } + jumpIf(test, toLoc) { + this.emit(_core.types.ifStatement(test, _core.types.blockStatement([this.assign(this.contextProperty(util.newHelpersAvailable(this.pluginPass) ? "n" : "next"), toLoc), _core.types.breakStatement()]))); + } + jumpIfNot(test, toLoc) { + let negatedTest; + if (_core.types.isUnaryExpression(test) && test.operator === "!") { + negatedTest = test.argument; + } else { + negatedTest = _core.types.unaryExpression("!", test); + } + this.emit(_core.types.ifStatement(negatedTest, _core.types.blockStatement([this.assign(this.contextProperty(util.newHelpersAvailable(this.pluginPass) ? "n" : "next"), toLoc), _core.types.breakStatement()]))); + } + makeContextTempVar() { + return this.contextProperty("t" + this.nextTempId++); + } + makeTempVar() { + const id = this.scope.generateUidIdentifier("t"); + this.vars.push(_core.types.variableDeclarator(id)); + return _core.types.cloneNode(id); + } + getContextFunction() { + return _core.types.functionExpression(null, [this.getContextId()], _core.types.blockStatement([this.getDispatchLoop()]), false, false); + } + getDispatchLoop() { + const self = this; + const cases = []; + let current; + let alreadyEnded = false; + self.listing.forEach(function (stmt, i) { + if (self.marked[i]) { + cases.push(_core.types.switchCase(_core.types.numericLiteral(self.indexMap.get(i)), current = [])); + alreadyEnded = false; + } + if (!alreadyEnded) { + current.push(stmt); + if (_core.types.isCompletionStatement(stmt)) alreadyEnded = true; + } + }); + this.finalLoc.value = this.getIndex(); + if (util.newHelpersAvailable(this.pluginPass)) { + if (this.lastReferenceIndex === this.index || !this.returns.has(this.listing.length)) { + cases.push(_core.types.switchCase(this.finalLoc, [_core.types.returnStatement(_core.types.callExpression(this.contextProperty("a"), [_core.types.numericLiteral(2)]))])); + } + } else { + cases.push(_core.types.switchCase(this.finalLoc, []), _core.types.switchCase(_core.types.stringLiteral("end"), [_core.types.returnStatement(_core.types.callExpression(this.contextProperty("stop"), []))])); + } + return _core.types.whileStatement(_core.types.numericLiteral(1), _core.types.switchStatement(util.newHelpersAvailable(this.pluginPass) ? this.tryEntries.length === 0 ? this.contextProperty("n") : _core.types.assignmentExpression("=", this.contextProperty("p"), this.contextProperty("n")) : _core.types.assignmentExpression("=", this.contextProperty("prev"), this.contextProperty("next")), cases)); + } + getTryLocsList() { + if (this.tryEntries.length === 0) { + return null; + } + let lastLocValue = 0; + const arrayExpression = _core.types.arrayExpression(this.tryEntries.map(function (tryEntry) { + const thisLocValue = tryEntry.firstLoc.value; + _assert.ok(thisLocValue >= lastLocValue, "try entries out of order"); + lastLocValue = thisLocValue; + const ce = tryEntry.catchEntry; + const fe = tryEntry.finallyEntry; + const locs = [tryEntry.firstLoc, ce ? ce.firstLoc : null]; + if (fe) { + locs[2] = fe.firstLoc; + locs[3] = fe.afterLoc; + } + return _core.types.arrayExpression(locs.map(loc => loc && _core.types.cloneNode(loc))); + })); + if (util.newHelpersAvailable(this.pluginPass)) { + arrayExpression.elements.reverse(); + } + return arrayExpression; + } + explode(path, ignoreResult) { + const node = path.node; + const self = this; + if (_core.types.isDeclaration(node)) throw getDeclError(node); + if (path.isStatement()) return self.explodeStatement(path); + if (path.isExpression()) return self.explodeExpression(path, ignoreResult); + switch (node.type) { + case "VariableDeclarator": + throw getDeclError(node); + case "ObjectProperty": + case "SwitchCase": + case "CatchClause": + throw new Error(node.type + " nodes should be handled by their parents"); + default: + throw new Error("unknown Node of type " + JSON.stringify(node.type)); + } + } + explodeStatement(path, labelId = null) { + const stmt = path.node; + const self = this; + let before, after, head; + if (path.isBlockStatement()) { + path.get("body").forEach(function (path) { + self.explodeStatement(path); + }); + return; + } + if (!meta.containsLeap(stmt)) { + self.emit(stmt); + return; + } + switch (path.type) { + case "ExpressionStatement": + self.explodeExpression(path.get("expression"), true); + break; + case "LabeledStatement": + after = this.loc(); + self.leapManager.withEntry(new leap.LabeledEntry(after, path.node.label), function () { + self.explodeStatement(path.get("body"), path.node.label); + }); + self.mark(after); + break; + case "WhileStatement": + before = this.loc(); + after = this.loc(); + self.mark(before); + self.jumpIfNot(self.explodeExpression(path.get("test")), after); + self.leapManager.withEntry(new leap.LoopEntry(after, before, labelId), function () { + self.explodeStatement(path.get("body")); + }); + self.jump(before); + self.mark(after); + break; + case "DoWhileStatement": + const first = this.loc(); + const test = this.loc(); + after = this.loc(); + self.mark(first); + self.leapManager.withEntry(new leap.LoopEntry(after, test, labelId), function () { + self.explode(path.get("body")); + }); + self.mark(test); + self.jumpIf(self.explodeExpression(path.get("test")), first); + self.mark(after); + break; + case "ForStatement": + head = this.loc(); + const update = this.loc(); + after = this.loc(); + if (path.node.init) { + self.explode(path.get("init"), true); + } + self.mark(head); + if (path.node.test) { + self.jumpIfNot(self.explodeExpression(path.get("test")), after); + } else {} + self.leapManager.withEntry(new leap.LoopEntry(after, update, labelId), function () { + self.explodeStatement(path.get("body")); + }); + self.mark(update); + if (path.node.update) { + self.explode(path.get("update"), true); + } + self.jump(head); + self.mark(after); + break; + case "TypeCastExpression": + return self.explodeExpression(path.get("expression")); + case "ForInStatement": + head = this.loc(); + after = this.loc(); + const keyIterNextFn = self.makeTempVar(); + const helper = util.newHelpersAvailable(this.pluginPass) ? this.pluginPass.addHelper("regeneratorKeys") : util.runtimeProperty(this.pluginPass, "keys"); + self.emitAssign(keyIterNextFn, _core.types.callExpression(helper, [self.explodeExpression(path.get("right"))])); + self.mark(head); + const keyInfoTmpVar = self.makeTempVar(); + self.jumpIf(_core.types.memberExpression(_core.types.assignmentExpression("=", keyInfoTmpVar, _core.types.callExpression(_core.types.cloneNode(keyIterNextFn), [])), _core.types.identifier("done"), false), after); + self.emitAssign(path.node.left, _core.types.memberExpression(_core.types.cloneNode(keyInfoTmpVar), _core.types.identifier("value"), false)); + self.leapManager.withEntry(new leap.LoopEntry(after, head, labelId), function () { + self.explodeStatement(path.get("body")); + }); + self.jump(head); + self.mark(after); + break; + case "BreakStatement": + self.emitAbruptCompletion({ + type: 3, + target: self.leapManager.getBreakLoc(path.node.label) + }); + break; + case "ContinueStatement": + self.emitAbruptCompletion({ + type: 3, + target: self.leapManager.getContinueLoc(path.node.label) + }); + break; + case "SwitchStatement": + const disc = self.emitAssign(self.makeTempVar(), self.explodeExpression(path.get("discriminant"))); + after = this.loc(); + const defaultLoc = this.loc(); + let condition = defaultLoc; + const caseLocs = []; + const cases = path.node.cases || []; + for (let i = cases.length - 1; i >= 0; --i) { + const c = cases[i]; + if (c.test) { + condition = _core.types.conditionalExpression(_core.types.binaryExpression("===", _core.types.cloneNode(disc), c.test), caseLocs[i] = this.loc(), condition); + } else { + caseLocs[i] = defaultLoc; + } + } + const discriminant = path.get("discriminant"); + discriminant.replaceWith(condition); + self.jump(self.explodeExpression(discriminant)); + self.leapManager.withEntry(new leap.SwitchEntry(after), function () { + path.get("cases").forEach(function (casePath) { + const i = casePath.key; + self.mark(caseLocs[i]); + casePath.get("consequent").forEach(function (path) { + self.explodeStatement(path); + }); + }); + }); + self.mark(after); + if (defaultLoc.value === PENDING_LOCATION) { + self.mark(defaultLoc); + _assert.strictEqual(after.value, defaultLoc.value); + } + break; + case "IfStatement": + const elseLoc = path.node.alternate && this.loc(); + after = this.loc(); + self.jumpIfNot(self.explodeExpression(path.get("test")), elseLoc || after); + self.explodeStatement(path.get("consequent")); + if (elseLoc) { + self.jump(after); + self.mark(elseLoc); + self.explodeStatement(path.get("alternate")); + } + self.mark(after); + break; + case "ReturnStatement": + self.emitAbruptCompletion({ + type: 2, + value: self.explodeExpression(path.get("argument")) + }); + break; + case "WithStatement": + throw new Error("WithStatement not supported in generator functions."); + case "TryStatement": + after = this.loc(); + const handler = path.node.handler; + const catchLoc = handler && this.loc(); + const catchEntry = catchLoc && new leap.CatchEntry(catchLoc, handler.param); + const finallyLoc = path.node.finalizer && this.loc(); + const finallyEntry = finallyLoc && new leap.FinallyEntry(finallyLoc, after); + const tryEntry = new leap.TryEntry(self.getUnmarkedCurrentLoc(), catchEntry, finallyEntry); + self.tryEntries.push(tryEntry); + self.updateContextPrevLoc(tryEntry.firstLoc); + self.leapManager.withEntry(tryEntry, () => { + self.explodeStatement(path.get("block")); + if (catchLoc) { + const body = path.node.block.body; + if (finallyLoc) { + self.jump(finallyLoc); + } else if (body.length && body[body.length - 1].type === "ReturnStatement") { + after = null; + } else { + self.jump(after); + } + self.updateContextPrevLoc(self.mark(catchLoc)); + const bodyPath = path.get("handler.body"); + const safeParam = self.makeTempVar(); + if (util.newHelpersAvailable(this.pluginPass)) { + this.emitAssign(safeParam, self.contextProperty("v")); + } else { + self.clearPendingException(tryEntry.firstLoc, safeParam); + } + bodyPath.traverse(catchParamVisitor, { + getSafeParam: () => _core.types.cloneNode(safeParam), + catchParamName: handler.param.name + }); + self.leapManager.withEntry(catchEntry, function () { + self.explodeStatement(bodyPath); + }); + } + if (finallyLoc) { + self.updateContextPrevLoc(self.mark(finallyLoc)); + self.leapManager.withEntry(finallyEntry, function () { + self.explodeStatement(path.get("finalizer")); + }); + self.emit(_core.types.returnStatement(_core.types.callExpression(self.contextProperty(util.newHelpersAvailable(this.pluginPass) ? "f" : "finish"), [finallyEntry.firstLoc]))); + } + }); + if (after) self.mark(after); + break; + case "ThrowStatement": + self.emit(_core.types.throwStatement(self.explodeExpression(path.get("argument")))); + break; + case "ClassDeclaration": + self.emit(self.explodeClass(path)); + break; + default: + throw new Error("unknown Statement of type " + JSON.stringify(stmt.type)); + } + } + emitAbruptCompletion(record) { + const abruptArgs = [util.newHelpersAvailable(this.pluginPass) ? _core.types.numericLiteral(record.type) : _core.types.stringLiteral(record.type === 3 ? "continue" : "return")]; + if (record.type === 3) { + abruptArgs[1] = this.insertedLocs.has(record.target) ? record.target : _core.types.cloneNode(record.target); + } else if (record.type === 2) { + if (record.value) { + abruptArgs[1] = _core.types.cloneNode(record.value); + } + } + this.emit(_core.types.returnStatement(_core.types.callExpression(this.contextProperty(util.newHelpersAvailable(this.pluginPass) ? "a" : "abrupt"), abruptArgs))); + if (record.type === 2) { + this.returns.add(this.listing.length); + } + } + getUnmarkedCurrentLoc() { + return _core.types.numericLiteral(this.getIndex()); + } + updateContextPrevLoc(loc) { + if (loc) { + if (loc.value === PENDING_LOCATION) { + loc.value = this.getIndex(); + } else { + _assert.strictEqual(loc.value, this.index); + } + } else { + loc = this.getUnmarkedCurrentLoc(); + } + this.emitAssign(this.contextProperty(util.newHelpersAvailable(this.pluginPass) ? "p" : "prev"), loc); + } + explodeViaTempVar(tempVar, childPath, hasLeapingChildren, ignoreChildResult) { + _assert.ok(!ignoreChildResult || !tempVar, "Ignoring the result of a child expression but forcing it to " + "be assigned to a temporary variable?"); + let result = this.explodeExpression(childPath, ignoreChildResult); + if (ignoreChildResult) {} else if (tempVar || hasLeapingChildren && !_core.types.isLiteral(result)) { + result = this.emitAssign(tempVar || this.makeTempVar(), result); + } + return result; + } + explodeExpression(path, ignoreResult) { + const expr = path.node; + if (!expr) { + return expr; + } + const self = this; + let result; + let after; + function finish(expr) { + if (ignoreResult) { + self.emit(expr); + } + return expr; + } + if (!meta.containsLeap(expr)) { + return finish(expr); + } + const hasLeapingChildren = meta.containsLeap.onlyChildren(expr); + switch (path.type) { + case "MemberExpression": + return finish(_core.types.memberExpression(self.explodeExpression(path.get("object")), path.node.computed ? self.explodeViaTempVar(null, path.get("property"), hasLeapingChildren) : path.node.property, path.node.computed)); + case "CallExpression": + const calleePath = path.get("callee"); + const argsPath = path.get("arguments"); + let newCallee; + let newArgs; + let lastLeapingArgIndex = argsPath.length - 1; + while (lastLeapingArgIndex >= 0 && !meta.containsLeap(argsPath[lastLeapingArgIndex].node)) { + lastLeapingArgIndex--; + } + let injectFirstArg = null; + if (_core.types.isMemberExpression(calleePath.node)) { + if (lastLeapingArgIndex !== -1) { + const newObject = self.explodeViaTempVar(self.makeTempVar(), calleePath.get("object"), hasLeapingChildren); + const newProperty = calleePath.node.computed ? self.explodeViaTempVar(null, calleePath.get("property"), hasLeapingChildren) : calleePath.node.property; + injectFirstArg = newObject; + newCallee = _core.types.memberExpression(_core.types.memberExpression(_core.types.cloneNode(newObject), newProperty, calleePath.node.computed), _core.types.identifier("call"), false); + } else { + newCallee = self.explodeExpression(calleePath); + } + } else { + newCallee = self.explodeViaTempVar(null, calleePath, hasLeapingChildren); + if (_core.types.isMemberExpression(newCallee)) { + newCallee = _core.types.sequenceExpression([_core.types.numericLiteral(0), _core.types.cloneNode(newCallee)]); + } + } + if (lastLeapingArgIndex !== -1) { + newArgs = argsPath.map((argPath, index) => index >= lastLeapingArgIndex ? self.explodeExpression(argPath) : self.explodeViaTempVar(null, argPath, hasLeapingChildren)); + if (injectFirstArg) newArgs.unshift(injectFirstArg); + newArgs = newArgs.map(arg => _core.types.cloneNode(arg)); + } else { + newArgs = path.node.arguments; + } + return finish(_core.types.callExpression(newCallee, newArgs)); + case "NewExpression": + return finish(_core.types.newExpression(self.explodeViaTempVar(null, path.get("callee"), hasLeapingChildren), path.get("arguments").map(function (argPath) { + return self.explodeViaTempVar(null, argPath, hasLeapingChildren); + }))); + case "ObjectExpression": + return finish(_core.types.objectExpression(path.get("properties").map(function (propPath) { + if (propPath.isObjectProperty()) { + return _core.types.objectProperty(propPath.node.key, self.explodeViaTempVar(null, propPath.get("value"), hasLeapingChildren), propPath.node.computed); + } else { + return propPath.node; + } + }))); + case "ArrayExpression": + return finish(_core.types.arrayExpression(path.get("elements").map(function (elemPath) { + if (!elemPath.node) { + return null; + } + if (elemPath.isSpreadElement()) { + return _core.types.spreadElement(self.explodeViaTempVar(null, elemPath.get("argument"), hasLeapingChildren)); + } else { + return self.explodeViaTempVar(null, elemPath, hasLeapingChildren); + } + }))); + case "SequenceExpression": + const lastIndex = path.node.expressions.length - 1; + path.get("expressions").forEach(function (exprPath) { + if (exprPath.key === lastIndex) { + result = self.explodeExpression(exprPath, ignoreResult); + } else { + self.explodeExpression(exprPath, true); + } + }); + return result; + case "LogicalExpression": + after = this.loc(); + if (!ignoreResult) { + result = self.makeTempVar(); + } + const left = self.explodeViaTempVar(result, path.get("left"), hasLeapingChildren); + if (path.node.operator === "&&") { + self.jumpIfNot(left, after); + } else { + _assert.strictEqual(path.node.operator, "||"); + self.jumpIf(left, after); + } + self.explodeViaTempVar(result, path.get("right"), hasLeapingChildren, ignoreResult); + self.mark(after); + return result; + case "ConditionalExpression": + const elseLoc = this.loc(); + after = this.loc(); + const test = self.explodeExpression(path.get("test")); + self.jumpIfNot(test, elseLoc); + if (!ignoreResult) { + result = self.makeTempVar(); + } + self.explodeViaTempVar(result, path.get("consequent"), hasLeapingChildren, ignoreResult); + self.jump(after); + self.mark(elseLoc); + self.explodeViaTempVar(result, path.get("alternate"), hasLeapingChildren, ignoreResult); + self.mark(after); + return result; + case "UnaryExpression": + return finish(_core.types.unaryExpression(path.node.operator, self.explodeExpression(path.get("argument")), !!path.node.prefix)); + case "BinaryExpression": + return finish(_core.types.binaryExpression(path.node.operator, self.explodeViaTempVar(null, path.get("left"), hasLeapingChildren), self.explodeViaTempVar(null, path.get("right"), hasLeapingChildren))); + case "AssignmentExpression": + if (path.node.operator === "=") { + return finish(_core.types.assignmentExpression(path.node.operator, self.explodeExpression(path.get("left")), self.explodeExpression(path.get("right")))); + } + const lhs = self.explodeExpression(path.get("left")); + const temp = self.emitAssign(self.makeTempVar(), lhs); + return finish(_core.types.assignmentExpression("=", _core.types.cloneNode(lhs), _core.types.assignmentExpression(path.node.operator, _core.types.cloneNode(temp), self.explodeExpression(path.get("right"))))); + case "UpdateExpression": + return finish(_core.types.updateExpression(path.node.operator, self.explodeExpression(path.get("argument")), path.node.prefix)); + case "YieldExpression": + after = this.loc(); + const arg = path.node.argument && self.explodeExpression(path.get("argument")); + if (arg && path.node.delegate) { + if (util.newHelpersAvailable(this.pluginPass)) { + const ret = _core.types.returnStatement(_core.types.callExpression(self.contextProperty("d"), [_core.types.callExpression(this.pluginPass.addHelper("regeneratorValues"), [arg]), after])); + ret.loc = expr.loc; + self.emit(ret); + self.mark(after); + return self.contextProperty("v"); + } else { + const result = self.makeContextTempVar(); + const ret = _core.types.returnStatement(_core.types.callExpression(self.contextProperty("delegateYield"), [arg, _core.types.stringLiteral(result.property.name), after])); + ret.loc = expr.loc; + self.emit(ret); + self.mark(after); + return result; + } + } + self.emitAssign(self.contextProperty(util.newHelpersAvailable(this.pluginPass) ? "n" : "next"), after); + const ret = _core.types.returnStatement(_core.types.cloneNode(arg) || null); + ret.loc = expr.loc; + self.emit(ret); + self.mark(after); + return self.contextProperty(util.newHelpersAvailable(self.pluginPass) ? "v" : "sent"); + case "ClassExpression": + return finish(self.explodeClass(path)); + default: + throw new Error("unknown Expression of type " + JSON.stringify(expr.type)); + } + } + explodeClass(path) { + const explodingChildren = []; + if (path.node.superClass) { + explodingChildren.push(path.get("superClass")); + } + path.get("body.body").forEach(member => { + if (member.node.computed) { + explodingChildren.push(member.get("key")); + } + }); + const hasLeapingChildren = explodingChildren.some(child => meta.containsLeap(child.node)); + for (let i = 0; i < explodingChildren.length; i++) { + const child = explodingChildren[i]; + const isLast = i === explodingChildren.length - 1; + if (isLast) { + child.replaceWith(this.explodeExpression(child)); + } else { + child.replaceWith(this.explodeViaTempVar(null, child, hasLeapingChildren)); + } + } + return path.node; + } +} +exports.Emitter = Emitter; + +//# sourceMappingURL=emit.js.map diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/emit.js.map b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/emit.js.map new file mode 100644 index 0000000000000000000000000000000000000000..25e5751181f10b7bb93715d004b1e01685316d32 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/emit.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_assert","require","leap","meta","util","_core","PENDING_LOCATION","Number","MAX_VALUE","getDeclError","node","Error","JSON","stringify","catchParamVisitor","Identifier","path","state","name","catchParamName","isReference","replaceWith","getSafeParam","Scope","scope","hasOwnBinding","skip","Emitter","constructor","contextId","vars","pluginPass","nextTempId","index","indexMap","listing","returns","lastReferenceIndex","marked","insertedLocs","finalLoc","tryEntries","leapManager","Map","Set","loc","LeapManager","l","t","numericLiteral","add","getInsertedLocs","getContextId","cloneNode","getIndex","has","length","set","mark","value","assert","strictEqual","emit","isExpression","expressionStatement","assertStatement","push","emitAssign","lhs","rhs","assign","assignmentExpression","contextProperty","computed","memberExpression","stringLiteral","identifier","clearPendingException","tryLoc","assignee","catchCall","callExpression","jump","toLoc","newHelpersAvailable","breakStatement","jumpIf","test","ifStatement","blockStatement","jumpIfNot","negatedTest","isUnaryExpression","operator","argument","unaryExpression","makeContextTempVar","makeTempVar","id","generateUidIdentifier","variableDeclarator","getContextFunction","functionExpression","getDispatchLoop","self","cases","current","alreadyEnded","forEach","stmt","i","switchCase","get","isCompletionStatement","returnStatement","whileStatement","switchStatement","getTryLocsList","lastLocValue","arrayExpression","map","tryEntry","thisLocValue","firstLoc","ok","ce","catchEntry","fe","finallyEntry","locs","afterLoc","elements","reverse","explode","ignoreResult","isDeclaration","isStatement","explodeStatement","explodeExpression","type","labelId","before","after","head","isBlockStatement","containsLeap","withEntry","LabeledEntry","label","LoopEntry","first","update","init","keyIterNextFn","helper","addHelper","runtimeProperty","keyInfoTmpVar","left","emitAbruptCompletion","target","getBreakLoc","getContinueLoc","disc","defaultLoc","condition","caseLocs","c","conditionalExpression","binaryExpression","discriminant","SwitchEntry","casePath","key","elseLoc","alternate","handler","catchLoc","CatchEntry","param","finallyLoc","finalizer","FinallyEntry","TryEntry","getUnmarkedCurrentLoc","updateContextPrevLoc","body","block","bodyPath","safeParam","traverse","throwStatement","explodeClass","record","abruptArgs","explodeViaTempVar","tempVar","childPath","hasLeapingChildren","ignoreChildResult","result","isLiteral","expr","finish","onlyChildren","property","calleePath","argsPath","newCallee","newArgs","lastLeapingArgIndex","injectFirstArg","isMemberExpression","newObject","newProperty","sequenceExpression","argPath","unshift","arg","arguments","newExpression","objectExpression","propPath","isObjectProperty","objectProperty","elemPath","isSpreadElement","spreadElement","lastIndex","expressions","exprPath","prefix","temp","updateExpression","delegate","ret","explodingChildren","superClass","member","some","child","isLast","exports"],"sources":["../../src/regenerator/emit.ts"],"sourcesContent":["/* eslint-disable no-case-declarations */\nimport assert from \"node:assert\";\nimport * as leap from \"./leap.ts\";\nimport * as meta from \"./meta.ts\";\nimport * as util from \"./util.ts\";\n\nimport type { NodePath, PluginPass, Visitor, Scope } from \"@babel/core\";\nimport { types as t } from \"@babel/core\";\n\n// From packages/babel-helpers/src/helpers/regenerator.ts\nconst enum OperatorType {\n Return = 2,\n Jump,\n}\n\ntype AbruptCompletion =\n | {\n type: OperatorType.Jump;\n target: t.NumericLiteral;\n }\n | {\n type: OperatorType.Return;\n value: t.Expression | null;\n };\n\n// Offsets into this.listing that could be used as targets for branches or\n// jumps are represented as numeric Literal nodes. This representation has\n// the amazingly convenient benefit of allowing the exact value of the\n// location to be determined at any time, even after generating code that\n// refers to the location.\n// We use 'Number.MAX_VALUE' to mark uninitialized location. We can safely do\n// so because no code can realistically have about 1.8e+308 locations before\n// hitting memory limit of the machine it's running on. For comparison, the\n// estimated number of atoms in the observable universe is around 1e+80.\nconst PENDING_LOCATION = Number.MAX_VALUE;\n\nfunction getDeclError(node: t.Node) {\n return new Error(\n \"all declarations should have been transformed into \" +\n \"assignments before the Exploder began its work: \" +\n JSON.stringify(node),\n );\n}\n\nconst catchParamVisitor: Visitor<{\n getSafeParam: () => t.Identifier;\n catchParamName: string;\n}> = {\n Identifier: function (path, state) {\n if (path.node.name === state.catchParamName && util.isReference(path)) {\n path.replaceWith(state.getSafeParam());\n }\n },\n\n Scope: function (path, state) {\n if (path.scope.hasOwnBinding(state.catchParamName)) {\n // Don't descend into nested scopes that shadow the catch\n // parameter with their own declarations.\n path.skip();\n }\n },\n};\n\nexport class Emitter {\n nextTempId: number;\n contextId: t.Identifier;\n index: number;\n indexMap: Map;\n listing: t.Statement[];\n returns: Set;\n lastReferenceIndex: number = 0;\n marked: boolean[];\n insertedLocs: Set;\n finalLoc: t.NumericLiteral;\n tryEntries: leap.TryEntry[];\n leapManager: leap.LeapManager;\n scope: Scope;\n vars: t.VariableDeclarator[];\n\n pluginPass: PluginPass;\n\n constructor(\n contextId: t.Identifier,\n scope: Scope,\n vars: t.VariableDeclarator[],\n pluginPass: PluginPass,\n ) {\n this.pluginPass = pluginPass;\n this.scope = scope;\n this.vars = vars;\n\n // Used to generate unique temporary names.\n this.nextTempId = 0;\n\n // In order to make sure the context object does not collide with\n // anything in the local scope, we might have to rename it, so we\n // refer to it symbolically instead of just assuming that it will be\n // called \"context\".\n this.contextId = contextId;\n\n // An append-only list of Statements that grows each time this.emit is\n // called.\n this.listing = [];\n\n this.index = 0;\n this.indexMap = new Map([[0, 0]]);\n this.returns = new Set();\n this.lastReferenceIndex = 0;\n\n // A sparse array whose keys correspond to locations in this.listing\n // that have been marked as branch/jump targets.\n this.marked = [true];\n\n this.insertedLocs = new Set();\n\n // The last location will be marked when this.getDispatchLoop is\n // called.\n this.finalLoc = this.loc();\n\n // A list of all leap.TryEntry statements emitted.\n this.tryEntries = [];\n\n // Each time we evaluate the body of a loop, we tell this.leapManager\n // to enter a nested loop context that determines the meaning of break\n // and continue statements therein.\n this.leapManager = new leap.LeapManager(this);\n }\n\n loc() {\n const l = t.numericLiteral(PENDING_LOCATION);\n this.insertedLocs.add(l);\n return l;\n }\n\n getInsertedLocs() {\n return this.insertedLocs;\n }\n\n getContextId() {\n return t.cloneNode(this.contextId);\n }\n\n getIndex() {\n if (!this.indexMap.has(this.listing.length)) {\n this.indexMap.set(this.listing.length, ++this.index);\n }\n return this.index;\n }\n\n // Sets the exact value of the given location to the offset of the next\n // Statement emitted.\n mark(loc: t.NumericLiteral) {\n if (loc.value === PENDING_LOCATION) {\n loc.value = this.getIndex();\n } else {\n // Locations can be marked redundantly, but their values cannot change\n // once set the first time.\n assert.strictEqual(loc.value, this.index);\n }\n this.marked[this.listing.length] = true;\n if (loc.value > this.lastReferenceIndex) {\n this.lastReferenceIndex = loc.value;\n }\n return loc;\n }\n\n emit(node: t.Node) {\n if (t.isExpression(node)) {\n node = t.expressionStatement(node);\n }\n t.assertStatement(node);\n this.listing.push(node);\n }\n\n // Shorthand for emitting assignment statements. This will come in handy\n // for assignments to temporary variables.\n emitAssign(\n lhs: T,\n rhs: t.Expression,\n ) {\n this.emit(this.assign(lhs, rhs));\n return lhs;\n }\n\n // Shorthand for an assignment statement.\n assign(lhs: t.AssignmentExpression[\"left\"], rhs: t.Expression) {\n return t.expressionStatement(\n t.assignmentExpression(\"=\", t.cloneNode(lhs), rhs),\n );\n }\n\n // Convenience function for generating expressions like context.next,\n // context.sent, and context.rval.\n contextProperty(name: string) {\n const computed = name === \"catch\";\n return t.memberExpression(\n this.getContextId(),\n computed ? t.stringLiteral(name) : t.identifier(name),\n !!computed,\n );\n }\n\n clearPendingException(\n tryLoc: t.NumericLiteral,\n assignee: t.AssignmentExpression[\"left\"],\n ) {\n const catchCall = t.callExpression(this.contextProperty(\"catch\"), [\n t.cloneNode(tryLoc),\n ]);\n\n if (assignee) {\n this.emitAssign(assignee, catchCall);\n } else {\n this.emit(catchCall);\n }\n }\n\n // Emits code for an unconditional jump to the given location, even if the\n // exact value of the location is not yet known.\n jump(toLoc: t.Expression) {\n this.emitAssign(\n this.contextProperty(\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ? \"n\"\n : \"next\",\n ),\n toLoc,\n );\n this.emit(t.breakStatement());\n }\n\n // Conditional jump.\n jumpIf(test: t.Expression, toLoc: t.NumericLiteral) {\n this.emit(\n t.ifStatement(\n test,\n t.blockStatement([\n this.assign(\n this.contextProperty(\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ? \"n\"\n : \"next\",\n ),\n toLoc,\n ),\n t.breakStatement(),\n ]),\n ),\n );\n }\n\n // Conditional jump, with the condition negated.\n jumpIfNot(test: t.Expression, toLoc: t.NumericLiteral) {\n let negatedTest;\n if (t.isUnaryExpression(test) && test.operator === \"!\") {\n // Avoid double negation.\n negatedTest = test.argument;\n } else {\n negatedTest = t.unaryExpression(\"!\", test);\n }\n\n this.emit(\n t.ifStatement(\n negatedTest,\n t.blockStatement([\n this.assign(\n this.contextProperty(\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ? \"n\"\n : \"next\",\n ),\n toLoc,\n ),\n t.breakStatement(),\n ]),\n ),\n );\n }\n\n // Returns a unique MemberExpression that can be used to store and\n // retrieve temporary values. Since the object of the member expression is\n // the context object, which is presumed to coexist peacefully with all\n // other local variables, and since we just increment `nextTempId`\n // monotonically, uniqueness is assured.\n makeContextTempVar() {\n return this.contextProperty(\"t\" + this.nextTempId++);\n }\n\n makeTempVar() {\n const id = this.scope.generateUidIdentifier(\"t\");\n this.vars.push(t.variableDeclarator(id));\n return t.cloneNode(id);\n }\n\n getContextFunction() {\n return t.functionExpression(\n null /*Anonymous*/,\n [this.getContextId()],\n t.blockStatement([this.getDispatchLoop()]),\n false, // Not a generator anymore!\n false, // Nor an expression.\n );\n }\n\n // Turns this.listing into a loop of the form\n //\n // while (1) switch (context.next) {\n // case 0:\n // ...\n // case n:\n // return context.stop();\n // }\n //\n // Each marked location in this.listing will correspond to one generated\n // case statement.\n getDispatchLoop() {\n const self = this;\n const cases: t.SwitchCase[] = [];\n let current;\n\n // If we encounter a break, continue, or return statement in a switch\n // case, we can skip the rest of the statements until the next case.\n let alreadyEnded = false;\n\n self.listing.forEach(function (stmt, i) {\n if (self.marked[i]) {\n cases.push(\n t.switchCase(t.numericLiteral(self.indexMap.get(i)), (current = [])),\n );\n alreadyEnded = false;\n }\n\n if (!alreadyEnded) {\n current.push(stmt);\n if (t.isCompletionStatement(stmt)) alreadyEnded = true;\n }\n });\n\n // Now that we know how many statements there will be in this.listing,\n // we can finally resolve this.finalLoc.value.\n this.finalLoc.value = this.getIndex();\n\n if (\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ) {\n if (\n this.lastReferenceIndex === this.index ||\n !this.returns.has(this.listing.length)\n ) {\n cases.push(\n t.switchCase(this.finalLoc, [\n t.returnStatement(\n t.callExpression(this.contextProperty(\"a\"), [\n t.numericLiteral(OperatorType.Return),\n ]),\n ),\n ]),\n );\n }\n } else {\n cases.push(\n t.switchCase(this.finalLoc, [\n // Intentionally fall through to the \"end\" case...\n ]),\n\n // So that the runtime can jump to the final location without having\n // to know its offset, we provide the \"end\" case as a synonym.\n t.switchCase(t.stringLiteral(\"end\"), [\n // This will check/clear both context.thrown and context.rval.\n t.returnStatement(t.callExpression(this.contextProperty(\"stop\"), [])),\n ]),\n );\n }\n\n return t.whileStatement(\n t.numericLiteral(1),\n t.switchStatement(\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ? this.tryEntries.length === 0\n ? this.contextProperty(\"n\")\n : t.assignmentExpression(\n \"=\",\n this.contextProperty(\"p\"),\n this.contextProperty(\"n\"),\n )\n : t.assignmentExpression(\n \"=\",\n this.contextProperty(\"prev\"),\n this.contextProperty(\"next\"),\n ),\n cases,\n ),\n );\n }\n\n getTryLocsList() {\n if (this.tryEntries.length === 0) {\n // To avoid adding a needless [] to the majority of runtime.wrap\n // argument lists, force the caller to handle this case specially.\n return null;\n }\n\n let lastLocValue = 0;\n\n const arrayExpression = t.arrayExpression(\n this.tryEntries.map(function (tryEntry) {\n const thisLocValue = tryEntry.firstLoc.value;\n assert.ok(thisLocValue >= lastLocValue, \"try entries out of order\");\n lastLocValue = thisLocValue;\n\n const ce = tryEntry.catchEntry;\n const fe = tryEntry.finallyEntry;\n\n const locs = [\n tryEntry.firstLoc,\n // The null here makes a hole in the array.\n ce ? ce.firstLoc : null,\n ];\n\n if (fe) {\n locs[2] = fe.firstLoc;\n locs[3] = fe.afterLoc;\n }\n\n return t.arrayExpression(locs.map(loc => loc && t.cloneNode(loc)));\n }),\n );\n if (\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ) {\n arrayExpression.elements.reverse();\n }\n return arrayExpression;\n }\n\n // All side effects must be realized in order.\n\n // If any subexpression harbors a leap, all subexpressions must be\n // neutered of side effects.\n\n // No destructive modification of AST nodes.\n explode(path: NodePath, ignoreResult?: boolean) {\n const node = path.node;\n const self = this;\n\n if (t.isDeclaration(node)) throw getDeclError(node);\n\n if (path.isStatement()) return self.explodeStatement(path);\n\n if (path.isExpression()) return self.explodeExpression(path, ignoreResult);\n\n switch (node.type) {\n case \"VariableDeclarator\":\n throw getDeclError(node);\n\n // These node types should be handled by their parent nodes\n // (ObjectExpression, SwitchStatement, and TryStatement, respectively).\n case \"ObjectProperty\":\n case \"SwitchCase\":\n case \"CatchClause\":\n throw new Error(\n node.type + \" nodes should be handled by their parents\",\n );\n\n default:\n throw new Error(\"unknown Node of type \" + JSON.stringify(node.type));\n }\n }\n\n explodeStatement(path: NodePath, labelId: t.Identifier = null) {\n const stmt = path.node;\n const self = this;\n let before: t.NumericLiteral,\n after: t.NumericLiteral,\n head: t.NumericLiteral;\n\n // Explode BlockStatement nodes even if they do not contain a yield,\n // because we don't want or need the curly braces.\n if (path.isBlockStatement()) {\n path.get(\"body\").forEach(function (path) {\n self.explodeStatement(path);\n });\n return;\n }\n\n if (!meta.containsLeap(stmt)) {\n // Technically we should be able to avoid emitting the statement\n // altogether if !meta.hasSideEffects(stmt), but that leads to\n // confusing generated code (for instance, `while (true) {}` just\n // disappears) and is probably a more appropriate job for a dedicated\n // dead code elimination pass.\n self.emit(stmt);\n return;\n }\n\n switch (path.type) {\n case \"ExpressionStatement\":\n self.explodeExpression(path.get(\"expression\"), true);\n break;\n\n case \"LabeledStatement\":\n after = this.loc();\n\n // Did you know you can break from any labeled block statement or\n // control structure? Well, you can! Note: when a labeled loop is\n // encountered, the leap.LabeledEntry created here will immediately\n // enclose a leap.LoopEntry on the leap manager's stack, and both\n // entries will have the same label. Though this works just fine, it\n // may seem a bit redundant. In theory, we could check here to\n // determine if stmt knows how to handle its own label; for example,\n // stmt happens to be a WhileStatement and so we know it's going to\n // establish its own LoopEntry when we explode it (below). Then this\n // LabeledEntry would be unnecessary. Alternatively, we might be\n // tempted not to pass stmt.label down into self.explodeStatement,\n // because we've handled the label here, but that's a mistake because\n // labeled loops may contain labeled continue statements, which is not\n // something we can handle in this generic case. All in all, I think a\n // little redundancy greatly simplifies the logic of this case, since\n // it's clear that we handle all possible LabeledStatements correctly\n // here, regardless of whether they interact with the leap manager\n // themselves. Also remember that labels and break/continue-to-label\n // statements are rare, and all of this logic happens at transform\n // time, so it has no additional runtime cost.\n self.leapManager.withEntry(\n new leap.LabeledEntry(after, path.node.label),\n function () {\n self.explodeStatement(path.get(\"body\"), path.node.label);\n },\n );\n\n self.mark(after);\n\n break;\n\n case \"WhileStatement\":\n before = this.loc();\n after = this.loc();\n\n self.mark(before);\n self.jumpIfNot(self.explodeExpression(path.get(\"test\")), after);\n self.leapManager.withEntry(\n new leap.LoopEntry(after, before, labelId),\n function () {\n self.explodeStatement(path.get(\"body\"));\n },\n );\n self.jump(before);\n self.mark(after);\n\n break;\n\n case \"DoWhileStatement\":\n const first = this.loc();\n const test = this.loc();\n after = this.loc();\n\n self.mark(first);\n self.leapManager.withEntry(\n new leap.LoopEntry(after, test, labelId),\n function () {\n self.explode(path.get(\"body\"));\n },\n );\n self.mark(test);\n self.jumpIf(self.explodeExpression(path.get(\"test\")), first);\n self.mark(after);\n\n break;\n\n case \"ForStatement\":\n head = this.loc();\n const update = this.loc();\n after = this.loc();\n\n if (path.node.init) {\n // We pass true here to indicate that if stmt.init is an expression\n // then we do not care about its result.\n self.explode(path.get(\"init\"), true);\n }\n\n self.mark(head);\n\n if (path.node.test) {\n self.jumpIfNot(self.explodeExpression(path.get(\"test\")), after);\n } else {\n // No test means continue unconditionally.\n }\n\n self.leapManager.withEntry(\n new leap.LoopEntry(after, update, labelId),\n function () {\n self.explodeStatement(path.get(\"body\"));\n },\n );\n\n self.mark(update);\n\n if (path.node.update) {\n // We pass true here to indicate that if stmt.update is an\n // expression then we do not care about its result.\n self.explode(path.get(\"update\"), true);\n }\n\n self.jump(head);\n\n self.mark(after);\n\n break;\n\n // @ts-expect-error flow type\n case \"TypeCastExpression\":\n return self.explodeExpression((path as any).get(\"expression\"));\n\n case \"ForInStatement\":\n head = this.loc();\n after = this.loc();\n\n const keyIterNextFn = self.makeTempVar();\n\n const helper =\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ? this.pluginPass.addHelper(\"regeneratorKeys\")\n : util.runtimeProperty(this.pluginPass, \"keys\");\n\n self.emitAssign(\n keyIterNextFn,\n t.callExpression(helper, [self.explodeExpression(path.get(\"right\"))]),\n );\n\n self.mark(head);\n\n const keyInfoTmpVar = self.makeTempVar();\n self.jumpIf(\n t.memberExpression(\n t.assignmentExpression(\n \"=\",\n keyInfoTmpVar,\n t.callExpression(t.cloneNode(keyIterNextFn), []),\n ),\n t.identifier(\"done\"),\n false,\n ),\n after,\n );\n\n self.emitAssign(\n path.node.left as t.AssignmentExpression[\"left\"],\n t.memberExpression(\n t.cloneNode(keyInfoTmpVar),\n t.identifier(\"value\"),\n false,\n ),\n );\n\n self.leapManager.withEntry(\n new leap.LoopEntry(after, head, labelId),\n function () {\n self.explodeStatement(path.get(\"body\"));\n },\n );\n\n self.jump(head);\n\n self.mark(after);\n\n break;\n\n case \"BreakStatement\":\n self.emitAbruptCompletion({\n type: OperatorType.Jump,\n target: self.leapManager.getBreakLoc(path.node.label),\n });\n\n break;\n\n case \"ContinueStatement\":\n self.emitAbruptCompletion({\n type: OperatorType.Jump,\n target: self.leapManager.getContinueLoc(path.node.label),\n });\n\n break;\n\n case \"SwitchStatement\":\n // Always save the discriminant into a temporary variable in case the\n // test expressions overwrite values like context.sent.\n const disc = self.emitAssign(\n self.makeTempVar(),\n self.explodeExpression(path.get(\"discriminant\")),\n );\n\n after = this.loc();\n const defaultLoc = this.loc();\n let condition: t.Expression = defaultLoc;\n const caseLocs: t.NumericLiteral[] = [];\n\n // If there are no cases, .cases might be undefined.\n const cases = path.node.cases || [];\n\n for (let i = cases.length - 1; i >= 0; --i) {\n const c = cases[i];\n\n if (c.test) {\n condition = t.conditionalExpression(\n t.binaryExpression(\"===\", t.cloneNode(disc), c.test),\n (caseLocs[i] = this.loc()),\n condition,\n );\n } else {\n caseLocs[i] = defaultLoc;\n }\n }\n\n const discriminant = path.get(\"discriminant\");\n discriminant.replaceWith(condition);\n self.jump(self.explodeExpression(discriminant));\n\n self.leapManager.withEntry(new leap.SwitchEntry(after), function () {\n path.get(\"cases\").forEach(function (casePath) {\n const i = casePath.key as number;\n self.mark(caseLocs[i]);\n\n casePath.get(\"consequent\").forEach(function (path) {\n self.explodeStatement(path);\n });\n });\n });\n\n self.mark(after);\n if (defaultLoc.value === PENDING_LOCATION) {\n self.mark(defaultLoc);\n assert.strictEqual(after.value, defaultLoc.value);\n }\n\n break;\n\n case \"IfStatement\":\n const elseLoc = path.node.alternate && this.loc();\n after = this.loc();\n\n self.jumpIfNot(\n self.explodeExpression(path.get(\"test\")),\n elseLoc || after,\n );\n\n self.explodeStatement(path.get(\"consequent\"));\n\n if (elseLoc) {\n self.jump(after);\n self.mark(elseLoc);\n self.explodeStatement(path.get(\"alternate\"));\n }\n\n self.mark(after);\n\n break;\n\n case \"ReturnStatement\":\n self.emitAbruptCompletion({\n type: OperatorType.Return,\n value: self.explodeExpression(path.get(\"argument\")),\n });\n\n break;\n\n case \"WithStatement\":\n throw new Error(\"WithStatement not supported in generator functions.\");\n\n case \"TryStatement\":\n after = this.loc();\n\n const handler = path.node.handler;\n\n const catchLoc = handler && this.loc();\n const catchEntry =\n catchLoc && new leap.CatchEntry(catchLoc, handler.param as any);\n\n const finallyLoc = path.node.finalizer && this.loc();\n const finallyEntry =\n finallyLoc && new leap.FinallyEntry(finallyLoc, after);\n\n const tryEntry = new leap.TryEntry(\n self.getUnmarkedCurrentLoc(),\n catchEntry,\n finallyEntry,\n );\n\n self.tryEntries.push(tryEntry);\n self.updateContextPrevLoc(tryEntry.firstLoc);\n\n self.leapManager.withEntry(tryEntry, () => {\n self.explodeStatement(path.get(\"block\"));\n\n if (catchLoc) {\n const body = path.node.block.body;\n if (finallyLoc) {\n // If we have both a catch block and a finally block, then\n // because we emit the catch block first, we need to jump over\n // it to the finally block.\n self.jump(finallyLoc);\n } else if (\n body.length &&\n body[body.length - 1].type === \"ReturnStatement\"\n ) {\n after = null;\n } else {\n // If there is no finally block, then we need to jump over the\n // catch block to the fall-through location.\n self.jump(after);\n }\n\n self.updateContextPrevLoc(self.mark(catchLoc));\n\n const bodyPath = path.get(\"handler.body\");\n const safeParam = self.makeTempVar();\n if (\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ) {\n this.emitAssign(safeParam, self.contextProperty(\"v\"));\n } else {\n self.clearPendingException(tryEntry.firstLoc, safeParam);\n }\n\n bodyPath.traverse(catchParamVisitor, {\n getSafeParam: () => t.cloneNode(safeParam),\n catchParamName:\n // @ts-expect-error Assuming `handler.param` is `t.Identifier`\n handler.param.name,\n });\n\n self.leapManager.withEntry(catchEntry, function () {\n self.explodeStatement(bodyPath);\n });\n }\n\n if (finallyLoc) {\n self.updateContextPrevLoc(self.mark(finallyLoc));\n\n self.leapManager.withEntry(finallyEntry, function () {\n self.explodeStatement(path.get(\"finalizer\"));\n });\n\n self.emit(\n t.returnStatement(\n t.callExpression(\n self.contextProperty(\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ? \"f\"\n : \"finish\",\n ),\n [finallyEntry.firstLoc],\n ),\n ),\n );\n }\n });\n\n if (after) self.mark(after);\n\n break;\n\n case \"ThrowStatement\":\n self.emit(\n t.throwStatement(self.explodeExpression(path.get(\"argument\"))),\n );\n\n break;\n\n case \"ClassDeclaration\":\n self.emit(self.explodeClass(path));\n break;\n\n default:\n throw new Error(\n \"unknown Statement of type \" + JSON.stringify(stmt.type),\n );\n }\n }\n\n emitAbruptCompletion(record: AbruptCompletion) {\n const abruptArgs: [t.NumericLiteral | t.StringLiteral, t.Expression?] = [\n process.env.BABEL_8_BREAKING || util.newHelpersAvailable(this.pluginPass)\n ? t.numericLiteral(record.type)\n : t.stringLiteral(\n record.type === OperatorType.Jump ? \"continue\" : \"return\",\n ),\n ];\n\n if (record.type === OperatorType.Jump) {\n abruptArgs[1] = this.insertedLocs.has(record.target)\n ? record.target\n : t.cloneNode(record.target);\n } else if (record.type === OperatorType.Return) {\n if (record.value) {\n abruptArgs[1] = t.cloneNode(record.value);\n }\n }\n\n this.emit(\n t.returnStatement(\n t.callExpression(\n this.contextProperty(\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ? \"a\"\n : \"abrupt\",\n ),\n abruptArgs,\n ),\n ),\n );\n\n if (record.type === OperatorType.Return) {\n this.returns.add(this.listing.length);\n }\n }\n\n // Not all offsets into emitter.listing are potential jump targets. For\n // example, execution typically falls into the beginning of a try block\n // without jumping directly there. This method returns the current offset\n // without marking it, so that a switch case will not necessarily be\n // generated for this offset (I say \"not necessarily\" because the same\n // location might end up being marked in the process of emitting other\n // statements). There's no logical harm in marking such locations as jump\n // targets, but minimizing the number of switch cases keeps the generated\n // code shorter.\n getUnmarkedCurrentLoc() {\n return t.numericLiteral(this.getIndex());\n }\n\n // The context.prev property takes the value of context.next whenever we\n // evaluate the switch statement discriminant, which is generally good\n // enough for tracking the last location we jumped to, but sometimes\n // context.prev needs to be more precise, such as when we fall\n // successfully out of a try block and into a finally block without\n // jumping. This method exists to update context.prev to the freshest\n // available location. If we were implementing a full interpreter, we\n // would know the location of the current instruction with complete\n // precision at all times, but we don't have that luxury here, as it would\n // be costly and verbose to set context.prev before every statement.\n updateContextPrevLoc(loc: t.NumericLiteral) {\n if (loc) {\n if (loc.value === PENDING_LOCATION) {\n // If an uninitialized location literal was passed in, set its value\n // to the current this.listing.length.\n loc.value = this.getIndex();\n } else {\n // Otherwise assert that the location matches the current offset.\n assert.strictEqual(loc.value, this.index);\n }\n } else {\n loc = this.getUnmarkedCurrentLoc();\n }\n\n // Make sure context.prev is up to date in case we fell into this try\n // statement without jumping to it. TODO Consider avoiding this\n // assignment when we know control must have jumped here.\n this.emitAssign(\n this.contextProperty(\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ? \"p\"\n : \"prev\",\n ),\n loc,\n );\n }\n\n // In order to save the rest of explodeExpression from a combinatorial\n // trainwreck of special cases, explodeViaTempVar is responsible for\n // deciding when a subexpression needs to be \"exploded,\" which is my\n // very technical term for emitting the subexpression as an assignment\n // to a temporary variable and the substituting the temporary variable\n // for the original subexpression. Think of exploded view diagrams, not\n // Michael Bay movies. The point of exploding subexpressions is to\n // control the precise order in which the generated code realizes the\n // side effects of those subexpressions.\n explodeViaTempVar(\n tempVar: t.MemberExpression | t.Identifier,\n childPath: NodePath,\n hasLeapingChildren: boolean,\n ignoreChildResult?: boolean,\n ) {\n assert.ok(\n !ignoreChildResult || !tempVar,\n \"Ignoring the result of a child expression but forcing it to \" +\n \"be assigned to a temporary variable?\",\n );\n\n let result = this.explodeExpression(childPath, ignoreChildResult);\n\n if (ignoreChildResult) {\n // Side effects already emitted above.\n } else if (tempVar || (hasLeapingChildren && !t.isLiteral(result))) {\n // If tempVar was provided, then the result will always be assigned\n // to it, even if the result does not otherwise need to be assigned\n // to a temporary variable. When no tempVar is provided, we have\n // the flexibility to decide whether a temporary variable is really\n // necessary. Unfortunately, in general, a temporary variable is\n // required whenever any child contains a yield expression, since it\n // is difficult to prove (at all, let alone efficiently) whether\n // this result would evaluate to the same value before and after the\n // yield (see #206). One narrow case where we can prove it doesn't\n // matter (and thus we do not need a temporary variable) is when the\n // result in question is a Literal value.\n result = this.emitAssign(tempVar || this.makeTempVar(), result);\n }\n return result;\n }\n\n explodeExpression(\n path: NodePath,\n ignoreResult?: boolean,\n ): t.Expression {\n const expr = path.node;\n if (!expr) {\n return expr;\n }\n\n const self = this;\n let result; // Used optionally by several cases below.\n let after;\n\n function finish(expr: t.Expression) {\n if (ignoreResult) {\n self.emit(expr);\n }\n return expr;\n }\n\n // If the expression does not contain a leap, then we either emit the\n // expression as a standalone statement or return it whole.\n if (!meta.containsLeap(expr)) {\n return finish(expr);\n }\n\n // If any child contains a leap (such as a yield or labeled continue or\n // break statement), then any sibling subexpressions will almost\n // certainly have to be exploded in order to maintain the order of their\n // side effects relative to the leaping child(ren).\n const hasLeapingChildren = meta.containsLeap.onlyChildren(expr);\n\n // If ignoreResult is true, then we must take full responsibility for\n // emitting the expression with all its side effects, and we should not\n // return a result.\n\n switch (path.type) {\n case \"MemberExpression\":\n return finish(\n t.memberExpression(\n self.explodeExpression(\n path.get(\"object\") as NodePath,\n ),\n path.node.computed\n ? self.explodeViaTempVar(\n null,\n path.get(\"property\") as NodePath,\n hasLeapingChildren,\n )\n : path.node.property,\n path.node.computed,\n ),\n );\n\n case \"CallExpression\":\n const calleePath = path.get(\"callee\");\n const argsPath = path.get(\"arguments\");\n\n let newCallee;\n let newArgs;\n\n let lastLeapingArgIndex = argsPath.length - 1;\n while (\n lastLeapingArgIndex >= 0 &&\n !meta.containsLeap(argsPath[lastLeapingArgIndex].node)\n ) {\n lastLeapingArgIndex--;\n }\n\n let injectFirstArg = null;\n\n if (t.isMemberExpression(calleePath.node)) {\n if (lastLeapingArgIndex !== -1) {\n // If the arguments of the CallExpression contained any yield\n // expressions, then we need to be sure to evaluate the callee\n // before evaluating the arguments, but if the callee was a member\n // expression, then we must be careful that the object of the\n // member expression still gets bound to `this` for the call.\n\n const newObject = self.explodeViaTempVar(\n // Assign the exploded callee.object expression to a temporary\n // variable so that we can use it twice without reevaluating it.\n self.makeTempVar(),\n calleePath.get(\"object\") as NodePath,\n hasLeapingChildren,\n );\n\n const newProperty = calleePath.node.computed\n ? self.explodeViaTempVar(\n null,\n calleePath.get(\"property\") as NodePath,\n hasLeapingChildren,\n )\n : calleePath.node.property;\n\n injectFirstArg = newObject;\n\n newCallee = t.memberExpression(\n t.memberExpression(\n t.cloneNode(newObject),\n newProperty,\n calleePath.node.computed,\n ),\n t.identifier(\"call\"),\n false,\n );\n } else {\n newCallee = self.explodeExpression(\n calleePath as NodePath,\n );\n }\n } else {\n newCallee = self.explodeViaTempVar(\n null,\n calleePath as NodePath,\n hasLeapingChildren,\n );\n\n if (t.isMemberExpression(newCallee)) {\n // If the callee was not previously a MemberExpression, then the\n // CallExpression was \"unqualified,\" meaning its `this` object\n // should be the global object. If the exploded expression has\n // become a MemberExpression (e.g. a context property, probably a\n // temporary variable), then we need to force it to be unqualified\n // by using the (0, object.property)(...) trick; otherwise, it\n // will receive the object of the MemberExpression as its `this`\n // object.\n newCallee = t.sequenceExpression([\n t.numericLiteral(0),\n t.cloneNode(newCallee),\n ]);\n }\n }\n\n if (lastLeapingArgIndex !== -1) {\n newArgs = argsPath.map((argPath, index) =>\n index >= lastLeapingArgIndex\n ? self.explodeExpression(argPath as NodePath) // Don't explode leaping children.\n : self.explodeViaTempVar(\n null,\n argPath as NodePath,\n hasLeapingChildren,\n ),\n );\n if (injectFirstArg) newArgs.unshift(injectFirstArg);\n\n newArgs = newArgs.map(arg => t.cloneNode(arg));\n } else {\n newArgs = path.node.arguments;\n }\n\n return finish(t.callExpression(newCallee, newArgs));\n\n case \"NewExpression\":\n return finish(\n t.newExpression(\n self.explodeViaTempVar(\n null,\n path.get(\"callee\") as NodePath,\n hasLeapingChildren,\n ),\n path.get(\"arguments\").map(function (argPath: any) {\n return self.explodeViaTempVar(null, argPath, hasLeapingChildren);\n }),\n ),\n );\n\n case \"ObjectExpression\":\n return finish(\n t.objectExpression(\n path.get(\"properties\").map(function (propPath) {\n if (propPath.isObjectProperty()) {\n return t.objectProperty(\n propPath.node.key,\n self.explodeViaTempVar(\n null,\n // @ts-expect-error `ArrayPattern` cannot cast to `ArrayExpression`\n propPath.get(\"value\"),\n hasLeapingChildren,\n ),\n propPath.node.computed,\n );\n } else {\n return propPath.node;\n }\n }),\n ),\n );\n\n case \"ArrayExpression\":\n return finish(\n t.arrayExpression(\n path.get(\"elements\").map(function (elemPath: any) {\n if (!elemPath.node) {\n return null;\n }\n if (elemPath.isSpreadElement()) {\n return t.spreadElement(\n self.explodeViaTempVar(\n null,\n elemPath.get(\"argument\"),\n hasLeapingChildren,\n ),\n );\n } else {\n return self.explodeViaTempVar(\n null,\n elemPath,\n hasLeapingChildren,\n );\n }\n }),\n ),\n );\n\n case \"SequenceExpression\":\n const lastIndex = path.node.expressions.length - 1;\n\n path.get(\"expressions\").forEach(function (exprPath: any) {\n if (exprPath.key === lastIndex) {\n result = self.explodeExpression(exprPath, ignoreResult);\n } else {\n self.explodeExpression(exprPath, true);\n }\n });\n\n return result;\n\n case \"LogicalExpression\":\n after = this.loc();\n\n if (!ignoreResult) {\n result = self.makeTempVar();\n }\n\n const left = self.explodeViaTempVar(\n result,\n path.get(\"left\"),\n hasLeapingChildren,\n );\n\n if (path.node.operator === \"&&\") {\n self.jumpIfNot(left, after);\n } else {\n assert.strictEqual(path.node.operator, \"||\");\n self.jumpIf(left, after);\n }\n\n self.explodeViaTempVar(\n result,\n path.get(\"right\"),\n hasLeapingChildren,\n ignoreResult,\n );\n\n self.mark(after);\n\n return result;\n\n case \"ConditionalExpression\":\n const elseLoc = this.loc();\n after = this.loc();\n const test = self.explodeExpression(path.get(\"test\"));\n\n self.jumpIfNot(test, elseLoc);\n\n if (!ignoreResult) {\n result = self.makeTempVar();\n }\n\n self.explodeViaTempVar(\n result,\n path.get(\"consequent\"),\n hasLeapingChildren,\n ignoreResult,\n );\n self.jump(after);\n\n self.mark(elseLoc);\n self.explodeViaTempVar(\n result,\n path.get(\"alternate\"),\n hasLeapingChildren,\n ignoreResult,\n );\n\n self.mark(after);\n\n return result;\n\n case \"UnaryExpression\":\n return finish(\n t.unaryExpression(\n path.node.operator,\n // Can't (and don't need to) break up the syntax of the argument.\n // Think about delete a[b].\n self.explodeExpression(path.get(\"argument\")),\n !!path.node.prefix,\n ),\n );\n\n case \"BinaryExpression\":\n return finish(\n t.binaryExpression(\n path.node.operator,\n self.explodeViaTempVar(\n null,\n path.get(\"left\") as NodePath,\n hasLeapingChildren,\n ),\n self.explodeViaTempVar(null, path.get(\"right\"), hasLeapingChildren),\n ),\n );\n\n case \"AssignmentExpression\":\n if (path.node.operator === \"=\") {\n // If this is a simple assignment, the left hand side does not need\n // to be read before the right hand side is evaluated, so we can\n // avoid the more complicated logic below.\n return finish(\n t.assignmentExpression(\n path.node.operator,\n // @ts-expect-error `ArrayPattern` cannot cast to `ArrayExpression`\n self.explodeExpression(path.get(\"left\")),\n self.explodeExpression(path.get(\"right\")),\n ),\n );\n }\n\n // @ts-expect-error `ArrayPattern` cannot cast to `ArrayExpression`\n const lhs = self.explodeExpression(path.get(\"left\"));\n const temp = self.emitAssign(self.makeTempVar(), lhs);\n\n // For example,\n //\n // x += yield y\n //\n // becomes\n //\n // context.t0 = x\n // x = context.t0 += yield y\n //\n // so that the left-hand side expression is read before the yield.\n // Fixes https://github.com/facebook/regenerator/issues/345.\n\n return finish(\n t.assignmentExpression(\n \"=\",\n // @ts-expect-error `ArrayPattern` cannot cast to `ArrayExpression`\n t.cloneNode(lhs),\n t.assignmentExpression(\n path.node.operator,\n t.cloneNode(temp),\n self.explodeExpression(path.get(\"right\")),\n ),\n ),\n );\n\n case \"UpdateExpression\":\n return finish(\n t.updateExpression(\n path.node.operator,\n self.explodeExpression(path.get(\"argument\")) as\n | t.Identifier\n | t.MemberExpression,\n path.node.prefix,\n ),\n );\n\n case \"YieldExpression\":\n after = this.loc();\n const arg =\n path.node.argument && self.explodeExpression(path.get(\"argument\"));\n\n if (arg && path.node.delegate) {\n if (\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ) {\n const ret = t.returnStatement(\n t.callExpression(self.contextProperty(\"d\"), [\n t.callExpression(\n this.pluginPass.addHelper(\"regeneratorValues\"),\n [arg],\n ),\n after,\n ]),\n );\n ret.loc = expr.loc;\n\n self.emit(ret);\n self.mark(after);\n\n return self.contextProperty(\"v\");\n } else {\n const result = self.makeContextTempVar();\n\n const ret = t.returnStatement(\n t.callExpression(self.contextProperty(\"delegateYield\"), [\n arg,\n t.stringLiteral((result.property as t.Identifier).name),\n after,\n ]),\n );\n ret.loc = expr.loc;\n\n self.emit(ret);\n self.mark(after);\n\n return result;\n }\n }\n\n self.emitAssign(\n self.contextProperty(\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(this.pluginPass)\n ? \"n\"\n : \"next\",\n ),\n after,\n );\n\n const ret = t.returnStatement(t.cloneNode(arg) || null);\n // Preserve the `yield` location so that source mappings for the statements\n // link back to the yield properly.\n ret.loc = expr.loc;\n self.emit(ret);\n self.mark(after);\n\n return self.contextProperty(\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(self.pluginPass)\n ? \"v\"\n : \"sent\",\n );\n\n case \"ClassExpression\":\n return finish(self.explodeClass(path));\n\n default:\n throw new Error(\n \"unknown Expression of type \" + JSON.stringify(expr.type),\n );\n }\n }\n\n explodeClass(path: NodePath): T {\n const explodingChildren = [];\n\n if (path.node.superClass) {\n explodingChildren.push(path.get(\"superClass\"));\n }\n\n path.get(\"body.body\").forEach((member: any) => {\n if (member.node.computed) {\n explodingChildren.push(member.get(\"key\"));\n }\n });\n\n const hasLeapingChildren = explodingChildren.some(child =>\n meta.containsLeap(child.node),\n );\n\n for (let i = 0; i < explodingChildren.length; i++) {\n const child = explodingChildren[i];\n const isLast = i === explodingChildren.length - 1;\n\n if (isLast) {\n child.replaceWith(this.explodeExpression(child));\n } else {\n child.replaceWith(\n this.explodeViaTempVar(null, child, hasLeapingChildren),\n );\n }\n }\n\n return path.node as T;\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AAGA,IAAAI,KAAA,GAAAJ,OAAA;AA2BA,MAAMK,gBAAgB,GAAGC,MAAM,CAACC,SAAS;AAEzC,SAASC,YAAYA,CAACC,IAAY,EAAE;EAClC,OAAO,IAAIC,KAAK,CACd,qDAAqD,GACnD,kDAAkD,GAClDC,IAAI,CAACC,SAAS,CAACH,IAAI,CACvB,CAAC;AACH;AAEA,MAAMI,iBAGJ,GAAG;EACHC,UAAU,EAAE,SAAAA,CAAUC,IAAI,EAAEC,KAAK,EAAE;IACjC,IAAID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AAC,CAACJ,OAAO,CAAEkI,MAAW,IAAK;MAC7C,IAAIA,MAAM,CAACpO,IAAI,CAAC+D,QAAQ,EAAE;QACxBmK,iBAAiB,CAAC1K,IAAI,CAAC4K,MAAM,CAAC9H,GAAG,CAAC,KAAK,CAAC,CAAC;MAC3C;IACF,CAAC,CAAC;IAEF,MAAMsF,kBAAkB,GAAGsC,iBAAiB,CAACG,IAAI,CAACC,KAAK,IACrD7O,IAAI,CAAC8I,YAAY,CAAC+F,KAAK,CAACtO,IAAI,CAC9B,CAAC;IAED,KAAK,IAAIoG,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG8H,iBAAiB,CAACpL,MAAM,EAAEsD,CAAC,EAAE,EAAE;MACjD,MAAMkI,KAAK,GAAGJ,iBAAiB,CAAC9H,CAAC,CAAC;MAClC,MAAMmI,MAAM,GAAGnI,CAAC,KAAK8H,iBAAiB,CAACpL,MAAM,GAAG,CAAC;MAEjD,IAAIyL,MAAM,EAAE;QACVD,KAAK,CAAC3N,WAAW,CAAC,IAAI,CAACqH,iBAAiB,CAACsG,KAAK,CAAC,CAAC;MAClD,CAAC,MAAM;QACLA,KAAK,CAAC3N,WAAW,CACf,IAAI,CAAC8K,iBAAiB,CAAC,IAAI,EAAE6C,KAAK,EAAE1C,kBAAkB,CACxD,CAAC;MACH;IACF;IAEA,OAAOtL,IAAI,CAACN,IAAI;EAClB;AACF;AAACwO,OAAA,CAAAvN,OAAA,GAAAA,OAAA","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/hoist.js b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/hoist.js new file mode 100644 index 0000000000000000000000000000000000000000..b0114dea7f8a11e94967fa3d76c656d8c349b695 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/hoist.js @@ -0,0 +1,100 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.hoist = hoist; +var _core = require("@babel/core"); +function hoist(funPath) { + _core.types.assertFunction(funPath.node); + const vars = { + __proto__: null + }; + function varDeclToExpr({ + node: vdec + }, includeIdentifiers) { + _core.types.assertVariableDeclaration(vdec); + const exprs = []; + vdec.declarations.forEach(function (dec) { + vars[dec.id.name] = _core.types.identifier(dec.id.name); + if (dec.init) { + exprs.push(_core.types.assignmentExpression("=", dec.id, dec.init)); + } else if (includeIdentifiers) { + exprs.push(dec.id); + } + }); + if (exprs.length === 0) return null; + if (exprs.length === 1) return exprs[0]; + return _core.types.sequenceExpression(exprs); + } + funPath.get("body").traverse({ + VariableDeclaration: { + exit: function (path) { + const expr = varDeclToExpr(path, false); + if (expr === null) { + path.remove(); + } else { + for (const name of Object.keys(vars)) { + path.scope.removeBinding(name); + } + path.replaceWith(_core.types.expressionStatement(expr)); + } + path.skip(); + } + }, + ForStatement: function (path) { + const init = path.get("init"); + if (init.isVariableDeclaration()) { + const expr = varDeclToExpr(init, false); + if (expr) { + init.replaceWith(expr); + } else { + init.remove(); + } + } + }, + ForXStatement: function (path) { + const left = path.get("left"); + if (left.isVariableDeclaration()) { + left.replaceWith(varDeclToExpr(left, true)); + } + }, + FunctionDeclaration: function (path) { + const node = path.node; + vars[node.id.name] = node.id; + const assignment = _core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(node.id), _core.types.functionExpression(path.scope.generateUidIdentifierBasedOnNode(node), node.params, node.body, node.generator, node.async))); + if (path.parentPath.isBlockStatement()) { + path.parentPath.unshiftContainer("body", assignment); + path.remove(); + } else { + path.replaceWith(assignment); + path.scope.removeBinding(node.id.name); + } + path.skip(); + }, + FunctionExpression: function (path) { + path.skip(); + }, + ArrowFunctionExpression: function (path) { + path.skip(); + } + }); + const paramNames = { + __proto__: null + }; + funPath.get("params").forEach(function (paramPath) { + const param = paramPath.node; + if (_core.types.isIdentifier(param)) { + paramNames[param.name] = param; + } else {} + }); + const declarations = []; + Object.keys(vars).forEach(function (name) { + if (!hasOwnProperty.call(paramNames, name)) { + declarations.push(_core.types.variableDeclarator(vars[name], null)); + } + }); + return declarations; +} + +//# sourceMappingURL=hoist.js.map diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/hoist.js.map b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/hoist.js.map new file mode 100644 index 0000000000000000000000000000000000000000..0978558d3ae0ed9004bb761c0ecb45eafd31ff3e --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/hoist.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_core","require","hoist","funPath","t","assertFunction","node","vars","__proto__","varDeclToExpr","vdec","includeIdentifiers","assertVariableDeclaration","exprs","declarations","forEach","dec","id","name","identifier","init","push","assignmentExpression","length","sequenceExpression","get","traverse","VariableDeclaration","exit","path","expr","remove","Object","keys","scope","removeBinding","replaceWith","expressionStatement","skip","ForStatement","isVariableDeclaration","ForXStatement","left","FunctionDeclaration","assignment","cloneNode","functionExpression","generateUidIdentifierBasedOnNode","params","body","generator","async","parentPath","isBlockStatement","unshiftContainer","FunctionExpression","ArrowFunctionExpression","paramNames","paramPath","param","isIdentifier","hasOwnProperty","call","variableDeclarator"],"sources":["../../src/regenerator/hoist.ts"],"sourcesContent":["import type { NodePath } from \"@babel/core\";\nimport { types as t } from \"@babel/core\";\n\n// The hoist function takes a FunctionExpression or FunctionDeclaration\n// and replaces any Declaration nodes in its body with assignments, then\n// returns a VariableDeclaration containing just the names of the removed\n// declarations.\nexport function hoist(\n funPath: NodePath,\n) {\n t.assertFunction(funPath.node);\n\n const vars: Record = { __proto__: null };\n\n function varDeclToExpr(\n { node: vdec }: NodePath,\n includeIdentifiers: boolean,\n ) {\n t.assertVariableDeclaration(vdec);\n // TODO assert.equal(vdec.kind, \"var\");\n const exprs: t.Expression[] = [];\n\n vdec.declarations.forEach(function (\n dec: t.VariableDeclarator & { id: t.Identifier },\n ) {\n // Note: We duplicate 'dec.id' here to ensure that the variable declaration IDs don't\n // have the same 'loc' value, since that can make sourcemaps and retainLines behave poorly.\n vars[dec.id.name] = t.identifier(dec.id.name);\n\n if (dec.init) {\n exprs.push(t.assignmentExpression(\"=\", dec.id, dec.init));\n } else if (includeIdentifiers) {\n exprs.push(dec.id);\n }\n });\n\n if (exprs.length === 0) return null;\n\n if (exprs.length === 1) return exprs[0];\n\n return t.sequenceExpression(exprs);\n }\n\n funPath.get(\"body\").traverse({\n VariableDeclaration: {\n exit: function (path) {\n const expr = varDeclToExpr(path, false);\n if (expr === null) {\n path.remove();\n } else {\n for (const name of Object.keys(vars)) {\n // Remove the binding, to avoid \"duplicate declaration\" errors when it will\n // be injected again.\n path.scope.removeBinding(name);\n }\n\n // We don't need to traverse this expression any further because\n // there can't be any new declarations inside an expression.\n path.replaceWith(t.expressionStatement(expr));\n }\n\n // Since the original node has been either removed or replaced,\n // avoid traversing it any further.\n path.skip();\n },\n },\n\n ForStatement: function (path) {\n const init = path.get(\"init\");\n if (init.isVariableDeclaration()) {\n const expr = varDeclToExpr(init, false);\n if (expr) {\n init.replaceWith(expr);\n } else {\n init.remove();\n }\n }\n },\n\n ForXStatement: function (path) {\n const left = path.get(\"left\");\n if (left.isVariableDeclaration()) {\n left.replaceWith(varDeclToExpr(left, true));\n }\n },\n\n FunctionDeclaration: function (path) {\n const node = path.node;\n vars[node.id.name] = node.id;\n\n const assignment = t.expressionStatement(\n t.assignmentExpression(\n \"=\",\n t.cloneNode(node.id),\n t.functionExpression(\n path.scope.generateUidIdentifierBasedOnNode(node),\n node.params,\n node.body,\n node.generator,\n node.async,\n ),\n ),\n );\n\n if (path.parentPath.isBlockStatement()) {\n // Insert the assignment form before the first statement in the\n // enclosing block.\n path.parentPath.unshiftContainer(\"body\", assignment);\n\n // Remove the function declaration now that we've inserted the\n // equivalent assignment form at the beginning of the block.\n path.remove();\n } else {\n // If the parent node is not a block statement, then we can just\n // replace the declaration with the equivalent assignment form\n // without worrying about hoisting it.\n path.replaceWith(assignment);\n\n // Remove the binding, to avoid \"duplicate declaration\" errors when it will\n // be injected again.\n path.scope.removeBinding(node.id.name);\n }\n\n // Don't hoist variables out of inner functions.\n path.skip();\n },\n\n FunctionExpression: function (path) {\n // Don't descend into nested function expressions.\n path.skip();\n },\n\n ArrowFunctionExpression: function (path) {\n // Don't descend into nested function expressions.\n path.skip();\n },\n });\n\n const paramNames: Record = { __proto__: null };\n funPath.get(\"params\").forEach(function (paramPath) {\n const param = paramPath.node;\n if (t.isIdentifier(param)) {\n paramNames[param.name] = param;\n } else {\n // Variables declared by destructuring parameter patterns will be\n // harmlessly re-declared.\n }\n });\n\n const declarations: t.VariableDeclarator[] = [];\n\n Object.keys(vars).forEach(function (name) {\n if (!Object.hasOwn(paramNames, name)) {\n declarations.push(t.variableDeclarator(vars[name], null));\n }\n });\n\n return declarations;\n}\n"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AAMO,SAASC,KAAKA,CACnBC,OAA+D,EAC/D;EACAC,WAAC,CAACC,cAAc,CAACF,OAAO,CAACG,IAAI,CAAC;EAE9B,MAAMC,IAAkC,GAAG;IAAEC,SAAS,EAAE;EAAK,CAAC;EAE9D,SAASC,aAAaA,CACpB;IAAEH,IAAI,EAAEI;EAAe,CAAC,EACxBC,kBAA2B,EAC3B;IACAP,WAAC,CAACQ,yBAAyB,CAACF,IAAI,CAAC;IAEjC,MAAMG,KAAqB,GAAG,EAAE;IAEhCH,IAAI,CAACI,YAAY,CAACC,OAAO,CAAC,UACxBC,GAAgD,EAChD;MAGAT,IAAI,CAACS,GAAG,CAACC,EAAE,CAACC,IAAI,CAAC,GAAGd,WAAC,CAACe,UAAU,CAACH,GAAG,CAACC,EAAE,CAACC,IAAI,CAAC;MAE7C,IAAIF,GAAG,CAACI,IAAI,EAAE;QACZP,KAAK,CAACQ,IAAI,CAACjB,WAAC,CAACkB,oBAAoB,CAAC,GAAG,EAAEN,GAAG,CAACC,EAAE,EAAED,GAAG,CAACI,IAAI,CAAC,CAAC;MAC3D,CAAC,MAAM,IAAIT,kBAAkB,EAAE;QAC7BE,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ACS,IAAI,CAAC,CAAC;IACb,CAAC;IAEDkB,uBAAuB,EAAE,SAAAA,CAAU3B,IAAI,EAAE;MAEvCA,IAAI,CAACS,IAAI,CAAC,CAAC;IACb;EACF,CAAC,CAAC;EAEF,MAAMmB,UAAwC,GAAG;IAAEjD,SAAS,EAAE;EAAK,CAAC;EACpEL,OAAO,CAACsB,GAAG,CAAC,QAAQ,CAAC,CAACV,OAAO,CAAC,UAAU2C,SAAS,EAAE;IACjD,MAAMC,KAAK,GAAGD,SAAS,CAACpD,IAAI;IAC5B,IAAIF,WAAC,CAACwD,YAAY,CAACD,KAAK,CAAC,EAAE;MACzBF,UAAU,CAACE,KAAK,CAACzC,IAAI,CAAC,GAAGyC,KAAK;IAChC,CAAC,MAAM,CAGP;EACF,CAAC,CAAC;EAEF,MAAM7C,YAAoC,GAAG,EAAE;EAE/CkB,MAAM,CAACC,IAAI,CAAC1B,IAAI,CAAC,CAACQ,OAAO,CAAC,UAAUG,IAAI,EAAE;IACxC,IAAI,CAAC2C,cAAA,CAAAC,IAAA,CAAcL,UAAU,EAAEvC,IAAI,CAAC,EAAE;MACpCJ,YAAY,CAACO,IAAI,CAACjB,WAAC,CAAC2D,kBAAkB,CAACxD,IAAI,CAACW,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAC3D;EACF,CAAC,CAAC;EAEF,OAAOJ,YAAY;AACrB","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/leap.js b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/leap.js new file mode 100644 index 0000000000000000000000000000000000000000..5ebe8ad2f3ed81f27bb3717feb6075e38b7f31a6 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/leap.js @@ -0,0 +1,122 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.TryEntry = exports.SwitchEntry = exports.LoopEntry = exports.LeapManager = exports.LabeledEntry = exports.FunctionEntry = exports.FinallyEntry = exports.Entry = exports.CatchEntry = void 0; +var _assert = require("assert"); +class Entry {} +exports.Entry = Entry; +class FunctionEntry extends Entry { + constructor(returnLoc) { + super(); + this.returnLoc = void 0; + this.returnLoc = returnLoc; + } +} +exports.FunctionEntry = FunctionEntry; +class LoopEntry extends Entry { + constructor(breakLoc, continueLoc, label = null) { + super(); + this.breakLoc = void 0; + this.continueLoc = void 0; + this.label = void 0; + this.breakLoc = breakLoc; + this.continueLoc = continueLoc; + this.label = label; + } +} +exports.LoopEntry = LoopEntry; +class SwitchEntry extends Entry { + constructor(breakLoc) { + super(); + this.breakLoc = void 0; + this.breakLoc = breakLoc; + } +} +exports.SwitchEntry = SwitchEntry; +class TryEntry extends Entry { + constructor(firstLoc, catchEntry = null, finallyEntry = null) { + super(); + this.firstLoc = void 0; + this.catchEntry = void 0; + this.finallyEntry = void 0; + _assert.ok(catchEntry || finallyEntry); + this.firstLoc = firstLoc; + this.catchEntry = catchEntry; + this.finallyEntry = finallyEntry; + } +} +exports.TryEntry = TryEntry; +class CatchEntry extends Entry { + constructor(firstLoc, paramId) { + super(); + this.firstLoc = void 0; + this.paramId = void 0; + this.firstLoc = firstLoc; + this.paramId = paramId; + } +} +exports.CatchEntry = CatchEntry; +class FinallyEntry extends Entry { + constructor(firstLoc, afterLoc) { + super(); + this.firstLoc = void 0; + this.afterLoc = void 0; + this.firstLoc = firstLoc; + this.afterLoc = afterLoc; + } +} +exports.FinallyEntry = FinallyEntry; +class LabeledEntry extends Entry { + constructor(breakLoc, label) { + super(); + this.breakLoc = void 0; + this.label = void 0; + this.breakLoc = breakLoc; + this.label = label; + } +} +exports.LabeledEntry = LabeledEntry; +class LeapManager { + constructor(emitter) { + this.emitter = void 0; + this.entryStack = void 0; + this.emitter = emitter; + this.entryStack = [new FunctionEntry(emitter.finalLoc)]; + } + withEntry(entry, callback) { + this.entryStack.push(entry); + try { + callback.call(this.emitter); + } finally { + const popped = this.entryStack.pop(); + _assert.strictEqual(popped, entry); + } + } + _findLeapLocation(property, label) { + for (let i = this.entryStack.length - 1; i >= 0; --i) { + const entry = this.entryStack[i]; + const loc = entry[property]; + if (loc) { + if (label) { + if (entry.label && entry.label.name === label.name) { + return loc; + } + } else if (entry instanceof LabeledEntry) {} else { + return loc; + } + } + } + return null; + } + getBreakLoc(label) { + return this._findLeapLocation("breakLoc", label); + } + getContinueLoc(label) { + return this._findLeapLocation("continueLoc", label); + } +} +exports.LeapManager = LeapManager; + +//# sourceMappingURL=leap.js.map diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/leap.js.map b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/leap.js.map new file mode 100644 index 0000000000000000000000000000000000000000..dd1231b7a5016c388b62da7a637624386a915286 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/leap.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_assert","require","Entry","exports","FunctionEntry","constructor","returnLoc","LoopEntry","breakLoc","continueLoc","label","SwitchEntry","TryEntry","firstLoc","catchEntry","finallyEntry","assert","ok","CatchEntry","paramId","FinallyEntry","afterLoc","LabeledEntry","LeapManager","emitter","entryStack","finalLoc","withEntry","entry","callback","push","call","popped","pop","strictEqual","_findLeapLocation","property","i","length","loc","name","getBreakLoc","getContinueLoc"],"sources":["../../src/regenerator/leap.ts"],"sourcesContent":["import assert from \"node:assert\";\nimport type { Emitter } from \"./emit.ts\";\nimport type { types as t } from \"@babel/core\";\n\nexport class Entry {}\n\nexport class FunctionEntry extends Entry {\n returnLoc: t.NumericLiteral;\n\n constructor(returnLoc: t.NumericLiteral) {\n super();\n this.returnLoc = returnLoc;\n }\n}\n\nexport class LoopEntry extends Entry {\n breakLoc: t.NumericLiteral;\n continueLoc: t.NumericLiteral;\n label: t.Identifier;\n\n constructor(\n breakLoc: t.NumericLiteral,\n continueLoc: t.NumericLiteral,\n label: t.Identifier = null,\n ) {\n super();\n this.breakLoc = breakLoc;\n this.continueLoc = continueLoc;\n this.label = label;\n }\n}\n\nexport class SwitchEntry extends Entry {\n breakLoc: t.NumericLiteral;\n\n constructor(breakLoc: t.NumericLiteral) {\n super();\n this.breakLoc = breakLoc;\n }\n}\n\nexport class TryEntry extends Entry {\n firstLoc: t.NumericLiteral;\n catchEntry: CatchEntry;\n finallyEntry: FinallyEntry;\n\n constructor(\n firstLoc: t.NumericLiteral,\n catchEntry: CatchEntry | null = null,\n finallyEntry: FinallyEntry | null = null,\n ) {\n super();\n assert.ok(catchEntry || finallyEntry);\n this.firstLoc = firstLoc;\n this.catchEntry = catchEntry;\n this.finallyEntry = finallyEntry;\n }\n}\n\nexport class CatchEntry extends Entry {\n firstLoc: t.NumericLiteral;\n paramId: t.Identifier;\n\n constructor(firstLoc: t.NumericLiteral, paramId: t.Identifier) {\n super();\n this.firstLoc = firstLoc;\n this.paramId = paramId;\n }\n}\n\nexport class FinallyEntry extends Entry {\n firstLoc: t.NumericLiteral;\n afterLoc: t.NumericLiteral;\n\n constructor(firstLoc: t.NumericLiteral, afterLoc: t.NumericLiteral) {\n super();\n this.firstLoc = firstLoc;\n this.afterLoc = afterLoc;\n }\n}\n\nexport class LabeledEntry extends Entry {\n breakLoc: t.NumericLiteral;\n label: t.Identifier;\n\n constructor(breakLoc: t.NumericLiteral, label: t.Identifier) {\n super();\n this.breakLoc = breakLoc;\n this.label = label;\n }\n}\n\nexport class LeapManager {\n emitter: Emitter;\n entryStack: Entry[];\n\n constructor(emitter: Emitter) {\n this.emitter = emitter;\n this.entryStack = [new FunctionEntry(emitter.finalLoc)];\n }\n\n withEntry(entry: Entry, callback: any) {\n this.entryStack.push(entry);\n try {\n callback.call(this.emitter);\n } finally {\n const popped = this.entryStack.pop();\n assert.strictEqual(popped, entry);\n }\n }\n\n _findLeapLocation(property: \"breakLoc\" | \"continueLoc\", label: t.Identifier) {\n for (let i = this.entryStack.length - 1; i >= 0; --i) {\n const entry = this.entryStack[i];\n // @ts-expect-error Element implicitly has an 'any' type\n const loc = entry[property] as t.NumericLiteral;\n if (loc) {\n if (label) {\n // @ts-expect-error entry.label may not exist\n if (entry.label && entry.label.name === label.name) {\n return loc;\n }\n } else if (entry instanceof LabeledEntry) {\n // Ignore LabeledEntry entries unless we are actually breaking to\n // a label.\n } else {\n return loc;\n }\n }\n }\n return null;\n }\n\n getBreakLoc(label: t.Identifier) {\n return this._findLeapLocation(\"breakLoc\", label);\n }\n\n getContinueLoc(label: t.Identifier) {\n return this._findLeapLocation(\"continueLoc\", label);\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAIO,MAAMC,KAAK,CAAC;AAAEC,OAAA,CAAAD,KAAA,GAAAA,KAAA;AAEd,MAAME,aAAa,SAASF,KAAK,CAAC;EAGvCG,WAAWA,CAACC,SAA2B,EAAE;IACvC,KAAK,CAAC,CAAC;IAAC,KAHVA,SAAS;IAIP,IAAI,CAACA,SAAS,GAAGA,SAAS;EAC5B;AACF;AAACH,OAAA,CAAAC,aAAA,GAAAA,aAAA;AAEM,MAAMG,SAAS,SAASL,KAAK,CAAC;EAKnCG,WAAWA,CACTG,QAA0B,EAC1BC,WAA6B,EAC7BC,KAAmB,GAAG,IAAI,EAC1B;IACA,KAAK,CAAC,CAAC;IAAC,KATVF,QAAQ;IAAA,KACRC,WAAW;IAAA,KACXC,KAAK;IAQH,IAAI,CAACF,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,KAAK,GAAGA,KAAK;EACpB;AACF;AAACP,OAAA,CAAAI,SAAA,GAAAA,SAAA;AAEM,MAAMI,WAAW,SAAST,KAAK,CAAC;EAGrCG,WAAWA,CAACG,QAA0B,EAAE;IACtC,KAAK,CAAC,CAAC;IAAC,KAHVA,QAAQ;IAIN,IAAI,CAACA,QAAQ,GAAGA,QAAQ;EAC1B;AACF;AAACL,OAAA,CAAAQ,WAAA,GAAAA,WAAA;AAEM,MAAMC,QAAQ,SAASV,KAAK,CAAC;EAKlCG,WAAWA,CACTQ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AEzB,KAAK,CAAC;EAClD;EAEAgC,cAAcA,CAAChC,KAAmB,EAAE;IAClC,OAAO,IAAI,CAACyB,iBAAiB,CAAC,aAAa,EAAEzB,KAAK,CAAC;EACrD;AACF;AAACP,OAAA,CAAAoB,WAAA,GAAAA,WAAA","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/meta.js b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/meta.js new file mode 100644 index 0000000000000000000000000000000000000000..25bf15bfc0101f5dd80637cb5e44d31216715df1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/meta.js @@ -0,0 +1,78 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.hasSideEffects = exports.containsLeap = void 0; +var _assert = require("assert"); +var _core = require("@babel/core"); +const mMap = new WeakMap(); +function m(node) { + if (!mMap.has(node)) { + mMap.set(node, {}); + } + return mMap.get(node); +} +function makePredicate(propertyName, knownTypes) { + function onlyChildren(node) { + _core.types.assertNode(node); + let result = false; + function check(child) { + if (result) {} else if (Array.isArray(child)) { + child.some(check); + } else if (_core.types.isNode(child)) { + _assert.strictEqual(result, false); + result = predicate(child); + } + return result; + } + const keys = _core.types.VISITOR_KEYS[node.type]; + if (keys) { + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + const child = node[key]; + check(child); + } + } + return result; + } + function predicate(node) { + _core.types.assertNode(node); + const meta = m(node); + if (hasOwnProperty.call(meta, propertyName)) return meta[propertyName]; + if (hasOwnProperty.call(opaqueTypes, node.type)) return meta[propertyName] = false; + if (hasOwnProperty.call(knownTypes, node.type)) return meta[propertyName] = true; + return meta[propertyName] = onlyChildren(node); + } + predicate.onlyChildren = onlyChildren; + return predicate; +} +const opaqueTypes = { + FunctionExpression: true, + ArrowFunctionExpression: true +}; +const sideEffectTypes = { + CallExpression: true, + ForInStatement: true, + UnaryExpression: true, + BinaryExpression: true, + AssignmentExpression: true, + UpdateExpression: true, + NewExpression: true +}; +const leapTypes = { + YieldExpression: true, + BreakStatement: true, + ContinueStatement: true, + ReturnStatement: true, + ThrowStatement: true +}; +for (const type in leapTypes) { + if (hasOwnProperty.call(leapTypes, type)) { + sideEffectTypes[type] = leapTypes[type]; + } +} +const hasSideEffects = exports.hasSideEffects = makePredicate("hasSideEffects", sideEffectTypes); +const containsLeap = exports.containsLeap = makePredicate("containsLeap", leapTypes); + +//# sourceMappingURL=meta.js.map diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/meta.js.map b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/meta.js.map new file mode 100644 index 0000000000000000000000000000000000000000..70cc998fd65d055a969851b67c22232f2eaf3cdc --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/meta.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_assert","require","_core","mMap","WeakMap","m","node","has","set","get","makePredicate","propertyName","knownTypes","onlyChildren","t","assertNode","result","check","child","Array","isArray","some","isNode","assert","strictEqual","predicate","keys","VISITOR_KEYS","type","i","length","key","meta","hasOwnProperty","call","opaqueTypes","FunctionExpression","ArrowFunctionExpression","sideEffectTypes","CallExpression","ForInStatement","UnaryExpression","BinaryExpression","AssignmentExpression","UpdateExpression","NewExpression","leapTypes","YieldExpression","BreakStatement","ContinueStatement","ReturnStatement","ThrowStatement","hasSideEffects","exports","containsLeap"],"sources":["../../src/regenerator/meta.ts"],"sourcesContent":["import assert from \"node:assert\";\nimport { types as t } from \"@babel/core\";\n\nconst mMap = new WeakMap();\nfunction m(node: t.Node) {\n if (!mMap.has(node)) {\n mMap.set(node, {});\n }\n return mMap.get(node);\n}\n\nfunction makePredicate(\n propertyName: string,\n knownTypes: Record,\n) {\n function onlyChildren(node: t.Node) {\n t.assertNode(node);\n\n // Assume no side effects until we find out otherwise.\n let result = false;\n\n function check(child: any) {\n if (result) {\n // Do nothing.\n } else if (Array.isArray(child)) {\n child.some(check);\n } else if (t.isNode(child)) {\n assert.strictEqual(result, false);\n result = predicate(child);\n }\n return result;\n }\n\n const keys = t.VISITOR_KEYS[node.type];\n if (keys) {\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const child = node[key as keyof typeof node];\n check(child);\n }\n }\n\n return result;\n }\n\n function predicate(node: t.Node) {\n t.assertNode(node);\n\n const meta = m(node);\n if (Object.hasOwn(meta, propertyName)) return meta[propertyName];\n\n // Certain types are \"opaque,\" which means they have no side\n // effects or leaps and we don't care about their subexpressions.\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n if (Object.hasOwn(opaqueTypes, node.type))\n return (meta[propertyName] = false);\n\n if (Object.hasOwn(knownTypes, node.type))\n return (meta[propertyName] = true);\n\n return (meta[propertyName] = onlyChildren(node));\n }\n\n predicate.onlyChildren = onlyChildren;\n\n return predicate;\n}\n\nconst opaqueTypes = {\n FunctionExpression: true,\n ArrowFunctionExpression: true,\n};\n\n// These types potentially have side effects regardless of what side\n// effects their subexpressions have.\nconst sideEffectTypes = {\n CallExpression: true, // Anything could happen!\n ForInStatement: true, // Modifies the key variable.\n UnaryExpression: true, // Think delete.\n BinaryExpression: true, // Might invoke .toString() or .valueOf().\n AssignmentExpression: true, // Side-effecting by definition.\n UpdateExpression: true, // Updates are essentially assignments.\n NewExpression: true, // Similar to CallExpression.\n};\n\n// These types are the direct cause of all leaps in control flow.\nconst leapTypes = {\n YieldExpression: true,\n BreakStatement: true,\n ContinueStatement: true,\n ReturnStatement: true,\n ThrowStatement: true,\n};\n\n// All leap types are also side effect types.\nfor (const type in leapTypes) {\n if (Object.hasOwn(leapTypes, type)) {\n sideEffectTypes[type as keyof typeof sideEffectTypes] =\n leapTypes[type as keyof typeof leapTypes];\n }\n}\n\nexport const hasSideEffects = makePredicate(\"hasSideEffects\", sideEffectTypes);\nexport const containsLeap = makePredicate(\"containsLeap\", leapTypes);\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,M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IAAI,CAA2B;EAC7C;AACF;AAEO,MAAMwB,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG1C,aAAa,CAAC,gBAAgB,EAAE4B,eAAe,CAAC;AACvE,MAAMgB,YAAY,GAAAD,OAAA,CAAAC,YAAA,GAAG5C,aAAa,CAAC,cAAc,EAAEoC,SAAS,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/replaceShorthandObjectMethod.js b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/replaceShorthandObjectMethod.js new file mode 100644 index 0000000000000000000000000000000000000000..dc1ce9dbde1e3fbe8f52f4b00fd48457deb0b97e --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/replaceShorthandObjectMethod.js @@ -0,0 +1,26 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = replaceShorthandObjectMethod; +var _core = require("@babel/core"); +function replaceShorthandObjectMethod(path) { + if (!path.node || !_core.types.isFunction(path.node)) { + throw new Error("replaceShorthandObjectMethod can only be called on Function AST node paths."); + } + if (!_core.types.isObjectMethod(path.node)) { + return path; + } + if (!path.node.generator) { + return path; + } + const parameters = path.node.params.map(function (param) { + return _core.types.cloneNode(param); + }); + const functionExpression = _core.types.functionExpression(null, parameters, _core.types.cloneNode(path.node.body), path.node.generator, path.node.async); + path.replaceWith(_core.types.objectProperty(_core.types.cloneNode(path.node.key), functionExpression, path.node.computed, false)); + return path.get("value"); +} + +//# sourceMappingURL=replaceShorthandObjectMethod.js.map diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/replaceShorthandObjectMethod.js.map b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/replaceShorthandObjectMethod.js.map new file mode 100644 index 0000000000000000000000000000000000000000..df01da72c35e27389b17133ff134c070d8faed3e --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/replaceShorthandObjectMethod.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_core","require","replaceShorthandObjectMethod","path","node","t","isFunction","Error","isObjectMethod","generator","parameters","params","map","param","cloneNode","functionExpression","body","async","replaceWith","objectProperty","key","computed","get"],"sources":["../../src/regenerator/replaceShorthandObjectMethod.ts"],"sourcesContent":["import type { NodePath } from \"@babel/core\";\nimport { types as t } from \"@babel/core\";\n\n// this function converts a shorthand object generator method into a normal\n// (non-shorthand) object property which is a generator function expression. for\n// example, this:\n//\n// var foo = {\n// *bar(baz) { return 5; }\n// }\n//\n// should be replaced with:\n//\n// var foo = {\n// bar: function*(baz) { return 5; }\n// }\n//\n// to do this, it clones the parameter array and the body of the object generator\n// method into a new FunctionExpression.\n//\n// this method can be passed any Function AST node path, and it will return\n// either:\n// a) the path that was passed in (iff the path did not need to be replaced) or\n// b) the path of the new FunctionExpression that was created as a replacement\n// (iff the path did need to be replaced)\n//\n// In either case, though, the caller can count on the fact that the return value\n// is a Function AST node path.\n//\n// If this function is called with an AST node path that is not a Function (or with an\n// argument that isn't an AST node path), it will throw an error.\nexport default function replaceShorthandObjectMethod(path: NodePath): NodePath {\n if (!path.node || !t.isFunction(path.node)) {\n throw new Error(\n \"replaceShorthandObjectMethod can only be called on Function AST node paths.\",\n );\n }\n\n // this function only replaces shorthand object methods (called ObjectMethod\n // in Babel-speak).\n if (!t.isObjectMethod(path.node)) {\n return path;\n }\n\n // this function only replaces generators.\n if (!path.node.generator) {\n return path;\n }\n\n const parameters = path.node.params.map(function (param: any) {\n return t.cloneNode(param);\n });\n\n const functionExpression = t.functionExpression(\n null, // id\n parameters, // params\n t.cloneNode(path.node.body), // body\n path.node.generator,\n path.node.async,\n );\n\n path.replaceWith(\n t.objectProperty(\n t.cloneNode(path.node.key), // key\n functionExpression, //value\n path.node.computed, // computed\n false, // shorthand\n ),\n );\n\n // path now refers to the ObjectProperty AST node path, but we want to return a\n // Function AST node path for the function expression we created. we know that\n // the FunctionExpression we just created is the value of the ObjectProperty,\n // so return the \"value\" path off of this path.\n return path.get(\"value\");\n}\n"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AA8Be,SAASC,4BAA4BA,CAACC,IAAc,EAAY;EAC7E,IAAI,CAACA,IAAI,CAACC,IAAI,IAAI,CAACC,WAAC,CAACC,UAAU,CAACH,IAAI,CAACC,IAAI,CAAC,EAAE;IAC1C,MAAM,IAAIG,KAAK,CACb,6EACF,CAAC;EACH;EAIA,IAAI,CAACF,WAAC,CAACG,cAAc,CAACL,IAAI,CAACC,IAAI,CAAC,EAAE;IAChC,OAAOD,IAAI;EACb;EAGA,IAAI,CAACA,IAAI,CAACC,IAAI,CAACK,SAAS,EAAE;IACxB,OAAON,IAAI;EACb;EAEA,MAAMO,UAAU,GAAGP,IAAI,CAACC,IAAI,CAACO,MAAM,CAACC,GAAG,CAAC,UAAUC,KAAU,EAAE;IAC5D,OAAOR,WAAC,CAACS,SAAS,CAACD,KAAK,CAAC;EAC3B,CAAC,CAAC;EAEF,MAAME,kBAAkB,GAAGV,WAAC,CAACU,kBAAkB,CAC7C,IAAI,EACJL,UAAU,EACVL,WAAC,CAACS,SAAS,CAACX,IAAI,CAACC,IAAI,CAACY,IAAI,CAAC,EAC3Bb,IAAI,CAACC,IAAI,CAACK,SAAS,EACnBN,IAAI,CAACC,IAAI,CAACa,KACZ,CAAC;EAEDd,IAAI,CAACe,WAAW,CACdb,WAAC,CAACc,cAAc,CACdd,WAAC,CAACS,SAAS,CAACX,IAAI,CAACC,IAAI,CAACgB,GAAG,CAAC,EAC1BL,kBAAkB,EAClBZ,IAAI,CAACC,IAAI,CAACiB,QAAQ,EAClB,KACF,CACF,CAAC;EAMD,OAAOlB,IAAI,CAACmB,GAAG,CAAC,OAAO,CAAC;AAC1B","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/util.js b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/util.js new file mode 100644 index 0000000000000000000000000000000000000000..01823d9e5649b70597d78799a3a18f14acab94b8 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/util.js @@ -0,0 +1,26 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.isReference = isReference; +exports.runtimeProperty = exports.newHelpersAvailable = void 0; +var _core = require("@babel/core"); +let newHelpersAvailable = exports.newHelpersAvailable = void 0; +exports.newHelpersAvailable = newHelpersAvailable = file => { + return file.availableHelper("regenerator") && !_core.types.isIdentifier(file.addHelper("regenerator"), { + name: "__interal_marker_fallback_regenerator__" + }); +}; +let runtimeProperty = exports.runtimeProperty = void 0; +exports.runtimeProperty = runtimeProperty = function (file, name) { + const helper = file.addHelper("regeneratorRuntime"); + return _core.types.memberExpression(_core.types.isArrowFunctionExpression(helper) && _core.types.isIdentifier(helper.body) ? helper.body : _core.types.callExpression(helper, []), _core.types.identifier(name), false); +}; +function isReference(path) { + return path.isReferenced() || path.parentPath.isAssignmentExpression({ + left: path.node + }); +} + +//# sourceMappingURL=util.js.map diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/util.js.map b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/util.js.map new file mode 100644 index 0000000000000000000000000000000000000000..1edfcf1de3b0d2660ae48658d1926e3815948edb --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/util.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_core","require","newHelpersAvailable","exports","file","availableHelper","t","isIdentifier","addHelper","name","runtimeProperty","helper","memberExpression","isArrowFunctionExpression","body","callExpression","identifier","isReference","path","isReferenced","parentPath","isAssignmentExpression","left","node"],"sources":["../../src/regenerator/util.ts"],"sourcesContent":["import type { PluginPass } from \"@babel/core\";\nimport { types as t } from \"@babel/core\";\n\nexport let newHelpersAvailable: (file: PluginPass) => boolean;\nif (!process.env.BABEL_8_BREAKING) {\n newHelpersAvailable = (file: PluginPass) => {\n if (!process.env.IS_PUBLISH && process.env.FORCE_OLD_REGENERATOR) {\n // Only for testing purposes.\n return false;\n }\n return (\n file.availableHelper(\"regenerator\") &&\n // At this point, we can safely try to inject the `regenerator` helper.\n // If this plugin tries to inject any helper, than we are sure that\n // `regenerator` is one of them.\n !t.isIdentifier(file.addHelper(\"regenerator\"), {\n // This is a special marker returned by transform-runtime, which means\n // \"the version of `@babel/runtime` does not have the helper\".\n // Normally transform-runtime will fallback to just injecting the\n // helper inline, but we special handle this case to instead be able\n // to fallback to the old `regeneratorRuntime` helper\n name: \"__interal_marker_fallback_regenerator__\",\n })\n );\n };\n}\n\nexport let runtimeProperty: (file: PluginPass, name: any) => any;\nif (!process.env.BABEL_8_BREAKING) {\n runtimeProperty = function (file, name) {\n const helper = file.addHelper(\"regeneratorRuntime\");\n return t.memberExpression(\n // In some cases, `helper` will be (() => regeneratorRuntime).\n // Se the implementation in transform-runtime for more details.\n t.isArrowFunctionExpression(helper) &&\n t.isIdentifier((helper as any).body)\n ? (helper as any).body\n : t.callExpression(helper, []),\n t.identifier(name),\n false,\n );\n };\n}\n\nexport function isReference(path: any) {\n return (\n path.isReferenced() ||\n path.parentPath.isAssignmentExpression({ left: path.node })\n );\n}\n"],"mappings":";;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AAEO,IAAIC,mBAAkD,GAAAC,OAAA,CAAAD,mBAAA;AAE3DC,OAAA,CAAAD,mBAAA,GAAAA,mBAAmB,GAAIE,IAAgB,IAAK;EAK1C,OACEA,IAAI,CAACC,eAAe,CAAC,aAAa,CAAC,IAInC,CAACC,WAAC,CAACC,YAAY,CAACH,IAAI,CAACI,SAAS,CAAC,aAAa,CAAC,EAAE;IAM7CC,IAAI,EAAE;EACR,CAAC,CAAC;AAEN,CAAC;AAGI,IAAIC,eAAqD,GAAAP,OAAA,CAAAO,eAAA;AAE9DP,OAAA,CAAAO,eAAA,GAAAA,eAAe,GAAG,SAAAA,CAAUN,IAAI,EAAEK,IAAI,EAAE;EACtC,MAAME,MAAM,GAAGP,IAAI,CAACI,SAAS,CAAC,oBAAoB,CAAC;EACnD,OAAOF,WAAC,CAACM,gBAAgB,CAGvBN,WAAC,CAACO,yBAAyB,CAACF,MAAM,CAAC,IACjCL,WAAC,CAACC,YAAY,CAAEI,MAAM,CAASG,IAAI,CAAC,GACjCH,MAAM,CAASG,IAAI,GACpBR,WAAC,CAACS,cAAc,CAACJ,MAAM,EAAE,EAAE,CAAC,EAChCL,WAAC,CAACU,UAAU,CAACP,IAAI,CAAC,EAClB,KACF,CAAC;AACH,CAAC;AAGI,SAASQ,WAAWA,CAACC,IAAS,EAAE;EACrC,OACEA,IAAI,CAACC,YAAY,CAAC,CAAC,IACnBD,IAAI,CAACE,UAAU,CAACC,sBAAsB,CAAC;IAAEC,IAAI,EAAEJ,IAAI,CAACK;EAAK,CAAC,CAAC;AAE/D","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/visit.js b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/visit.js new file mode 100644 index 0000000000000000000000000000000000000000..e4d86b6756ca3de9f3af138280df9b01502f162d --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/visit.js @@ -0,0 +1,221 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.getVisitor = void 0; +var _assert = require("assert"); +var _hoist = require("./hoist.js"); +var _emit = require("./emit.js"); +var _replaceShorthandObjectMethod = require("./replaceShorthandObjectMethod.js"); +var util = require("./util.js"); +var _core = require("@babel/core"); +const getVisitor = () => ({ + Method(path, state) { + const node = path.node; + if (!shouldRegenerate(node, state)) return; + const container = _core.types.functionExpression(null, [], _core.types.cloneNode(node.body, false), node.generator, node.async); + path.get("body").set("body", [_core.types.returnStatement(_core.types.callExpression(container, []))]); + node.async = false; + node.generator = false; + path.get("body.body.0.argument.callee").unwrapFunctionEnvironment(); + }, + Function: { + exit(path, state) { + let node = path.node; + if (!shouldRegenerate(node, state)) return; + path = (0, _replaceShorthandObjectMethod.default)(path); + node = path.node; + const contextId = path.scope.generateUidIdentifier("context"); + const argsId = path.scope.generateUidIdentifier("args"); + path.ensureBlock(); + const bodyBlockPath = path.get("body"); + if (node.async) { + bodyBlockPath.traverse(awaitVisitor, this); + } + bodyBlockPath.traverse(functionSentVisitor, { + context: contextId, + pluginPass: this + }); + const outerBody = []; + const innerBody = []; + bodyBlockPath.get("body").forEach(function (childPath) { + const node = childPath.node; + if (_core.types.isExpressionStatement(node) && _core.types.isStringLiteral(node.expression)) { + outerBody.push(node); + } else if ((node == null ? void 0 : node._blockHoist) != null) { + outerBody.push(node); + } else { + innerBody.push(node); + } + }); + if (outerBody.length > 0) { + bodyBlockPath.node.body = innerBody; + } + const outerFnExpr = getOuterFnExpr(this, path); + _core.types.assertIdentifier(node.id); + const vars = (0, _hoist.hoist)(path); + const context = { + usesThis: false, + usesArguments: false, + getArgsId: () => _core.types.cloneNode(argsId) + }; + path.traverse(argumentsThisVisitor, context); + if (context.usesArguments) { + vars.push(_core.types.variableDeclarator(_core.types.cloneNode(argsId), _core.types.identifier("arguments"))); + } + const emitter = new _emit.Emitter(contextId, path.scope, vars, this); + emitter.explode(path.get("body")); + if (vars.length > 0) { + outerBody.push(_core.types.variableDeclaration("var", vars)); + } + const wrapArgs = [emitter.getContextFunction()]; + const tryLocsList = emitter.getTryLocsList(); + if (node.generator) { + wrapArgs.push(outerFnExpr); + } else if (context.usesThis || tryLocsList || node.async) { + wrapArgs.push(_core.types.nullLiteral()); + } + if (context.usesThis) { + wrapArgs.push(_core.types.thisExpression()); + } else if (tryLocsList || node.async) { + wrapArgs.push(_core.types.nullLiteral()); + } + if (tryLocsList) { + wrapArgs.push(tryLocsList); + } else if (node.async) { + wrapArgs.push(_core.types.nullLiteral()); + } + if (node.async) { + let currentScope = path.scope; + do { + if (currentScope.hasOwnBinding("Promise")) currentScope.rename("Promise"); + } while (currentScope = currentScope.parent); + wrapArgs.push(_core.types.identifier("Promise")); + } + const wrapCall = _core.types.callExpression(util.newHelpersAvailable(this) ? !node.async ? _core.types.memberExpression(_core.types.callExpression(this.addHelper("regenerator"), []), _core.types.identifier("w")) : node.generator ? this.addHelper("regeneratorAsyncGen") : this.addHelper("regeneratorAsync") : util.runtimeProperty(this, node.async ? "async" : "wrap"), wrapArgs); + outerBody.push(_core.types.returnStatement(wrapCall)); + node.body = _core.types.blockStatement(outerBody); + path.get("body.body").forEach(p => p.scope.registerDeclaration(p)); + const oldDirectives = bodyBlockPath.node.directives; + if (oldDirectives) { + node.body.directives = oldDirectives; + } + const wasGeneratorFunction = node.generator; + if (wasGeneratorFunction) { + node.generator = false; + } + if (node.async) { + node.async = false; + } + if (wasGeneratorFunction && _core.types.isExpression(node)) { + path.replaceWith(_core.types.callExpression(util.newHelpersAvailable(this) ? _core.types.memberExpression(_core.types.callExpression(this.addHelper("regenerator"), []), _core.types.identifier("m")) : util.runtimeProperty(this, "mark"), [node])); + path.addComment("leading", "#__PURE__"); + } + const insertedLocs = emitter.getInsertedLocs(); + path.traverse({ + NumericLiteral(path) { + if (!insertedLocs.has(path.node)) { + return; + } + path.replaceWith(_core.types.numericLiteral(path.node.value)); + } + }); + path.requeue(); + } + } +}); +exports.getVisitor = getVisitor; +function shouldRegenerate(node, state) { + if (node.generator) { + if (node.async) { + return state.opts.asyncGenerators !== false; + } else { + return state.opts.generators !== false; + } + } else if (node.async) { + return state.opts.async !== false; + } else { + return false; + } +} +function getOuterFnExpr(state, funPath) { + const node = funPath.node; + _core.types.assertFunction(node); + if (!node.id) { + node.id = funPath.scope.parent.generateUidIdentifier("callee"); + } + if (node.generator && _core.types.isFunctionDeclaration(node)) { + return getMarkedFunctionId(state, funPath); + } + return _core.types.cloneNode(node.id); +} +const markInfo = new WeakMap(); +function getMarkInfo(node) { + if (!markInfo.has(node)) { + markInfo.set(node, {}); + } + return markInfo.get(node); +} +function getMarkedFunctionId(state, funPath) { + const node = funPath.node; + _core.types.assertIdentifier(node.id); + const blockPath = funPath.findParent(function (path) { + return path.isProgram() || path.isBlockStatement(); + }); + if (!blockPath) { + return node.id; + } + const block = blockPath.node; + _assert.ok(Array.isArray(block.body)); + const info = getMarkInfo(block); + if (!info.decl) { + info.decl = _core.types.variableDeclaration("var", []); + blockPath.unshiftContainer("body", info.decl); + info.declPath = blockPath.get("body.0"); + } + _assert.strictEqual(info.declPath.node, info.decl); + const markedId = blockPath.scope.generateUidIdentifier("marked"); + const markCallExp = _core.types.callExpression(util.newHelpersAvailable(state) ? _core.types.memberExpression(_core.types.callExpression(state.addHelper("regenerator"), []), _core.types.identifier("m")) : util.runtimeProperty(state, "mark"), [_core.types.cloneNode(node.id)]); + const index = info.decl.declarations.push(_core.types.variableDeclarator(markedId, markCallExp)) - 1; + const markCallExpPath = info.declPath.get("declarations." + index + ".init"); + _assert.strictEqual(markCallExpPath.node, markCallExp); + markCallExpPath.addComment("leading", "#__PURE__"); + return _core.types.cloneNode(markedId); +} +const argumentsThisVisitor = { + "FunctionExpression|FunctionDeclaration|Method": function (path) { + path.skip(); + }, + Identifier: function (path, state) { + if (path.node.name === "arguments" && util.isReference(path)) { + path.replaceWith(state.getArgsId()); + state.usesArguments = true; + } + }, + ThisExpression: function (path, state) { + state.usesThis = true; + } +}; +const functionSentVisitor = { + MetaProperty(path, state) { + const { + node + } = path; + if (node.meta.name === "function" && node.property.name === "sent") { + path.replaceWith(_core.types.memberExpression(_core.types.cloneNode(state.context), _core.types.identifier(util.newHelpersAvailable(state.pluginPass) ? "v" : "_sent"))); + } + } +}; +const awaitVisitor = { + Function: function (path) { + path.skip(); + }, + AwaitExpression: function (path) { + const argument = path.node.argument; + const helper = util.newHelpersAvailable(this) ? this.addHelper("awaitAsyncGenerator") : util.runtimeProperty(this, "awrap"); + path.replaceWith(_core.types.yieldExpression(_core.types.callExpression(helper, [argument]), false)); + } +}; + +//# sourceMappingURL=visit.js.map diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/visit.js.map b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/visit.js.map new file mode 100644 index 0000000000000000000000000000000000000000..5228a401cb0b8c248f6e4284bc89440a6ec712e7 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/lib/regenerator/visit.js.map @@ -0,0 +1 @@ +{"version":3,"names":["Object","defineProperty","exports","value","getVisitor","_assert","require","_hoist","_emit","_replaceShorthandObjectMethod","util","_core","Method","path","state","node","shouldRegenerate","container","t","functionExpression","cloneNode","body","generator","async","get","set","returnStatement","callExpression","unwrapFunctionEnvironment","Function","exit","replaceShorthandObjectMethod","contextId","scope","generateUidIdentifier","argsId","ensureBlock","bodyBlockPath","traverse","awaitVisitor","functionSentVisitor","context","pluginPass","outerBody","innerBody","forEach","childPath","isExpressionStatement","isStringLiteral","expression","push","_blockHoist","length","outerFnExpr","getOuterFnExpr","assertIdentifier","id","vars","hoist","usesThis","usesArguments","getArgsId","argumentsThisVisitor","variableDeclarator","identifier","emitter","Emitter","explode","variableDeclaration","wrapArgs","getContextFunction","tryLocsList","getTryLocsList","nullLiteral","thisExpression","currentScope","hasOwnBinding","rename","parent","wrapCall","newHelpersAvailable","memberExpression","addHelper","runtimeProperty","blockStatement","p","registerDeclaration","oldDirectives","directives","wasGeneratorFunction","isExpression","replaceWith","addComment","insertedLocs","getInsertedLocs","NumericLiteral","has","numericLiteral","requeue","opts","asyncGenerators","generators","funPath","assertFunction","isFunctionDeclaration","getMarkedFunctionId","markInfo","WeakMap","getMarkInfo","blockPath","findParent","isProgram","isBlockStatement","block","assert","ok","Array","isArray","info","decl","unshiftContainer","declPath","strictEqual","markedId","markCallExp","index","declarations","markCallExpPath","FunctionExpression|FunctionDeclaration|Method","skip","Identifier","name","isReference","ThisExpression","MetaProperty","meta","property","AwaitExpression","argument","helper","yieldExpression"],"sources":["../../src/regenerator/visit.ts"],"sourcesContent":["\"use strict\";\n\nimport assert from \"node:assert\";\nimport { hoist } from \"./hoist.ts\";\nimport { Emitter } from \"./emit.ts\";\nimport replaceShorthandObjectMethod from \"./replaceShorthandObjectMethod.ts\";\nimport * as util from \"./util.ts\";\nimport type { NodePath, PluginPass, Visitor } from \"@babel/core\";\nimport { types as t } from \"@babel/core\";\n\nexport const getVisitor = (): Visitor => ({\n Method(path, state) {\n const node = path.node;\n\n if (!shouldRegenerate(node, state)) return;\n\n const container = t.functionExpression(\n null,\n [],\n t.cloneNode(node.body, false),\n node.generator,\n node.async,\n );\n\n path\n .get(\"body\")\n .set(\"body\", [t.returnStatement(t.callExpression(container, []))]);\n\n // Regardless of whether or not the wrapped function is a an async method\n // or generator the outer function should not be\n node.async = false;\n node.generator = false;\n\n // Unwrap the wrapper IIFE's environment so super and this and such still work.\n (\n path.get(\"body.body.0.argument.callee\") as NodePath\n ).unwrapFunctionEnvironment();\n },\n Function: {\n exit(\n path: NodePath>,\n state,\n ) {\n let node = path.node;\n\n if (!shouldRegenerate(node, state)) return;\n\n // if this is an ObjectMethod, we need to convert it to an ObjectProperty\n path = replaceShorthandObjectMethod(path) as any;\n node = path.node;\n\n const contextId = path.scope.generateUidIdentifier(\"context\");\n const argsId = path.scope.generateUidIdentifier(\"args\");\n\n path.ensureBlock();\n const bodyBlockPath = path.get(\"body\");\n\n if (node.async) {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n bodyBlockPath.traverse(awaitVisitor, this);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n bodyBlockPath.traverse(functionSentVisitor, {\n context: contextId,\n pluginPass: this,\n });\n\n const outerBody: any[] = [];\n const innerBody: any[] = [];\n\n bodyBlockPath.get(\"body\").forEach(function (childPath: any) {\n const node = childPath.node;\n if (\n t.isExpressionStatement(node) &&\n t.isStringLiteral(node.expression)\n ) {\n // Babylon represents directives like \"use strict\" as elements\n // of a bodyBlockPath.node.directives array, but they could just\n // as easily be represented (by other parsers) as traditional\n // string-literal-valued expression statements, so we need to\n // handle that here. (#248)\n outerBody.push(node);\n } else if (node?._blockHoist != null) {\n outerBody.push(node);\n } else {\n innerBody.push(node);\n }\n });\n\n if (outerBody.length > 0) {\n // Only replace the inner body if we actually hoisted any statements\n // to the outer body.\n bodyBlockPath.node.body = innerBody;\n }\n\n const outerFnExpr = getOuterFnExpr(\n this,\n path as NodePath<\n Exclude\n >,\n );\n // Note that getOuterFnExpr has the side-effect of ensuring that the\n // function has a name (so node.id will always be an Identifier), even\n // if a temporary name has to be synthesized.\n t.assertIdentifier(\n (node as t.FunctionDeclaration | t.FunctionExpression).id,\n );\n\n // Turn all declarations into vars, and replace the original\n // declarations with equivalent assignment expressions.\n const vars = hoist(\n path as NodePath,\n );\n\n const context = {\n usesThis: false,\n usesArguments: false,\n getArgsId: () => t.cloneNode(argsId),\n };\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n path.traverse(argumentsThisVisitor, context);\n\n if (context.usesArguments) {\n vars.push(\n t.variableDeclarator(t.cloneNode(argsId), t.identifier(\"arguments\")),\n );\n }\n\n const emitter = new Emitter(contextId, path.scope, vars, this);\n emitter.explode(path.get(\"body\"));\n\n if (vars.length > 0) {\n outerBody.push(t.variableDeclaration(\"var\", vars));\n }\n\n const wrapArgs: any[] = [emitter.getContextFunction()];\n const tryLocsList = emitter.getTryLocsList();\n\n if (node.generator) {\n wrapArgs.push(outerFnExpr);\n } else if (context.usesThis || tryLocsList || node.async) {\n // Async functions that are not generators don't care about the\n // outer function because they don't need it to be marked and don't\n // inherit from its .prototype.\n wrapArgs.push(t.nullLiteral());\n }\n if (context.usesThis) {\n wrapArgs.push(t.thisExpression());\n } else if (tryLocsList || node.async) {\n wrapArgs.push(t.nullLiteral());\n }\n if (tryLocsList) {\n wrapArgs.push(tryLocsList);\n } else if (node.async) {\n wrapArgs.push(t.nullLiteral());\n }\n\n if (node.async) {\n // Rename any locally declared \"Promise\" variable,\n // to use the global one.\n let currentScope = path.scope;\n do {\n if (currentScope.hasOwnBinding(\"Promise\"))\n currentScope.rename(\"Promise\");\n } while ((currentScope = currentScope.parent));\n\n wrapArgs.push(t.identifier(\"Promise\"));\n }\n\n const wrapCall = t.callExpression(\n process.env.BABEL_8_BREAKING || util.newHelpersAvailable(this)\n ? !node.async\n ? t.memberExpression(\n t.callExpression(this.addHelper(\"regenerator\"), []),\n t.identifier(\"w\"),\n )\n : node.generator\n ? this.addHelper(\"regeneratorAsyncGen\")\n : this.addHelper(\"regeneratorAsync\")\n : util.runtimeProperty(this, node.async ? \"async\" : \"wrap\"),\n wrapArgs,\n );\n\n outerBody.push(t.returnStatement(wrapCall));\n node.body = t.blockStatement(outerBody);\n // We injected a few new variable declarations (for every hoisted var),\n // so we need to add them to the scope.\n path.get(\"body.body\").forEach((p: any) => p.scope.registerDeclaration(p));\n\n const oldDirectives = bodyBlockPath.node.directives;\n if (oldDirectives) {\n // Babylon represents directives like \"use strict\" as elements of\n // a bodyBlockPath.node.directives array. (#248)\n node.body.directives = oldDirectives;\n }\n\n const wasGeneratorFunction = node.generator;\n if (wasGeneratorFunction) {\n node.generator = false;\n }\n\n if (node.async) {\n node.async = false;\n }\n\n if (wasGeneratorFunction && t.isExpression(node)) {\n path.replaceWith(\n t.callExpression(\n process.env.BABEL_8_BREAKING || util.newHelpersAvailable(this)\n ? t.memberExpression(\n t.callExpression(this.addHelper(\"regenerator\"), []),\n t.identifier(\"m\"),\n )\n : util.runtimeProperty(this, \"mark\"),\n [node],\n ),\n );\n path.addComment(\"leading\", \"#__PURE__\");\n }\n\n const insertedLocs = emitter.getInsertedLocs();\n\n path.traverse({\n NumericLiteral(path: any) {\n if (!insertedLocs.has(path.node)) {\n return;\n }\n\n path.replaceWith(t.numericLiteral(path.node.value));\n },\n });\n\n // Generators are processed in 'exit' handlers so that regenerator only has to run on\n // an ES5 AST, but that means traversal will not pick up newly inserted references\n // to things like 'regeneratorRuntime'. To avoid this, we explicitly requeue.\n path.requeue();\n },\n },\n});\n\n// Check if a node should be transformed by regenerator\nfunction shouldRegenerate(node: t.Function, state: any) {\n if (node.generator) {\n if (node.async) {\n // Async generator\n return state.opts.asyncGenerators !== false;\n } else {\n // Plain generator\n return state.opts.generators !== false;\n }\n } else if (node.async) {\n // Async function\n return state.opts.async !== false;\n } else {\n // Not a generator or async function.\n return false;\n }\n}\n\n// Given a NodePath for a Function, return an Expression node that can be\n// used to refer reliably to the function object from inside the function.\n// This expression is essentially a replacement for arguments.callee, with\n// the key advantage that it works in strict mode.\nfunction getOuterFnExpr(\n state: PluginPass,\n funPath: NodePath>,\n) {\n const node = funPath.node;\n t.assertFunction(node);\n\n if (!node.id) {\n // Default-exported function declarations, and function expressions may not\n // have a name to reference, so we explicitly add one.\n node.id = funPath.scope.parent.generateUidIdentifier(\"callee\");\n }\n\n if (\n node.generator && // Non-generator functions don't need to be marked.\n t.isFunctionDeclaration(node)\n ) {\n // Return the identifier returned by runtime.mark().\n return getMarkedFunctionId(state, funPath);\n }\n\n return t.cloneNode(node.id);\n}\n\nconst markInfo = new WeakMap();\n\nfunction getMarkInfo(node: any) {\n if (!markInfo.has(node)) {\n markInfo.set(node, {});\n }\n return markInfo.get(node);\n}\n\nfunction getMarkedFunctionId(\n state: PluginPass,\n funPath: NodePath>,\n) {\n const node = funPath.node;\n t.assertIdentifier(node.id);\n\n const blockPath = funPath.findParent(function (path) {\n return path.isProgram() || path.isBlockStatement();\n }) as NodePath;\n\n if (!blockPath) {\n return node.id;\n }\n\n const block = blockPath.node;\n assert.ok(Array.isArray(block.body));\n\n const info = getMarkInfo(block);\n if (!info.decl) {\n info.decl = t.variableDeclaration(\"var\", []);\n blockPath.unshiftContainer(\"body\", info.decl);\n info.declPath = blockPath.get(\"body.0\");\n }\n\n assert.strictEqual(info.declPath.node, info.decl);\n\n // Get a new unique identifier for our marked variable.\n const markedId = blockPath.scope.generateUidIdentifier(\"marked\");\n const markCallExp = t.callExpression(\n process.env.BABEL_8_BREAKING || util.newHelpersAvailable(state)\n ? t.memberExpression(\n t.callExpression(state.addHelper(\"regenerator\"), []),\n t.identifier(\"m\"),\n )\n : util.runtimeProperty(state, \"mark\"),\n [t.cloneNode(node.id)],\n );\n\n const index =\n info.decl.declarations.push(t.variableDeclarator(markedId, markCallExp)) -\n 1;\n\n const markCallExpPath = info.declPath.get(\"declarations.\" + index + \".init\");\n\n assert.strictEqual(markCallExpPath.node, markCallExp);\n\n markCallExpPath.addComment(\"leading\", \"#__PURE__\");\n\n return t.cloneNode(markedId);\n}\n\nconst argumentsThisVisitor: Visitor<{\n usesThis: boolean;\n usesArguments: boolean;\n getArgsId: () => t.Identifier;\n}> = {\n \"FunctionExpression|FunctionDeclaration|Method\": function (path) {\n path.skip();\n },\n\n Identifier: function (path, state) {\n if (path.node.name === \"arguments\" && util.isReference(path)) {\n path.replaceWith(state.getArgsId());\n state.usesArguments = true;\n }\n },\n\n ThisExpression: function (path, state) {\n state.usesThis = true;\n },\n};\n\nconst functionSentVisitor: Visitor<{\n context: t.Identifier;\n pluginPass: PluginPass;\n}> = {\n MetaProperty(path, state) {\n const { node } = path;\n\n if (node.meta.name === \"function\" && node.property.name === \"sent\") {\n path.replaceWith(\n t.memberExpression(\n t.cloneNode(state.context),\n t.identifier(\n process.env.BABEL_8_BREAKING ||\n util.newHelpersAvailable(state.pluginPass)\n ? \"v\"\n : \"_sent\",\n ),\n ),\n );\n }\n },\n};\n\nconst awaitVisitor: Visitor = {\n Function: function (path) {\n path.skip(); // Don't descend into nested function scopes.\n },\n\n AwaitExpression: function (path) {\n // Convert await expressions to yield expressions.\n const argument = path.node.argument;\n\n const helper =\n // This is slightly tricky: newer versions of the `regeneratorRuntime`\n // helper support using `awaitAsyncGenerator` as an alternative to\n // `regeneratorRuntime().awrap`. There is no direct way to test if we\n // have that part of the helper available, but we know that it has been\n // introduced in the same version as `regeneratorKeys`.\n process.env.BABEL_8_BREAKING || util.newHelpersAvailable(this)\n ? this.addHelper(\"awaitAsyncGenerator\")\n : util.runtimeProperty(this, \"awrap\");\n\n // Transforming `await x` to `yield regeneratorRuntime.awrap(x)`\n // causes the argument to be wrapped in such a way that the runtime\n // can distinguish between awaited and merely yielded values.\n path.replaceWith(\n t.yieldExpression(t.callExpression(helper, [argument]), false),\n );\n },\n};\n"],"mappings":"AAAA,YAAY;;A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B,MAAM6H,QAAQ,GAAG7H,IAAI,CAACE,IAAI,CAAC2H,QAAQ;IAEnC,MAAMC,MAAM,GAMsBjI,IAAI,CAACsE,mBAAmB,CAAC,IAAI,CAAC,GAC1D,IAAI,CAACE,SAAS,CAAC,qBAAqB,CAAC,GACrCxE,IAAI,CAACyE,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC;IAKzCtE,IAAI,CAAC8E,WAAW,CACdzE,WAAC,CAAC0H,eAAe,CAAC1H,WAAC,CAACS,cAAc,CAACgH,MAAM,EAAE,CAACD,QAAQ,CAAC,CAAC,EAAE,KAAK,CAC/D,CAAC;EACH;AACF,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-regenerator/package.json b/node_modules/@babel/plugin-transform-regenerator/package.json new file mode 100644 index 0000000000000000000000000000000000000000..da471e91a7d57e0c04b49a12113fa246ebaed4b3 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regenerator/package.json @@ -0,0 +1,43 @@ +{ + "name": "@babel/plugin-transform-regenerator", + "author": "The Babel Team (https://babel.dev/team)", + "description": "Explode async and generator functions into a state machine.", + "version": "7.29.8", + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-regenerator", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-regenerator" + }, + "main": "./lib/index.js", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-check-duplicate-nodes": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/plugin-proposal-function-sent": "^7.29.7", + "@babel/plugin-transform-arrow-functions": "^7.29.7", + "@babel/plugin-transform-block-scoping": "^7.29.7", + "@babel/plugin-transform-classes": "^7.29.7", + "@babel/plugin-transform-for-of": "^7.29.7", + "@babel/plugin-transform-modules-commonjs": "^7.29.7", + "@babel/plugin-transform-parameters": "^7.29.7", + "@babel/plugin-transform-runtime": "^7.29.7", + "babel-plugin-polyfill-regenerator": "^0.6.6", + "recast": "^0.23.3", + "uglify-js": "^3.14.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-regexp-modifiers/LICENSE b/node_modules/@babel/plugin-transform-regexp-modifiers/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regexp-modifiers/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-regexp-modifiers/README.md b/node_modules/@babel/plugin-transform-regexp-modifiers/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f3b8723f56a44b7ff174234bc7081411034e2e7c --- /dev/null +++ b/node_modules/@babel/plugin-transform-regexp-modifiers/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-regexp-modifiers + +> Compile inline regular expression modifiers + +See our website [@babel/plugin-transform-regexp-modifiers](https://babeljs.io/docs/babel-plugin-transform-regexp-modifiers) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-regexp-modifiers +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-regexp-modifiers --dev +``` diff --git a/node_modules/@babel/plugin-transform-regexp-modifiers/lib/index.js b/node_modules/@babel/plugin-transform-regexp-modifiers/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..87753d4a7e350f4782718a21261112e748a74883 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regexp-modifiers/lib/index.js @@ -0,0 +1,17 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin"); +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion("^7.19.0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta"); + return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ + name: "transform-regexp-modifiers", + feature: "modifiers" + }); +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-regexp-modifiers/lib/index.js.map b/node_modules/@babel/plugin-transform-regexp-modifiers/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..550cc66fac92694c06e42505d1abaad8f65aae11 --- /dev/null +++ b/node_modules/@babel/plugin-transform-regexp-modifiers/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperCreateRegexpFeaturesPlugin","require","_helperPluginUtils","_default","exports","default","declare","api","assertVersion","createRegExpFeaturePlugin","name","feature"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @babel/development/plugin-name */\nimport { createRegExpFeaturePlugin } from \"@babel/helper-create-regexp-features-plugin\";\nimport { declare } from \"@babel/helper-plugin-utils\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(\"^7.19.0 || ^8.0.0-0\"));\n\n return createRegExpFeaturePlugin({\n name: \"transform-regexp-modifiers\",\n feature: \"modifiers\",\n });\n});\n"],"mappings":";;;;;;AACA,IAAAA,iCAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAAqD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEtC,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,kDAAwC,CAAC;EAE1D,OAAO,IAAAC,2DAAyB,EAAC;IAC/BC,IAAI,EAAE,4BAA4B;IAClCC,OAAO,EAAE;EACX,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-regexp-modifiers/package.json b/node_modules/@babel/plugin-transform-regexp-modifiers/package.json new file mode 100644 index 0000000000000000000000000000000000000000..254e4588063c1b645ceab7040855bdce5f96c69a --- /dev/null +++ b/node_modules/@babel/plugin-transform-regexp-modifiers/package.json @@ -0,0 +1,45 @@ +{ + "name": "@babel/plugin-transform-regexp-modifiers", + "version": "7.29.7", + "description": "Compile inline regular expression modifiers", + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-regexp-modifiers", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin", + "regex", + "regexp", + "regular expressions" + ], + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-regexp-modifiers" + }, + "bugs": "https://github.com/babel/babel/issues", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + }, + "devDependencies": { + "@babel/core": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "exports": { + ".": { + "types": "./lib/index.d.ts", + "default": "./lib/index.js" + }, + "./package.json": "./package.json" + }, + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-reserved-words/LICENSE b/node_modules/@babel/plugin-transform-reserved-words/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-reserved-words/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-reserved-words/README.md b/node_modules/@babel/plugin-transform-reserved-words/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ff4b776eb8b3e981f7d98715246836783f3ebad5 --- /dev/null +++ b/node_modules/@babel/plugin-transform-reserved-words/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-reserved-words + +> Ensure that no reserved words are used. + +See our website [@babel/plugin-transform-reserved-words](https://babeljs.io/docs/babel-plugin-transform-reserved-words) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-reserved-words +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-reserved-words --dev +``` diff --git a/node_modules/@babel/plugin-transform-reserved-words/lib/index.js b/node_modules/@babel/plugin-transform-reserved-words/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..6b3ef5831875e59a1fc35498876f4dcd350b108f --- /dev/null +++ b/node_modules/@babel/plugin-transform-reserved-words/lib/index.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-reserved-words", + visitor: { + "BindingIdentifier|ReferencedIdentifier"(path) { + if (!_core.types.isValidES3Identifier(path.node.name)) { + path.scope.rename(path.node.name); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-reserved-words/lib/index.js.map b/node_modules/@babel/plugin-transform-reserved-words/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f6a92a926e0338106fa5962679bed4cb50785b40 --- /dev/null +++ b/node_modules/@babel/plugin-transform-reserved-words/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","_default","exports","default","declare","api","assertVersion","name","visitor","BindingIdentifier|ReferencedIdentifier","path","t","isValidES3Identifier","node","scope","rename"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t, type NodePath } from \"@babel/core\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n return {\n name: \"transform-reserved-words\",\n\n visitor: {\n \"BindingIdentifier|ReferencedIdentifier\"(path: NodePath) {\n if (!t.isValidES3Identifier(path.node.name)) {\n path.scope.rename(path.node.name);\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAwD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEzC,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAkB,CAAE,CAAC;EAEtC,OAAO;IACLC,IAAI,EAAE,0BAA0B;IAEhCC,OAAO,EAAE;MACP,wCAAwCC,CAACC,IAA4B,EAAE;QACrE,IAAI,CAACC,WAAC,CAACC,oBAAoB,CAACF,IAAI,CAACG,IAAI,CAACN,IAAI,CAAC,EAAE;UAC3CG,IAAI,CAACI,KAAK,CAACC,MAAM,CAACL,IAAI,CAACG,IAAI,CAACN,IAAI,CAAC;QACnC;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-reserved-words/package.json b/node_modules/@babel/plugin-transform-reserved-words/package.json new file mode 100644 index 0000000000000000000000000000000000000000..57d454e41dff6988706adeedd9a4cb4550460a57 --- /dev/null +++ b/node_modules/@babel/plugin-transform-reserved-words/package.json @@ -0,0 +1,34 @@ +{ + "name": "@babel/plugin-transform-reserved-words", + "version": "7.29.7", + "description": "Ensure that no reserved words are used.", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-reserved-words" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-reserved-words", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-shorthand-properties/LICENSE b/node_modules/@babel/plugin-transform-shorthand-properties/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-shorthand-properties/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-shorthand-properties/README.md b/node_modules/@babel/plugin-transform-shorthand-properties/README.md new file mode 100644 index 0000000000000000000000000000000000000000..39f3429145014d07e3ac1c2241267ae46f1b12bd --- /dev/null +++ b/node_modules/@babel/plugin-transform-shorthand-properties/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-shorthand-properties + +> Compile ES2015 shorthand properties to ES5 + +See our website [@babel/plugin-transform-shorthand-properties](https://babeljs.io/docs/babel-plugin-transform-shorthand-properties) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-shorthand-properties +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-shorthand-properties --dev +``` diff --git a/node_modules/@babel/plugin-transform-shorthand-properties/lib/index.js b/node_modules/@babel/plugin-transform-shorthand-properties/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..4fe6ce2a83a62c5940891ecfd905b3c613282e6f --- /dev/null +++ b/node_modules/@babel/plugin-transform-shorthand-properties/lib/index.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-shorthand-properties", + visitor: { + ObjectMethod(path) { + const { + node + } = path; + if (node.kind === "method") { + const func = _core.types.functionExpression(null, node.params, node.body, node.generator, node.async); + func.returnType = node.returnType; + const computedKey = _core.types.toComputedKey(node); + if (_core.types.isStringLiteral(computedKey, { + value: "__proto__" + })) { + path.replaceWith(_core.types.objectProperty(computedKey, func, true)); + } else { + path.replaceWith(_core.types.objectProperty(node.key, func, node.computed)); + } + } + }, + ObjectProperty(path) { + const { + node + } = path; + if (node.shorthand) { + const computedKey = _core.types.toComputedKey(node); + if (_core.types.isStringLiteral(computedKey, { + value: "__proto__" + })) { + path.replaceWith(_core.types.objectProperty(computedKey, node.value, true)); + } else { + node.shorthand = false; + } + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-shorthand-properties/lib/index.js.map b/node_modules/@babel/plugin-transform-shorthand-properties/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..384bb27fd36412503d6842497e71a6c9b2ceda2a --- /dev/null +++ b/node_modules/@babel/plugin-transform-shorthand-properties/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","_default","exports","default","declare","api","assertVersion","name","visitor","ObjectMethod","path","node","kind","func","t","functionExpression","params","body","generator","async","returnType","computedKey","toComputedKey","isStringLiteral","value","replaceWith","objectProperty","key","computed","ObjectProperty","shorthand"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t } from \"@babel/core\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n return {\n name: \"transform-shorthand-properties\",\n\n visitor: {\n ObjectMethod(path) {\n const { node } = path;\n if (node.kind === \"method\") {\n const func = t.functionExpression(\n null,\n node.params,\n node.body,\n node.generator,\n node.async,\n );\n func.returnType = node.returnType;\n\n const computedKey = t.toComputedKey(node);\n if (t.isStringLiteral(computedKey, { value: \"__proto__\" })) {\n path.replaceWith(t.objectProperty(computedKey, func, true));\n } else {\n path.replaceWith(t.objectProperty(node.key, func, node.computed));\n }\n }\n },\n\n ObjectProperty(path) {\n const { node } = path;\n if (node.shorthand) {\n const computedKey = t.toComputedKey(node);\n if (t.isStringLiteral(computedKey, { value: \"__proto__\" })) {\n path.replaceWith(t.objectProperty(computedKey, node.value, true));\n } else {\n node.shorthand = false;\n }\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAyC,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE1B,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAkB,CAAE,CAAC;EAEtC,OAAO;IACLC,IAAI,EAAE,gCAAgC;IAEtCC,OAAO,EAAE;MACPC,YAAYA,CAACC,IAAI,EAAE;QACjB,MAAM;UAAEC;QAAK,CAAC,GAAGD,IAAI;QACrB,IAAIC,IAAI,CAACC,IAAI,KAAK,QAAQ,EAAE;UAC1B,MAAMC,IAAI,GAAGC,WAAC,CAACC,kBAAkB,CAC/B,IAAI,EACJJ,IAAI,CAACK,MAAM,EACXL,IAAI,CAACM,IAAI,EACTN,IAAI,CAACO,SAAS,EACdP,IAAI,CAACQ,KACP,CAAC;UACDN,IAAI,CAACO,UAAU,GAAGT,IAAI,CAACS,UAAU;UAEjC,MAAMC,WAAW,GAAGP,WAAC,CAACQ,aAAa,CAACX,IAAI,CAAC;UACzC,IAAIG,WAAC,CAACS,eAAe,CAACF,WAAW,EAAE;YAAEG,KAAK,EAAE;UAAY,CAAC,CAAC,EAAE;YAC1Dd,IAAI,CAACe,WAAW,CAACX,WAAC,CAACY,cAAc,CAACL,WAAW,EAAER,IAAI,EAAE,IAAI,CAAC,CAAC;UAC7D,CAAC,MAAM;YACLH,IAAI,CAACe,WAAW,CAACX,WAAC,CAACY,cAAc,CAACf,IAAI,CAACgB,GAAG,EAAEd,IAAI,EAAEF,IAAI,CAACiB,QAAQ,CAAC,CAAC;UACnE;QACF;MACF,CAAC;MAEDC,cAAcA,CAACnB,IAAI,EAAE;QACnB,MAAM;UAAEC;QAAK,CAAC,GAAGD,IAAI;QACrB,IAAIC,IAAI,CAACmB,SAAS,EAAE;UAClB,MAAMT,WAAW,GAAGP,WAAC,CAACQ,aAAa,CAACX,IAAI,CAAC;UACzC,IAAIG,WAAC,CAACS,eAAe,CAACF,WAAW,EAAE;YAAEG,KAAK,EAAE;UAAY,CAAC,CAAC,EAAE;YAC1Dd,IAAI,CAACe,WAAW,CAACX,WAAC,CAACY,cAAc,CAACL,WAAW,EAAEV,IAAI,CAACa,KAAK,EAAE,IAAI,CAAC,CAAC;UACnE,CAAC,MAAM;YACLb,IAAI,CAACmB,SAAS,GAAG,KAAK;UACxB;QACF;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-shorthand-properties/package.json b/node_modules/@babel/plugin-transform-shorthand-properties/package.json new file mode 100644 index 0000000000000000000000000000000000000000..640fe0fdbafad4a23e5be210b173a6f2636ea813 --- /dev/null +++ b/node_modules/@babel/plugin-transform-shorthand-properties/package.json @@ -0,0 +1,34 @@ +{ + "name": "@babel/plugin-transform-shorthand-properties", + "version": "7.29.7", + "description": "Compile ES2015 shorthand properties to ES5", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-shorthand-properties" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-shorthand-properties", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-spread/LICENSE b/node_modules/@babel/plugin-transform-spread/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-spread/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-spread/README.md b/node_modules/@babel/plugin-transform-spread/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c964617f19ec22b0678e2e1443c8b6b46b5785eb --- /dev/null +++ b/node_modules/@babel/plugin-transform-spread/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-spread + +> Compile ES2015 spread to ES5 + +See our website [@babel/plugin-transform-spread](https://babeljs.io/docs/babel-plugin-transform-spread) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-spread +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-spread --dev +``` diff --git a/node_modules/@babel/plugin-transform-spread/lib/index.js b/node_modules/@babel/plugin-transform-spread/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..c1d8aac567ed71404b4a10bf96ec468fed7e0248 --- /dev/null +++ b/node_modules/@babel/plugin-transform-spread/lib/index.js @@ -0,0 +1,167 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _helperSkipTransparentExpressionWrappers = require("@babel/helper-skip-transparent-expression-wrappers"); +var _core = require("@babel/core"); +var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _options$allowArrayLi; + api.assertVersion(7); + const iterableIsArray = (_api$assumption = api.assumption("iterableIsArray")) != null ? _api$assumption : options.loose; + const arrayLikeIsIterable = (_options$allowArrayLi = options.allowArrayLike) != null ? _options$allowArrayLi : api.assumption("arrayLikeIsIterable"); + function getSpreadLiteral(spread, scope) { + if (iterableIsArray && !_core.types.isIdentifier(spread.argument, { + name: "arguments" + })) { + return spread.argument; + } else { + const node = spread.argument; + if (_core.types.isIdentifier(node)) { + const binding = scope.getBinding(node.name); + if (binding != null && binding.constant && binding.path.isGenericType("Array")) { + return node; + } + } + if (_core.types.isArrayExpression(node)) { + return node; + } + if (_core.types.isIdentifier(node, { + name: "arguments" + })) { + return _core.template.expression.ast` + Array.prototype.slice.call(${node}) + `; + } + const args = [node]; + let helperName = "toConsumableArray"; + if (arrayLikeIsIterable) { + args.unshift(scope.path.hub.addHelper(helperName)); + helperName = "maybeArrayLike"; + } + return _core.types.callExpression(scope.path.hub.addHelper(helperName), args); + } + } + function hasHole(spread) { + return spread.elements.includes(null); + } + function hasSpread(nodes) { + for (let i = 0; i < nodes.length; i++) { + if (_core.types.isSpreadElement(nodes[i])) { + return true; + } + } + return false; + } + function push(_props, nodes) { + if (!_props.length) return _props; + nodes.push(_core.types.arrayExpression(_props)); + return []; + } + function build(props, scope, file) { + const nodes = []; + let _props = []; + for (const prop of props) { + if (_core.types.isSpreadElement(prop)) { + _props = push(_props, nodes); + let spreadLiteral = getSpreadLiteral(prop, scope); + if (_core.types.isArrayExpression(spreadLiteral) && hasHole(spreadLiteral)) { + spreadLiteral = _core.types.callExpression(file.addHelper("arrayWithoutHoles"), [spreadLiteral]); + } + nodes.push(spreadLiteral); + } else { + _props.push(prop); + } + } + push(_props, nodes); + return nodes; + } + return { + name: "transform-spread", + visitor: { + ArrayExpression(path) { + const { + node, + scope + } = path; + const elements = node.elements; + if (!hasSpread(elements)) return; + const nodes = build(elements, scope, this.file); + let first = nodes[0]; + if (nodes.length === 1 && first !== elements[0].argument) { + path.replaceWith(first); + return; + } + if (!_core.types.isArrayExpression(first)) { + first = _core.types.arrayExpression([]); + } else { + nodes.shift(); + } + path.replaceWith(_core.types.callExpression(_core.types.memberExpression(first, _core.types.identifier("concat")), nodes)); + }, + CallExpression(path) { + const { + node, + scope + } = path; + const args = node.arguments; + if (!hasSpread(args)) return; + const calleePath = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path.get("callee")); + if (calleePath.isSuper()) { + throw path.buildCodeFrameError("It's not possible to compile spread arguments in `super()` without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); + } + let contextLiteral = scope.buildUndefinedNode(); + node.arguments = []; + let nodes; + if (args.length === 1 && _core.types.isIdentifier(args[0].argument, { + name: "arguments" + })) { + nodes = [args[0].argument]; + } else { + nodes = build(args, scope, this.file); + } + const first = nodes.shift(); + if (nodes.length) { + node.arguments.push(_core.types.callExpression(_core.types.memberExpression(first, _core.types.identifier("concat")), nodes)); + } else { + node.arguments.push(first); + } + const callee = calleePath.node; + if (_core.types.isMemberExpression(callee)) { + const temp = scope.maybeGenerateMemoised(callee.object); + if (temp) { + callee.object = _core.types.assignmentExpression("=", temp, callee.object); + contextLiteral = temp; + } else { + contextLiteral = _core.types.cloneNode(callee.object); + } + } + node.callee = _core.types.memberExpression(node.callee, _core.types.identifier("apply")); + if (_core.types.isSuper(contextLiteral)) { + contextLiteral = _core.types.thisExpression(); + } + node.arguments.unshift(_core.types.cloneNode(contextLiteral)); + }, + NewExpression(path) { + const { + node, + scope + } = path; + if (!hasSpread(node.arguments)) return; + const nodes = build(node.arguments, scope, this.file); + const first = nodes.shift(); + let args; + if (nodes.length) { + args = _core.types.callExpression(_core.types.memberExpression(first, _core.types.identifier("concat")), nodes); + } else { + args = first; + } + path.replaceWith(_core.types.callExpression(path.hub.addHelper("construct"), [node.callee, args])); + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-spread/lib/index.js.map b/node_modules/@babel/plugin-transform-spread/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..a5a831485b61f618130db9248476b850fa996726 --- /dev/null +++ b/node_modules/@babel/plugin-transform-spread/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_helperSkipTransparentExpressionWrappers","_core","_default","exports","default","declare","api","options","_api$assumption","_options$allowArrayLi","assertVersion","iterableIsArray","assumption","loose","arrayLikeIsIterable","allowArrayLike","getSpreadLiteral","spread","scope","t","isIdentifier","argument","name","node","binding","getBinding","constant","path","isGenericType","isArrayExpression","template","expression","ast","args","helperName","unshift","hub","addHelper","callExpression","hasHole","elements","includes","hasSpread","nodes","i","length","isSpreadElement","push","_props","arrayExpression","build","props","file","prop","spreadLiteral","visitor","ArrayExpression","first","replaceWith","shift","memberExpression","identifier","CallExpression","arguments","calleePath","skipTransparentExprWrappers","get","isSuper","buildCodeFrameError","contextLiteral","buildUndefinedNode","callee","isMemberExpression","temp","maybeGenerateMemoised","object","assignmentExpression","cloneNode","thisExpression","NewExpression"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { skipTransparentExprWrappers } from \"@babel/helper-skip-transparent-expression-wrappers\";\nimport { types as t, template } from \"@babel/core\";\nimport type { File, NodePath, Scope } from \"@babel/core\";\n\ntype ListElement = t.SpreadElement | t.Expression;\n\nexport interface Options {\n allowArrayLike?: boolean;\n loose?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const iterableIsArray = api.assumption(\"iterableIsArray\") ?? options.loose;\n const arrayLikeIsIterable =\n options.allowArrayLike ?? api.assumption(\"arrayLikeIsIterable\");\n\n function getSpreadLiteral(\n spread: t.SpreadElement,\n scope: Scope,\n ): t.Expression {\n if (\n iterableIsArray &&\n !t.isIdentifier(spread.argument, { name: \"arguments\" })\n ) {\n return spread.argument;\n } else {\n const node = spread.argument;\n\n if (t.isIdentifier(node)) {\n const binding = scope.getBinding(node.name);\n if (binding?.constant && binding.path.isGenericType(\"Array\")) {\n return node;\n }\n }\n\n if (t.isArrayExpression(node)) {\n return node;\n }\n\n if (t.isIdentifier(node, { name: \"arguments\" })) {\n return template.expression.ast`\n Array.prototype.slice.call(${node})\n `;\n }\n\n const args = [node];\n let helperName = \"toConsumableArray\";\n\n if (arrayLikeIsIterable) {\n args.unshift(scope.path.hub.addHelper(helperName));\n helperName = \"maybeArrayLike\";\n }\n\n return t.callExpression(scope.path.hub.addHelper(helperName), args);\n }\n }\n\n function hasHole(spread: t.ArrayExpression): boolean {\n return spread.elements.includes(null);\n }\n\n function hasSpread(nodes: t.Node[]): boolean {\n for (let i = 0; i < nodes.length; i++) {\n if (t.isSpreadElement(nodes[i])) {\n return true;\n }\n }\n return false;\n }\n\n function push(_props: ListElement[], nodes: t.Expression[]) {\n if (!_props.length) return _props;\n nodes.push(t.arrayExpression(_props));\n return [];\n }\n\n function build(\n props: ListElement[],\n scope: Scope,\n file: File,\n ): t.Expression[] {\n const nodes: t.Expression[] = [];\n let _props: ListElement[] = [];\n\n for (const prop of props) {\n if (t.isSpreadElement(prop)) {\n _props = push(_props, nodes);\n let spreadLiteral = getSpreadLiteral(prop, scope);\n\n if (t.isArrayExpression(spreadLiteral) && hasHole(spreadLiteral)) {\n spreadLiteral = t.callExpression(\n file.addHelper(\n process.env.BABEL_8_BREAKING\n ? \"arrayLikeToArray\"\n : \"arrayWithoutHoles\",\n ),\n [spreadLiteral],\n );\n }\n\n nodes.push(spreadLiteral);\n } else {\n _props.push(prop);\n }\n }\n\n push(_props, nodes);\n\n return nodes;\n }\n\n return {\n name: \"transform-spread\",\n\n visitor: {\n ArrayExpression(path): void {\n const { node, scope } = path;\n const elements = node.elements;\n if (!hasSpread(elements)) return;\n\n const nodes = build(elements, scope, this.file);\n let first = nodes[0];\n\n // If there is only one element in the ArrayExpression and\n // the element was transformed (Array.prototype.slice.call or toConsumableArray)\n // we know that the transformed code already takes care of cloning the array.\n // So we can simply return that element.\n if (\n nodes.length === 1 &&\n first !== (elements[0] as t.SpreadElement).argument\n ) {\n path.replaceWith(first);\n return;\n }\n\n // If the first element is a ArrayExpression we can directly call\n // concat on it.\n // `[..].concat(..)`\n // If not then we have to use `[].concat(arr)` and not `arr.concat`\n // because `arr` could be extended/modified (e.g. Immutable) and we do not know exactly\n // what concat would produce.\n if (!t.isArrayExpression(first)) {\n first = t.arrayExpression([]);\n } else {\n nodes.shift();\n }\n\n path.replaceWith(\n t.callExpression(\n t.memberExpression(first, t.identifier(\"concat\")),\n nodes,\n ),\n );\n },\n CallExpression(path): void {\n const { node, scope } = path;\n\n const args = node.arguments as ListElement[];\n if (!hasSpread(args)) return;\n const calleePath = skipTransparentExprWrappers(\n path.get(\"callee\") as NodePath,\n );\n if (calleePath.isSuper()) {\n // NOTE: spread and classes have almost the same compat data, so this is very unlikely to happen in practice.\n throw path.buildCodeFrameError(\n \"It's not possible to compile spread arguments in `super()` without compiling classes.\\n\" +\n \"Please add '@babel/plugin-transform-classes' to your Babel configuration.\",\n );\n }\n let contextLiteral: t.Expression | t.Super = scope.buildUndefinedNode();\n node.arguments = [];\n\n let nodes: t.Expression[];\n if (\n args.length === 1 &&\n t.isIdentifier((args[0] as t.SpreadElement).argument, {\n name: \"arguments\",\n })\n ) {\n nodes = [(args[0] as t.SpreadElement).argument];\n } else {\n nodes = build(args, scope, this.file);\n }\n\n const first = nodes.shift();\n if (nodes.length) {\n node.arguments.push(\n t.callExpression(\n t.memberExpression(first, t.identifier(\"concat\")),\n nodes,\n ),\n );\n } else {\n node.arguments.push(first);\n }\n\n const callee = calleePath.node as t.MemberExpression;\n\n if (t.isMemberExpression(callee)) {\n const temp = scope.maybeGenerateMemoised(callee.object);\n if (temp) {\n callee.object = t.assignmentExpression(\n \"=\",\n temp,\n // object must not be Super when `temp` is an identifier\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n callee.object as t.Expression,\n );\n contextLiteral = temp;\n } else {\n contextLiteral = t.cloneNode(callee.object);\n }\n }\n\n // We use the original callee here, to preserve any types/parentheses\n node.callee = t.memberExpression(\n node.callee as t.Expression,\n t.identifier(\"apply\"),\n );\n if (t.isSuper(contextLiteral)) {\n contextLiteral = t.thisExpression();\n }\n\n node.arguments.unshift(t.cloneNode(contextLiteral));\n },\n\n NewExpression(path): void {\n const { node, scope } = path;\n if (!hasSpread(node.arguments)) return;\n\n const nodes = build(node.arguments as ListElement[], scope, this.file);\n\n const first = nodes.shift();\n\n let args: t.Expression;\n if (nodes.length) {\n args = t.callExpression(\n t.memberExpression(first, t.identifier(\"concat\")),\n nodes,\n );\n } else {\n args = first;\n }\n\n path.replaceWith(\n t.callExpression(path.hub.addHelper(\"construct\"), [\n node.callee,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EL;QAAM,CAAC,GAAGS,IAAI;QAC5B,IAAI,CAACe,SAAS,CAACnB,IAAI,CAACwC,SAAS,CAAC,EAAE;QAEhC,MAAMpB,KAAK,GAAGO,KAAK,CAAC3B,IAAI,CAACwC,SAAS,EAAmB7C,KAAK,EAAE,IAAI,CAACkC,IAAI,CAAC;QAEtE,MAAMK,KAAK,GAAGd,KAAK,CAACgB,KAAK,CAAC,CAAC;QAE3B,IAAI1B,IAAkB;QACtB,IAAIU,KAAK,CAACE,MAAM,EAAE;UAChBZ,IAAI,GAAGd,WAAC,CAACmB,cAAc,CACrBnB,WAAC,CAACyC,gBAAgB,CAACH,KAAK,EAAEtC,WAAC,CAAC0C,UAAU,CAAC,QAAQ,CAAC,CAAC,EACjDlB,KACF,CAAC;QACH,CAAC,MAAM;UACLV,IAAI,GAAGwB,KAAK;QACd;QAEA9B,IAAI,CAAC+B,WAAW,CACdvC,WAAC,CAACmB,cAAc,CAACX,IAAI,CAACS,GAAG,CAACC,SAAS,CAAC,WAAW,CAAC,EAAE,CAChDd,IAAI,CAACgD,MAAM,EACXtC,IAAI,CACL,CACH,CAAC;MACH;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-spread/package.json b/node_modules/@babel/plugin-transform-spread/package.json new file mode 100644 index 0000000000000000000000000000000000000000..2f413a3f783bdce88ee8731587613afe4607491d --- /dev/null +++ b/node_modules/@babel/plugin-transform-spread/package.json @@ -0,0 +1,35 @@ +{ + "name": "@babel/plugin-transform-spread", + "version": "7.29.8", + "description": "Compile ES2015 spread to ES5", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-spread" + }, + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-spread", + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-sticky-regex/LICENSE b/node_modules/@babel/plugin-transform-sticky-regex/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-sticky-regex/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-sticky-regex/README.md b/node_modules/@babel/plugin-transform-sticky-regex/README.md new file mode 100644 index 0000000000000000000000000000000000000000..16c9fe295f4ee1771faae8f410c5676b9541417a --- /dev/null +++ b/node_modules/@babel/plugin-transform-sticky-regex/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-sticky-regex + +> Compile ES2015 sticky regex to an ES5 RegExp constructor + +See our website [@babel/plugin-transform-sticky-regex](https://babeljs.io/docs/babel-plugin-transform-sticky-regex) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-sticky-regex +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-sticky-regex --dev +``` diff --git a/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js b/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..c5b723482b0bb7060b52ffe2af37118a75127cc3 --- /dev/null +++ b/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js @@ -0,0 +1,25 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-sticky-regex", + visitor: { + RegExpLiteral(path) { + const { + node + } = path; + if (!node.flags.includes("y")) return; + path.replaceWith(_core.types.newExpression(_core.types.identifier("RegExp"), [_core.types.stringLiteral(node.pattern), _core.types.stringLiteral(node.flags)])); + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js.map b/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..7ed66de7111b3b4edf29a37e7703c04cb3de9d75 --- /dev/null +++ b/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","_default","exports","default","declare","api","assertVersion","name","visitor","RegExpLiteral","path","node","flags","includes","replaceWith","t","newExpression","identifier","stringLiteral","pattern"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t } from \"@babel/core\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n return {\n name: \"transform-sticky-regex\",\n\n visitor: {\n RegExpLiteral(path) {\n const { node } = path;\n if (!node.flags.includes(\"y\")) return;\n\n path.replaceWith(\n t.newExpression(t.identifier(\"RegExp\"), [\n t.stringLiteral(node.pattern),\n t.stringLiteral(node.flags),\n ]),\n );\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAyC,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE1B,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAkB,CAAE,CAAC;EAEtC,OAAO;IACLC,IAAI,EAAE,wBAAwB;IAE9BC,OAAO,EAAE;MACPC,aAAaA,CAACC,IAAI,EAAE;QAClB,MAAM;UAAEC;QAAK,CAAC,GAAGD,IAAI;QACrB,IAAI,CAACC,IAAI,CAACC,KAAK,CAACC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAE/BH,IAAI,CAACI,WAAW,CACdC,WAAC,CAACC,aAAa,CAACD,WAAC,CAACE,UAAU,CAAC,QAAQ,CAAC,EAAE,CACtCF,WAAC,CAACG,aAAa,CAACP,IAAI,CAACQ,OAAO,CAAC,EAC7BJ,WAAC,CAACG,aAAa,CAACP,IAAI,CAACC,KAAK,CAAC,CAC5B,CACH,CAAC;MACH;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-sticky-regex/package.json b/node_modules/@babel/plugin-transform-sticky-regex/package.json new file mode 100644 index 0000000000000000000000000000000000000000..90c4ca764ee8a6fd6bc128ec00baf7afce0a090c --- /dev/null +++ b/node_modules/@babel/plugin-transform-sticky-regex/package.json @@ -0,0 +1,34 @@ +{ + "name": "@babel/plugin-transform-sticky-regex", + "version": "7.29.7", + "description": "Compile ES2015 sticky regex to an ES5 RegExp constructor", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-sticky-regex" + }, + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-sticky-regex", + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-template-literals/LICENSE b/node_modules/@babel/plugin-transform-template-literals/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-template-literals/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-template-literals/README.md b/node_modules/@babel/plugin-transform-template-literals/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c4441a160bf03befda811b0156c4767f07812056 --- /dev/null +++ b/node_modules/@babel/plugin-transform-template-literals/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-template-literals + +> Compile ES2015 template literals to ES5 + +See our website [@babel/plugin-transform-template-literals](https://babeljs.io/docs/babel-plugin-transform-template-literals) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-template-literals +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-template-literals --dev +``` diff --git a/node_modules/@babel/plugin-transform-template-literals/lib/index.js b/node_modules/@babel/plugin-transform-template-literals/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..62d05a0de003e7773e57cd64f5763f5d2de84171 --- /dev/null +++ b/node_modules/@babel/plugin-transform-template-literals/lib/index.js @@ -0,0 +1,108 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2; + api.assertVersion(7); + const ignoreToPrimitiveHint = (_api$assumption = api.assumption("ignoreToPrimitiveHint")) != null ? _api$assumption : options.loose; + const mutableTemplateObject = (_api$assumption2 = api.assumption("mutableTemplateObject")) != null ? _api$assumption2 : options.loose; + let helperName = "taggedTemplateLiteral"; + if (mutableTemplateObject) helperName += "Loose"; + function buildConcatCallExpressions(items) { + let avail = true; + return items.reduce(function (left, right) { + let canBeInserted = _core.types.isLiteral(right); + if (!canBeInserted && avail) { + canBeInserted = true; + avail = false; + } + if (canBeInserted && _core.types.isCallExpression(left)) { + left.arguments.push(right); + return left; + } + return _core.types.callExpression(_core.types.memberExpression(left, _core.types.identifier("concat")), [right]); + }); + } + return { + name: "transform-template-literals", + visitor: { + TaggedTemplateExpression(path) { + const { + node + } = path; + const { + quasi + } = node; + const strings = []; + const raws = []; + let isStringsRawEqual = true; + for (const elem of quasi.quasis) { + const { + raw, + cooked + } = elem.value; + const value = cooked == null ? path.scope.buildUndefinedNode() : _core.types.stringLiteral(cooked); + strings.push(value); + raws.push(_core.types.stringLiteral(raw)); + if (raw !== cooked) { + isStringsRawEqual = false; + } + } + const helperArgs = [_core.types.arrayExpression(strings)]; + if (!isStringsRawEqual) { + helperArgs.push(_core.types.arrayExpression(raws)); + } + const tmp = path.scope.generateUidIdentifier("templateObject"); + path.scope.getProgramParent().push({ + id: _core.types.cloneNode(tmp) + }); + path.replaceWith(_core.types.callExpression(node.tag, [_core.template.expression.ast` + ${_core.types.cloneNode(tmp)} || ( + ${tmp} = ${this.addHelper(helperName)}(${helperArgs}) + ) + `, ...quasi.expressions])); + }, + TemplateLiteral(path) { + if (path.parent.type === "TSLiteralType") { + return; + } + const nodes = []; + const expressions = path.get("expressions"); + let index = 0; + for (const elem of path.node.quasis) { + if (elem.value.cooked) { + nodes.push(_core.types.stringLiteral(elem.value.cooked)); + } + if (index < expressions.length) { + const expr = expressions[index++]; + const node = expr.node; + if (!_core.types.isStringLiteral(node, { + value: "" + })) { + nodes.push(node); + } + } + } + if (!_core.types.isStringLiteral(nodes[0]) && !(ignoreToPrimitiveHint && _core.types.isStringLiteral(nodes[1]))) { + nodes.unshift(_core.types.stringLiteral("")); + } + let root = nodes[0]; + if (ignoreToPrimitiveHint) { + for (let i = 1; i < nodes.length; i++) { + root = _core.types.binaryExpression("+", root, nodes[i]); + } + } else if (nodes.length > 1) { + root = buildConcatCallExpressions(nodes); + } + path.replaceWith(root); + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-template-literals/lib/index.js.map b/node_modules/@babel/plugin-transform-template-literals/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..b1cce20017a507a294ae2aeead5a98f69f7f5c35 --- /dev/null +++ b/node_modules/@babel/plugin-transform-template-literals/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","_default","exports","default","declare","api","options","_api$assumption","_api$assumption2","assertVersion","ignoreToPrimitiveHint","assumption","loose","mutableTemplateObject","helperName","buildConcatCallExpressions","items","avail","reduce","left","right","canBeInserted","t","isLiteral","isCallExpression","arguments","push","callExpression","memberExpression","identifier","name","visitor","TaggedTemplateExpression","path","node","quasi","strings","raws","isStringsRawEqual","elem","quasis","raw","cooked","value","scope","buildUndefinedNode","stringLiteral","helperArgs","arrayExpression","tmp","generateUidIdentifier","getProgramParent","id","cloneNode","replaceWith","tag","template","expression","ast","addHelper","expressions","TemplateLiteral","parent","type","nodes","get","index","length","expr","isStringLiteral","unshift","root","i","binaryExpression"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { template, types as t, type NodePath } from \"@babel/core\";\n\nexport interface Options {\n loose?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const ignoreToPrimitiveHint =\n api.assumption(\"ignoreToPrimitiveHint\") ?? options.loose;\n const mutableTemplateObject =\n api.assumption(\"mutableTemplateObject\") ?? options.loose;\n\n let helperName = \"taggedTemplateLiteral\";\n if (mutableTemplateObject) helperName += \"Loose\";\n\n /**\n * This function groups the objects into multiple calls to `.concat()` in\n * order to preserve execution order of the primitive conversion, e.g.\n *\n * \"\".concat(obj.foo, \"foo\", obj2.foo, \"foo2\")\n *\n * would evaluate both member expressions _first_ then, `concat` will\n * convert each one to a primitive, whereas\n *\n * \"\".concat(obj.foo, \"foo\").concat(obj2.foo, \"foo2\")\n *\n * would evaluate the member, then convert it to a primitive, then evaluate\n * the second member and convert that one, which reflects the spec behavior\n * of template literals.\n */\n function buildConcatCallExpressions(items: t.Expression[]): t.CallExpression {\n let avail = true;\n // @ts-expect-error items must not be empty\n return items.reduce(function (left, right) {\n let canBeInserted = t.isLiteral(right);\n\n if (!canBeInserted && avail) {\n canBeInserted = true;\n avail = false;\n }\n if (canBeInserted && t.isCallExpression(left)) {\n left.arguments.push(right);\n return left;\n }\n return t.callExpression(\n t.memberExpression(left, t.identifier(\"concat\")),\n [right],\n );\n });\n }\n\n return {\n name: \"transform-template-literals\",\n\n visitor: {\n TaggedTemplateExpression(path) {\n const { node } = path;\n const { quasi } = node;\n\n const strings = [];\n const raws = [];\n\n // Flag variable to check if contents of strings and raw are equal\n let isStringsRawEqual = true;\n\n for (const elem of quasi.quasis) {\n const { raw, cooked } = elem.value;\n const value =\n cooked == null\n ? path.scope.buildUndefinedNode()\n : t.stringLiteral(cooked);\n\n strings.push(value);\n raws.push(t.stringLiteral(raw));\n\n if (raw !== cooked) {\n // false even if one of raw and cooked are not equal\n isStringsRawEqual = false;\n }\n }\n\n const helperArgs = [t.arrayExpression(strings)];\n // only add raw arrayExpression if there is any difference between raws and strings\n if (!isStringsRawEqual) {\n helperArgs.push(t.arrayExpression(raws));\n }\n\n const tmp = path.scope.generateUidIdentifier(\"templateObject\");\n path.scope.getProgramParent().push({ id: t.cloneNode(tmp) });\n\n path.replaceWith(\n t.callExpression(node.tag, [\n template.expression.ast`\n ${t.cloneNode(tmp)} || (\n ${tmp} = ${this.addHelper(helperName)}(${helperArgs})\n )\n `,\n // @ts-expect-error Fixme: quasi.expressions may contain TSAnyKeyword\n ...quasi.expressions,\n ]),\n );\n },\n\n TemplateLiteral(path) {\n if (path.parent.type === \"TSLiteralType\") {\n // Skip TemplateLiteral in TSLiteralType\n return;\n }\n const nodes: t.Expression[] = [];\n const expressions = path.get(\"expressions\") as NodePath[];\n\n let index = 0;\n for (const elem of path.node.quasis) {\n if (elem.value.cooked) {\n nodes.push(t.stringLiteral(elem.value.cooked));\n }\n\n if (index < expressions.length) {\n const expr = expressions[index++];\n const node = expr.node;\n if (!t.isStringLiteral(node, { value: \"\" })) {\n nodes.push(node);\n }\n }\n }\n\n // since `+` is left-to-right associative\n // ensure the first node is a string if first/second isn't\n if (\n !t.isStringLiteral(nodes[0]) &&\n !(ignoreToPrimitiveHint && t.isStringLiteral(nodes[1]))\n ) {\n nodes.unshift(t.stringLiteral(\"\"));\n }\n let root = nodes[0];\n\n if (ignoreToPrimitiveHint) {\n for (let i = 1; i < nodes.length; i++) {\n root = t.binaryExpression(\"+\", root, nodes[i]);\n }\n } else if (nodes.length > 1) {\n root = buildConcatCallExpressions(nodes);\n }\n\n path.replaceWith(root);\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAkE,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMnD,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAEC,OAAgB,KAAK;EAAA,IAAAC,eAAA,EAAAC,gBAAA;EAChDH,GAAG,CAACI,aAAa,CAAkB,CAAE,CAAC;EAEtC,MAAMC,qBAAqB,IAAAH,eAAA,GACzBF,GAAG,CAACM,UAAU,CAAC,uBAAuB,CAAC,YAAAJ,eAAA,GAAID,OAAO,CAACM,KAAK;EAC1D,MAAMC,qBAAqB,IAAAL,gBAAA,GACzBH,GAAG,CAACM,UAAU,CAAC,uBAAuB,CAAC,YAAAH,gBAAA,GAAIF,OAAO,CAACM,KAAK;EAE1D,IAAIE,UAAU,GAAG,uBAAuB;EACxC,IAAID,qBAAqB,EAAEC,UAAU,IAAI,OAAO;EAiBhD,SAASC,0BAA0BA,CAACC,KAAqB,EAAoB;IAC3E,IAAIC,KAAK,GAAG,IAAI;IAEhB,OAAOD,KAAK,CAACE,MAAM,CAAC,UAAUC,IAAI,EAAEC,KAAK,EAAE;MACzC,IAAIC,aAAa,GAAGC,WAAC,CAACC,SAAS,CAACH,KAAK,CAAC;MAEtC,IAAI,CAACC,aAAa,IAAIJ,KAAK,EAAE;QAC3BI,aAAa,GAAG,IAAI;QACpBJ,KAAK,GAAG,KAAK;MACf;MACA,IAAII,aAAa,IAAIC,WA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AC+C,eAAe,CAACnC,IAAI,EAAE;cAAES,KAAK,EAAE;YAAG,CAAC,CAAC,EAAE;cAC3CqB,KAAK,CAACtC,IAAI,CAACQ,IAAI,CAAC;YAClB;UACF;QACF;QAIA,IACE,CAACZ,WAAC,CAAC+C,eAAe,CAACL,KAAK,CAAC,CAAC,CAAC,CAAC,IAC5B,EAAEtD,qBAAqB,IAAIY,WAAC,CAAC+C,eAAe,CAACL,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EACvD;UACAA,KAAK,CAACM,OAAO,CAAChD,WAAC,CAACwB,aAAa,CAAC,EAAE,CAAC,CAAC;QACpC;QACA,IAAIyB,IAAI,GAAGP,KAAK,CAAC,CAAC,CAAC;QAEnB,IAAItD,qBAAqB,EAAE;UACzB,KAAK,IAAI8D,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGR,KAAK,CAACG,MAAM,EAAEK,CAAC,EAAE,EAAE;YACrCD,IAAI,GAAGjD,WAAC,CAACmD,gBAAgB,CAAC,GAAG,EAAEF,IAAI,EAAEP,KAAK,CAACQ,CAAC,CAAC,CAAC;UAChD;QACF,CAAC,MAAM,IAAIR,KAAK,CAACG,MAAM,GAAG,CAAC,EAAE;UAC3BI,IAAI,GAAGxD,0BAA0B,CAACiD,KAAK,CAAC;QAC1C;QAEA/B,IAAI,CAACqB,WAAW,CAACiB,IAAI,CAAC;MACxB;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-template-literals/package.json b/node_modules/@babel/plugin-transform-template-literals/package.json new file mode 100644 index 0000000000000000000000000000000000000000..8b0e2375569a87aa54b924e0b622b26452a1039a --- /dev/null +++ b/node_modules/@babel/plugin-transform-template-literals/package.json @@ -0,0 +1,34 @@ +{ + "name": "@babel/plugin-transform-template-literals", + "version": "7.29.7", + "description": "Compile ES2015 template literals to ES5", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-template-literals" + }, + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "keywords": [ + "babel-plugin" + ], + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-template-literals", + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-typeof-symbol/LICENSE b/node_modules/@babel/plugin-transform-typeof-symbol/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-typeof-symbol/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-typeof-symbol/README.md b/node_modules/@babel/plugin-transform-typeof-symbol/README.md new file mode 100644 index 0000000000000000000000000000000000000000..60eb36aa75cd5e5437b0b4c8d7d804ea441a4453 --- /dev/null +++ b/node_modules/@babel/plugin-transform-typeof-symbol/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-typeof-symbol + +> This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols) + +See our website [@babel/plugin-transform-typeof-symbol](https://babeljs.io/docs/babel-plugin-transform-typeof-symbol) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-typeof-symbol +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-typeof-symbol --dev +``` diff --git a/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js b/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..b81b07bb3f7e4eca00a0dbe1efcf704eaa907f7b --- /dev/null +++ b/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js @@ -0,0 +1,61 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-typeof-symbol", + visitor: { + Scope({ + scope + }) { + if (!scope.getBinding("Symbol")) { + return; + } + scope.rename("Symbol"); + }, + UnaryExpression(path) { + const { + node, + parent + } = path; + if (node.operator !== "typeof") return; + if (path.parentPath.isBinaryExpression() && _core.types.EQUALITY_BINARY_OPERATORS.includes(parent.operator)) { + const opposite = path.getOpposite(); + if (opposite.isStringLiteral() && opposite.node.value !== "symbol" && opposite.node.value !== "object") { + return; + } + } + let isUnderHelper = path.findParent(path => { + if (path.isFunctionDeclaration()) { + var _path$get; + return ((_path$get = path.get("body.directives.0")) == null ? void 0 : _path$get.node.value.value) === "@babel/helpers - typeof"; + } + }); + if (isUnderHelper) return; + const helper = this.addHelper("typeof"); + isUnderHelper = path.findParent(path => { + return path.isVariableDeclarator() && path.node.id === helper || path.isFunctionDeclaration() && path.node.id && path.node.id.name === helper.name; + }); + if (isUnderHelper) { + return; + } + const call = _core.types.callExpression(helper, [node.argument]); + const arg = path.get("argument"); + if (arg.isIdentifier() && !path.scope.hasBinding(arg.node.name, true)) { + const unary = _core.types.unaryExpression("typeof", _core.types.cloneNode(node.argument)); + path.replaceWith(_core.types.conditionalExpression(_core.types.binaryExpression("===", unary, _core.types.stringLiteral("undefined")), _core.types.stringLiteral("undefined"), call)); + } else { + path.replaceWith(call); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js.map b/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..188735d9e0b5a92f6967c8f8d19c1fa64897d9cd --- /dev/null +++ b/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","_default","exports","default","declare","api","assertVersion","name","visitor","Scope","scope","getBinding","rename","UnaryExpression","path","node","parent","operator","parentPath","isBinaryExpression","t","EQUALITY_BINARY_OPERATORS","includes","opposite","getOpposite","isStringLiteral","value","isUnderHelper","findParent","isFunctionDeclaration","_path$get","get","helper","addHelper","isVariableDeclarator","id","call","callExpression","argument","arg","isIdentifier","hasBinding","unary","unaryExpression","cloneNode","replaceWith","conditionalExpression","binaryExpression","stringLiteral"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t } from \"@babel/core\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n return {\n name: \"transform-typeof-symbol\",\n\n visitor: {\n Scope({ scope }) {\n if (!scope.getBinding(\"Symbol\")) {\n return;\n }\n\n scope.rename(\"Symbol\");\n },\n\n UnaryExpression(path) {\n const { node, parent } = path;\n if (node.operator !== \"typeof\") return;\n\n if (\n path.parentPath.isBinaryExpression() &&\n t.EQUALITY_BINARY_OPERATORS.includes(\n (parent as t.BinaryExpression).operator,\n )\n ) {\n // optimise `typeof foo === \"string\"` since we can determine that they'll never\n // need to handle symbols\n const opposite = path.getOpposite();\n if (\n opposite.isStringLiteral() &&\n opposite.node.value !== \"symbol\" &&\n opposite.node.value !== \"object\"\n ) {\n return;\n }\n }\n\n let isUnderHelper = path.findParent(path => {\n if (path.isFunctionDeclaration()) {\n return (\n path.get(\"body.directives.0\")?.node.value.value ===\n \"@babel/helpers - typeof\"\n );\n }\n });\n\n if (isUnderHelper) return;\n\n const helper = this.addHelper(\"typeof\");\n\n // This is needed for backward compatibility with\n // @babel/helpers <= 7.8.3.\n if (!process.env.BABEL_8_BREAKING) {\n isUnderHelper = path.findParent(path => {\n return (\n (path.isVariableDeclarator() && path.node.id === helper) ||\n (path.isFunctionDeclaration() &&\n path.node.id &&\n path.node.id.name === helper.name)\n );\n });\n\n if (isUnderHelper) {\n return;\n }\n }\n\n const call = t.callExpression(helper, [node.argument]);\n const arg = path.get(\"argument\");\n if (arg.isIdentifier() && !path.scope.hasBinding(arg.node.name, true)) {\n const unary = t.unaryExpression(\"typeof\", t.cloneNode(node.argument));\n path.replaceWith(\n t.conditionalExpression(\n t.binaryExpression(\"===\", unary, t.stringLiteral(\"undefined\")),\n t.stringLiteral(\"undefined\"),\n call,\n ),\n );\n } else {\n path.replaceWith(call);\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAyC,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE1B,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAkB,CAAE,CAAC;EAEtC,OAAO;IACLC,IAAI,EAAE,yBAAyB;IAE/BC,OAAO,EAAE;MACPC,KAAKA,CAAC;QAAEC;MAAM,CAAC,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3Bf,IAAI,CAACC,IAAI,CAACoB,EAAE,IACZrB,IAAI,CAACC,IAAI,CAACoB,EAAE,CAAC5B,IAAI,KAAKyB,MAAM,CAACzB,IAAK;QAExC,CAAC,CAAC;QAEF,IAAIoB,aAAa,EAAE;UACjB;QACF;QAGF,MAAMS,IAAI,GAAGhB,WAAC,CAACiB,cAAc,CAACL,MAAM,EAAE,CAACjB,IAAI,CAACuB,QAAQ,CAAC,CAAC;QACtD,MAAMC,GAAG,GAAGzB,IAAI,CAACiB,GAAG,CAAC,UAAU,CAAC;QAChC,IAAIQ,GAAG,CAACC,YAAY,CAAC,CAAC,IAAI,CAAC1B,IAAI,CAACJ,KAAK,CAAC+B,UAAU,CAACF,GAAG,CAACxB,IAAI,CAACR,IAAI,EAAE,IAAI,CAAC,EAAE;UACrE,MAAMmC,KAAK,GAAGtB,WAAC,CAACuB,eAAe,CAAC,QAAQ,EAAEvB,WAAC,CAACwB,SAAS,CAAC7B,IAAI,CAACuB,QAAQ,CAAC,CAAC;UACrExB,IAAI,CAAC+B,WAAW,CACdzB,WAAC,CAAC0B,qBAAqB,CACrB1B,WAAC,CAAC2B,gBAAgB,CAAC,KAAK,EAAEL,KAAK,EAAEtB,WAAC,CAAC4B,aAAa,CAAC,WAAW,CAAC,CAAC,EAC9D5B,WAAC,CAAC4B,aAAa,CAAC,WAAW,CAAC,EAC5BZ,IACF,CACF,CAAC;QACH,CAAC,MAAM;UACLtB,IAAI,CAAC+B,WAAW,CAACT,IAAI,CAAC;QACxB;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-typeof-symbol/package.json b/node_modules/@babel/plugin-transform-typeof-symbol/package.json new file mode 100644 index 0000000000000000000000000000000000000000..313f44391aba164f5bf8f58e11e7b1c2cd54a479 --- /dev/null +++ b/node_modules/@babel/plugin-transform-typeof-symbol/package.json @@ -0,0 +1,37 @@ +{ + "name": "@babel/plugin-transform-typeof-symbol", + "version": "7.29.7", + "description": "This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-typeof-symbol" + }, + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/runtime": "^7.29.7", + "@babel/runtime-corejs2": "^7.24.0", + "@babel/runtime-corejs3": "^7.29.7" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-typeof-symbol", + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-unicode-escapes/LICENSE b/node_modules/@babel/plugin-transform-unicode-escapes/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-escapes/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-unicode-escapes/README.md b/node_modules/@babel/plugin-transform-unicode-escapes/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5bfb07296cf55c4359d5811e73acabf10db0914a --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-escapes/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-unicode-escapes + +> Compile ES2015 Unicode escapes to ES5 + +See our website [@babel/plugin-transform-unicode-escapes](https://babeljs.io/docs/babel-plugin-transform-unicode-escapes) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-unicode-escapes +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-unicode-escapes --dev +``` diff --git a/node_modules/@babel/plugin-transform-unicode-escapes/lib/index.js b/node_modules/@babel/plugin-transform-unicode-escapes/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..04013552067ea3f47dd0f7f907fbea7acc644020 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-escapes/lib/index.js @@ -0,0 +1,116 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _core = require("@babel/core"); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + const surrogate = /[\ud800-\udfff]/g; + const unicodeEscape = /(\\+)u\{([0-9a-fA-F]+)\}/g; + function escape(code) { + let str = code.toString(16); + while (str.length < 4) str = "0" + str; + return "\\u" + str; + } + function replacer(match, backslashes, code) { + if (backslashes.length % 2 === 0) { + return match; + } + const char = String.fromCodePoint(parseInt(code, 16)); + const escaped = backslashes.slice(0, -1) + escape(char.charCodeAt(0)); + return char.length === 1 ? escaped : escaped + escape(char.charCodeAt(1)); + } + function replaceUnicodeEscapes(str) { + return str.replace(unicodeEscape, replacer); + } + function getUnicodeEscape(str) { + let match; + while (match = unicodeEscape.exec(str)) { + if (match[1].length % 2 === 0) continue; + unicodeEscape.lastIndex = 0; + return match[0]; + } + return null; + } + return { + name: "transform-unicode-escapes", + manipulateOptions({ + generatorOpts + }) { + var _generatorOpts$jsescO, _generatorOpts$jsescO2; + if (!generatorOpts.jsescOption) { + generatorOpts.jsescOption = {}; + } + (_generatorOpts$jsescO2 = (_generatorOpts$jsescO = generatorOpts.jsescOption).minimal) != null ? _generatorOpts$jsescO2 : _generatorOpts$jsescO.minimal = false; + }, + visitor: { + Identifier(path) { + const { + node, + key + } = path; + const { + name + } = node; + const replaced = name.replace(surrogate, c => { + return `_u${c.charCodeAt(0).toString(16)}`; + }); + if (name === replaced) return; + const str = _core.types.inherits(_core.types.stringLiteral(name), node); + if (key === "key") { + path.replaceWith(str); + return; + } + const { + parentPath, + scope + } = path; + if (parentPath.isMemberExpression({ + property: node + }) || parentPath.isOptionalMemberExpression({ + property: node + })) { + parentPath.node.computed = true; + path.replaceWith(str); + return; + } + const binding = scope.getBinding(name); + if (binding) { + scope.rename(name, scope.generateUid(replaced)); + return; + } + throw path.buildCodeFrameError(`Can't reference '${name}' as a bare identifier`); + }, + "StringLiteral|DirectiveLiteral"(path) { + const { + node + } = path; + const { + extra + } = node; + if (extra != null && extra.raw) extra.raw = replaceUnicodeEscapes(extra.raw); + }, + TemplateElement(path) { + const { + node, + parentPath + } = path; + const { + value + } = node; + const firstEscape = getUnicodeEscape(value.raw); + if (!firstEscape) return; + const grandParent = parentPath.parentPath; + if (grandParent.isTaggedTemplateExpression()) { + throw path.buildCodeFrameError(`Can't replace Unicode escape '${firstEscape}' inside tagged template literals. You can enable '@babel/plugin-transform-template-literals' to compile them to classic strings.`); + } + value.raw = replaceUnicodeEscapes(value.raw); + } + } + }; +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-unicode-escapes/lib/index.js.map b/node_modules/@babel/plugin-transform-unicode-escapes/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..6143b45f1ce7d342eb6d3476383b397b7eff25bf --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-escapes/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_core","_default","exports","default","declare","api","assertVersion","surrogate","unicodeEscape","escape","code","str","toString","length","replacer","match","backslashes","char","String","fromCodePoint","parseInt","escaped","slice","charCodeAt","replaceUnicodeEscapes","replace","getUnicodeEscape","exec","lastIndex","name","manipulateOptions","generatorOpts","_generatorOpts$jsescO","_generatorOpts$jsescO2","jsescOption","minimal","visitor","Identifier","path","node","key","replaced","c","t","inherits","stringLiteral","replaceWith","parentPath","scope","isMemberExpression","property","isOptionalMemberExpression","computed","binding","getBinding","rename","generateUid","buildCodeFrameError","StringLiteral|DirectiveLiteral","extra","raw","TemplateElement","value","firstEscape","grandParent","isTaggedTemplateExpression"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t, type NodePath } from \"@babel/core\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const surrogate = /[\\ud800-\\udfff]/g;\n const unicodeEscape = /(\\\\+)u\\{([0-9a-fA-F]+)\\}/g;\n\n function escape(code: number) {\n if (process.env.BABEL_8_BREAKING) {\n return \"\\\\u\" + code.toString(16).padStart(4, \"0\");\n } else {\n let str = code.toString(16);\n while (str.length < 4) str = \"0\" + str;\n return \"\\\\u\" + str;\n }\n }\n\n function replacer(match: string, backslashes: string, code: string) {\n if (backslashes.length % 2 === 0) {\n return match;\n }\n\n const char = String.fromCodePoint(parseInt(code, 16));\n const escaped = backslashes.slice(0, -1) + escape(char.charCodeAt(0));\n\n return char.length === 1 ? escaped : escaped + escape(char.charCodeAt(1));\n }\n\n function replaceUnicodeEscapes(str: string) {\n return str.replace(unicodeEscape, replacer);\n }\n\n function getUnicodeEscape(str: string) {\n let match;\n while ((match = unicodeEscape.exec(str))) {\n if (match[1].length % 2 === 0) continue;\n unicodeEscape.lastIndex = 0;\n return match[0];\n }\n return null;\n }\n\n return {\n name: \"transform-unicode-escapes\",\n manipulateOptions({ generatorOpts }) {\n // Babel 8 will enable jsesc minimal mode by default, which outputs\n // unescaped unicode string\n if (!generatorOpts.jsescOption) {\n generatorOpts.jsescOption = {};\n }\n generatorOpts.jsescOption.minimal ??= false;\n },\n visitor: {\n Identifier(path) {\n const { node, key } = path;\n const { name } = node;\n const replaced = name.replace(surrogate, c => {\n return `_u${c.charCodeAt(0).toString(16)}`;\n });\n if (name === replaced) return;\n\n const str = t.inherits(t.stringLiteral(name), node);\n\n if (key === \"key\") {\n path.replaceWith(str);\n return;\n }\n\n const { parentPath, scope } = path;\n if (\n parentPath.isMemberExpression({ property: node }) ||\n parentPath.isOptionalMemberExpression({ property: node })\n ) {\n parentPath.node.computed = true;\n path.replaceWith(str);\n return;\n }\n\n const binding = scope.getBinding(name);\n if (binding) {\n scope.rename(name, scope.generateUid(replaced));\n return;\n }\n\n throw path.buildCodeFrameError(\n `Can't reference '${name}' as a bare identifier`,\n );\n },\n\n \"StringLiteral|DirectiveLiteral\"(\n path: NodePath,\n ) {\n const { node } = path;\n const { extra } = node;\n\n if (extra?.raw) extra.raw = replaceUnicodeEscapes(extra.raw as string);\n },\n\n TemplateElement(path) {\n const { node, parentPath } = path;\n const { value } = node;\n\n const firstEscape = getUnicodeEscape(value.raw);\n if (!firstEscape) return;\n\n const grandParent = parentPath.parentPath;\n if (grandParent.isTaggedTemplateExpression()) {\n throw path.buildCodeFrameError(\n `Can't replace Unicode escape '${firstEscape}' inside tagged template literals. You can enable '@babel/plugin-transform-template-literals' to compile them to classic strings.`,\n );\n }\n\n value.raw = replaceUnicodeEscapes(value.raw);\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IA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AAG,CAAC;MAC9C;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-unicode-escapes/package.json b/node_modules/@babel/plugin-transform-unicode-escapes/package.json new file mode 100644 index 0000000000000000000000000000000000000000..fd34a14cd004991d477bf8d5d03196e6785c69f5 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-escapes/package.json @@ -0,0 +1,34 @@ +{ + "name": "@babel/plugin-transform-unicode-escapes", + "version": "7.29.7", + "description": "Compile ES2015 Unicode escapes to ES5", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-unicode-escapes" + }, + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-unicode-escapes", + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-unicode-property-regex/LICENSE b/node_modules/@babel/plugin-transform-unicode-property-regex/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-property-regex/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-unicode-property-regex/README.md b/node_modules/@babel/plugin-transform-unicode-property-regex/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5f4b4149c7e9a9c6e9dad86c9e56cf0d4db5ae7a --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-property-regex/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-unicode-property-regex + +> Compile Unicode property escapes in Unicode regular expressions to ES5. + +See our website [@babel/plugin-transform-unicode-property-regex](https://babeljs.io/docs/babel-plugin-transform-unicode-property-regex) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-unicode-property-regex +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-unicode-property-regex --dev +``` diff --git a/node_modules/@babel/plugin-transform-unicode-property-regex/lib/index.js b/node_modules/@babel/plugin-transform-unicode-property-regex/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..207a657ad3e5082c61c255bd4da327ca28c3f2a5 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-property-regex/lib/index.js @@ -0,0 +1,26 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin"); +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion("^7.0.0-0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta"); + const { + useUnicodeFlag = true + } = options; + if (typeof useUnicodeFlag !== "boolean") { + throw new Error(".useUnicodeFlag must be a boolean, or undefined"); + } + return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ + name: "transform-unicode-property-regex", + feature: "unicodePropertyEscape", + options: { + useUnicodeFlag + } + }); +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-unicode-property-regex/lib/index.js.map b/node_modules/@babel/plugin-transform-unicode-property-regex/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..84c53af5eacbc3e4002d092bed0a4f2eae7eab28 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-property-regex/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperCreateRegexpFeaturesPlugin","require","_helperPluginUtils","_default","exports","default","declare","api","options","assertVersion","useUnicodeFlag","Error","createRegExpFeaturePlugin","name","feature"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @babel/development/plugin-name */\nimport { createRegExpFeaturePlugin } from \"@babel/helper-create-regexp-features-plugin\";\nimport { declare } from \"@babel/helper-plugin-utils\";\n\nexport interface Options {\n useUnicodeFlag?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n\n const { useUnicodeFlag = true } = options;\n if (typeof useUnicodeFlag !== \"boolean\") {\n throw new Error(\".useUnicodeFlag must be a boolean, or undefined\");\n }\n\n return createRegExpFeaturePlugin({\n name: \"transform-unicode-property-regex\",\n feature: \"unicodePropertyEscape\",\n options: { useUnicodeFlag },\n });\n});\n"],"mappings":";;;;;;AACA,IAAAA,iCAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAAqD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMtC,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAEC,OAAgB,KAAK;EAChDD,GAAG,CAACE,aAAa,mDAAyC,CAAC;EAE3D,MAAM;IAAEC,cAAc,GAAG;EAAK,CAAC,GAAGF,OAAO;EACzC,IAAI,OAAOE,cAAc,KAAK,SAAS,EAAE;IACvC,MAAM,IAAIC,KAAK,CAAC,iDAAiD,CAAC;EACpE;EAEA,OAAO,IAAAC,2DAAyB,EAAC;IAC/BC,IAAI,EAAE,kCAAkC;IACxCC,OAAO,EAAE,uBAAuB;IAChCN,OAAO,EAAE;MAAEE;IAAe;EAC5B,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-unicode-property-regex/package.json b/node_modules/@babel/plugin-transform-unicode-property-regex/package.json new file mode 100644 index 0000000000000000000000000000000000000000..83da61a3ddfe746399735a60465d67d666bb63b2 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-property-regex/package.json @@ -0,0 +1,41 @@ +{ + "name": "@babel/plugin-transform-unicode-property-regex", + "version": "7.29.7", + "description": "Compile Unicode property escapes in Unicode regular expressions to ES5.", + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-unicode-property-regex", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "engines": { + "node": ">=6.9.0" + }, + "keywords": [ + "babel-plugin", + "regex", + "regexp", + "regular expressions", + "unicode properties", + "unicode" + ], + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-unicode-property-regex" + }, + "bugs": "https://github.com/babel/babel/issues", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-unicode-regex/LICENSE b/node_modules/@babel/plugin-transform-unicode-regex/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-regex/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-unicode-regex/README.md b/node_modules/@babel/plugin-transform-unicode-regex/README.md new file mode 100644 index 0000000000000000000000000000000000000000..606f039b4f63f009ef8e527b32d2370e1325a65a --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-regex/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-unicode-regex + +> Compile ES2015 Unicode regex to ES5 + +See our website [@babel/plugin-transform-unicode-regex](https://babeljs.io/docs/babel-plugin-transform-unicode-regex) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-unicode-regex +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-unicode-regex --dev +``` diff --git a/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js b/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..9aa97ad7d301f8b484cb766591d42974b735579a --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js @@ -0,0 +1,17 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin"); +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ + name: "transform-unicode-regex", + feature: "unicodeFlag" + }); +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js.map b/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..953ee0f814010c4c764a7f6c66e421e18754f792 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperCreateRegexpFeaturesPlugin","require","_helperPluginUtils","_default","exports","default","declare","api","assertVersion","createRegExpFeaturePlugin","name","feature"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @babel/development/plugin-name */\nimport { createRegExpFeaturePlugin } from \"@babel/helper-create-regexp-features-plugin\";\nimport { declare } from \"@babel/helper-plugin-utils\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n return createRegExpFeaturePlugin({\n name: \"transform-unicode-regex\",\n feature: \"unicodeFlag\",\n });\n});\n"],"mappings":";;;;;;AACA,IAAAA,iCAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAAqD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEtC,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAkB,CAAE,CAAC;EAEtC,OAAO,IAAAC,2DAAyB,EAAC;IAC/BC,IAAI,EAAE,yBAAyB;IAC/BC,OAAO,EAAE;EACX,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-unicode-regex/package.json b/node_modules/@babel/plugin-transform-unicode-regex/package.json new file mode 100644 index 0000000000000000000000000000000000000000..73c6d6cb9c26f2bf431d05d595ad031b73ab70e2 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-regex/package.json @@ -0,0 +1,35 @@ +{ + "name": "@babel/plugin-transform-unicode-regex", + "version": "7.29.7", + "description": "Compile ES2015 Unicode regex to ES5", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-unicode-regex" + }, + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin" + ], + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-unicode-regex", + "engines": { + "node": ">=6.9.0" + }, + "author": "The Babel Team (https://babel.dev/team)", + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-unicode-sets-regex/LICENSE b/node_modules/@babel/plugin-transform-unicode-sets-regex/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-sets-regex/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/plugin-transform-unicode-sets-regex/README.md b/node_modules/@babel/plugin-transform-unicode-sets-regex/README.md new file mode 100644 index 0000000000000000000000000000000000000000..67d59dcef61c69f7705465f8d197eaf6a58836f2 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-sets-regex/README.md @@ -0,0 +1,19 @@ +# @babel/plugin-transform-unicode-sets-regex + +> Compile regular expressions' unicodeSets (v) flag. + +See our website [@babel/plugin-transform-unicode-sets-regex](https://babeljs.io/docs/babel-plugin-transform-unicode-sets-regex) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/plugin-transform-unicode-sets-regex +``` + +or using yarn: + +```sh +yarn add @babel/plugin-transform-unicode-sets-regex --dev +``` diff --git a/node_modules/@babel/plugin-transform-unicode-sets-regex/lib/index.js b/node_modules/@babel/plugin-transform-unicode-sets-regex/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..ee7f4c50f73f9904cf7bcefa18a4c24b79816e21 --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-sets-regex/lib/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin"); +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _default = exports.default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion("^7.0.0-0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta"); + return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ + name: "transform-unicode-sets-regex", + feature: "unicodeSetsFlag", + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("regexpUnicodeSets"); + } + }); +}); + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-unicode-sets-regex/lib/index.js.map b/node_modules/@babel/plugin-transform-unicode-sets-regex/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f355e05fb7b05d2add298909bf1414840bf84c1d --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-sets-regex/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperCreateRegexpFeaturesPlugin","require","_helperPluginUtils","_default","exports","default","declare","api","assertVersion","createRegExpFeaturePlugin","name","feature","manipulateOptions","opts","parserOpts","plugins","push"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @babel/development/plugin-name */\nimport { createRegExpFeaturePlugin } from \"@babel/helper-create-regexp-features-plugin\";\nimport { declare } from \"@babel/helper-plugin-utils\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n\n return createRegExpFeaturePlugin({\n name: \"transform-unicode-sets-regex\",\n feature: \"unicodeSetsFlag\",\n manipulateOptions(opts, parserOpts) {\n if (!process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) This plugin has been removed\n parserOpts.plugins.push(\"regexpUnicodeSets\");\n }\n },\n });\n});\n"],"mappings":";;;;;;AACA,IAAAA,iCAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAAqD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEtC,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,mDAAyC,CAAC;EAE3D,OAAO,IAAAC,2DAAyB,EAAC;IAC/BC,IAAI,EAAE,8BAA8B;IACpCC,OAAO,EAAE,iBAAiB;IAC1BC,iBAAiBA,CAACC,IAAI,EAAEC,UAAU,EAAE;MAGhCA,UAAU,CAACC,OAAO,CAACC,IAAI,CAAC,mBAAmB,CAAC;IAEhD;EACF,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/plugin-transform-unicode-sets-regex/package.json b/node_modules/@babel/plugin-transform-unicode-sets-regex/package.json new file mode 100644 index 0000000000000000000000000000000000000000..b206163300f2400256281266a65a996e2338d72a --- /dev/null +++ b/node_modules/@babel/plugin-transform-unicode-sets-regex/package.json @@ -0,0 +1,52 @@ +{ + "name": "@babel/plugin-transform-unicode-sets-regex", + "version": "7.29.7", + "description": "Compile regular expressions' unicodeSets (v) flag.", + "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-unicode-sets-regex", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "keywords": [ + "babel-plugin", + "regex", + "regexp", + "unicode", + "sets", + "properties", + "property", + "string", + "strings", + "regular expressions" + ], + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-plugin-transform-unicode-sets-regex" + }, + "bugs": "https://github.com/babel/babel/issues", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/helper-plugin-test-runner": "^7.29.7" + }, + "author": "The Babel Team (https://babel.dev/team)", + "exports": { + ".": { + "types": "./lib/index.d.ts", + "default": "./lib/index.js" + }, + "./package.json": "./package.json" + }, + "engines": { + "node": ">=6.9.0" + }, + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/CONTRIBUTING.md b/node_modules/@babel/preset-env/CONTRIBUTING.md new file mode 100644 index 0000000000000000000000000000000000000000..83800c08800808b7f53c27d298ed67cb50cb4600 --- /dev/null +++ b/node_modules/@babel/preset-env/CONTRIBUTING.md @@ -0,0 +1,95 @@ +# Contributing + +## Adding a new plugin or polyfill to support (when approved in the next ECMAScript version) + +### Update [`plugin-features.mjs`](../babel-compat-data/scripts/data/plugin-features.mjs) + +*Example:* + +If you were going to add `**` which is in ES2016: + +Find the relevant entries on [compat-table](https://compat-table.github.io/compat-table/es2016plus/#test-exponentiation_(**)_operator): + +`exponentiation (**) operator` + +Find the corresponding babel plugin: + +`@babel/plugin-transform-exponentiation-operator` + +And add them in this structure: + +```js +// es2016 +"@babel/plugin-transform-exponentiation-operator": { + features: [ + "exponentiation (**) operator", + ], +}, +``` + +### Update data for `core-js@2` polyfilling + +*Example:* + +In case you want to add `Object.values` which is in ES2017: + +Find the relevant feature and subfeature on [compat-table](https://kangax.github.io/compat-table/es2016plus/#test-Object_static_methods_Object.values) +and split it with `/`: + +`Object static methods / Object.values` + +Find the corresponding module on [`core-js@2`](https://github.com/zloirock/core-js/tree/v2/modules): + +`es7.object.values.js` + +Find required ES version in [`corejs2-built-in-features.js`](https://github.com/babel/babel/blob/main/packages/babel-preset-env/data/corejs2-built-in-features.js) and add the new feature: + +```js +const es = { + //... + "es7.object.values": "Object static methods / Object.values" +} +``` + +If you want to transform a new built-in by `useBuiltIns: 'usage'`, add mapping to related `core-js` modules to [this file](https://github.com/babel/babel/blob/main/packages/babel-preset-env/polyfills/corejs2/built-in-definitions.js). + +### Update data for `core-js@3` polyfilling + +Just update the version of [`core-js-compat`](https://github.com/zloirock/core-js/tree/main/packages/core-js-compat) in dependencies. + +If you want to transform a new built-in by `useBuiltIns: 'usage'`, add mapping to related [`core-js`](https://github.com/zloirock/core-js/tree/main/packages/core-js/modules) modules to [this file](https://github.com/babel/babel/blob/main/packages/babel-preset-env/polyfills/corejs3/built-in-definitions.js). + +If you want to mark a new proposal as shipped, add it to [this list](https://github.com/babel/babel/blob/main/packages/babel-preset-env/polyfills/corejs3/shipped-proposals.js). + +### Update [`plugins.json`](../babel-compat-data/data/plugins.json) + +Until `compat-table` is a standalone npm module for data we are using the git commit in `packages/babel-compat-data/scripts/download-compat-table.sh` + +`COMPAT_TABLE_COMMIT=[latest-commit-hash]`, + +So we update and then run `npm run build-data`. If there are no changes, then `plugins.json` will be the same. + +## Tests + +### Running tests + +See general [CONTRIBUTING.md](../../CONTRIBUTING.md#running-lintingtests). + +### Writing tests + +#### General + +All the tests for `@babel/preset-env` exist in the `test/fixtures` folder. The +test setup and conventions are exactly the same as testing a Babel plugin, so +please read our [documentation on writing tests](../../CONTRIBUTING.md#babel-plugin-x). + +#### Testing the `debug` option + +Testing debug output to `stdout` is similar. Under the `test/debug-fixtures`, +create a folder with a descriptive name of your test, and add the following: + +* Add a `options.json` file (just as the other tests, this is essentially a +`.babelrc`) with the desired test configuration (required) +* Add a `stdout.txt` file with the expected debug output. For added +convenience, if there is no `stdout.txt` present, the test runner will +generate one for you. diff --git a/node_modules/@babel/preset-env/LICENSE b/node_modules/@babel/preset-env/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/preset-env/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/preset-env/README.md b/node_modules/@babel/preset-env/README.md new file mode 100644 index 0000000000000000000000000000000000000000..159c37b1b15647012d7a9b37baf8946c975e8eeb --- /dev/null +++ b/node_modules/@babel/preset-env/README.md @@ -0,0 +1,19 @@ +# @babel/preset-env + +> A Babel preset for each environment. + +See our website [@babel/preset-env](https://babeljs.io/docs/babel-preset-env) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20preset-env%22+is%3Aopen) associated with this package. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/preset-env +``` + +or using yarn: + +```sh +yarn add @babel/preset-env --dev +``` diff --git a/node_modules/@babel/preset-env/data/built-in-modules.js b/node_modules/@babel/preset-env/data/built-in-modules.js new file mode 100644 index 0000000000000000000000000000000000000000..161ddb8ea7abbd796678e140f9493f91b126ddb8 --- /dev/null +++ b/node_modules/@babel/preset-env/data/built-in-modules.js @@ -0,0 +1,3 @@ +// TODO: Remove in Babel 8 + +module.exports = require("@babel/compat-data/native-modules"); diff --git a/node_modules/@babel/preset-env/data/built-in-modules.json.js b/node_modules/@babel/preset-env/data/built-in-modules.json.js new file mode 100644 index 0000000000000000000000000000000000000000..161ddb8ea7abbd796678e140f9493f91b126ddb8 --- /dev/null +++ b/node_modules/@babel/preset-env/data/built-in-modules.json.js @@ -0,0 +1,3 @@ +// TODO: Remove in Babel 8 + +module.exports = require("@babel/compat-data/native-modules"); diff --git a/node_modules/@babel/preset-env/data/built-ins.js b/node_modules/@babel/preset-env/data/built-ins.js new file mode 100644 index 0000000000000000000000000000000000000000..38f8a09add7aa307784f36eb4da718498b7a55c6 --- /dev/null +++ b/node_modules/@babel/preset-env/data/built-ins.js @@ -0,0 +1,4 @@ +// TODO: Remove in Babel 8 +// https://github.com/vuejs/vue-cli/issues/3671 + +module.exports = require("./corejs2-built-ins.json"); diff --git a/node_modules/@babel/preset-env/data/built-ins.json.js b/node_modules/@babel/preset-env/data/built-ins.json.js new file mode 100644 index 0000000000000000000000000000000000000000..38f8a09add7aa307784f36eb4da718498b7a55c6 --- /dev/null +++ b/node_modules/@babel/preset-env/data/built-ins.json.js @@ -0,0 +1,4 @@ +// TODO: Remove in Babel 8 +// https://github.com/vuejs/vue-cli/issues/3671 + +module.exports = require("./corejs2-built-ins.json"); diff --git a/node_modules/@babel/preset-env/data/core-js-compat.js b/node_modules/@babel/preset-env/data/core-js-compat.js new file mode 100644 index 0000000000000000000000000000000000000000..cbfc4a0e970bd58cf25b2cf38794ab29a5875b67 --- /dev/null +++ b/node_modules/@babel/preset-env/data/core-js-compat.js @@ -0,0 +1,3 @@ +// TODO: Remove in Babel 8 + +module.exports = require("core-js-compat/data.json"); diff --git a/node_modules/@babel/preset-env/data/corejs2-built-ins.js b/node_modules/@babel/preset-env/data/corejs2-built-ins.js new file mode 100644 index 0000000000000000000000000000000000000000..486f3b1e1b2a048aa76659a771c0abb9f7e6f654 --- /dev/null +++ b/node_modules/@babel/preset-env/data/corejs2-built-ins.js @@ -0,0 +1,3 @@ +// TODO: Remove in Babel 8 + +module.exports = require("@babel/compat-data/corejs2-built-ins"); diff --git a/node_modules/@babel/preset-env/data/corejs2-built-ins.json.js b/node_modules/@babel/preset-env/data/corejs2-built-ins.json.js new file mode 100644 index 0000000000000000000000000000000000000000..486f3b1e1b2a048aa76659a771c0abb9f7e6f654 --- /dev/null +++ b/node_modules/@babel/preset-env/data/corejs2-built-ins.json.js @@ -0,0 +1,3 @@ +// TODO: Remove in Babel 8 + +module.exports = require("@babel/compat-data/corejs2-built-ins"); diff --git a/node_modules/@babel/preset-env/data/package.json b/node_modules/@babel/preset-env/data/package.json new file mode 100644 index 0000000000000000000000000000000000000000..6acf458e034b468d187fa36d453322df42487e0e --- /dev/null +++ b/node_modules/@babel/preset-env/data/package.json @@ -0,0 +1 @@ +{ "type": "commonjs" } \ No newline at end of file diff --git a/node_modules/@babel/preset-env/data/plugins.js b/node_modules/@babel/preset-env/data/plugins.js new file mode 100644 index 0000000000000000000000000000000000000000..b5d6b4361f1095a9503384ad2de154fd224080fb --- /dev/null +++ b/node_modules/@babel/preset-env/data/plugins.js @@ -0,0 +1,3 @@ +// TODO: Remove in Babel 8 + +module.exports = require("@babel/compat-data/plugins"); diff --git a/node_modules/@babel/preset-env/data/plugins.json.js b/node_modules/@babel/preset-env/data/plugins.json.js new file mode 100644 index 0000000000000000000000000000000000000000..b5d6b4361f1095a9503384ad2de154fd224080fb --- /dev/null +++ b/node_modules/@babel/preset-env/data/plugins.json.js @@ -0,0 +1,3 @@ +// TODO: Remove in Babel 8 + +module.exports = require("@babel/compat-data/plugins"); diff --git a/node_modules/@babel/preset-env/data/shipped-proposals.js b/node_modules/@babel/preset-env/data/shipped-proposals.js new file mode 100644 index 0000000000000000000000000000000000000000..e38ffacda72be87bd10fb83925a2ab86acc59237 --- /dev/null +++ b/node_modules/@babel/preset-env/data/shipped-proposals.js @@ -0,0 +1,4 @@ +// TODO: Remove in Babel 8 + +const { pluginSyntaxMap, proposalPlugins, proposalSyntaxPlugins } = require("../lib/shipped-proposals"); +module.exports = { pluginSyntaxMap, proposalPlugins, proposalSyntaxPlugins }; diff --git a/node_modules/@babel/preset-env/data/unreleased-labels.js b/node_modules/@babel/preset-env/data/unreleased-labels.js new file mode 100644 index 0000000000000000000000000000000000000000..112d859930d89329edc9c8d67a4b2bf3e5d0bd7d --- /dev/null +++ b/node_modules/@babel/preset-env/data/unreleased-labels.js @@ -0,0 +1,3 @@ +// TODO: Remove in Babel 8 + +module.exports = require("@babel/helper-compilation-targets").unreleasedLabels; diff --git a/node_modules/@babel/preset-env/lib/available-plugins.js b/node_modules/@babel/preset-env/lib/available-plugins.js new file mode 100644 index 0000000000000000000000000000000000000000..710c0134bc0849493827fa5b235dbdc554bde656 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/available-plugins.js @@ -0,0 +1,176 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.minVersions = exports.legacyBabel7SyntaxPlugins = exports.default = void 0; +var _pluginSyntaxImportAssertions = require("@babel/plugin-syntax-import-assertions"); +var _pluginSyntaxImportAttributes = require("@babel/plugin-syntax-import-attributes"); +var _pluginTransformAsyncGeneratorFunctions = require("@babel/plugin-transform-async-generator-functions"); +var _pluginTransformAsyncToGenerator = require("@babel/plugin-transform-async-to-generator"); +var _pluginTransformArrowFunctions = require("@babel/plugin-transform-arrow-functions"); +var _pluginTransformBlockScopedFunctions = require("@babel/plugin-transform-block-scoped-functions"); +var _pluginTransformBlockScoping = require("@babel/plugin-transform-block-scoping"); +var _pluginTransformClasses = require("@babel/plugin-transform-classes"); +var _pluginTransformClassProperties = require("@babel/plugin-transform-class-properties"); +var _pluginTransformClassStaticBlock = require("@babel/plugin-transform-class-static-block"); +var _pluginTransformComputedProperties = require("@babel/plugin-transform-computed-properties"); +var _pluginTransformDestructuring = require("@babel/plugin-transform-destructuring"); +var _pluginTransformDotallRegex = require("@babel/plugin-transform-dotall-regex"); +var _pluginTransformDuplicateKeys = require("@babel/plugin-transform-duplicate-keys"); +var _pluginTransformDuplicateNamedCapturingGroupsRegex = require("@babel/plugin-transform-duplicate-named-capturing-groups-regex"); +var _pluginTransformDynamicImport = require("@babel/plugin-transform-dynamic-import"); +var _pluginTransformExplicitResourceManagement = require("@babel/plugin-transform-explicit-resource-management"); +var _pluginTransformExponentiationOperator = require("@babel/plugin-transform-exponentiation-operator"); +var _pluginTransformExportNamespaceFrom = require("@babel/plugin-transform-export-namespace-from"); +var _pluginTransformForOf = require("@babel/plugin-transform-for-of"); +var _pluginTransformFunctionName = require("@babel/plugin-transform-function-name"); +var _pluginTransformJsonStrings = require("@babel/plugin-transform-json-strings"); +var _pluginTransformLiterals = require("@babel/plugin-transform-literals"); +var _pluginTransformLogicalAssignmentOperators = require("@babel/plugin-transform-logical-assignment-operators"); +var _pluginTransformMemberExpressionLiterals = require("@babel/plugin-transform-member-expression-literals"); +var _pluginTransformModulesAmd = require("@babel/plugin-transform-modules-amd"); +var _pluginTransformModulesCommonjs = require("@babel/plugin-transform-modules-commonjs"); +var _pluginTransformModulesSystemjs = require("@babel/plugin-transform-modules-systemjs"); +var _pluginTransformModulesUmd = require("@babel/plugin-transform-modules-umd"); +var _pluginTransformNamedCapturingGroupsRegex = require("@babel/plugin-transform-named-capturing-groups-regex"); +var _pluginTransformNewTarget = require("@babel/plugin-transform-new-target"); +var _pluginTransformNullishCoalescingOperator = require("@babel/plugin-transform-nullish-coalescing-operator"); +var _pluginTransformNumericSeparator = require("@babel/plugin-transform-numeric-separator"); +var _pluginTransformObjectRestSpread = require("@babel/plugin-transform-object-rest-spread"); +var _pluginTransformObjectSuper = require("@babel/plugin-transform-object-super"); +var _pluginTransformOptionalCatchBinding = require("@babel/plugin-transform-optional-catch-binding"); +var _pluginTransformOptionalChaining = require("@babel/plugin-transform-optional-chaining"); +var _pluginTransformParameters = require("@babel/plugin-transform-parameters"); +var _pluginTransformPrivateMethods = require("@babel/plugin-transform-private-methods"); +var _pluginTransformPrivatePropertyInObject = require("@babel/plugin-transform-private-property-in-object"); +var _pluginTransformPropertyLiterals = require("@babel/plugin-transform-property-literals"); +var _pluginTransformRegenerator = require("@babel/plugin-transform-regenerator"); +var _pluginTransformRegexpModifiers = require("@babel/plugin-transform-regexp-modifiers"); +var _pluginTransformReservedWords = require("@babel/plugin-transform-reserved-words"); +var _pluginTransformShorthandProperties = require("@babel/plugin-transform-shorthand-properties"); +var _pluginTransformSpread = require("@babel/plugin-transform-spread"); +var _pluginTransformStickyRegex = require("@babel/plugin-transform-sticky-regex"); +var _pluginTransformTemplateLiterals = require("@babel/plugin-transform-template-literals"); +var _pluginTransformTypeofSymbol = require("@babel/plugin-transform-typeof-symbol"); +var _pluginTransformUnicodeEscapes = require("@babel/plugin-transform-unicode-escapes"); +var _pluginTransformUnicodePropertyRegex = require("@babel/plugin-transform-unicode-property-regex"); +var _pluginTransformUnicodeRegex = require("@babel/plugin-transform-unicode-regex"); +var _pluginTransformUnicodeSetsRegex = require("@babel/plugin-transform-unicode-sets-regex"); +var _index = require("@babel/preset-modules/lib/plugins/transform-async-arrows-in-class/index.js"); +var _index2 = require("@babel/preset-modules/lib/plugins/transform-edge-default-parameters/index.js"); +var _index3 = require("@babel/preset-modules/lib/plugins/transform-edge-function-name/index.js"); +var _pluginBugfixFirefoxClassInComputedClassKey = require("@babel/plugin-bugfix-firefox-class-in-computed-class-key"); +var _index4 = require("@babel/preset-modules/lib/plugins/transform-tagged-template-caching/index.js"); +var _index5 = require("@babel/preset-modules/lib/plugins/transform-safari-block-shadowing/index.js"); +var _index6 = require("@babel/preset-modules/lib/plugins/transform-safari-for-shadowing/index.js"); +var _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression = require("@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression"); +var _pluginBugfixSafariRestDestructuringRhsArray = require("@babel/plugin-bugfix-safari-rest-destructuring-rhs-array"); +var _pluginBugfixSafariClassFieldInitializerScope = require("@babel/plugin-bugfix-safari-class-field-initializer-scope"); +var _pluginBugfixV8SpreadParametersInOptionalChaining = require("@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining"); +var _pluginBugfixV8StaticClassFieldsRedefineReadonly = require("@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly"); +const availablePlugins = exports.default = { + "bugfix/transform-async-arrows-in-class": () => _index, + "bugfix/transform-edge-default-parameters": () => _index2, + "bugfix/transform-edge-function-name": () => _index3, + "bugfix/transform-firefox-class-in-computed-class-key": () => _pluginBugfixFirefoxClassInComputedClassKey.default, + "bugfix/transform-safari-block-shadowing": () => _index5, + "bugfix/transform-safari-class-field-initializer-scope": () => _pluginBugfixSafariClassFieldInitializerScope.default, + "bugfix/transform-safari-for-shadowing": () => _index6, + "bugfix/transform-safari-id-destructuring-collision-in-function-expression": () => _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression.default, + "bugfix/transform-safari-rest-destructuring-rhs-array": () => _pluginBugfixSafariRestDestructuringRhsArray.default, + "bugfix/transform-tagged-template-caching": () => _index4, + "bugfix/transform-v8-spread-parameters-in-optional-chaining": () => _pluginBugfixV8SpreadParametersInOptionalChaining.default, + "bugfix/transform-v8-static-class-fields-redefine-readonly": () => _pluginBugfixV8StaticClassFieldsRedefineReadonly.default, + "transform-arrow-functions": () => _pluginTransformArrowFunctions.default, + "transform-async-generator-functions": () => _pluginTransformAsyncGeneratorFunctions.default, + "transform-async-to-generator": () => _pluginTransformAsyncToGenerator.default, + "transform-block-scoped-functions": () => _pluginTransformBlockScopedFunctions.default, + "transform-block-scoping": () => _pluginTransformBlockScoping.default, + "transform-class-properties": () => _pluginTransformClassProperties.default, + "transform-class-static-block": () => _pluginTransformClassStaticBlock.default, + "transform-classes": () => _pluginTransformClasses.default, + "transform-computed-properties": () => _pluginTransformComputedProperties.default, + "transform-destructuring": () => _pluginTransformDestructuring.default, + "transform-dotall-regex": () => _pluginTransformDotallRegex.default, + "transform-duplicate-keys": () => _pluginTransformDuplicateKeys.default, + "transform-duplicate-named-capturing-groups-regex": () => _pluginTransformDuplicateNamedCapturingGroupsRegex.default, + "transform-dynamic-import": () => _pluginTransformDynamicImport.default, + "transform-explicit-resource-management": () => _pluginTransformExplicitResourceManagement.default, + "transform-exponentiation-operator": () => _pluginTransformExponentiationOperator.default, + "transform-export-namespace-from": () => _pluginTransformExportNamespaceFrom.default, + "transform-for-of": () => _pluginTransformForOf.default, + "transform-function-name": () => _pluginTransformFunctionName.default, + "transform-json-strings": () => _pluginTransformJsonStrings.default, + "transform-literals": () => _pluginTransformLiterals.default, + "transform-logical-assignment-operators": () => _pluginTransformLogicalAssignmentOperators.default, + "transform-member-expression-literals": () => _pluginTransformMemberExpressionLiterals.default, + "transform-modules-amd": () => _pluginTransformModulesAmd.default, + "transform-modules-commonjs": () => _pluginTransformModulesCommonjs.default, + "transform-modules-systemjs": () => _pluginTransformModulesSystemjs.default, + "transform-modules-umd": () => _pluginTransformModulesUmd.default, + "transform-named-capturing-groups-regex": () => _pluginTransformNamedCapturingGroupsRegex.default, + "transform-new-target": () => _pluginTransformNewTarget.default, + "transform-nullish-coalescing-operator": () => _pluginTransformNullishCoalescingOperator.default, + "transform-numeric-separator": () => _pluginTransformNumericSeparator.default, + "transform-object-rest-spread": () => _pluginTransformObjectRestSpread.default, + "transform-object-super": () => _pluginTransformObjectSuper.default, + "transform-optional-catch-binding": () => _pluginTransformOptionalCatchBinding.default, + "transform-optional-chaining": () => _pluginTransformOptionalChaining.default, + "transform-parameters": () => _pluginTransformParameters.default, + "transform-private-methods": () => _pluginTransformPrivateMethods.default, + "transform-private-property-in-object": () => _pluginTransformPrivatePropertyInObject.default, + "transform-property-literals": () => _pluginTransformPropertyLiterals.default, + "transform-regenerator": () => _pluginTransformRegenerator.default, + "transform-regexp-modifiers": () => _pluginTransformRegexpModifiers.default, + "transform-reserved-words": () => _pluginTransformReservedWords.default, + "transform-shorthand-properties": () => _pluginTransformShorthandProperties.default, + "transform-spread": () => _pluginTransformSpread.default, + "transform-sticky-regex": () => _pluginTransformStickyRegex.default, + "transform-template-literals": () => _pluginTransformTemplateLiterals.default, + "transform-typeof-symbol": () => _pluginTransformTypeofSymbol.default, + "transform-unicode-escapes": () => _pluginTransformUnicodeEscapes.default, + "transform-unicode-property-regex": () => _pluginTransformUnicodePropertyRegex.default, + "transform-unicode-regex": () => _pluginTransformUnicodeRegex.default, + "transform-unicode-sets-regex": () => _pluginTransformUnicodeSetsRegex.default +}; +const minVersions = exports.minVersions = {}; +let legacyBabel7SyntaxPlugins = exports.legacyBabel7SyntaxPlugins = void 0; +Object.assign(minVersions, { + "bugfix/transform-safari-id-destructuring-collision-in-function-expression": "7.16.0", + "bugfix/transform-v8-static-class-fields-redefine-readonly": "7.12.0", + "syntax-import-attributes": "7.22.0", + "transform-class-static-block": "7.12.0", + "transform-duplicate-named-capturing-groups-regex": "7.19.0", + "transform-explicit-resource-management": "7.23.9", + "transform-private-property-in-object": "7.10.0", + "transform-regexp-modifiers": "7.19.0" +}); +const syntax = name => () => () => ({ + manipulateOptions: (_, p) => p.plugins.push(name) +}); +const legacyBabel7SyntaxPluginsLoaders = { + "syntax-async-generators": syntax("asyncGenerators"), + "syntax-class-properties": syntax("classProperties"), + "syntax-class-static-block": syntax("classStaticBlock"), + "syntax-dynamic-import": syntax("dynamicImport"), + "syntax-explicit-resource-management": syntax("explicitResourceManagement"), + "syntax-export-namespace-from": syntax("exportNamespaceFrom"), + "syntax-import-meta": syntax("importMeta"), + "syntax-json-strings": syntax("jsonStrings"), + "syntax-logical-assignment-operators": syntax("logicalAssignment"), + "syntax-nullish-coalescing-operator": syntax("nullishCoalescingOperator"), + "syntax-numeric-separator": syntax("numericSeparator"), + "syntax-object-rest-spread": syntax("objectRestSpread"), + "syntax-optional-catch-binding": syntax("optionalCatchBinding"), + "syntax-optional-chaining": syntax("optionalChaining"), + "syntax-private-property-in-object": syntax("privateIn"), + "syntax-top-level-await": syntax("topLevelAwait"), + "syntax-import-assertions": () => _pluginSyntaxImportAssertions.default, + "syntax-import-attributes": () => _pluginSyntaxImportAttributes.default, + "syntax-unicode-sets-regex": () => require("@babel/plugin-syntax-unicode-sets-regex") +}; +Object.assign(availablePlugins, legacyBabel7SyntaxPluginsLoaders); +exports.legacyBabel7SyntaxPlugins = legacyBabel7SyntaxPlugins = new Set(Object.keys(legacyBabel7SyntaxPluginsLoaders)); + +//# sourceMappingURL=available-plugins.js.map diff --git a/node_modules/@babel/preset-env/lib/available-plugins.js.map b/node_modules/@babel/preset-env/lib/available-plugins.js.map new file mode 100644 index 0000000000000000000000000000000000000000..26b06e674645646988e6e71a9ae364727e8ae2ab --- /dev/null +++ b/node_modules/@babel/preset-env/lib/available-plugins.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_pluginSyntaxImportAssertions","require","_pluginSyntaxImportAttributes","_pluginTransformAsyncGeneratorFunctions","_pluginTransformAsyncToGenerator","_pluginTransformArrowFunctions","_pluginTransformBlockScopedFunctions","_pluginTransformBlockScoping","_pluginTransformClasses","_pluginTransformClassProperties","_pluginTransformClassStaticBlock","_pluginTransformComputedProperties","_pluginTransformDestructuring","_pluginTransformDotallRegex","_pluginTransformDuplicateKeys","_pluginTransformDuplicateNamedCapturingGroupsRegex","_pluginTransformDynamicImport","_pluginTransformExplicitResourceManagement","_pluginTransformExponentiationOperator","_pluginTransformExportNamespaceFrom","_pluginTransformForOf","_pluginTransformFunctionName","_pluginTransformJsonStrings","_pluginTransformLiterals","_pluginTransformLogicalAssignmentOperators","_pluginTransformMemberExpressionLiterals","_pluginTransformModulesAmd","_pluginTransformModulesCommonjs","_pluginTransformModulesSystemjs","_pluginTransformModulesUmd","_pluginTransformNamedCapturingGroupsRegex","_pluginTransformNewTarget","_pluginTransformNullishCoalescingOperator","_pluginTransformNumericSeparator","_pluginTransformObjectRestSpread","_pluginTransformObjectSuper","_pluginTransformOptionalCatchBinding","_pluginTransformOptionalChaining","_pluginTransformParameters","_pluginTransformPrivateMethods","_pluginTransformPrivatePropertyInObject","_pluginTransformPropertyLiterals","_pluginTransformRegenerator","_pluginTransformRegexpModifiers","_pluginTransformReservedWords","_pluginTransformShorthandProperties","_pluginTransformSpread","_pluginTransformStickyRegex","_pluginTransformTemplateLiterals","_pluginTransformTypeofSymbol","_pluginTransformUnicodeEscapes","_pluginTransformUnicodePropertyRegex","_pluginTransformUnicodeRegex","_pluginTransformUnicodeSetsRegex","_index","_index2","_index3","_pluginBugfixFirefoxClassInComputedClassKey","_index4","_index5","_index6","_pluginBugfixSafariIdDestructuringCollisionInFunctionExpression","_pluginBugfixSafariRestDestructuringRhsArray","_pluginBugfixSafariClassFieldInitializerScope","_pluginBugfixV8SpreadParametersInOptionalChaining","_pluginBugfixV8StaticClassFieldsRedefineReadonly","availablePlugins","exports","default","bugfix/transform-async-arrows-in-class","bugfixAsyncArrowsInClass","bugfix/transform-edge-default-parameters","bugfixEdgeDefaultParameters","bugfix/transform-edge-function-name","bugfixEdgeFunctionName","bugfix/transform-firefox-class-in-computed-class-key","bugfixFirefoxClassInComputedKey","bugfix/transform-safari-block-shadowing","bugfixSafariBlockShadowing","bugfix/transform-safari-class-field-initializer-scope","bugfixSafariClassFieldInitializerScope","bugfix/transform-safari-for-shadowing","bugfixSafariForShadowing","bugfix/transform-safari-id-destructuring-collision-in-function-expression","bugfixSafariIdDestructuringCollisionInFunctionExpression","bugfix/transform-safari-rest-destructuring-rhs-array","bugfixSafariRestDestructuringRhsArray","bugfix/transform-tagged-template-caching","bugfixTaggedTemplateCaching","bugfix/transform-v8-spread-parameters-in-optional-chaining","bugfixV8SpreadParametersInOptionalChaining","bugfix/transform-v8-static-class-fields-redefine-readonly","bugfixV8StaticClassFieldsRedefineReadonly","transform-arrow-functions","transformArrowFunctions","transform-async-generator-functions","transformAsyncGeneratorFunctions","transform-async-to-generator","transformAsyncToGenerator","transform-block-scoped-functions","transformBlockScopedFunctions","transform-block-scoping","transformBlockScoping","transform-class-properties","transformClassProperties","transform-class-static-block","transformClassStaticBlock","transform-classes","transformClasses","transform-computed-properties","transformComputedProperties","transform-destructuring","transformDestructuring","transform-dotall-regex","transformDotallRegex","transform-duplicate-keys","transformDuplicateKeys","transform-duplicate-named-capturing-groups-regex","transformDuplicateNamedCapturingGroupsRegex","transform-dynamic-import","transformDynamicImport","transform-explicit-resource-management","transformExplicitResourceManagement","transform-exponentiation-operator","transformExponentialOperator","transform-export-namespace-from","transformExportNamespaceFrom","transform-for-of","transformForOf","transform-function-name","transformFunctionName","transform-json-strings","transformJsonStrings","transform-literals","transformLiterals","transform-logical-assignment-operators","transformLogicalAssignmentOperators","transform-member-expression-literals","transformMemberExpressionLiterals","transform-modules-amd","transformModulesAmd","transform-modules-commonjs","transformModulesCommonjs","transform-modules-systemjs","transformModulesSystemjs","transform-modules-umd","transformModulesUmd","transform-named-capturing-groups-regex","transformNamedCapturingGroupsRegex","transform-new-target","transformNewTarget","transform-nullish-coalescing-operator","transformNullishCoalescingOperator","transform-numeric-separator","transformNumericSeparator","transform-object-rest-spread","transformObjectRestSpread","transform-object-super","transformObjectSuper","transform-optional-catch-binding","transformOptionalCatchBinding","transform-optional-chaining","transformOptionalChaining","transform-parameters","transformParameters","transform-private-methods","transformPrivateMethods","transform-private-property-in-object","transformPrivatePropertyInObject","transform-property-literals","transformPropertyLiterals","transform-regenerator","transformRegenerator","transform-regexp-modifiers","transformRegExpModifiers","transform-reserved-words","transformReservedWords","transform-shorthand-properties","transformShorthandProperties","transform-spread","transformSpread","transform-sticky-regex","transformStickyRegex","transform-template-literals","transformTemplateLiterals","transform-typeof-symbol","transformTypeofSymbol","transform-unicode-escapes","transformUnicodeEscapes","transform-unicode-property-regex","transformUnicodePropertyRegex","transform-unicode-regex","transformUnicodeRegex","transform-unicode-sets-regex","transformUnicodeSetsRegex","minVersions","legacyBabel7SyntaxPlugins","Object","assign","syntax","name","manipulateOptions","_","p","plugins","push","legacyBabel7SyntaxPluginsLoaders","syntax-import-assertions","syntaxImportAssertions","syntax-import-attributes","syntaxImportAttributes","syntax-unicode-sets-regex","Set","keys"],"sources":["../src/available-plugins.ts"],"sourcesContent":["/* eslint sort-keys: \"error\" */\n\nimport syntaxImportAssertions from \"@babel/plugin-syntax-import-assertions\" with { if: \"!process.env.BABEL_8_BREAKING\" };\nimport syntaxImportAttributes from \"@babel/plugin-syntax-import-attributes\" with { if: \"!process.env.BABEL_8_BREAKING\" };\n\nimport transformAsyncGeneratorFunctions from \"@babel/plugin-transform-async-generator-functions\";\nimport transformAsyncToGenerator from \"@babel/plugin-transform-async-to-generator\";\nimport transformArrowFunctions from \"@babel/plugin-transform-arrow-functions\";\nimport transformBlockScopedFunctions from \"@babel/plugin-transform-block-scoped-functions\";\nimport transformBlockScoping from \"@babel/plugin-transform-block-scoping\";\nimport transformClasses from \"@babel/plugin-transform-classes\";\nimport transformClassProperties from \"@babel/plugin-transform-class-properties\";\nimport transformClassStaticBlock from \"@babel/plugin-transform-class-static-block\";\nimport transformComputedProperties from \"@babel/plugin-transform-computed-properties\";\nimport transformDestructuring from \"@babel/plugin-transform-destructuring\";\nimport transformDotallRegex from \"@babel/plugin-transform-dotall-regex\";\nimport transformDuplicateKeys from \"@babel/plugin-transform-duplicate-keys\";\nimport transformDuplicateNamedCapturingGroupsRegex from \"@babel/plugin-transform-duplicate-named-capturing-groups-regex\";\nimport transformDynamicImport from \"@babel/plugin-transform-dynamic-import\";\nimport transformExplicitResourceManagement from \"@babel/plugin-transform-explicit-resource-management\";\nimport transformExponentialOperator from \"@babel/plugin-transform-exponentiation-operator\";\nimport transformExportNamespaceFrom from \"@babel/plugin-transform-export-namespace-from\";\nimport transformForOf from \"@babel/plugin-transform-for-of\";\nimport transformFunctionName from \"@babel/plugin-transform-function-name\";\nimport transformJsonStrings from \"@babel/plugin-transform-json-strings\";\nimport transformLiterals from \"@babel/plugin-transform-literals\";\nimport transformLogicalAssignmentOperators from \"@babel/plugin-transform-logical-assignment-operators\";\nimport transformMemberExpressionLiterals from \"@babel/plugin-transform-member-expression-literals\";\nimport transformModulesAmd from \"@babel/plugin-transform-modules-amd\";\nimport transformModulesCommonjs from \"@babel/plugin-transform-modules-commonjs\";\nimport transformModulesSystemjs from \"@babel/plugin-transform-modules-systemjs\";\nimport transformModulesUmd from \"@babel/plugin-transform-modules-umd\";\nimport transformNamedCapturingGroupsRegex from \"@babel/plugin-transform-named-capturing-groups-regex\";\nimport transformNewTarget from \"@babel/plugin-transform-new-target\";\nimport transformNullishCoalescingOperator from \"@babel/plugin-transform-nullish-coalescing-operator\";\nimport transformNumericSeparator from \"@babel/plugin-transform-numeric-separator\";\nimport transformObjectRestSpread from \"@babel/plugin-transform-object-rest-spread\";\nimport transformObjectSuper from \"@babel/plugin-transform-object-super\";\nimport transformOptionalCatchBinding from \"@babel/plugin-transform-optional-catch-binding\";\nimport transformOptionalChaining from \"@babel/plugin-transform-optional-chaining\";\nimport transformParameters from \"@babel/plugin-transform-parameters\";\nimport transformPrivateMethods from \"@babel/plugin-transform-private-methods\";\nimport transformPrivatePropertyInObject from \"@babel/plugin-transform-private-property-in-object\";\nimport transformPropertyLiterals from \"@babel/plugin-transform-property-literals\";\nimport transformRegenerator from \"@babel/plugin-transform-regenerator\";\nimport transformRegExpModifiers from \"@babel/plugin-transform-regexp-modifiers\";\nimport transformReservedWords from \"@babel/plugin-transform-reserved-words\";\nimport transformShorthandProperties from \"@babel/plugin-transform-shorthand-properties\";\nimport transformSpread from \"@babel/plugin-transform-spread\";\nimport transformStickyRegex from \"@babel/plugin-transform-sticky-regex\";\nimport transformTemplateLiterals from \"@babel/plugin-transform-template-literals\";\nimport transformTypeofSymbol from \"@babel/plugin-transform-typeof-symbol\";\nimport transformUnicodeEscapes from \"@babel/plugin-transform-unicode-escapes\";\nimport transformUnicodePropertyRegex from \"@babel/plugin-transform-unicode-property-regex\";\nimport transformUnicodeRegex from \"@babel/plugin-transform-unicode-regex\";\nimport transformUnicodeSetsRegex from \"@babel/plugin-transform-unicode-sets-regex\";\n\nimport bugfixAsyncArrowsInClass from \"@babel/preset-modules/lib/plugins/transform-async-arrows-in-class/index.js\";\nimport bugfixEdgeDefaultParameters from \"@babel/preset-modules/lib/plugins/transform-edge-default-parameters/index.js\";\nimport bugfixEdgeFunctionName from \"@babel/preset-modules/lib/plugins/transform-edge-function-name/index.js\";\nimport bugfixFirefoxClassInComputedKey from \"@babel/plugin-bugfix-firefox-class-in-computed-class-key\";\nimport bugfixTaggedTemplateCaching from \"@babel/preset-modules/lib/plugins/transform-tagged-template-caching/index.js\";\nimport bugfixSafariBlockShadowing from \"@babel/preset-modules/lib/plugins/transform-safari-block-shadowing/index.js\";\nimport bugfixSafariForShadowing from \"@babel/preset-modules/lib/plugins/transform-safari-for-shadowing/index.js\";\nimport bugfixSafariIdDestructuringCollisionInFunctionExpression from \"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression\";\nimport bugfixSafariRestDestructuringRhsArray from \"@babel/plugin-bugfix-safari-rest-destructuring-rhs-array\";\nimport bugfixSafariClassFieldInitializerScope from \"@babel/plugin-bugfix-safari-class-field-initializer-scope\";\nimport bugfixV8SpreadParametersInOptionalChaining from \"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining\";\nimport bugfixV8StaticClassFieldsRedefineReadonly from \"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly\";\n\nexport { availablePlugins as default };\nconst availablePlugins = {\n \"bugfix/transform-async-arrows-in-class\": () => bugfixAsyncArrowsInClass,\n \"bugfix/transform-edge-default-parameters\": () => bugfixEdgeDefaultParameters,\n \"bugfix/transform-edge-function-name\": () => bugfixEdgeFunctionName,\n \"bugfix/transform-firefox-class-in-computed-class-key\": () =>\n bugfixFirefoxClassInComputedKey,\n \"bugfix/transform-safari-block-shadowing\": () => bugfixSafariBlockShadowing,\n \"bugfix/transform-safari-class-field-initializer-scope\": () =>\n bugfixSafariClassFieldInitializerScope,\n \"bugfix/transform-safari-for-shadowing\": () => bugfixSafariForShadowing,\n \"bugfix/transform-safari-id-destructuring-collision-in-function-expression\":\n () => bugfixSafariIdDestructuringCollisionInFunctionExpression,\n \"bugfix/transform-safari-rest-destructuring-rhs-array\": () =>\n bugfixSafariRestDestructuringRhsArray,\n \"bugfix/transform-tagged-template-caching\": () => bugfixTaggedTemplateCaching,\n \"bugfix/transform-v8-spread-parameters-in-optional-chaining\": () =>\n bugfixV8SpreadParametersInOptionalChaining,\n \"bugfix/transform-v8-static-class-fields-redefine-readonly\": () =>\n bugfixV8StaticClassFieldsRedefineReadonly,\n \"transform-arrow-functions\": () => transformArrowFunctions,\n \"transform-async-generator-functions\": () => transformAsyncGeneratorFunctions,\n \"transform-async-to-generator\": () => transformAsyncToGenerator,\n \"transform-block-scoped-functions\": () => transformBlockScopedFunctions,\n \"transform-block-scoping\": () => transformBlockScoping,\n \"transform-class-properties\": () => transformClassProperties,\n \"transform-class-static-block\": () => transformClassStaticBlock,\n \"transform-classes\": () => transformClasses,\n \"transform-computed-properties\": () => transformComputedProperties,\n \"transform-destructuring\": () => transformDestructuring,\n \"transform-dotall-regex\": () => transformDotallRegex,\n \"transform-duplicate-keys\": () => transformDuplicateKeys,\n \"transform-duplicate-named-capturing-groups-regex\": () =>\n transformDuplicateNamedCapturingGroupsRegex,\n \"transform-dynamic-import\": () => transformDynamicImport,\n \"transform-explicit-resource-management\": () =>\n transformExplicitResourceManagement,\n \"transform-exponentiation-operator\": () => transformExponentialOperator,\n \"transform-export-namespace-from\": () => transformExportNamespaceFrom,\n \"transform-for-of\": () => transformForOf,\n \"transform-function-name\": () => transformFunctionName,\n \"transform-json-strings\": () => transformJsonStrings,\n \"transform-literals\": () => transformLiterals,\n \"transform-logical-assignment-operators\": () =>\n transformLogicalAssignmentOperators,\n \"transform-member-expression-literals\": () =>\n transformMemberExpressionLiterals,\n \"transform-modules-amd\": () => transformModulesAmd,\n \"transform-modules-commonjs\": () => transformModulesCommonjs,\n \"transform-modules-systemjs\": () => transformModulesSystemjs,\n \"transform-modules-umd\": () => transformModulesUmd,\n \"transform-named-capturing-groups-regex\": () =>\n transformNamedCapturingGroupsRegex,\n \"transform-new-target\": () => transformNewTarget,\n \"transform-nullish-coalescing-operator\": () =>\n transformNullishCoalescingOperator,\n \"transform-numeric-separator\": () => transformNumericSeparator,\n \"transform-object-rest-spread\": () => transformObjectRestSpread,\n \"transform-object-super\": () => transformObjectSuper,\n \"transform-optional-catch-binding\": () => transformOptionalCatchBinding,\n \"transform-optional-chaining\": () => transformOptionalChaining,\n \"transform-parameters\": () => transformParameters,\n \"transform-private-methods\": () => transformPrivateMethods,\n \"transform-private-property-in-object\": () =>\n transformPrivatePropertyInObject,\n \"transform-property-literals\": () => transformPropertyLiterals,\n \"transform-regenerator\": () => transformRegenerator,\n \"transform-regexp-modifiers\": () => transformRegExpModifiers,\n \"transform-reserved-words\": () => transformReservedWords,\n \"transform-shorthand-properties\": () => transformShorthandProperties,\n \"transform-spread\": () => transformSpread,\n \"transform-sticky-regex\": () => transformStickyRegex,\n \"transform-template-literals\": () => transformTemplateLiterals,\n \"transform-typeof-symbol\": () => transformTypeofSymbol,\n \"transform-unicode-escapes\": () => transformUnicodeEscapes,\n \"transform-unicode-property-regex\": () => transformUnicodePropertyRegex,\n \"transform-unicode-regex\": () => transformUnicodeRegex,\n \"transform-unicode-sets-regex\": () => transformUnicodeSetsRegex,\n};\n\nexport const minVersions = {};\n// TODO(Babel 8): Remove this\nexport let legacyBabel7SyntaxPlugins: Set;\n\nif (!process.env.BABEL_8_BREAKING) {\n /* eslint-disable no-restricted-globals */\n\n Object.assign(minVersions, {\n \"bugfix/transform-safari-id-destructuring-collision-in-function-expression\":\n \"7.16.0\",\n \"bugfix/transform-v8-static-class-fields-redefine-readonly\": \"7.12.0\",\n \"syntax-import-attributes\": \"7.22.0\",\n \"transform-class-static-block\": \"7.12.0\",\n \"transform-duplicate-named-capturing-groups-regex\": \"7.19.0\",\n \"transform-explicit-resource-management\": \"7.23.9\",\n \"transform-private-property-in-object\": \"7.10.0\",\n \"transform-regexp-modifiers\": \"7.19.0\",\n });\n\n // This is a factory to create a plugin that enables a parser plugin\n const syntax =\n (name: ParserPlugin) => (): typeof transformJsonStrings => () => ({\n manipulateOptions: (_, p) => p.plugins.push(name),\n });\n type ParserPlugin = Parameters<\n ReturnType[\"manipulateOptions\"]\n >[1][\"plugins\"][number];\n\n const legacyBabel7SyntaxPluginsLoaders = {\n \"syntax-async-generators\": syntax(\"asyncGenerators\"),\n \"syntax-class-properties\": syntax(\"classProperties\"),\n \"syntax-class-static-block\": syntax(\"classStaticBlock\"),\n \"syntax-dynamic-import\": syntax(\"dynamicImport\"),\n \"syntax-explicit-resource-management\": syntax(\"explicitResourceManagement\"),\n \"syntax-export-namespace-from\": syntax(\"exportNamespaceFrom\"),\n \"syntax-import-meta\": syntax(\"importMeta\"),\n \"syntax-json-strings\": syntax(\"jsonStrings\"),\n \"syntax-logical-assignment-operators\": syntax(\"logicalAssignment\"),\n \"syntax-nullish-coalescing-operator\": syntax(\"nullishCoalescingOperator\"),\n \"syntax-numeric-separator\": syntax(\"numericSeparator\"),\n \"syntax-object-rest-spread\": syntax(\"objectRestSpread\"),\n \"syntax-optional-catch-binding\": syntax(\"optionalCatchBinding\"),\n \"syntax-optional-chaining\": syntax(\"optionalChaining\"),\n \"syntax-private-property-in-object\": syntax(\"privateIn\"),\n \"syntax-top-level-await\": syntax(\"topLevelAwait\"),\n\n // These plugins have more logic than just enabling/disabling a feature\n // eslint-disable-next-line sort-keys\n \"syntax-import-assertions\": () => syntaxImportAssertions,\n \"syntax-import-attributes\": () => syntaxImportAttributes,\n\n // These are CJS plugins that depend on a package from the monorepo, so it\n // breaks using ESM. Given that ESM builds are new enough to have this\n // syntax enabled by default, we can safely skip enabling it.\n\n \"syntax-unicode-sets-regex\":\n USE_ESM || IS_STANDALONE\n ? () => () => ({})\n : () => require(\"@babel/plugin-syntax-unicode-sets-regex\"),\n };\n\n Object.assign(availablePlugins, legacyBabel7SyntaxPluginsLoaders);\n\n legacyBabel7SyntaxPlugins = new Set(\n Object.keys(legacyBabel7SyntaxPluginsLoaders),\n );\n}\n"],"mappings":";;;;;;AAEA,IAAAA,6BAAA,GAAAC,OAAA;AACA,IAAAC,6BAAA,GAAAD,OAAA;AAEA,IAAAE,uCAAA,GAAAF,OAAA;AACA,IAAAG,gCAAA,GAAAH,OAAA;AACA,IAAAI,8BAAA,GAAAJ,OAAA;AACA,IAAAK,oCAAA,GAAAL,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AACA,IAAAO,uBAAA,GAAAP,OAAA;AACA,IAAAQ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xD,0BAA0B,EAAEC,CAAA,KAAMC,qCAAsB;EAMxD,2BAA2B,EAGrBC,CAAA,KAAMlN,OAAO,CAAC,yCAAyC;AAC/D,CAAC;AAEDoM,MAAM,CAACC,MAAM,CAACpI,gBAAgB,EAAE4I,gCAAgC,CAAC;AAEjE3I,OAAA,CAAAiI,yBAAA,GAAAA,yBAAyB,GAAG,IAAIgB,GAAG,CACjCf,MAAM,CAACgB,IAAI,CAACP,gCAAgC,CAC9C,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/debug.js b/node_modules/@babel/preset-env/lib/debug.js new file mode 100644 index 0000000000000000000000000000000000000000..f4cc9e46df7272e090b88bb59815612d48dd5648 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/debug.js @@ -0,0 +1,35 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.logPlugin = void 0; +var _helperCompilationTargets = require("@babel/helper-compilation-targets"); +const compatData = require("@babel/compat-data/plugins"); +const logPlugin = (item, targetVersions, list) => { + const filteredList = (0, _helperCompilationTargets.getInclusionReasons)(item, targetVersions, list); + const support = list[item]; + if (item.startsWith("transform-")) { + const proposalName = `proposal-${item.slice(10)}`; + if (proposalName === "proposal-dynamic-import" || hasOwnProperty.call(compatData, proposalName)) { + item = proposalName; + } + } + if (!support) { + console.log(` ${item}`); + return; + } + let formattedTargets = `{`; + let first = true; + for (const target of Object.keys(filteredList)) { + if (!first) formattedTargets += `,`; + first = false; + formattedTargets += ` ${target}`; + if (support[target]) formattedTargets += ` < ${support[target]}`; + } + formattedTargets += ` }`; + console.log(` ${item} ${formattedTargets}`); +}; +exports.logPlugin = logPlugin; + +//# sourceMappingURL=debug.js.map diff --git a/node_modules/@babel/preset-env/lib/debug.js.map b/node_modules/@babel/preset-env/lib/debug.js.map new file mode 100644 index 0000000000000000000000000000000000000000..79e659e81c291e8680894f9bf0883c2f3b81e9ac --- /dev/null +++ b/node_modules/@babel/preset-env/lib/debug.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperCompilationTargets","require","compatData","logPlugin","item","targetVersions","list","filteredList","getInclusionReasons","support","startsWith","proposalName","slice","hasOwnProperty","call","console","log","formattedTargets","first","target","Object","keys","exports"],"sources":["../src/debug.ts"],"sourcesContent":["import {\n getInclusionReasons,\n type Targets,\n type Target,\n} from \"@babel/helper-compilation-targets\";\nimport compatData from \"@babel/compat-data/plugins\" with { type: \"json\" };\n\n// Outputs a message that shows which target(s) caused an item to be included:\n// transform-foo { \"edge\":\"13\", \"firefox\":\"49\", \"ie\":\"10\" }\nexport const logPlugin = (\n item: string,\n targetVersions: Targets,\n list: Record,\n) => {\n const filteredList = getInclusionReasons(item, targetVersions, list);\n\n const support = list[item];\n\n if (!process.env.BABEL_8_BREAKING) {\n // It's needed to keep outputting proposal- in the debug log.\n if (item.startsWith(\"transform-\")) {\n const proposalName = `proposal-${item.slice(10)}`;\n if (\n proposalName === \"proposal-dynamic-import\" ||\n Object.hasOwn(compatData, proposalName)\n ) {\n item = proposalName;\n }\n }\n }\n\n if (!support) {\n console.log(` ${item}`);\n return;\n }\n\n let formattedTargets = `{`;\n let first = true;\n for (const target of Object.keys(filteredList) as Target[]) {\n if (!first) formattedTargets += `,`;\n first = false;\n formattedTargets += ` ${target}`;\n if (support[target]) formattedTargets += ` < ${support[target]}`;\n }\n formattedTargets += ` }`;\n\n console.log(` ${item} ${formattedTargets}`);\n};\n"],"mappings":";;;;;;AAAA,IAAAA,yBAAA,GAAAC,OAAA;AAI2C,MACpCC,UAAU,GAAAD,OAAA,CAAM,4BAA4B;AAI5C,MAAME,SAAS,GAAGA,CACvBC,IAAY,EACZC,cAAuB,EACvBC,IAA6B,KAC1B;EACH,MAAMC,YAAY,GAAG,IAAAC,6CAAmB,EAACJ,IAAI,EAAEC,cAAc,EAAEC,IAAI,CAAC;EAEpE,MAAMG,OAAO,GAAGH,IAAI,CAACF,IAAI,CAAC;EAIxB,IAAIA,IAAI,CAACM,UAAU,CAAC,YAAY,CAAC,EAAE;IACjC,MAAMC,YAAY,GAAG,YAAYP,IAAI,CAACQ,KAAK,CAAC,EAAE,CAAC,EAAE;IACjD,IACED,YAAY,KAAK,yBAAyB,IAC1CE,cAAA,CAAAC,IAAA,CAAcZ,UAAU,EAAES,YAAY,CAAC,EACvC;MACAP,IAAI,GAAGO,YAAY;IACrB;EACF;EAGF,IAAI,CAACF,OAAO,EAAE;IACZM,OAAO,CAACC,GAAG,CAAC,KAAKZ,IAAI,EAAE,CAAC;IACxB;EACF;EAEA,IAAIa,gBAAgB,GAAG,GAAG;EAC1B,IAAIC,KAAK,GAAG,IAAI;EAChB,KAAK,MAAMC,MAAM,IAAIC,MAAM,CAACC,IAAI,CAACd,YAAY,CAAC,EAAc;IAC1D,IAAI,CAACW,KAAK,EAAED,gBAAgB,IAAI,GAAG;IACnCC,KAAK,GAAG,KAAK;IACbD,gBAAgB,IAAI,IAAIE,MAAM,EAAE;IAChC,IAAIV,OAAO,CAACU,MAAM,CAAC,EAAEF,gBAAgB,IAAI,MAAMR,OAAO,CAACU,MAAM,CAAC,EAAE;EAClE;EACAF,gBAAgB,IAAI,IAAI;EAExBF,OAAO,CAACC,GAAG,CAAC,KAAKZ,IAAI,IAAIa,gBAAgB,EAAE,CAAC;AAC9C,CAAC;AAACK,OAAA,CAAAnB,SAAA,GAAAA,SAAA","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/filter-items.js b/node_modules/@babel/preset-env/lib/filter-items.js new file mode 100644 index 0000000000000000000000000000000000000000..eeb19f2fd1575dd0e11c06cd16e2fd4459784115 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/filter-items.js @@ -0,0 +1,32 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.addProposalSyntaxPlugins = addProposalSyntaxPlugins; +exports.removeUnnecessaryItems = removeUnnecessaryItems; +exports.removeUnsupportedItems = removeUnsupportedItems; +var _semver = require("semver"); +var _availablePlugins = require("./available-plugins.js"); +function addProposalSyntaxPlugins(items, proposalSyntaxPlugins) { + proposalSyntaxPlugins.forEach(plugin => { + items.add(plugin); + }); +} +function removeUnnecessaryItems(items, overlapping) { + items.forEach(item => { + var _overlapping$item; + (_overlapping$item = overlapping[item]) == null || _overlapping$item.forEach(name => items.delete(name)); + }); +} +function removeUnsupportedItems(items, babelVersion) { + items.forEach(item => { + if (hasOwnProperty.call(_availablePlugins.minVersions, item) && _semver.lt(babelVersion, _availablePlugins.minVersions[item])) { + items.delete(item); + } else if (babelVersion.startsWith("8") && _availablePlugins.legacyBabel7SyntaxPlugins.has(item)) { + items.delete(item); + } + }); +} + +//# sourceMappingURL=filter-items.js.map diff --git a/node_modules/@babel/preset-env/lib/filter-items.js.map b/node_modules/@babel/preset-env/lib/filter-items.js.map new file mode 100644 index 0000000000000000000000000000000000000000..d79652f10e6faad012f84026b2eb5905f722211c --- /dev/null +++ b/node_modules/@babel/preset-env/lib/filter-items.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_semver","require","_availablePlugins","addProposalSyntaxPlugins","items","proposalSyntaxPlugins","forEach","plugin","add","removeUnnecessaryItems","overlapping","item","_overlapping$item","name","delete","removeUnsupportedItems","babelVersion","hasOwnProperty","call","minVersions","semver","lt","startsWith","legacyBabel7SyntaxPlugins","has"],"sources":["../src/filter-items.ts"],"sourcesContent":["import semver from \"semver\";\nimport { minVersions, legacyBabel7SyntaxPlugins } from \"./available-plugins.ts\";\n\nexport function addProposalSyntaxPlugins(\n items: Set,\n proposalSyntaxPlugins: readonly string[],\n) {\n proposalSyntaxPlugins.forEach(plugin => {\n items.add(plugin);\n });\n}\nexport function removeUnnecessaryItems(\n items: Set,\n overlapping: Record,\n) {\n items.forEach(item => {\n overlapping[item]?.forEach(name => items.delete(name));\n });\n}\nexport function removeUnsupportedItems(\n items: Set,\n babelVersion: string,\n) {\n items.forEach(item => {\n if (\n Object.hasOwn(minVersions, item) &&\n semver.lt(\n babelVersion,\n // @ts-expect-error we have checked minVersions[item] in has call\n minVersions[item],\n )\n ) {\n items.delete(item);\n } else if (\n !process.env.BABEL_8_BREAKING &&\n babelVersion.startsWith(\"8\") &&\n legacyBabel7SyntaxPlugins.has(item)\n ) {\n items.delete(item);\n }\n });\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAEO,SAASE,wBAAwBA,CACtCC,KAAkB,EAClBC,qBAAwC,EACxC;EACAA,qBAAqB,CAACC,OAAO,CAACC,MAAM,IAAI;IACtCH,KAAK,CAACI,GAAG,CAACD,MAAM,CAAC;EACnB,CAAC,CAAC;AACJ;AACO,SAASE,sBAAsBA,CACpCL,KAAkB,EAClBM,WAAqC,EACrC;EACAN,KAAK,CAACE,OAAO,CAACK,IAAI,IAAI;IAAA,IAAAC,iBAAA;IACpB,CAAAA,iBAAA,GAAAF,WAAW,CAACC,IAAI,CAAC,aAAjBC,iBAAA,CAAmBN,OAAO,CAACO,IAAI,IAAIT,KAAK,CAACU,MAAM,CAACD,IAAI,CAAC,CAAC;EACxD,CAAC,CAAC;AACJ;AACO,SAASE,sBAAsBA,CACpCX,KAAkB,EAClBY,YAAoB,EACpB;EACAZ,KAAK,CAACE,OAAO,CAACK,IAAI,IAAI;IACpB,IACEM,cAAA,CAAAC,IAAA,CAAcC,6BAAW,EAAER,IAAI,CAAC,IAChCS,OAAM,CAACC,EAAE,CACPL,YAAY,EAEZG,6BAAW,CAACR,IAAI,CAClB,CAAC,EACD;MACAP,KAAK,CAACU,MAAM,CAACH,IAAI,CAAC;IACpB,CAAC,MAAM,IAELK,YAAY,CAACM,UAAU,CAAC,GAAG,CAAC,IAC5BC,2CAAyB,CAACC,GAAG,CAACb,IAAI,CAAC,EACnC;MACAP,KAAK,CAACU,MAAM,CAACH,IAAI,CAAC;IACpB;EACF,CAAC,CAAC;AACJ","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/index.js b/node_modules/@babel/preset-env/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..65b087491df6cbd0437f449327c11d736787dd35 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/index.js @@ -0,0 +1,321 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +exports.isPluginRequired = isPluginRequired; +exports.transformIncludesAndExcludes = void 0; +var _semver = require("semver"); +var _debug = require("./debug.js"); +var _filterItems = require("./filter-items.js"); +var _moduleTransformations = require("./module-transformations.js"); +var _normalizeOptions = require("./normalize-options.js"); +var _shippedProposals = require("./shipped-proposals.js"); +var _pluginsCompatData = require("./plugins-compat-data.js"); +var _babelPluginPolyfillCorejs = require("babel-plugin-polyfill-corejs3"); +var _babel7Plugins = require("./polyfills/babel-7-plugins.cjs"); +var _helperCompilationTargets = require("@babel/helper-compilation-targets"); +var _availablePlugins = require("./available-plugins.js"); +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +const pluginCoreJS3 = _babelPluginPolyfillCorejs.default || _babelPluginPolyfillCorejs; +function isPluginRequired(targets, support) { + return (0, _helperCompilationTargets.isRequired)("fake-name", targets, { + compatData: { + "fake-name": support + } + }); +} +function filterStageFromList(list, stageList) { + return Object.keys(list).reduce((result, item) => { + if (!stageList.has(item)) { + result[item] = list[item]; + } + return result; + }, {}); +} +const pluginsListWithProposals = Object.assign({}, _pluginsCompatData.plugins, _pluginsCompatData.pluginsBugfixes); +const pluginsListWithoutProposals = filterStageFromList(pluginsListWithProposals, _shippedProposals.proposalPlugins); +var pluginsListNoBugfixesWithProposals = _pluginsCompatData.plugins; +var pluginsListNoBugfixesWithoutProposals = filterStageFromList(_pluginsCompatData.plugins, _shippedProposals.proposalPlugins); +const getPlugin = pluginName => { + const plugin = _availablePlugins.default[pluginName](); + if (!plugin) { + throw new Error(`Could not find plugin "${pluginName}". Ensure there is an entry in ./available-plugins.js for it.`); + } + return plugin; +}; +const transformIncludesAndExcludes = opts => { + return opts.reduce((result, opt) => { + const target = /^(?:es|es6|es7|esnext|web)\./.test(opt) ? "builtIns" : "plugins"; + result[target].add(opt); + return result; + }, { + all: opts, + plugins: new Set(), + builtIns: new Set() + }); +}; +exports.transformIncludesAndExcludes = transformIncludesAndExcludes; +function getSpecialModulesPluginNames(modules, shouldTransformDynamicImport, babelVersion) { + const modulesPluginNames = []; + if (modules) { + modulesPluginNames.push(_moduleTransformations.default[modules]); + } + if (shouldTransformDynamicImport) { + if (modules && modules !== "umd") { + modulesPluginNames.push("transform-dynamic-import"); + } else { + console.warn("Dynamic import can only be transformed when transforming ES" + " modules to AMD, CommonJS or SystemJS."); + } + } + if (!babelVersion.startsWith("8")) { + if (!shouldTransformDynamicImport) { + modulesPluginNames.push("syntax-dynamic-import"); + } + modulesPluginNames.push("syntax-top-level-await"); + modulesPluginNames.push("syntax-import-meta"); + } + return modulesPluginNames; +} +const getCoreJSOptions = ({ + useBuiltIns, + corejs, + polyfillTargets, + include, + exclude, + proposals, + shippedProposals, + debug +}) => ({ + method: `${useBuiltIns}-global`, + version: corejs ? corejs.toString() : undefined, + targets: polyfillTargets, + include, + exclude, + proposals, + shippedProposals, + debug, + "#__secret_key__@babel/preset-env__compatibility": { + noRuntimeName: true + } +}); +var getPolyfillPlugins = ({ + useBuiltIns, + corejs, + polyfillTargets, + include, + exclude, + proposals, + shippedProposals, + regenerator, + debug +}) => { + const polyfillPlugins = []; + if (useBuiltIns === "usage" || useBuiltIns === "entry") { + const pluginOptions = getCoreJSOptions({ + useBuiltIns, + corejs, + polyfillTargets, + include, + exclude, + proposals, + shippedProposals, + debug + }); + if (corejs) { + if (useBuiltIns === "usage") { + if (corejs.major === 2) { + polyfillPlugins.push([_babel7Plugins.pluginCoreJS2, pluginOptions], [_babel7Plugins.legacyBabelPolyfillPlugin, { + usage: true + }]); + } else { + polyfillPlugins.push([pluginCoreJS3, pluginOptions], [_babel7Plugins.legacyBabelPolyfillPlugin, { + usage: true, + deprecated: true + }]); + } + if (regenerator) { + polyfillPlugins.push([_babel7Plugins.pluginRegenerator, { + method: "usage-global", + debug + }]); + } + } else { + if (corejs.major === 2) { + polyfillPlugins.push([_babel7Plugins.legacyBabelPolyfillPlugin, { + regenerator + }], [_babel7Plugins.pluginCoreJS2, pluginOptions]); + } else { + polyfillPlugins.push([pluginCoreJS3, pluginOptions], [_babel7Plugins.legacyBabelPolyfillPlugin, { + deprecated: true + }]); + if (!regenerator) { + polyfillPlugins.push([_babel7Plugins.removeRegeneratorEntryPlugin, pluginOptions]); + } + } + } + } + } + return polyfillPlugins; +}; +exports.getPolyfillPlugins = getPolyfillPlugins; +function getLocalTargets(optionsTargets, ignoreBrowserslistConfig, configPath, browserslistEnv, api) { + if (optionsTargets != null && optionsTargets.esmodules && optionsTargets.browsers) { + console.warn(` +@babel/preset-env: esmodules and browsers targets have been specified together. +\`browsers\` target, \`${optionsTargets.browsers.toString()}\` will be ignored. +`); + } + return (0, _helperCompilationTargets.default)(optionsTargets, { + ignoreBrowserslistConfig, + configPath, + browserslistEnv, + onBrowserslistConfigFound(config) { + api.addExternalDependency(config); + } + }); +} +function supportsStaticESM(caller) { + return !!(caller != null && caller.supportsStaticESM); +} +function supportsDynamicImport(caller) { + return !!(caller != null && caller.supportsDynamicImport); +} +function supportsExportNamespaceFrom(caller) { + return !!(caller != null && caller.supportsExportNamespaceFrom); +} +var _default = exports.default = (0, _helperPluginUtils.declarePreset)((api, opts) => { + api.assertVersion(7); + const babelTargets = api.targets(); + const { + configPath, + debug, + exclude: optionsExclude, + forceAllTransforms, + ignoreBrowserslistConfig, + include: optionsInclude, + modules: optionsModules, + shippedProposals, + targets: optionsTargets, + useBuiltIns, + corejs: { + version: corejs, + proposals + }, + browserslistEnv + } = (0, _normalizeOptions.default)(opts); + var { + loose, + spec = false, + bugfixes = false + } = opts; + let targets = babelTargets; + if (_semver.lt(api.version, "7.13.0") || opts.targets || opts.configPath || opts.browserslistEnv || opts.ignoreBrowserslistConfig) { + var hasUglifyTarget = false; + if (optionsTargets != null && optionsTargets.uglify) { + hasUglifyTarget = true; + delete optionsTargets.uglify; + console.warn(` +The uglify target has been deprecated. Set the top level +option \`forceAllTransforms: true\` instead. +`); + } + targets = getLocalTargets(optionsTargets, ignoreBrowserslistConfig, configPath, browserslistEnv, api); + } + const transformTargets = forceAllTransforms || hasUglifyTarget ? {} : targets; + const include = transformIncludesAndExcludes(optionsInclude); + const exclude = transformIncludesAndExcludes(optionsExclude); + const compatData = bugfixes ? shippedProposals ? pluginsListWithProposals : pluginsListWithoutProposals : shippedProposals ? pluginsListNoBugfixesWithProposals : pluginsListNoBugfixesWithoutProposals; + const modules = optionsModules === "auto" ? api.caller(supportsStaticESM) ? false : "commonjs" : optionsModules; + const shouldTransformDynamicImport = optionsModules === "auto" ? !api.caller(supportsDynamicImport) : !!modules; + if (!exclude.plugins.has("transform-export-namespace-from") && (optionsModules === "auto" ? !api.caller(supportsExportNamespaceFrom) : !!modules)) { + include.plugins.add("transform-export-namespace-from"); + } + const pluginNames = (0, _helperCompilationTargets.filterItems)(compatData, include.plugins, exclude.plugins, transformTargets, getSpecialModulesPluginNames(modules, shouldTransformDynamicImport, api.version), !loose ? undefined : ["transform-typeof-symbol"], _shippedProposals.pluginSyntaxMap); + if (shippedProposals) { + (0, _filterItems.addProposalSyntaxPlugins)(pluginNames, _shippedProposals.proposalSyntaxPlugins); + } + (0, _filterItems.removeUnsupportedItems)(pluginNames, api.version); + (0, _filterItems.removeUnnecessaryItems)(pluginNames, _pluginsCompatData.overlappingPlugins); + const polyfillPlugins = getPolyfillPlugins({ + useBuiltIns, + corejs, + polyfillTargets: targets, + include: include.builtIns, + exclude: exclude.builtIns, + proposals, + shippedProposals, + regenerator: pluginNames.has("transform-regenerator"), + debug + }); + const pluginUseBuiltIns = useBuiltIns !== false; + const plugins = Array.from(pluginNames).map(pluginName => { + if (pluginName === "transform-class-properties" || pluginName === "transform-private-methods" || pluginName === "transform-private-property-in-object") { + return [getPlugin(pluginName), { + loose: loose ? "#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error" : "#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error" + }]; + } + if (pluginName === "syntax-import-attributes") { + return [getPlugin(pluginName), { + deprecatedAssertSyntax: true + }]; + } + return [getPlugin(pluginName), { + spec, + loose, + useBuiltIns: pluginUseBuiltIns + }]; + }).concat(polyfillPlugins); + if (debug) { + console.log("@babel/preset-env: `DEBUG` option"); + console.log("\nUsing targets:"); + console.log(JSON.stringify((0, _helperCompilationTargets.prettifyTargets)(targets), null, 2)); + console.log(`\nUsing modules transform: ${optionsModules.toString()}`); + console.log("\nUsing plugins:"); + pluginNames.forEach(pluginName => { + (0, _debug.logPlugin)(pluginName, targets, compatData); + }); + if (!useBuiltIns) { + console.log("\nUsing polyfills: No polyfills were added, since the `useBuiltIns` option was not set."); + } + } + return { + plugins + }; +}); +exports.getModulesPluginNames = ({ + modules, + transformations, + shouldTransformESM, + shouldTransformDynamicImport, + shouldTransformExportNamespaceFrom +}) => { + const modulesPluginNames = []; + if (modules !== false && transformations[modules]) { + if (shouldTransformESM) { + modulesPluginNames.push(transformations[modules]); + } + if (shouldTransformDynamicImport) { + if (shouldTransformESM && modules !== "umd") { + modulesPluginNames.push("transform-dynamic-import"); + } else { + console.warn("Dynamic import can only be transformed when transforming ES" + " modules to AMD, CommonJS or SystemJS."); + } + } + } + if (shouldTransformExportNamespaceFrom) { + modulesPluginNames.push("transform-export-namespace-from"); + } + if (!shouldTransformDynamicImport) { + modulesPluginNames.push("syntax-dynamic-import"); + } + if (!shouldTransformExportNamespaceFrom) { + modulesPluginNames.push("syntax-export-namespace-from"); + } + modulesPluginNames.push("syntax-top-level-await"); + modulesPluginNames.push("syntax-import-meta"); + return modulesPluginNames; +}; + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/preset-env/lib/index.js.map b/node_modules/@babel/preset-env/lib/index.js.map new file mode 100644 index 0000000000000000000000000000000000000000..4d0dc9ef4502da2a49909f00a600b0356edecd16 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_semver","require","_debug","_filterItems","_moduleTransformations","_normalizeOptions","_shippedProposals","_pluginsCompatData","_babelPluginPolyfillCorejs","_babel7Plugins","_helperCompilationTargets","_availablePlugins","_helperPluginUtils","pluginCoreJS3","_pluginCoreJS3","default","isPluginRequired","targets","support","isRequired","compatData","filterStageFromList","list","stageList","Object","keys","reduce","result","item","has","pluginsListWithProposals","assign","pluginsList","pluginsBugfixesList","pluginsListWithoutProposals","proposalPlugins","pluginsListNoBugfixesWithProposals","pluginsListNoBugfixesWithoutProposals","getPlugin","pluginName","plugin","availablePlugins","Error","transformIncludesAndExcludes","opts","opt","target","test","add","all","plugins","Set","builtIns","exports","getSpecialModulesPluginNames","modules","shouldTransformDynamicImport","babelVersion","modulesPluginNames","push","moduleTransformations","console","warn","startsWith","getCoreJSOptions","useBuiltIns","corejs","polyfillTargets","include","exclude","proposals","shippedProposals","debug","method","version","toString","undefined","noRuntimeName","getPolyfillPlugins","regenerator","polyfillPlugins","pluginOptions","major","babel7","pluginCoreJS2","legacyBabelPolyfillPlugin","usage","deprecated","pluginRegenerator","removeRegeneratorEntryPlugin","getLocalTargets","optionsTargets","ignoreBrowserslistConfig","configPath","browserslistEnv","api","esmodules","browsers","getTargets","onBrowserslistConfigFound","config","addExternalDependency","supportsStaticESM","caller","supportsDynamicImport","supportsExportNamespaceFrom","_default","declarePreset","assertVersion","babelTargets","optionsExclude","forceAllTransforms","optionsInclude","optionsModules","normalizeOptions","loose","spec","bugfixes","semver","lt","hasUglifyTarget","uglify","transformTargets","pluginNames","filterItems","pluginSyntaxMap","addProposalSyntaxPlugins","proposalSyntaxPlugins","removeUnsupportedItems","removeUnnecessaryItems","overlappingPlugins","pluginUseBuiltIns","Array","from","map","deprecatedAssertSyntax","concat","log","JSON","stringify","prettifyTargets","forEach","logPlugin","getModulesPluginNames","transformations","shouldTransformESM","shouldTransformExportNamespaceFrom"],"sources":["../src/index.ts"],"sourcesContent":["import semver, { type SemVer } from \"semver\";\nimport { logPlugin } from \"./debug.ts\";\nimport {\n addProposalSyntaxPlugins,\n removeUnnecessaryItems,\n removeUnsupportedItems,\n} from \"./filter-items.ts\";\nimport moduleTransformations from \"./module-transformations.ts\";\nimport normalizeOptions from \"./normalize-options.ts\";\nimport {\n pluginSyntaxMap,\n proposalPlugins,\n proposalSyntaxPlugins,\n} from \"./shipped-proposals.ts\";\nimport {\n plugins as pluginsList,\n pluginsBugfixes as pluginsBugfixesList,\n overlappingPlugins,\n} from \"./plugins-compat-data.ts\";\n\nimport type { CallerMetadata, PluginItem, PresetAPI } from \"@babel/core\";\n\nimport _pluginCoreJS3 from \"babel-plugin-polyfill-corejs3\";\n// TODO(Babel 8): Just use the default import\nconst pluginCoreJS3 = (_pluginCoreJS3.default ||\n _pluginCoreJS3) as typeof _pluginCoreJS3.default;\n\nimport babel7 from \"./polyfills/babel-7-plugins.cjs\" with { if: \"!process.env.BABEL_8_BREAKING\" };\n\nimport getTargets, {\n prettifyTargets,\n filterItems,\n isRequired,\n} from \"@babel/helper-compilation-targets\";\nimport type { Targets, InputTargets } from \"@babel/helper-compilation-targets\";\nimport availablePlugins from \"./available-plugins.ts\";\nimport { declarePreset } from \"@babel/helper-plugin-utils\";\n\nimport type { BuiltInsOption, ModuleOption, Options } from \"./types.d.ts\";\nexport type { Options };\n\n// TODO: Remove in Babel 8\nexport function isPluginRequired(targets: Targets, support: Targets) {\n return isRequired(\"fake-name\", targets, {\n compatData: { \"fake-name\": support },\n });\n}\n\nfunction filterStageFromList(\n list: Record,\n stageList: Set,\n) {\n return Object.keys(list).reduce((result, item) => {\n if (!stageList.has(item)) {\n // @ts-expect-error todo: refine result types\n result[item] = list[item];\n }\n\n return result;\n }, {});\n}\n\nconst pluginsListWithProposals = Object.assign(\n {},\n pluginsList,\n pluginsBugfixesList,\n);\nconst pluginsListWithoutProposals = filterStageFromList(\n pluginsListWithProposals,\n proposalPlugins,\n);\n\nif (!process.env.BABEL_8_BREAKING) {\n // eslint-disable-next-line no-var\n var pluginsListNoBugfixesWithProposals = pluginsList;\n // eslint-disable-next-line no-var\n var pluginsListNoBugfixesWithoutProposals = filterStageFromList(\n pluginsList,\n proposalPlugins,\n );\n}\n\nconst getPlugin = (pluginName: string) => {\n const plugin =\n // @ts-expect-error plugin name is constructed from available plugin list\n availablePlugins[pluginName]();\n\n if (!plugin) {\n throw new Error(\n `Could not find plugin \"${pluginName}\". Ensure there is an entry in ./available-plugins.js for it.`,\n );\n }\n\n return plugin;\n};\n\nexport const transformIncludesAndExcludes = (opts: string[]): any => {\n return opts.reduce(\n (result, opt) => {\n const target = /^(?:es|es6|es7|esnext|web)\\./.test(opt)\n ? \"builtIns\"\n : \"plugins\";\n result[target].add(opt);\n return result;\n },\n {\n all: opts,\n plugins: new Set(),\n builtIns: new Set(),\n },\n );\n};\n\nfunction getSpecialModulesPluginNames(\n modules: Exclude,\n shouldTransformDynamicImport: boolean,\n babelVersion: string,\n) {\n const modulesPluginNames = [];\n if (modules) {\n modulesPluginNames.push(moduleTransformations[modules]);\n }\n\n if (shouldTransformDynamicImport) {\n if (modules && modules !== \"umd\") {\n modulesPluginNames.push(\"transform-dynamic-import\");\n } else {\n console.warn(\n \"Dynamic import can only be transformed when transforming ES\" +\n \" modules to AMD, CommonJS or SystemJS.\",\n );\n }\n }\n\n if (!process.env.BABEL_8_BREAKING && !babelVersion.startsWith(\"8\")) {\n // Enable module-related syntax plugins for older Babel versions\n if (!shouldTransformDynamicImport) {\n modulesPluginNames.push(\"syntax-dynamic-import\");\n }\n modulesPluginNames.push(\"syntax-top-level-await\");\n modulesPluginNames.push(\"syntax-import-meta\");\n }\n\n return modulesPluginNames;\n}\n\nconst getCoreJSOptions = ({\n useBuiltIns,\n corejs,\n polyfillTargets,\n include,\n exclude,\n proposals,\n shippedProposals,\n debug,\n}: {\n useBuiltIns: BuiltInsOption;\n corejs: SemVer | null | false;\n polyfillTargets: Targets;\n include: Set;\n exclude: Set;\n proposals: boolean;\n shippedProposals: boolean;\n debug: boolean;\n}) => ({\n method: `${useBuiltIns}-global`,\n version: corejs ? corejs.toString() : undefined,\n targets: polyfillTargets,\n include,\n exclude,\n proposals,\n shippedProposals,\n debug,\n \"#__secret_key__@babel/preset-env__compatibility\": {\n noRuntimeName: true,\n },\n});\n\nif (!process.env.BABEL_8_BREAKING) {\n // eslint-disable-next-line no-var\n var getPolyfillPlugins = ({\n useBuiltIns,\n corejs,\n polyfillTargets,\n include,\n exclude,\n proposals,\n shippedProposals,\n regenerator,\n debug,\n }: {\n useBuiltIns: BuiltInsOption;\n corejs: SemVer | null | false;\n polyfillTargets: Targets;\n include: Set;\n exclude: Set;\n proposals: boolean;\n shippedProposals: boolean;\n regenerator: boolean;\n debug: boolean;\n }) => {\n const polyfillPlugins: PluginItem[] = [];\n if (useBuiltIns === \"usage\" || useBuiltIns === \"entry\") {\n const pluginOptions = getCoreJSOptions({\n useBuiltIns,\n corejs,\n polyfillTargets,\n include,\n exclude,\n proposals,\n shippedProposals,\n debug,\n });\n\n if (corejs) {\n if (process.env.BABEL_8_BREAKING) {\n polyfillPlugins.push([pluginCoreJS3, pluginOptions]);\n } else {\n if (useBuiltIns === \"usage\") {\n if (corejs.major === 2) {\n polyfillPlugins.push(\n [babel7.pluginCoreJS2, pluginOptions],\n [babel7.legacyBabelPolyfillPlugin, { usage: true }],\n );\n } else {\n polyfillPlugins.push(\n [pluginCoreJS3, pluginOptions],\n [\n babel7.legacyBabelPolyfillPlugin,\n { usage: true, deprecated: true },\n ],\n );\n }\n if (regenerator) {\n polyfillPlugins.push([\n babel7.pluginRegenerator,\n { method: \"usage-global\", debug },\n ]);\n }\n } else {\n if (corejs.major === 2) {\n polyfillPlugins.push(\n [babel7.legacyBabelPolyfillPlugin, { regenerator }],\n [babel7.pluginCoreJS2, pluginOptions],\n );\n } else {\n polyfillPlugins.push(\n [pluginCoreJS3, pluginOptions],\n [babel7.legacyBabelPolyfillPlugin, { deprecated: true }],\n );\n if (!regenerator) {\n polyfillPlugins.push([\n babel7.removeRegeneratorEntryPlugin,\n pluginOptions,\n ]);\n }\n }\n }\n }\n }\n }\n return polyfillPlugins;\n };\n\n if (!USE_ESM) {\n // eslint-disable-next-line no-restricted-globals\n exports.getPolyfillPlugins = getPolyfillPlugins;\n }\n}\n\nfunction getLocalTargets(\n optionsTargets: Options[\"targets\"],\n ignoreBrowserslistConfig: boolean,\n configPath: string,\n browserslistEnv: string,\n api: PresetAPI,\n) {\n if (optionsTargets?.esmodules && optionsTargets.browsers) {\n console.warn(`\n@babel/preset-env: esmodules and browsers targets have been specified together.\n\\`browsers\\` target, \\`${optionsTargets.browsers.toString()}\\` will be ignored.\n`);\n }\n\n return getTargets(optionsTargets as InputTargets, {\n ignoreBrowserslistConfig,\n configPath,\n browserslistEnv,\n onBrowserslistConfigFound(config) {\n api.addExternalDependency(config);\n },\n });\n}\n\nfunction supportsStaticESM(caller: CallerMetadata | undefined) {\n // TODO(Babel 8): Fallback to true\n return !!caller?.supportsStaticESM;\n}\n\nfunction supportsDynamicImport(caller: CallerMetadata | undefined) {\n // TODO(Babel 8): Fallback to true\n return !!caller?.supportsDynamicImport;\n}\n\nfunction supportsExportNamespaceFrom(caller: CallerMetadata | undefined) {\n // TODO(Babel 8): Fallback to null\n return !!caller?.supportsExportNamespaceFrom;\n}\n\nexport default declarePreset((api, opts: Options) => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const babelTargets = api.targets();\n\n if (process.env.BABEL_8_BREAKING && (\"loose\" in opts || \"spec\" in opts)) {\n throw new Error(\n \"@babel/preset-env: The 'loose' and 'spec' options have been removed, \" +\n \"and you should configure granular compiler assumptions instead. See \" +\n \"https://babeljs.io/assumptions for more information.\",\n );\n }\n\n const {\n configPath,\n debug,\n exclude: optionsExclude,\n forceAllTransforms,\n ignoreBrowserslistConfig,\n include: optionsInclude,\n modules: optionsModules,\n shippedProposals,\n targets: optionsTargets,\n useBuiltIns,\n corejs: { version: corejs, proposals },\n browserslistEnv,\n } = normalizeOptions(opts);\n\n if (!process.env.BABEL_8_BREAKING) {\n // eslint-disable-next-line no-var\n var { loose, spec = false, bugfixes = false } = opts;\n }\n\n let targets = babelTargets;\n\n if (\n // @babel/core < 7.13.0 doesn't load targets (api.targets() always\n // returns {} thanks to @babel/helper-plugin-utils), so we always want\n // to fallback to the old targets behavior in this case.\n semver.lt(api.version, \"7.13.0\") ||\n // If any browserslist-related option is specified, fallback to the old\n // behavior of not using the targets specified in the top-level options.\n opts.targets ||\n opts.configPath ||\n opts.browserslistEnv ||\n opts.ignoreBrowserslistConfig\n ) {\n if (!process.env.BABEL_8_BREAKING) {\n // eslint-disable-next-line no-var\n var hasUglifyTarget = false;\n\n if (optionsTargets?.uglify) {\n hasUglifyTarget = true;\n delete optionsTargets.uglify;\n\n console.warn(`\nThe uglify target has been deprecated. Set the top level\noption \\`forceAllTransforms: true\\` instead.\n`);\n }\n }\n\n targets = getLocalTargets(\n optionsTargets,\n ignoreBrowserslistConfig,\n configPath,\n browserslistEnv,\n api,\n );\n }\n\n const transformTargets = (\n process.env.BABEL_8_BREAKING\n ? forceAllTransforms\n : forceAllTransforms || hasUglifyTarget\n )\n ? ({} as Targets)\n : targets;\n\n const include = transformIncludesAndExcludes(optionsInclude);\n const exclude = transformIncludesAndExcludes(optionsExclude);\n\n const compatData =\n process.env.BABEL_8_BREAKING || bugfixes\n ? shippedProposals\n ? pluginsListWithProposals\n : pluginsListWithoutProposals\n : shippedProposals\n ? pluginsListNoBugfixesWithProposals\n : pluginsListNoBugfixesWithoutProposals;\n const modules =\n optionsModules === \"auto\"\n ? api.caller(supportsStaticESM)\n ? false\n : \"commonjs\"\n : optionsModules;\n const shouldTransformDynamicImport =\n optionsModules === \"auto\" ? !api.caller(supportsDynamicImport) : !!modules;\n\n // If the caller does not support export-namespace-from, we forcefully add\n // the plugin to `includes`.\n // TODO(Babel 8): stop doing this, similarly to how we don't do this for any\n // other plugin. We can consider adding bundlers as targets in the future,\n // but we should not have a one-off special case for this plugin.\n if (\n !exclude.plugins.has(\"transform-export-namespace-from\") &&\n (optionsModules === \"auto\"\n ? !api.caller(supportsExportNamespaceFrom)\n : !!modules)\n ) {\n include.plugins.add(\"transform-export-namespace-from\");\n }\n\n const pluginNames = filterItems(\n compatData,\n include.plugins,\n exclude.plugins,\n transformTargets,\n getSpecialModulesPluginNames(\n modules,\n shouldTransformDynamicImport,\n api.version,\n ),\n process.env.BABEL_8_BREAKING || !loose\n ? undefined\n : [\"transform-typeof-symbol\"],\n pluginSyntaxMap,\n );\n if (shippedProposals) {\n addProposalSyntaxPlugins(pluginNames, proposalSyntaxPlugins);\n }\n removeUnsupportedItems(pluginNames, api.version);\n removeUnnecessaryItems(pluginNames, overlappingPlugins);\n\n const polyfillPlugins: PluginItem[] = process.env.BABEL_8_BREAKING\n ? useBuiltIns\n ? [\n [\n pluginCoreJS3,\n getCoreJSOptions({\n useBuiltIns,\n corejs,\n polyfillTargets: targets,\n include: include.builtIns,\n exclude: exclude.builtIns,\n proposals,\n shippedProposals,\n debug,\n }),\n ],\n ]\n : []\n : getPolyfillPlugins({\n useBuiltIns,\n corejs,\n polyfillTargets: targets,\n include: include.builtIns,\n exclude: exclude.builtIns,\n proposals,\n shippedProposals,\n regenerator: pluginNames.has(\"transform-regenerator\"),\n debug,\n });\n\n const pluginUseBuiltIns = useBuiltIns !== false;\n const plugins = Array.from(pluginNames)\n .map((pluginName): PluginItem => {\n if (\n !process.env.BABEL_8_BREAKING &&\n (pluginName === \"transform-class-properties\" ||\n pluginName === \"transform-private-methods\" ||\n pluginName === \"transform-private-property-in-object\")\n ) {\n return [\n getPlugin(pluginName),\n {\n loose: loose\n ? \"#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error\"\n : \"#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error\",\n },\n ];\n }\n if (\n !process.env.BABEL_8_BREAKING &&\n pluginName === \"syntax-import-attributes\"\n ) {\n // For backward compatibility with the import-assertions plugin, we\n // allow the deprecated `assert` keyword.\n return [getPlugin(pluginName), { deprecatedAssertSyntax: true }];\n }\n return [\n getPlugin(pluginName),\n process.env.BABEL_8_BREAKING\n ? { useBuiltIns: pluginUseBuiltIns }\n : { spec, loose, useBuiltIns: pluginUseBuiltIns },\n ];\n })\n .concat(polyfillPlugins);\n\n if (debug) {\n console.log(\"@babel/preset-env: `DEBUG` option\");\n console.log(\"\\nUsing targets:\");\n console.log(JSON.stringify(prettifyTargets(targets), null, 2));\n console.log(`\\nUsing modules transform: ${optionsModules.toString()}`);\n console.log(\"\\nUsing plugins:\");\n pluginNames.forEach(pluginName => {\n logPlugin(pluginName, targets, compatData);\n });\n\n if (!useBuiltIns) {\n console.log(\n \"\\nUsing polyfills: No polyfills were added, since the `useBuiltIns` option was not set.\",\n );\n }\n }\n\n return { plugins };\n});\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n // eslint-disable-next-line no-restricted-globals\n exports.getModulesPluginNames = ({\n modules,\n transformations,\n shouldTransformESM,\n shouldTransformDynamicImport,\n shouldTransformExportNamespaceFrom,\n }: {\n modules: ModuleOption;\n transformations: typeof import(\"./module-transformations\").default;\n shouldTransformESM: boolean;\n shouldTransformDynamicImport: boolean;\n shouldTransformExportNamespaceFrom: boolean;\n }) => {\n const modulesPluginNames = [];\n if (modules !== false && transformations[modules]) {\n if (shouldTransformESM) {\n modulesPluginNames.push(transformations[modules]);\n }\n\n if (shouldTransformDynamicImport) {\n if (shouldTransformESM && modules !== \"umd\") {\n modulesPluginNames.push(\"transform-dynamic-import\");\n } else {\n console.warn(\n \"Dynamic import can only be transformed when transforming ES\" +\n \" modules to AMD, CommonJS or SystemJS.\",\n );\n }\n }\n }\n\n if (shouldTransformExportNamespaceFrom) {\n modulesPluginNames.push(\"transform-export-namespace-from\");\n }\n if (!shouldTransformDynamicImport) {\n modulesPluginNames.push(\"syntax-dynamic-import\");\n }\n if (!shouldTransformExportNamespaceFrom) {\n modulesPluginNames.push(\"syntax-export-namespace-from\");\n }\n modulesPluginNames.push(\"syntax-top-level-await\");\n modulesPluginNames.push(\"syntax-import-meta\");\n\n return modulesPluginNames;\n };\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAKA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AAKA,IAAAM,kBAAA,GAAAN,OAAA;AAQA,IAAAO,0BAAA,GAAAP,OAAA;AAKA,IAAAQ,cAAA,GAAAR,OAAA;AAEA,IAAAS,yBAAA,GAAAT,OAAA;AAMA,IAAAU,iBAAA,GAAAV,OAAA;AACA,IAAAW,kBAAA,GAAAX,OAAA;AAZA,MAAMY,aAAa,GAAIC,0BAAc,CAACC,OAAO,IAC3CD,0BAAgD;AAiB3C,SAASE,gBAAgBA,CAACC,OAAgB,EAAEC,OAAgB,EAAE;EACnE,OAAO,IAAAC,oCAAU,EAAC,WAAW,EAAEF,OAAO,EAAE;IACtCG,UAAU,EAAE;MAAE,WAAW,EAAEF;IAAQ;EACrC,CAAC,CAAC;AACJ;AAEA,SAASG,mBAAmBA,CAC1BC,IAA6B,EAC7BC,SAAsB,EACtB;EACA,OAAOC,MAAM,CAACC,IAAI,CAACH,IAAI,CAAC,CAACI,MAAM,CAAC,CAACC,MAAM,EAAEC,IAAI,KAAK;IAChD,IAAI,CAACL,SAAS,CAACM,GAAG,CAACD,IAAI,CAAC,EAAE;MAExBD,MAAM,CAACC,IAAI,CAAC,GAAGN,IAAI,CAACM,IAAI,CAAC;IAC3B;IAEA,OAAOD,MAAM;EACf,CAAC,EAAE,CAAC,CAAC,CAAC;AACR;AAEA,MAAMG,wBAAwB,GAAGN,MAAM,CAACO,MAAM,CAC5C,CAAC,CAAC,EACFC,0BAAW,EACXC,kCACF,CAAC;AACD,MAAMC,2BAA2B,GAAGb,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,CAAC;EAC/BxF,OAAO;EACPyF,eAAe;EACfC,kBAAkB;EAClBzF,4BAA4B;EAC5B0F;AAOF,CAAC,KAAK;EACJ,MAAMxF,kBAAkB,GAAG,EAAE;EAC7B,IAAIH,OAAO,KAAK,KAAK,IAAIyF,eAAe,CAACzF,OAAO,CAAC,EAAE;IACjD,IAAI0F,kBAAkB,EAAE;MACtBvF,kBAAkB,CAACC,IAAI,CAACqF,eAAe,CAACzF,OAAO,CAAC,CAAC;IACnD;IAEA,IAAIC,4BAA4B,EAAE;MAChC,IAAIyF,kBAAkB,IAAI1F,OAAO,KAAK,KAAK,EAAE;QAC3CG,kBAAkB,CAACC,IAAI,CAAC,0BAA0B,CAAC;MACrD,CAAC,MAAM;QACLE,OAAO,CAACC,IAAI,CACV,6DAA6D,GAC3D,wCACJ,CAAC;MACH;IACF;EACF;EAEA,IAAIoF,kCAAkC,EAAE;IACtCxF,kBAAkB,CAACC,IAAI,CAAC,iCAAiC,CAAC;EAC5D;EACA,IAAI,CAACH,4BAA4B,EAAE;IACjCE,kBAAkB,CAACC,IAAI,CAAC,uBAAuB,CAAC;EAClD;EACA,IAAI,CAACuF,kCAAkC,EAAE;IACvCxF,kBAAkB,CAACC,IAAI,CAAC,8BAA8B,CAAC;EACzD;EACAD,kBAAkB,CAACC,IAAI,CAAC,wBAAwB,CAAC;EACjDD,kBAAkB,CAACC,IAAI,CAAC,oBAAoB,CAAC;EAE7C,OAAOD,kBAAkB;AAC3B,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/module-transformations.js b/node_modules/@babel/preset-env/lib/module-transformations.js new file mode 100644 index 0000000000000000000000000000000000000000..fef58ec161e153c706cfc2fa2a84668c02c34947 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/module-transformations.js @@ -0,0 +1,15 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _default = exports.default = { + amd: "transform-modules-amd", + commonjs: "transform-modules-commonjs", + cjs: "transform-modules-commonjs", + systemjs: "transform-modules-systemjs", + umd: "transform-modules-umd" +}; + +//# sourceMappingURL=module-transformations.js.map diff --git a/node_modules/@babel/preset-env/lib/module-transformations.js.map b/node_modules/@babel/preset-env/lib/module-transformations.js.map new file mode 100644 index 0000000000000000000000000000000000000000..a3904618c8eacdd7b695ee7e12e860f7501da956 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/module-transformations.js.map @@ -0,0 +1 @@ +{"version":3,"names":["amd","commonjs","cjs","systemjs","umd"],"sources":["../src/module-transformations.ts"],"sourcesContent":["type AvailablePlugins = typeof import(\"./available-plugins\").default;\n\nexport default {\n amd: \"transform-modules-amd\",\n commonjs: \"transform-modules-commonjs\",\n cjs: \"transform-modules-commonjs\",\n systemjs: \"transform-modules-systemjs\",\n umd: \"transform-modules-umd\",\n} as Record;\n"],"mappings":";;;;;;iCAEe;EACbA,GAAG,EAAE,uBAAuB;EAC5BC,QAAQ,EAAE,4BAA4B;EACtCC,GAAG,EAAE,4BAA4B;EACjCC,QAAQ,EAAE,4BAA4B;EACtCC,GAAG,EAAE;AACP,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/normalize-options.js b/node_modules/@babel/preset-env/lib/normalize-options.js new file mode 100644 index 0000000000000000000000000000000000000000..23808e0b29e66b3b6469b39965b5df5a1b62db16 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/normalize-options.js @@ -0,0 +1,144 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.checkDuplicateIncludeExcludes = void 0; +exports.default = normalizeOptions; +exports.normalizeCoreJSOption = normalizeCoreJSOption; +exports.validateUseBuiltInsOption = exports.validateModulesOption = exports.normalizePluginName = void 0; +var _semver = require("semver"); +var _pluginsCompatData = require("./plugins-compat-data.js"); +var _moduleTransformations = require("./module-transformations.js"); +var _options = require("./options.js"); +var _helperValidatorOption = require("@babel/helper-validator-option"); +var _babel7Plugins = require("./polyfills/babel-7-plugins.cjs"); +const corejs3Polyfills = require("core-js-compat/data.json"); +const v = new _helperValidatorOption.OptionValidator("@babel/preset-env"); +const allPluginsList = [...Object.keys(_pluginsCompatData.plugins), ...Object.keys(_pluginsCompatData.pluginsBugfixes)]; +const modulePlugins = ["transform-dynamic-import", ...Object.keys(_moduleTransformations.default).map(m => _moduleTransformations.default[m])]; +const getValidIncludesAndExcludes = (type, corejs) => { + const set = new Set(allPluginsList); + if (type === "exclude") modulePlugins.map(set.add, set); + if (corejs) { + if (corejs === 2) { + Object.keys(_babel7Plugins.corejs2Polyfills).map(set.add, set); + set.add("web.timers").add("web.immediate").add("web.dom.iterable"); + } else { + Object.keys(corejs3Polyfills).map(set.add, set); + } + } + return Array.from(set); +}; +function flatMap(array, fn) { + return Array.prototype.concat.apply([], array.map(fn)); +} +const normalizePluginName = plugin => plugin.replace(/^(?:@babel\/|babel-)(?:plugin-)?/, ""); +exports.normalizePluginName = normalizePluginName; +const expandIncludesAndExcludes = (filterList = [], type, corejs) => { + if (filterList.length === 0) return []; + const filterableItems = getValidIncludesAndExcludes(type, corejs); + const invalidFilters = []; + const selectedPlugins = flatMap(filterList, filter => { + let re; + if (typeof filter === "string") { + try { + re = new RegExp(`^${normalizePluginName(filter)}$`); + } catch (_) { + invalidFilters.push(filter); + return []; + } + } else { + re = filter; + } + const items = filterableItems.filter(item => { + return re.test(item) || re.test(item.replace(/^transform-/, "proposal-")); + }); + if (items.length === 0) invalidFilters.push(filter); + return items; + }); + v.invariant(invalidFilters.length === 0, `The plugins/built-ins '${invalidFilters.join(", ")}' passed to the '${type}' option are not + valid. Please check data/[plugin-features|built-in-features].js in babel-preset-env`); + return selectedPlugins; +}; +const checkDuplicateIncludeExcludes = (include = [], exclude = []) => { + const duplicates = include.filter(opt => exclude.includes(opt)); + v.invariant(duplicates.length === 0, `The plugins/built-ins '${duplicates.join(", ")}' were found in both the "include" and + "exclude" options.`); +}; +exports.checkDuplicateIncludeExcludes = checkDuplicateIncludeExcludes; +const normalizeTargets = targets => { + if (typeof targets === "string" || Array.isArray(targets)) { + return { + browsers: targets + }; + } + return Object.assign({}, targets); +}; +const validateModulesOption = (modulesOpt = _options.ModulesOption.auto) => { + v.invariant(_options.ModulesOption[modulesOpt.toString()] || modulesOpt === _options.ModulesOption.false, `The 'modules' option must be one of \n` + ` - 'false' to indicate no module processing\n` + ` - a specific module type: 'commonjs', 'amd', 'umd', 'systemjs'` + ` - 'auto' (default) which will automatically select 'false' if the current\n` + ` process is known to support ES module syntax, or "commonjs" otherwise\n`); + return modulesOpt; +}; +exports.validateModulesOption = validateModulesOption; +const validateUseBuiltInsOption = (builtInsOpt = false) => { + v.invariant(_options.UseBuiltInsOption[builtInsOpt.toString()] || builtInsOpt === _options.UseBuiltInsOption.false, `The 'useBuiltIns' option must be either + 'false' (default) to indicate no polyfill, + '"entry"' to indicate replacing the entry polyfill, or + '"usage"' to import only used polyfills per file`); + return builtInsOpt; +}; +exports.validateUseBuiltInsOption = validateUseBuiltInsOption; +function normalizeCoreJSOption(corejs, useBuiltIns) { + let proposals = false; + let rawVersion; + if (useBuiltIns && corejs === undefined) { + rawVersion = 2; + console.warn("\nWARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a " + `core-js version. Currently, we assume version 2.x when no version ` + "is passed. Since this default version will likely change in future " + "versions of Babel, we recommend explicitly setting the core-js version " + "you are using via the `corejs` option.\n" + "\nYou should also be sure that the version you pass to the `corejs` " + "option matches the version specified in your `package.json`'s " + "`dependencies` section. If it doesn't, you need to run one of the " + "following commands:\n\n" + " npm install --save core-js@2 npm install --save core-js@3\n" + " yarn add core-js@2 yarn add core-js@3\n\n" + "More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins\n" + "More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs"); + } else if (typeof corejs === "object" && corejs !== null) { + rawVersion = corejs.version; + proposals = Boolean(corejs.proposals); + } else { + rawVersion = corejs; + } + const version = rawVersion ? _semver.coerce(String(rawVersion)) : false; + if (version) { + if (useBuiltIns) { + if (version.major < 2 || version.major > 3) { + throw new RangeError("Invalid Option: The version passed to `corejs` is invalid. Currently, " + "only core-js@2 and core-js@3 are supported."); + } + } else { + console.warn("\nWARNING (@babel/preset-env): The `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n"); + } + } + return { + version, + proposals + }; +} +function normalizeOptions(opts) { + v.validateTopLevelOptions(opts, _options.TopLevelOptions); + const useBuiltIns = validateUseBuiltInsOption(opts.useBuiltIns); + const corejs = normalizeCoreJSOption(opts.corejs, useBuiltIns); + const include = expandIncludesAndExcludes(opts.include, _options.TopLevelOptions.include, !!corejs.version && corejs.version.major); + const exclude = expandIncludesAndExcludes(opts.exclude, _options.TopLevelOptions.exclude, !!corejs.version && corejs.version.major); + checkDuplicateIncludeExcludes(include, exclude); + v.validateBooleanOption("loose", opts.loose); + v.validateBooleanOption("spec", opts.spec); + v.validateBooleanOption("bugfixes", opts.bugfixes); + return { + configPath: v.validateStringOption(_options.TopLevelOptions.configPath, opts.configPath, process.cwd()), + corejs, + debug: v.validateBooleanOption(_options.TopLevelOptions.debug, opts.debug, false), + include, + exclude, + forceAllTransforms: v.validateBooleanOption(_options.TopLevelOptions.forceAllTransforms, opts.forceAllTransforms, false), + ignoreBrowserslistConfig: v.validateBooleanOption(_options.TopLevelOptions.ignoreBrowserslistConfig, opts.ignoreBrowserslistConfig, false), + modules: validateModulesOption(opts.modules), + shippedProposals: v.validateBooleanOption(_options.TopLevelOptions.shippedProposals, opts.shippedProposals, false), + targets: normalizeTargets(opts.targets), + useBuiltIns: useBuiltIns, + browserslistEnv: v.validateStringOption(_options.TopLevelOptions.browserslistEnv, opts.browserslistEnv) + }; +} + +//# sourceMappingURL=normalize-options.js.map diff --git a/node_modules/@babel/preset-env/lib/normalize-options.js.map b/node_modules/@babel/preset-env/lib/normalize-options.js.map new file mode 100644 index 0000000000000000000000000000000000000000..c058b7468679a9862e6e4453cb7ac2c07e686cab --- /dev/null +++ b/node_modules/@babel/preset-env/lib/normalize-options.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_semver","require","_pluginsCompatData","_moduleTransformations","_options","_helperValidatorOption","_babel7Plugins","corejs3Polyfills","v","OptionValidator","allPluginsList","Object","keys","pluginsList","bugfixPluginsList","modulePlugins","moduleTransformations","map","m","getValidIncludesAndExcludes","type","corejs","set","Set","add","babel7","corejs2Polyfills","Array","from","flatMap","array","fn","prototype","concat","apply","normalizePluginName","plugin","replace","exports","expandIncludesAndExcludes","filterList","length","filterableItems","invalidFilters","selectedPlugins","filter","re","RegExp","_","push","items","item","test","invariant","join","checkDuplicateIncludeExcludes","include","exclude","duplicates","opt","includes","normalizeTargets","targets","isArray","browsers","assign","validateModulesOption","modulesOpt","ModulesOption","auto","toString","false","validateUseBuiltInsOption","builtInsOpt","UseBuiltInsOption","normalizeCoreJSOption","useBuiltIns","proposals","rawVersion","undefined","console","warn","version","Boolean","semver","coerce","String","major","RangeError","normalizeOptions","opts","validateTopLevelOptions","TopLevelOptions","validateBooleanOption","loose","spec","bugfixes","configPath","validateStringOption","process","cwd","debug","forceAllTransforms","ignoreBrowserslistConfig","modules","shippedProposals","browserslistEnv"],"sources":["../src/normalize-options.ts"],"sourcesContent":["import semver, { type SemVer } from \"semver\";\nimport corejs3Polyfills from \"core-js-compat/data.json\" with { type: \"json\" };\nimport {\n plugins as pluginsList,\n pluginsBugfixes as bugfixPluginsList,\n} from \"./plugins-compat-data.ts\";\nimport moduleTransformations from \"./module-transformations.ts\";\nimport {\n TopLevelOptions,\n ModulesOption,\n UseBuiltInsOption,\n} from \"./options.ts\";\nimport { OptionValidator } from \"@babel/helper-validator-option\";\n\nimport babel7 from \"./polyfills/babel-7-plugins.cjs\" with { if: \"!process.env.BABEL_8_BREAKING\" };\n\nimport type {\n BuiltInsOption,\n CorejsOption,\n ModuleOption,\n Options,\n PluginListOption,\n} from \"./types.ts\";\n\nconst v = new OptionValidator(PACKAGE_JSON.name);\n\nconst allPluginsList = [\n ...Object.keys(pluginsList),\n ...Object.keys(bugfixPluginsList),\n];\n\n// NOTE: Since module plugins are handled separately compared to other plugins (via the \"modules\" option) it\n// should only be possible to exclude and not include module plugins, otherwise it's possible that preset-env\n// will add a module plugin twice.\nconst modulePlugins = [\n \"transform-dynamic-import\",\n ...Object.keys(moduleTransformations).map(m => moduleTransformations[m]),\n];\n\nconst getValidIncludesAndExcludes = (\n type: \"include\" | \"exclude\",\n corejs: number | false,\n) => {\n const set = new Set(allPluginsList);\n if (type === \"exclude\") modulePlugins.map(set.add, set);\n if (corejs) {\n if (!process.env.BABEL_8_BREAKING && corejs === 2) {\n Object.keys(babel7.corejs2Polyfills).map(set.add, set);\n set.add(\"web.timers\").add(\"web.immediate\").add(\"web.dom.iterable\");\n } else {\n Object.keys(corejs3Polyfills).map(set.add, set);\n }\n }\n return Array.from(set);\n};\n\nfunction flatMap(array: T[], fn: (item: T) => U[]): U[] {\n return Array.prototype.concat.apply([], array.map(fn));\n}\n\nexport const normalizePluginName = (plugin: string) =>\n plugin.replace(/^(?:@babel\\/|babel-)(?:plugin-)?/, \"\");\n\nconst expandIncludesAndExcludes = (\n filterList: PluginListOption = [],\n type: \"include\" | \"exclude\",\n corejs: number | false,\n) => {\n if (filterList.length === 0) return [];\n\n const filterableItems = getValidIncludesAndExcludes(type, corejs);\n\n const invalidFilters: PluginListOption = [];\n const selectedPlugins = flatMap(filterList, filter => {\n let re: RegExp;\n if (typeof filter === \"string\") {\n try {\n re = new RegExp(`^${normalizePluginName(filter)}$`);\n } catch (_) {\n invalidFilters.push(filter);\n return [];\n }\n } else {\n re = filter;\n }\n const items = filterableItems.filter(item => {\n return process.env.BABEL_8_BREAKING\n ? re.test(item)\n : re.test(item) ||\n // For backwards compatibility, we also support matching against the\n // proposal- name.\n re.test(item.replace(/^transform-/, \"proposal-\"));\n });\n if (items.length === 0) invalidFilters.push(filter);\n return items;\n });\n\n v.invariant(\n invalidFilters.length === 0,\n `The plugins/built-ins '${invalidFilters.join(\n \", \",\n )}' passed to the '${type}' option are not\n valid. Please check data/[plugin-features|built-in-features].js in babel-preset-env`,\n );\n\n return selectedPlugins;\n};\n\nexport const checkDuplicateIncludeExcludes = (\n include: string[] = [],\n exclude: string[] = [],\n) => {\n const duplicates = include.filter(opt => exclude.includes(opt));\n\n v.invariant(\n duplicates.length === 0,\n `The plugins/built-ins '${duplicates.join(\n \", \",\n )}' were found in both the \"include\" and\n \"exclude\" options.`,\n );\n};\n\nconst normalizeTargets = (\n targets: string | string[] | Options[\"targets\"],\n): Options[\"targets\"] => {\n // TODO: Allow to use only query or strings as a targets from next breaking change.\n if (typeof targets === \"string\" || Array.isArray(targets)) {\n return { browsers: targets };\n }\n return { ...targets };\n};\n\nexport const validateModulesOption = (\n modulesOpt: ModuleOption = ModulesOption.auto,\n) => {\n v.invariant(\n // @ts-expect-error we have provided fallback for undefined keys\n ModulesOption[modulesOpt.toString()] || modulesOpt === ModulesOption.false,\n `The 'modules' option must be one of \\n` +\n ` - 'false' to indicate no module processing\\n` +\n ` - a specific module type: 'commonjs', 'amd', 'umd', 'systemjs'` +\n ` - 'auto' (default) which will automatically select 'false' if the current\\n` +\n ` process is known to support ES module syntax, or \"commonjs\" otherwise\\n`,\n );\n\n return modulesOpt;\n};\n\nexport const validateUseBuiltInsOption = (\n builtInsOpt: BuiltInsOption = false,\n) => {\n v.invariant(\n // @ts-expect-error we have provided fallback for undefined keys\n UseBuiltInsOption[builtInsOpt.toString()] ||\n builtInsOpt === UseBuiltInsOption.false,\n `The 'useBuiltIns' option must be either\n 'false' (default) to indicate no polyfill,\n '\"entry\"' to indicate replacing the entry polyfill, or\n '\"usage\"' to import only used polyfills per file`,\n );\n\n return builtInsOpt;\n};\n\nexport type NormalizedCorejsOption = {\n proposals: boolean;\n version: SemVer | null | false;\n};\n\nexport function normalizeCoreJSOption(\n corejs: CorejsOption | undefined | null,\n useBuiltIns: BuiltInsOption,\n): NormalizedCorejsOption {\n let proposals = false;\n let rawVersion: false | string | number | undefined | null;\n\n if (useBuiltIns && corejs === undefined) {\n if (process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"When using the `useBuiltIns` option you must specify\" +\n ' the code-js version you are using, such as `\"corejs\": \"3.32.0\"`.',\n );\n } else {\n rawVersion = 2;\n console.warn(\n \"\\nWARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a \" +\n `core-js version. Currently, we assume version 2.x when no version ` +\n \"is passed. Since this default version will likely change in future \" +\n \"versions of Babel, we recommend explicitly setting the core-js version \" +\n \"you are using via the `corejs` option.\\n\" +\n \"\\nYou should also be sure that the version you pass to the `corejs` \" +\n \"option matches the version specified in your `package.json`'s \" +\n \"`dependencies` section. If it doesn't, you need to run one of the \" +\n \"following commands:\\n\\n\" +\n \" npm install --save core-js@2 npm install --save core-js@3\\n\" +\n \" yarn add core-js@2 yarn add core-js@3\\n\\n\" +\n \"More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins\\n\" +\n \"More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs\",\n );\n }\n } else if (typeof corejs === \"object\" && corejs !== null) {\n rawVersion = corejs.version;\n proposals = Boolean(corejs.proposals);\n } else {\n rawVersion = corejs as false | string | number | undefined | null;\n }\n\n const version = rawVersion ? semver.coerce(String(rawVersion)) : false;\n\n if (version) {\n if (useBuiltIns) {\n if (process.env.BABEL_8_BREAKING) {\n if (version.major !== 3) {\n throw new RangeError(\n \"Invalid Option: The version passed to `corejs` is invalid. Currently, \" +\n \"only core-js@3 is supported.\",\n );\n }\n\n if (\n typeof rawVersion !== \"string\" ||\n !String(rawVersion).includes(\".\")\n ) {\n throw new Error(\n 'Invalid Option: The version passed to `corejs` is invalid. Please use string and specify the minor version, such as `\"3.33\"`.',\n );\n }\n } else {\n if (version.major < 2 || version.major > 3) {\n throw new RangeError(\n \"Invalid Option: The version passed to `corejs` is invalid. Currently, \" +\n \"only core-js@2 and core-js@3 are supported.\",\n );\n }\n }\n } else {\n console.warn(\n \"\\nWARNING (@babel/preset-env): The `corejs` option only has an effect when the `useBuiltIns` option is not `false`\\n\",\n );\n }\n }\n\n return { version, proposals };\n}\n\nexport default function normalizeOptions(opts: Options) {\n if (process.env.BABEL_8_BREAKING) {\n v.invariant(\n !Object.hasOwn(opts, \"bugfixes\"),\n \"The 'bugfixes' option has been removed, and now bugfix plugins are\" +\n \" always enabled. Please remove it from your config.\",\n );\n }\n\n v.validateTopLevelOptions(opts, TopLevelOptions);\n\n const useBuiltIns = validateUseBuiltInsOption(opts.useBuiltIns);\n\n const corejs = normalizeCoreJSOption(opts.corejs, useBuiltIns);\n\n const include = expandIncludesAndExcludes(\n opts.include,\n TopLevelOptions.include,\n !!corejs.version && corejs.version.major,\n );\n\n const exclude = expandIncludesAndExcludes(\n opts.exclude,\n TopLevelOptions.exclude,\n !!corejs.version && corejs.version.major,\n );\n\n checkDuplicateIncludeExcludes(include, exclude);\n\n if (!process.env.BABEL_8_BREAKING) {\n v.validateBooleanOption(\"loose\", opts.loose);\n v.validateBooleanOption(\"spec\", opts.spec);\n v.validateBooleanOption(\"bugfixes\", opts.bugfixes);\n }\n\n return {\n configPath: v.validateStringOption(\n TopLevelOptions.configPath,\n opts.configPath,\n process.cwd(),\n ),\n corejs,\n debug: v.validateBooleanOption(TopLevelOptions.debug, opts.debug, false),\n include,\n exclude,\n forceAllTransforms: v.validateBooleanOption(\n TopLevelOptions.forceAllTransforms,\n opts.forceAllTransforms,\n false,\n ),\n ignoreBrowserslistConfig: v.validateBooleanOption(\n TopLevelOptions.ignoreBrowserslistConfig,\n opts.ignoreBrowserslistConfig,\n false,\n ),\n modules: validateModulesOption(opts.modules),\n shippedProposals: v.validateBooleanOption(\n TopLevelOptions.shippedProposals,\n opts.shippedProposals,\n false,\n ),\n targets: normalizeTargets(opts.targets),\n useBuiltIns: useBuiltIns,\n browserslistEnv: v.validateStringOption(\n TopLevelOptions.browserslistEnv,\n opts.browserslistEnv,\n ),\n };\n}\n"],"mappings":";;;;;;;;;AAAA,IAAAA,OA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AAM;IACNgF,KAAK,EAAE7F,CAAC,CAACqF,qBAAqB,CAACD,wBAAe,CAACS,KAAK,EAAEX,IAAI,CAACW,KAAK,EAAE,KAAK,CAAC;IACxE7C,OAAO;IACPC,OAAO;IACP6C,kBAAkB,EAAE9F,CAAC,CAACqF,qBAAqB,CACzCD,wBAAe,CAACU,kBAAkB,EAClCZ,IAAI,CAACY,kBAAkB,EACvB,KACF,CAAC;IACDC,wBAAwB,EAAE/F,CAAC,CAACqF,qBAAqB,CAC/CD,wBAAe,CAACW,wBAAwB,EACxCb,IAAI,CAACa,wBAAwB,EAC7B,KACF,CAAC;IACDC,OAAO,EAAEtC,qBAAqB,CAACwB,IAAI,CAACc,OAAO,CAAC;IAC5CC,gBAAgB,EAAEjG,CAAC,CAACqF,qBAAqB,CACvCD,wBAAe,CAACa,gBAAgB,EAChCf,IAAI,CAACe,gBAAgB,EACrB,KACF,CAAC;IACD3C,OAAO,EAAED,gBAAgB,CAAC6B,IAAI,CAAC5B,OAAO,CAAC;IACvCc,WAAW,EAAEA,WAAW;IACxB8B,eAAe,EAAElG,CAAC,CAAC0F,oBAAoB,CACrCN,wBAAe,CAACc,eAAe,EAC/BhB,IAAI,CAACgB,eACP;EACF,CAAC;AACH","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/options.js b/node_modules/@babel/preset-env/lib/options.js new file mode 100644 index 0000000000000000000000000000000000000000..34c5227017758ddecba8214c39e2a494f587bcd4 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/options.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.UseBuiltInsOption = exports.TopLevelOptions = exports.ModulesOption = void 0; +const TopLevelOptions = exports.TopLevelOptions = { + configPath: "configPath", + corejs: "corejs", + debug: "debug", + exclude: "exclude", + forceAllTransforms: "forceAllTransforms", + ignoreBrowserslistConfig: "ignoreBrowserslistConfig", + include: "include", + modules: "modules", + shippedProposals: "shippedProposals", + targets: "targets", + useBuiltIns: "useBuiltIns", + browserslistEnv: "browserslistEnv" +}; +Object.assign(TopLevelOptions, { + bugfixes: "bugfixes", + loose: "loose", + spec: "spec" +}); +const ModulesOption = exports.ModulesOption = { + false: false, + auto: "auto", + amd: "amd", + commonjs: "commonjs", + cjs: "cjs", + systemjs: "systemjs", + umd: "umd" +}; +const UseBuiltInsOption = exports.UseBuiltInsOption = { + false: false, + entry: "entry", + usage: "usage" +}; + +//# sourceMappingURL=options.js.map diff --git a/node_modules/@babel/preset-env/lib/options.js.map b/node_modules/@babel/preset-env/lib/options.js.map new file mode 100644 index 0000000000000000000000000000000000000000..78ccccd29acf29b98e1fe12f0bf5d76befaccdf8 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/options.js.map @@ -0,0 +1 @@ +{"version":3,"names":["TopLevelOptions","exports","configPath","corejs","debug","exclude","forceAllTransforms","ignoreBrowserslistConfig","include","modules","shippedProposals","targets","useBuiltIns","browserslistEnv","Object","assign","bugfixes","loose","spec","ModulesOption","false","auto","amd","commonjs","cjs","systemjs","umd","UseBuiltInsOption","entry","usage"],"sources":["../src/options.ts"],"sourcesContent":["export const TopLevelOptions = {\n configPath: \"configPath\",\n corejs: \"corejs\",\n debug: \"debug\",\n exclude: \"exclude\",\n forceAllTransforms: \"forceAllTransforms\",\n ignoreBrowserslistConfig: \"ignoreBrowserslistConfig\",\n include: \"include\",\n modules: \"modules\",\n shippedProposals: \"shippedProposals\",\n targets: \"targets\",\n useBuiltIns: \"useBuiltIns\",\n browserslistEnv: \"browserslistEnv\",\n} as const;\n\nif (!process.env.BABEL_8_BREAKING) {\n Object.assign(TopLevelOptions, {\n bugfixes: \"bugfixes\",\n loose: \"loose\",\n spec: \"spec\",\n });\n}\n\nexport const ModulesOption = {\n false: false,\n auto: \"auto\",\n amd: \"amd\",\n commonjs: \"commonjs\",\n cjs: \"cjs\",\n systemjs: \"systemjs\",\n umd: \"umd\",\n} as const;\n\nexport const UseBuiltInsOption = {\n false: false,\n entry: \"entry\",\n usage: \"usage\",\n} as const;\n"],"mappings":";;;;;;AAAO,MAAMA,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG;EAC7BE,UAAU,EAAE,YAAY;EACxBC,MAAM,EAAE,QAAQ;EAChBC,KAAK,EAAE,OAAO;EACdC,OAAO,EAAE,SAAS;EAClBC,kBAAkB,EAAE,oBAAoB;EACxCC,wBAAwB,EAAE,0BAA0B;EACpDC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,gBAAgB,EAAE,kBAAkB;EACpCC,OAAO,EAAE,SAAS;EAClBC,WAAW,EAAE,aAAa;EAC1BC,eAAe,EAAE;AACnB,CAAU;AAGRC,MAAM,CAACC,MAAM,CAACf,eAAe,EAAE;EAC7BgB,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE;AACR,CAAC,CAAC;AAGG,MAAMC,aAAa,GAAAlB,OAAA,CAAAkB,aAAA,GAAG;EAC3BC,KAAK,EAAE,KAAK;EACZC,IAAI,EAAE,MAAM;EACZC,GAAG,EAAE,KAAK;EACVC,QAAQ,EAAE,UAAU;EACpBC,GAAG,EAAE,KAAK;EACVC,QAAQ,EAAE,UAAU;EACpBC,GAAG,EAAE;AACP,CAAU;AAEH,MAAMC,iBAAiB,GAAA1B,OAAA,CAAA0B,iBAAA,GAAG;EAC/BP,KAAK,EAAE,KAAK;EACZQ,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE;AACT,CAAU","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/plugins-compat-data.js b/node_modules/@babel/preset-env/lib/plugins-compat-data.js new file mode 100644 index 0000000000000000000000000000000000000000..b479efddb336fbfa70c93dfedb56f8d9f27f827c --- /dev/null +++ b/node_modules/@babel/preset-env/lib/plugins-compat-data.js @@ -0,0 +1,26 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.pluginsBugfixes = exports.plugins = exports.overlappingPlugins = void 0; +var _availablePlugins = require("./available-plugins.js"); +const originalPlugins = require("@babel/compat-data/plugins"), + originalPluginsBugfixes = require("@babel/compat-data/plugin-bugfixes"), + originalOverlappingPlugins = require("@babel/compat-data/overlapping-plugins"); +const keys = Object.keys; +const plugins = exports.plugins = filterAvailable(originalPlugins); +const pluginsBugfixes = exports.pluginsBugfixes = filterAvailable(originalPluginsBugfixes); +const overlappingPlugins = exports.overlappingPlugins = filterAvailable(originalOverlappingPlugins); +overlappingPlugins["syntax-import-attributes"] = ["syntax-import-assertions"]; +function filterAvailable(data) { + const result = {}; + for (const plugin of keys(data)) { + if (hasOwnProperty.call(_availablePlugins.default, plugin)) { + result[plugin] = data[plugin]; + } + } + return result; +} + +//# sourceMappingURL=plugins-compat-data.js.map diff --git a/node_modules/@babel/preset-env/lib/plugins-compat-data.js.map b/node_modules/@babel/preset-env/lib/plugins-compat-data.js.map new file mode 100644 index 0000000000000000000000000000000000000000..cd426f4bcf4d849dbdfd1b6c14c613a159f2b35d --- /dev/null +++ b/node_modules/@babel/preset-env/lib/plugins-compat-data.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_availablePlugins","require","originalPlugins","originalPluginsBugfixes","originalOverlappingPlugins","keys","Object","plugins","exports","filterAvailable","pluginsBugfixes","overlappingPlugins","data","result","plugin","hasOwnProperty","call","availablePlugins"],"sources":["../src/plugins-compat-data.ts"],"sourcesContent":["import originalPlugins from \"@babel/compat-data/plugins\" with { type: \"json\" };\nimport originalPluginsBugfixes from \"@babel/compat-data/plugin-bugfixes\" with { type: \"json\" };\nimport originalOverlappingPlugins from \"@babel/compat-data/overlapping-plugins\" with { type: \"json\" };\nimport availablePlugins from \"./available-plugins.ts\";\n\nconst keys: (o: O) => (keyof O)[] = Object.keys;\n\nexport const plugins = filterAvailable(originalPlugins);\nexport const pluginsBugfixes = filterAvailable(originalPluginsBugfixes);\nexport const overlappingPlugins = filterAvailable(originalOverlappingPlugins);\n\nif (!process.env.BABEL_8_BREAKING) {\n // @ts-expect-error: we extend this here, since it's a syntax plugin and thus\n // doesn't make sense to store it in a compat-data package.\n overlappingPlugins[\"syntax-import-attributes\"] = [\"syntax-import-assertions\"];\n}\n\nfunction filterAvailable>(\n data: Data,\n): { [Name in keyof Data & keyof typeof availablePlugins]: Data[Name] } {\n const result = {} as any;\n for (const plugin of keys(data)) {\n if (Object.hasOwn(availablePlugins, plugin)) {\n result[plugin] = data[plugin];\n }\n }\n return result;\n}\n"],"mappings":";;;;;;AAGA,IAAAA,iBAAA,GAAAC,OAAA;AAAsD,MAH/CC,eAAe,GAAAD,OAAA,CAAM,4BAA4B;EACjDE,uBAAuB,GAAAF,OAAA,CAAM,oCAAoC;EACjEG,0BAA0B,GAAAH,OAAA,CAAM,wCAAwC;AAG/E,MAAMI,IAA6C,GAAGC,MAAM,CAACD,IAAI;AAE1D,MAAME,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAGE,eAAe,CAACP,eAAe,CAAC;AAChD,MAAMQ,eAAe,GAAAF,OAAA,CAAAE,eAAA,GAAGD,eAAe,CAACN,uBAAuB,CAAC;AAChE,MAAMQ,kBAAkB,GAAAH,OAAA,CAAAG,kBAAA,GAAGF,eAAe,CAACL,0BAA0B,CAAC;AAK3EO,kBAAkB,CAAC,0BAA0B,CAAC,GAAG,CAAC,0BAA0B,CAAC;AAG/E,SAASF,eAAeA,CACtBG,IAAU,EAC4D;EACtE,MAAMC,MAAM,GAAG,CAAC,CAAQ;EACxB,KAAK,MAAMC,MAAM,IAAIT,IAAI,CAACO,IAAI,CAAC,EAAE;IAC/B,IAAIG,cAAA,CAAAC,IAAA,CAAcC,yBAAgB,EAAEH,MAAM,CAAC,EAAE;MAC3CD,MAAM,CAACC,MAAM,CAAC,GAAGF,IAAI,CAACE,MAAM,CAAC;IAC/B;EACF;EACA,OAAOD,MAAM;AACf","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/polyfills/babel-7-plugins.cjs b/node_modules/@babel/preset-env/lib/polyfills/babel-7-plugins.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e2b00efe3ecf595052ffb8d97d6f18fbdccd8edc --- /dev/null +++ b/node_modules/@babel/preset-env/lib/polyfills/babel-7-plugins.cjs @@ -0,0 +1,19 @@ +Object.defineProperties(exports, { + pluginCoreJS2: { + get: () => require("babel-plugin-polyfill-corejs2").default + }, + pluginRegenerator: { + get: () => require("babel-plugin-polyfill-regenerator").default + }, + legacyBabelPolyfillPlugin: { + get: () => require("./babel-polyfill.cjs") + }, + removeRegeneratorEntryPlugin: { + get: () => require("./regenerator.cjs") + }, + corejs2Polyfills: { + get: () => require("@babel/compat-data/corejs2-built-ins") + } +}); + +//# sourceMappingURL=babel-7-plugins.cjs.map diff --git a/node_modules/@babel/preset-env/lib/polyfills/babel-7-plugins.cjs.map b/node_modules/@babel/preset-env/lib/polyfills/babel-7-plugins.cjs.map new file mode 100644 index 0000000000000000000000000000000000000000..539d70383bcff06645e7f47b354511b61ad908c3 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/polyfills/babel-7-plugins.cjs.map @@ -0,0 +1 @@ +{"version":3,"names":["Object","defineProperties","exports","pluginCoreJS2","get","require","default","pluginRegenerator","legacyBabelPolyfillPlugin","removeRegeneratorEntryPlugin","corejs2Polyfills"],"sources":["../../src/polyfills/babel-7-plugins.cjs"],"sourcesContent":["// TODO(Babel 8): Remove this file\n\nif (!process.env.BABEL_8_BREAKING) {\n Object.defineProperties(exports, {\n pluginCoreJS2: {\n get: () => require(\"babel-plugin-polyfill-corejs2\").default,\n },\n pluginRegenerator: {\n get: () => require(\"babel-plugin-polyfill-regenerator\").default,\n },\n legacyBabelPolyfillPlugin: { get: () => require(\"./babel-polyfill.cjs\") },\n removeRegeneratorEntryPlugin: { get: () => require(\"./regenerator.cjs\") },\n corejs2Polyfills: {\n get: () => require(\"@babel/compat-data/corejs2-built-ins\"),\n },\n });\n}\n"],"mappings":"AAGEA,MAAM,CAACC,gBAAgB,CAACC,OAAO,EAAE;EAC/BC,aAAa,EAAE;IACbC,GAAG,EAAEA,CAAA,KAAMC,OAAO,CAAC,+BAA+B,CAAC,CAACC;EACtD,CAAC;EACDC,iBAAiB,EAAE;IACjBH,GAAG,EAAEA,CAAA,KAAMC,OAAO,CAAC,mCAAmC,CAAC,CAACC;EAC1D,CAAC;EACDE,yBAAyB,EAAE;IAAEJ,GAAG,EAAEA,CAAA,KAAMC,OAAO,CAAC,sBAAsB;EAAE,CAAC;EACzEI,4BAA4B,EAAE;IAAEL,GAAG,EAAEA,CAAA,KAAMC,OAAO,CAAC,mBAAmB;EAAE,CAAC;EACzEK,gBAAgB,EAAE;IAChBN,GAAG,EAAEA,CAAA,KAAMC,OAAO,CAAC,sCAAsC;EAC3D;AACF,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/polyfills/babel-polyfill.cjs b/node_modules/@babel/preset-env/lib/polyfills/babel-polyfill.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b1b821a85f868aa1849f725d62235e27d7701505 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/polyfills/babel-polyfill.cjs @@ -0,0 +1,68 @@ +const { + getImportSource, + getRequireSource, + isPolyfillSource +} = require("./utils.cjs"); +const BABEL_POLYFILL_DEPRECATION = ` + \`@babel/polyfill\` is deprecated. Please, use required parts of \`core-js\` + and \`regenerator-runtime/runtime\` separately`; +const NO_DIRECT_POLYFILL_IMPORT = ` + When setting \`useBuiltIns: 'usage'\`, polyfills are automatically imported when needed. + Please remove the direct import of \`SPECIFIER\` or use \`useBuiltIns: 'entry'\` instead.`; +module.exports = function ({ + template +}, { + regenerator, + deprecated, + usage +}) { + return { + name: "preset-env/replace-babel-polyfill", + visitor: { + ImportDeclaration(path) { + const src = getImportSource(path); + if (usage && isPolyfillSource(src)) { + console.warn(NO_DIRECT_POLYFILL_IMPORT.replace("SPECIFIER", src)); + if (!deprecated) path.remove(); + } else if (src === "@babel/polyfill") { + if (deprecated) { + console.warn(BABEL_POLYFILL_DEPRECATION); + } else if (regenerator) { + path.replaceWithMultiple(template.ast` + import "core-js"; + import "regenerator-runtime/runtime.js"; + `); + } else { + path.replaceWith(template.ast` + import "core-js"; + `); + } + } + }, + Program(path) { + path.get("body").forEach(bodyPath => { + const src = getRequireSource(bodyPath); + if (usage && isPolyfillSource(src)) { + console.warn(NO_DIRECT_POLYFILL_IMPORT.replace("SPECIFIER", src)); + if (!deprecated) bodyPath.remove(); + } else if (src === "@babel/polyfill") { + if (deprecated) { + console.warn(BABEL_POLYFILL_DEPRECATION); + } else if (regenerator) { + bodyPath.replaceWithMultiple(template.ast` + require("core-js"); + require("regenerator-runtime/runtime.js"); + `); + } else { + bodyPath.replaceWith(template.ast` + require("core-js"); + `); + } + } + }); + } + } + }; +}; + +//# sourceMappingURL=babel-polyfill.cjs.map diff --git a/node_modules/@babel/preset-env/lib/polyfills/babel-polyfill.cjs.map b/node_modules/@babel/preset-env/lib/polyfills/babel-polyfill.cjs.map new file mode 100644 index 0000000000000000000000000000000000000000..b56a3454fdba60868898254e71a861176389cca0 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/polyfills/babel-polyfill.cjs.map @@ -0,0 +1 @@ +{"version":3,"names":["getImportSource","getRequireSource","isPolyfillSource","require","BABEL_POLYFILL_DEPRECATION","NO_DIRECT_POLYFILL_IMPORT","module","exports","template","regenerator","deprecated","usage","name","visitor","ImportDeclaration","path","src","console","warn","replace","remove","replaceWithMultiple","ast","replaceWith","Program","get","forEach","bodyPath"],"sources":["../../src/polyfills/babel-polyfill.cjs"],"sourcesContent":["// TODO(Babel 8) Remove this file\nif (process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"Internal Babel error: This file should only be loaded in Babel 7\",\n );\n}\n\nconst {\n getImportSource,\n getRequireSource,\n isPolyfillSource,\n} = require(\"./utils.cjs\");\n\nconst BABEL_POLYFILL_DEPRECATION = `\n \\`@babel/polyfill\\` is deprecated. Please, use required parts of \\`core-js\\`\n and \\`regenerator-runtime/runtime\\` separately`;\n\nconst NO_DIRECT_POLYFILL_IMPORT = `\n When setting \\`useBuiltIns: 'usage'\\`, polyfills are automatically imported when needed.\n Please remove the direct import of \\`SPECIFIER\\` or use \\`useBuiltIns: 'entry'\\` instead.`;\n\nmodule.exports = function ({ template }, { regenerator, deprecated, usage }) {\n return {\n name: \"preset-env/replace-babel-polyfill\",\n visitor: {\n ImportDeclaration(path) {\n const src = getImportSource(path);\n if (usage && isPolyfillSource(src)) {\n console.warn(NO_DIRECT_POLYFILL_IMPORT.replace(\"SPECIFIER\", src));\n if (!deprecated) path.remove();\n } else if (src === \"@babel/polyfill\") {\n if (deprecated) {\n console.warn(BABEL_POLYFILL_DEPRECATION);\n } else if (regenerator) {\n path.replaceWithMultiple(template.ast`\n import \"core-js\";\n import \"regenerator-runtime/runtime.js\";\n `);\n } else {\n path.replaceWith(template.ast`\n import \"core-js\";\n `);\n }\n }\n },\n Program(path) {\n path.get(\"body\").forEach(bodyPath => {\n const src = getRequireSource(bodyPath);\n if (usage && isPolyfillSource(src)) {\n console.warn(NO_DIRECT_POLYFILL_IMPORT.replace(\"SPECIFIER\", src));\n if (!deprecated) bodyPath.remove();\n } else if (src === \"@babel/polyfill\") {\n if (deprecated) {\n console.warn(BABEL_POLYFILL_DEPRECATION);\n } else if (regenerator) {\n bodyPath.replaceWithMultiple(template.ast`\n require(\"core-js\");\n require(\"regenerator-runtime/runtime.js\");\n `);\n } else {\n bodyPath.replaceWith(template.ast`\n require(\"core-js\");\n `);\n }\n }\n });\n },\n },\n };\n};\n"],"mappings":"AAOA,MAAM;EACJA,eAAe;EACfC,gBAAgB;EAChBC;AACF,CAAC,GAAGC,OAAO,CAAC,aAAa,CAAC;AAE1B,MAAMC,0BAA0B,GAAG;AACnC;AACA,iDAAiD;AAEjD,MAAMC,yBAAyB,GAAG;AAClC;AACA,4FAA4F;AAE5FC,MAAM,CAACC,OAAO,GAAG,UAAU;EAAEC;AAAS,CAAC,EAAE;EAAEC,WAAW;EAAEC,UAAU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;YAC1C,CAAC,MAAM,IAAIK,WAAW,EAAE;cACtBkB,QAAQ,CAACN,mBAAmB,CAACb,QAAQ,CAACc,GAAG;AACvD;AACA;AACA,eAAe,CAAC;YACJ,CAAC,MAAM;cACLK,QAAQ,CAACJ,WAAW,CAACf,QAAQ,CAACc,GAAG;AAC/C;AACA,eAAe,CAAC;YACJ;UACF;QACF,CAAC,CAAC;MACJ;IACF;EACF,CAAC;AACH,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/polyfills/regenerator.cjs b/node_modules/@babel/preset-env/lib/polyfills/regenerator.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2098c20518be4174c4a9bdd71682107fc65a58ef --- /dev/null +++ b/node_modules/@babel/preset-env/lib/polyfills/regenerator.cjs @@ -0,0 +1,43 @@ +const { + getImportSource, + getRequireSource +} = require("./utils.cjs"); +function isRegeneratorSource(source) { + return source === "regenerator-runtime/runtime" || source === "regenerator-runtime/runtime.js"; +} +module.exports = function () { + const visitor = { + ImportDeclaration(path) { + if (isRegeneratorSource(getImportSource(path))) { + this.regeneratorImportExcluded = true; + path.remove(); + } + }, + Program(path) { + path.get("body").forEach(bodyPath => { + if (isRegeneratorSource(getRequireSource(bodyPath))) { + this.regeneratorImportExcluded = true; + bodyPath.remove(); + } + }); + } + }; + return { + name: "preset-env/remove-regenerator", + visitor, + pre() { + this.regeneratorImportExcluded = false; + }, + post() { + if (this.opts.debug && this.regeneratorImportExcluded) { + let filename = this.file.opts.filename; + if (process.env.BABEL_ENV === "test") { + filename = filename.replace(/\\/g, "/"); + } + console.log(`\n[${filename}] Based on your targets, regenerator-runtime import excluded.`); + } + } + }; +}; + +//# sourceMappingURL=regenerator.cjs.map diff --git a/node_modules/@babel/preset-env/lib/polyfills/regenerator.cjs.map b/node_modules/@babel/preset-env/lib/polyfills/regenerator.cjs.map new file mode 100644 index 0000000000000000000000000000000000000000..c3abdacca44882802861debe0b3013cbe12d633c --- /dev/null +++ b/node_modules/@babel/preset-env/lib/polyfills/regenerator.cjs.map @@ -0,0 +1 @@ +{"version":3,"names":["getImportSource","getRequireSource","require","isRegeneratorSource","source","module","exports","visitor","ImportDeclaration","path","regeneratorImportExcluded","remove","Program","get","forEach","bodyPath","name","pre","post","opts","debug","filename","file","process","env","BABEL_ENV","replace","console","log"],"sources":["../../src/polyfills/regenerator.cjs"],"sourcesContent":["// TODO(Babel 8) Remove this file\nif (process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"Internal Babel error: This file should only be loaded in Babel 7\",\n );\n}\n\nconst { getImportSource, getRequireSource } = require(\"./utils.cjs\");\n\nfunction isRegeneratorSource(source) {\n return (\n source === \"regenerator-runtime/runtime\" ||\n source === \"regenerator-runtime/runtime.js\"\n );\n}\n\nmodule.exports = function () {\n const visitor = {\n ImportDeclaration(path) {\n if (isRegeneratorSource(getImportSource(path))) {\n this.regeneratorImportExcluded = true;\n path.remove();\n }\n },\n Program(path) {\n path.get(\"body\").forEach(bodyPath => {\n if (isRegeneratorSource(getRequireSource(bodyPath))) {\n this.regeneratorImportExcluded = true;\n bodyPath.remove();\n }\n });\n },\n };\n\n return {\n name: \"preset-env/remove-regenerator\",\n visitor,\n pre() {\n this.regeneratorImportExcluded = false;\n },\n post() {\n if (this.opts.debug && this.regeneratorImportExcluded) {\n let filename = this.file.opts.filename;\n // normalize filename to generate consistent preset-env test fixtures\n if (process.env.BABEL_ENV === \"test\") {\n filename = filename.replace(/\\\\/g, \"/\");\n }\n console.log(\n `\\n[${filename}] Based on your targets, regenerator-runtime import excluded.`,\n );\n }\n },\n };\n};\n"],"mappings":"AAOA,MAAM;EAAEA,eAAe;EAAEC;AAAiB,CAAC,GAAGC,OAAO,CAAC,aAAa,CAAC;AAEpE,SAASC,mBAAmBA,CAACC,MAAM,EAAE;EACnC,OACEA,MAAM,KAAK,6BAA6B,IACxCA,MAAM,KAAK,gCAAgC;AAE/C;AAEAC,MAAM,CAACC,OAAO,GAAG,YAAY;EAC3B,MAAMC,OAAO,GAAG;IACdC,iBAAiBA,CAACC,IAAI,EAAE;MACtB,IAAIN,mBAAmB,CAACH,eAAe,CAACS,IAAI,CAAC,CAAC,EAAE;QAC9C,IAAI,CAACC,yBAAyB,GAAG,IAAI;QACrCD,IAAI,CAACE,MAAM,CAAC,CAAC;MACf;IACF,CAAC;IACDC,OAAOA,CAACH,IAAI,EAAE;MACZA,IAAI,CAACI,GAAG,CAAC,MAAM,CAAC,CAACC,OAAO,CAACC,QAAQ,IAAI;QACnC,IAAIZ,mBAAmB,CAACF,gBAAgB,CAACc,QAAQ,CAAC,CAAC,EAAE;UACnD,IAAI,CAACL,yBAAyB,GAAG,IAAI;UACrCK,QAAQ,CAACJ,MAAM,CAAC,CAAC;QACnB;MACF,CAAC,CAAC;IACJ;EACF,CAAC;EAED,OAAO;IACLK,IAAI,EAAE,+BAA+B;IACrCT,OAAO;IACPU,GAAGA,CAAA,EAAG;MACJ,IAAI,CAACP,yBAAyB,GAAG,KAAK;IACxC,CAAC;IACDQ,IAAIA,CAAA,EAAG;MACL,IAAI,IAAI,CAACC,IAAI,CAACC,KAAK,IAAI,IAAI,CAACV,yBAAyB,EAAE;QACrD,IAAIW,QAAQ,GAAG,IAAI,CAACC,IAAI,CAACH,IAAI,CAACE,QAAQ;QAEtC,IAAIE,OAAO,CAACC,GAAG,CAACC,SAAS,KAAK,MAAM,EAAE;UACpCJ,QAAQ,GAAGA,QAAQ,CAACK,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;QACzC;QACAC,OAAO,CAACC,GAAG,CACT,MAAMP,QAAQ,+DAChB,CAAC;MACH;IACF;EACF,CAAC;AACH,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/polyfills/utils.cjs b/node_modules/@babel/preset-env/lib/polyfills/utils.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c9ea929193c338edd81018e14d28e4bfd82c6514 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/polyfills/utils.cjs @@ -0,0 +1,21 @@ +exports.getImportSource = function ({ + node +}) { + if (node.specifiers.length === 0) return node.source.value; +}; +exports.getRequireSource = function ({ + node +}) { + if (node.type !== "ExpressionStatement") return; + const { + expression + } = node; + if (expression.type === "CallExpression" && expression.callee.type === "Identifier" && expression.callee.name === "require" && expression.arguments.length === 1 && expression.arguments[0].type === "StringLiteral") { + return expression.arguments[0].value; + } +}; +exports.isPolyfillSource = function (source) { + return source === "@babel/polyfill" || source === "core-js"; +}; + +//# sourceMappingURL=utils.cjs.map diff --git a/node_modules/@babel/preset-env/lib/polyfills/utils.cjs.map b/node_modules/@babel/preset-env/lib/polyfills/utils.cjs.map new file mode 100644 index 0000000000000000000000000000000000000000..1d7c8de5b79196c3fcbcdf030102e45ed85ef52e --- /dev/null +++ b/node_modules/@babel/preset-env/lib/polyfills/utils.cjs.map @@ -0,0 +1 @@ +{"version":3,"names":["exports","getImportSource","node","specifiers","length","source","value","getRequireSource","type","expression","callee","name","arguments","isPolyfillSource"],"sources":["../../src/polyfills/utils.cjs"],"sourcesContent":["// TODO(Babel 8) Remove this file\nif (process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"Internal Babel error: This file should only be loaded in Babel 7\",\n );\n}\n\nexports.getImportSource = function ({ node }) {\n if (node.specifiers.length === 0) return node.source.value;\n};\n\nexports.getRequireSource = function ({ node }) {\n if (node.type !== \"ExpressionStatement\") return;\n const { expression } = node;\n if (\n expression.type === \"CallExpression\" &&\n expression.callee.type === \"Identifier\" &&\n expression.callee.name === \"require\" &&\n expression.arguments.length === 1 &&\n expression.arguments[0].type === \"StringLiteral\"\n ) {\n return expression.arguments[0].value;\n }\n};\n\nexports.isPolyfillSource = function (source) {\n return source === \"@babel/polyfill\" || source === \"core-js\";\n};\n"],"mappings":"AAOAA,OAAO,CAACC,eAAe,GAAG,UAAU;EAAEC;AAAK,CAAC,EAAE;EAC5C,IAAIA,IAAI,CAACC,UAAU,CAACC,MAAM,KAAK,CAAC,EAAE,OAAOF,IAAI,CAACG,MAAM,CAACC,KAAK;AAC5D,CAAC;AAEDN,OAAO,CAACO,gBAAgB,GAAG,UAAU;EAAEL;AAAK,CAAC,EAAE;EAC7C,IAAIA,IAAI,CAACM,IAAI,KAAK,qBAAqB,EAAE;EACzC,MAAM;IAAEC;EAAW,CAAC,GAAGP,IAAI;EAC3B,IACEO,UAAU,CAACD,IAAI,KAAK,gBAAgB,IACpCC,UAAU,CAACC,MAAM,CAACF,IAAI,KAAK,YAAY,IACvCC,UAAU,CAACC,MAAM,CAACC,IAAI,KAAK,SAAS,IACpCF,UAAU,CAACG,SAAS,CAACR,MAAM,KAAK,CAAC,IACjCK,UAAU,CAACG,SAAS,CAAC,CAAC,CAAC,CAACJ,IAAI,KAAK,eAAe,EAChD;IACA,OAAOC,UAAU,CAACG,SAAS,CAAC,CAAC,CAAC,CAACN,KAAK;EACtC;AACF,CAAC;AAEDN,OAAO,CAACa,gBAAgB,GAAG,UAAUR,MAAM,EAAE;EAC3C,OAAOA,MAAM,KAAK,iBAAiB,IAAIA,MAAM,KAAK,SAAS;AAC7D,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/shipped-proposals.js b/node_modules/@babel/preset-env/lib/shipped-proposals.js new file mode 100644 index 0000000000000000000000000000000000000000..6725bcfaeecce179e0c1e89093d28d9b5d3eed75 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/shipped-proposals.js @@ -0,0 +1,29 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.proposalSyntaxPlugins = exports.proposalPlugins = exports.pluginSyntaxMap = void 0; +const proposalPlugins = exports.proposalPlugins = new Set([]); +const proposalSyntaxPlugins = exports.proposalSyntaxPlugins = ["syntax-import-assertions", "syntax-import-attributes"]; +const pluginSyntaxObject = { + "transform-async-generator-functions": "syntax-async-generators", + "transform-class-properties": "syntax-class-properties", + "transform-class-static-block": "syntax-class-static-block", + "transform-export-namespace-from": "syntax-export-namespace-from", + "transform-json-strings": "syntax-json-strings", + "transform-nullish-coalescing-operator": "syntax-nullish-coalescing-operator", + "transform-numeric-separator": "syntax-numeric-separator", + "transform-object-rest-spread": "syntax-object-rest-spread", + "transform-optional-catch-binding": "syntax-optional-catch-binding", + "transform-optional-chaining": "syntax-optional-chaining", + "transform-private-methods": "syntax-class-properties", + "transform-private-property-in-object": "syntax-private-property-in-object", + "transform-unicode-property-regex": null +}; +const pluginSyntaxEntries = Object.keys(pluginSyntaxObject).map(function (key) { + return [key, pluginSyntaxObject[key]]; +}); +const pluginSyntaxMap = exports.pluginSyntaxMap = new Map(pluginSyntaxEntries); + +//# sourceMappingURL=shipped-proposals.js.map diff --git a/node_modules/@babel/preset-env/lib/shipped-proposals.js.map b/node_modules/@babel/preset-env/lib/shipped-proposals.js.map new file mode 100644 index 0000000000000000000000000000000000000000..3a3f582816cfc7eaa1fed65ec60b4bd36ba03268 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/shipped-proposals.js.map @@ -0,0 +1 @@ +{"version":3,"names":["proposalPlugins","exports","Set","proposalSyntaxPlugins","pluginSyntaxObject","pluginSyntaxEntries","Object","keys","map","key","pluginSyntaxMap","Map"],"sources":["../src/shipped-proposals.ts"],"sourcesContent":["// TODO(Babel 8): Remove this file\n/* eslint sort-keys: \"error\" */\n// These mappings represent the transform plugins that have been\n// shipped by browsers, and are enabled by the `shippedProposals` option.\n\nconst proposalPlugins = new Set([]);\n\n// proposal syntax plugins enabled by the `shippedProposals` option.\n// Unlike proposalPlugins above, they are independent of compiler targets.\nconst proposalSyntaxPlugins = process.env.BABEL_8_BREAKING\n ? ([] as const)\n : ([\"syntax-import-assertions\", \"syntax-import-attributes\"] as const);\n\n// use intermediary object to enforce alphabetical key order\nconst pluginSyntaxObject = process.env.BABEL_8_BREAKING\n ? {}\n : ({\n \"transform-async-generator-functions\": \"syntax-async-generators\",\n \"transform-class-properties\": \"syntax-class-properties\",\n \"transform-class-static-block\": \"syntax-class-static-block\",\n \"transform-export-namespace-from\": \"syntax-export-namespace-from\",\n \"transform-json-strings\": \"syntax-json-strings\",\n \"transform-nullish-coalescing-operator\":\n \"syntax-nullish-coalescing-operator\",\n \"transform-numeric-separator\": \"syntax-numeric-separator\",\n \"transform-object-rest-spread\": \"syntax-object-rest-spread\",\n \"transform-optional-catch-binding\": \"syntax-optional-catch-binding\",\n \"transform-optional-chaining\": \"syntax-optional-chaining\",\n // note: we don't have syntax-private-methods\n \"transform-private-methods\": \"syntax-class-properties\",\n \"transform-private-property-in-object\":\n \"syntax-private-property-in-object\",\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n \"transform-unicode-property-regex\": null as null,\n } as const);\n\ntype PluginSyntaxObjectKeys = keyof typeof pluginSyntaxObject;\n\nconst pluginSyntaxEntries = Object.keys(pluginSyntaxObject).map<\n [PluginSyntaxObjectKeys, string | null]\n>(function (key: PluginSyntaxObjectKeys) {\n return [key, pluginSyntaxObject[key]];\n});\n\nconst pluginSyntaxMap = new Map(pluginSyntaxEntries);\n\nexport { proposalPlugins, proposalSyntaxPlugins, pluginSyntaxMap };\n"],"mappings":";;;;;;AAKA,MAAMA,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAIE,GAAG,CAAS,EAAE,CAAC;AAI3C,MAAMC,qBAAqB,GAAAF,OAAA,CAAAE,qBAAA,GAEtB,CAAC,0BAA0B,EAAE,0BAA0B,CAAW;AAGvE,MAAMC,kBAAkB,GAEnB;EACC,qCAAqC,EAAE,yBAAyB;EAChE,4BAA4B,EAAE,yBAAyB;EACvD,8BAA8B,EAAE,2BAA2B;EAC3D,iCAAiC,EAAE,8BAA8B;EACjE,wBAAwB,EAAE,qBAAqB;EAC/C,uCAAuC,EACrC,oCAAoC;EACtC,6BAA6B,EAAE,0BAA0B;EACzD,8BAA8B,EAAE,2BAA2B;EAC3D,kCAAkC,EAAE,+BAA+B;EACnE,6BAA6B,EAAE,0BAA0B;EAEzD,2BAA2B,EAAE,yBAAyB;EACtD,sCAAsC,EACpC,mCAAmC;EAErC,kCAAkC,EAAE;AACtC,CAAW;AAIf,MAAMC,mBAAmB,GAAGC,MAAM,CAACC,IAAI,CAACH,kBAAkB,CAAC,CAACI,GAAG,CAE7D,UAAUC,GAA2B,EAAE;EACvC,OAAO,CAACA,GAAG,EAAEL,kBAAkB,CAACK,GAAG,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF,MAAMC,eAAe,GAAAT,OAAA,CAAAS,eAAA,GAAG,IAAIC,GAAG,CAACN,mBAAmB,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/lib/targets-parser.js b/node_modules/@babel/preset-env/lib/targets-parser.js new file mode 100644 index 0000000000000000000000000000000000000000..0e34ab62dd282e6499d79af4ea3ba11414ee29ec --- /dev/null +++ b/node_modules/@babel/preset-env/lib/targets-parser.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "default", { + enumerable: true, + get: function () { + return _helperCompilationTargets.default; + } +}); +Object.defineProperty(exports, "isBrowsersQueryValid", { + enumerable: true, + get: function () { + return _helperCompilationTargets.isBrowsersQueryValid; + } +}); +var _helperCompilationTargets = require("@babel/helper-compilation-targets"); + +//# sourceMappingURL=targets-parser.js.map diff --git a/node_modules/@babel/preset-env/lib/targets-parser.js.map b/node_modules/@babel/preset-env/lib/targets-parser.js.map new file mode 100644 index 0000000000000000000000000000000000000000..719602129256a86adaea9c95ec2472111c435b2b --- /dev/null +++ b/node_modules/@babel/preset-env/lib/targets-parser.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperCompilationTargets","require"],"sources":["../src/targets-parser.ts"],"sourcesContent":["// TODO: Remove in Babel 8\n\nexport {\n default,\n isBrowsersQueryValid,\n} from \"@babel/helper-compilation-targets\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAEA,IAAAA,yBAAA,GAAAC,OAAA","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/preset-env/node_modules/.bin/semver b/node_modules/@babel/preset-env/node_modules/.bin/semver new file mode 100644 index 0000000000000000000000000000000000000000..666034a75d8442be9bb2d9c55c3909b55a093cb5 --- /dev/null +++ b/node_modules/@babel/preset-env/node_modules/.bin/semver @@ -0,0 +1,174 @@ +#!/usr/bin/env node +// Standalone semver comparison program. +// Exits successfully and prints matching version(s) if +// any supplied version is valid and passes all tests. + +var argv = process.argv.slice(2) + +var versions = [] + +var range = [] + +var inc = null + +var version = require('../package.json').version + +var loose = false + +var includePrerelease = false + +var coerce = false + +var rtl = false + +var identifier + +var semver = require('../semver') + +var reverse = false + +var options = {} + +main() + +function main () { + if (!argv.length) return help() + while (argv.length) { + var a = argv.shift() + var indexOfEqualSign = a.indexOf('=') + if (indexOfEqualSign !== -1) { + a = a.slice(0, indexOfEqualSign) + argv.unshift(a.slice(indexOfEqualSign + 1)) + } + switch (a) { + case '-rv': case '-rev': case '--rev': case '--reverse': + reverse = true + break + case '-l': case '--loose': + loose = true + break + case '-p': case '--include-prerelease': + includePrerelease = true + break + case '-v': case '--version': + versions.push(argv.shift()) + break + case '-i': case '--inc': case '--increment': + switch (argv[0]) { + case 'major': case 'minor': case 'patch': case 'prerelease': + case 'premajor': case 'preminor': case 'prepatch': + inc = argv.shift() + break + default: + inc = 'patch' + break + } + break + case '--preid': + identifier = argv.shift() + break + case '-r': case '--range': + range.push(argv.shift()) + break + case '-c': case '--coerce': + coerce = true + break + case '--rtl': + rtl = true + break + case '--ltr': + rtl = false + break + case '-h': case '--help': case '-?': + return help() + default: + versions.push(a) + break + } + } + + var options = { loose: loose, includePrerelease: includePrerelease, rtl: rtl } + + versions = versions.map(function (v) { + return coerce ? (semver.coerce(v, options) || { version: v }).version : v + }).filter(function (v) { + return semver.valid(v) + }) + if (!versions.length) return fail() + if (inc && (versions.length !== 1 || range.length)) { return failInc() } + + for (var i = 0, l = range.length; i < l; i++) { + versions = versions.filter(function (v) { + return semver.satisfies(v, range[i], options) + }) + if (!versions.length) return fail() + } + return success(versions) +} + +function failInc () { + console.error('--inc can only be used on a single version with no range') + fail() +} + +function fail () { process.exit(1) } + +function success () { + var compare = reverse ? 'rcompare' : 'compare' + versions.sort(function (a, b) { + return semver[compare](a, b, options) + }).map(function (v) { + return semver.clean(v, options) + }).map(function (v) { + return inc ? semver.inc(v, inc, options, identifier) : v + }).forEach(function (v, i, _) { console.log(v) }) +} + +function help () { + console.log(['SemVer ' + version, + '', + 'A JavaScript implementation of the https://semver.org/ specification', + 'Copyright Isaac Z. Schlueter', + '', + 'Usage: semver [options] [ [...]]', + 'Prints valid versions sorted by SemVer precedence', + '', + 'Options:', + '-r --range ', + ' Print versions that match the specified range.', + '', + '-i --increment []', + ' Increment a version by the specified level. Level can', + ' be one of: major, minor, patch, premajor, preminor,', + " prepatch, or prerelease. Default level is 'patch'.", + ' Only one version may be specified.', + '', + '--preid ', + ' Identifier to be used to prefix premajor, preminor,', + ' prepatch or prerelease version increments.', + '', + '-l --loose', + ' Interpret versions and ranges loosely', + '', + '-p --include-prerelease', + ' Always include prerelease versions in range matching', + '', + '-c --coerce', + ' Coerce a string into SemVer if possible', + ' (does not imply --loose)', + '', + '--rtl', + ' Coerce version strings right to left', + '', + '--ltr', + ' Coerce version strings left to right (default)', + '', + 'Program exits successfully if any valid version satisfies', + 'all supplied ranges, and prints all satisfying versions.', + '', + 'If no satisfying versions are found, then exits failure.', + '', + 'Versions are printed in ascending order, so supplying', + 'multiple versions to the utility will just sort them.' + ].join('\n')) +} diff --git a/node_modules/@babel/preset-env/package.json b/node_modules/@babel/preset-env/package.json new file mode 100644 index 0000000000000000000000000000000000000000..cec08fac63406c4e35a6f831d435f4d331142b67 --- /dev/null +++ b/node_modules/@babel/preset-env/package.json @@ -0,0 +1,104 @@ +{ + "name": "@babel/preset-env", + "version": "7.29.7", + "description": "A Babel preset for each environment.", + "author": "The Babel Team (https://babel.dev/team)", + "homepage": "https://babel.dev/docs/en/next/babel-preset-env", + "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20preset-env%22+is%3Aopen", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-preset-env" + }, + "main": "./lib/index.js", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.29.7", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.29.7", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.29.7", + "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array": "^7.29.7", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.29.7", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.29.7", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-import-assertions": "^7.29.7", + "@babel/plugin-syntax-import-attributes": "^7.29.7", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.29.7", + "@babel/plugin-transform-async-generator-functions": "^7.29.7", + "@babel/plugin-transform-async-to-generator": "^7.29.7", + "@babel/plugin-transform-block-scoped-functions": "^7.29.7", + "@babel/plugin-transform-block-scoping": "^7.29.7", + "@babel/plugin-transform-class-properties": "^7.29.7", + "@babel/plugin-transform-class-static-block": "^7.29.7", + "@babel/plugin-transform-classes": "^7.29.7", + "@babel/plugin-transform-computed-properties": "^7.29.7", + "@babel/plugin-transform-destructuring": "^7.29.7", + "@babel/plugin-transform-dotall-regex": "^7.29.7", + "@babel/plugin-transform-duplicate-keys": "^7.29.7", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.29.7", + "@babel/plugin-transform-dynamic-import": "^7.29.7", + "@babel/plugin-transform-explicit-resource-management": "^7.29.7", + "@babel/plugin-transform-exponentiation-operator": "^7.29.7", + "@babel/plugin-transform-export-namespace-from": "^7.29.7", + "@babel/plugin-transform-for-of": "^7.29.7", + "@babel/plugin-transform-function-name": "^7.29.7", + "@babel/plugin-transform-json-strings": "^7.29.7", + "@babel/plugin-transform-literals": "^7.29.7", + "@babel/plugin-transform-logical-assignment-operators": "^7.29.7", + "@babel/plugin-transform-member-expression-literals": "^7.29.7", + "@babel/plugin-transform-modules-amd": "^7.29.7", + "@babel/plugin-transform-modules-commonjs": "^7.29.7", + "@babel/plugin-transform-modules-systemjs": "^7.29.7", + "@babel/plugin-transform-modules-umd": "^7.29.7", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.29.7", + "@babel/plugin-transform-new-target": "^7.29.7", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.29.7", + "@babel/plugin-transform-numeric-separator": "^7.29.7", + "@babel/plugin-transform-object-rest-spread": "^7.29.7", + "@babel/plugin-transform-object-super": "^7.29.7", + "@babel/plugin-transform-optional-catch-binding": "^7.29.7", + "@babel/plugin-transform-optional-chaining": "^7.29.7", + "@babel/plugin-transform-parameters": "^7.29.7", + "@babel/plugin-transform-private-methods": "^7.29.7", + "@babel/plugin-transform-private-property-in-object": "^7.29.7", + "@babel/plugin-transform-property-literals": "^7.29.7", + "@babel/plugin-transform-regenerator": "^7.29.7", + "@babel/plugin-transform-regexp-modifiers": "^7.29.7", + "@babel/plugin-transform-reserved-words": "^7.29.7", + "@babel/plugin-transform-shorthand-properties": "^7.29.7", + "@babel/plugin-transform-spread": "^7.29.7", + "@babel/plugin-transform-sticky-regex": "^7.29.7", + "@babel/plugin-transform-template-literals": "^7.29.7", + "@babel/plugin-transform-typeof-symbol": "^7.29.7", + "@babel/plugin-transform-unicode-escapes": "^7.29.7", + "@babel/plugin-transform-unicode-property-regex": "^7.29.7", + "@babel/plugin-transform-unicode-regex": "^7.29.7", + "@babel/plugin-transform-unicode-sets-regex": "^7.29.7", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.15", + "babel-plugin-polyfill-corejs3": "^0.14.0", + "babel-plugin-polyfill-regenerator": "^0.6.6", + "core-js-compat": "^3.48.0", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "devDependencies": { + "@babel/core": "^7.29.7", + "@babel/core-7.12": "npm:@babel/core@7.12.9", + "@babel/helper-plugin-test-runner": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "type": "commonjs" +} \ No newline at end of file diff --git a/node_modules/@babel/preset-modules/LICENSE b/node_modules/@babel/preset-modules/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..d83eaafe67de22649caac61553004262c1c1bbca --- /dev/null +++ b/node_modules/@babel/preset-modules/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Babel + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/preset-modules/README.md b/node_modules/@babel/preset-modules/README.md new file mode 100644 index 0000000000000000000000000000000000000000..eb7517c53299ada818aa3341278748eca14f7485 --- /dev/null +++ b/node_modules/@babel/preset-modules/README.md @@ -0,0 +1,171 @@ +# `@babel/preset-modules` + +> ℹ️ Starting from `@babel/preset-env` 7.9.0, you can enable the [`bugfixes: true` option](https://babeljs.io/docs/en/babel-preset-env#bugfixes) to get the same behavior as using `@babel/preset-modules`, but with support for custom `targets`. +> If you need to target browsers with native modules support (like this preset does), you can use `targets: { esmodules: true }`. + +A Babel preset that enables async/await, Tagged Templates, arrow functions, destructured and rest parameters, and more **in all modern browsers** ([88% of traffic](https://caniuse.com/#feat=es6-module)). + +It works around bugs and inconsistencies in modern JavaScript engines by converting broken syntax to the _closest non-broken modern syntax_. Use this in place of `@babel/preset-env`'s [target.esmodules](https://babeljs.io/docs/en/babel-preset-env#targetsesmodules) option for smaller bundle size and improved performance. + +This preset is only useful for browsers. You can serve the output to modern browsers while still supporting older browsers using the [module/nomodule pattern](https://philipwalton.com/articles/deploying-es2015-code-in-production-today/): + +```html + + + + +``` + +### Features Supported + +- JSX spread attributes are compiled to Object.assign() instead of a helper. +- Default, destructured and optional parameters are all natively supported. +- Tagged Templates are fully supported, patched for Safari 10+ and Edge 16+. +- async/await is supported without being transpiled to generators. +- Function name inference works as expected, including Arrow Functions. + +### Installation & Usage + +Install the preset from [npm](https://www.npmjs.com/package/@babel/preset-modules): + +```sh +npm install @babel/preset-modules --save-dev +``` + +To use the preset, add it to your [Babel Configuration](https://babeljs.io/docs/en/configuration): + +```js +{ + "presets": [ + "@babel/preset-modules" + ] +} +``` + +If you're implementing the module/nomodule pattern, your configuration might look something like this: + +```js +{ + "env": { + "modern": { + "presets": [ + "@babel/preset-modules" + ] + }, + "legacy": { + "presets": [ + "@babel/preset-env" + ] + } + } +} +``` + +### Options + +There's a single Boolean `loose` option, which defaults to `false`. Passing `true` further reduces output size. + +The `loose` setting turns off a rarely-needed function name workaround for older versions of Edge. If you're not relying on `Function.prototype.name`, it's worth enabling loose mode. + +### How does it work? + +Babel’s `preset-env` is great, since it lets you define which Babel features are needed based on a browser support target. In order to make that plumbing work automatically, the preset has configuration that groups all of the new JavaScript syntax features into collections of related syntax transforms. These groups are fairly large, for example "function arguments" includes destructured, default and rest parameters. The groupings come from the fact that Babel’s transforms often rely on other transforms, so they can’t always be applied in isolation. + +From this grouping information, Babel enables or disables each group based on the browser support target you specify to preset-env’s [targets](https://babeljs.io/docs/en/babel-preset-env#targets) option. For modern output, the [targets.esmodules](https://babeljs.io/docs/en/babel-preset-env#targetsesmodules) option is effectively an alias for the set of browsers that support ES Modules: Edge 16+, Safari 10.1+, Firefox 60+ and Chrome 61+. + +Here's the problem: if any version of any browser in that list contains a bug triggered by modern syntax, the only solution we have is to enable the corresponding transform group that fixes that bug. This means that fundamentally, preset-env converts code to ES5 in order to get around syntax bugs in ES2017. Since that's the only solution at our disposal, eventually it becomes overused. + +For example, all of the new syntax features relating to function parameters are grouped into the same Babel plugin (`@babel/plugin-transform-function-parameters`). That means because Edge 16 & 17 support ES Modules but have a bug related to parsing shorthand destructured parameters with default values within arrow functions, all functions get compiled from the new compact argument syntaxes down to ES5: + +```js +// this breaks in Edge 16: +const foo = ({ a = 1 }) => {}; + +// .. but this doesn't: +function foo({ a = 1, b }, ...args) {} + +// ... and neither does this: +const foo = ({ a: a = 1 }) => {}; +``` + +In fact, there are 23 syntax improvements for function parameters in ES2017, and only one of them is broken in ES Modules-supporting browsers. It seems unfortunate to transpile all those great features down to ES5 just for one browser! + +This plugin takes a different approach than we've historically taken with JavaScript: it transpiles the broken syntax to the closest _non-broken modern syntax_. In the above case, here's what is generated to fix all ES Modules-supporting browsers: + +**input:** + +```js +const foo = ({ a = 1 }, b = 2, ...args) => [a,b,args]; +``` + +**output:** + +```js +const foo = ({ a: a = 1 }, b = 2, ...args) => [a,b,args]; +``` + +That output works in all ES Modules-supporting browsers, and is only **59 bytes** minified & gzipped. + +> Compare this to `@babel/preset-env`'s `targets.esmodules` output (**147 bytes** minified & gzipped): +> +> ```js +>const foo = function foo(_ref, b) { +> let { a = 1 } = _ref; +> +> if (b === void 0) { b = 2; } +> +> for ( +> var _len = arguments.length, +> args = new Array(_len > 2 ? _len - 2 : 0), +> _key = 2; _key < _len; _key++ +> ) { +> args[_key - 2] = arguments[_key]; +> } +> +> return [a, b, args]; +>}; +>```` + +The result is improved bundle size and performance, while supporting the same browsers. + + +### Important: Minification + +The output generated by this preset includes workarounds for Safari 10, however minifiers like Terser sometimes remove these workarounds. In order to avoid shipping broken code, it's important to tell Terser to preserve the workarounds, which can be done via the `safari10` option. + +It's also generally the case that minifiers are configured to output ES5 by default, so you'll want to change the output syntax to ES2017. + +With [Terser's Node API](https://github.com/terser/terser#minify-options): + +```js +terser.minify({ + ecma: 2017, + safari10: true +}) +``` + +With [Terser CLI](https://npm.im/terser): + +```sh +terser --ecma 2017 --safari10 ... +``` + +With [terser-webpack-plugin](https://webpack.js.org/plugins/terser-webpack-plugin/): + +```js +module.exports = { + optimization: { + minimizer: [ + new TerserPlugin({ + terserOptions: { + ecma: 2017, + safari10: true + } + }) + ] + } +}; +``` + +All of the above configurations also apply to [uglify-es](https://github.com/mishoo/UglifyJS2/tree/harmony). +UglifyJS (2.x and prior) does not support modern JavaScript, so it cannot be used in conjunction with this preset. diff --git a/node_modules/@babel/preset-modules/lib/index.js b/node_modules/@babel/preset-modules/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..a4c63e76e008733e583947feb584e6ac3205794f --- /dev/null +++ b/node_modules/@babel/preset-modules/lib/index.js @@ -0,0 +1,27 @@ +"use strict"; + +exports.__esModule = true; +exports.default = void 0; + +var _path = _interopRequireDefault(require("path")); + +var _helperPluginUtils = require("@babel/helper-plugin-utils"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @babel/preset-modules produces clean, minimal output for ES Modules-supporting browsers. + * @param {Object} [options] + * @param {boolean} [options.loose=false] Loose mode skips seldom-needed transforms that increase output size. + */ +var _default = (0, _helperPluginUtils.declare)((api, opts) => { + api.assertVersion(7); + const loose = opts.loose === true; + return { + plugins: [_path.default.resolve(__dirname, "./plugins/transform-edge-default-parameters"), _path.default.resolve(__dirname, "./plugins/transform-tagged-template-caching"), _path.default.resolve(__dirname, "./plugins/transform-jsx-spread"), _path.default.resolve(__dirname, "./plugins/transform-safari-for-shadowing"), _path.default.resolve(__dirname, "./plugins/transform-safari-block-shadowing"), _path.default.resolve(__dirname, "./plugins/transform-async-arrows-in-class"), !loose && _path.default.resolve(__dirname, "./plugins/transform-edge-function-name"), // Proposals + require.resolve("@babel/plugin-proposal-unicode-property-regex"), require.resolve("@babel/plugin-transform-dotall-regex")].filter(Boolean) + }; +}); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/@babel/preset-modules/lib/plugins/transform-async-arrows-in-class/index.js b/node_modules/@babel/preset-modules/lib/plugins/transform-async-arrows-in-class/index.js new file mode 100644 index 0000000000000000000000000000000000000000..69774046fbd73f01d2a1fa73096315e62ace6c6a --- /dev/null +++ b/node_modules/@babel/preset-modules/lib/plugins/transform-async-arrows-in-class/index.js @@ -0,0 +1,45 @@ +"use strict"; + +exports.__esModule = true; +exports.default = void 0; + +/** + * Safari 10.3 had an issue where async arrow function expressions within any class method would throw. + * After an initial fix, any references to the instance via `this` within those methods would also throw. + * This is fixed by converting arrow functions in class methods into equivalent function expressions. + * @see https://bugs.webkit.org/show_bug.cgi?id=166879 + * + * @example + * class X{ a(){ async () => {}; } } // throws + * class X{ a(){ async function() {}; } } // works + * + * @example + * class X{ a(){ + * async () => this.a; // throws + * } } + * class X{ a(){ + * var _this=this; + * async function() { return _this.a }; // works + * } } + */ +const OPTS = { + allowInsertArrow: false, + specCompliant: false +}; + +var _default = ({ + types: t +}) => ({ + name: "transform-async-arrows-in-class", + visitor: { + ArrowFunctionExpression(path) { + if (path.node.async && path.findParent(t.isClassMethod)) { + path.arrowFunctionToExpression(OPTS); + } + } + + } +}); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/@babel/preset-modules/lib/plugins/transform-edge-default-parameters/index.js b/node_modules/@babel/preset-modules/lib/plugins/transform-edge-default-parameters/index.js new file mode 100644 index 0000000000000000000000000000000000000000..639361384dd72f399a24f3d88c075b16b8382df0 --- /dev/null +++ b/node_modules/@babel/preset-modules/lib/plugins/transform-edge-default-parameters/index.js @@ -0,0 +1,36 @@ +"use strict"; + +exports.__esModule = true; +exports.default = void 0; + +/** + * Converts destructured parameters with default values to non-shorthand syntax. + * This fixes the only arguments-related bug in ES Modules-supporting browsers (Edge 16 & 17). + * Use this plugin instead of @babel/plugin-transform-parameters when targeting ES Modules. + */ +var _default = ({ + types: t +}) => { + const isArrowParent = p => p.parentKey === "params" && p.parentPath && t.isArrowFunctionExpression(p.parentPath); + + return { + name: "transform-edge-default-parameters", + visitor: { + AssignmentPattern(path) { + const arrowArgParent = path.find(isArrowParent); + + if (arrowArgParent && path.parent.shorthand) { + // In Babel 7+, there is no way to force non-shorthand properties. + path.parent.shorthand = false; + (path.parent.extra || {}).shorthand = false; // So, to ensure non-shorthand, rename the local identifier so it no longer matches: + + path.scope.rename(path.parent.key.name); + } + } + + } + }; +}; + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/@babel/preset-modules/lib/plugins/transform-edge-function-name/index.js b/node_modules/@babel/preset-modules/lib/plugins/transform-edge-function-name/index.js new file mode 100644 index 0000000000000000000000000000000000000000..acc3196697bd0f6e44c46026952595c368ee853f --- /dev/null +++ b/node_modules/@babel/preset-modules/lib/plugins/transform-edge-function-name/index.js @@ -0,0 +1,42 @@ +"use strict"; + +exports.__esModule = true; +exports.default = void 0; + +/** + * Edge 16 & 17 do not infer function.name from variable assignment. + * All other `function.name` behavior works fine, so we can skip most of @babel/transform-function-name. + * @see https://kangax.github.io/compat-table/es6/#test-function_name_property_variables_(function) + * + * Note: contrary to various Github issues, Edge 16+ *does* correctly infer the name of Arrow Functions. + * The variable declarator name inference issue only affects function expressions, so that's all we fix here. + * + * A Note on Minification: Terser undoes this transform *by default* unless `keep_fnames` is set to true. + * There is by design - if Function.name is critical to your application, you must configure + * your minifier to preserve function names. + */ +var _default = ({ + types: t +}) => ({ + name: "transform-edge-function-name", + visitor: { + FunctionExpression: { + exit(path) { + if (!path.node.id && t.isIdentifier(path.parent.id)) { + const id = t.cloneNode(path.parent.id); + const binding = path.scope.getBinding(id.name); // if the binding gets reassigned anywhere, rename it + + if (binding == null ? void 0 : binding.constantViolations.length) { + path.scope.rename(id.name); + } + + path.node.id = id; + } + } + + } + } +}); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/@babel/preset-modules/lib/plugins/transform-jsx-spread/index.js b/node_modules/@babel/preset-modules/lib/plugins/transform-jsx-spread/index.js new file mode 100644 index 0000000000000000000000000000000000000000..fcb6af17ca47689b332ae8dd1c355c4cebce6da2 --- /dev/null +++ b/node_modules/@babel/preset-modules/lib/plugins/transform-jsx-spread/index.js @@ -0,0 +1,115 @@ +"use strict"; + +exports.__esModule = true; +exports.default = void 0; + +var _esutils = _interopRequireDefault(require("esutils")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * Converts JSX Spread arguments into Object Spread, avoiding Babel's helper or Object.assign injection. + * Input: + *
+ * Output: + *
+ * ...which Babel converts to: + * h("div", { a: "1", ...b }) + */ +var _default = ({ + types: t +}) => { + // converts a set of JSXAttributes to an Object.assign() call + function convertAttributesAssign(attributes) { + const args = []; + + for (let i = 0, current; i < attributes.length; i++) { + const node = attributes[i]; + + if (t.isJSXSpreadAttribute(node)) { + // the first attribute is a spread, avoid copying all other attributes onto it + if (i === 0) { + args.push(t.objectExpression([])); + } + + current = null; + args.push(node.argument); + } else { + const name = getAttributeName(node); + const value = getAttributeValue(node); + + if (!current) { + current = t.objectExpression([]); + args.push(current); + } + + current.properties.push(t.objectProperty(name, value)); + } + } + + return t.callExpression(t.memberExpression(t.identifier("Object"), t.identifier("assign")), args); + } // Converts a JSXAttribute to the equivalent ObjectExpression property + + + function convertAttributeSpread(node) { + if (t.isJSXSpreadAttribute(node)) { + return t.spreadElement(node.argument); + } + + const name = getAttributeName(node); + const value = getAttributeValue(node); + return t.inherits(t.objectProperty(name, value), node); + } // Convert a JSX attribute name to an Object expression property name + + + function getAttributeName(node) { + if (t.isJSXNamespacedName(node.name)) { + return t.stringLiteral(node.name.namespace.name + ":" + node.name.name.name); + } + + if (_esutils.default.keyword.isIdentifierNameES6(node.name.name)) { + return t.identifier(node.name.name); + } + + return t.stringLiteral(node.name.name); + } // Convert a JSX attribute value to a JavaScript expression value + + + function getAttributeValue(node) { + let value = node.value || t.booleanLiteral(true); + + if (t.isJSXExpressionContainer(value)) { + value = value.expression; + } else if (t.isStringLiteral(value)) { + value.value = value.value.replace(/\n\s+/g, " "); // "raw" JSXText should not be used from a StringLiteral because it needs to be escaped. + + if (value.extra && value.extra.raw) { + delete value.extra.raw; + } + } + + return value; + } + + return { + name: "transform-jsx-spread", + visitor: { + JSXOpeningElement(path, state) { + const useSpread = state.opts.useSpread === true; + const hasSpread = path.node.attributes.some(attr => t.isJSXSpreadAttribute(attr)); // ignore JSX Elements without spread or with lone spread: + + if (!hasSpread || path.node.attributes.length === 1) return; + + if (useSpread) { + path.node.attributes = [t.jsxSpreadAttribute(t.objectExpression(path.node.attributes.map(convertAttributeSpread)))]; + } else { + path.node.attributes = [t.jsxSpreadAttribute(convertAttributesAssign(path.node.attributes))]; + } + } + + } + }; +}; + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/@babel/preset-modules/lib/plugins/transform-safari-block-shadowing/index.js b/node_modules/@babel/preset-modules/lib/plugins/transform-safari-block-shadowing/index.js new file mode 100644 index 0000000000000000000000000000000000000000..932cb826718162e92739a59da701695aa65f52c5 --- /dev/null +++ b/node_modules/@babel/preset-modules/lib/plugins/transform-safari-block-shadowing/index.js @@ -0,0 +1,47 @@ +"use strict"; + +exports.__esModule = true; +exports.default = _default; + +/** + * Fixes block-shadowed let/const bindings in Safari 10/11. + * https://kangax.github.io/compat-table/es6/#test-let_scope_shadow_resolution + */ +function _default({ + types: t +}) { + return { + name: "transform-safari-block-shadowing", + visitor: { + VariableDeclarator(path) { + // the issue only affects let and const bindings: + const kind = path.parent.kind; + if (kind !== "let" && kind !== "const") return; // ignore non-block-scoped bindings: + + const block = path.scope.block; + if (t.isFunction(block) || t.isProgram(block)) return; + const bindings = t.getOuterBindingIdentifiers(path.node.id); + + for (const name of Object.keys(bindings)) { + let scope = path.scope; // ignore parent bindings (note: impossible due to let/const?) + + if (!scope.hasOwnBinding(name)) continue; // check if shadowed within the nearest function/program boundary + + while (scope = scope.parent) { + if (scope.hasOwnBinding(name)) { + path.scope.rename(name); + break; + } + + if (t.isFunction(scope.block) || t.isProgram(scope.block)) { + break; + } + } + } + } + + } + }; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/@babel/preset-modules/lib/plugins/transform-safari-for-shadowing/index.js b/node_modules/@babel/preset-modules/lib/plugins/transform-safari-for-shadowing/index.js new file mode 100644 index 0000000000000000000000000000000000000000..43c33e5bd308d1c9ccb7efaad7fa1a31daba7465 --- /dev/null +++ b/node_modules/@babel/preset-modules/lib/plugins/transform-safari-for-shadowing/index.js @@ -0,0 +1,42 @@ +"use strict"; + +exports.__esModule = true; +exports.default = void 0; + +/** + * Safari ~11 has an issue where variable declarations in a For statement throw if they shadow parameters. + * This is fixed by renaming any declarations in the left/init part of a For* statement so they don't shadow. + * @see https://bugs.webkit.org/show_bug.cgi?id=171041 + * + * @example + * e => { for (let e of []) e } // throws + * e => { for (let _e of []) _e } // works + */ +function handle(declaration) { + if (!declaration.isVariableDeclaration()) return; + const fn = declaration.getFunctionParent(); + const { + name + } = declaration.node.declarations[0].id; // check if there is a shadowed binding coming from a parameter + + if (fn && fn.scope.hasOwnBinding(name) && fn.scope.getOwnBinding(name).kind === "param") { + declaration.scope.rename(name); + } +} + +var _default = () => ({ + name: "transform-safari-for-shadowing", + visitor: { + ForXStatement(path) { + handle(path.get("left")); + }, + + ForStatement(path) { + handle(path.get("init")); + } + + } +}); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/@babel/preset-modules/lib/plugins/transform-tagged-template-caching/index.js b/node_modules/@babel/preset-modules/lib/plugins/transform-tagged-template-caching/index.js new file mode 100644 index 0000000000000000000000000000000000000000..249a6c3c009490b334c71246b71f9ebf7306d840 --- /dev/null +++ b/node_modules/@babel/preset-modules/lib/plugins/transform-tagged-template-caching/index.js @@ -0,0 +1,75 @@ +"use strict"; + +exports.__esModule = true; +exports.default = void 0; + +/** + * Converts destructured parameters with default values to non-shorthand syntax. + * This fixes the only Tagged Templates-related bug in ES Modules-supporting browsers (Safari 10 & 11). + * Use this plugin instead of `@babel/plugin-transform-template-literals` when targeting ES Modules. + * + * @example + * // Bug 1: Safari 10/11 doesn't reliably return the same Strings value. + * // The value changes depending on invocation and function optimization state. + * function f() { return Object`` } + * f() === new f() // false, should be true. + * + * @example + * // Bug 2: Safari 10/11 use the same cached strings value when the string parts are the same. + * // This behavior comes from an earlier version of the spec, and can cause tricky bugs. + * Object``===Object`` // true, should be false. + * + * Benchmarks: https://jsperf.com/compiled-tagged-template-performance + */ +var _default = ({ + types: t +}) => ({ + name: "transform-tagged-template-caching", + visitor: { + TaggedTemplateExpression(path, state) { + // tagged templates we've already dealt with + let processed = state.get("processed"); + + if (!processed) { + processed = new WeakSet(); + state.set("processed", processed); + } + + if (processed.has(path.node)) return path.skip(); // Grab the expressions from the original tag. + // tag`a${'hello'}` // ['hello'] + + const expressions = path.node.quasi.expressions; // Create an identity function helper: + // identity = t => t + + let identity = state.get("identity"); + + if (!identity) { + identity = path.scope.getProgramParent().generateDeclaredUidIdentifier("_"); + state.set("identity", identity); + const binding = path.scope.getBinding(identity.name); + binding.path.get("init").replaceWith(t.arrowFunctionExpression( // re-use the helper identifier for compressability + [t.identifier("t")], t.identifier("t"))); + } // Use the identity function helper to get a reference to the template's Strings. + // We replace all expressions with `0` ensure Strings has the same shape. + // identity`a${0}` + + + const template = t.taggedTemplateExpression(t.cloneNode(identity), t.templateLiteral(path.node.quasi.quasis, expressions.map(() => t.numericLiteral(0)))); + processed.add(template); // Install an inline cache at the callsite using the global variable: + // _t || (_t = identity`a${0}`) + + const ident = path.scope.getProgramParent().generateDeclaredUidIdentifier("t"); + path.scope.getBinding(ident.name).path.parent.kind = "let"; + const inlineCache = t.logicalExpression("||", ident, t.assignmentExpression("=", t.cloneNode(ident), template)); // The original tag function becomes a plain function call. + // The expressions omitted from the cached Strings tag are directly applied as arguments. + // tag(_t || (_t = Object`a${0}`), 'hello') + + const node = t.callExpression(path.node.tag, [inlineCache, ...expressions]); + path.replaceWith(node); + } + + } +}); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/@babel/preset-modules/package.json b/node_modules/@babel/preset-modules/package.json new file mode 100644 index 0000000000000000000000000000000000000000..76c97627718f8412c82f3b1402229863c8f465a4 --- /dev/null +++ b/node_modules/@babel/preset-modules/package.json @@ -0,0 +1,104 @@ +{ + "name": "@babel/preset-modules", + "version": "0.1.6-no-external-plugins", + "description": "A Babel preset that targets modern browsers by fixing engine bugs.", + "main": "lib/index.js", + "license": "MIT", + "scripts": { + "start": "concurrently -r 'npm:watch:* -s'", + "build": "babel src -d lib --ignore '**/*.test.js'", + "test": "eslint src test && jest --colors", + "test:browser": "cd test/browser && karmatic --no-coverage --browsers chrome:headless,sauce-chrome-61,sauce-firefox-60,sauce-safari-10,sauce-safari-11,sauce-edge-16,sauce-edge-17 '**/*.js'", + "test:local": "cd test/browser && karmatic --no-coverage '**/*.js'", + "test:safari": "npm run test:local -- --browsers sauce-safari-10", + "test:edge": "npm run test:local -- --browsers sauce-edge-16", + "watch:test": "jest --watch", + "watch:build": "npm run -s build -- -w" + }, + "repository": { + "type": "git", + "url": "https://github.com/babel/preset-modules.git" + }, + "keywords": [ + "babel", + "preset", + "preset-env", + "modern", + "modules", + "ES Modules", + "module/nomodule" + ], + "files": [ + "src", + "lib" + ], + "lint-staged": { + "*.js": [ + "eslint --format=codeframe" + ] + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "jest": { + "testEnvironment": "node", + "roots": [ + "src", + "test" + ] + }, + "eslintConfig": { + "extends": "developit", + "rules": { + "no-console": 0, + "new-cap": 0 + } + }, + "eslintIgnore": [ + "test/fixtures/**/*", + "test/integration/**/*" + ], + "authors": [ + "Jason Miller " + ], + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + }, + "devDependencies": { + "@babel/cli": "^7.7.0", + "@babel/core": "^7.7.2", + "@babel/helper-fixtures": "^7.6.3", + "@babel/helper-plugin-test-runner": "^7.14.5", + "@babel/plugin-transform-modules-commonjs": "^7.5.0", + "@babel/plugin-transform-react-jsx": "^7.7.0", + "@babel/preset-env": "^7.9.6", + "acorn-jsx": "^5.0.1", + "babel-eslint": "^10.0.3", + "babel-plugin-add-module-exports": "^1.0.2", + "chalk": "^2.4.2", + "concurrently": "^4.1.0", + "eslint": "^6.6.0", + "eslint-config-babel": "^9.0.0", + "eslint-plugin-flowtype": "3", + "eslint-plugin-import": "^2.18.2", + "eslint-plugin-prettier": "^3.1.1", + "gzip-size": "^5.1.1", + "if-env": "^1.0.4", + "jest": "^24.8.0", + "karmatic": "^1.4.0", + "prettier": "^1.19.1", + "pretty-bytes": "^5.2.0", + "rollup": "^1.16.3", + "rollup-plugin-babel": "^4.3.3", + "rollup-plugin-node-resolve": "^5.2.0", + "terser": "^4.0.2", + "webpack": "^4.35.0" + }, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + } +} diff --git a/node_modules/@babel/preset-modules/src/index.js b/node_modules/@babel/preset-modules/src/index.js new file mode 100644 index 0000000000000000000000000000000000000000..d213989748038d63a4a11a5026feb2daf6a904cd --- /dev/null +++ b/node_modules/@babel/preset-modules/src/index.js @@ -0,0 +1,26 @@ +import path from "path"; +import { declare } from "@babel/helper-plugin-utils"; + +/** + * @babel/preset-modules produces clean, minimal output for ES Modules-supporting browsers. + * @param {Object} [options] + * @param {boolean} [options.loose=false] Loose mode skips seldom-needed transforms that increase output size. + */ +export default declare((api, opts) => { + api.assertVersion(7); + + const loose = opts.loose === true; + + return { + plugins: [ + path.resolve(__dirname, "./plugins/transform-edge-default-parameters"), + path.resolve(__dirname, "./plugins/transform-tagged-template-caching"), + path.resolve(__dirname, "./plugins/transform-jsx-spread"), + path.resolve(__dirname, "./plugins/transform-safari-for-shadowing"), + path.resolve(__dirname, "./plugins/transform-safari-block-shadowing"), + path.resolve(__dirname, "./plugins/transform-async-arrows-in-class"), + !loose && + path.resolve(__dirname, "./plugins/transform-edge-function-name"), + ].filter(Boolean), + }; +}); diff --git a/node_modules/@babel/preset-modules/src/plugins/transform-async-arrows-in-class/index.js b/node_modules/@babel/preset-modules/src/plugins/transform-async-arrows-in-class/index.js new file mode 100644 index 0000000000000000000000000000000000000000..b05947771379b978a3da0ac8bc7120bd3abde7e4 --- /dev/null +++ b/node_modules/@babel/preset-modules/src/plugins/transform-async-arrows-in-class/index.js @@ -0,0 +1,35 @@ +/** + * Safari 10.3 had an issue where async arrow function expressions within any class method would throw. + * After an initial fix, any references to the instance via `this` within those methods would also throw. + * This is fixed by converting arrow functions in class methods into equivalent function expressions. + * @see https://bugs.webkit.org/show_bug.cgi?id=166879 + * + * @example + * class X{ a(){ async () => {}; } } // throws + * class X{ a(){ async function() {}; } } // works + * + * @example + * class X{ a(){ + * async () => this.a; // throws + * } } + * class X{ a(){ + * var _this=this; + * async function() { return _this.a }; // works + * } } + */ + +const OPTS = { + allowInsertArrow: false, + specCompliant: false, +}; + +export default ({ types: t }) => ({ + name: "transform-async-arrows-in-class", + visitor: { + ArrowFunctionExpression(path) { + if (path.node.async && path.findParent(t.isClassMethod)) { + path.arrowFunctionToExpression(OPTS); + } + }, + }, +}); diff --git a/node_modules/@babel/preset-modules/src/plugins/transform-edge-default-parameters/index.js b/node_modules/@babel/preset-modules/src/plugins/transform-edge-default-parameters/index.js new file mode 100644 index 0000000000000000000000000000000000000000..fff50f198906fbf707a5e6492e6f470f00d3df67 --- /dev/null +++ b/node_modules/@babel/preset-modules/src/plugins/transform-edge-default-parameters/index.js @@ -0,0 +1,29 @@ +/** + * Converts destructured parameters with default values to non-shorthand syntax. + * This fixes the only arguments-related bug in ES Modules-supporting browsers (Edge 16 & 17). + * Use this plugin instead of @babel/plugin-transform-parameters when targeting ES Modules. + */ + +export default ({ types: t }) => { + const isArrowParent = p => + p.parentKey === "params" && + p.parentPath && + t.isArrowFunctionExpression(p.parentPath); + + return { + name: "transform-edge-default-parameters", + visitor: { + AssignmentPattern(path) { + const arrowArgParent = path.find(isArrowParent); + if (arrowArgParent && path.parent.shorthand) { + // In Babel 7+, there is no way to force non-shorthand properties. + path.parent.shorthand = false; + (path.parent.extra || {}).shorthand = false; + + // So, to ensure non-shorthand, rename the local identifier so it no longer matches: + path.scope.rename(path.parent.key.name); + } + }, + }, + }; +}; diff --git a/node_modules/@babel/preset-modules/src/plugins/transform-edge-function-name/index.js b/node_modules/@babel/preset-modules/src/plugins/transform-edge-function-name/index.js new file mode 100644 index 0000000000000000000000000000000000000000..f6873283da987a04ed64afad55d83c2ad6cbe033 --- /dev/null +++ b/node_modules/@babel/preset-modules/src/plugins/transform-edge-function-name/index.js @@ -0,0 +1,31 @@ +/** + * Edge 16 & 17 do not infer function.name from variable assignment. + * All other `function.name` behavior works fine, so we can skip most of @babel/transform-function-name. + * @see https://kangax.github.io/compat-table/es6/#test-function_name_property_variables_(function) + * + * Note: contrary to various Github issues, Edge 16+ *does* correctly infer the name of Arrow Functions. + * The variable declarator name inference issue only affects function expressions, so that's all we fix here. + * + * A Note on Minification: Terser undoes this transform *by default* unless `keep_fnames` is set to true. + * There is by design - if Function.name is critical to your application, you must configure + * your minifier to preserve function names. + */ + +export default ({ types: t }) => ({ + name: "transform-edge-function-name", + visitor: { + FunctionExpression: { + exit(path) { + if (!path.node.id && t.isIdentifier(path.parent.id)) { + const id = t.cloneNode(path.parent.id); + const binding = path.scope.getBinding(id.name); + // if the binding gets reassigned anywhere, rename it + if (binding?.constantViolations.length) { + path.scope.rename(id.name); + } + path.node.id = id; + } + }, + }, + }, +}); diff --git a/node_modules/@babel/preset-modules/src/plugins/transform-jsx-spread/index.js b/node_modules/@babel/preset-modules/src/plugins/transform-jsx-spread/index.js new file mode 100644 index 0000000000000000000000000000000000000000..ef015245839105083cc5db1610d6afcf451ae03a --- /dev/null +++ b/node_modules/@babel/preset-modules/src/plugins/transform-jsx-spread/index.js @@ -0,0 +1,111 @@ +import esutils from "esutils"; + +/** + * Converts JSX Spread arguments into Object Spread, avoiding Babel's helper or Object.assign injection. + * Input: + *
+ * Output: + *
+ * ...which Babel converts to: + * h("div", { a: "1", ...b }) + */ +export default ({ types: t }) => { + // converts a set of JSXAttributes to an Object.assign() call + function convertAttributesAssign(attributes) { + const args = []; + for (let i = 0, current; i < attributes.length; i++) { + const node = attributes[i]; + if (t.isJSXSpreadAttribute(node)) { + // the first attribute is a spread, avoid copying all other attributes onto it + if (i === 0) { + args.push(t.objectExpression([])); + } + current = null; + args.push(node.argument); + } else { + const name = getAttributeName(node); + const value = getAttributeValue(node); + if (!current) { + current = t.objectExpression([]); + args.push(current); + } + current.properties.push(t.objectProperty(name, value)); + } + } + return t.callExpression( + t.memberExpression(t.identifier("Object"), t.identifier("assign")), + args + ); + } + + // Converts a JSXAttribute to the equivalent ObjectExpression property + function convertAttributeSpread(node) { + if (t.isJSXSpreadAttribute(node)) { + return t.spreadElement(node.argument); + } + + const name = getAttributeName(node); + const value = getAttributeValue(node); + return t.inherits(t.objectProperty(name, value), node); + } + + // Convert a JSX attribute name to an Object expression property name + function getAttributeName(node) { + if (t.isJSXNamespacedName(node.name)) { + return t.stringLiteral( + node.name.namespace.name + ":" + node.name.name.name + ); + } + if (esutils.keyword.isIdentifierNameES6(node.name.name)) { + return t.identifier(node.name.name); + } + return t.stringLiteral(node.name.name); + } + + // Convert a JSX attribute value to a JavaScript expression value + function getAttributeValue(node) { + let value = node.value || t.booleanLiteral(true); + + if (t.isJSXExpressionContainer(value)) { + value = value.expression; + } else if (t.isStringLiteral(value)) { + value.value = value.value.replace(/\n\s+/g, " "); + + // "raw" JSXText should not be used from a StringLiteral because it needs to be escaped. + if (value.extra && value.extra.raw) { + delete value.extra.raw; + } + } + + return value; + } + + return { + name: "transform-jsx-spread", + visitor: { + JSXOpeningElement(path, state) { + const useSpread = state.opts.useSpread === true; + const hasSpread = path.node.attributes.some(attr => + t.isJSXSpreadAttribute(attr) + ); + + // ignore JSX Elements without spread or with lone spread: + if (!hasSpread || path.node.attributes.length === 1) return; + + if (useSpread) { + path.node.attributes = [ + t.jsxSpreadAttribute( + t.objectExpression( + path.node.attributes.map(convertAttributeSpread) + ) + ), + ]; + } else { + path.node.attributes = [ + t.jsxSpreadAttribute(convertAttributesAssign(path.node.attributes)), + ]; + } + }, + }, + }; +}; diff --git a/node_modules/@babel/preset-modules/src/plugins/transform-safari-block-shadowing/index.js b/node_modules/@babel/preset-modules/src/plugins/transform-safari-block-shadowing/index.js new file mode 100644 index 0000000000000000000000000000000000000000..f509c6b6bb794de8fa03df1bd79e2e36d574898f --- /dev/null +++ b/node_modules/@babel/preset-modules/src/plugins/transform-safari-block-shadowing/index.js @@ -0,0 +1,39 @@ +/** + * Fixes block-shadowed let/const bindings in Safari 10/11. + * https://kangax.github.io/compat-table/es6/#test-let_scope_shadow_resolution + */ +export default function({ types: t }) { + return { + name: "transform-safari-block-shadowing", + visitor: { + VariableDeclarator(path) { + // the issue only affects let and const bindings: + const kind = path.parent.kind; + if (kind !== "let" && kind !== "const") return; + + // ignore non-block-scoped bindings: + const block = path.scope.block; + if (t.isFunction(block) || t.isProgram(block)) return; + + const bindings = t.getOuterBindingIdentifiers(path.node.id); + for (const name of Object.keys(bindings)) { + let scope = path.scope; + + // ignore parent bindings (note: impossible due to let/const?) + if (!scope.hasOwnBinding(name)) continue; + + // check if shadowed within the nearest function/program boundary + while ((scope = scope.parent)) { + if (scope.hasOwnBinding(name)) { + path.scope.rename(name); + break; + } + if (t.isFunction(scope.block) || t.isProgram(scope.block)) { + break; + } + } + } + }, + }, + }; +} diff --git a/node_modules/@babel/preset-modules/src/plugins/transform-safari-for-shadowing/index.js b/node_modules/@babel/preset-modules/src/plugins/transform-safari-for-shadowing/index.js new file mode 100644 index 0000000000000000000000000000000000000000..83b4eafddb4ae47aaa21c30f824445bb9ce4f492 --- /dev/null +++ b/node_modules/@babel/preset-modules/src/plugins/transform-safari-for-shadowing/index.js @@ -0,0 +1,38 @@ +/** + * Safari ~11 has an issue where variable declarations in a For statement throw if they shadow parameters. + * This is fixed by renaming any declarations in the left/init part of a For* statement so they don't shadow. + * @see https://bugs.webkit.org/show_bug.cgi?id=171041 + * + * @example + * e => { for (let e of []) e } // throws + * e => { for (let _e of []) _e } // works + */ + +function handle(declaration) { + if (!declaration.isVariableDeclaration()) return; + + const fn = declaration.getFunctionParent(); + const { name } = declaration.node.declarations[0].id; + + // check if there is a shadowed binding coming from a parameter + if ( + fn && + fn.scope.hasOwnBinding(name) && + fn.scope.getOwnBinding(name).kind === "param" + ) { + declaration.scope.rename(name); + } +} + +export default () => ({ + name: "transform-safari-for-shadowing", + visitor: { + ForXStatement(path) { + handle(path.get("left")); + }, + + ForStatement(path) { + handle(path.get("init")); + }, + }, +}); diff --git a/node_modules/@babel/preset-modules/src/plugins/transform-tagged-template-caching/index.js b/node_modules/@babel/preset-modules/src/plugins/transform-tagged-template-caching/index.js new file mode 100644 index 0000000000000000000000000000000000000000..65d03999fceeb86f19ffce9134877444a37c92eb --- /dev/null +++ b/node_modules/@babel/preset-modules/src/plugins/transform-tagged-template-caching/index.js @@ -0,0 +1,88 @@ +/** + * Converts destructured parameters with default values to non-shorthand syntax. + * This fixes the only Tagged Templates-related bug in ES Modules-supporting browsers (Safari 10 & 11). + * Use this plugin instead of `@babel/plugin-transform-template-literals` when targeting ES Modules. + * + * @example + * // Bug 1: Safari 10/11 doesn't reliably return the same Strings value. + * // The value changes depending on invocation and function optimization state. + * function f() { return Object`` } + * f() === new f() // false, should be true. + * + * @example + * // Bug 2: Safari 10/11 use the same cached strings value when the string parts are the same. + * // This behavior comes from an earlier version of the spec, and can cause tricky bugs. + * Object``===Object`` // true, should be false. + * + * Benchmarks: https://jsperf.com/compiled-tagged-template-performance + */ +export default ({ types: t }) => ({ + name: "transform-tagged-template-caching", + visitor: { + TaggedTemplateExpression(path, state) { + // tagged templates we've already dealt with + let processed = state.get("processed"); + if (!processed) { + processed = new WeakSet(); + state.set("processed", processed); + } + + if (processed.has(path.node)) return path.skip(); + + // Grab the expressions from the original tag. + // tag`a${'hello'}` // ['hello'] + const expressions = path.node.quasi.expressions; + + // Create an identity function helper: + // identity = t => t + let identity = state.get("identity"); + if (!identity) { + identity = path.scope + .getProgramParent() + .generateDeclaredUidIdentifier("_"); + state.set("identity", identity); + const binding = path.scope.getBinding(identity.name); + binding.path.get("init").replaceWith( + t.arrowFunctionExpression( + // re-use the helper identifier for compressability + [t.identifier("t")], + t.identifier("t") + ) + ); + } + + // Use the identity function helper to get a reference to the template's Strings. + // We replace all expressions with `0` ensure Strings has the same shape. + // identity`a${0}` + const template = t.taggedTemplateExpression( + t.cloneNode(identity), + t.templateLiteral( + path.node.quasi.quasis, + expressions.map(() => t.numericLiteral(0)) + ) + ); + processed.add(template); + + // Install an inline cache at the callsite using the global variable: + // _t || (_t = identity`a${0}`) + const ident = path.scope + .getProgramParent() + .generateDeclaredUidIdentifier("t"); + path.scope.getBinding(ident.name).path.parent.kind = "let"; + const inlineCache = t.logicalExpression( + "||", + ident, + t.assignmentExpression("=", t.cloneNode(ident), template) + ); + + // The original tag function becomes a plain function call. + // The expressions omitted from the cached Strings tag are directly applied as arguments. + // tag(_t || (_t = Object`a${0}`), 'hello') + const node = t.callExpression(path.node.tag, [ + inlineCache, + ...expressions, + ]); + path.replaceWith(node); + }, + }, +}); diff --git a/node_modules/@babel/runtime/LICENSE b/node_modules/@babel/runtime/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ b/node_modules/@babel/runtime/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +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. diff --git a/node_modules/@babel/runtime/README.md b/node_modules/@babel/runtime/README.md new file mode 100644 index 0000000000000000000000000000000000000000..2f3368ef58e938d8016e762d4ca91aad338e6f50 --- /dev/null +++ b/node_modules/@babel/runtime/README.md @@ -0,0 +1,19 @@ +# @babel/runtime + +> babel's modular runtime helpers + +See our website [@babel/runtime](https://babeljs.io/docs/babel-runtime) for more information. + +## Install + +Using npm: + +```sh +npm install --save @babel/runtime +``` + +or using yarn: + +```sh +yarn add @babel/runtime +``` diff --git a/node_modules/@babel/runtime/helpers/AwaitValue.js b/node_modules/@babel/runtime/helpers/AwaitValue.js new file mode 100644 index 0000000000000000000000000000000000000000..52a7e69a581f0161ff8f48b9b641bb33c263494b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/AwaitValue.js @@ -0,0 +1,4 @@ +function _AwaitValue(t) { + this.wrapped = t; +} +module.exports = _AwaitValue, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/OverloadYield.js b/node_modules/@babel/runtime/helpers/OverloadYield.js new file mode 100644 index 0000000000000000000000000000000000000000..0eca88c7c000a4e8f1980ab38981e9994e5f32dc --- /dev/null +++ b/node_modules/@babel/runtime/helpers/OverloadYield.js @@ -0,0 +1,4 @@ +function _OverloadYield(e, d) { + this.v = e, this.k = d; +} +module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js b/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js new file mode 100644 index 0000000000000000000000000000000000000000..0ff780eba96e1e97ffa559e45c2acd1143e40903 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js @@ -0,0 +1,9 @@ +function _applyDecoratedDescriptor(i, e, r, n, l) { + var a = {}; + return Object.keys(n).forEach(function (i) { + a[i] = n[i]; + }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { + return n(i, e, r) || r; + }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; +} +module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs.js b/node_modules/@babel/runtime/helpers/applyDecs.js new file mode 100644 index 0000000000000000000000000000000000000000..3770c5aee79a1e10aa5508fa4a4f5a223c334f94 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs.js @@ -0,0 +1,236 @@ +var _typeof = require("./typeof.js")["default"]; +var setFunctionName = require("./setFunctionName.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function old_createMetadataMethodsForProperty(e, t, a, r) { + return { + getMetadata: function getMetadata(o) { + old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o); + var i = e[o]; + if (void 0 !== i) if (1 === t) { + var n = i["public"]; + if (void 0 !== n) return n[a]; + } else if (2 === t) { + var l = i["private"]; + if (void 0 !== l) return l.get(a); + } else if (Object.hasOwnProperty.call(i, "constructor")) return i.constructor; + }, + setMetadata: function setMetadata(o, i) { + old_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o); + var n = e[o]; + if (void 0 === n && (n = e[o] = {}), 1 === t) { + var l = n["public"]; + void 0 === l && (l = n["public"] = {}), l[a] = i; + } else if (2 === t) { + var s = n.priv; + void 0 === s && (s = n["private"] = new Map()), s.set(a, i); + } else n.constructor = i; + } + }; +} +function old_convertMetadataMapToFinal(e, t) { + var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")], + r = Object.getOwnPropertySymbols(t); + if (0 !== r.length) { + for (var o = 0; o < r.length; o++) { + var i = r[o], + n = t[i], + l = a ? a[i] : null, + s = n["public"], + c = l ? l["public"] : null; + s && c && Object.setPrototypeOf(s, c); + var d = n["private"]; + if (d) { + var u = Array.from(d.values()), + f = l ? l["private"] : null; + f && (u = u.concat(f)), n["private"] = u; + } + l && Object.setPrototypeOf(n, l); + } + a && Object.setPrototypeOf(t, a), e[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = t; + } +} +function old_createAddInitializerMethod(e, t) { + return function (a) { + old_assertNotFinished(t, "addInitializer"), old_assertCallable(a, "An initializer"), e.push(a); + }; +} +function old_memberDec(e, t, a, r, o, i, n, l, s) { + var c; + switch (i) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var d, + u, + f = { + kind: c, + name: l ? "#" + t : toPropertyKey(t), + isStatic: n, + isPrivate: l + }, + p = { + v: !1 + }; + if (0 !== i && (f.addInitializer = old_createAddInitializerMethod(o, p)), l) { + d = 2, u = Symbol(t); + var v = {}; + 0 === i ? (v.get = a.get, v.set = a.set) : 2 === i ? v.get = function () { + return a.value; + } : (1 !== i && 3 !== i || (v.get = function () { + return a.get.call(this); + }), 1 !== i && 4 !== i || (v.set = function (e) { + a.set.call(this, e); + })), f.access = v; + } else d = 1, u = t; + try { + return e(s, Object.assign(f, old_createMetadataMethodsForProperty(r, d, u, p))); + } finally { + p.v = !0; + } +} +function old_assertNotFinished(e, t) { + if (e.v) throw Error("attempted to call " + t + " after decoration was finished"); +} +function old_assertMetadataKey(e) { + if ("symbol" != _typeof(e)) throw new TypeError("Metadata keys must be symbols, received: " + e); +} +function old_assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); +} +function old_assertValidReturnValue(e, t) { + var a = _typeof(t); + if (1 === e) { + if ("object" !== a || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && old_assertCallable(t.get, "accessor.get"), void 0 !== t.set && old_assertCallable(t.set, "accessor.set"), void 0 !== t.init && old_assertCallable(t.init, "accessor.init"), void 0 !== t.initializer && old_assertCallable(t.initializer, "accessor.initializer"); + } else if ("function" !== a) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); +} +function old_getInit(e) { + var t; + return null == (t = e.init) && (t = e.initializer) && void 0 !== console && console.warn(".initializer has been renamed to .init as of March 2022"), t; +} +function old_applyMemberDec(e, t, a, r, o, i, n, l, s) { + var c, + d, + u, + f, + p, + v, + y, + h = a[0]; + if (n ? (0 === o || 1 === o ? (c = { + get: a[3], + set: a[4] + }, u = "get") : 3 === o ? (c = { + get: a[3] + }, u = "get") : 4 === o ? (c = { + set: a[3] + }, u = "set") : c = { + value: a[3] + }, 0 !== o && (1 === o && setFunctionName(a[4], "#" + r, "set"), setFunctionName(a[3], "#" + r, u))) : 0 !== o && (c = Object.getOwnPropertyDescriptor(t, r)), 1 === o ? f = { + get: c.get, + set: c.set + } : 2 === o ? f = c.value : 3 === o ? f = c.get : 4 === o && (f = c.set), "function" == typeof h) void 0 !== (p = old_memberDec(h, r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? d = p : 1 === o ? (d = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { + get: v, + set: y + }) : f = p);else for (var m = h.length - 1; m >= 0; m--) { + var b; + void 0 !== (p = old_memberDec(h[m], r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? b = p : 1 === o ? (b = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { + get: v, + set: y + }) : f = p, void 0 !== b && (void 0 === d ? d = b : "function" == typeof d ? d = [d, b] : d.push(b))); + } + if (0 === o || 1 === o) { + if (void 0 === d) d = function d(e, t) { + return t; + };else if ("function" != typeof d) { + var g = d; + d = function d(e, t) { + for (var a = t, r = 0; r < g.length; r++) a = g[r].call(e, a); + return a; + }; + } else { + var _ = d; + d = function d(e, t) { + return _.call(e, t); + }; + } + e.push(d); + } + 0 !== o && (1 === o ? (c.get = f.get, c.set = f.set) : 2 === o ? c.value = f : 3 === o ? c.get = f : 4 === o && (c.set = f), n ? 1 === o ? (e.push(function (e, t) { + return f.get.call(e, t); + }), e.push(function (e, t) { + return f.set.call(e, t); + })) : 2 === o ? e.push(f) : e.push(function (e, t) { + return f.call(e, t); + }) : Object.defineProperty(t, r, c)); +} +function old_applyMemberDecs(e, t, a, r, o) { + for (var i, n, l = new Map(), s = new Map(), c = 0; c < o.length; c++) { + var d = o[c]; + if (Array.isArray(d)) { + var u, + f, + p, + v = d[1], + y = d[2], + h = d.length > 3, + m = v >= 5; + if (m ? (u = t, f = r, 0 != (v -= 5) && (p = n = n || [])) : (u = t.prototype, f = a, 0 !== v && (p = i = i || [])), 0 !== v && !h) { + var b = m ? s : l, + g = b.get(y) || 0; + if (!0 === g || 3 === g && 4 !== v || 4 === g && 3 !== v) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + y); + !g && v > 2 ? b.set(y, v) : b.set(y, !0); + } + old_applyMemberDec(e, u, d, y, v, m, h, f, p); + } + } + old_pushInitializers(e, i), old_pushInitializers(e, n); +} +function old_pushInitializers(e, t) { + t && e.push(function (e) { + for (var a = 0; a < t.length; a++) t[a].call(e); + return e; + }); +} +function old_applyClassDecs(e, t, a, r) { + if (r.length > 0) { + for (var o = [], i = t, n = t.name, l = r.length - 1; l >= 0; l--) { + var s = { + v: !1 + }; + try { + var c = Object.assign({ + kind: "class", + name: n, + addInitializer: old_createAddInitializerMethod(o, s) + }, old_createMetadataMethodsForProperty(a, 0, n, s)), + d = r[l](i, c); + } finally { + s.v = !0; + } + void 0 !== d && (old_assertValidReturnValue(10, d), i = d); + } + e.push(i, function () { + for (var e = 0; e < o.length; e++) o[e].call(i); + }); + } +} +function applyDecs(e, t, a) { + var r = [], + o = {}, + i = {}; + return old_applyMemberDecs(r, e, i, o, t), old_convertMetadataMapToFinal(e.prototype, i), old_applyClassDecs(r, e, o, a), old_convertMetadataMapToFinal(e, o), r; +} +module.exports = applyDecs, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2203.js b/node_modules/@babel/runtime/helpers/applyDecs2203.js new file mode 100644 index 0000000000000000000000000000000000000000..5af267c9b6ddedbe88cae9f6a0b9bb35fd0e682c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs2203.js @@ -0,0 +1,184 @@ +var _typeof = require("./typeof.js")["default"]; +function applyDecs2203Factory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function memberDec(e, t, r, a, n, i, s, o) { + var c; + switch (n) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var l, + u, + f = { + kind: c, + name: s ? "#" + t : t, + "static": i, + "private": s + }, + p = { + v: !1 + }; + 0 !== n && (f.addInitializer = createAddInitializerMethod(a, p)), 0 === n ? s ? (l = r.get, u = r.set) : (l = function l() { + return this[t]; + }, u = function u(e) { + this[t] = e; + }) : 2 === n ? l = function l() { + return r.value; + } : (1 !== n && 3 !== n || (l = function l() { + return r.get.call(this); + }), 1 !== n && 4 !== n || (u = function u(e) { + r.set.call(this, e); + })), f.access = l && u ? { + get: l, + set: u + } : l ? { + get: l + } : { + set: u + }; + try { + return e(o, f); + } finally { + p.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function applyMemberDec(e, t, r, a, n, i, s, o) { + var c, + l, + u, + f, + p, + d, + h = r[0]; + if (s ? c = 0 === n || 1 === n ? { + get: r[3], + set: r[4] + } : 3 === n ? { + get: r[3] + } : 4 === n ? { + set: r[3] + } : { + value: r[3] + } : 0 !== n && (c = Object.getOwnPropertyDescriptor(t, a)), 1 === n ? u = { + get: c.get, + set: c.set + } : 2 === n ? u = c.value : 3 === n ? u = c.get : 4 === n && (u = c.set), "function" == typeof h) void 0 !== (f = memberDec(h, a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? l = f : 1 === n ? (l = f.init, p = f.get || u.get, d = f.set || u.set, u = { + get: p, + set: d + }) : u = f);else for (var v = h.length - 1; v >= 0; v--) { + var g; + void 0 !== (f = memberDec(h[v], a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? g = f : 1 === n ? (g = f.init, p = f.get || u.get, d = f.set || u.set, u = { + get: p, + set: d + }) : u = f, void 0 !== g && (void 0 === l ? l = g : "function" == typeof l ? l = [l, g] : l.push(g))); + } + if (0 === n || 1 === n) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var y = l; + l = function l(e, t) { + for (var r = t, a = 0; a < y.length; a++) r = y[a].call(e, r); + return r; + }; + } else { + var m = l; + l = function l(e, t) { + return m.call(e, t); + }; + } + e.push(l); + } + 0 !== n && (1 === n ? (c.get = u.get, c.set = u.set) : 2 === n ? c.value = u : 3 === n ? c.get = u : 4 === n && (c.set = u), s ? 1 === n ? (e.push(function (e, t) { + return u.get.call(e, t); + }), e.push(function (e, t) { + return u.set.call(e, t); + })) : 2 === n ? e.push(u) : e.push(function (e, t) { + return u.call(e, t); + }) : Object.defineProperty(t, a, c)); + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r) { + var a = []; + return function (e, t, r) { + for (var a, n, i = new Map(), s = new Map(), o = 0; o < r.length; o++) { + var c = r[o]; + if (Array.isArray(c)) { + var l, + u, + f = c[1], + p = c[2], + d = c.length > 3, + h = f >= 5; + if (h ? (l = t, 0 != (f -= 5) && (u = n = n || [])) : (l = t.prototype, 0 !== f && (u = a = a || [])), 0 !== f && !d) { + var v = h ? s : i, + g = v.get(p) || 0; + if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); + !g && f > 2 ? v.set(p, f) : v.set(p, !0); + } + applyMemberDec(e, l, c, p, f, h, d, u); + } + } + pushInitializers(e, a), pushInitializers(e, n); + }(a, e, t), function (e, t, r) { + if (r.length > 0) { + for (var a = [], n = t, i = t.name, s = r.length - 1; s >= 0; s--) { + var o = { + v: !1 + }; + try { + var c = r[s](n, { + kind: "class", + name: i, + addInitializer: createAddInitializerMethod(a, o) + }); + } finally { + o.v = !0; + } + void 0 !== c && (assertValidReturnValue(10, c), n = c); + } + e.push(n, function () { + for (var e = 0; e < a.length; e++) a[e].call(n); + }); + } + }(a, e, r), a; + }; +} +var applyDecs2203Impl; +function applyDecs2203(e, t, r) { + return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(e, t, r); +} +module.exports = applyDecs2203, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2203R.js b/node_modules/@babel/runtime/helpers/applyDecs2203R.js new file mode 100644 index 0000000000000000000000000000000000000000..1be7f5ed82672baf5b591b9bc72de21ea7c9eb05 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs2203R.js @@ -0,0 +1,191 @@ +var _typeof = require("./typeof.js")["default"]; +var setFunctionName = require("./setFunctionName.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function applyDecs2203RFactory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function memberDec(e, t, r, n, a, i, o, s) { + var c; + switch (a) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var l, + u, + f = { + kind: c, + name: o ? "#" + t : toPropertyKey(t), + "static": i, + "private": o + }, + p = { + v: !1 + }; + 0 !== a && (f.addInitializer = createAddInitializerMethod(n, p)), 0 === a ? o ? (l = r.get, u = r.set) : (l = function l() { + return this[t]; + }, u = function u(e) { + this[t] = e; + }) : 2 === a ? l = function l() { + return r.value; + } : (1 !== a && 3 !== a || (l = function l() { + return r.get.call(this); + }), 1 !== a && 4 !== a || (u = function u(e) { + r.set.call(this, e); + })), f.access = l && u ? { + get: l, + set: u + } : l ? { + get: l + } : { + set: u + }; + try { + return e(s, f); + } finally { + p.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function applyMemberDec(e, t, r, n, a, i, o, s) { + var c, + l, + u, + f, + p, + d, + h, + v = r[0]; + if (o ? (0 === a || 1 === a ? (c = { + get: r[3], + set: r[4] + }, u = "get") : 3 === a ? (c = { + get: r[3] + }, u = "get") : 4 === a ? (c = { + set: r[3] + }, u = "set") : c = { + value: r[3] + }, 0 !== a && (1 === a && setFunctionName(r[4], "#" + n, "set"), setFunctionName(r[3], "#" + n, u))) : 0 !== a && (c = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? f = { + get: c.get, + set: c.set + } : 2 === a ? f = c.value : 3 === a ? f = c.get : 4 === a && (f = c.set), "function" == typeof v) void 0 !== (p = memberDec(v, n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? l = p : 1 === a ? (l = p.init, d = p.get || f.get, h = p.set || f.set, f = { + get: d, + set: h + }) : f = p);else for (var g = v.length - 1; g >= 0; g--) { + var y; + void 0 !== (p = memberDec(v[g], n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? y = p : 1 === a ? (y = p.init, d = p.get || f.get, h = p.set || f.set, f = { + get: d, + set: h + }) : f = p, void 0 !== y && (void 0 === l ? l = y : "function" == typeof l ? l = [l, y] : l.push(y))); + } + if (0 === a || 1 === a) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var m = l; + l = function l(e, t) { + for (var r = t, n = 0; n < m.length; n++) r = m[n].call(e, r); + return r; + }; + } else { + var b = l; + l = function l(e, t) { + return b.call(e, t); + }; + } + e.push(l); + } + 0 !== a && (1 === a ? (c.get = f.get, c.set = f.set) : 2 === a ? c.value = f : 3 === a ? c.get = f : 4 === a && (c.set = f), o ? 1 === a ? (e.push(function (e, t) { + return f.get.call(e, t); + }), e.push(function (e, t) { + return f.set.call(e, t); + })) : 2 === a ? e.push(f) : e.push(function (e, t) { + return f.call(e, t); + }) : Object.defineProperty(t, n, c)); + } + function applyMemberDecs(e, t) { + for (var r, n, a = [], i = new Map(), o = new Map(), s = 0; s < t.length; s++) { + var c = t[s]; + if (Array.isArray(c)) { + var l, + u, + f = c[1], + p = c[2], + d = c.length > 3, + h = f >= 5; + if (h ? (l = e, 0 != (f -= 5) && (u = n = n || [])) : (l = e.prototype, 0 !== f && (u = r = r || [])), 0 !== f && !d) { + var v = h ? o : i, + g = v.get(p) || 0; + if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); + !g && f > 2 ? v.set(p, f) : v.set(p, !0); + } + applyMemberDec(a, l, c, p, f, h, d, u); + } + } + return pushInitializers(a, r), pushInitializers(a, n), a; + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r) { + return { + e: applyMemberDecs(e, t), + get c() { + return function (e, t) { + if (t.length > 0) { + for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { + var o = { + v: !1 + }; + try { + var s = t[i](n, { + kind: "class", + name: a, + addInitializer: createAddInitializerMethod(r, o) + }); + } finally { + o.v = !0; + } + void 0 !== s && (assertValidReturnValue(10, s), n = s); + } + return [n, function () { + for (var e = 0; e < r.length; e++) r[e].call(n); + }]; + } + }(e, r); + } + }; + }; +} +function applyDecs2203R(e, t, r) { + return (module.exports = applyDecs2203R = applyDecs2203RFactory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t, r); +} +module.exports = applyDecs2203R, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2301.js b/node_modules/@babel/runtime/helpers/applyDecs2301.js new file mode 100644 index 0000000000000000000000000000000000000000..577eee8d85376f8b354aed21e96d1ae33c2f270d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs2301.js @@ -0,0 +1,222 @@ +var _typeof = require("./typeof.js")["default"]; +var checkInRHS = require("./checkInRHS.js"); +var setFunctionName = require("./setFunctionName.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function applyDecs2301Factory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function assertInstanceIfPrivate(e, t) { + if (!e(t)) throw new TypeError("Attempted to access private element on non-instance"); + } + function memberDec(e, t, r, n, a, i, s, o, c) { + var u; + switch (a) { + case 1: + u = "accessor"; + break; + case 2: + u = "method"; + break; + case 3: + u = "getter"; + break; + case 4: + u = "setter"; + break; + default: + u = "field"; + } + var l, + f, + p = { + kind: u, + name: s ? "#" + t : toPropertyKey(t), + "static": i, + "private": s + }, + d = { + v: !1 + }; + if (0 !== a && (p.addInitializer = createAddInitializerMethod(n, d)), s || 0 !== a && 2 !== a) { + if (2 === a) l = function l(e) { + return assertInstanceIfPrivate(c, e), r.value; + };else { + var h = 0 === a || 1 === a; + (h || 3 === a) && (l = s ? function (e) { + return assertInstanceIfPrivate(c, e), r.get.call(e); + } : function (e) { + return r.get.call(e); + }), (h || 4 === a) && (f = s ? function (e, t) { + assertInstanceIfPrivate(c, e), r.set.call(e, t); + } : function (e, t) { + r.set.call(e, t); + }); + } + } else l = function l(e) { + return e[t]; + }, 0 === a && (f = function f(e, r) { + e[t] = r; + }); + var v = s ? c.bind() : function (e) { + return t in e; + }; + p.access = l && f ? { + get: l, + set: f, + has: v + } : l ? { + get: l, + has: v + } : { + set: f, + has: v + }; + try { + return e(o, p); + } finally { + d.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function curryThis2(e) { + return function (t) { + e(this, t); + }; + } + function applyMemberDec(e, t, r, n, a, i, s, o, c) { + var u, + l, + f, + p, + d, + h, + v, + y, + g = r[0]; + if (s ? (0 === a || 1 === a ? (u = { + get: (d = r[3], function () { + return d(this); + }), + set: curryThis2(r[4]) + }, f = "get") : 3 === a ? (u = { + get: r[3] + }, f = "get") : 4 === a ? (u = { + set: r[3] + }, f = "set") : u = { + value: r[3] + }, 0 !== a && (1 === a && setFunctionName(u.set, "#" + n, "set"), setFunctionName(u[f || "value"], "#" + n, f))) : 0 !== a && (u = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? p = { + get: u.get, + set: u.set + } : 2 === a ? p = u.value : 3 === a ? p = u.get : 4 === a && (p = u.set), "function" == typeof g) void 0 !== (h = memberDec(g, n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? l = h : 1 === a ? (l = h.init, v = h.get || p.get, y = h.set || p.set, p = { + get: v, + set: y + }) : p = h);else for (var m = g.length - 1; m >= 0; m--) { + var b; + void 0 !== (h = memberDec(g[m], n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? b = h : 1 === a ? (b = h.init, v = h.get || p.get, y = h.set || p.set, p = { + get: v, + set: y + }) : p = h, void 0 !== b && (void 0 === l ? l = b : "function" == typeof l ? l = [l, b] : l.push(b))); + } + if (0 === a || 1 === a) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var I = l; + l = function l(e, t) { + for (var r = t, n = 0; n < I.length; n++) r = I[n].call(e, r); + return r; + }; + } else { + var w = l; + l = function l(e, t) { + return w.call(e, t); + }; + } + e.push(l); + } + 0 !== a && (1 === a ? (u.get = p.get, u.set = p.set) : 2 === a ? u.value = p : 3 === a ? u.get = p : 4 === a && (u.set = p), s ? 1 === a ? (e.push(function (e, t) { + return p.get.call(e, t); + }), e.push(function (e, t) { + return p.set.call(e, t); + })) : 2 === a ? e.push(p) : e.push(function (e, t) { + return p.call(e, t); + }) : Object.defineProperty(t, n, u)); + } + function applyMemberDecs(e, t, r) { + for (var n, a, i, s = [], o = new Map(), c = new Map(), u = 0; u < t.length; u++) { + var l = t[u]; + if (Array.isArray(l)) { + var f, + p, + d = l[1], + h = l[2], + v = l.length > 3, + y = d >= 5, + g = r; + if (y ? (f = e, 0 != (d -= 5) && (p = a = a || []), v && !i && (i = function i(t) { + return checkInRHS(t) === e; + }), g = i) : (f = e.prototype, 0 !== d && (p = n = n || [])), 0 !== d && !v) { + var m = y ? c : o, + b = m.get(h) || 0; + if (!0 === b || 3 === b && 4 !== d || 4 === b && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); + !b && d > 2 ? m.set(h, d) : m.set(h, !0); + } + applyMemberDec(s, f, l, h, d, y, v, p, g); + } + } + return pushInitializers(s, n), pushInitializers(s, a), s; + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r, n) { + return { + e: applyMemberDecs(e, t, n), + get c() { + return function (e, t) { + if (t.length > 0) { + for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { + var s = { + v: !1 + }; + try { + var o = t[i](n, { + kind: "class", + name: a, + addInitializer: createAddInitializerMethod(r, s) + }); + } finally { + s.v = !0; + } + void 0 !== o && (assertValidReturnValue(10, o), n = o); + } + return [n, function () { + for (var e = 0; e < r.length; e++) r[e].call(n); + }]; + } + }(e, r); + } + }; + }; +} +function applyDecs2301(e, t, r, n) { + return (module.exports = applyDecs2301 = applyDecs2301Factory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t, r, n); +} +module.exports = applyDecs2301, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2305.js b/node_modules/@babel/runtime/helpers/applyDecs2305.js new file mode 100644 index 0000000000000000000000000000000000000000..744c35212bdac019dcb8a8eb77efd394c25ac24b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs2305.js @@ -0,0 +1,133 @@ +var _typeof = require("./typeof.js")["default"]; +var checkInRHS = require("./checkInRHS.js"); +var setFunctionName = require("./setFunctionName.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function applyDecs2305(e, t, r, n, o, a) { + function i(e, t, r) { + return function (n, o) { + return r && r(n), e[t].call(n, o); + }; + } + function c(e, t) { + for (var r = 0; r < e.length; r++) e[r].call(t); + return t; + } + function s(e, t, r, n) { + if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); + return e; + } + function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { + function m(e) { + if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); + } + var y, + v = t[0], + g = t[3], + b = !u; + if (!b) { + r || Array.isArray(v) || (v = [v]); + var w = {}, + S = [], + A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; + f ? (p || d ? w = { + get: setFunctionName(function () { + return g(this); + }, n, "get"), + set: function set(e) { + t[4](this, e); + } + } : w[A] = g, p || setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); + } + for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { + var D = v[j], + E = r ? v[j - 1] : void 0, + I = {}, + O = { + kind: ["field", "accessor", "method", "getter", "setter", "class"][o], + name: n, + metadata: a, + addInitializer: function (e, t) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + s(t, "An initializer", "be", !0), c.push(t); + }.bind(null, I) + }; + try { + if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { + var k, F; + O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { + return m(e), w.value; + } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { + return e[n]; + }, (o < 2 || 4 === o) && (F = function F(e, t) { + e[n] = t; + })); + var N = O.access = { + has: f ? h.bind() : function (e) { + return n in e; + } + }; + if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { + get: w.get, + set: w.set + } : w[A], O), d) { + if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); + } + } finally { + I.v = !0; + } + } + return (p || d) && u.push(function (e, t) { + for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); + return t; + }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; + } + function u(e, t) { + return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { + configurable: !0, + enumerable: !0, + value: t + }); + } + if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; + var f = Object.create(null == l ? null : l), + p = function (e, t, r, n) { + var o, + a, + i = [], + s = function s(t) { + return checkInRHS(t) === e; + }, + u = new Map(); + function l(e) { + e && i.push(c.bind(null, e)); + } + for (var f = 0; f < t.length; f++) { + var p = t[f]; + if (Array.isArray(p)) { + var d = p[1], + h = p[2], + m = p.length > 3, + y = 16 & d, + v = !!(8 & d), + g = 0 == (d &= 7), + b = h + "/" + v; + if (!g && !m) { + var w = u.get(b); + if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); + u.set(b, !(d > 2) || d); + } + applyDec(v ? e : e.prototype, p, y, m ? "#" + h : toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); + } + } + return l(o), l(a), i; + }(e, t, o, f); + return r.length || u(e, f), { + e: p, + get c() { + var t = []; + return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; + } + }; +} +module.exports = applyDecs2305, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2311.js b/node_modules/@babel/runtime/helpers/applyDecs2311.js new file mode 100644 index 0000000000000000000000000000000000000000..5c7ed771847ba745c4d4bcc9629f6bf0f56aae8e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs2311.js @@ -0,0 +1,124 @@ +var _typeof = require("./typeof.js")["default"]; +var checkInRHS = require("./checkInRHS.js"); +var setFunctionName = require("./setFunctionName.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function applyDecs2311(e, t, n, r, o, i) { + var a, + c, + u, + s, + f, + l, + p, + d = Symbol.metadata || Symbol["for"]("Symbol.metadata"), + m = Object.defineProperty, + h = Object.create, + y = [h(null), h(null)], + v = t.length; + function g(t, n, r) { + return function (o, i) { + n && (i = o, o = e); + for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); + return r ? i : o; + }; + } + function b(e, t, n, r) { + if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined")); + return e; + } + function applyDec(e, t, n, r, o, i, u, s, f, l, p) { + function d(e) { + if (!p(e)) throw new TypeError("Attempted to access private element on non-instance"); + } + var h = [].concat(t[0]), + v = t[3], + w = !u, + D = 1 === o, + S = 3 === o, + j = 4 === o, + E = 2 === o; + function I(t, n, r) { + return function (o, i) { + return n && (i = o, o = e), r && r(o), P[t].call(o, i); + }; + } + if (!w) { + var P = {}, + k = [], + F = S ? "get" : j || D ? "set" : "value"; + if (f ? (l || D ? P = { + get: setFunctionName(function () { + return v(this); + }, r, "get"), + set: function set(e) { + t[4](this, e); + } + } : P[F] = v, l || setFunctionName(P[F], r, E ? "" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { + if ((c = y[+s][r]) && 7 !== (c ^ o)) throw Error("Decorating two elements with the same name (" + P[F].name + ") is not supported yet"); + y[+s][r] = o < 3 ? 1 : o; + } + } + for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { + var T = b(h[O], "A decorator", "be", !0), + z = n ? h[O - 1] : void 0, + A = {}, + H = { + kind: ["field", "accessor", "method", "getter", "setter", "class"][o], + name: r, + metadata: a, + addInitializer: function (e, t) { + if (e.v) throw new TypeError("attempted to call addInitializer after decoration was finished"); + b(t, "An initializer", "be", !0), i.push(t); + }.bind(null, A) + }; + if (w) c = T.call(z, N, H), A.v = 1, b(c, "class decorators", "return") && (N = c);else if (H["static"] = s, H["private"] = f, c = H.access = { + has: f ? p.bind() : function (e) { + return r in e; + } + }, j || (c.get = f ? E ? function (e) { + return d(e), P.value; + } : I("get", 0, d) : function (e) { + return e[r]; + }), E || S || (c.set = f ? I("set", 0, d) : function (e, t) { + e[r] = t; + }), N = T.call(z, D ? { + get: P.get, + set: P.set + } : P[F], H), A.v = 1, D) { + if ("object" == _typeof(N) && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && k.unshift(c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined"); + } else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? k.unshift(N) : P[F] = N); + } + return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I("get", s), I("set", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; + } + function w(e) { + return m(e, d, { + configurable: !0, + enumerable: !0, + value: a + }); + } + return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) { + e && f.push(g(e)); + }, p = function p(t, r) { + for (var i = 0; i < n.length; i++) { + var a = n[i], + c = a[1], + l = 7 & c; + if ((8 & c) == t && !l == r) { + var p = a[2], + d = !!a[3], + m = 16 & c; + applyDec(t ? e : e.prototype, a, m, d ? "#" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { + return checkInRHS(t) === e; + } : o); + } + } + }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { + e: c, + get c() { + var n = []; + return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; + } + }; +} +module.exports = applyDecs2311, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/arrayLikeToArray.js b/node_modules/@babel/runtime/helpers/arrayLikeToArray.js new file mode 100644 index 0000000000000000000000000000000000000000..19787e31989579218c207db2bb34be54dc9a569a --- /dev/null +++ b/node_modules/@babel/runtime/helpers/arrayLikeToArray.js @@ -0,0 +1,6 @@ +function _arrayLikeToArray(r, a) { + (null == a || a > r.length) && (a = r.length); + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; + return n; +} +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/arrayWithHoles.js b/node_modules/@babel/runtime/helpers/arrayWithHoles.js new file mode 100644 index 0000000000000000000000000000000000000000..78bdd93199dd47e86aac3e3108b7092de3c5e8d0 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/arrayWithHoles.js @@ -0,0 +1,4 @@ +function _arrayWithHoles(r) { + if (Array.isArray(r)) return r; +} +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js b/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js new file mode 100644 index 0000000000000000000000000000000000000000..42218f54a1791395952779760a161f1ed1372ed2 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js @@ -0,0 +1,5 @@ +var arrayLikeToArray = require("./arrayLikeToArray.js"); +function _arrayWithoutHoles(r) { + if (Array.isArray(r)) return arrayLikeToArray(r); +} +module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/assertClassBrand.js b/node_modules/@babel/runtime/helpers/assertClassBrand.js new file mode 100644 index 0000000000000000000000000000000000000000..e63ed8f46f11d99e9b30404b862ae9bb30132eaa --- /dev/null +++ b/node_modules/@babel/runtime/helpers/assertClassBrand.js @@ -0,0 +1,5 @@ +function _assertClassBrand(e, t, n) { + if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; + throw new TypeError("Private element is not present on this object"); +} +module.exports = _assertClassBrand, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/assertThisInitialized.js b/node_modules/@babel/runtime/helpers/assertThisInitialized.js new file mode 100644 index 0000000000000000000000000000000000000000..02594fbe24b4b347d9b884001a16f6fe9cbae950 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/assertThisInitialized.js @@ -0,0 +1,5 @@ +function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e; +} +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js b/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js new file mode 100644 index 0000000000000000000000000000000000000000..023568e08ea0396305c7f7dfc3a36db6c2feafba --- /dev/null +++ b/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js @@ -0,0 +1,24 @@ +var OverloadYield = require("./OverloadYield.js"); +function _asyncGeneratorDelegate(t) { + var e = {}, + n = !1; + function pump(e, r) { + return n = !0, r = new Promise(function (n) { + n(t[e](r)); + }), { + done: !1, + value: new OverloadYield(r, 1) + }; + } + return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { + return this; + }, e.next = function (t) { + return n ? (n = !1, t) : pump("next", t); + }, "function" == typeof t["throw"] && (e["throw"] = function (t) { + if (n) throw n = !1, t; + return pump("throw", t); + }), "function" == typeof t["return"] && (e["return"] = function (t) { + return n ? (n = !1, t) : pump("return", t); + }), e; +} +module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/asyncIterator.js b/node_modules/@babel/runtime/helpers/asyncIterator.js new file mode 100644 index 0000000000000000000000000000000000000000..9c0c95cfceddbffca7913b5ba3668824f7971801 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/asyncIterator.js @@ -0,0 +1,45 @@ +function _asyncIterator(r) { + var n, + t, + o, + e = 2; + for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { + if (t && null != (n = r[t])) return n.call(r); + if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); + t = "@@asyncIterator", o = "@@iterator"; + } + throw new TypeError("Object is not async iterable"); +} +function AsyncFromSyncIterator(r) { + function AsyncFromSyncIteratorContinuation(r) { + if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); + var n = r.done; + return Promise.resolve(r.value).then(function (r) { + return { + value: r, + done: n + }; + }); + } + return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { + this.s = r, this.n = r.next; + }, AsyncFromSyncIterator.prototype = { + s: null, + n: null, + next: function next() { + return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); + }, + "return": function _return(r) { + var n = this.s["return"]; + return void 0 === n ? Promise.resolve({ + value: r, + done: !0 + }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); + }, + "throw": function _throw(r) { + var n = this.s["return"]; + return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); + } + }, new AsyncFromSyncIterator(r); +} +module.exports = _asyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/asyncToGenerator.js b/node_modules/@babel/runtime/helpers/asyncToGenerator.js new file mode 100644 index 0000000000000000000000000000000000000000..a080339bf98b7ec82fd8af00c817e00932aea33a --- /dev/null +++ b/node_modules/@babel/runtime/helpers/asyncToGenerator.js @@ -0,0 +1,26 @@ +function asyncGeneratorStep(n, t, e, r, o, a, c) { + try { + var i = n[a](c), + u = i.value; + } catch (n) { + return void e(n); + } + i.done ? t(u) : Promise.resolve(u).then(r, o); +} +function _asyncToGenerator(n) { + return function () { + var t = this, + e = arguments; + return new Promise(function (r, o) { + var a = n.apply(t, e); + function _next(n) { + asyncGeneratorStep(a, r, o, _next, _throw, "next", n); + } + function _throw(n) { + asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); + } + _next(void 0); + }); + }; +} +module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js b/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js new file mode 100644 index 0000000000000000000000000000000000000000..2d6fab916dbeaa399eda911d75bc162db9d1a360 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js @@ -0,0 +1,5 @@ +var OverloadYield = require("./OverloadYield.js"); +function _awaitAsyncGenerator(e) { + return new OverloadYield(e, 0); +} +module.exports = _awaitAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/callSuper.js b/node_modules/@babel/runtime/helpers/callSuper.js new file mode 100644 index 0000000000000000000000000000000000000000..38eaf7f8b3768cae70fdd7ec40ddb2fcff30de40 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/callSuper.js @@ -0,0 +1,7 @@ +var getPrototypeOf = require("./getPrototypeOf.js"); +var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); +var possibleConstructorReturn = require("./possibleConstructorReturn.js"); +function _callSuper(t, o, e) { + return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); +} +module.exports = _callSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/checkInRHS.js b/node_modules/@babel/runtime/helpers/checkInRHS.js new file mode 100644 index 0000000000000000000000000000000000000000..4eea13d923774977341cbe13f2b4d7e154a90bf4 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/checkInRHS.js @@ -0,0 +1,6 @@ +var _typeof = require("./typeof.js")["default"]; +function _checkInRHS(e) { + if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); + return e; +} +module.exports = _checkInRHS, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js b/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js new file mode 100644 index 0000000000000000000000000000000000000000..33ad54c960c273e21e000e8c21e01e92aa8bb6e7 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js @@ -0,0 +1,4 @@ +function _checkPrivateRedeclaration(e, t) { + if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); +} +module.exports = _checkPrivateRedeclaration, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js b/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js new file mode 100644 index 0000000000000000000000000000000000000000..9998b835525527098aeebe30b5a7b113a5e00f43 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js @@ -0,0 +1,10 @@ +function _classApplyDescriptorDestructureSet(e, t) { + if (t.set) return "__destrObj" in t || (t.__destrObj = { + set value(r) { + t.set.call(e, r); + } + }), t.__destrObj; + if (!t.writable) throw new TypeError("attempted to set read only private field"); + return t; +} +module.exports = _classApplyDescriptorDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js b/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js new file mode 100644 index 0000000000000000000000000000000000000000..ab627245499996f16b06376fc6d4ab50a2e68894 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js @@ -0,0 +1,4 @@ +function _classApplyDescriptorGet(e, t) { + return t.get ? t.get.call(e) : t.value; +} +module.exports = _classApplyDescriptorGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js b/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js new file mode 100644 index 0000000000000000000000000000000000000000..0975f95fb56a00d43585563635b6310abd816d7f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js @@ -0,0 +1,7 @@ +function _classApplyDescriptorSet(e, t, l) { + if (t.set) t.set.call(e, l);else { + if (!t.writable) throw new TypeError("attempted to set read only private field"); + t.value = l; + } +} +module.exports = _classApplyDescriptorSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classCallCheck.js b/node_modules/@babel/runtime/helpers/classCallCheck.js new file mode 100644 index 0000000000000000000000000000000000000000..21b8390ff2fcd712eea49955e1f7fadbf965a9a2 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classCallCheck.js @@ -0,0 +1,4 @@ +function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); +} +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js new file mode 100644 index 0000000000000000000000000000000000000000..7520f74dc777947531d74d9a44fdae5780c5c25d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classCheckPrivateStaticAccess(s, a, r) { + return assertClassBrand(a, s, r); +} +module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js new file mode 100644 index 0000000000000000000000000000000000000000..7f70395ea7618a52e1742dd1ac5b9be2db770286 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js @@ -0,0 +1,4 @@ +function _classCheckPrivateStaticFieldDescriptor(t, e) { + if (void 0 === t) throw new TypeError("attempted to " + e + " private static field before its declaration"); +} +module.exports = _classCheckPrivateStaticFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js b/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js new file mode 100644 index 0000000000000000000000000000000000000000..be855be9871309238097d6324e3e18ae47e75fa3 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js @@ -0,0 +1,5 @@ +var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); +function _classExtractFieldDescriptor(e, t) { + return classPrivateFieldGet2(t, e); +} +module.exports = _classExtractFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classNameTDZError.js b/node_modules/@babel/runtime/helpers/classNameTDZError.js new file mode 100644 index 0000000000000000000000000000000000000000..8141ff89c0bb9c8a4a7be890f544f7352b8a2ced --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classNameTDZError.js @@ -0,0 +1,4 @@ +function _classNameTDZError(e) { + throw new ReferenceError('Class "' + e + '" cannot be referenced in computed property keys.'); +} +module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js new file mode 100644 index 0000000000000000000000000000000000000000..97c764d00c49370ffa0c5b3c8af77663aa604e48 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); +var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); +function _classPrivateFieldDestructureSet(e, t) { + var r = classPrivateFieldGet2(t, e); + return classApplyDescriptorDestructureSet(e, r); +} +module.exports = _classPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js new file mode 100644 index 0000000000000000000000000000000000000000..bbee142a375263ae867a39d3e1e1d1f12d6cce61 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); +var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); +function _classPrivateFieldGet(e, t) { + var r = classPrivateFieldGet2(t, e); + return classApplyDescriptorGet(e, r); +} +module.exports = _classPrivateFieldGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js b/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js new file mode 100644 index 0000000000000000000000000000000000000000..d4c271c71a7b058af142c62cb958b55eb3558b8f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classPrivateFieldGet2(s, a) { + return s.get(assertClassBrand(s, a)); +} +module.exports = _classPrivateFieldGet2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js b/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js new file mode 100644 index 0000000000000000000000000000000000000000..a290c19a21b8e3505077dad4c1a87964d53edacb --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js @@ -0,0 +1,5 @@ +var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); +function _classPrivateFieldInitSpec(e, t, a) { + checkPrivateRedeclaration(e, t), t.set(e, a); +} +module.exports = _classPrivateFieldInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js new file mode 100644 index 0000000000000000000000000000000000000000..f9e46f267a38fb4e19044c54bcbed5493c63e4c4 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js @@ -0,0 +1,5 @@ +function _classPrivateFieldBase(e, t) { + if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); + return e; +} +module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js new file mode 100644 index 0000000000000000000000000000000000000000..5dc687fe77ad1a77b6dc747cda37260319c22f02 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js @@ -0,0 +1,5 @@ +var id = 0; +function _classPrivateFieldKey(e) { + return "__private_" + id++ + "_" + e; +} +module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js new file mode 100644 index 0000000000000000000000000000000000000000..f3746e74292bb2a935dab5f120e6be9677ef9e4a --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); +var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); +function _classPrivateFieldSet(e, t, r) { + var s = classPrivateFieldGet2(t, e); + return classApplyDescriptorSet(e, s, r), r; +} +module.exports = _classPrivateFieldSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js b/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js new file mode 100644 index 0000000000000000000000000000000000000000..25c60caaa4c5c866fb3e85427ed5439135ce1e1e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classPrivateFieldSet2(s, a, r) { + return s.set(assertClassBrand(s, a), r), r; +} +module.exports = _classPrivateFieldSet2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateGetter.js b/node_modules/@babel/runtime/helpers/classPrivateGetter.js new file mode 100644 index 0000000000000000000000000000000000000000..1b3cf30a5005fea607c6cc85bd3dff587d7c943f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateGetter.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classPrivateGetter(s, r, a) { + return a(assertClassBrand(s, r)); +} +module.exports = _classPrivateGetter, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js new file mode 100644 index 0000000000000000000000000000000000000000..e4af38785b5186d8292a5db52e093d459afc929f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classPrivateMethodGet(s, a, r) { + return assertClassBrand(a, s), r; +} +module.exports = _classPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js b/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js new file mode 100644 index 0000000000000000000000000000000000000000..821c8ed00c757b0a53efee18e337eb37b1bd8eaa --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js @@ -0,0 +1,5 @@ +var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); +function _classPrivateMethodInitSpec(e, a) { + checkPrivateRedeclaration(e, a), a.add(e); +} +module.exports = _classPrivateMethodInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js new file mode 100644 index 0000000000000000000000000000000000000000..a44fd785361f883482634803b03124a84d1e950c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js @@ -0,0 +1,4 @@ +function _classPrivateMethodSet() { + throw new TypeError("attempted to reassign private method"); +} +module.exports = _classPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateSetter.js b/node_modules/@babel/runtime/helpers/classPrivateSetter.js new file mode 100644 index 0000000000000000000000000000000000000000..494f81f0e5c3d0038c084bec68e0ebdc50983b42 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateSetter.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classPrivateSetter(s, r, a, t) { + return r(assertClassBrand(s, a), t), t; +} +module.exports = _classPrivateSetter, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js new file mode 100644 index 0000000000000000000000000000000000000000..2bb6e8b1c96fc26936c95734d5adccc9f785d46c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); +var assertClassBrand = require("./assertClassBrand.js"); +var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); +function _classStaticPrivateFieldDestructureSet(t, r, s) { + return assertClassBrand(r, t), classCheckPrivateStaticFieldDescriptor(s, "set"), classApplyDescriptorDestructureSet(t, s); +} +module.exports = _classStaticPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js new file mode 100644 index 0000000000000000000000000000000000000000..eb2365f3d8af2b881d69c21c013645c57fcd3102 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); +var assertClassBrand = require("./assertClassBrand.js"); +var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); +function _classStaticPrivateFieldSpecGet(t, s, r) { + return assertClassBrand(s, t), classCheckPrivateStaticFieldDescriptor(r, "get"), classApplyDescriptorGet(t, r); +} +module.exports = _classStaticPrivateFieldSpecGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js new file mode 100644 index 0000000000000000000000000000000000000000..7783cd8dd0976981ccbacbdbe6f226c85abe9279 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); +var assertClassBrand = require("./assertClassBrand.js"); +var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); +function _classStaticPrivateFieldSpecSet(s, t, r, e) { + return assertClassBrand(t, s), classCheckPrivateStaticFieldDescriptor(r, "set"), classApplyDescriptorSet(s, r, e), e; +} +module.exports = _classStaticPrivateFieldSpecSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js new file mode 100644 index 0000000000000000000000000000000000000000..c895be5c609483e32f25cecf41767e93812487ad --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classStaticPrivateMethodGet(s, a, t) { + return assertClassBrand(a, s), t; +} +module.exports = _classStaticPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js new file mode 100644 index 0000000000000000000000000000000000000000..72560e6607e030d921a5ce8aa9896afd07dfd9be --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js @@ -0,0 +1,4 @@ +function _classStaticPrivateMethodSet() { + throw new TypeError("attempted to set read only static private field"); +} +module.exports = _classStaticPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/construct.js b/node_modules/@babel/runtime/helpers/construct.js new file mode 100644 index 0000000000000000000000000000000000000000..aee8e70448824f509d6605e2dfa4455167442f21 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/construct.js @@ -0,0 +1,10 @@ +var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); +var setPrototypeOf = require("./setPrototypeOf.js"); +function _construct(t, e, r) { + if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); + var o = [null]; + o.push.apply(o, e); + var p = new (t.bind.apply(t, o))(); + return r && setPrototypeOf(p, r.prototype), p; +} +module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createClass.js b/node_modules/@babel/runtime/helpers/createClass.js new file mode 100644 index 0000000000000000000000000000000000000000..8757f9ee8f433d75d6aeee62874f693144ec1bfa --- /dev/null +++ b/node_modules/@babel/runtime/helpers/createClass.js @@ -0,0 +1,13 @@ +var toPropertyKey = require("./toPropertyKey.js"); +function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); + } +} +function _createClass(e, r, t) { + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { + writable: !1 + }), e; +} +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js b/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js new file mode 100644 index 0000000000000000000000000000000000000000..277830792a6d3af9832e1f4e9a0ac98d1f81c868 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js @@ -0,0 +1,50 @@ +var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); +function _createForOfIteratorHelper(r, e) { + var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (!t) { + if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { + t && (r = t); + var _n = 0, + F = function F() {}; + return { + s: F, + n: function n() { + return _n >= r.length ? { + done: !0 + } : { + done: !1, + value: r[_n++] + }; + }, + e: function e(r) { + throw r; + }, + f: F + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var o, + a = !0, + u = !1; + return { + s: function s() { + t = t.call(r); + }, + n: function n() { + var r = t.next(); + return a = r.done, r; + }, + e: function e(r) { + u = !0, o = r; + }, + f: function f() { + try { + a || null == t["return"] || t["return"](); + } finally { + if (u) throw o; + } + } + }; +} +module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js b/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js new file mode 100644 index 0000000000000000000000000000000000000000..bc81b1cdde61f8a7dc03cf50515a40cde569e849 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js @@ -0,0 +1,19 @@ +var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); +function _createForOfIteratorHelperLoose(r, e) { + var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (t) return (t = t.call(r)).next.bind(t); + if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { + t && (r = t); + var o = 0; + return function () { + return o >= r.length ? { + done: !0 + } : { + done: !1, + value: r[o++] + }; + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +module.exports = _createForOfIteratorHelperLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createSuper.js b/node_modules/@babel/runtime/helpers/createSuper.js new file mode 100644 index 0000000000000000000000000000000000000000..b1869e61bf956f2a95eeded35edd5b761692a8c3 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/createSuper.js @@ -0,0 +1,16 @@ +var getPrototypeOf = require("./getPrototypeOf.js"); +var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); +var possibleConstructorReturn = require("./possibleConstructorReturn.js"); +function _createSuper(t) { + var r = isNativeReflectConstruct(); + return function () { + var e, + o = getPrototypeOf(t); + if (r) { + var s = getPrototypeOf(this).constructor; + e = Reflect.construct(o, arguments, s); + } else e = o.apply(this, arguments); + return possibleConstructorReturn(this, e); + }; +} +module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/decorate.js b/node_modules/@babel/runtime/helpers/decorate.js new file mode 100644 index 0000000000000000000000000000000000000000..bc22acf4c52b25df128845c3e181d83722d3ad75 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/decorate.js @@ -0,0 +1,250 @@ +var toArray = require("./toArray.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function _decorate(e, r, t, i) { + var o = _getDecoratorsApi(); + if (i) for (var n = 0; n < i.length; n++) o = i[n](o); + var s = r(function (e) { + o.initializeInstanceElements(e, a.elements); + }, t), + a = o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)), e); + return o.initializeClassElements(s.F, a.elements), o.runClassFinishers(s.F, a.finishers); +} +function _getDecoratorsApi() { + _getDecoratorsApi = function _getDecoratorsApi() { + return e; + }; + var e = { + elementsDefinitionOrder: [["method"], ["field"]], + initializeInstanceElements: function initializeInstanceElements(e, r) { + ["method", "field"].forEach(function (t) { + r.forEach(function (r) { + r.kind === t && "own" === r.placement && this.defineClassElement(e, r); + }, this); + }, this); + }, + initializeClassElements: function initializeClassElements(e, r) { + var t = e.prototype; + ["method", "field"].forEach(function (i) { + r.forEach(function (r) { + var o = r.placement; + if (r.kind === i && ("static" === o || "prototype" === o)) { + var n = "static" === o ? e : t; + this.defineClassElement(n, r); + } + }, this); + }, this); + }, + defineClassElement: function defineClassElement(e, r) { + var t = r.descriptor; + if ("field" === r.kind) { + var i = r.initializer; + t = { + enumerable: t.enumerable, + writable: t.writable, + configurable: t.configurable, + value: void 0 === i ? void 0 : i.call(e) + }; + } + Object.defineProperty(e, r.key, t); + }, + decorateClass: function decorateClass(e, r) { + var t = [], + i = [], + o = { + "static": [], + prototype: [], + own: [] + }; + if (e.forEach(function (e) { + this.addElementPlacement(e, o); + }, this), e.forEach(function (e) { + if (!_hasDecorators(e)) return t.push(e); + var r = this.decorateElement(e, o); + t.push(r.element), t.push.apply(t, r.extras), i.push.apply(i, r.finishers); + }, this), !r) return { + elements: t, + finishers: i + }; + var n = this.decorateConstructor(t, r); + return i.push.apply(i, n.finishers), n.finishers = i, n; + }, + addElementPlacement: function addElementPlacement(e, r, t) { + var i = r[e.placement]; + if (!t && -1 !== i.indexOf(e.key)) throw new TypeError("Duplicated element (" + e.key + ")"); + i.push(e.key); + }, + decorateElement: function decorateElement(e, r) { + for (var t = [], i = [], o = e.decorators, n = o.length - 1; n >= 0; n--) { + var s = r[e.placement]; + s.splice(s.indexOf(e.key), 1); + var a = this.fromElementDescriptor(e), + l = this.toElementFinisherExtras((0, o[n])(a) || a); + e = l.element, this.addElementPlacement(e, r), l.finisher && i.push(l.finisher); + var c = l.extras; + if (c) { + for (var p = 0; p < c.length; p++) this.addElementPlacement(c[p], r); + t.push.apply(t, c); + } + } + return { + element: e, + finishers: i, + extras: t + }; + }, + decorateConstructor: function decorateConstructor(e, r) { + for (var t = [], i = r.length - 1; i >= 0; i--) { + var o = this.fromClassDescriptor(e), + n = this.toClassDescriptor((0, r[i])(o) || o); + if (void 0 !== n.finisher && t.push(n.finisher), void 0 !== n.elements) { + e = n.elements; + for (var s = 0; s < e.length - 1; s++) for (var a = s + 1; a < e.length; a++) if (e[s].key === e[a].key && e[s].placement === e[a].placement) throw new TypeError("Duplicated element (" + e[s].key + ")"); + } + } + return { + elements: e, + finishers: t + }; + }, + fromElementDescriptor: function fromElementDescriptor(e) { + var r = { + kind: e.kind, + key: e.key, + placement: e.placement, + descriptor: e.descriptor + }; + return Object.defineProperty(r, Symbol.toStringTag, { + value: "Descriptor", + configurable: !0 + }), "field" === e.kind && (r.initializer = e.initializer), r; + }, + toElementDescriptors: function toElementDescriptors(e) { + if (void 0 !== e) return toArray(e).map(function (e) { + var r = this.toElementDescriptor(e); + return this.disallowProperty(e, "finisher", "An element descriptor"), this.disallowProperty(e, "extras", "An element descriptor"), r; + }, this); + }, + toElementDescriptor: function toElementDescriptor(e) { + var r = e.kind + ""; + if ("method" !== r && "field" !== r) throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "' + r + '"'); + var t = toPropertyKey(e.key), + i = e.placement + ""; + if ("static" !== i && "prototype" !== i && "own" !== i) throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "' + i + '"'); + var o = e.descriptor; + this.disallowProperty(e, "elements", "An element descriptor"); + var n = { + kind: r, + key: t, + placement: i, + descriptor: Object.assign({}, o) + }; + return "field" !== r ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), n.initializer = e.initializer), n; + }, + toElementFinisherExtras: function toElementFinisherExtras(e) { + return { + element: this.toElementDescriptor(e), + finisher: _optionalCallableProperty(e, "finisher"), + extras: this.toElementDescriptors(e.extras) + }; + }, + fromClassDescriptor: function fromClassDescriptor(e) { + var r = { + kind: "class", + elements: e.map(this.fromElementDescriptor, this) + }; + return Object.defineProperty(r, Symbol.toStringTag, { + value: "Descriptor", + configurable: !0 + }), r; + }, + toClassDescriptor: function toClassDescriptor(e) { + var r = e.kind + ""; + if ("class" !== r) throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + r + '"'); + this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor"); + var t = _optionalCallableProperty(e, "finisher"); + return { + elements: this.toElementDescriptors(e.elements), + finisher: t + }; + }, + runClassFinishers: function runClassFinishers(e, r) { + for (var t = 0; t < r.length; t++) { + var i = (0, r[t])(e); + if (void 0 !== i) { + if ("function" != typeof i) throw new TypeError("Finishers must return a constructor."); + e = i; + } + } + return e; + }, + disallowProperty: function disallowProperty(e, r, t) { + if (void 0 !== e[r]) throw new TypeError(t + " can't have a ." + r + " property."); + } + }; + return e; +} +function _createElementDescriptor(e) { + var r, + t = toPropertyKey(e.key); + "method" === e.kind ? r = { + value: e.value, + writable: !0, + configurable: !0, + enumerable: !1 + } : "get" === e.kind ? r = { + get: e.value, + configurable: !0, + enumerable: !1 + } : "set" === e.kind ? r = { + set: e.value, + configurable: !0, + enumerable: !1 + } : "field" === e.kind && (r = { + configurable: !0, + writable: !0, + enumerable: !0 + }); + var i = { + kind: "field" === e.kind ? "field" : "method", + key: t, + placement: e["static"] ? "static" : "field" === e.kind ? "own" : "prototype", + descriptor: r + }; + return e.decorators && (i.decorators = e.decorators), "field" === e.kind && (i.initializer = e.value), i; +} +function _coalesceGetterSetter(e, r) { + void 0 !== e.descriptor.get ? r.descriptor.get = e.descriptor.get : r.descriptor.set = e.descriptor.set; +} +function _coalesceClassElements(e) { + for (var r = [], isSameElement = function isSameElement(e) { + return "method" === e.kind && e.key === o.key && e.placement === o.placement; + }, t = 0; t < e.length; t++) { + var i, + o = e[t]; + if ("method" === o.kind && (i = r.find(isSameElement))) { + if (_isDataDescriptor(o.descriptor) || _isDataDescriptor(i.descriptor)) { + if (_hasDecorators(o) || _hasDecorators(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated."); + i.descriptor = o.descriptor; + } else { + if (_hasDecorators(o)) { + if (_hasDecorators(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ")."); + i.decorators = o.decorators; + } + _coalesceGetterSetter(o, i); + } + } else r.push(o); + } + return r; +} +function _hasDecorators(e) { + return e.decorators && e.decorators.length; +} +function _isDataDescriptor(e) { + return void 0 !== e && !(void 0 === e.value && void 0 === e.writable); +} +function _optionalCallableProperty(e, r) { + var t = e[r]; + if (void 0 !== t && "function" != typeof t) throw new TypeError("Expected '" + r + "' to be a function"); + return t; +} +module.exports = _decorate, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defaults.js b/node_modules/@babel/runtime/helpers/defaults.js new file mode 100644 index 0000000000000000000000000000000000000000..dfdbbb03a07bbc5d6472cf3cb2ab02c658964c3e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/defaults.js @@ -0,0 +1,9 @@ +function _defaults(e, r) { + for (var t = Object.getOwnPropertyNames(r), o = 0; o < t.length; o++) { + var n = t[o], + a = Object.getOwnPropertyDescriptor(r, n); + a && a.configurable && void 0 === e[n] && Object.defineProperty(e, n, a); + } + return e; +} +module.exports = _defaults, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defineAccessor.js b/node_modules/@babel/runtime/helpers/defineAccessor.js new file mode 100644 index 0000000000000000000000000000000000000000..dc065f01a850f4caec74ae3b2d9caf2891676610 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/defineAccessor.js @@ -0,0 +1,8 @@ +function _defineAccessor(e, r, n, t) { + var c = { + configurable: !0, + enumerable: !0 + }; + return c[e] = t, Object.defineProperty(r, n, c); +} +module.exports = _defineAccessor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js b/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js new file mode 100644 index 0000000000000000000000000000000000000000..ab9f43c1bf1f27c141fda30ecc7866b3ce5dd8f7 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js @@ -0,0 +1,12 @@ +function _defineEnumerableProperties(e, r) { + for (var t in r) { + var n = r[t]; + n.configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, t, n); + } + if (Object.getOwnPropertySymbols) for (var a = Object.getOwnPropertySymbols(r), b = 0; b < a.length; b++) { + var i = a[b]; + (n = r[i]).configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, i, n); + } + return e; +} +module.exports = _defineEnumerableProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defineProperty.js b/node_modules/@babel/runtime/helpers/defineProperty.js new file mode 100644 index 0000000000000000000000000000000000000000..2c2ff1e98a72515db77b82f0eefad568b72bf466 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/defineProperty.js @@ -0,0 +1,10 @@ +var toPropertyKey = require("./toPropertyKey.js"); +function _defineProperty(e, r, t) { + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[r] = t, e; +} +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/dispose.js b/node_modules/@babel/runtime/helpers/dispose.js new file mode 100644 index 0000000000000000000000000000000000000000..c20193ca297707987f1baa822f36b983698ec8b1 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/dispose.js @@ -0,0 +1,28 @@ +function dispose_SuppressedError(r, e) { + return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(r, e) { + this.suppressed = e, this.error = r, this.stack = Error().stack; + }, dispose_SuppressedError.prototype = Object.create(Error.prototype, { + constructor: { + value: dispose_SuppressedError, + writable: !0, + configurable: !0 + } + })), new dispose_SuppressedError(r, e); +} +function _dispose(r, e, s) { + function next() { + for (; r.length > 0;) try { + var o = r.pop(), + p = o.d.call(o.v); + if (o.a) return Promise.resolve(p).then(next, err); + } catch (r) { + return err(r); + } + if (s) throw e; + } + function err(r) { + return e = s ? new dispose_SuppressedError(e, r) : r, s = !0, next(); + } + return next(); +} +module.exports = _dispose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/AwaitValue.js b/node_modules/@babel/runtime/helpers/esm/AwaitValue.js new file mode 100644 index 0000000000000000000000000000000000000000..6f210c9ce8116b6f82fcd9ab00e915b3809d9831 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/AwaitValue.js @@ -0,0 +1,4 @@ +function _AwaitValue(t) { + this.wrapped = t; +} +export { _AwaitValue as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/OverloadYield.js b/node_modules/@babel/runtime/helpers/esm/OverloadYield.js new file mode 100644 index 0000000000000000000000000000000000000000..d7753a6692fd20378b43e5dfad95d752a032df9e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/OverloadYield.js @@ -0,0 +1,4 @@ +function _OverloadYield(e, d) { + this.v = e, this.k = d; +} +export { _OverloadYield as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js b/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js new file mode 100644 index 0000000000000000000000000000000000000000..0f33483df447503a18c25eaec9ee39e9467d05b5 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js @@ -0,0 +1,9 @@ +function _applyDecoratedDescriptor(i, e, r, n, l) { + var a = {}; + return Object.keys(n).forEach(function (i) { + a[i] = n[i]; + }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { + return n(i, e, r) || r; + }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; +} +export { _applyDecoratedDescriptor as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs.js b/node_modules/@babel/runtime/helpers/esm/applyDecs.js new file mode 100644 index 0000000000000000000000000000000000000000..2b75dfd7a6bfeb9bc5d792fb9edafa2763b5ffc3 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs.js @@ -0,0 +1,236 @@ +import _typeof from "./typeof.js"; +import setFunctionName from "./setFunctionName.js"; +import toPropertyKey from "./toPropertyKey.js"; +function old_createMetadataMethodsForProperty(e, t, a, r) { + return { + getMetadata: function getMetadata(o) { + old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o); + var i = e[o]; + if (void 0 !== i) if (1 === t) { + var n = i["public"]; + if (void 0 !== n) return n[a]; + } else if (2 === t) { + var l = i["private"]; + if (void 0 !== l) return l.get(a); + } else if (Object.hasOwnProperty.call(i, "constructor")) return i.constructor; + }, + setMetadata: function setMetadata(o, i) { + old_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o); + var n = e[o]; + if (void 0 === n && (n = e[o] = {}), 1 === t) { + var l = n["public"]; + void 0 === l && (l = n["public"] = {}), l[a] = i; + } else if (2 === t) { + var s = n.priv; + void 0 === s && (s = n["private"] = new Map()), s.set(a, i); + } else n.constructor = i; + } + }; +} +function old_convertMetadataMapToFinal(e, t) { + var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")], + r = Object.getOwnPropertySymbols(t); + if (0 !== r.length) { + for (var o = 0; o < r.length; o++) { + var i = r[o], + n = t[i], + l = a ? a[i] : null, + s = n["public"], + c = l ? l["public"] : null; + s && c && Object.setPrototypeOf(s, c); + var d = n["private"]; + if (d) { + var u = Array.from(d.values()), + f = l ? l["private"] : null; + f && (u = u.concat(f)), n["private"] = u; + } + l && Object.setPrototypeOf(n, l); + } + a && Object.setPrototypeOf(t, a), e[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = t; + } +} +function old_createAddInitializerMethod(e, t) { + return function (a) { + old_assertNotFinished(t, "addInitializer"), old_assertCallable(a, "An initializer"), e.push(a); + }; +} +function old_memberDec(e, t, a, r, o, i, n, l, s) { + var c; + switch (i) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var d, + u, + f = { + kind: c, + name: l ? "#" + t : toPropertyKey(t), + isStatic: n, + isPrivate: l + }, + p = { + v: !1 + }; + if (0 !== i && (f.addInitializer = old_createAddInitializerMethod(o, p)), l) { + d = 2, u = Symbol(t); + var v = {}; + 0 === i ? (v.get = a.get, v.set = a.set) : 2 === i ? v.get = function () { + return a.value; + } : (1 !== i && 3 !== i || (v.get = function () { + return a.get.call(this); + }), 1 !== i && 4 !== i || (v.set = function (e) { + a.set.call(this, e); + })), f.access = v; + } else d = 1, u = t; + try { + return e(s, Object.assign(f, old_createMetadataMethodsForProperty(r, d, u, p))); + } finally { + p.v = !0; + } +} +function old_assertNotFinished(e, t) { + if (e.v) throw Error("attempted to call " + t + " after decoration was finished"); +} +function old_assertMetadataKey(e) { + if ("symbol" != _typeof(e)) throw new TypeError("Metadata keys must be symbols, received: " + e); +} +function old_assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); +} +function old_assertValidReturnValue(e, t) { + var a = _typeof(t); + if (1 === e) { + if ("object" !== a || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && old_assertCallable(t.get, "accessor.get"), void 0 !== t.set && old_assertCallable(t.set, "accessor.set"), void 0 !== t.init && old_assertCallable(t.init, "accessor.init"), void 0 !== t.initializer && old_assertCallable(t.initializer, "accessor.initializer"); + } else if ("function" !== a) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); +} +function old_getInit(e) { + var t; + return null == (t = e.init) && (t = e.initializer) && void 0 !== console && console.warn(".initializer has been renamed to .init as of March 2022"), t; +} +function old_applyMemberDec(e, t, a, r, o, i, n, l, s) { + var c, + d, + u, + f, + p, + v, + y, + h = a[0]; + if (n ? (0 === o || 1 === o ? (c = { + get: a[3], + set: a[4] + }, u = "get") : 3 === o ? (c = { + get: a[3] + }, u = "get") : 4 === o ? (c = { + set: a[3] + }, u = "set") : c = { + value: a[3] + }, 0 !== o && (1 === o && setFunctionName(a[4], "#" + r, "set"), setFunctionName(a[3], "#" + r, u))) : 0 !== o && (c = Object.getOwnPropertyDescriptor(t, r)), 1 === o ? f = { + get: c.get, + set: c.set + } : 2 === o ? f = c.value : 3 === o ? f = c.get : 4 === o && (f = c.set), "function" == typeof h) void 0 !== (p = old_memberDec(h, r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? d = p : 1 === o ? (d = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { + get: v, + set: y + }) : f = p);else for (var m = h.length - 1; m >= 0; m--) { + var b; + void 0 !== (p = old_memberDec(h[m], r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? b = p : 1 === o ? (b = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { + get: v, + set: y + }) : f = p, void 0 !== b && (void 0 === d ? d = b : "function" == typeof d ? d = [d, b] : d.push(b))); + } + if (0 === o || 1 === o) { + if (void 0 === d) d = function d(e, t) { + return t; + };else if ("function" != typeof d) { + var g = d; + d = function d(e, t) { + for (var a = t, r = 0; r < g.length; r++) a = g[r].call(e, a); + return a; + }; + } else { + var _ = d; + d = function d(e, t) { + return _.call(e, t); + }; + } + e.push(d); + } + 0 !== o && (1 === o ? (c.get = f.get, c.set = f.set) : 2 === o ? c.value = f : 3 === o ? c.get = f : 4 === o && (c.set = f), n ? 1 === o ? (e.push(function (e, t) { + return f.get.call(e, t); + }), e.push(function (e, t) { + return f.set.call(e, t); + })) : 2 === o ? e.push(f) : e.push(function (e, t) { + return f.call(e, t); + }) : Object.defineProperty(t, r, c)); +} +function old_applyMemberDecs(e, t, a, r, o) { + for (var i, n, l = new Map(), s = new Map(), c = 0; c < o.length; c++) { + var d = o[c]; + if (Array.isArray(d)) { + var u, + f, + p, + v = d[1], + y = d[2], + h = d.length > 3, + m = v >= 5; + if (m ? (u = t, f = r, 0 != (v -= 5) && (p = n = n || [])) : (u = t.prototype, f = a, 0 !== v && (p = i = i || [])), 0 !== v && !h) { + var b = m ? s : l, + g = b.get(y) || 0; + if (!0 === g || 3 === g && 4 !== v || 4 === g && 3 !== v) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + y); + !g && v > 2 ? b.set(y, v) : b.set(y, !0); + } + old_applyMemberDec(e, u, d, y, v, m, h, f, p); + } + } + old_pushInitializers(e, i), old_pushInitializers(e, n); +} +function old_pushInitializers(e, t) { + t && e.push(function (e) { + for (var a = 0; a < t.length; a++) t[a].call(e); + return e; + }); +} +function old_applyClassDecs(e, t, a, r) { + if (r.length > 0) { + for (var o = [], i = t, n = t.name, l = r.length - 1; l >= 0; l--) { + var s = { + v: !1 + }; + try { + var c = Object.assign({ + kind: "class", + name: n, + addInitializer: old_createAddInitializerMethod(o, s) + }, old_createMetadataMethodsForProperty(a, 0, n, s)), + d = r[l](i, c); + } finally { + s.v = !0; + } + void 0 !== d && (old_assertValidReturnValue(10, d), i = d); + } + e.push(i, function () { + for (var e = 0; e < o.length; e++) o[e].call(i); + }); + } +} +function applyDecs(e, t, a) { + var r = [], + o = {}, + i = {}; + return old_applyMemberDecs(r, e, i, o, t), old_convertMetadataMapToFinal(e.prototype, i), old_applyClassDecs(r, e, o, a), old_convertMetadataMapToFinal(e, o), r; +} +export { applyDecs as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js new file mode 100644 index 0000000000000000000000000000000000000000..8a9d7c54602ce1daef803304b758c383bda41667 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js @@ -0,0 +1,184 @@ +import _typeof from "./typeof.js"; +function applyDecs2203Factory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function memberDec(e, t, r, a, n, i, s, o) { + var c; + switch (n) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var l, + u, + f = { + kind: c, + name: s ? "#" + t : t, + "static": i, + "private": s + }, + p = { + v: !1 + }; + 0 !== n && (f.addInitializer = createAddInitializerMethod(a, p)), 0 === n ? s ? (l = r.get, u = r.set) : (l = function l() { + return this[t]; + }, u = function u(e) { + this[t] = e; + }) : 2 === n ? l = function l() { + return r.value; + } : (1 !== n && 3 !== n || (l = function l() { + return r.get.call(this); + }), 1 !== n && 4 !== n || (u = function u(e) { + r.set.call(this, e); + })), f.access = l && u ? { + get: l, + set: u + } : l ? { + get: l + } : { + set: u + }; + try { + return e(o, f); + } finally { + p.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function applyMemberDec(e, t, r, a, n, i, s, o) { + var c, + l, + u, + f, + p, + d, + h = r[0]; + if (s ? c = 0 === n || 1 === n ? { + get: r[3], + set: r[4] + } : 3 === n ? { + get: r[3] + } : 4 === n ? { + set: r[3] + } : { + value: r[3] + } : 0 !== n && (c = Object.getOwnPropertyDescriptor(t, a)), 1 === n ? u = { + get: c.get, + set: c.set + } : 2 === n ? u = c.value : 3 === n ? u = c.get : 4 === n && (u = c.set), "function" == typeof h) void 0 !== (f = memberDec(h, a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? l = f : 1 === n ? (l = f.init, p = f.get || u.get, d = f.set || u.set, u = { + get: p, + set: d + }) : u = f);else for (var v = h.length - 1; v >= 0; v--) { + var g; + void 0 !== (f = memberDec(h[v], a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? g = f : 1 === n ? (g = f.init, p = f.get || u.get, d = f.set || u.set, u = { + get: p, + set: d + }) : u = f, void 0 !== g && (void 0 === l ? l = g : "function" == typeof l ? l = [l, g] : l.push(g))); + } + if (0 === n || 1 === n) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var y = l; + l = function l(e, t) { + for (var r = t, a = 0; a < y.length; a++) r = y[a].call(e, r); + return r; + }; + } else { + var m = l; + l = function l(e, t) { + return m.call(e, t); + }; + } + e.push(l); + } + 0 !== n && (1 === n ? (c.get = u.get, c.set = u.set) : 2 === n ? c.value = u : 3 === n ? c.get = u : 4 === n && (c.set = u), s ? 1 === n ? (e.push(function (e, t) { + return u.get.call(e, t); + }), e.push(function (e, t) { + return u.set.call(e, t); + })) : 2 === n ? e.push(u) : e.push(function (e, t) { + return u.call(e, t); + }) : Object.defineProperty(t, a, c)); + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r) { + var a = []; + return function (e, t, r) { + for (var a, n, i = new Map(), s = new Map(), o = 0; o < r.length; o++) { + var c = r[o]; + if (Array.isArray(c)) { + var l, + u, + f = c[1], + p = c[2], + d = c.length > 3, + h = f >= 5; + if (h ? (l = t, 0 != (f -= 5) && (u = n = n || [])) : (l = t.prototype, 0 !== f && (u = a = a || [])), 0 !== f && !d) { + var v = h ? s : i, + g = v.get(p) || 0; + if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); + !g && f > 2 ? v.set(p, f) : v.set(p, !0); + } + applyMemberDec(e, l, c, p, f, h, d, u); + } + } + pushInitializers(e, a), pushInitializers(e, n); + }(a, e, t), function (e, t, r) { + if (r.length > 0) { + for (var a = [], n = t, i = t.name, s = r.length - 1; s >= 0; s--) { + var o = { + v: !1 + }; + try { + var c = r[s](n, { + kind: "class", + name: i, + addInitializer: createAddInitializerMethod(a, o) + }); + } finally { + o.v = !0; + } + void 0 !== c && (assertValidReturnValue(10, c), n = c); + } + e.push(n, function () { + for (var e = 0; e < a.length; e++) a[e].call(n); + }); + } + }(a, e, r), a; + }; +} +var applyDecs2203Impl; +function applyDecs2203(e, t, r) { + return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(e, t, r); +} +export { applyDecs2203 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js new file mode 100644 index 0000000000000000000000000000000000000000..bccc42e4e3843714021edbb3a33c25d33de765ee --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js @@ -0,0 +1,191 @@ +import _typeof from "./typeof.js"; +import setFunctionName from "./setFunctionName.js"; +import toPropertyKey from "./toPropertyKey.js"; +function applyDecs2203RFactory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function memberDec(e, t, r, n, a, i, o, s) { + var c; + switch (a) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var l, + u, + f = { + kind: c, + name: o ? "#" + t : toPropertyKey(t), + "static": i, + "private": o + }, + p = { + v: !1 + }; + 0 !== a && (f.addInitializer = createAddInitializerMethod(n, p)), 0 === a ? o ? (l = r.get, u = r.set) : (l = function l() { + return this[t]; + }, u = function u(e) { + this[t] = e; + }) : 2 === a ? l = function l() { + return r.value; + } : (1 !== a && 3 !== a || (l = function l() { + return r.get.call(this); + }), 1 !== a && 4 !== a || (u = function u(e) { + r.set.call(this, e); + })), f.access = l && u ? { + get: l, + set: u + } : l ? { + get: l + } : { + set: u + }; + try { + return e(s, f); + } finally { + p.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function applyMemberDec(e, t, r, n, a, i, o, s) { + var c, + l, + u, + f, + p, + d, + h, + v = r[0]; + if (o ? (0 === a || 1 === a ? (c = { + get: r[3], + set: r[4] + }, u = "get") : 3 === a ? (c = { + get: r[3] + }, u = "get") : 4 === a ? (c = { + set: r[3] + }, u = "set") : c = { + value: r[3] + }, 0 !== a && (1 === a && setFunctionName(r[4], "#" + n, "set"), setFunctionName(r[3], "#" + n, u))) : 0 !== a && (c = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? f = { + get: c.get, + set: c.set + } : 2 === a ? f = c.value : 3 === a ? f = c.get : 4 === a && (f = c.set), "function" == typeof v) void 0 !== (p = memberDec(v, n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? l = p : 1 === a ? (l = p.init, d = p.get || f.get, h = p.set || f.set, f = { + get: d, + set: h + }) : f = p);else for (var g = v.length - 1; g >= 0; g--) { + var y; + void 0 !== (p = memberDec(v[g], n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? y = p : 1 === a ? (y = p.init, d = p.get || f.get, h = p.set || f.set, f = { + get: d, + set: h + }) : f = p, void 0 !== y && (void 0 === l ? l = y : "function" == typeof l ? l = [l, y] : l.push(y))); + } + if (0 === a || 1 === a) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var m = l; + l = function l(e, t) { + for (var r = t, n = 0; n < m.length; n++) r = m[n].call(e, r); + return r; + }; + } else { + var b = l; + l = function l(e, t) { + return b.call(e, t); + }; + } + e.push(l); + } + 0 !== a && (1 === a ? (c.get = f.get, c.set = f.set) : 2 === a ? c.value = f : 3 === a ? c.get = f : 4 === a && (c.set = f), o ? 1 === a ? (e.push(function (e, t) { + return f.get.call(e, t); + }), e.push(function (e, t) { + return f.set.call(e, t); + })) : 2 === a ? e.push(f) : e.push(function (e, t) { + return f.call(e, t); + }) : Object.defineProperty(t, n, c)); + } + function applyMemberDecs(e, t) { + for (var r, n, a = [], i = new Map(), o = new Map(), s = 0; s < t.length; s++) { + var c = t[s]; + if (Array.isArray(c)) { + var l, + u, + f = c[1], + p = c[2], + d = c.length > 3, + h = f >= 5; + if (h ? (l = e, 0 != (f -= 5) && (u = n = n || [])) : (l = e.prototype, 0 !== f && (u = r = r || [])), 0 !== f && !d) { + var v = h ? o : i, + g = v.get(p) || 0; + if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); + !g && f > 2 ? v.set(p, f) : v.set(p, !0); + } + applyMemberDec(a, l, c, p, f, h, d, u); + } + } + return pushInitializers(a, r), pushInitializers(a, n), a; + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r) { + return { + e: applyMemberDecs(e, t), + get c() { + return function (e, t) { + if (t.length > 0) { + for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { + var o = { + v: !1 + }; + try { + var s = t[i](n, { + kind: "class", + name: a, + addInitializer: createAddInitializerMethod(r, o) + }); + } finally { + o.v = !0; + } + void 0 !== s && (assertValidReturnValue(10, s), n = s); + } + return [n, function () { + for (var e = 0; e < r.length; e++) r[e].call(n); + }]; + } + }(e, r); + } + }; + }; +} +function applyDecs2203R(e, t, r) { + return (applyDecs2203R = applyDecs2203RFactory())(e, t, r); +} +export { applyDecs2203R as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js new file mode 100644 index 0000000000000000000000000000000000000000..8d110f7878a8a489ce3da0b625196d35f85c5911 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js @@ -0,0 +1,222 @@ +import _typeof from "./typeof.js"; +import checkInRHS from "./checkInRHS.js"; +import setFunctionName from "./setFunctionName.js"; +import toPropertyKey from "./toPropertyKey.js"; +function applyDecs2301Factory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function assertInstanceIfPrivate(e, t) { + if (!e(t)) throw new TypeError("Attempted to access private element on non-instance"); + } + function memberDec(e, t, r, n, a, i, s, o, c) { + var u; + switch (a) { + case 1: + u = "accessor"; + break; + case 2: + u = "method"; + break; + case 3: + u = "getter"; + break; + case 4: + u = "setter"; + break; + default: + u = "field"; + } + var l, + f, + p = { + kind: u, + name: s ? "#" + t : toPropertyKey(t), + "static": i, + "private": s + }, + d = { + v: !1 + }; + if (0 !== a && (p.addInitializer = createAddInitializerMethod(n, d)), s || 0 !== a && 2 !== a) { + if (2 === a) l = function l(e) { + return assertInstanceIfPrivate(c, e), r.value; + };else { + var h = 0 === a || 1 === a; + (h || 3 === a) && (l = s ? function (e) { + return assertInstanceIfPrivate(c, e), r.get.call(e); + } : function (e) { + return r.get.call(e); + }), (h || 4 === a) && (f = s ? function (e, t) { + assertInstanceIfPrivate(c, e), r.set.call(e, t); + } : function (e, t) { + r.set.call(e, t); + }); + } + } else l = function l(e) { + return e[t]; + }, 0 === a && (f = function f(e, r) { + e[t] = r; + }); + var v = s ? c.bind() : function (e) { + return t in e; + }; + p.access = l && f ? { + get: l, + set: f, + has: v + } : l ? { + get: l, + has: v + } : { + set: f, + has: v + }; + try { + return e(o, p); + } finally { + d.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function curryThis2(e) { + return function (t) { + e(this, t); + }; + } + function applyMemberDec(e, t, r, n, a, i, s, o, c) { + var u, + l, + f, + p, + d, + h, + v, + y, + g = r[0]; + if (s ? (0 === a || 1 === a ? (u = { + get: (d = r[3], function () { + return d(this); + }), + set: curryThis2(r[4]) + }, f = "get") : 3 === a ? (u = { + get: r[3] + }, f = "get") : 4 === a ? (u = { + set: r[3] + }, f = "set") : u = { + value: r[3] + }, 0 !== a && (1 === a && setFunctionName(u.set, "#" + n, "set"), setFunctionName(u[f || "value"], "#" + n, f))) : 0 !== a && (u = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? p = { + get: u.get, + set: u.set + } : 2 === a ? p = u.value : 3 === a ? p = u.get : 4 === a && (p = u.set), "function" == typeof g) void 0 !== (h = memberDec(g, n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? l = h : 1 === a ? (l = h.init, v = h.get || p.get, y = h.set || p.set, p = { + get: v, + set: y + }) : p = h);else for (var m = g.length - 1; m >= 0; m--) { + var b; + void 0 !== (h = memberDec(g[m], n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? b = h : 1 === a ? (b = h.init, v = h.get || p.get, y = h.set || p.set, p = { + get: v, + set: y + }) : p = h, void 0 !== b && (void 0 === l ? l = b : "function" == typeof l ? l = [l, b] : l.push(b))); + } + if (0 === a || 1 === a) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var I = l; + l = function l(e, t) { + for (var r = t, n = 0; n < I.length; n++) r = I[n].call(e, r); + return r; + }; + } else { + var w = l; + l = function l(e, t) { + return w.call(e, t); + }; + } + e.push(l); + } + 0 !== a && (1 === a ? (u.get = p.get, u.set = p.set) : 2 === a ? u.value = p : 3 === a ? u.get = p : 4 === a && (u.set = p), s ? 1 === a ? (e.push(function (e, t) { + return p.get.call(e, t); + }), e.push(function (e, t) { + return p.set.call(e, t); + })) : 2 === a ? e.push(p) : e.push(function (e, t) { + return p.call(e, t); + }) : Object.defineProperty(t, n, u)); + } + function applyMemberDecs(e, t, r) { + for (var n, a, i, s = [], o = new Map(), c = new Map(), u = 0; u < t.length; u++) { + var l = t[u]; + if (Array.isArray(l)) { + var f, + p, + d = l[1], + h = l[2], + v = l.length > 3, + y = d >= 5, + g = r; + if (y ? (f = e, 0 != (d -= 5) && (p = a = a || []), v && !i && (i = function i(t) { + return checkInRHS(t) === e; + }), g = i) : (f = e.prototype, 0 !== d && (p = n = n || [])), 0 !== d && !v) { + var m = y ? c : o, + b = m.get(h) || 0; + if (!0 === b || 3 === b && 4 !== d || 4 === b && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); + !b && d > 2 ? m.set(h, d) : m.set(h, !0); + } + applyMemberDec(s, f, l, h, d, y, v, p, g); + } + } + return pushInitializers(s, n), pushInitializers(s, a), s; + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r, n) { + return { + e: applyMemberDecs(e, t, n), + get c() { + return function (e, t) { + if (t.length > 0) { + for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { + var s = { + v: !1 + }; + try { + var o = t[i](n, { + kind: "class", + name: a, + addInitializer: createAddInitializerMethod(r, s) + }); + } finally { + s.v = !0; + } + void 0 !== o && (assertValidReturnValue(10, o), n = o); + } + return [n, function () { + for (var e = 0; e < r.length; e++) r[e].call(n); + }]; + } + }(e, r); + } + }; + }; +} +function applyDecs2301(e, t, r, n) { + return (applyDecs2301 = applyDecs2301Factory())(e, t, r, n); +} +export { applyDecs2301 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js new file mode 100644 index 0000000000000000000000000000000000000000..a11b2b90c15b47a633782d266eb25b50ee7435f5 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js @@ -0,0 +1,133 @@ +import _typeof from "./typeof.js"; +import checkInRHS from "./checkInRHS.js"; +import setFunctionName from "./setFunctionName.js"; +import toPropertyKey from "./toPropertyKey.js"; +function applyDecs2305(e, t, r, n, o, a) { + function i(e, t, r) { + return function (n, o) { + return r && r(n), e[t].call(n, o); + }; + } + function c(e, t) { + for (var r = 0; r < e.length; r++) e[r].call(t); + return t; + } + function s(e, t, r, n) { + if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); + return e; + } + function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { + function m(e) { + if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); + } + var y, + v = t[0], + g = t[3], + b = !u; + if (!b) { + r || Array.isArray(v) || (v = [v]); + var w = {}, + S = [], + A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; + f ? (p || d ? w = { + get: setFunctionName(function () { + return g(this); + }, n, "get"), + set: function set(e) { + t[4](this, e); + } + } : w[A] = g, p || setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); + } + for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { + var D = v[j], + E = r ? v[j - 1] : void 0, + I = {}, + O = { + kind: ["field", "accessor", "method", "getter", "setter", "class"][o], + name: n, + metadata: a, + addInitializer: function (e, t) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + s(t, "An initializer", "be", !0), c.push(t); + }.bind(null, I) + }; + try { + if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { + var k, F; + O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { + return m(e), w.value; + } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { + return e[n]; + }, (o < 2 || 4 === o) && (F = function F(e, t) { + e[n] = t; + })); + var N = O.access = { + has: f ? h.bind() : function (e) { + return n in e; + } + }; + if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { + get: w.get, + set: w.set + } : w[A], O), d) { + if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); + } + } finally { + I.v = !0; + } + } + return (p || d) && u.push(function (e, t) { + for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); + return t; + }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; + } + function u(e, t) { + return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { + configurable: !0, + enumerable: !0, + value: t + }); + } + if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; + var f = Object.create(null == l ? null : l), + p = function (e, t, r, n) { + var o, + a, + i = [], + s = function s(t) { + return checkInRHS(t) === e; + }, + u = new Map(); + function l(e) { + e && i.push(c.bind(null, e)); + } + for (var f = 0; f < t.length; f++) { + var p = t[f]; + if (Array.isArray(p)) { + var d = p[1], + h = p[2], + m = p.length > 3, + y = 16 & d, + v = !!(8 & d), + g = 0 == (d &= 7), + b = h + "/" + v; + if (!g && !m) { + var w = u.get(b); + if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); + u.set(b, !(d > 2) || d); + } + applyDec(v ? e : e.prototype, p, y, m ? "#" + h : toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); + } + } + return l(o), l(a), i; + }(e, t, o, f); + return r.length || u(e, f), { + e: p, + get c() { + var t = []; + return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; + } + }; +} +export { applyDecs2305 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js new file mode 100644 index 0000000000000000000000000000000000000000..ab8c0fd51e55ea386d937c21fb0590db220fa0b5 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js @@ -0,0 +1,124 @@ +import _typeof from "./typeof.js"; +import checkInRHS from "./checkInRHS.js"; +import setFunctionName from "./setFunctionName.js"; +import toPropertyKey from "./toPropertyKey.js"; +function applyDecs2311(e, t, n, r, o, i) { + var a, + c, + u, + s, + f, + l, + p, + d = Symbol.metadata || Symbol["for"]("Symbol.metadata"), + m = Object.defineProperty, + h = Object.create, + y = [h(null), h(null)], + v = t.length; + function g(t, n, r) { + return function (o, i) { + n && (i = o, o = e); + for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); + return r ? i : o; + }; + } + function b(e, t, n, r) { + if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined")); + return e; + } + function applyDec(e, t, n, r, o, i, u, s, f, l, p) { + function d(e) { + if (!p(e)) throw new TypeError("Attempted to access private element on non-instance"); + } + var h = [].concat(t[0]), + v = t[3], + w = !u, + D = 1 === o, + S = 3 === o, + j = 4 === o, + E = 2 === o; + function I(t, n, r) { + return function (o, i) { + return n && (i = o, o = e), r && r(o), P[t].call(o, i); + }; + } + if (!w) { + var P = {}, + k = [], + F = S ? "get" : j || D ? "set" : "value"; + if (f ? (l || D ? P = { + get: setFunctionName(function () { + return v(this); + }, r, "get"), + set: function set(e) { + t[4](this, e); + } + } : P[F] = v, l || setFunctionName(P[F], r, E ? "" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { + if ((c = y[+s][r]) && 7 !== (c ^ o)) throw Error("Decorating two elements with the same name (" + P[F].name + ") is not supported yet"); + y[+s][r] = o < 3 ? 1 : o; + } + } + for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { + var T = b(h[O], "A decorator", "be", !0), + z = n ? h[O - 1] : void 0, + A = {}, + H = { + kind: ["field", "accessor", "method", "getter", "setter", "class"][o], + name: r, + metadata: a, + addInitializer: function (e, t) { + if (e.v) throw new TypeError("attempted to call addInitializer after decoration was finished"); + b(t, "An initializer", "be", !0), i.push(t); + }.bind(null, A) + }; + if (w) c = T.call(z, N, H), A.v = 1, b(c, "class decorators", "return") && (N = c);else if (H["static"] = s, H["private"] = f, c = H.access = { + has: f ? p.bind() : function (e) { + return r in e; + } + }, j || (c.get = f ? E ? function (e) { + return d(e), P.value; + } : I("get", 0, d) : function (e) { + return e[r]; + }), E || S || (c.set = f ? I("set", 0, d) : function (e, t) { + e[r] = t; + }), N = T.call(z, D ? { + get: P.get, + set: P.set + } : P[F], H), A.v = 1, D) { + if ("object" == _typeof(N) && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && k.unshift(c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined"); + } else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? k.unshift(N) : P[F] = N); + } + return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I("get", s), I("set", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; + } + function w(e) { + return m(e, d, { + configurable: !0, + enumerable: !0, + value: a + }); + } + return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) { + e && f.push(g(e)); + }, p = function p(t, r) { + for (var i = 0; i < n.length; i++) { + var a = n[i], + c = a[1], + l = 7 & c; + if ((8 & c) == t && !l == r) { + var p = a[2], + d = !!a[3], + m = 16 & c; + applyDec(t ? e : e.prototype, a, m, d ? "#" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { + return checkInRHS(t) === e; + } : o); + } + } + }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { + e: c, + get c() { + var n = []; + return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; + } + }; +} +export { applyDecs2311 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js b/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js new file mode 100644 index 0000000000000000000000000000000000000000..9ace77240f113e563a5981101b1ee755e57b40ad --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js @@ -0,0 +1,6 @@ +function _arrayLikeToArray(r, a) { + (null == a || a > r.length) && (a = r.length); + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; + return n; +} +export { _arrayLikeToArray as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js b/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js new file mode 100644 index 0000000000000000000000000000000000000000..99fa715408e037f9d406c0a8329c88537b96dcd5 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js @@ -0,0 +1,4 @@ +function _arrayWithHoles(r) { + if (Array.isArray(r)) return r; +} +export { _arrayWithHoles as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js b/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js new file mode 100644 index 0000000000000000000000000000000000000000..1ce6f21462eddcd3a6cc5c00d3c14606339cfa54 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js @@ -0,0 +1,5 @@ +import arrayLikeToArray from "./arrayLikeToArray.js"; +function _arrayWithoutHoles(r) { + if (Array.isArray(r)) return arrayLikeToArray(r); +} +export { _arrayWithoutHoles as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js b/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js new file mode 100644 index 0000000000000000000000000000000000000000..ae7b712606d7ffadba8e483fa5453847ad960294 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js @@ -0,0 +1,5 @@ +function _assertClassBrand(e, t, n) { + if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; + throw new TypeError("Private element is not present on this object"); +} +export { _assertClassBrand as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js b/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js new file mode 100644 index 0000000000000000000000000000000000000000..4a41bde6268a764057eaa9947897ef516e4c7423 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js @@ -0,0 +1,5 @@ +function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e; +} +export { _assertThisInitialized as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js b/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js new file mode 100644 index 0000000000000000000000000000000000000000..e0266897d53faaf9191c8c0472e5c0118af6ff68 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js @@ -0,0 +1,24 @@ +import OverloadYield from "./OverloadYield.js"; +function _asyncGeneratorDelegate(t) { + var e = {}, + n = !1; + function pump(e, r) { + return n = !0, r = new Promise(function (n) { + n(t[e](r)); + }), { + done: !1, + value: new OverloadYield(r, 1) + }; + } + return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { + return this; + }, e.next = function (t) { + return n ? (n = !1, t) : pump("next", t); + }, "function" == typeof t["throw"] && (e["throw"] = function (t) { + if (n) throw n = !1, t; + return pump("throw", t); + }), "function" == typeof t["return"] && (e["return"] = function (t) { + return n ? (n = !1, t) : pump("return", t); + }), e; +} +export { _asyncGeneratorDelegate as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/asyncIterator.js b/node_modules/@babel/runtime/helpers/esm/asyncIterator.js new file mode 100644 index 0000000000000000000000000000000000000000..2ed00b796f497a14b96f1b9799d06e7f698b8ecf --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/asyncIterator.js @@ -0,0 +1,45 @@ +function _asyncIterator(r) { + var n, + t, + o, + e = 2; + for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { + if (t && null != (n = r[t])) return n.call(r); + if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); + t = "@@asyncIterator", o = "@@iterator"; + } + throw new TypeError("Object is not async iterable"); +} +function AsyncFromSyncIterator(r) { + function AsyncFromSyncIteratorContinuation(r) { + if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); + var n = r.done; + return Promise.resolve(r.value).then(function (r) { + return { + value: r, + done: n + }; + }); + } + return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { + this.s = r, this.n = r.next; + }, AsyncFromSyncIterator.prototype = { + s: null, + n: null, + next: function next() { + return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); + }, + "return": function _return(r) { + var n = this.s["return"]; + return void 0 === n ? Promise.resolve({ + value: r, + done: !0 + }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); + }, + "throw": function _throw(r) { + var n = this.s["return"]; + return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); + } + }, new AsyncFromSyncIterator(r); +} +export { _asyncIterator as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js b/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js new file mode 100644 index 0000000000000000000000000000000000000000..00f29b1f662d5ae6b494d59d114e8fb785bb7feb --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js @@ -0,0 +1,26 @@ +function asyncGeneratorStep(n, t, e, r, o, a, c) { + try { + var i = n[a](c), + u = i.value; + } catch (n) { + return void e(n); + } + i.done ? t(u) : Promise.resolve(u).then(r, o); +} +function _asyncToGenerator(n) { + return function () { + var t = this, + e = arguments; + return new Promise(function (r, o) { + var a = n.apply(t, e); + function _next(n) { + asyncGeneratorStep(a, r, o, _next, _throw, "next", n); + } + function _throw(n) { + asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); + } + _next(void 0); + }); + }; +} +export { _asyncToGenerator as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js b/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js new file mode 100644 index 0000000000000000000000000000000000000000..097c88c98e555b32c195ec7e87dc0ad93dc70871 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js @@ -0,0 +1,5 @@ +import OverloadYield from "./OverloadYield.js"; +function _awaitAsyncGenerator(e) { + return new OverloadYield(e, 0); +} +export { _awaitAsyncGenerator as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/callSuper.js b/node_modules/@babel/runtime/helpers/esm/callSuper.js new file mode 100644 index 0000000000000000000000000000000000000000..6d17a4ee51bd4a93eb4b4f7f5dff60b2040a8deb --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/callSuper.js @@ -0,0 +1,7 @@ +import getPrototypeOf from "./getPrototypeOf.js"; +import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; +import possibleConstructorReturn from "./possibleConstructorReturn.js"; +function _callSuper(t, o, e) { + return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); +} +export { _callSuper as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/checkInRHS.js b/node_modules/@babel/runtime/helpers/esm/checkInRHS.js new file mode 100644 index 0000000000000000000000000000000000000000..12f59b4cae30ebc369045c6992f61d3835bea28e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/checkInRHS.js @@ -0,0 +1,6 @@ +import _typeof from "./typeof.js"; +function _checkInRHS(e) { + if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); + return e; +} +export { _checkInRHS as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js b/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js new file mode 100644 index 0000000000000000000000000000000000000000..e9e6b3b46cf7dca490eb934078e9739a87cb7c1e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js @@ -0,0 +1,4 @@ +function _checkPrivateRedeclaration(e, t) { + if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); +} +export { _checkPrivateRedeclaration as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js new file mode 100644 index 0000000000000000000000000000000000000000..56234195ca486e5953702b13a63ba74dc72d6781 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js @@ -0,0 +1,10 @@ +function _classApplyDescriptorDestructureSet(e, t) { + if (t.set) return "__destrObj" in t || (t.__destrObj = { + set value(r) { + t.set.call(e, r); + } + }), t.__destrObj; + if (!t.writable) throw new TypeError("attempted to set read only private field"); + return t; +} +export { _classApplyDescriptorDestructureSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js new file mode 100644 index 0000000000000000000000000000000000000000..b9259d3e305cfdf92d5c7cf3c769f716990d5264 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js @@ -0,0 +1,4 @@ +function _classApplyDescriptorGet(e, t) { + return t.get ? t.get.call(e) : t.value; +} +export { _classApplyDescriptorGet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js new file mode 100644 index 0000000000000000000000000000000000000000..d9c4fbd2c59c838a6b000f5679632a783038b785 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js @@ -0,0 +1,7 @@ +function _classApplyDescriptorSet(e, t, l) { + if (t.set) t.set.call(e, l);else { + if (!t.writable) throw new TypeError("attempted to set read only private field"); + t.value = l; + } +} +export { _classApplyDescriptorSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classCallCheck.js b/node_modules/@babel/runtime/helpers/esm/classCallCheck.js new file mode 100644 index 0000000000000000000000000000000000000000..bf97219365660019bba20ef1c79b9765a5db5fb7 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classCallCheck.js @@ -0,0 +1,4 @@ +function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); +} +export { _classCallCheck as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js b/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js new file mode 100644 index 0000000000000000000000000000000000000000..366ed05e4416b71a405e539d9d1f1c69230f431f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classCheckPrivateStaticAccess(s, a, r) { + return assertClassBrand(a, s, r); +} +export { _classCheckPrivateStaticAccess as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js b/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js new file mode 100644 index 0000000000000000000000000000000000000000..844be91a8f26594ec85fabc80db4e0cea3b1767d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js @@ -0,0 +1,4 @@ +function _classCheckPrivateStaticFieldDescriptor(t, e) { + if (void 0 === t) throw new TypeError("attempted to " + e + " private static field before its declaration"); +} +export { _classCheckPrivateStaticFieldDescriptor as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js b/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js new file mode 100644 index 0000000000000000000000000000000000000000..652689d133051829bb67a4b3bd2731e258ad4448 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js @@ -0,0 +1,5 @@ +import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; +function _classExtractFieldDescriptor(e, t) { + return classPrivateFieldGet2(t, e); +} +export { _classExtractFieldDescriptor as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js b/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js new file mode 100644 index 0000000000000000000000000000000000000000..68e76ff74f1368e7d802c025409b0f9350057613 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js @@ -0,0 +1,4 @@ +function _classNameTDZError(e) { + throw new ReferenceError('Class "' + e + '" cannot be referenced in computed property keys.'); +} +export { _classNameTDZError as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js new file mode 100644 index 0000000000000000000000000000000000000000..93033663ac156d5d16af3857ccd5d9008932bd16 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; +import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; +function _classPrivateFieldDestructureSet(e, t) { + var r = classPrivateFieldGet2(t, e); + return classApplyDescriptorDestructureSet(e, r); +} +export { _classPrivateFieldDestructureSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js new file mode 100644 index 0000000000000000000000000000000000000000..ce7ebcb716e7fcde838baa3fa1734a9d3a962588 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; +import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; +function _classPrivateFieldGet(e, t) { + var r = classPrivateFieldGet2(t, e); + return classApplyDescriptorGet(e, r); +} +export { _classPrivateFieldGet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js new file mode 100644 index 0000000000000000000000000000000000000000..4aa3da6b5481062ce4003bf4cade19a3c40266a6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classPrivateFieldGet2(s, a) { + return s.get(assertClassBrand(s, a)); +} +export { _classPrivateFieldGet2 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js new file mode 100644 index 0000000000000000000000000000000000000000..5dcdbe04a1801a168b55d9242e0f599a60aed79a --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js @@ -0,0 +1,5 @@ +import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; +function _classPrivateFieldInitSpec(e, t, a) { + checkPrivateRedeclaration(e, t), t.set(e, a); +} +export { _classPrivateFieldInitSpec as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js new file mode 100644 index 0000000000000000000000000000000000000000..4bd662ca7f9e1b6ab2833a738839074d8c3fbb5e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js @@ -0,0 +1,5 @@ +function _classPrivateFieldBase(e, t) { + if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); + return e; +} +export { _classPrivateFieldBase as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js new file mode 100644 index 0000000000000000000000000000000000000000..90d21937c9db2245eee155ac94dc445f810d0ebd --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js @@ -0,0 +1,5 @@ +var id = 0; +function _classPrivateFieldKey(e) { + return "__private_" + id++ + "_" + e; +} +export { _classPrivateFieldKey as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js new file mode 100644 index 0000000000000000000000000000000000000000..b5161bdb67f560a0a4c1cda927e05daa16e02c6d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; +import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; +function _classPrivateFieldSet(e, t, r) { + var s = classPrivateFieldGet2(t, e); + return classApplyDescriptorSet(e, s, r), r; +} +export { _classPrivateFieldSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js new file mode 100644 index 0000000000000000000000000000000000000000..337b01a493a38dc5493687e942b1aef3d091c357 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classPrivateFieldSet2(s, a, r) { + return s.set(assertClassBrand(s, a), r), r; +} +export { _classPrivateFieldSet2 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js b/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js new file mode 100644 index 0000000000000000000000000000000000000000..ff3e98513d7a57ad9a2acb81abe1b22e5a4b3af4 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classPrivateGetter(s, r, a) { + return a(assertClassBrand(s, r)); +} +export { _classPrivateGetter as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js new file mode 100644 index 0000000000000000000000000000000000000000..4832fc6f76d3a8f16711aa47358d8dcdb6f36d3e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classPrivateMethodGet(s, a, r) { + return assertClassBrand(a, s), r; +} +export { _classPrivateMethodGet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js new file mode 100644 index 0000000000000000000000000000000000000000..61e23e26f3fddefc269594b40ff267f55a98865c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js @@ -0,0 +1,5 @@ +import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; +function _classPrivateMethodInitSpec(e, a) { + checkPrivateRedeclaration(e, a), a.add(e); +} +export { _classPrivateMethodInitSpec as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js new file mode 100644 index 0000000000000000000000000000000000000000..d181b5135682cb6eecd10951cfe3fb4f73ebc2b1 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js @@ -0,0 +1,4 @@ +function _classPrivateMethodSet() { + throw new TypeError("attempted to reassign private method"); +} +export { _classPrivateMethodSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js b/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js new file mode 100644 index 0000000000000000000000000000000000000000..9a80d59bc10486af790f23e18b929775114d0c2f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classPrivateSetter(s, r, a, t) { + return r(assertClassBrand(s, a), t), t; +} +export { _classPrivateSetter as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js new file mode 100644 index 0000000000000000000000000000000000000000..747e639d596719b6500625126381e049f7174fc6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; +import assertClassBrand from "./assertClassBrand.js"; +import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; +function _classStaticPrivateFieldDestructureSet(t, r, s) { + return assertClassBrand(r, t), classCheckPrivateStaticFieldDescriptor(s, "set"), classApplyDescriptorDestructureSet(t, s); +} +export { _classStaticPrivateFieldDestructureSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js new file mode 100644 index 0000000000000000000000000000000000000000..23684b74935adec2568c901e8075804541db0134 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; +import assertClassBrand from "./assertClassBrand.js"; +import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; +function _classStaticPrivateFieldSpecGet(t, s, r) { + return assertClassBrand(s, t), classCheckPrivateStaticFieldDescriptor(r, "get"), classApplyDescriptorGet(t, r); +} +export { _classStaticPrivateFieldSpecGet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js new file mode 100644 index 0000000000000000000000000000000000000000..3a314682c0dff8a92ce08ca3b22c973cfc9090ad --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; +import assertClassBrand from "./assertClassBrand.js"; +import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; +function _classStaticPrivateFieldSpecSet(s, t, r, e) { + return assertClassBrand(t, s), classCheckPrivateStaticFieldDescriptor(r, "set"), classApplyDescriptorSet(s, r, e), e; +} +export { _classStaticPrivateFieldSpecSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js new file mode 100644 index 0000000000000000000000000000000000000000..047b177b0260a19525882ead86b0cb0b9a394c00 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classStaticPrivateMethodGet(s, a, t) { + return assertClassBrand(a, s), t; +} +export { _classStaticPrivateMethodGet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js new file mode 100644 index 0000000000000000000000000000000000000000..a61ae63ee90b8b9a2c05ccabb666b52392153264 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js @@ -0,0 +1,4 @@ +function _classStaticPrivateMethodSet() { + throw new TypeError("attempted to set read only static private field"); +} +export { _classStaticPrivateMethodSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/construct.js b/node_modules/@babel/runtime/helpers/esm/construct.js new file mode 100644 index 0000000000000000000000000000000000000000..91609ff7861b33f22905933608c209619c317427 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/construct.js @@ -0,0 +1,10 @@ +import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; +import setPrototypeOf from "./setPrototypeOf.js"; +function _construct(t, e, r) { + if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); + var o = [null]; + o.push.apply(o, e); + var p = new (t.bind.apply(t, o))(); + return r && setPrototypeOf(p, r.prototype), p; +} +export { _construct as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createClass.js b/node_modules/@babel/runtime/helpers/esm/createClass.js new file mode 100644 index 0000000000000000000000000000000000000000..9b178515eb7a72e825e3d4acd4f8f74b8e6438bd --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/createClass.js @@ -0,0 +1,13 @@ +import toPropertyKey from "./toPropertyKey.js"; +function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); + } +} +function _createClass(e, r, t) { + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { + writable: !1 + }), e; +} +export { _createClass as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js b/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js new file mode 100644 index 0000000000000000000000000000000000000000..93b97f915113f730424bc88d20a599d6f6da2eb8 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js @@ -0,0 +1,50 @@ +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +function _createForOfIteratorHelper(r, e) { + var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (!t) { + if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { + t && (r = t); + var _n = 0, + F = function F() {}; + return { + s: F, + n: function n() { + return _n >= r.length ? { + done: !0 + } : { + done: !1, + value: r[_n++] + }; + }, + e: function e(r) { + throw r; + }, + f: F + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var o, + a = !0, + u = !1; + return { + s: function s() { + t = t.call(r); + }, + n: function n() { + var r = t.next(); + return a = r.done, r; + }, + e: function e(r) { + u = !0, o = r; + }, + f: function f() { + try { + a || null == t["return"] || t["return"](); + } finally { + if (u) throw o; + } + } + }; +} +export { _createForOfIteratorHelper as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js b/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js new file mode 100644 index 0000000000000000000000000000000000000000..3deaae443368fc22d581457c5b05704f7edd0026 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js @@ -0,0 +1,19 @@ +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +function _createForOfIteratorHelperLoose(r, e) { + var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (t) return (t = t.call(r)).next.bind(t); + if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { + t && (r = t); + var o = 0; + return function () { + return o >= r.length ? { + done: !0 + } : { + done: !1, + value: r[o++] + }; + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +export { _createForOfIteratorHelperLoose as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createSuper.js b/node_modules/@babel/runtime/helpers/esm/createSuper.js new file mode 100644 index 0000000000000000000000000000000000000000..dfabf7115e5ae94da2ff457e38291d7637b4a395 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/createSuper.js @@ -0,0 +1,16 @@ +import getPrototypeOf from "./getPrototypeOf.js"; +import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; +import possibleConstructorReturn from "./possibleConstructorReturn.js"; +function _createSuper(t) { + var r = isNativeReflectConstruct(); + return function () { + var e, + o = getPrototypeOf(t); + if (r) { + var s = getPrototypeOf(this).constructor; + e = Reflect.construct(o, arguments, s); + } else e = o.apply(this, arguments); + return possibleConstructorReturn(this, e); + }; +} +export { _createSuper as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/decorate.js b/node_modules/@babel/runtime/helpers/esm/decorate.js new file mode 100644 index 0000000000000000000000000000000000000000..f76b6a6af86a8fbded26059526d6127c7b1970df --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/decorate.js @@ -0,0 +1,250 @@ +import toArray from "./toArray.js"; +import toPropertyKey from "./toPropertyKey.js"; +function _decorate(e, r, t, i) { + var o = _getDecoratorsApi(); + if (i) for (var n = 0; n < i.length; n++) o = i[n](o); + var s = r(function (e) { + o.initializeInstanceElements(e, a.elements); + }, t), + a = o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)), e); + return o.initializeClassElements(s.F, a.elements), o.runClassFinishers(s.F, a.finishers); +} +function _getDecoratorsApi() { + _getDecoratorsApi = function _getDecoratorsApi() { + return e; + }; + var e = { + elementsDefinitionOrder: [["method"], ["field"]], + initializeInstanceElements: function initializeInstanceElements(e, r) { + ["method", "field"].forEach(function (t) { + r.forEach(function (r) { + r.kind === t && "own" === r.placement && this.defineClassElement(e, r); + }, this); + }, this); + }, + initializeClassElements: function initializeClassElements(e, r) { + var t = e.prototype; + ["method", "field"].forEach(function (i) { + r.forEach(function (r) { + var o = r.placement; + if (r.kind === i && ("static" === o || "prototype" === o)) { + var n = "static" === o ? e : t; + this.defineClassElement(n, r); + } + }, this); + }, this); + }, + defineClassElement: function defineClassElement(e, r) { + var t = r.descriptor; + if ("field" === r.kind) { + var i = r.initializer; + t = { + enumerable: t.enumerable, + writable: t.writable, + configurable: t.configurable, + value: void 0 === i ? void 0 : i.call(e) + }; + } + Object.defineProperty(e, r.key, t); + }, + decorateClass: function decorateClass(e, r) { + var t = [], + i = [], + o = { + "static": [], + prototype: [], + own: [] + }; + if (e.forEach(function (e) { + this.addElementPlacement(e, o); + }, this), e.forEach(function (e) { + if (!_hasDecorators(e)) return t.push(e); + var r = this.decorateElement(e, o); + t.push(r.element), t.push.apply(t, r.extras), i.push.apply(i, r.finishers); + }, this), !r) return { + elements: t, + finishers: i + }; + var n = this.decorateConstructor(t, r); + return i.push.apply(i, n.finishers), n.finishers = i, n; + }, + addElementPlacement: function addElementPlacement(e, r, t) { + var i = r[e.placement]; + if (!t && -1 !== i.indexOf(e.key)) throw new TypeError("Duplicated element (" + e.key + ")"); + i.push(e.key); + }, + decorateElement: function decorateElement(e, r) { + for (var t = [], i = [], o = e.decorators, n = o.length - 1; n >= 0; n--) { + var s = r[e.placement]; + s.splice(s.indexOf(e.key), 1); + var a = this.fromElementDescriptor(e), + l = this.toElementFinisherExtras((0, o[n])(a) || a); + e = l.element, this.addElementPlacement(e, r), l.finisher && i.push(l.finisher); + var c = l.extras; + if (c) { + for (var p = 0; p < c.length; p++) this.addElementPlacement(c[p], r); + t.push.apply(t, c); + } + } + return { + element: e, + finishers: i, + extras: t + }; + }, + decorateConstructor: function decorateConstructor(e, r) { + for (var t = [], i = r.length - 1; i >= 0; i--) { + var o = this.fromClassDescriptor(e), + n = this.toClassDescriptor((0, r[i])(o) || o); + if (void 0 !== n.finisher && t.push(n.finisher), void 0 !== n.elements) { + e = n.elements; + for (var s = 0; s < e.length - 1; s++) for (var a = s + 1; a < e.length; a++) if (e[s].key === e[a].key && e[s].placement === e[a].placement) throw new TypeError("Duplicated element (" + e[s].key + ")"); + } + } + return { + elements: e, + finishers: t + }; + }, + fromElementDescriptor: function fromElementDescriptor(e) { + var r = { + kind: e.kind, + key: e.key, + placement: e.placement, + descriptor: e.descriptor + }; + return Object.defineProperty(r, Symbol.toStringTag, { + value: "Descriptor", + configurable: !0 + }), "field" === e.kind && (r.initializer = e.initializer), r; + }, + toElementDescriptors: function toElementDescriptors(e) { + if (void 0 !== e) return toArray(e).map(function (e) { + var r = this.toElementDescriptor(e); + return this.disallowProperty(e, "finisher", "An element descriptor"), this.disallowProperty(e, "extras", "An element descriptor"), r; + }, this); + }, + toElementDescriptor: function toElementDescriptor(e) { + var r = e.kind + ""; + if ("method" !== r && "field" !== r) throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "' + r + '"'); + var t = toPropertyKey(e.key), + i = e.placement + ""; + if ("static" !== i && "prototype" !== i && "own" !== i) throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "' + i + '"'); + var o = e.descriptor; + this.disallowProperty(e, "elements", "An element descriptor"); + var n = { + kind: r, + key: t, + placement: i, + descriptor: Object.assign({}, o) + }; + return "field" !== r ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), n.initializer = e.initializer), n; + }, + toElementFinisherExtras: function toElementFinisherExtras(e) { + return { + element: this.toElementDescriptor(e), + finisher: _optionalCallableProperty(e, "finisher"), + extras: this.toElementDescriptors(e.extras) + }; + }, + fromClassDescriptor: function fromClassDescriptor(e) { + var r = { + kind: "class", + elements: e.map(this.fromElementDescriptor, this) + }; + return Object.defineProperty(r, Symbol.toStringTag, { + value: "Descriptor", + configurable: !0 + }), r; + }, + toClassDescriptor: function toClassDescriptor(e) { + var r = e.kind + ""; + if ("class" !== r) throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + r + '"'); + this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor"); + var t = _optionalCallableProperty(e, "finisher"); + return { + elements: this.toElementDescriptors(e.elements), + finisher: t + }; + }, + runClassFinishers: function runClassFinishers(e, r) { + for (var t = 0; t < r.length; t++) { + var i = (0, r[t])(e); + if (void 0 !== i) { + if ("function" != typeof i) throw new TypeError("Finishers must return a constructor."); + e = i; + } + } + return e; + }, + disallowProperty: function disallowProperty(e, r, t) { + if (void 0 !== e[r]) throw new TypeError(t + " can't have a ." + r + " property."); + } + }; + return e; +} +function _createElementDescriptor(e) { + var r, + t = toPropertyKey(e.key); + "method" === e.kind ? r = { + value: e.value, + writable: !0, + configurable: !0, + enumerable: !1 + } : "get" === e.kind ? r = { + get: e.value, + configurable: !0, + enumerable: !1 + } : "set" === e.kind ? r = { + set: e.value, + configurable: !0, + enumerable: !1 + } : "field" === e.kind && (r = { + configurable: !0, + writable: !0, + enumerable: !0 + }); + var i = { + kind: "field" === e.kind ? "field" : "method", + key: t, + placement: e["static"] ? "static" : "field" === e.kind ? "own" : "prototype", + descriptor: r + }; + return e.decorators && (i.decorators = e.decorators), "field" === e.kind && (i.initializer = e.value), i; +} +function _coalesceGetterSetter(e, r) { + void 0 !== e.descriptor.get ? r.descriptor.get = e.descriptor.get : r.descriptor.set = e.descriptor.set; +} +function _coalesceClassElements(e) { + for (var r = [], isSameElement = function isSameElement(e) { + return "method" === e.kind && e.key === o.key && e.placement === o.placement; + }, t = 0; t < e.length; t++) { + var i, + o = e[t]; + if ("method" === o.kind && (i = r.find(isSameElement))) { + if (_isDataDescriptor(o.descriptor) || _isDataDescriptor(i.descriptor)) { + if (_hasDecorators(o) || _hasDecorators(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated."); + i.descriptor = o.descriptor; + } else { + if (_hasDecorators(o)) { + if (_hasDecorators(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ")."); + i.decorators = o.decorators; + } + _coalesceGetterSetter(o, i); + } + } else r.push(o); + } + return r; +} +function _hasDecorators(e) { + return e.decorators && e.decorators.length; +} +function _isDataDescriptor(e) { + return void 0 !== e && !(void 0 === e.value && void 0 === e.writable); +} +function _optionalCallableProperty(e, r) { + var t = e[r]; + if (void 0 !== t && "function" != typeof t) throw new TypeError("Expected '" + r + "' to be a function"); + return t; +} +export { _decorate as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defaults.js b/node_modules/@babel/runtime/helpers/esm/defaults.js new file mode 100644 index 0000000000000000000000000000000000000000..d3041a3d127bd717c4239304d6dd7e23b4e65a9d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/defaults.js @@ -0,0 +1,9 @@ +function _defaults(e, r) { + for (var t = Object.getOwnPropertyNames(r), o = 0; o < t.length; o++) { + var n = t[o], + a = Object.getOwnPropertyDescriptor(r, n); + a && a.configurable && void 0 === e[n] && Object.defineProperty(e, n, a); + } + return e; +} +export { _defaults as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defineAccessor.js b/node_modules/@babel/runtime/helpers/esm/defineAccessor.js new file mode 100644 index 0000000000000000000000000000000000000000..a8292deafe53bbc71f70edf2eae4c48c3bca02cf --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/defineAccessor.js @@ -0,0 +1,8 @@ +function _defineAccessor(e, r, n, t) { + var c = { + configurable: !0, + enumerable: !0 + }; + return c[e] = t, Object.defineProperty(r, n, c); +} +export { _defineAccessor as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js b/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js new file mode 100644 index 0000000000000000000000000000000000000000..3d31d9809b453f8c82fa766f9210d4cb0236928b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js @@ -0,0 +1,12 @@ +function _defineEnumerableProperties(e, r) { + for (var t in r) { + var n = r[t]; + n.configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, t, n); + } + if (Object.getOwnPropertySymbols) for (var a = Object.getOwnPropertySymbols(r), b = 0; b < a.length; b++) { + var i = a[b]; + (n = r[i]).configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, i, n); + } + return e; +} +export { _defineEnumerableProperties as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defineProperty.js b/node_modules/@babel/runtime/helpers/esm/defineProperty.js new file mode 100644 index 0000000000000000000000000000000000000000..05ec32b70e6c58e482cf053aa517f9ff804f14f1 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/defineProperty.js @@ -0,0 +1,10 @@ +import toPropertyKey from "./toPropertyKey.js"; +function _defineProperty(e, r, t) { + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[r] = t, e; +} +export { _defineProperty as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/dispose.js b/node_modules/@babel/runtime/helpers/esm/dispose.js new file mode 100644 index 0000000000000000000000000000000000000000..a87ab202618d0065982155a64f8b7d1ec956ec97 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/dispose.js @@ -0,0 +1,28 @@ +function dispose_SuppressedError(r, e) { + return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(r, e) { + this.suppressed = e, this.error = r, this.stack = Error().stack; + }, dispose_SuppressedError.prototype = Object.create(Error.prototype, { + constructor: { + value: dispose_SuppressedError, + writable: !0, + configurable: !0 + } + })), new dispose_SuppressedError(r, e); +} +function _dispose(r, e, s) { + function next() { + for (; r.length > 0;) try { + var o = r.pop(), + p = o.d.call(o.v); + if (o.a) return Promise.resolve(p).then(next, err); + } catch (r) { + return err(r); + } + if (s) throw e; + } + function err(r) { + return e = s ? new dispose_SuppressedError(e, r) : r, s = !0, next(); + } + return next(); +} +export { _dispose as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/extends.js b/node_modules/@babel/runtime/helpers/esm/extends.js new file mode 100644 index 0000000000000000000000000000000000000000..53f118ca9dff6fc344bc15046bc6f6239cbb502d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/extends.js @@ -0,0 +1,10 @@ +function _extends() { + return _extends = Object.assign ? Object.assign.bind() : function (n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); + } + return n; + }, _extends.apply(null, arguments); +} +export { _extends as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/get.js b/node_modules/@babel/runtime/helpers/esm/get.js new file mode 100644 index 0000000000000000000000000000000000000000..8124bc023f1089e78cb860945f1dd553d8efd5ec --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/get.js @@ -0,0 +1,11 @@ +import superPropBase from "./superPropBase.js"; +function _get() { + return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { + var p = superPropBase(e, t); + if (p) { + var n = Object.getOwnPropertyDescriptor(p, t); + return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; + } + }, _get.apply(null, arguments); +} +export { _get as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js b/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js new file mode 100644 index 0000000000000000000000000000000000000000..9073c456bdb39e81cbde7987a0ef80bb5cffe63b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js @@ -0,0 +1,6 @@ +function _getPrototypeOf(t) { + return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, _getPrototypeOf(t); +} +export { _getPrototypeOf as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/identity.js b/node_modules/@babel/runtime/helpers/esm/identity.js new file mode 100644 index 0000000000000000000000000000000000000000..6b564ac534a4cdb3f90279676c569c099591629f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/identity.js @@ -0,0 +1,4 @@ +function _identity(t) { + return t; +} +export { _identity as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js b/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js new file mode 100644 index 0000000000000000000000000000000000000000..6d35b526d7585422bfe576896f32622fb5bcdb62 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js @@ -0,0 +1,27 @@ +function _importDeferProxy(e) { + var t = null, + constValue = function constValue(e) { + return function () { + return e; + }; + }, + proxy = function proxy(r) { + return function (n, o, f) { + return null === t && (t = e()), r(t, o, f); + }; + }; + return new Proxy({}, { + defineProperty: constValue(!1), + deleteProperty: constValue(!1), + get: proxy(Reflect.get), + getOwnPropertyDescriptor: proxy(Reflect.getOwnPropertyDescriptor), + getPrototypeOf: constValue(null), + isExtensible: constValue(!1), + has: proxy(Reflect.has), + ownKeys: proxy(Reflect.ownKeys), + preventExtensions: constValue(!0), + set: constValue(!1), + setPrototypeOf: constValue(!1) + }); +} +export { _importDeferProxy as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/inherits.js b/node_modules/@babel/runtime/helpers/esm/inherits.js new file mode 100644 index 0000000000000000000000000000000000000000..78f6e4e33883b54f8c50948598d3864d4a5e68a9 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/inherits.js @@ -0,0 +1,14 @@ +import setPrototypeOf from "./setPrototypeOf.js"; +function _inherits(t, e) { + if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + writable: !0, + configurable: !0 + } + }), Object.defineProperty(t, "prototype", { + writable: !1 + }), e && setPrototypeOf(t, e); +} +export { _inherits as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js b/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js new file mode 100644 index 0000000000000000000000000000000000000000..0bd13306acde8001fd431cd421cd05c9ca2a4372 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js @@ -0,0 +1,5 @@ +import setPrototypeOf from "./setPrototypeOf.js"; +function _inheritsLoose(t, o) { + t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o); +} +export { _inheritsLoose as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js b/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js new file mode 100644 index 0000000000000000000000000000000000000000..68bcc2cd43a4e6a9ab3ea5c5c2f8b4477fce2314 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js @@ -0,0 +1,9 @@ +function _initializerDefineProperty(e, i, r, l) { + r && Object.defineProperty(e, i, { + enumerable: r.enumerable, + configurable: r.configurable, + writable: r.writable, + value: r.initializer ? r.initializer.call(l) : void 0 + }); +} +export { _initializerDefineProperty as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js b/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js new file mode 100644 index 0000000000000000000000000000000000000000..0a658e39ac4d6db2387d7fdc4a22cbd99963d4da --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js @@ -0,0 +1,4 @@ +function _initializerWarningHelper(r, e) { + throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform."); +} +export { _initializerWarningHelper as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/instanceof.js b/node_modules/@babel/runtime/helpers/esm/instanceof.js new file mode 100644 index 0000000000000000000000000000000000000000..316539ee452149c8bd0b32e5f615b049bd052528 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/instanceof.js @@ -0,0 +1,4 @@ +function _instanceof(n, e) { + return null != e && "undefined" != typeof Symbol && e[Symbol.hasInstance] ? !!e[Symbol.hasInstance](n) : n instanceof e; +} +export { _instanceof as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js b/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js new file mode 100644 index 0000000000000000000000000000000000000000..365d248199fc7dcf18649f48add3edbf59de348b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js @@ -0,0 +1,6 @@ +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { + "default": e + }; +} +export { _interopRequireDefault as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js b/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js new file mode 100644 index 0000000000000000000000000000000000000000..ed9ca3187ece159bb74447eb0babbb366b84d78f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js @@ -0,0 +1,22 @@ +import _typeof from "./typeof.js"; +function _interopRequireWildcard(e, t) { + if ("function" == typeof WeakMap) var r = new WeakMap(), + n = new WeakMap(); + return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { + if (!t && e && e.__esModule) return e; + var o, + i, + f = { + __proto__: null, + "default": e + }; + if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; + if (o = t ? n : r) { + if (o.has(e)) return o.get(e); + o.set(e, f); + } + for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); + return f; + })(e, t); +} +export { _interopRequireWildcard as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js b/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js new file mode 100644 index 0000000000000000000000000000000000000000..0cfe276f8df3438490cd2cbcc19385abded1fe6f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js @@ -0,0 +1,8 @@ +function _isNativeFunction(t) { + try { + return -1 !== Function.toString.call(t).indexOf("[native code]"); + } catch (n) { + return "function" == typeof t; + } +} +export { _isNativeFunction as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js b/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js new file mode 100644 index 0000000000000000000000000000000000000000..0eb5e395181a9333b6ff9b980e2f99b69d6468b0 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js @@ -0,0 +1,9 @@ +function _isNativeReflectConstruct() { + try { + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); +} +export { _isNativeReflectConstruct as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/iterableToArray.js b/node_modules/@babel/runtime/helpers/esm/iterableToArray.js new file mode 100644 index 0000000000000000000000000000000000000000..b7de3396ab408b779aa3bde4c3cb9e2925cc6148 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/iterableToArray.js @@ -0,0 +1,4 @@ +function _iterableToArray(r) { + if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); +} +export { _iterableToArray as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js b/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js new file mode 100644 index 0000000000000000000000000000000000000000..473f0678192b0dcec901b07f091500d9dbc24687 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js @@ -0,0 +1,28 @@ +function _iterableToArrayLimit(r, l) { + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (null != t) { + var e, + n, + i, + u, + a = [], + f = !0, + o = !1; + try { + if (i = (t = t.call(r)).next, 0 === l) { + if (Object(t) !== t) return; + f = !1; + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); + } catch (r) { + o = !0, n = r; + } finally { + try { + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; + } finally { + if (o) throw n; + } + } + return a; + } +} +export { _iterableToArrayLimit as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/jsx.js b/node_modules/@babel/runtime/helpers/esm/jsx.js new file mode 100644 index 0000000000000000000000000000000000000000..a120e5b6644546060dac58169d25848eb297a26c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/jsx.js @@ -0,0 +1,22 @@ +var REACT_ELEMENT_TYPE; +function _createRawReactElement(e, r, E, l) { + REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); + var o = e && e.defaultProps, + n = arguments.length - 3; + if (r || 0 === n || (r = { + children: void 0 + }), 1 === n) r.children = l;else if (n > 1) { + for (var t = Array(n), f = 0; f < n; f++) t[f] = arguments[f + 3]; + r.children = t; + } + if (r && o) for (var i in o) void 0 === r[i] && (r[i] = o[i]);else r || (r = o || {}); + return { + $$typeof: REACT_ELEMENT_TYPE, + type: e, + key: void 0 === E ? null : "" + E, + ref: null, + props: r, + _owner: null + }; +} +export { _createRawReactElement as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js b/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js new file mode 100644 index 0000000000000000000000000000000000000000..527c682b3bfe7cc27f4a5e94f900e51f2837cde7 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js @@ -0,0 +1,9 @@ +import arrayLikeToArray from "./arrayLikeToArray.js"; +function _maybeArrayLike(r, a, e) { + if (a && !Array.isArray(a) && "number" == typeof a.length) { + var y = a.length; + return arrayLikeToArray(a, void 0 !== e && e < y ? e : y); + } + return r(a, e); +} +export { _maybeArrayLike as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js b/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js new file mode 100644 index 0000000000000000000000000000000000000000..5f70e0d791974a5f96f7a2f5841a27444a116da3 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js @@ -0,0 +1,4 @@ +function _newArrowCheck(n, r) { + if (n !== r) throw new TypeError("Cannot instantiate an arrow function"); +} +export { _newArrowCheck as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js b/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js new file mode 100644 index 0000000000000000000000000000000000000000..9050250b17b66776e878af3c200adafd52101a0e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js @@ -0,0 +1,4 @@ +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +export { _nonIterableRest as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js b/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js new file mode 100644 index 0000000000000000000000000000000000000000..fb03235aea95820f5be217744b244813f4a9358d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js @@ -0,0 +1,4 @@ +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +export { _nonIterableSpread as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js b/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js new file mode 100644 index 0000000000000000000000000000000000000000..d8c30604635273b3915b8e1208a3ce661658f83d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js @@ -0,0 +1,4 @@ +function _nullishReceiverError(r) { + throw new TypeError("Cannot set property of null or undefined."); +} +export { _nullishReceiverError as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js b/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js new file mode 100644 index 0000000000000000000000000000000000000000..a92eac8f9570acbc05c3e012895e8c7195fef92d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js @@ -0,0 +1,4 @@ +function _objectDestructuringEmpty(t) { + if (null == t) throw new TypeError("Cannot destructure " + t); +} +export { _objectDestructuringEmpty as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectSpread.js b/node_modules/@babel/runtime/helpers/esm/objectSpread.js new file mode 100644 index 0000000000000000000000000000000000000000..0f82f069c75a1b06a320908603c9cc3d19054f27 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/objectSpread.js @@ -0,0 +1,14 @@ +import defineProperty from "./defineProperty.js"; +function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? Object(arguments[r]) : {}, + o = Object.keys(t); + "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function (e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), o.forEach(function (r) { + defineProperty(e, r, t[r]); + }); + } + return e; +} +export { _objectSpread as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectSpread2.js b/node_modules/@babel/runtime/helpers/esm/objectSpread2.js new file mode 100644 index 0000000000000000000000000000000000000000..0035bc76239911a2bb031cae7f76afb72b46c47d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/objectSpread2.js @@ -0,0 +1,23 @@ +import defineProperty from "./defineProperty.js"; +function ownKeys(e, r) { + var t = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(e); + r && (o = o.filter(function (r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; + })), t.push.apply(t, o); + } + return t; +} +function _objectSpread2(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { + defineProperty(e, r, t[r]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); + }); + } + return e; +} +export { _objectSpread2 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js b/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js new file mode 100644 index 0000000000000000000000000000000000000000..598fb9ade68452c26c1e8bead1c36ecf7e2550b1 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js @@ -0,0 +1,13 @@ +import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js"; +function _objectWithoutProperties(e, t) { + if (null == e) return {}; + var o, + r, + i = objectWithoutPropertiesLoose(e, t); + if (Object.getOwnPropertySymbols) { + var n = Object.getOwnPropertySymbols(e); + for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); + } + return i; +} +export { _objectWithoutProperties as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js b/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js new file mode 100644 index 0000000000000000000000000000000000000000..90f68f3dddeba4775f4f1c6dad4c6a46de159c79 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js @@ -0,0 +1,10 @@ +function _objectWithoutPropertiesLoose(r, e) { + if (null == r) return {}; + var t = {}; + for (var n in r) if ({}.hasOwnProperty.call(r, n)) { + if (-1 !== e.indexOf(n)) continue; + t[n] = r[n]; + } + return t; +} +export { _objectWithoutPropertiesLoose as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/package.json b/node_modules/@babel/runtime/helpers/esm/package.json new file mode 100644 index 0000000000000000000000000000000000000000..aead43de364cd1cc107d5fc3a4ea6fea7d7bd01c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js b/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js new file mode 100644 index 0000000000000000000000000000000000000000..d84e1e6fc2b75131d35429a0955a7edd3e8dabf7 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js @@ -0,0 +1,8 @@ +import _typeof from "./typeof.js"; +import assertThisInitialized from "./assertThisInitialized.js"; +function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); + return assertThisInitialized(t); +} +export { _possibleConstructorReturn as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/readOnlyError.js b/node_modules/@babel/runtime/helpers/esm/readOnlyError.js new file mode 100644 index 0000000000000000000000000000000000000000..fcc3e339cbeb19f73a821b52903b3c71abf2e4d2 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/readOnlyError.js @@ -0,0 +1,4 @@ +function _readOnlyError(r) { + throw new TypeError('"' + r + '" is read-only'); +} +export { _readOnlyError as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/regenerator.js b/node_modules/@babel/runtime/helpers/esm/regenerator.js new file mode 100644 index 0000000000000000000000000000000000000000..6f2f2a17df26bb7962c9f25450a13622e2a5a84a --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/regenerator.js @@ -0,0 +1,89 @@ +import regeneratorDefine from "./regeneratorDefine.js"; +function _regenerator() { + /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ + var e, + t, + r = "function" == typeof Symbol ? Symbol : {}, + n = r.iterator || "@@iterator", + o = r.toStringTag || "@@toStringTag"; + function i(r, n, o, i) { + var c = n && n.prototype instanceof Generator ? n : Generator, + u = Object.create(c.prototype); + return regeneratorDefine(u, "_invoke", function (r, n, o) { + var i, + c, + u, + f = 0, + p = o || [], + y = !1, + G = { + p: 0, + n: 0, + v: e, + a: d, + f: d.bind(e, 4), + d: function d(t, r) { + return i = t, c = 0, u = e, G.n = r, a; + } + }; + function d(r, n) { + for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { + var o, + i = p[t], + d = G.p, + l = i[2]; + r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); + } + if (o || r > 1) return a; + throw y = !0, n; + } + return function (o, p, l) { + if (f > 1) throw TypeError("Generator is already running"); + for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { + i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); + try { + if (f = 2, i) { + if (c || (o = "next"), t = i[o]) { + if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); + if (!t.done) return t; + u = t.value, c < 2 && (c = 0); + } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); + i = e; + } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; + } catch (t) { + i = e, c = 1, u = t; + } finally { + f = 1; + } + } + return { + value: t, + done: y + }; + }; + }(r, o, i), !0), u; + } + var a = {}; + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + t = Object.getPrototypeOf; + var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () { + return this; + }), t), + u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); + function f(e) { + return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; + } + return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () { + return this; + }), regeneratorDefine(u, "toString", function () { + return "[object Generator]"; + }), (_regenerator = function _regenerator() { + return { + w: i, + m: f + }; + })(); +} +export { _regenerator as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js b/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js new file mode 100644 index 0000000000000000000000000000000000000000..f73d4e65c126bd030570a77169ea133f426266d7 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js @@ -0,0 +1,8 @@ +import regeneratorAsyncGen from "./regeneratorAsyncGen.js"; +function _regeneratorAsync(n, e, r, t, o) { + var a = regeneratorAsyncGen(n, e, r, t, o); + return a.next().then(function (n) { + return n.done ? n.value : a.next(); + }); +} +export { _regeneratorAsync as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js b/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js new file mode 100644 index 0000000000000000000000000000000000000000..1932bcde40dc830e4c6c941cfb52ff88e2896117 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js @@ -0,0 +1,6 @@ +import regenerator from "./regenerator.js"; +import regeneratorAsyncIterator from "./regeneratorAsyncIterator.js"; +function _regeneratorAsyncGen(r, e, t, o, n) { + return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); +} +export { _regeneratorAsyncGen as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js b/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js new file mode 100644 index 0000000000000000000000000000000000000000..90d84cc70f5b9e257dafb128ded4b917bb92fcea --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js @@ -0,0 +1,33 @@ +import OverloadYield from "./OverloadYield.js"; +import regeneratorDefine from "./regeneratorDefine.js"; +function AsyncIterator(t, e) { + function n(r, o, i, f) { + try { + var c = t[r](o), + u = c.value; + return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { + n("next", t, i, f); + }, function (t) { + n("throw", t, i, f); + }) : e.resolve(u).then(function (t) { + c.value = t, i(c); + }, function (t) { + return n("throw", t, i, f); + }); + } catch (t) { + f(t); + } + } + var r; + this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { + return this; + })), regeneratorDefine(this, "_invoke", function (t, o, i) { + function f() { + return new e(function (e, r) { + n(t, i, e, r); + }); + } + return r = r ? r.then(f, f) : f(); + }, !0); +} +export { AsyncIterator as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js b/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js new file mode 100644 index 0000000000000000000000000000000000000000..71404706d25688dd0b08fcdccccb0dbc05285d12 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js @@ -0,0 +1,22 @@ +function _regeneratorDefine(e, r, n, t) { + var i = Object.defineProperty; + try { + i({}, "", {}); + } catch (e) { + i = 0; + } + _regeneratorDefine = function regeneratorDefine(e, r, n, t) { + function o(r, n) { + _regeneratorDefine(e, r, function (e) { + return this._invoke(r, n, e); + }); + } + r ? i ? i(e, r, { + value: n, + enumerable: !t, + configurable: !t, + writable: !t + }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); + }, _regeneratorDefine(e, r, n, t); +} +export { _regeneratorDefine as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js b/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js new file mode 100644 index 0000000000000000000000000000000000000000..5d0d48ba8189aaa8f8b7f310b015e3c512a5f15c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js @@ -0,0 +1,10 @@ +function _regeneratorKeys(e) { + var n = Object(e), + r = []; + for (var t in n) r.unshift(t); + return function e() { + for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; + return e.done = !0, e; + }; +} +export { _regeneratorKeys as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js b/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js new file mode 100644 index 0000000000000000000000000000000000000000..335018848e8a35b5827e7a6afa154cb95eaa4075 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js @@ -0,0 +1,77 @@ +import OverloadYield from "./OverloadYield.js"; +import regenerator from "./regenerator.js"; +import regeneratorAsync from "./regeneratorAsync.js"; +import regeneratorAsyncGen from "./regeneratorAsyncGen.js"; +import regeneratorAsyncIterator from "./regeneratorAsyncIterator.js"; +import regeneratorKeys from "./regeneratorKeys.js"; +import regeneratorValues from "./regeneratorValues.js"; +function _regeneratorRuntime() { + "use strict"; + + var r = regenerator(), + e = r.m(_regeneratorRuntime), + t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; + function n(r) { + var e = "function" == typeof r && r.constructor; + return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); + } + var o = { + "throw": 1, + "return": 2, + "break": 3, + "continue": 3 + }; + function a(r) { + var e, t; + return function (n) { + e || (e = { + stop: function stop() { + return t(n.a, 2); + }, + "catch": function _catch() { + return n.v; + }, + abrupt: function abrupt(r, e) { + return t(n.a, o[r], e); + }, + delegateYield: function delegateYield(r, o, a) { + return e.resultName = o, t(n.d, regeneratorValues(r), a); + }, + finish: function finish(r) { + return t(n.f, r); + } + }, t = function t(r, _t, o) { + n.p = e.prev, n.n = e.next; + try { + return r(_t, o); + } finally { + e.next = n.n; + } + }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; + try { + return r.call(this, e); + } finally { + n.p = e.prev, n.n = e.next; + } + }; + } + return (_regeneratorRuntime = function _regeneratorRuntime() { + return { + wrap: function wrap(e, t, n, o) { + return r.w(a(e), t, n, o && o.reverse()); + }, + isGeneratorFunction: n, + mark: r.m, + awrap: function awrap(r, e) { + return new OverloadYield(r, e); + }, + AsyncIterator: regeneratorAsyncIterator, + async: function async(r, e, t, o, u) { + return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); + }, + keys: regeneratorKeys, + values: regeneratorValues + }; + })(); +} +export { _regeneratorRuntime as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js b/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js new file mode 100644 index 0000000000000000000000000000000000000000..99968525d9e65807c22c0d5637c32b3e92b374ca --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js @@ -0,0 +1,19 @@ +import _typeof from "./typeof.js"; +function _regeneratorValues(e) { + if (null != e) { + var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], + r = 0; + if (t) return t.call(e); + if ("function" == typeof e.next) return e; + if (!isNaN(e.length)) return { + next: function next() { + return e && r >= e.length && (e = void 0), { + value: e && e[r++], + done: !e + }; + } + }; + } + throw new TypeError(_typeof(e) + " is not iterable"); +} +export { _regeneratorValues as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/set.js b/node_modules/@babel/runtime/helpers/esm/set.js new file mode 100644 index 0000000000000000000000000000000000000000..ed0a80399cd4aa16268483777849aa02f1801df2 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/set.js @@ -0,0 +1,22 @@ +import superPropBase from "./superPropBase.js"; +import defineProperty from "./defineProperty.js"; +function set(e, r, t, o) { + return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { + var f, + i = superPropBase(e, r); + if (i) { + if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; + if (!f.writable) return !1; + } + if (f = Object.getOwnPropertyDescriptor(o, r)) { + if (!f.writable) return !1; + f.value = t, Object.defineProperty(o, r, f); + } else defineProperty(o, r, t); + return !0; + }, set(e, r, t, o); +} +function _set(e, r, t, o, f) { + if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); + return t; +} +export { _set as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/setFunctionName.js b/node_modules/@babel/runtime/helpers/esm/setFunctionName.js new file mode 100644 index 0000000000000000000000000000000000000000..82213cea5a90430852e2bb11873da7e0d64ca4e0 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/setFunctionName.js @@ -0,0 +1,12 @@ +import _typeof from "./typeof.js"; +function setFunctionName(e, t, n) { + "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); + try { + Object.defineProperty(e, "name", { + configurable: !0, + value: n ? n + " " + t : t + }); + } catch (e) {} + return e; +} +export { setFunctionName as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js b/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js new file mode 100644 index 0000000000000000000000000000000000000000..c30983c961e1b7292b01494c54934f571aa2873d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js @@ -0,0 +1,6 @@ +function _setPrototypeOf(t, e) { + return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { + return t.__proto__ = e, t; + }, _setPrototypeOf(t, e); +} +export { _setPrototypeOf as default }; \ No newline at end of file