Initial React project

This commit is contained in:
Johan
2026-03-23 07:49:45 +01:00
parent 8d33465f51
commit e204032b56
1353 changed files with 23853 additions and 50282 deletions

BIN
node_modules/esbuild/bin/esbuild generated vendored

Binary file not shown.

310
node_modules/esbuild/lib/main.js generated vendored
View File

@@ -205,7 +205,7 @@ esbuild in this environment because esbuild relies on this invariant. This
is not a problem with esbuild. You need to fix your environment instead.
`);
function readUInt32LE(buffer, offset) {
return (buffer[offset++] | buffer[offset++] << 8 | buffer[offset++] << 16 | buffer[offset++] << 24) >>> 0;
return buffer[offset++] | buffer[offset++] << 8 | buffer[offset++] << 16 | buffer[offset++] << 24;
}
function writeUInt32LE(buffer, value, offset) {
buffer[offset++] = value;
@@ -214,287 +214,6 @@ function writeUInt32LE(buffer, value, offset) {
buffer[offset++] = value >> 24;
}
// lib/shared/uint8array_json_parser.ts
var fromCharCode = String.fromCharCode;
function throwSyntaxError(bytes, index, message) {
const c = bytes[index];
let line = 1;
let column = 0;
for (let i = 0; i < index; i++) {
if (bytes[i] === 10 /* Newline */) {
line++;
column = 0;
} else {
column++;
}
}
throw new SyntaxError(
message ? message : index === bytes.length ? "Unexpected end of input while parsing JSON" : c >= 32 && c <= 126 ? `Unexpected character ${fromCharCode(c)} in JSON at position ${index} (line ${line}, column ${column})` : `Unexpected byte 0x${c.toString(16)} in JSON at position ${index} (line ${line}, column ${column})`
);
}
function JSON_parse(bytes) {
if (!(bytes instanceof Uint8Array)) {
throw new Error(`JSON input must be a Uint8Array`);
}
const propertyStack = [];
const objectStack = [];
const stateStack = [];
const length = bytes.length;
let property = null;
let state = 0 /* TopLevel */;
let object;
let i = 0;
while (i < length) {
let c = bytes[i++];
if (c <= 32 /* Space */) {
continue;
}
let value;
if (state === 2 /* Object */ && property === null && c !== 34 /* Quote */ && c !== 125 /* CloseBrace */) {
throwSyntaxError(bytes, --i);
}
switch (c) {
// True
case 116 /* LowerT */: {
if (bytes[i++] !== 114 /* LowerR */ || bytes[i++] !== 117 /* LowerU */ || bytes[i++] !== 101 /* LowerE */) {
throwSyntaxError(bytes, --i);
}
value = true;
break;
}
// False
case 102 /* LowerF */: {
if (bytes[i++] !== 97 /* LowerA */ || bytes[i++] !== 108 /* LowerL */ || bytes[i++] !== 115 /* LowerS */ || bytes[i++] !== 101 /* LowerE */) {
throwSyntaxError(bytes, --i);
}
value = false;
break;
}
// Null
case 110 /* LowerN */: {
if (bytes[i++] !== 117 /* LowerU */ || bytes[i++] !== 108 /* LowerL */ || bytes[i++] !== 108 /* LowerL */) {
throwSyntaxError(bytes, --i);
}
value = null;
break;
}
// Number begin
case 45 /* Minus */:
case 46 /* Dot */:
case 48 /* Digit0 */:
case 49 /* Digit1 */:
case 50 /* Digit2 */:
case 51 /* Digit3 */:
case 52 /* Digit4 */:
case 53 /* Digit5 */:
case 54 /* Digit6 */:
case 55 /* Digit7 */:
case 56 /* Digit8 */:
case 57 /* Digit9 */: {
let index = i;
value = fromCharCode(c);
c = bytes[i];
while (true) {
switch (c) {
case 43 /* Plus */:
case 45 /* Minus */:
case 46 /* Dot */:
case 48 /* Digit0 */:
case 49 /* Digit1 */:
case 50 /* Digit2 */:
case 51 /* Digit3 */:
case 52 /* Digit4 */:
case 53 /* Digit5 */:
case 54 /* Digit6 */:
case 55 /* Digit7 */:
case 56 /* Digit8 */:
case 57 /* Digit9 */:
case 101 /* LowerE */:
case 69 /* UpperE */: {
value += fromCharCode(c);
c = bytes[++i];
continue;
}
}
break;
}
value = +value;
if (isNaN(value)) {
throwSyntaxError(bytes, --index, "Invalid number");
}
break;
}
// String begin
case 34 /* Quote */: {
value = "";
while (true) {
if (i >= length) {
throwSyntaxError(bytes, length);
}
c = bytes[i++];
if (c === 34 /* Quote */) {
break;
} else if (c === 92 /* Backslash */) {
switch (bytes[i++]) {
// Normal escape sequence
case 34 /* Quote */:
value += '"';
break;
case 47 /* Slash */:
value += "/";
break;
case 92 /* Backslash */:
value += "\\";
break;
case 98 /* LowerB */:
value += "\b";
break;
case 102 /* LowerF */:
value += "\f";
break;
case 110 /* LowerN */:
value += "\n";
break;
case 114 /* LowerR */:
value += "\r";
break;
case 116 /* LowerT */:
value += " ";
break;
// Unicode escape sequence
case 117 /* LowerU */: {
let code = 0;
for (let j = 0; j < 4; j++) {
c = bytes[i++];
code <<= 4;
if (c >= 48 /* Digit0 */ && c <= 57 /* Digit9 */) code |= c - 48 /* Digit0 */;
else if (c >= 97 /* LowerA */ && c <= 102 /* LowerF */) code |= c + (10 - 97 /* LowerA */);
else if (c >= 65 /* UpperA */ && c <= 70 /* UpperF */) code |= c + (10 - 65 /* UpperA */);
else throwSyntaxError(bytes, --i);
}
value += fromCharCode(code);
break;
}
// Invalid escape sequence
default:
throwSyntaxError(bytes, --i);
break;
}
} else if (c <= 127) {
value += fromCharCode(c);
} else if ((c & 224) === 192) {
value += fromCharCode((c & 31) << 6 | bytes[i++] & 63);
} else if ((c & 240) === 224) {
value += fromCharCode((c & 15) << 12 | (bytes[i++] & 63) << 6 | bytes[i++] & 63);
} else if ((c & 248) == 240) {
let codePoint = (c & 7) << 18 | (bytes[i++] & 63) << 12 | (bytes[i++] & 63) << 6 | bytes[i++] & 63;
if (codePoint > 65535) {
codePoint -= 65536;
value += fromCharCode(codePoint >> 10 & 1023 | 55296);
codePoint = 56320 | codePoint & 1023;
}
value += fromCharCode(codePoint);
}
}
value[0];
break;
}
// Array begin
case 91 /* OpenBracket */: {
value = [];
propertyStack.push(property);
objectStack.push(object);
stateStack.push(state);
property = null;
object = value;
state = 1 /* Array */;
continue;
}
// Object begin
case 123 /* OpenBrace */: {
value = {};
propertyStack.push(property);
objectStack.push(object);
stateStack.push(state);
property = null;
object = value;
state = 2 /* Object */;
continue;
}
// Array end
case 93 /* CloseBracket */: {
if (state !== 1 /* Array */) {
throwSyntaxError(bytes, --i);
}
value = object;
property = propertyStack.pop();
object = objectStack.pop();
state = stateStack.pop();
break;
}
// Object end
case 125 /* CloseBrace */: {
if (state !== 2 /* Object */) {
throwSyntaxError(bytes, --i);
}
value = object;
property = propertyStack.pop();
object = objectStack.pop();
state = stateStack.pop();
break;
}
default: {
throwSyntaxError(bytes, --i);
}
}
c = bytes[i];
while (c <= 32 /* Space */) {
c = bytes[++i];
}
switch (state) {
case 0 /* TopLevel */: {
if (i === length) {
return value;
}
break;
}
case 1 /* Array */: {
object.push(value);
if (c === 44 /* Comma */) {
i++;
continue;
}
if (c === 93 /* CloseBracket */) {
continue;
}
break;
}
case 2 /* Object */: {
if (property === null) {
property = value;
if (c === 58 /* Colon */) {
i++;
continue;
}
} else {
object[property] = value;
property = null;
if (c === 44 /* Comma */) {
i++;
continue;
}
if (c === 125 /* CloseBrace */) {
continue;
}
}
break;
}
}
break;
}
throwSyntaxError(bytes, i);
}
// lib/shared/common.ts
var quote = JSON.stringify;
var buildLogLevelDefault = "warning";
@@ -924,8 +643,8 @@ function createChannel(streamIn) {
if (isFirstPacket) {
isFirstPacket = false;
let binaryVersion = String.fromCharCode(...bytes);
if (binaryVersion !== "0.27.4") {
throw new Error(`Cannot start service: Host version "${"0.27.4"}" does not match binary version ${quote(binaryVersion)}`);
if (binaryVersion !== "0.27.3") {
throw new Error(`Cannot start service: Host version "${"0.27.3"}" does not match binary version ${quote(binaryVersion)}`);
}
return;
}
@@ -1199,7 +918,7 @@ function buildOrContextImpl(callName, buildKey, sendRequest, sendResponse, refs,
const originalErrors = result.errors.slice();
const originalWarnings = result.warnings.slice();
if (response.outputFiles) result.outputFiles = response.outputFiles.map(convertOutputFiles);
if (response.metafile) result.metafile = parseJSON(response.metafile);
if (response.metafile) result.metafile = JSON.parse(response.metafile);
if (response.mangleCache) result.mangleCache = response.mangleCache;
if (response.writeToStdout !== void 0) console.log(decodeUTF8(response.writeToStdout).replace(/\n$/, ""));
runOnEndCallbacks(result, (onEndErrors, onEndWarnings) => {
@@ -1872,15 +1591,6 @@ function jsRegExpToGoRegExp(regexp) {
if (regexp.flags) result = `(?${regexp.flags})${result}`;
return result;
}
function parseJSON(bytes) {
let text;
try {
text = decodeUTF8(bytes);
} catch {
return JSON_parse(bytes);
}
return JSON.parse(text);
}
// lib/npm/node-platform.ts
var fs = require("fs");
@@ -2060,7 +1770,7 @@ for your current platform.`);
"node_modules",
".cache",
"esbuild",
`pnpapi-${pkg.replace("/", "-")}-${"0.27.4"}-${path.basename(subpath)}`
`pnpapi-${pkg.replace("/", "-")}-${"0.27.3"}-${path.basename(subpath)}`
);
if (!fs.existsSync(binTargetPath)) {
fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -2095,7 +1805,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
}
}
var _a;
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.4";
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.3";
var esbuildCommandAndArgs = () => {
if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
throw new Error(
@@ -2162,7 +1872,7 @@ var fsAsync = {
}
}
};
var version = "0.27.4";
var version = "0.27.3";
var build = (options) => ensureServiceIsRunning().build(options);
var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2265,7 +1975,7 @@ var stopService;
var ensureServiceIsRunning = () => {
if (longLivedService) return longLivedService;
let [command, args] = esbuildCommandAndArgs();
let child = child_process.spawn(command, args.concat(`--service=${"0.27.4"}`, "--ping"), {
let child = child_process.spawn(command, args.concat(`--service=${"0.27.3"}`, "--ping"), {
windowsHide: true,
stdio: ["pipe", "pipe", "inherit"],
cwd: defaultWD
@@ -2369,7 +2079,7 @@ var runServiceSync = (callback) => {
esbuild: node_exports
});
callback(service);
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.27.4"}`), {
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.27.3"}`), {
cwd: defaultWD,
windowsHide: true,
input: stdin,
@@ -2389,7 +2099,7 @@ var workerThreadService = null;
var startWorkerThreadService = (worker_threads2) => {
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
let worker = new worker_threads2.Worker(__filename, {
workerData: { workerPort, defaultWD, esbuildVersion: "0.27.4" },
workerData: { workerPort, defaultWD, esbuildVersion: "0.27.3" },
transferList: [workerPort],
// From node's documentation: https://nodejs.org/api/worker_threads.html
//

54
node_modules/esbuild/package.json generated vendored
View File

@@ -1,6 +1,6 @@
{
"name": "esbuild",
"version": "0.27.4",
"version": "0.27.3",
"description": "An extremely fast JavaScript and CSS bundler and minifier.",
"repository": {
"type": "git",
@@ -18,32 +18,32 @@
"esbuild": "bin/esbuild"
},
"optionalDependencies": {
"@esbuild/aix-ppc64": "0.27.4",
"@esbuild/android-arm": "0.27.4",
"@esbuild/android-arm64": "0.27.4",
"@esbuild/android-x64": "0.27.4",
"@esbuild/darwin-arm64": "0.27.4",
"@esbuild/darwin-x64": "0.27.4",
"@esbuild/freebsd-arm64": "0.27.4",
"@esbuild/freebsd-x64": "0.27.4",
"@esbuild/linux-arm": "0.27.4",
"@esbuild/linux-arm64": "0.27.4",
"@esbuild/linux-ia32": "0.27.4",
"@esbuild/linux-loong64": "0.27.4",
"@esbuild/linux-mips64el": "0.27.4",
"@esbuild/linux-ppc64": "0.27.4",
"@esbuild/linux-riscv64": "0.27.4",
"@esbuild/linux-s390x": "0.27.4",
"@esbuild/linux-x64": "0.27.4",
"@esbuild/netbsd-arm64": "0.27.4",
"@esbuild/netbsd-x64": "0.27.4",
"@esbuild/openbsd-arm64": "0.27.4",
"@esbuild/openbsd-x64": "0.27.4",
"@esbuild/openharmony-arm64": "0.27.4",
"@esbuild/sunos-x64": "0.27.4",
"@esbuild/win32-arm64": "0.27.4",
"@esbuild/win32-ia32": "0.27.4",
"@esbuild/win32-x64": "0.27.4"
"@esbuild/aix-ppc64": "0.27.3",
"@esbuild/android-arm": "0.27.3",
"@esbuild/android-arm64": "0.27.3",
"@esbuild/android-x64": "0.27.3",
"@esbuild/darwin-arm64": "0.27.3",
"@esbuild/darwin-x64": "0.27.3",
"@esbuild/freebsd-arm64": "0.27.3",
"@esbuild/freebsd-x64": "0.27.3",
"@esbuild/linux-arm": "0.27.3",
"@esbuild/linux-arm64": "0.27.3",
"@esbuild/linux-ia32": "0.27.3",
"@esbuild/linux-loong64": "0.27.3",
"@esbuild/linux-mips64el": "0.27.3",
"@esbuild/linux-ppc64": "0.27.3",
"@esbuild/linux-riscv64": "0.27.3",
"@esbuild/linux-s390x": "0.27.3",
"@esbuild/linux-x64": "0.27.3",
"@esbuild/netbsd-arm64": "0.27.3",
"@esbuild/netbsd-x64": "0.27.3",
"@esbuild/openbsd-arm64": "0.27.3",
"@esbuild/openbsd-x64": "0.27.3",
"@esbuild/openharmony-arm64": "0.27.3",
"@esbuild/sunos-x64": "0.27.3",
"@esbuild/win32-arm64": "0.27.3",
"@esbuild/win32-ia32": "0.27.3",
"@esbuild/win32-x64": "0.27.3"
},
"license": "MIT"
}