Init
This commit is contained in:
parent
ac273655e6
commit
a8b82208f7
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
# Use Node.js Alpine image
|
||||
FROM node:18-alpine
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package.json package-lock.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci --only=production
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8080
|
||||
|
||||
# Start the application
|
||||
CMD ["npm", "start"]
|
13
README.md
13
README.md
@ -1,3 +1,12 @@
|
||||
# linktree
|
||||
Each link is defined in src/assets/links.toml. The format should be:
|
||||
|
||||
A beautiful Linktree app. Written in Preact
|
||||
```toml
|
||||
[[links]]
|
||||
id = "Name of Website"
|
||||
icon = "local Icon link (src/assets/icons) or link to picture"
|
||||
[links.config]
|
||||
title = "Title of the Link"
|
||||
link = "local redirect (e.g. /jupyter -> <window.origin>/jupyter)"
|
||||
description = "Description of the link"
|
||||
tags = [ "Tag1", "Tag2", ...]
|
||||
```
|
||||
|
25
compose.yml
Normal file
25
compose.yml
Normal file
@ -0,0 +1,25 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
preact-linktree:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- ./links:/app/links:ro
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
restart: unless-stopped
|
||||
|
||||
# Optional: nginx proxy for production
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
depends_on:
|
||||
- preact-linktree
|
||||
restart: unless-stopped
|
||||
profiles:
|
||||
- production
|
61
flake.lock
Normal file
61
flake.lock
Normal file
@ -0,0 +1,61 @@
|
||||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1749285348,
|
||||
"narHash": "sha256-frdhQvPbmDYaScPFiCnfdh3B/Vh81Uuoo0w5TkWmmjU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "3e3afe5174c561dee0df6f2c2b2236990146329f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
57
flake.nix
Normal file
57
flake.nix
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
description = "Preact Linktree Application";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
nodejs_24
|
||||
npm-check-updates
|
||||
docker
|
||||
docker-compose
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo "Preact Linktree Development Environment"
|
||||
echo "Node.js version: $(node --version)"
|
||||
echo "npm version: $(npm --version)"
|
||||
echo ""
|
||||
echo "Available commands:"
|
||||
echo " npm install - Install dependencies"
|
||||
echo " npm run dev - Start development server"
|
||||
echo " npm run build - Build for production"
|
||||
echo " docker build . -t preact-linktree - Build Docker image"
|
||||
echo " docker run -p 8080:8080 preact-linktree - Run Docker container"
|
||||
fish
|
||||
'';
|
||||
};
|
||||
|
||||
packages.default = pkgs.stdenv.mkDerivation {
|
||||
pname = "preact-linktree";
|
||||
version = "1.0.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
buildInputs = [ pkgs.nodejs_18 ];
|
||||
|
||||
buildPhase = ''
|
||||
npm ci
|
||||
npm run build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r dist/* $out/
|
||||
'';
|
||||
};
|
||||
});
|
||||
}
|
12
index.html
Normal file
12
index.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Linktree</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script prerender type="module" src="/src/index.jsx"></script>
|
||||
</body>
|
||||
</html>
|
4
links/blog/config.yaml
Normal file
4
links/blog/config.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
title: "Tech Blog"
|
||||
link: "https://yourblog.com"
|
||||
description: "Read my thoughts on technology, programming, and life experiences. Deep dives into development practices and industry insights."
|
||||
short: "Technical writing and insights"
|
4
links/email/config.yaml
Normal file
4
links/email/config.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
title: "Email Contact"
|
||||
link: "mailto:hello@yourdomain.com"
|
||||
description: "Get in touch with me directly via email for collaborations, questions, or just to say hello!"
|
||||
short: "Direct communication"
|
4
links/github/config.yaml
Normal file
4
links/github/config.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
title: "GitHub Profile"
|
||||
link: "https://github.com/yourusername"
|
||||
description: "Check out my open source projects and contributions to the community. From web applications to system tools, explore my code repositories."
|
||||
short: "Code repositories and projects"
|
4
links/linkedin/config.yaml
Normal file
4
links/linkedin/config.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
title: "LinkedIn Profile"
|
||||
link: "https://linkedin.com/in/yourprofile"
|
||||
description: "Connect with me professionally and see my career journey. Let's network and explore opportunities together."
|
||||
short: "Professional networking"
|
4
links/portfolio/config.yaml
Normal file
4
links/portfolio/config.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
title: "Portfolio Website"
|
||||
link: "https://yourportfolio.com"
|
||||
description: "Showcase of my work, projects, and creative endeavors. Explore my professional experience and featured projects."
|
||||
short: "Professional portfolio"
|
4
links/youtube/config.yaml
Normal file
4
links/youtube/config.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
title: "My YouTube Channel"
|
||||
link: "https://youtube.com/@yourchannel"
|
||||
description: "Subscribe to my YouTube channel for tutorials on programming, tech reviews, and coding tips. New videos every week covering web development, NixOS, Docker, and more!"
|
||||
short: "Tech tutorials and programming content"
|
0
nginx.conf
Normal file
0
nginx.conf
Normal file
1
node_modules/.bin/browserslist
generated
vendored
Symbolic link
1
node_modules/.bin/browserslist
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../browserslist/cli.js
|
1
node_modules/.bin/esbuild
generated
vendored
Symbolic link
1
node_modules/.bin/esbuild
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../esbuild/bin/esbuild
|
1
node_modules/.bin/he
generated
vendored
Symbolic link
1
node_modules/.bin/he
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../he/bin/he
|
1
node_modules/.bin/js-yaml
generated
vendored
Symbolic link
1
node_modules/.bin/js-yaml
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../js-yaml/bin/js-yaml.js
|
1
node_modules/.bin/jsesc
generated
vendored
Symbolic link
1
node_modules/.bin/jsesc
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../jsesc/bin/jsesc
|
1
node_modules/.bin/json5
generated
vendored
Symbolic link
1
node_modules/.bin/json5
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../json5/lib/cli.js
|
1
node_modules/.bin/nanoid
generated
vendored
Symbolic link
1
node_modules/.bin/nanoid
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../nanoid/bin/nanoid.cjs
|
1
node_modules/.bin/parser
generated
vendored
Symbolic link
1
node_modules/.bin/parser
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../@babel/parser/bin/babel-parser.js
|
1
node_modules/.bin/rollup
generated
vendored
Symbolic link
1
node_modules/.bin/rollup
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../rollup/dist/bin/rollup
|
1
node_modules/.bin/semver
generated
vendored
Symbolic link
1
node_modules/.bin/semver
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../semver/bin/semver.js
|
1
node_modules/.bin/update-browserslist-db
generated
vendored
Symbolic link
1
node_modules/.bin/update-browserslist-db
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../update-browserslist-db/cli.js
|
1
node_modules/.bin/vite
generated
vendored
Symbolic link
1
node_modules/.bin/vite
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../vite/bin/vite.js
|
2093
node_modules/.package-lock.json
generated
vendored
Normal file
2093
node_modules/.package-lock.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
100
node_modules/.vite/deps/_metadata.json
generated
vendored
Normal file
100
node_modules/.vite/deps/_metadata.json
generated
vendored
Normal file
@ -0,0 +1,100 @@
|
||||
{
|
||||
"hash": "339b1334",
|
||||
"configHash": "742ac490",
|
||||
"lockfileHash": "7d445b7e",
|
||||
"browserHash": "8ec1e9b2",
|
||||
"optimized": {
|
||||
"preact": {
|
||||
"src": "../../preact/dist/preact.module.js",
|
||||
"file": "preact.js",
|
||||
"fileHash": "3d208919",
|
||||
"needsInterop": false
|
||||
},
|
||||
"preact/jsx-runtime": {
|
||||
"src": "../../preact/jsx-runtime/dist/jsxRuntime.module.js",
|
||||
"file": "preact_jsx-runtime.js",
|
||||
"fileHash": "1229a945",
|
||||
"needsInterop": false
|
||||
},
|
||||
"preact/jsx-dev-runtime": {
|
||||
"src": "../../preact/jsx-runtime/dist/jsxRuntime.module.js",
|
||||
"file": "preact_jsx-dev-runtime.js",
|
||||
"fileHash": "5192533b",
|
||||
"needsInterop": false
|
||||
},
|
||||
"preact/debug": {
|
||||
"src": "../../preact/debug/dist/debug.module.js",
|
||||
"file": "preact_debug.js",
|
||||
"fileHash": "9d8ba6db",
|
||||
"needsInterop": false
|
||||
},
|
||||
"preact/devtools": {
|
||||
"src": "../../preact/devtools/dist/devtools.module.js",
|
||||
"file": "preact_devtools.js",
|
||||
"fileHash": "24bafedb",
|
||||
"needsInterop": false
|
||||
},
|
||||
"js-yaml": {
|
||||
"src": "../../js-yaml/dist/js-yaml.mjs",
|
||||
"file": "js-yaml.js",
|
||||
"fileHash": "f8520d1c",
|
||||
"needsInterop": false
|
||||
},
|
||||
"preact-iso": {
|
||||
"src": "../../preact-iso/src/index.js",
|
||||
"file": "preact-iso.js",
|
||||
"fileHash": "daf73d8b",
|
||||
"needsInterop": false
|
||||
},
|
||||
"preact/hooks": {
|
||||
"src": "../../preact/hooks/dist/hooks.module.js",
|
||||
"file": "preact_hooks.js",
|
||||
"fileHash": "62a82ea5",
|
||||
"needsInterop": false
|
||||
},
|
||||
"react-highlight": {
|
||||
"src": "../../react-highlight/index.js",
|
||||
"file": "react-highlight.js",
|
||||
"fileHash": "94fdb516",
|
||||
"needsInterop": true
|
||||
},
|
||||
"chart.js": {
|
||||
"src": "../../chart.js/dist/chart.js",
|
||||
"file": "chart__js.js",
|
||||
"fileHash": "07e990d3",
|
||||
"needsInterop": false
|
||||
},
|
||||
"react-chartjs-2": {
|
||||
"src": "../../react-chartjs-2/dist/index.js",
|
||||
"file": "react-chartjs-2.js",
|
||||
"fileHash": "5fc07a3e",
|
||||
"needsInterop": false
|
||||
}
|
||||
},
|
||||
"chunks": {
|
||||
"prerender-BA576TZW": {
|
||||
"file": "prerender-BA576TZW.js"
|
||||
},
|
||||
"chunk-AAFB4U5C": {
|
||||
"file": "chunk-AAFB4U5C.js"
|
||||
},
|
||||
"chunk-O5MKVYJX": {
|
||||
"file": "chunk-O5MKVYJX.js"
|
||||
},
|
||||
"chunk-44JN52BC": {
|
||||
"file": "chunk-44JN52BC.js"
|
||||
},
|
||||
"chunk-BNEGSWOM": {
|
||||
"file": "chunk-BNEGSWOM.js"
|
||||
},
|
||||
"chunk-2PFVE7YK": {
|
||||
"file": "chunk-2PFVE7YK.js"
|
||||
},
|
||||
"chunk-453BAUPL": {
|
||||
"file": "chunk-453BAUPL.js"
|
||||
},
|
||||
"chunk-BYYN2XO5": {
|
||||
"file": "chunk-BYYN2XO5.js"
|
||||
}
|
||||
}
|
||||
}
|
99
node_modules/.vite/deps/chart__js.js
generated
vendored
Normal file
99
node_modules/.vite/deps/chart__js.js
generated
vendored
Normal file
@ -0,0 +1,99 @@
|
||||
import {
|
||||
Animation,
|
||||
Animations,
|
||||
ArcElement,
|
||||
BarController,
|
||||
BarElement,
|
||||
BasePlatform,
|
||||
BasicPlatform,
|
||||
BubbleController,
|
||||
CategoryScale,
|
||||
Chart,
|
||||
DatasetController,
|
||||
DomPlatform,
|
||||
DoughnutController,
|
||||
Element,
|
||||
Interaction,
|
||||
LineController,
|
||||
LineElement,
|
||||
LinearScale,
|
||||
LogarithmicScale,
|
||||
PieController,
|
||||
PointElement,
|
||||
PolarAreaController,
|
||||
RadarController,
|
||||
RadialLinearScale,
|
||||
Scale,
|
||||
ScatterController,
|
||||
Ticks,
|
||||
TimeScale,
|
||||
TimeSeriesScale,
|
||||
_detectPlatform,
|
||||
adapters,
|
||||
animator,
|
||||
controllers,
|
||||
defaults,
|
||||
elements,
|
||||
index,
|
||||
layouts,
|
||||
plugin_colors,
|
||||
plugin_decimation,
|
||||
plugin_legend,
|
||||
plugin_subtitle,
|
||||
plugin_title,
|
||||
plugin_tooltip,
|
||||
plugins,
|
||||
registerables,
|
||||
registry,
|
||||
scales
|
||||
} from "./chunk-44JN52BC.js";
|
||||
import "./chunk-BYYN2XO5.js";
|
||||
export {
|
||||
Animation,
|
||||
Animations,
|
||||
ArcElement,
|
||||
BarController,
|
||||
BarElement,
|
||||
BasePlatform,
|
||||
BasicPlatform,
|
||||
BubbleController,
|
||||
CategoryScale,
|
||||
Chart,
|
||||
plugin_colors as Colors,
|
||||
DatasetController,
|
||||
plugin_decimation as Decimation,
|
||||
DomPlatform,
|
||||
DoughnutController,
|
||||
Element,
|
||||
index as Filler,
|
||||
Interaction,
|
||||
plugin_legend as Legend,
|
||||
LineController,
|
||||
LineElement,
|
||||
LinearScale,
|
||||
LogarithmicScale,
|
||||
PieController,
|
||||
PointElement,
|
||||
PolarAreaController,
|
||||
RadarController,
|
||||
RadialLinearScale,
|
||||
Scale,
|
||||
ScatterController,
|
||||
plugin_subtitle as SubTitle,
|
||||
Ticks,
|
||||
TimeScale,
|
||||
TimeSeriesScale,
|
||||
plugin_title as Title,
|
||||
plugin_tooltip as Tooltip,
|
||||
adapters as _adapters,
|
||||
_detectPlatform,
|
||||
animator,
|
||||
controllers,
|
||||
defaults,
|
||||
elements,
|
||||
layouts,
|
||||
plugins,
|
||||
registerables,
|
||||
registry,
|
||||
scales
|
||||
};
|
7
node_modules/.vite/deps/chart__js.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/chart__js.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
87
node_modules/.vite/deps/chunk-2PFVE7YK.js
generated
vendored
Normal file
87
node_modules/.vite/deps/chunk-2PFVE7YK.js
generated
vendored
Normal file
@ -0,0 +1,87 @@
|
||||
import {
|
||||
init_preact_module,
|
||||
k,
|
||||
l
|
||||
} from "./chunk-453BAUPL.js";
|
||||
|
||||
// node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
|
||||
init_preact_module();
|
||||
init_preact_module();
|
||||
var t = /["&<]/;
|
||||
function n(r) {
|
||||
if (0 === r.length || false === t.test(r)) return r;
|
||||
for (var e = 0, n2 = 0, o2 = "", f2 = ""; n2 < r.length; n2++) {
|
||||
switch (r.charCodeAt(n2)) {
|
||||
case 34:
|
||||
f2 = """;
|
||||
break;
|
||||
case 38:
|
||||
f2 = "&";
|
||||
break;
|
||||
case 60:
|
||||
f2 = "<";
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
n2 !== e && (o2 += r.slice(e, n2)), o2 += f2, e = n2 + 1;
|
||||
}
|
||||
return n2 !== e && (o2 += r.slice(e, n2)), o2;
|
||||
}
|
||||
var o = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
||||
var f = 0;
|
||||
var i = Array.isArray;
|
||||
function u(e, t2, n2, o2, i2, u2) {
|
||||
t2 || (t2 = {});
|
||||
var a2, c2, p2 = t2;
|
||||
if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
|
||||
var l3 = { type: e, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f, __i: -1, __u: 0, __source: i2, __self: u2 };
|
||||
if ("function" == typeof e && (a2 = e.defaultProps)) for (c2 in a2) void 0 === p2[c2] && (p2[c2] = a2[c2]);
|
||||
return l.vnode && l.vnode(l3), l3;
|
||||
}
|
||||
function a(r) {
|
||||
var t2 = u(k, { tpl: r, exprs: [].slice.call(arguments, 1) });
|
||||
return t2.key = t2.__v, t2;
|
||||
}
|
||||
var c = {};
|
||||
var p = /[A-Z]/g;
|
||||
function l2(e, t2) {
|
||||
if (l.attr) {
|
||||
var f2 = l.attr(e, t2);
|
||||
if ("string" == typeof f2) return f2;
|
||||
}
|
||||
if (t2 = function(r) {
|
||||
return null !== r && "object" == typeof r && "function" == typeof r.valueOf ? r.valueOf() : r;
|
||||
}(t2), "ref" === e || "key" === e) return "";
|
||||
if ("style" === e && "object" == typeof t2) {
|
||||
var i2 = "";
|
||||
for (var u2 in t2) {
|
||||
var a2 = t2[u2];
|
||||
if (null != a2 && "" !== a2) {
|
||||
var l3 = "-" == u2[0] ? u2 : c[u2] || (c[u2] = u2.replace(p, "-$&").toLowerCase()), s2 = ";";
|
||||
"number" != typeof a2 || l3.startsWith("--") || o.test(l3) || (s2 = "px;"), i2 = i2 + l3 + ":" + a2 + s2;
|
||||
}
|
||||
}
|
||||
return e + '="' + n(i2) + '"';
|
||||
}
|
||||
return null == t2 || false === t2 || "function" == typeof t2 || "object" == typeof t2 ? "" : true === t2 ? e : e + '="' + n("" + t2) + '"';
|
||||
}
|
||||
function s(r) {
|
||||
if (null == r || "boolean" == typeof r || "function" == typeof r) return null;
|
||||
if ("object" == typeof r) {
|
||||
if (void 0 === r.constructor) return r;
|
||||
if (i(r)) {
|
||||
for (var e = 0; e < r.length; e++) r[e] = s(r[e]);
|
||||
return r;
|
||||
}
|
||||
}
|
||||
return n("" + r);
|
||||
}
|
||||
|
||||
export {
|
||||
u,
|
||||
a,
|
||||
l2 as l,
|
||||
s
|
||||
};
|
||||
//# sourceMappingURL=chunk-2PFVE7YK.js.map
|
7
node_modules/.vite/deps/chunk-2PFVE7YK.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/chunk-2PFVE7YK.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
14438
node_modules/.vite/deps/chunk-44JN52BC.js
generated
vendored
Normal file
14438
node_modules/.vite/deps/chunk-44JN52BC.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
node_modules/.vite/deps/chunk-44JN52BC.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/chunk-44JN52BC.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
309
node_modules/.vite/deps/chunk-453BAUPL.js
generated
vendored
Normal file
309
node_modules/.vite/deps/chunk-453BAUPL.js
generated
vendored
Normal file
@ -0,0 +1,309 @@
|
||||
import {
|
||||
__esm
|
||||
} from "./chunk-BYYN2XO5.js";
|
||||
|
||||
// node_modules/preact/dist/preact.module.js
|
||||
function d(n2, l2) {
|
||||
for (var u2 in l2) n2[u2] = l2[u2];
|
||||
return n2;
|
||||
}
|
||||
function g(n2) {
|
||||
n2 && n2.parentNode && n2.parentNode.removeChild(n2);
|
||||
}
|
||||
function _(l2, u2, t2) {
|
||||
var i2, r2, o2, e2 = {};
|
||||
for (o2 in u2) "key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : e2[o2] = u2[o2];
|
||||
if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps) for (o2 in l2.defaultProps) void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
|
||||
return m(l2, e2, i2, r2, null);
|
||||
}
|
||||
function m(n2, t2, i2, r2, o2) {
|
||||
var e2 = { type: n2, props: t2, key: i2, ref: r2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: null == o2 ? ++u : o2, __i: -1, __u: 0 };
|
||||
return null == o2 && null != l.vnode && l.vnode(e2), e2;
|
||||
}
|
||||
function b() {
|
||||
return { current: null };
|
||||
}
|
||||
function k(n2) {
|
||||
return n2.children;
|
||||
}
|
||||
function x(n2, l2) {
|
||||
this.props = n2, this.context = l2;
|
||||
}
|
||||
function S(n2, l2) {
|
||||
if (null == l2) return n2.__ ? S(n2.__, n2.__i + 1) : null;
|
||||
for (var u2; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) return u2.__e;
|
||||
return "function" == typeof n2.type ? S(n2) : null;
|
||||
}
|
||||
function C(n2) {
|
||||
var l2, u2;
|
||||
if (null != (n2 = n2.__) && null != n2.__c) {
|
||||
for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
|
||||
n2.__e = n2.__c.base = u2.__e;
|
||||
break;
|
||||
}
|
||||
return C(n2);
|
||||
}
|
||||
}
|
||||
function M(n2) {
|
||||
(!n2.__d && (n2.__d = true) && i.push(n2) && !$.__r++ || r != l.debounceRendering) && ((r = l.debounceRendering) || o)($);
|
||||
}
|
||||
function $() {
|
||||
for (var n2, u2, t2, r2, o2, f2, c2, s2 = 1; i.length; ) i.length > s2 && i.sort(e), n2 = i.shift(), s2 = i.length, n2.__d && (t2 = void 0, o2 = (r2 = (u2 = n2).__v).__e, f2 = [], c2 = [], u2.__P && ((t2 = d({}, r2)).__v = r2.__v + 1, l.vnode && l.vnode(t2), O(u2.__P, t2, r2, u2.__n, u2.__P.namespaceURI, 32 & r2.__u ? [o2] : null, f2, null == o2 ? S(r2) : o2, !!(32 & r2.__u), c2), t2.__v = r2.__v, t2.__.__k[t2.__i] = t2, z(f2, t2, c2), t2.__e != o2 && C(t2)));
|
||||
$.__r = 0;
|
||||
}
|
||||
function I(n2, l2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
||||
var a2, h2, y2, w2, d2, g2, _2 = t2 && t2.__k || v, m2 = l2.length;
|
||||
for (f2 = P(u2, l2, _2, f2, m2), a2 = 0; a2 < m2; a2++) null != (y2 = u2.__k[a2]) && (h2 = -1 == y2.__i ? p : _2[y2.__i] || p, y2.__i = a2, g2 = O(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), w2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && q(h2.ref, null, y2), s2.push(y2.ref, y2.__c || w2, y2)), null == d2 && null != w2 && (d2 = w2), 4 & y2.__u || h2.__k === y2.__k ? f2 = A(y2, f2, n2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : w2 && (f2 = w2.nextSibling), y2.__u &= -7);
|
||||
return u2.__e = d2, f2;
|
||||
}
|
||||
function P(n2, l2, u2, t2, i2) {
|
||||
var r2, o2, e2, f2, c2, s2 = u2.length, a2 = s2, h2 = 0;
|
||||
for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++) null != (o2 = l2[r2]) && "boolean" != typeof o2 && "function" != typeof o2 ? (f2 = r2 + h2, (o2 = n2.__k[r2] = "string" == typeof o2 || "number" == typeof o2 || "bigint" == typeof o2 || o2.constructor == String ? m(null, o2, null, null, null) : w(o2) ? m(k, { children: o2 }, null, null, null) : null == o2.constructor && o2.__b > 0 ? m(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : o2).__ = n2, o2.__b = n2.__b + 1, e2 = null, -1 != (c2 = o2.__i = L(o2, u2, f2, a2)) && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), null == e2 || null == e2.__v ? (-1 == c2 && (i2 > s2 ? h2-- : i2 < s2 && h2++), "function" != typeof o2.type && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
|
||||
if (a2) for (r2 = 0; r2 < s2; r2++) null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), B(e2, e2));
|
||||
return t2;
|
||||
}
|
||||
function A(n2, l2, u2) {
|
||||
var t2, i2;
|
||||
if ("function" == typeof n2.type) {
|
||||
for (t2 = n2.__k, i2 = 0; t2 && i2 < t2.length; i2++) t2[i2] && (t2[i2].__ = n2, l2 = A(t2[i2], l2, u2));
|
||||
return l2;
|
||||
}
|
||||
n2.__e != l2 && (l2 && n2.type && !u2.contains(l2) && (l2 = S(n2)), u2.insertBefore(n2.__e, l2 || null), l2 = n2.__e);
|
||||
do {
|
||||
l2 = l2 && l2.nextSibling;
|
||||
} while (null != l2 && 8 == l2.nodeType);
|
||||
return l2;
|
||||
}
|
||||
function H(n2, l2) {
|
||||
return l2 = l2 || [], null == n2 || "boolean" == typeof n2 || (w(n2) ? n2.some(function(n3) {
|
||||
H(n3, l2);
|
||||
}) : l2.push(n2)), l2;
|
||||
}
|
||||
function L(n2, l2, u2, t2) {
|
||||
var i2, r2, o2 = n2.key, e2 = n2.type, f2 = l2[u2];
|
||||
if (null === f2 && null == n2.key || f2 && o2 == f2.key && e2 == f2.type && 0 == (2 & f2.__u)) return u2;
|
||||
if (t2 > (null != f2 && 0 == (2 & f2.__u) ? 1 : 0)) for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; ) {
|
||||
if (i2 >= 0) {
|
||||
if ((f2 = l2[i2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type) return i2;
|
||||
i2--;
|
||||
}
|
||||
if (r2 < l2.length) {
|
||||
if ((f2 = l2[r2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type) return r2;
|
||||
r2++;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
function T(n2, l2, u2) {
|
||||
"-" == l2[0] ? n2.setProperty(l2, null == u2 ? "" : u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || y.test(l2) ? u2 : u2 + "px";
|
||||
}
|
||||
function j(n2, l2, u2, t2, i2) {
|
||||
var r2, o2;
|
||||
n: if ("style" == l2) if ("string" == typeof u2) n2.style.cssText = u2;
|
||||
else {
|
||||
if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || T(n2.style, l2, "");
|
||||
if (u2) for (l2 in u2) t2 && u2[l2] == t2[l2] || T(n2.style, l2, u2[l2]);
|
||||
}
|
||||
else if ("o" == l2[0] && "n" == l2[1]) r2 = l2 != (l2 = l2.replace(f, "$1")), o2 = l2.toLowerCase(), l2 = o2 in n2 || "onFocusOut" == l2 || "onFocusIn" == l2 ? o2.slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c, n2.addEventListener(l2, r2 ? a : s, r2)) : n2.removeEventListener(l2, r2 ? a : s, r2);
|
||||
else {
|
||||
if ("http://www.w3.org/2000/svg" == i2) l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
||||
else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && "popover" != l2 && l2 in n2) try {
|
||||
n2[l2] = null == u2 ? "" : u2;
|
||||
break n;
|
||||
} catch (n3) {
|
||||
}
|
||||
"function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
|
||||
}
|
||||
}
|
||||
function F(n2) {
|
||||
return function(u2) {
|
||||
if (this.l) {
|
||||
var t2 = this.l[u2.type + n2];
|
||||
if (null == u2.t) u2.t = c++;
|
||||
else if (u2.t < t2.u) return;
|
||||
return t2(l.event ? l.event(u2) : u2);
|
||||
}
|
||||
};
|
||||
}
|
||||
function O(n2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
||||
var a2, h2, p2, v2, y2, _2, m2, b2, S2, C2, M2, $2, P2, A2, H2, L2, T2, j2 = u2.type;
|
||||
if (null != u2.constructor) return null;
|
||||
128 & t2.__u && (c2 = !!(32 & t2.__u), o2 = [f2 = u2.__e = t2.__e]), (a2 = l.__b) && a2(u2);
|
||||
n: if ("function" == typeof j2) try {
|
||||
if (b2 = u2.props, S2 = "prototype" in j2 && j2.prototype.render, C2 = (a2 = j2.contextType) && i2[a2.__c], M2 = a2 ? C2 ? C2.props.value : a2.__ : i2, t2.__c ? m2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (S2 ? u2.__c = h2 = new j2(b2, M2) : (u2.__c = h2 = new x(b2, M2), h2.constructor = j2, h2.render = D), C2 && C2.sub(h2), h2.props = b2, h2.state || (h2.state = {}), h2.context = M2, h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), S2 && null == h2.__s && (h2.__s = h2.state), S2 && null != j2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d({}, h2.__s)), d(h2.__s, j2.getDerivedStateFromProps(b2, h2.__s))), v2 = h2.props, y2 = h2.state, h2.__v = u2, p2) S2 && null == j2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), S2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
|
||||
else {
|
||||
if (S2 && null == j2.getDerivedStateFromProps && b2 !== v2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(b2, M2), !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(b2, h2.__s, M2) || u2.__v == t2.__v) {
|
||||
for (u2.__v != t2.__v && (h2.props = b2, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
|
||||
n3 && (n3.__ = u2);
|
||||
}), $2 = 0; $2 < h2._sb.length; $2++) h2.__h.push(h2._sb[$2]);
|
||||
h2._sb = [], h2.__h.length && e2.push(h2);
|
||||
break n;
|
||||
}
|
||||
null != h2.componentWillUpdate && h2.componentWillUpdate(b2, h2.__s, M2), S2 && null != h2.componentDidUpdate && h2.__h.push(function() {
|
||||
h2.componentDidUpdate(v2, y2, _2);
|
||||
});
|
||||
}
|
||||
if (h2.context = M2, h2.props = b2, h2.__P = n2, h2.__e = false, P2 = l.__r, A2 = 0, S2) {
|
||||
for (h2.state = h2.__s, h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++) h2.__h.push(h2._sb[H2]);
|
||||
h2._sb = [];
|
||||
} else do {
|
||||
h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
|
||||
} while (h2.__d && ++A2 < 25);
|
||||
h2.state = h2.__s, null != h2.getChildContext && (i2 = d(d({}, i2), h2.getChildContext())), S2 && !p2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(v2, y2)), L2 = a2, null != a2 && a2.type === k && null == a2.key && (L2 = N(a2.props.children)), f2 = I(n2, w(L2) ? L2 : [L2], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), m2 && (h2.__E = h2.__ = null);
|
||||
} catch (n3) {
|
||||
if (u2.__v = null, c2 || null != o2) if (n3.then) {
|
||||
for (u2.__u |= c2 ? 160 : 128; f2 && 8 == f2.nodeType && f2.nextSibling; ) f2 = f2.nextSibling;
|
||||
o2[o2.indexOf(f2)] = null, u2.__e = f2;
|
||||
} else for (T2 = o2.length; T2--; ) g(o2[T2]);
|
||||
else u2.__e = t2.__e, u2.__k = t2.__k;
|
||||
l.__e(n3, u2, t2);
|
||||
}
|
||||
else null == o2 && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = V(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
|
||||
return (a2 = l.diffed) && a2(u2), 128 & u2.__u ? void 0 : f2;
|
||||
}
|
||||
function z(n2, u2, t2) {
|
||||
for (var i2 = 0; i2 < t2.length; i2++) q(t2[i2], t2[++i2], t2[++i2]);
|
||||
l.__c && l.__c(u2, n2), n2.some(function(u3) {
|
||||
try {
|
||||
n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
|
||||
n3.call(u3);
|
||||
});
|
||||
} catch (n3) {
|
||||
l.__e(n3, u3.__v);
|
||||
}
|
||||
});
|
||||
}
|
||||
function N(n2) {
|
||||
return "object" != typeof n2 || null == n2 || n2.__b && n2.__b > 0 ? n2 : w(n2) ? n2.map(N) : d({}, n2);
|
||||
}
|
||||
function V(u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
||||
var a2, h2, v2, y2, d2, _2, m2, b2 = i2.props, k2 = t2.props, x2 = t2.type;
|
||||
if ("svg" == x2 ? o2 = "http://www.w3.org/2000/svg" : "math" == x2 ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), null != e2) {
|
||||
for (a2 = 0; a2 < e2.length; a2++) if ((d2 = e2[a2]) && "setAttribute" in d2 == !!x2 && (x2 ? d2.localName == x2 : 3 == d2.nodeType)) {
|
||||
u2 = d2, e2[a2] = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (null == u2) {
|
||||
if (null == x2) return document.createTextNode(k2);
|
||||
u2 = document.createElementNS(o2, x2, k2.is && k2), c2 && (l.__m && l.__m(t2, e2), c2 = false), e2 = null;
|
||||
}
|
||||
if (null == x2) b2 === k2 || c2 && u2.data == k2 || (u2.data = k2);
|
||||
else {
|
||||
if (e2 = e2 && n.call(u2.childNodes), b2 = i2.props || p, !c2 && null != e2) for (b2 = {}, a2 = 0; a2 < u2.attributes.length; a2++) b2[(d2 = u2.attributes[a2]).name] = d2.value;
|
||||
for (a2 in b2) if (d2 = b2[a2], "children" == a2) ;
|
||||
else if ("dangerouslySetInnerHTML" == a2) v2 = d2;
|
||||
else if (!(a2 in k2)) {
|
||||
if ("value" == a2 && "defaultValue" in k2 || "checked" == a2 && "defaultChecked" in k2) continue;
|
||||
j(u2, a2, null, d2, o2);
|
||||
}
|
||||
for (a2 in k2) d2 = k2[a2], "children" == a2 ? y2 = d2 : "dangerouslySetInnerHTML" == a2 ? h2 = d2 : "value" == a2 ? _2 = d2 : "checked" == a2 ? m2 = d2 : c2 && "function" != typeof d2 || b2[a2] === d2 || j(u2, a2, d2, b2[a2], o2);
|
||||
if (h2) c2 || v2 && (h2.__html == v2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
|
||||
else if (v2 && (u2.innerHTML = ""), I("template" == t2.type ? u2.content : u2, w(y2) ? y2 : [y2], t2, i2, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), null != e2) for (a2 = e2.length; a2--; ) g(e2[a2]);
|
||||
c2 || (a2 = "value", "progress" == x2 && null == _2 ? u2.removeAttribute("value") : null != _2 && (_2 !== u2[a2] || "progress" == x2 && !_2 || "option" == x2 && _2 != b2[a2]) && j(u2, a2, _2, b2[a2], o2), a2 = "checked", null != m2 && m2 != u2[a2] && j(u2, a2, m2, b2[a2], o2));
|
||||
}
|
||||
return u2;
|
||||
}
|
||||
function q(n2, u2, t2) {
|
||||
try {
|
||||
if ("function" == typeof n2) {
|
||||
var i2 = "function" == typeof n2.__u;
|
||||
i2 && n2.__u(), i2 && null == u2 || (n2.__u = n2(u2));
|
||||
} else n2.current = u2;
|
||||
} catch (n3) {
|
||||
l.__e(n3, t2);
|
||||
}
|
||||
}
|
||||
function B(n2, u2, t2) {
|
||||
var i2, r2;
|
||||
if (l.unmount && l.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current != n2.__e || q(i2, null, u2)), null != (i2 = n2.__c)) {
|
||||
if (i2.componentWillUnmount) try {
|
||||
i2.componentWillUnmount();
|
||||
} catch (n3) {
|
||||
l.__e(n3, u2);
|
||||
}
|
||||
i2.base = i2.__P = null;
|
||||
}
|
||||
if (i2 = n2.__k) for (r2 = 0; r2 < i2.length; r2++) i2[r2] && B(i2[r2], u2, t2 || "function" != typeof n2.type);
|
||||
t2 || g(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
|
||||
}
|
||||
function D(n2, l2, u2) {
|
||||
return this.constructor(n2, u2);
|
||||
}
|
||||
function E(u2, t2, i2) {
|
||||
var r2, o2, e2, f2;
|
||||
t2 == document && (t2 = document.documentElement), l.__ && l.__(u2, t2), o2 = (r2 = "function" == typeof i2) ? null : i2 && i2.__k || t2.__k, e2 = [], f2 = [], O(t2, u2 = (!r2 && i2 || t2).__k = _(k, null, [u2]), o2 || p, p, t2.namespaceURI, !r2 && i2 ? [i2] : o2 ? null : t2.firstChild ? n.call(t2.childNodes) : null, e2, !r2 && i2 ? i2 : o2 ? o2.__e : t2.firstChild, r2, f2), z(e2, u2, f2);
|
||||
}
|
||||
function G(n2, l2) {
|
||||
E(n2, l2, G);
|
||||
}
|
||||
function J(l2, u2, t2) {
|
||||
var i2, r2, o2, e2, f2 = d({}, l2.props);
|
||||
for (o2 in l2.type && l2.type.defaultProps && (e2 = l2.type.defaultProps), u2) "key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : f2[o2] = void 0 === u2[o2] && null != e2 ? e2[o2] : u2[o2];
|
||||
return arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), m(l2.type, f2, i2 || l2.key, r2 || l2.ref, null);
|
||||
}
|
||||
function K(n2) {
|
||||
function l2(n3) {
|
||||
var u2, t2;
|
||||
return this.getChildContext || (u2 = /* @__PURE__ */ new Set(), (t2 = {})[l2.__c] = this, this.getChildContext = function() {
|
||||
return t2;
|
||||
}, this.componentWillUnmount = function() {
|
||||
u2 = null;
|
||||
}, this.shouldComponentUpdate = function(n4) {
|
||||
this.props.value != n4.value && u2.forEach(function(n5) {
|
||||
n5.__e = true, M(n5);
|
||||
});
|
||||
}, this.sub = function(n4) {
|
||||
u2.add(n4);
|
||||
var l3 = n4.componentWillUnmount;
|
||||
n4.componentWillUnmount = function() {
|
||||
u2 && u2.delete(n4), l3 && l3.call(n4);
|
||||
};
|
||||
}), n3.children;
|
||||
}
|
||||
return l2.__c = "__cC" + h++, l2.__ = n2, l2.Provider = l2.__l = (l2.Consumer = function(n3, l3) {
|
||||
return n3.children(l3);
|
||||
}).contextType = l2, l2;
|
||||
}
|
||||
var n, l, u, t, i, r, o, e, f, c, s, a, h, p, v, y, w;
|
||||
var init_preact_module = __esm({
|
||||
"node_modules/preact/dist/preact.module.js"() {
|
||||
p = {};
|
||||
v = [];
|
||||
y = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
||||
w = Array.isArray;
|
||||
n = v.slice, l = { __e: function(n2, l2, u2, t2) {
|
||||
for (var i2, r2, o2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try {
|
||||
if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
|
||||
} catch (l3) {
|
||||
n2 = l3;
|
||||
}
|
||||
throw n2;
|
||||
} }, u = 0, t = function(n2) {
|
||||
return null != n2 && null == n2.constructor;
|
||||
}, x.prototype.setState = function(n2, l2) {
|
||||
var u2;
|
||||
u2 = null != this.__s && this.__s != this.state ? this.__s : this.__s = d({}, this.state), "function" == typeof n2 && (n2 = n2(d({}, u2), this.props)), n2 && d(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), M(this));
|
||||
}, x.prototype.forceUpdate = function(n2) {
|
||||
this.__v && (this.__e = true, n2 && this.__h.push(n2), M(this));
|
||||
}, x.prototype.render = k, i = [], o = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e = function(n2, l2) {
|
||||
return n2.__v.__b - l2.__v.__b;
|
||||
}, $.__r = 0, f = /(PointerCapture)$|Capture$/i, c = 0, s = F(false), a = F(true), h = 0;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
l,
|
||||
t,
|
||||
_,
|
||||
b,
|
||||
k,
|
||||
x,
|
||||
H,
|
||||
E,
|
||||
G,
|
||||
J,
|
||||
K,
|
||||
init_preact_module
|
||||
};
|
||||
//# sourceMappingURL=chunk-453BAUPL.js.map
|
7
node_modules/.vite/deps/chunk-453BAUPL.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/chunk-453BAUPL.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
403
node_modules/.vite/deps/chunk-AAFB4U5C.js
generated
vendored
Normal file
403
node_modules/.vite/deps/chunk-AAFB4U5C.js
generated
vendored
Normal file
@ -0,0 +1,403 @@
|
||||
import {
|
||||
A,
|
||||
F,
|
||||
P,
|
||||
T,
|
||||
_ as _2,
|
||||
b as b2,
|
||||
d,
|
||||
g,
|
||||
h,
|
||||
init_hooks_module,
|
||||
q,
|
||||
x as x2,
|
||||
y
|
||||
} from "./chunk-O5MKVYJX.js";
|
||||
import {
|
||||
E,
|
||||
G,
|
||||
H,
|
||||
J,
|
||||
K,
|
||||
_,
|
||||
b,
|
||||
init_preact_module,
|
||||
k,
|
||||
l,
|
||||
x
|
||||
} from "./chunk-453BAUPL.js";
|
||||
import {
|
||||
__esm,
|
||||
__export
|
||||
} from "./chunk-BYYN2XO5.js";
|
||||
|
||||
// node_modules/preact/compat/dist/compat.module.js
|
||||
var compat_module_exports = {};
|
||||
__export(compat_module_exports, {
|
||||
Children: () => O,
|
||||
Component: () => x,
|
||||
Fragment: () => k,
|
||||
PureComponent: () => N,
|
||||
StrictMode: () => Cn,
|
||||
Suspense: () => P2,
|
||||
SuspenseList: () => B,
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => hn,
|
||||
cloneElement: () => _n,
|
||||
createContext: () => K,
|
||||
createElement: () => _,
|
||||
createFactory: () => dn,
|
||||
createPortal: () => $,
|
||||
createRef: () => b,
|
||||
default: () => Rn,
|
||||
findDOMNode: () => Sn,
|
||||
flushSync: () => En,
|
||||
forwardRef: () => D,
|
||||
hydrate: () => tn,
|
||||
isElement: () => xn,
|
||||
isFragment: () => pn,
|
||||
isMemo: () => yn,
|
||||
isValidElement: () => mn,
|
||||
lazy: () => z,
|
||||
memo: () => M,
|
||||
render: () => nn,
|
||||
startTransition: () => R,
|
||||
unmountComponentAtNode: () => bn,
|
||||
unstable_batchedUpdates: () => gn,
|
||||
useCallback: () => q,
|
||||
useContext: () => x2,
|
||||
useDebugValue: () => P,
|
||||
useDeferredValue: () => w,
|
||||
useEffect: () => y,
|
||||
useErrorBoundary: () => b2,
|
||||
useId: () => g,
|
||||
useImperativeHandle: () => F,
|
||||
useInsertionEffect: () => I,
|
||||
useLayoutEffect: () => _2,
|
||||
useMemo: () => T,
|
||||
useReducer: () => h,
|
||||
useRef: () => A,
|
||||
useState: () => d,
|
||||
useSyncExternalStore: () => C,
|
||||
useTransition: () => k2,
|
||||
version: () => vn
|
||||
});
|
||||
function g2(n, t) {
|
||||
for (var e in t) n[e] = t[e];
|
||||
return n;
|
||||
}
|
||||
function E2(n, t) {
|
||||
for (var e in n) if ("__source" !== e && !(e in t)) return true;
|
||||
for (var r in t) if ("__source" !== r && n[r] !== t[r]) return true;
|
||||
return false;
|
||||
}
|
||||
function C(n, t) {
|
||||
var e = t(), r = d({ t: { __: e, u: t } }), u = r[0].t, o = r[1];
|
||||
return _2(function() {
|
||||
u.__ = e, u.u = t, x3(u) && o({ t: u });
|
||||
}, [n, e, t]), y(function() {
|
||||
return x3(u) && o({ t: u }), n(function() {
|
||||
x3(u) && o({ t: u });
|
||||
});
|
||||
}, [n]), e;
|
||||
}
|
||||
function x3(n) {
|
||||
var t, e, r = n.u, u = n.__;
|
||||
try {
|
||||
var o = r();
|
||||
return !((t = u) === (e = o) && (0 !== t || 1 / t == 1 / e) || t != t && e != e);
|
||||
} catch (n2) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
function R(n) {
|
||||
n();
|
||||
}
|
||||
function w(n) {
|
||||
return n;
|
||||
}
|
||||
function k2() {
|
||||
return [false, R];
|
||||
}
|
||||
function N(n, t) {
|
||||
this.props = n, this.context = t;
|
||||
}
|
||||
function M(n, e) {
|
||||
function r(n2) {
|
||||
var t = this.props.ref, r2 = t == n2.ref;
|
||||
return !r2 && t && (t.call ? t(null) : t.current = null), e ? !e(this.props, n2) || !r2 : E2(this.props, n2);
|
||||
}
|
||||
function u(e2) {
|
||||
return this.shouldComponentUpdate = r, _(n, e2);
|
||||
}
|
||||
return u.displayName = "Memo(" + (n.displayName || n.name) + ")", u.prototype.isReactComponent = true, u.__f = true, u;
|
||||
}
|
||||
function D(n) {
|
||||
function t(t2) {
|
||||
var e = g2({}, t2);
|
||||
return delete e.ref, n(e, t2.ref || null);
|
||||
}
|
||||
return t.$$typeof = A2, t.render = t, t.prototype.isReactComponent = t.__f = true, t.displayName = "ForwardRef(" + (n.displayName || n.name) + ")", t;
|
||||
}
|
||||
function V(n, t, e) {
|
||||
return n && (n.__c && n.__c.__H && (n.__c.__H.__.forEach(function(n2) {
|
||||
"function" == typeof n2.__c && n2.__c();
|
||||
}), n.__c.__H = null), null != (n = g2({}, n)).__c && (n.__c.__P === e && (n.__c.__P = t), n.__c.__e = true, n.__c = null), n.__k = n.__k && n.__k.map(function(n2) {
|
||||
return V(n2, t, e);
|
||||
})), n;
|
||||
}
|
||||
function W(n, t, e) {
|
||||
return n && e && (n.__v = null, n.__k = n.__k && n.__k.map(function(n2) {
|
||||
return W(n2, t, e);
|
||||
}), n.__c && n.__c.__P === t && (n.__e && e.appendChild(n.__e), n.__c.__e = true, n.__c.__P = e)), n;
|
||||
}
|
||||
function P2() {
|
||||
this.__u = 0, this.o = null, this.__b = null;
|
||||
}
|
||||
function j(n) {
|
||||
var t = n.__.__c;
|
||||
return t && t.__a && t.__a(n);
|
||||
}
|
||||
function z(n) {
|
||||
var e, r, u;
|
||||
function o(o2) {
|
||||
if (e || (e = n()).then(function(n2) {
|
||||
r = n2.default || n2;
|
||||
}, function(n2) {
|
||||
u = n2;
|
||||
}), u) throw u;
|
||||
if (!r) throw e;
|
||||
return _(r, o2);
|
||||
}
|
||||
return o.displayName = "Lazy", o.__f = true, o;
|
||||
}
|
||||
function B() {
|
||||
this.i = null, this.l = null;
|
||||
}
|
||||
function Z(n) {
|
||||
return this.getChildContext = function() {
|
||||
return n.context;
|
||||
}, n.children;
|
||||
}
|
||||
function Y(n) {
|
||||
var e = this, r = n.h;
|
||||
if (e.componentWillUnmount = function() {
|
||||
E(null, e.v), e.v = null, e.h = null;
|
||||
}, e.h && e.h !== r && e.componentWillUnmount(), !e.v) {
|
||||
for (var u = e.__v; null !== u && !u.__m && null !== u.__; ) u = u.__;
|
||||
e.h = r, e.v = { nodeType: 1, parentNode: r, childNodes: [], __k: { __m: u.__m }, contains: function() {
|
||||
return true;
|
||||
}, insertBefore: function(n2, t) {
|
||||
this.childNodes.push(n2), e.h.insertBefore(n2, t);
|
||||
}, removeChild: function(n2) {
|
||||
this.childNodes.splice(this.childNodes.indexOf(n2) >>> 1, 1), e.h.removeChild(n2);
|
||||
} };
|
||||
}
|
||||
E(_(Z, { context: e.context }, n.__v), e.v);
|
||||
}
|
||||
function $(n, e) {
|
||||
var r = _(Y, { __v: n, h: e });
|
||||
return r.containerInfo = e, r;
|
||||
}
|
||||
function nn(n, t, e) {
|
||||
return null == t.__k && (t.textContent = ""), E(n, t), "function" == typeof e && e(), n ? n.__c : null;
|
||||
}
|
||||
function tn(n, t, e) {
|
||||
return G(n, t), "function" == typeof e && e(), n ? n.__c : null;
|
||||
}
|
||||
function rn() {
|
||||
}
|
||||
function un() {
|
||||
return this.cancelBubble;
|
||||
}
|
||||
function on() {
|
||||
return this.defaultPrevented;
|
||||
}
|
||||
function dn(n) {
|
||||
return _.bind(null, n);
|
||||
}
|
||||
function mn(n) {
|
||||
return !!n && n.$$typeof === q2;
|
||||
}
|
||||
function pn(n) {
|
||||
return mn(n) && n.type === k;
|
||||
}
|
||||
function yn(n) {
|
||||
return !!n && !!n.displayName && ("string" == typeof n.displayName || n.displayName instanceof String) && n.displayName.startsWith("Memo(");
|
||||
}
|
||||
function _n(n) {
|
||||
return mn(n) ? J.apply(null, arguments) : n;
|
||||
}
|
||||
function bn(n) {
|
||||
return !!n.__k && (E(null, n), true);
|
||||
}
|
||||
function Sn(n) {
|
||||
return n && (n.base || 1 === n.nodeType && n) || null;
|
||||
}
|
||||
var I, T2, A2, L, O, F2, U, H2, q2, G2, J2, K2, Q, X, en, ln, cn, fn, an, sn, hn, vn, gn, En, Cn, xn, Rn;
|
||||
var init_compat_module = __esm({
|
||||
"node_modules/preact/compat/dist/compat.module.js"() {
|
||||
init_preact_module();
|
||||
init_preact_module();
|
||||
init_hooks_module();
|
||||
init_hooks_module();
|
||||
I = _2;
|
||||
(N.prototype = new x()).isPureReactComponent = true, N.prototype.shouldComponentUpdate = function(n, t) {
|
||||
return E2(this.props, n) || E2(this.state, t);
|
||||
};
|
||||
T2 = l.__b;
|
||||
l.__b = function(n) {
|
||||
n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null), T2 && T2(n);
|
||||
};
|
||||
A2 = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
||||
L = function(n, t) {
|
||||
return null == n ? null : H(H(n).map(t));
|
||||
};
|
||||
O = { map: L, forEach: L, count: function(n) {
|
||||
return n ? H(n).length : 0;
|
||||
}, only: function(n) {
|
||||
var t = H(n);
|
||||
if (1 !== t.length) throw "Children.only";
|
||||
return t[0];
|
||||
}, toArray: H };
|
||||
F2 = l.__e;
|
||||
l.__e = function(n, t, e, r) {
|
||||
if (n.then) {
|
||||
for (var u, o = t; o = o.__; ) if ((u = o.__c) && u.__c) return null == t.__e && (t.__e = e.__e, t.__k = e.__k), u.__c(n, t);
|
||||
}
|
||||
F2(n, t, e, r);
|
||||
};
|
||||
U = l.unmount;
|
||||
l.unmount = function(n) {
|
||||
var t = n.__c;
|
||||
t && t.__R && t.__R(), t && 32 & n.__u && (n.type = null), U && U(n);
|
||||
}, (P2.prototype = new x()).__c = function(n, t) {
|
||||
var e = t.__c, r = this;
|
||||
null == r.o && (r.o = []), r.o.push(e);
|
||||
var u = j(r.__v), o = false, i = function() {
|
||||
o || (o = true, e.__R = null, u ? u(l2) : l2());
|
||||
};
|
||||
e.__R = i;
|
||||
var l2 = function() {
|
||||
if (!--r.__u) {
|
||||
if (r.state.__a) {
|
||||
var n2 = r.state.__a;
|
||||
r.__v.__k[0] = W(n2, n2.__c.__P, n2.__c.__O);
|
||||
}
|
||||
var t2;
|
||||
for (r.setState({ __a: r.__b = null }); t2 = r.o.pop(); ) t2.forceUpdate();
|
||||
}
|
||||
};
|
||||
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), n.then(i, i);
|
||||
}, P2.prototype.componentWillUnmount = function() {
|
||||
this.o = [];
|
||||
}, P2.prototype.render = function(n, e) {
|
||||
if (this.__b) {
|
||||
if (this.__v.__k) {
|
||||
var r = document.createElement("div"), o = this.__v.__k[0].__c;
|
||||
this.__v.__k[0] = V(this.__b, r, o.__O = o.__P);
|
||||
}
|
||||
this.__b = null;
|
||||
}
|
||||
var i = e.__a && _(k, null, n.fallback);
|
||||
return i && (i.__u &= -33), [_(k, null, e.__a ? null : n.children), i];
|
||||
};
|
||||
H2 = function(n, t, e) {
|
||||
if (++e[1] === e[0] && n.l.delete(t), n.props.revealOrder && ("t" !== n.props.revealOrder[0] || !n.l.size)) for (e = n.i; e; ) {
|
||||
for (; e.length > 3; ) e.pop()();
|
||||
if (e[1] < e[0]) break;
|
||||
n.i = e = e[2];
|
||||
}
|
||||
};
|
||||
(B.prototype = new x()).__a = function(n) {
|
||||
var t = this, e = j(t.__v), r = t.l.get(n);
|
||||
return r[0]++, function(u) {
|
||||
var o = function() {
|
||||
t.props.revealOrder ? (r.push(u), H2(t, n, r)) : u();
|
||||
};
|
||||
e ? e(o) : o();
|
||||
};
|
||||
}, B.prototype.render = function(n) {
|
||||
this.i = null, this.l = /* @__PURE__ */ new Map();
|
||||
var t = H(n.children);
|
||||
n.revealOrder && "b" === n.revealOrder[0] && t.reverse();
|
||||
for (var e = t.length; e--; ) this.l.set(t[e], this.i = [1, 0, this.i]);
|
||||
return n.children;
|
||||
}, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
|
||||
var n = this;
|
||||
this.l.forEach(function(t, e) {
|
||||
H2(n, e, t);
|
||||
});
|
||||
};
|
||||
q2 = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
|
||||
G2 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;
|
||||
J2 = /^on(Ani|Tra|Tou|BeforeInp|Compo)/;
|
||||
K2 = /[A-Z0-9]/g;
|
||||
Q = "undefined" != typeof document;
|
||||
X = function(n) {
|
||||
return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n);
|
||||
};
|
||||
x.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
|
||||
Object.defineProperty(x.prototype, t, { configurable: true, get: function() {
|
||||
return this["UNSAFE_" + t];
|
||||
}, set: function(n) {
|
||||
Object.defineProperty(this, t, { configurable: true, writable: true, value: n });
|
||||
} });
|
||||
});
|
||||
en = l.event;
|
||||
l.event = function(n) {
|
||||
return en && (n = en(n)), n.persist = rn, n.isPropagationStopped = un, n.isDefaultPrevented = on, n.nativeEvent = n;
|
||||
};
|
||||
cn = { enumerable: false, configurable: true, get: function() {
|
||||
return this.class;
|
||||
} };
|
||||
fn = l.vnode;
|
||||
l.vnode = function(n) {
|
||||
"string" == typeof n.type && function(n2) {
|
||||
var t = n2.props, e = n2.type, u = {}, o = -1 === e.indexOf("-");
|
||||
for (var i in t) {
|
||||
var l2 = t[i];
|
||||
if (!("value" === i && "defaultValue" in t && null == l2 || Q && "children" === i && "noscript" === e || "class" === i || "className" === i)) {
|
||||
var c = i.toLowerCase();
|
||||
"defaultValue" === i && "value" in t && null == t.value ? i = "value" : "download" === i && true === l2 ? l2 = "" : "translate" === c && "no" === l2 ? l2 = false : "o" === c[0] && "n" === c[1] ? "ondoubleclick" === c ? i = "ondblclick" : "onchange" !== c || "input" !== e && "textarea" !== e || X(t.type) ? "onfocus" === c ? i = "onfocusin" : "onblur" === c ? i = "onfocusout" : J2.test(i) && (i = c) : c = i = "oninput" : o && G2.test(i) ? i = i.replace(K2, "-$&").toLowerCase() : null === l2 && (l2 = void 0), "oninput" === c && u[i = c] && (i = "oninputCapture"), u[i] = l2;
|
||||
}
|
||||
}
|
||||
"select" == e && u.multiple && Array.isArray(u.value) && (u.value = H(t.children).forEach(function(n3) {
|
||||
n3.props.selected = -1 != u.value.indexOf(n3.props.value);
|
||||
})), "select" == e && null != u.defaultValue && (u.value = H(t.children).forEach(function(n3) {
|
||||
n3.props.selected = u.multiple ? -1 != u.defaultValue.indexOf(n3.props.value) : u.defaultValue == n3.props.value;
|
||||
})), t.class && !t.className ? (u.class = t.class, Object.defineProperty(u, "className", cn)) : (t.className && !t.class || t.class && t.className) && (u.class = u.className = t.className), n2.props = u;
|
||||
}(n), n.$$typeof = q2, fn && fn(n);
|
||||
};
|
||||
an = l.__r;
|
||||
l.__r = function(n) {
|
||||
an && an(n), ln = n.__c;
|
||||
};
|
||||
sn = l.diffed;
|
||||
l.diffed = function(n) {
|
||||
sn && sn(n);
|
||||
var t = n.props, e = n.__e;
|
||||
null != e && "textarea" === n.type && "value" in t && t.value !== e.value && (e.value = null == t.value ? "" : t.value), ln = null;
|
||||
};
|
||||
hn = { ReactCurrentDispatcher: { current: { readContext: function(n) {
|
||||
return ln.__n[n.__c].props.value;
|
||||
}, useCallback: q, useContext: x2, useDebugValue: P, useDeferredValue: w, useEffect: y, useId: g, useImperativeHandle: F, useInsertionEffect: I, useLayoutEffect: _2, useMemo: T, useReducer: h, useRef: A, useState: d, useSyncExternalStore: C, useTransition: k2 } } };
|
||||
vn = "18.3.1";
|
||||
gn = function(n, t) {
|
||||
return n(t);
|
||||
};
|
||||
En = function(n, t) {
|
||||
return n(t);
|
||||
};
|
||||
Cn = k;
|
||||
xn = mn;
|
||||
Rn = { useState: d, useId: g, useReducer: h, useEffect: y, useLayoutEffect: _2, useInsertionEffect: I, useTransition: k2, useDeferredValue: w, useSyncExternalStore: C, startTransition: R, useRef: A, useImperativeHandle: F, useMemo: T, useCallback: q, useContext: x2, useDebugValue: P, version: "18.3.1", Children: O, render: nn, hydrate: tn, unmountComponentAtNode: bn, createPortal: $, createElement: _, createContext: K, createFactory: dn, cloneElement: _n, createRef: b, Fragment: k, isValidElement: mn, isElement: xn, isFragment: pn, isMemo: yn, findDOMNode: Sn, Component: x, PureComponent: N, memo: M, forwardRef: D, flushSync: En, unstable_batchedUpdates: gn, StrictMode: Cn, Suspense: P2, SuspenseList: B, lazy: z, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: hn };
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
D,
|
||||
Rn,
|
||||
compat_module_exports,
|
||||
init_compat_module
|
||||
};
|
||||
//# sourceMappingURL=chunk-AAFB4U5C.js.map
|
7
node_modules/.vite/deps/chunk-AAFB4U5C.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/chunk-AAFB4U5C.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
19
node_modules/.vite/deps/chunk-BNEGSWOM.js
generated
vendored
Normal file
19
node_modules/.vite/deps/chunk-BNEGSWOM.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
import {
|
||||
init_preact_module,
|
||||
k,
|
||||
l,
|
||||
x
|
||||
} from "./chunk-453BAUPL.js";
|
||||
|
||||
// node_modules/preact/devtools/dist/devtools.module.js
|
||||
init_preact_module();
|
||||
var i;
|
||||
function t(o, e) {
|
||||
return l.__a && l.__a(e), o;
|
||||
}
|
||||
null != (i = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0) && i.__PREACT_DEVTOOLS__ && i.__PREACT_DEVTOOLS__.attachPreact("10.26.9", l, { Fragment: k, Component: x });
|
||||
|
||||
export {
|
||||
t
|
||||
};
|
||||
//# sourceMappingURL=chunk-BNEGSWOM.js.map
|
7
node_modules/.vite/deps/chunk-BNEGSWOM.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/chunk-BNEGSWOM.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../preact/devtools/src/devtools.js", "../../preact/devtools/src/index.js"],
|
||||
"sourcesContent": ["import { Component, Fragment, options } from 'preact';\n\nexport function initDevTools() {\n\tconst globalVar =\n\t\ttypeof globalThis !== 'undefined'\n\t\t\t? globalThis\n\t\t\t: typeof window !== 'undefined'\n\t\t\t\t? window\n\t\t\t\t: undefined;\n\n\tif (\n\t\tglobalVar !== null &&\n\t\tglobalVar !== undefined &&\n\t\tglobalVar.__PREACT_DEVTOOLS__\n\t) {\n\t\tglobalVar.__PREACT_DEVTOOLS__.attachPreact('10.26.9', options, {\n\t\t\tFragment,\n\t\t\tComponent\n\t\t});\n\t}\n}\n", "import { options } from 'preact';\nimport { initDevTools } from './devtools';\n\ninitDevTools();\n\n/**\n * Display a custom label for a custom hook for the devtools panel\n * @type {<T>(value: T, name: string) => T}\n */\nexport function addHookName(value, name) {\n\tif (options._addHookName) {\n\t\toptions._addHookName(name);\n\t}\n\treturn value;\n}\n"],
|
||||
"mappings": ";;;;;;;;;AAEgB,IACTA;ACMS,SAAAC,EAAYC,GAAOC,GAAAA;AAIlC,SAHIC,EAAOC,OACVD,EAAOC,IAAcF,CAAAA,GAEfD;AACR;ADHEF,SARKA,IACiB,eAAA,OAAfM,aACJA,aACkB,eAAA,OAAXC,SACNA,SAAAA,WAMJP,EAAUQ,uBAEVR,EAAUQ,oBAAoBC,aAAa,WAAWL,GAAS,EAC9DM,UAAAA,GACAC,WAAAA,EAAAA,CAAAA;",
|
||||
"names": ["globalVar", "addHookName", "value", "name", "options", "__a", "globalThis", "window", "__PREACT_DEVTOOLS__", "attachPreact", "Fragment", "Component"]
|
||||
}
|
33
node_modules/.vite/deps/chunk-BYYN2XO5.js
generated
vendored
Normal file
33
node_modules/.vite/deps/chunk-BYYN2XO5.js
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
||||
var __esm = (fn, res) => function __init() {
|
||||
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
||||
};
|
||||
var __commonJS = (cb, mod) => function __require() {
|
||||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||
};
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
||||
|
||||
export {
|
||||
__esm,
|
||||
__commonJS,
|
||||
__export,
|
||||
__toCommonJS,
|
||||
__publicField
|
||||
};
|
7
node_modules/.vite/deps/chunk-BYYN2XO5.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/chunk-BYYN2XO5.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
211
node_modules/.vite/deps/chunk-O5MKVYJX.js
generated
vendored
Normal file
211
node_modules/.vite/deps/chunk-O5MKVYJX.js
generated
vendored
Normal file
@ -0,0 +1,211 @@
|
||||
import {
|
||||
init_preact_module,
|
||||
l
|
||||
} from "./chunk-453BAUPL.js";
|
||||
import {
|
||||
__esm
|
||||
} from "./chunk-BYYN2XO5.js";
|
||||
|
||||
// node_modules/preact/hooks/dist/hooks.module.js
|
||||
function p(n, t2) {
|
||||
c.__h && c.__h(r, n, o || t2), o = 0;
|
||||
var u2 = r.__H || (r.__H = { __: [], __h: [] });
|
||||
return n >= u2.__.length && u2.__.push({}), u2.__[n];
|
||||
}
|
||||
function d(n) {
|
||||
return o = 1, h(D, n);
|
||||
}
|
||||
function h(n, u2, i2) {
|
||||
var o2 = p(t++, 2);
|
||||
if (o2.t = n, !o2.__c && (o2.__ = [i2 ? i2(u2) : D(void 0, u2), function(n2) {
|
||||
var t2 = o2.__N ? o2.__N[0] : o2.__[0], r2 = o2.t(t2, n2);
|
||||
t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
|
||||
}], o2.__c = r, !r.__f)) {
|
||||
var f2 = function(n2, t2, r2) {
|
||||
if (!o2.__c.__H) return true;
|
||||
var u3 = o2.__c.__H.__.filter(function(n3) {
|
||||
return !!n3.__c;
|
||||
});
|
||||
if (u3.every(function(n3) {
|
||||
return !n3.__N;
|
||||
})) return !c2 || c2.call(this, n2, t2, r2);
|
||||
var i3 = o2.__c.props !== n2;
|
||||
return u3.forEach(function(n3) {
|
||||
if (n3.__N) {
|
||||
var t3 = n3.__[0];
|
||||
n3.__ = n3.__N, n3.__N = void 0, t3 !== n3.__[0] && (i3 = true);
|
||||
}
|
||||
}), c2 && c2.call(this, n2, t2, r2) || i3;
|
||||
};
|
||||
r.__f = true;
|
||||
var c2 = r.shouldComponentUpdate, e2 = r.componentWillUpdate;
|
||||
r.componentWillUpdate = function(n2, t2, r2) {
|
||||
if (this.__e) {
|
||||
var u3 = c2;
|
||||
c2 = void 0, f2(n2, t2, r2), c2 = u3;
|
||||
}
|
||||
e2 && e2.call(this, n2, t2, r2);
|
||||
}, r.shouldComponentUpdate = f2;
|
||||
}
|
||||
return o2.__N || o2.__;
|
||||
}
|
||||
function y(n, u2) {
|
||||
var i2 = p(t++, 3);
|
||||
!c.__s && C(i2.__H, u2) && (i2.__ = n, i2.u = u2, r.__H.__h.push(i2));
|
||||
}
|
||||
function _(n, u2) {
|
||||
var i2 = p(t++, 4);
|
||||
!c.__s && C(i2.__H, u2) && (i2.__ = n, i2.u = u2, r.__h.push(i2));
|
||||
}
|
||||
function A(n) {
|
||||
return o = 5, T(function() {
|
||||
return { current: n };
|
||||
}, []);
|
||||
}
|
||||
function F(n, t2, r2) {
|
||||
o = 6, _(function() {
|
||||
if ("function" == typeof n) {
|
||||
var r3 = n(t2());
|
||||
return function() {
|
||||
n(null), r3 && "function" == typeof r3 && r3();
|
||||
};
|
||||
}
|
||||
if (n) return n.current = t2(), function() {
|
||||
return n.current = null;
|
||||
};
|
||||
}, null == r2 ? r2 : r2.concat(n));
|
||||
}
|
||||
function T(n, r2) {
|
||||
var u2 = p(t++, 7);
|
||||
return C(u2.__H, r2) && (u2.__ = n(), u2.__H = r2, u2.__h = n), u2.__;
|
||||
}
|
||||
function q(n, t2) {
|
||||
return o = 8, T(function() {
|
||||
return n;
|
||||
}, t2);
|
||||
}
|
||||
function x(n) {
|
||||
var u2 = r.context[n.__c], i2 = p(t++, 9);
|
||||
return i2.c = n, u2 ? (null == i2.__ && (i2.__ = true, u2.sub(r)), u2.props.value) : n.__;
|
||||
}
|
||||
function P(n, t2) {
|
||||
c.useDebugValue && c.useDebugValue(t2 ? t2(n) : n);
|
||||
}
|
||||
function b(n) {
|
||||
var u2 = p(t++, 10), i2 = d();
|
||||
return u2.__ = n, r.componentDidCatch || (r.componentDidCatch = function(n2, t2) {
|
||||
u2.__ && u2.__(n2, t2), i2[1](n2);
|
||||
}), [i2[0], function() {
|
||||
i2[1](void 0);
|
||||
}];
|
||||
}
|
||||
function g() {
|
||||
var n = p(t++, 11);
|
||||
if (!n.__) {
|
||||
for (var u2 = r.__v; null !== u2 && !u2.__m && null !== u2.__; ) u2 = u2.__;
|
||||
var i2 = u2.__m || (u2.__m = [0, 0]);
|
||||
n.__ = "P" + i2[0] + "-" + i2[1]++;
|
||||
}
|
||||
return n.__;
|
||||
}
|
||||
function j() {
|
||||
for (var n; n = f.shift(); ) if (n.__P && n.__H) try {
|
||||
n.__H.__h.forEach(z), n.__H.__h.forEach(B), n.__H.__h = [];
|
||||
} catch (t2) {
|
||||
n.__H.__h = [], c.__e(t2, n.__v);
|
||||
}
|
||||
}
|
||||
function w(n) {
|
||||
var t2, r2 = function() {
|
||||
clearTimeout(u2), k && cancelAnimationFrame(t2), setTimeout(n);
|
||||
}, u2 = setTimeout(r2, 35);
|
||||
k && (t2 = requestAnimationFrame(r2));
|
||||
}
|
||||
function z(n) {
|
||||
var t2 = r, u2 = n.__c;
|
||||
"function" == typeof u2 && (n.__c = void 0, u2()), r = t2;
|
||||
}
|
||||
function B(n) {
|
||||
var t2 = r;
|
||||
n.__c = n.__(), r = t2;
|
||||
}
|
||||
function C(n, t2) {
|
||||
return !n || n.length !== t2.length || t2.some(function(t3, r2) {
|
||||
return t3 !== n[r2];
|
||||
});
|
||||
}
|
||||
function D(n, t2) {
|
||||
return "function" == typeof t2 ? t2(n) : t2;
|
||||
}
|
||||
var t, r, u, i, o, f, c, e, a, v, l2, m, s, k;
|
||||
var init_hooks_module = __esm({
|
||||
"node_modules/preact/hooks/dist/hooks.module.js"() {
|
||||
init_preact_module();
|
||||
o = 0;
|
||||
f = [];
|
||||
c = l;
|
||||
e = c.__b;
|
||||
a = c.__r;
|
||||
v = c.diffed;
|
||||
l2 = c.__c;
|
||||
m = c.unmount;
|
||||
s = c.__;
|
||||
c.__b = function(n) {
|
||||
r = null, e && e(n);
|
||||
}, c.__ = function(n, t2) {
|
||||
n && t2.__k && t2.__k.__m && (n.__m = t2.__k.__m), s && s(n, t2);
|
||||
}, c.__r = function(n) {
|
||||
a && a(n), t = 0;
|
||||
var i2 = (r = n.__c).__H;
|
||||
i2 && (u === r ? (i2.__h = [], r.__h = [], i2.__.forEach(function(n2) {
|
||||
n2.__N && (n2.__ = n2.__N), n2.u = n2.__N = void 0;
|
||||
})) : (i2.__h.forEach(z), i2.__h.forEach(B), i2.__h = [], t = 0)), u = r;
|
||||
}, c.diffed = function(n) {
|
||||
v && v(n);
|
||||
var t2 = n.__c;
|
||||
t2 && t2.__H && (t2.__H.__h.length && (1 !== f.push(t2) && i === c.requestAnimationFrame || ((i = c.requestAnimationFrame) || w)(j)), t2.__H.__.forEach(function(n2) {
|
||||
n2.u && (n2.__H = n2.u), n2.u = void 0;
|
||||
})), u = r = null;
|
||||
}, c.__c = function(n, t2) {
|
||||
t2.some(function(n2) {
|
||||
try {
|
||||
n2.__h.forEach(z), n2.__h = n2.__h.filter(function(n3) {
|
||||
return !n3.__ || B(n3);
|
||||
});
|
||||
} catch (r2) {
|
||||
t2.some(function(n3) {
|
||||
n3.__h && (n3.__h = []);
|
||||
}), t2 = [], c.__e(r2, n2.__v);
|
||||
}
|
||||
}), l2 && l2(n, t2);
|
||||
}, c.unmount = function(n) {
|
||||
m && m(n);
|
||||
var t2, r2 = n.__c;
|
||||
r2 && r2.__H && (r2.__H.__.forEach(function(n2) {
|
||||
try {
|
||||
z(n2);
|
||||
} catch (n3) {
|
||||
t2 = n3;
|
||||
}
|
||||
}), r2.__H = void 0, t2 && c.__e(t2, r2.__v));
|
||||
};
|
||||
k = "function" == typeof requestAnimationFrame;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
d,
|
||||
h,
|
||||
y,
|
||||
_,
|
||||
A,
|
||||
F,
|
||||
T,
|
||||
q,
|
||||
x,
|
||||
P,
|
||||
b,
|
||||
g,
|
||||
init_hooks_module
|
||||
};
|
||||
//# sourceMappingURL=chunk-O5MKVYJX.js.map
|
7
node_modules/.vite/deps/chunk-O5MKVYJX.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/chunk-O5MKVYJX.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2646
node_modules/.vite/deps/js-yaml.js
generated
vendored
Normal file
2646
node_modules/.vite/deps/js-yaml.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
node_modules/.vite/deps/js-yaml.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/js-yaml.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
node_modules/.vite/deps/package.json
generated
vendored
Normal file
3
node_modules/.vite/deps/package.json
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "module"
|
||||
}
|
305
node_modules/.vite/deps/preact-iso.js
generated
vendored
Normal file
305
node_modules/.vite/deps/preact-iso.js
generated
vendored
Normal file
@ -0,0 +1,305 @@
|
||||
import {
|
||||
A,
|
||||
T,
|
||||
_ as _2,
|
||||
d,
|
||||
h,
|
||||
init_hooks_module,
|
||||
x
|
||||
} from "./chunk-O5MKVYJX.js";
|
||||
import {
|
||||
E,
|
||||
G,
|
||||
H,
|
||||
J,
|
||||
K,
|
||||
_,
|
||||
init_preact_module,
|
||||
l
|
||||
} from "./chunk-453BAUPL.js";
|
||||
import "./chunk-BYYN2XO5.js";
|
||||
|
||||
// node_modules/preact-iso/src/router.js
|
||||
init_preact_module();
|
||||
init_hooks_module();
|
||||
var push;
|
||||
var scope;
|
||||
var UPDATE = (state, url) => {
|
||||
push = void 0;
|
||||
if (url && url.type === "click") {
|
||||
if (url.ctrlKey || url.metaKey || url.altKey || url.shiftKey || url.button !== 0) {
|
||||
return state;
|
||||
}
|
||||
const link = url.composedPath().find((el) => el.nodeName == "A" && el.href), href = link && link.getAttribute("href");
|
||||
if (!link || link.origin != location.origin || /^#/.test(href) || !/^(_?self)?$/i.test(link.target) || scope && (typeof scope == "string" ? !href.startsWith(scope) : !scope.test(href))) {
|
||||
return state;
|
||||
}
|
||||
push = true;
|
||||
url.preventDefault();
|
||||
url = link.href.replace(location.origin, "");
|
||||
} else if (typeof url === "string") {
|
||||
push = true;
|
||||
} else if (url && url.url) {
|
||||
push = !url.replace;
|
||||
url = url.url;
|
||||
} else {
|
||||
url = location.pathname + location.search;
|
||||
}
|
||||
if (push === true) history.pushState(null, "", url);
|
||||
else if (push === false) history.replaceState(null, "", url);
|
||||
return url;
|
||||
};
|
||||
var exec = (url, route, matches = {}) => {
|
||||
url = url.split("/").filter(Boolean);
|
||||
route = (route || "").split("/").filter(Boolean);
|
||||
if (!matches.params) matches.params = {};
|
||||
for (let i = 0, val, rest; i < Math.max(url.length, route.length); i++) {
|
||||
let [, m, param, flag] = (route[i] || "").match(/^(:?)(.*?)([+*?]?)$/);
|
||||
val = url[i];
|
||||
if (!m && param == val) continue;
|
||||
if (!m && val && flag == "*") {
|
||||
matches.rest = "/" + url.slice(i).map(decodeURIComponent).join("/");
|
||||
break;
|
||||
}
|
||||
if (!m || !val && flag != "?" && flag != "*") return;
|
||||
rest = flag == "+" || flag == "*";
|
||||
if (rest) val = url.slice(i).map(decodeURIComponent).join("/") || void 0;
|
||||
else if (val) val = decodeURIComponent(val);
|
||||
matches.params[param] = val;
|
||||
if (!(param in matches)) matches[param] = val;
|
||||
if (rest) break;
|
||||
}
|
||||
return matches;
|
||||
};
|
||||
function LocationProvider(props) {
|
||||
const [url, route] = h(UPDATE, props.url || location.pathname + location.search);
|
||||
if (props.scope) scope = props.scope;
|
||||
const wasPush = push === true;
|
||||
const value = T(() => {
|
||||
const u = new URL(url, location.origin);
|
||||
const path = u.pathname.replace(/\/+$/g, "") || "/";
|
||||
return {
|
||||
url,
|
||||
path,
|
||||
query: Object.fromEntries(u.searchParams),
|
||||
route: (url2, replace) => route({ url: url2, replace }),
|
||||
wasPush
|
||||
};
|
||||
}, [url]);
|
||||
_2(() => {
|
||||
addEventListener("click", route);
|
||||
addEventListener("popstate", route);
|
||||
return () => {
|
||||
removeEventListener("click", route);
|
||||
removeEventListener("popstate", route);
|
||||
};
|
||||
}, []);
|
||||
return _(LocationProvider.ctx.Provider, { value }, props.children);
|
||||
}
|
||||
var RESOLVED = Promise.resolve();
|
||||
function Router(props) {
|
||||
const [c, update] = h((c2) => c2 + 1, 0);
|
||||
const { url, query, wasPush, path } = useLocation();
|
||||
if (!url) {
|
||||
throw new Error(`preact-iso's <Router> must be used within a <LocationProvider>, see: https://github.com/preactjs/preact-iso#locationprovider`);
|
||||
}
|
||||
const { rest = path, params = {} } = x(RouteContext);
|
||||
const isLoading = A(false);
|
||||
const prevRoute = A(path);
|
||||
const count = A(0);
|
||||
const cur = (
|
||||
/** @type {RefObject<VNode<any>>} */
|
||||
A()
|
||||
);
|
||||
const prev = (
|
||||
/** @type {RefObject<VNode<any>>} */
|
||||
A()
|
||||
);
|
||||
const pendingBase = (
|
||||
/** @type {RefObject<Element | Text>} */
|
||||
A()
|
||||
);
|
||||
const hasEverCommitted = A(false);
|
||||
const didSuspend = (
|
||||
/** @type {RefObject<boolean>} */
|
||||
A()
|
||||
);
|
||||
didSuspend.current = false;
|
||||
let pathRoute, defaultRoute, matchProps;
|
||||
H(props.children).some((vnode) => {
|
||||
const matches = exec(rest, vnode.props.path, matchProps = { ...vnode.props, path: rest, query, params, rest: "" });
|
||||
if (matches) return pathRoute = J(vnode, matchProps);
|
||||
if (vnode.props.default) defaultRoute = J(vnode, matchProps);
|
||||
});
|
||||
let incoming = pathRoute || defaultRoute;
|
||||
const isHydratingSuspense = cur.current && cur.current.__u & MODE_HYDRATE && cur.current.__u & MODE_SUSPENDED;
|
||||
const isHydratingBool = cur.current && cur.current.__h;
|
||||
const routeChanged = T(() => {
|
||||
prev.current = cur.current;
|
||||
cur.current = /** @type {VNode<any>} */
|
||||
_(RouteContext.Provider, { value: matchProps }, incoming);
|
||||
const outgoing = prev.current && prev.current.props.children;
|
||||
if (!outgoing || !incoming || incoming.type !== outgoing.type || incoming.props.component !== outgoing.props.component) {
|
||||
if (this.__v && this.__v.__k) this.__v.__k.reverse();
|
||||
count.current++;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}, [url, JSON.stringify(matchProps)]);
|
||||
if (isHydratingSuspense) {
|
||||
cur.current.__u |= MODE_HYDRATE;
|
||||
cur.current.__u |= MODE_SUSPENDED;
|
||||
} else if (isHydratingBool) {
|
||||
cur.current.__h = true;
|
||||
}
|
||||
const p = prev.current;
|
||||
prev.current = null;
|
||||
this.__c = (e, suspendedVNode) => {
|
||||
didSuspend.current = true;
|
||||
prev.current = p;
|
||||
if (props.onLoadStart) props.onLoadStart(url);
|
||||
isLoading.current = true;
|
||||
let c2 = count.current;
|
||||
e.then(() => {
|
||||
if (c2 !== count.current) return;
|
||||
prev.current = null;
|
||||
if (cur.current) {
|
||||
if (suspendedVNode.__h) {
|
||||
cur.current.__h = suspendedVNode.__h;
|
||||
}
|
||||
if (suspendedVNode.__u & MODE_SUSPENDED) {
|
||||
cur.current.__u |= MODE_SUSPENDED;
|
||||
}
|
||||
if (suspendedVNode.__u & MODE_HYDRATE) {
|
||||
cur.current.__u |= MODE_HYDRATE;
|
||||
}
|
||||
}
|
||||
RESOLVED.then(update);
|
||||
});
|
||||
};
|
||||
_2(() => {
|
||||
const currentDom = this.__v && this.__v.__e;
|
||||
if (didSuspend.current) {
|
||||
if (!hasEverCommitted.current && !pendingBase.current) {
|
||||
pendingBase.current = currentDom;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!hasEverCommitted.current && pendingBase.current) {
|
||||
if (pendingBase.current !== currentDom) pendingBase.current.remove();
|
||||
pendingBase.current = null;
|
||||
}
|
||||
hasEverCommitted.current = true;
|
||||
if (prevRoute.current !== path) {
|
||||
if (wasPush) scrollTo(0, 0);
|
||||
if (props.onRouteChange) props.onRouteChange(url);
|
||||
prevRoute.current = path;
|
||||
}
|
||||
if (props.onLoadEnd && isLoading.current) props.onLoadEnd(url);
|
||||
isLoading.current = false;
|
||||
}, [path, wasPush, c]);
|
||||
return routeChanged ? [_(RenderRef, { r: cur }), _(RenderRef, { r: prev })] : _(RenderRef, { r: cur });
|
||||
}
|
||||
var MODE_HYDRATE = 1 << 5;
|
||||
var MODE_SUSPENDED = 1 << 7;
|
||||
var RenderRef = ({ r }) => r.current;
|
||||
Router.Provider = LocationProvider;
|
||||
LocationProvider.ctx = K(
|
||||
/** @type {import('./router.d.ts').LocationHook & { wasPush: boolean }} */
|
||||
{}
|
||||
);
|
||||
var RouteContext = K(
|
||||
/** @type {import('./router.d.ts').RouteHook & { rest: string }} */
|
||||
{}
|
||||
);
|
||||
var Route = (props) => _(props.component, props);
|
||||
var useLocation = () => x(LocationProvider.ctx);
|
||||
var useRoute = () => x(RouteContext);
|
||||
|
||||
// node_modules/preact-iso/src/lazy.js
|
||||
init_preact_module();
|
||||
init_hooks_module();
|
||||
var oldDiff = l.__b;
|
||||
l.__b = (vnode) => {
|
||||
if (vnode.type && vnode.type._forwarded && vnode.ref) {
|
||||
vnode.props.ref = vnode.ref;
|
||||
vnode.ref = null;
|
||||
}
|
||||
if (oldDiff) oldDiff(vnode);
|
||||
};
|
||||
function lazy(load) {
|
||||
let p, c;
|
||||
const loadModule = () => load().then((m) => c = m && m.default || m);
|
||||
const LazyComponent = (props) => {
|
||||
const [, update] = d(0);
|
||||
const r = A(c);
|
||||
if (!p) p = loadModule();
|
||||
if (c !== void 0) return _(c, props);
|
||||
if (!r.current) r.current = p.then(() => update(1));
|
||||
throw p;
|
||||
};
|
||||
LazyComponent.preload = () => {
|
||||
if (!p) p = loadModule();
|
||||
return p;
|
||||
};
|
||||
LazyComponent._forwarded = true;
|
||||
return LazyComponent;
|
||||
}
|
||||
var oldCatchError = l.__e;
|
||||
l.__e = (err, newVNode, oldVNode) => {
|
||||
if (err && err.then) {
|
||||
let v = newVNode;
|
||||
while (v = v.__) {
|
||||
if (v.__c && v.__c.__c) {
|
||||
if (newVNode.__e == null) {
|
||||
newVNode.__c.__z = [oldVNode.__e];
|
||||
newVNode.__e = oldVNode.__e;
|
||||
newVNode.__k = oldVNode.__k;
|
||||
}
|
||||
if (!newVNode.__k) newVNode.__k = [];
|
||||
return v.__c.__c(err, newVNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (oldCatchError) oldCatchError(err, newVNode, oldVNode);
|
||||
};
|
||||
function ErrorBoundary(props) {
|
||||
this.__c = childDidSuspend;
|
||||
this.componentDidCatch = props.onError;
|
||||
return props.children;
|
||||
}
|
||||
function childDidSuspend(err) {
|
||||
err.then(() => this.forceUpdate());
|
||||
}
|
||||
|
||||
// node_modules/preact-iso/src/hydrate.js
|
||||
init_preact_module();
|
||||
var initialized;
|
||||
function hydrate(jsx, parent) {
|
||||
if (typeof window === "undefined") return;
|
||||
let isodata = document.querySelector("script[type=isodata]");
|
||||
parent = parent || isodata && isodata.parentNode || document.body;
|
||||
if (!initialized && isodata) {
|
||||
G(jsx, parent);
|
||||
} else {
|
||||
E(jsx, parent);
|
||||
}
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
// node_modules/preact-iso/src/index.js
|
||||
function prerender(vnode, options) {
|
||||
return import("./prerender-BA576TZW.js").then((m) => m.default(vnode, options));
|
||||
}
|
||||
export {
|
||||
ErrorBoundary,
|
||||
LocationProvider,
|
||||
Route,
|
||||
Router,
|
||||
hydrate,
|
||||
lazy,
|
||||
prerender,
|
||||
useLocation,
|
||||
useRoute
|
||||
};
|
||||
//# sourceMappingURL=preact-iso.js.map
|
7
node_modules/.vite/deps/preact-iso.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/preact-iso.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
30
node_modules/.vite/deps/preact.js
generated
vendored
Normal file
30
node_modules/.vite/deps/preact.js
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
import {
|
||||
E,
|
||||
G,
|
||||
H,
|
||||
J,
|
||||
K,
|
||||
_,
|
||||
b,
|
||||
init_preact_module,
|
||||
k,
|
||||
l,
|
||||
t,
|
||||
x
|
||||
} from "./chunk-453BAUPL.js";
|
||||
import "./chunk-BYYN2XO5.js";
|
||||
init_preact_module();
|
||||
export {
|
||||
x as Component,
|
||||
k as Fragment,
|
||||
J as cloneElement,
|
||||
K as createContext,
|
||||
_ as createElement,
|
||||
b as createRef,
|
||||
_ as h,
|
||||
G as hydrate,
|
||||
t as isValidElement,
|
||||
l as options,
|
||||
E as render,
|
||||
H as toChildArray
|
||||
};
|
7
node_modules/.vite/deps/preact.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/preact.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
240
node_modules/.vite/deps/preact_debug.js
generated
vendored
Normal file
240
node_modules/.vite/deps/preact_debug.js
generated
vendored
Normal file
@ -0,0 +1,240 @@
|
||||
import "./chunk-BNEGSWOM.js";
|
||||
import {
|
||||
init_preact_module,
|
||||
k,
|
||||
l,
|
||||
x
|
||||
} from "./chunk-453BAUPL.js";
|
||||
import "./chunk-BYYN2XO5.js";
|
||||
|
||||
// node_modules/preact/debug/dist/debug.module.js
|
||||
init_preact_module();
|
||||
var t = {};
|
||||
function r() {
|
||||
t = {};
|
||||
}
|
||||
function a(e) {
|
||||
return e.type === k ? "Fragment" : "function" == typeof e.type ? e.type.displayName || e.type.name : "string" == typeof e.type ? e.type : "#text";
|
||||
}
|
||||
var i = [];
|
||||
var s = [];
|
||||
function c() {
|
||||
return i.length > 0 ? i[i.length - 1] : null;
|
||||
}
|
||||
var l2 = true;
|
||||
function u(e) {
|
||||
return "function" == typeof e.type && e.type != k;
|
||||
}
|
||||
function f(n) {
|
||||
for (var e = [n], o = n; null != o.__o; ) e.push(o.__o), o = o.__o;
|
||||
return e.reduce(function(n2, e2) {
|
||||
n2 += " in " + a(e2);
|
||||
var o2 = e2.__source;
|
||||
return o2 ? n2 += " (at " + o2.fileName + ":" + o2.lineNumber + ")" : l2 && console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons."), l2 = false, n2 + "\n";
|
||||
}, "");
|
||||
}
|
||||
var d = "function" == typeof WeakMap;
|
||||
function p(n) {
|
||||
var e = [];
|
||||
return n.__k ? (n.__k.forEach(function(n2) {
|
||||
n2 && "function" == typeof n2.type ? e.push.apply(e, p(n2)) : n2 && "string" == typeof n2.type && e.push(n2.type);
|
||||
}), e) : e;
|
||||
}
|
||||
function h(n) {
|
||||
return n ? "function" == typeof n.type ? null == n.__ ? null != n.__e && null != n.__e.parentNode ? n.__e.parentNode.localName : "" : h(n.__) : n.type : "";
|
||||
}
|
||||
var v = x.prototype.setState;
|
||||
function y(n) {
|
||||
return "table" === n || "tfoot" === n || "tbody" === n || "thead" === n || "td" === n || "tr" === n || "th" === n;
|
||||
}
|
||||
x.prototype.setState = function(n, e) {
|
||||
return null == this.__v && null == this.state && console.warn('Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly.\n\n' + f(c())), v.call(this, n, e);
|
||||
};
|
||||
var m = /^(address|article|aside|blockquote|details|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|main|menu|nav|ol|p|pre|search|section|table|ul)$/;
|
||||
var b = x.prototype.forceUpdate;
|
||||
function w(n) {
|
||||
var e = n.props, o = a(n), t2 = "";
|
||||
for (var r2 in e) if (e.hasOwnProperty(r2) && "children" !== r2) {
|
||||
var i2 = e[r2];
|
||||
"function" == typeof i2 && (i2 = "function " + (i2.displayName || i2.name) + "() {}"), i2 = Object(i2) !== i2 || i2.toString ? i2 + "" : Object.prototype.toString.call(i2), t2 += " " + r2 + "=" + JSON.stringify(i2);
|
||||
}
|
||||
var s2 = e.children;
|
||||
return "<" + o + t2 + (s2 && s2.length ? ">..</" + o + ">" : " />");
|
||||
}
|
||||
x.prototype.forceUpdate = function(n) {
|
||||
return null == this.__v ? console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n' + f(c())) : null == this.__P && console.warn(`Can't call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
|
||||
|
||||
` + f(this.__v)), b.call(this, n);
|
||||
}, l.__m = function(n, e) {
|
||||
var o = n.type, t2 = e.map(function(n2) {
|
||||
return n2 && n2.localName;
|
||||
}).filter(Boolean);
|
||||
console.error('Expected a DOM node of type "' + o + '" but found "' + t2.join(", ") + `" as available DOM-node(s), this is caused by the SSR'd HTML containing different DOM-nodes compared to the hydrated one.
|
||||
|
||||
` + f(n));
|
||||
}, function() {
|
||||
!function() {
|
||||
var n2 = l.__b, o2 = l.diffed, t2 = l.__, r3 = l.vnode, a2 = l.__r;
|
||||
l.diffed = function(n3) {
|
||||
u(n3) && s.pop(), i.pop(), o2 && o2(n3);
|
||||
}, l.__b = function(e) {
|
||||
u(e) && i.push(e), n2 && n2(e);
|
||||
}, l.__ = function(n3, e) {
|
||||
s = [], t2 && t2(n3, e);
|
||||
}, l.vnode = function(n3) {
|
||||
n3.__o = s.length > 0 ? s[s.length - 1] : null, r3 && r3(n3);
|
||||
}, l.__r = function(n3) {
|
||||
u(n3) && s.push(n3), a2 && a2(n3);
|
||||
};
|
||||
}();
|
||||
var n = false, o = l.__b, r2 = l.diffed, c2 = l.vnode, l3 = l.__r, v2 = l.__e, b2 = l.__, g = l.__h, E = d ? { useEffect: /* @__PURE__ */ new WeakMap(), useLayoutEffect: /* @__PURE__ */ new WeakMap(), lazyPropTypes: /* @__PURE__ */ new WeakMap() } : null, k2 = [];
|
||||
l.__e = function(n2, e, o2, t2) {
|
||||
if (e && e.__c && "function" == typeof n2.then) {
|
||||
var r3 = n2;
|
||||
n2 = new Error("Missing Suspense. The throwing component was: " + a(e));
|
||||
for (var i2 = e; i2; i2 = i2.__) if (i2.__c && i2.__c.__c) {
|
||||
n2 = r3;
|
||||
break;
|
||||
}
|
||||
if (n2 instanceof Error) throw n2;
|
||||
}
|
||||
try {
|
||||
(t2 = t2 || {}).componentStack = f(e), v2(n2, e, o2, t2), "function" != typeof n2.then && setTimeout(function() {
|
||||
throw n2;
|
||||
});
|
||||
} catch (n3) {
|
||||
throw n3;
|
||||
}
|
||||
}, l.__ = function(n2, e) {
|
||||
if (!e) throw new Error("Undefined parent passed to render(), this is the second argument.\nCheck if the element is available in the DOM/has the correct id.");
|
||||
var o2;
|
||||
switch (e.nodeType) {
|
||||
case 1:
|
||||
case 11:
|
||||
case 9:
|
||||
o2 = true;
|
||||
break;
|
||||
default:
|
||||
o2 = false;
|
||||
}
|
||||
if (!o2) {
|
||||
var t2 = a(n2);
|
||||
throw new Error("Expected a valid HTML node as a second argument to render. Received " + e + " instead: render(<" + t2 + " />, " + e + ");");
|
||||
}
|
||||
b2 && b2(n2, e);
|
||||
}, l.__b = function(e) {
|
||||
var r3 = e.type;
|
||||
if (n = true, void 0 === r3) throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports" + w(e) + "\n\n" + f(e));
|
||||
if (null != r3 && "object" == typeof r3) {
|
||||
if (void 0 !== r3.__k && void 0 !== r3.__e) throw new Error("Invalid type passed to createElement(): " + r3 + "\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n let My" + a(e) + " = " + w(r3) + ";\n let vnode = <My" + a(e) + " />;\n\nThis usually happens when you export a JSX literal and not the component.\n\n" + f(e));
|
||||
throw new Error("Invalid type passed to createElement(): " + (Array.isArray(r3) ? "array" : r3));
|
||||
}
|
||||
if (void 0 !== e.ref && "function" != typeof e.ref && "object" != typeof e.ref && !("$$typeof" in e)) throw new Error(`Component's "ref" property should be a function, or an object created by createRef(), but got [` + typeof e.ref + "] instead\n" + w(e) + "\n\n" + f(e));
|
||||
if ("string" == typeof e.type) {
|
||||
for (var i2 in e.props) if ("o" === i2[0] && "n" === i2[1] && "function" != typeof e.props[i2] && null != e.props[i2]) throw new Error(`Component's "` + i2 + '" property should be a function, but got [' + typeof e.props[i2] + "] instead\n" + w(e) + "\n\n" + f(e));
|
||||
}
|
||||
if ("function" == typeof e.type && e.type.propTypes) {
|
||||
if ("Lazy" === e.type.displayName && E && !E.lazyPropTypes.has(e.type)) {
|
||||
var s2 = "PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";
|
||||
try {
|
||||
var c3 = e.type();
|
||||
E.lazyPropTypes.set(e.type, true), console.warn(s2 + "Component wrapped in lazy() is " + a(c3));
|
||||
} catch (n2) {
|
||||
console.warn(s2 + "We will log the wrapped component's name once it is loaded.");
|
||||
}
|
||||
}
|
||||
var l4 = e.props;
|
||||
e.type.__f && delete (l4 = function(n2, e2) {
|
||||
for (var o2 in e2) n2[o2] = e2[o2];
|
||||
return n2;
|
||||
}({}, l4)).ref, function(n2, e2, o2, r4, a2) {
|
||||
Object.keys(n2).forEach(function(o3) {
|
||||
var i3;
|
||||
try {
|
||||
i3 = n2[o3](e2, o3, r4, "prop", null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
||||
} catch (n3) {
|
||||
i3 = n3;
|
||||
}
|
||||
i3 && !(i3.message in t) && (t[i3.message] = true, console.error("Failed prop type: " + i3.message + (a2 && "\n" + a2() || "")));
|
||||
});
|
||||
}(e.type.propTypes, l4, 0, a(e), function() {
|
||||
return f(e);
|
||||
});
|
||||
}
|
||||
o && o(e);
|
||||
};
|
||||
var T, _ = 0;
|
||||
l.__r = function(e) {
|
||||
l3 && l3(e), n = true;
|
||||
var o2 = e.__c;
|
||||
if (o2 === T ? _++ : _ = 1, _ >= 25) throw new Error("Too many re-renders. This is limited to prevent an infinite loop which may lock up your browser. The component causing this is: " + a(e));
|
||||
T = o2;
|
||||
}, l.__h = function(e, o2, t2) {
|
||||
if (!e || !n) throw new Error("Hook can only be invoked from render methods.");
|
||||
g && g(e, o2, t2);
|
||||
};
|
||||
var O = function(n2, e) {
|
||||
return { get: function() {
|
||||
var o2 = "get" + n2 + e;
|
||||
k2 && k2.indexOf(o2) < 0 && (k2.push(o2), console.warn("getting vnode." + n2 + " is deprecated, " + e));
|
||||
}, set: function() {
|
||||
var o2 = "set" + n2 + e;
|
||||
k2 && k2.indexOf(o2) < 0 && (k2.push(o2), console.warn("setting vnode." + n2 + " is not allowed, " + e));
|
||||
} };
|
||||
}, I = { nodeName: O("nodeName", "use vnode.type"), attributes: O("attributes", "use vnode.props"), children: O("children", "use vnode.props.children") }, M = Object.create({}, I);
|
||||
l.vnode = function(n2) {
|
||||
var e = n2.props;
|
||||
if (null !== n2.type && null != e && ("__source" in e || "__self" in e)) {
|
||||
var o2 = n2.props = {};
|
||||
for (var t2 in e) {
|
||||
var r3 = e[t2];
|
||||
"__source" === t2 ? n2.__source = r3 : "__self" === t2 ? n2.__self = r3 : o2[t2] = r3;
|
||||
}
|
||||
}
|
||||
n2.__proto__ = M, c2 && c2(n2);
|
||||
}, l.diffed = function(e) {
|
||||
var o2, t2 = e.type, i2 = e.__;
|
||||
if (e.__k && e.__k.forEach(function(n2) {
|
||||
if ("object" == typeof n2 && n2 && void 0 === n2.type) {
|
||||
var o3 = Object.keys(n2).join(",");
|
||||
throw new Error("Objects are not valid as a child. Encountered an object with the keys {" + o3 + "}.\n\n" + f(e));
|
||||
}
|
||||
}), e.__c === T && (_ = 0), "string" == typeof t2 && (y(t2) || "p" === t2 || "a" === t2 || "button" === t2)) {
|
||||
var s2 = h(i2);
|
||||
if ("" !== s2 && y(t2)) "table" === t2 && "td" !== s2 && y(s2) ? console.error("Improper nesting of table. Your <table> should not have a table-node parent." + w(e) + "\n\n" + f(e)) : "thead" !== t2 && "tfoot" !== t2 && "tbody" !== t2 || "table" === s2 ? "tr" === t2 && "thead" !== s2 && "tfoot" !== s2 && "tbody" !== s2 ? console.error("Improper nesting of table. Your <tr> should have a <thead/tbody/tfoot> parent." + w(e) + "\n\n" + f(e)) : "td" === t2 && "tr" !== s2 ? console.error("Improper nesting of table. Your <td> should have a <tr> parent." + w(e) + "\n\n" + f(e)) : "th" === t2 && "tr" !== s2 && console.error("Improper nesting of table. Your <th> should have a <tr>." + w(e) + "\n\n" + f(e)) : console.error("Improper nesting of table. Your <thead/tbody/tfoot> should have a <table> parent." + w(e) + "\n\n" + f(e));
|
||||
else if ("p" === t2) {
|
||||
var c3 = p(e).filter(function(n2) {
|
||||
return m.test(n2);
|
||||
});
|
||||
c3.length && console.error("Improper nesting of paragraph. Your <p> should not have " + c3.join(", ") + " as child-elements." + w(e) + "\n\n" + f(e));
|
||||
} else "a" !== t2 && "button" !== t2 || -1 !== p(e).indexOf(t2) && console.error("Improper nesting of interactive content. Your <" + t2 + "> should not have other " + ("a" === t2 ? "anchor" : "button") + " tags as child-elements." + w(e) + "\n\n" + f(e));
|
||||
}
|
||||
if (n = false, r2 && r2(e), null != e.__k) for (var l4 = [], u2 = 0; u2 < e.__k.length; u2++) {
|
||||
var d2 = e.__k[u2];
|
||||
if (d2 && null != d2.key) {
|
||||
var v3 = d2.key;
|
||||
if (-1 !== l4.indexOf(v3)) {
|
||||
console.error('Following component has two or more children with the same key attribute: "' + v3 + '". This may cause glitches and misbehavior in rendering process. Component: \n\n' + w(e) + "\n\n" + f(e));
|
||||
break;
|
||||
}
|
||||
l4.push(v3);
|
||||
}
|
||||
}
|
||||
if (null != e.__c && null != e.__c.__H) {
|
||||
var b3 = e.__c.__H.__;
|
||||
if (b3) for (var g2 = 0; g2 < b3.length; g2 += 1) {
|
||||
var E2 = b3[g2];
|
||||
if (E2.__H) {
|
||||
for (var k3 = 0; k3 < E2.__H.length; k3++) if ((o2 = E2.__H[k3]) != o2) {
|
||||
var O2 = a(e);
|
||||
console.warn("Invalid argument passed to hook. Hooks should not be called with NaN in the dependency array. Hook index " + g2 + " in component " + O2 + " was called with NaN.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}();
|
||||
export {
|
||||
r as resetPropWarnings
|
||||
};
|
||||
//# sourceMappingURL=preact_debug.js.map
|
7
node_modules/.vite/deps/preact_debug.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/preact_debug.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
8
node_modules/.vite/deps/preact_devtools.js
generated
vendored
Normal file
8
node_modules/.vite/deps/preact_devtools.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
import {
|
||||
t
|
||||
} from "./chunk-BNEGSWOM.js";
|
||||
import "./chunk-453BAUPL.js";
|
||||
import "./chunk-BYYN2XO5.js";
|
||||
export {
|
||||
t as addHookName
|
||||
};
|
7
node_modules/.vite/deps/preact_devtools.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/preact_devtools.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
32
node_modules/.vite/deps/preact_hooks.js
generated
vendored
Normal file
32
node_modules/.vite/deps/preact_hooks.js
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
import {
|
||||
A,
|
||||
F,
|
||||
P,
|
||||
T,
|
||||
_,
|
||||
b,
|
||||
d,
|
||||
g,
|
||||
h,
|
||||
init_hooks_module,
|
||||
q,
|
||||
x,
|
||||
y
|
||||
} from "./chunk-O5MKVYJX.js";
|
||||
import "./chunk-453BAUPL.js";
|
||||
import "./chunk-BYYN2XO5.js";
|
||||
init_hooks_module();
|
||||
export {
|
||||
q as useCallback,
|
||||
x as useContext,
|
||||
P as useDebugValue,
|
||||
y as useEffect,
|
||||
b as useErrorBoundary,
|
||||
g as useId,
|
||||
F as useImperativeHandle,
|
||||
_ as useLayoutEffect,
|
||||
T as useMemo,
|
||||
h as useReducer,
|
||||
A as useRef,
|
||||
d as useState
|
||||
};
|
7
node_modules/.vite/deps/preact_hooks.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/preact_hooks.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
19
node_modules/.vite/deps/preact_jsx-dev-runtime.js
generated
vendored
Normal file
19
node_modules/.vite/deps/preact_jsx-dev-runtime.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
import {
|
||||
a,
|
||||
l,
|
||||
s,
|
||||
u
|
||||
} from "./chunk-2PFVE7YK.js";
|
||||
import {
|
||||
k
|
||||
} from "./chunk-453BAUPL.js";
|
||||
import "./chunk-BYYN2XO5.js";
|
||||
export {
|
||||
k as Fragment,
|
||||
u as jsx,
|
||||
l as jsxAttr,
|
||||
u as jsxDEV,
|
||||
s as jsxEscape,
|
||||
a as jsxTemplate,
|
||||
u as jsxs
|
||||
};
|
7
node_modules/.vite/deps/preact_jsx-dev-runtime.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/preact_jsx-dev-runtime.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
19
node_modules/.vite/deps/preact_jsx-runtime.js
generated
vendored
Normal file
19
node_modules/.vite/deps/preact_jsx-runtime.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
import {
|
||||
a,
|
||||
l,
|
||||
s,
|
||||
u
|
||||
} from "./chunk-2PFVE7YK.js";
|
||||
import {
|
||||
k
|
||||
} from "./chunk-453BAUPL.js";
|
||||
import "./chunk-BYYN2XO5.js";
|
||||
export {
|
||||
k as Fragment,
|
||||
u as jsx,
|
||||
l as jsxAttr,
|
||||
u as jsxDEV,
|
||||
s as jsxEscape,
|
||||
a as jsxTemplate,
|
||||
u as jsxs
|
||||
};
|
7
node_modules/.vite/deps/preact_jsx-runtime.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/preact_jsx-runtime.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
397
node_modules/.vite/deps/prerender-BA576TZW.js
generated
vendored
Normal file
397
node_modules/.vite/deps/prerender-BA576TZW.js
generated
vendored
Normal file
@ -0,0 +1,397 @@
|
||||
import {
|
||||
J,
|
||||
_,
|
||||
init_preact_module,
|
||||
k,
|
||||
l
|
||||
} from "./chunk-453BAUPL.js";
|
||||
import "./chunk-BYYN2XO5.js";
|
||||
|
||||
// node_modules/preact-iso/src/prerender.js
|
||||
init_preact_module();
|
||||
|
||||
// node_modules/preact-render-to-string/dist/index.module.js
|
||||
init_preact_module();
|
||||
var n = /[\s\n\\/='"\0<>]/;
|
||||
var o = /^(xlink|xmlns|xml)([A-Z])/;
|
||||
var i = /^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/;
|
||||
var a = /^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/;
|
||||
var c = /* @__PURE__ */ new Set(["draggable", "spellcheck"]);
|
||||
var s = /["&<]/;
|
||||
function l2(e) {
|
||||
if (0 === e.length || false === s.test(e)) return e;
|
||||
for (var t = 0, r = 0, n2 = "", o2 = ""; r < e.length; r++) {
|
||||
switch (e.charCodeAt(r)) {
|
||||
case 34:
|
||||
o2 = """;
|
||||
break;
|
||||
case 38:
|
||||
o2 = "&";
|
||||
break;
|
||||
case 60:
|
||||
o2 = "<";
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
r !== t && (n2 += e.slice(t, r)), n2 += o2, t = r + 1;
|
||||
}
|
||||
return r !== t && (n2 += e.slice(t, r)), n2;
|
||||
}
|
||||
var u = {};
|
||||
var f = /* @__PURE__ */ new Set(["animation-iteration-count", "border-image-outset", "border-image-slice", "border-image-width", "box-flex", "box-flex-group", "box-ordinal-group", "column-count", "fill-opacity", "flex", "flex-grow", "flex-negative", "flex-order", "flex-positive", "flex-shrink", "flood-opacity", "font-weight", "grid-column", "grid-row", "line-clamp", "line-height", "opacity", "order", "orphans", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-miterlimit", "stroke-opacity", "stroke-width", "tab-size", "widows", "z-index", "zoom"]);
|
||||
var p = /[A-Z]/g;
|
||||
function h(e) {
|
||||
var t = "";
|
||||
for (var r in e) {
|
||||
var n2 = e[r];
|
||||
if (null != n2 && "" !== n2) {
|
||||
var o2 = "-" == r[0] ? r : u[r] || (u[r] = r.replace(p, "-$&").toLowerCase()), i2 = ";";
|
||||
"number" != typeof n2 || o2.startsWith("--") || f.has(o2) || (i2 = "px;"), t = t + o2 + ":" + n2 + i2;
|
||||
}
|
||||
}
|
||||
return t || void 0;
|
||||
}
|
||||
function d() {
|
||||
this.__d = true;
|
||||
}
|
||||
function v(e, t) {
|
||||
return { __v: e, context: t, props: e.props, setState: d, forceUpdate: d, __d: true, __h: new Array(0) };
|
||||
}
|
||||
function _2(e, t, r) {
|
||||
if (!e.s) {
|
||||
if (r instanceof m) {
|
||||
if (!r.s) return void (r.o = _2.bind(null, e, t));
|
||||
1 & t && (t = r.s), r = r.v;
|
||||
}
|
||||
if (r && r.then) return void r.then(_2.bind(null, e, t), _2.bind(null, e, 2));
|
||||
e.s = t, e.v = r;
|
||||
const n2 = e.o;
|
||||
n2 && n2(e);
|
||||
}
|
||||
}
|
||||
var m = function() {
|
||||
function e() {
|
||||
}
|
||||
return e.prototype.then = function(t, r) {
|
||||
var n2 = new e(), o2 = this.s;
|
||||
if (o2) {
|
||||
var i2 = 1 & o2 ? t : r;
|
||||
if (i2) {
|
||||
try {
|
||||
_2(n2, 1, i2(this.v));
|
||||
} catch (e2) {
|
||||
_2(n2, 2, e2);
|
||||
}
|
||||
return n2;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
return this.o = function(e2) {
|
||||
try {
|
||||
var o3 = e2.v;
|
||||
1 & e2.s ? _2(n2, 1, t ? t(o3) : o3) : r ? _2(n2, 1, r(o3)) : _2(n2, 2, o3);
|
||||
} catch (e3) {
|
||||
_2(n2, 2, e3);
|
||||
}
|
||||
}, n2;
|
||||
}, e;
|
||||
}();
|
||||
function y(e) {
|
||||
return e instanceof m && 1 & e.s;
|
||||
}
|
||||
function g(e, t, r) {
|
||||
for (var n2; ; ) {
|
||||
var o2 = e();
|
||||
if (y(o2) && (o2 = o2.v), !o2) return i2;
|
||||
if (o2.then) {
|
||||
n2 = 0;
|
||||
break;
|
||||
}
|
||||
var i2 = r();
|
||||
if (i2 && i2.then) {
|
||||
if (!y(i2)) {
|
||||
n2 = 1;
|
||||
break;
|
||||
}
|
||||
i2 = i2.s;
|
||||
}
|
||||
if (t) {
|
||||
var a2 = t();
|
||||
if (a2 && a2.then && !y(a2)) {
|
||||
n2 = 2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
var c2 = new m(), s2 = _2.bind(null, c2, 2);
|
||||
return (0 === n2 ? o2.then(u2) : 1 === n2 ? i2.then(l3) : a2.then(f2)).then(void 0, s2), c2;
|
||||
function l3(n3) {
|
||||
i2 = n3;
|
||||
do {
|
||||
if (t && (a2 = t()) && a2.then && !y(a2)) return void a2.then(f2).then(void 0, s2);
|
||||
if (!(o2 = e()) || y(o2) && !o2.v) return void _2(c2, 1, i2);
|
||||
if (o2.then) return void o2.then(u2).then(void 0, s2);
|
||||
y(i2 = r()) && (i2 = i2.v);
|
||||
} while (!i2 || !i2.then);
|
||||
i2.then(l3).then(void 0, s2);
|
||||
}
|
||||
function u2(e2) {
|
||||
e2 ? (i2 = r()) && i2.then ? i2.then(l3).then(void 0, s2) : l3(i2) : _2(c2, 1, i2);
|
||||
}
|
||||
function f2() {
|
||||
(o2 = e()) ? o2.then ? o2.then(u2).then(void 0, s2) : u2(o2) : _2(c2, 1, i2);
|
||||
}
|
||||
}
|
||||
function b(e, t) {
|
||||
try {
|
||||
var r = e();
|
||||
} catch (e2) {
|
||||
return t(true, e2);
|
||||
}
|
||||
return r && r.then ? r.then(t.bind(null, false), t.bind(null, true)) : t(false, r);
|
||||
}
|
||||
var k2;
|
||||
var w;
|
||||
var x;
|
||||
var C;
|
||||
var A = function(n2, o2) {
|
||||
try {
|
||||
var i2 = l.__s;
|
||||
l.__s = true, k2 = l.__b, w = l.diffed, x = l.__r, C = l.unmount;
|
||||
var a2 = _(k, null);
|
||||
return a2.__k = [n2], Promise.resolve(b(function() {
|
||||
return Promise.resolve(U(n2, o2 || S, false, void 0, a2, true, void 0)).then(function(e) {
|
||||
var t, r = function() {
|
||||
if (E(e)) {
|
||||
var r2 = function() {
|
||||
var e2 = o3.join(j);
|
||||
return t = 1, e2;
|
||||
}, n3 = 0, o3 = e, i3 = g(function() {
|
||||
return !!o3.some(function(e2) {
|
||||
return e2 && "function" == typeof e2.then;
|
||||
}) && n3++ < 25;
|
||||
}, void 0, function() {
|
||||
return Promise.resolve(Promise.all(o3)).then(function(e2) {
|
||||
o3 = e2.flat();
|
||||
});
|
||||
});
|
||||
return i3 && i3.then ? i3.then(r2) : r2();
|
||||
}
|
||||
}();
|
||||
return r && r.then ? r.then(function(r2) {
|
||||
return t ? r2 : e;
|
||||
}) : t ? r : e;
|
||||
});
|
||||
}, function(t, r) {
|
||||
if (l.__c && l.__c(n2, L), l.__s = i2, L.length = 0, t) throw r;
|
||||
return r;
|
||||
}));
|
||||
} catch (e) {
|
||||
return Promise.reject(e);
|
||||
}
|
||||
};
|
||||
var S = {};
|
||||
var L = [];
|
||||
var E = Array.isArray;
|
||||
var T = Object.assign;
|
||||
var j = "";
|
||||
function P(e, t) {
|
||||
var r, n2 = e.type, o2 = true;
|
||||
return e.__c ? (o2 = false, (r = e.__c).state = r.__s) : r = new n2(e.props, t), e.__c = r, r.__v = e, r.props = e.props, r.context = t, r.__d = true, null == r.state && (r.state = S), null == r.__s && (r.__s = r.state), n2.getDerivedStateFromProps ? r.state = T({}, r.state, n2.getDerivedStateFromProps(r.props, r.state)) : o2 && r.componentWillMount ? (r.componentWillMount(), r.state = r.__s !== r.state ? r.__s : r.state) : !o2 && r.componentWillUpdate && r.componentWillUpdate(), x && x(e), r.render(r.props, r.state, t);
|
||||
}
|
||||
function U(t, s2, u2, f2, p2, d2, _3) {
|
||||
if (null == t || true === t || false === t || t === j) return j;
|
||||
var m2 = typeof t;
|
||||
if ("object" != m2) return "function" == m2 ? j : "string" == m2 ? l2(t) : t + j;
|
||||
if (E(t)) {
|
||||
var y2, g2 = j;
|
||||
p2.__k = t;
|
||||
for (var b2 = t.length, A2 = 0; A2 < b2; A2++) {
|
||||
var L2 = t[A2];
|
||||
if (null != L2 && "boolean" != typeof L2) {
|
||||
var D, F = U(L2, s2, u2, f2, p2, d2, _3);
|
||||
"string" == typeof F ? g2 += F : (y2 || (y2 = new Array(b2)), g2 && y2.push(g2), g2 = j, E(F) ? (D = y2).push.apply(D, F) : y2.push(F));
|
||||
}
|
||||
}
|
||||
return y2 ? (g2 && y2.push(g2), y2) : g2;
|
||||
}
|
||||
if (void 0 !== t.constructor) return j;
|
||||
t.__ = p2, k2 && k2(t);
|
||||
var M = t.type, W = t.props;
|
||||
if ("function" == typeof M) {
|
||||
var $, z, H, N = s2;
|
||||
if (M === k) {
|
||||
if ("tpl" in W) {
|
||||
for (var q = j, B = 0; B < W.tpl.length; B++) if (q += W.tpl[B], W.exprs && B < W.exprs.length) {
|
||||
var I = W.exprs[B];
|
||||
if (null == I) continue;
|
||||
"object" != typeof I || void 0 !== I.constructor && !E(I) ? q += I : q += U(I, s2, u2, f2, t, d2, _3);
|
||||
}
|
||||
return q;
|
||||
}
|
||||
if ("UNSTABLE_comment" in W) return "<!--" + l2(W.UNSTABLE_comment) + "-->";
|
||||
z = W.children;
|
||||
} else {
|
||||
if (null != ($ = M.contextType)) {
|
||||
var O = s2[$.__c];
|
||||
N = O ? O.props.value : $.__;
|
||||
}
|
||||
var R = M.prototype && "function" == typeof M.prototype.render;
|
||||
if (R) z = P(t, N), H = t.__c;
|
||||
else {
|
||||
t.__c = H = v(t, N);
|
||||
for (var V = 0; H.__d && V++ < 25; ) H.__d = false, x && x(t), z = M.call(H, W, N);
|
||||
H.__d = true;
|
||||
}
|
||||
if (null != H.getChildContext && (s2 = T({}, s2, H.getChildContext())), R && l.errorBoundaries && (M.getDerivedStateFromError || H.componentDidCatch)) {
|
||||
z = null != z && z.type === k && null == z.key && null == z.props.tpl ? z.props.children : z;
|
||||
try {
|
||||
return U(z, s2, u2, f2, t, d2, _3);
|
||||
} catch (e) {
|
||||
return M.getDerivedStateFromError && (H.__s = M.getDerivedStateFromError(e)), H.componentDidCatch && H.componentDidCatch(e, S), H.__d ? (z = P(t, s2), null != (H = t.__c).getChildContext && (s2 = T({}, s2, H.getChildContext())), U(z = null != z && z.type === k && null == z.key && null == z.props.tpl ? z.props.children : z, s2, u2, f2, t, d2, _3)) : j;
|
||||
} finally {
|
||||
w && w(t), C && C(t);
|
||||
}
|
||||
}
|
||||
}
|
||||
z = null != z && z.type === k && null == z.key && null == z.props.tpl ? z.props.children : z;
|
||||
try {
|
||||
var K = U(z, s2, u2, f2, t, d2, _3);
|
||||
return w && w(t), l.unmount && l.unmount(t), K;
|
||||
} catch (r) {
|
||||
if (!d2 && _3 && _3.onError) {
|
||||
var G = _3.onError(r, t, function(e, t2) {
|
||||
return U(e, s2, u2, f2, t2, d2, _3);
|
||||
});
|
||||
if (void 0 !== G) return G;
|
||||
var J2 = l.__e;
|
||||
return J2 && J2(r, t), j;
|
||||
}
|
||||
if (!d2) throw r;
|
||||
if (!r || "function" != typeof r.then) throw r;
|
||||
return r.then(function e() {
|
||||
try {
|
||||
return U(z, s2, u2, f2, t, d2, _3);
|
||||
} catch (r2) {
|
||||
if (!r2 || "function" != typeof r2.then) throw r2;
|
||||
return r2.then(function() {
|
||||
return U(z, s2, u2, f2, t, d2, _3);
|
||||
}, e);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
var Q, X = "<" + M, Y = j;
|
||||
for (var ee in W) {
|
||||
var te = W[ee];
|
||||
if ("function" != typeof te || "class" === ee || "className" === ee) {
|
||||
switch (ee) {
|
||||
case "children":
|
||||
Q = te;
|
||||
continue;
|
||||
case "key":
|
||||
case "ref":
|
||||
case "__self":
|
||||
case "__source":
|
||||
continue;
|
||||
case "htmlFor":
|
||||
if ("for" in W) continue;
|
||||
ee = "for";
|
||||
break;
|
||||
case "className":
|
||||
if ("class" in W) continue;
|
||||
ee = "class";
|
||||
break;
|
||||
case "defaultChecked":
|
||||
ee = "checked";
|
||||
break;
|
||||
case "defaultSelected":
|
||||
ee = "selected";
|
||||
break;
|
||||
case "defaultValue":
|
||||
case "value":
|
||||
switch (ee = "value", M) {
|
||||
case "textarea":
|
||||
Q = te;
|
||||
continue;
|
||||
case "select":
|
||||
f2 = te;
|
||||
continue;
|
||||
case "option":
|
||||
f2 != te || "selected" in W || (X += " selected");
|
||||
}
|
||||
break;
|
||||
case "dangerouslySetInnerHTML":
|
||||
Y = te && te.__html;
|
||||
continue;
|
||||
case "style":
|
||||
"object" == typeof te && (te = h(te));
|
||||
break;
|
||||
case "acceptCharset":
|
||||
ee = "accept-charset";
|
||||
break;
|
||||
case "httpEquiv":
|
||||
ee = "http-equiv";
|
||||
break;
|
||||
default:
|
||||
if (o.test(ee)) ee = ee.replace(o, "$1:$2").toLowerCase();
|
||||
else {
|
||||
if (n.test(ee)) continue;
|
||||
"-" !== ee[4] && !c.has(ee) || null == te ? u2 ? a.test(ee) && (ee = "panose1" === ee ? "panose-1" : ee.replace(/([A-Z])/g, "-$1").toLowerCase()) : i.test(ee) && (ee = ee.toLowerCase()) : te += j;
|
||||
}
|
||||
}
|
||||
null != te && false !== te && (X = true === te || te === j ? X + " " + ee : X + " " + ee + '="' + ("string" == typeof te ? l2(te) : te + j) + '"');
|
||||
}
|
||||
}
|
||||
if (n.test(M)) throw new Error(M + " is not a valid HTML tag name in " + X + ">");
|
||||
if (Y || ("string" == typeof Q ? Y = l2(Q) : null != Q && false !== Q && true !== Q && (Y = U(Q, s2, "svg" === M || "foreignObject" !== M && u2, f2, t, d2, _3))), w && w(t), C && C(t), !Y && Z.has(M)) return X + "/>";
|
||||
var re = "</" + M + ">", ne = X + ">";
|
||||
return E(Y) ? [ne].concat(Y, [re]) : "string" != typeof Y ? [ne, Y, re] : ne + Y + re;
|
||||
}
|
||||
var Z = /* @__PURE__ */ new Set(["area", "base", "br", "col", "command", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]);
|
||||
|
||||
// node_modules/preact-iso/src/prerender.js
|
||||
var vnodeHook;
|
||||
var old = l.vnode;
|
||||
l.vnode = (vnode) => {
|
||||
if (old) old(vnode);
|
||||
if (vnodeHook) vnodeHook(vnode);
|
||||
};
|
||||
async function prerender(vnode, options) {
|
||||
options = options || {};
|
||||
const props = options.props;
|
||||
if (typeof vnode === "function") {
|
||||
vnode = _(vnode, props);
|
||||
} else if (props) {
|
||||
vnode = J(vnode, props);
|
||||
}
|
||||
let links = /* @__PURE__ */ new Set();
|
||||
vnodeHook = ({ type, props: props2 }) => {
|
||||
if (type === "a" && props2 && props2.href && (!props2.target || props2.target === "_self")) {
|
||||
links.add(props2.href);
|
||||
}
|
||||
};
|
||||
try {
|
||||
let html = await A(vnode);
|
||||
html += `<script type="isodata"><\/script>`;
|
||||
return { html, links };
|
||||
} finally {
|
||||
vnodeHook = null;
|
||||
}
|
||||
}
|
||||
function locationStub(path) {
|
||||
globalThis.location = {};
|
||||
const u2 = new URL(path, "http://localhost");
|
||||
for (const i2 in u2) {
|
||||
try {
|
||||
globalThis.location[i2] = /to[A-Z]/.test(i2) ? u2[i2].bind(u2) : String(u2[i2]);
|
||||
} catch {
|
||||
}
|
||||
}
|
||||
}
|
||||
export {
|
||||
prerender as default,
|
||||
locationStub
|
||||
};
|
||||
//# sourceMappingURL=prerender-BA576TZW.js.map
|
7
node_modules/.vite/deps/prerender-BA576TZW.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/prerender-BA576TZW.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
195
node_modules/.vite/deps/react-chartjs-2.js
generated
vendored
Normal file
195
node_modules/.vite/deps/react-chartjs-2.js
generated
vendored
Normal file
@ -0,0 +1,195 @@
|
||||
import {
|
||||
D,
|
||||
Rn,
|
||||
init_compat_module
|
||||
} from "./chunk-AAFB4U5C.js";
|
||||
import {
|
||||
A,
|
||||
y
|
||||
} from "./chunk-O5MKVYJX.js";
|
||||
import {
|
||||
BarController,
|
||||
BubbleController,
|
||||
Chart,
|
||||
DoughnutController,
|
||||
LineController,
|
||||
PieController,
|
||||
PolarAreaController,
|
||||
RadarController,
|
||||
ScatterController
|
||||
} from "./chunk-44JN52BC.js";
|
||||
import "./chunk-453BAUPL.js";
|
||||
import "./chunk-BYYN2XO5.js";
|
||||
|
||||
// node_modules/react-chartjs-2/dist/index.js
|
||||
init_compat_module();
|
||||
var defaultDatasetIdKey = "label";
|
||||
function reforwardRef(ref, value) {
|
||||
if (typeof ref === "function") {
|
||||
ref(value);
|
||||
} else if (ref) {
|
||||
ref.current = value;
|
||||
}
|
||||
}
|
||||
function setOptions(chart, nextOptions) {
|
||||
const options = chart.options;
|
||||
if (options && nextOptions) {
|
||||
Object.assign(options, nextOptions);
|
||||
}
|
||||
}
|
||||
function setLabels(currentData, nextLabels) {
|
||||
currentData.labels = nextLabels;
|
||||
}
|
||||
function setDatasets(currentData, nextDatasets) {
|
||||
let datasetIdKey = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : defaultDatasetIdKey;
|
||||
const addedDatasets = [];
|
||||
currentData.datasets = nextDatasets.map((nextDataset) => {
|
||||
const currentDataset = currentData.datasets.find((dataset) => dataset[datasetIdKey] === nextDataset[datasetIdKey]);
|
||||
if (!currentDataset || !nextDataset.data || addedDatasets.includes(currentDataset)) {
|
||||
return {
|
||||
...nextDataset
|
||||
};
|
||||
}
|
||||
addedDatasets.push(currentDataset);
|
||||
Object.assign(currentDataset, nextDataset);
|
||||
return currentDataset;
|
||||
});
|
||||
}
|
||||
function cloneData(data) {
|
||||
let datasetIdKey = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultDatasetIdKey;
|
||||
const nextData = {
|
||||
labels: [],
|
||||
datasets: []
|
||||
};
|
||||
setLabels(nextData, data.labels);
|
||||
setDatasets(nextData, data.datasets, datasetIdKey);
|
||||
return nextData;
|
||||
}
|
||||
function getDatasetAtEvent(chart, event) {
|
||||
return chart.getElementsAtEventForMode(event.nativeEvent, "dataset", {
|
||||
intersect: true
|
||||
}, false);
|
||||
}
|
||||
function getElementAtEvent(chart, event) {
|
||||
return chart.getElementsAtEventForMode(event.nativeEvent, "nearest", {
|
||||
intersect: true
|
||||
}, false);
|
||||
}
|
||||
function getElementsAtEvent(chart, event) {
|
||||
return chart.getElementsAtEventForMode(event.nativeEvent, "index", {
|
||||
intersect: true
|
||||
}, false);
|
||||
}
|
||||
function ChartComponent(props, ref) {
|
||||
const { height = 150, width = 300, redraw = false, datasetIdKey, type, data, options, plugins = [], fallbackContent, updateMode, ...canvasProps } = props;
|
||||
const canvasRef = A(null);
|
||||
const chartRef = A(null);
|
||||
const renderChart = () => {
|
||||
if (!canvasRef.current) return;
|
||||
chartRef.current = new Chart(canvasRef.current, {
|
||||
type,
|
||||
data: cloneData(data, datasetIdKey),
|
||||
options: options && {
|
||||
...options
|
||||
},
|
||||
plugins
|
||||
});
|
||||
reforwardRef(ref, chartRef.current);
|
||||
};
|
||||
const destroyChart = () => {
|
||||
reforwardRef(ref, null);
|
||||
if (chartRef.current) {
|
||||
chartRef.current.destroy();
|
||||
chartRef.current = null;
|
||||
}
|
||||
};
|
||||
y(() => {
|
||||
if (!redraw && chartRef.current && options) {
|
||||
setOptions(chartRef.current, options);
|
||||
}
|
||||
}, [
|
||||
redraw,
|
||||
options
|
||||
]);
|
||||
y(() => {
|
||||
if (!redraw && chartRef.current) {
|
||||
setLabels(chartRef.current.config.data, data.labels);
|
||||
}
|
||||
}, [
|
||||
redraw,
|
||||
data.labels
|
||||
]);
|
||||
y(() => {
|
||||
if (!redraw && chartRef.current && data.datasets) {
|
||||
setDatasets(chartRef.current.config.data, data.datasets, datasetIdKey);
|
||||
}
|
||||
}, [
|
||||
redraw,
|
||||
data.datasets
|
||||
]);
|
||||
y(() => {
|
||||
if (!chartRef.current) return;
|
||||
if (redraw) {
|
||||
destroyChart();
|
||||
setTimeout(renderChart);
|
||||
} else {
|
||||
chartRef.current.update(updateMode);
|
||||
}
|
||||
}, [
|
||||
redraw,
|
||||
options,
|
||||
data.labels,
|
||||
data.datasets,
|
||||
updateMode
|
||||
]);
|
||||
y(() => {
|
||||
if (!chartRef.current) return;
|
||||
destroyChart();
|
||||
setTimeout(renderChart);
|
||||
}, [
|
||||
type
|
||||
]);
|
||||
y(() => {
|
||||
renderChart();
|
||||
return () => destroyChart();
|
||||
}, []);
|
||||
return Rn.createElement("canvas", {
|
||||
ref: canvasRef,
|
||||
role: "img",
|
||||
height,
|
||||
width,
|
||||
...canvasProps
|
||||
}, fallbackContent);
|
||||
}
|
||||
var Chart2 = D(ChartComponent);
|
||||
function createTypedChart(type, registerables) {
|
||||
Chart.register(registerables);
|
||||
return D((props, ref) => Rn.createElement(Chart2, {
|
||||
...props,
|
||||
ref,
|
||||
type
|
||||
}));
|
||||
}
|
||||
var Line = createTypedChart("line", LineController);
|
||||
var Bar = createTypedChart("bar", BarController);
|
||||
var Radar = createTypedChart("radar", RadarController);
|
||||
var Doughnut = createTypedChart("doughnut", DoughnutController);
|
||||
var PolarArea = createTypedChart("polarArea", PolarAreaController);
|
||||
var Bubble = createTypedChart("bubble", BubbleController);
|
||||
var Pie = createTypedChart("pie", PieController);
|
||||
var Scatter = createTypedChart("scatter", ScatterController);
|
||||
export {
|
||||
Bar,
|
||||
Bubble,
|
||||
Chart2 as Chart,
|
||||
Doughnut,
|
||||
Line,
|
||||
Pie,
|
||||
PolarArea,
|
||||
Radar,
|
||||
Scatter,
|
||||
getDatasetAtEvent,
|
||||
getElementAtEvent,
|
||||
getElementsAtEvent
|
||||
};
|
||||
//# sourceMappingURL=react-chartjs-2.js.map
|
7
node_modules/.vite/deps/react-chartjs-2.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/react-chartjs-2.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
34987
node_modules/.vite/deps/react-highlight.js
generated
vendored
Normal file
34987
node_modules/.vite/deps/react-highlight.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
7
node_modules/.vite/deps/react-highlight.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/react-highlight.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
202
node_modules/@ampproject/remapping/LICENSE
generated
vendored
Normal file
202
node_modules/@ampproject/remapping/LICENSE
generated
vendored
Normal file
@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
218
node_modules/@ampproject/remapping/README.md
generated
vendored
Normal file
218
node_modules/@ampproject/remapping/README.md
generated
vendored
Normal file
@ -0,0 +1,218 @@
|
||||
# @ampproject/remapping
|
||||
|
||||
> Remap sequential sourcemaps through transformations to point at the original source code
|
||||
|
||||
Remapping allows you to take the sourcemaps generated through transforming your code and "remap"
|
||||
them to the original source locations. Think "my minified code, transformed with babel and bundled
|
||||
with webpack", all pointing to the correct location in your original source code.
|
||||
|
||||
With remapping, none of your source code transformations need to be aware of the input's sourcemap,
|
||||
they only need to generate an output sourcemap. This greatly simplifies building custom
|
||||
transformations (think a find-and-replace).
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm install @ampproject/remapping
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```typescript
|
||||
function remapping(
|
||||
map: SourceMap | SourceMap[],
|
||||
loader: (file: string, ctx: LoaderContext) => (SourceMap | null | undefined),
|
||||
options?: { excludeContent: boolean, decodedMappings: boolean }
|
||||
): SourceMap;
|
||||
|
||||
// LoaderContext gives the loader the importing sourcemap, tree depth, the ability to override the
|
||||
// "source" location (where child sources are resolved relative to, or the location of original
|
||||
// source), and the ability to override the "content" of an original source for inclusion in the
|
||||
// output sourcemap.
|
||||
type LoaderContext = {
|
||||
readonly importer: string;
|
||||
readonly depth: number;
|
||||
source: string;
|
||||
content: string | null | undefined;
|
||||
}
|
||||
```
|
||||
|
||||
`remapping` takes the final output sourcemap, and a `loader` function. For every source file pointer
|
||||
in the sourcemap, the `loader` will be called with the resolved path. If the path itself represents
|
||||
a transformed file (it has a sourcmap associated with it), then the `loader` should return that
|
||||
sourcemap. If not, the path will be treated as an original, untransformed source code.
|
||||
|
||||
```js
|
||||
// Babel transformed "helloworld.js" into "transformed.js"
|
||||
const transformedMap = JSON.stringify({
|
||||
file: 'transformed.js',
|
||||
// 1st column of 2nd line of output file translates into the 1st source
|
||||
// file, line 3, column 2
|
||||
mappings: ';CAEE',
|
||||
sources: ['helloworld.js'],
|
||||
version: 3,
|
||||
});
|
||||
|
||||
// Uglify minified "transformed.js" into "transformed.min.js"
|
||||
const minifiedTransformedMap = JSON.stringify({
|
||||
file: 'transformed.min.js',
|
||||
// 0th column of 1st line of output file translates into the 1st source
|
||||
// file, line 2, column 1.
|
||||
mappings: 'AACC',
|
||||
names: [],
|
||||
sources: ['transformed.js'],
|
||||
version: 3,
|
||||
});
|
||||
|
||||
const remapped = remapping(
|
||||
minifiedTransformedMap,
|
||||
(file, ctx) => {
|
||||
|
||||
// The "transformed.js" file is an transformed file.
|
||||
if (file === 'transformed.js') {
|
||||
// The root importer is empty.
|
||||
console.assert(ctx.importer === '');
|
||||
// The depth in the sourcemap tree we're currently loading.
|
||||
// The root `minifiedTransformedMap` is depth 0, and its source children are depth 1, etc.
|
||||
console.assert(ctx.depth === 1);
|
||||
|
||||
return transformedMap;
|
||||
}
|
||||
|
||||
// Loader will be called to load transformedMap's source file pointers as well.
|
||||
console.assert(file === 'helloworld.js');
|
||||
// `transformed.js`'s sourcemap points into `helloworld.js`.
|
||||
console.assert(ctx.importer === 'transformed.js');
|
||||
// This is a source child of `transformed`, which is a source child of `minifiedTransformedMap`.
|
||||
console.assert(ctx.depth === 2);
|
||||
return null;
|
||||
}
|
||||
);
|
||||
|
||||
console.log(remapped);
|
||||
// {
|
||||
// file: 'transpiled.min.js',
|
||||
// mappings: 'AAEE',
|
||||
// sources: ['helloworld.js'],
|
||||
// version: 3,
|
||||
// };
|
||||
```
|
||||
|
||||
In this example, `loader` will be called twice:
|
||||
|
||||
1. `"transformed.js"`, the first source file pointer in the `minifiedTransformedMap`. We return the
|
||||
associated sourcemap for it (its a transformed file, after all) so that sourcemap locations can
|
||||
be traced through it into the source files it represents.
|
||||
2. `"helloworld.js"`, our original, unmodified source code. This file does not have a sourcemap, so
|
||||
we return `null`.
|
||||
|
||||
The `remapped` sourcemap now points from `transformed.min.js` into locations in `helloworld.js`. If
|
||||
you were to read the `mappings`, it says "0th column of the first line output line points to the 1st
|
||||
column of the 2nd line of the file `helloworld.js`".
|
||||
|
||||
### Multiple transformations of a file
|
||||
|
||||
As a convenience, if you have multiple single-source transformations of a file, you may pass an
|
||||
array of sourcemap files in the order of most-recent transformation sourcemap first. Note that this
|
||||
changes the `importer` and `depth` of each call to our loader. So our above example could have been
|
||||
written as:
|
||||
|
||||
```js
|
||||
const remapped = remapping(
|
||||
[minifiedTransformedMap, transformedMap],
|
||||
() => null
|
||||
);
|
||||
|
||||
console.log(remapped);
|
||||
// {
|
||||
// file: 'transpiled.min.js',
|
||||
// mappings: 'AAEE',
|
||||
// sources: ['helloworld.js'],
|
||||
// version: 3,
|
||||
// };
|
||||
```
|
||||
|
||||
### Advanced control of the loading graph
|
||||
|
||||
#### `source`
|
||||
|
||||
The `source` property can overridden to any value to change the location of the current load. Eg,
|
||||
for an original source file, it allows us to change the location to the original source regardless
|
||||
of what the sourcemap source entry says. And for transformed files, it allows us to change the
|
||||
relative resolving location for child sources of the loaded sourcemap.
|
||||
|
||||
```js
|
||||
const remapped = remapping(
|
||||
minifiedTransformedMap,
|
||||
(file, ctx) => {
|
||||
|
||||
if (file === 'transformed.js') {
|
||||
// We pretend the transformed.js file actually exists in the 'src/' directory. When the nested
|
||||
// source files are loaded, they will now be relative to `src/`.
|
||||
ctx.source = 'src/transformed.js';
|
||||
return transformedMap;
|
||||
}
|
||||
|
||||
console.assert(file === 'src/helloworld.js');
|
||||
// We could futher change the source of this original file, eg, to be inside a nested directory
|
||||
// itself. This will be reflected in the remapped sourcemap.
|
||||
ctx.source = 'src/nested/transformed.js';
|
||||
return null;
|
||||
}
|
||||
);
|
||||
|
||||
console.log(remapped);
|
||||
// {
|
||||
// …,
|
||||
// sources: ['src/nested/helloworld.js'],
|
||||
// };
|
||||
```
|
||||
|
||||
|
||||
#### `content`
|
||||
|
||||
The `content` property can be overridden when we encounter an original source file. Eg, this allows
|
||||
you to manually provide the source content of the original file regardless of whether the
|
||||
`sourcesContent` field is present in the parent sourcemap. It can also be set to `null` to remove
|
||||
the source content.
|
||||
|
||||
```js
|
||||
const remapped = remapping(
|
||||
minifiedTransformedMap,
|
||||
(file, ctx) => {
|
||||
|
||||
if (file === 'transformed.js') {
|
||||
// transformedMap does not include a `sourcesContent` field, so usually the remapped sourcemap
|
||||
// would not include any `sourcesContent` values.
|
||||
return transformedMap;
|
||||
}
|
||||
|
||||
console.assert(file === 'helloworld.js');
|
||||
// We can read the file to provide the source content.
|
||||
ctx.content = fs.readFileSync(file, 'utf8');
|
||||
return null;
|
||||
}
|
||||
);
|
||||
|
||||
console.log(remapped);
|
||||
// {
|
||||
// …,
|
||||
// sourcesContent: [
|
||||
// 'console.log("Hello world!")',
|
||||
// ],
|
||||
// };
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
#### excludeContent
|
||||
|
||||
By default, `excludeContent` is `false`. Passing `{ excludeContent: true }` will exclude the
|
||||
`sourcesContent` field from the returned sourcemap. This is mainly useful when you want to reduce
|
||||
the size out the sourcemap.
|
||||
|
||||
#### decodedMappings
|
||||
|
||||
By default, `decodedMappings` is `false`. Passing `{ decodedMappings: true }` will leave the
|
||||
`mappings` field in a [decoded state](https://github.com/rich-harris/sourcemap-codec) instead of
|
||||
encoding into a VLQ string.
|
197
node_modules/@ampproject/remapping/dist/remapping.mjs
generated
vendored
Normal file
197
node_modules/@ampproject/remapping/dist/remapping.mjs
generated
vendored
Normal file
@ -0,0 +1,197 @@
|
||||
import { decodedMappings, traceSegment, TraceMap } from '@jridgewell/trace-mapping';
|
||||
import { GenMapping, maybeAddSegment, setSourceContent, setIgnore, toDecodedMap, toEncodedMap } from '@jridgewell/gen-mapping';
|
||||
|
||||
const SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null, false);
|
||||
const EMPTY_SOURCES = [];
|
||||
function SegmentObject(source, line, column, name, content, ignore) {
|
||||
return { source, line, column, name, content, ignore };
|
||||
}
|
||||
function Source(map, sources, source, content, ignore) {
|
||||
return {
|
||||
map,
|
||||
sources,
|
||||
source,
|
||||
content,
|
||||
ignore,
|
||||
};
|
||||
}
|
||||
/**
|
||||
* MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
|
||||
* (which may themselves be SourceMapTrees).
|
||||
*/
|
||||
function MapSource(map, sources) {
|
||||
return Source(map, sources, '', null, false);
|
||||
}
|
||||
/**
|
||||
* A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
|
||||
* segment tracing ends at the `OriginalSource`.
|
||||
*/
|
||||
function OriginalSource(source, content, ignore) {
|
||||
return Source(null, EMPTY_SOURCES, source, content, ignore);
|
||||
}
|
||||
/**
|
||||
* traceMappings is only called on the root level SourceMapTree, and begins the process of
|
||||
* resolving each mapping in terms of the original source files.
|
||||
*/
|
||||
function traceMappings(tree) {
|
||||
// TODO: Eventually support sourceRoot, which has to be removed because the sources are already
|
||||
// fully resolved. We'll need to make sources relative to the sourceRoot before adding them.
|
||||
const gen = new GenMapping({ file: tree.map.file });
|
||||
const { sources: rootSources, map } = tree;
|
||||
const rootNames = map.names;
|
||||
const rootMappings = decodedMappings(map);
|
||||
for (let i = 0; i < rootMappings.length; i++) {
|
||||
const segments = rootMappings[i];
|
||||
for (let j = 0; j < segments.length; j++) {
|
||||
const segment = segments[j];
|
||||
const genCol = segment[0];
|
||||
let traced = SOURCELESS_MAPPING;
|
||||
// 1-length segments only move the current generated column, there's no source information
|
||||
// to gather from it.
|
||||
if (segment.length !== 1) {
|
||||
const source = rootSources[segment[1]];
|
||||
traced = originalPositionFor(source, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : '');
|
||||
// If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a
|
||||
// respective segment into an original source.
|
||||
if (traced == null)
|
||||
continue;
|
||||
}
|
||||
const { column, line, name, content, source, ignore } = traced;
|
||||
maybeAddSegment(gen, i, genCol, source, line, column, name);
|
||||
if (source && content != null)
|
||||
setSourceContent(gen, source, content);
|
||||
if (ignore)
|
||||
setIgnore(gen, source, true);
|
||||
}
|
||||
}
|
||||
return gen;
|
||||
}
|
||||
/**
|
||||
* originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
|
||||
* child SourceMapTrees, until we find the original source map.
|
||||
*/
|
||||
function originalPositionFor(source, line, column, name) {
|
||||
if (!source.map) {
|
||||
return SegmentObject(source.source, line, column, name, source.content, source.ignore);
|
||||
}
|
||||
const segment = traceSegment(source.map, line, column);
|
||||
// If we couldn't find a segment, then this doesn't exist in the sourcemap.
|
||||
if (segment == null)
|
||||
return null;
|
||||
// 1-length segments only move the current generated column, there's no source information
|
||||
// to gather from it.
|
||||
if (segment.length === 1)
|
||||
return SOURCELESS_MAPPING;
|
||||
return originalPositionFor(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name);
|
||||
}
|
||||
|
||||
function asArray(value) {
|
||||
if (Array.isArray(value))
|
||||
return value;
|
||||
return [value];
|
||||
}
|
||||
/**
|
||||
* Recursively builds a tree structure out of sourcemap files, with each node
|
||||
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
|
||||
* `OriginalSource`s and `SourceMapTree`s.
|
||||
*
|
||||
* Every sourcemap is composed of a collection of source files and mappings
|
||||
* into locations of those source files. When we generate a `SourceMapTree` for
|
||||
* the sourcemap, we attempt to load each source file's own sourcemap. If it
|
||||
* does not have an associated sourcemap, it is considered an original,
|
||||
* unmodified source file.
|
||||
*/
|
||||
function buildSourceMapTree(input, loader) {
|
||||
const maps = asArray(input).map((m) => new TraceMap(m, ''));
|
||||
const map = maps.pop();
|
||||
for (let i = 0; i < maps.length; i++) {
|
||||
if (maps[i].sources.length > 1) {
|
||||
throw new Error(`Transformation map ${i} must have exactly one source file.\n` +
|
||||
'Did you specify these with the most recent transformation maps first?');
|
||||
}
|
||||
}
|
||||
let tree = build(map, loader, '', 0);
|
||||
for (let i = maps.length - 1; i >= 0; i--) {
|
||||
tree = MapSource(maps[i], [tree]);
|
||||
}
|
||||
return tree;
|
||||
}
|
||||
function build(map, loader, importer, importerDepth) {
|
||||
const { resolvedSources, sourcesContent, ignoreList } = map;
|
||||
const depth = importerDepth + 1;
|
||||
const children = resolvedSources.map((sourceFile, i) => {
|
||||
// The loading context gives the loader more information about why this file is being loaded
|
||||
// (eg, from which importer). It also allows the loader to override the location of the loaded
|
||||
// sourcemap/original source, or to override the content in the sourcesContent field if it's
|
||||
// an unmodified source file.
|
||||
const ctx = {
|
||||
importer,
|
||||
depth,
|
||||
source: sourceFile || '',
|
||||
content: undefined,
|
||||
ignore: undefined,
|
||||
};
|
||||
// Use the provided loader callback to retrieve the file's sourcemap.
|
||||
// TODO: We should eventually support async loading of sourcemap files.
|
||||
const sourceMap = loader(ctx.source, ctx);
|
||||
const { source, content, ignore } = ctx;
|
||||
// If there is a sourcemap, then we need to recurse into it to load its source files.
|
||||
if (sourceMap)
|
||||
return build(new TraceMap(sourceMap, source), loader, source, depth);
|
||||
// Else, it's an unmodified source file.
|
||||
// The contents of this unmodified source file can be overridden via the loader context,
|
||||
// allowing it to be explicitly null or a string. If it remains undefined, we fall back to
|
||||
// the importing sourcemap's `sourcesContent` field.
|
||||
const sourceContent = content !== undefined ? content : sourcesContent ? sourcesContent[i] : null;
|
||||
const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false;
|
||||
return OriginalSource(source, sourceContent, ignored);
|
||||
});
|
||||
return MapSource(map, children);
|
||||
}
|
||||
|
||||
/**
|
||||
* A SourceMap v3 compatible sourcemap, which only includes fields that were
|
||||
* provided to it.
|
||||
*/
|
||||
class SourceMap {
|
||||
constructor(map, options) {
|
||||
const out = options.decodedMappings ? toDecodedMap(map) : toEncodedMap(map);
|
||||
this.version = out.version; // SourceMap spec says this should be first.
|
||||
this.file = out.file;
|
||||
this.mappings = out.mappings;
|
||||
this.names = out.names;
|
||||
this.ignoreList = out.ignoreList;
|
||||
this.sourceRoot = out.sourceRoot;
|
||||
this.sources = out.sources;
|
||||
if (!options.excludeContent) {
|
||||
this.sourcesContent = out.sourcesContent;
|
||||
}
|
||||
}
|
||||
toString() {
|
||||
return JSON.stringify(this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Traces through all the mappings in the root sourcemap, through the sources
|
||||
* (and their sourcemaps), all the way back to the original source location.
|
||||
*
|
||||
* `loader` will be called every time we encounter a source file. If it returns
|
||||
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
|
||||
* it returns a falsey value, that source file is treated as an original,
|
||||
* unmodified source file.
|
||||
*
|
||||
* Pass `excludeContent` to exclude any self-containing source file content
|
||||
* from the output sourcemap.
|
||||
*
|
||||
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
|
||||
* VLQ encoded) mappings.
|
||||
*/
|
||||
function remapping(input, loader, options) {
|
||||
const opts = typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false };
|
||||
const tree = buildSourceMapTree(input, loader);
|
||||
return new SourceMap(traceMappings(tree), opts);
|
||||
}
|
||||
|
||||
export { remapping as default };
|
||||
//# sourceMappingURL=remapping.mjs.map
|
1
node_modules/@ampproject/remapping/dist/remapping.mjs.map
generated
vendored
Normal file
1
node_modules/@ampproject/remapping/dist/remapping.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
202
node_modules/@ampproject/remapping/dist/remapping.umd.js
generated
vendored
Normal file
202
node_modules/@ampproject/remapping/dist/remapping.umd.js
generated
vendored
Normal file
@ -0,0 +1,202 @@
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@jridgewell/trace-mapping'), require('@jridgewell/gen-mapping')) :
|
||||
typeof define === 'function' && define.amd ? define(['@jridgewell/trace-mapping', '@jridgewell/gen-mapping'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.remapping = factory(global.traceMapping, global.genMapping));
|
||||
})(this, (function (traceMapping, genMapping) { 'use strict';
|
||||
|
||||
const SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null, false);
|
||||
const EMPTY_SOURCES = [];
|
||||
function SegmentObject(source, line, column, name, content, ignore) {
|
||||
return { source, line, column, name, content, ignore };
|
||||
}
|
||||
function Source(map, sources, source, content, ignore) {
|
||||
return {
|
||||
map,
|
||||
sources,
|
||||
source,
|
||||
content,
|
||||
ignore,
|
||||
};
|
||||
}
|
||||
/**
|
||||
* MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
|
||||
* (which may themselves be SourceMapTrees).
|
||||
*/
|
||||
function MapSource(map, sources) {
|
||||
return Source(map, sources, '', null, false);
|
||||
}
|
||||
/**
|
||||
* A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
|
||||
* segment tracing ends at the `OriginalSource`.
|
||||
*/
|
||||
function OriginalSource(source, content, ignore) {
|
||||
return Source(null, EMPTY_SOURCES, source, content, ignore);
|
||||
}
|
||||
/**
|
||||
* traceMappings is only called on the root level SourceMapTree, and begins the process of
|
||||
* resolving each mapping in terms of the original source files.
|
||||
*/
|
||||
function traceMappings(tree) {
|
||||
// TODO: Eventually support sourceRoot, which has to be removed because the sources are already
|
||||
// fully resolved. We'll need to make sources relative to the sourceRoot before adding them.
|
||||
const gen = new genMapping.GenMapping({ file: tree.map.file });
|
||||
const { sources: rootSources, map } = tree;
|
||||
const rootNames = map.names;
|
||||
const rootMappings = traceMapping.decodedMappings(map);
|
||||
for (let i = 0; i < rootMappings.length; i++) {
|
||||
const segments = rootMappings[i];
|
||||
for (let j = 0; j < segments.length; j++) {
|
||||
const segment = segments[j];
|
||||
const genCol = segment[0];
|
||||
let traced = SOURCELESS_MAPPING;
|
||||
// 1-length segments only move the current generated column, there's no source information
|
||||
// to gather from it.
|
||||
if (segment.length !== 1) {
|
||||
const source = rootSources[segment[1]];
|
||||
traced = originalPositionFor(source, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : '');
|
||||
// If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a
|
||||
// respective segment into an original source.
|
||||
if (traced == null)
|
||||
continue;
|
||||
}
|
||||
const { column, line, name, content, source, ignore } = traced;
|
||||
genMapping.maybeAddSegment(gen, i, genCol, source, line, column, name);
|
||||
if (source && content != null)
|
||||
genMapping.setSourceContent(gen, source, content);
|
||||
if (ignore)
|
||||
genMapping.setIgnore(gen, source, true);
|
||||
}
|
||||
}
|
||||
return gen;
|
||||
}
|
||||
/**
|
||||
* originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
|
||||
* child SourceMapTrees, until we find the original source map.
|
||||
*/
|
||||
function originalPositionFor(source, line, column, name) {
|
||||
if (!source.map) {
|
||||
return SegmentObject(source.source, line, column, name, source.content, source.ignore);
|
||||
}
|
||||
const segment = traceMapping.traceSegment(source.map, line, column);
|
||||
// If we couldn't find a segment, then this doesn't exist in the sourcemap.
|
||||
if (segment == null)
|
||||
return null;
|
||||
// 1-length segments only move the current generated column, there's no source information
|
||||
// to gather from it.
|
||||
if (segment.length === 1)
|
||||
return SOURCELESS_MAPPING;
|
||||
return originalPositionFor(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name);
|
||||
}
|
||||
|
||||
function asArray(value) {
|
||||
if (Array.isArray(value))
|
||||
return value;
|
||||
return [value];
|
||||
}
|
||||
/**
|
||||
* Recursively builds a tree structure out of sourcemap files, with each node
|
||||
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
|
||||
* `OriginalSource`s and `SourceMapTree`s.
|
||||
*
|
||||
* Every sourcemap is composed of a collection of source files and mappings
|
||||
* into locations of those source files. When we generate a `SourceMapTree` for
|
||||
* the sourcemap, we attempt to load each source file's own sourcemap. If it
|
||||
* does not have an associated sourcemap, it is considered an original,
|
||||
* unmodified source file.
|
||||
*/
|
||||
function buildSourceMapTree(input, loader) {
|
||||
const maps = asArray(input).map((m) => new traceMapping.TraceMap(m, ''));
|
||||
const map = maps.pop();
|
||||
for (let i = 0; i < maps.length; i++) {
|
||||
if (maps[i].sources.length > 1) {
|
||||
throw new Error(`Transformation map ${i} must have exactly one source file.\n` +
|
||||
'Did you specify these with the most recent transformation maps first?');
|
||||
}
|
||||
}
|
||||
let tree = build(map, loader, '', 0);
|
||||
for (let i = maps.length - 1; i >= 0; i--) {
|
||||
tree = MapSource(maps[i], [tree]);
|
||||
}
|
||||
return tree;
|
||||
}
|
||||
function build(map, loader, importer, importerDepth) {
|
||||
const { resolvedSources, sourcesContent, ignoreList } = map;
|
||||
const depth = importerDepth + 1;
|
||||
const children = resolvedSources.map((sourceFile, i) => {
|
||||
// The loading context gives the loader more information about why this file is being loaded
|
||||
// (eg, from which importer). It also allows the loader to override the location of the loaded
|
||||
// sourcemap/original source, or to override the content in the sourcesContent field if it's
|
||||
// an unmodified source file.
|
||||
const ctx = {
|
||||
importer,
|
||||
depth,
|
||||
source: sourceFile || '',
|
||||
content: undefined,
|
||||
ignore: undefined,
|
||||
};
|
||||
// Use the provided loader callback to retrieve the file's sourcemap.
|
||||
// TODO: We should eventually support async loading of sourcemap files.
|
||||
const sourceMap = loader(ctx.source, ctx);
|
||||
const { source, content, ignore } = ctx;
|
||||
// If there is a sourcemap, then we need to recurse into it to load its source files.
|
||||
if (sourceMap)
|
||||
return build(new traceMapping.TraceMap(sourceMap, source), loader, source, depth);
|
||||
// Else, it's an unmodified source file.
|
||||
// The contents of this unmodified source file can be overridden via the loader context,
|
||||
// allowing it to be explicitly null or a string. If it remains undefined, we fall back to
|
||||
// the importing sourcemap's `sourcesContent` field.
|
||||
const sourceContent = content !== undefined ? content : sourcesContent ? sourcesContent[i] : null;
|
||||
const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false;
|
||||
return OriginalSource(source, sourceContent, ignored);
|
||||
});
|
||||
return MapSource(map, children);
|
||||
}
|
||||
|
||||
/**
|
||||
* A SourceMap v3 compatible sourcemap, which only includes fields that were
|
||||
* provided to it.
|
||||
*/
|
||||
class SourceMap {
|
||||
constructor(map, options) {
|
||||
const out = options.decodedMappings ? genMapping.toDecodedMap(map) : genMapping.toEncodedMap(map);
|
||||
this.version = out.version; // SourceMap spec says this should be first.
|
||||
this.file = out.file;
|
||||
this.mappings = out.mappings;
|
||||
this.names = out.names;
|
||||
this.ignoreList = out.ignoreList;
|
||||
this.sourceRoot = out.sourceRoot;
|
||||
this.sources = out.sources;
|
||||
if (!options.excludeContent) {
|
||||
this.sourcesContent = out.sourcesContent;
|
||||
}
|
||||
}
|
||||
toString() {
|
||||
return JSON.stringify(this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Traces through all the mappings in the root sourcemap, through the sources
|
||||
* (and their sourcemaps), all the way back to the original source location.
|
||||
*
|
||||
* `loader` will be called every time we encounter a source file. If it returns
|
||||
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
|
||||
* it returns a falsey value, that source file is treated as an original,
|
||||
* unmodified source file.
|
||||
*
|
||||
* Pass `excludeContent` to exclude any self-containing source file content
|
||||
* from the output sourcemap.
|
||||
*
|
||||
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
|
||||
* VLQ encoded) mappings.
|
||||
*/
|
||||
function remapping(input, loader, options) {
|
||||
const opts = typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false };
|
||||
const tree = buildSourceMapTree(input, loader);
|
||||
return new SourceMap(traceMappings(tree), opts);
|
||||
}
|
||||
|
||||
return remapping;
|
||||
|
||||
}));
|
||||
//# sourceMappingURL=remapping.umd.js.map
|
1
node_modules/@ampproject/remapping/dist/remapping.umd.js.map
generated
vendored
Normal file
1
node_modules/@ampproject/remapping/dist/remapping.umd.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
14
node_modules/@ampproject/remapping/dist/types/build-source-map-tree.d.ts
generated
vendored
Normal file
14
node_modules/@ampproject/remapping/dist/types/build-source-map-tree.d.ts
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
import type { MapSource as MapSourceType } from './source-map-tree';
|
||||
import type { SourceMapInput, SourceMapLoader } from './types';
|
||||
/**
|
||||
* Recursively builds a tree structure out of sourcemap files, with each node
|
||||
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
|
||||
* `OriginalSource`s and `SourceMapTree`s.
|
||||
*
|
||||
* Every sourcemap is composed of a collection of source files and mappings
|
||||
* into locations of those source files. When we generate a `SourceMapTree` for
|
||||
* the sourcemap, we attempt to load each source file's own sourcemap. If it
|
||||
* does not have an associated sourcemap, it is considered an original,
|
||||
* unmodified source file.
|
||||
*/
|
||||
export default function buildSourceMapTree(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader): MapSourceType;
|
20
node_modules/@ampproject/remapping/dist/types/remapping.d.ts
generated
vendored
Normal file
20
node_modules/@ampproject/remapping/dist/types/remapping.d.ts
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
import SourceMap from './source-map';
|
||||
import type { SourceMapInput, SourceMapLoader, Options } from './types';
|
||||
export type { SourceMapSegment, EncodedSourceMap, EncodedSourceMap as RawSourceMap, DecodedSourceMap, SourceMapInput, SourceMapLoader, LoaderContext, Options, } from './types';
|
||||
export type { SourceMap };
|
||||
/**
|
||||
* Traces through all the mappings in the root sourcemap, through the sources
|
||||
* (and their sourcemaps), all the way back to the original source location.
|
||||
*
|
||||
* `loader` will be called every time we encounter a source file. If it returns
|
||||
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
|
||||
* it returns a falsey value, that source file is treated as an original,
|
||||
* unmodified source file.
|
||||
*
|
||||
* Pass `excludeContent` to exclude any self-containing source file content
|
||||
* from the output sourcemap.
|
||||
*
|
||||
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
|
||||
* VLQ encoded) mappings.
|
||||
*/
|
||||
export default function remapping(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader, options?: boolean | Options): SourceMap;
|
45
node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
generated
vendored
Normal file
45
node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
import { GenMapping } from '@jridgewell/gen-mapping';
|
||||
import type { TraceMap } from '@jridgewell/trace-mapping';
|
||||
export declare type SourceMapSegmentObject = {
|
||||
column: number;
|
||||
line: number;
|
||||
name: string;
|
||||
source: string;
|
||||
content: string | null;
|
||||
ignore: boolean;
|
||||
};
|
||||
export declare type OriginalSource = {
|
||||
map: null;
|
||||
sources: Sources[];
|
||||
source: string;
|
||||
content: string | null;
|
||||
ignore: boolean;
|
||||
};
|
||||
export declare type MapSource = {
|
||||
map: TraceMap;
|
||||
sources: Sources[];
|
||||
source: string;
|
||||
content: null;
|
||||
ignore: false;
|
||||
};
|
||||
export declare type Sources = OriginalSource | MapSource;
|
||||
/**
|
||||
* MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
|
||||
* (which may themselves be SourceMapTrees).
|
||||
*/
|
||||
export declare function MapSource(map: TraceMap, sources: Sources[]): MapSource;
|
||||
/**
|
||||
* A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
|
||||
* segment tracing ends at the `OriginalSource`.
|
||||
*/
|
||||
export declare function OriginalSource(source: string, content: string | null, ignore: boolean): OriginalSource;
|
||||
/**
|
||||
* traceMappings is only called on the root level SourceMapTree, and begins the process of
|
||||
* resolving each mapping in terms of the original source files.
|
||||
*/
|
||||
export declare function traceMappings(tree: MapSource): GenMapping;
|
||||
/**
|
||||
* originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
|
||||
* child SourceMapTrees, until we find the original source map.
|
||||
*/
|
||||
export declare function originalPositionFor(source: Sources, line: number, column: number, name: string): SourceMapSegmentObject | null;
|
18
node_modules/@ampproject/remapping/dist/types/source-map.d.ts
generated
vendored
Normal file
18
node_modules/@ampproject/remapping/dist/types/source-map.d.ts
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
import type { GenMapping } from '@jridgewell/gen-mapping';
|
||||
import type { DecodedSourceMap, EncodedSourceMap, Options } from './types';
|
||||
/**
|
||||
* A SourceMap v3 compatible sourcemap, which only includes fields that were
|
||||
* provided to it.
|
||||
*/
|
||||
export default class SourceMap {
|
||||
file?: string | null;
|
||||
mappings: EncodedSourceMap['mappings'] | DecodedSourceMap['mappings'];
|
||||
sourceRoot?: string;
|
||||
names: string[];
|
||||
sources: (string | null)[];
|
||||
sourcesContent?: (string | null)[];
|
||||
version: 3;
|
||||
ignoreList: number[] | undefined;
|
||||
constructor(map: GenMapping, options: Options);
|
||||
toString(): string;
|
||||
}
|
15
node_modules/@ampproject/remapping/dist/types/types.d.ts
generated
vendored
Normal file
15
node_modules/@ampproject/remapping/dist/types/types.d.ts
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
import type { SourceMapInput } from '@jridgewell/trace-mapping';
|
||||
export type { SourceMapSegment, DecodedSourceMap, EncodedSourceMap, } from '@jridgewell/trace-mapping';
|
||||
export type { SourceMapInput };
|
||||
export declare type LoaderContext = {
|
||||
readonly importer: string;
|
||||
readonly depth: number;
|
||||
source: string;
|
||||
content: string | null | undefined;
|
||||
ignore: boolean | undefined;
|
||||
};
|
||||
export declare type SourceMapLoader = (file: string, ctx: LoaderContext) => SourceMapInput | null | undefined | void;
|
||||
export declare type Options = {
|
||||
excludeContent?: boolean;
|
||||
decodedMappings?: boolean;
|
||||
};
|
75
node_modules/@ampproject/remapping/package.json
generated
vendored
Normal file
75
node_modules/@ampproject/remapping/package.json
generated
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
{
|
||||
"name": "@ampproject/remapping",
|
||||
"version": "2.3.0",
|
||||
"description": "Remap sequential sourcemaps through transformations to point at the original source code",
|
||||
"keywords": [
|
||||
"source",
|
||||
"map",
|
||||
"remap"
|
||||
],
|
||||
"main": "dist/remapping.umd.js",
|
||||
"module": "dist/remapping.mjs",
|
||||
"types": "dist/types/remapping.d.ts",
|
||||
"exports": {
|
||||
".": [
|
||||
{
|
||||
"types": "./dist/types/remapping.d.ts",
|
||||
"browser": "./dist/remapping.umd.js",
|
||||
"require": "./dist/remapping.umd.js",
|
||||
"import": "./dist/remapping.mjs"
|
||||
},
|
||||
"./dist/remapping.umd.js"
|
||||
],
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"author": "Justin Ridgewell <jridgewell@google.com>",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ampproject/remapping.git"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "run-s -n build:*",
|
||||
"build:rollup": "rollup -c rollup.config.js",
|
||||
"build:ts": "tsc --project tsconfig.build.json",
|
||||
"lint": "run-s -n lint:*",
|
||||
"lint:prettier": "npm run test:lint:prettier -- --write",
|
||||
"lint:ts": "npm run test:lint:ts -- --fix",
|
||||
"prebuild": "rm -rf dist",
|
||||
"prepublishOnly": "npm run preversion",
|
||||
"preversion": "run-s test build",
|
||||
"test": "run-s -n test:lint test:only",
|
||||
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
|
||||
"test:lint": "run-s -n test:lint:*",
|
||||
"test:lint:prettier": "prettier --check '{src,test}/**/*.ts'",
|
||||
"test:lint:ts": "eslint '{src,test}/**/*.ts'",
|
||||
"test:only": "jest --coverage",
|
||||
"test:watch": "jest --coverage --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-typescript": "8.3.2",
|
||||
"@types/jest": "27.4.1",
|
||||
"@typescript-eslint/eslint-plugin": "5.20.0",
|
||||
"@typescript-eslint/parser": "5.20.0",
|
||||
"eslint": "8.14.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"jest": "27.5.1",
|
||||
"jest-config": "27.5.1",
|
||||
"npm-run-all": "4.1.5",
|
||||
"prettier": "2.6.2",
|
||||
"rollup": "2.70.2",
|
||||
"ts-jest": "27.1.4",
|
||||
"tslib": "2.4.0",
|
||||
"typescript": "4.6.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@jridgewell/gen-mapping": "^0.3.5",
|
||||
"@jridgewell/trace-mapping": "^0.3.24"
|
||||
}
|
||||
}
|
22
node_modules/@babel/code-frame/LICENSE
generated
vendored
Normal file
22
node_modules/@babel/code-frame/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
node_modules/@babel/code-frame/README.md
generated
vendored
Normal file
19
node_modules/@babel/code-frame/README.md
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# @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
|
||||
```
|
216
node_modules/@babel/code-frame/lib/index.js
generated
vendored
Normal file
216
node_modules/@babel/code-frame/lib/index.js
generated
vendored
Normal file
@ -0,0 +1,216 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var picocolors = require('picocolors');
|
||||
var jsTokens = require('js-tokens');
|
||||
var helperValidatorIdentifier = require('@babel/helper-validator-identifier');
|
||||
|
||||
function isColorSupported() {
|
||||
return (typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported
|
||||
);
|
||||
}
|
||||
const compose = (f, g) => v => f(g(v));
|
||||
function buildDefs(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),
|
||||
gutter: colors.gray,
|
||||
marker: compose(colors.red, colors.bold),
|
||||
message: compose(colors.red, colors.bold),
|
||||
reset: colors.reset
|
||||
};
|
||||
}
|
||||
const defsOn = buildDefs(picocolors.createColors(true));
|
||||
const defsOff = buildDefs(picocolors.createColors(false));
|
||||
function getDefs(enabled) {
|
||||
return enabled ? defsOn : defsOff;
|
||||
}
|
||||
|
||||
const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]);
|
||||
const NEWLINE$1 = /\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 (helperValidatorIdentifier.isKeyword(token.value) || 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 highlight(text) {
|
||||
if (text === "") return "";
|
||||
const defs = getDefs(true);
|
||||
let highlighted = "";
|
||||
for (const {
|
||||
type,
|
||||
value
|
||||
} of tokenize(text)) {
|
||||
if (type in defs) {
|
||||
highlighted += value.split(NEWLINE$1).map(str => defs[type](str)).join("\n");
|
||||
} else {
|
||||
highlighted += value;
|
||||
}
|
||||
}
|
||||
return highlighted;
|
||||
}
|
||||
|
||||
let deprecationWarningShown = false;
|
||||
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 shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
||||
const defs = getDefs(shouldHighlight);
|
||||
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 = shouldHighlight ? highlight(rawLines) : 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 ", defs.gutter(gutter.replace(/\d/g, " ")), " ", markerSpacing, defs.marker("^").repeat(numberOfMarkers)].join("");
|
||||
if (lastMarkerLine && opts.message) {
|
||||
markerLine += " " + defs.message(opts.message);
|
||||
}
|
||||
}
|
||||
return [defs.marker(">"), defs.gutter(gutter), line.length > 0 ? ` ${line}` : "", markerLine].join("");
|
||||
} else {
|
||||
return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
||||
}
|
||||
}).join("\n");
|
||||
if (opts.message && !hasColumns) {
|
||||
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
||||
}
|
||||
if (shouldHighlight) {
|
||||
return defs.reset(frame);
|
||||
} else {
|
||||
return frame;
|
||||
}
|
||||
}
|
||||
function index (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);
|
||||
}
|
||||
|
||||
exports.codeFrameColumns = codeFrameColumns;
|
||||
exports.default = index;
|
||||
exports.highlight = highlight;
|
||||
//# sourceMappingURL=index.js.map
|
1
node_modules/@babel/code-frame/lib/index.js.map
generated
vendored
Normal file
1
node_modules/@babel/code-frame/lib/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
31
node_modules/@babel/code-frame/package.json
generated
vendored
Normal file
31
node_modules/@babel/code-frame/package.json
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "@babel/code-frame",
|
||||
"version": "7.27.1",
|
||||
"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/helper-validator-identifier": "^7.27.1",
|
||||
"js-tokens": "^4.0.0",
|
||||
"picocolors": "^1.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"import-meta-resolve": "^4.1.0",
|
||||
"strip-ansi": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"type": "commonjs"
|
||||
}
|
22
node_modules/@babel/compat-data/LICENSE
generated
vendored
Normal file
22
node_modules/@babel/compat-data/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
node_modules/@babel/compat-data/README.md
generated
vendored
Normal file
19
node_modules/@babel/compat-data/README.md
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# @babel/compat-data
|
||||
|
||||
> The compat-data to determine required Babel plugins
|
||||
|
||||
See our website [@babel/compat-data](https://babeljs.io/docs/babel-compat-data) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save @babel/compat-data
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/compat-data
|
||||
```
|
2
node_modules/@babel/compat-data/corejs2-built-ins.js
generated
vendored
Normal file
2
node_modules/@babel/compat-data/corejs2-built-ins.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
// Todo (Babel 8): remove this file as Babel 8 drop support of core-js 2
|
||||
module.exports = require("./data/corejs2-built-ins.json");
|
2
node_modules/@babel/compat-data/corejs3-shipped-proposals.js
generated
vendored
Normal file
2
node_modules/@babel/compat-data/corejs3-shipped-proposals.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
// Todo (Babel 8): remove this file now that it is included in babel-plugin-polyfill-corejs3
|
||||
module.exports = require("./data/corejs3-shipped-proposals.json");
|
2106
node_modules/@babel/compat-data/data/corejs2-built-ins.json
generated
vendored
Normal file
2106
node_modules/@babel/compat-data/data/corejs2-built-ins.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5
node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json
generated
vendored
Normal file
5
node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
[
|
||||
"esnext.promise.all-settled",
|
||||
"esnext.string.match-all",
|
||||
"esnext.global-this"
|
||||
]
|
18
node_modules/@babel/compat-data/data/native-modules.json
generated
vendored
Normal file
18
node_modules/@babel/compat-data/data/native-modules.json
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"es6.module": {
|
||||
"chrome": "61",
|
||||
"and_chr": "61",
|
||||
"edge": "16",
|
||||
"firefox": "60",
|
||||
"and_ff": "60",
|
||||
"node": "13.2.0",
|
||||
"opera": "48",
|
||||
"op_mob": "45",
|
||||
"safari": "10.1",
|
||||
"ios": "10.3",
|
||||
"samsung": "8.2",
|
||||
"android": "61",
|
||||
"electron": "2.0",
|
||||
"ios_saf": "10.3"
|
||||
}
|
||||
}
|
35
node_modules/@babel/compat-data/data/overlapping-plugins.json
generated
vendored
Normal file
35
node_modules/@babel/compat-data/data/overlapping-plugins.json
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"transform-async-to-generator": [
|
||||
"bugfix/transform-async-arrows-in-class"
|
||||
],
|
||||
"transform-parameters": [
|
||||
"bugfix/transform-edge-default-parameters",
|
||||
"bugfix/transform-safari-id-destructuring-collision-in-function-expression"
|
||||
],
|
||||
"transform-function-name": [
|
||||
"bugfix/transform-edge-function-name"
|
||||
],
|
||||
"transform-block-scoping": [
|
||||
"bugfix/transform-safari-block-shadowing",
|
||||
"bugfix/transform-safari-for-shadowing"
|
||||
],
|
||||
"transform-template-literals": [
|
||||
"bugfix/transform-tagged-template-caching"
|
||||
],
|
||||
"transform-optional-chaining": [
|
||||
"bugfix/transform-v8-spread-parameters-in-optional-chaining"
|
||||
],
|
||||
"proposal-optional-chaining": [
|
||||
"bugfix/transform-v8-spread-parameters-in-optional-chaining"
|
||||
],
|
||||
"transform-class-properties": [
|
||||
"bugfix/transform-v8-static-class-fields-redefine-readonly",
|
||||
"bugfix/transform-firefox-class-in-computed-class-key",
|
||||
"bugfix/transform-safari-class-field-initializer-scope"
|
||||
],
|
||||
"proposal-class-properties": [
|
||||
"bugfix/transform-v8-static-class-fields-redefine-readonly",
|
||||
"bugfix/transform-firefox-class-in-computed-class-key",
|
||||
"bugfix/transform-safari-class-field-initializer-scope"
|
||||
]
|
||||
}
|
203
node_modules/@babel/compat-data/data/plugin-bugfixes.json
generated
vendored
Normal file
203
node_modules/@babel/compat-data/data/plugin-bugfixes.json
generated
vendored
Normal file
@ -0,0 +1,203 @@
|
||||
{
|
||||
"bugfix/transform-async-arrows-in-class": {
|
||||
"chrome": "55",
|
||||
"opera": "42",
|
||||
"edge": "15",
|
||||
"firefox": "52",
|
||||
"safari": "11",
|
||||
"node": "7.6",
|
||||
"deno": "1",
|
||||
"ios": "11",
|
||||
"samsung": "6",
|
||||
"opera_mobile": "42",
|
||||
"electron": "1.6"
|
||||
},
|
||||
"bugfix/transform-edge-default-parameters": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "18",
|
||||
"firefox": "52",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "36",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"bugfix/transform-edge-function-name": {
|
||||
"chrome": "51",
|
||||
"opera": "38",
|
||||
"edge": "79",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6.5",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "41",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"bugfix/transform-safari-block-shadowing": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "12",
|
||||
"firefox": "44",
|
||||
"safari": "11",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ie": "11",
|
||||
"ios": "11",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "36",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"bugfix/transform-safari-for-shadowing": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "12",
|
||||
"firefox": "4",
|
||||
"safari": "11",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ie": "11",
|
||||
"ios": "11",
|
||||
"samsung": "5",
|
||||
"rhino": "1.7.13",
|
||||
"opera_mobile": "36",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "14",
|
||||
"firefox": "2",
|
||||
"safari": "16.3",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ios": "16.3",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "36",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"bugfix/transform-tagged-template-caching": {
|
||||
"chrome": "41",
|
||||
"opera": "28",
|
||||
"edge": "12",
|
||||
"firefox": "34",
|
||||
"safari": "13",
|
||||
"node": "4",
|
||||
"deno": "1",
|
||||
"ios": "13",
|
||||
"samsung": "3.4",
|
||||
"rhino": "1.7.14",
|
||||
"opera_mobile": "28",
|
||||
"electron": "0.21"
|
||||
},
|
||||
"bugfix/transform-v8-spread-parameters-in-optional-chaining": {
|
||||
"chrome": "91",
|
||||
"opera": "77",
|
||||
"edge": "91",
|
||||
"firefox": "74",
|
||||
"safari": "13.1",
|
||||
"node": "16.9",
|
||||
"deno": "1.9",
|
||||
"ios": "13.4",
|
||||
"samsung": "16",
|
||||
"opera_mobile": "64",
|
||||
"electron": "13.0"
|
||||
},
|
||||
"transform-optional-chaining": {
|
||||
"chrome": "80",
|
||||
"opera": "67",
|
||||
"edge": "80",
|
||||
"firefox": "74",
|
||||
"safari": "13.1",
|
||||
"node": "14",
|
||||
"deno": "1",
|
||||
"ios": "13.4",
|
||||
"samsung": "13",
|
||||
"rhino": "1.8",
|
||||
"opera_mobile": "57",
|
||||
"electron": "8.0"
|
||||
},
|
||||
"proposal-optional-chaining": {
|
||||
"chrome": "80",
|
||||
"opera": "67",
|
||||
"edge": "80",
|
||||
"firefox": "74",
|
||||
"safari": "13.1",
|
||||
"node": "14",
|
||||
"deno": "1",
|
||||
"ios": "13.4",
|
||||
"samsung": "13",
|
||||
"rhino": "1.8",
|
||||
"opera_mobile": "57",
|
||||
"electron": "8.0"
|
||||
},
|
||||
"transform-parameters": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "15",
|
||||
"firefox": "52",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "36",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"transform-async-to-generator": {
|
||||
"chrome": "55",
|
||||
"opera": "42",
|
||||
"edge": "15",
|
||||
"firefox": "52",
|
||||
"safari": "10.1",
|
||||
"node": "7.6",
|
||||
"deno": "1",
|
||||
"ios": "10.3",
|
||||
"samsung": "6",
|
||||
"opera_mobile": "42",
|
||||
"electron": "1.6"
|
||||
},
|
||||
"transform-template-literals": {
|
||||
"chrome": "41",
|
||||
"opera": "28",
|
||||
"edge": "13",
|
||||
"firefox": "34",
|
||||
"safari": "9",
|
||||
"node": "4",
|
||||
"deno": "1",
|
||||
"ios": "9",
|
||||
"samsung": "3.4",
|
||||
"opera_mobile": "28",
|
||||
"electron": "0.21"
|
||||
},
|
||||
"transform-function-name": {
|
||||
"chrome": "51",
|
||||
"opera": "38",
|
||||
"edge": "14",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6.5",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "41",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"transform-block-scoping": {
|
||||
"chrome": "50",
|
||||
"opera": "37",
|
||||
"edge": "14",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "37",
|
||||
"electron": "1.1"
|
||||
}
|
||||
}
|
831
node_modules/@babel/compat-data/data/plugins.json
generated
vendored
Normal file
831
node_modules/@babel/compat-data/data/plugins.json
generated
vendored
Normal file
@ -0,0 +1,831 @@
|
||||
{
|
||||
"transform-duplicate-named-capturing-groups-regex": {
|
||||
"chrome": "126",
|
||||
"opera": "112",
|
||||
"edge": "126",
|
||||
"firefox": "129",
|
||||
"safari": "17.4",
|
||||
"node": "23",
|
||||
"ios": "17.4",
|
||||
"electron": "31.0"
|
||||
},
|
||||
"transform-regexp-modifiers": {
|
||||
"chrome": "125",
|
||||
"opera": "111",
|
||||
"edge": "125",
|
||||
"firefox": "132",
|
||||
"node": "23",
|
||||
"samsung": "27",
|
||||
"electron": "31.0"
|
||||
},
|
||||
"transform-unicode-sets-regex": {
|
||||
"chrome": "112",
|
||||
"opera": "98",
|
||||
"edge": "112",
|
||||
"firefox": "116",
|
||||
"safari": "17",
|
||||
"node": "20",
|
||||
"deno": "1.32",
|
||||
"ios": "17",
|
||||
"samsung": "23",
|
||||
"opera_mobile": "75",
|
||||
"electron": "24.0"
|
||||
},
|
||||
"bugfix/transform-v8-static-class-fields-redefine-readonly": {
|
||||
"chrome": "98",
|
||||
"opera": "84",
|
||||
"edge": "98",
|
||||
"firefox": "75",
|
||||
"safari": "15",
|
||||
"node": "12",
|
||||
"deno": "1.18",
|
||||
"ios": "15",
|
||||
"samsung": "11",
|
||||
"opera_mobile": "52",
|
||||
"electron": "17.0"
|
||||
},
|
||||
"bugfix/transform-firefox-class-in-computed-class-key": {
|
||||
"chrome": "74",
|
||||
"opera": "62",
|
||||
"edge": "79",
|
||||
"firefox": "126",
|
||||
"safari": "16",
|
||||
"node": "12",
|
||||
"deno": "1",
|
||||
"ios": "16",
|
||||
"samsung": "11",
|
||||
"opera_mobile": "53",
|
||||
"electron": "6.0"
|
||||
},
|
||||
"bugfix/transform-safari-class-field-initializer-scope": {
|
||||
"chrome": "74",
|
||||
"opera": "62",
|
||||
"edge": "79",
|
||||
"firefox": "69",
|
||||
"safari": "16",
|
||||
"node": "12",
|
||||
"deno": "1",
|
||||
"ios": "16",
|
||||
"samsung": "11",
|
||||
"opera_mobile": "53",
|
||||
"electron": "6.0"
|
||||
},
|
||||
"transform-class-static-block": {
|
||||
"chrome": "94",
|
||||
"opera": "80",
|
||||
"edge": "94",
|
||||
"firefox": "93",
|
||||
"safari": "16.4",
|
||||
"node": "16.11",
|
||||
"deno": "1.14",
|
||||
"ios": "16.4",
|
||||
"samsung": "17",
|
||||
"opera_mobile": "66",
|
||||
"electron": "15.0"
|
||||
},
|
||||
"proposal-class-static-block": {
|
||||
"chrome": "94",
|
||||
"opera": "80",
|
||||
"edge": "94",
|
||||
"firefox": "93",
|
||||
"safari": "16.4",
|
||||
"node": "16.11",
|
||||
"deno": "1.14",
|
||||
"ios": "16.4",
|
||||
"samsung": "17",
|
||||
"opera_mobile": "66",
|
||||
"electron": "15.0"
|
||||
},
|
||||
"transform-private-property-in-object": {
|
||||
"chrome": "91",
|
||||
"opera": "77",
|
||||
"edge": "91",
|
||||
"firefox": "90",
|
||||
"safari": "15",
|
||||
"node": "16.9",
|
||||
"deno": "1.9",
|
||||
"ios": "15",
|
||||
"samsung": "16",
|
||||
"opera_mobile": "64",
|
||||
"electron": "13.0"
|
||||
},
|
||||
"proposal-private-property-in-object": {
|
||||
"chrome": "91",
|
||||
"opera": "77",
|
||||
"edge": "91",
|
||||
"firefox": "90",
|
||||
"safari": "15",
|
||||
"node": "16.9",
|
||||
"deno": "1.9",
|
||||
"ios": "15",
|
||||
"samsung": "16",
|
||||
"opera_mobile": "64",
|
||||
"electron": "13.0"
|
||||
},
|
||||
"transform-class-properties": {
|
||||
"chrome": "74",
|
||||
"opera": "62",
|
||||
"edge": "79",
|
||||
"firefox": "90",
|
||||
"safari": "14.1",
|
||||
"node": "12",
|
||||
"deno": "1",
|
||||
"ios": "14.5",
|
||||
"samsung": "11",
|
||||
"opera_mobile": "53",
|
||||
"electron": "6.0"
|
||||
},
|
||||
"proposal-class-properties": {
|
||||
"chrome": "74",
|
||||
"opera": "62",
|
||||
"edge": "79",
|
||||
"firefox": "90",
|
||||
"safari": "14.1",
|
||||
"node": "12",
|
||||
"deno": "1",
|
||||
"ios": "14.5",
|
||||
"samsung": "11",
|
||||
"opera_mobile": "53",
|
||||
"electron": "6.0"
|
||||
},
|
||||
"transform-private-methods": {
|
||||
"chrome": "84",
|
||||
"opera": "70",
|
||||
"edge": "84",
|
||||
"firefox": "90",
|
||||
"safari": "15",
|
||||
"node": "14.6",
|
||||
"deno": "1",
|
||||
"ios": "15",
|
||||
"samsung": "14",
|
||||
"opera_mobile": "60",
|
||||
"electron": "10.0"
|
||||
},
|
||||
"proposal-private-methods": {
|
||||
"chrome": "84",
|
||||
"opera": "70",
|
||||
"edge": "84",
|
||||
"firefox": "90",
|
||||
"safari": "15",
|
||||
"node": "14.6",
|
||||
"deno": "1",
|
||||
"ios": "15",
|
||||
"samsung": "14",
|
||||
"opera_mobile": "60",
|
||||
"electron": "10.0"
|
||||
},
|
||||
"transform-numeric-separator": {
|
||||
"chrome": "75",
|
||||
"opera": "62",
|
||||
"edge": "79",
|
||||
"firefox": "70",
|
||||
"safari": "13",
|
||||
"node": "12.5",
|
||||
"deno": "1",
|
||||
"ios": "13",
|
||||
"samsung": "11",
|
||||
"rhino": "1.7.14",
|
||||
"opera_mobile": "54",
|
||||
"electron": "6.0"
|
||||
},
|
||||
"proposal-numeric-separator": {
|
||||
"chrome": "75",
|
||||
"opera": "62",
|
||||
"edge": "79",
|
||||
"firefox": "70",
|
||||
"safari": "13",
|
||||
"node": "12.5",
|
||||
"deno": "1",
|
||||
"ios": "13",
|
||||
"samsung": "11",
|
||||
"rhino": "1.7.14",
|
||||
"opera_mobile": "54",
|
||||
"electron": "6.0"
|
||||
},
|
||||
"transform-logical-assignment-operators": {
|
||||
"chrome": "85",
|
||||
"opera": "71",
|
||||
"edge": "85",
|
||||
"firefox": "79",
|
||||
"safari": "14",
|
||||
"node": "15",
|
||||
"deno": "1.2",
|
||||
"ios": "14",
|
||||
"samsung": "14",
|
||||
"opera_mobile": "60",
|
||||
"electron": "10.0"
|
||||
},
|
||||
"proposal-logical-assignment-operators": {
|
||||
"chrome": "85",
|
||||
"opera": "71",
|
||||
"edge": "85",
|
||||
"firefox": "79",
|
||||
"safari": "14",
|
||||
"node": "15",
|
||||
"deno": "1.2",
|
||||
"ios": "14",
|
||||
"samsung": "14",
|
||||
"opera_mobile": "60",
|
||||
"electron": "10.0"
|
||||
},
|
||||
"transform-nullish-coalescing-operator": {
|
||||
"chrome": "80",
|
||||
"opera": "67",
|
||||
"edge": "80",
|
||||
"firefox": "72",
|
||||
"safari": "13.1",
|
||||
"node": "14",
|
||||
"deno": "1",
|
||||
"ios": "13.4",
|
||||
"samsung": "13",
|
||||
"rhino": "1.8",
|
||||
"opera_mobile": "57",
|
||||
"electron": "8.0"
|
||||
},
|
||||
"proposal-nullish-coalescing-operator": {
|
||||
"chrome": "80",
|
||||
"opera": "67",
|
||||
"edge": "80",
|
||||
"firefox": "72",
|
||||
"safari": "13.1",
|
||||
"node": "14",
|
||||
"deno": "1",
|
||||
"ios": "13.4",
|
||||
"samsung": "13",
|
||||
"rhino": "1.8",
|
||||
"opera_mobile": "57",
|
||||
"electron": "8.0"
|
||||
},
|
||||
"transform-optional-chaining": {
|
||||
"chrome": "91",
|
||||
"opera": "77",
|
||||
"edge": "91",
|
||||
"firefox": "74",
|
||||
"safari": "13.1",
|
||||
"node": "16.9",
|
||||
"deno": "1.9",
|
||||
"ios": "13.4",
|
||||
"samsung": "16",
|
||||
"opera_mobile": "64",
|
||||
"electron": "13.0"
|
||||
},
|
||||
"proposal-optional-chaining": {
|
||||
"chrome": "91",
|
||||
"opera": "77",
|
||||
"edge": "91",
|
||||
"firefox": "74",
|
||||
"safari": "13.1",
|
||||
"node": "16.9",
|
||||
"deno": "1.9",
|
||||
"ios": "13.4",
|
||||
"samsung": "16",
|
||||
"opera_mobile": "64",
|
||||
"electron": "13.0"
|
||||
},
|
||||
"transform-json-strings": {
|
||||
"chrome": "66",
|
||||
"opera": "53",
|
||||
"edge": "79",
|
||||
"firefox": "62",
|
||||
"safari": "12",
|
||||
"node": "10",
|
||||
"deno": "1",
|
||||
"ios": "12",
|
||||
"samsung": "9",
|
||||
"rhino": "1.7.14",
|
||||
"opera_mobile": "47",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"proposal-json-strings": {
|
||||
"chrome": "66",
|
||||
"opera": "53",
|
||||
"edge": "79",
|
||||
"firefox": "62",
|
||||
"safari": "12",
|
||||
"node": "10",
|
||||
"deno": "1",
|
||||
"ios": "12",
|
||||
"samsung": "9",
|
||||
"rhino": "1.7.14",
|
||||
"opera_mobile": "47",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"transform-optional-catch-binding": {
|
||||
"chrome": "66",
|
||||
"opera": "53",
|
||||
"edge": "79",
|
||||
"firefox": "58",
|
||||
"safari": "11.1",
|
||||
"node": "10",
|
||||
"deno": "1",
|
||||
"ios": "11.3",
|
||||
"samsung": "9",
|
||||
"opera_mobile": "47",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"proposal-optional-catch-binding": {
|
||||
"chrome": "66",
|
||||
"opera": "53",
|
||||
"edge": "79",
|
||||
"firefox": "58",
|
||||
"safari": "11.1",
|
||||
"node": "10",
|
||||
"deno": "1",
|
||||
"ios": "11.3",
|
||||
"samsung": "9",
|
||||
"opera_mobile": "47",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"transform-parameters": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "18",
|
||||
"firefox": "52",
|
||||
"safari": "16.3",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ios": "16.3",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "36",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"transform-async-generator-functions": {
|
||||
"chrome": "63",
|
||||
"opera": "50",
|
||||
"edge": "79",
|
||||
"firefox": "57",
|
||||
"safari": "12",
|
||||
"node": "10",
|
||||
"deno": "1",
|
||||
"ios": "12",
|
||||
"samsung": "8",
|
||||
"opera_mobile": "46",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"proposal-async-generator-functions": {
|
||||
"chrome": "63",
|
||||
"opera": "50",
|
||||
"edge": "79",
|
||||
"firefox": "57",
|
||||
"safari": "12",
|
||||
"node": "10",
|
||||
"deno": "1",
|
||||
"ios": "12",
|
||||
"samsung": "8",
|
||||
"opera_mobile": "46",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"transform-object-rest-spread": {
|
||||
"chrome": "60",
|
||||
"opera": "47",
|
||||
"edge": "79",
|
||||
"firefox": "55",
|
||||
"safari": "11.1",
|
||||
"node": "8.3",
|
||||
"deno": "1",
|
||||
"ios": "11.3",
|
||||
"samsung": "8",
|
||||
"opera_mobile": "44",
|
||||
"electron": "2.0"
|
||||
},
|
||||
"proposal-object-rest-spread": {
|
||||
"chrome": "60",
|
||||
"opera": "47",
|
||||
"edge": "79",
|
||||
"firefox": "55",
|
||||
"safari": "11.1",
|
||||
"node": "8.3",
|
||||
"deno": "1",
|
||||
"ios": "11.3",
|
||||
"samsung": "8",
|
||||
"opera_mobile": "44",
|
||||
"electron": "2.0"
|
||||
},
|
||||
"transform-dotall-regex": {
|
||||
"chrome": "62",
|
||||
"opera": "49",
|
||||
"edge": "79",
|
||||
"firefox": "78",
|
||||
"safari": "11.1",
|
||||
"node": "8.10",
|
||||
"deno": "1",
|
||||
"ios": "11.3",
|
||||
"samsung": "8",
|
||||
"rhino": "1.7.15",
|
||||
"opera_mobile": "46",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"transform-unicode-property-regex": {
|
||||
"chrome": "64",
|
||||
"opera": "51",
|
||||
"edge": "79",
|
||||
"firefox": "78",
|
||||
"safari": "11.1",
|
||||
"node": "10",
|
||||
"deno": "1",
|
||||
"ios": "11.3",
|
||||
"samsung": "9",
|
||||
"opera_mobile": "47",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"proposal-unicode-property-regex": {
|
||||
"chrome": "64",
|
||||
"opera": "51",
|
||||
"edge": "79",
|
||||
"firefox": "78",
|
||||
"safari": "11.1",
|
||||
"node": "10",
|
||||
"deno": "1",
|
||||
"ios": "11.3",
|
||||
"samsung": "9",
|
||||
"opera_mobile": "47",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"transform-named-capturing-groups-regex": {
|
||||
"chrome": "64",
|
||||
"opera": "51",
|
||||
"edge": "79",
|
||||
"firefox": "78",
|
||||
"safari": "11.1",
|
||||
"node": "10",
|
||||
"deno": "1",
|
||||
"ios": "11.3",
|
||||
"samsung": "9",
|
||||
"opera_mobile": "47",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"transform-async-to-generator": {
|
||||
"chrome": "55",
|
||||
"opera": "42",
|
||||
"edge": "15",
|
||||
"firefox": "52",
|
||||
"safari": "11",
|
||||
"node": "7.6",
|
||||
"deno": "1",
|
||||
"ios": "11",
|
||||
"samsung": "6",
|
||||
"opera_mobile": "42",
|
||||
"electron": "1.6"
|
||||
},
|
||||
"transform-exponentiation-operator": {
|
||||
"chrome": "52",
|
||||
"opera": "39",
|
||||
"edge": "14",
|
||||
"firefox": "52",
|
||||
"safari": "10.1",
|
||||
"node": "7",
|
||||
"deno": "1",
|
||||
"ios": "10.3",
|
||||
"samsung": "6",
|
||||
"rhino": "1.7.14",
|
||||
"opera_mobile": "41",
|
||||
"electron": "1.3"
|
||||
},
|
||||
"transform-template-literals": {
|
||||
"chrome": "41",
|
||||
"opera": "28",
|
||||
"edge": "13",
|
||||
"firefox": "34",
|
||||
"safari": "13",
|
||||
"node": "4",
|
||||
"deno": "1",
|
||||
"ios": "13",
|
||||
"samsung": "3.4",
|
||||
"opera_mobile": "28",
|
||||
"electron": "0.21"
|
||||
},
|
||||
"transform-literals": {
|
||||
"chrome": "44",
|
||||
"opera": "31",
|
||||
"edge": "12",
|
||||
"firefox": "53",
|
||||
"safari": "9",
|
||||
"node": "4",
|
||||
"deno": "1",
|
||||
"ios": "9",
|
||||
"samsung": "4",
|
||||
"rhino": "1.7.15",
|
||||
"opera_mobile": "32",
|
||||
"electron": "0.30"
|
||||
},
|
||||
"transform-function-name": {
|
||||
"chrome": "51",
|
||||
"opera": "38",
|
||||
"edge": "79",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6.5",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "41",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"transform-arrow-functions": {
|
||||
"chrome": "47",
|
||||
"opera": "34",
|
||||
"edge": "13",
|
||||
"firefox": "43",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"rhino": "1.7.13",
|
||||
"opera_mobile": "34",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-block-scoped-functions": {
|
||||
"chrome": "41",
|
||||
"opera": "28",
|
||||
"edge": "12",
|
||||
"firefox": "46",
|
||||
"safari": "10",
|
||||
"node": "4",
|
||||
"deno": "1",
|
||||
"ie": "11",
|
||||
"ios": "10",
|
||||
"samsung": "3.4",
|
||||
"opera_mobile": "28",
|
||||
"electron": "0.21"
|
||||
},
|
||||
"transform-classes": {
|
||||
"chrome": "46",
|
||||
"opera": "33",
|
||||
"edge": "13",
|
||||
"firefox": "45",
|
||||
"safari": "10",
|
||||
"node": "5",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "33",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-object-super": {
|
||||
"chrome": "46",
|
||||
"opera": "33",
|
||||
"edge": "13",
|
||||
"firefox": "45",
|
||||
"safari": "10",
|
||||
"node": "5",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "33",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-shorthand-properties": {
|
||||
"chrome": "43",
|
||||
"opera": "30",
|
||||
"edge": "12",
|
||||
"firefox": "33",
|
||||
"safari": "9",
|
||||
"node": "4",
|
||||
"deno": "1",
|
||||
"ios": "9",
|
||||
"samsung": "4",
|
||||
"rhino": "1.7.14",
|
||||
"opera_mobile": "30",
|
||||
"electron": "0.27"
|
||||
},
|
||||
"transform-duplicate-keys": {
|
||||
"chrome": "42",
|
||||
"opera": "29",
|
||||
"edge": "12",
|
||||
"firefox": "34",
|
||||
"safari": "9",
|
||||
"node": "4",
|
||||
"deno": "1",
|
||||
"ios": "9",
|
||||
"samsung": "3.4",
|
||||
"opera_mobile": "29",
|
||||
"electron": "0.25"
|
||||
},
|
||||
"transform-computed-properties": {
|
||||
"chrome": "44",
|
||||
"opera": "31",
|
||||
"edge": "12",
|
||||
"firefox": "34",
|
||||
"safari": "7.1",
|
||||
"node": "4",
|
||||
"deno": "1",
|
||||
"ios": "8",
|
||||
"samsung": "4",
|
||||
"rhino": "1.8",
|
||||
"opera_mobile": "32",
|
||||
"electron": "0.30"
|
||||
},
|
||||
"transform-for-of": {
|
||||
"chrome": "51",
|
||||
"opera": "38",
|
||||
"edge": "15",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6.5",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "41",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"transform-sticky-regex": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "13",
|
||||
"firefox": "3",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"rhino": "1.7.15",
|
||||
"opera_mobile": "36",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"transform-unicode-escapes": {
|
||||
"chrome": "44",
|
||||
"opera": "31",
|
||||
"edge": "12",
|
||||
"firefox": "53",
|
||||
"safari": "9",
|
||||
"node": "4",
|
||||
"deno": "1",
|
||||
"ios": "9",
|
||||
"samsung": "4",
|
||||
"rhino": "1.7.15",
|
||||
"opera_mobile": "32",
|
||||
"electron": "0.30"
|
||||
},
|
||||
"transform-unicode-regex": {
|
||||
"chrome": "50",
|
||||
"opera": "37",
|
||||
"edge": "13",
|
||||
"firefox": "46",
|
||||
"safari": "12",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ios": "12",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "37",
|
||||
"electron": "1.1"
|
||||
},
|
||||
"transform-spread": {
|
||||
"chrome": "46",
|
||||
"opera": "33",
|
||||
"edge": "13",
|
||||
"firefox": "45",
|
||||
"safari": "10",
|
||||
"node": "5",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "33",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-destructuring": {
|
||||
"chrome": "51",
|
||||
"opera": "38",
|
||||
"edge": "15",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6.5",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "41",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"transform-block-scoping": {
|
||||
"chrome": "50",
|
||||
"opera": "37",
|
||||
"edge": "14",
|
||||
"firefox": "53",
|
||||
"safari": "11",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ios": "11",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "37",
|
||||
"electron": "1.1"
|
||||
},
|
||||
"transform-typeof-symbol": {
|
||||
"chrome": "48",
|
||||
"opera": "35",
|
||||
"edge": "12",
|
||||
"firefox": "36",
|
||||
"safari": "9",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ios": "9",
|
||||
"samsung": "5",
|
||||
"rhino": "1.8",
|
||||
"opera_mobile": "35",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"transform-new-target": {
|
||||
"chrome": "46",
|
||||
"opera": "33",
|
||||
"edge": "14",
|
||||
"firefox": "41",
|
||||
"safari": "10",
|
||||
"node": "5",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "33",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-regenerator": {
|
||||
"chrome": "50",
|
||||
"opera": "37",
|
||||
"edge": "13",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"deno": "1",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"opera_mobile": "37",
|
||||
"electron": "1.1"
|
||||
},
|
||||
"transform-member-expression-literals": {
|
||||
"chrome": "7",
|
||||
"opera": "12",
|
||||
"edge": "12",
|
||||
"firefox": "2",
|
||||
"safari": "5.1",
|
||||
"node": "0.4",
|
||||
"deno": "1",
|
||||
"ie": "9",
|
||||
"android": "4",
|
||||
"ios": "6",
|
||||
"phantom": "1.9",
|
||||
"samsung": "1",
|
||||
"rhino": "1.7.13",
|
||||
"opera_mobile": "12",
|
||||
"electron": "0.20"
|
||||
},
|
||||
"transform-property-literals": {
|
||||
"chrome": "7",
|
||||
"opera": "12",
|
||||
"edge": "12",
|
||||
"firefox": "2",
|
||||
"safari": "5.1",
|
||||
"node": "0.4",
|
||||
"deno": "1",
|
||||
"ie": "9",
|
||||
"android": "4",
|
||||
"ios": "6",
|
||||
"phantom": "1.9",
|
||||
"samsung": "1",
|
||||
"rhino": "1.7.13",
|
||||
"opera_mobile": "12",
|
||||
"electron": "0.20"
|
||||
},
|
||||
"transform-reserved-words": {
|
||||
"chrome": "13",
|
||||
"opera": "10.50",
|
||||
"edge": "12",
|
||||
"firefox": "2",
|
||||
"safari": "3.1",
|
||||
"node": "0.6",
|
||||
"deno": "1",
|
||||
"ie": "9",
|
||||
"android": "4.4",
|
||||
"ios": "6",
|
||||
"phantom": "1.9",
|
||||
"samsung": "1",
|
||||
"rhino": "1.7.13",
|
||||
"opera_mobile": "10.1",
|
||||
"electron": "0.20"
|
||||
},
|
||||
"transform-export-namespace-from": {
|
||||
"chrome": "72",
|
||||
"deno": "1.0",
|
||||
"edge": "79",
|
||||
"firefox": "80",
|
||||
"node": "13.2.0",
|
||||
"opera": "60",
|
||||
"opera_mobile": "51",
|
||||
"safari": "14.1",
|
||||
"ios": "14.5",
|
||||
"samsung": "11.0",
|
||||
"android": "72",
|
||||
"electron": "5.0"
|
||||
},
|
||||
"proposal-export-namespace-from": {
|
||||
"chrome": "72",
|
||||
"deno": "1.0",
|
||||
"edge": "79",
|
||||
"firefox": "80",
|
||||
"node": "13.2.0",
|
||||
"opera": "60",
|
||||
"opera_mobile": "51",
|
||||
"safari": "14.1",
|
||||
"ios": "14.5",
|
||||
"samsung": "11.0",
|
||||
"android": "72",
|
||||
"electron": "5.0"
|
||||
}
|
||||
}
|
2
node_modules/@babel/compat-data/native-modules.js
generated
vendored
Normal file
2
node_modules/@babel/compat-data/native-modules.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
||||
module.exports = require("./data/native-modules.json");
|
2
node_modules/@babel/compat-data/overlapping-plugins.js
generated
vendored
Normal file
2
node_modules/@babel/compat-data/overlapping-plugins.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
||||
module.exports = require("./data/overlapping-plugins.json");
|
40
node_modules/@babel/compat-data/package.json
generated
vendored
Normal file
40
node_modules/@babel/compat-data/package.json
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "@babel/compat-data",
|
||||
"version": "7.27.5",
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"license": "MIT",
|
||||
"description": "The compat-data to determine required Babel plugins",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-compat-data"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"exports": {
|
||||
"./plugins": "./plugins.js",
|
||||
"./native-modules": "./native-modules.js",
|
||||
"./corejs2-built-ins": "./corejs2-built-ins.js",
|
||||
"./corejs3-shipped-proposals": "./corejs3-shipped-proposals.js",
|
||||
"./overlapping-plugins": "./overlapping-plugins.js",
|
||||
"./plugin-bugfixes": "./plugin-bugfixes.js"
|
||||
},
|
||||
"scripts": {
|
||||
"build-data": "./scripts/download-compat-table.sh && node ./scripts/build-data.mjs && node ./scripts/build-modules-support.mjs && node ./scripts/build-bugfixes-targets.mjs"
|
||||
},
|
||||
"keywords": [
|
||||
"babel",
|
||||
"compat-table",
|
||||
"compat-data"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@mdn/browser-compat-data": "^6.0.8",
|
||||
"core-js-compat": "^3.41.0",
|
||||
"electron-to-chromium": "^1.5.140"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"type": "commonjs"
|
||||
}
|
2
node_modules/@babel/compat-data/plugin-bugfixes.js
generated
vendored
Normal file
2
node_modules/@babel/compat-data/plugin-bugfixes.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
||||
module.exports = require("./data/plugin-bugfixes.json");
|
2
node_modules/@babel/compat-data/plugins.js
generated
vendored
Normal file
2
node_modules/@babel/compat-data/plugins.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
||||
module.exports = require("./data/plugins.json");
|
22
node_modules/@babel/core/LICENSE
generated
vendored
Normal file
22
node_modules/@babel/core/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
node_modules/@babel/core/README.md
generated
vendored
Normal file
19
node_modules/@babel/core/README.md
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# @babel/core
|
||||
|
||||
> Babel compiler core.
|
||||
|
||||
See our website [@babel/core](https://babeljs.io/docs/babel-core) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen) associated with this package.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/core
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/core --dev
|
||||
```
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user