Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub (part 2)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- frontend/node_modules/.pnpm/@babel+helper-compilation-targets@7.29.7/node_modules/@babel/helper-compilation-targets/node_modules/.bin/browserslist (Hong Ming Tan's conflicted copy 2026-08-07) +21 -0
- frontend/node_modules/.pnpm/@babel+helper-compilation-targets@7.29.7/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver +43 -0
- frontend/node_modules/.pnpm/@babel+helper-compilation-targets@7.29.7/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver (Hong Ming Tan's conflicted copy 2026-08-07) +21 -0
- frontend/node_modules/.pnpm/@babel+helper-compilation-targets@7.29.7/node_modules/@babel/helper-compilation-targets/package.json +43 -0
- frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/LICENSE +22 -0
- frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/README.md +19 -0
- frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/data/browser-upper.json +911 -0
- frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/data/builtin-lower.json +15 -0
- frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/data/builtin-upper.json +51 -0
- frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/package.json +32 -0
- frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/LICENSE +22 -0
- frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/README.md +19 -0
- frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/import-builder.js +122 -0
- frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/import-builder.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/import-injector.js +304 -0
- frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/index.js +37 -0
- frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/index.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/is-module.js +11 -0
- frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/is-module.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/package.json +28 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/LICENSE +22 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/README.md +19 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js +46 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/get-module-name.js +46 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/get-module-name.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/index.js +396 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/index.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js +31 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js +362 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js +360 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js +22 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/package.json +32 -0
- frontend/node_modules/.pnpm/@babel+helper-plugin-utils@7.29.7/node_modules/@babel/helper-plugin-utils/LICENSE +22 -0
- frontend/node_modules/.pnpm/@babel+helper-plugin-utils@7.29.7/node_modules/@babel/helper-plugin-utils/README.md +19 -0
- frontend/node_modules/.pnpm/@babel+helper-plugin-utils@7.29.7/node_modules/@babel/helper-plugin-utils/lib/index.js +74 -0
- frontend/node_modules/.pnpm/@babel+helper-plugin-utils@7.29.7/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-plugin-utils@7.29.7/node_modules/@babel/helper-plugin-utils/package.json +24 -0
- frontend/node_modules/.pnpm/@babel+helper-string-parser@7.29.7/node_modules/@babel/helper-string-parser/LICENSE +22 -0
- frontend/node_modules/.pnpm/@babel+helper-string-parser@7.29.7/node_modules/@babel/helper-string-parser/README.md +19 -0
- frontend/node_modules/.pnpm/@babel+helper-string-parser@7.29.7/node_modules/@babel/helper-string-parser/lib/index.js +295 -0
- frontend/node_modules/.pnpm/@babel+helper-string-parser@7.29.7/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -0
- frontend/node_modules/.pnpm/@babel+helper-string-parser@7.29.7/node_modules/@babel/helper-string-parser/package.json +31 -0
- frontend/node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- frontend/node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/README.md +19 -0
frontend/node_modules/.pnpm/@babel+helper-compilation-targets@7.29.7/node_modules/@babel/helper-compilation-targets/node_modules/.bin/browserslist (Hong Ming Tan's conflicted copy 2026-08-07)
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
| 3 |
+
|
| 4 |
+
case `uname` in
|
| 5 |
+
*CYGWIN*|*MINGW*|*MSYS*)
|
| 6 |
+
if command -v cygpath > /dev/null 2>&1; then
|
| 7 |
+
basedir=`cygpath -w "$basedir"`
|
| 8 |
+
fi
|
| 9 |
+
;;
|
| 10 |
+
esac
|
| 11 |
+
|
| 12 |
+
if [ -z "$NODE_PATH" ]; then
|
| 13 |
+
export NODE_PATH="/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/browserslist@4.28.7/node_modules/browserslist/node_modules:/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/browserslist@4.28.7/node_modules:/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/node_modules"
|
| 14 |
+
else
|
| 15 |
+
export NODE_PATH="/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/browserslist@4.28.7/node_modules/browserslist/node_modules:/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/browserslist@4.28.7/node_modules:/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/node_modules:$NODE_PATH"
|
| 16 |
+
fi
|
| 17 |
+
if [ -x "$basedir/node" ]; then
|
| 18 |
+
exec "$basedir/node" "$basedir/../../../../../../browserslist@4.28.7/node_modules/browserslist/cli.js" "$@"
|
| 19 |
+
else
|
| 20 |
+
exec node "$basedir/../../../../../../browserslist@4.28.7/node_modules/browserslist/cli.js" "$@"
|
| 21 |
+
fi
|
frontend/node_modules/.pnpm/@babel+helper-compilation-targets@7.29.7/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
| 3 |
+
basedir_win="$basedir"
|
| 4 |
+
exe=""
|
| 5 |
+
msys=""
|
| 6 |
+
|
| 7 |
+
case `uname -a` in
|
| 8 |
+
*CYGWIN*|*MINGW*|*MSYS*)
|
| 9 |
+
if command -v cygpath > /dev/null 2>&1; then
|
| 10 |
+
basedir_win=`cygpath -w "$basedir"`
|
| 11 |
+
fi
|
| 12 |
+
exe=".exe"
|
| 13 |
+
msys="true"
|
| 14 |
+
;;
|
| 15 |
+
*WSL2*)
|
| 16 |
+
if command -v wslpath > /dev/null 2>&1; then
|
| 17 |
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
| 18 |
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
| 19 |
+
basedir_win="$basedir"
|
| 20 |
+
else
|
| 21 |
+
exe=".exe"
|
| 22 |
+
fi
|
| 23 |
+
fi
|
| 24 |
+
;;
|
| 25 |
+
esac
|
| 26 |
+
|
| 27 |
+
if [ -z "$NODE_PATH" ]; then
|
| 28 |
+
export NODE_PATH="/Users/hongmingtan/.codex/.chatgpt-projects/g-p-69534aeacdb48191b1d999925db783c8/frontend/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/Users/hongmingtan/.codex/.chatgpt-projects/g-p-69534aeacdb48191b1d999925db783c8/frontend/node_modules/.pnpm/semver@6.3.1/node_modules:/Users/hongmingtan/.codex/.chatgpt-projects/g-p-69534aeacdb48191b1d999925db783c8/frontend/node_modules/.pnpm/node_modules"
|
| 29 |
+
else
|
| 30 |
+
export NODE_PATH="/Users/hongmingtan/.codex/.chatgpt-projects/g-p-69534aeacdb48191b1d999925db783c8/frontend/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/Users/hongmingtan/.codex/.chatgpt-projects/g-p-69534aeacdb48191b1d999925db783c8/frontend/node_modules/.pnpm/semver@6.3.1/node_modules:/Users/hongmingtan/.codex/.chatgpt-projects/g-p-69534aeacdb48191b1d999925db783c8/frontend/node_modules/.pnpm/node_modules:$NODE_PATH"
|
| 31 |
+
fi
|
| 32 |
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
| 33 |
+
exec "$basedir/node.exe" "$basedir_win/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
| 34 |
+
elif [ -x "$basedir/node" ]; then
|
| 35 |
+
exec "$basedir/node" "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
| 36 |
+
elif command -v node >/dev/null 2>&1; then
|
| 37 |
+
exec node "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
| 38 |
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
| 39 |
+
exec node.exe "$basedir_win/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
| 40 |
+
else
|
| 41 |
+
exec node "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
| 42 |
+
fi
|
| 43 |
+
# cmd-shim-target=/Users/hongmingtan/.codex/.chatgpt-projects/g-p-69534aeacdb48191b1d999925db783c8/frontend/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/semver.js
|
frontend/node_modules/.pnpm/@babel+helper-compilation-targets@7.29.7/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver (Hong Ming Tan's conflicted copy 2026-08-07)
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
| 3 |
+
|
| 4 |
+
case `uname` in
|
| 5 |
+
*CYGWIN*|*MINGW*|*MSYS*)
|
| 6 |
+
if command -v cygpath > /dev/null 2>&1; then
|
| 7 |
+
basedir=`cygpath -w "$basedir"`
|
| 8 |
+
fi
|
| 9 |
+
;;
|
| 10 |
+
esac
|
| 11 |
+
|
| 12 |
+
if [ -z "$NODE_PATH" ]; then
|
| 13 |
+
export NODE_PATH="/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/semver@6.3.1/node_modules:/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/node_modules"
|
| 14 |
+
else
|
| 15 |
+
export NODE_PATH="/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/semver@6.3.1/node_modules:/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend/node_modules/.pnpm/node_modules:$NODE_PATH"
|
| 16 |
+
fi
|
| 17 |
+
if [ -x "$basedir/node" ]; then
|
| 18 |
+
exec "$basedir/node" "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
| 19 |
+
else
|
| 20 |
+
exec node "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
| 21 |
+
fi
|
frontend/node_modules/.pnpm/@babel+helper-compilation-targets@7.29.7/node_modules/@babel/helper-compilation-targets/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@babel/helper-compilation-targets",
|
| 3 |
+
"version": "7.29.7",
|
| 4 |
+
"author": "The Babel Team (https://babel.dev/team)",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"description": "Helper functions on Babel compilation targets",
|
| 7 |
+
"repository": {
|
| 8 |
+
"type": "git",
|
| 9 |
+
"url": "https://github.com/babel/babel.git",
|
| 10 |
+
"directory": "packages/babel-helper-compilation-targets"
|
| 11 |
+
},
|
| 12 |
+
"main": "./lib/index.js",
|
| 13 |
+
"exports": {
|
| 14 |
+
".": {
|
| 15 |
+
"types": "./lib/index.d.ts",
|
| 16 |
+
"default": "./lib/index.js"
|
| 17 |
+
},
|
| 18 |
+
"./package.json": "./package.json"
|
| 19 |
+
},
|
| 20 |
+
"publishConfig": {
|
| 21 |
+
"access": "public"
|
| 22 |
+
},
|
| 23 |
+
"keywords": [
|
| 24 |
+
"babel",
|
| 25 |
+
"babel-plugin"
|
| 26 |
+
],
|
| 27 |
+
"dependencies": {
|
| 28 |
+
"@babel/compat-data": "^7.29.7",
|
| 29 |
+
"@babel/helper-validator-option": "^7.29.7",
|
| 30 |
+
"browserslist": "^4.24.0",
|
| 31 |
+
"lru-cache": "^5.1.1",
|
| 32 |
+
"semver": "^6.3.1"
|
| 33 |
+
},
|
| 34 |
+
"devDependencies": {
|
| 35 |
+
"@babel/helper-plugin-test-runner": "^7.29.7",
|
| 36 |
+
"@types/lru-cache": "^5.1.1",
|
| 37 |
+
"@types/semver": "^5.5.0"
|
| 38 |
+
},
|
| 39 |
+
"engines": {
|
| 40 |
+
"node": ">=6.9.0"
|
| 41 |
+
},
|
| 42 |
+
"type": "commonjs"
|
| 43 |
+
}
|
frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 6 |
+
a copy of this software and associated documentation files (the
|
| 7 |
+
"Software"), to deal in the Software without restriction, including
|
| 8 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 9 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 10 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 11 |
+
the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be
|
| 14 |
+
included in all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 17 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 18 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 19 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 20 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 21 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 22 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @babel/helper-globals
|
| 2 |
+
|
| 3 |
+
> A collection of JavaScript globals for Babel internal usage
|
| 4 |
+
|
| 5 |
+
See our website [@babel/helper-globals](https://babeljs.io/docs/babel-helper-globals) for more information.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Using npm:
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
npm install --save @babel/helper-globals
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
or using yarn:
|
| 16 |
+
|
| 17 |
+
```sh
|
| 18 |
+
yarn add @babel/helper-globals
|
| 19 |
+
```
|
frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/data/browser-upper.json
ADDED
|
@@ -0,0 +1,911 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"AbortController",
|
| 3 |
+
"AbortSignal",
|
| 4 |
+
"AbsoluteOrientationSensor",
|
| 5 |
+
"AbstractRange",
|
| 6 |
+
"Accelerometer",
|
| 7 |
+
"AI",
|
| 8 |
+
"AICreateMonitor",
|
| 9 |
+
"AITextSession",
|
| 10 |
+
"AnalyserNode",
|
| 11 |
+
"Animation",
|
| 12 |
+
"AnimationEffect",
|
| 13 |
+
"AnimationEvent",
|
| 14 |
+
"AnimationPlaybackEvent",
|
| 15 |
+
"AnimationTimeline",
|
| 16 |
+
"AsyncDisposableStack",
|
| 17 |
+
"Attr",
|
| 18 |
+
"Audio",
|
| 19 |
+
"AudioBuffer",
|
| 20 |
+
"AudioBufferSourceNode",
|
| 21 |
+
"AudioContext",
|
| 22 |
+
"AudioData",
|
| 23 |
+
"AudioDecoder",
|
| 24 |
+
"AudioDestinationNode",
|
| 25 |
+
"AudioEncoder",
|
| 26 |
+
"AudioListener",
|
| 27 |
+
"AudioNode",
|
| 28 |
+
"AudioParam",
|
| 29 |
+
"AudioParamMap",
|
| 30 |
+
"AudioProcessingEvent",
|
| 31 |
+
"AudioScheduledSourceNode",
|
| 32 |
+
"AudioSinkInfo",
|
| 33 |
+
"AudioWorklet",
|
| 34 |
+
"AudioWorkletGlobalScope",
|
| 35 |
+
"AudioWorkletNode",
|
| 36 |
+
"AudioWorkletProcessor",
|
| 37 |
+
"AuthenticatorAssertionResponse",
|
| 38 |
+
"AuthenticatorAttestationResponse",
|
| 39 |
+
"AuthenticatorResponse",
|
| 40 |
+
"BackgroundFetchManager",
|
| 41 |
+
"BackgroundFetchRecord",
|
| 42 |
+
"BackgroundFetchRegistration",
|
| 43 |
+
"BarcodeDetector",
|
| 44 |
+
"BarProp",
|
| 45 |
+
"BaseAudioContext",
|
| 46 |
+
"BatteryManager",
|
| 47 |
+
"BeforeUnloadEvent",
|
| 48 |
+
"BiquadFilterNode",
|
| 49 |
+
"Blob",
|
| 50 |
+
"BlobEvent",
|
| 51 |
+
"Bluetooth",
|
| 52 |
+
"BluetoothCharacteristicProperties",
|
| 53 |
+
"BluetoothDevice",
|
| 54 |
+
"BluetoothRemoteGATTCharacteristic",
|
| 55 |
+
"BluetoothRemoteGATTDescriptor",
|
| 56 |
+
"BluetoothRemoteGATTServer",
|
| 57 |
+
"BluetoothRemoteGATTService",
|
| 58 |
+
"BluetoothUUID",
|
| 59 |
+
"BroadcastChannel",
|
| 60 |
+
"BrowserCaptureMediaStreamTrack",
|
| 61 |
+
"ByteLengthQueuingStrategy",
|
| 62 |
+
"Cache",
|
| 63 |
+
"CacheStorage",
|
| 64 |
+
"CanvasCaptureMediaStream",
|
| 65 |
+
"CanvasCaptureMediaStreamTrack",
|
| 66 |
+
"CanvasGradient",
|
| 67 |
+
"CanvasPattern",
|
| 68 |
+
"CanvasRenderingContext2D",
|
| 69 |
+
"CaptureController",
|
| 70 |
+
"CaretPosition",
|
| 71 |
+
"CDATASection",
|
| 72 |
+
"ChannelMergerNode",
|
| 73 |
+
"ChannelSplitterNode",
|
| 74 |
+
"ChapterInformation",
|
| 75 |
+
"CharacterBoundsUpdateEvent",
|
| 76 |
+
"CharacterData",
|
| 77 |
+
"Clipboard",
|
| 78 |
+
"ClipboardEvent",
|
| 79 |
+
"ClipboardItem",
|
| 80 |
+
"CloseEvent",
|
| 81 |
+
"CloseWatcher",
|
| 82 |
+
"CommandEvent",
|
| 83 |
+
"Comment",
|
| 84 |
+
"CompositionEvent",
|
| 85 |
+
"CompressionStream",
|
| 86 |
+
"ConstantSourceNode",
|
| 87 |
+
"ContentVisibilityAutoStateChangeEvent",
|
| 88 |
+
"ConvolverNode",
|
| 89 |
+
"CookieChangeEvent",
|
| 90 |
+
"CookieDeprecationLabel",
|
| 91 |
+
"CookieStore",
|
| 92 |
+
"CookieStoreManager",
|
| 93 |
+
"CountQueuingStrategy",
|
| 94 |
+
"Credential",
|
| 95 |
+
"CredentialsContainer",
|
| 96 |
+
"CropTarget",
|
| 97 |
+
"Crypto",
|
| 98 |
+
"CryptoKey",
|
| 99 |
+
"CSPViolationReportBody",
|
| 100 |
+
"CSS",
|
| 101 |
+
"CSSAnimation",
|
| 102 |
+
"CSSConditionRule",
|
| 103 |
+
"CSSContainerRule",
|
| 104 |
+
"CSSCounterStyleRule",
|
| 105 |
+
"CSSFontFaceRule",
|
| 106 |
+
"CSSFontFeatureValuesRule",
|
| 107 |
+
"CSSFontPaletteValuesRule",
|
| 108 |
+
"CSSGroupingRule",
|
| 109 |
+
"CSSImageValue",
|
| 110 |
+
"CSSImportRule",
|
| 111 |
+
"CSSKeyframeRule",
|
| 112 |
+
"CSSKeyframesRule",
|
| 113 |
+
"CSSKeywordValue",
|
| 114 |
+
"CSSLayerBlockRule",
|
| 115 |
+
"CSSLayerStatementRule",
|
| 116 |
+
"CSSMarginRule",
|
| 117 |
+
"CSSMathClamp",
|
| 118 |
+
"CSSMathInvert",
|
| 119 |
+
"CSSMathMax",
|
| 120 |
+
"CSSMathMin",
|
| 121 |
+
"CSSMathNegate",
|
| 122 |
+
"CSSMathProduct",
|
| 123 |
+
"CSSMathSum",
|
| 124 |
+
"CSSMathValue",
|
| 125 |
+
"CSSMatrixComponent",
|
| 126 |
+
"CSSMediaRule",
|
| 127 |
+
"CSSNamespaceRule",
|
| 128 |
+
"CSSNestedDeclarations",
|
| 129 |
+
"CSSNumericArray",
|
| 130 |
+
"CSSNumericValue",
|
| 131 |
+
"CSSPageDescriptors",
|
| 132 |
+
"CSSPageRule",
|
| 133 |
+
"CSSPerspective",
|
| 134 |
+
"CSSPositionTryDescriptors",
|
| 135 |
+
"CSSPositionTryRule",
|
| 136 |
+
"CSSPositionValue",
|
| 137 |
+
"CSSPropertyRule",
|
| 138 |
+
"CSSRotate",
|
| 139 |
+
"CSSRule",
|
| 140 |
+
"CSSRuleList",
|
| 141 |
+
"CSSScale",
|
| 142 |
+
"CSSScopeRule",
|
| 143 |
+
"CSSSkew",
|
| 144 |
+
"CSSSkewX",
|
| 145 |
+
"CSSSkewY",
|
| 146 |
+
"CSSStartingStyleRule",
|
| 147 |
+
"CSSStyleDeclaration",
|
| 148 |
+
"CSSStyleRule",
|
| 149 |
+
"CSSStyleSheet",
|
| 150 |
+
"CSSStyleValue",
|
| 151 |
+
"CSSSupportsRule",
|
| 152 |
+
"CSSTransformComponent",
|
| 153 |
+
"CSSTransformValue",
|
| 154 |
+
"CSSTransition",
|
| 155 |
+
"CSSTranslate",
|
| 156 |
+
"CSSUnitValue",
|
| 157 |
+
"CSSUnparsedValue",
|
| 158 |
+
"CSSVariableReferenceValue",
|
| 159 |
+
"CSSViewTransitionRule",
|
| 160 |
+
"CustomElementRegistry",
|
| 161 |
+
"CustomEvent",
|
| 162 |
+
"CustomStateSet",
|
| 163 |
+
"DataTransfer",
|
| 164 |
+
"DataTransferItem",
|
| 165 |
+
"DataTransferItemList",
|
| 166 |
+
"DecompressionStream",
|
| 167 |
+
"DelayNode",
|
| 168 |
+
"DelegatedInkTrailPresenter",
|
| 169 |
+
"DeviceMotionEvent",
|
| 170 |
+
"DeviceMotionEventAcceleration",
|
| 171 |
+
"DeviceMotionEventRotationRate",
|
| 172 |
+
"DeviceOrientationEvent",
|
| 173 |
+
"DevicePosture",
|
| 174 |
+
"DisposableStack",
|
| 175 |
+
"Document",
|
| 176 |
+
"DocumentFragment",
|
| 177 |
+
"DocumentPictureInPicture",
|
| 178 |
+
"DocumentPictureInPictureEvent",
|
| 179 |
+
"DocumentTimeline",
|
| 180 |
+
"DocumentType",
|
| 181 |
+
"DOMError",
|
| 182 |
+
"DOMException",
|
| 183 |
+
"DOMImplementation",
|
| 184 |
+
"DOMMatrix",
|
| 185 |
+
"DOMMatrixReadOnly",
|
| 186 |
+
"DOMParser",
|
| 187 |
+
"DOMPoint",
|
| 188 |
+
"DOMPointReadOnly",
|
| 189 |
+
"DOMQuad",
|
| 190 |
+
"DOMRect",
|
| 191 |
+
"DOMRectList",
|
| 192 |
+
"DOMRectReadOnly",
|
| 193 |
+
"DOMStringList",
|
| 194 |
+
"DOMStringMap",
|
| 195 |
+
"DOMTokenList",
|
| 196 |
+
"DragEvent",
|
| 197 |
+
"DynamicsCompressorNode",
|
| 198 |
+
"EditContext",
|
| 199 |
+
"Element",
|
| 200 |
+
"ElementInternals",
|
| 201 |
+
"EncodedAudioChunk",
|
| 202 |
+
"EncodedVideoChunk",
|
| 203 |
+
"ErrorEvent",
|
| 204 |
+
"Event",
|
| 205 |
+
"EventCounts",
|
| 206 |
+
"EventSource",
|
| 207 |
+
"EventTarget",
|
| 208 |
+
"External",
|
| 209 |
+
"EyeDropper",
|
| 210 |
+
"FeaturePolicy",
|
| 211 |
+
"FederatedCredential",
|
| 212 |
+
"Fence",
|
| 213 |
+
"FencedFrameConfig",
|
| 214 |
+
"FetchLaterResult",
|
| 215 |
+
"File",
|
| 216 |
+
"FileList",
|
| 217 |
+
"FileReader",
|
| 218 |
+
"FileSystem",
|
| 219 |
+
"FileSystemDirectoryEntry",
|
| 220 |
+
"FileSystemDirectoryHandle",
|
| 221 |
+
"FileSystemDirectoryReader",
|
| 222 |
+
"FileSystemEntry",
|
| 223 |
+
"FileSystemFileEntry",
|
| 224 |
+
"FileSystemFileHandle",
|
| 225 |
+
"FileSystemHandle",
|
| 226 |
+
"FileSystemObserver",
|
| 227 |
+
"FileSystemWritableFileStream",
|
| 228 |
+
"FocusEvent",
|
| 229 |
+
"FontData",
|
| 230 |
+
"FontFace",
|
| 231 |
+
"FontFaceSet",
|
| 232 |
+
"FontFaceSetLoadEvent",
|
| 233 |
+
"FormData",
|
| 234 |
+
"FormDataEvent",
|
| 235 |
+
"FragmentDirective",
|
| 236 |
+
"GainNode",
|
| 237 |
+
"Gamepad",
|
| 238 |
+
"GamepadAxisMoveEvent",
|
| 239 |
+
"GamepadButton",
|
| 240 |
+
"GamepadButtonEvent",
|
| 241 |
+
"GamepadEvent",
|
| 242 |
+
"GamepadHapticActuator",
|
| 243 |
+
"GamepadPose",
|
| 244 |
+
"Geolocation",
|
| 245 |
+
"GeolocationCoordinates",
|
| 246 |
+
"GeolocationPosition",
|
| 247 |
+
"GeolocationPositionError",
|
| 248 |
+
"GPU",
|
| 249 |
+
"GPUAdapter",
|
| 250 |
+
"GPUAdapterInfo",
|
| 251 |
+
"GPUBindGroup",
|
| 252 |
+
"GPUBindGroupLayout",
|
| 253 |
+
"GPUBuffer",
|
| 254 |
+
"GPUBufferUsage",
|
| 255 |
+
"GPUCanvasContext",
|
| 256 |
+
"GPUColorWrite",
|
| 257 |
+
"GPUCommandBuffer",
|
| 258 |
+
"GPUCommandEncoder",
|
| 259 |
+
"GPUCompilationInfo",
|
| 260 |
+
"GPUCompilationMessage",
|
| 261 |
+
"GPUComputePassEncoder",
|
| 262 |
+
"GPUComputePipeline",
|
| 263 |
+
"GPUDevice",
|
| 264 |
+
"GPUDeviceLostInfo",
|
| 265 |
+
"GPUError",
|
| 266 |
+
"GPUExternalTexture",
|
| 267 |
+
"GPUInternalError",
|
| 268 |
+
"GPUMapMode",
|
| 269 |
+
"GPUOutOfMemoryError",
|
| 270 |
+
"GPUPipelineError",
|
| 271 |
+
"GPUPipelineLayout",
|
| 272 |
+
"GPUQuerySet",
|
| 273 |
+
"GPUQueue",
|
| 274 |
+
"GPURenderBundle",
|
| 275 |
+
"GPURenderBundleEncoder",
|
| 276 |
+
"GPURenderPassEncoder",
|
| 277 |
+
"GPURenderPipeline",
|
| 278 |
+
"GPUSampler",
|
| 279 |
+
"GPUShaderModule",
|
| 280 |
+
"GPUShaderStage",
|
| 281 |
+
"GPUSupportedFeatures",
|
| 282 |
+
"GPUSupportedLimits",
|
| 283 |
+
"GPUTexture",
|
| 284 |
+
"GPUTextureUsage",
|
| 285 |
+
"GPUTextureView",
|
| 286 |
+
"GPUUncapturedErrorEvent",
|
| 287 |
+
"GPUValidationError",
|
| 288 |
+
"GravitySensor",
|
| 289 |
+
"Gyroscope",
|
| 290 |
+
"HashChangeEvent",
|
| 291 |
+
"Headers",
|
| 292 |
+
"HID",
|
| 293 |
+
"HIDConnectionEvent",
|
| 294 |
+
"HIDDevice",
|
| 295 |
+
"HIDInputReportEvent",
|
| 296 |
+
"Highlight",
|
| 297 |
+
"HighlightRegistry",
|
| 298 |
+
"History",
|
| 299 |
+
"HTMLAllCollection",
|
| 300 |
+
"HTMLAnchorElement",
|
| 301 |
+
"HTMLAreaElement",
|
| 302 |
+
"HTMLAudioElement",
|
| 303 |
+
"HTMLBaseElement",
|
| 304 |
+
"HTMLBodyElement",
|
| 305 |
+
"HTMLBRElement",
|
| 306 |
+
"HTMLButtonElement",
|
| 307 |
+
"HTMLCanvasElement",
|
| 308 |
+
"HTMLCollection",
|
| 309 |
+
"HTMLDataElement",
|
| 310 |
+
"HTMLDataListElement",
|
| 311 |
+
"HTMLDetailsElement",
|
| 312 |
+
"HTMLDialogElement",
|
| 313 |
+
"HTMLDirectoryElement",
|
| 314 |
+
"HTMLDivElement",
|
| 315 |
+
"HTMLDListElement",
|
| 316 |
+
"HTMLDocument",
|
| 317 |
+
"HTMLElement",
|
| 318 |
+
"HTMLEmbedElement",
|
| 319 |
+
"HTMLFencedFrameElement",
|
| 320 |
+
"HTMLFieldSetElement",
|
| 321 |
+
"HTMLFontElement",
|
| 322 |
+
"HTMLFormControlsCollection",
|
| 323 |
+
"HTMLFormElement",
|
| 324 |
+
"HTMLFrameElement",
|
| 325 |
+
"HTMLFrameSetElement",
|
| 326 |
+
"HTMLHeadElement",
|
| 327 |
+
"HTMLHeadingElement",
|
| 328 |
+
"HTMLHRElement",
|
| 329 |
+
"HTMLHtmlElement",
|
| 330 |
+
"HTMLIFrameElement",
|
| 331 |
+
"HTMLImageElement",
|
| 332 |
+
"HTMLInputElement",
|
| 333 |
+
"HTMLLabelElement",
|
| 334 |
+
"HTMLLegendElement",
|
| 335 |
+
"HTMLLIElement",
|
| 336 |
+
"HTMLLinkElement",
|
| 337 |
+
"HTMLMapElement",
|
| 338 |
+
"HTMLMarqueeElement",
|
| 339 |
+
"HTMLMediaElement",
|
| 340 |
+
"HTMLMenuElement",
|
| 341 |
+
"HTMLMetaElement",
|
| 342 |
+
"HTMLMeterElement",
|
| 343 |
+
"HTMLModElement",
|
| 344 |
+
"HTMLObjectElement",
|
| 345 |
+
"HTMLOListElement",
|
| 346 |
+
"HTMLOptGroupElement",
|
| 347 |
+
"HTMLOptionElement",
|
| 348 |
+
"HTMLOptionsCollection",
|
| 349 |
+
"HTMLOutputElement",
|
| 350 |
+
"HTMLParagraphElement",
|
| 351 |
+
"HTMLParamElement",
|
| 352 |
+
"HTMLPictureElement",
|
| 353 |
+
"HTMLPreElement",
|
| 354 |
+
"HTMLProgressElement",
|
| 355 |
+
"HTMLQuoteElement",
|
| 356 |
+
"HTMLScriptElement",
|
| 357 |
+
"HTMLSelectedContentElement",
|
| 358 |
+
"HTMLSelectElement",
|
| 359 |
+
"HTMLSlotElement",
|
| 360 |
+
"HTMLSourceElement",
|
| 361 |
+
"HTMLSpanElement",
|
| 362 |
+
"HTMLStyleElement",
|
| 363 |
+
"HTMLTableCaptionElement",
|
| 364 |
+
"HTMLTableCellElement",
|
| 365 |
+
"HTMLTableColElement",
|
| 366 |
+
"HTMLTableElement",
|
| 367 |
+
"HTMLTableRowElement",
|
| 368 |
+
"HTMLTableSectionElement",
|
| 369 |
+
"HTMLTemplateElement",
|
| 370 |
+
"HTMLTextAreaElement",
|
| 371 |
+
"HTMLTimeElement",
|
| 372 |
+
"HTMLTitleElement",
|
| 373 |
+
"HTMLTrackElement",
|
| 374 |
+
"HTMLUListElement",
|
| 375 |
+
"HTMLUnknownElement",
|
| 376 |
+
"HTMLVideoElement",
|
| 377 |
+
"IDBCursor",
|
| 378 |
+
"IDBCursorWithValue",
|
| 379 |
+
"IDBDatabase",
|
| 380 |
+
"IDBFactory",
|
| 381 |
+
"IDBIndex",
|
| 382 |
+
"IDBKeyRange",
|
| 383 |
+
"IDBObjectStore",
|
| 384 |
+
"IDBOpenDBRequest",
|
| 385 |
+
"IDBRequest",
|
| 386 |
+
"IDBTransaction",
|
| 387 |
+
"IDBVersionChangeEvent",
|
| 388 |
+
"IdentityCredential",
|
| 389 |
+
"IdentityCredentialError",
|
| 390 |
+
"IdentityProvider",
|
| 391 |
+
"IdleDeadline",
|
| 392 |
+
"IdleDetector",
|
| 393 |
+
"IIRFilterNode",
|
| 394 |
+
"Image",
|
| 395 |
+
"ImageBitmap",
|
| 396 |
+
"ImageBitmapRenderingContext",
|
| 397 |
+
"ImageCapture",
|
| 398 |
+
"ImageData",
|
| 399 |
+
"ImageDecoder",
|
| 400 |
+
"ImageTrack",
|
| 401 |
+
"ImageTrackList",
|
| 402 |
+
"Ink",
|
| 403 |
+
"InputDeviceCapabilities",
|
| 404 |
+
"InputDeviceInfo",
|
| 405 |
+
"InputEvent",
|
| 406 |
+
"IntersectionObserver",
|
| 407 |
+
"IntersectionObserverEntry",
|
| 408 |
+
"Keyboard",
|
| 409 |
+
"KeyboardEvent",
|
| 410 |
+
"KeyboardLayoutMap",
|
| 411 |
+
"KeyframeEffect",
|
| 412 |
+
"LanguageDetector",
|
| 413 |
+
"LargestContentfulPaint",
|
| 414 |
+
"LaunchParams",
|
| 415 |
+
"LaunchQueue",
|
| 416 |
+
"LayoutShift",
|
| 417 |
+
"LayoutShiftAttribution",
|
| 418 |
+
"LinearAccelerationSensor",
|
| 419 |
+
"Location",
|
| 420 |
+
"Lock",
|
| 421 |
+
"LockManager",
|
| 422 |
+
"MathMLElement",
|
| 423 |
+
"MediaCapabilities",
|
| 424 |
+
"MediaCapabilitiesInfo",
|
| 425 |
+
"MediaDeviceInfo",
|
| 426 |
+
"MediaDevices",
|
| 427 |
+
"MediaElementAudioSourceNode",
|
| 428 |
+
"MediaEncryptedEvent",
|
| 429 |
+
"MediaError",
|
| 430 |
+
"MediaKeyError",
|
| 431 |
+
"MediaKeyMessageEvent",
|
| 432 |
+
"MediaKeys",
|
| 433 |
+
"MediaKeySession",
|
| 434 |
+
"MediaKeyStatusMap",
|
| 435 |
+
"MediaKeySystemAccess",
|
| 436 |
+
"MediaList",
|
| 437 |
+
"MediaMetadata",
|
| 438 |
+
"MediaQueryList",
|
| 439 |
+
"MediaQueryListEvent",
|
| 440 |
+
"MediaRecorder",
|
| 441 |
+
"MediaRecorderErrorEvent",
|
| 442 |
+
"MediaSession",
|
| 443 |
+
"MediaSource",
|
| 444 |
+
"MediaSourceHandle",
|
| 445 |
+
"MediaStream",
|
| 446 |
+
"MediaStreamAudioDestinationNode",
|
| 447 |
+
"MediaStreamAudioSourceNode",
|
| 448 |
+
"MediaStreamEvent",
|
| 449 |
+
"MediaStreamTrack",
|
| 450 |
+
"MediaStreamTrackAudioSourceNode",
|
| 451 |
+
"MediaStreamTrackAudioStats",
|
| 452 |
+
"MediaStreamTrackEvent",
|
| 453 |
+
"MediaStreamTrackGenerator",
|
| 454 |
+
"MediaStreamTrackProcessor",
|
| 455 |
+
"MediaStreamTrackVideoStats",
|
| 456 |
+
"MessageChannel",
|
| 457 |
+
"MessageEvent",
|
| 458 |
+
"MessagePort",
|
| 459 |
+
"MIDIAccess",
|
| 460 |
+
"MIDIConnectionEvent",
|
| 461 |
+
"MIDIInput",
|
| 462 |
+
"MIDIInputMap",
|
| 463 |
+
"MIDIMessageEvent",
|
| 464 |
+
"MIDIOutput",
|
| 465 |
+
"MIDIOutputMap",
|
| 466 |
+
"MIDIPort",
|
| 467 |
+
"MimeType",
|
| 468 |
+
"MimeTypeArray",
|
| 469 |
+
"ModelGenericSession",
|
| 470 |
+
"ModelManager",
|
| 471 |
+
"MouseEvent",
|
| 472 |
+
"MutationEvent",
|
| 473 |
+
"MutationObserver",
|
| 474 |
+
"MutationRecord",
|
| 475 |
+
"NamedNodeMap",
|
| 476 |
+
"NavigateEvent",
|
| 477 |
+
"Navigation",
|
| 478 |
+
"NavigationActivation",
|
| 479 |
+
"NavigationCurrentEntryChangeEvent",
|
| 480 |
+
"NavigationDestination",
|
| 481 |
+
"NavigationHistoryEntry",
|
| 482 |
+
"NavigationPreloadManager",
|
| 483 |
+
"NavigationTransition",
|
| 484 |
+
"Navigator",
|
| 485 |
+
"NavigatorLogin",
|
| 486 |
+
"NavigatorManagedData",
|
| 487 |
+
"NavigatorUAData",
|
| 488 |
+
"NetworkInformation",
|
| 489 |
+
"Node",
|
| 490 |
+
"NodeFilter",
|
| 491 |
+
"NodeIterator",
|
| 492 |
+
"NodeList",
|
| 493 |
+
"Notification",
|
| 494 |
+
"NotifyPaintEvent",
|
| 495 |
+
"NotRestoredReasonDetails",
|
| 496 |
+
"NotRestoredReasons",
|
| 497 |
+
"Observable",
|
| 498 |
+
"OfflineAudioCompletionEvent",
|
| 499 |
+
"OfflineAudioContext",
|
| 500 |
+
"OffscreenCanvas",
|
| 501 |
+
"OffscreenCanvasRenderingContext2D",
|
| 502 |
+
"Option",
|
| 503 |
+
"OrientationSensor",
|
| 504 |
+
"OscillatorNode",
|
| 505 |
+
"OTPCredential",
|
| 506 |
+
"OverconstrainedError",
|
| 507 |
+
"PageRevealEvent",
|
| 508 |
+
"PageSwapEvent",
|
| 509 |
+
"PageTransitionEvent",
|
| 510 |
+
"PannerNode",
|
| 511 |
+
"PasswordCredential",
|
| 512 |
+
"Path2D",
|
| 513 |
+
"PaymentAddress",
|
| 514 |
+
"PaymentManager",
|
| 515 |
+
"PaymentMethodChangeEvent",
|
| 516 |
+
"PaymentRequest",
|
| 517 |
+
"PaymentRequestUpdateEvent",
|
| 518 |
+
"PaymentResponse",
|
| 519 |
+
"Performance",
|
| 520 |
+
"PerformanceElementTiming",
|
| 521 |
+
"PerformanceEntry",
|
| 522 |
+
"PerformanceEventTiming",
|
| 523 |
+
"PerformanceLongAnimationFrameTiming",
|
| 524 |
+
"PerformanceLongTaskTiming",
|
| 525 |
+
"PerformanceMark",
|
| 526 |
+
"PerformanceMeasure",
|
| 527 |
+
"PerformanceNavigation",
|
| 528 |
+
"PerformanceNavigationTiming",
|
| 529 |
+
"PerformanceObserver",
|
| 530 |
+
"PerformanceObserverEntryList",
|
| 531 |
+
"PerformancePaintTiming",
|
| 532 |
+
"PerformanceResourceTiming",
|
| 533 |
+
"PerformanceScriptTiming",
|
| 534 |
+
"PerformanceServerTiming",
|
| 535 |
+
"PerformanceTiming",
|
| 536 |
+
"PeriodicSyncManager",
|
| 537 |
+
"PeriodicWave",
|
| 538 |
+
"Permissions",
|
| 539 |
+
"PermissionStatus",
|
| 540 |
+
"PERSISTENT",
|
| 541 |
+
"PictureInPictureEvent",
|
| 542 |
+
"PictureInPictureWindow",
|
| 543 |
+
"Plugin",
|
| 544 |
+
"PluginArray",
|
| 545 |
+
"PointerEvent",
|
| 546 |
+
"PopStateEvent",
|
| 547 |
+
"Presentation",
|
| 548 |
+
"PresentationAvailability",
|
| 549 |
+
"PresentationConnection",
|
| 550 |
+
"PresentationConnectionAvailableEvent",
|
| 551 |
+
"PresentationConnectionCloseEvent",
|
| 552 |
+
"PresentationConnectionList",
|
| 553 |
+
"PresentationReceiver",
|
| 554 |
+
"PresentationRequest",
|
| 555 |
+
"PressureObserver",
|
| 556 |
+
"PressureRecord",
|
| 557 |
+
"ProcessingInstruction",
|
| 558 |
+
"Profiler",
|
| 559 |
+
"ProgressEvent",
|
| 560 |
+
"PromiseRejectionEvent",
|
| 561 |
+
"ProtectedAudience",
|
| 562 |
+
"PublicKeyCredential",
|
| 563 |
+
"PushManager",
|
| 564 |
+
"PushSubscription",
|
| 565 |
+
"PushSubscriptionOptions",
|
| 566 |
+
"RadioNodeList",
|
| 567 |
+
"Range",
|
| 568 |
+
"ReadableByteStreamController",
|
| 569 |
+
"ReadableStream",
|
| 570 |
+
"ReadableStreamBYOBReader",
|
| 571 |
+
"ReadableStreamBYOBRequest",
|
| 572 |
+
"ReadableStreamDefaultController",
|
| 573 |
+
"ReadableStreamDefaultReader",
|
| 574 |
+
"RelativeOrientationSensor",
|
| 575 |
+
"RemotePlayback",
|
| 576 |
+
"ReportBody",
|
| 577 |
+
"ReportingObserver",
|
| 578 |
+
"Request",
|
| 579 |
+
"ResizeObserver",
|
| 580 |
+
"ResizeObserverEntry",
|
| 581 |
+
"ResizeObserverSize",
|
| 582 |
+
"Response",
|
| 583 |
+
"RestrictionTarget",
|
| 584 |
+
"RTCCertificate",
|
| 585 |
+
"RTCDataChannel",
|
| 586 |
+
"RTCDataChannelEvent",
|
| 587 |
+
"RTCDtlsTransport",
|
| 588 |
+
"RTCDTMFSender",
|
| 589 |
+
"RTCDTMFToneChangeEvent",
|
| 590 |
+
"RTCEncodedAudioFrame",
|
| 591 |
+
"RTCEncodedVideoFrame",
|
| 592 |
+
"RTCError",
|
| 593 |
+
"RTCErrorEvent",
|
| 594 |
+
"RTCIceCandidate",
|
| 595 |
+
"RTCIceTransport",
|
| 596 |
+
"RTCPeerConnection",
|
| 597 |
+
"RTCPeerConnectionIceErrorEvent",
|
| 598 |
+
"RTCPeerConnectionIceEvent",
|
| 599 |
+
"RTCRtpReceiver",
|
| 600 |
+
"RTCRtpScriptTransform",
|
| 601 |
+
"RTCRtpSender",
|
| 602 |
+
"RTCRtpTransceiver",
|
| 603 |
+
"RTCSctpTransport",
|
| 604 |
+
"RTCSessionDescription",
|
| 605 |
+
"RTCStatsReport",
|
| 606 |
+
"RTCTrackEvent",
|
| 607 |
+
"Scheduler",
|
| 608 |
+
"Scheduling",
|
| 609 |
+
"Screen",
|
| 610 |
+
"ScreenDetailed",
|
| 611 |
+
"ScreenDetails",
|
| 612 |
+
"ScreenOrientation",
|
| 613 |
+
"ScriptProcessorNode",
|
| 614 |
+
"ScrollTimeline",
|
| 615 |
+
"SecurityPolicyViolationEvent",
|
| 616 |
+
"Selection",
|
| 617 |
+
"Sensor",
|
| 618 |
+
"SensorErrorEvent",
|
| 619 |
+
"Serial",
|
| 620 |
+
"SerialPort",
|
| 621 |
+
"ServiceWorker",
|
| 622 |
+
"ServiceWorkerContainer",
|
| 623 |
+
"ServiceWorkerRegistration",
|
| 624 |
+
"ShadowRoot",
|
| 625 |
+
"SharedStorage",
|
| 626 |
+
"SharedStorageAppendMethod",
|
| 627 |
+
"SharedStorageClearMethod",
|
| 628 |
+
"SharedStorageDeleteMethod",
|
| 629 |
+
"SharedStorageModifierMethod",
|
| 630 |
+
"SharedStorageSetMethod",
|
| 631 |
+
"SharedStorageWorklet",
|
| 632 |
+
"SharedWorker",
|
| 633 |
+
"SnapEvent",
|
| 634 |
+
"SourceBuffer",
|
| 635 |
+
"SourceBufferList",
|
| 636 |
+
"SpeechSynthesis",
|
| 637 |
+
"SpeechSynthesisErrorEvent",
|
| 638 |
+
"SpeechSynthesisEvent",
|
| 639 |
+
"SpeechSynthesisUtterance",
|
| 640 |
+
"SpeechSynthesisVoice",
|
| 641 |
+
"StaticRange",
|
| 642 |
+
"StereoPannerNode",
|
| 643 |
+
"Storage",
|
| 644 |
+
"StorageBucket",
|
| 645 |
+
"StorageBucketManager",
|
| 646 |
+
"StorageEvent",
|
| 647 |
+
"StorageManager",
|
| 648 |
+
"StylePropertyMap",
|
| 649 |
+
"StylePropertyMapReadOnly",
|
| 650 |
+
"StyleSheet",
|
| 651 |
+
"StyleSheetList",
|
| 652 |
+
"SubmitEvent",
|
| 653 |
+
"Subscriber",
|
| 654 |
+
"SubtleCrypto",
|
| 655 |
+
"SuppressedError",
|
| 656 |
+
"SVGAElement",
|
| 657 |
+
"SVGAngle",
|
| 658 |
+
"SVGAnimatedAngle",
|
| 659 |
+
"SVGAnimatedBoolean",
|
| 660 |
+
"SVGAnimatedEnumeration",
|
| 661 |
+
"SVGAnimatedInteger",
|
| 662 |
+
"SVGAnimatedLength",
|
| 663 |
+
"SVGAnimatedLengthList",
|
| 664 |
+
"SVGAnimatedNumber",
|
| 665 |
+
"SVGAnimatedNumberList",
|
| 666 |
+
"SVGAnimatedPreserveAspectRatio",
|
| 667 |
+
"SVGAnimatedRect",
|
| 668 |
+
"SVGAnimatedString",
|
| 669 |
+
"SVGAnimatedTransformList",
|
| 670 |
+
"SVGAnimateElement",
|
| 671 |
+
"SVGAnimateMotionElement",
|
| 672 |
+
"SVGAnimateTransformElement",
|
| 673 |
+
"SVGAnimationElement",
|
| 674 |
+
"SVGCircleElement",
|
| 675 |
+
"SVGClipPathElement",
|
| 676 |
+
"SVGComponentTransferFunctionElement",
|
| 677 |
+
"SVGDefsElement",
|
| 678 |
+
"SVGDescElement",
|
| 679 |
+
"SVGElement",
|
| 680 |
+
"SVGEllipseElement",
|
| 681 |
+
"SVGFEBlendElement",
|
| 682 |
+
"SVGFEColorMatrixElement",
|
| 683 |
+
"SVGFEComponentTransferElement",
|
| 684 |
+
"SVGFECompositeElement",
|
| 685 |
+
"SVGFEConvolveMatrixElement",
|
| 686 |
+
"SVGFEDiffuseLightingElement",
|
| 687 |
+
"SVGFEDisplacementMapElement",
|
| 688 |
+
"SVGFEDistantLightElement",
|
| 689 |
+
"SVGFEDropShadowElement",
|
| 690 |
+
"SVGFEFloodElement",
|
| 691 |
+
"SVGFEFuncAElement",
|
| 692 |
+
"SVGFEFuncBElement",
|
| 693 |
+
"SVGFEFuncGElement",
|
| 694 |
+
"SVGFEFuncRElement",
|
| 695 |
+
"SVGFEGaussianBlurElement",
|
| 696 |
+
"SVGFEImageElement",
|
| 697 |
+
"SVGFEMergeElement",
|
| 698 |
+
"SVGFEMergeNodeElement",
|
| 699 |
+
"SVGFEMorphologyElement",
|
| 700 |
+
"SVGFEOffsetElement",
|
| 701 |
+
"SVGFEPointLightElement",
|
| 702 |
+
"SVGFESpecularLightingElement",
|
| 703 |
+
"SVGFESpotLightElement",
|
| 704 |
+
"SVGFETileElement",
|
| 705 |
+
"SVGFETurbulenceElement",
|
| 706 |
+
"SVGFilterElement",
|
| 707 |
+
"SVGForeignObjectElement",
|
| 708 |
+
"SVGGElement",
|
| 709 |
+
"SVGGeometryElement",
|
| 710 |
+
"SVGGradientElement",
|
| 711 |
+
"SVGGraphicsElement",
|
| 712 |
+
"SVGImageElement",
|
| 713 |
+
"SVGLength",
|
| 714 |
+
"SVGLengthList",
|
| 715 |
+
"SVGLinearGradientElement",
|
| 716 |
+
"SVGLineElement",
|
| 717 |
+
"SVGMarkerElement",
|
| 718 |
+
"SVGMaskElement",
|
| 719 |
+
"SVGMatrix",
|
| 720 |
+
"SVGMetadataElement",
|
| 721 |
+
"SVGMPathElement",
|
| 722 |
+
"SVGNumber",
|
| 723 |
+
"SVGNumberList",
|
| 724 |
+
"SVGPathElement",
|
| 725 |
+
"SVGPatternElement",
|
| 726 |
+
"SVGPoint",
|
| 727 |
+
"SVGPointList",
|
| 728 |
+
"SVGPolygonElement",
|
| 729 |
+
"SVGPolylineElement",
|
| 730 |
+
"SVGPreserveAspectRatio",
|
| 731 |
+
"SVGRadialGradientElement",
|
| 732 |
+
"SVGRect",
|
| 733 |
+
"SVGRectElement",
|
| 734 |
+
"SVGScriptElement",
|
| 735 |
+
"SVGSetElement",
|
| 736 |
+
"SVGStopElement",
|
| 737 |
+
"SVGStringList",
|
| 738 |
+
"SVGStyleElement",
|
| 739 |
+
"SVGSVGElement",
|
| 740 |
+
"SVGSwitchElement",
|
| 741 |
+
"SVGSymbolElement",
|
| 742 |
+
"SVGTextContentElement",
|
| 743 |
+
"SVGTextElement",
|
| 744 |
+
"SVGTextPathElement",
|
| 745 |
+
"SVGTextPositioningElement",
|
| 746 |
+
"SVGTitleElement",
|
| 747 |
+
"SVGTransform",
|
| 748 |
+
"SVGTransformList",
|
| 749 |
+
"SVGTSpanElement",
|
| 750 |
+
"SVGUnitTypes",
|
| 751 |
+
"SVGUseElement",
|
| 752 |
+
"SVGViewElement",
|
| 753 |
+
"SyncManager",
|
| 754 |
+
"TaskAttributionTiming",
|
| 755 |
+
"TaskController",
|
| 756 |
+
"TaskPriorityChangeEvent",
|
| 757 |
+
"TaskSignal",
|
| 758 |
+
"TEMPORARY",
|
| 759 |
+
"Text",
|
| 760 |
+
"TextDecoder",
|
| 761 |
+
"TextDecoderStream",
|
| 762 |
+
"TextEncoder",
|
| 763 |
+
"TextEncoderStream",
|
| 764 |
+
"TextEvent",
|
| 765 |
+
"TextFormat",
|
| 766 |
+
"TextFormatUpdateEvent",
|
| 767 |
+
"TextMetrics",
|
| 768 |
+
"TextTrack",
|
| 769 |
+
"TextTrackCue",
|
| 770 |
+
"TextTrackCueList",
|
| 771 |
+
"TextTrackList",
|
| 772 |
+
"TextUpdateEvent",
|
| 773 |
+
"TimeEvent",
|
| 774 |
+
"TimeRanges",
|
| 775 |
+
"ToggleEvent",
|
| 776 |
+
"Touch",
|
| 777 |
+
"TouchEvent",
|
| 778 |
+
"TouchList",
|
| 779 |
+
"TrackEvent",
|
| 780 |
+
"TransformStream",
|
| 781 |
+
"TransformStreamDefaultController",
|
| 782 |
+
"TransitionEvent",
|
| 783 |
+
"TreeWalker",
|
| 784 |
+
"TrustedHTML",
|
| 785 |
+
"TrustedScript",
|
| 786 |
+
"TrustedScriptURL",
|
| 787 |
+
"TrustedTypePolicy",
|
| 788 |
+
"TrustedTypePolicyFactory",
|
| 789 |
+
"UIEvent",
|
| 790 |
+
"URL",
|
| 791 |
+
"URLPattern",
|
| 792 |
+
"URLSearchParams",
|
| 793 |
+
"USB",
|
| 794 |
+
"USBAlternateInterface",
|
| 795 |
+
"USBConfiguration",
|
| 796 |
+
"USBConnectionEvent",
|
| 797 |
+
"USBDevice",
|
| 798 |
+
"USBEndpoint",
|
| 799 |
+
"USBInterface",
|
| 800 |
+
"USBInTransferResult",
|
| 801 |
+
"USBIsochronousInTransferPacket",
|
| 802 |
+
"USBIsochronousInTransferResult",
|
| 803 |
+
"USBIsochronousOutTransferPacket",
|
| 804 |
+
"USBIsochronousOutTransferResult",
|
| 805 |
+
"USBOutTransferResult",
|
| 806 |
+
"UserActivation",
|
| 807 |
+
"ValidityState",
|
| 808 |
+
"VideoColorSpace",
|
| 809 |
+
"VideoDecoder",
|
| 810 |
+
"VideoEncoder",
|
| 811 |
+
"VideoFrame",
|
| 812 |
+
"VideoPlaybackQuality",
|
| 813 |
+
"ViewTimeline",
|
| 814 |
+
"ViewTransition",
|
| 815 |
+
"ViewTransitionTypeSet",
|
| 816 |
+
"VirtualKeyboard",
|
| 817 |
+
"VirtualKeyboardGeometryChangeEvent",
|
| 818 |
+
"VisibilityStateEntry",
|
| 819 |
+
"VisualViewport",
|
| 820 |
+
"VTTCue",
|
| 821 |
+
"VTTRegion",
|
| 822 |
+
"WakeLock",
|
| 823 |
+
"WakeLockSentinel",
|
| 824 |
+
"WaveShaperNode",
|
| 825 |
+
"WebAssembly",
|
| 826 |
+
"WebGL2RenderingContext",
|
| 827 |
+
"WebGLActiveInfo",
|
| 828 |
+
"WebGLBuffer",
|
| 829 |
+
"WebGLContextEvent",
|
| 830 |
+
"WebGLFramebuffer",
|
| 831 |
+
"WebGLObject",
|
| 832 |
+
"WebGLProgram",
|
| 833 |
+
"WebGLQuery",
|
| 834 |
+
"WebGLRenderbuffer",
|
| 835 |
+
"WebGLRenderingContext",
|
| 836 |
+
"WebGLSampler",
|
| 837 |
+
"WebGLShader",
|
| 838 |
+
"WebGLShaderPrecisionFormat",
|
| 839 |
+
"WebGLSync",
|
| 840 |
+
"WebGLTexture",
|
| 841 |
+
"WebGLTransformFeedback",
|
| 842 |
+
"WebGLUniformLocation",
|
| 843 |
+
"WebGLVertexArrayObject",
|
| 844 |
+
"WebSocket",
|
| 845 |
+
"WebSocketError",
|
| 846 |
+
"WebSocketStream",
|
| 847 |
+
"WebTransport",
|
| 848 |
+
"WebTransportBidirectionalStream",
|
| 849 |
+
"WebTransportDatagramDuplexStream",
|
| 850 |
+
"WebTransportError",
|
| 851 |
+
"WebTransportReceiveStream",
|
| 852 |
+
"WebTransportSendStream",
|
| 853 |
+
"WGSLLanguageFeatures",
|
| 854 |
+
"WheelEvent",
|
| 855 |
+
"Window",
|
| 856 |
+
"WindowControlsOverlay",
|
| 857 |
+
"WindowControlsOverlayGeometryChangeEvent",
|
| 858 |
+
"Worker",
|
| 859 |
+
"Worklet",
|
| 860 |
+
"WorkletGlobalScope",
|
| 861 |
+
"WritableStream",
|
| 862 |
+
"WritableStreamDefaultController",
|
| 863 |
+
"WritableStreamDefaultWriter",
|
| 864 |
+
"XMLDocument",
|
| 865 |
+
"XMLHttpRequest",
|
| 866 |
+
"XMLHttpRequestEventTarget",
|
| 867 |
+
"XMLHttpRequestUpload",
|
| 868 |
+
"XMLSerializer",
|
| 869 |
+
"XPathEvaluator",
|
| 870 |
+
"XPathExpression",
|
| 871 |
+
"XPathResult",
|
| 872 |
+
"XRAnchor",
|
| 873 |
+
"XRAnchorSet",
|
| 874 |
+
"XRBoundedReferenceSpace",
|
| 875 |
+
"XRCamera",
|
| 876 |
+
"XRCPUDepthInformation",
|
| 877 |
+
"XRDepthInformation",
|
| 878 |
+
"XRDOMOverlayState",
|
| 879 |
+
"XRFrame",
|
| 880 |
+
"XRHand",
|
| 881 |
+
"XRHitTestResult",
|
| 882 |
+
"XRHitTestSource",
|
| 883 |
+
"XRInputSource",
|
| 884 |
+
"XRInputSourceArray",
|
| 885 |
+
"XRInputSourceEvent",
|
| 886 |
+
"XRInputSourcesChangeEvent",
|
| 887 |
+
"XRJointPose",
|
| 888 |
+
"XRJointSpace",
|
| 889 |
+
"XRLayer",
|
| 890 |
+
"XRLightEstimate",
|
| 891 |
+
"XRLightProbe",
|
| 892 |
+
"XRPose",
|
| 893 |
+
"XRRay",
|
| 894 |
+
"XRReferenceSpace",
|
| 895 |
+
"XRReferenceSpaceEvent",
|
| 896 |
+
"XRRenderState",
|
| 897 |
+
"XRRigidTransform",
|
| 898 |
+
"XRSession",
|
| 899 |
+
"XRSessionEvent",
|
| 900 |
+
"XRSpace",
|
| 901 |
+
"XRSystem",
|
| 902 |
+
"XRTransientInputHitTestResult",
|
| 903 |
+
"XRTransientInputHitTestSource",
|
| 904 |
+
"XRView",
|
| 905 |
+
"XRViewerPose",
|
| 906 |
+
"XRViewport",
|
| 907 |
+
"XRWebGLBinding",
|
| 908 |
+
"XRWebGLDepthInformation",
|
| 909 |
+
"XRWebGLLayer",
|
| 910 |
+
"XSLTProcessor"
|
| 911 |
+
]
|
frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/data/builtin-lower.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"decodeURI",
|
| 3 |
+
"decodeURIComponent",
|
| 4 |
+
"encodeURI",
|
| 5 |
+
"encodeURIComponent",
|
| 6 |
+
"escape",
|
| 7 |
+
"eval",
|
| 8 |
+
"globalThis",
|
| 9 |
+
"isFinite",
|
| 10 |
+
"isNaN",
|
| 11 |
+
"parseFloat",
|
| 12 |
+
"parseInt",
|
| 13 |
+
"undefined",
|
| 14 |
+
"unescape"
|
| 15 |
+
]
|
frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/data/builtin-upper.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"AggregateError",
|
| 3 |
+
"Array",
|
| 4 |
+
"ArrayBuffer",
|
| 5 |
+
"Atomics",
|
| 6 |
+
"BigInt",
|
| 7 |
+
"BigInt64Array",
|
| 8 |
+
"BigUint64Array",
|
| 9 |
+
"Boolean",
|
| 10 |
+
"DataView",
|
| 11 |
+
"Date",
|
| 12 |
+
"Error",
|
| 13 |
+
"EvalError",
|
| 14 |
+
"FinalizationRegistry",
|
| 15 |
+
"Float16Array",
|
| 16 |
+
"Float32Array",
|
| 17 |
+
"Float64Array",
|
| 18 |
+
"Function",
|
| 19 |
+
"Infinity",
|
| 20 |
+
"Int16Array",
|
| 21 |
+
"Int32Array",
|
| 22 |
+
"Int8Array",
|
| 23 |
+
"Intl",
|
| 24 |
+
"Iterator",
|
| 25 |
+
"JSON",
|
| 26 |
+
"Map",
|
| 27 |
+
"Math",
|
| 28 |
+
"NaN",
|
| 29 |
+
"Number",
|
| 30 |
+
"Object",
|
| 31 |
+
"Promise",
|
| 32 |
+
"Proxy",
|
| 33 |
+
"RangeError",
|
| 34 |
+
"ReferenceError",
|
| 35 |
+
"Reflect",
|
| 36 |
+
"RegExp",
|
| 37 |
+
"Set",
|
| 38 |
+
"SharedArrayBuffer",
|
| 39 |
+
"String",
|
| 40 |
+
"Symbol",
|
| 41 |
+
"SyntaxError",
|
| 42 |
+
"TypeError",
|
| 43 |
+
"Uint16Array",
|
| 44 |
+
"Uint32Array",
|
| 45 |
+
"Uint8Array",
|
| 46 |
+
"Uint8ClampedArray",
|
| 47 |
+
"URIError",
|
| 48 |
+
"WeakMap",
|
| 49 |
+
"WeakRef",
|
| 50 |
+
"WeakSet"
|
| 51 |
+
]
|
frontend/node_modules/.pnpm/@babel+helper-globals@7.29.7/node_modules/@babel/helper-globals/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@babel/helper-globals",
|
| 3 |
+
"version": "7.29.7",
|
| 4 |
+
"author": "The Babel Team (https://babel.dev/team)",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"description": "A collection of JavaScript globals for Babel internal usage",
|
| 7 |
+
"repository": {
|
| 8 |
+
"type": "git",
|
| 9 |
+
"url": "https://github.com/babel/babel.git",
|
| 10 |
+
"directory": "packages/babel-helper-globals"
|
| 11 |
+
},
|
| 12 |
+
"publishConfig": {
|
| 13 |
+
"access": "public"
|
| 14 |
+
},
|
| 15 |
+
"exports": {
|
| 16 |
+
"./data/browser-upper.json": "./data/browser-upper.json",
|
| 17 |
+
"./data/builtin-lower.json": "./data/builtin-lower.json",
|
| 18 |
+
"./data/builtin-upper.json": "./data/builtin-upper.json",
|
| 19 |
+
"./package.json": "./package.json"
|
| 20 |
+
},
|
| 21 |
+
"keywords": [
|
| 22 |
+
"babel",
|
| 23 |
+
"globals"
|
| 24 |
+
],
|
| 25 |
+
"devDependencies": {
|
| 26 |
+
"globals": "^16.1.0"
|
| 27 |
+
},
|
| 28 |
+
"engines": {
|
| 29 |
+
"node": ">=6.9.0"
|
| 30 |
+
},
|
| 31 |
+
"type": "commonjs"
|
| 32 |
+
}
|
frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 6 |
+
a copy of this software and associated documentation files (the
|
| 7 |
+
"Software"), to deal in the Software without restriction, including
|
| 8 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 9 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 10 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 11 |
+
the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be
|
| 14 |
+
included in all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 17 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 18 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 19 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 20 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 21 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 22 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @babel/helper-module-imports
|
| 2 |
+
|
| 3 |
+
> Babel helper functions for inserting module loads
|
| 4 |
+
|
| 5 |
+
See our website [@babel/helper-module-imports](https://babeljs.io/docs/babel-helper-module-imports) for more information.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Using npm:
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
npm install --save @babel/helper-module-imports
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
or using yarn:
|
| 16 |
+
|
| 17 |
+
```sh
|
| 18 |
+
yarn add @babel/helper-module-imports
|
| 19 |
+
```
|
frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/import-builder.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = void 0;
|
| 7 |
+
var _assert = require("assert");
|
| 8 |
+
var _t = require("@babel/types");
|
| 9 |
+
const {
|
| 10 |
+
callExpression,
|
| 11 |
+
cloneNode,
|
| 12 |
+
expressionStatement,
|
| 13 |
+
identifier,
|
| 14 |
+
importDeclaration,
|
| 15 |
+
importDefaultSpecifier,
|
| 16 |
+
importNamespaceSpecifier,
|
| 17 |
+
importSpecifier,
|
| 18 |
+
memberExpression,
|
| 19 |
+
stringLiteral,
|
| 20 |
+
variableDeclaration,
|
| 21 |
+
variableDeclarator
|
| 22 |
+
} = _t;
|
| 23 |
+
class ImportBuilder {
|
| 24 |
+
constructor(importedSource, scope, hub) {
|
| 25 |
+
this._statements = [];
|
| 26 |
+
this._resultName = null;
|
| 27 |
+
this._importedSource = void 0;
|
| 28 |
+
this._scope = scope;
|
| 29 |
+
this._hub = hub;
|
| 30 |
+
this._importedSource = importedSource;
|
| 31 |
+
}
|
| 32 |
+
done() {
|
| 33 |
+
return {
|
| 34 |
+
statements: this._statements,
|
| 35 |
+
resultName: this._resultName
|
| 36 |
+
};
|
| 37 |
+
}
|
| 38 |
+
import() {
|
| 39 |
+
this._statements.push(importDeclaration([], stringLiteral(this._importedSource)));
|
| 40 |
+
return this;
|
| 41 |
+
}
|
| 42 |
+
require() {
|
| 43 |
+
this._statements.push(expressionStatement(callExpression(identifier("require"), [stringLiteral(this._importedSource)])));
|
| 44 |
+
return this;
|
| 45 |
+
}
|
| 46 |
+
namespace(name = "namespace") {
|
| 47 |
+
const local = this._scope.generateUidIdentifier(name);
|
| 48 |
+
const statement = this._statements[this._statements.length - 1];
|
| 49 |
+
_assert(statement.type === "ImportDeclaration");
|
| 50 |
+
_assert(statement.specifiers.length === 0);
|
| 51 |
+
statement.specifiers = [importNamespaceSpecifier(local)];
|
| 52 |
+
this._resultName = cloneNode(local);
|
| 53 |
+
return this;
|
| 54 |
+
}
|
| 55 |
+
default(name) {
|
| 56 |
+
const id = this._scope.generateUidIdentifier(name);
|
| 57 |
+
const statement = this._statements[this._statements.length - 1];
|
| 58 |
+
_assert(statement.type === "ImportDeclaration");
|
| 59 |
+
_assert(statement.specifiers.length === 0);
|
| 60 |
+
statement.specifiers = [importDefaultSpecifier(id)];
|
| 61 |
+
this._resultName = cloneNode(id);
|
| 62 |
+
return this;
|
| 63 |
+
}
|
| 64 |
+
named(name, importName) {
|
| 65 |
+
if (importName === "default") return this.default(name);
|
| 66 |
+
const id = this._scope.generateUidIdentifier(name);
|
| 67 |
+
const statement = this._statements[this._statements.length - 1];
|
| 68 |
+
_assert(statement.type === "ImportDeclaration");
|
| 69 |
+
_assert(statement.specifiers.length === 0);
|
| 70 |
+
statement.specifiers = [importSpecifier(id, identifier(importName))];
|
| 71 |
+
this._resultName = cloneNode(id);
|
| 72 |
+
return this;
|
| 73 |
+
}
|
| 74 |
+
var(name) {
|
| 75 |
+
const id = this._scope.generateUidIdentifier(name);
|
| 76 |
+
let statement = this._statements[this._statements.length - 1];
|
| 77 |
+
if (statement.type !== "ExpressionStatement") {
|
| 78 |
+
_assert(this._resultName);
|
| 79 |
+
statement = expressionStatement(this._resultName);
|
| 80 |
+
this._statements.push(statement);
|
| 81 |
+
}
|
| 82 |
+
this._statements[this._statements.length - 1] = variableDeclaration("var", [variableDeclarator(id, statement.expression)]);
|
| 83 |
+
this._resultName = cloneNode(id);
|
| 84 |
+
return this;
|
| 85 |
+
}
|
| 86 |
+
defaultInterop() {
|
| 87 |
+
return this._interop(this._hub.addHelper("interopRequireDefault"));
|
| 88 |
+
}
|
| 89 |
+
wildcardInterop() {
|
| 90 |
+
return this._interop(this._hub.addHelper("interopRequireWildcard"));
|
| 91 |
+
}
|
| 92 |
+
_interop(callee) {
|
| 93 |
+
const statement = this._statements[this._statements.length - 1];
|
| 94 |
+
if (statement.type === "ExpressionStatement") {
|
| 95 |
+
statement.expression = callExpression(callee, [statement.expression]);
|
| 96 |
+
} else if (statement.type === "VariableDeclaration") {
|
| 97 |
+
_assert(statement.declarations.length === 1);
|
| 98 |
+
statement.declarations[0].init = callExpression(callee, [statement.declarations[0].init]);
|
| 99 |
+
} else {
|
| 100 |
+
_assert.fail("Unexpected type.");
|
| 101 |
+
}
|
| 102 |
+
return this;
|
| 103 |
+
}
|
| 104 |
+
prop(name) {
|
| 105 |
+
const statement = this._statements[this._statements.length - 1];
|
| 106 |
+
if (statement.type === "ExpressionStatement") {
|
| 107 |
+
statement.expression = memberExpression(statement.expression, identifier(name));
|
| 108 |
+
} else if (statement.type === "VariableDeclaration") {
|
| 109 |
+
_assert(statement.declarations.length === 1);
|
| 110 |
+
statement.declarations[0].init = memberExpression(statement.declarations[0].init, identifier(name));
|
| 111 |
+
} else {
|
| 112 |
+
_assert.fail("Unexpected type:" + statement.type);
|
| 113 |
+
}
|
| 114 |
+
return this;
|
| 115 |
+
}
|
| 116 |
+
read(name) {
|
| 117 |
+
this._resultName = memberExpression(this._resultName, identifier(name));
|
| 118 |
+
}
|
| 119 |
+
}
|
| 120 |
+
exports.default = ImportBuilder;
|
| 121 |
+
|
| 122 |
+
//# sourceMappingURL=import-builder.js.map
|
frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/import-builder.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_assert","require","_t","callExpression","cloneNode","expressionStatement","identifier","importDeclaration","importDefaultSpecifier","importNamespaceSpecifier","importSpecifier","memberExpression","stringLiteral","variableDeclaration","variableDeclarator","ImportBuilder","constructor","importedSource","scope","hub","_statements","_resultName","_importedSource","_scope","_hub","done","statements","resultName","import","push","namespace","name","local","generateUidIdentifier","statement","length","assert","type","specifiers","default","id","named","importName","var","expression","defaultInterop","_interop","addHelper","wildcardInterop","callee","declarations","init","fail","prop","read","exports"],"sources":["../src/import-builder.ts"],"sourcesContent":["import assert from \"node:assert\";\nimport {\n callExpression,\n cloneNode,\n expressionStatement,\n identifier,\n importDeclaration,\n importDefaultSpecifier,\n importNamespaceSpecifier,\n importSpecifier,\n memberExpression,\n stringLiteral,\n variableDeclaration,\n variableDeclarator,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { Scope, HubInterface } from \"@babel/traverse\";\n\n/**\n * A class to track and accumulate mutations to the AST that will eventually\n * output a new require/import statement list.\n */\nexport default class ImportBuilder {\n private _statements: t.Statement[] = [];\n private _resultName: t.Identifier | t.MemberExpression = null;\n\n declare _scope: Scope;\n declare _hub: HubInterface;\n private _importedSource: string;\n\n constructor(importedSource: string, scope: Scope, hub: HubInterface) {\n this._scope = scope;\n this._hub = hub;\n this._importedSource = importedSource;\n }\n\n done() {\n return {\n statements: this._statements,\n resultName: this._resultName,\n };\n }\n\n import() {\n this._statements.push(\n importDeclaration([], stringLiteral(this._importedSource)),\n );\n return this;\n }\n\n require() {\n this._statements.push(\n expressionStatement(\n callExpression(identifier(\"require\"), [\n stringLiteral(this._importedSource),\n ]),\n ),\n );\n return this;\n }\n\n namespace(name = \"namespace\") {\n const local = this._scope.generateUidIdentifier(name);\n\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importNamespaceSpecifier(local)];\n this._resultName = cloneNode(local);\n return this;\n }\n default(name: string) {\n const id = this._scope.generateUidIdentifier(name);\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importDefaultSpecifier(id)];\n this._resultName = cloneNode(id);\n return this;\n }\n named(name: string, importName: string) {\n if (importName === \"default\") return this.default(name);\n\n const id = this._scope.generateUidIdentifier(name);\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importSpecifier(id, identifier(importName))];\n this._resultName = cloneNode(id);\n return this;\n }\n\n var(name: string) {\n const id = this._scope.generateUidIdentifier(name);\n let statement = this._statements[this._statements.length - 1];\n if (statement.type !== \"ExpressionStatement\") {\n assert(this._resultName);\n statement = expressionStatement(this._resultName);\n this._statements.push(statement);\n }\n this._statements[this._statements.length - 1] = variableDeclaration(\"var\", [\n variableDeclarator(id, statement.expression),\n ]);\n this._resultName = cloneNode(id);\n return this;\n }\n\n defaultInterop() {\n return this._interop(this._hub.addHelper(\"interopRequireDefault\"));\n }\n wildcardInterop() {\n return this._interop(this._hub.addHelper(\"interopRequireWildcard\"));\n }\n\n _interop(callee: t.Expression) {\n const statement = this._statements[this._statements.length - 1];\n if (statement.type === \"ExpressionStatement\") {\n statement.expression = callExpression(callee, [statement.expression]);\n } else if (statement.type === \"VariableDeclaration\") {\n assert(statement.declarations.length === 1);\n statement.declarations[0].init = callExpression(callee, [\n statement.declarations[0].init,\n ]);\n } else {\n assert.fail(\"Unexpected type.\");\n }\n return this;\n }\n\n prop(name: string) {\n const statement = this._statements[this._statements.length - 1];\n if (statement.type === \"ExpressionStatement\") {\n statement.expression = memberExpression(\n statement.expression,\n identifier(name),\n );\n } else if (statement.type === \"VariableDeclaration\") {\n assert(statement.declarations.length === 1);\n statement.declarations[0].init = memberExpression(\n statement.declarations[0].init,\n identifier(name),\n );\n } else {\n assert.fail(\"Unexpected type:\" + statement.type);\n }\n return this;\n }\n\n read(name: string) {\n this._resultName = memberExpression(this._resultName, identifier(name));\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAasB;EAZpBE,cAAc;EACdC,SAAS;EACTC,mBAAmB;EACnBC,UAAU;EACVC,iBAAiB;EACjBC,sBAAsB;EACtBC,wBAAwB;EACxBC,eAAe;EACfC,gBAAgB;EAChBC,aAAa;EACbC,mBAAmB;EACnBC;AAAkB,IAAAZ,EAAA;AASL,MAAMa,aAAa,CAAC;EAQjCC,W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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = void 0;
|
| 7 |
+
var _assert = require("assert");
|
| 8 |
+
var _t = require("@babel/types");
|
| 9 |
+
var _importBuilder = require("./import-builder.js");
|
| 10 |
+
var _isModule = require("./is-module.js");
|
| 11 |
+
const {
|
| 12 |
+
identifier,
|
| 13 |
+
importSpecifier,
|
| 14 |
+
numericLiteral,
|
| 15 |
+
sequenceExpression,
|
| 16 |
+
isImportDeclaration
|
| 17 |
+
} = _t;
|
| 18 |
+
class ImportInjector {
|
| 19 |
+
constructor(path, importedSource, opts) {
|
| 20 |
+
this._defaultOpts = {
|
| 21 |
+
importedSource: null,
|
| 22 |
+
importedType: "commonjs",
|
| 23 |
+
importedInterop: "babel",
|
| 24 |
+
importingInterop: "babel",
|
| 25 |
+
ensureLiveReference: false,
|
| 26 |
+
ensureNoContext: false,
|
| 27 |
+
importPosition: "before"
|
| 28 |
+
};
|
| 29 |
+
const programPath = path.find(p => p.isProgram());
|
| 30 |
+
this._programPath = programPath;
|
| 31 |
+
this._programScope = programPath.scope;
|
| 32 |
+
this._hub = programPath.hub;
|
| 33 |
+
this._defaultOpts = this._applyDefaults(importedSource, opts, true);
|
| 34 |
+
}
|
| 35 |
+
addDefault(importedSourceIn, opts) {
|
| 36 |
+
return this.addNamed("default", importedSourceIn, opts);
|
| 37 |
+
}
|
| 38 |
+
addNamed(importName, importedSourceIn, opts) {
|
| 39 |
+
_assert(typeof importName === "string");
|
| 40 |
+
return this._generateImport(this._applyDefaults(importedSourceIn, opts), importName);
|
| 41 |
+
}
|
| 42 |
+
addNamespace(importedSourceIn, opts) {
|
| 43 |
+
return this._generateImport(this._applyDefaults(importedSourceIn, opts), null);
|
| 44 |
+
}
|
| 45 |
+
addSideEffect(importedSourceIn, opts) {
|
| 46 |
+
return this._generateImport(this._applyDefaults(importedSourceIn, opts), void 0);
|
| 47 |
+
}
|
| 48 |
+
_applyDefaults(importedSource, opts, isInit = false) {
|
| 49 |
+
let newOpts;
|
| 50 |
+
if (typeof importedSource === "string") {
|
| 51 |
+
newOpts = Object.assign({}, this._defaultOpts, {
|
| 52 |
+
importedSource
|
| 53 |
+
}, opts);
|
| 54 |
+
} else {
|
| 55 |
+
_assert(!opts, "Unexpected secondary arguments.");
|
| 56 |
+
newOpts = Object.assign({}, this._defaultOpts, importedSource);
|
| 57 |
+
}
|
| 58 |
+
if (!isInit && opts) {
|
| 59 |
+
if (opts.nameHint !== undefined) newOpts.nameHint = opts.nameHint;
|
| 60 |
+
if (opts.blockHoist !== undefined) newOpts.blockHoist = opts.blockHoist;
|
| 61 |
+
}
|
| 62 |
+
return newOpts;
|
| 63 |
+
}
|
| 64 |
+
_generateImport(opts, importName) {
|
| 65 |
+
const isDefault = importName === "default";
|
| 66 |
+
const isNamed = !!importName && !isDefault;
|
| 67 |
+
const isNamespace = importName === null;
|
| 68 |
+
const {
|
| 69 |
+
importedSource,
|
| 70 |
+
importedType,
|
| 71 |
+
importedInterop,
|
| 72 |
+
importingInterop,
|
| 73 |
+
ensureLiveReference,
|
| 74 |
+
ensureNoContext,
|
| 75 |
+
nameHint,
|
| 76 |
+
importPosition,
|
| 77 |
+
blockHoist
|
| 78 |
+
} = opts;
|
| 79 |
+
let name = nameHint || importName;
|
| 80 |
+
const isMod = (0, _isModule.default)(this._programPath);
|
| 81 |
+
const isModuleForNode = isMod && importingInterop === "node";
|
| 82 |
+
const isModuleForBabel = isMod && importingInterop === "babel";
|
| 83 |
+
if (importPosition === "after" && !isMod) {
|
| 84 |
+
throw new Error(`"importPosition": "after" is only supported in modules`);
|
| 85 |
+
}
|
| 86 |
+
const builder = new _importBuilder.default(importedSource, this._programScope, this._hub);
|
| 87 |
+
if (importedType === "es6") {
|
| 88 |
+
if (!isModuleForNode && !isModuleForBabel) {
|
| 89 |
+
throw new Error("Cannot import an ES6 module from CommonJS");
|
| 90 |
+
}
|
| 91 |
+
builder.import();
|
| 92 |
+
if (isNamespace) {
|
| 93 |
+
builder.namespace(nameHint || importedSource);
|
| 94 |
+
} else if (isDefault || isNamed) {
|
| 95 |
+
builder.named(name, importName);
|
| 96 |
+
}
|
| 97 |
+
} else if (importedType !== "commonjs") {
|
| 98 |
+
throw new Error(`Unexpected interopType "${importedType}"`);
|
| 99 |
+
} else if (importedInterop === "babel") {
|
| 100 |
+
if (isModuleForNode) {
|
| 101 |
+
name = name !== "default" ? name : importedSource;
|
| 102 |
+
const es6Default = `${importedSource}$es6Default`;
|
| 103 |
+
builder.import();
|
| 104 |
+
if (isNamespace) {
|
| 105 |
+
builder.default(es6Default).var(name || importedSource).wildcardInterop();
|
| 106 |
+
} else if (isDefault) {
|
| 107 |
+
if (ensureLiveReference) {
|
| 108 |
+
builder.default(es6Default).var(name || importedSource).defaultInterop().read("default");
|
| 109 |
+
} else {
|
| 110 |
+
builder.default(es6Default).var(name).defaultInterop().prop(importName);
|
| 111 |
+
}
|
| 112 |
+
} else if (isNamed) {
|
| 113 |
+
builder.default(es6Default).read(importName);
|
| 114 |
+
}
|
| 115 |
+
} else if (isModuleForBabel) {
|
| 116 |
+
builder.import();
|
| 117 |
+
if (isNamespace) {
|
| 118 |
+
builder.namespace(name || importedSource);
|
| 119 |
+
} else if (isDefault || isNamed) {
|
| 120 |
+
builder.named(name, importName);
|
| 121 |
+
}
|
| 122 |
+
} else {
|
| 123 |
+
builder.require();
|
| 124 |
+
if (isNamespace) {
|
| 125 |
+
builder.var(name || importedSource).wildcardInterop();
|
| 126 |
+
} else if ((isDefault || isNamed) && ensureLiveReference) {
|
| 127 |
+
if (isDefault) {
|
| 128 |
+
name = name !== "default" ? name : importedSource;
|
| 129 |
+
builder.var(name).read(importName);
|
| 130 |
+
builder.defaultInterop();
|
| 131 |
+
} else {
|
| 132 |
+
builder.var(importedSource).read(importName);
|
| 133 |
+
}
|
| 134 |
+
} else if (isDefault) {
|
| 135 |
+
builder.var(name).defaultInterop().prop(importName);
|
| 136 |
+
} else if (isNamed) {
|
| 137 |
+
builder.var(name).prop(importName);
|
| 138 |
+
}
|
| 139 |
+
}
|
| 140 |
+
} else if (importedInterop === "compiled") {
|
| 141 |
+
if (isModuleForNode) {
|
| 142 |
+
builder.import();
|
| 143 |
+
if (isNamespace) {
|
| 144 |
+
builder.default(name || importedSource);
|
| 145 |
+
} else if (isDefault || isNamed) {
|
| 146 |
+
builder.default(importedSource).read(name);
|
| 147 |
+
}
|
| 148 |
+
} else if (isModuleForBabel) {
|
| 149 |
+
builder.import();
|
| 150 |
+
if (isNamespace) {
|
| 151 |
+
builder.namespace(name || importedSource);
|
| 152 |
+
} else if (isDefault || isNamed) {
|
| 153 |
+
builder.named(name, importName);
|
| 154 |
+
}
|
| 155 |
+
} else {
|
| 156 |
+
builder.require();
|
| 157 |
+
if (isNamespace) {
|
| 158 |
+
builder.var(name || importedSource);
|
| 159 |
+
} else if (isDefault || isNamed) {
|
| 160 |
+
if (ensureLiveReference) {
|
| 161 |
+
builder.var(importedSource).read(name);
|
| 162 |
+
} else {
|
| 163 |
+
builder.prop(importName).var(name);
|
| 164 |
+
}
|
| 165 |
+
}
|
| 166 |
+
}
|
| 167 |
+
} else if (importedInterop === "uncompiled") {
|
| 168 |
+
if (isDefault && ensureLiveReference) {
|
| 169 |
+
throw new Error("No live reference for commonjs default");
|
| 170 |
+
}
|
| 171 |
+
if (isModuleForNode) {
|
| 172 |
+
builder.import();
|
| 173 |
+
if (isNamespace) {
|
| 174 |
+
builder.default(name || importedSource);
|
| 175 |
+
} else if (isDefault) {
|
| 176 |
+
builder.default(name);
|
| 177 |
+
} else if (isNamed) {
|
| 178 |
+
builder.default(importedSource).read(name);
|
| 179 |
+
}
|
| 180 |
+
} else if (isModuleForBabel) {
|
| 181 |
+
builder.import();
|
| 182 |
+
if (isNamespace) {
|
| 183 |
+
builder.default(name || importedSource);
|
| 184 |
+
} else if (isDefault) {
|
| 185 |
+
builder.default(name);
|
| 186 |
+
} else if (isNamed) {
|
| 187 |
+
builder.named(name, importName);
|
| 188 |
+
}
|
| 189 |
+
} else {
|
| 190 |
+
builder.require();
|
| 191 |
+
if (isNamespace) {
|
| 192 |
+
builder.var(name || importedSource);
|
| 193 |
+
} else if (isDefault) {
|
| 194 |
+
builder.var(name);
|
| 195 |
+
} else if (isNamed) {
|
| 196 |
+
if (ensureLiveReference) {
|
| 197 |
+
builder.var(importedSource).read(name);
|
| 198 |
+
} else {
|
| 199 |
+
builder.var(name).prop(importName);
|
| 200 |
+
}
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
+
} else {
|
| 204 |
+
throw new Error(`Unknown importedInterop "${importedInterop}".`);
|
| 205 |
+
}
|
| 206 |
+
const {
|
| 207 |
+
statements,
|
| 208 |
+
resultName
|
| 209 |
+
} = builder.done();
|
| 210 |
+
this._insertStatements(statements, importPosition, blockHoist);
|
| 211 |
+
if ((isDefault || isNamed) && ensureNoContext && resultName.type !== "Identifier") {
|
| 212 |
+
return sequenceExpression([numericLiteral(0), resultName]);
|
| 213 |
+
}
|
| 214 |
+
return resultName;
|
| 215 |
+
}
|
| 216 |
+
_insertStatements(statements, importPosition = "before", blockHoist = 3) {
|
| 217 |
+
if (importPosition === "after") {
|
| 218 |
+
if (this._insertStatementsAfter(statements)) return;
|
| 219 |
+
} else {
|
| 220 |
+
if (this._insertStatementsBefore(statements, blockHoist)) return;
|
| 221 |
+
}
|
| 222 |
+
this._programPath.unshiftContainer("body", statements);
|
| 223 |
+
}
|
| 224 |
+
_insertStatementsBefore(statements, blockHoist) {
|
| 225 |
+
if (statements.length === 1 && isImportDeclaration(statements[0]) && isValueImport(statements[0])) {
|
| 226 |
+
const firstImportDecl = this._programPath.get("body").find(p => {
|
| 227 |
+
return p.isImportDeclaration() && isValueImport(p.node);
|
| 228 |
+
});
|
| 229 |
+
if ((firstImportDecl == null ? void 0 : firstImportDecl.node.source.value) === statements[0].source.value && maybeAppendImportSpecifiers(firstImportDecl.node, statements[0])) {
|
| 230 |
+
return true;
|
| 231 |
+
}
|
| 232 |
+
}
|
| 233 |
+
statements.forEach(node => {
|
| 234 |
+
node._blockHoist = blockHoist;
|
| 235 |
+
});
|
| 236 |
+
const targetPath = this._programPath.get("body").find(p => {
|
| 237 |
+
const val = p.node._blockHoist;
|
| 238 |
+
return Number.isFinite(val) && val < 4;
|
| 239 |
+
});
|
| 240 |
+
if (targetPath) {
|
| 241 |
+
targetPath.insertBefore(statements);
|
| 242 |
+
return true;
|
| 243 |
+
}
|
| 244 |
+
return false;
|
| 245 |
+
}
|
| 246 |
+
_insertStatementsAfter(statements) {
|
| 247 |
+
const statementsSet = new Set(statements);
|
| 248 |
+
const importDeclarations = new Map();
|
| 249 |
+
for (const statement of statements) {
|
| 250 |
+
if (isImportDeclaration(statement) && isValueImport(statement)) {
|
| 251 |
+
const source = statement.source.value;
|
| 252 |
+
if (!importDeclarations.has(source)) importDeclarations.set(source, []);
|
| 253 |
+
importDeclarations.get(source).push(statement);
|
| 254 |
+
}
|
| 255 |
+
}
|
| 256 |
+
let lastImportPath = null;
|
| 257 |
+
for (const bodyStmt of this._programPath.get("body")) {
|
| 258 |
+
if (bodyStmt.isImportDeclaration() && isValueImport(bodyStmt.node)) {
|
| 259 |
+
lastImportPath = bodyStmt;
|
| 260 |
+
const source = bodyStmt.node.source.value;
|
| 261 |
+
const newImports = importDeclarations.get(source);
|
| 262 |
+
if (!newImports) continue;
|
| 263 |
+
for (const decl of newImports) {
|
| 264 |
+
if (!statementsSet.has(decl)) continue;
|
| 265 |
+
if (maybeAppendImportSpecifiers(bodyStmt.node, decl)) {
|
| 266 |
+
statementsSet.delete(decl);
|
| 267 |
+
}
|
| 268 |
+
}
|
| 269 |
+
}
|
| 270 |
+
}
|
| 271 |
+
if (statementsSet.size === 0) return true;
|
| 272 |
+
if (lastImportPath) lastImportPath.insertAfter(Array.from(statementsSet));
|
| 273 |
+
return !!lastImportPath;
|
| 274 |
+
}
|
| 275 |
+
}
|
| 276 |
+
exports.default = ImportInjector;
|
| 277 |
+
function isValueImport(node) {
|
| 278 |
+
return node.importKind !== "type" && node.importKind !== "typeof";
|
| 279 |
+
}
|
| 280 |
+
function hasNamespaceImport(node) {
|
| 281 |
+
return node.specifiers.length === 1 && node.specifiers[0].type === "ImportNamespaceSpecifier" || node.specifiers.length === 2 && node.specifiers[1].type === "ImportNamespaceSpecifier";
|
| 282 |
+
}
|
| 283 |
+
function hasDefaultImport(node) {
|
| 284 |
+
return node.specifiers.length > 0 && node.specifiers[0].type === "ImportDefaultSpecifier";
|
| 285 |
+
}
|
| 286 |
+
function maybeAppendImportSpecifiers(target, source) {
|
| 287 |
+
if (!target.specifiers.length) {
|
| 288 |
+
target.specifiers = source.specifiers;
|
| 289 |
+
return true;
|
| 290 |
+
}
|
| 291 |
+
if (!source.specifiers.length) return true;
|
| 292 |
+
if (hasNamespaceImport(target) || hasNamespaceImport(source)) return false;
|
| 293 |
+
if (hasDefaultImport(source)) {
|
| 294 |
+
if (hasDefaultImport(target)) {
|
| 295 |
+
source.specifiers[0] = importSpecifier(source.specifiers[0].local, identifier("default"));
|
| 296 |
+
} else {
|
| 297 |
+
target.specifiers.unshift(source.specifiers.shift());
|
| 298 |
+
}
|
| 299 |
+
}
|
| 300 |
+
target.specifiers.push(...source.specifiers);
|
| 301 |
+
return true;
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
//# sourceMappingURL=import-injector.js.map
|
frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/import-injector.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_assert","require","_t","_importBuilder","_isModule","identifier","importSpecifier","numericLiteral","sequenceExpression","isImportDeclaration","ImportInjector","constructor","path","importedSource","opts","_defaultOpts","importedType","importedInterop","importingInterop","ensureLiveReference","ensureNoContext","importPosition","programPath","find","p","isProgram","_programPath","_programScope","scope","_hub","hub","_applyDefaults","addDefault","importedSourceIn","addNamed","importName","assert","_generateImport","addNamespace","addSideEffect","isInit","newOpts","Object","assign","nameHint","undefined","blockHoist","isDefault","isNamed","isNamespace","name","isMod","isModule","isModuleForNode","isModuleForBabel","Error","builder","ImportBuilder","import","namespace","named","es6Default","default","var","wildcardInterop","defaultInterop","read","prop","statements","resultName","done","_insertStatements","type","_insertStatementsAfter","_insertStatementsBefore","unshiftContainer","length","isValueImport","firstImportDecl","get","node","source","value","maybeAppendImportSpecifiers","forEach","_blockHoist","targetPath","val","Number","isFinite","insertBefore","statementsSet","Set","importDeclarations","Map","statement","has","set","push","lastImportPath","bodyStmt","newImports","decl","delete","size","insertAfter","Array","from","exports","importKind","hasNamespaceImport","specifiers","hasDefaultImport","target","local","unshift","shift"],"sources":["../src/import-injector.ts"],"sourcesContent":["import assert from \"node:assert\";\nimport {\n identifier,\n importSpecifier,\n numericLiteral,\n sequenceExpression,\n isImportDeclaration,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { NodePath, Scope, HubInterface } from \"@babel/traverse\";\n\nimport ImportBuilder from \"./import-builder.ts\";\nimport isModule from \"./is-module.ts\";\n\nexport type ImportOptions = {\n /**\n * The module being referenced.\n */\n importedSource: string | null;\n /**\n * The type of module being imported:\n *\n * * 'es6' - An ES6 module.\n * * 'commonjs' - A CommonJS module. (Default)\n */\n importedType: \"es6\" | \"commonjs\";\n /**\n * The type of interop behavior for namespace/default/named when loading\n * CommonJS modules.\n *\n * ## 'babel' (Default)\n *\n * Load using Babel's interop.\n *\n * If '.__esModule' is true, treat as 'compiled', else:\n *\n * * Namespace: A copy of the module.exports with .default\n * populated by the module.exports object.\n * * Default: The module.exports value.\n * * Named: The .named property of module.exports.\n *\n * The 'ensureLiveReference' has no effect on the liveness of these.\n *\n * ## 'compiled'\n *\n * Assume the module is ES6 compiled to CommonJS. Useful to avoid injecting\n * interop logic if you are confident that the module is a certain format.\n *\n * * Namespace: The root module.exports object.\n * * Default: The .default property of the namespace.\n * * Named: The .named property of the namespace.\n *\n * Will return erroneous results if the imported module is _not_ compiled\n * from ES6 with Babel.\n *\n * ## 'uncompiled'\n *\n * Assume the module is _not_ ES6 compiled to CommonJS. Used a simplified\n * access pattern that doesn't require additional function calls.\n *\n * Will return erroneous results if the imported module _is_ compiled\n * from ES6 with Babel.\n *\n * * Namespace: The module.exports object.\n * * Default: The module.exports object.\n * * Named: The .named property of module.exports.\n */\n importedInterop: \"babel\" | \"node\" | \"compiled\" | \"uncompiled\";\n /**\n * The type of CommonJS interop included in the environment that will be\n * loading the output code.\n *\n * * 'babel' - CommonJS modules load with Babel's interop. (Default)\n * * 'node' - CommonJS modules load with Node's interop.\n *\n * See descriptions in 'importedInterop' for more details.\n */\n importingInterop: \"babel\" | \"node\";\n /**\n * Define whether we explicitly care that the import be a live reference.\n * Only applies when importing default and named imports, not the namespace.\n *\n * * true - Force imported values to be live references.\n * * false - No particular requirements. Keeps the code simplest. (Default)\n */\n ensureLiveReference: boolean;\n /**\n * Define if we explicitly care that the result not be a property reference.\n *\n * * true - Force calls to exclude context. Useful if the value is going to\n * be used as function callee.\n * * false - No particular requirements for context of the access. (Default)\n */\n ensureNoContext: boolean;\n /**\n * Define whether the import should be loaded before or after the existing imports.\n * \"after\" is only allowed inside ECMAScript modules, since it's not possible to\n * reliably pick the location _after_ require() calls but _before_ other code in CJS.\n */\n importPosition: \"before\" | \"after\";\n\n nameHint?: string;\n blockHoist?: number;\n};\n\n/**\n * A general helper classes add imports via transforms. See README for usage.\n */\nexport default class ImportInjector {\n /**\n * The path used for manipulation.\n */\n declare _programPath: NodePath<t.Program>;\n\n /**\n * The scope used to generate unique variable names.\n */\n declare _programScope: Scope;\n\n /**\n * The file used to inject helpers and resolve paths.\n */\n declare _hub: HubInterface;\n\n /**\n * The default options to use with this instance when imports are added.\n */\n _defaultOpts: ImportOptions = {\n importedSource: null,\n importedType: \"commonjs\",\n importedInterop: \"babel\",\n importingInterop: \"babel\",\n ensureLiveReference: false,\n ensureNoContext: false,\n importPosition: \"before\",\n };\n\n constructor(\n path: NodePath,\n importedSource?: string,\n opts?: Partial<ImportOptions>,\n ) {\n const programPath = path.find(p => p.isProgram()) as NodePath<t.Program>;\n\n this._programPath = programPath;\n this._programScope = programPath.scope;\n this._hub = programPath.hub;\n\n this._defaultOpts = this._applyDefaults(importedSource, opts, true);\n }\n\n addDefault(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this.addNamed(\"default\", importedSourceIn, opts);\n }\n\n addNamed(\n importName: string,\n importedSourceIn: string,\n opts: Partial<ImportOptions>,\n ) {\n assert(typeof importName === \"string\");\n\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n importName,\n );\n }\n\n addNamespace(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n null,\n );\n }\n\n addSideEffect(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n void 0,\n );\n }\n\n _applyDefaults(\n importedSource: string | Partial<ImportOptions>,\n opts: Partial<ImportOptions> | undefined,\n isInit = false,\n ) {\n let newOpts: ImportOptions;\n if (typeof importedSource === \"string\") {\n newOpts = { ...this._defaultOpts, importedSource, ...opts };\n } else {\n assert(!opts, \"Unexpected secondary arguments.\");\n newOpts = { ...this._defaultOpts, ...importedSource };\n }\n\n if (!isInit && opts) {\n if (opts.nameHint !== undefined) newOpts.nameHint = opts.nameHint;\n if (opts.blockHoist !== undefined) newOpts.blockHoist = opts.blockHoist;\n }\n return newOpts;\n }\n\n _generateImport(\n opts: Partial<ImportOptions>,\n importName: string | null | undefined,\n ) {\n const isDefault = importName === \"default\";\n const isNamed = !!importName && !isDefault;\n const isNamespace = importName === null;\n\n const {\n importedSource,\n importedType,\n importedInterop,\n importingInterop,\n ensureLiveReference,\n ensureNoContext,\n nameHint,\n importPosition,\n\n // Not meant for public usage. Allows code that absolutely must control\n // ordering to set a specific hoist value on the import nodes.\n // This is ignored when \"importPosition\" is \"after\".\n blockHoist,\n } = opts;\n\n // Provide a hint for generateUidIdentifier for the local variable name\n // to use for the import, if the code will generate a simple assignment\n // to a variable.\n let name = nameHint || importName;\n\n const isMod = isModule(this._programPath);\n const isModuleForNode = isMod && importingInterop === \"node\";\n const isModuleForBabel = isMod && importingInterop === \"babel\";\n\n if (importPosition === \"after\" && !isMod) {\n throw new Error(`\"importPosition\": \"after\" is only supported in modules`);\n }\n\n const builder = new ImportBuilder(\n importedSource,\n this._programScope,\n this._hub,\n );\n\n if (importedType === \"es6\") {\n if (!isModuleForNode && !isModuleForBabel) {\n throw new Error(\"Cannot import an ES6 module from CommonJS\");\n }\n\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n builder.import();\n if (isNamespace) {\n builder.namespace(nameHint || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else if (importedType !== \"commonjs\") {\n throw new Error(`Unexpected interopType \"${importedType}\"`);\n } else if (importedInterop === \"babel\") {\n if (isModuleForNode) {\n // import _tmp from ''; var namespace = interopRequireWildcard(_tmp); namespace\n // import _tmp from ''; var def = interopRequireDefault(_tmp).default; def\n // import _tmp from ''; _tmp.named\n name = name !== \"default\" ? name : importedSource;\n const es6Default = `${importedSource}$es6Default`;\n\n builder.import();\n if (isNamespace) {\n builder\n .default(es6Default)\n .var(name || importedSource)\n .wildcardInterop();\n } else if (isDefault) {\n if (ensureLiveReference) {\n builder\n .default(es6Default)\n .var(name || importedSource)\n .defaultInterop()\n .read(\"default\");\n } else {\n builder\n .default(es6Default)\n .var(name)\n .defaultInterop()\n .prop(importName);\n }\n } else if (isNamed) {\n builder.default(es6Default).read(importName);\n }\n } else if (isModuleForBabel) {\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n builder.import();\n if (isNamespace) {\n builder.namespace(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = interopRequireWildcard(require(''));\n // var def = interopRequireDefault(require('')).default; def\n // var named = require('').named; named\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource).wildcardInterop();\n } else if ((isDefault || isNamed) && ensureLiveReference) {\n if (isDefault) {\n name = name !== \"default\" ? name : importedSource;\n builder.var(name).read(importName);\n builder.defaultInterop();\n } else {\n builder.var(importedSource).read(importName);\n }\n } else if (isDefault) {\n builder.var(name).defaultInterop().prop(importName);\n } else if (isNamed) {\n builder.var(name).prop(importName);\n }\n }\n } else if (importedInterop === \"compiled\") {\n if (isModuleForNode) {\n // import namespace from ''; namespace\n // import namespace from ''; namespace.default\n // import namespace from ''; namespace.named\n\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.default(importedSource).read(name);\n }\n } else if (isModuleForBabel) {\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n // Note: These lookups will break if the module has no __esModule set,\n // hence the warning that 'compiled' will not work on standard CommonJS.\n\n builder.import();\n if (isNamespace) {\n builder.namespace(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = require(''); namespace\n // var namespace = require(''); namespace.default\n // var namespace = require(''); namespace.named\n // var named = require('').named;\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource);\n } else if (isDefault || isNamed) {\n if (ensureLiveReference) {\n builder.var(importedSource).read(name);\n } else {\n builder.prop(importName).var(name);\n }\n }\n }\n } else if (importedInterop === \"uncompiled\") {\n if (isDefault && ensureLiveReference) {\n throw new Error(\"No live reference for commonjs default\");\n }\n\n if (isModuleForNode) {\n // import namespace from ''; namespace\n // import def from ''; def;\n // import namespace from ''; namespace.named\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault) {\n builder.default(name);\n } else if (isNamed) {\n builder.default(importedSource).read(name);\n }\n } else if (isModuleForBabel) {\n // import namespace from '';\n // import def from '';\n // import { named } from ''; named;\n // Note: These lookups will break if the module has __esModule set,\n // hence the warning that 'uncompiled' will not work on ES6 transpiled\n // to CommonJS.\n\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault) {\n builder.default(name);\n } else if (isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = require(''); namespace\n // var def = require(''); def\n // var namespace = require(''); namespace.named\n // var named = require('').named;\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource);\n } else if (isDefault) {\n builder.var(name);\n } else if (isNamed) {\n if (ensureLiveReference) {\n builder.var(importedSource).read(name);\n } else {\n builder.var(name).prop(importName);\n }\n }\n }\n } else {\n throw new Error(`Unknown importedInterop \"${importedInterop}\".`);\n }\n\n const { statements, resultName } = builder.done();\n\n this._insertStatements(statements, importPosition, blockHoist);\n\n if (\n (isDefault || isNamed) &&\n ensureNoContext &&\n resultName.type !== \"Identifier\"\n ) {\n return sequenceExpression([numericLiteral(0), resultName]);\n }\n return resultName;\n }\n\n _insertStatements(\n statements: t.Statement[],\n importPosition = \"before\",\n blockHoist = 3,\n ) {\n if (importPosition === \"after\") {\n if (this._insertStatementsAfter(statements)) return;\n } else {\n if (this._insertStatementsBefore(statements, blockHoist)) return;\n }\n\n this._programPath.unshiftContainer(\"body\", statements);\n }\n\n _insertStatementsBefore(statements: t.Statement[], blockHoist: number) {\n if (\n statements.length === 1 &&\n isImportDeclaration(statements[0]) &&\n isValueImport(statements[0])\n ) {\n const firstImportDecl = this._programPath\n .get(\"body\")\n .find((p): p is NodePath<t.ImportDeclaration> => {\n return p.isImportDeclaration() && isValueImport(p.node);\n });\n\n if (\n firstImportDecl?.node.source.value === statements[0].source.value &&\n maybeAppendImportSpecifiers(firstImportDecl.node, statements[0])\n ) {\n return true;\n }\n }\n\n statements.forEach(node => {\n // @ts-expect-error handle _blockHoist\n node._blockHoist = blockHoist;\n });\n\n const targetPath = this._programPath.get(\"body\").find(p => {\n // @ts-expect-error todo(flow->ts): avoid mutations\n const val = p.node._blockHoist;\n return Number.isFinite(val) && val < 4;\n });\n\n if (targetPath) {\n targetPath.insertBefore(statements);\n return true;\n }\n\n return false;\n }\n\n _insertStatementsAfter(statements: t.Statement[]): boolean {\n const statementsSet = new Set(statements);\n const importDeclarations = new Map<string, t.ImportDeclaration[]>();\n\n for (const statement of statements) {\n if (isImportDeclaration(statement) && isValueImport(statement)) {\n const source = statement.source.value;\n if (!importDeclarations.has(source)) importDeclarations.set(source, []);\n importDeclarations.get(source).push(statement);\n }\n }\n\n let lastImportPath = null;\n for (const bodyStmt of this._programPath.get(\"body\")) {\n if (bodyStmt.isImportDeclaration() && isValueImport(bodyStmt.node)) {\n lastImportPath = bodyStmt;\n\n const source = bodyStmt.node.source.value;\n const newImports = importDeclarations.get(source);\n if (!newImports) continue;\n\n for (const decl of newImports) {\n if (!statementsSet.has(decl)) continue;\n if (maybeAppendImportSpecifiers(bodyStmt.node, decl)) {\n statementsSet.delete(decl);\n }\n }\n }\n }\n\n if (statementsSet.size === 0) return true;\n\n if (lastImportPath) lastImportPath.insertAfter(Array.from(statementsSet));\n\n return !!lastImportPath;\n }\n}\n\nfunction isValueImport(node: t.ImportDeclaration) {\n return node.importKind !== \"type\" && node.importKind !== \"typeof\";\n}\n\nfunction hasNamespaceImport(node: t.ImportDeclaration) {\n return (\n (node.specifiers.length === 1 &&\n node.specifiers[0].type === \"ImportNamespaceSpecifier\") ||\n (node.specifiers.length === 2 &&\n node.specifiers[1].type === \"ImportNamespaceSpecifier\")\n );\n}\n\nfunction hasDefaultImport(node: t.ImportDeclaration) {\n return (\n node.specifiers.length > 0 &&\n node.specifiers[0].type === \"ImportDefaultSpecifier\"\n );\n}\n\nfunction maybeAppendImportSpecifiers(\n target: t.ImportDeclaration,\n source: t.ImportDeclaration,\n): boolean {\n if (!target.specifiers.length) {\n target.specifiers = source.specifiers;\n return true;\n }\n if (!source.specifiers.length) return true;\n\n if (hasNamespaceImport(target) || hasNamespaceImport(source)) return false;\n\n if (hasDefaultImport(source)) {\n if (hasDefaultImport(target)) {\n source.specifiers[0] = importSpecifier(\n source.specifiers[0].local,\n identifier(\"default\"),\n );\n } else {\n target.specifiers.unshift(source.specifiers.shift());\n }\n }\n\n target.specifiers.push(...source.specifiers);\n\n return true;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAUA,IAAA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AC8B,UAAU,CAAC,CAAC,CAAC,GAAGzG,eAAe,CACpC2E,MAAM,CAAC8B,UAAU,CAAC,CAAC,CAAC,CAACG,KAAK,EAC1B7G,UAAU,CAAC,SAAS,CACtB,CAAC;IACH,CAAC,MAAM;MACL4G,MAAM,CAACF,UAAU,CAACI,OAAO,CAAClC,MAAM,CAAC8B,UAAU,CAACK,KAAK,CAAC,CAAC,CAAC;IACtD;EACF;EAEAH,MAAM,CAACF,UAAU,CAACb,IAAI,CAAC,GAAGjB,MAAM,CAAC8B,UAAU,CAAC;EAE5C,OAAO,IAAI;AACb","ignoreList":[]}
|
frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/index.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
Object.defineProperty(exports, "ImportInjector", {
|
| 7 |
+
enumerable: true,
|
| 8 |
+
get: function () {
|
| 9 |
+
return _importInjector.default;
|
| 10 |
+
}
|
| 11 |
+
});
|
| 12 |
+
exports.addDefault = addDefault;
|
| 13 |
+
exports.addNamed = addNamed;
|
| 14 |
+
exports.addNamespace = addNamespace;
|
| 15 |
+
exports.addSideEffect = addSideEffect;
|
| 16 |
+
Object.defineProperty(exports, "isModule", {
|
| 17 |
+
enumerable: true,
|
| 18 |
+
get: function () {
|
| 19 |
+
return _isModule.default;
|
| 20 |
+
}
|
| 21 |
+
});
|
| 22 |
+
var _importInjector = require("./import-injector.js");
|
| 23 |
+
var _isModule = require("./is-module.js");
|
| 24 |
+
function addDefault(path, importedSource, opts) {
|
| 25 |
+
return new _importInjector.default(path).addDefault(importedSource, opts);
|
| 26 |
+
}
|
| 27 |
+
function addNamed(path, name, importedSource, opts) {
|
| 28 |
+
return new _importInjector.default(path).addNamed(name, importedSource, opts);
|
| 29 |
+
}
|
| 30 |
+
function addNamespace(path, importedSource, opts) {
|
| 31 |
+
return new _importInjector.default(path).addNamespace(importedSource, opts);
|
| 32 |
+
}
|
| 33 |
+
function addSideEffect(path, importedSource, opts) {
|
| 34 |
+
return new _importInjector.default(path).addSideEffect(importedSource, opts);
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
//# sourceMappingURL=index.js.map
|
frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_importInjector","require","_isModule","addDefault","path","importedSource","opts","ImportInjector","addNamed","name","addNamespace","addSideEffect"],"sources":["../src/index.ts"],"sourcesContent":["import ImportInjector, { type ImportOptions } from \"./import-injector.ts\";\nimport type { NodePath } from \"@babel/traverse\";\nimport type * as t from \"@babel/types\";\n\nexport { ImportInjector };\n\nexport { default as isModule } from \"./is-module.ts\";\n\nexport function addDefault(\n path: NodePath,\n importedSource: string,\n opts?: Partial<ImportOptions>,\n) {\n return new ImportInjector(path).addDefault(importedSource, opts);\n}\n\nfunction addNamed(\n path: NodePath,\n name: string,\n importedSource: string,\n opts?: Omit<\n Partial<ImportOptions>,\n \"ensureLiveReference\" | \"ensureNoContext\"\n >,\n): t.Identifier;\nfunction addNamed(\n path: NodePath,\n name: string,\n importedSource: string,\n opts?: Omit<Partial<ImportOptions>, \"ensureLiveReference\"> & {\n ensureLiveReference: true;\n },\n): t.MemberExpression;\nfunction addNamed(\n path: NodePath,\n name: string,\n importedSource: string,\n opts?: Omit<Partial<ImportOptions>, \"ensureNoContext\"> & {\n ensureNoContext: true;\n },\n): t.SequenceExpression;\n/**\n * add a named import to the program path of given path\n *\n * @export\n * @param {NodePath} path The starting path to find a program path\n * @param {string} name The name of the generated binding. Babel will prefix it with `_`\n * @param {string} importedSource The source of the import\n * @param {Partial<ImportOptions>} [opts]\n * @returns {t.Identifier | t.MemberExpression | t.SequenceExpression} If opts.ensureNoContext is true, returns a SequenceExpression,\n * else if opts.ensureLiveReference is true, returns a MemberExpression, else returns an Identifier\n */\nfunction addNamed(\n path: NodePath,\n name: string,\n importedSource: string,\n opts?: Partial<ImportOptions>,\n) {\n return new ImportInjector(path).addNamed(name, importedSource, opts);\n}\nexport { addNamed };\n\nexport function addNamespace(\n path: NodePath,\n importedSource: string,\n opts?: Partial<ImportOptions>,\n) {\n return new ImportInjector(path).addNamespace(importedSource, opts);\n}\n\nexport function addSideEffect(\n path: NodePath,\n importedSource: string,\n opts?: Partial<ImportOptions>,\n) {\n return new ImportInjector(path).addSideEffect(importedSource, opts);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAMA,IAAAC,SAAA,GAAAD,OAAA;AAEO,SAASE,UAAUA,CACxBC,IAAc,EACdC,cAAsB,EACtBC,IAA6B,EAC7B;EACA,OAAO,IAAIC,uBAAc,CAACH,IAAI,CAAC,CAACD,UAAU,CAACE,cAAc,EAAEC,IAAI,CAAC;AAClE;AAsCA,SAASE,QAAQA,CACfJ,IAAc,EACdK,IAAY,EACZJ,cAAsB,EACtBC,IAA6B,EAC7B;EACA,OAAO,IAAIC,uBAAc,CAACH,IAAI,CAAC,CAACI,QAAQ,CAACC,IAAI,EAAEJ,cAAc,EAAEC,IAAI,CAAC;AACtE;AAGO,SAASI,YAAYA,CAC1BN,IAAc,EACdC,cAAsB,EACtBC,IAA6B,EAC7B;EACA,OAAO,IAAIC,uBAAc,CAACH,IAAI,CAAC,CAACM,YAAY,CAACL,cAAc,EAAEC,IAAI,CAAC;AACpE;AAEO,SAASK,aAAaA,CAC3BP,IAAc,EACdC,cAAsB,EACtBC,IAA6B,EAC7B;EACA,OAAO,IAAIC,uBAAc,CAACH,IAAI,CAAC,CAACO,aAAa,CAACN,cAAc,EAAEC,IAAI,CAAC;AACrE","ignoreList":[]}
|
frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/is-module.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = isModule;
|
| 7 |
+
function isModule(path) {
|
| 8 |
+
return path.node.sourceType === "module";
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
//# sourceMappingURL=is-module.js.map
|
frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/lib/is-module.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["isModule","path","node","sourceType"],"sources":["../src/is-module.ts"],"sourcesContent":["import type { NodePath } from \"@babel/traverse\";\nimport type * as t from \"@babel/types\";\n\n/**\n * A small utility to check if a file qualifies as a module.\n */\nexport default function isModule(path: NodePath<t.Program>) {\n return path.node.sourceType === \"module\";\n}\n"],"mappings":";;;;;;AAMe,SAASA,QAAQA,CAACC,IAAyB,EAAE;EAC1D,OAAOA,IAAI,CAACC,IAAI,CAACC,UAAU,KAAK,QAAQ;AAC1C","ignoreList":[]}
|
frontend/node_modules/.pnpm/@babel+helper-module-imports@7.29.7/node_modules/@babel/helper-module-imports/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@babel/helper-module-imports",
|
| 3 |
+
"version": "7.29.7",
|
| 4 |
+
"description": "Babel helper functions for inserting module loads",
|
| 5 |
+
"author": "The Babel Team (https://babel.dev/team)",
|
| 6 |
+
"homepage": "https://babel.dev/docs/en/next/babel-helper-module-imports",
|
| 7 |
+
"license": "MIT",
|
| 8 |
+
"publishConfig": {
|
| 9 |
+
"access": "public"
|
| 10 |
+
},
|
| 11 |
+
"repository": {
|
| 12 |
+
"type": "git",
|
| 13 |
+
"url": "https://github.com/babel/babel.git",
|
| 14 |
+
"directory": "packages/babel-helper-module-imports"
|
| 15 |
+
},
|
| 16 |
+
"main": "./lib/index.js",
|
| 17 |
+
"dependencies": {
|
| 18 |
+
"@babel/traverse": "^7.29.7",
|
| 19 |
+
"@babel/types": "^7.29.7"
|
| 20 |
+
},
|
| 21 |
+
"devDependencies": {
|
| 22 |
+
"@babel/core": "^7.29.7"
|
| 23 |
+
},
|
| 24 |
+
"engines": {
|
| 25 |
+
"node": ">=6.9.0"
|
| 26 |
+
},
|
| 27 |
+
"type": "commonjs"
|
| 28 |
+
}
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 6 |
+
a copy of this software and associated documentation files (the
|
| 7 |
+
"Software"), to deal in the Software without restriction, including
|
| 8 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 9 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 10 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 11 |
+
the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be
|
| 14 |
+
included in all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 17 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 18 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 19 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 20 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 21 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 22 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @babel/helper-module-transforms
|
| 2 |
+
|
| 3 |
+
> Babel helper functions for implementing ES6 module transformations
|
| 4 |
+
|
| 5 |
+
See our website [@babel/helper-module-transforms](https://babeljs.io/docs/babel-helper-module-transforms) for more information.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Using npm:
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
npm install --save @babel/helper-module-transforms
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
or using yarn:
|
| 16 |
+
|
| 17 |
+
```sh
|
| 18 |
+
yarn add @babel/helper-module-transforms
|
| 19 |
+
```
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.buildDynamicImport = buildDynamicImport;
|
| 7 |
+
var _core = require("@babel/core");
|
| 8 |
+
exports.getDynamicImportSource = function getDynamicImportSource(node) {
|
| 9 |
+
const [source] = node.arguments;
|
| 10 |
+
return _core.types.isStringLiteral(source) || _core.types.isTemplateLiteral(source) ? source : _core.template.expression.ast`\`\${${source}}\``;
|
| 11 |
+
};
|
| 12 |
+
function buildDynamicImport(node, deferToThen, wrapWithPromise, builder) {
|
| 13 |
+
const specifier = _core.types.isCallExpression(node) ? node.arguments[0] : node.source;
|
| 14 |
+
if (_core.types.isStringLiteral(specifier) || _core.types.isTemplateLiteral(specifier) && specifier.quasis.length === 0) {
|
| 15 |
+
if (deferToThen) {
|
| 16 |
+
return _core.template.expression.ast`
|
| 17 |
+
Promise.resolve().then(() => ${builder(specifier)})
|
| 18 |
+
`;
|
| 19 |
+
} else return builder(specifier);
|
| 20 |
+
}
|
| 21 |
+
const specifierToString = _core.types.isTemplateLiteral(specifier) ? _core.types.identifier("specifier") : _core.types.templateLiteral([_core.types.templateElement({
|
| 22 |
+
raw: ""
|
| 23 |
+
}), _core.types.templateElement({
|
| 24 |
+
raw: ""
|
| 25 |
+
})], [_core.types.identifier("specifier")]);
|
| 26 |
+
if (deferToThen) {
|
| 27 |
+
return _core.template.expression.ast`
|
| 28 |
+
(specifier =>
|
| 29 |
+
new Promise(r => r(${specifierToString}))
|
| 30 |
+
.then(s => ${builder(_core.types.identifier("s"))})
|
| 31 |
+
)(${specifier})
|
| 32 |
+
`;
|
| 33 |
+
} else if (wrapWithPromise) {
|
| 34 |
+
return _core.template.expression.ast`
|
| 35 |
+
(specifier =>
|
| 36 |
+
new Promise(r => r(${builder(specifierToString)}))
|
| 37 |
+
)(${specifier})
|
| 38 |
+
`;
|
| 39 |
+
} else {
|
| 40 |
+
return _core.template.expression.ast`
|
| 41 |
+
(specifier => ${builder(specifierToString)})(${specifier})
|
| 42 |
+
`;
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
//# sourceMappingURL=dynamic-import.js.map
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_core","require","exports","getDynamicImportSource","node","source","arguments","t","isStringLiteral","isTemplateLiteral","template","expression","ast","buildDynamicImport","deferToThen","wrapWithPromise","builder","specifier","isCallExpression","quasis","length","specifierToString","identifier","templateLiteral","templateElement","raw"],"sources":["../src/dynamic-import.ts"],"sourcesContent":["// Heavily inspired by\n// https://github.com/airbnb/babel-plugin-dynamic-import-node/blob/master/src/utils.js\n\nimport { types as t, template } from \"@babel/core\";\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM && !IS_STANDALONE) {\n // eslint-disable-next-line no-restricted-globals\n exports.getDynamicImportSource = function getDynamicImportSource(\n node: t.CallExpression,\n ): t.StringLiteral | t.TemplateLiteral {\n const [source] = node.arguments;\n\n return t.isStringLiteral(source) || t.isTemplateLiteral(source)\n ? source\n : (template.expression.ast`\\`\\${${source}}\\`` as t.TemplateLiteral);\n };\n}\n\nexport function buildDynamicImport(\n node: t.CallExpression | t.ImportExpression,\n deferToThen: boolean,\n wrapWithPromise: boolean,\n builder: (specifier: t.Expression) => t.Expression,\n): t.Expression {\n const specifier = t.isCallExpression(node) ? node.arguments[0] : node.source;\n\n if (\n t.isStringLiteral(specifier) ||\n (t.isTemplateLiteral(specifier) && specifier.quasis.length === 0)\n ) {\n if (deferToThen) {\n return template.expression.ast`\n Promise.resolve().then(() => ${builder(specifier)})\n `;\n } else return builder(specifier);\n }\n\n const specifierToString = t.isTemplateLiteral(specifier)\n ? t.identifier(\"specifier\")\n : t.templateLiteral(\n [t.templateElement({ raw: \"\" }), t.templateElement({ raw: \"\" })],\n [t.identifier(\"specifier\")],\n );\n\n if (deferToThen) {\n return template.expression.ast`\n (specifier =>\n new Promise(r => r(${specifierToString}))\n .then(s => ${builder(t.identifier(\"s\"))})\n )(${specifier})\n `;\n } else if (wrapWithPromise) {\n return template.expression.ast`\n (specifier =>\n new Promise(r => r(${builder(specifierToString)}))\n )(${specifier})\n `;\n } else {\n return template.expression.ast`\n (specifier => ${builder(specifierToString)})(${specifier})\n `;\n }\n}\n"],"mappings":";;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AAIEC,OAAO,CAACC,sBAAsB,GAAG,SAASA,sBAAsBA,CAC9DC,IAAsB,EACe;EACrC,MAAM,CAACC,MAAM,CAAC,GAAGD,IAAI,CAACE,SAAS;EAE/B,OAAOC,WAAC,CAACC,eAAe,CAACH,MAAM,CAAC,IAAIE,WAAC,CA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IAAIF,eAAe,EAAE;IAC1B,OAAOL,cAAQ,CAACC,UAAU,CAACC,GAAG;AAClC;AACA,6BAA6BI,OAAO,CAACK,iBAAiB,CAAC;AACvD,UAAUJ,SAAS;AACnB,KAAK;EACH,CAAC,MAAM;IACL,OAAOP,cAAQ,CAACC,UAAU,CAACC,GAAG;AAClC,sBAAsBI,OAAO,CAACK,iBAAiB,CAAC,KAAKJ,SAAS;AAC9D,KAAK;EACH;AACF","ignoreList":[]}
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/get-module-name.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = getModuleName;
|
| 7 |
+
const originalGetModuleName = getModuleName;
|
| 8 |
+
exports.default = getModuleName = function getModuleName(rootOpts, pluginOpts) {
|
| 9 |
+
var _pluginOpts$moduleId, _pluginOpts$moduleIds, _pluginOpts$getModule, _pluginOpts$moduleRoo;
|
| 10 |
+
return originalGetModuleName(rootOpts, {
|
| 11 |
+
moduleId: (_pluginOpts$moduleId = pluginOpts.moduleId) != null ? _pluginOpts$moduleId : rootOpts.moduleId,
|
| 12 |
+
moduleIds: (_pluginOpts$moduleIds = pluginOpts.moduleIds) != null ? _pluginOpts$moduleIds : rootOpts.moduleIds,
|
| 13 |
+
getModuleId: (_pluginOpts$getModule = pluginOpts.getModuleId) != null ? _pluginOpts$getModule : rootOpts.getModuleId,
|
| 14 |
+
moduleRoot: (_pluginOpts$moduleRoo = pluginOpts.moduleRoot) != null ? _pluginOpts$moduleRoo : rootOpts.moduleRoot
|
| 15 |
+
});
|
| 16 |
+
};
|
| 17 |
+
function getModuleName(rootOpts, pluginOpts) {
|
| 18 |
+
const {
|
| 19 |
+
filename,
|
| 20 |
+
filenameRelative = filename,
|
| 21 |
+
sourceRoot = pluginOpts.moduleRoot
|
| 22 |
+
} = rootOpts;
|
| 23 |
+
const {
|
| 24 |
+
moduleId,
|
| 25 |
+
moduleIds = !!moduleId,
|
| 26 |
+
getModuleId,
|
| 27 |
+
moduleRoot = sourceRoot
|
| 28 |
+
} = pluginOpts;
|
| 29 |
+
if (!moduleIds) return null;
|
| 30 |
+
if (moduleId != null && !getModuleId) {
|
| 31 |
+
return moduleId;
|
| 32 |
+
}
|
| 33 |
+
let moduleName = moduleRoot != null ? moduleRoot + "/" : "";
|
| 34 |
+
if (filenameRelative) {
|
| 35 |
+
const sourceRootReplacer = sourceRoot != null ? new RegExp("^" + sourceRoot + "/?") : "";
|
| 36 |
+
moduleName += filenameRelative.replace(sourceRootReplacer, "").replace(/\.\w*$/, "");
|
| 37 |
+
}
|
| 38 |
+
moduleName = moduleName.replace(/\\/g, "/");
|
| 39 |
+
if (getModuleId) {
|
| 40 |
+
return getModuleId(moduleName) || moduleName;
|
| 41 |
+
} else {
|
| 42 |
+
return moduleName;
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
//# sourceMappingURL=get-module-name.js.map
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/get-module-name.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["originalGetModuleName","getModuleName","exports","default","rootOpts","pluginOpts","_pluginOpts$moduleId","_pluginOpts$moduleIds","_pluginOpts$getModule","_pluginOpts$moduleRoo","moduleId","moduleIds","getModuleId","moduleRoot","filename","filenameRelative","sourceRoot","moduleName","sourceRootReplacer","RegExp","replace"],"sources":["../src/get-module-name.ts"],"sourcesContent":["type RootOptions = {\n filename?: string;\n filenameRelative?: string;\n sourceRoot?: string;\n};\n\nexport type PluginOptions = {\n moduleId?: string;\n moduleIds?: boolean;\n getModuleId?: (moduleName: string) => string | null | undefined;\n moduleRoot?: string;\n};\n\nif (!process.env.BABEL_8_BREAKING) {\n const originalGetModuleName = getModuleName;\n\n // @ts-expect-error TS doesn't like reassigning a function.\n getModuleName = function getModuleName(\n rootOpts: RootOptions & PluginOptions,\n pluginOpts: PluginOptions,\n ): string | null {\n return originalGetModuleName(rootOpts, {\n moduleId: pluginOpts.moduleId ?? rootOpts.moduleId,\n moduleIds: pluginOpts.moduleIds ?? rootOpts.moduleIds,\n getModuleId: pluginOpts.getModuleId ?? rootOpts.getModuleId,\n moduleRoot: pluginOpts.moduleRoot ?? rootOpts.moduleRoot,\n });\n };\n}\n\nexport default function getModuleName(\n rootOpts: RootOptions,\n pluginOpts: PluginOptions,\n): string | null {\n const {\n filename,\n filenameRelative = filename,\n sourceRoot = pluginOpts.moduleRoot,\n } = rootOpts;\n\n const {\n moduleId,\n moduleIds = !!moduleId,\n\n getModuleId,\n\n moduleRoot = sourceRoot,\n } = pluginOpts;\n\n if (!moduleIds) return null;\n\n // moduleId is n/a if a `getModuleId()` is provided\n if (moduleId != null && !getModuleId) {\n return moduleId;\n }\n\n let moduleName = moduleRoot != null ? moduleRoot + \"/\" : \"\";\n\n if (filenameRelative) {\n const sourceRootReplacer =\n sourceRoot != null ? new RegExp(\"^\" + sourceRoot + \"/?\") : \"\";\n\n moduleName += filenameRelative\n // remove sourceRoot from filename\n .replace(sourceRootReplacer, \"\")\n // remove extension\n .replace(/\\.\\w*$/, \"\");\n }\n\n // normalize path separators\n moduleName = moduleName.replace(/\\\\/g, \"/\");\n\n if (getModuleId) {\n // If return is falsy, assume they want us to use our generated default name\n return getModuleId(moduleName) || moduleName;\n } else {\n return moduleName;\n }\n}\n"],"mappings":";;;;;;AAcE,MAAMA,qBAAqB,GAAGC,aAAa;AAG3CC,OAAA,CAAAC,OAAA,GAAAF,aAAa,GAAG,SAASA,aAAaA,CACpCG,QAAqC,EACrCC,UAAyB,EACV;EAAA,IAAAC,oBAAA,EAAAC,qBAAA,EAAAC,qBAAA,EAAAC,qBAAA;EACf,OAAOT,qBAAqB,CAACI,QAAQ,EAAE;IACrCM,QAAQ,GAAAJ,oBAAA,GAAED,UAAU,CAACK,QAAQ,YAAAJ,oBAAA,GAAIF,QAAQ,CAACM,QAAQ;IAClDC,SAAS,GAAAJ,qBAAA,GAAEF,UAAU,CAACM,SAAS,YAAAJ,qBAAA,GAAIH,QAAQ,CAACO,SAAS;IACrDC,WAAW,GAAAJ,qBAAA,GAAEH,UAAU,CAACO,WAAW,YAAAJ,qBAAA,GAAIJ,QAAQ,CAACQ,WAAW;IAC3DC,UAAU,GAAAJ,qBAAA,GAAEJ,UAAU,CAACQ,UAAU,YAAAJ,qBAAA,GAAIL,QAAQ,CAACS;EAChD,CAAC,CAAC;AACJ,CAAC;AAGY,SAASZ,aAAaA,CACnCG,QAAqB,EACrBC,UAAyB,EACV;EACf,MAAM;IACJS,QAAQ;IACRC,gBAAgB,GAAGD,QAAQ;IAC3BE,UAAU,GAAGX,UAAU,CAACQ;EAC1B,CAAC,GAAGT,QAAQ;EAEZ,MAAM;IACJM,QAAQ;IACRC,SAAS,GAAG,CAAC,CAACD,QAAQ;IAEtBE,WAAW;IAEXC,UAAU,GAAGG;EACf,CAAC,GAAGX,UAAU;EAEd,IAAI,CAACM,SAAS,EAAE,OAAO,IAAI;EAG3B,IAAID,QAAQ,IAAI,IAAI,IAAI,CAACE,WAAW,EAAE;IACpC,OAAOF,QAAQ;EACjB;EAEA,IAAIO,UAAU,GAAGJ,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get: function () {
|
| 9 |
+
return _dynamicImport.buildDynamicImport;
|
| 10 |
+
}
|
| 11 |
+
});
|
| 12 |
+
exports.buildNamespaceInitStatements = buildNamespaceInitStatements;
|
| 13 |
+
exports.ensureStatementsHoisted = ensureStatementsHoisted;
|
| 14 |
+
Object.defineProperty(exports, "getModuleName", {
|
| 15 |
+
enumerable: true,
|
| 16 |
+
get: function () {
|
| 17 |
+
return _getModuleName.default;
|
| 18 |
+
}
|
| 19 |
+
});
|
| 20 |
+
Object.defineProperty(exports, "hasExports", {
|
| 21 |
+
enumerable: true,
|
| 22 |
+
get: function () {
|
| 23 |
+
return _normalizeAndLoadMetadata.hasExports;
|
| 24 |
+
}
|
| 25 |
+
});
|
| 26 |
+
Object.defineProperty(exports, "isModule", {
|
| 27 |
+
enumerable: true,
|
| 28 |
+
get: function () {
|
| 29 |
+
return _helperModuleImports.isModule;
|
| 30 |
+
}
|
| 31 |
+
});
|
| 32 |
+
Object.defineProperty(exports, "isSideEffectImport", {
|
| 33 |
+
enumerable: true,
|
| 34 |
+
get: function () {
|
| 35 |
+
return _normalizeAndLoadMetadata.isSideEffectImport;
|
| 36 |
+
}
|
| 37 |
+
});
|
| 38 |
+
exports.rewriteModuleStatementsAndPrepareHeader = rewriteModuleStatementsAndPrepareHeader;
|
| 39 |
+
Object.defineProperty(exports, "rewriteThis", {
|
| 40 |
+
enumerable: true,
|
| 41 |
+
get: function () {
|
| 42 |
+
return _rewriteThis.default;
|
| 43 |
+
}
|
| 44 |
+
});
|
| 45 |
+
exports.wrapInterop = wrapInterop;
|
| 46 |
+
var _assert = require("assert");
|
| 47 |
+
var _core = require("@babel/core");
|
| 48 |
+
var _helperModuleImports = require("@babel/helper-module-imports");
|
| 49 |
+
var _rewriteThis = require("./rewrite-this.js");
|
| 50 |
+
var _rewriteLiveReferences = require("./rewrite-live-references.js");
|
| 51 |
+
var _normalizeAndLoadMetadata = require("./normalize-and-load-metadata.js");
|
| 52 |
+
var Lazy = require("./lazy-modules.js");
|
| 53 |
+
var _dynamicImport = require("./dynamic-import.js");
|
| 54 |
+
var _getModuleName = require("./get-module-name.js");
|
| 55 |
+
exports.getDynamicImportSource = require("./dynamic-import").getDynamicImportSource;
|
| 56 |
+
function rewriteModuleStatementsAndPrepareHeader(path, {
|
| 57 |
+
exportName,
|
| 58 |
+
strict,
|
| 59 |
+
allowTopLevelThis,
|
| 60 |
+
strictMode,
|
| 61 |
+
noInterop,
|
| 62 |
+
importInterop = noInterop ? "none" : "babel",
|
| 63 |
+
lazy,
|
| 64 |
+
getWrapperPayload = Lazy.toGetWrapperPayload(lazy != null ? lazy : false),
|
| 65 |
+
wrapReference = Lazy.wrapReference,
|
| 66 |
+
esNamespaceOnly,
|
| 67 |
+
filename,
|
| 68 |
+
constantReexports = arguments[1].loose,
|
| 69 |
+
enumerableModuleMeta = arguments[1].loose,
|
| 70 |
+
noIncompleteNsImportDetection
|
| 71 |
+
}) {
|
| 72 |
+
(0, _normalizeAndLoadMetadata.validateImportInteropOption)(importInterop);
|
| 73 |
+
_assert((0, _helperModuleImports.isModule)(path), "Cannot process module statements in a script");
|
| 74 |
+
path.node.sourceType = "script";
|
| 75 |
+
const meta = (0, _normalizeAndLoadMetadata.default)(path, exportName, {
|
| 76 |
+
importInterop,
|
| 77 |
+
initializeReexports: constantReexports,
|
| 78 |
+
getWrapperPayload,
|
| 79 |
+
esNamespaceOnly,
|
| 80 |
+
filename
|
| 81 |
+
});
|
| 82 |
+
if (!allowTopLevelThis) {
|
| 83 |
+
(0, _rewriteThis.default)(path);
|
| 84 |
+
}
|
| 85 |
+
(0, _rewriteLiveReferences.default)(path, meta, wrapReference);
|
| 86 |
+
if (strictMode !== false) {
|
| 87 |
+
const hasStrict = path.node.directives.some(directive => {
|
| 88 |
+
return directive.value.value === "use strict";
|
| 89 |
+
});
|
| 90 |
+
if (!hasStrict) {
|
| 91 |
+
path.unshiftContainer("directives", _core.types.directive(_core.types.directiveLiteral("use strict")));
|
| 92 |
+
}
|
| 93 |
+
}
|
| 94 |
+
const headers = [];
|
| 95 |
+
if ((0, _normalizeAndLoadMetadata.hasExports)(meta) && !strict) {
|
| 96 |
+
headers.push(buildESModuleHeader(meta, enumerableModuleMeta));
|
| 97 |
+
}
|
| 98 |
+
const nameList = buildExportNameListDeclaration(path, meta);
|
| 99 |
+
if (nameList) {
|
| 100 |
+
meta.exportNameListName = nameList.name;
|
| 101 |
+
headers.push(nameList.statement);
|
| 102 |
+
}
|
| 103 |
+
headers.push(...buildExportInitializationStatements(path, meta, wrapReference, constantReexports, noIncompleteNsImportDetection));
|
| 104 |
+
return {
|
| 105 |
+
meta,
|
| 106 |
+
headers
|
| 107 |
+
};
|
| 108 |
+
}
|
| 109 |
+
function ensureStatementsHoisted(statements) {
|
| 110 |
+
statements.forEach(header => {
|
| 111 |
+
header._blockHoist = 3;
|
| 112 |
+
});
|
| 113 |
+
}
|
| 114 |
+
function wrapInterop(programPath, expr, type) {
|
| 115 |
+
if (type === "none") {
|
| 116 |
+
return null;
|
| 117 |
+
}
|
| 118 |
+
if (type === "node-namespace") {
|
| 119 |
+
return _core.types.callExpression(programPath.hub.addHelper("interopRequireWildcard"), [expr, _core.types.booleanLiteral(true)]);
|
| 120 |
+
} else if (type === "node-default") {
|
| 121 |
+
return null;
|
| 122 |
+
}
|
| 123 |
+
let helper;
|
| 124 |
+
if (type === "default") {
|
| 125 |
+
helper = "interopRequireDefault";
|
| 126 |
+
} else if (type === "namespace") {
|
| 127 |
+
helper = "interopRequireWildcard";
|
| 128 |
+
} else {
|
| 129 |
+
throw new Error(`Unknown interop: ${type}`);
|
| 130 |
+
}
|
| 131 |
+
return _core.types.callExpression(programPath.hub.addHelper(helper), [expr]);
|
| 132 |
+
}
|
| 133 |
+
function buildNamespaceInitStatements(metadata, sourceMetadata, constantReexports = false, wrapReference = Lazy.wrapReference) {
|
| 134 |
+
var _wrapReference;
|
| 135 |
+
const statements = [];
|
| 136 |
+
const srcNamespaceId = _core.types.identifier(sourceMetadata.name);
|
| 137 |
+
for (const localName of sourceMetadata.importsNamespace) {
|
| 138 |
+
if (localName === sourceMetadata.name) continue;
|
| 139 |
+
statements.push(_core.template.statement`var NAME = SOURCE;`({
|
| 140 |
+
NAME: localName,
|
| 141 |
+
SOURCE: _core.types.cloneNode(srcNamespaceId)
|
| 142 |
+
}));
|
| 143 |
+
}
|
| 144 |
+
const srcNamespace = (_wrapReference = wrapReference(srcNamespaceId, sourceMetadata.wrap)) != null ? _wrapReference : srcNamespaceId;
|
| 145 |
+
if (constantReexports) {
|
| 146 |
+
statements.push(...buildReexportsFromMeta(metadata, sourceMetadata, true, wrapReference));
|
| 147 |
+
}
|
| 148 |
+
for (const exportName of sourceMetadata.reexportNamespace) {
|
| 149 |
+
statements.push((!_core.types.isIdentifier(srcNamespace) ? _core.template.statement`
|
| 150 |
+
Object.defineProperty(EXPORTS, "NAME", {
|
| 151 |
+
enumerable: true,
|
| 152 |
+
get: function() {
|
| 153 |
+
return NAMESPACE;
|
| 154 |
+
}
|
| 155 |
+
});
|
| 156 |
+
` : _core.template.statement`EXPORTS.NAME = NAMESPACE;`)({
|
| 157 |
+
EXPORTS: metadata.exportName,
|
| 158 |
+
NAME: exportName,
|
| 159 |
+
NAMESPACE: _core.types.cloneNode(srcNamespace)
|
| 160 |
+
}));
|
| 161 |
+
}
|
| 162 |
+
if (sourceMetadata.reexportAll) {
|
| 163 |
+
const statement = buildNamespaceReexport(metadata, _core.types.cloneNode(srcNamespace), constantReexports);
|
| 164 |
+
statement.loc = sourceMetadata.reexportAll.loc;
|
| 165 |
+
statements.push(statement);
|
| 166 |
+
}
|
| 167 |
+
return statements;
|
| 168 |
+
}
|
| 169 |
+
const ReexportTemplate = {
|
| 170 |
+
constant: ({
|
| 171 |
+
exports,
|
| 172 |
+
exportName,
|
| 173 |
+
namespaceImport
|
| 174 |
+
}) => _core.template.statement.ast`
|
| 175 |
+
${exports}.${exportName} = ${namespaceImport};
|
| 176 |
+
`,
|
| 177 |
+
constantComputed: ({
|
| 178 |
+
exports,
|
| 179 |
+
exportName,
|
| 180 |
+
namespaceImport
|
| 181 |
+
}) => _core.template.statement.ast`
|
| 182 |
+
${exports}["${exportName}"] = ${namespaceImport};
|
| 183 |
+
`,
|
| 184 |
+
spec: ({
|
| 185 |
+
exports,
|
| 186 |
+
exportName,
|
| 187 |
+
namespaceImport
|
| 188 |
+
}) => _core.template.statement.ast`
|
| 189 |
+
Object.defineProperty(${exports}, "${exportName}", {
|
| 190 |
+
enumerable: true,
|
| 191 |
+
get: function() {
|
| 192 |
+
return ${namespaceImport};
|
| 193 |
+
},
|
| 194 |
+
});
|
| 195 |
+
`
|
| 196 |
+
};
|
| 197 |
+
function buildReexportsFromMeta(meta, metadata, constantReexports, wrapReference) {
|
| 198 |
+
var _wrapReference2;
|
| 199 |
+
let namespace = _core.types.identifier(metadata.name);
|
| 200 |
+
namespace = (_wrapReference2 = wrapReference(namespace, metadata.wrap)) != null ? _wrapReference2 : namespace;
|
| 201 |
+
const {
|
| 202 |
+
stringSpecifiers
|
| 203 |
+
} = meta;
|
| 204 |
+
return Array.from(metadata.reexports, ([exportName, importName]) => {
|
| 205 |
+
let namespaceImport = _core.types.cloneNode(namespace);
|
| 206 |
+
if (importName === "default" && metadata.interop === "node-default") {} else if (stringSpecifiers.has(importName)) {
|
| 207 |
+
namespaceImport = _core.types.memberExpression(namespaceImport, _core.types.stringLiteral(importName), true);
|
| 208 |
+
} else {
|
| 209 |
+
namespaceImport = _core.types.memberExpression(namespaceImport, _core.types.identifier(importName));
|
| 210 |
+
}
|
| 211 |
+
const astNodes = {
|
| 212 |
+
exports: meta.exportName,
|
| 213 |
+
exportName,
|
| 214 |
+
namespaceImport
|
| 215 |
+
};
|
| 216 |
+
if (constantReexports || _core.types.isIdentifier(namespaceImport)) {
|
| 217 |
+
if (stringSpecifiers.has(exportName)) {
|
| 218 |
+
return ReexportTemplate.constantComputed(astNodes);
|
| 219 |
+
} else {
|
| 220 |
+
return ReexportTemplate.constant(astNodes);
|
| 221 |
+
}
|
| 222 |
+
} else {
|
| 223 |
+
return ReexportTemplate.spec(astNodes);
|
| 224 |
+
}
|
| 225 |
+
});
|
| 226 |
+
}
|
| 227 |
+
function buildESModuleHeader(metadata, enumerableModuleMeta = false) {
|
| 228 |
+
return (enumerableModuleMeta ? _core.template.statement`
|
| 229 |
+
EXPORTS.__esModule = true;
|
| 230 |
+
` : _core.template.statement`
|
| 231 |
+
Object.defineProperty(EXPORTS, "__esModule", {
|
| 232 |
+
value: true,
|
| 233 |
+
});
|
| 234 |
+
`)({
|
| 235 |
+
EXPORTS: metadata.exportName
|
| 236 |
+
});
|
| 237 |
+
}
|
| 238 |
+
function buildNamespaceReexport(metadata, namespace, constantReexports) {
|
| 239 |
+
return (constantReexports ? _core.template.statement`
|
| 240 |
+
Object.keys(NAMESPACE).forEach(function(key) {
|
| 241 |
+
if (key === "default" || key === "__esModule") return;
|
| 242 |
+
VERIFY_NAME_LIST;
|
| 243 |
+
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
| 244 |
+
|
| 245 |
+
EXPORTS[key] = NAMESPACE[key];
|
| 246 |
+
});
|
| 247 |
+
` : _core.template.statement`
|
| 248 |
+
Object.keys(NAMESPACE).forEach(function(key) {
|
| 249 |
+
if (key === "default" || key === "__esModule") return;
|
| 250 |
+
VERIFY_NAME_LIST;
|
| 251 |
+
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
| 252 |
+
|
| 253 |
+
Object.defineProperty(EXPORTS, key, {
|
| 254 |
+
enumerable: true,
|
| 255 |
+
get: function() {
|
| 256 |
+
return NAMESPACE[key];
|
| 257 |
+
},
|
| 258 |
+
});
|
| 259 |
+
});
|
| 260 |
+
`)({
|
| 261 |
+
NAMESPACE: namespace,
|
| 262 |
+
EXPORTS: metadata.exportName,
|
| 263 |
+
VERIFY_NAME_LIST: metadata.exportNameListName ? (0, _core.template)`
|
| 264 |
+
if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
|
| 265 |
+
`({
|
| 266 |
+
EXPORTS_LIST: metadata.exportNameListName
|
| 267 |
+
}) : null
|
| 268 |
+
});
|
| 269 |
+
}
|
| 270 |
+
function buildExportNameListDeclaration(programPath, metadata) {
|
| 271 |
+
const exportedVars = Object.create(null);
|
| 272 |
+
for (const data of metadata.local.values()) {
|
| 273 |
+
for (const name of data.names) {
|
| 274 |
+
exportedVars[name] = true;
|
| 275 |
+
}
|
| 276 |
+
}
|
| 277 |
+
let hasReexport = false;
|
| 278 |
+
for (const data of metadata.source.values()) {
|
| 279 |
+
for (const exportName of data.reexports.keys()) {
|
| 280 |
+
exportedVars[exportName] = true;
|
| 281 |
+
}
|
| 282 |
+
for (const exportName of data.reexportNamespace) {
|
| 283 |
+
exportedVars[exportName] = true;
|
| 284 |
+
}
|
| 285 |
+
hasReexport = hasReexport || !!data.reexportAll;
|
| 286 |
+
}
|
| 287 |
+
if (!hasReexport || Object.keys(exportedVars).length === 0) return null;
|
| 288 |
+
const name = programPath.scope.generateUidIdentifier("exportNames");
|
| 289 |
+
delete exportedVars.default;
|
| 290 |
+
return {
|
| 291 |
+
name: name.name,
|
| 292 |
+
statement: _core.types.variableDeclaration("var", [_core.types.variableDeclarator(name, _core.types.valueToNode(exportedVars))])
|
| 293 |
+
};
|
| 294 |
+
}
|
| 295 |
+
function buildExportInitializationStatements(programPath, metadata, wrapReference, constantReexports = false, noIncompleteNsImportDetection = false) {
|
| 296 |
+
const initStatements = [];
|
| 297 |
+
for (const [localName, data] of metadata.local) {
|
| 298 |
+
if (data.kind === "import") {} else if (data.kind === "hoisted") {
|
| 299 |
+
initStatements.push([data.names[0], buildInitStatement(metadata, data.names, _core.types.identifier(localName))]);
|
| 300 |
+
} else if (!noIncompleteNsImportDetection) {
|
| 301 |
+
for (const exportName of data.names) {
|
| 302 |
+
initStatements.push([exportName, null]);
|
| 303 |
+
}
|
| 304 |
+
}
|
| 305 |
+
}
|
| 306 |
+
for (const data of metadata.source.values()) {
|
| 307 |
+
if (!constantReexports) {
|
| 308 |
+
const reexportsStatements = buildReexportsFromMeta(metadata, data, false, wrapReference);
|
| 309 |
+
const reexports = [...data.reexports.keys()];
|
| 310 |
+
for (let i = 0; i < reexportsStatements.length; i++) {
|
| 311 |
+
initStatements.push([reexports[i], reexportsStatements[i]]);
|
| 312 |
+
}
|
| 313 |
+
}
|
| 314 |
+
if (!noIncompleteNsImportDetection) {
|
| 315 |
+
for (const exportName of data.reexportNamespace) {
|
| 316 |
+
initStatements.push([exportName, null]);
|
| 317 |
+
}
|
| 318 |
+
}
|
| 319 |
+
}
|
| 320 |
+
initStatements.sort(([a], [b]) => {
|
| 321 |
+
if (a < b) return -1;
|
| 322 |
+
if (b < a) return 1;
|
| 323 |
+
return 0;
|
| 324 |
+
});
|
| 325 |
+
const results = [];
|
| 326 |
+
if (noIncompleteNsImportDetection) {
|
| 327 |
+
for (const [, initStatement] of initStatements) {
|
| 328 |
+
results.push(initStatement);
|
| 329 |
+
}
|
| 330 |
+
} else {
|
| 331 |
+
const chunkSize = 100;
|
| 332 |
+
for (let i = 0; i < initStatements.length; i += chunkSize) {
|
| 333 |
+
let uninitializedExportNames = [];
|
| 334 |
+
for (let j = 0; j < chunkSize && i + j < initStatements.length; j++) {
|
| 335 |
+
const [exportName, initStatement] = initStatements[i + j];
|
| 336 |
+
if (initStatement !== null) {
|
| 337 |
+
if (uninitializedExportNames.length > 0) {
|
| 338 |
+
results.push(buildInitStatement(metadata, uninitializedExportNames, programPath.scope.buildUndefinedNode()));
|
| 339 |
+
uninitializedExportNames = [];
|
| 340 |
+
}
|
| 341 |
+
results.push(initStatement);
|
| 342 |
+
} else {
|
| 343 |
+
uninitializedExportNames.push(exportName);
|
| 344 |
+
}
|
| 345 |
+
}
|
| 346 |
+
if (uninitializedExportNames.length > 0) {
|
| 347 |
+
results.push(buildInitStatement(metadata, uninitializedExportNames, programPath.scope.buildUndefinedNode()));
|
| 348 |
+
}
|
| 349 |
+
}
|
| 350 |
+
}
|
| 351 |
+
return results;
|
| 352 |
+
}
|
| 353 |
+
const InitTemplate = {
|
| 354 |
+
computed: ({
|
| 355 |
+
exports,
|
| 356 |
+
name,
|
| 357 |
+
value
|
| 358 |
+
}) => _core.template.expression.ast`${exports}["${name}"] = ${value}`,
|
| 359 |
+
default: ({
|
| 360 |
+
exports,
|
| 361 |
+
name,
|
| 362 |
+
value
|
| 363 |
+
}) => _core.template.expression.ast`${exports}.${name} = ${value}`,
|
| 364 |
+
define: ({
|
| 365 |
+
exports,
|
| 366 |
+
name,
|
| 367 |
+
value
|
| 368 |
+
}) => _core.template.expression.ast`
|
| 369 |
+
Object.defineProperty(${exports}, "${name}", {
|
| 370 |
+
enumerable: true,
|
| 371 |
+
value: void 0,
|
| 372 |
+
writable: true
|
| 373 |
+
})["${name}"] = ${value}`
|
| 374 |
+
};
|
| 375 |
+
function buildInitStatement(metadata, exportNames, initExpr) {
|
| 376 |
+
const {
|
| 377 |
+
stringSpecifiers,
|
| 378 |
+
exportName: exports
|
| 379 |
+
} = metadata;
|
| 380 |
+
return _core.types.expressionStatement(exportNames.reduce((value, name) => {
|
| 381 |
+
const params = {
|
| 382 |
+
exports,
|
| 383 |
+
name,
|
| 384 |
+
value
|
| 385 |
+
};
|
| 386 |
+
if (name === "__proto__") {
|
| 387 |
+
return InitTemplate.define(params);
|
| 388 |
+
}
|
| 389 |
+
if (stringSpecifiers.has(name)) {
|
| 390 |
+
return InitTemplate.computed(params);
|
| 391 |
+
}
|
| 392 |
+
return InitTemplate.default(params);
|
| 393 |
+
}, initExpr));
|
| 394 |
+
}
|
| 395 |
+
|
| 396 |
+
//# sourceMappingURL=index.js.map
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_assert","require","_core","_helperModuleImports","_rewriteThis","_rewriteLiveReferences","_normalizeAndLoadMetadata","Lazy","_dynamicImport","_getModuleName","exports","getDynamicImportSource","rewriteModuleStatementsAndPrepareHeader","path","exportName","strict","allowTopLevelThis","strictMode","noInterop","importInterop","lazy","getWrapperPayload","toGetWrapperPayload","wrapReference","esNamespaceOnly","filename","constantReexports","arguments","loose","enumerableModuleMeta","noIncompleteNsImportDetection","validateImportInteropOption","assert","isModule","node","sourceType","meta","normalizeModuleAndLoadMetadata","initializeReexports","rewriteThis","rewriteLiveReferences","hasStrict","directives","some","directive","value","unshiftContainer","t","directiveLiteral","headers","hasExports","push","buildESModuleHeader","nameList","buildExportNameListDeclaration","exportNameListName","name","statement","buildExportInitializationStatements","ensureStatementsHoisted","statements","forEach","header","_blockHoist","wrapInterop","programPath","expr","type","callExpression","hub","addHelper","booleanLiteral","helper","Error","buildNamespaceInitStatements","metadata","sourceMetadata","_wrapReference","srcNamespaceId","identifier","localName","importsNamespace","template","NAME","SOURCE","cloneNode","srcNamespace","wrap","buildReexportsFromMeta","reexportNamespace","isIdentifier","EXPORTS","NAMESPACE","reexportAll","buildNamespaceReexport","loc","ReexportTemplate","constant","namespaceImport","ast","constantComputed","spec","_wrapReference2","namespace","stringSpecifiers","Array","from","reexports","importName","interop","has","memberExpression","stringLiteral","astNodes","VERIFY_NAME_LIST","EXPORTS_LIST","exportedVars","Object","create","data","local","values","names","hasReexport","source","keys","length","scope","generateUidIdentifier","default","variableDeclaration","variableDeclarator","valueToNode","initStatements","kind","buildInitStatement","reexportsStatements","i","sort","a","b","results","initStatement","chunkSize","uninitializedExportNames","j","buildUndefinedNode","InitTemplate","computed","expression","define","exportNames","initExpr","expressionStatement","reduce","params"],"sources":["../src/index.ts"],"sourcesContent":["import assert from \"node:assert\";\nimport { template, types as t } from \"@babel/core\";\n\nimport { isModule } from \"@babel/helper-module-imports\";\n\nimport rewriteThis from \"./rewrite-this.ts\";\nimport rewriteLiveReferences from \"./rewrite-live-references.ts\";\nimport normalizeModuleAndLoadMetadata, {\n hasExports,\n isSideEffectImport,\n validateImportInteropOption,\n} from \"./normalize-and-load-metadata.ts\";\nimport type {\n ImportInterop,\n InteropType,\n ModuleMetadata,\n SourceModuleMetadata,\n} from \"./normalize-and-load-metadata.ts\";\nimport * as Lazy from \"./lazy-modules.ts\";\nimport type { NodePath } from \"@babel/core\";\n\nexport { buildDynamicImport } from \"./dynamic-import.ts\";\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM && !IS_STANDALONE) {\n // eslint-disable-next-line no-restricted-globals\n exports.getDynamicImportSource =\n // eslint-disable-next-line no-restricted-globals, import/extensions\n require(\"./dynamic-import\").getDynamicImportSource;\n}\n\nexport { default as getModuleName } from \"./get-module-name.ts\";\nexport type { PluginOptions } from \"./get-module-name.ts\";\n\nexport { hasExports, isSideEffectImport, isModule, rewriteThis };\n\nexport interface RewriteModuleStatementsAndPrepareHeaderOptions {\n exportName?: string;\n strict: boolean;\n allowTopLevelThis?: boolean;\n strictMode: boolean;\n loose?: boolean;\n importInterop?: ImportInterop;\n noInterop?: boolean;\n lazy?: Lazy.Lazy;\n getWrapperPayload?: (\n source: string,\n metadata: SourceModuleMetadata,\n importNodes: t.Node[],\n ) => unknown;\n wrapReference?: (ref: t.Expression, payload: unknown) => t.Expression | null;\n esNamespaceOnly?: boolean;\n filename: string | undefined;\n constantReexports?: boolean | void;\n enumerableModuleMeta?: boolean | void;\n noIncompleteNsImportDetection?: boolean | void;\n}\n\n/**\n * Perform all of the generic ES6 module rewriting needed to handle initial\n * module processing. This function will rewrite the majority of the given\n * program to reference the modules described by the returned metadata,\n * and returns a list of statements for use when initializing the module.\n */\nexport function rewriteModuleStatementsAndPrepareHeader(\n path: NodePath<t.Program>,\n {\n exportName,\n strict,\n allowTopLevelThis,\n strictMode,\n noInterop,\n importInterop = noInterop ? \"none\" : \"babel\",\n // TODO(Babel 8): After that `lazy` implementation is moved to the CJS\n // transform, remove this parameter.\n lazy,\n getWrapperPayload = Lazy.toGetWrapperPayload(lazy ?? false),\n wrapReference = Lazy.wrapReference,\n esNamespaceOnly,\n filename,\n\n constantReexports = process.env.BABEL_8_BREAKING\n ? undefined\n : arguments[1].loose,\n enumerableModuleMeta = process.env.BABEL_8_BREAKING\n ? undefined\n : arguments[1].loose,\n noIncompleteNsImportDetection,\n }: RewriteModuleStatementsAndPrepareHeaderOptions,\n) {\n validateImportInteropOption(importInterop);\n assert(isModule(path), \"Cannot process module statements in a script\");\n path.node.sourceType = \"script\";\n\n const meta = normalizeModuleAndLoadMetadata(path, exportName, {\n importInterop,\n initializeReexports: constantReexports,\n getWrapperPayload,\n esNamespaceOnly,\n filename,\n });\n\n if (!allowTopLevelThis) {\n rewriteThis(path);\n }\n\n rewriteLiveReferences(path, meta, wrapReference);\n\n if (strictMode !== false) {\n const hasStrict = path.node.directives.some(directive => {\n return directive.value.value === \"use strict\";\n });\n if (!hasStrict) {\n path.unshiftContainer(\n \"directives\",\n t.directive(t.directiveLiteral(\"use strict\")),\n );\n }\n }\n\n const headers = [];\n if (hasExports(meta) && !strict) {\n headers.push(buildESModuleHeader(meta, enumerableModuleMeta));\n }\n\n const nameList = buildExportNameListDeclaration(path, meta);\n\n if (nameList) {\n meta.exportNameListName = nameList.name;\n headers.push(nameList.statement);\n }\n\n // Create all of the statically known named exports.\n headers.push(\n ...buildExportInitializationStatements(\n path,\n meta,\n wrapReference,\n constantReexports,\n noIncompleteNsImportDetection,\n ),\n );\n\n return { meta, headers };\n}\n\n/**\n * Flag a set of statements as hoisted above all else so that module init\n * statements all run before user code.\n */\nexport function ensureStatementsHoisted(statements: t.Statement[]) {\n // Force all of the header fields to be at the top of the file.\n statements.forEach(header => {\n // @ts-expect-error Fixme: handle _blockHoist property\n header._blockHoist = 3;\n });\n}\n\n/**\n * Given an expression for a standard import object, like \"require('foo')\",\n * wrap it in a call to the interop helpers based on the type.\n */\nexport function wrapInterop(\n programPath: NodePath<t.Program>,\n expr: t.Expression,\n type: InteropType,\n): t.CallExpression {\n if (type === \"none\") {\n return null;\n }\n\n if (type === \"node-namespace\") {\n return t.callExpression(\n programPath.hub.addHelper(\"interopRequireWildcard\"),\n [expr, t.booleanLiteral(true)],\n );\n } else if (type === \"node-default\") {\n return null;\n }\n\n let helper;\n if (type === \"default\") {\n helper = \"interopRequireDefault\";\n } else if (type === \"namespace\") {\n helper = \"interopRequireWildcard\";\n } else {\n throw new Error(`Unknown interop: ${type}`);\n }\n\n return t.callExpression(programPath.hub.addHelper(helper), [expr]);\n}\n\n/**\n * Create the runtime initialization statements for a given requested source.\n * These will initialize all of the runtime import/export logic that\n * can't be handled statically by the statements created by\n * buildExportInitializationStatements().\n */\nexport function buildNamespaceInitStatements(\n metadata: ModuleMetadata,\n sourceMetadata: SourceModuleMetadata,\n constantReexports: boolean | void = false,\n wrapReference: (\n ref: t.Identifier,\n payload: unknown,\n ) => t.Expression | null = Lazy.wrapReference,\n) {\n const statements = [];\n\n const srcNamespaceId = t.identifier(sourceMetadata.name);\n\n for (const localName of sourceMetadata.importsNamespace) {\n if (localName === sourceMetadata.name) continue;\n\n // Create and assign binding to namespace object\n statements.push(\n template.statement`var NAME = SOURCE;`({\n NAME: localName,\n SOURCE: t.cloneNode(srcNamespaceId),\n }),\n );\n }\n\n const srcNamespace =\n wrapReference(srcNamespaceId, sourceMetadata.wrap) ?? srcNamespaceId;\n\n if (constantReexports) {\n statements.push(\n ...buildReexportsFromMeta(metadata, sourceMetadata, true, wrapReference),\n );\n }\n for (const exportName of sourceMetadata.reexportNamespace) {\n // Assign export to namespace object.\n statements.push(\n (!t.isIdentifier(srcNamespace)\n ? template.statement`\n Object.defineProperty(EXPORTS, \"NAME\", {\n enumerable: true,\n get: function() {\n return NAMESPACE;\n }\n });\n `\n : template.statement`EXPORTS.NAME = NAMESPACE;`)({\n EXPORTS: metadata.exportName,\n NAME: exportName,\n NAMESPACE: t.cloneNode(srcNamespace),\n }),\n );\n }\n if (sourceMetadata.reexportAll) {\n const statement = buildNamespaceReexport(\n metadata,\n t.cloneNode(srcNamespace),\n constantReexports,\n );\n statement.loc = sourceMetadata.reexportAll.loc;\n\n // Iterate props creating getter for each prop.\n statements.push(statement);\n }\n return statements;\n}\n\ninterface ReexportParts {\n exports: string;\n exportName: string;\n namespaceImport: t.Expression;\n}\n\nconst ReexportTemplate = {\n constant: ({ exports, exportName, namespaceImport }: ReexportParts) =>\n template.statement.ast`\n ${exports}.${exportName} = ${namespaceImport};\n `,\n constantComputed: ({ exports, exportName, namespaceImport }: ReexportParts) =>\n template.statement.ast`\n ${exports}[\"${exportName}\"] = ${namespaceImport};\n `,\n spec: ({ exports, exportName, namespaceImport }: ReexportParts) =>\n template.statement.ast`\n Object.defineProperty(${exports}, \"${exportName}\", {\n enumerable: true,\n get: function() {\n return ${namespaceImport};\n },\n });\n `,\n};\n\nfunction buildReexportsFromMeta(\n meta: ModuleMetadata,\n metadata: SourceModuleMetadata,\n constantReexports: boolean,\n wrapReference: (ref: t.Expression, payload: unknown) => t.Expression | null,\n): t.Statement[] {\n let namespace: t.Expression = t.identifier(metadata.name);\n namespace = wrapReference(namespace, metadata.wrap) ?? namespace;\n\n const { stringSpecifiers } = meta;\n return Array.from(metadata.reexports, ([exportName, importName]) => {\n let namespaceImport: t.Expression = t.cloneNode(namespace);\n if (importName === \"default\" && metadata.interop === \"node-default\") {\n // Nothing, it's ok as-is\n } else if (stringSpecifiers.has(importName)) {\n namespaceImport = t.memberExpression(\n namespaceImport,\n t.stringLiteral(importName),\n true,\n );\n } else {\n namespaceImport = t.memberExpression(\n namespaceImport,\n t.identifier(importName),\n );\n }\n const astNodes: ReexportParts = {\n exports: meta.exportName,\n exportName,\n namespaceImport,\n };\n if (constantReexports || t.isIdentifier(namespaceImport)) {\n if (stringSpecifiers.has(exportName)) {\n return ReexportTemplate.constantComputed(astNodes);\n } else {\n return ReexportTemplate.constant(astNodes);\n }\n } else {\n return ReexportTemplate.spec(astNodes);\n }\n });\n}\n\n/**\n * Build an \"__esModule\" header statement setting the property on a given object.\n */\nfunction buildESModuleHeader(\n metadata: ModuleMetadata,\n enumerableModuleMeta: boolean | void = false,\n) {\n return (\n enumerableModuleMeta\n ? template.statement`\n EXPORTS.__esModule = true;\n `\n : template.statement`\n Object.defineProperty(EXPORTS, \"__esModule\", {\n value: true,\n });\n `\n )({ EXPORTS: metadata.exportName });\n}\n\n/**\n * Create a re-export initialization loop for a specific imported namespace.\n */\nfunction buildNamespaceReexport(\n metadata: ModuleMetadata,\n namespace: t.Expression,\n constantReexports: boolean | void,\n) {\n return (\n constantReexports\n ? template.statement`\n Object.keys(NAMESPACE).forEach(function(key) {\n if (key === \"default\" || key === \"__esModule\") return;\n VERIFY_NAME_LIST;\n if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;\n\n EXPORTS[key] = NAMESPACE[key];\n });\n `\n : // Also skip already assigned bindings if they are strictly equal\n // to be somewhat more spec-compliant when a file has multiple\n // namespace re-exports that would cause a binding to be exported\n // multiple times. However, multiple bindings of the same name that\n // export the same primitive value are silently skipped\n // (the spec requires an \"ambiguous bindings\" early error here).\n template.statement`\n Object.keys(NAMESPACE).forEach(function(key) {\n if (key === \"default\" || key === \"__esModule\") return;\n VERIFY_NAME_LIST;\n if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;\n\n Object.defineProperty(EXPORTS, key, {\n enumerable: true,\n get: function() {\n return NAMESPACE[key];\n },\n });\n });\n `\n )({\n NAMESPACE: namespace,\n EXPORTS: metadata.exportName,\n VERIFY_NAME_LIST: metadata.exportNameListName\n ? template`\n if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;\n `({ EXPORTS_LIST: metadata.exportNameListName })\n : null,\n });\n}\n\n/**\n * Build a statement declaring a variable that contains all of the exported\n * variable names in an object so they can easily be referenced from an\n * export * from statement to check for conflicts.\n */\nfunction buildExportNameListDeclaration(\n programPath: NodePath,\n metadata: ModuleMetadata,\n) {\n const exportedVars = Object.create(null);\n for (const data of metadata.local.values()) {\n for (const name of data.names) {\n exportedVars[name] = true;\n }\n }\n\n let hasReexport = false;\n for (const data of metadata.source.values()) {\n for (const exportName of data.reexports.keys()) {\n exportedVars[exportName] = true;\n }\n for (const exportName of data.reexportNamespace) {\n exportedVars[exportName] = true;\n }\n\n hasReexport = hasReexport || !!data.reexportAll;\n }\n\n if (!hasReexport || Object.keys(exportedVars).length === 0) return null;\n\n const name = programPath.scope.generateUidIdentifier(\"exportNames\");\n\n delete exportedVars.default;\n\n return {\n name: name.name,\n statement: t.variableDeclaration(\"var\", [\n t.variableDeclarator(name, t.valueToNode(exportedVars)),\n ]),\n };\n}\n\n/**\n * Create a set of statements that will initialize all of the statically-known\n * export names with their expected values.\n */\nfunction buildExportInitializationStatements(\n programPath: NodePath,\n metadata: ModuleMetadata,\n wrapReference: (ref: t.Expression, payload: unknown) => t.Expression | null,\n constantReexports: boolean | void = false,\n noIncompleteNsImportDetection: boolean | void = false,\n) {\n const initStatements: [string, t.Statement | null][] = [];\n\n for (const [localName, data] of metadata.local) {\n if (data.kind === \"import\") {\n // No-open since these are explicitly set with the \"reexports\" block.\n } else if (data.kind === \"hoisted\") {\n initStatements.push([\n // data.names is always of length 1 because a hoisted export\n // name must be id of a function declaration\n data.names[0],\n buildInitStatement(metadata, data.names, t.identifier(localName)),\n ]);\n } else if (!noIncompleteNsImportDetection) {\n for (const exportName of data.names) {\n initStatements.push([exportName, null]);\n }\n }\n }\n\n for (const data of metadata.source.values()) {\n if (!constantReexports) {\n const reexportsStatements = buildReexportsFromMeta(\n metadata,\n data,\n false,\n wrapReference,\n );\n const reexports = [...data.reexports.keys()];\n for (let i = 0; i < reexportsStatements.length; i++) {\n initStatements.push([reexports[i], reexportsStatements[i]]);\n }\n }\n if (!noIncompleteNsImportDetection) {\n for (const exportName of data.reexportNamespace) {\n initStatements.push([exportName, null]);\n }\n }\n }\n\n // https://tc39.es/ecma262/#sec-module-namespace-exotic-objects\n // The [Exports] list is ordered as if an Array of those String values\n // had been sorted using %Array.prototype.sort% using undefined as comparefn\n initStatements.sort(([a], [b]) => {\n if (a < b) return -1;\n if (b < a) return 1;\n return 0;\n });\n\n const results = [];\n if (noIncompleteNsImportDetection) {\n for (const [, initStatement] of initStatements) {\n results.push(initStatement);\n }\n } else {\n // We generate init statements (`exports.a = exports.b = ... = void 0`)\n // for every 100 exported names to avoid deeply-nested AST structures.\n const chunkSize = 100;\n for (let i = 0; i < initStatements.length; i += chunkSize) {\n let uninitializedExportNames = [];\n for (let j = 0; j < chunkSize && i + j < initStatements.length; j++) {\n const [exportName, initStatement] = initStatements[i + j];\n if (initStatement !== null) {\n if (uninitializedExportNames.length > 0) {\n results.push(\n buildInitStatement(\n metadata,\n uninitializedExportNames,\n programPath.scope.buildUndefinedNode(),\n ),\n );\n // reset after uninitializedExportNames has been transformed\n // to init statements\n uninitializedExportNames = [];\n }\n results.push(initStatement);\n } else {\n uninitializedExportNames.push(exportName);\n }\n }\n if (uninitializedExportNames.length > 0) {\n results.push(\n buildInitStatement(\n metadata,\n uninitializedExportNames,\n programPath.scope.buildUndefinedNode(),\n ),\n );\n }\n }\n }\n\n return results;\n}\n\ninterface InitParts {\n exports: string;\n name: string;\n value: t.Expression;\n}\n\n/**\n * Given a set of export names, create a set of nested assignments to\n * initialize them all to a given expression.\n */\nconst InitTemplate = {\n computed: ({ exports, name, value }: InitParts) =>\n template.expression.ast`${exports}[\"${name}\"] = ${value}`,\n default: ({ exports, name, value }: InitParts) =>\n template.expression.ast`${exports}.${name} = ${value}`,\n define: ({ exports, name, value }: InitParts) =>\n template.expression.ast`\n Object.defineProperty(${exports}, \"${name}\", {\n enumerable: true,\n value: void 0,\n writable: true\n })[\"${name}\"] = ${value}`,\n};\n\nfunction buildInitStatement(\n metadata: ModuleMetadata,\n exportNames: string[],\n initExpr: t.Expression,\n) {\n const { stringSpecifiers, exportName: exports } = metadata;\n return t.expressionStatement(\n exportNames.reduce((value, name) => {\n const params = {\n exports,\n name,\n value,\n };\n\n if (name === \"__proto__\") {\n return InitTemplate.define(params);\n }\n\n if (stringSpecifiers.has(name)) {\n return InitTemplate.computed(params);\n }\n\n return In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AAM8C,IAAI;AAC/C;AACA;AACA;AACA,YAAYA,IAAI,QAAQX,KAAK;AAC7B,CAAC;AAED,SAAS0F,kBAAkBA,CACzB5D,QAAwB,EACxB4E,WAAqB,EACrBC,QAAsB,EACtB;EACA,MAAM;IAAEhD,gBAAgB;IAAE1F,UAAU,EAAEJ;EAAQ,CAAC,GAAGiE,QAAQ;EAC1D,OAAO5B,WAAC,CAAC0G,mBAAmB,CAC1BF,WAAW,CAACG,MAAM,CAAC,CAAC7G,KAAK,EAAEW,IAAI,KAAK;IAClC,MAAMmG,MAAM,GAAG;MACbjJ,OAAO;MACP8C,IAAI;MACJX;IACF,CAAC;IAED,IAAIW,IAAI,KAAK,WAAW,EAAE;MACxB,OAAO2F,YAAY,CAACG,MAAM,CAACK,MAAM,CAAC;IACpC;IAEA,IAAInD,gBAAgB,CAACM,GAAG,CAACtD,IAAI,CAAC,EAAE;MAC9B,OAAO2F,YAAY,CAACC,QAAQ,CAACO,MAAM,CAAC;IACtC;IAEA,OAAOR,YAAY,CAAClB,OAAO,CAAC0B,MAAM,CAAC;EACrC,CAAC,EAAEH,QAAQ,CACb,CAAC;AACH","ignoreList":[]}
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.toGetWrapperPayload = toGetWrapperPayload;
|
| 7 |
+
exports.wrapReference = wrapReference;
|
| 8 |
+
var _core = require("@babel/core");
|
| 9 |
+
var _normalizeAndLoadMetadata = require("./normalize-and-load-metadata.js");
|
| 10 |
+
function toGetWrapperPayload(lazy) {
|
| 11 |
+
return (source, metadata) => {
|
| 12 |
+
if (lazy === false) return null;
|
| 13 |
+
if ((0, _normalizeAndLoadMetadata.isSideEffectImport)(metadata) || metadata.reexportAll) return null;
|
| 14 |
+
if (lazy === true) {
|
| 15 |
+
return source.includes(".") ? null : "lazy";
|
| 16 |
+
}
|
| 17 |
+
if (Array.isArray(lazy)) {
|
| 18 |
+
return !lazy.includes(source) ? null : "lazy";
|
| 19 |
+
}
|
| 20 |
+
if (typeof lazy === "function") {
|
| 21 |
+
return lazy(source) ? "lazy" : null;
|
| 22 |
+
}
|
| 23 |
+
throw new Error(`.lazy must be a boolean, string array, or function`);
|
| 24 |
+
};
|
| 25 |
+
}
|
| 26 |
+
function wrapReference(ref, payload) {
|
| 27 |
+
if (payload === "lazy") return _core.types.callExpression(ref, []);
|
| 28 |
+
return null;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
//# sourceMappingURL=lazy-modules.js.map
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_core","require","_normalizeAndLoadMetadata","toGetWrapperPayload","lazy","source","metadata","isSideEffectImport","reexportAll","includes","Array","isArray","Error","wrapReference","ref","payload","t","callExpression"],"sources":["../src/lazy-modules.ts"],"sourcesContent":["// TODO: Move `lazy` implementation logic into the CommonJS plugin, since other\n// modules systems do not support `lazy`.\n\nimport { types as t } from \"@babel/core\";\nimport {\n type SourceModuleMetadata,\n isSideEffectImport,\n} from \"./normalize-and-load-metadata.ts\";\n\nexport type Lazy = boolean | string[] | ((source: string) => boolean);\n\nexport function toGetWrapperPayload(lazy: Lazy) {\n return (source: string, metadata: SourceModuleMetadata): null | \"lazy\" => {\n if (lazy === false) return null;\n if (isSideEffectImport(metadata) || metadata.reexportAll) return null;\n if (lazy === true) {\n // 'true' means that local relative files are eagerly loaded and\n // dependency modules are loaded lazily.\n return source.includes(\".\") ? null : \"lazy\";\n }\n if (Array.isArray(lazy)) {\n return !lazy.includes(source) ? null : \"lazy\";\n }\n if (typeof lazy === \"function\") {\n return lazy(source) ? \"lazy\" : null;\n }\n throw new Error(`.lazy must be a boolean, string array, or function`);\n };\n}\n\nexport function wrapReference(\n ref: t.Identifier,\n payload: unknown,\n): t.Expression | null {\n if (payload === \"lazy\") return t.callExpression(ref, []);\n return null;\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,yBAAA,GAAAD,OAAA;AAOO,SAASE,mBAAmBA,CAACC,IAAU,EAAE;EAC9C,OAAO,CAACC,MAAc,EAAEC,QAA8B,KAAoB;IACxE,IAAIF,IAAI,KAAK,KAAK,EAAE,OAAO,IAAI;IAC/B,IAAI,IAAAG,4CAAkB,EAACD,QAAQ,CAAC,IAAIA,QAAQ,CAACE,WAAW,EAAE,OAAO,IAAI;IACrE,IAAIJ,IAAI,KAAK,IAAI,EAAE;MAGjB,OAAOC,MAAM,CAACI,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,MAAM;IAC7C;IACA,IAAIC,KAAK,CAACC,OAAO,CAACP,IAAI,CAAC,EAAE;MACvB,OAAO,CAACA,IAAI,CAACK,QAAQ,CAACJ,MAAM,CAAC,GAAG,IAAI,GAAG,MAAM;IAC/C;IACA,IAAI,OAAOD,IAAI,KAAK,UAAU,EAAE;MAC9B,OAAOA,IAAI,CAACC,MAAM,CAAC,GAAG,MAAM,GAAG,IAAI;IACrC;IACA,MAAM,IAAIO,KAAK,CAAC,oDAAoD,CAAC;EACvE,CAAC;AACH;AAEO,SAASC,aAAaA,CAC3BC,GAAiB,EACjBC,OAAgB,EACK;EACrB,IAA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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = normalizeModuleAndLoadMetadata;
|
| 7 |
+
exports.hasExports = hasExports;
|
| 8 |
+
exports.isSideEffectImport = isSideEffectImport;
|
| 9 |
+
exports.validateImportInteropOption = validateImportInteropOption;
|
| 10 |
+
var _path = require("path");
|
| 11 |
+
var _helperValidatorIdentifier = require("@babel/helper-validator-identifier");
|
| 12 |
+
function hasExports(metadata) {
|
| 13 |
+
return metadata.hasExports;
|
| 14 |
+
}
|
| 15 |
+
function isSideEffectImport(source) {
|
| 16 |
+
return source.imports.size === 0 && source.importsNamespace.size === 0 && source.reexports.size === 0 && source.reexportNamespace.size === 0 && !source.reexportAll;
|
| 17 |
+
}
|
| 18 |
+
function validateImportInteropOption(importInterop) {
|
| 19 |
+
if (typeof importInterop !== "function" && importInterop !== "none" && importInterop !== "babel" && importInterop !== "node") {
|
| 20 |
+
throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${importInterop}).`);
|
| 21 |
+
}
|
| 22 |
+
return importInterop;
|
| 23 |
+
}
|
| 24 |
+
function resolveImportInterop(importInterop, source, filename) {
|
| 25 |
+
if (typeof importInterop === "function") {
|
| 26 |
+
return validateImportInteropOption(importInterop(source, filename));
|
| 27 |
+
}
|
| 28 |
+
return importInterop;
|
| 29 |
+
}
|
| 30 |
+
function normalizeModuleAndLoadMetadata(programPath, exportName, {
|
| 31 |
+
importInterop,
|
| 32 |
+
initializeReexports = false,
|
| 33 |
+
getWrapperPayload,
|
| 34 |
+
esNamespaceOnly = false,
|
| 35 |
+
filename
|
| 36 |
+
}) {
|
| 37 |
+
if (!exportName) {
|
| 38 |
+
exportName = programPath.scope.generateUidIdentifier("exports").name;
|
| 39 |
+
}
|
| 40 |
+
const stringSpecifiers = new Set();
|
| 41 |
+
nameAnonymousExports(programPath);
|
| 42 |
+
const {
|
| 43 |
+
local,
|
| 44 |
+
sources,
|
| 45 |
+
hasExports
|
| 46 |
+
} = getModuleMetadata(programPath, {
|
| 47 |
+
initializeReexports,
|
| 48 |
+
getWrapperPayload
|
| 49 |
+
}, stringSpecifiers);
|
| 50 |
+
removeImportExportDeclarations(programPath);
|
| 51 |
+
for (const [source, metadata] of sources) {
|
| 52 |
+
const {
|
| 53 |
+
importsNamespace,
|
| 54 |
+
imports
|
| 55 |
+
} = metadata;
|
| 56 |
+
if (importsNamespace.size > 0 && imports.size === 0) {
|
| 57 |
+
const [nameOfnamespace] = importsNamespace;
|
| 58 |
+
metadata.name = nameOfnamespace;
|
| 59 |
+
}
|
| 60 |
+
const resolvedInterop = resolveImportInterop(importInterop, source, filename);
|
| 61 |
+
if (resolvedInterop === "none") {
|
| 62 |
+
metadata.interop = "none";
|
| 63 |
+
} else if (resolvedInterop === "node" && metadata.interop === "namespace") {
|
| 64 |
+
metadata.interop = "node-namespace";
|
| 65 |
+
} else if (resolvedInterop === "node" && metadata.interop === "default") {
|
| 66 |
+
metadata.interop = "node-default";
|
| 67 |
+
} else if (esNamespaceOnly && metadata.interop === "namespace") {
|
| 68 |
+
metadata.interop = "default";
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
return {
|
| 72 |
+
exportName,
|
| 73 |
+
exportNameListName: null,
|
| 74 |
+
hasExports,
|
| 75 |
+
local,
|
| 76 |
+
source: sources,
|
| 77 |
+
stringSpecifiers
|
| 78 |
+
};
|
| 79 |
+
}
|
| 80 |
+
function getExportSpecifierName(path, stringSpecifiers) {
|
| 81 |
+
if (path.isIdentifier()) {
|
| 82 |
+
return path.node.name;
|
| 83 |
+
} else if (path.isStringLiteral()) {
|
| 84 |
+
const stringValue = path.node.value;
|
| 85 |
+
if (!(0, _helperValidatorIdentifier.isIdentifierName)(stringValue)) {
|
| 86 |
+
stringSpecifiers.add(stringValue);
|
| 87 |
+
}
|
| 88 |
+
return stringValue;
|
| 89 |
+
} else {
|
| 90 |
+
throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${path.node.type}`);
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
function assertExportSpecifier(path) {
|
| 94 |
+
if (path.isExportSpecifier()) {
|
| 95 |
+
return;
|
| 96 |
+
} else if (path.isExportNamespaceSpecifier()) {
|
| 97 |
+
throw path.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-transform-export-namespace-from`.");
|
| 98 |
+
} else {
|
| 99 |
+
throw path.buildCodeFrameError("Unexpected export specifier type");
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
function getModuleMetadata(programPath, {
|
| 103 |
+
getWrapperPayload,
|
| 104 |
+
initializeReexports
|
| 105 |
+
}, stringSpecifiers) {
|
| 106 |
+
const localData = getLocalExportMetadata(programPath, initializeReexports, stringSpecifiers);
|
| 107 |
+
const importNodes = new Map();
|
| 108 |
+
const sourceData = new Map();
|
| 109 |
+
const getData = (sourceNode, node) => {
|
| 110 |
+
const source = sourceNode.value;
|
| 111 |
+
let data = sourceData.get(source);
|
| 112 |
+
if (!data) {
|
| 113 |
+
data = {
|
| 114 |
+
name: programPath.scope.generateUidIdentifier((0, _path.basename)(source, (0, _path.extname)(source))).name,
|
| 115 |
+
interop: "none",
|
| 116 |
+
loc: null,
|
| 117 |
+
imports: new Map(),
|
| 118 |
+
importsNamespace: new Set(),
|
| 119 |
+
reexports: new Map(),
|
| 120 |
+
reexportNamespace: new Set(),
|
| 121 |
+
reexportAll: null,
|
| 122 |
+
wrap: null,
|
| 123 |
+
get lazy() {
|
| 124 |
+
return this.wrap === "lazy";
|
| 125 |
+
},
|
| 126 |
+
referenced: false
|
| 127 |
+
};
|
| 128 |
+
sourceData.set(source, data);
|
| 129 |
+
importNodes.set(source, [node]);
|
| 130 |
+
} else {
|
| 131 |
+
importNodes.get(source).push(node);
|
| 132 |
+
}
|
| 133 |
+
return data;
|
| 134 |
+
};
|
| 135 |
+
let hasExports = false;
|
| 136 |
+
programPath.get("body").forEach(child => {
|
| 137 |
+
if (child.isImportDeclaration()) {
|
| 138 |
+
const data = getData(child.node.source, child.node);
|
| 139 |
+
if (!data.loc) data.loc = child.node.loc;
|
| 140 |
+
child.get("specifiers").forEach(spec => {
|
| 141 |
+
if (spec.isImportDefaultSpecifier()) {
|
| 142 |
+
const localName = spec.get("local").node.name;
|
| 143 |
+
data.imports.set(localName, "default");
|
| 144 |
+
const reexport = localData.get(localName);
|
| 145 |
+
if (reexport) {
|
| 146 |
+
localData.delete(localName);
|
| 147 |
+
reexport.names.forEach(name => {
|
| 148 |
+
data.reexports.set(name, "default");
|
| 149 |
+
});
|
| 150 |
+
data.referenced = true;
|
| 151 |
+
}
|
| 152 |
+
} else if (spec.isImportNamespaceSpecifier()) {
|
| 153 |
+
const localName = spec.get("local").node.name;
|
| 154 |
+
data.importsNamespace.add(localName);
|
| 155 |
+
const reexport = localData.get(localName);
|
| 156 |
+
if (reexport) {
|
| 157 |
+
localData.delete(localName);
|
| 158 |
+
reexport.names.forEach(name => {
|
| 159 |
+
data.reexportNamespace.add(name);
|
| 160 |
+
});
|
| 161 |
+
data.referenced = true;
|
| 162 |
+
}
|
| 163 |
+
} else if (spec.isImportSpecifier()) {
|
| 164 |
+
const importName = getExportSpecifierName(spec.get("imported"), stringSpecifiers);
|
| 165 |
+
const localName = spec.get("local").node.name;
|
| 166 |
+
data.imports.set(localName, importName);
|
| 167 |
+
const reexport = localData.get(localName);
|
| 168 |
+
if (reexport) {
|
| 169 |
+
localData.delete(localName);
|
| 170 |
+
reexport.names.forEach(name => {
|
| 171 |
+
data.reexports.set(name, importName);
|
| 172 |
+
});
|
| 173 |
+
data.referenced = true;
|
| 174 |
+
}
|
| 175 |
+
}
|
| 176 |
+
});
|
| 177 |
+
} else if (child.isExportAllDeclaration()) {
|
| 178 |
+
hasExports = true;
|
| 179 |
+
const data = getData(child.node.source, child.node);
|
| 180 |
+
if (!data.loc) data.loc = child.node.loc;
|
| 181 |
+
data.reexportAll = {
|
| 182 |
+
loc: child.node.loc
|
| 183 |
+
};
|
| 184 |
+
data.referenced = true;
|
| 185 |
+
} else if (child.isExportNamedDeclaration() && child.node.source) {
|
| 186 |
+
hasExports = true;
|
| 187 |
+
const data = getData(child.node.source, child.node);
|
| 188 |
+
if (!data.loc) data.loc = child.node.loc;
|
| 189 |
+
child.get("specifiers").forEach(spec => {
|
| 190 |
+
assertExportSpecifier(spec);
|
| 191 |
+
const importName = getExportSpecifierName(spec.get("local"), stringSpecifiers);
|
| 192 |
+
const exportName = getExportSpecifierName(spec.get("exported"), stringSpecifiers);
|
| 193 |
+
data.reexports.set(exportName, importName);
|
| 194 |
+
data.referenced = true;
|
| 195 |
+
if (exportName === "__esModule") {
|
| 196 |
+
throw spec.get("exported").buildCodeFrameError('Illegal export "__esModule".');
|
| 197 |
+
}
|
| 198 |
+
});
|
| 199 |
+
} else if (child.isExportNamedDeclaration() || child.isExportDefaultDeclaration()) {
|
| 200 |
+
hasExports = true;
|
| 201 |
+
}
|
| 202 |
+
});
|
| 203 |
+
for (const metadata of sourceData.values()) {
|
| 204 |
+
let needsDefault = false;
|
| 205 |
+
let needsNamed = false;
|
| 206 |
+
if (metadata.importsNamespace.size > 0) {
|
| 207 |
+
needsDefault = true;
|
| 208 |
+
needsNamed = true;
|
| 209 |
+
}
|
| 210 |
+
if (metadata.reexportAll) {
|
| 211 |
+
needsNamed = true;
|
| 212 |
+
}
|
| 213 |
+
for (const importName of metadata.imports.values()) {
|
| 214 |
+
if (importName === "default") needsDefault = true;else needsNamed = true;
|
| 215 |
+
}
|
| 216 |
+
for (const importName of metadata.reexports.values()) {
|
| 217 |
+
if (importName === "default") needsDefault = true;else needsNamed = true;
|
| 218 |
+
}
|
| 219 |
+
if (needsDefault && needsNamed) {
|
| 220 |
+
metadata.interop = "namespace";
|
| 221 |
+
} else if (needsDefault) {
|
| 222 |
+
metadata.interop = "default";
|
| 223 |
+
}
|
| 224 |
+
}
|
| 225 |
+
if (getWrapperPayload) {
|
| 226 |
+
for (const [source, metadata] of sourceData) {
|
| 227 |
+
metadata.wrap = getWrapperPayload(source, metadata, importNodes.get(source));
|
| 228 |
+
}
|
| 229 |
+
}
|
| 230 |
+
return {
|
| 231 |
+
hasExports,
|
| 232 |
+
local: localData,
|
| 233 |
+
sources: sourceData
|
| 234 |
+
};
|
| 235 |
+
}
|
| 236 |
+
function getLocalExportMetadata(programPath, initializeReexports, stringSpecifiers) {
|
| 237 |
+
const bindingKindLookup = new Map();
|
| 238 |
+
const programScope = programPath.scope;
|
| 239 |
+
const programChildren = programPath.get("body");
|
| 240 |
+
programChildren.forEach(child => {
|
| 241 |
+
let kind;
|
| 242 |
+
if (child.isImportDeclaration()) {
|
| 243 |
+
kind = "import";
|
| 244 |
+
} else {
|
| 245 |
+
if (child.isExportDefaultDeclaration()) {
|
| 246 |
+
child = child.get("declaration");
|
| 247 |
+
}
|
| 248 |
+
if (child.isExportNamedDeclaration()) {
|
| 249 |
+
if (child.node.declaration) {
|
| 250 |
+
child = child.get("declaration");
|
| 251 |
+
} else if (initializeReexports && child.node.source && child.get("source").isStringLiteral()) {
|
| 252 |
+
child.get("specifiers").forEach(spec => {
|
| 253 |
+
assertExportSpecifier(spec);
|
| 254 |
+
bindingKindLookup.set(spec.get("local").node.name, "block");
|
| 255 |
+
});
|
| 256 |
+
return;
|
| 257 |
+
}
|
| 258 |
+
}
|
| 259 |
+
if (child.isFunctionDeclaration()) {
|
| 260 |
+
kind = "hoisted";
|
| 261 |
+
} else if (child.isClassDeclaration()) {
|
| 262 |
+
kind = "block";
|
| 263 |
+
} else if (child.isVariableDeclaration({
|
| 264 |
+
kind: "var"
|
| 265 |
+
})) {
|
| 266 |
+
kind = "var";
|
| 267 |
+
} else if (child.isVariableDeclaration()) {
|
| 268 |
+
kind = "block";
|
| 269 |
+
} else {
|
| 270 |
+
return;
|
| 271 |
+
}
|
| 272 |
+
}
|
| 273 |
+
Object.keys(child.getOuterBindingIdentifiers()).forEach(name => {
|
| 274 |
+
bindingKindLookup.set(name, kind);
|
| 275 |
+
});
|
| 276 |
+
});
|
| 277 |
+
const localMetadata = new Map();
|
| 278 |
+
const getLocalMetadata = idPath => {
|
| 279 |
+
const localName = idPath.node.name;
|
| 280 |
+
let metadata = localMetadata.get(localName);
|
| 281 |
+
if (!metadata) {
|
| 282 |
+
var _bindingKindLookup$ge, _programScope$getBind;
|
| 283 |
+
const kind = (_bindingKindLookup$ge = bindingKindLookup.get(localName)) != null ? _bindingKindLookup$ge : (_programScope$getBind = programScope.getBinding(localName)) == null ? void 0 : _programScope$getBind.kind;
|
| 284 |
+
if (kind === undefined) {
|
| 285 |
+
throw idPath.buildCodeFrameError(`Exporting local "${localName}", which is not declared.`);
|
| 286 |
+
}
|
| 287 |
+
metadata = {
|
| 288 |
+
names: [],
|
| 289 |
+
kind
|
| 290 |
+
};
|
| 291 |
+
localMetadata.set(localName, metadata);
|
| 292 |
+
}
|
| 293 |
+
return metadata;
|
| 294 |
+
};
|
| 295 |
+
programChildren.forEach(child => {
|
| 296 |
+
if (child.isExportNamedDeclaration() && (initializeReexports || !child.node.source)) {
|
| 297 |
+
if (child.node.declaration) {
|
| 298 |
+
const declaration = child.get("declaration");
|
| 299 |
+
const ids = declaration.getOuterBindingIdentifierPaths();
|
| 300 |
+
Object.keys(ids).forEach(name => {
|
| 301 |
+
if (name === "__esModule") {
|
| 302 |
+
throw declaration.buildCodeFrameError('Illegal export "__esModule".');
|
| 303 |
+
}
|
| 304 |
+
getLocalMetadata(ids[name]).names.push(name);
|
| 305 |
+
});
|
| 306 |
+
} else {
|
| 307 |
+
child.get("specifiers").forEach(spec => {
|
| 308 |
+
const local = spec.get("local");
|
| 309 |
+
const exported = spec.get("exported");
|
| 310 |
+
const localMetadata = getLocalMetadata(local);
|
| 311 |
+
const exportName = getExportSpecifierName(exported, stringSpecifiers);
|
| 312 |
+
if (exportName === "__esModule") {
|
| 313 |
+
throw exported.buildCodeFrameError('Illegal export "__esModule".');
|
| 314 |
+
}
|
| 315 |
+
localMetadata.names.push(exportName);
|
| 316 |
+
});
|
| 317 |
+
}
|
| 318 |
+
} else if (child.isExportDefaultDeclaration()) {
|
| 319 |
+
const declaration = child.get("declaration");
|
| 320 |
+
if (declaration.isFunctionDeclaration() || declaration.isClassDeclaration()) {
|
| 321 |
+
getLocalMetadata(declaration.get("id")).names.push("default");
|
| 322 |
+
} else {
|
| 323 |
+
throw declaration.buildCodeFrameError("Unexpected default expression export.");
|
| 324 |
+
}
|
| 325 |
+
}
|
| 326 |
+
});
|
| 327 |
+
return localMetadata;
|
| 328 |
+
}
|
| 329 |
+
function nameAnonymousExports(programPath) {
|
| 330 |
+
programPath.get("body").forEach(child => {
|
| 331 |
+
var _child$splitExportDec;
|
| 332 |
+
if (!child.isExportDefaultDeclaration()) return;
|
| 333 |
+
(_child$splitExportDec = child.splitExportDeclaration) != null ? _child$splitExportDec : child.splitExportDeclaration = require("@babel/traverse").NodePath.prototype.splitExportDeclaration;
|
| 334 |
+
child.splitExportDeclaration();
|
| 335 |
+
});
|
| 336 |
+
}
|
| 337 |
+
function removeImportExportDeclarations(programPath) {
|
| 338 |
+
programPath.get("body").forEach(child => {
|
| 339 |
+
if (child.isImportDeclaration()) {
|
| 340 |
+
child.remove();
|
| 341 |
+
} else if (child.isExportNamedDeclaration()) {
|
| 342 |
+
if (child.node.declaration) {
|
| 343 |
+
child.node.declaration._blockHoist = child.node._blockHoist;
|
| 344 |
+
child.replaceWith(child.node.declaration);
|
| 345 |
+
} else {
|
| 346 |
+
child.remove();
|
| 347 |
+
}
|
| 348 |
+
} else if (child.isExportDefaultDeclaration()) {
|
| 349 |
+
const declaration = child.get("declaration");
|
| 350 |
+
if (declaration.isFunctionDeclaration() || declaration.isClassDeclaration()) {
|
| 351 |
+
declaration._blockHoist = child.node._blockHoist;
|
| 352 |
+
child.replaceWith(declaration);
|
| 353 |
+
} else {
|
| 354 |
+
throw declaration.buildCodeFrameError("Unexpected default expression export.");
|
| 355 |
+
}
|
| 356 |
+
} else if (child.isExportAllDeclaration()) {
|
| 357 |
+
child.remove();
|
| 358 |
+
}
|
| 359 |
+
});
|
| 360 |
+
}
|
| 361 |
+
|
| 362 |
+
//# sourceMappingURL=normalize-and-load-metadata.js.map
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_path","require","_helperValidatorIdentifier","hasExports","metadata","isSideEffectImport","source","imports","size","importsNamespace","reexports","reexportNamespace","reexportAll","validateImportInteropOption","importInterop","Error","resolveImportInterop","filename","normalizeModuleAndLoadMetadata","programPath","exportName","initializeReexports","getWrapperPayload","esNamespaceOnly","scope","generateUidIdentifier","name","stringSpecifiers","Set","nameAnonymousExports","local","sources","getModuleMetadata","removeImportExportDeclarations","nameOfnamespace","resolvedInterop","interop","exportNameListName","getExportSpecifierName","path","isIdentifier","node","isStringLiteral","stringValue","value","isIdentifierName","add","type","assertExportSpecifier","isExportSpecifier","isExportNamespaceSpecifier","buildCodeFrameError","localData","getLocalExportMetadata","importNodes","Map","sourceData","getData","sourceNode","data","get","basename","extname","loc","wrap","lazy","referenced","set","push","forEach","child","isImportDeclaration","spec","isImportDefaultSpecifier","localName","reexport","delete","names","isImportNamespaceSpecifier","isImportSpecifier","importName","isExportAllDeclaration","isExportNamedDeclaration","isExportDefaultDeclaration","values","needsDefault","needsNamed","bindingKindLookup","programScope","programChildren","kind","declaration","isFunctionDeclaration","isClassDeclaration","isVariableDeclaration","Object","keys","getOuterBindingIdentifiers","localMetadata","getLocalMetadata","idPath","_bindingKindLookup$ge","_programScope$getBind","getBinding","undefined","ids","getOuterBindingIdentifierPaths","exported","_child$splitExportDec","splitExportDeclaration","NodePath","prototype","remove","_blockHoist","replaceWith"],"sources":["../src/normalize-and-load-metadata.ts"],"sourcesContent":["import { basename, extname } from \"node:path\";\nimport type { types as t, NodePath } from \"@babel/core\";\n\nimport { isIdentifierName } from \"@babel/helper-validator-identifier\";\n\nexport interface ModuleMetadata {\n exportName: string;\n // The name of the variable that will reference an object containing export names.\n exportNameListName: null | string;\n hasExports: boolean;\n // Lookup from local binding to export information.\n local: Map<string, LocalExportMetadata>;\n // Lookup of source file to source file metadata.\n source: Map<string, SourceModuleMetadata>;\n // List of names that should only be printed as string literals.\n // i.e. `import { \"any unicode\" as foo } from \"some-module\"`\n // `stringSpecifiers` is Set(1) [\"any unicode\"]\n // In most cases `stringSpecifiers` is an empty Set\n stringSpecifiers: Set<string>;\n}\n\nexport type InteropType =\n | \"default\" // Babel interop for default-only imports\n | \"namespace\" // Babel interop for namespace or default+named imports\n | \"node-default\" // Node.js interop for default-only imports\n | \"node-namespace\" // Node.js interop for namespace or default+named imports\n | \"none\"; // No interop, or named-only imports\n\nexport type ImportInterop =\n | \"none\"\n | \"babel\"\n | \"node\"\n | ((source: string, filename?: string) => \"none\" | \"babel\" | \"node\");\n\nexport interface SourceModuleMetadata {\n // A unique variable name to use for this namespace object. Centralized for simplicity.\n name: string;\n loc: t.SourceLocation | undefined | null;\n interop: InteropType;\n // Local binding to reference from this source namespace. Key: Local name, value: Import name\n imports: Map<string, string>;\n // Local names that reference namespace object.\n importsNamespace: Set<string>;\n // Reexports to create for namespace. Key: Export name, value: Import name\n reexports: Map<string, string>;\n // List of names to re-export namespace as.\n reexportNamespace: Set<string>;\n // Tracks if the source should be re-exported.\n reexportAll: null | {\n loc: t.SourceLocation | undefined | null;\n };\n wrap?: unknown;\n referenced: boolean;\n}\n\nexport interface LocalExportMetadata {\n names: string[]; // names of exports,\n kind: \"import\" | \"hoisted\" | \"block\" | \"var\";\n}\n\n/**\n * Check if the module has any exports that need handling.\n */\nexport function hasExports(metadata: ModuleMetadata) {\n return metadata.hasExports;\n}\n\n/**\n * Check if a given source is an anonymous import, e.g. \"import 'foo';\"\n */\nexport function isSideEffectImport(source: SourceModuleMetadata) {\n return (\n source.imports.size === 0 &&\n source.importsNamespace.size === 0 &&\n source.reexports.size === 0 &&\n source.reexportNamespace.size === 0 &&\n !source.reexportAll\n );\n}\n\nexport function validateImportInteropOption(\n importInterop: any,\n): importInterop is ImportInterop {\n if (\n typeof importInterop !== \"function\" &&\n importInterop !== \"none\" &&\n importInterop !== \"babel\" &&\n importInterop !== \"node\"\n ) {\n throw new Error(\n `.importInterop must be one of \"none\", \"babel\", \"node\", or a function returning one of those values (received ${importInterop}).`,\n );\n }\n return importInterop;\n}\n\nfunction resolveImportInterop(\n importInterop: ImportInterop,\n source: string,\n filename: string | undefined,\n) {\n if (typeof importInterop === \"function\") {\n return validateImportInteropOption(importInterop(source, filename));\n }\n return importInterop;\n}\n\n/**\n * Remove all imports and exports from the file, and return all metadata\n * needed to reconstruct the module's behavior.\n */\nexport default function normalizeModuleAndLoadMetadata(\n programPath: NodePath<t.Program>,\n exportName: string,\n {\n importInterop,\n initializeReexports = false,\n getWrapperPayload,\n esNamespaceOnly = false,\n filename,\n }: {\n importInterop: ImportInterop;\n initializeReexports: boolean | void;\n getWrapperPayload?: (\n source: string,\n metadata: SourceModuleMetadata,\n importNodes: t.Node[],\n ) => unknown;\n esNamespaceOnly: boolean;\n filename: string;\n },\n): ModuleMetadata {\n if (!exportName) {\n exportName = programPath.scope.generateUidIdentifier(\"exports\").name;\n }\n const stringSpecifiers = new Set<string>();\n\n nameAnonymousExports(programPath);\n\n const { local, sources, hasExports } = getModuleMetadata(\n programPath,\n { initializeReexports, getWrapperPayload },\n stringSpecifiers,\n );\n\n removeImportExportDeclarations(programPath);\n\n // Reuse the imported namespace name if there is one.\n for (const [source, metadata] of sources) {\n const { importsNamespace, imports } = metadata;\n // If there is at least one namespace import and other imports, it may collipse with local ident, can be seen in issue 15879.\n if (importsNamespace.size > 0 && imports.size === 0) {\n const [nameOfnamespace] = importsNamespace;\n metadata.name = nameOfnamespace;\n }\n\n const resolvedInterop = resolveImportInterop(\n importInterop,\n source,\n filename,\n );\n\n if (resolvedInterop === \"none\") {\n metadata.interop = \"none\";\n } else if (resolvedInterop === \"node\" && metadata.interop === \"namespace\") {\n metadata.interop = \"node-namespace\";\n } else if (resolvedInterop === \"node\" && metadata.interop === \"default\") {\n metadata.interop = \"node-default\";\n } else if (esNamespaceOnly && metadata.interop === \"namespace\") {\n // Both the default and namespace interops pass through __esModule\n // objects, but the namespace interop is used to enable Babel's\n // destructuring-like interop behavior for normal CommonJS.\n // Since some tooling has started to remove that behavior, we expose\n // it as the `esNamespace` option.\n metadata.interop = \"default\";\n }\n }\n\n return {\n exportName,\n exportNameListName: null,\n hasExports,\n local,\n source: sources,\n stringSpecifiers,\n };\n}\n\nfunction getExportSpecifierName(\n path: NodePath,\n stringSpecifiers: Set<string>,\n): string {\n if (path.isIdentifier()) {\n return path.node.name;\n } else if (path.isStringLiteral()) {\n const stringValue = path.node.value;\n // add specifier value to `stringSpecifiers` only when it can not be converted to an identifier name\n // i.e In `import { \"foo\" as bar }`\n // we do not consider `\"foo\"` to be a `stringSpecifier` because we can treat it as\n // `import { foo as bar }`\n // This helps minimize the size of `stringSpecifiers` and reduce overhead of checking valid identifier names\n // when building transpiled code from metadata\n if (!isIdentifierName(stringValue)) {\n stringSpecifiers.add(stringValue);\n }\n return stringValue;\n } else {\n throw new Error(\n `Expected export specifier to be either Identifier or StringLiteral, got ${path.node.type}`,\n );\n }\n}\n\nfunction assertExportSpecifier(\n path: NodePath,\n): asserts path is NodePath<t.ExportSpecifier> {\n if (path.isExportSpecifier()) {\n return;\n } else if (path.isExportNamespaceSpecifier()) {\n throw path.buildCodeFrameError(\n \"Export namespace should be first transformed by `@babel/plugin-transform-export-namespace-from`.\",\n );\n } else {\n throw path.buildCodeFrameError(\"Unexpected export specifier type\");\n }\n}\n\n/**\n * Get metadata about the imports and exports present in this module.\n */\nfunction getModuleMetadata(\n programPath: NodePath<t.Program>,\n {\n getWrapperPayload,\n initializeReexports,\n }: {\n getWrapperPayload?: (\n source: string,\n metadata: SourceModuleMetadata,\n importNodes: t.Node[],\n ) => unknown;\n initializeReexports: boolean | void;\n },\n stringSpecifiers: Set<string>,\n) {\n const localData = getLocalExportMetadata(\n programPath,\n initializeReexports,\n stringSpecifiers,\n );\n\n const importNodes = new Map<string, t.Node[]>();\n const sourceData = new Map<string, SourceModuleMetadata>();\n const getData = (sourceNode: t.StringLiteral, node: t.Node) => {\n const source = sourceNode.value;\n\n let data = sourceData.get(source);\n if (!data) {\n data = {\n name: programPath.scope.generateUidIdentifier(\n basename(source, extname(source)),\n ).name,\n\n interop: \"none\",\n\n loc: null,\n\n // Data about the requested sources and names.\n imports: new Map(),\n importsNamespace: new Set(),\n\n // Metadata about data that is passed directly from source to export.\n reexports: new Map(),\n reexportNamespace: new Set(),\n reexportAll: null,\n\n wrap: null,\n\n // @ts-expect-error lazy is not listed in the type.\n // This is needed for compatibility with older version of the commonjs\n // plugins.\n // TODO(Babel 8): Remove this\n get lazy() {\n return this.wrap === \"lazy\";\n },\n\n referenced: false,\n };\n sourceData.set(source, data);\n importNodes.set(source, [node]);\n } else {\n importNodes.get(source).push(node);\n }\n return data;\n };\n let hasExports = false;\n programPath.get(\"body\").forEach(child => {\n if (child.isImportDeclaration()) {\n const data = getData(child.node.source, child.node);\n if (!data.loc) data.loc = child.node.loc;\n\n child.get(\"specifiers\").forEach(spec => {\n if (spec.isImportDefaultSpecifier()) {\n const localName = spec.get(\"local\").node.name;\n\n data.imports.set(localName, \"default\");\n\n const reexport = localData.get(localName);\n if (reexport) {\n localData.delete(localName);\n\n reexport.names.forEach(name => {\n data.reexports.set(name, \"default\");\n });\n data.referenced = true;\n }\n } else if (spec.isImportNamespaceSpecifier()) {\n const localName = spec.get(\"local\").node.name;\n\n data.importsNamespace.add(localName);\n const reexport = localData.get(localName);\n if (reexport) {\n localData.delete(localName);\n\n reexport.names.forEach(name => {\n data.reexportNamespace.add(name);\n });\n data.referenced = true;\n }\n } else if (spec.isImportSpecifier()) {\n const importName = getExportSpecifierName(\n spec.get(\"imported\"),\n stringSpecifiers,\n );\n const localName = spec.get(\"local\").node.name;\n\n data.imports.set(localName, importName);\n\n const reexport = localData.get(localName);\n if (reexport) {\n localData.delete(localName);\n\n reexport.names.forEach(name => {\n data.reexports.set(name, importName);\n });\n data.referenced = true;\n }\n }\n });\n } else if (child.isExportAllDeclaration()) {\n hasExports = true;\n const data = getData(child.node.source, child.node);\n if (!data.loc) data.loc = child.node.loc;\n\n data.reexportAll = {\n loc: child.node.loc,\n };\n data.referenced = true;\n } else if (child.isExportNamedDeclaration() && child.node.source) {\n hasExports = true;\n const data = getData(child.node.source, child.node);\n if (!data.loc) data.loc = child.node.loc;\n\n child.get(\"specifiers\").forEach(spec => {\n assertExportSpecifier(spec);\n const importName = getExportSpecifierName(\n spec.get(\"local\"),\n stringSpecifiers,\n );\n const exportName = getExportSpecifierName(\n spec.get(\"exported\"),\n stringSpecifiers,\n );\n\n data.reexports.set(exportName, importName);\n data.referenced = true;\n\n if (exportName === \"__esModule\") {\n throw spec\n .get(\"exported\")\n .buildCodeFrameError('Illegal export \"__esModule\".');\n }\n });\n } else if (\n child.isExportNamedDeclaration() ||\n child.isExportDefaultDeclaration()\n ) {\n hasExports = true;\n }\n });\n\n for (const metadata of sourceData.values()) {\n let needsDefault = false;\n let needsNamed = false;\n\n if (metadata.importsNamespace.size > 0) {\n needsDefault = true;\n needsNamed = true;\n }\n\n if (metadata.reexportAll) {\n needsNamed = true;\n }\n\n for (const importName of metadata.imports.values()) {\n if (importName === \"default\") needsDefault = true;\n else needsNamed = true;\n }\n for (const importName of metadata.reexports.values()) {\n if (importName === \"default\") needsDefault = true;\n else needsNamed = true;\n }\n\n if (needsDefault && needsNamed) {\n // TODO(logan): Using the namespace interop here is unfortunate. Revisit.\n metadata.interop = \"namespace\";\n } else if (needsDefault) {\n metadata.interop = \"default\";\n }\n }\n\n if (getWrapperPayload) {\n for (const [source, metadata] of sourceData) {\n metadata.wrap = getWrapperPayload(\n source,\n metadata,\n importNodes.get(source),\n );\n }\n }\n\n return {\n hasExports,\n local: localData,\n sources: sourceData,\n };\n}\n\ntype ModuleBindingKind = \"import\" | \"hoisted\" | \"block\" | \"var\";\n/**\n * Get metadata about local variables that are exported.\n */\nfunction getLocalExportMetadata(\n programPath: NodePath<t.Program>,\n initializeReexports: boolean | void,\n stringSpecifiers: Set<string>,\n): Map<string, LocalExportMetadata> {\n const bindingKindLookup = new Map();\n\n const programScope = programPath.scope;\n const programChildren = programPath.get(\"body\");\n\n programChildren.forEach((child: NodePath) => {\n let kind: ModuleBindingKind;\n if (child.isImportDeclaration()) {\n kind = \"import\";\n } else {\n if (child.isExportDefaultDeclaration()) {\n child = child.get(\"declaration\");\n }\n if (child.isExportNamedDeclaration()) {\n if (child.node.declaration) {\n child = child.get(\"declaration\");\n } else if (\n initializeReexports &&\n child.node.source &&\n child.get(\"source\").isStringLiteral()\n ) {\n child.get(\"specifiers\").forEach(spec => {\n assertExportSpecifier(spec);\n bindingKindLookup.set(spec.get(\"local\").node.name, \"block\");\n });\n return;\n }\n }\n\n if (child.isFunctionDeclaration()) {\n kind = \"hoisted\";\n } else if (child.isClassDeclaration()) {\n kind = \"block\";\n } else if (child.isVariableDeclaration({ kind: \"var\" })) {\n kind = \"var\";\n } else if (child.isVariableDeclaration()) {\n kind = \"block\";\n } else {\n return;\n }\n }\n\n Object.keys(child.getOuterBindingIdentifiers()).forEach(name => {\n bindingKindLookup.set(name, kind);\n });\n });\n\n const localMetadata = new Map();\n const getLocalMetadata = (idPath: NodePath<t.Identifier>) => {\n const localName = idPath.node.name;\n let metadata = localMetadata.get(localName);\n\n if (!metadata) {\n // If localName is not found in the bindingKindLookup generated\n // from top level declarations, it could be a reference to a var\n // declaration defined within block statement or switch case\n const kind: ModuleBindingKind =\n bindingKindLookup.get(localName) ??\n (programScope.getBinding(localName)?.kind as \"var\" | undefined);\n\n if (kind === undefined) {\n throw idPath.buildCodeFrameError(\n `Exporting local \"${localName}\", which is not declared.`,\n );\n }\n\n metadata = {\n names: [],\n kind,\n };\n localMetadata.set(localName, metadata);\n }\n return metadata;\n };\n\n programChildren.forEach(child => {\n if (\n child.isExportNamedDeclaration() &&\n (initializeReexports || !child.node.source)\n ) {\n if (child.node.declaration) {\n const declaration = child.get(\"declaration\");\n const ids = declaration.getOuterBindingIdentifierPaths();\n Object.keys(ids).forEach(name => {\n if (name === \"__esModule\") {\n throw declaration.buildCodeFrameError(\n 'Illegal export \"__esModule\".',\n );\n }\n getLocalMetadata(ids[name]).names.push(name);\n });\n } else {\n child.get(\"specifiers\").forEach(spec => {\n const local = spec.get(\"local\");\n const exported = spec.get(\"exported\");\n const localMetadata = getLocalMetadata(local);\n const exportName = getExportSpecifierName(exported, stringSpecifiers);\n\n if (exportName === \"__esModule\") {\n throw exported.buildCodeFrameError('Illegal export \"__esModule\".');\n }\n localMetadata.names.push(exportName);\n });\n }\n } else if (child.isExportDefaultDeclaration()) {\n const declaration = child.get(\"declaration\");\n if (\n declaration.isFunctionDeclaration() ||\n declaration.isClassDeclaration()\n ) {\n getLocalMetadata(declaration.get(\"id\")).names.push(\"default\");\n } else {\n // These should have been removed by the nameAnonymousExports() call.\n throw declaration.buildCodeFrameError(\n \"Unexpected default expression export.\",\n );\n }\n }\n });\n return localMetadata;\n}\n\n/**\n * Ensure that all exported values have local binding names.\n */\nfunction nameAnonymousExports(programPath: NodePath<t.Program>) {\n // Name anonymous exported locals.\n programPath.get(\"body\").forEach(child => {\n if (!child.isExportDefaultDeclaration()) return;\n if (!process.env.BABEL_8_BREAKING && !USE_ESM && !IS_STANDALONE) {\n // polyfill when being run by an older Babel version\n child.splitExportDeclaration ??=\n // eslint-disable-next-line no-restricted-globals\n require(\"@babel/traverse\").NodePath.prototype.splitExportDeclaration;\n }\n child.splitExportDeclaration();\n });\n}\n\nfunction removeImportExportDeclarations(programPath: NodePath<t.Program>) {\n programPath.get(\"body\").forEach(child => {\n if (child.isImportDeclaration()) {\n child.remove();\n } else if (child.isExportNamedDeclaration()) {\n if (child.node.declaration) {\n // @ts-expect-error todo(flow->ts): avoid mutations\n child.node.declaration._blockHoist = child.node._blockHoist;\n child.replaceWith(child.node.declaration);\n } else {\n child.remove();\n }\n } else if (child.isExportDefaultDeclaration()) {\n // export default foo;\n const declaration = child.get(\"declaration\");\n if (\n declaration.isFunctionDeclaration() ||\n declaration.isClassDeclaration()\n ) {\n // @ts-expect-error todo(flow->ts): avoid mutations\n declaration._blockHoist = child.node._blockHoist;\n child.replaceWith(declaration);\n } else {\n // These should have been removed by the nameAnonymousExports() call.\n throw declaration.buildCodeFrameError(\n \"Unexpected default expression export.\",\n );\n }\n } else if (child.isExportAllDeclaration()) {\n child.remove();\n }\n });\n}\n"],"mappings":";;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,0BAAA,GAAAD,OAAA;AA4DO,SAASE,UAAUA,CAACC,QAAwB,EAAE;EACnD,OAAOA,QAAQ,CAACD,UAAU;AAC5B;AAKO,SAASE,kBAAkBA,CAACC,MAA4B,EAAE;EAC/D,OACEA,MAAM,CAACC,OAAO,CAACC,IAAI,KAAK,CAAC,IACzBF,MAAM,CAACG,gBAAgB,CAACD,IAAI,KAAK,CAAC,IAClCF,MAAM,CAACI,SAAS,CAACF,IAAI,KAAK,CAAC,IAC3BF,MAAM,CAACK,iBAAiB,CAACH,IAAI,KAAK,CAAC,IACnC,CAACF,MAAM,CAACM,WAAW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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = rewriteLiveReferences;
|
| 7 |
+
var _core = require("@babel/core");
|
| 8 |
+
function isInType(path) {
|
| 9 |
+
do {
|
| 10 |
+
switch (path.parent.type) {
|
| 11 |
+
case "TSTypeAnnotation":
|
| 12 |
+
case "TSTypeAliasDeclaration":
|
| 13 |
+
case "TSTypeReference":
|
| 14 |
+
case "TypeAnnotation":
|
| 15 |
+
case "TypeAlias":
|
| 16 |
+
return true;
|
| 17 |
+
case "ExportSpecifier":
|
| 18 |
+
return path.parentPath.parent.exportKind === "type";
|
| 19 |
+
default:
|
| 20 |
+
if (path.parentPath.isStatement() || path.parentPath.isExpression()) {
|
| 21 |
+
return false;
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
} while (path = path.parentPath);
|
| 25 |
+
}
|
| 26 |
+
function rewriteLiveReferences(programPath, metadata, wrapReference) {
|
| 27 |
+
const imported = new Map();
|
| 28 |
+
const exported = new Map();
|
| 29 |
+
const requeueInParent = path => {
|
| 30 |
+
programPath.requeue(path);
|
| 31 |
+
};
|
| 32 |
+
for (const [source, data] of metadata.source) {
|
| 33 |
+
for (const [localName, importName] of data.imports) {
|
| 34 |
+
imported.set(localName, [source, importName, null]);
|
| 35 |
+
}
|
| 36 |
+
for (const localName of data.importsNamespace) {
|
| 37 |
+
imported.set(localName, [source, null, localName]);
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
for (const [local, data] of metadata.local) {
|
| 41 |
+
let exportMeta = exported.get(local);
|
| 42 |
+
if (!exportMeta) {
|
| 43 |
+
exportMeta = [];
|
| 44 |
+
exported.set(local, exportMeta);
|
| 45 |
+
}
|
| 46 |
+
exportMeta.push(...data.names);
|
| 47 |
+
}
|
| 48 |
+
const rewriteBindingInitVisitorState = {
|
| 49 |
+
metadata,
|
| 50 |
+
requeueInParent,
|
| 51 |
+
scope: programPath.scope,
|
| 52 |
+
exported
|
| 53 |
+
};
|
| 54 |
+
programPath.traverse(rewriteBindingInitVisitor, rewriteBindingInitVisitorState);
|
| 55 |
+
const rewriteReferencesVisitorState = {
|
| 56 |
+
seen: new WeakSet(),
|
| 57 |
+
metadata,
|
| 58 |
+
requeueInParent,
|
| 59 |
+
scope: programPath.scope,
|
| 60 |
+
imported,
|
| 61 |
+
exported,
|
| 62 |
+
buildImportReference([source, importName, localName], identNode) {
|
| 63 |
+
const meta = metadata.source.get(source);
|
| 64 |
+
meta.referenced = true;
|
| 65 |
+
if (localName) {
|
| 66 |
+
if (meta.wrap) {
|
| 67 |
+
var _wrapReference;
|
| 68 |
+
identNode = (_wrapReference = wrapReference(identNode, meta.wrap)) != null ? _wrapReference : identNode;
|
| 69 |
+
}
|
| 70 |
+
return identNode;
|
| 71 |
+
}
|
| 72 |
+
let namespace = _core.types.identifier(meta.name);
|
| 73 |
+
if (meta.wrap) {
|
| 74 |
+
var _wrapReference2;
|
| 75 |
+
namespace = (_wrapReference2 = wrapReference(namespace, meta.wrap)) != null ? _wrapReference2 : namespace;
|
| 76 |
+
}
|
| 77 |
+
if (importName === "default" && meta.interop === "node-default") {
|
| 78 |
+
return namespace;
|
| 79 |
+
}
|
| 80 |
+
const computed = metadata.stringSpecifiers.has(importName);
|
| 81 |
+
return _core.types.memberExpression(namespace, computed ? _core.types.stringLiteral(importName) : _core.types.identifier(importName), computed);
|
| 82 |
+
}
|
| 83 |
+
};
|
| 84 |
+
programPath.traverse(rewriteReferencesVisitor, rewriteReferencesVisitorState);
|
| 85 |
+
}
|
| 86 |
+
const rewriteBindingInitVisitor = {
|
| 87 |
+
Scope(path) {
|
| 88 |
+
path.skip();
|
| 89 |
+
},
|
| 90 |
+
ClassDeclaration(path) {
|
| 91 |
+
const {
|
| 92 |
+
requeueInParent,
|
| 93 |
+
exported,
|
| 94 |
+
metadata
|
| 95 |
+
} = this;
|
| 96 |
+
const {
|
| 97 |
+
id
|
| 98 |
+
} = path.node;
|
| 99 |
+
if (!id) throw new Error("Expected class to have a name");
|
| 100 |
+
const localName = id.name;
|
| 101 |
+
const exportNames = exported.get(localName) || [];
|
| 102 |
+
if (exportNames.length > 0) {
|
| 103 |
+
const statement = _core.types.expressionStatement(buildBindingExportAssignmentExpression(metadata, exportNames, _core.types.identifier(localName), path.scope));
|
| 104 |
+
statement._blockHoist = path.node._blockHoist;
|
| 105 |
+
requeueInParent(path.insertAfter(statement)[0]);
|
| 106 |
+
}
|
| 107 |
+
},
|
| 108 |
+
VariableDeclaration(path) {
|
| 109 |
+
const {
|
| 110 |
+
requeueInParent,
|
| 111 |
+
exported,
|
| 112 |
+
metadata
|
| 113 |
+
} = this;
|
| 114 |
+
const isVar = path.node.kind === "var";
|
| 115 |
+
for (const decl of path.get("declarations")) {
|
| 116 |
+
const {
|
| 117 |
+
id
|
| 118 |
+
} = decl.node;
|
| 119 |
+
let {
|
| 120 |
+
init
|
| 121 |
+
} = decl.node;
|
| 122 |
+
if (_core.types.isIdentifier(id) && exported.has(id.name) && !_core.types.isArrowFunctionExpression(init) && (!_core.types.isFunctionExpression(init) || init.id) && (!_core.types.isClassExpression(init) || init.id)) {
|
| 123 |
+
if (!init) {
|
| 124 |
+
if (isVar) {
|
| 125 |
+
continue;
|
| 126 |
+
} else {
|
| 127 |
+
init = path.scope.buildUndefinedNode();
|
| 128 |
+
}
|
| 129 |
+
}
|
| 130 |
+
decl.node.init = buildBindingExportAssignmentExpression(metadata, exported.get(id.name), init, path.scope);
|
| 131 |
+
requeueInParent(decl.get("init"));
|
| 132 |
+
} else {
|
| 133 |
+
for (const localName of Object.keys(decl.getOuterBindingIdentifiers())) {
|
| 134 |
+
if (exported.has(localName)) {
|
| 135 |
+
const statement = _core.types.expressionStatement(buildBindingExportAssignmentExpression(metadata, exported.get(localName), _core.types.identifier(localName), path.scope));
|
| 136 |
+
statement._blockHoist = path.node._blockHoist;
|
| 137 |
+
requeueInParent(path.insertAfter(statement)[0]);
|
| 138 |
+
}
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
};
|
| 144 |
+
const buildBindingExportAssignmentExpression = (metadata, exportNames, localExpr, scope) => {
|
| 145 |
+
const exportsObjectName = metadata.exportName;
|
| 146 |
+
for (let currentScope = scope; currentScope != null; currentScope = currentScope.parent) {
|
| 147 |
+
if (currentScope.hasOwnBinding(exportsObjectName)) {
|
| 148 |
+
currentScope.rename(exportsObjectName);
|
| 149 |
+
}
|
| 150 |
+
}
|
| 151 |
+
return (exportNames || []).reduce((expr, exportName) => {
|
| 152 |
+
const {
|
| 153 |
+
stringSpecifiers
|
| 154 |
+
} = metadata;
|
| 155 |
+
const computed = stringSpecifiers.has(exportName);
|
| 156 |
+
return _core.types.assignmentExpression("=", _core.types.memberExpression(_core.types.identifier(exportsObjectName), computed ? _core.types.stringLiteral(exportName) : _core.types.identifier(exportName), computed), expr);
|
| 157 |
+
}, localExpr);
|
| 158 |
+
};
|
| 159 |
+
const buildImportThrow = localName => {
|
| 160 |
+
return _core.template.expression.ast`
|
| 161 |
+
(function() {
|
| 162 |
+
throw new Error('"' + '${localName}' + '" is read-only.');
|
| 163 |
+
})()
|
| 164 |
+
`;
|
| 165 |
+
};
|
| 166 |
+
const rewriteReferencesVisitor = {
|
| 167 |
+
ReferencedIdentifier(path) {
|
| 168 |
+
const {
|
| 169 |
+
seen,
|
| 170 |
+
buildImportReference,
|
| 171 |
+
scope,
|
| 172 |
+
imported,
|
| 173 |
+
requeueInParent
|
| 174 |
+
} = this;
|
| 175 |
+
if (seen.has(path.node)) return;
|
| 176 |
+
seen.add(path.node);
|
| 177 |
+
const localName = path.node.name;
|
| 178 |
+
const importData = imported.get(localName);
|
| 179 |
+
if (importData) {
|
| 180 |
+
if (isInType(path)) {
|
| 181 |
+
throw path.buildCodeFrameError(`Cannot transform the imported binding "${localName}" since it's also used in a type annotation. ` + `Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);
|
| 182 |
+
}
|
| 183 |
+
const localBinding = path.scope.getBinding(localName);
|
| 184 |
+
const rootBinding = scope.getBinding(localName);
|
| 185 |
+
if (rootBinding !== localBinding) return;
|
| 186 |
+
const ref = buildImportReference(importData, path.node);
|
| 187 |
+
ref.loc = path.node.loc;
|
| 188 |
+
if ((path.parentPath.isCallExpression({
|
| 189 |
+
callee: path.node
|
| 190 |
+
}) || path.parentPath.isOptionalCallExpression({
|
| 191 |
+
callee: path.node
|
| 192 |
+
}) || path.parentPath.isTaggedTemplateExpression({
|
| 193 |
+
tag: path.node
|
| 194 |
+
})) && _core.types.isMemberExpression(ref)) {
|
| 195 |
+
path.replaceWith(_core.types.sequenceExpression([_core.types.numericLiteral(0), ref]));
|
| 196 |
+
} else if (path.isJSXIdentifier() && _core.types.isMemberExpression(ref)) {
|
| 197 |
+
const {
|
| 198 |
+
object,
|
| 199 |
+
property
|
| 200 |
+
} = ref;
|
| 201 |
+
path.replaceWith(_core.types.jsxMemberExpression(_core.types.jsxIdentifier(object.name), _core.types.jsxIdentifier(property.name)));
|
| 202 |
+
} else {
|
| 203 |
+
path.replaceWith(ref);
|
| 204 |
+
}
|
| 205 |
+
requeueInParent(path);
|
| 206 |
+
path.skip();
|
| 207 |
+
}
|
| 208 |
+
},
|
| 209 |
+
UpdateExpression(path) {
|
| 210 |
+
const {
|
| 211 |
+
scope,
|
| 212 |
+
seen,
|
| 213 |
+
imported,
|
| 214 |
+
exported,
|
| 215 |
+
requeueInParent,
|
| 216 |
+
buildImportReference
|
| 217 |
+
} = this;
|
| 218 |
+
if (seen.has(path.node)) return;
|
| 219 |
+
seen.add(path.node);
|
| 220 |
+
const arg = path.get("argument");
|
| 221 |
+
if (arg.isMemberExpression()) return;
|
| 222 |
+
const update = path.node;
|
| 223 |
+
if (arg.isIdentifier()) {
|
| 224 |
+
const localName = arg.node.name;
|
| 225 |
+
if (scope.getBinding(localName) !== path.scope.getBinding(localName)) {
|
| 226 |
+
return;
|
| 227 |
+
}
|
| 228 |
+
const exportedNames = exported.get(localName);
|
| 229 |
+
const importData = imported.get(localName);
|
| 230 |
+
if ((exportedNames == null ? void 0 : exportedNames.length) > 0 || importData) {
|
| 231 |
+
if (importData) {
|
| 232 |
+
path.replaceWith(_core.types.assignmentExpression(update.operator[0] + "=", buildImportReference(importData, arg.node), buildImportThrow(localName)));
|
| 233 |
+
} else if (update.prefix) {
|
| 234 |
+
path.replaceWith(buildBindingExportAssignmentExpression(this.metadata, exportedNames, _core.types.cloneNode(update), path.scope));
|
| 235 |
+
} else {
|
| 236 |
+
const ref = scope.generateDeclaredUidIdentifier(localName);
|
| 237 |
+
path.replaceWith(_core.types.sequenceExpression([_core.types.assignmentExpression("=", _core.types.cloneNode(ref), _core.types.cloneNode(update)), buildBindingExportAssignmentExpression(this.metadata, exportedNames, _core.types.identifier(localName), path.scope), _core.types.cloneNode(ref)]));
|
| 238 |
+
}
|
| 239 |
+
}
|
| 240 |
+
}
|
| 241 |
+
requeueInParent(path);
|
| 242 |
+
path.skip();
|
| 243 |
+
},
|
| 244 |
+
AssignmentExpression: {
|
| 245 |
+
exit(path) {
|
| 246 |
+
const {
|
| 247 |
+
scope,
|
| 248 |
+
seen,
|
| 249 |
+
imported,
|
| 250 |
+
exported,
|
| 251 |
+
requeueInParent,
|
| 252 |
+
buildImportReference
|
| 253 |
+
} = this;
|
| 254 |
+
if (seen.has(path.node)) return;
|
| 255 |
+
seen.add(path.node);
|
| 256 |
+
const left = path.get("left");
|
| 257 |
+
if (left.isMemberExpression()) return;
|
| 258 |
+
if (left.isIdentifier()) {
|
| 259 |
+
const localName = left.node.name;
|
| 260 |
+
if (scope.getBinding(localName) !== path.scope.getBinding(localName)) {
|
| 261 |
+
return;
|
| 262 |
+
}
|
| 263 |
+
const exportedNames = exported.get(localName);
|
| 264 |
+
const importData = imported.get(localName);
|
| 265 |
+
if ((exportedNames == null ? void 0 : exportedNames.length) > 0 || importData) {
|
| 266 |
+
const assignment = path.node;
|
| 267 |
+
if (importData) {
|
| 268 |
+
assignment.left = buildImportReference(importData, left.node);
|
| 269 |
+
assignment.right = _core.types.sequenceExpression([assignment.right, buildImportThrow(localName)]);
|
| 270 |
+
}
|
| 271 |
+
const {
|
| 272 |
+
operator
|
| 273 |
+
} = assignment;
|
| 274 |
+
let newExpr;
|
| 275 |
+
if (operator === "=") {
|
| 276 |
+
newExpr = assignment;
|
| 277 |
+
} else if (operator === "&&=" || operator === "||=" || operator === "??=") {
|
| 278 |
+
newExpr = _core.types.assignmentExpression("=", assignment.left, _core.types.logicalExpression(operator.slice(0, -1), _core.types.cloneNode(assignment.left), assignment.right));
|
| 279 |
+
} else {
|
| 280 |
+
newExpr = _core.types.assignmentExpression("=", assignment.left, _core.types.binaryExpression(operator.slice(0, -1), _core.types.cloneNode(assignment.left), assignment.right));
|
| 281 |
+
}
|
| 282 |
+
path.replaceWith(buildBindingExportAssignmentExpression(this.metadata, exportedNames, newExpr, path.scope));
|
| 283 |
+
requeueInParent(path);
|
| 284 |
+
path.skip();
|
| 285 |
+
}
|
| 286 |
+
} else {
|
| 287 |
+
const ids = left.getOuterBindingIdentifiers();
|
| 288 |
+
const programScopeIds = Object.keys(ids).filter(localName => scope.getBinding(localName) === path.scope.getBinding(localName));
|
| 289 |
+
const id = programScopeIds.find(localName => imported.has(localName));
|
| 290 |
+
if (id) {
|
| 291 |
+
path.node.right = _core.types.sequenceExpression([path.node.right, buildImportThrow(id)]);
|
| 292 |
+
}
|
| 293 |
+
const items = [];
|
| 294 |
+
programScopeIds.forEach(localName => {
|
| 295 |
+
const exportedNames = exported.get(localName) || [];
|
| 296 |
+
if (exportedNames.length > 0) {
|
| 297 |
+
items.push(buildBindingExportAssignmentExpression(this.metadata, exportedNames, _core.types.identifier(localName), path.scope));
|
| 298 |
+
}
|
| 299 |
+
});
|
| 300 |
+
if (items.length > 0) {
|
| 301 |
+
let node = _core.types.sequenceExpression(items);
|
| 302 |
+
if (path.parentPath.isExpressionStatement()) {
|
| 303 |
+
node = _core.types.expressionStatement(node);
|
| 304 |
+
node._blockHoist = path.parentPath.node._blockHoist;
|
| 305 |
+
}
|
| 306 |
+
const statement = path.insertAfter(node)[0];
|
| 307 |
+
requeueInParent(statement);
|
| 308 |
+
}
|
| 309 |
+
}
|
| 310 |
+
}
|
| 311 |
+
},
|
| 312 |
+
ForXStatement(path) {
|
| 313 |
+
const {
|
| 314 |
+
scope,
|
| 315 |
+
node
|
| 316 |
+
} = path;
|
| 317 |
+
const {
|
| 318 |
+
left
|
| 319 |
+
} = node;
|
| 320 |
+
const {
|
| 321 |
+
exported,
|
| 322 |
+
imported,
|
| 323 |
+
scope: programScope
|
| 324 |
+
} = this;
|
| 325 |
+
if (!_core.types.isVariableDeclaration(left)) {
|
| 326 |
+
let didTransformExport = false,
|
| 327 |
+
importConstViolationName;
|
| 328 |
+
const loopBodyScope = path.get("body").scope;
|
| 329 |
+
for (const name of Object.keys(_core.types.getOuterBindingIdentifiers(left))) {
|
| 330 |
+
if (programScope.getBinding(name) === scope.getBinding(name)) {
|
| 331 |
+
if (exported.has(name)) {
|
| 332 |
+
didTransformExport = true;
|
| 333 |
+
if (loopBodyScope.hasOwnBinding(name)) {
|
| 334 |
+
loopBodyScope.rename(name);
|
| 335 |
+
}
|
| 336 |
+
}
|
| 337 |
+
if (imported.has(name) && !importConstViolationName) {
|
| 338 |
+
importConstViolationName = name;
|
| 339 |
+
}
|
| 340 |
+
}
|
| 341 |
+
}
|
| 342 |
+
if (!didTransformExport && !importConstViolationName) {
|
| 343 |
+
return;
|
| 344 |
+
}
|
| 345 |
+
path.ensureBlock();
|
| 346 |
+
const bodyPath = path.get("body");
|
| 347 |
+
const newLoopId = scope.generateUidIdentifierBasedOnNode(left);
|
| 348 |
+
path.get("left").replaceWith(_core.types.variableDeclaration("let", [_core.types.variableDeclarator(_core.types.cloneNode(newLoopId))]));
|
| 349 |
+
scope.registerDeclaration(path.get("left"));
|
| 350 |
+
if (didTransformExport) {
|
| 351 |
+
bodyPath.unshiftContainer("body", _core.types.expressionStatement(_core.types.assignmentExpression("=", left, newLoopId)));
|
| 352 |
+
}
|
| 353 |
+
if (importConstViolationName) {
|
| 354 |
+
bodyPath.unshiftContainer("body", _core.types.expressionStatement(buildImportThrow(importConstViolationName)));
|
| 355 |
+
}
|
| 356 |
+
}
|
| 357 |
+
}
|
| 358 |
+
};
|
| 359 |
+
|
| 360 |
+
//# sourceMappingURL=rewrite-live-references.js.map
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_core","require","isInType","path","parent","type","parentPath","exportKind","isStatement","isExpression","rewriteLiveReferences","programPath","metadata","wrapReference","imported","Map","exported","requeueInParent","requeue","source","data","localName","importName","imports","set","importsNamespace","local","exportMeta","get","push","names","rewriteBindingInitVisitorState","scope","traverse","rewriteBindingInitVisitor","rewriteReferencesVisitorState","seen","WeakSet","buildImportReference","identNode","meta","referenced","wrap","_wrapReference","namespace","t","identifier","name","_wrapReference2","interop","computed","stringSpecifiers","has","memberExpression","stringLiteral","rewriteReferencesVisitor","Scope","skip","ClassDeclaration","id","node","Error","exportNames","length","statement","expressionStatement","buildBindingExportAssignmentExpression","_blockHoist","insertAfter","VariableDeclaration","isVar","kind","decl","init","isIdentifier","isArrowFunctionExpression","isFunctionExpression","isClassExpression","buildUndefinedNode","Object","keys","getOuterBindingIdentifiers","localExpr","exportsObjectName","exportName","currentScope","hasOwnBinding","rename","reduce","expr","assignmentExpression","buildImportThrow","template","expression","ast","ReferencedIdentifier","add","importData","buildCodeFrameError","localBinding","getBinding","rootBinding","ref","loc","isCallExpression","callee","isOptionalCallExpression","isTaggedTemplateExpression","tag","isMemberExpression","replaceWith","sequenceExpression","numericLiteral","isJSXIdentifier","object","property","jsxMemberExpression","jsxIdentifier","UpdateExpression","arg","update","exportedNames","operator","prefix","cloneNode","generateDeclaredUidIdentifier","AssignmentExpression","exit","left","assignment","right","newExpr","logicalExpression","slice","binaryExpression","ids","programScopeIds","filter","find","items","forEach","isExpressionStatement","ForXStatement","programScope","isVariableDeclaration","didTransformExport","importConstViolationName","loopBodyScope","ensureBlock","bodyPath","newLoopId","generateUidIdentifierBasedOnNode","variableDeclaration","variableDeclarator","registerDeclaration","unshiftContainer"],"sources":["../src/rewrite-live-references.ts"],"sourcesContent":["import { template, types as t } from \"@babel/core\";\nimport type { NodePath, Visitor, Scope } from \"@babel/core\";\n\nimport type { ModuleMetadata } from \"./normalize-and-load-metadata.ts\";\n\ninterface RewriteReferencesVisitorState {\n exported: Map<any, any>;\n metadata: ModuleMetadata;\n requeueInParent: (path: NodePath) => void;\n scope: Scope;\n imported: Map<any, any>;\n buildImportReference: (\n [source, importName, localName]: readonly [string, string, string],\n identNode: t.Identifier | t.CallExpression | t.JSXIdentifier,\n ) => any;\n seen: WeakSet<object>;\n}\n\ninterface RewriteBindingInitVisitorState {\n exported: Map<any, any>;\n metadata: ModuleMetadata;\n requeueInParent: (path: NodePath) => void;\n scope: Scope;\n}\n\nfunction isInType(path: NodePath) {\n do {\n switch (path.parent.type) {\n case \"TSTypeAnnotation\":\n case \"TSTypeAliasDeclaration\":\n case \"TSTypeReference\":\n case \"TypeAnnotation\":\n case \"TypeAlias\":\n return true;\n case \"ExportSpecifier\":\n return (\n (\n path.parentPath.parent as\n | t.ExportDefaultDeclaration\n | t.ExportNamedDeclaration\n ).exportKind === \"type\"\n );\n default:\n if (path.parentPath.isStatement() || path.parentPath.isExpression()) {\n return false;\n }\n }\n } while ((path = path.parentPath));\n}\n\nexport default function rewriteLiveReferences(\n programPath: NodePath<t.Program>,\n metadata: ModuleMetadata,\n wrapReference: (ref: t.Expression, payload: unknown) => null | t.Expression,\n) {\n const imported = new Map();\n const exported = new Map();\n const requeueInParent = (path: NodePath) => {\n // Manually re-queue `exports.default =` expressions so that the ES3\n // transform has an opportunity to convert them. Ideally this would\n // happen automatically from the replaceWith above. See #4140 for\n // more info.\n programPath.requeue(path);\n };\n\n for (const [source, data] of metadata.source) {\n for (const [localName, importName] of data.imports) {\n imported.set(localName, [source, importName, null]);\n }\n for (const localName of data.importsNamespace) {\n imported.set(localName, [source, null, localName]);\n }\n }\n\n for (const [local, data] of metadata.local) {\n let exportMeta = exported.get(local);\n if (!exportMeta) {\n exportMeta = [];\n exported.set(local, exportMeta);\n }\n\n exportMeta.push(...data.names);\n }\n\n // Rewrite initialization of bindings to update exports.\n const rewriteBindingInitVisitorState: RewriteBindingInitVisitorState = {\n metadata,\n requeueInParent,\n scope: programPath.scope,\n exported, // local name => exported name list\n };\n programPath.traverse(\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n rewriteBindingInitVisitor,\n rewriteBindingInitVisitorState,\n );\n\n // Rewrite reads/writes from imports and exports to have the correct behavior.\n const rewriteReferencesVisitorState: RewriteReferencesVisitorState = {\n seen: new WeakSet(),\n metadata,\n requeueInParent,\n scope: programPath.scope,\n imported, // local / import\n exported, // local name => exported name list\n buildImportReference([source, importName, localName], identNode) {\n const meta = metadata.source.get(source);\n meta.referenced = true;\n\n if (localName) {\n if (meta.wrap) {\n // @ts-expect-error Fixme: we should handle the case when identNode is a JSXIdentifier\n identNode = wrapReference(identNode, meta.wrap) ?? identNode;\n }\n return identNode;\n }\n\n let namespace: t.Expression = t.identifier(meta.name);\n if (meta.wrap) {\n namespace = wrapReference(namespace, meta.wrap) ?? namespace;\n }\n\n if (importName === \"default\" && meta.interop === \"node-default\") {\n return namespace;\n }\n\n const computed = metadata.stringSpecifiers.has(importName);\n\n return t.memberExpression(\n namespace,\n computed ? t.stringLiteral(importName) : t.identifier(importName),\n computed,\n );\n },\n };\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n programPath.traverse(rewriteReferencesVisitor, rewriteReferencesVisitorState);\n}\n\n/**\n * A visitor to inject export update statements during binding initialization.\n */\nconst rewriteBindingInitVisitor: Visitor<RewriteBindingInitVisitorState> = {\n Scope(path) {\n path.skip();\n },\n ClassDeclaration(path) {\n const { requeueInParent, exported, metadata } = this;\n\n const { id } = path.node;\n if (!id) throw new Error(\"Expected class to have a name\");\n const localName = id.name;\n\n const exportNames = exported.get(localName) || [];\n if (exportNames.length > 0) {\n const statement = t.expressionStatement(\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n buildBindingExportAssignmentExpression(\n metadata,\n exportNames,\n t.identifier(localName),\n path.scope,\n ),\n );\n // @ts-expect-error todo(flow->ts): avoid mutations\n statement._blockHoist = path.node._blockHoist;\n\n requeueInParent(path.insertAfter(statement)[0]);\n }\n },\n VariableDeclaration(path) {\n const { requeueInParent, exported, metadata } = this;\n\n const isVar = path.node.kind === \"var\";\n\n for (const decl of path.get(\"declarations\")) {\n const { id } = decl.node;\n let { init } = decl.node;\n if (\n t.isIdentifier(id) &&\n exported.has(id.name) &&\n !t.isArrowFunctionExpression(init) &&\n (!t.isFunctionExpression(init) || init.id) &&\n (!t.isClassExpression(init) || init.id)\n ) {\n if (!init) {\n if (isVar) {\n // This variable might have already been assigned to, and the\n // uninitalized declaration doesn't set it to `undefined` and does\n // not updated the exported value.\n continue;\n } else {\n init = path.scope.buildUndefinedNode();\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n decl.node.init = buildBindingExportAssignmentExpression(\n metadata,\n exported.get(id.name),\n init,\n path.scope,\n );\n requeueInParent(decl.get(\"init\"));\n } else {\n for (const localName of Object.keys(\n decl.getOuterBindingIdentifiers(),\n )) {\n if (exported.has(localName)) {\n const statement = t.expressionStatement(\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n buildBindingExportAssignmentExpression(\n metadata,\n exported.get(localName),\n t.identifier(localName),\n path.scope,\n ),\n );\n // @ts-expect-error todo(flow->ts): avoid mutations\n statement._blockHoist = path.node._blockHoist;\n\n requeueInParent(path.insertAfter(statement)[0]);\n }\n }\n }\n }\n },\n};\n\nconst buildBindingExportAssignmentExpression = (\n metadata: ModuleMetadata,\n exportNames: string[],\n localExpr: t.Expression,\n scope: Scope,\n) => {\n const exportsObjectName = metadata.exportName;\n for (\n let currentScope = scope;\n currentScope != null;\n currentScope = currentScope.parent\n ) {\n if (currentScope.hasOwnBinding(exportsObjectName)) {\n currentScope.rename(exportsObjectName);\n }\n }\n return (exportNames || []).reduce((expr, exportName) => {\n // class Foo {} export { Foo, Foo as Bar };\n // as\n // class Foo {} exports.Foo = exports.Bar = Foo;\n const { stringSpecifiers } = metadata;\n const computed = stringSpecifiers.has(exportName);\n return t.assignmentExpression(\n \"=\",\n t.memberExpression(\n t.identifier(exportsObjectName),\n computed ? t.stringLiteral(exportName) : t.identifier(exportName),\n /* computed */ computed,\n ),\n expr,\n );\n }, localExpr);\n};\n\nconst buildImportThrow = (localName: string) => {\n return template.expression.ast`\n (function() {\n throw new Error('\"' + '${localName}' + '\" is read-only.');\n })()\n `;\n};\n\nconst rewriteReferencesVisitor: Visitor<RewriteReferencesVisitorState> = {\n ReferencedIdentifier(path) {\n const { seen, buildImportReference, scope, imported, requeueInParent } =\n this;\n if (seen.has(path.node)) return;\n seen.add(path.node);\n\n const localName = path.node.name;\n\n const importData = imported.get(localName);\n if (importData) {\n if (isInType(path)) {\n throw path.buildCodeFrameError(\n `Cannot transform the imported binding \"${localName}\" since it's also used in a type annotation. ` +\n `Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`,\n );\n }\n\n const localBinding = path.scope.getBinding(localName);\n const rootBinding = scope.getBinding(localName);\n\n // redeclared in this scope\n if (rootBinding !== localBinding) return;\n\n const ref = buildImportReference(importData, path.node);\n\n // Preserve the binding location so that sourcemaps are nicer.\n ref.loc = path.node.loc;\n\n if (\n (path.parentPath.isCallExpression({ callee: path.node }) ||\n path.parentPath.isOptionalCallExpression({ callee: path.node }) ||\n path.parentPath.isTaggedTemplateExpression({ tag: path.node })) &&\n t.isMemberExpression(ref)\n ) {\n path.replaceWith(t.sequenceExpression([t.numericLiteral(0), ref]));\n } else if (path.isJSXIdentifier() && t.isMemberExpression(ref)) {\n const { object, property } = ref;\n path.replaceWith(\n t.jsxMemberExpression(\n // @ts-expect-error todo(flow->ts): possible bug `object` might not have a name\n t.jsxIdentifier(object.name),\n // @ts-expect-error todo(flow->ts): possible bug `property` might not have a name\n t.jsxIdentifier(property.name),\n ),\n );\n } else {\n path.replaceWith(ref);\n }\n\n requeueInParent(path);\n\n // The path could have been replaced with an identifier that would\n // otherwise be re-visited, so we skip processing its children.\n path.skip();\n }\n },\n\n UpdateExpression(path) {\n const {\n scope,\n seen,\n imported,\n exported,\n requeueInParent,\n buildImportReference,\n } = this;\n\n if (seen.has(path.node)) return;\n\n seen.add(path.node);\n\n const arg = path.get(\"argument\");\n\n // No change needed\n if (arg.isMemberExpression()) return;\n\n const update = path.node;\n\n if (arg.isIdentifier()) {\n const localName = arg.node.name;\n\n // redeclared in this scope\n if (scope.getBinding(localName) !== path.scope.getBinding(localName)) {\n return;\n }\n\n const exportedNames = exported.get(localName);\n const importData = imported.get(localName);\n\n if (exportedNames?.length > 0 || importData) {\n if (importData) {\n path.replaceWith(\n t.assignmentExpression(\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n (update.operator[0] + \"=\") as t.AssignmentExpression[\"operator\"],\n buildImportReference(importData, arg.node),\n buildImportThrow(localName),\n ),\n );\n } else if (update.prefix) {\n // ++foo\n // => exports.foo = ++foo\n path.replaceWith(\n buildBindingExportAssignmentExpression(\n this.metadata,\n exportedNames,\n t.cloneNode(update),\n path.scope,\n ),\n );\n } else {\n // foo++\n // => (ref = i++, exports.i = i, ref)\n const ref = scope.generateDeclaredUidIdentifier(localName);\n\n path.replaceWith(\n t.sequenceExpression([\n t.assignmentExpression(\n \"=\",\n t.cloneNode(ref),\n t.cloneNode(update),\n ),\n buildBindingExportAssignmentExpression(\n this.metadata,\n exportedNames,\n t.identifier(localName),\n path.scope,\n ),\n t.cloneNode(ref),\n ]),\n );\n }\n }\n }\n\n requeueInParent(path);\n path.skip();\n },\n\n AssignmentExpression: {\n exit(path) {\n const {\n scope,\n seen,\n imported,\n exported,\n requeueInParent,\n buildImportReference,\n } = this;\n\n if (seen.has(path.node)) return;\n seen.add(path.node);\n\n const left = path.get(\"left\");\n\n // No change needed\n if (left.isMemberExpression()) return;\n\n if (left.isIdentifier()) {\n // Simple update-assign foo += 1; export { foo };\n // => exports.foo = (foo += 1);\n const localName = left.node.name;\n\n // redeclared in this scope\n if (scope.getBinding(localName) !== path.scope.getBinding(localName)) {\n return;\n }\n\n const exportedNames = exported.get(localName);\n const importData = imported.get(localName);\n if (exportedNames?.length > 0 || importData) {\n const assignment = path.node;\n\n if (importData) {\n assignment.left = buildImportReference(importData, left.node);\n\n assignment.right = t.sequenceExpression([\n assignment.right,\n buildImportThrow(localName),\n ]);\n }\n\n const { operator } = assignment;\n let newExpr;\n if (operator === \"=\") {\n newExpr = assignment;\n } else if (\n operator === \"&&=\" ||\n operator === \"||=\" ||\n operator === \"??=\"\n ) {\n newExpr = t.assignmentExpression(\n \"=\",\n assignment.left,\n t.logicalExpression(\n operator.slice(0, -1) as t.LogicalExpression[\"operator\"],\n t.cloneNode(assignment.left) as t.Expression,\n assignment.right,\n ),\n );\n } else {\n newExpr = t.assignmentExpression(\n \"=\",\n assignment.left,\n t.binaryExpression(\n operator.slice(0, -1) as t.BinaryExpression[\"operator\"],\n t.cloneNode(assignment.left) as t.Expression,\n assignment.right,\n ),\n );\n }\n\n path.replaceWith(\n buildBindingExportAssignmentExpression(\n this.metadata,\n exportedNames,\n newExpr,\n path.scope,\n ),\n );\n\n requeueInParent(path);\n\n path.skip();\n }\n } else {\n const ids = left.getOuterBindingIdentifiers();\n const programScopeIds = Object.keys(ids).filter(\n localName =>\n scope.getBinding(localName) === path.scope.getBinding(localName),\n );\n const id = programScopeIds.find(localName => imported.has(localName));\n\n if (id) {\n path.node.right = t.sequenceExpression([\n path.node.right,\n buildImportThrow(id),\n ]);\n }\n\n // Complex ({a, b, c} = {}); export { a, c };\n // => ({a, b, c} = {}), (exports.a = a, exports.c = c);\n const items: t.Expression[] = [];\n programScopeIds.forEach(localName => {\n const exportedNames = exported.get(localName) || [];\n if (exportedNames.length > 0) {\n items.push(\n buildBindingExportAssignmentExpression(\n this.metadata,\n exportedNames,\n t.identifier(localName),\n path.scope,\n ),\n );\n }\n });\n\n if (items.length > 0) {\n let node: t.Node = t.sequenceExpression(items);\n if (path.parentPath.isExpressionStatement()) {\n node = t.expressionStatement(node);\n // @ts-expect-error todo(flow->ts): avoid mutations\n node._blockHoist = path.parentPath.node._blockHoist;\n }\n\n const statement = path.insertAfter(node)[0];\n requeueInParent(statement);\n }\n }\n },\n },\n ForXStatement(path) {\n const { scope, node } = path;\n const { left } = node;\n const { exported, imported, scope: programScope } = this;\n\n if (!t.isVariableDeclaration(left)) {\n let didTransformExport = false,\n importConstViolationName;\n const loopBodyScope = path.get(\"body\").scope;\n for (const name of Object.keys(t.getOuterBindingIdentifiers(left))) {\n if (programScope.getBinding(name) === scope.getBinding(name)) {\n if (exported.has(name)) {\n didTransformExport = true;\n if (loopBodyScope.hasOwnBinding(name)) {\n loopBodyScope.rename(name);\n }\n }\n if (imported.has(name) && !importConstViolationName) {\n importConstViolationName = name;\n }\n }\n }\n if (!didTransformExport && !importConstViolationName) {\n return;\n }\n\n path.ensureBlock();\n const bodyPath = path.get(\"body\") as NodePath<t.BlockStatement>;\n\n const newLoopId = scope.generateUidIdentifierBasedOnNode(left);\n path\n .get(\"left\")\n .replaceWith(\n t.variableDeclaration(\"let\", [\n t.variableDeclarator(t.cloneNode(newLoopId)),\n ]),\n );\n scope.registerDeclaration(path.get(\"left\"));\n\n if (didTransformExport) {\n bodyPath.unshiftContainer(\n \"body\",\n t.expressionStatement(t.assignmentExpression(\"=\", left, newLoopId)),\n );\n }\n if (importConstViolationName) {\n bodyPath.unshiftContainer(\n \"body\",\n t.expressionStatement(buildImportThrow(importConstViolationName)),\n );\n }\n }\n },\n};\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAyBA,SAASC,QAAQA,CAACC,IAAc,EAAE;EAChC,GAAG;IACD,QAAQA,IAAI,CAACC,MAAM,CAACC,IAAI;MACtB,KAAK,kBAAkB;MACvB,KAAK,wBAAwB;MAC7B,KAAK,iBAAiB;MACtB,KAAK,gBAAgB;MACrB,KAAK,WAAW;QACd,OAAO,IAAI;MACb,KAAK,iBAAiB;QACpB,OAEIF,IAAI,CAACG,UAAU,CAACF,MAAM,CAGtBG,UAAU,KAAK,MAAM;MAE3B;QACE,IAAIJ,IAAI,CAACG,UAAU,CAACE,WAAW,CAAC,CAAC,IAAIL,IAAI,CAACG,UAAU,CAACG,YAAY,CAAC,CAAC,EAAE;UACnE,OAAO,KAAK;QACd;IACJ;EACF,CAAC,QAASN,IAAI,GAAGA,IAAI,CAACG,UAAU;AAClC;AAEe,SAASI,qBAAqBA,CAC3CC,WAAgC,EAChCC,QAAwB,EACxBC,aAA2E,EAC3E;EACA,MAAMC,QAAQ,GAAG,IAAIC,GAAG,CAAC,CAAC;EAC1B,MAAMC,QAAQ,GAAG,IAAID,GAAG,CAAC,CAAC;EAC1B,MAAME,eAAe,GAAId,IAAc,IAAK;IAK1CQ,WAAW,CAACO,OAAO,CAACf,IAAI,CAAC;EAC3B,CAAC;EAED,KAAK,MAAM,CAACgB,MAAM,EAAEC,IAAI,CAAC,IAAIR,QAAQ,CAACO,MAAM,EAAE;IAC5C,KAAK,MAAM,CAACE,SAAS,EAAEC,UAAU,CAAC,IAAIF,IA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AmB,CAACvJ,IAAI,CAACyB,GAAG,CAAC,MAAM,CAAC,CAAC;MAE3C,IAAIqH,kBAAkB,EAAE;QACtBI,QAAQ,CAACM,gBAAgB,CACvB,MAAM,EACN9G,WAAC,CAACoB,mBAAmB,CAACpB,WAAC,CAAC6C,oBAAoB,CAAC,GAAG,EAAEsC,IAAI,EAAEsB,SAAS,CAAC,CACpE,CAAC;MACH;MACA,IAAIJ,wBAAwB,EAAE;QAC5BG,QAAQ,CAACM,gBAAgB,CACvB,MAAM,EACN9G,WAAC,CAACoB,mBAAmB,CAAC0B,gBAAgB,CAACuD,wBAAwB,CAAC,CAClE,CAAC;MACH;IACF;EACF;AACF,CAAC","ignoreList":[]}
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = rewriteThis;
|
| 7 |
+
var _core = require("@babel/core");
|
| 8 |
+
var _traverse = require("@babel/traverse");
|
| 9 |
+
let rewriteThisVisitor;
|
| 10 |
+
function rewriteThis(programPath) {
|
| 11 |
+
if (!rewriteThisVisitor) {
|
| 12 |
+
rewriteThisVisitor = _traverse.visitors.environmentVisitor({
|
| 13 |
+
ThisExpression(path) {
|
| 14 |
+
path.replaceWith(_core.types.unaryExpression("void", _core.types.numericLiteral(0), true));
|
| 15 |
+
}
|
| 16 |
+
});
|
| 17 |
+
rewriteThisVisitor.noScope = true;
|
| 18 |
+
}
|
| 19 |
+
(0, _traverse.default)(programPath.node, rewriteThisVisitor);
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
//# sourceMappingURL=rewrite-this.js.map
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_core","require","_traverse","rewriteThisVisitor","rewriteThis","programPath","visitors","environmentVisitor","ThisExpression","path","replaceWith","t","unaryExpression","numericLiteral","noScope","traverse","node"],"sources":["../src/rewrite-this.ts"],"sourcesContent":["import { types as t } from \"@babel/core\";\nimport traverse, { visitors, type NodePath } from \"@babel/traverse\";\n\n/**\n * A lazily constructed visitor to walk the tree, rewriting all `this` references in the\n * top-level scope to be `void 0` (undefined).\n *\n */\nlet rewriteThisVisitor: Parameters<typeof traverse>[1];\n\nexport default function rewriteThis(programPath: NodePath) {\n if (!rewriteThisVisitor) {\n rewriteThisVisitor = visitors.environmentVisitor({\n ThisExpression(path) {\n path.replaceWith(t.unaryExpression(\"void\", t.numericLiteral(0), true));\n },\n });\n rewriteThisVisitor.noScope = true;\n }\n // Rewrite \"this\" to be \"undefined\".\n traverse(programPath.node, rewriteThisVisitor);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAOA,IAAIE,kBAAkD;AAEvC,SAASC,WAAWA,CAACC,WAAqB,EAAE;EACzD,IAAI,CAACF,kBAAkB,EAAE;IACvBA,kBAAkB,GAAGG,kBAAQ,CAACC,kBAAkB,CAAC;MAC/CC,cAAcA,CAACC,IAAI,EAAE;QACnBA,IAAI,CAACC,WAAW,CAACC,WAAC,CAACC,eAAe,CAAC,MAAM,EAAED,WAAC,CAACE,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;MACxE;IACF,CAAC,CAAC;IACFV,kBAAkB,CAACW,OAAO,GAAG,IAAI;EACnC;EAEA,IAAAC,iBAAQ,EAACV,WAAW,CAACW,IAAI,EAAEb,kBAAkB,CAAC;AAChD","ignoreList":[]}
|
frontend/node_modules/.pnpm/@babel+helper-module-transforms@7.29.7_@babel+core@7.29.7/node_modules/@babel/helper-module-transforms/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@babel/helper-module-transforms",
|
| 3 |
+
"version": "7.29.7",
|
| 4 |
+
"description": "Babel helper functions for implementing ES6 module transformations",
|
| 5 |
+
"author": "The Babel Team (https://babel.dev/team)",
|
| 6 |
+
"homepage": "https://babel.dev/docs/en/next/babel-helper-module-transforms",
|
| 7 |
+
"license": "MIT",
|
| 8 |
+
"publishConfig": {
|
| 9 |
+
"access": "public"
|
| 10 |
+
},
|
| 11 |
+
"repository": {
|
| 12 |
+
"type": "git",
|
| 13 |
+
"url": "https://github.com/babel/babel.git",
|
| 14 |
+
"directory": "packages/babel-helper-module-transforms"
|
| 15 |
+
},
|
| 16 |
+
"main": "./lib/index.js",
|
| 17 |
+
"dependencies": {
|
| 18 |
+
"@babel/helper-module-imports": "^7.29.7",
|
| 19 |
+
"@babel/helper-validator-identifier": "^7.29.7",
|
| 20 |
+
"@babel/traverse": "^7.29.7"
|
| 21 |
+
},
|
| 22 |
+
"devDependencies": {
|
| 23 |
+
"@babel/core": "^7.29.7"
|
| 24 |
+
},
|
| 25 |
+
"peerDependencies": {
|
| 26 |
+
"@babel/core": "^7.0.0"
|
| 27 |
+
},
|
| 28 |
+
"engines": {
|
| 29 |
+
"node": ">=6.9.0"
|
| 30 |
+
},
|
| 31 |
+
"type": "commonjs"
|
| 32 |
+
}
|
frontend/node_modules/.pnpm/@babel+helper-plugin-utils@7.29.7/node_modules/@babel/helper-plugin-utils/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 6 |
+
a copy of this software and associated documentation files (the
|
| 7 |
+
"Software"), to deal in the Software without restriction, including
|
| 8 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 9 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 10 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 11 |
+
the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be
|
| 14 |
+
included in all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 17 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 18 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 19 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 20 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 21 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 22 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
frontend/node_modules/.pnpm/@babel+helper-plugin-utils@7.29.7/node_modules/@babel/helper-plugin-utils/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @babel/helper-plugin-utils
|
| 2 |
+
|
| 3 |
+
> General utilities for plugins to use
|
| 4 |
+
|
| 5 |
+
See our website [@babel/helper-plugin-utils](https://babeljs.io/docs/babel-helper-plugin-utils) for more information.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Using npm:
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
npm install --save @babel/helper-plugin-utils
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
or using yarn:
|
| 16 |
+
|
| 17 |
+
```sh
|
| 18 |
+
yarn add @babel/helper-plugin-utils
|
| 19 |
+
```
|
frontend/node_modules/.pnpm/@babel+helper-plugin-utils@7.29.7/node_modules/@babel/helper-plugin-utils/lib/index.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.declare = declare;
|
| 7 |
+
exports.declarePreset = void 0;
|
| 8 |
+
const apiPolyfills = {
|
| 9 |
+
assertVersion: api => range => {
|
| 10 |
+
throwVersionError(range, api.version);
|
| 11 |
+
}
|
| 12 |
+
};
|
| 13 |
+
Object.assign(apiPolyfills, {
|
| 14 |
+
targets: () => () => {
|
| 15 |
+
return {};
|
| 16 |
+
},
|
| 17 |
+
assumption: () => () => {
|
| 18 |
+
return undefined;
|
| 19 |
+
},
|
| 20 |
+
addExternalDependency: () => () => {}
|
| 21 |
+
});
|
| 22 |
+
function declare(builder) {
|
| 23 |
+
return (api, options, dirname) => {
|
| 24 |
+
let clonedApi;
|
| 25 |
+
for (const name of Object.keys(apiPolyfills)) {
|
| 26 |
+
if (api[name]) continue;
|
| 27 |
+
clonedApi != null ? clonedApi : clonedApi = copyApiObject(api);
|
| 28 |
+
clonedApi[name] = apiPolyfills[name](clonedApi);
|
| 29 |
+
}
|
| 30 |
+
return builder(clonedApi != null ? clonedApi : api, options || {}, dirname);
|
| 31 |
+
};
|
| 32 |
+
}
|
| 33 |
+
const declarePreset = exports.declarePreset = declare;
|
| 34 |
+
function copyApiObject(api) {
|
| 35 |
+
let proto = null;
|
| 36 |
+
if (typeof api.version === "string" && api.version.startsWith("7.")) {
|
| 37 |
+
proto = Object.getPrototypeOf(api);
|
| 38 |
+
if (proto && (!hasOwnProperty.call(proto, "version") || !hasOwnProperty.call(proto, "transform") || !hasOwnProperty.call(proto, "template") || !hasOwnProperty.call(proto, "types"))) {
|
| 39 |
+
proto = null;
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
return Object.assign({}, proto, api);
|
| 43 |
+
}
|
| 44 |
+
function throwVersionError(range, version) {
|
| 45 |
+
if (typeof range === "number") {
|
| 46 |
+
if (!Number.isInteger(range)) {
|
| 47 |
+
throw new Error("Expected string or integer value.");
|
| 48 |
+
}
|
| 49 |
+
range = `^${range}.0.0-0`;
|
| 50 |
+
}
|
| 51 |
+
if (typeof range !== "string") {
|
| 52 |
+
throw new Error("Expected string or integer value.");
|
| 53 |
+
}
|
| 54 |
+
const limit = Error.stackTraceLimit;
|
| 55 |
+
if (typeof limit === "number" && limit < 25) {
|
| 56 |
+
Error.stackTraceLimit = 25;
|
| 57 |
+
}
|
| 58 |
+
let err;
|
| 59 |
+
if (version.startsWith("7.")) {
|
| 60 |
+
err = new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` + `You'll need to update your @babel/core version.`);
|
| 61 |
+
} else {
|
| 62 |
+
err = new Error(`Requires Babel "${range}", but was loaded with "${version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`);
|
| 63 |
+
}
|
| 64 |
+
if (typeof limit === "number") {
|
| 65 |
+
Error.stackTraceLimit = limit;
|
| 66 |
+
}
|
| 67 |
+
throw Object.assign(err, {
|
| 68 |
+
code: "BABEL_VERSION_UNSUPPORTED",
|
| 69 |
+
version,
|
| 70 |
+
range
|
| 71 |
+
});
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
//# sourceMappingURL=index.js.map
|
frontend/node_modules/.pnpm/@babel+helper-plugin-utils@7.29.7/node_modules/@babel/helper-plugin-utils/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["apiPolyfills","assertVersion","api","range","throwVersionError","version","Object","assign","targets","assumption","undefined","addExternalDependency","declare","builder","options","dirname","clonedApi","name","keys","copyApiObject","declarePreset","exports","proto","startsWith","getPrototypeOf","hasOwnProperty","call","Number","isInteger","Error","limit","stackTraceLimit","err","code"],"sources":["../src/index.ts"],"sourcesContent":["import type {\n PluginAPI,\n PluginObject,\n PluginPass,\n PresetAPI,\n PresetObject,\n} from \"@babel/core\";\n\ntype APIPolyfillFactory<T extends keyof PluginAPI> = (\n api: PluginAPI,\n) => PluginAPI[T];\n\ntype APIPolyfills = {\n assertVersion: APIPolyfillFactory<\"assertVersion\">;\n};\n\nconst apiPolyfills: APIPolyfills = {\n // Not supported by Babel 7 and early versions of Babel 7 beta.\n // It's important that this is polyfilled for older Babel versions\n // since it's needed to report the version mismatch.\n assertVersion: (api: PluginAPI) => (range: number | string) => {\n throwVersionError(range, api.version);\n },\n};\nif (!process.env.BABEL_8_BREAKING) {\n Object.assign(apiPolyfills, {\n // This is supported starting from Babel 7.13\n targets: () => (): any => {\n return {};\n },\n // This is supported starting from Babel 7.13\n assumption: () => (): any => {\n return undefined;\n },\n // This is supported starting from Babel 7.17\n addExternalDependency: () => () => {},\n });\n}\n\nexport function declare<State = object, Option = object>(\n builder: (\n api: PluginAPI,\n options: Option,\n dirname: string,\n ) => PluginObject<State & PluginPass>,\n): (\n api: PluginAPI,\n options: Option,\n dirname: string,\n) => PluginObject<State & PluginPass> {\n return (api, options: Option, dirname: string) => {\n let clonedApi: PluginAPI;\n\n for (const name of Object.keys(\n apiPolyfills,\n ) as (keyof typeof apiPolyfills)[]) {\n if (api[name]) continue;\n\n clonedApi ??= copyApiObject(api);\n clonedApi[name] = apiPolyfills[name](clonedApi);\n }\n\n // @ts-expect-error options || {} may not be assigned to Options\n return builder(clonedApi ?? api, options || {}, dirname);\n };\n}\n\nexport const declarePreset = declare as <Option = object>(\n builder: (api: PresetAPI, options: Option, dirname: string) => PresetObject,\n) => (api: PresetAPI, options: Option, dirname: string) => PresetObject;\n\nfunction copyApiObject(api: PluginAPI): PluginAPI {\n // Babel >= 7 <= beta.41 passed the API as a new object that had\n // babel/core as the prototype. While slightly faster, it also\n // means that the Object.assign copy below fails. Rather than\n // keep complexity, the Babel 6 behavior has been reverted and this\n // normalizes all that for Babel 7.\n let proto = null;\n if (typeof api.version === \"string\" && api.version.startsWith(\"7.\")) {\n proto = Object.getPrototypeOf(api);\n if (\n proto &&\n (!Object.hasOwn(proto, \"version\") ||\n !Object.hasOwn(proto, \"transform\") ||\n !Object.hasOwn(proto, \"template\") ||\n !Object.hasOwn(proto, \"types\"))\n ) {\n proto = null;\n }\n }\n\n return {\n ...proto,\n ...api,\n };\n}\n\nfunction throwVersionError(range: string | number, version: string) {\n if (typeof range === \"number\") {\n if (!Number.isInteger(range)) {\n throw new Error(\"Expected string or integer value.\");\n }\n range = `^${range}.0.0-0`;\n }\n if (typeof range !== \"string\") {\n throw new Error(\"Expected string or integer value.\");\n }\n\n const limit = Error.stackTraceLimit;\n\n if (typeof limit === \"number\" && limit < 25) {\n // Bump up the limit if needed so that users are more likely\n // to be able to see what is calling Babel.\n Error.stackTraceLimit = 25;\n }\n\n let err;\n if (version.startsWith(\"7.\")) {\n err = new Error(\n `Requires Babel \"^7.0.0-beta.41\", but was loaded with \"${version}\". ` +\n `You'll need to update your @babel/core version.`,\n );\n } else {\n err = new Error(\n `Requires Babel \"${range}\", but was loaded with \"${version}\". ` +\n `If you are sure you have a compatible version of @babel/core, ` +\n `it is likely that something in your build process is loading the ` +\n `wrong version. Inspect the stack trace of this error to look for ` +\n `the first entry that doesn't mention \"@babel/core\" or \"babel-core\" ` +\n `to see what is calling Babel.`,\n );\n }\n\n if (typeof limit === \"number\") {\n Error.stackTraceLimit = limit;\n }\n\n throw Object.assign(err, {\n code: \"BABEL_VERSION_UNSUPPORTED\",\n version,\n range,\n } as any);\n}\n"],"mappings":";;;;;;;AAgBA,MAAMA,YAA0B,GAAG;EAIjCC,aAAa,EAAGC,GAAc,IAAMC,KAAsB,IAAK;IAC7DC,iBAAiB,CAACD,KAAK,EAAED,GAAG,CAACG,OAAO,CAAC;EACvC;AACF,CAAC;AAECC,MAAM,CAACC,MAAM,CAACP,YAAY,EAAE;EAE1BQ,OAAO,EAAEA,CAAA,KAAM,MAAW;IACxB,OAAO,CAAC,CAAC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@babel+helper-plugin-utils@7.29.7/node_modules/@babel/helper-plugin-utils/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@babel/helper-plugin-utils",
|
| 3 |
+
"version": "7.29.7",
|
| 4 |
+
"description": "General utilities for plugins to use",
|
| 5 |
+
"author": "The Babel Team (https://babel.dev/team)",
|
| 6 |
+
"homepage": "https://babel.dev/docs/en/next/babel-helper-plugin-utils",
|
| 7 |
+
"license": "MIT",
|
| 8 |
+
"publishConfig": {
|
| 9 |
+
"access": "public"
|
| 10 |
+
},
|
| 11 |
+
"repository": {
|
| 12 |
+
"type": "git",
|
| 13 |
+
"url": "https://github.com/babel/babel.git",
|
| 14 |
+
"directory": "packages/babel-helper-plugin-utils"
|
| 15 |
+
},
|
| 16 |
+
"main": "./lib/index.js",
|
| 17 |
+
"engines": {
|
| 18 |
+
"node": ">=6.9.0"
|
| 19 |
+
},
|
| 20 |
+
"devDependencies": {
|
| 21 |
+
"@babel/core": "^7.29.7"
|
| 22 |
+
},
|
| 23 |
+
"type": "commonjs"
|
| 24 |
+
}
|
frontend/node_modules/.pnpm/@babel+helper-string-parser@7.29.7/node_modules/@babel/helper-string-parser/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 6 |
+
a copy of this software and associated documentation files (the
|
| 7 |
+
"Software"), to deal in the Software without restriction, including
|
| 8 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 9 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 10 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 11 |
+
the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be
|
| 14 |
+
included in all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 17 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 18 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 19 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 20 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 21 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 22 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
frontend/node_modules/.pnpm/@babel+helper-string-parser@7.29.7/node_modules/@babel/helper-string-parser/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @babel/helper-string-parser
|
| 2 |
+
|
| 3 |
+
> A utility package to parse strings
|
| 4 |
+
|
| 5 |
+
See our website [@babel/helper-string-parser](https://babeljs.io/docs/babel-helper-string-parser) for more information.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Using npm:
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
npm install --save @babel/helper-string-parser
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
or using yarn:
|
| 16 |
+
|
| 17 |
+
```sh
|
| 18 |
+
yarn add @babel/helper-string-parser
|
| 19 |
+
```
|
frontend/node_modules/.pnpm/@babel+helper-string-parser@7.29.7/node_modules/@babel/helper-string-parser/lib/index.js
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.readCodePoint = readCodePoint;
|
| 7 |
+
exports.readInt = readInt;
|
| 8 |
+
exports.readStringContents = readStringContents;
|
| 9 |
+
var _isDigit = function isDigit(code) {
|
| 10 |
+
return code >= 48 && code <= 57;
|
| 11 |
+
};
|
| 12 |
+
const forbiddenNumericSeparatorSiblings = {
|
| 13 |
+
decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
|
| 14 |
+
hex: new Set([46, 88, 95, 120])
|
| 15 |
+
};
|
| 16 |
+
const isAllowedNumericSeparatorSibling = {
|
| 17 |
+
bin: ch => ch === 48 || ch === 49,
|
| 18 |
+
oct: ch => ch >= 48 && ch <= 55,
|
| 19 |
+
dec: ch => ch >= 48 && ch <= 57,
|
| 20 |
+
hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
|
| 21 |
+
};
|
| 22 |
+
function readStringContents(type, input, pos, lineStart, curLine, errors) {
|
| 23 |
+
const initialPos = pos;
|
| 24 |
+
const initialLineStart = lineStart;
|
| 25 |
+
const initialCurLine = curLine;
|
| 26 |
+
let out = "";
|
| 27 |
+
let firstInvalidLoc = null;
|
| 28 |
+
let chunkStart = pos;
|
| 29 |
+
const {
|
| 30 |
+
length
|
| 31 |
+
} = input;
|
| 32 |
+
for (;;) {
|
| 33 |
+
if (pos >= length) {
|
| 34 |
+
errors.unterminated(initialPos, initialLineStart, initialCurLine);
|
| 35 |
+
out += input.slice(chunkStart, pos);
|
| 36 |
+
break;
|
| 37 |
+
}
|
| 38 |
+
const ch = input.charCodeAt(pos);
|
| 39 |
+
if (isStringEnd(type, ch, input, pos)) {
|
| 40 |
+
out += input.slice(chunkStart, pos);
|
| 41 |
+
break;
|
| 42 |
+
}
|
| 43 |
+
if (ch === 92) {
|
| 44 |
+
out += input.slice(chunkStart, pos);
|
| 45 |
+
const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors);
|
| 46 |
+
if (res.ch === null && !firstInvalidLoc) {
|
| 47 |
+
firstInvalidLoc = {
|
| 48 |
+
pos,
|
| 49 |
+
lineStart,
|
| 50 |
+
curLine
|
| 51 |
+
};
|
| 52 |
+
} else {
|
| 53 |
+
out += res.ch;
|
| 54 |
+
}
|
| 55 |
+
({
|
| 56 |
+
pos,
|
| 57 |
+
lineStart,
|
| 58 |
+
curLine
|
| 59 |
+
} = res);
|
| 60 |
+
chunkStart = pos;
|
| 61 |
+
} else if (ch === 8232 || ch === 8233) {
|
| 62 |
+
++pos;
|
| 63 |
+
++curLine;
|
| 64 |
+
lineStart = pos;
|
| 65 |
+
} else if (ch === 10 || ch === 13) {
|
| 66 |
+
if (type === "template") {
|
| 67 |
+
out += input.slice(chunkStart, pos) + "\n";
|
| 68 |
+
++pos;
|
| 69 |
+
if (ch === 13 && input.charCodeAt(pos) === 10) {
|
| 70 |
+
++pos;
|
| 71 |
+
}
|
| 72 |
+
++curLine;
|
| 73 |
+
chunkStart = lineStart = pos;
|
| 74 |
+
} else {
|
| 75 |
+
errors.unterminated(initialPos, initialLineStart, initialCurLine);
|
| 76 |
+
}
|
| 77 |
+
} else {
|
| 78 |
+
++pos;
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
return {
|
| 82 |
+
pos,
|
| 83 |
+
str: out,
|
| 84 |
+
firstInvalidLoc,
|
| 85 |
+
lineStart,
|
| 86 |
+
curLine,
|
| 87 |
+
containsInvalid: !!firstInvalidLoc
|
| 88 |
+
};
|
| 89 |
+
}
|
| 90 |
+
function isStringEnd(type, ch, input, pos) {
|
| 91 |
+
if (type === "template") {
|
| 92 |
+
return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
|
| 93 |
+
}
|
| 94 |
+
return ch === (type === "double" ? 34 : 39);
|
| 95 |
+
}
|
| 96 |
+
function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) {
|
| 97 |
+
const throwOnInvalid = !inTemplate;
|
| 98 |
+
pos++;
|
| 99 |
+
const res = ch => ({
|
| 100 |
+
pos,
|
| 101 |
+
ch,
|
| 102 |
+
lineStart,
|
| 103 |
+
curLine
|
| 104 |
+
});
|
| 105 |
+
const ch = input.charCodeAt(pos++);
|
| 106 |
+
switch (ch) {
|
| 107 |
+
case 110:
|
| 108 |
+
return res("\n");
|
| 109 |
+
case 114:
|
| 110 |
+
return res("\r");
|
| 111 |
+
case 120:
|
| 112 |
+
{
|
| 113 |
+
let code;
|
| 114 |
+
({
|
| 115 |
+
code,
|
| 116 |
+
pos
|
| 117 |
+
} = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
|
| 118 |
+
return res(code === null ? null : String.fromCharCode(code));
|
| 119 |
+
}
|
| 120 |
+
case 117:
|
| 121 |
+
{
|
| 122 |
+
let code;
|
| 123 |
+
({
|
| 124 |
+
code,
|
| 125 |
+
pos
|
| 126 |
+
} = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors));
|
| 127 |
+
return res(code === null ? null : String.fromCodePoint(code));
|
| 128 |
+
}
|
| 129 |
+
case 116:
|
| 130 |
+
return res("\t");
|
| 131 |
+
case 98:
|
| 132 |
+
return res("\b");
|
| 133 |
+
case 118:
|
| 134 |
+
return res("\u000b");
|
| 135 |
+
case 102:
|
| 136 |
+
return res("\f");
|
| 137 |
+
case 13:
|
| 138 |
+
if (input.charCodeAt(pos) === 10) {
|
| 139 |
+
++pos;
|
| 140 |
+
}
|
| 141 |
+
case 10:
|
| 142 |
+
lineStart = pos;
|
| 143 |
+
++curLine;
|
| 144 |
+
case 8232:
|
| 145 |
+
case 8233:
|
| 146 |
+
return res("");
|
| 147 |
+
case 56:
|
| 148 |
+
case 57:
|
| 149 |
+
if (inTemplate) {
|
| 150 |
+
return res(null);
|
| 151 |
+
} else {
|
| 152 |
+
errors.strictNumericEscape(pos - 1, lineStart, curLine);
|
| 153 |
+
}
|
| 154 |
+
default:
|
| 155 |
+
if (ch >= 48 && ch <= 55) {
|
| 156 |
+
const startPos = pos - 1;
|
| 157 |
+
const match = /^[0-7]+/.exec(input.slice(startPos, pos + 2));
|
| 158 |
+
let octalStr = match[0];
|
| 159 |
+
let octal = parseInt(octalStr, 8);
|
| 160 |
+
if (octal > 255) {
|
| 161 |
+
octalStr = octalStr.slice(0, -1);
|
| 162 |
+
octal = parseInt(octalStr, 8);
|
| 163 |
+
}
|
| 164 |
+
pos += octalStr.length - 1;
|
| 165 |
+
const next = input.charCodeAt(pos);
|
| 166 |
+
if (octalStr !== "0" || next === 56 || next === 57) {
|
| 167 |
+
if (inTemplate) {
|
| 168 |
+
return res(null);
|
| 169 |
+
} else {
|
| 170 |
+
errors.strictNumericEscape(startPos, lineStart, curLine);
|
| 171 |
+
}
|
| 172 |
+
}
|
| 173 |
+
return res(String.fromCharCode(octal));
|
| 174 |
+
}
|
| 175 |
+
return res(String.fromCharCode(ch));
|
| 176 |
+
}
|
| 177 |
+
}
|
| 178 |
+
function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
|
| 179 |
+
const initialPos = pos;
|
| 180 |
+
let n;
|
| 181 |
+
({
|
| 182 |
+
n,
|
| 183 |
+
pos
|
| 184 |
+
} = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
|
| 185 |
+
if (n === null) {
|
| 186 |
+
if (throwOnInvalid) {
|
| 187 |
+
errors.invalidEscapeSequence(initialPos, lineStart, curLine);
|
| 188 |
+
} else {
|
| 189 |
+
pos = initialPos - 1;
|
| 190 |
+
}
|
| 191 |
+
}
|
| 192 |
+
return {
|
| 193 |
+
code: n,
|
| 194 |
+
pos
|
| 195 |
+
};
|
| 196 |
+
}
|
| 197 |
+
function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
|
| 198 |
+
const start = pos;
|
| 199 |
+
const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct;
|
| 200 |
+
const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin;
|
| 201 |
+
let invalid = false;
|
| 202 |
+
let total = 0;
|
| 203 |
+
for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
|
| 204 |
+
const code = input.charCodeAt(pos);
|
| 205 |
+
let val;
|
| 206 |
+
if (code === 95 && allowNumSeparator !== "bail") {
|
| 207 |
+
const prev = input.charCodeAt(pos - 1);
|
| 208 |
+
const next = input.charCodeAt(pos + 1);
|
| 209 |
+
if (!allowNumSeparator) {
|
| 210 |
+
if (bailOnError) return {
|
| 211 |
+
n: null,
|
| 212 |
+
pos
|
| 213 |
+
};
|
| 214 |
+
errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);
|
| 215 |
+
} else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) {
|
| 216 |
+
if (bailOnError) return {
|
| 217 |
+
n: null,
|
| 218 |
+
pos
|
| 219 |
+
};
|
| 220 |
+
errors.unexpectedNumericSeparator(pos, lineStart, curLine);
|
| 221 |
+
}
|
| 222 |
+
++pos;
|
| 223 |
+
continue;
|
| 224 |
+
}
|
| 225 |
+
if (code >= 97) {
|
| 226 |
+
val = code - 97 + 10;
|
| 227 |
+
} else if (code >= 65) {
|
| 228 |
+
val = code - 65 + 10;
|
| 229 |
+
} else if (_isDigit(code)) {
|
| 230 |
+
val = code - 48;
|
| 231 |
+
} else {
|
| 232 |
+
val = Infinity;
|
| 233 |
+
}
|
| 234 |
+
if (val >= radix) {
|
| 235 |
+
if (val <= 9 && bailOnError) {
|
| 236 |
+
return {
|
| 237 |
+
n: null,
|
| 238 |
+
pos
|
| 239 |
+
};
|
| 240 |
+
} else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) {
|
| 241 |
+
val = 0;
|
| 242 |
+
} else if (forceLen) {
|
| 243 |
+
val = 0;
|
| 244 |
+
invalid = true;
|
| 245 |
+
} else {
|
| 246 |
+
break;
|
| 247 |
+
}
|
| 248 |
+
}
|
| 249 |
+
++pos;
|
| 250 |
+
total = total * radix + val;
|
| 251 |
+
}
|
| 252 |
+
if (pos === start || len != null && pos - start !== len || invalid) {
|
| 253 |
+
return {
|
| 254 |
+
n: null,
|
| 255 |
+
pos
|
| 256 |
+
};
|
| 257 |
+
}
|
| 258 |
+
return {
|
| 259 |
+
n: total,
|
| 260 |
+
pos
|
| 261 |
+
};
|
| 262 |
+
}
|
| 263 |
+
function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
|
| 264 |
+
const ch = input.charCodeAt(pos);
|
| 265 |
+
let code;
|
| 266 |
+
if (ch === 123) {
|
| 267 |
+
++pos;
|
| 268 |
+
({
|
| 269 |
+
code,
|
| 270 |
+
pos
|
| 271 |
+
} = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
|
| 272 |
+
++pos;
|
| 273 |
+
if (code !== null && code > 0x10ffff) {
|
| 274 |
+
if (throwOnInvalid) {
|
| 275 |
+
errors.invalidCodePoint(pos, lineStart, curLine);
|
| 276 |
+
} else {
|
| 277 |
+
return {
|
| 278 |
+
code: null,
|
| 279 |
+
pos
|
| 280 |
+
};
|
| 281 |
+
}
|
| 282 |
+
}
|
| 283 |
+
} else {
|
| 284 |
+
({
|
| 285 |
+
code,
|
| 286 |
+
pos
|
| 287 |
+
} = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
|
| 288 |
+
}
|
| 289 |
+
return {
|
| 290 |
+
code,
|
| 291 |
+
pos
|
| 292 |
+
};
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
//# sourceMappingURL=index.js.map
|
frontend/node_modules/.pnpm/@babel+helper-string-parser@7.29.7/node_modules/@babel/helper-string-parser/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["isDigit","code","forbiddenNumericSeparatorSiblings","decBinOct","Set","hex","isAllowedNumericSeparatorSibling","bin","ch","oct","dec","readStringContents","type","input","pos","lineStart","curLine","errors","initialPos","initialLineStart","initialCurLine","out","firstInvalidLoc","chunkStart","length","unterminated","slice","charCodeAt","isStringEnd","res","readEscapedChar","str","containsInvalid","inTemplate","throwOnInvalid","readHexChar","String","fromCharCode","readCodePoint","fromCodePoint","strictNumericEscape","startPos","match","exec","octalStr","octal","parseInt","next","len","forceLen","n","readInt","invalidEscapeSequence","radix","allowNumSeparator","bailOnError","start","forbiddenSiblings","isAllowedSibling","invalid","total","i","e","Infinity","val","prev","numericSeparatorInEscapeSequence","Number","isNaN","has","unexpectedNumericSeparator","_isDigit","invalidDigit","indexOf","invalidCodePoint"],"sources":["../src/index.ts"],"sourcesContent":["// We inline this package\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as charCodes from \"charcodes\";\n\n// The following character codes are forbidden from being\n// an immediate sibling of NumericLiteralSeparator _\nconst forbiddenNumericSeparatorSiblings = {\n decBinOct: new Set<number>([\n charCodes.dot,\n charCodes.uppercaseB,\n charCodes.uppercaseE,\n charCodes.uppercaseO,\n charCodes.underscore, // multiple separators are not allowed\n charCodes.lowercaseB,\n charCodes.lowercaseE,\n charCodes.lowercaseO,\n ]),\n hex: new Set<number>([\n charCodes.dot,\n charCodes.uppercaseX,\n charCodes.underscore, // multiple separators are not allowed\n charCodes.lowercaseX,\n ]),\n};\n\nconst isAllowedNumericSeparatorSibling = {\n // 0 - 1\n bin: (ch: number) => ch === charCodes.digit0 || ch === charCodes.digit1,\n\n // 0 - 7\n oct: (ch: number) => ch >= charCodes.digit0 && ch <= charCodes.digit7,\n\n // 0 - 9\n dec: (ch: number) => ch >= charCodes.digit0 && ch <= charCodes.digit9,\n\n // 0 - 9, A - F, a - f,\n hex: (ch: number) =>\n (ch >= charCodes.digit0 && ch <= charCodes.digit9) ||\n (ch >= charCodes.uppercaseA && ch <= charCodes.uppercaseF) ||\n (ch >= charCodes.lowercaseA && ch <= charCodes.lowercaseF),\n};\n\nexport type StringContentsErrorHandlers = EscapedCharErrorHandlers & {\n unterminated(\n initialPos: number,\n initialLineStart: number,\n initialCurLine: number,\n ): void;\n};\n\nexport function readStringContents(\n type: \"single\" | \"double\" | \"template\",\n input: string,\n pos: number,\n lineStart: number,\n curLine: number,\n errors: StringContentsErrorHandlers,\n) {\n const initialPos = pos;\n const initialLineStart = lineStart;\n const initialCurLine = curLine;\n\n let out = \"\";\n let firstInvalidLoc = null;\n let chunkStart = pos;\n const { length } = input;\n for (;;) {\n if (pos >= length) {\n errors.unterminated(initialPos, initialLineStart, initialCurLine);\n out += input.slice(chunkStart, pos);\n break;\n }\n const ch = input.charCodeAt(pos);\n if (isStringEnd(type, ch, input, pos)) {\n out += input.slice(chunkStart, pos);\n break;\n }\n if (ch === charCodes.backslash) {\n out += input.slice(chunkStart, pos);\n const res = readEscapedChar(\n input,\n pos,\n lineStart,\n curLine,\n type === \"template\",\n errors,\n );\n if (res.ch === null && !firstInvalidLoc) {\n firstInvalidLoc = { pos, lineStart, curLine };\n } else {\n out += res.ch;\n }\n ({ pos, lineStart, curLine } = res);\n chunkStart = pos;\n } else if (\n ch === charCodes.lineSeparator ||\n ch === charCodes.paragraphSeparator\n ) {\n ++pos;\n ++curLine;\n lineStart = pos;\n } else if (ch === charCodes.lineFeed || ch === charCodes.carriageReturn) {\n if (type === \"template\") {\n out += input.slice(chunkStart, pos) + \"\\n\";\n ++pos;\n if (\n ch === charCodes.carriageReturn &&\n input.charCodeAt(pos) === charCodes.lineFeed\n ) {\n ++pos;\n }\n ++curLine;\n chunkStart = lineStart = pos;\n } else {\n errors.unterminated(initialPos, initialLineStart, initialCurLine);\n }\n } else {\n ++pos;\n }\n }\n return process.env.BABEL_8_BREAKING\n ? { pos, str: out, firstInvalidLoc, lineStart, curLine }\n : {\n pos,\n str: out,\n firstInvalidLoc,\n lineStart,\n curLine,\n containsInvalid: !!firstInvalidLoc,\n };\n}\n\nfunction isStringEnd(\n type: \"single\" | \"double\" | \"template\",\n ch: number,\n input: string,\n pos: number,\n) {\n if (type === \"template\") {\n return (\n ch === charCodes.graveAccent ||\n (ch === charCodes.dollarSign &&\n input.charCodeAt(pos + 1) === charCodes.leftCurlyBrace)\n );\n }\n return (\n ch === (type === \"double\" ? charCodes.quotationMark : charCodes.apostrophe)\n );\n}\n\ntype EscapedCharErrorHandlers = HexCharErrorHandlers &\n CodePointErrorHandlers & {\n strictNumericEscape(pos: number, lineStart: number, curLine: number): void;\n };\n\nfunction readEscapedChar(\n input: string,\n pos: number,\n lineStart: number,\n curLine: number,\n inTemplate: boolean,\n errors: EscapedCharErrorHandlers,\n) {\n const throwOnInvalid = !inTemplate;\n pos++; // skip '\\'\n\n const res = (ch: string | null) => ({ pos, ch, lineStart, curLine });\n\n const ch = input.charCodeAt(pos++);\n switch (ch) {\n case charCodes.lowercaseN:\n return res(\"\\n\");\n case charCodes.lowercaseR:\n return res(\"\\r\");\n case charCodes.lowercaseX: {\n let code;\n ({ code, pos } = readHexChar(\n input,\n pos,\n lineStart,\n curLine,\n 2,\n false,\n throwOnInvalid,\n errors,\n ));\n return res(code === null ? null : String.fromCharCode(code));\n }\n case charCodes.lowercaseU: {\n let code;\n ({ code, pos } = readCodePoint(\n input,\n pos,\n lineStart,\n curLine,\n throwOnInvalid,\n errors,\n ));\n return res(code === null ? null : String.fromCodePoint(code));\n }\n case charCodes.lowercaseT:\n return res(\"\\t\");\n case charCodes.lowercaseB:\n return res(\"\\b\");\n case charCodes.lowercaseV:\n return res(\"\\u000b\");\n case charCodes.lowercaseF:\n return res(\"\\f\");\n case charCodes.carriageReturn:\n if (input.charCodeAt(pos) === charCodes.lineFeed) {\n ++pos;\n }\n // fall through\n case charCodes.lineFeed:\n lineStart = pos;\n ++curLine;\n // fall through\n case charCodes.lineSeparator:\n case charCodes.paragraphSeparator:\n return res(\"\");\n case charCodes.digit8:\n case charCodes.digit9:\n if (inTemplate) {\n return res(null);\n } else {\n errors.strictNumericEscape(pos - 1, lineStart, curLine);\n }\n // fall through\n default:\n if (ch >= charCodes.digit0 && ch <= charCodes.digit7) {\n const startPos = pos - 1;\n const match = /^[0-7]+/.exec(input.slice(startPos, pos + 2));\n\n let octalStr = match[0];\n\n let octal = parseInt(octalStr, 8);\n if (octal > 255) {\n octalStr = octalStr.slice(0, -1);\n octal = parseInt(octalStr, 8);\n }\n pos += octalStr.length - 1;\n const next = input.charCodeAt(pos);\n if (\n octalStr !== \"0\" ||\n next === charCodes.digit8 ||\n next === charCodes.digit9\n ) {\n if (inTemplate) {\n return res(null);\n } else {\n errors.strictNumericEscape(startPos, lineStart, curLine);\n }\n }\n\n return res(String.fromCharCode(octal));\n }\n\n return res(String.fromCharCode(ch));\n }\n}\n\ntype HexCharErrorHandlers = IntErrorHandlers & {\n invalidEscapeSequence(pos: number, lineStart: number, curLine: number): void;\n};\n\n// Used to read character escape sequences ('\\x', '\\u').\nfunction readHexChar(\n input: string,\n pos: number,\n lineStart: number,\n curLine: number,\n len: number,\n forceLen: boolean,\n throwOnInvalid: boolean,\n errors: HexCharErrorHandlers,\n) {\n const initialPos = pos;\n let n;\n ({ n, pos } = readInt(\n input,\n pos,\n lineStart,\n curLine,\n 16,\n len,\n forceLen,\n false,\n errors,\n /* bailOnError */ !throwOnInvalid,\n ));\n if (n === null) {\n if (throwOnInvalid) {\n errors.invalidEscapeSequence(initialPos, lineStart, curLine);\n } else {\n pos = initialPos - 1;\n }\n }\n return { code: n, pos };\n}\n\nexport type IntErrorHandlers = {\n numericSeparatorInEscapeSequence(\n pos: number,\n lineStart: number,\n curLine: number,\n ): void;\n unexpectedNumericSeparator(\n pos: number,\n lineStart: number,\n curLine: number,\n ): void;\n // It can return \"true\" to indicate that the error was handled\n // and the int parsing should continue.\n invalidDigit(\n pos: number,\n lineStart: number,\n curLine: number,\n radix: number,\n ): boolean;\n};\n\nexport function readInt(\n input: string,\n pos: number,\n lineStart: number,\n curLine: number,\n radix: number,\n len: number | undefined,\n forceLen: boolean,\n allowNumSeparator: boolean | \"bail\",\n errors: IntErrorHandlers,\n bailOnError: boolean,\n) {\n const start = pos;\n const forbiddenSiblings =\n radix === 16\n ? forbiddenNumericSeparatorSiblings.hex\n : forbiddenNumericSeparatorSiblings.decBinOct;\n const isAllowedSibling =\n radix === 16\n ? isAllowedNumericSeparatorSibling.hex\n : radix === 10\n ? isAllowedNumericSeparatorSibling.dec\n : radix === 8\n ? isAllowedNumericSeparatorSibling.oct\n : isAllowedNumericSeparatorSibling.bin;\n\n let invalid = false;\n let total = 0;\n\n for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {\n const code = input.charCodeAt(pos);\n let val;\n\n if (code === charCodes.underscore && allowNumSeparator !== \"bail\") {\n const prev = input.charCodeAt(pos - 1);\n const next = input.charCodeAt(pos + 1);\n\n if (!allowNumSeparator) {\n if (bailOnError) return { n: null, pos };\n errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);\n } else if (\n Number.isNaN(next) ||\n !isAllowedSibling(next) ||\n forbiddenSiblings.has(prev) ||\n forbiddenSiblings.has(next)\n ) {\n if (bailOnError) return { n: null, pos };\n errors.unexpectedNumericSeparator(pos, lineStart, curLine);\n }\n\n // Ignore this _ character\n ++pos;\n continue;\n }\n\n if (code >= charCodes.lowercaseA) {\n val = code - charCodes.lowercaseA + charCodes.lineFeed;\n } else if (code >= charCodes.uppercaseA) {\n val = code - charCodes.uppercaseA + charCodes.lineFeed;\n } else if (charCodes.isDigit(code)) {\n val = code - charCodes.digit0; // 0-9\n } else {\n val = Infinity;\n }\n if (val >= radix) {\n // If we found a digit which is too big, errors.invalidDigit can return true to avoid\n // breaking the loop (this is used for error recovery).\n if (val <= 9 && bailOnError) {\n return { n: null, pos };\n } else if (\n val <= 9 &&\n errors.invalidDigit(pos, lineStart, curLine, radix)\n ) {\n val = 0;\n } else if (forceLen) {\n val = 0;\n invalid = true;\n } else {\n break;\n }\n }\n ++pos;\n total = total * radix + val;\n }\n if (pos === start || (len != null && pos - start !== len) || invalid) {\n return { n: null, pos };\n }\n\n return { n: total, pos };\n}\n\nexport type CodePointErrorHandlers = HexCharErrorHandlers & {\n invalidCodePoint(pos: number, lineStart: number, curLine: number): void;\n};\n\nexport function readCodePoint(\n input: string,\n pos: number,\n lineStart: number,\n curLine: number,\n throwOnInvalid: boolean,\n errors: CodePointErrorHandlers,\n) {\n const ch = input.charCodeAt(pos);\n let code;\n\n if (ch === charCodes.leftCurlyBrace) {\n ++pos;\n ({ code, pos } = readHexChar(\n input,\n pos,\n lineStart,\n curLine,\n input.indexOf(\"}\", pos) - pos,\n true,\n throwOnInvalid,\n errors,\n ));\n ++pos;\n if (code !== null && code > 0x10ffff) {\n if (throwOnInvalid) {\n errors.invalidCodePoint(pos, lineStart, curLine);\n } else {\n return { code: null, pos };\n }\n }\n } else {\n ({ code, pos } = readHexChar(\n input,\n pos,\n lineStart,\n curLine,\n 4,\n false,\n throwOnInvalid,\n errors,\n ));\n }\n return { code, pos };\n}\n"],"mappings":";;;;;;;;eAAA,SAASA,OAAOA,CAACC,IAAI,EAAE;EACrB,OAAOA,IAAI,MAAU,IAAIA,IAAI,MAAU;AACzC,CAAC;AAID,MAAMC,iCAAiC,GAAG;EACxCC,SAAS,EAAE,IAAIC,GAAG,CAAS,kCAS1B,CAAC;EACFC,GAAG,EAAE,IAAID,GAAG,CAAS,iBAKpB;AACH,CAAC;AAED,MAAME,gCAAgC,GAAG;EAEvCC,GAAG,EAAGC,EAAU,IAAKA,EAAE,OAAqB,IAAIA,EAAE,OAAqB;EAGvEC,GAAG,EAAGD,EAAU,IAAKA,EAAE,MAAoB,IAAIA,EAAE,MAAoB;EAGrEE,GAAG,EAAGF,EAAU,IAAKA,EAAE,MAAoB,IAAIA,EAAE,MAAoB;EAGrEH,GAAG,EAAGG,EAAU,IACbA,EAAE,MAAoB,IAAIA,EAAE,MAAoB,IAChDA,EAAE,MAAwB,IAAIA,EAAE,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E;IACnC,EAAEM,GAAG;IACL,CAAC;MAAEb,IAAI;MAAEa;IAAI,CAAC,GAAGqB,WAAW,CAC1BtB,KAAK,EACLC,GAAG,EACHC,SAAS,EACTC,OAAO,EACPH,KAAK,CAAC4D,OAAO,CAAC,GAAG,EAAE3D,GAAG,CAAC,GAAGA,GAAG,EAC7B,IAAI,EACJoB,cAAc,EACdjB,MACF,CAAC;IACD,EAAEH,GAAG;IACL,IAAIb,IAAI,KAAK,IAAI,IAAIA,IAAI,GAAG,QAAQ,EAAE;MACpC,IAAIiC,cAAc,EAAE;QAClBjB,MAAM,CAACyD,gBAAgB,CAAC5D,GAAG,EAAEC,SAAS,EAAEC,OAAO,CAAC;MAClD,CAAC,MAAM;QACL,OAAO;UAAEf,IAAI,EAAE,IAAI;UAAEa;QAAI,CAAC;MAC5B;IACF;EACF,CAAC,MAAM;IACL,CAAC;MAAEb,IAAI;MAAEa;IAAI,CAAC,GAAGqB,WAAW,CAC1BtB,KAAK,EACLC,GAAG,EACHC,SAAS,EACTC,OAAO,EACP,CAAC,EACD,KAAK,EACLkB,cAAc,EACdjB,MACF,CAAC;EACH;EACA,OAAO;IAAEhB,IAAI;IAAEa;EAAI,CAAC;AACtB","ignoreList":[]}
|
frontend/node_modules/.pnpm/@babel+helper-string-parser@7.29.7/node_modules/@babel/helper-string-parser/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@babel/helper-string-parser",
|
| 3 |
+
"version": "7.29.7",
|
| 4 |
+
"description": "A utility package to parse strings",
|
| 5 |
+
"repository": {
|
| 6 |
+
"type": "git",
|
| 7 |
+
"url": "https://github.com/babel/babel.git",
|
| 8 |
+
"directory": "packages/babel-helper-string-parser"
|
| 9 |
+
},
|
| 10 |
+
"homepage": "https://babel.dev/docs/en/next/babel-helper-string-parser",
|
| 11 |
+
"license": "MIT",
|
| 12 |
+
"publishConfig": {
|
| 13 |
+
"access": "public"
|
| 14 |
+
},
|
| 15 |
+
"main": "./lib/index.js",
|
| 16 |
+
"devDependencies": {
|
| 17 |
+
"charcodes": "^0.2.0"
|
| 18 |
+
},
|
| 19 |
+
"engines": {
|
| 20 |
+
"node": ">=6.9.0"
|
| 21 |
+
},
|
| 22 |
+
"author": "The Babel Team (https://babel.dev/team)",
|
| 23 |
+
"exports": {
|
| 24 |
+
".": {
|
| 25 |
+
"types": "./lib/index.d.ts",
|
| 26 |
+
"default": "./lib/index.js"
|
| 27 |
+
},
|
| 28 |
+
"./package.json": "./package.json"
|
| 29 |
+
},
|
| 30 |
+
"type": "commonjs"
|
| 31 |
+
}
|
frontend/node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 6 |
+
a copy of this software and associated documentation files (the
|
| 7 |
+
"Software"), to deal in the Software without restriction, including
|
| 8 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 9 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 10 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 11 |
+
the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be
|
| 14 |
+
included in all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 17 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 18 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 19 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 20 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 21 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 22 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
frontend/node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @babel/helper-validator-identifier
|
| 2 |
+
|
| 3 |
+
> Validate identifier/keywords name
|
| 4 |
+
|
| 5 |
+
See our website [@babel/helper-validator-identifier](https://babeljs.io/docs/babel-helper-validator-identifier) for more information.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Using npm:
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
npm install --save @babel/helper-validator-identifier
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
or using yarn:
|
| 16 |
+
|
| 17 |
+
```sh
|
| 18 |
+
yarn add @babel/helper-validator-identifier
|
| 19 |
+
```
|