Borrado de repositorio
This commit is contained in:
parent
aa2823eee5
commit
8b2a8f3741
|
@ -1,21 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
root: true,
|
|
||||||
env: { browser: true, es2020: true },
|
|
||||||
extends: [
|
|
||||||
'eslint:recommended',
|
|
||||||
'plugin:react/recommended',
|
|
||||||
'plugin:react/jsx-runtime',
|
|
||||||
'plugin:react-hooks/recommended',
|
|
||||||
],
|
|
||||||
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
||||||
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
|
|
||||||
settings: { react: { version: '18.2' } },
|
|
||||||
plugins: ['react-refresh'],
|
|
||||||
rules: {
|
|
||||||
'react/jsx-no-target-blank': 'off',
|
|
||||||
'react-refresh/only-export-components': [
|
|
||||||
'warn',
|
|
||||||
{ allowConstantExport: true },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
# Logs
|
|
||||||
logs
|
|
||||||
*.log
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
pnpm-debug.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
|
|
||||||
node_modules
|
|
||||||
dist
|
|
||||||
dist-ssr
|
|
||||||
*.local
|
|
||||||
|
|
||||||
# Editor directories and files
|
|
||||||
.vscode/*
|
|
||||||
!.vscode/extensions.json
|
|
||||||
.idea
|
|
||||||
.DS_Store
|
|
||||||
*.suo
|
|
||||||
*.ntvs*
|
|
||||||
*.njsproj
|
|
||||||
*.sln
|
|
||||||
*.sw?
|
|
|
@ -1,8 +0,0 @@
|
||||||
# React + Vite
|
|
||||||
|
|
||||||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
||||||
|
|
||||||
Currently, two official plugins are available:
|
|
||||||
|
|
||||||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
||||||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
|
@ -1,13 +0,0 @@
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<title>Vite + React</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="root"></div>
|
|
||||||
<script type="module" src="/src/main.jsx"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,26 +0,0 @@
|
||||||
{
|
|
||||||
"name": "frontend",
|
|
||||||
"private": true,
|
|
||||||
"version": "0.0.0",
|
|
||||||
"type": "module",
|
|
||||||
"scripts": {
|
|
||||||
"dev": "vite",
|
|
||||||
"build": "vite build",
|
|
||||||
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
|
|
||||||
"preview": "vite preview"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"react": "^18.2.0",
|
|
||||||
"react-dom": "^18.2.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/react": "^18.2.66",
|
|
||||||
"@types/react-dom": "^18.2.22",
|
|
||||||
"@vitejs/plugin-react": "^4.2.1",
|
|
||||||
"eslint": "^8.57.0",
|
|
||||||
"eslint-plugin-react": "^7.34.1",
|
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
|
||||||
"eslint-plugin-react-refresh": "^0.4.6",
|
|
||||||
"vite": "^5.2.0"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
|
Before Width: | Height: | Size: 1.5 KiB |
|
@ -1,42 +0,0 @@
|
||||||
#root {
|
|
||||||
max-width: 1280px;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 2rem;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
height: 6em;
|
|
||||||
padding: 1.5em;
|
|
||||||
will-change: filter;
|
|
||||||
transition: filter 300ms;
|
|
||||||
}
|
|
||||||
.logo:hover {
|
|
||||||
filter: drop-shadow(0 0 2em #646cffaa);
|
|
||||||
}
|
|
||||||
.logo.react:hover {
|
|
||||||
filter: drop-shadow(0 0 2em #61dafbaa);
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes logo-spin {
|
|
||||||
from {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-reduced-motion: no-preference) {
|
|
||||||
a:nth-of-type(2) .logo {
|
|
||||||
animation: logo-spin infinite 20s linear;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
padding: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.read-the-docs {
|
|
||||||
color: #888;
|
|
||||||
}
|
|
|
@ -1,35 +0,0 @@
|
||||||
import { useState } from 'react'
|
|
||||||
import reactLogo from './assets/react.svg'
|
|
||||||
import viteLogo from '/vite.svg'
|
|
||||||
import './App.css'
|
|
||||||
|
|
||||||
function App() {
|
|
||||||
const [count, setCount] = useState(0)
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div>
|
|
||||||
<a href="https://vitejs.dev" target="_blank">
|
|
||||||
<img src={viteLogo} className="logo" alt="Vite logo" />
|
|
||||||
</a>
|
|
||||||
<a href="https://react.dev" target="_blank">
|
|
||||||
<img src={reactLogo} className="logo react" alt="React logo" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<h1>Vite + React</h1>
|
|
||||||
<div className="card">
|
|
||||||
<button onClick={() => setCount((count) => count + 1)}>
|
|
||||||
count is {count}
|
|
||||||
</button>
|
|
||||||
<p>
|
|
||||||
Edit <code>src/App.jsx</code> and save to test HMR
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<p className="read-the-docs">
|
|
||||||
Click on the Vite and React logos to learn more
|
|
||||||
</p>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default App
|
|
|
@ -1 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|
|
Before Width: | Height: | Size: 4.0 KiB |
|
@ -1,68 +0,0 @@
|
||||||
:root {
|
|
||||||
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
||||||
line-height: 1.5;
|
|
||||||
font-weight: 400;
|
|
||||||
|
|
||||||
color-scheme: light dark;
|
|
||||||
color: rgba(255, 255, 255, 0.87);
|
|
||||||
background-color: #242424;
|
|
||||||
|
|
||||||
font-synthesis: none;
|
|
||||||
text-rendering: optimizeLegibility;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
font-weight: 500;
|
|
||||||
color: #646cff;
|
|
||||||
text-decoration: inherit;
|
|
||||||
}
|
|
||||||
a:hover {
|
|
||||||
color: #535bf2;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
display: flex;
|
|
||||||
place-items: center;
|
|
||||||
min-width: 320px;
|
|
||||||
min-height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 3.2em;
|
|
||||||
line-height: 1.1;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
border-radius: 8px;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
padding: 0.6em 1.2em;
|
|
||||||
font-size: 1em;
|
|
||||||
font-weight: 500;
|
|
||||||
font-family: inherit;
|
|
||||||
background-color: #1a1a1a;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: border-color 0.25s;
|
|
||||||
}
|
|
||||||
button:hover {
|
|
||||||
border-color: #646cff;
|
|
||||||
}
|
|
||||||
button:focus,
|
|
||||||
button:focus-visible {
|
|
||||||
outline: 4px auto -webkit-focus-ring-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: light) {
|
|
||||||
:root {
|
|
||||||
color: #213547;
|
|
||||||
background-color: #ffffff;
|
|
||||||
}
|
|
||||||
a:hover {
|
|
||||||
color: #747bff;
|
|
||||||
}
|
|
||||||
button {
|
|
||||||
background-color: #f9f9f9;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
import React from 'react'
|
|
||||||
import ReactDOM from 'react-dom/client'
|
|
||||||
import App from './App.jsx'
|
|
||||||
import './index.css'
|
|
||||||
|
|
||||||
ReactDOM.createRoot(document.getElementById('root')).render(
|
|
||||||
<React.StrictMode>
|
|
||||||
<App />
|
|
||||||
</React.StrictMode>,
|
|
||||||
)
|
|
|
@ -1,7 +0,0 @@
|
||||||
import { defineConfig } from 'vite'
|
|
||||||
import react from '@vitejs/plugin-react'
|
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
|
||||||
export default defineConfig({
|
|
||||||
plugins: [react()],
|
|
||||||
})
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
||||||
|
|
||||||
case `uname` in
|
|
||||||
*CYGWIN*|*MINGW*|*MSYS*)
|
|
||||||
if command -v cygpath > /dev/null 2>&1; then
|
|
||||||
basedir=`cygpath -w "$basedir"`
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -x "$basedir/node" ]; then
|
|
||||||
exec "$basedir/node" "$basedir/../loose-envify/cli.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../loose-envify/cli.js" "$@"
|
|
||||||
fi
|
|
|
@ -1,17 +0,0 @@
|
||||||
@ECHO off
|
|
||||||
GOTO start
|
|
||||||
:find_dp0
|
|
||||||
SET dp0=%~dp0
|
|
||||||
EXIT /b
|
|
||||||
:start
|
|
||||||
SETLOCAL
|
|
||||||
CALL :find_dp0
|
|
||||||
|
|
||||||
IF EXIST "%dp0%\node.exe" (
|
|
||||||
SET "_prog=%dp0%\node.exe"
|
|
||||||
) ELSE (
|
|
||||||
SET "_prog=node"
|
|
||||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
||||||
)
|
|
||||||
|
|
||||||
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\loose-envify\cli.js" %*
|
|
|
@ -1,28 +0,0 @@
|
||||||
#!/usr/bin/env pwsh
|
|
||||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
||||||
|
|
||||||
$exe=""
|
|
||||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
||||||
# Fix case when both the Windows and Linux builds of Node
|
|
||||||
# are installed in the same directory
|
|
||||||
$exe=".exe"
|
|
||||||
}
|
|
||||||
$ret=0
|
|
||||||
if (Test-Path "$basedir/node$exe") {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../loose-envify/cli.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../loose-envify/cli.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
||||||
|
|
||||||
case `uname` in
|
|
||||||
*CYGWIN*|*MINGW*|*MSYS*)
|
|
||||||
if command -v cygpath > /dev/null 2>&1; then
|
|
||||||
basedir=`cygpath -w "$basedir"`
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -x "$basedir/node" ]; then
|
|
||||||
exec "$basedir/node" "$basedir/../resolve/bin/resolve" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../resolve/bin/resolve" "$@"
|
|
||||||
fi
|
|
|
@ -1,17 +0,0 @@
|
||||||
@ECHO off
|
|
||||||
GOTO start
|
|
||||||
:find_dp0
|
|
||||||
SET dp0=%~dp0
|
|
||||||
EXIT /b
|
|
||||||
:start
|
|
||||||
SETLOCAL
|
|
||||||
CALL :find_dp0
|
|
||||||
|
|
||||||
IF EXIST "%dp0%\node.exe" (
|
|
||||||
SET "_prog=%dp0%\node.exe"
|
|
||||||
) ELSE (
|
|
||||||
SET "_prog=node"
|
|
||||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
||||||
)
|
|
||||||
|
|
||||||
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\resolve\bin\resolve" %*
|
|
|
@ -1,28 +0,0 @@
|
||||||
#!/usr/bin/env pwsh
|
|
||||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
||||||
|
|
||||||
$exe=""
|
|
||||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
||||||
# Fix case when both the Windows and Linux builds of Node
|
|
||||||
# are installed in the same directory
|
|
||||||
$exe=".exe"
|
|
||||||
}
|
|
||||||
$ret=0
|
|
||||||
if (Test-Path "$basedir/node$exe") {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "$basedir/node$exe" "$basedir/../resolve/bin/resolve" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../resolve/bin/resolve" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../resolve/bin/resolve" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../resolve/bin/resolve" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
|
@ -1,940 +0,0 @@
|
||||||
{
|
|
||||||
"name": "FrontPastel",
|
|
||||||
"lockfileVersion": 3,
|
|
||||||
"requires": true,
|
|
||||||
"packages": {
|
|
||||||
"node_modules/@babel/code-frame": {
|
|
||||||
"version": "7.24.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz",
|
|
||||||
"integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/highlight": "^7.24.2",
|
|
||||||
"picocolors": "^1.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/helper-module-imports": {
|
|
||||||
"version": "7.24.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz",
|
|
||||||
"integrity": "sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/types": "^7.24.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/helper-string-parser": {
|
|
||||||
"version": "7.24.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz",
|
|
||||||
"integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/helper-validator-identifier": {
|
|
||||||
"version": "7.22.20",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz",
|
|
||||||
"integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/highlight": {
|
|
||||||
"version": "7.24.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.2.tgz",
|
|
||||||
"integrity": "sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/helper-validator-identifier": "^7.22.20",
|
|
||||||
"chalk": "^2.4.2",
|
|
||||||
"js-tokens": "^4.0.0",
|
|
||||||
"picocolors": "^1.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/runtime": {
|
|
||||||
"version": "7.24.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.4.tgz",
|
|
||||||
"integrity": "sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==",
|
|
||||||
"dependencies": {
|
|
||||||
"regenerator-runtime": "^0.14.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/types": {
|
|
||||||
"version": "7.24.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz",
|
|
||||||
"integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/helper-string-parser": "^7.23.4",
|
|
||||||
"@babel/helper-validator-identifier": "^7.22.20",
|
|
||||||
"to-fast-properties": "^2.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/babel-plugin": {
|
|
||||||
"version": "11.11.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.11.0.tgz",
|
|
||||||
"integrity": "sha512-m4HEDZleaaCH+XgDDsPF15Ht6wTLsgDTeR3WYj9Q/k76JtWhrJjcP4+/XlG8LGT/Rol9qUfOIztXeA84ATpqPQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/helper-module-imports": "^7.16.7",
|
|
||||||
"@babel/runtime": "^7.18.3",
|
|
||||||
"@emotion/hash": "^0.9.1",
|
|
||||||
"@emotion/memoize": "^0.8.1",
|
|
||||||
"@emotion/serialize": "^1.1.2",
|
|
||||||
"babel-plugin-macros": "^3.1.0",
|
|
||||||
"convert-source-map": "^1.5.0",
|
|
||||||
"escape-string-regexp": "^4.0.0",
|
|
||||||
"find-root": "^1.1.0",
|
|
||||||
"source-map": "^0.5.7",
|
|
||||||
"stylis": "4.2.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/cache": {
|
|
||||||
"version": "11.11.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.11.0.tgz",
|
|
||||||
"integrity": "sha512-P34z9ssTCBi3e9EI1ZsWpNHcfY1r09ZO0rZbRO2ob3ZQMnFI35jB536qoXbkdesr5EUhYi22anuEJuyxifaqAQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"@emotion/memoize": "^0.8.1",
|
|
||||||
"@emotion/sheet": "^1.2.2",
|
|
||||||
"@emotion/utils": "^1.2.1",
|
|
||||||
"@emotion/weak-memoize": "^0.3.1",
|
|
||||||
"stylis": "4.2.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/hash": {
|
|
||||||
"version": "0.9.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.1.tgz",
|
|
||||||
"integrity": "sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ=="
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/is-prop-valid": {
|
|
||||||
"version": "1.2.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.2.tgz",
|
|
||||||
"integrity": "sha512-uNsoYd37AFmaCdXlg6EYD1KaPOaRWRByMCYzbKUX4+hhMfrxdVSelShywL4JVaAeM/eHUOSprYBQls+/neX3pw==",
|
|
||||||
"dependencies": {
|
|
||||||
"@emotion/memoize": "^0.8.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/memoize": {
|
|
||||||
"version": "0.8.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz",
|
|
||||||
"integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA=="
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/react": {
|
|
||||||
"version": "11.11.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.11.4.tgz",
|
|
||||||
"integrity": "sha512-t8AjMlF0gHpvvxk5mAtCqR4vmxiGHCeJBaQO6gncUSdklELOgtwjerNY2yuJNfwnc6vi16U/+uMF+afIawJ9iw==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "^7.18.3",
|
|
||||||
"@emotion/babel-plugin": "^11.11.0",
|
|
||||||
"@emotion/cache": "^11.11.0",
|
|
||||||
"@emotion/serialize": "^1.1.3",
|
|
||||||
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
|
|
||||||
"@emotion/utils": "^1.2.1",
|
|
||||||
"@emotion/weak-memoize": "^0.3.1",
|
|
||||||
"hoist-non-react-statics": "^3.3.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": ">=16.8.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/serialize": {
|
|
||||||
"version": "1.1.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.1.4.tgz",
|
|
||||||
"integrity": "sha512-RIN04MBT8g+FnDwgvIUi8czvr1LU1alUMI05LekWB5DGyTm8cCBMCRpq3GqaiyEDRptEXOyXnvZ58GZYu4kBxQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"@emotion/hash": "^0.9.1",
|
|
||||||
"@emotion/memoize": "^0.8.1",
|
|
||||||
"@emotion/unitless": "^0.8.1",
|
|
||||||
"@emotion/utils": "^1.2.1",
|
|
||||||
"csstype": "^3.0.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/sheet": {
|
|
||||||
"version": "1.2.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.2.2.tgz",
|
|
||||||
"integrity": "sha512-0QBtGvaqtWi+nx6doRwDdBIzhNdZrXUppvTM4dtZZWEGTXL/XE/yJxLMGlDT1Gt+UHH5IX1n+jkXyytE/av7OA=="
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/styled": {
|
|
||||||
"version": "11.11.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.11.5.tgz",
|
|
||||||
"integrity": "sha512-/ZjjnaNKvuMPxcIiUkf/9SHoG4Q196DRl1w82hQ3WCsjo1IUR8uaGWrC6a87CrYAW0Kb/pK7hk8BnLgLRi9KoQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "^7.18.3",
|
|
||||||
"@emotion/babel-plugin": "^11.11.0",
|
|
||||||
"@emotion/is-prop-valid": "^1.2.2",
|
|
||||||
"@emotion/serialize": "^1.1.4",
|
|
||||||
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
|
|
||||||
"@emotion/utils": "^1.2.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@emotion/react": "^11.0.0-rc.0",
|
|
||||||
"react": ">=16.8.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/unitless": {
|
|
||||||
"version": "0.8.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz",
|
|
||||||
"integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ=="
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/use-insertion-effect-with-fallbacks": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.0.1.tgz",
|
|
||||||
"integrity": "sha512-jT/qyKZ9rzLErtrjGgdkMBn2OP8wl0G3sQlBb3YPryvKHsjvINUhVaPFfP+fpBcOkmrVOVEEHQFJ7nbj2TH2gw==",
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": ">=16.8.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/utils": {
|
|
||||||
"version": "1.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.2.1.tgz",
|
|
||||||
"integrity": "sha512-Y2tGf3I+XVnajdItskUCn6LX+VUDmP6lTL4fcqsXAv43dnlbZiuW4MWQW38rW/BVWSE7Q/7+XQocmpnRYILUmg=="
|
|
||||||
},
|
|
||||||
"node_modules/@emotion/weak-memoize": {
|
|
||||||
"version": "0.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.3.1.tgz",
|
|
||||||
"integrity": "sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww=="
|
|
||||||
},
|
|
||||||
"node_modules/@floating-ui/core": {
|
|
||||||
"version": "1.6.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.0.tgz",
|
|
||||||
"integrity": "sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g==",
|
|
||||||
"dependencies": {
|
|
||||||
"@floating-ui/utils": "^0.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@floating-ui/dom": {
|
|
||||||
"version": "1.6.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.3.tgz",
|
|
||||||
"integrity": "sha512-RnDthu3mzPlQ31Ss/BTwQ1zjzIhr3lk1gZB1OC56h/1vEtaXkESrOqL5fQVMfXpwGtRwX+YsZBdyHtJMQnkArw==",
|
|
||||||
"dependencies": {
|
|
||||||
"@floating-ui/core": "^1.0.0",
|
|
||||||
"@floating-ui/utils": "^0.2.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@floating-ui/react-dom": {
|
|
||||||
"version": "2.0.8",
|
|
||||||
"resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.8.tgz",
|
|
||||||
"integrity": "sha512-HOdqOt3R3OGeTKidaLvJKcgg75S6tibQ3Tif4eyd91QnIJWr0NLvoXFpJA/j8HqkFSL68GDca9AuyWEHlhyClw==",
|
|
||||||
"dependencies": {
|
|
||||||
"@floating-ui/dom": "^1.6.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": ">=16.8.0",
|
|
||||||
"react-dom": ">=16.8.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@floating-ui/utils": {
|
|
||||||
"version": "0.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.1.tgz",
|
|
||||||
"integrity": "sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q=="
|
|
||||||
},
|
|
||||||
"node_modules/@mui/base": {
|
|
||||||
"version": "5.0.0-beta.40",
|
|
||||||
"resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-beta.40.tgz",
|
|
||||||
"integrity": "sha512-I/lGHztkCzvwlXpjD2+SNmvNQvB4227xBXhISPjEaJUXGImOQ9f3D2Yj/T3KasSI/h0MLWy74X0J6clhPmsRbQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "^7.23.9",
|
|
||||||
"@floating-ui/react-dom": "^2.0.8",
|
|
||||||
"@mui/types": "^7.2.14",
|
|
||||||
"@mui/utils": "^5.15.14",
|
|
||||||
"@popperjs/core": "^2.11.8",
|
|
||||||
"clsx": "^2.1.0",
|
|
||||||
"prop-types": "^15.8.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/mui-org"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "^17.0.0 || ^18.0.0",
|
|
||||||
"react": "^17.0.0 || ^18.0.0",
|
|
||||||
"react-dom": "^17.0.0 || ^18.0.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@mui/core-downloads-tracker": {
|
|
||||||
"version": "5.15.15",
|
|
||||||
"resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.15.15.tgz",
|
|
||||||
"integrity": "sha512-aXnw29OWQ6I5A47iuWEI6qSSUfH6G/aCsW9KmW3LiFqr7uXZBK4Ks+z8G+qeIub8k0T5CMqlT2q0L+ZJTMrqpg==",
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/mui-org"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@mui/material": {
|
|
||||||
"version": "5.15.15",
|
|
||||||
"resolved": "https://registry.npmjs.org/@mui/material/-/material-5.15.15.tgz",
|
|
||||||
"integrity": "sha512-3zvWayJ+E1kzoIsvwyEvkTUKVKt1AjchFFns+JtluHCuvxgKcLSRJTADw37k0doaRtVAsyh8bz9Afqzv+KYrIA==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "^7.23.9",
|
|
||||||
"@mui/base": "5.0.0-beta.40",
|
|
||||||
"@mui/core-downloads-tracker": "^5.15.15",
|
|
||||||
"@mui/system": "^5.15.15",
|
|
||||||
"@mui/types": "^7.2.14",
|
|
||||||
"@mui/utils": "^5.15.14",
|
|
||||||
"@types/react-transition-group": "^4.4.10",
|
|
||||||
"clsx": "^2.1.0",
|
|
||||||
"csstype": "^3.1.3",
|
|
||||||
"prop-types": "^15.8.1",
|
|
||||||
"react-is": "^18.2.0",
|
|
||||||
"react-transition-group": "^4.4.5"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/mui-org"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@emotion/react": "^11.5.0",
|
|
||||||
"@emotion/styled": "^11.3.0",
|
|
||||||
"@types/react": "^17.0.0 || ^18.0.0",
|
|
||||||
"react": "^17.0.0 || ^18.0.0",
|
|
||||||
"react-dom": "^17.0.0 || ^18.0.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@emotion/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@emotion/styled": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@mui/private-theming": {
|
|
||||||
"version": "5.15.14",
|
|
||||||
"resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.15.14.tgz",
|
|
||||||
"integrity": "sha512-UH0EiZckOWcxiXLX3Jbb0K7rC8mxTr9L9l6QhOZxYc4r8FHUkefltV9VDGLrzCaWh30SQiJvAEd7djX3XXY6Xw==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "^7.23.9",
|
|
||||||
"@mui/utils": "^5.15.14",
|
|
||||||
"prop-types": "^15.8.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/mui-org"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "^17.0.0 || ^18.0.0",
|
|
||||||
"react": "^17.0.0 || ^18.0.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@mui/styled-engine": {
|
|
||||||
"version": "5.15.14",
|
|
||||||
"resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.15.14.tgz",
|
|
||||||
"integrity": "sha512-RILkuVD8gY6PvjZjqnWhz8fu68dVkqhM5+jYWfB5yhlSQKg+2rHkmEwm75XIeAqI3qwOndK6zELK5H6Zxn4NHw==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "^7.23.9",
|
|
||||||
"@emotion/cache": "^11.11.0",
|
|
||||||
"csstype": "^3.1.3",
|
|
||||||
"prop-types": "^15.8.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/mui-org"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@emotion/react": "^11.4.1",
|
|
||||||
"@emotion/styled": "^11.3.0",
|
|
||||||
"react": "^17.0.0 || ^18.0.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@emotion/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@emotion/styled": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@mui/system": {
|
|
||||||
"version": "5.15.15",
|
|
||||||
"resolved": "https://registry.npmjs.org/@mui/system/-/system-5.15.15.tgz",
|
|
||||||
"integrity": "sha512-aulox6N1dnu5PABsfxVGOZffDVmlxPOVgj56HrUnJE8MCSh8lOvvkd47cebIVQQYAjpwieXQXiDPj5pwM40jTQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "^7.23.9",
|
|
||||||
"@mui/private-theming": "^5.15.14",
|
|
||||||
"@mui/styled-engine": "^5.15.14",
|
|
||||||
"@mui/types": "^7.2.14",
|
|
||||||
"@mui/utils": "^5.15.14",
|
|
||||||
"clsx": "^2.1.0",
|
|
||||||
"csstype": "^3.1.3",
|
|
||||||
"prop-types": "^15.8.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/mui-org"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@emotion/react": "^11.5.0",
|
|
||||||
"@emotion/styled": "^11.3.0",
|
|
||||||
"@types/react": "^17.0.0 || ^18.0.0",
|
|
||||||
"react": "^17.0.0 || ^18.0.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@emotion/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@emotion/styled": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@mui/types": {
|
|
||||||
"version": "7.2.14",
|
|
||||||
"resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.14.tgz",
|
|
||||||
"integrity": "sha512-MZsBZ4q4HfzBsywtXgM1Ksj6HDThtiwmOKUXH1pKYISI9gAVXCNHNpo7TlGoGrBaYWZTdNoirIN7JsQcQUjmQQ==",
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "^17.0.0 || ^18.0.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@mui/utils": {
|
|
||||||
"version": "5.15.14",
|
|
||||||
"resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.15.14.tgz",
|
|
||||||
"integrity": "sha512-0lF/7Hh/ezDv5X7Pry6enMsbYyGKjADzvHyo3Qrc/SSlTsQ1VkbDMbH0m2t3OR5iIVLwMoxwM7yGd+6FCMtTFA==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "^7.23.9",
|
|
||||||
"@types/prop-types": "^15.7.11",
|
|
||||||
"prop-types": "^15.8.1",
|
|
||||||
"react-is": "^18.2.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/mui-org"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "^17.0.0 || ^18.0.0",
|
|
||||||
"react": "^17.0.0 || ^18.0.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@popperjs/core": {
|
|
||||||
"version": "2.11.8",
|
|
||||||
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
|
|
||||||
"integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/popperjs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@types/parse-json": {
|
|
||||||
"version": "4.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz",
|
|
||||||
"integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw=="
|
|
||||||
},
|
|
||||||
"node_modules/@types/prop-types": {
|
|
||||||
"version": "15.7.12",
|
|
||||||
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz",
|
|
||||||
"integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q=="
|
|
||||||
},
|
|
||||||
"node_modules/@types/react": {
|
|
||||||
"version": "18.2.79",
|
|
||||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.79.tgz",
|
|
||||||
"integrity": "sha512-RwGAGXPl9kSXwdNTafkOEuFrTBD5SA2B3iEB96xi8+xu5ddUa/cpvyVCSNn+asgLCTHkb5ZxN8gbuibYJi4s1w==",
|
|
||||||
"dependencies": {
|
|
||||||
"@types/prop-types": "*",
|
|
||||||
"csstype": "^3.0.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@types/react-transition-group": {
|
|
||||||
"version": "4.4.10",
|
|
||||||
"resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.10.tgz",
|
|
||||||
"integrity": "sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q==",
|
|
||||||
"dependencies": {
|
|
||||||
"@types/react": "*"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/ansi-styles": {
|
|
||||||
"version": "3.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
|
|
||||||
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
|
|
||||||
"dependencies": {
|
|
||||||
"color-convert": "^1.9.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/babel-plugin-macros": {
|
|
||||||
"version": "3.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz",
|
|
||||||
"integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "^7.12.5",
|
|
||||||
"cosmiconfig": "^7.0.0",
|
|
||||||
"resolve": "^1.19.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10",
|
|
||||||
"npm": ">=6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/callsites": {
|
|
||||||
"version": "3.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
|
||||||
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/chalk": {
|
|
||||||
"version": "2.4.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
|
|
||||||
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-styles": "^3.2.1",
|
|
||||||
"escape-string-regexp": "^1.0.5",
|
|
||||||
"supports-color": "^5.3.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/chalk/node_modules/escape-string-regexp": {
|
|
||||||
"version": "1.0.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
|
|
||||||
"integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.8.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/clsx": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-m3iNNWpd9rl3jvvcBnu70ylMdrXt8Vlq4HYadnU5fwcOtvkSQWPmj7amUcDT2qYI7risszBjI5AUIUox9D16pg==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/color-convert": {
|
|
||||||
"version": "1.9.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
|
|
||||||
"integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
|
|
||||||
"dependencies": {
|
|
||||||
"color-name": "1.1.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/color-name": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw=="
|
|
||||||
},
|
|
||||||
"node_modules/convert-source-map": {
|
|
||||||
"version": "1.9.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
|
|
||||||
"integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
|
|
||||||
},
|
|
||||||
"node_modules/cosmiconfig": {
|
|
||||||
"version": "7.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",
|
|
||||||
"integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",
|
|
||||||
"dependencies": {
|
|
||||||
"@types/parse-json": "^4.0.0",
|
|
||||||
"import-fresh": "^3.2.1",
|
|
||||||
"parse-json": "^5.0.0",
|
|
||||||
"path-type": "^4.0.0",
|
|
||||||
"yaml": "^1.10.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/csstype": {
|
|
||||||
"version": "3.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
|
|
||||||
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
|
|
||||||
},
|
|
||||||
"node_modules/dom-helpers": {
|
|
||||||
"version": "5.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz",
|
|
||||||
"integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "^7.8.7",
|
|
||||||
"csstype": "^3.0.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/error-ex": {
|
|
||||||
"version": "1.3.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
|
|
||||||
"integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
|
|
||||||
"dependencies": {
|
|
||||||
"is-arrayish": "^0.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/escape-string-regexp": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/find-root": {
|
|
||||||
"version": "1.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",
|
|
||||||
"integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng=="
|
|
||||||
},
|
|
||||||
"node_modules/function-bind": {
|
|
||||||
"version": "1.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
|
||||||
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/has-flag": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/hasown": {
|
|
||||||
"version": "2.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
|
||||||
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"function-bind": "^1.1.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 0.4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/hoist-non-react-statics": {
|
|
||||||
"version": "3.3.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
|
|
||||||
"integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",
|
|
||||||
"dependencies": {
|
|
||||||
"react-is": "^16.7.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/hoist-non-react-statics/node_modules/react-is": {
|
|
||||||
"version": "16.13.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
|
|
||||||
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
|
|
||||||
},
|
|
||||||
"node_modules/import-fresh": {
|
|
||||||
"version": "3.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
|
|
||||||
"integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
|
|
||||||
"dependencies": {
|
|
||||||
"parent-module": "^1.0.0",
|
|
||||||
"resolve-from": "^4.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/is-arrayish": {
|
|
||||||
"version": "0.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
|
|
||||||
"integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg=="
|
|
||||||
},
|
|
||||||
"node_modules/is-core-module": {
|
|
||||||
"version": "2.13.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz",
|
|
||||||
"integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==",
|
|
||||||
"dependencies": {
|
|
||||||
"hasown": "^2.0.0"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/js-tokens": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
|
|
||||||
},
|
|
||||||
"node_modules/json-parse-even-better-errors": {
|
|
||||||
"version": "2.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
|
|
||||||
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w=="
|
|
||||||
},
|
|
||||||
"node_modules/lines-and-columns": {
|
|
||||||
"version": "1.2.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
|
|
||||||
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="
|
|
||||||
},
|
|
||||||
"node_modules/loose-envify": {
|
|
||||||
"version": "1.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
|
||||||
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
|
|
||||||
"dependencies": {
|
|
||||||
"js-tokens": "^3.0.0 || ^4.0.0"
|
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"loose-envify": "cli.js"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/object-assign": {
|
|
||||||
"version": "4.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
|
||||||
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/parent-module": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
|
|
||||||
"integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
|
|
||||||
"dependencies": {
|
|
||||||
"callsites": "^3.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/parse-json": {
|
|
||||||
"version": "5.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
|
|
||||||
"integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/code-frame": "^7.0.0",
|
|
||||||
"error-ex": "^1.3.1",
|
|
||||||
"json-parse-even-better-errors": "^2.3.0",
|
|
||||||
"lines-and-columns": "^1.1.6"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/path-parse": {
|
|
||||||
"version": "1.0.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
|
|
||||||
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="
|
|
||||||
},
|
|
||||||
"node_modules/path-type": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/picocolors": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="
|
|
||||||
},
|
|
||||||
"node_modules/prop-types": {
|
|
||||||
"version": "15.8.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
|
|
||||||
"integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
|
|
||||||
"dependencies": {
|
|
||||||
"loose-envify": "^1.4.0",
|
|
||||||
"object-assign": "^4.1.1",
|
|
||||||
"react-is": "^16.13.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/prop-types/node_modules/react-is": {
|
|
||||||
"version": "16.13.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
|
|
||||||
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
|
|
||||||
},
|
|
||||||
"node_modules/react": {
|
|
||||||
"version": "18.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
|
|
||||||
"integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
|
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
|
||||||
"loose-envify": "^1.1.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/react-dom": {
|
|
||||||
"version": "18.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
|
||||||
"integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
|
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
|
||||||
"loose-envify": "^1.1.0",
|
|
||||||
"scheduler": "^0.23.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": "^18.2.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/react-is": {
|
|
||||||
"version": "18.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz",
|
|
||||||
"integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w=="
|
|
||||||
},
|
|
||||||
"node_modules/react-transition-group": {
|
|
||||||
"version": "4.4.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",
|
|
||||||
"integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/runtime": "^7.5.5",
|
|
||||||
"dom-helpers": "^5.0.1",
|
|
||||||
"loose-envify": "^1.4.0",
|
|
||||||
"prop-types": "^15.6.2"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": ">=16.6.0",
|
|
||||||
"react-dom": ">=16.6.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/regenerator-runtime": {
|
|
||||||
"version": "0.14.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
|
|
||||||
"integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
|
|
||||||
},
|
|
||||||
"node_modules/resolve": {
|
|
||||||
"version": "1.22.8",
|
|
||||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz",
|
|
||||||
"integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==",
|
|
||||||
"dependencies": {
|
|
||||||
"is-core-module": "^2.13.0",
|
|
||||||
"path-parse": "^1.0.7",
|
|
||||||
"supports-preserve-symlinks-flag": "^1.0.0"
|
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"resolve": "bin/resolve"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/resolve-from": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/scheduler": {
|
|
||||||
"version": "0.23.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
|
|
||||||
"integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
|
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
|
||||||
"loose-envify": "^1.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/source-map": {
|
|
||||||
"version": "0.5.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
|
|
||||||
"integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/stylis": {
|
|
||||||
"version": "4.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz",
|
|
||||||
"integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw=="
|
|
||||||
},
|
|
||||||
"node_modules/supports-color": {
|
|
||||||
"version": "5.5.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
|
||||||
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
|
|
||||||
"dependencies": {
|
|
||||||
"has-flag": "^3.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/supports-preserve-symlinks-flag": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 0.4"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/to-fast-properties": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/yaml": {
|
|
||||||
"version": "1.10.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
|
|
||||||
"integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 6"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
@ -1,19 +0,0 @@
|
||||||
# @babel/code-frame
|
|
||||||
|
|
||||||
> Generate errors that contain a code frame that point to source locations.
|
|
||||||
|
|
||||||
See our website [@babel/code-frame](https://babeljs.io/docs/babel-code-frame) for more information.
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install --save-dev @babel/code-frame
|
|
||||||
```
|
|
||||||
|
|
||||||
or using yarn:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
yarn add @babel/code-frame --dev
|
|
||||||
```
|
|
|
@ -1,156 +0,0 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.codeFrameColumns = codeFrameColumns;
|
|
||||||
exports.default = _default;
|
|
||||||
var _highlight = require("@babel/highlight");
|
|
||||||
var _picocolors = _interopRequireWildcard(require("picocolors"), true);
|
|
||||||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
||||||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
||||||
const colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
|
|
||||||
const compose = (f, g) => v => f(g(v));
|
|
||||||
let pcWithForcedColor = undefined;
|
|
||||||
function getColors(forceColor) {
|
|
||||||
if (forceColor) {
|
|
||||||
var _pcWithForcedColor;
|
|
||||||
(_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true);
|
|
||||||
return pcWithForcedColor;
|
|
||||||
}
|
|
||||||
return colors;
|
|
||||||
}
|
|
||||||
let deprecationWarningShown = false;
|
|
||||||
function getDefs(colors) {
|
|
||||||
return {
|
|
||||||
gutter: colors.gray,
|
|
||||||
marker: compose(colors.red, colors.bold),
|
|
||||||
message: compose(colors.red, colors.bold)
|
|
||||||
};
|
|
||||||
}
|
|
||||||
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
||||||
function getMarkerLines(loc, source, opts) {
|
|
||||||
const startLoc = Object.assign({
|
|
||||||
column: 0,
|
|
||||||
line: -1
|
|
||||||
}, loc.start);
|
|
||||||
const endLoc = Object.assign({}, startLoc, loc.end);
|
|
||||||
const {
|
|
||||||
linesAbove = 2,
|
|
||||||
linesBelow = 3
|
|
||||||
} = opts || {};
|
|
||||||
const startLine = startLoc.line;
|
|
||||||
const startColumn = startLoc.column;
|
|
||||||
const endLine = endLoc.line;
|
|
||||||
const endColumn = endLoc.column;
|
|
||||||
let start = Math.max(startLine - (linesAbove + 1), 0);
|
|
||||||
let end = Math.min(source.length, endLine + linesBelow);
|
|
||||||
if (startLine === -1) {
|
|
||||||
start = 0;
|
|
||||||
}
|
|
||||||
if (endLine === -1) {
|
|
||||||
end = source.length;
|
|
||||||
}
|
|
||||||
const lineDiff = endLine - startLine;
|
|
||||||
const markerLines = {};
|
|
||||||
if (lineDiff) {
|
|
||||||
for (let i = 0; i <= lineDiff; i++) {
|
|
||||||
const lineNumber = i + startLine;
|
|
||||||
if (!startColumn) {
|
|
||||||
markerLines[lineNumber] = true;
|
|
||||||
} else if (i === 0) {
|
|
||||||
const sourceLength = source[lineNumber - 1].length;
|
|
||||||
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
|
|
||||||
} else if (i === lineDiff) {
|
|
||||||
markerLines[lineNumber] = [0, endColumn];
|
|
||||||
} else {
|
|
||||||
const sourceLength = source[lineNumber - i].length;
|
|
||||||
markerLines[lineNumber] = [0, sourceLength];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (startColumn === endColumn) {
|
|
||||||
if (startColumn) {
|
|
||||||
markerLines[startLine] = [startColumn, 0];
|
|
||||||
} else {
|
|
||||||
markerLines[startLine] = true;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
markerLines[startLine] = [startColumn, endColumn - startColumn];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
start,
|
|
||||||
end,
|
|
||||||
markerLines
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
||||||
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
||||||
const colors = getColors(opts.forceColor);
|
|
||||||
const defs = getDefs(colors);
|
|
||||||
const maybeHighlight = (fmt, string) => {
|
|
||||||
return highlighted ? fmt(string) : string;
|
|
||||||
};
|
|
||||||
const lines = rawLines.split(NEWLINE);
|
|
||||||
const {
|
|
||||||
start,
|
|
||||||
end,
|
|
||||||
markerLines
|
|
||||||
} = getMarkerLines(loc, lines, opts);
|
|
||||||
const hasColumns = loc.start && typeof loc.start.column === "number";
|
|
||||||
const numberMaxWidth = String(end).length;
|
|
||||||
const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines;
|
|
||||||
let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => {
|
|
||||||
const number = start + 1 + index;
|
|
||||||
const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
|
|
||||||
const gutter = ` ${paddedNumber} |`;
|
|
||||||
const hasMarker = markerLines[number];
|
|
||||||
const lastMarkerLine = !markerLines[number + 1];
|
|
||||||
if (hasMarker) {
|
|
||||||
let markerLine = "";
|
|
||||||
if (Array.isArray(hasMarker)) {
|
|
||||||
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
|
||||||
const numberOfMarkers = hasMarker[1] || 1;
|
|
||||||
markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), " ", markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join("");
|
|
||||||
if (lastMarkerLine && opts.message) {
|
|
||||||
markerLine += " " + maybeHighlight(defs.message, opts.message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line.length > 0 ? ` ${line}` : "", markerLine].join("");
|
|
||||||
} else {
|
|
||||||
return ` ${maybeHighlight(defs.gutter, gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
|
||||||
}
|
|
||||||
}).join("\n");
|
|
||||||
if (opts.message && !hasColumns) {
|
|
||||||
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
|
||||||
}
|
|
||||||
if (highlighted) {
|
|
||||||
return colors.reset(frame);
|
|
||||||
} else {
|
|
||||||
return frame;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function _default(rawLines, lineNumber, colNumber, opts = {}) {
|
|
||||||
if (!deprecationWarningShown) {
|
|
||||||
deprecationWarningShown = true;
|
|
||||||
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
|
||||||
if (process.emitWarning) {
|
|
||||||
process.emitWarning(message, "DeprecationWarning");
|
|
||||||
} else {
|
|
||||||
const deprecationError = new Error(message);
|
|
||||||
deprecationError.name = "DeprecationWarning";
|
|
||||||
console.warn(new Error(message));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
colNumber = Math.max(colNumber, 0);
|
|
||||||
const location = {
|
|
||||||
start: {
|
|
||||||
column: colNumber,
|
|
||||||
line: lineNumber
|
|
||||||
}
|
|
||||||
};
|
|
||||||
return codeFrameColumns(rawLines, location, opts);
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=index.js.map
|
|
File diff suppressed because one or more lines are too long
|
@ -1,30 +0,0 @@
|
||||||
{
|
|
||||||
"name": "@babel/code-frame",
|
|
||||||
"version": "7.24.2",
|
|
||||||
"description": "Generate errors that contain a code frame that point to source locations.",
|
|
||||||
"author": "The Babel Team (https://babel.dev/team)",
|
|
||||||
"homepage": "https://babel.dev/docs/en/next/babel-code-frame",
|
|
||||||
"bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen",
|
|
||||||
"license": "MIT",
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/babel/babel.git",
|
|
||||||
"directory": "packages/babel-code-frame"
|
|
||||||
},
|
|
||||||
"main": "./lib/index.js",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/highlight": "^7.24.2",
|
|
||||||
"picocolors": "^1.0.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"import-meta-resolve": "^4.0.0",
|
|
||||||
"strip-ansi": "^4.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
},
|
|
||||||
"type": "commonjs"
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
@ -1,19 +0,0 @@
|
||||||
# @babel/helper-module-imports
|
|
||||||
|
|
||||||
> Babel helper functions for inserting module loads
|
|
||||||
|
|
||||||
See our website [@babel/helper-module-imports](https://babeljs.io/docs/babel-helper-module-imports) for more information.
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install --save @babel/helper-module-imports
|
|
||||||
```
|
|
||||||
|
|
||||||
or using yarn:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
yarn add @babel/helper-module-imports
|
|
||||||
```
|
|
|
@ -1,122 +0,0 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.default = void 0;
|
|
||||||
var _assert = require("assert");
|
|
||||||
var _t = require("@babel/types");
|
|
||||||
const {
|
|
||||||
callExpression,
|
|
||||||
cloneNode,
|
|
||||||
expressionStatement,
|
|
||||||
identifier,
|
|
||||||
importDeclaration,
|
|
||||||
importDefaultSpecifier,
|
|
||||||
importNamespaceSpecifier,
|
|
||||||
importSpecifier,
|
|
||||||
memberExpression,
|
|
||||||
stringLiteral,
|
|
||||||
variableDeclaration,
|
|
||||||
variableDeclarator
|
|
||||||
} = _t;
|
|
||||||
class ImportBuilder {
|
|
||||||
constructor(importedSource, scope, hub) {
|
|
||||||
this._statements = [];
|
|
||||||
this._resultName = null;
|
|
||||||
this._importedSource = void 0;
|
|
||||||
this._scope = scope;
|
|
||||||
this._hub = hub;
|
|
||||||
this._importedSource = importedSource;
|
|
||||||
}
|
|
||||||
done() {
|
|
||||||
return {
|
|
||||||
statements: this._statements,
|
|
||||||
resultName: this._resultName
|
|
||||||
};
|
|
||||||
}
|
|
||||||
import() {
|
|
||||||
this._statements.push(importDeclaration([], stringLiteral(this._importedSource)));
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
require() {
|
|
||||||
this._statements.push(expressionStatement(callExpression(identifier("require"), [stringLiteral(this._importedSource)])));
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
namespace(name = "namespace") {
|
|
||||||
const local = this._scope.generateUidIdentifier(name);
|
|
||||||
const statement = this._statements[this._statements.length - 1];
|
|
||||||
_assert(statement.type === "ImportDeclaration");
|
|
||||||
_assert(statement.specifiers.length === 0);
|
|
||||||
statement.specifiers = [importNamespaceSpecifier(local)];
|
|
||||||
this._resultName = cloneNode(local);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
default(name) {
|
|
||||||
const id = this._scope.generateUidIdentifier(name);
|
|
||||||
const statement = this._statements[this._statements.length - 1];
|
|
||||||
_assert(statement.type === "ImportDeclaration");
|
|
||||||
_assert(statement.specifiers.length === 0);
|
|
||||||
statement.specifiers = [importDefaultSpecifier(id)];
|
|
||||||
this._resultName = cloneNode(id);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
named(name, importName) {
|
|
||||||
if (importName === "default") return this.default(name);
|
|
||||||
const id = this._scope.generateUidIdentifier(name);
|
|
||||||
const statement = this._statements[this._statements.length - 1];
|
|
||||||
_assert(statement.type === "ImportDeclaration");
|
|
||||||
_assert(statement.specifiers.length === 0);
|
|
||||||
statement.specifiers = [importSpecifier(id, identifier(importName))];
|
|
||||||
this._resultName = cloneNode(id);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
var(name) {
|
|
||||||
const id = this._scope.generateUidIdentifier(name);
|
|
||||||
let statement = this._statements[this._statements.length - 1];
|
|
||||||
if (statement.type !== "ExpressionStatement") {
|
|
||||||
_assert(this._resultName);
|
|
||||||
statement = expressionStatement(this._resultName);
|
|
||||||
this._statements.push(statement);
|
|
||||||
}
|
|
||||||
this._statements[this._statements.length - 1] = variableDeclaration("var", [variableDeclarator(id, statement.expression)]);
|
|
||||||
this._resultName = cloneNode(id);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
defaultInterop() {
|
|
||||||
return this._interop(this._hub.addHelper("interopRequireDefault"));
|
|
||||||
}
|
|
||||||
wildcardInterop() {
|
|
||||||
return this._interop(this._hub.addHelper("interopRequireWildcard"));
|
|
||||||
}
|
|
||||||
_interop(callee) {
|
|
||||||
const statement = this._statements[this._statements.length - 1];
|
|
||||||
if (statement.type === "ExpressionStatement") {
|
|
||||||
statement.expression = callExpression(callee, [statement.expression]);
|
|
||||||
} else if (statement.type === "VariableDeclaration") {
|
|
||||||
_assert(statement.declarations.length === 1);
|
|
||||||
statement.declarations[0].init = callExpression(callee, [statement.declarations[0].init]);
|
|
||||||
} else {
|
|
||||||
_assert.fail("Unexpected type.");
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
prop(name) {
|
|
||||||
const statement = this._statements[this._statements.length - 1];
|
|
||||||
if (statement.type === "ExpressionStatement") {
|
|
||||||
statement.expression = memberExpression(statement.expression, identifier(name));
|
|
||||||
} else if (statement.type === "VariableDeclaration") {
|
|
||||||
_assert(statement.declarations.length === 1);
|
|
||||||
statement.declarations[0].init = memberExpression(statement.declarations[0].init, identifier(name));
|
|
||||||
} else {
|
|
||||||
_assert.fail("Unexpected type:" + statement.type);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
read(name) {
|
|
||||||
this._resultName = memberExpression(this._resultName, identifier(name));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
exports.default = ImportBuilder;
|
|
||||||
|
|
||||||
//# sourceMappingURL=import-builder.js.map
|
|
File diff suppressed because one or more lines are too long
|
@ -1,304 +0,0 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.default = void 0;
|
|
||||||
var _assert = require("assert");
|
|
||||||
var _t = require("@babel/types");
|
|
||||||
var _importBuilder = require("./import-builder.js");
|
|
||||||
var _isModule = require("./is-module.js");
|
|
||||||
const {
|
|
||||||
identifier,
|
|
||||||
importSpecifier,
|
|
||||||
numericLiteral,
|
|
||||||
sequenceExpression,
|
|
||||||
isImportDeclaration
|
|
||||||
} = _t;
|
|
||||||
class ImportInjector {
|
|
||||||
constructor(path, importedSource, opts) {
|
|
||||||
this._defaultOpts = {
|
|
||||||
importedSource: null,
|
|
||||||
importedType: "commonjs",
|
|
||||||
importedInterop: "babel",
|
|
||||||
importingInterop: "babel",
|
|
||||||
ensureLiveReference: false,
|
|
||||||
ensureNoContext: false,
|
|
||||||
importPosition: "before"
|
|
||||||
};
|
|
||||||
const programPath = path.find(p => p.isProgram());
|
|
||||||
this._programPath = programPath;
|
|
||||||
this._programScope = programPath.scope;
|
|
||||||
this._hub = programPath.hub;
|
|
||||||
this._defaultOpts = this._applyDefaults(importedSource, opts, true);
|
|
||||||
}
|
|
||||||
addDefault(importedSourceIn, opts) {
|
|
||||||
return this.addNamed("default", importedSourceIn, opts);
|
|
||||||
}
|
|
||||||
addNamed(importName, importedSourceIn, opts) {
|
|
||||||
_assert(typeof importName === "string");
|
|
||||||
return this._generateImport(this._applyDefaults(importedSourceIn, opts), importName);
|
|
||||||
}
|
|
||||||
addNamespace(importedSourceIn, opts) {
|
|
||||||
return this._generateImport(this._applyDefaults(importedSourceIn, opts), null);
|
|
||||||
}
|
|
||||||
addSideEffect(importedSourceIn, opts) {
|
|
||||||
return this._generateImport(this._applyDefaults(importedSourceIn, opts), void 0);
|
|
||||||
}
|
|
||||||
_applyDefaults(importedSource, opts, isInit = false) {
|
|
||||||
let newOpts;
|
|
||||||
if (typeof importedSource === "string") {
|
|
||||||
newOpts = Object.assign({}, this._defaultOpts, {
|
|
||||||
importedSource
|
|
||||||
}, opts);
|
|
||||||
} else {
|
|
||||||
_assert(!opts, "Unexpected secondary arguments.");
|
|
||||||
newOpts = Object.assign({}, this._defaultOpts, importedSource);
|
|
||||||
}
|
|
||||||
if (!isInit && opts) {
|
|
||||||
if (opts.nameHint !== undefined) newOpts.nameHint = opts.nameHint;
|
|
||||||
if (opts.blockHoist !== undefined) newOpts.blockHoist = opts.blockHoist;
|
|
||||||
}
|
|
||||||
return newOpts;
|
|
||||||
}
|
|
||||||
_generateImport(opts, importName) {
|
|
||||||
const isDefault = importName === "default";
|
|
||||||
const isNamed = !!importName && !isDefault;
|
|
||||||
const isNamespace = importName === null;
|
|
||||||
const {
|
|
||||||
importedSource,
|
|
||||||
importedType,
|
|
||||||
importedInterop,
|
|
||||||
importingInterop,
|
|
||||||
ensureLiveReference,
|
|
||||||
ensureNoContext,
|
|
||||||
nameHint,
|
|
||||||
importPosition,
|
|
||||||
blockHoist
|
|
||||||
} = opts;
|
|
||||||
let name = nameHint || importName;
|
|
||||||
const isMod = (0, _isModule.default)(this._programPath);
|
|
||||||
const isModuleForNode = isMod && importingInterop === "node";
|
|
||||||
const isModuleForBabel = isMod && importingInterop === "babel";
|
|
||||||
if (importPosition === "after" && !isMod) {
|
|
||||||
throw new Error(`"importPosition": "after" is only supported in modules`);
|
|
||||||
}
|
|
||||||
const builder = new _importBuilder.default(importedSource, this._programScope, this._hub);
|
|
||||||
if (importedType === "es6") {
|
|
||||||
if (!isModuleForNode && !isModuleForBabel) {
|
|
||||||
throw new Error("Cannot import an ES6 module from CommonJS");
|
|
||||||
}
|
|
||||||
builder.import();
|
|
||||||
if (isNamespace) {
|
|
||||||
builder.namespace(nameHint || importedSource);
|
|
||||||
} else if (isDefault || isNamed) {
|
|
||||||
builder.named(name, importName);
|
|
||||||
}
|
|
||||||
} else if (importedType !== "commonjs") {
|
|
||||||
throw new Error(`Unexpected interopType "${importedType}"`);
|
|
||||||
} else if (importedInterop === "babel") {
|
|
||||||
if (isModuleForNode) {
|
|
||||||
name = name !== "default" ? name : importedSource;
|
|
||||||
const es6Default = `${importedSource}$es6Default`;
|
|
||||||
builder.import();
|
|
||||||
if (isNamespace) {
|
|
||||||
builder.default(es6Default).var(name || importedSource).wildcardInterop();
|
|
||||||
} else if (isDefault) {
|
|
||||||
if (ensureLiveReference) {
|
|
||||||
builder.default(es6Default).var(name || importedSource).defaultInterop().read("default");
|
|
||||||
} else {
|
|
||||||
builder.default(es6Default).var(name).defaultInterop().prop(importName);
|
|
||||||
}
|
|
||||||
} else if (isNamed) {
|
|
||||||
builder.default(es6Default).read(importName);
|
|
||||||
}
|
|
||||||
} else if (isModuleForBabel) {
|
|
||||||
builder.import();
|
|
||||||
if (isNamespace) {
|
|
||||||
builder.namespace(name || importedSource);
|
|
||||||
} else if (isDefault || isNamed) {
|
|
||||||
builder.named(name, importName);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
builder.require();
|
|
||||||
if (isNamespace) {
|
|
||||||
builder.var(name || importedSource).wildcardInterop();
|
|
||||||
} else if ((isDefault || isNamed) && ensureLiveReference) {
|
|
||||||
if (isDefault) {
|
|
||||||
name = name !== "default" ? name : importedSource;
|
|
||||||
builder.var(name).read(importName);
|
|
||||||
builder.defaultInterop();
|
|
||||||
} else {
|
|
||||||
builder.var(importedSource).read(importName);
|
|
||||||
}
|
|
||||||
} else if (isDefault) {
|
|
||||||
builder.var(name).defaultInterop().prop(importName);
|
|
||||||
} else if (isNamed) {
|
|
||||||
builder.var(name).prop(importName);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (importedInterop === "compiled") {
|
|
||||||
if (isModuleForNode) {
|
|
||||||
builder.import();
|
|
||||||
if (isNamespace) {
|
|
||||||
builder.default(name || importedSource);
|
|
||||||
} else if (isDefault || isNamed) {
|
|
||||||
builder.default(importedSource).read(name);
|
|
||||||
}
|
|
||||||
} else if (isModuleForBabel) {
|
|
||||||
builder.import();
|
|
||||||
if (isNamespace) {
|
|
||||||
builder.namespace(name || importedSource);
|
|
||||||
} else if (isDefault || isNamed) {
|
|
||||||
builder.named(name, importName);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
builder.require();
|
|
||||||
if (isNamespace) {
|
|
||||||
builder.var(name || importedSource);
|
|
||||||
} else if (isDefault || isNamed) {
|
|
||||||
if (ensureLiveReference) {
|
|
||||||
builder.var(importedSource).read(name);
|
|
||||||
} else {
|
|
||||||
builder.prop(importName).var(name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (importedInterop === "uncompiled") {
|
|
||||||
if (isDefault && ensureLiveReference) {
|
|
||||||
throw new Error("No live reference for commonjs default");
|
|
||||||
}
|
|
||||||
if (isModuleForNode) {
|
|
||||||
builder.import();
|
|
||||||
if (isNamespace) {
|
|
||||||
builder.default(name || importedSource);
|
|
||||||
} else if (isDefault) {
|
|
||||||
builder.default(name);
|
|
||||||
} else if (isNamed) {
|
|
||||||
builder.default(importedSource).read(name);
|
|
||||||
}
|
|
||||||
} else if (isModuleForBabel) {
|
|
||||||
builder.import();
|
|
||||||
if (isNamespace) {
|
|
||||||
builder.default(name || importedSource);
|
|
||||||
} else if (isDefault) {
|
|
||||||
builder.default(name);
|
|
||||||
} else if (isNamed) {
|
|
||||||
builder.named(name, importName);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
builder.require();
|
|
||||||
if (isNamespace) {
|
|
||||||
builder.var(name || importedSource);
|
|
||||||
} else if (isDefault) {
|
|
||||||
builder.var(name);
|
|
||||||
} else if (isNamed) {
|
|
||||||
if (ensureLiveReference) {
|
|
||||||
builder.var(importedSource).read(name);
|
|
||||||
} else {
|
|
||||||
builder.var(name).prop(importName);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
throw new Error(`Unknown importedInterop "${importedInterop}".`);
|
|
||||||
}
|
|
||||||
const {
|
|
||||||
statements,
|
|
||||||
resultName
|
|
||||||
} = builder.done();
|
|
||||||
this._insertStatements(statements, importPosition, blockHoist);
|
|
||||||
if ((isDefault || isNamed) && ensureNoContext && resultName.type !== "Identifier") {
|
|
||||||
return sequenceExpression([numericLiteral(0), resultName]);
|
|
||||||
}
|
|
||||||
return resultName;
|
|
||||||
}
|
|
||||||
_insertStatements(statements, importPosition = "before", blockHoist = 3) {
|
|
||||||
if (importPosition === "after") {
|
|
||||||
if (this._insertStatementsAfter(statements)) return;
|
|
||||||
} else {
|
|
||||||
if (this._insertStatementsBefore(statements, blockHoist)) return;
|
|
||||||
}
|
|
||||||
this._programPath.unshiftContainer("body", statements);
|
|
||||||
}
|
|
||||||
_insertStatementsBefore(statements, blockHoist) {
|
|
||||||
if (statements.length === 1 && isImportDeclaration(statements[0]) && isValueImport(statements[0])) {
|
|
||||||
const firstImportDecl = this._programPath.get("body").find(p => {
|
|
||||||
return p.isImportDeclaration() && isValueImport(p.node);
|
|
||||||
});
|
|
||||||
if ((firstImportDecl == null ? void 0 : firstImportDecl.node.source.value) === statements[0].source.value && maybeAppendImportSpecifiers(firstImportDecl.node, statements[0])) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
statements.forEach(node => {
|
|
||||||
node._blockHoist = blockHoist;
|
|
||||||
});
|
|
||||||
const targetPath = this._programPath.get("body").find(p => {
|
|
||||||
const val = p.node._blockHoist;
|
|
||||||
return Number.isFinite(val) && val < 4;
|
|
||||||
});
|
|
||||||
if (targetPath) {
|
|
||||||
targetPath.insertBefore(statements);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
_insertStatementsAfter(statements) {
|
|
||||||
const statementsSet = new Set(statements);
|
|
||||||
const importDeclarations = new Map();
|
|
||||||
for (const statement of statements) {
|
|
||||||
if (isImportDeclaration(statement) && isValueImport(statement)) {
|
|
||||||
const source = statement.source.value;
|
|
||||||
if (!importDeclarations.has(source)) importDeclarations.set(source, []);
|
|
||||||
importDeclarations.get(source).push(statement);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let lastImportPath = null;
|
|
||||||
for (const bodyStmt of this._programPath.get("body")) {
|
|
||||||
if (bodyStmt.isImportDeclaration() && isValueImport(bodyStmt.node)) {
|
|
||||||
lastImportPath = bodyStmt;
|
|
||||||
const source = bodyStmt.node.source.value;
|
|
||||||
const newImports = importDeclarations.get(source);
|
|
||||||
if (!newImports) continue;
|
|
||||||
for (const decl of newImports) {
|
|
||||||
if (!statementsSet.has(decl)) continue;
|
|
||||||
if (maybeAppendImportSpecifiers(bodyStmt.node, decl)) {
|
|
||||||
statementsSet.delete(decl);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (statementsSet.size === 0) return true;
|
|
||||||
if (lastImportPath) lastImportPath.insertAfter(Array.from(statementsSet));
|
|
||||||
return !!lastImportPath;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
exports.default = ImportInjector;
|
|
||||||
function isValueImport(node) {
|
|
||||||
return node.importKind !== "type" && node.importKind !== "typeof";
|
|
||||||
}
|
|
||||||
function hasNamespaceImport(node) {
|
|
||||||
return node.specifiers.length === 1 && node.specifiers[0].type === "ImportNamespaceSpecifier" || node.specifiers.length === 2 && node.specifiers[1].type === "ImportNamespaceSpecifier";
|
|
||||||
}
|
|
||||||
function hasDefaultImport(node) {
|
|
||||||
return node.specifiers.length > 0 && node.specifiers[0].type === "ImportDefaultSpecifier";
|
|
||||||
}
|
|
||||||
function maybeAppendImportSpecifiers(target, source) {
|
|
||||||
if (!target.specifiers.length) {
|
|
||||||
target.specifiers = source.specifiers;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (!source.specifiers.length) return true;
|
|
||||||
if (hasNamespaceImport(target) || hasNamespaceImport(source)) return false;
|
|
||||||
if (hasDefaultImport(source)) {
|
|
||||||
if (hasDefaultImport(target)) {
|
|
||||||
source.specifiers[0] = importSpecifier(source.specifiers[0].local, identifier("default"));
|
|
||||||
} else {
|
|
||||||
target.specifiers.unshift(source.specifiers.shift());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
target.specifiers.push(...source.specifiers);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=import-injector.js.map
|
|
File diff suppressed because one or more lines are too long
|
@ -1,37 +0,0 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
Object.defineProperty(exports, "ImportInjector", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _importInjector.default;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
exports.addDefault = addDefault;
|
|
||||||
exports.addNamed = addNamed;
|
|
||||||
exports.addNamespace = addNamespace;
|
|
||||||
exports.addSideEffect = addSideEffect;
|
|
||||||
Object.defineProperty(exports, "isModule", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _isModule.default;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
var _importInjector = require("./import-injector.js");
|
|
||||||
var _isModule = require("./is-module.js");
|
|
||||||
function addDefault(path, importedSource, opts) {
|
|
||||||
return new _importInjector.default(path).addDefault(importedSource, opts);
|
|
||||||
}
|
|
||||||
function addNamed(path, name, importedSource, opts) {
|
|
||||||
return new _importInjector.default(path).addNamed(name, importedSource, opts);
|
|
||||||
}
|
|
||||||
function addNamespace(path, importedSource, opts) {
|
|
||||||
return new _importInjector.default(path).addNamespace(importedSource, opts);
|
|
||||||
}
|
|
||||||
function addSideEffect(path, importedSource, opts) {
|
|
||||||
return new _importInjector.default(path).addSideEffect(importedSource, opts);
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=index.js.map
|
|
|
@ -1 +0,0 @@
|
||||||
{"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":[]}
|
|
|
@ -1,11 +0,0 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.default = isModule;
|
|
||||||
function isModule(path) {
|
|
||||||
return path.node.sourceType === "module";
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=is-module.js.map
|
|
|
@ -1 +0,0 @@
|
||||||
{"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":[]}
|
|
|
@ -1,28 +0,0 @@
|
||||||
{
|
|
||||||
"name": "@babel/helper-module-imports",
|
|
||||||
"version": "7.24.3",
|
|
||||||
"description": "Babel helper functions for inserting module loads",
|
|
||||||
"author": "The Babel Team (https://babel.dev/team)",
|
|
||||||
"homepage": "https://babel.dev/docs/en/next/babel-helper-module-imports",
|
|
||||||
"license": "MIT",
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/babel/babel.git",
|
|
||||||
"directory": "packages/babel-helper-module-imports"
|
|
||||||
},
|
|
||||||
"main": "./lib/index.js",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/types": "^7.24.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@babel/core": "^7.24.3",
|
|
||||||
"@babel/traverse": "^7.24.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
},
|
|
||||||
"type": "commonjs"
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
@ -1,19 +0,0 @@
|
||||||
# @babel/helper-string-parser
|
|
||||||
|
|
||||||
> A utility package to parse strings
|
|
||||||
|
|
||||||
See our website [@babel/helper-string-parser](https://babeljs.io/docs/babel-helper-string-parser) for more information.
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install --save @babel/helper-string-parser
|
|
||||||
```
|
|
||||||
|
|
||||||
or using yarn:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
yarn add @babel/helper-string-parser
|
|
||||||
```
|
|
|
@ -1,295 +0,0 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.readCodePoint = readCodePoint;
|
|
||||||
exports.readInt = readInt;
|
|
||||||
exports.readStringContents = readStringContents;
|
|
||||||
var _isDigit = function isDigit(code) {
|
|
||||||
return code >= 48 && code <= 57;
|
|
||||||
};
|
|
||||||
const forbiddenNumericSeparatorSiblings = {
|
|
||||||
decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
|
|
||||||
hex: new Set([46, 88, 95, 120])
|
|
||||||
};
|
|
||||||
const isAllowedNumericSeparatorSibling = {
|
|
||||||
bin: ch => ch === 48 || ch === 49,
|
|
||||||
oct: ch => ch >= 48 && ch <= 55,
|
|
||||||
dec: ch => ch >= 48 && ch <= 57,
|
|
||||||
hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
|
|
||||||
};
|
|
||||||
function readStringContents(type, input, pos, lineStart, curLine, errors) {
|
|
||||||
const initialPos = pos;
|
|
||||||
const initialLineStart = lineStart;
|
|
||||||
const initialCurLine = curLine;
|
|
||||||
let out = "";
|
|
||||||
let firstInvalidLoc = null;
|
|
||||||
let chunkStart = pos;
|
|
||||||
const {
|
|
||||||
length
|
|
||||||
} = input;
|
|
||||||
for (;;) {
|
|
||||||
if (pos >= length) {
|
|
||||||
errors.unterminated(initialPos, initialLineStart, initialCurLine);
|
|
||||||
out += input.slice(chunkStart, pos);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
const ch = input.charCodeAt(pos);
|
|
||||||
if (isStringEnd(type, ch, input, pos)) {
|
|
||||||
out += input.slice(chunkStart, pos);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (ch === 92) {
|
|
||||||
out += input.slice(chunkStart, pos);
|
|
||||||
const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors);
|
|
||||||
if (res.ch === null && !firstInvalidLoc) {
|
|
||||||
firstInvalidLoc = {
|
|
||||||
pos,
|
|
||||||
lineStart,
|
|
||||||
curLine
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
out += res.ch;
|
|
||||||
}
|
|
||||||
({
|
|
||||||
pos,
|
|
||||||
lineStart,
|
|
||||||
curLine
|
|
||||||
} = res);
|
|
||||||
chunkStart = pos;
|
|
||||||
} else if (ch === 8232 || ch === 8233) {
|
|
||||||
++pos;
|
|
||||||
++curLine;
|
|
||||||
lineStart = pos;
|
|
||||||
} else if (ch === 10 || ch === 13) {
|
|
||||||
if (type === "template") {
|
|
||||||
out += input.slice(chunkStart, pos) + "\n";
|
|
||||||
++pos;
|
|
||||||
if (ch === 13 && input.charCodeAt(pos) === 10) {
|
|
||||||
++pos;
|
|
||||||
}
|
|
||||||
++curLine;
|
|
||||||
chunkStart = lineStart = pos;
|
|
||||||
} else {
|
|
||||||
errors.unterminated(initialPos, initialLineStart, initialCurLine);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
++pos;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
pos,
|
|
||||||
str: out,
|
|
||||||
firstInvalidLoc,
|
|
||||||
lineStart,
|
|
||||||
curLine,
|
|
||||||
containsInvalid: !!firstInvalidLoc
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function isStringEnd(type, ch, input, pos) {
|
|
||||||
if (type === "template") {
|
|
||||||
return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
|
|
||||||
}
|
|
||||||
return ch === (type === "double" ? 34 : 39);
|
|
||||||
}
|
|
||||||
function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) {
|
|
||||||
const throwOnInvalid = !inTemplate;
|
|
||||||
pos++;
|
|
||||||
const res = ch => ({
|
|
||||||
pos,
|
|
||||||
ch,
|
|
||||||
lineStart,
|
|
||||||
curLine
|
|
||||||
});
|
|
||||||
const ch = input.charCodeAt(pos++);
|
|
||||||
switch (ch) {
|
|
||||||
case 110:
|
|
||||||
return res("\n");
|
|
||||||
case 114:
|
|
||||||
return res("\r");
|
|
||||||
case 120:
|
|
||||||
{
|
|
||||||
let code;
|
|
||||||
({
|
|
||||||
code,
|
|
||||||
pos
|
|
||||||
} = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
|
|
||||||
return res(code === null ? null : String.fromCharCode(code));
|
|
||||||
}
|
|
||||||
case 117:
|
|
||||||
{
|
|
||||||
let code;
|
|
||||||
({
|
|
||||||
code,
|
|
||||||
pos
|
|
||||||
} = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors));
|
|
||||||
return res(code === null ? null : String.fromCodePoint(code));
|
|
||||||
}
|
|
||||||
case 116:
|
|
||||||
return res("\t");
|
|
||||||
case 98:
|
|
||||||
return res("\b");
|
|
||||||
case 118:
|
|
||||||
return res("\u000b");
|
|
||||||
case 102:
|
|
||||||
return res("\f");
|
|
||||||
case 13:
|
|
||||||
if (input.charCodeAt(pos) === 10) {
|
|
||||||
++pos;
|
|
||||||
}
|
|
||||||
case 10:
|
|
||||||
lineStart = pos;
|
|
||||||
++curLine;
|
|
||||||
case 8232:
|
|
||||||
case 8233:
|
|
||||||
return res("");
|
|
||||||
case 56:
|
|
||||||
case 57:
|
|
||||||
if (inTemplate) {
|
|
||||||
return res(null);
|
|
||||||
} else {
|
|
||||||
errors.strictNumericEscape(pos - 1, lineStart, curLine);
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
if (ch >= 48 && ch <= 55) {
|
|
||||||
const startPos = pos - 1;
|
|
||||||
const match = input.slice(startPos, pos + 2).match(/^[0-7]+/);
|
|
||||||
let octalStr = match[0];
|
|
||||||
let octal = parseInt(octalStr, 8);
|
|
||||||
if (octal > 255) {
|
|
||||||
octalStr = octalStr.slice(0, -1);
|
|
||||||
octal = parseInt(octalStr, 8);
|
|
||||||
}
|
|
||||||
pos += octalStr.length - 1;
|
|
||||||
const next = input.charCodeAt(pos);
|
|
||||||
if (octalStr !== "0" || next === 56 || next === 57) {
|
|
||||||
if (inTemplate) {
|
|
||||||
return res(null);
|
|
||||||
} else {
|
|
||||||
errors.strictNumericEscape(startPos, lineStart, curLine);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return res(String.fromCharCode(octal));
|
|
||||||
}
|
|
||||||
return res(String.fromCharCode(ch));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
|
|
||||||
const initialPos = pos;
|
|
||||||
let n;
|
|
||||||
({
|
|
||||||
n,
|
|
||||||
pos
|
|
||||||
} = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
|
|
||||||
if (n === null) {
|
|
||||||
if (throwOnInvalid) {
|
|
||||||
errors.invalidEscapeSequence(initialPos, lineStart, curLine);
|
|
||||||
} else {
|
|
||||||
pos = initialPos - 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
code: n,
|
|
||||||
pos
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
|
|
||||||
const start = pos;
|
|
||||||
const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct;
|
|
||||||
const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin;
|
|
||||||
let invalid = false;
|
|
||||||
let total = 0;
|
|
||||||
for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
|
|
||||||
const code = input.charCodeAt(pos);
|
|
||||||
let val;
|
|
||||||
if (code === 95 && allowNumSeparator !== "bail") {
|
|
||||||
const prev = input.charCodeAt(pos - 1);
|
|
||||||
const next = input.charCodeAt(pos + 1);
|
|
||||||
if (!allowNumSeparator) {
|
|
||||||
if (bailOnError) return {
|
|
||||||
n: null,
|
|
||||||
pos
|
|
||||||
};
|
|
||||||
errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);
|
|
||||||
} else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) {
|
|
||||||
if (bailOnError) return {
|
|
||||||
n: null,
|
|
||||||
pos
|
|
||||||
};
|
|
||||||
errors.unexpectedNumericSeparator(pos, lineStart, curLine);
|
|
||||||
}
|
|
||||||
++pos;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (code >= 97) {
|
|
||||||
val = code - 97 + 10;
|
|
||||||
} else if (code >= 65) {
|
|
||||||
val = code - 65 + 10;
|
|
||||||
} else if (_isDigit(code)) {
|
|
||||||
val = code - 48;
|
|
||||||
} else {
|
|
||||||
val = Infinity;
|
|
||||||
}
|
|
||||||
if (val >= radix) {
|
|
||||||
if (val <= 9 && bailOnError) {
|
|
||||||
return {
|
|
||||||
n: null,
|
|
||||||
pos
|
|
||||||
};
|
|
||||||
} else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) {
|
|
||||||
val = 0;
|
|
||||||
} else if (forceLen) {
|
|
||||||
val = 0;
|
|
||||||
invalid = true;
|
|
||||||
} else {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
++pos;
|
|
||||||
total = total * radix + val;
|
|
||||||
}
|
|
||||||
if (pos === start || len != null && pos - start !== len || invalid) {
|
|
||||||
return {
|
|
||||||
n: null,
|
|
||||||
pos
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
n: total,
|
|
||||||
pos
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
|
|
||||||
const ch = input.charCodeAt(pos);
|
|
||||||
let code;
|
|
||||||
if (ch === 123) {
|
|
||||||
++pos;
|
|
||||||
({
|
|
||||||
code,
|
|
||||||
pos
|
|
||||||
} = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
|
|
||||||
++pos;
|
|
||||||
if (code !== null && code > 0x10ffff) {
|
|
||||||
if (throwOnInvalid) {
|
|
||||||
errors.invalidCodePoint(pos, lineStart, curLine);
|
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
code: null,
|
|
||||||
pos
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
({
|
|
||||||
code,
|
|
||||||
pos
|
|
||||||
} = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
code,
|
|
||||||
pos
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=index.js.map
|
|
File diff suppressed because one or more lines are too long
|
@ -1,28 +0,0 @@
|
||||||
{
|
|
||||||
"name": "@babel/helper-string-parser",
|
|
||||||
"version": "7.24.1",
|
|
||||||
"description": "A utility package to parse strings",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/babel/babel.git",
|
|
||||||
"directory": "packages/babel-helper-string-parser"
|
|
||||||
},
|
|
||||||
"homepage": "https://babel.dev/docs/en/next/babel-helper-string-parser",
|
|
||||||
"license": "MIT",
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
|
||||||
"main": "./lib/index.js",
|
|
||||||
"devDependencies": {
|
|
||||||
"charcodes": "^0.2.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
},
|
|
||||||
"author": "The Babel Team (https://babel.dev/team)",
|
|
||||||
"exports": {
|
|
||||||
".": "./lib/index.js",
|
|
||||||
"./package.json": "./package.json"
|
|
||||||
},
|
|
||||||
"type": "commonjs"
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
@ -1,19 +0,0 @@
|
||||||
# @babel/helper-validator-identifier
|
|
||||||
|
|
||||||
> Validate identifier/keywords name
|
|
||||||
|
|
||||||
See our website [@babel/helper-validator-identifier](https://babeljs.io/docs/babel-helper-validator-identifier) for more information.
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install --save @babel/helper-validator-identifier
|
|
||||||
```
|
|
||||||
|
|
||||||
or using yarn:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
yarn add @babel/helper-validator-identifier
|
|
||||||
```
|
|
|
@ -1,70 +0,0 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.isIdentifierChar = isIdentifierChar;
|
|
||||||
exports.isIdentifierName = isIdentifierName;
|
|
||||||
exports.isIdentifierStart = isIdentifierStart;
|
|
||||||
let nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
|
|
||||||
let nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65";
|
|
||||||
const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
||||||
const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
||||||
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
||||||
const astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
|
||||||
const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
||||||
function isInAstralSet(code, set) {
|
|
||||||
let pos = 0x10000;
|
|
||||||
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
||||||
pos += set[i];
|
|
||||||
if (pos > code) return false;
|
|
||||||
pos += set[i + 1];
|
|
||||||
if (pos >= code) return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
function isIdentifierStart(code) {
|
|
||||||
if (code < 65) return code === 36;
|
|
||||||
if (code <= 90) return true;
|
|
||||||
if (code < 97) return code === 95;
|
|
||||||
if (code <= 122) return true;
|
|
||||||
if (code <= 0xffff) {
|
|
||||||
return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));
|
|
||||||
}
|
|
||||||
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
||||||
}
|
|
||||||
function isIdentifierChar(code) {
|
|
||||||
if (code < 48) return code === 36;
|
|
||||||
if (code < 58) return true;
|
|
||||||
if (code < 65) return false;
|
|
||||||
if (code <= 90) return true;
|
|
||||||
if (code < 97) return code === 95;
|
|
||||||
if (code <= 122) return true;
|
|
||||||
if (code <= 0xffff) {
|
|
||||||
return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));
|
|
||||||
}
|
|
||||||
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
||||||
}
|
|
||||||
function isIdentifierName(name) {
|
|
||||||
let isFirst = true;
|
|
||||||
for (let i = 0; i < name.length; i++) {
|
|
||||||
let cp = name.charCodeAt(i);
|
|
||||||
if ((cp & 0xfc00) === 0xd800 && i + 1 < name.length) {
|
|
||||||
const trail = name.charCodeAt(++i);
|
|
||||||
if ((trail & 0xfc00) === 0xdc00) {
|
|
||||||
cp = 0x10000 + ((cp & 0x3ff) << 10) + (trail & 0x3ff);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isFirst) {
|
|
||||||
isFirst = false;
|
|
||||||
if (!isIdentifierStart(cp)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!isIdentifierChar(cp)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return !isFirst;
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=identifier.js.map
|
|
File diff suppressed because one or more lines are too long
|
@ -1,57 +0,0 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
Object.defineProperty(exports, "isIdentifierChar", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _identifier.isIdentifierChar;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Object.defineProperty(exports, "isIdentifierName", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _identifier.isIdentifierName;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Object.defineProperty(exports, "isIdentifierStart", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _identifier.isIdentifierStart;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Object.defineProperty(exports, "isKeyword", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _keyword.isKeyword;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Object.defineProperty(exports, "isReservedWord", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _keyword.isReservedWord;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _keyword.isStrictBindOnlyReservedWord;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Object.defineProperty(exports, "isStrictBindReservedWord", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _keyword.isStrictBindReservedWord;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Object.defineProperty(exports, "isStrictReservedWord", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _keyword.isStrictReservedWord;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
var _identifier = require("./identifier.js");
|
|
||||||
var _keyword = require("./keyword.js");
|
|
||||||
|
|
||||||
//# sourceMappingURL=index.js.map
|
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"names":["_identifier","require","_keyword"],"sources":["../src/index.ts"],"sourcesContent":["export {\n isIdentifierName,\n isIdentifierChar,\n isIdentifierStart,\n} from \"./identifier.ts\";\nexport {\n isReservedWord,\n isStrictBindOnlyReservedWord,\n isStrictBindReservedWord,\n isStrictReservedWord,\n isKeyword,\n} from \"./keyword.ts\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA"}
|
|
|
@ -1,35 +0,0 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.isKeyword = isKeyword;
|
|
||||||
exports.isReservedWord = isReservedWord;
|
|
||||||
exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
|
|
||||||
exports.isStrictBindReservedWord = isStrictBindReservedWord;
|
|
||||||
exports.isStrictReservedWord = isStrictReservedWord;
|
|
||||||
const reservedWords = {
|
|
||||||
keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"],
|
|
||||||
strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
|
|
||||||
strictBind: ["eval", "arguments"]
|
|
||||||
};
|
|
||||||
const keywords = new Set(reservedWords.keyword);
|
|
||||||
const reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
||||||
const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
|
|
||||||
function isReservedWord(word, inModule) {
|
|
||||||
return inModule && word === "await" || word === "enum";
|
|
||||||
}
|
|
||||||
function isStrictReservedWord(word, inModule) {
|
|
||||||
return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
|
|
||||||
}
|
|
||||||
function isStrictBindOnlyReservedWord(word) {
|
|
||||||
return reservedWordsStrictBindSet.has(word);
|
|
||||||
}
|
|
||||||
function isStrictBindReservedWord(word, inModule) {
|
|
||||||
return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
|
|
||||||
}
|
|
||||||
function isKeyword(word) {
|
|
||||||
return keywords.has(word);
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=keyword.js.map
|
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"names":["reservedWords","keyword","strict","strictBind","keywords","Set","reservedWordsStrictSet","reservedWordsStrictBindSet","isReservedWord","word","inModule","isStrictReservedWord","has","isStrictBindOnlyReservedWord","isStrictBindReservedWord","isKeyword"],"sources":["../src/keyword.ts"],"sourcesContent":["const reservedWords = {\n keyword: [\n \"break\",\n \"case\",\n \"catch\",\n \"continue\",\n \"debugger\",\n \"default\",\n \"do\",\n \"else\",\n \"finally\",\n \"for\",\n \"function\",\n \"if\",\n \"return\",\n \"switch\",\n \"throw\",\n \"try\",\n \"var\",\n \"const\",\n \"while\",\n \"with\",\n \"new\",\n \"this\",\n \"super\",\n \"class\",\n \"extends\",\n \"export\",\n \"import\",\n \"null\",\n \"true\",\n \"false\",\n \"in\",\n \"instanceof\",\n \"typeof\",\n \"void\",\n \"delete\",\n ],\n strict: [\n \"implements\",\n \"interface\",\n \"let\",\n \"package\",\n \"private\",\n \"protected\",\n \"public\",\n \"static\",\n \"yield\",\n ],\n strictBind: [\"eval\", \"arguments\"],\n};\nconst keywords = new Set(reservedWords.keyword);\nconst reservedWordsStrictSet = new Set(reservedWords.strict);\nconst reservedWordsStrictBindSet = new Set(reservedWords.strictBind);\n\n/**\n * Checks if word is a reserved word in non-strict mode\n */\nexport function isReservedWord(word: string, inModule: boolean): boolean {\n return (inModule && word === \"await\") || word === \"enum\";\n}\n\n/**\n * Checks if word is a reserved word in non-binding strict mode\n *\n * Includes non-strict reserved words\n */\nexport function isStrictReservedWord(word: string, inModule: boolean): boolean {\n return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);\n}\n\n/**\n * Checks if word is a reserved word in binding strict mode, but it is allowed as\n * a normal identifier.\n */\nexport function isStrictBindOnlyReservedWord(word: string): boolean {\n return reservedWordsStrictBindSet.has(word);\n}\n\n/**\n * Checks if word is a reserved word in binding strict mode\n *\n * Includes non-strict reserved words and non-binding strict reserved words\n */\nexport function isStrictBindReservedWord(\n word: string,\n inModule: boolean,\n): boolean {\n return (\n isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word)\n );\n}\n\nexport function isKeyword(word: string): boolean {\n return keywords.has(word);\n}\n"],"mappings":";;;;;;;;;;AAAA,MAAMA,aAAa,GAAG;EACpBC,OAAO,EAAE,CACP,OAAO,EACP,MAAM,EACN,OAAO,EACP,UAAU,EACV,UAAU,EACV,SAAS,EACT,IAAI,EACJ,MAAM,EACN,SAAS,EACT,KAAK,EACL,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,MAAM,EACN,KAAK,EACL,MAAM,EACN,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,MAAM,EACN,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,QAAQ,CACT;EACDC,MAAM,EAAE,CACN,YAAY,EACZ,WAAW,EACX,KAAK,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,CACR;EACDC,UAAU,EAAE,CAAC,MAAM,EAAE,WAAW;AAClC,CAAC;AACD,MAAMC,QAAQ,GAAG,IAAIC,GAAG,CAACL,aAAa,CAACC,OAAO,CAAC;AAC/C,MAAMK,sBAAsB,GAAG,IAAID,GAAG,CAACL,aAAa,CAACE,MAAM,CAAC;AAC5D,MAAMK,0BAA0B,GAAG,IAAIF,GAAG,CAACL,aAAa,CAACG,UAAU,CAAC;AAK7D,SAASK,cAAcA,CAACC,IAAY,EAAEC,QAAiB,EAAW;EACvE,OAAQA,QAAQ,IAAID,IAAI,KAAK,OAAO,IAAKA,IAAI,KAAK,MAAM;AAC1D;AAOO,SAASE,oBAAoBA,CAACF,IAAY,EAAEC,QAAiB,EAAW;EAC7E,OAAOF,cAAc,CAACC,IAAI,EAAEC,QAAQ,CAAC,IAAIJ,sBAAsB,CAACM,GAAG,CAACH,IAAI,CAAC;AAC3E;AAMO,SAASI,4BAA4BA,CAACJ,IAAY,EAAW;EAClE,OAAOF,0BAA0B,CAACK,GAAG,CAACH,IAAI,CAAC;AAC7C;AAOO,SAASK,wBAAwBA,CACtCL,IAAY,EACZC,QAAiB,EACR;EACT,OACEC,oBAAoB,CAACF,IAAI,EAAEC,QAAQ,CAAC,IAAIG,4BAA4B,CAACJ,IAAI,CAAC;AAE9E;AAEO,SAASM,SAASA,CAACN,IAAY,EAAW;EAC/C,OAAOL,QAAQ,CAACQ,GAAG,CAACH,IAAI,CAAC;AAC3B"}
|
|
|
@ -1,28 +0,0 @@
|
||||||
{
|
|
||||||
"name": "@babel/helper-validator-identifier",
|
|
||||||
"version": "7.22.20",
|
|
||||||
"description": "Validate identifier/keywords name",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/babel/babel.git",
|
|
||||||
"directory": "packages/babel-helper-validator-identifier"
|
|
||||||
},
|
|
||||||
"license": "MIT",
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
|
||||||
"main": "./lib/index.js",
|
|
||||||
"exports": {
|
|
||||||
".": "./lib/index.js",
|
|
||||||
"./package.json": "./package.json"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@unicode/unicode-15.1.0": "^1.5.2",
|
|
||||||
"charcodes": "^0.2.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
},
|
|
||||||
"author": "The Babel Team (https://babel.dev/team)",
|
|
||||||
"type": "commonjs"
|
|
||||||
}
|
|
73
node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js
generated
vendored
73
node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js
generated
vendored
|
@ -1,73 +0,0 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
// Always use the latest available version of Unicode!
|
|
||||||
// https://tc39.github.io/ecma262/#sec-conformance
|
|
||||||
const version = "15.1.0";
|
|
||||||
|
|
||||||
const start = require(
|
|
||||||
"@unicode/unicode-" + version + "/Binary_Property/ID_Start/code-points.js"
|
|
||||||
).filter(function (ch) {
|
|
||||||
return ch > 0x7f;
|
|
||||||
});
|
|
||||||
let last = -1;
|
|
||||||
const cont = require(
|
|
||||||
"@unicode/unicode-" + version + "/Binary_Property/ID_Continue/code-points.js"
|
|
||||||
).filter(function (ch) {
|
|
||||||
return ch > 0x7f && search(start, ch, last + 1) == -1;
|
|
||||||
});
|
|
||||||
|
|
||||||
function search(arr, ch, starting) {
|
|
||||||
for (let i = starting; arr[i] <= ch && i < arr.length; last = i++) {
|
|
||||||
if (arr[i] === ch) return i;
|
|
||||||
}
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
function pad(str, width) {
|
|
||||||
while (str.length < width) str = "0" + str;
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
|
|
||||||
function esc(code) {
|
|
||||||
const hex = code.toString(16);
|
|
||||||
if (hex.length <= 2) return "\\x" + pad(hex, 2);
|
|
||||||
else return "\\u" + pad(hex, 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
function generate(chars) {
|
|
||||||
const astral = [];
|
|
||||||
let re = "";
|
|
||||||
for (let i = 0, at = 0x10000; i < chars.length; i++) {
|
|
||||||
const from = chars[i];
|
|
||||||
let to = from;
|
|
||||||
while (i < chars.length - 1 && chars[i + 1] == to + 1) {
|
|
||||||
i++;
|
|
||||||
to++;
|
|
||||||
}
|
|
||||||
if (to <= 0xffff) {
|
|
||||||
if (from == to) re += esc(from);
|
|
||||||
else if (from + 1 == to) re += esc(from) + esc(to);
|
|
||||||
else re += esc(from) + "-" + esc(to);
|
|
||||||
} else {
|
|
||||||
astral.push(from - at, to - from);
|
|
||||||
at = to;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return { nonASCII: re, astral: astral };
|
|
||||||
}
|
|
||||||
|
|
||||||
const startData = generate(start);
|
|
||||||
const contData = generate(cont);
|
|
||||||
|
|
||||||
console.log("/* prettier-ignore */");
|
|
||||||
console.log('let nonASCIIidentifierStartChars = "' + startData.nonASCII + '";');
|
|
||||||
console.log("/* prettier-ignore */");
|
|
||||||
console.log('let nonASCIIidentifierChars = "' + contData.nonASCII + '";');
|
|
||||||
console.log("/* prettier-ignore */");
|
|
||||||
console.log(
|
|
||||||
"const astralIdentifierStartCodes = " + JSON.stringify(startData.astral) + ";"
|
|
||||||
);
|
|
||||||
console.log("/* prettier-ignore */");
|
|
||||||
console.log(
|
|
||||||
"const astralIdentifierCodes = " + JSON.stringify(contData.astral) + ";"
|
|
||||||
);
|
|
|
@ -1,22 +0,0 @@
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
@ -1,19 +0,0 @@
|
||||||
# @babel/highlight
|
|
||||||
|
|
||||||
> Syntax highlight JavaScript strings for output in terminals.
|
|
||||||
|
|
||||||
See our website [@babel/highlight](https://babeljs.io/docs/babel-highlight) for more information.
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install --save-dev @babel/highlight
|
|
||||||
```
|
|
||||||
|
|
||||||
or using yarn:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
yarn add @babel/highlight --dev
|
|
||||||
```
|
|
|
@ -1,119 +0,0 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.default = highlight;
|
|
||||||
exports.shouldHighlight = shouldHighlight;
|
|
||||||
var _jsTokens = require("js-tokens");
|
|
||||||
var _helperValidatorIdentifier = require("@babel/helper-validator-identifier");
|
|
||||||
var _picocolors = _interopRequireWildcard(require("picocolors"), true);
|
|
||||||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
||||||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
||||||
const colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
|
|
||||||
const compose = (f, g) => v => f(g(v));
|
|
||||||
const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]);
|
|
||||||
function getDefs(colors) {
|
|
||||||
return {
|
|
||||||
keyword: colors.cyan,
|
|
||||||
capitalized: colors.yellow,
|
|
||||||
jsxIdentifier: colors.yellow,
|
|
||||||
punctuator: colors.yellow,
|
|
||||||
number: colors.magenta,
|
|
||||||
string: colors.green,
|
|
||||||
regex: colors.magenta,
|
|
||||||
comment: colors.gray,
|
|
||||||
invalid: compose(compose(colors.white, colors.bgRed), colors.bold)
|
|
||||||
};
|
|
||||||
}
|
|
||||||
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
||||||
const BRACKET = /^[()[\]{}]$/;
|
|
||||||
let tokenize;
|
|
||||||
{
|
|
||||||
const JSX_TAG = /^[a-z][\w-]*$/i;
|
|
||||||
const getTokenType = function (token, offset, text) {
|
|
||||||
if (token.type === "name") {
|
|
||||||
if ((0, _helperValidatorIdentifier.isKeyword)(token.value) || (0, _helperValidatorIdentifier.isStrictReservedWord)(token.value, true) || sometimesKeywords.has(token.value)) {
|
|
||||||
return "keyword";
|
|
||||||
}
|
|
||||||
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) == "</")) {
|
|
||||||
return "jsxIdentifier";
|
|
||||||
}
|
|
||||||
if (token.value[0] !== token.value[0].toLowerCase()) {
|
|
||||||
return "capitalized";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (token.type === "punctuator" && BRACKET.test(token.value)) {
|
|
||||||
return "bracket";
|
|
||||||
}
|
|
||||||
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
|
|
||||||
return "punctuator";
|
|
||||||
}
|
|
||||||
return token.type;
|
|
||||||
};
|
|
||||||
tokenize = function* (text) {
|
|
||||||
let match;
|
|
||||||
while (match = _jsTokens.default.exec(text)) {
|
|
||||||
const token = _jsTokens.matchToToken(match);
|
|
||||||
yield {
|
|
||||||
type: getTokenType(token, match.index, text),
|
|
||||||
value: token.value
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function highlightTokens(defs, text) {
|
|
||||||
let highlighted = "";
|
|
||||||
for (const {
|
|
||||||
type,
|
|
||||||
value
|
|
||||||
} of tokenize(text)) {
|
|
||||||
const colorize = defs[type];
|
|
||||||
if (colorize) {
|
|
||||||
highlighted += value.split(NEWLINE).map(str => colorize(str)).join("\n");
|
|
||||||
} else {
|
|
||||||
highlighted += value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return highlighted;
|
|
||||||
}
|
|
||||||
function shouldHighlight(options) {
|
|
||||||
return colors.isColorSupported || options.forceColor;
|
|
||||||
}
|
|
||||||
let pcWithForcedColor = undefined;
|
|
||||||
function getColors(forceColor) {
|
|
||||||
if (forceColor) {
|
|
||||||
var _pcWithForcedColor;
|
|
||||||
(_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true);
|
|
||||||
return pcWithForcedColor;
|
|
||||||
}
|
|
||||||
return colors;
|
|
||||||
}
|
|
||||||
function highlight(code, options = {}) {
|
|
||||||
if (code !== "" && shouldHighlight(options)) {
|
|
||||||
const defs = getDefs(getColors(options.forceColor));
|
|
||||||
return highlightTokens(defs, code);
|
|
||||||
} else {
|
|
||||||
return code;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
let chalk, chalkWithForcedColor;
|
|
||||||
exports.getChalk = ({
|
|
||||||
forceColor
|
|
||||||
}) => {
|
|
||||||
var _chalk;
|
|
||||||
(_chalk = chalk) != null ? _chalk : chalk = require("chalk");
|
|
||||||
if (forceColor) {
|
|
||||||
var _chalkWithForcedColor;
|
|
||||||
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new chalk.constructor({
|
|
||||||
enabled: true,
|
|
||||||
level: 1
|
|
||||||
});
|
|
||||||
return chalkWithForcedColor;
|
|
||||||
}
|
|
||||||
return chalk;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=index.js.map
|
|
File diff suppressed because one or more lines are too long
|
@ -1,30 +0,0 @@
|
||||||
{
|
|
||||||
"name": "@babel/highlight",
|
|
||||||
"version": "7.24.2",
|
|
||||||
"description": "Syntax highlight JavaScript strings for output in terminals.",
|
|
||||||
"author": "The Babel Team (https://babel.dev/team)",
|
|
||||||
"homepage": "https://babel.dev/docs/en/next/babel-highlight",
|
|
||||||
"license": "MIT",
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/babel/babel.git",
|
|
||||||
"directory": "packages/babel-highlight"
|
|
||||||
},
|
|
||||||
"main": "./lib/index.js",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/helper-validator-identifier": "^7.22.20",
|
|
||||||
"chalk": "^2.4.2",
|
|
||||||
"js-tokens": "^4.0.0",
|
|
||||||
"picocolors": "^1.0.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"strip-ansi": "^4.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
},
|
|
||||||
"type": "commonjs"
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
@ -1,19 +0,0 @@
|
||||||
# @babel/runtime
|
|
||||||
|
|
||||||
> babel's modular runtime helpers
|
|
||||||
|
|
||||||
See our website [@babel/runtime](https://babeljs.io/docs/babel-runtime) for more information.
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install --save @babel/runtime
|
|
||||||
```
|
|
||||||
|
|
||||||
or using yarn:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
yarn add @babel/runtime
|
|
||||||
```
|
|
|
@ -1,64 +0,0 @@
|
||||||
var OverloadYield = require("./OverloadYield.js");
|
|
||||||
function AsyncGenerator(e) {
|
|
||||||
var r, t;
|
|
||||||
function resume(r, t) {
|
|
||||||
try {
|
|
||||||
var n = e[r](t),
|
|
||||||
o = n.value,
|
|
||||||
u = o instanceof OverloadYield;
|
|
||||||
Promise.resolve(u ? o.v : o).then(function (t) {
|
|
||||||
if (u) {
|
|
||||||
var i = "return" === r ? "return" : "next";
|
|
||||||
if (!o.k || t.done) return resume(i, t);
|
|
||||||
t = e[i](t).value;
|
|
||||||
}
|
|
||||||
settle(n.done ? "return" : "normal", t);
|
|
||||||
}, function (e) {
|
|
||||||
resume("throw", e);
|
|
||||||
});
|
|
||||||
} catch (e) {
|
|
||||||
settle("throw", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function settle(e, n) {
|
|
||||||
switch (e) {
|
|
||||||
case "return":
|
|
||||||
r.resolve({
|
|
||||||
value: n,
|
|
||||||
done: !0
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
case "throw":
|
|
||||||
r.reject(n);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
r.resolve({
|
|
||||||
value: n,
|
|
||||||
done: !1
|
|
||||||
});
|
|
||||||
}
|
|
||||||
(r = r.next) ? resume(r.key, r.arg) : t = null;
|
|
||||||
}
|
|
||||||
this._invoke = function (e, n) {
|
|
||||||
return new Promise(function (o, u) {
|
|
||||||
var i = {
|
|
||||||
key: e,
|
|
||||||
arg: n,
|
|
||||||
resolve: o,
|
|
||||||
reject: u,
|
|
||||||
next: null
|
|
||||||
};
|
|
||||||
t ? t = t.next = i : (r = t = i, resume(e, n));
|
|
||||||
});
|
|
||||||
}, "function" != typeof e["return"] && (this["return"] = void 0);
|
|
||||||
}
|
|
||||||
AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () {
|
|
||||||
return this;
|
|
||||||
}, AsyncGenerator.prototype.next = function (e) {
|
|
||||||
return this._invoke("next", e);
|
|
||||||
}, AsyncGenerator.prototype["throw"] = function (e) {
|
|
||||||
return this._invoke("throw", e);
|
|
||||||
}, AsyncGenerator.prototype["return"] = function (e) {
|
|
||||||
return this._invoke("return", e);
|
|
||||||
};
|
|
||||||
module.exports = AsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,4 +0,0 @@
|
||||||
function _AwaitValue(value) {
|
|
||||||
this.wrapped = value;
|
|
||||||
}
|
|
||||||
module.exports = _AwaitValue, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,4 +0,0 @@
|
||||||
function _OverloadYield(t, e) {
|
|
||||||
this.v = t, this.k = e;
|
|
||||||
}
|
|
||||||
module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,24 +0,0 @@
|
||||||
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
|
|
||||||
var desc = {};
|
|
||||||
Object.keys(descriptor).forEach(function (key) {
|
|
||||||
desc[key] = descriptor[key];
|
|
||||||
});
|
|
||||||
desc.enumerable = !!desc.enumerable;
|
|
||||||
desc.configurable = !!desc.configurable;
|
|
||||||
if ('value' in desc || desc.initializer) {
|
|
||||||
desc.writable = true;
|
|
||||||
}
|
|
||||||
desc = decorators.slice().reverse().reduce(function (desc, decorator) {
|
|
||||||
return decorator(target, property, desc) || desc;
|
|
||||||
}, desc);
|
|
||||||
if (context && desc.initializer !== void 0) {
|
|
||||||
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
|
|
||||||
desc.initializer = undefined;
|
|
||||||
}
|
|
||||||
if (desc.initializer === void 0) {
|
|
||||||
Object.defineProperty(target, property, desc);
|
|
||||||
desc = null;
|
|
||||||
}
|
|
||||||
return desc;
|
|
||||||
}
|
|
||||||
module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,236 +0,0 @@
|
||||||
var _typeof = require("./typeof.js")["default"];
|
|
||||||
var setFunctionName = require("./setFunctionName.js");
|
|
||||||
var toPropertyKey = require("./toPropertyKey.js");
|
|
||||||
function old_createMetadataMethodsForProperty(e, t, a, r) {
|
|
||||||
return {
|
|
||||||
getMetadata: function getMetadata(o) {
|
|
||||||
old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o);
|
|
||||||
var i = e[o];
|
|
||||||
if (void 0 !== i) if (1 === t) {
|
|
||||||
var n = i["public"];
|
|
||||||
if (void 0 !== n) return n[a];
|
|
||||||
} else if (2 === t) {
|
|
||||||
var l = i["private"];
|
|
||||||
if (void 0 !== l) return l.get(a);
|
|
||||||
} else if (Object.hasOwnProperty.call(i, "constructor")) return i.constructor;
|
|
||||||
},
|
|
||||||
setMetadata: function setMetadata(o, i) {
|
|
||||||
old_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o);
|
|
||||||
var n = e[o];
|
|
||||||
if (void 0 === n && (n = e[o] = {}), 1 === t) {
|
|
||||||
var l = n["public"];
|
|
||||||
void 0 === l && (l = n["public"] = {}), l[a] = i;
|
|
||||||
} else if (2 === t) {
|
|
||||||
var s = n.priv;
|
|
||||||
void 0 === s && (s = n["private"] = new Map()), s.set(a, i);
|
|
||||||
} else n.constructor = i;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function old_convertMetadataMapToFinal(e, t) {
|
|
||||||
var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")],
|
|
||||||
r = Object.getOwnPropertySymbols(t);
|
|
||||||
if (0 !== r.length) {
|
|
||||||
for (var o = 0; o < r.length; o++) {
|
|
||||||
var i = r[o],
|
|
||||||
n = t[i],
|
|
||||||
l = a ? a[i] : null,
|
|
||||||
s = n["public"],
|
|
||||||
c = l ? l["public"] : null;
|
|
||||||
s && c && Object.setPrototypeOf(s, c);
|
|
||||||
var d = n["private"];
|
|
||||||
if (d) {
|
|
||||||
var u = Array.from(d.values()),
|
|
||||||
f = l ? l["private"] : null;
|
|
||||||
f && (u = u.concat(f)), n["private"] = u;
|
|
||||||
}
|
|
||||||
l && Object.setPrototypeOf(n, l);
|
|
||||||
}
|
|
||||||
a && Object.setPrototypeOf(t, a), e[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = t;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function old_createAddInitializerMethod(e, t) {
|
|
||||||
return function (a) {
|
|
||||||
old_assertNotFinished(t, "addInitializer"), old_assertCallable(a, "An initializer"), e.push(a);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function old_memberDec(e, t, a, r, o, i, n, l, s) {
|
|
||||||
var c;
|
|
||||||
switch (i) {
|
|
||||||
case 1:
|
|
||||||
c = "accessor";
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
c = "method";
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
c = "getter";
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
c = "setter";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
c = "field";
|
|
||||||
}
|
|
||||||
var d,
|
|
||||||
u,
|
|
||||||
f = {
|
|
||||||
kind: c,
|
|
||||||
name: l ? "#" + t : toPropertyKey(t),
|
|
||||||
isStatic: n,
|
|
||||||
isPrivate: l
|
|
||||||
},
|
|
||||||
p = {
|
|
||||||
v: !1
|
|
||||||
};
|
|
||||||
if (0 !== i && (f.addInitializer = old_createAddInitializerMethod(o, p)), l) {
|
|
||||||
d = 2, u = Symbol(t);
|
|
||||||
var v = {};
|
|
||||||
0 === i ? (v.get = a.get, v.set = a.set) : 2 === i ? v.get = function () {
|
|
||||||
return a.value;
|
|
||||||
} : (1 !== i && 3 !== i || (v.get = function () {
|
|
||||||
return a.get.call(this);
|
|
||||||
}), 1 !== i && 4 !== i || (v.set = function (e) {
|
|
||||||
a.set.call(this, e);
|
|
||||||
})), f.access = v;
|
|
||||||
} else d = 1, u = t;
|
|
||||||
try {
|
|
||||||
return e(s, Object.assign(f, old_createMetadataMethodsForProperty(r, d, u, p)));
|
|
||||||
} finally {
|
|
||||||
p.v = !0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function old_assertNotFinished(e, t) {
|
|
||||||
if (e.v) throw Error("attempted to call " + t + " after decoration was finished");
|
|
||||||
}
|
|
||||||
function old_assertMetadataKey(e) {
|
|
||||||
if ("symbol" != _typeof(e)) throw new TypeError("Metadata keys must be symbols, received: " + e);
|
|
||||||
}
|
|
||||||
function old_assertCallable(e, t) {
|
|
||||||
if ("function" != typeof e) throw new TypeError(t + " must be a function");
|
|
||||||
}
|
|
||||||
function old_assertValidReturnValue(e, t) {
|
|
||||||
var a = _typeof(t);
|
|
||||||
if (1 === e) {
|
|
||||||
if ("object" !== a || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
||||||
void 0 !== t.get && old_assertCallable(t.get, "accessor.get"), void 0 !== t.set && old_assertCallable(t.set, "accessor.set"), void 0 !== t.init && old_assertCallable(t.init, "accessor.init"), void 0 !== t.initializer && old_assertCallable(t.initializer, "accessor.initializer");
|
|
||||||
} else if ("function" !== a) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0");
|
|
||||||
}
|
|
||||||
function old_getInit(e) {
|
|
||||||
var t;
|
|
||||||
return null == (t = e.init) && (t = e.initializer) && void 0 !== console && console.warn(".initializer has been renamed to .init as of March 2022"), t;
|
|
||||||
}
|
|
||||||
function old_applyMemberDec(e, t, a, r, o, i, n, l, s) {
|
|
||||||
var c,
|
|
||||||
d,
|
|
||||||
u,
|
|
||||||
f,
|
|
||||||
p,
|
|
||||||
v,
|
|
||||||
y,
|
|
||||||
h = a[0];
|
|
||||||
if (n ? (0 === o || 1 === o ? (c = {
|
|
||||||
get: a[3],
|
|
||||||
set: a[4]
|
|
||||||
}, u = "get") : 3 === o ? (c = {
|
|
||||||
get: a[3]
|
|
||||||
}, u = "get") : 4 === o ? (c = {
|
|
||||||
set: a[3]
|
|
||||||
}, u = "set") : c = {
|
|
||||||
value: a[3]
|
|
||||||
}, 0 !== o && (1 === o && setFunctionName(a[4], "#" + r, "set"), setFunctionName(a[3], "#" + r, u))) : 0 !== o && (c = Object.getOwnPropertyDescriptor(t, r)), 1 === o ? f = {
|
|
||||||
get: c.get,
|
|
||||||
set: c.set
|
|
||||||
} : 2 === o ? f = c.value : 3 === o ? f = c.get : 4 === o && (f = c.set), "function" == typeof h) void 0 !== (p = old_memberDec(h, r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? d = p : 1 === o ? (d = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = {
|
|
||||||
get: v,
|
|
||||||
set: y
|
|
||||||
}) : f = p);else for (var m = h.length - 1; m >= 0; m--) {
|
|
||||||
var b;
|
|
||||||
void 0 !== (p = old_memberDec(h[m], r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? b = p : 1 === o ? (b = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = {
|
|
||||||
get: v,
|
|
||||||
set: y
|
|
||||||
}) : f = p, void 0 !== b && (void 0 === d ? d = b : "function" == typeof d ? d = [d, b] : d.push(b)));
|
|
||||||
}
|
|
||||||
if (0 === o || 1 === o) {
|
|
||||||
if (void 0 === d) d = function d(e, t) {
|
|
||||||
return t;
|
|
||||||
};else if ("function" != typeof d) {
|
|
||||||
var g = d;
|
|
||||||
d = function d(e, t) {
|
|
||||||
for (var a = t, r = 0; r < g.length; r++) a = g[r].call(e, a);
|
|
||||||
return a;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
var _ = d;
|
|
||||||
d = function d(e, t) {
|
|
||||||
return _.call(e, t);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
e.push(d);
|
|
||||||
}
|
|
||||||
0 !== o && (1 === o ? (c.get = f.get, c.set = f.set) : 2 === o ? c.value = f : 3 === o ? c.get = f : 4 === o && (c.set = f), n ? 1 === o ? (e.push(function (e, t) {
|
|
||||||
return f.get.call(e, t);
|
|
||||||
}), e.push(function (e, t) {
|
|
||||||
return f.set.call(e, t);
|
|
||||||
})) : 2 === o ? e.push(f) : e.push(function (e, t) {
|
|
||||||
return f.call(e, t);
|
|
||||||
}) : Object.defineProperty(t, r, c));
|
|
||||||
}
|
|
||||||
function old_applyMemberDecs(e, t, a, r, o) {
|
|
||||||
for (var i, n, l = new Map(), s = new Map(), c = 0; c < o.length; c++) {
|
|
||||||
var d = o[c];
|
|
||||||
if (Array.isArray(d)) {
|
|
||||||
var u,
|
|
||||||
f,
|
|
||||||
p,
|
|
||||||
v = d[1],
|
|
||||||
y = d[2],
|
|
||||||
h = d.length > 3,
|
|
||||||
m = v >= 5;
|
|
||||||
if (m ? (u = t, f = r, 0 != (v -= 5) && (p = n = n || [])) : (u = t.prototype, f = a, 0 !== v && (p = i = i || [])), 0 !== v && !h) {
|
|
||||||
var b = m ? s : l,
|
|
||||||
g = b.get(y) || 0;
|
|
||||||
if (!0 === g || 3 === g && 4 !== v || 4 === g && 3 !== v) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + y);
|
|
||||||
!g && v > 2 ? b.set(y, v) : b.set(y, !0);
|
|
||||||
}
|
|
||||||
old_applyMemberDec(e, u, d, y, v, m, h, f, p);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
old_pushInitializers(e, i), old_pushInitializers(e, n);
|
|
||||||
}
|
|
||||||
function old_pushInitializers(e, t) {
|
|
||||||
t && e.push(function (e) {
|
|
||||||
for (var a = 0; a < t.length; a++) t[a].call(e);
|
|
||||||
return e;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function old_applyClassDecs(e, t, a, r) {
|
|
||||||
if (r.length > 0) {
|
|
||||||
for (var o = [], i = t, n = t.name, l = r.length - 1; l >= 0; l--) {
|
|
||||||
var s = {
|
|
||||||
v: !1
|
|
||||||
};
|
|
||||||
try {
|
|
||||||
var c = Object.assign({
|
|
||||||
kind: "class",
|
|
||||||
name: n,
|
|
||||||
addInitializer: old_createAddInitializerMethod(o, s)
|
|
||||||
}, old_createMetadataMethodsForProperty(a, 0, n, s)),
|
|
||||||
d = r[l](i, c);
|
|
||||||
} finally {
|
|
||||||
s.v = !0;
|
|
||||||
}
|
|
||||||
void 0 !== d && (old_assertValidReturnValue(10, d), i = d);
|
|
||||||
}
|
|
||||||
e.push(i, function () {
|
|
||||||
for (var e = 0; e < o.length; e++) o[e].call(i);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function applyDecs(e, t, a) {
|
|
||||||
var r = [],
|
|
||||||
o = {},
|
|
||||||
i = {};
|
|
||||||
return old_applyMemberDecs(r, e, i, o, t), old_convertMetadataMapToFinal(e.prototype, i), old_applyClassDecs(r, e, o, a), old_convertMetadataMapToFinal(e, o), r;
|
|
||||||
}
|
|
||||||
module.exports = applyDecs, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,184 +0,0 @@
|
||||||
var _typeof = require("./typeof.js")["default"];
|
|
||||||
function applyDecs2203Factory() {
|
|
||||||
function createAddInitializerMethod(e, t) {
|
|
||||||
return function (r) {
|
|
||||||
!function (e, t) {
|
|
||||||
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
||||||
}(t), assertCallable(r, "An initializer"), e.push(r);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function memberDec(e, t, r, a, n, i, s, o) {
|
|
||||||
var c;
|
|
||||||
switch (n) {
|
|
||||||
case 1:
|
|
||||||
c = "accessor";
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
c = "method";
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
c = "getter";
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
c = "setter";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
c = "field";
|
|
||||||
}
|
|
||||||
var l,
|
|
||||||
u,
|
|
||||||
f = {
|
|
||||||
kind: c,
|
|
||||||
name: s ? "#" + t : t,
|
|
||||||
"static": i,
|
|
||||||
"private": s
|
|
||||||
},
|
|
||||||
p = {
|
|
||||||
v: !1
|
|
||||||
};
|
|
||||||
0 !== n && (f.addInitializer = createAddInitializerMethod(a, p)), 0 === n ? s ? (l = r.get, u = r.set) : (l = function l() {
|
|
||||||
return this[t];
|
|
||||||
}, u = function u(e) {
|
|
||||||
this[t] = e;
|
|
||||||
}) : 2 === n ? l = function l() {
|
|
||||||
return r.value;
|
|
||||||
} : (1 !== n && 3 !== n || (l = function l() {
|
|
||||||
return r.get.call(this);
|
|
||||||
}), 1 !== n && 4 !== n || (u = function u(e) {
|
|
||||||
r.set.call(this, e);
|
|
||||||
})), f.access = l && u ? {
|
|
||||||
get: l,
|
|
||||||
set: u
|
|
||||||
} : l ? {
|
|
||||||
get: l
|
|
||||||
} : {
|
|
||||||
set: u
|
|
||||||
};
|
|
||||||
try {
|
|
||||||
return e(o, f);
|
|
||||||
} finally {
|
|
||||||
p.v = !0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function assertCallable(e, t) {
|
|
||||||
if ("function" != typeof e) throw new TypeError(t + " must be a function");
|
|
||||||
}
|
|
||||||
function assertValidReturnValue(e, t) {
|
|
||||||
var r = _typeof(t);
|
|
||||||
if (1 === e) {
|
|
||||||
if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
||||||
void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init");
|
|
||||||
} else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0");
|
|
||||||
}
|
|
||||||
function applyMemberDec(e, t, r, a, n, i, s, o) {
|
|
||||||
var c,
|
|
||||||
l,
|
|
||||||
u,
|
|
||||||
f,
|
|
||||||
p,
|
|
||||||
d,
|
|
||||||
h = r[0];
|
|
||||||
if (s ? c = 0 === n || 1 === n ? {
|
|
||||||
get: r[3],
|
|
||||||
set: r[4]
|
|
||||||
} : 3 === n ? {
|
|
||||||
get: r[3]
|
|
||||||
} : 4 === n ? {
|
|
||||||
set: r[3]
|
|
||||||
} : {
|
|
||||||
value: r[3]
|
|
||||||
} : 0 !== n && (c = Object.getOwnPropertyDescriptor(t, a)), 1 === n ? u = {
|
|
||||||
get: c.get,
|
|
||||||
set: c.set
|
|
||||||
} : 2 === n ? u = c.value : 3 === n ? u = c.get : 4 === n && (u = c.set), "function" == typeof h) void 0 !== (f = memberDec(h, a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? l = f : 1 === n ? (l = f.init, p = f.get || u.get, d = f.set || u.set, u = {
|
|
||||||
get: p,
|
|
||||||
set: d
|
|
||||||
}) : u = f);else for (var v = h.length - 1; v >= 0; v--) {
|
|
||||||
var g;
|
|
||||||
void 0 !== (f = memberDec(h[v], a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? g = f : 1 === n ? (g = f.init, p = f.get || u.get, d = f.set || u.set, u = {
|
|
||||||
get: p,
|
|
||||||
set: d
|
|
||||||
}) : u = f, void 0 !== g && (void 0 === l ? l = g : "function" == typeof l ? l = [l, g] : l.push(g)));
|
|
||||||
}
|
|
||||||
if (0 === n || 1 === n) {
|
|
||||||
if (void 0 === l) l = function l(e, t) {
|
|
||||||
return t;
|
|
||||||
};else if ("function" != typeof l) {
|
|
||||||
var y = l;
|
|
||||||
l = function l(e, t) {
|
|
||||||
for (var r = t, a = 0; a < y.length; a++) r = y[a].call(e, r);
|
|
||||||
return r;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
var m = l;
|
|
||||||
l = function l(e, t) {
|
|
||||||
return m.call(e, t);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
e.push(l);
|
|
||||||
}
|
|
||||||
0 !== n && (1 === n ? (c.get = u.get, c.set = u.set) : 2 === n ? c.value = u : 3 === n ? c.get = u : 4 === n && (c.set = u), s ? 1 === n ? (e.push(function (e, t) {
|
|
||||||
return u.get.call(e, t);
|
|
||||||
}), e.push(function (e, t) {
|
|
||||||
return u.set.call(e, t);
|
|
||||||
})) : 2 === n ? e.push(u) : e.push(function (e, t) {
|
|
||||||
return u.call(e, t);
|
|
||||||
}) : Object.defineProperty(t, a, c));
|
|
||||||
}
|
|
||||||
function pushInitializers(e, t) {
|
|
||||||
t && e.push(function (e) {
|
|
||||||
for (var r = 0; r < t.length; r++) t[r].call(e);
|
|
||||||
return e;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return function (e, t, r) {
|
|
||||||
var a = [];
|
|
||||||
return function (e, t, r) {
|
|
||||||
for (var a, n, i = new Map(), s = new Map(), o = 0; o < r.length; o++) {
|
|
||||||
var c = r[o];
|
|
||||||
if (Array.isArray(c)) {
|
|
||||||
var l,
|
|
||||||
u,
|
|
||||||
f = c[1],
|
|
||||||
p = c[2],
|
|
||||||
d = c.length > 3,
|
|
||||||
h = f >= 5;
|
|
||||||
if (h ? (l = t, 0 != (f -= 5) && (u = n = n || [])) : (l = t.prototype, 0 !== f && (u = a = a || [])), 0 !== f && !d) {
|
|
||||||
var v = h ? s : i,
|
|
||||||
g = v.get(p) || 0;
|
|
||||||
if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p);
|
|
||||||
!g && f > 2 ? v.set(p, f) : v.set(p, !0);
|
|
||||||
}
|
|
||||||
applyMemberDec(e, l, c, p, f, h, d, u);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
pushInitializers(e, a), pushInitializers(e, n);
|
|
||||||
}(a, e, t), function (e, t, r) {
|
|
||||||
if (r.length > 0) {
|
|
||||||
for (var a = [], n = t, i = t.name, s = r.length - 1; s >= 0; s--) {
|
|
||||||
var o = {
|
|
||||||
v: !1
|
|
||||||
};
|
|
||||||
try {
|
|
||||||
var c = r[s](n, {
|
|
||||||
kind: "class",
|
|
||||||
name: i,
|
|
||||||
addInitializer: createAddInitializerMethod(a, o)
|
|
||||||
});
|
|
||||||
} finally {
|
|
||||||
o.v = !0;
|
|
||||||
}
|
|
||||||
void 0 !== c && (assertValidReturnValue(10, c), n = c);
|
|
||||||
}
|
|
||||||
e.push(n, function () {
|
|
||||||
for (var e = 0; e < a.length; e++) a[e].call(n);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}(a, e, r), a;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
var applyDecs2203Impl;
|
|
||||||
function applyDecs2203(e, t, r) {
|
|
||||||
return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(e, t, r);
|
|
||||||
}
|
|
||||||
module.exports = applyDecs2203, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,191 +0,0 @@
|
||||||
var _typeof = require("./typeof.js")["default"];
|
|
||||||
var setFunctionName = require("./setFunctionName.js");
|
|
||||||
var toPropertyKey = require("./toPropertyKey.js");
|
|
||||||
function applyDecs2203RFactory() {
|
|
||||||
function createAddInitializerMethod(e, t) {
|
|
||||||
return function (r) {
|
|
||||||
!function (e, t) {
|
|
||||||
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
||||||
}(t), assertCallable(r, "An initializer"), e.push(r);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function memberDec(e, t, r, n, a, i, o, s) {
|
|
||||||
var c;
|
|
||||||
switch (a) {
|
|
||||||
case 1:
|
|
||||||
c = "accessor";
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
c = "method";
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
c = "getter";
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
c = "setter";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
c = "field";
|
|
||||||
}
|
|
||||||
var l,
|
|
||||||
u,
|
|
||||||
f = {
|
|
||||||
kind: c,
|
|
||||||
name: o ? "#" + t : toPropertyKey(t),
|
|
||||||
"static": i,
|
|
||||||
"private": o
|
|
||||||
},
|
|
||||||
p = {
|
|
||||||
v: !1
|
|
||||||
};
|
|
||||||
0 !== a && (f.addInitializer = createAddInitializerMethod(n, p)), 0 === a ? o ? (l = r.get, u = r.set) : (l = function l() {
|
|
||||||
return this[t];
|
|
||||||
}, u = function u(e) {
|
|
||||||
this[t] = e;
|
|
||||||
}) : 2 === a ? l = function l() {
|
|
||||||
return r.value;
|
|
||||||
} : (1 !== a && 3 !== a || (l = function l() {
|
|
||||||
return r.get.call(this);
|
|
||||||
}), 1 !== a && 4 !== a || (u = function u(e) {
|
|
||||||
r.set.call(this, e);
|
|
||||||
})), f.access = l && u ? {
|
|
||||||
get: l,
|
|
||||||
set: u
|
|
||||||
} : l ? {
|
|
||||||
get: l
|
|
||||||
} : {
|
|
||||||
set: u
|
|
||||||
};
|
|
||||||
try {
|
|
||||||
return e(s, f);
|
|
||||||
} finally {
|
|
||||||
p.v = !0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function assertCallable(e, t) {
|
|
||||||
if ("function" != typeof e) throw new TypeError(t + " must be a function");
|
|
||||||
}
|
|
||||||
function assertValidReturnValue(e, t) {
|
|
||||||
var r = _typeof(t);
|
|
||||||
if (1 === e) {
|
|
||||||
if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
||||||
void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init");
|
|
||||||
} else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0");
|
|
||||||
}
|
|
||||||
function applyMemberDec(e, t, r, n, a, i, o, s) {
|
|
||||||
var c,
|
|
||||||
l,
|
|
||||||
u,
|
|
||||||
f,
|
|
||||||
p,
|
|
||||||
d,
|
|
||||||
h,
|
|
||||||
v = r[0];
|
|
||||||
if (o ? (0 === a || 1 === a ? (c = {
|
|
||||||
get: r[3],
|
|
||||||
set: r[4]
|
|
||||||
}, u = "get") : 3 === a ? (c = {
|
|
||||||
get: r[3]
|
|
||||||
}, u = "get") : 4 === a ? (c = {
|
|
||||||
set: r[3]
|
|
||||||
}, u = "set") : c = {
|
|
||||||
value: r[3]
|
|
||||||
}, 0 !== a && (1 === a && setFunctionName(r[4], "#" + n, "set"), setFunctionName(r[3], "#" + n, u))) : 0 !== a && (c = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? f = {
|
|
||||||
get: c.get,
|
|
||||||
set: c.set
|
|
||||||
} : 2 === a ? f = c.value : 3 === a ? f = c.get : 4 === a && (f = c.set), "function" == typeof v) void 0 !== (p = memberDec(v, n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? l = p : 1 === a ? (l = p.init, d = p.get || f.get, h = p.set || f.set, f = {
|
|
||||||
get: d,
|
|
||||||
set: h
|
|
||||||
}) : f = p);else for (var g = v.length - 1; g >= 0; g--) {
|
|
||||||
var y;
|
|
||||||
void 0 !== (p = memberDec(v[g], n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? y = p : 1 === a ? (y = p.init, d = p.get || f.get, h = p.set || f.set, f = {
|
|
||||||
get: d,
|
|
||||||
set: h
|
|
||||||
}) : f = p, void 0 !== y && (void 0 === l ? l = y : "function" == typeof l ? l = [l, y] : l.push(y)));
|
|
||||||
}
|
|
||||||
if (0 === a || 1 === a) {
|
|
||||||
if (void 0 === l) l = function l(e, t) {
|
|
||||||
return t;
|
|
||||||
};else if ("function" != typeof l) {
|
|
||||||
var m = l;
|
|
||||||
l = function l(e, t) {
|
|
||||||
for (var r = t, n = 0; n < m.length; n++) r = m[n].call(e, r);
|
|
||||||
return r;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
var b = l;
|
|
||||||
l = function l(e, t) {
|
|
||||||
return b.call(e, t);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
e.push(l);
|
|
||||||
}
|
|
||||||
0 !== a && (1 === a ? (c.get = f.get, c.set = f.set) : 2 === a ? c.value = f : 3 === a ? c.get = f : 4 === a && (c.set = f), o ? 1 === a ? (e.push(function (e, t) {
|
|
||||||
return f.get.call(e, t);
|
|
||||||
}), e.push(function (e, t) {
|
|
||||||
return f.set.call(e, t);
|
|
||||||
})) : 2 === a ? e.push(f) : e.push(function (e, t) {
|
|
||||||
return f.call(e, t);
|
|
||||||
}) : Object.defineProperty(t, n, c));
|
|
||||||
}
|
|
||||||
function applyMemberDecs(e, t) {
|
|
||||||
for (var r, n, a = [], i = new Map(), o = new Map(), s = 0; s < t.length; s++) {
|
|
||||||
var c = t[s];
|
|
||||||
if (Array.isArray(c)) {
|
|
||||||
var l,
|
|
||||||
u,
|
|
||||||
f = c[1],
|
|
||||||
p = c[2],
|
|
||||||
d = c.length > 3,
|
|
||||||
h = f >= 5;
|
|
||||||
if (h ? (l = e, 0 != (f -= 5) && (u = n = n || [])) : (l = e.prototype, 0 !== f && (u = r = r || [])), 0 !== f && !d) {
|
|
||||||
var v = h ? o : i,
|
|
||||||
g = v.get(p) || 0;
|
|
||||||
if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p);
|
|
||||||
!g && f > 2 ? v.set(p, f) : v.set(p, !0);
|
|
||||||
}
|
|
||||||
applyMemberDec(a, l, c, p, f, h, d, u);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return pushInitializers(a, r), pushInitializers(a, n), a;
|
|
||||||
}
|
|
||||||
function pushInitializers(e, t) {
|
|
||||||
t && e.push(function (e) {
|
|
||||||
for (var r = 0; r < t.length; r++) t[r].call(e);
|
|
||||||
return e;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return function (e, t, r) {
|
|
||||||
return {
|
|
||||||
e: applyMemberDecs(e, t),
|
|
||||||
get c() {
|
|
||||||
return function (e, t) {
|
|
||||||
if (t.length > 0) {
|
|
||||||
for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) {
|
|
||||||
var o = {
|
|
||||||
v: !1
|
|
||||||
};
|
|
||||||
try {
|
|
||||||
var s = t[i](n, {
|
|
||||||
kind: "class",
|
|
||||||
name: a,
|
|
||||||
addInitializer: createAddInitializerMethod(r, o)
|
|
||||||
});
|
|
||||||
} finally {
|
|
||||||
o.v = !0;
|
|
||||||
}
|
|
||||||
void 0 !== s && (assertValidReturnValue(10, s), n = s);
|
|
||||||
}
|
|
||||||
return [n, function () {
|
|
||||||
for (var e = 0; e < r.length; e++) r[e].call(n);
|
|
||||||
}];
|
|
||||||
}
|
|
||||||
}(e, r);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function applyDecs2203R(e, t, r) {
|
|
||||||
return (module.exports = applyDecs2203R = applyDecs2203RFactory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t, r);
|
|
||||||
}
|
|
||||||
module.exports = applyDecs2203R, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,222 +0,0 @@
|
||||||
var _typeof = require("./typeof.js")["default"];
|
|
||||||
var checkInRHS = require("./checkInRHS.js");
|
|
||||||
var setFunctionName = require("./setFunctionName.js");
|
|
||||||
var toPropertyKey = require("./toPropertyKey.js");
|
|
||||||
function applyDecs2301Factory() {
|
|
||||||
function createAddInitializerMethod(e, t) {
|
|
||||||
return function (r) {
|
|
||||||
!function (e, t) {
|
|
||||||
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
||||||
}(t), assertCallable(r, "An initializer"), e.push(r);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function assertInstanceIfPrivate(e, t) {
|
|
||||||
if (!e(t)) throw new TypeError("Attempted to access private element on non-instance");
|
|
||||||
}
|
|
||||||
function memberDec(e, t, r, n, a, i, s, o, c) {
|
|
||||||
var u;
|
|
||||||
switch (a) {
|
|
||||||
case 1:
|
|
||||||
u = "accessor";
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
u = "method";
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
u = "getter";
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
u = "setter";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
u = "field";
|
|
||||||
}
|
|
||||||
var l,
|
|
||||||
f,
|
|
||||||
p = {
|
|
||||||
kind: u,
|
|
||||||
name: s ? "#" + t : toPropertyKey(t),
|
|
||||||
"static": i,
|
|
||||||
"private": s
|
|
||||||
},
|
|
||||||
d = {
|
|
||||||
v: !1
|
|
||||||
};
|
|
||||||
if (0 !== a && (p.addInitializer = createAddInitializerMethod(n, d)), s || 0 !== a && 2 !== a) {
|
|
||||||
if (2 === a) l = function l(e) {
|
|
||||||
return assertInstanceIfPrivate(c, e), r.value;
|
|
||||||
};else {
|
|
||||||
var h = 0 === a || 1 === a;
|
|
||||||
(h || 3 === a) && (l = s ? function (e) {
|
|
||||||
return assertInstanceIfPrivate(c, e), r.get.call(e);
|
|
||||||
} : function (e) {
|
|
||||||
return r.get.call(e);
|
|
||||||
}), (h || 4 === a) && (f = s ? function (e, t) {
|
|
||||||
assertInstanceIfPrivate(c, e), r.set.call(e, t);
|
|
||||||
} : function (e, t) {
|
|
||||||
r.set.call(e, t);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else l = function l(e) {
|
|
||||||
return e[t];
|
|
||||||
}, 0 === a && (f = function f(e, r) {
|
|
||||||
e[t] = r;
|
|
||||||
});
|
|
||||||
var v = s ? c.bind() : function (e) {
|
|
||||||
return t in e;
|
|
||||||
};
|
|
||||||
p.access = l && f ? {
|
|
||||||
get: l,
|
|
||||||
set: f,
|
|
||||||
has: v
|
|
||||||
} : l ? {
|
|
||||||
get: l,
|
|
||||||
has: v
|
|
||||||
} : {
|
|
||||||
set: f,
|
|
||||||
has: v
|
|
||||||
};
|
|
||||||
try {
|
|
||||||
return e(o, p);
|
|
||||||
} finally {
|
|
||||||
d.v = !0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function assertCallable(e, t) {
|
|
||||||
if ("function" != typeof e) throw new TypeError(t + " must be a function");
|
|
||||||
}
|
|
||||||
function assertValidReturnValue(e, t) {
|
|
||||||
var r = _typeof(t);
|
|
||||||
if (1 === e) {
|
|
||||||
if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
||||||
void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init");
|
|
||||||
} else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0");
|
|
||||||
}
|
|
||||||
function curryThis2(e) {
|
|
||||||
return function (t) {
|
|
||||||
e(this, t);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function applyMemberDec(e, t, r, n, a, i, s, o, c) {
|
|
||||||
var u,
|
|
||||||
l,
|
|
||||||
f,
|
|
||||||
p,
|
|
||||||
d,
|
|
||||||
h,
|
|
||||||
v,
|
|
||||||
y,
|
|
||||||
g = r[0];
|
|
||||||
if (s ? (0 === a || 1 === a ? (u = {
|
|
||||||
get: (d = r[3], function () {
|
|
||||||
return d(this);
|
|
||||||
}),
|
|
||||||
set: curryThis2(r[4])
|
|
||||||
}, f = "get") : 3 === a ? (u = {
|
|
||||||
get: r[3]
|
|
||||||
}, f = "get") : 4 === a ? (u = {
|
|
||||||
set: r[3]
|
|
||||||
}, f = "set") : u = {
|
|
||||||
value: r[3]
|
|
||||||
}, 0 !== a && (1 === a && setFunctionName(u.set, "#" + n, "set"), setFunctionName(u[f || "value"], "#" + n, f))) : 0 !== a && (u = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? p = {
|
|
||||||
get: u.get,
|
|
||||||
set: u.set
|
|
||||||
} : 2 === a ? p = u.value : 3 === a ? p = u.get : 4 === a && (p = u.set), "function" == typeof g) void 0 !== (h = memberDec(g, n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? l = h : 1 === a ? (l = h.init, v = h.get || p.get, y = h.set || p.set, p = {
|
|
||||||
get: v,
|
|
||||||
set: y
|
|
||||||
}) : p = h);else for (var m = g.length - 1; m >= 0; m--) {
|
|
||||||
var b;
|
|
||||||
void 0 !== (h = memberDec(g[m], n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? b = h : 1 === a ? (b = h.init, v = h.get || p.get, y = h.set || p.set, p = {
|
|
||||||
get: v,
|
|
||||||
set: y
|
|
||||||
}) : p = h, void 0 !== b && (void 0 === l ? l = b : "function" == typeof l ? l = [l, b] : l.push(b)));
|
|
||||||
}
|
|
||||||
if (0 === a || 1 === a) {
|
|
||||||
if (void 0 === l) l = function l(e, t) {
|
|
||||||
return t;
|
|
||||||
};else if ("function" != typeof l) {
|
|
||||||
var I = l;
|
|
||||||
l = function l(e, t) {
|
|
||||||
for (var r = t, n = 0; n < I.length; n++) r = I[n].call(e, r);
|
|
||||||
return r;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
var w = l;
|
|
||||||
l = function l(e, t) {
|
|
||||||
return w.call(e, t);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
e.push(l);
|
|
||||||
}
|
|
||||||
0 !== a && (1 === a ? (u.get = p.get, u.set = p.set) : 2 === a ? u.value = p : 3 === a ? u.get = p : 4 === a && (u.set = p), s ? 1 === a ? (e.push(function (e, t) {
|
|
||||||
return p.get.call(e, t);
|
|
||||||
}), e.push(function (e, t) {
|
|
||||||
return p.set.call(e, t);
|
|
||||||
})) : 2 === a ? e.push(p) : e.push(function (e, t) {
|
|
||||||
return p.call(e, t);
|
|
||||||
}) : Object.defineProperty(t, n, u));
|
|
||||||
}
|
|
||||||
function applyMemberDecs(e, t, r) {
|
|
||||||
for (var n, a, i, s = [], o = new Map(), c = new Map(), u = 0; u < t.length; u++) {
|
|
||||||
var l = t[u];
|
|
||||||
if (Array.isArray(l)) {
|
|
||||||
var f,
|
|
||||||
p,
|
|
||||||
d = l[1],
|
|
||||||
h = l[2],
|
|
||||||
v = l.length > 3,
|
|
||||||
y = d >= 5,
|
|
||||||
g = r;
|
|
||||||
if (y ? (f = e, 0 != (d -= 5) && (p = a = a || []), v && !i && (i = function i(t) {
|
|
||||||
return checkInRHS(t) === e;
|
|
||||||
}), g = i) : (f = e.prototype, 0 !== d && (p = n = n || [])), 0 !== d && !v) {
|
|
||||||
var m = y ? c : o,
|
|
||||||
b = m.get(h) || 0;
|
|
||||||
if (!0 === b || 3 === b && 4 !== d || 4 === b && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
|
|
||||||
!b && d > 2 ? m.set(h, d) : m.set(h, !0);
|
|
||||||
}
|
|
||||||
applyMemberDec(s, f, l, h, d, y, v, p, g);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return pushInitializers(s, n), pushInitializers(s, a), s;
|
|
||||||
}
|
|
||||||
function pushInitializers(e, t) {
|
|
||||||
t && e.push(function (e) {
|
|
||||||
for (var r = 0; r < t.length; r++) t[r].call(e);
|
|
||||||
return e;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return function (e, t, r, n) {
|
|
||||||
return {
|
|
||||||
e: applyMemberDecs(e, t, n),
|
|
||||||
get c() {
|
|
||||||
return function (e, t) {
|
|
||||||
if (t.length > 0) {
|
|
||||||
for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) {
|
|
||||||
var s = {
|
|
||||||
v: !1
|
|
||||||
};
|
|
||||||
try {
|
|
||||||
var o = t[i](n, {
|
|
||||||
kind: "class",
|
|
||||||
name: a,
|
|
||||||
addInitializer: createAddInitializerMethod(r, s)
|
|
||||||
});
|
|
||||||
} finally {
|
|
||||||
s.v = !0;
|
|
||||||
}
|
|
||||||
void 0 !== o && (assertValidReturnValue(10, o), n = o);
|
|
||||||
}
|
|
||||||
return [n, function () {
|
|
||||||
for (var e = 0; e < r.length; e++) r[e].call(n);
|
|
||||||
}];
|
|
||||||
}
|
|
||||||
}(e, r);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function applyDecs2301(e, t, r, n) {
|
|
||||||
return (module.exports = applyDecs2301 = applyDecs2301Factory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t, r, n);
|
|
||||||
}
|
|
||||||
module.exports = applyDecs2301, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,133 +0,0 @@
|
||||||
var _typeof = require("./typeof.js")["default"];
|
|
||||||
var checkInRHS = require("./checkInRHS.js");
|
|
||||||
var setFunctionName = require("./setFunctionName.js");
|
|
||||||
var toPropertyKey = require("./toPropertyKey.js");
|
|
||||||
function applyDecs2305(e, t, r, n, o, a) {
|
|
||||||
function i(e, t, r) {
|
|
||||||
return function (n, o) {
|
|
||||||
return r && r(n), e[t].call(n, o);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function c(e, t) {
|
|
||||||
for (var r = 0; r < e.length; r++) e[r].call(t);
|
|
||||||
return t;
|
|
||||||
}
|
|
||||||
function s(e, t, r, n) {
|
|
||||||
if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined"));
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) {
|
|
||||||
function m(e) {
|
|
||||||
if (!h(e)) throw new TypeError("Attempted to access private element on non-instance");
|
|
||||||
}
|
|
||||||
var y,
|
|
||||||
v = t[0],
|
|
||||||
g = t[3],
|
|
||||||
b = !u;
|
|
||||||
if (!b) {
|
|
||||||
r || Array.isArray(v) || (v = [v]);
|
|
||||||
var w = {},
|
|
||||||
S = [],
|
|
||||||
A = 3 === o ? "get" : 4 === o || d ? "set" : "value";
|
|
||||||
f ? (p || d ? w = {
|
|
||||||
get: setFunctionName(function () {
|
|
||||||
return g(this);
|
|
||||||
}, n, "get"),
|
|
||||||
set: function set(e) {
|
|
||||||
t[4](this, e);
|
|
||||||
}
|
|
||||||
} : w[A] = g, p || setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n));
|
|
||||||
}
|
|
||||||
for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) {
|
|
||||||
var D = v[j],
|
|
||||||
E = r ? v[j - 1] : void 0,
|
|
||||||
I = {},
|
|
||||||
O = {
|
|
||||||
kind: ["field", "accessor", "method", "getter", "setter", "class"][o],
|
|
||||||
name: n,
|
|
||||||
metadata: a,
|
|
||||||
addInitializer: function (e, t) {
|
|
||||||
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
||||||
s(t, "An initializer", "be", !0), c.push(t);
|
|
||||||
}.bind(null, I)
|
|
||||||
};
|
|
||||||
try {
|
|
||||||
if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else {
|
|
||||||
var k, F;
|
|
||||||
O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) {
|
|
||||||
return m(e), w.value;
|
|
||||||
} : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) {
|
|
||||||
return e[n];
|
|
||||||
}, (o < 2 || 4 === o) && (F = function F(e, t) {
|
|
||||||
e[n] = t;
|
|
||||||
}));
|
|
||||||
var N = O.access = {
|
|
||||||
has: f ? h.bind() : function (e) {
|
|
||||||
return n in e;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? {
|
|
||||||
get: w.get,
|
|
||||||
set: w.set
|
|
||||||
} : w[A], O), d) {
|
|
||||||
if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
||||||
} else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P);
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
I.v = !0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return (p || d) && u.push(function (e, t) {
|
|
||||||
for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t);
|
|
||||||
return t;
|
|
||||||
}), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P;
|
|
||||||
}
|
|
||||||
function u(e, t) {
|
|
||||||
return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), {
|
|
||||||
configurable: !0,
|
|
||||||
enumerable: !0,
|
|
||||||
value: t
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")];
|
|
||||||
var f = Object.create(null == l ? null : l),
|
|
||||||
p = function (e, t, r, n) {
|
|
||||||
var o,
|
|
||||||
a,
|
|
||||||
i = [],
|
|
||||||
s = function s(t) {
|
|
||||||
return checkInRHS(t) === e;
|
|
||||||
},
|
|
||||||
u = new Map();
|
|
||||||
function l(e) {
|
|
||||||
e && i.push(c.bind(null, e));
|
|
||||||
}
|
|
||||||
for (var f = 0; f < t.length; f++) {
|
|
||||||
var p = t[f];
|
|
||||||
if (Array.isArray(p)) {
|
|
||||||
var d = p[1],
|
|
||||||
h = p[2],
|
|
||||||
m = p.length > 3,
|
|
||||||
y = 16 & d,
|
|
||||||
v = !!(8 & d),
|
|
||||||
g = 0 == (d &= 7),
|
|
||||||
b = h + "/" + v;
|
|
||||||
if (!g && !m) {
|
|
||||||
var w = u.get(b);
|
|
||||||
if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
|
|
||||||
u.set(b, !(d > 2) || d);
|
|
||||||
}
|
|
||||||
applyDec(v ? e : e.prototype, p, y, m ? "#" + h : toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return l(o), l(a), i;
|
|
||||||
}(e, t, o, f);
|
|
||||||
return r.length || u(e, f), {
|
|
||||||
e: p,
|
|
||||||
get c() {
|
|
||||||
var t = [];
|
|
||||||
return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
module.exports = applyDecs2305, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,124 +0,0 @@
|
||||||
var _typeof = require("./typeof.js")["default"];
|
|
||||||
var checkInRHS = require("./checkInRHS.js");
|
|
||||||
var setFunctionName = require("./setFunctionName.js");
|
|
||||||
var toPropertyKey = require("./toPropertyKey.js");
|
|
||||||
function applyDecs2311(e, t, n, r, o, i) {
|
|
||||||
var a,
|
|
||||||
c,
|
|
||||||
u,
|
|
||||||
s,
|
|
||||||
f,
|
|
||||||
l,
|
|
||||||
p,
|
|
||||||
d = Symbol.metadata || Symbol["for"]("Symbol.metadata"),
|
|
||||||
m = Object.defineProperty,
|
|
||||||
h = Object.create,
|
|
||||||
y = [h(null), h(null)],
|
|
||||||
v = t.length;
|
|
||||||
function g(t, n, r) {
|
|
||||||
return function (o, i) {
|
|
||||||
n && (i = o, o = e);
|
|
||||||
for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []);
|
|
||||||
return r ? i : o;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function b(e, t, n, r) {
|
|
||||||
if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
function applyDec(e, t, n, r, o, i, u, s, f, l, p) {
|
|
||||||
function d(e) {
|
|
||||||
if (!p(e)) throw new TypeError("Attempted to access private element on non-instance");
|
|
||||||
}
|
|
||||||
var h = [].concat(t[0]),
|
|
||||||
v = t[3],
|
|
||||||
w = !u,
|
|
||||||
D = 1 === o,
|
|
||||||
S = 3 === o,
|
|
||||||
j = 4 === o,
|
|
||||||
E = 2 === o;
|
|
||||||
function I(t, n, r) {
|
|
||||||
return function (o, i) {
|
|
||||||
return n && (i = o, o = e), r && r(o), P[t].call(o, i);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
if (!w) {
|
|
||||||
var P = {},
|
|
||||||
k = [],
|
|
||||||
F = S ? "get" : j || D ? "set" : "value";
|
|
||||||
if (f ? (l || D ? P = {
|
|
||||||
get: setFunctionName(function () {
|
|
||||||
return v(this);
|
|
||||||
}, r, "get"),
|
|
||||||
set: function set(e) {
|
|
||||||
t[4](this, e);
|
|
||||||
}
|
|
||||||
} : P[F] = v, l || setFunctionName(P[F], r, E ? "" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) {
|
|
||||||
if ((c = y[+s][r]) && 7 != (c ^ o)) throw Error("Decorating two elements with the same name (" + P[F].name + ") is not supported yet");
|
|
||||||
y[+s][r] = o < 3 ? 1 : o;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) {
|
|
||||||
var z = b(h[O], "A decorator", "be", !0),
|
|
||||||
A = n ? h[O - 1] : void 0,
|
|
||||||
H = {},
|
|
||||||
K = {
|
|
||||||
kind: ["field", "accessor", "method", "getter", "setter", "class"][o],
|
|
||||||
name: r,
|
|
||||||
metadata: a,
|
|
||||||
addInitializer: function (e, t) {
|
|
||||||
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
||||||
b(t, "An initializer", "be", !0), i.push(t);
|
|
||||||
}.bind(null, H)
|
|
||||||
};
|
|
||||||
if (w) c = z.call(A, N, K), H.v = 1, b(c, "class decorators", "return") && (N = c);else if (K["static"] = s, K["private"] = f, c = K.access = {
|
|
||||||
has: f ? p.bind() : function (e) {
|
|
||||||
return r in e;
|
|
||||||
}
|
|
||||||
}, j || (c.get = f ? E ? function (e) {
|
|
||||||
return d(e), P.value;
|
|
||||||
} : I("get", 0, d) : function (e) {
|
|
||||||
return e[r];
|
|
||||||
}), E || S || (c.set = f ? I("set", 0, d) : function (e, t) {
|
|
||||||
e[r] = t;
|
|
||||||
}), N = z.call(A, D ? {
|
|
||||||
get: P.get,
|
|
||||||
set: P.set
|
|
||||||
} : P[F], K), H.v = 1, D) {
|
|
||||||
if ("object" == _typeof(N) && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && k.unshift(c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined");
|
|
||||||
} else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? k.unshift(N) : P[F] = N);
|
|
||||||
}
|
|
||||||
return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I("get", s), I("set", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N;
|
|
||||||
}
|
|
||||||
function w(e) {
|
|
||||||
return m(e, d, {
|
|
||||||
configurable: !0,
|
|
||||||
enumerable: !0,
|
|
||||||
value: a
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) {
|
|
||||||
e && f.push(g(e));
|
|
||||||
}, p = function p(t, r) {
|
|
||||||
for (var i = 0; i < n.length; i++) {
|
|
||||||
var a = n[i],
|
|
||||||
c = a[1],
|
|
||||||
l = 7 & c;
|
|
||||||
if ((8 & c) == t && !l == r) {
|
|
||||||
var p = a[2],
|
|
||||||
d = !!a[3],
|
|
||||||
m = 16 & c;
|
|
||||||
applyDec(t ? e : e.prototype, a, m, d ? "#" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) {
|
|
||||||
return checkInRHS(t) === e;
|
|
||||||
} : o);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), {
|
|
||||||
e: c,
|
|
||||||
get c() {
|
|
||||||
var n = [];
|
|
||||||
return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
module.exports = applyDecs2311, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,6 +0,0 @@
|
||||||
function _arrayLikeToArray(arr, len) {
|
|
||||||
if (len == null || len > arr.length) len = arr.length;
|
|
||||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
||||||
return arr2;
|
|
||||||
}
|
|
||||||
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,4 +0,0 @@
|
||||||
function _arrayWithHoles(arr) {
|
|
||||||
if (Array.isArray(arr)) return arr;
|
|
||||||
}
|
|
||||||
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,5 +0,0 @@
|
||||||
var arrayLikeToArray = require("./arrayLikeToArray.js");
|
|
||||||
function _arrayWithoutHoles(arr) {
|
|
||||||
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
|
||||||
}
|
|
||||||
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,5 +0,0 @@
|
||||||
function _assertClassBrand(e, t, n) {
|
|
||||||
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
||||||
throw new TypeError("Private element is not present on this object");
|
|
||||||
}
|
|
||||||
module.exports = _assertClassBrand, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,7 +0,0 @@
|
||||||
function _assertThisInitialized(self) {
|
|
||||||
if (self === void 0) {
|
|
||||||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
||||||
}
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,24 +0,0 @@
|
||||||
var OverloadYield = require("./OverloadYield.js");
|
|
||||||
function _asyncGeneratorDelegate(t) {
|
|
||||||
var e = {},
|
|
||||||
n = !1;
|
|
||||||
function pump(e, r) {
|
|
||||||
return n = !0, r = new Promise(function (n) {
|
|
||||||
n(t[e](r));
|
|
||||||
}), {
|
|
||||||
done: !1,
|
|
||||||
value: new OverloadYield(r, 1)
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () {
|
|
||||||
return this;
|
|
||||||
}, e.next = function (t) {
|
|
||||||
return n ? (n = !1, t) : pump("next", t);
|
|
||||||
}, "function" == typeof t["throw"] && (e["throw"] = function (t) {
|
|
||||||
if (n) throw n = !1, t;
|
|
||||||
return pump("throw", t);
|
|
||||||
}), "function" == typeof t["return"] && (e["return"] = function (t) {
|
|
||||||
return n ? (n = !1, t) : pump("return", t);
|
|
||||||
}), e;
|
|
||||||
}
|
|
||||||
module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,45 +0,0 @@
|
||||||
function _asyncIterator(r) {
|
|
||||||
var n,
|
|
||||||
t,
|
|
||||||
o,
|
|
||||||
e = 2;
|
|
||||||
for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) {
|
|
||||||
if (t && null != (n = r[t])) return n.call(r);
|
|
||||||
if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r));
|
|
||||||
t = "@@asyncIterator", o = "@@iterator";
|
|
||||||
}
|
|
||||||
throw new TypeError("Object is not async iterable");
|
|
||||||
}
|
|
||||||
function AsyncFromSyncIterator(r) {
|
|
||||||
function AsyncFromSyncIteratorContinuation(r) {
|
|
||||||
if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object."));
|
|
||||||
var n = r.done;
|
|
||||||
return Promise.resolve(r.value).then(function (r) {
|
|
||||||
return {
|
|
||||||
value: r,
|
|
||||||
done: n
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) {
|
|
||||||
this.s = r, this.n = r.next;
|
|
||||||
}, AsyncFromSyncIterator.prototype = {
|
|
||||||
s: null,
|
|
||||||
n: null,
|
|
||||||
next: function next() {
|
|
||||||
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
|
|
||||||
},
|
|
||||||
"return": function _return(r) {
|
|
||||||
var n = this.s["return"];
|
|
||||||
return void 0 === n ? Promise.resolve({
|
|
||||||
value: r,
|
|
||||||
done: !0
|
|
||||||
}) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
|
|
||||||
},
|
|
||||||
"throw": function _throw(r) {
|
|
||||||
var n = this.s["return"];
|
|
||||||
return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
|
|
||||||
}
|
|
||||||
}, new AsyncFromSyncIterator(r);
|
|
||||||
}
|
|
||||||
module.exports = _asyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,31 +0,0 @@
|
||||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
||||||
try {
|
|
||||||
var info = gen[key](arg);
|
|
||||||
var value = info.value;
|
|
||||||
} catch (error) {
|
|
||||||
reject(error);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (info.done) {
|
|
||||||
resolve(value);
|
|
||||||
} else {
|
|
||||||
Promise.resolve(value).then(_next, _throw);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function _asyncToGenerator(fn) {
|
|
||||||
return function () {
|
|
||||||
var self = this,
|
|
||||||
args = arguments;
|
|
||||||
return new Promise(function (resolve, reject) {
|
|
||||||
var gen = fn.apply(self, args);
|
|
||||||
function _next(value) {
|
|
||||||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
||||||
}
|
|
||||||
function _throw(err) {
|
|
||||||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
||||||
}
|
|
||||||
_next(undefined);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
|
||||||
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,5 +0,0 @@
|
||||||
var OverloadYield = require("./OverloadYield.js");
|
|
||||||
function _awaitAsyncGenerator(e) {
|
|
||||||
return new OverloadYield(e, 0);
|
|
||||||
}
|
|
||||||
module.exports = _awaitAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,7 +0,0 @@
|
||||||
var getPrototypeOf = require("./getPrototypeOf.js");
|
|
||||||
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
|
|
||||||
var possibleConstructorReturn = require("./possibleConstructorReturn.js");
|
|
||||||
function _callSuper(t, o, e) {
|
|
||||||
return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
||||||
}
|
|
||||||
module.exports = _callSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,6 +0,0 @@
|
||||||
var _typeof = require("./typeof.js")["default"];
|
|
||||||
function _checkInRHS(e) {
|
|
||||||
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null"));
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
module.exports = _checkInRHS, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,6 +0,0 @@
|
||||||
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
||||||
if (privateCollection.has(obj)) {
|
|
||||||
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
module.exports = _checkPrivateRedeclaration, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,18 +0,0 @@
|
||||||
function _classApplyDescriptorDestructureSet(receiver, descriptor) {
|
|
||||||
if (descriptor.set) {
|
|
||||||
if (!("__destrObj" in descriptor)) {
|
|
||||||
descriptor.__destrObj = {
|
|
||||||
set value(v) {
|
|
||||||
descriptor.set.call(receiver, v);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return descriptor.__destrObj;
|
|
||||||
} else {
|
|
||||||
if (!descriptor.writable) {
|
|
||||||
throw new TypeError("attempted to set read only private field");
|
|
||||||
}
|
|
||||||
return descriptor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
module.exports = _classApplyDescriptorDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,7 +0,0 @@
|
||||||
function _classApplyDescriptorGet(receiver, descriptor) {
|
|
||||||
if (descriptor.get) {
|
|
||||||
return descriptor.get.call(receiver);
|
|
||||||
}
|
|
||||||
return descriptor.value;
|
|
||||||
}
|
|
||||||
module.exports = _classApplyDescriptorGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,11 +0,0 @@
|
||||||
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
|
||||||
if (descriptor.set) {
|
|
||||||
descriptor.set.call(receiver, value);
|
|
||||||
} else {
|
|
||||||
if (!descriptor.writable) {
|
|
||||||
throw new TypeError("attempted to set read only private field");
|
|
||||||
}
|
|
||||||
descriptor.value = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
module.exports = _classApplyDescriptorSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,6 +0,0 @@
|
||||||
function _classCallCheck(instance, Constructor) {
|
|
||||||
if (!(instance instanceof Constructor)) {
|
|
||||||
throw new TypeError("Cannot call a class as a function");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,5 +0,0 @@
|
||||||
var assertClassBrand = require("./assertClassBrand.js");
|
|
||||||
function _classCheckPrivateStaticAccess(receiver, classConstructor, returnValue) {
|
|
||||||
return assertClassBrand(classConstructor, receiver, returnValue);
|
|
||||||
}
|
|
||||||
module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,6 +0,0 @@
|
||||||
function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
|
||||||
if (descriptor === undefined) {
|
|
||||||
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
module.exports = _classCheckPrivateStaticFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,5 +0,0 @@
|
||||||
var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js");
|
|
||||||
function _classExtractFieldDescriptor(receiver, privateMap) {
|
|
||||||
return classPrivateFieldGet2(privateMap, receiver);
|
|
||||||
}
|
|
||||||
module.exports = _classExtractFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,4 +0,0 @@
|
||||||
function _classNameTDZError(name) {
|
|
||||||
throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys.");
|
|
||||||
}
|
|
||||||
module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,7 +0,0 @@
|
||||||
var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js");
|
|
||||||
var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js");
|
|
||||||
function _classPrivateFieldDestructureSet(receiver, privateMap) {
|
|
||||||
var descriptor = classPrivateFieldGet2(privateMap, receiver);
|
|
||||||
return classApplyDescriptorDestructureSet(receiver, descriptor);
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,7 +0,0 @@
|
||||||
var classApplyDescriptorGet = require("./classApplyDescriptorGet.js");
|
|
||||||
var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js");
|
|
||||||
function _classPrivateFieldGet(receiver, privateMap) {
|
|
||||||
var descriptor = classPrivateFieldGet2(privateMap, receiver);
|
|
||||||
return classApplyDescriptorGet(receiver, descriptor);
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateFieldGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,5 +0,0 @@
|
||||||
var assertClassBrand = require("./assertClassBrand.js");
|
|
||||||
function _classPrivateFieldGet2(s, a) {
|
|
||||||
return s.get(assertClassBrand(s, a));
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateFieldGet2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,6 +0,0 @@
|
||||||
var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js");
|
|
||||||
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
||||||
checkPrivateRedeclaration(obj, privateMap);
|
|
||||||
privateMap.set(obj, value);
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateFieldInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,7 +0,0 @@
|
||||||
function _classPrivateFieldBase(receiver, privateKey) {
|
|
||||||
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
|
|
||||||
throw new TypeError("attempted to use private field on non-instance");
|
|
||||||
}
|
|
||||||
return receiver;
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,5 +0,0 @@
|
||||||
var id = 0;
|
|
||||||
function _classPrivateFieldKey(name) {
|
|
||||||
return "__private_" + id++ + "_" + name;
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,8 +0,0 @@
|
||||||
var classApplyDescriptorSet = require("./classApplyDescriptorSet.js");
|
|
||||||
var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js");
|
|
||||||
function _classPrivateFieldSet(receiver, privateMap, value) {
|
|
||||||
var descriptor = classPrivateFieldGet2(privateMap, receiver);
|
|
||||||
classApplyDescriptorSet(receiver, descriptor, value);
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateFieldSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,5 +0,0 @@
|
||||||
var assertClassBrand = require("./assertClassBrand.js");
|
|
||||||
function _classPrivateFieldSet2(s, a, r) {
|
|
||||||
return s.set(assertClassBrand(s, a), r), r;
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateFieldSet2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,5 +0,0 @@
|
||||||
var assertClassBrand = require("./assertClassBrand.js");
|
|
||||||
function _classPrivateGetter(s, r, a) {
|
|
||||||
return a(assertClassBrand(s, r));
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateGetter, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,6 +0,0 @@
|
||||||
var assertClassBrand = require("./assertClassBrand.js");
|
|
||||||
function _classPrivateMethodGet(receiver, privateSet, fn) {
|
|
||||||
assertClassBrand(privateSet, receiver);
|
|
||||||
return fn;
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,6 +0,0 @@
|
||||||
var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js");
|
|
||||||
function _classPrivateMethodInitSpec(obj, privateSet) {
|
|
||||||
checkPrivateRedeclaration(obj, privateSet);
|
|
||||||
privateSet.add(obj);
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateMethodInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,4 +0,0 @@
|
||||||
function _classPrivateMethodSet() {
|
|
||||||
throw new TypeError("attempted to reassign private method");
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
@ -1,5 +0,0 @@
|
||||||
var assertClassBrand = require("./assertClassBrand.js");
|
|
||||||
function _classPrivateSetter(s, r, a, t) {
|
|
||||||
return r(assertClassBrand(s, a), t), t;
|
|
||||||
}
|
|
||||||
module.exports = _classPrivateSetter, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue