diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
index c06d916815..5caa944d6c 100644
--- a/node_modules/.package-lock.json
+++ b/node_modules/.package-lock.json
@@ -350,50 +350,6 @@
"node": ">= 8"
}
},
- "node_modules/@rollup/plugin-commonjs": {
- "version": "17.1.0",
- "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-17.1.0.tgz",
- "integrity": "sha512-PoMdXCw0ZyvjpCMT5aV4nkL0QywxP29sODQsSGeDpr/oI49Qq9tRtAsb/LbYbDzFlOydVEqHmmZWFtXJEAX9ew==",
- "dev": true,
- "dependencies": {
- "@rollup/pluginutils": "^3.1.0",
- "commondir": "^1.0.1",
- "estree-walker": "^2.0.1",
- "glob": "^7.1.6",
- "is-reference": "^1.2.1",
- "magic-string": "^0.25.7",
- "resolve": "^1.17.0"
- },
- "engines": {
- "node": ">= 8.0.0"
- }
- },
- "node_modules/@rollup/pluginutils": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz",
- "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==",
- "dev": true,
- "dependencies": {
- "@types/estree": "0.0.39",
- "estree-walker": "^1.0.1",
- "picomatch": "^2.2.2"
- },
- "engines": {
- "node": ">= 8.0.0"
- }
- },
- "node_modules/@rollup/pluginutils/node_modules/@types/estree": {
- "version": "0.0.39",
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz",
- "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==",
- "dev": true
- },
- "node_modules/@rollup/pluginutils/node_modules/estree-walker": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz",
- "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==",
- "dev": true
- },
"node_modules/@sinonjs/commons": {
"version": "1.8.2",
"resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.2.tgz",
@@ -987,9 +943,9 @@
}
},
"node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.1.0.tgz",
- "integrity": "sha512-TrBhfJkFxA+ER+ew2U2/fHbebhLT/l/2pRk0hfj9KusXUuRXd2v0R58AfaZK9VXDQ4TogOSEmICVrQAA3zFnHQ==",
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.1.1.tgz",
+ "integrity": "sha512-clDjivHqWGXi7u+0d2r2sBi4Ie6VLEAzWMIkvJLnDmxoOhBYOTfzGbOQBA32THHm11/LiJbd01tJUpJsbshSWQ==",
"dev": true,
"dependencies": {
"estree-walker": "^2.0.1",
@@ -997,9 +953,6 @@
},
"engines": {
"node": ">= 8.0.0"
- },
- "peerDependencies": {
- "rollup": "^1.20.0||^2.0.0"
}
},
"node_modules/abbrev": {
@@ -1675,12 +1628,6 @@
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
"dev": true
},
- "node_modules/commondir": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
- "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
- "dev": true
- },
"node_modules/component-emitter": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
@@ -2278,6 +2225,27 @@
"node": ">=8.0.0"
}
},
+ "node_modules/engine.io/node_modules/ws": {
+ "version": "7.4.6",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz",
+ "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==",
+ "dev": true,
+ "engines": {
+ "node": ">=8.3.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": "^5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
"node_modules/enquirer": {
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz",
@@ -3899,15 +3867,6 @@
"node": ">=8"
}
},
- "node_modules/is-reference": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz",
- "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==",
- "dev": true,
- "dependencies": {
- "@types/estree": "*"
- }
- },
"node_modules/is-regex": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz",
@@ -5820,6 +5779,27 @@
"node": ">=8"
}
},
+ "node_modules/puppeteer/node_modules/ws": {
+ "version": "7.4.6",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz",
+ "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==",
+ "dev": true,
+ "engines": {
+ "node": ">=8.3.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": "^5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
"node_modules/qjobs": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz",
@@ -6210,9 +6190,9 @@
}
},
"node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.1.0.tgz",
- "integrity": "sha512-TrBhfJkFxA+ER+ew2U2/fHbebhLT/l/2pRk0hfj9KusXUuRXd2v0R58AfaZK9VXDQ4TogOSEmICVrQAA3zFnHQ==",
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.1.1.tgz",
+ "integrity": "sha512-clDjivHqWGXi7u+0d2r2sBi4Ie6VLEAzWMIkvJLnDmxoOhBYOTfzGbOQBA32THHm11/LiJbd01tJUpJsbshSWQ==",
"dev": true,
"dependencies": {
"estree-walker": "^2.0.1",
@@ -6220,9 +6200,6 @@
},
"engines": {
"node": ">= 8.0.0"
- },
- "peerDependencies": {
- "rollup": "^1.20.0||^2.0.0"
}
},
"node_modules/rollup-plugin-terser": {
@@ -6466,9 +6443,9 @@
}
},
"node_modules/socket.io/node_modules/@types/node": {
- "version": "14.17.5",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.5.tgz",
- "integrity": "sha512-bjqH2cX/O33jXT/UmReo2pM7DIJREPMnarixbQ57DOOzzFaI6D2+IcwaJQaJpv0M1E9TIhPCYVxrkcityLjlqA==",
+ "version": "14.17.6",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.6.tgz",
+ "integrity": "sha512-iBxsxU7eswQDGhlr3AiamBxOssaYxbM+NKXVil8jg9yFXvrfEFbDumLD/2dMTB+zYyg7w+Xjt8yuxfdbUHAtcQ==",
"dev": true
},
"node_modules/source-map": {
@@ -7072,9 +7049,9 @@
}
},
"node_modules/table/node_modules/ajv": {
- "version": "8.6.1",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.1.tgz",
- "integrity": "sha512-42VLtQUOLefAvKFAQIxIZDaThq6om/PrfP0CYk3/vn+y4BMNkKnbli8ON2QCiHov4KkzOSJ/xSoBJdayiiYvVQ==",
+ "version": "8.6.2",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.2.tgz",
+ "integrity": "sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==",
"dev": true,
"dependencies": {
"fast-deep-equal": "^3.1.1",
@@ -7622,9 +7599,9 @@
}
},
"node_modules/ws": {
- "version": "7.4.6",
- "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz",
- "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==",
+ "version": "7.5.3",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz",
+ "integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==",
"dev": true,
"engines": {
"node": ">=8.3.0"
diff --git a/node_modules/@rollup/plugin-commonjs/CHANGELOG.md b/node_modules/@rollup/plugin-commonjs/CHANGELOG.md
deleted file mode 100644
index 62e8adb80c..0000000000
--- a/node_modules/@rollup/plugin-commonjs/CHANGELOG.md
+++ /dev/null
@@ -1,518 +0,0 @@
-# @rollup/plugin-commonjs ChangeLog
-
-## v17.1.0
-
-_2021-01-29_
-
-### Bugfixes
-
-- fix: correctly replace shorthand `require` (#764)
-
-### Features
-
-- feature: load dynamic commonjs modules from es `import` (#766)
-- feature: support cache/resolve access inside dynamic modules (#728)
-- feature: allow keeping `require` calls inside try-catch (#729)
-
-### Updates
-
-- chore: fix lint error (#719)
-
-## v17.0.0
-
-_2020-11-30_
-
-### Breaking Changes
-
-- feat!: reconstruct real es module from \_\_esModule marker (#537)
-
-## v16.0.0
-
-_2020-10-27_
-
-### Breaking Changes
-
-- feat!: Expose cjs detection and support offline caching (#604)
-
-### Bugfixes
-
-- fix: avoid wrapping `commonjsRegister` call in `createCommonjsModule(...)` (#602)
-- fix: register dynamic modules when a different loader (i.e typescript) loads the entry file (#599)
-- fix: fixed access to node_modules dynamic module with subfolder (i.e 'logform/json') (#601)
-
-### Features
-
-- feat: pass type of import to node-resolve (#611)
-
-## v15.1.0
-
-_2020-09-21_
-
-### Features
-
-- feat: inject \_\_esModule marker into ES namespaces and add Object prototype (#552)
-- feat: add requireReturnsDefault to types (#579)
-
-## v15.0.0
-
-_2020-08-13_
-
-### Breaking Changes
-
-- feat!: return the namespace by default when requiring ESM (#507)
-- fix!: fix interop when importing CJS that is transpiled ESM from an actual ESM (#501)
-
-### Bugfixes
-
-- fix: add .cjs to default file extensions. (#524)
-
-### Updates
-
-- chore: update dependencies (fe399e2)
-
-## v14.0.0
-
-_2020-07-13_
-
-### Release Notes
-
-This restores the fixes from v13.0.1, but as a semver compliant major version.
-
-## v13.0.2
-
-_2020-07-13_
-
-### Rollback
-
-Rolls back breaking change in v13.0.1 whereby the exported `unwrapExports` method was removed.
-
-## v13.0.1
-
-_2020-07-12_
-
-### Bugfixes
-
-- fix: prevent rewrite require.resolve (#446)
-- fix: Support \_\_esModule packages with a default export (#465)
-
-## v13.0.0
-
-_2020-06-05_
-
-### Breaking Changes
-
-- fix!: remove namedExports from types (#410)
-- fix!: do not create fake named exports (#427)
-
-### Bugfixes
-
-- fix: \_\_moduleExports in multi entry + inter dependencies (#415)
-
-## v12.0.0
-
-_2020-05-20_
-
-### Breaking Changes
-
-- feat: add kill-switch for mixed es-cjs modules (#358)
-- feat: set syntheticNamedExports for commonjs modules (#149)
-
-### Bugfixes
-
-- fix: expose the virtual `require` function on mock `module`. fixes #307 (#326)
-- fix: improved shouldWrap logic. fixes #304 (#355)
-
-### Features
-
-- feat: support for explicit module.require calls. fixes #310 (#325)
-
-## v11.1.0
-
-_2020-04-12_
-
-### Bugfixes
-
-- fix: produce legal variable names from filenames containing hyphens. (#201)
-
-### Features
-
-- feat: support dynamic require (#206)
-- feat: export properties defined using Object.defineProperty(exports, ..) (#222)
-
-### Updates
-
-- chore: snapshot mismatch running tests before publish (d6bbfdd)
-- test: add snapshots to all "function" tests (#218)
-
-## v11.0.2
-
-_2020-02-01_
-
-### Updates
-
-- docs: fix link for plugin-node-resolve (#170)
-- chore: update dependencies (5405eea)
-- chore: remove jsnext:main (#152)
-
-## v11.0.1
-
-_2020-01-04_
-
-### Bugfixes
-
-- fix: module.exports object spread (#121)
-
-## 11.0.0
-
-_2019-12-13_
-
-- **Breaking:** Minimum compatible Rollup version is 1.20.0
-- **Breaking:** Minimum supported Node version is 8.0.0
-- Published as @rollup/plugin-commonjs
-
-## 10.1.0
-
-_2019-08-27_
-
-- Normalize ids before looking up in named export map ([#406](https://github.com/rollup/rollup-plugin-commonjs/issues/406))
-- Update README.md with note on symlinks ([#405](https://github.com/rollup/rollup-plugin-commonjs/issues/405))
-
-## 10.0.2
-
-_2019-08-03_
-
-- Support preserveSymlinks: false ([#401](https://github.com/rollup/rollup-plugin-commonjs/issues/401))
-
-## 10.0.1
-
-_2019-06-27_
-
-- Make tests run with Node 6 again and update dependencies ([#389](https://github.com/rollup/rollup-plugin-commonjs/issues/389))
-- Handle builtins appropriately for resolve 1.11.0 ([#395](https://github.com/rollup/rollup-plugin-commonjs/issues/395))
-
-## 10.0.0
-
-_2019-05-15_
-
-- Use new Rollup@1.12 context functions, fix issue when resolveId returns an object ([#387](https://github.com/rollup/rollup-plugin-commonjs/issues/387))
-
-## 9.3.4
-
-_2019-04-04_
-
-- Make "extensions" optional ([#384](https://github.com/rollup/rollup-plugin-commonjs/issues/384))
-- Use same typing for include and exclude properties ([#385](https://github.com/rollup/rollup-plugin-commonjs/issues/385))
-
-## 9.3.3
-
-_2019-04-04_
-
-- Remove colon from module prefixes ([#371](https://github.com/rollup/rollup-plugin-commonjs/issues/371))
-
-## 9.3.2
-
-_2019-04-04_
-
-- Use shared extractAssignedNames, fix destructuring issue ([#303](https://github.com/rollup/rollup-plugin-commonjs/issues/303))
-
-## 9.3.1
-
-_2019-04-04_
-
-- Include typings in release ([#382](https://github.com/rollup/rollup-plugin-commonjs/issues/382))
-
-## 9.3.0
-
-_2019-04-03_
-
-- Add TypeScript types ([#363](https://github.com/rollup/rollup-plugin-commonjs/issues/363))
-
-## 9.2.3
-
-_2019-04-02_
-
-- Improve support for ES3 browsers ([#364](https://github.com/rollup/rollup-plugin-commonjs/issues/364))
-- Add note about monorepo usage to readme ([#372](https://github.com/rollup/rollup-plugin-commonjs/issues/372))
-- Add .js extension to generated helper file ([#373](https://github.com/rollup/rollup-plugin-commonjs/issues/373))
-
-## 9.2.2
-
-_2019-03-25_
-
-- Handle array destructuring assignment ([#379](https://github.com/rollup/rollup-plugin-commonjs/issues/379))
-
-## 9.2.1
-
-_2019-02-23_
-
-- Use correct context when manually resolving ids ([#370](https://github.com/rollup/rollup-plugin-commonjs/issues/370))
-
-## 9.2.0
-
-_2018-10-10_
-
-- Fix missing default warning, produce better code when importing known ESM default exports ([#349](https://github.com/rollup/rollup-plugin-commonjs/issues/349))
-- Refactor code and add prettier ([#346](https://github.com/rollup/rollup-plugin-commonjs/issues/346))
-
-## 9.1.8
-
-_2018-09-18_
-
-- Ignore virtual modules created by other plugins ([#327](https://github.com/rollup/rollup-plugin-commonjs/issues/327))
-- Add "location" and "process" to reserved words ([#330](https://github.com/rollup/rollup-plugin-commonjs/issues/330))
-
-## 9.1.6
-
-_2018-08-24_
-
-- Keep commonJS detection between instantiations ([#338](https://github.com/rollup/rollup-plugin-commonjs/issues/338))
-
-## 9.1.5
-
-_2018-08-09_
-
-- Handle object form of input ([#329](https://github.com/rollup/rollup-plugin-commonjs/issues/329))
-
-## 9.1.4
-
-_2018-07-27_
-
-- Make "from" a reserved word ([#320](https://github.com/rollup/rollup-plugin-commonjs/issues/320))
-
-## 9.1.3
-
-_2018-04-30_
-
-- Fix a caching issue ([#316](https://github.com/rollup/rollup-plugin-commonjs/issues/316))
-
-## 9.1.2
-
-_2018-04-30_
-
-- Re-publication of 9.1.0
-
-## 9.1.1
-
-_2018-04-30_
-
-- Fix ordering of modules when using rollup 0.58 ([#302](https://github.com/rollup/rollup-plugin-commonjs/issues/302))
-
-## 9.1.0
-
-- Do not automatically wrap modules with return statements in top level arrow functions ([#302](https://github.com/rollup/rollup-plugin-commonjs/issues/302))
-
-## 9.0.0
-
-- Make rollup a peer dependency with a version range ([#300](https://github.com/rollup/rollup-plugin-commonjs/issues/300))
-
-## 8.4.1
-
-- Re-release of 8.3.0 as #287 was actually a breaking change
-
-## 8.4.0
-
-- Better handle non-CJS files that contain CJS keywords ([#285](https://github.com/rollup/rollup-plugin-commonjs/issues/285))
-- Use rollup's plugin context`parse` function ([#287](https://github.com/rollup/rollup-plugin-commonjs/issues/287))
-- Improve error handling ([#288](https://github.com/rollup/rollup-plugin-commonjs/issues/288))
-
-## 8.3.0
-
-- Handle multiple entry points ([#283](https://github.com/rollup/rollup-plugin-commonjs/issues/283))
-- Extract named exports from exported object literals ([#272](https://github.com/rollup/rollup-plugin-commonjs/issues/272))
-- Fix when `options.external` is modified by other plugins ([#264](https://github.com/rollup/rollup-plugin-commonjs/issues/264))
-- Recognize static template strings in require statements ([#271](https://github.com/rollup/rollup-plugin-commonjs/issues/271))
-
-## 8.2.4
-
-- Don't import default from ES modules that don't export default ([#206](https://github.com/rollup/rollup-plugin-commonjs/issues/206))
-
-## 8.2.3
-
-- Prevent duplicate default exports ([#230](https://github.com/rollup/rollup-plugin-commonjs/pull/230))
-- Only include default export when it exists ([#226](https://github.com/rollup/rollup-plugin-commonjs/pull/226))
-- Deconflict `require` aliases ([#232](https://github.com/rollup/rollup-plugin-commonjs/issues/232))
-
-## 8.2.1
-
-- Fix magic-string deprecation warning
-
-## 8.2.0
-
-- Avoid using `index` as a variable name ([#208](https://github.com/rollup/rollup-plugin-commonjs/pull/208))
-
-## 8.1.1
-
-- Compatibility with 0.48 ([#220](https://github.com/rollup/rollup-plugin-commonjs/issues/220))
-
-## 8.1.0
-
-- Handle `options.external` correctly ([#212](https://github.com/rollup/rollup-plugin-commonjs/pull/212))
-- Support top-level return ([#195](https://github.com/rollup/rollup-plugin-commonjs/pull/195))
-
-## 8.0.2
-
-- Fix another `var` rewrite bug ([#181](https://github.com/rollup/rollup-plugin-commonjs/issues/181))
-
-## 8.0.1
-
-- Remove declarators within a var declaration correctly ([#179](https://github.com/rollup/rollup-plugin-commonjs/issues/179))
-
-## 8.0.0
-
-- Prefer the names dependencies are imported by for the common `var foo = require('foo')` pattern ([#176](https://github.com/rollup/rollup-plugin-commonjs/issues/176))
-
-## 7.1.0
-
-- Allow certain `require` statements to pass through unmolested ([#174](https://github.com/rollup/rollup-plugin-commonjs/issues/174))
-
-## 7.0.2
-
-- Handle duplicate default exports ([#158](https://github.com/rollup/rollup-plugin-commonjs/issues/158))
-
-## 7.0.1
-
-- Fix exports with parentheses ([#168](https://github.com/rollup/rollup-plugin-commonjs/issues/168))
-
-## 7.0.0
-
-- Rewrite `typeof module`, `typeof module.exports` and `typeof exports` as `'object'` ([#151](https://github.com/rollup/rollup-plugin-commonjs/issues/151))
-
-## 6.0.1
-
-- Don't overwrite globals ([#127](https://github.com/rollup/rollup-plugin-commonjs/issues/127))
-
-## 6.0.0
-
-- Rewrite top-level `define` as `undefined`, so AMD-first UMD blocks do not cause breakage ([#144](https://github.com/rollup/rollup-plugin-commonjs/issues/144))
-- Support ES2017 syntax ([#132](https://github.com/rollup/rollup-plugin-commonjs/issues/132))
-- Deconflict exported reserved keywords ([#116](https://github.com/rollup/rollup-plugin-commonjs/issues/116))
-
-## 5.0.5
-
-- Fix parenthesis wrapped exports ([#120](https://github.com/rollup/rollup-plugin-commonjs/issues/120))
-
-## 5.0.4
-
-- Ensure named exports are added to default export in optimised modules ([#112](https://github.com/rollup/rollup-plugin-commonjs/issues/112))
-
-## 5.0.3
-
-- Respect custom `namedExports` in optimised modules ([#35](https://github.com/rollup/rollup-plugin-commonjs/issues/35))
-
-## 5.0.2
-
-- Replace `require` (outside call expressions) with `commonjsRequire` helper ([#77](https://github.com/rollup/rollup-plugin-commonjs/issues/77), [#83](https://github.com/rollup/rollup-plugin-commonjs/issues/83))
-
-## 5.0.1
-
-- Deconflict against globals ([#84](https://github.com/rollup/rollup-plugin-commonjs/issues/84))
-
-## 5.0.0
-
-- Optimise modules that don't need to be wrapped in a function ([#106](https://github.com/rollup/rollup-plugin-commonjs/pull/106))
-- Ignore modules containing `import` and `export` statements ([#96](https://github.com/rollup/rollup-plugin-commonjs/pull/96))
-
-## 4.1.0
-
-- Ignore dead branches ([#93](https://github.com/rollup/rollup-plugin-commonjs/issues/93))
-
-## 4.0.1
-
-- Fix `ignoreGlobal` option ([#86](https://github.com/rollup/rollup-plugin-commonjs/pull/86))
-
-## 4.0.0
-
-- Better interop and smaller output ([#92](https://github.com/rollup/rollup-plugin-commonjs/pull/92))
-
-## 3.3.1
-
-- Deconflict export and local module ([rollup/rollup#554](https://github.com/rollup/rollup/issues/554))
-
-## 3.3.0
-
-- Keep the order of execution for require calls ([#43](https://github.com/rollup/rollup-plugin-commonjs/pull/43))
-- Use interopDefault as helper ([#42](https://github.com/rollup/rollup-plugin-commonjs/issues/42))
-
-## 3.2.0
-
-- Use named exports as a function when no default export is defined ([#524](https://github.com/rollup/rollup/issues/524))
-
-## 3.1.0
-
-- Replace `typeof require` with `'function'` ([#38](https://github.com/rollup/rollup-plugin-commonjs/issues/38))
-- Don't attempt to resolve entry file relative to importer ([#63](https://github.com/rollup/rollup-plugin-commonjs/issues/63))
-
-## 3.0.2
-
-- Handle multiple references to `global`
-
-## 3.0.1
-
-- Return a `name`
-
-## 3.0.0
-
-- Make `transform` stateless ([#71](https://github.com/rollup/rollup-plugin-commonjs/pull/71))
-- Support web worker `global` ([#50](https://github.com/rollup/rollup-plugin-commonjs/issues/50))
-- Ignore global with `options.ignoreGlobal` ([#48](https://github.com/rollup/rollup-plugin-commonjs/issues/48))
-
-## 2.2.1
-
-- Prevent false positives with `namedExports` ([#36](https://github.com/rollup/rollup-plugin-commonjs/issues/36))
-
-## 2.2.0
-
-- Rewrite top-level `this` expressions to mean the same as `global` ([#31](https://github.com/rollup/rollup-plugin-commonjs/issues/31))
-
-## 2.1.0
-
-- Optimised module wrappers ([#20](https://github.com/rollup/rollup-plugin-commonjs/pull/20))
-- Allow control over named exports via `options.namedExports` ([#18](https://github.com/rollup/rollup-plugin-commonjs/issues/18))
-- Handle bare imports correctly ([#23](https://github.com/rollup/rollup-plugin-commonjs/issues/23))
-- Blacklist all reserved words as export names ([#21](https://github.com/rollup/rollup-plugin-commonjs/issues/21))
-- Configure allowed file extensions via `options.extensions` ([#27](https://github.com/rollup/rollup-plugin-commonjs/pull/27))
-
-## 2.0.0
-
-- Support for transpiled modules – `exports.default` is used as the default export in place of `module.exports`, if applicable, and `__esModule` is not exported ([#16](https://github.com/rollup/rollup-plugin-commonjs/pull/16))
-
-## 1.4.0
-
-- Generate sourcemaps by default
-
-## 1.3.0
-
-- Handle references to `global` ([#6](https://github.com/rollup/rollup-plugin-commonjs/issues/6))
-
-## 1.2.0
-
-- Generate named exports where possible ([#5](https://github.com/rollup/rollup-plugin-commonjs/issues/5))
-- Handle shadowed `require`/`module`/`exports`
-
-## 1.1.0
-
-- Handle dots in filenames ([#3](https://github.com/rollup/rollup-plugin-commonjs/issues/3))
-- Wrap modules in IIFE for more readable output
-
-## 1.0.0
-
-- Stable release, now that Rollup supports plugins
-
-## 0.2.1
-
-- Allow mixed CommonJS/ES6 imports/exports
-- Use `var` instead of `let`
-
-## 0.2.0
-
-- Sourcemap support
-- Support `options.include` and `options.exclude`
-- Bail early if module is obviously not a CommonJS module
-
-## 0.1.1
-
-Add dist files to package (whoops!)
-
-## 0.1.0
-
-- First release
diff --git a/node_modules/@rollup/plugin-commonjs/LICENSE b/node_modules/@rollup/plugin-commonjs/LICENSE
deleted file mode 100644
index 5e46702cbd..0000000000
--- a/node_modules/@rollup/plugin-commonjs/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/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/@rollup/plugin-commonjs/README.md b/node_modules/@rollup/plugin-commonjs/README.md
deleted file mode 100644
index dd3bddd7e2..0000000000
--- a/node_modules/@rollup/plugin-commonjs/README.md
+++ /dev/null
@@ -1,346 +0,0 @@
-[npm]: https://img.shields.io/npm/v/@rollup/plugin-commonjs
-[npm-url]: https://www.npmjs.com/package/@rollup/plugin-commonjs
-[size]: https://packagephobia.now.sh/badge?p=@rollup/plugin-commonjs
-[size-url]: https://packagephobia.now.sh/result?p=@rollup/plugin-commonjs
-
-[![npm][npm]][npm-url]
-[![size][size]][size-url]
-[](https://liberamanifesto.com)
-
-# @rollup/plugin-commonjs
-
-🍣 A Rollup plugin to convert CommonJS modules to ES6, so they can be included in a Rollup bundle
-
-## Requirements
-
-This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+.
-
-## Install
-
-Using npm:
-
-```bash
-npm install @rollup/plugin-commonjs --save-dev
-```
-
-## Usage
-
-Create a `rollup.config.js` [configuration file](https://www.rollupjs.org/guide/en/#configuration-files) and import the plugin:
-
-```js
-import commonjs from '@rollup/plugin-commonjs';
-
-export default {
- input: 'src/index.js',
- output: {
- dir: 'output',
- format: 'cjs'
- },
- plugins: [commonjs()]
-};
-```
-
-Then call `rollup` either via the [CLI](https://www.rollupjs.org/guide/en/#command-line-reference) or the [API](https://www.rollupjs.org/guide/en/#javascript-api).
-
-## Options
-
-### `dynamicRequireTargets`
-
-Type: `string | string[]`
-Default: `[]`
-
-Some modules contain dynamic `require` calls, or require modules that contain circular dependencies, which are not handled well by static imports.
-Including those modules as `dynamicRequireTargets` will simulate a CommonJS (NodeJS-like) environment for them with support for dynamic and circular dependencies.
-
-_Note: In extreme cases, this feature may result in some paths being rendered as absolute in the final bundle. The plugin tries to avoid exposing paths from the local machine, but if you are `dynamicRequirePaths` with paths that are far away from your project's folder, that may require replacing strings like `"/Users/John/Desktop/foo-project/"` -> `"/"`._
-
-Example:
-
-```js
-commonjs({
- dynamicRequireTargets: [
- // include using a glob pattern (either a string or an array of strings)
- 'node_modules/logform/*.js',
-
- // exclude files that are known to not be required dynamically, this allows for better optimizations
- '!node_modules/logform/index.js',
- '!node_modules/logform/format.js',
- '!node_modules/logform/levels.js',
- '!node_modules/logform/browser.js'
- ]
-});
-```
-
-### `exclude`
-
-Type: `string | string[]`
-Default: `null`
-
-A [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns, which specifies the files in the build the plugin should _ignore_. By default, all files with extensions other than those in `extensions` or `".cjs"` are ignored, but you can exclude additional files. See also the `include` option.
-
-### `include`
-
-Type: `string | string[]`
-Default: `null`
-
-A [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns, which specifies the files in the build the plugin should operate on. By default, all files with extension `".cjs"` or those in `extensions` are included, but you can narrow this list by only including specific files. These files will be analyzed and transpiled if either the analysis does not find ES module specific statements or `transformMixedEsModules` is `true`.
-
-### `extensions`
-
-Type: `string[]`
-Default: `['.js']`
-
-For extensionless imports, search for extensions other than .js in the order specified. Note that you need to make sure that non-JavaScript files are transpiled by another plugin first.
-
-### `ignoreGlobal`
-
-Type: `boolean`
-Default: `false`
-
-If true, uses of `global` won't be dealt with by this plugin.
-
-### `sourceMap`
-
-Type: `boolean`
-Default: `true`
-
-If false, skips source map generation for CommonJS modules. This will improve performance.
-
-### `transformMixedEsModules`
-
-Type: `boolean`
-Default: `false`
-
-Instructs the plugin whether to enable mixed module transformations. This is useful in scenarios with modules that contain a mix of ES `import` statements and CommonJS `require` expressions. Set to `true` if `require` calls should be transformed to imports in mixed modules, or `false` if the `require` expressions should survive the transformation. The latter can be important if the code contains environment detection, or you are coding for an environment with special treatment for `require` calls such as [ElectronJS](https://www.electronjs.org/). See also the "ignore" option.
-
-### `ignore`
-
-Type: `string[] | ((id: string) => boolean)`
-Default: `[]`
-
-Sometimes you have to leave require statements unconverted. Pass an array containing the IDs or an `id => boolean` function.
-
-### `ignoreTryCatch`
-
-Type: `boolean | 'remove' | string[] | ((id: string) => boolean)`
-Default: `false`
-
-In most cases, where `require` calls are inside a `try-catch` clause, they should be left unconverted as it requires an optional dependency that may or may not be installed beside the rolled up package.
-Due to the conversion of `require` to a static `import` - the call is hoisted to the top of the file, outside of the `try-catch` clause.
-
-- `true`: All `require` calls inside a `try` will be left unconverted.
-- `false`: All `require` calls inside a `try` will be converted as if the `try-catch` clause is not there.
-- `remove`: Remove all `require` calls from inside any `try` block.
-- `string[]`: Pass an array containing the IDs to left unconverted.
-- `((id: string) => boolean|'remove')`: Pass a function that control individual IDs.
-
-### `esmExternals`
-
-Type: `boolean | string[] | ((id: string) => boolean)`
-Default: `false`
-
-Controls how to render imports from external dependencies. By default, this plugin assumes that all external dependencies are CommonJS. This means they are rendered as default imports to be compatible with e.g. NodeJS where ES modules can only import a default export from a CommonJS dependency:
-
-```js
-// input
-const foo = require('foo');
-
-// output
-import foo from 'foo';
-```
-
-This is likely not desired for ES module dependencies: Here `require` should usually return the namespace to be compatible with how bundled modules are handled.
-
-If you set `esmExternals` to `true`, this plugins assumes that all external dependencies are ES modules and will adhere to the `requireReturnsDefault` option. If that option is not set, they will be rendered as namespace imports.
-
-You can also supply an array of ids to be treated as ES modules, or a function that will be passed each external id to determine if it is an ES module.
-
-### `requireReturnsDefault`
-
-Type: `boolean | "namespace" | "auto" | "preferred" | ((id: string) => boolean | "auto" | "preferred")`
-Default: `false`
-
-Controls what is returned when requiring an ES module from a CommonJS file. When using the `esmExternals` option, this will also apply to external modules. By default, this plugin will render those imports as namespace imports, i.e.
-
-```js
-// input
-const foo = require('foo');
-
-// output
-import * as foo from 'foo';
-```
-
-This is in line with how other bundlers handle this situation and is also the most likely behaviour in case Node should ever support this. However there are some situations where this may not be desired:
-
-- There is code in an external dependency that cannot be changed where a `require` statement expects the default export to be returned from an ES module.
-- If the imported module is in the same bundle, Rollup will generate a namespace object for the imported module which can increase bundle size unnecessarily:
-
- ```js
- // input: main.js
- const dep = require('./dep.js');
- console.log(dep.default);
-
- // input: dep.js
- export default 'foo';
-
- // output
- var dep = 'foo';
-
- var dep$1 = /*#__PURE__*/ Object.freeze({
- __proto__: null,
- default: dep
- });
-
- console.log(dep$1.default);
- ```
-
-For these situations, you can change Rollup's behaviour either globally or per module. To change it globally, set the `requireReturnsDefault` option to one of the following values:
-
-- `false`: This is the default, requiring an ES module returns its namespace. This is the only option that will also add a marker `__esModule: true` to the namespace to support interop patterns in CommonJS modules that are transpiled ES modules.
-
- ```js
- // input
- const dep = require('dep');
- console.log(dep);
-
- // output
- import * as dep$1 from 'dep';
-
- function getAugmentedNamespace(n) {
- var a = Object.defineProperty({}, '__esModule', { value: true });
- Object.keys(n).forEach(function (k) {
- var d = Object.getOwnPropertyDescriptor(n, k);
- Object.defineProperty(
- a,
- k,
- d.get
- ? d
- : {
- enumerable: true,
- get: function () {
- return n[k];
- }
- }
- );
- });
- return a;
- }
-
- var dep = /*@__PURE__*/ getAugmentedNamespace(dep$1);
-
- console.log(dep);
- ```
-
-- `"namespace"`: Like `false`, requiring an ES module returns its namespace, but the plugin does not add the `__esModule` marker and thus creates more efficient code. For external dependencies when using `esmExternals: true`, no additional interop code is generated.
-
- ```js
- // output
- import * as dep from 'dep';
-
- console.log(dep);
- ```
-
-- `"auto"`: This is complementary to how [`output.exports`](https://rollupjs.org/guide/en/#outputexports): `"auto"` works in Rollup: If a module has a default export and no named exports, requiring that module returns the default export. In all other cases, the namespace is returned. For external dependencies when using `esmExternals: true`, a corresponding interop helper is added:
-
- ```js
- // output
- import * as dep$1 from 'dep';
-
- function getDefaultExportFromNamespaceIfNotNamed(n) {
- return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
- }
-
- var dep = getDefaultExportFromNamespaceIfNotNamed(dep$1);
-
- console.log(dep);
- ```
-
-- `"preferred"`: If a module has a default export, requiring that module always returns the default export, no matter whether additional named exports exist. This is similar to how previous versions of this plugin worked. Again for external dependencies when using `esmExternals: true`, an interop helper is added:
-
- ```js
- // output
- import * as dep$1 from 'dep';
-
- function getDefaultExportFromNamespaceIfPresent(n) {
- return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
- }
-
- var dep = getDefaultExportFromNamespaceIfPresent(dep$1);
-
- console.log(dep);
- ```
-
-- `true`: This will always try to return the default export on require without checking if it actually exists. This can throw at build time if there is no default export. This is how external dependencies are handled when `esmExternals` is not used. The advantage over the other options is that, like `false`, this does not add an interop helper for external dependencies, keeping the code lean:
-
- ```js
- // output
- import dep from 'dep';
-
- console.log(dep);
- ```
-
-To change this for individual modules, you can supply a function for `requireReturnsDefault` instead. This function will then be called once for each required ES module or external dependency with the corresponding id and allows you to return different values for different modules.
-
-## Using with @rollup/plugin-node-resolve
-
-Since most CommonJS packages you are importing are probably dependencies in `node_modules`, you may need to use [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/master/packages/node-resolve):
-
-```js
-// rollup.config.js
-import resolve from '@rollup/plugin-node-resolve';
-import commonjs from '@rollup/plugin-commonjs';
-
-export default {
- input: 'main.js',
- output: {
- file: 'bundle.js',
- format: 'iife',
- name: 'MyModule'
- },
- plugins: [resolve(), commonjs()]
-};
-```
-
-## Usage with symlinks
-
-Symlinks are common in monorepos and are also created by the `npm link` command. Rollup with `@rollup/plugin-node-resolve` resolves modules to their real paths by default. So `include` and `exclude` paths should handle real paths rather than symlinked paths (e.g. `../common/node_modules/**` instead of `node_modules/**`). You may also use a regular expression for `include` that works regardless of base path. Try this:
-
-```js
-commonjs({
- include: /node_modules/
-});
-```
-
-Whether symlinked module paths are [realpathed](http://man7.org/linux/man-pages/man3/realpath.3.html) or preserved depends on Rollup's `preserveSymlinks` setting, which is false by default, matching Node.js' default behavior. Setting `preserveSymlinks` to true in your Rollup config will cause `import` and `export` to match based on symlinked paths instead.
-
-## Strict mode
-
-ES modules are _always_ parsed in strict mode. That means that certain non-strict constructs (like octal literals) will be treated as syntax errors when Rollup parses modules that use them. Some older CommonJS modules depend on those constructs, and if you depend on them your bundle will blow up. There's basically nothing we can do about that.
-
-Luckily, there is absolutely no good reason _not_ to use strict mode for everything — so the solution to this problem is to lobby the authors of those modules to update them.
-
-## Inter-plugin-communication
-
-This plugin exposes the result of its CommonJS file type detection for other plugins to use. You can access it via `this.getModuleInfo` or the `moduleParsed` hook:
-
-```js
-function cjsDetectionPlugin() {
- return {
- name: 'cjs-detection',
- moduleParsed({
- id,
- meta: {
- commonjs: { isCommonJS }
- }
- }) {
- console.log(`File ${id} is CommonJS: ${isCommonJS}`);
- }
- };
-}
-```
-
-## Meta
-
-[CONTRIBUTING](/.github/CONTRIBUTING.md)
-
-[LICENSE (MIT)](/LICENSE)
diff --git a/node_modules/@rollup/plugin-commonjs/dist/index.es.js b/node_modules/@rollup/plugin-commonjs/dist/index.es.js
deleted file mode 100644
index d38bae195c..0000000000
--- a/node_modules/@rollup/plugin-commonjs/dist/index.es.js
+++ /dev/null
@@ -1,1770 +0,0 @@
-import { basename, extname, dirname, sep, join, resolve } from 'path';
-import { makeLegalIdentifier, attachScopes, extractAssignedNames, createFilter } from '@rollup/pluginutils';
-import getCommonDir from 'commondir';
-import { existsSync, readFileSync, statSync } from 'fs';
-import glob from 'glob';
-import { walk } from 'estree-walker';
-import MagicString from 'magic-string';
-import isReference from 'is-reference';
-import { sync } from 'resolve';
-
-var peerDependencies = {
- rollup: "^2.30.0"
-};
-
-function tryParse(parse, code, id) {
- try {
- return parse(code, { allowReturnOutsideFunction: true });
- } catch (err) {
- err.message += ` in ${id}`;
- throw err;
- }
-}
-
-const firstpassGlobal = /\b(?:require|module|exports|global)\b/;
-
-const firstpassNoGlobal = /\b(?:require|module|exports)\b/;
-
-function hasCjsKeywords(code, ignoreGlobal) {
- const firstpass = ignoreGlobal ? firstpassNoGlobal : firstpassGlobal;
- return firstpass.test(code);
-}
-
-/* eslint-disable no-underscore-dangle */
-
-function analyzeTopLevelStatements(parse, code, id) {
- const ast = tryParse(parse, code, id);
-
- let isEsModule = false;
- let hasDefaultExport = false;
- let hasNamedExports = false;
-
- for (const node of ast.body) {
- switch (node.type) {
- case 'ExportDefaultDeclaration':
- isEsModule = true;
- hasDefaultExport = true;
- break;
- case 'ExportNamedDeclaration':
- isEsModule = true;
- if (node.declaration) {
- hasNamedExports = true;
- } else {
- for (const specifier of node.specifiers) {
- if (specifier.exported.name === 'default') {
- hasDefaultExport = true;
- } else {
- hasNamedExports = true;
- }
- }
- }
- break;
- case 'ExportAllDeclaration':
- isEsModule = true;
- if (node.exported && node.exported.name === 'default') {
- hasDefaultExport = true;
- } else {
- hasNamedExports = true;
- }
- break;
- case 'ImportDeclaration':
- isEsModule = true;
- break;
- }
- }
-
- return { isEsModule, hasDefaultExport, hasNamedExports, ast };
-}
-
-const isWrappedId = (id, suffix) => id.endsWith(suffix);
-const wrapId = (id, suffix) => `\0${id}${suffix}`;
-const unwrapId = (wrappedId, suffix) => wrappedId.slice(1, -suffix.length);
-
-const PROXY_SUFFIX = '?commonjs-proxy';
-const REQUIRE_SUFFIX = '?commonjs-require';
-const EXTERNAL_SUFFIX = '?commonjs-external';
-
-const DYNAMIC_REGISTER_SUFFIX = '?commonjs-dynamic-register';
-const DYNAMIC_JSON_PREFIX = '\0commonjs-dynamic-json:';
-const DYNAMIC_PACKAGES_ID = '\0commonjs-dynamic-packages';
-
-const HELPERS_ID = '\0commonjsHelpers.js';
-
-// `x['default']` is used instead of `x.default` for backward compatibility with ES3 browsers.
-// Minifiers like uglify will usually transpile it back if compatibility with ES3 is not enabled.
-// This will no longer be necessary once Rollup switches to ES6 output, likely
-// in Rollup 3
-
-const HELPERS = `
-export var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
-
-export function getDefaultExportFromCjs (x) {
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
-}
-
-export function getDefaultExportFromNamespaceIfPresent (n) {
- return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
-}
-
-export function getDefaultExportFromNamespaceIfNotNamed (n) {
- return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
-}
-
-export function getAugmentedNamespace(n) {
- if (n.__esModule) return n;
- var a = Object.defineProperty({}, '__esModule', {value: true});
- Object.keys(n).forEach(function (k) {
- var d = Object.getOwnPropertyDescriptor(n, k);
- Object.defineProperty(a, k, d.get ? d : {
- enumerable: true,
- get: function () {
- return n[k];
- }
- });
- });
- return a;
-}
-`;
-
-const HELPER_NON_DYNAMIC = `
-export function createCommonjsModule(fn) {
- var module = { exports: {} }
- return fn(module, module.exports), module.exports;
-}
-
-export function commonjsRequire (target) {
- throw new Error('Could not dynamically require "' + target + '". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.');
-}
-`;
-
-const HELPERS_DYNAMIC = `
-export function createCommonjsModule(fn, basedir, module) {
- return module = {
- path: basedir,
- exports: {},
- require: function (path, base) {
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
- }
- }, fn(module, module.exports), module.exports;
-}
-
-export function commonjsRegister (path, loader) {
- DYNAMIC_REQUIRE_LOADERS[path] = loader;
-}
-
-const DYNAMIC_REQUIRE_LOADERS = Object.create(null);
-const DYNAMIC_REQUIRE_CACHE = Object.create(null);
-const DEFAULT_PARENT_MODULE = {
- id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []
-};
-const CHECKED_EXTENSIONS = ['', '.js', '.json'];
-
-function normalize (path) {
- path = path.replace(/\\\\/g, '/');
- const parts = path.split('/');
- const slashed = parts[0] === '';
- for (let i = 1; i < parts.length; i++) {
- if (parts[i] === '.' || parts[i] === '') {
- parts.splice(i--, 1);
- }
- }
- for (let i = 1; i < parts.length; i++) {
- if (parts[i] !== '..') continue;
- if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {
- parts.splice(--i, 2);
- i--;
- }
- }
- path = parts.join('/');
- if (slashed && path[0] !== '/')
- path = '/' + path;
- else if (path.length === 0)
- path = '.';
- return path;
-}
-
-function join () {
- if (arguments.length === 0)
- return '.';
- let joined;
- for (let i = 0; i < arguments.length; ++i) {
- let arg = arguments[i];
- if (arg.length > 0) {
- if (joined === undefined)
- joined = arg;
- else
- joined += '/' + arg;
- }
- }
- if (joined === undefined)
- return '.';
-
- return joined;
-}
-
-function isPossibleNodeModulesPath (modulePath) {
- let c0 = modulePath[0];
- if (c0 === '/' || c0 === '\\\\') return false;
- let c1 = modulePath[1], c2 = modulePath[2];
- if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||
- (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;
- if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))
- return false;
- return true;
-}
-
-function dirname (path) {
- if (path.length === 0)
- return '.';
-
- let i = path.length - 1;
- while (i > 0) {
- const c = path.charCodeAt(i);
- if ((c === 47 || c === 92) && i !== path.length - 1)
- break;
- i--;
- }
-
- if (i > 0)
- return path.substr(0, i);
-
- if (path.chartCodeAt(0) === 47 || path.chartCodeAt(0) === 92)
- return path.charAt(0);
-
- return '.';
-}
-
-export function commonjsResolveImpl (path, originalModuleDir, testCache) {
- const shouldTryNodeModules = isPossibleNodeModulesPath(path);
- path = normalize(path);
- let relPath;
- if (path[0] === '/') {
- originalModuleDir = '/';
- }
- while (true) {
- if (!shouldTryNodeModules) {
- relPath = originalModuleDir ? normalize(originalModuleDir + '/' + path) : path;
- } else if (originalModuleDir) {
- relPath = normalize(originalModuleDir + '/node_modules/' + path);
- } else {
- relPath = normalize(join('node_modules', path));
- }
-
- if (relPath.endsWith('/..')) {
- break; // Travelled too far up, avoid infinite loop
- }
-
- for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {
- const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];
- if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {
- return resolvedPath;
- };
- if (DYNAMIC_REQUIRE_LOADERS[resolvedPath]) {
- return resolvedPath;
- };
- }
- if (!shouldTryNodeModules) break;
- const nextDir = normalize(originalModuleDir + '/..');
- if (nextDir === originalModuleDir) break;
- originalModuleDir = nextDir;
- }
- return null;
-}
-
-export function commonjsResolve (path, originalModuleDir) {
- const resolvedPath = commonjsResolveImpl(path, originalModuleDir);
- if (resolvedPath !== null) {
- return resolvedPath;
- }
- return require.resolve(path);
-}
-
-export function commonjsRequire (path, originalModuleDir) {
- const resolvedPath = commonjsResolveImpl(path, originalModuleDir, true);
- if (resolvedPath !== null) {
- let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];
- if (cachedModule) return cachedModule.exports;
- const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];
- if (loader) {
- DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {
- id: resolvedPath,
- filename: resolvedPath,
- path: dirname(resolvedPath),
- exports: {},
- parent: DEFAULT_PARENT_MODULE,
- loaded: false,
- children: [],
- paths: [],
- require: function (path, base) {
- return commonjsRequire(path, (base === undefined || base === null) ? cachedModule.path : base);
- }
- };
- try {
- loader.call(commonjsGlobal, cachedModule, cachedModule.exports);
- } catch (error) {
- delete DYNAMIC_REQUIRE_CACHE[resolvedPath];
- throw error;
- }
- cachedModule.loaded = true;
- return cachedModule.exports;
- };
- }
- return require(path);
-}
-
-commonjsRequire.cache = DYNAMIC_REQUIRE_CACHE;
-commonjsRequire.resolve = commonjsResolve;
-`;
-
-function getHelpersModule(isDynamicRequireModulesEnabled) {
- return `${HELPERS}${isDynamicRequireModulesEnabled ? HELPERS_DYNAMIC : HELPER_NON_DYNAMIC}`;
-}
-
-/* eslint-disable import/prefer-default-export */
-
-function deconflict(scope, globals, identifier) {
- let i = 1;
- let deconflicted = makeLegalIdentifier(identifier);
-
- while (scope.contains(deconflicted) || globals.has(deconflicted)) {
- deconflicted = makeLegalIdentifier(`${identifier}_${i}`);
- i += 1;
- }
- // eslint-disable-next-line no-param-reassign
- scope.declarations[deconflicted] = true;
-
- return deconflicted;
-}
-
-function getName(id) {
- const name = makeLegalIdentifier(basename(id, extname(id)));
- if (name !== 'index') {
- return name;
- }
- const segments = dirname(id).split(sep);
- return makeLegalIdentifier(segments[segments.length - 1]);
-}
-
-function normalizePathSlashes(path) {
- return path.replace(/\\/g, '/');
-}
-
-const VIRTUAL_PATH_BASE = '/$$rollup_base$$';
-const getVirtualPathForDynamicRequirePath = (path, commonDir) => {
- const normalizedPath = normalizePathSlashes(path);
- return normalizedPath.startsWith(commonDir)
- ? VIRTUAL_PATH_BASE + normalizedPath.slice(commonDir.length)
- : normalizedPath;
-};
-
-function getPackageEntryPoint(dirPath) {
- let entryPoint = 'index.js';
-
- try {
- if (existsSync(join(dirPath, 'package.json'))) {
- entryPoint =
- JSON.parse(readFileSync(join(dirPath, 'package.json'), { encoding: 'utf8' })).main ||
- entryPoint;
- }
- } catch (ignored) {
- // ignored
- }
-
- return entryPoint;
-}
-
-function getDynamicPackagesModule(dynamicRequireModuleDirPaths, commonDir) {
- let code = `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');`;
- for (const dir of dynamicRequireModuleDirPaths) {
- const entryPoint = getPackageEntryPoint(dir);
-
- code += `\ncommonjsRegister(${JSON.stringify(
- getVirtualPathForDynamicRequirePath(dir, commonDir)
- )}, function (module, exports) {
- module.exports = require(${JSON.stringify(normalizePathSlashes(join(dir, entryPoint)))});
-});`;
- }
- return code;
-}
-
-function getDynamicPackagesEntryIntro(
- dynamicRequireModuleDirPaths,
- dynamicRequireModuleSet
-) {
- let dynamicImports = Array.from(
- dynamicRequireModuleSet,
- (dynamicId) => `require(${JSON.stringify(wrapModuleRegisterProxy(dynamicId))});`
- ).join('\n');
-
- if (dynamicRequireModuleDirPaths.length) {
- dynamicImports += `require(${JSON.stringify(wrapModuleRegisterProxy(DYNAMIC_PACKAGES_ID))});`;
- }
-
- return dynamicImports;
-}
-
-function wrapModuleRegisterProxy(id) {
- return wrapId(id, DYNAMIC_REGISTER_SUFFIX);
-}
-
-function unwrapModuleRegisterProxy(id) {
- return unwrapId(id, DYNAMIC_REGISTER_SUFFIX);
-}
-
-function isModuleRegisterProxy(id) {
- return isWrappedId(id, DYNAMIC_REGISTER_SUFFIX);
-}
-
-function isDynamicModuleImport(id, dynamicRequireModuleSet) {
- const normalizedPath = normalizePathSlashes(id);
- return dynamicRequireModuleSet.has(normalizedPath) && !normalizedPath.endsWith('.json');
-}
-
-function isDirectory(path) {
- try {
- if (statSync(path).isDirectory()) return true;
- } catch (ignored) {
- // Nothing to do here
- }
- return false;
-}
-
-function getDynamicRequirePaths(patterns) {
- const dynamicRequireModuleSet = new Set();
- for (const pattern of !patterns || Array.isArray(patterns) ? patterns || [] : [patterns]) {
- const isNegated = pattern.startsWith('!');
- const modifySet = Set.prototype[isNegated ? 'delete' : 'add'].bind(dynamicRequireModuleSet);
- for (const path of glob.sync(isNegated ? pattern.substr(1) : pattern)) {
- modifySet(normalizePathSlashes(resolve(path)));
- if (isDirectory(path)) {
- modifySet(normalizePathSlashes(resolve(join(path, getPackageEntryPoint(path)))));
- }
- }
- }
- const dynamicRequireModuleDirPaths = Array.from(dynamicRequireModuleSet.values()).filter((path) =>
- isDirectory(path)
- );
- return { dynamicRequireModuleSet, dynamicRequireModuleDirPaths };
-}
-
-const isCjsPromises = new Map();
-
-function getIsCjsPromise(id) {
- let isCjsPromise = isCjsPromises.get(id);
- if (isCjsPromise) return isCjsPromise.promise;
-
- const promise = new Promise((resolve) => {
- isCjsPromise = {
- resolve,
- promise: null
- };
- isCjsPromises.set(id, isCjsPromise);
- });
- isCjsPromise.promise = promise;
-
- return promise;
-}
-
-function setIsCjsPromise(id, resolution) {
- const isCjsPromise = isCjsPromises.get(id);
- if (isCjsPromise) {
- if (isCjsPromise.resolve) {
- isCjsPromise.resolve(resolution);
- isCjsPromise.resolve = null;
- }
- } else {
- isCjsPromises.set(id, { promise: Promise.resolve(resolution), resolve: null });
- }
-}
-
-// e.g. id === "commonjsHelpers?commonjsRegister"
-function getSpecificHelperProxy(id) {
- return `export {${id.split('?')[1]} as default} from '${HELPERS_ID}';`;
-}
-
-function getUnknownRequireProxy(id, requireReturnsDefault) {
- if (requireReturnsDefault === true || id.endsWith('.json')) {
- return `export {default} from ${JSON.stringify(id)};`;
- }
- const name = getName(id);
- const exported =
- requireReturnsDefault === 'auto'
- ? `import {getDefaultExportFromNamespaceIfNotNamed} from "${HELPERS_ID}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(${name});`
- : requireReturnsDefault === 'preferred'
- ? `import {getDefaultExportFromNamespaceIfPresent} from "${HELPERS_ID}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfPresent(${name});`
- : !requireReturnsDefault
- ? `import {getAugmentedNamespace} from "${HELPERS_ID}"; export default /*@__PURE__*/getAugmentedNamespace(${name});`
- : `export default ${name};`;
- return `import * as ${name} from ${JSON.stringify(id)}; ${exported}`;
-}
-
-function getDynamicJsonProxy(id, commonDir) {
- const normalizedPath = normalizePathSlashes(id.slice(DYNAMIC_JSON_PREFIX.length));
- return `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');\ncommonjsRegister(${JSON.stringify(
- getVirtualPathForDynamicRequirePath(normalizedPath, commonDir)
- )}, function (module, exports) {
- module.exports = require(${JSON.stringify(normalizedPath)});
-});`;
-}
-
-function getDynamicRequireProxy(normalizedPath, commonDir) {
- return `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');\ncommonjsRegister(${JSON.stringify(
- getVirtualPathForDynamicRequirePath(normalizedPath, commonDir)
- )}, function (module, exports) {
- ${readFileSync(normalizedPath, { encoding: 'utf8' })}
-});`;
-}
-
-async function getStaticRequireProxy(
- id,
- requireReturnsDefault,
- esModulesWithDefaultExport,
- esModulesWithNamedExports
-) {
- const name = getName(id);
- const isCjs = await getIsCjsPromise(id);
- if (isCjs) {
- return `import { __moduleExports } from ${JSON.stringify(id)}; export default __moduleExports;`;
- } else if (isCjs === null) {
- return getUnknownRequireProxy(id, requireReturnsDefault);
- } else if (!requireReturnsDefault) {
- return `import {getAugmentedNamespace} from "${HELPERS_ID}"; import * as ${name} from ${JSON.stringify(
- id
- )}; export default /*@__PURE__*/getAugmentedNamespace(${name});`;
- } else if (
- requireReturnsDefault !== true &&
- (requireReturnsDefault === 'namespace' ||
- !esModulesWithDefaultExport.has(id) ||
- (requireReturnsDefault === 'auto' && esModulesWithNamedExports.has(id)))
- ) {
- return `import * as ${name} from ${JSON.stringify(id)}; export default ${name};`;
- }
- return `export {default} from ${JSON.stringify(id)};`;
-}
-
-/* eslint-disable no-param-reassign, no-undefined */
-
-function getCandidatesForExtension(resolved, extension) {
- return [resolved + extension, `${resolved}${sep}index${extension}`];
-}
-
-function getCandidates(resolved, extensions) {
- return extensions.reduce(
- (paths, extension) => paths.concat(getCandidatesForExtension(resolved, extension)),
- [resolved]
- );
-}
-
-function getResolveId(extensions) {
- function resolveExtensions(importee, importer) {
- // not our problem
- if (importee[0] !== '.' || !importer) return undefined;
-
- const resolved = resolve(dirname(importer), importee);
- const candidates = getCandidates(resolved, extensions);
-
- for (let i = 0; i < candidates.length; i += 1) {
- try {
- const stats = statSync(candidates[i]);
- if (stats.isFile()) return { id: candidates[i] };
- } catch (err) {
- /* noop */
- }
- }
-
- return undefined;
- }
-
- return function resolveId(importee, rawImporter) {
- const importer =
- rawImporter && isModuleRegisterProxy(rawImporter)
- ? unwrapModuleRegisterProxy(rawImporter)
- : rawImporter;
-
- // Proxies are only importing resolved ids, no need to resolve again
- if (importer && isWrappedId(importer, PROXY_SUFFIX)) {
- return importee;
- }
-
- const isProxyModule = isWrappedId(importee, PROXY_SUFFIX);
- const isRequiredModule = isWrappedId(importee, REQUIRE_SUFFIX);
- let isModuleRegistration = false;
-
- if (isProxyModule) {
- importee = unwrapId(importee, PROXY_SUFFIX);
- } else if (isRequiredModule) {
- importee = unwrapId(importee, REQUIRE_SUFFIX);
-
- isModuleRegistration = isModuleRegisterProxy(importee);
- if (isModuleRegistration) {
- importee = unwrapModuleRegisterProxy(importee);
- }
- }
-
- if (
- importee.startsWith(HELPERS_ID) ||
- importee === DYNAMIC_PACKAGES_ID ||
- importee.startsWith(DYNAMIC_JSON_PREFIX)
- ) {
- return importee;
- }
-
- if (importee.startsWith('\0')) {
- return null;
- }
-
- return this.resolve(importee, importer, {
- skipSelf: true,
- custom: { 'node-resolve': { isRequire: isProxyModule || isRequiredModule } }
- }).then((resolved) => {
- if (!resolved) {
- resolved = resolveExtensions(importee, importer);
- }
- if (resolved && isProxyModule) {
- resolved.id = wrapId(resolved.id, resolved.external ? EXTERNAL_SUFFIX : PROXY_SUFFIX);
- resolved.external = false;
- } else if (resolved && isModuleRegistration) {
- resolved.id = wrapModuleRegisterProxy(resolved.id);
- } else if (!resolved && (isProxyModule || isRequiredModule)) {
- return { id: wrapId(importee, EXTERNAL_SUFFIX), external: false };
- }
- return resolved;
- });
- };
-}
-
-function validateRollupVersion(rollupVersion, peerDependencyVersion) {
- const [major, minor] = rollupVersion.split('.').map(Number);
- const versionRegexp = /\^(\d+\.\d+)\.\d+/g;
- let minMajor = Infinity;
- let minMinor = Infinity;
- let foundVersion;
- // eslint-disable-next-line no-cond-assign
- while ((foundVersion = versionRegexp.exec(peerDependencyVersion))) {
- const [foundMajor, foundMinor] = foundVersion[1].split('.').map(Number);
- if (foundMajor < minMajor) {
- minMajor = foundMajor;
- minMinor = foundMinor;
- }
- }
- if (major < minMajor || (major === minMajor && minor < minMinor)) {
- throw new Error(
- `Insufficient Rollup version: "@rollup/plugin-commonjs" requires at least rollup@${minMajor}.${minMinor} but found rollup@${rollupVersion}.`
- );
- }
-}
-
-const operators = {
- '==': (x) => equals(x.left, x.right, false),
-
- '!=': (x) => not(operators['=='](x)),
-
- '===': (x) => equals(x.left, x.right, true),
-
- '!==': (x) => not(operators['==='](x)),
-
- '!': (x) => isFalsy(x.argument),
-
- '&&': (x) => isTruthy(x.left) && isTruthy(x.right),
-
- '||': (x) => isTruthy(x.left) || isTruthy(x.right)
-};
-
-function not(value) {
- return value === null ? value : !value;
-}
-
-function equals(a, b, strict) {
- if (a.type !== b.type) return null;
- // eslint-disable-next-line eqeqeq
- if (a.type === 'Literal') return strict ? a.value === b.value : a.value == b.value;
- return null;
-}
-
-function isTruthy(node) {
- if (!node) return false;
- if (node.type === 'Literal') return !!node.value;
- if (node.type === 'ParenthesizedExpression') return isTruthy(node.expression);
- if (node.operator in operators) return operators[node.operator](node);
- return null;
-}
-
-function isFalsy(node) {
- return not(isTruthy(node));
-}
-
-function getKeypath(node) {
- const parts = [];
-
- while (node.type === 'MemberExpression') {
- if (node.computed) return null;
-
- parts.unshift(node.property.name);
- // eslint-disable-next-line no-param-reassign
- node = node.object;
- }
-
- if (node.type !== 'Identifier') return null;
-
- const { name } = node;
- parts.unshift(name);
-
- return { name, keypath: parts.join('.') };
-}
-
-const KEY_COMPILED_ESM = '__esModule';
-
-function isDefineCompiledEsm(node) {
- const definedProperty =
- getDefinePropertyCallName(node, 'exports') || getDefinePropertyCallName(node, 'module.exports');
- if (definedProperty && definedProperty.key === KEY_COMPILED_ESM) {
- return isTruthy(definedProperty.value);
- }
- return false;
-}
-
-function getDefinePropertyCallName(node, targetName) {
- const targetNames = targetName.split('.');
-
- const {
- callee: { object, property }
- } = node;
- if (!object || object.type !== 'Identifier' || object.name !== 'Object') return;
- if (!property || property.type !== 'Identifier' || property.name !== 'defineProperty') return;
- if (node.arguments.length !== 3) return;
-
- const [target, key, value] = node.arguments;
- if (targetNames.length === 1) {
- if (target.type !== 'Identifier' || target.name !== targetNames[0]) {
- return;
- }
- }
-
- if (targetNames.length === 2) {
- if (
- target.type !== 'MemberExpression' ||
- target.object.name !== targetNames[0] ||
- target.property.name !== targetNames[1]
- ) {
- return;
- }
- }
-
- if (value.type !== 'ObjectExpression' || !value.properties) return;
-
- const valueProperty = value.properties.find((p) => p.key && p.key.name === 'value');
- if (!valueProperty || !valueProperty.value) return;
-
- // eslint-disable-next-line consistent-return
- return { key: key.value, value: valueProperty.value };
-}
-
-function isLocallyShadowed(name, scope) {
- while (scope.parent) {
- if (scope.declarations[name]) {
- return true;
- }
- // eslint-disable-next-line no-param-reassign
- scope = scope.parent;
- }
- return false;
-}
-
-function isShorthandProperty(parent) {
- return parent && parent.type === 'Property' && parent.shorthand;
-}
-
-function wrapCode(magicString, uses, moduleName, HELPERS_NAME, virtualDynamicRequirePath) {
- const args = `module${uses.exports ? ', exports' : ''}`;
-
- magicString
- .trim()
- .prepend(`var ${moduleName} = ${HELPERS_NAME}.createCommonjsModule(function (${args}) {\n`)
- .append(
- `\n}${virtualDynamicRequirePath ? `, ${JSON.stringify(virtualDynamicRequirePath)}` : ''});`
- );
-}
-
-function rewriteExportsAndGetExportsBlock(
- magicString,
- moduleName,
- wrapped,
- topLevelModuleExportsAssignments,
- topLevelExportsAssignmentsByName,
- defineCompiledEsmExpressions,
- deconflict,
- isRestorableCompiledEsm,
- code,
- uses,
- HELPERS_NAME
-) {
- const namedExportDeclarations = [`export { ${moduleName} as __moduleExports };`];
- const moduleExportsPropertyAssignments = [];
- let deconflictedDefaultExportName;
-
- if (!wrapped) {
- let hasModuleExportsAssignment = false;
- const namedExportProperties = [];
-
- // Collect and rewrite module.exports assignments
- for (const { left } of topLevelModuleExportsAssignments) {
- hasModuleExportsAssignment = true;
- magicString.overwrite(left.start, left.end, `var ${moduleName}`);
- }
-
- // Collect and rewrite named exports
- for (const [exportName, node] of topLevelExportsAssignmentsByName) {
- const deconflicted = deconflict(exportName);
- magicString.overwrite(node.start, node.left.end, `var ${deconflicted}`);
-
- if (exportName === 'default') {
- deconflictedDefaultExportName = deconflicted;
- } else {
- namedExportDeclarations.push(
- exportName === deconflicted
- ? `export { ${exportName} };`
- : `export { ${deconflicted} as ${exportName} };`
- );
- }
-
- if (hasModuleExportsAssignment) {
- moduleExportsPropertyAssignments.push(`${moduleName}.${exportName} = ${deconflicted};`);
- } else {
- namedExportProperties.push(`\t${exportName}: ${deconflicted}`);
- }
- }
-
- // Regenerate CommonJS namespace
- if (!hasModuleExportsAssignment) {
- const moduleExports = `{\n${namedExportProperties.join(',\n')}\n}`;
- magicString
- .trim()
- .append(
- `\n\nvar ${moduleName} = ${
- isRestorableCompiledEsm
- ? `/*#__PURE__*/Object.defineProperty(${moduleExports}, '__esModule', {value: true})`
- : moduleExports
- };`
- );
- }
- }
-
- // Generate default export
- const defaultExport = [];
- if (isRestorableCompiledEsm) {
- defaultExport.push(`export default ${deconflictedDefaultExportName || moduleName};`);
- } else if (
- (wrapped || deconflictedDefaultExportName) &&
- (defineCompiledEsmExpressions.length > 0 || code.indexOf('__esModule') >= 0)
- ) {
- // eslint-disable-next-line no-param-reassign
- uses.commonjsHelpers = true;
- defaultExport.push(
- `export default /*@__PURE__*/${HELPERS_NAME}.getDefaultExportFromCjs(${moduleName});`
- );
- } else {
- defaultExport.push(`export default ${moduleName};`);
- }
-
- return `\n\n${defaultExport
- .concat(namedExportDeclarations)
- .concat(moduleExportsPropertyAssignments)
- .join('\n')}`;
-}
-
-function isRequireStatement(node, scope) {
- if (!node) return false;
- if (node.type !== 'CallExpression') return false;
-
- // Weird case of `require()` or `module.require()` without arguments
- if (node.arguments.length === 0) return false;
-
- return isRequire(node.callee, scope);
-}
-
-function isRequire(node, scope) {
- return (
- (node.type === 'Identifier' && node.name === 'require' && !scope.contains('require')) ||
- (node.type === 'MemberExpression' && isModuleRequire(node, scope))
- );
-}
-
-function isModuleRequire({ object, property }, scope) {
- return (
- object.type === 'Identifier' &&
- object.name === 'module' &&
- property.type === 'Identifier' &&
- property.name === 'require' &&
- !scope.contains('module')
- );
-}
-
-function isStaticRequireStatement(node, scope) {
- if (!isRequireStatement(node, scope)) return false;
- return !hasDynamicArguments(node);
-}
-
-function hasDynamicArguments(node) {
- return (
- node.arguments.length > 1 ||
- (node.arguments[0].type !== 'Literal' &&
- (node.arguments[0].type !== 'TemplateLiteral' || node.arguments[0].expressions.length > 0))
- );
-}
-
-const reservedMethod = { resolve: true, cache: true, main: true };
-
-function isNodeRequirePropertyAccess(parent) {
- return parent && parent.property && reservedMethod[parent.property.name];
-}
-
-function isIgnoredRequireStatement(requiredNode, ignoreRequire) {
- return ignoreRequire(requiredNode.arguments[0].value);
-}
-
-function getRequireStringArg(node) {
- return node.arguments[0].type === 'Literal'
- ? node.arguments[0].value
- : node.arguments[0].quasis[0].value.cooked;
-}
-
-function hasDynamicModuleForPath(source, id, dynamicRequireModuleSet) {
- if (!/^(?:\.{0,2}[/\\]|[A-Za-z]:[/\\])/.test(source)) {
- try {
- const resolvedPath = normalizePathSlashes(sync(source, { basedir: dirname(id) }));
- if (dynamicRequireModuleSet.has(resolvedPath)) {
- return true;
- }
- } catch (ex) {
- // Probably a node.js internal module
- return false;
- }
-
- return false;
- }
-
- for (const attemptExt of ['', '.js', '.json']) {
- const resolvedPath = normalizePathSlashes(resolve(dirname(id), source + attemptExt));
- if (dynamicRequireModuleSet.has(resolvedPath)) {
- return true;
- }
- }
-
- return false;
-}
-
-function getRequireHandlers() {
- const requiredSources = [];
- const requiredBySource = Object.create(null);
- const requiredByNode = new Map();
- const requireExpressionsWithUsedReturnValue = [];
-
- function addRequireStatement(sourceId, node, scope, usesReturnValue) {
- const required = getRequired(sourceId);
- requiredByNode.set(node, { scope, required });
- if (usesReturnValue) {
- required.nodesUsingRequired.push(node);
- requireExpressionsWithUsedReturnValue.push(node);
- }
- }
-
- function getRequired(sourceId) {
- if (!requiredBySource[sourceId]) {
- requiredSources.push(sourceId);
-
- requiredBySource[sourceId] = {
- source: sourceId,
- name: null,
- nodesUsingRequired: []
- };
- }
-
- return requiredBySource[sourceId];
- }
-
- function rewriteRequireExpressionsAndGetImportBlock(
- magicString,
- topLevelDeclarations,
- topLevelRequireDeclarators,
- reassignedNames,
- helpersNameIfUsed,
- dynamicRegisterSources
- ) {
- const removedDeclarators = getDeclaratorsReplacedByImportsAndSetImportNames(
- topLevelRequireDeclarators,
- requiredByNode,
- reassignedNames
- );
- setRemainingImportNamesAndRewriteRequires(
- requireExpressionsWithUsedReturnValue,
- requiredByNode,
- magicString
- );
- removeDeclaratorsFromDeclarations(topLevelDeclarations, removedDeclarators, magicString);
- const importBlock = `${(helpersNameIfUsed
- ? [`import * as ${helpersNameIfUsed} from '${HELPERS_ID}';`]
- : []
- )
- .concat(
- // dynamic registers first, as the may be required in the other modules
- [...dynamicRegisterSources].map((source) => `import '${wrapId(source, REQUIRE_SUFFIX)}';`),
-
- // now the actual modules so that they are analyzed before creating the proxies;
- // no need to do this for virtual modules as we never proxy them
- requiredSources
- .filter((source) => !source.startsWith('\0'))
- .map((source) => `import '${wrapId(source, REQUIRE_SUFFIX)}';`),
-
- // now the proxy modules
- requiredSources.map((source) => {
- const { name, nodesUsingRequired } = requiredBySource[source];
- return `import ${nodesUsingRequired.length ? `${name} from ` : ``}'${
- source.startsWith('\0') ? source : wrapId(source, PROXY_SUFFIX)
- }';`;
- })
- )
- .join('\n')}`;
- return importBlock ? `${importBlock}\n\n` : '';
- }
-
- return {
- addRequireStatement,
- requiredSources,
- rewriteRequireExpressionsAndGetImportBlock
- };
-}
-
-function getDeclaratorsReplacedByImportsAndSetImportNames(
- topLevelRequireDeclarators,
- requiredByNode,
- reassignedNames
-) {
- const removedDeclarators = new Set();
- for (const declarator of topLevelRequireDeclarators) {
- const { required } = requiredByNode.get(declarator.init);
- if (!required.name) {
- const potentialName = declarator.id.name;
- if (
- !reassignedNames.has(potentialName) &&
- !required.nodesUsingRequired.some((node) =>
- isLocallyShadowed(potentialName, requiredByNode.get(node).scope)
- )
- ) {
- required.name = potentialName;
- removedDeclarators.add(declarator);
- }
- }
- }
- return removedDeclarators;
-}
-
-function setRemainingImportNamesAndRewriteRequires(
- requireExpressionsWithUsedReturnValue,
- requiredByNode,
- magicString
-) {
- let uid = 0;
- for (const requireExpression of requireExpressionsWithUsedReturnValue) {
- const { required } = requiredByNode.get(requireExpression);
- if (!required.name) {
- let potentialName;
- const isUsedName = (node) => requiredByNode.get(node).scope.contains(potentialName);
- do {
- potentialName = `require$$${uid}`;
- uid += 1;
- } while (required.nodesUsingRequired.some(isUsedName));
- required.name = potentialName;
- }
- magicString.overwrite(requireExpression.start, requireExpression.end, required.name);
- }
-}
-
-function removeDeclaratorsFromDeclarations(topLevelDeclarations, removedDeclarators, magicString) {
- for (const declaration of topLevelDeclarations) {
- let keepDeclaration = false;
- let [{ start }] = declaration.declarations;
- for (const declarator of declaration.declarations) {
- if (removedDeclarators.has(declarator)) {
- magicString.remove(start, declarator.end);
- } else if (!keepDeclaration) {
- magicString.remove(start, declarator.start);
- keepDeclaration = true;
- }
- start = declarator.end;
- }
- if (!keepDeclaration) {
- magicString.remove(declaration.start, declaration.end);
- }
- }
-}
-
-/* eslint-disable no-param-reassign, no-shadow, no-underscore-dangle, no-continue */
-
-const exportsPattern = /^(?:module\.)?exports(?:\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/;
-
-const functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;
-
-function transformCommonjs(
- parse,
- code,
- id,
- isEsModule,
- ignoreGlobal,
- ignoreRequire,
- getIgnoreTryCatchRequireStatementMode,
- sourceMap,
- isDynamicRequireModulesEnabled,
- dynamicRequireModuleSet,
- disableWrap,
- commonDir,
- astCache
-) {
- const ast = astCache || tryParse(parse, code, id);
- const magicString = new MagicString(code);
- const uses = {
- module: false,
- exports: false,
- global: false,
- require: false,
- commonjsHelpers: false
- };
- const virtualDynamicRequirePath =
- isDynamicRequireModulesEnabled && getVirtualPathForDynamicRequirePath(dirname(id), commonDir);
- let scope = attachScopes(ast, 'scope');
- let lexicalDepth = 0;
- let programDepth = 0;
- let currentTryBlockEnd = null;
- let shouldWrap = false;
- const defineCompiledEsmExpressions = [];
-
- const globals = new Set();
-
- // TODO technically wrong since globals isn't populated yet, but ¯\_(ツ)_/¯
- const HELPERS_NAME = deconflict(scope, globals, 'commonjsHelpers');
- const namedExports = {};
- const dynamicRegisterSources = new Set();
- let hasRemovedRequire = false;
-
- const {
- addRequireStatement,
- requiredSources,
- rewriteRequireExpressionsAndGetImportBlock
- } = getRequireHandlers();
-
- // See which names are assigned to. This is necessary to prevent
- // illegally replacing `var foo = require('foo')` with `import foo from 'foo'`,
- // where `foo` is later reassigned. (This happens in the wild. CommonJS, sigh)
- const reassignedNames = new Set();
- const topLevelDeclarations = [];
- const topLevelRequireDeclarators = new Set();
- const skippedNodes = new Set();
- const topLevelModuleExportsAssignments = [];
- const topLevelExportsAssignmentsByName = new Map();
-
- walk(ast, {
- enter(node, parent) {
- if (skippedNodes.has(node)) {
- this.skip();
- return;
- }
-
- if (currentTryBlockEnd !== null && node.start > currentTryBlockEnd) {
- currentTryBlockEnd = null;
- }
-
- programDepth += 1;
- if (node.scope) ({ scope } = node);
- if (functionType.test(node.type)) lexicalDepth += 1;
- if (sourceMap) {
- magicString.addSourcemapLocation(node.start);
- magicString.addSourcemapLocation(node.end);
- }
-
- // eslint-disable-next-line default-case
- switch (node.type) {
- case 'TryStatement':
- if (currentTryBlockEnd === null) {
- currentTryBlockEnd = node.block.end;
- }
- return;
- case 'AssignmentExpression':
- if (node.left.type === 'MemberExpression') {
- const flattened = getKeypath(node.left);
- if (!flattened || scope.contains(flattened.name)) return;
-
- const exportsPatternMatch = exportsPattern.exec(flattened.keypath);
- if (!exportsPatternMatch || flattened.keypath === 'exports') return;
-
- const [, exportName] = exportsPatternMatch;
- uses[flattened.name] = true;
-
- // we're dealing with `module.exports = ...` or `[module.]exports.foo = ...` –
- if (programDepth > 3) {
- shouldWrap = true;
- } else if (exportName === KEY_COMPILED_ESM) {
- defineCompiledEsmExpressions.push(parent);
- } else if (flattened.keypath === 'module.exports') {
- topLevelModuleExportsAssignments.push(node);
- } else if (!topLevelExportsAssignmentsByName.has(exportName)) {
- topLevelExportsAssignmentsByName.set(exportName, node);
- } else {
- shouldWrap = true;
- }
-
- skippedNodes.add(node.left);
-
- if (flattened.keypath === 'module.exports' && node.right.type === 'ObjectExpression') {
- node.right.properties.forEach((prop) => {
- if (prop.computed || !('key' in prop) || prop.key.type !== 'Identifier') return;
- const { name } = prop.key;
- if (name === makeLegalIdentifier(name)) namedExports[name] = true;
- });
- return;
- }
-
- if (exportsPatternMatch[1]) namedExports[exportsPatternMatch[1]] = true;
- } else {
- for (const name of extractAssignedNames(node.left)) {
- reassignedNames.add(name);
- }
- }
- return;
- case 'CallExpression': {
- if (isDefineCompiledEsm(node)) {
- if (programDepth === 3 && parent.type === 'ExpressionStatement') {
- // skip special handling for [module.]exports until we know we render this
- skippedNodes.add(node.arguments[0]);
- defineCompiledEsmExpressions.push(parent);
- } else {
- shouldWrap = true;
- }
- return;
- }
-
- if (
- node.callee.object &&
- node.callee.object.name === 'require' &&
- node.callee.property.name === 'resolve' &&
- hasDynamicModuleForPath(id, '/', dynamicRequireModuleSet)
- ) {
- const requireNode = node.callee.object;
- magicString.appendLeft(
- node.end - 1,
- `,${JSON.stringify(
- dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath
- )}`
- );
- magicString.overwrite(
- requireNode.start,
- requireNode.end,
- `${HELPERS_NAME}.commonjsRequire`,
- {
- storeName: true
- }
- );
- uses.commonjsHelpers = true;
- return;
- }
-
- if (!isStaticRequireStatement(node, scope)) return;
- if (!isDynamicRequireModulesEnabled) {
- skippedNodes.add(node.callee);
- }
- if (!isIgnoredRequireStatement(node, ignoreRequire)) {
- skippedNodes.add(node.callee);
- const usesReturnValue = parent.type !== 'ExpressionStatement';
-
- let canConvertRequire = true;
- let shouldRemoveRequireStatement = false;
-
- if (currentTryBlockEnd !== null) {
- ({
- canConvertRequire,
- shouldRemoveRequireStatement
- } = getIgnoreTryCatchRequireStatementMode(node.arguments[0].value));
-
- if (shouldRemoveRequireStatement) {
- hasRemovedRequire = true;
- }
- }
-
- let sourceId = getRequireStringArg(node);
- const isDynamicRegister = isModuleRegisterProxy(sourceId);
- if (isDynamicRegister) {
- sourceId = unwrapModuleRegisterProxy(sourceId);
- if (sourceId.endsWith('.json')) {
- sourceId = DYNAMIC_JSON_PREFIX + sourceId;
- }
- dynamicRegisterSources.add(wrapModuleRegisterProxy(sourceId));
- } else {
- if (
- !sourceId.endsWith('.json') &&
- hasDynamicModuleForPath(sourceId, id, dynamicRequireModuleSet)
- ) {
- if (shouldRemoveRequireStatement) {
- magicString.overwrite(node.start, node.end, `undefined`);
- } else if (canConvertRequire) {
- magicString.overwrite(
- node.start,
- node.end,
- `${HELPERS_NAME}.commonjsRequire(${JSON.stringify(
- getVirtualPathForDynamicRequirePath(sourceId, commonDir)
- )}, ${JSON.stringify(
- dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath
- )})`
- );
- uses.commonjsHelpers = true;
- }
- return;
- }
-
- if (canConvertRequire) {
- addRequireStatement(sourceId, node, scope, usesReturnValue);
- }
- }
-
- if (usesReturnValue) {
- if (shouldRemoveRequireStatement) {
- magicString.overwrite(node.start, node.end, `undefined`);
- return;
- }
-
- if (
- parent.type === 'VariableDeclarator' &&
- !scope.parent &&
- parent.id.type === 'Identifier'
- ) {
- // This will allow us to reuse this variable name as the imported variable if it is not reassigned
- // and does not conflict with variables in other places where this is imported
- topLevelRequireDeclarators.add(parent);
- }
- } else {
- // This is a bare import, e.g. `require('foo');`
-
- if (!canConvertRequire && !shouldRemoveRequireStatement) {
- return;
- }
-
- magicString.remove(parent.start, parent.end);
- }
- }
- return;
- }
- case 'ConditionalExpression':
- case 'IfStatement':
- // skip dead branches
- if (isFalsy(node.test)) {
- skippedNodes.add(node.consequent);
- } else if (node.alternate && isTruthy(node.test)) {
- skippedNodes.add(node.alternate);
- }
- return;
- case 'Identifier': {
- const { name } = node;
- if (!(isReference(node, parent) && !scope.contains(name))) return;
- switch (name) {
- case 'require':
- if (isNodeRequirePropertyAccess(parent)) {
- if (hasDynamicModuleForPath(id, '/', dynamicRequireModuleSet)) {
- if (parent.property.name === 'cache') {
- magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {
- storeName: true
- });
- uses.commonjsHelpers = true;
- }
- }
-
- return;
- }
-
- if (isDynamicRequireModulesEnabled && isRequireStatement(parent, scope)) {
- magicString.appendLeft(
- parent.end - 1,
- `,${JSON.stringify(
- dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath
- )}`
- );
- }
- if (isShorthandProperty(parent)) {
- magicString.appendRight(node.end, `: ${HELPERS_NAME}.commonjsRequire`);
- } else {
- magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {
- storeName: true
- });
- }
-
- uses.commonjsHelpers = true;
- return;
- case 'module':
- case 'exports':
- shouldWrap = true;
- uses[name] = true;
- return;
- case 'global':
- uses.global = true;
- if (!ignoreGlobal) {
- magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {
- storeName: true
- });
- uses.commonjsHelpers = true;
- }
- return;
- case 'define':
- magicString.overwrite(node.start, node.end, 'undefined', { storeName: true });
- return;
- default:
- globals.add(name);
- return;
- }
- }
- case 'MemberExpression':
- if (!isDynamicRequireModulesEnabled && isModuleRequire(node, scope)) {
- magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {
- storeName: true
- });
- uses.commonjsHelpers = true;
- skippedNodes.add(node.object);
- skippedNodes.add(node.property);
- }
- return;
- case 'ReturnStatement':
- // if top-level return, we need to wrap it
- if (lexicalDepth === 0) {
- shouldWrap = true;
- }
- return;
- case 'ThisExpression':
- // rewrite top-level `this` as `commonjsHelpers.commonjsGlobal`
- if (lexicalDepth === 0) {
- uses.global = true;
- if (!ignoreGlobal) {
- magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {
- storeName: true
- });
- uses.commonjsHelpers = true;
- }
- }
- return;
- case 'UnaryExpression':
- // rewrite `typeof module`, `typeof module.exports` and `typeof exports` (https://github.com/rollup/rollup-plugin-commonjs/issues/151)
- if (node.operator === 'typeof') {
- const flattened = getKeypath(node.argument);
- if (!flattened) return;
-
- if (scope.contains(flattened.name)) return;
-
- if (
- flattened.keypath === 'module.exports' ||
- flattened.keypath === 'module' ||
- flattened.keypath === 'exports'
- ) {
- magicString.overwrite(node.start, node.end, `'object'`, { storeName: false });
- }
- }
- return;
- case 'VariableDeclaration':
- if (!scope.parent) {
- topLevelDeclarations.push(node);
- }
- }
- },
-
- leave(node) {
- programDepth -= 1;
- if (node.scope) scope = scope.parent;
- if (functionType.test(node.type)) lexicalDepth -= 1;
- }
- });
-
- let isRestorableCompiledEsm = false;
- if (defineCompiledEsmExpressions.length > 0) {
- if (!shouldWrap && defineCompiledEsmExpressions.length === 1) {
- isRestorableCompiledEsm = true;
- magicString.remove(
- defineCompiledEsmExpressions[0].start,
- defineCompiledEsmExpressions[0].end
- );
- } else {
- shouldWrap = true;
- uses.exports = true;
- }
- }
-
- // We cannot wrap ES/mixed modules
- shouldWrap = shouldWrap && !disableWrap && !isEsModule;
- uses.commonjsHelpers = uses.commonjsHelpers || shouldWrap;
-
- if (
- !(
- requiredSources.length ||
- dynamicRegisterSources.size ||
- uses.module ||
- uses.exports ||
- uses.require ||
- uses.commonjsHelpers ||
- hasRemovedRequire
- ) &&
- (ignoreGlobal || !uses.global)
- ) {
- return { meta: { commonjs: { isCommonJS: false } } };
- }
-
- const moduleName = deconflict(scope, globals, getName(id));
-
- let leadingComment = '';
- if (code.startsWith('/*')) {
- const commentEnd = code.indexOf('*/', 2) + 2;
- leadingComment = `${code.slice(0, commentEnd)}\n`;
- magicString.remove(0, commentEnd).trim();
- }
-
- const exportBlock = isEsModule
- ? ''
- : rewriteExportsAndGetExportsBlock(
- magicString,
- moduleName,
- shouldWrap,
- topLevelModuleExportsAssignments,
- topLevelExportsAssignmentsByName,
- defineCompiledEsmExpressions,
- (name) => deconflict(scope, globals, name),
- isRestorableCompiledEsm,
- code,
- uses,
- HELPERS_NAME
- );
-
- const importBlock = rewriteRequireExpressionsAndGetImportBlock(
- magicString,
- topLevelDeclarations,
- topLevelRequireDeclarators,
- reassignedNames,
- uses.commonjsHelpers && HELPERS_NAME,
- dynamicRegisterSources
- );
-
- if (shouldWrap) {
- wrapCode(magicString, uses, moduleName, HELPERS_NAME, virtualDynamicRequirePath);
- }
-
- magicString
- .trim()
- .prepend(leadingComment + importBlock)
- .append(exportBlock);
-
- return {
- code: magicString.toString(),
- map: sourceMap ? magicString.generateMap() : null,
- syntheticNamedExports: isEsModule ? false : '__moduleExports',
- meta: { commonjs: { isCommonJS: !isEsModule } }
- };
-}
-
-function commonjs(options = {}) {
- const extensions = options.extensions || ['.js'];
- const filter = createFilter(options.include, options.exclude);
- const {
- ignoreGlobal,
- requireReturnsDefault: requireReturnsDefaultOption,
- esmExternals
- } = options;
- const getRequireReturnsDefault =
- typeof requireReturnsDefaultOption === 'function'
- ? requireReturnsDefaultOption
- : () => requireReturnsDefaultOption;
- let esmExternalIds;
- const isEsmExternal =
- typeof esmExternals === 'function'
- ? esmExternals
- : Array.isArray(esmExternals)
- ? ((esmExternalIds = new Set(esmExternals)), (id) => esmExternalIds.has(id))
- : () => esmExternals;
-
- const { dynamicRequireModuleSet, dynamicRequireModuleDirPaths } = getDynamicRequirePaths(
- options.dynamicRequireTargets
- );
- const isDynamicRequireModulesEnabled = dynamicRequireModuleSet.size > 0;
- const commonDir = isDynamicRequireModulesEnabled
- ? getCommonDir(null, Array.from(dynamicRequireModuleSet).concat(process.cwd()))
- : null;
-
- const esModulesWithDefaultExport = new Set();
- const esModulesWithNamedExports = new Set();
-
- const ignoreRequire =
- typeof options.ignore === 'function'
- ? options.ignore
- : Array.isArray(options.ignore)
- ? (id) => options.ignore.includes(id)
- : () => false;
-
- const getIgnoreTryCatchRequireStatementMode = (id) => {
- const mode =
- typeof options.ignoreTryCatch === 'function'
- ? options.ignoreTryCatch(id)
- : Array.isArray(options.ignoreTryCatch)
- ? options.ignoreTryCatch.includes(id)
- : options.ignoreTryCatch || false;
-
- return {
- canConvertRequire: mode !== 'remove' && mode !== true,
- shouldRemoveRequireStatement: mode === 'remove'
- };
- };
-
- const resolveId = getResolveId(extensions);
-
- const sourceMap = options.sourceMap !== false;
-
- function transformAndCheckExports(code, id) {
- if (isDynamicRequireModulesEnabled && this.getModuleInfo(id).isEntry) {
- code =
- getDynamicPackagesEntryIntro(dynamicRequireModuleDirPaths, dynamicRequireModuleSet) + code;
- }
-
- const { isEsModule, hasDefaultExport, hasNamedExports, ast } = analyzeTopLevelStatements(
- this.parse,
- code,
- id
- );
- if (hasDefaultExport) {
- esModulesWithDefaultExport.add(id);
- }
- if (hasNamedExports) {
- esModulesWithNamedExports.add(id);
- }
-
- if (
- !dynamicRequireModuleSet.has(normalizePathSlashes(id)) &&
- (!hasCjsKeywords(code, ignoreGlobal) || (isEsModule && !options.transformMixedEsModules))
- ) {
- return { meta: { commonjs: { isCommonJS: false } } };
- }
-
- let disableWrap = false;
-
- // avoid wrapping in createCommonjsModule, as this is a commonjsRegister call
- if (isModuleRegisterProxy(id)) {
- disableWrap = true;
- id = unwrapModuleRegisterProxy(id);
- }
-
- return transformCommonjs(
- this.parse,
- code,
- id,
- isEsModule,
- ignoreGlobal || isEsModule,
- ignoreRequire,
- getIgnoreTryCatchRequireStatementMode,
- sourceMap,
- isDynamicRequireModulesEnabled,
- dynamicRequireModuleSet,
- disableWrap,
- commonDir,
- ast
- );
- }
-
- return {
- name: 'commonjs',
-
- buildStart() {
- validateRollupVersion(this.meta.rollupVersion, peerDependencies.rollup);
- if (options.namedExports != null) {
- this.warn(
- 'The namedExports option from "@rollup/plugin-commonjs" is deprecated. Named exports are now handled automatically.'
- );
- }
- },
-
- resolveId,
-
- load(id) {
- if (id === HELPERS_ID) {
- return getHelpersModule(isDynamicRequireModulesEnabled);
- }
-
- if (id.startsWith(HELPERS_ID)) {
- return getSpecificHelperProxy(id);
- }
-
- if (isWrappedId(id, EXTERNAL_SUFFIX)) {
- const actualId = unwrapId(id, EXTERNAL_SUFFIX);
- return getUnknownRequireProxy(
- actualId,
- isEsmExternal(actualId) ? getRequireReturnsDefault(actualId) : true
- );
- }
-
- if (id === DYNAMIC_PACKAGES_ID) {
- return getDynamicPackagesModule(dynamicRequireModuleDirPaths, commonDir);
- }
-
- if (id.startsWith(DYNAMIC_JSON_PREFIX)) {
- return getDynamicJsonProxy(id, commonDir);
- }
-
- if (isDynamicModuleImport(id, dynamicRequireModuleSet)) {
- return `export default require(${JSON.stringify(normalizePathSlashes(id))});`;
- }
-
- if (isModuleRegisterProxy(id)) {
- return getDynamicRequireProxy(
- normalizePathSlashes(unwrapModuleRegisterProxy(id)),
- commonDir
- );
- }
-
- if (isWrappedId(id, PROXY_SUFFIX)) {
- const actualId = unwrapId(id, PROXY_SUFFIX);
- return getStaticRequireProxy(
- actualId,
- getRequireReturnsDefault(actualId),
- esModulesWithDefaultExport,
- esModulesWithNamedExports
- );
- }
-
- return null;
- },
-
- transform(code, rawId) {
- let id = rawId;
-
- if (isModuleRegisterProxy(id)) {
- id = unwrapModuleRegisterProxy(id);
- }
-
- const extName = extname(id);
- if (
- extName !== '.cjs' &&
- id !== DYNAMIC_PACKAGES_ID &&
- !id.startsWith(DYNAMIC_JSON_PREFIX) &&
- (!filter(id) || !extensions.includes(extName))
- ) {
- return null;
- }
-
- try {
- return transformAndCheckExports.call(this, code, rawId);
- } catch (err) {
- return this.error(err, err.loc);
- }
- },
-
- moduleParsed({ id, meta: { commonjs } }) {
- if (commonjs) {
- const isCjs = commonjs.isCommonJS;
- if (isCjs != null) {
- setIsCjsPromise(id, isCjs);
- return;
- }
- }
- setIsCjsPromise(id, null);
- }
- };
-}
-
-export default commonjs;
-//# sourceMappingURL=index.es.js.map
diff --git a/node_modules/@rollup/plugin-commonjs/dist/index.es.js.map b/node_modules/@rollup/plugin-commonjs/dist/index.es.js.map
deleted file mode 100644
index 4133eb4d3a..0000000000
--- a/node_modules/@rollup/plugin-commonjs/dist/index.es.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.es.js","sources":["../src/parse.js","../src/analyze-top-level-statements.js","../src/helpers.js","../src/utils.js","../src/dynamic-packages-manager.js","../src/dynamic-require-paths.js","../src/is-cjs.js","../src/proxies.js","../src/resolve-id.js","../src/rollup-version.js","../src/ast-utils.js","../src/generate-exports.js","../src/generate-imports.js","../src/transform-commonjs.js","../src/index.js"],"sourcesContent":["export function tryParse(parse, code, id) {\n try {\n return parse(code, { allowReturnOutsideFunction: true });\n } catch (err) {\n err.message += ` in ${id}`;\n throw err;\n }\n}\n\nconst firstpassGlobal = /\\b(?:require|module|exports|global)\\b/;\n\nconst firstpassNoGlobal = /\\b(?:require|module|exports)\\b/;\n\nexport function hasCjsKeywords(code, ignoreGlobal) {\n const firstpass = ignoreGlobal ? firstpassNoGlobal : firstpassGlobal;\n return firstpass.test(code);\n}\n","/* eslint-disable no-underscore-dangle */\n\nimport { tryParse } from './parse';\n\nexport default function analyzeTopLevelStatements(parse, code, id) {\n const ast = tryParse(parse, code, id);\n\n let isEsModule = false;\n let hasDefaultExport = false;\n let hasNamedExports = false;\n\n for (const node of ast.body) {\n switch (node.type) {\n case 'ExportDefaultDeclaration':\n isEsModule = true;\n hasDefaultExport = true;\n break;\n case 'ExportNamedDeclaration':\n isEsModule = true;\n if (node.declaration) {\n hasNamedExports = true;\n } else {\n for (const specifier of node.specifiers) {\n if (specifier.exported.name === 'default') {\n hasDefaultExport = true;\n } else {\n hasNamedExports = true;\n }\n }\n }\n break;\n case 'ExportAllDeclaration':\n isEsModule = true;\n if (node.exported && node.exported.name === 'default') {\n hasDefaultExport = true;\n } else {\n hasNamedExports = true;\n }\n break;\n case 'ImportDeclaration':\n isEsModule = true;\n break;\n default:\n }\n }\n\n return { isEsModule, hasDefaultExport, hasNamedExports, ast };\n}\n","export const isWrappedId = (id, suffix) => id.endsWith(suffix);\nexport const wrapId = (id, suffix) => `\\0${id}${suffix}`;\nexport const unwrapId = (wrappedId, suffix) => wrappedId.slice(1, -suffix.length);\n\nexport const PROXY_SUFFIX = '?commonjs-proxy';\nexport const REQUIRE_SUFFIX = '?commonjs-require';\nexport const EXTERNAL_SUFFIX = '?commonjs-external';\n\nexport const DYNAMIC_REGISTER_SUFFIX = '?commonjs-dynamic-register';\nexport const DYNAMIC_JSON_PREFIX = '\\0commonjs-dynamic-json:';\nexport const DYNAMIC_PACKAGES_ID = '\\0commonjs-dynamic-packages';\n\nexport const HELPERS_ID = '\\0commonjsHelpers.js';\n\n// `x['default']` is used instead of `x.default` for backward compatibility with ES3 browsers.\n// Minifiers like uglify will usually transpile it back if compatibility with ES3 is not enabled.\n// This will no longer be necessary once Rollup switches to ES6 output, likely\n// in Rollup 3\n\nconst HELPERS = `\nexport var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function getDefaultExportFromNamespaceIfPresent (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;\n}\n\nexport function getDefaultExportFromNamespaceIfNotNamed (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;\n}\n\nexport function getAugmentedNamespace(n) {\n\tif (n.__esModule) return n;\n\tvar a = Object.defineProperty({}, '__esModule', {value: true});\n\tObject.keys(n).forEach(function (k) {\n\t\tvar d = Object.getOwnPropertyDescriptor(n, k);\n\t\tObject.defineProperty(a, k, d.get ? d : {\n\t\t\tenumerable: true,\n\t\t\tget: function () {\n\t\t\t\treturn n[k];\n\t\t\t}\n\t\t});\n\t});\n\treturn a;\n}\n`;\n\nconst HELPER_NON_DYNAMIC = `\nexport function createCommonjsModule(fn) {\n var module = { exports: {} }\n\treturn fn(module, module.exports), module.exports;\n}\n\nexport function commonjsRequire (target) {\n\tthrow new Error('Could not dynamically require \"' + target + '\". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.');\n}\n`;\n\nconst HELPERS_DYNAMIC = `\nexport function createCommonjsModule(fn, basedir, module) {\n\treturn module = {\n\t\tpath: basedir,\n\t\texports: {},\n\t\trequire: function (path, base) {\n\t\t\treturn commonjsRequire(path, (base === undefined || base === null) ? module.path : base);\n\t\t}\n\t}, fn(module, module.exports), module.exports;\n}\n\nexport function commonjsRegister (path, loader) {\n\tDYNAMIC_REQUIRE_LOADERS[path] = loader;\n}\n\nconst DYNAMIC_REQUIRE_LOADERS = Object.create(null);\nconst DYNAMIC_REQUIRE_CACHE = Object.create(null);\nconst DEFAULT_PARENT_MODULE = {\n\tid: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []\n};\nconst CHECKED_EXTENSIONS = ['', '.js', '.json'];\n\nfunction normalize (path) {\n\tpath = path.replace(/\\\\\\\\/g, '/');\n\tconst parts = path.split('/');\n\tconst slashed = parts[0] === '';\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] === '.' || parts[i] === '') {\n\t\t\tparts.splice(i--, 1);\n\t\t}\n\t}\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] !== '..') continue;\n\t\tif (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {\n\t\t\tparts.splice(--i, 2);\n\t\t\ti--;\n\t\t}\n\t}\n\tpath = parts.join('/');\n\tif (slashed && path[0] !== '/')\n\t path = '/' + path;\n\telse if (path.length === 0)\n\t path = '.';\n\treturn path;\n}\n\nfunction join () {\n\tif (arguments.length === 0)\n\t return '.';\n\tlet joined;\n\tfor (let i = 0; i < arguments.length; ++i) {\n\t let arg = arguments[i];\n\t if (arg.length > 0) {\n\t\tif (joined === undefined)\n\t\t joined = arg;\n\t\telse\n\t\t joined += '/' + arg;\n\t }\n\t}\n\tif (joined === undefined)\n\t return '.';\n\n\treturn joined;\n}\n\nfunction isPossibleNodeModulesPath (modulePath) {\n\tlet c0 = modulePath[0];\n\tif (c0 === '/' || c0 === '\\\\\\\\') return false;\n\tlet c1 = modulePath[1], c2 = modulePath[2];\n\tif ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\\\\\')) ||\n\t\t(c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\\\\\'))) return false;\n\tif (c1 === ':' && (c2 === '/' || c2 === '\\\\\\\\'))\n\t\treturn false;\n\treturn true;\n}\n\nfunction dirname (path) {\n if (path.length === 0)\n return '.';\n\n let i = path.length - 1;\n while (i > 0) {\n const c = path.charCodeAt(i);\n if ((c === 47 || c === 92) && i !== path.length - 1)\n break;\n i--;\n }\n\n if (i > 0)\n return path.substr(0, i);\n\n if (path.chartCodeAt(0) === 47 || path.chartCodeAt(0) === 92)\n return path.charAt(0);\n\n return '.';\n}\n\nexport function commonjsResolveImpl (path, originalModuleDir, testCache) {\n\tconst shouldTryNodeModules = isPossibleNodeModulesPath(path);\n\tpath = normalize(path);\n\tlet relPath;\n\tif (path[0] === '/') {\n\t\toriginalModuleDir = '/';\n\t}\n\twhile (true) {\n\t\tif (!shouldTryNodeModules) {\n\t\t\trelPath = originalModuleDir ? normalize(originalModuleDir + '/' + path) : path;\n\t\t} else if (originalModuleDir) {\n\t\t\trelPath = normalize(originalModuleDir + '/node_modules/' + path);\n\t\t} else {\n\t\t\trelPath = normalize(join('node_modules', path));\n\t\t}\n\n\t\tif (relPath.endsWith('/..')) {\n\t\t\tbreak; // Travelled too far up, avoid infinite loop\n\t\t}\n\n\t\tfor (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {\n\t\t\tconst resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];\n\t\t\tif (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {\n\t\t\t\treturn resolvedPath;\n\t\t\t};\n\t\t\tif (DYNAMIC_REQUIRE_LOADERS[resolvedPath]) {\n\t\t\t\treturn resolvedPath;\n\t\t\t};\n\t\t}\n\t\tif (!shouldTryNodeModules) break;\n\t\tconst nextDir = normalize(originalModuleDir + '/..');\n\t\tif (nextDir === originalModuleDir) break;\n\t\toriginalModuleDir = nextDir;\n\t}\n\treturn null;\n}\n\nexport function commonjsResolve (path, originalModuleDir) {\n\tconst resolvedPath = commonjsResolveImpl(path, originalModuleDir);\n\tif (resolvedPath !== null) {\n\t\treturn resolvedPath;\n\t}\n\treturn require.resolve(path);\n}\n\nexport function commonjsRequire (path, originalModuleDir) {\n\tconst resolvedPath = commonjsResolveImpl(path, originalModuleDir, true);\n\tif (resolvedPath !== null) {\n let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];\n if (cachedModule) return cachedModule.exports;\n const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];\n if (loader) {\n DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {\n id: resolvedPath,\n filename: resolvedPath,\n path: dirname(resolvedPath),\n exports: {},\n parent: DEFAULT_PARENT_MODULE,\n loaded: false,\n children: [],\n paths: [],\n require: function (path, base) {\n return commonjsRequire(path, (base === undefined || base === null) ? cachedModule.path : base);\n }\n };\n try {\n loader.call(commonjsGlobal, cachedModule, cachedModule.exports);\n } catch (error) {\n delete DYNAMIC_REQUIRE_CACHE[resolvedPath];\n throw error;\n }\n cachedModule.loaded = true;\n return cachedModule.exports;\n };\n\t}\n\treturn require(path);\n}\n\ncommonjsRequire.cache = DYNAMIC_REQUIRE_CACHE;\ncommonjsRequire.resolve = commonjsResolve;\n`;\n\nexport function getHelpersModule(isDynamicRequireModulesEnabled) {\n return `${HELPERS}${isDynamicRequireModulesEnabled ? HELPERS_DYNAMIC : HELPER_NON_DYNAMIC}`;\n}\n","/* eslint-disable import/prefer-default-export */\n\nimport { basename, dirname, extname, sep } from 'path';\n\nimport { makeLegalIdentifier } from '@rollup/pluginutils';\n\nexport function deconflict(scope, globals, identifier) {\n let i = 1;\n let deconflicted = makeLegalIdentifier(identifier);\n\n while (scope.contains(deconflicted) || globals.has(deconflicted)) {\n deconflicted = makeLegalIdentifier(`${identifier}_${i}`);\n i += 1;\n }\n // eslint-disable-next-line no-param-reassign\n scope.declarations[deconflicted] = true;\n\n return deconflicted;\n}\n\nexport function getName(id) {\n const name = makeLegalIdentifier(basename(id, extname(id)));\n if (name !== 'index') {\n return name;\n }\n const segments = dirname(id).split(sep);\n return makeLegalIdentifier(segments[segments.length - 1]);\n}\n\nexport function normalizePathSlashes(path) {\n return path.replace(/\\\\/g, '/');\n}\n\nconst VIRTUAL_PATH_BASE = '/$$rollup_base$$';\nexport const getVirtualPathForDynamicRequirePath = (path, commonDir) => {\n const normalizedPath = normalizePathSlashes(path);\n return normalizedPath.startsWith(commonDir)\n ? VIRTUAL_PATH_BASE + normalizedPath.slice(commonDir.length)\n : normalizedPath;\n};\n","import { existsSync, readFileSync } from 'fs';\nimport { join } from 'path';\n\nimport {\n DYNAMIC_PACKAGES_ID,\n DYNAMIC_REGISTER_SUFFIX,\n HELPERS_ID,\n isWrappedId,\n unwrapId,\n wrapId\n} from './helpers';\nimport { getVirtualPathForDynamicRequirePath, normalizePathSlashes } from './utils';\n\nexport function getPackageEntryPoint(dirPath) {\n let entryPoint = 'index.js';\n\n try {\n if (existsSync(join(dirPath, 'package.json'))) {\n entryPoint =\n JSON.parse(readFileSync(join(dirPath, 'package.json'), { encoding: 'utf8' })).main ||\n entryPoint;\n }\n } catch (ignored) {\n // ignored\n }\n\n return entryPoint;\n}\n\nexport function getDynamicPackagesModule(dynamicRequireModuleDirPaths, commonDir) {\n let code = `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');`;\n for (const dir of dynamicRequireModuleDirPaths) {\n const entryPoint = getPackageEntryPoint(dir);\n\n code += `\\ncommonjsRegister(${JSON.stringify(\n getVirtualPathForDynamicRequirePath(dir, commonDir)\n )}, function (module, exports) {\n module.exports = require(${JSON.stringify(normalizePathSlashes(join(dir, entryPoint)))});\n});`;\n }\n return code;\n}\n\nexport function getDynamicPackagesEntryIntro(\n dynamicRequireModuleDirPaths,\n dynamicRequireModuleSet\n) {\n let dynamicImports = Array.from(\n dynamicRequireModuleSet,\n (dynamicId) => `require(${JSON.stringify(wrapModuleRegisterProxy(dynamicId))});`\n ).join('\\n');\n\n if (dynamicRequireModuleDirPaths.length) {\n dynamicImports += `require(${JSON.stringify(wrapModuleRegisterProxy(DYNAMIC_PACKAGES_ID))});`;\n }\n\n return dynamicImports;\n}\n\nexport function wrapModuleRegisterProxy(id) {\n return wrapId(id, DYNAMIC_REGISTER_SUFFIX);\n}\n\nexport function unwrapModuleRegisterProxy(id) {\n return unwrapId(id, DYNAMIC_REGISTER_SUFFIX);\n}\n\nexport function isModuleRegisterProxy(id) {\n return isWrappedId(id, DYNAMIC_REGISTER_SUFFIX);\n}\n\nexport function isDynamicModuleImport(id, dynamicRequireModuleSet) {\n const normalizedPath = normalizePathSlashes(id);\n return dynamicRequireModuleSet.has(normalizedPath) && !normalizedPath.endsWith('.json');\n}\n","import { statSync } from 'fs';\n\nimport { join, resolve } from 'path';\n\nimport glob from 'glob';\n\nimport { normalizePathSlashes } from './utils';\nimport { getPackageEntryPoint } from './dynamic-packages-manager';\n\nfunction isDirectory(path) {\n try {\n if (statSync(path).isDirectory()) return true;\n } catch (ignored) {\n // Nothing to do here\n }\n return false;\n}\n\nexport default function getDynamicRequirePaths(patterns) {\n const dynamicRequireModuleSet = new Set();\n for (const pattern of !patterns || Array.isArray(patterns) ? patterns || [] : [patterns]) {\n const isNegated = pattern.startsWith('!');\n const modifySet = Set.prototype[isNegated ? 'delete' : 'add'].bind(dynamicRequireModuleSet);\n for (const path of glob.sync(isNegated ? pattern.substr(1) : pattern)) {\n modifySet(normalizePathSlashes(resolve(path)));\n if (isDirectory(path)) {\n modifySet(normalizePathSlashes(resolve(join(path, getPackageEntryPoint(path)))));\n }\n }\n }\n const dynamicRequireModuleDirPaths = Array.from(dynamicRequireModuleSet.values()).filter((path) =>\n isDirectory(path)\n );\n return { dynamicRequireModuleSet, dynamicRequireModuleDirPaths };\n}\n","const isCjsPromises = new Map();\n\nexport function getIsCjsPromise(id) {\n let isCjsPromise = isCjsPromises.get(id);\n if (isCjsPromise) return isCjsPromise.promise;\n\n const promise = new Promise((resolve) => {\n isCjsPromise = {\n resolve,\n promise: null\n };\n isCjsPromises.set(id, isCjsPromise);\n });\n isCjsPromise.promise = promise;\n\n return promise;\n}\n\nexport function setIsCjsPromise(id, resolution) {\n const isCjsPromise = isCjsPromises.get(id);\n if (isCjsPromise) {\n if (isCjsPromise.resolve) {\n isCjsPromise.resolve(resolution);\n isCjsPromise.resolve = null;\n }\n } else {\n isCjsPromises.set(id, { promise: Promise.resolve(resolution), resolve: null });\n }\n}\n","import { readFileSync } from 'fs';\n\nimport { DYNAMIC_JSON_PREFIX, HELPERS_ID } from './helpers';\nimport { getIsCjsPromise } from './is-cjs';\nimport { getName, getVirtualPathForDynamicRequirePath, normalizePathSlashes } from './utils';\n\n// e.g. id === \"commonjsHelpers?commonjsRegister\"\nexport function getSpecificHelperProxy(id) {\n return `export {${id.split('?')[1]} as default} from '${HELPERS_ID}';`;\n}\n\nexport function getUnknownRequireProxy(id, requireReturnsDefault) {\n if (requireReturnsDefault === true || id.endsWith('.json')) {\n return `export {default} from ${JSON.stringify(id)};`;\n }\n const name = getName(id);\n const exported =\n requireReturnsDefault === 'auto'\n ? `import {getDefaultExportFromNamespaceIfNotNamed} from \"${HELPERS_ID}\"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(${name});`\n : requireReturnsDefault === 'preferred'\n ? `import {getDefaultExportFromNamespaceIfPresent} from \"${HELPERS_ID}\"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfPresent(${name});`\n : !requireReturnsDefault\n ? `import {getAugmentedNamespace} from \"${HELPERS_ID}\"; export default /*@__PURE__*/getAugmentedNamespace(${name});`\n : `export default ${name};`;\n return `import * as ${name} from ${JSON.stringify(id)}; ${exported}`;\n}\n\nexport function getDynamicJsonProxy(id, commonDir) {\n const normalizedPath = normalizePathSlashes(id.slice(DYNAMIC_JSON_PREFIX.length));\n return `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');\\ncommonjsRegister(${JSON.stringify(\n getVirtualPathForDynamicRequirePath(normalizedPath, commonDir)\n )}, function (module, exports) {\n module.exports = require(${JSON.stringify(normalizedPath)});\n});`;\n}\n\nexport function getDynamicRequireProxy(normalizedPath, commonDir) {\n return `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');\\ncommonjsRegister(${JSON.stringify(\n getVirtualPathForDynamicRequirePath(normalizedPath, commonDir)\n )}, function (module, exports) {\n ${readFileSync(normalizedPath, { encoding: 'utf8' })}\n});`;\n}\n\nexport async function getStaticRequireProxy(\n id,\n requireReturnsDefault,\n esModulesWithDefaultExport,\n esModulesWithNamedExports\n) {\n const name = getName(id);\n const isCjs = await getIsCjsPromise(id);\n if (isCjs) {\n return `import { __moduleExports } from ${JSON.stringify(id)}; export default __moduleExports;`;\n } else if (isCjs === null) {\n return getUnknownRequireProxy(id, requireReturnsDefault);\n } else if (!requireReturnsDefault) {\n return `import {getAugmentedNamespace} from \"${HELPERS_ID}\"; import * as ${name} from ${JSON.stringify(\n id\n )}; export default /*@__PURE__*/getAugmentedNamespace(${name});`;\n } else if (\n requireReturnsDefault !== true &&\n (requireReturnsDefault === 'namespace' ||\n !esModulesWithDefaultExport.has(id) ||\n (requireReturnsDefault === 'auto' && esModulesWithNamedExports.has(id)))\n ) {\n return `import * as ${name} from ${JSON.stringify(id)}; export default ${name};`;\n }\n return `export {default} from ${JSON.stringify(id)};`;\n}\n","/* eslint-disable no-param-reassign, no-undefined */\n\nimport { statSync } from 'fs';\nimport { dirname, resolve, sep } from 'path';\n\nimport {\n DYNAMIC_JSON_PREFIX,\n DYNAMIC_PACKAGES_ID,\n EXTERNAL_SUFFIX,\n HELPERS_ID,\n isWrappedId,\n PROXY_SUFFIX,\n REQUIRE_SUFFIX,\n unwrapId,\n wrapId\n} from './helpers';\nimport {\n isModuleRegisterProxy,\n unwrapModuleRegisterProxy,\n wrapModuleRegisterProxy\n} from './dynamic-packages-manager';\n\nfunction getCandidatesForExtension(resolved, extension) {\n return [resolved + extension, `${resolved}${sep}index${extension}`];\n}\n\nfunction getCandidates(resolved, extensions) {\n return extensions.reduce(\n (paths, extension) => paths.concat(getCandidatesForExtension(resolved, extension)),\n [resolved]\n );\n}\n\nexport default function getResolveId(extensions) {\n function resolveExtensions(importee, importer) {\n // not our problem\n if (importee[0] !== '.' || !importer) return undefined;\n\n const resolved = resolve(dirname(importer), importee);\n const candidates = getCandidates(resolved, extensions);\n\n for (let i = 0; i < candidates.length; i += 1) {\n try {\n const stats = statSync(candidates[i]);\n if (stats.isFile()) return { id: candidates[i] };\n } catch (err) {\n /* noop */\n }\n }\n\n return undefined;\n }\n\n return function resolveId(importee, rawImporter) {\n const importer =\n rawImporter && isModuleRegisterProxy(rawImporter)\n ? unwrapModuleRegisterProxy(rawImporter)\n : rawImporter;\n\n // Proxies are only importing resolved ids, no need to resolve again\n if (importer && isWrappedId(importer, PROXY_SUFFIX)) {\n return importee;\n }\n\n const isProxyModule = isWrappedId(importee, PROXY_SUFFIX);\n const isRequiredModule = isWrappedId(importee, REQUIRE_SUFFIX);\n let isModuleRegistration = false;\n\n if (isProxyModule) {\n importee = unwrapId(importee, PROXY_SUFFIX);\n } else if (isRequiredModule) {\n importee = unwrapId(importee, REQUIRE_SUFFIX);\n\n isModuleRegistration = isModuleRegisterProxy(importee);\n if (isModuleRegistration) {\n importee = unwrapModuleRegisterProxy(importee);\n }\n }\n\n if (\n importee.startsWith(HELPERS_ID) ||\n importee === DYNAMIC_PACKAGES_ID ||\n importee.startsWith(DYNAMIC_JSON_PREFIX)\n ) {\n return importee;\n }\n\n if (importee.startsWith('\\0')) {\n return null;\n }\n\n return this.resolve(importee, importer, {\n skipSelf: true,\n custom: { 'node-resolve': { isRequire: isProxyModule || isRequiredModule } }\n }).then((resolved) => {\n if (!resolved) {\n resolved = resolveExtensions(importee, importer);\n }\n if (resolved && isProxyModule) {\n resolved.id = wrapId(resolved.id, resolved.external ? EXTERNAL_SUFFIX : PROXY_SUFFIX);\n resolved.external = false;\n } else if (resolved && isModuleRegistration) {\n resolved.id = wrapModuleRegisterProxy(resolved.id);\n } else if (!resolved && (isProxyModule || isRequiredModule)) {\n return { id: wrapId(importee, EXTERNAL_SUFFIX), external: false };\n }\n return resolved;\n });\n };\n}\n","export default function validateRollupVersion(rollupVersion, peerDependencyVersion) {\n const [major, minor] = rollupVersion.split('.').map(Number);\n const versionRegexp = /\\^(\\d+\\.\\d+)\\.\\d+/g;\n let minMajor = Infinity;\n let minMinor = Infinity;\n let foundVersion;\n // eslint-disable-next-line no-cond-assign\n while ((foundVersion = versionRegexp.exec(peerDependencyVersion))) {\n const [foundMajor, foundMinor] = foundVersion[1].split('.').map(Number);\n if (foundMajor < minMajor) {\n minMajor = foundMajor;\n minMinor = foundMinor;\n }\n }\n if (major < minMajor || (major === minMajor && minor < minMinor)) {\n throw new Error(\n `Insufficient Rollup version: \"@rollup/plugin-commonjs\" requires at least rollup@${minMajor}.${minMinor} but found rollup@${rollupVersion}.`\n );\n }\n}\n","export { default as isReference } from 'is-reference';\n\nconst operators = {\n '==': (x) => equals(x.left, x.right, false),\n\n '!=': (x) => not(operators['=='](x)),\n\n '===': (x) => equals(x.left, x.right, true),\n\n '!==': (x) => not(operators['==='](x)),\n\n '!': (x) => isFalsy(x.argument),\n\n '&&': (x) => isTruthy(x.left) && isTruthy(x.right),\n\n '||': (x) => isTruthy(x.left) || isTruthy(x.right)\n};\n\nfunction not(value) {\n return value === null ? value : !value;\n}\n\nfunction equals(a, b, strict) {\n if (a.type !== b.type) return null;\n // eslint-disable-next-line eqeqeq\n if (a.type === 'Literal') return strict ? a.value === b.value : a.value == b.value;\n return null;\n}\n\nexport function isTruthy(node) {\n if (!node) return false;\n if (node.type === 'Literal') return !!node.value;\n if (node.type === 'ParenthesizedExpression') return isTruthy(node.expression);\n if (node.operator in operators) return operators[node.operator](node);\n return null;\n}\n\nexport function isFalsy(node) {\n return not(isTruthy(node));\n}\n\nexport function getKeypath(node) {\n const parts = [];\n\n while (node.type === 'MemberExpression') {\n if (node.computed) return null;\n\n parts.unshift(node.property.name);\n // eslint-disable-next-line no-param-reassign\n node = node.object;\n }\n\n if (node.type !== 'Identifier') return null;\n\n const { name } = node;\n parts.unshift(name);\n\n return { name, keypath: parts.join('.') };\n}\n\nexport const KEY_COMPILED_ESM = '__esModule';\n\nexport function isDefineCompiledEsm(node) {\n const definedProperty =\n getDefinePropertyCallName(node, 'exports') || getDefinePropertyCallName(node, 'module.exports');\n if (definedProperty && definedProperty.key === KEY_COMPILED_ESM) {\n return isTruthy(definedProperty.value);\n }\n return false;\n}\n\nfunction getDefinePropertyCallName(node, targetName) {\n const targetNames = targetName.split('.');\n\n const {\n callee: { object, property }\n } = node;\n if (!object || object.type !== 'Identifier' || object.name !== 'Object') return;\n if (!property || property.type !== 'Identifier' || property.name !== 'defineProperty') return;\n if (node.arguments.length !== 3) return;\n\n const [target, key, value] = node.arguments;\n if (targetNames.length === 1) {\n if (target.type !== 'Identifier' || target.name !== targetNames[0]) {\n return;\n }\n }\n\n if (targetNames.length === 2) {\n if (\n target.type !== 'MemberExpression' ||\n target.object.name !== targetNames[0] ||\n target.property.name !== targetNames[1]\n ) {\n return;\n }\n }\n\n if (value.type !== 'ObjectExpression' || !value.properties) return;\n\n const valueProperty = value.properties.find((p) => p.key && p.key.name === 'value');\n if (!valueProperty || !valueProperty.value) return;\n\n // eslint-disable-next-line consistent-return\n return { key: key.value, value: valueProperty.value };\n}\n\nexport function isLocallyShadowed(name, scope) {\n while (scope.parent) {\n if (scope.declarations[name]) {\n return true;\n }\n // eslint-disable-next-line no-param-reassign\n scope = scope.parent;\n }\n return false;\n}\n\nexport function isShorthandProperty(parent) {\n return parent && parent.type === 'Property' && parent.shorthand;\n}\n","export function wrapCode(magicString, uses, moduleName, HELPERS_NAME, virtualDynamicRequirePath) {\n const args = `module${uses.exports ? ', exports' : ''}`;\n\n magicString\n .trim()\n .prepend(`var ${moduleName} = ${HELPERS_NAME}.createCommonjsModule(function (${args}) {\\n`)\n .append(\n `\\n}${virtualDynamicRequirePath ? `, ${JSON.stringify(virtualDynamicRequirePath)}` : ''});`\n );\n}\n\nexport function rewriteExportsAndGetExportsBlock(\n magicString,\n moduleName,\n wrapped,\n topLevelModuleExportsAssignments,\n topLevelExportsAssignmentsByName,\n defineCompiledEsmExpressions,\n deconflict,\n isRestorableCompiledEsm,\n code,\n uses,\n HELPERS_NAME\n) {\n const namedExportDeclarations = [`export { ${moduleName} as __moduleExports };`];\n const moduleExportsPropertyAssignments = [];\n let deconflictedDefaultExportName;\n\n if (!wrapped) {\n let hasModuleExportsAssignment = false;\n const namedExportProperties = [];\n\n // Collect and rewrite module.exports assignments\n for (const { left } of topLevelModuleExportsAssignments) {\n hasModuleExportsAssignment = true;\n magicString.overwrite(left.start, left.end, `var ${moduleName}`);\n }\n\n // Collect and rewrite named exports\n for (const [exportName, node] of topLevelExportsAssignmentsByName) {\n const deconflicted = deconflict(exportName);\n magicString.overwrite(node.start, node.left.end, `var ${deconflicted}`);\n\n if (exportName === 'default') {\n deconflictedDefaultExportName = deconflicted;\n } else {\n namedExportDeclarations.push(\n exportName === deconflicted\n ? `export { ${exportName} };`\n : `export { ${deconflicted} as ${exportName} };`\n );\n }\n\n if (hasModuleExportsAssignment) {\n moduleExportsPropertyAssignments.push(`${moduleName}.${exportName} = ${deconflicted};`);\n } else {\n namedExportProperties.push(`\\t${exportName}: ${deconflicted}`);\n }\n }\n\n // Regenerate CommonJS namespace\n if (!hasModuleExportsAssignment) {\n const moduleExports = `{\\n${namedExportProperties.join(',\\n')}\\n}`;\n magicString\n .trim()\n .append(\n `\\n\\nvar ${moduleName} = ${\n isRestorableCompiledEsm\n ? `/*#__PURE__*/Object.defineProperty(${moduleExports}, '__esModule', {value: true})`\n : moduleExports\n };`\n );\n }\n }\n\n // Generate default export\n const defaultExport = [];\n if (isRestorableCompiledEsm) {\n defaultExport.push(`export default ${deconflictedDefaultExportName || moduleName};`);\n } else if (\n (wrapped || deconflictedDefaultExportName) &&\n (defineCompiledEsmExpressions.length > 0 || code.indexOf('__esModule') >= 0)\n ) {\n // eslint-disable-next-line no-param-reassign\n uses.commonjsHelpers = true;\n defaultExport.push(\n `export default /*@__PURE__*/${HELPERS_NAME}.getDefaultExportFromCjs(${moduleName});`\n );\n } else {\n defaultExport.push(`export default ${moduleName};`);\n }\n\n return `\\n\\n${defaultExport\n .concat(namedExportDeclarations)\n .concat(moduleExportsPropertyAssignments)\n .join('\\n')}`;\n}\n","import { dirname, resolve } from 'path';\n\nimport { sync as nodeResolveSync } from 'resolve';\n\nimport { isLocallyShadowed } from './ast-utils';\nimport { HELPERS_ID, PROXY_SUFFIX, REQUIRE_SUFFIX, wrapId } from './helpers';\nimport { normalizePathSlashes } from './utils';\n\nexport function isRequireStatement(node, scope) {\n if (!node) return false;\n if (node.type !== 'CallExpression') return false;\n\n // Weird case of `require()` or `module.require()` without arguments\n if (node.arguments.length === 0) return false;\n\n return isRequire(node.callee, scope);\n}\n\nfunction isRequire(node, scope) {\n return (\n (node.type === 'Identifier' && node.name === 'require' && !scope.contains('require')) ||\n (node.type === 'MemberExpression' && isModuleRequire(node, scope))\n );\n}\n\nexport function isModuleRequire({ object, property }, scope) {\n return (\n object.type === 'Identifier' &&\n object.name === 'module' &&\n property.type === 'Identifier' &&\n property.name === 'require' &&\n !scope.contains('module')\n );\n}\n\nexport function isStaticRequireStatement(node, scope) {\n if (!isRequireStatement(node, scope)) return false;\n return !hasDynamicArguments(node);\n}\n\nfunction hasDynamicArguments(node) {\n return (\n node.arguments.length > 1 ||\n (node.arguments[0].type !== 'Literal' &&\n (node.arguments[0].type !== 'TemplateLiteral' || node.arguments[0].expressions.length > 0))\n );\n}\n\nconst reservedMethod = { resolve: true, cache: true, main: true };\n\nexport function isNodeRequirePropertyAccess(parent) {\n return parent && parent.property && reservedMethod[parent.property.name];\n}\n\nexport function isIgnoredRequireStatement(requiredNode, ignoreRequire) {\n return ignoreRequire(requiredNode.arguments[0].value);\n}\n\nexport function getRequireStringArg(node) {\n return node.arguments[0].type === 'Literal'\n ? node.arguments[0].value\n : node.arguments[0].quasis[0].value.cooked;\n}\n\nexport function hasDynamicModuleForPath(source, id, dynamicRequireModuleSet) {\n if (!/^(?:\\.{0,2}[/\\\\]|[A-Za-z]:[/\\\\])/.test(source)) {\n try {\n const resolvedPath = normalizePathSlashes(nodeResolveSync(source, { basedir: dirname(id) }));\n if (dynamicRequireModuleSet.has(resolvedPath)) {\n return true;\n }\n } catch (ex) {\n // Probably a node.js internal module\n return false;\n }\n\n return false;\n }\n\n for (const attemptExt of ['', '.js', '.json']) {\n const resolvedPath = normalizePathSlashes(resolve(dirname(id), source + attemptExt));\n if (dynamicRequireModuleSet.has(resolvedPath)) {\n return true;\n }\n }\n\n return false;\n}\n\nexport function getRequireHandlers() {\n const requiredSources = [];\n const requiredBySource = Object.create(null);\n const requiredByNode = new Map();\n const requireExpressionsWithUsedReturnValue = [];\n\n function addRequireStatement(sourceId, node, scope, usesReturnValue) {\n const required = getRequired(sourceId);\n requiredByNode.set(node, { scope, required });\n if (usesReturnValue) {\n required.nodesUsingRequired.push(node);\n requireExpressionsWithUsedReturnValue.push(node);\n }\n }\n\n function getRequired(sourceId) {\n if (!requiredBySource[sourceId]) {\n requiredSources.push(sourceId);\n\n requiredBySource[sourceId] = {\n source: sourceId,\n name: null,\n nodesUsingRequired: []\n };\n }\n\n return requiredBySource[sourceId];\n }\n\n function rewriteRequireExpressionsAndGetImportBlock(\n magicString,\n topLevelDeclarations,\n topLevelRequireDeclarators,\n reassignedNames,\n helpersNameIfUsed,\n dynamicRegisterSources\n ) {\n const removedDeclarators = getDeclaratorsReplacedByImportsAndSetImportNames(\n topLevelRequireDeclarators,\n requiredByNode,\n reassignedNames\n );\n setRemainingImportNamesAndRewriteRequires(\n requireExpressionsWithUsedReturnValue,\n requiredByNode,\n magicString\n );\n removeDeclaratorsFromDeclarations(topLevelDeclarations, removedDeclarators, magicString);\n const importBlock = `${(helpersNameIfUsed\n ? [`import * as ${helpersNameIfUsed} from '${HELPERS_ID}';`]\n : []\n )\n .concat(\n // dynamic registers first, as the may be required in the other modules\n [...dynamicRegisterSources].map((source) => `import '${wrapId(source, REQUIRE_SUFFIX)}';`),\n\n // now the actual modules so that they are analyzed before creating the proxies;\n // no need to do this for virtual modules as we never proxy them\n requiredSources\n .filter((source) => !source.startsWith('\\0'))\n .map((source) => `import '${wrapId(source, REQUIRE_SUFFIX)}';`),\n\n // now the proxy modules\n requiredSources.map((source) => {\n const { name, nodesUsingRequired } = requiredBySource[source];\n return `import ${nodesUsingRequired.length ? `${name} from ` : ``}'${\n source.startsWith('\\0') ? source : wrapId(source, PROXY_SUFFIX)\n }';`;\n })\n )\n .join('\\n')}`;\n return importBlock ? `${importBlock}\\n\\n` : '';\n }\n\n return {\n addRequireStatement,\n requiredSources,\n rewriteRequireExpressionsAndGetImportBlock\n };\n}\n\nfunction getDeclaratorsReplacedByImportsAndSetImportNames(\n topLevelRequireDeclarators,\n requiredByNode,\n reassignedNames\n) {\n const removedDeclarators = new Set();\n for (const declarator of topLevelRequireDeclarators) {\n const { required } = requiredByNode.get(declarator.init);\n if (!required.name) {\n const potentialName = declarator.id.name;\n if (\n !reassignedNames.has(potentialName) &&\n !required.nodesUsingRequired.some((node) =>\n isLocallyShadowed(potentialName, requiredByNode.get(node).scope)\n )\n ) {\n required.name = potentialName;\n removedDeclarators.add(declarator);\n }\n }\n }\n return removedDeclarators;\n}\n\nfunction setRemainingImportNamesAndRewriteRequires(\n requireExpressionsWithUsedReturnValue,\n requiredByNode,\n magicString\n) {\n let uid = 0;\n for (const requireExpression of requireExpressionsWithUsedReturnValue) {\n const { required } = requiredByNode.get(requireExpression);\n if (!required.name) {\n let potentialName;\n const isUsedName = (node) => requiredByNode.get(node).scope.contains(potentialName);\n do {\n potentialName = `require$$${uid}`;\n uid += 1;\n } while (required.nodesUsingRequired.some(isUsedName));\n required.name = potentialName;\n }\n magicString.overwrite(requireExpression.start, requireExpression.end, required.name);\n }\n}\n\nfunction removeDeclaratorsFromDeclarations(topLevelDeclarations, removedDeclarators, magicString) {\n for (const declaration of topLevelDeclarations) {\n let keepDeclaration = false;\n let [{ start }] = declaration.declarations;\n for (const declarator of declaration.declarations) {\n if (removedDeclarators.has(declarator)) {\n magicString.remove(start, declarator.end);\n } else if (!keepDeclaration) {\n magicString.remove(start, declarator.start);\n keepDeclaration = true;\n }\n start = declarator.end;\n }\n if (!keepDeclaration) {\n magicString.remove(declaration.start, declaration.end);\n }\n }\n}\n","/* eslint-disable no-param-reassign, no-shadow, no-underscore-dangle, no-continue */\n\nimport { dirname } from 'path';\n\nimport { attachScopes, extractAssignedNames, makeLegalIdentifier } from '@rollup/pluginutils';\nimport { walk } from 'estree-walker';\nimport MagicString from 'magic-string';\n\nimport {\n getKeypath,\n isDefineCompiledEsm,\n isFalsy,\n isReference,\n isShorthandProperty,\n isTruthy,\n KEY_COMPILED_ESM\n} from './ast-utils';\nimport { rewriteExportsAndGetExportsBlock, wrapCode } from './generate-exports';\nimport {\n getRequireHandlers,\n getRequireStringArg,\n hasDynamicModuleForPath,\n isIgnoredRequireStatement,\n isModuleRequire,\n isNodeRequirePropertyAccess,\n isRequireStatement,\n isStaticRequireStatement\n} from './generate-imports';\nimport { DYNAMIC_JSON_PREFIX } from './helpers';\nimport { tryParse } from './parse';\nimport { deconflict, getName, getVirtualPathForDynamicRequirePath } from './utils';\nimport {\n isModuleRegisterProxy,\n unwrapModuleRegisterProxy,\n wrapModuleRegisterProxy\n} from './dynamic-packages-manager';\n\nconst exportsPattern = /^(?:module\\.)?exports(?:\\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/;\n\nconst functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;\n\nexport default function transformCommonjs(\n parse,\n code,\n id,\n isEsModule,\n ignoreGlobal,\n ignoreRequire,\n getIgnoreTryCatchRequireStatementMode,\n sourceMap,\n isDynamicRequireModulesEnabled,\n dynamicRequireModuleSet,\n disableWrap,\n commonDir,\n astCache\n) {\n const ast = astCache || tryParse(parse, code, id);\n const magicString = new MagicString(code);\n const uses = {\n module: false,\n exports: false,\n global: false,\n require: false,\n commonjsHelpers: false\n };\n const virtualDynamicRequirePath =\n isDynamicRequireModulesEnabled && getVirtualPathForDynamicRequirePath(dirname(id), commonDir);\n let scope = attachScopes(ast, 'scope');\n let lexicalDepth = 0;\n let programDepth = 0;\n let currentTryBlockEnd = null;\n let shouldWrap = false;\n const defineCompiledEsmExpressions = [];\n\n const globals = new Set();\n\n // TODO technically wrong since globals isn't populated yet, but ¯\\_(ツ)_/¯\n const HELPERS_NAME = deconflict(scope, globals, 'commonjsHelpers');\n const namedExports = {};\n const dynamicRegisterSources = new Set();\n let hasRemovedRequire = false;\n\n const {\n addRequireStatement,\n requiredSources,\n rewriteRequireExpressionsAndGetImportBlock\n } = getRequireHandlers();\n\n // See which names are assigned to. This is necessary to prevent\n // illegally replacing `var foo = require('foo')` with `import foo from 'foo'`,\n // where `foo` is later reassigned. (This happens in the wild. CommonJS, sigh)\n const reassignedNames = new Set();\n const topLevelDeclarations = [];\n const topLevelRequireDeclarators = new Set();\n const skippedNodes = new Set();\n const topLevelModuleExportsAssignments = [];\n const topLevelExportsAssignmentsByName = new Map();\n\n walk(ast, {\n enter(node, parent) {\n if (skippedNodes.has(node)) {\n this.skip();\n return;\n }\n\n if (currentTryBlockEnd !== null && node.start > currentTryBlockEnd) {\n currentTryBlockEnd = null;\n }\n\n programDepth += 1;\n if (node.scope) ({ scope } = node);\n if (functionType.test(node.type)) lexicalDepth += 1;\n if (sourceMap) {\n magicString.addSourcemapLocation(node.start);\n magicString.addSourcemapLocation(node.end);\n }\n\n // eslint-disable-next-line default-case\n switch (node.type) {\n case 'TryStatement':\n if (currentTryBlockEnd === null) {\n currentTryBlockEnd = node.block.end;\n }\n return;\n case 'AssignmentExpression':\n if (node.left.type === 'MemberExpression') {\n const flattened = getKeypath(node.left);\n if (!flattened || scope.contains(flattened.name)) return;\n\n const exportsPatternMatch = exportsPattern.exec(flattened.keypath);\n if (!exportsPatternMatch || flattened.keypath === 'exports') return;\n\n const [, exportName] = exportsPatternMatch;\n uses[flattened.name] = true;\n\n // we're dealing with `module.exports = ...` or `[module.]exports.foo = ...` –\n if (programDepth > 3) {\n shouldWrap = true;\n } else if (exportName === KEY_COMPILED_ESM) {\n defineCompiledEsmExpressions.push(parent);\n } else if (flattened.keypath === 'module.exports') {\n topLevelModuleExportsAssignments.push(node);\n } else if (!topLevelExportsAssignmentsByName.has(exportName)) {\n topLevelExportsAssignmentsByName.set(exportName, node);\n } else {\n shouldWrap = true;\n }\n\n skippedNodes.add(node.left);\n\n if (flattened.keypath === 'module.exports' && node.right.type === 'ObjectExpression') {\n node.right.properties.forEach((prop) => {\n if (prop.computed || !('key' in prop) || prop.key.type !== 'Identifier') return;\n const { name } = prop.key;\n if (name === makeLegalIdentifier(name)) namedExports[name] = true;\n });\n return;\n }\n\n if (exportsPatternMatch[1]) namedExports[exportsPatternMatch[1]] = true;\n } else {\n for (const name of extractAssignedNames(node.left)) {\n reassignedNames.add(name);\n }\n }\n return;\n case 'CallExpression': {\n if (isDefineCompiledEsm(node)) {\n if (programDepth === 3 && parent.type === 'ExpressionStatement') {\n // skip special handling for [module.]exports until we know we render this\n skippedNodes.add(node.arguments[0]);\n defineCompiledEsmExpressions.push(parent);\n } else {\n shouldWrap = true;\n }\n return;\n }\n\n if (\n node.callee.object &&\n node.callee.object.name === 'require' &&\n node.callee.property.name === 'resolve' &&\n hasDynamicModuleForPath(id, '/', dynamicRequireModuleSet)\n ) {\n const requireNode = node.callee.object;\n magicString.appendLeft(\n node.end - 1,\n `,${JSON.stringify(\n dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath\n )}`\n );\n magicString.overwrite(\n requireNode.start,\n requireNode.end,\n `${HELPERS_NAME}.commonjsRequire`,\n {\n storeName: true\n }\n );\n uses.commonjsHelpers = true;\n return;\n }\n\n if (!isStaticRequireStatement(node, scope)) return;\n if (!isDynamicRequireModulesEnabled) {\n skippedNodes.add(node.callee);\n }\n if (!isIgnoredRequireStatement(node, ignoreRequire)) {\n skippedNodes.add(node.callee);\n const usesReturnValue = parent.type !== 'ExpressionStatement';\n\n let canConvertRequire = true;\n let shouldRemoveRequireStatement = false;\n\n if (currentTryBlockEnd !== null) {\n ({\n canConvertRequire,\n shouldRemoveRequireStatement\n } = getIgnoreTryCatchRequireStatementMode(node.arguments[0].value));\n\n if (shouldRemoveRequireStatement) {\n hasRemovedRequire = true;\n }\n }\n\n let sourceId = getRequireStringArg(node);\n const isDynamicRegister = isModuleRegisterProxy(sourceId);\n if (isDynamicRegister) {\n sourceId = unwrapModuleRegisterProxy(sourceId);\n if (sourceId.endsWith('.json')) {\n sourceId = DYNAMIC_JSON_PREFIX + sourceId;\n }\n dynamicRegisterSources.add(wrapModuleRegisterProxy(sourceId));\n } else {\n if (\n !sourceId.endsWith('.json') &&\n hasDynamicModuleForPath(sourceId, id, dynamicRequireModuleSet)\n ) {\n if (shouldRemoveRequireStatement) {\n magicString.overwrite(node.start, node.end, `undefined`);\n } else if (canConvertRequire) {\n magicString.overwrite(\n node.start,\n node.end,\n `${HELPERS_NAME}.commonjsRequire(${JSON.stringify(\n getVirtualPathForDynamicRequirePath(sourceId, commonDir)\n )}, ${JSON.stringify(\n dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath\n )})`\n );\n uses.commonjsHelpers = true;\n }\n return;\n }\n\n if (canConvertRequire) {\n addRequireStatement(sourceId, node, scope, usesReturnValue);\n }\n }\n\n if (usesReturnValue) {\n if (shouldRemoveRequireStatement) {\n magicString.overwrite(node.start, node.end, `undefined`);\n return;\n }\n\n if (\n parent.type === 'VariableDeclarator' &&\n !scope.parent &&\n parent.id.type === 'Identifier'\n ) {\n // This will allow us to reuse this variable name as the imported variable if it is not reassigned\n // and does not conflict with variables in other places where this is imported\n topLevelRequireDeclarators.add(parent);\n }\n } else {\n // This is a bare import, e.g. `require('foo');`\n\n if (!canConvertRequire && !shouldRemoveRequireStatement) {\n return;\n }\n\n magicString.remove(parent.start, parent.end);\n }\n }\n return;\n }\n case 'ConditionalExpression':\n case 'IfStatement':\n // skip dead branches\n if (isFalsy(node.test)) {\n skippedNodes.add(node.consequent);\n } else if (node.alternate && isTruthy(node.test)) {\n skippedNodes.add(node.alternate);\n }\n return;\n case 'Identifier': {\n const { name } = node;\n if (!(isReference(node, parent) && !scope.contains(name))) return;\n switch (name) {\n case 'require':\n if (isNodeRequirePropertyAccess(parent)) {\n if (hasDynamicModuleForPath(id, '/', dynamicRequireModuleSet)) {\n if (parent.property.name === 'cache') {\n magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {\n storeName: true\n });\n uses.commonjsHelpers = true;\n }\n }\n\n return;\n }\n\n if (isDynamicRequireModulesEnabled && isRequireStatement(parent, scope)) {\n magicString.appendLeft(\n parent.end - 1,\n `,${JSON.stringify(\n dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath\n )}`\n );\n }\n if (isShorthandProperty(parent)) {\n magicString.appendRight(node.end, `: ${HELPERS_NAME}.commonjsRequire`);\n } else {\n magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {\n storeName: true\n });\n }\n\n uses.commonjsHelpers = true;\n return;\n case 'module':\n case 'exports':\n shouldWrap = true;\n uses[name] = true;\n return;\n case 'global':\n uses.global = true;\n if (!ignoreGlobal) {\n magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n storeName: true\n });\n uses.commonjsHelpers = true;\n }\n return;\n case 'define':\n magicString.overwrite(node.start, node.end, 'undefined', { storeName: true });\n return;\n default:\n globals.add(name);\n return;\n }\n }\n case 'MemberExpression':\n if (!isDynamicRequireModulesEnabled && isModuleRequire(node, scope)) {\n magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {\n storeName: true\n });\n uses.commonjsHelpers = true;\n skippedNodes.add(node.object);\n skippedNodes.add(node.property);\n }\n return;\n case 'ReturnStatement':\n // if top-level return, we need to wrap it\n if (lexicalDepth === 0) {\n shouldWrap = true;\n }\n return;\n case 'ThisExpression':\n // rewrite top-level `this` as `commonjsHelpers.commonjsGlobal`\n if (lexicalDepth === 0) {\n uses.global = true;\n if (!ignoreGlobal) {\n magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n storeName: true\n });\n uses.commonjsHelpers = true;\n }\n }\n return;\n case 'UnaryExpression':\n // rewrite `typeof module`, `typeof module.exports` and `typeof exports` (https://github.com/rollup/rollup-plugin-commonjs/issues/151)\n if (node.operator === 'typeof') {\n const flattened = getKeypath(node.argument);\n if (!flattened) return;\n\n if (scope.contains(flattened.name)) return;\n\n if (\n flattened.keypath === 'module.exports' ||\n flattened.keypath === 'module' ||\n flattened.keypath === 'exports'\n ) {\n magicString.overwrite(node.start, node.end, `'object'`, { storeName: false });\n }\n }\n return;\n case 'VariableDeclaration':\n if (!scope.parent) {\n topLevelDeclarations.push(node);\n }\n }\n },\n\n leave(node) {\n programDepth -= 1;\n if (node.scope) scope = scope.parent;\n if (functionType.test(node.type)) lexicalDepth -= 1;\n }\n });\n\n let isRestorableCompiledEsm = false;\n if (defineCompiledEsmExpressions.length > 0) {\n if (!shouldWrap && defineCompiledEsmExpressions.length === 1) {\n isRestorableCompiledEsm = true;\n magicString.remove(\n defineCompiledEsmExpressions[0].start,\n defineCompiledEsmExpressions[0].end\n );\n } else {\n shouldWrap = true;\n uses.exports = true;\n }\n }\n\n // We cannot wrap ES/mixed modules\n shouldWrap = shouldWrap && !disableWrap && !isEsModule;\n uses.commonjsHelpers = uses.commonjsHelpers || shouldWrap;\n\n if (\n !(\n requiredSources.length ||\n dynamicRegisterSources.size ||\n uses.module ||\n uses.exports ||\n uses.require ||\n uses.commonjsHelpers ||\n hasRemovedRequire\n ) &&\n (ignoreGlobal || !uses.global)\n ) {\n return { meta: { commonjs: { isCommonJS: false } } };\n }\n\n const moduleName = deconflict(scope, globals, getName(id));\n\n let leadingComment = '';\n if (code.startsWith('/*')) {\n const commentEnd = code.indexOf('*/', 2) + 2;\n leadingComment = `${code.slice(0, commentEnd)}\\n`;\n magicString.remove(0, commentEnd).trim();\n }\n\n const exportBlock = isEsModule\n ? ''\n : rewriteExportsAndGetExportsBlock(\n magicString,\n moduleName,\n shouldWrap,\n topLevelModuleExportsAssignments,\n topLevelExportsAssignmentsByName,\n defineCompiledEsmExpressions,\n (name) => deconflict(scope, globals, name),\n isRestorableCompiledEsm,\n code,\n uses,\n HELPERS_NAME\n );\n\n const importBlock = rewriteRequireExpressionsAndGetImportBlock(\n magicString,\n topLevelDeclarations,\n topLevelRequireDeclarators,\n reassignedNames,\n uses.commonjsHelpers && HELPERS_NAME,\n dynamicRegisterSources\n );\n\n if (shouldWrap) {\n wrapCode(magicString, uses, moduleName, HELPERS_NAME, virtualDynamicRequirePath);\n }\n\n magicString\n .trim()\n .prepend(leadingComment + importBlock)\n .append(exportBlock);\n\n return {\n code: magicString.toString(),\n map: sourceMap ? magicString.generateMap() : null,\n syntheticNamedExports: isEsModule ? false : '__moduleExports',\n meta: { commonjs: { isCommonJS: !isEsModule } }\n };\n}\n","import { extname } from 'path';\n\nimport { createFilter } from '@rollup/pluginutils';\nimport getCommonDir from 'commondir';\n\nimport { peerDependencies } from '../package.json';\n\nimport analyzeTopLevelStatements from './analyze-top-level-statements';\n\nimport {\n getDynamicPackagesEntryIntro,\n getDynamicPackagesModule,\n isDynamicModuleImport,\n isModuleRegisterProxy,\n unwrapModuleRegisterProxy\n} from './dynamic-packages-manager';\nimport getDynamicRequirePaths from './dynamic-require-paths';\nimport {\n DYNAMIC_JSON_PREFIX,\n DYNAMIC_PACKAGES_ID,\n EXTERNAL_SUFFIX,\n getHelpersModule,\n HELPERS_ID,\n isWrappedId,\n PROXY_SUFFIX,\n unwrapId\n} from './helpers';\nimport { setIsCjsPromise } from './is-cjs';\nimport { hasCjsKeywords } from './parse';\nimport {\n getDynamicJsonProxy,\n getDynamicRequireProxy,\n getSpecificHelperProxy,\n getStaticRequireProxy,\n getUnknownRequireProxy\n} from './proxies';\nimport getResolveId from './resolve-id';\nimport validateRollupVersion from './rollup-version';\nimport transformCommonjs from './transform-commonjs';\nimport { normalizePathSlashes } from './utils';\n\nexport default function commonjs(options = {}) {\n const extensions = options.extensions || ['.js'];\n const filter = createFilter(options.include, options.exclude);\n const {\n ignoreGlobal,\n requireReturnsDefault: requireReturnsDefaultOption,\n esmExternals\n } = options;\n const getRequireReturnsDefault =\n typeof requireReturnsDefaultOption === 'function'\n ? requireReturnsDefaultOption\n : () => requireReturnsDefaultOption;\n let esmExternalIds;\n const isEsmExternal =\n typeof esmExternals === 'function'\n ? esmExternals\n : Array.isArray(esmExternals)\n ? ((esmExternalIds = new Set(esmExternals)), (id) => esmExternalIds.has(id))\n : () => esmExternals;\n\n const { dynamicRequireModuleSet, dynamicRequireModuleDirPaths } = getDynamicRequirePaths(\n options.dynamicRequireTargets\n );\n const isDynamicRequireModulesEnabled = dynamicRequireModuleSet.size > 0;\n const commonDir = isDynamicRequireModulesEnabled\n ? getCommonDir(null, Array.from(dynamicRequireModuleSet).concat(process.cwd()))\n : null;\n\n const esModulesWithDefaultExport = new Set();\n const esModulesWithNamedExports = new Set();\n\n const ignoreRequire =\n typeof options.ignore === 'function'\n ? options.ignore\n : Array.isArray(options.ignore)\n ? (id) => options.ignore.includes(id)\n : () => false;\n\n const getIgnoreTryCatchRequireStatementMode = (id) => {\n const mode =\n typeof options.ignoreTryCatch === 'function'\n ? options.ignoreTryCatch(id)\n : Array.isArray(options.ignoreTryCatch)\n ? options.ignoreTryCatch.includes(id)\n : options.ignoreTryCatch || false;\n\n return {\n canConvertRequire: mode !== 'remove' && mode !== true,\n shouldRemoveRequireStatement: mode === 'remove'\n };\n };\n\n const resolveId = getResolveId(extensions);\n\n const sourceMap = options.sourceMap !== false;\n\n function transformAndCheckExports(code, id) {\n if (isDynamicRequireModulesEnabled && this.getModuleInfo(id).isEntry) {\n code =\n getDynamicPackagesEntryIntro(dynamicRequireModuleDirPaths, dynamicRequireModuleSet) + code;\n }\n\n const { isEsModule, hasDefaultExport, hasNamedExports, ast } = analyzeTopLevelStatements(\n this.parse,\n code,\n id\n );\n if (hasDefaultExport) {\n esModulesWithDefaultExport.add(id);\n }\n if (hasNamedExports) {\n esModulesWithNamedExports.add(id);\n }\n\n if (\n !dynamicRequireModuleSet.has(normalizePathSlashes(id)) &&\n (!hasCjsKeywords(code, ignoreGlobal) || (isEsModule && !options.transformMixedEsModules))\n ) {\n return { meta: { commonjs: { isCommonJS: false } } };\n }\n\n let disableWrap = false;\n\n // avoid wrapping in createCommonjsModule, as this is a commonjsRegister call\n if (isModuleRegisterProxy(id)) {\n disableWrap = true;\n id = unwrapModuleRegisterProxy(id);\n }\n\n return transformCommonjs(\n this.parse,\n code,\n id,\n isEsModule,\n ignoreGlobal || isEsModule,\n ignoreRequire,\n getIgnoreTryCatchRequireStatementMode,\n sourceMap,\n isDynamicRequireModulesEnabled,\n dynamicRequireModuleSet,\n disableWrap,\n commonDir,\n ast\n );\n }\n\n return {\n name: 'commonjs',\n\n buildStart() {\n validateRollupVersion(this.meta.rollupVersion, peerDependencies.rollup);\n if (options.namedExports != null) {\n this.warn(\n 'The namedExports option from \"@rollup/plugin-commonjs\" is deprecated. Named exports are now handled automatically.'\n );\n }\n },\n\n resolveId,\n\n load(id) {\n if (id === HELPERS_ID) {\n return getHelpersModule(isDynamicRequireModulesEnabled);\n }\n\n if (id.startsWith(HELPERS_ID)) {\n return getSpecificHelperProxy(id);\n }\n\n if (isWrappedId(id, EXTERNAL_SUFFIX)) {\n const actualId = unwrapId(id, EXTERNAL_SUFFIX);\n return getUnknownRequireProxy(\n actualId,\n isEsmExternal(actualId) ? getRequireReturnsDefault(actualId) : true\n );\n }\n\n if (id === DYNAMIC_PACKAGES_ID) {\n return getDynamicPackagesModule(dynamicRequireModuleDirPaths, commonDir);\n }\n\n if (id.startsWith(DYNAMIC_JSON_PREFIX)) {\n return getDynamicJsonProxy(id, commonDir);\n }\n\n if (isDynamicModuleImport(id, dynamicRequireModuleSet)) {\n return `export default require(${JSON.stringify(normalizePathSlashes(id))});`;\n }\n\n if (isModuleRegisterProxy(id)) {\n return getDynamicRequireProxy(\n normalizePathSlashes(unwrapModuleRegisterProxy(id)),\n commonDir\n );\n }\n\n if (isWrappedId(id, PROXY_SUFFIX)) {\n const actualId = unwrapId(id, PROXY_SUFFIX);\n return getStaticRequireProxy(\n actualId,\n getRequireReturnsDefault(actualId),\n esModulesWithDefaultExport,\n esModulesWithNamedExports\n );\n }\n\n return null;\n },\n\n transform(code, rawId) {\n let id = rawId;\n\n if (isModuleRegisterProxy(id)) {\n id = unwrapModuleRegisterProxy(id);\n }\n\n const extName = extname(id);\n if (\n extName !== '.cjs' &&\n id !== DYNAMIC_PACKAGES_ID &&\n !id.startsWith(DYNAMIC_JSON_PREFIX) &&\n (!filter(id) || !extensions.includes(extName))\n ) {\n return null;\n }\n\n try {\n return transformAndCheckExports.call(this, code, rawId);\n } catch (err) {\n return this.error(err, err.loc);\n }\n },\n\n moduleParsed({ id, meta: { commonjs } }) {\n if (commonjs) {\n const isCjs = commonjs.isCommonJS;\n if (isCjs != null) {\n setIsCjsPromise(id, isCjs);\n return;\n }\n }\n setIsCjsPromise(id, null);\n }\n };\n}\n"],"names":["nodeResolveSync"],"mappings":";;;;;;;;;;;;;;AAAO,SAAS,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;AAC1C,EAAE,IAAI;AACN,IAAI,OAAO,KAAK,CAAC,IAAI,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7D,GAAG,CAAC,OAAO,GAAG,EAAE;AAChB,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/B,IAAI,MAAM,GAAG,CAAC;AACd,GAAG;AACH,CAAC;AACD;AACA,MAAM,eAAe,GAAG,uCAAuC,CAAC;AAChE;AACA,MAAM,iBAAiB,GAAG,gCAAgC,CAAC;AAC3D;AACO,SAAS,cAAc,CAAC,IAAI,EAAE,YAAY,EAAE;AACnD,EAAE,MAAM,SAAS,GAAG,YAAY,GAAG,iBAAiB,GAAG,eAAe,CAAC;AACvE,EAAE,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9B;;AChBA;AAGA;AACe,SAAS,yBAAyB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;AACnE,EAAE,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;AACxC;AACA,EAAE,IAAI,UAAU,GAAG,KAAK,CAAC;AACzB,EAAE,IAAI,gBAAgB,GAAG,KAAK,CAA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AM,KAAK,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACxD,MAAM,MAAM,GAAG,CAAC,EAAE,EAAE,MAAM,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAClD,MAAM,QAAQ,GAAG,CAAC,SAAS,EAAE,MAAM,KAAK,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAClF;AACO,MAAM,YAAY,GAAG,iBAAiB,CAAC;AACvC,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAC3C,MAAM,eAAe,GAAG,oBAAoB,CAAC;AACpD;AACO,MAAM,uBAAuB,GAAG,4BAA4B,CAAC;AAC7D,MAAM,mBAAmB,GAAG,0BAA0B,CAAC;AACvD,MAAM,mBAAmB,GAAG,6BAA6B,CAAC;AACjE;AACO,MAAM,UAAU,GAAG,sBAAsB,CAAC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,OAAO,GAAG,CAAC;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AACA,MAAM,kBAAkB,GAAG,CAAC;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AACA,MAAM,eAAe,GAAG,CAAC;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AACO,SAAS,gBAAgB,CAAC,8BAA8B,EAAE;AACjE,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,8BAA8B,GAAG,eAAe,GAAG,kBAAkB,CAAC,CAAC,CAAC;AAC9F;;AClPA;AAKA;AACO,SAAS,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE;AACvD,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;AACZ,EAAE,IAAI,YAAY,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;AACrD;AACA,EAAE,OAAO,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;AACpE,IAAI,YAAY,GAAG,mBAAmB,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7D,IAAI,CAAC,IAAI,CAAC,CAAC;AACX,GAAG;AACH;AACA,EAAE,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;AAC1C;AACA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"}
\ No newline at end of file
diff --git a/node_modules/@rollup/plugin-commonjs/dist/index.js b/node_modules/@rollup/plugin-commonjs/dist/index.js
deleted file mode 100644
index 712f6a7d81..0000000000
--- a/node_modules/@rollup/plugin-commonjs/dist/index.js
+++ /dev/null
@@ -1,1779 +0,0 @@
-'use strict';
-
-var path = require('path');
-var pluginutils = require('@rollup/pluginutils');
-var getCommonDir = require('commondir');
-var fs = require('fs');
-var glob = require('glob');
-var estreeWalker = require('estree-walker');
-var MagicString = require('magic-string');
-var isReference = require('is-reference');
-var resolve = require('resolve');
-
-function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
-
-var getCommonDir__default = /*#__PURE__*/_interopDefaultLegacy(getCommonDir);
-var glob__default = /*#__PURE__*/_interopDefaultLegacy(glob);
-var MagicString__default = /*#__PURE__*/_interopDefaultLegacy(MagicString);
-var isReference__default = /*#__PURE__*/_interopDefaultLegacy(isReference);
-
-var peerDependencies = {
- rollup: "^2.30.0"
-};
-
-function tryParse(parse, code, id) {
- try {
- return parse(code, { allowReturnOutsideFunction: true });
- } catch (err) {
- err.message += ` in ${id}`;
- throw err;
- }
-}
-
-const firstpassGlobal = /\b(?:require|module|exports|global)\b/;
-
-const firstpassNoGlobal = /\b(?:require|module|exports)\b/;
-
-function hasCjsKeywords(code, ignoreGlobal) {
- const firstpass = ignoreGlobal ? firstpassNoGlobal : firstpassGlobal;
- return firstpass.test(code);
-}
-
-/* eslint-disable no-underscore-dangle */
-
-function analyzeTopLevelStatements(parse, code, id) {
- const ast = tryParse(parse, code, id);
-
- let isEsModule = false;
- let hasDefaultExport = false;
- let hasNamedExports = false;
-
- for (const node of ast.body) {
- switch (node.type) {
- case 'ExportDefaultDeclaration':
- isEsModule = true;
- hasDefaultExport = true;
- break;
- case 'ExportNamedDeclaration':
- isEsModule = true;
- if (node.declaration) {
- hasNamedExports = true;
- } else {
- for (const specifier of node.specifiers) {
- if (specifier.exported.name === 'default') {
- hasDefaultExport = true;
- } else {
- hasNamedExports = true;
- }
- }
- }
- break;
- case 'ExportAllDeclaration':
- isEsModule = true;
- if (node.exported && node.exported.name === 'default') {
- hasDefaultExport = true;
- } else {
- hasNamedExports = true;
- }
- break;
- case 'ImportDeclaration':
- isEsModule = true;
- break;
- }
- }
-
- return { isEsModule, hasDefaultExport, hasNamedExports, ast };
-}
-
-const isWrappedId = (id, suffix) => id.endsWith(suffix);
-const wrapId = (id, suffix) => `\0${id}${suffix}`;
-const unwrapId = (wrappedId, suffix) => wrappedId.slice(1, -suffix.length);
-
-const PROXY_SUFFIX = '?commonjs-proxy';
-const REQUIRE_SUFFIX = '?commonjs-require';
-const EXTERNAL_SUFFIX = '?commonjs-external';
-
-const DYNAMIC_REGISTER_SUFFIX = '?commonjs-dynamic-register';
-const DYNAMIC_JSON_PREFIX = '\0commonjs-dynamic-json:';
-const DYNAMIC_PACKAGES_ID = '\0commonjs-dynamic-packages';
-
-const HELPERS_ID = '\0commonjsHelpers.js';
-
-// `x['default']` is used instead of `x.default` for backward compatibility with ES3 browsers.
-// Minifiers like uglify will usually transpile it back if compatibility with ES3 is not enabled.
-// This will no longer be necessary once Rollup switches to ES6 output, likely
-// in Rollup 3
-
-const HELPERS = `
-export var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
-
-export function getDefaultExportFromCjs (x) {
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
-}
-
-export function getDefaultExportFromNamespaceIfPresent (n) {
- return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
-}
-
-export function getDefaultExportFromNamespaceIfNotNamed (n) {
- return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
-}
-
-export function getAugmentedNamespace(n) {
- if (n.__esModule) return n;
- var a = Object.defineProperty({}, '__esModule', {value: true});
- Object.keys(n).forEach(function (k) {
- var d = Object.getOwnPropertyDescriptor(n, k);
- Object.defineProperty(a, k, d.get ? d : {
- enumerable: true,
- get: function () {
- return n[k];
- }
- });
- });
- return a;
-}
-`;
-
-const HELPER_NON_DYNAMIC = `
-export function createCommonjsModule(fn) {
- var module = { exports: {} }
- return fn(module, module.exports), module.exports;
-}
-
-export function commonjsRequire (target) {
- throw new Error('Could not dynamically require "' + target + '". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.');
-}
-`;
-
-const HELPERS_DYNAMIC = `
-export function createCommonjsModule(fn, basedir, module) {
- return module = {
- path: basedir,
- exports: {},
- require: function (path, base) {
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
- }
- }, fn(module, module.exports), module.exports;
-}
-
-export function commonjsRegister (path, loader) {
- DYNAMIC_REQUIRE_LOADERS[path] = loader;
-}
-
-const DYNAMIC_REQUIRE_LOADERS = Object.create(null);
-const DYNAMIC_REQUIRE_CACHE = Object.create(null);
-const DEFAULT_PARENT_MODULE = {
- id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []
-};
-const CHECKED_EXTENSIONS = ['', '.js', '.json'];
-
-function normalize (path) {
- path = path.replace(/\\\\/g, '/');
- const parts = path.split('/');
- const slashed = parts[0] === '';
- for (let i = 1; i < parts.length; i++) {
- if (parts[i] === '.' || parts[i] === '') {
- parts.splice(i--, 1);
- }
- }
- for (let i = 1; i < parts.length; i++) {
- if (parts[i] !== '..') continue;
- if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {
- parts.splice(--i, 2);
- i--;
- }
- }
- path = parts.join('/');
- if (slashed && path[0] !== '/')
- path = '/' + path;
- else if (path.length === 0)
- path = '.';
- return path;
-}
-
-function join () {
- if (arguments.length === 0)
- return '.';
- let joined;
- for (let i = 0; i < arguments.length; ++i) {
- let arg = arguments[i];
- if (arg.length > 0) {
- if (joined === undefined)
- joined = arg;
- else
- joined += '/' + arg;
- }
- }
- if (joined === undefined)
- return '.';
-
- return joined;
-}
-
-function isPossibleNodeModulesPath (modulePath) {
- let c0 = modulePath[0];
- if (c0 === '/' || c0 === '\\\\') return false;
- let c1 = modulePath[1], c2 = modulePath[2];
- if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||
- (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;
- if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))
- return false;
- return true;
-}
-
-function dirname (path) {
- if (path.length === 0)
- return '.';
-
- let i = path.length - 1;
- while (i > 0) {
- const c = path.charCodeAt(i);
- if ((c === 47 || c === 92) && i !== path.length - 1)
- break;
- i--;
- }
-
- if (i > 0)
- return path.substr(0, i);
-
- if (path.chartCodeAt(0) === 47 || path.chartCodeAt(0) === 92)
- return path.charAt(0);
-
- return '.';
-}
-
-export function commonjsResolveImpl (path, originalModuleDir, testCache) {
- const shouldTryNodeModules = isPossibleNodeModulesPath(path);
- path = normalize(path);
- let relPath;
- if (path[0] === '/') {
- originalModuleDir = '/';
- }
- while (true) {
- if (!shouldTryNodeModules) {
- relPath = originalModuleDir ? normalize(originalModuleDir + '/' + path) : path;
- } else if (originalModuleDir) {
- relPath = normalize(originalModuleDir + '/node_modules/' + path);
- } else {
- relPath = normalize(join('node_modules', path));
- }
-
- if (relPath.endsWith('/..')) {
- break; // Travelled too far up, avoid infinite loop
- }
-
- for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {
- const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];
- if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {
- return resolvedPath;
- };
- if (DYNAMIC_REQUIRE_LOADERS[resolvedPath]) {
- return resolvedPath;
- };
- }
- if (!shouldTryNodeModules) break;
- const nextDir = normalize(originalModuleDir + '/..');
- if (nextDir === originalModuleDir) break;
- originalModuleDir = nextDir;
- }
- return null;
-}
-
-export function commonjsResolve (path, originalModuleDir) {
- const resolvedPath = commonjsResolveImpl(path, originalModuleDir);
- if (resolvedPath !== null) {
- return resolvedPath;
- }
- return require.resolve(path);
-}
-
-export function commonjsRequire (path, originalModuleDir) {
- const resolvedPath = commonjsResolveImpl(path, originalModuleDir, true);
- if (resolvedPath !== null) {
- let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];
- if (cachedModule) return cachedModule.exports;
- const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];
- if (loader) {
- DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {
- id: resolvedPath,
- filename: resolvedPath,
- path: dirname(resolvedPath),
- exports: {},
- parent: DEFAULT_PARENT_MODULE,
- loaded: false,
- children: [],
- paths: [],
- require: function (path, base) {
- return commonjsRequire(path, (base === undefined || base === null) ? cachedModule.path : base);
- }
- };
- try {
- loader.call(commonjsGlobal, cachedModule, cachedModule.exports);
- } catch (error) {
- delete DYNAMIC_REQUIRE_CACHE[resolvedPath];
- throw error;
- }
- cachedModule.loaded = true;
- return cachedModule.exports;
- };
- }
- return require(path);
-}
-
-commonjsRequire.cache = DYNAMIC_REQUIRE_CACHE;
-commonjsRequire.resolve = commonjsResolve;
-`;
-
-function getHelpersModule(isDynamicRequireModulesEnabled) {
- return `${HELPERS}${isDynamicRequireModulesEnabled ? HELPERS_DYNAMIC : HELPER_NON_DYNAMIC}`;
-}
-
-/* eslint-disable import/prefer-default-export */
-
-function deconflict(scope, globals, identifier) {
- let i = 1;
- let deconflicted = pluginutils.makeLegalIdentifier(identifier);
-
- while (scope.contains(deconflicted) || globals.has(deconflicted)) {
- deconflicted = pluginutils.makeLegalIdentifier(`${identifier}_${i}`);
- i += 1;
- }
- // eslint-disable-next-line no-param-reassign
- scope.declarations[deconflicted] = true;
-
- return deconflicted;
-}
-
-function getName(id) {
- const name = pluginutils.makeLegalIdentifier(path.basename(id, path.extname(id)));
- if (name !== 'index') {
- return name;
- }
- const segments = path.dirname(id).split(path.sep);
- return pluginutils.makeLegalIdentifier(segments[segments.length - 1]);
-}
-
-function normalizePathSlashes(path) {
- return path.replace(/\\/g, '/');
-}
-
-const VIRTUAL_PATH_BASE = '/$$rollup_base$$';
-const getVirtualPathForDynamicRequirePath = (path, commonDir) => {
- const normalizedPath = normalizePathSlashes(path);
- return normalizedPath.startsWith(commonDir)
- ? VIRTUAL_PATH_BASE + normalizedPath.slice(commonDir.length)
- : normalizedPath;
-};
-
-function getPackageEntryPoint(dirPath) {
- let entryPoint = 'index.js';
-
- try {
- if (fs.existsSync(path.join(dirPath, 'package.json'))) {
- entryPoint =
- JSON.parse(fs.readFileSync(path.join(dirPath, 'package.json'), { encoding: 'utf8' })).main ||
- entryPoint;
- }
- } catch (ignored) {
- // ignored
- }
-
- return entryPoint;
-}
-
-function getDynamicPackagesModule(dynamicRequireModuleDirPaths, commonDir) {
- let code = `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');`;
- for (const dir of dynamicRequireModuleDirPaths) {
- const entryPoint = getPackageEntryPoint(dir);
-
- code += `\ncommonjsRegister(${JSON.stringify(
- getVirtualPathForDynamicRequirePath(dir, commonDir)
- )}, function (module, exports) {
- module.exports = require(${JSON.stringify(normalizePathSlashes(path.join(dir, entryPoint)))});
-});`;
- }
- return code;
-}
-
-function getDynamicPackagesEntryIntro(
- dynamicRequireModuleDirPaths,
- dynamicRequireModuleSet
-) {
- let dynamicImports = Array.from(
- dynamicRequireModuleSet,
- (dynamicId) => `require(${JSON.stringify(wrapModuleRegisterProxy(dynamicId))});`
- ).join('\n');
-
- if (dynamicRequireModuleDirPaths.length) {
- dynamicImports += `require(${JSON.stringify(wrapModuleRegisterProxy(DYNAMIC_PACKAGES_ID))});`;
- }
-
- return dynamicImports;
-}
-
-function wrapModuleRegisterProxy(id) {
- return wrapId(id, DYNAMIC_REGISTER_SUFFIX);
-}
-
-function unwrapModuleRegisterProxy(id) {
- return unwrapId(id, DYNAMIC_REGISTER_SUFFIX);
-}
-
-function isModuleRegisterProxy(id) {
- return isWrappedId(id, DYNAMIC_REGISTER_SUFFIX);
-}
-
-function isDynamicModuleImport(id, dynamicRequireModuleSet) {
- const normalizedPath = normalizePathSlashes(id);
- return dynamicRequireModuleSet.has(normalizedPath) && !normalizedPath.endsWith('.json');
-}
-
-function isDirectory(path) {
- try {
- if (fs.statSync(path).isDirectory()) return true;
- } catch (ignored) {
- // Nothing to do here
- }
- return false;
-}
-
-function getDynamicRequirePaths(patterns) {
- const dynamicRequireModuleSet = new Set();
- for (const pattern of !patterns || Array.isArray(patterns) ? patterns || [] : [patterns]) {
- const isNegated = pattern.startsWith('!');
- const modifySet = Set.prototype[isNegated ? 'delete' : 'add'].bind(dynamicRequireModuleSet);
- for (const path$1 of glob__default['default'].sync(isNegated ? pattern.substr(1) : pattern)) {
- modifySet(normalizePathSlashes(path.resolve(path$1)));
- if (isDirectory(path$1)) {
- modifySet(normalizePathSlashes(path.resolve(path.join(path$1, getPackageEntryPoint(path$1)))));
- }
- }
- }
- const dynamicRequireModuleDirPaths = Array.from(dynamicRequireModuleSet.values()).filter((path) =>
- isDirectory(path)
- );
- return { dynamicRequireModuleSet, dynamicRequireModuleDirPaths };
-}
-
-const isCjsPromises = new Map();
-
-function getIsCjsPromise(id) {
- let isCjsPromise = isCjsPromises.get(id);
- if (isCjsPromise) return isCjsPromise.promise;
-
- const promise = new Promise((resolve) => {
- isCjsPromise = {
- resolve,
- promise: null
- };
- isCjsPromises.set(id, isCjsPromise);
- });
- isCjsPromise.promise = promise;
-
- return promise;
-}
-
-function setIsCjsPromise(id, resolution) {
- const isCjsPromise = isCjsPromises.get(id);
- if (isCjsPromise) {
- if (isCjsPromise.resolve) {
- isCjsPromise.resolve(resolution);
- isCjsPromise.resolve = null;
- }
- } else {
- isCjsPromises.set(id, { promise: Promise.resolve(resolution), resolve: null });
- }
-}
-
-// e.g. id === "commonjsHelpers?commonjsRegister"
-function getSpecificHelperProxy(id) {
- return `export {${id.split('?')[1]} as default} from '${HELPERS_ID}';`;
-}
-
-function getUnknownRequireProxy(id, requireReturnsDefault) {
- if (requireReturnsDefault === true || id.endsWith('.json')) {
- return `export {default} from ${JSON.stringify(id)};`;
- }
- const name = getName(id);
- const exported =
- requireReturnsDefault === 'auto'
- ? `import {getDefaultExportFromNamespaceIfNotNamed} from "${HELPERS_ID}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(${name});`
- : requireReturnsDefault === 'preferred'
- ? `import {getDefaultExportFromNamespaceIfPresent} from "${HELPERS_ID}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfPresent(${name});`
- : !requireReturnsDefault
- ? `import {getAugmentedNamespace} from "${HELPERS_ID}"; export default /*@__PURE__*/getAugmentedNamespace(${name});`
- : `export default ${name};`;
- return `import * as ${name} from ${JSON.stringify(id)}; ${exported}`;
-}
-
-function getDynamicJsonProxy(id, commonDir) {
- const normalizedPath = normalizePathSlashes(id.slice(DYNAMIC_JSON_PREFIX.length));
- return `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');\ncommonjsRegister(${JSON.stringify(
- getVirtualPathForDynamicRequirePath(normalizedPath, commonDir)
- )}, function (module, exports) {
- module.exports = require(${JSON.stringify(normalizedPath)});
-});`;
-}
-
-function getDynamicRequireProxy(normalizedPath, commonDir) {
- return `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');\ncommonjsRegister(${JSON.stringify(
- getVirtualPathForDynamicRequirePath(normalizedPath, commonDir)
- )}, function (module, exports) {
- ${fs.readFileSync(normalizedPath, { encoding: 'utf8' })}
-});`;
-}
-
-async function getStaticRequireProxy(
- id,
- requireReturnsDefault,
- esModulesWithDefaultExport,
- esModulesWithNamedExports
-) {
- const name = getName(id);
- const isCjs = await getIsCjsPromise(id);
- if (isCjs) {
- return `import { __moduleExports } from ${JSON.stringify(id)}; export default __moduleExports;`;
- } else if (isCjs === null) {
- return getUnknownRequireProxy(id, requireReturnsDefault);
- } else if (!requireReturnsDefault) {
- return `import {getAugmentedNamespace} from "${HELPERS_ID}"; import * as ${name} from ${JSON.stringify(
- id
- )}; export default /*@__PURE__*/getAugmentedNamespace(${name});`;
- } else if (
- requireReturnsDefault !== true &&
- (requireReturnsDefault === 'namespace' ||
- !esModulesWithDefaultExport.has(id) ||
- (requireReturnsDefault === 'auto' && esModulesWithNamedExports.has(id)))
- ) {
- return `import * as ${name} from ${JSON.stringify(id)}; export default ${name};`;
- }
- return `export {default} from ${JSON.stringify(id)};`;
-}
-
-/* eslint-disable no-param-reassign, no-undefined */
-
-function getCandidatesForExtension(resolved, extension) {
- return [resolved + extension, `${resolved}${path.sep}index${extension}`];
-}
-
-function getCandidates(resolved, extensions) {
- return extensions.reduce(
- (paths, extension) => paths.concat(getCandidatesForExtension(resolved, extension)),
- [resolved]
- );
-}
-
-function getResolveId(extensions) {
- function resolveExtensions(importee, importer) {
- // not our problem
- if (importee[0] !== '.' || !importer) return undefined;
-
- const resolved = path.resolve(path.dirname(importer), importee);
- const candidates = getCandidates(resolved, extensions);
-
- for (let i = 0; i < candidates.length; i += 1) {
- try {
- const stats = fs.statSync(candidates[i]);
- if (stats.isFile()) return { id: candidates[i] };
- } catch (err) {
- /* noop */
- }
- }
-
- return undefined;
- }
-
- return function resolveId(importee, rawImporter) {
- const importer =
- rawImporter && isModuleRegisterProxy(rawImporter)
- ? unwrapModuleRegisterProxy(rawImporter)
- : rawImporter;
-
- // Proxies are only importing resolved ids, no need to resolve again
- if (importer && isWrappedId(importer, PROXY_SUFFIX)) {
- return importee;
- }
-
- const isProxyModule = isWrappedId(importee, PROXY_SUFFIX);
- const isRequiredModule = isWrappedId(importee, REQUIRE_SUFFIX);
- let isModuleRegistration = false;
-
- if (isProxyModule) {
- importee = unwrapId(importee, PROXY_SUFFIX);
- } else if (isRequiredModule) {
- importee = unwrapId(importee, REQUIRE_SUFFIX);
-
- isModuleRegistration = isModuleRegisterProxy(importee);
- if (isModuleRegistration) {
- importee = unwrapModuleRegisterProxy(importee);
- }
- }
-
- if (
- importee.startsWith(HELPERS_ID) ||
- importee === DYNAMIC_PACKAGES_ID ||
- importee.startsWith(DYNAMIC_JSON_PREFIX)
- ) {
- return importee;
- }
-
- if (importee.startsWith('\0')) {
- return null;
- }
-
- return this.resolve(importee, importer, {
- skipSelf: true,
- custom: { 'node-resolve': { isRequire: isProxyModule || isRequiredModule } }
- }).then((resolved) => {
- if (!resolved) {
- resolved = resolveExtensions(importee, importer);
- }
- if (resolved && isProxyModule) {
- resolved.id = wrapId(resolved.id, resolved.external ? EXTERNAL_SUFFIX : PROXY_SUFFIX);
- resolved.external = false;
- } else if (resolved && isModuleRegistration) {
- resolved.id = wrapModuleRegisterProxy(resolved.id);
- } else if (!resolved && (isProxyModule || isRequiredModule)) {
- return { id: wrapId(importee, EXTERNAL_SUFFIX), external: false };
- }
- return resolved;
- });
- };
-}
-
-function validateRollupVersion(rollupVersion, peerDependencyVersion) {
- const [major, minor] = rollupVersion.split('.').map(Number);
- const versionRegexp = /\^(\d+\.\d+)\.\d+/g;
- let minMajor = Infinity;
- let minMinor = Infinity;
- let foundVersion;
- // eslint-disable-next-line no-cond-assign
- while ((foundVersion = versionRegexp.exec(peerDependencyVersion))) {
- const [foundMajor, foundMinor] = foundVersion[1].split('.').map(Number);
- if (foundMajor < minMajor) {
- minMajor = foundMajor;
- minMinor = foundMinor;
- }
- }
- if (major < minMajor || (major === minMajor && minor < minMinor)) {
- throw new Error(
- `Insufficient Rollup version: "@rollup/plugin-commonjs" requires at least rollup@${minMajor}.${minMinor} but found rollup@${rollupVersion}.`
- );
- }
-}
-
-const operators = {
- '==': (x) => equals(x.left, x.right, false),
-
- '!=': (x) => not(operators['=='](x)),
-
- '===': (x) => equals(x.left, x.right, true),
-
- '!==': (x) => not(operators['==='](x)),
-
- '!': (x) => isFalsy(x.argument),
-
- '&&': (x) => isTruthy(x.left) && isTruthy(x.right),
-
- '||': (x) => isTruthy(x.left) || isTruthy(x.right)
-};
-
-function not(value) {
- return value === null ? value : !value;
-}
-
-function equals(a, b, strict) {
- if (a.type !== b.type) return null;
- // eslint-disable-next-line eqeqeq
- if (a.type === 'Literal') return strict ? a.value === b.value : a.value == b.value;
- return null;
-}
-
-function isTruthy(node) {
- if (!node) return false;
- if (node.type === 'Literal') return !!node.value;
- if (node.type === 'ParenthesizedExpression') return isTruthy(node.expression);
- if (node.operator in operators) return operators[node.operator](node);
- return null;
-}
-
-function isFalsy(node) {
- return not(isTruthy(node));
-}
-
-function getKeypath(node) {
- const parts = [];
-
- while (node.type === 'MemberExpression') {
- if (node.computed) return null;
-
- parts.unshift(node.property.name);
- // eslint-disable-next-line no-param-reassign
- node = node.object;
- }
-
- if (node.type !== 'Identifier') return null;
-
- const { name } = node;
- parts.unshift(name);
-
- return { name, keypath: parts.join('.') };
-}
-
-const KEY_COMPILED_ESM = '__esModule';
-
-function isDefineCompiledEsm(node) {
- const definedProperty =
- getDefinePropertyCallName(node, 'exports') || getDefinePropertyCallName(node, 'module.exports');
- if (definedProperty && definedProperty.key === KEY_COMPILED_ESM) {
- return isTruthy(definedProperty.value);
- }
- return false;
-}
-
-function getDefinePropertyCallName(node, targetName) {
- const targetNames = targetName.split('.');
-
- const {
- callee: { object, property }
- } = node;
- if (!object || object.type !== 'Identifier' || object.name !== 'Object') return;
- if (!property || property.type !== 'Identifier' || property.name !== 'defineProperty') return;
- if (node.arguments.length !== 3) return;
-
- const [target, key, value] = node.arguments;
- if (targetNames.length === 1) {
- if (target.type !== 'Identifier' || target.name !== targetNames[0]) {
- return;
- }
- }
-
- if (targetNames.length === 2) {
- if (
- target.type !== 'MemberExpression' ||
- target.object.name !== targetNames[0] ||
- target.property.name !== targetNames[1]
- ) {
- return;
- }
- }
-
- if (value.type !== 'ObjectExpression' || !value.properties) return;
-
- const valueProperty = value.properties.find((p) => p.key && p.key.name === 'value');
- if (!valueProperty || !valueProperty.value) return;
-
- // eslint-disable-next-line consistent-return
- return { key: key.value, value: valueProperty.value };
-}
-
-function isLocallyShadowed(name, scope) {
- while (scope.parent) {
- if (scope.declarations[name]) {
- return true;
- }
- // eslint-disable-next-line no-param-reassign
- scope = scope.parent;
- }
- return false;
-}
-
-function isShorthandProperty(parent) {
- return parent && parent.type === 'Property' && parent.shorthand;
-}
-
-function wrapCode(magicString, uses, moduleName, HELPERS_NAME, virtualDynamicRequirePath) {
- const args = `module${uses.exports ? ', exports' : ''}`;
-
- magicString
- .trim()
- .prepend(`var ${moduleName} = ${HELPERS_NAME}.createCommonjsModule(function (${args}) {\n`)
- .append(
- `\n}${virtualDynamicRequirePath ? `, ${JSON.stringify(virtualDynamicRequirePath)}` : ''});`
- );
-}
-
-function rewriteExportsAndGetExportsBlock(
- magicString,
- moduleName,
- wrapped,
- topLevelModuleExportsAssignments,
- topLevelExportsAssignmentsByName,
- defineCompiledEsmExpressions,
- deconflict,
- isRestorableCompiledEsm,
- code,
- uses,
- HELPERS_NAME
-) {
- const namedExportDeclarations = [`export { ${moduleName} as __moduleExports };`];
- const moduleExportsPropertyAssignments = [];
- let deconflictedDefaultExportName;
-
- if (!wrapped) {
- let hasModuleExportsAssignment = false;
- const namedExportProperties = [];
-
- // Collect and rewrite module.exports assignments
- for (const { left } of topLevelModuleExportsAssignments) {
- hasModuleExportsAssignment = true;
- magicString.overwrite(left.start, left.end, `var ${moduleName}`);
- }
-
- // Collect and rewrite named exports
- for (const [exportName, node] of topLevelExportsAssignmentsByName) {
- const deconflicted = deconflict(exportName);
- magicString.overwrite(node.start, node.left.end, `var ${deconflicted}`);
-
- if (exportName === 'default') {
- deconflictedDefaultExportName = deconflicted;
- } else {
- namedExportDeclarations.push(
- exportName === deconflicted
- ? `export { ${exportName} };`
- : `export { ${deconflicted} as ${exportName} };`
- );
- }
-
- if (hasModuleExportsAssignment) {
- moduleExportsPropertyAssignments.push(`${moduleName}.${exportName} = ${deconflicted};`);
- } else {
- namedExportProperties.push(`\t${exportName}: ${deconflicted}`);
- }
- }
-
- // Regenerate CommonJS namespace
- if (!hasModuleExportsAssignment) {
- const moduleExports = `{\n${namedExportProperties.join(',\n')}\n}`;
- magicString
- .trim()
- .append(
- `\n\nvar ${moduleName} = ${
- isRestorableCompiledEsm
- ? `/*#__PURE__*/Object.defineProperty(${moduleExports}, '__esModule', {value: true})`
- : moduleExports
- };`
- );
- }
- }
-
- // Generate default export
- const defaultExport = [];
- if (isRestorableCompiledEsm) {
- defaultExport.push(`export default ${deconflictedDefaultExportName || moduleName};`);
- } else if (
- (wrapped || deconflictedDefaultExportName) &&
- (defineCompiledEsmExpressions.length > 0 || code.indexOf('__esModule') >= 0)
- ) {
- // eslint-disable-next-line no-param-reassign
- uses.commonjsHelpers = true;
- defaultExport.push(
- `export default /*@__PURE__*/${HELPERS_NAME}.getDefaultExportFromCjs(${moduleName});`
- );
- } else {
- defaultExport.push(`export default ${moduleName};`);
- }
-
- return `\n\n${defaultExport
- .concat(namedExportDeclarations)
- .concat(moduleExportsPropertyAssignments)
- .join('\n')}`;
-}
-
-function isRequireStatement(node, scope) {
- if (!node) return false;
- if (node.type !== 'CallExpression') return false;
-
- // Weird case of `require()` or `module.require()` without arguments
- if (node.arguments.length === 0) return false;
-
- return isRequire(node.callee, scope);
-}
-
-function isRequire(node, scope) {
- return (
- (node.type === 'Identifier' && node.name === 'require' && !scope.contains('require')) ||
- (node.type === 'MemberExpression' && isModuleRequire(node, scope))
- );
-}
-
-function isModuleRequire({ object, property }, scope) {
- return (
- object.type === 'Identifier' &&
- object.name === 'module' &&
- property.type === 'Identifier' &&
- property.name === 'require' &&
- !scope.contains('module')
- );
-}
-
-function isStaticRequireStatement(node, scope) {
- if (!isRequireStatement(node, scope)) return false;
- return !hasDynamicArguments(node);
-}
-
-function hasDynamicArguments(node) {
- return (
- node.arguments.length > 1 ||
- (node.arguments[0].type !== 'Literal' &&
- (node.arguments[0].type !== 'TemplateLiteral' || node.arguments[0].expressions.length > 0))
- );
-}
-
-const reservedMethod = { resolve: true, cache: true, main: true };
-
-function isNodeRequirePropertyAccess(parent) {
- return parent && parent.property && reservedMethod[parent.property.name];
-}
-
-function isIgnoredRequireStatement(requiredNode, ignoreRequire) {
- return ignoreRequire(requiredNode.arguments[0].value);
-}
-
-function getRequireStringArg(node) {
- return node.arguments[0].type === 'Literal'
- ? node.arguments[0].value
- : node.arguments[0].quasis[0].value.cooked;
-}
-
-function hasDynamicModuleForPath(source, id, dynamicRequireModuleSet) {
- if (!/^(?:\.{0,2}[/\\]|[A-Za-z]:[/\\])/.test(source)) {
- try {
- const resolvedPath = normalizePathSlashes(resolve.sync(source, { basedir: path.dirname(id) }));
- if (dynamicRequireModuleSet.has(resolvedPath)) {
- return true;
- }
- } catch (ex) {
- // Probably a node.js internal module
- return false;
- }
-
- return false;
- }
-
- for (const attemptExt of ['', '.js', '.json']) {
- const resolvedPath = normalizePathSlashes(path.resolve(path.dirname(id), source + attemptExt));
- if (dynamicRequireModuleSet.has(resolvedPath)) {
- return true;
- }
- }
-
- return false;
-}
-
-function getRequireHandlers() {
- const requiredSources = [];
- const requiredBySource = Object.create(null);
- const requiredByNode = new Map();
- const requireExpressionsWithUsedReturnValue = [];
-
- function addRequireStatement(sourceId, node, scope, usesReturnValue) {
- const required = getRequired(sourceId);
- requiredByNode.set(node, { scope, required });
- if (usesReturnValue) {
- required.nodesUsingRequired.push(node);
- requireExpressionsWithUsedReturnValue.push(node);
- }
- }
-
- function getRequired(sourceId) {
- if (!requiredBySource[sourceId]) {
- requiredSources.push(sourceId);
-
- requiredBySource[sourceId] = {
- source: sourceId,
- name: null,
- nodesUsingRequired: []
- };
- }
-
- return requiredBySource[sourceId];
- }
-
- function rewriteRequireExpressionsAndGetImportBlock(
- magicString,
- topLevelDeclarations,
- topLevelRequireDeclarators,
- reassignedNames,
- helpersNameIfUsed,
- dynamicRegisterSources
- ) {
- const removedDeclarators = getDeclaratorsReplacedByImportsAndSetImportNames(
- topLevelRequireDeclarators,
- requiredByNode,
- reassignedNames
- );
- setRemainingImportNamesAndRewriteRequires(
- requireExpressionsWithUsedReturnValue,
- requiredByNode,
- magicString
- );
- removeDeclaratorsFromDeclarations(topLevelDeclarations, removedDeclarators, magicString);
- const importBlock = `${(helpersNameIfUsed
- ? [`import * as ${helpersNameIfUsed} from '${HELPERS_ID}';`]
- : []
- )
- .concat(
- // dynamic registers first, as the may be required in the other modules
- [...dynamicRegisterSources].map((source) => `import '${wrapId(source, REQUIRE_SUFFIX)}';`),
-
- // now the actual modules so that they are analyzed before creating the proxies;
- // no need to do this for virtual modules as we never proxy them
- requiredSources
- .filter((source) => !source.startsWith('\0'))
- .map((source) => `import '${wrapId(source, REQUIRE_SUFFIX)}';`),
-
- // now the proxy modules
- requiredSources.map((source) => {
- const { name, nodesUsingRequired } = requiredBySource[source];
- return `import ${nodesUsingRequired.length ? `${name} from ` : ``}'${
- source.startsWith('\0') ? source : wrapId(source, PROXY_SUFFIX)
- }';`;
- })
- )
- .join('\n')}`;
- return importBlock ? `${importBlock}\n\n` : '';
- }
-
- return {
- addRequireStatement,
- requiredSources,
- rewriteRequireExpressionsAndGetImportBlock
- };
-}
-
-function getDeclaratorsReplacedByImportsAndSetImportNames(
- topLevelRequireDeclarators,
- requiredByNode,
- reassignedNames
-) {
- const removedDeclarators = new Set();
- for (const declarator of topLevelRequireDeclarators) {
- const { required } = requiredByNode.get(declarator.init);
- if (!required.name) {
- const potentialName = declarator.id.name;
- if (
- !reassignedNames.has(potentialName) &&
- !required.nodesUsingRequired.some((node) =>
- isLocallyShadowed(potentialName, requiredByNode.get(node).scope)
- )
- ) {
- required.name = potentialName;
- removedDeclarators.add(declarator);
- }
- }
- }
- return removedDeclarators;
-}
-
-function setRemainingImportNamesAndRewriteRequires(
- requireExpressionsWithUsedReturnValue,
- requiredByNode,
- magicString
-) {
- let uid = 0;
- for (const requireExpression of requireExpressionsWithUsedReturnValue) {
- const { required } = requiredByNode.get(requireExpression);
- if (!required.name) {
- let potentialName;
- const isUsedName = (node) => requiredByNode.get(node).scope.contains(potentialName);
- do {
- potentialName = `require$$${uid}`;
- uid += 1;
- } while (required.nodesUsingRequired.some(isUsedName));
- required.name = potentialName;
- }
- magicString.overwrite(requireExpression.start, requireExpression.end, required.name);
- }
-}
-
-function removeDeclaratorsFromDeclarations(topLevelDeclarations, removedDeclarators, magicString) {
- for (const declaration of topLevelDeclarations) {
- let keepDeclaration = false;
- let [{ start }] = declaration.declarations;
- for (const declarator of declaration.declarations) {
- if (removedDeclarators.has(declarator)) {
- magicString.remove(start, declarator.end);
- } else if (!keepDeclaration) {
- magicString.remove(start, declarator.start);
- keepDeclaration = true;
- }
- start = declarator.end;
- }
- if (!keepDeclaration) {
- magicString.remove(declaration.start, declaration.end);
- }
- }
-}
-
-/* eslint-disable no-param-reassign, no-shadow, no-underscore-dangle, no-continue */
-
-const exportsPattern = /^(?:module\.)?exports(?:\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/;
-
-const functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;
-
-function transformCommonjs(
- parse,
- code,
- id,
- isEsModule,
- ignoreGlobal,
- ignoreRequire,
- getIgnoreTryCatchRequireStatementMode,
- sourceMap,
- isDynamicRequireModulesEnabled,
- dynamicRequireModuleSet,
- disableWrap,
- commonDir,
- astCache
-) {
- const ast = astCache || tryParse(parse, code, id);
- const magicString = new MagicString__default['default'](code);
- const uses = {
- module: false,
- exports: false,
- global: false,
- require: false,
- commonjsHelpers: false
- };
- const virtualDynamicRequirePath =
- isDynamicRequireModulesEnabled && getVirtualPathForDynamicRequirePath(path.dirname(id), commonDir);
- let scope = pluginutils.attachScopes(ast, 'scope');
- let lexicalDepth = 0;
- let programDepth = 0;
- let currentTryBlockEnd = null;
- let shouldWrap = false;
- const defineCompiledEsmExpressions = [];
-
- const globals = new Set();
-
- // TODO technically wrong since globals isn't populated yet, but ¯\_(ツ)_/¯
- const HELPERS_NAME = deconflict(scope, globals, 'commonjsHelpers');
- const namedExports = {};
- const dynamicRegisterSources = new Set();
- let hasRemovedRequire = false;
-
- const {
- addRequireStatement,
- requiredSources,
- rewriteRequireExpressionsAndGetImportBlock
- } = getRequireHandlers();
-
- // See which names are assigned to. This is necessary to prevent
- // illegally replacing `var foo = require('foo')` with `import foo from 'foo'`,
- // where `foo` is later reassigned. (This happens in the wild. CommonJS, sigh)
- const reassignedNames = new Set();
- const topLevelDeclarations = [];
- const topLevelRequireDeclarators = new Set();
- const skippedNodes = new Set();
- const topLevelModuleExportsAssignments = [];
- const topLevelExportsAssignmentsByName = new Map();
-
- estreeWalker.walk(ast, {
- enter(node, parent) {
- if (skippedNodes.has(node)) {
- this.skip();
- return;
- }
-
- if (currentTryBlockEnd !== null && node.start > currentTryBlockEnd) {
- currentTryBlockEnd = null;
- }
-
- programDepth += 1;
- if (node.scope) ({ scope } = node);
- if (functionType.test(node.type)) lexicalDepth += 1;
- if (sourceMap) {
- magicString.addSourcemapLocation(node.start);
- magicString.addSourcemapLocation(node.end);
- }
-
- // eslint-disable-next-line default-case
- switch (node.type) {
- case 'TryStatement':
- if (currentTryBlockEnd === null) {
- currentTryBlockEnd = node.block.end;
- }
- return;
- case 'AssignmentExpression':
- if (node.left.type === 'MemberExpression') {
- const flattened = getKeypath(node.left);
- if (!flattened || scope.contains(flattened.name)) return;
-
- const exportsPatternMatch = exportsPattern.exec(flattened.keypath);
- if (!exportsPatternMatch || flattened.keypath === 'exports') return;
-
- const [, exportName] = exportsPatternMatch;
- uses[flattened.name] = true;
-
- // we're dealing with `module.exports = ...` or `[module.]exports.foo = ...` –
- if (programDepth > 3) {
- shouldWrap = true;
- } else if (exportName === KEY_COMPILED_ESM) {
- defineCompiledEsmExpressions.push(parent);
- } else if (flattened.keypath === 'module.exports') {
- topLevelModuleExportsAssignments.push(node);
- } else if (!topLevelExportsAssignmentsByName.has(exportName)) {
- topLevelExportsAssignmentsByName.set(exportName, node);
- } else {
- shouldWrap = true;
- }
-
- skippedNodes.add(node.left);
-
- if (flattened.keypath === 'module.exports' && node.right.type === 'ObjectExpression') {
- node.right.properties.forEach((prop) => {
- if (prop.computed || !('key' in prop) || prop.key.type !== 'Identifier') return;
- const { name } = prop.key;
- if (name === pluginutils.makeLegalIdentifier(name)) namedExports[name] = true;
- });
- return;
- }
-
- if (exportsPatternMatch[1]) namedExports[exportsPatternMatch[1]] = true;
- } else {
- for (const name of pluginutils.extractAssignedNames(node.left)) {
- reassignedNames.add(name);
- }
- }
- return;
- case 'CallExpression': {
- if (isDefineCompiledEsm(node)) {
- if (programDepth === 3 && parent.type === 'ExpressionStatement') {
- // skip special handling for [module.]exports until we know we render this
- skippedNodes.add(node.arguments[0]);
- defineCompiledEsmExpressions.push(parent);
- } else {
- shouldWrap = true;
- }
- return;
- }
-
- if (
- node.callee.object &&
- node.callee.object.name === 'require' &&
- node.callee.property.name === 'resolve' &&
- hasDynamicModuleForPath(id, '/', dynamicRequireModuleSet)
- ) {
- const requireNode = node.callee.object;
- magicString.appendLeft(
- node.end - 1,
- `,${JSON.stringify(
- path.dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath
- )}`
- );
- magicString.overwrite(
- requireNode.start,
- requireNode.end,
- `${HELPERS_NAME}.commonjsRequire`,
- {
- storeName: true
- }
- );
- uses.commonjsHelpers = true;
- return;
- }
-
- if (!isStaticRequireStatement(node, scope)) return;
- if (!isDynamicRequireModulesEnabled) {
- skippedNodes.add(node.callee);
- }
- if (!isIgnoredRequireStatement(node, ignoreRequire)) {
- skippedNodes.add(node.callee);
- const usesReturnValue = parent.type !== 'ExpressionStatement';
-
- let canConvertRequire = true;
- let shouldRemoveRequireStatement = false;
-
- if (currentTryBlockEnd !== null) {
- ({
- canConvertRequire,
- shouldRemoveRequireStatement
- } = getIgnoreTryCatchRequireStatementMode(node.arguments[0].value));
-
- if (shouldRemoveRequireStatement) {
- hasRemovedRequire = true;
- }
- }
-
- let sourceId = getRequireStringArg(node);
- const isDynamicRegister = isModuleRegisterProxy(sourceId);
- if (isDynamicRegister) {
- sourceId = unwrapModuleRegisterProxy(sourceId);
- if (sourceId.endsWith('.json')) {
- sourceId = DYNAMIC_JSON_PREFIX + sourceId;
- }
- dynamicRegisterSources.add(wrapModuleRegisterProxy(sourceId));
- } else {
- if (
- !sourceId.endsWith('.json') &&
- hasDynamicModuleForPath(sourceId, id, dynamicRequireModuleSet)
- ) {
- if (shouldRemoveRequireStatement) {
- magicString.overwrite(node.start, node.end, `undefined`);
- } else if (canConvertRequire) {
- magicString.overwrite(
- node.start,
- node.end,
- `${HELPERS_NAME}.commonjsRequire(${JSON.stringify(
- getVirtualPathForDynamicRequirePath(sourceId, commonDir)
- )}, ${JSON.stringify(
- path.dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath
- )})`
- );
- uses.commonjsHelpers = true;
- }
- return;
- }
-
- if (canConvertRequire) {
- addRequireStatement(sourceId, node, scope, usesReturnValue);
- }
- }
-
- if (usesReturnValue) {
- if (shouldRemoveRequireStatement) {
- magicString.overwrite(node.start, node.end, `undefined`);
- return;
- }
-
- if (
- parent.type === 'VariableDeclarator' &&
- !scope.parent &&
- parent.id.type === 'Identifier'
- ) {
- // This will allow us to reuse this variable name as the imported variable if it is not reassigned
- // and does not conflict with variables in other places where this is imported
- topLevelRequireDeclarators.add(parent);
- }
- } else {
- // This is a bare import, e.g. `require('foo');`
-
- if (!canConvertRequire && !shouldRemoveRequireStatement) {
- return;
- }
-
- magicString.remove(parent.start, parent.end);
- }
- }
- return;
- }
- case 'ConditionalExpression':
- case 'IfStatement':
- // skip dead branches
- if (isFalsy(node.test)) {
- skippedNodes.add(node.consequent);
- } else if (node.alternate && isTruthy(node.test)) {
- skippedNodes.add(node.alternate);
- }
- return;
- case 'Identifier': {
- const { name } = node;
- if (!(isReference__default['default'](node, parent) && !scope.contains(name))) return;
- switch (name) {
- case 'require':
- if (isNodeRequirePropertyAccess(parent)) {
- if (hasDynamicModuleForPath(id, '/', dynamicRequireModuleSet)) {
- if (parent.property.name === 'cache') {
- magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {
- storeName: true
- });
- uses.commonjsHelpers = true;
- }
- }
-
- return;
- }
-
- if (isDynamicRequireModulesEnabled && isRequireStatement(parent, scope)) {
- magicString.appendLeft(
- parent.end - 1,
- `,${JSON.stringify(
- path.dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath
- )}`
- );
- }
- if (isShorthandProperty(parent)) {
- magicString.appendRight(node.end, `: ${HELPERS_NAME}.commonjsRequire`);
- } else {
- magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {
- storeName: true
- });
- }
-
- uses.commonjsHelpers = true;
- return;
- case 'module':
- case 'exports':
- shouldWrap = true;
- uses[name] = true;
- return;
- case 'global':
- uses.global = true;
- if (!ignoreGlobal) {
- magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {
- storeName: true
- });
- uses.commonjsHelpers = true;
- }
- return;
- case 'define':
- magicString.overwrite(node.start, node.end, 'undefined', { storeName: true });
- return;
- default:
- globals.add(name);
- return;
- }
- }
- case 'MemberExpression':
- if (!isDynamicRequireModulesEnabled && isModuleRequire(node, scope)) {
- magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {
- storeName: true
- });
- uses.commonjsHelpers = true;
- skippedNodes.add(node.object);
- skippedNodes.add(node.property);
- }
- return;
- case 'ReturnStatement':
- // if top-level return, we need to wrap it
- if (lexicalDepth === 0) {
- shouldWrap = true;
- }
- return;
- case 'ThisExpression':
- // rewrite top-level `this` as `commonjsHelpers.commonjsGlobal`
- if (lexicalDepth === 0) {
- uses.global = true;
- if (!ignoreGlobal) {
- magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {
- storeName: true
- });
- uses.commonjsHelpers = true;
- }
- }
- return;
- case 'UnaryExpression':
- // rewrite `typeof module`, `typeof module.exports` and `typeof exports` (https://github.com/rollup/rollup-plugin-commonjs/issues/151)
- if (node.operator === 'typeof') {
- const flattened = getKeypath(node.argument);
- if (!flattened) return;
-
- if (scope.contains(flattened.name)) return;
-
- if (
- flattened.keypath === 'module.exports' ||
- flattened.keypath === 'module' ||
- flattened.keypath === 'exports'
- ) {
- magicString.overwrite(node.start, node.end, `'object'`, { storeName: false });
- }
- }
- return;
- case 'VariableDeclaration':
- if (!scope.parent) {
- topLevelDeclarations.push(node);
- }
- }
- },
-
- leave(node) {
- programDepth -= 1;
- if (node.scope) scope = scope.parent;
- if (functionType.test(node.type)) lexicalDepth -= 1;
- }
- });
-
- let isRestorableCompiledEsm = false;
- if (defineCompiledEsmExpressions.length > 0) {
- if (!shouldWrap && defineCompiledEsmExpressions.length === 1) {
- isRestorableCompiledEsm = true;
- magicString.remove(
- defineCompiledEsmExpressions[0].start,
- defineCompiledEsmExpressions[0].end
- );
- } else {
- shouldWrap = true;
- uses.exports = true;
- }
- }
-
- // We cannot wrap ES/mixed modules
- shouldWrap = shouldWrap && !disableWrap && !isEsModule;
- uses.commonjsHelpers = uses.commonjsHelpers || shouldWrap;
-
- if (
- !(
- requiredSources.length ||
- dynamicRegisterSources.size ||
- uses.module ||
- uses.exports ||
- uses.require ||
- uses.commonjsHelpers ||
- hasRemovedRequire
- ) &&
- (ignoreGlobal || !uses.global)
- ) {
- return { meta: { commonjs: { isCommonJS: false } } };
- }
-
- const moduleName = deconflict(scope, globals, getName(id));
-
- let leadingComment = '';
- if (code.startsWith('/*')) {
- const commentEnd = code.indexOf('*/', 2) + 2;
- leadingComment = `${code.slice(0, commentEnd)}\n`;
- magicString.remove(0, commentEnd).trim();
- }
-
- const exportBlock = isEsModule
- ? ''
- : rewriteExportsAndGetExportsBlock(
- magicString,
- moduleName,
- shouldWrap,
- topLevelModuleExportsAssignments,
- topLevelExportsAssignmentsByName,
- defineCompiledEsmExpressions,
- (name) => deconflict(scope, globals, name),
- isRestorableCompiledEsm,
- code,
- uses,
- HELPERS_NAME
- );
-
- const importBlock = rewriteRequireExpressionsAndGetImportBlock(
- magicString,
- topLevelDeclarations,
- topLevelRequireDeclarators,
- reassignedNames,
- uses.commonjsHelpers && HELPERS_NAME,
- dynamicRegisterSources
- );
-
- if (shouldWrap) {
- wrapCode(magicString, uses, moduleName, HELPERS_NAME, virtualDynamicRequirePath);
- }
-
- magicString
- .trim()
- .prepend(leadingComment + importBlock)
- .append(exportBlock);
-
- return {
- code: magicString.toString(),
- map: sourceMap ? magicString.generateMap() : null,
- syntheticNamedExports: isEsModule ? false : '__moduleExports',
- meta: { commonjs: { isCommonJS: !isEsModule } }
- };
-}
-
-function commonjs(options = {}) {
- const extensions = options.extensions || ['.js'];
- const filter = pluginutils.createFilter(options.include, options.exclude);
- const {
- ignoreGlobal,
- requireReturnsDefault: requireReturnsDefaultOption,
- esmExternals
- } = options;
- const getRequireReturnsDefault =
- typeof requireReturnsDefaultOption === 'function'
- ? requireReturnsDefaultOption
- : () => requireReturnsDefaultOption;
- let esmExternalIds;
- const isEsmExternal =
- typeof esmExternals === 'function'
- ? esmExternals
- : Array.isArray(esmExternals)
- ? ((esmExternalIds = new Set(esmExternals)), (id) => esmExternalIds.has(id))
- : () => esmExternals;
-
- const { dynamicRequireModuleSet, dynamicRequireModuleDirPaths } = getDynamicRequirePaths(
- options.dynamicRequireTargets
- );
- const isDynamicRequireModulesEnabled = dynamicRequireModuleSet.size > 0;
- const commonDir = isDynamicRequireModulesEnabled
- ? getCommonDir__default['default'](null, Array.from(dynamicRequireModuleSet).concat(process.cwd()))
- : null;
-
- const esModulesWithDefaultExport = new Set();
- const esModulesWithNamedExports = new Set();
-
- const ignoreRequire =
- typeof options.ignore === 'function'
- ? options.ignore
- : Array.isArray(options.ignore)
- ? (id) => options.ignore.includes(id)
- : () => false;
-
- const getIgnoreTryCatchRequireStatementMode = (id) => {
- const mode =
- typeof options.ignoreTryCatch === 'function'
- ? options.ignoreTryCatch(id)
- : Array.isArray(options.ignoreTryCatch)
- ? options.ignoreTryCatch.includes(id)
- : options.ignoreTryCatch || false;
-
- return {
- canConvertRequire: mode !== 'remove' && mode !== true,
- shouldRemoveRequireStatement: mode === 'remove'
- };
- };
-
- const resolveId = getResolveId(extensions);
-
- const sourceMap = options.sourceMap !== false;
-
- function transformAndCheckExports(code, id) {
- if (isDynamicRequireModulesEnabled && this.getModuleInfo(id).isEntry) {
- code =
- getDynamicPackagesEntryIntro(dynamicRequireModuleDirPaths, dynamicRequireModuleSet) + code;
- }
-
- const { isEsModule, hasDefaultExport, hasNamedExports, ast } = analyzeTopLevelStatements(
- this.parse,
- code,
- id
- );
- if (hasDefaultExport) {
- esModulesWithDefaultExport.add(id);
- }
- if (hasNamedExports) {
- esModulesWithNamedExports.add(id);
- }
-
- if (
- !dynamicRequireModuleSet.has(normalizePathSlashes(id)) &&
- (!hasCjsKeywords(code, ignoreGlobal) || (isEsModule && !options.transformMixedEsModules))
- ) {
- return { meta: { commonjs: { isCommonJS: false } } };
- }
-
- let disableWrap = false;
-
- // avoid wrapping in createCommonjsModule, as this is a commonjsRegister call
- if (isModuleRegisterProxy(id)) {
- disableWrap = true;
- id = unwrapModuleRegisterProxy(id);
- }
-
- return transformCommonjs(
- this.parse,
- code,
- id,
- isEsModule,
- ignoreGlobal || isEsModule,
- ignoreRequire,
- getIgnoreTryCatchRequireStatementMode,
- sourceMap,
- isDynamicRequireModulesEnabled,
- dynamicRequireModuleSet,
- disableWrap,
- commonDir,
- ast
- );
- }
-
- return {
- name: 'commonjs',
-
- buildStart() {
- validateRollupVersion(this.meta.rollupVersion, peerDependencies.rollup);
- if (options.namedExports != null) {
- this.warn(
- 'The namedExports option from "@rollup/plugin-commonjs" is deprecated. Named exports are now handled automatically.'
- );
- }
- },
-
- resolveId,
-
- load(id) {
- if (id === HELPERS_ID) {
- return getHelpersModule(isDynamicRequireModulesEnabled);
- }
-
- if (id.startsWith(HELPERS_ID)) {
- return getSpecificHelperProxy(id);
- }
-
- if (isWrappedId(id, EXTERNAL_SUFFIX)) {
- const actualId = unwrapId(id, EXTERNAL_SUFFIX);
- return getUnknownRequireProxy(
- actualId,
- isEsmExternal(actualId) ? getRequireReturnsDefault(actualId) : true
- );
- }
-
- if (id === DYNAMIC_PACKAGES_ID) {
- return getDynamicPackagesModule(dynamicRequireModuleDirPaths, commonDir);
- }
-
- if (id.startsWith(DYNAMIC_JSON_PREFIX)) {
- return getDynamicJsonProxy(id, commonDir);
- }
-
- if (isDynamicModuleImport(id, dynamicRequireModuleSet)) {
- return `export default require(${JSON.stringify(normalizePathSlashes(id))});`;
- }
-
- if (isModuleRegisterProxy(id)) {
- return getDynamicRequireProxy(
- normalizePathSlashes(unwrapModuleRegisterProxy(id)),
- commonDir
- );
- }
-
- if (isWrappedId(id, PROXY_SUFFIX)) {
- const actualId = unwrapId(id, PROXY_SUFFIX);
- return getStaticRequireProxy(
- actualId,
- getRequireReturnsDefault(actualId),
- esModulesWithDefaultExport,
- esModulesWithNamedExports
- );
- }
-
- return null;
- },
-
- transform(code, rawId) {
- let id = rawId;
-
- if (isModuleRegisterProxy(id)) {
- id = unwrapModuleRegisterProxy(id);
- }
-
- const extName = path.extname(id);
- if (
- extName !== '.cjs' &&
- id !== DYNAMIC_PACKAGES_ID &&
- !id.startsWith(DYNAMIC_JSON_PREFIX) &&
- (!filter(id) || !extensions.includes(extName))
- ) {
- return null;
- }
-
- try {
- return transformAndCheckExports.call(this, code, rawId);
- } catch (err) {
- return this.error(err, err.loc);
- }
- },
-
- moduleParsed({ id, meta: { commonjs } }) {
- if (commonjs) {
- const isCjs = commonjs.isCommonJS;
- if (isCjs != null) {
- setIsCjsPromise(id, isCjs);
- return;
- }
- }
- setIsCjsPromise(id, null);
- }
- };
-}
-
-module.exports = commonjs;
-//# sourceMappingURL=index.js.map
diff --git a/node_modules/@rollup/plugin-commonjs/dist/index.js.map b/node_modules/@rollup/plugin-commonjs/dist/index.js.map
deleted file mode 100644
index 335d1b3f01..0000000000
--- a/node_modules/@rollup/plugin-commonjs/dist/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sources":["../src/parse.js","../src/analyze-top-level-statements.js","../src/helpers.js","../src/utils.js","../src/dynamic-packages-manager.js","../src/dynamic-require-paths.js","../src/is-cjs.js","../src/proxies.js","../src/resolve-id.js","../src/rollup-version.js","../src/ast-utils.js","../src/generate-exports.js","../src/generate-imports.js","../src/transform-commonjs.js","../src/index.js"],"sourcesContent":["export function tryParse(parse, code, id) {\n try {\n return parse(code, { allowReturnOutsideFunction: true });\n } catch (err) {\n err.message += ` in ${id}`;\n throw err;\n }\n}\n\nconst firstpassGlobal = /\\b(?:require|module|exports|global)\\b/;\n\nconst firstpassNoGlobal = /\\b(?:require|module|exports)\\b/;\n\nexport function hasCjsKeywords(code, ignoreGlobal) {\n const firstpass = ignoreGlobal ? firstpassNoGlobal : firstpassGlobal;\n return firstpass.test(code);\n}\n","/* eslint-disable no-underscore-dangle */\n\nimport { tryParse } from './parse';\n\nexport default function analyzeTopLevelStatements(parse, code, id) {\n const ast = tryParse(parse, code, id);\n\n let isEsModule = false;\n let hasDefaultExport = false;\n let hasNamedExports = false;\n\n for (const node of ast.body) {\n switch (node.type) {\n case 'ExportDefaultDeclaration':\n isEsModule = true;\n hasDefaultExport = true;\n break;\n case 'ExportNamedDeclaration':\n isEsModule = true;\n if (node.declaration) {\n hasNamedExports = true;\n } else {\n for (const specifier of node.specifiers) {\n if (specifier.exported.name === 'default') {\n hasDefaultExport = true;\n } else {\n hasNamedExports = true;\n }\n }\n }\n break;\n case 'ExportAllDeclaration':\n isEsModule = true;\n if (node.exported && node.exported.name === 'default') {\n hasDefaultExport = true;\n } else {\n hasNamedExports = true;\n }\n break;\n case 'ImportDeclaration':\n isEsModule = true;\n break;\n default:\n }\n }\n\n return { isEsModule, hasDefaultExport, hasNamedExports, ast };\n}\n","export const isWrappedId = (id, suffix) => id.endsWith(suffix);\nexport const wrapId = (id, suffix) => `\\0${id}${suffix}`;\nexport const unwrapId = (wrappedId, suffix) => wrappedId.slice(1, -suffix.length);\n\nexport const PROXY_SUFFIX = '?commonjs-proxy';\nexport const REQUIRE_SUFFIX = '?commonjs-require';\nexport const EXTERNAL_SUFFIX = '?commonjs-external';\n\nexport const DYNAMIC_REGISTER_SUFFIX = '?commonjs-dynamic-register';\nexport const DYNAMIC_JSON_PREFIX = '\\0commonjs-dynamic-json:';\nexport const DYNAMIC_PACKAGES_ID = '\\0commonjs-dynamic-packages';\n\nexport const HELPERS_ID = '\\0commonjsHelpers.js';\n\n// `x['default']` is used instead of `x.default` for backward compatibility with ES3 browsers.\n// Minifiers like uglify will usually transpile it back if compatibility with ES3 is not enabled.\n// This will no longer be necessary once Rollup switches to ES6 output, likely\n// in Rollup 3\n\nconst HELPERS = `\nexport var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function getDefaultExportFromNamespaceIfPresent (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;\n}\n\nexport function getDefaultExportFromNamespaceIfNotNamed (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;\n}\n\nexport function getAugmentedNamespace(n) {\n\tif (n.__esModule) return n;\n\tvar a = Object.defineProperty({}, '__esModule', {value: true});\n\tObject.keys(n).forEach(function (k) {\n\t\tvar d = Object.getOwnPropertyDescriptor(n, k);\n\t\tObject.defineProperty(a, k, d.get ? d : {\n\t\t\tenumerable: true,\n\t\t\tget: function () {\n\t\t\t\treturn n[k];\n\t\t\t}\n\t\t});\n\t});\n\treturn a;\n}\n`;\n\nconst HELPER_NON_DYNAMIC = `\nexport function createCommonjsModule(fn) {\n var module = { exports: {} }\n\treturn fn(module, module.exports), module.exports;\n}\n\nexport function commonjsRequire (target) {\n\tthrow new Error('Could not dynamically require \"' + target + '\". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.');\n}\n`;\n\nconst HELPERS_DYNAMIC = `\nexport function createCommonjsModule(fn, basedir, module) {\n\treturn module = {\n\t\tpath: basedir,\n\t\texports: {},\n\t\trequire: function (path, base) {\n\t\t\treturn commonjsRequire(path, (base === undefined || base === null) ? module.path : base);\n\t\t}\n\t}, fn(module, module.exports), module.exports;\n}\n\nexport function commonjsRegister (path, loader) {\n\tDYNAMIC_REQUIRE_LOADERS[path] = loader;\n}\n\nconst DYNAMIC_REQUIRE_LOADERS = Object.create(null);\nconst DYNAMIC_REQUIRE_CACHE = Object.create(null);\nconst DEFAULT_PARENT_MODULE = {\n\tid: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []\n};\nconst CHECKED_EXTENSIONS = ['', '.js', '.json'];\n\nfunction normalize (path) {\n\tpath = path.replace(/\\\\\\\\/g, '/');\n\tconst parts = path.split('/');\n\tconst slashed = parts[0] === '';\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] === '.' || parts[i] === '') {\n\t\t\tparts.splice(i--, 1);\n\t\t}\n\t}\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] !== '..') continue;\n\t\tif (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {\n\t\t\tparts.splice(--i, 2);\n\t\t\ti--;\n\t\t}\n\t}\n\tpath = parts.join('/');\n\tif (slashed && path[0] !== '/')\n\t path = '/' + path;\n\telse if (path.length === 0)\n\t path = '.';\n\treturn path;\n}\n\nfunction join () {\n\tif (arguments.length === 0)\n\t return '.';\n\tlet joined;\n\tfor (let i = 0; i < arguments.length; ++i) {\n\t let arg = arguments[i];\n\t if (arg.length > 0) {\n\t\tif (joined === undefined)\n\t\t joined = arg;\n\t\telse\n\t\t joined += '/' + arg;\n\t }\n\t}\n\tif (joined === undefined)\n\t return '.';\n\n\treturn joined;\n}\n\nfunction isPossibleNodeModulesPath (modulePath) {\n\tlet c0 = modulePath[0];\n\tif (c0 === '/' || c0 === '\\\\\\\\') return false;\n\tlet c1 = modulePath[1], c2 = modulePath[2];\n\tif ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\\\\\')) ||\n\t\t(c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\\\\\'))) return false;\n\tif (c1 === ':' && (c2 === '/' || c2 === '\\\\\\\\'))\n\t\treturn false;\n\treturn true;\n}\n\nfunction dirname (path) {\n if (path.length === 0)\n return '.';\n\n let i = path.length - 1;\n while (i > 0) {\n const c = path.charCodeAt(i);\n if ((c === 47 || c === 92) && i !== path.length - 1)\n break;\n i--;\n }\n\n if (i > 0)\n return path.substr(0, i);\n\n if (path.chartCodeAt(0) === 47 || path.chartCodeAt(0) === 92)\n return path.charAt(0);\n\n return '.';\n}\n\nexport function commonjsResolveImpl (path, originalModuleDir, testCache) {\n\tconst shouldTryNodeModules = isPossibleNodeModulesPath(path);\n\tpath = normalize(path);\n\tlet relPath;\n\tif (path[0] === '/') {\n\t\toriginalModuleDir = '/';\n\t}\n\twhile (true) {\n\t\tif (!shouldTryNodeModules) {\n\t\t\trelPath = originalModuleDir ? normalize(originalModuleDir + '/' + path) : path;\n\t\t} else if (originalModuleDir) {\n\t\t\trelPath = normalize(originalModuleDir + '/node_modules/' + path);\n\t\t} else {\n\t\t\trelPath = normalize(join('node_modules', path));\n\t\t}\n\n\t\tif (relPath.endsWith('/..')) {\n\t\t\tbreak; // Travelled too far up, avoid infinite loop\n\t\t}\n\n\t\tfor (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {\n\t\t\tconst resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];\n\t\t\tif (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {\n\t\t\t\treturn resolvedPath;\n\t\t\t};\n\t\t\tif (DYNAMIC_REQUIRE_LOADERS[resolvedPath]) {\n\t\t\t\treturn resolvedPath;\n\t\t\t};\n\t\t}\n\t\tif (!shouldTryNodeModules) break;\n\t\tconst nextDir = normalize(originalModuleDir + '/..');\n\t\tif (nextDir === originalModuleDir) break;\n\t\toriginalModuleDir = nextDir;\n\t}\n\treturn null;\n}\n\nexport function commonjsResolve (path, originalModuleDir) {\n\tconst resolvedPath = commonjsResolveImpl(path, originalModuleDir);\n\tif (resolvedPath !== null) {\n\t\treturn resolvedPath;\n\t}\n\treturn require.resolve(path);\n}\n\nexport function commonjsRequire (path, originalModuleDir) {\n\tconst resolvedPath = commonjsResolveImpl(path, originalModuleDir, true);\n\tif (resolvedPath !== null) {\n let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];\n if (cachedModule) return cachedModule.exports;\n const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];\n if (loader) {\n DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {\n id: resolvedPath,\n filename: resolvedPath,\n path: dirname(resolvedPath),\n exports: {},\n parent: DEFAULT_PARENT_MODULE,\n loaded: false,\n children: [],\n paths: [],\n require: function (path, base) {\n return commonjsRequire(path, (base === undefined || base === null) ? cachedModule.path : base);\n }\n };\n try {\n loader.call(commonjsGlobal, cachedModule, cachedModule.exports);\n } catch (error) {\n delete DYNAMIC_REQUIRE_CACHE[resolvedPath];\n throw error;\n }\n cachedModule.loaded = true;\n return cachedModule.exports;\n };\n\t}\n\treturn require(path);\n}\n\ncommonjsRequire.cache = DYNAMIC_REQUIRE_CACHE;\ncommonjsRequire.resolve = commonjsResolve;\n`;\n\nexport function getHelpersModule(isDynamicRequireModulesEnabled) {\n return `${HELPERS}${isDynamicRequireModulesEnabled ? HELPERS_DYNAMIC : HELPER_NON_DYNAMIC}`;\n}\n","/* eslint-disable import/prefer-default-export */\n\nimport { basename, dirname, extname, sep } from 'path';\n\nimport { makeLegalIdentifier } from '@rollup/pluginutils';\n\nexport function deconflict(scope, globals, identifier) {\n let i = 1;\n let deconflicted = makeLegalIdentifier(identifier);\n\n while (scope.contains(deconflicted) || globals.has(deconflicted)) {\n deconflicted = makeLegalIdentifier(`${identifier}_${i}`);\n i += 1;\n }\n // eslint-disable-next-line no-param-reassign\n scope.declarations[deconflicted] = true;\n\n return deconflicted;\n}\n\nexport function getName(id) {\n const name = makeLegalIdentifier(basename(id, extname(id)));\n if (name !== 'index') {\n return name;\n }\n const segments = dirname(id).split(sep);\n return makeLegalIdentifier(segments[segments.length - 1]);\n}\n\nexport function normalizePathSlashes(path) {\n return path.replace(/\\\\/g, '/');\n}\n\nconst VIRTUAL_PATH_BASE = '/$$rollup_base$$';\nexport const getVirtualPathForDynamicRequirePath = (path, commonDir) => {\n const normalizedPath = normalizePathSlashes(path);\n return normalizedPath.startsWith(commonDir)\n ? VIRTUAL_PATH_BASE + normalizedPath.slice(commonDir.length)\n : normalizedPath;\n};\n","import { existsSync, readFileSync } from 'fs';\nimport { join } from 'path';\n\nimport {\n DYNAMIC_PACKAGES_ID,\n DYNAMIC_REGISTER_SUFFIX,\n HELPERS_ID,\n isWrappedId,\n unwrapId,\n wrapId\n} from './helpers';\nimport { getVirtualPathForDynamicRequirePath, normalizePathSlashes } from './utils';\n\nexport function getPackageEntryPoint(dirPath) {\n let entryPoint = 'index.js';\n\n try {\n if (existsSync(join(dirPath, 'package.json'))) {\n entryPoint =\n JSON.parse(readFileSync(join(dirPath, 'package.json'), { encoding: 'utf8' })).main ||\n entryPoint;\n }\n } catch (ignored) {\n // ignored\n }\n\n return entryPoint;\n}\n\nexport function getDynamicPackagesModule(dynamicRequireModuleDirPaths, commonDir) {\n let code = `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');`;\n for (const dir of dynamicRequireModuleDirPaths) {\n const entryPoint = getPackageEntryPoint(dir);\n\n code += `\\ncommonjsRegister(${JSON.stringify(\n getVirtualPathForDynamicRequirePath(dir, commonDir)\n )}, function (module, exports) {\n module.exports = require(${JSON.stringify(normalizePathSlashes(join(dir, entryPoint)))});\n});`;\n }\n return code;\n}\n\nexport function getDynamicPackagesEntryIntro(\n dynamicRequireModuleDirPaths,\n dynamicRequireModuleSet\n) {\n let dynamicImports = Array.from(\n dynamicRequireModuleSet,\n (dynamicId) => `require(${JSON.stringify(wrapModuleRegisterProxy(dynamicId))});`\n ).join('\\n');\n\n if (dynamicRequireModuleDirPaths.length) {\n dynamicImports += `require(${JSON.stringify(wrapModuleRegisterProxy(DYNAMIC_PACKAGES_ID))});`;\n }\n\n return dynamicImports;\n}\n\nexport function wrapModuleRegisterProxy(id) {\n return wrapId(id, DYNAMIC_REGISTER_SUFFIX);\n}\n\nexport function unwrapModuleRegisterProxy(id) {\n return unwrapId(id, DYNAMIC_REGISTER_SUFFIX);\n}\n\nexport function isModuleRegisterProxy(id) {\n return isWrappedId(id, DYNAMIC_REGISTER_SUFFIX);\n}\n\nexport function isDynamicModuleImport(id, dynamicRequireModuleSet) {\n const normalizedPath = normalizePathSlashes(id);\n return dynamicRequireModuleSet.has(normalizedPath) && !normalizedPath.endsWith('.json');\n}\n","import { statSync } from 'fs';\n\nimport { join, resolve } from 'path';\n\nimport glob from 'glob';\n\nimport { normalizePathSlashes } from './utils';\nimport { getPackageEntryPoint } from './dynamic-packages-manager';\n\nfunction isDirectory(path) {\n try {\n if (statSync(path).isDirectory()) return true;\n } catch (ignored) {\n // Nothing to do here\n }\n return false;\n}\n\nexport default function getDynamicRequirePaths(patterns) {\n const dynamicRequireModuleSet = new Set();\n for (const pattern of !patterns || Array.isArray(patterns) ? patterns || [] : [patterns]) {\n const isNegated = pattern.startsWith('!');\n const modifySet = Set.prototype[isNegated ? 'delete' : 'add'].bind(dynamicRequireModuleSet);\n for (const path of glob.sync(isNegated ? pattern.substr(1) : pattern)) {\n modifySet(normalizePathSlashes(resolve(path)));\n if (isDirectory(path)) {\n modifySet(normalizePathSlashes(resolve(join(path, getPackageEntryPoint(path)))));\n }\n }\n }\n const dynamicRequireModuleDirPaths = Array.from(dynamicRequireModuleSet.values()).filter((path) =>\n isDirectory(path)\n );\n return { dynamicRequireModuleSet, dynamicRequireModuleDirPaths };\n}\n","const isCjsPromises = new Map();\n\nexport function getIsCjsPromise(id) {\n let isCjsPromise = isCjsPromises.get(id);\n if (isCjsPromise) return isCjsPromise.promise;\n\n const promise = new Promise((resolve) => {\n isCjsPromise = {\n resolve,\n promise: null\n };\n isCjsPromises.set(id, isCjsPromise);\n });\n isCjsPromise.promise = promise;\n\n return promise;\n}\n\nexport function setIsCjsPromise(id, resolution) {\n const isCjsPromise = isCjsPromises.get(id);\n if (isCjsPromise) {\n if (isCjsPromise.resolve) {\n isCjsPromise.resolve(resolution);\n isCjsPromise.resolve = null;\n }\n } else {\n isCjsPromises.set(id, { promise: Promise.resolve(resolution), resolve: null });\n }\n}\n","import { readFileSync } from 'fs';\n\nimport { DYNAMIC_JSON_PREFIX, HELPERS_ID } from './helpers';\nimport { getIsCjsPromise } from './is-cjs';\nimport { getName, getVirtualPathForDynamicRequirePath, normalizePathSlashes } from './utils';\n\n// e.g. id === \"commonjsHelpers?commonjsRegister\"\nexport function getSpecificHelperProxy(id) {\n return `export {${id.split('?')[1]} as default} from '${HELPERS_ID}';`;\n}\n\nexport function getUnknownRequireProxy(id, requireReturnsDefault) {\n if (requireReturnsDefault === true || id.endsWith('.json')) {\n return `export {default} from ${JSON.stringify(id)};`;\n }\n const name = getName(id);\n const exported =\n requireReturnsDefault === 'auto'\n ? `import {getDefaultExportFromNamespaceIfNotNamed} from \"${HELPERS_ID}\"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(${name});`\n : requireReturnsDefault === 'preferred'\n ? `import {getDefaultExportFromNamespaceIfPresent} from \"${HELPERS_ID}\"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfPresent(${name});`\n : !requireReturnsDefault\n ? `import {getAugmentedNamespace} from \"${HELPERS_ID}\"; export default /*@__PURE__*/getAugmentedNamespace(${name});`\n : `export default ${name};`;\n return `import * as ${name} from ${JSON.stringify(id)}; ${exported}`;\n}\n\nexport function getDynamicJsonProxy(id, commonDir) {\n const normalizedPath = normalizePathSlashes(id.slice(DYNAMIC_JSON_PREFIX.length));\n return `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');\\ncommonjsRegister(${JSON.stringify(\n getVirtualPathForDynamicRequirePath(normalizedPath, commonDir)\n )}, function (module, exports) {\n module.exports = require(${JSON.stringify(normalizedPath)});\n});`;\n}\n\nexport function getDynamicRequireProxy(normalizedPath, commonDir) {\n return `const commonjsRegister = require('${HELPERS_ID}?commonjsRegister');\\ncommonjsRegister(${JSON.stringify(\n getVirtualPathForDynamicRequirePath(normalizedPath, commonDir)\n )}, function (module, exports) {\n ${readFileSync(normalizedPath, { encoding: 'utf8' })}\n});`;\n}\n\nexport async function getStaticRequireProxy(\n id,\n requireReturnsDefault,\n esModulesWithDefaultExport,\n esModulesWithNamedExports\n) {\n const name = getName(id);\n const isCjs = await getIsCjsPromise(id);\n if (isCjs) {\n return `import { __moduleExports } from ${JSON.stringify(id)}; export default __moduleExports;`;\n } else if (isCjs === null) {\n return getUnknownRequireProxy(id, requireReturnsDefault);\n } else if (!requireReturnsDefault) {\n return `import {getAugmentedNamespace} from \"${HELPERS_ID}\"; import * as ${name} from ${JSON.stringify(\n id\n )}; export default /*@__PURE__*/getAugmentedNamespace(${name});`;\n } else if (\n requireReturnsDefault !== true &&\n (requireReturnsDefault === 'namespace' ||\n !esModulesWithDefaultExport.has(id) ||\n (requireReturnsDefault === 'auto' && esModulesWithNamedExports.has(id)))\n ) {\n return `import * as ${name} from ${JSON.stringify(id)}; export default ${name};`;\n }\n return `export {default} from ${JSON.stringify(id)};`;\n}\n","/* eslint-disable no-param-reassign, no-undefined */\n\nimport { statSync } from 'fs';\nimport { dirname, resolve, sep } from 'path';\n\nimport {\n DYNAMIC_JSON_PREFIX,\n DYNAMIC_PACKAGES_ID,\n EXTERNAL_SUFFIX,\n HELPERS_ID,\n isWrappedId,\n PROXY_SUFFIX,\n REQUIRE_SUFFIX,\n unwrapId,\n wrapId\n} from './helpers';\nimport {\n isModuleRegisterProxy,\n unwrapModuleRegisterProxy,\n wrapModuleRegisterProxy\n} from './dynamic-packages-manager';\n\nfunction getCandidatesForExtension(resolved, extension) {\n return [resolved + extension, `${resolved}${sep}index${extension}`];\n}\n\nfunction getCandidates(resolved, extensions) {\n return extensions.reduce(\n (paths, extension) => paths.concat(getCandidatesForExtension(resolved, extension)),\n [resolved]\n );\n}\n\nexport default function getResolveId(extensions) {\n function resolveExtensions(importee, importer) {\n // not our problem\n if (importee[0] !== '.' || !importer) return undefined;\n\n const resolved = resolve(dirname(importer), importee);\n const candidates = getCandidates(resolved, extensions);\n\n for (let i = 0; i < candidates.length; i += 1) {\n try {\n const stats = statSync(candidates[i]);\n if (stats.isFile()) return { id: candidates[i] };\n } catch (err) {\n /* noop */\n }\n }\n\n return undefined;\n }\n\n return function resolveId(importee, rawImporter) {\n const importer =\n rawImporter && isModuleRegisterProxy(rawImporter)\n ? unwrapModuleRegisterProxy(rawImporter)\n : rawImporter;\n\n // Proxies are only importing resolved ids, no need to resolve again\n if (importer && isWrappedId(importer, PROXY_SUFFIX)) {\n return importee;\n }\n\n const isProxyModule = isWrappedId(importee, PROXY_SUFFIX);\n const isRequiredModule = isWrappedId(importee, REQUIRE_SUFFIX);\n let isModuleRegistration = false;\n\n if (isProxyModule) {\n importee = unwrapId(importee, PROXY_SUFFIX);\n } else if (isRequiredModule) {\n importee = unwrapId(importee, REQUIRE_SUFFIX);\n\n isModuleRegistration = isModuleRegisterProxy(importee);\n if (isModuleRegistration) {\n importee = unwrapModuleRegisterProxy(importee);\n }\n }\n\n if (\n importee.startsWith(HELPERS_ID) ||\n importee === DYNAMIC_PACKAGES_ID ||\n importee.startsWith(DYNAMIC_JSON_PREFIX)\n ) {\n return importee;\n }\n\n if (importee.startsWith('\\0')) {\n return null;\n }\n\n return this.resolve(importee, importer, {\n skipSelf: true,\n custom: { 'node-resolve': { isRequire: isProxyModule || isRequiredModule } }\n }).then((resolved) => {\n if (!resolved) {\n resolved = resolveExtensions(importee, importer);\n }\n if (resolved && isProxyModule) {\n resolved.id = wrapId(resolved.id, resolved.external ? EXTERNAL_SUFFIX : PROXY_SUFFIX);\n resolved.external = false;\n } else if (resolved && isModuleRegistration) {\n resolved.id = wrapModuleRegisterProxy(resolved.id);\n } else if (!resolved && (isProxyModule || isRequiredModule)) {\n return { id: wrapId(importee, EXTERNAL_SUFFIX), external: false };\n }\n return resolved;\n });\n };\n}\n","export default function validateRollupVersion(rollupVersion, peerDependencyVersion) {\n const [major, minor] = rollupVersion.split('.').map(Number);\n const versionRegexp = /\\^(\\d+\\.\\d+)\\.\\d+/g;\n let minMajor = Infinity;\n let minMinor = Infinity;\n let foundVersion;\n // eslint-disable-next-line no-cond-assign\n while ((foundVersion = versionRegexp.exec(peerDependencyVersion))) {\n const [foundMajor, foundMinor] = foundVersion[1].split('.').map(Number);\n if (foundMajor < minMajor) {\n minMajor = foundMajor;\n minMinor = foundMinor;\n }\n }\n if (major < minMajor || (major === minMajor && minor < minMinor)) {\n throw new Error(\n `Insufficient Rollup version: \"@rollup/plugin-commonjs\" requires at least rollup@${minMajor}.${minMinor} but found rollup@${rollupVersion}.`\n );\n }\n}\n","export { default as isReference } from 'is-reference';\n\nconst operators = {\n '==': (x) => equals(x.left, x.right, false),\n\n '!=': (x) => not(operators['=='](x)),\n\n '===': (x) => equals(x.left, x.right, true),\n\n '!==': (x) => not(operators['==='](x)),\n\n '!': (x) => isFalsy(x.argument),\n\n '&&': (x) => isTruthy(x.left) && isTruthy(x.right),\n\n '||': (x) => isTruthy(x.left) || isTruthy(x.right)\n};\n\nfunction not(value) {\n return value === null ? value : !value;\n}\n\nfunction equals(a, b, strict) {\n if (a.type !== b.type) return null;\n // eslint-disable-next-line eqeqeq\n if (a.type === 'Literal') return strict ? a.value === b.value : a.value == b.value;\n return null;\n}\n\nexport function isTruthy(node) {\n if (!node) return false;\n if (node.type === 'Literal') return !!node.value;\n if (node.type === 'ParenthesizedExpression') return isTruthy(node.expression);\n if (node.operator in operators) return operators[node.operator](node);\n return null;\n}\n\nexport function isFalsy(node) {\n return not(isTruthy(node));\n}\n\nexport function getKeypath(node) {\n const parts = [];\n\n while (node.type === 'MemberExpression') {\n if (node.computed) return null;\n\n parts.unshift(node.property.name);\n // eslint-disable-next-line no-param-reassign\n node = node.object;\n }\n\n if (node.type !== 'Identifier') return null;\n\n const { name } = node;\n parts.unshift(name);\n\n return { name, keypath: parts.join('.') };\n}\n\nexport const KEY_COMPILED_ESM = '__esModule';\n\nexport function isDefineCompiledEsm(node) {\n const definedProperty =\n getDefinePropertyCallName(node, 'exports') || getDefinePropertyCallName(node, 'module.exports');\n if (definedProperty && definedProperty.key === KEY_COMPILED_ESM) {\n return isTruthy(definedProperty.value);\n }\n return false;\n}\n\nfunction getDefinePropertyCallName(node, targetName) {\n const targetNames = targetName.split('.');\n\n const {\n callee: { object, property }\n } = node;\n if (!object || object.type !== 'Identifier' || object.name !== 'Object') return;\n if (!property || property.type !== 'Identifier' || property.name !== 'defineProperty') return;\n if (node.arguments.length !== 3) return;\n\n const [target, key, value] = node.arguments;\n if (targetNames.length === 1) {\n if (target.type !== 'Identifier' || target.name !== targetNames[0]) {\n return;\n }\n }\n\n if (targetNames.length === 2) {\n if (\n target.type !== 'MemberExpression' ||\n target.object.name !== targetNames[0] ||\n target.property.name !== targetNames[1]\n ) {\n return;\n }\n }\n\n if (value.type !== 'ObjectExpression' || !value.properties) return;\n\n const valueProperty = value.properties.find((p) => p.key && p.key.name === 'value');\n if (!valueProperty || !valueProperty.value) return;\n\n // eslint-disable-next-line consistent-return\n return { key: key.value, value: valueProperty.value };\n}\n\nexport function isLocallyShadowed(name, scope) {\n while (scope.parent) {\n if (scope.declarations[name]) {\n return true;\n }\n // eslint-disable-next-line no-param-reassign\n scope = scope.parent;\n }\n return false;\n}\n\nexport function isShorthandProperty(parent) {\n return parent && parent.type === 'Property' && parent.shorthand;\n}\n","export function wrapCode(magicString, uses, moduleName, HELPERS_NAME, virtualDynamicRequirePath) {\n const args = `module${uses.exports ? ', exports' : ''}`;\n\n magicString\n .trim()\n .prepend(`var ${moduleName} = ${HELPERS_NAME}.createCommonjsModule(function (${args}) {\\n`)\n .append(\n `\\n}${virtualDynamicRequirePath ? `, ${JSON.stringify(virtualDynamicRequirePath)}` : ''});`\n );\n}\n\nexport function rewriteExportsAndGetExportsBlock(\n magicString,\n moduleName,\n wrapped,\n topLevelModuleExportsAssignments,\n topLevelExportsAssignmentsByName,\n defineCompiledEsmExpressions,\n deconflict,\n isRestorableCompiledEsm,\n code,\n uses,\n HELPERS_NAME\n) {\n const namedExportDeclarations = [`export { ${moduleName} as __moduleExports };`];\n const moduleExportsPropertyAssignments = [];\n let deconflictedDefaultExportName;\n\n if (!wrapped) {\n let hasModuleExportsAssignment = false;\n const namedExportProperties = [];\n\n // Collect and rewrite module.exports assignments\n for (const { left } of topLevelModuleExportsAssignments) {\n hasModuleExportsAssignment = true;\n magicString.overwrite(left.start, left.end, `var ${moduleName}`);\n }\n\n // Collect and rewrite named exports\n for (const [exportName, node] of topLevelExportsAssignmentsByName) {\n const deconflicted = deconflict(exportName);\n magicString.overwrite(node.start, node.left.end, `var ${deconflicted}`);\n\n if (exportName === 'default') {\n deconflictedDefaultExportName = deconflicted;\n } else {\n namedExportDeclarations.push(\n exportName === deconflicted\n ? `export { ${exportName} };`\n : `export { ${deconflicted} as ${exportName} };`\n );\n }\n\n if (hasModuleExportsAssignment) {\n moduleExportsPropertyAssignments.push(`${moduleName}.${exportName} = ${deconflicted};`);\n } else {\n namedExportProperties.push(`\\t${exportName}: ${deconflicted}`);\n }\n }\n\n // Regenerate CommonJS namespace\n if (!hasModuleExportsAssignment) {\n const moduleExports = `{\\n${namedExportProperties.join(',\\n')}\\n}`;\n magicString\n .trim()\n .append(\n `\\n\\nvar ${moduleName} = ${\n isRestorableCompiledEsm\n ? `/*#__PURE__*/Object.defineProperty(${moduleExports}, '__esModule', {value: true})`\n : moduleExports\n };`\n );\n }\n }\n\n // Generate default export\n const defaultExport = [];\n if (isRestorableCompiledEsm) {\n defaultExport.push(`export default ${deconflictedDefaultExportName || moduleName};`);\n } else if (\n (wrapped || deconflictedDefaultExportName) &&\n (defineCompiledEsmExpressions.length > 0 || code.indexOf('__esModule') >= 0)\n ) {\n // eslint-disable-next-line no-param-reassign\n uses.commonjsHelpers = true;\n defaultExport.push(\n `export default /*@__PURE__*/${HELPERS_NAME}.getDefaultExportFromCjs(${moduleName});`\n );\n } else {\n defaultExport.push(`export default ${moduleName};`);\n }\n\n return `\\n\\n${defaultExport\n .concat(namedExportDeclarations)\n .concat(moduleExportsPropertyAssignments)\n .join('\\n')}`;\n}\n","import { dirname, resolve } from 'path';\n\nimport { sync as nodeResolveSync } from 'resolve';\n\nimport { isLocallyShadowed } from './ast-utils';\nimport { HELPERS_ID, PROXY_SUFFIX, REQUIRE_SUFFIX, wrapId } from './helpers';\nimport { normalizePathSlashes } from './utils';\n\nexport function isRequireStatement(node, scope) {\n if (!node) return false;\n if (node.type !== 'CallExpression') return false;\n\n // Weird case of `require()` or `module.require()` without arguments\n if (node.arguments.length === 0) return false;\n\n return isRequire(node.callee, scope);\n}\n\nfunction isRequire(node, scope) {\n return (\n (node.type === 'Identifier' && node.name === 'require' && !scope.contains('require')) ||\n (node.type === 'MemberExpression' && isModuleRequire(node, scope))\n );\n}\n\nexport function isModuleRequire({ object, property }, scope) {\n return (\n object.type === 'Identifier' &&\n object.name === 'module' &&\n property.type === 'Identifier' &&\n property.name === 'require' &&\n !scope.contains('module')\n );\n}\n\nexport function isStaticRequireStatement(node, scope) {\n if (!isRequireStatement(node, scope)) return false;\n return !hasDynamicArguments(node);\n}\n\nfunction hasDynamicArguments(node) {\n return (\n node.arguments.length > 1 ||\n (node.arguments[0].type !== 'Literal' &&\n (node.arguments[0].type !== 'TemplateLiteral' || node.arguments[0].expressions.length > 0))\n );\n}\n\nconst reservedMethod = { resolve: true, cache: true, main: true };\n\nexport function isNodeRequirePropertyAccess(parent) {\n return parent && parent.property && reservedMethod[parent.property.name];\n}\n\nexport function isIgnoredRequireStatement(requiredNode, ignoreRequire) {\n return ignoreRequire(requiredNode.arguments[0].value);\n}\n\nexport function getRequireStringArg(node) {\n return node.arguments[0].type === 'Literal'\n ? node.arguments[0].value\n : node.arguments[0].quasis[0].value.cooked;\n}\n\nexport function hasDynamicModuleForPath(source, id, dynamicRequireModuleSet) {\n if (!/^(?:\\.{0,2}[/\\\\]|[A-Za-z]:[/\\\\])/.test(source)) {\n try {\n const resolvedPath = normalizePathSlashes(nodeResolveSync(source, { basedir: dirname(id) }));\n if (dynamicRequireModuleSet.has(resolvedPath)) {\n return true;\n }\n } catch (ex) {\n // Probably a node.js internal module\n return false;\n }\n\n return false;\n }\n\n for (const attemptExt of ['', '.js', '.json']) {\n const resolvedPath = normalizePathSlashes(resolve(dirname(id), source + attemptExt));\n if (dynamicRequireModuleSet.has(resolvedPath)) {\n return true;\n }\n }\n\n return false;\n}\n\nexport function getRequireHandlers() {\n const requiredSources = [];\n const requiredBySource = Object.create(null);\n const requiredByNode = new Map();\n const requireExpressionsWithUsedReturnValue = [];\n\n function addRequireStatement(sourceId, node, scope, usesReturnValue) {\n const required = getRequired(sourceId);\n requiredByNode.set(node, { scope, required });\n if (usesReturnValue) {\n required.nodesUsingRequired.push(node);\n requireExpressionsWithUsedReturnValue.push(node);\n }\n }\n\n function getRequired(sourceId) {\n if (!requiredBySource[sourceId]) {\n requiredSources.push(sourceId);\n\n requiredBySource[sourceId] = {\n source: sourceId,\n name: null,\n nodesUsingRequired: []\n };\n }\n\n return requiredBySource[sourceId];\n }\n\n function rewriteRequireExpressionsAndGetImportBlock(\n magicString,\n topLevelDeclarations,\n topLevelRequireDeclarators,\n reassignedNames,\n helpersNameIfUsed,\n dynamicRegisterSources\n ) {\n const removedDeclarators = getDeclaratorsReplacedByImportsAndSetImportNames(\n topLevelRequireDeclarators,\n requiredByNode,\n reassignedNames\n );\n setRemainingImportNamesAndRewriteRequires(\n requireExpressionsWithUsedReturnValue,\n requiredByNode,\n magicString\n );\n removeDeclaratorsFromDeclarations(topLevelDeclarations, removedDeclarators, magicString);\n const importBlock = `${(helpersNameIfUsed\n ? [`import * as ${helpersNameIfUsed} from '${HELPERS_ID}';`]\n : []\n )\n .concat(\n // dynamic registers first, as the may be required in the other modules\n [...dynamicRegisterSources].map((source) => `import '${wrapId(source, REQUIRE_SUFFIX)}';`),\n\n // now the actual modules so that they are analyzed before creating the proxies;\n // no need to do this for virtual modules as we never proxy them\n requiredSources\n .filter((source) => !source.startsWith('\\0'))\n .map((source) => `import '${wrapId(source, REQUIRE_SUFFIX)}';`),\n\n // now the proxy modules\n requiredSources.map((source) => {\n const { name, nodesUsingRequired } = requiredBySource[source];\n return `import ${nodesUsingRequired.length ? `${name} from ` : ``}'${\n source.startsWith('\\0') ? source : wrapId(source, PROXY_SUFFIX)\n }';`;\n })\n )\n .join('\\n')}`;\n return importBlock ? `${importBlock}\\n\\n` : '';\n }\n\n return {\n addRequireStatement,\n requiredSources,\n rewriteRequireExpressionsAndGetImportBlock\n };\n}\n\nfunction getDeclaratorsReplacedByImportsAndSetImportNames(\n topLevelRequireDeclarators,\n requiredByNode,\n reassignedNames\n) {\n const removedDeclarators = new Set();\n for (const declarator of topLevelRequireDeclarators) {\n const { required } = requiredByNode.get(declarator.init);\n if (!required.name) {\n const potentialName = declarator.id.name;\n if (\n !reassignedNames.has(potentialName) &&\n !required.nodesUsingRequired.some((node) =>\n isLocallyShadowed(potentialName, requiredByNode.get(node).scope)\n )\n ) {\n required.name = potentialName;\n removedDeclarators.add(declarator);\n }\n }\n }\n return removedDeclarators;\n}\n\nfunction setRemainingImportNamesAndRewriteRequires(\n requireExpressionsWithUsedReturnValue,\n requiredByNode,\n magicString\n) {\n let uid = 0;\n for (const requireExpression of requireExpressionsWithUsedReturnValue) {\n const { required } = requiredByNode.get(requireExpression);\n if (!required.name) {\n let potentialName;\n const isUsedName = (node) => requiredByNode.get(node).scope.contains(potentialName);\n do {\n potentialName = `require$$${uid}`;\n uid += 1;\n } while (required.nodesUsingRequired.some(isUsedName));\n required.name = potentialName;\n }\n magicString.overwrite(requireExpression.start, requireExpression.end, required.name);\n }\n}\n\nfunction removeDeclaratorsFromDeclarations(topLevelDeclarations, removedDeclarators, magicString) {\n for (const declaration of topLevelDeclarations) {\n let keepDeclaration = false;\n let [{ start }] = declaration.declarations;\n for (const declarator of declaration.declarations) {\n if (removedDeclarators.has(declarator)) {\n magicString.remove(start, declarator.end);\n } else if (!keepDeclaration) {\n magicString.remove(start, declarator.start);\n keepDeclaration = true;\n }\n start = declarator.end;\n }\n if (!keepDeclaration) {\n magicString.remove(declaration.start, declaration.end);\n }\n }\n}\n","/* eslint-disable no-param-reassign, no-shadow, no-underscore-dangle, no-continue */\n\nimport { dirname } from 'path';\n\nimport { attachScopes, extractAssignedNames, makeLegalIdentifier } from '@rollup/pluginutils';\nimport { walk } from 'estree-walker';\nimport MagicString from 'magic-string';\n\nimport {\n getKeypath,\n isDefineCompiledEsm,\n isFalsy,\n isReference,\n isShorthandProperty,\n isTruthy,\n KEY_COMPILED_ESM\n} from './ast-utils';\nimport { rewriteExportsAndGetExportsBlock, wrapCode } from './generate-exports';\nimport {\n getRequireHandlers,\n getRequireStringArg,\n hasDynamicModuleForPath,\n isIgnoredRequireStatement,\n isModuleRequire,\n isNodeRequirePropertyAccess,\n isRequireStatement,\n isStaticRequireStatement\n} from './generate-imports';\nimport { DYNAMIC_JSON_PREFIX } from './helpers';\nimport { tryParse } from './parse';\nimport { deconflict, getName, getVirtualPathForDynamicRequirePath } from './utils';\nimport {\n isModuleRegisterProxy,\n unwrapModuleRegisterProxy,\n wrapModuleRegisterProxy\n} from './dynamic-packages-manager';\n\nconst exportsPattern = /^(?:module\\.)?exports(?:\\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/;\n\nconst functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;\n\nexport default function transformCommonjs(\n parse,\n code,\n id,\n isEsModule,\n ignoreGlobal,\n ignoreRequire,\n getIgnoreTryCatchRequireStatementMode,\n sourceMap,\n isDynamicRequireModulesEnabled,\n dynamicRequireModuleSet,\n disableWrap,\n commonDir,\n astCache\n) {\n const ast = astCache || tryParse(parse, code, id);\n const magicString = new MagicString(code);\n const uses = {\n module: false,\n exports: false,\n global: false,\n require: false,\n commonjsHelpers: false\n };\n const virtualDynamicRequirePath =\n isDynamicRequireModulesEnabled && getVirtualPathForDynamicRequirePath(dirname(id), commonDir);\n let scope = attachScopes(ast, 'scope');\n let lexicalDepth = 0;\n let programDepth = 0;\n let currentTryBlockEnd = null;\n let shouldWrap = false;\n const defineCompiledEsmExpressions = [];\n\n const globals = new Set();\n\n // TODO technically wrong since globals isn't populated yet, but ¯\\_(ツ)_/¯\n const HELPERS_NAME = deconflict(scope, globals, 'commonjsHelpers');\n const namedExports = {};\n const dynamicRegisterSources = new Set();\n let hasRemovedRequire = false;\n\n const {\n addRequireStatement,\n requiredSources,\n rewriteRequireExpressionsAndGetImportBlock\n } = getRequireHandlers();\n\n // See which names are assigned to. This is necessary to prevent\n // illegally replacing `var foo = require('foo')` with `import foo from 'foo'`,\n // where `foo` is later reassigned. (This happens in the wild. CommonJS, sigh)\n const reassignedNames = new Set();\n const topLevelDeclarations = [];\n const topLevelRequireDeclarators = new Set();\n const skippedNodes = new Set();\n const topLevelModuleExportsAssignments = [];\n const topLevelExportsAssignmentsByName = new Map();\n\n walk(ast, {\n enter(node, parent) {\n if (skippedNodes.has(node)) {\n this.skip();\n return;\n }\n\n if (currentTryBlockEnd !== null && node.start > currentTryBlockEnd) {\n currentTryBlockEnd = null;\n }\n\n programDepth += 1;\n if (node.scope) ({ scope } = node);\n if (functionType.test(node.type)) lexicalDepth += 1;\n if (sourceMap) {\n magicString.addSourcemapLocation(node.start);\n magicString.addSourcemapLocation(node.end);\n }\n\n // eslint-disable-next-line default-case\n switch (node.type) {\n case 'TryStatement':\n if (currentTryBlockEnd === null) {\n currentTryBlockEnd = node.block.end;\n }\n return;\n case 'AssignmentExpression':\n if (node.left.type === 'MemberExpression') {\n const flattened = getKeypath(node.left);\n if (!flattened || scope.contains(flattened.name)) return;\n\n const exportsPatternMatch = exportsPattern.exec(flattened.keypath);\n if (!exportsPatternMatch || flattened.keypath === 'exports') return;\n\n const [, exportName] = exportsPatternMatch;\n uses[flattened.name] = true;\n\n // we're dealing with `module.exports = ...` or `[module.]exports.foo = ...` –\n if (programDepth > 3) {\n shouldWrap = true;\n } else if (exportName === KEY_COMPILED_ESM) {\n defineCompiledEsmExpressions.push(parent);\n } else if (flattened.keypath === 'module.exports') {\n topLevelModuleExportsAssignments.push(node);\n } else if (!topLevelExportsAssignmentsByName.has(exportName)) {\n topLevelExportsAssignmentsByName.set(exportName, node);\n } else {\n shouldWrap = true;\n }\n\n skippedNodes.add(node.left);\n\n if (flattened.keypath === 'module.exports' && node.right.type === 'ObjectExpression') {\n node.right.properties.forEach((prop) => {\n if (prop.computed || !('key' in prop) || prop.key.type !== 'Identifier') return;\n const { name } = prop.key;\n if (name === makeLegalIdentifier(name)) namedExports[name] = true;\n });\n return;\n }\n\n if (exportsPatternMatch[1]) namedExports[exportsPatternMatch[1]] = true;\n } else {\n for (const name of extractAssignedNames(node.left)) {\n reassignedNames.add(name);\n }\n }\n return;\n case 'CallExpression': {\n if (isDefineCompiledEsm(node)) {\n if (programDepth === 3 && parent.type === 'ExpressionStatement') {\n // skip special handling for [module.]exports until we know we render this\n skippedNodes.add(node.arguments[0]);\n defineCompiledEsmExpressions.push(parent);\n } else {\n shouldWrap = true;\n }\n return;\n }\n\n if (\n node.callee.object &&\n node.callee.object.name === 'require' &&\n node.callee.property.name === 'resolve' &&\n hasDynamicModuleForPath(id, '/', dynamicRequireModuleSet)\n ) {\n const requireNode = node.callee.object;\n magicString.appendLeft(\n node.end - 1,\n `,${JSON.stringify(\n dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath\n )}`\n );\n magicString.overwrite(\n requireNode.start,\n requireNode.end,\n `${HELPERS_NAME}.commonjsRequire`,\n {\n storeName: true\n }\n );\n uses.commonjsHelpers = true;\n return;\n }\n\n if (!isStaticRequireStatement(node, scope)) return;\n if (!isDynamicRequireModulesEnabled) {\n skippedNodes.add(node.callee);\n }\n if (!isIgnoredRequireStatement(node, ignoreRequire)) {\n skippedNodes.add(node.callee);\n const usesReturnValue = parent.type !== 'ExpressionStatement';\n\n let canConvertRequire = true;\n let shouldRemoveRequireStatement = false;\n\n if (currentTryBlockEnd !== null) {\n ({\n canConvertRequire,\n shouldRemoveRequireStatement\n } = getIgnoreTryCatchRequireStatementMode(node.arguments[0].value));\n\n if (shouldRemoveRequireStatement) {\n hasRemovedRequire = true;\n }\n }\n\n let sourceId = getRequireStringArg(node);\n const isDynamicRegister = isModuleRegisterProxy(sourceId);\n if (isDynamicRegister) {\n sourceId = unwrapModuleRegisterProxy(sourceId);\n if (sourceId.endsWith('.json')) {\n sourceId = DYNAMIC_JSON_PREFIX + sourceId;\n }\n dynamicRegisterSources.add(wrapModuleRegisterProxy(sourceId));\n } else {\n if (\n !sourceId.endsWith('.json') &&\n hasDynamicModuleForPath(sourceId, id, dynamicRequireModuleSet)\n ) {\n if (shouldRemoveRequireStatement) {\n magicString.overwrite(node.start, node.end, `undefined`);\n } else if (canConvertRequire) {\n magicString.overwrite(\n node.start,\n node.end,\n `${HELPERS_NAME}.commonjsRequire(${JSON.stringify(\n getVirtualPathForDynamicRequirePath(sourceId, commonDir)\n )}, ${JSON.stringify(\n dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath\n )})`\n );\n uses.commonjsHelpers = true;\n }\n return;\n }\n\n if (canConvertRequire) {\n addRequireStatement(sourceId, node, scope, usesReturnValue);\n }\n }\n\n if (usesReturnValue) {\n if (shouldRemoveRequireStatement) {\n magicString.overwrite(node.start, node.end, `undefined`);\n return;\n }\n\n if (\n parent.type === 'VariableDeclarator' &&\n !scope.parent &&\n parent.id.type === 'Identifier'\n ) {\n // This will allow us to reuse this variable name as the imported variable if it is not reassigned\n // and does not conflict with variables in other places where this is imported\n topLevelRequireDeclarators.add(parent);\n }\n } else {\n // This is a bare import, e.g. `require('foo');`\n\n if (!canConvertRequire && !shouldRemoveRequireStatement) {\n return;\n }\n\n magicString.remove(parent.start, parent.end);\n }\n }\n return;\n }\n case 'ConditionalExpression':\n case 'IfStatement':\n // skip dead branches\n if (isFalsy(node.test)) {\n skippedNodes.add(node.consequent);\n } else if (node.alternate && isTruthy(node.test)) {\n skippedNodes.add(node.alternate);\n }\n return;\n case 'Identifier': {\n const { name } = node;\n if (!(isReference(node, parent) && !scope.contains(name))) return;\n switch (name) {\n case 'require':\n if (isNodeRequirePropertyAccess(parent)) {\n if (hasDynamicModuleForPath(id, '/', dynamicRequireModuleSet)) {\n if (parent.property.name === 'cache') {\n magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {\n storeName: true\n });\n uses.commonjsHelpers = true;\n }\n }\n\n return;\n }\n\n if (isDynamicRequireModulesEnabled && isRequireStatement(parent, scope)) {\n magicString.appendLeft(\n parent.end - 1,\n `,${JSON.stringify(\n dirname(id) === '.' ? null /* default behavior */ : virtualDynamicRequirePath\n )}`\n );\n }\n if (isShorthandProperty(parent)) {\n magicString.appendRight(node.end, `: ${HELPERS_NAME}.commonjsRequire`);\n } else {\n magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {\n storeName: true\n });\n }\n\n uses.commonjsHelpers = true;\n return;\n case 'module':\n case 'exports':\n shouldWrap = true;\n uses[name] = true;\n return;\n case 'global':\n uses.global = true;\n if (!ignoreGlobal) {\n magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n storeName: true\n });\n uses.commonjsHelpers = true;\n }\n return;\n case 'define':\n magicString.overwrite(node.start, node.end, 'undefined', { storeName: true });\n return;\n default:\n globals.add(name);\n return;\n }\n }\n case 'MemberExpression':\n if (!isDynamicRequireModulesEnabled && isModuleRequire(node, scope)) {\n magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {\n storeName: true\n });\n uses.commonjsHelpers = true;\n skippedNodes.add(node.object);\n skippedNodes.add(node.property);\n }\n return;\n case 'ReturnStatement':\n // if top-level return, we need to wrap it\n if (lexicalDepth === 0) {\n shouldWrap = true;\n }\n return;\n case 'ThisExpression':\n // rewrite top-level `this` as `commonjsHelpers.commonjsGlobal`\n if (lexicalDepth === 0) {\n uses.global = true;\n if (!ignoreGlobal) {\n magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, {\n storeName: true\n });\n uses.commonjsHelpers = true;\n }\n }\n return;\n case 'UnaryExpression':\n // rewrite `typeof module`, `typeof module.exports` and `typeof exports` (https://github.com/rollup/rollup-plugin-commonjs/issues/151)\n if (node.operator === 'typeof') {\n const flattened = getKeypath(node.argument);\n if (!flattened) return;\n\n if (scope.contains(flattened.name)) return;\n\n if (\n flattened.keypath === 'module.exports' ||\n flattened.keypath === 'module' ||\n flattened.keypath === 'exports'\n ) {\n magicString.overwrite(node.start, node.end, `'object'`, { storeName: false });\n }\n }\n return;\n case 'VariableDeclaration':\n if (!scope.parent) {\n topLevelDeclarations.push(node);\n }\n }\n },\n\n leave(node) {\n programDepth -= 1;\n if (node.scope) scope = scope.parent;\n if (functionType.test(node.type)) lexicalDepth -= 1;\n }\n });\n\n let isRestorableCompiledEsm = false;\n if (defineCompiledEsmExpressions.length > 0) {\n if (!shouldWrap && defineCompiledEsmExpressions.length === 1) {\n isRestorableCompiledEsm = true;\n magicString.remove(\n defineCompiledEsmExpressions[0].start,\n defineCompiledEsmExpressions[0].end\n );\n } else {\n shouldWrap = true;\n uses.exports = true;\n }\n }\n\n // We cannot wrap ES/mixed modules\n shouldWrap = shouldWrap && !disableWrap && !isEsModule;\n uses.commonjsHelpers = uses.commonjsHelpers || shouldWrap;\n\n if (\n !(\n requiredSources.length ||\n dynamicRegisterSources.size ||\n uses.module ||\n uses.exports ||\n uses.require ||\n uses.commonjsHelpers ||\n hasRemovedRequire\n ) &&\n (ignoreGlobal || !uses.global)\n ) {\n return { meta: { commonjs: { isCommonJS: false } } };\n }\n\n const moduleName = deconflict(scope, globals, getName(id));\n\n let leadingComment = '';\n if (code.startsWith('/*')) {\n const commentEnd = code.indexOf('*/', 2) + 2;\n leadingComment = `${code.slice(0, commentEnd)}\\n`;\n magicString.remove(0, commentEnd).trim();\n }\n\n const exportBlock = isEsModule\n ? ''\n : rewriteExportsAndGetExportsBlock(\n magicString,\n moduleName,\n shouldWrap,\n topLevelModuleExportsAssignments,\n topLevelExportsAssignmentsByName,\n defineCompiledEsmExpressions,\n (name) => deconflict(scope, globals, name),\n isRestorableCompiledEsm,\n code,\n uses,\n HELPERS_NAME\n );\n\n const importBlock = rewriteRequireExpressionsAndGetImportBlock(\n magicString,\n topLevelDeclarations,\n topLevelRequireDeclarators,\n reassignedNames,\n uses.commonjsHelpers && HELPERS_NAME,\n dynamicRegisterSources\n );\n\n if (shouldWrap) {\n wrapCode(magicString, uses, moduleName, HELPERS_NAME, virtualDynamicRequirePath);\n }\n\n magicString\n .trim()\n .prepend(leadingComment + importBlock)\n .append(exportBlock);\n\n return {\n code: magicString.toString(),\n map: sourceMap ? magicString.generateMap() : null,\n syntheticNamedExports: isEsModule ? false : '__moduleExports',\n meta: { commonjs: { isCommonJS: !isEsModule } }\n };\n}\n","import { extname } from 'path';\n\nimport { createFilter } from '@rollup/pluginutils';\nimport getCommonDir from 'commondir';\n\nimport { peerDependencies } from '../package.json';\n\nimport analyzeTopLevelStatements from './analyze-top-level-statements';\n\nimport {\n getDynamicPackagesEntryIntro,\n getDynamicPackagesModule,\n isDynamicModuleImport,\n isModuleRegisterProxy,\n unwrapModuleRegisterProxy\n} from './dynamic-packages-manager';\nimport getDynamicRequirePaths from './dynamic-require-paths';\nimport {\n DYNAMIC_JSON_PREFIX,\n DYNAMIC_PACKAGES_ID,\n EXTERNAL_SUFFIX,\n getHelpersModule,\n HELPERS_ID,\n isWrappedId,\n PROXY_SUFFIX,\n unwrapId\n} from './helpers';\nimport { setIsCjsPromise } from './is-cjs';\nimport { hasCjsKeywords } from './parse';\nimport {\n getDynamicJsonProxy,\n getDynamicRequireProxy,\n getSpecificHelperProxy,\n getStaticRequireProxy,\n getUnknownRequireProxy\n} from './proxies';\nimport getResolveId from './resolve-id';\nimport validateRollupVersion from './rollup-version';\nimport transformCommonjs from './transform-commonjs';\nimport { normalizePathSlashes } from './utils';\n\nexport default function commonjs(options = {}) {\n const extensions = options.extensions || ['.js'];\n const filter = createFilter(options.include, options.exclude);\n const {\n ignoreGlobal,\n requireReturnsDefault: requireReturnsDefaultOption,\n esmExternals\n } = options;\n const getRequireReturnsDefault =\n typeof requireReturnsDefaultOption === 'function'\n ? requireReturnsDefaultOption\n : () => requireReturnsDefaultOption;\n let esmExternalIds;\n const isEsmExternal =\n typeof esmExternals === 'function'\n ? esmExternals\n : Array.isArray(esmExternals)\n ? ((esmExternalIds = new Set(esmExternals)), (id) => esmExternalIds.has(id))\n : () => esmExternals;\n\n const { dynamicRequireModuleSet, dynamicRequireModuleDirPaths } = getDynamicRequirePaths(\n options.dynamicRequireTargets\n );\n const isDynamicRequireModulesEnabled = dynamicRequireModuleSet.size > 0;\n const commonDir = isDynamicRequireModulesEnabled\n ? getCommonDir(null, Array.from(dynamicRequireModuleSet).concat(process.cwd()))\n : null;\n\n const esModulesWithDefaultExport = new Set();\n const esModulesWithNamedExports = new Set();\n\n const ignoreRequire =\n typeof options.ignore === 'function'\n ? options.ignore\n : Array.isArray(options.ignore)\n ? (id) => options.ignore.includes(id)\n : () => false;\n\n const getIgnoreTryCatchRequireStatementMode = (id) => {\n const mode =\n typeof options.ignoreTryCatch === 'function'\n ? options.ignoreTryCatch(id)\n : Array.isArray(options.ignoreTryCatch)\n ? options.ignoreTryCatch.includes(id)\n : options.ignoreTryCatch || false;\n\n return {\n canConvertRequire: mode !== 'remove' && mode !== true,\n shouldRemoveRequireStatement: mode === 'remove'\n };\n };\n\n const resolveId = getResolveId(extensions);\n\n const sourceMap = options.sourceMap !== false;\n\n function transformAndCheckExports(code, id) {\n if (isDynamicRequireModulesEnabled && this.getModuleInfo(id).isEntry) {\n code =\n getDynamicPackagesEntryIntro(dynamicRequireModuleDirPaths, dynamicRequireModuleSet) + code;\n }\n\n const { isEsModule, hasDefaultExport, hasNamedExports, ast } = analyzeTopLevelStatements(\n this.parse,\n code,\n id\n );\n if (hasDefaultExport) {\n esModulesWithDefaultExport.add(id);\n }\n if (hasNamedExports) {\n esModulesWithNamedExports.add(id);\n }\n\n if (\n !dynamicRequireModuleSet.has(normalizePathSlashes(id)) &&\n (!hasCjsKeywords(code, ignoreGlobal) || (isEsModule && !options.transformMixedEsModules))\n ) {\n return { meta: { commonjs: { isCommonJS: false } } };\n }\n\n let disableWrap = false;\n\n // avoid wrapping in createCommonjsModule, as this is a commonjsRegister call\n if (isModuleRegisterProxy(id)) {\n disableWrap = true;\n id = unwrapModuleRegisterProxy(id);\n }\n\n return transformCommonjs(\n this.parse,\n code,\n id,\n isEsModule,\n ignoreGlobal || isEsModule,\n ignoreRequire,\n getIgnoreTryCatchRequireStatementMode,\n sourceMap,\n isDynamicRequireModulesEnabled,\n dynamicRequireModuleSet,\n disableWrap,\n commonDir,\n ast\n );\n }\n\n return {\n name: 'commonjs',\n\n buildStart() {\n validateRollupVersion(this.meta.rollupVersion, peerDependencies.rollup);\n if (options.namedExports != null) {\n this.warn(\n 'The namedExports option from \"@rollup/plugin-commonjs\" is deprecated. Named exports are now handled automatically.'\n );\n }\n },\n\n resolveId,\n\n load(id) {\n if (id === HELPERS_ID) {\n return getHelpersModule(isDynamicRequireModulesEnabled);\n }\n\n if (id.startsWith(HELPERS_ID)) {\n return getSpecificHelperProxy(id);\n }\n\n if (isWrappedId(id, EXTERNAL_SUFFIX)) {\n const actualId = unwrapId(id, EXTERNAL_SUFFIX);\n return getUnknownRequireProxy(\n actualId,\n isEsmExternal(actualId) ? getRequireReturnsDefault(actualId) : true\n );\n }\n\n if (id === DYNAMIC_PACKAGES_ID) {\n return getDynamicPackagesModule(dynamicRequireModuleDirPaths, commonDir);\n }\n\n if (id.startsWith(DYNAMIC_JSON_PREFIX)) {\n return getDynamicJsonProxy(id, commonDir);\n }\n\n if (isDynamicModuleImport(id, dynamicRequireModuleSet)) {\n return `export default require(${JSON.stringify(normalizePathSlashes(id))});`;\n }\n\n if (isModuleRegisterProxy(id)) {\n return getDynamicRequireProxy(\n normalizePathSlashes(unwrapModuleRegisterProxy(id)),\n commonDir\n );\n }\n\n if (isWrappedId(id, PROXY_SUFFIX)) {\n const actualId = unwrapId(id, PROXY_SUFFIX);\n return getStaticRequireProxy(\n actualId,\n getRequireReturnsDefault(actualId),\n esModulesWithDefaultExport,\n esModulesWithNamedExports\n );\n }\n\n return null;\n },\n\n transform(code, rawId) {\n let id = rawId;\n\n if (isModuleRegisterProxy(id)) {\n id = unwrapModuleRegisterProxy(id);\n }\n\n const extName = extname(id);\n if (\n extName !== '.cjs' &&\n id !== DYNAMIC_PACKAGES_ID &&\n !id.startsWith(DYNAMIC_JSON_PREFIX) &&\n (!filter(id) || !extensions.includes(extName))\n ) {\n return null;\n }\n\n try {\n return transformAndCheckExports.call(this, code, rawId);\n } catch (err) {\n return this.error(err, err.loc);\n }\n },\n\n moduleParsed({ id, meta: { commonjs } }) {\n if (commonjs) {\n const isCjs = commonjs.isCommonJS;\n if (isCjs != null) {\n setIsCjsPromise(id, isCjs);\n return;\n }\n }\n setIsCjsPromise(id, null);\n }\n };\n}\n"],"names":["makeLegalIdentifier","basename","extname","dirname","sep","existsSync","join","readFileSync","statSync","path","glob","resolve","nodeResolveSync","MagicString","attachScopes","walk","extractAssignedNames","isReference","createFilter","getCommonDir"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAO,SAAS,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;AAC1C,EAAE,IAAI;AACN,IAAI,OAAO,KAAK,CAAC,IAAI,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7D,GAAG,CAAC,OAAO,GAAG,EAAE;AAChB,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/B,IAAI,MAAM,GAAG,CAAC;AACd,GAAG;AACH,CAAC;AACD;AACA,MAAM,e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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AACA,MAAM,kBAAkB,GAAG,CAAC;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AACA,MAAM,eAAe,GAAG,CAAC;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AACO,SAAS,gBAAgB,CAAC,8BAA8B,EAAE;AACjE,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,8BAA8B,GAAG,eAAe,GAAG,kBAAkB,CAAC,CAAC,CAAC;AAC9F;;AClPA;A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AAChE,OAAO,CAAC,OAAO,GAAG,EAAE;AACpB,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;AACxC,OAAO;AACP,KAAK;AACL;AACA,IAAI,YAAY,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;AAC7C,MAAM,IAAI,QAAQ,EAAE;AACpB,QAAQ,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC;AAC1C,QAAQ,IAAI,KAAK,IAAI,IAAI,EAAE;AAC3B,UAAU,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;AACrC,UAAU,OAAO;AACjB,SAAS;AACT,OAAO;AACP,MAAM,eAAe,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;AAChC,KAAK;AACL,GAAG,CAAC;AACJ;;;;"}
\ No newline at end of file
diff --git a/node_modules/@rollup/plugin-commonjs/package.json b/node_modules/@rollup/plugin-commonjs/package.json
deleted file mode 100644
index 804ccdedaf..0000000000
--- a/node_modules/@rollup/plugin-commonjs/package.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "name": "@rollup/plugin-commonjs",
- "version": "17.1.0",
- "publishConfig": {
- "access": "public"
- },
- "description": "Convert CommonJS modules to ES2015",
- "license": "MIT",
- "repository": "rollup/plugins",
- "author": "Rich Harris ",
- "homepage": "https://github.com/rollup/plugins/tree/master/packages/commonjs/#readme",
- "bugs": "https://github.com/rollup/plugins/issues",
- "main": "dist/index.js",
- "module": "dist/index.es.js",
- "engines": {
- "node": ">= 8.0.0"
- },
- "scripts": {
- "build": "rollup -c",
- "ci:coverage": "nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov",
- "ci:lint": "pnpm run build && pnpm run lint",
- "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
- "ci:test": "pnpm run test -- --verbose && pnpm run test:ts",
- "lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
- "lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
- "lint:js": "eslint --fix --cache src test types --ext .js,.ts",
- "lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
- "prebuild": "del-cli dist",
- "prepare": "pnpm run build",
- "prepublishOnly": "pnpm run lint && pnpm run test:ts",
- "pretest": "pnpm run build",
- "test": "ava",
- "test:ts": "tsc types/index.d.ts test/types.ts --noEmit"
- },
- "files": [
- "dist",
- "types",
- "README.md",
- "LICENSE"
- ],
- "keywords": [
- "rollup",
- "plugin",
- "npm",
- "modules",
- "commonjs",
- "require"
- ],
- "peerDependencies": {
- "rollup": "^2.30.0"
- },
- "dependencies": {
- "@rollup/pluginutils": "^3.1.0",
- "commondir": "^1.0.1",
- "estree-walker": "^2.0.1",
- "glob": "^7.1.6",
- "is-reference": "^1.2.1",
- "magic-string": "^0.25.7",
- "resolve": "^1.17.0"
- },
- "devDependencies": {
- "@rollup/plugin-json": "^4.1.0",
- "@rollup/plugin-node-resolve": "^8.4.0",
- "locate-character": "^2.0.5",
- "require-relative": "^0.8.7",
- "rollup": "^2.30.0",
- "shx": "^0.3.2",
- "source-map": "^0.7.3",
- "source-map-support": "^0.5.19",
- "typescript": "^3.9.7"
- },
- "types": "types/index.d.ts",
- "ava": {
- "babel": {
- "compileEnhancements": false
- },
- "files": [
- "!**/fixtures/**",
- "!**/helpers/**",
- "!**/recipes/**",
- "!**/types.ts"
- ]
- }
-}
diff --git a/node_modules/@rollup/plugin-commonjs/types/index.d.ts b/node_modules/@rollup/plugin-commonjs/types/index.d.ts
deleted file mode 100644
index 87b0b3f618..0000000000
--- a/node_modules/@rollup/plugin-commonjs/types/index.d.ts
+++ /dev/null
@@ -1,170 +0,0 @@
-import { FilterPattern } from '@rollup/pluginutils';
-import { Plugin } from 'rollup';
-
-type RequireReturnsDefaultOption = boolean | 'auto' | 'preferred' | 'namespace';
-
-interface RollupCommonJSOptions {
- /**
- * A minimatch pattern, or array of patterns, which specifies the files in
- * the build the plugin should operate on. By default, all files with
- * extension `".cjs"` or those in `extensions` are included, but you can narrow
- * this list by only including specific files. These files will be analyzed
- * and transpiled if either the analysis does not find ES module specific
- * statements or `transformMixedEsModules` is `true`.
- * @default undefined
- */
- include?: FilterPattern;
- /**
- * A minimatch pattern, or array of patterns, which specifies the files in
- * the build the plugin should _ignore_. By default, all files with
- * extensions other than those in `extensions` or `".cjs"` are ignored, but you
- * can exclude additional files. See also the `include` option.
- * @default undefined
- */
- exclude?: FilterPattern;
- /**
- * For extensionless imports, search for extensions other than .js in the
- * order specified. Note that you need to make sure that non-JavaScript files
- * are transpiled by another plugin first.
- * @default [ '.js' ]
- */
- extensions?: ReadonlyArray;
- /**
- * If true then uses of `global` won't be dealt with by this plugin
- * @default false
- */
- ignoreGlobal?: boolean;
- /**
- * If false, skips source map generation for CommonJS modules. This will improve performance.
- * @default true
- */
- sourceMap?: boolean;
- /**
- * Instructs the plugin whether to enable mixed module transformations. This
- * is useful in scenarios with modules that contain a mix of ES `import`
- * statements and CommonJS `require` expressions. Set to `true` if `require`
- * calls should be transformed to imports in mixed modules, or `false` if the
- * `require` expressions should survive the transformation. The latter can be
- * important if the code contains environment detection, or you are coding
- * for an environment with special treatment for `require` calls such as
- * ElectronJS. See also the `ignore` option.
- * @default false
- */
- transformMixedEsModules?: boolean;
- /**
- * Sometimes you have to leave require statements unconverted. Pass an array
- * containing the IDs or a `id => boolean` function.
- * @default []
- */
- ignore?: ReadonlyArray | ((id: string) => boolean);
- /**
- * In most cases, where `require` calls are inside a `try-catch` clause,
- * they should be left unconverted as it requires an optional dependency
- * that may or may not be installed beside the rolled up package.
- * Due to the conversion of `require` to a static `import` - the call is hoisted
- * to the top of the file, outside of the `try-catch` clause.
- *
- * - `true`: All `require` calls inside a `try` will be left unconverted.
- * - `false`: All `require` calls inside a `try` will be converted as if the `try-catch` clause is not there.
- * - `remove`: Remove all `require` calls from inside any `try` block.
- * - `string[]`: Pass an array containing the IDs to left unconverted.
- * - `((id: string) => boolean|'remove')`: Pass a function that control individual IDs.
- *
- * @default false
- */
- ignoreTryCatch?:
- | boolean
- | 'remove'
- | ReadonlyArray
- | ((id: string) => boolean | 'remove');
- /**
- * Controls how to render imports from external dependencies. By default,
- * this plugin assumes that all external dependencies are CommonJS. This
- * means they are rendered as default imports to be compatible with e.g.
- * NodeJS where ES modules can only import a default export from a CommonJS
- * dependency.
- *
- * If you set `esmExternals` to `true`, this plugins assumes that all
- * external dependencies are ES modules and respect the
- * `requireReturnsDefault` option. If that option is not set, they will be
- * rendered as namespace imports.
- *
- * You can also supply an array of ids to be treated as ES modules, or a
- * function that will be passed each external id to determine if it is an ES
- * module.
- * @default false
- */
- esmExternals?: boolean | ReadonlyArray | ((id: string) => boolean);
- /**
- * Controls what is returned when requiring an ES module from a CommonJS file.
- * When using the `esmExternals` option, this will also apply to external
- * modules. By default, this plugin will render those imports as namespace
- * imports i.e.
- *
- * ```js
- * // input
- * const foo = require('foo');
- *
- * // output
- * import * as foo from 'foo';
- * ```
- *
- * However there are some situations where this may not be desired.
- * For these situations, you can change Rollup's behaviour either globally or
- * per module. To change it globally, set the `requireReturnsDefault` option
- * to one of the following values:
- *
- * - `false`: This is the default, requiring an ES module returns its
- * namespace. This is the only option that will also add a marker
- * `__esModule: true` to the namespace to support interop patterns in
- * CommonJS modules that are transpiled ES modules.
- * - `"namespace"`: Like `false`, requiring an ES module returns its
- * namespace, but the plugin does not add the `__esModule` marker and thus
- * creates more efficient code. For external dependencies when using
- * `esmExternals: true`, no additional interop code is generated.
- * - `"auto"`: This is complementary to how `output.exports: "auto"` works in
- * Rollup: If a module has a default export and no named exports, requiring
- * that module returns the default export. In all other cases, the namespace
- * is returned. For external dependencies when using `esmExternals: true`, a
- * corresponding interop helper is added.
- * - `"preferred"`: If a module has a default export, requiring that module
- * always returns the default export, no matter whether additional named
- * exports exist. This is similar to how previous versions of this plugin
- * worked. Again for external dependencies when using `esmExternals: true`,
- * an interop helper is added.
- * - `true`: This will always try to return the default export on require
- * without checking if it actually exists. This can throw at build time if
- * there is no default export. This is how external dependencies are handled
- * when `esmExternals` is not used. The advantage over the other options is
- * that, like `false`, this does not add an interop helper for external
- * dependencies, keeping the code lean.
- *
- * To change this for individual modules, you can supply a function for
- * `requireReturnsDefault` instead. This function will then be called once for
- * each required ES module or external dependency with the corresponding id
- * and allows you to return different values for different modules.
- * @default false
- */
- requireReturnsDefault?:
- | RequireReturnsDefaultOption
- | ((id: string) => RequireReturnsDefaultOption);
- /**
- * Some modules contain dynamic `require` calls, or require modules that
- * contain circular dependencies, which are not handled well by static
- * imports. Including those modules as `dynamicRequireTargets` will simulate a
- * CommonJS (NodeJS-like) environment for them with support for dynamic and
- * circular dependencies.
- *
- * Note: In extreme cases, this feature may result in some paths being
- * rendered as absolute in the final bundle. The plugin tries to avoid
- * exposing paths from the local machine, but if you are `dynamicRequirePaths`
- * with paths that are far away from your project's folder, that may require
- * replacing strings like `"/Users/John/Desktop/foo-project/"` -> `"/"`.
- */
- dynamicRequireTargets?: string | ReadonlyArray;
-}
-
-/**
- * Convert CommonJS modules to ES6, so they can be included in a Rollup bundle
- */
-export default function commonjs(options?: RollupCommonJSOptions): Plugin;
diff --git a/node_modules/@rollup/pluginutils/CHANGELOG.md b/node_modules/@rollup/pluginutils/CHANGELOG.md
deleted file mode 100755
index d286908b4c..0000000000
--- a/node_modules/@rollup/pluginutils/CHANGELOG.md
+++ /dev/null
@@ -1,315 +0,0 @@
-# @rollup/pluginutils ChangeLog
-
-## v3.1.0
-
-_2020-06-05_
-
-### Bugfixes
-
-- fix: resolve relative paths starting with "./" (#180)
-
-### Features
-
-- feat: add native node es modules support (#419)
-
-### Updates
-
-- refactor: replace micromatch with picomatch. (#306)
-- chore: Don't bundle micromatch (#220)
-- chore: add missing typescript devDep (238b140)
-- chore: Use readonly arrays, add TSDoc (#187)
-- chore: Use typechecking (2ae08eb)
-
-## v3.0.10
-
-_2020-05-02_
-
-### Bugfixes
-
-- fix: resolve relative paths starting with "./" (#180)
-
-### Updates
-
-- refactor: replace micromatch with picomatch. (#306)
-- chore: Don't bundle micromatch (#220)
-- chore: add missing typescript devDep (238b140)
-- chore: Use readonly arrays, add TSDoc (#187)
-- chore: Use typechecking (2ae08eb)
-
-## v3.0.9
-
-_2020-04-12_
-
-### Updates
-
-- chore: support Rollup v2
-
-## v3.0.8
-
-_2020-02-01_
-
-### Bugfixes
-
-- fix: resolve relative paths starting with "./" (#180)
-
-### Updates
-
-- chore: add missing typescript devDep (238b140)
-- chore: Use readonly arrays, add TSDoc (#187)
-- chore: Use typechecking (2ae08eb)
-
-## v3.0.7
-
-_2020-02-01_
-
-### Bugfixes
-
-- fix: resolve relative paths starting with "./" (#180)
-
-### Updates
-
-- chore: Use readonly arrays, add TSDoc (#187)
-- chore: Use typechecking (2ae08eb)
-
-## v3.0.6
-
-_2020-01-27_
-
-### Bugfixes
-
-- fix: resolve relative paths starting with "./" (#180)
-
-## v3.0.5
-
-_2020-01-25_
-
-### Bugfixes
-
-- fix: bring back named exports (#176)
-
-## v3.0.4
-
-_2020-01-10_
-
-### Bugfixes
-
-- fix: keep for(const..) out of scope (#151)
-
-## v3.0.3
-
-_2020-01-07_
-
-### Bugfixes
-
-- fix: createFilter Windows regression (#141)
-
-### Updates
-
-- test: fix windows path failure (0a0de65)
-- chore: fix test script (5eae320)
-
-## v3.0.2
-
-_2020-01-04_
-
-### Bugfixes
-
-- fix: makeLegalIdentifier - potentially unsafe input for blacklisted identifier (#116)
-
-### Updates
-
-- docs: Fix documented type of createFilter's include/exclude (#123)
-- chore: update minor linting correction (bcbf9d2)
-
-## 3.0.1
-
-- fix: Escape glob characters in folder (#84)
-
-## 3.0.0
-
-_2019-11-25_
-
-- **Breaking:** Minimum compatible Rollup version is 1.20.0
-- **Breaking:** Minimum supported Node version is 8.0.0
-- Published as @rollup/plugins-image
-
-## 2.8.2
-
-_2019-09-13_
-
-- Handle optional catch parameter in attachScopes ([#70](https://github.com/rollup/rollup-pluginutils/pulls/70))
-
-## 2.8.1
-
-_2019-06-04_
-
-- Support serialization of many edge cases ([#64](https://github.com/rollup/rollup-pluginutils/issues/64))
-
-## 2.8.0
-
-_2019-05-30_
-
-- Bundle updated micromatch dependency ([#60](https://github.com/rollup/rollup-pluginutils/issues/60))
-
-## 2.7.1
-
-_2019-05-17_
-
-- Do not ignore files with a leading "." in createFilter ([#62](https://github.com/rollup/rollup-pluginutils/issues/62))
-
-## 2.7.0
-
-_2019-05-15_
-
-- Add `resolve` option to createFilter ([#59](https://github.com/rollup/rollup-pluginutils/issues/59))
-
-## 2.6.0
-
-_2019-04-04_
-
-- Add `extractAssignedNames` ([#59](https://github.com/rollup/rollup-pluginutils/issues/59))
-- Provide dedicated TypeScript typings file ([#58](https://github.com/rollup/rollup-pluginutils/issues/58))
-
-## 2.5.0
-
-_2019-03-18_
-
-- Generalize dataToEsm type ([#55](https://github.com/rollup/rollup-pluginutils/issues/55))
-- Handle empty keys in dataToEsm ([#56](https://github.com/rollup/rollup-pluginutils/issues/56))
-
-## 2.4.1
-
-_2019-02-16_
-
-- Remove unnecessary dependency
-
-## 2.4.0
-
-_2019-02-16_
-Update dependencies to solve micromatch vulnerability ([#53](https://github.com/rollup/rollup-pluginutils/issues/53))
-
-## 2.3.3
-
-_2018-09-19_
-
-- Revert micromatch update ([#43](https://github.com/rollup/rollup-pluginutils/issues/43))
-
-## 2.3.2
-
-_2018-09-18_
-
-- Bumb micromatch dependency ([#36](https://github.com/rollup/rollup-pluginutils/issues/36))
-- Bumb dependencies ([#41](https://github.com/rollup/rollup-pluginutils/issues/41))
-- Split up tests ([#40](https://github.com/rollup/rollup-pluginutils/issues/40))
-
-## 2.3.1
-
-_2018-08-06_
-
-- Fixed ObjectPattern scope in attachScopes to recognise { ...rest } syntax ([#37](https://github.com/rollup/rollup-pluginutils/issues/37))
-
-## 2.3.0
-
-_2018-05-21_
-
-- Add option to not generate named exports ([#32](https://github.com/rollup/rollup-pluginutils/issues/32))
-
-## 2.2.1
-
-_2018-05-21_
-
-- Support `null` serialization ([#34](https://github.com/rollup/rollup-pluginutils/issues/34))
-
-## 2.2.0
-
-_2018-05-11_
-
-- Improve white-space handling in `dataToEsm` and add `prepare` script ([#31](https://github.com/rollup/rollup-pluginutils/issues/31))
-
-## 2.1.1
-
-_2018-05-09_
-
-- Update dependencies
-
-## 2.1.0
-
-_2018-05-08_
-
-- Add `dataToEsm` helper to create named exports from objects ([#29](https://github.com/rollup/rollup-pluginutils/issues/29))
-- Support literal keys in object patterns ([#27](https://github.com/rollup/rollup-pluginutils/issues/27))
-- Support function declarations without id in `attachScopes` ([#28](https://github.com/rollup/rollup-pluginutils/issues/28))
-
-## 2.0.1
-
-_2017-01-03_
-
-- Don't add extension to file with trailing dot ([#14](https://github.com/rollup/rollup-pluginutils/issues/14))
-
-## 2.0.0
-
-_2017-01-03_
-
-- Use `micromatch` instead of `minimatch` ([#19](https://github.com/rollup/rollup-pluginutils/issues/19))
-- Allow `createFilter` to take regexes ([#5](https://github.com/rollup/rollup-pluginutils/issues/5))
-
-## 1.5.2
-
-_2016-08-29_
-
-- Treat `arguments` as a reserved word ([#10](https://github.com/rollup/rollup-pluginutils/issues/10))
-
-## 1.5.1
-
-_2016-06-24_
-
-- Add all declarators in a var declaration to scope, not just the first
-
-## 1.5.0
-
-_2016-06-07_
-
-- Exclude IDs with null character (`\0`)
-
-## 1.4.0
-
-_2016-06-07_
-
-- Workaround minimatch issue ([#6](https://github.com/rollup/rollup-pluginutils/pull/6))
-- Exclude non-string IDs in `createFilter`
-
-## 1.3.1
-
-_2015-12-16_
-
-- Build with Rollup directly, rather than via Gobble
-
-## 1.3.0
-
-_2015-12-16_
-
-- Use correct path separator on Windows
-
-## 1.2.0
-
-_2015-11-02_
-
-- Add `attachScopes` and `makeLegalIdentifier`
-
-## 1.1.0
-
-2015-10-24\*
-
-- Add `addExtension` function
-
-## 1.0.1
-
-_2015-10-24_
-
-- Include dist files in package
-
-## 1.0.0
-
-_2015-10-24_
-
-- First release
diff --git a/node_modules/@rollup/pluginutils/LICENSE b/node_modules/@rollup/pluginutils/LICENSE
deleted file mode 100644
index 5e46702cbd..0000000000
--- a/node_modules/@rollup/pluginutils/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/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/@rollup/pluginutils/README.md b/node_modules/@rollup/pluginutils/README.md
deleted file mode 100755
index 2a103e6bd6..0000000000
--- a/node_modules/@rollup/pluginutils/README.md
+++ /dev/null
@@ -1,237 +0,0 @@
-[npm]: https://img.shields.io/npm/v/@rollup/pluginutils
-[npm-url]: https://www.npmjs.com/package/@rollup/pluginutils
-[size]: https://packagephobia.now.sh/badge?p=@rollup/pluginutils
-[size-url]: https://packagephobia.now.sh/result?p=@rollup/pluginutils
-
-[![npm][npm]][npm-url]
-[![size][size]][size-url]
-[](https://liberamanifesto.com)
-
-# @rollup/pluginutils
-
-A set of utility functions commonly used by 🍣 Rollup plugins.
-
-## Requirements
-
-This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+.
-
-## Install
-
-Using npm:
-
-```console
-npm install @rollup/pluginutils --save-dev
-```
-
-## Usage
-
-```js
-import utils from '@rollup/pluginutils';
-//...
-```
-
-## API
-
-Available utility functions are listed below:
-
-_Note: Parameter names immediately followed by a `?` indicate that the parameter is optional._
-
-### addExtension
-
-Adds an extension to a module ID if one does not exist.
-
-Parameters: `(filename: String, ext?: String)`
-Returns: `String`
-
-```js
-import { addExtension } from '@rollup/pluginutils';
-
-export default function myPlugin(options = {}) {
- return {
- resolveId(code, id) {
- // only adds an extension if there isn't one already
- id = addExtension(id); // `foo` -> `foo.js`, `foo.js -> foo.js`
- id = addExtension(id, '.myext'); // `foo` -> `foo.myext`, `foo.js -> `foo.js`
- }
- };
-}
-```
-
-### attachScopes
-
-Attaches `Scope` objects to the relevant nodes of an AST. Each `Scope` object has a `scope.contains(name)` method that returns `true` if a given name is defined in the current scope or a parent scope.
-
-Parameters: `(ast: Node, propertyName?: String)`
-Returns: `Object`
-
-See [rollup-plugin-inject](https://github.com/rollup/rollup-plugin-inject) or [rollup-plugin-commonjs](https://github.com/rollup/rollup-plugin-commonjs) for an example of usage.
-
-```js
-import { attachScopes } from '@rollup/pluginutils';
-import { walk } from 'estree-walker';
-
-export default function myPlugin(options = {}) {
- return {
- transform(code) {
- const ast = this.parse(code);
-
- let scope = attachScopes(ast, 'scope');
-
- walk(ast, {
- enter(node) {
- if (node.scope) scope = node.scope;
-
- if (!scope.contains('foo')) {
- // `foo` is not defined, so if we encounter it,
- // we assume it's a global
- }
- },
- leave(node) {
- if (node.scope) scope = scope.parent;
- }
- });
- }
- };
-}
-```
-
-### createFilter
-
-Constructs a filter function which can be used to determine whether or not certain modules should be operated upon.
-
-Parameters: `(include?: , exclude?: , options?: Object)`
-Returns: `String`
-
-#### `include` and `exclude`
-
-Type: `String | RegExp | Array[...String|RegExp]`
-
-A valid [`minimatch`](https://www.npmjs.com/package/minimatch) pattern, or array of patterns. If `options.include` is omitted or has zero length, filter will return `true` by default. Otherwise, an ID must match one or more of the `minimatch` patterns, and must not match any of the `options.exclude` patterns.
-
-#### `options`
-
-##### `resolve`
-
-Type: `String | Boolean | null`
-
-Optionally resolves the patterns against a directory other than `process.cwd()`. If a `String` is specified, then the value will be used as the base directory. Relative paths will be resolved against `process.cwd()` first. If `false`, then the patterns will not be resolved against any directory. This can be useful if you want to create a filter for virtual module names.
-
-#### Usage
-
-```js
-import { createFilter } from '@rollup/pluginutils';
-
-export default function myPlugin(options = {}) {
- // assume that the myPlugin accepts options of `options.include` and `options.exclude`
- var filter = createFilter(options.include, options.exclude, {
- resolve: '/my/base/dir'
- });
-
- return {
- transform(code, id) {
- if (!filter(id)) return;
-
- // proceed with the transformation...
- }
- };
-}
-```
-
-### dataToEsm
-
-Transforms objects into tree-shakable ES Module imports.
-
-Parameters: `(data: Object)`
-Returns: `String`
-
-#### `data`
-
-Type: `Object`
-
-An object to transform into an ES module.
-
-#### Usage
-
-```js
-import { dataToEsm } from '@rollup/pluginutils';
-
-const esModuleSource = dataToEsm(
- {
- custom: 'data',
- to: ['treeshake']
- },
- {
- compact: false,
- indent: '\t',
- preferConst: false,
- objectShorthand: false,
- namedExports: true
- }
-);
-/*
-Outputs the string ES module source:
- export const custom = 'data';
- export const to = ['treeshake'];
- export default { custom, to };
-*/
-```
-
-### extractAssignedNames
-
-Extracts the names of all assignment targets based upon specified patterns.
-
-Parameters: `(param: Node)`
-Returns: `Array[...String]`
-
-#### `param`
-
-Type: `Node`
-
-An `acorn` AST Node.
-
-#### Usage
-
-```js
-import { extractAssignedNames } from '@rollup/pluginutils';
-import { walk } from 'estree-walker';
-
-export default function myPlugin(options = {}) {
- return {
- transform(code) {
- const ast = this.parse(code);
-
- walk(ast, {
- enter(node) {
- if (node.type === 'VariableDeclarator') {
- const declaredNames = extractAssignedNames(node.id);
- // do something with the declared names
- // e.g. for `const {x, y: z} = ... => declaredNames = ['x', 'z']
- }
- }
- });
- }
- };
-}
-```
-
-### makeLegalIdentifier
-
-Constructs a bundle-safe identifier from a `String`.
-
-Parameters: `(str: String)`
-Returns: `String`
-
-#### Usage
-
-```js
-import { makeLegalIdentifier } from '@rollup/pluginutils';
-
-makeLegalIdentifier('foo-bar'); // 'foo_bar'
-makeLegalIdentifier('typeof'); // '_typeof'
-```
-
-## Meta
-
-[CONTRIBUTING](/.github/CONTRIBUTING.md)
-
-[LICENSE (MIT)](/LICENSE)
diff --git a/node_modules/@rollup/pluginutils/dist/cjs/index.js b/node_modules/@rollup/pluginutils/dist/cjs/index.js
deleted file mode 100644
index c980d90e1c..0000000000
--- a/node_modules/@rollup/pluginutils/dist/cjs/index.js
+++ /dev/null
@@ -1,447 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
-
-var path = require('path');
-var pm = _interopDefault(require('picomatch'));
-
-const addExtension = function addExtension(filename, ext = '.js') {
- let result = `${filename}`;
- if (!path.extname(filename))
- result += ext;
- return result;
-};
-
-function walk(ast, { enter, leave }) {
- return visit(ast, null, enter, leave);
-}
-
-let should_skip = false;
-let should_remove = false;
-let replacement = null;
-const context = {
- skip: () => should_skip = true,
- remove: () => should_remove = true,
- replace: (node) => replacement = node
-};
-
-function replace(parent, prop, index, node) {
- if (parent) {
- if (index !== null) {
- parent[prop][index] = node;
- } else {
- parent[prop] = node;
- }
- }
-}
-
-function remove(parent, prop, index) {
- if (parent) {
- if (index !== null) {
- parent[prop].splice(index, 1);
- } else {
- delete parent[prop];
- }
- }
-}
-
-function visit(
- node,
- parent,
- enter,
- leave,
- prop,
- index
-) {
- if (node) {
- if (enter) {
- const _should_skip = should_skip;
- const _should_remove = should_remove;
- const _replacement = replacement;
- should_skip = false;
- should_remove = false;
- replacement = null;
-
- enter.call(context, node, parent, prop, index);
-
- if (replacement) {
- node = replacement;
- replace(parent, prop, index, node);
- }
-
- if (should_remove) {
- remove(parent, prop, index);
- }
-
- const skipped = should_skip;
- const removed = should_remove;
-
- should_skip = _should_skip;
- should_remove = _should_remove;
- replacement = _replacement;
-
- if (skipped) return node;
- if (removed) return null;
- }
-
- for (const key in node) {
- const value = (node )[key];
-
- if (typeof value !== 'object') {
- continue;
- }
-
- else if (Array.isArray(value)) {
- for (let j = 0, k = 0; j < value.length; j += 1, k += 1) {
- if (value[j] !== null && typeof value[j].type === 'string') {
- if (!visit(value[j], node, enter, leave, key, k)) {
- // removed
- j--;
- }
- }
- }
- }
-
- else if (value !== null && typeof value.type === 'string') {
- visit(value, node, enter, leave, key, null);
- }
- }
-
- if (leave) {
- const _replacement = replacement;
- const _should_remove = should_remove;
- replacement = null;
- should_remove = false;
-
- leave.call(context, node, parent, prop, index);
-
- if (replacement) {
- node = replacement;
- replace(parent, prop, index, node);
- }
-
- if (should_remove) {
- remove(parent, prop, index);
- }
-
- const removed = should_remove;
-
- replacement = _replacement;
- should_remove = _should_remove;
-
- if (removed) return null;
- }
- }
-
- return node;
-}
-
-const extractors = {
- ArrayPattern(names, param) {
- for (const element of param.elements) {
- if (element)
- extractors[element.type](names, element);
- }
- },
- AssignmentPattern(names, param) {
- extractors[param.left.type](names, param.left);
- },
- Identifier(names, param) {
- names.push(param.name);
- },
- MemberExpression() { },
- ObjectPattern(names, param) {
- for (const prop of param.properties) {
- // @ts-ignore Typescript reports that this is not a valid type
- if (prop.type === 'RestElement') {
- extractors.RestElement(names, prop);
- }
- else {
- extractors[prop.value.type](names, prop.value);
- }
- }
- },
- RestElement(names, param) {
- extractors[param.argument.type](names, param.argument);
- }
-};
-const extractAssignedNames = function extractAssignedNames(param) {
- const names = [];
- extractors[param.type](names, param);
- return names;
-};
-
-const blockDeclarations = {
- const: true,
- let: true
-};
-class Scope {
- constructor(options = {}) {
- this.parent = options.parent;
- this.isBlockScope = !!options.block;
- this.declarations = Object.create(null);
- if (options.params) {
- options.params.forEach((param) => {
- extractAssignedNames(param).forEach((name) => {
- this.declarations[name] = true;
- });
- });
- }
- }
- addDeclaration(node, isBlockDeclaration, isVar) {
- if (!isBlockDeclaration && this.isBlockScope) {
- // it's a `var` or function node, and this
- // is a block scope, so we need to go up
- this.parent.addDeclaration(node, isBlockDeclaration, isVar);
- }
- else if (node.id) {
- extractAssignedNames(node.id).forEach((name) => {
- this.declarations[name] = true;
- });
- }
- }
- contains(name) {
- return this.declarations[name] || (this.parent ? this.parent.contains(name) : false);
- }
-}
-const attachScopes = function attachScopes(ast, propertyName = 'scope') {
- let scope = new Scope();
- walk(ast, {
- enter(n, parent) {
- const node = n;
- // function foo () {...}
- // class Foo {...}
- if (/(Function|Class)Declaration/.test(node.type)) {
- scope.addDeclaration(node, false, false);
- }
- // var foo = 1
- if (node.type === 'VariableDeclaration') {
- const { kind } = node;
- const isBlockDeclaration = blockDeclarations[kind];
- // don't add const/let declarations in the body of a for loop #113
- const parentType = parent ? parent.type : '';
- if (!(isBlockDeclaration && /ForOfStatement/.test(parentType))) {
- node.declarations.forEach((declaration) => {
- scope.addDeclaration(declaration, isBlockDeclaration, true);
- });
- }
- }
- let newScope;
- // create new function scope
- if (/Function/.test(node.type)) {
- const func = node;
- newScope = new Scope({
- parent: scope,
- block: false,
- params: func.params
- });
- // named function expressions - the name is considered
- // part of the function's scope
- if (func.type === 'FunctionExpression' && func.id) {
- newScope.addDeclaration(func, false, false);
- }
- }
- // create new block scope
- if (node.type === 'BlockStatement' && !/Function/.test(parent.type)) {
- newScope = new Scope({
- parent: scope,
- block: true
- });
- }
- // catch clause has its own block scope
- if (node.type === 'CatchClause') {
- newScope = new Scope({
- parent: scope,
- params: node.param ? [node.param] : [],
- block: true
- });
- }
- if (newScope) {
- Object.defineProperty(node, propertyName, {
- value: newScope,
- configurable: true
- });
- scope = newScope;
- }
- },
- leave(n) {
- const node = n;
- if (node[propertyName])
- scope = scope.parent;
- }
- });
- return scope;
-};
-
-// Helper since Typescript can't detect readonly arrays with Array.isArray
-function isArray(arg) {
- return Array.isArray(arg);
-}
-function ensureArray(thing) {
- if (isArray(thing))
- return thing;
- if (thing == null)
- return [];
- return [thing];
-}
-
-function getMatcherString(id, resolutionBase) {
- if (resolutionBase === false) {
- return id;
- }
- // resolve('') is valid and will default to process.cwd()
- const basePath = path.resolve(resolutionBase || '')
- .split(path.sep)
- .join('/')
- // escape all possible (posix + win) path characters that might interfere with regex
- .replace(/[-^$*+?.()|[\]{}]/g, '\\$&');
- // Note that we use posix.join because:
- // 1. the basePath has been normalized to use /
- // 2. the incoming glob (id) matcher, also uses /
- // otherwise Node will force backslash (\) on windows
- return path.posix.join(basePath, id);
-}
-const createFilter = function createFilter(include, exclude, options) {
- const resolutionBase = options && options.resolve;
- const getMatcher = (id) => id instanceof RegExp
- ? id
- : {
- test: (what) => {
- // this refactor is a tad overly verbose but makes for easy debugging
- const pattern = getMatcherString(id, resolutionBase);
- const fn = pm(pattern, { dot: true });
- const result = fn(what);
- return result;
- }
- };
- const includeMatchers = ensureArray(include).map(getMatcher);
- const excludeMatchers = ensureArray(exclude).map(getMatcher);
- return function result(id) {
- if (typeof id !== 'string')
- return false;
- if (/\0/.test(id))
- return false;
- const pathId = id.split(path.sep).join('/');
- for (let i = 0; i < excludeMatchers.length; ++i) {
- const matcher = excludeMatchers[i];
- if (matcher.test(pathId))
- return false;
- }
- for (let i = 0; i < includeMatchers.length; ++i) {
- const matcher = includeMatchers[i];
- if (matcher.test(pathId))
- return true;
- }
- return !includeMatchers.length;
- };
-};
-
-const reservedWords = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public';
-const builtins = 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl';
-const forbiddenIdentifiers = new Set(`${reservedWords} ${builtins}`.split(' '));
-forbiddenIdentifiers.add('');
-const makeLegalIdentifier = function makeLegalIdentifier(str) {
- let identifier = str
- .replace(/-(\w)/g, (_, letter) => letter.toUpperCase())
- .replace(/[^$_a-zA-Z0-9]/g, '_');
- if (/\d/.test(identifier[0]) || forbiddenIdentifiers.has(identifier)) {
- identifier = `_${identifier}`;
- }
- return identifier || '_';
-};
-
-function stringify(obj) {
- return (JSON.stringify(obj) || 'undefined').replace(/[\u2028\u2029]/g, (char) => `\\u${`000${char.charCodeAt(0).toString(16)}`.slice(-4)}`);
-}
-function serializeArray(arr, indent, baseIndent) {
- let output = '[';
- const separator = indent ? `\n${baseIndent}${indent}` : '';
- for (let i = 0; i < arr.length; i++) {
- const key = arr[i];
- output += `${i > 0 ? ',' : ''}${separator}${serialize(key, indent, baseIndent + indent)}`;
- }
- return `${output}${indent ? `\n${baseIndent}` : ''}]`;
-}
-function serializeObject(obj, indent, baseIndent) {
- let output = '{';
- const separator = indent ? `\n${baseIndent}${indent}` : '';
- const entries = Object.entries(obj);
- for (let i = 0; i < entries.length; i++) {
- const [key, value] = entries[i];
- const stringKey = makeLegalIdentifier(key) === key ? key : stringify(key);
- output += `${i > 0 ? ',' : ''}${separator}${stringKey}:${indent ? ' ' : ''}${serialize(value, indent, baseIndent + indent)}`;
- }
- return `${output}${indent ? `\n${baseIndent}` : ''}}`;
-}
-function serialize(obj, indent, baseIndent) {
- if (obj === Infinity)
- return 'Infinity';
- if (obj === -Infinity)
- return '-Infinity';
- if (obj === 0 && 1 / obj === -Infinity)
- return '-0';
- if (obj instanceof Date)
- return `new Date(${obj.getTime()})`;
- if (obj instanceof RegExp)
- return obj.toString();
- if (obj !== obj)
- return 'NaN'; // eslint-disable-line no-self-compare
- if (Array.isArray(obj))
- return serializeArray(obj, indent, baseIndent);
- if (obj === null)
- return 'null';
- if (typeof obj === 'object')
- return serializeObject(obj, indent, baseIndent);
- return stringify(obj);
-}
-const dataToEsm = function dataToEsm(data, options = {}) {
- const t = options.compact ? '' : 'indent' in options ? options.indent : '\t';
- const _ = options.compact ? '' : ' ';
- const n = options.compact ? '' : '\n';
- const declarationType = options.preferConst ? 'const' : 'var';
- if (options.namedExports === false ||
- typeof data !== 'object' ||
- Array.isArray(data) ||
- data instanceof Date ||
- data instanceof RegExp ||
- data === null) {
- const code = serialize(data, options.compact ? null : t, '');
- const magic = _ || (/^[{[\-\/]/.test(code) ? '' : ' '); // eslint-disable-line no-useless-escape
- return `export default${magic}${code};`;
- }
- let namedExportCode = '';
- const defaultExportRows = [];
- for (const [key, value] of Object.entries(data)) {
- if (key === makeLegalIdentifier(key)) {
- if (options.objectShorthand)
- defaultExportRows.push(key);
- else
- defaultExportRows.push(`${key}:${_}${key}`);
- namedExportCode += `export ${declarationType} ${key}${_}=${_}${serialize(value, options.compact ? null : t, '')};${n}`;
- }
- else {
- defaultExportRows.push(`${stringify(key)}:${_}${serialize(value, options.compact ? null : t, '')}`);
- }
- }
- return `${namedExportCode}export default${_}{${n}${t}${defaultExportRows.join(`,${n}${t}`)}${n}};${n}`;
-};
-
-// TODO: remove this in next major
-var index = {
- addExtension,
- attachScopes,
- createFilter,
- dataToEsm,
- extractAssignedNames,
- makeLegalIdentifier
-};
-
-exports.addExtension = addExtension;
-exports.attachScopes = attachScopes;
-exports.createFilter = createFilter;
-exports.dataToEsm = dataToEsm;
-exports.default = index;
-exports.extractAssignedNames = extractAssignedNames;
-exports.makeLegalIdentifier = makeLegalIdentifier;
diff --git a/node_modules/@rollup/pluginutils/dist/es/index.js b/node_modules/@rollup/pluginutils/dist/es/index.js
deleted file mode 100644
index a423052933..0000000000
--- a/node_modules/@rollup/pluginutils/dist/es/index.js
+++ /dev/null
@@ -1,436 +0,0 @@
-import { extname, sep, resolve, posix } from 'path';
-import pm from 'picomatch';
-
-const addExtension = function addExtension(filename, ext = '.js') {
- let result = `${filename}`;
- if (!extname(filename))
- result += ext;
- return result;
-};
-
-function walk(ast, { enter, leave }) {
- return visit(ast, null, enter, leave);
-}
-
-let should_skip = false;
-let should_remove = false;
-let replacement = null;
-const context = {
- skip: () => should_skip = true,
- remove: () => should_remove = true,
- replace: (node) => replacement = node
-};
-
-function replace(parent, prop, index, node) {
- if (parent) {
- if (index !== null) {
- parent[prop][index] = node;
- } else {
- parent[prop] = node;
- }
- }
-}
-
-function remove(parent, prop, index) {
- if (parent) {
- if (index !== null) {
- parent[prop].splice(index, 1);
- } else {
- delete parent[prop];
- }
- }
-}
-
-function visit(
- node,
- parent,
- enter,
- leave,
- prop,
- index
-) {
- if (node) {
- if (enter) {
- const _should_skip = should_skip;
- const _should_remove = should_remove;
- const _replacement = replacement;
- should_skip = false;
- should_remove = false;
- replacement = null;
-
- enter.call(context, node, parent, prop, index);
-
- if (replacement) {
- node = replacement;
- replace(parent, prop, index, node);
- }
-
- if (should_remove) {
- remove(parent, prop, index);
- }
-
- const skipped = should_skip;
- const removed = should_remove;
-
- should_skip = _should_skip;
- should_remove = _should_remove;
- replacement = _replacement;
-
- if (skipped) return node;
- if (removed) return null;
- }
-
- for (const key in node) {
- const value = (node )[key];
-
- if (typeof value !== 'object') {
- continue;
- }
-
- else if (Array.isArray(value)) {
- for (let j = 0, k = 0; j < value.length; j += 1, k += 1) {
- if (value[j] !== null && typeof value[j].type === 'string') {
- if (!visit(value[j], node, enter, leave, key, k)) {
- // removed
- j--;
- }
- }
- }
- }
-
- else if (value !== null && typeof value.type === 'string') {
- visit(value, node, enter, leave, key, null);
- }
- }
-
- if (leave) {
- const _replacement = replacement;
- const _should_remove = should_remove;
- replacement = null;
- should_remove = false;
-
- leave.call(context, node, parent, prop, index);
-
- if (replacement) {
- node = replacement;
- replace(parent, prop, index, node);
- }
-
- if (should_remove) {
- remove(parent, prop, index);
- }
-
- const removed = should_remove;
-
- replacement = _replacement;
- should_remove = _should_remove;
-
- if (removed) return null;
- }
- }
-
- return node;
-}
-
-const extractors = {
- ArrayPattern(names, param) {
- for (const element of param.elements) {
- if (element)
- extractors[element.type](names, element);
- }
- },
- AssignmentPattern(names, param) {
- extractors[param.left.type](names, param.left);
- },
- Identifier(names, param) {
- names.push(param.name);
- },
- MemberExpression() { },
- ObjectPattern(names, param) {
- for (const prop of param.properties) {
- // @ts-ignore Typescript reports that this is not a valid type
- if (prop.type === 'RestElement') {
- extractors.RestElement(names, prop);
- }
- else {
- extractors[prop.value.type](names, prop.value);
- }
- }
- },
- RestElement(names, param) {
- extractors[param.argument.type](names, param.argument);
- }
-};
-const extractAssignedNames = function extractAssignedNames(param) {
- const names = [];
- extractors[param.type](names, param);
- return names;
-};
-
-const blockDeclarations = {
- const: true,
- let: true
-};
-class Scope {
- constructor(options = {}) {
- this.parent = options.parent;
- this.isBlockScope = !!options.block;
- this.declarations = Object.create(null);
- if (options.params) {
- options.params.forEach((param) => {
- extractAssignedNames(param).forEach((name) => {
- this.declarations[name] = true;
- });
- });
- }
- }
- addDeclaration(node, isBlockDeclaration, isVar) {
- if (!isBlockDeclaration && this.isBlockScope) {
- // it's a `var` or function node, and this
- // is a block scope, so we need to go up
- this.parent.addDeclaration(node, isBlockDeclaration, isVar);
- }
- else if (node.id) {
- extractAssignedNames(node.id).forEach((name) => {
- this.declarations[name] = true;
- });
- }
- }
- contains(name) {
- return this.declarations[name] || (this.parent ? this.parent.contains(name) : false);
- }
-}
-const attachScopes = function attachScopes(ast, propertyName = 'scope') {
- let scope = new Scope();
- walk(ast, {
- enter(n, parent) {
- const node = n;
- // function foo () {...}
- // class Foo {...}
- if (/(Function|Class)Declaration/.test(node.type)) {
- scope.addDeclaration(node, false, false);
- }
- // var foo = 1
- if (node.type === 'VariableDeclaration') {
- const { kind } = node;
- const isBlockDeclaration = blockDeclarations[kind];
- // don't add const/let declarations in the body of a for loop #113
- const parentType = parent ? parent.type : '';
- if (!(isBlockDeclaration && /ForOfStatement/.test(parentType))) {
- node.declarations.forEach((declaration) => {
- scope.addDeclaration(declaration, isBlockDeclaration, true);
- });
- }
- }
- let newScope;
- // create new function scope
- if (/Function/.test(node.type)) {
- const func = node;
- newScope = new Scope({
- parent: scope,
- block: false,
- params: func.params
- });
- // named function expressions - the name is considered
- // part of the function's scope
- if (func.type === 'FunctionExpression' && func.id) {
- newScope.addDeclaration(func, false, false);
- }
- }
- // create new block scope
- if (node.type === 'BlockStatement' && !/Function/.test(parent.type)) {
- newScope = new Scope({
- parent: scope,
- block: true
- });
- }
- // catch clause has its own block scope
- if (node.type === 'CatchClause') {
- newScope = new Scope({
- parent: scope,
- params: node.param ? [node.param] : [],
- block: true
- });
- }
- if (newScope) {
- Object.defineProperty(node, propertyName, {
- value: newScope,
- configurable: true
- });
- scope = newScope;
- }
- },
- leave(n) {
- const node = n;
- if (node[propertyName])
- scope = scope.parent;
- }
- });
- return scope;
-};
-
-// Helper since Typescript can't detect readonly arrays with Array.isArray
-function isArray(arg) {
- return Array.isArray(arg);
-}
-function ensureArray(thing) {
- if (isArray(thing))
- return thing;
- if (thing == null)
- return [];
- return [thing];
-}
-
-function getMatcherString(id, resolutionBase) {
- if (resolutionBase === false) {
- return id;
- }
- // resolve('') is valid and will default to process.cwd()
- const basePath = resolve(resolutionBase || '')
- .split(sep)
- .join('/')
- // escape all possible (posix + win) path characters that might interfere with regex
- .replace(/[-^$*+?.()|[\]{}]/g, '\\$&');
- // Note that we use posix.join because:
- // 1. the basePath has been normalized to use /
- // 2. the incoming glob (id) matcher, also uses /
- // otherwise Node will force backslash (\) on windows
- return posix.join(basePath, id);
-}
-const createFilter = function createFilter(include, exclude, options) {
- const resolutionBase = options && options.resolve;
- const getMatcher = (id) => id instanceof RegExp
- ? id
- : {
- test: (what) => {
- // this refactor is a tad overly verbose but makes for easy debugging
- const pattern = getMatcherString(id, resolutionBase);
- const fn = pm(pattern, { dot: true });
- const result = fn(what);
- return result;
- }
- };
- const includeMatchers = ensureArray(include).map(getMatcher);
- const excludeMatchers = ensureArray(exclude).map(getMatcher);
- return function result(id) {
- if (typeof id !== 'string')
- return false;
- if (/\0/.test(id))
- return false;
- const pathId = id.split(sep).join('/');
- for (let i = 0; i < excludeMatchers.length; ++i) {
- const matcher = excludeMatchers[i];
- if (matcher.test(pathId))
- return false;
- }
- for (let i = 0; i < includeMatchers.length; ++i) {
- const matcher = includeMatchers[i];
- if (matcher.test(pathId))
- return true;
- }
- return !includeMatchers.length;
- };
-};
-
-const reservedWords = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public';
-const builtins = 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl';
-const forbiddenIdentifiers = new Set(`${reservedWords} ${builtins}`.split(' '));
-forbiddenIdentifiers.add('');
-const makeLegalIdentifier = function makeLegalIdentifier(str) {
- let identifier = str
- .replace(/-(\w)/g, (_, letter) => letter.toUpperCase())
- .replace(/[^$_a-zA-Z0-9]/g, '_');
- if (/\d/.test(identifier[0]) || forbiddenIdentifiers.has(identifier)) {
- identifier = `_${identifier}`;
- }
- return identifier || '_';
-};
-
-function stringify(obj) {
- return (JSON.stringify(obj) || 'undefined').replace(/[\u2028\u2029]/g, (char) => `\\u${`000${char.charCodeAt(0).toString(16)}`.slice(-4)}`);
-}
-function serializeArray(arr, indent, baseIndent) {
- let output = '[';
- const separator = indent ? `\n${baseIndent}${indent}` : '';
- for (let i = 0; i < arr.length; i++) {
- const key = arr[i];
- output += `${i > 0 ? ',' : ''}${separator}${serialize(key, indent, baseIndent + indent)}`;
- }
- return `${output}${indent ? `\n${baseIndent}` : ''}]`;
-}
-function serializeObject(obj, indent, baseIndent) {
- let output = '{';
- const separator = indent ? `\n${baseIndent}${indent}` : '';
- const entries = Object.entries(obj);
- for (let i = 0; i < entries.length; i++) {
- const [key, value] = entries[i];
- const stringKey = makeLegalIdentifier(key) === key ? key : stringify(key);
- output += `${i > 0 ? ',' : ''}${separator}${stringKey}:${indent ? ' ' : ''}${serialize(value, indent, baseIndent + indent)}`;
- }
- return `${output}${indent ? `\n${baseIndent}` : ''}}`;
-}
-function serialize(obj, indent, baseIndent) {
- if (obj === Infinity)
- return 'Infinity';
- if (obj === -Infinity)
- return '-Infinity';
- if (obj === 0 && 1 / obj === -Infinity)
- return '-0';
- if (obj instanceof Date)
- return `new Date(${obj.getTime()})`;
- if (obj instanceof RegExp)
- return obj.toString();
- if (obj !== obj)
- return 'NaN'; // eslint-disable-line no-self-compare
- if (Array.isArray(obj))
- return serializeArray(obj, indent, baseIndent);
- if (obj === null)
- return 'null';
- if (typeof obj === 'object')
- return serializeObject(obj, indent, baseIndent);
- return stringify(obj);
-}
-const dataToEsm = function dataToEsm(data, options = {}) {
- const t = options.compact ? '' : 'indent' in options ? options.indent : '\t';
- const _ = options.compact ? '' : ' ';
- const n = options.compact ? '' : '\n';
- const declarationType = options.preferConst ? 'const' : 'var';
- if (options.namedExports === false ||
- typeof data !== 'object' ||
- Array.isArray(data) ||
- data instanceof Date ||
- data instanceof RegExp ||
- data === null) {
- const code = serialize(data, options.compact ? null : t, '');
- const magic = _ || (/^[{[\-\/]/.test(code) ? '' : ' '); // eslint-disable-line no-useless-escape
- return `export default${magic}${code};`;
- }
- let namedExportCode = '';
- const defaultExportRows = [];
- for (const [key, value] of Object.entries(data)) {
- if (key === makeLegalIdentifier(key)) {
- if (options.objectShorthand)
- defaultExportRows.push(key);
- else
- defaultExportRows.push(`${key}:${_}${key}`);
- namedExportCode += `export ${declarationType} ${key}${_}=${_}${serialize(value, options.compact ? null : t, '')};${n}`;
- }
- else {
- defaultExportRows.push(`${stringify(key)}:${_}${serialize(value, options.compact ? null : t, '')}`);
- }
- }
- return `${namedExportCode}export default${_}{${n}${t}${defaultExportRows.join(`,${n}${t}`)}${n}};${n}`;
-};
-
-// TODO: remove this in next major
-var index = {
- addExtension,
- attachScopes,
- createFilter,
- dataToEsm,
- extractAssignedNames,
- makeLegalIdentifier
-};
-
-export default index;
-export { addExtension, attachScopes, createFilter, dataToEsm, extractAssignedNames, makeLegalIdentifier };
diff --git a/node_modules/@rollup/pluginutils/dist/es/package.json b/node_modules/@rollup/pluginutils/dist/es/package.json
deleted file mode 100644
index 3dbc1ca591..0000000000
--- a/node_modules/@rollup/pluginutils/dist/es/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@rollup/pluginutils/node_modules/@types/estree/LICENSE b/node_modules/@rollup/pluginutils/node_modules/@types/estree/LICENSE
deleted file mode 100644
index 21071075c2..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/@types/estree/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
- MIT License
-
- Copyright (c) Microsoft Corporation. All rights reserved.
-
- 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/@rollup/pluginutils/node_modules/@types/estree/README.md b/node_modules/@rollup/pluginutils/node_modules/@types/estree/README.md
deleted file mode 100644
index 2a22bde856..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/@types/estree/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Installation
-> `npm install --save @types/estree`
-
-# Summary
-This package contains type definitions for ESTree AST specification (https://github.com/estree/estree).
-
-# Details
-Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree
-
-Additional Details
- * Last updated: Tue, 17 Apr 2018 20:22:09 GMT
- * Dependencies: none
- * Global values: none
-
-# Credits
-These definitions were written by RReverser .
diff --git a/node_modules/@rollup/pluginutils/node_modules/@types/estree/index.d.ts b/node_modules/@rollup/pluginutils/node_modules/@types/estree/index.d.ts
deleted file mode 100644
index 0133991c9f..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/@types/estree/index.d.ts
+++ /dev/null
@@ -1,548 +0,0 @@
-// Type definitions for ESTree AST specification
-// Project: https://github.com/estree/estree
-// Definitions by: RReverser
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-// This definition file follows a somewhat unusual format. ESTree allows
-// runtime type checks based on the `type` parameter. In order to explain this
-// to typescript we want to use discriminated union types:
-// https://github.com/Microsoft/TypeScript/pull/9163
-//
-// For ESTree this is a bit tricky because the high level interfaces like
-// Node or Function are pulling double duty. We want to pass common fields down
-// to the interfaces that extend them (like Identifier or
-// ArrowFunctionExpression), but you can't extend a type union or enforce
-// common fields on them. So we've split the high level interfaces into two
-// types, a base type which passes down inhereted fields, and a type union of
-// all types which extend the base type. Only the type union is exported, and
-// the union is how other types refer to the collection of inheriting types.
-//
-// This makes the definitions file here somewhat more difficult to maintain,
-// but it has the notable advantage of making ESTree much easier to use as
-// an end user.
-
-interface BaseNodeWithoutComments {
- // Every leaf interface that extends BaseNode must specify a type property.
- // The type property should be a string literal. For example, Identifier
- // has: `type: "Identifier"`
- type: string;
- loc?: SourceLocation | null;
- range?: [number, number];
-}
-
-interface BaseNode extends BaseNodeWithoutComments {
- leadingComments?: Array;
- trailingComments?: Array;
-}
-
-export type Node =
- Identifier | Literal | Program | Function | SwitchCase | CatchClause |
- VariableDeclarator | Statement | Expression | Property |
- AssignmentProperty | Super | TemplateElement | SpreadElement | Pattern |
- ClassBody | Class | MethodDefinition | ModuleDeclaration | ModuleSpecifier;
-
-export interface Comment extends BaseNodeWithoutComments {
- type: "Line" | "Block";
- value: string;
-}
-
-interface SourceLocation {
- source?: string | null;
- start: Position;
- end: Position;
-}
-
-export interface Position {
- /** >= 1 */
- line: number;
- /** >= 0 */
- column: number;
-}
-
-export interface Program extends BaseNode {
- type: "Program";
- sourceType: "script" | "module";
- body: Array;
- comments?: Array;
-}
-
-interface BaseFunction extends BaseNode {
- params: Array;
- generator?: boolean;
- async?: boolean;
- // The body is either BlockStatement or Expression because arrow functions
- // can have a body that's either. FunctionDeclarations and
- // FunctionExpressions have only BlockStatement bodies.
- body: BlockStatement | Expression;
-}
-
-export type Function =
- FunctionDeclaration | FunctionExpression | ArrowFunctionExpression;
-
-export type Statement =
- ExpressionStatement | BlockStatement | EmptyStatement |
- DebuggerStatement | WithStatement | ReturnStatement | LabeledStatement |
- BreakStatement | ContinueStatement | IfStatement | SwitchStatement |
- ThrowStatement | TryStatement | WhileStatement | DoWhileStatement |
- ForStatement | ForInStatement | ForOfStatement | Declaration;
-
-interface BaseStatement extends BaseNode { }
-
-export interface EmptyStatement extends BaseStatement {
- type: "EmptyStatement";
-}
-
-export interface BlockStatement extends BaseStatement {
- type: "BlockStatement";
- body: Array;
- innerComments?: Array;
-}
-
-export interface ExpressionStatement extends BaseStatement {
- type: "ExpressionStatement";
- expression: Expression;
-}
-
-export interface IfStatement extends BaseStatement {
- type: "IfStatement";
- test: Expression;
- consequent: Statement;
- alternate?: Statement | null;
-}
-
-export interface LabeledStatement extends BaseStatement {
- type: "LabeledStatement";
- label: Identifier;
- body: Statement;
-}
-
-export interface BreakStatement extends BaseStatement {
- type: "BreakStatement";
- label?: Identifier | null;
-}
-
-export interface ContinueStatement extends BaseStatement {
- type: "ContinueStatement";
- label?: Identifier | null;
-}
-
-export interface WithStatement extends BaseStatement {
- type: "WithStatement";
- object: Expression;
- body: Statement;
-}
-
-export interface SwitchStatement extends BaseStatement {
- type: "SwitchStatement";
- discriminant: Expression;
- cases: Array;
-}
-
-export interface ReturnStatement extends BaseStatement {
- type: "ReturnStatement";
- argument?: Expression | null;
-}
-
-export interface ThrowStatement extends BaseStatement {
- type: "ThrowStatement";
- argument: Expression;
-}
-
-export interface TryStatement extends BaseStatement {
- type: "TryStatement";
- block: BlockStatement;
- handler?: CatchClause | null;
- finalizer?: BlockStatement | null;
-}
-
-export interface WhileStatement extends BaseStatement {
- type: "WhileStatement";
- test: Expression;
- body: Statement;
-}
-
-export interface DoWhileStatement extends BaseStatement {
- type: "DoWhileStatement";
- body: Statement;
- test: Expression;
-}
-
-export interface ForStatement extends BaseStatement {
- type: "ForStatement";
- init?: VariableDeclaration | Expression | null;
- test?: Expression | null;
- update?: Expression | null;
- body: Statement;
-}
-
-interface BaseForXStatement extends BaseStatement {
- left: VariableDeclaration | Pattern;
- right: Expression;
- body: Statement;
-}
-
-export interface ForInStatement extends BaseForXStatement {
- type: "ForInStatement";
-}
-
-export interface DebuggerStatement extends BaseStatement {
- type: "DebuggerStatement";
-}
-
-export type Declaration =
- FunctionDeclaration | VariableDeclaration | ClassDeclaration;
-
-interface BaseDeclaration extends BaseStatement { }
-
-export interface FunctionDeclaration extends BaseFunction, BaseDeclaration {
- type: "FunctionDeclaration";
- /** It is null when a function declaration is a part of the `export default function` statement */
- id: Identifier | null;
- body: BlockStatement;
-}
-
-export interface VariableDeclaration extends BaseDeclaration {
- type: "VariableDeclaration";
- declarations: Array;
- kind: "var" | "let" | "const";
-}
-
-export interface VariableDeclarator extends BaseNode {
- type: "VariableDeclarator";
- id: Pattern;
- init?: Expression | null;
-}
-
-type Expression =
- ThisExpression | ArrayExpression | ObjectExpression | FunctionExpression |
- ArrowFunctionExpression | YieldExpression | Literal | UnaryExpression |
- UpdateExpression | BinaryExpression | AssignmentExpression |
- LogicalExpression | MemberExpression | ConditionalExpression |
- CallExpression | NewExpression | SequenceExpression | TemplateLiteral |
- TaggedTemplateExpression | ClassExpression | MetaProperty | Identifier |
- AwaitExpression;
-
-export interface BaseExpression extends BaseNode { }
-
-export interface ThisExpression extends BaseExpression {
- type: "ThisExpression";
-}
-
-export interface ArrayExpression extends BaseExpression {
- type: "ArrayExpression";
- elements: Array;
-}
-
-export interface ObjectExpression extends BaseExpression {
- type: "ObjectExpression";
- properties: Array;
-}
-
-export interface Property extends BaseNode {
- type: "Property";
- key: Expression;
- value: Expression | Pattern; // Could be an AssignmentProperty
- kind: "init" | "get" | "set";
- method: boolean;
- shorthand: boolean;
- computed: boolean;
-}
-
-export interface FunctionExpression extends BaseFunction, BaseExpression {
- id?: Identifier | null;
- type: "FunctionExpression";
- body: BlockStatement;
-}
-
-export interface SequenceExpression extends BaseExpression {
- type: "SequenceExpression";
- expressions: Array;
-}
-
-export interface UnaryExpression extends BaseExpression {
- type: "UnaryExpression";
- operator: UnaryOperator;
- prefix: true;
- argument: Expression;
-}
-
-export interface BinaryExpression extends BaseExpression {
- type: "BinaryExpression";
- operator: BinaryOperator;
- left: Expression;
- right: Expression;
-}
-
-export interface AssignmentExpression extends BaseExpression {
- type: "AssignmentExpression";
- operator: AssignmentOperator;
- left: Pattern | MemberExpression;
- right: Expression;
-}
-
-export interface UpdateExpression extends BaseExpression {
- type: "UpdateExpression";
- operator: UpdateOperator;
- argument: Expression;
- prefix: boolean;
-}
-
-export interface LogicalExpression extends BaseExpression {
- type: "LogicalExpression";
- operator: LogicalOperator;
- left: Expression;
- right: Expression;
-}
-
-export interface ConditionalExpression extends BaseExpression {
- type: "ConditionalExpression";
- test: Expression;
- alternate: Expression;
- consequent: Expression;
-}
-
-interface BaseCallExpression extends BaseExpression {
- callee: Expression | Super;
- arguments: Array;
-}
-export type CallExpression = SimpleCallExpression | NewExpression;
-
-export interface SimpleCallExpression extends BaseCallExpression {
- type: "CallExpression";
-}
-
-export interface NewExpression extends BaseCallExpression {
- type: "NewExpression";
-}
-
-export interface MemberExpression extends BaseExpression, BasePattern {
- type: "MemberExpression";
- object: Expression | Super;
- property: Expression;
- computed: boolean;
-}
-
-export type Pattern =
- Identifier | ObjectPattern | ArrayPattern | RestElement |
- AssignmentPattern | MemberExpression;
-
-interface BasePattern extends BaseNode { }
-
-export interface SwitchCase extends BaseNode {
- type: "SwitchCase";
- test?: Expression | null;
- consequent: Array;
-}
-
-export interface CatchClause extends BaseNode {
- type: "CatchClause";
- param: Pattern;
- body: BlockStatement;
-}
-
-export interface Identifier extends BaseNode, BaseExpression, BasePattern {
- type: "Identifier";
- name: string;
-}
-
-export type Literal = SimpleLiteral | RegExpLiteral;
-
-export interface SimpleLiteral extends BaseNode, BaseExpression {
- type: "Literal";
- value: string | boolean | number | null;
- raw?: string;
-}
-
-export interface RegExpLiteral extends BaseNode, BaseExpression {
- type: "Literal";
- value?: RegExp | null;
- regex: {
- pattern: string;
- flags: string;
- };
- raw?: string;
-}
-
-export type UnaryOperator =
- "-" | "+" | "!" | "~" | "typeof" | "void" | "delete";
-
-export type BinaryOperator =
- "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" |
- ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "|" | "^" | "&" | "in" |
- "instanceof";
-
-export type LogicalOperator = "||" | "&&";
-
-export type AssignmentOperator =
- "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" |
- "|=" | "^=" | "&=";
-
-export type UpdateOperator = "++" | "--";
-
-export interface ForOfStatement extends BaseForXStatement {
- type: "ForOfStatement";
-}
-
-export interface Super extends BaseNode {
- type: "Super";
-}
-
-export interface SpreadElement extends BaseNode {
- type: "SpreadElement";
- argument: Expression;
-}
-
-export interface ArrowFunctionExpression extends BaseExpression, BaseFunction {
- type: "ArrowFunctionExpression";
- expression: boolean;
- body: BlockStatement | Expression;
-}
-
-export interface YieldExpression extends BaseExpression {
- type: "YieldExpression";
- argument?: Expression | null;
- delegate: boolean;
-}
-
-export interface TemplateLiteral extends BaseExpression {
- type: "TemplateLiteral";
- quasis: Array;
- expressions: Array;
-}
-
-export interface TaggedTemplateExpression extends BaseExpression {
- type: "TaggedTemplateExpression";
- tag: Expression;
- quasi: TemplateLiteral;
-}
-
-export interface TemplateElement extends BaseNode {
- type: "TemplateElement";
- tail: boolean;
- value: {
- cooked: string;
- raw: string;
- };
-}
-
-export interface AssignmentProperty extends Property {
- value: Pattern;
- kind: "init";
- method: boolean; // false
-}
-
-export interface ObjectPattern extends BasePattern {
- type: "ObjectPattern";
- properties: Array;
-}
-
-export interface ArrayPattern extends BasePattern {
- type: "ArrayPattern";
- elements: Array;
-}
-
-export interface RestElement extends BasePattern {
- type: "RestElement";
- argument: Pattern;
-}
-
-export interface AssignmentPattern extends BasePattern {
- type: "AssignmentPattern";
- left: Pattern;
- right: Expression;
-}
-
-export type Class = ClassDeclaration | ClassExpression;
-interface BaseClass extends BaseNode {
- superClass?: Expression | null;
- body: ClassBody;
-}
-
-export interface ClassBody extends BaseNode {
- type: "ClassBody";
- body: Array;
-}
-
-export interface MethodDefinition extends BaseNode {
- type: "MethodDefinition";
- key: Expression;
- value: FunctionExpression;
- kind: "constructor" | "method" | "get" | "set";
- computed: boolean;
- static: boolean;
-}
-
-export interface ClassDeclaration extends BaseClass, BaseDeclaration {
- type: "ClassDeclaration";
- /** It is null when a class declaration is a part of the `export default class` statement */
- id: Identifier | null;
-}
-
-export interface ClassExpression extends BaseClass, BaseExpression {
- type: "ClassExpression";
- id?: Identifier | null;
-}
-
-export interface MetaProperty extends BaseExpression {
- type: "MetaProperty";
- meta: Identifier;
- property: Identifier;
-}
-
-export type ModuleDeclaration =
- ImportDeclaration | ExportNamedDeclaration | ExportDefaultDeclaration |
- ExportAllDeclaration;
-interface BaseModuleDeclaration extends BaseNode { }
-
-export type ModuleSpecifier =
- ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier |
- ExportSpecifier;
-interface BaseModuleSpecifier extends BaseNode {
- local: Identifier;
-}
-
-export interface ImportDeclaration extends BaseModuleDeclaration {
- type: "ImportDeclaration";
- specifiers: Array;
- source: Literal;
-}
-
-export interface ImportSpecifier extends BaseModuleSpecifier {
- type: "ImportSpecifier";
- imported: Identifier;
-}
-
-export interface ImportDefaultSpecifier extends BaseModuleSpecifier {
- type: "ImportDefaultSpecifier";
-}
-
-export interface ImportNamespaceSpecifier extends BaseModuleSpecifier {
- type: "ImportNamespaceSpecifier";
-}
-
-export interface ExportNamedDeclaration extends BaseModuleDeclaration {
- type: "ExportNamedDeclaration";
- declaration?: Declaration | null;
- specifiers: Array;
- source?: Literal | null;
-}
-
-export interface ExportSpecifier extends BaseModuleSpecifier {
- type: "ExportSpecifier";
- exported: Identifier;
-}
-
-export interface ExportDefaultDeclaration extends BaseModuleDeclaration {
- type: "ExportDefaultDeclaration";
- declaration: Declaration | Expression;
-}
-
-export interface ExportAllDeclaration extends BaseModuleDeclaration {
- type: "ExportAllDeclaration";
- source: Literal;
-}
-
-export interface AwaitExpression extends BaseExpression {
- type: "AwaitExpression";
- argument: Expression;
-}
diff --git a/node_modules/@rollup/pluginutils/node_modules/@types/estree/package.json b/node_modules/@rollup/pluginutils/node_modules/@types/estree/package.json
deleted file mode 100644
index e04ee1e811..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/@types/estree/package.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "name": "@types/estree",
- "version": "0.0.39",
- "description": "TypeScript definitions for ESTree AST specification",
- "license": "MIT",
- "contributors": [
- {
- "name": "RReverser",
- "url": "https://github.com/RReverser",
- "githubUsername": "RReverser"
- }
- ],
- "main": "",
- "repository": {
- "type": "git",
- "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
- },
- "scripts": {},
- "dependencies": {},
- "typesPublisherContentHash": "427ba878ebb5570e15aab870f708720d146a1c4b272e4a9d9990db4d1d033170",
- "typeScriptVersion": "2.0"
-}
diff --git a/node_modules/@rollup/pluginutils/node_modules/estree-walker/CHANGELOG.md b/node_modules/@rollup/pluginutils/node_modules/estree-walker/CHANGELOG.md
deleted file mode 100644
index d7c878c9a1..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/estree-walker/CHANGELOG.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# changelog
-
-## 1.0.1
-
-* Relax node type to `BaseNode` ([#17](https://github.com/Rich-Harris/estree-walker/pull/17))
-
-## 1.0.0
-
-* Don't cache child keys
-
-## 0.9.0
-
-* Add `this.remove()` method
-
-## 0.8.1
-
-* Fix pkg.files
-
-## 0.8.0
-
-* Adopt `estree` types
-
-## 0.7.0
-
-* Add a `this.replace(node)` method
-
-## 0.6.1
-
-* Only traverse nodes that exist and have a type ([#9](https://github.com/Rich-Harris/estree-walker/pull/9))
-* Only cache keys for nodes with a type ([#8](https://github.com/Rich-Harris/estree-walker/pull/8))
-
-## 0.6.0
-
-* Fix walker context type
-* Update deps, remove unncessary Bublé transformation
-
-## 0.5.2
-
-* Add types to package
-
-## 0.5.1
-
-* Prevent context corruption when `walk()` is called during a walk
-
-## 0.5.0
-
-* Export `childKeys`, for manually fixing in case of malformed ASTs
-
-## 0.4.0
-
-* Add TypeScript typings ([#3](https://github.com/Rich-Harris/estree-walker/pull/3))
-
-## 0.3.1
-
-* Include `pkg.repository` ([#2](https://github.com/Rich-Harris/estree-walker/pull/2))
-
-## 0.3.0
-
-* More predictable ordering
-
-## 0.2.1
-
-* Keep `context` shape
-
-## 0.2.0
-
-* Add ES6 build
-
-## 0.1.3
-
-* npm snafu
-
-## 0.1.2
-
-* Pass current prop and index to `enter`/`leave` callbacks
-
-## 0.1.1
-
-* First release
diff --git a/node_modules/@rollup/pluginutils/node_modules/estree-walker/README.md b/node_modules/@rollup/pluginutils/node_modules/estree-walker/README.md
deleted file mode 100644
index d877af36d4..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/estree-walker/README.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# estree-walker
-
-Simple utility for walking an [ESTree](https://github.com/estree/estree)-compliant AST, such as one generated by [acorn](https://github.com/marijnh/acorn).
-
-
-## Installation
-
-```bash
-npm i estree-walker
-```
-
-
-## Usage
-
-```js
-var walk = require( 'estree-walker' ).walk;
-var acorn = require( 'acorn' );
-
-ast = acorn.parse( sourceCode, options ); // https://github.com/acornjs/acorn
-
-walk( ast, {
- enter: function ( node, parent, prop, index ) {
- // some code happens
- },
- leave: function ( node, parent, prop, index ) {
- // some code happens
- }
-});
-```
-
-Inside the `enter` function, calling `this.skip()` will prevent the node's children being walked, or the `leave` function (which is optional) being called.
-
-Call `this.replace(new_node)` in either `enter` or `leave` to replace the current node with a new one.
-
-Call `this.remove()` in either `enter` or `leave` to remove the current node.
-
-## Why not use estraverse?
-
-The ESTree spec is evolving to accommodate ES6/7. I've had a couple of experiences where [estraverse](https://github.com/estools/estraverse) was unable to handle an AST generated by recent versions of acorn, because it hard-codes visitor keys.
-
-estree-walker, by contrast, simply enumerates a node's properties to find child nodes (and child lists of nodes), and is therefore resistant to spec changes. It's also much smaller. (The performance, if you're wondering, is basically identical.)
-
-None of which should be taken as criticism of estraverse, which has more features and has been battle-tested in many more situations, and for which I'm very grateful.
-
-
-## License
-
-MIT
diff --git a/node_modules/@rollup/pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js b/node_modules/@rollup/pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js
deleted file mode 100644
index f2e012a7d0..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js
+++ /dev/null
@@ -1,135 +0,0 @@
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
- (factory((global.estreeWalker = {})));
-}(this, (function (exports) { 'use strict';
-
- function walk(ast, { enter, leave }) {
- return visit(ast, null, enter, leave);
- }
-
- let should_skip = false;
- let should_remove = false;
- let replacement = null;
- const context = {
- skip: () => should_skip = true,
- remove: () => should_remove = true,
- replace: (node) => replacement = node
- };
-
- function replace(parent, prop, index, node) {
- if (parent) {
- if (index !== null) {
- parent[prop][index] = node;
- } else {
- parent[prop] = node;
- }
- }
- }
-
- function remove(parent, prop, index) {
- if (parent) {
- if (index !== null) {
- parent[prop].splice(index, 1);
- } else {
- delete parent[prop];
- }
- }
- }
-
- function visit(
- node,
- parent,
- enter,
- leave,
- prop,
- index
- ) {
- if (node) {
- if (enter) {
- const _should_skip = should_skip;
- const _should_remove = should_remove;
- const _replacement = replacement;
- should_skip = false;
- should_remove = false;
- replacement = null;
-
- enter.call(context, node, parent, prop, index);
-
- if (replacement) {
- node = replacement;
- replace(parent, prop, index, node);
- }
-
- if (should_remove) {
- remove(parent, prop, index);
- }
-
- const skipped = should_skip;
- const removed = should_remove;
-
- should_skip = _should_skip;
- should_remove = _should_remove;
- replacement = _replacement;
-
- if (skipped) return node;
- if (removed) return null;
- }
-
- for (const key in node) {
- const value = (node )[key];
-
- if (typeof value !== 'object') {
- continue;
- }
-
- else if (Array.isArray(value)) {
- for (let j = 0, k = 0; j < value.length; j += 1, k += 1) {
- if (value[j] !== null && typeof value[j].type === 'string') {
- if (!visit(value[j], node, enter, leave, key, k)) {
- // removed
- j--;
- }
- }
- }
- }
-
- else if (value !== null && typeof value.type === 'string') {
- visit(value, node, enter, leave, key, null);
- }
- }
-
- if (leave) {
- const _replacement = replacement;
- const _should_remove = should_remove;
- replacement = null;
- should_remove = false;
-
- leave.call(context, node, parent, prop, index);
-
- if (replacement) {
- node = replacement;
- replace(parent, prop, index, node);
- }
-
- if (should_remove) {
- remove(parent, prop, index);
- }
-
- const removed = should_remove;
-
- replacement = _replacement;
- should_remove = _should_remove;
-
- if (removed) return null;
- }
- }
-
- return node;
- }
-
- exports.walk = walk;
-
- Object.defineProperty(exports, '__esModule', { value: true });
-
-})));
diff --git a/node_modules/@rollup/pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js.map b/node_modules/@rollup/pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js.map
deleted file mode 100644
index 7ea22970e7..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"estree-walker.umd.js","sources":["../src/estree-walker.js"],"sourcesContent":["export function walk(ast, { enter, leave }) {\n\tvisit(ast, null, enter, leave);\n}\n\nlet shouldSkip = false;\nconst context = { skip: () => shouldSkip = true };\n\nexport const childKeys = {};\n\nconst toString = Object.prototype.toString;\n\nfunction isArray(thing) {\n\treturn toString.call(thing) === '[object Array]';\n}\n\nfunction visit(node, parent, enter, leave, prop, index) {\n\tif (!node) return;\n\n\tif (enter) {\n\t\tconst _shouldSkip = shouldSkip;\n\t\tshouldSkip = false;\n\t\tenter.call(context, node, parent, prop, index);\n\t\tconst skipped = shouldSkip;\n\t\tshouldSkip = _shouldSkip;\n\n\t\tif (skipped) return;\n\t}\n\n\tconst keys = childKeys[node.type] || (\n\t\tchildKeys[node.type] = Object.keys(node).filter(key => typeof node[key] === 'object')\n\t);\n\n\tfor (let i = 0; i < keys.length; i += 1) {\n\t\tconst key = keys[i];\n\t\tconst value = node[key];\n\n\t\tif (isArray(value)) {\n\t\t\tfor (let j = 0; j < value.length; j += 1) {\n\t\t\t\tvisit(value[j], node, enter, leave, key, j);\n\t\t\t}\n\t\t}\n\n\t\telse if (value && value.type) {\n\t\t\tvisit(value, node, enter, leave, key, null);\n\t\t}\n\t}\n\n\tif (leave) {\n\t\tleave(node, parent, prop, index);\n\t}\n}\n"],"names":[],"mappings":";;;;;;CAAO,SAAS,IAAI,CAAC,GAAG,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KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;CAC1C,EAAE,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;CACtB,EAAE,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;;CAE1B,EAAE,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;CACtB,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;CAC7C,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;CAChD,IAAI;CACJ,GAAG;;CAEH,OAAO,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE;CAChC,GAAG,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;CAC/C,GAAG;CACH,EAAE;;CAEF,CAAC,IAAI,KAAK,EAAE;CACZ,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;CACnC,EAAE;CACF,CAAC;;;;;;;;;;;;;"}
\ No newline at end of file
diff --git a/node_modules/@rollup/pluginutils/node_modules/estree-walker/package.json b/node_modules/@rollup/pluginutils/node_modules/estree-walker/package.json
deleted file mode 100644
index 7f07583e44..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/estree-walker/package.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "estree-walker",
- "description": "Traverse an ESTree-compliant AST",
- "version": "1.0.1",
- "author": "Rich Harris",
- "license": "MIT",
- "repository": {
- "type": "git",
- "url": "https://github.com/Rich-Harris/estree-walker"
- },
- "main": "dist/estree-walker.umd.js",
- "module": "src/estree-walker.js",
- "types": "types/index.d.ts",
- "scripts": {
- "prepublishOnly": "npm run build && npm test",
- "build": "tsc && rollup -c",
- "test": "mocha --opts mocha.opts"
- },
- "devDependencies": {
- "@types/estree": "0.0.39",
- "mocha": "^5.2.0",
- "rollup": "^0.67.3",
- "rollup-plugin-sucrase": "^2.1.0",
- "typescript": "^3.6.3"
- },
- "files": [
- "src",
- "dist",
- "types",
- "README.md"
- ]
-}
diff --git a/node_modules/@rollup/pluginutils/node_modules/estree-walker/src/estree-walker.js b/node_modules/@rollup/pluginutils/node_modules/estree-walker/src/estree-walker.js
deleted file mode 100644
index e1b01dfa3b..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/estree-walker/src/estree-walker.js
+++ /dev/null
@@ -1,125 +0,0 @@
-function walk(ast, { enter, leave }) {
- return visit(ast, null, enter, leave);
-}
-
-let should_skip = false;
-let should_remove = false;
-let replacement = null;
-const context = {
- skip: () => should_skip = true,
- remove: () => should_remove = true,
- replace: (node) => replacement = node
-};
-
-function replace(parent, prop, index, node) {
- if (parent) {
- if (index !== null) {
- parent[prop][index] = node;
- } else {
- parent[prop] = node;
- }
- }
-}
-
-function remove(parent, prop, index) {
- if (parent) {
- if (index !== null) {
- parent[prop].splice(index, 1);
- } else {
- delete parent[prop];
- }
- }
-}
-
-function visit(
- node,
- parent,
- enter,
- leave,
- prop,
- index
-) {
- if (node) {
- if (enter) {
- const _should_skip = should_skip;
- const _should_remove = should_remove;
- const _replacement = replacement;
- should_skip = false;
- should_remove = false;
- replacement = null;
-
- enter.call(context, node, parent, prop, index);
-
- if (replacement) {
- node = replacement;
- replace(parent, prop, index, node);
- }
-
- if (should_remove) {
- remove(parent, prop, index);
- }
-
- const skipped = should_skip;
- const removed = should_remove;
-
- should_skip = _should_skip;
- should_remove = _should_remove;
- replacement = _replacement;
-
- if (skipped) return node;
- if (removed) return null;
- }
-
- for (const key in node) {
- const value = (node )[key];
-
- if (typeof value !== 'object') {
- continue;
- }
-
- else if (Array.isArray(value)) {
- for (let j = 0, k = 0; j < value.length; j += 1, k += 1) {
- if (value[j] !== null && typeof value[j].type === 'string') {
- if (!visit(value[j], node, enter, leave, key, k)) {
- // removed
- j--;
- }
- }
- }
- }
-
- else if (value !== null && typeof value.type === 'string') {
- visit(value, node, enter, leave, key, null);
- }
- }
-
- if (leave) {
- const _replacement = replacement;
- const _should_remove = should_remove;
- replacement = null;
- should_remove = false;
-
- leave.call(context, node, parent, prop, index);
-
- if (replacement) {
- node = replacement;
- replace(parent, prop, index, node);
- }
-
- if (should_remove) {
- remove(parent, prop, index);
- }
-
- const removed = should_remove;
-
- replacement = _replacement;
- should_remove = _should_remove;
-
- if (removed) return null;
- }
- }
-
- return node;
-}
-
-export { walk };
diff --git a/node_modules/@rollup/pluginutils/node_modules/estree-walker/src/index.ts b/node_modules/@rollup/pluginutils/node_modules/estree-walker/src/index.ts
deleted file mode 100644
index 09ed5160b2..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/estree-walker/src/index.ts
+++ /dev/null
@@ -1,144 +0,0 @@
-import { BaseNode } from "estree";
-
-type WalkerContext = {
- skip: () => void;
- remove: () => void;
- replace: (node: BaseNode) => void;
-};
-
-type WalkerHandler = (
- this: WalkerContext,
- node: BaseNode,
- parent: BaseNode,
- key: string,
- index: number
-) => void
-
-type Walker = {
- enter?: WalkerHandler;
- leave?: WalkerHandler;
-}
-
-export function walk(ast: BaseNode, { enter, leave }: Walker) {
- return visit(ast, null, enter, leave);
-}
-
-let should_skip = false;
-let should_remove = false;
-let replacement: BaseNode = null;
-const context: WalkerContext = {
- skip: () => should_skip = true,
- remove: () => should_remove = true,
- replace: (node: BaseNode) => replacement = node
-};
-
-function replace(parent: any, prop: string, index: number, node: BaseNode) {
- if (parent) {
- if (index !== null) {
- parent[prop][index] = node;
- } else {
- parent[prop] = node;
- }
- }
-}
-
-function remove(parent: any, prop: string, index: number) {
- if (parent) {
- if (index !== null) {
- parent[prop].splice(index, 1);
- } else {
- delete parent[prop];
- }
- }
-}
-
-function visit(
- node: BaseNode,
- parent: BaseNode,
- enter: WalkerHandler,
- leave: WalkerHandler,
- prop?: string,
- index?: number
-) {
- if (node) {
- if (enter) {
- const _should_skip = should_skip;
- const _should_remove = should_remove;
- const _replacement = replacement;
- should_skip = false;
- should_remove = false;
- replacement = null;
-
- enter.call(context, node, parent, prop, index);
-
- if (replacement) {
- node = replacement;
- replace(parent, prop, index, node);
- }
-
- if (should_remove) {
- remove(parent, prop, index);
- }
-
- const skipped = should_skip;
- const removed = should_remove;
-
- should_skip = _should_skip;
- should_remove = _should_remove;
- replacement = _replacement;
-
- if (skipped) return node;
- if (removed) return null;
- }
-
- for (const key in node) {
- const value = (node as any)[key];
-
- if (typeof value !== 'object') {
- continue;
- }
-
- else if (Array.isArray(value)) {
- for (let j = 0, k = 0; j < value.length; j += 1, k += 1) {
- if (value[j] !== null && typeof value[j].type === 'string') {
- if (!visit(value[j], node, enter, leave, key, k)) {
- // removed
- j--;
- }
- }
- }
- }
-
- else if (value !== null && typeof value.type === 'string') {
- visit(value, node, enter, leave, key, null);
- }
- }
-
- if (leave) {
- const _replacement = replacement;
- const _should_remove = should_remove;
- replacement = null;
- should_remove = false;
-
- leave.call(context, node, parent, prop, index);
-
- if (replacement) {
- node = replacement;
- replace(parent, prop, index, node);
- }
-
- if (should_remove) {
- remove(parent, prop, index);
- }
-
- const removed = should_remove;
-
- replacement = _replacement;
- should_remove = _should_remove;
-
- if (removed) return null;
- }
- }
-
- return node;
-}
diff --git a/node_modules/@rollup/pluginutils/node_modules/estree-walker/types/index.d.ts b/node_modules/@rollup/pluginutils/node_modules/estree-walker/types/index.d.ts
deleted file mode 100644
index 7540a907f0..0000000000
--- a/node_modules/@rollup/pluginutils/node_modules/estree-walker/types/index.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { BaseNode } from "estree";
-declare type WalkerContext = {
- skip: () => void;
- remove: () => void;
- replace: (node: BaseNode) => void;
-};
-declare type WalkerHandler = (this: WalkerContext, node: BaseNode, parent: BaseNode, key: string, index: number) => void;
-declare type Walker = {
- enter?: WalkerHandler;
- leave?: WalkerHandler;
-};
-export declare function walk(ast: BaseNode, { enter, leave }: Walker): BaseNode;
-export {};
diff --git a/node_modules/@rollup/pluginutils/package.json b/node_modules/@rollup/pluginutils/package.json
deleted file mode 100644
index 0f57f41929..0000000000
--- a/node_modules/@rollup/pluginutils/package.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "name": "@rollup/pluginutils",
- "version": "3.1.0",
- "publishConfig": {
- "access": "public"
- },
- "description": "A set of utility functions commonly used by Rollup plugins",
- "license": "MIT",
- "repository": "rollup/plugins",
- "author": "Rich Harris ",
- "homepage": "https://github.com/rollup/plugins/tree/master/packages/pluginutils#readme",
- "bugs": {
- "url": "https://github.com/rollup/plugins/issues"
- },
- "main": "./dist/cjs/index.js",
- "engines": {
- "node": ">= 8.0.0"
- },
- "scripts": {
- "build": "rollup -c",
- "ci:coverage": "nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov",
- "ci:lint": "pnpm run build && pnpm run lint",
- "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
- "ci:test": "pnpm run test -- --verbose",
- "lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
- "lint:docs": "prettier --single-quote --write README.md",
- "lint:js": "eslint --fix --cache src test types --ext .js,.ts",
- "lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
- "prebuild": "del-cli dist",
- "prepare": "pnpm run build",
- "prepublishOnly": "pnpm run lint && pnpm run build",
- "pretest": "pnpm run build -- --sourcemap",
- "test": "ava"
- },
- "files": [
- "dist",
- "types",
- "README.md",
- "LICENSE"
- ],
- "keywords": [
- "rollup",
- "plugin",
- "utils"
- ],
- "peerDependencies": {
- "rollup": "^1.20.0||^2.0.0"
- },
- "dependencies": {
- "@types/estree": "0.0.39",
- "estree-walker": "^1.0.1",
- "picomatch": "^2.2.2"
- },
- "devDependencies": {
- "@rollup/plugin-commonjs": "^11.0.2",
- "@rollup/plugin-node-resolve": "^7.1.1",
- "@rollup/plugin-typescript": "^3.0.0",
- "@types/jest": "^24.9.0",
- "@types/node": "^12.12.25",
- "@types/picomatch": "^2.2.1",
- "typescript": "^3.7.5"
- },
- "ava": {
- "compileEnhancements": false,
- "extensions": [
- "ts"
- ],
- "require": [
- "ts-node/register"
- ],
- "files": [
- "!**/fixtures/**",
- "!**/helpers/**",
- "!**/recipes/**",
- "!**/types.ts"
- ]
- },
- "exports": {
- "require": "./dist/cjs/index.js",
- "import": "./dist/es/index.js"
- },
- "module": "./dist/es/index.js",
- "nyc": {
- "extension": [
- ".js",
- ".ts"
- ]
- },
- "type": "commonjs",
- "types": "types/index.d.ts"
-}
diff --git a/node_modules/@rollup/pluginutils/types/index.d.ts b/node_modules/@rollup/pluginutils/types/index.d.ts
deleted file mode 100755
index 33d40e5097..0000000000
--- a/node_modules/@rollup/pluginutils/types/index.d.ts
+++ /dev/null
@@ -1,86 +0,0 @@
-// eslint-disable-next-line import/no-unresolved
-import { BaseNode } from 'estree';
-
-export interface AttachedScope {
- parent?: AttachedScope;
- isBlockScope: boolean;
- declarations: { [key: string]: boolean };
- addDeclaration(node: BaseNode, isBlockDeclaration: boolean, isVar: boolean): void;
- contains(name: string): boolean;
-}
-
-export interface DataToEsmOptions {
- compact?: boolean;
- indent?: string;
- namedExports?: boolean;
- objectShorthand?: boolean;
- preferConst?: boolean;
-}
-
-/**
- * A valid `minimatch` pattern, or array of patterns.
- */
-export type FilterPattern = ReadonlyArray | string | RegExp | null;
-
-/**
- * Adds an extension to a module ID if one does not exist.
- */
-export function addExtension(filename: string, ext?: string): string;
-
-/**
- * Attaches `Scope` objects to the relevant nodes of an AST.
- * Each `Scope` object has a `scope.contains(name)` method that returns `true`
- * if a given name is defined in the current scope or a parent scope.
- */
-export function attachScopes(ast: BaseNode, propertyName?: string): AttachedScope;
-
-/**
- * Constructs a filter function which can be used to determine whether or not
- * certain modules should be operated upon.
- * @param include If `include` is omitted or has zero length, filter will return `true` by default.
- * @param exclude ID must not match any of the `exclude` patterns.
- * @param options Optionally resolves the patterns against a directory other than `process.cwd()`.
- * If a `string` is specified, then the value will be used as the base directory.
- * Relative paths will be resolved against `process.cwd()` first.
- * If `false`, then the patterns will not be resolved against any directory.
- * This can be useful if you want to create a filter for virtual module names.
- */
-export function createFilter(
- include?: FilterPattern,
- exclude?: FilterPattern,
- options?: { resolve?: string | false | null }
-): (id: string | unknown) => boolean;
-
-/**
- * Transforms objects into tree-shakable ES Module imports.
- * @param data An object to transform into an ES module.
- */
-export function dataToEsm(data: unknown, options?: DataToEsmOptions): string;
-
-/**
- * Extracts the names of all assignment targets based upon specified patterns.
- * @param param An `acorn` AST Node.
- */
-export function extractAssignedNames(param: BaseNode): string[];
-
-/**
- * Constructs a bundle-safe identifier from a `string`.
- */
-export function makeLegalIdentifier(str: string): string;
-
-export type AddExtension = typeof addExtension;
-export type AttachScopes = typeof attachScopes;
-export type CreateFilter = typeof createFilter;
-export type ExtractAssignedNames = typeof extractAssignedNames;
-export type MakeLegalIdentifier = typeof makeLegalIdentifier;
-export type DataToEsm = typeof dataToEsm;
-
-declare const defaultExport: {
- addExtension: AddExtension;
- attachScopes: AttachScopes;
- createFilter: CreateFilter;
- dataToEsm: DataToEsm;
- extractAssignedNames: ExtractAssignedNames;
- makeLegalIdentifier: MakeLegalIdentifier;
-};
-export default defaultExport;
diff --git a/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/CHANGELOG.md b/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/CHANGELOG.md
index fbf20b5f1f..42cfcbcae9 100755
--- a/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/CHANGELOG.md
+++ b/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/CHANGELOG.md
@@ -1,5 +1,17 @@
# @rollup/pluginutils ChangeLog
+## v4.1.1
+
+_2021-07-16_
+
+### Bugfixes
+
+- fix
+
+### Updates
+
+- chore
+
## v4.1.0
_2020-10-27_
@@ -354,4 +366,4 @@ _2015-10-24_
_2015-10-24_
-- First release
+- First release
\ No newline at end of file
diff --git a/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/LICENSE b/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/LICENSE
deleted file mode 100644
index 5e46702cbd..0000000000
--- a/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/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/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/dist/cjs/index.js b/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/dist/cjs/index.js
index 5d7024cc81..f1f0bfd523 100644
--- a/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/dist/cjs/index.js
+++ b/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/dist/cjs/index.js
@@ -303,7 +303,7 @@ function ensureArray(thing) {
return [thing];
}
-const normalizePath = function (filename) {
+const normalizePath = function normalizePath(filename) {
return filename.split(path.win32.sep).join(path.posix.sep);
};
diff --git a/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/dist/es/index.js b/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/dist/es/index.js
index d1478a42e7..a67f9f0c35 100644
--- a/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/dist/es/index.js
+++ b/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/dist/es/index.js
@@ -295,7 +295,7 @@ function ensureArray(thing) {
return [thing];
}
-const normalizePath = function (filename) {
+const normalizePath = function normalizePath(filename) {
return filename.split(win32.sep).join(posix.sep);
};
diff --git a/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/package.json b/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/package.json
index d6e704a782..c08bde8b80 100644
--- a/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/package.json
+++ b/node_modules/@web/rollup-plugin-import-meta-assets/node_modules/@rollup/pluginutils/package.json
@@ -1,12 +1,15 @@
{
"name": "@rollup/pluginutils",
- "version": "4.1.0",
+ "version": "4.1.1",
"publishConfig": {
"access": "public"
},
"description": "A set of utility functions commonly used by Rollup plugins",
"license": "MIT",
- "repository": "rollup/plugins",
+ "repository": {
+ "url": "rollup/plugins",
+ "directory": "packages/pluginutils"
+ },
"author": "Rich Harris ",
"homepage": "https://github.com/rollup/plugins/tree/master/packages/pluginutils#readme",
"bugs": {
@@ -24,19 +27,17 @@
},
"scripts": {
"build": "rollup -c",
- "ci:coverage": "nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov",
- "ci:lint": "pnpm run build && pnpm run lint",
+ "ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
+ "ci:lint": "pnpm build && pnpm lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
- "ci:test": "pnpm run test -- --verbose",
- "lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
- "lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
- "lint:js": "eslint --fix --cache src test types --ext .js,.ts",
- "lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
+ "ci:test": "pnpm test -- --verbose",
"prebuild": "del-cli dist",
- "prepare": "pnpm run build",
- "prepublishOnly": "pnpm run lint && pnpm run build",
- "pretest": "pnpm run build -- --sourcemap",
- "test": "ava"
+ "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi",
+ "prerelease": "pnpm build",
+ "pretest": "pnpm build -- --sourcemap",
+ "release": "pnpm plugin:release --workspace-root -- --pkg $npm_package_name",
+ "test": "ava",
+ "test:ts": "tsc --noEmit"
},
"files": [
"dist",
@@ -49,9 +50,6 @@
"plugin",
"utils"
],
- "peerDependencies": {
- "rollup": "^1.20.0||^2.0.0"
- },
"dependencies": {
"estree-walker": "^2.0.1",
"picomatch": "^2.2.2"
@@ -64,7 +62,8 @@
"@types/node": "^14.0.26",
"@types/picomatch": "^2.2.1",
"acorn": "^8.0.4",
- "rollup": "^2.23.0"
+ "rollup": "^2.23.0",
+ "typescript": "^4.1.2"
},
"types": "types/index.d.ts",
"ava": {
diff --git a/node_modules/commondir/LICENSE b/node_modules/commondir/LICENSE
deleted file mode 100644
index 3d59c73309..0000000000
--- a/node_modules/commondir/LICENSE
+++ /dev/null
@@ -1,24 +0,0 @@
-The MIT License
-
-Copyright (c) 2013 James Halliday (mail@substack.net)
-
-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.
\ No newline at end of file
diff --git a/node_modules/commondir/example/dir.js b/node_modules/commondir/example/dir.js
deleted file mode 100644
index e86a346484..0000000000
--- a/node_modules/commondir/example/dir.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var commondir = require('../');
-var dir = commondir(process.argv.slice(2));
-console.log(dir);
diff --git a/node_modules/commondir/index.js b/node_modules/commondir/index.js
deleted file mode 100644
index fa77d0452a..0000000000
--- a/node_modules/commondir/index.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var path = require('path');
-
-module.exports = function (basedir, relfiles) {
- if (relfiles) {
- var files = relfiles.map(function (r) {
- return path.resolve(basedir, r);
- });
- }
- else {
- var files = basedir;
- }
-
- var res = files.slice(1).reduce(function (ps, file) {
- if (!file.match(/^([A-Za-z]:)?\/|\\/)) {
- throw new Error('relative path without a basedir');
- }
-
- var xs = file.split(/\/+|\\+/);
- for (
- var i = 0;
- ps[i] === xs[i] && i < Math.min(ps.length, xs.length);
- i++
- );
- return ps.slice(0, i);
- }, files[0].split(/\/+|\\+/));
-
- // Windows correctly handles paths with forward-slashes
- return res.length > 1 ? res.join('/') : '/'
-};
diff --git a/node_modules/commondir/package.json b/node_modules/commondir/package.json
deleted file mode 100644
index 7320d956c3..0000000000
--- a/node_modules/commondir/package.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "commondir",
- "version": "1.0.1",
- "description": "compute the closest common parent for file paths",
- "main": "index.js",
- "dependencies": {},
- "devDependencies": {
- "tape": "^3.5.0"
- },
- "scripts": {
- "test": "tape test/*.js"
- },
- "repository": {
- "type": "git",
- "url": "http://github.com/substack/node-commondir.git"
- },
- "keywords": [
- "common",
- "path",
- "directory",
- "file",
- "parent",
- "root"
- ],
- "author": {
- "name": "James Halliday",
- "email": "mail@substack.net",
- "url": "http://substack.net"
- },
- "license": "MIT",
- "engine": {
- "node": ">=0.4"
- }
-}
diff --git a/node_modules/commondir/readme.markdown b/node_modules/commondir/readme.markdown
deleted file mode 100644
index 6c20607f49..0000000000
--- a/node_modules/commondir/readme.markdown
+++ /dev/null
@@ -1,48 +0,0 @@
-# commondir
-
-compute the closest common parent directory among an array of directories
-
-# example
-
-``` js
-var commondir = require('commondir');
-var dir = commondir(process.argv.slice(2))
-console.log(dir);
-```
-
-output:
-
-```
-$ node dir.js /x/y/z /x/y /x/y/w/q
-/x/y
-$ node ../baz ../../foo/quux ./bizzy
-/foo
-```
-
-# methods
-
-``` js
-var commondir = require('commondir');
-```
-
-## commondir(absolutePaths)
-
-Compute the closest common parent directory for an array `absolutePaths`.
-
-## commondir(basedir, relativePaths)
-
-Compute the closest common parent directory for an array `relativePaths` which
-will be resolved for each `dir` in `relativePaths` according to:
-`path.resolve(basedir, dir)`.
-
-# install
-
-With [npm](https://npmjs.org) do:
-
-```
-npm install commondir
-```
-
-# license
-
-MIT
diff --git a/node_modules/commondir/test/dirs.js b/node_modules/commondir/test/dirs.js
deleted file mode 100644
index 7e55c9bb8b..0000000000
--- a/node_modules/commondir/test/dirs.js
+++ /dev/null
@@ -1,55 +0,0 @@
-var test = require('tape');
-var commondir = require('../');
-
-test('common', function (t) {
- t.equal(
- commondir([ '/foo', '//foo/bar', '/foo//bar/baz' ]),
- '/foo'
- );
- t.equal(
- commondir([ '/a/b/c', '/a/b', '/a/b/c/d/e' ]),
- '/a/b'
- );
- t.equal(
- commondir([ '/x/y/z/w', '/xy/z', '/x/y/z' ]),
- '/'
- );
- t.equal(
- commondir([ 'X:\\foo', 'X:\\\\foo\\bar', 'X://foo/bar/baz' ]),
- 'X:/foo'
- );
- t.equal(
- commondir([ 'X:\\a\\b\\c', 'X:\\a\\b', 'X:\\a\\b\\c\\d\\e' ]),
- 'X:/a/b'
- );
- t.equal(
- commondir([ 'X:\\x\\y\\z\\w', '\\\\xy\\z', '\\x\\y\\z' ]),
- '/'
- );
- t.throws(function () {
- commondir([ '/x/y/z/w', 'qrs', '/x/y/z' ]);
- });
- t.end();
-});
-
-test('base', function (t) {
- t.equal(
- commondir('/foo/bar', [ 'baz', './quux', '../bar/bazzy' ]),
- '/foo/bar'
- );
- t.equal(
- commondir('/a/b', [ 'c', '../b/.', '../../a/b/e' ]),
- '/a/b'
- );
- t.equal(
- commondir('/a/b/c', [ '..', '../d', '../../a/z/e' ]),
- '/a'
- );
- t.equal(
- commondir('/foo/bar', [ 'baz', '.\\quux', '..\\bar\\bazzy' ]),
- '/foo/bar'
- );
- // Tests including X:\ basedirs must wait until path.resolve supports
- // Windows-style paths, starting in Node.js v0.5.X
- t.end();
-});
diff --git a/node_modules/fsevents/LICENSE b/node_modules/fsevents/LICENSE
deleted file mode 100644
index 5d70441c37..0000000000
--- a/node_modules/fsevents/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
------------
-
-Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
-
-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/fsevents/README.md b/node_modules/fsevents/README.md
deleted file mode 100644
index 025c9a13e9..0000000000
--- a/node_modules/fsevents/README.md
+++ /dev/null
@@ -1,83 +0,0 @@
-# fsevents [](https://nodei.co/npm/fsevents/)
-
-Native access to MacOS FSEvents in [Node.js](https://nodejs.org/)
-
-The FSEvents API in MacOS allows applications to register for notifications of
-changes to a given directory tree. It is a very fast and lightweight alternative
-to kqueue.
-
-This is a low-level library. For a cross-platform file watching module that
-uses fsevents, check out [Chokidar](https://github.com/paulmillr/chokidar).
-
-## Installation
-
-Supports only **Node.js v8.16 and higher**.
-
-```sh
-npm install fsevents
-```
-
-## Usage
-
-```js
-const fsevents = require('fsevents');
-const stop = fsevents.watch(__dirname, (path, flags, id) => {
- const info = fsevents.getInfo(path, flags, id);
-}); // To start observation
-stop(); // To end observation
-```
-
-The callback passed as the second parameter to `.watch` get's called whenever the operating system detects a
-a change in the file system. It takes three arguments:
-
-###### `fsevents.watch(dirname: string, (path: string, flags: number, id: string) => void): () => Promise`
-
- * `path: string` - the item in the filesystem that have been changed
- * `flags: number` - a numeric value describing what the change was
- * `id: string` - an unique-id identifying this specific event
-
- Returns closer callback which when called returns a Promise resolving when the watcher process has been shut down.
-
-###### `fsevents.getInfo(path: string, flags: number, id: string): FsEventInfo`
-
-The `getInfo` function takes the `path`, `flags` and `id` arguments and converts those parameters into a structure
-that is easier to digest to determine what the change was.
-
-The `FsEventsInfo` has the following shape:
-
-```js
-/**
- * @typedef {'created'|'modified'|'deleted'|'moved'|'root-changed'|'cloned'|'unknown'} FsEventsEvent
- * @typedef {'file'|'directory'|'symlink'} FsEventsType
- */
-{
- "event": "created", // {FsEventsEvent}
- "path": "file.txt",
- "type": "file", // {FsEventsType}
- "changes": {
- "inode": true, // Had iNode Meta-Information changed
- "finder": false, // Had Finder Meta-Data changed
- "access": false, // Had access permissions changed
- "xattrs": false // Had xAttributes changed
- },
- "flags": 0x100000000
-}
-```
-
-## Changelog
-
-- v2.3 supports Apple Silicon ARM CPUs
-- v2 supports node 8.16+ and reduces package size massively
-- v1.2.8 supports node 6+
-- v1.2.7 supports node 4+
-
-## Troubleshooting
-
-- I'm getting `EBADPLATFORM` `Unsupported platform for fsevents` error.
-- It's fine, nothing is broken. fsevents is macos-only. Other platforms are skipped. If you want to hide this warning, report a bug to NPM bugtracker asking them to hide ebadplatform warnings by default.
-
-## License
-
-The MIT License Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller — see LICENSE file.
-
-Visit our [GitHub page](https://github.com/fsevents/fsevents) and [NPM Page](https://npmjs.org/package/fsevents)
diff --git a/node_modules/fsevents/fsevents.d.ts b/node_modules/fsevents/fsevents.d.ts
deleted file mode 100644
index 2723c048a8..0000000000
--- a/node_modules/fsevents/fsevents.d.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-declare type Event = "created" | "cloned" | "modified" | "deleted" | "moved" | "root-changed" | "unknown";
-declare type Type = "file" | "directory" | "symlink";
-declare type FileChanges = {
- inode: boolean;
- finder: boolean;
- access: boolean;
- xattrs: boolean;
-};
-declare type Info = {
- event: Event;
- path: string;
- type: Type;
- changes: FileChanges;
- flags: number;
-};
-declare type WatchHandler = (path: string, flags: number, id: string) => void;
-export declare function watch(path: string, handler: WatchHandler): () => Promise;
-export declare function watch(path: string, since: number, handler: WatchHandler): () => Promise;
-export declare function getInfo(path: string, flags: number): Info;
-export declare const constants: {
- None: 0x00000000;
- MustScanSubDirs: 0x00000001;
- UserDropped: 0x00000002;
- KernelDropped: 0x00000004;
- EventIdsWrapped: 0x00000008;
- HistoryDone: 0x00000010;
- RootChanged: 0x00000020;
- Mount: 0x00000040;
- Unmount: 0x00000080;
- ItemCreated: 0x00000100;
- ItemRemoved: 0x00000200;
- ItemInodeMetaMod: 0x00000400;
- ItemRenamed: 0x00000800;
- ItemModified: 0x00001000;
- ItemFinderInfoMod: 0x00002000;
- ItemChangeOwner: 0x00004000;
- ItemXattrMod: 0x00008000;
- ItemIsFile: 0x00010000;
- ItemIsDir: 0x00020000;
- ItemIsSymlink: 0x00040000;
- ItemIsHardlink: 0x00100000;
- ItemIsLastHardlink: 0x00200000;
- OwnEvent: 0x00080000;
- ItemCloned: 0x00400000;
-};
-export {};
diff --git a/node_modules/fsevents/fsevents.js b/node_modules/fsevents/fsevents.js
deleted file mode 100644
index f1b31c9530..0000000000
--- a/node_modules/fsevents/fsevents.js
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- ** © 2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
- ** Licensed under MIT License.
- */
-
-/* jshint node:true */
-"use strict";
-
-if (process.platform !== "darwin") {
- throw new Error(`Module 'fsevents' is not compatible with platform '${process.platform}'`);
-}
-
-const Native = require("./fsevents.node");
-const events = Native.constants;
-
-function watch(path, since, handler) {
- if (typeof path !== "string") {
- throw new TypeError(`fsevents argument 1 must be a string and not a ${typeof path}`);
- }
- if ("function" === typeof since && "undefined" === typeof handler) {
- handler = since;
- since = Native.flags.SinceNow;
- }
- if (typeof since !== "number") {
- throw new TypeError(`fsevents argument 2 must be a number and not a ${typeof since}`);
- }
- if (typeof handler !== "function") {
- throw new TypeError(`fsevents argument 3 must be a function and not a ${typeof handler}`);
- }
-
- let instance = Native.start(Native.global, path, since, handler);
- if (!instance) throw new Error(`could not watch: ${path}`);
- return () => {
- const result = instance ? Promise.resolve(instance).then(Native.stop) : Promise.resolve(undefined);
- instance = undefined;
- return result;
- };
-}
-
-function getInfo(path, flags) {
- return {
- path,
- flags,
- event: getEventType(flags),
- type: getFileType(flags),
- changes: getFileChanges(flags),
- };
-}
-
-function getFileType(flags) {
- if (events.ItemIsFile & flags) return "file";
- if (events.ItemIsDir & flags) return "directory";
- if (events.ItemIsSymlink & flags) return "symlink";
-}
-function anyIsTrue(obj) {
- for (let key in obj) {
- if (obj[key]) return true;
- }
- return false;
-}
-function getEventType(flags) {
- if (events.ItemRemoved & flags) return "deleted";
- if (events.ItemRenamed & flags) return "moved";
- if (events.ItemCreated & flags) return "created";
- if (events.ItemModified & flags) return "modified";
- if (events.RootChanged & flags) return "root-changed";
- if (events.ItemCloned & flags) return "cloned";
- if (anyIsTrue(flags)) return "modified";
- return "unknown";
-}
-function getFileChanges(flags) {
- return {
- inode: !!(events.ItemInodeMetaMod & flags),
- finder: !!(events.ItemFinderInfoMod & flags),
- access: !!(events.ItemChangeOwner & flags),
- xattrs: !!(events.ItemXattrMod & flags),
- };
-}
-
-exports.watch = watch;
-exports.getInfo = getInfo;
-exports.constants = events;
diff --git a/node_modules/fsevents/fsevents.node b/node_modules/fsevents/fsevents.node
deleted file mode 100755
index 00fac7e88b..0000000000
Binary files a/node_modules/fsevents/fsevents.node and /dev/null differ
diff --git a/node_modules/fsevents/package.json b/node_modules/fsevents/package.json
deleted file mode 100644
index 0cadf5714d..0000000000
--- a/node_modules/fsevents/package.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "name": "fsevents",
- "version": "2.3.2",
- "description": "Native Access to MacOS FSEvents",
- "main": "fsevents.js",
- "types": "fsevents.d.ts",
- "os": [
- "darwin"
- ],
- "files": [
- "fsevents.d.ts",
- "fsevents.js",
- "fsevents.node"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- },
- "scripts": {
- "clean": "node-gyp clean && rm -f fsevents.node",
- "build": "node-gyp clean && rm -f fsevents.node && node-gyp rebuild && node-gyp clean",
- "test": "/bin/bash ./test.sh 2>/dev/null",
- "prepublishOnly": "npm run build"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/fsevents/fsevents.git"
- },
- "keywords": [
- "fsevents",
- "mac"
- ],
- "contributors": [
- {
- "name": "Philipp Dunkel",
- "email": "pip@pipobscure.com"
- },
- {
- "name": "Ben Noordhuis",
- "email": "info@bnoordhuis.nl"
- },
- {
- "name": "Elan Shankar",
- "email": "elan.shanker@gmail.com"
- },
- {
- "name": "Miroslav Bajto\u0161",
- "email": "mbajtoss@gmail.com"
- },
- {
- "name": "Paul Miller",
- "url": "https://paulmillr.com"
- }
- ],
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/fsevents/fsevents/issues"
- },
- "homepage": "https://github.com/fsevents/fsevents",
- "devDependencies": {
- "node-gyp": "^6.1.0"
- }
-}
diff --git a/node_modules/is-reference/CHANGELOG.md b/node_modules/is-reference/CHANGELOG.md
deleted file mode 100644
index ce00a26d28..0000000000
--- a/node_modules/is-reference/CHANGELOG.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# is-reference changelog
-
-## 1.2.1
-
-* Relax version range for `@types/estree`
-
-## 1.2.0
-
-* Handle class fields ([#](https://github.com/Rich-Harris/is-reference/pull/8))
-
-## 1.1.4
-
-* Disregarded imported specifiers if they differ from local specifiers
-
-## 1.1.3
-
-* Handle expressions without a Program
-
-## 1.1.2
-
-* Ignore labels in break/continue statements ([#4](https://github.com/Rich-Harris/is-reference/pull/4))
-
-## 1.1.1
-
-* Prevent false positives with labeled statements
-
-## 1.1.0
-
-* Rewrite in TypeScript, add declarations
-
-## 1.0.1
-
-* Ensure `isReference` returns a boolean
-
-## 1.0.0
-
-* First release
diff --git a/node_modules/is-reference/README.md b/node_modules/is-reference/README.md
deleted file mode 100644
index 1989fca5bb..0000000000
--- a/node_modules/is-reference/README.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# is-reference
-
-Utility for determining whether an AST node is a reference.
-
-`foo` is a reference in these cases:
-
-```js
-console.log( foo );
-var foo;
-function foo () {}
-function bar ( foo ) {}
-export { foo as x };
-```
-
-`foo` is *not* a reference in these cases:
-
-```js
-var obj = { foo: 1 };
-console.log( obj.foo );
-export { x as foo };
-```
-
-In all cases, `foo` is an `Identifier` node, but the two kinds must be treated differently for the purposes of scope analysis etc. (The examples are non-exhaustive.)
-
-
-## Installation
-
-```bash
-npm install is-reference
-```
-
-
-## Usage
-
-Example using [Acorn](https://github.com/ternjs/acorn) and [estree-walker](https://github.com/Rich-Harris/estree-walker):
-
-```js
-const { parse } = require( 'acorn' );
-const { walk } = require( 'estree-walker' );
-const isReference = require( 'is-reference' );
-
-const identifiers = [];
-const references = [];
-
-const ast = parse( `var a = b.c;` );
-
-walk( ast, {
- enter ( node, parent ) {
- if ( node.type === 'Identifier' ) identifiers.push( node );
- if ( isReference( node, parent ) ) references.push( node );
- }
-});
-
-identifiers.forEach( node => console.log( node.name ) ); // a, b, c
-references.forEach( node => console.log( node.name ) ); // a, b
-```
-
-
-## License
-
-MIT
diff --git a/node_modules/is-reference/dist/is-reference.es.js b/node_modules/is-reference/dist/is-reference.es.js
deleted file mode 100644
index 6b26a4c0b4..0000000000
--- a/node_modules/is-reference/dist/is-reference.es.js
+++ /dev/null
@@ -1,31 +0,0 @@
-function isReference(node, parent) {
- if (node.type === 'MemberExpression') {
- return !node.computed && isReference(node.object, node);
- }
- if (node.type === 'Identifier') {
- if (!parent)
- return true;
- switch (parent.type) {
- // disregard `bar` in `foo.bar`
- case 'MemberExpression': return parent.computed || node === parent.object;
- // disregard the `foo` in `class {foo(){}}` but keep it in `class {[foo](){}}`
- case 'MethodDefinition': return parent.computed;
- // disregard the `foo` in `class {foo=bar}` but keep it in `class {[foo]=bar}` and `class {bar=foo}`
- case 'FieldDefinition': return parent.computed || node === parent.value;
- // disregard the `bar` in `{ bar: foo }`, but keep it in `{ [bar]: foo }`
- case 'Property': return parent.computed || node === parent.value;
- // disregard the `bar` in `export { foo as bar }` or
- // the foo in `import { foo as bar }`
- case 'ExportSpecifier':
- case 'ImportSpecifier': return node === parent.local;
- // disregard the `foo` in `foo: while (...) { ... break foo; ... continue foo;}`
- case 'LabeledStatement':
- case 'BreakStatement':
- case 'ContinueStatement': return false;
- default: return true;
- }
- }
- return false;
-}
-
-export default isReference;
diff --git a/node_modules/is-reference/dist/is-reference.js b/node_modules/is-reference/dist/is-reference.js
deleted file mode 100644
index 28ca76e1b1..0000000000
--- a/node_modules/is-reference/dist/is-reference.js
+++ /dev/null
@@ -1,39 +0,0 @@
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
- typeof define === 'function' && define.amd ? define(factory) :
- (global = global || self, global.isReference = factory());
-}(this, (function () { 'use strict';
-
- function isReference(node, parent) {
- if (node.type === 'MemberExpression') {
- return !node.computed && isReference(node.object, node);
- }
- if (node.type === 'Identifier') {
- if (!parent)
- return true;
- switch (parent.type) {
- // disregard `bar` in `foo.bar`
- case 'MemberExpression': return parent.computed || node === parent.object;
- // disregard the `foo` in `class {foo(){}}` but keep it in `class {[foo](){}}`
- case 'MethodDefinition': return parent.computed;
- // disregard the `foo` in `class {foo=bar}` but keep it in `class {[foo]=bar}` and `class {bar=foo}`
- case 'FieldDefinition': return parent.computed || node === parent.value;
- // disregard the `bar` in `{ bar: foo }`, but keep it in `{ [bar]: foo }`
- case 'Property': return parent.computed || node === parent.value;
- // disregard the `bar` in `export { foo as bar }` or
- // the foo in `import { foo as bar }`
- case 'ExportSpecifier':
- case 'ImportSpecifier': return node === parent.local;
- // disregard the `foo` in `foo: while (...) { ... break foo; ... continue foo;}`
- case 'LabeledStatement':
- case 'BreakStatement':
- case 'ContinueStatement': return false;
- default: return true;
- }
- }
- return false;
- }
-
- return isReference;
-
-})));
diff --git a/node_modules/is-reference/dist/types/index.d.ts b/node_modules/is-reference/dist/types/index.d.ts
deleted file mode 100644
index c33283257b..0000000000
--- a/node_modules/is-reference/dist/types/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { Node } from 'estree';
-export default function isReference(node: Node, parent: Node): boolean;
diff --git a/node_modules/is-reference/package.json b/node_modules/is-reference/package.json
deleted file mode 100644
index 66f0c06467..0000000000
--- a/node_modules/is-reference/package.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "name": "is-reference",
- "version": "1.2.1",
- "description": "Determine whether an AST node is a reference",
- "main": "dist/is-reference.js",
- "module": "dist/is-reference.es.js",
- "types": "dist/types/index.d.ts",
- "files": [
- "dist/*.js",
- "dist/types/**/*.d.ts"
- ],
- "scripts": {
- "test": "mocha",
- "build": "rollup -c && tsc --emitDeclarationOnly",
- "pretest": "npm run build",
- "prepare": "npm run build",
- "prepublishOnly": "npm test"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/Rich-Harris/is-reference.git"
- },
- "keywords": [
- "ast",
- "javascript",
- "estree",
- "acorn"
- ],
- "author": "Rich Harris",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/Rich-Harris/is-reference/issues"
- },
- "homepage": "https://github.com/Rich-Harris/is-reference#readme",
- "dependencies": {
- "@types/estree": "*"
- },
- "devDependencies": {
- "acorn": "^7.2.0",
- "acorn-class-fields": "^0.3.2",
- "acorn-static-class-features": "^0.2.1",
- "estree-walker": "^2.0.1",
- "mocha": "^7.1.2",
- "rollup": "^2.10.3",
- "rollup-plugin-typescript": "^1.0.1",
- "tslib": "^2.0.0",
- "typescript": "^3.9.2"
- }
-}
diff --git a/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/CHANGELOG.md b/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/CHANGELOG.md
index fbf20b5f1f..42cfcbcae9 100755
--- a/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/CHANGELOG.md
+++ b/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/CHANGELOG.md
@@ -1,5 +1,17 @@
# @rollup/pluginutils ChangeLog
+## v4.1.1
+
+_2021-07-16_
+
+### Bugfixes
+
+- fix
+
+### Updates
+
+- chore
+
## v4.1.0
_2020-10-27_
@@ -354,4 +366,4 @@ _2015-10-24_
_2015-10-24_
-- First release
+- First release
\ No newline at end of file
diff --git a/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/LICENSE b/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/LICENSE
deleted file mode 100644
index 5e46702cbd..0000000000
--- a/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/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/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/dist/cjs/index.js b/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/dist/cjs/index.js
index 5d7024cc81..f1f0bfd523 100644
--- a/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/dist/cjs/index.js
+++ b/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/dist/cjs/index.js
@@ -303,7 +303,7 @@ function ensureArray(thing) {
return [thing];
}
-const normalizePath = function (filename) {
+const normalizePath = function normalizePath(filename) {
return filename.split(path.win32.sep).join(path.posix.sep);
};
diff --git a/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/dist/es/index.js b/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/dist/es/index.js
index d1478a42e7..a67f9f0c35 100644
--- a/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/dist/es/index.js
+++ b/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/dist/es/index.js
@@ -295,7 +295,7 @@ function ensureArray(thing) {
return [thing];
}
-const normalizePath = function (filename) {
+const normalizePath = function normalizePath(filename) {
return filename.split(win32.sep).join(posix.sep);
};
diff --git a/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/package.json b/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/package.json
index d6e704a782..c08bde8b80 100644
--- a/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/package.json
+++ b/node_modules/rollup-plugin-minify-html-template-literals/node_modules/@rollup/pluginutils/package.json
@@ -1,12 +1,15 @@
{
"name": "@rollup/pluginutils",
- "version": "4.1.0",
+ "version": "4.1.1",
"publishConfig": {
"access": "public"
},
"description": "A set of utility functions commonly used by Rollup plugins",
"license": "MIT",
- "repository": "rollup/plugins",
+ "repository": {
+ "url": "rollup/plugins",
+ "directory": "packages/pluginutils"
+ },
"author": "Rich Harris ",
"homepage": "https://github.com/rollup/plugins/tree/master/packages/pluginutils#readme",
"bugs": {
@@ -24,19 +27,17 @@
},
"scripts": {
"build": "rollup -c",
- "ci:coverage": "nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov",
- "ci:lint": "pnpm run build && pnpm run lint",
+ "ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
+ "ci:lint": "pnpm build && pnpm lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
- "ci:test": "pnpm run test -- --verbose",
- "lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
- "lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
- "lint:js": "eslint --fix --cache src test types --ext .js,.ts",
- "lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
+ "ci:test": "pnpm test -- --verbose",
"prebuild": "del-cli dist",
- "prepare": "pnpm run build",
- "prepublishOnly": "pnpm run lint && pnpm run build",
- "pretest": "pnpm run build -- --sourcemap",
- "test": "ava"
+ "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi",
+ "prerelease": "pnpm build",
+ "pretest": "pnpm build -- --sourcemap",
+ "release": "pnpm plugin:release --workspace-root -- --pkg $npm_package_name",
+ "test": "ava",
+ "test:ts": "tsc --noEmit"
},
"files": [
"dist",
@@ -49,9 +50,6 @@
"plugin",
"utils"
],
- "peerDependencies": {
- "rollup": "^1.20.0||^2.0.0"
- },
"dependencies": {
"estree-walker": "^2.0.1",
"picomatch": "^2.2.2"
@@ -64,7 +62,8 @@
"@types/node": "^14.0.26",
"@types/picomatch": "^2.2.1",
"acorn": "^8.0.4",
- "rollup": "^2.23.0"
+ "rollup": "^2.23.0",
+ "typescript": "^4.1.2"
},
"types": "types/index.d.ts",
"ava": {
diff --git a/node_modules/socket.io/node_modules/@types/node/README.md b/node_modules/socket.io/node_modules/@types/node/README.md
index f80d6ae601..b4c9da0750 100755
--- a/node_modules/socket.io/node_modules/@types/node/README.md
+++ b/node_modules/socket.io/node_modules/@types/node/README.md
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v14.
### Additional Details
- * Last updated: Wed, 07 Jul 2021 16:31:30 GMT
+ * Last updated: Sat, 24 Jul 2021 17:31:17 GMT
* Dependencies: none
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
diff --git a/node_modules/socket.io/node_modules/@types/node/http.d.ts b/node_modules/socket.io/node_modules/@types/node/http.d.ts
index 8adf5dea77..7491b6ec52 100755
--- a/node_modules/socket.io/node_modules/@types/node/http.d.ts
+++ b/node_modules/socket.io/node_modules/@types/node/http.d.ts
@@ -196,7 +196,7 @@ declare module 'http' {
// https://github.com/nodejs/node/blob/master/test/parallel/test-http-write-callbacks.js#L53
// no args in writeContinue callback
writeContinue(callback?: () => void): void;
- writeHead(statusCode: number, reasonPhrase?: string, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
+ writeHead(statusCode: number, statusMessage?: string, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
writeProcessing(): void;
}
diff --git a/node_modules/socket.io/node_modules/@types/node/package.json b/node_modules/socket.io/node_modules/@types/node/package.json
index 18dd819143..0f4ba20e8c 100755
--- a/node_modules/socket.io/node_modules/@types/node/package.json
+++ b/node_modules/socket.io/node_modules/@types/node/package.json
@@ -1,6 +1,6 @@
{
"name": "@types/node",
- "version": "14.17.5",
+ "version": "14.17.6",
"description": "TypeScript definitions for Node.js",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
"license": "MIT",
@@ -232,6 +232,6 @@
},
"scripts": {},
"dependencies": {},
- "typesPublisherContentHash": "04de04a76a30bbc24c69f408240104930a488859acd22894ff1a96513840bde0",
+ "typesPublisherContentHash": "b15faea838f36d71d94beffebbfdb5e348698036a62d69d39fbbd53a822be6c9",
"typeScriptVersion": "3.6"
}
diff --git a/node_modules/table/node_modules/ajv/dist/compile/errors.js b/node_modules/table/node_modules/ajv/dist/compile/errors.js
index 0dcf28bc5c..27b2091762 100644
--- a/node_modules/table/node_modules/ajv/dist/compile/errors.js
+++ b/node_modules/table/node_modules/ajv/dist/compile/errors.js
@@ -5,7 +5,7 @@ const codegen_1 = require("./codegen");
const util_1 = require("./util");
const names_1 = require("./names");
exports.keywordError = {
- message: ({ keyword }) => codegen_1.str `should pass "${keyword}" keyword validation`,
+ message: ({ keyword }) => codegen_1.str `must pass "${keyword}" keyword validation`,
};
exports.keyword$DataError = {
message: ({ keyword, schemaType }) => schemaType
diff --git a/node_modules/table/node_modules/ajv/dist/compile/errors.js.map b/node_modules/table/node_modules/ajv/dist/compile/errors.js.map
index a6c10309d1..997f2f11b2 100644
--- a/node_modules/table/node_modules/ajv/dist/compile/errors.js.map
+++ b/node_modules/table/node_modules/ajv/dist/compile/errors.js.map
@@ -1 +1 @@
-{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../lib/compile/errors.ts"],"names":[],"mappings":";;;AAEA,uCAAgE;AAEhE,iCAAyC;AACzC,mCAAuB;AAEV,QAAA,YAAY,GAA2B;IAClD,OAAO,EAAE,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE,CAAC,aAAG,CAAA,gBAAgB,OAAO,sBAAsB;CACzE,CAAA;AAEY,QAAA,iBAAiB,GAA2B;IACvD,OAAO,EAAE,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC,EAAE,EAAE,CACjC,UAAU;QACR,CAAC,CAAC,aAAG,CAAA,IAAI,OAAO,qBAAqB,UAAU,UAAU;QACzD,CAAC,CAAC,aAAG,CAAA,IAAI,OAAO,8BAA8B;CACnD,CAAA;AAQD,SAAgB,WAAW,CACzB,GAAoB,EACpB,QAAgC,oBAAY,EAC5C,UAAuB,EACvB,iBAA2B;IAE3B,MAAM,EAAC,EAAE,EAAC,GAAG,GAAG,CAAA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E,OAAO,CAAC,EACpB,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,WAAC,CAAA,IAAI,CAAC,CACxE,CAAA;IACD,IAAI,IAAI,CAAC,QAAQ,EAAE;QACjB,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;KACnF;IACD,IAAI,IAAI,CAAC,OAAO,EAAE;QAChB,SAAS,CAAC,IAAI,CACZ,CAAC,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,EACvB,CAAC,CAAC,CAAC,YAAY,EAAE,WAAC,CAAA,GAAG,YAAY,GAAG,UAAU,EAAE,CAAC,EACjD,CAAC,eAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CACf,CAAA;KACF;IACD,IAAI,YAAY;QAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAA;AAClE,CAAC"}
\ No newline at end of file
diff --git a/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js b/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js
index 69f0f563c7..7ca512d439 100644
--- a/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js
+++ b/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js
@@ -180,7 +180,7 @@ function serializeType(cxt) {
serializeString(cxt);
break;
case "timestamp":
- gen.if(codegen_1._ `${data} instanceof Date`, () => gen.add(names_1.default.json, codegen_1._ `${data}.toISOString()`), () => serializeString(cxt));
+ gen.if(codegen_1._ `${data} instanceof Date`, () => gen.add(names_1.default.json, codegen_1._ `'"' + ${data}.toISOString() + '"'`), () => serializeString(cxt));
break;
default:
serializeNumber(cxt);
diff --git a/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js.map b/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js.map
index b3b9c305fb..4f7bf5d9b0 100644
--- a/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js.map
+++ b/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js.map
@@ -1 +1 @@
-{"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../lib/compile/jtd/serialize.ts"],"names":[],"mappings":";;AAEA,mCAA0D;AAC1D,0BAAgD;AAChD,wCAAwE;AACxE,4CAA0C;AAC1C,oCAAwB;AACxB,kDAAqD;AACrD,oDAAiD;AACjD,kCAA+B;AAC/B,+CAAuC;AAEvC,MAAM,YAAY,GAAkD;IAClE,QAAQ,EAAE,iBAAiB;IAC3B,MAAM,EAAE,eAAe;IACvB,aAAa,EAAE,sBAAsB;IACrC,UAAU,EAAE,mBAAmB;IAC/B,kBAAkB,EAAE,mBAAmB;IACvC,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,aAAa;IACnB,GAAG,EAAE,YAAY;CAClB,CAAA;AAWD,SAAwB,iBAAiB,CAEvC,GAAc,EACd,WAA4B;IAE5B,MAAM,IAAI,GAAG,sBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IAC/C,IAAI,IAAI;QAAE,OAAO,IAAI,CAAA;IACrB,MAAM,EAAC,GAAG,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAA;IACnC,MAAM,EAAC,aAAa,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;IACjC,MAAM,GAAG,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,KAAK,EAAE,EAAC,GAAG,EAAE,KAAK,EAAE,aAAa,EAAC,CAAC,CAAA;IAChE,MAAM,aAAa,GAAG,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;IAChD,MAAM,GAAG,GAAiB;QACxB,IAAI,EAA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AE,IAAI,EAAC,CAAC,EAAE,WAAW,CAAC,CAAA;IAC/F,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,WAAC,CAAA,GAAG,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,CAAA;AACxD,CAAC;AAED,SAAS,YAAY,CAAC,GAAY,EAAE,GAAc;IAChD,OAAO,GAAG,CAAC,SAAS;QAClB,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,EAAE,EAAC,GAAG,EAAE,GAAG,CAAC,SAAS,EAAC,CAAC;QACnD,CAAC,CAAC,WAAC,CAAA,GAAG,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,EAAC,GAAG,EAAE,GAAG,EAAC,CAAC,YAAY,CAAA;AAC3D,CAAC;AAED,SAAS,cAAc,CAAC,EAAC,GAAG,EAAE,IAAI,EAAe;IAC/C,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,WAAC,CAAA,kBAAkB,IAAI,GAAG,CAAC,CAAA;AAC7C,CAAC;AAED,SAAS,QAAQ,CAAC,EAAC,GAAG,EAAe,EAAE,KAAW;IAChD,GAAG,CAAC,EAAE,CACJ,KAAK,EACL,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC9B,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,aAAG,CAAA,GAAG,CAAC,CAC9B,CAAA;AACH,CAAC"}
\ No newline at end of file
diff --git a/node_modules/table/node_modules/ajv/lib/compile/errors.ts b/node_modules/table/node_modules/ajv/lib/compile/errors.ts
index ea99c42960..18424a0fc6 100644
--- a/node_modules/table/node_modules/ajv/lib/compile/errors.ts
+++ b/node_modules/table/node_modules/ajv/lib/compile/errors.ts
@@ -6,7 +6,7 @@ import {getErrorPath, Type} from "./util"
import N from "./names"
export const keywordError: KeywordErrorDefinition = {
- message: ({keyword}) => str`should pass "${keyword}" keyword validation`,
+ message: ({keyword}) => str`must pass "${keyword}" keyword validation`,
}
export const keyword$DataError: KeywordErrorDefinition = {
diff --git a/node_modules/table/node_modules/ajv/lib/compile/jtd/serialize.ts b/node_modules/table/node_modules/ajv/lib/compile/jtd/serialize.ts
index f9671006bd..a8b36bd882 100644
--- a/node_modules/table/node_modules/ajv/lib/compile/jtd/serialize.ts
+++ b/node_modules/table/node_modules/ajv/lib/compile/jtd/serialize.ts
@@ -213,7 +213,7 @@ function serializeType(cxt: SerializeCxt): void {
case "timestamp":
gen.if(
_`${data} instanceof Date`,
- () => gen.add(N.json, _`${data}.toISOString()`),
+ () => gen.add(N.json, _`'"' + ${data}.toISOString() + '"'`),
() => serializeString(cxt)
)
break
diff --git a/node_modules/table/node_modules/ajv/package.json b/node_modules/table/node_modules/ajv/package.json
index e1016d43c3..6bf862d66f 100644
--- a/node_modules/table/node_modules/ajv/package.json
+++ b/node_modules/table/node_modules/ajv/package.json
@@ -1,6 +1,6 @@
{
"name": "ajv",
- "version": "8.6.1",
+ "version": "8.6.2",
"description": "Another JSON Schema Validator",
"main": "dist/ajv.js",
"types": "dist/ajv.d.ts",
@@ -70,7 +70,7 @@
"@rollup/plugin-typescript": "^8.2.1",
"@types/chai": "^4.2.12",
"@types/mocha": "^8.0.3",
- "@types/node": "^15.0.2",
+ "@types/node": "^16.3.2",
"@types/require-from-string": "^1.2.0",
"@typescript-eslint/eslint-plugin": "^3.8.0",
"@typescript-eslint/parser": "^3.8.0",
@@ -83,7 +83,7 @@
"eslint": "^7.8.1",
"eslint-config-prettier": "^7.0.0",
"glob": "^7.0.0",
- "husky": "^6.0.0",
+ "husky": "^7.0.1",
"if-node-version": "^1.0.0",
"jimp": "^0.16.1",
"js-beautify": "^1.7.3",
diff --git a/node_modules/terser/lib/mozilla-ast.js b/node_modules/terser/lib/mozilla-ast.js
index 7b89feef6a..fb75cca718 100644
--- a/node_modules/terser/lib/mozilla-ast.js
+++ b/node_modules/terser/lib/mozilla-ast.js
@@ -42,6 +42,7 @@
***********************************************************************/
import * as ast from "./ast.js";
+import { make_node } from "./utils/index.js";
import {
AST_Accessor,
AST_Array,
@@ -61,8 +62,8 @@ import {
AST_Chain,
AST_Class,
AST_ClassExpression,
- AST_ClassPrivateProperty,
AST_ClassProperty,
+ AST_ClassPrivateProperty,
AST_ConciseMethod,
AST_Conditional,
AST_Const,
@@ -157,7 +158,6 @@ import {
AST_With,
AST_Yield,
} from "./ast.js";
-import { make_node } from "./utils/index.js";
(function() {
diff --git a/node_modules/terser/lib/size.js b/node_modules/terser/lib/size.js
index 98d369db68..24ee39a376 100644
--- a/node_modules/terser/lib/size.js
+++ b/node_modules/terser/lib/size.js
@@ -9,7 +9,6 @@ import {
AST_Break,
AST_Call,
AST_Case,
- AST_Catch,
AST_Class,
AST_ClassPrivateProperty,
AST_ClassProperty,
@@ -29,7 +28,6 @@ import {
AST_Expansion,
AST_Export,
AST_False,
- AST_Finally,
AST_For,
AST_ForIn,
AST_Function,
@@ -48,8 +46,8 @@ import {
AST_Null,
AST_Number,
AST_Object,
- AST_ObjectGetter,
AST_ObjectKeyVal,
+ AST_ObjectGetter,
AST_ObjectSetter,
AST_PrivateGetter,
AST_PrivateMethod,
@@ -63,10 +61,10 @@ import {
AST_Switch,
AST_Symbol,
AST_SymbolClassProperty,
- AST_SymbolDeclaration,
AST_SymbolExportForeign,
AST_SymbolImportForeign,
AST_SymbolRef,
+ AST_SymbolDeclaration,
AST_TemplateSegment,
AST_TemplateString,
AST_This,
@@ -74,6 +72,8 @@ import {
AST_Toplevel,
AST_True,
AST_Try,
+ AST_Catch,
+ AST_Finally,
AST_Unary,
AST_Undefined,
AST_Var,
diff --git a/node_modules/ws/README.md b/node_modules/ws/README.md
index 9c6e5287c5..1cb19d6504 100644
--- a/node_modules/ws/README.md
+++ b/node_modules/ws/README.md
@@ -3,7 +3,7 @@
[](https://www.npmjs.com/package/ws)
[](https://github.com/websockets/ws/actions?query=workflow%3ACI+branch%3Amaster)
[](https://ci.appveyor.com/project/lpinca/ws)
-[](https://coveralls.io/github/websockets/ws)
+[](https://coveralls.io/github/websockets/ws)
ws is a simple to use, blazing fast, and thoroughly tested WebSocket client and
server implementation.
@@ -23,7 +23,7 @@ can use one of the many wrappers available on npm, like
- [Protocol support](#protocol-support)
- [Installing](#installing)
- - [Opt-in for performance and spec compliance](#opt-in-for-performance-and-spec-compliance)
+ - [Opt-in for performance](#opt-in-for-performance)
- [API docs](#api-docs)
- [WebSocket compression](#websocket-compression)
- [Usage examples](#usage-examples)
@@ -395,7 +395,7 @@ the `X-Forwarded-For` header.
```js
wss.on('connection', function connection(ws, req) {
- const ip = req.headers['x-forwarded-for'].split(/\s*,\s*/)[0];
+ const ip = req.headers['x-forwarded-for'].split(',')[0].trim();
});
```
diff --git a/node_modules/ws/lib/permessage-deflate.js b/node_modules/ws/lib/permessage-deflate.js
index a8974b988d..ce91784295 100644
--- a/node_modules/ws/lib/permessage-deflate.js
+++ b/node_modules/ws/lib/permessage-deflate.js
@@ -495,6 +495,7 @@ function inflateOnData(chunk) {
}
this[kError] = new RangeError('Max payload size exceeded');
+ this[kError].code = 'WS_ERR_UNSUPPORTED_MESSAGE_LENGTH';
this[kError][kStatusCode] = 1009;
this.removeListener('data', inflateOnData);
this.reset();
diff --git a/node_modules/ws/lib/receiver.js b/node_modules/ws/lib/receiver.js
index 65a5ab45f6..1d2af76e1f 100644
--- a/node_modules/ws/lib/receiver.js
+++ b/node_modules/ws/lib/receiver.js
@@ -22,7 +22,7 @@ const INFLATING = 5;
/**
* HyBi Receiver implementation.
*
- * @extends stream.Writable
+ * @extends Writable
*/
class Receiver extends Writable {
/**
@@ -168,14 +168,26 @@ class Receiver extends Writable {
if ((buf[0] & 0x30) !== 0x00) {
this._loop = false;
- return error(RangeError, 'RSV2 and RSV3 must be clear', true, 1002);
+ return error(
+ RangeError,
+ 'RSV2 and RSV3 must be clear',
+ true,
+ 1002,
+ 'WS_ERR_UNEXPECTED_RSV_2_3'
+ );
}
const compressed = (buf[0] & 0x40) === 0x40;
if (compressed && !this._extensions[PerMessageDeflate.extensionName]) {
this._loop = false;
- return error(RangeError, 'RSV1 must be clear', true, 1002);
+ return error(
+ RangeError,
+ 'RSV1 must be clear',
+ true,
+ 1002,
+ 'WS_ERR_UNEXPECTED_RSV_1'
+ );
}
this._fin = (buf[0] & 0x80) === 0x80;
@@ -185,31 +197,61 @@ class Receiver extends Writable {
if (this._opcode === 0x00) {
if (compressed) {
this._loop = false;
- return error(RangeError, 'RSV1 must be clear', true, 1002);
+ return error(
+ RangeError,
+ 'RSV1 must be clear',
+ true,
+ 1002,
+ 'WS_ERR_UNEXPECTED_RSV_1'
+ );
}
if (!this._fragmented) {
this._loop = false;
- return error(RangeError, 'invalid opcode 0', true, 1002);
+ return error(
+ RangeError,
+ 'invalid opcode 0',
+ true,
+ 1002,
+ 'WS_ERR_INVALID_OPCODE'
+ );
}
this._opcode = this._fragmented;
} else if (this._opcode === 0x01 || this._opcode === 0x02) {
if (this._fragmented) {
this._loop = false;
- return error(RangeError, `invalid opcode ${this._opcode}`, true, 1002);
+ return error(
+ RangeError,
+ `invalid opcode ${this._opcode}`,
+ true,
+ 1002,
+ 'WS_ERR_INVALID_OPCODE'
+ );
}
this._compressed = compressed;
} else if (this._opcode > 0x07 && this._opcode < 0x0b) {
if (!this._fin) {
this._loop = false;
- return error(RangeError, 'FIN must be set', true, 1002);
+ return error(
+ RangeError,
+ 'FIN must be set',
+ true,
+ 1002,
+ 'WS_ERR_EXPECTED_FIN'
+ );
}
if (compressed) {
this._loop = false;
- return error(RangeError, 'RSV1 must be clear', true, 1002);
+ return error(
+ RangeError,
+ 'RSV1 must be clear',
+ true,
+ 1002,
+ 'WS_ERR_UNEXPECTED_RSV_1'
+ );
}
if (this._payloadLength > 0x7d) {
@@ -218,12 +260,19 @@ class Receiver extends Writable {
RangeError,
`invalid payload length ${this._payloadLength}`,
true,
- 1002
+ 1002,
+ 'WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH'
);
}
} else {
this._loop = false;
- return error(RangeError, `invalid opcode ${this._opcode}`, true, 1002);
+ return error(
+ RangeError,
+ `invalid opcode ${this._opcode}`,
+ true,
+ 1002,
+ 'WS_ERR_INVALID_OPCODE'
+ );
}
if (!this._fin && !this._fragmented) this._fragmented = this._opcode;
@@ -232,11 +281,23 @@ class Receiver extends Writable {
if (this._isServer) {
if (!this._masked) {
this._loop = false;
- return error(RangeError, 'MASK must be set', true, 1002);
+ return error(
+ RangeError,
+ 'MASK must be set',
+ true,
+ 1002,
+ 'WS_ERR_EXPECTED_MASK'
+ );
}
} else if (this._masked) {
this._loop = false;
- return error(RangeError, 'MASK must be clear', true, 1002);
+ return error(
+ RangeError,
+ 'MASK must be clear',
+ true,
+ 1002,
+ 'WS_ERR_UNEXPECTED_MASK'
+ );
}
if (this._payloadLength === 126) this._state = GET_PAYLOAD_LENGTH_16;
@@ -285,7 +346,8 @@ class Receiver extends Writable {
RangeError,
'Unsupported WebSocket frame: payload length > 2^53 - 1',
false,
- 1009
+ 1009,
+ 'WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH'
);
}
@@ -304,7 +366,13 @@ class Receiver extends Writable {
this._totalPayloadLength += this._payloadLength;
if (this._totalPayloadLength > this._maxPayload && this._maxPayload > 0) {
this._loop = false;
- return error(RangeError, 'Max payload size exceeded', false, 1009);
+ return error(
+ RangeError,
+ 'Max payload size exceeded',
+ false,
+ 1009,
+ 'WS_ERR_UNSUPPORTED_MESSAGE_LENGTH'
+ );
}
}
@@ -384,7 +452,13 @@ class Receiver extends Writable {
this._messageLength += buf.length;
if (this._messageLength > this._maxPayload && this._maxPayload > 0) {
return cb(
- error(RangeError, 'Max payload size exceeded', false, 1009)
+ error(
+ RangeError,
+ 'Max payload size exceeded',
+ false,
+ 1009,
+ 'WS_ERR_UNSUPPORTED_MESSAGE_LENGTH'
+ )
);
}
@@ -431,7 +505,13 @@ class Receiver extends Writable {
if (!isValidUTF8(buf)) {
this._loop = false;
- return error(Error, 'invalid UTF-8 sequence', true, 1007);
+ return error(
+ Error,
+ 'invalid UTF-8 sequence',
+ true,
+ 1007,
+ 'WS_ERR_INVALID_UTF8'
+ );
}
this.emit('message', buf.toString());
@@ -456,18 +536,36 @@ class Receiver extends Writable {
this.emit('conclude', 1005, '');
this.end();
} else if (data.length === 1) {
- return error(RangeError, 'invalid payload length 1', true, 1002);
+ return error(
+ RangeError,
+ 'invalid payload length 1',
+ true,
+ 1002,
+ 'WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH'
+ );
} else {
const code = data.readUInt16BE(0);
if (!isValidStatusCode(code)) {
- return error(RangeError, `invalid status code ${code}`, true, 1002);
+ return error(
+ RangeError,
+ `invalid status code ${code}`,
+ true,
+ 1002,
+ 'WS_ERR_INVALID_CLOSE_CODE'
+ );
}
const buf = data.slice(2);
if (!isValidUTF8(buf)) {
- return error(Error, 'invalid UTF-8 sequence', true, 1007);
+ return error(
+ Error,
+ 'invalid UTF-8 sequence',
+ true,
+ 1007,
+ 'WS_ERR_INVALID_UTF8'
+ );
}
this.emit('conclude', code, buf.toString());
@@ -488,20 +586,22 @@ module.exports = Receiver;
/**
* Builds an error object.
*
- * @param {(Error|RangeError)} ErrorCtor The error constructor
+ * @param {function(new:Error|RangeError)} ErrorCtor The error constructor
* @param {String} message The error message
* @param {Boolean} prefix Specifies whether or not to add a default prefix to
* `message`
* @param {Number} statusCode The status code
+ * @param {String} errorCode The exposed error code
* @return {(Error|RangeError)} The error
* @private
*/
-function error(ErrorCtor, message, prefix, statusCode) {
+function error(ErrorCtor, message, prefix, statusCode, errorCode) {
const err = new ErrorCtor(
prefix ? `Invalid WebSocket frame: ${message}` : message
);
Error.captureStackTrace(err, error);
+ err.code = errorCode;
err[kStatusCode] = statusCode;
return err;
}
diff --git a/node_modules/ws/lib/sender.js b/node_modules/ws/lib/sender.js
index ad71e1950d..441171c579 100644
--- a/node_modules/ws/lib/sender.js
+++ b/node_modules/ws/lib/sender.js
@@ -1,5 +1,9 @@
+/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^net|tls$" }] */
+
'use strict';
+const net = require('net');
+const tls = require('tls');
const { randomFillSync } = require('crypto');
const PerMessageDeflate = require('./permessage-deflate');
@@ -16,7 +20,7 @@ class Sender {
/**
* Creates a Sender instance.
*
- * @param {net.Socket} socket The connection socket
+ * @param {(net.Socket|tls.Socket)} socket The connection socket
* @param {Object} [extensions] An object containing the negotiated extensions
*/
constructor(socket, extensions) {
diff --git a/node_modules/ws/lib/stream.js b/node_modules/ws/lib/stream.js
index 604cf366b3..b0896ff839 100644
--- a/node_modules/ws/lib/stream.js
+++ b/node_modules/ws/lib/stream.js
@@ -5,7 +5,7 @@ const { Duplex } = require('stream');
/**
* Emits the `'close'` event on a stream.
*
- * @param {stream.Duplex} The stream.
+ * @param {Duplex} stream The stream.
* @private
*/
function emitClose(stream) {
@@ -43,11 +43,12 @@ function duplexOnError(err) {
*
* @param {WebSocket} ws The `WebSocket` to wrap
* @param {Object} [options] The options for the `Duplex` constructor
- * @return {stream.Duplex} The duplex stream
+ * @return {Duplex} The duplex stream
* @public
*/
function createWebSocketStream(ws, options) {
let resumeOnReceiverDrain = true;
+ let terminateOnDestroy = true;
function receiverOnDrain() {
if (resumeOnReceiverDrain) ws._socket.resume();
@@ -81,6 +82,16 @@ function createWebSocketStream(ws, options) {
ws.once('error', function error(err) {
if (duplex.destroyed) return;
+ // Prevent `ws.terminate()` from being called by `duplex._destroy()`.
+ //
+ // - If the `'error'` event is emitted before the `'open'` event, then
+ // `ws.terminate()` is a noop as no socket is assigned.
+ // - Otherwise, the error is re-emitted by the listener of the `'error'`
+ // event of the `Receiver` object. The listener already closes the
+ // connection by calling `ws.close()`. This allows a close frame to be
+ // sent to the other peer. If `ws.terminate()` is called right after this,
+ // then the close frame might not be sent.
+ terminateOnDestroy = false;
duplex.destroy(err);
});
@@ -108,7 +119,8 @@ function createWebSocketStream(ws, options) {
if (!called) callback(err);
process.nextTick(emitClose, duplex);
});
- ws.terminate();
+
+ if (terminateOnDestroy) ws.terminate();
};
duplex._final = function (callback) {
diff --git a/node_modules/ws/lib/websocket-server.js b/node_modules/ws/lib/websocket-server.js
index 3c3bbe0b06..fe7fdf501c 100644
--- a/node_modules/ws/lib/websocket-server.js
+++ b/node_modules/ws/lib/websocket-server.js
@@ -1,8 +1,13 @@
+/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^net|tls|https$" }] */
+
'use strict';
const EventEmitter = require('events');
+const http = require('http');
+const https = require('https');
+const net = require('net');
+const tls = require('tls');
const { createHash } = require('crypto');
-const { createServer, STATUS_CODES } = require('http');
const PerMessageDeflate = require('./permessage-deflate');
const WebSocket = require('./websocket');
@@ -11,6 +16,10 @@ const { GUID, kWebSocket } = require('./constants');
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
+const RUNNING = 0;
+const CLOSING = 1;
+const CLOSED = 2;
+
/**
* Class representing a WebSocket server.
*
@@ -34,7 +43,8 @@ class WebSocketServer extends EventEmitter {
* @param {(Boolean|Object)} [options.perMessageDeflate=false] Enable/disable
* permessage-deflate
* @param {Number} [options.port] The port where to bind the server
- * @param {http.Server} [options.server] A pre-created HTTP/S server to use
+ * @param {(http.Server|https.Server)} [options.server] A pre-created HTTP/S
+ * server to use
* @param {Function} [options.verifyClient] A hook to reject connections
* @param {Function} [callback] A listener for the `listening` event
*/
@@ -56,15 +66,20 @@ class WebSocketServer extends EventEmitter {
...options
};
- if (options.port == null && !options.server && !options.noServer) {
+ if (
+ (options.port == null && !options.server && !options.noServer) ||
+ (options.port != null && (options.server || options.noServer)) ||
+ (options.server && options.noServer)
+ ) {
throw new TypeError(
- 'One of the "port", "server", or "noServer" options must be specified'
+ 'One and only one of the "port", "server", or "noServer" options ' +
+ 'must be specified'
);
}
if (options.port != null) {
- this._server = createServer((req, res) => {
- const body = STATUS_CODES[426];
+ this._server = http.createServer((req, res) => {
+ const body = http.STATUS_CODES[426];
res.writeHead(426, {
'Content-Length': body.length,
@@ -97,6 +112,7 @@ class WebSocketServer extends EventEmitter {
if (options.perMessageDeflate === true) options.perMessageDeflate = {};
if (options.clientTracking) this.clients = new Set();
this.options = options;
+ this._state = RUNNING;
}
/**
@@ -126,6 +142,14 @@ class WebSocketServer extends EventEmitter {
close(cb) {
if (cb) this.once('close', cb);
+ if (this._state === CLOSED) {
+ process.nextTick(emitClose, this);
+ return;
+ }
+
+ if (this._state === CLOSING) return;
+ this._state = CLOSING;
+
//
// Terminate all associated clients.
//
@@ -143,7 +167,7 @@ class WebSocketServer extends EventEmitter {
// Close the http server if it was internally created.
//
if (this.options.port != null) {
- server.close(() => this.emit('close'));
+ server.close(emitClose.bind(undefined, this));
return;
}
}
@@ -173,7 +197,8 @@ class WebSocketServer extends EventEmitter {
* Handle a HTTP Upgrade request.
*
* @param {http.IncomingMessage} req The request object
- * @param {net.Socket} socket The network socket between the server and client
+ * @param {(net.Socket|tls.Socket)} socket The network socket between the
+ * server and client
* @param {Buffer} head The first packet of the upgraded stream
* @param {Function} cb Callback
* @public
@@ -252,7 +277,8 @@ class WebSocketServer extends EventEmitter {
* @param {String} key The value of the `Sec-WebSocket-Key` header
* @param {Object} extensions The accepted extensions
* @param {http.IncomingMessage} req The request object
- * @param {net.Socket} socket The network socket between the server and client
+ * @param {(net.Socket|tls.Socket)} socket The network socket between the
+ * server and client
* @param {Buffer} head The first packet of the upgraded stream
* @param {Function} cb Callback
* @throws {Error} If called more than once with the same socket
@@ -271,6 +297,8 @@ class WebSocketServer extends EventEmitter {
);
}
+ if (this._state > RUNNING) return abortHandshake(socket, 503);
+
const digest = createHash('sha1')
.update(key + GUID)
.digest('base64');
@@ -360,6 +388,7 @@ function addListeners(server, map) {
* @private
*/
function emitClose(server) {
+ server._state = CLOSED;
server.emit('close');
}
@@ -375,7 +404,7 @@ function socketOnError() {
/**
* Close the connection when preconditions are not fulfilled.
*
- * @param {net.Socket} socket The socket of the upgrade request
+ * @param {(net.Socket|tls.Socket)} socket The socket of the upgrade request
* @param {Number} code The HTTP response status code
* @param {String} [message] The HTTP response body
* @param {Object} [headers] Additional HTTP response headers
@@ -383,7 +412,7 @@ function socketOnError() {
*/
function abortHandshake(socket, code, message, headers) {
if (socket.writable) {
- message = message || STATUS_CODES[code];
+ message = message || http.STATUS_CODES[code];
headers = {
Connection: 'close',
'Content-Type': 'text/html',
@@ -392,7 +421,7 @@ function abortHandshake(socket, code, message, headers) {
};
socket.write(
- `HTTP/1.1 ${code} ${STATUS_CODES[code]}\r\n` +
+ `HTTP/1.1 ${code} ${http.STATUS_CODES[code]}\r\n` +
Object.keys(headers)
.map((h) => `${h}: ${headers[h]}`)
.join('\r\n') +
diff --git a/node_modules/ws/lib/websocket.js b/node_modules/ws/lib/websocket.js
index 83b471d948..7f1e3bcfae 100644
--- a/node_modules/ws/lib/websocket.js
+++ b/node_modules/ws/lib/websocket.js
@@ -36,7 +36,7 @@ class WebSocket extends EventEmitter {
/**
* Create a new `WebSocket`.
*
- * @param {(String|url.URL)} address The URL to which to connect
+ * @param {(String|URL)} address The URL to which to connect
* @param {(String|String[])} [protocols] The subprotocols
* @param {Object} [options] Connection options
*/
@@ -112,6 +112,50 @@ class WebSocket extends EventEmitter {
return Object.keys(this._extensions).join();
}
+ /**
+ * @type {Function}
+ */
+ /* istanbul ignore next */
+ get onclose() {
+ return undefined;
+ }
+
+ /* istanbul ignore next */
+ set onclose(listener) {}
+
+ /**
+ * @type {Function}
+ */
+ /* istanbul ignore next */
+ get onerror() {
+ return undefined;
+ }
+
+ /* istanbul ignore next */
+ set onerror(listener) {}
+
+ /**
+ * @type {Function}
+ */
+ /* istanbul ignore next */
+ get onopen() {
+ return undefined;
+ }
+
+ /* istanbul ignore next */
+ set onopen(listener) {}
+
+ /**
+ * @type {Function}
+ */
+ /* istanbul ignore next */
+ get onmessage() {
+ return undefined;
+ }
+
+ /* istanbul ignore next */
+ set onmessage(listener) {}
+
/**
* @type {String}
*/
@@ -136,7 +180,8 @@ class WebSocket extends EventEmitter {
/**
* Set up the socket and the internal resources.
*
- * @param {net.Socket} socket The network socket between the server and client
+ * @param {(net.Socket|tls.Socket)} socket The network socket between the
+ * server and client
* @param {Buffer} head The first packet of the upgraded stream
* @param {Number} [maxPayload=0] The maximum allowed message size
* @private
@@ -225,7 +270,13 @@ class WebSocket extends EventEmitter {
}
if (this.readyState === WebSocket.CLOSING) {
- if (this._closeFrameSent && this._closeFrameReceived) this._socket.end();
+ if (
+ this._closeFrameSent &&
+ (this._closeFrameReceived || this._receiver._writableState.errorEmitted)
+ ) {
+ this._socket.end();
+ }
+
return;
}
@@ -238,7 +289,13 @@ class WebSocket extends EventEmitter {
if (err) return;
this._closeFrameSent = true;
- if (this._closeFrameReceived) this._socket.end();
+
+ if (
+ this._closeFrameReceived ||
+ this._receiver._writableState.errorEmitted
+ ) {
+ this._socket.end();
+ }
});
//
@@ -380,11 +437,76 @@ class WebSocket extends EventEmitter {
}
}
-readyStates.forEach((readyState, i) => {
- const descriptor = { enumerable: true, value: i };
+/**
+ * @constant {Number} CONNECTING
+ * @memberof WebSocket
+ */
+Object.defineProperty(WebSocket, 'CONNECTING', {
+ enumerable: true,
+ value: readyStates.indexOf('CONNECTING')
+});
- Object.defineProperty(WebSocket.prototype, readyState, descriptor);
- Object.defineProperty(WebSocket, readyState, descriptor);
+/**
+ * @constant {Number} CONNECTING
+ * @memberof WebSocket.prototype
+ */
+Object.defineProperty(WebSocket.prototype, 'CONNECTING', {
+ enumerable: true,
+ value: readyStates.indexOf('CONNECTING')
+});
+
+/**
+ * @constant {Number} OPEN
+ * @memberof WebSocket
+ */
+Object.defineProperty(WebSocket, 'OPEN', {
+ enumerable: true,
+ value: readyStates.indexOf('OPEN')
+});
+
+/**
+ * @constant {Number} OPEN
+ * @memberof WebSocket.prototype
+ */
+Object.defineProperty(WebSocket.prototype, 'OPEN', {
+ enumerable: true,
+ value: readyStates.indexOf('OPEN')
+});
+
+/**
+ * @constant {Number} CLOSING
+ * @memberof WebSocket
+ */
+Object.defineProperty(WebSocket, 'CLOSING', {
+ enumerable: true,
+ value: readyStates.indexOf('CLOSING')
+});
+
+/**
+ * @constant {Number} CLOSING
+ * @memberof WebSocket.prototype
+ */
+Object.defineProperty(WebSocket.prototype, 'CLOSING', {
+ enumerable: true,
+ value: readyStates.indexOf('CLOSING')
+});
+
+/**
+ * @constant {Number} CLOSED
+ * @memberof WebSocket
+ */
+Object.defineProperty(WebSocket, 'CLOSED', {
+ enumerable: true,
+ value: readyStates.indexOf('CLOSED')
+});
+
+/**
+ * @constant {Number} CLOSED
+ * @memberof WebSocket.prototype
+ */
+Object.defineProperty(WebSocket.prototype, 'CLOSED', {
+ enumerable: true,
+ value: readyStates.indexOf('CLOSED')
});
[
@@ -404,14 +526,7 @@ readyStates.forEach((readyState, i) => {
//
['open', 'error', 'close', 'message'].forEach((method) => {
Object.defineProperty(WebSocket.prototype, `on${method}`, {
- configurable: true,
enumerable: true,
- /**
- * Return the listener of the event.
- *
- * @return {(Function|undefined)} The event listener or `undefined`
- * @public
- */
get() {
const listeners = this.listeners(method);
for (let i = 0; i < listeners.length; i++) {
@@ -420,12 +535,6 @@ readyStates.forEach((readyState, i) => {
return undefined;
},
- /**
- * Add a listener for the event.
- *
- * @param {Function} listener The listener to add
- * @public
- */
set(listener) {
const listeners = this.listeners(method);
for (let i = 0; i < listeners.length; i++) {
@@ -448,7 +557,7 @@ module.exports = WebSocket;
* Initialize a WebSocket client.
*
* @param {WebSocket} websocket The client to initialize
- * @param {(String|url.URL)} address The URL to which to connect
+ * @param {(String|URL)} address The URL to which to connect
* @param {String} [protocols] The subprotocols
* @param {Object} [options] Connection options
* @param {(Boolean|Object)} [options.perMessageDeflate=true] Enable/disable
@@ -648,23 +757,51 @@ function initAsClient(websocket, address, protocols, options) {
if (serverProt) websocket._protocol = serverProt;
- if (perMessageDeflate) {
- try {
- const extensions = parse(res.headers['sec-websocket-extensions']);
+ const secWebSocketExtensions = res.headers['sec-websocket-extensions'];
- if (extensions[PerMessageDeflate.extensionName]) {
- perMessageDeflate.accept(extensions[PerMessageDeflate.extensionName]);
- websocket._extensions[PerMessageDeflate.extensionName] =
- perMessageDeflate;
- }
- } catch (err) {
- abortHandshake(
- websocket,
- socket,
- 'Invalid Sec-WebSocket-Extensions header'
- );
+ if (secWebSocketExtensions !== undefined) {
+ if (!perMessageDeflate) {
+ const message =
+ 'Server sent a Sec-WebSocket-Extensions header but no extension ' +
+ 'was requested';
+ abortHandshake(websocket, socket, message);
return;
}
+
+ let extensions;
+
+ try {
+ extensions = parse(secWebSocketExtensions);
+ } catch (err) {
+ const message = 'Invalid Sec-WebSocket-Extensions header';
+ abortHandshake(websocket, socket, message);
+ return;
+ }
+
+ const extensionNames = Object.keys(extensions);
+
+ if (extensionNames.length) {
+ if (
+ extensionNames.length !== 1 ||
+ extensionNames[0] !== PerMessageDeflate.extensionName
+ ) {
+ const message =
+ 'Server indicated an extension that was not requested';
+ abortHandshake(websocket, socket, message);
+ return;
+ }
+
+ try {
+ perMessageDeflate.accept(extensions[PerMessageDeflate.extensionName]);
+ } catch (err) {
+ const message = 'Invalid Sec-WebSocket-Extensions header';
+ abortHandshake(websocket, socket, message);
+ return;
+ }
+
+ websocket._extensions[PerMessageDeflate.extensionName] =
+ perMessageDeflate;
+ }
}
websocket.setSocket(socket, head, opts.maxPayload);
@@ -704,8 +841,8 @@ function tlsConnect(options) {
* Abort the handshake and emit an error.
*
* @param {WebSocket} websocket The WebSocket instance
- * @param {(http.ClientRequest|net.Socket)} stream The request to abort or the
- * socket to destroy
+ * @param {(http.ClientRequest|net.Socket|tls.Socket)} stream The request to
+ * abort or the socket to destroy
* @param {String} message The error message
* @private
*/
@@ -808,11 +945,10 @@ function receiverOnError(err) {
const websocket = this[kWebSocket];
websocket._socket.removeListener('data', socketOnData);
+ websocket._socket.resume();
- websocket._readyState = WebSocket.CLOSING;
- websocket._closeCode = err[kStatusCode];
+ websocket.close(err[kStatusCode]);
websocket.emit('error', err);
- websocket._socket.destroy();
}
/**
diff --git a/node_modules/ws/package.json b/node_modules/ws/package.json
index 2ab6e37696..d6dff1396c 100644
--- a/node_modules/ws/package.json
+++ b/node_modules/ws/package.json
@@ -1,6 +1,6 @@
{
"name": "ws",
- "version": "7.4.6",
+ "version": "7.5.3",
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js",
"keywords": [
"HyBi",
diff --git a/package-lock.json b/package-lock.json
index 400c3547cd..e51f658d1c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7,7 +7,6 @@
"name": "chrome-devtools-frontend",
"license": "BSD-3-Clause",
"devDependencies": {
- "@rollup/plugin-commonjs": "17.1.0",
"@types/chai": "4.2.18",
"@types/codemirror": "0.0.108",
"@types/estree": "0.0.48",
@@ -64,7 +63,7 @@
"svgo": "2.3.0",
"terser": "5.6.1",
"typescript": "4.3.2",
- "ws": "^7.5.3",
+ "ws": "7.5.3",
"yargs": "16.2.0"
}
},
@@ -415,50 +414,6 @@
"node": ">= 8"
}
},
- "node_modules/@rollup/plugin-commonjs": {
- "version": "17.1.0",
- "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-17.1.0.tgz",
- "integrity": "sha512-PoMdXCw0ZyvjpCMT5aV4nkL0QywxP29sODQsSGeDpr/oI49Qq9tRtAsb/LbYbDzFlOydVEqHmmZWFtXJEAX9ew==",
- "dev": true,
- "dependencies": {
- "@rollup/pluginutils": "^3.1.0",
- "commondir": "^1.0.1",
- "estree-walker": "^2.0.1",
- "glob": "^7.1.6",
- "is-reference": "^1.2.1",
- "magic-string": "^0.25.7",
- "resolve": "^1.17.0"
- },
- "engines": {
- "node": ">= 8.0.0"
- }
- },
- "node_modules/@rollup/pluginutils": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz",
- "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==",
- "dev": true,
- "dependencies": {
- "@types/estree": "0.0.39",
- "estree-walker": "^1.0.1",
- "picomatch": "^2.2.2"
- },
- "engines": {
- "node": ">= 8.0.0"
- }
- },
- "node_modules/@rollup/pluginutils/node_modules/@types/estree": {
- "version": "0.0.39",
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz",
- "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==",
- "dev": true
- },
- "node_modules/@rollup/pluginutils/node_modules/estree-walker": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz",
- "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==",
- "dev": true
- },
"node_modules/@sinonjs/commons": {
"version": "1.8.2",
"resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.2.tgz",
@@ -1640,7 +1595,6 @@
"dependencies": {
"anymatch": "~3.1.1",
"braces": "~3.0.2",
- "fsevents": "~2.3.1",
"glob-parent": "~5.1.0",
"is-binary-path": "~2.1.0",
"is-glob": "~4.0.1",
@@ -1738,12 +1692,6 @@
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
"dev": true
},
- "node_modules/commondir": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
- "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
- "dev": true
- },
"node_modules/component-emitter": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
@@ -3172,7 +3120,6 @@
"integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
"dev": true,
"dependencies": {
- "@types/yauzl": "^2.9.1",
"debug": "^4.1.1",
"get-stream": "^5.1.0",
"yauzl": "^2.10.0"
@@ -3997,15 +3944,6 @@
"node": ">=8"
}
},
- "node_modules/is-reference": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz",
- "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==",
- "dev": true,
- "dependencies": {
- "@types/estree": "*"
- }
- },
"node_modules/is-regex": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz",
@@ -6308,9 +6246,6 @@
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.42.3.tgz",
"integrity": "sha512-JjaT9WaUS5vmjy6xUrnPOskjkQg2cN4WSACNCwbOvBz8VDmbiKVdmTFUoMPRqTud0tsex8Xy9/boLbDW9HKD1w==",
"dev": true,
- "dependencies": {
- "fsevents": "~2.3.1"
- },
"bin": {
"rollup": "dist/bin/rollup"
},
@@ -6585,9 +6520,9 @@
}
},
"node_modules/socket.io/node_modules/@types/node": {
- "version": "14.17.5",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.5.tgz",
- "integrity": "sha512-bjqH2cX/O33jXT/UmReo2pM7DIJREPMnarixbQ57DOOzzFaI6D2+IcwaJQaJpv0M1E9TIhPCYVxrkcityLjlqA==",
+ "version": "14.17.6",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.6.tgz",
+ "integrity": "sha512-iBxsxU7eswQDGhlr3AiamBxOssaYxbM+NKXVil8jg9yFXvrfEFbDumLD/2dMTB+zYyg7w+Xjt8yuxfdbUHAtcQ==",
"dev": true
},
"node_modules/source-map": {
@@ -8225,46 +8160,6 @@
"fastq": "^1.6.0"
}
},
- "@rollup/plugin-commonjs": {
- "version": "17.1.0",
- "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-17.1.0.tgz",
- "integrity": "sha512-PoMdXCw0ZyvjpCMT5aV4nkL0QywxP29sODQsSGeDpr/oI49Qq9tRtAsb/LbYbDzFlOydVEqHmmZWFtXJEAX9ew==",
- "dev": true,
- "requires": {
- "@rollup/pluginutils": "^3.1.0",
- "commondir": "^1.0.1",
- "estree-walker": "^2.0.1",
- "glob": "^7.1.6",
- "is-reference": "^1.2.1",
- "magic-string": "^0.25.7",
- "resolve": "^1.17.0"
- }
- },
- "@rollup/pluginutils": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz",
- "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==",
- "dev": true,
- "requires": {
- "@types/estree": "0.0.39",
- "estree-walker": "^1.0.1",
- "picomatch": "^2.2.2"
- },
- "dependencies": {
- "@types/estree": {
- "version": "0.0.39",
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz",
- "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==",
- "dev": true
- },
- "estree-walker": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz",
- "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==",
- "dev": true
- }
- }
- },
"@sinonjs/commons": {
"version": "1.8.2",
"resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.2.tgz",
@@ -9313,12 +9208,6 @@
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
"dev": true
},
- "commondir": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
- "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
- "dev": true
- },
"component-emitter": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
@@ -11101,15 +10990,6 @@
"integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==",
"dev": true
},
- "is-reference": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz",
- "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==",
- "dev": true,
- "requires": {
- "@types/estree": "*"
- }
- },
"is-regex": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz",
@@ -13177,9 +13057,9 @@
},
"dependencies": {
"@types/node": {
- "version": "14.17.5",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.5.tgz",
- "integrity": "sha512-bjqH2cX/O33jXT/UmReo2pM7DIJREPMnarixbQ57DOOzzFaI6D2+IcwaJQaJpv0M1E9TIhPCYVxrkcityLjlqA==",
+ "version": "14.17.6",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.6.tgz",
+ "integrity": "sha512-iBxsxU7eswQDGhlr3AiamBxOssaYxbM+NKXVil8jg9yFXvrfEFbDumLD/2dMTB+zYyg7w+Xjt8yuxfdbUHAtcQ==",
"dev": true
}
}
diff --git a/scripts/deps/manage_node_deps.py b/scripts/deps/manage_node_deps.py
index f669a22cc8..17e198e914 100755
--- a/scripts/deps/manage_node_deps.py
+++ b/scripts/deps/manage_node_deps.py
@@ -38,7 +38,6 @@ LICENSES = [
# List all DEPS here.
DEPS = {
- "@rollup/plugin-commonjs": "17.1.0",
"@types/chai": "4.2.18",
"@types/codemirror": "0.0.108",
"@types/karma-chai-sinon": "0.1.15",